nexabase-report 0.5.12 → 0.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{html2canvas.esm-d2sM-0Wm.js → html2canvas.esm-dgT_1dIT.js} +79 -78
- package/dist/{html2pdf-CyrjNJBM.js → html2pdf-CVyxZKQW.js} +4804 -4794
- package/dist/{index-BvGLpxpz.js → index-DbpCi5uz.js} +69970 -35298
- package/dist/index.es-m9_uegWC.js +6693 -0
- package/dist/{jspdf.es.min-DHE53KpH.js → jspdf.es.min-COMU5-uZ.js} +330 -330
- package/dist/lib/styles/_designer.css +49 -0
- package/dist/nexabase-report.es.js +10 -5
- package/dist/nexabase-report.umd.js +1514 -210
- package/package.json +6 -6
- package/dist/index.es-DLtoK965.js +0 -5646
|
@@ -89,7 +89,7 @@ for (var we = 0; we < 32768; ++we) {
|
|
|
89
89
|
var kn = (we & 43690) >> 1 | (we & 21845) << 1;
|
|
90
90
|
kn = (kn & 52428) >> 2 | (kn & 13107) << 2, kn = (kn & 61680) >> 4 | (kn & 3855) << 4, vs[we] = ((kn & 65280) >> 8 | (kn & 255) << 8) >> 1;
|
|
91
91
|
}
|
|
92
|
-
var Qr = function(n, e, r) {
|
|
92
|
+
var Qr = (function(n, e, r) {
|
|
93
93
|
for (var a = n.length, u = 0, o = new mr(e); u < a; ++u)
|
|
94
94
|
n[u] && ++o[n[u] - 1];
|
|
95
95
|
var c = new mr(e);
|
|
@@ -107,7 +107,7 @@ var Qr = function(n, e, r) {
|
|
|
107
107
|
for (h = new mr(a), u = 0; u < a; ++u)
|
|
108
108
|
n[u] && (h[u] = vs[c[n[u] - 1]++] >> 15 - n[u]);
|
|
109
109
|
return h;
|
|
110
|
-
}, On = new tr(288);
|
|
110
|
+
}), On = new tr(288);
|
|
111
111
|
for (var we = 0; we < 144; ++we)
|
|
112
112
|
On[we] = 8;
|
|
113
113
|
for (var we = 144; we < 256; ++we)
|
|
@@ -525,9 +525,9 @@ try {
|
|
|
525
525
|
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
|
526
526
|
* kim3er, mfo, alnorth, Flamenco
|
|
527
527
|
*/
|
|
528
|
-
var Ht = /* @__PURE__ */ function() {
|
|
528
|
+
var Ht = /* @__PURE__ */ (function() {
|
|
529
529
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : this;
|
|
530
|
-
}();
|
|
530
|
+
})();
|
|
531
531
|
function ls() {
|
|
532
532
|
Ht.console && typeof Ht.console.log == "function" && Ht.console.log.apply(Ht.console, arguments);
|
|
533
533
|
}
|
|
@@ -564,22 +564,22 @@ function lo(n) {
|
|
|
564
564
|
var fa, ws, Yn = Ht.saveAs || ((typeof window > "u" ? "undefined" : fe(window)) !== "object" || window !== Ht ? function() {
|
|
565
565
|
} : typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype ? function(n, e, r) {
|
|
566
566
|
var a = Ht.URL || Ht.webkitURL, u = document.createElement("a");
|
|
567
|
-
e = e || n.name || "download", u.download = e, u.rel = "noopener", typeof n == "string" ? (u.href = n, u.origin !== location.origin ? au(u.href) ? cs(n, e, r) : lo(u, u.target = "_blank") : lo(u)) : (u.href = a.createObjectURL(n), setTimeout(function() {
|
|
567
|
+
e = e || n.name || "download", u.download = e, u.rel = "noopener", typeof n == "string" ? (u.href = n, u.origin !== location.origin ? au(u.href) ? cs(n, e, r) : lo(u, u.target = "_blank") : lo(u)) : (u.href = a.createObjectURL(n), setTimeout((function() {
|
|
568
568
|
a.revokeObjectURL(u.href);
|
|
569
|
-
}, 4e4), setTimeout(function() {
|
|
569
|
+
}), 4e4), setTimeout((function() {
|
|
570
570
|
lo(u);
|
|
571
|
-
}, 0));
|
|
571
|
+
}), 0));
|
|
572
572
|
} : "msSaveOrOpenBlob" in navigator ? function(n, e, r) {
|
|
573
573
|
if (e = e || n.name || "download", typeof n == "string") if (au(n)) cs(n, e, r);
|
|
574
574
|
else {
|
|
575
575
|
var a = document.createElement("a");
|
|
576
|
-
a.href = n, a.target = "_blank", setTimeout(function() {
|
|
576
|
+
a.href = n, a.target = "_blank", setTimeout((function() {
|
|
577
577
|
lo(a);
|
|
578
|
-
});
|
|
578
|
+
}));
|
|
579
579
|
}
|
|
580
|
-
else navigator.msSaveOrOpenBlob(function(u, o) {
|
|
580
|
+
else navigator.msSaveOrOpenBlob((function(u, o) {
|
|
581
581
|
return o === void 0 ? o = { autoBom: !1 } : fe(o) !== "object" && (ve.warn("Deprecated: Expected third argument to be a object"), o = { autoBom: !o }), o.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type) ? new Blob(["\uFEFF", u], { type: u.type }) : u;
|
|
582
|
-
}(n, r), e);
|
|
582
|
+
})(n, r), e);
|
|
583
583
|
} : function(n, e, r, a) {
|
|
584
584
|
if ((a = a || open("", "_blank")) && (a.document.title = a.document.body.innerText = "downloading..."), typeof n == "string") return cs(n, e, r);
|
|
585
585
|
var u = n.type === "application/octet-stream", o = /constructor/i.test(Ht.HTMLElement) || Ht.safari, c = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
@@ -591,9 +591,9 @@ var fa, ws, Yn = Ht.saveAs || ((typeof window > "u" ? "undefined" : fe(window))
|
|
|
591
591
|
}, h.readAsDataURL(n);
|
|
592
592
|
} else {
|
|
593
593
|
var f = Ht.URL || Ht.webkitURL, g = f.createObjectURL(n);
|
|
594
|
-
a ? a.location = g : location.href = g, a = null, setTimeout(function() {
|
|
594
|
+
a ? a.location = g : location.href = g, a = null, setTimeout((function() {
|
|
595
595
|
f.revokeObjectURL(g);
|
|
596
|
-
}, 4e4);
|
|
596
|
+
}), 4e4);
|
|
597
597
|
}
|
|
598
598
|
});
|
|
599
599
|
/**
|
|
@@ -676,10 +676,10 @@ function Hl(n) {
|
|
|
676
676
|
function Ls(n) {
|
|
677
677
|
return ju(n).map(Hl).join("");
|
|
678
678
|
}
|
|
679
|
-
var Wl = function(n) {
|
|
679
|
+
var Wl = (function(n) {
|
|
680
680
|
for (var e = 0; e < n.length; e++) n[e] = Ul(n[e]);
|
|
681
681
|
return n.join("");
|
|
682
|
-
}(ju("hello")) != "5d41402abc4b2a76b9719d911017c592";
|
|
682
|
+
})(ju("hello")) != "5d41402abc4b2a76b9719d911017c592";
|
|
683
683
|
function Cn(n, e) {
|
|
684
684
|
if (Wl) {
|
|
685
685
|
var r = (65535 & n) + (65535 & e);
|
|
@@ -725,10 +725,10 @@ var su = { print: 4, modify: 8, copy: 16, "annot-forms": 32 };
|
|
|
725
725
|
function ji(n, e, r, a) {
|
|
726
726
|
this.v = 1, this.r = 2;
|
|
727
727
|
var u = 192;
|
|
728
|
-
n.forEach(function(h) {
|
|
728
|
+
n.forEach((function(h) {
|
|
729
729
|
if (su.perm !== void 0) throw new Error("Invalid permission: " + h);
|
|
730
730
|
u += su[h];
|
|
731
|
-
}), this.padding = "(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";
|
|
731
|
+
})), this.padding = "(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";
|
|
732
732
|
var o = (e + this.padding).substr(0, 32), c = (r + this.padding).substr(0, 32);
|
|
733
733
|
this.O = this.processOwnerPassword(o, c), this.P = -(1 + (255 ^ u)), this.encryptionKey = Ls(o + this.O + this.lsbFirstWord(this.P) + this.hexToBytes(a)).substr(0, 5), this.U = Ns(this.encryptionKey, this.padding);
|
|
734
734
|
}
|
|
@@ -862,9 +862,9 @@ function Rt(n) {
|
|
|
862
862
|
var st, it = "00000000000000000000000000000000", ct = p.__private__.getFileId = function() {
|
|
863
863
|
return it;
|
|
864
864
|
}, $ = p.__private__.setFileId = function(s) {
|
|
865
|
-
return it = s !== void 0 && /^[a-fA-F0-9]{32}$/.test(s) ? s.toUpperCase() : it.split("").map(function() {
|
|
865
|
+
return it = s !== void 0 && /^[a-fA-F0-9]{32}$/.test(s) ? s.toUpperCase() : it.split("").map((function() {
|
|
866
866
|
return "ABCDEF0123456789".charAt(Math.floor(16 * Math.random()));
|
|
867
|
-
}).join(""), y !== null && (Ye = new ji(y.userPermissions, y.userPassword, y.ownerPassword, it)), it;
|
|
867
|
+
})).join(""), y !== null && (Ye = new ji(y.userPermissions, y.userPassword, y.ownerPassword, it)), it;
|
|
868
868
|
};
|
|
869
869
|
p.setFileId = function(s) {
|
|
870
870
|
return $(s), this;
|
|
@@ -1388,7 +1388,7 @@ Q`), hr(X, !0), vr({ data: ut, filters: Vr(), objectId: X }), E("endobj"), T;
|
|
|
1388
1388
|
`);
|
|
1389
1389
|
}, li = p.__private__.getBlob = function(s) {
|
|
1390
1390
|
return new Blob([Et(s)], { type: "application/pdf" });
|
|
1391
|
-
}, ci = p.output = p.__private__.output = Cr(function(s, v) {
|
|
1391
|
+
}, ci = p.output = p.__private__.output = Cr((function(s, v) {
|
|
1392
1392
|
switch (typeof (v = v || {}) == "string" ? v = { filename: v } : v.filename = v.filename || "generated.pdf", s) {
|
|
1393
1393
|
case void 0:
|
|
1394
1394
|
return nn();
|
|
@@ -1445,7 +1445,7 @@ Q`), hr(X, !0), vr({ data: ut, filters: Vr(), objectId: X }), E("endobj"), T;
|
|
|
1445
1445
|
default:
|
|
1446
1446
|
return null;
|
|
1447
1447
|
}
|
|
1448
|
-
}), ka = function(s) {
|
|
1448
|
+
})), ka = function(s) {
|
|
1449
1449
|
return Array.isArray(En) === !0 && En.indexOf(s) > -1;
|
|
1450
1450
|
};
|
|
1451
1451
|
switch (a) {
|
|
@@ -1560,9 +1560,9 @@ Q`), hr(X, !0), vr({ data: ut, filters: Vr(), objectId: X }), E("endobj"), T;
|
|
|
1560
1560
|
case "middle":
|
|
1561
1561
|
j += bi / 2 - yi;
|
|
1562
1562
|
}
|
|
1563
|
-
if ((Yt = T.maxWidth || 0) > 0 && (typeof s == "string" ? s = Me.splitTextToSize(s, Yt) : Object.prototype.toString.call(s) === "[object Array]" && (s = s.reduce(function(be, ye) {
|
|
1563
|
+
if ((Yt = T.maxWidth || 0) > 0 && (typeof s == "string" ? s = Me.splitTextToSize(s, Yt) : Object.prototype.toString.call(s) === "[object Array]" && (s = s.reduce((function(be, ye) {
|
|
1564
1564
|
return be.concat(Me.splitTextToSize(ye, Yt));
|
|
1565
|
-
}, []))), ut = { text: s, x: v, y: j, options: T, mutex: { pdfEscape: ar, activeFontKey: ee, fonts: ge, activeFontSize: xt } }, le.publish("preProcessText", ut), s = ut.text, Ot = (T = ut.options).angle, !(Se instanceof zt) && Ot && typeof Ot == "number") {
|
|
1565
|
+
}), []))), ut = { text: s, x: v, y: j, options: T, mutex: { pdfEscape: ar, activeFontKey: ee, fonts: ge, activeFontSize: xt } }, le.publish("preProcessText", ut), s = ut.text, Ot = (T = ut.options).angle, !(Se instanceof zt) && Ot && typeof Ot == "number") {
|
|
1566
1566
|
Ot *= Math.PI / 180, T.rotationDirection === 0 && (Ot = -Ot), Y === B.ADVANCED && (Ot = -Ot);
|
|
1567
1567
|
var wi = Math.cos(Ot), $i = Math.sin(Ot);
|
|
1568
1568
|
Se = new zt(wi, $i, -$i, wi, 0, 0);
|
|
@@ -1645,13 +1645,13 @@ Q`), hr(X, !0), vr({ data: ut, filters: Vr(), objectId: X }), E("endobj"), T;
|
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
1647
1647
|
var Ua = typeof T.R2L == "boolean" ? T.R2L : qt;
|
|
1648
|
-
Ua === !0 && (s = Xi(s, function(be, ye, Ie) {
|
|
1648
|
+
Ua === !0 && (s = Xi(s, (function(be, ye, Ie) {
|
|
1649
1649
|
return [be.split("").reverse().join(""), ye, Ie];
|
|
1650
|
-
})), ut = { text: s, x: v, y: j, options: T, mutex: { pdfEscape: ar, activeFontKey: ee, fonts: ge, activeFontSize: xt } }, le.publish("postProcessText", ut), s = ut.text, Or = ut.mutex.isHex || !1;
|
|
1650
|
+
}))), ut = { text: s, x: v, y: j, options: T, mutex: { pdfEscape: ar, activeFontKey: ee, fonts: ge, activeFontSize: xt } }, le.publish("postProcessText", ut), s = ut.text, Or = ut.mutex.isHex || !1;
|
|
1651
1651
|
var ea = ge[ee].encoding;
|
|
1652
|
-
ea !== "WinAnsiEncoding" && ea !== "StandardEncoding" || (s = Xi(s, function(be, ye, Ie) {
|
|
1652
|
+
ea !== "WinAnsiEncoding" && ea !== "StandardEncoding" || (s = Xi(s, (function(be, ye, Ie) {
|
|
1653
1653
|
return [Da(be), ye, Ie];
|
|
1654
|
-
})), yt = Yi(s), s = [];
|
|
1654
|
+
}))), yt = Yi(s), s = [];
|
|
1655
1655
|
for (var Hn, Wn, yn, Vn = 0, xi = 1, Gn = Array.isArray(yt[0]) ? xi : Vn, wn = "", ra = function(be, ye, Ie) {
|
|
1656
1656
|
var Te = "";
|
|
1657
1657
|
return Ie instanceof zt ? (Ie = typeof T.angle == "number" ? Pr(Ie, new zt(1, 0, 0, 1, be, ye)) : Pr(new zt(1, 0, 0, 1, be, ye), Ie), Y === B.ADVANCED && (Ie = Pr(new zt(1, 0, 0, -1, 0, 0), Ie)), Te = Ie.join(" ") + ` Tm
|
|
@@ -1834,9 +1834,9 @@ T* `) : s.join(` Tj
|
|
|
1834
1834
|
};
|
|
1835
1835
|
p.__private__.setLineDash = Rt.API.setLineDash = Rt.API.setLineDashPattern = function(s, v) {
|
|
1836
1836
|
if (s = s || [], v = v || 0, isNaN(v) || !Array.isArray(s)) throw new Error("Invalid arguments passed to jsPDF.setLineDash");
|
|
1837
|
-
return s = s.map(function(j) {
|
|
1837
|
+
return s = s.map((function(j) {
|
|
1838
1838
|
return tt(k(j));
|
|
1839
|
-
}).join(" "), v = tt(k(v)), E("[" + s + "] " + v + " d"), this;
|
|
1839
|
+
})).join(" "), v = tt(k(v)), E("[" + s + "] " + v + " d"), this;
|
|
1840
1840
|
};
|
|
1841
1841
|
var Oa = p.__private__.getLineHeight = p.getLineHeight = function() {
|
|
1842
1842
|
return xt * Tn;
|
|
@@ -1987,18 +1987,18 @@ T* `) : s.join(` Tj
|
|
|
1987
1987
|
var v = We[Ur[s]];
|
|
1988
1988
|
return { x: v.x, y: v.y, width: v.width, height: v.height, matrix: v.matrix };
|
|
1989
1989
|
}, p.save = function(s, v) {
|
|
1990
|
-
return s = s || "generated.pdf", (v = v || {}).returnPromise = v.returnPromise || !1, v.returnPromise === !1 ? (Yn(li(nn()), s), typeof Yn.unload == "function" && Ht.setTimeout && setTimeout(Yn.unload, 911), this) : new Promise(function(j, T) {
|
|
1990
|
+
return s = s || "generated.pdf", (v = v || {}).returnPromise = v.returnPromise || !1, v.returnPromise === !1 ? (Yn(li(nn()), s), typeof Yn.unload == "function" && Ht.setTimeout && setTimeout(Yn.unload, 911), this) : new Promise((function(j, T) {
|
|
1991
1991
|
try {
|
|
1992
1992
|
var X = Yn(li(nn()), s);
|
|
1993
1993
|
typeof Yn.unload == "function" && Ht.setTimeout && setTimeout(Yn.unload, 911), j(X);
|
|
1994
1994
|
} catch (ut) {
|
|
1995
1995
|
T(ut.message);
|
|
1996
1996
|
}
|
|
1997
|
-
});
|
|
1998
|
-
}, Rt.API) Rt.API.hasOwnProperty(gi) && (gi === "events" && Rt.API.events.length ? function(s, v) {
|
|
1997
|
+
}));
|
|
1998
|
+
}, Rt.API) Rt.API.hasOwnProperty(gi) && (gi === "events" && Rt.API.events.length ? (function(s, v) {
|
|
1999
1999
|
var j, T, X;
|
|
2000
2000
|
for (X = v.length - 1; X !== -1; X--) j = v[X][0], T = v[X][1], s.subscribe.apply(s, [j].concat(typeof T == "function" ? [T] : T));
|
|
2001
|
-
}(le, Rt.API.events) : p[gi] = Rt.API[gi]);
|
|
2001
|
+
})(le, Rt.API.events) : p[gi] = Rt.API[gi]);
|
|
2002
2002
|
var zn = p.getPageWidth = function(s) {
|
|
2003
2003
|
return (Jt[s = s || C].mediaBox.topRightX - Jt[s].mediaBox.bottomLeftX) / jt;
|
|
2004
2004
|
}, Gi = p.setPageWidth = function(s, v) {
|
|
@@ -2029,9 +2029,9 @@ T* `) : s.join(` Tj
|
|
|
2029
2029
|
ji.prototype.lsbFirstWord = function(n) {
|
|
2030
2030
|
return String.fromCharCode(n >> 0 & 255, n >> 8 & 255, n >> 16 & 255, n >> 24 & 255);
|
|
2031
2031
|
}, ji.prototype.toHexString = function(n) {
|
|
2032
|
-
return n.split("").map(function(e) {
|
|
2032
|
+
return n.split("").map((function(e) {
|
|
2033
2033
|
return ("0" + (255 & e.charCodeAt(0)).toString(16)).slice(-2);
|
|
2034
|
-
}).join("");
|
|
2034
|
+
})).join("");
|
|
2035
2035
|
}, ji.prototype.hexToBytes = function(n) {
|
|
2036
2036
|
for (var e = [], r = 0; r < n.length; r += 2) e.push(String.fromCharCode(parseInt(n.substr(r, 2), 16)));
|
|
2037
2037
|
return e.join("");
|
|
@@ -2078,7 +2078,7 @@ var cr = function(n, e) {
|
|
|
2078
2078
|
return n &= ~(1 << e);
|
|
2079
2079
|
}, Jl = Pe.__acroform__.getBit = function(n, e) {
|
|
2080
2080
|
if (isNaN(n) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");
|
|
2081
|
-
return n & 1 << e ?
|
|
2081
|
+
return (n & 1 << e) == 0 ? 0 : 1;
|
|
2082
2082
|
}, Ce = Pe.__acroform__.getBitForPdf = function(n, e) {
|
|
2083
2083
|
if (isNaN(n) || isNaN(e)) throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");
|
|
2084
2084
|
return Jl(n, e - 1);
|
|
@@ -2102,12 +2102,12 @@ var cr = function(n, e) {
|
|
|
2102
2102
|
}
|
|
2103
2103
|
}, As = function(n, e) {
|
|
2104
2104
|
var r = n.fontSize === 0 ? n.maxFontSize : n.fontSize, a = { text: "", fontSize: "" }, u = (e = (e = e.substr(0, 1) == "(" ? e.substr(1) : e).substr(e.length - 1) == ")" ? e.substr(0, e.length - 1) : e).split(" ");
|
|
2105
|
-
u = n.multiline ? u.map(function(P) {
|
|
2105
|
+
u = n.multiline ? u.map((function(P) {
|
|
2106
2106
|
return P.split(`
|
|
2107
2107
|
`);
|
|
2108
|
-
}) : u.map(function(P) {
|
|
2108
|
+
})) : u.map((function(P) {
|
|
2109
2109
|
return [P];
|
|
2110
|
-
});
|
|
2110
|
+
}));
|
|
2111
2111
|
var o = r, c = Mt.internal.getHeight(n) || 0;
|
|
2112
2112
|
c = c < 0 ? -c : c;
|
|
2113
2113
|
var h = Mt.internal.getWidth(n) || 0;
|
|
@@ -2187,9 +2187,9 @@ var cr = function(n, e) {
|
|
|
2187
2187
|
return { height: e.scope.getStringUnitWidth("3", { font: a, fontSize: parseFloat(r), charSpace: 0 }) * parseFloat(r) * 1.5, width: u };
|
|
2188
2188
|
}, Kl = { fields: [], xForms: [], acroFormDictionaryRoot: null, printedOut: !1, internal: null, isInitialized: !1 }, Zl = function(n, e) {
|
|
2189
2189
|
var r = { type: "reference", object: n };
|
|
2190
|
-
e.internal.getPageInfo(n.page).pageContext.annotations.find(function(a) {
|
|
2190
|
+
e.internal.getPageInfo(n.page).pageContext.annotations.find((function(a) {
|
|
2191
2191
|
return a.type === r.type && a.object === r.object;
|
|
2192
|
-
}) === void 0 && e.internal.getPageInfo(n.page).pageContext.annotations.push(r);
|
|
2192
|
+
})) === void 0 && e.internal.getPageInfo(n.page).pageContext.annotations.push(r);
|
|
2193
2193
|
}, $l = function(n, e) {
|
|
2194
2194
|
for (var r in n) if (n.hasOwnProperty(r)) {
|
|
2195
2195
|
var a = r, u = n[r];
|
|
@@ -2198,11 +2198,11 @@ var cr = function(n, e) {
|
|
|
2198
2198
|
}, Ql = function(n, e) {
|
|
2199
2199
|
if (e.scope = n, n.internal !== void 0 && (n.internal.acroformPlugin === void 0 || n.internal.acroformPlugin.isInitialized === !1)) {
|
|
2200
2200
|
if (Tr.FieldNum = 0, n.internal.acroformPlugin = JSON.parse(JSON.stringify(Kl)), n.internal.acroformPlugin.acroFormDictionaryRoot) throw new Error("Exception while creating AcroformDictionary");
|
|
2201
|
-
ks = n.internal.scaleFactor, n.internal.acroformPlugin.acroFormDictionaryRoot = new Eu(), n.internal.acroformPlugin.acroFormDictionaryRoot.scope = n, n.internal.acroformPlugin.acroFormDictionaryRoot._eventID = n.internal.events.subscribe("postPutResources", function() {
|
|
2201
|
+
ks = n.internal.scaleFactor, n.internal.acroformPlugin.acroFormDictionaryRoot = new Eu(), n.internal.acroformPlugin.acroFormDictionaryRoot.scope = n, n.internal.acroformPlugin.acroFormDictionaryRoot._eventID = n.internal.events.subscribe("postPutResources", (function() {
|
|
2202
2202
|
(function(r) {
|
|
2203
2203
|
r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID), delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID, r.internal.acroformPlugin.printedOut = !0;
|
|
2204
2204
|
})(n);
|
|
2205
|
-
}), n.internal.events.subscribe("buildDocument", function() {
|
|
2205
|
+
})), n.internal.events.subscribe("buildDocument", (function() {
|
|
2206
2206
|
(function(r) {
|
|
2207
2207
|
r.internal.acroformPlugin.acroFormDictionaryRoot.objId = void 0;
|
|
2208
2208
|
var a = r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;
|
|
@@ -2211,12 +2211,12 @@ var cr = function(n, e) {
|
|
|
2211
2211
|
o.objId = void 0, o.hasAnnotation && Zl(o, r);
|
|
2212
2212
|
}
|
|
2213
2213
|
})(n);
|
|
2214
|
-
}), n.internal.events.subscribe("putCatalog", function() {
|
|
2214
|
+
})), n.internal.events.subscribe("putCatalog", (function() {
|
|
2215
2215
|
(function(r) {
|
|
2216
2216
|
if (r.internal.acroformPlugin.acroFormDictionaryRoot === void 0) throw new Error("putCatalogCallback: Root missing.");
|
|
2217
2217
|
r.internal.write("/AcroForm " + r.internal.acroformPlugin.acroFormDictionaryRoot.objId + " 0 R");
|
|
2218
2218
|
})(n);
|
|
2219
|
-
}), n.internal.events.subscribe("postPutPages", function(r) {
|
|
2219
|
+
})), n.internal.events.subscribe("postPutPages", (function(r) {
|
|
2220
2220
|
(function(a, u) {
|
|
2221
2221
|
var o = !a;
|
|
2222
2222
|
for (var c in a || (u.internal.newObjectDeferredBegin(u.internal.acroformPlugin.acroFormDictionaryRoot.objId, !0), u.internal.acroformPlugin.acroFormDictionaryRoot.putStream()), a = a || u.internal.acroformPlugin.acroFormDictionaryRoot.Kids) if (a.hasOwnProperty(c)) {
|
|
@@ -2244,7 +2244,7 @@ var cr = function(n, e) {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
o && $l(u.internal.acroformPlugin.xForms, u);
|
|
2246
2246
|
})(r, n);
|
|
2247
|
-
}), n.internal.acroformPlugin.isInitialized = !0;
|
|
2247
|
+
})), n.internal.acroformPlugin.isInitialized = !0;
|
|
2248
2248
|
}
|
|
2249
2249
|
}, Bu = Pe.__acroform__.arrayToPdfArray = function(n, e, r) {
|
|
2250
2250
|
var a = function(c) {
|
|
@@ -2285,9 +2285,9 @@ $r.prototype.toString = function() {
|
|
|
2285
2285
|
var n = this.getKeyValueListForStream();
|
|
2286
2286
|
this.scope.internal.putStream({ data: this.stream, additionalKeyValues: n, objectId: this.objId }), this.scope.internal.out("endobj");
|
|
2287
2287
|
}, $r.prototype.getKeyValueListForStream = function() {
|
|
2288
|
-
var n = [], e = Object.getOwnPropertyNames(this).filter(function(o) {
|
|
2288
|
+
var n = [], e = Object.getOwnPropertyNames(this).filter((function(o) {
|
|
2289
2289
|
return o != "content" && o != "appearanceStreamContent" && o != "scope" && o != "objId" && o.substring(0, 1) != "_";
|
|
2290
|
-
});
|
|
2290
|
+
}));
|
|
2291
2291
|
for (var r in e) if (Object.getOwnPropertyDescriptor(this, e[r]).configurable === !1) {
|
|
2292
2292
|
var a = e[r], u = this[a];
|
|
2293
2293
|
u && (Array.isArray(u) ? n.push({ key: a, value: Bu(u, this.objId, this.scope) }) : u instanceof $r ? (u.scope = this.scope, n.push({ key: a, value: u.objId + " 0 R" })) : typeof u != "function" && n.push({ key: a, value: u }));
|
|
@@ -2544,11 +2544,11 @@ var Kn = function() {
|
|
|
2544
2544
|
return Bu(e, this.objId, this.scope);
|
|
2545
2545
|
}, set: function(r) {
|
|
2546
2546
|
var a, u;
|
|
2547
|
-
u = [], typeof (a = r) == "string" && (u = function(o, c, h) {
|
|
2547
|
+
u = [], typeof (a = r) == "string" && (u = (function(o, c, h) {
|
|
2548
2548
|
h || (h = 1);
|
|
2549
2549
|
for (var f, g = []; f = c.exec(o); ) g.push(f[h]);
|
|
2550
2550
|
return g;
|
|
2551
|
-
}(a, /\((.*?)\)/g)), e = u;
|
|
2551
|
+
})(a, /\((.*?)\)/g)), e = u;
|
|
2552
2552
|
} }), this.getOptions = function() {
|
|
2553
2553
|
return e;
|
|
2554
2554
|
}, this.setOptions = function(r) {
|
|
@@ -2849,9 +2849,9 @@ var tc = Pe.addField = function(n) {
|
|
|
2849
2849
|
Pe.AcroFormChoiceField = Kn, Pe.AcroFormListBox = Zn, Pe.AcroFormComboBox = $n, Pe.AcroFormEditBox = da, Pe.AcroFormButton = Re, Pe.AcroFormPushButton = pa, Pe.AcroFormRadioButton = Qn, Pe.AcroFormCheckBox = ga, Pe.AcroFormTextField = jn, Pe.AcroFormPasswordField = ma, Pe.AcroFormAppearance = Mt, Pe.AcroForm = { ChoiceField: Kn, ListBox: Zn, ComboBox: $n, EditBox: da, Button: Re, PushButton: pa, RadioButton: Qn, CheckBox: ga, TextField: jn, PasswordField: ma, Appearance: Mt }, Rt.AcroForm = { ChoiceField: Kn, ListBox: Zn, ComboBox: $n, EditBox: da, Button: Re, PushButton: pa, RadioButton: Qn, CheckBox: ga, TextField: jn, PasswordField: ma, Appearance: Mt };
|
|
2850
2850
|
var ec = Rt.AcroForm;
|
|
2851
2851
|
function qu(n) {
|
|
2852
|
-
return n.reduce(function(e, r, a) {
|
|
2852
|
+
return n.reduce((function(e, r, a) {
|
|
2853
2853
|
return e[r] = a, e;
|
|
2854
|
-
}, {});
|
|
2854
|
+
}), {});
|
|
2855
2855
|
}
|
|
2856
2856
|
(function(n) {
|
|
2857
2857
|
n.__addimage__ = {};
|
|
@@ -3007,11 +3007,11 @@ function qu(n) {
|
|
|
3007
3007
|
($ !== "" || ($ = n.loadFile(P, !0)) !== void 0) && (P = $);
|
|
3008
3008
|
}
|
|
3009
3009
|
if (w(P) && (P = S(P, k)), k = a(P, k), !y(k)) throw new Error("addImage does not support files of type '" + k + "', please ensure that a plugin for '" + k + "' support is added.");
|
|
3010
|
-
if (((ct = W) == null || ct.length === 0) && (W = function(ht) {
|
|
3010
|
+
if (((ct = W) == null || ct.length === 0) && (W = (function(ht) {
|
|
3011
3011
|
return typeof ht == "string" || wt(ht) ? B(ht) : wt(ht.data) ? B(ht.data) : null;
|
|
3012
|
-
}(P)), (st = p.call(this, W)) || (lt() && (P instanceof Uint8Array || k === "RGBA" || (it = P, P = tt(P))), st = this["process" + k.toUpperCase()](P, g.call(this), W, function(ht) {
|
|
3012
|
+
})(P)), (st = p.call(this, W)) || (lt() && (P instanceof Uint8Array || k === "RGBA" || (it = P, P = tt(P))), st = this["process" + k.toUpperCase()](P, g.call(this), W, (function(ht) {
|
|
3013
3013
|
return ht && typeof ht == "string" && (ht = ht.toUpperCase()), ht in n.image_compression ? ht : _.NONE;
|
|
3014
|
-
}(D), it)), !st) throw new Error("An unknown error occurred whilst processing the image.");
|
|
3014
|
+
})(D), it)), !st) throw new Error("An unknown error occurred whilst processing the image.");
|
|
3015
3015
|
return st;
|
|
3016
3016
|
}, dt = n.__addimage__.convertBase64ToBinaryString = function(P, k) {
|
|
3017
3017
|
var W;
|
|
@@ -3040,7 +3040,7 @@ function qu(n) {
|
|
|
3040
3040
|
* Licensed under the MIT License.
|
|
3041
3041
|
* http://opensource.org/licenses/mit-license
|
|
3042
3042
|
*/
|
|
3043
|
-
function(n) {
|
|
3043
|
+
(function(n) {
|
|
3044
3044
|
var e = function(r) {
|
|
3045
3045
|
if (r !== void 0 && r != "") return !0;
|
|
3046
3046
|
};
|
|
@@ -3128,14 +3128,14 @@ function(n) {
|
|
|
3128
3128
|
var a = this.internal.getFontSize();
|
|
3129
3129
|
return this.getStringUnitWidth(r) * a / this.internal.scaleFactor;
|
|
3130
3130
|
};
|
|
3131
|
-
}(Rt.API), /**
|
|
3131
|
+
})(Rt.API), /**
|
|
3132
3132
|
* @license
|
|
3133
3133
|
* Copyright (c) 2017 Aras Abbasi
|
|
3134
3134
|
*
|
|
3135
3135
|
* Licensed under the MIT License.
|
|
3136
3136
|
* http://opensource.org/licenses/mit-license
|
|
3137
3137
|
*/
|
|
3138
|
-
function(n) {
|
|
3138
|
+
(function(n) {
|
|
3139
3139
|
var e = { 1569: [65152], 1570: [65153, 65154], 1571: [65155, 65156], 1572: [65157, 65158], 1573: [65159, 65160], 1574: [65161, 65162, 65163, 65164], 1575: [65165, 65166], 1576: [65167, 65168, 65169, 65170], 1577: [65171, 65172], 1578: [65173, 65174, 65175, 65176], 1579: [65177, 65178, 65179, 65180], 1580: [65181, 65182, 65183, 65184], 1581: [65185, 65186, 65187, 65188], 1582: [65189, 65190, 65191, 65192], 1583: [65193, 65194], 1584: [65195, 65196], 1585: [65197, 65198], 1586: [65199, 65200], 1587: [65201, 65202, 65203, 65204], 1588: [65205, 65206, 65207, 65208], 1589: [65209, 65210, 65211, 65212], 1590: [65213, 65214, 65215, 65216], 1591: [65217, 65218, 65219, 65220], 1592: [65221, 65222, 65223, 65224], 1593: [65225, 65226, 65227, 65228], 1594: [65229, 65230, 65231, 65232], 1601: [65233, 65234, 65235, 65236], 1602: [65237, 65238, 65239, 65240], 1603: [65241, 65242, 65243, 65244], 1604: [65245, 65246, 65247, 65248], 1605: [65249, 65250, 65251, 65252], 1606: [65253, 65254, 65255, 65256], 1607: [65257, 65258, 65259, 65260], 1608: [65261, 65262], 1609: [65263, 65264, 64488, 64489], 1610: [65265, 65266, 65267, 65268], 1649: [64336, 64337], 1655: [64477], 1657: [64358, 64359, 64360, 64361], 1658: [64350, 64351, 64352, 64353], 1659: [64338, 64339, 64340, 64341], 1662: [64342, 64343, 64344, 64345], 1663: [64354, 64355, 64356, 64357], 1664: [64346, 64347, 64348, 64349], 1667: [64374, 64375, 64376, 64377], 1668: [64370, 64371, 64372, 64373], 1670: [64378, 64379, 64380, 64381], 1671: [64382, 64383, 64384, 64385], 1672: [64392, 64393], 1676: [64388, 64389], 1677: [64386, 64387], 1678: [64390, 64391], 1681: [64396, 64397], 1688: [64394, 64395], 1700: [64362, 64363, 64364, 64365], 1702: [64366, 64367, 64368, 64369], 1705: [64398, 64399, 64400, 64401], 1709: [64467, 64468, 64469, 64470], 1711: [64402, 64403, 64404, 64405], 1713: [64410, 64411, 64412, 64413], 1715: [64406, 64407, 64408, 64409], 1722: [64414, 64415], 1723: [64416, 64417, 64418, 64419], 1726: [64426, 64427, 64428, 64429], 1728: [64420, 64421], 1729: [64422, 64423, 64424, 64425], 1733: [64480, 64481], 1734: [64473, 64474], 1735: [64471, 64472], 1736: [64475, 64476], 1737: [64482, 64483], 1739: [64478, 64479], 1740: [64508, 64509, 64510, 64511], 1744: [64484, 64485, 64486, 64487], 1746: [64430, 64431], 1747: [64432, 64433] }, r = { 65247: { 65154: 65269, 65156: 65271, 65160: 65273, 65166: 65275 }, 65248: { 65154: 65270, 65156: 65272, 65160: 65274, 65166: 65276 }, 65165: { 65247: { 65248: { 65258: 65010 } } }, 1617: { 1612: 64606, 1613: 64607, 1614: 64608, 1615: 64609, 1616: 64610 } }, a = { 1612: 64606, 1613: 64607, 1614: 64608, 1615: 64609, 1616: 64610 }, u = [1570, 1571, 1573, 1575];
|
|
3140
3140
|
n.__arabicParser__ = {};
|
|
3141
3141
|
var o = n.__arabicParser__.isInArabicSubstitutionA = function(F) {
|
|
@@ -3185,7 +3185,7 @@ function(n) {
|
|
|
3185
3185
|
return typeof arguments[0] == "string" ? F : (arguments[0].text = F, arguments[0]);
|
|
3186
3186
|
};
|
|
3187
3187
|
n.events.push(["preProcessText", O]);
|
|
3188
|
-
}(Rt.API), Rt.API.autoPrint = function(n) {
|
|
3188
|
+
})(Rt.API), Rt.API.autoPrint = function(n) {
|
|
3189
3189
|
var e;
|
|
3190
3190
|
switch ((n = n || {}).variant = n.variant || "non-conform", n.variant) {
|
|
3191
3191
|
case "javascript":
|
|
@@ -3193,11 +3193,11 @@ function(n) {
|
|
|
3193
3193
|
break;
|
|
3194
3194
|
case "non-conform":
|
|
3195
3195
|
default:
|
|
3196
|
-
this.internal.events.subscribe("postPutResources", function() {
|
|
3196
|
+
this.internal.events.subscribe("postPutResources", (function() {
|
|
3197
3197
|
e = this.internal.newObject(), this.internal.out("<<"), this.internal.out("/S /Named"), this.internal.out("/Type /Action"), this.internal.out("/N /Print"), this.internal.out(">>"), this.internal.out("endobj");
|
|
3198
|
-
}), this.internal.events.subscribe("putCatalog", function() {
|
|
3198
|
+
})), this.internal.events.subscribe("putCatalog", (function() {
|
|
3199
3199
|
this.internal.out("/OpenAction " + e + " 0 R");
|
|
3200
|
-
});
|
|
3200
|
+
}));
|
|
3201
3201
|
}
|
|
3202
3202
|
return this;
|
|
3203
3203
|
}, /**
|
|
@@ -3207,7 +3207,7 @@ function(n) {
|
|
|
3207
3207
|
* Licensed under the MIT License.
|
|
3208
3208
|
* http://opensource.org/licenses/mit-license
|
|
3209
3209
|
*/
|
|
3210
|
-
function(n) {
|
|
3210
|
+
(function(n) {
|
|
3211
3211
|
var e = function() {
|
|
3212
3212
|
var r = void 0;
|
|
3213
3213
|
Object.defineProperty(this, "pdf", { get: function() {
|
|
@@ -3250,7 +3250,7 @@ function(n) {
|
|
|
3250
3250
|
}, n.events.push(["initialized", function() {
|
|
3251
3251
|
this.canvas = new e(), this.canvas.pdf = this;
|
|
3252
3252
|
}]);
|
|
3253
|
-
}(Rt.API), function(n) {
|
|
3253
|
+
})(Rt.API), (function(n) {
|
|
3254
3254
|
var e = { left: 0, top: 0, bottom: 0, right: 0 }, r = !1, a = function() {
|
|
3255
3255
|
this.internal.__cell__ === void 0 && (this.internal.__cell__ = {}, this.internal.__cell__.padding = 3, this.internal.__cell__.headerFunction = void 0, this.internal.__cell__.margins = Object.assign({}, e), this.internal.__cell__.margins.width = this.getPageWidth(), u.call(this));
|
|
3256
3256
|
}, u = function() {
|
|
@@ -3313,9 +3313,9 @@ function(n) {
|
|
|
3313
3313
|
f = String(f);
|
|
3314
3314
|
}
|
|
3315
3315
|
var _ = g.maxWidth;
|
|
3316
|
-
_ > 0 ? typeof f == "string" ? f = this.splitTextToSize(f, _) : Object.prototype.toString.call(f) === "[object Array]" && (f = f.reduce(function(Y, ot) {
|
|
3316
|
+
_ > 0 ? typeof f == "string" ? f = this.splitTextToSize(f, _) : Object.prototype.toString.call(f) === "[object Array]" && (f = f.reduce((function(Y, ot) {
|
|
3317
3317
|
return Y.concat(q.splitTextToSize(ot, _));
|
|
3318
|
-
}, [])) : f = Array.isArray(f) ? f : [f];
|
|
3318
|
+
}), [])) : f = Array.isArray(f) ? f : [f];
|
|
3319
3319
|
for (var B = 0; B < f.length; B++) p < (F = this.getStringUnitWidth(f[B], { font: w }) * y) && (p = F);
|
|
3320
3320
|
return p !== 0 && (O = f.length), { w: p /= S, h: Math.max((O * y * this.getLineHeightFactor() - y * (this.getLineHeightFactor() - 1)) / S, 0) };
|
|
3321
3321
|
}, n.cellAddPage = function() {
|
|
@@ -3332,36 +3332,36 @@ function(n) {
|
|
|
3332
3332
|
n.table = function(f, g, y, w, S) {
|
|
3333
3333
|
if (a.call(this), !y) throw new Error("No data for PDF table.");
|
|
3334
3334
|
var p, O, F, q, _ = [], B = [], Y = [], ot = {}, lt = {}, wt = [], tt = [], z = (S = S || {}).autoSize || !1, nt = S.printHeaders !== !1, dt = S.css && S.css["font-size"] !== void 0 ? 16 * S.css["font-size"] : S.fontSize || 12, P = S.margins || Object.assign({ width: this.getPageWidth() }, e), k = typeof S.padding == "number" ? S.padding : 3, W = S.headerBackgroundColor || "#c8c8c8", D = S.headerTextColor || "#000";
|
|
3335
|
-
if (u.call(this), this.internal.__cell__.printHeaders = nt, this.internal.__cell__.margins = P, this.internal.__cell__.table_font_size = dt, this.internal.__cell__.padding = k, this.internal.__cell__.headerBackgroundColor = W, this.internal.__cell__.headerTextColor = D, this.setFontSize(dt), w == null) B = _ = Object.keys(y[0]), Y = _.map(function() {
|
|
3335
|
+
if (u.call(this), this.internal.__cell__.printHeaders = nt, this.internal.__cell__.margins = P, this.internal.__cell__.table_font_size = dt, this.internal.__cell__.padding = k, this.internal.__cell__.headerBackgroundColor = W, this.internal.__cell__.headerTextColor = D, this.setFontSize(dt), w == null) B = _ = Object.keys(y[0]), Y = _.map((function() {
|
|
3336
3336
|
return "left";
|
|
3337
|
-
});
|
|
3338
|
-
else if (Array.isArray(w) && fe(w[0]) === "object") for (_ = w.map(function(pt) {
|
|
3337
|
+
}));
|
|
3338
|
+
else if (Array.isArray(w) && fe(w[0]) === "object") for (_ = w.map((function(pt) {
|
|
3339
3339
|
return pt.name;
|
|
3340
|
-
}), B = w.map(function(pt) {
|
|
3340
|
+
})), B = w.map((function(pt) {
|
|
3341
3341
|
return pt.prompt || pt.name || "";
|
|
3342
|
-
}), Y = w.map(function(pt) {
|
|
3342
|
+
})), Y = w.map((function(pt) {
|
|
3343
3343
|
return pt.align || "left";
|
|
3344
|
-
}), p = 0; p < w.length; p += 1) lt[w[p].name] = w[p].width * (19.049976 / 25.4);
|
|
3345
|
-
else Array.isArray(w) && typeof w[0] == "string" && (B = _ = w, Y = _.map(function() {
|
|
3344
|
+
})), p = 0; p < w.length; p += 1) lt[w[p].name] = w[p].width * (19.049976 / 25.4);
|
|
3345
|
+
else Array.isArray(w) && typeof w[0] == "string" && (B = _ = w, Y = _.map((function() {
|
|
3346
3346
|
return "left";
|
|
3347
|
-
}));
|
|
3347
|
+
})));
|
|
3348
3348
|
if (z || Array.isArray(w) && typeof w[0] == "string") for (p = 0; p < _.length; p += 1) {
|
|
3349
|
-
for (ot[q = _[p]] = y.map(function(pt) {
|
|
3349
|
+
for (ot[q = _[p]] = y.map((function(pt) {
|
|
3350
3350
|
return pt[q];
|
|
3351
|
-
}), this.setFont(void 0, "bold"), wt.push(this.getTextDimensions(B[p], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w), O = ot[q], this.setFont(void 0, "normal"), F = 0; F < O.length; F += 1) wt.push(this.getTextDimensions(O[F], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w);
|
|
3351
|
+
})), this.setFont(void 0, "bold"), wt.push(this.getTextDimensions(B[p], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w), O = ot[q], this.setFont(void 0, "normal"), F = 0; F < O.length; F += 1) wt.push(this.getTextDimensions(O[F], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w);
|
|
3352
3352
|
lt[q] = Math.max.apply(null, wt) + k + k, wt = [];
|
|
3353
3353
|
}
|
|
3354
3354
|
if (nt) {
|
|
3355
3355
|
var st = {};
|
|
3356
3356
|
for (p = 0; p < _.length; p += 1) st[_[p]] = {}, st[_[p]].text = B[p], st[_[p]].align = Y[p];
|
|
3357
3357
|
var it = h.call(this, st, lt);
|
|
3358
|
-
tt = _.map(function(pt) {
|
|
3358
|
+
tt = _.map((function(pt) {
|
|
3359
3359
|
return new o(f, g, lt[pt], it, st[pt].text, void 0, st[pt].align);
|
|
3360
|
-
}), this.setTableHeaderRow(tt), this.printHeaderRow(1, !1);
|
|
3360
|
+
})), this.setTableHeaderRow(tt), this.printHeaderRow(1, !1);
|
|
3361
3361
|
}
|
|
3362
|
-
var ct = w.reduce(function(pt, It) {
|
|
3362
|
+
var ct = w.reduce((function(pt, It) {
|
|
3363
3363
|
return pt[It.name] = It.align, pt;
|
|
3364
|
-
}, {});
|
|
3364
|
+
}), {});
|
|
3365
3365
|
for (p = 0; p < y.length; p += 1) {
|
|
3366
3366
|
"rowStart" in S && S.rowStart instanceof Function && S.rowStart({ row: p, data: y[p] }, this);
|
|
3367
3367
|
var $ = h.call(this, y[p], lt);
|
|
@@ -3374,14 +3374,14 @@ function(n) {
|
|
|
3374
3374
|
};
|
|
3375
3375
|
var h = function(f, g) {
|
|
3376
3376
|
var y = this.internal.__cell__.padding, w = this.internal.__cell__.table_font_size, S = this.internal.scaleFactor;
|
|
3377
|
-
return Object.keys(f).map(function(p) {
|
|
3377
|
+
return Object.keys(f).map((function(p) {
|
|
3378
3378
|
var O = f[p];
|
|
3379
3379
|
return this.splitTextToSize(O.hasOwnProperty("text") ? O.text : O, g[p] - y - y);
|
|
3380
|
-
}, this).map(function(p) {
|
|
3380
|
+
}), this).map((function(p) {
|
|
3381
3381
|
return this.getLineHeightFactor() * p.length * w / S + y + y;
|
|
3382
|
-
}, this).reduce(function(p, O) {
|
|
3382
|
+
}), this).reduce((function(p, O) {
|
|
3383
3383
|
return Math.max(p, O);
|
|
3384
|
-
}, 0);
|
|
3384
|
+
}), 0);
|
|
3385
3385
|
};
|
|
3386
3386
|
n.setTableHeaderRow = function(f) {
|
|
3387
3387
|
a.call(this), this.internal.__cell__.tableHeaderRow = f;
|
|
@@ -3400,12 +3400,12 @@ function(n) {
|
|
|
3400
3400
|
}
|
|
3401
3401
|
S.length > 0 && this.setTableHeaderRow(S), this.setFont(void 0, "normal"), r = !1;
|
|
3402
3402
|
};
|
|
3403
|
-
}(Rt.API);
|
|
3403
|
+
})(Rt.API);
|
|
3404
3404
|
var Du = { italic: ["italic", "oblique", "normal"], oblique: ["oblique", "italic", "normal"], normal: ["normal", "oblique", "italic"] }, Tu = ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"], xs = qu(Tu), Ru = [100, 200, 300, 400, 500, 600, 700, 800, 900], rc = qu(Ru);
|
|
3405
3405
|
function Ss(n) {
|
|
3406
|
-
var e = n.family.replace(/"|'/g, "").toLowerCase(), r = function(o) {
|
|
3406
|
+
var e = n.family.replace(/"|'/g, "").toLowerCase(), r = (function(o) {
|
|
3407
3407
|
return Du[o = o || "normal"] ? o : "normal";
|
|
3408
|
-
}(n.style), a = function(o) {
|
|
3408
|
+
})(n.style), a = (function(o) {
|
|
3409
3409
|
if (!o) return 400;
|
|
3410
3410
|
if (typeof o == "number") return o >= 100 && o <= 900 && o % 100 == 0 ? o : 400;
|
|
3411
3411
|
if (/^\d00$/.test(o)) return parseInt(o);
|
|
@@ -3416,9 +3416,9 @@ function Ss(n) {
|
|
|
3416
3416
|
default:
|
|
3417
3417
|
return 400;
|
|
3418
3418
|
}
|
|
3419
|
-
}(n.weight), u = function(o) {
|
|
3419
|
+
})(n.weight), u = (function(o) {
|
|
3420
3420
|
return typeof xs[o = o || "normal"] == "number" ? o : "normal";
|
|
3421
|
-
}(n.stretch);
|
|
3421
|
+
})(n.stretch);
|
|
3422
3422
|
return { family: e, style: r, weight: a, stretch: u, src: n.src || [], ref: n.ref || { name: e, style: [u, r, a].join(" ") } };
|
|
3423
3423
|
}
|
|
3424
3424
|
function cu(n, e, r, a) {
|
|
@@ -3436,23 +3436,23 @@ function ic(n, e, r) {
|
|
|
3436
3436
|
break;
|
|
3437
3437
|
}
|
|
3438
3438
|
if (!(c = c || n[a])) throw new Error("Could not find a font-family for the rule '" + fu(o) + "' and default family '" + a + "'.");
|
|
3439
|
-
if (c = function(f, g) {
|
|
3439
|
+
if (c = (function(f, g) {
|
|
3440
3440
|
if (g[f]) return g[f];
|
|
3441
3441
|
var y = xs[f], w = y <= xs.normal ? -1 : 1, S = cu(g, Tu, y, w);
|
|
3442
3442
|
if (!S) throw new Error("Could not find a matching font-stretch value for " + f);
|
|
3443
3443
|
return S;
|
|
3444
|
-
}(o.stretch, c), c = function(f, g) {
|
|
3444
|
+
})(o.stretch, c), c = (function(f, g) {
|
|
3445
3445
|
if (g[f]) return g[f];
|
|
3446
3446
|
for (var y = Du[f], w = 0; w < y.length; ++w) if (g[y[w]]) return g[y[w]];
|
|
3447
3447
|
throw new Error("Could not find a matching font-style for " + f);
|
|
3448
|
-
}(o.style, c), !(c = function(f, g) {
|
|
3448
|
+
})(o.style, c), !(c = (function(f, g) {
|
|
3449
3449
|
if (g[f]) return g[f];
|
|
3450
3450
|
if (f === 400 && g[500]) return g[500];
|
|
3451
3451
|
if (f === 500 && g[400]) return g[400];
|
|
3452
3452
|
var y = rc[f], w = cu(g, Ru, y, f < 400 ? -1 : 1);
|
|
3453
3453
|
if (!w) throw new Error("Could not find a matching font-weight for value " + f);
|
|
3454
3454
|
return w;
|
|
3455
|
-
}(o.weight, c))) throw new Error("Failed to resolve a font for the rule '" + fu(o) + "'.");
|
|
3455
|
+
})(o.weight, c))) throw new Error("Failed to resolve a font for the rule '" + fu(o) + "'.");
|
|
3456
3456
|
return c;
|
|
3457
3457
|
}
|
|
3458
3458
|
function du(n) {
|
|
@@ -3583,10 +3583,10 @@ var ho, pu, gu, ds = ["times"];
|
|
|
3583
3583
|
var Ft = null;
|
|
3584
3584
|
function _t(ft, E) {
|
|
3585
3585
|
if (Ft === null) {
|
|
3586
|
-
var Kt = function(Et) {
|
|
3586
|
+
var Kt = (function(Et) {
|
|
3587
3587
|
var Lt = [];
|
|
3588
|
-
return Object.keys(Et).forEach(function(xt) {
|
|
3589
|
-
Et[xt].forEach(function(Ct) {
|
|
3588
|
+
return Object.keys(Et).forEach((function(xt) {
|
|
3589
|
+
Et[xt].forEach((function(Ct) {
|
|
3590
3590
|
var kt = null;
|
|
3591
3591
|
switch (Ct) {
|
|
3592
3592
|
case "bold":
|
|
@@ -3603,16 +3603,16 @@ var ho, pu, gu, ds = ["times"];
|
|
|
3603
3603
|
kt = { family: xt };
|
|
3604
3604
|
}
|
|
3605
3605
|
kt !== null && (kt.ref = { name: xt, style: Ct }, Lt.push(kt));
|
|
3606
|
-
});
|
|
3607
|
-
}), Lt;
|
|
3608
|
-
}(ft.getFontList());
|
|
3609
|
-
Ft = function(Et) {
|
|
3606
|
+
}));
|
|
3607
|
+
})), Lt;
|
|
3608
|
+
})(ft.getFontList());
|
|
3609
|
+
Ft = (function(Et) {
|
|
3610
3610
|
for (var Lt = {}, xt = 0; xt < Et.length; ++xt) {
|
|
3611
3611
|
var Ct = Ss(Et[xt]), kt = Ct.family, qt = Ct.stretch, Gt = Ct.style, Qt = Ct.weight;
|
|
3612
3612
|
Lt[kt] = Lt[kt] || {}, Lt[kt][qt] = Lt[kt][qt] || {}, Lt[kt][qt][Gt] = Lt[kt][qt][Gt] || {}, Lt[kt][qt][Gt][Qt] = Ct;
|
|
3613
3613
|
}
|
|
3614
3614
|
return Lt;
|
|
3615
|
-
}(Kt.concat(E));
|
|
3615
|
+
})(Kt.concat(E));
|
|
3616
3616
|
}
|
|
3617
3617
|
return Ft;
|
|
3618
3618
|
}
|
|
@@ -3628,7 +3628,7 @@ var ho, pu, gu, ds = ["times"];
|
|
|
3628
3628
|
if (this.ctx.font = ft, (E = /^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(ft)) !== null) {
|
|
3629
3629
|
var Kt = E[1], Et = (E[2], E[3]), Lt = E[4], xt = (E[5], E[6]), Ct = /^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Lt)[2];
|
|
3630
3630
|
Lt = Math.floor(Ct === "px" ? parseFloat(Lt) * this.pdf.internal.scaleFactor : Ct === "em" ? parseFloat(Lt) * this.pdf.getFontSize() : parseFloat(Lt) * this.pdf.internal.scaleFactor), this.pdf.setFontSize(Lt);
|
|
3631
|
-
var kt = function(Wt) {
|
|
3631
|
+
var kt = (function(Wt) {
|
|
3632
3632
|
var ee, jt, Je = [], oe = Wt.trim();
|
|
3633
3633
|
if (oe === "") return ds;
|
|
3634
3634
|
if (oe in hu) return [hu[oe]];
|
|
@@ -3645,11 +3645,11 @@ var ho, pu, gu, ds = ["times"];
|
|
|
3645
3645
|
oe = oe.replace(/^,/, "");
|
|
3646
3646
|
}
|
|
3647
3647
|
return Je;
|
|
3648
|
-
}(xt);
|
|
3648
|
+
})(xt);
|
|
3649
3649
|
if (this.fontFaces) {
|
|
3650
|
-
var qt = ic(_t(this.pdf, this.fontFaces), kt.map(function(Wt) {
|
|
3650
|
+
var qt = ic(_t(this.pdf, this.fontFaces), kt.map((function(Wt) {
|
|
3651
3651
|
return { family: Wt, stretch: "normal", weight: Et, style: Kt };
|
|
3652
|
-
}));
|
|
3652
|
+
})));
|
|
3653
3653
|
this.pdf.setFont(qt.ref.name, qt.ref.style);
|
|
3654
3654
|
} else {
|
|
3655
3655
|
var Gt = "";
|
|
@@ -3899,9 +3899,9 @@ var ho, pu, gu, ds = ["times"];
|
|
|
3899
3899
|
}
|
|
3900
3900
|
return N;
|
|
3901
3901
|
}, Y = function(N) {
|
|
3902
|
-
return N.sort(function(C, M) {
|
|
3902
|
+
return N.sort((function(C, M) {
|
|
3903
3903
|
return C - M;
|
|
3904
|
-
});
|
|
3904
|
+
}));
|
|
3905
3905
|
}, ot = function(N, C) {
|
|
3906
3906
|
for (var M, R, J = this.fillStyle, Q = this.strokeStyle, et = this.lineCap, rt = this.lineWidth, At = Math.abs(rt * this.ctx.transform.scaleX), Nt = this.lineJoin, Ft = JSON.parse(JSON.stringify(this.path)), _t = JSON.parse(JSON.stringify(this.path)), Ut = [], ft = 0; ft < _t.length; ft++) if (_t[ft].x !== void 0) for (var E = q.call(this, _t[ft]), Kt = 0; Kt < E.length; Kt += 1) Ut.indexOf(E[Kt]) === -1 && Ut.push(E[Kt]);
|
|
3907
3907
|
for (var Et = 0; Et < Ut.length; Et++) for (; this.pdf.internal.getNumberOfPages() < Ut[Et]; ) _.call(this);
|
|
@@ -4095,19 +4095,19 @@ var ho, pu, gu, ds = ["times"];
|
|
|
4095
4095
|
* Licensed under the MIT License.
|
|
4096
4096
|
* http://opensource.org/licenses/mit-license
|
|
4097
4097
|
*/
|
|
4098
|
-
function(n) {
|
|
4098
|
+
(function(n) {
|
|
4099
4099
|
var e = function(o) {
|
|
4100
4100
|
var c, h, f, g, y, w, S, p, O, F;
|
|
4101
4101
|
for (h = [], f = 0, g = (o += c = "\0\0\0\0".slice(o.length % 4 || 4)).length; g > f; f += 4) (y = (o.charCodeAt(f) << 24) + (o.charCodeAt(f + 1) << 16) + (o.charCodeAt(f + 2) << 8) + o.charCodeAt(f + 3)) !== 0 ? (w = (y = ((y = ((y = ((y = (y - (F = y % 85)) / 85) - (O = y % 85)) / 85) - (p = y % 85)) / 85) - (S = y % 85)) / 85) % 85, h.push(w + 33, S + 33, p + 33, O + 33, F + 33)) : h.push(122);
|
|
4102
|
-
return function(q, _) {
|
|
4102
|
+
return (function(q, _) {
|
|
4103
4103
|
for (var B = _; B > 0; B--) q.pop();
|
|
4104
|
-
}(h, c.length), String.fromCharCode.apply(String, h) + "~>";
|
|
4104
|
+
})(h, c.length), String.fromCharCode.apply(String, h) + "~>";
|
|
4105
4105
|
}, r = function(o) {
|
|
4106
4106
|
var c, h, f, g, y, w = String, S = "length", p = 255, O = "charCodeAt", F = "slice", q = "replace";
|
|
4107
4107
|
for (o[F](-2), o = o[F](0, -2)[q](/\s/g, "")[q]("z", "!!!!!"), f = [], g = 0, y = (o += c = "uuuuu"[F](o[S] % 5 || 5))[S]; y > g; g += 5) h = 52200625 * (o[O](g) - 33) + 614125 * (o[O](g + 1) - 33) + 7225 * (o[O](g + 2) - 33) + 85 * (o[O](g + 3) - 33) + (o[O](g + 4) - 33), f.push(p & h >> 24, p & h >> 16, p & h >> 8, p & h);
|
|
4108
|
-
return function(_, B) {
|
|
4108
|
+
return (function(_, B) {
|
|
4109
4109
|
for (var Y = B; Y > 0; Y--) _.pop();
|
|
4110
|
-
}(f, c[S]), w.fromCharCode.apply(w, f);
|
|
4110
|
+
})(f, c[S]), w.fromCharCode.apply(w, f);
|
|
4111
4111
|
}, a = function(o) {
|
|
4112
4112
|
var c = new RegExp(/^([0-9A-Fa-f]{2})+$/);
|
|
4113
4113
|
if ((o = o.replace(/\s/g, "")).indexOf(">") !== -1 && (o = o.substr(0, o.indexOf(">"))), o.length % 2 && (o += "0"), c.test(o) === !1) return "";
|
|
@@ -4115,9 +4115,9 @@ function(n) {
|
|
|
4115
4115
|
return h;
|
|
4116
4116
|
}, u = function(o) {
|
|
4117
4117
|
for (var c = new Uint8Array(o.length), h = o.length; h--; ) c[h] = o.charCodeAt(h);
|
|
4118
|
-
return o = (c = ys(c)).reduce(function(f, g) {
|
|
4118
|
+
return o = (c = ys(c)).reduce((function(f, g) {
|
|
4119
4119
|
return f + String.fromCharCode(g);
|
|
4120
|
-
}, "");
|
|
4120
|
+
}), "");
|
|
4121
4121
|
};
|
|
4122
4122
|
n.processDataByFilters = function(o, c) {
|
|
4123
4123
|
var h = 0, f = o || "", g = [];
|
|
@@ -4136,9 +4136,9 @@ function(n) {
|
|
|
4136
4136
|
break;
|
|
4137
4137
|
case "ASCIIHexEncode":
|
|
4138
4138
|
case "/ASCIIHexEncode":
|
|
4139
|
-
f = f.split("").map(function(y) {
|
|
4139
|
+
f = f.split("").map((function(y) {
|
|
4140
4140
|
return ("0" + y.charCodeAt().toString(16)).slice(-2);
|
|
4141
|
-
}).join("") + ">", g.push("/ASCIIHexDecode");
|
|
4141
|
+
})).join("") + ">", g.push("/ASCIIHexDecode");
|
|
4142
4142
|
break;
|
|
4143
4143
|
case "FlateEncode":
|
|
4144
4144
|
case "/FlateEncode":
|
|
@@ -4149,7 +4149,7 @@ function(n) {
|
|
|
4149
4149
|
}
|
|
4150
4150
|
return { data: f, reverseChain: g.reverse().join(" ") };
|
|
4151
4151
|
};
|
|
4152
|
-
}(Rt.API), /**
|
|
4152
|
+
})(Rt.API), /**
|
|
4153
4153
|
* @license
|
|
4154
4154
|
* jsPDF fileloading PlugIn
|
|
4155
4155
|
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
|
|
@@ -4157,14 +4157,14 @@ function(n) {
|
|
|
4157
4157
|
* Licensed under the MIT License.
|
|
4158
4158
|
* http://opensource.org/licenses/mit-license
|
|
4159
4159
|
*/
|
|
4160
|
-
function(n) {
|
|
4160
|
+
(function(n) {
|
|
4161
4161
|
n.loadFile = function(e, r, a) {
|
|
4162
|
-
return function(u, o, c) {
|
|
4162
|
+
return (function(u, o, c) {
|
|
4163
4163
|
o = o !== !1, c = typeof c == "function" ? c : function() {
|
|
4164
4164
|
};
|
|
4165
4165
|
var h = void 0;
|
|
4166
4166
|
try {
|
|
4167
|
-
h = function(f, g, y) {
|
|
4167
|
+
h = (function(f, g, y) {
|
|
4168
4168
|
var w = new XMLHttpRequest(), S = 0, p = function(O) {
|
|
4169
4169
|
var F = O.length, q = [], _ = String.fromCharCode;
|
|
4170
4170
|
for (S = 0; S < F; S += 1) q.push(_(255 & O.charCodeAt(S)));
|
|
@@ -4173,26 +4173,26 @@ function(n) {
|
|
|
4173
4173
|
if (w.open("GET", f, !g), w.overrideMimeType("text/plain; charset=x-user-defined"), g === !1 && (w.onload = function() {
|
|
4174
4174
|
w.status === 200 ? y(p(this.responseText)) : y(void 0);
|
|
4175
4175
|
}), w.send(null), g && w.status === 200) return p(w.responseText);
|
|
4176
|
-
}(u, o, c);
|
|
4176
|
+
})(u, o, c);
|
|
4177
4177
|
} catch {
|
|
4178
4178
|
}
|
|
4179
4179
|
return h;
|
|
4180
|
-
}(e, r, a);
|
|
4180
|
+
})(e, r, a);
|
|
4181
4181
|
}, n.loadImageFile = n.loadFile;
|
|
4182
|
-
}(Rt.API), function(n) {
|
|
4182
|
+
})(Rt.API), (function(n) {
|
|
4183
4183
|
function e() {
|
|
4184
|
-
return (Ht.html2canvas ? Promise.resolve(Ht.html2canvas) : import("./html2canvas.esm-
|
|
4184
|
+
return (Ht.html2canvas ? Promise.resolve(Ht.html2canvas) : import("./html2canvas.esm-dgT_1dIT.js")).catch((function(c) {
|
|
4185
4185
|
return Promise.reject(new Error("Could not load html2canvas: " + c));
|
|
4186
|
-
}).then(function(c) {
|
|
4186
|
+
})).then((function(c) {
|
|
4187
4187
|
return c.default ? c.default : c;
|
|
4188
|
-
});
|
|
4188
|
+
}));
|
|
4189
4189
|
}
|
|
4190
4190
|
function r() {
|
|
4191
|
-
return (Ht.DOMPurify ? Promise.resolve(Ht.DOMPurify) : import("./purify.es-Bo7Q7b72.js")).catch(function(c) {
|
|
4191
|
+
return (Ht.DOMPurify ? Promise.resolve(Ht.DOMPurify) : import("./purify.es-Bo7Q7b72.js")).catch((function(c) {
|
|
4192
4192
|
return Promise.reject(new Error("Could not load dompurify: " + c));
|
|
4193
|
-
}).then(function(c) {
|
|
4193
|
+
})).then((function(c) {
|
|
4194
4194
|
return c.default ? c.default : c;
|
|
4195
|
-
});
|
|
4195
|
+
}));
|
|
4196
4196
|
}
|
|
4197
4197
|
var a = function(c) {
|
|
4198
4198
|
var h = fe(c);
|
|
@@ -4209,8 +4209,8 @@ function(n) {
|
|
|
4209
4209
|
return c.__proto__ = h || o.prototype, c;
|
|
4210
4210
|
}, o.template = { prop: { src: null, container: null, overlay: null, canvas: null, img: null, pdf: null, pageSize: null, callback: function() {
|
|
4211
4211
|
} }, progress: { val: 0, state: null, n: 0, stack: [] }, opt: { filename: "file.pdf", margin: [0, 0, 0, 0], enableLinks: !0, x: 0, y: 0, html2canvas: {}, jsPDF: {}, backgroundColor: "transparent" } }, o.prototype.from = function(c, h) {
|
|
4212
|
-
return this.then(function() {
|
|
4213
|
-
switch (h = h || function(f) {
|
|
4212
|
+
return this.then((function() {
|
|
4213
|
+
switch (h = h || (function(f) {
|
|
4214
4214
|
switch (a(f)) {
|
|
4215
4215
|
case "string":
|
|
4216
4216
|
return "string";
|
|
@@ -4219,11 +4219,11 @@ function(n) {
|
|
|
4219
4219
|
default:
|
|
4220
4220
|
return "unknown";
|
|
4221
4221
|
}
|
|
4222
|
-
}(c)) {
|
|
4222
|
+
})(c)) {
|
|
4223
4223
|
case "string":
|
|
4224
|
-
return this.then(r).then(function(f) {
|
|
4224
|
+
return this.then(r).then((function(f) {
|
|
4225
4225
|
return this.set({ src: u("div", { innerHTML: c, dompurify: f }) });
|
|
4226
|
-
});
|
|
4226
|
+
}));
|
|
4227
4227
|
case "element":
|
|
4228
4228
|
return this.set({ src: c });
|
|
4229
4229
|
case "canvas":
|
|
@@ -4233,7 +4233,7 @@ function(n) {
|
|
|
4233
4233
|
default:
|
|
4234
4234
|
return this.error("Unknown source type.");
|
|
4235
4235
|
}
|
|
4236
|
-
});
|
|
4236
|
+
}));
|
|
4237
4237
|
}, o.prototype.to = function(c) {
|
|
4238
4238
|
switch (c) {
|
|
4239
4239
|
case "container":
|
|
@@ -4252,68 +4252,68 @@ function(n) {
|
|
|
4252
4252
|
return this.prop.src || this.error("Cannot duplicate - no source HTML.");
|
|
4253
4253
|
}, function() {
|
|
4254
4254
|
return this.prop.pageSize || this.setPageSize();
|
|
4255
|
-
}]).then(function() {
|
|
4256
|
-
var c = { position: "relative", display: "inline-block", width: (typeof this.opt.width != "number" || isNaN(this.opt.width) || typeof this.opt.windowWidth != "number" || isNaN(this.opt.windowWidth) ? Math.max(this.prop.src.clientWidth, this.prop.src.scrollWidth, this.prop.src.offsetWidth) : this.opt.windowWidth) + "px", left: 0, right: 0, top: 0, margin: "auto", backgroundColor: this.opt.backgroundColor }, h = function f(g, y) {
|
|
4255
|
+
}]).then((function() {
|
|
4256
|
+
var c = { position: "relative", display: "inline-block", width: (typeof this.opt.width != "number" || isNaN(this.opt.width) || typeof this.opt.windowWidth != "number" || isNaN(this.opt.windowWidth) ? Math.max(this.prop.src.clientWidth, this.prop.src.scrollWidth, this.prop.src.offsetWidth) : this.opt.windowWidth) + "px", left: 0, right: 0, top: 0, margin: "auto", backgroundColor: this.opt.backgroundColor }, h = (function f(g, y) {
|
|
4257
4257
|
for (var w = g.nodeType === 3 ? document.createTextNode(g.nodeValue) : g.cloneNode(!1), S = g.firstChild; S; S = S.nextSibling) y !== !0 && S.nodeType === 1 && S.nodeName === "SCRIPT" || w.appendChild(f(S, y));
|
|
4258
|
-
return g.nodeType === 1 && (g.nodeName === "CANVAS" ? (w.width = g.width, w.height = g.height, w.getContext("2d").drawImage(g, 0, 0)) : g.nodeName !== "TEXTAREA" && g.nodeName !== "SELECT" || (w.value = g.value), w.addEventListener("load", function() {
|
|
4258
|
+
return g.nodeType === 1 && (g.nodeName === "CANVAS" ? (w.width = g.width, w.height = g.height, w.getContext("2d").drawImage(g, 0, 0)) : g.nodeName !== "TEXTAREA" && g.nodeName !== "SELECT" || (w.value = g.value), w.addEventListener("load", (function() {
|
|
4259
4259
|
w.scrollTop = g.scrollTop, w.scrollLeft = g.scrollLeft;
|
|
4260
|
-
}, !0)), w;
|
|
4261
|
-
}(this.prop.src, this.opt.html2canvas.javascriptEnabled);
|
|
4260
|
+
}), !0)), w;
|
|
4261
|
+
})(this.prop.src, this.opt.html2canvas.javascriptEnabled);
|
|
4262
4262
|
h.tagName === "BODY" && (c.height = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight) + "px"), this.prop.overlay = u("div", { className: "html2pdf__overlay", style: { position: "fixed", overflow: "hidden", zIndex: 1e3, left: "-100000px", right: 0, bottom: 0, top: 0 } }), this.prop.container = u("div", { className: "html2pdf__container", style: c }), this.prop.container.appendChild(h), this.prop.container.firstChild.appendChild(u("div", { style: { clear: "both", border: "0 none transparent", margin: 0, padding: 0, height: 0 } })), this.prop.container.style.float = "none", this.prop.overlay.appendChild(this.prop.container), document.body.appendChild(this.prop.overlay), this.prop.container.firstChild.style.position = "relative", this.prop.container.height = Math.max(this.prop.container.firstChild.clientHeight, this.prop.container.firstChild.scrollHeight, this.prop.container.firstChild.offsetHeight) + "px";
|
|
4263
|
-
});
|
|
4263
|
+
}));
|
|
4264
4264
|
}, o.prototype.toCanvas = function() {
|
|
4265
4265
|
var c = [function() {
|
|
4266
4266
|
return document.body.contains(this.prop.container) || this.toContainer();
|
|
4267
4267
|
}];
|
|
4268
|
-
return this.thenList(c).then(e).then(function(h) {
|
|
4268
|
+
return this.thenList(c).then(e).then((function(h) {
|
|
4269
4269
|
var f = Object.assign({}, this.opt.html2canvas);
|
|
4270
4270
|
return delete f.onrendered, h(this.prop.container, f);
|
|
4271
|
-
}).then(function(h) {
|
|
4271
|
+
})).then((function(h) {
|
|
4272
4272
|
(this.opt.html2canvas.onrendered || function() {
|
|
4273
4273
|
})(h), this.prop.canvas = h, document.body.removeChild(this.prop.overlay);
|
|
4274
|
-
});
|
|
4274
|
+
}));
|
|
4275
4275
|
}, o.prototype.toContext2d = function() {
|
|
4276
4276
|
var c = [function() {
|
|
4277
4277
|
return document.body.contains(this.prop.container) || this.toContainer();
|
|
4278
4278
|
}];
|
|
4279
|
-
return this.thenList(c).then(e).then(function(h) {
|
|
4279
|
+
return this.thenList(c).then(e).then((function(h) {
|
|
4280
4280
|
var f = this.opt.jsPDF, g = this.opt.fontFaces, y = typeof this.opt.width != "number" || isNaN(this.opt.width) || typeof this.opt.windowWidth != "number" || isNaN(this.opt.windowWidth) ? 1 : this.opt.width / this.opt.windowWidth, w = Object.assign({ async: !0, allowTaint: !0, scale: y, scrollX: this.opt.scrollX || 0, scrollY: this.opt.scrollY || 0, backgroundColor: "#ffffff", imageTimeout: 15e3, logging: !0, proxy: null, removeContainer: !0, foreignObjectRendering: !1, useCORS: !1 }, this.opt.html2canvas);
|
|
4281
4281
|
if (delete w.onrendered, f.context2d.autoPaging = this.opt.autoPaging === void 0 || this.opt.autoPaging, f.context2d.posX = this.opt.x, f.context2d.posY = this.opt.y, f.context2d.margin = this.opt.margin, f.context2d.fontFaces = g, g) for (var S = 0; S < g.length; ++S) {
|
|
4282
|
-
var p = g[S], O = p.src.find(function(F) {
|
|
4282
|
+
var p = g[S], O = p.src.find((function(F) {
|
|
4283
4283
|
return F.format === "truetype";
|
|
4284
|
-
});
|
|
4284
|
+
}));
|
|
4285
4285
|
O && f.addFont(O.url, p.ref.name, p.ref.style);
|
|
4286
4286
|
}
|
|
4287
4287
|
return w.windowHeight = w.windowHeight || 0, w.windowHeight = w.windowHeight == 0 ? Math.max(this.prop.container.clientHeight, this.prop.container.scrollHeight, this.prop.container.offsetHeight) : w.windowHeight, f.context2d.save(!0), h(this.prop.container, w);
|
|
4288
|
-
}).then(function(h) {
|
|
4288
|
+
})).then((function(h) {
|
|
4289
4289
|
this.opt.jsPDF.context2d.restore(!0), (this.opt.html2canvas.onrendered || function() {
|
|
4290
4290
|
})(h), this.prop.canvas = h, document.body.removeChild(this.prop.overlay);
|
|
4291
|
-
});
|
|
4291
|
+
}));
|
|
4292
4292
|
}, o.prototype.toImg = function() {
|
|
4293
4293
|
return this.thenList([function() {
|
|
4294
4294
|
return this.prop.canvas || this.toCanvas();
|
|
4295
|
-
}]).then(function() {
|
|
4295
|
+
}]).then((function() {
|
|
4296
4296
|
var c = this.prop.canvas.toDataURL("image/" + this.opt.image.type, this.opt.image.quality);
|
|
4297
4297
|
this.prop.img = document.createElement("img"), this.prop.img.src = c;
|
|
4298
|
-
});
|
|
4298
|
+
}));
|
|
4299
4299
|
}, o.prototype.toPdf = function() {
|
|
4300
4300
|
return this.thenList([function() {
|
|
4301
4301
|
return this.toContext2d();
|
|
4302
|
-
}]).then(function() {
|
|
4302
|
+
}]).then((function() {
|
|
4303
4303
|
this.prop.pdf = this.prop.pdf || this.opt.jsPDF;
|
|
4304
|
-
});
|
|
4304
|
+
}));
|
|
4305
4305
|
}, o.prototype.output = function(c, h, f) {
|
|
4306
4306
|
return (f = f || "pdf").toLowerCase() === "img" || f.toLowerCase() === "image" ? this.outputImg(c, h) : this.outputPdf(c, h);
|
|
4307
4307
|
}, o.prototype.outputPdf = function(c, h) {
|
|
4308
4308
|
return this.thenList([function() {
|
|
4309
4309
|
return this.prop.pdf || this.toPdf();
|
|
4310
|
-
}]).then(function() {
|
|
4310
|
+
}]).then((function() {
|
|
4311
4311
|
return this.prop.pdf.output(c, h);
|
|
4312
|
-
});
|
|
4312
|
+
}));
|
|
4313
4313
|
}, o.prototype.outputImg = function(c) {
|
|
4314
4314
|
return this.thenList([function() {
|
|
4315
4315
|
return this.prop.img || this.toImg();
|
|
4316
|
-
}]).then(function() {
|
|
4316
|
+
}]).then((function() {
|
|
4317
4317
|
switch (c) {
|
|
4318
4318
|
case void 0:
|
|
4319
4319
|
case "img":
|
|
@@ -4327,22 +4327,22 @@ function(n) {
|
|
|
4327
4327
|
default:
|
|
4328
4328
|
throw 'Image output type "' + c + '" is not supported.';
|
|
4329
4329
|
}
|
|
4330
|
-
});
|
|
4330
|
+
}));
|
|
4331
4331
|
}, o.prototype.save = function(c) {
|
|
4332
4332
|
return this.thenList([function() {
|
|
4333
4333
|
return this.prop.pdf || this.toPdf();
|
|
4334
|
-
}]).set(c ? { filename: c } : null).then(function() {
|
|
4334
|
+
}]).set(c ? { filename: c } : null).then((function() {
|
|
4335
4335
|
this.prop.pdf.save(this.opt.filename);
|
|
4336
|
-
});
|
|
4336
|
+
}));
|
|
4337
4337
|
}, o.prototype.doCallback = function() {
|
|
4338
4338
|
return this.thenList([function() {
|
|
4339
4339
|
return this.prop.pdf || this.toPdf();
|
|
4340
|
-
}]).then(function() {
|
|
4340
|
+
}]).then((function() {
|
|
4341
4341
|
this.prop.callback(this.prop.pdf);
|
|
4342
|
-
});
|
|
4342
|
+
}));
|
|
4343
4343
|
}, o.prototype.set = function(c) {
|
|
4344
4344
|
if (a(c) !== "object") return this;
|
|
4345
|
-
var h = Object.keys(c || {}).map(function(f) {
|
|
4345
|
+
var h = Object.keys(c || {}).map((function(f) {
|
|
4346
4346
|
if (f in o.template.prop) return function() {
|
|
4347
4347
|
this.prop[f] = c[f];
|
|
4348
4348
|
};
|
|
@@ -4360,17 +4360,17 @@ function(n) {
|
|
|
4360
4360
|
this.opt[f] = c[f];
|
|
4361
4361
|
};
|
|
4362
4362
|
}
|
|
4363
|
-
}, this);
|
|
4364
|
-
return this.then(function() {
|
|
4363
|
+
}), this);
|
|
4364
|
+
return this.then((function() {
|
|
4365
4365
|
return this.thenList(h);
|
|
4366
|
-
});
|
|
4366
|
+
}));
|
|
4367
4367
|
}, o.prototype.get = function(c, h) {
|
|
4368
|
-
return this.then(function() {
|
|
4368
|
+
return this.then((function() {
|
|
4369
4369
|
var f = c in o.template.prop ? this.prop[c] : this.opt[c];
|
|
4370
4370
|
return h ? h(f) : f;
|
|
4371
|
-
});
|
|
4371
|
+
}));
|
|
4372
4372
|
}, o.prototype.setMargin = function(c) {
|
|
4373
|
-
return this.then(function() {
|
|
4373
|
+
return this.then((function() {
|
|
4374
4374
|
switch (a(c)) {
|
|
4375
4375
|
case "number":
|
|
4376
4376
|
c = [c, c, c, c];
|
|
@@ -4380,27 +4380,27 @@ function(n) {
|
|
|
4380
4380
|
return this.error("Invalid margin array.");
|
|
4381
4381
|
}
|
|
4382
4382
|
this.opt.margin = c;
|
|
4383
|
-
}).then(this.setPageSize);
|
|
4383
|
+
})).then(this.setPageSize);
|
|
4384
4384
|
}, o.prototype.setPageSize = function(c) {
|
|
4385
4385
|
function h(f, g) {
|
|
4386
4386
|
return Math.floor(f * g / 72 * 96);
|
|
4387
4387
|
}
|
|
4388
|
-
return this.then(function() {
|
|
4388
|
+
return this.then((function() {
|
|
4389
4389
|
(c = c || Rt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner") || (c.inner = { width: c.width - this.opt.margin[1] - this.opt.margin[3], height: c.height - this.opt.margin[0] - this.opt.margin[2] }, c.inner.px = { width: h(c.inner.width, c.k), height: h(c.inner.height, c.k) }, c.inner.ratio = c.inner.height / c.inner.width), this.prop.pageSize = c;
|
|
4390
|
-
});
|
|
4390
|
+
}));
|
|
4391
4391
|
}, o.prototype.setProgress = function(c, h, f, g) {
|
|
4392
4392
|
return c != null && (this.progress.val = c), h != null && (this.progress.state = h), f != null && (this.progress.n = f), g != null && (this.progress.stack = g), this.progress.ratio = this.progress.val / this.progress.state, this;
|
|
4393
4393
|
}, o.prototype.updateProgress = function(c, h, f, g) {
|
|
4394
4394
|
return this.setProgress(c ? this.progress.val + c : null, h || null, f ? this.progress.n + f : null, g ? this.progress.stack.concat(g) : null);
|
|
4395
4395
|
}, o.prototype.then = function(c, h) {
|
|
4396
4396
|
var f = this;
|
|
4397
|
-
return this.thenCore(c, h, function(g, y) {
|
|
4398
|
-
return f.updateProgress(null, null, 1, [g]), Promise.prototype.then.call(this, function(w) {
|
|
4397
|
+
return this.thenCore(c, h, (function(g, y) {
|
|
4398
|
+
return f.updateProgress(null, null, 1, [g]), Promise.prototype.then.call(this, (function(w) {
|
|
4399
4399
|
return f.updateProgress(null, g), w;
|
|
4400
|
-
}).then(g, y).then(function(w) {
|
|
4400
|
+
})).then(g, y).then((function(w) {
|
|
4401
4401
|
return f.updateProgress(1), w;
|
|
4402
|
-
});
|
|
4403
|
-
});
|
|
4402
|
+
}));
|
|
4403
|
+
}));
|
|
4404
4404
|
}, o.prototype.thenCore = function(c, h, f) {
|
|
4405
4405
|
f = f || Promise.prototype.then, c && (c = c.bind(this)), h && (h = h.bind(this));
|
|
4406
4406
|
var g = Promise.toString().indexOf("[native code]") !== -1 && Promise.name === "Promise" ? this : o.convert(Object.assign({}, this), Promise.prototype), y = f.call(g, c, h);
|
|
@@ -4409,9 +4409,9 @@ function(n) {
|
|
|
4409
4409
|
return Promise.prototype.then.call(this, c, h);
|
|
4410
4410
|
}, o.prototype.thenList = function(c) {
|
|
4411
4411
|
var h = this;
|
|
4412
|
-
return c.forEach(function(f) {
|
|
4412
|
+
return c.forEach((function(f) {
|
|
4413
4413
|
h = h.thenCore(f);
|
|
4414
|
-
}), h;
|
|
4414
|
+
})), h;
|
|
4415
4415
|
}, o.prototype.catch = function(c) {
|
|
4416
4416
|
c && (c = c.bind(this));
|
|
4417
4417
|
var h = Promise.prototype.catch.call(this, c);
|
|
@@ -4419,9 +4419,9 @@ function(n) {
|
|
|
4419
4419
|
}, o.prototype.catchExternal = function(c) {
|
|
4420
4420
|
return Promise.prototype.catch.call(this, c);
|
|
4421
4421
|
}, o.prototype.error = function(c) {
|
|
4422
|
-
return this.then(function() {
|
|
4422
|
+
return this.then((function() {
|
|
4423
4423
|
throw new Error(c);
|
|
4424
|
-
});
|
|
4424
|
+
}));
|
|
4425
4425
|
}, o.prototype.using = o.prototype.set, o.prototype.saveAs = o.prototype.save, o.prototype.export = o.prototype.output, o.prototype.run = o.prototype.then, Rt.getPageSize = function(c, h, f) {
|
|
4426
4426
|
if (fe(c) === "object") {
|
|
4427
4427
|
var g = c;
|
|
@@ -4474,12 +4474,12 @@ function(n) {
|
|
|
4474
4474
|
var f = new o(h);
|
|
4475
4475
|
return h.worker ? f : f.from(c).doCallback();
|
|
4476
4476
|
};
|
|
4477
|
-
}(Rt.API), Rt.API.addJS = function(n) {
|
|
4478
|
-
return gu = n, this.internal.events.subscribe("postPutResources", function() {
|
|
4477
|
+
})(Rt.API), Rt.API.addJS = function(n) {
|
|
4478
|
+
return gu = n, this.internal.events.subscribe("postPutResources", (function() {
|
|
4479
4479
|
ho = this.internal.newObject(), this.internal.out("<<"), this.internal.out("/Names [(EmbeddedJS) " + (ho + 1) + " 0 R]"), this.internal.out(">>"), this.internal.out("endobj"), pu = this.internal.newObject(), this.internal.out("<<"), this.internal.out("/S /JavaScript"), this.internal.out("/JS (" + gu + ")"), this.internal.out(">>"), this.internal.out("endobj");
|
|
4480
|
-
}), this.internal.events.subscribe("putCatalog", function() {
|
|
4480
|
+
})), this.internal.events.subscribe("putCatalog", (function() {
|
|
4481
4481
|
ho !== void 0 && pu !== void 0 && this.internal.out("/Names <</JavaScript " + ho + " 0 R>>");
|
|
4482
|
-
}), this;
|
|
4482
|
+
})), this;
|
|
4483
4483
|
}, /**
|
|
4484
4484
|
* @license
|
|
4485
4485
|
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
|
@@ -4487,7 +4487,7 @@ function(n) {
|
|
|
4487
4487
|
* Licensed under the MIT License.
|
|
4488
4488
|
* http://opensource.org/licenses/mit-license
|
|
4489
4489
|
*/
|
|
4490
|
-
function(n) {
|
|
4490
|
+
(function(n) {
|
|
4491
4491
|
var e;
|
|
4492
4492
|
n.events.push(["postPutResources", function() {
|
|
4493
4493
|
var r = this, a = /^(\d+) 0 obj$/;
|
|
@@ -4558,18 +4558,18 @@ endobj\r
|
|
|
4558
4558
|
return a.count;
|
|
4559
4559
|
};
|
|
4560
4560
|
}]);
|
|
4561
|
-
}(Rt.API), /**
|
|
4561
|
+
})(Rt.API), /**
|
|
4562
4562
|
* @license
|
|
4563
4563
|
*
|
|
4564
4564
|
* Licensed under the MIT License.
|
|
4565
4565
|
* http://opensource.org/licenses/mit-license
|
|
4566
4566
|
*/
|
|
4567
|
-
function(n) {
|
|
4567
|
+
(function(n) {
|
|
4568
4568
|
var e = [192, 193, 194, 195, 196, 197, 198, 199];
|
|
4569
4569
|
n.processJPEG = function(r, a, u, o, c, h) {
|
|
4570
4570
|
var f, g = this.decode.DCT_DECODE, y = null;
|
|
4571
4571
|
if (typeof r == "string" || this.__addimage__.isArrayBuffer(r) || this.__addimage__.isArrayBufferView(r)) {
|
|
4572
|
-
switch (r = c || r, r = this.__addimage__.isArrayBuffer(r) ? new Uint8Array(r) : r, (f = function(w) {
|
|
4572
|
+
switch (r = c || r, r = this.__addimage__.isArrayBuffer(r) ? new Uint8Array(r) : r, (f = (function(w) {
|
|
4573
4573
|
for (var S, p = 256 * w.charCodeAt(4) + w.charCodeAt(5), O = w.length, F = { width: 0, height: 0, numcomponents: 1 }, q = 4; q < O; q += 2) {
|
|
4574
4574
|
if (q += p, e.indexOf(w.charCodeAt(q + 1)) !== -1) {
|
|
4575
4575
|
S = 256 * w.charCodeAt(q + 5) + w.charCodeAt(q + 6), F = { width: 256 * w.charCodeAt(q + 7) + w.charCodeAt(q + 8), height: S, numcomponents: w.charCodeAt(q + 9) };
|
|
@@ -4578,7 +4578,7 @@ function(n) {
|
|
|
4578
4578
|
p = 256 * w.charCodeAt(q + 2) + w.charCodeAt(q + 3);
|
|
4579
4579
|
}
|
|
4580
4580
|
return F;
|
|
4581
|
-
}(r = this.__addimage__.isArrayBufferView(r) ? this.__addimage__.arrayBufferToBinaryString(r) : r)).numcomponents) {
|
|
4581
|
+
})(r = this.__addimage__.isArrayBufferView(r) ? this.__addimage__.arrayBufferToBinaryString(r) : r)).numcomponents) {
|
|
4582
4582
|
case 1:
|
|
4583
4583
|
h = this.color_spaces.DEVICE_GRAY;
|
|
4584
4584
|
break;
|
|
@@ -4592,8 +4592,8 @@ function(n) {
|
|
|
4592
4592
|
}
|
|
4593
4593
|
return y;
|
|
4594
4594
|
};
|
|
4595
|
-
}(Rt.API);
|
|
4596
|
-
var Ci, fo, mu, vu, bu, sc = function() {
|
|
4595
|
+
})(Rt.API);
|
|
4596
|
+
var Ci, fo, mu, vu, bu, sc = (function() {
|
|
4597
4597
|
var n, e, r;
|
|
4598
4598
|
function a(o) {
|
|
4599
4599
|
var c, h, f, g, y, w, S, p, O, F, q, _, B, Y;
|
|
@@ -4753,7 +4753,7 @@ var Ci, fo, mu, vu, bu, sc = function() {
|
|
|
4753
4753
|
var c, h;
|
|
4754
4754
|
return o._png && o._png.stopAnimation(), o._png = this, o.width = this.width, o.height = this.height, c = o.getContext("2d"), this.animation ? (this.decodeFrames(c), this.animate(c)) : (h = c.createImageData(this.width, this.height), this.copyToImageData(h, this.decodePixels()), c.putImageData(h, 0, 0));
|
|
4755
4755
|
}, a;
|
|
4756
|
-
}();
|
|
4756
|
+
})();
|
|
4757
4757
|
/**
|
|
4758
4758
|
* @license
|
|
4759
4759
|
*
|
|
@@ -4829,7 +4829,7 @@ function uc(n) {
|
|
|
4829
4829
|
case 249:
|
|
4830
4830
|
if (n[e++] !== 4 || n[e + 4] !== 0) throw new Error("Invalid graphics extension block.");
|
|
4831
4831
|
var F = n[e++];
|
|
4832
|
-
w = n[e++] | n[e++] << 8, S = n[e++],
|
|
4832
|
+
w = n[e++] | n[e++] << 8, S = n[e++], (1 & F) == 0 && (S = null), p = F >> 2 & 7, e++;
|
|
4833
4833
|
break;
|
|
4834
4834
|
case 254:
|
|
4835
4835
|
for (; ; ) {
|
|
@@ -4970,7 +4970,7 @@ function ps(n) {
|
|
|
4970
4970
|
$(N >> 8 & 255), $(255 & N);
|
|
4971
4971
|
}
|
|
4972
4972
|
function pt(N, C, M, R, J) {
|
|
4973
|
-
for (var Q, et = J[0], rt = J[240], At = function(Lt, xt) {
|
|
4973
|
+
for (var Q, et = J[0], rt = J[240], At = (function(Lt, xt) {
|
|
4974
4974
|
var Ct, kt, qt, Gt, Qt, te, ie, de, Wt, ee, jt = 0;
|
|
4975
4975
|
for (Wt = 0; Wt < 8; ++Wt) {
|
|
4976
4976
|
Ct = Lt[jt], kt = Lt[jt + 1], qt = Lt[jt + 2], Gt = Lt[jt + 3], Qt = Lt[jt + 4], te = Lt[jt + 5], ie = Lt[jt + 6];
|
|
@@ -4992,7 +4992,7 @@ function ps(n) {
|
|
|
4992
4992
|
}
|
|
4993
4993
|
for (Wt = 0; Wt < 64; ++Wt) ee = Lt[Wt] * xt[Wt], p[Wt] = ee > 0 ? ee + 0.5 | 0 : ee - 0.5 | 0;
|
|
4994
4994
|
return p;
|
|
4995
|
-
}(N, C), Nt = 0; Nt < 64; ++Nt) O[tt[Nt]] = At[Nt];
|
|
4995
|
+
})(N, C), Nt = 0; Nt < 64; ++Nt) O[tt[Nt]] = At[Nt];
|
|
4996
4996
|
var Ft = O[0] - M;
|
|
4997
4997
|
M = O[0], Ft == 0 ? ct(R[0]) : (ct(R[S[Q = 32767 + Ft]]), ct(w[Q]));
|
|
4998
4998
|
for (var _t = 63; _t > 0 && O[_t] == 0; ) _t--;
|
|
@@ -5010,7 +5010,7 @@ function ps(n) {
|
|
|
5010
5010
|
return _t != 63 && ct(et), M;
|
|
5011
5011
|
}
|
|
5012
5012
|
function It(N) {
|
|
5013
|
-
N = Math.min(Math.max(N, 1), 100), o != N && (function(C) {
|
|
5013
|
+
N = Math.min(Math.max(N, 1), 100), o != N && ((function(C) {
|
|
5014
5014
|
for (var M = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99], R = 0; R < 64; R++) {
|
|
5015
5015
|
var J = c((M[R] * C + 50) / 100);
|
|
5016
5016
|
J = Math.min(Math.max(J, 1), 255), h[tt[R]] = J;
|
|
@@ -5020,17 +5020,17 @@ function ps(n) {
|
|
|
5020
5020
|
rt = Math.min(Math.max(rt, 1), 255), f[tt[et]] = rt;
|
|
5021
5021
|
}
|
|
5022
5022
|
for (var At = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379], Nt = 0, Ft = 0; Ft < 8; Ft++) for (var _t = 0; _t < 8; _t++) g[Nt] = 1 / (h[tt[Nt]] * At[Ft] * At[_t] * 8), y[Nt] = 1 / (f[tt[Nt]] * At[Ft] * At[_t] * 8), Nt++;
|
|
5023
|
-
}(N < 50 ? Math.floor(5e3 / N) : Math.floor(200 - 2 * N)), o = N);
|
|
5023
|
+
})(N < 50 ? Math.floor(5e3 / N) : Math.floor(200 - 2 * N)), o = N);
|
|
5024
5024
|
}
|
|
5025
5025
|
this.encode = function(N, C) {
|
|
5026
|
-
C && It(C), F = new Array(), q = 0, _ = 7, ht(65496), ht(65504), ht(16), $(74), $(70), $(73), $(70), $(0), $(1), $(1), $(0), ht(1), ht(1), $(0), $(0), function() {
|
|
5026
|
+
C && It(C), F = new Array(), q = 0, _ = 7, ht(65496), ht(65504), ht(16), $(74), $(70), $(73), $(70), $(0), $(1), $(1), $(0), ht(1), ht(1), $(0), $(0), (function() {
|
|
5027
5027
|
ht(65499), ht(132), $(0);
|
|
5028
5028
|
for (var kt = 0; kt < 64; kt++) $(h[kt]);
|
|
5029
5029
|
$(1);
|
|
5030
5030
|
for (var qt = 0; qt < 64; qt++) $(f[qt]);
|
|
5031
|
-
}(), function(kt, qt) {
|
|
5031
|
+
})(), (function(kt, qt) {
|
|
5032
5032
|
ht(65472), ht(17), $(8), ht(qt), ht(kt), $(3), $(1), $(17), $(0), $(2), $(17), $(1), $(3), $(17), $(1);
|
|
5033
|
-
}(N.width, N.height), function() {
|
|
5033
|
+
})(N.width, N.height), (function() {
|
|
5034
5034
|
ht(65476), ht(418), $(0);
|
|
5035
5035
|
for (var kt = 0; kt < 16; kt++) $(z[kt + 1]);
|
|
5036
5036
|
for (var qt = 0; qt <= 11; qt++) $(nt[qt]);
|
|
@@ -5043,7 +5043,7 @@ function ps(n) {
|
|
|
5043
5043
|
$(17);
|
|
5044
5044
|
for (var de = 0; de < 16; de++) $(D[de + 1]);
|
|
5045
5045
|
for (var Wt = 0; Wt <= 161; Wt++) $(st[Wt]);
|
|
5046
|
-
}(), ht(65498), ht(12), $(3), $(1), $(0), $(2), $(17), $(3), $(17), $(0), $(63), $(0);
|
|
5046
|
+
})(), ht(65498), ht(12), $(3), $(1), $(0), $(2), $(17), $(3), $(17), $(0), $(63), $(0);
|
|
5047
5047
|
var M = 0, R = 0, J = 0;
|
|
5048
5048
|
q = 0, _ = 7, this.encode.displayName = "_encode_";
|
|
5049
5049
|
for (var Q, et, rt, At, Nt, Ft, _t, Ut, ft, E = N.data, Kt = N.width, Et = N.height, Lt = 4 * Kt, xt = 0; xt < Et; ) {
|
|
@@ -5058,17 +5058,17 @@ function ps(n) {
|
|
|
5058
5058
|
Ct[1] = _ + 1, Ct[0] = (1 << _ + 1) - 1, ct(Ct);
|
|
5059
5059
|
}
|
|
5060
5060
|
return ht(65497), new Uint8Array(F);
|
|
5061
|
-
}, n = n || 50, function() {
|
|
5061
|
+
}, n = n || 50, (function() {
|
|
5062
5062
|
for (var N = String.fromCharCode, C = 0; C < 256; C++) lt[C] = N(C);
|
|
5063
|
-
}(), e = it(z, nt), r = it(k, W), a = it(dt, P), u = it(D, st), function() {
|
|
5063
|
+
})(), e = it(z, nt), r = it(k, W), a = it(dt, P), u = it(D, st), (function() {
|
|
5064
5064
|
for (var N = 1, C = 2, M = 1; M <= 15; M++) {
|
|
5065
5065
|
for (var R = N; R < C; R++) S[32767 + R] = M, w[32767 + R] = [], w[32767 + R][1] = M, w[32767 + R][0] = R;
|
|
5066
5066
|
for (var J = -(C - 1); J <= -N; J++) S[32767 + J] = M, w[32767 + J] = [], w[32767 + J][1] = M, w[32767 + J][0] = C - 1 + J;
|
|
5067
5067
|
N <<= 1, C <<= 1;
|
|
5068
5068
|
}
|
|
5069
|
-
}(), function() {
|
|
5069
|
+
})(), (function() {
|
|
5070
5070
|
for (var N = 0; N < 256; N++) wt[N] = 19595 * N, wt[N + 256 >> 0] = 38470 * N, wt[N + 512 >> 0] = 7471 * N + 32768, wt[N + 768 >> 0] = -11059 * N, wt[N + 1024 >> 0] = -21709 * N, wt[N + 1280 >> 0] = 32768 * N + 8421375, wt[N + 1536 >> 0] = -27439 * N, wt[N + 1792 >> 0] = -5329 * N;
|
|
5071
|
-
}(), It(n);
|
|
5071
|
+
})(), It(n);
|
|
5072
5072
|
}
|
|
5073
5073
|
/**
|
|
5074
5074
|
* @license
|
|
@@ -5104,9 +5104,9 @@ function wu(n) {
|
|
|
5104
5104
|
}
|
|
5105
5105
|
function h(z, nt) {
|
|
5106
5106
|
var dt = [];
|
|
5107
|
-
return function P(k, W, D) {
|
|
5107
|
+
return (function P(k, W, D) {
|
|
5108
5108
|
for (var st = D[W], it = 0; it < st && (k.push(D.length > W + 1 ? [] : new nt()), !(D.length < W + 1)); it++) P(k[it], W + 1, D);
|
|
5109
|
-
}(dt, 0, z), dt;
|
|
5109
|
+
})(dt, 0, z), dt;
|
|
5110
5110
|
}
|
|
5111
5111
|
var f = function() {
|
|
5112
5112
|
var z = this;
|
|
@@ -5123,7 +5123,7 @@ function wu(n) {
|
|
|
5123
5123
|
function P(t, i, l, d, m) {
|
|
5124
5124
|
if (e(2328 >= m), 512 >= m) var b = o(512);
|
|
5125
5125
|
else if ((b = o(m)) == null) return 0;
|
|
5126
|
-
return function(L, A, x, I, U, K) {
|
|
5126
|
+
return (function(L, A, x, I, U, K) {
|
|
5127
5127
|
var Z, G, vt = A, at = 1 << x, H = o(16), V = o(16);
|
|
5128
5128
|
for (e(U != 0), e(I != null), e(L != null), e(0 < x), G = 0; G < U; ++G) {
|
|
5129
5129
|
if (15 < I[G]) return 0;
|
|
@@ -5152,7 +5152,7 @@ function wu(n) {
|
|
|
5152
5152
|
}
|
|
5153
5153
|
}
|
|
5154
5154
|
return St != 2 * V[15] - 1 ? 0 : at;
|
|
5155
|
-
}(t, i, l, d, m, b);
|
|
5155
|
+
})(t, i, l, d, m, b);
|
|
5156
5156
|
}
|
|
5157
5157
|
function k() {
|
|
5158
5158
|
this.value = this.g = 0;
|
|
@@ -5788,12 +5788,12 @@ function wu(n) {
|
|
|
5788
5788
|
this.Fb = this.Bb = this.Cb = 0, this.Zb = o(4), this.Lb = o(4);
|
|
5789
5789
|
}
|
|
5790
5790
|
function ya() {
|
|
5791
|
-
this.Yb = function() {
|
|
5791
|
+
this.Yb = (function() {
|
|
5792
5792
|
var t = [];
|
|
5793
|
-
return function i(l, d, m) {
|
|
5793
|
+
return (function i(l, d, m) {
|
|
5794
5794
|
for (var b = m[d], L = 0; L < b && (l.push(m.length > d + 1 ? [] : 0), !(m.length < d + 1)); L++) i(l[L], d + 1, m);
|
|
5795
|
-
}(t, 0, [3, 11]), t;
|
|
5796
|
-
}();
|
|
5795
|
+
})(t, 0, [3, 11]), t;
|
|
5796
|
+
})();
|
|
5797
5797
|
}
|
|
5798
5798
|
function bo() {
|
|
5799
5799
|
this.jb = o(3), this.Wc = h([4, 8], ya), this.Xc = h([4, 17], ya);
|
|
@@ -5978,7 +5978,7 @@ function wu(n) {
|
|
|
5978
5978
|
Ni = Po, un = So, ta = _a, rr = _o, yr = Pa, Fe = Sa, Ai = zi, Ua = Rn, ea = Ro, Hn = Ui, Wn = To, yn = di, Vn = Hi, xi = Ea, Gn = Ma, wn = Yr, ra = an, wr = Do, Br[0] = Jr, Br[1] = ko, Br[2] = jo, Br[3] = Oo, Br[4] = Ia, Br[5] = hi, Br[6] = Ca, Br[7] = Di, Br[8] = Mo, Br[9] = Bo, Ln[0] = ka, Ln[1] = Io, Ln[2] = nn, Ln[3] = li, Ln[4] = Ye, Ln[5] = Co, Ln[6] = Fa, cn[0] = pn, cn[1] = Fo, cn[2] = Eo, cn[3] = Ti, cn[4] = Tn, cn[5] = qo, cn[6] = Ri, l = 1;
|
|
5979
5979
|
} else l = 0;
|
|
5980
5980
|
}
|
|
5981
|
-
l && (l = function(G, vt) {
|
|
5981
|
+
l && (l = (function(G, vt) {
|
|
5982
5982
|
for (G.M = 0; G.M < G.Va; ++G.M) {
|
|
5983
5983
|
var at, H = G.Jc[G.M & G.Xb], V = G.m, gt = G;
|
|
5984
5984
|
for (at = 0; at < gt.za; ++at) {
|
|
@@ -6054,7 +6054,7 @@ function wu(n) {
|
|
|
6054
6054
|
if (!gt) return ke(G, 6, "Output aborted.");
|
|
6055
6055
|
}
|
|
6056
6056
|
return 1;
|
|
6057
|
-
}(t, i)), i.bc != null && i.bc(i), l &= 1;
|
|
6057
|
+
})(t, i)), i.bc != null && i.bc(i), l &= 1;
|
|
6058
6058
|
}
|
|
6059
6059
|
return l ? (t.cb = 0, l) : 0;
|
|
6060
6060
|
}
|
|
@@ -6763,15 +6763,15 @@ function wu(n) {
|
|
|
6763
6763
|
var Uo = z.PredictorAdd0;
|
|
6764
6764
|
z.PredictorAdd1 = te, xt("Predictor2", "PredictorAdd2"), xt("Predictor3", "PredictorAdd3"), xt("Predictor4", "PredictorAdd4"), xt("Predictor5", "PredictorAdd5"), xt("Predictor6", "PredictorAdd6"), xt("Predictor7", "PredictorAdd7"), xt("Predictor8", "PredictorAdd8"), xt("Predictor9", "PredictorAdd9"), xt("Predictor10", "PredictorAdd10"), xt("Predictor11", "PredictorAdd11"), xt("Predictor12", "PredictorAdd12"), xt("Predictor13", "PredictorAdd13");
|
|
6765
6765
|
var Qi = z.PredictorAdd2;
|
|
6766
|
-
ee("ColorIndexInverseTransform", "MapARGB", "32b", function(t) {
|
|
6766
|
+
ee("ColorIndexInverseTransform", "MapARGB", "32b", (function(t) {
|
|
6767
6767
|
return t >> 8 & 255;
|
|
6768
|
-
}, function(t) {
|
|
6768
|
+
}), (function(t) {
|
|
6769
6769
|
return t;
|
|
6770
|
-
}), ee("VP8LColorIndexInverseTransformAlpha", "MapAlpha", "8b", function(t) {
|
|
6770
|
+
})), ee("VP8LColorIndexInverseTransformAlpha", "MapAlpha", "8b", (function(t) {
|
|
6771
6771
|
return t;
|
|
6772
|
-
}, function(t) {
|
|
6772
|
+
}), (function(t) {
|
|
6773
6773
|
return t >> 8 & 255;
|
|
6774
|
-
});
|
|
6774
|
+
}));
|
|
6775
6775
|
var Ta, br = z.ColorIndexInverseTransform, Li = z.MapARGB, Ra = z.VP8LColorIndexInverseTransformAlpha, za = z.MapAlpha, vn = z.VP8LPredictorsAdd = [];
|
|
6776
6776
|
vn.length = 16, (z.VP8LPredictors = []).length = 16, (z.VP8LPredictorsAdd_C = []).length = 16, (z.VP8LPredictors_C = []).length = 16;
|
|
6777
6777
|
var Un, sr, er, bn, on, sn, Ni, un, Fe, ta, rr, yr, Ai, Ua, ea, Hn, Wn, yn, Vn, xi, Gn, wn, ra, wr, Lr, be, ye, Ie, Te = o(511), ln = o(2041), na = o(225), Si = o(767), Ha = 0, Ho = ln, Wa = na, dr = Si, Nr = Te, Va = 0, Ga = 1, Fs = 2, Ja = 3, Ya = 4, Wo = 5, Is = 6, Vo = 7, Go = 8, Xa = 9, Jo = 10, Hu = [2, 3, 7], Wu = [3, 3, 11], Cs = [280, 256, 256, 256, 40], Vu = [0, 1, 1, 1, 0], Gu = [17, 18, 0, 1, 2, 3, 4, 5, 16, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], Ju = [24, 7, 23, 25, 40, 6, 39, 41, 22, 26, 38, 42, 56, 5, 55, 57, 21, 27, 54, 58, 37, 43, 72, 4, 71, 73, 20, 28, 53, 59, 70, 74, 36, 44, 88, 69, 75, 52, 60, 3, 87, 89, 19, 29, 86, 90, 35, 45, 68, 76, 85, 91, 51, 61, 104, 2, 103, 105, 18, 30, 102, 106, 34, 46, 84, 92, 67, 77, 101, 107, 50, 62, 120, 1, 119, 121, 83, 93, 17, 31, 100, 108, 66, 78, 118, 122, 33, 47, 117, 123, 49, 63, 99, 109, 82, 94, 0, 116, 124, 65, 79, 16, 32, 98, 110, 48, 115, 125, 81, 95, 64, 114, 126, 97, 111, 80, 113, 127, 96, 112], Yu = [2954, 2956, 2958, 2962, 2970, 2986, 3018, 3082, 3212, 3468, 3980, 5004], Xu = 8, Yo = [4, 5, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16, 17, 17, 18, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 25, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 91, 93, 95, 96, 98, 100, 101, 102, 104, 106, 108, 110, 112, 114, 116, 118, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 143, 145, 148, 151, 154, 157], Xo = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 167, 170, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 234, 239, 245, 249, 254, 259, 264, 269, 274, 279, 284], ia = null, Ku = [[173, 148, 140, 0], [176, 155, 140, 135, 0], [180, 157, 141, 134, 130, 0], [254, 254, 243, 230, 196, 177, 153, 140, 133, 130, 129, 0]], Zu = [0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15], js = [-0, 1, -1, 2, -2, 3, 4, 6, -3, 5, -4, -5, -6, 7, -7, 8, -8, -9], $u = [[[[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]], [[253, 136, 254, 255, 228, 219, 128, 128, 128, 128, 128], [189, 129, 242, 255, 227, 213, 255, 219, 128, 128, 128], [106, 126, 227, 252, 214, 209, 255, 255, 128, 128, 128]], [[1, 98, 248, 255, 236, 226, 255, 255, 128, 128, 128], [181, 133, 238, 254, 221, 234, 255, 154, 128, 128, 128], [78, 134, 202, 247, 198, 180, 255, 219, 128, 128, 128]], [[1, 185, 249, 255, 243, 255, 128, 128, 128, 128, 128], [184, 150, 247, 255, 236, 224, 128, 128, 128, 128, 128], [77, 110, 216, 255, 236, 230, 128, 128, 128, 128, 128]], [[1, 101, 251, 255, 241, 255, 128, 128, 128, 128, 128], [170, 139, 241, 252, 236, 209, 255, 255, 128, 128, 128], [37, 116, 196, 243, 228, 255, 255, 255, 128, 128, 128]], [[1, 204, 254, 255, 245, 255, 128, 128, 128, 128, 128], [207, 160, 250, 255, 238, 128, 128, 128, 128, 128, 128], [102, 103, 231, 255, 211, 171, 128, 128, 128, 128, 128]], [[1, 152, 252, 255, 240, 255, 128, 128, 128, 128, 128], [177, 135, 243, 255, 234, 225, 128, 128, 128, 128, 128], [80, 129, 211, 255, 194, 224, 128, 128, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [246, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [255, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[198, 35, 237, 223, 193, 187, 162, 160, 145, 155, 62], [131, 45, 198, 221, 172, 176, 220, 157, 252, 221, 1], [68, 47, 146, 208, 149, 167, 221, 162, 255, 223, 128]], [[1, 149, 241, 255, 221, 224, 255, 255, 128, 128, 128], [184, 141, 234, 253, 222, 220, 255, 199, 128, 128, 128], [81, 99, 181, 242, 176, 190, 249, 202, 255, 255, 128]], [[1, 129, 232, 253, 214, 197, 242, 196, 255, 255, 128], [99, 121, 210, 250, 201, 198, 255, 202, 128, 128, 128], [23, 91, 163, 242, 170, 187, 247, 210, 255, 255, 128]], [[1, 200, 246, 255, 234, 255, 128, 128, 128, 128, 128], [109, 178, 241, 255, 231, 245, 255, 255, 128, 128, 128], [44, 130, 201, 253, 205, 192, 255, 255, 128, 128, 128]], [[1, 132, 239, 251, 219, 209, 255, 165, 128, 128, 128], [94, 136, 225, 251, 218, 190, 255, 255, 128, 128, 128], [22, 100, 174, 245, 186, 161, 255, 199, 128, 128, 128]], [[1, 182, 249, 255, 232, 235, 128, 128, 128, 128, 128], [124, 143, 241, 255, 227, 234, 128, 128, 128, 128, 128], [35, 77, 181, 251, 193, 211, 255, 205, 128, 128, 128]], [[1, 157, 247, 255, 236, 231, 255, 255, 128, 128, 128], [121, 141, 235, 255, 225, 227, 255, 255, 128, 128, 128], [45, 99, 188, 251, 195, 217, 255, 224, 128, 128, 128]], [[1, 1, 251, 255, 213, 255, 128, 128, 128, 128, 128], [203, 1, 248, 255, 255, 128, 128, 128, 128, 128, 128], [137, 1, 177, 255, 224, 255, 128, 128, 128, 128, 128]]], [[[253, 9, 248, 251, 207, 208, 255, 192, 128, 128, 128], [175, 13, 224, 243, 193, 185, 249, 198, 255, 255, 128], [73, 17, 171, 221, 161, 179, 236, 167, 255, 234, 128]], [[1, 95, 247, 253, 212, 183, 255, 255, 128, 128, 128], [239, 90, 244, 250, 211, 209, 255, 255, 128, 128, 128], [155, 77, 195, 248, 188, 195, 255, 255, 128, 128, 128]], [[1, 24, 239, 251, 218, 219, 255, 205, 128, 128, 128], [201, 51, 219, 255, 196, 186, 128, 128, 128, 128, 128], [69, 46, 190, 239, 201, 218, 255, 228, 128, 128, 128]], [[1, 191, 251, 255, 255, 128, 128, 128, 128, 128, 128], [223, 165, 249, 255, 213, 255, 128, 128, 128, 128, 128], [141, 124, 248, 255, 255, 128, 128, 128, 128, 128, 128]], [[1, 16, 248, 255, 255, 128, 128, 128, 128, 128, 128], [190, 36, 230, 255, 236, 255, 128, 128, 128, 128, 128], [149, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 226, 255, 128, 128, 128, 128, 128, 128, 128, 128], [247, 192, 255, 128, 128, 128, 128, 128, 128, 128, 128], [240, 128, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 134, 252, 255, 255, 128, 128, 128, 128, 128, 128], [213, 62, 250, 255, 255, 128, 128, 128, 128, 128, 128], [55, 93, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[202, 24, 213, 235, 186, 191, 220, 160, 240, 175, 255], [126, 38, 182, 232, 169, 184, 228, 174, 255, 187, 128], [61, 46, 138, 219, 151, 178, 240, 170, 255, 216, 128]], [[1, 112, 230, 250, 199, 191, 247, 159, 255, 255, 128], [166, 109, 228, 252, 211, 215, 255, 174, 128, 128, 128], [39, 77, 162, 232, 172, 180, 245, 178, 255, 255, 128]], [[1, 52, 220, 246, 198, 199, 249, 220, 255, 255, 128], [124, 74, 191, 243, 183, 193, 250, 221, 255, 255, 128], [24, 71, 130, 219, 154, 170, 243, 182, 255, 255, 128]], [[1, 182, 225, 249, 219, 240, 255, 224, 128, 128, 128], [149, 150, 226, 252, 216, 205, 255, 171, 128, 128, 128], [28, 108, 170, 242, 183, 194, 254, 223, 255, 255, 128]], [[1, 81, 230, 252, 204, 203, 255, 192, 128, 128, 128], [123, 102, 209, 247, 188, 196, 255, 233, 128, 128, 128], [20, 95, 153, 243, 164, 173, 255, 203, 128, 128, 128]], [[1, 222, 248, 255, 216, 213, 128, 128, 128, 128, 128], [168, 175, 246, 252, 235, 205, 255, 255, 128, 128, 128], [47, 116, 215, 255, 211, 212, 255, 255, 128, 128, 128]], [[1, 121, 236, 253, 212, 214, 255, 255, 128, 128, 128], [141, 84, 213, 252, 201, 202, 255, 219, 128, 128, 128], [42, 80, 160, 240, 162, 185, 255, 205, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [244, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [238, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]]]], Qu = [[[231, 120, 48, 89, 115, 113, 120, 152, 112], [152, 179, 64, 126, 170, 118, 46, 70, 95], [175, 69, 143, 80, 85, 82, 72, 155, 103], [56, 58, 10, 171, 218, 189, 17, 13, 152], [114, 26, 17, 163, 44, 195, 21, 10, 173], [121, 24, 80, 195, 26, 62, 44, 64, 85], [144, 71, 10, 38, 171, 213, 144, 34, 26], [170, 46, 55, 19, 136, 160, 33, 206, 71], [63, 20, 8, 114, 114, 208, 12, 9, 226], [81, 40, 11, 96, 182, 84, 29, 16, 36]], [[134, 183, 89, 137, 98, 101, 106, 165, 148], [72, 187, 100, 130, 157, 111, 32, 75, 80], [66, 102, 167, 99, 74, 62, 40, 234, 128], [41, 53, 9, 178, 241, 141, 26, 8, 107], [74, 43, 26, 146, 73, 166, 49, 23, 157], [65, 38, 105, 160, 51, 52, 31, 115, 128], [104, 79, 12, 27, 217, 255, 87, 17, 7], [87, 68, 71, 44, 114, 51, 15, 186, 23], [47, 41, 14, 110, 182, 183, 21, 17, 194], [66, 45, 25, 102, 197, 189, 23, 18, 22]], [[88, 88, 147, 150, 42, 46, 45, 196, 205], [43, 97, 183, 117, 85, 38, 35, 179, 61], [39, 53, 200, 87, 26, 21, 43, 232, 171], [56, 34, 51, 104, 114, 102, 29, 93, 77], [39, 28, 85, 171, 58, 165, 90, 98, 64], [34, 22, 116, 206, 23, 34, 43, 166, 73], [107, 54, 32, 26, 51, 1, 81, 43, 31], [68, 25, 106, 22, 64, 171, 36, 225, 114], [34, 19, 21, 102, 132, 188, 16, 76, 124], [62, 18, 78, 95, 85, 57, 50, 48, 51]], [[193, 101, 35, 159, 215, 111, 89, 46, 111], [60, 148, 31, 172, 219, 228, 21, 18, 111], [112, 113, 77, 85, 179, 255, 38, 120, 114], [40, 42, 1, 196, 245, 209, 10, 25, 109], [88, 43, 29, 140, 166, 213, 37, 43, 154], [61, 63, 30, 155, 67, 45, 68, 1, 209], [100, 80, 8, 43, 154, 1, 51, 26, 71], [142, 78, 78, 16, 255, 128, 34, 197, 171], [41, 40, 5, 102, 211, 183, 4, 1, 221], [51, 50, 17, 168, 209, 192, 23, 25, 82]], [[138, 31, 36, 171, 27, 166, 38, 44, 229], [67, 87, 58, 169, 82, 115, 26, 59, 179], [63, 59, 90, 180, 59, 166, 93, 73, 154], [40, 40, 21, 116, 143, 209, 34, 39, 175], [47, 15, 16, 183, 34, 223, 49, 45, 183], [46, 17, 33, 183, 6, 98, 15, 32, 183], [57, 46, 22, 24, 128, 1, 54, 17, 37], [65, 32, 73, 115, 28, 128, 23, 128, 205], [40, 3, 9, 115, 51, 192, 18, 6, 223], [87, 37, 9, 115, 59, 77, 64, 21, 47]], [[104, 55, 44, 218, 9, 54, 53, 130, 226], [64, 90, 70, 205, 40, 41, 23, 26, 57], [54, 57, 112, 184, 5, 41, 38, 166, 213], [30, 34, 26, 133, 152, 116, 10, 32, 134], [39, 19, 53, 221, 26, 114, 32, 73, 255], [31, 9, 65, 234, 2, 15, 1, 118, 73], [75, 32, 12, 51, 192, 255, 160, 43, 51], [88, 31, 35, 67, 102, 85, 55, 186, 85], [56, 21, 23, 111, 59, 205, 45, 37, 192], [55, 38, 70, 124, 73, 102, 1, 34, 98]], [[125, 98, 42, 88, 104, 85, 117, 175, 82], [95, 84, 53, 89, 128, 100, 113, 101, 45], [75, 79, 123, 47, 51, 128, 81, 171, 1], [57, 17, 5, 71, 102, 57, 53, 41, 49], [38, 33, 13, 121, 57, 73, 26, 1, 85], [41, 10, 67, 138, 77, 110, 90, 47, 114], [115, 21, 2, 10, 102, 255, 166, 23, 6], [101, 29, 16, 10, 85, 128, 101, 196, 26], [57, 18, 10, 102, 102, 213, 34, 20, 43], [117, 20, 15, 36, 163, 128, 68, 1, 26]], [[102, 61, 71, 37, 34, 53, 31, 243, 192], [69, 60, 71, 38, 73, 119, 28, 222, 37], [68, 45, 128, 34, 1, 47, 11, 245, 171], [62, 17, 19, 70, 146, 85, 55, 62, 70], [37, 43, 37, 154, 100, 163, 85, 160, 1], [63, 9, 92, 136, 28, 64, 32, 201, 85], [75, 15, 9, 9, 64, 255, 184, 119, 16], [86, 6, 28, 5, 64, 255, 25, 248, 1], [56, 8, 17, 132, 137, 255, 55, 116, 128], [58, 15, 20, 82, 135, 57, 26, 121, 40]], [[164, 50, 31, 137, 154, 133, 25, 35, 218], [51, 103, 44, 131, 131, 123, 31, 6, 158], [86, 40, 64, 135, 148, 224, 45, 183, 128], [22, 26, 17, 131, 240, 154, 14, 1, 209], [45, 16, 21, 91, 64, 222, 7, 1, 197], [56, 21, 39, 155, 60, 138, 23, 102, 213], [83, 12, 13, 54, 192, 255, 68, 47, 28], [85, 26, 85, 85, 128, 128, 32, 146, 171], [18, 11, 7, 63, 144, 171, 4, 4, 246], [35, 27, 10, 146, 174, 171, 12, 26, 128]], [[190, 80, 35, 99, 180, 80, 126, 54, 45], [85, 126, 47, 87, 176, 51, 41, 20, 32], [101, 75, 128, 139, 118, 146, 116, 128, 85], [56, 41, 15, 176, 236, 85, 37, 9, 62], [71, 30, 17, 119, 118, 255, 17, 18, 138], [101, 38, 60, 138, 55, 70, 43, 26, 142], [146, 36, 19, 30, 171, 255, 97, 27, 20], [138, 45, 61, 62, 219, 1, 81, 188, 64], [32, 41, 20, 117, 151, 142, 20, 21, 163], [112, 19, 12, 61, 195, 128, 48, 4, 24]]], tl = [[[[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[176, 246, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 241, 252, 255, 255, 255, 255, 255, 255, 255, 255], [249, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 244, 252, 255, 255, 255, 255, 255, 255, 255, 255], [234, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 246, 254, 255, 255, 255, 255, 255, 255, 255, 255], [239, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 254, 255, 255, 255, 255, 255, 255], [250, 255, 254, 255, 254, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[217, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [225, 252, 241, 253, 255, 255, 254, 255, 255, 255, 255], [234, 250, 241, 250, 253, 255, 253, 254, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [238, 253, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [249, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 255, 255, 255, 255, 255, 255, 255, 255, 255], [247, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[186, 251, 250, 255, 255, 255, 255, 255, 255, 255, 255], [234, 251, 244, 254, 255, 255, 255, 255, 255, 255, 255], [251, 251, 243, 253, 254, 255, 254, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [236, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 253, 253, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[248, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [250, 254, 252, 254, 255, 255, 255, 255, 255, 255, 255], [248, 254, 249, 253, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [246, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 254, 251, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 252, 255, 255, 255, 255, 255, 255, 255, 255], [248, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [245, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255], [249, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]]], el = [0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0], Ln = [], Br = [], cn = [], rl = 1, Os = 2, Nn = [], Ar = [];
|
|
@@ -6794,7 +6794,7 @@ function wu(n) {
|
|
|
6794
6794
|
L = 1;
|
|
6795
6795
|
break t;
|
|
6796
6796
|
}
|
|
6797
|
-
if (function(Z, G) {
|
|
6797
|
+
if ((function(Z, G) {
|
|
6798
6798
|
var vt = [0], at = [0], H = [0];
|
|
6799
6799
|
e: for (; ; ) {
|
|
6800
6800
|
if (Z == null) return 0;
|
|
@@ -6807,7 +6807,7 @@ function wu(n) {
|
|
|
6807
6807
|
return 1;
|
|
6808
6808
|
}
|
|
6809
6809
|
return e(Z.a != 0), 0;
|
|
6810
|
-
}(t, d)) {
|
|
6810
|
+
})(t, d)) {
|
|
6811
6811
|
if (d = (i = vi(d.width, d.height, L.Oa, L.ba)) == 0) {
|
|
6812
6812
|
e: {
|
|
6813
6813
|
d = t;
|
|
@@ -6877,7 +6877,7 @@ function wu(n) {
|
|
|
6877
6877
|
return (z[nt + 0] << 0 | z[nt + 1] << 8 | z[nt + 2] << 16 | z[nt + 3] << 24) >>> 0;
|
|
6878
6878
|
}
|
|
6879
6879
|
new f();
|
|
6880
|
-
var S = [0], p = [0], O = [], F = new f(), q = n, _ = function(z, nt) {
|
|
6880
|
+
var S = [0], p = [0], O = [], F = new f(), q = n, _ = (function(z, nt) {
|
|
6881
6881
|
var dt = {}, P = 0, k = !1, W = 0, D = 0;
|
|
6882
6882
|
if (dt.frames = [], !/** @license
|
|
6883
6883
|
* Copyright (c) 2017 Dominik Homberger
|
|
@@ -6887,10 +6887,10 @@ function wu(n) {
|
|
|
6887
6887
|
https://webpjs.appspot.com
|
|
6888
6888
|
WebPRiffParser dominikhlbg@gmail.com
|
|
6889
6889
|
*/
|
|
6890
|
-
function(C, M, R, J) {
|
|
6890
|
+
(function(C, M, R, J) {
|
|
6891
6891
|
for (var Q = 0; Q < J; Q++) if (C[M + Q] != R.charCodeAt(Q)) return !0;
|
|
6892
6892
|
return !1;
|
|
6893
|
-
}(z, nt, "RIFF", 4)) {
|
|
6893
|
+
})(z, nt, "RIFF", 4)) {
|
|
6894
6894
|
var st, it;
|
|
6895
6895
|
for (w(z, nt += 4), nt += 8; nt < z.length; ) {
|
|
6896
6896
|
var ct = g(z, nt), $ = w(z, nt += 4);
|
|
@@ -6920,7 +6920,7 @@ function wu(n) {
|
|
|
6920
6920
|
}
|
|
6921
6921
|
return dt;
|
|
6922
6922
|
}
|
|
6923
|
-
}(q, 0);
|
|
6923
|
+
})(q, 0);
|
|
6924
6924
|
_.response = q, _.rgbaoutput = !0, _.dataurl = !1;
|
|
6925
6925
|
var B = _.header ? _.header : null, Y = _.frames ? _.frames : null;
|
|
6926
6926
|
if (B) {
|
|
@@ -6991,11 +6991,11 @@ function wu(n) {
|
|
|
6991
6991
|
}, y = function() {
|
|
6992
6992
|
return [u, o, c, h, f];
|
|
6993
6993
|
}, w = function(S) {
|
|
6994
|
-
var p = S.map(function(O) {
|
|
6995
|
-
return O.reduce(function(F, q) {
|
|
6994
|
+
var p = S.map((function(O) {
|
|
6995
|
+
return O.reduce((function(F, q) {
|
|
6996
6996
|
return F + Math.abs(q);
|
|
6997
|
-
}, 0);
|
|
6998
|
-
});
|
|
6997
|
+
}), 0);
|
|
6998
|
+
}));
|
|
6999
6999
|
return p.indexOf(Math.min.apply(null, p));
|
|
7000
7000
|
};
|
|
7001
7001
|
n.processPNG = function(S, p, O, F) {
|
|
@@ -7026,7 +7026,7 @@ function wu(n) {
|
|
|
7026
7026
|
wt = r(nt, B.width, 1);
|
|
7027
7027
|
}
|
|
7028
7028
|
}
|
|
7029
|
-
var N = function(C) {
|
|
7029
|
+
var N = (function(C) {
|
|
7030
7030
|
var M;
|
|
7031
7031
|
switch (C) {
|
|
7032
7032
|
case n.image_compression.FAST:
|
|
@@ -7042,18 +7042,18 @@ function wu(n) {
|
|
|
7042
7042
|
M = 12;
|
|
7043
7043
|
}
|
|
7044
7044
|
return M;
|
|
7045
|
-
}(F);
|
|
7045
|
+
})(F);
|
|
7046
7046
|
return st === this.decode.FLATE_DECODE && (it = "/Predictor " + N + " "), it += "/Colors " + ot + " /BitsPerComponent " + _ + " /Columns " + B.width, (this.__addimage__.isArrayBuffer(S) || this.__addimage__.isArrayBufferView(S)) && (S = this.__addimage__.arrayBufferToBinaryString(S)), (wt && this.__addimage__.isArrayBuffer(wt) || this.__addimage__.isArrayBufferView(wt)) && (wt = this.__addimage__.arrayBufferToBinaryString(wt)), { alias: O, data: S, index: p, filter: st, decodeParameters: it, transparency: Y, palette: lt, sMask: wt, predictor: N, width: B.width, height: B.height, bitsPerComponent: _, colorSpace: q };
|
|
7047
7047
|
}
|
|
7048
7048
|
};
|
|
7049
|
-
})(Rt.API), function(n) {
|
|
7049
|
+
})(Rt.API), (function(n) {
|
|
7050
7050
|
n.processGIF89A = function(e, r, a, u) {
|
|
7051
7051
|
var o = new uc(e), c = o.width, h = o.height, f = [];
|
|
7052
7052
|
o.decodeAndBlitFrameRGBA(0, f);
|
|
7053
7053
|
var g = { data: f, width: c, height: h }, y = new ps(100).encode(g, 100);
|
|
7054
7054
|
return n.processJPEG.call(this, y, r, a, u);
|
|
7055
7055
|
}, n.processGIF87A = n.processGIF89A;
|
|
7056
|
-
}(Rt.API), qr.prototype.parseHeader = function() {
|
|
7056
|
+
})(Rt.API), qr.prototype.parseHeader = function() {
|
|
7057
7057
|
if (this.fileSize = this.datav.getUint32(this.pos, !0), this.pos += 4, this.reserved = this.datav.getUint32(this.pos, !0), this.pos += 4, this.offset = this.datav.getUint32(this.pos, !0), this.pos += 4, this.headerSize = this.datav.getUint32(this.pos, !0), this.pos += 4, this.width = this.datav.getUint32(this.pos, !0), this.pos += 4, this.height = this.datav.getInt32(this.pos, !0), this.pos += 4, this.planes = this.datav.getUint16(this.pos, !0), this.pos += 2, this.bitPP = this.datav.getUint16(this.pos, !0), this.pos += 2, this.compress = this.datav.getUint32(this.pos, !0), this.pos += 4, this.rawSize = this.datav.getUint32(this.pos, !0), this.pos += 4, this.hr = this.datav.getUint32(this.pos, !0), this.pos += 4, this.vr = this.datav.getUint32(this.pos, !0), this.pos += 4, this.colors = this.datav.getUint32(this.pos, !0), this.pos += 4, this.importantColors = this.datav.getUint32(this.pos, !0), this.pos += 4, this.bitPP === 16 && this.is_with_alpha && (this.bitPP = 15), this.bitPP < 15) {
|
|
7058
7058
|
var n = this.colors === 0 ? 1 << this.bitPP : this.colors;
|
|
7059
7059
|
this.palette = new Array(n);
|
|
@@ -7142,12 +7142,12 @@ function wu(n) {
|
|
|
7142
7142
|
* Licensed under the MIT License.
|
|
7143
7143
|
* http://opensource.org/licenses/mit-license
|
|
7144
7144
|
*/
|
|
7145
|
-
function(n) {
|
|
7145
|
+
(function(n) {
|
|
7146
7146
|
n.processBMP = function(e, r, a, u) {
|
|
7147
7147
|
var o = new qr(e, !1), c = o.width, h = o.height, f = { data: o.getData(), width: c, height: h }, g = new ps(100).encode(f, 100);
|
|
7148
7148
|
return n.processJPEG.call(this, g, r, a, u);
|
|
7149
7149
|
};
|
|
7150
|
-
}(Rt.API), wu.prototype.getData = function() {
|
|
7150
|
+
})(Rt.API), wu.prototype.getData = function() {
|
|
7151
7151
|
return this.data;
|
|
7152
7152
|
}, /**
|
|
7153
7153
|
* @license
|
|
@@ -7156,12 +7156,12 @@ function(n) {
|
|
|
7156
7156
|
* Licensed under the MIT License.
|
|
7157
7157
|
* http://opensource.org/licenses/mit-license
|
|
7158
7158
|
*/
|
|
7159
|
-
function(n) {
|
|
7159
|
+
(function(n) {
|
|
7160
7160
|
n.processWEBP = function(e, r, a, u) {
|
|
7161
7161
|
var o = new wu(e), c = o.width, h = o.height, f = { data: o.getData(), width: c, height: h }, g = new ps(100).encode(f, 100);
|
|
7162
7162
|
return n.processJPEG.call(this, g, r, a, u);
|
|
7163
7163
|
};
|
|
7164
|
-
}(Rt.API), Rt.API.processRGBA = function(n, e, r) {
|
|
7164
|
+
})(Rt.API), Rt.API.processRGBA = function(n, e, r) {
|
|
7165
7165
|
for (var a = n.data, u = a.length, o = new Uint8Array(u / 4 * 3), c = new Uint8Array(u / 4), h = 0, f = 0, g = 0; g < u; g += 4) {
|
|
7166
7166
|
var y = a[g], w = a[g + 1], S = a[g + 2], p = a[g + 3];
|
|
7167
7167
|
o[h++] = y, o[h++] = w, o[h++] = S, c[f++] = p;
|
|
@@ -7169,18 +7169,18 @@ function(n) {
|
|
|
7169
7169
|
var O = this.__addimage__.arrayBufferToBinaryString(o);
|
|
7170
7170
|
return { alpha: this.__addimage__.arrayBufferToBinaryString(c), data: O, index: e, alias: r, colorSpace: "DeviceRGB", bitsPerComponent: 8, width: n.width, height: n.height };
|
|
7171
7171
|
}, Rt.API.setLanguage = function(n) {
|
|
7172
|
-
return this.internal.languageSettings === void 0 && (this.internal.languageSettings = {}, this.internal.languageSettings.isSubscribed = !1), { af: "Afrikaans", sq: "Albanian", ar: "Arabic (Standard)", "ar-DZ": "Arabic (Algeria)", "ar-BH": "Arabic (Bahrain)", "ar-EG": "Arabic (Egypt)", "ar-IQ": "Arabic (Iraq)", "ar-JO": "Arabic (Jordan)", "ar-KW": "Arabic (Kuwait)", "ar-LB": "Arabic (Lebanon)", "ar-LY": "Arabic (Libya)", "ar-MA": "Arabic (Morocco)", "ar-OM": "Arabic (Oman)", "ar-QA": "Arabic (Qatar)", "ar-SA": "Arabic (Saudi Arabia)", "ar-SY": "Arabic (Syria)", "ar-TN": "Arabic (Tunisia)", "ar-AE": "Arabic (U.A.E.)", "ar-YE": "Arabic (Yemen)", an: "Aragonese", hy: "Armenian", as: "Assamese", ast: "Asturian", az: "Azerbaijani", eu: "Basque", be: "Belarusian", bn: "Bengali", bs: "Bosnian", br: "Breton", bg: "Bulgarian", my: "Burmese", ca: "Catalan", ch: "Chamorro", ce: "Chechen", zh: "Chinese", "zh-HK": "Chinese (Hong Kong)", "zh-CN": "Chinese (PRC)", "zh-SG": "Chinese (Singapore)", "zh-TW": "Chinese (Taiwan)", cv: "Chuvash", co: "Corsican", cr: "Cree", hr: "Croatian", cs: "Czech", da: "Danish", nl: "Dutch (Standard)", "nl-BE": "Dutch (Belgian)", en: "English", "en-AU": "English (Australia)", "en-BZ": "English (Belize)", "en-CA": "English (Canada)", "en-IE": "English (Ireland)", "en-JM": "English (Jamaica)", "en-NZ": "English (New Zealand)", "en-PH": "English (Philippines)", "en-ZA": "English (South Africa)", "en-TT": "English (Trinidad & Tobago)", "en-GB": "English (United Kingdom)", "en-US": "English (United States)", "en-ZW": "English (Zimbabwe)", eo: "Esperanto", et: "Estonian", fo: "Faeroese", fj: "Fijian", fi: "Finnish", fr: "French (Standard)", "fr-BE": "French (Belgium)", "fr-CA": "French (Canada)", "fr-FR": "French (France)", "fr-LU": "French (Luxembourg)", "fr-MC": "French (Monaco)", "fr-CH": "French (Switzerland)", fy: "Frisian", fur: "Friulian", gd: "Gaelic (Scots)", "gd-IE": "Gaelic (Irish)", gl: "Galacian", ka: "Georgian", de: "German (Standard)", "de-AT": "German (Austria)", "de-DE": "German (Germany)", "de-LI": "German (Liechtenstein)", "de-LU": "German (Luxembourg)", "de-CH": "German (Switzerland)", el: "Greek", gu: "Gujurati", ht: "Haitian", he: "Hebrew", hi: "Hindi", hu: "Hungarian", is: "Icelandic", id: "Indonesian", iu: "Inuktitut", ga: "Irish", it: "Italian (Standard)", "it-CH": "Italian (Switzerland)", ja: "Japanese", kn: "Kannada", ks: "Kashmiri", kk: "Kazakh", km: "Khmer", ky: "Kirghiz", tlh: "Klingon", ko: "Korean", "ko-KP": "Korean (North Korea)", "ko-KR": "Korean (South Korea)", la: "Latin", lv: "Latvian", lt: "Lithuanian", lb: "Luxembourgish", mk: "North Macedonia", ms: "Malay", ml: "Malayalam", mt: "Maltese", mi: "Maori", mr: "Marathi", mo: "Moldavian", nv: "Navajo", ng: "Ndonga", ne: "Nepali", no: "Norwegian", nb: "Norwegian (Bokmal)", nn: "Norwegian (Nynorsk)", oc: "Occitan", or: "Oriya", om: "Oromo", fa: "Persian", "fa-IR": "Persian/Iran", pl: "Polish", pt: "Portuguese", "pt-BR": "Portuguese (Brazil)", pa: "Punjabi", "pa-IN": "Punjabi (India)", "pa-PK": "Punjabi (Pakistan)", qu: "Quechua", rm: "Rhaeto-Romanic", ro: "Romanian", "ro-MO": "Romanian (Moldavia)", ru: "Russian", "ru-MO": "Russian (Moldavia)", sz: "Sami (Lappish)", sg: "Sango", sa: "Sanskrit", sc: "Sardinian", sd: "Sindhi", si: "Singhalese", sr: "Serbian", sk: "Slovak", sl: "Slovenian", so: "Somani", sb: "Sorbian", es: "Spanish", "es-AR": "Spanish (Argentina)", "es-BO": "Spanish (Bolivia)", "es-CL": "Spanish (Chile)", "es-CO": "Spanish (Colombia)", "es-CR": "Spanish (Costa Rica)", "es-DO": "Spanish (Dominican Republic)", "es-EC": "Spanish (Ecuador)", "es-SV": "Spanish (El Salvador)", "es-GT": "Spanish (Guatemala)", "es-HN": "Spanish (Honduras)", "es-MX": "Spanish (Mexico)", "es-NI": "Spanish (Nicaragua)", "es-PA": "Spanish (Panama)", "es-PY": "Spanish (Paraguay)", "es-PE": "Spanish (Peru)", "es-PR": "Spanish (Puerto Rico)", "es-ES": "Spanish (Spain)", "es-UY": "Spanish (Uruguay)", "es-VE": "Spanish (Venezuela)", sx: "Sutu", sw: "Swahili", sv: "Swedish", "sv-FI": "Swedish (Finland)", "sv-SV": "Swedish (Sweden)", ta: "Tamil", tt: "Tatar", te: "Teluga", th: "Thai", tig: "Tigre", ts: "Tsonga", tn: "Tswana", tr: "Turkish", tk: "Turkmen", uk: "Ukrainian", hsb: "Upper Sorbian", ur: "Urdu", ve: "Venda", vi: "Vietnamese", vo: "Volapuk", wa: "Walloon", cy: "Welsh", xh: "Xhosa", ji: "Yiddish", zu: "Zulu" }[n] !== void 0 && (this.internal.languageSettings.languageCode = n, this.internal.languageSettings.isSubscribed === !1 && (this.internal.events.subscribe("putCatalog", function() {
|
|
7172
|
+
return this.internal.languageSettings === void 0 && (this.internal.languageSettings = {}, this.internal.languageSettings.isSubscribed = !1), { af: "Afrikaans", sq: "Albanian", ar: "Arabic (Standard)", "ar-DZ": "Arabic (Algeria)", "ar-BH": "Arabic (Bahrain)", "ar-EG": "Arabic (Egypt)", "ar-IQ": "Arabic (Iraq)", "ar-JO": "Arabic (Jordan)", "ar-KW": "Arabic (Kuwait)", "ar-LB": "Arabic (Lebanon)", "ar-LY": "Arabic (Libya)", "ar-MA": "Arabic (Morocco)", "ar-OM": "Arabic (Oman)", "ar-QA": "Arabic (Qatar)", "ar-SA": "Arabic (Saudi Arabia)", "ar-SY": "Arabic (Syria)", "ar-TN": "Arabic (Tunisia)", "ar-AE": "Arabic (U.A.E.)", "ar-YE": "Arabic (Yemen)", an: "Aragonese", hy: "Armenian", as: "Assamese", ast: "Asturian", az: "Azerbaijani", eu: "Basque", be: "Belarusian", bn: "Bengali", bs: "Bosnian", br: "Breton", bg: "Bulgarian", my: "Burmese", ca: "Catalan", ch: "Chamorro", ce: "Chechen", zh: "Chinese", "zh-HK": "Chinese (Hong Kong)", "zh-CN": "Chinese (PRC)", "zh-SG": "Chinese (Singapore)", "zh-TW": "Chinese (Taiwan)", cv: "Chuvash", co: "Corsican", cr: "Cree", hr: "Croatian", cs: "Czech", da: "Danish", nl: "Dutch (Standard)", "nl-BE": "Dutch (Belgian)", en: "English", "en-AU": "English (Australia)", "en-BZ": "English (Belize)", "en-CA": "English (Canada)", "en-IE": "English (Ireland)", "en-JM": "English (Jamaica)", "en-NZ": "English (New Zealand)", "en-PH": "English (Philippines)", "en-ZA": "English (South Africa)", "en-TT": "English (Trinidad & Tobago)", "en-GB": "English (United Kingdom)", "en-US": "English (United States)", "en-ZW": "English (Zimbabwe)", eo: "Esperanto", et: "Estonian", fo: "Faeroese", fj: "Fijian", fi: "Finnish", fr: "French (Standard)", "fr-BE": "French (Belgium)", "fr-CA": "French (Canada)", "fr-FR": "French (France)", "fr-LU": "French (Luxembourg)", "fr-MC": "French (Monaco)", "fr-CH": "French (Switzerland)", fy: "Frisian", fur: "Friulian", gd: "Gaelic (Scots)", "gd-IE": "Gaelic (Irish)", gl: "Galacian", ka: "Georgian", de: "German (Standard)", "de-AT": "German (Austria)", "de-DE": "German (Germany)", "de-LI": "German (Liechtenstein)", "de-LU": "German (Luxembourg)", "de-CH": "German (Switzerland)", el: "Greek", gu: "Gujurati", ht: "Haitian", he: "Hebrew", hi: "Hindi", hu: "Hungarian", is: "Icelandic", id: "Indonesian", iu: "Inuktitut", ga: "Irish", it: "Italian (Standard)", "it-CH": "Italian (Switzerland)", ja: "Japanese", kn: "Kannada", ks: "Kashmiri", kk: "Kazakh", km: "Khmer", ky: "Kirghiz", tlh: "Klingon", ko: "Korean", "ko-KP": "Korean (North Korea)", "ko-KR": "Korean (South Korea)", la: "Latin", lv: "Latvian", lt: "Lithuanian", lb: "Luxembourgish", mk: "North Macedonia", ms: "Malay", ml: "Malayalam", mt: "Maltese", mi: "Maori", mr: "Marathi", mo: "Moldavian", nv: "Navajo", ng: "Ndonga", ne: "Nepali", no: "Norwegian", nb: "Norwegian (Bokmal)", nn: "Norwegian (Nynorsk)", oc: "Occitan", or: "Oriya", om: "Oromo", fa: "Persian", "fa-IR": "Persian/Iran", pl: "Polish", pt: "Portuguese", "pt-BR": "Portuguese (Brazil)", pa: "Punjabi", "pa-IN": "Punjabi (India)", "pa-PK": "Punjabi (Pakistan)", qu: "Quechua", rm: "Rhaeto-Romanic", ro: "Romanian", "ro-MO": "Romanian (Moldavia)", ru: "Russian", "ru-MO": "Russian (Moldavia)", sz: "Sami (Lappish)", sg: "Sango", sa: "Sanskrit", sc: "Sardinian", sd: "Sindhi", si: "Singhalese", sr: "Serbian", sk: "Slovak", sl: "Slovenian", so: "Somani", sb: "Sorbian", es: "Spanish", "es-AR": "Spanish (Argentina)", "es-BO": "Spanish (Bolivia)", "es-CL": "Spanish (Chile)", "es-CO": "Spanish (Colombia)", "es-CR": "Spanish (Costa Rica)", "es-DO": "Spanish (Dominican Republic)", "es-EC": "Spanish (Ecuador)", "es-SV": "Spanish (El Salvador)", "es-GT": "Spanish (Guatemala)", "es-HN": "Spanish (Honduras)", "es-MX": "Spanish (Mexico)", "es-NI": "Spanish (Nicaragua)", "es-PA": "Spanish (Panama)", "es-PY": "Spanish (Paraguay)", "es-PE": "Spanish (Peru)", "es-PR": "Spanish (Puerto Rico)", "es-ES": "Spanish (Spain)", "es-UY": "Spanish (Uruguay)", "es-VE": "Spanish (Venezuela)", sx: "Sutu", sw: "Swahili", sv: "Swedish", "sv-FI": "Swedish (Finland)", "sv-SV": "Swedish (Sweden)", ta: "Tamil", tt: "Tatar", te: "Teluga", th: "Thai", tig: "Tigre", ts: "Tsonga", tn: "Tswana", tr: "Turkish", tk: "Turkmen", uk: "Ukrainian", hsb: "Upper Sorbian", ur: "Urdu", ve: "Venda", vi: "Vietnamese", vo: "Volapuk", wa: "Walloon", cy: "Welsh", xh: "Xhosa", ji: "Yiddish", zu: "Zulu" }[n] !== void 0 && (this.internal.languageSettings.languageCode = n, this.internal.languageSettings.isSubscribed === !1 && (this.internal.events.subscribe("putCatalog", (function() {
|
|
7173
7173
|
this.internal.write("/Lang (" + this.internal.languageSettings.languageCode + ")");
|
|
7174
|
-
}), this.internal.languageSettings.isSubscribed = !0)), this;
|
|
7174
|
+
})), this.internal.languageSettings.isSubscribed = !0)), this;
|
|
7175
7175
|
}, Ci = Rt.API, fo = Ci.getCharWidthsArray = function(n, e) {
|
|
7176
7176
|
var r, a, u = (e = e || {}).font || this.internal.getFont(), o = e.fontSize || this.internal.getFontSize(), c = e.charSpace || this.internal.getCharSpace(), h = e.widths ? e.widths : u.metadata.Unicode.widths, f = h.fof ? h.fof : 1, g = e.kerning ? e.kerning : u.metadata.Unicode.kerning, y = g.fof ? g.fof : 1, w = e.doKerning !== !1, S = 0, p = n.length, O = 0, F = h[0] || f, q = [];
|
|
7177
7177
|
for (r = 0; r < p; r++) a = n.charCodeAt(r), typeof u.metadata.widthOfString == "function" ? q.push((u.metadata.widthOfGlyph(u.metadata.characterToGlyph(a)) + c * (1e3 / o) || 0) / 1e3) : (S = w && fe(g[a]) === "object" && !isNaN(parseInt(g[a][O], 10)) ? g[a][O] / y : 0, q.push((h[a] || F) / f + S)), O = a;
|
|
7178
7178
|
return q;
|
|
7179
7179
|
}, mu = Ci.getStringUnitWidth = function(n, e) {
|
|
7180
7180
|
var r = (e = e || {}).fontSize || this.internal.getFontSize(), a = e.font || this.internal.getFont(), u = e.charSpace || this.internal.getCharSpace();
|
|
7181
|
-
return Ci.processArabic && (n = Ci.processArabic(n)), typeof a.metadata.widthOfString == "function" ? a.metadata.widthOfString(n, r, u) / r : fo.apply(this, arguments).reduce(function(o, c) {
|
|
7181
|
+
return Ci.processArabic && (n = Ci.processArabic(n)), typeof a.metadata.widthOfString == "function" ? a.metadata.widthOfString(n, r, u) / r : fo.apply(this, arguments).reduce((function(o, c) {
|
|
7182
7182
|
return o + c;
|
|
7183
|
-
}, 0);
|
|
7183
|
+
}), 0);
|
|
7184
7184
|
}, vu = function(n, e, r, a) {
|
|
7185
7185
|
for (var u = [], o = 0, c = n.length, h = 0; o !== c && h + e[o] < r; ) h += e[o], o++;
|
|
7186
7186
|
u.push(n.slice(0, o));
|
|
@@ -7192,24 +7192,24 @@ function(n) {
|
|
|
7192
7192
|
var a, u, o, c, h, f, g, y = [], w = [y], S = r.textIndent || 0, p = 0, O = 0, F = n.split(" "), q = fo.apply(this, [" ", r])[0];
|
|
7193
7193
|
if (f = r.lineIndent === -1 ? F[0].length + 2 : r.lineIndent || 0) {
|
|
7194
7194
|
var _ = Array(f).join(" "), B = [];
|
|
7195
|
-
F.map(function(ot) {
|
|
7196
|
-
(ot = ot.split(/\s*\n/)).length > 1 ? B = B.concat(ot.map(function(lt, wt) {
|
|
7195
|
+
F.map((function(ot) {
|
|
7196
|
+
(ot = ot.split(/\s*\n/)).length > 1 ? B = B.concat(ot.map((function(lt, wt) {
|
|
7197
7197
|
return (wt && lt.length ? `
|
|
7198
7198
|
` : "") + lt;
|
|
7199
|
-
})) : B.push(ot[0]);
|
|
7200
|
-
}), F = B, f = mu.apply(this, [_, r]);
|
|
7199
|
+
}))) : B.push(ot[0]);
|
|
7200
|
+
})), F = B, f = mu.apply(this, [_, r]);
|
|
7201
7201
|
}
|
|
7202
7202
|
for (o = 0, c = F.length; o < c; o++) {
|
|
7203
7203
|
var Y = 0;
|
|
7204
7204
|
if (a = F[o], f && a[0] == `
|
|
7205
|
-
` && (a = a.substr(1), Y = 1), S + p + (O = (u = fo.apply(this, [a, r])).reduce(function(ot, lt) {
|
|
7205
|
+
` && (a = a.substr(1), Y = 1), S + p + (O = (u = fo.apply(this, [a, r])).reduce((function(ot, lt) {
|
|
7206
7206
|
return ot + lt;
|
|
7207
|
-
}, 0)) > e || Y) {
|
|
7207
|
+
}), 0)) > e || Y) {
|
|
7208
7208
|
if (O > e) {
|
|
7209
7209
|
for (h = vu.apply(this, [a, u, e - (S + p), e]), y.push(h.shift()), y = [h.pop()]; h.length; ) w.push([h.shift()]);
|
|
7210
|
-
O = u.slice(a.length - (y[0] ? y[0].length : 0)).reduce(function(ot, lt) {
|
|
7210
|
+
O = u.slice(a.length - (y[0] ? y[0].length : 0)).reduce((function(ot, lt) {
|
|
7211
7211
|
return ot + lt;
|
|
7212
|
-
}, 0);
|
|
7212
|
+
}), 0);
|
|
7213
7213
|
} else y = [a];
|
|
7214
7214
|
w.push(y), S = O + f, p = q;
|
|
7215
7215
|
} else y.push(a), S += p + O, p = q;
|
|
@@ -7231,7 +7231,7 @@ function(n) {
|
|
|
7231
7231
|
var h, f, g = [];
|
|
7232
7232
|
for (h = 0, f = a.length; h < f; h++) g = g.concat(bu.apply(this, [a[h], c, o]));
|
|
7233
7233
|
return g;
|
|
7234
|
-
}, function(n) {
|
|
7234
|
+
}, (function(n) {
|
|
7235
7235
|
n.__fontmetrics__ = n.__fontmetrics__ || {};
|
|
7236
7236
|
for (var e = "klmnopqrstuvwxyz", r = {}, a = {}, u = 0; u < e.length; u++) r[e[u]] = "0123456789abcdef"[u], a["0123456789abcdef"[u]] = e[u];
|
|
7237
7237
|
var o = function(w) {
|
|
@@ -7258,12 +7258,12 @@ function(n) {
|
|
|
7258
7258
|
var O = g.Unicode[S.postScriptName];
|
|
7259
7259
|
O && (S.metadata.Unicode.encoding = O, S.encoding = O.codePages[0]);
|
|
7260
7260
|
}]);
|
|
7261
|
-
}(Rt.API), /**
|
|
7261
|
+
})(Rt.API), /**
|
|
7262
7262
|
* @license
|
|
7263
7263
|
* Licensed under the MIT License.
|
|
7264
7264
|
* http://opensource.org/licenses/mit-license
|
|
7265
7265
|
*/
|
|
7266
|
-
function(n) {
|
|
7266
|
+
(function(n) {
|
|
7267
7267
|
var e = function(r) {
|
|
7268
7268
|
for (var a = r.length, u = new Uint8Array(a), o = 0; o < a; o++) u[o] = r.charCodeAt(o);
|
|
7269
7269
|
return u;
|
|
@@ -7278,7 +7278,7 @@ function(n) {
|
|
|
7278
7278
|
})(u, a);
|
|
7279
7279
|
}
|
|
7280
7280
|
}]);
|
|
7281
|
-
}(Rt), /** @license
|
|
7281
|
+
})(Rt), /** @license
|
|
7282
7282
|
* Copyright (c) 2012 Willow Systems Corporation, https://github.com/willowsystems
|
|
7283
7283
|
*
|
|
7284
7284
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
@@ -7301,13 +7301,13 @@ function(n) {
|
|
|
7301
7301
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
7302
7302
|
* ====================================================================
|
|
7303
7303
|
*/
|
|
7304
|
-
function(n) {
|
|
7304
|
+
(function(n) {
|
|
7305
7305
|
function e() {
|
|
7306
|
-
return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-
|
|
7306
|
+
return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-m9_uegWC.js")).catch((function(r) {
|
|
7307
7307
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
7308
|
-
}).then(function(r) {
|
|
7308
|
+
})).then((function(r) {
|
|
7309
7309
|
return r.default ? r.default : r;
|
|
7310
|
-
});
|
|
7310
|
+
}));
|
|
7311
7311
|
}
|
|
7312
7312
|
Rt.API.addSvgAsImage = function(r, a, u, o, c, h, f, g) {
|
|
7313
7313
|
if (isNaN(a) || isNaN(u)) throw ve.error("jsPDF.addSvgAsImage: Invalid coordinates", arguments), new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");
|
|
@@ -7317,17 +7317,17 @@ function(n) {
|
|
|
7317
7317
|
var w = y.getContext("2d");
|
|
7318
7318
|
w.fillStyle = "#fff", w.fillRect(0, 0, y.width, y.height);
|
|
7319
7319
|
var S = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, p = this;
|
|
7320
|
-
return e().then(function(O) {
|
|
7320
|
+
return e().then((function(O) {
|
|
7321
7321
|
return O.fromString(w, r, S);
|
|
7322
|
-
}, function() {
|
|
7322
|
+
}), (function() {
|
|
7323
7323
|
return Promise.reject(new Error("Could not load canvg."));
|
|
7324
|
-
}).then(function(O) {
|
|
7324
|
+
})).then((function(O) {
|
|
7325
7325
|
return O.render(S);
|
|
7326
|
-
}).then(function() {
|
|
7326
|
+
})).then((function() {
|
|
7327
7327
|
p.addImage(y.toDataURL("image/jpeg", 1), a, u, o, c, f, g);
|
|
7328
|
-
});
|
|
7328
|
+
}));
|
|
7329
7329
|
};
|
|
7330
|
-
}(), Rt.API.putTotalPages = function(n) {
|
|
7330
|
+
})(), Rt.API.putTotalPages = function(n) {
|
|
7331
7331
|
var e, r = 0;
|
|
7332
7332
|
parseInt(this.internal.getFont().id.substr(1), 10) < 15 ? (e = new RegExp(n, "g"), r = this.internal.getNumberOfPages()) : (e = new RegExp(this.pdfEscape16(n, this.internal.getFont()), "g"), r = this.pdfEscape16(this.internal.getNumberOfPages() + "", this.internal.getFont()));
|
|
7333
7333
|
for (var a = 1; a <= this.internal.getNumberOfPages(); a++) for (var u = 0; u < this.internal.pages[a].length; u++) this.internal.pages[a][u] = this.internal.pages[a][u].replace(e, r);
|
|
@@ -7361,7 +7361,7 @@ function(n) {
|
|
|
7361
7361
|
r[u].explicitSet = !0;
|
|
7362
7362
|
}
|
|
7363
7363
|
}
|
|
7364
|
-
return this.internal.viewerpreferences.isSubscribed === !1 && (this.internal.events.subscribe("putCatalog", function() {
|
|
7364
|
+
return this.internal.viewerpreferences.isSubscribed === !1 && (this.internal.events.subscribe("putCatalog", (function() {
|
|
7365
7365
|
var O, F = [];
|
|
7366
7366
|
for (O in r) r[O].explicitSet === !0 && (r[O].type === "name" ? F.push("/" + O + " /" + r[O].value) : F.push("/" + O + " " + r[O].value));
|
|
7367
7367
|
F.length !== 0 && this.internal.write(`/ViewerPreferences
|
|
@@ -7369,7 +7369,7 @@ function(n) {
|
|
|
7369
7369
|
` + F.join(`
|
|
7370
7370
|
`) + `
|
|
7371
7371
|
>>`);
|
|
7372
|
-
}), this.internal.viewerpreferences.isSubscribed = !0), this.internal.viewerpreferences.configuration = r, this;
|
|
7372
|
+
})), this.internal.viewerpreferences.isSubscribed = !0), this.internal.viewerpreferences.configuration = r, this;
|
|
7373
7373
|
}, /** ====================================================================
|
|
7374
7374
|
* @license
|
|
7375
7375
|
* jsPDF XMP metadata plugin
|
|
@@ -7395,7 +7395,7 @@ function(n) {
|
|
|
7395
7395
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
7396
7396
|
* ====================================================================
|
|
7397
7397
|
*/
|
|
7398
|
-
function(n) {
|
|
7398
|
+
(function(n) {
|
|
7399
7399
|
var e = function() {
|
|
7400
7400
|
var a = '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="' + this.internal.__metadata__.namespaceuri + '"><jspdf:metadata>', u = unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')), o = unescape(encodeURIComponent(a)), c = unescape(encodeURIComponent(this.internal.__metadata__.metadata)), h = unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")), f = unescape(encodeURIComponent("</x:xmpmeta>")), g = o.length + c.length + h.length + u.length + f.length;
|
|
7401
7401
|
this.internal.__metadata__.metadata_object_number = this.internal.newObject(), this.internal.write("<< /Type /Metadata /Subtype /XML /Length " + g + " >>"), this.internal.write("stream"), this.internal.write(u + o + c + h + f), this.internal.write("endstream"), this.internal.write("endobj");
|
|
@@ -7405,7 +7405,7 @@ function(n) {
|
|
|
7405
7405
|
n.addMetadata = function(a, u) {
|
|
7406
7406
|
return this.internal.__metadata__ === void 0 && (this.internal.__metadata__ = { metadata: a, namespaceuri: u || "http://jspdf.default.namespaceuri/" }, this.internal.events.subscribe("putCatalog", r), this.internal.events.subscribe("postPutResources", e)), this;
|
|
7407
7407
|
};
|
|
7408
|
-
}(Rt.API), function(n) {
|
|
7408
|
+
})(Rt.API), (function(n) {
|
|
7409
7409
|
var e = n.API, r = e.pdfEscape16 = function(o, c) {
|
|
7410
7410
|
for (var h, f = c.metadata.Unicode.widths, g = ["", "0", "00", "000", "0000"], y = [""], w = 0, S = o.length; w < S; ++w) {
|
|
7411
7411
|
if (h = c.metadata.characterToGlyph(o.charCodeAt(w)), c.metadata.glyIdsUsed.push(h), c.metadata.toUnicode[h] = o.charCodeAt(w), f.indexOf(h) == -1 && (f.push(h), f.push([parseInt(c.metadata.widthOfGlyph(h), 10)])), h == "0") return y.join("");
|
|
@@ -7426,9 +7426,9 @@ begincmap
|
|
|
7426
7426
|
/CMapType 2 def
|
|
7427
7427
|
1 begincodespacerange
|
|
7428
7428
|
<0000><ffff>
|
|
7429
|
-
endcodespacerange`, f = [], w = 0, S = (h = Object.keys(o).sort(function(p, O) {
|
|
7429
|
+
endcodespacerange`, f = [], w = 0, S = (h = Object.keys(o).sort((function(p, O) {
|
|
7430
7430
|
return p - O;
|
|
7431
|
-
})).length; w < S; w++) c = h[w], f.length >= 100 && (y += `
|
|
7431
|
+
}))).length; w < S; w++) c = h[w], f.length >= 100 && (y += `
|
|
7432
7432
|
` + f.length + ` beginbfchar
|
|
7433
7433
|
` + f.join(`
|
|
7434
7434
|
`) + `
|
|
@@ -7479,9 +7479,9 @@ end`;
|
|
|
7479
7479
|
if (O[F].encoding !== "Identity-H") return { text: h, x: f, y: g, options: y, mutex: w };
|
|
7480
7480
|
for (B = h, F = p, Array.isArray(h) && (B = h[0]), _ = 0; _ < B.length; _ += 1) O[F].metadata.hasOwnProperty("cmap") && (c = O[F].metadata.cmap.unicode.codeMap[B[_].charCodeAt(0)]), c || B[_].charCodeAt(0) < 256 && O[F].metadata.hasOwnProperty("Unicode") ? q += B[_] : q += "";
|
|
7481
7481
|
var ot = "";
|
|
7482
|
-
return parseInt(F.slice(1)) < 14 || Y === "WinAnsiEncoding" ? ot = S(q, F).split("").map(function(lt) {
|
|
7482
|
+
return parseInt(F.slice(1)) < 14 || Y === "WinAnsiEncoding" ? ot = S(q, F).split("").map((function(lt) {
|
|
7483
7483
|
return lt.charCodeAt(0).toString(16);
|
|
7484
|
-
}).join("") : Y === "Identity-H" && (ot = r(q, O[F])), w.isHex = !0, { text: ot, x: f, y: g, options: y, mutex: w };
|
|
7484
|
+
})).join("") : Y === "Identity-H" && (ot = r(q, O[F])), w.isHex = !0, { text: ot, x: f, y: g, options: y, mutex: w };
|
|
7485
7485
|
};
|
|
7486
7486
|
e.events.push(["postProcessText", function(o) {
|
|
7487
7487
|
var c = o.text || "", h = [], f = { text: c, x: o.x, y: o.y, options: o.options, mutex: o.mutex };
|
|
@@ -7491,14 +7491,14 @@ end`;
|
|
|
7491
7491
|
o.text = h;
|
|
7492
7492
|
} else o.text = u(Object.assign({}, f, { text: c })).text;
|
|
7493
7493
|
}]);
|
|
7494
|
-
}(Rt), /**
|
|
7494
|
+
})(Rt), /**
|
|
7495
7495
|
* @license
|
|
7496
7496
|
* jsPDF virtual FileSystem functionality
|
|
7497
7497
|
*
|
|
7498
7498
|
* Licensed under the MIT License.
|
|
7499
7499
|
* http://opensource.org/licenses/mit-license
|
|
7500
7500
|
*/
|
|
7501
|
-
function(n) {
|
|
7501
|
+
(function(n) {
|
|
7502
7502
|
var e = function() {
|
|
7503
7503
|
return this.internal.vFS === void 0 && (this.internal.vFS = {}), !0;
|
|
7504
7504
|
};
|
|
@@ -7509,12 +7509,12 @@ function(n) {
|
|
|
7509
7509
|
}, n.getFileFromVFS = function(r) {
|
|
7510
7510
|
return e.call(this), this.internal.vFS[r] !== void 0 ? this.internal.vFS[r] : null;
|
|
7511
7511
|
};
|
|
7512
|
-
}(Rt.API), /**
|
|
7512
|
+
})(Rt.API), /**
|
|
7513
7513
|
* @license
|
|
7514
7514
|
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
|
|
7515
7515
|
* MIT License
|
|
7516
7516
|
*/
|
|
7517
|
-
function(n) {
|
|
7517
|
+
(function(n) {
|
|
7518
7518
|
n.__bidiEngine__ = n.prototype.__bidiEngine__ = function(a) {
|
|
7519
7519
|
var u, o, c, h, f, g, y, w = e, S = [[0, 3, 0, 1, 0, 0, 0], [0, 3, 0, 1, 2, 2, 0], [0, 3, 0, 17, 2, 0, 1], [0, 3, 5, 5, 4, 1, 0], [0, 3, 21, 21, 4, 0, 1], [0, 3, 5, 5, 4, 2, 0]], p = [[2, 0, 1, 1, 0, 1, 0], [2, 0, 1, 1, 0, 2, 0], [2, 0, 2, 1, 3, 2, 0], [2, 0, 2, 33, 3, 1, 1]], O = { L: 0, R: 1, EN: 2, AN: 3, N: 4, B: 5, S: 6 }, F = { 0: 0, 5: 1, 6: 2, 7: 3, 32: 4, 251: 5, 254: 6, 255: 7 }, q = ["(", ")", "(", "<", ">", "<", "[", "]", "[", "{", "}", "{", "«", "»", "«", "‹", "›", "‹", "⁅", "⁆", "⁅", "⁽", "⁾", "⁽", "₍", "₎", "₍", "≤", "≥", "≤", "〈", "〉", "〈", "﹙", "﹚", "﹙", "﹛", "﹜", "﹛", "﹝", "﹞", "﹝", "﹤", "﹥", "﹤"], _ = new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/), B = !1, Y = 0;
|
|
7520
7520
|
this.__bidiEngine__ = {};
|
|
@@ -7612,12 +7612,12 @@ function(n) {
|
|
|
7612
7612
|
}
|
|
7613
7613
|
M[it] === "B" && (k[it] = 0), W.hiLevel |= ct;
|
|
7614
7614
|
}
|
|
7615
|
-
o && function(R, J, Q) {
|
|
7615
|
+
o && (function(R, J, Q) {
|
|
7616
7616
|
for (var et = 0; et < Q; et++) if (R[et] === "S") {
|
|
7617
7617
|
J[et] = Y;
|
|
7618
7618
|
for (var rt = et - 1; rt >= 0 && R[rt] === "WS"; rt--) J[rt] = Y;
|
|
7619
7619
|
}
|
|
7620
|
-
}(M, k, pt);
|
|
7620
|
+
})(M, k, pt);
|
|
7621
7621
|
}, nt = function(P, k, W, D, st) {
|
|
7622
7622
|
if (!(st.hiLevel < P)) {
|
|
7623
7623
|
if (P === 1 && Y === 1 && !u) return k.reverse(), void (W && W.reverse());
|
|
@@ -7632,15 +7632,15 @@ function(n) {
|
|
|
7632
7632
|
}
|
|
7633
7633
|
}, dt = function(P, k, W) {
|
|
7634
7634
|
var D = P.split(""), st = { hiLevel: Y };
|
|
7635
|
-
return W || (W = []), z(D, W, st), function(it, ct, $) {
|
|
7635
|
+
return W || (W = []), z(D, W, st), (function(it, ct, $) {
|
|
7636
7636
|
if ($.hiLevel !== 0 && y) for (var ht, pt = 0; pt < it.length; pt++) ct[pt] === 1 && (ht = q.indexOf(it[pt])) >= 0 && (it[pt] = q[ht + 1]);
|
|
7637
|
-
}(D, W, st), nt(2, D, k, W, st), nt(1, D, k, W, st), D.join("");
|
|
7637
|
+
})(D, W, st), nt(2, D, k, W, st), nt(1, D, k, W, st), D.join("");
|
|
7638
7638
|
};
|
|
7639
7639
|
return this.__bidiEngine__.doBidiReorder = function(P, k, W) {
|
|
7640
|
-
if (function(st, it) {
|
|
7640
|
+
if ((function(st, it) {
|
|
7641
7641
|
if (it) for (var ct = 0; ct < st.length; ct++) it[ct] = ct;
|
|
7642
7642
|
h === void 0 && (h = lt(st)), g === void 0 && (g = lt(st));
|
|
7643
|
-
}(P, k), c || !f || g) if (c && f && h ^ g) Y = h ? 1 : 0, P = tt(P, k, W);
|
|
7643
|
+
})(P, k), c || !f || g) if (c && f && h ^ g) Y = h ? 1 : 0, P = tt(P, k, W);
|
|
7644
7644
|
else if (!c && f && g) Y = h ? 1 : 0, P = dt(P, k, W), P = tt(P, k);
|
|
7645
7645
|
else if (!c || h || f || g) {
|
|
7646
7646
|
if (c && !f && h ^ g) P = tt(P, k), h ? (Y = 0, P = dt(P, k, W)) : (Y = 1, P = dt(P, k, W), P = tt(P, k));
|
|
@@ -7666,7 +7666,7 @@ function(n) {
|
|
|
7666
7666
|
} else a.text = r.doBidiReorder(u);
|
|
7667
7667
|
r.setOptions({ isInputVisual: !0 });
|
|
7668
7668
|
}]);
|
|
7669
|
-
}(Rt), Rt.API.TTFFont = function() {
|
|
7669
|
+
})(Rt), Rt.API.TTFFont = (function() {
|
|
7670
7670
|
function n(e) {
|
|
7671
7671
|
var r;
|
|
7672
7672
|
if (this.rawData = e, r = this.contents = new Bn(e), this.contents.pos = 4, r.readString(4) === "ttcf") throw new Error("TTCF not supported.");
|
|
@@ -7682,7 +7682,7 @@ function(n) {
|
|
|
7682
7682
|
var c, h, f, g;
|
|
7683
7683
|
for (g = [], c = 0, h = (f = this.bbox).length; c < h; c++) e = f[c], g.push(Math.round(e * this.scaleFactor));
|
|
7684
7684
|
return g;
|
|
7685
|
-
}).call(this), this.stemV = 0, this.post.exists ? (a = 255 & (u = this.post.italic_angle), 32768 & (r = u >> 16) && (r = -(1 + (65535 ^ r))), this.italicAngle = +(r + "." + a)) : this.italicAngle = 0, this.ascender = Math.round(this.ascender * this.scaleFactor), this.decender = Math.round(this.decender * this.scaleFactor), this.lineGap = Math.round(this.lineGap * this.scaleFactor), this.capHeight = this.os2.exists && this.os2.capHeight || this.ascender, this.xHeight = this.os2.exists && this.os2.xHeight || 0, this.familyClass = (this.os2.exists && this.os2.familyClass || 0) >> 8, this.isSerif = (o = this.familyClass) === 1 || o === 2 || o === 3 || o === 4 || o === 5 || o === 7, this.isScript = this.familyClass === 10, this.flags = 0, this.post.isFixedPitch && (this.flags |= 1), this.isSerif && (this.flags |= 2), this.isScript && (this.flags |= 8), this.italicAngle !== 0 && (this.flags |= 64), this.flags |= 32, !this.cmap.unicode) throw new Error("No unicode cmap for font");
|
|
7685
|
+
}).call(this), this.stemV = 0, this.post.exists ? (a = 255 & (u = this.post.italic_angle), (32768 & (r = u >> 16)) != 0 && (r = -(1 + (65535 ^ r))), this.italicAngle = +(r + "." + a)) : this.italicAngle = 0, this.ascender = Math.round(this.ascender * this.scaleFactor), this.decender = Math.round(this.decender * this.scaleFactor), this.lineGap = Math.round(this.lineGap * this.scaleFactor), this.capHeight = this.os2.exists && this.os2.capHeight || this.ascender, this.xHeight = this.os2.exists && this.os2.xHeight || 0, this.familyClass = (this.os2.exists && this.os2.familyClass || 0) >> 8, this.isSerif = (o = this.familyClass) === 1 || o === 2 || o === 3 || o === 4 || o === 5 || o === 7, this.isScript = this.familyClass === 10, this.flags = 0, this.post.isFixedPitch && (this.flags |= 1), this.isSerif && (this.flags |= 2), this.isScript && (this.flags |= 8), this.italicAngle !== 0 && (this.flags |= 64), this.flags |= 32, !this.cmap.unicode) throw new Error("No unicode cmap for font");
|
|
7686
7686
|
}, n.prototype.characterToGlyph = function(e) {
|
|
7687
7687
|
var r;
|
|
7688
7688
|
return ((r = this.cmap.unicode) != null ? r.codeMap[e] : void 0) || 0;
|
|
@@ -7697,8 +7697,8 @@ function(n) {
|
|
|
7697
7697
|
var a;
|
|
7698
7698
|
return r == null && (r = !1), a = r ? this.lineGap : 0, (this.ascender + a - this.decender) / 1e3 * e;
|
|
7699
7699
|
}, n;
|
|
7700
|
-
}();
|
|
7701
|
-
var Rr, Bn = function() {
|
|
7700
|
+
})();
|
|
7701
|
+
var Rr, Bn = (function() {
|
|
7702
7702
|
function n(e) {
|
|
7703
7703
|
this.data = e ?? [], this.pos = 0, this.length = this.data.length;
|
|
7704
7704
|
}
|
|
@@ -7755,7 +7755,7 @@ var Rr, Bn = function() {
|
|
|
7755
7755
|
for (o = [], a = 0, u = e.length; a < u; a++) r = e[a], o.push(this.writeByte(r));
|
|
7756
7756
|
return o;
|
|
7757
7757
|
}, n;
|
|
7758
|
-
}(), lc = function() {
|
|
7758
|
+
})(), lc = (function() {
|
|
7759
7759
|
var n;
|
|
7760
7760
|
function e(r) {
|
|
7761
7761
|
var a, u, o;
|
|
@@ -7771,14 +7771,14 @@ var Rr, Bn = function() {
|
|
|
7771
7771
|
for (o = new Bn(r), u = 0, a = 0, c = r.length; a < c; a = a += 4) u += o.readUInt32();
|
|
7772
7772
|
return 4294967295 & u;
|
|
7773
7773
|
}, e;
|
|
7774
|
-
}(), cc = {}.hasOwnProperty, tn = function(n, e) {
|
|
7774
|
+
})(), cc = {}.hasOwnProperty, tn = function(n, e) {
|
|
7775
7775
|
for (var r in e) cc.call(e, r) && (n[r] = e[r]);
|
|
7776
7776
|
function a() {
|
|
7777
7777
|
this.constructor = n;
|
|
7778
7778
|
}
|
|
7779
7779
|
return a.prototype = e.prototype, n.prototype = new a(), n.__super__ = e.prototype, n;
|
|
7780
7780
|
};
|
|
7781
|
-
Rr = function() {
|
|
7781
|
+
Rr = (function() {
|
|
7782
7782
|
function n(e) {
|
|
7783
7783
|
var r;
|
|
7784
7784
|
this.file = e, r = this.file.directory.tables[this.tag], this.exists = !!r, r && (this.offset = r.offset, this.length = r.length, this.parse(this.file.contents));
|
|
@@ -7788,8 +7788,8 @@ Rr = function() {
|
|
|
7788
7788
|
}, n.prototype.raw = function() {
|
|
7789
7789
|
return this.exists ? (this.file.contents.pos = this.offset, this.file.contents.read(this.length)) : null;
|
|
7790
7790
|
}, n;
|
|
7791
|
-
}();
|
|
7792
|
-
var hc = function(n) {
|
|
7791
|
+
})();
|
|
7792
|
+
var hc = (function(n) {
|
|
7793
7793
|
function e() {
|
|
7794
7794
|
return e.__super__.constructor.apply(this, arguments);
|
|
7795
7795
|
}
|
|
@@ -7799,7 +7799,7 @@ var hc = function(n) {
|
|
|
7799
7799
|
var a;
|
|
7800
7800
|
return (a = new Bn()).writeInt(this.version), a.writeInt(this.revision), a.writeInt(this.checkSumAdjustment), a.writeInt(this.magicNumber), a.writeShort(this.flags), a.writeShort(this.unitsPerEm), a.writeLongLong(this.created), a.writeLongLong(this.modified), a.writeShort(this.xMin), a.writeShort(this.yMin), a.writeShort(this.xMax), a.writeShort(this.yMax), a.writeShort(this.macStyle), a.writeShort(this.lowestRecPPEM), a.writeShort(this.fontDirectionHint), a.writeShort(r), a.writeShort(this.glyphDataFormat), a.data;
|
|
7801
7801
|
}, e;
|
|
7802
|
-
}(), Lu = function() {
|
|
7802
|
+
})(), Lu = (function() {
|
|
7803
7803
|
function n(e, r) {
|
|
7804
7804
|
var a, u, o, c, h, f, g, y, w, S, p, O, F, q, _, B, Y;
|
|
7805
7805
|
switch (this.platformID = e.readUInt16(), this.encodingID = e.readShort(), this.offset = r + e.readInt(), w = e.pos, e.pos = this.offset, this.format = e.readUInt16(), this.length = e.readUInt16(), this.language = e.readUInt16(), this.isUnicode = this.platformID === 3 && this.encodingID === 1 && this.format === 4 || this.platformID === 0 && this.format === 4, this.codeMap = {}, this.format) {
|
|
@@ -7807,41 +7807,41 @@ var hc = function(n) {
|
|
|
7807
7807
|
for (f = 0; f < 256; ++f) this.codeMap[f] = e.readByte();
|
|
7808
7808
|
break;
|
|
7809
7809
|
case 4:
|
|
7810
|
-
for (p = e.readUInt16(), S = p / 2, e.pos += 6, o = function() {
|
|
7810
|
+
for (p = e.readUInt16(), S = p / 2, e.pos += 6, o = (function() {
|
|
7811
7811
|
var ot, lt;
|
|
7812
7812
|
for (lt = [], f = ot = 0; 0 <= S ? ot < S : ot > S; f = 0 <= S ? ++ot : --ot) lt.push(e.readUInt16());
|
|
7813
7813
|
return lt;
|
|
7814
|
-
}(), e.pos += 2, F = function() {
|
|
7814
|
+
})(), e.pos += 2, F = (function() {
|
|
7815
7815
|
var ot, lt;
|
|
7816
7816
|
for (lt = [], f = ot = 0; 0 <= S ? ot < S : ot > S; f = 0 <= S ? ++ot : --ot) lt.push(e.readUInt16());
|
|
7817
7817
|
return lt;
|
|
7818
|
-
}(), g = function() {
|
|
7818
|
+
})(), g = (function() {
|
|
7819
7819
|
var ot, lt;
|
|
7820
7820
|
for (lt = [], f = ot = 0; 0 <= S ? ot < S : ot > S; f = 0 <= S ? ++ot : --ot) lt.push(e.readUInt16());
|
|
7821
7821
|
return lt;
|
|
7822
|
-
}(), y = function() {
|
|
7822
|
+
})(), y = (function() {
|
|
7823
7823
|
var ot, lt;
|
|
7824
7824
|
for (lt = [], f = ot = 0; 0 <= S ? ot < S : ot > S; f = 0 <= S ? ++ot : --ot) lt.push(e.readUInt16());
|
|
7825
7825
|
return lt;
|
|
7826
|
-
}(), u = (this.length - e.pos + this.offset) / 2, h = function() {
|
|
7826
|
+
})(), u = (this.length - e.pos + this.offset) / 2, h = (function() {
|
|
7827
7827
|
var ot, lt;
|
|
7828
7828
|
for (lt = [], f = ot = 0; 0 <= u ? ot < u : ot > u; f = 0 <= u ? ++ot : --ot) lt.push(e.readUInt16());
|
|
7829
7829
|
return lt;
|
|
7830
|
-
}(), f = _ = 0, Y = o.length; _ < Y; f = ++_) for (q = o[f], a = B = O = F[f]; O <= q ? B <= q : B >= q; a = O <= q ? ++B : --B) y[f] === 0 ? c = a + g[f] : (c = h[y[f] / 2 + (a - O) - (S - f)] || 0) !== 0 && (c += g[f]), this.codeMap[a] = 65535 & c;
|
|
7830
|
+
})(), f = _ = 0, Y = o.length; _ < Y; f = ++_) for (q = o[f], a = B = O = F[f]; O <= q ? B <= q : B >= q; a = O <= q ? ++B : --B) y[f] === 0 ? c = a + g[f] : (c = h[y[f] / 2 + (a - O) - (S - f)] || 0) !== 0 && (c += g[f]), this.codeMap[a] = 65535 & c;
|
|
7831
7831
|
}
|
|
7832
7832
|
e.pos = w;
|
|
7833
7833
|
}
|
|
7834
7834
|
return n.encode = function(e, r) {
|
|
7835
7835
|
var a, u, o, c, h, f, g, y, w, S, p, O, F, q, _, B, Y, ot, lt, wt, tt, z, nt, dt, P, k, W, D, st, it, ct, $, ht, pt, It, N, C, M, R, J, Q, et, rt, At, Nt, Ft;
|
|
7836
|
-
switch (D = new Bn(), c = Object.keys(e).sort(function(_t, Ut) {
|
|
7836
|
+
switch (D = new Bn(), c = Object.keys(e).sort((function(_t, Ut) {
|
|
7837
7837
|
return _t - Ut;
|
|
7838
|
-
}), r) {
|
|
7838
|
+
})), r) {
|
|
7839
7839
|
case "macroman":
|
|
7840
|
-
for (F = 0, q = function() {
|
|
7840
|
+
for (F = 0, q = (function() {
|
|
7841
7841
|
var _t = [];
|
|
7842
7842
|
for (O = 0; O < 256; ++O) _t.push(0);
|
|
7843
7843
|
return _t;
|
|
7844
|
-
}(), B = { 0: 0 }, o = {}, st = 0, ht = c.length; st < ht; st++) B[rt = e[u = c[st]]] == null && (B[rt] = ++F), o[u] = { old: e[u], new: B[e[u]] }, q[u] = B[e[u]];
|
|
7844
|
+
})(), B = { 0: 0 }, o = {}, st = 0, ht = c.length; st < ht; st++) B[rt = e[u = c[st]]] == null && (B[rt] = ++F), o[u] = { old: e[u], new: B[e[u]] }, q[u] = B[e[u]];
|
|
7845
7845
|
return D.writeUInt16(1), D.writeUInt16(0), D.writeUInt32(12), D.writeUInt16(0), D.writeUInt16(262), D.writeUInt16(0), D.write(q), { charMap: o, subtable: D.data, maxGlyphID: F + 1 };
|
|
7846
7846
|
case "unicode":
|
|
7847
7847
|
for (k = [], w = [], Y = 0, B = {}, a = {}, _ = g = null, it = 0, pt = c.length; it < pt; it++) B[lt = e[u = c[it]]] == null && (B[lt] = ++Y), a[u] = { old: lt, new: B[lt] }, h = B[lt] - u, _ != null && h === g || (_ && w.push(_), k.push(u), g = h), _ = u;
|
|
@@ -7861,7 +7861,7 @@ var hc = function(n) {
|
|
|
7861
7861
|
return { charMap: a, subtable: D.data, maxGlyphID: Y + 1 };
|
|
7862
7862
|
}
|
|
7863
7863
|
}, n;
|
|
7864
|
-
}(), zu = function(n) {
|
|
7864
|
+
})(), zu = (function(n) {
|
|
7865
7865
|
function e() {
|
|
7866
7866
|
return e.__super__.constructor.apply(this, arguments);
|
|
7867
7867
|
}
|
|
@@ -7873,33 +7873,33 @@ var hc = function(n) {
|
|
|
7873
7873
|
var u, o;
|
|
7874
7874
|
return a == null && (a = "macroman"), u = Lu.encode(r, a), (o = new Bn()).writeUInt16(0), o.writeUInt16(1), u.table = o.data.concat(u.subtable), u;
|
|
7875
7875
|
}, e;
|
|
7876
|
-
}(), fc = function(n) {
|
|
7876
|
+
})(), fc = (function(n) {
|
|
7877
7877
|
function e() {
|
|
7878
7878
|
return e.__super__.constructor.apply(this, arguments);
|
|
7879
7879
|
}
|
|
7880
7880
|
return tn(e, Rr), e.prototype.tag = "hhea", e.prototype.parse = function(r) {
|
|
7881
7881
|
return r.pos = this.offset, this.version = r.readInt(), this.ascender = r.readShort(), this.decender = r.readShort(), this.lineGap = r.readShort(), this.advanceWidthMax = r.readShort(), this.minLeftSideBearing = r.readShort(), this.minRightSideBearing = r.readShort(), this.xMaxExtent = r.readShort(), this.caretSlopeRise = r.readShort(), this.caretSlopeRun = r.readShort(), this.caretOffset = r.readShort(), r.pos += 8, this.metricDataFormat = r.readShort(), this.numberOfMetrics = r.readUInt16();
|
|
7882
7882
|
}, e;
|
|
7883
|
-
}(), dc = function(n) {
|
|
7883
|
+
})(), dc = (function(n) {
|
|
7884
7884
|
function e() {
|
|
7885
7885
|
return e.__super__.constructor.apply(this, arguments);
|
|
7886
7886
|
}
|
|
7887
7887
|
return tn(e, Rr), e.prototype.tag = "OS/2", e.prototype.parse = function(r) {
|
|
7888
|
-
if (r.pos = this.offset, this.version = r.readUInt16(), this.averageCharWidth = r.readShort(), this.weightClass = r.readUInt16(), this.widthClass = r.readUInt16(), this.type = r.readShort(), this.ySubscriptXSize = r.readShort(), this.ySubscriptYSize = r.readShort(), this.ySubscriptXOffset = r.readShort(), this.ySubscriptYOffset = r.readShort(), this.ySuperscriptXSize = r.readShort(), this.ySuperscriptYSize = r.readShort(), this.ySuperscriptXOffset = r.readShort(), this.ySuperscriptYOffset = r.readShort(), this.yStrikeoutSize = r.readShort(), this.yStrikeoutPosition = r.readShort(), this.familyClass = r.readShort(), this.panose = function() {
|
|
7888
|
+
if (r.pos = this.offset, this.version = r.readUInt16(), this.averageCharWidth = r.readShort(), this.weightClass = r.readUInt16(), this.widthClass = r.readUInt16(), this.type = r.readShort(), this.ySubscriptXSize = r.readShort(), this.ySubscriptYSize = r.readShort(), this.ySubscriptXOffset = r.readShort(), this.ySubscriptYOffset = r.readShort(), this.ySuperscriptXSize = r.readShort(), this.ySuperscriptYSize = r.readShort(), this.ySuperscriptXOffset = r.readShort(), this.ySuperscriptYOffset = r.readShort(), this.yStrikeoutSize = r.readShort(), this.yStrikeoutPosition = r.readShort(), this.familyClass = r.readShort(), this.panose = (function() {
|
|
7889
7889
|
var a, u;
|
|
7890
7890
|
for (u = [], a = 0; a < 10; ++a) u.push(r.readByte());
|
|
7891
7891
|
return u;
|
|
7892
|
-
}(), this.charRange = function() {
|
|
7892
|
+
})(), this.charRange = (function() {
|
|
7893
7893
|
var a, u;
|
|
7894
7894
|
for (u = [], a = 0; a < 4; ++a) u.push(r.readInt());
|
|
7895
7895
|
return u;
|
|
7896
|
-
}(), this.vendorID = r.readString(4), this.selection = r.readShort(), this.firstCharIndex = r.readShort(), this.lastCharIndex = r.readShort(), this.version > 0 && (this.ascent = r.readShort(), this.descent = r.readShort(), this.lineGap = r.readShort(), this.winAscent = r.readShort(), this.winDescent = r.readShort(), this.codePageRange = function() {
|
|
7896
|
+
})(), this.vendorID = r.readString(4), this.selection = r.readShort(), this.firstCharIndex = r.readShort(), this.lastCharIndex = r.readShort(), this.version > 0 && (this.ascent = r.readShort(), this.descent = r.readShort(), this.lineGap = r.readShort(), this.winAscent = r.readShort(), this.winDescent = r.readShort(), this.codePageRange = (function() {
|
|
7897
7897
|
var a, u;
|
|
7898
7898
|
for (u = [], a = 0; a < 2; a = ++a) u.push(r.readInt());
|
|
7899
7899
|
return u;
|
|
7900
|
-
}(), this.version > 1)) return this.xHeight = r.readShort(), this.capHeight = r.readShort(), this.defaultChar = r.readShort(), this.breakChar = r.readShort(), this.maxContext = r.readShort();
|
|
7900
|
+
})(), this.version > 1)) return this.xHeight = r.readShort(), this.capHeight = r.readShort(), this.defaultChar = r.readShort(), this.breakChar = r.readShort(), this.maxContext = r.readShort();
|
|
7901
7901
|
}, e;
|
|
7902
|
-
}(), pc = function(n) {
|
|
7902
|
+
})(), pc = (function(n) {
|
|
7903
7903
|
function e() {
|
|
7904
7904
|
return e.__super__.constructor.apply(this, arguments);
|
|
7905
7905
|
}
|
|
@@ -7925,9 +7925,9 @@ var hc = function(n) {
|
|
|
7925
7925
|
}).call(this);
|
|
7926
7926
|
}
|
|
7927
7927
|
}, e;
|
|
7928
|
-
}(), gc = function(n, e) {
|
|
7928
|
+
})(), gc = function(n, e) {
|
|
7929
7929
|
this.raw = n, this.length = n.length, this.platformID = e.platformID, this.encodingID = e.encodingID, this.languageID = e.languageID;
|
|
7930
|
-
}, mc = function(n) {
|
|
7930
|
+
}, mc = (function(n) {
|
|
7931
7931
|
function e() {
|
|
7932
7932
|
return e.__super__.constructor.apply(this, arguments);
|
|
7933
7933
|
}
|
|
@@ -7943,25 +7943,25 @@ var hc = function(n) {
|
|
|
7943
7943
|
}
|
|
7944
7944
|
return this.trademark = g[7], this.manufacturer = g[8], this.designer = g[9], this.description = g[10], this.vendorUrl = g[11], this.designerUrl = g[12], this.license = g[13], this.licenseUrl = g[14], this.preferredFamily = g[15], this.preferredSubfamily = g[17], this.compatibleFull = g[18], this.sampleText = g[19];
|
|
7945
7945
|
}, e;
|
|
7946
|
-
}(), vc = function(n) {
|
|
7946
|
+
})(), vc = (function(n) {
|
|
7947
7947
|
function e() {
|
|
7948
7948
|
return e.__super__.constructor.apply(this, arguments);
|
|
7949
7949
|
}
|
|
7950
7950
|
return tn(e, Rr), e.prototype.tag = "maxp", e.prototype.parse = function(r) {
|
|
7951
7951
|
return r.pos = this.offset, this.version = r.readInt(), this.numGlyphs = r.readUInt16(), this.maxPoints = r.readUInt16(), this.maxContours = r.readUInt16(), this.maxCompositePoints = r.readUInt16(), this.maxComponentContours = r.readUInt16(), this.maxZones = r.readUInt16(), this.maxTwilightPoints = r.readUInt16(), this.maxStorage = r.readUInt16(), this.maxFunctionDefs = r.readUInt16(), this.maxInstructionDefs = r.readUInt16(), this.maxStackElements = r.readUInt16(), this.maxSizeOfInstructions = r.readUInt16(), this.maxComponentElements = r.readUInt16(), this.maxComponentDepth = r.readUInt16();
|
|
7952
7952
|
}, e;
|
|
7953
|
-
}(), bc = function(n) {
|
|
7953
|
+
})(), bc = (function(n) {
|
|
7954
7954
|
function e() {
|
|
7955
7955
|
return e.__super__.constructor.apply(this, arguments);
|
|
7956
7956
|
}
|
|
7957
7957
|
return tn(e, Rr), e.prototype.tag = "hmtx", e.prototype.parse = function(r) {
|
|
7958
7958
|
var a, u, o, c, h, f, g;
|
|
7959
7959
|
for (r.pos = this.offset, this.metrics = [], a = 0, f = this.file.hhea.numberOfMetrics; 0 <= f ? a < f : a > f; a = 0 <= f ? ++a : --a) this.metrics.push({ advance: r.readUInt16(), lsb: r.readInt16() });
|
|
7960
|
-
for (o = this.file.maxp.numGlyphs - this.file.hhea.numberOfMetrics, this.leftSideBearings = function() {
|
|
7960
|
+
for (o = this.file.maxp.numGlyphs - this.file.hhea.numberOfMetrics, this.leftSideBearings = (function() {
|
|
7961
7961
|
var y, w;
|
|
7962
7962
|
for (w = [], a = y = 0; 0 <= o ? y < o : y > o; a = 0 <= o ? ++y : --y) w.push(r.readInt16());
|
|
7963
7963
|
return w;
|
|
7964
|
-
}(), this.widths = (function() {
|
|
7964
|
+
})(), this.widths = (function() {
|
|
7965
7965
|
var y, w, S, p;
|
|
7966
7966
|
for (p = [], y = 0, w = (S = this.metrics).length; y < w; y++) c = S[y], p.push(c.advance);
|
|
7967
7967
|
return p;
|
|
@@ -7970,7 +7970,7 @@ var hc = function(n) {
|
|
|
7970
7970
|
}, e.prototype.forGlyph = function(r) {
|
|
7971
7971
|
return r in this.metrics ? this.metrics[r] : { advance: this.metrics[this.metrics.length - 1].advance, lsb: this.leftSideBearings[r - this.metrics.length] };
|
|
7972
7972
|
}, e;
|
|
7973
|
-
}(), Uu = [].slice, yc = function(n) {
|
|
7973
|
+
})(), Uu = [].slice, yc = (function(n) {
|
|
7974
7974
|
function e() {
|
|
7975
7975
|
return e.__super__.constructor.apply(this, arguments);
|
|
7976
7976
|
}
|
|
@@ -7984,14 +7984,14 @@ var hc = function(n) {
|
|
|
7984
7984
|
for (h = [], c = [], f = 0, g = a.length; f < g; f++) o = r[a[f]], c.push(h.length), o && (h = h.concat(o.encode(u)));
|
|
7985
7985
|
return c.push(h.length), { table: h, offsets: c };
|
|
7986
7986
|
}, e;
|
|
7987
|
-
}(), wc = function() {
|
|
7987
|
+
})(), wc = (function() {
|
|
7988
7988
|
function n(e, r, a, u, o, c) {
|
|
7989
7989
|
this.raw = e, this.numberOfContours = r, this.xMin = a, this.yMin = u, this.xMax = o, this.yMax = c, this.compound = !1;
|
|
7990
7990
|
}
|
|
7991
7991
|
return n.prototype.encode = function() {
|
|
7992
7992
|
return this.raw.data;
|
|
7993
7993
|
}, n;
|
|
7994
|
-
}(), Lc = function() {
|
|
7994
|
+
})(), Lc = (function() {
|
|
7995
7995
|
function n(e, r, a, u, o) {
|
|
7996
7996
|
var c, h;
|
|
7997
7997
|
for (this.raw = e, this.xMin = r, this.yMin = a, this.xMax = u, this.yMax = o, this.compound = !0, this.glyphIDs = [], this.glyphOffsets = [], c = this.raw; h = c.readShort(), this.glyphOffsets.push(c.pos), this.glyphIDs.push(c.readUInt16()), 32 & h; ) c.pos += 1 & h ? 4 : 2, 128 & h ? c.pos += 8 : 64 & h ? c.pos += 4 : 8 & h && (c.pos += 2);
|
|
@@ -8001,7 +8001,7 @@ var hc = function(n) {
|
|
|
8001
8001
|
for (r = new Bn(Uu.call(this.raw.data)), e = 0, a = this.glyphIDs.length; e < a; ++e) r.pos = this.glyphOffsets[e];
|
|
8002
8002
|
return r.data;
|
|
8003
8003
|
}, n;
|
|
8004
|
-
}(), Nc = function(n) {
|
|
8004
|
+
})(), Nc = (function(n) {
|
|
8005
8005
|
function e() {
|
|
8006
8006
|
return e.__super__.constructor.apply(this, arguments);
|
|
8007
8007
|
}
|
|
@@ -8029,7 +8029,7 @@ var hc = function(n) {
|
|
|
8029
8029
|
for (var y = new Array(4 * u.length), w = 0; w < u.length; ++w) y[4 * w + 3] = 255 & u[w], y[4 * w + 2] = (65280 & u[w]) >> 8, y[4 * w + 1] = (16711680 & u[w]) >> 16, y[4 * w] = (4278190080 & u[w]) >> 24;
|
|
8030
8030
|
return y;
|
|
8031
8031
|
}, e;
|
|
8032
|
-
}(), Ac = function() {
|
|
8032
|
+
})(), Ac = (function() {
|
|
8033
8033
|
function n(e) {
|
|
8034
8034
|
this.font = e, this.subset = {}, this.unicodes = {}, this.next = 33;
|
|
8035
8035
|
}
|
|
@@ -8047,20 +8047,20 @@ var hc = function(n) {
|
|
|
8047
8047
|
var a, u, o, c, h, f, g, y, w, S, p, O, F, q, _;
|
|
8048
8048
|
for (u in a = zu.encode(this.generateCmap(), "unicode"), c = this.glyphsFor(e), p = { 0: 0 }, _ = a.charMap) p[(f = _[u]).old] = f.new;
|
|
8049
8049
|
for (O in S = a.maxGlyphID, c) O in p || (p[O] = S++);
|
|
8050
|
-
return y = function(B) {
|
|
8050
|
+
return y = (function(B) {
|
|
8051
8051
|
var Y, ot;
|
|
8052
8052
|
for (Y in ot = {}, B) ot[B[Y]] = Y;
|
|
8053
8053
|
return ot;
|
|
8054
|
-
}(p), w = Object.keys(y).sort(function(B, Y) {
|
|
8054
|
+
})(p), w = Object.keys(y).sort((function(B, Y) {
|
|
8055
8055
|
return B - Y;
|
|
8056
|
-
}), F = function() {
|
|
8056
|
+
})), F = (function() {
|
|
8057
8057
|
var B, Y, ot;
|
|
8058
8058
|
for (ot = [], B = 0, Y = w.length; B < Y; B++) h = w[B], ot.push(y[h]);
|
|
8059
8059
|
return ot;
|
|
8060
|
-
}(), o = this.font.glyf.encode(c, F, p), g = this.font.loca.encode(o.offsets, F), q = { cmap: this.font.cmap.raw(), glyf: o.table, loca: g, hmtx: this.font.hmtx.raw(), hhea: this.font.hhea.raw(), maxp: this.font.maxp.raw(), post: this.font.post.raw(), name: this.font.name.raw(), head: this.font.head.encode(r) }, this.font.os2.exists && (q["OS/2"] = this.font.os2.raw()), this.font.directory.encode(q);
|
|
8060
|
+
})(), o = this.font.glyf.encode(c, F, p), g = this.font.loca.encode(o.offsets, F), q = { cmap: this.font.cmap.raw(), glyf: o.table, loca: g, hmtx: this.font.hmtx.raw(), hhea: this.font.hhea.raw(), maxp: this.font.maxp.raw(), post: this.font.post.raw(), name: this.font.name.raw(), head: this.font.head.encode(r) }, this.font.os2.exists && (q["OS/2"] = this.font.os2.raw()), this.font.directory.encode(q);
|
|
8061
8061
|
}, n;
|
|
8062
|
-
}();
|
|
8063
|
-
Rt.API.PDFObject = function() {
|
|
8062
|
+
})();
|
|
8063
|
+
Rt.API.PDFObject = (function() {
|
|
8064
8064
|
var n;
|
|
8065
8065
|
function e() {
|
|
8066
8066
|
}
|
|
@@ -8068,11 +8068,11 @@ Rt.API.PDFObject = function() {
|
|
|
8068
8068
|
return (Array(a + 1).join("0") + r).slice(-a);
|
|
8069
8069
|
}, e.convert = function(r) {
|
|
8070
8070
|
var a, u, o, c;
|
|
8071
|
-
if (Array.isArray(r)) return "[" + function() {
|
|
8071
|
+
if (Array.isArray(r)) return "[" + (function() {
|
|
8072
8072
|
var h, f, g;
|
|
8073
8073
|
for (g = [], h = 0, f = r.length; h < f; h++) a = r[h], g.push(e.convert(a));
|
|
8074
8074
|
return g;
|
|
8075
|
-
}().join(" ") + "]";
|
|
8075
|
+
})().join(" ") + "]";
|
|
8076
8076
|
if (typeof r == "string") return "/" + r;
|
|
8077
8077
|
if (r != null && r.isString) return "(" + r + ")";
|
|
8078
8078
|
if (r instanceof Date) return "(D:" + n(r.getUTCFullYear(), 4) + n(r.getUTCMonth(), 2) + n(r.getUTCDate(), 2) + n(r.getUTCHours(), 2) + n(r.getUTCMinutes(), 2) + n(r.getUTCSeconds(), 2) + "Z)";
|
|
@@ -8083,7 +8083,7 @@ Rt.API.PDFObject = function() {
|
|
|
8083
8083
|
}
|
|
8084
8084
|
return "" + r;
|
|
8085
8085
|
}, e;
|
|
8086
|
-
}();
|
|
8086
|
+
})();
|
|
8087
8087
|
const xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8088
8088
|
__proto__: null,
|
|
8089
8089
|
AcroForm: ec,
|