|
@@ -13116,8 +13116,8 @@ var _UnsupportedManager = function UnsupportedManagerClosure() {
|
|
|
}();
|
|
|
var version, build;
|
|
|
{
|
|
|
- exports.version = version = '1.8.542';
|
|
|
- exports.build = build = '26be1df5';
|
|
|
+ exports.version = version = '1.8.548';
|
|
|
+ exports.build = build = 'ca3c08f1';
|
|
|
}
|
|
|
exports.getDocument = getDocument;
|
|
|
exports.LoopbackPort = LoopbackPort;
|
|
@@ -13206,6 +13206,58 @@ var SVGGraphics = function SVGGraphics() {
|
|
|
}
|
|
|
return b << 16 | a;
|
|
|
}
|
|
|
+ function deflateSync(literals) {
|
|
|
+ if (!(0, _util.isNodeJS)()) {
|
|
|
+ return deflateSyncUncompressed(literals);
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ var input;
|
|
|
+ if (parseInt(process.versions.node) >= 8) {
|
|
|
+ input = literals;
|
|
|
+ } else {
|
|
|
+ input = new Buffer(literals);
|
|
|
+ }
|
|
|
+ var output = require('zlib').deflateSync(input, { level: 9 });
|
|
|
+ return output instanceof Uint8Array ? output : new Uint8Array(output);
|
|
|
+ } catch (e) {
|
|
|
+ (0, _util.warn)('Not compressing PNG because zlib.deflateSync is unavailable: ' + e);
|
|
|
+ }
|
|
|
+ return deflateSyncUncompressed(literals);
|
|
|
+ }
|
|
|
+ function deflateSyncUncompressed(literals) {
|
|
|
+ var len = literals.length;
|
|
|
+ var maxBlockLength = 0xFFFF;
|
|
|
+ var deflateBlocks = Math.ceil(len / maxBlockLength);
|
|
|
+ var idat = new Uint8Array(2 + len + deflateBlocks * 5 + 4);
|
|
|
+ var pi = 0;
|
|
|
+ idat[pi++] = 0x78;
|
|
|
+ idat[pi++] = 0x9c;
|
|
|
+ var pos = 0;
|
|
|
+ while (len > maxBlockLength) {
|
|
|
+ idat[pi++] = 0x00;
|
|
|
+ idat[pi++] = 0xff;
|
|
|
+ idat[pi++] = 0xff;
|
|
|
+ idat[pi++] = 0x00;
|
|
|
+ idat[pi++] = 0x00;
|
|
|
+ idat.set(literals.subarray(pos, pos + maxBlockLength), pi);
|
|
|
+ pi += maxBlockLength;
|
|
|
+ pos += maxBlockLength;
|
|
|
+ len -= maxBlockLength;
|
|
|
+ }
|
|
|
+ idat[pi++] = 0x01;
|
|
|
+ idat[pi++] = len & 0xff;
|
|
|
+ idat[pi++] = len >> 8 & 0xff;
|
|
|
+ idat[pi++] = ~len & 0xffff & 0xff;
|
|
|
+ idat[pi++] = (~len & 0xffff) >> 8 & 0xff;
|
|
|
+ idat.set(literals.subarray(pos), pi);
|
|
|
+ pi += literals.length - pos;
|
|
|
+ var adler = adler32(literals, 0, literals.length);
|
|
|
+ idat[pi++] = adler >> 24 & 0xff;
|
|
|
+ idat[pi++] = adler >> 16 & 0xff;
|
|
|
+ idat[pi++] = adler >> 8 & 0xff;
|
|
|
+ idat[pi++] = adler & 0xff;
|
|
|
+ return idat;
|
|
|
+ }
|
|
|
function encode(imgData, kind, forceDataSchema) {
|
|
|
var width = imgData.width;
|
|
|
var height = imgData.height;
|
|
@@ -13250,37 +13302,7 @@ var SVGGraphics = function SVGGraphics() {
|
|
|
}
|
|
|
}
|
|
|
var ihdr = new Uint8Array([width >> 24 & 0xff, width >> 16 & 0xff, width >> 8 & 0xff, width & 0xff, height >> 24 & 0xff, height >> 16 & 0xff, height >> 8 & 0xff, height & 0xff, bitDepth, colorType, 0x00, 0x00, 0x00]);
|
|
|
- var len = literals.length;
|
|
|
- var maxBlockLength = 0xFFFF;
|
|
|
- var deflateBlocks = Math.ceil(len / maxBlockLength);
|
|
|
- var idat = new Uint8Array(2 + len + deflateBlocks * 5 + 4);
|
|
|
- var pi = 0;
|
|
|
- idat[pi++] = 0x78;
|
|
|
- idat[pi++] = 0x9c;
|
|
|
- var pos = 0;
|
|
|
- while (len > maxBlockLength) {
|
|
|
- idat[pi++] = 0x00;
|
|
|
- idat[pi++] = 0xff;
|
|
|
- idat[pi++] = 0xff;
|
|
|
- idat[pi++] = 0x00;
|
|
|
- idat[pi++] = 0x00;
|
|
|
- idat.set(literals.subarray(pos, pos + maxBlockLength), pi);
|
|
|
- pi += maxBlockLength;
|
|
|
- pos += maxBlockLength;
|
|
|
- len -= maxBlockLength;
|
|
|
- }
|
|
|
- idat[pi++] = 0x01;
|
|
|
- idat[pi++] = len & 0xff;
|
|
|
- idat[pi++] = len >> 8 & 0xff;
|
|
|
- idat[pi++] = ~len & 0xffff & 0xff;
|
|
|
- idat[pi++] = (~len & 0xffff) >> 8 & 0xff;
|
|
|
- idat.set(literals.subarray(pos), pi);
|
|
|
- pi += literals.length - pos;
|
|
|
- var adler = adler32(literals, 0, literals.length);
|
|
|
- idat[pi++] = adler >> 24 & 0xff;
|
|
|
- idat[pi++] = adler >> 16 & 0xff;
|
|
|
- idat[pi++] = adler >> 8 & 0xff;
|
|
|
- idat[pi++] = adler & 0xff;
|
|
|
+ var idat = deflateSync(literals);
|
|
|
var pngLength = PNG_HEADER.length + CHUNK_WRAPPER_SIZE * 3 + ihdr.length + idat.length;
|
|
|
var data = new Uint8Array(pngLength);
|
|
|
var offset = 0;
|
|
@@ -28605,8 +28627,8 @@ if (!_util.globalScope.PDFJS) {
|
|
|
}
|
|
|
var PDFJS = _util.globalScope.PDFJS;
|
|
|
{
|
|
|
- PDFJS.version = '1.8.542';
|
|
|
- PDFJS.build = '26be1df5';
|
|
|
+ PDFJS.version = '1.8.548';
|
|
|
+ PDFJS.build = 'ca3c08f1';
|
|
|
}
|
|
|
PDFJS.pdfBug = false;
|
|
|
if (PDFJS.verbosity !== undefined) {
|
|
@@ -47232,8 +47254,8 @@ exports.TilingPattern = TilingPattern;
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
-var pdfjsVersion = '1.8.542';
|
|
|
-var pdfjsBuild = '26be1df5';
|
|
|
+var pdfjsVersion = '1.8.548';
|
|
|
+var pdfjsBuild = 'ca3c08f1';
|
|
|
var pdfjsSharedUtil = __w_pdfjs_require__(0);
|
|
|
var pdfjsDisplayGlobal = __w_pdfjs_require__(25);
|
|
|
var pdfjsDisplayAPI = __w_pdfjs_require__(10);
|