mr-excel
Version:
A versatile JavaScript library for effortlessly generating .xlsx files from input objects. Seamlessly create Excel spreadsheets with data, formatting, formulas, and more.
910 lines (907 loc) • 140 kB
JavaScript
import { g as Ot, c as vt } from "./_commonjsHelpers-DaMA6jEr.js";
function Bt(ct, wt) {
for (var _ = 0; _ < wt.length; _++) {
const N = wt[_];
if (typeof N != "string" && !Array.isArray(N)) {
for (const w in N)
if (w !== "default" && !(w in ct)) {
const u = Object.getOwnPropertyDescriptor(N, w);
u && Object.defineProperty(ct, w, u.get ? u : {
enumerable: !0,
get: () => N[w]
});
}
}
}
return Object.freeze(Object.defineProperty(ct, Symbol.toStringTag, { value: "Module" }));
}
function yt(ct) {
throw new Error('Could not dynamically require "' + ct + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
}
var zt = { exports: {} };
/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/
(function(ct, wt) {
(function(_) {
ct.exports = _();
})(function() {
return function _(N, w, u) {
function o(g, y) {
if (!w[g]) {
if (!N[g]) {
var p = typeof yt == "function" && yt;
if (!y && p) return p(g, !0);
if (n) return n(g, !0);
var b = new Error("Cannot find module '" + g + "'");
throw b.code = "MODULE_NOT_FOUND", b;
}
var i = w[g] = { exports: {} };
N[g][0].call(i.exports, function(d) {
var r = N[g][1][d];
return o(r || d);
}, i, i.exports, _, N, w, u);
}
return w[g].exports;
}
for (var n = typeof yt == "function" && yt, h = 0; h < u.length; h++) o(u[h]);
return o;
}({ 1: [function(_, N, w) {
var u = _("./utils"), o = _("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
w.encode = function(h) {
for (var g, y, p, b, i, d, r, l = [], a = 0, c = h.length, v = c, S = u.getTypeOf(h) !== "string"; a < h.length; ) v = c - a, p = S ? (g = h[a++], y = a < c ? h[a++] : 0, a < c ? h[a++] : 0) : (g = h.charCodeAt(a++), y = a < c ? h.charCodeAt(a++) : 0, a < c ? h.charCodeAt(a++) : 0), b = g >> 2, i = (3 & g) << 4 | y >> 4, d = 1 < v ? (15 & y) << 2 | p >> 6 : 64, r = 2 < v ? 63 & p : 64, l.push(n.charAt(b) + n.charAt(i) + n.charAt(d) + n.charAt(r));
return l.join("");
}, w.decode = function(h) {
var g, y, p, b, i, d, r = 0, l = 0, a = "data:";
if (h.substr(0, a.length) === a) throw new Error("Invalid base64 input, it looks like a data url.");
var c, v = 3 * (h = h.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
if (h.charAt(h.length - 1) === n.charAt(64) && v--, h.charAt(h.length - 2) === n.charAt(64) && v--, v % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
for (c = o.uint8array ? new Uint8Array(0 | v) : new Array(0 | v); r < h.length; ) g = n.indexOf(h.charAt(r++)) << 2 | (b = n.indexOf(h.charAt(r++))) >> 4, y = (15 & b) << 4 | (i = n.indexOf(h.charAt(r++))) >> 2, p = (3 & i) << 6 | (d = n.indexOf(h.charAt(r++))), c[l++] = g, i !== 64 && (c[l++] = y), d !== 64 && (c[l++] = p);
return c;
};
}, { "./support": 30, "./utils": 32 }], 2: [function(_, N, w) {
var u = _("./external"), o = _("./stream/DataWorker"), n = _("./stream/Crc32Probe"), h = _("./stream/DataLengthProbe");
function g(y, p, b, i, d) {
this.compressedSize = y, this.uncompressedSize = p, this.crc32 = b, this.compression = i, this.compressedContent = d;
}
g.prototype = { getContentWorker: function() {
var y = new o(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")), p = this;
return y.on("end", function() {
if (this.streamInfo.data_length !== p.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
}), y;
}, getCompressedWorker: function() {
return new o(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
} }, g.createWorkerFrom = function(y, p, b) {
return y.pipe(new n()).pipe(new h("uncompressedSize")).pipe(p.compressWorker(b)).pipe(new h("compressedSize")).withStreamInfo("compression", p);
}, N.exports = g;
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(_, N, w) {
var u = _("./stream/GenericWorker");
w.STORE = { magic: "\0\0", compressWorker: function() {
return new u("STORE compression");
}, uncompressWorker: function() {
return new u("STORE decompression");
} }, w.DEFLATE = _("./flate");
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(_, N, w) {
var u = _("./utils"), o = function() {
for (var n, h = [], g = 0; g < 256; g++) {
n = g;
for (var y = 0; y < 8; y++) n = 1 & n ? 3988292384 ^ n >>> 1 : n >>> 1;
h[g] = n;
}
return h;
}();
N.exports = function(n, h) {
return n !== void 0 && n.length ? u.getTypeOf(n) !== "string" ? function(g, y, p, b) {
var i = o, d = b + p;
g ^= -1;
for (var r = b; r < d; r++) g = g >>> 8 ^ i[255 & (g ^ y[r])];
return -1 ^ g;
}(0 | h, n, n.length, 0) : function(g, y, p, b) {
var i = o, d = b + p;
g ^= -1;
for (var r = b; r < d; r++) g = g >>> 8 ^ i[255 & (g ^ y.charCodeAt(r))];
return -1 ^ g;
}(0 | h, n, n.length, 0) : 0;
};
}, { "./utils": 32 }], 5: [function(_, N, w) {
w.base64 = !1, w.binary = !1, w.dir = !1, w.createFolders = !0, w.date = null, w.compression = null, w.compressionOptions = null, w.comment = null, w.unixPermissions = null, w.dosPermissions = null;
}, {}], 6: [function(_, N, w) {
var u = null;
u = typeof Promise < "u" ? Promise : _("lie"), N.exports = { Promise: u };
}, { lie: 37 }], 7: [function(_, N, w) {
var u = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", o = _("pako"), n = _("./utils"), h = _("./stream/GenericWorker"), g = u ? "uint8array" : "array";
function y(p, b) {
h.call(this, "FlateWorker/" + p), this._pako = null, this._pakoAction = p, this._pakoOptions = b, this.meta = {};
}
w.magic = "\b\0", n.inherits(y, h), y.prototype.processChunk = function(p) {
this.meta = p.meta, this._pako === null && this._createPako(), this._pako.push(n.transformTo(g, p.data), !1);
}, y.prototype.flush = function() {
h.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
}, y.prototype.cleanUp = function() {
h.prototype.cleanUp.call(this), this._pako = null;
}, y.prototype._createPako = function() {
this._pako = new o[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
var p = this;
this._pako.onData = function(b) {
p.push({ data: b, meta: p.meta });
};
}, w.compressWorker = function(p) {
return new y("Deflate", p);
}, w.uncompressWorker = function() {
return new y("Inflate", {});
};
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(_, N, w) {
function u(i, d) {
var r, l = "";
for (r = 0; r < d; r++) l += String.fromCharCode(255 & i), i >>>= 8;
return l;
}
function o(i, d, r, l, a, c) {
var v, S, x = i.file, D = i.compression, O = c !== g.utf8encode, j = n.transformTo("string", c(x.name)), I = n.transformTo("string", g.utf8encode(x.name)), W = x.comment, V = n.transformTo("string", c(W)), m = n.transformTo("string", g.utf8encode(W)), B = I.length !== x.name.length, e = m.length !== W.length, T = "", J = "", U = "", $ = x.dir, L = x.date, q = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
d && !r || (q.crc32 = i.crc32, q.compressedSize = i.compressedSize, q.uncompressedSize = i.uncompressedSize);
var E = 0;
d && (E |= 8), O || !B && !e || (E |= 2048);
var C = 0, X = 0;
$ && (C |= 16), a === "UNIX" ? (X = 798, C |= function(H, nt) {
var ot = H;
return H || (ot = nt ? 16893 : 33204), (65535 & ot) << 16;
}(x.unixPermissions, $)) : (X = 20, C |= function(H) {
return 63 & (H || 0);
}(x.dosPermissions)), v = L.getUTCHours(), v <<= 6, v |= L.getUTCMinutes(), v <<= 5, v |= L.getUTCSeconds() / 2, S = L.getUTCFullYear() - 1980, S <<= 4, S |= L.getUTCMonth() + 1, S <<= 5, S |= L.getUTCDate(), B && (J = u(1, 1) + u(y(j), 4) + I, T += "up" + u(J.length, 2) + J), e && (U = u(1, 1) + u(y(V), 4) + m, T += "uc" + u(U.length, 2) + U);
var G = "";
return G += `
\0`, G += u(E, 2), G += D.magic, G += u(v, 2), G += u(S, 2), G += u(q.crc32, 4), G += u(q.compressedSize, 4), G += u(q.uncompressedSize, 4), G += u(j.length, 2), G += u(T.length, 2), { fileRecord: p.LOCAL_FILE_HEADER + G + j + T, dirRecord: p.CENTRAL_FILE_HEADER + u(X, 2) + G + u(V.length, 2) + "\0\0\0\0" + u(C, 4) + u(l, 4) + j + T + V };
}
var n = _("../utils"), h = _("../stream/GenericWorker"), g = _("../utf8"), y = _("../crc32"), p = _("../signature");
function b(i, d, r, l) {
h.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = d, this.zipPlatform = r, this.encodeFileName = l, this.streamFiles = i, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
}
n.inherits(b, h), b.prototype.push = function(i) {
var d = i.meta.percent || 0, r = this.entriesCount, l = this._sources.length;
this.accumulate ? this.contentBuffer.push(i) : (this.bytesWritten += i.data.length, h.prototype.push.call(this, { data: i.data, meta: { currentFile: this.currentFile, percent: r ? (d + 100 * (r - l - 1)) / r : 100 } }));
}, b.prototype.openedSource = function(i) {
this.currentSourceOffset = this.bytesWritten, this.currentFile = i.file.name;
var d = this.streamFiles && !i.file.dir;
if (d) {
var r = o(i, d, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
this.push({ data: r.fileRecord, meta: { percent: 0 } });
} else this.accumulate = !0;
}, b.prototype.closedSource = function(i) {
this.accumulate = !1;
var d = this.streamFiles && !i.file.dir, r = o(i, d, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
if (this.dirRecords.push(r.dirRecord), d) this.push({ data: function(l) {
return p.DATA_DESCRIPTOR + u(l.crc32, 4) + u(l.compressedSize, 4) + u(l.uncompressedSize, 4);
}(i), meta: { percent: 100 } });
else for (this.push({ data: r.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
this.currentFile = null;
}, b.prototype.flush = function() {
for (var i = this.bytesWritten, d = 0; d < this.dirRecords.length; d++) this.push({ data: this.dirRecords[d], meta: { percent: 100 } });
var r = this.bytesWritten - i, l = function(a, c, v, S, x) {
var D = n.transformTo("string", x(S));
return p.CENTRAL_DIRECTORY_END + "\0\0\0\0" + u(a, 2) + u(a, 2) + u(c, 4) + u(v, 4) + u(D.length, 2) + D;
}(this.dirRecords.length, r, i, this.zipComment, this.encodeFileName);
this.push({ data: l, meta: { percent: 100 } });
}, b.prototype.prepareNextSource = function() {
this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
}, b.prototype.registerPrevious = function(i) {
this._sources.push(i);
var d = this;
return i.on("data", function(r) {
d.processChunk(r);
}), i.on("end", function() {
d.closedSource(d.previous.streamInfo), d._sources.length ? d.prepareNextSource() : d.end();
}), i.on("error", function(r) {
d.error(r);
}), this;
}, b.prototype.resume = function() {
return !!h.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
}, b.prototype.error = function(i) {
var d = this._sources;
if (!h.prototype.error.call(this, i)) return !1;
for (var r = 0; r < d.length; r++) try {
d[r].error(i);
} catch {
}
return !0;
}, b.prototype.lock = function() {
h.prototype.lock.call(this);
for (var i = this._sources, d = 0; d < i.length; d++) i[d].lock();
}, N.exports = b;
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(_, N, w) {
var u = _("../compressions"), o = _("./ZipFileWorker");
w.generateWorker = function(n, h, g) {
var y = new o(h.streamFiles, g, h.platform, h.encodeFileName), p = 0;
try {
n.forEach(function(b, i) {
p++;
var d = function(c, v) {
var S = c || v, x = u[S];
if (!x) throw new Error(S + " is not a valid compression method !");
return x;
}(i.options.compression, h.compression), r = i.options.compressionOptions || h.compressionOptions || {}, l = i.dir, a = i.date;
i._compressWorker(d, r).withStreamInfo("file", { name: b, dir: l, date: a, comment: i.comment || "", unixPermissions: i.unixPermissions, dosPermissions: i.dosPermissions }).pipe(y);
}), y.entriesCount = p;
} catch (b) {
y.error(b);
}
return y;
};
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(_, N, w) {
function u() {
if (!(this instanceof u)) return new u();
if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
var o = new u();
for (var n in this) typeof this[n] != "function" && (o[n] = this[n]);
return o;
};
}
(u.prototype = _("./object")).loadAsync = _("./load"), u.support = _("./support"), u.defaults = _("./defaults"), u.version = "3.10.1", u.loadAsync = function(o, n) {
return new u().loadAsync(o, n);
}, u.external = _("./external"), N.exports = u;
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(_, N, w) {
var u = _("./utils"), o = _("./external"), n = _("./utf8"), h = _("./zipEntries"), g = _("./stream/Crc32Probe"), y = _("./nodejsUtils");
function p(b) {
return new o.Promise(function(i, d) {
var r = b.decompressed.getContentWorker().pipe(new g());
r.on("error", function(l) {
d(l);
}).on("end", function() {
r.streamInfo.crc32 !== b.decompressed.crc32 ? d(new Error("Corrupted zip : CRC32 mismatch")) : i();
}).resume();
});
}
N.exports = function(b, i) {
var d = this;
return i = u.extend(i || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: n.utf8decode }), y.isNode && y.isStream(b) ? o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u.prepareContent("the loaded zip file", b, !0, i.optimizedBinaryString, i.base64).then(function(r) {
var l = new h(i);
return l.load(r), l;
}).then(function(r) {
var l = [o.Promise.resolve(r)], a = r.files;
if (i.checkCRC32) for (var c = 0; c < a.length; c++) l.push(p(a[c]));
return o.Promise.all(l);
}).then(function(r) {
for (var l = r.shift(), a = l.files, c = 0; c < a.length; c++) {
var v = a[c], S = v.fileNameStr, x = u.resolve(v.fileNameStr);
d.file(x, v.decompressed, { binary: !0, optimizedBinaryString: !0, date: v.date, dir: v.dir, comment: v.fileCommentStr.length ? v.fileCommentStr : null, unixPermissions: v.unixPermissions, dosPermissions: v.dosPermissions, createFolders: i.createFolders }), v.dir || (d.file(x).unsafeOriginalName = S);
}
return l.zipComment.length && (d.comment = l.zipComment), d;
});
};
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(_, N, w) {
var u = _("../utils"), o = _("../stream/GenericWorker");
function n(h, g) {
o.call(this, "Nodejs stream input adapter for " + h), this._upstreamEnded = !1, this._bindStream(g);
}
u.inherits(n, o), n.prototype._bindStream = function(h) {
var g = this;
(this._stream = h).pause(), h.on("data", function(y) {
g.push({ data: y, meta: { percent: 0 } });
}).on("error", function(y) {
g.isPaused ? this.generatedError = y : g.error(y);
}).on("end", function() {
g.isPaused ? g._upstreamEnded = !0 : g.end();
});
}, n.prototype.pause = function() {
return !!o.prototype.pause.call(this) && (this._stream.pause(), !0);
}, n.prototype.resume = function() {
return !!o.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
}, N.exports = n;
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(_, N, w) {
var u = _("readable-stream").Readable;
function o(n, h, g) {
u.call(this, h), this._helper = n;
var y = this;
n.on("data", function(p, b) {
y.push(p) || y._helper.pause(), g && g(b);
}).on("error", function(p) {
y.emit("error", p);
}).on("end", function() {
y.push(null);
});
}
_("../utils").inherits(o, u), o.prototype._read = function() {
this._helper.resume();
}, N.exports = o;
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(_, N, w) {
N.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(u, o) {
if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(u, o);
if (typeof u == "number") throw new Error('The "data" argument must not be a number');
return new Buffer(u, o);
}, allocBuffer: function(u) {
if (Buffer.alloc) return Buffer.alloc(u);
var o = new Buffer(u);
return o.fill(0), o;
}, isBuffer: function(u) {
return Buffer.isBuffer(u);
}, isStream: function(u) {
return u && typeof u.on == "function" && typeof u.pause == "function" && typeof u.resume == "function";
} };
}, {}], 15: [function(_, N, w) {
function u(x, D, O) {
var j, I = n.getTypeOf(D), W = n.extend(O || {}, y);
W.date = W.date || /* @__PURE__ */ new Date(), W.compression !== null && (W.compression = W.compression.toUpperCase()), typeof W.unixPermissions == "string" && (W.unixPermissions = parseInt(W.unixPermissions, 8)), W.unixPermissions && 16384 & W.unixPermissions && (W.dir = !0), W.dosPermissions && 16 & W.dosPermissions && (W.dir = !0), W.dir && (x = a(x)), W.createFolders && (j = l(x)) && c.call(this, j, !0);
var V = I === "string" && W.binary === !1 && W.base64 === !1;
O && O.binary !== void 0 || (W.binary = !V), (D instanceof p && D.uncompressedSize === 0 || W.dir || !D || D.length === 0) && (W.base64 = !1, W.binary = !0, D = "", W.compression = "STORE", I = "string");
var m = null;
m = D instanceof p || D instanceof h ? D : d.isNode && d.isStream(D) ? new r(x, D) : n.prepareContent(x, D, W.binary, W.optimizedBinaryString, W.base64);
var B = new b(x, m, W);
this.files[x] = B;
}
var o = _("./utf8"), n = _("./utils"), h = _("./stream/GenericWorker"), g = _("./stream/StreamHelper"), y = _("./defaults"), p = _("./compressedObject"), b = _("./zipObject"), i = _("./generate"), d = _("./nodejsUtils"), r = _("./nodejs/NodejsStreamInputAdapter"), l = function(x) {
x.slice(-1) === "/" && (x = x.substring(0, x.length - 1));
var D = x.lastIndexOf("/");
return 0 < D ? x.substring(0, D) : "";
}, a = function(x) {
return x.slice(-1) !== "/" && (x += "/"), x;
}, c = function(x, D) {
return D = D !== void 0 ? D : y.createFolders, x = a(x), this.files[x] || u.call(this, x, null, { dir: !0, createFolders: D }), this.files[x];
};
function v(x) {
return Object.prototype.toString.call(x) === "[object RegExp]";
}
var S = { load: function() {
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
}, forEach: function(x) {
var D, O, j;
for (D in this.files) j = this.files[D], (O = D.slice(this.root.length, D.length)) && D.slice(0, this.root.length) === this.root && x(O, j);
}, filter: function(x) {
var D = [];
return this.forEach(function(O, j) {
x(O, j) && D.push(j);
}), D;
}, file: function(x, D, O) {
if (arguments.length !== 1) return x = this.root + x, u.call(this, x, D, O), this;
if (v(x)) {
var j = x;
return this.filter(function(W, V) {
return !V.dir && j.test(W);
});
}
var I = this.files[this.root + x];
return I && !I.dir ? I : null;
}, folder: function(x) {
if (!x) return this;
if (v(x)) return this.filter(function(I, W) {
return W.dir && x.test(I);
});
var D = this.root + x, O = c.call(this, D), j = this.clone();
return j.root = O.name, j;
}, remove: function(x) {
x = this.root + x;
var D = this.files[x];
if (D || (x.slice(-1) !== "/" && (x += "/"), D = this.files[x]), D && !D.dir) delete this.files[x];
else for (var O = this.filter(function(I, W) {
return W.name.slice(0, x.length) === x;
}), j = 0; j < O.length; j++) delete this.files[O[j].name];
return this;
}, generate: function() {
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
}, generateInternalStream: function(x) {
var D, O = {};
try {
if ((O = n.extend(x || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: o.utf8encode })).type = O.type.toLowerCase(), O.compression = O.compression.toUpperCase(), O.type === "binarystring" && (O.type = "string"), !O.type) throw new Error("No output type specified.");
n.checkSupport(O.type), O.platform !== "darwin" && O.platform !== "freebsd" && O.platform !== "linux" && O.platform !== "sunos" || (O.platform = "UNIX"), O.platform === "win32" && (O.platform = "DOS");
var j = O.comment || this.comment || "";
D = i.generateWorker(this, O, j);
} catch (I) {
(D = new h("error")).error(I);
}
return new g(D, O.type || "string", O.mimeType);
}, generateAsync: function(x, D) {
return this.generateInternalStream(x).accumulate(D);
}, generateNodeStream: function(x, D) {
return (x = x || {}).type || (x.type = "nodebuffer"), this.generateInternalStream(x).toNodejsStream(D);
} };
N.exports = S;
}, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(_, N, w) {
N.exports = _("stream");
}, { stream: void 0 }], 17: [function(_, N, w) {
var u = _("./DataReader");
function o(n) {
u.call(this, n);
for (var h = 0; h < this.data.length; h++) n[h] = 255 & n[h];
}
_("../utils").inherits(o, u), o.prototype.byteAt = function(n) {
return this.data[this.zero + n];
}, o.prototype.lastIndexOfSignature = function(n) {
for (var h = n.charCodeAt(0), g = n.charCodeAt(1), y = n.charCodeAt(2), p = n.charCodeAt(3), b = this.length - 4; 0 <= b; --b) if (this.data[b] === h && this.data[b + 1] === g && this.data[b + 2] === y && this.data[b + 3] === p) return b - this.zero;
return -1;
}, o.prototype.readAndCheckSignature = function(n) {
var h = n.charCodeAt(0), g = n.charCodeAt(1), y = n.charCodeAt(2), p = n.charCodeAt(3), b = this.readData(4);
return h === b[0] && g === b[1] && y === b[2] && p === b[3];
}, o.prototype.readData = function(n) {
if (this.checkOffset(n), n === 0) return [];
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
return this.index += n, h;
}, N.exports = o;
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(_, N, w) {
var u = _("../utils");
function o(n) {
this.data = n, this.length = n.length, this.index = 0, this.zero = 0;
}
o.prototype = { checkOffset: function(n) {
this.checkIndex(this.index + n);
}, checkIndex: function(n) {
if (this.length < this.zero + n || n < 0) throw new Error("End of data reached (data length = " + this.length + ", asked index = " + n + "). Corrupted zip ?");
}, setIndex: function(n) {
this.checkIndex(n), this.index = n;
}, skip: function(n) {
this.setIndex(this.index + n);
}, byteAt: function() {
}, readInt: function(n) {
var h, g = 0;
for (this.checkOffset(n), h = this.index + n - 1; h >= this.index; h--) g = (g << 8) + this.byteAt(h);
return this.index += n, g;
}, readString: function(n) {
return u.transformTo("string", this.readData(n));
}, readData: function() {
}, lastIndexOfSignature: function() {
}, readAndCheckSignature: function() {
}, readDate: function() {
var n = this.readInt(4);
return new Date(Date.UTC(1980 + (n >> 25 & 127), (n >> 21 & 15) - 1, n >> 16 & 31, n >> 11 & 31, n >> 5 & 63, (31 & n) << 1));
} }, N.exports = o;
}, { "../utils": 32 }], 19: [function(_, N, w) {
var u = _("./Uint8ArrayReader");
function o(n) {
u.call(this, n);
}
_("../utils").inherits(o, u), o.prototype.readData = function(n) {
this.checkOffset(n);
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
return this.index += n, h;
}, N.exports = o;
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(_, N, w) {
var u = _("./DataReader");
function o(n) {
u.call(this, n);
}
_("../utils").inherits(o, u), o.prototype.byteAt = function(n) {
return this.data.charCodeAt(this.zero + n);
}, o.prototype.lastIndexOfSignature = function(n) {
return this.data.lastIndexOf(n) - this.zero;
}, o.prototype.readAndCheckSignature = function(n) {
return n === this.readData(4);
}, o.prototype.readData = function(n) {
this.checkOffset(n);
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
return this.index += n, h;
}, N.exports = o;
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(_, N, w) {
var u = _("./ArrayReader");
function o(n) {
u.call(this, n);
}
_("../utils").inherits(o, u), o.prototype.readData = function(n) {
if (this.checkOffset(n), n === 0) return new Uint8Array(0);
var h = this.data.subarray(this.zero + this.index, this.zero + this.index + n);
return this.index += n, h;
}, N.exports = o;
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(_, N, w) {
var u = _("../utils"), o = _("../support"), n = _("./ArrayReader"), h = _("./StringReader"), g = _("./NodeBufferReader"), y = _("./Uint8ArrayReader");
N.exports = function(p) {
var b = u.getTypeOf(p);
return u.checkSupport(b), b !== "string" || o.uint8array ? b === "nodebuffer" ? new g(p) : o.uint8array ? new y(u.transformTo("uint8array", p)) : new n(u.transformTo("array", p)) : new h(p);
};
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(_, N, w) {
w.LOCAL_FILE_HEADER = "PK", w.CENTRAL_FILE_HEADER = "PK", w.CENTRAL_DIRECTORY_END = "PK", w.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", w.ZIP64_CENTRAL_DIRECTORY_END = "PK", w.DATA_DESCRIPTOR = "PK\x07\b";
}, {}], 24: [function(_, N, w) {
var u = _("./GenericWorker"), o = _("../utils");
function n(h) {
u.call(this, "ConvertWorker to " + h), this.destType = h;
}
o.inherits(n, u), n.prototype.processChunk = function(h) {
this.push({ data: o.transformTo(this.destType, h.data), meta: h.meta });
}, N.exports = n;
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(_, N, w) {
var u = _("./GenericWorker"), o = _("../crc32");
function n() {
u.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
}
_("../utils").inherits(n, u), n.prototype.processChunk = function(h) {
this.streamInfo.crc32 = o(h.data, this.streamInfo.crc32 || 0), this.push(h);
}, N.exports = n;
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(_, N, w) {
var u = _("../utils"), o = _("./GenericWorker");
function n(h) {
o.call(this, "DataLengthProbe for " + h), this.propName = h, this.withStreamInfo(h, 0);
}
u.inherits(n, o), n.prototype.processChunk = function(h) {
if (h) {
var g = this.streamInfo[this.propName] || 0;
this.streamInfo[this.propName] = g + h.data.length;
}
o.prototype.processChunk.call(this, h);
}, N.exports = n;
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(_, N, w) {
var u = _("../utils"), o = _("./GenericWorker");
function n(h) {
o.call(this, "DataWorker");
var g = this;
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, h.then(function(y) {
g.dataIsReady = !0, g.data = y, g.max = y && y.length || 0, g.type = u.getTypeOf(y), g.isPaused || g._tickAndRepeat();
}, function(y) {
g.error(y);
});
}
u.inherits(n, o), n.prototype.cleanUp = function() {
o.prototype.cleanUp.call(this), this.data = null;
}, n.prototype.resume = function() {
return !!o.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, u.delay(this._tickAndRepeat, [], this)), !0);
}, n.prototype._tickAndRepeat = function() {
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (u.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
}, n.prototype._tick = function() {
if (this.isPaused || this.isFinished) return !1;
var h = null, g = Math.min(this.max, this.index + 16384);
if (this.index >= this.max) return this.end();
switch (this.type) {
case "string":
h = this.data.substring(this.index, g);
break;
case "uint8array":
h = this.data.subarray(this.index, g);
break;
case "array":
case "nodebuffer":
h = this.data.slice(this.index, g);
}
return this.index = g, this.push({ data: h, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
}, N.exports = n;
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(_, N, w) {
function u(o) {
this.name = o || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { data: [], end: [], error: [] }, this.previous = null;
}
u.prototype = { push: function(o) {
this.emit("data", o);
}, end: function() {
if (this.isFinished) return !1;
this.flush();
try {
this.emit("end"), this.cleanUp(), this.isFinished = !0;
} catch (o) {
this.emit("error", o);
}
return !0;
}, error: function(o) {
return !this.isFinished && (this.isPaused ? this.generatedError = o : (this.isFinished = !0, this.emit("error", o), this.previous && this.previous.error(o), this.cleanUp()), !0);
}, on: function(o, n) {
return this._listeners[o].push(n), this;
}, cleanUp: function() {
this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
}, emit: function(o, n) {
if (this._listeners[o]) for (var h = 0; h < this._listeners[o].length; h++) this._listeners[o][h].call(this, n);
}, pipe: function(o) {
return o.registerPrevious(this);
}, registerPrevious: function(o) {
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
this.streamInfo = o.streamInfo, this.mergeStreamInfo(), this.previous = o;
var n = this;
return o.on("data", function(h) {
n.processChunk(h);
}), o.on("end", function() {
n.end();
}), o.on("error", function(h) {
n.error(h);
}), this;
}, pause: function() {
return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
}, resume: function() {
if (!this.isPaused || this.isFinished) return !1;
var o = this.isPaused = !1;
return this.generatedError && (this.error(this.generatedError), o = !0), this.previous && this.previous.resume(), !o;
}, flush: function() {
}, processChunk: function(o) {
this.push(o);
}, withStreamInfo: function(o, n) {
return this.extraStreamInfo[o] = n, this.mergeStreamInfo(), this;
}, mergeStreamInfo: function() {
for (var o in this.extraStreamInfo) Object.prototype.hasOwnProperty.call(this.extraStreamInfo, o) && (this.streamInfo[o] = this.extraStreamInfo[o]);
}, lock: function() {
if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
this.isLocked = !0, this.previous && this.previous.lock();
}, toString: function() {
var o = "Worker " + this.name;
return this.previous ? this.previous + " -> " + o : o;
} }, N.exports = u;
}, {}], 29: [function(_, N, w) {
var u = _("../utils"), o = _("./ConvertWorker"), n = _("./GenericWorker"), h = _("../base64"), g = _("../support"), y = _("../external"), p = null;
if (g.nodestream) try {
p = _("../nodejs/NodejsStreamOutputAdapter");
} catch {
}
function b(d, r) {
return new y.Promise(function(l, a) {
var c = [], v = d._internalType, S = d._outputType, x = d._mimeType;
d.on("data", function(D, O) {
c.push(D), r && r(O);
}).on("error", function(D) {
c = [], a(D);
}).on("end", function() {
try {
var D = function(O, j, I) {
switch (O) {
case "blob":
return u.newBlob(u.transformTo("arraybuffer", j), I);
case "base64":
return h.encode(j);
default:
return u.transformTo(O, j);
}
}(S, function(O, j) {
var I, W = 0, V = null, m = 0;
for (I = 0; I < j.length; I++) m += j[I].length;
switch (O) {
case "string":
return j.join("");
case "array":
return Array.prototype.concat.apply([], j);
case "uint8array":
for (V = new Uint8Array(m), I = 0; I < j.length; I++) V.set(j[I], W), W += j[I].length;
return V;
case "nodebuffer":
return Buffer.concat(j);
default:
throw new Error("concat : unsupported type '" + O + "'");
}
}(v, c), x);
l(D);
} catch (O) {
a(O);
}
c = [];
}).resume();
});
}
function i(d, r, l) {
var a = r;
switch (r) {
case "blob":
case "arraybuffer":
a = "uint8array";
break;
case "base64":
a = "string";
}
try {
this._internalType = a, this._outputType = r, this._mimeType = l, u.checkSupport(a), this._worker = d.pipe(new o(a)), d.lock();
} catch (c) {
this._worker = new n("error"), this._worker.error(c);
}
}
i.prototype = { accumulate: function(d) {
return b(this, d);
}, on: function(d, r) {
var l = this;
return d === "data" ? this._worker.on(d, function(a) {
r.call(l, a.data, a.meta);
}) : this._worker.on(d, function() {
u.delay(r, arguments, l);
}), this;
}, resume: function() {
return u.delay(this._worker.resume, [], this._worker), this;
}, pause: function() {
return this._worker.pause(), this;
}, toNodejsStream: function(d) {
if (u.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw new Error(this._outputType + " is not supported by this method");
return new p(this, { objectMode: this._outputType !== "nodebuffer" }, d);
} }, N.exports = i;
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(_, N, w) {
if (w.base64 = !0, w.array = !0, w.string = !0, w.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", w.nodebuffer = typeof Buffer < "u", w.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") w.blob = !1;
else {
var u = new ArrayBuffer(0);
try {
w.blob = new Blob([u], { type: "application/zip" }).size === 0;
} catch {
try {
var o = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
o.append(u), w.blob = o.getBlob("application/zip").size === 0;
} catch {
w.blob = !1;
}
}
}
try {
w.nodestream = !!_("readable-stream").Readable;
} catch {
w.nodestream = !1;
}
}, { "readable-stream": 16 }], 31: [function(_, N, w) {
for (var u = _("./utils"), o = _("./support"), n = _("./nodejsUtils"), h = _("./stream/GenericWorker"), g = new Array(256), y = 0; y < 256; y++) g[y] = 252 <= y ? 6 : 248 <= y ? 5 : 240 <= y ? 4 : 224 <= y ? 3 : 192 <= y ? 2 : 1;
g[254] = g[254] = 1;
function p() {
h.call(this, "utf-8 decode"), this.leftOver = null;
}
function b() {
h.call(this, "utf-8 encode");
}
w.utf8encode = function(i) {
return o.nodebuffer ? n.newBufferFrom(i, "utf-8") : function(d) {
var r, l, a, c, v, S = d.length, x = 0;
for (c = 0; c < S; c++) (64512 & (l = d.charCodeAt(c))) == 55296 && c + 1 < S && (64512 & (a = d.charCodeAt(c + 1))) == 56320 && (l = 65536 + (l - 55296 << 10) + (a - 56320), c++), x += l < 128 ? 1 : l < 2048 ? 2 : l < 65536 ? 3 : 4;
for (r = o.uint8array ? new Uint8Array(x) : new Array(x), c = v = 0; v < x; c++) (64512 & (l = d.charCodeAt(c))) == 55296 && c + 1 < S && (64512 & (a = d.charCodeAt(c + 1))) == 56320 && (l = 65536 + (l - 55296 << 10) + (a - 56320), c++), l < 128 ? r[v++] = l : (l < 2048 ? r[v++] = 192 | l >>> 6 : (l < 65536 ? r[v++] = 224 | l >>> 12 : (r[v++] = 240 | l >>> 18, r[v++] = 128 | l >>> 12 & 63), r[v++] = 128 | l >>> 6 & 63), r[v++] = 128 | 63 & l);
return r;
}(i);
}, w.utf8decode = function(i) {
return o.nodebuffer ? u.transformTo("nodebuffer", i).toString("utf-8") : function(d) {
var r, l, a, c, v = d.length, S = new Array(2 * v);
for (r = l = 0; r < v; ) if ((a = d[r++]) < 128) S[l++] = a;
else if (4 < (c = g[a])) S[l++] = 65533, r += c - 1;
else {
for (a &= c === 2 ? 31 : c === 3 ? 15 : 7; 1 < c && r < v; ) a = a << 6 | 63 & d[r++], c--;
1 < c ? S[l++] = 65533 : a < 65536 ? S[l++] = a : (a -= 65536, S[l++] = 55296 | a >> 10 & 1023, S[l++] = 56320 | 1023 & a);
}
return S.length !== l && (S.subarray ? S = S.subarray(0, l) : S.length = l), u.applyFromCharCode(S);
}(i = u.transformTo(o.uint8array ? "uint8array" : "array", i));
}, u.inherits(p, h), p.prototype.processChunk = function(i) {
var d = u.transformTo(o.uint8array ? "uint8array" : "array", i.data);
if (this.leftOver && this.leftOver.length) {
if (o.uint8array) {
var r = d;
(d = new Uint8Array(r.length + this.leftOver.length)).set(this.leftOver, 0), d.set(r, this.leftOver.length);
} else d = this.leftOver.concat(d);
this.leftOver = null;
}
var l = function(c, v) {
var S;
for ((v = v || c.length) > c.length && (v = c.length), S = v - 1; 0 <= S && (192 & c[S]) == 128; ) S--;
return S < 0 || S === 0 ? v : S + g[c[S]] > v ? S : v;
}(d), a = d;
l !== d.length && (o.uint8array ? (a = d.subarray(0, l), this.leftOver = d.subarray(l, d.length)) : (a = d.slice(0, l), this.leftOver = d.slice(l, d.length))), this.push({ data: w.utf8decode(a), meta: i.meta });
}, p.prototype.flush = function() {
this.leftOver && this.leftOver.length && (this.push({ data: w.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
}, w.Utf8DecodeWorker = p, u.inherits(b, h), b.prototype.processChunk = function(i) {
this.push({ data: w.utf8encode(i.data), meta: i.meta });
}, w.Utf8EncodeWorker = b;
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(_, N, w) {
var u = _("./support"), o = _("./base64"), n = _("./nodejsUtils"), h = _("./external");
function g(r) {
return r;
}
function y(r, l) {
for (var a = 0; a < r.length; ++a) l[a] = 255 & r.charCodeAt(a);
return l;
}
_("setimmediate"), w.newBlob = function(r, l) {
w.checkSupport("blob");
try {
return new Blob([r], { type: l });
} catch {
try {
var a = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
return a.append(r), a.getBlob(l);
} catch {
throw new Error("Bug : can't construct the Blob.");
}
}
};
var p = { stringifyByChunk: function(r, l, a) {
var c = [], v = 0, S = r.length;
if (S <= a) return String.fromCharCode.apply(null, r);
for (; v < S; ) l === "array" || l === "nodebuffer" ? c.push(String.fromCharCode.apply(null, r.slice(v, Math.min(v + a, S)))) : c.push(String.fromCharCode.apply(null, r.subarray(v, Math.min(v + a, S)))), v += a;
return c.join("");
}, stringifyByChar: function(r) {
for (var l = "", a = 0; a < r.length; a++) l += String.fromCharCode(r[a]);
return l;
}, applyCanBeUsed: { uint8array: function() {
try {
return u.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
} catch {
return !1;
}
}(), nodebuffer: function() {
try {
return u.nodebuffer && String.fromCharCode.apply(null, n.allocBuffer(1)).length === 1;
} catch {
return !1;
}
}() } };
function b(r) {
var l = 65536, a = w.getTypeOf(r), c = !0;
if (a === "uint8array" ? c = p.applyCanBeUsed.uint8array : a === "nodebuffer" && (c = p.applyCanBeUsed.nodebuffer), c) for (; 1 < l; ) try {
return p.stringifyByChunk(r, a, l);
} catch {
l = Math.floor(l / 2);
}
return p.stringifyByChar(r);
}
function i(r, l) {
for (var a = 0; a < r.length; a++) l[a] = r[a];
return l;
}
w.applyFromCharCode = b;
var d = {};
d.string = { string: g, array: function(r) {
return y(r, new Array(r.length));
}, arraybuffer: function(r) {
return d.string.uint8array(r).buffer;
}, uint8array: function(r) {
return y(r, new Uint8Array(r.length));
}, nodebuffer: function(r) {
return y(r, n.allocBuffer(r.length));
} }, d.array = { string: b, array: g, arraybuffer: function(r) {
return new Uint8Array(r).buffer;
}, uint8array: function(r) {
return new Uint8Array(r);
}, nodebuffer: function(r) {
return n.newBufferFrom(r);
} }, d.arraybuffer = { string: function(r) {
return b(new Uint8Array(r));
}, array: function(r) {
return i(new Uint8Array(r), new Array(r.byteLength));
}, arraybuffer: g, uint8array: function(r) {
return new Uint8Array(r);
}, nodebuffer: function(r) {
return n.newBufferFrom(new Uint8Array(r));
} }, d.uint8array = { string: b, array: function(r) {
return i(r, new Array(r.length));
}, arraybuffer: function(r) {
return r.buffer;
}, uint8array: g, nodebuffer: function(r) {
return n.newBufferFrom(r);
} }, d.nodebuffer = { string: b, array: function(r) {
return i(r, new Array(r.length));
}, arraybuffer: function(r) {
return d.nodebuffer.uint8array(r).buffer;
}, uint8array: function(r) {
return i(r, new Uint8Array(r.length));
}, nodebuffer: g }, w.transformTo = function(r, l) {
if (l = l || "", !r) return l;
w.checkSupport(r);
var a = w.getTypeOf(l);
return d[a][r](l);
}, w.resolve = function(r) {
for (var l = r.split("/"), a = [], c = 0; c < l.length; c++) {
var v = l[c];
v === "." || v === "" && c !== 0 && c !== l.length - 1 || (v === ".." ? a.pop() : a.push(v));
}
return a.join("/");
}, w.getTypeOf = function(r) {
return typeof r == "string" ? "string" : Object.prototype.toString.call(r) === "[object Array]" ? "array" : u.nodebuffer && n.isBuffer(r) ? "nodebuffer" : u.uint8array && r instanceof Uint8Array ? "uint8array" : u.arraybuffer && r instanceof ArrayBuffer ? "arraybuffer" : void 0;
}, w.checkSupport = function(r) {
if (!u[r.toLowerCase()]) throw new Error(r + " is not supported by this platform");
}, w.MAX_VALUE_16BITS = 65535, w.MAX_VALUE_32BITS = -1, w.pretty = function(r) {
var l, a, c = "";
for (a = 0; a < (r || "").length; a++) c += "\\x" + ((l = r.charCodeAt(a)) < 16 ? "0" : "") + l.toString(16).toUpperCase();
return c;
}, w.delay = function(r, l, a) {
setImmediate(function() {
r.apply(a || null, l || []);
});
}, w.inherits = function(r, l) {
function a() {
}
a.prototype = l.prototype, r.prototype = new a();
}, w.extend = function() {
var r, l, a = {};
for (r = 0; r < arguments.length; r++) for (l in arguments[r]) Object.prototype.hasOwnProperty.call(arguments[r], l) && a[l] === void 0 && (a[l] = arguments[r][l]);
return a;
}, w.prepareContent = function(r, l, a, c, v) {
return h.Promise.resolve(l).then(function(S) {
return u.blob && (S instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(S)) !== -1) && typeof FileReader < "u" ? new h.Promise(function(x, D) {
var O = new FileReader();
O.onload = function(j) {
x(j.target.result);
}, O.onerror = function(j) {
D(j.target.error);
}, O.readAsArrayBuffer(S);
}) : S;
}).then(function(S) {
var x = w.getTypeOf(S);
return x ? (x === "arraybuffer" ? S = w.transformTo("uint8array", S) : x === "string" && (v ? S = o.decode(S) : a && c !== !0 && (S = function(D) {
return y(D, u.uint8array ? new Uint8Array(D.length) : new Array(D.length));
}(S))), S) : h.Promise.reject(new Error("Can't read the data of '" + r + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
});
};
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(_, N, w) {
var u = _("./reader/readerFor"), o = _("./utils"), n = _("./signature"), h = _("./zipEntry"), g = _("./support");
function y(p) {
this.files = [], this.loadOptions = p;
}
y.prototype = { checkSignature: function(p) {
if