{"version":3,"file":"simple-dropzone.module.js","sources":["../node_modules/zip-js-esm/src/deflate.js","../node_modules/zip-js-esm/src/inflate.js","../node_modules/zip-js-esm/src/zip.js","../vendor/zip-fs.js","../index.js"],"sourcesContent":["/*\n Copyright (c) 2013 Gildas Lormeau. All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright \n notice, this list of conditions and the following disclaimer in \n the documentation and/or other materials provided with the distribution.\n\n 3. The names of the authors may not be used to endorse or promote products\n derived from this software without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,\n INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,\n INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,\n INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,\n OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\n EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/*\n * This program is based on JZlib 1.0.2 ymnk, JCraft,Inc.\n * JZlib is based on zlib-1.1.3, so all credit should go authors\n * Jean-loup Gailly(jloup@gzip.org) and Mark Adler(madler@alumni.caltech.edu)\n * and contributors of zlib.\n */\n\n// Global\n\nvar MAX_BITS = 15;\nvar D_CODES = 30;\nvar BL_CODES = 19;\n\nvar LENGTH_CODES = 29;\nvar LITERALS = 256;\nvar L_CODES = (LITERALS + 1 + LENGTH_CODES);\nvar HEAP_SIZE = (2 * L_CODES + 1);\n\nvar END_BLOCK = 256;\n\n// Bit length codes must not exceed MAX_BL_BITS bits\nvar MAX_BL_BITS = 7;\n\n// repeat previous bit length 3-6 times (2 bits of repeat count)\nvar REP_3_6 = 16;\n\n// repeat a zero length 3-10 times (3 bits of repeat count)\nvar REPZ_3_10 = 17;\n\n// repeat a zero length 11-138 times (7 bits of repeat count)\nvar REPZ_11_138 = 18;\n\n// The lengths of the bit length codes are sent in order of decreasing\n// probability, to avoid transmitting the lengths for unused bit\n// length codes.\n\nvar Buf_size = 8 * 2;\n\n// JZlib version : \"1.0.2\"\nvar Z_DEFAULT_COMPRESSION = -1;\n\n// compression strategy\nvar Z_FILTERED = 1;\nvar Z_HUFFMAN_ONLY = 2;\nvar Z_DEFAULT_STRATEGY = 0;\n\nvar Z_NO_FLUSH = 0;\nvar Z_PARTIAL_FLUSH = 1;\nvar Z_FULL_FLUSH = 3;\nvar Z_FINISH = 4;\n\nvar Z_OK = 0;\nvar Z_STREAM_END = 1;\nvar Z_NEED_DICT = 2;\nvar Z_STREAM_ERROR = -2;\nvar Z_DATA_ERROR = -3;\nvar Z_BUF_ERROR = -5;\n\n// Tree\n\n// see definition of array dist_code below\nvar _dist_code = [ 0, 1, 2, 3, 4, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,\n\t\t10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12,\n\t\t12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13,\n\t\t13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,\n\t\t14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,\n\t\t14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,\n\t\t15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 0, 0, 16, 17, 18, 18, 19, 19,\n\t\t20, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,\n\t\t24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,\n\t\t26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,\n\t\t27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,\n\t\t28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 29,\n\t\t29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,\n\t\t29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29 ];\n\nfunction Tree() {\n\tvar that = this;\n\n\t// dyn_tree; // the dynamic tree\n\t// max_code; // largest code with non zero frequency\n\t// stat_desc; // the corresponding static tree\n\n\t// Compute the optimal bit lengths for a tree and update the total bit\n\t// length\n\t// for the current block.\n\t// IN assertion: the fields freq and dad are set, heap[heap_max] and\n\t// above are the tree nodes sorted by increasing frequency.\n\t// OUT assertions: the field len is set to the optimal bit length, the\n\t// array bl_count contains the frequencies for each bit length.\n\t// The length opt_len is updated; static_len is also updated if stree is\n\t// not null.\n\tfunction gen_bitlen(s) {\n\t\tvar tree = that.dyn_tree;\n\t\tvar stree = that.stat_desc.static_tree;\n\t\tvar extra = that.stat_desc.extra_bits;\n\t\tvar base = that.stat_desc.extra_base;\n\t\tvar max_length = that.stat_desc.max_length;\n\t\tvar h; // heap index\n\t\tvar n, m; // iterate over the tree elements\n\t\tvar bits; // bit length\n\t\tvar xbits; // extra bits\n\t\tvar f; // frequency\n\t\tvar overflow = 0; // number of elements with bit length too large\n\n\t\tfor (bits = 0; bits <= MAX_BITS; bits++)\n\t\t\ts.bl_count[bits] = 0;\n\n\t\t// In a first pass, compute the optimal bit lengths (which may\n\t\t// overflow in the case of the bit length tree).\n\t\ttree[s.heap[s.heap_max] * 2 + 1] = 0; // root of the heap\n\n\t\tfor (h = s.heap_max + 1; h < HEAP_SIZE; h++) {\n\t\t\tn = s.heap[h];\n\t\t\tbits = tree[tree[n * 2 + 1] * 2 + 1] + 1;\n\t\t\tif (bits > max_length) {\n\t\t\t\tbits = max_length;\n\t\t\t\toverflow++;\n\t\t\t}\n\t\t\ttree[n * 2 + 1] = bits;\n\t\t\t// We overwrite tree[n*2+1] which is no longer needed\n\n\t\t\tif (n > that.max_code)\n\t\t\t\tcontinue; // not a leaf node\n\n\t\t\ts.bl_count[bits]++;\n\t\t\txbits = 0;\n\t\t\tif (n >= base)\n\t\t\t\txbits = extra[n - base];\n\t\t\tf = tree[n * 2];\n\t\t\ts.opt_len += f * (bits + xbits);\n\t\t\tif (stree)\n\t\t\t\ts.static_len += f * (stree[n * 2 + 1] + xbits);\n\t\t}\n\t\tif (overflow === 0)\n\t\t\treturn;\n\n\t\t// This happens for example on obj2 and pic of the Calgary corpus\n\t\t// Find the first bit length which could increase:\n\t\tdo {\n\t\t\tbits = max_length - 1;\n\t\t\twhile (s.bl_count[bits] === 0)\n\t\t\t\tbits--;\n\t\t\ts.bl_count[bits]--; // move one leaf down the tree\n\t\t\ts.bl_count[bits + 1] += 2; // move one overflow item as its brother\n\t\t\ts.bl_count[max_length]--;\n\t\t\t// The brother of the overflow item also moves one step up,\n\t\t\t// but this does not affect bl_count[max_length]\n\t\t\toverflow -= 2;\n\t\t} while (overflow > 0);\n\n\t\tfor (bits = max_length; bits !== 0; bits--) {\n\t\t\tn = s.bl_count[bits];\n\t\t\twhile (n !== 0) {\n\t\t\t\tm = s.heap[--h];\n\t\t\t\tif (m > that.max_code)\n\t\t\t\t\tcontinue;\n\t\t\t\tif (tree[m * 2 + 1] != bits) {\n\t\t\t\t\ts.opt_len += (bits - tree[m * 2 + 1]) * tree[m * 2];\n\t\t\t\t\ttree[m * 2 + 1] = bits;\n\t\t\t\t}\n\t\t\t\tn--;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Reverse the first len bits of a code, using straightforward code (a\n\t// faster\n\t// method would use a table)\n\t// IN assertion: 1 <= len <= 15\n\tfunction bi_reverse(code, // the value to invert\n\tlen // its bit length\n\t) {\n\t\tvar res = 0;\n\t\tdo {\n\t\t\tres |= code & 1;\n\t\t\tcode >>>= 1;\n\t\t\tres <<= 1;\n\t\t} while (--len > 0);\n\t\treturn res >>> 1;\n\t}\n\n\t// Generate the codes for a given tree and bit counts (which need not be\n\t// optimal).\n\t// IN assertion: the array bl_count contains the bit length statistics for\n\t// the given tree and the field len is set for all tree elements.\n\t// OUT assertion: the field code is set for all tree elements of non\n\t// zero code length.\n\tfunction gen_codes(tree, // the tree to decorate\n\tmax_code, // largest code with non zero frequency\n\tbl_count // number of codes at each bit length\n\t) {\n\t\tvar next_code = []; // next code value for each\n\t\t// bit length\n\t\tvar code = 0; // running code value\n\t\tvar bits; // bit index\n\t\tvar n; // code index\n\t\tvar len;\n\n\t\t// The distribution counts are first used to generate the code values\n\t\t// without bit reversal.\n\t\tfor (bits = 1; bits <= MAX_BITS; bits++) {\n\t\t\tnext_code[bits] = code = ((code + bl_count[bits - 1]) << 1);\n\t\t}\n\n\t\t// Check that the bit counts in bl_count are consistent. The last code\n\t\t// must be all ones.\n\t\t// Assert (code + bl_count[MAX_BITS]-1 == (1<= 1; n--)\n\t\t\ts.pqdownheap(tree, n);\n\n\t\t// Construct the Huffman tree by repeatedly combining the least two\n\t\t// frequent nodes.\n\n\t\tnode = elems; // next internal node of the tree\n\t\tdo {\n\t\t\t// n = node of least frequency\n\t\t\tn = s.heap[1];\n\t\t\ts.heap[1] = s.heap[s.heap_len--];\n\t\t\ts.pqdownheap(tree, 1);\n\t\t\tm = s.heap[1]; // m = node of next least frequency\n\n\t\t\ts.heap[--s.heap_max] = n; // keep the nodes sorted by frequency\n\t\t\ts.heap[--s.heap_max] = m;\n\n\t\t\t// Create a new node father of n and m\n\t\t\ttree[node * 2] = (tree[n * 2] + tree[m * 2]);\n\t\t\ts.depth[node] = Math.max(s.depth[n], s.depth[m]) + 1;\n\t\t\ttree[n * 2 + 1] = tree[m * 2 + 1] = node;\n\n\t\t\t// and insert the new node in the heap\n\t\t\ts.heap[1] = node++;\n\t\t\ts.pqdownheap(tree, 1);\n\t\t} while (s.heap_len >= 2);\n\n\t\ts.heap[--s.heap_max] = s.heap[1];\n\n\t\t// At this point, the fields freq and dad are set. We can now\n\t\t// generate the bit lengths.\n\n\t\tgen_bitlen(s);\n\n\t\t// The field len is now set, we can generate the bit codes\n\t\tgen_codes(tree, that.max_code, s.bl_count);\n\t};\n\n}\n\nTree._length_code = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16,\n\t\t16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20,\n\t\t20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,\n\t\t22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,\n\t\t24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,\n\t\t25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,\n\t\t26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28 ];\n\nTree.base_length = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 24, 28, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 0 ];\n\nTree.base_dist = [ 0, 1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48, 64, 96, 128, 192, 256, 384, 512, 768, 1024, 1536, 2048, 3072, 4096, 6144, 8192, 12288, 16384,\n\t\t24576 ];\n\n// Mapping from a distance to a distance code. dist is the distance - 1 and\n// must not have side effects. _dist_code[256] and _dist_code[257] are never\n// used.\nTree.d_code = function(dist) {\n\treturn ((dist) < 256 ? _dist_code[dist] : _dist_code[256 + ((dist) >>> 7)]);\n};\n\n// extra bits for each length code\nTree.extra_lbits = [ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0 ];\n\n// extra bits for each distance code\nTree.extra_dbits = [ 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13 ];\n\n// extra bits for each bit length code\nTree.extra_blbits = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7 ];\n\nTree.bl_order = [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ];\n\n// StaticTree\n\nfunction StaticTree(static_tree, extra_bits, extra_base, elems, max_length) {\n\tvar that = this;\n\tthat.static_tree = static_tree;\n\tthat.extra_bits = extra_bits;\n\tthat.extra_base = extra_base;\n\tthat.elems = elems;\n\tthat.max_length = max_length;\n}\n\nStaticTree.static_ltree = [ 12, 8, 140, 8, 76, 8, 204, 8, 44, 8, 172, 8, 108, 8, 236, 8, 28, 8, 156, 8, 92, 8, 220, 8, 60, 8, 188, 8, 124, 8, 252, 8, 2, 8,\n\t\t130, 8, 66, 8, 194, 8, 34, 8, 162, 8, 98, 8, 226, 8, 18, 8, 146, 8, 82, 8, 210, 8, 50, 8, 178, 8, 114, 8, 242, 8, 10, 8, 138, 8, 74, 8, 202, 8, 42,\n\t\t8, 170, 8, 106, 8, 234, 8, 26, 8, 154, 8, 90, 8, 218, 8, 58, 8, 186, 8, 122, 8, 250, 8, 6, 8, 134, 8, 70, 8, 198, 8, 38, 8, 166, 8, 102, 8, 230, 8,\n\t\t22, 8, 150, 8, 86, 8, 214, 8, 54, 8, 182, 8, 118, 8, 246, 8, 14, 8, 142, 8, 78, 8, 206, 8, 46, 8, 174, 8, 110, 8, 238, 8, 30, 8, 158, 8, 94, 8,\n\t\t222, 8, 62, 8, 190, 8, 126, 8, 254, 8, 1, 8, 129, 8, 65, 8, 193, 8, 33, 8, 161, 8, 97, 8, 225, 8, 17, 8, 145, 8, 81, 8, 209, 8, 49, 8, 177, 8, 113,\n\t\t8, 241, 8, 9, 8, 137, 8, 73, 8, 201, 8, 41, 8, 169, 8, 105, 8, 233, 8, 25, 8, 153, 8, 89, 8, 217, 8, 57, 8, 185, 8, 121, 8, 249, 8, 5, 8, 133, 8,\n\t\t69, 8, 197, 8, 37, 8, 165, 8, 101, 8, 229, 8, 21, 8, 149, 8, 85, 8, 213, 8, 53, 8, 181, 8, 117, 8, 245, 8, 13, 8, 141, 8, 77, 8, 205, 8, 45, 8,\n\t\t173, 8, 109, 8, 237, 8, 29, 8, 157, 8, 93, 8, 221, 8, 61, 8, 189, 8, 125, 8, 253, 8, 19, 9, 275, 9, 147, 9, 403, 9, 83, 9, 339, 9, 211, 9, 467, 9,\n\t\t51, 9, 307, 9, 179, 9, 435, 9, 115, 9, 371, 9, 243, 9, 499, 9, 11, 9, 267, 9, 139, 9, 395, 9, 75, 9, 331, 9, 203, 9, 459, 9, 43, 9, 299, 9, 171, 9,\n\t\t427, 9, 107, 9, 363, 9, 235, 9, 491, 9, 27, 9, 283, 9, 155, 9, 411, 9, 91, 9, 347, 9, 219, 9, 475, 9, 59, 9, 315, 9, 187, 9, 443, 9, 123, 9, 379,\n\t\t9, 251, 9, 507, 9, 7, 9, 263, 9, 135, 9, 391, 9, 71, 9, 327, 9, 199, 9, 455, 9, 39, 9, 295, 9, 167, 9, 423, 9, 103, 9, 359, 9, 231, 9, 487, 9, 23,\n\t\t9, 279, 9, 151, 9, 407, 9, 87, 9, 343, 9, 215, 9, 471, 9, 55, 9, 311, 9, 183, 9, 439, 9, 119, 9, 375, 9, 247, 9, 503, 9, 15, 9, 271, 9, 143, 9,\n\t\t399, 9, 79, 9, 335, 9, 207, 9, 463, 9, 47, 9, 303, 9, 175, 9, 431, 9, 111, 9, 367, 9, 239, 9, 495, 9, 31, 9, 287, 9, 159, 9, 415, 9, 95, 9, 351, 9,\n\t\t223, 9, 479, 9, 63, 9, 319, 9, 191, 9, 447, 9, 127, 9, 383, 9, 255, 9, 511, 9, 0, 7, 64, 7, 32, 7, 96, 7, 16, 7, 80, 7, 48, 7, 112, 7, 8, 7, 72, 7,\n\t\t40, 7, 104, 7, 24, 7, 88, 7, 56, 7, 120, 7, 4, 7, 68, 7, 36, 7, 100, 7, 20, 7, 84, 7, 52, 7, 116, 7, 3, 8, 131, 8, 67, 8, 195, 8, 35, 8, 163, 8,\n\t\t99, 8, 227, 8 ];\n\nStaticTree.static_dtree = [ 0, 5, 16, 5, 8, 5, 24, 5, 4, 5, 20, 5, 12, 5, 28, 5, 2, 5, 18, 5, 10, 5, 26, 5, 6, 5, 22, 5, 14, 5, 30, 5, 1, 5, 17, 5, 9, 5,\n\t\t25, 5, 5, 5, 21, 5, 13, 5, 29, 5, 3, 5, 19, 5, 11, 5, 27, 5, 7, 5, 23, 5 ];\n\nStaticTree.static_l_desc = new StaticTree(StaticTree.static_ltree, Tree.extra_lbits, LITERALS + 1, L_CODES, MAX_BITS);\n\nStaticTree.static_d_desc = new StaticTree(StaticTree.static_dtree, Tree.extra_dbits, 0, D_CODES, MAX_BITS);\n\nStaticTree.static_bl_desc = new StaticTree(null, Tree.extra_blbits, 0, BL_CODES, MAX_BL_BITS);\n\n// Deflate\n\nvar MAX_MEM_LEVEL = 9;\nvar DEF_MEM_LEVEL = 8;\n\nfunction Config(good_length, max_lazy, nice_length, max_chain, func) {\n\tvar that = this;\n\tthat.good_length = good_length;\n\tthat.max_lazy = max_lazy;\n\tthat.nice_length = nice_length;\n\tthat.max_chain = max_chain;\n\tthat.func = func;\n}\n\nvar STORED = 0;\nvar FAST = 1;\nvar SLOW = 2;\nvar config_table = [ new Config(0, 0, 0, 0, STORED), new Config(4, 4, 8, 4, FAST), new Config(4, 5, 16, 8, FAST), new Config(4, 6, 32, 32, FAST),\n\t\tnew Config(4, 4, 16, 16, SLOW), new Config(8, 16, 32, 32, SLOW), new Config(8, 16, 128, 128, SLOW), new Config(8, 32, 128, 256, SLOW),\n\t\tnew Config(32, 128, 258, 1024, SLOW), new Config(32, 258, 258, 4096, SLOW) ];\n\nvar z_errmsg = [ \"need dictionary\", // Z_NEED_DICT\n// 2\n\"stream end\", // Z_STREAM_END 1\n\"\", // Z_OK 0\n\"\", // Z_ERRNO (-1)\n\"stream error\", // Z_STREAM_ERROR (-2)\n\"data error\", // Z_DATA_ERROR (-3)\n\"\", // Z_MEM_ERROR (-4)\n\"buffer error\", // Z_BUF_ERROR (-5)\n\"\",// Z_VERSION_ERROR (-6)\n\"\" ];\n\n// block not completed, need more input or more output\nvar NeedMore = 0;\n\n// block flush performed\nvar BlockDone = 1;\n\n// finish started, need only more output at next deflate\nvar FinishStarted = 2;\n\n// finish done, accept no more input or output\nvar FinishDone = 3;\n\n// preset dictionary flag in zlib header\nvar PRESET_DICT = 0x20;\n\nvar INIT_STATE = 42;\nvar BUSY_STATE = 113;\nvar FINISH_STATE = 666;\n\n// The deflate compression method\nvar Z_DEFLATED = 8;\n\nvar STORED_BLOCK = 0;\nvar STATIC_TREES = 1;\nvar DYN_TREES = 2;\n\nvar MIN_MATCH = 3;\nvar MAX_MATCH = 258;\nvar MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1);\n\nfunction smaller(tree, n, m, depth) {\n\tvar tn2 = tree[n * 2];\n\tvar tm2 = tree[m * 2];\n\treturn (tn2 < tm2 || (tn2 == tm2 && depth[n] <= depth[m]));\n}\n\nfunction Deflate() {\n\n\tvar that = this;\n\tvar strm; // pointer back to this zlib stream\n\tvar status; // as the name implies\n\t// pending_buf; // output still pending\n\tvar pending_buf_size; // size of pending_buf\n\t// pending_out; // next pending byte to output to the stream\n\t// pending; // nb of bytes in the pending buffer\n\tvar method; // STORED (for zip only) or DEFLATED\n\tvar last_flush; // value of flush param for previous deflate call\n\n\tvar w_size; // LZ77 window size (32K by default)\n\tvar w_bits; // log2(w_size) (8..16)\n\tvar w_mask; // w_size - 1\n\n\tvar window;\n\t// Sliding window. Input bytes are read into the second half of the window,\n\t// and move to the first half later to keep a dictionary of at least wSize\n\t// bytes. With this organization, matches are limited to a distance of\n\t// wSize-MAX_MATCH bytes, but this ensures that IO is always\n\t// performed with a length multiple of the block size. Also, it limits\n\t// the window size to 64K, which is quite useful on MSDOS.\n\t// To do: use the user input buffer as sliding window.\n\n\tvar window_size;\n\t// Actual size of window: 2*wSize, except when the user input buffer\n\t// is directly used as sliding window.\n\n\tvar prev;\n\t// Link to older string with same hash index. To limit the size of this\n\t// array to 64K, this link is maintained only for the last 32K strings.\n\t// An index in this array is thus a window index modulo 32K.\n\n\tvar head; // Heads of the hash chains or NIL.\n\n\tvar ins_h; // hash index of string to be inserted\n\tvar hash_size; // number of elements in hash table\n\tvar hash_bits; // log2(hash_size)\n\tvar hash_mask; // hash_size-1\n\n\t// Number of bits by which ins_h must be shifted at each input\n\t// step. It must be such that after MIN_MATCH steps, the oldest\n\t// byte no longer takes part in the hash key, that is:\n\t// hash_shift * MIN_MATCH >= hash_bits\n\tvar hash_shift;\n\n\t// Window position at the beginning of the current output block. Gets\n\t// negative when the window is moved backwards.\n\n\tvar block_start;\n\n\tvar match_length; // length of best match\n\tvar prev_match; // previous match\n\tvar match_available; // set if previous match exists\n\tvar strstart; // start of string to insert\n\tvar match_start; // start of matching string\n\tvar lookahead; // number of valid bytes ahead in window\n\n\t// Length of the best match at previous step. Matches not greater than this\n\t// are discarded. This is used in the lazy match evaluation.\n\tvar prev_length;\n\n\t// To speed up deflation, hash chains are never searched beyond this\n\t// length. A higher limit improves compression ratio but degrades the speed.\n\tvar max_chain_length;\n\n\t// Attempt to find a better match only when the current match is strictly\n\t// smaller than this value. This mechanism is used only for compression\n\t// levels >= 4.\n\tvar max_lazy_match;\n\n\t// Insert new strings in the hash table only if the match length is not\n\t// greater than this length. This saves time but degrades compression.\n\t// max_insert_length is used only for compression levels <= 3.\n\n\tvar level; // compression level (1..9)\n\tvar strategy; // favor or force Huffman coding\n\n\t// Use a faster search when the previous match is longer than this\n\tvar good_match;\n\n\t// Stop searching when current match exceeds this\n\tvar nice_match;\n\n\tvar dyn_ltree; // literal and length tree\n\tvar dyn_dtree; // distance tree\n\tvar bl_tree; // Huffman tree for bit lengths\n\n\tvar l_desc = new Tree(); // desc for literal tree\n\tvar d_desc = new Tree(); // desc for distance tree\n\tvar bl_desc = new Tree(); // desc for bit length tree\n\n\t// that.heap_len; // number of elements in the heap\n\t// that.heap_max; // element of largest frequency\n\t// The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.\n\t// The same heap array is used to build all trees.\n\n\t// Depth of each subtree used as tie breaker for trees of equal frequency\n\tthat.depth = [];\n\n\tvar l_buf; // index for literals or lengths */\n\n\t// Size of match buffer for literals/lengths. There are 4 reasons for\n\t// limiting lit_bufsize to 64K:\n\t// - frequencies can be kept in 16 bit counters\n\t// - if compression is not successful for the first block, all input\n\t// data is still in the window so we can still emit a stored block even\n\t// when input comes from standard input. (This can also be done for\n\t// all blocks if lit_bufsize is not greater than 32K.)\n\t// - if compression is not successful for a file smaller than 64K, we can\n\t// even emit a stored file instead of a stored block (saving 5 bytes).\n\t// This is applicable only for zip (not gzip or zlib).\n\t// - creating new Huffman trees less frequently may not provide fast\n\t// adaptation to changes in the input data statistics. (Take for\n\t// example a binary file with poorly compressible code followed by\n\t// a highly compressible string table.) Smaller buffer sizes give\n\t// fast adaptation but have of course the overhead of transmitting\n\t// trees more frequently.\n\t// - I can't count above 4\n\tvar lit_bufsize;\n\n\tvar last_lit; // running index in l_buf\n\n\t// Buffer for distances. To simplify the code, d_buf and l_buf have\n\t// the same number of elements. To use different lengths, an extra flag\n\t// array would be necessary.\n\n\tvar d_buf; // index of pendig_buf\n\n\t// that.opt_len; // bit length of current block with optimal trees\n\t// that.static_len; // bit length of current block with static trees\n\tvar matches; // number of string matches in current block\n\tvar last_eob_len; // bit length of EOB code for last block\n\n\t// Output buffer. bits are inserted starting at the bottom (least\n\t// significant bits).\n\tvar bi_buf;\n\n\t// Number of valid bits in bi_buf. All bits above the last valid bit\n\t// are always zero.\n\tvar bi_valid;\n\n\t// number of codes at each bit length for an optimal tree\n\tthat.bl_count = [];\n\n\t// heap used to build the Huffman trees\n\tthat.heap = [];\n\n\tdyn_ltree = [];\n\tdyn_dtree = [];\n\tbl_tree = [];\n\n\tfunction lm_init() {\n\t\tvar i;\n\t\twindow_size = 2 * w_size;\n\n\t\thead[hash_size - 1] = 0;\n\t\tfor (i = 0; i < hash_size - 1; i++) {\n\t\t\thead[i] = 0;\n\t\t}\n\n\t\t// Set the default configuration parameters:\n\t\tmax_lazy_match = config_table[level].max_lazy;\n\t\tgood_match = config_table[level].good_length;\n\t\tnice_match = config_table[level].nice_length;\n\t\tmax_chain_length = config_table[level].max_chain;\n\n\t\tstrstart = 0;\n\t\tblock_start = 0;\n\t\tlookahead = 0;\n\t\tmatch_length = prev_length = MIN_MATCH - 1;\n\t\tmatch_available = 0;\n\t\tins_h = 0;\n\t}\n\n\tfunction init_block() {\n\t\tvar i;\n\t\t// Initialize the trees.\n\t\tfor (i = 0; i < L_CODES; i++)\n\t\t\tdyn_ltree[i * 2] = 0;\n\t\tfor (i = 0; i < D_CODES; i++)\n\t\t\tdyn_dtree[i * 2] = 0;\n\t\tfor (i = 0; i < BL_CODES; i++)\n\t\t\tbl_tree[i * 2] = 0;\n\n\t\tdyn_ltree[END_BLOCK * 2] = 1;\n\t\tthat.opt_len = that.static_len = 0;\n\t\tlast_lit = matches = 0;\n\t}\n\n\t// Initialize the tree data structures for a new zlib stream.\n\tfunction tr_init() {\n\n\t\tl_desc.dyn_tree = dyn_ltree;\n\t\tl_desc.stat_desc = StaticTree.static_l_desc;\n\n\t\td_desc.dyn_tree = dyn_dtree;\n\t\td_desc.stat_desc = StaticTree.static_d_desc;\n\n\t\tbl_desc.dyn_tree = bl_tree;\n\t\tbl_desc.stat_desc = StaticTree.static_bl_desc;\n\n\t\tbi_buf = 0;\n\t\tbi_valid = 0;\n\t\tlast_eob_len = 8; // enough lookahead for inflate\n\n\t\t// Initialize the first block of the first file:\n\t\tinit_block();\n\t}\n\n\t// Restore the heap property by moving down the tree starting at node k,\n\t// exchanging a node with the smallest of its two sons if necessary,\n\t// stopping\n\t// when the heap property is re-established (each father smaller than its\n\t// two sons).\n\tthat.pqdownheap = function(tree, // the tree to restore\n\tk // node to move down\n\t) {\n\t\tvar heap = that.heap;\n\t\tvar v = heap[k];\n\t\tvar j = k << 1; // left son of k\n\t\twhile (j <= that.heap_len) {\n\t\t\t// Set j to the smallest of the two sons:\n\t\t\tif (j < that.heap_len && smaller(tree, heap[j + 1], heap[j], that.depth)) {\n\t\t\t\tj++;\n\t\t\t}\n\t\t\t// Exit if v is smaller than both sons\n\t\t\tif (smaller(tree, v, heap[j], that.depth))\n\t\t\t\tbreak;\n\n\t\t\t// Exchange v with the smallest son\n\t\t\theap[k] = heap[j];\n\t\t\tk = j;\n\t\t\t// And continue down the tree, setting j to the left son of k\n\t\t\tj <<= 1;\n\t\t}\n\t\theap[k] = v;\n\t};\n\n\t// Scan a literal or distance tree to determine the frequencies of the codes\n\t// in the bit length tree.\n\tfunction scan_tree(tree,// the tree to be scanned\n\tmax_code // and its largest code of non zero frequency\n\t) {\n\t\tvar n; // iterates over all tree elements\n\t\tvar prevlen = -1; // last emitted length\n\t\tvar curlen; // length of current code\n\t\tvar nextlen = tree[0 * 2 + 1]; // length of next code\n\t\tvar count = 0; // repeat count of the current code\n\t\tvar max_count = 7; // max repeat count\n\t\tvar min_count = 4; // min repeat count\n\n\t\tif (nextlen === 0) {\n\t\t\tmax_count = 138;\n\t\t\tmin_count = 3;\n\t\t}\n\t\ttree[(max_code + 1) * 2 + 1] = 0xffff; // guard\n\n\t\tfor (n = 0; n <= max_code; n++) {\n\t\t\tcurlen = nextlen;\n\t\t\tnextlen = tree[(n + 1) * 2 + 1];\n\t\t\tif (++count < max_count && curlen == nextlen) {\n\t\t\t\tcontinue;\n\t\t\t} else if (count < min_count) {\n\t\t\t\tbl_tree[curlen * 2] += count;\n\t\t\t} else if (curlen !== 0) {\n\t\t\t\tif (curlen != prevlen)\n\t\t\t\t\tbl_tree[curlen * 2]++;\n\t\t\t\tbl_tree[REP_3_6 * 2]++;\n\t\t\t} else if (count <= 10) {\n\t\t\t\tbl_tree[REPZ_3_10 * 2]++;\n\t\t\t} else {\n\t\t\t\tbl_tree[REPZ_11_138 * 2]++;\n\t\t\t}\n\t\t\tcount = 0;\n\t\t\tprevlen = curlen;\n\t\t\tif (nextlen === 0) {\n\t\t\t\tmax_count = 138;\n\t\t\t\tmin_count = 3;\n\t\t\t} else if (curlen == nextlen) {\n\t\t\t\tmax_count = 6;\n\t\t\t\tmin_count = 3;\n\t\t\t} else {\n\t\t\t\tmax_count = 7;\n\t\t\t\tmin_count = 4;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Construct the Huffman tree for the bit lengths and return the index in\n\t// bl_order of the last bit length code to send.\n\tfunction build_bl_tree() {\n\t\tvar max_blindex; // index of last bit length code of non zero freq\n\n\t\t// Determine the bit length frequencies for literal and distance trees\n\t\tscan_tree(dyn_ltree, l_desc.max_code);\n\t\tscan_tree(dyn_dtree, d_desc.max_code);\n\n\t\t// Build the bit length tree:\n\t\tbl_desc.build_tree(that);\n\t\t// opt_len now includes the length of the tree representations, except\n\t\t// the lengths of the bit lengths codes and the 5+5+4 bits for the\n\t\t// counts.\n\n\t\t// Determine the number of bit length codes to send. The pkzip format\n\t\t// requires that at least 4 bit length codes be sent. (appnote.txt says\n\t\t// 3 but the actual value used is 4.)\n\t\tfor (max_blindex = BL_CODES - 1; max_blindex >= 3; max_blindex--) {\n\t\t\tif (bl_tree[Tree.bl_order[max_blindex] * 2 + 1] !== 0)\n\t\t\t\tbreak;\n\t\t}\n\t\t// Update opt_len to include the bit length tree and counts\n\t\tthat.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4;\n\n\t\treturn max_blindex;\n\t}\n\n\t// Output a byte on the stream.\n\t// IN assertion: there is enough room in pending_buf.\n\tfunction put_byte(p) {\n\t\tthat.pending_buf[that.pending++] = p;\n\t}\n\n\tfunction put_short(w) {\n\t\tput_byte(w & 0xff);\n\t\tput_byte((w >>> 8) & 0xff);\n\t}\n\n\tfunction putShortMSB(b) {\n\t\tput_byte((b >> 8) & 0xff);\n\t\tput_byte((b & 0xff) & 0xff);\n\t}\n\n\tfunction send_bits(value, length) {\n\t\tvar val, len = length;\n\t\tif (bi_valid > Buf_size - len) {\n\t\t\tval = value;\n\t\t\t// bi_buf |= (val << bi_valid);\n\t\t\tbi_buf |= ((val << bi_valid) & 0xffff);\n\t\t\tput_short(bi_buf);\n\t\t\tbi_buf = val >>> (Buf_size - bi_valid);\n\t\t\tbi_valid += len - Buf_size;\n\t\t} else {\n\t\t\t// bi_buf |= (value) << bi_valid;\n\t\t\tbi_buf |= (((value) << bi_valid) & 0xffff);\n\t\t\tbi_valid += len;\n\t\t}\n\t}\n\n\tfunction send_code(c, tree) {\n\t\tvar c2 = c * 2;\n\t\tsend_bits(tree[c2] & 0xffff, tree[c2 + 1] & 0xffff);\n\t}\n\n\t// Send a literal or distance tree in compressed form, using the codes in\n\t// bl_tree.\n\tfunction send_tree(tree,// the tree to be sent\n\tmax_code // and its largest code of non zero frequency\n\t) {\n\t\tvar n; // iterates over all tree elements\n\t\tvar prevlen = -1; // last emitted length\n\t\tvar curlen; // length of current code\n\t\tvar nextlen = tree[0 * 2 + 1]; // length of next code\n\t\tvar count = 0; // repeat count of the current code\n\t\tvar max_count = 7; // max repeat count\n\t\tvar min_count = 4; // min repeat count\n\n\t\tif (nextlen === 0) {\n\t\t\tmax_count = 138;\n\t\t\tmin_count = 3;\n\t\t}\n\n\t\tfor (n = 0; n <= max_code; n++) {\n\t\t\tcurlen = nextlen;\n\t\t\tnextlen = tree[(n + 1) * 2 + 1];\n\t\t\tif (++count < max_count && curlen == nextlen) {\n\t\t\t\tcontinue;\n\t\t\t} else if (count < min_count) {\n\t\t\t\tdo {\n\t\t\t\t\tsend_code(curlen, bl_tree);\n\t\t\t\t} while (--count !== 0);\n\t\t\t} else if (curlen !== 0) {\n\t\t\t\tif (curlen != prevlen) {\n\t\t\t\t\tsend_code(curlen, bl_tree);\n\t\t\t\t\tcount--;\n\t\t\t\t}\n\t\t\t\tsend_code(REP_3_6, bl_tree);\n\t\t\t\tsend_bits(count - 3, 2);\n\t\t\t} else if (count <= 10) {\n\t\t\t\tsend_code(REPZ_3_10, bl_tree);\n\t\t\t\tsend_bits(count - 3, 3);\n\t\t\t} else {\n\t\t\t\tsend_code(REPZ_11_138, bl_tree);\n\t\t\t\tsend_bits(count - 11, 7);\n\t\t\t}\n\t\t\tcount = 0;\n\t\t\tprevlen = curlen;\n\t\t\tif (nextlen === 0) {\n\t\t\t\tmax_count = 138;\n\t\t\t\tmin_count = 3;\n\t\t\t} else if (curlen == nextlen) {\n\t\t\t\tmax_count = 6;\n\t\t\t\tmin_count = 3;\n\t\t\t} else {\n\t\t\t\tmax_count = 7;\n\t\t\t\tmin_count = 4;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Send the header for a block using dynamic Huffman trees: the counts, the\n\t// lengths of the bit length codes, the literal tree and the distance tree.\n\t// IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.\n\tfunction send_all_trees(lcodes, dcodes, blcodes) {\n\t\tvar rank; // index in bl_order\n\n\t\tsend_bits(lcodes - 257, 5); // not +255 as stated in appnote.txt\n\t\tsend_bits(dcodes - 1, 5);\n\t\tsend_bits(blcodes - 4, 4); // not -3 as stated in appnote.txt\n\t\tfor (rank = 0; rank < blcodes; rank++) {\n\t\t\tsend_bits(bl_tree[Tree.bl_order[rank] * 2 + 1], 3);\n\t\t}\n\t\tsend_tree(dyn_ltree, lcodes - 1); // literal tree\n\t\tsend_tree(dyn_dtree, dcodes - 1); // distance tree\n\t}\n\n\t// Flush the bit buffer, keeping at most 7 bits in it.\n\tfunction bi_flush() {\n\t\tif (bi_valid == 16) {\n\t\t\tput_short(bi_buf);\n\t\t\tbi_buf = 0;\n\t\t\tbi_valid = 0;\n\t\t} else if (bi_valid >= 8) {\n\t\t\tput_byte(bi_buf & 0xff);\n\t\t\tbi_buf >>>= 8;\n\t\t\tbi_valid -= 8;\n\t\t}\n\t}\n\n\t// Send one empty static block to give enough lookahead for inflate.\n\t// This takes 10 bits, of which 7 may remain in the bit buffer.\n\t// The current inflate code requires 9 bits of lookahead. If the\n\t// last two codes for the previous block (real code plus EOB) were coded\n\t// on 5 bits or less, inflate may have only 5+3 bits of lookahead to decode\n\t// the last real code. In this case we send two empty static blocks instead\n\t// of one. (There are no problems if the previous block is stored or fixed.)\n\t// To simplify the code, we assume the worst case of last real code encoded\n\t// on one bit only.\n\tfunction _tr_align() {\n\t\tsend_bits(STATIC_TREES << 1, 3);\n\t\tsend_code(END_BLOCK, StaticTree.static_ltree);\n\n\t\tbi_flush();\n\n\t\t// Of the 10 bits for the empty block, we have already sent\n\t\t// (10 - bi_valid) bits. The lookahead for the last real code (before\n\t\t// the EOB of the previous block) was thus at least one plus the length\n\t\t// of the EOB plus what we have just sent of the empty static block.\n\t\tif (1 + last_eob_len + 10 - bi_valid < 9) {\n\t\t\tsend_bits(STATIC_TREES << 1, 3);\n\t\t\tsend_code(END_BLOCK, StaticTree.static_ltree);\n\t\t\tbi_flush();\n\t\t}\n\t\tlast_eob_len = 7;\n\t}\n\n\t// Save the match info and tally the frequency counts. Return true if\n\t// the current block must be flushed.\n\tfunction _tr_tally(dist, // distance of matched string\n\tlc // match length-MIN_MATCH or unmatched char (if dist==0)\n\t) {\n\t\tvar out_length, in_length, dcode;\n\t\tthat.pending_buf[d_buf + last_lit * 2] = (dist >>> 8) & 0xff;\n\t\tthat.pending_buf[d_buf + last_lit * 2 + 1] = dist & 0xff;\n\n\t\tthat.pending_buf[l_buf + last_lit] = lc & 0xff;\n\t\tlast_lit++;\n\n\t\tif (dist === 0) {\n\t\t\t// lc is the unmatched char\n\t\t\tdyn_ltree[lc * 2]++;\n\t\t} else {\n\t\t\tmatches++;\n\t\t\t// Here, lc is the match length - MIN_MATCH\n\t\t\tdist--; // dist = match distance - 1\n\t\t\tdyn_ltree[(Tree._length_code[lc] + LITERALS + 1) * 2]++;\n\t\t\tdyn_dtree[Tree.d_code(dist) * 2]++;\n\t\t}\n\n\t\tif ((last_lit & 0x1fff) === 0 && level > 2) {\n\t\t\t// Compute an upper bound for the compressed length\n\t\t\tout_length = last_lit * 8;\n\t\t\tin_length = strstart - block_start;\n\t\t\tfor (dcode = 0; dcode < D_CODES; dcode++) {\n\t\t\t\tout_length += dyn_dtree[dcode * 2] * (5 + Tree.extra_dbits[dcode]);\n\t\t\t}\n\t\t\tout_length >>>= 3;\n\t\t\tif ((matches < Math.floor(last_lit / 2)) && out_length < Math.floor(in_length / 2))\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn (last_lit == lit_bufsize - 1);\n\t\t// We avoid equality with lit_bufsize because of wraparound at 64K\n\t\t// on 16 bit machines and because stored blocks are restricted to\n\t\t// 64K-1 bytes.\n\t}\n\n\t// Send the block data compressed using the given Huffman trees\n\tfunction compress_block(ltree, dtree) {\n\t\tvar dist; // distance of matched string\n\t\tvar lc; // match length or unmatched char (if dist === 0)\n\t\tvar lx = 0; // running index in l_buf\n\t\tvar code; // the code to send\n\t\tvar extra; // number of extra bits to send\n\n\t\tif (last_lit !== 0) {\n\t\t\tdo {\n\t\t\t\tdist = ((that.pending_buf[d_buf + lx * 2] << 8) & 0xff00) | (that.pending_buf[d_buf + lx * 2 + 1] & 0xff);\n\t\t\t\tlc = (that.pending_buf[l_buf + lx]) & 0xff;\n\t\t\t\tlx++;\n\n\t\t\t\tif (dist === 0) {\n\t\t\t\t\tsend_code(lc, ltree); // send a literal byte\n\t\t\t\t} else {\n\t\t\t\t\t// Here, lc is the match length - MIN_MATCH\n\t\t\t\t\tcode = Tree._length_code[lc];\n\n\t\t\t\t\tsend_code(code + LITERALS + 1, ltree); // send the length\n\t\t\t\t\t// code\n\t\t\t\t\textra = Tree.extra_lbits[code];\n\t\t\t\t\tif (extra !== 0) {\n\t\t\t\t\t\tlc -= Tree.base_length[code];\n\t\t\t\t\t\tsend_bits(lc, extra); // send the extra length bits\n\t\t\t\t\t}\n\t\t\t\t\tdist--; // dist is now the match distance - 1\n\t\t\t\t\tcode = Tree.d_code(dist);\n\n\t\t\t\t\tsend_code(code, dtree); // send the distance code\n\t\t\t\t\textra = Tree.extra_dbits[code];\n\t\t\t\t\tif (extra !== 0) {\n\t\t\t\t\t\tdist -= Tree.base_dist[code];\n\t\t\t\t\t\tsend_bits(dist, extra); // send the extra distance bits\n\t\t\t\t\t}\n\t\t\t\t} // literal or match pair ?\n\n\t\t\t\t// Check that the overlay between pending_buf and d_buf+l_buf is\n\t\t\t\t// ok:\n\t\t\t} while (lx < last_lit);\n\t\t}\n\n\t\tsend_code(END_BLOCK, ltree);\n\t\tlast_eob_len = ltree[END_BLOCK * 2 + 1];\n\t}\n\n\t// Flush the bit buffer and align the output on a byte boundary\n\tfunction bi_windup() {\n\t\tif (bi_valid > 8) {\n\t\t\tput_short(bi_buf);\n\t\t} else if (bi_valid > 0) {\n\t\t\tput_byte(bi_buf & 0xff);\n\t\t}\n\t\tbi_buf = 0;\n\t\tbi_valid = 0;\n\t}\n\n\t// Copy a stored block, storing first the length and its\n\t// one's complement if requested.\n\tfunction copy_block(buf, // the input data\n\tlen, // its length\n\theader // true if block header must be written\n\t) {\n\t\tbi_windup(); // align on byte boundary\n\t\tlast_eob_len = 8; // enough lookahead for inflate\n\n\t\tif (header) {\n\t\t\tput_short(len);\n\t\t\tput_short(~len);\n\t\t}\n\n\t\tthat.pending_buf.set(window.subarray(buf, buf + len), that.pending);\n\t\tthat.pending += len;\n\t}\n\n\t// Send a stored block\n\tfunction _tr_stored_block(buf, // input block\n\tstored_len, // length of input block\n\teof // true if this is the last block for a file\n\t) {\n\t\tsend_bits((STORED_BLOCK << 1) + (eof ? 1 : 0), 3); // send block type\n\t\tcopy_block(buf, stored_len, true); // with header\n\t}\n\n\t// Determine the best encoding for the current block: dynamic trees, static\n\t// trees or store, and output the encoded block to the zip file.\n\tfunction _tr_flush_block(buf, // input block, or NULL if too old\n\tstored_len, // length of input block\n\teof // true if this is the last block for a file\n\t) {\n\t\tvar opt_lenb, static_lenb;// opt_len and static_len in bytes\n\t\tvar max_blindex = 0; // index of last bit length code of non zero freq\n\n\t\t// Build the Huffman trees unless a stored block is forced\n\t\tif (level > 0) {\n\t\t\t// Construct the literal and distance trees\n\t\t\tl_desc.build_tree(that);\n\n\t\t\td_desc.build_tree(that);\n\n\t\t\t// At this point, opt_len and static_len are the total bit lengths\n\t\t\t// of\n\t\t\t// the compressed block data, excluding the tree representations.\n\n\t\t\t// Build the bit length tree for the above two trees, and get the\n\t\t\t// index\n\t\t\t// in bl_order of the last bit length code to send.\n\t\t\tmax_blindex = build_bl_tree();\n\n\t\t\t// Determine the best encoding. Compute first the block length in\n\t\t\t// bytes\n\t\t\topt_lenb = (that.opt_len + 3 + 7) >>> 3;\n\t\t\tstatic_lenb = (that.static_len + 3 + 7) >>> 3;\n\n\t\t\tif (static_lenb <= opt_lenb)\n\t\t\t\topt_lenb = static_lenb;\n\t\t} else {\n\t\t\topt_lenb = static_lenb = stored_len + 5; // force a stored block\n\t\t}\n\n\t\tif ((stored_len + 4 <= opt_lenb) && buf != -1) {\n\t\t\t// 4: two words for the lengths\n\t\t\t// The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.\n\t\t\t// Otherwise we can't have processed more than WSIZE input bytes\n\t\t\t// since\n\t\t\t// the last block flush, because compression would have been\n\t\t\t// successful. If LIT_BUFSIZE <= WSIZE, it is never too late to\n\t\t\t// transform a block into a stored block.\n\t\t\t_tr_stored_block(buf, stored_len, eof);\n\t\t} else if (static_lenb == opt_lenb) {\n\t\t\tsend_bits((STATIC_TREES << 1) + (eof ? 1 : 0), 3);\n\t\t\tcompress_block(StaticTree.static_ltree, StaticTree.static_dtree);\n\t\t} else {\n\t\t\tsend_bits((DYN_TREES << 1) + (eof ? 1 : 0), 3);\n\t\t\tsend_all_trees(l_desc.max_code + 1, d_desc.max_code + 1, max_blindex + 1);\n\t\t\tcompress_block(dyn_ltree, dyn_dtree);\n\t\t}\n\n\t\t// The above check is made mod 2^32, for files larger than 512 MB\n\t\t// and uLong implemented on 32 bits.\n\n\t\tinit_block();\n\n\t\tif (eof) {\n\t\t\tbi_windup();\n\t\t}\n\t}\n\n\tfunction flush_block_only(eof) {\n\t\t_tr_flush_block(block_start >= 0 ? block_start : -1, strstart - block_start, eof);\n\t\tblock_start = strstart;\n\t\tstrm.flush_pending();\n\t}\n\n\t// Fill the window when the lookahead becomes insufficient.\n\t// Updates strstart and lookahead.\n\t//\n\t// IN assertion: lookahead < MIN_LOOKAHEAD\n\t// OUT assertions: strstart <= window_size-MIN_LOOKAHEAD\n\t// At least one byte has been read, or avail_in === 0; reads are\n\t// performed for at least two bytes (required for the zip translate_eol\n\t// option -- not supported here).\n\tfunction fill_window() {\n\t\tvar n, m;\n\t\tvar p;\n\t\tvar more; // Amount of free space at the end of the window.\n\n\t\tdo {\n\t\t\tmore = (window_size - lookahead - strstart);\n\n\t\t\t// Deal with !@#$% 64K limit:\n\t\t\tif (more === 0 && strstart === 0 && lookahead === 0) {\n\t\t\t\tmore = w_size;\n\t\t\t} else if (more == -1) {\n\t\t\t\t// Very unlikely, but possible on 16 bit machine if strstart ==\n\t\t\t\t// 0\n\t\t\t\t// and lookahead == 1 (input done one byte at time)\n\t\t\t\tmore--;\n\n\t\t\t\t// If the window is almost full and there is insufficient\n\t\t\t\t// lookahead,\n\t\t\t\t// move the upper half to the lower one to make room in the\n\t\t\t\t// upper half.\n\t\t\t} else if (strstart >= w_size + w_size - MIN_LOOKAHEAD) {\n\t\t\t\twindow.set(window.subarray(w_size, w_size + w_size), 0);\n\n\t\t\t\tmatch_start -= w_size;\n\t\t\t\tstrstart -= w_size; // we now have strstart >= MAX_DIST\n\t\t\t\tblock_start -= w_size;\n\n\t\t\t\t// Slide the hash table (could be avoided with 32 bit values\n\t\t\t\t// at the expense of memory usage). We slide even when level ==\n\t\t\t\t// 0\n\t\t\t\t// to keep the hash table consistent if we switch back to level\n\t\t\t\t// > 0\n\t\t\t\t// later. (Using level 0 permanently is not an optimal usage of\n\t\t\t\t// zlib, so we don't care about this pathological case.)\n\n\t\t\t\tn = hash_size;\n\t\t\t\tp = n;\n\t\t\t\tdo {\n\t\t\t\t\tm = (head[--p] & 0xffff);\n\t\t\t\t\thead[p] = (m >= w_size ? m - w_size : 0);\n\t\t\t\t} while (--n !== 0);\n\n\t\t\t\tn = w_size;\n\t\t\t\tp = n;\n\t\t\t\tdo {\n\t\t\t\t\tm = (prev[--p] & 0xffff);\n\t\t\t\t\tprev[p] = (m >= w_size ? m - w_size : 0);\n\t\t\t\t\t// If n is not on any hash chain, prev[n] is garbage but\n\t\t\t\t\t// its value will never be used.\n\t\t\t\t} while (--n !== 0);\n\t\t\t\tmore += w_size;\n\t\t\t}\n\n\t\t\tif (strm.avail_in === 0)\n\t\t\t\treturn;\n\n\t\t\t// If there was no sliding:\n\t\t\t// strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&\n\t\t\t// more == window_size - lookahead - strstart\n\t\t\t// => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)\n\t\t\t// => more >= window_size - 2*WSIZE + 2\n\t\t\t// In the BIG_MEM or MMAP case (not yet supported),\n\t\t\t// window_size == input_size + MIN_LOOKAHEAD &&\n\t\t\t// strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.\n\t\t\t// Otherwise, window_size == 2*WSIZE so more >= 2.\n\t\t\t// If there was sliding, more >= WSIZE. So in all cases, more >= 2.\n\n\t\t\tn = strm.read_buf(window, strstart + lookahead, more);\n\t\t\tlookahead += n;\n\n\t\t\t// Initialize the hash value now that we have some input:\n\t\t\tif (lookahead >= MIN_MATCH) {\n\t\t\t\tins_h = window[strstart] & 0xff;\n\t\t\t\tins_h = (((ins_h) << hash_shift) ^ (window[strstart + 1] & 0xff)) & hash_mask;\n\t\t\t}\n\t\t\t// If the whole input has less than MIN_MATCH bytes, ins_h is\n\t\t\t// garbage,\n\t\t\t// but this is not important since only literal bytes will be\n\t\t\t// emitted.\n\t\t} while (lookahead < MIN_LOOKAHEAD && strm.avail_in !== 0);\n\t}\n\n\t// Copy without compression as much as possible from the input stream,\n\t// return\n\t// the current block state.\n\t// This function does not insert new strings in the dictionary since\n\t// uncompressible data is probably not useful. This function is used\n\t// only for the level=0 compression option.\n\t// NOTE: this function should be optimized to avoid extra copying from\n\t// window to pending_buf.\n\tfunction deflate_stored(flush) {\n\t\t// Stored blocks are limited to 0xffff bytes, pending_buf is limited\n\t\t// to pending_buf_size, and each stored block has a 5 byte header:\n\n\t\tvar max_block_size = 0xffff;\n\t\tvar max_start;\n\n\t\tif (max_block_size > pending_buf_size - 5) {\n\t\t\tmax_block_size = pending_buf_size - 5;\n\t\t}\n\n\t\t// Copy as much as possible from input to output:\n\t\twhile (true) {\n\t\t\t// Fill the window as much as possible:\n\t\t\tif (lookahead <= 1) {\n\t\t\t\tfill_window();\n\t\t\t\tif (lookahead === 0 && flush == Z_NO_FLUSH)\n\t\t\t\t\treturn NeedMore;\n\t\t\t\tif (lookahead === 0)\n\t\t\t\t\tbreak; // flush the current block\n\t\t\t}\n\n\t\t\tstrstart += lookahead;\n\t\t\tlookahead = 0;\n\n\t\t\t// Emit a stored block if pending_buf will be full:\n\t\t\tmax_start = block_start + max_block_size;\n\t\t\tif (strstart === 0 || strstart >= max_start) {\n\t\t\t\t// strstart === 0 is possible when wraparound on 16-bit machine\n\t\t\t\tlookahead = (strstart - max_start);\n\t\t\t\tstrstart = max_start;\n\n\t\t\t\tflush_block_only(false);\n\t\t\t\tif (strm.avail_out === 0)\n\t\t\t\t\treturn NeedMore;\n\n\t\t\t}\n\n\t\t\t// Flush if we may have to slide, otherwise block_start may become\n\t\t\t// negative and the data will be gone:\n\t\t\tif (strstart - block_start >= w_size - MIN_LOOKAHEAD) {\n\t\t\t\tflush_block_only(false);\n\t\t\t\tif (strm.avail_out === 0)\n\t\t\t\t\treturn NeedMore;\n\t\t\t}\n\t\t}\n\n\t\tflush_block_only(flush == Z_FINISH);\n\t\tif (strm.avail_out === 0)\n\t\t\treturn (flush == Z_FINISH) ? FinishStarted : NeedMore;\n\n\t\treturn flush == Z_FINISH ? FinishDone : BlockDone;\n\t}\n\n\tfunction longest_match(cur_match) {\n\t\tvar chain_length = max_chain_length; // max hash chain length\n\t\tvar scan = strstart; // current string\n\t\tvar match; // matched string\n\t\tvar len; // length of current match\n\t\tvar best_len = prev_length; // best match length so far\n\t\tvar limit = strstart > (w_size - MIN_LOOKAHEAD) ? strstart - (w_size - MIN_LOOKAHEAD) : 0;\n\t\tvar _nice_match = nice_match;\n\n\t\t// Stop when cur_match becomes <= limit. To simplify the code,\n\t\t// we prevent matches with the string of window index 0.\n\n\t\tvar wmask = w_mask;\n\n\t\tvar strend = strstart + MAX_MATCH;\n\t\tvar scan_end1 = window[scan + best_len - 1];\n\t\tvar scan_end = window[scan + best_len];\n\n\t\t// The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of\n\t\t// 16.\n\t\t// It is easy to get rid of this optimization if necessary.\n\n\t\t// Do not waste too much time if we already have a good match:\n\t\tif (prev_length >= good_match) {\n\t\t\tchain_length >>= 2;\n\t\t}\n\n\t\t// Do not look for matches beyond the end of the input. This is\n\t\t// necessary\n\t\t// to make deflate deterministic.\n\t\tif (_nice_match > lookahead)\n\t\t\t_nice_match = lookahead;\n\n\t\tdo {\n\t\t\tmatch = cur_match;\n\n\t\t\t// Skip to next match if the match length cannot increase\n\t\t\t// or if the match length is less than 2:\n\t\t\tif (window[match + best_len] != scan_end || window[match + best_len - 1] != scan_end1 || window[match] != window[scan]\n\t\t\t\t\t|| window[++match] != window[scan + 1])\n\t\t\t\tcontinue;\n\n\t\t\t// The check at best_len-1 can be removed because it will be made\n\t\t\t// again later. (This heuristic is not always a win.)\n\t\t\t// It is not necessary to compare scan[2] and match[2] since they\n\t\t\t// are always equal when the other bytes match, given that\n\t\t\t// the hash keys are equal and that HASH_BITS >= 8.\n\t\t\tscan += 2;\n\t\t\tmatch++;\n\n\t\t\t// We check for insufficient lookahead only every 8th comparison;\n\t\t\t// the 256th check will be made at strstart+258.\n\t\t\tdo {\n\t\t\t} while (window[++scan] == window[++match] && window[++scan] == window[++match] && window[++scan] == window[++match]\n\t\t\t\t\t&& window[++scan] == window[++match] && window[++scan] == window[++match] && window[++scan] == window[++match]\n\t\t\t\t\t&& window[++scan] == window[++match] && window[++scan] == window[++match] && scan < strend);\n\n\t\t\tlen = MAX_MATCH - (strend - scan);\n\t\t\tscan = strend - MAX_MATCH;\n\n\t\t\tif (len > best_len) {\n\t\t\t\tmatch_start = cur_match;\n\t\t\t\tbest_len = len;\n\t\t\t\tif (len >= _nice_match)\n\t\t\t\t\tbreak;\n\t\t\t\tscan_end1 = window[scan + best_len - 1];\n\t\t\t\tscan_end = window[scan + best_len];\n\t\t\t}\n\n\t\t} while ((cur_match = (prev[cur_match & wmask] & 0xffff)) > limit && --chain_length !== 0);\n\n\t\tif (best_len <= lookahead)\n\t\t\treturn best_len;\n\t\treturn lookahead;\n\t}\n\n\t// Compress as much as possible from the input stream, return the current\n\t// block state.\n\t// This function does not perform lazy evaluation of matches and inserts\n\t// new strings in the dictionary only for unmatched strings or for short\n\t// matches. It is used only for the fast compression options.\n\tfunction deflate_fast(flush) {\n\t\t// short hash_head = 0; // head of the hash chain\n\t\tvar hash_head = 0; // head of the hash chain\n\t\tvar bflush; // set if current block must be flushed\n\n\t\twhile (true) {\n\t\t\t// Make sure that we always have enough lookahead, except\n\t\t\t// at the end of the input file. We need MAX_MATCH bytes\n\t\t\t// for the next match, plus MIN_MATCH bytes to insert the\n\t\t\t// string following the next match.\n\t\t\tif (lookahead < MIN_LOOKAHEAD) {\n\t\t\t\tfill_window();\n\t\t\t\tif (lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {\n\t\t\t\t\treturn NeedMore;\n\t\t\t\t}\n\t\t\t\tif (lookahead === 0)\n\t\t\t\t\tbreak; // flush the current block\n\t\t\t}\n\n\t\t\t// Insert the string window[strstart .. strstart+2] in the\n\t\t\t// dictionary, and set hash_head to the head of the hash chain:\n\t\t\tif (lookahead >= MIN_MATCH) {\n\t\t\t\tins_h = (((ins_h) << hash_shift) ^ (window[(strstart) + (MIN_MATCH - 1)] & 0xff)) & hash_mask;\n\n\t\t\t\t// prev[strstart&w_mask]=hash_head=head[ins_h];\n\t\t\t\thash_head = (head[ins_h] & 0xffff);\n\t\t\t\tprev[strstart & w_mask] = head[ins_h];\n\t\t\t\thead[ins_h] = strstart;\n\t\t\t}\n\n\t\t\t// Find the longest match, discarding those <= prev_length.\n\t\t\t// At this point we have always match_length < MIN_MATCH\n\n\t\t\tif (hash_head !== 0 && ((strstart - hash_head) & 0xffff) <= w_size - MIN_LOOKAHEAD) {\n\t\t\t\t// To simplify the code, we prevent matches with the string\n\t\t\t\t// of window index 0 (in particular we have to avoid a match\n\t\t\t\t// of the string with itself at the start of the input file).\n\t\t\t\tif (strategy != Z_HUFFMAN_ONLY) {\n\t\t\t\t\tmatch_length = longest_match(hash_head);\n\t\t\t\t}\n\t\t\t\t// longest_match() sets match_start\n\t\t\t}\n\t\t\tif (match_length >= MIN_MATCH) {\n\t\t\t\t// check_match(strstart, match_start, match_length);\n\n\t\t\t\tbflush = _tr_tally(strstart - match_start, match_length - MIN_MATCH);\n\n\t\t\t\tlookahead -= match_length;\n\n\t\t\t\t// Insert new strings in the hash table only if the match length\n\t\t\t\t// is not too large. This saves time but degrades compression.\n\t\t\t\tif (match_length <= max_lazy_match && lookahead >= MIN_MATCH) {\n\t\t\t\t\tmatch_length--; // string at strstart already in hash table\n\t\t\t\t\tdo {\n\t\t\t\t\t\tstrstart++;\n\n\t\t\t\t\t\tins_h = ((ins_h << hash_shift) ^ (window[(strstart) + (MIN_MATCH - 1)] & 0xff)) & hash_mask;\n\t\t\t\t\t\t// prev[strstart&w_mask]=hash_head=head[ins_h];\n\t\t\t\t\t\thash_head = (head[ins_h] & 0xffff);\n\t\t\t\t\t\tprev[strstart & w_mask] = head[ins_h];\n\t\t\t\t\t\thead[ins_h] = strstart;\n\n\t\t\t\t\t\t// strstart never exceeds WSIZE-MAX_MATCH, so there are\n\t\t\t\t\t\t// always MIN_MATCH bytes ahead.\n\t\t\t\t\t} while (--match_length !== 0);\n\t\t\t\t\tstrstart++;\n\t\t\t\t} else {\n\t\t\t\t\tstrstart += match_length;\n\t\t\t\t\tmatch_length = 0;\n\t\t\t\t\tins_h = window[strstart] & 0xff;\n\n\t\t\t\t\tins_h = (((ins_h) << hash_shift) ^ (window[strstart + 1] & 0xff)) & hash_mask;\n\t\t\t\t\t// If lookahead < MIN_MATCH, ins_h is garbage, but it does\n\t\t\t\t\t// not\n\t\t\t\t\t// matter since it will be recomputed at next deflate call.\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// No match, output a literal byte\n\n\t\t\t\tbflush = _tr_tally(0, window[strstart] & 0xff);\n\t\t\t\tlookahead--;\n\t\t\t\tstrstart++;\n\t\t\t}\n\t\t\tif (bflush) {\n\n\t\t\t\tflush_block_only(false);\n\t\t\t\tif (strm.avail_out === 0)\n\t\t\t\t\treturn NeedMore;\n\t\t\t}\n\t\t}\n\n\t\tflush_block_only(flush == Z_FINISH);\n\t\tif (strm.avail_out === 0) {\n\t\t\tif (flush == Z_FINISH)\n\t\t\t\treturn FinishStarted;\n\t\t\telse\n\t\t\t\treturn NeedMore;\n\t\t}\n\t\treturn flush == Z_FINISH ? FinishDone : BlockDone;\n\t}\n\n\t// Same as above, but achieves better compression. We use a lazy\n\t// evaluation for matches: a match is finally adopted only if there is\n\t// no better match at the next window position.\n\tfunction deflate_slow(flush) {\n\t\t// short hash_head = 0; // head of hash chain\n\t\tvar hash_head = 0; // head of hash chain\n\t\tvar bflush; // set if current block must be flushed\n\t\tvar max_insert;\n\n\t\t// Process the input block.\n\t\twhile (true) {\n\t\t\t// Make sure that we always have enough lookahead, except\n\t\t\t// at the end of the input file. We need MAX_MATCH bytes\n\t\t\t// for the next match, plus MIN_MATCH bytes to insert the\n\t\t\t// string following the next match.\n\n\t\t\tif (lookahead < MIN_LOOKAHEAD) {\n\t\t\t\tfill_window();\n\t\t\t\tif (lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {\n\t\t\t\t\treturn NeedMore;\n\t\t\t\t}\n\t\t\t\tif (lookahead === 0)\n\t\t\t\t\tbreak; // flush the current block\n\t\t\t}\n\n\t\t\t// Insert the string window[strstart .. strstart+2] in the\n\t\t\t// dictionary, and set hash_head to the head of the hash chain:\n\n\t\t\tif (lookahead >= MIN_MATCH) {\n\t\t\t\tins_h = (((ins_h) << hash_shift) ^ (window[(strstart) + (MIN_MATCH - 1)] & 0xff)) & hash_mask;\n\t\t\t\t// prev[strstart&w_mask]=hash_head=head[ins_h];\n\t\t\t\thash_head = (head[ins_h] & 0xffff);\n\t\t\t\tprev[strstart & w_mask] = head[ins_h];\n\t\t\t\thead[ins_h] = strstart;\n\t\t\t}\n\n\t\t\t// Find the longest match, discarding those <= prev_length.\n\t\t\tprev_length = match_length;\n\t\t\tprev_match = match_start;\n\t\t\tmatch_length = MIN_MATCH - 1;\n\n\t\t\tif (hash_head !== 0 && prev_length < max_lazy_match && ((strstart - hash_head) & 0xffff) <= w_size - MIN_LOOKAHEAD) {\n\t\t\t\t// To simplify the code, we prevent matches with the string\n\t\t\t\t// of window index 0 (in particular we have to avoid a match\n\t\t\t\t// of the string with itself at the start of the input file).\n\n\t\t\t\tif (strategy != Z_HUFFMAN_ONLY) {\n\t\t\t\t\tmatch_length = longest_match(hash_head);\n\t\t\t\t}\n\t\t\t\t// longest_match() sets match_start\n\n\t\t\t\tif (match_length <= 5 && (strategy == Z_FILTERED || (match_length == MIN_MATCH && strstart - match_start > 4096))) {\n\n\t\t\t\t\t// If prev_match is also MIN_MATCH, match_start is garbage\n\t\t\t\t\t// but we will ignore the current match anyway.\n\t\t\t\t\tmatch_length = MIN_MATCH - 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If there was a match at the previous step and the current\n\t\t\t// match is not better, output the previous match:\n\t\t\tif (prev_length >= MIN_MATCH && match_length <= prev_length) {\n\t\t\t\tmax_insert = strstart + lookahead - MIN_MATCH;\n\t\t\t\t// Do not insert strings in hash table beyond this.\n\n\t\t\t\t// check_match(strstart-1, prev_match, prev_length);\n\n\t\t\t\tbflush = _tr_tally(strstart - 1 - prev_match, prev_length - MIN_MATCH);\n\n\t\t\t\t// Insert in hash table all strings up to the end of the match.\n\t\t\t\t// strstart-1 and strstart are already inserted. If there is not\n\t\t\t\t// enough lookahead, the last two strings are not inserted in\n\t\t\t\t// the hash table.\n\t\t\t\tlookahead -= prev_length - 1;\n\t\t\t\tprev_length -= 2;\n\t\t\t\tdo {\n\t\t\t\t\tif (++strstart <= max_insert) {\n\t\t\t\t\t\tins_h = (((ins_h) << hash_shift) ^ (window[(strstart) + (MIN_MATCH - 1)] & 0xff)) & hash_mask;\n\t\t\t\t\t\t// prev[strstart&w_mask]=hash_head=head[ins_h];\n\t\t\t\t\t\thash_head = (head[ins_h] & 0xffff);\n\t\t\t\t\t\tprev[strstart & w_mask] = head[ins_h];\n\t\t\t\t\t\thead[ins_h] = strstart;\n\t\t\t\t\t}\n\t\t\t\t} while (--prev_length !== 0);\n\t\t\t\tmatch_available = 0;\n\t\t\t\tmatch_length = MIN_MATCH - 1;\n\t\t\t\tstrstart++;\n\n\t\t\t\tif (bflush) {\n\t\t\t\t\tflush_block_only(false);\n\t\t\t\t\tif (strm.avail_out === 0)\n\t\t\t\t\t\treturn NeedMore;\n\t\t\t\t}\n\t\t\t} else if (match_available !== 0) {\n\n\t\t\t\t// If there was no match at the previous position, output a\n\t\t\t\t// single literal. If there was a match but the current match\n\t\t\t\t// is longer, truncate the previous match to a single literal.\n\n\t\t\t\tbflush = _tr_tally(0, window[strstart - 1] & 0xff);\n\n\t\t\t\tif (bflush) {\n\t\t\t\t\tflush_block_only(false);\n\t\t\t\t}\n\t\t\t\tstrstart++;\n\t\t\t\tlookahead--;\n\t\t\t\tif (strm.avail_out === 0)\n\t\t\t\t\treturn NeedMore;\n\t\t\t} else {\n\t\t\t\t// There is no previous match to compare with, wait for\n\t\t\t\t// the next step to decide.\n\n\t\t\t\tmatch_available = 1;\n\t\t\t\tstrstart++;\n\t\t\t\tlookahead--;\n\t\t\t}\n\t\t}\n\n\t\tif (match_available !== 0) {\n\t\t\tbflush = _tr_tally(0, window[strstart - 1] & 0xff);\n\t\t\tmatch_available = 0;\n\t\t}\n\t\tflush_block_only(flush == Z_FINISH);\n\n\t\tif (strm.avail_out === 0) {\n\t\t\tif (flush == Z_FINISH)\n\t\t\t\treturn FinishStarted;\n\t\t\telse\n\t\t\t\treturn NeedMore;\n\t\t}\n\n\t\treturn flush == Z_FINISH ? FinishDone : BlockDone;\n\t}\n\n\tfunction deflateReset(strm) {\n\t\tstrm.total_in = strm.total_out = 0;\n\t\tstrm.msg = null; //\n\n\t\tthat.pending = 0;\n\t\tthat.pending_out = 0;\n\n\t\tstatus = BUSY_STATE;\n\n\t\tlast_flush = Z_NO_FLUSH;\n\n\t\ttr_init();\n\t\tlm_init();\n\t\treturn Z_OK;\n\t}\n\n\tthat.deflateInit = function(strm, _level, bits, _method, memLevel, _strategy) {\n\t\tif (!_method)\n\t\t\t_method = Z_DEFLATED;\n\t\tif (!memLevel)\n\t\t\tmemLevel = DEF_MEM_LEVEL;\n\t\tif (!_strategy)\n\t\t\t_strategy = Z_DEFAULT_STRATEGY;\n\n\t\t// byte[] my_version=ZLIB_VERSION;\n\n\t\t//\n\t\t// if (!version || version[0] != my_version[0]\n\t\t// || stream_size != sizeof(z_stream)) {\n\t\t// return Z_VERSION_ERROR;\n\t\t// }\n\n\t\tstrm.msg = null;\n\n\t\tif (_level == Z_DEFAULT_COMPRESSION)\n\t\t\t_level = 6;\n\n\t\tif (memLevel < 1 || memLevel > MAX_MEM_LEVEL || _method != Z_DEFLATED || bits < 9 || bits > 15 || _level < 0 || _level > 9 || _strategy < 0\n\t\t\t\t|| _strategy > Z_HUFFMAN_ONLY) {\n\t\t\treturn Z_STREAM_ERROR;\n\t\t}\n\n\t\tstrm.dstate = that;\n\n\t\tw_bits = bits;\n\t\tw_size = 1 << w_bits;\n\t\tw_mask = w_size - 1;\n\n\t\thash_bits = memLevel + 7;\n\t\thash_size = 1 << hash_bits;\n\t\thash_mask = hash_size - 1;\n\t\thash_shift = Math.floor((hash_bits + MIN_MATCH - 1) / MIN_MATCH);\n\n\t\twindow = new Uint8Array(w_size * 2);\n\t\tprev = [];\n\t\thead = [];\n\n\t\tlit_bufsize = 1 << (memLevel + 6); // 16K elements by default\n\n\t\t// We overlay pending_buf and d_buf+l_buf. This works since the average\n\t\t// output size for (length,distance) codes is <= 24 bits.\n\t\tthat.pending_buf = new Uint8Array(lit_bufsize * 4);\n\t\tpending_buf_size = lit_bufsize * 4;\n\n\t\td_buf = Math.floor(lit_bufsize / 2);\n\t\tl_buf = (1 + 2) * lit_bufsize;\n\n\t\tlevel = _level;\n\n\t\tstrategy = _strategy;\n\t\tmethod = _method & 0xff;\n\n\t\treturn deflateReset(strm);\n\t};\n\n\tthat.deflateEnd = function() {\n\t\tif (status != INIT_STATE && status != BUSY_STATE && status != FINISH_STATE) {\n\t\t\treturn Z_STREAM_ERROR;\n\t\t}\n\t\t// Deallocate in reverse order of allocations:\n\t\tthat.pending_buf = null;\n\t\thead = null;\n\t\tprev = null;\n\t\twindow = null;\n\t\t// free\n\t\tthat.dstate = null;\n\t\treturn status == BUSY_STATE ? Z_DATA_ERROR : Z_OK;\n\t};\n\n\tthat.deflateParams = function(strm, _level, _strategy) {\n\t\tvar err = Z_OK;\n\n\t\tif (_level == Z_DEFAULT_COMPRESSION) {\n\t\t\t_level = 6;\n\t\t}\n\t\tif (_level < 0 || _level > 9 || _strategy < 0 || _strategy > Z_HUFFMAN_ONLY) {\n\t\t\treturn Z_STREAM_ERROR;\n\t\t}\n\n\t\tif (config_table[level].func != config_table[_level].func && strm.total_in !== 0) {\n\t\t\t// Flush the last buffer:\n\t\t\terr = strm.deflate(Z_PARTIAL_FLUSH);\n\t\t}\n\n\t\tif (level != _level) {\n\t\t\tlevel = _level;\n\t\t\tmax_lazy_match = config_table[level].max_lazy;\n\t\t\tgood_match = config_table[level].good_length;\n\t\t\tnice_match = config_table[level].nice_length;\n\t\t\tmax_chain_length = config_table[level].max_chain;\n\t\t}\n\t\tstrategy = _strategy;\n\t\treturn err;\n\t};\n\n\tthat.deflateSetDictionary = function(strm, dictionary, dictLength) {\n\t\tvar length = dictLength;\n\t\tvar n, index = 0;\n\n\t\tif (!dictionary || status != INIT_STATE)\n\t\t\treturn Z_STREAM_ERROR;\n\n\t\tif (length < MIN_MATCH)\n\t\t\treturn Z_OK;\n\t\tif (length > w_size - MIN_LOOKAHEAD) {\n\t\t\tlength = w_size - MIN_LOOKAHEAD;\n\t\t\tindex = dictLength - length; // use the tail of the dictionary\n\t\t}\n\t\twindow.set(dictionary.subarray(index, index + length), 0);\n\n\t\tstrstart = length;\n\t\tblock_start = length;\n\n\t\t// Insert all strings in the hash table (except for the last two bytes).\n\t\t// s->lookahead stays null, so s->ins_h will be recomputed at the next\n\t\t// call of fill_window.\n\n\t\tins_h = window[0] & 0xff;\n\t\tins_h = (((ins_h) << hash_shift) ^ (window[1] & 0xff)) & hash_mask;\n\n\t\tfor (n = 0; n <= length - MIN_MATCH; n++) {\n\t\t\tins_h = (((ins_h) << hash_shift) ^ (window[(n) + (MIN_MATCH - 1)] & 0xff)) & hash_mask;\n\t\t\tprev[n & w_mask] = head[ins_h];\n\t\t\thead[ins_h] = n;\n\t\t}\n\t\treturn Z_OK;\n\t};\n\n\tthat.deflate = function(_strm, flush) {\n\t\tvar i, header, level_flags, old_flush, bstate;\n\n\t\tif (flush > Z_FINISH || flush < 0) {\n\t\t\treturn Z_STREAM_ERROR;\n\t\t}\n\n\t\tif (!_strm.next_out || (!_strm.next_in && _strm.avail_in !== 0) || (status == FINISH_STATE && flush != Z_FINISH)) {\n\t\t\t_strm.msg = z_errmsg[Z_NEED_DICT - (Z_STREAM_ERROR)];\n\t\t\treturn Z_STREAM_ERROR;\n\t\t}\n\t\tif (_strm.avail_out === 0) {\n\t\t\t_strm.msg = z_errmsg[Z_NEED_DICT - (Z_BUF_ERROR)];\n\t\t\treturn Z_BUF_ERROR;\n\t\t}\n\n\t\tstrm = _strm; // just in case\n\t\told_flush = last_flush;\n\t\tlast_flush = flush;\n\n\t\t// Write the zlib header\n\t\tif (status == INIT_STATE) {\n\t\t\theader = (Z_DEFLATED + ((w_bits - 8) << 4)) << 8;\n\t\t\tlevel_flags = ((level - 1) & 0xff) >> 1;\n\n\t\t\tif (level_flags > 3)\n\t\t\t\tlevel_flags = 3;\n\t\t\theader |= (level_flags << 6);\n\t\t\tif (strstart !== 0)\n\t\t\t\theader |= PRESET_DICT;\n\t\t\theader += 31 - (header % 31);\n\n\t\t\tstatus = BUSY_STATE;\n\t\t\tputShortMSB(header);\n\t\t}\n\n\t\t// Flush as much pending output as possible\n\t\tif (that.pending !== 0) {\n\t\t\tstrm.flush_pending();\n\t\t\tif (strm.avail_out === 0) {\n\t\t\t\t// console.log(\" avail_out==0\");\n\t\t\t\t// Since avail_out is 0, deflate will be called again with\n\t\t\t\t// more output space, but possibly with both pending and\n\t\t\t\t// avail_in equal to zero. There won't be anything to do,\n\t\t\t\t// but this is not an error situation so make sure we\n\t\t\t\t// return OK instead of BUF_ERROR at next call of deflate:\n\t\t\t\tlast_flush = -1;\n\t\t\t\treturn Z_OK;\n\t\t\t}\n\n\t\t\t// Make sure there is something to do and avoid duplicate\n\t\t\t// consecutive\n\t\t\t// flushes. For repeated and useless calls with Z_FINISH, we keep\n\t\t\t// returning Z_STREAM_END instead of Z_BUFF_ERROR.\n\t\t} else if (strm.avail_in === 0 && flush <= old_flush && flush != Z_FINISH) {\n\t\t\tstrm.msg = z_errmsg[Z_NEED_DICT - (Z_BUF_ERROR)];\n\t\t\treturn Z_BUF_ERROR;\n\t\t}\n\n\t\t// User must not provide more input after the first FINISH:\n\t\tif (status == FINISH_STATE && strm.avail_in !== 0) {\n\t\t\t_strm.msg = z_errmsg[Z_NEED_DICT - (Z_BUF_ERROR)];\n\t\t\treturn Z_BUF_ERROR;\n\t\t}\n\n\t\t// Start a new block or continue the current one.\n\t\tif (strm.avail_in !== 0 || lookahead !== 0 || (flush != Z_NO_FLUSH && status != FINISH_STATE)) {\n\t\t\tbstate = -1;\n\t\t\tswitch (config_table[level].func) {\n\t\t\tcase STORED:\n\t\t\t\tbstate = deflate_stored(flush);\n\t\t\t\tbreak;\n\t\t\tcase FAST:\n\t\t\t\tbstate = deflate_fast(flush);\n\t\t\t\tbreak;\n\t\t\tcase SLOW:\n\t\t\t\tbstate = deflate_slow(flush);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t}\n\n\t\t\tif (bstate == FinishStarted || bstate == FinishDone) {\n\t\t\t\tstatus = FINISH_STATE;\n\t\t\t}\n\t\t\tif (bstate == NeedMore || bstate == FinishStarted) {\n\t\t\t\tif (strm.avail_out === 0) {\n\t\t\t\t\tlast_flush = -1; // avoid BUF_ERROR next call, see above\n\t\t\t\t}\n\t\t\t\treturn Z_OK;\n\t\t\t\t// If flush != Z_NO_FLUSH && avail_out === 0, the next call\n\t\t\t\t// of deflate should use the same flush parameter to make sure\n\t\t\t\t// that the flush is complete. So we don't have to output an\n\t\t\t\t// empty block here, this will be done at next call. This also\n\t\t\t\t// ensures that for a very small output buffer, we emit at most\n\t\t\t\t// one empty block.\n\t\t\t}\n\n\t\t\tif (bstate == BlockDone) {\n\t\t\t\tif (flush == Z_PARTIAL_FLUSH) {\n\t\t\t\t\t_tr_align();\n\t\t\t\t} else { // FULL_FLUSH or SYNC_FLUSH\n\t\t\t\t\t_tr_stored_block(0, 0, false);\n\t\t\t\t\t// For a full flush, this empty block will be recognized\n\t\t\t\t\t// as a special marker by inflate_sync().\n\t\t\t\t\tif (flush == Z_FULL_FLUSH) {\n\t\t\t\t\t\t// state.head[s.hash_size-1]=0;\n\t\t\t\t\t\tfor (i = 0; i < hash_size/*-1*/; i++)\n\t\t\t\t\t\t\t// forget history\n\t\t\t\t\t\t\thead[i] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstrm.flush_pending();\n\t\t\t\tif (strm.avail_out === 0) {\n\t\t\t\t\tlast_flush = -1; // avoid BUF_ERROR at next call, see above\n\t\t\t\t\treturn Z_OK;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (flush != Z_FINISH)\n\t\t\treturn Z_OK;\n\t\treturn Z_STREAM_END;\n\t};\n}\n\n// ZStream\n\nfunction ZStream() {\n\tvar that = this;\n\tthat.next_in_index = 0;\n\tthat.next_out_index = 0;\n\t// that.next_in; // next input byte\n\tthat.avail_in = 0; // number of bytes available at next_in\n\tthat.total_in = 0; // total nb of input bytes read so far\n\t// that.next_out; // next output byte should be put there\n\tthat.avail_out = 0; // remaining free space at next_out\n\tthat.total_out = 0; // total nb of bytes output so far\n\t// that.msg;\n\t// that.dstate;\n}\n\nZStream.prototype = {\n\tdeflateInit : function(level, bits) {\n\t\tvar that = this;\n\t\tthat.dstate = new Deflate();\n\t\tif (!bits)\n\t\t\tbits = MAX_BITS;\n\t\treturn that.dstate.deflateInit(that, level, bits);\n\t},\n\n\tdeflate : function(flush) {\n\t\tvar that = this;\n\t\tif (!that.dstate) {\n\t\t\treturn Z_STREAM_ERROR;\n\t\t}\n\t\treturn that.dstate.deflate(that, flush);\n\t},\n\n\tdeflateEnd : function() {\n\t\tvar that = this;\n\t\tif (!that.dstate)\n\t\t\treturn Z_STREAM_ERROR;\n\t\tvar ret = that.dstate.deflateEnd();\n\t\tthat.dstate = null;\n\t\treturn ret;\n\t},\n\n\tdeflateParams : function(level, strategy) {\n\t\tvar that = this;\n\t\tif (!that.dstate)\n\t\t\treturn Z_STREAM_ERROR;\n\t\treturn that.dstate.deflateParams(that, level, strategy);\n\t},\n\n\tdeflateSetDictionary : function(dictionary, dictLength) {\n\t\tvar that = this;\n\t\tif (!that.dstate)\n\t\t\treturn Z_STREAM_ERROR;\n\t\treturn that.dstate.deflateSetDictionary(that, dictionary, dictLength);\n\t},\n\n\t// Read a new buffer from the current input stream, update the\n\t// total number of bytes read. All deflate() input goes through\n\t// this function so some applications may wish to modify it to avoid\n\t// allocating a large strm->next_in buffer and copying from it.\n\t// (See also flush_pending()).\n\tread_buf : function(buf, start, size) {\n\t\tvar that = this;\n\t\tvar len = that.avail_in;\n\t\tif (len > size)\n\t\t\tlen = size;\n\t\tif (len === 0)\n\t\t\treturn 0;\n\t\tthat.avail_in -= len;\n\t\tbuf.set(that.next_in.subarray(that.next_in_index, that.next_in_index + len), start);\n\t\tthat.next_in_index += len;\n\t\tthat.total_in += len;\n\t\treturn len;\n\t},\n\n\t// Flush as much pending output as possible. All deflate() output goes\n\t// through this function so some applications may wish to modify it\n\t// to avoid allocating a large strm->next_out buffer and copying into it.\n\t// (See also read_buf()).\n\tflush_pending : function() {\n\t\tvar that = this;\n\t\tvar len = that.dstate.pending;\n\n\t\tif (len > that.avail_out)\n\t\t\tlen = that.avail_out;\n\t\tif (len === 0)\n\t\t\treturn;\n\n\t\t// if (that.dstate.pending_buf.length <= that.dstate.pending_out || that.next_out.length <= that.next_out_index\n\t\t// || that.dstate.pending_buf.length < (that.dstate.pending_out + len) || that.next_out.length < (that.next_out_index +\n\t\t// len)) {\n\t\t// console.log(that.dstate.pending_buf.length + \", \" + that.dstate.pending_out + \", \" + that.next_out.length + \", \" +\n\t\t// that.next_out_index + \", \" + len);\n\t\t// console.log(\"avail_out=\" + that.avail_out);\n\t\t// }\n\n\t\tthat.next_out.set(that.dstate.pending_buf.subarray(that.dstate.pending_out, that.dstate.pending_out + len), that.next_out_index);\n\n\t\tthat.next_out_index += len;\n\t\tthat.dstate.pending_out += len;\n\t\tthat.total_out += len;\n\t\tthat.avail_out -= len;\n\t\tthat.dstate.pending -= len;\n\t\tif (that.dstate.pending === 0) {\n\t\t\tthat.dstate.pending_out = 0;\n\t\t}\n\t}\n};\n\n// Deflater\n\nexport function Deflater(options) {\n\tvar that = this;\n\tvar z = new ZStream();\n\tvar bufsize = 512;\n\tvar flush = Z_NO_FLUSH;\n\tvar buf = new Uint8Array(bufsize);\n\tvar level = options ? options.level : Z_DEFAULT_COMPRESSION;\n\tif (typeof level == \"undefined\")\n\t\tlevel = Z_DEFAULT_COMPRESSION;\n\tz.deflateInit(level);\n\tz.next_out = buf;\n\n\tthat.append = function(data, onprogress) {\n\t\tvar err, buffers = [], lastIndex = 0, bufferIndex = 0, bufferSize = 0, array;\n\t\tif (!data.length)\n\t\t\treturn;\n\t\tz.next_in_index = 0;\n\t\tz.next_in = data;\n\t\tz.avail_in = data.length;\n\t\tdo {\n\t\t\tz.next_out_index = 0;\n\t\t\tz.avail_out = bufsize;\n\t\t\terr = z.deflate(flush);\n\t\t\tif (err != Z_OK)\n\t\t\t\tthrow new Error(\"deflating: \" + z.msg);\n\t\t\tif (z.next_out_index)\n\t\t\t\tif (z.next_out_index == bufsize)\n\t\t\t\t\tbuffers.push(new Uint8Array(buf));\n\t\t\t\telse\n\t\t\t\t\tbuffers.push(new Uint8Array(buf.subarray(0, z.next_out_index)));\n\t\t\tbufferSize += z.next_out_index;\n\t\t\tif (onprogress && z.next_in_index > 0 && z.next_in_index != lastIndex) {\n\t\t\t\tonprogress(z.next_in_index);\n\t\t\t\tlastIndex = z.next_in_index;\n\t\t\t}\n\t\t} while (z.avail_in > 0 || z.avail_out === 0);\n\t\tarray = new Uint8Array(bufferSize);\n\t\tbuffers.forEach(function(chunk) {\n\t\t\tarray.set(chunk, bufferIndex);\n\t\t\tbufferIndex += chunk.length;\n\t\t});\n\t\treturn array;\n\t};\n\tthat.flush = function() {\n\t\tvar err, buffers = [], bufferIndex = 0, bufferSize = 0, array;\n\t\tdo {\n\t\t\tz.next_out_index = 0;\n\t\t\tz.avail_out = bufsize;\n\t\t\terr = z.deflate(Z_FINISH);\n\t\t\tif (err != Z_STREAM_END && err != Z_OK)\n\t\t\t\tthrow new Error(\"deflating: \" + z.msg);\n\t\t\tif (bufsize - z.avail_out > 0)\n\t\t\t\tbuffers.push(new Uint8Array(buf.subarray(0, z.next_out_index)));\n\t\t\tbufferSize += z.next_out_index;\n\t\t} while (z.avail_in > 0 || z.avail_out === 0);\n\t\tz.deflateEnd();\n\t\tarray = new Uint8Array(bufferSize);\n\t\tbuffers.forEach(function(chunk) {\n\t\t\tarray.set(chunk, bufferIndex);\n\t\t\tbufferIndex += chunk.length;\n\t\t});\n\t\treturn array;\n\t};\n}\n\n// 'zip' may not be defined in z-worker and some tests\nself._zipjs_Deflater = Deflater;\n","/*\nCopyright (c) 2013 Gildas Lormeau. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice,\nthis list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\nnotice, this list of conditions and the following disclaimer in\nthe documentation and/or other materials provided with the distribution.\n\n3. The names of the authors may not be used to endorse or promote products\nderived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,\nINCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,\nINC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,\nINCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,\nOR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\nEVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\n/*\n* This program is based on JZlib 1.0.2 ymnk, JCraft,Inc.\n* JZlib is based on zlib-1.1.3, so all credit should go authors\n* Jean-loup Gailly(jloup@gzip.org) and Mark Adler(madler@alumni.caltech.edu)\n* and contributors of zlib.\n*/\n\n// Global\nvar MAX_BITS = 15;\n\nvar Z_OK = 0;\nvar Z_STREAM_END = 1;\nvar Z_NEED_DICT = 2;\nvar Z_STREAM_ERROR = -2;\nvar Z_DATA_ERROR = -3;\nvar Z_MEM_ERROR = -4;\nvar Z_BUF_ERROR = -5;\n\nvar inflate_mask = [ 0x00000000, 0x00000001, 0x00000003, 0x00000007, 0x0000000f, 0x0000001f, 0x0000003f, 0x0000007f, 0x000000ff, 0x000001ff, 0x000003ff,\n\t\t0x000007ff, 0x00000fff, 0x00001fff, 0x00003fff, 0x00007fff, 0x0000ffff ];\n\nvar MANY = 1440;\n\n// JZlib version : \"1.0.2\"\nvar Z_NO_FLUSH = 0;\nvar Z_FINISH = 4;\n\n// InfTree\nvar fixed_bl = 9;\nvar fixed_bd = 5;\n\nvar fixed_tl = [ 96, 7, 256, 0, 8, 80, 0, 8, 16, 84, 8, 115, 82, 7, 31, 0, 8, 112, 0, 8, 48, 0, 9, 192, 80, 7, 10, 0, 8, 96, 0, 8, 32, 0, 9, 160, 0, 8, 0,\n\t\t0, 8, 128, 0, 8, 64, 0, 9, 224, 80, 7, 6, 0, 8, 88, 0, 8, 24, 0, 9, 144, 83, 7, 59, 0, 8, 120, 0, 8, 56, 0, 9, 208, 81, 7, 17, 0, 8, 104, 0, 8, 40,\n\t\t0, 9, 176, 0, 8, 8, 0, 8, 136, 0, 8, 72, 0, 9, 240, 80, 7, 4, 0, 8, 84, 0, 8, 20, 85, 8, 227, 83, 7, 43, 0, 8, 116, 0, 8, 52, 0, 9, 200, 81, 7, 13,\n\t\t0, 8, 100, 0, 8, 36, 0, 9, 168, 0, 8, 4, 0, 8, 132, 0, 8, 68, 0, 9, 232, 80, 7, 8, 0, 8, 92, 0, 8, 28, 0, 9, 152, 84, 7, 83, 0, 8, 124, 0, 8, 60,\n\t\t0, 9, 216, 82, 7, 23, 0, 8, 108, 0, 8, 44, 0, 9, 184, 0, 8, 12, 0, 8, 140, 0, 8, 76, 0, 9, 248, 80, 7, 3, 0, 8, 82, 0, 8, 18, 85, 8, 163, 83, 7,\n\t\t35, 0, 8, 114, 0, 8, 50, 0, 9, 196, 81, 7, 11, 0, 8, 98, 0, 8, 34, 0, 9, 164, 0, 8, 2, 0, 8, 130, 0, 8, 66, 0, 9, 228, 80, 7, 7, 0, 8, 90, 0, 8,\n\t\t26, 0, 9, 148, 84, 7, 67, 0, 8, 122, 0, 8, 58, 0, 9, 212, 82, 7, 19, 0, 8, 106, 0, 8, 42, 0, 9, 180, 0, 8, 10, 0, 8, 138, 0, 8, 74, 0, 9, 244, 80,\n\t\t7, 5, 0, 8, 86, 0, 8, 22, 192, 8, 0, 83, 7, 51, 0, 8, 118, 0, 8, 54, 0, 9, 204, 81, 7, 15, 0, 8, 102, 0, 8, 38, 0, 9, 172, 0, 8, 6, 0, 8, 134, 0,\n\t\t8, 70, 0, 9, 236, 80, 7, 9, 0, 8, 94, 0, 8, 30, 0, 9, 156, 84, 7, 99, 0, 8, 126, 0, 8, 62, 0, 9, 220, 82, 7, 27, 0, 8, 110, 0, 8, 46, 0, 9, 188, 0,\n\t\t8, 14, 0, 8, 142, 0, 8, 78, 0, 9, 252, 96, 7, 256, 0, 8, 81, 0, 8, 17, 85, 8, 131, 82, 7, 31, 0, 8, 113, 0, 8, 49, 0, 9, 194, 80, 7, 10, 0, 8, 97,\n\t\t0, 8, 33, 0, 9, 162, 0, 8, 1, 0, 8, 129, 0, 8, 65, 0, 9, 226, 80, 7, 6, 0, 8, 89, 0, 8, 25, 0, 9, 146, 83, 7, 59, 0, 8, 121, 0, 8, 57, 0, 9, 210,\n\t\t81, 7, 17, 0, 8, 105, 0, 8, 41, 0, 9, 178, 0, 8, 9, 0, 8, 137, 0, 8, 73, 0, 9, 242, 80, 7, 4, 0, 8, 85, 0, 8, 21, 80, 8, 258, 83, 7, 43, 0, 8, 117,\n\t\t0, 8, 53, 0, 9, 202, 81, 7, 13, 0, 8, 101, 0, 8, 37, 0, 9, 170, 0, 8, 5, 0, 8, 133, 0, 8, 69, 0, 9, 234, 80, 7, 8, 0, 8, 93, 0, 8, 29, 0, 9, 154,\n\t\t84, 7, 83, 0, 8, 125, 0, 8, 61, 0, 9, 218, 82, 7, 23, 0, 8, 109, 0, 8, 45, 0, 9, 186, 0, 8, 13, 0, 8, 141, 0, 8, 77, 0, 9, 250, 80, 7, 3, 0, 8, 83,\n\t\t0, 8, 19, 85, 8, 195, 83, 7, 35, 0, 8, 115, 0, 8, 51, 0, 9, 198, 81, 7, 11, 0, 8, 99, 0, 8, 35, 0, 9, 166, 0, 8, 3, 0, 8, 131, 0, 8, 67, 0, 9, 230,\n\t\t80, 7, 7, 0, 8, 91, 0, 8, 27, 0, 9, 150, 84, 7, 67, 0, 8, 123, 0, 8, 59, 0, 9, 214, 82, 7, 19, 0, 8, 107, 0, 8, 43, 0, 9, 182, 0, 8, 11, 0, 8, 139,\n\t\t0, 8, 75, 0, 9, 246, 80, 7, 5, 0, 8, 87, 0, 8, 23, 192, 8, 0, 83, 7, 51, 0, 8, 119, 0, 8, 55, 0, 9, 206, 81, 7, 15, 0, 8, 103, 0, 8, 39, 0, 9, 174,\n\t\t0, 8, 7, 0, 8, 135, 0, 8, 71, 0, 9, 238, 80, 7, 9, 0, 8, 95, 0, 8, 31, 0, 9, 158, 84, 7, 99, 0, 8, 127, 0, 8, 63, 0, 9, 222, 82, 7, 27, 0, 8, 111,\n\t\t0, 8, 47, 0, 9, 190, 0, 8, 15, 0, 8, 143, 0, 8, 79, 0, 9, 254, 96, 7, 256, 0, 8, 80, 0, 8, 16, 84, 8, 115, 82, 7, 31, 0, 8, 112, 0, 8, 48, 0, 9,\n\t\t193, 80, 7, 10, 0, 8, 96, 0, 8, 32, 0, 9, 161, 0, 8, 0, 0, 8, 128, 0, 8, 64, 0, 9, 225, 80, 7, 6, 0, 8, 88, 0, 8, 24, 0, 9, 145, 83, 7, 59, 0, 8,\n\t\t120, 0, 8, 56, 0, 9, 209, 81, 7, 17, 0, 8, 104, 0, 8, 40, 0, 9, 177, 0, 8, 8, 0, 8, 136, 0, 8, 72, 0, 9, 241, 80, 7, 4, 0, 8, 84, 0, 8, 20, 85, 8,\n\t\t227, 83, 7, 43, 0, 8, 116, 0, 8, 52, 0, 9, 201, 81, 7, 13, 0, 8, 100, 0, 8, 36, 0, 9, 169, 0, 8, 4, 0, 8, 132, 0, 8, 68, 0, 9, 233, 80, 7, 8, 0, 8,\n\t\t92, 0, 8, 28, 0, 9, 153, 84, 7, 83, 0, 8, 124, 0, 8, 60, 0, 9, 217, 82, 7, 23, 0, 8, 108, 0, 8, 44, 0, 9, 185, 0, 8, 12, 0, 8, 140, 0, 8, 76, 0, 9,\n\t\t249, 80, 7, 3, 0, 8, 82, 0, 8, 18, 85, 8, 163, 83, 7, 35, 0, 8, 114, 0, 8, 50, 0, 9, 197, 81, 7, 11, 0, 8, 98, 0, 8, 34, 0, 9, 165, 0, 8, 2, 0, 8,\n\t\t130, 0, 8, 66, 0, 9, 229, 80, 7, 7, 0, 8, 90, 0, 8, 26, 0, 9, 149, 84, 7, 67, 0, 8, 122, 0, 8, 58, 0, 9, 213, 82, 7, 19, 0, 8, 106, 0, 8, 42, 0, 9,\n\t\t181, 0, 8, 10, 0, 8, 138, 0, 8, 74, 0, 9, 245, 80, 7, 5, 0, 8, 86, 0, 8, 22, 192, 8, 0, 83, 7, 51, 0, 8, 118, 0, 8, 54, 0, 9, 205, 81, 7, 15, 0, 8,\n\t\t102, 0, 8, 38, 0, 9, 173, 0, 8, 6, 0, 8, 134, 0, 8, 70, 0, 9, 237, 80, 7, 9, 0, 8, 94, 0, 8, 30, 0, 9, 157, 84, 7, 99, 0, 8, 126, 0, 8, 62, 0, 9,\n\t\t221, 82, 7, 27, 0, 8, 110, 0, 8, 46, 0, 9, 189, 0, 8, 14, 0, 8, 142, 0, 8, 78, 0, 9, 253, 96, 7, 256, 0, 8, 81, 0, 8, 17, 85, 8, 131, 82, 7, 31, 0,\n\t\t8, 113, 0, 8, 49, 0, 9, 195, 80, 7, 10, 0, 8, 97, 0, 8, 33, 0, 9, 163, 0, 8, 1, 0, 8, 129, 0, 8, 65, 0, 9, 227, 80, 7, 6, 0, 8, 89, 0, 8, 25, 0, 9,\n\t\t147, 83, 7, 59, 0, 8, 121, 0, 8, 57, 0, 9, 211, 81, 7, 17, 0, 8, 105, 0, 8, 41, 0, 9, 179, 0, 8, 9, 0, 8, 137, 0, 8, 73, 0, 9, 243, 80, 7, 4, 0, 8,\n\t\t85, 0, 8, 21, 80, 8, 258, 83, 7, 43, 0, 8, 117, 0, 8, 53, 0, 9, 203, 81, 7, 13, 0, 8, 101, 0, 8, 37, 0, 9, 171, 0, 8, 5, 0, 8, 133, 0, 8, 69, 0, 9,\n\t\t235, 80, 7, 8, 0, 8, 93, 0, 8, 29, 0, 9, 155, 84, 7, 83, 0, 8, 125, 0, 8, 61, 0, 9, 219, 82, 7, 23, 0, 8, 109, 0, 8, 45, 0, 9, 187, 0, 8, 13, 0, 8,\n\t\t141, 0, 8, 77, 0, 9, 251, 80, 7, 3, 0, 8, 83, 0, 8, 19, 85, 8, 195, 83, 7, 35, 0, 8, 115, 0, 8, 51, 0, 9, 199, 81, 7, 11, 0, 8, 99, 0, 8, 35, 0, 9,\n\t\t167, 0, 8, 3, 0, 8, 131, 0, 8, 67, 0, 9, 231, 80, 7, 7, 0, 8, 91, 0, 8, 27, 0, 9, 151, 84, 7, 67, 0, 8, 123, 0, 8, 59, 0, 9, 215, 82, 7, 19, 0, 8,\n\t\t107, 0, 8, 43, 0, 9, 183, 0, 8, 11, 0, 8, 139, 0, 8, 75, 0, 9, 247, 80, 7, 5, 0, 8, 87, 0, 8, 23, 192, 8, 0, 83, 7, 51, 0, 8, 119, 0, 8, 55, 0, 9,\n\t\t207, 81, 7, 15, 0, 8, 103, 0, 8, 39, 0, 9, 175, 0, 8, 7, 0, 8, 135, 0, 8, 71, 0, 9, 239, 80, 7, 9, 0, 8, 95, 0, 8, 31, 0, 9, 159, 84, 7, 99, 0, 8,\n\t\t127, 0, 8, 63, 0, 9, 223, 82, 7, 27, 0, 8, 111, 0, 8, 47, 0, 9, 191, 0, 8, 15, 0, 8, 143, 0, 8, 79, 0, 9, 255 ];\nvar fixed_td = [ 80, 5, 1, 87, 5, 257, 83, 5, 17, 91, 5, 4097, 81, 5, 5, 89, 5, 1025, 85, 5, 65, 93, 5, 16385, 80, 5, 3, 88, 5, 513, 84, 5, 33, 92, 5,\n\t\t8193, 82, 5, 9, 90, 5, 2049, 86, 5, 129, 192, 5, 24577, 80, 5, 2, 87, 5, 385, 83, 5, 25, 91, 5, 6145, 81, 5, 7, 89, 5, 1537, 85, 5, 97, 93, 5,\n\t\t24577, 80, 5, 4, 88, 5, 769, 84, 5, 49, 92, 5, 12289, 82, 5, 13, 90, 5, 3073, 86, 5, 193, 192, 5, 24577 ];\n\n// Tables for deflate from PKZIP's appnote.txt.\nvar cplens = [ // Copy lengths for literal codes 257..285\n3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0 ];\n\n// see note #13 above about 258\nvar cplext = [ // Extra bits for literal codes 257..285\n0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 112, 112 // 112==invalid\n];\n\nvar cpdist = [ // Copy offsets for distance codes 0..29\n1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577 ];\n\nvar cpdext = [ // Extra bits for distance codes\n0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13 ];\n\n// If BMAX needs to be larger than 16, then h and x[] should be uLong.\nvar BMAX = 15; // maximum bit length of any code\n\nfunction InfTree() {\n\tvar that = this;\n\n\tvar hn; // hufts used in space\n\tvar v; // work area for huft_build\n\tvar c; // bit length count table\n\tvar r; // table entry for structure assignment\n\tvar u; // table stack\n\tvar x; // bit offsets, then code stack\n\n\tfunction huft_build(b, // code lengths in bits (all assumed <=\n\t// BMAX)\n\tbindex, n, // number of codes (assumed <= 288)\n\ts, // number of simple-valued codes (0..s-1)\n\td, // list of base values for non-simple codes\n\te, // list of extra bits for non-simple codes\n\tt, // result: starting table\n\tm, // maximum lookup bits, returns actual\n\thp,// space for trees\n\thn,// hufts used in space\n\tv // working area: values in order of bit length\n\t) {\n\t\t// Given a list of code lengths and a maximum table size, make a set of\n\t\t// tables to decode that set of codes. Return Z_OK on success,\n\t\t// Z_BUF_ERROR\n\t\t// if the given code set is incomplete (the tables are still built in\n\t\t// this\n\t\t// case), Z_DATA_ERROR if the input is invalid (an over-subscribed set\n\t\t// of\n\t\t// lengths), or Z_MEM_ERROR if not enough memory.\n\n\t\tvar a; // counter for codes of length k\n\t\tvar f; // i repeats in table every f entries\n\t\tvar g; // maximum code length\n\t\tvar h; // table level\n\t\tvar i; // counter, current code\n\t\tvar j; // counter\n\t\tvar k; // number of bits in current code\n\t\tvar l; // bits per table (returned in m)\n\t\tvar mask; // (1 << w) - 1, to avoid cc -O bug on HP\n\t\tvar p; // pointer into c[], b[], or v[]\n\t\tvar q; // points to current table\n\t\tvar w; // bits before this table == (l * h)\n\t\tvar xp; // pointer into x\n\t\tvar y; // number of dummy codes added\n\t\tvar z; // number of entries in current table\n\n\t\t// Generate counts for each bit length\n\n\t\tp = 0;\n\t\ti = n;\n\t\tdo {\n\t\t\tc[b[bindex + p]]++;\n\t\t\tp++;\n\t\t\ti--; // assume all entries <= BMAX\n\t\t} while (i !== 0);\n\n\t\tif (c[0] == n) { // null input--all zero length codes\n\t\t\tt[0] = -1;\n\t\t\tm[0] = 0;\n\t\t\treturn Z_OK;\n\t\t}\n\n\t\t// Find minimum and maximum length, bound *m by those\n\t\tl = m[0];\n\t\tfor (j = 1; j <= BMAX; j++)\n\t\t\tif (c[j] !== 0)\n\t\t\t\tbreak;\n\t\tk = j; // minimum code length\n\t\tif (l < j) {\n\t\t\tl = j;\n\t\t}\n\t\tfor (i = BMAX; i !== 0; i--) {\n\t\t\tif (c[i] !== 0)\n\t\t\t\tbreak;\n\t\t}\n\t\tg = i; // maximum code length\n\t\tif (l > i) {\n\t\t\tl = i;\n\t\t}\n\t\tm[0] = l;\n\n\t\t// Adjust last length count to fill out codes, if needed\n\t\tfor (y = 1 << j; j < i; j++, y <<= 1) {\n\t\t\tif ((y -= c[j]) < 0) {\n\t\t\t\treturn Z_DATA_ERROR;\n\t\t\t}\n\t\t}\n\t\tif ((y -= c[i]) < 0) {\n\t\t\treturn Z_DATA_ERROR;\n\t\t}\n\t\tc[i] += y;\n\n\t\t// Generate starting offsets into the value table for each length\n\t\tx[1] = j = 0;\n\t\tp = 1;\n\t\txp = 2;\n\t\twhile (--i !== 0) { // note that i == g from above\n\t\t\tx[xp] = (j += c[p]);\n\t\t\txp++;\n\t\t\tp++;\n\t\t}\n\n\t\t// Make a table of values in order of bit lengths\n\t\ti = 0;\n\t\tp = 0;\n\t\tdo {\n\t\t\tif ((j = b[bindex + p]) !== 0) {\n\t\t\t\tv[x[j]++] = i;\n\t\t\t}\n\t\t\tp++;\n\t\t} while (++i < n);\n\t\tn = x[g]; // set n to length of v\n\n\t\t// Generate the Huffman codes and for each, make the table entries\n\t\tx[0] = i = 0; // first Huffman code is zero\n\t\tp = 0; // grab values in bit order\n\t\th = -1; // no tables yet--level -1\n\t\tw = -l; // bits decoded == (l * h)\n\t\tu[0] = 0; // just to keep compilers happy\n\t\tq = 0; // ditto\n\t\tz = 0; // ditto\n\n\t\t// go through the bit lengths (k already is bits in shortest code)\n\t\tfor (; k <= g; k++) {\n\t\t\ta = c[k];\n\t\t\twhile (a-- !== 0) {\n\t\t\t\t// here i is the Huffman code of length k bits for value *p\n\t\t\t\t// make tables up to required level\n\t\t\t\twhile (k > w + l) {\n\t\t\t\t\th++;\n\t\t\t\t\tw += l; // previous table always l bits\n\t\t\t\t\t// compute minimum size table less than or equal to l bits\n\t\t\t\t\tz = g - w;\n\t\t\t\t\tz = (z > l) ? l : z; // table size upper limit\n\t\t\t\t\tif ((f = 1 << (j = k - w)) > a + 1) { // try a k-w bit table\n\t\t\t\t\t\t// too few codes for\n\t\t\t\t\t\t// k-w bit table\n\t\t\t\t\t\tf -= a + 1; // deduct codes from patterns left\n\t\t\t\t\t\txp = k;\n\t\t\t\t\t\tif (j < z) {\n\t\t\t\t\t\t\twhile (++j < z) { // try smaller tables up to z bits\n\t\t\t\t\t\t\t\tif ((f <<= 1) <= c[++xp])\n\t\t\t\t\t\t\t\t\tbreak; // enough codes to use up j bits\n\t\t\t\t\t\t\t\tf -= c[xp]; // else deduct codes from patterns\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tz = 1 << j; // table entries for j-bit table\n\n\t\t\t\t\t// allocate new table\n\t\t\t\t\tif (hn[0] + z > MANY) { // (note: doesn't matter for fixed)\n\t\t\t\t\t\treturn Z_DATA_ERROR; // overflow of MANY\n\t\t\t\t\t}\n\t\t\t\t\tu[h] = q = /* hp+ */hn[0]; // DEBUG\n\t\t\t\t\thn[0] += z;\n\n\t\t\t\t\t// connect to last table, if there is one\n\t\t\t\t\tif (h !== 0) {\n\t\t\t\t\t\tx[h] = i; // save pattern for backing up\n\t\t\t\t\t\tr[0] = /* (byte) */j; // bits in this table\n\t\t\t\t\t\tr[1] = /* (byte) */l; // bits to dump before this table\n\t\t\t\t\t\tj = i >>> (w - l);\n\t\t\t\t\t\tr[2] = /* (int) */(q - u[h - 1] - j); // offset to this table\n\t\t\t\t\t\thp.set(r, (u[h - 1] + j) * 3);\n\t\t\t\t\t\t// to\n\t\t\t\t\t\t// last\n\t\t\t\t\t\t// table\n\t\t\t\t\t} else {\n\t\t\t\t\t\tt[0] = q; // first table is returned result\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// set up table entry in r\n\t\t\t\tr[1] = /* (byte) */(k - w);\n\t\t\t\tif (p >= n) {\n\t\t\t\t\tr[0] = 128 + 64; // out of values--invalid code\n\t\t\t\t} else if (v[p] < s) {\n\t\t\t\t\tr[0] = /* (byte) */(v[p] < 256 ? 0 : 32 + 64); // 256 is\n\t\t\t\t\t// end-of-block\n\t\t\t\t\tr[2] = v[p++]; // simple code is just the value\n\t\t\t\t} else {\n\t\t\t\t\tr[0] = /* (byte) */(e[v[p] - s] + 16 + 64); // non-simple--look\n\t\t\t\t\t// up in lists\n\t\t\t\t\tr[2] = d[v[p++] - s];\n\t\t\t\t}\n\n\t\t\t\t// fill code-like entries with r\n\t\t\t\tf = 1 << (k - w);\n\t\t\t\tfor (j = i >>> w; j < z; j += f) {\n\t\t\t\t\thp.set(r, (q + j) * 3);\n\t\t\t\t}\n\n\t\t\t\t// backwards increment the k-bit code i\n\t\t\t\tfor (j = 1 << (k - 1); (i & j) !== 0; j >>>= 1) {\n\t\t\t\t\ti ^= j;\n\t\t\t\t}\n\t\t\t\ti ^= j;\n\n\t\t\t\t// backup over finished tables\n\t\t\t\tmask = (1 << w) - 1; // needed on HP, cc -O bug\n\t\t\t\twhile ((i & mask) != x[h]) {\n\t\t\t\t\th--; // don't need to update q\n\t\t\t\t\tw -= l;\n\t\t\t\t\tmask = (1 << w) - 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Return Z_BUF_ERROR if we were given an incomplete table\n\t\treturn y !== 0 && g != 1 ? Z_BUF_ERROR : Z_OK;\n\t}\n\n\tfunction initWorkArea(vsize) {\n\t\tvar i;\n\t\tif (!hn) {\n\t\t\thn = []; // []; //new Array(1);\n\t\t\tv = []; // new Array(vsize);\n\t\t\tc = new Int32Array(BMAX + 1); // new Array(BMAX + 1);\n\t\t\tr = []; // new Array(3);\n\t\t\tu = new Int32Array(BMAX); // new Array(BMAX);\n\t\t\tx = new Int32Array(BMAX + 1); // new Array(BMAX + 1);\n\t\t}\n\t\tif (v.length < vsize) {\n\t\t\tv = []; // new Array(vsize);\n\t\t}\n\t\tfor (i = 0; i < vsize; i++) {\n\t\t\tv[i] = 0;\n\t\t}\n\t\tfor (i = 0; i < BMAX + 1; i++) {\n\t\t\tc[i] = 0;\n\t\t}\n\t\tfor (i = 0; i < 3; i++) {\n\t\t\tr[i] = 0;\n\t\t}\n\t\t// for(int i=0; i 257)) {\n\t\t\tif (result == Z_DATA_ERROR) {\n\t\t\t\tz.msg = \"oversubscribed distance tree\";\n\t\t\t} else if (result == Z_BUF_ERROR) {\n\t\t\t\tz.msg = \"incomplete distance tree\";\n\t\t\t\tresult = Z_DATA_ERROR;\n\t\t\t} else if (result != Z_MEM_ERROR) {\n\t\t\t\tz.msg = \"empty distance tree with lengths\";\n\t\t\t\tresult = Z_DATA_ERROR;\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\n\t\treturn Z_OK;\n\t};\n\n}\n\nInfTree.inflate_trees_fixed = function(bl, // literal desired/actual bit depth\nbd, // distance desired/actual bit depth\ntl,// literal/length tree result\ntd// distance tree result\n) {\n\tbl[0] = fixed_bl;\n\tbd[0] = fixed_bd;\n\ttl[0] = fixed_tl;\n\ttd[0] = fixed_td;\n\treturn Z_OK;\n};\n\n// InfCodes\n\n// waiting for \"i:\"=input,\n// \"o:\"=output,\n// \"x:\"=nothing\nvar START = 0; // x: set up for LEN\nvar LEN = 1; // i: get length/literal/eob next\nvar LENEXT = 2; // i: getting length extra (have base)\nvar DIST = 3; // i: get distance next\nvar DISTEXT = 4;// i: getting distance extra\nvar COPY = 5; // o: copying bytes in window, waiting\n// for space\nvar LIT = 6; // o: got literal, waiting for output\n// space\nvar WASH = 7; // o: got eob, possibly still output\n// waiting\nvar END = 8; // x: got eob and all data flushed\nvar BADCODE = 9;// x: got error\n\nfunction InfCodes() {\n\tvar that = this;\n\n\tvar mode; // current inflate_codes mode\n\n\t// mode dependent information\n\tvar len = 0;\n\n\tvar tree; // pointer into tree\n\tvar tree_index = 0;\n\tvar need = 0; // bits needed\n\n\tvar lit = 0;\n\n\t// if EXT or COPY, where and how much\n\tvar get = 0; // bits to get for extra\n\tvar dist = 0; // distance back to copy from\n\n\tvar lbits = 0; // ltree bits decoded per branch\n\tvar dbits = 0; // dtree bits decoder per branch\n\tvar ltree; // literal/length/eob tree\n\tvar ltree_index = 0; // literal/length/eob tree\n\tvar dtree; // distance tree\n\tvar dtree_index = 0; // distance tree\n\n\t// Called with number of bytes left to write in window at least 258\n\t// (the maximum string length) and number of input bytes available\n\t// at least ten. The ten bytes are six bytes for the longest length/\n\t// distance pair plus four bytes for overloading the bit buffer.\n\n\tfunction inflate_fast(bl, bd, tl, tl_index, td, td_index, s, z) {\n\t\tvar t; // temporary pointer\n\t\tvar tp; // temporary pointer\n\t\tvar tp_index; // temporary pointer\n\t\tvar e; // extra bits or operation\n\t\tvar b; // bit buffer\n\t\tvar k; // bits in bit buffer\n\t\tvar p; // input data pointer\n\t\tvar n; // bytes available there\n\t\tvar q; // output window write pointer\n\t\tvar m; // bytes to end of window or read pointer\n\t\tvar ml; // mask for literal/length tree\n\t\tvar md; // mask for distance tree\n\t\tvar c; // bytes to copy\n\t\tvar d; // distance back to copy from\n\t\tvar r; // copy source pointer\n\n\t\tvar tp_index_t_3; // (tp_index+t)*3\n\n\t\t// load input, output, bit values\n\t\tp = z.next_in_index;\n\t\tn = z.avail_in;\n\t\tb = s.bitb;\n\t\tk = s.bitk;\n\t\tq = s.write;\n\t\tm = q < s.read ? s.read - q - 1 : s.end - q;\n\n\t\t// initialize masks\n\t\tml = inflate_mask[bl];\n\t\tmd = inflate_mask[bd];\n\n\t\t// do until not enough input or output space for fast loop\n\t\tdo { // assume called with m >= 258 && n >= 10\n\t\t\t// get literal/length code\n\t\t\twhile (k < (20)) { // max bits for literal/length code\n\t\t\t\tn--;\n\t\t\t\tb |= (z.read_byte(p++) & 0xff) << k;\n\t\t\t\tk += 8;\n\t\t\t}\n\n\t\t\tt = b & ml;\n\t\t\ttp = tl;\n\t\t\ttp_index = tl_index;\n\t\t\ttp_index_t_3 = (tp_index + t) * 3;\n\t\t\tif ((e = tp[tp_index_t_3]) === 0) {\n\t\t\t\tb >>= (tp[tp_index_t_3 + 1]);\n\t\t\t\tk -= (tp[tp_index_t_3 + 1]);\n\n\t\t\t\ts.window[q++] = /* (byte) */tp[tp_index_t_3 + 2];\n\t\t\t\tm--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdo {\n\n\t\t\t\tb >>= (tp[tp_index_t_3 + 1]);\n\t\t\t\tk -= (tp[tp_index_t_3 + 1]);\n\n\t\t\t\tif ((e & 16) !== 0) {\n\t\t\t\t\te &= 15;\n\t\t\t\t\tc = tp[tp_index_t_3 + 2] + (/* (int) */b & inflate_mask[e]);\n\n\t\t\t\t\tb >>= e;\n\t\t\t\t\tk -= e;\n\n\t\t\t\t\t// decode distance base of block to copy\n\t\t\t\t\twhile (k < (15)) { // max bits for distance code\n\t\t\t\t\t\tn--;\n\t\t\t\t\t\tb |= (z.read_byte(p++) & 0xff) << k;\n\t\t\t\t\t\tk += 8;\n\t\t\t\t\t}\n\n\t\t\t\t\tt = b & md;\n\t\t\t\t\ttp = td;\n\t\t\t\t\ttp_index = td_index;\n\t\t\t\t\ttp_index_t_3 = (tp_index + t) * 3;\n\t\t\t\t\te = tp[tp_index_t_3];\n\n\t\t\t\t\tdo {\n\n\t\t\t\t\t\tb >>= (tp[tp_index_t_3 + 1]);\n\t\t\t\t\t\tk -= (tp[tp_index_t_3 + 1]);\n\n\t\t\t\t\t\tif ((e & 16) !== 0) {\n\t\t\t\t\t\t\t// get extra bits to add to distance base\n\t\t\t\t\t\t\te &= 15;\n\t\t\t\t\t\t\twhile (k < (e)) { // get extra bits (up to 13)\n\t\t\t\t\t\t\t\tn--;\n\t\t\t\t\t\t\t\tb |= (z.read_byte(p++) & 0xff) << k;\n\t\t\t\t\t\t\t\tk += 8;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\td = tp[tp_index_t_3 + 2] + (b & inflate_mask[e]);\n\n\t\t\t\t\t\t\tb >>= (e);\n\t\t\t\t\t\t\tk -= (e);\n\n\t\t\t\t\t\t\t// do the copy\n\t\t\t\t\t\t\tm -= c;\n\t\t\t\t\t\t\tif (q >= d) { // offset before dest\n\t\t\t\t\t\t\t\t// just copy\n\t\t\t\t\t\t\t\tr = q - d;\n\t\t\t\t\t\t\t\tif (q - r > 0 && 2 > (q - r)) {\n\t\t\t\t\t\t\t\t\ts.window[q++] = s.window[r++]; // minimum\n\t\t\t\t\t\t\t\t\t// count is\n\t\t\t\t\t\t\t\t\t// three,\n\t\t\t\t\t\t\t\t\ts.window[q++] = s.window[r++]; // so unroll\n\t\t\t\t\t\t\t\t\t// loop a\n\t\t\t\t\t\t\t\t\t// little\n\t\t\t\t\t\t\t\t\tc -= 2;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\ts.window.set(s.window.subarray(r, r + 2), q);\n\t\t\t\t\t\t\t\t\tq += 2;\n\t\t\t\t\t\t\t\t\tr += 2;\n\t\t\t\t\t\t\t\t\tc -= 2;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else { // else offset after destination\n\t\t\t\t\t\t\t\tr = q - d;\n\t\t\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\t\t\tr += s.end; // force pointer in window\n\t\t\t\t\t\t\t\t} while (r < 0); // covers invalid distances\n\t\t\t\t\t\t\t\te = s.end - r;\n\t\t\t\t\t\t\t\tif (c > e) { // if source crosses,\n\t\t\t\t\t\t\t\t\tc -= e; // wrapped copy\n\t\t\t\t\t\t\t\t\tif (q - r > 0 && e > (q - r)) {\n\t\t\t\t\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\t\t\t\t\ts.window[q++] = s.window[r++];\n\t\t\t\t\t\t\t\t\t\t} while (--e !== 0);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\ts.window.set(s.window.subarray(r, r + e), q);\n\t\t\t\t\t\t\t\t\t\tq += e;\n\t\t\t\t\t\t\t\t\t\tr += e;\n\t\t\t\t\t\t\t\t\t\te = 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tr = 0; // copy rest from start of window\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// copy all or what's left\n\t\t\t\t\t\t\tif (q - r > 0 && c > (q - r)) {\n\t\t\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\t\t\ts.window[q++] = s.window[r++];\n\t\t\t\t\t\t\t\t} while (--c !== 0);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ts.window.set(s.window.subarray(r, r + c), q);\n\t\t\t\t\t\t\t\tq += c;\n\t\t\t\t\t\t\t\tr += c;\n\t\t\t\t\t\t\t\tc = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else if ((e & 64) === 0) {\n\t\t\t\t\t\t\tt += tp[tp_index_t_3 + 2];\n\t\t\t\t\t\t\tt += (b & inflate_mask[e]);\n\t\t\t\t\t\t\ttp_index_t_3 = (tp_index + t) * 3;\n\t\t\t\t\t\t\te = tp[tp_index_t_3];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tz.msg = \"invalid distance code\";\n\n\t\t\t\t\t\t\tc = z.avail_in - n;\n\t\t\t\t\t\t\tc = (k >> 3) < c ? k >> 3 : c;\n\t\t\t\t\t\t\tn += c;\n\t\t\t\t\t\t\tp -= c;\n\t\t\t\t\t\t\tk -= c << 3;\n\n\t\t\t\t\t\t\ts.bitb = b;\n\t\t\t\t\t\t\ts.bitk = k;\n\t\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\t\ts.write = q;\n\n\t\t\t\t\t\t\treturn Z_DATA_ERROR;\n\t\t\t\t\t\t}\n\t\t\t\t\t} while (true);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif ((e & 64) === 0) {\n\t\t\t\t\tt += tp[tp_index_t_3 + 2];\n\t\t\t\t\tt += (b & inflate_mask[e]);\n\t\t\t\t\ttp_index_t_3 = (tp_index + t) * 3;\n\t\t\t\t\tif ((e = tp[tp_index_t_3]) === 0) {\n\n\t\t\t\t\t\tb >>= (tp[tp_index_t_3 + 1]);\n\t\t\t\t\t\tk -= (tp[tp_index_t_3 + 1]);\n\n\t\t\t\t\t\ts.window[q++] = /* (byte) */tp[tp_index_t_3 + 2];\n\t\t\t\t\t\tm--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if ((e & 32) !== 0) {\n\n\t\t\t\t\tc = z.avail_in - n;\n\t\t\t\t\tc = (k >> 3) < c ? k >> 3 : c;\n\t\t\t\t\tn += c;\n\t\t\t\t\tp -= c;\n\t\t\t\t\tk -= c << 3;\n\n\t\t\t\t\ts.bitb = b;\n\t\t\t\t\ts.bitk = k;\n\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\ts.write = q;\n\n\t\t\t\t\treturn Z_STREAM_END;\n\t\t\t\t} else {\n\t\t\t\t\tz.msg = \"invalid literal/length code\";\n\n\t\t\t\t\tc = z.avail_in - n;\n\t\t\t\t\tc = (k >> 3) < c ? k >> 3 : c;\n\t\t\t\t\tn += c;\n\t\t\t\t\tp -= c;\n\t\t\t\t\tk -= c << 3;\n\n\t\t\t\t\ts.bitb = b;\n\t\t\t\t\ts.bitk = k;\n\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\ts.write = q;\n\n\t\t\t\t\treturn Z_DATA_ERROR;\n\t\t\t\t}\n\t\t\t} while (true);\n\t\t} while (m >= 258 && n >= 10);\n\n\t\t// not enough input or output--restore pointers and return\n\t\tc = z.avail_in - n;\n\t\tc = (k >> 3) < c ? k >> 3 : c;\n\t\tn += c;\n\t\tp -= c;\n\t\tk -= c << 3;\n\n\t\ts.bitb = b;\n\t\ts.bitk = k;\n\t\tz.avail_in = n;\n\t\tz.total_in += p - z.next_in_index;\n\t\tz.next_in_index = p;\n\t\ts.write = q;\n\n\t\treturn Z_OK;\n\t}\n\n\tthat.init = function(bl, bd, tl, tl_index, td, td_index) {\n\t\tmode = START;\n\t\tlbits = /* (byte) */bl;\n\t\tdbits = /* (byte) */bd;\n\t\tltree = tl;\n\t\tltree_index = tl_index;\n\t\tdtree = td;\n\t\tdtree_index = td_index;\n\t\ttree = null;\n\t};\n\n\tthat.proc = function(s, z, r) {\n\t\tvar j; // temporary storage\n\t\tvar tindex; // temporary pointer\n\t\tvar e; // extra bits or operation\n\t\tvar b = 0; // bit buffer\n\t\tvar k = 0; // bits in bit buffer\n\t\tvar p = 0; // input data pointer\n\t\tvar n; // bytes available there\n\t\tvar q; // output window write pointer\n\t\tvar m; // bytes to end of window or read pointer\n\t\tvar f; // pointer to copy strings from\n\n\t\t// copy input/output information to locals (UPDATE macro restores)\n\t\tp = z.next_in_index;\n\t\tn = z.avail_in;\n\t\tb = s.bitb;\n\t\tk = s.bitk;\n\t\tq = s.write;\n\t\tm = q < s.read ? s.read - q - 1 : s.end - q;\n\n\t\t// process input and output based on current state\n\t\twhile (true) {\n\t\t\tswitch (mode) {\n\t\t\t// waiting for \"i:\"=input, \"o:\"=output, \"x:\"=nothing\n\t\t\tcase START: // x: set up for LEN\n\t\t\t\tif (m >= 258 && n >= 10) {\n\n\t\t\t\t\ts.bitb = b;\n\t\t\t\t\ts.bitk = k;\n\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\ts.write = q;\n\t\t\t\t\tr = inflate_fast(lbits, dbits, ltree, ltree_index, dtree, dtree_index, s, z);\n\n\t\t\t\t\tp = z.next_in_index;\n\t\t\t\t\tn = z.avail_in;\n\t\t\t\t\tb = s.bitb;\n\t\t\t\t\tk = s.bitk;\n\t\t\t\t\tq = s.write;\n\t\t\t\t\tm = q < s.read ? s.read - q - 1 : s.end - q;\n\n\t\t\t\t\tif (r != Z_OK) {\n\t\t\t\t\t\tmode = r == Z_STREAM_END ? WASH : BADCODE;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tneed = lbits;\n\t\t\t\ttree = ltree;\n\t\t\t\ttree_index = ltree_index;\n\n\t\t\t\tmode = LEN;\n\t\t\t\t/* falls through */\n\t\t\tcase LEN: // i: get length/literal/eob next\n\t\t\t\tj = need;\n\n\t\t\t\twhile (k < (j)) {\n\t\t\t\t\tif (n !== 0)\n\t\t\t\t\t\tr = Z_OK;\n\t\t\t\t\telse {\n\n\t\t\t\t\t\ts.bitb = b;\n\t\t\t\t\t\ts.bitk = k;\n\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\ts.write = q;\n\t\t\t\t\t\treturn s.inflate_flush(z, r);\n\t\t\t\t\t}\n\t\t\t\t\tn--;\n\t\t\t\t\tb |= (z.read_byte(p++) & 0xff) << k;\n\t\t\t\t\tk += 8;\n\t\t\t\t}\n\n\t\t\t\ttindex = (tree_index + (b & inflate_mask[j])) * 3;\n\n\t\t\t\tb >>>= (tree[tindex + 1]);\n\t\t\t\tk -= (tree[tindex + 1]);\n\n\t\t\t\te = tree[tindex];\n\n\t\t\t\tif (e === 0) { // literal\n\t\t\t\t\tlit = tree[tindex + 2];\n\t\t\t\t\tmode = LIT;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif ((e & 16) !== 0) { // length\n\t\t\t\t\tget = e & 15;\n\t\t\t\t\tlen = tree[tindex + 2];\n\t\t\t\t\tmode = LENEXT;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif ((e & 64) === 0) { // next table\n\t\t\t\t\tneed = e;\n\t\t\t\t\ttree_index = tindex / 3 + tree[tindex + 2];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif ((e & 32) !== 0) { // end of block\n\t\t\t\t\tmode = WASH;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmode = BADCODE; // invalid code\n\t\t\t\tz.msg = \"invalid literal/length code\";\n\t\t\t\tr = Z_DATA_ERROR;\n\n\t\t\t\ts.bitb = b;\n\t\t\t\ts.bitk = k;\n\t\t\t\tz.avail_in = n;\n\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\tz.next_in_index = p;\n\t\t\t\ts.write = q;\n\t\t\t\treturn s.inflate_flush(z, r);\n\n\t\t\tcase LENEXT: // i: getting length extra (have base)\n\t\t\t\tj = get;\n\n\t\t\t\twhile (k < (j)) {\n\t\t\t\t\tif (n !== 0)\n\t\t\t\t\t\tr = Z_OK;\n\t\t\t\t\telse {\n\n\t\t\t\t\t\ts.bitb = b;\n\t\t\t\t\t\ts.bitk = k;\n\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\ts.write = q;\n\t\t\t\t\t\treturn s.inflate_flush(z, r);\n\t\t\t\t\t}\n\t\t\t\t\tn--;\n\t\t\t\t\tb |= (z.read_byte(p++) & 0xff) << k;\n\t\t\t\t\tk += 8;\n\t\t\t\t}\n\n\t\t\t\tlen += (b & inflate_mask[j]);\n\n\t\t\t\tb >>= j;\n\t\t\t\tk -= j;\n\n\t\t\t\tneed = dbits;\n\t\t\t\ttree = dtree;\n\t\t\t\ttree_index = dtree_index;\n\t\t\t\tmode = DIST;\n\t\t\t\t/* falls through */\n\t\t\tcase DIST: // i: get distance next\n\t\t\t\tj = need;\n\n\t\t\t\twhile (k < (j)) {\n\t\t\t\t\tif (n !== 0)\n\t\t\t\t\t\tr = Z_OK;\n\t\t\t\t\telse {\n\n\t\t\t\t\t\ts.bitb = b;\n\t\t\t\t\t\ts.bitk = k;\n\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\ts.write = q;\n\t\t\t\t\t\treturn s.inflate_flush(z, r);\n\t\t\t\t\t}\n\t\t\t\t\tn--;\n\t\t\t\t\tb |= (z.read_byte(p++) & 0xff) << k;\n\t\t\t\t\tk += 8;\n\t\t\t\t}\n\n\t\t\t\ttindex = (tree_index + (b & inflate_mask[j])) * 3;\n\n\t\t\t\tb >>= tree[tindex + 1];\n\t\t\t\tk -= tree[tindex + 1];\n\n\t\t\t\te = (tree[tindex]);\n\t\t\t\tif ((e & 16) !== 0) { // distance\n\t\t\t\t\tget = e & 15;\n\t\t\t\t\tdist = tree[tindex + 2];\n\t\t\t\t\tmode = DISTEXT;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif ((e & 64) === 0) { // next table\n\t\t\t\t\tneed = e;\n\t\t\t\t\ttree_index = tindex / 3 + tree[tindex + 2];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmode = BADCODE; // invalid code\n\t\t\t\tz.msg = \"invalid distance code\";\n\t\t\t\tr = Z_DATA_ERROR;\n\n\t\t\t\ts.bitb = b;\n\t\t\t\ts.bitk = k;\n\t\t\t\tz.avail_in = n;\n\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\tz.next_in_index = p;\n\t\t\t\ts.write = q;\n\t\t\t\treturn s.inflate_flush(z, r);\n\n\t\t\tcase DISTEXT: // i: getting distance extra\n\t\t\t\tj = get;\n\n\t\t\t\twhile (k < (j)) {\n\t\t\t\t\tif (n !== 0)\n\t\t\t\t\t\tr = Z_OK;\n\t\t\t\t\telse {\n\n\t\t\t\t\t\ts.bitb = b;\n\t\t\t\t\t\ts.bitk = k;\n\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\ts.write = q;\n\t\t\t\t\t\treturn s.inflate_flush(z, r);\n\t\t\t\t\t}\n\t\t\t\t\tn--;\n\t\t\t\t\tb |= (z.read_byte(p++) & 0xff) << k;\n\t\t\t\t\tk += 8;\n\t\t\t\t}\n\n\t\t\t\tdist += (b & inflate_mask[j]);\n\n\t\t\t\tb >>= j;\n\t\t\t\tk -= j;\n\n\t\t\t\tmode = COPY;\n\t\t\t\t/* falls through */\n\t\t\tcase COPY: // o: copying bytes in window, waiting for space\n\t\t\t\tf = q - dist;\n\t\t\t\twhile (f < 0) { // modulo window size-\"while\" instead\n\t\t\t\t\tf += s.end; // of \"if\" handles invalid distances\n\t\t\t\t}\n\t\t\t\twhile (len !== 0) {\n\n\t\t\t\t\tif (m === 0) {\n\t\t\t\t\t\tif (q == s.end && s.read !== 0) {\n\t\t\t\t\t\t\tq = 0;\n\t\t\t\t\t\t\tm = q < s.read ? s.read - q - 1 : s.end - q;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (m === 0) {\n\t\t\t\t\t\t\ts.write = q;\n\t\t\t\t\t\t\tr = s.inflate_flush(z, r);\n\t\t\t\t\t\t\tq = s.write;\n\t\t\t\t\t\t\tm = q < s.read ? s.read - q - 1 : s.end - q;\n\n\t\t\t\t\t\t\tif (q == s.end && s.read !== 0) {\n\t\t\t\t\t\t\t\tq = 0;\n\t\t\t\t\t\t\t\tm = q < s.read ? s.read - q - 1 : s.end - q;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (m === 0) {\n\t\t\t\t\t\t\t\ts.bitb = b;\n\t\t\t\t\t\t\t\ts.bitk = k;\n\t\t\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\t\t\ts.write = q;\n\t\t\t\t\t\t\t\treturn s.inflate_flush(z, r);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\ts.window[q++] = s.window[f++];\n\t\t\t\t\tm--;\n\n\t\t\t\t\tif (f == s.end)\n\t\t\t\t\t\tf = 0;\n\t\t\t\t\tlen--;\n\t\t\t\t}\n\t\t\t\tmode = START;\n\t\t\t\tbreak;\n\t\t\tcase LIT: // o: got literal, waiting for output space\n\t\t\t\tif (m === 0) {\n\t\t\t\t\tif (q == s.end && s.read !== 0) {\n\t\t\t\t\t\tq = 0;\n\t\t\t\t\t\tm = q < s.read ? s.read - q - 1 : s.end - q;\n\t\t\t\t\t}\n\t\t\t\t\tif (m === 0) {\n\t\t\t\t\t\ts.write = q;\n\t\t\t\t\t\tr = s.inflate_flush(z, r);\n\t\t\t\t\t\tq = s.write;\n\t\t\t\t\t\tm = q < s.read ? s.read - q - 1 : s.end - q;\n\n\t\t\t\t\t\tif (q == s.end && s.read !== 0) {\n\t\t\t\t\t\t\tq = 0;\n\t\t\t\t\t\t\tm = q < s.read ? s.read - q - 1 : s.end - q;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (m === 0) {\n\t\t\t\t\t\t\ts.bitb = b;\n\t\t\t\t\t\t\ts.bitk = k;\n\t\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\t\ts.write = q;\n\t\t\t\t\t\t\treturn s.inflate_flush(z, r);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tr = Z_OK;\n\n\t\t\t\ts.window[q++] = /* (byte) */lit;\n\t\t\t\tm--;\n\n\t\t\t\tmode = START;\n\t\t\t\tbreak;\n\t\t\tcase WASH: // o: got eob, possibly more output\n\t\t\t\tif (k > 7) { // return unused byte, if any\n\t\t\t\t\tk -= 8;\n\t\t\t\t\tn++;\n\t\t\t\t\tp--; // can always return one\n\t\t\t\t}\n\n\t\t\t\ts.write = q;\n\t\t\t\tr = s.inflate_flush(z, r);\n\t\t\t\tq = s.write;\n\t\t\t\tm = q < s.read ? s.read - q - 1 : s.end - q;\n\n\t\t\t\tif (s.read != s.write) {\n\t\t\t\t\ts.bitb = b;\n\t\t\t\t\ts.bitk = k;\n\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\ts.write = q;\n\t\t\t\t\treturn s.inflate_flush(z, r);\n\t\t\t\t}\n\t\t\t\tmode = END;\n\t\t\t\t/* falls through */\n\t\t\tcase END:\n\t\t\t\tr = Z_STREAM_END;\n\t\t\t\ts.bitb = b;\n\t\t\t\ts.bitk = k;\n\t\t\t\tz.avail_in = n;\n\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\tz.next_in_index = p;\n\t\t\t\ts.write = q;\n\t\t\t\treturn s.inflate_flush(z, r);\n\n\t\t\tcase BADCODE: // x: got error\n\n\t\t\t\tr = Z_DATA_ERROR;\n\n\t\t\t\ts.bitb = b;\n\t\t\t\ts.bitk = k;\n\t\t\t\tz.avail_in = n;\n\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\tz.next_in_index = p;\n\t\t\t\ts.write = q;\n\t\t\t\treturn s.inflate_flush(z, r);\n\n\t\t\tdefault:\n\t\t\t\tr = Z_STREAM_ERROR;\n\n\t\t\t\ts.bitb = b;\n\t\t\t\ts.bitk = k;\n\t\t\t\tz.avail_in = n;\n\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\tz.next_in_index = p;\n\t\t\t\ts.write = q;\n\t\t\t\treturn s.inflate_flush(z, r);\n\t\t\t}\n\t\t}\n\t};\n\n\tthat.free = function() {\n\t\t// ZFREE(z, c);\n\t};\n\n}\n\n// InfBlocks\n\n// Table for deflate from PKZIP's appnote.txt.\nvar border = [ // Order of the bit length code lengths\n16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ];\n\nvar TYPE = 0; // get type bits (3, including end bit)\nvar LENS = 1; // get lengths for stored\nvar STORED = 2;// processing stored block\nvar TABLE = 3; // get table lengths\nvar BTREE = 4; // get bit lengths tree for a dynamic\n// block\nvar DTREE = 5; // get length, distance trees for a\n// dynamic block\nvar CODES = 6; // processing fixed or dynamic block\nvar DRY = 7; // output remaining window bytes\nvar DONELOCKS = 8; // finished last block, done\nvar BADBLOCKS = 9; // ot a data error--stuck here\n\nfunction InfBlocks(z, w) {\n\tvar that = this;\n\n\tvar mode = TYPE; // current inflate_block mode\n\n\tvar left = 0; // if STORED, bytes left to copy\n\n\tvar table = 0; // table lengths (14 bits)\n\tvar index = 0; // index into blens (or border)\n\tvar blens; // bit lengths of codes\n\tvar bb = [ 0 ]; // bit length tree depth\n\tvar tb = [ 0 ]; // bit length decoding tree\n\n\tvar codes = new InfCodes(); // if CODES, current state\n\n\tvar last = 0; // true if this block is the last block\n\n\tvar hufts = new Int32Array(MANY * 3); // single malloc for tree space\n\tvar check = 0; // check on output\n\tvar inftree = new InfTree();\n\n\tthat.bitk = 0; // bits in bit buffer\n\tthat.bitb = 0; // bit buffer\n\tthat.window = new Uint8Array(w); // sliding window\n\tthat.end = w; // one byte after sliding window\n\tthat.read = 0; // window read pointer\n\tthat.write = 0; // window write pointer\n\n\tthat.reset = function(z, c) {\n\t\tif (c)\n\t\t\tc[0] = check;\n\t\t// if (mode == BTREE || mode == DTREE) {\n\t\t// }\n\t\tif (mode == CODES) {\n\t\t\tcodes.free(z);\n\t\t}\n\t\tmode = TYPE;\n\t\tthat.bitk = 0;\n\t\tthat.bitb = 0;\n\t\tthat.read = that.write = 0;\n\t};\n\n\tthat.reset(z, null);\n\n\t// copy as much as possible from the sliding window to the output area\n\tthat.inflate_flush = function(z, r) {\n\t\tvar n;\n\t\tvar p;\n\t\tvar q;\n\n\t\t// local copies of source and destination pointers\n\t\tp = z.next_out_index;\n\t\tq = that.read;\n\n\t\t// compute number of bytes to copy as far as end of window\n\t\tn = /* (int) */((q <= that.write ? that.write : that.end) - q);\n\t\tif (n > z.avail_out)\n\t\t\tn = z.avail_out;\n\t\tif (n !== 0 && r == Z_BUF_ERROR)\n\t\t\tr = Z_OK;\n\n\t\t// update counters\n\t\tz.avail_out -= n;\n\t\tz.total_out += n;\n\n\t\t// copy as far as end of window\n\t\tz.next_out.set(that.window.subarray(q, q + n), p);\n\t\tp += n;\n\t\tq += n;\n\n\t\t// see if more to copy at beginning of window\n\t\tif (q == that.end) {\n\t\t\t// wrap pointers\n\t\t\tq = 0;\n\t\t\tif (that.write == that.end)\n\t\t\t\tthat.write = 0;\n\n\t\t\t// compute bytes to copy\n\t\t\tn = that.write - q;\n\t\t\tif (n > z.avail_out)\n\t\t\t\tn = z.avail_out;\n\t\t\tif (n !== 0 && r == Z_BUF_ERROR)\n\t\t\t\tr = Z_OK;\n\n\t\t\t// update counters\n\t\t\tz.avail_out -= n;\n\t\t\tz.total_out += n;\n\n\t\t\t// copy\n\t\t\tz.next_out.set(that.window.subarray(q, q + n), p);\n\t\t\tp += n;\n\t\t\tq += n;\n\t\t}\n\n\t\t// update pointers\n\t\tz.next_out_index = p;\n\t\tthat.read = q;\n\n\t\t// done\n\t\treturn r;\n\t};\n\n\tthat.proc = function(z, r) {\n\t\tvar t; // temporary storage\n\t\tvar b; // bit buffer\n\t\tvar k; // bits in bit buffer\n\t\tvar p; // input data pointer\n\t\tvar n; // bytes available there\n\t\tvar q; // output window write pointer\n\t\tvar m; // bytes to end of window or read pointer\n\n\t\tvar i;\n\n\t\t// copy input/output information to locals (UPDATE macro restores)\n\t\t// {\n\t\tp = z.next_in_index;\n\t\tn = z.avail_in;\n\t\tb = that.bitb;\n\t\tk = that.bitk;\n\t\t// }\n\t\t// {\n\t\tq = that.write;\n\t\tm = /* (int) */(q < that.read ? that.read - q - 1 : that.end - q);\n\t\t// }\n\n\t\t// process input based on current state\n\t\t// DEBUG dtree\n\t\twhile (true) {\n\t\t\tswitch (mode) {\n\t\t\tcase TYPE:\n\n\t\t\t\twhile (k < (3)) {\n\t\t\t\t\tif (n !== 0) {\n\t\t\t\t\t\tr = Z_OK;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\tthat.write = q;\n\t\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t\t}\n\t\t\t\t\tn--;\n\t\t\t\t\tb |= (z.read_byte(p++) & 0xff) << k;\n\t\t\t\t\tk += 8;\n\t\t\t\t}\n\t\t\t\tt = /* (int) */(b & 7);\n\t\t\t\tlast = t & 1;\n\n\t\t\t\tswitch (t >>> 1) {\n\t\t\t\tcase 0: // stored\n\t\t\t\t\t// {\n\t\t\t\t\tb >>>= (3);\n\t\t\t\t\tk -= (3);\n\t\t\t\t\t// }\n\t\t\t\t\tt = k & 7; // go to byte boundary\n\n\t\t\t\t\t// {\n\t\t\t\t\tb >>>= (t);\n\t\t\t\t\tk -= (t);\n\t\t\t\t\t// }\n\t\t\t\t\tmode = LENS; // get length of stored block\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1: // fixed\n\t\t\t\t\t// {\n\t\t\t\t\tvar bl = []; // new Array(1);\n\t\t\t\t\tvar bd = []; // new Array(1);\n\t\t\t\t\tvar tl = [ [] ]; // new Array(1);\n\t\t\t\t\tvar td = [ [] ]; // new Array(1);\n\n\t\t\t\t\tInfTree.inflate_trees_fixed(bl, bd, tl, td);\n\t\t\t\t\tcodes.init(bl[0], bd[0], tl[0], 0, td[0], 0);\n\t\t\t\t\t// }\n\n\t\t\t\t\t// {\n\t\t\t\t\tb >>>= (3);\n\t\t\t\t\tk -= (3);\n\t\t\t\t\t// }\n\n\t\t\t\t\tmode = CODES;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: // dynamic\n\n\t\t\t\t\t// {\n\t\t\t\t\tb >>>= (3);\n\t\t\t\t\tk -= (3);\n\t\t\t\t\t// }\n\n\t\t\t\t\tmode = TABLE;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: // illegal\n\n\t\t\t\t\t// {\n\t\t\t\t\tb >>>= (3);\n\t\t\t\t\tk -= (3);\n\t\t\t\t\t// }\n\t\t\t\t\tmode = BADBLOCKS;\n\t\t\t\t\tz.msg = \"invalid block type\";\n\t\t\t\t\tr = Z_DATA_ERROR;\n\n\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\tthat.write = q;\n\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LENS:\n\n\t\t\t\twhile (k < (32)) {\n\t\t\t\t\tif (n !== 0) {\n\t\t\t\t\t\tr = Z_OK;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\tthat.write = q;\n\t\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t\t}\n\t\t\t\t\tn--;\n\t\t\t\t\tb |= (z.read_byte(p++) & 0xff) << k;\n\t\t\t\t\tk += 8;\n\t\t\t\t}\n\n\t\t\t\tif ((((~b) >>> 16) & 0xffff) != (b & 0xffff)) {\n\t\t\t\t\tmode = BADBLOCKS;\n\t\t\t\t\tz.msg = \"invalid stored block lengths\";\n\t\t\t\t\tr = Z_DATA_ERROR;\n\n\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\tthat.write = q;\n\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t}\n\t\t\t\tleft = (b & 0xffff);\n\t\t\t\tb = k = 0; // dump bits\n\t\t\t\tmode = left !== 0 ? STORED : (last !== 0 ? DRY : TYPE);\n\t\t\t\tbreak;\n\t\t\tcase STORED:\n\t\t\t\tif (n === 0) {\n\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\tthat.write = q;\n\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t}\n\n\t\t\t\tif (m === 0) {\n\t\t\t\t\tif (q == that.end && that.read !== 0) {\n\t\t\t\t\t\tq = 0;\n\t\t\t\t\t\tm = /* (int) */(q < that.read ? that.read - q - 1 : that.end - q);\n\t\t\t\t\t}\n\t\t\t\t\tif (m === 0) {\n\t\t\t\t\t\tthat.write = q;\n\t\t\t\t\t\tr = that.inflate_flush(z, r);\n\t\t\t\t\t\tq = that.write;\n\t\t\t\t\t\tm = /* (int) */(q < that.read ? that.read - q - 1 : that.end - q);\n\t\t\t\t\t\tif (q == that.end && that.read !== 0) {\n\t\t\t\t\t\t\tq = 0;\n\t\t\t\t\t\t\tm = /* (int) */(q < that.read ? that.read - q - 1 : that.end - q);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (m === 0) {\n\t\t\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\t\tthat.write = q;\n\t\t\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tr = Z_OK;\n\n\t\t\t\tt = left;\n\t\t\t\tif (t > n)\n\t\t\t\t\tt = n;\n\t\t\t\tif (t > m)\n\t\t\t\t\tt = m;\n\t\t\t\tthat.window.set(z.read_buf(p, t), q);\n\t\t\t\tp += t;\n\t\t\t\tn -= t;\n\t\t\t\tq += t;\n\t\t\t\tm -= t;\n\t\t\t\tif ((left -= t) !== 0)\n\t\t\t\t\tbreak;\n\t\t\t\tmode = last !== 0 ? DRY : TYPE;\n\t\t\t\tbreak;\n\t\t\tcase TABLE:\n\n\t\t\t\twhile (k < (14)) {\n\t\t\t\t\tif (n !== 0) {\n\t\t\t\t\t\tr = Z_OK;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\tthat.write = q;\n\t\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t\t}\n\n\t\t\t\t\tn--;\n\t\t\t\t\tb |= (z.read_byte(p++) & 0xff) << k;\n\t\t\t\t\tk += 8;\n\t\t\t\t}\n\n\t\t\t\ttable = t = (b & 0x3fff);\n\t\t\t\tif ((t & 0x1f) > 29 || ((t >> 5) & 0x1f) > 29) {\n\t\t\t\t\tmode = BADBLOCKS;\n\t\t\t\t\tz.msg = \"too many length or distance symbols\";\n\t\t\t\t\tr = Z_DATA_ERROR;\n\n\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\tthat.write = q;\n\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t}\n\t\t\t\tt = 258 + (t & 0x1f) + ((t >> 5) & 0x1f);\n\t\t\t\tif (!blens || blens.length < t) {\n\t\t\t\t\tblens = []; // new Array(t);\n\t\t\t\t} else {\n\t\t\t\t\tfor (i = 0; i < t; i++) {\n\t\t\t\t\t\tblens[i] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// {\n\t\t\t\tb >>>= (14);\n\t\t\t\tk -= (14);\n\t\t\t\t// }\n\n\t\t\t\tindex = 0;\n\t\t\t\tmode = BTREE;\n\t\t\t\t/* falls through */\n\t\t\tcase BTREE:\n\t\t\t\twhile (index < 4 + (table >>> 10)) {\n\t\t\t\t\twhile (k < (3)) {\n\t\t\t\t\t\tif (n !== 0) {\n\t\t\t\t\t\t\tr = Z_OK;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\t\tthat.write = q;\n\t\t\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tn--;\n\t\t\t\t\t\tb |= (z.read_byte(p++) & 0xff) << k;\n\t\t\t\t\t\tk += 8;\n\t\t\t\t\t}\n\n\t\t\t\t\tblens[border[index++]] = b & 7;\n\n\t\t\t\t\t// {\n\t\t\t\t\tb >>>= (3);\n\t\t\t\t\tk -= (3);\n\t\t\t\t\t// }\n\t\t\t\t}\n\n\t\t\t\twhile (index < 19) {\n\t\t\t\t\tblens[border[index++]] = 0;\n\t\t\t\t}\n\n\t\t\t\tbb[0] = 7;\n\t\t\t\tt = inftree.inflate_trees_bits(blens, bb, tb, hufts, z);\n\t\t\t\tif (t != Z_OK) {\n\t\t\t\t\tr = t;\n\t\t\t\t\tif (r == Z_DATA_ERROR) {\n\t\t\t\t\t\tblens = null;\n\t\t\t\t\t\tmode = BADBLOCKS;\n\t\t\t\t\t}\n\n\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\tthat.write = q;\n\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t}\n\n\t\t\t\tindex = 0;\n\t\t\t\tmode = DTREE;\n\t\t\t\t/* falls through */\n\t\t\tcase DTREE:\n\t\t\t\twhile (true) {\n\t\t\t\t\tt = table;\n\t\t\t\t\tif (index >= 258 + (t & 0x1f) + ((t >> 5) & 0x1f)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar j, c;\n\n\t\t\t\t\tt = bb[0];\n\n\t\t\t\t\twhile (k < (t)) {\n\t\t\t\t\t\tif (n !== 0) {\n\t\t\t\t\t\t\tr = Z_OK;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\t\tthat.write = q;\n\t\t\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tn--;\n\t\t\t\t\t\tb |= (z.read_byte(p++) & 0xff) << k;\n\t\t\t\t\t\tk += 8;\n\t\t\t\t\t}\n\n\t\t\t\t\t// if (tb[0] == -1) {\n\t\t\t\t\t// System.err.println(\"null...\");\n\t\t\t\t\t// }\n\n\t\t\t\t\tt = hufts[(tb[0] + (b & inflate_mask[t])) * 3 + 1];\n\t\t\t\t\tc = hufts[(tb[0] + (b & inflate_mask[t])) * 3 + 2];\n\n\t\t\t\t\tif (c < 16) {\n\t\t\t\t\t\tb >>>= (t);\n\t\t\t\t\t\tk -= (t);\n\t\t\t\t\t\tblens[index++] = c;\n\t\t\t\t\t} else { // c == 16..18\n\t\t\t\t\t\ti = c == 18 ? 7 : c - 14;\n\t\t\t\t\t\tj = c == 18 ? 11 : 3;\n\n\t\t\t\t\t\twhile (k < (t + i)) {\n\t\t\t\t\t\t\tif (n !== 0) {\n\t\t\t\t\t\t\t\tr = Z_OK;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\t\t\tthat.write = q;\n\t\t\t\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tn--;\n\t\t\t\t\t\t\tb |= (z.read_byte(p++) & 0xff) << k;\n\t\t\t\t\t\t\tk += 8;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tb >>>= (t);\n\t\t\t\t\t\tk -= (t);\n\n\t\t\t\t\t\tj += (b & inflate_mask[i]);\n\n\t\t\t\t\t\tb >>>= (i);\n\t\t\t\t\t\tk -= (i);\n\n\t\t\t\t\t\ti = index;\n\t\t\t\t\t\tt = table;\n\t\t\t\t\t\tif (i + j > 258 + (t & 0x1f) + ((t >> 5) & 0x1f) || (c == 16 && i < 1)) {\n\t\t\t\t\t\t\tblens = null;\n\t\t\t\t\t\t\tmode = BADBLOCKS;\n\t\t\t\t\t\t\tz.msg = \"invalid bit length repeat\";\n\t\t\t\t\t\t\tr = Z_DATA_ERROR;\n\n\t\t\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\t\t\tthat.write = q;\n\t\t\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tc = c == 16 ? blens[i - 1] : 0;\n\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\tblens[i++] = c;\n\t\t\t\t\t\t} while (--j !== 0);\n\t\t\t\t\t\tindex = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttb[0] = -1;\n\t\t\t\t// {\n\t\t\t\tvar bl_ = []; // new Array(1);\n\t\t\t\tvar bd_ = []; // new Array(1);\n\t\t\t\tvar tl_ = []; // new Array(1);\n\t\t\t\tvar td_ = []; // new Array(1);\n\t\t\t\tbl_[0] = 9; // must be <= 9 for lookahead assumptions\n\t\t\t\tbd_[0] = 6; // must be <= 9 for lookahead assumptions\n\n\t\t\t\tt = table;\n\t\t\t\tt = inftree.inflate_trees_dynamic(257 + (t & 0x1f), 1 + ((t >> 5) & 0x1f), blens, bl_, bd_, tl_, td_, hufts, z);\n\n\t\t\t\tif (t != Z_OK) {\n\t\t\t\t\tif (t == Z_DATA_ERROR) {\n\t\t\t\t\t\tblens = null;\n\t\t\t\t\t\tmode = BADBLOCKS;\n\t\t\t\t\t}\n\t\t\t\t\tr = t;\n\n\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\tthat.write = q;\n\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t}\n\t\t\t\tcodes.init(bl_[0], bd_[0], hufts, tl_[0], hufts, td_[0]);\n\t\t\t\t// }\n\t\t\t\tmode = CODES;\n\t\t\t\t/* falls through */\n\t\t\tcase CODES:\n\t\t\t\tthat.bitb = b;\n\t\t\t\tthat.bitk = k;\n\t\t\t\tz.avail_in = n;\n\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\tz.next_in_index = p;\n\t\t\t\tthat.write = q;\n\n\t\t\t\tif ((r = codes.proc(that, z, r)) != Z_STREAM_END) {\n\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t}\n\t\t\t\tr = Z_OK;\n\t\t\t\tcodes.free(z);\n\n\t\t\t\tp = z.next_in_index;\n\t\t\t\tn = z.avail_in;\n\t\t\t\tb = that.bitb;\n\t\t\t\tk = that.bitk;\n\t\t\t\tq = that.write;\n\t\t\t\tm = /* (int) */(q < that.read ? that.read - q - 1 : that.end - q);\n\n\t\t\t\tif (last === 0) {\n\t\t\t\t\tmode = TYPE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tmode = DRY;\n\t\t\t\t/* falls through */\n\t\t\tcase DRY:\n\t\t\t\tthat.write = q;\n\t\t\t\tr = that.inflate_flush(z, r);\n\t\t\t\tq = that.write;\n\t\t\t\tm = /* (int) */(q < that.read ? that.read - q - 1 : that.end - q);\n\t\t\t\tif (that.read != that.write) {\n\t\t\t\t\tthat.bitb = b;\n\t\t\t\t\tthat.bitk = k;\n\t\t\t\t\tz.avail_in = n;\n\t\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\t\tz.next_in_index = p;\n\t\t\t\t\tthat.write = q;\n\t\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t\t}\n\t\t\t\tmode = DONELOCKS;\n\t\t\t\t/* falls through */\n\t\t\tcase DONELOCKS:\n\t\t\t\tr = Z_STREAM_END;\n\n\t\t\t\tthat.bitb = b;\n\t\t\t\tthat.bitk = k;\n\t\t\t\tz.avail_in = n;\n\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\tz.next_in_index = p;\n\t\t\t\tthat.write = q;\n\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\tcase BADBLOCKS:\n\t\t\t\tr = Z_DATA_ERROR;\n\n\t\t\t\tthat.bitb = b;\n\t\t\t\tthat.bitk = k;\n\t\t\t\tz.avail_in = n;\n\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\tz.next_in_index = p;\n\t\t\t\tthat.write = q;\n\t\t\t\treturn that.inflate_flush(z, r);\n\n\t\t\tdefault:\n\t\t\t\tr = Z_STREAM_ERROR;\n\n\t\t\t\tthat.bitb = b;\n\t\t\t\tthat.bitk = k;\n\t\t\t\tz.avail_in = n;\n\t\t\t\tz.total_in += p - z.next_in_index;\n\t\t\t\tz.next_in_index = p;\n\t\t\t\tthat.write = q;\n\t\t\t\treturn that.inflate_flush(z, r);\n\t\t\t}\n\t\t}\n\t};\n\n\tthat.free = function(z) {\n\t\tthat.reset(z, null);\n\t\tthat.window = null;\n\t\thufts = null;\n\t\t// ZFREE(z, s);\n\t};\n\n\tthat.set_dictionary = function(d, start, n) {\n\t\tthat.window.set(d.subarray(start, start + n), 0);\n\t\tthat.read = that.write = n;\n\t};\n\n\t// Returns true if inflate is currently at the end of a block generated\n\t// by Z_SYNC_FLUSH or Z_FULL_FLUSH.\n\tthat.sync_point = function() {\n\t\treturn mode == LENS ? 1 : 0;\n\t};\n\n}\n\n// Inflate\n\n// preset dictionary flag in zlib header\nvar PRESET_DICT = 0x20;\n\nvar Z_DEFLATED = 8;\n\nvar METHOD = 0; // waiting for method byte\nvar FLAG = 1; // waiting for flag byte\nvar DICT4 = 2; // four dictionary check bytes to go\nvar DICT3 = 3; // three dictionary check bytes to go\nvar DICT2 = 4; // two dictionary check bytes to go\nvar DICT1 = 5; // one dictionary check byte to go\nvar DICT0 = 6; // waiting for inflateSetDictionary\nvar BLOCKS = 7; // decompressing blocks\nvar DONE = 12; // finished check, done\nvar BAD = 13; // got an error--stay here\n\nvar mark = [ 0, 0, 0xff, 0xff ];\n\nfunction Inflate() {\n\tvar that = this;\n\n\tthat.mode = 0; // current inflate mode\n\n\t// mode dependent information\n\tthat.method = 0; // if FLAGS, method byte\n\n\t// if CHECK, check values to compare\n\tthat.was = [ 0 ]; // new Array(1); // computed check value\n\tthat.need = 0; // stream check value\n\n\t// if BAD, inflateSync's marker bytes count\n\tthat.marker = 0;\n\n\t// mode independent information\n\tthat.wbits = 0; // log2(window size) (8..15, defaults to 15)\n\n\t// this.blocks; // current inflate_blocks state\n\n\tfunction inflateReset(z) {\n\t\tif (!z || !z.istate)\n\t\t\treturn Z_STREAM_ERROR;\n\n\t\tz.total_in = z.total_out = 0;\n\t\tz.msg = null;\n\t\tz.istate.mode = BLOCKS;\n\t\tz.istate.blocks.reset(z, null);\n\t\treturn Z_OK;\n\t}\n\n\tthat.inflateEnd = function(z) {\n\t\tif (that.blocks)\n\t\t\tthat.blocks.free(z);\n\t\tthat.blocks = null;\n\t\t// ZFREE(z, z->state);\n\t\treturn Z_OK;\n\t};\n\n\tthat.inflateInit = function(z, w) {\n\t\tz.msg = null;\n\t\tthat.blocks = null;\n\n\t\t// set window size\n\t\tif (w < 8 || w > 15) {\n\t\t\tthat.inflateEnd(z);\n\t\t\treturn Z_STREAM_ERROR;\n\t\t}\n\t\tthat.wbits = w;\n\n\t\tz.istate.blocks = new InfBlocks(z, 1 << w);\n\n\t\t// reset state\n\t\tinflateReset(z);\n\t\treturn Z_OK;\n\t};\n\n\tthat.inflate = function(z, f) {\n\t\tvar r;\n\t\tvar b;\n\n\t\tif (!z || !z.istate || !z.next_in)\n\t\t\treturn Z_STREAM_ERROR;\n\t\tf = f == Z_FINISH ? Z_BUF_ERROR : Z_OK;\n\t\tr = Z_BUF_ERROR;\n\t\twhile (true) {\n\t\t\t// System.out.println(\"mode: \"+z.istate.mode);\n\t\t\tswitch (z.istate.mode) {\n\t\t\tcase METHOD:\n\n\t\t\t\tif (z.avail_in === 0)\n\t\t\t\t\treturn r;\n\t\t\t\tr = f;\n\n\t\t\t\tz.avail_in--;\n\t\t\t\tz.total_in++;\n\t\t\t\tif (((z.istate.method = z.read_byte(z.next_in_index++)) & 0xf) != Z_DEFLATED) {\n\t\t\t\t\tz.istate.mode = BAD;\n\t\t\t\t\tz.msg = \"unknown compression method\";\n\t\t\t\t\tz.istate.marker = 5; // can't try inflateSync\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif ((z.istate.method >> 4) + 8 > z.istate.wbits) {\n\t\t\t\t\tz.istate.mode = BAD;\n\t\t\t\t\tz.msg = \"invalid window size\";\n\t\t\t\t\tz.istate.marker = 5; // can't try inflateSync\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tz.istate.mode = FLAG;\n\t\t\t\t/* falls through */\n\t\t\tcase FLAG:\n\n\t\t\t\tif (z.avail_in === 0)\n\t\t\t\t\treturn r;\n\t\t\t\tr = f;\n\n\t\t\t\tz.avail_in--;\n\t\t\t\tz.total_in++;\n\t\t\t\tb = (z.read_byte(z.next_in_index++)) & 0xff;\n\n\t\t\t\tif ((((z.istate.method << 8) + b) % 31) !== 0) {\n\t\t\t\t\tz.istate.mode = BAD;\n\t\t\t\t\tz.msg = \"incorrect header check\";\n\t\t\t\t\tz.istate.marker = 5; // can't try inflateSync\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif ((b & PRESET_DICT) === 0) {\n\t\t\t\t\tz.istate.mode = BLOCKS;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tz.istate.mode = DICT4;\n\t\t\t\t/* falls through */\n\t\t\tcase DICT4:\n\n\t\t\t\tif (z.avail_in === 0)\n\t\t\t\t\treturn r;\n\t\t\t\tr = f;\n\n\t\t\t\tz.avail_in--;\n\t\t\t\tz.total_in++;\n\t\t\t\tz.istate.need = ((z.read_byte(z.next_in_index++) & 0xff) << 24) & 0xff000000;\n\t\t\t\tz.istate.mode = DICT3;\n\t\t\t\t/* falls through */\n\t\t\tcase DICT3:\n\n\t\t\t\tif (z.avail_in === 0)\n\t\t\t\t\treturn r;\n\t\t\t\tr = f;\n\n\t\t\t\tz.avail_in--;\n\t\t\t\tz.total_in++;\n\t\t\t\tz.istate.need += ((z.read_byte(z.next_in_index++) & 0xff) << 16) & 0xff0000;\n\t\t\t\tz.istate.mode = DICT2;\n\t\t\t\t/* falls through */\n\t\t\tcase DICT2:\n\n\t\t\t\tif (z.avail_in === 0)\n\t\t\t\t\treturn r;\n\t\t\t\tr = f;\n\n\t\t\t\tz.avail_in--;\n\t\t\t\tz.total_in++;\n\t\t\t\tz.istate.need += ((z.read_byte(z.next_in_index++) & 0xff) << 8) & 0xff00;\n\t\t\t\tz.istate.mode = DICT1;\n\t\t\t\t/* falls through */\n\t\t\tcase DICT1:\n\n\t\t\t\tif (z.avail_in === 0)\n\t\t\t\t\treturn r;\n\t\t\t\tr = f;\n\n\t\t\t\tz.avail_in--;\n\t\t\t\tz.total_in++;\n\t\t\t\tz.istate.need += (z.read_byte(z.next_in_index++) & 0xff);\n\t\t\t\tz.istate.mode = DICT0;\n\t\t\t\treturn Z_NEED_DICT;\n\t\t\tcase DICT0:\n\t\t\t\tz.istate.mode = BAD;\n\t\t\t\tz.msg = \"need dictionary\";\n\t\t\t\tz.istate.marker = 0; // can try inflateSync\n\t\t\t\treturn Z_STREAM_ERROR;\n\t\t\tcase BLOCKS:\n\n\t\t\t\tr = z.istate.blocks.proc(z, r);\n\t\t\t\tif (r == Z_DATA_ERROR) {\n\t\t\t\t\tz.istate.mode = BAD;\n\t\t\t\t\tz.istate.marker = 0; // can try inflateSync\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (r == Z_OK) {\n\t\t\t\t\tr = f;\n\t\t\t\t}\n\t\t\t\tif (r != Z_STREAM_END) {\n\t\t\t\t\treturn r;\n\t\t\t\t}\n\t\t\t\tr = f;\n\t\t\t\tz.istate.blocks.reset(z, z.istate.was);\n\t\t\t\tz.istate.mode = DONE;\n\t\t\t\t/* falls through */\n\t\t\tcase DONE:\n\t\t\t\treturn Z_STREAM_END;\n\t\t\tcase BAD:\n\t\t\t\treturn Z_DATA_ERROR;\n\t\t\tdefault:\n\t\t\t\treturn Z_STREAM_ERROR;\n\t\t\t}\n\t\t}\n\t};\n\n\tthat.inflateSetDictionary = function(z, dictionary, dictLength) {\n\t\tvar index = 0;\n\t\tvar length = dictLength;\n\t\tif (!z || !z.istate || z.istate.mode != DICT0)\n\t\t\treturn Z_STREAM_ERROR;\n\n\t\tif (length >= (1 << z.istate.wbits)) {\n\t\t\tlength = (1 << z.istate.wbits) - 1;\n\t\t\tindex = dictLength - length;\n\t\t}\n\t\tz.istate.blocks.set_dictionary(dictionary, index, length);\n\t\tz.istate.mode = BLOCKS;\n\t\treturn Z_OK;\n\t};\n\n\tthat.inflateSync = function(z) {\n\t\tvar n; // number of bytes to look at\n\t\tvar p; // pointer to bytes\n\t\tvar m; // number of marker bytes found in a row\n\t\tvar r, w; // temporaries to save total_in and total_out\n\n\t\t// set up\n\t\tif (!z || !z.istate)\n\t\t\treturn Z_STREAM_ERROR;\n\t\tif (z.istate.mode != BAD) {\n\t\t\tz.istate.mode = BAD;\n\t\t\tz.istate.marker = 0;\n\t\t}\n\t\tif ((n = z.avail_in) === 0)\n\t\t\treturn Z_BUF_ERROR;\n\t\tp = z.next_in_index;\n\t\tm = z.istate.marker;\n\n\t\t// search\n\t\twhile (n !== 0 && m < 4) {\n\t\t\tif (z.read_byte(p) == mark[m]) {\n\t\t\t\tm++;\n\t\t\t} else if (z.read_byte(p) !== 0) {\n\t\t\t\tm = 0;\n\t\t\t} else {\n\t\t\t\tm = 4 - m;\n\t\t\t}\n\t\t\tp++;\n\t\t\tn--;\n\t\t}\n\n\t\t// restore\n\t\tz.total_in += p - z.next_in_index;\n\t\tz.next_in_index = p;\n\t\tz.avail_in = n;\n\t\tz.istate.marker = m;\n\n\t\t// return no joy or set up to restart on a new block\n\t\tif (m != 4) {\n\t\t\treturn Z_DATA_ERROR;\n\t\t}\n\t\tr = z.total_in;\n\t\tw = z.total_out;\n\t\tinflateReset(z);\n\t\tz.total_in = r;\n\t\tz.total_out = w;\n\t\tz.istate.mode = BLOCKS;\n\t\treturn Z_OK;\n\t};\n\n\t// Returns true if inflate is currently at the end of a block generated\n\t// by Z_SYNC_FLUSH or Z_FULL_FLUSH. This function is used by one PPP\n\t// implementation to provide an additional safety check. PPP uses\n\t// Z_SYNC_FLUSH\n\t// but removes the length bytes of the resulting empty stored block. When\n\t// decompressing, PPP checks that at the end of input packet, inflate is\n\t// waiting for these length bytes.\n\tthat.inflateSyncPoint = function(z) {\n\t\tif (!z || !z.istate || !z.istate.blocks)\n\t\t\treturn Z_STREAM_ERROR;\n\t\treturn z.istate.blocks.sync_point();\n\t};\n}\n\n// ZStream\n\nfunction ZStream() {\n}\n\nZStream.prototype = {\n\tinflateInit : function(bits) {\n\t\tvar that = this;\n\t\tthat.istate = new Inflate();\n\t\tif (!bits)\n\t\t\tbits = MAX_BITS;\n\t\treturn that.istate.inflateInit(that, bits);\n\t},\n\n\tinflate : function(f) {\n\t\tvar that = this;\n\t\tif (!that.istate)\n\t\t\treturn Z_STREAM_ERROR;\n\t\treturn that.istate.inflate(that, f);\n\t},\n\n\tinflateEnd : function() {\n\t\tvar that = this;\n\t\tif (!that.istate)\n\t\t\treturn Z_STREAM_ERROR;\n\t\tvar ret = that.istate.inflateEnd(that);\n\t\tthat.istate = null;\n\t\treturn ret;\n\t},\n\n\tinflateSync : function() {\n\t\tvar that = this;\n\t\tif (!that.istate)\n\t\t\treturn Z_STREAM_ERROR;\n\t\treturn that.istate.inflateSync(that);\n\t},\n\tinflateSetDictionary : function(dictionary, dictLength) {\n\t\tvar that = this;\n\t\tif (!that.istate)\n\t\t\treturn Z_STREAM_ERROR;\n\t\treturn that.istate.inflateSetDictionary(that, dictionary, dictLength);\n\t},\n\tread_byte : function(start) {\n\t\tvar that = this;\n\t\treturn that.next_in.subarray(start, start + 1)[0];\n\t},\n\tread_buf : function(start, size) {\n\t\tvar that = this;\n\t\treturn that.next_in.subarray(start, start + size);\n\t}\n};\n\n// Inflater\n\nexport function Inflater() {\n\tvar that = this;\n\tvar z = new ZStream();\n\tvar bufsize = 512;\n\tvar flush = Z_NO_FLUSH;\n\tvar buf = new Uint8Array(bufsize);\n\tvar nomoreinput = false;\n\n\tz.inflateInit();\n\tz.next_out = buf;\n\n\tthat.append = function(data, onprogress) {\n\t\tvar err, buffers = [], lastIndex = 0, bufferIndex = 0, bufferSize = 0, array;\n\t\tif (data.length === 0)\n\t\t\treturn;\n\t\tz.next_in_index = 0;\n\t\tz.next_in = data;\n\t\tz.avail_in = data.length;\n\t\tdo {\n\t\t\tz.next_out_index = 0;\n\t\t\tz.avail_out = bufsize;\n\t\t\tif ((z.avail_in === 0) && (!nomoreinput)) { // if buffer is empty and more input is available, refill it\n\t\t\t\tz.next_in_index = 0;\n\t\t\t\tnomoreinput = true;\n\t\t\t}\n\t\t\terr = z.inflate(flush);\n\t\t\tif (nomoreinput && (err === Z_BUF_ERROR)) {\n\t\t\t\tif (z.avail_in !== 0)\n\t\t\t\t\tthrow new Error(\"inflating: bad input\");\n\t\t\t} else if (err !== Z_OK && err !== Z_STREAM_END)\n\t\t\t\tthrow new Error(\"inflating: \" + z.msg);\n\t\t\tif ((nomoreinput || err === Z_STREAM_END) && (z.avail_in === data.length))\n\t\t\t\tthrow new Error(\"inflating: bad input\");\n\t\t\tif (z.next_out_index)\n\t\t\t\tif (z.next_out_index === bufsize)\n\t\t\t\t\tbuffers.push(new Uint8Array(buf));\n\t\t\t\telse\n\t\t\t\t\tbuffers.push(new Uint8Array(buf.subarray(0, z.next_out_index)));\n\t\t\tbufferSize += z.next_out_index;\n\t\t\tif (onprogress && z.next_in_index > 0 && z.next_in_index != lastIndex) {\n\t\t\t\tonprogress(z.next_in_index);\n\t\t\t\tlastIndex = z.next_in_index;\n\t\t\t}\n\t\t} while (z.avail_in > 0 || z.avail_out === 0);\n\t\tarray = new Uint8Array(bufferSize);\n\t\tbuffers.forEach(function(chunk) {\n\t\t\tarray.set(chunk, bufferIndex);\n\t\t\tbufferIndex += chunk.length;\n\t\t});\n\t\treturn array;\n\t};\n\tthat.flush = function() {\n\t\tz.inflateEnd();\n\t};\n}\n\n// 'zip' may not be defined in z-worker and some tests\nself._zipjs_Inflater = Inflater;","/*\nCopyright (c) 2013 Gildas Lormeau. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice,\nthis list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\nnotice, this list of conditions and the following disclaimer in\nthe documentation and/or other materials provided with the distribution.\n\n3. The names of the authors may not be used to endorse or promote products\nderived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,\nINCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\nFITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,\nINC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,\nINCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,\nOR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\nEVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\nimport {Deflater} from \"./deflate\";\nimport {Inflater} from \"./inflate\";\n\nvar ERR_BAD_FORMAT = \"File format is not recognized.\";\nvar ERR_CRC = \"CRC failed.\";\nvar ERR_ENCRYPTED = \"File contains encrypted entry.\";\nvar ERR_ZIP64 = \"File is using Zip64 (4gb+ file size).\";\nvar ERR_READ = \"Error while reading zip file.\";\nvar ERR_WRITE = \"Error while writing zip file.\";\nvar ERR_WRITE_DATA = \"Error while writing file data.\";\nvar ERR_READ_DATA = \"Error while reading file data.\";\nvar ERR_DUPLICATED_NAME = \"File already exists.\";\nvar CHUNK_SIZE = 512 * 1024;\n\nvar TEXT_PLAIN = \"text/plain\";\n\nvar appendABViewSupported;\ntry {\n\tappendABViewSupported = new Blob([ new DataView(new ArrayBuffer(0)) ]).size === 0;\n} catch (e) {\n}\n\nfunction Crc32() {\n\tthis.crc = -1;\n}\nCrc32.prototype.append = function append(data) {\n\tvar crc = this.crc | 0, table = this.table;\n\tfor (var offset = 0, len = data.length | 0; offset < len; offset++)\n\t\tcrc = (crc >>> 8) ^ table[(crc ^ data[offset]) & 0xFF];\n\tthis.crc = crc;\n};\nCrc32.prototype.get = function get() {\n\treturn ~this.crc;\n};\nCrc32.prototype.table = (function() {\n\tvar i, j, t, table = []; // Uint32Array is actually slower than []\n\tfor (i = 0; i < 256; i++) {\n\t\tt = i;\n\t\tfor (j = 0; j < 8; j++)\n\t\t\tif (t & 1)\n\t\t\t\tt = (t >>> 1) ^ 0xEDB88320;\n\t\t\telse\n\t\t\t\tt = t >>> 1;\n\t\ttable[i] = t;\n\t}\n\treturn table;\n})();\n\n// \"no-op\" codec\nfunction NOOP() {}\nNOOP.prototype.append = function append(bytes, onprogress) {\n\treturn bytes;\n};\nNOOP.prototype.flush = function flush() {};\n\nfunction blobSlice(blob, index, length) {\n\tif (index < 0 || length < 0 || index + length > blob.size)\n\t\tthrow new RangeError('offset:' + index + ', length:' + length + ', size:' + blob.size);\n\tif (blob.slice)\n\t\treturn blob.slice(index, index + length);\n\telse if (blob.webkitSlice)\n\t\treturn blob.webkitSlice(index, index + length);\n\telse if (blob.mozSlice)\n\t\treturn blob.mozSlice(index, index + length);\n\telse if (blob.msSlice)\n\t\treturn blob.msSlice(index, index + length);\n}\n\nfunction getDataHelper(byteLength, bytes) {\n\tvar dataBuffer, dataArray;\n\tdataBuffer = new ArrayBuffer(byteLength);\n\tdataArray = new Uint8Array(dataBuffer);\n\tif (bytes)\n\t\tdataArray.set(bytes, 0);\n\treturn {\n\t\tbuffer : dataBuffer,\n\t\tarray : dataArray,\n\t\tview : new DataView(dataBuffer)\n\t};\n}\n\n// Readers\nfunction Reader() {\n}\n\nfunction TextReader(text) {\n\tvar that = this, blobReader;\n\n\tfunction init(callback, onerror) {\n\t\tvar blob = new Blob([ text ], {\n\t\t\ttype : TEXT_PLAIN\n\t\t});\n\t\tblobReader = new BlobReader(blob);\n\t\tblobReader.init(function() {\n\t\t\tthat.size = blobReader.size;\n\t\t\tcallback();\n\t\t}, onerror);\n\t}\n\n\tfunction readUint8Array(index, length, callback, onerror) {\n\t\tblobReader.readUint8Array(index, length, callback, onerror);\n\t}\n\n\tthat.size = 0;\n\tthat.init = init;\n\tthat.readUint8Array = readUint8Array;\n}\nTextReader.prototype = new Reader();\nTextReader.prototype.constructor = TextReader;\n\nfunction Data64URIReader(dataURI) {\n\tvar that = this, dataStart;\n\n\tfunction init(callback) {\n\t\tvar dataEnd = dataURI.length;\n\t\twhile (dataURI.charAt(dataEnd - 1) == \"=\")\n\t\t\tdataEnd--;\n\t\tdataStart = dataURI.indexOf(\",\") + 1;\n\t\tthat.size = Math.floor((dataEnd - dataStart) * 0.75);\n\t\tcallback();\n\t}\n\n\tfunction readUint8Array(index, length, callback) {\n\t\tvar i, data = getDataHelper(length);\n\t\tvar start = Math.floor(index / 3) * 4;\n\t\tvar end = Math.ceil((index + length) / 3) * 4;\n\t\tvar bytes = self.atob(dataURI.substring(start + dataStart, end + dataStart));\n\t\tvar delta = index - Math.floor(start / 4) * 3;\n\t\tfor (i = delta; i < delta + length; i++)\n\t\t\tdata.array[i - delta] = bytes.charCodeAt(i);\n\t\tcallback(data.array);\n\t}\n\n\tthat.size = 0;\n\tthat.init = init;\n\tthat.readUint8Array = readUint8Array;\n}\nData64URIReader.prototype = new Reader();\nData64URIReader.prototype.constructor = Data64URIReader;\n\nfunction BlobReader(blob) {\n\tvar that = this;\n\n\tfunction init(callback) {\n\t\tthat.size = blob.size;\n\t\tcallback();\n\t}\n\n\tfunction readUint8Array(index, length, callback, onerror) {\n\t\tvar reader = new FileReader();\n\t\treader.onload = function(e) {\n\t\t\tcallback(new Uint8Array(e.target.result));\n\t\t};\n\t\treader.onerror = onerror;\n\t\ttry {\n\t\t\treader.readAsArrayBuffer(blobSlice(blob, index, length));\n\t\t} catch (e) {\n\t\t\tonerror(e);\n\t\t}\n\t}\n\n\tthat.size = 0;\n\tthat.init = init;\n\tthat.readUint8Array = readUint8Array;\n}\nBlobReader.prototype = new Reader();\nBlobReader.prototype.constructor = BlobReader;\n\n// Writers\n\nfunction Writer() {\n}\nWriter.prototype.getData = function(callback) {\n\tcallback(this.data);\n};\n\nfunction TextWriter(encoding) {\n\tvar that = this, blob;\n\n\tfunction init(callback) {\n\t\tblob = new Blob([], {\n\t\t\ttype : TEXT_PLAIN\n\t\t});\n\t\tcallback();\n\t}\n\n\tfunction writeUint8Array(array, callback) {\n\t\tblob = new Blob([ blob, appendABViewSupported ? array : array.buffer ], {\n\t\t\ttype : TEXT_PLAIN\n\t\t});\n\t\tcallback();\n\t}\n\n\tfunction getData(callback, onerror) {\n\t\tvar reader = new FileReader();\n\t\treader.onload = function(e) {\n\t\t\tcallback(e.target.result);\n\t\t};\n\t\treader.onerror = onerror;\n\t\treader.readAsText(blob, encoding);\n\t}\n\n\tthat.init = init;\n\tthat.writeUint8Array = writeUint8Array;\n\tthat.getData = getData;\n}\nTextWriter.prototype = new Writer();\nTextWriter.prototype.constructor = TextWriter;\n\nfunction Data64URIWriter(contentType) {\n\tvar that = this, data = \"\", pending = \"\";\n\n\tfunction init(callback) {\n\t\tdata += \"data:\" + (contentType || \"\") + \";base64,\";\n\t\tcallback();\n\t}\n\n\tfunction writeUint8Array(array, callback) {\n\t\tvar i, delta = pending.length, dataString = pending;\n\t\tpending = \"\";\n\t\tfor (i = 0; i < (Math.floor((delta + array.length) / 3) * 3) - delta; i++)\n\t\t\tdataString += String.fromCharCode(array[i]);\n\t\tfor (; i < array.length; i++)\n\t\t\tpending += String.fromCharCode(array[i]);\n\t\tif (dataString.length > 2)\n\t\t\tdata += self.btoa(dataString);\n\t\telse\n\t\t\tpending = dataString;\n\t\tcallback();\n\t}\n\n\tfunction getData(callback) {\n\t\tcallback(data + self.btoa(pending));\n\t}\n\n\tthat.init = init;\n\tthat.writeUint8Array = writeUint8Array;\n\tthat.getData = getData;\n}\nData64URIWriter.prototype = new Writer();\nData64URIWriter.prototype.constructor = Data64URIWriter;\n\nfunction BlobWriter(contentType) {\n\tvar blob, that = this;\n\n\tfunction init(callback) {\n\t\tblob = new Blob([], {\n\t\t\ttype : contentType\n\t\t});\n\t\tcallback();\n\t}\n\n\tfunction writeUint8Array(array, callback) {\n\t\tblob = new Blob([ blob, appendABViewSupported ? array : array.buffer ], {\n\t\t\ttype : contentType\n\t\t});\n\t\tcallback();\n\t}\n\n\tfunction getData(callback) {\n\t\tcallback(blob);\n\t}\n\n\tthat.init = init;\n\tthat.writeUint8Array = writeUint8Array;\n\tthat.getData = getData;\n}\nBlobWriter.prototype = new Writer();\nBlobWriter.prototype.constructor = BlobWriter;\n\n/** \n * inflate/deflate core functions\n * @param worker {Worker} web worker for the task.\n * @param initialMessage {Object} initial message to be sent to the worker. should contain\n * sn(serial number for distinguishing multiple tasks sent to the worker), and codecClass.\n * This function may add more properties before sending.\n */\nfunction launchWorkerProcess(worker, initialMessage, reader, writer, offset, size, onprogress, onend, onreaderror, onwriteerror) {\n\tvar chunkIndex = 0, index, outputSize, sn = initialMessage.sn, crc;\n\n\tfunction onflush() {\n\t\tworker.removeEventListener('message', onmessage, false);\n\t\tonend(outputSize, crc);\n\t}\n\n\tfunction onmessage(event) {\n\t\tvar message = event.data, data = message.data, err = message.error;\n\t\tif (err) {\n\t\t\terr.toString = function () { return 'Error: ' + this.message; };\n\t\t\tonreaderror(err);\n\t\t\treturn;\n\t\t}\n\t\tif (message.sn !== sn)\n\t\t\treturn;\n\t\tif (typeof message.codecTime === 'number')\n\t\t\tworker.codecTime += message.codecTime; // should be before onflush()\n\t\tif (typeof message.crcTime === 'number')\n\t\t\tworker.crcTime += message.crcTime;\n\n\t\tswitch (message.type) {\n\t\t\tcase 'append':\n\t\t\t\tif (data) {\n\t\t\t\t\toutputSize += data.length;\n\t\t\t\t\twriter.writeUint8Array(data, function() {\n\t\t\t\t\t\tstep();\n\t\t\t\t\t}, onwriteerror);\n\t\t\t\t} else\n\t\t\t\t\tstep();\n\t\t\t\tbreak;\n\t\t\tcase 'flush':\n\t\t\t\tcrc = message.crc;\n\t\t\t\tif (data) {\n\t\t\t\t\toutputSize += data.length;\n\t\t\t\t\twriter.writeUint8Array(data, function() {\n\t\t\t\t\t\tonflush();\n\t\t\t\t\t}, onwriteerror);\n\t\t\t\t} else\n\t\t\t\t\tonflush();\n\t\t\t\tbreak;\n\t\t\tcase 'progress':\n\t\t\t\tif (onprogress)\n\t\t\t\t\tonprogress(index + message.loaded, size);\n\t\t\t\tbreak;\n\t\t\tcase 'importScripts': //no need to handle here\n\t\t\tcase 'newTask':\n\t\t\tcase 'echo':\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tconsole.warn('zip.js:launchWorkerProcess: unknown message: ', message);\n\t\t}\n\t}\n\n\tfunction step() {\n\t\tindex = chunkIndex * CHUNK_SIZE;\n\t\t// use `<=` instead of `<`, because `size` may be 0.\n\t\tif (index <= size) {\n\t\t\treader.readUint8Array(offset + index, Math.min(CHUNK_SIZE, size - index), function(array) {\n\t\t\t\tif (onprogress)\n\t\t\t\t\tonprogress(index, size);\n\t\t\t\tvar msg = index === 0 ? initialMessage : {sn : sn};\n\t\t\t\tmsg.type = 'append';\n\t\t\t\tmsg.data = array;\n\t\t\t\t\n\t\t\t\t// posting a message with transferables will fail on IE10\n\t\t\t\ttry {\n\t\t\t\t\tworker.postMessage(msg, [array.buffer]);\n\t\t\t\t} catch(ex) {\n\t\t\t\t\tworker.postMessage(msg); // retry without transferables\n\t\t\t\t}\n\t\t\t\tchunkIndex++;\n\t\t\t}, onreaderror);\n\t\t} else {\n\t\t\tworker.postMessage({\n\t\t\t\tsn: sn,\n\t\t\t\ttype: 'flush'\n\t\t\t});\n\t\t}\n\t}\n\n\toutputSize = 0;\n\tworker.addEventListener('message', onmessage, false);\n\tstep();\n}\n\nfunction launchProcess(process, reader, writer, offset, size, crcType, onprogress, onend, onreaderror, onwriteerror) {\n\tvar chunkIndex = 0, index, outputSize = 0,\n\t\tcrcInput = crcType === 'input',\n\t\tcrcOutput = crcType === 'output',\n\t\tcrc = new Crc32();\n\tfunction step() {\n\t\tvar outputData;\n\t\tindex = chunkIndex * CHUNK_SIZE;\n\t\tif (index < size)\n\t\t\treader.readUint8Array(offset + index, Math.min(CHUNK_SIZE, size - index), function(inputData) {\n\t\t\t\tvar outputData;\n\t\t\t\ttry {\n\t\t\t\t\toutputData = process.append(inputData, function(loaded) {\n\t\t\t\t\t\tif (onprogress)\n\t\t\t\t\t\t\tonprogress(index + loaded, size);\n\t\t\t\t\t});\n\t\t\t\t} catch (e) {\n\t\t\t\t\tonreaderror(e);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (outputData) {\n\t\t\t\t\toutputSize += outputData.length;\n\t\t\t\t\twriter.writeUint8Array(outputData, function() {\n\t\t\t\t\t\tchunkIndex++;\n\t\t\t\t\t\tsetTimeout(step, 1);\n\t\t\t\t\t}, onwriteerror);\n\t\t\t\t\tif (crcOutput)\n\t\t\t\t\t\tcrc.append(outputData);\n\t\t\t\t} else {\n\t\t\t\t\tchunkIndex++;\n\t\t\t\t\tsetTimeout(step, 1);\n\t\t\t\t}\n\t\t\t\tif (crcInput)\n\t\t\t\t\tcrc.append(inputData);\n\t\t\t\tif (onprogress)\n\t\t\t\t\tonprogress(index, size);\n\t\t\t}, onreaderror);\n\t\telse {\n\t\t\ttry {\n\t\t\t\toutputData = process.flush();\n\t\t\t} catch (e) {\n\t\t\t\tonreaderror(e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (outputData) {\n\t\t\t\tif (crcOutput)\n\t\t\t\t\tcrc.append(outputData);\n\t\t\t\toutputSize += outputData.length;\n\t\t\t\twriter.writeUint8Array(outputData, function() {\n\t\t\t\t\tonend(outputSize, crc.get());\n\t\t\t\t}, onwriteerror);\n\t\t\t} else\n\t\t\t\tonend(outputSize, crc.get());\n\t\t}\n\t}\n\n\tstep();\n}\n\nfunction inflate(worker, sn, reader, writer, offset, size, computeCrc32, onend, onprogress, onreaderror, onwriteerror) {\n\tvar crcType = computeCrc32 ? 'output' : 'none';\n\tif (Zip.useWebWorkers) {\n\t\tvar initialMessage = {\n\t\t\tsn: sn,\n\t\t\tcodecClass: '_zipjs_Inflater',\n\t\t\tcrcType: crcType,\n\t\t};\n\t\tlaunchWorkerProcess(worker, initialMessage, reader, writer, offset, size, onprogress, onend, onreaderror, onwriteerror);\n\t} else\n\t\tlaunchProcess(new Inflater(), reader, writer, offset, size, crcType, onprogress, onend, onreaderror, onwriteerror);\n}\n\nfunction deflate(worker, sn, reader, writer, level, onend, onprogress, onreaderror, onwriteerror) {\n\tvar crcType = 'input';\n\tif (Zip.useWebWorkers) {\n\t\tvar initialMessage = {\n\t\t\tsn: sn,\n\t\t\toptions: {level: level},\n\t\t\tcodecClass: '_zipjs_Deflater',\n\t\t\tcrcType: crcType,\n\t\t};\n\t\tlaunchWorkerProcess(worker, initialMessage, reader, writer, 0, reader.size, onprogress, onend, onreaderror, onwriteerror);\n\t} else\n\t\tlaunchProcess(new Deflater(), reader, writer, 0, reader.size, crcType, onprogress, onend, onreaderror, onwriteerror);\n}\n\nfunction copy(worker, sn, reader, writer, offset, size, computeCrc32, onend, onprogress, onreaderror, onwriteerror) {\n\tvar crcType = 'input';\n\tif (Zip.useWebWorkers && computeCrc32) {\n\t\tvar initialMessage = {\n\t\t\tsn: sn,\n\t\t\tcodecClass: '_zipjs_NOOP',\n\t\t\tcrcType: crcType,\n\t\t};\n\t\tlaunchWorkerProcess(worker, initialMessage, reader, writer, offset, size, onprogress, onend, onreaderror, onwriteerror);\n\t} else\n\t\tlaunchProcess(new NOOP(), reader, writer, offset, size, crcType, onprogress, onend, onreaderror, onwriteerror);\n}\n\n// ZipReader\n\nfunction decodeASCII(str) {\n\tvar i, out = \"\", charCode, extendedASCII = [ '\\u00C7', '\\u00FC', '\\u00E9', '\\u00E2', '\\u00E4', '\\u00E0', '\\u00E5', '\\u00E7', '\\u00EA', '\\u00EB',\n\t\t\t'\\u00E8', '\\u00EF', '\\u00EE', '\\u00EC', '\\u00C4', '\\u00C5', '\\u00C9', '\\u00E6', '\\u00C6', '\\u00F4', '\\u00F6', '\\u00F2', '\\u00FB', '\\u00F9',\n\t\t\t'\\u00FF', '\\u00D6', '\\u00DC', '\\u00F8', '\\u00A3', '\\u00D8', '\\u00D7', '\\u0192', '\\u00E1', '\\u00ED', '\\u00F3', '\\u00FA', '\\u00F1', '\\u00D1',\n\t\t\t'\\u00AA', '\\u00BA', '\\u00BF', '\\u00AE', '\\u00AC', '\\u00BD', '\\u00BC', '\\u00A1', '\\u00AB', '\\u00BB', '_', '_', '_', '\\u00A6', '\\u00A6',\n\t\t\t'\\u00C1', '\\u00C2', '\\u00C0', '\\u00A9', '\\u00A6', '\\u00A6', '+', '+', '\\u00A2', '\\u00A5', '+', '+', '-', '-', '+', '-', '+', '\\u00E3',\n\t\t\t'\\u00C3', '+', '+', '-', '-', '\\u00A6', '-', '+', '\\u00A4', '\\u00F0', '\\u00D0', '\\u00CA', '\\u00CB', '\\u00C8', 'i', '\\u00CD', '\\u00CE',\n\t\t\t'\\u00CF', '+', '+', '_', '_', '\\u00A6', '\\u00CC', '_', '\\u00D3', '\\u00DF', '\\u00D4', '\\u00D2', '\\u00F5', '\\u00D5', '\\u00B5', '\\u00FE',\n\t\t\t'\\u00DE', '\\u00DA', '\\u00DB', '\\u00D9', '\\u00FD', '\\u00DD', '\\u00AF', '\\u00B4', '\\u00AD', '\\u00B1', '_', '\\u00BE', '\\u00B6', '\\u00A7',\n\t\t\t'\\u00F7', '\\u00B8', '\\u00B0', '\\u00A8', '\\u00B7', '\\u00B9', '\\u00B3', '\\u00B2', '_', ' ' ];\n\tfor (i = 0; i < str.length; i++) {\n\t\tcharCode = str.charCodeAt(i) & 0xFF;\n\t\tif (charCode > 127)\n\t\t\tout += extendedASCII[charCode - 128];\n\t\telse\n\t\t\tout += String.fromCharCode(charCode);\n\t}\n\treturn out;\n}\n\nfunction decodeUTF8(string) {\n\treturn decodeURIComponent(escape(string));\n}\n\nfunction getString(bytes) {\n\tvar i, str = \"\";\n\tfor (i = 0; i < bytes.length; i++)\n\t\tstr += String.fromCharCode(bytes[i]);\n\treturn str;\n}\n\nfunction getDate(timeRaw) {\n\tvar date = (timeRaw & 0xffff0000) >> 16, time = timeRaw & 0x0000ffff;\n\ttry {\n\t\treturn new Date(1980 + ((date & 0xFE00) >> 9), ((date & 0x01E0) >> 5) - 1, date & 0x001F, (time & 0xF800) >> 11, (time & 0x07E0) >> 5,\n\t\t\t\t(time & 0x001F) * 2, 0);\n\t} catch (e) {\n\t}\n}\n\nfunction readCommonHeader(entry, data, index, centralDirectory, onerror) {\n\tentry.version = data.view.getUint16(index, true);\n\tentry.bitFlag = data.view.getUint16(index + 2, true);\n\tentry.compressionMethod = data.view.getUint16(index + 4, true);\n\tentry.lastModDateRaw = data.view.getUint32(index + 6, true);\n\tentry.lastModDate = getDate(entry.lastModDateRaw);\n\tif ((entry.bitFlag & 0x01) === 0x01) {\n\t\tonerror(ERR_ENCRYPTED);\n\t\treturn;\n\t}\n\tif (centralDirectory || (entry.bitFlag & 0x0008) != 0x0008) {\n\t\tentry.crc32 = data.view.getUint32(index + 10, true);\n\t\tentry.compressedSize = data.view.getUint32(index + 14, true);\n\t\tentry.uncompressedSize = data.view.getUint32(index + 18, true);\n\t}\n\tif (entry.compressedSize === 0xFFFFFFFF || entry.uncompressedSize === 0xFFFFFFFF) {\n\t\tonerror(ERR_ZIP64);\n\t\treturn;\n\t}\n\tentry.filenameLength = data.view.getUint16(index + 22, true);\n\tentry.extraFieldLength = data.view.getUint16(index + 24, true);\n}\n\nfunction createZipReader(reader, callback, onerror) {\n\tvar inflateSN = 0;\n\n\tfunction Entry() {\n\t}\n\n\tEntry.prototype.getData = function(writer, onend, onprogress, checkCrc32) {\n\t\tvar that = this;\n\n\t\tfunction testCrc32(crc32) {\n\t\t\tvar dataCrc32 = getDataHelper(4);\n\t\t\tdataCrc32.view.setUint32(0, crc32);\n\t\t\treturn that.crc32 == dataCrc32.view.getUint32(0);\n\t\t}\n\n\t\tfunction getWriterData(uncompressedSize, crc32) {\n\t\t\tif (checkCrc32 && !testCrc32(crc32))\n\t\t\t\tonerror(ERR_CRC);\n\t\t\telse\n\t\t\t\twriter.getData(function(data) {\n\t\t\t\t\tonend(data);\n\t\t\t\t});\n\t\t}\n\n\t\tfunction onreaderror(err) {\n\t\t\tonerror(err || ERR_READ_DATA);\n\t\t}\n\n\t\tfunction onwriteerror(err) {\n\t\t\tonerror(err || ERR_WRITE_DATA);\n\t\t}\n\n\t\treader.readUint8Array(that.offset, 30, function(bytes) {\n\t\t\tvar data = getDataHelper(bytes.length, bytes), dataOffset;\n\t\t\tif (data.view.getUint32(0) != 0x504b0304) {\n\t\t\t\tonerror(ERR_BAD_FORMAT);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\treadCommonHeader(that, data, 4, false, onerror);\n\t\t\tdataOffset = that.offset + 30 + that.filenameLength + that.extraFieldLength;\n\t\t\twriter.init(function() {\n\t\t\t\tif (that.compressionMethod === 0)\n\t\t\t\t\tcopy(that._worker, inflateSN++, reader, writer, dataOffset, that.compressedSize, checkCrc32, getWriterData, onprogress, onreaderror, onwriteerror);\n\t\t\t\telse\n\t\t\t\t\tinflate(that._worker, inflateSN++, reader, writer, dataOffset, that.compressedSize, checkCrc32, getWriterData, onprogress, onreaderror, onwriteerror);\n\t\t\t}, onwriteerror);\n\t\t}, onreaderror);\n\t};\n\n\tfunction seekEOCDR(eocdrCallback) {\n\t\t// \"End of central directory record\" is the last part of a zip archive, and is at least 22 bytes long.\n\t\t// Zip file comment is the last part of EOCDR and has max length of 64KB,\n\t\t// so we only have to search the last 64K + 22 bytes of a archive for EOCDR signature (0x06054b50).\n\t\tvar EOCDR_MIN = 22;\n\t\tif (reader.size < EOCDR_MIN) {\n\t\t\tonerror(ERR_BAD_FORMAT);\n\t\t\treturn;\n\t\t}\n\t\tvar ZIP_COMMENT_MAX = 256 * 256, EOCDR_MAX = EOCDR_MIN + ZIP_COMMENT_MAX;\n\n\t\t// In most cases, the EOCDR is EOCDR_MIN bytes long\n\t\tdoSeek(EOCDR_MIN, function() {\n\t\t\t// If not found, try within EOCDR_MAX bytes\n\t\t\tdoSeek(Math.min(EOCDR_MAX, reader.size), function() {\n\t\t\t\tonerror(ERR_BAD_FORMAT);\n\t\t\t});\n\t\t});\n\n\t\t// seek last length bytes of file for EOCDR\n\t\tfunction doSeek(length, eocdrNotFoundCallback) {\n\t\t\treader.readUint8Array(reader.size - length, length, function(bytes) {\n\t\t\t\tfor (var i = bytes.length - EOCDR_MIN; i >= 0; i--) {\n\t\t\t\t\tif (bytes[i] === 0x50 && bytes[i + 1] === 0x4b && bytes[i + 2] === 0x05 && bytes[i + 3] === 0x06) {\n\t\t\t\t\t\teocdrCallback(new DataView(bytes.buffer, i, EOCDR_MIN));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\teocdrNotFoundCallback();\n\t\t\t}, function() {\n\t\t\t\tonerror(ERR_READ);\n\t\t\t});\n\t\t}\n\t}\n\n\tvar zipReader = {\n\t\tgetEntries : function(callback) {\n\t\t\tvar worker = this._worker;\n\t\t\t// look for End of central directory record\n\t\t\tseekEOCDR(function(dataView) {\n\t\t\t\tvar datalength, fileslength;\n\t\t\t\tdatalength = dataView.getUint32(16, true);\n\t\t\t\tfileslength = dataView.getUint16(8, true);\n\t\t\t\tif (datalength < 0 || datalength >= reader.size) {\n\t\t\t\t\tonerror(ERR_BAD_FORMAT);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\treader.readUint8Array(datalength, reader.size - datalength, function(bytes) {\n\t\t\t\t\tvar i, index = 0, entries = [], entry, filename, comment, data = getDataHelper(bytes.length, bytes);\n\t\t\t\t\tfor (i = 0; i < fileslength; i++) {\n\t\t\t\t\t\tentry = new Entry();\n\t\t\t\t\t\tentry._worker = worker;\n\t\t\t\t\t\tif (data.view.getUint32(index) != 0x504b0102) {\n\t\t\t\t\t\t\tonerror(ERR_BAD_FORMAT);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treadCommonHeader(entry, data, index + 6, true, onerror);\n\t\t\t\t\t\tentry.commentLength = data.view.getUint16(index + 32, true);\n\t\t\t\t\t\tentry.directory = ((data.view.getUint8(index + 38) & 0x10) == 0x10);\n\t\t\t\t\t\tentry.offset = data.view.getUint32(index + 42, true);\n\t\t\t\t\t\tfilename = getString(data.array.subarray(index + 46, index + 46 + entry.filenameLength));\n\t\t\t\t\t\tentry.filename = ((entry.bitFlag & 0x0800) === 0x0800) ? decodeUTF8(filename) : decodeASCII(filename);\n\t\t\t\t\t\tif (!entry.directory && entry.filename.charAt(entry.filename.length - 1) == \"/\")\n\t\t\t\t\t\t\tentry.directory = true;\n\t\t\t\t\t\tcomment = getString(data.array.subarray(index + 46 + entry.filenameLength + entry.extraFieldLength, index + 46\n\t\t\t\t\t\t\t\t+ entry.filenameLength + entry.extraFieldLength + entry.commentLength));\n\t\t\t\t\t\tentry.comment = ((entry.bitFlag & 0x0800) === 0x0800) ? decodeUTF8(comment) : decodeASCII(comment);\n\t\t\t\t\t\tentries.push(entry);\n\t\t\t\t\t\tindex += 46 + entry.filenameLength + entry.extraFieldLength + entry.commentLength;\n\t\t\t\t\t}\n\t\t\t\t\tcallback(entries);\n\t\t\t\t}, function() {\n\t\t\t\t\tonerror(ERR_READ);\n\t\t\t\t});\n\t\t\t});\n\t\t},\n\t\tclose : function(callback) {\n\t\t\tif (this._worker) {\n\t\t\t\tthis._worker.terminate();\n\t\t\t\tthis._worker = null;\n\t\t\t}\n\t\t\tif (callback)\n\t\t\t\tcallback();\n\t\t},\n\t\t_worker: null\n\t};\n\n\tif (!Zip.useWebWorkers)\n\t\tcallback(zipReader);\n\telse {\n\t\tcreateWorker('inflater',\n\t\t\tfunction(worker) {\n\t\t\t\tzipReader._worker = worker;\n\t\t\t\tcallback(zipReader);\n\t\t\t},\n\t\t\tfunction(err) {\n\t\t\t\tonerror(err);\n\t\t\t}\n\t\t);\n\t}\n}\n\n// ZipWriter\n\nfunction encodeUTF8(string) {\n\treturn unescape(encodeURIComponent(string));\n}\n\nfunction getBytes(str) {\n\tvar i, array = [];\n\tfor (i = 0; i < str.length; i++)\n\t\tarray.push(str.charCodeAt(i));\n\treturn array;\n}\n\nfunction createZipWriter(writer, callback, onerror, dontDeflate) {\n\tvar files = {}, filenames = [], datalength = 0;\n\tvar deflateSN = 0;\n\n\tfunction onwriteerror(err) {\n\t\tonerror(err || ERR_WRITE);\n\t}\n\n\tfunction onreaderror(err) {\n\t\tonerror(err || ERR_READ_DATA);\n\t}\n\n\tvar zipWriter = {\n\t\tadd : function(name, reader, onend, onprogress, options) {\n\t\t\tvar header, filename, date;\n\t\t\tvar worker = this._worker;\n\n\t\t\tfunction writeHeader(callback) {\n\t\t\t\tvar data;\n\t\t\t\tdate = options.lastModDate || new Date();\n\t\t\t\theader = getDataHelper(26);\n\t\t\t\tfiles[name] = {\n\t\t\t\t\theaderArray : header.array,\n\t\t\t\t\tdirectory : options.directory,\n\t\t\t\t\tfilename : filename,\n\t\t\t\t\toffset : datalength,\n\t\t\t\t\tcomment : getBytes(encodeUTF8(options.comment || \"\"))\n\t\t\t\t};\n\t\t\t\theader.view.setUint32(0, 0x14000808);\n\t\t\t\tif (options.version)\n\t\t\t\t\theader.view.setUint8(0, options.version);\n\t\t\t\tif (!dontDeflate && options.level !== 0 && !options.directory)\n\t\t\t\t\theader.view.setUint16(4, 0x0800);\n\t\t\t\theader.view.setUint16(6, (((date.getHours() << 6) | date.getMinutes()) << 5) | date.getSeconds() / 2, true);\n\t\t\t\theader.view.setUint16(8, ((((date.getFullYear() - 1980) << 4) | (date.getMonth() + 1)) << 5) | date.getDate(), true);\n\t\t\t\theader.view.setUint16(22, filename.length, true);\n\t\t\t\tdata = getDataHelper(30 + filename.length);\n\t\t\t\tdata.view.setUint32(0, 0x504b0304);\n\t\t\t\tdata.array.set(header.array, 4);\n\t\t\t\tdata.array.set(filename, 30);\n\t\t\t\tdatalength += data.array.length;\n\t\t\t\twriter.writeUint8Array(data.array, callback, onwriteerror);\n\t\t\t}\n\n\t\t\tfunction writeFooter(compressedLength, crc32) {\n\t\t\t\tvar footer = getDataHelper(16);\n\t\t\t\tdatalength += compressedLength || 0;\n\t\t\t\tfooter.view.setUint32(0, 0x504b0708);\n\t\t\t\tif (typeof crc32 != \"undefined\") {\n\t\t\t\t\theader.view.setUint32(10, crc32, true);\n\t\t\t\t\tfooter.view.setUint32(4, crc32, true);\n\t\t\t\t}\n\t\t\t\tif (reader) {\n\t\t\t\t\tfooter.view.setUint32(8, compressedLength, true);\n\t\t\t\t\theader.view.setUint32(14, compressedLength, true);\n\t\t\t\t\tfooter.view.setUint32(12, reader.size, true);\n\t\t\t\t\theader.view.setUint32(18, reader.size, true);\n\t\t\t\t}\n\t\t\t\twriter.writeUint8Array(footer.array, function() {\n\t\t\t\t\tdatalength += 16;\n\t\t\t\t\tonend();\n\t\t\t\t}, onwriteerror);\n\t\t\t}\n\n\t\t\tfunction writeFile() {\n\t\t\t\toptions = options || {};\n\t\t\t\tname = name.trim();\n\t\t\t\tif (options.directory && name.charAt(name.length - 1) != \"/\")\n\t\t\t\t\tname += \"/\";\n\t\t\t\tif (files.hasOwnProperty(name)) {\n\t\t\t\t\tonerror(ERR_DUPLICATED_NAME);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfilename = getBytes(encodeUTF8(name));\n\t\t\t\tfilenames.push(name);\n\t\t\t\twriteHeader(function() {\n\t\t\t\t\tif (reader)\n\t\t\t\t\t\tif (dontDeflate || options.level === 0)\n\t\t\t\t\t\t\tcopy(worker, deflateSN++, reader, writer, 0, reader.size, true, writeFooter, onprogress, onreaderror, onwriteerror);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdeflate(worker, deflateSN++, reader, writer, options.level, writeFooter, onprogress, onreaderror, onwriteerror);\n\t\t\t\t\telse\n\t\t\t\t\t\twriteFooter();\n\t\t\t\t}, onwriteerror);\n\t\t\t}\n\n\t\t\tif (reader)\n\t\t\t\treader.init(writeFile, onreaderror);\n\t\t\telse\n\t\t\t\twriteFile();\n\t\t},\n\t\tclose : function(callback) {\n\t\t\tif (this._worker) {\n\t\t\t\tthis._worker.terminate();\n\t\t\t\tthis._worker = null;\n\t\t\t}\n\n\t\t\tvar data, length = 0, index = 0, indexFilename, file;\n\t\t\tfor (indexFilename = 0; indexFilename < filenames.length; indexFilename++) {\n\t\t\t\tfile = files[filenames[indexFilename]];\n\t\t\t\tlength += 46 + file.filename.length + file.comment.length;\n\t\t\t}\n\t\t\tdata = getDataHelper(length + 22);\n\t\t\tfor (indexFilename = 0; indexFilename < filenames.length; indexFilename++) {\n\t\t\t\tfile = files[filenames[indexFilename]];\n\t\t\t\tdata.view.setUint32(index, 0x504b0102);\n\t\t\t\tdata.view.setUint16(index + 4, 0x1400);\n\t\t\t\tdata.array.set(file.headerArray, index + 6);\n\t\t\t\tdata.view.setUint16(index + 32, file.comment.length, true);\n\t\t\t\tif (file.directory)\n\t\t\t\t\tdata.view.setUint8(index + 38, 0x10);\n\t\t\t\tdata.view.setUint32(index + 42, file.offset, true);\n\t\t\t\tdata.array.set(file.filename, index + 46);\n\t\t\t\tdata.array.set(file.comment, index + 46 + file.filename.length);\n\t\t\t\tindex += 46 + file.filename.length + file.comment.length;\n\t\t\t}\n\t\t\tdata.view.setUint32(index, 0x504b0506);\n\t\t\tdata.view.setUint16(index + 8, filenames.length, true);\n\t\t\tdata.view.setUint16(index + 10, filenames.length, true);\n\t\t\tdata.view.setUint32(index + 12, length, true);\n\t\t\tdata.view.setUint32(index + 16, datalength, true);\n\t\t\twriter.writeUint8Array(data.array, function() {\n\t\t\t\twriter.getData(callback);\n\t\t\t}, onwriteerror);\n\t\t},\n\t\t_worker: null\n\t};\n\n\tif (!Zip.useWebWorkers)\n\t\tcallback(zipWriter);\n\telse {\n\t\tcreateWorker('deflater',\n\t\t\tfunction(worker) {\n\t\t\t\tzipWriter._worker = worker;\n\t\t\t\tcallback(zipWriter);\n\t\t\t},\n\t\t\tfunction(err) {\n\t\t\t\tonerror(err);\n\t\t\t}\n\t\t);\n\t}\n}\n\nfunction resolveURLs(urls) {\n\tvar a = document.createElement('a');\n\treturn urls.map(function(url) {\n\t\ta.href = url;\n\t\treturn a.href;\n\t});\n}\n\nvar DEFAULT_WORKER_SCRIPTS = {\n\tdeflater: ['z-worker.js', 'deflate.js'],\n\tinflater: ['z-worker.js', 'inflate.js']\n};\nfunction createWorker(type, callback, onerror) {\n\tif (Zip.workerScripts !== null && Zip.workerScriptsPath !== null) {\n\t\tonerror(new Error('Either zip.workerScripts or zip.workerScriptsPath may be set, not both.'));\n\t\treturn;\n\t}\n\tvar scripts;\n\tif (Zip.workerScripts) {\n\t\tscripts = Zip.workerScripts[type];\n\t\tif (!Array.isArray(scripts)) {\n\t\t\tonerror(new Error('zip.workerScripts.' + type + ' is not an array!'));\n\t\t\treturn;\n\t\t}\n\t\tscripts = resolveURLs(scripts);\n\t} else {\n\t\tscripts = DEFAULT_WORKER_SCRIPTS[type].slice(0);\n\t\tscripts[0] = (Zip.workerScriptsPath || '') + scripts[0];\n\t}\n\tvar worker = new Worker(scripts[0]);\n\t// record total consumed time by inflater/deflater/crc32 in this worker\n\tworker.codecTime = worker.crcTime = 0;\n\tworker.postMessage({ type: 'importScripts', scripts: scripts.slice(1) });\n\tworker.addEventListener('message', onmessage);\n\tfunction onmessage(ev) {\n\t\tvar msg = ev.data;\n\t\tif (msg.error) {\n\t\t\tworker.terminate(); // should before onerror(), because onerror() may throw.\n\t\t\tonerror(msg.error);\n\t\t\treturn;\n\t\t}\n\t\tif (msg.type === 'importScripts') {\n\t\t\tworker.removeEventListener('message', onmessage);\n\t\t\tworker.removeEventListener('error', errorHandler);\n\t\t\tcallback(worker);\n\t\t}\n\t}\n\t// catch entry script loading error and other unhandled errors\n\tworker.addEventListener('error', errorHandler);\n\tfunction errorHandler(err) {\n\t\tworker.terminate();\n\t\tonerror(err);\n\t}\n}\n\nfunction onerror_default(error) {\n\tconsole.error(error);\n}\nconst Zip = {\n Reader: Reader,\n Writer: Writer,\n BlobReader: BlobReader,\n Data64URIReader: Data64URIReader,\n TextReader: TextReader,\n BlobWriter: BlobWriter,\n Data64URIWriter: Data64URIWriter,\n TextWriter: TextWriter,\n createReader: function (reader, callback, onerror) {\n onerror = onerror || onerror_default;\n\n reader.init(function () {\n createZipReader(reader, callback, onerror);\n }, onerror);\n },\n createWriter: function (writer, callback, onerror, dontDeflate) {\n onerror = onerror || onerror_default;\n dontDeflate = !!dontDeflate;\n\n writer.init(function () {\n createZipWriter(writer, callback, onerror, dontDeflate);\n }, onerror);\n },\n useWebWorkers: true,\n /**\n * Directory containing the default worker scripts (z-worker.js, deflate.js, and inflate.js), relative to current base url.\n * E.g.: zip.workerScripts = './';\n */\n workerScriptsPath: null,\n /**\n * Advanced option to control which scripts are loaded in the Web worker. If this option is specified, then workerScriptsPath must not be set.\n * workerScripts.deflater/workerScripts.inflater should be arrays of urls to scripts for deflater/inflater, respectively.\n * Scripts in the array are executed in order, and the first one should be z-worker.js, which is used to start the worker.\n * All urls are relative to current base url.\n * E.g.:\n * zip.workerScripts = {\n * deflater: ['z-worker.js', 'deflate.js'],\n * inflater: ['z-worker.js', 'inflate.js']\n * };\n */\n workerScripts: null,\n};\nexport default Zip;\n","import zip from 'zip-js-esm';\n\n/*\n Copyright (c) 2013 Gildas Lormeau. All rights reserved.\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n 1. Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in\n the documentation and/or other materials provided with the distribution.\n 3. The names of the authors may not be used to endorse or promote products\n derived from this software without specific prior written permission.\n THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,\n INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,\n INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,\n INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,\n OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,\n EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nvar CHUNK_SIZE = 512 * 1024;\n\nvar TextWriter = zip.TextWriter, //\nBlobWriter = zip.BlobWriter, //\nData64URIWriter = zip.Data64URIWriter, //\nReader = zip.Reader, //\nTextReader = zip.TextReader, //\nBlobReader = zip.BlobReader, //\nData64URIReader = zip.Data64URIReader, //\ncreateReader = zip.createReader, //\ncreateWriter = zip.createWriter;\n\nfunction ZipBlobReader(entry) {\n var that = this, blobReader;\n\n function init(callback) {\n that.size = entry.uncompressedSize;\n callback();\n }\n\n function getData(callback) {\n if (that.data)\n callback();\n else\n entry.getData(new BlobWriter(), function(data) {\n that.data = data;\n blobReader = new BlobReader(data);\n callback();\n }, null, that.checkCrc32);\n }\n\n function readUint8Array(index, length, callback, onerror) {\n getData(function() {\n blobReader.readUint8Array(index, length, callback, onerror);\n }, onerror);\n }\n\n that.size = 0;\n that.init = init;\n that.readUint8Array = readUint8Array;\n}\nZipBlobReader.prototype = new Reader();\nZipBlobReader.prototype.constructor = ZipBlobReader;\nZipBlobReader.prototype.checkCrc32 = false;\n\nfunction getTotalSize(entry) {\n var size = 0;\n\n function process(entry) {\n size += entry.uncompressedSize || 0;\n entry.children.forEach(process);\n }\n\n process(entry);\n return size;\n}\n\nfunction initReaders(entry, onend, onerror) {\n var index = 0;\n\n function next() {\n index++;\n if (index < entry.children.length)\n process(entry.children[index]);\n else\n onend();\n }\n\n function process(child) {\n if (child.directory)\n initReaders(child, next, onerror);\n else {\n child.reader = new child.Reader(child.data, onerror);\n child.reader.init(function() {\n child.uncompressedSize = child.reader.size;\n next();\n });\n }\n }\n\n if (entry.children.length)\n process(entry.children[index]);\n else\n onend();\n}\n\nfunction detach(entry) {\n var children = entry.parent.children;\n children.forEach(function(child, index) {\n if (child.id == entry.id)\n children.splice(index, 1);\n });\n}\n\nfunction exportZip(zipWriter, entry, onend, onprogress, totalSize) {\n var currentIndex = 0;\n\n function process(zipWriter, entry, onend, onprogress, totalSize) {\n var childIndex = 0;\n\n function exportChild() {\n var child = entry.children[childIndex];\n if (child)\n zipWriter.add(child.getFullname(), child.reader, function() {\n currentIndex += child.uncompressedSize || 0;\n process(zipWriter, child, function() {\n childIndex++;\n exportChild();\n }, onprogress, totalSize);\n }, function(index) {\n if (onprogress)\n onprogress(currentIndex + index, totalSize);\n }, {\n directory : child.directory,\n version : child.zipVersion\n });\n else\n onend();\n }\n\n exportChild();\n }\n\n process(zipWriter, entry, onend, onprogress, totalSize);\n}\n\nfunction addFileEntry(zipEntry, fileEntry, onend, onerror) {\n function getChildren(fileEntry, callback) {\n if (fileEntry.isDirectory)\n fileEntry.createReader().readEntries(callback);\n if (fileEntry.isFile)\n callback([]);\n }\n\n function process(zipEntry, fileEntry, onend) {\n getChildren(fileEntry, function(children) {\n var childIndex = 0;\n\n function addChild(child) {\n function nextChild(childFileEntry) {\n process(childFileEntry, child, function() {\n childIndex++;\n processChild();\n });\n }\n\n if (child.isDirectory)\n nextChild(zipEntry.addDirectory(child.name));\n if (child.isFile)\n child.file(function(file) {\n var childZipEntry = zipEntry.addBlob(child.name, file);\n childZipEntry.uncompressedSize = file.size;\n nextChild(childZipEntry);\n }, onerror);\n }\n\n function processChild() {\n var child = children[childIndex];\n if (child)\n addChild(child);\n else\n onend();\n }\n\n processChild();\n });\n }\n\n if (fileEntry.isDirectory)\n process(zipEntry, fileEntry, onend);\n else\n fileEntry.file(function(file) {\n zipEntry.addBlob(fileEntry.name, file);\n onend();\n }, onerror);\n}\n\nfunction getFileEntry(fileEntry, entry, onend, onprogress, onerror, totalSize, checkCrc32) {\n var currentIndex = 0;\n\n function process(fileEntry, entry, onend, onprogress, onerror, totalSize) {\n var childIndex = 0;\n\n function addChild(child) {\n function nextChild(childFileEntry) {\n currentIndex += child.uncompressedSize || 0;\n process(childFileEntry, child, function() {\n childIndex++;\n processChild();\n }, onprogress, onerror, totalSize);\n }\n\n if (child.directory)\n fileEntry.getDirectory(child.name, {\n create : true\n }, nextChild, onerror);\n else\n fileEntry.getFile(child.name, {\n create : true\n }, function(file) {\n child.getData(new zip.FileWriter(file, zip.getMimeType(child.name)), nextChild, function(index) {\n if (onprogress)\n onprogress(currentIndex + index, totalSize);\n }, checkCrc32);\n }, onerror);\n }\n\n function processChild() {\n var child = entry.children[childIndex];\n if (child)\n addChild(child);\n else\n onend();\n }\n\n processChild();\n }\n\n if (entry.directory)\n process(fileEntry, entry, onend, onprogress, onerror, totalSize);\n else\n entry.getData(new zip.FileWriter(fileEntry, zip.getMimeType(entry.name)), onend, onprogress, checkCrc32);\n}\n\nfunction resetFS(fs) {\n fs.entries = [];\n fs.root = new ZipDirectoryEntry(fs);\n}\n\nfunction bufferedCopy(reader, writer, onend, onprogress, onerror) {\n var chunkIndex = 0;\n\n function stepCopy() {\n var index = chunkIndex * CHUNK_SIZE;\n if (onprogress)\n onprogress(index, reader.size);\n if (index < reader.size)\n reader.readUint8Array(index, Math.min(CHUNK_SIZE, reader.size - index), function(array) {\n writer.writeUint8Array(new Uint8Array(array), function() {\n chunkIndex++;\n stepCopy();\n });\n }, onerror);\n else\n writer.getData(onend);\n }\n\n stepCopy();\n}\n\nfunction addChild(parent, name, params, directory) {\n if (parent.directory)\n return directory ? new ZipDirectoryEntry(parent.fs, name, params, parent) : new ZipFileEntry(parent.fs, name, params, parent);\n else\n throw \"Parent entry is not a directory.\";\n}\n\nfunction ZipEntry() {\n}\n\nZipEntry.prototype = {\n init : function(fs, name, params, parent) {\n var that = this;\n if (fs.root && parent && parent.getChildByName(name))\n throw \"Entry filename already exists.\";\n if (!params)\n params = {};\n that.fs = fs;\n that.name = name;\n that.id = fs.entries.length;\n that.parent = parent;\n that.children = [];\n that.zipVersion = params.zipVersion || 0x14;\n that.uncompressedSize = 0;\n fs.entries.push(that);\n if (parent)\n that.parent.children.push(that);\n },\n getFileEntry : function(fileEntry, onend, onprogress, onerror, checkCrc32) {\n var that = this;\n initReaders(that, function() {\n getFileEntry(fileEntry, that, onend, onprogress, onerror, getTotalSize(that), checkCrc32);\n }, onerror);\n },\n moveTo : function(target) {\n var that = this;\n if (target.directory) {\n if (!target.isDescendantOf(that)) {\n if (that != target) {\n if (target.getChildByName(that.name))\n throw \"Entry filename already exists.\";\n detach(that);\n that.parent = target;\n target.children.push(that);\n }\n } else\n throw \"Entry is a ancestor of target entry.\";\n } else\n throw \"Target entry is not a directory.\";\n },\n getFullname : function() {\n var that = this, fullname = that.name, entry = that.parent;\n while (entry) {\n fullname = (entry.name ? entry.name + \"/\" : \"\") + fullname;\n entry = entry.parent;\n }\n return fullname;\n },\n isDescendantOf : function(ancestor) {\n var entry = this.parent;\n while (entry && entry.id != ancestor.id)\n entry = entry.parent;\n return !!entry;\n }\n};\nZipEntry.prototype.constructor = ZipEntry;\n\nvar ZipFileEntryProto;\n\nfunction ZipFileEntry(fs, name, params, parent) {\n var that = this;\n ZipEntry.prototype.init.call(that, fs, name, params, parent);\n that.Reader = params.Reader;\n that.Writer = params.Writer;\n that.data = params.data;\n if (params.getData) {\n that.getData = params.getData;\n }\n}\n\nZipFileEntry.prototype = ZipFileEntryProto = new ZipEntry();\nZipFileEntryProto.constructor = ZipFileEntry;\nZipFileEntryProto.getData = function(writer, onend, onprogress, onerror) {\n var that = this;\n if (!writer || (writer.constructor == that.Writer && that.data))\n onend(that.data);\n else {\n if (!that.reader)\n that.reader = new that.Reader(that.data, onerror);\n that.reader.init(function() {\n writer.init(function() {\n bufferedCopy(that.reader, writer, onend, onprogress, onerror);\n }, onerror);\n });\n }\n};\n\nZipFileEntryProto.getText = function(onend, onprogress, checkCrc32, encoding) {\n this.getData(new TextWriter(encoding), onend, onprogress, checkCrc32);\n};\nZipFileEntryProto.getBlob = function(mimeType, onend, onprogress, checkCrc32) {\n this.getData(new BlobWriter(mimeType), onend, onprogress, checkCrc32);\n};\nZipFileEntryProto.getData64URI = function(mimeType, onend, onprogress, checkCrc32) {\n this.getData(new Data64URIWriter(mimeType), onend, onprogress, checkCrc32);\n};\n\nvar ZipDirectoryEntryProto;\n\nfunction ZipDirectoryEntry(fs, name, params, parent) {\n var that = this;\n ZipEntry.prototype.init.call(that, fs, name, params, parent);\n that.directory = true;\n}\n\nZipDirectoryEntry.prototype = ZipDirectoryEntryProto = new ZipEntry();\nZipDirectoryEntryProto.constructor = ZipDirectoryEntry;\nZipDirectoryEntryProto.addDirectory = function(name) {\n return addChild(this, name, null, true);\n};\nZipDirectoryEntryProto.addText = function(name, text) {\n return addChild(this, name, {\n data : text,\n Reader : TextReader,\n Writer : TextWriter\n });\n};\nZipDirectoryEntryProto.addBlob = function(name, blob) {\n return addChild(this, name, {\n data : blob,\n Reader : BlobReader,\n Writer : BlobWriter\n });\n};\nZipDirectoryEntryProto.addData64URI = function(name, dataURI) {\n return addChild(this, name, {\n data : dataURI,\n Reader : Data64URIReader,\n Writer : Data64URIWriter\n });\n};\nZipDirectoryEntryProto.addFileEntry = function(fileEntry, onend, onerror) {\n addFileEntry(this, fileEntry, onend, onerror);\n};\nZipDirectoryEntryProto.addData = function(name, params) {\n return addChild(this, name, params);\n};\nZipDirectoryEntryProto.importBlob = function(blob, onend, onerror) {\n this.importZip(new BlobReader(blob), onend, onerror);\n};\nZipDirectoryEntryProto.importText = function(text, onend, onerror) {\n this.importZip(new TextReader(text), onend, onerror);\n};\nZipDirectoryEntryProto.importData64URI = function(dataURI, onend, onerror) {\n this.importZip(new Data64URIReader(dataURI), onend, onerror);\n};\nZipDirectoryEntryProto.exportBlob = function(onend, onprogress, onerror) {\n this.exportZip(new BlobWriter(\"application/zip\"), onend, onprogress, onerror);\n};\nZipDirectoryEntryProto.exportText = function(onend, onprogress, onerror) {\n this.exportZip(new TextWriter(), onend, onprogress, onerror);\n};\nZipDirectoryEntryProto.exportFileEntry = function(fileEntry, onend, onprogress, onerror) {\n this.exportZip(new zip.FileWriter(fileEntry, \"application/zip\"), onend, onprogress, onerror);\n};\nZipDirectoryEntryProto.exportData64URI = function(onend, onprogress, onerror) {\n this.exportZip(new Data64URIWriter(\"application/zip\"), onend, onprogress, onerror);\n};\nZipDirectoryEntryProto.importZip = function(reader, onend, onerror) {\n var that = this;\n createReader(reader, function(zipReader) {\n zipReader.getEntries(function(entries) {\n entries.forEach(function(entry) {\n var parent = that, path = entry.filename.split(\"/\"), name = path.pop();\n path.forEach(function(pathPart) {\n parent = parent.getChildByName(pathPart) || new ZipDirectoryEntry(that.fs, pathPart, null, parent);\n });\n if (!entry.directory)\n addChild(parent, name, {\n data : entry,\n Reader : ZipBlobReader\n });\n });\n onend();\n });\n }, onerror);\n};\nZipDirectoryEntryProto.exportZip = function(writer, onend, onprogress, onerror) {\n var that = this;\n initReaders(that, function() {\n createWriter(writer, function(zipWriter) {\n exportZip(zipWriter, that, function() {\n zipWriter.close(onend);\n }, onprogress, getTotalSize(that));\n }, onerror);\n }, onerror);\n};\nZipDirectoryEntryProto.getChildByName = function(name) {\n var childIndex, child, that = this;\n for (childIndex = 0; childIndex < that.children.length; childIndex++) {\n child = that.children[childIndex];\n if (child.name == name)\n return child;\n }\n};\n\nfunction FS() {\n resetFS(this);\n}\nFS.prototype = {\n remove : function(entry) {\n detach(entry);\n this.entries[entry.id] = null;\n },\n find : function(fullname) {\n var index, path = fullname.split(\"/\"), node = this.root;\n for (index = 0; node && index < path.length; index++)\n node = node.getChildByName(path[index]);\n return node;\n },\n getById : function(id) {\n return this.entries[id];\n },\n importBlob : function(blob, onend, onerror) {\n resetFS(this);\n this.root.importBlob(blob, onend, onerror);\n },\n importText : function(text, onend, onerror) {\n resetFS(this);\n this.root.importText(text, onend, onerror);\n },\n importData64URI : function(dataURI, onend, onerror) {\n resetFS(this);\n this.root.importData64URI(dataURI, onend, onerror);\n },\n exportBlob : function(onend, onprogress, onerror) {\n this.root.exportBlob(onend, onprogress, onerror);\n },\n exportText : function(onend, onprogress, onerror) {\n this.root.exportText(onend, onprogress, onerror);\n },\n exportFileEntry : function(fileEntry, onend, onprogress, onerror) {\n this.root.exportFileEntry(fileEntry, onend, onprogress, onerror);\n },\n exportData64URI : function(onend, onprogress, onerror) {\n this.root.exportData64URI(onend, onprogress, onerror);\n }\n};\n\nzip.getMimeType = function() {\n return \"application/octet-stream\";\n};\n\nexport const fs = {\n FS : FS,\n ZipDirectoryEntry : ZipDirectoryEntry,\n ZipFileEntry : ZipFileEntry\n};\n","import zip from 'zip-js-esm';\nimport { fs } from './vendor/zip-fs.js';\n\nzip.useWebWorkers = false;\n\n/**\n * Watches an element for file drops, parses to create a filemap hierarchy,\n * and emits the result.\n */\nclass SimpleDropzone {\n\n /**\n * @param {Element} el\n * @param {Element} inputEl\n */\n constructor (el, inputEl) {\n this.el = el;\n this.inputEl = inputEl;\n\n this.listeners = {\n drop: [],\n dropstart: [],\n droperror: []\n };\n\n this._onDragover = this._onDragover.bind(this);\n this._onDrop = this._onDrop.bind(this);\n this._onSelect = this._onSelect.bind(this);\n\n el.addEventListener('dragover', this._onDragover, false);\n el.addEventListener('drop', this._onDrop, false);\n inputEl.addEventListener('change', this._onSelect);\n }\n\n /**\n * @param {string} type\n * @param {Function} callback\n * @return {SimpleDropzone}\n */\n on (type, callback) {\n this.listeners[type].push(callback);\n return this;\n }\n\n /**\n * @param {string} type\n * @param {Object} data\n * @return {SimpleDropzone}\n */\n _emit (type, data) {\n this.listeners[type]\n .forEach((callback) => callback(data));\n return this;\n }\n\n /**\n * Destroys the instance.\n */\n destroy () {\n const el = this.el;\n const inputEl = this.inputEl;\n\n el.removeEventListener('dragover', this._onDragover, false);\n el.removeEventListener('drop', this._onDrop, false);\n inputEl.removeEventListener('change', this._onSelect);\n\n delete this.el;\n delete this.inputEl;\n delete this.listeners;\n }\n\n /**\n * References (and horror):\n * - https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/items\n * - https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/files\n * - https://code.flickr.net/2012/12/10/drag-n-drop/\n * - https://stackoverflow.com/q/44842247/1314762\n *\n * @param {Event} e\n */\n _onDrop (e) {\n e.stopPropagation();\n e.preventDefault();\n\n this._emit('dropstart');\n\n const files = Array.from(e.dataTransfer.files || []);\n const items = Array.from(e.dataTransfer.items || []);\n\n if (files.length === 0 && items.length === 0) {\n this._fail('Required drag-and-drop APIs are not supported in this browser.');\n return;\n }\n\n // Prefer .items, which allow folder traversal if necessary.\n if (items.length > 0) {\n const entries = items.map((item) => item.webkitGetAsEntry()).filter(entry => entry !== null);\n\n // donmccurdy/simple-dropzone#69\n if (entries.length > 0) {\n if (entries[0].name.match(/\\.zip$/)) {\n this._loadZip(items[0].getAsFile());\n } else {\n this._loadNextEntry(new Map(), entries);\n }\n }\n\n return;\n }\n\n // Fall back to .files, since folders can't be traversed.\n if (files.length === 1 && files[0].name.match(/\\.zip$/)) {\n this._loadZip(files[0]);\n }\n this._emit('drop', {files: new Map(files.map((file) => [file.name, file]))});\n }\n\n /**\n * @param {Event} e\n */\n _onDragover (e) {\n e.stopPropagation();\n e.preventDefault();\n e.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy.\n }\n\n /**\n * @param {Event} e\n */\n _onSelect (e) {\n this._emit('dropstart');\n\n // HTML file inputs do not seem to support folders, so assume this is a flat file list.\n const files = [].slice.call(this.inputEl.files);\n\n // Automatically decompress a zip archive if it is the only file given.\n if (files.length === 1 && this._isZip(files[0])) {\n this._loadZip(files[0]);\n return;\n }\n\n const fileMap = new Map();\n files.forEach((file) => fileMap.set(file.webkitRelativePath || file.name, file));\n this._emit('drop', {files: fileMap});\n }\n\n /**\n * Iterates through a list of FileSystemEntry objects, creates the fileMap\n * tree, and emits the result.\n * @param {Map} fileMap\n * @param {Array} entries\n */\n _loadNextEntry (fileMap, entries) {\n const entry = entries.pop();\n\n if (!entry) {\n this._emit('drop', {files: fileMap});\n return;\n }\n\n if (entry.isFile) {\n entry.file((file) => {\n fileMap.set(entry.fullPath, file);\n this._loadNextEntry(fileMap, entries);\n }, () => console.error('Could not load file: %s', entry.fullPath));\n } else if (entry.isDirectory) {\n // readEntries() must be called repeatedly until it stops returning results.\n // https://www.w3.org/TR/2012/WD-file-system-api-20120417/#the-directoryreader-interface\n // https://bugs.chromium.org/p/chromium/issues/detail?id=378883\n const reader = entry.createReader();\n const readerCallback = (newEntries) => {\n if (newEntries.length) {\n entries = entries.concat(newEntries);\n reader.readEntries(readerCallback);\n } else {\n this._loadNextEntry(fileMap, entries);\n }\n };\n reader.readEntries(readerCallback);\n } else {\n console.warn('Unknown asset type: ' + entry.fullPath);\n this._loadNextEntry(fileMap, entries);\n }\n }\n\n /**\n * Inflates a File in .ZIP format, creates the fileMap tree, and emits the\n * result.\n * @param {File} file\n */\n _loadZip (file) {\n const pending = [];\n const fileMap = new Map();\n const archive = new fs.FS();\n\n const traverse = (node) => {\n if (node.directory) {\n node.children.forEach(traverse);\n } else if (node.name[0] !== '.') {\n pending.push(new Promise((resolve) => {\n node.getData(new zip.BlobWriter(), (blob) => {\n blob.name = node.name;\n fileMap.set(node.getFullname(), blob);\n resolve();\n });\n }));\n }\n };\n\n archive.importBlob(file, () => {\n traverse(archive.root);\n Promise.all(pending).then(() => {\n this._emit('drop', {files: fileMap, archive: file});\n });\n });\n }\n\n /**\n * @param {File} file\n * @return {Boolean}\n */\n _isZip (file) {\n return file.type === 'application/zip' || file.name.match(/\\.zip$/);\n }\n\n /**\n * @param {string} message\n * @throws\n */\n _fail (message) {\n this._emit('droperror', {message: message});\n }\n}\n\nexport { SimpleDropzone };\n"],"names":["_dist_code","Tree","that","this","bi_reverse","code","len","res","build_tree","s","n","m","node","tree","dyn_tree","stree","stat_desc","static_tree","elems","max_code","heap_len","heap_max","heap","depth","opt_len","static_len","Math","floor","pqdownheap","max","h","bits","xbits","f","extra","extra_bits","base","extra_base","max_length","overflow","bl_count","gen_bitlen","next_code","gen_codes","StaticTree","Config","good_length","max_lazy","nice_length","max_chain","func","_length_code","base_length","base_dist","d_code","dist","extra_lbits","extra_dbits","extra_blbits","bl_order","static_ltree","static_dtree","static_l_desc","LITERALS","static_d_desc","static_bl_desc","config_table","z_errmsg","smaller","tn2","tm2","Deflate","strm","status","pending_buf_size","last_flush","w_size","w_bits","w_mask","window","window_size","prev","head","ins_h","hash_size","hash_bits","hash_mask","hash_shift","block_start","match_length","prev_match","match_available","strstart","match_start","lookahead","prev_length","max_chain_length","max_lazy_match","level","strategy","good_match","nice_match","dyn_ltree","dyn_dtree","bl_tree","l_buf","lit_bufsize","last_lit","d_buf","matches","last_eob_len","bi_buf","bi_valid","l_desc","d_desc","bl_desc","init_block","i","END_BLOCK","scan_tree","curlen","prevlen","nextlen","count","max_count","min_count","REP_3_6","REPZ_3_10","REPZ_11_138","put_byte","p","pending_buf","pending","put_short","w","send_bits","value","length","val","send_code","c","c2","send_tree","bi_flush","_tr_tally","lc","out_length","in_length","dcode","compress_block","ltree","dtree","lx","bi_windup","_tr_stored_block","buf","stored_len","eof","header","set","subarray","copy_block","flush_block_only","opt_lenb","static_lenb","max_blindex","BL_CODES","build_bl_tree","lcodes","dcodes","blcodes","rank","send_all_trees","_tr_flush_block","flush_pending","fill_window","more","avail_in","read_buf","longest_match","cur_match","match","chain_length","scan","best_len","limit","_nice_match","wmask","strend","scan_end1","scan_end","k","v","j","deflateInit","_level","_method","memLevel","_strategy","msg","dstate","Uint8Array","total_in","total_out","pending_out","MIN_MATCH","lm_init","deflateReset","deflateEnd","deflateParams","err","deflate","deflateSetDictionary","dictionary","dictLength","index","_strm","flush","level_flags","old_flush","bstate","b","next_out","next_in","Z_NEED_DICT","avail_out","max_start","max_block_size","deflate_stored","bflush","hash_head","deflate_fast","max_insert","deflate_slow","STATIC_TREES","ZStream","next_in_index","next_out_index","Deflater","options","z","bufsize","append","data","onprogress","array","buffers","lastIndex","bufferIndex","bufferSize","Error","push","forEach","chunk","prototype","ret","start","size","self","_zipjs_Deflater","inflate_mask","fixed_tl","fixed_td","cplens","cplext","cpdist","cpdext","InfTree","hn","r","u","x","huft_build","bindex","d","e","t","hp","a","g","l","mask","q","xp","y","initWorkArea","vsize","Int32Array","BMAX","inflate_trees_bits","bb","tb","result","inflate_trees_dynamic","nl","nd","bl","bd","tl","td","InfCodes","mode","tree_index","need","lit","get","lbits","dbits","ltree_index","dtree_index","inflate_fast","tl_index","td_index","tp","tp_index","ml","md","tp_index_t_3","bitb","bitk","write","read","end","read_byte","init","proc","tindex","inflate_flush","free","inflate_trees_fixed","border","InfBlocks","blens","left","table","codes","last","hufts","MANY","inftree","reset","bl_","bd_","tl_","td_","set_dictionary","sync_point","mark","Inflate","inflateReset","istate","blocks","method","was","marker","wbits","inflateEnd","inflateInit","inflate","inflateSetDictionary","inflateSync","inflateSyncPoint","Inflater","nomoreinput","_zipjs_Inflater","appendABViewSupported","ERR_BAD_FORMAT","ERR_READ","Blob","DataView","ArrayBuffer","Crc32","crc","NOOP","getDataHelper","byteLength","bytes","dataBuffer","dataArray","buffer","view","Reader","TextReader","text","blobReader","callback","onerror","blob","type","BlobReader","readUint8Array","Data64URIReader","dataURI","dataStart","dataEnd","charAt","indexOf","ceil","atob","substring","delta","charCodeAt","reader","FileReader","onload","target","readAsArrayBuffer","RangeError","slice","webkitSlice","mozSlice","msSlice","blobSlice","Writer","TextWriter","encoding","writeUint8Array","getData","readAsText","Data64URIWriter","contentType","dataString","String","fromCharCode","btoa","BlobWriter","launchWorkerProcess","worker","initialMessage","writer","offset","onend","onreaderror","onwriteerror","outputSize","chunkIndex","sn","onflush","removeEventListener","onmessage","event","message","error","toString","codecTime","crcTime","step","loaded","console","warn","min","postMessage","ex","addEventListener","launchProcess","process","crcType","crcInput","crcOutput","outputData","inputData","setTimeout","copy","computeCrc32","Zip","useWebWorkers","codecClass","decodeASCII","str","charCode","out","extendedASCII","decodeUTF8","string","decodeURIComponent","escape","getString","readCommonHeader","entry","centralDirectory","version","getUint16","bitFlag","compressionMethod","lastModDateRaw","getUint32","lastModDate","timeRaw","date","time","Date","getDate","crc32","compressedSize","uncompressedSize","filenameLength","extraFieldLength","encodeUTF8","unescape","encodeURIComponent","getBytes","constructor","DEFAULT_WORKER_SCRIPTS","deflater","inflater","createWorker","workerScripts","workerScriptsPath","scripts","urls","Array","isArray","document","createElement","map","url","href","Worker","ev","terminate","errorHandler","onerror_default","createReader","inflateSN","Entry","checkCrc32","getWriterData","dataCrc32","setUint32","testCrc32","dataOffset","_worker","zipReader","getEntries","eocdrCallback","doSeek","eocdrNotFoundCallback","EOCDR_MIN","seekEOCDR","dataView","datalength","fileslength","filename","comment","entries","commentLength","directory","getUint8","close","createZipReader","createWriter","dontDeflate","files","filenames","deflateSN","zipWriter","add","name","writeFooter","compressedLength","footer","writeFile","trim","hasOwnProperty","headerArray","setUint8","setUint16","getHours","getMinutes","getSeconds","getFullYear","getMonth","indexFilename","file","createZipWriter","ZipFileEntryProto","ZipDirectoryEntryProto","zip","ZipBlobReader","getTotalSize","children","initReaders","next","child","detach","parent","id","splice","resetFS","fs","root","ZipDirectoryEntry","addChild","params","ZipFileEntry","ZipEntry","call","FS","getChildByName","zipVersion","getFileEntry","fileEntry","totalSize","currentIndex","childIndex","processChild","nextChild","childFileEntry","getDirectory","create","getFile","FileWriter","getMimeType","moveTo","isDescendantOf","getFullname","fullname","ancestor","stepCopy","bufferedCopy","getText","getBlob","mimeType","getData64URI","addDirectory","addText","addBlob","addData64URI","addFileEntry","zipEntry","isDirectory","readEntries","isFile","getChildren","childZipEntry","addData","importBlob","importZip","importText","importData64URI","exportBlob","exportZip","exportText","exportFileEntry","exportData64URI","path","split","pop","pathPart","exportChild","remove","find","getById","SimpleDropzone","el","inputEl","listeners","drop","dropstart","droperror","_onDragover","bind","_onDrop","_onSelect","on","_emit","destroy","stopPropagation","preventDefault","from","dataTransfer","items","item","webkitGetAsEntry","filter","_loadZip","getAsFile","_loadNextEntry","Map","_fail","dropEffect","_isZip","fileMap","webkitRelativePath","fullPath","_this","readerCallback","newEntries","concat","archive","traver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