pako_inflate.min.js 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800
  1. /*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
  2. !function(e, t) {
  3. "object" == typeof exports && "undefined" != typeof module ? t(exports) : "function" == typeof define && define.amd ? define(["exports"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).pako = {});
  4. }(this, function(e) {
  5. "use strict";
  6. var t = (e2, t2, i2, n2) => {
  7. let a2 = 65535 & e2 | 0, r2 = e2 >>> 16 & 65535 | 0, o2 = 0;
  8. for (; 0 !== i2; ) {
  9. o2 = i2 > 2e3 ? 2e3 : i2, i2 -= o2;
  10. do {
  11. a2 = a2 + t2[n2++] | 0, r2 = r2 + a2 | 0;
  12. } while (--o2);
  13. a2 %= 65521, r2 %= 65521;
  14. }
  15. return a2 | r2 << 16 | 0;
  16. };
  17. const i = new Uint32Array((() => {
  18. let e2, t2 = [];
  19. for (var i2 = 0; i2 < 256; i2++) {
  20. e2 = i2;
  21. for (var n2 = 0; n2 < 8; n2++)
  22. e2 = 1 & e2 ? 3988292384 ^ e2 >>> 1 : e2 >>> 1;
  23. t2[i2] = e2;
  24. }
  25. return t2;
  26. })());
  27. var n = (e2, t2, n2, a2) => {
  28. const r2 = i, o2 = a2 + n2;
  29. e2 ^= -1;
  30. for (let i2 = a2; i2 < o2; i2++)
  31. e2 = e2 >>> 8 ^ r2[255 & (e2 ^ t2[i2])];
  32. return -1 ^ e2;
  33. };
  34. const a = 16209;
  35. var r = function(e2, t2) {
  36. let i2, n2, r2, o2, s2, l2, d2, f2, c2, h2, u2, w2, b2, m2, k2, _2, g2, p2, v2, x2, y2, E2, R2, A2;
  37. const Z2 = e2.state;
  38. i2 = e2.next_in, R2 = e2.input, n2 = i2 + (e2.avail_in - 5), r2 = e2.next_out, A2 = e2.output, o2 = r2 - (t2 - e2.avail_out), s2 = r2 + (e2.avail_out - 257), l2 = Z2.dmax, d2 = Z2.wsize, f2 = Z2.whave, c2 = Z2.wnext, h2 = Z2.window, u2 = Z2.hold, w2 = Z2.bits, b2 = Z2.lencode, m2 = Z2.distcode, k2 = (1 << Z2.lenbits) - 1, _2 = (1 << Z2.distbits) - 1;
  39. e:
  40. do {
  41. w2 < 15 && (u2 += R2[i2++] << w2, w2 += 8, u2 += R2[i2++] << w2, w2 += 8), g2 = b2[u2 & k2];
  42. t:
  43. for (; ; ) {
  44. if (p2 = g2 >>> 24, u2 >>>= p2, w2 -= p2, p2 = g2 >>> 16 & 255, 0 === p2)
  45. A2[r2++] = 65535 & g2;
  46. else {
  47. if (!(16 & p2)) {
  48. if (0 == (64 & p2)) {
  49. g2 = b2[(65535 & g2) + (u2 & (1 << p2) - 1)];
  50. continue t;
  51. }
  52. if (32 & p2) {
  53. Z2.mode = 16191;
  54. break e;
  55. }
  56. e2.msg = "invalid literal/length code", Z2.mode = a;
  57. break e;
  58. }
  59. v2 = 65535 & g2, p2 &= 15, p2 && (w2 < p2 && (u2 += R2[i2++] << w2, w2 += 8), v2 += u2 & (1 << p2) - 1, u2 >>>= p2, w2 -= p2), w2 < 15 && (u2 += R2[i2++] << w2, w2 += 8, u2 += R2[i2++] << w2, w2 += 8), g2 = m2[u2 & _2];
  60. i:
  61. for (; ; ) {
  62. if (p2 = g2 >>> 24, u2 >>>= p2, w2 -= p2, p2 = g2 >>> 16 & 255, !(16 & p2)) {
  63. if (0 == (64 & p2)) {
  64. g2 = m2[(65535 & g2) + (u2 & (1 << p2) - 1)];
  65. continue i;
  66. }
  67. e2.msg = "invalid distance code", Z2.mode = a;
  68. break e;
  69. }
  70. if (x2 = 65535 & g2, p2 &= 15, w2 < p2 && (u2 += R2[i2++] << w2, w2 += 8, w2 < p2 && (u2 += R2[i2++] << w2, w2 += 8)), x2 += u2 & (1 << p2) - 1, x2 > l2) {
  71. e2.msg = "invalid distance too far back", Z2.mode = a;
  72. break e;
  73. }
  74. if (u2 >>>= p2, w2 -= p2, p2 = r2 - o2, x2 > p2) {
  75. if (p2 = x2 - p2, p2 > f2 && Z2.sane) {
  76. e2.msg = "invalid distance too far back", Z2.mode = a;
  77. break e;
  78. }
  79. if (y2 = 0, E2 = h2, 0 === c2) {
  80. if (y2 += d2 - p2, p2 < v2) {
  81. v2 -= p2;
  82. do {
  83. A2[r2++] = h2[y2++];
  84. } while (--p2);
  85. y2 = r2 - x2, E2 = A2;
  86. }
  87. } else if (c2 < p2) {
  88. if (y2 += d2 + c2 - p2, p2 -= c2, p2 < v2) {
  89. v2 -= p2;
  90. do {
  91. A2[r2++] = h2[y2++];
  92. } while (--p2);
  93. if (y2 = 0, c2 < v2) {
  94. p2 = c2, v2 -= p2;
  95. do {
  96. A2[r2++] = h2[y2++];
  97. } while (--p2);
  98. y2 = r2 - x2, E2 = A2;
  99. }
  100. }
  101. } else if (y2 += c2 - p2, p2 < v2) {
  102. v2 -= p2;
  103. do {
  104. A2[r2++] = h2[y2++];
  105. } while (--p2);
  106. y2 = r2 - x2, E2 = A2;
  107. }
  108. for (; v2 > 2; )
  109. A2[r2++] = E2[y2++], A2[r2++] = E2[y2++], A2[r2++] = E2[y2++], v2 -= 3;
  110. v2 && (A2[r2++] = E2[y2++], v2 > 1 && (A2[r2++] = E2[y2++]));
  111. } else {
  112. y2 = r2 - x2;
  113. do {
  114. A2[r2++] = A2[y2++], A2[r2++] = A2[y2++], A2[r2++] = A2[y2++], v2 -= 3;
  115. } while (v2 > 2);
  116. v2 && (A2[r2++] = A2[y2++], v2 > 1 && (A2[r2++] = A2[y2++]));
  117. }
  118. break;
  119. }
  120. }
  121. break;
  122. }
  123. } while (i2 < n2 && r2 < s2);
  124. v2 = w2 >> 3, i2 -= v2, w2 -= v2 << 3, u2 &= (1 << w2) - 1, e2.next_in = i2, e2.next_out = r2, e2.avail_in = i2 < n2 ? n2 - i2 + 5 : 5 - (i2 - n2), e2.avail_out = r2 < s2 ? s2 - r2 + 257 : 257 - (r2 - s2), Z2.hold = u2, Z2.bits = w2;
  125. };
  126. const o = 15, s = new Uint16Array([3, 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]), l = new Uint8Array([16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78]), d = new Uint16Array([1, 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, 0, 0]), f = new Uint8Array([16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64]);
  127. var c = (e2, t2, i2, n2, a2, r2, c2, h2) => {
  128. const u2 = h2.bits;
  129. let w2, b2, m2, k2, _2, g2, p2 = 0, v2 = 0, x2 = 0, y2 = 0, E2 = 0, R2 = 0, A2 = 0, Z2 = 0, S2 = 0, T2 = 0, O2 = null;
  130. const U2 = new Uint16Array(16), D2 = new Uint16Array(16);
  131. let I2, B2, N2, C2 = null;
  132. for (p2 = 0; p2 <= o; p2++)
  133. U2[p2] = 0;
  134. for (v2 = 0; v2 < n2; v2++)
  135. U2[t2[i2 + v2]]++;
  136. for (E2 = u2, y2 = o; y2 >= 1 && 0 === U2[y2]; y2--)
  137. ;
  138. if (E2 > y2 && (E2 = y2), 0 === y2)
  139. return a2[r2++] = 20971520, a2[r2++] = 20971520, h2.bits = 1, 0;
  140. for (x2 = 1; x2 < y2 && 0 === U2[x2]; x2++)
  141. ;
  142. for (E2 < x2 && (E2 = x2), Z2 = 1, p2 = 1; p2 <= o; p2++)
  143. if (Z2 <<= 1, Z2 -= U2[p2], Z2 < 0)
  144. return -1;
  145. if (Z2 > 0 && (0 === e2 || 1 !== y2))
  146. return -1;
  147. for (D2[1] = 0, p2 = 1; p2 < o; p2++)
  148. D2[p2 + 1] = D2[p2] + U2[p2];
  149. for (v2 = 0; v2 < n2; v2++)
  150. 0 !== t2[i2 + v2] && (c2[D2[t2[i2 + v2]]++] = v2);
  151. if (0 === e2 ? (O2 = C2 = c2, g2 = 20) : 1 === e2 ? (O2 = s, C2 = l, g2 = 257) : (O2 = d, C2 = f, g2 = 0), T2 = 0, v2 = 0, p2 = x2, _2 = r2, R2 = E2, A2 = 0, m2 = -1, S2 = 1 << E2, k2 = S2 - 1, 1 === e2 && S2 > 852 || 2 === e2 && S2 > 592)
  152. return 1;
  153. for (; ; ) {
  154. I2 = p2 - A2, c2[v2] + 1 < g2 ? (B2 = 0, N2 = c2[v2]) : c2[v2] >= g2 ? (B2 = C2[c2[v2] - g2], N2 = O2[c2[v2] - g2]) : (B2 = 96, N2 = 0), w2 = 1 << p2 - A2, b2 = 1 << R2, x2 = b2;
  155. do {
  156. b2 -= w2, a2[_2 + (T2 >> A2) + b2] = I2 << 24 | B2 << 16 | N2 | 0;
  157. } while (0 !== b2);
  158. for (w2 = 1 << p2 - 1; T2 & w2; )
  159. w2 >>= 1;
  160. if (0 !== w2 ? (T2 &= w2 - 1, T2 += w2) : T2 = 0, v2++, 0 == --U2[p2]) {
  161. if (p2 === y2)
  162. break;
  163. p2 = t2[i2 + c2[v2]];
  164. }
  165. if (p2 > E2 && (T2 & k2) !== m2) {
  166. for (0 === A2 && (A2 = E2), _2 += x2, R2 = p2 - A2, Z2 = 1 << R2; R2 + A2 < y2 && (Z2 -= U2[R2 + A2], !(Z2 <= 0)); )
  167. R2++, Z2 <<= 1;
  168. if (S2 += 1 << R2, 1 === e2 && S2 > 852 || 2 === e2 && S2 > 592)
  169. return 1;
  170. m2 = T2 & k2, a2[m2] = E2 << 24 | R2 << 16 | _2 - r2 | 0;
  171. }
  172. }
  173. return 0 !== T2 && (a2[_2 + T2] = p2 - A2 << 24 | 64 << 16 | 0), h2.bits = E2, 0;
  174. }, h = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
  175. const { Z_FINISH: u, Z_BLOCK: w, Z_TREES: b, Z_OK: m, Z_STREAM_END: k, Z_NEED_DICT: _, Z_STREAM_ERROR: g, Z_DATA_ERROR: p, Z_MEM_ERROR: v, Z_BUF_ERROR: x, Z_DEFLATED: y } = h, E = 16180, R = 16190, A = 16191, Z = 16192, S = 16194, T = 16199, O = 16200, U = 16206, D = 16209, I = (e2) => (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
  176. function B() {
  177. this.strm = null, this.mode = 0, this.last = false, this.wrap = 0, this.havedict = false, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
  178. }
  179. const N = (e2) => {
  180. if (!e2)
  181. return 1;
  182. const t2 = e2.state;
  183. return !t2 || t2.strm !== e2 || t2.mode < E || t2.mode > 16211 ? 1 : 0;
  184. }, C = (e2) => {
  185. if (N(e2))
  186. return g;
  187. const t2 = e2.state;
  188. return e2.total_in = e2.total_out = t2.total = 0, e2.msg = "", t2.wrap && (e2.adler = 1 & t2.wrap), t2.mode = E, t2.last = 0, t2.havedict = 0, t2.flags = -1, t2.dmax = 32768, t2.head = null, t2.hold = 0, t2.bits = 0, t2.lencode = t2.lendyn = new Int32Array(852), t2.distcode = t2.distdyn = new Int32Array(592), t2.sane = 1, t2.back = -1, m;
  189. }, z = (e2) => {
  190. if (N(e2))
  191. return g;
  192. const t2 = e2.state;
  193. return t2.wsize = 0, t2.whave = 0, t2.wnext = 0, C(e2);
  194. }, F = (e2, t2) => {
  195. let i2;
  196. if (N(e2))
  197. return g;
  198. const n2 = e2.state;
  199. return t2 < 0 ? (i2 = 0, t2 = -t2) : (i2 = 5 + (t2 >> 4), t2 < 48 && (t2 &= 15)), t2 && (t2 < 8 || t2 > 15) ? g : (null !== n2.window && n2.wbits !== t2 && (n2.window = null), n2.wrap = i2, n2.wbits = t2, z(e2));
  200. }, L = (e2, t2) => {
  201. if (!e2)
  202. return g;
  203. const i2 = new B();
  204. e2.state = i2, i2.strm = e2, i2.window = null, i2.mode = E;
  205. const n2 = F(e2, t2);
  206. return n2 !== m && (e2.state = null), n2;
  207. };
  208. let M, H, j = true;
  209. const K = (e2) => {
  210. if (j) {
  211. M = new Int32Array(512), H = new Int32Array(32);
  212. let t2 = 0;
  213. for (; t2 < 144; )
  214. e2.lens[t2++] = 8;
  215. for (; t2 < 256; )
  216. e2.lens[t2++] = 9;
  217. for (; t2 < 280; )
  218. e2.lens[t2++] = 7;
  219. for (; t2 < 288; )
  220. e2.lens[t2++] = 8;
  221. for (c(1, e2.lens, 0, 288, M, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; )
  222. e2.lens[t2++] = 5;
  223. c(2, e2.lens, 0, 32, H, 0, e2.work, { bits: 5 }), j = false;
  224. }
  225. e2.lencode = M, e2.lenbits = 9, e2.distcode = H, e2.distbits = 5;
  226. }, P = (e2, t2, i2, n2) => {
  227. let a2;
  228. const r2 = e2.state;
  229. return null === r2.window && (r2.wsize = 1 << r2.wbits, r2.wnext = 0, r2.whave = 0, r2.window = new Uint8Array(r2.wsize)), n2 >= r2.wsize ? (r2.window.set(t2.subarray(i2 - r2.wsize, i2), 0), r2.wnext = 0, r2.whave = r2.wsize) : (a2 = r2.wsize - r2.wnext, a2 > n2 && (a2 = n2), r2.window.set(t2.subarray(i2 - n2, i2 - n2 + a2), r2.wnext), (n2 -= a2) ? (r2.window.set(t2.subarray(i2 - n2, i2), 0), r2.wnext = n2, r2.whave = r2.wsize) : (r2.wnext += a2, r2.wnext === r2.wsize && (r2.wnext = 0), r2.whave < r2.wsize && (r2.whave += a2))), 0;
  230. };
  231. var Y = { inflateReset: z, inflateReset2: F, inflateResetKeep: C, inflateInit: (e2) => L(e2, 15), inflateInit2: L, inflate: (e2, i2) => {
  232. let a2, o2, s2, l2, d2, f2, h2, B2, C2, z2, F2, L2, M2, H2, j2, Y2, G2, X2, W2, q2, J2, Q2, V2 = 0;
  233. const $2 = new Uint8Array(4);
  234. let ee2, te2;
  235. const ie2 = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
  236. if (N(e2) || !e2.output || !e2.input && 0 !== e2.avail_in)
  237. return g;
  238. a2 = e2.state, a2.mode === A && (a2.mode = Z), d2 = e2.next_out, s2 = e2.output, h2 = e2.avail_out, l2 = e2.next_in, o2 = e2.input, f2 = e2.avail_in, B2 = a2.hold, C2 = a2.bits, z2 = f2, F2 = h2, Q2 = m;
  239. e:
  240. for (; ; )
  241. switch (a2.mode) {
  242. case E:
  243. if (0 === a2.wrap) {
  244. a2.mode = Z;
  245. break;
  246. }
  247. for (; C2 < 16; ) {
  248. if (0 === f2)
  249. break e;
  250. f2--, B2 += o2[l2++] << C2, C2 += 8;
  251. }
  252. if (2 & a2.wrap && 35615 === B2) {
  253. 0 === a2.wbits && (a2.wbits = 15), a2.check = 0, $2[0] = 255 & B2, $2[1] = B2 >>> 8 & 255, a2.check = n(a2.check, $2, 2, 0), B2 = 0, C2 = 0, a2.mode = 16181;
  254. break;
  255. }
  256. if (a2.head && (a2.head.done = false), !(1 & a2.wrap) || (((255 & B2) << 8) + (B2 >> 8)) % 31) {
  257. e2.msg = "incorrect header check", a2.mode = D;
  258. break;
  259. }
  260. if ((15 & B2) !== y) {
  261. e2.msg = "unknown compression method", a2.mode = D;
  262. break;
  263. }
  264. if (B2 >>>= 4, C2 -= 4, J2 = 8 + (15 & B2), 0 === a2.wbits && (a2.wbits = J2), J2 > 15 || J2 > a2.wbits) {
  265. e2.msg = "invalid window size", a2.mode = D;
  266. break;
  267. }
  268. a2.dmax = 1 << a2.wbits, a2.flags = 0, e2.adler = a2.check = 1, a2.mode = 512 & B2 ? 16189 : A, B2 = 0, C2 = 0;
  269. break;
  270. case 16181:
  271. for (; C2 < 16; ) {
  272. if (0 === f2)
  273. break e;
  274. f2--, B2 += o2[l2++] << C2, C2 += 8;
  275. }
  276. if (a2.flags = B2, (255 & a2.flags) !== y) {
  277. e2.msg = "unknown compression method", a2.mode = D;
  278. break;
  279. }
  280. if (57344 & a2.flags) {
  281. e2.msg = "unknown header flags set", a2.mode = D;
  282. break;
  283. }
  284. a2.head && (a2.head.text = B2 >> 8 & 1), 512 & a2.flags && 4 & a2.wrap && ($2[0] = 255 & B2, $2[1] = B2 >>> 8 & 255, a2.check = n(a2.check, $2, 2, 0)), B2 = 0, C2 = 0, a2.mode = 16182;
  285. case 16182:
  286. for (; C2 < 32; ) {
  287. if (0 === f2)
  288. break e;
  289. f2--, B2 += o2[l2++] << C2, C2 += 8;
  290. }
  291. a2.head && (a2.head.time = B2), 512 & a2.flags && 4 & a2.wrap && ($2[0] = 255 & B2, $2[1] = B2 >>> 8 & 255, $2[2] = B2 >>> 16 & 255, $2[3] = B2 >>> 24 & 255, a2.check = n(a2.check, $2, 4, 0)), B2 = 0, C2 = 0, a2.mode = 16183;
  292. case 16183:
  293. for (; C2 < 16; ) {
  294. if (0 === f2)
  295. break e;
  296. f2--, B2 += o2[l2++] << C2, C2 += 8;
  297. }
  298. a2.head && (a2.head.xflags = 255 & B2, a2.head.os = B2 >> 8), 512 & a2.flags && 4 & a2.wrap && ($2[0] = 255 & B2, $2[1] = B2 >>> 8 & 255, a2.check = n(a2.check, $2, 2, 0)), B2 = 0, C2 = 0, a2.mode = 16184;
  299. case 16184:
  300. if (1024 & a2.flags) {
  301. for (; C2 < 16; ) {
  302. if (0 === f2)
  303. break e;
  304. f2--, B2 += o2[l2++] << C2, C2 += 8;
  305. }
  306. a2.length = B2, a2.head && (a2.head.extra_len = B2), 512 & a2.flags && 4 & a2.wrap && ($2[0] = 255 & B2, $2[1] = B2 >>> 8 & 255, a2.check = n(a2.check, $2, 2, 0)), B2 = 0, C2 = 0;
  307. } else
  308. a2.head && (a2.head.extra = null);
  309. a2.mode = 16185;
  310. case 16185:
  311. if (1024 & a2.flags && (L2 = a2.length, L2 > f2 && (L2 = f2), L2 && (a2.head && (J2 = a2.head.extra_len - a2.length, a2.head.extra || (a2.head.extra = new Uint8Array(a2.head.extra_len)), a2.head.extra.set(o2.subarray(l2, l2 + L2), J2)), 512 & a2.flags && 4 & a2.wrap && (a2.check = n(a2.check, o2, L2, l2)), f2 -= L2, l2 += L2, a2.length -= L2), a2.length))
  312. break e;
  313. a2.length = 0, a2.mode = 16186;
  314. case 16186:
  315. if (2048 & a2.flags) {
  316. if (0 === f2)
  317. break e;
  318. L2 = 0;
  319. do {
  320. J2 = o2[l2 + L2++], a2.head && J2 && a2.length < 65536 && (a2.head.name += String.fromCharCode(J2));
  321. } while (J2 && L2 < f2);
  322. if (512 & a2.flags && 4 & a2.wrap && (a2.check = n(a2.check, o2, L2, l2)), f2 -= L2, l2 += L2, J2)
  323. break e;
  324. } else
  325. a2.head && (a2.head.name = null);
  326. a2.length = 0, a2.mode = 16187;
  327. case 16187:
  328. if (4096 & a2.flags) {
  329. if (0 === f2)
  330. break e;
  331. L2 = 0;
  332. do {
  333. J2 = o2[l2 + L2++], a2.head && J2 && a2.length < 65536 && (a2.head.comment += String.fromCharCode(J2));
  334. } while (J2 && L2 < f2);
  335. if (512 & a2.flags && 4 & a2.wrap && (a2.check = n(a2.check, o2, L2, l2)), f2 -= L2, l2 += L2, J2)
  336. break e;
  337. } else
  338. a2.head && (a2.head.comment = null);
  339. a2.mode = 16188;
  340. case 16188:
  341. if (512 & a2.flags) {
  342. for (; C2 < 16; ) {
  343. if (0 === f2)
  344. break e;
  345. f2--, B2 += o2[l2++] << C2, C2 += 8;
  346. }
  347. if (4 & a2.wrap && B2 !== (65535 & a2.check)) {
  348. e2.msg = "header crc mismatch", a2.mode = D;
  349. break;
  350. }
  351. B2 = 0, C2 = 0;
  352. }
  353. a2.head && (a2.head.hcrc = a2.flags >> 9 & 1, a2.head.done = true), e2.adler = a2.check = 0, a2.mode = A;
  354. break;
  355. case 16189:
  356. for (; C2 < 32; ) {
  357. if (0 === f2)
  358. break e;
  359. f2--, B2 += o2[l2++] << C2, C2 += 8;
  360. }
  361. e2.adler = a2.check = I(B2), B2 = 0, C2 = 0, a2.mode = R;
  362. case R:
  363. if (0 === a2.havedict)
  364. return e2.next_out = d2, e2.avail_out = h2, e2.next_in = l2, e2.avail_in = f2, a2.hold = B2, a2.bits = C2, _;
  365. e2.adler = a2.check = 1, a2.mode = A;
  366. case A:
  367. if (i2 === w || i2 === b)
  368. break e;
  369. case Z:
  370. if (a2.last) {
  371. B2 >>>= 7 & C2, C2 -= 7 & C2, a2.mode = U;
  372. break;
  373. }
  374. for (; C2 < 3; ) {
  375. if (0 === f2)
  376. break e;
  377. f2--, B2 += o2[l2++] << C2, C2 += 8;
  378. }
  379. switch (a2.last = 1 & B2, B2 >>>= 1, C2 -= 1, 3 & B2) {
  380. case 0:
  381. a2.mode = 16193;
  382. break;
  383. case 1:
  384. if (K(a2), a2.mode = T, i2 === b) {
  385. B2 >>>= 2, C2 -= 2;
  386. break e;
  387. }
  388. break;
  389. case 2:
  390. a2.mode = 16196;
  391. break;
  392. case 3:
  393. e2.msg = "invalid block type", a2.mode = D;
  394. }
  395. B2 >>>= 2, C2 -= 2;
  396. break;
  397. case 16193:
  398. for (B2 >>>= 7 & C2, C2 -= 7 & C2; C2 < 32; ) {
  399. if (0 === f2)
  400. break e;
  401. f2--, B2 += o2[l2++] << C2, C2 += 8;
  402. }
  403. if ((65535 & B2) != (B2 >>> 16 ^ 65535)) {
  404. e2.msg = "invalid stored block lengths", a2.mode = D;
  405. break;
  406. }
  407. if (a2.length = 65535 & B2, B2 = 0, C2 = 0, a2.mode = S, i2 === b)
  408. break e;
  409. case S:
  410. a2.mode = 16195;
  411. case 16195:
  412. if (L2 = a2.length, L2) {
  413. if (L2 > f2 && (L2 = f2), L2 > h2 && (L2 = h2), 0 === L2)
  414. break e;
  415. s2.set(o2.subarray(l2, l2 + L2), d2), f2 -= L2, l2 += L2, h2 -= L2, d2 += L2, a2.length -= L2;
  416. break;
  417. }
  418. a2.mode = A;
  419. break;
  420. case 16196:
  421. for (; C2 < 14; ) {
  422. if (0 === f2)
  423. break e;
  424. f2--, B2 += o2[l2++] << C2, C2 += 8;
  425. }
  426. if (a2.nlen = 257 + (31 & B2), B2 >>>= 5, C2 -= 5, a2.ndist = 1 + (31 & B2), B2 >>>= 5, C2 -= 5, a2.ncode = 4 + (15 & B2), B2 >>>= 4, C2 -= 4, a2.nlen > 286 || a2.ndist > 30) {
  427. e2.msg = "too many length or distance symbols", a2.mode = D;
  428. break;
  429. }
  430. a2.have = 0, a2.mode = 16197;
  431. case 16197:
  432. for (; a2.have < a2.ncode; ) {
  433. for (; C2 < 3; ) {
  434. if (0 === f2)
  435. break e;
  436. f2--, B2 += o2[l2++] << C2, C2 += 8;
  437. }
  438. a2.lens[ie2[a2.have++]] = 7 & B2, B2 >>>= 3, C2 -= 3;
  439. }
  440. for (; a2.have < 19; )
  441. a2.lens[ie2[a2.have++]] = 0;
  442. if (a2.lencode = a2.lendyn, a2.lenbits = 7, ee2 = { bits: a2.lenbits }, Q2 = c(0, a2.lens, 0, 19, a2.lencode, 0, a2.work, ee2), a2.lenbits = ee2.bits, Q2) {
  443. e2.msg = "invalid code lengths set", a2.mode = D;
  444. break;
  445. }
  446. a2.have = 0, a2.mode = 16198;
  447. case 16198:
  448. for (; a2.have < a2.nlen + a2.ndist; ) {
  449. for (; V2 = a2.lencode[B2 & (1 << a2.lenbits) - 1], j2 = V2 >>> 24, Y2 = V2 >>> 16 & 255, G2 = 65535 & V2, !(j2 <= C2); ) {
  450. if (0 === f2)
  451. break e;
  452. f2--, B2 += o2[l2++] << C2, C2 += 8;
  453. }
  454. if (G2 < 16)
  455. B2 >>>= j2, C2 -= j2, a2.lens[a2.have++] = G2;
  456. else {
  457. if (16 === G2) {
  458. for (te2 = j2 + 2; C2 < te2; ) {
  459. if (0 === f2)
  460. break e;
  461. f2--, B2 += o2[l2++] << C2, C2 += 8;
  462. }
  463. if (B2 >>>= j2, C2 -= j2, 0 === a2.have) {
  464. e2.msg = "invalid bit length repeat", a2.mode = D;
  465. break;
  466. }
  467. J2 = a2.lens[a2.have - 1], L2 = 3 + (3 & B2), B2 >>>= 2, C2 -= 2;
  468. } else if (17 === G2) {
  469. for (te2 = j2 + 3; C2 < te2; ) {
  470. if (0 === f2)
  471. break e;
  472. f2--, B2 += o2[l2++] << C2, C2 += 8;
  473. }
  474. B2 >>>= j2, C2 -= j2, J2 = 0, L2 = 3 + (7 & B2), B2 >>>= 3, C2 -= 3;
  475. } else {
  476. for (te2 = j2 + 7; C2 < te2; ) {
  477. if (0 === f2)
  478. break e;
  479. f2--, B2 += o2[l2++] << C2, C2 += 8;
  480. }
  481. B2 >>>= j2, C2 -= j2, J2 = 0, L2 = 11 + (127 & B2), B2 >>>= 7, C2 -= 7;
  482. }
  483. if (a2.have + L2 > a2.nlen + a2.ndist) {
  484. e2.msg = "invalid bit length repeat", a2.mode = D;
  485. break;
  486. }
  487. for (; L2--; )
  488. a2.lens[a2.have++] = J2;
  489. }
  490. }
  491. if (a2.mode === D)
  492. break;
  493. if (0 === a2.lens[256]) {
  494. e2.msg = "invalid code -- missing end-of-block", a2.mode = D;
  495. break;
  496. }
  497. if (a2.lenbits = 9, ee2 = { bits: a2.lenbits }, Q2 = c(1, a2.lens, 0, a2.nlen, a2.lencode, 0, a2.work, ee2), a2.lenbits = ee2.bits, Q2) {
  498. e2.msg = "invalid literal/lengths set", a2.mode = D;
  499. break;
  500. }
  501. if (a2.distbits = 6, a2.distcode = a2.distdyn, ee2 = { bits: a2.distbits }, Q2 = c(2, a2.lens, a2.nlen, a2.ndist, a2.distcode, 0, a2.work, ee2), a2.distbits = ee2.bits, Q2) {
  502. e2.msg = "invalid distances set", a2.mode = D;
  503. break;
  504. }
  505. if (a2.mode = T, i2 === b)
  506. break e;
  507. case T:
  508. a2.mode = O;
  509. case O:
  510. if (f2 >= 6 && h2 >= 258) {
  511. e2.next_out = d2, e2.avail_out = h2, e2.next_in = l2, e2.avail_in = f2, a2.hold = B2, a2.bits = C2, r(e2, F2), d2 = e2.next_out, s2 = e2.output, h2 = e2.avail_out, l2 = e2.next_in, o2 = e2.input, f2 = e2.avail_in, B2 = a2.hold, C2 = a2.bits, a2.mode === A && (a2.back = -1);
  512. break;
  513. }
  514. for (a2.back = 0; V2 = a2.lencode[B2 & (1 << a2.lenbits) - 1], j2 = V2 >>> 24, Y2 = V2 >>> 16 & 255, G2 = 65535 & V2, !(j2 <= C2); ) {
  515. if (0 === f2)
  516. break e;
  517. f2--, B2 += o2[l2++] << C2, C2 += 8;
  518. }
  519. if (Y2 && 0 == (240 & Y2)) {
  520. for (X2 = j2, W2 = Y2, q2 = G2; V2 = a2.lencode[q2 + ((B2 & (1 << X2 + W2) - 1) >> X2)], j2 = V2 >>> 24, Y2 = V2 >>> 16 & 255, G2 = 65535 & V2, !(X2 + j2 <= C2); ) {
  521. if (0 === f2)
  522. break e;
  523. f2--, B2 += o2[l2++] << C2, C2 += 8;
  524. }
  525. B2 >>>= X2, C2 -= X2, a2.back += X2;
  526. }
  527. if (B2 >>>= j2, C2 -= j2, a2.back += j2, a2.length = G2, 0 === Y2) {
  528. a2.mode = 16205;
  529. break;
  530. }
  531. if (32 & Y2) {
  532. a2.back = -1, a2.mode = A;
  533. break;
  534. }
  535. if (64 & Y2) {
  536. e2.msg = "invalid literal/length code", a2.mode = D;
  537. break;
  538. }
  539. a2.extra = 15 & Y2, a2.mode = 16201;
  540. case 16201:
  541. if (a2.extra) {
  542. for (te2 = a2.extra; C2 < te2; ) {
  543. if (0 === f2)
  544. break e;
  545. f2--, B2 += o2[l2++] << C2, C2 += 8;
  546. }
  547. a2.length += B2 & (1 << a2.extra) - 1, B2 >>>= a2.extra, C2 -= a2.extra, a2.back += a2.extra;
  548. }
  549. a2.was = a2.length, a2.mode = 16202;
  550. case 16202:
  551. for (; V2 = a2.distcode[B2 & (1 << a2.distbits) - 1], j2 = V2 >>> 24, Y2 = V2 >>> 16 & 255, G2 = 65535 & V2, !(j2 <= C2); ) {
  552. if (0 === f2)
  553. break e;
  554. f2--, B2 += o2[l2++] << C2, C2 += 8;
  555. }
  556. if (0 == (240 & Y2)) {
  557. for (X2 = j2, W2 = Y2, q2 = G2; V2 = a2.distcode[q2 + ((B2 & (1 << X2 + W2) - 1) >> X2)], j2 = V2 >>> 24, Y2 = V2 >>> 16 & 255, G2 = 65535 & V2, !(X2 + j2 <= C2); ) {
  558. if (0 === f2)
  559. break e;
  560. f2--, B2 += o2[l2++] << C2, C2 += 8;
  561. }
  562. B2 >>>= X2, C2 -= X2, a2.back += X2;
  563. }
  564. if (B2 >>>= j2, C2 -= j2, a2.back += j2, 64 & Y2) {
  565. e2.msg = "invalid distance code", a2.mode = D;
  566. break;
  567. }
  568. a2.offset = G2, a2.extra = 15 & Y2, a2.mode = 16203;
  569. case 16203:
  570. if (a2.extra) {
  571. for (te2 = a2.extra; C2 < te2; ) {
  572. if (0 === f2)
  573. break e;
  574. f2--, B2 += o2[l2++] << C2, C2 += 8;
  575. }
  576. a2.offset += B2 & (1 << a2.extra) - 1, B2 >>>= a2.extra, C2 -= a2.extra, a2.back += a2.extra;
  577. }
  578. if (a2.offset > a2.dmax) {
  579. e2.msg = "invalid distance too far back", a2.mode = D;
  580. break;
  581. }
  582. a2.mode = 16204;
  583. case 16204:
  584. if (0 === h2)
  585. break e;
  586. if (L2 = F2 - h2, a2.offset > L2) {
  587. if (L2 = a2.offset - L2, L2 > a2.whave && a2.sane) {
  588. e2.msg = "invalid distance too far back", a2.mode = D;
  589. break;
  590. }
  591. L2 > a2.wnext ? (L2 -= a2.wnext, M2 = a2.wsize - L2) : M2 = a2.wnext - L2, L2 > a2.length && (L2 = a2.length), H2 = a2.window;
  592. } else
  593. H2 = s2, M2 = d2 - a2.offset, L2 = a2.length;
  594. L2 > h2 && (L2 = h2), h2 -= L2, a2.length -= L2;
  595. do {
  596. s2[d2++] = H2[M2++];
  597. } while (--L2);
  598. 0 === a2.length && (a2.mode = O);
  599. break;
  600. case 16205:
  601. if (0 === h2)
  602. break e;
  603. s2[d2++] = a2.length, h2--, a2.mode = O;
  604. break;
  605. case U:
  606. if (a2.wrap) {
  607. for (; C2 < 32; ) {
  608. if (0 === f2)
  609. break e;
  610. f2--, B2 |= o2[l2++] << C2, C2 += 8;
  611. }
  612. if (F2 -= h2, e2.total_out += F2, a2.total += F2, 4 & a2.wrap && F2 && (e2.adler = a2.check = a2.flags ? n(a2.check, s2, F2, d2 - F2) : t(a2.check, s2, F2, d2 - F2)), F2 = h2, 4 & a2.wrap && (a2.flags ? B2 : I(B2)) !== a2.check) {
  613. e2.msg = "incorrect data check", a2.mode = D;
  614. break;
  615. }
  616. B2 = 0, C2 = 0;
  617. }
  618. a2.mode = 16207;
  619. case 16207:
  620. if (a2.wrap && a2.flags) {
  621. for (; C2 < 32; ) {
  622. if (0 === f2)
  623. break e;
  624. f2--, B2 += o2[l2++] << C2, C2 += 8;
  625. }
  626. if (4 & a2.wrap && B2 !== (4294967295 & a2.total)) {
  627. e2.msg = "incorrect length check", a2.mode = D;
  628. break;
  629. }
  630. B2 = 0, C2 = 0;
  631. }
  632. a2.mode = 16208;
  633. case 16208:
  634. Q2 = k;
  635. break e;
  636. case D:
  637. Q2 = p;
  638. break e;
  639. case 16210:
  640. return v;
  641. default:
  642. return g;
  643. }
  644. return e2.next_out = d2, e2.avail_out = h2, e2.next_in = l2, e2.avail_in = f2, a2.hold = B2, a2.bits = C2, (a2.wsize || F2 !== e2.avail_out && a2.mode < D && (a2.mode < U || i2 !== u)) && P(e2, e2.output, e2.next_out, F2 - e2.avail_out), z2 -= e2.avail_in, F2 -= e2.avail_out, e2.total_in += z2, e2.total_out += F2, a2.total += F2, 4 & a2.wrap && F2 && (e2.adler = a2.check = a2.flags ? n(a2.check, s2, F2, e2.next_out - F2) : t(a2.check, s2, F2, e2.next_out - F2)), e2.data_type = a2.bits + (a2.last ? 64 : 0) + (a2.mode === A ? 128 : 0) + (a2.mode === T || a2.mode === S ? 256 : 0), (0 === z2 && 0 === F2 || i2 === u) && Q2 === m && (Q2 = x), Q2;
  645. }, inflateEnd: (e2) => {
  646. if (N(e2))
  647. return g;
  648. let t2 = e2.state;
  649. return t2.window && (t2.window = null), e2.state = null, m;
  650. }, inflateGetHeader: (e2, t2) => {
  651. if (N(e2))
  652. return g;
  653. const i2 = e2.state;
  654. return 0 == (2 & i2.wrap) ? g : (i2.head = t2, t2.done = false, m);
  655. }, inflateSetDictionary: (e2, i2) => {
  656. const n2 = i2.length;
  657. let a2, r2, o2;
  658. return N(e2) ? g : (a2 = e2.state, 0 !== a2.wrap && a2.mode !== R ? g : a2.mode === R && (r2 = 1, r2 = t(r2, i2, n2, 0), r2 !== a2.check) ? p : (o2 = P(e2, i2, n2, n2), o2 ? (a2.mode = 16210, v) : (a2.havedict = 1, m)));
  659. }, inflateInfo: "pako inflate (from Nodeca project)" };
  660. const G = (e2, t2) => Object.prototype.hasOwnProperty.call(e2, t2);
  661. var X = function(e2) {
  662. const t2 = Array.prototype.slice.call(arguments, 1);
  663. for (; t2.length; ) {
  664. const i2 = t2.shift();
  665. if (i2) {
  666. if ("object" != typeof i2)
  667. throw new TypeError(i2 + "must be non-object");
  668. for (const t3 in i2)
  669. G(i2, t3) && (e2[t3] = i2[t3]);
  670. }
  671. }
  672. return e2;
  673. }, W = (e2) => {
  674. let t2 = 0;
  675. for (let i3 = 0, n2 = e2.length; i3 < n2; i3++)
  676. t2 += e2[i3].length;
  677. const i2 = new Uint8Array(t2);
  678. for (let t3 = 0, n2 = 0, a2 = e2.length; t3 < a2; t3++) {
  679. let a3 = e2[t3];
  680. i2.set(a3, n2), n2 += a3.length;
  681. }
  682. return i2;
  683. };
  684. let q = true;
  685. try {
  686. String.fromCharCode.apply(null, new Uint8Array(1));
  687. } catch (e2) {
  688. q = false;
  689. }
  690. const J = new Uint8Array(256);
  691. for (let e2 = 0; e2 < 256; e2++)
  692. J[e2] = e2 >= 252 ? 6 : e2 >= 248 ? 5 : e2 >= 240 ? 4 : e2 >= 224 ? 3 : e2 >= 192 ? 2 : 1;
  693. J[254] = J[254] = 1;
  694. var Q = (e2) => {
  695. if ("function" == typeof TextEncoder && TextEncoder.prototype.encode)
  696. return new TextEncoder().encode(e2);
  697. let t2, i2, n2, a2, r2, o2 = e2.length, s2 = 0;
  698. for (a2 = 0; a2 < o2; a2++)
  699. i2 = e2.charCodeAt(a2), 55296 == (64512 & i2) && a2 + 1 < o2 && (n2 = e2.charCodeAt(a2 + 1), 56320 == (64512 & n2) && (i2 = 65536 + (i2 - 55296 << 10) + (n2 - 56320), a2++)), s2 += i2 < 128 ? 1 : i2 < 2048 ? 2 : i2 < 65536 ? 3 : 4;
  700. for (t2 = new Uint8Array(s2), r2 = 0, a2 = 0; r2 < s2; a2++)
  701. i2 = e2.charCodeAt(a2), 55296 == (64512 & i2) && a2 + 1 < o2 && (n2 = e2.charCodeAt(a2 + 1), 56320 == (64512 & n2) && (i2 = 65536 + (i2 - 55296 << 10) + (n2 - 56320), a2++)), i2 < 128 ? t2[r2++] = i2 : i2 < 2048 ? (t2[r2++] = 192 | i2 >>> 6, t2[r2++] = 128 | 63 & i2) : i2 < 65536 ? (t2[r2++] = 224 | i2 >>> 12, t2[r2++] = 128 | i2 >>> 6 & 63, t2[r2++] = 128 | 63 & i2) : (t2[r2++] = 240 | i2 >>> 18, t2[r2++] = 128 | i2 >>> 12 & 63, t2[r2++] = 128 | i2 >>> 6 & 63, t2[r2++] = 128 | 63 & i2);
  702. return t2;
  703. }, V = (e2, t2) => {
  704. const i2 = t2 || e2.length;
  705. if ("function" == typeof TextDecoder && TextDecoder.prototype.decode)
  706. return new TextDecoder().decode(e2.subarray(0, t2));
  707. let n2, a2;
  708. const r2 = new Array(2 * i2);
  709. for (a2 = 0, n2 = 0; n2 < i2; ) {
  710. let t3 = e2[n2++];
  711. if (t3 < 128) {
  712. r2[a2++] = t3;
  713. continue;
  714. }
  715. let o2 = J[t3];
  716. if (o2 > 4)
  717. r2[a2++] = 65533, n2 += o2 - 1;
  718. else {
  719. for (t3 &= 2 === o2 ? 31 : 3 === o2 ? 15 : 7; o2 > 1 && n2 < i2; )
  720. t3 = t3 << 6 | 63 & e2[n2++], o2--;
  721. o2 > 1 ? r2[a2++] = 65533 : t3 < 65536 ? r2[a2++] = t3 : (t3 -= 65536, r2[a2++] = 55296 | t3 >> 10 & 1023, r2[a2++] = 56320 | 1023 & t3);
  722. }
  723. }
  724. return ((e3, t3) => {
  725. if (t3 < 65534 && e3.subarray && q)
  726. return String.fromCharCode.apply(null, e3.length === t3 ? e3 : e3.subarray(0, t3));
  727. let i3 = "";
  728. for (let n3 = 0; n3 < t3; n3++)
  729. i3 += String.fromCharCode(e3[n3]);
  730. return i3;
  731. })(r2, a2);
  732. }, $ = (e2, t2) => {
  733. (t2 = t2 || e2.length) > e2.length && (t2 = e2.length);
  734. let i2 = t2 - 1;
  735. for (; i2 >= 0 && 128 == (192 & e2[i2]); )
  736. i2--;
  737. return i2 < 0 || 0 === i2 ? t2 : i2 + J[e2[i2]] > t2 ? i2 : t2;
  738. }, ee = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
  739. var te = function() {
  740. this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
  741. };
  742. var ie = function() {
  743. this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = false;
  744. };
  745. const ne = Object.prototype.toString, { Z_NO_FLUSH: ae, Z_FINISH: re, Z_OK: oe, Z_STREAM_END: se, Z_NEED_DICT: le, Z_STREAM_ERROR: de, Z_DATA_ERROR: fe, Z_MEM_ERROR: ce } = h;
  746. function he(e2) {
  747. this.options = X({ chunkSize: 65536, windowBits: 15, to: "" }, e2 || {});
  748. const t2 = this.options;
  749. t2.raw && t2.windowBits >= 0 && t2.windowBits < 16 && (t2.windowBits = -t2.windowBits, 0 === t2.windowBits && (t2.windowBits = -15)), !(t2.windowBits >= 0 && t2.windowBits < 16) || e2 && e2.windowBits || (t2.windowBits += 32), t2.windowBits > 15 && t2.windowBits < 48 && 0 == (15 & t2.windowBits) && (t2.windowBits |= 15), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new te(), this.strm.avail_out = 0;
  750. let i2 = Y.inflateInit2(this.strm, t2.windowBits);
  751. if (i2 !== oe)
  752. throw new Error(ee[i2]);
  753. if (this.header = new ie(), Y.inflateGetHeader(this.strm, this.header), t2.dictionary && ("string" == typeof t2.dictionary ? t2.dictionary = Q(t2.dictionary) : "[object ArrayBuffer]" === ne.call(t2.dictionary) && (t2.dictionary = new Uint8Array(t2.dictionary)), t2.raw && (i2 = Y.inflateSetDictionary(this.strm, t2.dictionary), i2 !== oe)))
  754. throw new Error(ee[i2]);
  755. }
  756. function ue(e2, t2) {
  757. const i2 = new he(t2);
  758. if (i2.push(e2), i2.err)
  759. throw i2.msg || ee[i2.err];
  760. return i2.result;
  761. }
  762. he.prototype.push = function(e2, t2) {
  763. const i2 = this.strm, n2 = this.options.chunkSize, a2 = this.options.dictionary;
  764. let r2, o2, s2;
  765. if (this.ended)
  766. return false;
  767. for (o2 = t2 === ~~t2 ? t2 : true === t2 ? re : ae, "[object ArrayBuffer]" === ne.call(e2) ? i2.input = new Uint8Array(e2) : i2.input = e2, i2.next_in = 0, i2.avail_in = i2.input.length; ; ) {
  768. for (0 === i2.avail_out && (i2.output = new Uint8Array(n2), i2.next_out = 0, i2.avail_out = n2), r2 = Y.inflate(i2, o2), r2 === le && a2 && (r2 = Y.inflateSetDictionary(i2, a2), r2 === oe ? r2 = Y.inflate(i2, o2) : r2 === fe && (r2 = le)); i2.avail_in > 0 && r2 === se && i2.state.wrap > 0 && 0 !== e2[i2.next_in]; )
  769. Y.inflateReset(i2), r2 = Y.inflate(i2, o2);
  770. switch (r2) {
  771. case de:
  772. case fe:
  773. case le:
  774. case ce:
  775. return this.onEnd(r2), this.ended = true, false;
  776. }
  777. if (s2 = i2.avail_out, i2.next_out && (0 === i2.avail_out || r2 === se))
  778. if ("string" === this.options.to) {
  779. let e3 = $(i2.output, i2.next_out), t3 = i2.next_out - e3, a3 = V(i2.output, e3);
  780. i2.next_out = t3, i2.avail_out = n2 - t3, t3 && i2.output.set(i2.output.subarray(e3, e3 + t3), 0), this.onData(a3);
  781. } else
  782. this.onData(i2.output.length === i2.next_out ? i2.output : i2.output.subarray(0, i2.next_out));
  783. if (r2 !== oe || 0 !== s2) {
  784. if (r2 === se)
  785. return r2 = Y.inflateEnd(this.strm), this.onEnd(r2), this.ended = true, true;
  786. if (0 === i2.avail_in)
  787. break;
  788. }
  789. }
  790. return true;
  791. }, he.prototype.onData = function(e2) {
  792. this.chunks.push(e2);
  793. }, he.prototype.onEnd = function(e2) {
  794. e2 === oe && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = W(this.chunks)), this.chunks = [], this.err = e2, this.msg = this.strm.msg;
  795. };
  796. var we = he, be = ue, me = function(e2, t2) {
  797. return (t2 = t2 || {}).raw = true, ue(e2, t2);
  798. }, ke = ue, _e = h, ge = { Inflate: we, inflate: be, inflateRaw: me, ungzip: ke, constants: _e };
  799. e.Inflate = we, e.constants = _e, e.default = ge, e.inflate = be, e.inflateRaw = me, e.ungzip = ke, Object.defineProperty(e, "__esModule", { value: true });
  800. });