import { _typeof } from "./chunk-D7ZASVPN.js"; import "./chunk-V4OQ3NZ2.js"; // node_modules/fflate/esm/browser.js var ch2 = {}; var wk = function(c2, id, msg, transfer, cb) { var w2 = new Worker(ch2[id] || (ch2[id] = URL.createObjectURL(new Blob([ c2 + ';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})' ], { type: "text/javascript" })))); w2.onmessage = function(e) { var d2 = e.data, ed = d2.$e$; if (ed) { var err2 = new Error(ed[0]); err2["code"] = ed[1]; err2.stack = ed[2]; cb(err2, null); } else cb(null, d2); }; w2.postMessage(msg, transfer); return w2; }; var u8 = Uint8Array; var u16 = Uint16Array; var i32 = Int32Array; var fleb = new u8([ 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, /* unused */ 0, 0, /* impossible */ 0 ]); var fdeb = new u8([ 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, /* unused */ 0, 0 ]); var clim = new u8([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]); var freb = function(eb, start) { var b3 = new u16(31); for (var i2 = 0; i2 < 31; ++i2) { b3[i2] = start += 1 << eb[i2 - 1]; } var r = new i32(b3[30]); for (var i2 = 1; i2 < 30; ++i2) { for (var j2 = b3[i2]; j2 < b3[i2 + 1]; ++j2) { r[j2] = j2 - b3[i2] << 5 | i2; } } return { b: b3, r }; }; var _a = freb(fleb, 2); var fl = _a.b; var revfl = _a.r; fl[28] = 258, revfl[258] = 28; var _b = freb(fdeb, 0); var fd = _b.b; var revfd = _b.r; var rev = new u16(32768); for (i2 = 0; i2 < 32768; ++i2) { x2 = (i2 & 43690) >> 1 | (i2 & 21845) << 1; x2 = (x2 & 52428) >> 2 | (x2 & 13107) << 2; x2 = (x2 & 61680) >> 4 | (x2 & 3855) << 4; rev[i2] = ((x2 & 65280) >> 8 | (x2 & 255) << 8) >> 1; } var x2; var i2; var hMap = function(cd, mb, r) { var s2 = cd.length; var i2 = 0; var l2 = new u16(mb); for (; i2 < s2; ++i2) { if (cd[i2]) ++l2[cd[i2] - 1]; } var le2 = new u16(mb); for (i2 = 1; i2 < mb; ++i2) { le2[i2] = le2[i2 - 1] + l2[i2 - 1] << 1; } var co; if (r) { co = new u16(1 << mb); var rvb = 15 - mb; for (i2 = 0; i2 < s2; ++i2) { if (cd[i2]) { var sv = i2 << 4 | cd[i2]; var r_1 = mb - cd[i2]; var v2 = le2[cd[i2] - 1]++ << r_1; for (var m2 = v2 | (1 << r_1) - 1; v2 <= m2; ++v2) { co[rev[v2] >> rvb] = sv; } } } } else { co = new u16(s2); for (i2 = 0; i2 < s2; ++i2) { if (cd[i2]) { co[i2] = rev[le2[cd[i2] - 1]++] >> 15 - cd[i2]; } } } return co; }; var flt = new u8(288); for (i2 = 0; i2 < 144; ++i2) flt[i2] = 8; var i2; for (i2 = 144; i2 < 256; ++i2) flt[i2] = 9; var i2; for (i2 = 256; i2 < 280; ++i2) flt[i2] = 7; var i2; for (i2 = 280; i2 < 288; ++i2) flt[i2] = 8; var i2; var fdt = new u8(32); for (i2 = 0; i2 < 32; ++i2) fdt[i2] = 5; var i2; var flm = hMap(flt, 9, 0); var flrm = hMap(flt, 9, 1); var fdm = hMap(fdt, 5, 0); var fdrm = hMap(fdt, 5, 1); var max = function(a2) { var m2 = a2[0]; for (var i2 = 1; i2 < a2.length; ++i2) { if (a2[i2] > m2) m2 = a2[i2]; } return m2; }; var bits = function(d2, p2, m2) { var o2 = p2 / 8 | 0; return (d2[o2] | d2[o2 + 1] << 8) >> (p2 & 7) & m2; }; var bits16 = function(d2, p2) { var o2 = p2 / 8 | 0; return (d2[o2] | d2[o2 + 1] << 8 | d2[o2 + 2] << 16) >> (p2 & 7); }; var shft = function(p2) { return (p2 + 7) / 8 | 0; }; var slc = function(v2, s2, e) { if (s2 == null || s2 < 0) s2 = 0; if (e == null || e > v2.length) e = v2.length; return new u8(v2.subarray(s2, e)); }; var ec = [ "unexpected EOF", "invalid block type", "invalid length/literal", "invalid distance", "stream finished", "no stream handler", , "no callback", "invalid UTF-8 data", "extra field too long", "date not in range 1980-2099", "filename too long", "stream finishing", "invalid zip data" // determined by unknown compression method ]; var err = function(ind, msg, nt2) { var e = new Error(msg || ec[ind]); e.code = ind; if (Error.captureStackTrace) Error.captureStackTrace(e, err); if (!nt2) throw e; return e; }; var inflt = function(dat, st2, buf, dict) { var sl = dat.length, dl = dict ? dict.length : 0; if (!sl || st2.f && !st2.l) return buf || new u8(0); var noBuf = !buf; var resize = noBuf || st2.i != 2; var noSt = st2.i; if (noBuf) buf = new u8(sl * 3); var cbuf = function(l3) { var bl = buf.length; if (l3 > bl) { var nbuf = new u8(Math.max(bl * 2, l3)); nbuf.set(buf); buf = nbuf; } }; var final = st2.f || 0, pos = st2.p || 0, bt2 = st2.b || 0, lm = st2.l, dm = st2.d, lbt = st2.m, dbt = st2.n; var tbts = sl * 8; do { if (!lm) { final = bits(dat, pos, 1); var type = bits(dat, pos + 1, 3); pos += 3; if (!type) { var s2 = shft(pos) + 4, l2 = dat[s2 - 4] | dat[s2 - 3] << 8, t2 = s2 + l2; if (t2 > sl) { if (noSt) err(0); break; } if (resize) cbuf(bt2 + l2); buf.set(dat.subarray(s2, t2), bt2); st2.b = bt2 += l2, st2.p = pos = t2 * 8, st2.f = final; continue; } else if (type == 1) lm = flrm, dm = fdrm, lbt = 9, dbt = 5; else if (type == 2) { var hLit = bits(dat, pos, 31) + 257, hcLen = bits(dat, pos + 10, 15) + 4; var tl = hLit + bits(dat, pos + 5, 31) + 1; pos += 14; var ldt = new u8(tl); var clt = new u8(19); for (var i2 = 0; i2 < hcLen; ++i2) { clt[clim[i2]] = bits(dat, pos + i2 * 3, 7); } pos += hcLen * 3; var clb = max(clt), clbmsk = (1 << clb) - 1; var clm = hMap(clt, clb, 1); for (var i2 = 0; i2 < tl; ) { var r = clm[bits(dat, pos, clbmsk)]; pos += r & 15; var s2 = r >> 4; if (s2 < 16) { ldt[i2++] = s2; } else { var c2 = 0, n2 = 0; if (s2 == 16) n2 = 3 + bits(dat, pos, 3), pos += 2, c2 = ldt[i2 - 1]; else if (s2 == 17) n2 = 3 + bits(dat, pos, 7), pos += 3; else if (s2 == 18) n2 = 11 + bits(dat, pos, 127), pos += 7; while (n2--) ldt[i2++] = c2; } } var lt2 = ldt.subarray(0, hLit), dt2 = ldt.subarray(hLit); lbt = max(lt2); dbt = max(dt2); lm = hMap(lt2, lbt, 1); dm = hMap(dt2, dbt, 1); } else err(1); if (pos > tbts) { if (noSt) err(0); break; } } if (resize) cbuf(bt2 + 131072); var lms = (1 << lbt) - 1, dms = (1 << dbt) - 1; var lpos = pos; for (; ; lpos = pos) { var c2 = lm[bits16(dat, pos) & lms], sym = c2 >> 4; pos += c2 & 15; if (pos > tbts) { if (noSt) err(0); break; } if (!c2) err(2); if (sym < 256) buf[bt2++] = sym; else if (sym == 256) { lpos = pos, lm = null; break; } else { var add = sym - 254; if (sym > 264) { var i2 = sym - 257, b3 = fleb[i2]; add = bits(dat, pos, (1 << b3) - 1) + fl[i2]; pos += b3; } var d2 = dm[bits16(dat, pos) & dms], dsym = d2 >> 4; if (!d2) err(3); pos += d2 & 15; var dt2 = fd[dsym]; if (dsym > 3) { var b3 = fdeb[dsym]; dt2 += bits16(dat, pos) & (1 << b3) - 1, pos += b3; } if (pos > tbts) { if (noSt) err(0); break; } if (resize) cbuf(bt2 + 131072); var end = bt2 + add; if (bt2 < dt2) { var shift = dl - dt2, dend = Math.min(dt2, end); if (shift + bt2 < 0) err(3); for (; bt2 < dend; ++bt2) buf[bt2] = dict[shift + bt2]; } for (; bt2 < end; ++bt2) buf[bt2] = buf[bt2 - dt2]; } } st2.l = lm, st2.p = lpos, st2.b = bt2, st2.f = final; if (lm) final = 1, st2.m = lbt, st2.d = dm, st2.n = dbt; } while (!final); return bt2 != buf.length && noBuf ? slc(buf, 0, bt2) : buf.subarray(0, bt2); }; var wbits = function(d2, p2, v2) { v2 <<= p2 & 7; var o2 = p2 / 8 | 0; d2[o2] |= v2; d2[o2 + 1] |= v2 >> 8; }; var wbits16 = function(d2, p2, v2) { v2 <<= p2 & 7; var o2 = p2 / 8 | 0; d2[o2] |= v2; d2[o2 + 1] |= v2 >> 8; d2[o2 + 2] |= v2 >> 16; }; var hTree = function(d2, mb) { var t2 = []; for (var i2 = 0; i2 < d2.length; ++i2) { if (d2[i2]) t2.push({ s: i2, f: d2[i2] }); } var s2 = t2.length; var t22 = t2.slice(); if (!s2) return { t: et, l: 0 }; if (s2 == 1) { var v2 = new u8(t2[0].s + 1); v2[t2[0].s] = 1; return { t: v2, l: 1 }; } t2.sort(function(a2, b3) { return a2.f - b3.f; }); t2.push({ s: -1, f: 25001 }); var l2 = t2[0], r = t2[1], i0 = 0, i1 = 1, i22 = 2; t2[0] = { s: -1, f: l2.f + r.f, l: l2, r }; while (i1 != s2 - 1) { l2 = t2[t2[i0].f < t2[i22].f ? i0++ : i22++]; r = t2[i0 != i1 && t2[i0].f < t2[i22].f ? i0++ : i22++]; t2[i1++] = { s: -1, f: l2.f + r.f, l: l2, r }; } var maxSym = t22[0].s; for (var i2 = 1; i2 < s2; ++i2) { if (t22[i2].s > maxSym) maxSym = t22[i2].s; } var tr = new u16(maxSym + 1); var mbt = ln(t2[i1 - 1], tr, 0); if (mbt > mb) { var i2 = 0, dt2 = 0; var lft = mbt - mb, cst = 1 << lft; t22.sort(function(a2, b3) { return tr[b3.s] - tr[a2.s] || a2.f - b3.f; }); for (; i2 < s2; ++i2) { var i2_1 = t22[i2].s; if (tr[i2_1] > mb) { dt2 += cst - (1 << mbt - tr[i2_1]); tr[i2_1] = mb; } else break; } dt2 >>= lft; while (dt2 > 0) { var i2_2 = t22[i2].s; if (tr[i2_2] < mb) dt2 -= 1 << mb - tr[i2_2]++ - 1; else ++i2; } for (; i2 >= 0 && dt2; --i2) { var i2_3 = t22[i2].s; if (tr[i2_3] == mb) { --tr[i2_3]; ++dt2; } } mbt = mb; } return { t: new u8(tr), l: mbt }; }; var ln = function(n2, l2, d2) { return n2.s == -1 ? Math.max(ln(n2.l, l2, d2 + 1), ln(n2.r, l2, d2 + 1)) : l2[n2.s] = d2; }; var lc = function(c2) { var s2 = c2.length; while (s2 && !c2[--s2]) ; var cl = new u16(++s2); var cli = 0, cln = c2[0], cls = 1; var w2 = function(v2) { cl[cli++] = v2; }; for (var i2 = 1; i2 <= s2; ++i2) { if (c2[i2] == cln && i2 != s2) ++cls; else { if (!cln && cls > 2) { for (; cls > 138; cls -= 138) w2(32754); if (cls > 2) { w2(cls > 10 ? cls - 11 << 5 | 28690 : cls - 3 << 5 | 12305); cls = 0; } } else if (cls > 3) { w2(cln), --cls; for (; cls > 6; cls -= 6) w2(8304); if (cls > 2) w2(cls - 3 << 5 | 8208), cls = 0; } while (cls--) w2(cln); cls = 1; cln = c2[i2]; } } return { c: cl.subarray(0, cli), n: s2 }; }; var clen = function(cf, cl) { var l2 = 0; for (var i2 = 0; i2 < cl.length; ++i2) l2 += cf[i2] * cl[i2]; return l2; }; var wfblk = function(out, pos, dat) { var s2 = dat.length; var o2 = shft(pos + 2); out[o2] = s2 & 255; out[o2 + 1] = s2 >> 8; out[o2 + 2] = out[o2] ^ 255; out[o2 + 3] = out[o2 + 1] ^ 255; for (var i2 = 0; i2 < s2; ++i2) out[o2 + i2 + 4] = dat[i2]; return (o2 + 4 + s2) * 8; }; var wblk = function(dat, out, final, syms, lf, df, eb, li, bs, bl, p2) { wbits(out, p2++, final); ++lf[256]; var _a2 = hTree(lf, 15), dlt = _a2.t, mlb = _a2.l; var _b2 = hTree(df, 15), ddt = _b2.t, mdb = _b2.l; var _c = lc(dlt), lclt = _c.c, nlc = _c.n; var _d = lc(ddt), lcdt = _d.c, ndc = _d.n; var lcfreq = new u16(19); for (var i2 = 0; i2 < lclt.length; ++i2) ++lcfreq[lclt[i2] & 31]; for (var i2 = 0; i2 < lcdt.length; ++i2) ++lcfreq[lcdt[i2] & 31]; var _e = hTree(lcfreq, 7), lct = _e.t, mlcb = _e.l; var nlcc = 19; for (; nlcc > 4 && !lct[clim[nlcc - 1]]; --nlcc) ; var flen = bl + 5 << 3; var ftlen = clen(lf, flt) + clen(df, fdt) + eb; var dtlen = clen(lf, dlt) + clen(df, ddt) + eb + 14 + 3 * nlcc + clen(lcfreq, lct) + 2 * lcfreq[16] + 3 * lcfreq[17] + 7 * lcfreq[18]; if (bs >= 0 && flen <= ftlen && flen <= dtlen) return wfblk(out, p2, dat.subarray(bs, bs + bl)); var lm, ll, dm, dl; wbits(out, p2, 1 + (dtlen < ftlen)), p2 += 2; if (dtlen < ftlen) { lm = hMap(dlt, mlb, 0), ll = dlt, dm = hMap(ddt, mdb, 0), dl = ddt; var llm = hMap(lct, mlcb, 0); wbits(out, p2, nlc - 257); wbits(out, p2 + 5, ndc - 1); wbits(out, p2 + 10, nlcc - 4); p2 += 14; for (var i2 = 0; i2 < nlcc; ++i2) wbits(out, p2 + 3 * i2, lct[clim[i2]]); p2 += 3 * nlcc; var lcts = [lclt, lcdt]; for (var it2 = 0; it2 < 2; ++it2) { var clct = lcts[it2]; for (var i2 = 0; i2 < clct.length; ++i2) { var len = clct[i2] & 31; wbits(out, p2, llm[len]), p2 += lct[len]; if (len > 15) wbits(out, p2, clct[i2] >> 5 & 127), p2 += clct[i2] >> 12; } } } else { lm = flm, ll = flt, dm = fdm, dl = fdt; } for (var i2 = 0; i2 < li; ++i2) { var sym = syms[i2]; if (sym > 255) { var len = sym >> 18 & 31; wbits16(out, p2, lm[len + 257]), p2 += ll[len + 257]; if (len > 7) wbits(out, p2, sym >> 23 & 31), p2 += fleb[len]; var dst = sym & 31; wbits16(out, p2, dm[dst]), p2 += dl[dst]; if (dst > 3) wbits16(out, p2, sym >> 5 & 8191), p2 += fdeb[dst]; } else { wbits16(out, p2, lm[sym]), p2 += ll[sym]; } } wbits16(out, p2, lm[256]); return p2 + ll[256]; }; var deo = new i32([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]); var et = new u8(0); var dflt = function(dat, lvl, plvl, pre, post, st2) { var s2 = st2.z || dat.length; var o2 = new u8(pre + s2 + 5 * (1 + Math.ceil(s2 / 7e3)) + post); var w2 = o2.subarray(pre, o2.length - post); var lst = st2.l; var pos = (st2.r || 0) & 7; if (lvl) { if (pos) w2[0] = st2.r >> 3; var opt = deo[lvl - 1]; var n2 = opt >> 13, c2 = opt & 8191; var msk_1 = (1 << plvl) - 1; var prev = st2.p || new u16(32768), head = st2.h || new u16(msk_1 + 1); var bs1_1 = Math.ceil(plvl / 3), bs2_1 = 2 * bs1_1; var hsh = function(i3) { return (dat[i3] ^ dat[i3 + 1] << bs1_1 ^ dat[i3 + 2] << bs2_1) & msk_1; }; var syms = new i32(25e3); var lf = new u16(288), df = new u16(32); var lc_1 = 0, eb = 0, i2 = st2.i || 0, li = 0, wi = st2.w || 0, bs = 0; for (; i2 + 2 < s2; ++i2) { var hv = hsh(i2); var imod = i2 & 32767, pimod = head[hv]; prev[imod] = pimod; head[hv] = imod; if (wi <= i2) { var rem = s2 - i2; if ((lc_1 > 7e3 || li > 24576) && (rem > 423 || !lst)) { pos = wblk(dat, w2, 0, syms, lf, df, eb, li, bs, i2 - bs, pos); li = lc_1 = eb = 0, bs = i2; for (var j2 = 0; j2 < 286; ++j2) lf[j2] = 0; for (var j2 = 0; j2 < 30; ++j2) df[j2] = 0; } var l2 = 2, d2 = 0, ch_1 = c2, dif = imod - pimod & 32767; if (rem > 2 && hv == hsh(i2 - dif)) { var maxn = Math.min(n2, rem) - 1; var maxd = Math.min(32767, i2); var ml = Math.min(258, rem); while (dif <= maxd && --ch_1 && imod != pimod) { if (dat[i2 + l2] == dat[i2 + l2 - dif]) { var nl = 0; for (; nl < ml && dat[i2 + nl] == dat[i2 + nl - dif]; ++nl) ; if (nl > l2) { l2 = nl, d2 = dif; if (nl > maxn) break; var mmd = Math.min(dif, nl - 2); var md = 0; for (var j2 = 0; j2 < mmd; ++j2) { var ti = i2 - dif + j2 & 32767; var pti = prev[ti]; var cd = ti - pti & 32767; if (cd > md) md = cd, pimod = ti; } } } imod = pimod, pimod = prev[imod]; dif += imod - pimod & 32767; } } if (d2) { syms[li++] = 268435456 | revfl[l2] << 18 | revfd[d2]; var lin = revfl[l2] & 31, din = revfd[d2] & 31; eb += fleb[lin] + fdeb[din]; ++lf[257 + lin]; ++df[din]; wi = i2 + l2; ++lc_1; } else { syms[li++] = dat[i2]; ++lf[dat[i2]]; } } } for (i2 = Math.max(i2, wi); i2 < s2; ++i2) { syms[li++] = dat[i2]; ++lf[dat[i2]]; } pos = wblk(dat, w2, lst, syms, lf, df, eb, li, bs, i2 - bs, pos); if (!lst) { st2.r = pos & 7 | w2[pos / 8 | 0] << 3; pos -= 7; st2.h = head, st2.p = prev, st2.i = i2, st2.w = wi; } } else { for (var i2 = st2.w || 0; i2 < s2 + lst; i2 += 65535) { var e = i2 + 65535; if (e >= s2) { w2[pos / 8 | 0] = lst; e = s2; } pos = wfblk(w2, pos + 1, dat.subarray(i2, e)); } st2.i = s2; } return slc(o2, 0, pre + shft(pos) + post); }; var crct = function() { var t2 = new Int32Array(256); for (var i2 = 0; i2 < 256; ++i2) { var c2 = i2, k2 = 9; while (--k2) c2 = (c2 & 1 && -306674912) ^ c2 >>> 1; t2[i2] = c2; } return t2; }(); var crc = function() { var c2 = -1; return { p: function(d2) { var cr = c2; for (var i2 = 0; i2 < d2.length; ++i2) cr = crct[cr & 255 ^ d2[i2]] ^ cr >>> 8; c2 = cr; }, d: function() { return ~c2; } }; }; var adler = function() { var a2 = 1, b3 = 0; return { p: function(d2) { var n2 = a2, m2 = b3; var l2 = d2.length | 0; for (var i2 = 0; i2 != l2; ) { var e = Math.min(i2 + 2655, l2); for (; i2 < e; ++i2) m2 += n2 += d2[i2]; n2 = (n2 & 65535) + 15 * (n2 >> 16), m2 = (m2 & 65535) + 15 * (m2 >> 16); } a2 = n2, b3 = m2; }, d: function() { a2 %= 65521, b3 %= 65521; return (a2 & 255) << 24 | (a2 & 65280) << 8 | (b3 & 255) << 8 | b3 >> 8; } }; }; var dopt = function(dat, opt, pre, post, st2) { if (!st2) { st2 = { l: 1 }; if (opt.dictionary) { var dict = opt.dictionary.subarray(-32768); var newDat = new u8(dict.length + dat.length); newDat.set(dict); newDat.set(dat, dict.length); dat = newDat; st2.w = dict.length; } } return dflt(dat, opt.level == null ? 6 : opt.level, opt.mem == null ? st2.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(dat.length))) * 1.5) : 20 : 12 + opt.mem, pre, post, st2); }; var mrg = function(a2, b3) { var o2 = {}; for (var k2 in a2) o2[k2] = a2[k2]; for (var k2 in b3) o2[k2] = b3[k2]; return o2; }; var wcln = function(fn, fnStr, td2) { var dt2 = fn(); var st2 = fn.toString(); var ks = st2.slice(st2.indexOf("[") + 1, st2.lastIndexOf("]")).replace(/\s+/g, "").split(","); for (var i2 = 0; i2 < dt2.length; ++i2) { var v2 = dt2[i2], k2 = ks[i2]; if (typeof v2 == "function") { fnStr += ";" + k2 + "="; var st_1 = v2.toString(); if (v2.prototype) { if (st_1.indexOf("[native code]") != -1) { var spInd = st_1.indexOf(" ", 8) + 1; fnStr += st_1.slice(spInd, st_1.indexOf("(", spInd)); } else { fnStr += st_1; for (var t2 in v2.prototype) fnStr += ";" + k2 + ".prototype." + t2 + "=" + v2.prototype[t2].toString(); } } else fnStr += st_1; } else td2[k2] = v2; } return fnStr; }; var ch = []; var cbfs = function(v2) { var tl = []; for (var k2 in v2) { if (v2[k2].buffer) { tl.push((v2[k2] = new v2[k2].constructor(v2[k2])).buffer); } } return tl; }; var wrkr = function(fns, init, id, cb) { if (!ch[id]) { var fnStr = "", td_1 = {}, m2 = fns.length - 1; for (var i2 = 0; i2 < m2; ++i2) fnStr = wcln(fns[i2], fnStr, td_1); ch[id] = { c: wcln(fns[m2], fnStr, td_1), e: td_1 }; } var td2 = mrg({}, ch[id].e); return wk(ch[id].c + ";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage=" + init.toString() + "}", id, td2, cbfs(td2), cb); }; var bInflt = function() { return [u8, u16, i32, fleb, fdeb, clim, fl, fd, flrm, fdrm, rev, ec, hMap, max, bits, bits16, shft, slc, err, inflt, inflateSync, pbf, gopt]; }; var bDflt = function() { return [u8, u16, i32, fleb, fdeb, clim, revfl, revfd, flm, flt, fdm, fdt, rev, deo, et, hMap, wbits, wbits16, hTree, ln, lc, clen, wfblk, wblk, shft, slc, dflt, dopt, deflateSync, pbf]; }; var guze = function() { return [gzs, gzl]; }; var zule = function() { return [zls]; }; var pbf = function(msg) { return postMessage(msg, [msg.buffer]); }; var gopt = function(o2) { return o2 && { out: o2.size && new u8(o2.size), dictionary: o2.dictionary }; }; var astrm = function(strm) { strm.ondata = function(dat, final) { return postMessage([dat, final], [dat.buffer]); }; return function(ev) { if (ev.data.length) { strm.push(ev.data[0], ev.data[1]); postMessage([ev.data[0].length]); } else strm.flush(); }; }; var astrmify = function(fns, strm, opts, init, id, flush, ext) { var t2; var w2 = wrkr(fns, init, id, function(err2, dat) { if (err2) w2.terminate(), strm.ondata.call(strm, err2); else if (!Array.isArray(dat)) ext(dat); else if (dat.length == 1) { strm.queuedSize -= dat[0]; if (strm.ondrain) strm.ondrain(dat[0]); } else { if (dat[1]) w2.terminate(); strm.ondata.call(strm, err2, dat[0], dat[1]); } }); w2.postMessage(opts); strm.queuedSize = 0; strm.push = function(d2, f2) { if (!strm.ondata) err(5); if (t2) strm.ondata(err(4, 0, 1), null, !!f2); strm.queuedSize += d2.length; w2.postMessage([d2, t2 = f2], [d2.buffer]); }; strm.terminate = function() { w2.terminate(); }; if (flush) { strm.flush = function() { w2.postMessage([]); }; } }; var b2 = function(d2, b3) { return d2[b3] | d2[b3 + 1] << 8; }; var b4 = function(d2, b3) { return (d2[b3] | d2[b3 + 1] << 8 | d2[b3 + 2] << 16 | d2[b3 + 3] << 24) >>> 0; }; var b8 = function(d2, b3) { return b4(d2, b3) + b4(d2, b3 + 4) * 4294967296; }; var wbytes = function(d2, b3, v2) { for (; v2; ++b3) d2[b3] = v2, v2 >>>= 8; }; var gzh = function(c2, o2) { var fn = o2.filename; c2[0] = 31, c2[1] = 139, c2[2] = 8, c2[8] = o2.level < 2 ? 4 : o2.level == 9 ? 2 : 0, c2[9] = 3; if (o2.mtime != 0) wbytes(c2, 4, Math.floor(new Date(o2.mtime || Date.now()) / 1e3)); if (fn) { c2[3] = 8; for (var i2 = 0; i2 <= fn.length; ++i2) c2[i2 + 10] = fn.charCodeAt(i2); } }; var gzs = function(d2) { if (d2[0] != 31 || d2[1] != 139 || d2[2] != 8) err(6, "invalid gzip data"); var flg = d2[3]; var st2 = 10; if (flg & 4) st2 += (d2[10] | d2[11] << 8) + 2; for (var zs = (flg >> 3 & 1) + (flg >> 4 & 1); zs > 0; zs -= !d2[st2++]) ; return st2 + (flg & 2); }; var gzl = function(d2) { var l2 = d2.length; return (d2[l2 - 4] | d2[l2 - 3] << 8 | d2[l2 - 2] << 16 | d2[l2 - 1] << 24) >>> 0; }; var gzhl = function(o2) { return 10 + (o2.filename ? o2.filename.length + 1 : 0); }; var zlh = function(c2, o2) { var lv = o2.level, fl2 = lv == 0 ? 0 : lv < 6 ? 1 : lv == 9 ? 3 : 2; c2[0] = 120, c2[1] = fl2 << 6 | (o2.dictionary && 32); c2[1] |= 31 - (c2[0] << 8 | c2[1]) % 31; if (o2.dictionary) { var h2 = adler(); h2.p(o2.dictionary); wbytes(c2, 2, h2.d()); } }; var zls = function(d2, dict) { if ((d2[0] & 15) != 8 || d2[0] >> 4 > 7 || (d2[0] << 8 | d2[1]) % 31) err(6, "invalid zlib data"); if ((d2[1] >> 5 & 1) == +!dict) err(6, "invalid zlib data: " + (d2[1] & 32 ? "need" : "unexpected") + " dictionary"); return (d2[1] >> 3 & 4) + 2; }; function StrmOpt(opts, cb) { if (typeof opts == "function") cb = opts, opts = {}; this.ondata = cb; return opts; } var Deflate = function() { function Deflate2(opts, cb) { if (typeof opts == "function") cb = opts, opts = {}; this.ondata = cb; this.o = opts || {}; this.s = { l: 0, i: 32768, w: 32768, z: 32768 }; this.b = new u8(98304); if (this.o.dictionary) { var dict = this.o.dictionary.subarray(-32768); this.b.set(dict, 32768 - dict.length); this.s.i = 32768 - dict.length; } } Deflate2.prototype.p = function(c2, f2) { this.ondata(dopt(c2, this.o, 0, 0, this.s), f2); }; Deflate2.prototype.push = function(chunk, final) { if (!this.ondata) err(5); if (this.s.l) err(4); var endLen = chunk.length + this.s.z; if (endLen > this.b.length) { if (endLen > 2 * this.b.length - 32768) { var newBuf = new u8(endLen & -32768); newBuf.set(this.b.subarray(0, this.s.z)); this.b = newBuf; } var split = this.b.length - this.s.z; this.b.set(chunk.subarray(0, split), this.s.z); this.s.z = this.b.length; this.p(this.b, false); this.b.set(this.b.subarray(-32768)); this.b.set(chunk.subarray(split), 32768); this.s.z = chunk.length - split + 32768; this.s.i = 32766, this.s.w = 32768; } else { this.b.set(chunk, this.s.z); this.s.z += chunk.length; } this.s.l = final & 1; if (this.s.z > this.s.w + 8191 || final) { this.p(this.b, final || false); this.s.w = this.s.i, this.s.i -= 2; } }; Deflate2.prototype.flush = function() { if (!this.ondata) err(5); if (this.s.l) err(4); this.p(this.b, false); this.s.w = this.s.i, this.s.i -= 2; }; return Deflate2; }(); var AsyncDeflate = /* @__PURE__ */ function() { function AsyncDeflate2(opts, cb) { astrmify([ bDflt, function() { return [astrm, Deflate]; } ], this, StrmOpt.call(this, opts, cb), function(ev) { var strm = new Deflate(ev.data); onmessage = astrm(strm); }, 6, 1); } return AsyncDeflate2; }(); function deflateSync(data, opts) { return dopt(data, opts || {}, 0, 0); } var Inflate = function() { function Inflate2(opts, cb) { if (typeof opts == "function") cb = opts, opts = {}; this.ondata = cb; var dict = opts && opts.dictionary && opts.dictionary.subarray(-32768); this.s = { i: 0, b: dict ? dict.length : 0 }; this.o = new u8(32768); this.p = new u8(0); if (dict) this.o.set(dict); } Inflate2.prototype.e = function(c2) { if (!this.ondata) err(5); if (this.d) err(4); if (!this.p.length) this.p = c2; else if (c2.length) { var n2 = new u8(this.p.length + c2.length); n2.set(this.p), n2.set(c2, this.p.length), this.p = n2; } }; Inflate2.prototype.c = function(final) { this.s.i = +(this.d = final || false); var bts = this.s.b; var dt2 = inflt(this.p, this.s, this.o); this.ondata(slc(dt2, bts, this.s.b), this.d); this.o = slc(dt2, this.s.b - 32768), this.s.b = this.o.length; this.p = slc(this.p, this.s.p / 8 | 0), this.s.p &= 7; }; Inflate2.prototype.push = function(chunk, final) { this.e(chunk), this.c(final); }; return Inflate2; }(); var AsyncInflate = /* @__PURE__ */ function() { function AsyncInflate2(opts, cb) { astrmify([ bInflt, function() { return [astrm, Inflate]; } ], this, StrmOpt.call(this, opts, cb), function(ev) { var strm = new Inflate(ev.data); onmessage = astrm(strm); }, 7, 0); } return AsyncInflate2; }(); function inflateSync(data, opts) { return inflt(data, { i: 2 }, opts && opts.out, opts && opts.dictionary); } var Gzip = function() { function Gzip2(opts, cb) { this.c = crc(); this.l = 0; this.v = 1; Deflate.call(this, opts, cb); } Gzip2.prototype.push = function(chunk, final) { this.c.p(chunk); this.l += chunk.length; Deflate.prototype.push.call(this, chunk, final); }; Gzip2.prototype.p = function(c2, f2) { var raw = dopt(c2, this.o, this.v && gzhl(this.o), f2 && 8, this.s); if (this.v) gzh(raw, this.o), this.v = 0; if (f2) wbytes(raw, raw.length - 8, this.c.d()), wbytes(raw, raw.length - 4, this.l); this.ondata(raw, f2); }; Gzip2.prototype.flush = function() { Deflate.prototype.flush.call(this); }; return Gzip2; }(); var Gunzip = function() { function Gunzip2(opts, cb) { this.v = 1; this.r = 0; Inflate.call(this, opts, cb); } Gunzip2.prototype.push = function(chunk, final) { Inflate.prototype.e.call(this, chunk); this.r += chunk.length; if (this.v) { var p2 = this.p.subarray(this.v - 1); var s2 = p2.length > 3 ? gzs(p2) : 4; if (s2 > p2.length) { if (!final) return; } else if (this.v > 1 && this.onmember) { this.onmember(this.r - p2.length); } this.p = p2.subarray(s2), this.v = 0; } Inflate.prototype.c.call(this, final); if (this.s.f && !this.s.l && !final) { this.v = shft(this.s.p) + 9; this.s = { i: 0 }; this.o = new u8(0); this.push(new u8(0), final); } }; return Gunzip2; }(); var AsyncGunzip = /* @__PURE__ */ function() { function AsyncGunzip2(opts, cb) { var _this = this; astrmify([ bInflt, guze, function() { return [astrm, Inflate, Gunzip]; } ], this, StrmOpt.call(this, opts, cb), function(ev) { var strm = new Gunzip(ev.data); strm.onmember = function(offset) { return postMessage(offset); }; onmessage = astrm(strm); }, 9, 0, function(offset) { return _this.onmember && _this.onmember(offset); }); } return AsyncGunzip2; }(); var Zlib = function() { function Zlib2(opts, cb) { this.c = adler(); this.v = 1; Deflate.call(this, opts, cb); } Zlib2.prototype.push = function(chunk, final) { this.c.p(chunk); Deflate.prototype.push.call(this, chunk, final); }; Zlib2.prototype.p = function(c2, f2) { var raw = dopt(c2, this.o, this.v && (this.o.dictionary ? 6 : 2), f2 && 4, this.s); if (this.v) zlh(raw, this.o), this.v = 0; if (f2) wbytes(raw, raw.length - 4, this.c.d()); this.ondata(raw, f2); }; Zlib2.prototype.flush = function() { Deflate.prototype.flush.call(this); }; return Zlib2; }(); function zlibSync(data, opts) { if (!opts) opts = {}; var a2 = adler(); a2.p(data); var d2 = dopt(data, opts, opts.dictionary ? 6 : 2, 4); return zlh(d2, opts), wbytes(d2, d2.length - 4, a2.d()), d2; } var Unzlib = function() { function Unzlib2(opts, cb) { Inflate.call(this, opts, cb); this.v = opts && opts.dictionary ? 2 : 1; } Unzlib2.prototype.push = function(chunk, final) { Inflate.prototype.e.call(this, chunk); if (this.v) { if (this.p.length < 6 && !final) return; this.p = this.p.subarray(zls(this.p, this.v - 1)), this.v = 0; } if (final) { if (this.p.length < 4) err(6, "invalid zlib data"); this.p = this.p.subarray(0, -4); } Inflate.prototype.c.call(this, final); }; return Unzlib2; }(); var AsyncUnzlib = /* @__PURE__ */ function() { function AsyncUnzlib2(opts, cb) { astrmify([ bInflt, zule, function() { return [astrm, Inflate, Unzlib]; } ], this, StrmOpt.call(this, opts, cb), function(ev) { var strm = new Unzlib(ev.data); onmessage = astrm(strm); }, 11, 0); } return AsyncUnzlib2; }(); function unzlibSync(data, opts) { return inflt(data.subarray(zls(data, opts && opts.dictionary), -4), { i: 2 }, opts && opts.out, opts && opts.dictionary); } var Decompress = function() { function Decompress2(opts, cb) { this.o = StrmOpt.call(this, opts, cb) || {}; this.G = Gunzip; this.I = Inflate; this.Z = Unzlib; } Decompress2.prototype.i = function() { var _this = this; this.s.ondata = function(dat, final) { _this.ondata(dat, final); }; }; Decompress2.prototype.push = function(chunk, final) { if (!this.ondata) err(5); if (!this.s) { if (this.p && this.p.length) { var n2 = new u8(this.p.length + chunk.length); n2.set(this.p), n2.set(chunk, this.p.length); } else this.p = chunk; if (this.p.length > 2) { this.s = this.p[0] == 31 && this.p[1] == 139 && this.p[2] == 8 ? new this.G(this.o) : (this.p[0] & 15) != 8 || this.p[0] >> 4 > 7 || (this.p[0] << 8 | this.p[1]) % 31 ? new this.I(this.o) : new this.Z(this.o); this.i(); this.s.push(this.p, final); this.p = null; } } else this.s.push(chunk, final); }; return Decompress2; }(); var AsyncDecompress = function() { function AsyncDecompress2(opts, cb) { Decompress.call(this, opts, cb); this.queuedSize = 0; this.G = AsyncGunzip; this.I = AsyncInflate; this.Z = AsyncUnzlib; } AsyncDecompress2.prototype.i = function() { var _this = this; this.s.ondata = function(err2, dat, final) { _this.ondata(err2, dat, final); }; this.s.ondrain = function(size) { _this.queuedSize -= size; if (_this.ondrain) _this.ondrain(size); }; }; AsyncDecompress2.prototype.push = function(chunk, final) { this.queuedSize += chunk.length; Decompress.prototype.push.call(this, chunk, final); }; return AsyncDecompress2; }(); var te = typeof TextEncoder != "undefined" && new TextEncoder(); var td = typeof TextDecoder != "undefined" && new TextDecoder(); var tds = 0; try { td.decode(et, { stream: true }); tds = 1; } catch (e) { } var dutf8 = function(d2) { for (var r = "", i2 = 0; ; ) { var c2 = d2[i2++]; var eb = (c2 > 127) + (c2 > 223) + (c2 > 239); if (i2 + eb > d2.length) return { s: r, r: slc(d2, i2 - 1) }; if (!eb) r += String.fromCharCode(c2); else if (eb == 3) { c2 = ((c2 & 15) << 18 | (d2[i2++] & 63) << 12 | (d2[i2++] & 63) << 6 | d2[i2++] & 63) - 65536, r += String.fromCharCode(55296 | c2 >> 10, 56320 | c2 & 1023); } else if (eb & 1) r += String.fromCharCode((c2 & 31) << 6 | d2[i2++] & 63); else r += String.fromCharCode((c2 & 15) << 12 | (d2[i2++] & 63) << 6 | d2[i2++] & 63); } }; var DecodeUTF8 = function() { function DecodeUTF82(cb) { this.ondata = cb; if (tds) this.t = new TextDecoder(); else this.p = et; } DecodeUTF82.prototype.push = function(chunk, final) { if (!this.ondata) err(5); final = !!final; if (this.t) { this.ondata(this.t.decode(chunk, { stream: true }), final); if (final) { if (this.t.decode().length) err(8); this.t = null; } return; } if (!this.p) err(4); var dat = new u8(this.p.length + chunk.length); dat.set(this.p); dat.set(chunk, this.p.length); var _a2 = dutf8(dat), s2 = _a2.s, r = _a2.r; if (final) { if (r.length) err(8); this.p = null; } else this.p = r; this.ondata(s2, final); }; return DecodeUTF82; }(); var EncodeUTF8 = function() { function EncodeUTF82(cb) { this.ondata = cb; } EncodeUTF82.prototype.push = function(chunk, final) { if (!this.ondata) err(5); if (this.d) err(4); this.ondata(strToU8(chunk), this.d = final || false); }; return EncodeUTF82; }(); function strToU8(str, latin1) { if (latin1) { var ar_1 = new u8(str.length); for (var i2 = 0; i2 < str.length; ++i2) ar_1[i2] = str.charCodeAt(i2); return ar_1; } if (te) return te.encode(str); var l2 = str.length; var ar = new u8(str.length + (str.length >> 1)); var ai = 0; var w2 = function(v2) { ar[ai++] = v2; }; for (var i2 = 0; i2 < l2; ++i2) { if (ai + 5 > ar.length) { var n2 = new u8(ai + 8 + (l2 - i2 << 1)); n2.set(ar); ar = n2; } var c2 = str.charCodeAt(i2); if (c2 < 128 || latin1) w2(c2); else if (c2 < 2048) w2(192 | c2 >> 6), w2(128 | c2 & 63); else if (c2 > 55295 && c2 < 57344) c2 = 65536 + (c2 & 1023 << 10) | str.charCodeAt(++i2) & 1023, w2(240 | c2 >> 18), w2(128 | c2 >> 12 & 63), w2(128 | c2 >> 6 & 63), w2(128 | c2 & 63); else w2(224 | c2 >> 12), w2(128 | c2 >> 6 & 63), w2(128 | c2 & 63); } return slc(ar, 0, ai); } function strFromU8(dat, latin1) { if (latin1) { var r = ""; for (var i2 = 0; i2 < dat.length; i2 += 16384) r += String.fromCharCode.apply(null, dat.subarray(i2, i2 + 16384)); return r; } else if (td) { return td.decode(dat); } else { var _a2 = dutf8(dat), s2 = _a2.s, r = _a2.r; if (r.length) err(8); return s2; } } var dbf = function(l2) { return l2 == 1 ? 3 : l2 < 6 ? 2 : l2 == 9 ? 1 : 0; }; var z64e = function(d2, b3) { for (; b2(d2, b3) != 1; b3 += 4 + b2(d2, b3 + 2)) ; return [b8(d2, b3 + 12), b8(d2, b3 + 4), b8(d2, b3 + 20)]; }; var exfl = function(ex) { var le2 = 0; if (ex) { for (var k2 in ex) { var l2 = ex[k2].length; if (l2 > 65535) err(9); le2 += l2 + 4; } } return le2; }; var wzh = function(d2, b3, f2, fn, u2, c2, ce2, co) { var fl2 = fn.length, ex = f2.extra, col = co && co.length; var exl = exfl(ex); wbytes(d2, b3, ce2 != null ? 33639248 : 67324752), b3 += 4; if (ce2 != null) d2[b3++] = 20, d2[b3++] = f2.os; d2[b3] = 20, b3 += 2; d2[b3++] = f2.flag << 1 | (c2 < 0 && 8), d2[b3++] = u2 && 8; d2[b3++] = f2.compression & 255, d2[b3++] = f2.compression >> 8; var dt2 = new Date(f2.mtime == null ? Date.now() : f2.mtime), y2 = dt2.getFullYear() - 1980; if (y2 < 0 || y2 > 119) err(10); wbytes(d2, b3, y2 << 25 | dt2.getMonth() + 1 << 21 | dt2.getDate() << 16 | dt2.getHours() << 11 | dt2.getMinutes() << 5 | dt2.getSeconds() >> 1), b3 += 4; if (c2 != -1) { wbytes(d2, b3, f2.crc); wbytes(d2, b3 + 4, c2 < 0 ? -c2 - 2 : c2); wbytes(d2, b3 + 8, f2.size); } wbytes(d2, b3 + 12, fl2); wbytes(d2, b3 + 14, exl), b3 += 16; if (ce2 != null) { wbytes(d2, b3, col); wbytes(d2, b3 + 6, f2.attrs); wbytes(d2, b3 + 10, ce2), b3 += 14; } d2.set(fn, b3); b3 += fl2; if (exl) { for (var k2 in ex) { var exf = ex[k2], l2 = exf.length; wbytes(d2, b3, +k2); wbytes(d2, b3 + 2, l2); d2.set(exf, b3 + 4), b3 += 4 + l2; } } if (col) d2.set(co, b3), b3 += col; return b3; }; var wzf = function(o2, b3, c2, d2, e) { wbytes(o2, b3, 101010256); wbytes(o2, b3 + 8, c2); wbytes(o2, b3 + 10, c2); wbytes(o2, b3 + 12, d2); wbytes(o2, b3 + 16, e); }; var ZipPassThrough = function() { function ZipPassThrough2(filename) { this.filename = filename; this.c = crc(); this.size = 0; this.compression = 0; } ZipPassThrough2.prototype.process = function(chunk, final) { this.ondata(null, chunk, final); }; ZipPassThrough2.prototype.push = function(chunk, final) { if (!this.ondata) err(5); this.c.p(chunk); this.size += chunk.length; if (final) this.crc = this.c.d(); this.process(chunk, final || false); }; return ZipPassThrough2; }(); var ZipDeflate = function() { function ZipDeflate2(filename, opts) { var _this = this; if (!opts) opts = {}; ZipPassThrough.call(this, filename); this.d = new Deflate(opts, function(dat, final) { _this.ondata(null, dat, final); }); this.compression = 8; this.flag = dbf(opts.level); } ZipDeflate2.prototype.process = function(chunk, final) { try { this.d.push(chunk, final); } catch (e) { this.ondata(e, null, final); } }; ZipDeflate2.prototype.push = function(chunk, final) { ZipPassThrough.prototype.push.call(this, chunk, final); }; return ZipDeflate2; }(); var AsyncZipDeflate = function() { function AsyncZipDeflate2(filename, opts) { var _this = this; if (!opts) opts = {}; ZipPassThrough.call(this, filename); this.d = new AsyncDeflate(opts, function(err2, dat, final) { _this.ondata(err2, dat, final); }); this.compression = 8; this.flag = dbf(opts.level); this.terminate = this.d.terminate; } AsyncZipDeflate2.prototype.process = function(chunk, final) { this.d.push(chunk, final); }; AsyncZipDeflate2.prototype.push = function(chunk, final) { ZipPassThrough.prototype.push.call(this, chunk, final); }; return AsyncZipDeflate2; }(); var Zip = function() { function Zip2(cb) { this.ondata = cb; this.u = []; this.d = 1; } Zip2.prototype.add = function(file) { var _this = this; if (!this.ondata) err(5); if (this.d & 2) this.ondata(err(4 + (this.d & 1) * 8, 0, 1), null, false); else { var f2 = strToU8(file.filename), fl_1 = f2.length; var com = file.comment, o2 = com && strToU8(com); var u2 = fl_1 != file.filename.length || o2 && com.length != o2.length; var hl_1 = fl_1 + exfl(file.extra) + 30; if (fl_1 > 65535) this.ondata(err(11, 0, 1), null, false); var header = new u8(hl_1); wzh(header, 0, file, f2, u2, -1); var chks_1 = [header]; var pAll_1 = function() { for (var _i = 0, chks_2 = chks_1; _i < chks_2.length; _i++) { var chk = chks_2[_i]; _this.ondata(null, chk, false); } chks_1 = []; }; var tr_1 = this.d; this.d = 0; var ind_1 = this.u.length; var uf_1 = mrg(file, { f: f2, u: u2, o: o2, t: function() { if (file.terminate) file.terminate(); }, r: function() { pAll_1(); if (tr_1) { var nxt = _this.u[ind_1 + 1]; if (nxt) nxt.r(); else _this.d = 1; } tr_1 = 1; } }); var cl_1 = 0; file.ondata = function(err2, dat, final) { if (err2) { _this.ondata(err2, dat, final); _this.terminate(); } else { cl_1 += dat.length; chks_1.push(dat); if (final) { var dd = new u8(16); wbytes(dd, 0, 134695760); wbytes(dd, 4, file.crc); wbytes(dd, 8, cl_1); wbytes(dd, 12, file.size); chks_1.push(dd); uf_1.c = cl_1, uf_1.b = hl_1 + cl_1 + 16, uf_1.crc = file.crc, uf_1.size = file.size; if (tr_1) uf_1.r(); tr_1 = 1; } else if (tr_1) pAll_1(); } }; this.u.push(uf_1); } }; Zip2.prototype.end = function() { var _this = this; if (this.d & 2) { this.ondata(err(4 + (this.d & 1) * 8, 0, 1), null, true); return; } if (this.d) this.e(); else this.u.push({ r: function() { if (!(_this.d & 1)) return; _this.u.splice(-1, 1); _this.e(); }, t: function() { } }); this.d = 3; }; Zip2.prototype.e = function() { var bt2 = 0, l2 = 0, tl = 0; for (var _i = 0, _a2 = this.u; _i < _a2.length; _i++) { var f2 = _a2[_i]; tl += 46 + f2.f.length + exfl(f2.extra) + (f2.o ? f2.o.length : 0); } var out = new u8(tl + 22); for (var _b2 = 0, _c = this.u; _b2 < _c.length; _b2++) { var f2 = _c[_b2]; wzh(out, bt2, f2, f2.f, f2.u, -f2.c - 2, l2, f2.o); bt2 += 46 + f2.f.length + exfl(f2.extra) + (f2.o ? f2.o.length : 0), l2 += f2.b; } wzf(out, bt2, this.u.length, tl, l2); this.ondata(null, out, true); this.d = 2; }; Zip2.prototype.terminate = function() { for (var _i = 0, _a2 = this.u; _i < _a2.length; _i++) { var f2 = _a2[_i]; f2.t(); } this.d = 2; }; return Zip2; }(); var UnzipPassThrough = function() { function UnzipPassThrough2() { } UnzipPassThrough2.prototype.push = function(data, final) { this.ondata(null, data, final); }; UnzipPassThrough2.compression = 0; return UnzipPassThrough2; }(); var UnzipInflate = function() { function UnzipInflate2() { var _this = this; this.i = new Inflate(function(dat, final) { _this.ondata(null, dat, final); }); } UnzipInflate2.prototype.push = function(data, final) { try { this.i.push(data, final); } catch (e) { this.ondata(e, null, final); } }; UnzipInflate2.compression = 8; return UnzipInflate2; }(); var AsyncUnzipInflate = function() { function AsyncUnzipInflate2(_2, sz) { var _this = this; if (sz < 32e4) { this.i = new Inflate(function(dat, final) { _this.ondata(null, dat, final); }); } else { this.i = new AsyncInflate(function(err2, dat, final) { _this.ondata(err2, dat, final); }); this.terminate = this.i.terminate; } } AsyncUnzipInflate2.prototype.push = function(data, final) { if (this.i.terminate) data = slc(data, 0); this.i.push(data, final); }; AsyncUnzipInflate2.compression = 8; return AsyncUnzipInflate2; }(); var Unzip = function() { function Unzip2(cb) { this.onfile = cb; this.k = []; this.o = { 0: UnzipPassThrough }; this.p = et; } Unzip2.prototype.push = function(chunk, final) { var _this = this; if (!this.onfile) err(5); if (!this.p) err(4); if (this.c > 0) { var len = Math.min(this.c, chunk.length); var toAdd = chunk.subarray(0, len); this.c -= len; if (this.d) this.d.push(toAdd, !this.c); else this.k[0].push(toAdd); chunk = chunk.subarray(len); if (chunk.length) return this.push(chunk, final); } else { var f2 = 0, i2 = 0, is = void 0, buf = void 0; if (!this.p.length) buf = chunk; else if (!chunk.length) buf = this.p; else { buf = new u8(this.p.length + chunk.length); buf.set(this.p), buf.set(chunk, this.p.length); } var l2 = buf.length, oc = this.c, add = oc && this.d; var _loop_2 = function() { var _a2; var sig = b4(buf, i2); if (sig == 67324752) { f2 = 1, is = i2; this_1.d = null; this_1.c = 0; var bf = b2(buf, i2 + 6), cmp_1 = b2(buf, i2 + 8), u2 = bf & 2048, dd = bf & 8, fnl = b2(buf, i2 + 26), es = b2(buf, i2 + 28); if (l2 > i2 + 30 + fnl + es) { var chks_3 = []; this_1.k.unshift(chks_3); f2 = 2; var sc_1 = b4(buf, i2 + 18), su_1 = b4(buf, i2 + 22); var fn_1 = strFromU8(buf.subarray(i2 + 30, i2 += 30 + fnl), !u2); if (sc_1 == 4294967295) { _a2 = dd ? [-2] : z64e(buf, i2), sc_1 = _a2[0], su_1 = _a2[1]; } else if (dd) sc_1 = -1; i2 += es; this_1.c = sc_1; var d_1; var file_1 = { name: fn_1, compression: cmp_1, start: function() { if (!file_1.ondata) err(5); if (!sc_1) file_1.ondata(null, et, true); else { var ctr = _this.o[cmp_1]; if (!ctr) file_1.ondata(err(14, "unknown compression type " + cmp_1, 1), null, false); d_1 = sc_1 < 0 ? new ctr(fn_1) : new ctr(fn_1, sc_1, su_1); d_1.ondata = function(err2, dat3, final2) { file_1.ondata(err2, dat3, final2); }; for (var _i = 0, chks_4 = chks_3; _i < chks_4.length; _i++) { var dat2 = chks_4[_i]; d_1.push(dat2, false); } if (_this.k[0] == chks_3 && _this.c) _this.d = d_1; else d_1.push(et, true); } }, terminate: function() { if (d_1 && d_1.terminate) d_1.terminate(); } }; if (sc_1 >= 0) file_1.size = sc_1, file_1.originalSize = su_1; this_1.onfile(file_1); } return "break"; } else if (oc) { if (sig == 134695760) { is = i2 += 12 + (oc == -2 && 8), f2 = 3, this_1.c = 0; return "break"; } else if (sig == 33639248) { is = i2 -= 4, f2 = 3, this_1.c = 0; return "break"; } } }; var this_1 = this; for (; i2 < l2 - 4; ++i2) { var state_1 = _loop_2(); if (state_1 === "break") break; } this.p = et; if (oc < 0) { var dat = f2 ? buf.subarray(0, is - 12 - (oc == -2 && 8) - (b4(buf, is - 16) == 134695760 && 4)) : buf.subarray(0, i2); if (add) add.push(dat, !!f2); else this.k[+(f2 == 2)].push(dat); } if (f2 & 2) return this.push(buf.subarray(i2), final); this.p = buf.subarray(i2); } if (final) { if (this.c) err(13); this.p = null; } }; Unzip2.prototype.register = function(decoder) { this.o[decoder.compression] = decoder; }; return Unzip2; }(); // node_modules/jspdf/dist/jspdf.es.min.js var n = /* @__PURE__ */ function() { return "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this; }(); function i() { n.console && "function" == typeof n.console.log && n.console.log.apply(n.console, arguments); } var a = { log: i, warn: function(t2) { n.console && ("function" == typeof n.console.warn ? n.console.warn.apply(n.console, arguments) : i.call(null, arguments)); }, error: function(t2) { n.console && ("function" == typeof n.console.error ? n.console.error.apply(n.console, arguments) : i(t2)); } }; function o(t2, e, r) { var n2 = new XMLHttpRequest(); n2.open("GET", t2), n2.responseType = "blob", n2.onload = function() { l(n2.response, e, r); }, n2.onerror = function() { a.error("could not download file"); }, n2.send(); } function s(t2) { var e = new XMLHttpRequest(); e.open("HEAD", t2, false); try { e.send(); } catch (t3) { } return e.status >= 200 && e.status <= 299; } function c(t2) { try { t2.dispatchEvent(new MouseEvent("click")); } catch (r) { var e = document.createEvent("MouseEvents"); e.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null), t2.dispatchEvent(e); } } var u; var h; var l = n.saveAs || ("object" !== ("undefined" == typeof window ? "undefined" : _typeof(window)) || window !== n ? function() { } : "undefined" != typeof HTMLAnchorElement && "download" in HTMLAnchorElement.prototype ? function(t2, e, r) { var i2 = n.URL || n.webkitURL, a2 = document.createElement("a"); e = e || t2.name || "download", a2.download = e, a2.rel = "noopener", "string" == typeof t2 ? (a2.href = t2, a2.origin !== location.origin ? s(a2.href) ? o(t2, e, r) : c(a2, a2.target = "_blank") : c(a2)) : (a2.href = i2.createObjectURL(t2), setTimeout(function() { i2.revokeObjectURL(a2.href); }, 4e4), setTimeout(function() { c(a2); }, 0)); } : "msSaveOrOpenBlob" in navigator ? function(e, r, n2) { if (r = r || e.name || "download", "string" == typeof e) if (s(e)) o(e, r, n2); else { var i2 = document.createElement("a"); i2.href = e, i2.target = "_blank", setTimeout(function() { c(i2); }); } else navigator.msSaveOrOpenBlob(function(e2, r2) { return void 0 === r2 ? r2 = { autoBom: false } : "object" !== _typeof(r2) && (a.warn("Deprecated: Expected third argument to be a object"), r2 = { autoBom: !r2 }), r2.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e2.type) ? new Blob([String.fromCharCode(65279), e2], { type: e2.type }) : e2; }(e, n2), r); } : function(e, r, i2, a2) { if ((a2 = a2 || open("", "_blank")) && (a2.document.title = a2.document.body.innerText = "downloading..."), "string" == typeof e) return o(e, r, i2); var s2 = "application/octet-stream" === e.type, c2 = /constructor/i.test(n.HTMLElement) || n.safari, u2 = /CriOS\/[\d]+/.test(navigator.userAgent); if ((u2 || s2 && c2) && "object" === ("undefined" == typeof FileReader ? "undefined" : _typeof(FileReader))) { var h2 = new FileReader(); h2.onloadend = function() { var t2 = h2.result; t2 = u2 ? t2 : t2.replace(/^data:[^;]*;/, "data:attachment/file;"), a2 ? a2.location.href = t2 : location = t2, a2 = null; }, h2.readAsDataURL(e); } else { var l2 = n.URL || n.webkitURL, f2 = l2.createObjectURL(e); a2 ? a2.location = f2 : location.href = f2, a2 = null, setTimeout(function() { l2.revokeObjectURL(f2); }, 4e4); } }); function f(t2) { var e; t2 = t2 || "", this.ok = false, "#" == t2.charAt(0) && (t2 = t2.substr(1, 6)); t2 = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "00ffff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000000", blanchedalmond: "ffebcd", blue: "0000ff", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "00ffff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dodgerblue: "1e90ff", feldspar: "d19275", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "ff00ff", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgrey: "d3d3d3", lightgreen: "90ee90", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslateblue: "8470ff", lightslategray: "778899", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "00ff00", limegreen: "32cd32", linen: "faf0e6", magenta: "ff00ff", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370d8", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "d87093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", red: "ff0000", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", violetred: "d02090", wheat: "f5deb3", white: "ffffff", whitesmoke: "f5f5f5", yellow: "ffff00", yellowgreen: "9acd32" }[t2 = (t2 = t2.replace(/ /g, "")).toLowerCase()] || t2; for (var r = [{ re: /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/, example: ["rgb(123, 234, 45)", "rgb(255,234,245)"], process: function(t3) { return [parseInt(t3[1]), parseInt(t3[2]), parseInt(t3[3])]; } }, { re: /^(\w{2})(\w{2})(\w{2})$/, example: ["#00ff00", "336699"], process: function(t3) { return [parseInt(t3[1], 16), parseInt(t3[2], 16), parseInt(t3[3], 16)]; } }, { re: /^(\w{1})(\w{1})(\w{1})$/, example: ["#fb0", "f0f"], process: function(t3) { return [parseInt(t3[1] + t3[1], 16), parseInt(t3[2] + t3[2], 16), parseInt(t3[3] + t3[3], 16)]; } }], n2 = 0; n2 < r.length; n2++) { var i2 = r[n2].re, a2 = r[n2].process, o2 = i2.exec(t2); o2 && (e = a2(o2), this.r = e[0], this.g = e[1], this.b = e[2], this.ok = true); } this.r = this.r < 0 || isNaN(this.r) ? 0 : this.r > 255 ? 255 : this.r, this.g = this.g < 0 || isNaN(this.g) ? 0 : this.g > 255 ? 255 : this.g, this.b = this.b < 0 || isNaN(this.b) ? 0 : this.b > 255 ? 255 : this.b, this.toRGB = function() { return "rgb(" + this.r + ", " + this.g + ", " + this.b + ")"; }, this.toHex = function() { var t3 = this.r.toString(16), e2 = this.g.toString(16), r2 = this.b.toString(16); return 1 == t3.length && (t3 = "0" + t3), 1 == e2.length && (e2 = "0" + e2), 1 == r2.length && (r2 = "0" + r2), "#" + t3 + e2 + r2; }; } function d(t2, e) { var r = t2[0], n2 = t2[1], i2 = t2[2], a2 = t2[3]; r = g(r, n2, i2, a2, e[0], 7, -680876936), a2 = g(a2, r, n2, i2, e[1], 12, -389564586), i2 = g(i2, a2, r, n2, e[2], 17, 606105819), n2 = g(n2, i2, a2, r, e[3], 22, -1044525330), r = g(r, n2, i2, a2, e[4], 7, -176418897), a2 = g(a2, r, n2, i2, e[5], 12, 1200080426), i2 = g(i2, a2, r, n2, e[6], 17, -1473231341), n2 = g(n2, i2, a2, r, e[7], 22, -45705983), r = g(r, n2, i2, a2, e[8], 7, 1770035416), a2 = g(a2, r, n2, i2, e[9], 12, -1958414417), i2 = g(i2, a2, r, n2, e[10], 17, -42063), n2 = g(n2, i2, a2, r, e[11], 22, -1990404162), r = g(r, n2, i2, a2, e[12], 7, 1804603682), a2 = g(a2, r, n2, i2, e[13], 12, -40341101), i2 = g(i2, a2, r, n2, e[14], 17, -1502002290), r = m(r, n2 = g(n2, i2, a2, r, e[15], 22, 1236535329), i2, a2, e[1], 5, -165796510), a2 = m(a2, r, n2, i2, e[6], 9, -1069501632), i2 = m(i2, a2, r, n2, e[11], 14, 643717713), n2 = m(n2, i2, a2, r, e[0], 20, -373897302), r = m(r, n2, i2, a2, e[5], 5, -701558691), a2 = m(a2, r, n2, i2, e[10], 9, 38016083), i2 = m(i2, a2, r, n2, e[15], 14, -660478335), n2 = m(n2, i2, a2, r, e[4], 20, -405537848), r = m(r, n2, i2, a2, e[9], 5, 568446438), a2 = m(a2, r, n2, i2, e[14], 9, -1019803690), i2 = m(i2, a2, r, n2, e[3], 14, -187363961), n2 = m(n2, i2, a2, r, e[8], 20, 1163531501), r = m(r, n2, i2, a2, e[13], 5, -1444681467), a2 = m(a2, r, n2, i2, e[2], 9, -51403784), i2 = m(i2, a2, r, n2, e[7], 14, 1735328473), r = v(r, n2 = m(n2, i2, a2, r, e[12], 20, -1926607734), i2, a2, e[5], 4, -378558), a2 = v(a2, r, n2, i2, e[8], 11, -2022574463), i2 = v(i2, a2, r, n2, e[11], 16, 1839030562), n2 = v(n2, i2, a2, r, e[14], 23, -35309556), r = v(r, n2, i2, a2, e[1], 4, -1530992060), a2 = v(a2, r, n2, i2, e[4], 11, 1272893353), i2 = v(i2, a2, r, n2, e[7], 16, -155497632), n2 = v(n2, i2, a2, r, e[10], 23, -1094730640), r = v(r, n2, i2, a2, e[13], 4, 681279174), a2 = v(a2, r, n2, i2, e[0], 11, -358537222), i2 = v(i2, a2, r, n2, e[3], 16, -722521979), n2 = v(n2, i2, a2, r, e[6], 23, 76029189), r = v(r, n2, i2, a2, e[9], 4, -640364487), a2 = v(a2, r, n2, i2, e[12], 11, -421815835), i2 = v(i2, a2, r, n2, e[15], 16, 530742520), r = b(r, n2 = v(n2, i2, a2, r, e[2], 23, -995338651), i2, a2, e[0], 6, -198630844), a2 = b(a2, r, n2, i2, e[7], 10, 1126891415), i2 = b(i2, a2, r, n2, e[14], 15, -1416354905), n2 = b(n2, i2, a2, r, e[5], 21, -57434055), r = b(r, n2, i2, a2, e[12], 6, 1700485571), a2 = b(a2, r, n2, i2, e[3], 10, -1894986606), i2 = b(i2, a2, r, n2, e[10], 15, -1051523), n2 = b(n2, i2, a2, r, e[1], 21, -2054922799), r = b(r, n2, i2, a2, e[8], 6, 1873313359), a2 = b(a2, r, n2, i2, e[15], 10, -30611744), i2 = b(i2, a2, r, n2, e[6], 15, -1560198380), n2 = b(n2, i2, a2, r, e[13], 21, 1309151649), r = b(r, n2, i2, a2, e[4], 6, -145523070), a2 = b(a2, r, n2, i2, e[11], 10, -1120210379), i2 = b(i2, a2, r, n2, e[2], 15, 718787259), n2 = b(n2, i2, a2, r, e[9], 21, -343485551), t2[0] = _(r, t2[0]), t2[1] = _(n2, t2[1]), t2[2] = _(i2, t2[2]), t2[3] = _(a2, t2[3]); } function p(t2, e, r, n2, i2, a2) { return e = _(_(e, t2), _(n2, a2)), _(e << i2 | e >>> 32 - i2, r); } function g(t2, e, r, n2, i2, a2, o2) { return p(e & r | ~e & n2, t2, e, i2, a2, o2); } function m(t2, e, r, n2, i2, a2, o2) { return p(e & n2 | r & ~n2, t2, e, i2, a2, o2); } function v(t2, e, r, n2, i2, a2, o2) { return p(e ^ r ^ n2, t2, e, i2, a2, o2); } function b(t2, e, r, n2, i2, a2, o2) { return p(r ^ (e | ~n2), t2, e, i2, a2, o2); } function y(t2) { var e, r = t2.length, n2 = [1732584193, -271733879, -1732584194, 271733878]; for (e = 64; e <= t2.length; e += 64) d(n2, w(t2.substring(e - 64, e))); t2 = t2.substring(e - 64); var i2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; for (e = 0; e < t2.length; e++) i2[e >> 2] |= t2.charCodeAt(e) << (e % 4 << 3); if (i2[e >> 2] |= 128 << (e % 4 << 3), e > 55) for (d(n2, i2), e = 0; e < 16; e++) i2[e] = 0; return i2[14] = 8 * r, d(n2, i2), n2; } function w(t2) { var e, r = []; for (e = 0; e < 64; e += 4) r[e >> 2] = t2.charCodeAt(e) + (t2.charCodeAt(e + 1) << 8) + (t2.charCodeAt(e + 2) << 16) + (t2.charCodeAt(e + 3) << 24); return r; } u = n.atob.bind(n), h = n.btoa.bind(n); var N = "0123456789abcdef".split(""); function L(t2) { for (var e = "", r = 0; r < 4; r++) e += N[t2 >> 8 * r + 4 & 15] + N[t2 >> 8 * r & 15]; return e; } function A(t2) { return String.fromCharCode((255 & t2) >> 0, (65280 & t2) >> 8, (16711680 & t2) >> 16, (4278190080 & t2) >> 24); } function x(t2) { return y(t2).map(A).join(""); } var S = "5d41402abc4b2a76b9719d911017c592" != function(t2) { for (var e = 0; e < t2.length; e++) t2[e] = L(t2[e]); return t2.join(""); }(y("hello")); function _(t2, e) { if (S) { var r = (65535 & t2) + (65535 & e); return (t2 >> 16) + (e >> 16) + (r >> 16) << 16 | 65535 & r; } return t2 + e & 4294967295; } function P(t2, e) { var r, n2, i2, a2; if (t2 !== r) { for (var o2 = (i2 = t2, a2 = 1 + (256 / t2.length >> 0), new Array(a2 + 1).join(i2)), s2 = [], c2 = 0; c2 < 256; c2++) s2[c2] = c2; var u2 = 0; for (c2 = 0; c2 < 256; c2++) { var h2 = s2[c2]; u2 = (u2 + h2 + o2.charCodeAt(c2)) % 256, s2[c2] = s2[u2], s2[u2] = h2; } r = t2, n2 = s2; } else s2 = n2; var l2 = e.length, f2 = 0, d2 = 0, p2 = ""; for (c2 = 0; c2 < l2; c2++) d2 = (d2 + (h2 = s2[f2 = (f2 + 1) % 256])) % 256, s2[f2] = s2[d2], s2[d2] = h2, o2 = s2[(s2[f2] + s2[d2]) % 256], p2 += String.fromCharCode(e.charCodeAt(c2) ^ o2); return p2; } var k = { print: 4, modify: 8, copy: 16, "annot-forms": 32 }; function I(t2, e, r, n2) { this.v = 1, this.r = 2; var i2 = 192; t2.forEach(function(t3) { if (void 0 !== k.perm) throw new Error("Invalid permission: " + t3); i2 += k[t3]; }), this.padding = "(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz"; var a2 = (e + this.padding).substr(0, 32), o2 = (r + this.padding).substr(0, 32); this.O = this.processOwnerPassword(a2, o2), this.P = -(1 + (255 ^ i2)), this.encryptionKey = x(a2 + this.O + this.lsbFirstWord(this.P) + this.hexToBytes(n2)).substr(0, 5), this.U = P(this.encryptionKey, this.padding); } function F(t2) { if (/[^\u0000-\u00ff]/.test(t2)) throw new Error("Invalid PDF Name Object: " + t2 + ", Only accept ASCII characters."); for (var e = "", r = t2.length, n2 = 0; n2 < r; n2++) { var i2 = t2.charCodeAt(n2); if (i2 < 33 || 35 === i2 || 37 === i2 || 40 === i2 || 41 === i2 || 47 === i2 || 60 === i2 || 62 === i2 || 91 === i2 || 93 === i2 || 123 === i2 || 125 === i2 || i2 > 126) e += "#" + ("0" + i2.toString(16)).slice(-2); else e += t2[n2]; } return e; } function C(e) { if ("object" !== _typeof(e)) throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)"); var r = {}; this.subscribe = function(t2, e2, n2) { if (n2 = n2 || false, "string" != typeof t2 || "function" != typeof e2 || "boolean" != typeof n2) throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)"); r.hasOwnProperty(t2) || (r[t2] = {}); var i2 = Math.random().toString(35); return r[t2][i2] = [e2, !!n2], i2; }, this.unsubscribe = function(t2) { for (var e2 in r) if (r[e2][t2]) return delete r[e2][t2], 0 === Object.keys(r[e2]).length && delete r[e2], true; return false; }, this.publish = function(t2) { if (r.hasOwnProperty(t2)) { var i2 = Array.prototype.slice.call(arguments, 1), o2 = []; for (var s2 in r[t2]) { var c2 = r[t2][s2]; try { c2[0].apply(e, i2); } catch (t3) { n.console && a.error("jsPDF PubSub Error", t3.message, t3); } c2[1] && o2.push(s2); } o2.length && o2.forEach(this.unsubscribe); } }, this.getTopics = function() { return r; }; } function j(t2) { if (!(this instanceof j)) return new j(t2); var e = "opacity,stroke-opacity".split(","); for (var r in t2) t2.hasOwnProperty(r) && e.indexOf(r) >= 0 && (this[r] = t2[r]); this.id = "", this.objectNumber = -1; } function O(t2, e) { this.gState = t2, this.matrix = e, this.id = "", this.objectNumber = -1; } function B(t2, e, r, n2, i2) { if (!(this instanceof B)) return new B(t2, e, r, n2, i2); this.type = "axial" === t2 ? 2 : 3, this.coords = e, this.colors = r, O.call(this, n2, i2); } function M(t2, e, r, n2, i2) { if (!(this instanceof M)) return new M(t2, e, r, n2, i2); this.boundingBox = t2, this.xStep = e, this.yStep = r, this.stream = "", this.cloneIndex = 0, O.call(this, n2, i2); } function E(e) { var r, i2 = "string" == typeof arguments[0] ? arguments[0] : "p", o2 = arguments[1], s2 = arguments[2], c2 = arguments[3], u2 = [], d2 = 1, p2 = 16, g2 = "S", m2 = null; "object" === _typeof(e = e || {}) && (i2 = e.orientation, o2 = e.unit || o2, s2 = e.format || s2, c2 = e.compress || e.compressPdf || c2, null !== (m2 = e.encryption || null) && (m2.userPassword = m2.userPassword || "", m2.ownerPassword = m2.ownerPassword || "", m2.userPermissions = m2.userPermissions || []), d2 = "number" == typeof e.userUnit ? Math.abs(e.userUnit) : 1, void 0 !== e.precision && (r = e.precision), void 0 !== e.floatPrecision && (p2 = e.floatPrecision), g2 = e.defaultPathOperation || "S"), u2 = e.filters || (true === c2 ? ["FlateEncode"] : u2), o2 = o2 || "mm", i2 = ("" + (i2 || "P")).toLowerCase(); var v2 = e.putOnlyUsedFonts || false, b3 = {}, y2 = { internal: {}, __private__: {} }; y2.__private__.PubSub = C; var w2 = "1.3", N2 = y2.__private__.getPdfVersion = function() { return w2; }; y2.__private__.setPdfVersion = function(t2) { w2 = t2; }; var L2 = { a0: [2383.94, 3370.39], a1: [1683.78, 2383.94], a2: [1190.55, 1683.78], a3: [841.89, 1190.55], a4: [595.28, 841.89], a5: [419.53, 595.28], a6: [297.64, 419.53], a7: [209.76, 297.64], a8: [147.4, 209.76], a9: [104.88, 147.4], a10: [73.7, 104.88], b0: [2834.65, 4008.19], b1: [2004.09, 2834.65], b2: [1417.32, 2004.09], b3: [1000.63, 1417.32], b4: [708.66, 1000.63], b5: [498.9, 708.66], b6: [354.33, 498.9], b7: [249.45, 354.33], b8: [175.75, 249.45], b9: [124.72, 175.75], b10: [87.87, 124.72], c0: [2599.37, 3676.54], c1: [1836.85, 2599.37], c2: [1298.27, 1836.85], c3: [918.43, 1298.27], c4: [649.13, 918.43], c5: [459.21, 649.13], c6: [323.15, 459.21], c7: [229.61, 323.15], c8: [161.57, 229.61], c9: [113.39, 161.57], c10: [79.37, 113.39], dl: [311.81, 623.62], letter: [612, 792], "government-letter": [576, 756], legal: [612, 1008], "junior-legal": [576, 360], ledger: [1224, 792], tabloid: [792, 1224], "credit-card": [153, 243] }; y2.__private__.getPageFormats = function() { return L2; }; var A2 = y2.__private__.getPageFormat = function(t2) { return L2[t2]; }; s2 = s2 || "a4"; var x2 = { COMPAT: "compat", ADVANCED: "advanced" }, S2 = x2.COMPAT; function _2() { this.saveGraphicsState(), lt2(new Vt2(_t2, 0, 0, -_t2, 0, Rr() * _t2).toString() + " cm"), this.setFontSize(this.getFontSize() / _t2), g2 = "n", S2 = x2.ADVANCED; } function P2() { this.restoreGraphicsState(), g2 = "S", S2 = x2.COMPAT; } var k2 = y2.__private__.combineFontStyleAndFontWeight = function(t2, e2) { if ("bold" == t2 && "normal" == e2 || "bold" == t2 && 400 == e2 || "normal" == t2 && "italic" == e2 || "bold" == t2 && "italic" == e2) throw new Error("Invalid Combination of fontweight and fontstyle"); return e2 && (t2 = 400 == e2 || "normal" === e2 ? "italic" === t2 ? "italic" : "normal" : 700 != e2 && "bold" !== e2 || "normal" !== t2 ? (700 == e2 ? "bold" : e2) + "" + t2 : "bold"), t2; }; y2.advancedAPI = function(t2) { var e2 = S2 === x2.COMPAT; return e2 && _2.call(this), "function" != typeof t2 || (t2(this), e2 && P2.call(this)), this; }, y2.compatAPI = function(t2) { var e2 = S2 === x2.ADVANCED; return e2 && P2.call(this), "function" != typeof t2 || (t2(this), e2 && _2.call(this)), this; }, y2.isAdvancedAPI = function() { return S2 === x2.ADVANCED; }; var O2, q2 = function(t2) { if (S2 !== x2.ADVANCED) throw new Error(t2 + " is only available in 'advanced' API mode. You need to call advancedAPI() first."); }, D2 = y2.roundToPrecision = y2.__private__.roundToPrecision = function(t2, e2) { var n2 = r || e2; if (isNaN(t2) || isNaN(n2)) throw new Error("Invalid argument passed to jsPDF.roundToPrecision"); return t2.toFixed(n2).replace(/0+$/, ""); }; O2 = y2.hpf = y2.__private__.hpf = "number" == typeof p2 ? function(t2) { if (isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.hpf"); return D2(t2, p2); } : "smart" === p2 ? function(t2) { if (isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.hpf"); return D2(t2, t2 > -1 && t2 < 1 ? 16 : 5); } : function(t2) { if (isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.hpf"); return D2(t2, 16); }; var R2 = y2.f2 = y2.__private__.f2 = function(t2) { if (isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.f2"); return D2(t2, 2); }, T2 = y2.__private__.f3 = function(t2) { if (isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.f3"); return D2(t2, 3); }, U2 = y2.scale = y2.__private__.scale = function(t2) { if (isNaN(t2)) throw new Error("Invalid argument passed to jsPDF.scale"); return S2 === x2.COMPAT ? t2 * _t2 : S2 === x2.ADVANCED ? t2 : void 0; }, z2 = function(t2) { return S2 === x2.COMPAT ? Rr() - t2 : S2 === x2.ADVANCED ? t2 : void 0; }, H2 = function(t2) { return U2(z2(t2)); }; y2.__private__.setPrecision = y2.setPrecision = function(t2) { "number" == typeof parseInt(t2, 10) && (r = parseInt(t2, 10)); }; var W2, V2 = "00000000000000000000000000000000", G2 = y2.__private__.getFileId = function() { return V2; }, Y2 = y2.__private__.setFileId = function(t2) { return V2 = void 0 !== t2 && /^[a-fA-F0-9]{32}$/.test(t2) ? t2.toUpperCase() : V2.split("").map(function() { return "ABCDEF0123456789".charAt(Math.floor(16 * Math.random())); }).join(""), null !== m2 && (Ye = new I(m2.userPermissions, m2.userPassword, m2.ownerPassword, V2)), V2; }; y2.setFileId = function(t2) { return Y2(t2), this; }, y2.getFileId = function() { return G2(); }; var J2 = y2.__private__.convertDateToPDFDate = function(t2) { var e2 = t2.getTimezoneOffset(), r2 = e2 < 0 ? "+" : "-", n2 = Math.floor(Math.abs(e2 / 60)), i3 = Math.abs(e2 % 60), a2 = [r2, Q2(n2), "'", Q2(i3), "'"].join(""); return ["D:", t2.getFullYear(), Q2(t2.getMonth() + 1), Q2(t2.getDate()), Q2(t2.getHours()), Q2(t2.getMinutes()), Q2(t2.getSeconds()), a2].join(""); }, X2 = y2.__private__.convertPDFDateToDate = function(t2) { var e2 = parseInt(t2.substr(2, 4), 10), r2 = parseInt(t2.substr(6, 2), 10) - 1, n2 = parseInt(t2.substr(8, 2), 10), i3 = parseInt(t2.substr(10, 2), 10), a2 = parseInt(t2.substr(12, 2), 10), o3 = parseInt(t2.substr(14, 2), 10); return new Date(e2, r2, n2, i3, a2, o3, 0); }, K2 = y2.__private__.setCreationDate = function(t2) { var e2; if (void 0 === t2 && (t2 = /* @__PURE__ */ new Date()), t2 instanceof Date) e2 = J2(t2); else { if (!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t2)) throw new Error("Invalid argument passed to jsPDF.setCreationDate"); e2 = t2; } return W2 = e2; }, Z2 = y2.__private__.getCreationDate = function(t2) { var e2 = W2; return "jsDate" === t2 && (e2 = X2(W2)), e2; }; y2.setCreationDate = function(t2) { return K2(t2), this; }, y2.getCreationDate = function(t2) { return Z2(t2); }; var $2, Q2 = y2.__private__.padd2 = function(t2) { return ("0" + parseInt(t2)).slice(-2); }, tt2 = y2.__private__.padd2Hex = function(t2) { return ("00" + (t2 = t2.toString())).substr(t2.length); }, et3 = 0, rt2 = [], nt2 = [], it2 = 0, at2 = [], ot2 = [], st2 = false, ct2 = nt2, ut2 = function() { et3 = 0, it2 = 0, nt2 = [], rt2 = [], at2 = [], Qt2 = Kt2(), te3 = Kt2(); }; y2.__private__.setCustomOutputDestination = function(t2) { st2 = true, ct2 = t2; }; var ht2 = function(t2) { st2 || (ct2 = t2); }; y2.__private__.resetCustomOutputDestination = function() { st2 = false, ct2 = nt2; }; var lt2 = y2.__private__.out = function(t2) { return t2 = t2.toString(), it2 += t2.length + 1, ct2.push(t2), ct2; }, ft2 = y2.__private__.write = function(t2) { return lt2(1 === arguments.length ? t2.toString() : Array.prototype.join.call(arguments, " ")); }, dt2 = y2.__private__.getArrayBuffer = function(t2) { for (var e2 = t2.length, r2 = new ArrayBuffer(e2), n2 = new Uint8Array(r2); e2--; ) n2[e2] = t2.charCodeAt(e2); return r2; }, pt2 = [["Helvetica", "helvetica", "normal", "WinAnsiEncoding"], ["Helvetica-Bold", "helvetica", "bold", "WinAnsiEncoding"], ["Helvetica-Oblique", "helvetica", "italic", "WinAnsiEncoding"], ["Helvetica-BoldOblique", "helvetica", "bolditalic", "WinAnsiEncoding"], ["Courier", "courier", "normal", "WinAnsiEncoding"], ["Courier-Bold", "courier", "bold", "WinAnsiEncoding"], ["Courier-Oblique", "courier", "italic", "WinAnsiEncoding"], ["Courier-BoldOblique", "courier", "bolditalic", "WinAnsiEncoding"], ["Times-Roman", "times", "normal", "WinAnsiEncoding"], ["Times-Bold", "times", "bold", "WinAnsiEncoding"], ["Times-Italic", "times", "italic", "WinAnsiEncoding"], ["Times-BoldItalic", "times", "bolditalic", "WinAnsiEncoding"], ["ZapfDingbats", "zapfdingbats", "normal", null], ["Symbol", "symbol", "normal", null]]; y2.__private__.getStandardFonts = function() { return pt2; }; var gt2 = e.fontSize || 16; y2.__private__.setFontSize = y2.setFontSize = function(t2) { return gt2 = S2 === x2.ADVANCED ? t2 / _t2 : t2, this; }; var mt2, vt2 = y2.__private__.getFontSize = y2.getFontSize = function() { return S2 === x2.COMPAT ? gt2 : gt2 * _t2; }, bt2 = e.R2L || false; y2.__private__.setR2L = y2.setR2L = function(t2) { return bt2 = t2, this; }, y2.__private__.getR2L = y2.getR2L = function() { return bt2; }; var yt2, wt2 = y2.__private__.setZoomMode = function(t2) { var e2 = [void 0, null, "fullwidth", "fullheight", "fullpage", "original"]; if (/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t2)) mt2 = t2; else if (isNaN(t2)) { if (-1 === e2.indexOf(t2)) throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "' + t2 + '" is not recognized.'); mt2 = t2; } else mt2 = parseInt(t2, 10); }; y2.__private__.getZoomMode = function() { return mt2; }; var Nt2, Lt2 = y2.__private__.setPageMode = function(t2) { if (-1 == [void 0, null, "UseNone", "UseOutlines", "UseThumbs", "FullScreen"].indexOf(t2)) throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "' + t2 + '" is not recognized.'); yt2 = t2; }; y2.__private__.getPageMode = function() { return yt2; }; var At2 = y2.__private__.setLayoutMode = function(t2) { if (-1 == [void 0, null, "continuous", "single", "twoleft", "tworight", "two"].indexOf(t2)) throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "' + t2 + '" is not recognized.'); Nt2 = t2; }; y2.__private__.getLayoutMode = function() { return Nt2; }, y2.__private__.setDisplayMode = y2.setDisplayMode = function(t2, e2, r2) { return wt2(t2), At2(e2), Lt2(r2), this; }; var xt2 = { title: "", subject: "", author: "", keywords: "", creator: "" }; y2.__private__.getDocumentProperty = function(t2) { if (-1 === Object.keys(xt2).indexOf(t2)) throw new Error("Invalid argument passed to jsPDF.getDocumentProperty"); return xt2[t2]; }, y2.__private__.getDocumentProperties = function() { return xt2; }, y2.__private__.setDocumentProperties = y2.setProperties = y2.setDocumentProperties = function(t2) { for (var e2 in xt2) xt2.hasOwnProperty(e2) && t2[e2] && (xt2[e2] = t2[e2]); return this; }, y2.__private__.setDocumentProperty = function(t2, e2) { if (-1 === Object.keys(xt2).indexOf(t2)) throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty"); return xt2[t2] = e2; }; var St2, _t2, Pt2, kt2, It2, Ft2 = {}, Ct2 = {}, jt2 = [], Ot2 = {}, Bt2 = {}, Mt2 = {}, Et2 = {}, qt2 = null, Dt2 = 0, Rt2 = [], Tt2 = new C(y2), Ut2 = e.hotfixes || [], zt2 = {}, Ht2 = {}, Wt2 = [], Vt2 = function t2(e2, r2, n2, i3, a2, o3) { if (!(this instanceof t2)) return new t2(e2, r2, n2, i3, a2, o3); isNaN(e2) && (e2 = 1), isNaN(r2) && (r2 = 0), isNaN(n2) && (n2 = 0), isNaN(i3) && (i3 = 1), isNaN(a2) && (a2 = 0), isNaN(o3) && (o3 = 0), this._matrix = [e2, r2, n2, i3, a2, o3]; }; Object.defineProperty(Vt2.prototype, "sx", { get: function() { return this._matrix[0]; }, set: function(t2) { this._matrix[0] = t2; } }), Object.defineProperty(Vt2.prototype, "shy", { get: function() { return this._matrix[1]; }, set: function(t2) { this._matrix[1] = t2; } }), Object.defineProperty(Vt2.prototype, "shx", { get: function() { return this._matrix[2]; }, set: function(t2) { this._matrix[2] = t2; } }), Object.defineProperty(Vt2.prototype, "sy", { get: function() { return this._matrix[3]; }, set: function(t2) { this._matrix[3] = t2; } }), Object.defineProperty(Vt2.prototype, "tx", { get: function() { return this._matrix[4]; }, set: function(t2) { this._matrix[4] = t2; } }), Object.defineProperty(Vt2.prototype, "ty", { get: function() { return this._matrix[5]; }, set: function(t2) { this._matrix[5] = t2; } }), Object.defineProperty(Vt2.prototype, "a", { get: function() { return this._matrix[0]; }, set: function(t2) { this._matrix[0] = t2; } }), Object.defineProperty(Vt2.prototype, "b", { get: function() { return this._matrix[1]; }, set: function(t2) { this._matrix[1] = t2; } }), Object.defineProperty(Vt2.prototype, "c", { get: function() { return this._matrix[2]; }, set: function(t2) { this._matrix[2] = t2; } }), Object.defineProperty(Vt2.prototype, "d", { get: function() { return this._matrix[3]; }, set: function(t2) { this._matrix[3] = t2; } }), Object.defineProperty(Vt2.prototype, "e", { get: function() { return this._matrix[4]; }, set: function(t2) { this._matrix[4] = t2; } }), Object.defineProperty(Vt2.prototype, "f", { get: function() { return this._matrix[5]; }, set: function(t2) { this._matrix[5] = t2; } }), Object.defineProperty(Vt2.prototype, "rotation", { get: function() { return Math.atan2(this.shx, this.sx); } }), Object.defineProperty(Vt2.prototype, "scaleX", { get: function() { return this.decompose().scale.sx; } }), Object.defineProperty(Vt2.prototype, "scaleY", { get: function() { return this.decompose().scale.sy; } }), Object.defineProperty(Vt2.prototype, "isIdentity", { get: function() { return 1 === this.sx && (0 === this.shy && (0 === this.shx && (1 === this.sy && (0 === this.tx && 0 === this.ty)))); } }), Vt2.prototype.join = function(t2) { return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(O2).join(t2); }, Vt2.prototype.multiply = function(t2) { var e2 = t2.sx * this.sx + t2.shy * this.shx, r2 = t2.sx * this.shy + t2.shy * this.sy, n2 = t2.shx * this.sx + t2.sy * this.shx, i3 = t2.shx * this.shy + t2.sy * this.sy, a2 = t2.tx * this.sx + t2.ty * this.shx + this.tx, o3 = t2.tx * this.shy + t2.ty * this.sy + this.ty; return new Vt2(e2, r2, n2, i3, a2, o3); }, Vt2.prototype.decompose = function() { var t2 = this.sx, e2 = this.shy, r2 = this.shx, n2 = this.sy, i3 = this.tx, a2 = this.ty, o3 = Math.sqrt(t2 * t2 + e2 * e2), s3 = (t2 /= o3) * r2 + (e2 /= o3) * n2; r2 -= t2 * s3, n2 -= e2 * s3; var c3 = Math.sqrt(r2 * r2 + n2 * n2); return s3 /= c3, t2 * (n2 /= c3) < e2 * (r2 /= c3) && (t2 = -t2, e2 = -e2, s3 = -s3, o3 = -o3), { scale: new Vt2(o3, 0, 0, c3, 0, 0), translate: new Vt2(1, 0, 0, 1, i3, a2), rotate: new Vt2(t2, e2, -e2, t2, 0, 0), skew: new Vt2(1, 0, s3, 1, 0, 0) }; }, Vt2.prototype.toString = function(t2) { return this.join(" "); }, Vt2.prototype.inversed = function() { var t2 = this.sx, e2 = this.shy, r2 = this.shx, n2 = this.sy, i3 = this.tx, a2 = this.ty, o3 = 1 / (t2 * n2 - e2 * r2), s3 = n2 * o3, c3 = -e2 * o3, u3 = -r2 * o3, h2 = t2 * o3; return new Vt2(s3, c3, u3, h2, -s3 * i3 - u3 * a2, -c3 * i3 - h2 * a2); }, Vt2.prototype.applyToPoint = function(t2) { var e2 = t2.x * this.sx + t2.y * this.shx + this.tx, r2 = t2.x * this.shy + t2.y * this.sy + this.ty; return new Cr(e2, r2); }, Vt2.prototype.applyToRectangle = function(t2) { var e2 = this.applyToPoint(t2), r2 = this.applyToPoint(new Cr(t2.x + t2.w, t2.y + t2.h)); return new jr(e2.x, e2.y, r2.x - e2.x, r2.y - e2.y); }, Vt2.prototype.clone = function() { var t2 = this.sx, e2 = this.shy, r2 = this.shx, n2 = this.sy, i3 = this.tx, a2 = this.ty; return new Vt2(t2, e2, r2, n2, i3, a2); }, y2.Matrix = Vt2; var Gt2 = y2.matrixMult = function(t2, e2) { return e2.multiply(t2); }, Yt2 = new Vt2(1, 0, 0, 1, 0, 0); y2.unitMatrix = y2.identityMatrix = Yt2; var Jt2 = function(t2, e2) { if (!Bt2[t2]) { var r2 = (e2 instanceof B ? "Sh" : "P") + (Object.keys(Ot2).length + 1).toString(10); e2.id = r2, Bt2[t2] = r2, Ot2[r2] = e2, Tt2.publish("addPattern", e2); } }; y2.ShadingPattern = B, y2.TilingPattern = M, y2.addShadingPattern = function(t2, e2) { return q2("addShadingPattern()"), Jt2(t2, e2), this; }, y2.beginTilingPattern = function(t2) { q2("beginTilingPattern()"), Br(t2.boundingBox[0], t2.boundingBox[1], t2.boundingBox[2] - t2.boundingBox[0], t2.boundingBox[3] - t2.boundingBox[1], t2.matrix); }, y2.endTilingPattern = function(t2, e2) { q2("endTilingPattern()"), e2.stream = ot2[$2].join("\n"), Jt2(t2, e2), Tt2.publish("endTilingPattern", e2), Wt2.pop().restore(); }; var Xt2 = y2.__private__.newObject = function() { var t2 = Kt2(); return Zt2(t2, true), t2; }, Kt2 = y2.__private__.newObjectDeferred = function() { return et3++, rt2[et3] = function() { return it2; }, et3; }, Zt2 = function(t2, e2) { return e2 = "boolean" == typeof e2 && e2, rt2[t2] = it2, e2 && lt2(t2 + " 0 obj"), t2; }, $t2 = y2.__private__.newAdditionalObject = function() { var t2 = { objId: Kt2(), content: "" }; return at2.push(t2), t2; }, Qt2 = Kt2(), te3 = Kt2(), ee2 = y2.__private__.decodeColorString = function(t2) { var e2 = t2.split(" "); if (2 !== e2.length || "g" !== e2[1] && "G" !== e2[1]) { if (5 === e2.length && ("k" === e2[4] || "K" === e2[4])) { e2 = [(1 - e2[0]) * (1 - e2[3]), (1 - e2[1]) * (1 - e2[3]), (1 - e2[2]) * (1 - e2[3]), "r"]; } } else { var r2 = parseFloat(e2[0]); e2 = [r2, r2, r2, "r"]; } for (var n2 = "#", i3 = 0; i3 < 3; i3++) n2 += ("0" + Math.floor(255 * parseFloat(e2[i3])).toString(16)).slice(-2); return n2; }, re2 = y2.__private__.encodeColorString = function(e2) { var r2; "string" == typeof e2 && (e2 = { ch1: e2 }); var n2 = e2.ch1, i3 = e2.ch2, a2 = e2.ch3, o3 = e2.ch4, s3 = "draw" === e2.pdfColorType ? ["G", "RG", "K"] : ["g", "rg", "k"]; if ("string" == typeof n2 && "#" !== n2.charAt(0)) { var c3 = new f(n2); if (c3.ok) n2 = c3.toHex(); else if (!/^\d*\.?\d*$/.test(n2)) throw new Error('Invalid color "' + n2 + '" passed to jsPDF.encodeColorString.'); } if ("string" == typeof n2 && /^#[0-9A-Fa-f]{3}$/.test(n2) && (n2 = "#" + n2[1] + n2[1] + n2[2] + n2[2] + n2[3] + n2[3]), "string" == typeof n2 && /^#[0-9A-Fa-f]{6}$/.test(n2)) { var u3 = parseInt(n2.substr(1), 16); n2 = u3 >> 16 & 255, i3 = u3 >> 8 & 255, a2 = 255 & u3; } if (void 0 === i3 || void 0 === o3 && n2 === i3 && i3 === a2) if ("string" == typeof n2) r2 = n2 + " " + s3[0]; else switch (e2.precision) { case 2: r2 = R2(n2 / 255) + " " + s3[0]; break; case 3: default: r2 = T2(n2 / 255) + " " + s3[0]; } else if (void 0 === o3 || "object" === _typeof(o3)) { if (o3 && !isNaN(o3.a) && 0 === o3.a) return r2 = ["1.", "1.", "1.", s3[1]].join(" "); if ("string" == typeof n2) r2 = [n2, i3, a2, s3[1]].join(" "); else switch (e2.precision) { case 2: r2 = [R2(n2 / 255), R2(i3 / 255), R2(a2 / 255), s3[1]].join(" "); break; default: case 3: r2 = [T2(n2 / 255), T2(i3 / 255), T2(a2 / 255), s3[1]].join(" "); } } else if ("string" == typeof n2) r2 = [n2, i3, a2, o3, s3[2]].join(" "); else switch (e2.precision) { case 2: r2 = [R2(n2), R2(i3), R2(a2), R2(o3), s3[2]].join(" "); break; case 3: default: r2 = [T2(n2), T2(i3), T2(a2), T2(o3), s3[2]].join(" "); } return r2; }, ne2 = y2.__private__.getFilters = function() { return u2; }, ie2 = y2.__private__.putStream = function(t2) { var e2 = (t2 = t2 || {}).data || "", r2 = t2.filters || ne2(), n2 = t2.alreadyAppliedFilters || [], i3 = t2.addLength1 || false, a2 = e2.length, o3 = t2.objectId, s3 = function(t3) { return t3; }; if (null !== m2 && void 0 === o3) throw new Error("ObjectId must be passed to putStream for file encryption"); null !== m2 && (s3 = Ye.encryptor(o3, 0)); var c3 = {}; true === r2 && (r2 = ["FlateEncode"]); var u3 = t2.additionalKeyValues || [], h2 = (c3 = void 0 !== E.API.processDataByFilters ? E.API.processDataByFilters(e2, r2) : { data: e2, reverseChain: [] }).reverseChain + (Array.isArray(n2) ? n2.join(" ") : n2.toString()); if (0 !== c3.data.length && (u3.push({ key: "Length", value: c3.data.length }), true === i3 && u3.push({ key: "Length1", value: a2 })), 0 != h2.length) if (h2.split("/").length - 1 == 1) u3.push({ key: "Filter", value: h2 }); else { u3.push({ key: "Filter", value: "[" + h2 + "]" }); for (var l2 = 0; l2 < u3.length; l2 += 1) if ("DecodeParms" === u3[l2].key) { for (var f2 = [], d3 = 0; d3 < c3.reverseChain.split("/").length - 1; d3 += 1) f2.push("null"); f2.push(u3[l2].value), u3[l2].value = "[" + f2.join(" ") + "]"; } } lt2("<<"); for (var p3 = 0; p3 < u3.length; p3++) lt2("/" + u3[p3].key + " " + u3[p3].value); lt2(">>"), 0 !== c3.data.length && (lt2("stream"), lt2(s3(c3.data)), lt2("endstream")); }, ae2 = y2.__private__.putPage = function(t2) { var e2 = t2.number, r2 = t2.data, n2 = t2.objId, i3 = t2.contentsObjId; Zt2(n2, true), lt2("<>"), lt2("endobj"); var a2 = r2.join("\n"); return S2 === x2.ADVANCED && (a2 += "\nQ"), Zt2(i3, true), ie2({ data: a2, filters: ne2(), objectId: i3 }), lt2("endobj"), n2; }, oe2 = y2.__private__.putPages = function() { var t2, e2, r2 = []; for (t2 = 1; t2 <= Dt2; t2++) Rt2[t2].objId = Kt2(), Rt2[t2].contentsObjId = Kt2(); for (t2 = 1; t2 <= Dt2; t2++) r2.push(ae2({ number: t2, data: ot2[t2], objId: Rt2[t2].objId, contentsObjId: Rt2[t2].contentsObjId, mediaBox: Rt2[t2].mediaBox, cropBox: Rt2[t2].cropBox, bleedBox: Rt2[t2].bleedBox, trimBox: Rt2[t2].trimBox, artBox: Rt2[t2].artBox, userUnit: Rt2[t2].userUnit, rootDictionaryObjId: Qt2, resourceDictionaryObjId: te3 })); Zt2(Qt2, true), lt2("<>"), lt2("endobj"), Tt2.publish("postPutPages"); }, se2 = function(t2) { Tt2.publish("putFont", { font: t2, out: lt2, newObject: Xt2, putStream: ie2 }), true !== t2.isAlreadyPutted && (t2.objectNumber = Xt2(), lt2("<<"), lt2("/Type /Font"), lt2("/BaseFont /" + F(t2.postScriptName)), lt2("/Subtype /Type1"), "string" == typeof t2.encoding && lt2("/Encoding /" + t2.encoding), lt2("/FirstChar 32"), lt2("/LastChar 255"), lt2(">>"), lt2("endobj")); }, ce2 = function() { for (var t2 in Ft2) Ft2.hasOwnProperty(t2) && (false === v2 || true === v2 && b3.hasOwnProperty(t2)) && se2(Ft2[t2]); }, ue2 = function(t2) { t2.objectNumber = Xt2(); var e2 = []; e2.push({ key: "Type", value: "/XObject" }), e2.push({ key: "Subtype", value: "/Form" }), e2.push({ key: "BBox", value: "[" + [O2(t2.x), O2(t2.y), O2(t2.x + t2.width), O2(t2.y + t2.height)].join(" ") + "]" }), e2.push({ key: "Matrix", value: "[" + t2.matrix.toString() + "]" }); var r2 = t2.pages[1].join("\n"); ie2({ data: r2, additionalKeyValues: e2, objectId: t2.objectNumber }), lt2("endobj"); }, he2 = function() { for (var t2 in zt2) zt2.hasOwnProperty(t2) && ue2(zt2[t2]); }, le2 = function(t2, e2) { var r2, n2 = [], i3 = 1 / (e2 - 1); for (r2 = 0; r2 < 1; r2 += i3) n2.push(r2); if (n2.push(1), 0 != t2[0].offset) { var a2 = { offset: 0, color: t2[0].color }; t2.unshift(a2); } if (1 != t2[t2.length - 1].offset) { var o3 = { offset: 1, color: t2[t2.length - 1].color }; t2.push(o3); } for (var s3 = "", c3 = 0, u3 = 0; u3 < n2.length; u3++) { for (r2 = n2[u3]; r2 > t2[c3 + 1].offset; ) c3++; var h2 = t2[c3].offset, l2 = (r2 - h2) / (t2[c3 + 1].offset - h2), f2 = t2[c3].color, d3 = t2[c3 + 1].color; s3 += tt2(Math.round((1 - l2) * f2[0] + l2 * d3[0]).toString(16)) + tt2(Math.round((1 - l2) * f2[1] + l2 * d3[1]).toString(16)) + tt2(Math.round((1 - l2) * f2[2] + l2 * d3[2]).toString(16)); } return s3.trim(); }, fe2 = function(t2, e2) { e2 || (e2 = 21); var r2 = Xt2(), n2 = le2(t2.colors, e2), i3 = []; i3.push({ key: "FunctionType", value: "0" }), i3.push({ key: "Domain", value: "[0.0 1.0]" }), i3.push({ key: "Size", value: "[" + e2 + "]" }), i3.push({ key: "BitsPerSample", value: "8" }), i3.push({ key: "Range", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), i3.push({ key: "Decode", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), ie2({ data: n2, additionalKeyValues: i3, alreadyAppliedFilters: ["/ASCIIHexDecode"], objectId: r2 }), lt2("endobj"), t2.objectNumber = Xt2(), lt2("<< /ShadingType " + t2.type), lt2("/ColorSpace /DeviceRGB"); var a2 = "/Coords [" + O2(parseFloat(t2.coords[0])) + " " + O2(parseFloat(t2.coords[1])) + " "; 2 === t2.type ? a2 += O2(parseFloat(t2.coords[2])) + " " + O2(parseFloat(t2.coords[3])) : a2 += O2(parseFloat(t2.coords[2])) + " " + O2(parseFloat(t2.coords[3])) + " " + O2(parseFloat(t2.coords[4])) + " " + O2(parseFloat(t2.coords[5])), lt2(a2 += "]"), t2.matrix && lt2("/Matrix [" + t2.matrix.toString() + "]"), lt2("/Function " + r2 + " 0 R"), lt2("/Extend [true true]"), lt2(">>"), lt2("endobj"); }, de2 = function(t2, e2) { var r2 = Kt2(), n2 = Xt2(); e2.push({ resourcesOid: r2, objectOid: n2 }), t2.objectNumber = n2; var i3 = []; i3.push({ key: "Type", value: "/Pattern" }), i3.push({ key: "PatternType", value: "1" }), i3.push({ key: "PaintType", value: "1" }), i3.push({ key: "TilingType", value: "1" }), i3.push({ key: "BBox", value: "[" + t2.boundingBox.map(O2).join(" ") + "]" }), i3.push({ key: "XStep", value: O2(t2.xStep) }), i3.push({ key: "YStep", value: O2(t2.yStep) }), i3.push({ key: "Resources", value: r2 + " 0 R" }), t2.matrix && i3.push({ key: "Matrix", value: "[" + t2.matrix.toString() + "]" }), ie2({ data: t2.stream, additionalKeyValues: i3, objectId: t2.objectNumber }), lt2("endobj"); }, pe2 = function(t2) { var e2; for (e2 in Ot2) Ot2.hasOwnProperty(e2) && (Ot2[e2] instanceof B ? fe2(Ot2[e2]) : Ot2[e2] instanceof M && de2(Ot2[e2], t2)); }, ge2 = function(t2) { for (var e2 in t2.objectNumber = Xt2(), lt2("<<"), t2) switch (e2) { case "opacity": lt2("/ca " + R2(t2[e2])); break; case "stroke-opacity": lt2("/CA " + R2(t2[e2])); } lt2(">>"), lt2("endobj"); }, me2 = function() { var t2; for (t2 in Mt2) Mt2.hasOwnProperty(t2) && ge2(Mt2[t2]); }, ve2 = function() { for (var t2 in lt2("/XObject <<"), zt2) zt2.hasOwnProperty(t2) && zt2[t2].objectNumber >= 0 && lt2("/" + t2 + " " + zt2[t2].objectNumber + " 0 R"); Tt2.publish("putXobjectDict"), lt2(">>"); }, be2 = function() { Ye.oid = Xt2(), lt2("<<"), lt2("/Filter /Standard"), lt2("/V " + Ye.v), lt2("/R " + Ye.r), lt2("/U <" + Ye.toHexString(Ye.U) + ">"), lt2("/O <" + Ye.toHexString(Ye.O) + ">"), lt2("/P " + Ye.P), lt2(">>"), lt2("endobj"); }, ye2 = function() { for (var t2 in lt2("/Font <<"), Ft2) Ft2.hasOwnProperty(t2) && (false === v2 || true === v2 && b3.hasOwnProperty(t2)) && lt2("/" + t2 + " " + Ft2[t2].objectNumber + " 0 R"); lt2(">>"); }, we2 = function() { if (Object.keys(Ot2).length > 0) { for (var t2 in lt2("/Shading <<"), Ot2) Ot2.hasOwnProperty(t2) && Ot2[t2] instanceof B && Ot2[t2].objectNumber >= 0 && lt2("/" + t2 + " " + Ot2[t2].objectNumber + " 0 R"); Tt2.publish("putShadingPatternDict"), lt2(">>"); } }, Ne2 = function(t2) { if (Object.keys(Ot2).length > 0) { for (var e2 in lt2("/Pattern <<"), Ot2) Ot2.hasOwnProperty(e2) && Ot2[e2] instanceof y2.TilingPattern && Ot2[e2].objectNumber >= 0 && Ot2[e2].objectNumber < t2 && lt2("/" + e2 + " " + Ot2[e2].objectNumber + " 0 R"); Tt2.publish("putTilingPatternDict"), lt2(">>"); } }, Le2 = function() { if (Object.keys(Mt2).length > 0) { var t2; for (t2 in lt2("/ExtGState <<"), Mt2) Mt2.hasOwnProperty(t2) && Mt2[t2].objectNumber >= 0 && lt2("/" + t2 + " " + Mt2[t2].objectNumber + " 0 R"); Tt2.publish("putGStateDict"), lt2(">>"); } }, Ae = function(t2) { Zt2(t2.resourcesOid, true), lt2("<<"), lt2("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"), ye2(), we2(), Ne2(t2.objectOid), Le2(), ve2(), lt2(">>"), lt2("endobj"); }, xe = function() { var t2 = []; ce2(), me2(), he2(), pe2(t2), Tt2.publish("putResources"), t2.forEach(Ae), Ae({ resourcesOid: te3, objectOid: Number.MAX_SAFE_INTEGER }), Tt2.publish("postPutResources"); }, Se = function() { Tt2.publish("putAdditionalObjects"); for (var t2 = 0; t2 < at2.length; t2++) { var e2 = at2[t2]; Zt2(e2.objId, true), lt2(e2.content), lt2("endobj"); } Tt2.publish("postPutAdditionalObjects"); }, _e = function(t2) { Ct2[t2.fontName] = Ct2[t2.fontName] || {}, Ct2[t2.fontName][t2.fontStyle] = t2.id; }, Pe = function(t2, e2, r2, n2, i3) { var a2 = { id: "F" + (Object.keys(Ft2).length + 1).toString(10), postScriptName: t2, fontName: e2, fontStyle: r2, encoding: n2, isStandardFont: i3 || false, metadata: {} }; return Tt2.publish("addFont", { font: a2, instance: this }), Ft2[a2.id] = a2, _e(a2), a2.id; }, ke = function(t2) { for (var e2 = 0, r2 = pt2.length; e2 < r2; e2++) { var n2 = Pe.call(this, t2[e2][0], t2[e2][1], t2[e2][2], pt2[e2][3], true); false === v2 && (b3[n2] = true); var i3 = t2[e2][0].split("-"); _e({ id: n2, fontName: i3[0], fontStyle: i3[1] || "" }); } Tt2.publish("addFonts", { fonts: Ft2, dictionary: Ct2 }); }, Ie = function(t2) { return t2.foo = function() { try { return t2.apply(this, arguments); } catch (t3) { var e2 = t3.stack || ""; ~e2.indexOf(" at ") && (e2 = e2.split(" at ")[1]); var r2 = "Error in function " + e2.split("\n")[0].split("<")[0] + ": " + t3.message; if (!n.console) throw new Error(r2); n.console.error(r2, t3), n.alert && alert(r2); } }, t2.foo.bar = t2, t2.foo; }, Fe = function(t2, e2) { var r2, n2, i3, a2, o3, s3, c3, u3, h2; if (i3 = (e2 = e2 || {}).sourceEncoding || "Unicode", o3 = e2.outputEncoding, (e2.autoencode || o3) && Ft2[St2].metadata && Ft2[St2].metadata[i3] && Ft2[St2].metadata[i3].encoding && (a2 = Ft2[St2].metadata[i3].encoding, !o3 && Ft2[St2].encoding && (o3 = Ft2[St2].encoding), !o3 && a2.codePages && (o3 = a2.codePages[0]), "string" == typeof o3 && (o3 = a2[o3]), o3)) { for (c3 = false, s3 = [], r2 = 0, n2 = t2.length; r2 < n2; r2++) (u3 = o3[t2.charCodeAt(r2)]) ? s3.push(String.fromCharCode(u3)) : s3.push(t2[r2]), s3[r2].charCodeAt(0) >> 8 && (c3 = true); t2 = s3.join(""); } for (r2 = t2.length; void 0 === c3 && 0 !== r2; ) t2.charCodeAt(r2 - 1) >> 8 && (c3 = true), r2--; if (!c3) return t2; for (s3 = e2.noBOM ? [] : [254, 255], r2 = 0, n2 = t2.length; r2 < n2; r2++) { if ((h2 = (u3 = t2.charCodeAt(r2)) >> 8) >> 8) throw new Error("Character at position " + r2 + " of string '" + t2 + "' exceeds 16bits. Cannot be encoded into UCS-2 BE"); s3.push(h2), s3.push(u3 - (h2 << 8)); } return String.fromCharCode.apply(void 0, s3); }, Ce = y2.__private__.pdfEscape = y2.pdfEscape = function(t2, e2) { return Fe(t2, e2).replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)"); }, je = y2.__private__.beginPage = function(t2) { ot2[++Dt2] = [], Rt2[Dt2] = { objId: 0, contentsObjId: 0, userUnit: Number(d2), artBox: null, bleedBox: null, cropBox: null, trimBox: null, mediaBox: { bottomLeftX: 0, bottomLeftY: 0, topRightX: Number(t2[0]), topRightY: Number(t2[1]) } }, Me(Dt2), ht2(ot2[$2]); }, Oe = function(t2, e2) { var r2, n2, o3; switch (i2 = e2 || i2, "string" == typeof t2 && (r2 = A2(t2.toLowerCase()), Array.isArray(r2) && (n2 = r2[0], o3 = r2[1])), Array.isArray(t2) && (n2 = t2[0] * _t2, o3 = t2[1] * _t2), isNaN(n2) && (n2 = s2[0], o3 = s2[1]), (n2 > 14400 || o3 > 14400) && (a.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"), n2 = Math.min(14400, n2), o3 = Math.min(14400, o3)), s2 = [n2, o3], i2.substr(0, 1)) { case "l": o3 > n2 && (s2 = [o3, n2]); break; case "p": n2 > o3 && (s2 = [o3, n2]); } je(s2), pr(fr), lt2(Lr), 0 !== kr && lt2(kr + " J"), 0 !== Ir && lt2(Ir + " j"), Tt2.publish("addPage", { pageNumber: Dt2 }); }, Be = function(t2) { t2 > 0 && t2 <= Dt2 && (ot2.splice(t2, 1), Rt2.splice(t2, 1), Dt2--, $2 > Dt2 && ($2 = Dt2), this.setPage($2)); }, Me = function(t2) { t2 > 0 && t2 <= Dt2 && ($2 = t2); }, Ee = y2.__private__.getNumberOfPages = y2.getNumberOfPages = function() { return ot2.length - 1; }, qe = function(t2, e2, r2) { var n2, i3 = void 0; return r2 = r2 || {}, t2 = void 0 !== t2 ? t2 : Ft2[St2].fontName, e2 = void 0 !== e2 ? e2 : Ft2[St2].fontStyle, n2 = t2.toLowerCase(), void 0 !== Ct2[n2] && void 0 !== Ct2[n2][e2] ? i3 = Ct2[n2][e2] : void 0 !== Ct2[t2] && void 0 !== Ct2[t2][e2] ? i3 = Ct2[t2][e2] : false === r2.disableWarning && a.warn("Unable to look up font label for font '" + t2 + "', '" + e2 + "'. Refer to getFontList() for available fonts."), i3 || r2.noFallback || null == (i3 = Ct2.times[e2]) && (i3 = Ct2.times.normal), i3; }, De = y2.__private__.putInfo = function() { var t2 = Xt2(), e2 = function(t3) { return t3; }; for (var r2 in null !== m2 && (e2 = Ye.encryptor(t2, 0)), lt2("<<"), lt2("/Producer (" + Ce(e2("jsPDF " + E.version)) + ")"), xt2) xt2.hasOwnProperty(r2) && xt2[r2] && lt2("/" + r2.substr(0, 1).toUpperCase() + r2.substr(1) + " (" + Ce(e2(xt2[r2])) + ")"); lt2("/CreationDate (" + Ce(e2(W2)) + ")"), lt2(">>"), lt2("endobj"); }, Re = y2.__private__.putCatalog = function(t2) { var e2 = (t2 = t2 || {}).rootDictionaryObjId || Qt2; switch (Xt2(), lt2("<<"), lt2("/Type /Catalog"), lt2("/Pages " + e2 + " 0 R"), mt2 || (mt2 = "fullwidth"), mt2) { case "fullwidth": lt2("/OpenAction [3 0 R /FitH null]"); break; case "fullheight": lt2("/OpenAction [3 0 R /FitV null]"); break; case "fullpage": lt2("/OpenAction [3 0 R /Fit]"); break; case "original": lt2("/OpenAction [3 0 R /XYZ null null 1]"); break; default: var r2 = "" + mt2; "%" === r2.substr(r2.length - 1) && (mt2 = parseInt(mt2) / 100), "number" == typeof mt2 && lt2("/OpenAction [3 0 R /XYZ null null " + R2(mt2) + "]"); } switch (Nt2 || (Nt2 = "continuous"), Nt2) { case "continuous": lt2("/PageLayout /OneColumn"); break; case "single": lt2("/PageLayout /SinglePage"); break; case "two": case "twoleft": lt2("/PageLayout /TwoColumnLeft"); break; case "tworight": lt2("/PageLayout /TwoColumnRight"); } yt2 && lt2("/PageMode /" + yt2), Tt2.publish("putCatalog"), lt2(">>"), lt2("endobj"); }, Te = y2.__private__.putTrailer = function() { lt2("trailer"), lt2("<<"), lt2("/Size " + (et3 + 1)), lt2("/Root " + et3 + " 0 R"), lt2("/Info " + (et3 - 1) + " 0 R"), null !== m2 && lt2("/Encrypt " + Ye.oid + " 0 R"), lt2("/ID [ <" + V2 + "> <" + V2 + "> ]"), lt2(">>"); }, Ue = y2.__private__.putHeader = function() { lt2("%PDF-" + w2), lt2("%ºß¬à"); }, ze = y2.__private__.putXRef = function() { var t2 = "0000000000"; lt2("xref"), lt2("0 " + (et3 + 1)), lt2("0000000000 65535 f "); for (var e2 = 1; e2 <= et3; e2++) { "function" == typeof rt2[e2] ? lt2((t2 + rt2[e2]()).slice(-10) + " 00000 n ") : void 0 !== rt2[e2] ? lt2((t2 + rt2[e2]).slice(-10) + " 00000 n ") : lt2("0000000000 00000 n "); } }, He = y2.__private__.buildDocument = function() { ut2(), ht2(nt2), Tt2.publish("buildDocument"), Ue(), oe2(), Se(), xe(), null !== m2 && be2(), De(), Re(); var t2 = it2; return ze(), Te(), lt2("startxref"), lt2("" + t2), lt2("%%EOF"), ht2(ot2[$2]), nt2.join("\n"); }, We = y2.__private__.getBlob = function(t2) { return new Blob([dt2(t2)], { type: "application/pdf" }); }, Ve = y2.output = y2.__private__.output = Ie(function(t2, e2) { switch ("string" == typeof (e2 = e2 || {}) ? e2 = { filename: e2 } : e2.filename = e2.filename || "generated.pdf", t2) { case void 0: return He(); case "save": y2.save(e2.filename); break; case "arraybuffer": return dt2(He()); case "blob": return We(He()); case "bloburi": case "bloburl": if (void 0 !== n.URL && "function" == typeof n.URL.createObjectURL) return n.URL && n.URL.createObjectURL(We(He())) || void 0; a.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser."); break; case "datauristring": case "dataurlstring": var r2 = "", i3 = He(); try { r2 = h(i3); } catch (t3) { r2 = h(unescape(encodeURIComponent(i3))); } return "data:application/pdf;filename=" + e2.filename + ";base64," + r2; case "pdfobjectnewwindow": if ("[object Window]" === Object.prototype.toString.call(n)) { var o3 = "https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js", s3 = ' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"'; e2.pdfObjectUrl && (o3 = e2.pdfObjectUrl, s3 = ""); var c3 = '