pako.min.js 77 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341
  1. /*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */ ! function(t, e) {
  2. "object" == typeof exports && "undefined" != typeof module ? e(exports) : "function" == typeof define && define.amd ? define(["exports"], e) : e((t = "undefined" != typeof globalThis ? globalThis : t || self)
  3. .pako = {})
  4. }(this, (function(t) {
  5. "use strict";
  6. function e(t) {
  7. let e = t.length;
  8. for (; --e >= 0;) t[e] = 0
  9. }
  10. const a = 256, i = 286, n = 30, s = 15, r = new Uint8Array([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]), o = new Uint8Array([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]), l = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]), h = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), d = new Array(576);
  11. e(d);
  12. const _ = new Array(60);
  13. e(_);
  14. const f = new Array(512);
  15. e(f);
  16. const c = new Array(256);
  17. e(c);
  18. const u = new Array(29);
  19. e(u);
  20. const w = new Array(n);
  21. function m(t, e, a, i, n) {
  22. this.static_tree = t, this.extra_bits = e, this.extra_base = a, this.elems = i, this.max_length = n, this.has_stree = t && t.length
  23. }
  24. let b, g, p;
  25. function k(t, e) {
  26. this.dyn_tree = t, this.max_code = 0, this.stat_desc = e
  27. }
  28. e(w);
  29. const v = t => t < 256 ? f[t] : f[256 + (t >>> 7)], y = (t, e) => {
  30. t.pending_buf[t.pending++] = 255 & e, t.pending_buf[t.pending++] = e >>> 8 & 255
  31. }, x = (t, e, a) => {
  32. t.bi_valid > 16 - a ? (t.bi_buf |= e << t.bi_valid & 65535, y(t, t.bi_buf), t.bi_buf = e >> 16 - t.bi_valid, t.bi_valid += a - 16) : (t.bi_buf |= e << t.bi_valid & 65535, t.bi_valid += a)
  33. }, z = (t, e, a) => {
  34. x(t, a[2 * e], a[2 * e + 1])
  35. }, A = (t, e) => {
  36. let a = 0;
  37. do {
  38. a |= 1 & t, t >>>= 1, a <<= 1
  39. } while (--e > 0);
  40. return a >>> 1
  41. }, E = (t, e, a) => {
  42. const i = new Array(16);
  43. let n, r, o = 0;
  44. for (n = 1; n <= s; n++) o = o + a[n - 1] << 1, i[n] = o;
  45. for (r = 0; r <= e; r++) {
  46. let e = t[2 * r + 1];
  47. 0 !== e && (t[2 * r] = A(i[e]++, e))
  48. }
  49. }, R = t => {
  50. let e;
  51. for (e = 0; e < i; e++) t.dyn_ltree[2 * e] = 0;
  52. for (e = 0; e < n; e++) t.dyn_dtree[2 * e] = 0;
  53. for (e = 0; e < 19; e++) t.bl_tree[2 * e] = 0;
  54. t.dyn_ltree[512] = 1, t.opt_len = t.static_len = 0, t.sym_next = t.matches = 0
  55. }, Z = t => {
  56. t.bi_valid > 8 ? y(t, t.bi_buf) : t.bi_valid > 0 && (t.pending_buf[t.pending++] = t.bi_buf), t.bi_buf = 0, t.bi_valid = 0
  57. }, U = (t, e, a, i) => {
  58. const n = 2 * e, s = 2 * a;
  59. return t[n] < t[s] || t[n] === t[s] && i[e] <= i[a]
  60. }, S = (t, e, a) => {
  61. const i = t.heap[a];
  62. let n = a << 1;
  63. for (; n <= t.heap_len && (n < t.heap_len && U(e, t.heap[n + 1], t.heap[n], t.depth) && n++, !U(e, i, t.heap[n], t.depth));) t.heap[a] = t.heap[n], a = n, n <<= 1;
  64. t.heap[a] = i
  65. }, D = (t, e, i) => {
  66. let n, s, l, h, d = 0;
  67. if (0 !== t.sym_next) do {
  68. n = 255 & t.pending_buf[t.sym_buf + d++], n += (255 & t.pending_buf[t.sym_buf + d++]) << 8, s = t.pending_buf[t.sym_buf + d++], 0 === n ? z(t, s, e) : (l = c[s], z(t, l + a + 1, e), h = r[l], 0 !== h && (s -= u[l], x(t, s, h)), n--, l = v(n), z(t, l, i), h = o[l], 0 !== h && (n -= w[l], x(t, n, h)))
  69. } while (d < t.sym_next);
  70. z(t, 256, e)
  71. }, T = (t, e) => {
  72. const a = e.dyn_tree, i = e.stat_desc.static_tree, n = e.stat_desc.has_stree, r = e.stat_desc.elems;
  73. let o, l, h, d = -1;
  74. for (t.heap_len = 0, t.heap_max = 573, o = 0; o < r; o++) 0 !== a[2 * o] ? (t.heap[++t.heap_len] = d = o, t.depth[o] = 0) : a[2 * o + 1] = 0;
  75. for (; t.heap_len < 2;) h = t.heap[++t.heap_len] = d < 2 ? ++d : 0, a[2 * h] = 1, t.depth[h] = 0, t.opt_len--, n && (t.static_len -= i[2 * h + 1]);
  76. for (e.max_code = d, o = t.heap_len >> 1; o >= 1; o--) S(t, a, o);
  77. h = r;
  78. do {
  79. o = t.heap[1], t.heap[1] = t.heap[t.heap_len--], S(t, a, 1), l = t.heap[1], t.heap[--t.heap_max] = o, t.heap[--t.heap_max] = l, a[2 * h] = a[2 * o] + a[2 * l], t.depth[h] = (t.depth[o] >= t.depth[l] ? t.depth[o] : t.depth[l]) + 1, a[2 * o + 1] = a[2 * l + 1] = h, t.heap[1] = h++, S(t, a, 1)
  80. } while (t.heap_len >= 2);
  81. t.heap[--t.heap_max] = t.heap[1], ((t, e) => {
  82. const a = e.dyn_tree, i = e.max_code, n = e.stat_desc.static_tree, r = e.stat_desc.has_stree, o = e.stat_desc.extra_bits, l = e.stat_desc.extra_base, h = e.stat_desc.max_length;
  83. let d, _, f, c, u, w, m = 0;
  84. for (c = 0; c <= s; c++) t.bl_count[c] = 0;
  85. for (a[2 * t.heap[t.heap_max] + 1] = 0, d = t.heap_max + 1; d < 573; d++) _ = t.heap[d], c = a[2 * a[2 * _ + 1] + 1] + 1, c > h && (c = h, m++), a[2 * _ + 1] = c, _ > i || (t.bl_count[c]++, u = 0, _ >= l && (u = o[_ - l]), w = a[2 * _], t.opt_len += w * (c + u), r && (t.static_len += w * (n[2 * _ + 1] + u)));
  86. if (0 !== m) {
  87. do {
  88. for (c = h - 1; 0 === t.bl_count[c];) c--;
  89. t.bl_count[c]--, t.bl_count[c + 1] += 2, t.bl_count[h]--, m -= 2
  90. } while (m > 0);
  91. for (c = h; 0 !== c; c--) for (_ = t.bl_count[c]; 0 !== _;) f = t.heap[--d], f > i || (a[2 * f + 1] !== c && (t.opt_len += (c - a[2 * f + 1]) * a[2 * f], a[2 * f + 1] = c), _--)
  92. }
  93. })(t, e), E(a, d, t.bl_count)
  94. }, O = (t, e, a) => {
  95. let i, n, s = -1, r = e[1], o = 0, l = 7, h = 4;
  96. for (0 === r && (l = 138, h = 3), e[2 * (a + 1) + 1] = 65535, i = 0; i <= a; i++) n = r, r = e[2 * (i + 1) + 1], ++o < l && n === r || (o < h ? t.bl_tree[2 * n] += o : 0 !== n ? (n !== s && t.bl_tree[2 * n]++, t.bl_tree[32]++) : o <= 10 ? t.bl_tree[34]++ : t.bl_tree[36]++, o = 0, s = n, 0 === r ? (l = 138, h = 3) : n === r ? (l = 6, h = 3) : (l = 7, h = 4))
  97. }, I = (t, e, a) => {
  98. let i, n, s = -1, r = e[1], o = 0, l = 7, h = 4;
  99. for (0 === r && (l = 138, h = 3), i = 0; i <= a; i++) if (n = r, r = e[2 * (i + 1) + 1], !(++o < l && n === r)) {
  100. if (o < h) do {
  101. z(t, n, t.bl_tree)
  102. } while (0 != --o);
  103. else 0 !== n ? (n !== s && (z(t, n, t.bl_tree), o--), z(t, 16, t.bl_tree), x(t, o - 3, 2)) : o <= 10 ? (z(t, 17, t.bl_tree), x(t, o - 3, 3)) : (z(t, 18, t.bl_tree), x(t, o - 11, 7));
  104. o = 0, s = n, 0 === r ? (l = 138, h = 3) : n === r ? (l = 6, h = 3) : (l = 7, h = 4)
  105. }
  106. };
  107. let F = !1;
  108. const L = (t, e, a, i) => {
  109. x(t, 0 + (i ? 1 : 0), 3), Z(t), y(t, a), y(t, ~a), a && t.pending_buf.set(t.window.subarray(e, e + a), t.pending), t.pending += a
  110. };
  111. var N = (t, e, i, n) => {
  112. let s, r, o = 0;
  113. t.level > 0 ? (2 === t.strm.data_type && (t.strm.data_type = (t => {
  114. let e, i = 4093624447;
  115. for (e = 0; e <= 31; e++, i >>>= 1) if (1 & i && 0 !== t.dyn_ltree[2 * e]) return 0;
  116. if (0 !== t.dyn_ltree[18] || 0 !== t.dyn_ltree[20] || 0 !== t.dyn_ltree[26]) return 1;
  117. for (e = 32; e < a; e++) if (0 !== t.dyn_ltree[2 * e]) return 1;
  118. return 0
  119. })(t)), T(t, t.l_desc), T(t, t.d_desc), o = (t => {
  120. let e;
  121. for (O(t, t.dyn_ltree, t.l_desc.max_code), O(t, t.dyn_dtree, t.d_desc.max_code), T(t, t.bl_desc), e = 18; e >= 3 && 0 === t.bl_tree[2 * h[e] + 1]; e--);
  122. return t.opt_len += 3 * (e + 1) + 5 + 5 + 4, e
  123. })(t), s = t.opt_len + 3 + 7 >>> 3, r = t.static_len + 3 + 7 >>> 3, r <= s && (s = r)) : s = r = i + 5, i + 4 <= s && -1 !== e ? L(t, e, i, n) : 4 === t.strategy || r === s ? (x(t, 2 + (n ? 1 : 0), 3), D(t, d, _)) : (x(t, 4 + (n ? 1 : 0), 3), ((t, e, a, i) => {
  124. let n;
  125. for (x(t, e - 257, 5), x(t, a - 1, 5), x(t, i - 4, 4), n = 0; n < i; n++) x(t, t.bl_tree[2 * h[n] + 1], 3);
  126. I(t, t.dyn_ltree, e - 1), I(t, t.dyn_dtree, a - 1)
  127. })(t, t.l_desc.max_code + 1, t.d_desc.max_code + 1, o + 1), D(t, t.dyn_ltree, t.dyn_dtree)), R(t), n && Z(t)
  128. }, B = {
  129. _tr_init: t => {
  130. F || ((() => {
  131. let t, e, a, h, k;
  132. const v = new Array(16);
  133. for (a = 0, h = 0; h < 28; h++) for (u[h] = a, t = 0; t < 1 << r[h]; t++) c[a++] = h;
  134. for (c[a - 1] = h, k = 0, h = 0; h < 16; h++) for (w[h] = k, t = 0; t < 1 << o[h]; t++) f[k++] = h;
  135. for (k >>= 7; h < n; h++) for (w[h] = k << 7, t = 0; t < 1 << o[h] - 7; t++) f[256 + k++] = h;
  136. for (e = 0; e <= s; e++) v[e] = 0;
  137. for (t = 0; t <= 143;) d[2 * t + 1] = 8, t++, v[8]++;
  138. for (; t <= 255;) d[2 * t + 1] = 9, t++, v[9]++;
  139. for (; t <= 279;) d[2 * t + 1] = 7, t++, v[7]++;
  140. for (; t <= 287;) d[2 * t + 1] = 8, t++, v[8]++;
  141. for (E(d, 287, v), t = 0; t < n; t++) _[2 * t + 1] = 5, _[2 * t] = A(t, 5);
  142. b = new m(d, r, 257, i, s), g = new m(_, o, 0, n, s), p = new m(new Array(0), l, 0, 19, 7)
  143. })(), F = !0), t.l_desc = new k(t.dyn_ltree, b), t.d_desc = new k(t.dyn_dtree, g), t.bl_desc = new k(t.bl_tree, p), t.bi_buf = 0, t.bi_valid = 0, R(t)
  144. },
  145. _tr_stored_block: L,
  146. _tr_flush_block: N,
  147. _tr_tally: (t, e, i) => (t.pending_buf[t.sym_buf + t.sym_next++] = e, t.pending_buf[t.sym_buf + t.sym_next++] = e >> 8, t.pending_buf[t.sym_buf + t.sym_next++] = i, 0 === e ? t.dyn_ltree[2 * i]++ : (t.matches++, e--, t.dyn_ltree[2 * (c[i] + a + 1)]++, t.dyn_dtree[2 * v(e)]++), t.sym_next === t.sym_end),
  148. _tr_align: t => {
  149. x(t, 2, 3), z(t, 256, d), (t => {
  150. 16 === t.bi_valid ? (y(t, t.bi_buf), t.bi_buf = 0, t.bi_valid = 0) : t.bi_valid >= 8 && (t.pending_buf[t.pending++] = 255 & t.bi_buf, t.bi_buf >>= 8, t.bi_valid -= 8)
  151. })(t)
  152. }
  153. };
  154. var C = (t, e, a, i) => {
  155. let n = 65535 & t | 0, s = t >>> 16 & 65535 | 0, r = 0;
  156. for (; 0 !== a;) {
  157. r = a > 2e3 ? 2e3 : a, a -= r;
  158. do {
  159. n = n + e[i++] | 0, s = s + n | 0
  160. } while (--r);
  161. n %= 65521, s %= 65521
  162. }
  163. return n | s << 16 | 0
  164. };
  165. const M = new Uint32Array((() => {
  166. let t, e = [];
  167. for (var a = 0; a < 256; a++) {
  168. t = a;
  169. for (var i = 0; i < 8; i++) t = 1 & t ? 3988292384 ^ t >>> 1 : t >>> 1;
  170. e[a] = t
  171. }
  172. return e
  173. })());
  174. var H = (t, e, a, i) => {
  175. const n = M, s = i + a;
  176. t ^= -1;
  177. for (let a = i; a < s; a++) t = t >>> 8 ^ n[255 & (t ^ e[a])];
  178. return -1 ^ t
  179. }, j = {
  180. 2: "need dictionary",
  181. 1: "stream end",
  182. 0: "",
  183. "-1": "file error",
  184. "-2": "stream error",
  185. "-3": "data error",
  186. "-4": "insufficient memory",
  187. "-5": "buffer error",
  188. "-6": "incompatible version"
  189. }, K = {
  190. Z_NO_FLUSH: 0,
  191. Z_PARTIAL_FLUSH: 1,
  192. Z_SYNC_FLUSH: 2,
  193. Z_FULL_FLUSH: 3,
  194. Z_FINISH: 4,
  195. Z_BLOCK: 5,
  196. Z_TREES: 6,
  197. Z_OK: 0,
  198. Z_STREAM_END: 1,
  199. Z_NEED_DICT: 2,
  200. Z_ERRNO: -1,
  201. Z_STREAM_ERROR: -2,
  202. Z_DATA_ERROR: -3,
  203. Z_MEM_ERROR: -4,
  204. Z_BUF_ERROR: -5,
  205. Z_NO_COMPRESSION: 0,
  206. Z_BEST_SPEED: 1,
  207. Z_BEST_COMPRESSION: 9,
  208. Z_DEFAULT_COMPRESSION: -1,
  209. Z_FILTERED: 1,
  210. Z_HUFFMAN_ONLY: 2,
  211. Z_RLE: 3,
  212. Z_FIXED: 4,
  213. Z_DEFAULT_STRATEGY: 0,
  214. Z_BINARY: 0,
  215. Z_TEXT: 1,
  216. Z_UNKNOWN: 2,
  217. Z_DEFLATED: 8
  218. };
  219. const {
  220. _tr_init: P,
  221. _tr_stored_block: Y,
  222. _tr_flush_block: G,
  223. _tr_tally: X,
  224. _tr_align: W
  225. } = B, {
  226. Z_NO_FLUSH: q,
  227. Z_PARTIAL_FLUSH: J,
  228. Z_FULL_FLUSH: Q,
  229. Z_FINISH: V,
  230. Z_BLOCK: $,
  231. Z_OK: tt,
  232. Z_STREAM_END: et,
  233. Z_STREAM_ERROR: at,
  234. Z_DATA_ERROR: it,
  235. Z_BUF_ERROR: nt,
  236. Z_DEFAULT_COMPRESSION: st,
  237. Z_FILTERED: rt,
  238. Z_HUFFMAN_ONLY: ot,
  239. Z_RLE: lt,
  240. Z_FIXED: ht,
  241. Z_DEFAULT_STRATEGY: dt,
  242. Z_UNKNOWN: _t,
  243. Z_DEFLATED: ft
  244. } = K, ct = 258, ut = 262, wt = 42, mt = 113, bt = 666, gt = (t, e) => (t.msg = j[e], e), pt = t => 2 * t - (t > 4 ? 9 : 0), kt = t => {
  245. let e = t.length;
  246. for (; --e >= 0;) t[e] = 0
  247. }, vt = t => {
  248. let e, a, i, n = t.w_size;
  249. e = t.hash_size, i = e;
  250. do {
  251. a = t.head[--i], t.head[i] = a >= n ? a - n : 0
  252. } while (--e);
  253. e = n, i = e;
  254. do {
  255. a = t.prev[--i], t.prev[i] = a >= n ? a - n : 0
  256. } while (--e)
  257. };
  258. let yt = (t, e, a) => (e << t.hash_shift ^ a) & t.hash_mask;
  259. const xt = t => {
  260. const e = t.state;
  261. let a = e.pending;
  262. a > t.avail_out && (a = t.avail_out), 0 !== a && (t.output.set(e.pending_buf.subarray(e.pending_out, e.pending_out + a), t.next_out), t.next_out += a, e.pending_out += a, t.total_out += a, t.avail_out -= a, e.pending -= a, 0 === e.pending && (e.pending_out = 0))
  263. }, zt = (t, e) => {
  264. G(t, t.block_start >= 0 ? t.block_start : -1, t.strstart - t.block_start, e), t.block_start = t.strstart, xt(t.strm)
  265. }, At = (t, e) => {
  266. t.pending_buf[t.pending++] = e
  267. }, Et = (t, e) => {
  268. t.pending_buf[t.pending++] = e >>> 8 & 255, t.pending_buf[t.pending++] = 255 & e
  269. }, Rt = (t, e, a, i) => {
  270. let n = t.avail_in;
  271. return n > i && (n = i), 0 === n ? 0 : (t.avail_in -= n, e.set(t.input.subarray(t.next_in, t.next_in + n), a), 1 === t.state.wrap ? t.adler = C(t.adler, e, n, a) : 2 === t.state.wrap && (t.adler = H(t.adler, e, n, a)), t.next_in += n, t.total_in += n, n)
  272. }, Zt = (t, e) => {
  273. let a, i, n = t.max_chain_length, s = t.strstart, r = t.prev_length, o = t.nice_match;
  274. const l = t.strstart > t.w_size - ut ? t.strstart - (t.w_size - ut) : 0, h = t.window, d = t.w_mask, _ = t.prev, f = t.strstart + ct;
  275. let c = h[s + r - 1], u = h[s + r];
  276. t.prev_length >= t.good_match && (n >>= 2), o > t.lookahead && (o = t.lookahead);
  277. do {
  278. if (a = e, h[a + r] === u && h[a + r - 1] === c && h[a] === h[s] && h[++a] === h[s + 1]) {
  279. s += 2, a++;
  280. do {} while (h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && s < f);
  281. if (i = ct - (f - s), s = f - ct, i > r) {
  282. if (t.match_start = e, r = i, i >= o) break;
  283. c = h[s + r - 1], u = h[s + r]
  284. }
  285. }
  286. } while ((e = _[e & d]) > l && 0 != --n);
  287. return r <= t.lookahead ? r : t.lookahead
  288. }, Ut = t => {
  289. const e = t.w_size;
  290. let a, i, n;
  291. do {
  292. if (i = t.window_size - t.lookahead - t.strstart, t.strstart >= e + (e - ut) && (t.window.set(t.window.subarray(e, e + e - i), 0), t.match_start -= e, t.strstart -= e, t.block_start -= e, t.insert > t.strstart && (t.insert = t.strstart), vt(t), i += e), 0 === t.strm.avail_in) break;
  293. if (a = Rt(t.strm, t.window, t.strstart + t.lookahead, i), t.lookahead += a, t.lookahead + t.insert >= 3) for (n = t.strstart - t.insert, t.ins_h = t.window[n], t.ins_h = yt(t, t.ins_h, t.window[n + 1]); t.insert && (t.ins_h = yt(t, t.ins_h, t.window[n + 3 - 1]), t.prev[n & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = n, n++, t.insert--, !(t.lookahead + t.insert < 3)););
  294. } while (t.lookahead < ut && 0 !== t.strm.avail_in)
  295. }, St = (t, e) => {
  296. let a, i, n, s = t.pending_buf_size - 5 > t.w_size ? t.w_size : t.pending_buf_size - 5, r = 0, o = t.strm.avail_in;
  297. do {
  298. if (a = 65535, n = t.bi_valid + 42 >> 3, t.strm.avail_out < n) break;
  299. if (n = t.strm.avail_out - n, i = t.strstart - t.block_start, a > i + t.strm.avail_in && (a = i + t.strm.avail_in), a > n && (a = n), a < s && (0 === a && e !== V || e === q || a !== i + t.strm.avail_in)) break;
  300. r = e === V && a === i + t.strm.avail_in ? 1 : 0, Y(t, 0, 0, r), t.pending_buf[t.pending - 4] = a, t.pending_buf[t.pending - 3] = a >> 8, t.pending_buf[t.pending - 2] = ~a, t.pending_buf[t.pending - 1] = ~a >> 8, xt(t.strm), i && (i > a && (i = a), t.strm.output.set(t.window.subarray(t.block_start, t.block_start + i), t.strm.next_out), t.strm.next_out += i, t.strm.avail_out -= i, t.strm.total_out += i, t.block_start += i, a -= i), a && (Rt(t.strm, t.strm.output, t.strm.next_out, a), t.strm.next_out += a, t.strm.avail_out -= a, t.strm.total_out += a)
  301. } while (0 === r);
  302. return o -= t.strm.avail_in, o && (o >= t.w_size ? (t.matches = 2, t.window.set(t.strm.input.subarray(t.strm.next_in - t.w_size, t.strm.next_in), 0), t.strstart = t.w_size, t.insert = t.strstart) : (t.window_size - t.strstart <= o && (t.strstart -= t.w_size, t.window.set(t.window.subarray(t.w_size, t.w_size + t.strstart), 0), t.matches < 2 && t.matches++, t.insert > t.strstart && (t.insert = t.strstart)), t.window.set(t.strm.input.subarray(t.strm.next_in - o, t.strm.next_in), t.strstart), t.strstart += o, t.insert += o > t.w_size - t.insert ? t.w_size - t.insert : o), t.block_start = t.strstart), t.high_water < t.strstart && (t.high_water = t.strstart), r ? 4 : e !== q && e !== V && 0 === t.strm.avail_in && t.strstart === t.block_start ? 2 : (n = t.window_size - t.strstart, t.strm.avail_in > n && t.block_start >= t.w_size && (t.block_start -= t.w_size, t.strstart -= t.w_size, t.window.set(t.window.subarray(t.w_size, t.w_size + t.strstart), 0), t.matches < 2 && t.matches++, n += t.w_size, t.insert > t.strstart && (t.insert = t.strstart)), n > t.strm.avail_in && (n = t.strm.avail_in), n && (Rt(t.strm, t.window, t.strstart, n), t.strstart += n, t.insert += n > t.w_size - t.insert ? t.w_size - t.insert : n), t.high_water < t.strstart && (t.high_water = t.strstart), n = t.bi_valid + 42 >> 3, n = t.pending_buf_size - n > 65535 ? 65535 : t.pending_buf_size - n, s = n > t.w_size ? t.w_size : n, i = t.strstart - t.block_start, (i >= s || (i || e === V) && e !== q && 0 === t.strm.avail_in && i <= n) && (a = i > n ? n : i, r = e === V && 0 === t.strm.avail_in && a === i ? 1 : 0, Y(t, t.block_start, a, r), t.block_start += a, xt(t.strm)), r ? 3 : 1)
  303. }, Dt = (t, e) => {
  304. let a, i;
  305. for (;;) {
  306. if (t.lookahead < ut) {
  307. if (Ut(t), t.lookahead < ut && e === q) return 1;
  308. if (0 === t.lookahead) break
  309. }
  310. if (a = 0, t.lookahead >= 3 && (t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 3 - 1]), a = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), 0 !== a && t.strstart - a <= t.w_size - ut && (t.match_length = Zt(t, a)), t.match_length >= 3) if (i = X(t, t.strstart - t.match_start, t.match_length - 3), t.lookahead -= t.match_length, t.match_length <= t.max_lazy_match && t.lookahead >= 3) {
  311. t.match_length--;
  312. do {
  313. t.strstart++, t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 3 - 1]), a = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart
  314. } while (0 != --t.match_length);
  315. t.strstart++
  316. } else t.strstart += t.match_length, t.match_length = 0, t.ins_h = t.window[t.strstart], t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 1]);
  317. else i = X(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++;
  318. if (i && (zt(t, !1), 0 === t.strm.avail_out)) return 1
  319. }
  320. return t.insert = t.strstart < 2 ? t.strstart : 2, e === V ? (zt(t, !0), 0 === t.strm.avail_out ? 3 : 4) : t.sym_next && (zt(t, !1), 0 === t.strm.avail_out) ? 1 : 2
  321. }, Tt = (t, e) => {
  322. let a, i, n;
  323. for (;;) {
  324. if (t.lookahead < ut) {
  325. if (Ut(t), t.lookahead < ut && e === q) return 1;
  326. if (0 === t.lookahead) break
  327. }
  328. if (a = 0, t.lookahead >= 3 && (t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 3 - 1]), a = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), t.prev_length = t.match_length, t.prev_match = t.match_start, t.match_length = 2, 0 !== a && t.prev_length < t.max_lazy_match && t.strstart - a <= t.w_size - ut && (t.match_length = Zt(t, a), t.match_length <= 5 && (t.strategy === rt || 3 === t.match_length && t.strstart - t.match_start > 4096) && (t.match_length = 2)), t.prev_length >= 3 && t.match_length <= t.prev_length) {
  329. n = t.strstart + t.lookahead - 3, i = X(t, t.strstart - 1 - t.prev_match, t.prev_length - 3), t.lookahead -= t.prev_length - 1, t.prev_length -= 2;
  330. do {++t.strstart <= n && (t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 3 - 1]), a = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart)
  331. } while (0 != --t.prev_length);
  332. if (t.match_available = 0, t.match_length = 2, t.strstart++, i && (zt(t, !1), 0 === t.strm.avail_out)) return 1
  333. } else if (t.match_available) {
  334. if (i = X(t, 0, t.window[t.strstart - 1]), i && zt(t, !1), t.strstart++, t.lookahead--, 0 === t.strm.avail_out) return 1
  335. } else t.match_available = 1, t.strstart++, t.lookahead--
  336. }
  337. return t.match_available && (i = X(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < 2 ? t.strstart : 2, e === V ? (zt(t, !0), 0 === t.strm.avail_out ? 3 : 4) : t.sym_next && (zt(t, !1), 0 === t.strm.avail_out) ? 1 : 2
  338. };
  339. function Ot(t, e, a, i, n) {
  340. this.good_length = t, this.max_lazy = e, this.nice_length = a, this.max_chain = i, this.func = n
  341. }
  342. const It = [new Ot(0, 0, 0, 0, St), new Ot(4, 4, 8, 4, Dt), new Ot(4, 5, 16, 8, Dt), new Ot(4, 6, 32, 32, Dt), new Ot(4, 4, 16, 16, Tt), new Ot(8, 16, 32, 32, Tt), new Ot(8, 16, 128, 128, Tt), new Ot(8, 32, 128, 256, Tt), new Ot(32, 128, 258, 1024, Tt), new Ot(32, 258, 258, 4096, Tt)];
  343. function Ft() {
  344. this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = ft, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(1146), this.dyn_dtree = new Uint16Array(122), this.bl_tree = new Uint16Array(78), kt(this.dyn_ltree), kt(this.dyn_dtree), kt(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(16), this.heap = new Uint16Array(573), kt(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(573), kt(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0
  345. }
  346. const Lt = t => {
  347. if (!t) return 1;
  348. const e = t.state;
  349. return !e || e.strm !== t || e.status !== wt && 57 !== e.status && 69 !== e.status && 73 !== e.status && 91 !== e.status && 103 !== e.status && e.status !== mt && e.status !== bt ? 1 : 0
  350. }, Nt = t => {
  351. if (Lt(t)) return gt(t, at);
  352. t.total_in = t.total_out = 0, t.data_type = _t;
  353. const e = t.state;
  354. return e.pending = 0, e.pending_out = 0, e.wrap < 0 && (e.wrap = -e.wrap), e.status = 2 === e.wrap ? 57 : e.wrap ? wt : mt, t.adler = 2 === e.wrap ? 0 : 1, e.last_flush = -2, P(e), tt
  355. }, Bt = t => {
  356. const e = Nt(t);
  357. var a;
  358. return e === tt && ((a = t.state)
  359. .window_size = 2 * a.w_size, kt(a.head), a.max_lazy_match = It[a.level].max_lazy, a.good_match = It[a.level].good_length, a.nice_match = It[a.level].nice_length, a.max_chain_length = It[a.level].max_chain, a.strstart = 0, a.block_start = 0, a.lookahead = 0, a.insert = 0, a.match_length = a.prev_length = 2, a.match_available = 0, a.ins_h = 0), e
  360. }, Ct = (t, e, a, i, n, s) => {
  361. if (!t) return at;
  362. let r = 1;
  363. if (e === st && (e = 6), i < 0 ? (r = 0, i = -i) : i > 15 && (r = 2, i -= 16), n < 1 || n > 9 || a !== ft || i < 8 || i > 15 || e < 0 || e > 9 || s < 0 || s > ht || 8 === i && 1 !== r) return gt(t, at);
  364. 8 === i && (i = 9);
  365. const o = new Ft;
  366. return t.state = o, o.strm = t, o.status = wt, o.wrap = r, o.gzhead = null, o.w_bits = i, o.w_size = 1 << o.w_bits, o.w_mask = o.w_size - 1, o.hash_bits = n + 7, o.hash_size = 1 << o.hash_bits, o.hash_mask = o.hash_size - 1, o.hash_shift = ~~ ((o.hash_bits + 3 - 1) / 3), o.window = new Uint8Array(2 * o.w_size), o.head = new Uint16Array(o.hash_size), o.prev = new Uint16Array(o.w_size), o.lit_bufsize = 1 << n + 6, o.pending_buf_size = 4 * o.lit_bufsize, o.pending_buf = new Uint8Array(o.pending_buf_size), o.sym_buf = o.lit_bufsize, o.sym_end = 3 * (o.lit_bufsize - 1), o.level = e, o.strategy = s, o.method = a, Bt(t)
  367. };
  368. var Mt = {
  369. deflateInit: (t, e) => Ct(t, e, ft, 15, 8, dt),
  370. deflateInit2: Ct,
  371. deflateReset: Bt,
  372. deflateResetKeep: Nt,
  373. deflateSetHeader: (t, e) => Lt(t) || 2 !== t.state.wrap ? at : (t.state.gzhead = e, tt),
  374. deflate: (t, e) => {
  375. if (Lt(t) || e > $ || e < 0) return t ? gt(t, at) : at;
  376. const a = t.state;
  377. if (!t.output || 0 !== t.avail_in && !t.input || a.status === bt && e !== V) return gt(t, 0 === t.avail_out ? nt : at);
  378. const i = a.last_flush;
  379. if (a.last_flush = e, 0 !== a.pending) {
  380. if (xt(t), 0 === t.avail_out) return a.last_flush = -1, tt
  381. } else if (0 === t.avail_in && pt(e) <= pt(i) && e !== V) return gt(t, nt);
  382. if (a.status === bt && 0 !== t.avail_in) return gt(t, nt);
  383. if (a.status === wt && 0 === a.wrap && (a.status = mt), a.status === wt) {
  384. let e = ft + (a.w_bits - 8 << 4) << 8, i = -1;
  385. if (i = a.strategy >= ot || a.level < 2 ? 0 : a.level < 6 ? 1 : 6 === a.level ? 2 : 3, e |= i << 6, 0 !== a.strstart && (e |= 32), e += 31 - e % 31, Et(a, e), 0 !== a.strstart && (Et(a, t.adler >>> 16), Et(a, 65535 & t.adler)), t.adler = 1, a.status = mt, xt(t), 0 !== a.pending) return a.last_flush = -1, tt
  386. }
  387. if (57 === a.status) if (t.adler = 0, At(a, 31), At(a, 139), At(a, 8), a.gzhead) At(a, (a.gzhead.text ? 1 : 0) + (a.gzhead.hcrc ? 2 : 0) + (a.gzhead.extra ? 4 : 0) + (a.gzhead.name ? 8 : 0) + (a.gzhead.comment ? 16 : 0)), At(a, 255 & a.gzhead.time), At(a, a.gzhead.time >> 8 & 255), At(a, a.gzhead.time >> 16 & 255), At(a, a.gzhead.time >> 24 & 255), At(a, 9 === a.level ? 2 : a.strategy >= ot || a.level < 2 ? 4 : 0), At(a, 255 & a.gzhead.os), a.gzhead.extra && a.gzhead.extra.length && (At(a, 255 & a.gzhead.extra.length), At(a, a.gzhead.extra.length >> 8 & 255)), a.gzhead.hcrc && (t.adler = H(t.adler, a.pending_buf, a.pending, 0)), a.gzindex = 0, a.status = 69;
  388. else if (At(a, 0), At(a, 0), At(a, 0), At(a, 0), At(a, 0), At(a, 9 === a.level ? 2 : a.strategy >= ot || a.level < 2 ? 4 : 0), At(a, 3), a.status = mt, xt(t), 0 !== a.pending) return a.last_flush = -1, tt;
  389. if (69 === a.status) {
  390. if (a.gzhead.extra) {
  391. let e = a.pending, i = (65535 & a.gzhead.extra.length) - a.gzindex;
  392. for (; a.pending + i > a.pending_buf_size;) {
  393. let n = a.pending_buf_size - a.pending;
  394. if (a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex, a.gzindex + n), a.pending), a.pending = a.pending_buf_size, a.gzhead.hcrc && a.pending > e && (t.adler = H(t.adler, a.pending_buf, a.pending - e, e)), a.gzindex += n, xt(t), 0 !== a.pending) return a.last_flush = -1, tt;
  395. e = 0, i -= n
  396. }
  397. let n = new Uint8Array(a.gzhead.extra);
  398. a.pending_buf.set(n.subarray(a.gzindex, a.gzindex + i), a.pending), a.pending += i, a.gzhead.hcrc && a.pending > e && (t.adler = H(t.adler, a.pending_buf, a.pending - e, e)), a.gzindex = 0
  399. }
  400. a.status = 73
  401. }
  402. if (73 === a.status) {
  403. if (a.gzhead.name) {
  404. let e, i = a.pending;
  405. do {
  406. if (a.pending === a.pending_buf_size) {
  407. if (a.gzhead.hcrc && a.pending > i && (t.adler = H(t.adler, a.pending_buf, a.pending - i, i)), xt(t), 0 !== a.pending) return a.last_flush = -1, tt;
  408. i = 0
  409. }
  410. e = a.gzindex < a.gzhead.name.length ? 255 & a.gzhead.name.charCodeAt(a.gzindex++) : 0, At(a, e)
  411. } while (0 !== e);
  412. a.gzhead.hcrc && a.pending > i && (t.adler = H(t.adler, a.pending_buf, a.pending - i, i)), a.gzindex = 0
  413. }
  414. a.status = 91
  415. }
  416. if (91 === a.status) {
  417. if (a.gzhead.comment) {
  418. let e, i = a.pending;
  419. do {
  420. if (a.pending === a.pending_buf_size) {
  421. if (a.gzhead.hcrc && a.pending > i && (t.adler = H(t.adler, a.pending_buf, a.pending - i, i)), xt(t), 0 !== a.pending) return a.last_flush = -1, tt;
  422. i = 0
  423. }
  424. e = a.gzindex < a.gzhead.comment.length ? 255 & a.gzhead.comment.charCodeAt(a.gzindex++) : 0, At(a, e)
  425. } while (0 !== e);
  426. a.gzhead.hcrc && a.pending > i && (t.adler = H(t.adler, a.pending_buf, a.pending - i, i))
  427. }
  428. a.status = 103
  429. }
  430. if (103 === a.status) {
  431. if (a.gzhead.hcrc) {
  432. if (a.pending + 2 > a.pending_buf_size && (xt(t), 0 !== a.pending)) return a.last_flush = -1, tt;
  433. At(a, 255 & t.adler), At(a, t.adler >> 8 & 255), t.adler = 0
  434. }
  435. if (a.status = mt, xt(t), 0 !== a.pending) return a.last_flush = -1, tt
  436. }
  437. if (0 !== t.avail_in || 0 !== a.lookahead || e !== q && a.status !== bt) {
  438. let i = 0 === a.level ? St(a, e) : a.strategy === ot ? ((t, e) => {
  439. let a;
  440. for (;;) {
  441. if (0 === t.lookahead && (Ut(t), 0 === t.lookahead)) {
  442. if (e === q) return 1;
  443. break
  444. }
  445. if (t.match_length = 0, a = X(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++, a && (zt(t, !1), 0 === t.strm.avail_out)) return 1
  446. }
  447. return t.insert = 0, e === V ? (zt(t, !0), 0 === t.strm.avail_out ? 3 : 4) : t.sym_next && (zt(t, !1), 0 === t.strm.avail_out) ? 1 : 2
  448. })(a, e) : a.strategy === lt ? ((t, e) => {
  449. let a, i, n, s;
  450. const r = t.window;
  451. for (;;) {
  452. if (t.lookahead <= ct) {
  453. if (Ut(t), t.lookahead <= ct && e === q) return 1;
  454. if (0 === t.lookahead) break
  455. }
  456. if (t.match_length = 0, t.lookahead >= 3 && t.strstart > 0 && (n = t.strstart - 1, i = r[n], i === r[++n] && i === r[++n] && i === r[++n])) {
  457. s = t.strstart + ct;
  458. do {} while (i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && n < s);
  459. t.match_length = ct - (s - n), t.match_length > t.lookahead && (t.match_length = t.lookahead)
  460. }
  461. if (t.match_length >= 3 ? (a = X(t, 1, t.match_length - 3), t.lookahead -= t.match_length, t.strstart += t.match_length, t.match_length = 0) : (a = X(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++), a && (zt(t, !1), 0 === t.strm.avail_out)) return 1
  462. }
  463. return t.insert = 0, e === V ? (zt(t, !0), 0 === t.strm.avail_out ? 3 : 4) : t.sym_next && (zt(t, !1), 0 === t.strm.avail_out) ? 1 : 2
  464. })(a, e) : It[a.level].func(a, e);
  465. if (3 !== i && 4 !== i || (a.status = bt), 1 === i || 3 === i) return 0 === t.avail_out && (a.last_flush = -1), tt;
  466. if (2 === i && (e === J ? W(a) : e !== $ && (Y(a, 0, 0, !1), e === Q && (kt(a.head), 0 === a.lookahead && (a.strstart = 0, a.block_start = 0, a.insert = 0))), xt(t), 0 === t.avail_out)) return a.last_flush = -1, tt
  467. }
  468. return e !== V ? tt : a.wrap <= 0 ? et : (2 === a.wrap ? (At(a, 255 & t.adler), At(a, t.adler >> 8 & 255), At(a, t.adler >> 16 & 255), At(a, t.adler >> 24 & 255), At(a, 255 & t.total_in), At(a, t.total_in >> 8 & 255), At(a, t.total_in >> 16 & 255), At(a, t.total_in >> 24 & 255)) : (Et(a, t.adler >>> 16), Et(a, 65535 & t.adler)), xt(t), a.wrap > 0 && (a.wrap = -a.wrap), 0 !== a.pending ? tt : et)
  469. },
  470. deflateEnd: t => {
  471. if (Lt(t)) return at;
  472. const e = t.state.status;
  473. return t.state = null, e === mt ? gt(t, it) : tt
  474. },
  475. deflateSetDictionary: (t, e) => {
  476. let a = e.length;
  477. if (Lt(t)) return at;
  478. const i = t.state, n = i.wrap;
  479. if (2 === n || 1 === n && i.status !== wt || i.lookahead) return at;
  480. if (1 === n && (t.adler = C(t.adler, e, a, 0)), i.wrap = 0, a >= i.w_size) {
  481. 0 === n && (kt(i.head), i.strstart = 0, i.block_start = 0, i.insert = 0);
  482. let t = new Uint8Array(i.w_size);
  483. t.set(e.subarray(a - i.w_size, a), 0), e = t, a = i.w_size
  484. }
  485. const s = t.avail_in, r = t.next_in, o = t.input;
  486. for (t.avail_in = a, t.next_in = 0, t.input = e, Ut(i); i.lookahead >= 3;) {
  487. let t = i.strstart, e = i.lookahead - 2;
  488. do {
  489. i.ins_h = yt(i, i.ins_h, i.window[t + 3 - 1]), i.prev[t & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = t, t++
  490. } while (--e);
  491. i.strstart = t, i.lookahead = 2, Ut(i)
  492. }
  493. return i.strstart += i.lookahead, i.block_start = i.strstart, i.insert = i.lookahead, i.lookahead = 0, i.match_length = i.prev_length = 2, i.match_available = 0, t.next_in = r, t.input = o, t.avail_in = s, i.wrap = n, tt
  494. },
  495. deflateInfo: "pako deflate (from Nodeca project)"
  496. };
  497. const Ht = (t, e) => Object.prototype.hasOwnProperty.call(t, e);
  498. var jt = function(t) {
  499. const e = Array.prototype.slice.call(arguments, 1);
  500. for (; e.length;) {
  501. const a = e.shift();
  502. if (a) {
  503. if ("object" != typeof a) throw new TypeError(a + "must be non-object");
  504. for (const e in a) Ht(a, e) && (t[e] = a[e])
  505. }
  506. }
  507. return t
  508. }, Kt = t => {
  509. let e = 0;
  510. for (let a = 0, i = t.length; a < i; a++) e += t[a].length;
  511. const a = new Uint8Array(e);
  512. for (let e = 0, i = 0, n = t.length; e < n; e++) {
  513. let n = t[e];
  514. a.set(n, i), i += n.length
  515. }
  516. return a
  517. };
  518. let Pt = !0;
  519. try {
  520. String.fromCharCode.apply(null, new Uint8Array(1))
  521. } catch (t) {
  522. Pt = !1
  523. }
  524. const Yt = new Uint8Array(256);
  525. for (let t = 0; t < 256; t++) Yt[t] = t >= 252 ? 6 : t >= 248 ? 5 : t >= 240 ? 4 : t >= 224 ? 3 : t >= 192 ? 2 : 1;
  526. Yt[254] = Yt[254] = 1;
  527. var Gt = t => {
  528. if ("function" == typeof TextEncoder && TextEncoder.prototype.encode) return (new TextEncoder)
  529. .encode(t);
  530. let e, a, i, n, s, r = t.length, o = 0;
  531. for (n = 0; n < r; n++) a = t.charCodeAt(n), 55296 == (64512 & a) && n + 1 < r && (i = t.charCodeAt(n + 1), 56320 == (64512 & i) && (a = 65536 + (a - 55296 << 10) + (i - 56320), n++)), o += a < 128 ? 1 : a < 2048 ? 2 : a < 65536 ? 3 : 4;
  532. for (e = new Uint8Array(o), s = 0, n = 0; s < o; n++) a = t.charCodeAt(n), 55296 == (64512 & a) && n + 1 < r && (i = t.charCodeAt(n + 1), 56320 == (64512 & i) && (a = 65536 + (a - 55296 << 10) + (i - 56320), n++)), a < 128 ? e[s++] = a : a < 2048 ? (e[s++] = 192 | a >>> 6, e[s++] = 128 | 63 & a) : a < 65536 ? (e[s++] = 224 | a >>> 12, e[s++] = 128 | a >>> 6 & 63, e[s++] = 128 | 63 & a) : (e[s++] = 240 | a >>> 18, e[s++] = 128 | a >>> 12 & 63, e[s++] = 128 | a >>> 6 & 63, e[s++] = 128 | 63 & a);
  533. return e
  534. }, Xt = (t, e) => {
  535. const a = e || t.length;
  536. if ("function" == typeof TextDecoder && TextDecoder.prototype.decode) return (new TextDecoder)
  537. .decode(t.subarray(0, e));
  538. let i, n;
  539. const s = new Array(2 * a);
  540. for (n = 0, i = 0; i < a;) {
  541. let e = t[i++];
  542. if (e < 128) {
  543. s[n++] = e;
  544. continue
  545. }
  546. let r = Yt[e];
  547. if (r > 4) s[n++] = 65533, i += r - 1;
  548. else {
  549. for (e &= 2 === r ? 31 : 3 === r ? 15 : 7; r > 1 && i < a;) e = e << 6 | 63 & t[i++], r--;
  550. r > 1 ? s[n++] = 65533 : e < 65536 ? s[n++] = e : (e -= 65536, s[n++] = 55296 | e >> 10 & 1023, s[n++] = 56320 | 1023 & e)
  551. }
  552. }
  553. return ((t, e) => {
  554. if (e < 65534 && t.subarray && Pt) return String.fromCharCode.apply(null, t.length === e ? t : t.subarray(0, e));
  555. let a = "";
  556. for (let i = 0; i < e; i++) a += String.fromCharCode(t[i]);
  557. return a
  558. })(s, n)
  559. }, Wt = (t, e) => {
  560. (e = e || t.length) > t.length && (e = t.length);
  561. let a = e - 1;
  562. for (; a >= 0 && 128 == (192 & t[a]);) a--;
  563. return a < 0 || 0 === a ? e : a + Yt[t[a]] > e ? a : e
  564. };
  565. var qt = function() {
  566. 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
  567. };
  568. const Jt = Object.prototype.toString, {
  569. Z_NO_FLUSH: Qt,
  570. Z_SYNC_FLUSH: Vt,
  571. Z_FULL_FLUSH: $t,
  572. Z_FINISH: te,
  573. Z_OK: ee,
  574. Z_STREAM_END: ae,
  575. Z_DEFAULT_COMPRESSION: ie,
  576. Z_DEFAULT_STRATEGY: ne,
  577. Z_DEFLATED: se
  578. } = K;
  579. function re(t) {
  580. this.options = jt({
  581. level: ie,
  582. method: se,
  583. chunkSize: 16384,
  584. windowBits: 15,
  585. memLevel: 8,
  586. strategy: ne
  587. }, t || {});
  588. let e = this.options;
  589. e.raw && e.windowBits > 0 ? e.windowBits = -e.windowBits : e.gzip && e.windowBits > 0 && e.windowBits < 16 && (e.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new qt, this.strm.avail_out = 0;
  590. let a = Mt.deflateInit2(this.strm, e.level, e.method, e.windowBits, e.memLevel, e.strategy);
  591. if (a !== ee) throw new Error(j[a]);
  592. if (e.header && Mt.deflateSetHeader(this.strm, e.header), e.dictionary) {
  593. let t;
  594. if (t = "string" == typeof e.dictionary ? Gt(e.dictionary) : "[object ArrayBuffer]" === Jt.call(e.dictionary) ? new Uint8Array(e.dictionary) : e.dictionary, a = Mt.deflateSetDictionary(this.strm, t), a !== ee) throw new Error(j[a]);
  595. this._dict_set = !0
  596. }
  597. }
  598. function oe(t, e) {
  599. const a = new re(e);
  600. if (a.push(t, !0), a.err) throw a.msg || j[a.err];
  601. return a.result
  602. }
  603. re.prototype.push = function(t, e) {
  604. const a = this.strm, i = this.options.chunkSize;
  605. let n, s;
  606. if (this.ended) return !1;
  607. for (s = e === ~~e ? e : !0 === e ? te : Qt, "string" == typeof t ? a.input = Gt(t) : "[object ArrayBuffer]" === Jt.call(t) ? a.input = new Uint8Array(t) : a.input = t, a.next_in = 0, a.avail_in = a.input.length;;) if (0 === a.avail_out && (a.output = new Uint8Array(i), a.next_out = 0, a.avail_out = i), (s === Vt || s === $t) && a.avail_out <= 6) this.onData(a.output.subarray(0, a.next_out)), a.avail_out = 0;
  608. else {
  609. if (n = Mt.deflate(a, s), n === ae) return a.next_out > 0 && this.onData(a.output.subarray(0, a.next_out)), n = Mt.deflateEnd(this.strm), this.onEnd(n), this.ended = !0, n === ee;
  610. if (0 !== a.avail_out) {
  611. if (s > 0 && a.next_out > 0) this.onData(a.output.subarray(0, a.next_out)), a.avail_out = 0;
  612. else if (0 === a.avail_in) break
  613. } else this.onData(a.output)
  614. }
  615. return !0
  616. }, re.prototype.onData = function(t) {
  617. this.chunks.push(t)
  618. }, re.prototype.onEnd = function(t) {
  619. t === ee && (this.result = Kt(this.chunks)), this.chunks = [], this.err = t, this.msg = this.strm.msg
  620. };
  621. var le = {
  622. Deflate: re,
  623. deflate: oe,
  624. deflateRaw: function(t, e) {
  625. return (e = e || {})
  626. .raw = !0, oe(t, e)
  627. },
  628. gzip: function(t, e) {
  629. return (e = e || {})
  630. .gzip = !0, oe(t, e)
  631. },
  632. constants: K
  633. };
  634. const he = 16209;
  635. var de = function(t, e) {
  636. let a, i, n, s, r, o, l, h, d, _, f, c, u, w, m, b, g, p, k, v, y, x, z, A;
  637. const E = t.state;
  638. a = t.next_in, z = t.input, i = a + (t.avail_in - 5), n = t.next_out, A = t.output, s = n - (e - t.avail_out), r = n + (t.avail_out - 257), o = E.dmax, l = E.wsize, h = E.whave, d = E.wnext, _ = E.window, f = E.hold, c = E.bits, u = E.lencode, w = E.distcode, m = (1 << E.lenbits) - 1, b = (1 << E.distbits) - 1;
  639. t: do {
  640. c < 15 && (f += z[a++] << c, c += 8, f += z[a++] << c, c += 8), g = u[f & m];
  641. e: for (;;) {
  642. if (p = g >>> 24, f >>>= p, c -= p, p = g >>> 16 & 255, 0 === p) A[n++] = 65535 & g;
  643. else {
  644. if (!(16 & p)) {
  645. if (0 == (64 & p)) {
  646. g = u[(65535 & g) + (f & (1 << p) - 1)];
  647. continue e
  648. }
  649. if (32 & p) {
  650. E.mode = 16191;
  651. break t
  652. }
  653. t.msg = "invalid literal/length code", E.mode = he;
  654. break t
  655. }
  656. k = 65535 & g, p &= 15, p && (c < p && (f += z[a++] << c, c += 8), k += f & (1 << p) - 1, f >>>= p, c -= p), c < 15 && (f += z[a++] << c, c += 8, f += z[a++] << c, c += 8), g = w[f & b];
  657. a: for (;;) {
  658. if (p = g >>> 24, f >>>= p, c -= p, p = g >>> 16 & 255, !(16 & p)) {
  659. if (0 == (64 & p)) {
  660. g = w[(65535 & g) + (f & (1 << p) - 1)];
  661. continue a
  662. }
  663. t.msg = "invalid distance code", E.mode = he;
  664. break t
  665. }
  666. if (v = 65535 & g, p &= 15, c < p && (f += z[a++] << c, c += 8, c < p && (f += z[a++] << c, c += 8)), v += f & (1 << p) - 1, v > o) {
  667. t.msg = "invalid distance too far back", E.mode = he;
  668. break t
  669. }
  670. if (f >>>= p, c -= p, p = n - s, v > p) {
  671. if (p = v - p, p > h && E.sane) {
  672. t.msg = "invalid distance too far back", E.mode = he;
  673. break t
  674. }
  675. if (y = 0, x = _, 0 === d) {
  676. if (y += l - p, p < k) {
  677. k -= p;
  678. do {
  679. A[n++] = _[y++]
  680. } while (--p);
  681. y = n - v, x = A
  682. }
  683. } else if (d < p) {
  684. if (y += l + d - p, p -= d, p < k) {
  685. k -= p;
  686. do {
  687. A[n++] = _[y++]
  688. } while (--p);
  689. if (y = 0, d < k) {
  690. p = d, k -= p;
  691. do {
  692. A[n++] = _[y++]
  693. } while (--p);
  694. y = n - v, x = A
  695. }
  696. }
  697. } else if (y += d - p, p < k) {
  698. k -= p;
  699. do {
  700. A[n++] = _[y++]
  701. } while (--p);
  702. y = n - v, x = A
  703. }
  704. for (; k > 2;) A[n++] = x[y++], A[n++] = x[y++], A[n++] = x[y++], k -= 3;
  705. k && (A[n++] = x[y++], k > 1 && (A[n++] = x[y++]))
  706. } else {
  707. y = n - v;
  708. do {
  709. A[n++] = A[y++], A[n++] = A[y++], A[n++] = A[y++], k -= 3
  710. } while (k > 2);
  711. k && (A[n++] = A[y++], k > 1 && (A[n++] = A[y++]))
  712. }
  713. break
  714. }
  715. }
  716. break
  717. }
  718. } while (a < i && n < r);
  719. k = c >> 3, a -= k, c -= k << 3, f &= (1 << c) - 1, t.next_in = a, t.next_out = n, t.avail_in = a < i ? i - a + 5 : 5 - (a - i), t.avail_out = n < r ? r - n + 257 : 257 - (n - r), E.hold = f, E.bits = c
  720. };
  721. const _e = 15, fe = 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]), ce = 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]), ue = 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]), we = 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]);
  722. var me = (t, e, a, i, n, s, r, o) => {
  723. const l = o.bits;
  724. let h, d, _, f, c, u, w = 0, m = 0, b = 0, g = 0, p = 0, k = 0, v = 0, y = 0, x = 0, z = 0, A = null;
  725. const E = new Uint16Array(16), R = new Uint16Array(16);
  726. let Z, U, S, D = null;
  727. for (w = 0; w <= _e; w++) E[w] = 0;
  728. for (m = 0; m < i; m++) E[e[a + m]]++;
  729. for (p = l, g = _e; g >= 1 && 0 === E[g]; g--);
  730. if (p > g && (p = g), 0 === g) return n[s++] = 20971520, n[s++] = 20971520, o.bits = 1, 0;
  731. for (b = 1; b < g && 0 === E[b]; b++);
  732. for (p < b && (p = b), y = 1, w = 1; w <= _e; w++) if (y <<= 1, y -= E[w], y < 0) return -1;
  733. if (y > 0 && (0 === t || 1 !== g)) return -1;
  734. for (R[1] = 0, w = 1; w < _e; w++) R[w + 1] = R[w] + E[w];
  735. for (m = 0; m < i; m++) 0 !== e[a + m] && (r[R[e[a + m]]++] = m);
  736. if (0 === t ? (A = D = r, u = 20) : 1 === t ? (A = fe, D = ce, u = 257) : (A = ue, D = we, u = 0), z = 0, m = 0, w = b, c = s, k = p, v = 0, _ = -1, x = 1 << p, f = x - 1, 1 === t && x > 852 || 2 === t && x > 592) return 1;
  737. for (;;) {
  738. Z = w - v, r[m] + 1 < u ? (U = 0, S = r[m]) : r[m] >= u ? (U = D[r[m] - u], S = A[r[m] - u]) : (U = 96, S = 0), h = 1 << w - v, d = 1 << k, b = d;
  739. do {
  740. d -= h, n[c + (z >> v) + d] = Z << 24 | U << 16 | S | 0
  741. } while (0 !== d);
  742. for (h = 1 << w - 1; z & h;) h >>= 1;
  743. if (0 !== h ? (z &= h - 1, z += h) : z = 0, m++, 0 == --E[w]) {
  744. if (w === g) break;
  745. w = e[a + r[m]]
  746. }
  747. if (w > p && (z & f) !== _) {
  748. for (0 === v && (v = p), c += b, k = w - v, y = 1 << k; k + v < g && (y -= E[k + v], !(y <= 0));) k++, y <<= 1;
  749. if (x += 1 << k, 1 === t && x > 852 || 2 === t && x > 592) return 1;
  750. _ = z & f, n[_] = p << 24 | k << 16 | c - s | 0
  751. }
  752. }
  753. return 0 !== z && (n[c + z] = w - v << 24 | 64 << 16 | 0), o.bits = p, 0
  754. };
  755. const {
  756. Z_FINISH: be,
  757. Z_BLOCK: ge,
  758. Z_TREES: pe,
  759. Z_OK: ke,
  760. Z_STREAM_END: ve,
  761. Z_NEED_DICT: ye,
  762. Z_STREAM_ERROR: xe,
  763. Z_DATA_ERROR: ze,
  764. Z_MEM_ERROR: Ae,
  765. Z_BUF_ERROR: Ee,
  766. Z_DEFLATED: Re
  767. } = K, Ze = 16180, Ue = 16190, Se = 16191, De = 16192, Te = 16194, Oe = 16199, Ie = 16200, Fe = 16206, Le = 16209, Ne = t => (t >>> 24 & 255) + (t >>> 8 & 65280) + ((65280 & t) << 8) + ((255 & t) << 24);
  768. function Be() {
  769. this.strm = null, this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, 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
  770. }
  771. const Ce = t => {
  772. if (!t) return 1;
  773. const e = t.state;
  774. return !e || e.strm !== t || e.mode < Ze || e.mode > 16211 ? 1 : 0
  775. }, Me = t => {
  776. if (Ce(t)) return xe;
  777. const e = t.state;
  778. return t.total_in = t.total_out = e.total = 0, t.msg = "", e.wrap && (t.adler = 1 & e.wrap), e.mode = Ze, e.last = 0, e.havedict = 0, e.flags = -1, e.dmax = 32768, e.head = null, e.hold = 0, e.bits = 0, e.lencode = e.lendyn = new Int32Array(852), e.distcode = e.distdyn = new Int32Array(592), e.sane = 1, e.back = -1, ke
  779. }, He = t => {
  780. if (Ce(t)) return xe;
  781. const e = t.state;
  782. return e.wsize = 0, e.whave = 0, e.wnext = 0, Me(t)
  783. }, je = (t, e) => {
  784. let a;
  785. if (Ce(t)) return xe;
  786. const i = t.state;
  787. return e < 0 ? (a = 0, e = -e) : (a = 5 + (e >> 4), e < 48 && (e &= 15)), e && (e < 8 || e > 15) ? xe : (null !== i.window && i.wbits !== e && (i.window = null), i.wrap = a, i.wbits = e, He(t))
  788. }, Ke = (t, e) => {
  789. if (!t) return xe;
  790. const a = new Be;
  791. t.state = a, a.strm = t, a.window = null, a.mode = Ze;
  792. const i = je(t, e);
  793. return i !== ke && (t.state = null), i
  794. };
  795. let Pe, Ye, Ge = !0;
  796. const Xe = t => {
  797. if (Ge) {
  798. Pe = new Int32Array(512), Ye = new Int32Array(32);
  799. let e = 0;
  800. for (; e < 144;) t.lens[e++] = 8;
  801. for (; e < 256;) t.lens[e++] = 9;
  802. for (; e < 280;) t.lens[e++] = 7;
  803. for (; e < 288;) t.lens[e++] = 8;
  804. for (me(1, t.lens, 0, 288, Pe, 0, t.work, {
  805. bits: 9
  806. }), e = 0; e < 32;) t.lens[e++] = 5;
  807. me(2, t.lens, 0, 32, Ye, 0, t.work, {
  808. bits: 5
  809. }), Ge = !1
  810. }
  811. t.lencode = Pe, t.lenbits = 9, t.distcode = Ye, t.distbits = 5
  812. }, We = (t, e, a, i) => {
  813. let n;
  814. const s = t.state;
  815. return null === s.window && (s.wsize = 1 << s.wbits, s.wnext = 0, s.whave = 0, s.window = new Uint8Array(s.wsize)), i >= s.wsize ? (s.window.set(e.subarray(a - s.wsize, a), 0), s.wnext = 0, s.whave = s.wsize) : (n = s.wsize - s.wnext, n > i && (n = i), s.window.set(e.subarray(a - i, a - i + n), s.wnext), (i -= n) ? (s.window.set(e.subarray(a - i, a), 0), s.wnext = i, s.whave = s.wsize) : (s.wnext += n, s.wnext === s.wsize && (s.wnext = 0), s.whave < s.wsize && (s.whave += n))), 0
  816. };
  817. var qe = {
  818. inflateReset: He,
  819. inflateReset2: je,
  820. inflateResetKeep: Me,
  821. inflateInit: t => Ke(t, 15),
  822. inflateInit2: Ke,
  823. inflate: (t, e) => {
  824. let a, i, n, s, r, o, l, h, d, _, f, c, u, w, m, b, g, p, k, v, y, x, z = 0;
  825. const A = new Uint8Array(4);
  826. let E, R;
  827. const Z = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
  828. if (Ce(t) || !t.output || !t.input && 0 !== t.avail_in) return xe;
  829. a = t.state, a.mode === Se && (a.mode = De), r = t.next_out, n = t.output, l = t.avail_out, s = t.next_in, i = t.input, o = t.avail_in, h = a.hold, d = a.bits, _ = o, f = l, x = ke;
  830. t: for (;;) switch (a.mode) {
  831. case Ze:
  832. if (0 === a.wrap) {
  833. a.mode = De;
  834. break
  835. }
  836. for (; d < 16;) {
  837. if (0 === o) break t;
  838. o--, h += i[s++] << d, d += 8
  839. }
  840. if (2 & a.wrap && 35615 === h) {
  841. 0 === a.wbits && (a.wbits = 15), a.check = 0, A[0] = 255 & h, A[1] = h >>> 8 & 255, a.check = H(a.check, A, 2, 0), h = 0, d = 0, a.mode = 16181;
  842. break
  843. }
  844. if (a.head && (a.head.done = !1), !(1 & a.wrap) || (((255 & h) << 8) + (h >> 8)) % 31) {
  845. t.msg = "incorrect header check", a.mode = Le;
  846. break
  847. }
  848. if ((15 & h) !== Re) {
  849. t.msg = "unknown compression method", a.mode = Le;
  850. break
  851. }
  852. if (h >>>= 4, d -= 4, y = 8 + (15 & h), 0 === a.wbits && (a.wbits = y), y > 15 || y > a.wbits) {
  853. t.msg = "invalid window size", a.mode = Le;
  854. break
  855. }
  856. a.dmax = 1 << a.wbits, a.flags = 0, t.adler = a.check = 1, a.mode = 512 & h ? 16189 : Se, h = 0, d = 0;
  857. break;
  858. case 16181:
  859. for (; d < 16;) {
  860. if (0 === o) break t;
  861. o--, h += i[s++] << d, d += 8
  862. }
  863. if (a.flags = h, (255 & a.flags) !== Re) {
  864. t.msg = "unknown compression method", a.mode = Le;
  865. break
  866. }
  867. if (57344 & a.flags) {
  868. t.msg = "unknown header flags set", a.mode = Le;
  869. break
  870. }
  871. a.head && (a.head.text = h >> 8 & 1), 512 & a.flags && 4 & a.wrap && (A[0] = 255 & h, A[1] = h >>> 8 & 255, a.check = H(a.check, A, 2, 0)), h = 0, d = 0, a.mode = 16182;
  872. case 16182:
  873. for (; d < 32;) {
  874. if (0 === o) break t;
  875. o--, h += i[s++] << d, d += 8
  876. }
  877. a.head && (a.head.time = h), 512 & a.flags && 4 & a.wrap && (A[0] = 255 & h, A[1] = h >>> 8 & 255, A[2] = h >>> 16 & 255, A[3] = h >>> 24 & 255, a.check = H(a.check, A, 4, 0)), h = 0, d = 0, a.mode = 16183;
  878. case 16183:
  879. for (; d < 16;) {
  880. if (0 === o) break t;
  881. o--, h += i[s++] << d, d += 8
  882. }
  883. a.head && (a.head.xflags = 255 & h, a.head.os = h >> 8), 512 & a.flags && 4 & a.wrap && (A[0] = 255 & h, A[1] = h >>> 8 & 255, a.check = H(a.check, A, 2, 0)), h = 0, d = 0, a.mode = 16184;
  884. case 16184:
  885. if (1024 & a.flags) {
  886. for (; d < 16;) {
  887. if (0 === o) break t;
  888. o--, h += i[s++] << d, d += 8
  889. }
  890. a.length = h, a.head && (a.head.extra_len = h), 512 & a.flags && 4 & a.wrap && (A[0] = 255 & h, A[1] = h >>> 8 & 255, a.check = H(a.check, A, 2, 0)), h = 0, d = 0
  891. } else a.head && (a.head.extra = null);
  892. a.mode = 16185;
  893. case 16185:
  894. if (1024 & a.flags && (c = a.length, c > o && (c = o), c && (a.head && (y = a.head.extra_len - a.length, a.head.extra || (a.head.extra = new Uint8Array(a.head.extra_len)), a.head.extra.set(i.subarray(s, s + c), y)), 512 & a.flags && 4 & a.wrap && (a.check = H(a.check, i, c, s)), o -= c, s += c, a.length -= c), a.length)) break t;
  895. a.length = 0, a.mode = 16186;
  896. case 16186:
  897. if (2048 & a.flags) {
  898. if (0 === o) break t;
  899. c = 0;
  900. do {
  901. y = i[s + c++], a.head && y && a.length < 65536 && (a.head.name += String.fromCharCode(y))
  902. } while (y && c < o);
  903. if (512 & a.flags && 4 & a.wrap && (a.check = H(a.check, i, c, s)), o -= c, s += c, y) break t
  904. } else a.head && (a.head.name = null);
  905. a.length = 0, a.mode = 16187;
  906. case 16187:
  907. if (4096 & a.flags) {
  908. if (0 === o) break t;
  909. c = 0;
  910. do {
  911. y = i[s + c++], a.head && y && a.length < 65536 && (a.head.comment += String.fromCharCode(y))
  912. } while (y && c < o);
  913. if (512 & a.flags && 4 & a.wrap && (a.check = H(a.check, i, c, s)), o -= c, s += c, y) break t
  914. } else a.head && (a.head.comment = null);
  915. a.mode = 16188;
  916. case 16188:
  917. if (512 & a.flags) {
  918. for (; d < 16;) {
  919. if (0 === o) break t;
  920. o--, h += i[s++] << d, d += 8
  921. }
  922. if (4 & a.wrap && h !== (65535 & a.check)) {
  923. t.msg = "header crc mismatch", a.mode = Le;
  924. break
  925. }
  926. h = 0, d = 0
  927. }
  928. a.head && (a.head.hcrc = a.flags >> 9 & 1, a.head.done = !0), t.adler = a.check = 0, a.mode = Se;
  929. break;
  930. case 16189:
  931. for (; d < 32;) {
  932. if (0 === o) break t;
  933. o--, h += i[s++] << d, d += 8
  934. }
  935. t.adler = a.check = Ne(h), h = 0, d = 0, a.mode = Ue;
  936. case Ue:
  937. if (0 === a.havedict) return t.next_out = r, t.avail_out = l, t.next_in = s, t.avail_in = o, a.hold = h, a.bits = d, ye;
  938. t.adler = a.check = 1, a.mode = Se;
  939. case Se:
  940. if (e === ge || e === pe) break t;
  941. case De:
  942. if (a.last) {
  943. h >>>= 7 & d, d -= 7 & d, a.mode = Fe;
  944. break
  945. }
  946. for (; d < 3;) {
  947. if (0 === o) break t;
  948. o--, h += i[s++] << d, d += 8
  949. }
  950. switch (a.last = 1 & h, h >>>= 1, d -= 1, 3 & h) {
  951. case 0:
  952. a.mode = 16193;
  953. break;
  954. case 1:
  955. if (Xe(a), a.mode = Oe, e === pe) {
  956. h >>>= 2, d -= 2;
  957. break t
  958. }
  959. break;
  960. case 2:
  961. a.mode = 16196;
  962. break;
  963. case 3:
  964. t.msg = "invalid block type", a.mode = Le
  965. }
  966. h >>>= 2, d -= 2;
  967. break;
  968. case 16193:
  969. for (h >>>= 7 & d, d -= 7 & d; d < 32;) {
  970. if (0 === o) break t;
  971. o--, h += i[s++] << d, d += 8
  972. }
  973. if ((65535 & h) != (h >>> 16 ^ 65535)) {
  974. t.msg = "invalid stored block lengths", a.mode = Le;
  975. break
  976. }
  977. if (a.length = 65535 & h, h = 0, d = 0, a.mode = Te, e === pe) break t;
  978. case Te:
  979. a.mode = 16195;
  980. case 16195:
  981. if (c = a.length, c) {
  982. if (c > o && (c = o), c > l && (c = l), 0 === c) break t;
  983. n.set(i.subarray(s, s + c), r), o -= c, s += c, l -= c, r += c, a.length -= c;
  984. break
  985. }
  986. a.mode = Se;
  987. break;
  988. case 16196:
  989. for (; d < 14;) {
  990. if (0 === o) break t;
  991. o--, h += i[s++] << d, d += 8
  992. }
  993. if (a.nlen = 257 + (31 & h), h >>>= 5, d -= 5, a.ndist = 1 + (31 & h), h >>>= 5, d -= 5, a.ncode = 4 + (15 & h), h >>>= 4, d -= 4, a.nlen > 286 || a.ndist > 30) {
  994. t.msg = "too many length or distance symbols", a.mode = Le;
  995. break
  996. }
  997. a.have = 0, a.mode = 16197;
  998. case 16197:
  999. for (; a.have < a.ncode;) {
  1000. for (; d < 3;) {
  1001. if (0 === o) break t;
  1002. o--, h += i[s++] << d, d += 8
  1003. }
  1004. a.lens[Z[a.have++]] = 7 & h, h >>>= 3, d -= 3
  1005. }
  1006. for (; a.have < 19;) a.lens[Z[a.have++]] = 0;
  1007. if (a.lencode = a.lendyn, a.lenbits = 7, E = {
  1008. bits: a.lenbits
  1009. }, x = me(0, a.lens, 0, 19, a.lencode, 0, a.work, E), a.lenbits = E.bits, x) {
  1010. t.msg = "invalid code lengths set", a.mode = Le;
  1011. break
  1012. }
  1013. a.have = 0, a.mode = 16198;
  1014. case 16198:
  1015. for (; a.have < a.nlen + a.ndist;) {
  1016. for (; z = a.lencode[h & (1 << a.lenbits) - 1], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(m <= d);) {
  1017. if (0 === o) break t;
  1018. o--, h += i[s++] << d, d += 8
  1019. }
  1020. if (g < 16) h >>>= m, d -= m, a.lens[a.have++] = g;
  1021. else {
  1022. if (16 === g) {
  1023. for (R = m + 2; d < R;) {
  1024. if (0 === o) break t;
  1025. o--, h += i[s++] << d, d += 8
  1026. }
  1027. if (h >>>= m, d -= m, 0 === a.have) {
  1028. t.msg = "invalid bit length repeat", a.mode = Le;
  1029. break
  1030. }
  1031. y = a.lens[a.have - 1], c = 3 + (3 & h), h >>>= 2, d -= 2
  1032. } else if (17 === g) {
  1033. for (R = m + 3; d < R;) {
  1034. if (0 === o) break t;
  1035. o--, h += i[s++] << d, d += 8
  1036. }
  1037. h >>>= m, d -= m, y = 0, c = 3 + (7 & h), h >>>= 3, d -= 3
  1038. } else {
  1039. for (R = m + 7; d < R;) {
  1040. if (0 === o) break t;
  1041. o--, h += i[s++] << d, d += 8
  1042. }
  1043. h >>>= m, d -= m, y = 0, c = 11 + (127 & h), h >>>= 7, d -= 7
  1044. }
  1045. if (a.have + c > a.nlen + a.ndist) {
  1046. t.msg = "invalid bit length repeat", a.mode = Le;
  1047. break
  1048. }
  1049. for (; c--;) a.lens[a.have++] = y
  1050. }
  1051. }
  1052. if (a.mode === Le) break;
  1053. if (0 === a.lens[256]) {
  1054. t.msg = "invalid code -- missing end-of-block", a.mode = Le;
  1055. break
  1056. }
  1057. if (a.lenbits = 9, E = {
  1058. bits: a.lenbits
  1059. }, x = me(1, a.lens, 0, a.nlen, a.lencode, 0, a.work, E), a.lenbits = E.bits, x) {
  1060. t.msg = "invalid literal/lengths set", a.mode = Le;
  1061. break
  1062. }
  1063. if (a.distbits = 6, a.distcode = a.distdyn, E = {
  1064. bits: a.distbits
  1065. }, x = me(2, a.lens, a.nlen, a.ndist, a.distcode, 0, a.work, E), a.distbits = E.bits, x) {
  1066. t.msg = "invalid distances set", a.mode = Le;
  1067. break
  1068. }
  1069. if (a.mode = Oe, e === pe) break t;
  1070. case Oe:
  1071. a.mode = Ie;
  1072. case Ie:
  1073. if (o >= 6 && l >= 258) {
  1074. t.next_out = r, t.avail_out = l, t.next_in = s, t.avail_in = o, a.hold = h, a.bits = d, de(t, f), r = t.next_out, n = t.output, l = t.avail_out, s = t.next_in, i = t.input, o = t.avail_in, h = a.hold, d = a.bits, a.mode === Se && (a.back = -1);
  1075. break
  1076. }
  1077. for (a.back = 0; z = a.lencode[h & (1 << a.lenbits) - 1], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(m <= d);) {
  1078. if (0 === o) break t;
  1079. o--, h += i[s++] << d, d += 8
  1080. }
  1081. if (b && 0 == (240 & b)) {
  1082. for (p = m, k = b, v = g; z = a.lencode[v + ((h & (1 << p + k) - 1) >> p)], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(p + m <= d);) {
  1083. if (0 === o) break t;
  1084. o--, h += i[s++] << d, d += 8
  1085. }
  1086. h >>>= p, d -= p, a.back += p
  1087. }
  1088. if (h >>>= m, d -= m, a.back += m, a.length = g, 0 === b) {
  1089. a.mode = 16205;
  1090. break
  1091. }
  1092. if (32 & b) {
  1093. a.back = -1, a.mode = Se;
  1094. break
  1095. }
  1096. if (64 & b) {
  1097. t.msg = "invalid literal/length code", a.mode = Le;
  1098. break
  1099. }
  1100. a.extra = 15 & b, a.mode = 16201;
  1101. case 16201:
  1102. if (a.extra) {
  1103. for (R = a.extra; d < R;) {
  1104. if (0 === o) break t;
  1105. o--, h += i[s++] << d, d += 8
  1106. }
  1107. a.length += h & (1 << a.extra) - 1, h >>>= a.extra, d -= a.extra, a.back += a.extra
  1108. }
  1109. a.was = a.length, a.mode = 16202;
  1110. case 16202:
  1111. for (; z = a.distcode[h & (1 << a.distbits) - 1], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(m <= d);) {
  1112. if (0 === o) break t;
  1113. o--, h += i[s++] << d, d += 8
  1114. }
  1115. if (0 == (240 & b)) {
  1116. for (p = m, k = b, v = g; z = a.distcode[v + ((h & (1 << p + k) - 1) >> p)], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(p + m <= d);) {
  1117. if (0 === o) break t;
  1118. o--, h += i[s++] << d, d += 8
  1119. }
  1120. h >>>= p, d -= p, a.back += p
  1121. }
  1122. if (h >>>= m, d -= m, a.back += m, 64 & b) {
  1123. t.msg = "invalid distance code", a.mode = Le;
  1124. break
  1125. }
  1126. a.offset = g, a.extra = 15 & b, a.mode = 16203;
  1127. case 16203:
  1128. if (a.extra) {
  1129. for (R = a.extra; d < R;) {
  1130. if (0 === o) break t;
  1131. o--, h += i[s++] << d, d += 8
  1132. }
  1133. a.offset += h & (1 << a.extra) - 1, h >>>= a.extra, d -= a.extra, a.back += a.extra
  1134. }
  1135. if (a.offset > a.dmax) {
  1136. t.msg = "invalid distance too far back", a.mode = Le;
  1137. break
  1138. }
  1139. a.mode = 16204;
  1140. case 16204:
  1141. if (0 === l) break t;
  1142. if (c = f - l, a.offset > c) {
  1143. if (c = a.offset - c, c > a.whave && a.sane) {
  1144. t.msg = "invalid distance too far back", a.mode = Le;
  1145. break
  1146. }
  1147. c > a.wnext ? (c -= a.wnext, u = a.wsize - c) : u = a.wnext - c, c > a.length && (c = a.length), w = a.window
  1148. } else w = n, u = r - a.offset, c = a.length;
  1149. c > l && (c = l), l -= c, a.length -= c;
  1150. do {
  1151. n[r++] = w[u++]
  1152. } while (--c);
  1153. 0 === a.length && (a.mode = Ie);
  1154. break;
  1155. case 16205:
  1156. if (0 === l) break t;
  1157. n[r++] = a.length, l--, a.mode = Ie;
  1158. break;
  1159. case Fe:
  1160. if (a.wrap) {
  1161. for (; d < 32;) {
  1162. if (0 === o) break t;
  1163. o--, h |= i[s++] << d, d += 8
  1164. }
  1165. if (f -= l, t.total_out += f, a.total += f, 4 & a.wrap && f && (t.adler = a.check = a.flags ? H(a.check, n, f, r - f) : C(a.check, n, f, r - f)), f = l, 4 & a.wrap && (a.flags ? h : Ne(h)) !== a.check) {
  1166. t.msg = "incorrect data check", a.mode = Le;
  1167. break
  1168. }
  1169. h = 0, d = 0
  1170. }
  1171. a.mode = 16207;
  1172. case 16207:
  1173. if (a.wrap && a.flags) {
  1174. for (; d < 32;) {
  1175. if (0 === o) break t;
  1176. o--, h += i[s++] << d, d += 8
  1177. }
  1178. if (4 & a.wrap && h !== (4294967295 & a.total)) {
  1179. t.msg = "incorrect length check", a.mode = Le;
  1180. break
  1181. }
  1182. h = 0, d = 0
  1183. }
  1184. a.mode = 16208;
  1185. case 16208:
  1186. x = ve;
  1187. break t;
  1188. case Le:
  1189. x = ze;
  1190. break t;
  1191. case 16210:
  1192. return Ae;
  1193. default:
  1194. return xe
  1195. }
  1196. return t.next_out = r,
  1197. t.avail_out = l,
  1198. t.next_in = s,
  1199. t.avail_in = o,
  1200. a.hold = h,
  1201. a.bits = d,
  1202. (a.wsize || f !== t.avail_out && a.mode < Le && (a.mode < Fe || e !== be)) && We(t, t.output, t.next_out, f - t.avail_out),
  1203. _ -= t.avail_in,
  1204. f -= t.avail_out,
  1205. t.total_in += _,
  1206. t.total_out += f,
  1207. a.total += f,
  1208. 4 & a.wrap && f && (t.adler = a.check = a.flags ? H(a.check, n, f, t.next_out - f) : C(a.check, n, f, t.next_out - f)),
  1209. t.data_type = a.bits + (a.last ? 64 : 0) + (a.mode === Se ? 128 : 0) + (a.mode === Oe || a.mode === Te ? 256 : 0),
  1210. (0 === _ && 0 === f || e === be) && x === ke && (x = Ee),
  1211. x
  1212. },
  1213. inflateEnd: t => {
  1214. if (Ce(t)) return xe;
  1215. let e = t.state;
  1216. return e.window && (e.window = null), t.state = null, ke
  1217. },
  1218. inflateGetHeader: (t, e) => {
  1219. if (Ce(t)) return xe;
  1220. const a = t.state;
  1221. return 0 == (2 & a.wrap) ? xe : (a.head = e, e.done = !1, ke)
  1222. },
  1223. inflateSetDictionary: (t, e) => {
  1224. const a = e.length;
  1225. let i, n, s;
  1226. return Ce(t) ? xe : (i = t.state, 0 !== i.wrap && i.mode !== Ue ? xe : i.mode === Ue && (n = 1, n = C(n, e, a, 0), n !== i.check) ? ze : (s = We(t, e, a, a), s ? (i.mode = 16210, Ae) : (i.havedict = 1, ke)))
  1227. },
  1228. inflateInfo: "pako inflate (from Nodeca project)"
  1229. };
  1230. var Je = function() {
  1231. 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 = !1
  1232. };
  1233. const Qe = Object.prototype.toString, {
  1234. Z_NO_FLUSH: Ve,
  1235. Z_FINISH: $e,
  1236. Z_OK: ta,
  1237. Z_STREAM_END: ea,
  1238. Z_NEED_DICT: aa,
  1239. Z_STREAM_ERROR: ia,
  1240. Z_DATA_ERROR: na,
  1241. Z_MEM_ERROR: sa
  1242. } = K;
  1243. function ra(t) {
  1244. this.options = jt({
  1245. chunkSize: 65536,
  1246. windowBits: 15,
  1247. to: ""
  1248. }, t || {});
  1249. const e = this.options;
  1250. e.raw && e.windowBits >= 0 && e.windowBits < 16 && (e.windowBits = -e.windowBits, 0 === e.windowBits && (e.windowBits = -15)), !(e.windowBits >= 0 && e.windowBits < 16) || t && t.windowBits || (e.windowBits += 32), e.windowBits > 15 && e.windowBits < 48 && 0 == (15 & e.windowBits) && (e.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new qt, this.strm.avail_out = 0;
  1251. let a = qe.inflateInit2(this.strm, e.windowBits);
  1252. if (a !== ta) throw new Error(j[a]);
  1253. if (this.header = new Je, qe.inflateGetHeader(this.strm, this.header), e.dictionary && ("string" == typeof e.dictionary ? e.dictionary = Gt(e.dictionary) : "[object ArrayBuffer]" === Qe.call(e.dictionary) && (e.dictionary = new Uint8Array(e.dictionary)), e.raw && (a = qe.inflateSetDictionary(this.strm, e.dictionary), a !== ta))) throw new Error(j[a])
  1254. }
  1255. function oa(t, e) {
  1256. const a = new ra(e);
  1257. if (a.push(t), a.err) throw a.msg || j[a.err];
  1258. return a.result
  1259. }
  1260. ra.prototype.push = function(t, e) {
  1261. const a = this.strm, i = this.options.chunkSize, n = this.options.dictionary;
  1262. let s, r, o;
  1263. if (this.ended) return !1;
  1264. for (r = e === ~~e ? e : !0 === e ? $e : Ve, "[object ArrayBuffer]" === Qe.call(t) ? a.input = new Uint8Array(t) : a.input = t, a.next_in = 0, a.avail_in = a.input.length;;) {
  1265. for (0 === a.avail_out && (a.output = new Uint8Array(i), a.next_out = 0, a.avail_out = i), s = qe.inflate(a, r), s === aa && n && (s = qe.inflateSetDictionary(a, n), s === ta ? s = qe.inflate(a, r) : s === na && (s = aa)); a.avail_in > 0 && s === ea && a.state.wrap > 0 && 0 !== t[a.next_in];) qe.inflateReset(a), s = qe.inflate(a, r);
  1266. switch (s) {
  1267. case ia:
  1268. case na:
  1269. case aa:
  1270. case sa:
  1271. return this.onEnd(s), this.ended = !0, !1
  1272. }
  1273. if (o = a.avail_out, a.next_out && (0 === a.avail_out || s === ea)) if ("string" === this.options.to) {
  1274. let t = Wt(a.output, a.next_out), e = a.next_out - t, n = Xt(a.output, t);
  1275. a.next_out = e, a.avail_out = i - e, e && a.output.set(a.output.subarray(t, t + e), 0), this.onData(n)
  1276. } else this.onData(a.output.length === a.next_out ? a.output : a.output.subarray(0, a.next_out));
  1277. if (s !== ta || 0 !== o) {
  1278. if (s === ea) return s = qe.inflateEnd(this.strm), this.onEnd(s), this.ended = !0, !0;
  1279. if (0 === a.avail_in) break
  1280. }
  1281. }
  1282. return !0
  1283. }, ra.prototype.onData = function(t) {
  1284. this.chunks.push(t)
  1285. }, ra.prototype.onEnd = function(t) {
  1286. t === ta && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = Kt(this.chunks)), this.chunks = [], this.err = t, this.msg = this.strm.msg
  1287. };
  1288. var la = {
  1289. Inflate: ra,
  1290. inflate: oa,
  1291. inflateRaw: function(t, e) {
  1292. return (e = e || {})
  1293. .raw = !0, oa(t, e)
  1294. },
  1295. ungzip: oa,
  1296. constants: K
  1297. };
  1298. const {
  1299. Deflate: ha,
  1300. deflate: da,
  1301. deflateRaw: _a,
  1302. gzip: fa
  1303. } = le, {
  1304. Inflate: ca,
  1305. inflate: ua,
  1306. inflateRaw: wa,
  1307. ungzip: ma
  1308. } = la;
  1309. var ba = ha,
  1310. ga = da,
  1311. pa = _a,
  1312. ka = fa,
  1313. va = ca,
  1314. ya = ua,
  1315. xa = wa,
  1316. za = ma,
  1317. Aa = K,
  1318. Ea = {
  1319. Deflate: ba,
  1320. deflate: ga,
  1321. deflateRaw: pa,
  1322. gzip: ka,
  1323. Inflate: va,
  1324. inflate: ya,
  1325. inflateRaw: xa,
  1326. ungzip: za,
  1327. constants: Aa
  1328. };
  1329. t.Deflate = ba, t.Inflate = va, t.constants = Aa, t.
  1330. default = Ea, t.deflate = ga, t.deflateRaw = pa, t.gzip = ka, t.inflate = ya, t.inflateRaw = xa, t.ungzip = za, Object.defineProperty(t, "__esModule", {
  1331. value: !0
  1332. })
  1333. }));