{"version":3,"file":"simple-dropzone.umd.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":["Z_STREAM_ERROR","_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","BUSY_STATE","FINISH_STATE","MIN_LOOKAHEAD","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","Z_DATA_ERROR","Z_BUF_ERROR","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","BAD","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","ERR_READ_DATA","CHUNK_SIZE","TEXT_PLAIN","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","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","traverse","Promise","resolve","all","then","_this2"],"mappings":"wOAqCA,IA6CIA,GAAkB,EAOlBC,EAAa,CAAE,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GACrJ,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAChJ,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAChJ,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAChJ,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,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