From c0c02a842703e1f338f915f5172404e93dcd2a26 Mon Sep 17 00:00:00 2001 From: Ryan VanderMeulen Date: Thu, 2 Jan 2020 18:20:07 +0000 Subject: [PATCH] Bug 1606634 - Update pdf.js to version 2.4.254. r=bdahl Differential Revision: https://phabricator.services.mozilla.com/D58521 --HG-- extra : moz-landing-system : lando --- browser/extensions/pdfjs/README.mozilla | 4 +- browser/extensions/pdfjs/content/build/pdf.js | 1379 +- .../pdfjs/content/build/pdf.worker.js | 23994 ++++++++-------- .../extensions/pdfjs/content/web/debugger.js | 301 +- .../extensions/pdfjs/content/web/viewer.css | 367 +- .../extensions/pdfjs/content/web/viewer.js | 3028 +- browser/extensions/pdfjs/moz.yaml | 2 +- 7 files changed, 14572 insertions(+), 14503 deletions(-) diff --git a/browser/extensions/pdfjs/README.mozilla b/browser/extensions/pdfjs/README.mozilla index e40446377daf..bbb6a59d6f05 100644 --- a/browser/extensions/pdfjs/README.mozilla +++ b/browser/extensions/pdfjs/README.mozilla @@ -1,5 +1,5 @@ This is the PDF.js project output, https://github.com/mozilla/pdf.js -Current extension version is: 2.4.176 +Current extension version is: 2.4.254 -Taken from upstream commit: af4ba75f +Taken from upstream commit: b833f843 diff --git a/browser/extensions/pdfjs/content/build/pdf.js b/browser/extensions/pdfjs/content/build/pdf.js index bb8ba8b7b141..7f32d49a51ee 100644 --- a/browser/extensions/pdfjs/content/build/pdf.js +++ b/browser/extensions/pdfjs/content/build/pdf.js @@ -123,24 +123,24 @@ return /******/ (function(modules) { // webpackBootstrap "use strict"; -var pdfjsVersion = '2.4.176'; -var pdfjsBuild = 'af4ba75f'; +var pdfjsVersion = '2.4.254'; +var pdfjsBuild = 'b833f843'; var pdfjsSharedUtil = __w_pdfjs_require__(1); -var pdfjsDisplayAPI = __w_pdfjs_require__(4); +var pdfjsDisplayAPI = __w_pdfjs_require__(3); var pdfjsDisplayTextLayer = __w_pdfjs_require__(16); var pdfjsDisplayAnnotationLayer = __w_pdfjs_require__(17); -var pdfjsDisplayDisplayUtils = __w_pdfjs_require__(5); +var pdfjsDisplayDisplayUtils = __w_pdfjs_require__(4); var pdfjsDisplaySVG = __w_pdfjs_require__(18); -let pdfjsDisplayWorkerOptions = __w_pdfjs_require__(10); +let pdfjsDisplayWorkerOptions = __w_pdfjs_require__(9); -let pdfjsDisplayAPICompatibility = __w_pdfjs_require__(7); +let pdfjsDisplayAPICompatibility = __w_pdfjs_require__(6); ; exports.build = pdfjsDisplayAPI.build; @@ -168,7 +168,6 @@ exports.createObjectURL = pdfjsSharedUtil.createObjectURL; exports.removeNullCharacters = pdfjsSharedUtil.removeNullCharacters; exports.shadow = pdfjsSharedUtil.shadow; exports.Util = pdfjsSharedUtil.Util; -exports.ReadableStream = pdfjsSharedUtil.ReadableStream; exports.RenderingCancelledException = pdfjsDisplayDisplayUtils.RenderingCancelledException; exports.getFilenameFromUrl = pdfjsDisplayDisplayUtils.getFilenameFromUrl; exports.LinkTarget = pdfjsDisplayDisplayUtils.LinkTarget; @@ -220,26 +219,18 @@ exports.stringToUTF8String = stringToUTF8String; exports.utf8StringToString = utf8StringToString; exports.warn = warn; exports.unreachable = unreachable; -Object.defineProperty(exports, "ReadableStream", { - enumerable: true, - get: function () { - return _streams_polyfill.ReadableStream; - } -}); exports.createObjectURL = exports.FormatError = exports.Util = exports.UnknownErrorException = exports.UnexpectedResponseException = exports.TextRenderingMode = exports.StreamType = exports.PermissionFlag = exports.PasswordResponses = exports.PasswordException = exports.NativeImageDecoding = exports.MissingPDFException = exports.InvalidPDFException = exports.AbortException = exports.CMapCompressionType = exports.ImageKind = exports.FontType = exports.AnnotationType = exports.AnnotationStateModelType = exports.AnnotationReviewState = exports.AnnotationReplyType = exports.AnnotationMarkedState = exports.AnnotationFlag = exports.AnnotationFieldFlag = exports.AnnotationBorderStyleType = exports.UNSUPPORTED_FEATURES = exports.VerbosityLevel = exports.OPS = exports.IDENTITY_MATRIX = exports.FONT_IDENTITY_MATRIX = exports.BaseException = void 0; __w_pdfjs_require__(2); -var _streams_polyfill = __w_pdfjs_require__(3); - const IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0]; exports.IDENTITY_MATRIX = IDENTITY_MATRIX; const FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0]; exports.FONT_IDENTITY_MATRIX = FONT_IDENTITY_MATRIX; const NativeImageDecoding = { - NONE: 'none', - DECODE: 'decode', - DISPLAY: 'display' + NONE: "none", + DECODE: "decode", + DISPLAY: "display" }; exports.NativeImageDecoding = NativeImageDecoding; const PermissionFlag = { @@ -302,26 +293,26 @@ const AnnotationType = { }; exports.AnnotationType = AnnotationType; const AnnotationStateModelType = { - MARKED: 'Marked', - REVIEW: 'Review' + MARKED: "Marked", + REVIEW: "Review" }; exports.AnnotationStateModelType = AnnotationStateModelType; const AnnotationMarkedState = { - MARKED: 'Marked', - UNMARKED: 'Unmarked' + MARKED: "Marked", + UNMARKED: "Unmarked" }; exports.AnnotationMarkedState = AnnotationMarkedState; const AnnotationReviewState = { - ACCEPTED: 'Accepted', - REJECTED: 'Rejected', - CANCELLED: 'Cancelled', - COMPLETED: 'Completed', - NONE: 'None' + ACCEPTED: "Accepted", + REJECTED: "Rejected", + CANCELLED: "Cancelled", + COMPLETED: "Completed", + NONE: "None" }; exports.AnnotationReviewState = AnnotationReviewState; const AnnotationReplyType = { - GROUP: 'Group', - REPLY: 'R' + GROUP: "Group", + REPLY: "R" }; exports.AnnotationReplyType = AnnotationReplyType; const AnnotationFlag = { @@ -368,30 +359,30 @@ const AnnotationBorderStyleType = { }; exports.AnnotationBorderStyleType = AnnotationBorderStyleType; const StreamType = { - UNKNOWN: 'UNKNOWN', - FLATE: 'FLATE', - LZW: 'LZW', - DCT: 'DCT', - JPX: 'JPX', - JBIG: 'JBIG', - A85: 'A85', - AHX: 'AHX', - CCF: 'CCF', - RLX: 'RLX' + UNKNOWN: "UNKNOWN", + FLATE: "FLATE", + LZW: "LZW", + DCT: "DCT", + JPX: "JPX", + JBIG: "JBIG", + A85: "A85", + AHX: "AHX", + CCF: "CCF", + RLX: "RLX" }; exports.StreamType = StreamType; const FontType = { - UNKNOWN: 'UNKNOWN', - TYPE1: 'TYPE1', - TYPE1C: 'TYPE1C', - CIDFONTTYPE0: 'CIDFONTTYPE0', - CIDFONTTYPE0C: 'CIDFONTTYPE0C', - TRUETYPE: 'TRUETYPE', - CIDFONTTYPE2: 'CIDFONTTYPE2', - TYPE3: 'TYPE3', - OPENTYPE: 'OPENTYPE', - TYPE0: 'TYPE0', - MMTYPE1: 'MMTYPE1' + UNKNOWN: "UNKNOWN", + TYPE1: "TYPE1", + TYPE1C: "TYPE1C", + CIDFONTTYPE0: "CIDFONTTYPE0", + CIDFONTTYPE0C: "CIDFONTTYPE0C", + TRUETYPE: "TRUETYPE", + CIDFONTTYPE2: "CIDFONTTYPE2", + TYPE3: "TYPE3", + OPENTYPE: "OPENTYPE", + TYPE0: "TYPE0", + MMTYPE1: "MMTYPE1" }; exports.FontType = FontType; const VerbosityLevel = { @@ -501,12 +492,12 @@ const OPS = { }; exports.OPS = OPS; const UNSUPPORTED_FEATURES = { - unknown: 'unknown', - forms: 'forms', - javaScript: 'javaScript', - smask: 'smask', - shadingPattern: 'shadingPattern', - font: 'font' + unknown: "unknown", + forms: "forms", + javaScript: "javaScript", + smask: "smask", + shadingPattern: "shadingPattern", + font: "font" }; exports.UNSUPPORTED_FEATURES = UNSUPPORTED_FEATURES; const PasswordResponses = { @@ -554,7 +545,7 @@ function isSameOrigin(baseUrl, otherUrl) { try { base = new URL(baseUrl); - if (!base.origin || base.origin === 'null') { + if (!base.origin || base.origin === "null") { return false; } } catch (e) { @@ -571,11 +562,11 @@ function _isValidProtocol(url) { } switch (url.protocol) { - case 'http:': - case 'https:': - case 'ftp:': - case 'mailto:': - case 'tel:': + case "http:": + case "https:": + case "ftp:": + case "mailto:": + case "tel:": return true; default: @@ -612,7 +603,7 @@ function shadow(obj, prop, value) { const BaseException = function BaseExceptionClosure() { function BaseException(message) { if (this.constructor === BaseException) { - unreachable('Cannot initialize BaseException.'); + unreachable("Cannot initialize BaseException."); } this.message = message; @@ -674,16 +665,16 @@ exports.AbortException = AbortException; const NullCharactersRegExp = /\x00/g; function removeNullCharacters(str) { - if (typeof str !== 'string') { - warn('The argument for removeNullCharacters must be a string.'); + if (typeof str !== "string") { + warn("The argument for removeNullCharacters must be a string."); return str; } - return str.replace(NullCharactersRegExp, ''); + return str.replace(NullCharactersRegExp, ""); } function bytesToString(bytes) { - assert(bytes !== null && typeof bytes === 'object' && bytes.length !== undefined, 'Invalid argument for bytesToString'); + assert(bytes !== null && typeof bytes === "object" && bytes.length !== undefined, "Invalid argument for bytesToString"); const length = bytes.length; const MAX_ARGUMENT_COUNT = 8192; @@ -699,16 +690,16 @@ function bytesToString(bytes) { strBuf.push(String.fromCharCode.apply(null, chunk)); } - return strBuf.join(''); + return strBuf.join(""); } function stringToBytes(str) { - assert(typeof str === 'string', 'Invalid argument for stringToBytes'); + assert(typeof str === "string", "Invalid argument for stringToBytes"); const length = str.length; const bytes = new Uint8Array(length); for (let i = 0; i < length; ++i) { - bytes[i] = str.charCodeAt(i) & 0xFF; + bytes[i] = str.charCodeAt(i) & 0xff; } return bytes; @@ -743,7 +734,7 @@ function arraysToBytes(arr) { let item = arr[i]; if (!(item instanceof Uint8Array)) { - if (typeof item === 'string') { + if (typeof item === "string") { item = stringToBytes(item); } else { item = new Uint8Array(item); @@ -791,21 +782,21 @@ function isLittleEndian() { function isEvalSupported() { try { - new Function(''); + new Function(""); return true; } catch (e) { return false; } } -const rgbBuf = ['rgb(', 0, ',', 0, ',', 0, ')']; +const rgbBuf = ["rgb(", 0, ",", 0, ",", 0, ")"]; class Util { static makeCssRgb(r, g, b) { rgbBuf[1] = r; rgbBuf[3] = g; rgbBuf[5] = b; - return rgbBuf.join(''); + return rgbBuf.join(""); } static transform(m1, m2) { @@ -908,11 +899,11 @@ function stringToPDFString(str) { const length = str.length, strBuf = []; - if (str[0] === '\xFE' && str[1] === '\xFF') { + if (str[0] === "\xFE" && str[1] === "\xFF") { for (let i = 2; i < length; i += 2) { strBuf.push(String.fromCharCode(str.charCodeAt(i) << 8 | str.charCodeAt(i + 1))); } - } else if (str[0] === '\xFF' && str[1] === '\xFE') { + } else if (str[0] === "\xFF" && str[1] === "\xFE") { for (let i = 2; i < length; i += 2) { strBuf.push(String.fromCharCode(str.charCodeAt(i + 1) << 8 | str.charCodeAt(i))); } @@ -923,7 +914,7 @@ function stringToPDFString(str) { } } - return strBuf.join(''); + return strBuf.join(""); } function stringToUTF8String(str) { @@ -943,19 +934,19 @@ function isEmptyObj(obj) { } function isBool(v) { - return typeof v === 'boolean'; + return typeof v === "boolean"; } function isNum(v) { - return typeof v === 'number'; + return typeof v === "number"; } function isString(v) { - return typeof v === 'string'; + return typeof v === "string"; } function isArrayBuffer(v) { - return typeof v === 'object' && v !== null && v.byteLength !== undefined; + return typeof v === "object" && v !== null && v.byteLength !== undefined; } function isArrayEqual(arr1, arr2) { @@ -969,13 +960,13 @@ function isArrayEqual(arr1, arr2) { } function isSpace(ch) { - return ch === 0x20 || ch === 0x09 || ch === 0x0D || ch === 0x0A; + return ch === 0x20 || ch === 0x09 || ch === 0x0d || ch === 0x0a; } function createPromiseCapability() { const capability = Object.create(null); let isSettled = false; - Object.defineProperty(capability, 'settled', { + Object.defineProperty(capability, "settled", { get() { return isSettled; } @@ -996,7 +987,7 @@ function createPromiseCapability() { } const createObjectURL = function createObjectURLClosure() { - const digits = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; + const digits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; return function createObjectURL(data, contentType, forceDataSchema = false) { if (!forceDataSchema && URL.createObjectURL) { const blob = new Blob([data], { @@ -1008,13 +999,13 @@ const createObjectURL = function createObjectURLClosure() { let buffer = `data:${contentType};base64,`; for (let i = 0, ii = data.length; i < ii; i += 3) { - const b1 = data[i] & 0xFF; - const b2 = data[i + 1] & 0xFF; - const b3 = data[i + 2] & 0xFF; + const b1 = data[i] & 0xff; + const b2 = data[i + 1] & 0xff; + const b3 = data[i + 2] & 0xff; const d1 = b1 >> 2, d2 = (b1 & 3) << 4 | b2 >> 4; - const d3 = i + 1 < ii ? (b2 & 0xF) << 2 | b3 >> 6 : 64; - const d4 = i + 2 < ii ? b3 & 0x3F : 64; + const d3 = i + 1 < ii ? (b2 & 0xf) << 2 | b3 >> 6 : 64; + const d4 = i + 2 < ii ? b3 & 0x3f : 64; buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4]; } @@ -1040,21 +1031,6 @@ exports.createObjectURL = createObjectURL; "use strict"; -{ - if (typeof ReadableStream === 'undefined') { - throw new Error('Please enable ReadableStream support by resetting the ' + '"javascript.options.streams" preference to "true" in about:config.'); - } - - exports.ReadableStream = ReadableStream; -} - -/***/ }), -/* 4 */ -/***/ (function(module, exports, __w_pdfjs_require__) { - -"use strict"; - - Object.defineProperty(exports, "__esModule", { value: true }); @@ -1064,15 +1040,17 @@ exports.build = exports.version = exports.PDFPageProxy = exports.PDFDocumentProx var _util = __w_pdfjs_require__(1); -var _display_utils = __w_pdfjs_require__(5); +var _display_utils = __w_pdfjs_require__(4); -var _font_loader = __w_pdfjs_require__(6); +var _font_loader = __w_pdfjs_require__(5); -var _api_compatibility = __w_pdfjs_require__(7); +var _api_compatibility = __w_pdfjs_require__(6); -var _canvas = __w_pdfjs_require__(8); +var _canvas = __w_pdfjs_require__(7); -var _worker_options = __w_pdfjs_require__(10); +var _worker_options = __w_pdfjs_require__(9); + +var _is_node = __w_pdfjs_require__(10); var _message_handler = __w_pdfjs_require__(11); @@ -1084,10 +1062,6 @@ var _webgl = __w_pdfjs_require__(15); const DEFAULT_RANGE_CHUNK_SIZE = 65536; const RENDERING_CANCELLED_TIMEOUT = 100; -let isWorkerDisabled = false; -let fallbackWorkerSrc; -let fakeWorkerFilesLoader = null; -; let createPDFNetworkStream; function setPDFNetworkStreamFactory(pdfNetworkStreamFactory) { @@ -1098,7 +1072,7 @@ function getDocument(src) { const task = new PDFDocumentLoadingTask(); let source; - if (typeof src === 'string') { + if (typeof src === "string") { source = { url: src }; @@ -1111,12 +1085,12 @@ function getDocument(src) { range: src }; } else { - if (typeof src !== 'object') { - throw new Error('Invalid parameter in getDocument, ' + 'need either Uint8Array, string or a parameter object'); + if (typeof src !== "object") { + throw new Error("Invalid parameter in getDocument, " + "need either Uint8Array, string or a parameter object"); } if (!src.url && !src.data && !src.range) { - throw new Error('Invalid parameter object: need either .data, .range or .url'); + throw new Error("Invalid parameter object: need either .data, .range or .url"); } source = src; @@ -1127,26 +1101,26 @@ function getDocument(src) { worker = null; for (const key in source) { - if (key === 'url' && typeof window !== 'undefined') { + if (key === "url" && typeof window !== "undefined") { params[key] = new URL(source[key], window.location).href; continue; - } else if (key === 'range') { + } else if (key === "range") { rangeTransport = source[key]; continue; - } else if (key === 'worker') { + } else if (key === "worker") { worker = source[key]; continue; - } else if (key === 'data' && !(source[key] instanceof Uint8Array)) { + } else if (key === "data" && !(source[key] instanceof Uint8Array)) { const pdfBytes = source[key]; - if (typeof pdfBytes === 'string') { + if (typeof pdfBytes === "string") { params[key] = (0, _util.stringToBytes)(pdfBytes); - } else if (typeof pdfBytes === 'object' && pdfBytes !== null && !isNaN(pdfBytes.length)) { + } else if (typeof pdfBytes === "object" && pdfBytes !== null && !isNaN(pdfBytes.length)) { params[key] = new Uint8Array(pdfBytes); } else if ((0, _util.isArrayBuffer)(pdfBytes)) { params[key] = new Uint8Array(pdfBytes); } else { - throw new Error('Invalid PDF binary data: either typed array, ' + 'string or array-like object is expected in the ' + 'data property.'); + throw new Error("Invalid PDF binary data: either typed array, " + "string or array-like object is expected in the " + "data property."); } continue; @@ -1169,27 +1143,27 @@ function getDocument(src) { params.maxImageSize = -1; } - if (typeof params.isEvalSupported !== 'boolean') { + if (typeof params.isEvalSupported !== "boolean") { params.isEvalSupported = true; } - if (typeof params.disableFontFace !== 'boolean') { + if (typeof params.disableFontFace !== "boolean") { params.disableFontFace = _api_compatibility.apiCompatibilityParams.disableFontFace || false; } - if (typeof params.disableRange !== 'boolean') { + if (typeof params.disableRange !== "boolean") { params.disableRange = false; } - if (typeof params.disableStream !== 'boolean') { + if (typeof params.disableStream !== "boolean") { params.disableStream = false; } - if (typeof params.disableAutoFetch !== 'boolean') { + if (typeof params.disableAutoFetch !== "boolean") { params.disableAutoFetch = false; } - if (typeof params.disableCreateObjectURL !== 'boolean') { + if (typeof params.disableCreateObjectURL !== "boolean") { params.disableCreateObjectURL = _api_compatibility.apiCompatibilityParams.disableCreateObjectURL || false; } @@ -1207,12 +1181,12 @@ function getDocument(src) { const docId = task.docId; worker.promise.then(function () { if (task.destroyed) { - throw new Error('Loading aborted'); + throw new Error("Loading aborted"); } return _fetchDocument(worker, params, rangeTransport, docId).then(function (workerId) { if (task.destroyed) { - throw new Error('Loading aborted'); + throw new Error("Loading aborted"); } let networkStream; @@ -1241,7 +1215,7 @@ function getDocument(src) { messageHandler.postMessageTransfers = worker.postMessageTransfers; const transport = new WorkerTransport(messageHandler, task, networkStream, params); task._transport = transport; - messageHandler.send('Ready', null); + messageHandler.send("Ready", null); }); }).catch(task._capability.reject); return task; @@ -1249,7 +1223,7 @@ function getDocument(src) { function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { if (worker.destroyed) { - return Promise.reject(new Error('Worker was destroyed')); + return Promise.reject(new Error("Worker was destroyed")); } if (pdfDataRangeTransport) { @@ -1258,9 +1232,9 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { source.progressiveDone = pdfDataRangeTransport.progressiveDone; } - return worker.messageHandler.sendWithPromise('GetDocRequest', { + return worker.messageHandler.sendWithPromise("GetDocRequest", { docId, - apiVersion: '2.4.176', + apiVersion: '2.4.254', source: { data: source.data, url: source.url, @@ -1279,7 +1253,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { isEvalSupported: source.isEvalSupported }).then(function (workerId) { if (worker.destroyed) { - throw new Error('Worker was destroyed'); + throw new Error("Worker was destroyed"); } return workerId; @@ -1294,7 +1268,7 @@ const PDFDocumentLoadingTask = function PDFDocumentLoadingTaskClosure() { this._capability = (0, _util.createPromiseCapability)(); this._transport = null; this._worker = null; - this.docId = 'd' + nextDocumentId++; + this.docId = "d" + nextDocumentId++; this.destroyed = false; this.onPassword = null; this.onProgress = null; @@ -1320,7 +1294,7 @@ const PDFDocumentLoadingTask = function PDFDocumentLoadingTaskClosure() { } then(onFulfilled, onRejected) { - throw new Error('Removed API method: ' + 'PDFDocumentLoadingTask.then, use the `promise` getter instead.'); + throw new Error("Removed API method: " + "PDFDocumentLoadingTask.then, use the `promise` getter instead."); } } @@ -1391,7 +1365,7 @@ class PDFDataRangeTransport { } requestDataRange(begin, end) { - (0, _util.unreachable)('Abstract method PDFDataRangeTransport.requestDataRange'); + (0, _util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange"); } abort() {} @@ -1568,7 +1542,7 @@ class PDFPageProxy { render({ canvasContext, viewport, - intent = 'display', + intent = "display", enableWebGL = false, renderInteractiveForms = false, transform = null, @@ -1577,10 +1551,10 @@ class PDFPageProxy { background = null }) { if (this._stats) { - this._stats.time('Overall'); + this._stats.time("Overall"); } - const renderingIntent = intent === 'print' ? 'print' : 'display'; + const renderingIntent = intent === "print" ? "print" : "display"; this.pendingCleanup = false; if (!this.intentStates[renderingIntent]) { @@ -1608,7 +1582,7 @@ class PDFPageProxy { }; if (this._stats) { - this._stats.time('Page Request'); + this._stats.time("Page Request"); } this._pumpOperatorList({ @@ -1625,7 +1599,7 @@ class PDFPageProxy { intentState.renderTasks.splice(i, 1); } - if (this.cleanupAfterRender || renderingIntent === 'print') { + if (this.cleanupAfterRender || renderingIntent === "print") { this.pendingCleanup = true; } @@ -1643,9 +1617,9 @@ class PDFPageProxy { } if (this._stats) { - this._stats.timeEnd('Rendering'); + this._stats.timeEnd("Rendering"); - this._stats.timeEnd('Overall'); + this._stats.timeEnd("Overall"); } }; @@ -1664,7 +1638,7 @@ class PDFPageProxy { pageNumber: this.pageNumber, canvasFactory: canvasFactoryInstance, webGLContext, - useRequestAnimationFrame: renderingIntent !== 'print', + useRequestAnimationFrame: renderingIntent !== "print", pdfBug: this._pdfBug }); @@ -1681,7 +1655,7 @@ class PDFPageProxy { } if (this._stats) { - this._stats.time('Rendering'); + this._stats.time("Rendering"); } internalRenderTask.initializeGraphics(transparency); @@ -1702,7 +1676,7 @@ class PDFPageProxy { } } - const renderingIntent = 'oplist'; + const renderingIntent = "oplist"; if (!this.intentStates[renderingIntent]) { this.intentStates[renderingIntent] = Object.create(null); @@ -1724,7 +1698,7 @@ class PDFPageProxy { }; if (this._stats) { - this._stats.time('Page Request'); + this._stats.time("Page Request"); } this._pumpOperatorList({ @@ -1741,7 +1715,7 @@ class PDFPageProxy { disableCombineTextItems = false } = {}) { const TEXT_CONTENT_CHUNK_SIZE = 100; - return this._transport.messageHandler.sendWithStream('GetTextContent', { + return this._transport.messageHandler.sendWithStream("GetTextContent", { pageIndex: this.pageNumber - 1, normalizeWhitespace: normalizeWhitespace === true, combineTextItems: disableCombineTextItems !== true @@ -1792,11 +1766,11 @@ class PDFPageProxy { this._abortOperatorList({ intentState, - reason: new Error('Page was destroyed.'), + reason: new Error("Page was destroyed."), force: true }); - if (intent === 'oplist') { + if (intent === "oplist") { return; } @@ -1847,7 +1821,7 @@ class PDFPageProxy { } if (this._stats) { - this._stats.timeEnd('Page Request'); + this._stats.timeEnd("Page Request"); } if (intentState.displayReadyCapability) { @@ -1875,7 +1849,7 @@ class PDFPageProxy { _pumpOperatorList(args) { (0, _util.assert)(args.intent, 'PDFPageProxy._pumpOperatorList: Expected "intent" argument.'); - const readableStream = this._transport.messageHandler.sendWithStream('GetOperatorList', args); + const readableStream = this._transport.messageHandler.sendWithStream("GetOperatorList", args); const reader = readableStream.getReader(); const intentState = this.intentStates[args.intent]; @@ -1933,7 +1907,7 @@ class PDFPageProxy { reason, force = false }) { - (0, _util.assert)(reason instanceof Error || typeof reason === 'object' && reason !== null, 'PDFPageProxy._abortOperatorList: Expected "reason" argument.'); + (0, _util.assert)(reason instanceof Error || typeof reason === "object" && reason !== null, 'PDFPageProxy._abortOperatorList: Expected "reason" argument.'); if (!intentState.streamReader) { return; @@ -1993,7 +1967,7 @@ class LoopbackPort { postMessage(obj, transfers) { function cloneValue(value) { - if (typeof value !== 'object' || value === null) { + if (typeof value !== "object" || value === null) { return value; } @@ -2029,11 +2003,11 @@ class LoopbackPort { p = Object.getPrototypeOf(p); } - if (typeof desc.value === 'undefined') { + if (typeof desc.value === "undefined") { continue; } - if (typeof desc.value === 'function') { + if (typeof desc.value === "function") { if (value.hasOwnProperty && value.hasOwnProperty(i)) { throw new Error(`LoopbackPort.postMessage - cannot clone: ${value[i]}`); } @@ -2089,15 +2063,21 @@ exports.LoopbackPort = LoopbackPort; const PDFWorker = function PDFWorkerClosure() { const pdfWorkerPorts = new WeakMap(); + let isWorkerDisabled = false; + let fallbackWorkerSrc; let nextFakeWorkerId = 0; - let fakeWorkerFilesLoadedCapability; + let fakeWorkerCapability; function getWorkerSrc() { if (_worker_options.GlobalWorkerOptions.workerSrc) { return _worker_options.GlobalWorkerOptions.workerSrc; } - if (typeof fallbackWorkerSrc !== 'undefined') { + if (typeof fallbackWorkerSrc !== "undefined") { + if (!_is_node.isNodeJS) { + (0, _display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'); + } + return fallbackWorkerSrc; } @@ -2115,30 +2095,29 @@ const PDFWorker = function PDFWorkerClosure() { } function setupFakeWorkerGlobal() { - if (fakeWorkerFilesLoadedCapability) { - return fakeWorkerFilesLoadedCapability.promise; + if (fakeWorkerCapability) { + return fakeWorkerCapability.promise; } - fakeWorkerFilesLoadedCapability = (0, _util.createPromiseCapability)(); - const mainWorkerMessageHandler = getMainThreadWorkerMessageHandler(); + fakeWorkerCapability = (0, _util.createPromiseCapability)(); - if (mainWorkerMessageHandler) { - fakeWorkerFilesLoadedCapability.resolve(mainWorkerMessageHandler); - return fakeWorkerFilesLoadedCapability.promise; - } + const loader = async function () { + const mainWorkerMessageHandler = getMainThreadWorkerMessageHandler(); - const loader = fakeWorkerFilesLoader || function () { - return (0, _display_utils.loadScript)(getWorkerSrc()).then(function () { - return window.pdfjsWorker.WorkerMessageHandler; - }); + if (mainWorkerMessageHandler) { + return mainWorkerMessageHandler; + } + + await (0, _display_utils.loadScript)(getWorkerSrc()); + return window.pdfjsWorker.WorkerMessageHandler; }; - loader().then(fakeWorkerFilesLoadedCapability.resolve, fakeWorkerFilesLoadedCapability.reject); - return fakeWorkerFilesLoadedCapability.promise; + loader().then(fakeWorkerCapability.resolve, fakeWorkerCapability.reject); + return fakeWorkerCapability.promise; } function createCDNWrapper(url) { - const wrapper = 'importScripts(\'' + url + '\');'; + const wrapper = "importScripts('" + url + "');"; return URL.createObjectURL(new Blob([wrapper])); } @@ -2149,7 +2128,7 @@ const PDFWorker = function PDFWorkerClosure() { verbosity = (0, _util.getVerbosityLevel)() } = {}) { if (port && pdfWorkerPorts.has(port)) { - throw new Error('Cannot use more than one PDFWorker per port'); + throw new Error("Cannot use more than one PDFWorker per port"); } this.name = name; @@ -2186,28 +2165,28 @@ const PDFWorker = function PDFWorkerClosure() { _initializeFromPort(port) { this._port = port; - this._messageHandler = new _message_handler.MessageHandler('main', 'worker', port); + this._messageHandler = new _message_handler.MessageHandler("main", "worker", port); - this._messageHandler.on('ready', function () {}); + this._messageHandler.on("ready", function () {}); this._readyCapability.resolve(); } _initialize() { - if (typeof Worker !== 'undefined' && !isWorkerDisabled && !getMainThreadWorkerMessageHandler()) { + if (typeof Worker !== "undefined" && !isWorkerDisabled && !getMainThreadWorkerMessageHandler()) { let workerSrc = getWorkerSrc(); try { const worker = new Worker(workerSrc); - const messageHandler = new _message_handler.MessageHandler('main', 'worker', worker); + const messageHandler = new _message_handler.MessageHandler("main", "worker", worker); const terminateEarly = () => { - worker.removeEventListener('error', onWorkerError); + worker.removeEventListener("error", onWorkerError); messageHandler.destroy(); worker.terminate(); if (this.destroyed) { - this._readyCapability.reject(new Error('Worker was destroyed')); + this._readyCapability.reject(new Error("Worker was destroyed")); } else { this._setupFakeWorker(); } @@ -2219,9 +2198,9 @@ const PDFWorker = function PDFWorkerClosure() { } }; - worker.addEventListener('error', onWorkerError); - messageHandler.on('test', data => { - worker.removeEventListener('error', onWorkerError); + worker.addEventListener("error", onWorkerError); + messageHandler.on("test", data => { + worker.removeEventListener("error", onWorkerError); if (this.destroyed) { terminateEarly(); @@ -2239,7 +2218,7 @@ const PDFWorker = function PDFWorkerClosure() { this._readyCapability.resolve(); - messageHandler.send('configure', { + messageHandler.send("configure", { verbosity: this.verbosity }); } else { @@ -2249,8 +2228,8 @@ const PDFWorker = function PDFWorkerClosure() { worker.terminate(); } }); - messageHandler.on('ready', data => { - worker.removeEventListener('error', onWorkerError); + messageHandler.on("ready", data => { + worker.removeEventListener("error", onWorkerError); if (this.destroyed) { terminateEarly(); @@ -2268,18 +2247,18 @@ const PDFWorker = function PDFWorkerClosure() { let testObj = new Uint8Array([this.postMessageTransfers ? 255 : 0]); try { - messageHandler.send('test', testObj, [testObj.buffer]); + messageHandler.send("test", testObj, [testObj.buffer]); } catch (ex) { - (0, _util.warn)('Cannot use postMessage transfers.'); + (0, _util.warn)("Cannot use postMessage transfers."); testObj[0] = 0; - messageHandler.send('test', testObj); + messageHandler.send("test", testObj); } }; sendTest(); return; } catch (e) { - (0, _util.info)('The worker has been disabled.'); + (0, _util.info)("The worker has been disabled."); } } @@ -2288,23 +2267,23 @@ const PDFWorker = function PDFWorkerClosure() { _setupFakeWorker() { if (!isWorkerDisabled) { - (0, _util.warn)('Setting up fake worker.'); + (0, _util.warn)("Setting up fake worker."); isWorkerDisabled = true; } setupFakeWorkerGlobal().then(WorkerMessageHandler => { if (this.destroyed) { - this._readyCapability.reject(new Error('Worker was destroyed')); + this._readyCapability.reject(new Error("Worker was destroyed")); return; } const port = new LoopbackPort(); this._port = port; - const id = 'fake' + nextFakeWorkerId++; - const workerHandler = new _message_handler.MessageHandler(id + '_worker', id, port); + const id = "fake" + nextFakeWorkerId++; + const workerHandler = new _message_handler.MessageHandler(id + "_worker", id, port); WorkerMessageHandler.setup(workerHandler, port); - const messageHandler = new _message_handler.MessageHandler(id, id + '_worker', port); + const messageHandler = new _message_handler.MessageHandler(id, id + "_worker", port); this._messageHandler = messageHandler; this._readyCapability.resolve(); @@ -2334,7 +2313,7 @@ const PDFWorker = function PDFWorkerClosure() { static fromPort(params) { if (!params || !params.port) { - throw new Error('PDFWorker.fromPort - invalid method signature.'); + throw new Error("PDFWorker.fromPort - invalid method signature."); } if (pdfWorkerPorts.has(params.port)) { @@ -2390,7 +2369,7 @@ class WorkerTransport { this.destroyCapability = (0, _util.createPromiseCapability)(); if (this._passwordCapability) { - this._passwordCapability.reject(new Error('Worker was destroyed during onPassword callback')); + this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback")); } const waitOn = []; @@ -2401,13 +2380,13 @@ class WorkerTransport { }); this.pageCache.length = 0; this.pagePromises.length = 0; - const terminated = this.messageHandler.sendWithPromise('Terminate', null); + const terminated = this.messageHandler.sendWithPromise("Terminate", null); waitOn.push(terminated); Promise.all(waitOn).then(() => { this.fontLoader.clear(); if (this._networkStream) { - this._networkStream.cancelAllRequests(new _util.AbortException('Worker was terminated.')); + this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")); } if (this.messageHandler) { @@ -2425,7 +2404,7 @@ class WorkerTransport { messageHandler, loadingTask } = this; - messageHandler.on('GetReader', (data, sink) => { + messageHandler.on("GetReader", (data, sink) => { (0, _util.assert)(this._networkStream); this._fullReader = this._networkStream.getFullReader(); @@ -2457,7 +2436,7 @@ class WorkerTransport { this._fullReader.cancel(reason); }; }); - messageHandler.on('ReaderHeadersReady', data => { + messageHandler.on("ReaderHeadersReady", data => { const headersCapability = (0, _util.createPromiseCapability)(); const fullReader = this._fullReader; fullReader.headersReady.then(() => { @@ -2484,7 +2463,7 @@ class WorkerTransport { }, headersCapability.reject); return headersCapability.promise; }); - messageHandler.on('GetRangeReader', (data, sink) => { + messageHandler.on("GetRangeReader", (data, sink) => { (0, _util.assert)(this._networkStream); const rangeReader = this._networkStream.getRangeReader(data.begin, data.end); @@ -2515,41 +2494,41 @@ class WorkerTransport { rangeReader.cancel(reason); }; }); - messageHandler.on('GetDoc', ({ + messageHandler.on("GetDoc", ({ pdfInfo }) => { this._numPages = pdfInfo.numPages; loadingTask._capability.resolve(new PDFDocumentProxy(pdfInfo, this)); }); - messageHandler.on('DocException', function (ex) { + messageHandler.on("DocException", function (ex) { let reason; switch (ex.name) { - case 'PasswordException': + case "PasswordException": reason = new _util.PasswordException(ex.message, ex.code); break; - case 'InvalidPDFException': + case "InvalidPDFException": reason = new _util.InvalidPDFException(ex.message); break; - case 'MissingPDFException': + case "MissingPDFException": reason = new _util.MissingPDFException(ex.message); break; - case 'UnexpectedResponseException': + case "UnexpectedResponseException": reason = new _util.UnexpectedResponseException(ex.message, ex.status); break; - case 'UnknownErrorException': + case "UnknownErrorException": reason = new _util.UnknownErrorException(ex.message, ex.details); break; } loadingTask._capability.reject(reason); }); - messageHandler.on('PasswordRequest', exception => { + messageHandler.on("PasswordRequest", exception => { this._passwordCapability = (0, _util.createPromiseCapability)(); if (loadingTask.onPassword) { @@ -2570,7 +2549,7 @@ class WorkerTransport { return this._passwordCapability.promise; }); - messageHandler.on('DataLoaded', data => { + messageHandler.on("DataLoaded", data => { if (loadingTask.onProgress) { loadingTask.onProgress({ loaded: data.length, @@ -2580,7 +2559,7 @@ class WorkerTransport { this.downloadInfoCapability.resolve(data); }); - messageHandler.on('StartRenderPage', data => { + messageHandler.on("StartRenderPage", data => { if (this.destroyed) { return; } @@ -2589,7 +2568,7 @@ class WorkerTransport { page._startRenderPage(data.transparency, data.intent); }); - messageHandler.on('commonobj', data => { + messageHandler.on("commonobj", data => { if (this.destroyed) { return; } @@ -2601,10 +2580,10 @@ class WorkerTransport { } switch (type) { - case 'Font': + case "Font": const params = this._params; - if ('error' in exportedData) { + if ("error" in exportedData) { const exportedError = exportedData.error; (0, _util.warn)(`Error during font loading: ${exportedError}`); this.commonObjs.resolve(id, exportedError); @@ -2632,7 +2611,7 @@ class WorkerTransport { this.fontLoader.bind(font).then(() => { this.commonObjs.resolve(id, font); }, reason => { - messageHandler.sendWithPromise('FontFallback', { + messageHandler.sendWithPromise("FontFallback", { id }).finally(() => { this.commonObjs.resolve(id, font); @@ -2640,8 +2619,8 @@ class WorkerTransport { }); break; - case 'FontPath': - case 'FontType3Res': + case "FontPath": + case "FontType3Res": this.commonObjs.resolve(id, exportedData); break; @@ -2649,7 +2628,7 @@ class WorkerTransport { throw new Error(`Got unknown common object type ${type}`); } }); - messageHandler.on('obj', data => { + messageHandler.on("obj", data => { if (this.destroyed) { return undefined; } @@ -2662,7 +2641,7 @@ class WorkerTransport { } switch (type) { - case 'JpegStream': + case "JpegStream": return new Promise((resolve, reject) => { const img = new Image(); @@ -2671,7 +2650,7 @@ class WorkerTransport { }; img.onerror = function () { - reject(new Error('Error during JPEG image loading')); + reject(new Error("Error during JPEG image loading")); (0, _display_utils.releaseImageResources)(img); }; @@ -2680,11 +2659,11 @@ class WorkerTransport { pageProxy.objs.resolve(id, img); }); - case 'Image': + case "Image": pageProxy.objs.resolve(id, imageData); const MAX_IMAGE_SIZE_TO_STORE = 8000000; - if (imageData && 'data' in imageData && imageData.data.length > MAX_IMAGE_SIZE_TO_STORE) { + if (imageData && "data" in imageData && imageData.data.length > MAX_IMAGE_SIZE_TO_STORE) { pageProxy.cleanupAfterRender = true; } @@ -2696,7 +2675,7 @@ class WorkerTransport { return undefined; }); - messageHandler.on('DocProgress', data => { + messageHandler.on("DocProgress", data => { if (this.destroyed) { return; } @@ -2708,20 +2687,20 @@ class WorkerTransport { }); } }); - messageHandler.on('UnsupportedFeature', this._onUnsupportedFeature.bind(this)); - messageHandler.on('JpegDecode', data => { + messageHandler.on("UnsupportedFeature", this._onUnsupportedFeature.bind(this)); + messageHandler.on("JpegDecode", data => { if (this.destroyed) { - return Promise.reject(new Error('Worker was destroyed')); + return Promise.reject(new Error("Worker was destroyed")); } - if (typeof document === 'undefined') { + if (typeof document === "undefined") { return Promise.reject(new Error('"document" is not defined.')); } const [imageUrl, components] = data; if (components !== 3 && components !== 1) { - return Promise.reject(new Error('Only 3 components or 1 component can be returned')); + return Promise.reject(new Error("Only 3 components or 1 component can be returned")); } return new Promise(function (resolve, reject) { @@ -2735,10 +2714,10 @@ class WorkerTransport { const size = width * height; const rgbaLength = size * 4; const buf = new Uint8ClampedArray(size * components); - let tmpCanvas = document.createElement('canvas'); + let tmpCanvas = document.createElement("canvas"); tmpCanvas.width = width; tmpCanvas.height = height; - let tmpCtx = tmpCanvas.getContext('2d'); + let tmpCtx = tmpCanvas.getContext("2d"); tmpCtx.drawImage(img, 0, 0); const data = tmpCtx.getImageData(0, 0, width, height).data; @@ -2767,16 +2746,16 @@ class WorkerTransport { }; img.onerror = function () { - reject(new Error('JpegDecode failed to load image')); + reject(new Error("JpegDecode failed to load image")); (0, _display_utils.releaseImageResources)(img); }; img.src = imageUrl; }); }); - messageHandler.on('FetchBuiltInCMap', (data, sink) => { + messageHandler.on("FetchBuiltInCMap", (data, sink) => { if (this.destroyed) { - sink.error(new Error('Worker was destroyed')); + sink.error(new Error("Worker was destroyed")); return; } @@ -2811,12 +2790,12 @@ class WorkerTransport { } getData() { - return this.messageHandler.sendWithPromise('GetData', null); + return this.messageHandler.sendWithPromise("GetData", null); } getPage(pageNumber) { if (!Number.isInteger(pageNumber) || pageNumber <= 0 || pageNumber > this._numPages) { - return Promise.reject(new Error('Invalid page request')); + return Promise.reject(new Error("Invalid page request")); } const pageIndex = pageNumber - 1; @@ -2825,11 +2804,11 @@ class WorkerTransport { return this.pagePromises[pageIndex]; } - const promise = this.messageHandler.sendWithPromise('GetPage', { + const promise = this.messageHandler.sendWithPromise("GetPage", { pageIndex }).then(pageInfo => { if (this.destroyed) { - throw new Error('Transport destroyed'); + throw new Error("Transport destroyed"); } const page = new PDFPageProxy(pageIndex, pageInfo, this, this._params.pdfBug); @@ -2841,7 +2820,7 @@ class WorkerTransport { } getPageIndex(ref) { - return this.messageHandler.sendWithPromise('GetPageIndex', { + return this.messageHandler.sendWithPromise("GetPageIndex", { ref }).catch(function (reason) { return Promise.reject(new Error(reason)); @@ -2849,64 +2828,64 @@ class WorkerTransport { } getAnnotations(pageIndex, intent) { - return this.messageHandler.sendWithPromise('GetAnnotations', { + return this.messageHandler.sendWithPromise("GetAnnotations", { pageIndex, intent }); } getDestinations() { - return this.messageHandler.sendWithPromise('GetDestinations', null); + return this.messageHandler.sendWithPromise("GetDestinations", null); } getDestination(id) { - if (typeof id !== 'string') { - return Promise.reject(new Error('Invalid destination request.')); + if (typeof id !== "string") { + return Promise.reject(new Error("Invalid destination request.")); } - return this.messageHandler.sendWithPromise('GetDestination', { + return this.messageHandler.sendWithPromise("GetDestination", { id }); } getPageLabels() { - return this.messageHandler.sendWithPromise('GetPageLabels', null); + return this.messageHandler.sendWithPromise("GetPageLabels", null); } getPageLayout() { - return this.messageHandler.sendWithPromise('GetPageLayout', null); + return this.messageHandler.sendWithPromise("GetPageLayout", null); } getPageMode() { - return this.messageHandler.sendWithPromise('GetPageMode', null); + return this.messageHandler.sendWithPromise("GetPageMode", null); } getViewerPreferences() { - return this.messageHandler.sendWithPromise('GetViewerPreferences', null); + return this.messageHandler.sendWithPromise("GetViewerPreferences", null); } getOpenActionDestination() { - return this.messageHandler.sendWithPromise('GetOpenActionDestination', null); + return this.messageHandler.sendWithPromise("GetOpenActionDestination", null); } getAttachments() { - return this.messageHandler.sendWithPromise('GetAttachments', null); + return this.messageHandler.sendWithPromise("GetAttachments", null); } getJavaScript() { - return this.messageHandler.sendWithPromise('GetJavaScript', null); + return this.messageHandler.sendWithPromise("GetJavaScript", null); } getOutline() { - return this.messageHandler.sendWithPromise('GetOutline', null); + return this.messageHandler.sendWithPromise("GetOutline", null); } getPermissions() { - return this.messageHandler.sendWithPromise('GetPermissions', null); + return this.messageHandler.sendWithPromise("GetPermissions", null); } getMetadata() { - return this.messageHandler.sendWithPromise('GetMetadata', null).then(results => { + return this.messageHandler.sendWithPromise("GetMetadata", null).then(results => { return { info: results[0], metadata: results[1] ? new _metadata.Metadata(results[1]) : null, @@ -2916,11 +2895,11 @@ class WorkerTransport { } getStats() { - return this.messageHandler.sendWithPromise('GetStats', null); + return this.messageHandler.sendWithPromise("GetStats", null); } startCleanup() { - this.messageHandler.sendWithPromise('Cleanup', null).then(() => { + this.messageHandler.sendWithPromise("Cleanup", null).then(() => { for (let i = 0, ii = this.pageCache.length; i < ii; i++) { const page = this.pageCache[i]; @@ -2936,7 +2915,7 @@ class WorkerTransport { get loadingParams() { const params = this._params; - return (0, _util.shadow)(this, 'loadingParams', { + return (0, _util.shadow)(this, "loadingParams", { disableAutoFetch: params.disableAutoFetch, disableCreateObjectURL: params.disableCreateObjectURL, disableFontFace: params.disableFontFace, @@ -2998,7 +2977,7 @@ class PDFObjects { data } = this._objs[objId]; - if (typeof Image !== 'undefined' && data instanceof Image) { + if (typeof Image !== "undefined" && data instanceof Image) { (0, _display_utils.releaseImageResources)(data); } } @@ -3023,7 +3002,7 @@ class RenderTask { } then(onFulfilled, onRejected) { - throw new Error('Removed API method: ' + 'RenderTask.then, use the `promise` getter instead.'); + throw new Error("Removed API method: " + "RenderTask.then, use the `promise` getter instead."); } } @@ -3057,7 +3036,7 @@ const InternalRenderTask = function InternalRenderTaskClosure() { this.running = false; this.graphicsReadyCallback = null; this.graphicsReady = false; - this._useRequestAnimationFrame = useRequestAnimationFrame === true && typeof window !== 'undefined'; + this._useRequestAnimationFrame = useRequestAnimationFrame === true && typeof window !== "undefined"; this.cancelled = false; this.capability = (0, _util.createPromiseCapability)(); this.task = new RenderTask(this); @@ -3074,7 +3053,7 @@ const InternalRenderTask = function InternalRenderTaskClosure() { if (this._canvas) { if (canvasInRendering.has(this._canvas)) { - throw new Error('Cannot use the same canvas during multiple render() operations. ' + 'Use different canvas or ensure previous operations were ' + 'cancelled or completed.'); + throw new Error("Cannot use the same canvas during multiple render() operations. " + "Use different canvas or ensure previous operations were " + "cancelled or completed."); } canvasInRendering.add(this._canvas); @@ -3120,7 +3099,7 @@ const InternalRenderTask = function InternalRenderTaskClosure() { canvasInRendering.delete(this._canvas); } - this.callback(error || new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this.pageNumber}`, 'canvas')); + this.callback(error || new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this.pageNumber}`, "canvas")); } operatorListChanged() { @@ -3194,13 +3173,13 @@ const InternalRenderTask = function InternalRenderTaskClosure() { return InternalRenderTask; }(); -const version = '2.4.176'; +const version = '2.4.254'; exports.version = version; -const build = 'af4ba75f'; +const build = 'b833f843'; exports.build = build; /***/ }), -/* 5 */ +/* 4 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -3220,18 +3199,18 @@ exports.PDFDateString = exports.StatTimer = exports.DOMSVGFactory = exports.DOMC var _util = __w_pdfjs_require__(1); -const DEFAULT_LINK_REL = 'noopener noreferrer nofollow'; +const DEFAULT_LINK_REL = "noopener noreferrer nofollow"; exports.DEFAULT_LINK_REL = DEFAULT_LINK_REL; -const SVG_NS = 'http://www.w3.org/2000/svg'; +const SVG_NS = "http://www.w3.org/2000/svg"; class DOMCanvasFactory { create(width, height) { if (width <= 0 || height <= 0) { - throw new Error('Invalid canvas size'); + throw new Error("Invalid canvas size"); } - const canvas = document.createElement('canvas'); - const context = canvas.getContext('2d'); + const canvas = document.createElement("canvas"); + const context = canvas.getContext("2d"); canvas.width = width; canvas.height = height; return { @@ -3242,11 +3221,11 @@ class DOMCanvasFactory { reset(canvasAndContext, width, height) { if (!canvasAndContext.canvas) { - throw new Error('Canvas is not specified'); + throw new Error("Canvas is not specified"); } if (width <= 0 || height <= 0) { - throw new Error('Invalid canvas size'); + throw new Error("Invalid canvas size"); } canvasAndContext.canvas.width = width; @@ -3255,7 +3234,7 @@ class DOMCanvasFactory { destroy(canvasAndContext) { if (!canvasAndContext.canvas) { - throw new Error('Canvas is not specified'); + throw new Error("Canvas is not specified"); } canvasAndContext.canvas.width = 0; @@ -3285,10 +3264,10 @@ class DOMCMapReaderFactory { } if (!name) { - throw new Error('CMap name must be specified.'); + throw new Error("CMap name must be specified."); } - const url = this.baseUrl + name + (this.isCompressed ? '.bcmap' : ''); + const url = this.baseUrl + name + (this.isCompressed ? ".bcmap" : ""); const compressionType = this.isCompressed ? _util.CMapCompressionType.BINARY : _util.CMapCompressionType.NONE; return fetch(url).then(async response => { if (!response.ok) { @@ -3308,7 +3287,7 @@ class DOMCMapReaderFactory { compressionType }; }).catch(reason => { - throw new Error(`Unable to load ${this.isCompressed ? 'binary ' : ''}` + `CMap at: ${url}`); + throw new Error(`Unable to load ${this.isCompressed ? "binary " : ""}` + `CMap at: ${url}`); }); } @@ -3318,18 +3297,18 @@ exports.DOMCMapReaderFactory = DOMCMapReaderFactory; class DOMSVGFactory { create(width, height) { - (0, _util.assert)(width > 0 && height > 0, 'Invalid SVG dimensions'); - const svg = document.createElementNS(SVG_NS, 'svg:svg'); - svg.setAttribute('version', '1.1'); - svg.setAttribute('width', width + 'px'); - svg.setAttribute('height', height + 'px'); - svg.setAttribute('preserveAspectRatio', 'none'); - svg.setAttribute('viewBox', '0 0 ' + width + ' ' + height); + (0, _util.assert)(width > 0 && height > 0, "Invalid SVG dimensions"); + const svg = document.createElementNS(SVG_NS, "svg:svg"); + svg.setAttribute("version", "1.1"); + svg.setAttribute("width", width + "px"); + svg.setAttribute("height", height + "px"); + svg.setAttribute("preserveAspectRatio", "none"); + svg.setAttribute("viewBox", "0 0 " + width + " " + height); return svg; } createElement(type) { - (0, _util.assert)(typeof type === 'string', 'Invalid SVG element type'); + (0, _util.assert)(typeof type === "string", "Invalid SVG element type"); return document.createElementNS(SVG_NS, type); } @@ -3473,13 +3452,13 @@ function addLinkAttributes(link, { rel, enabled = true } = {}) { - (0, _util.assert)(url && typeof url === 'string', 'addLinkAttributes: A valid "url" parameter must provided.'); + (0, _util.assert)(url && typeof url === "string", 'addLinkAttributes: A valid "url" parameter must provided.'); const urlNullRemoved = (0, _util.removeNullCharacters)(url); if (enabled) { link.href = link.title = urlNullRemoved; } else { - link.href = ''; + link.href = ""; link.title = `Disabled: ${urlNullRemoved}`; link.onclick = () => { @@ -3487,38 +3466,38 @@ function addLinkAttributes(link, { }; } - let targetStr = ''; + let targetStr = ""; switch (target) { case LinkTarget.NONE: break; case LinkTarget.SELF: - targetStr = '_self'; + targetStr = "_self"; break; case LinkTarget.BLANK: - targetStr = '_blank'; + targetStr = "_blank"; break; case LinkTarget.PARENT: - targetStr = '_parent'; + targetStr = "_parent"; break; case LinkTarget.TOP: - targetStr = '_top'; + targetStr = "_top"; break; } link.target = targetStr; - link.rel = typeof rel === 'string' ? rel : DEFAULT_LINK_REL; + link.rel = typeof rel === "string" ? rel : DEFAULT_LINK_REL; } function getFilenameFromUrl(url) { - const anchor = url.indexOf('#'); - const query = url.indexOf('?'); + const anchor = url.indexOf("#"); + const query = url.indexOf("?"); const end = Math.min(anchor > 0 ? anchor : url.length, query > 0 ? query : url.length); - return url.substring(url.lastIndexOf('/', end) + 1, end); + return url.substring(url.lastIndexOf("/", end) + 1, end); } class StatTimer { @@ -3541,9 +3520,9 @@ class StatTimer { } this.times.push({ - 'name': name, - 'start': this.started[name], - 'end': Date.now() + name, + start: this.started[name], + end: Date.now() }); delete this.started[name]; } @@ -3565,7 +3544,7 @@ class StatTimer { outBuf.push(`${time.name.padEnd(longest)} ${duration}ms\n`); } - return outBuf.join(''); + return outBuf.join(""); } } @@ -3573,7 +3552,7 @@ class StatTimer { exports.StatTimer = StatTimer; function isFetchSupported() { - return typeof fetch !== 'undefined' && typeof Response !== 'undefined' && 'body' in Response.prototype && typeof ReadableStream !== 'undefined'; + return typeof fetch !== "undefined" && typeof Response !== "undefined" && "body" in Response.prototype && typeof ReadableStream !== "undefined"; } function isValidFetchUrl(url, baseUrl) { @@ -3581,7 +3560,7 @@ function isValidFetchUrl(url, baseUrl) { const { protocol } = baseUrl ? new URL(url, baseUrl) : new URL(url); - return protocol === 'http:' || protocol === 'https:'; + return protocol === "http:" || protocol === "https:"; } catch (ex) { return false; } @@ -3589,7 +3568,7 @@ function isValidFetchUrl(url, baseUrl) { function loadScript(src) { return new Promise((resolve, reject) => { - const script = document.createElement('script'); + const script = document.createElement("script"); script.src = src; script.onload = resolve; @@ -3602,18 +3581,18 @@ function loadScript(src) { } function deprecated(details) { - console.log('Deprecated API usage: ' + details); + console.log("Deprecated API usage: " + details); } function releaseImageResources(img) { - (0, _util.assert)(img instanceof Image, 'Invalid `img` parameter.'); + (0, _util.assert)(img instanceof Image, "Invalid `img` parameter."); const url = img.src; - if (typeof url === 'string' && url.startsWith('blob:') && URL.revokeObjectURL) { + if (typeof url === "string" && url.startsWith("blob:") && URL.revokeObjectURL) { URL.revokeObjectURL(url); } - img.removeAttribute('src'); + img.removeAttribute("src"); } let pdfDateStringRegex; @@ -3625,7 +3604,7 @@ class PDFDateString { } if (!pdfDateStringRegex) { - pdfDateStringRegex = new RegExp('^D:' + '(\\d{4})' + '(\\d{2})?' + '(\\d{2})?' + '(\\d{2})?' + '(\\d{2})?' + '(\\d{2})?' + '([Z|+|-])?' + '(\\d{2})?' + '\'?' + '(\\d{2})?' + '\'?'); + pdfDateStringRegex = new RegExp("^D:" + "(\\d{4})" + "(\\d{2})?" + "(\\d{2})?" + "(\\d{2})?" + "(\\d{2})?" + "(\\d{2})?" + "([Z|+|-])?" + "(\\d{2})?" + "'?" + "(\\d{2})?" + "'?"); } const matches = pdfDateStringRegex.exec(input); @@ -3645,16 +3624,16 @@ class PDFDateString { minute = minute >= 0 && minute <= 59 ? minute : 0; let second = parseInt(matches[6], 10); second = second >= 0 && second <= 59 ? second : 0; - const universalTimeRelation = matches[7] || 'Z'; + const universalTimeRelation = matches[7] || "Z"; let offsetHour = parseInt(matches[8], 10); offsetHour = offsetHour >= 0 && offsetHour <= 23 ? offsetHour : 0; let offsetMinute = parseInt(matches[9], 10) || 0; offsetMinute = offsetMinute >= 0 && offsetMinute <= 59 ? offsetMinute : 0; - if (universalTimeRelation === '-') { + if (universalTimeRelation === "-") { hour += offsetHour; minute += offsetMinute; - } else if (universalTimeRelation === '+') { + } else if (universalTimeRelation === "+") { hour -= offsetHour; minute -= offsetMinute; } @@ -3667,7 +3646,7 @@ class PDFDateString { exports.PDFDateString = PDFDateString; /***/ }), -/* 6 */ +/* 5 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -3686,7 +3665,7 @@ class BaseFontLoader { onUnsupportedFeature }) { if (this.constructor === BaseFontLoader) { - (0, _util.unreachable)('Cannot initialize BaseFontLoader.'); + (0, _util.unreachable)("Cannot initialize BaseFontLoader."); } this.docId = docId; @@ -3704,9 +3683,9 @@ class BaseFontLoader { let styleElement = this.styleElement; if (!styleElement) { - styleElement = this.styleElement = document.createElement('style'); + styleElement = this.styleElement = document.createElement("style"); styleElement.id = `PDFJS_FONT_STYLE_TAG_${this.docId}`; - document.documentElement.getElementsByTagName('head')[0].appendChild(styleElement); + document.documentElement.getElementsByTagName("head")[0].appendChild(styleElement); } const styleSheet = styleElement.sheet; @@ -3774,23 +3753,23 @@ class BaseFontLoader { } _queueLoadingCallback(callback) { - (0, _util.unreachable)('Abstract method `_queueLoadingCallback`.'); + (0, _util.unreachable)("Abstract method `_queueLoadingCallback`."); } get isFontLoadingAPISupported() { - (0, _util.unreachable)('Abstract method `isFontLoadingAPISupported`.'); + (0, _util.unreachable)("Abstract method `isFontLoadingAPISupported`."); } get isSyncFontLoadingSupported() { - (0, _util.unreachable)('Abstract method `isSyncFontLoadingSupported`.'); + (0, _util.unreachable)("Abstract method `isSyncFontLoadingSupported`."); } get _loadTestFont() { - (0, _util.unreachable)('Abstract method `_loadTestFont`.'); + (0, _util.unreachable)("Abstract method `_loadTestFont`."); } _prepareFontLoadEvent(rules, fontsToLoad, request) { - (0, _util.unreachable)('Abstract method `_prepareFontLoadEvent`.'); + (0, _util.unreachable)("Abstract method `_prepareFontLoadEvent`."); } } @@ -3800,18 +3779,18 @@ exports.FontLoader = FontLoader; { exports.FontLoader = FontLoader = class MozcentralFontLoader extends BaseFontLoader { get isFontLoadingAPISupported() { - return (0, _util.shadow)(this, 'isFontLoadingAPISupported', typeof document !== 'undefined' && !!document.fonts); + return (0, _util.shadow)(this, "isFontLoadingAPISupported", typeof document !== "undefined" && !!document.fonts); } get isSyncFontLoadingSupported() { - return (0, _util.shadow)(this, 'isSyncFontLoadingSupported', true); + return (0, _util.shadow)(this, "isSyncFontLoadingSupported", true); } }; } const IsEvalSupportedCached = { get value() { - return (0, _util.shadow)(this, 'value', (0, _util.isEvalSupported)()); + return (0, _util.shadow)(this, "value", (0, _util.isEvalSupported)()); } }; @@ -3875,7 +3854,7 @@ class FontFaceObject { let cmds, current; try { - cmds = objs.get(this.loadedName + '_path_' + character); + cmds = objs.get(this.loadedName + "_path_" + character); } catch (ex) { if (!this.ignoreErrors) { throw ex; @@ -3893,28 +3872,28 @@ class FontFaceObject { if (this.isEvalSupported && IsEvalSupportedCached.value) { let args, - js = ''; + js = ""; for (let i = 0, ii = cmds.length; i < ii; i++) { current = cmds[i]; if (current.args !== undefined) { - args = current.args.join(','); + args = current.args.join(","); } else { - args = ''; + args = ""; } - js += 'c.' + current.cmd + '(' + args + ');\n'; + js += "c." + current.cmd + "(" + args + ");\n"; } - return this.compiledGlyphs[character] = new Function('c', 'size', js); + return this.compiledGlyphs[character] = new Function("c", "size", js); } return this.compiledGlyphs[character] = function (c, size) { for (let i = 0, ii = cmds.length; i < ii; i++) { current = cmds[i]; - if (current.cmd === 'scale') { + if (current.cmd === "scale") { current.args = [size, -size]; } @@ -3928,7 +3907,7 @@ class FontFaceObject { exports.FontFaceObject = FontFaceObject; /***/ }), -/* 7 */ +/* 6 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -3939,7 +3918,7 @@ let compatibilityParams = Object.create(null); exports.apiCompatibilityParams = Object.freeze(compatibilityParams); /***/ }), -/* 8 */ +/* 7 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -3952,7 +3931,7 @@ exports.CanvasGraphics = void 0; var _util = __w_pdfjs_require__(1); -var _pattern_helper = __w_pdfjs_require__(9); +var _pattern_helper = __w_pdfjs_require__(8); var MIN_FONT_SIZE = 16; var MAX_FONT_SIZE = 100; @@ -3963,7 +3942,7 @@ var MAX_SIZE_TO_COMPILE = 1000; var FULL_CHUNK_HEIGHT = 16; var IsLittleEndianCached = { get value() { - return (0, _util.shadow)(IsLittleEndianCached, 'value', (0, _util.isLittleEndian)()); + return (0, _util.shadow)(IsLittleEndianCached, "value", (0, _util.isLittleEndian)()); } }; @@ -3979,12 +3958,12 @@ function addContextCurrentTransform(ctx) { ctx._originalSetTransform = ctx.setTransform; ctx._transformMatrix = ctx._transformMatrix || [1, 0, 0, 1, 0, 0]; ctx._transformStack = []; - Object.defineProperty(ctx, 'mozCurrentTransform', { + Object.defineProperty(ctx, "mozCurrentTransform", { get: function getCurrentTransform() { return this._transformMatrix; } }); - Object.defineProperty(ctx, 'mozCurrentTransformInverse', { + Object.defineProperty(ctx, "mozCurrentTransformInverse", { get: function getCurrentTransformInverse() { var m = this._transformMatrix; var a = m[0], @@ -4295,8 +4274,8 @@ var CanvasExtraState = function CanvasExtraStateClosure() { this.textHScale = 1; this.textRenderingMode = _util.TextRenderingMode.FILL; this.textRise = 0; - this.fillColor = '#000000'; - this.strokeColor = '#000000'; + this.fillColor = "#000000"; + this.strokeColor = "#000000"; this.patternFill = false; this.fillAlpha = 1; this.strokeAlpha = 1; @@ -4352,7 +4331,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { } function putBinaryImageData(ctx, imgData) { - if (typeof ImageData !== 'undefined' && imgData instanceof ImageData) { + if (typeof ImageData !== "undefined" && imgData instanceof ImageData) { ctx.putImageData(imgData, 0, 0); return; } @@ -4374,8 +4353,8 @@ var CanvasGraphics = function CanvasGraphicsClosure() { var dest32 = new Uint32Array(dest.buffer, 0, dest.byteLength >> 2); var dest32DataLength = dest32.length; var fullSrcDiff = width + 7 >> 3; - var white = 0xFFFFFFFF; - var black = IsLittleEndianCached.value ? 0xFF000000 : 0x000000FF; + var white = 0xffffffff; + var black = IsLittleEndianCached.value ? 0xff000000 : 0x000000ff; for (i = 0; i < totalChunks; i++) { thisChunkHeight = i < fullChunks ? FULL_CHUNK_HEIGHT : partialChunkHeight; @@ -4495,7 +4474,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { } function copyCtxState(sourceCtx, destCtx) { - var properties = ['strokeStyle', 'fillStyle', 'fillRule', 'globalAlpha', 'lineWidth', 'lineCap', 'lineJoin', 'miterLimit', 'globalCompositeOperation', 'font']; + var properties = ["strokeStyle", "fillStyle", "fillRule", "globalAlpha", "lineWidth", "lineCap", "lineJoin", "miterLimit", "globalCompositeOperation", "font"]; for (var i = 0, ii = properties.length; i < ii; i++) { var property = properties[i]; @@ -4512,16 +4491,16 @@ var CanvasGraphics = function CanvasGraphicsClosure() { } function resetCtxToDefault(ctx) { - ctx.strokeStyle = '#000000'; - ctx.fillStyle = '#000000'; - ctx.fillRule = 'nonzero'; + ctx.strokeStyle = "#000000"; + ctx.fillStyle = "#000000"; + ctx.fillRule = "nonzero"; ctx.globalAlpha = 1; ctx.lineWidth = 1; - ctx.lineCap = 'butt'; - ctx.lineJoin = 'miter'; + ctx.lineCap = "butt"; + ctx.lineJoin = "miter"; ctx.miterLimit = 10; - ctx.globalCompositeOperation = 'source-over'; - ctx.font = '10px sans-serif'; + ctx.globalCompositeOperation = "source-over"; + ctx.font = "10px sans-serif"; if (ctx.setLineDash !== undefined) { ctx.setLineDash([]); @@ -4574,7 +4553,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { var b0 = hasBackdrop ? backdrop[2] : 0; var composeFn; - if (subtype === 'Luminosity') { + if (subtype === "Luminosity") { composeFn = composeSMaskLuminosity; } else { composeFn = composeSMaskAlpha; @@ -4621,8 +4600,8 @@ var CanvasGraphics = function CanvasGraphicsClosure() { ctx.drawImage(mask, 0, 0); } - var LINE_CAP_STYLES = ['butt', 'round', 'square']; - var LINE_JOIN_STYLES = ['miter', 'round', 'bevel']; + var LINE_CAP_STYLES = ["butt", "round", "square"]; + var LINE_JOIN_STYLES = ["miter", "round", "bevel"]; var NORMAL_CLIP = {}; var EO_CLIP = {}; CanvasGraphics.prototype = { @@ -4635,12 +4614,12 @@ var CanvasGraphics = function CanvasGraphicsClosure() { var width = this.ctx.canvas.width; var height = this.ctx.canvas.height; this.ctx.save(); - this.ctx.fillStyle = background || 'rgb(255, 255, 255)'; + this.ctx.fillStyle = background || "rgb(255, 255, 255)"; this.ctx.fillRect(0, 0, width, height); this.ctx.restore(); if (transparency) { - var transparentCanvas = this.cachedCanvases.getCanvas('transparent', width, height, true); + var transparentCanvas = this.cachedCanvases.getCanvas("transparent", width, height, true); this.compositeCtx = this.ctx; this.transparentCanvas = transparentCanvas.canvas; this.ctx = transparentCanvas.context; @@ -4673,7 +4652,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { return i; } - var chunkOperations = argsArrayLen - i > EXECUTION_STEPS && typeof continueCallback === 'function'; + var chunkOperations = argsArrayLen - i > EXECUTION_STEPS && typeof continueCallback === "function"; var endTime = chunkOperations ? Date.now() + EXECUTION_TIME : 0; var steps = 0; var commonObjs = this.commonObjs; @@ -4692,7 +4671,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { this[fnId].apply(this, argsArray[i]); } else { for (const depObjId of argsArray[i]) { - const objsPool = depObjId.startsWith('g_') ? commonObjs : objs; + const objsPool = depObjId.startsWith("g_") ? commonObjs : objs; if (!objsPool.has(depObjId)) { objsPool.get(depObjId, continueCallback); @@ -4773,52 +4752,52 @@ var CanvasGraphics = function CanvasGraphicsClosure() { var value = state[1]; switch (key) { - case 'LW': + case "LW": this.setLineWidth(value); break; - case 'LC': + case "LC": this.setLineCap(value); break; - case 'LJ': + case "LJ": this.setLineJoin(value); break; - case 'ML': + case "ML": this.setMiterLimit(value); break; - case 'D': + case "D": this.setDash(value[0], value[1]); break; - case 'RI': + case "RI": this.setRenderingIntent(value); break; - case 'FL': + case "FL": this.setFlatness(value); break; - case 'Font': + case "Font": this.setFont(value[0], value[1]); break; - case 'CA': + case "CA": this.current.strokeAlpha = state[1]; break; - case 'ca': + case "ca": this.current.fillAlpha = state[1]; this.ctx.globalAlpha = state[1]; break; - case 'BM': + case "BM": this.ctx.globalCompositeOperation = value; break; - case 'SMask': + case "SMask": if (this.current.activeSMask) { if (this.stateStack.length > 0 && this.stateStack[this.stateStack.length - 1].activeSMask === this.current.activeSMask) { this.suspendSMaskGroup(); @@ -4842,7 +4821,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { var activeSMask = this.current.activeSMask; var drawnWidth = activeSMask.canvas.width; var drawnHeight = activeSMask.canvas.height; - var cacheId = 'smaskGroupAt' + this.groupLevel; + var cacheId = "smaskGroupAt" + this.groupLevel; var scratchCanvas = this.cachedCanvases.getCanvas(cacheId, drawnWidth, drawnHeight, true); var currentCtx = this.ctx; var currentTransform = currentCtx.mozCurrentTransform; @@ -4854,7 +4833,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { activeSMask.startTransformInverse = groupCtx.mozCurrentTransformInverse; copyCtxState(currentCtx, groupCtx); this.ctx = groupCtx; - this.setGState([['BM', 'source-over'], ['ca', 1], ['CA', 1]]); + this.setGState([["BM", "source-over"], ["ca", 1], ["CA", 1]]); this.groupStack.push(currentCtx); this.groupLevel++; }, @@ -4999,12 +4978,12 @@ var CanvasGraphics = function CanvasGraphicsClosure() { this.ctx.closePath(); }, stroke: function CanvasGraphics_stroke(consumePath) { - consumePath = typeof consumePath !== 'undefined' ? consumePath : true; + consumePath = typeof consumePath !== "undefined" ? consumePath : true; var ctx = this.ctx; var strokeColor = this.current.strokeColor; ctx.globalAlpha = this.current.strokeAlpha; - if (strokeColor && strokeColor.hasOwnProperty('type') && strokeColor.type === 'Pattern') { + if (strokeColor && strokeColor.hasOwnProperty("type") && strokeColor.type === "Pattern") { ctx.save(); let transform = ctx.mozCurrentTransform; @@ -5030,7 +5009,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { this.stroke(); }, fill: function CanvasGraphics_fill(consumePath) { - consumePath = typeof consumePath !== 'undefined' ? consumePath : true; + consumePath = typeof consumePath !== "undefined" ? consumePath : true; var ctx = this.ctx; var fillColor = this.current.fillColor; var isPatternFill = this.current.patternFill; @@ -5048,7 +5027,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { } if (this.pendingEOFill) { - ctx.fill('evenodd'); + ctx.fill("evenodd"); this.pendingEOFill = false; } else { ctx.fill(); @@ -5146,7 +5125,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { current.fontMatrix = fontObj.fontMatrix ? fontObj.fontMatrix : _util.FONT_IDENTITY_MATRIX; if (current.fontMatrix[0] === 0 || current.fontMatrix[3] === 0) { - (0, _util.warn)('Invalid font matrix for font ' + fontRefName); + (0, _util.warn)("Invalid font matrix for font " + fontRefName); } if (size < 0) { @@ -5163,9 +5142,9 @@ var CanvasGraphics = function CanvasGraphicsClosure() { return; } - var name = fontObj.loadedName || 'sans-serif'; - var bold = fontObj.black ? '900' : fontObj.bold ? 'bold' : 'normal'; - var italic = fontObj.italic ? 'italic' : 'normal'; + var name = fontObj.loadedName || "sans-serif"; + var bold = fontObj.black ? "900" : fontObj.bold ? "bold" : "normal"; + var italic = fontObj.italic ? "italic" : "normal"; var typeface = `"${name}", ${fontObj.fallbackName}`; var browserFontSize = size < MIN_FONT_SIZE ? MIN_FONT_SIZE : size > MAX_FONT_SIZE ? MAX_FONT_SIZE : size; this.current.fontSizeScale = size / browserFontSize; @@ -5254,9 +5233,9 @@ var CanvasGraphics = function CanvasGraphicsClosure() { get isFontSubpixelAAEnabled() { const { context: ctx - } = this.cachedCanvases.getCanvas('isFontSubpixelAAEnabled', 10, 10); + } = this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled", 10, 10); ctx.scale(1.5, 1); - ctx.fillText('I', 0, 10); + ctx.fillText("I", 0, 10); var data = ctx.getImageData(0, 0, 10, 10).data; var enabled = false; @@ -5267,7 +5246,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { } } - return (0, _util.shadow)(this, 'isFontSubpixelAAEnabled', enabled); + return (0, _util.shadow)(this, "isFontSubpixelAAEnabled", enabled); }, showText: function CanvasGraphics_showText(glyphs) { @@ -5481,7 +5460,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { getColorN_Pattern: function CanvasGraphics_getColorN_Pattern(IR) { var pattern; - if (IR[0] === 'TilingPattern') { + if (IR[0] === "TilingPattern") { var color = IR[1]; var baseTransform = this.baseTransform || this.ctx.mozCurrentTransform.slice(); var canvasGraphicsFactory = { @@ -5548,10 +5527,10 @@ var CanvasGraphics = function CanvasGraphicsClosure() { this.restore(); }, beginInlineImage: function CanvasGraphics_beginInlineImage() { - (0, _util.unreachable)('Should not call beginInlineImage'); + (0, _util.unreachable)("Should not call beginInlineImage"); }, beginImageData: function CanvasGraphics_beginImageData() { - (0, _util.unreachable)('Should not call beginImageData'); + (0, _util.unreachable)("Should not call beginImageData"); }, paintFormXObjectBegin: function CanvasGraphics_paintFormXObjectBegin(matrix, bbox) { this.save(); @@ -5580,11 +5559,11 @@ var CanvasGraphics = function CanvasGraphicsClosure() { var currentCtx = this.ctx; if (!group.isolated) { - (0, _util.info)('TODO: Support non-isolated groups.'); + (0, _util.info)("TODO: Support non-isolated groups."); } if (group.knockout) { - (0, _util.warn)('Knockout groups not supported.'); + (0, _util.warn)("Knockout groups not supported."); } var currentTransform = currentCtx.mozCurrentTransform; @@ -5594,7 +5573,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { } if (!group.bbox) { - throw new Error('Bounding box is required.'); + throw new Error("Bounding box is required."); } var bounds = _util.Util.getAxialAlignedBoundingBox(group.bbox, currentCtx.mozCurrentTransform); @@ -5618,10 +5597,10 @@ var CanvasGraphics = function CanvasGraphicsClosure() { drawnHeight = MAX_GROUP_SIZE; } - var cacheId = 'groupAt' + this.groupLevel; + var cacheId = "groupAt" + this.groupLevel; if (group.smask) { - cacheId += '_smask_' + this.smaskCounter++ % 2; + cacheId += "_smask_" + this.smaskCounter++ % 2; } var scratchCanvas = this.cachedCanvases.getCanvas(cacheId, drawnWidth, drawnHeight, true); @@ -5651,7 +5630,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { copyCtxState(currentCtx, groupCtx); this.ctx = groupCtx; - this.setGState([['BM', 'source-over'], ['ca', 1], ['CA', 1]]); + this.setGState([["BM", "source-over"], ["ca", 1], ["CA", 1]]); this.groupStack.push(currentCtx); this.groupLevel++; this.current.activeSMask = null; @@ -5708,7 +5687,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { const domImage = this.processingType3 ? this.commonObjs.get(objId) : this.objs.get(objId); if (!domImage) { - (0, _util.warn)('Dependent image isn\'t ready yet'); + (0, _util.warn)("Dependent image isn't ready yet"); return; } @@ -5756,11 +5735,11 @@ var CanvasGraphics = function CanvasGraphicsClosure() { return; } - var maskCanvas = this.cachedCanvases.getCanvas('maskCanvas', width, height); + var maskCanvas = this.cachedCanvases.getCanvas("maskCanvas", width, height); var maskCtx = maskCanvas.context; maskCtx.save(); putBinaryImageMask(maskCtx, img); - maskCtx.globalCompositeOperation = 'source-in'; + maskCtx.globalCompositeOperation = "source-in"; maskCtx.fillStyle = isPatternFill ? fillColor.getPattern(maskCtx, this) : fillColor; maskCtx.fillRect(0, 0, width, height); maskCtx.restore(); @@ -5771,11 +5750,11 @@ var CanvasGraphics = function CanvasGraphicsClosure() { var height = imgData.height; var fillColor = this.current.fillColor; var isPatternFill = this.current.patternFill; - var maskCanvas = this.cachedCanvases.getCanvas('maskCanvas', width, height); + var maskCanvas = this.cachedCanvases.getCanvas("maskCanvas", width, height); var maskCtx = maskCanvas.context; maskCtx.save(); putBinaryImageMask(maskCtx, imgData); - maskCtx.globalCompositeOperation = 'source-in'; + maskCtx.globalCompositeOperation = "source-in"; maskCtx.fillStyle = isPatternFill ? fillColor.getPattern(maskCtx, this) : fillColor; maskCtx.fillRect(0, 0, width, height); maskCtx.restore(); @@ -5798,11 +5777,11 @@ var CanvasGraphics = function CanvasGraphicsClosure() { var image = images[i]; var width = image.width, height = image.height; - var maskCanvas = this.cachedCanvases.getCanvas('maskCanvas', width, height); + var maskCanvas = this.cachedCanvases.getCanvas("maskCanvas", width, height); var maskCtx = maskCanvas.context; maskCtx.save(); putBinaryImageMask(maskCtx, image); - maskCtx.globalCompositeOperation = 'source-in'; + maskCtx.globalCompositeOperation = "source-in"; maskCtx.fillStyle = isPatternFill ? fillColor.getPattern(maskCtx, this) : fillColor; maskCtx.fillRect(0, 0, width, height); maskCtx.restore(); @@ -5817,7 +5796,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { const imgData = this.processingType3 ? this.commonObjs.get(objId) : this.objs.get(objId); if (!imgData) { - (0, _util.warn)('Dependent image isn\'t ready yet'); + (0, _util.warn)("Dependent image isn't ready yet"); return; } @@ -5827,7 +5806,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { const imgData = this.processingType3 ? this.commonObjs.get(objId) : this.objs.get(objId); if (!imgData) { - (0, _util.warn)('Dependent image isn\'t ready yet'); + (0, _util.warn)("Dependent image isn't ready yet"); return; } @@ -5862,10 +5841,10 @@ var CanvasGraphics = function CanvasGraphicsClosure() { var heightScale = Math.max(Math.sqrt(c * c + d * d), 1); var imgToPaint, tmpCanvas; - if (typeof HTMLElement === 'function' && imgData instanceof HTMLElement || !imgData.data) { + if (typeof HTMLElement === "function" && imgData instanceof HTMLElement || !imgData.data) { imgToPaint = imgData; } else { - tmpCanvas = this.cachedCanvases.getCanvas('inlineImage', width, height); + tmpCanvas = this.cachedCanvases.getCanvas("inlineImage", width, height); var tmpCtx = tmpCanvas.context; putBinaryImageData(tmpCtx, imgData); imgToPaint = tmpCanvas.canvas; @@ -5873,7 +5852,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { var paintWidth = width, paintHeight = height; - var tmpCanvasId = 'prescale1'; + var tmpCanvasId = "prescale1"; while (widthScale > 2 && paintWidth > 1 || heightScale > 2 && paintHeight > 1) { var newWidth = paintWidth, @@ -5896,7 +5875,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { imgToPaint = tmpCanvas.canvas; paintWidth = newWidth; paintHeight = newHeight; - tmpCanvasId = tmpCanvasId === 'prescale1' ? 'prescale2' : 'prescale1'; + tmpCanvasId = tmpCanvasId === "prescale1" ? "prescale2" : "prescale1"; } ctx.drawImage(imgToPaint, 0, 0, paintWidth, paintHeight, 0, -height, width, height); @@ -5918,7 +5897,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { var ctx = this.ctx; var w = imgData.width; var h = imgData.height; - var tmpCanvas = this.cachedCanvases.getCanvas('inlineImage', w, h); + var tmpCanvas = this.cachedCanvases.getCanvas("inlineImage", w, h); var tmpCtx = tmpCanvas.context; putBinaryImageData(tmpCtx, imgData); @@ -5947,7 +5926,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { this.ctx.fillRect(0, 0, 1, 1); }, paintXObject: function CanvasGraphics_paintXObject() { - (0, _util.warn)('Unsupported \'paintXObject\' command.'); + (0, _util.warn)("Unsupported 'paintXObject' command."); }, markPoint: function CanvasGraphics_markPoint(tag) {}, markPointProps: function CanvasGraphics_markPointProps(tag, properties) {}, @@ -5961,7 +5940,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { if (this.pendingClip) { if (this.pendingClip === EO_CLIP) { - ctx.clip('evenodd'); + ctx.clip("evenodd"); } else { ctx.clip(); } @@ -5997,7 +5976,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() { exports.CanvasGraphics = CanvasGraphics; /***/ }), -/* 9 */ +/* 8 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -6014,7 +5993,7 @@ var _util = __w_pdfjs_require__(1); var ShadingIRs = {}; function applyBoundingBox(ctx, bbox) { - if (!bbox || typeof Path2D === 'undefined') { + if (!bbox || typeof Path2D === "undefined") { return; } @@ -6035,14 +6014,14 @@ ShadingIRs.RadialAxial = { var r0 = raw[6]; var r1 = raw[7]; return { - type: 'Pattern', + type: "Pattern", getPattern: function RadialAxial_getPattern(ctx) { applyBoundingBox(ctx, bbox); var grad; - if (type === 'axial') { + if (type === "axial") { grad = ctx.createLinearGradient(p0[0], p0[1], p1[0], p1[1]); - } else if (type === 'radial') { + } else if (type === "radial") { grad = ctx.createRadialGradient(p0[0], p0[1], r0, p1[0], p1[1], r1); } @@ -6159,7 +6138,7 @@ var createMeshCanvas = function createMeshCanvasClosure() { var i, ii; switch (figure.type) { - case 'lattice': + case "lattice": var verticesPerRow = figure.verticesPerRow; var rows = Math.floor(ps.length / verticesPerRow) - 1; var cols = verticesPerRow - 1; @@ -6175,7 +6154,7 @@ var createMeshCanvas = function createMeshCanvasClosure() { break; - case 'triangles': + case "triangles": for (i = 0, ii = ps.length; i < ii; i += 3) { drawTriangle(data, context, ps[i], ps[i + 1], ps[i + 2], cs[i], cs[i + 1], cs[i + 2]); } @@ -6183,7 +6162,7 @@ var createMeshCanvas = function createMeshCanvasClosure() { break; default: - throw new Error('illegal figure'); + throw new Error("illegal figure"); } } @@ -6219,11 +6198,11 @@ var createMeshCanvas = function createMeshCanvasClosure() { figures, context }); - tmpCanvas = cachedCanvases.getCanvas('mesh', paddedWidth, paddedHeight, false); + tmpCanvas = cachedCanvases.getCanvas("mesh", paddedWidth, paddedHeight, false); tmpCanvas.context.drawImage(canvas, BORDER_SIZE, BORDER_SIZE); canvas = tmpCanvas.canvas; } else { - tmpCanvas = cachedCanvases.getCanvas('mesh', paddedWidth, paddedHeight, false); + tmpCanvas = cachedCanvases.getCanvas("mesh", paddedWidth, paddedHeight, false); var tmpCtx = tmpCanvas.context; var data = tmpCtx.createImageData(width, height); @@ -6268,7 +6247,7 @@ ShadingIRs.Mesh = { var bbox = raw[7]; var background = raw[8]; return { - type: 'Pattern', + type: "Pattern", getPattern: function Mesh_getPattern(ctx, owner, shadingFill) { applyBoundingBox(ctx, bbox); var scale; @@ -6297,7 +6276,7 @@ ShadingIRs.Mesh = { ctx.translate(temporaryPatternCanvas.offsetX, temporaryPatternCanvas.offsetY); ctx.scale(temporaryPatternCanvas.scaleX, temporaryPatternCanvas.scaleY); - return ctx.createPattern(temporaryPatternCanvas.canvas, 'no-repeat'); + return ctx.createPattern(temporaryPatternCanvas.canvas, "no-repeat"); } }; } @@ -6305,9 +6284,9 @@ ShadingIRs.Mesh = { ShadingIRs.Dummy = { fromIR: function Dummy_fromIR() { return { - type: 'Pattern', + type: "Pattern", getPattern: function Dummy_fromIR_getPattern() { - return 'hotpink'; + return "hotpink"; } }; } @@ -6341,7 +6320,7 @@ var TilingPattern = function TilingPatternClosure() { this.color = color; this.canvasGraphicsFactory = canvasGraphicsFactory; this.baseTransform = baseTransform; - this.type = 'Pattern'; + this.type = "Pattern"; this.ctx = ctx; } @@ -6355,7 +6334,7 @@ var TilingPattern = function TilingPatternClosure() { var tilingType = this.tilingType; var color = this.color; var canvasGraphicsFactory = this.canvasGraphicsFactory; - (0, _util.info)('TilingType: ' + tilingType); + (0, _util.info)("TilingType: " + tilingType); var x0 = bbox[0], y0 = bbox[1], x1 = bbox[2], @@ -6368,7 +6347,7 @@ var TilingPattern = function TilingPatternClosure() { var combinedScale = [matrixScale[0] * curMatrixScale[0], matrixScale[1] * curMatrixScale[1]]; var dimx = this.getSizeAndScale(xstep, this.ctx.canvas.width, combinedScale[0]); var dimy = this.getSizeAndScale(ystep, this.ctx.canvas.height, combinedScale[1]); - var tmpCanvas = owner.cachedCanvases.getCanvas('pattern', dimx.size, dimy.size, true); + var tmpCanvas = owner.cachedCanvases.getCanvas("pattern", dimx.size, dimy.size, true); var tmpCtx = tmpCanvas.context; var graphics = canvasGraphicsFactory.createCanvasGraphics(tmpCtx); graphics.groupLevel = owner.groupLevel; @@ -6437,7 +6416,7 @@ var TilingPattern = function TilingPatternClosure() { ctx.setTransform.apply(ctx, this.baseTransform); ctx.transform.apply(ctx, this.matrix); var temporaryPatternCanvas = this.createPatternCanvas(owner); - return ctx.createPattern(temporaryPatternCanvas, 'repeat'); + return ctx.createPattern(temporaryPatternCanvas, "repeat"); } }; return TilingPattern; @@ -6446,7 +6425,7 @@ var TilingPattern = function TilingPatternClosure() { exports.TilingPattern = TilingPattern; /***/ }), -/* 10 */ +/* 9 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -6459,7 +6438,21 @@ exports.GlobalWorkerOptions = void 0; const GlobalWorkerOptions = Object.create(null); exports.GlobalWorkerOptions = GlobalWorkerOptions; GlobalWorkerOptions.workerPort = GlobalWorkerOptions.workerPort === undefined ? null : GlobalWorkerOptions.workerPort; -GlobalWorkerOptions.workerSrc = GlobalWorkerOptions.workerSrc === undefined ? '' : GlobalWorkerOptions.workerSrc; +GlobalWorkerOptions.workerSrc = GlobalWorkerOptions.workerSrc === undefined ? "" : GlobalWorkerOptions.workerSrc; + +/***/ }), +/* 10 */ +/***/ (function(module, exports, __w_pdfjs_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.isNodeJS = void 0; +const isNodeJS = typeof process === "object" && process + "" === "[object process]" && !process.versions["nw"] && !process.versions["electron"]; +exports.isNodeJS = isNodeJS; /***/ }), /* 11 */ @@ -6493,21 +6486,21 @@ const StreamKind = { }; function wrapReason(reason) { - if (typeof reason !== 'object' || reason === null) { + if (typeof reason !== "object" || reason === null) { return reason; } switch (reason.name) { - case 'AbortException': + case "AbortException": return new _util.AbortException(reason.message); - case 'MissingPDFException': + case "MissingPDFException": return new _util.MissingPDFException(reason.message); - case 'UnexpectedResponseException': + case "UnexpectedResponseException": return new _util.UnexpectedResponseException(reason.message, reason.status); - case 'UnknownErrorException': + case "UnknownErrorException": return new _util.UnknownErrorException(reason.message, reason.details); default: @@ -6556,7 +6549,7 @@ class MessageHandler { } else if (data.callback === CallbackKind.ERROR) { capability.reject(wrapReason(data.reason)); } else { - throw new Error('Unexpected callback case'); + throw new Error("Unexpected callback case"); } return; @@ -6602,7 +6595,7 @@ class MessageHandler { action(data.data); }; - comObj.addEventListener('message', this._onComObjOnMessage); + comObj.addEventListener("message", this._onComObjOnMessage); } on(actionName, handler) { @@ -6649,7 +6642,7 @@ class MessageHandler { const sourceName = this.sourceName; const targetName = this.targetName; const comObj = this.comObj; - return new _util.ReadableStream({ + return new ReadableStream({ start: controller => { const startCapability = (0, _util.createPromiseCapability)(); this.streamControllers[streamId] = { @@ -6684,7 +6677,7 @@ class MessageHandler { return pullCapability.promise; }, cancel: reason => { - (0, _util.assert)(reason instanceof Error, 'cancel must have a valid reason'); + (0, _util.assert)(reason instanceof Error, "cancel must have a valid reason"); const cancelCapability = (0, _util.createPromiseCapability)(); this.streamControllers[streamId].cancelCall = cancelCapability; this.streamControllers[streamId].isClosed = true; @@ -6746,7 +6739,7 @@ class MessageHandler { }, error(reason) { - (0, _util.assert)(reason instanceof Error, 'error must have a valid reason'); + (0, _util.assert)(reason instanceof Error, "error must have a valid reason"); if (this.isCancelled) { return; @@ -6860,7 +6853,7 @@ class MessageHandler { break; case StreamKind.ENQUEUE: - (0, _util.assert)(this.streamControllers[streamId], 'enqueue should have stream controller'); + (0, _util.assert)(this.streamControllers[streamId], "enqueue should have stream controller"); if (this.streamControllers[streamId].isClosed) { break; @@ -6870,7 +6863,7 @@ class MessageHandler { break; case StreamKind.CLOSE: - (0, _util.assert)(this.streamControllers[streamId], 'close should have stream controller'); + (0, _util.assert)(this.streamControllers[streamId], "close should have stream controller"); if (this.streamControllers[streamId].isClosed) { break; @@ -6884,7 +6877,7 @@ class MessageHandler { break; case StreamKind.ERROR: - (0, _util.assert)(this.streamControllers[streamId], 'error should have stream controller'); + (0, _util.assert)(this.streamControllers[streamId], "error should have stream controller"); this.streamControllers[streamId].controller.error(wrapReason(data.reason)); this._deleteStreamController(streamId); @@ -6935,7 +6928,7 @@ class MessageHandler { break; default: - throw new Error('Unexpected stream case'); + throw new Error("Unexpected stream case"); } } @@ -6955,7 +6948,7 @@ class MessageHandler { } destroy() { - this.comObj.removeEventListener('message', this._onComObjOnMessage); + this.comObj.removeEventListener("message", this._onComObjOnMessage); } } @@ -6980,7 +6973,7 @@ var _xml_parser = __w_pdfjs_require__(13); class Metadata { constructor(data) { - (0, _util.assert)(typeof data === 'string', 'Metadata: input is not a string'); + (0, _util.assert)(typeof data === "string", "Metadata: input is not a string"); data = this._repair(data); let parser = new _xml_parser.SimpleXMLParser(); const xmlDocument = parser.parseFromString(data); @@ -6992,30 +6985,30 @@ class Metadata { } _repair(data) { - return data.replace(/^([^<]+)/, '').replace(/>\\376\\377([^<]+)/g, function (all, codes) { + return data.replace(/^([^<]+)/, "").replace(/>\\376\\377([^<]+)/g, function (all, codes) { let bytes = codes.replace(/\\([0-3])([0-7])([0-7])/g, function (code, d1, d2, d3) { return String.fromCharCode(d1 * 64 + d2 * 8 + d3 * 1); }).replace(/&(amp|apos|gt|lt|quot);/g, function (str, name) { switch (name) { - case 'amp': - return '&'; + case "amp": + return "&"; - case 'apos': - return '\''; + case "apos": + return "'"; - case 'gt': - return '>'; + case "gt": + return ">"; - case 'lt': - return '<'; + case "lt": + return "<"; - case 'quot': - return '\"'; + case "quot": + return '"'; } throw new Error(`_repair: ${name} isn't defined.`); }); - let chars = ''; + let chars = ""; for (let i = 0, ii = bytes.length; i < ii; i += 2) { let code = bytes.charCodeAt(i) * 256 + bytes.charCodeAt(i + 1); @@ -7023,28 +7016,28 @@ class Metadata { if (code >= 32 && code < 127 && code !== 60 && code !== 62 && code !== 38) { chars += String.fromCharCode(code); } else { - chars += '&#x' + (0x10000 + code).toString(16).substring(1) + ';'; + chars += "&#x" + (0x10000 + code).toString(16).substring(1) + ";"; } } - return '>' + chars; + return ">" + chars; }); } _parse(xmlDocument) { let rdf = xmlDocument.documentElement; - if (rdf.nodeName.toLowerCase() !== 'rdf:rdf') { + if (rdf.nodeName.toLowerCase() !== "rdf:rdf") { rdf = rdf.firstChild; - while (rdf && rdf.nodeName.toLowerCase() !== 'rdf:rdf') { + while (rdf && rdf.nodeName.toLowerCase() !== "rdf:rdf") { rdf = rdf.nextSibling; } } let nodeName = rdf ? rdf.nodeName.toLowerCase() : null; - if (!rdf || nodeName !== 'rdf:rdf' || !rdf.hasChildNodes()) { + if (!rdf || nodeName !== "rdf:rdf" || !rdf.hasChildNodes()) { return; } @@ -7053,12 +7046,12 @@ class Metadata { for (let i = 0, ii = children.length; i < ii; i++) { let desc = children[i]; - if (desc.nodeName.toLowerCase() !== 'rdf:description') { + if (desc.nodeName.toLowerCase() !== "rdf:description") { continue; } for (let j = 0, jj = desc.childNodes.length; j < jj; j++) { - if (desc.childNodes[j].nodeName.toLowerCase() !== '#text') { + if (desc.childNodes[j].nodeName.toLowerCase() !== "#text") { let entry = desc.childNodes[j]; let name = entry.nodeName.toLowerCase(); this._metadata[name] = entry.textContent.trim(); @@ -7069,7 +7062,7 @@ class Metadata { get(name) { const data = this._metadata[name]; - return typeof data !== 'undefined' ? data : null; + return typeof data !== "undefined" ? data : null; } getAll() { @@ -7077,7 +7070,7 @@ class Metadata { } has(name) { - return typeof this._metadata[name] !== 'undefined'; + return typeof this._metadata[name] !== "undefined"; } } @@ -7111,7 +7104,7 @@ const XMLParserErrorCode = { function isWhitespace(s, index) { const ch = s[index]; - return ch === ' ' || ch === '\n' || ch === '\r' || ch === '\t'; + return ch === " " || ch === "\n" || ch === "\r" || ch === "\t"; } function isWhitespaceString(s) { @@ -7127,24 +7120,24 @@ function isWhitespaceString(s) { class XMLParserBase { _resolveEntities(s) { return s.replace(/&([^;]+);/g, (all, entity) => { - if (entity.substring(0, 2) === '#x') { + if (entity.substring(0, 2) === "#x") { return String.fromCharCode(parseInt(entity.substring(2), 16)); - } else if (entity.substring(0, 1) === '#') { + } else if (entity.substring(0, 1) === "#") { return String.fromCharCode(parseInt(entity.substring(1), 10)); } switch (entity) { - case 'lt': - return '<'; + case "lt": + return "<"; - case 'gt': - return '>'; + case "gt": + return ">"; - case 'amp': - return '&'; + case "amp": + return "&"; - case 'quot': - return '\"'; + case "quot": + return '"'; } return this.onResolveEntity(entity); @@ -7162,26 +7155,26 @@ class XMLParserBase { } } - while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== '>' && s[pos] !== '/') { + while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== ">" && s[pos] !== "/") { ++pos; } name = s.substring(start, pos); skipWs(); - while (pos < s.length && s[pos] !== '>' && s[pos] !== '/' && s[pos] !== '?') { + while (pos < s.length && s[pos] !== ">" && s[pos] !== "/" && s[pos] !== "?") { skipWs(); - let attrName = '', - attrValue = ''; + let attrName = "", + attrValue = ""; - while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== '=') { + while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== "=") { attrName += s[pos]; ++pos; } skipWs(); - if (s[pos] !== '=') { + if (s[pos] !== "=") { return null; } @@ -7189,7 +7182,7 @@ class XMLParserBase { skipWs(); const attrEndChar = s[pos]; - if (attrEndChar !== '\"' && attrEndChar !== '\'') { + if (attrEndChar !== '"' && attrEndChar !== "'") { return null; } @@ -7226,7 +7219,7 @@ class XMLParserBase { } } - while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== '>' && s[pos] !== '/') { + while (pos < s.length && !isWhitespace(s, pos) && s[pos] !== ">" && s[pos] !== "/") { ++pos; } @@ -7234,7 +7227,7 @@ class XMLParserBase { skipWs(); const attrStart = pos; - while (pos < s.length && (s[pos] !== '?' || s[pos + 1] !== '>')) { + while (pos < s.length && (s[pos] !== "?" || s[pos + 1] !== ">")) { ++pos; } @@ -7253,15 +7246,15 @@ class XMLParserBase { const ch = s[i]; let j = i; - if (ch === '<') { + if (ch === "<") { ++j; const ch2 = s[j]; let q; switch (ch2) { - case '/': + case "/": ++j; - q = s.indexOf('>', j); + q = s.indexOf(">", j); if (q < 0) { this.onError(XMLParserErrorCode.UnterminatedElement); @@ -7272,12 +7265,12 @@ class XMLParserBase { j = q + 1; break; - case '?': + case "?": ++j; const pi = this._parseProcessingInstruction(s, j); - if (s.substring(j + pi.parsed, j + pi.parsed + 2) !== '?>') { + if (s.substring(j + pi.parsed, j + pi.parsed + 2) !== "?>") { this.onError(XMLParserErrorCode.UnterminatedXmlDeclaration); return; } @@ -7286,9 +7279,9 @@ class XMLParserBase { j += pi.parsed + 2; break; - case '!': - if (s.substring(j + 1, j + 3) === '--') { - q = s.indexOf('-->', j + 3); + case "!": + if (s.substring(j + 1, j + 3) === "--") { + q = s.indexOf("-->", j + 3); if (q < 0) { this.onError(XMLParserErrorCode.UnterminatedComment); @@ -7297,8 +7290,8 @@ class XMLParserBase { this.onComment(s.substring(j + 3, q)); j = q + 3; - } else if (s.substring(j + 1, j + 8) === '[CDATA[') { - q = s.indexOf(']]>', j + 8); + } else if (s.substring(j + 1, j + 8) === "[CDATA[") { + q = s.indexOf("]]>", j + 8); if (q < 0) { this.onError(XMLParserErrorCode.UnterminatedCdat); @@ -7307,10 +7300,10 @@ class XMLParserBase { this.onCdata(s.substring(j + 8, q)); j = q + 3; - } else if (s.substring(j + 1, j + 8) === 'DOCTYPE') { - const q2 = s.indexOf('[', j + 8); + } else if (s.substring(j + 1, j + 8) === "DOCTYPE") { + const q2 = s.indexOf("[", j + 8); let complexDoctype = false; - q = s.indexOf('>', j + 8); + q = s.indexOf(">", j + 8); if (q < 0) { this.onError(XMLParserErrorCode.UnterminatedDoctypeDeclaration); @@ -7318,7 +7311,7 @@ class XMLParserBase { } if (q2 > 0 && q > q2) { - q = s.indexOf(']>', j + 8); + q = s.indexOf("]>", j + 8); if (q < 0) { this.onError(XMLParserErrorCode.UnterminatedDoctypeDeclaration); @@ -7348,9 +7341,9 @@ class XMLParserBase { let isClosed = false; - if (s.substring(j + content.parsed, j + content.parsed + 2) === '/>') { + if (s.substring(j + content.parsed, j + content.parsed + 2) === "/>") { isClosed = true; - } else if (s.substring(j + content.parsed, j + content.parsed + 1) !== '>') { + } else if (s.substring(j + content.parsed, j + content.parsed + 1) !== ">") { this.onError(XMLParserErrorCode.UnterminatedElement); return; } @@ -7360,7 +7353,7 @@ class XMLParserBase { break; } } else { - while (j < s.length && s[j] !== '<') { + while (j < s.length && s[j] !== "<") { j++; } @@ -7398,7 +7391,7 @@ class SimpleDOMNode { constructor(nodeName, nodeValue) { this.nodeName = nodeName; this.nodeValue = nodeValue; - Object.defineProperty(this, 'parentNode', { + Object.defineProperty(this, "parentNode", { value: null, writable: true }); @@ -7426,12 +7419,12 @@ class SimpleDOMNode { get textContent() { if (!this.childNodes) { - return this.nodeValue || ''; + return this.nodeValue || ""; } return this.childNodes.map(function (child) { return child.textContent; - }).join(''); + }).join(""); } hasChildNodes() { @@ -7471,8 +7464,8 @@ class SimpleXMLParser extends XMLParserBase { onResolveEntity(name) { switch (name) { - case 'apos': - return '\''; + case "apos": + return "'"; } return super.onResolveEntity(name); @@ -7483,13 +7476,13 @@ class SimpleXMLParser extends XMLParserBase { return; } - const node = new SimpleDOMNode('#text', text); + const node = new SimpleDOMNode("#text", text); this._currentFragment.push(node); } onCdata(text) { - const node = new SimpleDOMNode('#text', text); + const node = new SimpleDOMNode("#text", text); this._currentFragment.push(node); } @@ -7913,7 +7906,7 @@ class WebGLContext { enabled = WebGLUtils.tryInitGL(); } - return (0, _util.shadow)(this, 'isEnabled', enabled); + return (0, _util.shadow)(this, "isEnabled", enabled); } composeSMask({ @@ -7951,7 +7944,7 @@ var WebGLUtils = function WebGLUtilsClosure() { if (!compiled) { var errorMsg = gl.getShaderInfoLog(shader); - throw new Error('Error during shader compilation: ' + errorMsg); + throw new Error("Error during shader compilation: " + errorMsg); } return shader; @@ -7977,7 +7970,7 @@ var WebGLUtils = function WebGLUtilsClosure() { if (!linked) { var errorMsg = gl.getProgramInfoLog(program); - throw new Error('Error during program linking: ' + errorMsg); + throw new Error("Error during program linking: " + errorMsg); } return program; @@ -8002,13 +7995,13 @@ var WebGLUtils = function WebGLUtilsClosure() { return; } - currentCanvas = document.createElement('canvas'); - currentGL = currentCanvas.getContext('webgl', { + currentCanvas = document.createElement("canvas"); + currentGL = currentCanvas.getContext("webgl", { premultipliedalpha: false }); } - var smaskVertexShaderCode = '\ + var smaskVertexShaderCode = "\ attribute vec2 a_position; \ attribute vec2 a_texCoord; \ \ @@ -8021,8 +8014,8 @@ var WebGLUtils = function WebGLUtilsClosure() { gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); \ \ v_texCoord = a_texCoord; \ - } '; - var smaskFragmentShaderCode = '\ + } "; + var smaskFragmentShaderCode = "\ precision mediump float; \ \ uniform vec4 u_backdrop; \ @@ -8049,7 +8042,7 @@ var WebGLUtils = function WebGLUtilsClosure() { imageColor.a *= lum; \ imageColor.rgb *= imageColor.a; \ gl_FragColor = imageColor; \ - } '; + } "; var smaskCache = null; function initSmaskGL() { @@ -8066,13 +8059,13 @@ var WebGLUtils = function WebGLUtilsClosure() { var cache = {}; cache.gl = gl; cache.canvas = canvas; - cache.resolutionLocation = gl.getUniformLocation(program, 'u_resolution'); - cache.positionLocation = gl.getAttribLocation(program, 'a_position'); - cache.backdropLocation = gl.getUniformLocation(program, 'u_backdrop'); - cache.subtypeLocation = gl.getUniformLocation(program, 'u_subtype'); - var texCoordLocation = gl.getAttribLocation(program, 'a_texCoord'); - var texLayerLocation = gl.getUniformLocation(program, 'u_image'); - var texMaskLocation = gl.getUniformLocation(program, 'u_mask'); + cache.resolutionLocation = gl.getUniformLocation(program, "u_resolution"); + cache.positionLocation = gl.getAttribLocation(program, "a_position"); + cache.backdropLocation = gl.getUniformLocation(program, "u_backdrop"); + cache.subtypeLocation = gl.getUniformLocation(program, "u_subtype"); + var texCoordLocation = gl.getAttribLocation(program, "a_texCoord"); + var texLayerLocation = gl.getUniformLocation(program, "u_image"); + var texMaskLocation = gl.getUniformLocation(program, "u_mask"); var texCoordBuffer = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, texCoordBuffer); gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0]), gl.STATIC_DRAW); @@ -8105,7 +8098,7 @@ var WebGLUtils = function WebGLUtilsClosure() { gl.uniform4f(cache.resolutionLocation, 0, 0, 0, 0); } - gl.uniform1i(cache.subtypeLocation, properties.subtype === 'Luminosity' ? 1 : 0); + gl.uniform1i(cache.subtypeLocation, properties.subtype === "Luminosity" ? 1 : 0); var texture = createTexture(gl, layer, gl.TEXTURE0); var maskTexture = createTexture(gl, mask, gl.TEXTURE1); var buffer = gl.createBuffer(); @@ -8125,7 +8118,7 @@ var WebGLUtils = function WebGLUtilsClosure() { return canvas; } - var figuresVertexShaderCode = '\ + var figuresVertexShaderCode = "\ attribute vec2 a_position; \ attribute vec3 a_color; \ \ @@ -8141,15 +8134,15 @@ var WebGLUtils = function WebGLUtilsClosure() { gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); \ \ v_color = vec4(a_color / 255.0, 1.0); \ - } '; - var figuresFragmentShaderCode = '\ + } "; + var figuresFragmentShaderCode = "\ precision mediump float; \ \ varying vec4 v_color; \ \ void main() { \ gl_FragColor = v_color; \ - } '; + } "; var figuresCache = null; function initFiguresGL() { @@ -8166,11 +8159,11 @@ var WebGLUtils = function WebGLUtilsClosure() { var cache = {}; cache.gl = gl; cache.canvas = canvas; - cache.resolutionLocation = gl.getUniformLocation(program, 'u_resolution'); - cache.scaleLocation = gl.getUniformLocation(program, 'u_scale'); - cache.offsetLocation = gl.getUniformLocation(program, 'u_offset'); - cache.positionLocation = gl.getAttribLocation(program, 'a_position'); - cache.colorLocation = gl.getAttribLocation(program, 'a_color'); + cache.resolutionLocation = gl.getUniformLocation(program, "u_resolution"); + cache.scaleLocation = gl.getUniformLocation(program, "u_scale"); + cache.offsetLocation = gl.getUniformLocation(program, "u_offset"); + cache.positionLocation = gl.getAttribLocation(program, "a_position"); + cache.colorLocation = gl.getAttribLocation(program, "a_color"); figuresCache = cache; } @@ -8191,12 +8184,12 @@ var WebGLUtils = function WebGLUtilsClosure() { for (i = 0, ii = figures.length; i < ii; i++) { switch (figures[i].type) { - case 'lattice': + case "lattice": rows = figures[i].coords.length / figures[i].verticesPerRow | 0; count += (rows - 1) * (figures[i].verticesPerRow - 1) * 6; break; - case 'triangles': + case "triangles": count += figures[i].coords.length; break; } @@ -8215,7 +8208,7 @@ var WebGLUtils = function WebGLUtilsClosure() { cs = figure.colors; switch (figure.type) { - case 'lattice': + case "lattice": var cols = figure.verticesPerRow; rows = ps.length / cols | 0; @@ -8260,7 +8253,7 @@ var WebGLUtils = function WebGLUtilsClosure() { break; - case 'triangles': + case "triangles": for (var j = 0, jj = ps.length; j < jj; j++) { coords[pIndex] = coordsMap[ps[j]]; coords[pIndex + 1] = coordsMap[ps[j] + 1]; @@ -8355,7 +8348,7 @@ var renderTextLayer = function renderTextLayerClosure() { } function appendText(task, geom, styles) { - var textDiv = document.createElement('span'); + var textDiv = document.createElement("span"); var textDivProperties = { angle: 0, canvasWidth: 0, @@ -8802,7 +8795,7 @@ var renderTextLayer = function renderTextLayerClosure() { this._canceled = true; if (this._reader) { - this._reader.cancel(new _util.AbortException('TextLayer task cancelled.')); + this._reader.cancel(new _util.AbortException("TextLayer task cancelled.")); this._reader = null; } @@ -8812,7 +8805,7 @@ var renderTextLayer = function renderTextLayerClosure() { this._renderTimer = null; } - this._capability.reject(new Error('TextLayer task cancelled.')); + this._capability.reject(new Error("TextLayer task cancelled.")); }, _processItems(items, styleCache) { @@ -8830,7 +8823,7 @@ var renderTextLayer = function renderTextLayerClosure() { return; } - let transform = ''; + let transform = ""; if (textDivProperties.canvasWidth !== 0) { const { @@ -8874,9 +8867,9 @@ var renderTextLayer = function renderTextLayerClosure() { _render: function TextLayer_render(timeout) { let capability = (0, _util.createPromiseCapability)(); let styleCache = Object.create(null); - let canvas = document.createElement('canvas'); + let canvas = document.createElement("canvas"); canvas.mozOpaque = true; - this._layoutTextCtx = canvas.getContext('2d', { + this._layoutTextCtx = canvas.getContext("2d", { alpha: false }); @@ -8909,7 +8902,7 @@ var renderTextLayer = function renderTextLayerClosure() { this._reader = this._textContentStream.getReader(); pump(); } else { - throw new Error('Neither "textContent" nor "textContentStream"' + ' parameters specified.'); + throw new Error('Neither "textContent" nor "textContentStream"' + " parameters specified."); } capability.promise.then(() => { @@ -8935,7 +8928,7 @@ var renderTextLayer = function renderTextLayerClosure() { this._bounds = null; } - const NO_PADDING = '0 0 0 0'; + const NO_PADDING = "0 0 0 0"; const transformBuf = [], paddingBuf = []; @@ -8982,14 +8975,14 @@ var renderTextLayer = function renderTextLayerClosure() { paddingBuf.push(0); } - const padding = paddingBuf.join(' '); + const padding = paddingBuf.join(" "); if (padding !== NO_PADDING) { div.style.padding = padding; } if (transformBuf.length) { - div.style.transform = transformBuf.join(' '); + div.style.transform = transformBuf.join(" "); } } else { div.style.padding = null; @@ -9032,7 +9025,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.AnnotationLayer = void 0; -var _display_utils = __w_pdfjs_require__(5); +var _display_utils = __w_pdfjs_require__(4); var _util = __w_pdfjs_require__(1); @@ -9051,10 +9044,10 @@ class AnnotationElementFactory { const fieldType = parameters.data.fieldType; switch (fieldType) { - case 'Tx': + case "Tx": return new TextWidgetAnnotationElement(parameters); - case 'Btn': + case "Btn": if (parameters.data.radioButton) { return new RadioButtonWidgetAnnotationElement(parameters); } else if (parameters.data.checkBox) { @@ -9063,7 +9056,7 @@ class AnnotationElementFactory { return new PushButtonWidgetAnnotationElement(parameters); - case 'Ch': + case "Ch": return new ChoiceWidgetAnnotationElement(parameters); } @@ -9143,14 +9136,14 @@ class AnnotationElement { const data = this.data, page = this.page, viewport = this.viewport; - const container = document.createElement('section'); + const container = document.createElement("section"); let width = data.rect[2] - data.rect[0]; let height = data.rect[3] - data.rect[1]; - container.setAttribute('data-annotation-id', data.id); + container.setAttribute("data-annotation-id", data.id); const rect = _util.Util.normalizeRect([data.rect[0], page.view[3] - data.rect[1] + page.view[1], data.rect[2], page.view[3] - data.rect[3] + page.view[1]]); - container.style.transform = `matrix(${viewport.transform.join(',')})`; + container.style.transform = `matrix(${viewport.transform.join(",")})`; container.style.transformOrigin = `-${rect[0]}px -${rect[1]}px`; if (!ignoreBorder && data.borderStyle.width > 0) { @@ -9171,23 +9164,23 @@ class AnnotationElement { switch (data.borderStyle.style) { case _util.AnnotationBorderStyleType.SOLID: - container.style.borderStyle = 'solid'; + container.style.borderStyle = "solid"; break; case _util.AnnotationBorderStyleType.DASHED: - container.style.borderStyle = 'dashed'; + container.style.borderStyle = "dashed"; break; case _util.AnnotationBorderStyleType.BEVELED: - (0, _util.warn)('Unimplemented border style: beveled'); + (0, _util.warn)("Unimplemented border style: beveled"); break; case _util.AnnotationBorderStyleType.INSET: - (0, _util.warn)('Unimplemented border style: inset'); + (0, _util.warn)("Unimplemented border style: inset"); break; case _util.AnnotationBorderStyleType.UNDERLINE: - container.style.borderBottomStyle = 'solid'; + container.style.borderBottomStyle = "solid"; break; default: @@ -9210,7 +9203,7 @@ class AnnotationElement { _createPopup(container, trigger, data) { if (!trigger) { - trigger = document.createElement('div'); + trigger = document.createElement("div"); trigger.style.height = container.style.height; trigger.style.width = container.style.width; container.appendChild(trigger); @@ -9231,7 +9224,7 @@ class AnnotationElement { } render() { - (0, _util.unreachable)('Abstract method `AnnotationElement.render` called'); + (0, _util.unreachable)("Abstract method `AnnotationElement.render` called"); } } @@ -9243,12 +9236,12 @@ class LinkAnnotationElement extends AnnotationElement { } render() { - this.container.className = 'linkAnnotation'; + this.container.className = "linkAnnotation"; const { data, linkService } = this; - const link = document.createElement('a'); + const link = document.createElement("a"); if (data.url) { (0, _display_utils.addLinkAttributes)(link, { @@ -9279,19 +9272,19 @@ class LinkAnnotationElement extends AnnotationElement { }; if (destination) { - link.className = 'internalLink'; + link.className = "internalLink"; } } _bindNamedAction(link, action) { - link.href = this.linkService.getAnchorUrl(''); + link.href = this.linkService.getAnchorUrl(""); link.onclick = () => { this.linkService.executeNamedAction(action); return false; }; - link.className = 'internalLink'; + link.className = "internalLink"; } } @@ -9303,13 +9296,13 @@ class TextAnnotationElement extends AnnotationElement { } render() { - this.container.className = 'textAnnotation'; - const image = document.createElement('img'); + this.container.className = "textAnnotation"; + const image = document.createElement("img"); image.style.height = this.container.style.height; image.style.width = this.container.style.width; - image.src = this.imageResourcesPath + 'annotation-' + this.data.name.toLowerCase() + '.svg'; - image.alt = '[{{type}} Annotation]'; - image.dataset.l10nId = 'text_annotation_type'; + image.src = this.imageResourcesPath + "annotation-" + this.data.name.toLowerCase() + ".svg"; + image.alt = "[{{type}} Annotation]"; + image.dataset.l10nId = "text_annotation_type"; image.dataset.l10nArgs = JSON.stringify({ type: this.data.name }); @@ -9338,18 +9331,18 @@ class TextWidgetAnnotationElement extends WidgetAnnotationElement { } render() { - const TEXT_ALIGNMENT = ['left', 'center', 'right']; - this.container.className = 'textWidgetAnnotation'; + const TEXT_ALIGNMENT = ["left", "center", "right"]; + this.container.className = "textWidgetAnnotation"; let element = null; if (this.renderInteractiveForms) { if (this.data.multiLine) { - element = document.createElement('textarea'); + element = document.createElement("textarea"); element.textContent = this.data.fieldValue; } else { - element = document.createElement('input'); - element.type = 'text'; - element.setAttribute('value', this.data.fieldValue); + element = document.createElement("input"); + element.type = "text"; + element.setAttribute("value", this.data.fieldValue); } element.disabled = this.data.readOnly; @@ -9361,14 +9354,14 @@ class TextWidgetAnnotationElement extends WidgetAnnotationElement { if (this.data.comb) { const fieldWidth = this.data.rect[2] - this.data.rect[0]; const combWidth = fieldWidth / this.data.maxLen; - element.classList.add('comb'); + element.classList.add("comb"); element.style.letterSpacing = `calc(${combWidth}px - 1ch)`; } } else { - element = document.createElement('div'); + element = document.createElement("div"); element.textContent = this.data.fieldValue; - element.style.verticalAlign = 'middle'; - element.style.display = 'table-cell'; + element.style.verticalAlign = "middle"; + element.style.display = "table-cell"; let font = null; if (this.data.fontRefName && this.page.commonObjs.has(this.data.fontRefName)) { @@ -9389,16 +9382,16 @@ class TextWidgetAnnotationElement extends WidgetAnnotationElement { _setTextStyle(element, font) { const style = element.style; style.fontSize = `${this.data.fontSize}px`; - style.direction = this.data.fontDirection < 0 ? 'rtl' : 'ltr'; + style.direction = this.data.fontDirection < 0 ? "rtl" : "ltr"; if (!font) { return; } - style.fontWeight = font.black ? font.bold ? '900' : 'bold' : font.bold ? 'bold' : 'normal'; - style.fontStyle = font.italic ? 'italic' : 'normal'; - const fontFamily = font.loadedName ? `"${font.loadedName}", ` : ''; - const fallbackName = font.fallbackName || 'Helvetica, sans-serif'; + style.fontWeight = font.black ? font.bold ? "900" : "bold" : font.bold ? "bold" : "normal"; + style.fontStyle = font.italic ? "italic" : "normal"; + const fontFamily = font.loadedName ? `"${font.loadedName}", ` : ""; + const fallbackName = font.fallbackName || "Helvetica, sans-serif"; style.fontFamily = fontFamily + fallbackName; } @@ -9410,13 +9403,13 @@ class CheckboxWidgetAnnotationElement extends WidgetAnnotationElement { } render() { - this.container.className = 'buttonWidgetAnnotation checkBox'; - const element = document.createElement('input'); + this.container.className = "buttonWidgetAnnotation checkBox"; + const element = document.createElement("input"); element.disabled = this.data.readOnly; - element.type = 'checkbox'; + element.type = "checkbox"; - if (this.data.fieldValue && this.data.fieldValue !== 'Off') { - element.setAttribute('checked', true); + if (this.data.fieldValue && this.data.fieldValue !== "Off") { + element.setAttribute("checked", true); } this.container.appendChild(element); @@ -9431,14 +9424,14 @@ class RadioButtonWidgetAnnotationElement extends WidgetAnnotationElement { } render() { - this.container.className = 'buttonWidgetAnnotation radioButton'; - const element = document.createElement('input'); + this.container.className = "buttonWidgetAnnotation radioButton"; + const element = document.createElement("input"); element.disabled = this.data.readOnly; - element.type = 'radio'; + element.type = "radio"; element.name = this.data.fieldName; if (this.data.fieldValue === this.data.buttonValue) { - element.setAttribute('checked', true); + element.setAttribute("checked", true); } this.container.appendChild(element); @@ -9450,7 +9443,7 @@ class RadioButtonWidgetAnnotationElement extends WidgetAnnotationElement { class PushButtonWidgetAnnotationElement extends LinkAnnotationElement { render() { const container = super.render(); - container.className = 'buttonWidgetAnnotation pushButton'; + container.className = "buttonWidgetAnnotation pushButton"; return container; } @@ -9462,8 +9455,8 @@ class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement { } render() { - this.container.className = 'choiceWidgetAnnotation'; - const selectElement = document.createElement('select'); + this.container.className = "choiceWidgetAnnotation"; + const selectElement = document.createElement("select"); selectElement.disabled = this.data.readOnly; if (!this.data.combo) { @@ -9475,12 +9468,12 @@ class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement { } for (const option of this.data.options) { - const optionElement = document.createElement('option'); + const optionElement = document.createElement("option"); optionElement.textContent = option.displayValue; optionElement.value = option.exportValue; if (this.data.fieldValue.includes(option.displayValue)) { - optionElement.setAttribute('selected', true); + optionElement.setAttribute("selected", true); } selectElement.appendChild(optionElement); @@ -9499,8 +9492,8 @@ class PopupAnnotationElement extends AnnotationElement { } render() { - const IGNORE_TYPES = ['Line', 'Square', 'Circle', 'PolyLine', 'Polygon', 'Ink']; - this.container.className = 'popupAnnotation'; + const IGNORE_TYPES = ["Line", "Square", "Circle", "PolyLine", "Polygon", "Ink"]; + this.container.className = "popupAnnotation"; if (IGNORE_TYPES.includes(this.data.parentType)) { return this.container; @@ -9545,12 +9538,12 @@ class PopupElement { render() { const BACKGROUND_ENLIGHT = 0.7; - const wrapper = document.createElement('div'); - wrapper.className = 'popupWrapper'; + const wrapper = document.createElement("div"); + wrapper.className = "popupWrapper"; this.hideElement = this.hideWrapper ? wrapper : this.container; - this.hideElement.setAttribute('hidden', true); - const popup = document.createElement('div'); - popup.className = 'popup'; + this.hideElement.setAttribute("hidden", true); + const popup = document.createElement("div"); + popup.className = "popup"; const color = this.color; if (color) { @@ -9560,16 +9553,16 @@ class PopupElement { popup.style.backgroundColor = _util.Util.makeCssRgb(r | 0, g | 0, b | 0); } - const title = document.createElement('h1'); + const title = document.createElement("h1"); title.textContent = this.title; popup.appendChild(title); const dateObject = _display_utils.PDFDateString.toDateObject(this.modificationDate); if (dateObject) { - const modificationDate = document.createElement('span'); - modificationDate.textContent = '{{date}}, {{time}}'; - modificationDate.dataset.l10nId = 'annotation_date_string'; + const modificationDate = document.createElement("span"); + modificationDate.textContent = "{{date}}, {{time}}"; + modificationDate.dataset.l10nId = "annotation_date_string"; modificationDate.dataset.l10nArgs = JSON.stringify({ date: dateObject.toLocaleDateString(), time: dateObject.toLocaleTimeString() @@ -9580,16 +9573,16 @@ class PopupElement { const contents = this._formatContents(this.contents); popup.appendChild(contents); - this.trigger.addEventListener('click', this._toggle.bind(this)); - this.trigger.addEventListener('mouseover', this._show.bind(this, false)); - this.trigger.addEventListener('mouseout', this._hide.bind(this, false)); - popup.addEventListener('click', this._hide.bind(this, true)); + this.trigger.addEventListener("click", this._toggle.bind(this)); + this.trigger.addEventListener("mouseover", this._show.bind(this, false)); + this.trigger.addEventListener("mouseout", this._hide.bind(this, false)); + popup.addEventListener("click", this._hide.bind(this, true)); wrapper.appendChild(popup); return wrapper; } _formatContents(contents) { - const p = document.createElement('p'); + const p = document.createElement("p"); const lines = contents.split(/(?:\r\n?|\n)/); for (let i = 0, ii = lines.length; i < ii; ++i) { @@ -9597,7 +9590,7 @@ class PopupElement { p.appendChild(document.createTextNode(line)); if (i < ii - 1) { - p.appendChild(document.createElement('br')); + p.appendChild(document.createElement("br")); } } @@ -9617,8 +9610,8 @@ class PopupElement { this.pinned = true; } - if (this.hideElement.hasAttribute('hidden')) { - this.hideElement.removeAttribute('hidden'); + if (this.hideElement.hasAttribute("hidden")) { + this.hideElement.removeAttribute("hidden"); this.container.style.zIndex += 1; } } @@ -9628,8 +9621,8 @@ class PopupElement { this.pinned = false; } - if (!this.hideElement.hasAttribute('hidden') && !this.pinned) { - this.hideElement.setAttribute('hidden', true); + if (!this.hideElement.hasAttribute("hidden") && !this.pinned) { + this.hideElement.setAttribute("hidden", true); this.container.style.zIndex -= 1; } } @@ -9643,7 +9636,7 @@ class FreeTextAnnotationElement extends AnnotationElement { } render() { - this.container.className = 'freeTextAnnotation'; + this.container.className = "freeTextAnnotation"; if (!this.data.hasPopup) { this._createPopup(this.container, null, this.data); @@ -9661,18 +9654,18 @@ class LineAnnotationElement extends AnnotationElement { } render() { - this.container.className = 'lineAnnotation'; + this.container.className = "lineAnnotation"; const data = this.data; const width = data.rect[2] - data.rect[0]; const height = data.rect[3] - data.rect[1]; const svg = this.svgFactory.create(width, height); - const line = this.svgFactory.createElement('svg:line'); - line.setAttribute('x1', data.rect[2] - data.lineCoordinates[0]); - line.setAttribute('y1', data.rect[3] - data.lineCoordinates[1]); - line.setAttribute('x2', data.rect[2] - data.lineCoordinates[2]); - line.setAttribute('y2', data.rect[3] - data.lineCoordinates[3]); - line.setAttribute('stroke-width', data.borderStyle.width || 1); - line.setAttribute('stroke', 'transparent'); + const line = this.svgFactory.createElement("svg:line"); + line.setAttribute("x1", data.rect[2] - data.lineCoordinates[0]); + line.setAttribute("y1", data.rect[3] - data.lineCoordinates[1]); + line.setAttribute("x2", data.rect[2] - data.lineCoordinates[2]); + line.setAttribute("y2", data.rect[3] - data.lineCoordinates[3]); + line.setAttribute("stroke-width", data.borderStyle.width || 1); + line.setAttribute("stroke", "transparent"); svg.appendChild(line); this.container.append(svg); @@ -9690,20 +9683,20 @@ class SquareAnnotationElement extends AnnotationElement { } render() { - this.container.className = 'squareAnnotation'; + this.container.className = "squareAnnotation"; const data = this.data; const width = data.rect[2] - data.rect[0]; const height = data.rect[3] - data.rect[1]; const svg = this.svgFactory.create(width, height); const borderWidth = data.borderStyle.width; - const square = this.svgFactory.createElement('svg:rect'); - square.setAttribute('x', borderWidth / 2); - square.setAttribute('y', borderWidth / 2); - square.setAttribute('width', width - borderWidth); - square.setAttribute('height', height - borderWidth); - square.setAttribute('stroke-width', borderWidth || 1); - square.setAttribute('stroke', 'transparent'); - square.setAttribute('fill', 'none'); + const square = this.svgFactory.createElement("svg:rect"); + square.setAttribute("x", borderWidth / 2); + square.setAttribute("y", borderWidth / 2); + square.setAttribute("width", width - borderWidth); + square.setAttribute("height", height - borderWidth); + square.setAttribute("stroke-width", borderWidth || 1); + square.setAttribute("stroke", "transparent"); + square.setAttribute("fill", "none"); svg.appendChild(square); this.container.append(svg); @@ -9721,20 +9714,20 @@ class CircleAnnotationElement extends AnnotationElement { } render() { - this.container.className = 'circleAnnotation'; + this.container.className = "circleAnnotation"; const data = this.data; const width = data.rect[2] - data.rect[0]; const height = data.rect[3] - data.rect[1]; const svg = this.svgFactory.create(width, height); const borderWidth = data.borderStyle.width; - const circle = this.svgFactory.createElement('svg:ellipse'); - circle.setAttribute('cx', width / 2); - circle.setAttribute('cy', height / 2); - circle.setAttribute('rx', width / 2 - borderWidth / 2); - circle.setAttribute('ry', height / 2 - borderWidth / 2); - circle.setAttribute('stroke-width', borderWidth || 1); - circle.setAttribute('stroke', 'transparent'); - circle.setAttribute('fill', 'none'); + const circle = this.svgFactory.createElement("svg:ellipse"); + circle.setAttribute("cx", width / 2); + circle.setAttribute("cy", height / 2); + circle.setAttribute("rx", width / 2 - borderWidth / 2); + circle.setAttribute("ry", height / 2 - borderWidth / 2); + circle.setAttribute("stroke-width", borderWidth || 1); + circle.setAttribute("stroke", "transparent"); + circle.setAttribute("fill", "none"); svg.appendChild(circle); this.container.append(svg); @@ -9749,8 +9742,8 @@ class PolylineAnnotationElement extends AnnotationElement { constructor(parameters) { const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents); super(parameters, isRenderable, true); - this.containerClassName = 'polylineAnnotation'; - this.svgElementName = 'svg:polyline'; + this.containerClassName = "polylineAnnotation"; + this.svgElementName = "svg:polyline"; } render() { @@ -9764,15 +9757,15 @@ class PolylineAnnotationElement extends AnnotationElement { for (const coordinate of data.vertices) { const x = coordinate.x - data.rect[0]; const y = data.rect[3] - coordinate.y; - points.push(x + ',' + y); + points.push(x + "," + y); } - points = points.join(' '); + points = points.join(" "); const polyline = this.svgFactory.createElement(this.svgElementName); - polyline.setAttribute('points', points); - polyline.setAttribute('stroke-width', data.borderStyle.width || 1); - polyline.setAttribute('stroke', 'transparent'); - polyline.setAttribute('fill', 'none'); + polyline.setAttribute("points", points); + polyline.setAttribute("stroke-width", data.borderStyle.width || 1); + polyline.setAttribute("stroke", "transparent"); + polyline.setAttribute("fill", "none"); svg.appendChild(polyline); this.container.append(svg); @@ -9786,8 +9779,8 @@ class PolylineAnnotationElement extends AnnotationElement { class PolygonAnnotationElement extends PolylineAnnotationElement { constructor(parameters) { super(parameters); - this.containerClassName = 'polygonAnnotation'; - this.svgElementName = 'svg:polygon'; + this.containerClassName = "polygonAnnotation"; + this.svgElementName = "svg:polygon"; } } @@ -9799,7 +9792,7 @@ class CaretAnnotationElement extends AnnotationElement { } render() { - this.container.className = 'caretAnnotation'; + this.container.className = "caretAnnotation"; if (!this.data.hasPopup) { this._createPopup(this.container, null, this.data); @@ -9814,8 +9807,8 @@ class InkAnnotationElement extends AnnotationElement { constructor(parameters) { const isRenderable = !!(parameters.data.hasPopup || parameters.data.title || parameters.data.contents); super(parameters, isRenderable, true); - this.containerClassName = 'inkAnnotation'; - this.svgElementName = 'svg:polyline'; + this.containerClassName = "inkAnnotation"; + this.svgElementName = "svg:polyline"; } render() { @@ -9834,12 +9827,12 @@ class InkAnnotationElement extends AnnotationElement { points.push(`${x},${y}`); } - points = points.join(' '); + points = points.join(" "); const polyline = this.svgFactory.createElement(this.svgElementName); - polyline.setAttribute('points', points); - polyline.setAttribute('stroke-width', data.borderStyle.width || 1); - polyline.setAttribute('stroke', 'transparent'); - polyline.setAttribute('fill', 'none'); + polyline.setAttribute("points", points); + polyline.setAttribute("stroke-width", data.borderStyle.width || 1); + polyline.setAttribute("stroke", "transparent"); + polyline.setAttribute("fill", "none"); this._createPopup(this.container, polyline, data); @@ -9859,7 +9852,7 @@ class HighlightAnnotationElement extends AnnotationElement { } render() { - this.container.className = 'highlightAnnotation'; + this.container.className = "highlightAnnotation"; if (!this.data.hasPopup) { this._createPopup(this.container, null, this.data); @@ -9877,7 +9870,7 @@ class UnderlineAnnotationElement extends AnnotationElement { } render() { - this.container.className = 'underlineAnnotation'; + this.container.className = "underlineAnnotation"; if (!this.data.hasPopup) { this._createPopup(this.container, null, this.data); @@ -9895,7 +9888,7 @@ class SquigglyAnnotationElement extends AnnotationElement { } render() { - this.container.className = 'squigglyAnnotation'; + this.container.className = "squigglyAnnotation"; if (!this.data.hasPopup) { this._createPopup(this.container, null, this.data); @@ -9913,7 +9906,7 @@ class StrikeOutAnnotationElement extends AnnotationElement { } render() { - this.container.className = 'strikeoutAnnotation'; + this.container.className = "strikeoutAnnotation"; if (!this.data.hasPopup) { this._createPopup(this.container, null, this.data); @@ -9931,7 +9924,7 @@ class StampAnnotationElement extends AnnotationElement { } render() { - this.container.className = 'stampAnnotation'; + this.container.className = "stampAnnotation"; if (!this.data.hasPopup) { this._createPopup(this.container, null, this.data); @@ -9953,7 +9946,7 @@ class FileAttachmentAnnotationElement extends AnnotationElement { this.content = content; if (this.linkService.eventBus) { - this.linkService.eventBus.dispatch('fileattachmentannotation', { + this.linkService.eventBus.dispatch("fileattachmentannotation", { source: this, id: (0, _util.stringToPDFString)(filename), filename, @@ -9963,11 +9956,11 @@ class FileAttachmentAnnotationElement extends AnnotationElement { } render() { - this.container.className = 'fileAttachmentAnnotation'; - const trigger = document.createElement('div'); + this.container.className = "fileAttachmentAnnotation"; + const trigger = document.createElement("div"); trigger.style.height = this.container.style.height; trigger.style.width = this.container.style.width; - trigger.addEventListener('dblclick', this._download.bind(this)); + trigger.addEventListener("dblclick", this._download.bind(this)); if (!this.data.hasPopup && (this.data.title || this.data.contents)) { this._createPopup(this.container, trigger, this.data); @@ -9979,11 +9972,11 @@ class FileAttachmentAnnotationElement extends AnnotationElement { _download() { if (!this.downloadManager) { - (0, _util.warn)('Download cannot be started due to unavailable download manager'); + (0, _util.warn)("Download cannot be started due to unavailable download manager"); return; } - this.downloadManager.downloadData(this.content, this.filename, ''); + this.downloadManager.downloadData(this.content, this.filename, ""); } } @@ -10002,7 +9995,7 @@ class AnnotationLayer { viewport: parameters.viewport, linkService: parameters.linkService, downloadManager: parameters.downloadManager, - imageResourcesPath: parameters.imageResourcesPath || '', + imageResourcesPath: parameters.imageResourcesPath || "", renderInteractiveForms: parameters.renderInteractiveForms || false, svgFactory: new _display_utils.DOMSVGFactory() }); @@ -10018,11 +10011,11 @@ class AnnotationLayer { const element = parameters.div.querySelector(`[data-annotation-id="${data.id}"]`); if (element) { - element.style.transform = `matrix(${parameters.viewport.transform.join(',')})`; + element.style.transform = `matrix(${parameters.viewport.transform.join(",")})`; } } - parameters.div.removeAttribute('hidden'); + parameters.div.removeAttribute("hidden"); } } @@ -10043,31 +10036,17 @@ exports.SVGGraphics = void 0; var _util = __w_pdfjs_require__(1); -var _display_utils = __w_pdfjs_require__(5); +var _display_utils = __w_pdfjs_require__(4); -var _is_node = __w_pdfjs_require__(19); +var _is_node = __w_pdfjs_require__(10); let SVGGraphics = function () { - throw new Error('Not implemented: SVGGraphics'); + throw new Error("Not implemented: SVGGraphics"); }; exports.SVGGraphics = SVGGraphics; ; -/***/ }), -/* 19 */ -/***/ (function(module, exports, __w_pdfjs_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.isNodeJS = void 0; -const isNodeJS = typeof process === 'object' && process + '' === '[object process]' && !process.versions['nw'] && !process.versions['electron']; -exports.isNodeJS = isNodeJS; - /***/ }) /******/ ]); }); \ No newline at end of file diff --git a/browser/extensions/pdfjs/content/build/pdf.worker.js b/browser/extensions/pdfjs/content/build/pdf.worker.js index c4eefc93563d..7dee4b4e4a95 100644 --- a/browser/extensions/pdfjs/content/build/pdf.worker.js +++ b/browser/extensions/pdfjs/content/build/pdf.worker.js @@ -123,8 +123,8 @@ return /******/ (function(modules) { // webpackBootstrap "use strict"; -const pdfjsVersion = '2.4.176'; -const pdfjsBuild = 'af4ba75f'; +const pdfjsVersion = '2.4.254'; +const pdfjsBuild = 'b833f843'; const pdfjsCoreWorker = __w_pdfjs_require__(1); @@ -144,17 +144,17 @@ exports.WorkerMessageHandler = exports.WorkerTask = void 0; var _util = __w_pdfjs_require__(2); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _pdf_manager = __w_pdfjs_require__(6); +var _pdf_manager = __w_pdfjs_require__(5); -var _is_node = __w_pdfjs_require__(45); +var _is_node = __w_pdfjs_require__(44); -var _message_handler = __w_pdfjs_require__(46); +var _message_handler = __w_pdfjs_require__(45); -var _worker_stream = __w_pdfjs_require__(47); +var _worker_stream = __w_pdfjs_require__(46); -var _core_utils = __w_pdfjs_require__(8); +var _core_utils = __w_pdfjs_require__(7); var WorkerTask = function WorkerTaskClosure() { function WorkerTask(name) { @@ -178,7 +178,7 @@ var WorkerTask = function WorkerTaskClosure() { ensureNotTerminated() { if (this.terminated) { - throw new Error('Worker task was terminated'); + throw new Error("Worker task was terminated"); } } @@ -190,7 +190,7 @@ exports.WorkerTask = WorkerTask; var WorkerMessageHandler = { setup(handler, port) { var testMessageProcessed = false; - handler.on('test', function wphSetupTest(data) { + handler.on("test", function wphSetupTest(data) { if (testMessageProcessed) { return; } @@ -198,20 +198,20 @@ var WorkerMessageHandler = { testMessageProcessed = true; if (!(data instanceof Uint8Array)) { - handler.send('test', null); + handler.send("test", null); return; } const supportTransfers = data[0] === 255; handler.postMessageTransfers = supportTransfers; - handler.send('test', { + handler.send("test", { supportTransfers }); }); - handler.on('configure', function wphConfigure(data) { + handler.on("configure", function wphConfigure(data) { (0, _util.setVerbosityLevel)(data.verbosity); }); - handler.on('GetDocRequest', function wphSetupDoc(data) { + handler.on("GetDocRequest", function wphSetupDoc(data) { return WorkerMessageHandler.createDocumentHandler(data, port); }); }, @@ -223,7 +223,7 @@ var WorkerMessageHandler = { var WorkerTasks = []; const verbosity = (0, _util.getVerbosityLevel)(); const apiVersion = docParams.apiVersion; - const workerVersion = '2.4.176'; + const workerVersion = '2.4.254'; if (apiVersion !== workerVersion) { throw new Error(`The API version "${apiVersion}" does not match ` + `the Worker version "${workerVersion}".`); @@ -231,13 +231,13 @@ var WorkerMessageHandler = { var docId = docParams.docId; var docBaseUrl = docParams.docBaseUrl; - var workerHandlerName = docParams.docId + '_worker'; + var workerHandlerName = docParams.docId + "_worker"; var handler = new _message_handler.MessageHandler(workerHandlerName, docId, port); handler.postMessageTransfers = docParams.postMessageTransfers; function ensureNotTerminated() { if (terminated) { - throw new Error('Worker was terminated'); + throw new Error("Worker was terminated"); } } @@ -252,15 +252,15 @@ var WorkerMessageHandler = { } async function loadDocument(recoveryMode) { - await pdfManager.ensureDoc('checkHeader'); - await pdfManager.ensureDoc('parseStartXRef'); - await pdfManager.ensureDoc('parse', [recoveryMode]); + await pdfManager.ensureDoc("checkHeader"); + await pdfManager.ensureDoc("parseStartXRef"); + await pdfManager.ensureDoc("parse", [recoveryMode]); if (!recoveryMode) { - await pdfManager.ensureDoc('checkFirstPage'); + await pdfManager.ensureDoc("checkFirstPage"); } - const [numPages, fingerprint] = await Promise.all([pdfManager.ensureDoc('numPages'), pdfManager.ensureDoc('fingerprint')]); + const [numPages, fingerprint] = await Promise.all([pdfManager.ensureDoc("numPages"), pdfManager.ensureDoc("fingerprint")]); return { numPages, fingerprint @@ -325,7 +325,7 @@ var WorkerMessageHandler = { var pdfFile = (0, _util.arraysToBytes)(cachedChunks); if (source.length && pdfFile.length !== source.length) { - (0, _util.warn)('reported HTTP length is different from actual'); + (0, _util.warn)("reported HTTP length is different from actual"); } try { @@ -356,7 +356,7 @@ var WorkerMessageHandler = { loaded += (0, _util.arrayByteLength)(data); if (!fullRequest.isStreamingSupported) { - handler.send('DocProgress', { + handler.send("DocProgress", { loaded, total: Math.max(loaded, fullRequest.contentLength || 0) }); @@ -391,7 +391,7 @@ var WorkerMessageHandler = { function setupDoc(data) { function onSuccess(doc) { ensureNotTerminated(); - handler.send('GetDoc', { + handler.send("GetDoc", { pdfInfo: doc }); } @@ -402,18 +402,18 @@ var WorkerMessageHandler = { if (ex instanceof _util.PasswordException) { var task = new WorkerTask(`PasswordException: response ${ex.code}`); startWorkerTask(task); - handler.sendWithPromise('PasswordRequest', ex).then(function (data) { + handler.sendWithPromise("PasswordRequest", ex).then(function (data) { finishWorkerTask(task); pdfManager.updatePassword(data.password); pdfManagerReady(); }).catch(function () { finishWorkerTask(task); - handler.send('DocException', ex); + handler.send("DocException", ex); }); } else if (ex instanceof _util.InvalidPDFException || ex instanceof _util.MissingPDFException || ex instanceof _util.UnexpectedResponseException || ex instanceof _util.UnknownErrorException) { - handler.send('DocException', ex); + handler.send("DocException", ex); } else { - handler.send('DocException', new _util.UnknownErrorException(ex.message, ex.toString())); + handler.send("DocException", new _util.UnknownErrorException(ex.message, ex.toString())); } } @@ -446,22 +446,22 @@ var WorkerMessageHandler = { }; getPdfManager(data, evaluatorOptions).then(function (newPdfManager) { if (terminated) { - newPdfManager.terminate(new _util.AbortException('Worker was terminated.')); - throw new Error('Worker was terminated'); + newPdfManager.terminate(new _util.AbortException("Worker was terminated.")); + throw new Error("Worker was terminated"); } pdfManager = newPdfManager; pdfManager.onLoadedStream().then(function (stream) { - handler.send('DataLoaded', { + handler.send("DataLoaded", { length: stream.bytes.byteLength }); }); }).then(pdfManagerReady, onFailure); } - handler.on('GetPage', function wphSetupGetPage(data) { + handler.on("GetPage", function wphSetupGetPage(data) { return pdfManager.getPage(data.pageIndex).then(function (page) { - return Promise.all([pdfManager.ensure(page, 'rotate'), pdfManager.ensure(page, 'ref'), pdfManager.ensure(page, 'userUnit'), pdfManager.ensure(page, 'view')]).then(function ([rotate, ref, userUnit, view]) { + return Promise.all([pdfManager.ensure(page, "rotate"), pdfManager.ensure(page, "ref"), pdfManager.ensure(page, "userUnit"), pdfManager.ensure(page, "view")]).then(function ([rotate, ref, userUnit, view]) { return { rotate, ref, @@ -471,58 +471,58 @@ var WorkerMessageHandler = { }); }); }); - handler.on('GetPageIndex', function wphSetupGetPageIndex(data) { + handler.on("GetPageIndex", function wphSetupGetPageIndex(data) { var ref = _primitives.Ref.get(data.ref.num, data.ref.gen); var catalog = pdfManager.pdfDocument.catalog; return catalog.getPageIndex(ref); }); - handler.on('GetDestinations', function wphSetupGetDestinations(data) { - return pdfManager.ensureCatalog('destinations'); + handler.on("GetDestinations", function wphSetupGetDestinations(data) { + return pdfManager.ensureCatalog("destinations"); }); - handler.on('GetDestination', function wphSetupGetDestination(data) { - return pdfManager.ensureCatalog('getDestination', [data.id]); + handler.on("GetDestination", function wphSetupGetDestination(data) { + return pdfManager.ensureCatalog("getDestination", [data.id]); }); - handler.on('GetPageLabels', function wphSetupGetPageLabels(data) { - return pdfManager.ensureCatalog('pageLabels'); + handler.on("GetPageLabels", function wphSetupGetPageLabels(data) { + return pdfManager.ensureCatalog("pageLabels"); }); - handler.on('GetPageLayout', function wphSetupGetPageLayout(data) { - return pdfManager.ensureCatalog('pageLayout'); + handler.on("GetPageLayout", function wphSetupGetPageLayout(data) { + return pdfManager.ensureCatalog("pageLayout"); }); - handler.on('GetPageMode', function wphSetupGetPageMode(data) { - return pdfManager.ensureCatalog('pageMode'); + handler.on("GetPageMode", function wphSetupGetPageMode(data) { + return pdfManager.ensureCatalog("pageMode"); }); - handler.on('GetViewerPreferences', function (data) { - return pdfManager.ensureCatalog('viewerPreferences'); + handler.on("GetViewerPreferences", function (data) { + return pdfManager.ensureCatalog("viewerPreferences"); }); - handler.on('GetOpenActionDestination', function (data) { - return pdfManager.ensureCatalog('openActionDestination'); + handler.on("GetOpenActionDestination", function (data) { + return pdfManager.ensureCatalog("openActionDestination"); }); - handler.on('GetAttachments', function wphSetupGetAttachments(data) { - return pdfManager.ensureCatalog('attachments'); + handler.on("GetAttachments", function wphSetupGetAttachments(data) { + return pdfManager.ensureCatalog("attachments"); }); - handler.on('GetJavaScript', function wphSetupGetJavaScript(data) { - return pdfManager.ensureCatalog('javaScript'); + handler.on("GetJavaScript", function wphSetupGetJavaScript(data) { + return pdfManager.ensureCatalog("javaScript"); }); - handler.on('GetOutline', function wphSetupGetOutline(data) { - return pdfManager.ensureCatalog('documentOutline'); + handler.on("GetOutline", function wphSetupGetOutline(data) { + return pdfManager.ensureCatalog("documentOutline"); }); - handler.on('GetPermissions', function (data) { - return pdfManager.ensureCatalog('permissions'); + handler.on("GetPermissions", function (data) { + return pdfManager.ensureCatalog("permissions"); }); - handler.on('GetMetadata', function wphSetupGetMetadata(data) { - return Promise.all([pdfManager.ensureDoc('documentInfo'), pdfManager.ensureCatalog('metadata')]); + handler.on("GetMetadata", function wphSetupGetMetadata(data) { + return Promise.all([pdfManager.ensureDoc("documentInfo"), pdfManager.ensureCatalog("metadata")]); }); - handler.on('GetData', function wphSetupGetData(data) { + handler.on("GetData", function wphSetupGetData(data) { pdfManager.requestLoadedStream(); return pdfManager.onLoadedStream().then(function (stream) { return stream.bytes; }); }); - handler.on('GetStats', function wphSetupGetStats(data) { + handler.on("GetStats", function wphSetupGetStats(data) { return pdfManager.pdfDocument.xref.stats; }); - handler.on('GetAnnotations', function ({ + handler.on("GetAnnotations", function ({ pageIndex, intent }) { @@ -530,7 +530,7 @@ var WorkerMessageHandler = { return page.getAnnotationsData(intent); }); }); - handler.on('GetOperatorList', function wphSetupRenderPage(data, sink) { + handler.on("GetOperatorList", function wphSetupRenderPage(data, sink) { var pageIndex = data.pageIndex; pdfManager.getPage(pageIndex).then(function (page) { var task = new WorkerTask(`GetOperatorList: page ${pageIndex}`); @@ -557,14 +557,14 @@ var WorkerMessageHandler = { return; } - handler.send('UnsupportedFeature', { + handler.send("UnsupportedFeature", { featureId: _util.UNSUPPORTED_FEATURES.unknown }); sink.error(reason); }); }); }, this); - handler.on('GetTextContent', function wphExtractText(data, sink) { + handler.on("GetTextContent", function wphExtractText(data, sink) { var pageIndex = data.pageIndex; sink.onPull = function (desiredSize) {}; @@ -572,7 +572,7 @@ var WorkerMessageHandler = { sink.onCancel = function (reason) {}; pdfManager.getPage(pageIndex).then(function (page) { - var task = new WorkerTask('GetTextContent: page ' + pageIndex); + var task = new WorkerTask("GetTextContent: page " + pageIndex); startWorkerTask(task); const start = verbosity >= _util.VerbosityLevel.INFOS ? Date.now() : 0; page.extractTextContent({ @@ -600,22 +600,22 @@ var WorkerMessageHandler = { }); }); }); - handler.on('FontFallback', function (data) { + handler.on("FontFallback", function (data) { return pdfManager.fontFallback(data.id, handler); }); - handler.on('Cleanup', function wphCleanup(data) { + handler.on("Cleanup", function wphCleanup(data) { return pdfManager.cleanup(); }); - handler.on('Terminate', function wphTerminate(data) { + handler.on("Terminate", function wphTerminate(data) { terminated = true; if (pdfManager) { - pdfManager.terminate(new _util.AbortException('Worker was terminated.')); + pdfManager.terminate(new _util.AbortException("Worker was terminated.")); pdfManager = null; } if (cancelXHRs) { - cancelXHRs(new _util.AbortException('Worker was terminated.')); + cancelXHRs(new _util.AbortException("Worker was terminated.")); } (0, _primitives.clearPrimitiveCaches)(); @@ -629,7 +629,7 @@ var WorkerMessageHandler = { handler = null; }); }); - handler.on('Ready', function wphReady(data) { + handler.on("Ready", function wphReady(data) { setupDoc(docParams); docParams = null; }); @@ -637,19 +637,19 @@ var WorkerMessageHandler = { }, initializeFromPort(port) { - var handler = new _message_handler.MessageHandler('worker', 'main', port); + var handler = new _message_handler.MessageHandler("worker", "main", port); WorkerMessageHandler.setup(handler, port); - handler.send('ready', null); + handler.send("ready", null); } }; exports.WorkerMessageHandler = WorkerMessageHandler; function isMessagePort(maybePort) { - return typeof maybePort.postMessage === 'function' && 'onmessage' in maybePort; + return typeof maybePort.postMessage === "function" && "onmessage" in maybePort; } -if (typeof window === 'undefined' && !_is_node.isNodeJS && typeof self !== 'undefined' && isMessagePort(self)) { +if (typeof window === "undefined" && !_is_node.isNodeJS && typeof self !== "undefined" && isMessagePort(self)) { WorkerMessageHandler.initializeFromPort(self); } @@ -695,26 +695,18 @@ exports.stringToUTF8String = stringToUTF8String; exports.utf8StringToString = utf8StringToString; exports.warn = warn; exports.unreachable = unreachable; -Object.defineProperty(exports, "ReadableStream", { - enumerable: true, - get: function () { - return _streams_polyfill.ReadableStream; - } -}); exports.createObjectURL = exports.FormatError = exports.Util = exports.UnknownErrorException = exports.UnexpectedResponseException = exports.TextRenderingMode = exports.StreamType = exports.PermissionFlag = exports.PasswordResponses = exports.PasswordException = exports.NativeImageDecoding = exports.MissingPDFException = exports.InvalidPDFException = exports.AbortException = exports.CMapCompressionType = exports.ImageKind = exports.FontType = exports.AnnotationType = exports.AnnotationStateModelType = exports.AnnotationReviewState = exports.AnnotationReplyType = exports.AnnotationMarkedState = exports.AnnotationFlag = exports.AnnotationFieldFlag = exports.AnnotationBorderStyleType = exports.UNSUPPORTED_FEATURES = exports.VerbosityLevel = exports.OPS = exports.IDENTITY_MATRIX = exports.FONT_IDENTITY_MATRIX = exports.BaseException = void 0; __w_pdfjs_require__(3); -var _streams_polyfill = __w_pdfjs_require__(4); - const IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0]; exports.IDENTITY_MATRIX = IDENTITY_MATRIX; const FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0]; exports.FONT_IDENTITY_MATRIX = FONT_IDENTITY_MATRIX; const NativeImageDecoding = { - NONE: 'none', - DECODE: 'decode', - DISPLAY: 'display' + NONE: "none", + DECODE: "decode", + DISPLAY: "display" }; exports.NativeImageDecoding = NativeImageDecoding; const PermissionFlag = { @@ -777,26 +769,26 @@ const AnnotationType = { }; exports.AnnotationType = AnnotationType; const AnnotationStateModelType = { - MARKED: 'Marked', - REVIEW: 'Review' + MARKED: "Marked", + REVIEW: "Review" }; exports.AnnotationStateModelType = AnnotationStateModelType; const AnnotationMarkedState = { - MARKED: 'Marked', - UNMARKED: 'Unmarked' + MARKED: "Marked", + UNMARKED: "Unmarked" }; exports.AnnotationMarkedState = AnnotationMarkedState; const AnnotationReviewState = { - ACCEPTED: 'Accepted', - REJECTED: 'Rejected', - CANCELLED: 'Cancelled', - COMPLETED: 'Completed', - NONE: 'None' + ACCEPTED: "Accepted", + REJECTED: "Rejected", + CANCELLED: "Cancelled", + COMPLETED: "Completed", + NONE: "None" }; exports.AnnotationReviewState = AnnotationReviewState; const AnnotationReplyType = { - GROUP: 'Group', - REPLY: 'R' + GROUP: "Group", + REPLY: "R" }; exports.AnnotationReplyType = AnnotationReplyType; const AnnotationFlag = { @@ -843,30 +835,30 @@ const AnnotationBorderStyleType = { }; exports.AnnotationBorderStyleType = AnnotationBorderStyleType; const StreamType = { - UNKNOWN: 'UNKNOWN', - FLATE: 'FLATE', - LZW: 'LZW', - DCT: 'DCT', - JPX: 'JPX', - JBIG: 'JBIG', - A85: 'A85', - AHX: 'AHX', - CCF: 'CCF', - RLX: 'RLX' + UNKNOWN: "UNKNOWN", + FLATE: "FLATE", + LZW: "LZW", + DCT: "DCT", + JPX: "JPX", + JBIG: "JBIG", + A85: "A85", + AHX: "AHX", + CCF: "CCF", + RLX: "RLX" }; exports.StreamType = StreamType; const FontType = { - UNKNOWN: 'UNKNOWN', - TYPE1: 'TYPE1', - TYPE1C: 'TYPE1C', - CIDFONTTYPE0: 'CIDFONTTYPE0', - CIDFONTTYPE0C: 'CIDFONTTYPE0C', - TRUETYPE: 'TRUETYPE', - CIDFONTTYPE2: 'CIDFONTTYPE2', - TYPE3: 'TYPE3', - OPENTYPE: 'OPENTYPE', - TYPE0: 'TYPE0', - MMTYPE1: 'MMTYPE1' + UNKNOWN: "UNKNOWN", + TYPE1: "TYPE1", + TYPE1C: "TYPE1C", + CIDFONTTYPE0: "CIDFONTTYPE0", + CIDFONTTYPE0C: "CIDFONTTYPE0C", + TRUETYPE: "TRUETYPE", + CIDFONTTYPE2: "CIDFONTTYPE2", + TYPE3: "TYPE3", + OPENTYPE: "OPENTYPE", + TYPE0: "TYPE0", + MMTYPE1: "MMTYPE1" }; exports.FontType = FontType; const VerbosityLevel = { @@ -976,12 +968,12 @@ const OPS = { }; exports.OPS = OPS; const UNSUPPORTED_FEATURES = { - unknown: 'unknown', - forms: 'forms', - javaScript: 'javaScript', - smask: 'smask', - shadingPattern: 'shadingPattern', - font: 'font' + unknown: "unknown", + forms: "forms", + javaScript: "javaScript", + smask: "smask", + shadingPattern: "shadingPattern", + font: "font" }; exports.UNSUPPORTED_FEATURES = UNSUPPORTED_FEATURES; const PasswordResponses = { @@ -1029,7 +1021,7 @@ function isSameOrigin(baseUrl, otherUrl) { try { base = new URL(baseUrl); - if (!base.origin || base.origin === 'null') { + if (!base.origin || base.origin === "null") { return false; } } catch (e) { @@ -1046,11 +1038,11 @@ function _isValidProtocol(url) { } switch (url.protocol) { - case 'http:': - case 'https:': - case 'ftp:': - case 'mailto:': - case 'tel:': + case "http:": + case "https:": + case "ftp:": + case "mailto:": + case "tel:": return true; default: @@ -1087,7 +1079,7 @@ function shadow(obj, prop, value) { const BaseException = function BaseExceptionClosure() { function BaseException(message) { if (this.constructor === BaseException) { - unreachable('Cannot initialize BaseException.'); + unreachable("Cannot initialize BaseException."); } this.message = message; @@ -1149,16 +1141,16 @@ exports.AbortException = AbortException; const NullCharactersRegExp = /\x00/g; function removeNullCharacters(str) { - if (typeof str !== 'string') { - warn('The argument for removeNullCharacters must be a string.'); + if (typeof str !== "string") { + warn("The argument for removeNullCharacters must be a string."); return str; } - return str.replace(NullCharactersRegExp, ''); + return str.replace(NullCharactersRegExp, ""); } function bytesToString(bytes) { - assert(bytes !== null && typeof bytes === 'object' && bytes.length !== undefined, 'Invalid argument for bytesToString'); + assert(bytes !== null && typeof bytes === "object" && bytes.length !== undefined, "Invalid argument for bytesToString"); const length = bytes.length; const MAX_ARGUMENT_COUNT = 8192; @@ -1174,16 +1166,16 @@ function bytesToString(bytes) { strBuf.push(String.fromCharCode.apply(null, chunk)); } - return strBuf.join(''); + return strBuf.join(""); } function stringToBytes(str) { - assert(typeof str === 'string', 'Invalid argument for stringToBytes'); + assert(typeof str === "string", "Invalid argument for stringToBytes"); const length = str.length; const bytes = new Uint8Array(length); for (let i = 0; i < length; ++i) { - bytes[i] = str.charCodeAt(i) & 0xFF; + bytes[i] = str.charCodeAt(i) & 0xff; } return bytes; @@ -1218,7 +1210,7 @@ function arraysToBytes(arr) { let item = arr[i]; if (!(item instanceof Uint8Array)) { - if (typeof item === 'string') { + if (typeof item === "string") { item = stringToBytes(item); } else { item = new Uint8Array(item); @@ -1266,21 +1258,21 @@ function isLittleEndian() { function isEvalSupported() { try { - new Function(''); + new Function(""); return true; } catch (e) { return false; } } -const rgbBuf = ['rgb(', 0, ',', 0, ',', 0, ')']; +const rgbBuf = ["rgb(", 0, ",", 0, ",", 0, ")"]; class Util { static makeCssRgb(r, g, b) { rgbBuf[1] = r; rgbBuf[3] = g; rgbBuf[5] = b; - return rgbBuf.join(''); + return rgbBuf.join(""); } static transform(m1, m2) { @@ -1383,11 +1375,11 @@ function stringToPDFString(str) { const length = str.length, strBuf = []; - if (str[0] === '\xFE' && str[1] === '\xFF') { + if (str[0] === "\xFE" && str[1] === "\xFF") { for (let i = 2; i < length; i += 2) { strBuf.push(String.fromCharCode(str.charCodeAt(i) << 8 | str.charCodeAt(i + 1))); } - } else if (str[0] === '\xFF' && str[1] === '\xFE') { + } else if (str[0] === "\xFF" && str[1] === "\xFE") { for (let i = 2; i < length; i += 2) { strBuf.push(String.fromCharCode(str.charCodeAt(i + 1) << 8 | str.charCodeAt(i))); } @@ -1398,7 +1390,7 @@ function stringToPDFString(str) { } } - return strBuf.join(''); + return strBuf.join(""); } function stringToUTF8String(str) { @@ -1418,19 +1410,19 @@ function isEmptyObj(obj) { } function isBool(v) { - return typeof v === 'boolean'; + return typeof v === "boolean"; } function isNum(v) { - return typeof v === 'number'; + return typeof v === "number"; } function isString(v) { - return typeof v === 'string'; + return typeof v === "string"; } function isArrayBuffer(v) { - return typeof v === 'object' && v !== null && v.byteLength !== undefined; + return typeof v === "object" && v !== null && v.byteLength !== undefined; } function isArrayEqual(arr1, arr2) { @@ -1444,13 +1436,13 @@ function isArrayEqual(arr1, arr2) { } function isSpace(ch) { - return ch === 0x20 || ch === 0x09 || ch === 0x0D || ch === 0x0A; + return ch === 0x20 || ch === 0x09 || ch === 0x0d || ch === 0x0a; } function createPromiseCapability() { const capability = Object.create(null); let isSettled = false; - Object.defineProperty(capability, 'settled', { + Object.defineProperty(capability, "settled", { get() { return isSettled; } @@ -1471,7 +1463,7 @@ function createPromiseCapability() { } const createObjectURL = function createObjectURLClosure() { - const digits = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; + const digits = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; return function createObjectURL(data, contentType, forceDataSchema = false) { if (!forceDataSchema && URL.createObjectURL) { const blob = new Blob([data], { @@ -1483,13 +1475,13 @@ const createObjectURL = function createObjectURLClosure() { let buffer = `data:${contentType};base64,`; for (let i = 0, ii = data.length; i < ii; i += 3) { - const b1 = data[i] & 0xFF; - const b2 = data[i + 1] & 0xFF; - const b3 = data[i + 2] & 0xFF; + const b1 = data[i] & 0xff; + const b2 = data[i + 1] & 0xff; + const b3 = data[i + 2] & 0xff; const d1 = b1 >> 2, d2 = (b1 & 3) << 4 | b2 >> 4; - const d3 = i + 1 < ii ? (b2 & 0xF) << 2 | b3 >> 6 : 64; - const d4 = i + 2 < ii ? b3 & 0x3F : 64; + const d3 = i + 1 < ii ? (b2 & 0xf) << 2 | b3 >> 6 : 64; + const d4 = i + 2 < ii ? b3 & 0x3f : 64; buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4]; } @@ -1515,21 +1507,6 @@ exports.createObjectURL = createObjectURL; "use strict"; -{ - if (typeof ReadableStream === 'undefined') { - throw new Error('Please enable ReadableStream support by resetting the ' + '"javascript.options.streams" preference to "true" in about:config.'); - } - - exports.ReadableStream = ReadableStream; -} - -/***/ }), -/* 5 */ -/***/ (function(module, exports, __w_pdfjs_require__) { - -"use strict"; - - Object.defineProperty(exports, "__esModule", { value: true }); @@ -1814,7 +1791,7 @@ function isCmd(v, cmd) { } function isDict(v, type) { - return v instanceof Dict && (type === undefined || isName(v.get('Type'), type)); + return v instanceof Dict && (type === undefined || isName(v.get("Type"), type)); } function isRef(v) { @@ -1826,7 +1803,7 @@ function isRefsEqual(v1, v2) { } function isStream(v) { - return typeof v === 'object' && v !== null && v.getBytes !== undefined; + return typeof v === "object" && v !== null && v.getBytes !== undefined; } function clearPrimitiveCaches() { @@ -1838,7 +1815,7 @@ function clearPrimitiveCaches() { } /***/ }), -/* 6 */ +/* 5 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -1851,18 +1828,18 @@ exports.NetworkPdfManager = exports.LocalPdfManager = void 0; var _util = __w_pdfjs_require__(2); -var _chunked_stream = __w_pdfjs_require__(7); +var _chunked_stream = __w_pdfjs_require__(6); -var _core_utils = __w_pdfjs_require__(8); +var _core_utils = __w_pdfjs_require__(7); -var _document = __w_pdfjs_require__(9); +var _document = __w_pdfjs_require__(8); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); class BasePdfManager { constructor() { if (this.constructor === BasePdfManager) { - (0, _util.unreachable)('Cannot initialize BasePdfManager.'); + (0, _util.unreachable)("Cannot initialize BasePdfManager."); } } @@ -1887,11 +1864,11 @@ class BasePdfManager { } } - return (0, _util.shadow)(this, 'docBaseUrl', docBaseUrl); + return (0, _util.shadow)(this, "docBaseUrl", docBaseUrl); } onLoadedStream() { - (0, _util.unreachable)('Abstract method `onLoadedStream` called'); + (0, _util.unreachable)("Abstract method `onLoadedStream` called"); } ensureDoc(prop, args) { @@ -1919,19 +1896,19 @@ class BasePdfManager { } async ensure(obj, prop, args) { - (0, _util.unreachable)('Abstract method `ensure` called'); + (0, _util.unreachable)("Abstract method `ensure` called"); } requestRange(begin, end) { - (0, _util.unreachable)('Abstract method `requestRange` called'); + (0, _util.unreachable)("Abstract method `requestRange` called"); } requestLoadedStream() { - (0, _util.unreachable)('Abstract method `requestLoadedStream` called'); + (0, _util.unreachable)("Abstract method `requestLoadedStream` called"); } sendProgressiveData(chunk) { - (0, _util.unreachable)('Abstract method `sendProgressiveData` called'); + (0, _util.unreachable)("Abstract method `sendProgressiveData` called"); } updatePassword(password) { @@ -1939,7 +1916,7 @@ class BasePdfManager { } terminate(reason) { - (0, _util.unreachable)('Abstract method `terminate` called'); + (0, _util.unreachable)("Abstract method `terminate` called"); } } @@ -1959,7 +1936,7 @@ class LocalPdfManager extends BasePdfManager { async ensure(obj, prop, args) { const value = obj[prop]; - if (typeof value === 'function') { + if (typeof value === "function") { return value.apply(obj, args); } @@ -2003,7 +1980,7 @@ class NetworkPdfManager extends BasePdfManager { try { const value = obj[prop]; - if (typeof value === 'function') { + if (typeof value === "function") { return value.apply(obj, args); } @@ -2045,7 +2022,7 @@ class NetworkPdfManager extends BasePdfManager { exports.NetworkPdfManager = NetworkPdfManager; /***/ }), -/* 7 */ +/* 6 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -2058,7 +2035,7 @@ exports.ChunkedStreamManager = exports.ChunkedStream = void 0; var _util = __w_pdfjs_require__(2); -var _core_utils = __w_pdfjs_require__(8); +var _core_utils = __w_pdfjs_require__(7); class ChunkedStream { constructor(length, chunkSize, manager) { @@ -2553,7 +2530,7 @@ class ChunkedStreamManager { } onProgress(args) { - this.msgHandler.send('DocProgress', { + this.msgHandler.send("DocProgress", { loaded: this.stream.numChunksLoaded * this.chunkSize + args.loaded, total: this.length }); @@ -2623,7 +2600,7 @@ class ChunkedStreamManager { capability.resolve(); } - this.msgHandler.send('DocProgress', { + this.msgHandler.send("DocProgress", { loaded: this.stream.numChunksLoaded * this.chunkSize, total: this.length }); @@ -2658,7 +2635,7 @@ class ChunkedStreamManager { exports.ChunkedStreamManager = ChunkedStreamManager; /***/ }), -/* 8 */ +/* 7 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -2736,22 +2713,22 @@ function getInheritableProperty({ break; } - dict = dict.get('Parent'); + dict = dict.get("Parent"); } return values; } -const ROMAN_NUMBER_MAP = ['', 'C', 'CC', 'CCC', 'CD', 'D', 'DC', 'DCC', 'DCCC', 'CM', '', 'X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC', '', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX']; +const ROMAN_NUMBER_MAP = ["", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM", "", "X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC", "", "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"]; function toRomanNumerals(number, lowerCase = false) { - (0, _util.assert)(Number.isInteger(number) && number > 0, 'The number should be a positive integer.'); + (0, _util.assert)(Number.isInteger(number) && number > 0, "The number should be a positive integer."); let pos, romanBuf = []; while (number >= 1000) { number -= 1000; - romanBuf.push('M'); + romanBuf.push("M"); } pos = number / 100 | 0; @@ -2761,12 +2738,12 @@ function toRomanNumerals(number, lowerCase = false) { number %= 10; romanBuf.push(ROMAN_NUMBER_MAP[10 + pos]); romanBuf.push(ROMAN_NUMBER_MAP[20 + number]); - const romanStr = romanBuf.join(''); + const romanStr = romanBuf.join(""); return lowerCase ? romanStr.toLowerCase() : romanStr; } /***/ }), -/* 9 */ +/* 8 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -2779,31 +2756,31 @@ exports.PDFDocument = exports.Page = void 0; var _util = __w_pdfjs_require__(2); -var _obj = __w_pdfjs_require__(10); +var _obj = __w_pdfjs_require__(9); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _core_utils = __w_pdfjs_require__(8); +var _core_utils = __w_pdfjs_require__(7); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); -var _annotation = __w_pdfjs_require__(24); +var _annotation = __w_pdfjs_require__(23); -var _crypto = __w_pdfjs_require__(22); +var _crypto = __w_pdfjs_require__(21); -var _parser = __w_pdfjs_require__(11); +var _parser = __w_pdfjs_require__(10); -var _operator_list = __w_pdfjs_require__(25); +var _operator_list = __w_pdfjs_require__(24); -var _evaluator = __w_pdfjs_require__(26); +var _evaluator = __w_pdfjs_require__(25); -var _function = __w_pdfjs_require__(40); +var _function = __w_pdfjs_require__(39); const DEFAULT_USER_UNIT = 1.0; const LETTER_SIZE_MEDIABOX = [0, 0, 612, 792]; function isAnnotationRenderable(annotation, intent) { - return intent === 'display' && annotation.viewable || intent === 'print' && annotation.printable; + return intent === "display" && annotation.viewable || intent === "print" && annotation.printable; } class Page { @@ -2862,11 +2839,11 @@ class Page { } get content() { - return this.pageDict.get('Contents'); + return this.pageDict.get("Contents"); } get resources() { - return (0, _util.shadow)(this, 'resources', this._getInheritableProperty('Resources') || _primitives.Dict.empty); + return (0, _util.shadow)(this, "resources", this._getInheritableProperty("Resources") || _primitives.Dict.empty); } _getBoundingBox(name) { @@ -2884,21 +2861,21 @@ class Page { } get mediaBox() { - return (0, _util.shadow)(this, 'mediaBox', this._getBoundingBox('MediaBox') || LETTER_SIZE_MEDIABOX); + return (0, _util.shadow)(this, "mediaBox", this._getBoundingBox("MediaBox") || LETTER_SIZE_MEDIABOX); } get cropBox() { - return (0, _util.shadow)(this, 'cropBox', this._getBoundingBox('CropBox') || this.mediaBox); + return (0, _util.shadow)(this, "cropBox", this._getBoundingBox("CropBox") || this.mediaBox); } get userUnit() { - let obj = this.pageDict.get('UserUnit'); + let obj = this.pageDict.get("UserUnit"); if (!(0, _util.isNum)(obj) || obj <= 0) { obj = DEFAULT_USER_UNIT; } - return (0, _util.shadow)(this, 'userUnit', obj); + return (0, _util.shadow)(this, "userUnit", obj); } get view() { @@ -2916,15 +2893,15 @@ class Page { if (box && box[2] - box[0] !== 0 && box[3] - box[1] !== 0) { view = box; } else { - (0, _util.warn)('Empty /CropBox and /MediaBox intersection.'); + (0, _util.warn)("Empty /CropBox and /MediaBox intersection."); } } - return (0, _util.shadow)(this, 'view', view || mediaBox); + return (0, _util.shadow)(this, "view", view || mediaBox); } get rotate() { - let rotate = this._getInheritableProperty('Rotate') || 0; + let rotate = this._getInheritableProperty("Rotate") || 0; if (rotate % 90 !== 0) { rotate = 0; @@ -2934,7 +2911,7 @@ class Page { rotate = (rotate % 360 + 360) % 360; } - return (0, _util.shadow)(this, 'rotate', rotate); + return (0, _util.shadow)(this, "rotate", rotate); } getContentStream() { @@ -2961,7 +2938,7 @@ class Page { loadResources(keys) { if (!this.resourcesPromise) { - this.resourcesPromise = this.pdfManager.ensure(this, 'resources'); + this.resourcesPromise = this.pdfManager.ensure(this, "resources"); } return this.resourcesPromise.then(() => { @@ -2977,8 +2954,8 @@ class Page { intent, renderInteractiveForms }) { - const contentStreamPromise = this.pdfManager.ensure(this, 'getContentStream'); - const resourcesPromise = this.loadResources(['ExtGState', 'ColorSpace', 'Pattern', 'Shading', 'XObject', 'Font']); + const contentStreamPromise = this.pdfManager.ensure(this, "getContentStream"); + const resourcesPromise = this.loadResources(["ExtGState", "ColorSpace", "Pattern", "Shading", "XObject", "Font"]); const partialEvaluator = new _evaluator.PartialEvaluator({ xref: this.xref, handler, @@ -2992,7 +2969,7 @@ class Page { const dataPromises = Promise.all([contentStreamPromise, resourcesPromise]); const pageListPromise = dataPromises.then(([contentStream]) => { const opList = new _operator_list.OperatorList(intent, sink, this.pageIndex); - handler.send('StartRenderPage', { + handler.send("StartRenderPage", { transparency: partialEvaluator.hasBlendModes(this.resources), pageIndex: this.pageIndex, intent @@ -3045,8 +3022,8 @@ class Page { sink, combineTextItems }) { - const contentStreamPromise = this.pdfManager.ensure(this, 'getContentStream'); - const resourcesPromise = this.loadResources(['ExtGState', 'XObject', 'Font']); + const contentStreamPromise = this.pdfManager.ensure(this, "getContentStream"); + const resourcesPromise = this.loadResources(["ExtGState", "XObject", "Font"]); const dataPromises = Promise.all([contentStreamPromise, resourcesPromise]); return dataPromises.then(([contentStream]) => { const partialEvaluator = new _evaluator.PartialEvaluator({ @@ -3085,11 +3062,11 @@ class Page { } get annotations() { - return (0, _util.shadow)(this, 'annotations', this._getInheritableProperty('Annots') || []); + return (0, _util.shadow)(this, "annotations", this._getInheritableProperty("Annots") || []); } get _parsedAnnotations() { - const parsedAnnotations = this.pdfManager.ensure(this, 'annotations').then(() => { + const parsedAnnotations = this.pdfManager.ensure(this, "annotations").then(() => { const annotationRefs = this.annotations; const annotationPromises = []; @@ -3106,26 +3083,65 @@ class Page { return []; }); }); - return (0, _util.shadow)(this, '_parsedAnnotations', parsedAnnotations); + return (0, _util.shadow)(this, "_parsedAnnotations", parsedAnnotations); } } exports.Page = Page; +const PDF_HEADER_SIGNATURE = new Uint8Array([0x25, 0x50, 0x44, 0x46, 0x2d]); +const STARTXREF_SIGNATURE = new Uint8Array([0x73, 0x74, 0x61, 0x72, 0x74, 0x78, 0x72, 0x65, 0x66]); +const ENDOBJ_SIGNATURE = new Uint8Array([0x65, 0x6e, 0x64, 0x6f, 0x62, 0x6a]); const FINGERPRINT_FIRST_BYTES = 1024; -const EMPTY_FINGERPRINT = '\x00\x00\x00\x00\x00\x00\x00' + '\x00\x00\x00\x00\x00\x00\x00\x00\x00'; +const EMPTY_FINGERPRINT = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"; -function find(stream, needle, limit, backwards = false) { - (0, _util.assert)(limit > 0, 'The "limit" must be a positive integer.'); - const str = (0, _util.bytesToString)(stream.peekBytes(limit)); - const index = backwards ? str.lastIndexOf(needle) : str.indexOf(needle); +function find(stream, signature, limit = 1024, backwards = false) { + const signatureLength = signature.length; + const scanBytes = stream.peekBytes(limit); + const scanLength = scanBytes.length - signatureLength; - if (index === -1) { + if (scanLength <= 0) { return false; } - stream.pos += index; - return true; + if (backwards) { + const signatureEnd = signatureLength - 1; + let pos = scanBytes.length - 1; + + while (pos >= signatureEnd) { + let j = 0; + + while (j < signatureLength && scanBytes[pos - j] === signature[signatureEnd - j]) { + j++; + } + + if (j >= signatureLength) { + stream.pos += pos - signatureEnd; + return true; + } + + pos--; + } + } else { + let pos = 0; + + while (pos <= scanLength) { + let j = 0; + + while (j < signatureLength && scanBytes[pos + j] === signature[j]) { + j++; + } + + if (j >= signatureLength) { + stream.pos += pos; + return true; + } + + pos++; + } + } + + return false; } class PDFDocument { @@ -3137,11 +3153,11 @@ class PDFDocument { } else if ((0, _util.isArrayBuffer)(arg)) { stream = new _stream.Stream(arg); } else { - throw new Error('PDFDocument: Unknown argument type'); + throw new Error("PDFDocument: Unknown argument type"); } if (stream.length <= 0) { - throw new _util.InvalidPDFException('The PDF file is empty, i.e. its size is zero bytes.'); + throw new _util.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes."); } this.pdfManager = pdfManager; @@ -3156,18 +3172,18 @@ class PDFDocument { parse(recoveryMode) { this.setup(recoveryMode); - const version = this.catalog.catDict.get('Version'); + const version = this.catalog.catDict.get("Version"); if ((0, _primitives.isName)(version)) { this.pdfFormatVersion = version.name; } try { - this.acroForm = this.catalog.catDict.get('AcroForm'); + this.acroForm = this.catalog.catDict.get("AcroForm"); if (this.acroForm) { - this.xfa = this.acroForm.get('XFA'); - const fields = this.acroForm.get('Fields'); + this.xfa = this.acroForm.get("XFA"); + const fields = this.acroForm.get("Fields"); if ((!Array.isArray(fields) || fields.length === 0) && !this.xfa) { this.acroForm = null; @@ -3178,12 +3194,12 @@ class PDFDocument { throw ex; } - (0, _util.info)('Cannot fetch AcroForm entry; assuming no AcroForms are present'); + (0, _util.info)("Cannot fetch AcroForm entry; assuming no AcroForms are present"); this.acroForm = null; } try { - const collection = this.catalog.catDict.get('Collection'); + const collection = this.catalog.catDict.get("Collection"); if ((0, _primitives.isDict)(collection) && collection.getKeys().length > 0) { this.collection = collection; @@ -3193,7 +3209,7 @@ class PDFDocument { throw ex; } - (0, _util.info)('Cannot fetch Collection dictionary.'); + (0, _util.info)("Cannot fetch Collection dictionary."); } } @@ -3210,7 +3226,7 @@ class PDFDocument { (0, _util.info)(err); } - return (0, _util.shadow)(this, 'linearization', linearization); + return (0, _util.shadow)(this, "linearization", linearization); } get startXRef() { @@ -3220,12 +3236,12 @@ class PDFDocument { if (this.linearization) { stream.reset(); - if (find(stream, 'endobj', 1024)) { + if (find(stream, ENDOBJ_SIGNATURE)) { startXRef = stream.pos + 6 - stream.start; } } else { const step = 1024; - const startXRefLength = 'startxref'.length; + const startXRefLength = STARTXREF_SIGNATURE.length; let found = false, pos = stream.end; @@ -3237,7 +3253,7 @@ class PDFDocument { } stream.pos = pos; - found = find(stream, 'startxref', step, true); + found = find(stream, STARTXREF_SIGNATURE, step, true); } if (found) { @@ -3248,7 +3264,7 @@ class PDFDocument { ch = stream.getByte(); } while ((0, _util.isSpace)(ch)); - let str = ''; + let str = ""; while (ch >= 0x20 && ch <= 0x39) { str += String.fromCharCode(ch); @@ -3263,20 +3279,20 @@ class PDFDocument { } } - return (0, _util.shadow)(this, 'startXRef', startXRef); + return (0, _util.shadow)(this, "startXRef", startXRef); } checkHeader() { const stream = this.stream; stream.reset(); - if (!find(stream, '%PDF-', 1024)) { + if (!find(stream, PDF_HEADER_SIGNATURE)) { return; } stream.moveStart(); const MAX_PDF_VERSION_LENGTH = 12; - let version = '', + let version = "", ch; while ((ch = stream.getByte()) > 0x20) { @@ -3304,7 +3320,7 @@ class PDFDocument { get numPages() { const linearization = this.linearization; const num = linearization ? linearization.numPages : this.catalog.numPages; - return (0, _util.shadow)(this, 'numPages', num); + return (0, _util.shadow)(this, "numPages", num); } get documentInfo() { @@ -3329,13 +3345,13 @@ class PDFDocument { let infoDict; try { - infoDict = this.xref.trailer.get('Info'); + infoDict = this.xref.trailer.get("Info"); } catch (err) { if (err instanceof _core_utils.MissingDataException) { throw err; } - (0, _util.info)('The document information dictionary is invalid.'); + (0, _util.info)("The document information dictionary is invalid."); } if ((0, _primitives.isDict)(infoDict)) { @@ -3344,11 +3360,11 @@ class PDFDocument { if (DocumentInfoValidators[key]) { if (DocumentInfoValidators[key](value)) { - docInfo[key] = typeof value !== 'string' ? value : (0, _util.stringToPDFString)(value); + docInfo[key] = typeof value !== "string" ? value : (0, _util.stringToPDFString)(value); } else { (0, _util.info)(`Bad value in document info for "${key}".`); } - } else if (typeof key === 'string') { + } else if (typeof key === "string") { let customValue; if ((0, _util.isString)(value)) { @@ -3360,21 +3376,21 @@ class PDFDocument { continue; } - if (!docInfo['Custom']) { - docInfo['Custom'] = Object.create(null); + if (!docInfo["Custom"]) { + docInfo["Custom"] = Object.create(null); } - docInfo['Custom'][key] = customValue; + docInfo["Custom"][key] = customValue; } } } - return (0, _util.shadow)(this, 'documentInfo', docInfo); + return (0, _util.shadow)(this, "documentInfo", docInfo); } get fingerprint() { let hash; - const idArray = this.xref.trailer.get('ID'); + const idArray = this.xref.trailer.get("ID"); if (Array.isArray(idArray) && idArray[0] && (0, _util.isString)(idArray[0]) && idArray[0] !== EMPTY_FINGERPRINT) { hash = (0, _util.stringToBytes)(idArray[0]); @@ -3386,10 +3402,10 @@ class PDFDocument { for (let i = 0, ii = hash.length; i < ii; i++) { const hex = hash[i].toString(16); - fingerprintBuf.push(hex.padStart(2, '0')); + fingerprintBuf.push(hex.padStart(2, "0")); } - return (0, _util.shadow)(this, 'fingerprint', fingerprintBuf.join('')); + return (0, _util.shadow)(this, "fingerprint", fingerprintBuf.join("")); } _getLinearizationPage(pageIndex) { @@ -3402,7 +3418,7 @@ class PDFDocument { const ref = _primitives.Ref.get(linearization.objectNumberFirst, 0); return this.xref.fetchAsync(ref).then(obj => { - if ((0, _primitives.isDict)(obj, 'Page') || (0, _primitives.isDict)(obj) && !obj.has('Type') && obj.has('Contents')) { + if ((0, _primitives.isDict)(obj, "Page") || (0, _primitives.isDict)(obj) && !obj.has("Type") && obj.has("Contents")) { if (ref && !catalog.pageKidsCountCache.has(ref)) { catalog.pageKidsCountCache.put(ref, 1); } @@ -3410,7 +3426,7 @@ class PDFDocument { return [obj, ref]; } - throw new _util.FormatError('The Linearization dictionary doesn\'t point ' + 'to a valid Page dictionary.'); + throw new _util.FormatError("The Linearization dictionary doesn't point " + "to a valid Page dictionary."); }).catch(reason => { (0, _util.info)(reason); return catalog.getPageDict(pageIndex); @@ -3464,7 +3480,7 @@ class PDFDocument { exports.PDFDocument = PDFDocument; /***/ }), -/* 10 */ +/* 9 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -3477,18 +3493,18 @@ exports.FileSpec = exports.XRef = exports.ObjectLoader = exports.Catalog = void var _util = __w_pdfjs_require__(2); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _parser = __w_pdfjs_require__(11); +var _parser = __w_pdfjs_require__(10); -var _core_utils = __w_pdfjs_require__(8); +var _core_utils = __w_pdfjs_require__(7); -var _crypto = __w_pdfjs_require__(22); +var _crypto = __w_pdfjs_require__(21); -var _colorspace = __w_pdfjs_require__(23); +var _colorspace = __w_pdfjs_require__(22); function fetchDestination(dest) { - return (0, _primitives.isDict)(dest) ? dest.get('D') : dest; + return (0, _primitives.isDict)(dest) ? dest.get("D") : dest; } class Catalog { @@ -3498,7 +3514,7 @@ class Catalog { this.catDict = xref.getCatalogObj(); if (!(0, _primitives.isDict)(this.catDict)) { - throw new _util.FormatError('Catalog object is not a dictionary.'); + throw new _util.FormatError("Catalog object is not a dictionary."); } this.fontCache = new _primitives.RefSetCache(); @@ -3507,10 +3523,10 @@ class Catalog { } get metadata() { - const streamRef = this.catDict.getRaw('Metadata'); + const streamRef = this.catDict.getRaw("Metadata"); if (!(0, _primitives.isRef)(streamRef)) { - return (0, _util.shadow)(this, 'metadata', null); + return (0, _util.shadow)(this, "metadata", null); } const suppressEncryption = !(this.xref.encrypt && this.xref.encrypt.encryptMetadata); @@ -3518,10 +3534,10 @@ class Catalog { let metadata; if (stream && (0, _primitives.isDict)(stream.dict)) { - const type = stream.dict.get('Type'); - const subtype = stream.dict.get('Subtype'); + const type = stream.dict.get("Type"); + const subtype = stream.dict.get("Subtype"); - if ((0, _primitives.isName)(type, 'Metadata') && (0, _primitives.isName)(subtype, 'XML')) { + if ((0, _primitives.isName)(type, "Metadata") && (0, _primitives.isName)(subtype, "XML")) { try { metadata = (0, _util.stringToUTF8String)((0, _util.bytesToString)(stream.getBytes())); } catch (e) { @@ -3529,22 +3545,22 @@ class Catalog { throw e; } - (0, _util.info)('Skipping invalid metadata.'); + (0, _util.info)("Skipping invalid metadata."); } } } - return (0, _util.shadow)(this, 'metadata', metadata); + return (0, _util.shadow)(this, "metadata", metadata); } get toplevelPagesDict() { - const pagesObj = this.catDict.get('Pages'); + const pagesObj = this.catDict.get("Pages"); if (!(0, _primitives.isDict)(pagesObj)) { - throw new _util.FormatError('Invalid top-level pages dictionary.'); + throw new _util.FormatError("Invalid top-level pages dictionary."); } - return (0, _util.shadow)(this, 'toplevelPagesDict', pagesObj); + return (0, _util.shadow)(this, "toplevelPagesDict", pagesObj); } get documentOutline() { @@ -3557,20 +3573,20 @@ class Catalog { throw ex; } - (0, _util.warn)('Unable to read document outline.'); + (0, _util.warn)("Unable to read document outline."); } - return (0, _util.shadow)(this, 'documentOutline', obj); + return (0, _util.shadow)(this, "documentOutline", obj); } _readDocumentOutline() { - let obj = this.catDict.get('Outlines'); + let obj = this.catDict.get("Outlines"); if (!(0, _primitives.isDict)(obj)) { return null; } - obj = obj.getRaw('First'); + obj = obj.getRaw("First"); if (!(0, _primitives.isRef)(obj)) { return null; @@ -3596,8 +3612,8 @@ class Catalog { continue; } - if (!outlineDict.has('Title')) { - throw new _util.FormatError('Invalid outline item encountered.'); + if (!outlineDict.has("Title")) { + throw new _util.FormatError("Invalid outline item encountered."); } const data = { @@ -3609,10 +3625,10 @@ class Catalog { resultObj: data, docBaseUrl: this.pdfManager.docBaseUrl }); - const title = outlineDict.get('Title'); - const flags = outlineDict.get('F') || 0; - const color = outlineDict.getArray('C'); - const count = outlineDict.get('Count'); + const title = outlineDict.get("Title"); + const flags = outlineDict.get("F") || 0; + const color = outlineDict.getArray("C"); + const count = outlineDict.get("Count"); let rgbColor = blackColor; if (Array.isArray(color) && color.length === 3 && (color[0] !== 0 || color[1] !== 0 || color[2] !== 0)) { @@ -3632,7 +3648,7 @@ class Catalog { items: [] }; i.parent.items.push(outlineItem); - obj = outlineDict.getRaw('First'); + obj = outlineDict.getRaw("First"); if ((0, _primitives.isRef)(obj) && !processed.has(obj)) { queue.push({ @@ -3642,7 +3658,7 @@ class Catalog { processed.put(obj); } - obj = outlineDict.getRaw('Next'); + obj = outlineDict.getRaw("Next"); if ((0, _primitives.isRef)(obj) && !processed.has(obj)) { queue.push({ @@ -3666,20 +3682,20 @@ class Catalog { throw ex; } - (0, _util.warn)('Unable to read permissions.'); + (0, _util.warn)("Unable to read permissions."); } - return (0, _util.shadow)(this, 'permissions', permissions); + return (0, _util.shadow)(this, "permissions", permissions); } _readPermissions() { - const encrypt = this.xref.trailer.get('Encrypt'); + const encrypt = this.xref.trailer.get("Encrypt"); if (!(0, _primitives.isDict)(encrypt)) { return null; } - let flags = encrypt.get('P'); + let flags = encrypt.get("P"); if (!(0, _util.isNum)(flags)) { return null; @@ -3700,13 +3716,13 @@ class Catalog { } get numPages() { - const obj = this.toplevelPagesDict.get('Count'); + const obj = this.toplevelPagesDict.get("Count"); if (!Number.isInteger(obj)) { - throw new _util.FormatError('Page count in top-level pages dictionary is not an integer.'); + throw new _util.FormatError("Page count in top-level pages dictionary is not an integer."); } - return (0, _util.shadow)(this, 'numPages', obj); + return (0, _util.shadow)(this, "numPages", obj); } get destinations() { @@ -3727,7 +3743,7 @@ class Catalog { }); } - return (0, _util.shadow)(this, 'destinations', dests); + return (0, _util.shadow)(this, "destinations", dests); } getDestination(destinationId) { @@ -3741,12 +3757,12 @@ class Catalog { } _readDests() { - const obj = this.catDict.get('Names'); + const obj = this.catDict.get("Names"); - if (obj && obj.has('Dests')) { - return new NameTree(obj.getRaw('Dests'), this.xref); - } else if (this.catDict.has('Dests')) { - return this.catDict.get('Dests'); + if (obj && obj.has("Dests")) { + return new NameTree(obj.getRaw("Dests"), this.xref); + } else if (this.catDict.has("Dests")) { + return this.catDict.get("Dests"); } return undefined; @@ -3762,14 +3778,14 @@ class Catalog { throw ex; } - (0, _util.warn)('Unable to read page labels.'); + (0, _util.warn)("Unable to read page labels."); } - return (0, _util.shadow)(this, 'pageLabels', obj); + return (0, _util.shadow)(this, "pageLabels", obj); } _readPageLabels() { - const obj = this.catDict.getRaw('PageLabels'); + const obj = this.catDict.getRaw("PageLabels"); if (!obj) { return null; @@ -3777,10 +3793,10 @@ class Catalog { const pageLabels = new Array(this.numPages); let style = null, - prefix = ''; + prefix = ""; const numberTree = new NumberTree(obj, this.xref); const nums = numberTree.getAll(); - let currentLabel = '', + let currentLabel = "", currentIndex = 1; for (let i = 0, ii = this.numPages; i < ii; i++) { @@ -3788,18 +3804,18 @@ class Catalog { const labelDict = nums[i]; if (!(0, _primitives.isDict)(labelDict)) { - throw new _util.FormatError('PageLabel is not a dictionary.'); + throw new _util.FormatError("PageLabel is not a dictionary."); } - if (labelDict.has('Type') && !(0, _primitives.isName)(labelDict.get('Type'), 'PageLabel')) { - throw new _util.FormatError('Invalid type in PageLabel dictionary.'); + if (labelDict.has("Type") && !(0, _primitives.isName)(labelDict.get("Type"), "PageLabel")) { + throw new _util.FormatError("Invalid type in PageLabel dictionary."); } - if (labelDict.has('S')) { - const s = labelDict.get('S'); + if (labelDict.has("S")) { + const s = labelDict.get("S"); if (!(0, _primitives.isName)(s)) { - throw new _util.FormatError('Invalid style in PageLabel dictionary.'); + throw new _util.FormatError("Invalid style in PageLabel dictionary."); } style = s.name; @@ -3807,23 +3823,23 @@ class Catalog { style = null; } - if (labelDict.has('P')) { - const p = labelDict.get('P'); + if (labelDict.has("P")) { + const p = labelDict.get("P"); if (!(0, _util.isString)(p)) { - throw new _util.FormatError('Invalid prefix in PageLabel dictionary.'); + throw new _util.FormatError("Invalid prefix in PageLabel dictionary."); } prefix = (0, _util.stringToPDFString)(p); } else { - prefix = ''; + prefix = ""; } - if (labelDict.has('St')) { - const st = labelDict.get('St'); + if (labelDict.has("St")) { + const st = labelDict.get("St"); if (!(Number.isInteger(st) && st >= 1)) { - throw new _util.FormatError('Invalid start in PageLabel dictionary.'); + throw new _util.FormatError("Invalid start in PageLabel dictionary."); } currentIndex = st; @@ -3833,21 +3849,21 @@ class Catalog { } switch (style) { - case 'D': + case "D": currentLabel = currentIndex; break; - case 'R': - case 'r': - currentLabel = (0, _core_utils.toRomanNumerals)(currentIndex, style === 'r'); + case "R": + case "r": + currentLabel = (0, _core_utils.toRomanNumerals)(currentIndex, style === "r"); break; - case 'A': - case 'a': + case "A": + case "a": const LIMIT = 26; const A_UPPER_CASE = 0x41, A_LOWER_CASE = 0x61; - const baseCharCode = style === 'a' ? A_LOWER_CASE : A_UPPER_CASE; + const baseCharCode = style === "a" ? A_LOWER_CASE : A_UPPER_CASE; const letterIndex = currentIndex - 1; const character = String.fromCharCode(baseCharCode + letterIndex % LIMIT); const charBuf = []; @@ -3856,7 +3872,7 @@ class Catalog { charBuf.push(character); } - currentLabel = charBuf.join(''); + currentLabel = charBuf.join(""); break; default: @@ -3864,7 +3880,7 @@ class Catalog { throw new _util.FormatError(`Invalid style "${style}" in PageLabel dictionary.`); } - currentLabel = ''; + currentLabel = ""; } pageLabels[i] = prefix + currentLabel; @@ -3875,41 +3891,41 @@ class Catalog { } get pageLayout() { - const obj = this.catDict.get('PageLayout'); - let pageLayout = ''; + const obj = this.catDict.get("PageLayout"); + let pageLayout = ""; if ((0, _primitives.isName)(obj)) { switch (obj.name) { - case 'SinglePage': - case 'OneColumn': - case 'TwoColumnLeft': - case 'TwoColumnRight': - case 'TwoPageLeft': - case 'TwoPageRight': + case "SinglePage": + case "OneColumn": + case "TwoColumnLeft": + case "TwoColumnRight": + case "TwoPageLeft": + case "TwoPageRight": pageLayout = obj.name; } } - return (0, _util.shadow)(this, 'pageLayout', pageLayout); + return (0, _util.shadow)(this, "pageLayout", pageLayout); } get pageMode() { - const obj = this.catDict.get('PageMode'); - let pageMode = 'UseNone'; + const obj = this.catDict.get("PageMode"); + let pageMode = "UseNone"; if ((0, _primitives.isName)(obj)) { switch (obj.name) { - case 'UseNone': - case 'UseOutlines': - case 'UseThumbs': - case 'FullScreen': - case 'UseOC': - case 'UseAttachments': + case "UseNone": + case "UseOutlines": + case "UseThumbs": + case "FullScreen": + case "UseOC": + case "UseAttachments": pageMode = obj.name; } } - return (0, _util.shadow)(this, 'pageMode', pageMode); + return (0, _util.shadow)(this, "pageMode", pageMode); } get viewerPreferences() { @@ -3932,7 +3948,7 @@ class Catalog { PrintPageRange: Array.isArray, NumCopies: Number.isInteger }; - const obj = this.catDict.get('ViewerPreferences'); + const obj = this.catDict.get("ViewerPreferences"); const prefs = Object.create(null); if ((0, _primitives.isDict)(obj)) { @@ -3951,81 +3967,81 @@ class Catalog { let prefValue; switch (key) { - case 'NonFullScreenPageMode': + case "NonFullScreenPageMode": switch (value.name) { - case 'UseNone': - case 'UseOutlines': - case 'UseThumbs': - case 'UseOC': + case "UseNone": + case "UseOutlines": + case "UseThumbs": + case "UseOC": prefValue = value.name; break; default: - prefValue = 'UseNone'; + prefValue = "UseNone"; } break; - case 'Direction': + case "Direction": switch (value.name) { - case 'L2R': - case 'R2L': + case "L2R": + case "R2L": prefValue = value.name; break; default: - prefValue = 'L2R'; + prefValue = "L2R"; } break; - case 'ViewArea': - case 'ViewClip': - case 'PrintArea': - case 'PrintClip': + case "ViewArea": + case "ViewClip": + case "PrintArea": + case "PrintClip": switch (value.name) { - case 'MediaBox': - case 'CropBox': - case 'BleedBox': - case 'TrimBox': - case 'ArtBox': + case "MediaBox": + case "CropBox": + case "BleedBox": + case "TrimBox": + case "ArtBox": prefValue = value.name; break; default: - prefValue = 'CropBox'; + prefValue = "CropBox"; } break; - case 'PrintScaling': + case "PrintScaling": switch (value.name) { - case 'None': - case 'AppDefault': + case "None": + case "AppDefault": prefValue = value.name; break; default: - prefValue = 'AppDefault'; + prefValue = "AppDefault"; } break; - case 'Duplex': + case "Duplex": switch (value.name) { - case 'Simplex': - case 'DuplexFlipShortEdge': - case 'DuplexFlipLongEdge': + case "Simplex": + case "DuplexFlipShortEdge": + case "DuplexFlipLongEdge": prefValue = value.name; break; default: - prefValue = 'None'; + prefValue = "None"; } break; - case 'PrintPageRange': + case "PrintPageRange": const length = value.length; if (length % 2 !== 0) { @@ -4042,7 +4058,7 @@ class Catalog { break; - case 'NumCopies': + case "NumCopies": if (value > 0) { prefValue = value; } @@ -4050,7 +4066,7 @@ class Catalog { break; default: - (0, _util.assert)(typeof value === 'boolean'); + (0, _util.assert)(typeof value === "boolean"); prefValue = value; } @@ -4062,16 +4078,16 @@ class Catalog { } } - return (0, _util.shadow)(this, 'viewerPreferences', prefs); + return (0, _util.shadow)(this, "viewerPreferences", prefs); } get openActionDestination() { - const obj = this.catDict.get('OpenAction'); + const obj = this.catDict.get("OpenAction"); let openActionDest = null; if ((0, _primitives.isDict)(obj)) { const destDict = new _primitives.Dict(this.xref); - destDict.set('A', obj); + destDict.set("A", obj); const resultObj = { url: null, dest: null @@ -4088,15 +4104,15 @@ class Catalog { openActionDest = obj; } - return (0, _util.shadow)(this, 'openActionDestination', openActionDest); + return (0, _util.shadow)(this, "openActionDestination", openActionDest); } get attachments() { - const obj = this.catDict.get('Names'); + const obj = this.catDict.get("Names"); let attachments = null; - if (obj && obj.has('EmbeddedFiles')) { - const nameTree = new NameTree(obj.getRaw('EmbeddedFiles'), this.xref); + if (obj && obj.has("EmbeddedFiles")) { + const nameTree = new NameTree(obj.getRaw("EmbeddedFiles"), this.xref); const names = nameTree.getAll(); for (const name in names) { @@ -4110,21 +4126,21 @@ class Catalog { } } - return (0, _util.shadow)(this, 'attachments', attachments); + return (0, _util.shadow)(this, "attachments", attachments); } get javaScript() { - const obj = this.catDict.get('Names'); + const obj = this.catDict.get("Names"); let javaScript = null; function appendIfJavaScriptDict(jsDict) { - const type = jsDict.get('S'); + const type = jsDict.get("S"); - if (!(0, _primitives.isName)(type, 'JavaScript')) { + if (!(0, _primitives.isName)(type, "JavaScript")) { return; } - let js = jsDict.get('JS'); + let js = jsDict.get("JS"); if ((0, _primitives.isStream)(js)) { js = (0, _util.bytesToString)(js.getBytes()); @@ -4139,8 +4155,8 @@ class Catalog { javaScript.push((0, _util.stringToPDFString)(js)); } - if (obj && obj.has('JavaScript')) { - const nameTree = new NameTree(obj.getRaw('JavaScript'), this.xref); + if (obj && obj.has("JavaScript")) { + const nameTree = new NameTree(obj.getRaw("JavaScript"), this.xref); const names = nameTree.getAll(); for (const name in names) { @@ -4152,27 +4168,27 @@ class Catalog { } } - const openActionDict = this.catDict.get('OpenAction'); + const openActionDict = this.catDict.get("OpenAction"); - if ((0, _primitives.isDict)(openActionDict, 'Action')) { - const actionType = openActionDict.get('S'); + if ((0, _primitives.isDict)(openActionDict) && ((0, _primitives.isName)(openActionDict.get("Type"), "Action") || !openActionDict.has("Type"))) { + const actionType = openActionDict.get("S"); - if ((0, _primitives.isName)(actionType, 'Named')) { - const action = openActionDict.get('N'); + if ((0, _primitives.isName)(actionType, "Named")) { + const action = openActionDict.get("N"); - if ((0, _primitives.isName)(action, 'Print')) { + if ((0, _primitives.isName)(action, "Print")) { if (!javaScript) { javaScript = []; } - javaScript.push('print({});'); + javaScript.push("print({});"); } } else { appendIfJavaScriptDict(openActionDict); } } - return (0, _util.shadow)(this, 'javaScript', javaScript); + return (0, _util.shadow)(this, "javaScript", javaScript); } fontFallback(id, handler) { @@ -4211,7 +4227,7 @@ class Catalog { getPageDict(pageIndex) { const capability = (0, _util.createPromiseCapability)(); - const nodesToVisit = [this.catDict.getRaw('Pages')]; + const nodesToVisit = [this.catDict.getRaw("Pages")]; const xref = this.xref, pageKidsCountCache = this.pageKidsCountCache; let count, @@ -4230,7 +4246,7 @@ class Catalog { } xref.fetchAsync(currentNode).then(function (obj) { - if ((0, _primitives.isDict)(obj, 'Page') || (0, _primitives.isDict)(obj) && !obj.has('Kids')) { + if ((0, _primitives.isDict)(obj, "Page") || (0, _primitives.isDict)(obj) && !obj.has("Kids")) { if (pageIndex === currentPageIndex) { if (currentNode && !pageKidsCountCache.has(currentNode)) { pageKidsCountCache.put(currentNode, 1); @@ -4252,11 +4268,11 @@ class Catalog { } if (!(0, _primitives.isDict)(currentNode)) { - capability.reject(new _util.FormatError('Page dictionary kid reference points to wrong type of object.')); + capability.reject(new _util.FormatError("Page dictionary kid reference points to wrong type of object.")); return; } - count = currentNode.get('Count'); + count = currentNode.get("Count"); if (Number.isInteger(count) && count >= 0) { const objId = currentNode.objId; @@ -4271,10 +4287,10 @@ class Catalog { } } - const kids = currentNode.get('Kids'); + const kids = currentNode.get("Kids"); if (!Array.isArray(kids)) { - if ((0, _primitives.isName)(currentNode.get('Type'), 'Page') || !currentNode.has('Type') && currentNode.has('Contents')) { + if ((0, _primitives.isName)(currentNode.get("Type"), "Page") || !currentNode.has("Type") && currentNode.has("Contents")) { if (currentPageIndex === pageIndex) { capability.resolve([currentNode, null]); return; @@ -4284,7 +4300,7 @@ class Catalog { continue; } - capability.reject(new _util.FormatError('Page dictionary kids object is not an array.')); + capability.reject(new _util.FormatError("Page dictionary kids object is not an array.")); return; } @@ -4307,8 +4323,8 @@ class Catalog { let total = 0, parentRef; return xref.fetchAsync(kidRef).then(function (node) { - if ((0, _primitives.isRefsEqual)(kidRef, pageRef) && !(0, _primitives.isDict)(node, 'Page') && !((0, _primitives.isDict)(node) && !node.has('Type') && node.has('Contents'))) { - throw new _util.FormatError('The reference does not point to a /Page dictionary.'); + if ((0, _primitives.isRefsEqual)(kidRef, pageRef) && !(0, _primitives.isDict)(node, "Page") && !((0, _primitives.isDict)(node) && !node.has("Type") && node.has("Contents"))) { + throw new _util.FormatError("The reference does not point to a /Page dictionary."); } if (!node) { @@ -4316,21 +4332,21 @@ class Catalog { } if (!(0, _primitives.isDict)(node)) { - throw new _util.FormatError('Node must be a dictionary.'); + throw new _util.FormatError("Node must be a dictionary."); } - parentRef = node.getRaw('Parent'); - return node.getAsync('Parent'); + parentRef = node.getRaw("Parent"); + return node.getAsync("Parent"); }).then(function (parent) { if (!parent) { return null; } if (!(0, _primitives.isDict)(parent)) { - throw new _util.FormatError('Parent must be a dictionary.'); + throw new _util.FormatError("Parent must be a dictionary."); } - return parent.getAsync('Kids'); + return parent.getAsync("Kids"); }).then(function (kids) { if (!kids) { return null; @@ -4343,7 +4359,7 @@ class Catalog { const kid = kids[i]; if (!(0, _primitives.isRef)(kid)) { - throw new _util.FormatError('Kid must be a reference.'); + throw new _util.FormatError("Kid must be a reference."); } if ((0, _primitives.isRefsEqual)(kid, kidRef)) { @@ -4353,11 +4369,11 @@ class Catalog { kidPromises.push(xref.fetchAsync(kid).then(function (kid) { if (!(0, _primitives.isDict)(kid)) { - throw new _util.FormatError('Kid node must be a dictionary.'); + throw new _util.FormatError("Kid node must be a dictionary."); } - if (kid.has('Count')) { - total += kid.get('Count'); + if (kid.has("Count")) { + total += kid.get("Count"); } else { total++; } @@ -4365,7 +4381,7 @@ class Catalog { } if (!found) { - throw new _util.FormatError('Kid reference not found in parent\'s kids.'); + throw new _util.FormatError("Kid reference not found in parent's kids."); } return Promise.all(kidPromises).then(function () { @@ -4393,7 +4409,7 @@ class Catalog { static parseDestDictionary(params) { function addDefaultProtocolToUrl(url) { - return url.startsWith('www.') ? `http://${url}` : url; + return url.startsWith("www.") ? `http://${url}` : url; } function tryConvertUrlEncoding(url) { @@ -4407,63 +4423,63 @@ class Catalog { const destDict = params.destDict; if (!(0, _primitives.isDict)(destDict)) { - (0, _util.warn)('parseDestDictionary: `destDict` must be a dictionary.'); + (0, _util.warn)("parseDestDictionary: `destDict` must be a dictionary."); return; } const resultObj = params.resultObj; - if (typeof resultObj !== 'object') { - (0, _util.warn)('parseDestDictionary: `resultObj` must be an object.'); + if (typeof resultObj !== "object") { + (0, _util.warn)("parseDestDictionary: `resultObj` must be an object."); return; } const docBaseUrl = params.docBaseUrl || null; - let action = destDict.get('A'), + let action = destDict.get("A"), url, dest; - if (!(0, _primitives.isDict)(action) && destDict.has('Dest')) { - action = destDict.get('Dest'); + if (!(0, _primitives.isDict)(action) && destDict.has("Dest")) { + action = destDict.get("Dest"); } if ((0, _primitives.isDict)(action)) { - const actionType = action.get('S'); + const actionType = action.get("S"); if (!(0, _primitives.isName)(actionType)) { - (0, _util.warn)('parseDestDictionary: Invalid type in Action dictionary.'); + (0, _util.warn)("parseDestDictionary: Invalid type in Action dictionary."); return; } const actionName = actionType.name; switch (actionName) { - case 'URI': - url = action.get('URI'); + case "URI": + url = action.get("URI"); if ((0, _primitives.isName)(url)) { - url = '/' + url.name; + url = "/" + url.name; } else if ((0, _util.isString)(url)) { url = addDefaultProtocolToUrl(url); } break; - case 'GoTo': - dest = action.get('D'); + case "GoTo": + dest = action.get("D"); break; - case 'Launch': - case 'GoToR': - const urlDict = action.get('F'); + case "Launch": + case "GoToR": + const urlDict = action.get("F"); if ((0, _primitives.isDict)(urlDict)) { - url = urlDict.get('F') || null; + url = urlDict.get("F") || null; } else if ((0, _util.isString)(urlDict)) { url = urlDict; } - let remoteDest = action.get('D'); + let remoteDest = action.get("D"); if (remoteDest) { if ((0, _primitives.isName)(remoteDest)) { @@ -4471,17 +4487,17 @@ class Catalog { } if ((0, _util.isString)(url)) { - const baseUrl = url.split('#')[0]; + const baseUrl = url.split("#")[0]; if ((0, _util.isString)(remoteDest)) { - url = baseUrl + '#' + remoteDest; + url = baseUrl + "#" + remoteDest; } else if (Array.isArray(remoteDest)) { - url = baseUrl + '#' + JSON.stringify(remoteDest); + url = baseUrl + "#" + JSON.stringify(remoteDest); } } } - const newWindow = action.get('NewWindow'); + const newWindow = action.get("NewWindow"); if ((0, _util.isBool)(newWindow)) { resultObj.newWindow = newWindow; @@ -4489,8 +4505,8 @@ class Catalog { break; - case 'Named': - const namedAction = action.get('N'); + case "Named": + const namedAction = action.get("N"); if ((0, _primitives.isName)(namedAction)) { resultObj.action = namedAction.name; @@ -4498,8 +4514,8 @@ class Catalog { break; - case 'JavaScript': - const jsAction = action.get('JS'); + case "JavaScript": + const jsAction = action.get("JS"); let js; if ((0, _primitives.isStream)(jsAction)) { @@ -4509,14 +4525,14 @@ class Catalog { } if (js) { - const URL_OPEN_METHODS = ['app.launchURL', 'window.open']; - const regex = new RegExp('^\\s*(' + URL_OPEN_METHODS.join('|').split('.').join('\\.') + ')\\((?:\'|\")([^\'\"]*)(?:\'|\")(?:,\\s*(\\w+)\\)|\\))', 'i'); + const URL_OPEN_METHODS = ["app.launchURL", "window.open"]; + const regex = new RegExp("^\\s*(" + URL_OPEN_METHODS.join("|").split(".").join("\\.") + ")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))", "i"); const jsUrl = regex.exec((0, _util.stringToPDFString)(js)); if (jsUrl && jsUrl[2]) { url = jsUrl[2]; - if (jsUrl[3] === 'true' && jsUrl[1] === 'app.launchURL') { + if (jsUrl[3] === "true" && jsUrl[1] === "app.launchURL") { resultObj.newWindow = true; } @@ -4528,8 +4544,8 @@ class Catalog { (0, _util.warn)(`parseDestDictionary: unsupported action type "${actionName}".`); break; } - } else if (destDict.has('Dest')) { - dest = destDict.get('Dest'); + } else if (destDict.has("Dest")) { + dest = destDict.get("Dest"); } if ((0, _util.isString)(url)) { @@ -4581,7 +4597,7 @@ var XRef = function XRefClosure() { if (!recoveryMode) { trailerDict = this.readXRef(); } else { - (0, _util.warn)('Indexing all PDF objects'); + (0, _util.warn)("Indexing all PDF objects"); trailerDict = this.indexObjects(); } @@ -4590,7 +4606,7 @@ var XRef = function XRefClosure() { let encrypt; try { - encrypt = trailerDict.get('Encrypt'); + encrypt = trailerDict.get("Encrypt"); } catch (ex) { if (ex instanceof _core_utils.MissingDataException) { throw ex; @@ -4600,8 +4616,8 @@ var XRef = function XRefClosure() { } if ((0, _primitives.isDict)(encrypt)) { - var ids = trailerDict.get('ID'); - var fileId = ids && ids.length ? ids[0] : ''; + var ids = trailerDict.get("ID"); + var fileId = ids && ids.length ? ids[0] : ""; encrypt.suppressEncryption = true; this.encrypt = new _crypto.CipherTransformFactory(encrypt, fileId, this.pdfManager.password); } @@ -4609,7 +4625,7 @@ var XRef = function XRefClosure() { let root; try { - root = trailerDict.get('Root'); + root = trailerDict.get("Root"); } catch (ex) { if (ex instanceof _core_utils.MissingDataException) { throw ex; @@ -4618,18 +4634,18 @@ var XRef = function XRefClosure() { (0, _util.warn)(`XRef.parse - Invalid "Root" reference: "${ex}".`); } - if ((0, _primitives.isDict)(root) && root.has('Pages')) { + if ((0, _primitives.isDict)(root) && root.has("Pages")) { this.root = root; } else { if (!recoveryMode) { throw new _core_utils.XRefParseException(); } - throw new _util.FormatError('Invalid root reference'); + throw new _util.FormatError("Invalid root reference"); } }, processXRefTable: function XRef_processXRefTable(parser) { - if (!('tableState' in this)) { + if (!("tableState" in this)) { this.tableState = { entryNum: 0, streamPos: parser.lexer.stream.pos, @@ -4640,8 +4656,8 @@ var XRef = function XRefClosure() { var obj = this.readXRefTable(parser); - if (!(0, _primitives.isCmd)(obj, 'trailer')) { - throw new _util.FormatError('Invalid XRef table: could not find trailer dictionary'); + if (!(0, _primitives.isCmd)(obj, "trailer")) { + throw new _util.FormatError("Invalid XRef table: could not find trailer dictionary"); } var dict = parser.getObj(); @@ -4651,7 +4667,7 @@ var XRef = function XRefClosure() { } if (!(0, _primitives.isDict)(dict)) { - throw new _util.FormatError('Invalid XRef table: could not parse trailer dictionary'); + throw new _util.FormatError("Invalid XRef table: could not parse trailer dictionary"); } delete this.tableState; @@ -4666,8 +4682,8 @@ var XRef = function XRefClosure() { var obj; while (true) { - if (!('firstEntryNum' in tableState) || !('entryCount' in tableState)) { - if ((0, _primitives.isCmd)(obj = parser.getObj(), 'trailer')) { + if (!("firstEntryNum" in tableState) || !("entryCount" in tableState)) { + if ((0, _primitives.isCmd)(obj = parser.getObj(), "trailer")) { break; } @@ -4679,7 +4695,7 @@ var XRef = function XRefClosure() { var count = tableState.entryCount; if (!Number.isInteger(first) || !Number.isInteger(count)) { - throw new _util.FormatError('Invalid XRef table: wrong types in subsection header'); + throw new _util.FormatError("Invalid XRef table: wrong types in subsection header"); } for (var i = tableState.entryNum; i < count; i++) { @@ -4694,11 +4710,11 @@ var XRef = function XRefClosure() { if (type instanceof _primitives.Cmd) { switch (type.cmd) { - case 'f': + case "f": entry.free = true; break; - case 'n': + case "n": entry.uncompressed = true; break; } @@ -4726,19 +4742,19 @@ var XRef = function XRefClosure() { } if (this.entries[0] && !this.entries[0].free) { - throw new _util.FormatError('Invalid XRef table: unexpected first object'); + throw new _util.FormatError("Invalid XRef table: unexpected first object"); } return obj; }, processXRefStream: function XRef_processXRefStream(stream) { - if (!('streamState' in this)) { + if (!("streamState" in this)) { var streamParameters = stream.dict; - var byteWidths = streamParameters.get('W'); - var range = streamParameters.get('Index'); + var byteWidths = streamParameters.get("W"); + var range = streamParameters.get("Index"); if (!range) { - range = [0, streamParameters.get('Size')]; + range = [0, streamParameters.get("Size")]; } this.streamState = { @@ -4830,14 +4846,14 @@ var XRef = function XRefClosure() { }, indexObjects: function XRef_indexObjects() { var TAB = 0x9, - LF = 0xA, - CR = 0xD, + LF = 0xa, + CR = 0xd, SPACE = 0x20; var PERCENT = 0x25, - LT = 0x3C; + LT = 0x3c; function readToken(data, offset) { - var token = '', + var token = "", ch = data[offset]; while (ch !== LF && ch !== CR && ch !== LT) { @@ -4917,7 +4933,7 @@ var XRef = function XRefClosure() { var token = readToken(buffer, position); var m; - if (token.startsWith('xref') && (token.length === 4 || /\s/.test(token[4]))) { + if (token.startsWith("xref") && (token.length === 4 || /\s/.test(token[4]))) { position += skipUntil(buffer, position, trailerBytes); trailers.push(position); position += skipUntil(buffer, position, startxrefBytes); @@ -4966,7 +4982,7 @@ var XRef = function XRefClosure() { } position += contentLength; - } else if (token.startsWith('trailer') && (token.length === 7 || /\s/.test(token[7]))) { + } else if (token.startsWith("trailer") && (token.length === 7 || /\s/.test(token[7]))) { trailers.push(position); position += skipUntil(buffer, position, startxrefBytes); } else { @@ -4993,7 +5009,7 @@ var XRef = function XRefClosure() { }); var obj = parser.getObj(); - if (!(0, _primitives.isCmd)(obj, 'trailer')) { + if (!(0, _primitives.isCmd)(obj, "trailer")) { continue; } @@ -5006,7 +5022,7 @@ var XRef = function XRefClosure() { let rootDict; try { - rootDict = dict.get('Root'); + rootDict = dict.get("Root"); } catch (ex) { if (ex instanceof _core_utils.MissingDataException) { throw ex; @@ -5015,11 +5031,11 @@ var XRef = function XRefClosure() { continue; } - if (!(0, _primitives.isDict)(rootDict) || !rootDict.has('Pages')) { + if (!(0, _primitives.isDict)(rootDict) || !rootDict.has("Pages")) { continue; } - if (dict.has('ID')) { + if (dict.has("ID")) { return dict; } @@ -5030,7 +5046,7 @@ var XRef = function XRefClosure() { return trailerDict; } - throw new _util.InvalidPDFException('Invalid PDF structure.'); + throw new _util.InvalidPDFException("Invalid PDF structure."); }, readXRef: function XRef_readXRef(recoveryMode) { var stream = this.stream; @@ -5041,7 +5057,7 @@ var XRef = function XRefClosure() { var startXRef = this.startXRefQueue[0]; if (startXRefParsedCache[startXRef]) { - (0, _util.warn)('readXRef - skipping XRef table since it was already parsed.'); + (0, _util.warn)("readXRef - skipping XRef table since it was already parsed."); this.startXRefQueue.shift(); continue; } @@ -5056,14 +5072,14 @@ var XRef = function XRefClosure() { var obj = parser.getObj(); var dict; - if ((0, _primitives.isCmd)(obj, 'xref')) { + if ((0, _primitives.isCmd)(obj, "xref")) { dict = this.processXRefTable(parser); if (!this.topDict) { this.topDict = dict; } - obj = dict.get('XRefStm'); + obj = dict.get("XRefStm"); if (Number.isInteger(obj)) { var pos = obj; @@ -5074,8 +5090,8 @@ var XRef = function XRefClosure() { } } } else if (Number.isInteger(obj)) { - if (!Number.isInteger(parser.getObj()) || !(0, _primitives.isCmd)(parser.getObj(), 'obj') || !(0, _primitives.isStream)(obj = parser.getObj())) { - throw new _util.FormatError('Invalid XRef stream'); + if (!Number.isInteger(parser.getObj()) || !(0, _primitives.isCmd)(parser.getObj(), "obj") || !(0, _primitives.isStream)(obj = parser.getObj())) { + throw new _util.FormatError("Invalid XRef stream"); } dict = this.processXRefStream(obj); @@ -5085,13 +5101,13 @@ var XRef = function XRefClosure() { } if (!dict) { - throw new _util.FormatError('Failed to read XRef stream'); + throw new _util.FormatError("Failed to read XRef stream"); } } else { - throw new _util.FormatError('Invalid XRef stream header'); + throw new _util.FormatError("Invalid XRef stream header"); } - obj = dict.get('Prev'); + obj = dict.get("Prev"); if (Number.isInteger(obj)) { this.startXRefQueue.push(obj); @@ -5108,7 +5124,7 @@ var XRef = function XRefClosure() { throw e; } - (0, _util.info)('(while reading XRef): ' + e); + (0, _util.info)("(while reading XRef): " + e); } if (recoveryMode) { @@ -5135,7 +5151,7 @@ var XRef = function XRefClosure() { }, fetch: function XRef_fetch(ref, suppressEncryption) { if (!(ref instanceof _primitives.Ref)) { - throw new Error('ref object is not a reference'); + throw new Error("ref object is not a reference"); } const num = ref.num; @@ -5195,8 +5211,8 @@ var XRef = function XRefClosure() { throw new _core_utils.XRefEntryException(`Bad (uncompressed) XRef entry: ${ref}`); } - if (obj3.cmd !== 'obj') { - if (obj3.cmd.startsWith('obj')) { + if (obj3.cmd !== "obj") { + if (obj3.cmd.startsWith("obj")) { num = parseInt(obj3.cmd.substring(3), 10); if (!Number.isNaN(num)) { @@ -5225,14 +5241,14 @@ var XRef = function XRefClosure() { const stream = this.fetch(_primitives.Ref.get(tableOffset, 0)); if (!(0, _primitives.isStream)(stream)) { - throw new _util.FormatError('bad ObjStm stream'); + throw new _util.FormatError("bad ObjStm stream"); } - const first = stream.dict.get('First'); - const n = stream.dict.get('N'); + const first = stream.dict.get("First"); + const n = stream.dict.get("N"); if (!Number.isInteger(first) || !Number.isInteger(n)) { - throw new _util.FormatError('invalid first and n parameters for ObjStm stream'); + throw new _util.FormatError("invalid first and n parameters for ObjStm stream"); } const parser = new _parser.Parser({ @@ -5264,7 +5280,7 @@ var XRef = function XRefClosure() { const obj = parser.getObj(); entries[i] = obj; - if (parser.buf1 instanceof _primitives.Cmd && parser.buf1.cmd === 'endobj') { + if (parser.buf1 instanceof _primitives.Cmd && parser.buf1.cmd === "endobj") { parser.shift(); } @@ -5322,7 +5338,7 @@ exports.XRef = XRef; class NameOrNumberTree { constructor(root, xref, type) { if (this.constructor === NameOrNumberTree) { - (0, _util.unreachable)('Cannot initialize NameOrNumberTree.'); + (0, _util.unreachable)("Cannot initialize NameOrNumberTree."); } this.root = root; @@ -5349,8 +5365,8 @@ class NameOrNumberTree { continue; } - if (obj.has('Kids')) { - const kids = obj.get('Kids'); + if (obj.has("Kids")) { + const kids = obj.get("Kids"); for (let i = 0, ii = kids.length; i < ii; i++) { const kid = kids[i]; @@ -5388,13 +5404,13 @@ class NameOrNumberTree { let loopCount = 0; const MAX_LEVELS = 10; - while (kidsOrEntries.has('Kids')) { + while (kidsOrEntries.has("Kids")) { if (++loopCount > MAX_LEVELS) { (0, _util.warn)(`Search depth limit reached for "${this._type}" tree.`); return null; } - const kids = kidsOrEntries.get('Kids'); + const kids = kidsOrEntries.get("Kids"); if (!Array.isArray(kids)) { return null; @@ -5406,7 +5422,7 @@ class NameOrNumberTree { while (l <= r) { const m = l + r >> 1; const kid = xref.fetchIfRef(kids[m]); - const limits = kid.get('Limits'); + const limits = kid.get("Limits"); if (key < xref.fetchIfRef(limits[0])) { r = m - 1; @@ -5462,14 +5478,14 @@ class NameOrNumberTree { class NameTree extends NameOrNumberTree { constructor(root, xref) { - super(root, xref, 'Names'); + super(root, xref, "Names"); } } class NumberTree extends NameOrNumberTree { constructor(root, xref) { - super(root, xref, 'Nums'); + super(root, xref, "Nums"); } } @@ -5483,35 +5499,35 @@ var FileSpec = function FileSpecClosure() { this.xref = xref; this.root = root; - if (root.has('FS')) { - this.fs = root.get('FS'); + if (root.has("FS")) { + this.fs = root.get("FS"); } - this.description = root.has('Desc') ? (0, _util.stringToPDFString)(root.get('Desc')) : ''; + this.description = root.has("Desc") ? (0, _util.stringToPDFString)(root.get("Desc")) : ""; - if (root.has('RF')) { - (0, _util.warn)('Related file specifications are not supported'); + if (root.has("RF")) { + (0, _util.warn)("Related file specifications are not supported"); } this.contentAvailable = true; - if (!root.has('EF')) { + if (!root.has("EF")) { this.contentAvailable = false; - (0, _util.warn)('Non-embedded file specifications are not supported'); + (0, _util.warn)("Non-embedded file specifications are not supported"); } } function pickPlatformItem(dict) { - if (dict.has('UF')) { - return dict.get('UF'); - } else if (dict.has('F')) { - return dict.get('F'); - } else if (dict.has('Unix')) { - return dict.get('Unix'); - } else if (dict.has('Mac')) { - return dict.get('Mac'); - } else if (dict.has('DOS')) { - return dict.get('DOS'); + if (dict.has("UF")) { + return dict.get("UF"); + } else if (dict.has("F")) { + return dict.get("F"); + } else if (dict.has("Unix")) { + return dict.get("Unix"); + } else if (dict.has("Mac")) { + return dict.get("Mac"); + } else if (dict.has("DOS")) { + return dict.get("DOS"); } return null; @@ -5520,8 +5536,8 @@ var FileSpec = function FileSpecClosure() { FileSpec.prototype = { get filename() { if (!this._filename && this.root) { - var filename = pickPlatformItem(this.root) || 'unnamed'; - this._filename = (0, _util.stringToPDFString)(filename).replace(/\\\\/g, '\\').replace(/\\\//g, '/').replace(/\\/g, '/'); + var filename = pickPlatformItem(this.root) || "unnamed"; + this._filename = (0, _util.stringToPDFString)(filename).replace(/\\\\/g, "\\").replace(/\\\//g, "/").replace(/\\/g, "/"); } return this._filename; @@ -5533,7 +5549,7 @@ var FileSpec = function FileSpecClosure() { } if (!this.contentRef && this.root) { - this.contentRef = pickPlatformItem(this.root.get('EF')); + this.contentRef = pickPlatformItem(this.root.get("EF")); } var content = null; @@ -5545,10 +5561,10 @@ var FileSpec = function FileSpecClosure() { if (fileObj && (0, _primitives.isStream)(fileObj)) { content = fileObj.getBytes(); } else { - (0, _util.warn)('Embedded file specification points to non-existing/invalid ' + 'content'); + (0, _util.warn)("Embedded file specification points to non-existing/invalid " + "content"); } } else { - (0, _util.warn)('Embedded file specification does not have a content'); + (0, _util.warn)("Embedded file specification does not have a content"); } return content; @@ -5703,7 +5719,7 @@ let ObjectLoader = function () { exports.ObjectLoader = ObjectLoader; /***/ }), -/* 11 */ +/* 10 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -5714,21 +5730,21 @@ Object.defineProperty(exports, "__esModule", { }); exports.Parser = exports.Linearization = exports.Lexer = void 0; -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); var _util = __w_pdfjs_require__(2); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _ccitt_stream = __w_pdfjs_require__(13); +var _ccitt_stream = __w_pdfjs_require__(12); -var _jbig2_stream = __w_pdfjs_require__(15); +var _jbig2_stream = __w_pdfjs_require__(14); -var _jpeg_stream = __w_pdfjs_require__(18); +var _jpeg_stream = __w_pdfjs_require__(17); -var _jpx_stream = __w_pdfjs_require__(20); +var _jpx_stream = __w_pdfjs_require__(19); -var _core_utils = __w_pdfjs_require__(8); +var _core_utils = __w_pdfjs_require__(7); const MAX_LENGTH_TO_CACHE = 1000; const MAX_ADLER32_LENGTH = 5552; @@ -5739,7 +5755,7 @@ function computeAdler32(bytes) { b = 0; for (let i = 0; i < bytesLength; ++i) { - a += bytes[i] & 0xFF; + a += bytes[i] & 0xff; b += a; } @@ -5767,7 +5783,7 @@ class Parser { } shift() { - if (this.buf2 instanceof _primitives.Cmd && this.buf2.cmd === 'ID') { + if (this.buf2 instanceof _primitives.Cmd && this.buf2.cmd === "ID") { this.buf1 = this.buf2; this.buf2 = null; } else { @@ -5795,19 +5811,19 @@ class Parser { if (buf1 instanceof _primitives.Cmd) { switch (buf1.cmd) { - case 'BI': + case "BI": return this.makeInlineImage(cipherTransform); - case '[': + case "[": const array = []; - while (!(0, _primitives.isCmd)(this.buf1, ']') && !(0, _primitives.isEOF)(this.buf1)) { + while (!(0, _primitives.isCmd)(this.buf1, "]") && !(0, _primitives.isEOF)(this.buf1)) { array.push(this.getObj(cipherTransform)); } if ((0, _primitives.isEOF)(this.buf1)) { if (!this.recoveryMode) { - throw new _util.FormatError('End of file inside array'); + throw new _util.FormatError("End of file inside array"); } return array; @@ -5816,12 +5832,12 @@ class Parser { this.shift(); return array; - case '<<': + case "<<": const dict = new _primitives.Dict(this.xref); - while (!(0, _primitives.isCmd)(this.buf1, '>>') && !(0, _primitives.isEOF)(this.buf1)) { + while (!(0, _primitives.isCmd)(this.buf1, ">>") && !(0, _primitives.isEOF)(this.buf1)) { if (!(0, _primitives.isName)(this.buf1)) { - (0, _util.info)('Malformed dictionary: key must be a name object'); + (0, _util.info)("Malformed dictionary: key must be a name object"); this.shift(); continue; } @@ -5838,13 +5854,13 @@ class Parser { if ((0, _primitives.isEOF)(this.buf1)) { if (!this.recoveryMode) { - throw new _util.FormatError('End of file inside dictionary'); + throw new _util.FormatError("End of file inside dictionary"); } return dict; } - if ((0, _primitives.isCmd)(this.buf2, 'stream')) { + if ((0, _primitives.isCmd)(this.buf2, "stream")) { return this.allowStreams ? this.makeStream(dict, cipherTransform) : dict; } @@ -5857,7 +5873,7 @@ class Parser { } if (Number.isInteger(buf1)) { - if (Number.isInteger(this.buf1) && (0, _primitives.isCmd)(this.buf2, 'R')) { + if (Number.isInteger(this.buf1) && (0, _primitives.isCmd)(this.buf2, "R")) { const ref = _primitives.Ref.get(buf1, this.buf1); this.shift(); @@ -5868,7 +5884,7 @@ class Parser { return buf1; } - if (typeof buf1 === 'string') { + if (typeof buf1 === "string") { if (cipherTransform) { return cipherTransform.decryptString(buf1); } @@ -5883,8 +5899,8 @@ class Parser { const E = 0x45, I = 0x49, SPACE = 0x20, - LF = 0xA, - CR = 0xD; + LF = 0xa, + CR = 0xd; const n = 10, NUL = 0x0; let startPos = stream.pos, @@ -5911,7 +5927,7 @@ class Parser { continue; } - if (ch !== LF && ch !== CR && (ch < SPACE || ch > 0x7F)) { + if (ch !== LF && ch !== CR && (ch < SPACE || ch > 0x7f)) { state = 0; break; } @@ -5927,7 +5943,7 @@ class Parser { } if (ch === -1) { - (0, _util.warn)('findDefaultInlineStreamEnd: ' + 'Reached the end of the stream without finding a valid EI marker'); + (0, _util.warn)("findDefaultInlineStreamEnd: " + "Reached the end of the stream without finding a valid EI marker"); if (maybeEIPos) { (0, _util.warn)('... trying to recover by using the last "EI" occurrence.'); @@ -5955,7 +5971,7 @@ class Parser { length; while ((b = stream.getByte()) !== -1) { - if (b !== 0xFF) { + if (b !== 0xff) { continue; } @@ -5963,52 +5979,52 @@ class Parser { case 0x00: break; - case 0xFF: + case 0xff: stream.skip(-1); break; - case 0xD9: + case 0xd9: foundEOI = true; break; - case 0xC0: - case 0xC1: - case 0xC2: - case 0xC3: - case 0xC5: - case 0xC6: - case 0xC7: - case 0xC9: - case 0xCA: - case 0xCB: - case 0xCD: - case 0xCE: - case 0xCF: - case 0xC4: - case 0xCC: - case 0xDA: - case 0xDB: - case 0xDC: - case 0xDD: - case 0xDE: - case 0xDF: - case 0xE0: - case 0xE1: - case 0xE2: - case 0xE3: - case 0xE4: - case 0xE5: - case 0xE6: - case 0xE7: - case 0xE8: - case 0xE9: - case 0xEA: - case 0xEB: - case 0xEC: - case 0xED: - case 0xEE: - case 0xEF: - case 0xFE: + case 0xc0: + case 0xc1: + case 0xc2: + case 0xc3: + case 0xc5: + case 0xc6: + case 0xc7: + case 0xc9: + case 0xca: + case 0xcb: + case 0xcd: + case 0xce: + case 0xcf: + case 0xc4: + case 0xcc: + case 0xda: + case 0xdb: + case 0xdc: + case 0xdd: + case 0xde: + case 0xdf: + case 0xe0: + case 0xe1: + case 0xe2: + case 0xe3: + case 0xe4: + case 0xe5: + case 0xe6: + case 0xe7: + case 0xe8: + case 0xe9: + case 0xea: + case 0xeb: + case 0xec: + case 0xed: + case 0xee: + case 0xef: + case 0xfe: markerLength = stream.getUint16(); if (markerLength > 2) { @@ -6028,7 +6044,7 @@ class Parser { length = stream.pos - startPos; if (b === -1) { - (0, _util.warn)('Inline DCTDecode image stream: ' + 'EOI marker not found, searching for /EI/ instead.'); + (0, _util.warn)("Inline DCTDecode image stream: " + "EOI marker not found, searching for /EI/ instead."); stream.skip(-length); return this.findDefaultInlineStreamEnd(stream); } @@ -6038,8 +6054,8 @@ class Parser { } findASCII85DecodeInlineStreamEnd(stream) { - const TILDE = 0x7E, - GT = 0x3E; + const TILDE = 0x7e, + GT = 0x3e; let startPos = stream.pos, ch, length; @@ -6072,7 +6088,7 @@ class Parser { length = stream.pos - startPos; if (ch === -1) { - (0, _util.warn)('Inline ASCII85Decode image stream: ' + 'EOD marker not found, searching for /EI/ instead.'); + (0, _util.warn)("Inline ASCII85Decode image stream: " + "EOD marker not found, searching for /EI/ instead."); stream.skip(-length); return this.findDefaultInlineStreamEnd(stream); } @@ -6082,7 +6098,7 @@ class Parser { } findASCIIHexDecodeInlineStreamEnd(stream) { - const GT = 0x3E; + const GT = 0x3e; let startPos = stream.pos, ch, length; @@ -6096,7 +6112,7 @@ class Parser { length = stream.pos - startPos; if (ch === -1) { - (0, _util.warn)('Inline ASCIIHexDecode image stream: ' + 'EOD marker not found, searching for /EI/ instead.'); + (0, _util.warn)("Inline ASCIIHexDecode image stream: " + "EOD marker not found, searching for /EI/ instead."); stream.skip(-length); return this.findDefaultInlineStreamEnd(stream); } @@ -6128,9 +6144,9 @@ class Parser { const dict = new _primitives.Dict(this.xref); let dictLength; - while (!(0, _primitives.isCmd)(this.buf1, 'ID') && !(0, _primitives.isEOF)(this.buf1)) { + while (!(0, _primitives.isCmd)(this.buf1, "ID") && !(0, _primitives.isEOF)(this.buf1)) { if (!(0, _primitives.isName)(this.buf1)) { - throw new _util.FormatError('Dictionary key must be a name object'); + throw new _util.FormatError("Dictionary key must be a name object"); } const key = this.buf1.name; @@ -6147,7 +6163,7 @@ class Parser { dictLength = stream.pos - lexer.beginInlineImagePos; } - const filter = dict.get('Filter', 'F'); + const filter = dict.get("Filter", "F"); let filterName; if ((0, _primitives.isName)(filter)) { @@ -6163,11 +6179,11 @@ class Parser { const startPos = stream.pos; let length; - if (filterName === 'DCTDecode' || filterName === 'DCT') { + if (filterName === "DCTDecode" || filterName === "DCT") { length = this.findDCTDecodeInlineStreamEnd(stream); - } else if (filterName === 'ASCII85Decode' || filterName === 'A85') { + } else if (filterName === "ASCII85Decode" || filterName === "A85") { length = this.findASCII85DecodeInlineStreamEnd(stream); - } else if (filterName === 'ASCIIHexDecode' || filterName === 'AHx') { + } else if (filterName === "ASCIIHexDecode" || filterName === "AHx") { length = this.findASCIIHexDecodeInlineStreamEnd(stream); } else { length = this.findDefaultInlineStreamEnd(stream); @@ -6183,11 +6199,11 @@ class Parser { stream.pos = lexer.beginInlineImagePos; const dictBytes = stream.getBytes(dictLength); stream.pos = initialStreamPos; - cacheKey = computeAdler32(imageBytes) + '_' + computeAdler32(dictBytes); + cacheKey = computeAdler32(imageBytes) + "_" + computeAdler32(dictBytes); const cacheEntry = this.imageCache[cacheKey]; if (cacheEntry !== undefined) { - this.buf2 = _primitives.Cmd.get('EI'); + this.buf2 = _primitives.Cmd.get("EI"); this.shift(); cacheEntry.reset(); return cacheEntry; @@ -6206,7 +6222,7 @@ class Parser { this.imageCache[cacheKey] = imageStream; } - this.buf2 = _primitives.Cmd.get('EI'); + this.buf2 = _primitives.Cmd.get("EI"); this.shift(); return imageStream; } @@ -6255,7 +6271,7 @@ class Parser { let stream = lexer.stream; lexer.skipToNextLine(); const startPos = stream.pos - 1; - let length = dict.get('Length'); + let length = dict.get("Length"); if (!Number.isInteger(length)) { (0, _util.info)(`Bad length "${length}" in stream`); @@ -6265,7 +6281,7 @@ class Parser { stream.pos = startPos + length; lexer.nextChar(); - if (this.tryShift() && (0, _primitives.isCmd)(this.buf2, 'endstream')) { + if (this.tryShift() && (0, _primitives.isCmd)(this.buf2, "endstream")) { this.shift(); } else { const ENDSTREAM_SIGNATURE = new Uint8Array([0x65, 0x6E, 0x64, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6D]); @@ -6288,14 +6304,14 @@ class Parser { break; } - (0, _util.info)(`Found "${(0, _util.bytesToString)(TRUNCATED_SIGNATURE)}" when ` + 'searching for endstream command.'); + (0, _util.info)(`Found "${(0, _util.bytesToString)(TRUNCATED_SIGNATURE)}" when ` + "searching for endstream command."); actualLength = maybeLength; break; } } if (actualLength < 0) { - throw new _util.FormatError('Missing endstream command.'); + throw new _util.FormatError("Missing endstream command."); } } @@ -6318,12 +6334,12 @@ class Parser { } filter(stream, dict, length) { - let filter = dict.get('Filter', 'F'); - let params = dict.get('DecodeParms', 'DP'); + let filter = dict.get("Filter", "F"); + let params = dict.get("DecodeParms", "DP"); if ((0, _primitives.isName)(filter)) { if (Array.isArray(params)) { - (0, _util.warn)('/DecodeParms should not contain an Array, ' + 'when /Filter contains a Name.'); + (0, _util.warn)("/DecodeParms should not contain an Array, " + "when /Filter contains a Name."); } return this.makeFilter(stream, filter.name, length, params); @@ -6365,7 +6381,7 @@ class Parser { try { const xrefStreamStats = this.xref.stats.streamTypes; - if (name === 'FlateDecode' || name === 'Fl') { + if (name === "FlateDecode" || name === "Fl") { xrefStreamStats[_util.StreamType.FLATE] = true; if (params) { @@ -6375,13 +6391,13 @@ class Parser { return new _stream.FlateStream(stream, maybeLength); } - if (name === 'LZWDecode' || name === 'LZW') { + if (name === "LZWDecode" || name === "LZW") { xrefStreamStats[_util.StreamType.LZW] = true; let earlyChange = 1; if (params) { - if (params.has('EarlyChange')) { - earlyChange = params.get('EarlyChange'); + if (params.has("EarlyChange")) { + earlyChange = params.get("EarlyChange"); } return new _stream.PredictorStream(new _stream.LZWStream(stream, maybeLength, earlyChange), maybeLength, params); @@ -6390,37 +6406,37 @@ class Parser { return new _stream.LZWStream(stream, maybeLength, earlyChange); } - if (name === 'DCTDecode' || name === 'DCT') { + if (name === "DCTDecode" || name === "DCT") { xrefStreamStats[_util.StreamType.DCT] = true; return new _jpeg_stream.JpegStream(stream, maybeLength, stream.dict, params); } - if (name === 'JPXDecode' || name === 'JPX') { + if (name === "JPXDecode" || name === "JPX") { xrefStreamStats[_util.StreamType.JPX] = true; return new _jpx_stream.JpxStream(stream, maybeLength, stream.dict, params); } - if (name === 'ASCII85Decode' || name === 'A85') { + if (name === "ASCII85Decode" || name === "A85") { xrefStreamStats[_util.StreamType.A85] = true; return new _stream.Ascii85Stream(stream, maybeLength); } - if (name === 'ASCIIHexDecode' || name === 'AHx') { + if (name === "ASCIIHexDecode" || name === "AHx") { xrefStreamStats[_util.StreamType.AHX] = true; return new _stream.AsciiHexStream(stream, maybeLength); } - if (name === 'CCITTFaxDecode' || name === 'CCF') { + if (name === "CCITTFaxDecode" || name === "CCF") { xrefStreamStats[_util.StreamType.CCF] = true; return new _ccitt_stream.CCITTFaxStream(stream, maybeLength, params); } - if (name === 'RunLengthDecode' || name === 'RL') { + if (name === "RunLengthDecode" || name === "RL") { xrefStreamStats[_util.StreamType.RLX] = true; return new _stream.RunLengthStream(stream, maybeLength); } - if (name === 'JBIG2Decode') { + if (name === "JBIG2Decode") { xrefStreamStats[_util.StreamType.JBIG] = true; return new _jbig2_stream.Jbig2Stream(stream, maybeLength, stream.dict, params); } @@ -6444,11 +6460,11 @@ const specialChars = [1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0 function toHexDigit(ch) { if (ch >= 0x30 && ch <= 0x39) { - return ch & 0x0F; + return ch & 0x0f; } if (ch >= 0x41 && ch <= 0x46 || ch >= 0x61 && ch <= 0x66) { - return (ch & 0x0F) + 9; + return (ch & 0x0f) + 9; } return -1; @@ -6477,32 +6493,32 @@ class Lexer { let divideBy = 0; let sign = 0; - if (ch === 0x2D) { + if (ch === 0x2d) { sign = -1; ch = this.nextChar(); - if (ch === 0x2D) { + if (ch === 0x2d) { ch = this.nextChar(); } - } else if (ch === 0x2B) { + } else if (ch === 0x2b) { sign = 1; ch = this.nextChar(); } - if (ch === 0x0A || ch === 0x0D) { + if (ch === 0x0a || ch === 0x0d) { do { ch = this.nextChar(); - } while (ch === 0x0A || ch === 0x0D); + } while (ch === 0x0a || ch === 0x0d); } - if (ch === 0x2E) { + if (ch === 0x2e) { divideBy = 10; ch = this.nextChar(); } if (ch < 0x30 || ch > 0x39) { if (divideBy === 10 && sign === 0 && ((0, _util.isSpace)(ch) || ch === -1)) { - (0, _util.warn)('Lexer.getNumber - treating a single decimal point as zero.'); + (0, _util.warn)("Lexer.getNumber - treating a single decimal point as zero."); return 0; } @@ -6515,7 +6531,7 @@ class Lexer { let powerValueSign = 1; while ((ch = this.nextChar()) >= 0) { - if (0x30 <= ch && ch <= 0x39) { + if (ch >= 0x30 && ch <= 0x39) { const currentDigit = ch - 0x30; if (eNotation) { @@ -6527,19 +6543,19 @@ class Lexer { baseValue = baseValue * 10 + currentDigit; } - } else if (ch === 0x2E) { + } else if (ch === 0x2e) { if (divideBy === 0) { divideBy = 1; } else { break; } - } else if (ch === 0x2D) { - (0, _util.warn)('Badly formatted number: minus sign in the middle'); + } else if (ch === 0x2d) { + (0, _util.warn)("Badly formatted number: minus sign in the middle"); } else if (ch === 0x45 || ch === 0x65) { ch = this.peekChar(); - if (ch === 0x2B || ch === 0x2D) { - powerValueSign = ch === 0x2D ? -1 : 1; + if (ch === 0x2b || ch === 0x2d) { + powerValueSign = ch === 0x2d ? -1 : 1; this.nextChar(); } else if (ch < 0x30 || ch > 0x39) { break; @@ -6574,13 +6590,13 @@ class Lexer { switch (ch | 0) { case -1: - (0, _util.warn)('Unterminated string'); + (0, _util.warn)("Unterminated string"); done = true; break; case 0x28: ++numParen; - strBuf.push('('); + strBuf.push("("); break; case 0x29: @@ -6588,41 +6604,41 @@ class Lexer { this.nextChar(); done = true; } else { - strBuf.push(')'); + strBuf.push(")"); } break; - case 0x5C: + case 0x5c: ch = this.nextChar(); switch (ch) { case -1: - (0, _util.warn)('Unterminated string'); + (0, _util.warn)("Unterminated string"); done = true; break; - case 0x6E: - strBuf.push('\n'); + case 0x6e: + strBuf.push("\n"); break; case 0x72: - strBuf.push('\r'); + strBuf.push("\r"); break; case 0x74: - strBuf.push('\t'); + strBuf.push("\t"); break; case 0x62: - strBuf.push('\b'); + strBuf.push("\b"); break; case 0x66: - strBuf.push('\f'); + strBuf.push("\f"); break; - case 0x5C: + case 0x5c: case 0x28: case 0x29: strBuf.push(String.fromCharCode(ch)); @@ -6636,31 +6652,31 @@ class Lexer { case 0x35: case 0x36: case 0x37: - let x = ch & 0x0F; + let x = ch & 0x0f; ch = this.nextChar(); charBuffered = true; if (ch >= 0x30 && ch <= 0x37) { - x = (x << 3) + (ch & 0x0F); + x = (x << 3) + (ch & 0x0f); ch = this.nextChar(); if (ch >= 0x30 && ch <= 0x37) { charBuffered = false; - x = (x << 3) + (ch & 0x0F); + x = (x << 3) + (ch & 0x0f); } } strBuf.push(String.fromCharCode(x)); break; - case 0x0D: - if (this.peekChar() === 0x0A) { + case 0x0d: + if (this.peekChar() === 0x0a) { this.nextChar(); } break; - case 0x0A: + case 0x0a: break; default: @@ -6684,7 +6700,7 @@ class Lexer { } } - return strBuf.join(''); + return strBuf.join(""); } getName() { @@ -6697,8 +6713,8 @@ class Lexer { ch = this.nextChar(); if (specialChars[ch]) { - (0, _util.warn)('Lexer_getName: ' + 'NUMBER SIGN (#) should be followed by a hexadecimal number.'); - strBuf.push('#'); + (0, _util.warn)("Lexer_getName: " + "NUMBER SIGN (#) should be followed by a hexadecimal number."); + strBuf.push("#"); break; } @@ -6710,8 +6726,8 @@ class Lexer { const x2 = toHexDigit(ch); if (x2 === -1) { - (0, _util.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(ch)}) ` + 'in hexadecimal number.'); - strBuf.push('#', String.fromCharCode(previousCh)); + (0, _util.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(ch)}) ` + "in hexadecimal number."); + strBuf.push("#", String.fromCharCode(previousCh)); if (specialChars[ch]) { break; @@ -6723,7 +6739,7 @@ class Lexer { strBuf.push(String.fromCharCode(x << 4 | x2)); } else { - strBuf.push('#', String.fromCharCode(ch)); + strBuf.push("#", String.fromCharCode(ch)); } } else { strBuf.push(String.fromCharCode(ch)); @@ -6734,7 +6750,7 @@ class Lexer { (0, _util.warn)(`Name token is longer than allowed by the spec: ${strBuf.length}`); } - return _primitives.Name.get(strBuf.join('')); + return _primitives.Name.get(strBuf.join("")); } getHexString() { @@ -6746,9 +6762,9 @@ class Lexer { while (true) { if (ch < 0) { - (0, _util.warn)('Unterminated hex string'); + (0, _util.warn)("Unterminated hex string"); break; - } else if (ch === 0x3E) { + } else if (ch === 0x3e) { this.nextChar(); break; } else if (specialChars[ch] === 1) { @@ -6780,7 +6796,7 @@ class Lexer { } } - return strBuf.join(''); + return strBuf.join(""); } getObj() { @@ -6793,7 +6809,7 @@ class Lexer { } if (comment) { - if (ch === 0x0A || ch === 0x0D) { + if (ch === 0x0a || ch === 0x0d) { comment = false; } } else if (ch === 0x25) { @@ -6816,52 +6832,52 @@ class Lexer { case 0x37: case 0x38: case 0x39: - case 0x2B: - case 0x2D: - case 0x2E: + case 0x2b: + case 0x2d: + case 0x2e: return this.getNumber(); case 0x28: return this.getString(); - case 0x2F: + case 0x2f: return this.getName(); - case 0x5B: + case 0x5b: this.nextChar(); - return _primitives.Cmd.get('['); + return _primitives.Cmd.get("["); - case 0x5D: + case 0x5d: this.nextChar(); - return _primitives.Cmd.get(']'); + return _primitives.Cmd.get("]"); - case 0x3C: + case 0x3c: ch = this.nextChar(); - if (ch === 0x3C) { + if (ch === 0x3c) { this.nextChar(); - return _primitives.Cmd.get('<<'); + return _primitives.Cmd.get("<<"); } return this.getHexString(); - case 0x3E: + case 0x3e: ch = this.nextChar(); - if (ch === 0x3E) { + if (ch === 0x3e) { this.nextChar(); - return _primitives.Cmd.get('>>'); + return _primitives.Cmd.get(">>"); } - return _primitives.Cmd.get('>'); + return _primitives.Cmd.get(">"); - case 0x7B: + case 0x7b: this.nextChar(); - return _primitives.Cmd.get('{'); + return _primitives.Cmd.get("{"); - case 0x7D: + case 0x7d: this.nextChar(); - return _primitives.Cmd.get('}'); + return _primitives.Cmd.get("}"); case 0x29: this.nextChar(); @@ -6887,19 +6903,19 @@ class Lexer { knownCommandFound = knownCommands && knownCommands[str] !== undefined; } - if (str === 'true') { + if (str === "true") { return true; } - if (str === 'false') { + if (str === "false") { return false; } - if (str === 'null') { + if (str === "null") { return null; } - if (str === 'BI') { + if (str === "BI") { this.beginInlineImagePos = this.stream.pos; } @@ -6910,15 +6926,15 @@ class Lexer { let ch = this.currentChar; while (ch >= 0) { - if (ch === 0x0D) { + if (ch === 0x0d) { ch = this.nextChar(); - if (ch === 0x0A) { + if (ch === 0x0a) { this.nextChar(); } break; - } else if (ch === 0x0A) { + } else if (ch === 0x0a) { this.nextChar(); break; } @@ -6940,11 +6956,11 @@ class Linearization { return obj; } - throw new Error(`The "${name}" parameter in the linearization ` + 'dictionary is invalid.'); + throw new Error(`The "${name}" parameter in the linearization ` + "dictionary is invalid."); } function getHints(linDict) { - const hints = linDict.get('H'); + const hints = linDict.get("H"); let hintsLength; if (Array.isArray(hints) && ((hintsLength = hints.length) === 2 || hintsLength === 4)) { @@ -6952,14 +6968,14 @@ class Linearization { const hint = hints[index]; if (!(Number.isInteger(hint) && hint > 0)) { - throw new Error(`Hint (${index}) in the linearization dictionary ` + 'is invalid.'); + throw new Error(`Hint (${index}) in the linearization dictionary is invalid.`); } } return hints; } - throw new Error('Hint array in the linearization dictionary is invalid.'); + throw new Error("Hint array in the linearization dictionary is invalid."); } const parser = new Parser({ @@ -6972,20 +6988,20 @@ class Linearization { const linDict = parser.getObj(); let obj, length; - if (!(Number.isInteger(obj1) && Number.isInteger(obj2) && (0, _primitives.isCmd)(obj3, 'obj') && (0, _primitives.isDict)(linDict) && (0, _util.isNum)(obj = linDict.get('Linearized')) && obj > 0)) { + if (!(Number.isInteger(obj1) && Number.isInteger(obj2) && (0, _primitives.isCmd)(obj3, "obj") && (0, _primitives.isDict)(linDict) && (0, _util.isNum)(obj = linDict.get("Linearized")) && obj > 0)) { return null; - } else if ((length = getInt(linDict, 'L')) !== stream.length) { - throw new Error('The "L" parameter in the linearization dictionary ' + 'does not equal the stream length.'); + } else if ((length = getInt(linDict, "L")) !== stream.length) { + throw new Error('The "L" parameter in the linearization dictionary ' + "does not equal the stream length."); } return { length, hints: getHints(linDict), - objectNumberFirst: getInt(linDict, 'O'), - endFirst: getInt(linDict, 'E'), - numPages: getInt(linDict, 'N'), - mainXRefEntriesOffset: getInt(linDict, 'T'), - pageFirst: linDict.has('P') ? getInt(linDict, 'P', true) : 0 + objectNumberFirst: getInt(linDict, "O"), + endFirst: getInt(linDict, "E"), + numPages: getInt(linDict, "N"), + mainXRefEntriesOffset: getInt(linDict, "T"), + pageFirst: linDict.has("P") ? getInt(linDict, "P", true) : 0 }; } @@ -6994,7 +7010,7 @@ class Linearization { exports.Linearization = Linearization; /***/ }), -/* 12 */ +/* 11 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -7007,7 +7023,7 @@ exports.LZWStream = exports.StringStream = exports.StreamsSequenceStream = expor var _util = __w_pdfjs_require__(2); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); var Stream = function StreamClosure() { function Stream(arrayBuffer, start, length, dict) { @@ -7267,7 +7283,7 @@ var DecodeStream = function DecodeStreamClosure() { }, getByteRange(begin, end) { - (0, _util.unreachable)('Should not call DecodeStream.getByteRange'); + (0, _util.unreachable)("Should not call DecodeStream.getByteRange"); }, skip: function DecodeStream_skip(n) { @@ -7393,7 +7409,7 @@ var FlateStream = function FlateStreamClosure() { while (codeSize < bits) { if ((b = str.getByte()) === -1) { - throw new _util.FormatError('Bad encoding in flate stream'); + throw new _util.FormatError("Bad encoding in flate stream"); } codeBuf |= b << codeSize; @@ -7428,7 +7444,7 @@ var FlateStream = function FlateStreamClosure() { var codeVal = code & 0xffff; if (codeLen < 1 || codeSize < codeLen) { - throw new _util.FormatError('Bad encoding in flate stream'); + throw new _util.FormatError("Bad encoding in flate stream"); } this.codeBuf = codeBuf >> codeLen; @@ -7488,31 +7504,31 @@ var FlateStream = function FlateStreamClosure() { var b; if ((b = str.getByte()) === -1) { - throw new _util.FormatError('Bad block header in flate stream'); + throw new _util.FormatError("Bad block header in flate stream"); } var blockLen = b; if ((b = str.getByte()) === -1) { - throw new _util.FormatError('Bad block header in flate stream'); + throw new _util.FormatError("Bad block header in flate stream"); } blockLen |= b << 8; if ((b = str.getByte()) === -1) { - throw new _util.FormatError('Bad block header in flate stream'); + throw new _util.FormatError("Bad block header in flate stream"); } var check = b; if ((b = str.getByte()) === -1) { - throw new _util.FormatError('Bad block header in flate stream'); + throw new _util.FormatError("Bad block header in flate stream"); } check |= b << 8; if (check !== (~blockLen & 0xffff) && (blockLen !== 0 || check !== 0)) { - throw new _util.FormatError('Bad uncompressed block length in flate stream'); + throw new _util.FormatError("Bad uncompressed block length in flate stream"); } this.codeBuf = 0; @@ -7592,7 +7608,7 @@ var FlateStream = function FlateStreamClosure() { litCodeTable = this.generateHuffmanTable(codeLengths.subarray(0, numLitCodes)); distCodeTable = this.generateHuffmanTable(codeLengths.subarray(numLitCodes, codes)); } else { - throw new _util.FormatError('Unknown block type in flate stream'); + throw new _util.FormatError("Unknown block type in flate stream"); } buffer = this.buffer; @@ -7658,7 +7674,7 @@ var PredictorStream = function PredictorStreamClosure() { return str; } - var predictor = this.predictor = params.get('Predictor') || 1; + var predictor = this.predictor = params.get("Predictor") || 1; if (predictor <= 1) { return str; @@ -7676,9 +7692,9 @@ var PredictorStream = function PredictorStreamClosure() { this.str = str; this.dict = str.dict; - var colors = this.colors = params.get('Colors') || 1; - var bits = this.bits = params.get('BitsPerComponent') || 8; - var columns = this.columns = params.get('Columns') || 1; + var colors = this.colors = params.get("Colors") || 1; + var bits = this.bits = params.get("BitsPerComponent") || 8; + var columns = this.columns = params.get("Columns") || 1; this.pixBytes = colors * bits + 7 >> 3; this.rowBytes = columns * colors * bits + 7 >> 3; DecodeStream.call(this, maybeLength); @@ -7733,9 +7749,9 @@ var PredictorStream = function PredictorStreamClosure() { } for (; i < rowBytes; i += 2) { - var sum = ((rawBytes[i] & 0xFF) << 8) + (rawBytes[i + 1] & 0xFF) + ((buffer[pos - bytesPerPixel] & 0xFF) << 8) + (buffer[pos - bytesPerPixel + 1] & 0xFF); - buffer[pos++] = sum >> 8 & 0xFF; - buffer[pos++] = sum & 0xFF; + var sum = ((rawBytes[i] & 0xff) << 8) + (rawBytes[i + 1] & 0xff) + ((buffer[pos - bytesPerPixel] & 0xff) << 8) + (buffer[pos - bytesPerPixel + 1] & 0xff); + buffer[pos++] = sum >> 8 & 0xff; + buffer[pos++] = sum & 0xff; } } else { var compArray = new Uint8Array(colors + 1); @@ -7747,7 +7763,7 @@ var PredictorStream = function PredictorStreamClosure() { for (i = 0; i < columns; ++i) { for (var kk = 0; kk < colors; ++kk) { if (inbits < bits) { - inbuf = inbuf << 8 | rawBytes[j++] & 0xFF; + inbuf = inbuf << 8 | rawBytes[j++] & 0xff; inbits += 8; } @@ -7757,7 +7773,7 @@ var PredictorStream = function PredictorStreamClosure() { outbits += bits; if (outbits >= 8) { - buffer[k++] = outbuf >> outbits - 8 & 0xFF; + buffer[k++] = outbuf >> outbits - 8 & 0xff; outbits -= 8; } } @@ -7809,7 +7825,7 @@ var PredictorStream = function PredictorStreamClosure() { } for (; i < rowBytes; ++i) { - buffer[j] = buffer[j - pixBytes] + rawBytes[i] & 0xFF; + buffer[j] = buffer[j - pixBytes] + rawBytes[i] & 0xff; j++; } @@ -7817,7 +7833,7 @@ var PredictorStream = function PredictorStreamClosure() { case 2: for (i = 0; i < rowBytes; ++i) { - buffer[j++] = prevRow[i] + rawBytes[i] & 0xFF; + buffer[j++] = prevRow[i] + rawBytes[i] & 0xff; } break; @@ -7828,7 +7844,7 @@ var PredictorStream = function PredictorStreamClosure() { } for (; i < rowBytes; ++i) { - buffer[j] = (prevRow[i] + buffer[j - pixBytes] >> 1) + rawBytes[i] & 0xFF; + buffer[j] = (prevRow[i] + buffer[j - pixBytes] >> 1) + rawBytes[i] & 0xff; j++; } @@ -7954,8 +7970,8 @@ var Ascii85Stream = function Ascii85StreamClosure() { Ascii85Stream.prototype = Object.create(DecodeStream.prototype); Ascii85Stream.prototype.readBlock = function Ascii85Stream_readBlock() { - var TILDA_CHAR = 0x7E; - var Z_LOWER_CHAR = 0x7A; + var TILDA_CHAR = 0x7e; + var Z_LOWER_CHAR = 0x7a; var EOF = -1; var str = this.str; var c = str.getByte(); @@ -8017,7 +8033,7 @@ var Ascii85Stream = function Ascii85StreamClosure() { } for (i = 3; i >= 0; --i) { - buffer[bufferLength + i] = t & 0xFF; + buffer[bufferLength + i] = t & 0xff; t >>= 8; } } @@ -8062,10 +8078,10 @@ var AsciiHexStream = function AsciiHexStreamClosure() { digit; if (ch >= 0x30 && ch <= 0x39) { - digit = ch & 0x0F; + digit = ch & 0x0f; } else if (ch >= 0x41 && ch <= 0x46 || ch >= 0x61 && ch <= 0x66) { - digit = (ch & 0x0F) + 9; - } else if (ch === 0x3E) { + digit = (ch & 0x0f) + 9; + } else if (ch === 0x3e) { this.eof = true; break; } else { @@ -8294,7 +8310,7 @@ var NullStream = function NullStreamClosure() { exports.NullStream = NullStream; /***/ }), -/* 13 */ +/* 12 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -8305,11 +8321,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.CCITTFaxStream = void 0; -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _ccitt = __w_pdfjs_require__(14); +var _ccitt = __w_pdfjs_require__(13); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); var CCITTFaxStream = function CCITTFaxStreamClosure() { function CCITTFaxStream(str, maybeLength, params) { @@ -8327,13 +8343,13 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() { }; this.ccittFaxDecoder = new _ccitt.CCITTFaxDecoder(source, { - K: params.get('K'), - EndOfLine: params.get('EndOfLine'), - EncodedByteAlign: params.get('EncodedByteAlign'), - Columns: params.get('Columns'), - Rows: params.get('Rows'), - EndOfBlock: params.get('EndOfBlock'), - BlackIs1: params.get('BlackIs1') + K: params.get("K"), + EndOfLine: params.get("EndOfLine"), + EncodedByteAlign: params.get("EncodedByteAlign"), + Columns: params.get("Columns"), + Rows: params.get("Rows"), + EndOfBlock: params.get("EndOfBlock"), + BlackIs1: params.get("BlackIs1") }); _stream.DecodeStream.call(this, maybeLength); @@ -8361,7 +8377,7 @@ var CCITTFaxStream = function CCITTFaxStreamClosure() { exports.CCITTFaxStream = CCITTFaxStream; /***/ }), -/* 14 */ +/* 13 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -8394,25 +8410,25 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { const blackTable3 = [[-1, -1], [-1, -1], [-1, -1], [-1, -1], [6, 9], [6, 8], [5, 7], [5, 7], [4, 6], [4, 6], [4, 6], [4, 6], [4, 5], [4, 5], [4, 5], [4, 5], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 1], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [3, 4], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 3], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2], [2, 2]]; function CCITTFaxDecoder(source, options = {}) { - if (!source || typeof source.next !== 'function') { + if (!source || typeof source.next !== "function") { throw new Error('CCITTFaxDecoder - invalid "source" parameter.'); } this.source = source; this.eof = false; - this.encoding = options['K'] || 0; - this.eoline = options['EndOfLine'] || false; - this.byteAlign = options['EncodedByteAlign'] || false; - this.columns = options['Columns'] || 1728; - this.rows = options['Rows'] || 0; - let eoblock = options['EndOfBlock']; + this.encoding = options["K"] || 0; + this.eoline = options["EndOfLine"] || false; + this.byteAlign = options["EncodedByteAlign"] || false; + this.columns = options["Columns"] || 1728; + this.rows = options["Rows"] || 0; + let eoblock = options["EndOfBlock"]; if (eoblock === null || eoblock === undefined) { eoblock = true; } this.eoblock = eoblock; - this.black = options['BlackIs1'] || false; + this.black = options["BlackIs1"] || false; this.codingLine = new Uint32Array(this.columns + 1); this.refLine = new Uint32Array(this.columns + 2); this.codingLine[0] = this.columns; @@ -8645,7 +8661,7 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { break; default: - (0, _util.info)('bad 2d code'); + (0, _util.info)("bad 2d code"); this._addPixels(columns, 0); @@ -8733,7 +8749,7 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { code1 = this._lookBits(12); if (code1 !== 1) { - (0, _util.info)('bad rtc code: ' + code1); + (0, _util.info)("bad rtc code: " + code1); } this._eatBits(12); @@ -8785,7 +8801,7 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { let c; if (this.outputBits >= 8) { - c = this.codingPos & 1 ? 0 : 0xFF; + c = this.codingPos & 1 ? 0 : 0xff; this.outputBits -= 8; if (this.outputBits === 0 && codingLine[this.codingPos] < columns) { @@ -8801,7 +8817,7 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { c <<= bits; if (!(this.codingPos & 1)) { - c |= 0xFF >> 8 - bits; + c |= 0xff >> 8 - bits; } this.outputBits -= bits; @@ -8810,7 +8826,7 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { c <<= this.outputBits; if (!(this.codingPos & 1)) { - c |= 0xFF >> 8 - this.outputBits; + c |= 0xff >> 8 - this.outputBits; } bits -= this.outputBits; @@ -8828,7 +8844,7 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { } if (this.black) { - c ^= 0xFF; + c ^= 0xff; } return c; @@ -8840,7 +8856,7 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { if (a1 > codingLine[codingPos]) { if (a1 > this.columns) { - (0, _util.info)('row is wrong length'); + (0, _util.info)("row is wrong length"); this.err = true; a1 = this.columns; } @@ -8861,7 +8877,7 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { if (a1 > codingLine[codingPos]) { if (a1 > this.columns) { - (0, _util.info)('row is wrong length'); + (0, _util.info)("row is wrong length"); this.err = true; a1 = this.columns; } @@ -8873,7 +8889,7 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { codingLine[codingPos] = a1; } else if (a1 < codingLine[codingPos]) { if (a1 < 0) { - (0, _util.info)('invalid code'); + (0, _util.info)("invalid code"); this.err = true; a1 = 0; } @@ -8937,7 +8953,7 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { } } - (0, _util.info)('Bad two dim code'); + (0, _util.info)("Bad two dim code"); return ccittEOF; }, @@ -8977,7 +8993,7 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { } } - (0, _util.info)('bad white code'); + (0, _util.info)("bad white code"); this._eatBits(1); @@ -9027,7 +9043,7 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { } } - (0, _util.info)('bad black code'); + (0, _util.info)("bad black code"); this._eatBits(1); @@ -9043,14 +9059,14 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { return ccittEOF; } - return this.inputBuf << n - this.inputBits & 0xFFFF >> 16 - n; + return this.inputBuf << n - this.inputBits & 0xffff >> 16 - n; } this.inputBuf = this.inputBuf << 8 | c; this.inputBits += 8; } - return this.inputBuf >> this.inputBits - n & 0xFFFF >> 16 - n; + return this.inputBuf >> this.inputBits - n & 0xffff >> 16 - n; }, _eatBits(n) { @@ -9066,7 +9082,7 @@ let CCITTFaxDecoder = function CCITTFaxDecoder() { exports.CCITTFaxDecoder = CCITTFaxDecoder; /***/ }), -/* 15 */ +/* 14 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -9077,11 +9093,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.Jbig2Stream = void 0; -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); -var _jbig = __w_pdfjs_require__(16); +var _jbig = __w_pdfjs_require__(15); var _util = __w_pdfjs_require__(2); @@ -9096,9 +9112,9 @@ let Jbig2Stream = function Jbig2StreamClosure() { } Jbig2Stream.prototype = Object.create(_stream.DecodeStream.prototype); - Object.defineProperty(Jbig2Stream.prototype, 'bytes', { + Object.defineProperty(Jbig2Stream.prototype, "bytes", { get() { - return (0, _util.shadow)(this, 'bytes', this.stream.getBytes(this.maybeLength)); + return (0, _util.shadow)(this, "bytes", this.stream.getBytes(this.maybeLength)); }, configurable: true @@ -9115,7 +9131,7 @@ let Jbig2Stream = function Jbig2StreamClosure() { let chunks = []; if ((0, _primitives.isDict)(this.params)) { - let globalsStream = this.params.get('JBIG2Globals'); + let globalsStream = this.params.get("JBIG2Globals"); if ((0, _primitives.isStream)(globalsStream)) { let globals = globalsStream.getBytes(); @@ -9136,7 +9152,7 @@ let Jbig2Stream = function Jbig2StreamClosure() { let dataLength = data.length; for (let i = 0; i < dataLength; i++) { - data[i] ^= 0xFF; + data[i] ^= 0xff; } this.buffer = data; @@ -9150,7 +9166,7 @@ let Jbig2Stream = function Jbig2StreamClosure() { exports.Jbig2Stream = Jbig2Stream; /***/ }), -/* 16 */ +/* 15 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -9163,9 +9179,9 @@ exports.Jbig2Image = void 0; var _util = __w_pdfjs_require__(2); -var _arithmetic_decoder = __w_pdfjs_require__(17); +var _arithmetic_decoder = __w_pdfjs_require__(16); -var _ccitt = __w_pdfjs_require__(14); +var _ccitt = __w_pdfjs_require__(13); class Jbig2Error extends _util.BaseException { constructor(msg) { @@ -9197,12 +9213,12 @@ var Jbig2Image = function Jbig2ImageClosure() { DecodingContext.prototype = { get decoder() { var decoder = new _arithmetic_decoder.ArithmeticDecoder(this.data, this.start, this.end); - return (0, _util.shadow)(this, 'decoder', decoder); + return (0, _util.shadow)(this, "decoder", decoder); }, get contextCache() { var cache = new ContextCache(); - return (0, _util.shadow)(this, 'contextCache', cache); + return (0, _util.shadow)(this, "contextCache", cache); } }; @@ -9229,7 +9245,7 @@ var Jbig2Image = function Jbig2ImageClosure() { } function decodeIAID(contextCache, decoder, codeLength) { - var contexts = contextCache.getContexts('IAID'); + var contexts = contextCache.getContexts("IAID"); var prev = 1; for (var i = 0; i < codeLength; i++) { @@ -9241,10 +9257,10 @@ var Jbig2Image = function Jbig2ImageClosure() { return prev & (1 << codeLength) - 1; } - return prev & 0x7FFFFFFF; + return prev & 0x7fffffff; } - var SegmentTypes = ['SymbolDictionary', null, null, null, 'IntermediateTextRegion', null, 'ImmediateTextRegion', 'ImmediateLosslessTextRegion', null, null, null, null, null, null, null, null, 'PatternDictionary', null, null, null, 'IntermediateHalftoneRegion', null, 'ImmediateHalftoneRegion', 'ImmediateLosslessHalftoneRegion', null, null, null, null, null, null, null, null, null, null, null, null, 'IntermediateGenericRegion', null, 'ImmediateGenericRegion', 'ImmediateLosslessGenericRegion', 'IntermediateGenericRefinementRegion', null, 'ImmediateGenericRefinementRegion', 'ImmediateLosslessGenericRefinementRegion', null, null, null, null, 'PageInformation', 'EndOfPage', 'EndOfStripe', 'EndOfFile', 'Profiles', 'Tables', null, null, null, null, null, null, null, null, 'Extension']; + var SegmentTypes = ["SymbolDictionary", null, null, null, "IntermediateTextRegion", null, "ImmediateTextRegion", "ImmediateLosslessTextRegion", null, null, null, null, null, null, null, null, "PatternDictionary", null, null, null, "IntermediateHalftoneRegion", null, "ImmediateHalftoneRegion", "ImmediateLosslessHalftoneRegion", null, null, null, null, null, null, null, null, null, null, null, null, "IntermediateGenericRegion", null, "ImmediateGenericRegion", "ImmediateLosslessGenericRegion", "IntermediateGenericRefinementRegion", null, "ImmediateGenericRefinementRegion", "ImmediateLosslessGenericRefinementRegion", null, null, null, null, "PageInformation", "EndOfPage", "EndOfStripe", "EndOfFile", "Profiles", "Tables", null, null, null, null, null, null, null, null, "Extension"]; var CodingTemplates = [[{ x: -1, y: -2 @@ -9442,12 +9458,12 @@ var Jbig2Image = function Jbig2ImageClosure() { y: 1 }] }]; - var ReusedContexts = [0x9B25, 0x0795, 0x00E5, 0x0195]; + var ReusedContexts = [0x9b25, 0x0795, 0x00e5, 0x0195]; var RefinementReusedContexts = [0x0020, 0x0008]; function decodeBitmapTemplate0(width, height, decodingContext) { var decoder = decodingContext.decoder; - var contexts = decodingContext.contextCache.getContexts('GB'); + var contexts = decodingContext.contextCache.getContexts("GB"); var contextLabel, i, j, @@ -9456,7 +9472,7 @@ var Jbig2Image = function Jbig2ImageClosure() { row1, row2, bitmap = []; - var OLD_PIXEL_MASK = 0x7BF7; + var OLD_PIXEL_MASK = 0x7bf7; for (i = 0; i < height; i++) { row = bitmap[i] = new Uint8Array(width); @@ -9531,7 +9547,7 @@ var Jbig2Image = function Jbig2ImageClosure() { var row = new Uint8Array(width); var bitmap = []; var decoder = decodingContext.decoder; - var contexts = decodingContext.contextCache.getContexts('GB'); + var contexts = decodingContext.contextCache.getContexts("GB"); var ltp = 0, j, i0, @@ -9639,7 +9655,7 @@ var Jbig2Image = function Jbig2ImageClosure() { var pseudoPixelContext = RefinementReusedContexts[templateIndex]; var bitmap = []; var decoder = decodingContext.decoder; - var contexts = decodingContext.contextCache.getContexts('GR'); + var contexts = decodingContext.contextCache.getContexts("GR"); var ltp = 0; for (var i = 0; i < height; i++) { @@ -9648,7 +9664,7 @@ var Jbig2Image = function Jbig2ImageClosure() { ltp ^= sltp; if (ltp) { - throw new Jbig2Error('prediction is not supported'); + throw new Jbig2Error("prediction is not supported"); } } @@ -9691,7 +9707,7 @@ var Jbig2Image = function Jbig2ImageClosure() { function decodeSymbolDictionary(huffman, refinement, symbols, numberOfNewSymbols, numberOfExportedSymbols, huffmanTables, templateIndex, at, refinementTemplateIndex, refinementAt, decodingContext, huffmanInput) { if (huffman && refinement) { - throw new Jbig2Error('symbol refinement with Huffman is not supported'); + throw new Jbig2Error("symbol refinement with Huffman is not supported"); } var newSymbols = []; @@ -9708,14 +9724,14 @@ var Jbig2Image = function Jbig2ImageClosure() { } while (newSymbols.length < numberOfNewSymbols) { - var deltaHeight = huffman ? huffmanTables.tableDeltaHeight.decode(huffmanInput) : decodeInteger(contextCache, 'IADH', decoder); + var deltaHeight = huffman ? huffmanTables.tableDeltaHeight.decode(huffmanInput) : decodeInteger(contextCache, "IADH", decoder); currentHeight += deltaHeight; let currentWidth = 0, totalWidth = 0; let firstSymbol = huffman ? symbolWidths.length : 0; while (true) { - var deltaWidth = huffman ? huffmanTables.tableDeltaWidth.decode(huffmanInput) : decodeInteger(contextCache, 'IADW', decoder); + var deltaWidth = huffman ? huffmanTables.tableDeltaWidth.decode(huffmanInput) : decodeInteger(contextCache, "IADW", decoder); if (deltaWidth === null) { break; @@ -9726,14 +9742,14 @@ var Jbig2Image = function Jbig2ImageClosure() { var bitmap; if (refinement) { - var numberOfInstances = decodeInteger(contextCache, 'IAAI', decoder); + var numberOfInstances = decodeInteger(contextCache, "IAAI", decoder); if (numberOfInstances > 1) { bitmap = decodeTextRegion(huffman, refinement, currentWidth, currentHeight, 0, numberOfInstances, 1, symbols.concat(newSymbols), symbolCodeLength, 0, 0, 1, 0, huffmanTables, refinementTemplateIndex, refinementAt, decodingContext, 0, huffmanInput); } else { var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength); - var rdx = decodeInteger(contextCache, 'IARDX', decoder); - var rdy = decodeInteger(contextCache, 'IARDY', decoder); + var rdx = decodeInteger(contextCache, "IARDX", decoder); + var rdy = decodeInteger(contextCache, "IARDY", decoder); var symbol = symbolId < symbols.length ? symbols[symbolId] : newSymbols[symbolId - symbols.length]; bitmap = decodeRefinement(currentWidth, currentHeight, refinementTemplateIndex, symbol, rdx, rdy, false, refinementAt, decodingContext); } @@ -9797,7 +9813,7 @@ var Jbig2Image = function Jbig2ImageClosure() { var totalSymbolsLength = symbols.length + numberOfNewSymbols; while (flags.length < totalSymbolsLength) { - var runLength = huffman ? tableB1.decode(huffmanInput) : decodeInteger(contextCache, 'IAEX', decoder); + var runLength = huffman ? tableB1.decode(huffmanInput) : decodeInteger(contextCache, "IAEX", decoder); while (runLength--) { flags.push(currentFlag); @@ -9823,7 +9839,7 @@ var Jbig2Image = function Jbig2ImageClosure() { function decodeTextRegion(huffman, refinement, width, height, defaultPixelValue, numberOfSymbolInstances, stripSize, inputSymbols, symbolCodeLength, transposed, dsOffset, referenceCorner, combinationOperator, huffmanTables, refinementTemplateIndex, refinementAt, decodingContext, logStripSize, huffmanInput) { if (huffman && refinement) { - throw new Jbig2Error('refinement with Huffman is not supported'); + throw new Jbig2Error("refinement with Huffman is not supported"); } var bitmap = []; @@ -9843,14 +9859,14 @@ var Jbig2Image = function Jbig2ImageClosure() { var decoder = decodingContext.decoder; var contextCache = decodingContext.contextCache; - var stripT = huffman ? -huffmanTables.tableDeltaT.decode(huffmanInput) : -decodeInteger(contextCache, 'IADT', decoder); + var stripT = huffman ? -huffmanTables.tableDeltaT.decode(huffmanInput) : -decodeInteger(contextCache, "IADT", decoder); var firstS = 0; i = 0; while (i < numberOfSymbolInstances) { - var deltaT = huffman ? huffmanTables.tableDeltaT.decode(huffmanInput) : decodeInteger(contextCache, 'IADT', decoder); + var deltaT = huffman ? huffmanTables.tableDeltaT.decode(huffmanInput) : decodeInteger(contextCache, "IADT", decoder); stripT += deltaT; - var deltaFirstS = huffman ? huffmanTables.tableFirstS.decode(huffmanInput) : decodeInteger(contextCache, 'IAFS', decoder); + var deltaFirstS = huffman ? huffmanTables.tableFirstS.decode(huffmanInput) : decodeInteger(contextCache, "IAFS", decoder); firstS += deltaFirstS; var currentS = firstS; @@ -9858,21 +9874,21 @@ var Jbig2Image = function Jbig2ImageClosure() { let currentT = 0; if (stripSize > 1) { - currentT = huffman ? huffmanInput.readBits(logStripSize) : decodeInteger(contextCache, 'IAIT', decoder); + currentT = huffman ? huffmanInput.readBits(logStripSize) : decodeInteger(contextCache, "IAIT", decoder); } var t = stripSize * stripT + currentT; var symbolId = huffman ? huffmanTables.symbolIDTable.decode(huffmanInput) : decodeIAID(contextCache, decoder, symbolCodeLength); - var applyRefinement = refinement && (huffman ? huffmanInput.readBit() : decodeInteger(contextCache, 'IARI', decoder)); + var applyRefinement = refinement && (huffman ? huffmanInput.readBit() : decodeInteger(contextCache, "IARI", decoder)); var symbolBitmap = inputSymbols[symbolId]; var symbolWidth = symbolBitmap[0].length; var symbolHeight = symbolBitmap.length; if (applyRefinement) { - var rdw = decodeInteger(contextCache, 'IARDW', decoder); - var rdh = decodeInteger(contextCache, 'IARDH', decoder); - var rdx = decodeInteger(contextCache, 'IARDX', decoder); - var rdy = decodeInteger(contextCache, 'IARDY', decoder); + var rdw = decodeInteger(contextCache, "IARDW", decoder); + var rdh = decodeInteger(contextCache, "IARDH", decoder); + var rdx = decodeInteger(contextCache, "IARDX", decoder); + var rdy = decodeInteger(contextCache, "IARDY", decoder); symbolWidth += rdw; symbolHeight += rdh; symbolBitmap = decodeRefinement(symbolWidth, symbolHeight, refinementTemplateIndex, symbolBitmap, (rdw >> 1) + rdx, (rdh >> 1) + rdy, false, refinementAt, decodingContext); @@ -9948,7 +9964,7 @@ var Jbig2Image = function Jbig2ImageClosure() { } i++; - var deltaS = huffman ? huffmanTables.tableDeltaS.decode(huffmanInput) : decodeInteger(contextCache, 'IADS', decoder); + var deltaS = huffman ? huffmanTables.tableDeltaS.decode(huffmanInput) : decodeInteger(contextCache, "IADS", decoder); if (deltaS === null) { break; @@ -10015,11 +10031,11 @@ var Jbig2Image = function Jbig2ImageClosure() { let skip = null; if (enableSkip) { - throw new Jbig2Error('skip is not supported'); + throw new Jbig2Error("skip is not supported"); } if (combinationOperator !== 0) { - throw new Jbig2Error('operator ' + combinationOperator + ' is not supported in halftone region'); + throw new Jbig2Error("operator " + combinationOperator + " is not supported in halftone region"); } let regionBitmap = []; @@ -10141,10 +10157,10 @@ var Jbig2Image = function Jbig2ImageClosure() { var segmentHeader = {}; segmentHeader.number = (0, _util.readUint32)(data, start); var flags = data[start + 4]; - var segmentType = flags & 0x3F; + var segmentType = flags & 0x3f; if (!SegmentTypes[segmentType]) { - throw new Jbig2Error('invalid segment type: ' + segmentType); + throw new Jbig2Error("invalid segment type: " + segmentType); } segmentHeader.type = segmentType; @@ -10157,7 +10173,7 @@ var Jbig2Image = function Jbig2ImageClosure() { var position = start + 6; if (referredFlags === 7) { - referredToCount = (0, _util.readUint32)(data, position - 1) & 0x1FFFFFFF; + referredToCount = (0, _util.readUint32)(data, position - 1) & 0x1fffffff; position += 3; var bytes = referredToCount + 7 >> 3; retainBits[0] = data[position++]; @@ -10166,7 +10182,7 @@ var Jbig2Image = function Jbig2ImageClosure() { retainBits.push(data[position++]); } } else if (referredFlags === 5 || referredFlags === 6) { - throw new Jbig2Error('invalid referred-to flags'); + throw new Jbig2Error("invalid referred-to flags"); } segmentHeader.retainBits = retainBits; @@ -10192,7 +10208,7 @@ var Jbig2Image = function Jbig2ImageClosure() { segmentHeader.length = (0, _util.readUint32)(data, position); position += 4; - if (segmentHeader.length === 0xFFFFFFFF) { + if (segmentHeader.length === 0xffffffff) { if (segmentType === 38) { var genericRegionInfo = readRegionSegmentInformation(data, position); var genericRegionSegmentFlags = data[position + RegionSegmentInformationFieldLength]; @@ -10201,14 +10217,14 @@ var Jbig2Image = function Jbig2ImageClosure() { var searchPattern = new Uint8Array(searchPatternLength); if (!genericRegionMmr) { - searchPattern[0] = 0xFF; - searchPattern[1] = 0xAC; + searchPattern[0] = 0xff; + searchPattern[1] = 0xac; } - searchPattern[2] = genericRegionInfo.height >>> 24 & 0xFF; - searchPattern[3] = genericRegionInfo.height >> 16 & 0xFF; - searchPattern[4] = genericRegionInfo.height >> 8 & 0xFF; - searchPattern[5] = genericRegionInfo.height & 0xFF; + searchPattern[2] = genericRegionInfo.height >>> 24 & 0xff; + searchPattern[3] = genericRegionInfo.height >> 16 & 0xff; + searchPattern[4] = genericRegionInfo.height >> 8 & 0xff; + searchPattern[5] = genericRegionInfo.height & 0xff; for (i = position, ii = data.length; i < ii; i++) { var j = 0; @@ -10223,11 +10239,11 @@ var Jbig2Image = function Jbig2ImageClosure() { } } - if (segmentHeader.length === 0xFFFFFFFF) { - throw new Jbig2Error('segment end was not found'); + if (segmentHeader.length === 0xffffffff) { + throw new Jbig2Error("segment end was not found"); } } else { - throw new Jbig2Error('invalid unknown segment length'); + throw new Jbig2Error("invalid unknown segment length"); } } @@ -10419,9 +10435,9 @@ var Jbig2Image = function Jbig2ImageClosure() { position += 4; halftoneRegion.gridHeight = (0, _util.readUint32)(data, position); position += 4; - halftoneRegion.gridOffsetX = (0, _util.readUint32)(data, position) & 0xFFFFFFFF; + halftoneRegion.gridOffsetX = (0, _util.readUint32)(data, position) & 0xffffffff; position += 4; - halftoneRegion.gridOffsetY = (0, _util.readUint32)(data, position) & 0xFFFFFFFF; + halftoneRegion.gridOffsetY = (0, _util.readUint32)(data, position) & 0xffffffff; position += 4; halftoneRegion.gridVectorX = (0, _util.readUint16)(data, position); position += 2; @@ -10466,7 +10482,7 @@ var Jbig2Image = function Jbig2ImageClosure() { resolutionY: (0, _util.readUint32)(data, position + 12) }; - if (pageInfo.height === 0xFFFFFFFF) { + if (pageInfo.height === 0xffffffff) { delete pageInfo.height; } @@ -10498,10 +10514,10 @@ var Jbig2Image = function Jbig2ImageClosure() { break; default: - throw new Jbig2Error(`segment type ${header.typeName}(${header.type})` + ' is not implemented'); + throw new Jbig2Error(`segment type ${header.typeName}(${header.type})` + " is not implemented"); } - var callbackName = 'on' + header.typeName; + var callbackName = "on" + header.typeName; if (callbackName in visitor) { visitor[callbackName].apply(visitor, args); @@ -10530,8 +10546,8 @@ var Jbig2Image = function Jbig2ImageClosure() { let position = 0, end = data.length; - if (data[position] !== 0x97 || data[position + 1] !== 0x4A || data[position + 2] !== 0x42 || data[position + 3] !== 0x32 || data[position + 4] !== 0x0D || data[position + 5] !== 0x0A || data[position + 6] !== 0x1A || data[position + 7] !== 0x0A) { - throw new Jbig2Error('parseJbig2 - invalid header.'); + if (data[position] !== 0x97 || data[position + 1] !== 0x4a || data[position + 2] !== 0x42 || data[position + 3] !== 0x32 || data[position + 4] !== 0x0d || data[position + 5] !== 0x0a || data[position + 6] !== 0x1a || data[position + 7] !== 0x0a) { + throw new Jbig2Error("parseJbig2 - invalid header."); } let header = Object.create(null); @@ -10588,7 +10604,7 @@ var Jbig2Image = function Jbig2ImageClosure() { if (info.defaultPixelValue) { for (var i = 0, ii = buffer.length; i < ii; i++) { - buffer[i] = 0xFF; + buffer[i] = 0xff; } } @@ -10770,7 +10786,7 @@ var Jbig2Image = function Jbig2ImageClosure() { this.prefixLength = lineData[1]; this.rangeLength = lineData[2]; this.prefixCode = lineData[3]; - this.isLowerRange = lineData[4] === 'lower'; + this.isLowerRange = lineData[4] === "lower"; } } @@ -10818,7 +10834,7 @@ var Jbig2Image = function Jbig2ImageClosure() { let node = this.children[reader.readBit()]; if (!node) { - throw new Jbig2Error('invalid Huffman data'); + throw new Jbig2Error("invalid Huffman data"); } return node.decodeNode(reader); @@ -10896,8 +10912,8 @@ var Jbig2Image = function Jbig2ImageClosure() { function decodeTablesSegment(data, start, end) { let flags = data[start]; - let lowestValue = (0, _util.readUint32)(data, start + 1) & 0xFFFFFFFF; - let highestValue = (0, _util.readUint32)(data, start + 5) & 0xFFFFFFFF; + let lowestValue = (0, _util.readUint32)(data, start + 1) & 0xffffffff; + let highestValue = (0, _util.readUint32)(data, start + 5) & 0xffffffff; let reader = new Reader(data, start + 9, end); let prefixSizeBits = (flags >> 1 & 7) + 1; let rangeSizeBits = (flags >> 4 & 7) + 1; @@ -10914,7 +10930,7 @@ var Jbig2Image = function Jbig2ImageClosure() { } while (currentRangeLow < highestValue); prefixLength = reader.readBits(prefixSizeBits); - lines.push(new HuffmanLine([lowestValue - 1, prefixLength, 32, 0, 'lower'])); + lines.push(new HuffmanLine([lowestValue - 1, prefixLength, 32, 0, "lower"])); prefixLength = reader.readBits(prefixSizeBits); lines.push(new HuffmanLine([highestValue, prefixLength, 32, 0])); @@ -10943,51 +10959,51 @@ var Jbig2Image = function Jbig2ImageClosure() { break; case 2: - lines = [[0, 1, 0, 0x0], [1, 2, 0, 0x2], [2, 3, 0, 0x6], [3, 4, 3, 0xE], [11, 5, 6, 0x1E], [75, 6, 32, 0x3E], [6, 0x3F]]; + lines = [[0, 1, 0, 0x0], [1, 2, 0, 0x2], [2, 3, 0, 0x6], [3, 4, 3, 0xe], [11, 5, 6, 0x1e], [75, 6, 32, 0x3e], [6, 0x3f]]; break; case 3: - lines = [[-256, 8, 8, 0xFE], [0, 1, 0, 0x0], [1, 2, 0, 0x2], [2, 3, 0, 0x6], [3, 4, 3, 0xE], [11, 5, 6, 0x1E], [-257, 8, 32, 0xFF, 'lower'], [75, 7, 32, 0x7E], [6, 0x3E]]; + lines = [[-256, 8, 8, 0xfe], [0, 1, 0, 0x0], [1, 2, 0, 0x2], [2, 3, 0, 0x6], [3, 4, 3, 0xe], [11, 5, 6, 0x1e], [-257, 8, 32, 0xff, "lower"], [75, 7, 32, 0x7e], [6, 0x3e]]; break; case 4: - lines = [[1, 1, 0, 0x0], [2, 2, 0, 0x2], [3, 3, 0, 0x6], [4, 4, 3, 0xE], [12, 5, 6, 0x1E], [76, 5, 32, 0x1F]]; + lines = [[1, 1, 0, 0x0], [2, 2, 0, 0x2], [3, 3, 0, 0x6], [4, 4, 3, 0xe], [12, 5, 6, 0x1e], [76, 5, 32, 0x1f]]; break; case 5: - lines = [[-255, 7, 8, 0x7E], [1, 1, 0, 0x0], [2, 2, 0, 0x2], [3, 3, 0, 0x6], [4, 4, 3, 0xE], [12, 5, 6, 0x1E], [-256, 7, 32, 0x7F, 'lower'], [76, 6, 32, 0x3E]]; + lines = [[-255, 7, 8, 0x7e], [1, 1, 0, 0x0], [2, 2, 0, 0x2], [3, 3, 0, 0x6], [4, 4, 3, 0xe], [12, 5, 6, 0x1e], [-256, 7, 32, 0x7f, "lower"], [76, 6, 32, 0x3e]]; break; case 6: - lines = [[-2048, 5, 10, 0x1C], [-1024, 4, 9, 0x8], [-512, 4, 8, 0x9], [-256, 4, 7, 0xA], [-128, 5, 6, 0x1D], [-64, 5, 5, 0x1E], [-32, 4, 5, 0xB], [0, 2, 7, 0x0], [128, 3, 7, 0x2], [256, 3, 8, 0x3], [512, 4, 9, 0xC], [1024, 4, 10, 0xD], [-2049, 6, 32, 0x3E, 'lower'], [2048, 6, 32, 0x3F]]; + lines = [[-2048, 5, 10, 0x1c], [-1024, 4, 9, 0x8], [-512, 4, 8, 0x9], [-256, 4, 7, 0xa], [-128, 5, 6, 0x1d], [-64, 5, 5, 0x1e], [-32, 4, 5, 0xb], [0, 2, 7, 0x0], [128, 3, 7, 0x2], [256, 3, 8, 0x3], [512, 4, 9, 0xc], [1024, 4, 10, 0xd], [-2049, 6, 32, 0x3e, "lower"], [2048, 6, 32, 0x3f]]; break; case 7: - lines = [[-1024, 4, 9, 0x8], [-512, 3, 8, 0x0], [-256, 4, 7, 0x9], [-128, 5, 6, 0x1A], [-64, 5, 5, 0x1B], [-32, 4, 5, 0xA], [0, 4, 5, 0xB], [32, 5, 5, 0x1C], [64, 5, 6, 0x1D], [128, 4, 7, 0xC], [256, 3, 8, 0x1], [512, 3, 9, 0x2], [1024, 3, 10, 0x3], [-1025, 5, 32, 0x1E, 'lower'], [2048, 5, 32, 0x1F]]; + lines = [[-1024, 4, 9, 0x8], [-512, 3, 8, 0x0], [-256, 4, 7, 0x9], [-128, 5, 6, 0x1a], [-64, 5, 5, 0x1b], [-32, 4, 5, 0xa], [0, 4, 5, 0xb], [32, 5, 5, 0x1c], [64, 5, 6, 0x1d], [128, 4, 7, 0xc], [256, 3, 8, 0x1], [512, 3, 9, 0x2], [1024, 3, 10, 0x3], [-1025, 5, 32, 0x1e, "lower"], [2048, 5, 32, 0x1f]]; break; case 8: - lines = [[-15, 8, 3, 0xFC], [-7, 9, 1, 0x1FC], [-5, 8, 1, 0xFD], [-3, 9, 0, 0x1FD], [-2, 7, 0, 0x7C], [-1, 4, 0, 0xA], [0, 2, 1, 0x0], [2, 5, 0, 0x1A], [3, 6, 0, 0x3A], [4, 3, 4, 0x4], [20, 6, 1, 0x3B], [22, 4, 4, 0xB], [38, 4, 5, 0xC], [70, 5, 6, 0x1B], [134, 5, 7, 0x1C], [262, 6, 7, 0x3C], [390, 7, 8, 0x7D], [646, 6, 10, 0x3D], [-16, 9, 32, 0x1FE, 'lower'], [1670, 9, 32, 0x1FF], [2, 0x1]]; + lines = [[-15, 8, 3, 0xfc], [-7, 9, 1, 0x1fc], [-5, 8, 1, 0xfd], [-3, 9, 0, 0x1fd], [-2, 7, 0, 0x7c], [-1, 4, 0, 0xa], [0, 2, 1, 0x0], [2, 5, 0, 0x1a], [3, 6, 0, 0x3a], [4, 3, 4, 0x4], [20, 6, 1, 0x3b], [22, 4, 4, 0xb], [38, 4, 5, 0xc], [70, 5, 6, 0x1b], [134, 5, 7, 0x1c], [262, 6, 7, 0x3c], [390, 7, 8, 0x7d], [646, 6, 10, 0x3d], [-16, 9, 32, 0x1fe, "lower"], [1670, 9, 32, 0x1ff], [2, 0x1]]; break; case 9: - lines = [[-31, 8, 4, 0xFC], [-15, 9, 2, 0x1FC], [-11, 8, 2, 0xFD], [-7, 9, 1, 0x1FD], [-5, 7, 1, 0x7C], [-3, 4, 1, 0xA], [-1, 3, 1, 0x2], [1, 3, 1, 0x3], [3, 5, 1, 0x1A], [5, 6, 1, 0x3A], [7, 3, 5, 0x4], [39, 6, 2, 0x3B], [43, 4, 5, 0xB], [75, 4, 6, 0xC], [139, 5, 7, 0x1B], [267, 5, 8, 0x1C], [523, 6, 8, 0x3C], [779, 7, 9, 0x7D], [1291, 6, 11, 0x3D], [-32, 9, 32, 0x1FE, 'lower'], [3339, 9, 32, 0x1FF], [2, 0x0]]; + lines = [[-31, 8, 4, 0xfc], [-15, 9, 2, 0x1fc], [-11, 8, 2, 0xfd], [-7, 9, 1, 0x1fd], [-5, 7, 1, 0x7c], [-3, 4, 1, 0xa], [-1, 3, 1, 0x2], [1, 3, 1, 0x3], [3, 5, 1, 0x1a], [5, 6, 1, 0x3a], [7, 3, 5, 0x4], [39, 6, 2, 0x3b], [43, 4, 5, 0xb], [75, 4, 6, 0xc], [139, 5, 7, 0x1b], [267, 5, 8, 0x1c], [523, 6, 8, 0x3c], [779, 7, 9, 0x7d], [1291, 6, 11, 0x3d], [-32, 9, 32, 0x1fe, "lower"], [3339, 9, 32, 0x1ff], [2, 0x0]]; break; case 10: - lines = [[-21, 7, 4, 0x7A], [-5, 8, 0, 0xFC], [-4, 7, 0, 0x7B], [-3, 5, 0, 0x18], [-2, 2, 2, 0x0], [2, 5, 0, 0x19], [3, 6, 0, 0x36], [4, 7, 0, 0x7C], [5, 8, 0, 0xFD], [6, 2, 6, 0x1], [70, 5, 5, 0x1A], [102, 6, 5, 0x37], [134, 6, 6, 0x38], [198, 6, 7, 0x39], [326, 6, 8, 0x3A], [582, 6, 9, 0x3B], [1094, 6, 10, 0x3C], [2118, 7, 11, 0x7D], [-22, 8, 32, 0xFE, 'lower'], [4166, 8, 32, 0xFF], [2, 0x2]]; + lines = [[-21, 7, 4, 0x7a], [-5, 8, 0, 0xfc], [-4, 7, 0, 0x7b], [-3, 5, 0, 0x18], [-2, 2, 2, 0x0], [2, 5, 0, 0x19], [3, 6, 0, 0x36], [4, 7, 0, 0x7c], [5, 8, 0, 0xfd], [6, 2, 6, 0x1], [70, 5, 5, 0x1a], [102, 6, 5, 0x37], [134, 6, 6, 0x38], [198, 6, 7, 0x39], [326, 6, 8, 0x3a], [582, 6, 9, 0x3b], [1094, 6, 10, 0x3c], [2118, 7, 11, 0x7d], [-22, 8, 32, 0xfe, "lower"], [4166, 8, 32, 0xff], [2, 0x2]]; break; case 11: - lines = [[1, 1, 0, 0x0], [2, 2, 1, 0x2], [4, 4, 0, 0xC], [5, 4, 1, 0xD], [7, 5, 1, 0x1C], [9, 5, 2, 0x1D], [13, 6, 2, 0x3C], [17, 7, 2, 0x7A], [21, 7, 3, 0x7B], [29, 7, 4, 0x7C], [45, 7, 5, 0x7D], [77, 7, 6, 0x7E], [141, 7, 32, 0x7F]]; + lines = [[1, 1, 0, 0x0], [2, 2, 1, 0x2], [4, 4, 0, 0xc], [5, 4, 1, 0xd], [7, 5, 1, 0x1c], [9, 5, 2, 0x1d], [13, 6, 2, 0x3c], [17, 7, 2, 0x7a], [21, 7, 3, 0x7b], [29, 7, 4, 0x7c], [45, 7, 5, 0x7d], [77, 7, 6, 0x7e], [141, 7, 32, 0x7f]]; break; case 12: - lines = [[1, 1, 0, 0x0], [2, 2, 0, 0x2], [3, 3, 1, 0x6], [5, 5, 0, 0x1C], [6, 5, 1, 0x1D], [8, 6, 1, 0x3C], [10, 7, 0, 0x7A], [11, 7, 1, 0x7B], [13, 7, 2, 0x7C], [17, 7, 3, 0x7D], [25, 7, 4, 0x7E], [41, 8, 5, 0xFE], [73, 8, 32, 0xFF]]; + lines = [[1, 1, 0, 0x0], [2, 2, 0, 0x2], [3, 3, 1, 0x6], [5, 5, 0, 0x1c], [6, 5, 1, 0x1d], [8, 6, 1, 0x3c], [10, 7, 0, 0x7a], [11, 7, 1, 0x7b], [13, 7, 2, 0x7c], [17, 7, 3, 0x7d], [25, 7, 4, 0x7e], [41, 8, 5, 0xfe], [73, 8, 32, 0xff]]; break; case 13: - lines = [[1, 1, 0, 0x0], [2, 3, 0, 0x4], [3, 4, 0, 0xC], [4, 5, 0, 0x1C], [5, 4, 1, 0xD], [7, 3, 3, 0x5], [15, 6, 1, 0x3A], [17, 6, 2, 0x3B], [21, 6, 3, 0x3C], [29, 6, 4, 0x3D], [45, 6, 5, 0x3E], [77, 7, 6, 0x7E], [141, 7, 32, 0x7F]]; + lines = [[1, 1, 0, 0x0], [2, 3, 0, 0x4], [3, 4, 0, 0xc], [4, 5, 0, 0x1c], [5, 4, 1, 0xd], [7, 3, 3, 0x5], [15, 6, 1, 0x3a], [17, 6, 2, 0x3b], [21, 6, 3, 0x3c], [29, 6, 4, 0x3d], [45, 6, 5, 0x3e], [77, 7, 6, 0x7e], [141, 7, 32, 0x7f]]; break; case 14: @@ -10995,7 +11011,7 @@ var Jbig2Image = function Jbig2ImageClosure() { break; case 15: - lines = [[-24, 7, 4, 0x7C], [-8, 6, 2, 0x3C], [-4, 5, 1, 0x1C], [-2, 4, 0, 0xC], [-1, 3, 0, 0x4], [0, 1, 0, 0x0], [1, 3, 0, 0x5], [2, 4, 0, 0xD], [3, 5, 1, 0x1D], [5, 6, 2, 0x3D], [9, 7, 4, 0x7D], [-25, 7, 32, 0x7E, 'lower'], [25, 7, 32, 0x7F]]; + lines = [[-24, 7, 4, 0x7c], [-8, 6, 2, 0x3c], [-4, 5, 1, 0x1c], [-2, 4, 0, 0xc], [-1, 3, 0, 0x4], [0, 1, 0, 0x0], [1, 3, 0, 0x5], [2, 4, 0, 0xd], [3, 5, 1, 0x1d], [5, 6, 2, 0x3d], [9, 7, 4, 0x7d], [-25, 7, 32, 0x7e, "lower"], [25, 7, 32, 0x7f]]; break; default: @@ -11027,7 +11043,7 @@ var Jbig2Image = function Jbig2ImageClosure() { readBit() { if (this.shift < 0) { if (this.position >= this.end) { - throw new Jbig2Error('end of data while reading bit'); + throw new Jbig2Error("end of data while reading bit"); } this.currentByte = this.data[this.position++]; @@ -11082,7 +11098,7 @@ var Jbig2Image = function Jbig2ImageClosure() { } } - throw new Jbig2Error('can\'t find custom Huffman table'); + throw new Jbig2Error("can't find custom Huffman table"); } function getTextRegionHuffmanTables(textRegion, referredTo, customTables, numberOfSymbols, reader) { @@ -11107,7 +11123,7 @@ var Jbig2Image = function Jbig2ImageClosure() { switch (codeLength) { case 32: if (i === 0) { - throw new Jbig2Error('no previous value in symbol ID table'); + throw new Jbig2Error("no previous value in symbol ID table"); } numberOfRepeats = reader.readBits(2) + 3; @@ -11125,7 +11141,7 @@ var Jbig2Image = function Jbig2ImageClosure() { break; default: - throw new Jbig2Error('invalid code length in symbol ID table'); + throw new Jbig2Error("invalid code length in symbol ID table"); } for (j = 0; j < numberOfRepeats; j++) { @@ -11157,7 +11173,7 @@ var Jbig2Image = function Jbig2ImageClosure() { break; default: - throw new Jbig2Error('invalid Huffman FS selector'); + throw new Jbig2Error("invalid Huffman FS selector"); } switch (textRegion.huffmanDS) { @@ -11173,7 +11189,7 @@ var Jbig2Image = function Jbig2ImageClosure() { break; default: - throw new Jbig2Error('invalid Huffman DS selector'); + throw new Jbig2Error("invalid Huffman DS selector"); } switch (textRegion.huffmanDT) { @@ -11189,11 +11205,11 @@ var Jbig2Image = function Jbig2ImageClosure() { break; default: - throw new Jbig2Error('invalid Huffman DT selector'); + throw new Jbig2Error("invalid Huffman DT selector"); } if (textRegion.refinement) { - throw new Jbig2Error('refinement with Huffman is not supported'); + throw new Jbig2Error("refinement with Huffman is not supported"); } return { @@ -11221,7 +11237,7 @@ var Jbig2Image = function Jbig2ImageClosure() { break; default: - throw new Jbig2Error('invalid Huffman DH selector'); + throw new Jbig2Error("invalid Huffman DH selector"); } switch (dictionary.huffmanDWSelector) { @@ -11236,7 +11252,7 @@ var Jbig2Image = function Jbig2ImageClosure() { break; default: - throw new Jbig2Error('invalid Huffman DW selector'); + throw new Jbig2Error("invalid Huffman DW selector"); } let tableBitmapSize, tableAggregateInstances; @@ -11359,7 +11375,7 @@ var Jbig2Image = function Jbig2ImageClosure() { exports.Jbig2Image = Jbig2Image; /***/ }), -/* 17 */ +/* 16 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -11385,7 +11401,7 @@ const QeTable = [{ nlps: 9, switchFlag: 0 }, { - qe: 0x0AC1, + qe: 0x0ac1, nmps: 4, nlps: 12, switchFlag: 0 @@ -11430,7 +11446,7 @@ const QeTable = [{ nlps: 18, switchFlag: 0 }, { - qe: 0x1C01, + qe: 0x1c01, nmps: 13, nlps: 20, switchFlag: 0 @@ -11490,7 +11506,7 @@ const QeTable = [{ nlps: 21, switchFlag: 0 }, { - qe: 0x1C01, + qe: 0x1c01, nmps: 25, nlps: 22, switchFlag: 0 @@ -11520,17 +11536,17 @@ const QeTable = [{ nlps: 27, switchFlag: 0 }, { - qe: 0x0AC1, + qe: 0x0ac1, nmps: 31, nlps: 28, switchFlag: 0 }, { - qe: 0x09C1, + qe: 0x09c1, nmps: 32, nlps: 29, switchFlag: 0 }, { - qe: 0x08A1, + qe: 0x08a1, nmps: 33, nlps: 30, switchFlag: 0 @@ -11545,7 +11561,7 @@ const QeTable = [{ nlps: 32, switchFlag: 0 }, { - qe: 0x02A1, + qe: 0x02a1, nmps: 36, nlps: 33, switchFlag: 0 @@ -11614,8 +11630,8 @@ class ArithmeticDecoder { this.chigh = data[start]; this.clow = 0; this.byteIn(); - this.chigh = this.chigh << 7 & 0xFFFF | this.clow >> 9 & 0x7F; - this.clow = this.clow << 7 & 0xFFFF; + this.chigh = this.chigh << 7 & 0xffff | this.clow >> 9 & 0x7f; + this.clow = this.clow << 7 & 0xffff; this.ct -= 7; this.a = 0x8000; } @@ -11624,9 +11640,9 @@ class ArithmeticDecoder { const data = this.data; let bp = this.bp; - if (data[bp] === 0xFF) { - if (data[bp + 1] > 0x8F) { - this.clow += 0xFF00; + if (data[bp] === 0xff) { + if (data[bp + 1] > 0x8f) { + this.clow += 0xff00; this.ct = 8; } else { bp++; @@ -11636,14 +11652,14 @@ class ArithmeticDecoder { } } else { bp++; - this.clow += bp < this.dataEnd ? data[bp] << 8 : 0xFF00; + this.clow += bp < this.dataEnd ? data[bp] << 8 : 0xff00; this.ct = 8; this.bp = bp; } - if (this.clow > 0xFFFF) { + if (this.clow > 0xffff) { this.chigh += this.clow >> 16; - this.clow &= 0xFFFF; + this.clow &= 0xffff; } } @@ -11698,8 +11714,8 @@ class ArithmeticDecoder { } a <<= 1; - this.chigh = this.chigh << 1 & 0xFFFF | this.clow >> 15 & 1; - this.clow = this.clow << 1 & 0xFFFF; + this.chigh = this.chigh << 1 & 0xffff | this.clow >> 15 & 1; + this.clow = this.clow << 1 & 0xffff; this.ct--; } while ((a & 0x8000) === 0); @@ -11713,7 +11729,7 @@ class ArithmeticDecoder { exports.ArithmeticDecoder = ArithmeticDecoder; /***/ }), -/* 18 */ +/* 17 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -11726,18 +11742,18 @@ exports.JpegStream = void 0; var _util = __w_pdfjs_require__(2); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _jpg = __w_pdfjs_require__(19); +var _jpg = __w_pdfjs_require__(18); let JpegStream = function JpegStreamClosure() { function JpegStream(stream, maybeLength, dict, params) { let ch; while ((ch = stream.getByte()) !== -1) { - if (ch === 0xFF) { + if (ch === 0xff) { stream.skip(-1); break; } @@ -11752,9 +11768,9 @@ let JpegStream = function JpegStreamClosure() { } JpegStream.prototype = Object.create(_stream.DecodeStream.prototype); - Object.defineProperty(JpegStream.prototype, 'bytes', { + Object.defineProperty(JpegStream.prototype, "bytes", { get: function JpegStream_bytes() { - return (0, _util.shadow)(this, 'bytes', this.stream.getBytes(this.maybeLength)); + return (0, _util.shadow)(this, "bytes", this.stream.getBytes(this.maybeLength)); }, configurable: true }); @@ -11770,10 +11786,10 @@ let JpegStream = function JpegStreamClosure() { decodeTransform: undefined, colorTransform: undefined }; - let decodeArr = this.dict.getArray('Decode', 'D'); + let decodeArr = this.dict.getArray("Decode", "D"); if (this.forceRGB && Array.isArray(decodeArr)) { - let bitsPerComponent = this.dict.get('BitsPerComponent') || 8; + let bitsPerComponent = this.dict.get("BitsPerComponent") || 8; let decodeArrLength = decodeArr.length; let transform = new Int32Array(decodeArrLength); let transformNeeded = false; @@ -11794,7 +11810,7 @@ let JpegStream = function JpegStreamClosure() { } if ((0, _primitives.isDict)(this.params)) { - let colorTransform = this.params.get('ColorTransform'); + let colorTransform = this.params.get("ColorTransform"); if (Number.isInteger(colorTransform)) { jpegOptions.colorTransform = colorTransform; @@ -11815,7 +11831,7 @@ let JpegStream = function JpegStreamClosure() { }; JpegStream.prototype.getIR = function (forceDataSchema = false) { - return (0, _util.createObjectURL)(this.bytes, 'image/jpeg', forceDataSchema); + return (0, _util.createObjectURL)(this.bytes, "image/jpeg", forceDataSchema); }; return JpegStream; @@ -11824,7 +11840,7 @@ let JpegStream = function JpegStreamClosure() { exports.JpegStream = JpegStream; /***/ }), -/* 19 */ +/* 18 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -11947,19 +11963,19 @@ var JpegImage = function JpegImageClosure() { bitsData = data[offset++]; - if (bitsData === 0xFF) { + if (bitsData === 0xff) { var nextByte = data[offset++]; if (nextByte) { - if (nextByte === 0xDC && parseDNLMarker) { + if (nextByte === 0xdc && parseDNLMarker) { offset += 2; const scanLines = data[offset++] << 8 | data[offset++]; if (scanLines > 0 && scanLines !== frame.scanLines) { - throw new DNLMarkerError('Found DNL marker (0xFFDC) while parsing scan data', scanLines); + throw new DNLMarkerError("Found DNL marker (0xFFDC) while parsing scan data", scanLines); } - } else if (nextByte === 0xD9) { - throw new EOIMarkerError('Found EOI marker (0xFFD9) while parsing scan data'); + } else if (nextByte === 0xd9) { + throw new EOIMarkerError("Found EOI marker (0xFFD9) while parsing scan data"); } throw new JpegError(`unexpected marker ${(bitsData << 8 | nextByte).toString(16)}`); @@ -11976,12 +11992,12 @@ var JpegImage = function JpegImageClosure() { while (true) { node = node[readBit()]; - if (typeof node === 'number') { + if (typeof node === "number") { return node; } - if (typeof node !== 'object') { - throw new JpegError('invalid huffman sequence'); + if (typeof node !== "object") { + throw new JpegError("invalid huffman sequence"); } } } @@ -12111,7 +12127,7 @@ var JpegImage = function JpegImageClosure() { } } else { if (s !== 1) { - throw new JpegError('invalid ACn encoding'); + throw new JpegError("invalid ACn encoding"); } successiveACNextValue = receiveAndExtend(s); @@ -12246,17 +12262,17 @@ var JpegImage = function JpegImageClosure() { if (!fileMarker) { break; } else if (fileMarker.invalid) { - (0, _util.warn)('decodeScan - unexpected MCU data, current marker is: ' + fileMarker.invalid); + (0, _util.warn)("decodeScan - unexpected MCU data, current marker is: " + fileMarker.invalid); offset = fileMarker.offset; } var marker = fileMarker && fileMarker.marker; - if (!marker || marker <= 0xFF00) { - throw new JpegError('decodeScan - a valid marker was not found.'); + if (!marker || marker <= 0xff00) { + throw new JpegError("decodeScan - a valid marker was not found."); } - if (marker >= 0xFFD0 && marker <= 0xFFD7) { + if (marker >= 0xffd0 && marker <= 0xffd7) { offset += 2; } else { break; @@ -12266,7 +12282,7 @@ var JpegImage = function JpegImageClosure() { fileMarker = findNextFileMarker(data, offset); if (fileMarker && fileMarker.invalid) { - (0, _util.warn)('decodeScan - unexpected Scan data, current marker is: ' + fileMarker.invalid); + (0, _util.warn)("decodeScan - unexpected Scan data, current marker is: " + fileMarker.invalid); offset = fileMarker.offset; } @@ -12281,7 +12297,7 @@ var JpegImage = function JpegImageClosure() { var t; if (!qt) { - throw new JpegError('missing required Quantization Table.'); + throw new JpegError("missing required Quantization Table."); } for (var row = 0; row < 64; row += 8) { @@ -12459,7 +12475,7 @@ var JpegImage = function JpegImageClosure() { var currentMarker = peekUint16(currentPos); - if (currentMarker >= 0xFFC0 && currentMarker <= 0xFFFE) { + if (currentMarker >= 0xffc0 && currentMarker <= 0xfffe) { return { invalid: null, marker: currentMarker, @@ -12469,7 +12485,7 @@ var JpegImage = function JpegImageClosure() { var newMarker = peekUint16(newPos); - while (!(newMarker >= 0xFFC0 && newMarker <= 0xFFFE)) { + while (!(newMarker >= 0xffc0 && newMarker <= 0xfffe)) { if (++newPos >= maxPos) { return null; } @@ -12500,7 +12516,7 @@ var JpegImage = function JpegImageClosure() { var fileMarker = findNextFileMarker(data, endOffset, offset); if (fileMarker && fileMarker.invalid) { - (0, _util.warn)('readDataBlock - incorrect length, current marker is: ' + fileMarker.invalid); + (0, _util.warn)("readDataBlock - incorrect length, current marker is: " + fileMarker.invalid); endOffset = fileMarker.offset; } @@ -12539,37 +12555,37 @@ var JpegImage = function JpegImageClosure() { huffmanTablesDC = []; var fileMarker = readUint16(); - if (fileMarker !== 0xFFD8) { - throw new JpegError('SOI not found'); + if (fileMarker !== 0xffd8) { + throw new JpegError("SOI not found"); } fileMarker = readUint16(); - markerLoop: while (fileMarker !== 0xFFD9) { + markerLoop: while (fileMarker !== 0xffd9) { var i, j, l; switch (fileMarker) { - case 0xFFE0: - case 0xFFE1: - case 0xFFE2: - case 0xFFE3: - case 0xFFE4: - case 0xFFE5: - case 0xFFE6: - case 0xFFE7: - case 0xFFE8: - case 0xFFE9: - case 0xFFEA: - case 0xFFEB: - case 0xFFEC: - case 0xFFED: - case 0xFFEE: - case 0xFFEF: - case 0xFFFE: + case 0xffe0: + case 0xffe1: + case 0xffe2: + case 0xffe3: + case 0xffe4: + case 0xffe5: + case 0xffe6: + case 0xffe7: + case 0xffe8: + case 0xffe9: + case 0xffea: + case 0xffeb: + case 0xffec: + case 0xffed: + case 0xffee: + case 0xffef: + case 0xfffe: var appData = readDataBlock(); - if (fileMarker === 0xFFE0) { - if (appData[0] === 0x4A && appData[1] === 0x46 && appData[2] === 0x49 && appData[3] === 0x46 && appData[4] === 0) { + if (fileMarker === 0xffe0) { + if (appData[0] === 0x4a && appData[1] === 0x46 && appData[2] === 0x49 && appData[3] === 0x46 && appData[4] === 0) { jfif = { version: { major: appData[5], @@ -12585,8 +12601,8 @@ var JpegImage = function JpegImageClosure() { } } - if (fileMarker === 0xFFEE) { - if (appData[0] === 0x41 && appData[1] === 0x64 && appData[2] === 0x6F && appData[3] === 0x62 && appData[4] === 0x65) { + if (fileMarker === 0xffee) { + if (appData[0] === 0x41 && appData[1] === 0x64 && appData[2] === 0x6f && appData[3] === 0x62 && appData[4] === 0x65) { adobe = { version: appData[5] << 8 | appData[6], flags0: appData[7] << 8 | appData[8], @@ -12598,7 +12614,7 @@ var JpegImage = function JpegImageClosure() { break; - case 0xFFDB: + case 0xffdb: var quantizationTablesLength = readUint16(); var quantizationTablesEnd = quantizationTablesLength + offset - 2; var z; @@ -12618,7 +12634,7 @@ var JpegImage = function JpegImageClosure() { tableData[z] = readUint16(); } } else { - throw new JpegError('DQT - invalid table spec'); + throw new JpegError("DQT - invalid table spec"); } quantizationTables[quantizationTableSpec & 15] = tableData; @@ -12626,17 +12642,17 @@ var JpegImage = function JpegImageClosure() { break; - case 0xFFC0: - case 0xFFC1: - case 0xFFC2: + case 0xffc0: + case 0xffc1: + case 0xffc2: if (frame) { - throw new JpegError('Only single frame JPEGs supported'); + throw new JpegError("Only single frame JPEGs supported"); } readUint16(); frame = {}; - frame.extended = fileMarker === 0xFFC1; - frame.progressive = fileMarker === 0xFFC2; + frame.extended = fileMarker === 0xffc1; + frame.progressive = fileMarker === 0xffc2; frame.precision = data[offset++]; const sofScanLines = readUint16(); frame.scanLines = dnlScanLines || sofScanLines; @@ -12677,7 +12693,7 @@ var JpegImage = function JpegImageClosure() { prepareComponents(frame); break; - case 0xFFC4: + case 0xffc4: var huffmanLength = readUint16(); for (i = 2; i < huffmanLength;) { @@ -12701,12 +12717,12 @@ var JpegImage = function JpegImageClosure() { break; - case 0xFFDD: + case 0xffdd: readUint16(); resetInterval = readUint16(); break; - case 0xFFDA: + case 0xffda: const parseDNLMarker = ++numSOSMarkers === 1 && !dnlScanLines; readUint16(); var selectorsCount = data[offset++]; @@ -12745,19 +12761,19 @@ var JpegImage = function JpegImageClosure() { break; - case 0xFFDC: + case 0xffdc: offset += 4; break; - case 0xFFFF: - if (data[offset] !== 0xFF) { + case 0xffff: + if (data[offset] !== 0xff) { offset--; } break; default: - if (data[offset - 3] === 0xFF && data[offset - 2] >= 0xC0 && data[offset - 2] <= 0xFE) { + if (data[offset - 3] === 0xff && data[offset - 2] >= 0xc0 && data[offset - 2] <= 0xfe) { offset -= 3; break; } @@ -12765,17 +12781,17 @@ var JpegImage = function JpegImageClosure() { let nextFileMarker = findNextFileMarker(data, offset - 2); if (nextFileMarker && nextFileMarker.invalid) { - (0, _util.warn)('JpegImage.parse - unexpected data, current marker is: ' + nextFileMarker.invalid); + (0, _util.warn)("JpegImage.parse - unexpected data, current marker is: " + nextFileMarker.invalid); offset = nextFileMarker.offset; break; } if (offset > data.length - 2) { - (0, _util.warn)('JpegImage.parse - reached the end of the image data ' + 'without finding an EOI marker (0xFFD9).'); + (0, _util.warn)("JpegImage.parse - reached the end of the image data " + "without finding an EOI marker (0xFFD9)."); break markerLoop; } - throw new JpegError('JpegImage.parse - unknown marker: ' + fileMarker.toString(16)); + throw new JpegError("JpegImage.parse - unknown marker: " + fileMarker.toString(16)); } fileMarker = readUint16(); @@ -12952,7 +12968,7 @@ var JpegImage = function JpegImageClosure() { isSourcePDF = false }) { if (this.numComponents > 4) { - throw new JpegError('Unsupported color mode'); + throw new JpegError("Unsupported color mode"); } var data = this._getLinearizedBlockData(width, height, isSourcePDF); @@ -12994,7 +13010,7 @@ var JpegImage = function JpegImageClosure() { exports.JpegImage = JpegImage; /***/ }), -/* 20 */ +/* 19 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -13005,9 +13021,9 @@ Object.defineProperty(exports, "__esModule", { }); exports.JpxStream = void 0; -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); -var _jpx = __w_pdfjs_require__(21); +var _jpx = __w_pdfjs_require__(20); var _util = __w_pdfjs_require__(2); @@ -13022,9 +13038,9 @@ let JpxStream = function JpxStreamClosure() { } JpxStream.prototype = Object.create(_stream.DecodeStream.prototype); - Object.defineProperty(JpxStream.prototype, 'bytes', { + Object.defineProperty(JpxStream.prototype, "bytes", { get: function JpxStream_bytes() { - return (0, _util.shadow)(this, 'bytes', this.stream.getBytes(this.maybeLength)); + return (0, _util.shadow)(this, "bytes", this.stream.getBytes(this.maybeLength)); }, configurable: true }); @@ -13081,7 +13097,7 @@ let JpxStream = function JpxStreamClosure() { exports.JpxStream = JpxStream; /***/ }), -/* 21 */ +/* 20 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -13094,7 +13110,7 @@ exports.JpxImage = void 0; var _util = __w_pdfjs_require__(2); -var _arithmetic_decoder = __w_pdfjs_require__(17); +var _arithmetic_decoder = __w_pdfjs_require__(16); class JpxError extends _util.BaseException { constructor(msg) { @@ -13105,10 +13121,10 @@ class JpxError extends _util.BaseException { var JpxImage = function JpxImageClosure() { var SubbandsGainLog2 = { - 'LL': 0, - 'LH': 1, - 'HL': 1, - 'HH': 2 + LL: 0, + LH: 1, + HL: 1, + HH: 2 }; function JpxImage() { @@ -13119,7 +13135,7 @@ var JpxImage = function JpxImageClosure() { parse: function JpxImage_parse(data) { var head = (0, _util.readUint16)(data, 0); - if (head === 0xFF4F) { + if (head === 0xff4f) { this.parseCodestream(data, 0, data.length); return; } @@ -13144,18 +13160,18 @@ var JpxImage = function JpxImageClosure() { } if (lbox < headerSize) { - throw new JpxError('Invalid box field size'); + throw new JpxError("Invalid box field size"); } var dataLength = lbox - headerSize; var jumpDataLength = true; switch (tbox) { - case 0x6A703268: + case 0x6a703268: jumpDataLength = false; break; - case 0x636F6C72: + case 0x636f6c72: var method = data[position]; if (method === 1) { @@ -13168,27 +13184,27 @@ var JpxImage = function JpxImageClosure() { break; default: - (0, _util.warn)('Unknown colorspace ' + colorspace); + (0, _util.warn)("Unknown colorspace " + colorspace); break; } } else if (method === 2) { - (0, _util.info)('ICC profile not supported'); + (0, _util.info)("ICC profile not supported"); } break; - case 0x6A703263: + case 0x6a703263: this.parseCodestream(data, position, position + dataLength); break; - case 0x6A502020: + case 0x6a502020: if ((0, _util.readUint32)(data, position) !== 0x0d0a870a) { - (0, _util.warn)('Invalid JP2 signature'); + (0, _util.warn)("Invalid JP2 signature"); } break; - case 0x6A501A1A: + case 0x6a501a1a: case 0x66747970: case 0x72726571: case 0x72657320: @@ -13196,8 +13212,8 @@ var JpxImage = function JpxImageClosure() { break; default: - var headerType = String.fromCharCode(tbox >> 24 & 0xFF, tbox >> 16 & 0xFF, tbox >> 8 & 0xFF, tbox & 0xFF); - (0, _util.warn)('Unsupported header type ' + tbox + ' (' + headerType + ')'); + var headerType = String.fromCharCode(tbox >> 24 & 0xff, tbox >> 16 & 0xff, tbox >> 8 & 0xff, tbox & 0xff); + (0, _util.warn)("Unsupported header type " + tbox + " (" + headerType + ")"); break; } @@ -13214,7 +13230,7 @@ var JpxImage = function JpxImageClosure() { newByte = stream.getByte(); var code = oldByte << 8 | newByte; - if (code === 0xFF51) { + if (code === 0xff51) { stream.skip(4); var Xsiz = stream.getInt32() >>> 0; var Ysiz = stream.getInt32() >>> 0; @@ -13230,7 +13246,7 @@ var JpxImage = function JpxImageClosure() { } } - throw new JpxError('No size marker found in JPX stream'); + throw new JpxError("No size marker found in JPX stream"); }, parseCodestream: function JpxImage_parseCodestream(data, start, end) { var context = {}; @@ -13251,14 +13267,14 @@ var JpxImage = function JpxImageClosure() { tile; switch (code) { - case 0xFF4F: + case 0xff4f: context.mainHeader = true; break; - case 0xFFD9: + case 0xffd9: break; - case 0xFF51: + case 0xff51: length = (0, _util.readUint16)(data, position); var siz = {}; siz.Xsiz = (0, _util.readUint32)(data, position + 4); @@ -13276,7 +13292,7 @@ var JpxImage = function JpxImageClosure() { for (var i = 0; i < componentsCount; i++) { var component = { - precision: (data[j] & 0x7F) + 1, + precision: (data[j] & 0x7f) + 1, isSigned: !!(data[j] & 0x80), XRsiz: data[j + 1], YRsiz: data[j + 2] @@ -13293,13 +13309,13 @@ var JpxImage = function JpxImageClosure() { context.COC = []; break; - case 0xFF5C: + case 0xff5c: length = (0, _util.readUint16)(data, position); var qcd = {}; j = position + 2; sqcd = data[j++]; - switch (sqcd & 0x1F) { + switch (sqcd & 0x1f) { case 0: spqcdSize = 8; scalarExpounded = true; @@ -13316,7 +13332,7 @@ var JpxImage = function JpxImageClosure() { break; default: - throw new Error('Invalid SQcd value ' + sqcd); + throw new Error("Invalid SQcd value " + sqcd); } qcd.noQuantization = spqcdSize === 8; @@ -13350,7 +13366,7 @@ var JpxImage = function JpxImageClosure() { break; - case 0xFF5D: + case 0xff5d: length = (0, _util.readUint16)(data, position); var qcc = {}; j = position + 2; @@ -13365,7 +13381,7 @@ var JpxImage = function JpxImageClosure() { sqcd = data[j++]; - switch (sqcd & 0x1F) { + switch (sqcd & 0x1f) { case 0: spqcdSize = 8; scalarExpounded = true; @@ -13382,7 +13398,7 @@ var JpxImage = function JpxImageClosure() { break; default: - throw new Error('Invalid SQcd value ' + sqcd); + throw new Error("Invalid SQcd value " + sqcd); } qcc.noQuantization = spqcdSize === 8; @@ -13415,7 +13431,7 @@ var JpxImage = function JpxImageClosure() { break; - case 0xFF52: + case 0xff52: length = (0, _util.readUint16)(data, position); var cod = {}; j = position + 2; @@ -13428,8 +13444,8 @@ var JpxImage = function JpxImageClosure() { j += 2; cod.multipleComponentTransform = data[j++]; cod.decompositionLevelsCount = data[j++]; - cod.xcb = (data[j++] & 0xF) + 2; - cod.ycb = (data[j++] & 0xF) + 2; + cod.xcb = (data[j++] & 0xf) + 2; + cod.ycb = (data[j++] & 0xf) + 2; var blockStyle = data[j++]; cod.selectiveArithmeticCodingBypass = !!(blockStyle & 1); cod.resetContextProbabilities = !!(blockStyle & 2); @@ -13445,7 +13461,7 @@ var JpxImage = function JpxImageClosure() { while (j < length + position) { var precinctsSize = data[j++]; precinctsSizes.push({ - PPx: precinctsSize & 0xF, + PPx: precinctsSize & 0xf, PPy: precinctsSize >> 4 }); } @@ -13456,28 +13472,28 @@ var JpxImage = function JpxImageClosure() { var unsupported = []; if (cod.selectiveArithmeticCodingBypass) { - unsupported.push('selectiveArithmeticCodingBypass'); + unsupported.push("selectiveArithmeticCodingBypass"); } if (cod.resetContextProbabilities) { - unsupported.push('resetContextProbabilities'); + unsupported.push("resetContextProbabilities"); } if (cod.terminationOnEachCodingPass) { - unsupported.push('terminationOnEachCodingPass'); + unsupported.push("terminationOnEachCodingPass"); } if (cod.verticallyStripe) { - unsupported.push('verticallyStripe'); + unsupported.push("verticallyStripe"); } if (cod.predictableTermination) { - unsupported.push('predictableTermination'); + unsupported.push("predictableTermination"); } if (unsupported.length > 0) { doNotRecover = true; - throw new Error('Unsupported COD options (' + unsupported.join(', ') + ')'); + throw new Error("Unsupported COD options (" + unsupported.join(", ") + ")"); } if (context.mainHeader) { @@ -13489,7 +13505,7 @@ var JpxImage = function JpxImageClosure() { break; - case 0xFF90: + case 0xff90: length = (0, _util.readUint16)(data, position); tile = {}; tile.index = (0, _util.readUint16)(data, position + 2); @@ -13509,7 +13525,7 @@ var JpxImage = function JpxImageClosure() { context.currentTile = tile; break; - case 0xFF93: + case 0xff93: tile = context.currentTile; if (tile.partIndex === 0) { @@ -13521,18 +13537,18 @@ var JpxImage = function JpxImageClosure() { parseTilePackets(context, data, position, length); break; - case 0xFF55: - case 0xFF57: - case 0xFF58: - case 0xFF64: + case 0xff55: + case 0xff57: + case 0xff58: + case 0xff64: length = (0, _util.readUint16)(data, position); break; - case 0xFF53: - throw new Error('Codestream code 0xFF53 (COC) is ' + 'not implemented'); + case 0xff53: + throw new Error("Codestream code 0xFF53 (COC) is not implemented"); default: - throw new Error('Unknown codestream code: ' + code.toString(16)); + throw new Error("Unknown codestream code: " + code.toString(16)); } position += length; @@ -13541,7 +13557,7 @@ var JpxImage = function JpxImageClosure() { if (doNotRecover || this.failOnCorruptedImage) { throw new JpxError(e.message); } else { - (0, _util.warn)('JPX: Trying to recover from: ' + e.message); + (0, _util.warn)("JPX: Trying to recover from: " + e.message); } } @@ -13786,7 +13802,7 @@ var JpxImage = function JpxImageClosure() { r = 0; } - throw new JpxError('Out of packets'); + throw new JpxError("Out of packets"); }; } @@ -13835,7 +13851,7 @@ var JpxImage = function JpxImageClosure() { l = 0; } - throw new JpxError('Out of packets'); + throw new JpxError("Out of packets"); }; } @@ -13906,7 +13922,7 @@ var JpxImage = function JpxImageClosure() { p = 0; } - throw new JpxError('Out of packets'); + throw new JpxError("Out of packets"); }; } @@ -13958,7 +13974,7 @@ var JpxImage = function JpxImageClosure() { px = 0; } - throw new JpxError('Out of packets'); + throw new JpxError("Out of packets"); }; } @@ -14010,7 +14026,7 @@ var JpxImage = function JpxImageClosure() { py = 0; } - throw new JpxError('Out of packets'); + throw new JpxError("Out of packets"); }; } @@ -14108,7 +14124,7 @@ var JpxImage = function JpxImageClosure() { if (r === 0) { subband = {}; - subband.type = 'LL'; + subband.type = "LL"; subband.tbx0 = Math.ceil(component.tcx0 / scale); subband.tby0 = Math.ceil(component.tcy0 / scale); subband.tbx1 = Math.ceil(component.tcx1 / scale); @@ -14121,7 +14137,7 @@ var JpxImage = function JpxImageClosure() { var bscale = 1 << decompositionLevelsCount - r + 1; var resolutionSubbands = []; subband = {}; - subband.type = 'HL'; + subband.type = "HL"; subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5); subband.tby0 = Math.ceil(component.tcy0 / bscale); subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5); @@ -14131,7 +14147,7 @@ var JpxImage = function JpxImageClosure() { subbands.push(subband); resolutionSubbands.push(subband); subband = {}; - subband.type = 'LH'; + subband.type = "LH"; subband.tbx0 = Math.ceil(component.tcx0 / bscale); subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5); subband.tbx1 = Math.ceil(component.tcx1 / bscale); @@ -14141,7 +14157,7 @@ var JpxImage = function JpxImageClosure() { subbands.push(subband); resolutionSubbands.push(subband); subband = {}; - subband.type = 'HH'; + subband.type = "HH"; subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5); subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5); subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5); @@ -14206,7 +14222,7 @@ var JpxImage = function JpxImageClosure() { bufferSize += 8; } - if (b === 0xFF) { + if (b === 0xff) { skipNextBit = true; } } @@ -14216,10 +14232,10 @@ var JpxImage = function JpxImageClosure() { } function skipMarkerIfEqual(value) { - if (data[offset + position - 1] === 0xFF && data[offset + position] === value) { + if (data[offset + position - 1] === 0xff && data[offset + position] === value) { skipBytes(1); return true; - } else if (data[offset + position] === 0xFF && data[offset + position + 1] === value) { + } else if (data[offset + position] === 0xff && data[offset + position + 1] === value) { skipBytes(2); return true; } @@ -14297,13 +14313,13 @@ var JpxImage = function JpxImageClosure() { var firstTimeInclusion = false; var valueReady; - if (codeblock['included'] !== undefined) { + if (codeblock["included"] !== undefined) { codeblockIncluded = !!readBits(1); } else { precinct = codeblock.precinct; var inclusionTree, zeroBitPlanesTree; - if (precinct['inclusionTree'] !== undefined) { + if (precinct["inclusionTree"] !== undefined) { inclusionTree = precinct.inclusionTree; } else { var width = precinct.cbxMax - precinct.cbxMin + 1; @@ -14381,7 +14397,7 @@ var JpxImage = function JpxImageClosure() { var packetItem = queue.shift(); codeblock = packetItem.codeblock; - if (codeblock['data'] === undefined) { + if (codeblock["data"] === undefined) { codeblock.data = []; } @@ -14403,8 +14419,8 @@ var JpxImage = function JpxImageClosure() { var y0 = subband.tby0; var width = subband.tbx1 - subband.tbx0; var codeblocks = subband.codeblocks; - var right = subband.type.charAt(0) === 'H' ? 1 : 0; - var bottom = subband.type.charAt(1) === 'H' ? levelWidth : 0; + var right = subband.type.charAt(0) === "H" ? 1 : 0; + var bottom = subband.type.charAt(1) === "H" ? levelWidth : 0; for (var i = 0, ii = codeblocks.length; i < ii; ++i) { var codeblock = codeblocks[i]; @@ -14415,7 +14431,7 @@ var JpxImage = function JpxImageClosure() { continue; } - if (codeblock['data'] === undefined) { + if (codeblock["data"] === undefined) { continue; } @@ -14476,7 +14492,7 @@ var JpxImage = function JpxImageClosure() { var magnitudeCorrection = reversible ? 0 : 0.5; var k, n, nb; position = 0; - var interleave = subband.type !== 'LL'; + var interleave = subband.type !== "LL"; for (j = 0; j < blockHeight; j++) { var row = offset / width | 0; @@ -14774,7 +14790,7 @@ var JpxImage = function JpxImageClosure() { level.index = index; var value = level.items[index]; - if (value === 0xFF) { + if (value === 0xff) { break; } @@ -14811,7 +14827,7 @@ var JpxImage = function JpxImageClosure() { var currentLevel = this.currentLevel; var level = this.levels[currentLevel]; var value = level.items[level.index]; - level.items[level.index] = 0xFF; + level.items[level.index] = 0xff; currentLevel--; if (currentLevel < 0) { @@ -14837,7 +14853,7 @@ var JpxImage = function JpxImageClosure() { function BitModel(width, height, subband, zeroBitPlanes, mb) { this.width = width; this.height = height; - this.contextLabelTable = subband === 'HH' ? HHContextLabel : subband === 'HL' ? HLContextLabel : LLAndLHContextsLabel; + this.contextLabelTable = subband === "HH" ? HHContextLabel : subband === "HL" ? HLContextLabel : LLAndLHContextsLabel; var coefficientCount = width * height; this.neighborsSignificance = new Uint8Array(coefficientCount); this.coefficentsSign = new Uint8Array(coefficientCount); @@ -15142,8 +15158,8 @@ var JpxImage = function JpxImageClosure() { var contexts = this.contexts; var symbol = decoder.readBit(contexts, UNIFORM_CONTEXT) << 3 | decoder.readBit(contexts, UNIFORM_CONTEXT) << 2 | decoder.readBit(contexts, UNIFORM_CONTEXT) << 1 | decoder.readBit(contexts, UNIFORM_CONTEXT); - if (symbol !== 0xA) { - throw new JpxError('Invalid segmentation symbol'); + if (symbol !== 0xa) { + throw new JpxError("Invalid segmentation symbol"); } } }; @@ -15395,7 +15411,7 @@ var JpxImage = function JpxImageClosure() { exports.JpxImage = JpxImage; /***/ }), -/* 22 */ +/* 21 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -15408,9 +15424,9 @@ exports.calculateSHA512 = exports.calculateSHA384 = exports.calculateSHA256 = ex var _util = __w_pdfjs_require__(2); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); var ARCFourCipher = function ARCFourCipherClosure() { function ARCFourCipher(key) { @@ -15428,7 +15444,7 @@ var ARCFourCipher = function ARCFourCipherClosure() { for (i = 0; i < 256; ++i) { tmp = s[i]; - j = j + tmp + key[i % keyLength] & 0xFF; + j = j + tmp + key[i % keyLength] & 0xff; s[i] = s[j]; s[j] = tmp; } @@ -15448,13 +15464,13 @@ var ARCFourCipher = function ARCFourCipherClosure() { var output = new Uint8Array(n); for (i = 0; i < n; ++i) { - a = a + 1 & 0xFF; + a = a + 1 & 0xff; tmp = s[a]; - b = b + tmp & 0xFF; + b = b + tmp & 0xff; tmp2 = s[b]; s[a] = tmp2; s[b] = tmp; - output[i] = data[i] ^ s[tmp + tmp2 & 0xFF]; + output[i] = data[i] ^ s[tmp + tmp2 & 0xff]; } this.a = a; @@ -15492,11 +15508,11 @@ var calculateMD5 = function calculateMD5Closure() { padded[i++] = 0; } - padded[i++] = length << 3 & 0xFF; - padded[i++] = length >> 5 & 0xFF; - padded[i++] = length >> 13 & 0xFF; - padded[i++] = length >> 21 & 0xFF; - padded[i++] = length >>> 29 & 0xFF; + padded[i++] = length << 3 & 0xff; + padded[i++] = length >> 5 & 0xff; + padded[i++] = length >> 13 & 0xff; + padded[i++] = length >> 21 & 0xff; + padded[i++] = length >>> 29 & 0xff; padded[i++] = 0; padded[i++] = 0; padded[i++] = 0; @@ -15612,7 +15628,7 @@ var Word64 = function Word64Closure() { var lowAdd = (this.low >>> 0) + (word.low >>> 0); var highAdd = (this.high >>> 0) + (word.high >>> 0); - if (lowAdd > 0xFFFFFFFF) { + if (lowAdd > 0xffffffff) { highAdd += 1; } @@ -15620,14 +15636,14 @@ var Word64 = function Word64Closure() { this.high = highAdd | 0; }, copyTo: function Word64_copyTo(bytes, offset) { - bytes[offset] = this.high >>> 24 & 0xFF; - bytes[offset + 1] = this.high >> 16 & 0xFF; - bytes[offset + 2] = this.high >> 8 & 0xFF; - bytes[offset + 3] = this.high & 0xFF; - bytes[offset + 4] = this.low >>> 24 & 0xFF; - bytes[offset + 5] = this.low >> 16 & 0xFF; - bytes[offset + 6] = this.low >> 8 & 0xFF; - bytes[offset + 7] = this.low & 0xFF; + bytes[offset] = this.high >>> 24 & 0xff; + bytes[offset + 1] = this.high >> 16 & 0xff; + bytes[offset + 2] = this.high >> 8 & 0xff; + bytes[offset + 3] = this.high & 0xff; + bytes[offset + 4] = this.low >>> 24 & 0xff; + bytes[offset + 5] = this.low >> 16 & 0xff; + bytes[offset + 6] = this.low >> 8 & 0xff; + bytes[offset + 7] = this.low & 0xff; }, assign: function Word64_assign(word) { this.high = word.high; @@ -15695,11 +15711,11 @@ var calculateSHA256 = function calculateSHA256Closure() { padded[i++] = 0; padded[i++] = 0; padded[i++] = 0; - padded[i++] = length >>> 29 & 0xFF; - padded[i++] = length >> 21 & 0xFF; - padded[i++] = length >> 13 & 0xFF; - padded[i++] = length >> 5 & 0xFF; - padded[i++] = length << 3 & 0xFF; + padded[i++] = length >>> 29 & 0xff; + padded[i++] = length >> 21 & 0xff; + padded[i++] = length >> 13 & 0xff; + padded[i++] = length >> 5 & 0xff; + padded[i++] = length << 3 & 0xff; var w = new Uint32Array(64); for (i = 0; i < paddedLength;) { @@ -15871,11 +15887,11 @@ var calculateSHA512 = function calculateSHA512Closure() { padded[i++] = 0; padded[i++] = 0; padded[i++] = 0; - padded[i++] = length >>> 29 & 0xFF; - padded[i++] = length >> 21 & 0xFF; - padded[i++] = length >> 13 & 0xFF; - padded[i++] = length >> 5 & 0xFF; - padded[i++] = length << 3 & 0xFF; + padded[i++] = length >>> 29 & 0xff; + padded[i++] = length >> 21 & 0xff; + padded[i++] = length >> 13 & 0xff; + padded[i++] = length >> 5 & 0xff; + padded[i++] = length << 3 & 0xff; var w = new Array(80); for (i = 0; i < 80; i++) { @@ -16010,7 +16026,7 @@ var NullCipher = function NullCipherClosure() { class AESBaseCipher { constructor() { if (this.constructor === AESBaseCipher) { - (0, _util.unreachable)('Cannot initialize AESBaseCipher.'); + (0, _util.unreachable)("Cannot initialize AESBaseCipher."); } this._s = new Uint8Array([0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c, 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08, 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e, 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf, 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16]); @@ -16031,7 +16047,7 @@ class AESBaseCipher { } _expandKey(cipherKey) { - (0, _util.unreachable)('Cannot call `_expandKey` on the base class'); + (0, _util.unreachable)("Cannot call `_expandKey` on the base class"); } _decrypt(input, key) { @@ -16077,10 +16093,10 @@ class AESBaseCipher { let s2 = this._mix[state[j + 2]]; let s3 = this._mix[state[j + 3]]; t = s0 ^ s1 >>> 8 ^ s1 << 24 ^ s2 >>> 16 ^ s2 << 16 ^ s3 >>> 24 ^ s3 << 8; - state[j] = t >>> 24 & 0xFF; - state[j + 1] = t >> 16 & 0xFF; - state[j + 2] = t >> 8 & 0xFF; - state[j + 3] = t & 0xFF; + state[j] = t >>> 24 & 0xff; + state[j + 1] = t >> 16 & 0xff; + state[j + 2] = t >> 8 & 0xff; + state[j + 3] = t & 0xff; } } @@ -16412,7 +16428,7 @@ class AES256Cipher extends AESBaseCipher { t1 = t1 ^ r; if ((r <<= 1) >= 256) { - r = (r ^ 0x1b) & 0xFF; + r = (r ^ 0x1b) & 0xff; } } @@ -16673,20 +16689,20 @@ var CipherTransformFactory = function CipherTransformFactoryClosure() { hashData[i++] = ownerPassword[j]; } - hashData[i++] = flags & 0xFF; - hashData[i++] = flags >> 8 & 0xFF; - hashData[i++] = flags >> 16 & 0xFF; - hashData[i++] = flags >>> 24 & 0xFF; + hashData[i++] = flags & 0xff; + hashData[i++] = flags >> 8 & 0xff; + hashData[i++] = flags >> 16 & 0xff; + hashData[i++] = flags >>> 24 & 0xff; for (j = 0, n = fileId.length; j < n; ++j) { hashData[i++] = fileId[j]; } if (revision >= 4 && !encryptMetadata) { - hashData[i++] = 0xFF; - hashData[i++] = 0xFF; - hashData[i++] = 0xFF; - hashData[i++] = 0xFF; + hashData[i++] = 0xff; + hashData[i++] = 0xff; + hashData[i++] = 0xff; + hashData[i++] = 0xff; } var hash = calculateMD5(hashData, 0, i); @@ -16793,36 +16809,36 @@ var CipherTransformFactory = function CipherTransformFactoryClosure() { return userPassword; } - var identityName = _primitives.Name.get('Identity'); + var identityName = _primitives.Name.get("Identity"); function CipherTransformFactory(dict, fileId, password) { - var filter = dict.get('Filter'); + var filter = dict.get("Filter"); - if (!(0, _primitives.isName)(filter, 'Standard')) { - throw new _util.FormatError('unknown encryption method'); + if (!(0, _primitives.isName)(filter, "Standard")) { + throw new _util.FormatError("unknown encryption method"); } this.dict = dict; - var algorithm = dict.get('V'); + var algorithm = dict.get("V"); if (!Number.isInteger(algorithm) || algorithm !== 1 && algorithm !== 2 && algorithm !== 4 && algorithm !== 5) { - throw new _util.FormatError('unsupported encryption algorithm'); + throw new _util.FormatError("unsupported encryption algorithm"); } this.algorithm = algorithm; - var keyLength = dict.get('Length'); + var keyLength = dict.get("Length"); if (!keyLength) { if (algorithm <= 3) { keyLength = 40; } else { - var cfDict = dict.get('CF'); - var streamCryptoName = dict.get('StmF'); + var cfDict = dict.get("CF"); + var streamCryptoName = dict.get("StmF"); if ((0, _primitives.isDict)(cfDict) && (0, _primitives.isName)(streamCryptoName)) { cfDict.suppressEncryption = true; var handlerDict = cfDict.get(streamCryptoName.name); - keyLength = handlerDict && handlerDict.get('Length') || 128; + keyLength = handlerDict && handlerDict.get("Length") || 128; if (keyLength < 40) { keyLength <<= 3; @@ -16832,14 +16848,14 @@ var CipherTransformFactory = function CipherTransformFactoryClosure() { } if (!Number.isInteger(keyLength) || keyLength < 40 || keyLength % 8 !== 0) { - throw new _util.FormatError('invalid key length'); + throw new _util.FormatError("invalid key length"); } - var ownerPassword = (0, _util.stringToBytes)(dict.get('O')).subarray(0, 32); - var userPassword = (0, _util.stringToBytes)(dict.get('U')).subarray(0, 32); - var flags = dict.get('P'); - var revision = dict.get('R'); - var encryptMetadata = (algorithm === 4 || algorithm === 5) && dict.get('EncryptMetadata') !== false; + var ownerPassword = (0, _util.stringToBytes)(dict.get("O")).subarray(0, 32); + var userPassword = (0, _util.stringToBytes)(dict.get("U")).subarray(0, 32); + var flags = dict.get("P"); + var revision = dict.get("R"); + var encryptMetadata = (algorithm === 4 || algorithm === 5) && dict.get("EncryptMetadata") !== false; this.encryptMetadata = encryptMetadata; var fileIdBytes = (0, _util.stringToBytes)(fileId); var passwordBytes; @@ -16849,7 +16865,7 @@ var CipherTransformFactory = function CipherTransformFactoryClosure() { try { password = (0, _util.utf8StringToString)(password); } catch (ex) { - (0, _util.warn)('CipherTransformFactory: ' + 'Unable to convert UTF8 encoded password.'); + (0, _util.warn)("CipherTransformFactory: " + "Unable to convert UTF8 encoded password."); } } @@ -16861,41 +16877,41 @@ var CipherTransformFactory = function CipherTransformFactoryClosure() { if (algorithm !== 5) { encryptionKey = prepareKeyData(fileIdBytes, passwordBytes, ownerPassword, userPassword, flags, revision, keyLength, encryptMetadata); } else { - var ownerValidationSalt = (0, _util.stringToBytes)(dict.get('O')).subarray(32, 40); - var ownerKeySalt = (0, _util.stringToBytes)(dict.get('O')).subarray(40, 48); - var uBytes = (0, _util.stringToBytes)(dict.get('U')).subarray(0, 48); - var userValidationSalt = (0, _util.stringToBytes)(dict.get('U')).subarray(32, 40); - var userKeySalt = (0, _util.stringToBytes)(dict.get('U')).subarray(40, 48); - var ownerEncryption = (0, _util.stringToBytes)(dict.get('OE')); - var userEncryption = (0, _util.stringToBytes)(dict.get('UE')); - var perms = (0, _util.stringToBytes)(dict.get('Perms')); + var ownerValidationSalt = (0, _util.stringToBytes)(dict.get("O")).subarray(32, 40); + var ownerKeySalt = (0, _util.stringToBytes)(dict.get("O")).subarray(40, 48); + var uBytes = (0, _util.stringToBytes)(dict.get("U")).subarray(0, 48); + var userValidationSalt = (0, _util.stringToBytes)(dict.get("U")).subarray(32, 40); + var userKeySalt = (0, _util.stringToBytes)(dict.get("U")).subarray(40, 48); + var ownerEncryption = (0, _util.stringToBytes)(dict.get("OE")); + var userEncryption = (0, _util.stringToBytes)(dict.get("UE")); + var perms = (0, _util.stringToBytes)(dict.get("Perms")); encryptionKey = createEncryptionKey20(revision, passwordBytes, ownerPassword, ownerValidationSalt, ownerKeySalt, uBytes, userPassword, userValidationSalt, userKeySalt, ownerEncryption, userEncryption, perms); } if (!encryptionKey && !password) { - throw new _util.PasswordException('No password given', _util.PasswordResponses.NEED_PASSWORD); + throw new _util.PasswordException("No password given", _util.PasswordResponses.NEED_PASSWORD); } else if (!encryptionKey && password) { var decodedPassword = decodeUserPassword(passwordBytes, ownerPassword, revision, keyLength); encryptionKey = prepareKeyData(fileIdBytes, decodedPassword, ownerPassword, userPassword, flags, revision, keyLength, encryptMetadata); } if (!encryptionKey) { - throw new _util.PasswordException('Incorrect Password', _util.PasswordResponses.INCORRECT_PASSWORD); + throw new _util.PasswordException("Incorrect Password", _util.PasswordResponses.INCORRECT_PASSWORD); } this.encryptionKey = encryptionKey; if (algorithm >= 4) { - var cf = dict.get('CF'); + var cf = dict.get("CF"); if ((0, _primitives.isDict)(cf)) { cf.suppressEncryption = true; } this.cf = cf; - this.stmf = dict.get('StmF') || identityName; - this.strf = dict.get('StrF') || identityName; - this.eff = dict.get('EFF') || this.stmf; + this.stmf = dict.get("StmF") || identityName; + this.strf = dict.get("StrF") || identityName; + this.eff = dict.get("EFF") || this.stmf; } } @@ -16908,16 +16924,16 @@ var CipherTransformFactory = function CipherTransformFactoryClosure() { key[i] = encryptionKey[i]; } - key[i++] = num & 0xFF; - key[i++] = num >> 8 & 0xFF; - key[i++] = num >> 16 & 0xFF; - key[i++] = gen & 0xFF; - key[i++] = gen >> 8 & 0xFF; + key[i++] = num & 0xff; + key[i++] = num >> 8 & 0xff; + key[i++] = num >> 16 & 0xff; + key[i++] = gen & 0xff; + key[i++] = gen >> 8 & 0xff; if (isAes) { key[i++] = 0x73; key[i++] = 0x41; - key[i++] = 0x6C; + key[i++] = 0x6c; key[i++] = 0x54; } @@ -16927,41 +16943,41 @@ var CipherTransformFactory = function CipherTransformFactoryClosure() { function buildCipherConstructor(cf, name, num, gen, key) { if (!(0, _primitives.isName)(name)) { - throw new _util.FormatError('Invalid crypt filter name.'); + throw new _util.FormatError("Invalid crypt filter name."); } var cryptFilter = cf.get(name.name); var cfm; if (cryptFilter !== null && cryptFilter !== undefined) { - cfm = cryptFilter.get('CFM'); + cfm = cryptFilter.get("CFM"); } - if (!cfm || cfm.name === 'None') { + if (!cfm || cfm.name === "None") { return function cipherTransformFactoryBuildCipherConstructorNone() { return new NullCipher(); }; } - if (cfm.name === 'V2') { + if (cfm.name === "V2") { return function cipherTransformFactoryBuildCipherConstructorV2() { return new ARCFourCipher(buildObjectKey(num, gen, key, false)); }; } - if (cfm.name === 'AESV2') { + if (cfm.name === "AESV2") { return function cipherTransformFactoryBuildCipherConstructorAESV2() { return new AES128Cipher(buildObjectKey(num, gen, key, true)); }; } - if (cfm.name === 'AESV3') { + if (cfm.name === "AESV3") { return function cipherTransformFactoryBuildCipherConstructorAESV3() { return new AES256Cipher(key); }; } - throw new _util.FormatError('Unknown crypto method'); + throw new _util.FormatError("Unknown crypto method"); } CipherTransformFactory.prototype = { @@ -16985,7 +17001,7 @@ var CipherTransformFactory = function CipherTransformFactoryClosure() { exports.CipherTransformFactory = CipherTransformFactory; /***/ }), -/* 23 */ +/* 22 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -16998,7 +17014,7 @@ exports.ColorSpace = void 0; var _util = __w_pdfjs_require__(2); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); function resizeRgbImage(src, dest, w1, h1, w2, h2, alpha01) { const COMPONENTS = 3; @@ -17030,7 +17046,7 @@ function resizeRgbImage(src, dest, w1, h1, w2, h2, alpha01) { class ColorSpace { constructor(name, numComps) { if (this.constructor === ColorSpace) { - (0, _util.unreachable)('Cannot initialize ColorSpace.'); + (0, _util.unreachable)("Cannot initialize ColorSpace."); } this.name = name; @@ -17044,15 +17060,15 @@ class ColorSpace { } getRgbItem(src, srcOffset, dest, destOffset) { - (0, _util.unreachable)('Should not call ColorSpace.getRgbItem'); + (0, _util.unreachable)("Should not call ColorSpace.getRgbItem"); } getRgbBuffer(src, srcOffset, count, dest, destOffset, bits, alpha01) { - (0, _util.unreachable)('Should not call ColorSpace.getRgbBuffer'); + (0, _util.unreachable)("Should not call ColorSpace.getRgbBuffer"); } getOutputLength(inputLength, alpha01) { - (0, _util.unreachable)('Should not call ColorSpace.getOutputLength'); + (0, _util.unreachable)("Should not call ColorSpace.getOutputLength"); } isPassthrough(bits) { @@ -17071,7 +17087,7 @@ class ColorSpace { if (this.isPassthrough(bpc)) { rgbBuf = comps; - } else if (this.numComps === 1 && count > numComponentColors && this.name !== 'DeviceGray' && this.name !== 'DeviceRGB') { + } else if (this.numComps === 1 && count > numComponentColors && this.name !== "DeviceGray" && this.name !== "DeviceRGB") { let allColors = bpc <= 8 ? new Uint8Array(numComponentColors) : new Uint16Array(numComponentColors); for (let i = 0; i < numComponentColors; i++) { @@ -17129,7 +17145,7 @@ class ColorSpace { } get usesZeroToOneRange() { - return (0, _util.shadow)(this, 'usesZeroToOneRange', true); + return (0, _util.shadow)(this, "usesZeroToOneRange", true); } static parse(cs, xref, res, pdfFunctionFactory) { @@ -17142,29 +17158,29 @@ class ColorSpace { let whitePoint, blackPoint, gamma; switch (name) { - case 'DeviceGrayCS': + case "DeviceGrayCS": return this.singletons.gray; - case 'DeviceRgbCS': + case "DeviceRgbCS": return this.singletons.rgb; - case 'DeviceCmykCS': + case "DeviceCmykCS": return this.singletons.cmyk; - case 'CalGrayCS': + case "CalGrayCS": whitePoint = IR[1]; blackPoint = IR[2]; gamma = IR[3]; return new CalGrayCS(whitePoint, blackPoint, gamma); - case 'CalRGBCS': + case "CalRGBCS": whitePoint = IR[1]; blackPoint = IR[2]; gamma = IR[3]; let matrix = IR[4]; return new CalRGBCS(whitePoint, blackPoint, gamma, matrix); - case 'PatternCS': + case "PatternCS": let basePatternCS = IR[1]; if (basePatternCS) { @@ -17173,19 +17189,19 @@ class ColorSpace { return new PatternCS(basePatternCS); - case 'IndexedCS': + case "IndexedCS": let baseIndexedCS = IR[1]; let hiVal = IR[2]; let lookup = IR[3]; return new IndexedCS(this.fromIR(baseIndexedCS), hiVal, lookup); - case 'AlternateCS': + case "AlternateCS": let numComps = IR[1]; let alt = IR[2]; let tintFn = IR[3]; return new AlternateCS(numComps, this.fromIR(alt), tintFn); - case 'LabCS': + case "LabCS": whitePoint = IR[1]; blackPoint = IR[2]; let range = IR[3]; @@ -17201,24 +17217,24 @@ class ColorSpace { if ((0, _primitives.isName)(cs)) { switch (cs.name) { - case 'DeviceGray': - case 'G': - return 'DeviceGrayCS'; + case "DeviceGray": + case "G": + return "DeviceGrayCS"; - case 'DeviceRGB': - case 'RGB': - return 'DeviceRgbCS'; + case "DeviceRGB": + case "RGB": + return "DeviceRgbCS"; - case 'DeviceCMYK': - case 'CMYK': - return 'DeviceCmykCS'; + case "DeviceCMYK": + case "CMYK": + return "DeviceCmykCS"; - case 'Pattern': - return ['PatternCS', null]; + case "Pattern": + return ["PatternCS", null]; default: if ((0, _primitives.isDict)(res)) { - let colorSpaces = res.get('ColorSpace'); + let colorSpaces = res.get("ColorSpace"); if ((0, _primitives.isDict)(colorSpaces)) { let resCS = colorSpaces.get(cs.name); @@ -17243,38 +17259,38 @@ class ColorSpace { let numComps, params, alt, whitePoint, blackPoint, gamma; switch (mode) { - case 'DeviceGray': - case 'G': - return 'DeviceGrayCS'; + case "DeviceGray": + case "G": + return "DeviceGrayCS"; - case 'DeviceRGB': - case 'RGB': - return 'DeviceRgbCS'; + case "DeviceRGB": + case "RGB": + return "DeviceRgbCS"; - case 'DeviceCMYK': - case 'CMYK': - return 'DeviceCmykCS'; + case "DeviceCMYK": + case "CMYK": + return "DeviceCmykCS"; - case 'CalGray': + case "CalGray": params = xref.fetchIfRef(cs[1]); - whitePoint = params.getArray('WhitePoint'); - blackPoint = params.getArray('BlackPoint'); - gamma = params.get('Gamma'); - return ['CalGrayCS', whitePoint, blackPoint, gamma]; + whitePoint = params.getArray("WhitePoint"); + blackPoint = params.getArray("BlackPoint"); + gamma = params.get("Gamma"); + return ["CalGrayCS", whitePoint, blackPoint, gamma]; - case 'CalRGB': + case "CalRGB": params = xref.fetchIfRef(cs[1]); - whitePoint = params.getArray('WhitePoint'); - blackPoint = params.getArray('BlackPoint'); - gamma = params.getArray('Gamma'); - let matrix = params.getArray('Matrix'); - return ['CalRGBCS', whitePoint, blackPoint, gamma, matrix]; + whitePoint = params.getArray("WhitePoint"); + blackPoint = params.getArray("BlackPoint"); + gamma = params.getArray("Gamma"); + let matrix = params.getArray("Matrix"); + return ["CalRGBCS", whitePoint, blackPoint, gamma, matrix]; - case 'ICCBased': + case "ICCBased": let stream = xref.fetchIfRef(cs[1]); let dict = stream.dict; - numComps = dict.get('N'); - alt = dict.get('Alternate'); + numComps = dict.get("N"); + alt = dict.get("Alternate"); if (alt) { let altIR = this.parseToIR(alt, xref, res, pdfFunctionFactory); @@ -17284,30 +17300,30 @@ class ColorSpace { return altIR; } - (0, _util.warn)('ICCBased color space: Ignoring incorrect /Alternate entry.'); + (0, _util.warn)("ICCBased color space: Ignoring incorrect /Alternate entry."); } if (numComps === 1) { - return 'DeviceGrayCS'; + return "DeviceGrayCS"; } else if (numComps === 3) { - return 'DeviceRgbCS'; + return "DeviceRgbCS"; } else if (numComps === 4) { - return 'DeviceCmykCS'; + return "DeviceCmykCS"; } break; - case 'Pattern': + case "Pattern": let basePatternCS = cs[1] || null; if (basePatternCS) { basePatternCS = this.parseToIR(basePatternCS, xref, res, pdfFunctionFactory); } - return ['PatternCS', basePatternCS]; + return ["PatternCS", basePatternCS]; - case 'Indexed': - case 'I': + case "Indexed": + case "I": let baseIndexedCS = this.parseToIR(cs[1], xref, res, pdfFunctionFactory); let hiVal = xref.fetchIfRef(cs[2]) + 1; let lookup = xref.fetchIfRef(cs[3]); @@ -17316,22 +17332,22 @@ class ColorSpace { lookup = lookup.getBytes(); } - return ['IndexedCS', baseIndexedCS, hiVal, lookup]; + return ["IndexedCS", baseIndexedCS, hiVal, lookup]; - case 'Separation': - case 'DeviceN': + case "Separation": + case "DeviceN": let name = xref.fetchIfRef(cs[1]); numComps = Array.isArray(name) ? name.length : 1; alt = this.parseToIR(cs[2], xref, res, pdfFunctionFactory); let tintFn = pdfFunctionFactory.create(xref.fetchIfRef(cs[3])); - return ['AlternateCS', numComps, alt, tintFn]; + return ["AlternateCS", numComps, alt, tintFn]; - case 'Lab': + case "Lab": params = xref.fetchIfRef(cs[1]); - whitePoint = params.getArray('WhitePoint'); - blackPoint = params.getArray('BlackPoint'); - let range = params.getArray('Range'); - return ['LabCS', whitePoint, blackPoint, range]; + whitePoint = params.getArray("WhitePoint"); + blackPoint = params.getArray("BlackPoint"); + let range = params.getArray("Range"); + return ["LabCS", whitePoint, blackPoint, range]; default: throw new _util.FormatError(`unimplemented color space object "${mode}"`); @@ -17347,7 +17363,7 @@ class ColorSpace { } if (numComps * 2 !== decode.length) { - (0, _util.warn)('The decode map is not the correct length'); + (0, _util.warn)("The decode map is not the correct length"); return true; } @@ -17361,17 +17377,17 @@ class ColorSpace { } static get singletons() { - return (0, _util.shadow)(this, 'singletons', { + return (0, _util.shadow)(this, "singletons", { get gray() { - return (0, _util.shadow)(this, 'gray', new DeviceGrayCS()); + return (0, _util.shadow)(this, "gray", new DeviceGrayCS()); }, get rgb() { - return (0, _util.shadow)(this, 'rgb', new DeviceRgbCS()); + return (0, _util.shadow)(this, "rgb", new DeviceRgbCS()); }, get cmyk() { - return (0, _util.shadow)(this, 'cmyk', new DeviceCmykCS()); + return (0, _util.shadow)(this, "cmyk", new DeviceCmykCS()); } }); @@ -17383,7 +17399,7 @@ exports.ColorSpace = ColorSpace; class AlternateCS extends ColorSpace { constructor(numComps, base, tintFn) { - super('Alternate', numComps); + super("Alternate", numComps); this.base = base; this.tintFn = tintFn; this.tmpBuf = new Float32Array(base.numComps); @@ -17439,19 +17455,19 @@ class AlternateCS extends ColorSpace { class PatternCS extends ColorSpace { constructor(baseCS) { - super('Pattern', null); + super("Pattern", null); this.base = baseCS; } isDefaultDecode(decodeMap, bpc) { - (0, _util.unreachable)('Should not call PatternCS.isDefaultDecode'); + (0, _util.unreachable)("Should not call PatternCS.isDefaultDecode"); } } class IndexedCS extends ColorSpace { constructor(base, highVal, lookup) { - super('Indexed', 1); + super("Indexed", 1); this.base = base; this.highVal = highVal; let baseNumComps = base.numComps; @@ -17503,12 +17519,12 @@ class IndexedCS extends ColorSpace { } if (decodeMap.length !== 2) { - (0, _util.warn)('Decode map length is not correct'); + (0, _util.warn)("Decode map length is not correct"); return true; } if (!Number.isInteger(bpc) || bpc < 1) { - (0, _util.warn)('Bits per component is not correct'); + (0, _util.warn)("Bits per component is not correct"); return true; } @@ -17519,7 +17535,7 @@ class IndexedCS extends ColorSpace { class DeviceGrayCS extends ColorSpace { constructor() { - super('DeviceGray', 1); + super("DeviceGray", 1); } getRgbItem(src, srcOffset, dest, destOffset) { @@ -17549,7 +17565,7 @@ class DeviceGrayCS extends ColorSpace { class DeviceRgbCS extends ColorSpace { constructor() { - super('DeviceRGB', 3); + super("DeviceRGB", 3); } getRgbItem(src, srcOffset, dest, destOffset) { @@ -17599,7 +17615,7 @@ const DeviceCmykCS = function DeviceCmykCSClosure() { class DeviceCmykCS extends ColorSpace { constructor() { - super('DeviceCMYK', 4); + super("DeviceCMYK", 4); } getRgbItem(src, srcOffset, dest, destOffset) { @@ -17638,10 +17654,10 @@ const CalGrayCS = function CalGrayCSClosure() { class CalGrayCS extends ColorSpace { constructor(whitePoint, blackPoint, gamma) { - super('CalGray', 1); + super("CalGray", 1); if (!whitePoint) { - throw new _util.FormatError('WhitePoint missing - required for color space CalGray'); + throw new _util.FormatError("WhitePoint missing - required for color space CalGray"); } blackPoint = blackPoint || [0, 0, 0]; @@ -17655,7 +17671,7 @@ const CalGrayCS = function CalGrayCSClosure() { this.G = gamma; if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) { - throw new _util.FormatError(`Invalid WhitePoint components for ${this.name}` + ', no fallback available'); + throw new _util.FormatError(`Invalid WhitePoint components for ${this.name}` + ", no fallback available"); } if (this.XB < 0 || this.YB < 0 || this.ZB < 0) { @@ -17668,7 +17684,7 @@ const CalGrayCS = function CalGrayCSClosure() { } if (this.G < 1) { - (0, _util.info)(`Invalid Gamma: ${this.G} for ${this.name}, ` + 'falling back to default.'); + (0, _util.info)(`Invalid Gamma: ${this.G} for ${this.name}, ` + "falling back to default."); this.G = 1; } } @@ -17829,10 +17845,10 @@ const CalRGBCS = function CalRGBCSClosure() { class CalRGBCS extends ColorSpace { constructor(whitePoint, blackPoint, gamma, matrix) { - super('CalRGB', 3); + super("CalRGB", 3); if (!whitePoint) { - throw new _util.FormatError('WhitePoint missing - required for color space CalRGB'); + throw new _util.FormatError("WhitePoint missing - required for color space CalRGB"); } blackPoint = blackPoint || new Float32Array(3); @@ -17860,11 +17876,11 @@ const CalRGBCS = function CalRGBCSClosure() { this.MZC = matrix[8]; if (XW < 0 || ZW < 0 || YW !== 1) { - throw new _util.FormatError(`Invalid WhitePoint components for ${this.name}` + ', no fallback available'); + throw new _util.FormatError(`Invalid WhitePoint components for ${this.name}` + ", no fallback available"); } if (XB < 0 || YB < 0 || ZB < 0) { - (0, _util.info)(`Invalid BlackPoint for ${this.name} [${XB}, ${YB}, ${ZB}], ` + 'falling back to default.'); + (0, _util.info)(`Invalid BlackPoint for ${this.name} [${XB}, ${YB}, ${ZB}], ` + "falling back to default."); this.blackPoint = new Float32Array(3); } @@ -17936,13 +17952,13 @@ const LabCS = function LabCSClosure() { let r, g, b; if (cs.ZW < 1) { - r = X * 3.1339 + Y * -1.6170 + Z * -0.4906; - g = X * -0.9785 + Y * 1.9160 + Z * 0.0333; - b = X * 0.0720 + Y * -0.2290 + Z * 1.4057; + r = X * 3.1339 + Y * -1.617 + Z * -0.4906; + g = X * -0.9785 + Y * 1.916 + Z * 0.0333; + b = X * 0.072 + Y * -0.229 + Z * 1.4057; } else { r = X * 3.2406 + Y * -1.5372 + Z * -0.4986; g = X * -0.9689 + Y * 1.8758 + Z * 0.0415; - b = X * 0.0557 + Y * -0.2040 + Z * 1.0570; + b = X * 0.0557 + Y * -0.204 + Z * 1.057; } dest[destOffset] = Math.sqrt(r) * 255; @@ -17952,10 +17968,10 @@ const LabCS = function LabCSClosure() { class LabCS extends ColorSpace { constructor(whitePoint, blackPoint, range) { - super('Lab', 3); + super("Lab", 3); if (!whitePoint) { - throw new _util.FormatError('WhitePoint missing - required for color space Lab'); + throw new _util.FormatError("WhitePoint missing - required for color space Lab"); } blackPoint = blackPoint || [0, 0, 0]; @@ -17972,16 +17988,16 @@ const LabCS = function LabCSClosure() { this.ZB = blackPoint[2]; if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) { - throw new _util.FormatError('Invalid WhitePoint components, no fallback available'); + throw new _util.FormatError("Invalid WhitePoint components, no fallback available"); } if (this.XB < 0 || this.YB < 0 || this.ZB < 0) { - (0, _util.info)('Invalid BlackPoint, falling back to default'); + (0, _util.info)("Invalid BlackPoint, falling back to default"); this.XB = this.YB = this.ZB = 0; } if (this.amin > this.amax || this.bmin > this.bmax) { - (0, _util.info)('Invalid Range, falling back to defaults'); + (0, _util.info)("Invalid Range, falling back to defaults"); this.amin = -100; this.amax = 100; this.bmin = -100; @@ -18012,7 +18028,7 @@ const LabCS = function LabCSClosure() { } get usesZeroToOneRange() { - return (0, _util.shadow)(this, 'usesZeroToOneRange', false); + return (0, _util.shadow)(this, "usesZeroToOneRange", false); } } @@ -18021,7 +18037,7 @@ const LabCS = function LabCSClosure() { }(); /***/ }), -/* 24 */ +/* 23 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -18035,21 +18051,21 @@ exports.MarkupAnnotation = exports.AnnotationFactory = exports.AnnotationBorderS var _util = __w_pdfjs_require__(2); -var _obj = __w_pdfjs_require__(10); +var _obj = __w_pdfjs_require__(9); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _colorspace = __w_pdfjs_require__(23); +var _colorspace = __w_pdfjs_require__(22); -var _core_utils = __w_pdfjs_require__(8); +var _core_utils = __w_pdfjs_require__(7); -var _operator_list = __w_pdfjs_require__(25); +var _operator_list = __w_pdfjs_require__(24); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); class AnnotationFactory { static create(xref, ref, pdfManager, idFactory) { - return pdfManager.ensure(this, '_create', [xref, ref, pdfManager, idFactory]); + return pdfManager.ensure(this, "_create", [xref, ref, pdfManager, idFactory]); } static _create(xref, ref, pdfManager, idFactory) { @@ -18060,7 +18076,7 @@ class AnnotationFactory { } const id = (0, _primitives.isRef)(ref) ? ref.toString() : `annot_${idFactory.createObjId()}`; - let subtype = dict.get('Subtype'); + let subtype = dict.get("Subtype"); subtype = (0, _primitives.isName)(subtype) ? subtype.name : null; const parameters = { xref, @@ -18071,83 +18087,83 @@ class AnnotationFactory { }; switch (subtype) { - case 'Link': + case "Link": return new LinkAnnotation(parameters); - case 'Text': + case "Text": return new TextAnnotation(parameters); - case 'Widget': + case "Widget": let fieldType = (0, _core_utils.getInheritableProperty)({ dict, - key: 'FT' + key: "FT" }); fieldType = (0, _primitives.isName)(fieldType) ? fieldType.name : null; switch (fieldType) { - case 'Tx': + case "Tx": return new TextWidgetAnnotation(parameters); - case 'Btn': + case "Btn": return new ButtonWidgetAnnotation(parameters); - case 'Ch': + case "Ch": return new ChoiceWidgetAnnotation(parameters); } - (0, _util.warn)('Unimplemented widget field type "' + fieldType + '", ' + 'falling back to base field type.'); + (0, _util.warn)('Unimplemented widget field type "' + fieldType + '", ' + "falling back to base field type."); return new WidgetAnnotation(parameters); - case 'Popup': + case "Popup": return new PopupAnnotation(parameters); - case 'FreeText': + case "FreeText": return new FreeTextAnnotation(parameters); - case 'Line': + case "Line": return new LineAnnotation(parameters); - case 'Square': + case "Square": return new SquareAnnotation(parameters); - case 'Circle': + case "Circle": return new CircleAnnotation(parameters); - case 'PolyLine': + case "PolyLine": return new PolylineAnnotation(parameters); - case 'Polygon': + case "Polygon": return new PolygonAnnotation(parameters); - case 'Caret': + case "Caret": return new CaretAnnotation(parameters); - case 'Ink': + case "Ink": return new InkAnnotation(parameters); - case 'Highlight': + case "Highlight": return new HighlightAnnotation(parameters); - case 'Underline': + case "Underline": return new UnderlineAnnotation(parameters); - case 'Squiggly': + case "Squiggly": return new SquigglyAnnotation(parameters); - case 'StrikeOut': + case "StrikeOut": return new StrikeOutAnnotation(parameters); - case 'Stamp': + case "Stamp": return new StampAnnotation(parameters); - case 'FileAttachment': + case "FileAttachment": return new FileAttachmentAnnotation(parameters); default: if (!subtype) { - (0, _util.warn)('Annotation is missing the required /Subtype.'); + (0, _util.warn)("Annotation is missing the required /Subtype."); } else { - (0, _util.warn)('Unimplemented annotation type "' + subtype + '", ' + 'falling back to base annotation.'); + (0, _util.warn)('Unimplemented annotation type "' + subtype + '", ' + "falling back to base annotation."); } return new Annotation(parameters); @@ -18159,11 +18175,11 @@ class AnnotationFactory { exports.AnnotationFactory = AnnotationFactory; function getQuadPoints(dict, rect) { - if (!dict.has('QuadPoints')) { + if (!dict.has("QuadPoints")) { return null; } - const quadPoints = dict.getArray('QuadPoints'); + const quadPoints = dict.getArray("QuadPoints"); if (!Array.isArray(quadPoints) || quadPoints.length % 8 > 0) { return null; @@ -18207,11 +18223,11 @@ function getTransformMatrix(rect, bbox, matrix) { class Annotation { constructor(params) { const dict = params.dict; - this.setContents(dict.get('Contents')); - this.setModificationDate(dict.get('M')); - this.setFlags(dict.get('F')); - this.setRectangle(dict.getArray('Rect')); - this.setColor(dict.getArray('C')); + this.setContents(dict.get("Contents")); + this.setModificationDate(dict.get("M")); + this.setFlags(dict.get("F")); + this.setRectangle(dict.getArray("Rect")); + this.setColor(dict.getArray("C")); this.setBorderStyle(dict); this.setAppearance(dict); this.data = { @@ -18256,7 +18272,7 @@ class Annotation { } setContents(contents) { - this.contents = (0, _util.stringToPDFString)(contents || ''); + this.contents = (0, _util.stringToPDFString)(contents || ""); } setModificationDate(modificationDate) { @@ -18323,17 +18339,17 @@ class Annotation { return; } - if (borderStyle.has('BS')) { - const dict = borderStyle.get('BS'); - const dictType = dict.get('Type'); + if (borderStyle.has("BS")) { + const dict = borderStyle.get("BS"); + const dictType = dict.get("Type"); - if (!dictType || (0, _primitives.isName)(dictType, 'Border')) { - this.borderStyle.setWidth(dict.get('W'), this.rectangle); - this.borderStyle.setStyle(dict.get('S')); - this.borderStyle.setDashArray(dict.getArray('D')); + if (!dictType || (0, _primitives.isName)(dictType, "Border")) { + this.borderStyle.setWidth(dict.get("W"), this.rectangle); + this.borderStyle.setStyle(dict.get("S")); + this.borderStyle.setDashArray(dict.getArray("D")); } - } else if (borderStyle.has('Border')) { - const array = borderStyle.getArray('Border'); + } else if (borderStyle.has("Border")) { + const array = borderStyle.getArray("Border"); if (Array.isArray(array) && array.length >= 3) { this.borderStyle.setHorizontalCornerRadius(array[0]); @@ -18351,13 +18367,13 @@ class Annotation { setAppearance(dict) { this.appearance = null; - const appearanceStates = dict.get('AP'); + const appearanceStates = dict.get("AP"); if (!(0, _primitives.isDict)(appearanceStates)) { return; } - const normalAppearanceState = appearanceStates.get('N'); + const normalAppearanceState = appearanceStates.get("N"); if ((0, _primitives.isStream)(normalAppearanceState)) { this.appearance = normalAppearanceState; @@ -18368,7 +18384,7 @@ class Annotation { return; } - const as = dict.get('AS'); + const as = dict.get("AS"); if (!(0, _primitives.isName)(as) || !normalAppearanceState.has(as.name)) { return; @@ -18378,7 +18394,7 @@ class Annotation { } loadResources(keys) { - return this.appearance.dict.getAsync('Resources').then(resources => { + return this.appearance.dict.getAsync("Resources").then(resources => { if (!resources) { return undefined; } @@ -18397,9 +18413,9 @@ class Annotation { const data = this.data; const appearanceDict = this.appearance.dict; - const resourcesPromise = this.loadResources(['ExtGState', 'ColorSpace', 'Pattern', 'Shading', 'XObject', 'Font']); - const bbox = appearanceDict.getArray('BBox') || [0, 0, 1, 1]; - const matrix = appearanceDict.getArray('Matrix') || [1, 0, 0, 1, 0, 0]; + const resourcesPromise = this.loadResources(["ExtGState", "ColorSpace", "Pattern", "Shading", "XObject", "Font"]); + const bbox = appearanceDict.getArray("BBox") || [0, 0, 1, 1]; + const matrix = appearanceDict.getArray("Matrix") || [1, 0, 0, 1, 0, 0]; const transform = getTransformMatrix(data.rect, bbox, matrix); return resourcesPromise.then(resources => { const opList = new _operator_list.OperatorList(); @@ -18457,23 +18473,23 @@ class AnnotationBorderStyle { } switch (style.name) { - case 'S': + case "S": this.style = _util.AnnotationBorderStyleType.SOLID; break; - case 'D': + case "D": this.style = _util.AnnotationBorderStyleType.DASHED; break; - case 'B': + case "B": this.style = _util.AnnotationBorderStyleType.BEVELED; break; - case 'I': + case "I": this.style = _util.AnnotationBorderStyleType.INSET; break; - case 'U': + case "U": this.style = _util.AnnotationBorderStyleType.UNDERLINE; break; @@ -18529,48 +18545,48 @@ class MarkupAnnotation extends Annotation { super(parameters); const dict = parameters.dict; - if (dict.has('IRT')) { - const rawIRT = dict.getRaw('IRT'); + if (dict.has("IRT")) { + const rawIRT = dict.getRaw("IRT"); this.data.inReplyTo = (0, _primitives.isRef)(rawIRT) ? rawIRT.toString() : null; - const rt = dict.get('RT'); + const rt = dict.get("RT"); this.data.replyType = (0, _primitives.isName)(rt) ? rt.name : _util.AnnotationReplyType.REPLY; } if (this.data.replyType === _util.AnnotationReplyType.GROUP) { - const parent = dict.get('IRT'); - this.data.title = (0, _util.stringToPDFString)(parent.get('T') || ''); - this.setContents(parent.get('Contents')); + const parent = dict.get("IRT"); + this.data.title = (0, _util.stringToPDFString)(parent.get("T") || ""); + this.setContents(parent.get("Contents")); this.data.contents = this.contents; - if (!parent.has('CreationDate')) { + if (!parent.has("CreationDate")) { this.data.creationDate = null; } else { - this.setCreationDate(parent.get('CreationDate')); + this.setCreationDate(parent.get("CreationDate")); this.data.creationDate = this.creationDate; } - if (!parent.has('M')) { + if (!parent.has("M")) { this.data.modificationDate = null; } else { - this.setModificationDate(parent.get('M')); + this.setModificationDate(parent.get("M")); this.data.modificationDate = this.modificationDate; } - this.data.hasPopup = parent.has('Popup'); + this.data.hasPopup = parent.has("Popup"); - if (!parent.has('C')) { + if (!parent.has("C")) { this.data.color = null; } else { - this.setColor(parent.getArray('C')); + this.setColor(parent.getArray("C")); this.data.color = this.color; } } else { - this.data.title = (0, _util.stringToPDFString)(dict.get('T') || ''); - this.setCreationDate(dict.get('CreationDate')); + this.data.title = (0, _util.stringToPDFString)(dict.get("T") || ""); + this.setCreationDate(dict.get("CreationDate")); this.data.creationDate = this.creationDate; - this.data.hasPopup = dict.has('Popup'); + this.data.hasPopup = dict.has("Popup"); - if (!dict.has('C')) { + if (!dict.has("C")) { this.data.color = null; } } @@ -18593,26 +18609,26 @@ class WidgetAnnotation extends Annotation { data.fieldName = this._constructFieldName(dict); data.fieldValue = (0, _core_utils.getInheritableProperty)({ dict, - key: 'V', + key: "V", getArray: true }); - data.alternativeText = (0, _util.stringToPDFString)(dict.get('TU') || ''); + data.alternativeText = (0, _util.stringToPDFString)(dict.get("TU") || ""); data.defaultAppearance = (0, _core_utils.getInheritableProperty)({ dict, - key: 'DA' - }) || ''; + key: "DA" + }) || ""; const fieldType = (0, _core_utils.getInheritableProperty)({ dict, - key: 'FT' + key: "FT" }); data.fieldType = (0, _primitives.isName)(fieldType) ? fieldType.name : null; this.fieldResources = (0, _core_utils.getInheritableProperty)({ dict, - key: 'DR' + key: "DR" }) || _primitives.Dict.empty; data.fieldFlags = (0, _core_utils.getInheritableProperty)({ dict, - key: 'Ff' + key: "Ff" }); if (!Number.isInteger(data.fieldFlags) || data.fieldFlags < 0) { @@ -18621,43 +18637,43 @@ class WidgetAnnotation extends Annotation { data.readOnly = this.hasFieldFlag(_util.AnnotationFieldFlag.READONLY); - if (data.fieldType === 'Sig') { + if (data.fieldType === "Sig") { data.fieldValue = null; this.setFlags(_util.AnnotationFlag.HIDDEN); } } _constructFieldName(dict) { - if (!dict.has('T') && !dict.has('Parent')) { - (0, _util.warn)('Unknown field name, falling back to empty field name.'); - return ''; + if (!dict.has("T") && !dict.has("Parent")) { + (0, _util.warn)("Unknown field name, falling back to empty field name."); + return ""; } - if (!dict.has('Parent')) { - return (0, _util.stringToPDFString)(dict.get('T')); + if (!dict.has("Parent")) { + return (0, _util.stringToPDFString)(dict.get("T")); } const fieldName = []; - if (dict.has('T')) { - fieldName.unshift((0, _util.stringToPDFString)(dict.get('T'))); + if (dict.has("T")) { + fieldName.unshift((0, _util.stringToPDFString)(dict.get("T"))); } let loopDict = dict; - while (loopDict.has('Parent')) { - loopDict = loopDict.get('Parent'); + while (loopDict.has("Parent")) { + loopDict = loopDict.get("Parent"); if (!(0, _primitives.isDict)(loopDict)) { break; } - if (loopDict.has('T')) { - fieldName.unshift((0, _util.stringToPDFString)(loopDict.get('T'))); + if (loopDict.has("T")) { + fieldName.unshift((0, _util.stringToPDFString)(loopDict.get("T"))); } } - return fieldName.join('.'); + return fieldName.join("."); } hasFieldFlag(flag) { @@ -18678,10 +18694,10 @@ class TextWidgetAnnotation extends WidgetAnnotation { constructor(params) { super(params); const dict = params.dict; - this.data.fieldValue = (0, _util.stringToPDFString)(this.data.fieldValue || ''); + this.data.fieldValue = (0, _util.stringToPDFString)(this.data.fieldValue || ""); let alignment = (0, _core_utils.getInheritableProperty)({ dict, - key: 'Q' + key: "Q" }); if (!Number.isInteger(alignment) || alignment < 0 || alignment > 2) { @@ -18691,7 +18707,7 @@ class TextWidgetAnnotation extends WidgetAnnotation { this.data.textAlignment = alignment; let maximumLength = (0, _core_utils.getInheritableProperty)({ dict, - key: 'MaxLen' + key: "MaxLen" }); if (!Number.isInteger(maximumLength) || maximumLength < 0) { @@ -18741,7 +18757,7 @@ class ButtonWidgetAnnotation extends WidgetAnnotation { } else if (this.data.pushButton) { this._processPushButton(params); } else { - (0, _util.warn)('Invalid field flags for button widget annotation'); + (0, _util.warn)("Invalid field flags for button widget annotation"); } } @@ -18750,13 +18766,13 @@ class ButtonWidgetAnnotation extends WidgetAnnotation { this.data.fieldValue = this.data.fieldValue.name; } - const customAppearance = params.dict.get('AP'); + const customAppearance = params.dict.get("AP"); if (!(0, _primitives.isDict)(customAppearance)) { return; } - const exportValueOptionsDict = customAppearance.get('D'); + const exportValueOptionsDict = customAppearance.get("D"); if (!(0, _primitives.isDict)(exportValueOptionsDict)) { return; @@ -18769,35 +18785,35 @@ class ButtonWidgetAnnotation extends WidgetAnnotation { return; } - this.data.exportValue = exportValues[0] === 'Off' ? exportValues[1] : exportValues[0]; + this.data.exportValue = exportValues[0] === "Off" ? exportValues[1] : exportValues[0]; } _processRadioButton(params) { this.data.fieldValue = this.data.buttonValue = null; - const fieldParent = params.dict.get('Parent'); + const fieldParent = params.dict.get("Parent"); - if ((0, _primitives.isDict)(fieldParent) && fieldParent.has('V')) { - const fieldParentValue = fieldParent.get('V'); + if ((0, _primitives.isDict)(fieldParent) && fieldParent.has("V")) { + const fieldParentValue = fieldParent.get("V"); if ((0, _primitives.isName)(fieldParentValue)) { this.data.fieldValue = fieldParentValue.name; } } - const appearanceStates = params.dict.get('AP'); + const appearanceStates = params.dict.get("AP"); if (!(0, _primitives.isDict)(appearanceStates)) { return; } - const normalAppearanceState = appearanceStates.get('N'); + const normalAppearanceState = appearanceStates.get("N"); if (!(0, _primitives.isDict)(normalAppearanceState)) { return; } for (const key of normalAppearanceState.getKeys()) { - if (key !== 'Off') { + if (key !== "Off") { this.data.buttonValue = key; break; } @@ -18805,8 +18821,8 @@ class ButtonWidgetAnnotation extends WidgetAnnotation { } _processPushButton(params) { - if (!params.dict.has('A')) { - (0, _util.warn)('Push buttons without action dictionaries are not supported'); + if (!params.dict.has("A")) { + (0, _util.warn)("Push buttons without action dictionaries are not supported"); return; } @@ -18825,7 +18841,7 @@ class ChoiceWidgetAnnotation extends WidgetAnnotation { this.data.options = []; const options = (0, _core_utils.getInheritableProperty)({ dict: params.dict, - key: 'Opt' + key: "Opt" }); if (Array.isArray(options)) { @@ -18859,16 +18875,16 @@ class TextAnnotation extends MarkupAnnotation { this.data.annotationType = _util.AnnotationType.TEXT; if (this.data.hasAppearance) { - this.data.name = 'NoIcon'; + this.data.name = "NoIcon"; } else { this.data.rect[1] = this.data.rect[3] - DEFAULT_ICON_SIZE; this.data.rect[2] = this.data.rect[0] + DEFAULT_ICON_SIZE; - this.data.name = dict.has('Name') ? dict.get('Name').name : 'Note'; + this.data.name = dict.has("Name") ? dict.get("Name").name : "Note"; } - if (dict.has('State')) { - this.data.state = dict.get('State') || null; - this.data.stateModel = dict.get('StateModel') || null; + if (dict.has("State")) { + this.data.state = dict.get("State") || null; + this.data.stateModel = dict.get("StateModel") || null; } else { this.data.state = null; this.data.stateModel = null; @@ -18900,47 +18916,47 @@ class PopupAnnotation extends Annotation { constructor(parameters) { super(parameters); this.data.annotationType = _util.AnnotationType.POPUP; - let parentItem = parameters.dict.get('Parent'); + let parentItem = parameters.dict.get("Parent"); if (!parentItem) { - (0, _util.warn)('Popup annotation has a missing or invalid parent annotation.'); + (0, _util.warn)("Popup annotation has a missing or invalid parent annotation."); return; } - const parentSubtype = parentItem.get('Subtype'); + const parentSubtype = parentItem.get("Subtype"); this.data.parentType = (0, _primitives.isName)(parentSubtype) ? parentSubtype.name : null; - const rawParent = parameters.dict.getRaw('Parent'); + const rawParent = parameters.dict.getRaw("Parent"); this.data.parentId = (0, _primitives.isRef)(rawParent) ? rawParent.toString() : null; - const rt = parentItem.get('RT'); + const rt = parentItem.get("RT"); if ((0, _primitives.isName)(rt, _util.AnnotationReplyType.GROUP)) { - parentItem = parentItem.get('IRT'); + parentItem = parentItem.get("IRT"); } - if (!parentItem.has('M')) { + if (!parentItem.has("M")) { this.data.modificationDate = null; } else { - this.setModificationDate(parentItem.get('M')); + this.setModificationDate(parentItem.get("M")); this.data.modificationDate = this.modificationDate; } - if (!parentItem.has('C')) { + if (!parentItem.has("C")) { this.data.color = null; } else { - this.setColor(parentItem.getArray('C')); + this.setColor(parentItem.getArray("C")); this.data.color = this.color; } if (!this.viewable) { - const parentFlags = parentItem.get('F'); + const parentFlags = parentItem.get("F"); if (this._isViewable(parentFlags)) { this.setFlags(parentFlags); } } - this.data.title = (0, _util.stringToPDFString)(parentItem.get('T') || ''); - this.data.contents = (0, _util.stringToPDFString)(parentItem.get('Contents') || ''); + this.data.title = (0, _util.stringToPDFString)(parentItem.get("T") || ""); + this.data.contents = (0, _util.stringToPDFString)(parentItem.get("Contents") || ""); } } @@ -18957,7 +18973,7 @@ class LineAnnotation extends MarkupAnnotation { constructor(parameters) { super(parameters); this.data.annotationType = _util.AnnotationType.LINE; - this.data.lineCoordinates = _util.Util.normalizeRect(parameters.dict.getArray('L')); + this.data.lineCoordinates = _util.Util.normalizeRect(parameters.dict.getArray("L")); } } @@ -18982,7 +18998,7 @@ class PolylineAnnotation extends MarkupAnnotation { constructor(parameters) { super(parameters); this.data.annotationType = _util.AnnotationType.POLYLINE; - const rawVertices = parameters.dict.getArray('Vertices'); + const rawVertices = parameters.dict.getArray("Vertices"); this.data.vertices = []; for (let i = 0, ii = rawVertices.length; i < ii; i += 2) { @@ -19016,7 +19032,7 @@ class InkAnnotation extends MarkupAnnotation { super(parameters); this.data.annotationType = _util.AnnotationType.INK; const xref = parameters.xref; - const originalInkLists = parameters.dict.getArray('InkList'); + const originalInkLists = parameters.dict.getArray("InkList"); this.data.inkLists = []; for (let i = 0, ii = originalInkLists.length; i < ii; ++i) { @@ -19096,7 +19112,7 @@ class StampAnnotation extends MarkupAnnotation { class FileAttachmentAnnotation extends MarkupAnnotation { constructor(parameters) { super(parameters); - const file = new _obj.FileSpec(parameters.dict.get('FS'), parameters.xref); + const file = new _obj.FileSpec(parameters.dict.get("FS"), parameters.xref); this.data.annotationType = _util.AnnotationType.FILEATTACHMENT; this.data.file = file.serializable; } @@ -19104,7 +19120,7 @@ class FileAttachmentAnnotation extends MarkupAnnotation { } /***/ }), -/* 25 */ +/* 24 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -19637,7 +19653,7 @@ var OperatorList = function OperatorListClosure() { this.fnArray = []; this.argsArray = []; - if (streamSink && intent !== 'oplist') { + if (streamSink && intent !== "oplist") { this.optimizer = new QueueOptimizer(this); } else { this.optimizer = new NullOptimizer(this); @@ -19761,7 +19777,7 @@ var OperatorList = function OperatorListClosure() { exports.OperatorList = OperatorList; /***/ }), -/* 26 */ +/* 25 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -19774,45 +19790,45 @@ exports.PartialEvaluator = void 0; var _util = __w_pdfjs_require__(2); -var _cmap = __w_pdfjs_require__(27); +var _cmap = __w_pdfjs_require__(26); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _fonts = __w_pdfjs_require__(28); +var _fonts = __w_pdfjs_require__(27); -var _encodings = __w_pdfjs_require__(31); +var _encodings = __w_pdfjs_require__(30); -var _unicode = __w_pdfjs_require__(34); +var _unicode = __w_pdfjs_require__(33); -var _standard_fonts = __w_pdfjs_require__(33); +var _standard_fonts = __w_pdfjs_require__(32); -var _pattern = __w_pdfjs_require__(37); +var _pattern = __w_pdfjs_require__(36); -var _parser = __w_pdfjs_require__(11); +var _parser = __w_pdfjs_require__(10); -var _bidi = __w_pdfjs_require__(38); +var _bidi = __w_pdfjs_require__(37); -var _colorspace = __w_pdfjs_require__(23); +var _colorspace = __w_pdfjs_require__(22); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); -var _glyphlist = __w_pdfjs_require__(32); +var _glyphlist = __w_pdfjs_require__(31); -var _core_utils = __w_pdfjs_require__(8); +var _core_utils = __w_pdfjs_require__(7); -var _metrics = __w_pdfjs_require__(39); +var _metrics = __w_pdfjs_require__(38); -var _function = __w_pdfjs_require__(40); +var _function = __w_pdfjs_require__(39); -var _jpeg_stream = __w_pdfjs_require__(18); +var _jpeg_stream = __w_pdfjs_require__(17); -var _murmurhash = __w_pdfjs_require__(42); +var _murmurhash = __w_pdfjs_require__(41); -var _image_utils = __w_pdfjs_require__(43); +var _image_utils = __w_pdfjs_require__(42); -var _operator_list = __w_pdfjs_require__(25); +var _operator_list = __w_pdfjs_require__(24); -var _image = __w_pdfjs_require__(44); +var _image = __w_pdfjs_require__(43); var PartialEvaluator = function PartialEvaluatorClosure() { const DefaultPartialEvaluatorOptions = { @@ -19849,7 +19865,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { return this.builtInCMapCache.get(name); } - const readableStream = this.handler.sendWithStream('FetchBuiltInCMap', { + const readableStream = this.handler.sendWithStream("FetchBuiltInCMap", { name }); const reader = readableStream.getReader(); @@ -19912,7 +19928,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } (0, _util.warn)(`Unsupported blend mode Array: ${value}`); - return 'source-over'; + return "source-over"; } if (!(0, _primitives.isName)(value)) { @@ -19920,58 +19936,58 @@ var PartialEvaluator = function PartialEvaluatorClosure() { return null; } - return 'source-over'; + return "source-over"; } switch (value.name) { - case 'Normal': - case 'Compatible': - return 'source-over'; + case "Normal": + case "Compatible": + return "source-over"; - case 'Multiply': - return 'multiply'; + case "Multiply": + return "multiply"; - case 'Screen': - return 'screen'; + case "Screen": + return "screen"; - case 'Overlay': - return 'overlay'; + case "Overlay": + return "overlay"; - case 'Darken': - return 'darken'; + case "Darken": + return "darken"; - case 'Lighten': - return 'lighten'; + case "Lighten": + return "lighten"; - case 'ColorDodge': - return 'color-dodge'; + case "ColorDodge": + return "color-dodge"; - case 'ColorBurn': - return 'color-burn'; + case "ColorBurn": + return "color-burn"; - case 'HardLight': - return 'hard-light'; + case "HardLight": + return "hard-light"; - case 'SoftLight': - return 'soft-light'; + case "SoftLight": + return "soft-light"; - case 'Difference': - return 'difference'; + case "Difference": + return "difference"; - case 'Exclusion': - return 'exclusion'; + case "Exclusion": + return "exclusion"; - case 'Hue': - return 'hue'; + case "Hue": + return "hue"; - case 'Saturation': - return 'saturation'; + case "Saturation": + return "saturation"; - case 'Color': - return 'color'; + case "Color": + return "color"; - case 'Luminosity': - return 'luminosity'; + case "Luminosity": + return "luminosity"; } if (parsingArray) { @@ -19979,7 +19995,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } (0, _util.warn)(`Unsupported blend mode: ${value.name}`); - return 'source-over'; + return "source-over"; } var deferred = Promise.resolve(); @@ -20008,7 +20024,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { while (nodes.length) { var node = nodes.shift(); - var graphicStates = node.get('ExtGState'); + var graphicStates = node.get("ExtGState"); if (graphicStates instanceof _primitives.Dict) { var graphicStatesKeys = graphicStates.getKeys(); @@ -20033,10 +20049,10 @@ var PartialEvaluator = function PartialEvaluatorClosure() { processed[graphicState.objId] = true; } - const bm = graphicState.get('BM'); + const bm = graphicState.get("BM"); if (bm instanceof _primitives.Name) { - if (bm.name !== 'Normal') { + if (bm.name !== "Normal") { return true; } @@ -20045,7 +20061,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { if (bm !== undefined && Array.isArray(bm)) { for (let j = 0, jj = bm.length; j < jj; j++) { - if (bm[j] instanceof _primitives.Name && bm[j].name !== 'Normal') { + if (bm[j] instanceof _primitives.Name && bm[j].name !== "Normal") { return true; } } @@ -20053,7 +20069,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } } - var xObjects = node.get('XObject'); + var xObjects = node.get("XObject"); if (!(xObjects instanceof _primitives.Dict)) { continue; @@ -20085,7 +20101,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { processed[xObject.dict.objId] = true; } - var xResources = xObject.dict.get('Resources'); + var xResources = xObject.dict.get("Resources"); if (xResources instanceof _primitives.Dict && (!xResources.objId || !processed[xResources.objId])) { nodes.push(xResources); @@ -20102,8 +20118,8 @@ var PartialEvaluator = function PartialEvaluatorClosure() { async buildFormXObject(resources, xobj, smask, operatorList, task, initialState) { var dict = xobj.dict; - var matrix = dict.getArray('Matrix'); - var bbox = dict.getArray('BBox'); + var matrix = dict.getArray("Matrix"); + var bbox = dict.getArray("BBox"); if (Array.isArray(bbox) && bbox.length === 4) { bbox = _util.Util.normalizeRect(bbox); @@ -20111,7 +20127,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { bbox = null; } - var group = dict.get('Group'); + var group = dict.get("Group"); if (group) { var groupOptions = { @@ -20121,16 +20137,16 @@ var PartialEvaluator = function PartialEvaluatorClosure() { isolated: false, knockout: false }; - var groupSubtype = group.get('S'); + var groupSubtype = group.get("S"); var colorSpace = null; - if ((0, _primitives.isName)(groupSubtype, 'Transparency')) { - groupOptions.isolated = group.get('I') || false; - groupOptions.knockout = group.get('K') || false; + if ((0, _primitives.isName)(groupSubtype, "Transparency")) { + groupOptions.isolated = group.get("I") || false; + groupOptions.knockout = group.get("K") || false; - if (group.has('CS')) { + if (group.has("CS")) { colorSpace = await this.parseColorSpace({ - cs: group.get('CS'), + cs: group.get("CS"), resources }); } @@ -20148,7 +20164,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { return this.getOperatorList({ stream: xobj, task, - resources: dict.get('Resources') || resources, + resources: dict.get("Resources") || resources, operatorList, initialState }).then(function () { @@ -20170,30 +20186,30 @@ var PartialEvaluator = function PartialEvaluatorClosure() { forceDisableNativeImageDecoder = false }) { var dict = image.dict; - var w = dict.get('Width', 'W'); - var h = dict.get('Height', 'H'); + var w = dict.get("Width", "W"); + var h = dict.get("Height", "H"); if (!(w && (0, _util.isNum)(w)) || !(h && (0, _util.isNum)(h))) { - (0, _util.warn)('Image dimensions are missing, or not numbers.'); + (0, _util.warn)("Image dimensions are missing, or not numbers."); return undefined; } var maxImageSize = this.options.maxImageSize; if (maxImageSize !== -1 && w * h > maxImageSize) { - (0, _util.warn)('Image exceeded maximum allowed size and was removed.'); + (0, _util.warn)("Image exceeded maximum allowed size and was removed."); return undefined; } - var imageMask = dict.get('ImageMask', 'IM') || false; + var imageMask = dict.get("ImageMask", "IM") || false; var imgData, args; if (imageMask) { - var width = dict.get('Width', 'W'); - var height = dict.get('Height', 'H'); + var width = dict.get("Width", "W"); + var height = dict.get("Height", "H"); var bitStrideLength = width + 7 >> 3; var imgArray = image.getBytes(bitStrideLength * height, true); - var decode = dict.getArray('Decode', 'D'); + var decode = dict.getArray("Decode", "D"); imgData = _image.PDFImage.createMask({ imgArray, width, @@ -20215,8 +20231,8 @@ var PartialEvaluator = function PartialEvaluatorClosure() { return undefined; } - var softMask = dict.get('SMask', 'SM') || false; - var mask = dict.get('Mask') || false; + var softMask = dict.get("SMask", "SM") || false; + var mask = dict.get("Mask") || false; var SMALL_IMAGE_DIMENSIONS = 200; if (isInline && !softMask && !mask && !(image instanceof _jpeg_stream.JpegStream) && w + h < SMALL_IMAGE_DIMENSIONS) { @@ -20236,12 +20252,12 @@ var PartialEvaluator = function PartialEvaluatorClosure() { let objId = `img_${this.idFactory.createObjId()}`; if (this.parsingType3Font) { - (0, _util.assert)(nativeImageDecoderSupport === _util.NativeImageDecoding.NONE, 'Type3 image resources should be completely decoded in the worker.'); + (0, _util.assert)(nativeImageDecoderSupport === _util.NativeImageDecoding.NONE, "Type3 image resources should be completely decoded in the worker."); objId = `${this.idFactory.getDocId()}_type3res_${objId}`; } if (nativeImageDecoderSupport !== _util.NativeImageDecoding.NONE && !softMask && !mask && image instanceof _jpeg_stream.JpegStream && _image_utils.NativeImageDecoder.isSupported(image, this.xref, resources, this.pdfFunctionFactory)) { - return this.handler.sendWithPromise('obj', [objId, this.pageIndex, 'JpegStream', image.getIR(this.options.forceDataSchema)]).then(function () { + return this.handler.sendWithPromise("obj", [objId, this.pageIndex, "JpegStream", image.getIR(this.options.forceDataSchema)]).then(function () { operatorList.addDependency(objId); args = [objId, w, h]; operatorList.addOp(_util.OPS.paintJpegXObject, args); @@ -20253,7 +20269,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { }; } }, reason => { - (0, _util.warn)('Native JPEG decoding failed -- trying to recover: ' + (reason && reason.message)); + (0, _util.warn)("Native JPEG decoding failed -- trying to recover: " + (reason && reason.message)); return this.buildPaintImageXObject({ resources, image, @@ -20293,19 +20309,19 @@ var PartialEvaluator = function PartialEvaluatorClosure() { var imgData = imageObj.createImageData(false); if (this.parsingType3Font) { - return this.handler.sendWithPromise('commonobj', [objId, 'FontType3Res', imgData], [imgData.data.buffer]); + return this.handler.sendWithPromise("commonobj", [objId, "FontType3Res", imgData], [imgData.data.buffer]); } - this.handler.send('obj', [objId, this.pageIndex, 'Image', imgData], [imgData.data.buffer]); + this.handler.send("obj", [objId, this.pageIndex, "Image", imgData], [imgData.data.buffer]); return undefined; }).catch(reason => { - (0, _util.warn)('Unable to decode image: ' + reason); + (0, _util.warn)("Unable to decode image: " + reason); if (this.parsingType3Font) { - return this.handler.sendWithPromise('commonobj', [objId, 'FontType3Res', null]); + return this.handler.sendWithPromise("commonobj", [objId, "FontType3Res", null]); } - this.handler.send('obj', [objId, this.pageIndex, 'Image', null]); + this.handler.send("obj", [objId, this.pageIndex, "Image", null]); return undefined; }); @@ -20326,12 +20342,12 @@ var PartialEvaluator = function PartialEvaluatorClosure() { }, handleSMask: function PartialEvaluator_handleSmask(smask, resources, operatorList, task, stateManager) { - var smaskContent = smask.get('G'); + var smaskContent = smask.get("G"); var smaskOptions = { - subtype: smask.get('S').name, - backdrop: smask.get('BC') + subtype: smask.get("S").name, + backdrop: smask.get("BC") }; - var transferObj = smask.get('TR'); + var transferObj = smask.get("TR"); if ((0, _function.isPDFFunction)(transferObj)) { let transferFn = this.pdfFunctionFactory.create(transferObj); @@ -20352,7 +20368,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { handleTilingType(fn, args, resources, pattern, patternDict, operatorList, task) { let tilingOpList = new _operator_list.OperatorList(); - let resourcesArray = [patternDict.get('Resources'), resources]; + let resourcesArray = [patternDict.get("Resources"), resources]; let patternResources = _primitives.Dict.merge(this.xref, resourcesArray); @@ -20375,7 +20391,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } if (this.options.ignoreErrors) { - this.handler.send('UnsupportedFeature', { + this.handler.send("UnsupportedFeature", { featureId: _util.UNSUPPORTED_FEATURES.unknown }); (0, _util.warn)(`handleTilingType - ignoring pattern: "${reason}".`); @@ -20402,10 +20418,10 @@ var PartialEvaluator = function PartialEvaluatorClosure() { return translated.loadType3Data(this, resources, operatorList, task).then(function () { return translated; }).catch(reason => { - this.handler.send('UnsupportedFeature', { + this.handler.send("UnsupportedFeature", { featureId: _util.UNSUPPORTED_FEATURES.font }); - return new TranslatedFont('g_font_error', new _fonts.ErrorFont('Type3 font load error: ' + reason), translated.font); + return new TranslatedFont("g_font_error", new _fonts.ErrorFont("Type3 font load error: " + reason), translated.font); }); }).then(translated => { state.font = translated.font; @@ -20421,7 +20437,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { if (font.data) { const isAddToPathSet = !!(state.textRenderingMode & _util.TextRenderingMode.ADD_TO_PATH_FLAG); - if (isAddToPathSet || state.fillColorSpace.name === 'Pattern' || font.disableFontFace || this.options.disableFontFace) { + if (isAddToPathSet || state.fillColorSpace.name === "Pattern" || font.disableFontFace || this.options.disableFontFace) { PartialEvaluator.buildFontPaths(font, glyphs, this.handler); } } @@ -20439,22 +20455,22 @@ var PartialEvaluator = function PartialEvaluatorClosure() { let value = gState.get(key); switch (key) { - case 'Type': + case "Type": break; - case 'LW': - case 'LC': - case 'LJ': - case 'ML': - case 'D': - case 'RI': - case 'FL': - case 'CA': - case 'ca': + case "LW": + case "LC": + case "LJ": + case "ML": + case "D": + case "RI": + case "FL": + case "CA": + case "ca": gStateObj.push([key, value]); break; - case 'Font': + case "Font": promise = promise.then(() => { return this.handleSetFont(resources, null, value[0], operatorList, task, stateManager.state).then(function (loadedName) { operatorList.addDependency(loadedName); @@ -20463,12 +20479,12 @@ var PartialEvaluator = function PartialEvaluatorClosure() { }); break; - case 'BM': + case "BM": gStateObj.push([key, normalizeBlendMode(value)]); break; - case 'SMask': - if ((0, _primitives.isName)(value, 'None')) { + case "SMask": + if ((0, _primitives.isName)(value, "None")) { gStateObj.push([key, false]); break; } @@ -20479,30 +20495,30 @@ var PartialEvaluator = function PartialEvaluatorClosure() { }); gStateObj.push([key, true]); } else { - (0, _util.warn)('Unsupported SMask type'); + (0, _util.warn)("Unsupported SMask type"); } break; - case 'OP': - case 'op': - case 'OPM': - case 'BG': - case 'BG2': - case 'UCR': - case 'UCR2': - case 'TR': - case 'TR2': - case 'HT': - case 'SM': - case 'SA': - case 'AIS': - case 'TK': - (0, _util.info)('graphic state operator ' + key); + case "OP": + case "op": + case "OPM": + case "BG": + case "BG2": + case "UCR": + case "UCR2": + case "TR": + case "TR2": + case "HT": + case "SM": + case "SA": + case "AIS": + case "TK": + (0, _util.info)("graphic state operator " + key); break; default: - (0, _util.info)('Unknown graphic state operator ' + key); + (0, _util.info)("Unknown graphic state operator " + key); break; } } @@ -20515,7 +20531,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { }, loadFont: function PartialEvaluator_loadFont(fontName, font, resources) { function errorFont() { - return Promise.resolve(new TranslatedFont('g_font_error', new _fonts.ErrorFont('Font ' + fontName + ' is not available'), font)); + return Promise.resolve(new TranslatedFont("g_font_error", new _fonts.ErrorFont("Font " + fontName + " is not available"), font)); } var fontRef, @@ -20528,7 +20544,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { fontRef = font; } else { - var fontRes = resources.get('Font'); + var fontRes = resources.get("Font"); if (fontRes) { fontRef = fontRes.getRaw(fontName); @@ -20543,15 +20559,15 @@ var PartialEvaluator = function PartialEvaluatorClosure() { return errorFont(); } - this.handler.send('UnsupportedFeature', { + this.handler.send("UnsupportedFeature", { featureId: _util.UNSUPPORTED_FEATURES.font }); (0, _util.warn)(`${partialMsg} -- attempting to fallback to a default font.`); fontRef = new _primitives.Dict(); - fontRef.set('BaseFont', _primitives.Name.get('PDFJS-FallbackFont')); - fontRef.set('Type', _primitives.Name.get('FallbackType')); - fontRef.set('Subtype', _primitives.Name.get('FallbackType')); - fontRef.set('Encoding', _primitives.Name.get('WinAnsiEncoding')); + fontRef.set("BaseFont", _primitives.Name.get("PDFJS-FallbackFont")); + fontRef.set("Type", _primitives.Name.get("FallbackType")); + fontRef.set("Subtype", _primitives.Name.get("FallbackType")); + fontRef.set("Encoding", _primitives.Name.get("WinAnsiEncoding")); } if (this.fontCache.has(fontRef)) { @@ -20637,13 +20653,13 @@ var PartialEvaluator = function PartialEvaluatorClosure() { fontCapability.resolve(new TranslatedFont(font.loadedName, translatedFont, font)); }).catch(reason => { - this.handler.send('UnsupportedFeature', { + this.handler.send("UnsupportedFeature", { featureId: _util.UNSUPPORTED_FEATURES.font }); try { - var fontFile3 = descriptor && descriptor.get('FontFile3'); - var subtype = fontFile3 && fontFile3.get('Subtype'); + var fontFile3 = descriptor && descriptor.get("FontFile3"); + var subtype = fontFile3 && fontFile3.get("Subtype"); var fontType = (0, _fonts.getFontType)(preEvaluatedFont.type, subtype && subtype.name); var xrefFontStats = xref.stats.fontTypes; xrefFontStats[fontType] = true; @@ -20691,7 +20707,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } if (this.options.ignoreErrors) { - this.handler.send('UnsupportedFeature', { + this.handler.send("UnsupportedFeature", { featureId: _util.UNSUPPORTED_FEATURES.unknown }); (0, _util.warn)(`parseColorSpace - ignoring ColorSpace: "${reason}".`); @@ -20708,14 +20724,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() { if ((0, _primitives.isName)(patternName) && (pattern = patterns.get(patternName.name))) { var dict = (0, _primitives.isStream)(pattern) ? pattern.dict : pattern; - var typeNum = dict.get('PatternType'); + var typeNum = dict.get("PatternType"); if (typeNum === TILING_PATTERN) { var color = cs.base ? cs.base.getRgb(args, 0) : null; return this.handleTilingType(fn, color, resources, pattern, dict, operatorList, task); } else if (typeNum === SHADING_PATTERN) { - var shading = dict.get('Shading'); - var matrix = dict.getArray('Matrix'); + var shading = dict.get("Shading"); + var matrix = dict.getArray("Matrix"); pattern = _pattern.Pattern.parseShading(shading, matrix, this.xref, resources, this.handler, this.pdfFunctionFactory); operatorList.addOp(fn, pattern.getIR()); return undefined; @@ -20746,9 +20762,9 @@ var PartialEvaluator = function PartialEvaluatorClosure() { let parsingText = false; var imageCache = Object.create(null); - var xobjs = resources.get('XObject') || _primitives.Dict.empty; + var xobjs = resources.get("XObject") || _primitives.Dict.empty; - var patterns = resources.get('Pattern') || _primitives.Dict.empty; + var patterns = resources.get("Pattern") || _primitives.Dict.empty; var stateManager = new StateManager(initialState); var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager); @@ -20801,7 +20817,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { next(new Promise(function (resolveXObject, rejectXObject) { if (!name) { - throw new _util.FormatError('XObject must be referred to by name.'); + throw new _util.FormatError("XObject must be referred to by name."); } let xobj = xobjs.get(name); @@ -20813,23 +20829,23 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } if (!(0, _primitives.isStream)(xobj)) { - throw new _util.FormatError('XObject should be a stream'); + throw new _util.FormatError("XObject should be a stream"); } - let type = xobj.dict.get('Subtype'); + let type = xobj.dict.get("Subtype"); if (!(0, _primitives.isName)(type)) { - throw new _util.FormatError('XObject should have a Name subtype'); + throw new _util.FormatError("XObject should have a Name subtype"); } - if (type.name === 'Form') { + if (type.name === "Form") { stateManager.save(); self.buildFormXObject(resources, xobj, null, operatorList, task, stateManager.state.clone()).then(function () { stateManager.restore(); resolveXObject(); }, rejectXObject); return; - } else if (type.name === 'Image') { + } else if (type.name === "Image") { self.buildPaintImageXObject({ resources, image: xobj, @@ -20838,8 +20854,8 @@ var PartialEvaluator = function PartialEvaluatorClosure() { imageCache }).then(resolveXObject, rejectXObject); return; - } else if (type.name === 'PS') { - (0, _util.info)('Ignored XObject subtype PS'); + } else if (type.name === "PS") { + (0, _util.info)("Ignored XObject subtype PS"); } else { throw new _util.FormatError(`Unhandled XObject subtype ${type.name}`); } @@ -20851,7 +20867,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } if (self.options.ignoreErrors) { - self.handler.send('UnsupportedFeature', { + self.handler.send("UnsupportedFeature", { featureId: _util.UNSUPPORTED_FEATURES.unknown }); (0, _util.warn)(`getOperatorList - ignoring XObject: "${reason}".`); @@ -21014,7 +21030,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { case _util.OPS.setFillColorN: cs = stateManager.state.fillColorSpace; - if (cs.name === 'Pattern') { + if (cs.name === "Pattern") { next(self.handleColorN(operatorList, _util.OPS.setFillColorN, args, cs, patterns, resources, task)); return; } @@ -21026,7 +21042,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { case _util.OPS.setStrokeColorN: cs = stateManager.state.strokeColorSpace; - if (cs.name === 'Pattern') { + if (cs.name === "Pattern") { next(self.handleColorN(operatorList, _util.OPS.setStrokeColorN, args, cs, patterns, resources, task)); return; } @@ -21036,16 +21052,16 @@ var PartialEvaluator = function PartialEvaluatorClosure() { break; case _util.OPS.shadingFill: - var shadingRes = resources.get('Shading'); + var shadingRes = resources.get("Shading"); if (!shadingRes) { - throw new _util.FormatError('No shading resource found'); + throw new _util.FormatError("No shading resource found"); } var shading = shadingRes.get(args[0].name); if (!shading) { - throw new _util.FormatError('No shading object found'); + throw new _util.FormatError("No shading object found"); } var shadingFill = _pattern.Pattern.parseShading(shading, null, xref, resources, self.handler, self.pdfFunctionFactory); @@ -21057,7 +21073,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { case _util.OPS.setGState: var dictName = args[0]; - var extGState = resources.get('ExtGState'); + var extGState = resources.get("ExtGState"); if (!(0, _primitives.isDict)(extGState) || !extGState.has(dictName.name)) { break; @@ -21095,7 +21111,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } if (i < ii) { - (0, _util.warn)('getOperatorList - ignoring operator: ' + fn); + (0, _util.warn)("getOperatorList - ignoring operator: " + fn); continue; } } @@ -21118,7 +21134,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } if (this.options.ignoreErrors) { - this.handler.send('UnsupportedFeature', { + this.handler.send("UnsupportedFeature", { featureId: _util.UNSUPPORTED_FEATURES.unknown }); (0, _util.warn)(`getOperatorList - ignoring errors during "${task.name}" ` + `task: "${reason}".`); @@ -21250,15 +21266,15 @@ var PartialEvaluator = function PartialEvaluatorClosure() { ii = str.length, code; - while (i < ii && (code = str.charCodeAt(i)) >= 0x20 && code <= 0x7F) { + while (i < ii && (code = str.charCodeAt(i)) >= 0x20 && code <= 0x7f) { i++; } - return i < ii ? str.replace(WhitespaceRegexp, ' ') : str; + return i < ii ? str.replace(WhitespaceRegexp, " ") : str; } function runBidiTransform(textChunk) { - var str = textChunk.str.join(''); + var str = textChunk.str.join(""); var bidiResult = (0, _bidi.bidi)(str, -1, textChunk.vertical); return { str: normalizeWhitespace ? replaceWhitespace(bidiResult.str) : bidiResult.str, @@ -21347,14 +21363,14 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } if (width < textContentItem.fakeMultiSpaceMin) { - strBuf.push(' '); + strBuf.push(" "); return; } var fakeSpaces = Math.round(width / textContentItem.spaceWidth); while (fakeSpaces-- > 0) { - strBuf.push(' '); + strBuf.push(" "); } } @@ -21512,7 +21528,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { var offset; for (var j = 0, jj = items.length; j < jj; j++) { - if (typeof items[j] === 'string') { + if (typeof items[j] === "string") { buildTextContentItem(items[j]); } else if ((0, _util.isNum)(items[j])) { ensureTextContentItem(); @@ -21570,7 +21586,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { flushTextContentItem(); if (!xobjs) { - xobjs = resources.get('XObject') || _primitives.Dict.empty; + xobjs = resources.get("XObject") || _primitives.Dict.empty; } var name = args[0].name; @@ -21581,7 +21597,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { next(new Promise(function (resolveXObject, rejectXObject) { if (!name) { - throw new _util.FormatError('XObject must be referred to by name.'); + throw new _util.FormatError("XObject must be referred to by name."); } let xobj = xobjs.get(name); @@ -21592,16 +21608,16 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } if (!(0, _primitives.isStream)(xobj)) { - throw new _util.FormatError('XObject should be a stream'); + throw new _util.FormatError("XObject should be a stream"); } - let type = xobj.dict.get('Subtype'); + let type = xobj.dict.get("Subtype"); if (!(0, _primitives.isName)(type)) { - throw new _util.FormatError('XObject should have a Name subtype'); + throw new _util.FormatError("XObject should have a Name subtype"); } - if (type.name !== 'Form') { + if (type.name !== "Form") { skipEmptyXObjs[name] = true; resolveXObject(); return; @@ -21609,7 +21625,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { let currentState = stateManager.state.clone(); let xObjStateManager = new StateManager(currentState); - let matrix = xobj.dict.getArray('Matrix'); + let matrix = xobj.dict.getArray("Matrix"); if (Array.isArray(matrix) && matrix.length === 6) { xObjStateManager.transform(matrix); @@ -21636,7 +21652,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { self.getTextContent({ stream: xobj, task, - resources: xobj.dict.get('Resources') || resources, + resources: xobj.dict.get("Resources") || resources, stateManager: xObjStateManager, normalizeWhitespace, combineTextItems, @@ -21666,7 +21682,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { case _util.OPS.setGState: flushTextContentItem(); var dictName = args[0]; - var extGState = resources.get('ExtGState'); + var extGState = resources.get("ExtGState"); if (!(0, _primitives.isDict)(extGState) || !(0, _primitives.isName)(dictName)) { break; @@ -21678,7 +21694,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { break; } - var gStateFont = gState.get('Font'); + var gStateFont = gState.get("Font"); if (gStateFont) { textState.fontName = null; @@ -21723,21 +21739,21 @@ var PartialEvaluator = function PartialEvaluatorClosure() { extractDataStructures: function PartialEvaluator_extractDataStructures(dict, baseDict, properties) { let xref = this.xref, cidToGidBytes; - var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode'); + var toUnicode = dict.get("ToUnicode") || baseDict.get("ToUnicode"); var toUnicodePromise = toUnicode ? this.readToUnicode(toUnicode) : Promise.resolve(undefined); if (properties.composite) { - var cidSystemInfo = dict.get('CIDSystemInfo'); + var cidSystemInfo = dict.get("CIDSystemInfo"); if ((0, _primitives.isDict)(cidSystemInfo)) { properties.cidSystemInfo = { - registry: (0, _util.stringToPDFString)(cidSystemInfo.get('Registry')), - ordering: (0, _util.stringToPDFString)(cidSystemInfo.get('Ordering')), - supplement: cidSystemInfo.get('Supplement') + registry: (0, _util.stringToPDFString)(cidSystemInfo.get("Registry")), + ordering: (0, _util.stringToPDFString)(cidSystemInfo.get("Ordering")), + supplement: cidSystemInfo.get("Supplement") }; } - var cidToGidMap = dict.get('CIDToGIDMap'); + var cidToGidMap = dict.get("CIDToGIDMap"); if ((0, _primitives.isStream)(cidToGidMap)) { cidToGidBytes = cidToGidMap.getBytes(); @@ -21748,15 +21764,15 @@ var PartialEvaluator = function PartialEvaluatorClosure() { var baseEncodingName = null; var encoding; - if (dict.has('Encoding')) { - encoding = dict.get('Encoding'); + if (dict.has("Encoding")) { + encoding = dict.get("Encoding"); if ((0, _primitives.isDict)(encoding)) { - baseEncodingName = encoding.get('BaseEncoding'); + baseEncodingName = encoding.get("BaseEncoding"); baseEncodingName = (0, _primitives.isName)(baseEncodingName) ? baseEncodingName.name : null; - if (encoding.has('Differences')) { - var diffEncoding = encoding.get('Differences'); + if (encoding.has("Differences")) { + var diffEncoding = encoding.get("Differences"); var index = 0; for (var j = 0, jj = diffEncoding.length; j < jj; j++) { @@ -21774,10 +21790,10 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } else if ((0, _primitives.isName)(encoding)) { baseEncodingName = encoding.name; } else { - throw new _util.FormatError('Encoding is not a Name nor a Dict'); + throw new _util.FormatError("Encoding is not a Name nor a Dict"); } - if (baseEncodingName !== 'MacRomanEncoding' && baseEncodingName !== 'MacExpertEncoding' && baseEncodingName !== 'WinAnsiEncoding') { + if (baseEncodingName !== "MacRomanEncoding" && baseEncodingName !== "MacExpertEncoding" && baseEncodingName !== "WinAnsiEncoding") { baseEncodingName = null; } } @@ -21789,7 +21805,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { var isNonsymbolicFont = !!(properties.flags & _fonts.FontFlags.Nonsymbolic); encoding = _encodings.StandardEncoding; - if (properties.type === 'TrueType' && !isNonsymbolicFont) { + if (properties.type === "TrueType" && !isNonsymbolicFont) { encoding = _encodings.WinAnsiEncoding; } @@ -21827,7 +21843,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { }, _buildSimpleFontToUnicode(properties, forceGlyphs = false) { - (0, _util.assert)(!properties.composite, 'Must be a simple font.'); + (0, _util.assert)(!properties.composite, "Must be a simple font."); let toUnicode = [], charcode, glyphName; @@ -21838,7 +21854,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { for (charcode in differences) { glyphName = differences[charcode]; - if (glyphName === '.notdef') { + if (glyphName === ".notdef") { continue; } @@ -21850,28 +21866,28 @@ var PartialEvaluator = function PartialEvaluatorClosure() { for (charcode in encoding) { glyphName = encoding[charcode]; - if (glyphName === '') { + if (glyphName === "") { continue; } else if (glyphsUnicodeMap[glyphName] === undefined) { let code = 0; switch (glyphName[0]) { - case 'G': + case "G": if (glyphName.length === 3) { code = parseInt(glyphName.substring(1), 16); } break; - case 'g': + case "g": if (glyphName.length === 5) { code = parseInt(glyphName.substring(1), 16); } break; - case 'C': - case 'c': + case "C": + case "c": if (glyphName.length >= 3 && glyphName.length <= 4) { const codeStr = glyphName.substring(1); @@ -21935,11 +21951,11 @@ var PartialEvaluator = function PartialEvaluatorClosure() { return Promise.resolve(this._buildSimpleFontToUnicode(properties)); } - if (properties.composite && (properties.cMap.builtInCMap && !(properties.cMap instanceof _cmap.IdentityCMap) || properties.cidSystemInfo.registry === 'Adobe' && (properties.cidSystemInfo.ordering === 'GB1' || properties.cidSystemInfo.ordering === 'CNS1' || properties.cidSystemInfo.ordering === 'Japan1' || properties.cidSystemInfo.ordering === 'Korea1'))) { + if (properties.composite && (properties.cMap.builtInCMap && !(properties.cMap instanceof _cmap.IdentityCMap) || properties.cidSystemInfo.registry === "Adobe" && (properties.cidSystemInfo.ordering === "GB1" || properties.cidSystemInfo.ordering === "CNS1" || properties.cidSystemInfo.ordering === "Japan1" || properties.cidSystemInfo.ordering === "Korea1"))) { let registry = properties.cidSystemInfo.registry; let ordering = properties.cidSystemInfo.ordering; - let ucs2CMapName = _primitives.Name.get(registry + '-' + ordering + '-UCS2'); + let ucs2CMapName = _primitives.Name.get(registry + "-" + ordering + "-UCS2"); return _cmap.CMapFactory.create({ encoding: ucs2CMapName, @@ -21950,7 +21966,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { let toUnicode = []; cMap.forEach(function (charcode, cid) { if (cid > 0xffff) { - throw new _util.FormatError('Max size of CID is 65,535'); + throw new _util.FormatError("Max size of CID is 65,535"); } let ucs2 = ucs2CMap.lookup(cid); @@ -21976,7 +21992,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { useCMap: null }).then(function (cmap) { if (cmap instanceof _cmap.IdentityCMap) { - return new _fonts.IdentityToUnicodeMap(0, 0xFFFF); + return new _fonts.IdentityToUnicodeMap(0, 0xffff); } return new _fonts.ToUnicodeMap(cmap.getMap()); @@ -21988,7 +22004,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { useCMap: null }).then(function (cmap) { if (cmap instanceof _cmap.IdentityCMap) { - return new _fonts.IdentityToUnicodeMap(0, 0xFFFF); + return new _fonts.IdentityToUnicodeMap(0, 0xffff); } var map = new Array(cmap.length); @@ -21998,7 +22014,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { for (var k = 0; k < token.length; k += 2) { var w1 = token.charCodeAt(k) << 8 | token.charCodeAt(k + 1); - if ((w1 & 0xF800) !== 0xD800) { + if ((w1 & 0xf800) !== 0xd800) { str.push(w1); continue; } @@ -22043,8 +22059,8 @@ var PartialEvaluator = function PartialEvaluatorClosure() { var i, ii, j, jj, start, code, widths; if (properties.composite) { - defaultWidth = dict.has('DW') ? dict.get('DW') : 1000; - widths = dict.get('W'); + defaultWidth = dict.has("DW") ? dict.get("DW") : 1000; + widths = dict.get("W"); if (widths) { for (i = 0, ii = widths.length; i < ii; i++) { @@ -22066,9 +22082,9 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } if (properties.vertical) { - var vmetrics = dict.getArray('DW2') || [880, -1000]; + var vmetrics = dict.getArray("DW2") || [880, -1000]; defaultVMetrics = [vmetrics[1], defaultWidth * 0.5, vmetrics[0]]; - vmetrics = dict.get('W2'); + vmetrics = dict.get("W2"); if (vmetrics) { for (i = 0, ii = vmetrics.length; i < ii; i++) { @@ -22091,7 +22107,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } } else { var firstChar = properties.firstChar; - widths = dict.get('Widths'); + widths = dict.get("Widths"); if (widths) { j = firstChar; @@ -22100,9 +22116,9 @@ var PartialEvaluator = function PartialEvaluatorClosure() { glyphsWidths[j++] = xref.fetchIfRef(widths[i]); } - defaultWidth = parseFloat(descriptor.get('MissingWidth')) || 0; + defaultWidth = parseFloat(descriptor.get("MissingWidth")) || 0; } else { - var baseFontName = dict.get('BaseFont'); + var baseFontName = dict.get("BaseFont"); if ((0, _primitives.isName)(baseFontName)) { var metrics = this.getBaseFontMetrics(baseFontName.name); @@ -22143,7 +22159,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { properties.vmetrics = glyphsVMetrics; }, isSerifFont: function PartialEvaluator_isSerifFont(baseFontName) { - var fontNameWoStyle = baseFontName.split('-')[0]; + var fontNameWoStyle = baseFontName.split("-")[0]; return fontNameWoStyle in (0, _standard_fonts.getSerifFonts)() || fontNameWoStyle.search(/serif/gi) !== -1; }, getBaseFontMetrics: function PartialEvaluator_getBaseFontMetrics(name) { @@ -22156,9 +22172,9 @@ var PartialEvaluator = function PartialEvaluatorClosure() { if (!(lookupName in Metrics)) { if (this.isSerifFont(name)) { - lookupName = 'Times-Roman'; + lookupName = "Times-Roman"; } else { - lookupName = 'Helvetica'; + lookupName = "Helvetica"; } } @@ -22198,37 +22214,37 @@ var PartialEvaluator = function PartialEvaluatorClosure() { }, preEvaluateFont: function PartialEvaluator_preEvaluateFont(dict) { var baseDict = dict; - var type = dict.get('Subtype'); + var type = dict.get("Subtype"); if (!(0, _primitives.isName)(type)) { - throw new _util.FormatError('invalid font Subtype'); + throw new _util.FormatError("invalid font Subtype"); } var composite = false; var uint8array; - if (type.name === 'Type0') { - var df = dict.get('DescendantFonts'); + if (type.name === "Type0") { + var df = dict.get("DescendantFonts"); if (!df) { - throw new _util.FormatError('Descendant fonts are not specified'); + throw new _util.FormatError("Descendant fonts are not specified"); } dict = Array.isArray(df) ? this.xref.fetchIfRef(df[0]) : df; - type = dict.get('Subtype'); + type = dict.get("Subtype"); if (!(0, _primitives.isName)(type)) { - throw new _util.FormatError('invalid font Subtype'); + throw new _util.FormatError("invalid font Subtype"); } composite = true; } - var descriptor = dict.get('FontDescriptor'); + var descriptor = dict.get("FontDescriptor"); if (descriptor) { var hash = new _murmurhash.MurmurHash3_64(); - var encoding = baseDict.getRaw('Encoding'); + var encoding = baseDict.getRaw("Encoding"); if ((0, _primitives.isName)(encoding)) { hash.update(encoding.name); @@ -22263,10 +22279,10 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } } - const firstChar = dict.get('FirstChar') || 0; - const lastChar = dict.get('LastChar') || (composite ? 0xFFFF : 0xFF); + const firstChar = dict.get("FirstChar") || 0; + const lastChar = dict.get("LastChar") || (composite ? 0xffff : 0xff); hash.update(`${firstChar}-${lastChar}`); - var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode'); + var toUnicode = dict.get("ToUnicode") || baseDict.get("ToUnicode"); if ((0, _primitives.isStream)(toUnicode)) { var stream = toUnicode.str || toUnicode; @@ -22276,7 +22292,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { hash.update(toUnicode.name); } - var widths = dict.get('Widths') || baseDict.get('Widths'); + var widths = dict.get("Widths") || baseDict.get("Widths"); if (widths) { uint8array = new Uint8Array(new Uint32Array(widths).buffer); @@ -22290,7 +22306,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { baseDict, composite, type: type.name, - hash: hash ? hash.hexdigest() : '' + hash: hash ? hash.hexdigest() : "" }; }, translateFont: function PartialEvaluator_translateFont(preEvaluatedFont) { @@ -22299,24 +22315,24 @@ var PartialEvaluator = function PartialEvaluatorClosure() { var composite = preEvaluatedFont.composite; var descriptor = preEvaluatedFont.descriptor; var type = preEvaluatedFont.type; - var maxCharIndex = composite ? 0xFFFF : 0xFF; + var maxCharIndex = composite ? 0xffff : 0xff; var properties; if (!descriptor) { - if (type === 'Type3') { + if (type === "Type3") { descriptor = new _primitives.Dict(null); - descriptor.set('FontName', _primitives.Name.get(type)); - descriptor.set('FontBBox', dict.getArray('FontBBox')); + descriptor.set("FontName", _primitives.Name.get(type)); + descriptor.set("FontBBox", dict.getArray("FontBBox")); } else { - var baseFontName = dict.get('BaseFont'); + var baseFontName = dict.get("BaseFont"); if (!(0, _primitives.isName)(baseFontName)) { - throw new _util.FormatError('Base font is not specified'); + throw new _util.FormatError("Base font is not specified"); } - baseFontName = baseFontName.name.replace(/[,_]/g, '-'); + baseFontName = baseFontName.name.replace(/[,_]/g, "-"); var metrics = this.getBaseFontMetrics(baseFontName); - var fontNameWoStyle = baseFontName.split('-')[0]; + var fontNameWoStyle = baseFontName.split("-")[0]; var flags = (this.isSerifFont(fontNameWoStyle) ? _fonts.FontFlags.Serif : 0) | (metrics.monospace ? _fonts.FontFlags.FixedPitch : 0) | ((0, _standard_fonts.getSymbolsFonts)()[fontNameWoStyle] ? _fonts.FontFlags.Symbolic : _fonts.FontFlags.Nonsymbolic); properties = { type, @@ -22334,10 +22350,10 @@ var PartialEvaluator = function PartialEvaluatorClosure() { } } - var firstChar = dict.get('FirstChar') || 0; - var lastChar = dict.get('LastChar') || maxCharIndex; - var fontName = descriptor.get('FontName'); - var baseFont = dict.get('BaseFont'); + var firstChar = dict.get("FirstChar") || 0; + var lastChar = dict.get("LastChar") || maxCharIndex; + var fontName = descriptor.get("FontName"); + var baseFont = dict.get("BaseFont"); if ((0, _util.isString)(fontName)) { fontName = _primitives.Name.get(fontName); @@ -22347,7 +22363,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { baseFont = _primitives.Name.get(baseFont); } - if (type !== 'Type3') { + if (type !== "Type3") { var fontNameStr = fontName && fontName.name; var baseFontStr = baseFont && baseFont.name; @@ -22363,22 +22379,22 @@ var PartialEvaluator = function PartialEvaluatorClosure() { fontName = fontName || baseFont; if (!(0, _primitives.isName)(fontName)) { - throw new _util.FormatError('invalid font name'); + throw new _util.FormatError("invalid font name"); } - var fontFile = descriptor.get('FontFile', 'FontFile2', 'FontFile3'); + var fontFile = descriptor.get("FontFile", "FontFile2", "FontFile3"); if (fontFile) { if (fontFile.dict) { - var subtype = fontFile.dict.get('Subtype'); + var subtype = fontFile.dict.get("Subtype"); if (subtype) { subtype = subtype.name; } - var length1 = fontFile.dict.get('Length1'); - var length2 = fontFile.dict.get('Length2'); - var length3 = fontFile.dict.get('Length3'); + var length1 = fontFile.dict.get("Length1"); + var length2 = fontFile.dict.get("Length2"); + var length3 = fontFile.dict.get("Length3"); } } @@ -22394,22 +22410,22 @@ var PartialEvaluator = function PartialEvaluatorClosure() { composite, wideChars: composite, fixedPitch: false, - fontMatrix: dict.getArray('FontMatrix') || _util.FONT_IDENTITY_MATRIX, + fontMatrix: dict.getArray("FontMatrix") || _util.FONT_IDENTITY_MATRIX, firstChar: firstChar || 0, lastChar: lastChar || maxCharIndex, - bbox: descriptor.getArray('FontBBox'), - ascent: descriptor.get('Ascent'), - descent: descriptor.get('Descent'), - xHeight: descriptor.get('XHeight'), - capHeight: descriptor.get('CapHeight'), - flags: descriptor.get('Flags'), - italicAngle: descriptor.get('ItalicAngle'), + bbox: descriptor.getArray("FontBBox"), + ascent: descriptor.get("Ascent"), + descent: descriptor.get("Descent"), + xHeight: descriptor.get("XHeight"), + capHeight: descriptor.get("CapHeight"), + flags: descriptor.get("Flags"), + italicAngle: descriptor.get("ItalicAngle"), isType3Font: false }; var cMapPromise; if (composite) { - var cidEncoding = baseDict.get('Encoding'); + var cidEncoding = baseDict.get("Encoding"); if ((0, _primitives.isName)(cidEncoding)) { properties.cidEncoding = cidEncoding.name; @@ -22432,7 +22448,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { }).then(properties => { this.extractWidths(dict, descriptor, properties); - if (type === 'Type3') { + if (type === "Type3") { properties.isType3Font = true; } @@ -22447,7 +22463,7 @@ var PartialEvaluator = function PartialEvaluatorClosure() { return; } - handler.send('commonobj', [`${font.loadedName}_path_${fontChar}`, 'FontPath', font.renderer.getPathJs(fontChar)]); + handler.send("commonobj", [`${font.loadedName}_path_${fontChar}`, "FontPath", font.renderer.getPathJs(fontChar)]); } for (const glyph of glyphs) { @@ -22481,7 +22497,7 @@ var TranslatedFont = function TranslatedFontClosure() { } this.sent = true; - handler.send('commonobj', [this.loadedName, 'Font', this.font.exportData()]); + handler.send("commonobj", [this.loadedName, "Font", this.font.exportData()]); }, fallback(handler) { @@ -22496,7 +22512,7 @@ var TranslatedFont = function TranslatedFontClosure() { loadType3Data(evaluator, resources, parentOperatorList, task) { if (!this.font.isType3Font) { - throw new Error('Must be a Type3 font.'); + throw new Error("Must be a Type3 font."); } if (this.type3Loaded) { @@ -22510,8 +22526,8 @@ var TranslatedFont = function TranslatedFontClosure() { type3Evaluator.parsingType3Font = true; var translatedFont = this.font; var loadCharProcsPromise = Promise.resolve(); - var charProcs = this.dict.get('CharProcs'); - var fontResources = this.dict.get('Resources') || resources; + var charProcs = this.dict.get("CharProcs"); + var fontResources = this.dict.get("Resources") || resources; var charProcKeys = charProcs.getKeys(); var charProcOperatorList = Object.create(null); @@ -22696,232 +22712,232 @@ var EvalState = function EvalStateClosure() { var EvaluatorPreprocessor = function EvaluatorPreprocessorClosure() { var getOPMap = (0, _core_utils.getLookupTableFactory)(function (t) { - t['w'] = { + t["w"] = { id: _util.OPS.setLineWidth, numArgs: 1, variableArgs: false }; - t['J'] = { + t["J"] = { id: _util.OPS.setLineCap, numArgs: 1, variableArgs: false }; - t['j'] = { + t["j"] = { id: _util.OPS.setLineJoin, numArgs: 1, variableArgs: false }; - t['M'] = { + t["M"] = { id: _util.OPS.setMiterLimit, numArgs: 1, variableArgs: false }; - t['d'] = { + t["d"] = { id: _util.OPS.setDash, numArgs: 2, variableArgs: false }; - t['ri'] = { + t["ri"] = { id: _util.OPS.setRenderingIntent, numArgs: 1, variableArgs: false }; - t['i'] = { + t["i"] = { id: _util.OPS.setFlatness, numArgs: 1, variableArgs: false }; - t['gs'] = { + t["gs"] = { id: _util.OPS.setGState, numArgs: 1, variableArgs: false }; - t['q'] = { + t["q"] = { id: _util.OPS.save, numArgs: 0, variableArgs: false }; - t['Q'] = { + t["Q"] = { id: _util.OPS.restore, numArgs: 0, variableArgs: false }; - t['cm'] = { + t["cm"] = { id: _util.OPS.transform, numArgs: 6, variableArgs: false }; - t['m'] = { + t["m"] = { id: _util.OPS.moveTo, numArgs: 2, variableArgs: false }; - t['l'] = { + t["l"] = { id: _util.OPS.lineTo, numArgs: 2, variableArgs: false }; - t['c'] = { + t["c"] = { id: _util.OPS.curveTo, numArgs: 6, variableArgs: false }; - t['v'] = { + t["v"] = { id: _util.OPS.curveTo2, numArgs: 4, variableArgs: false }; - t['y'] = { + t["y"] = { id: _util.OPS.curveTo3, numArgs: 4, variableArgs: false }; - t['h'] = { + t["h"] = { id: _util.OPS.closePath, numArgs: 0, variableArgs: false }; - t['re'] = { + t["re"] = { id: _util.OPS.rectangle, numArgs: 4, variableArgs: false }; - t['S'] = { + t["S"] = { id: _util.OPS.stroke, numArgs: 0, variableArgs: false }; - t['s'] = { + t["s"] = { id: _util.OPS.closeStroke, numArgs: 0, variableArgs: false }; - t['f'] = { + t["f"] = { id: _util.OPS.fill, numArgs: 0, variableArgs: false }; - t['F'] = { + t["F"] = { id: _util.OPS.fill, numArgs: 0, variableArgs: false }; - t['f*'] = { + t["f*"] = { id: _util.OPS.eoFill, numArgs: 0, variableArgs: false }; - t['B'] = { + t["B"] = { id: _util.OPS.fillStroke, numArgs: 0, variableArgs: false }; - t['B*'] = { + t["B*"] = { id: _util.OPS.eoFillStroke, numArgs: 0, variableArgs: false }; - t['b'] = { + t["b"] = { id: _util.OPS.closeFillStroke, numArgs: 0, variableArgs: false }; - t['b*'] = { + t["b*"] = { id: _util.OPS.closeEOFillStroke, numArgs: 0, variableArgs: false }; - t['n'] = { + t["n"] = { id: _util.OPS.endPath, numArgs: 0, variableArgs: false }; - t['W'] = { + t["W"] = { id: _util.OPS.clip, numArgs: 0, variableArgs: false }; - t['W*'] = { + t["W*"] = { id: _util.OPS.eoClip, numArgs: 0, variableArgs: false }; - t['BT'] = { + t["BT"] = { id: _util.OPS.beginText, numArgs: 0, variableArgs: false }; - t['ET'] = { + t["ET"] = { id: _util.OPS.endText, numArgs: 0, variableArgs: false }; - t['Tc'] = { + t["Tc"] = { id: _util.OPS.setCharSpacing, numArgs: 1, variableArgs: false }; - t['Tw'] = { + t["Tw"] = { id: _util.OPS.setWordSpacing, numArgs: 1, variableArgs: false }; - t['Tz'] = { + t["Tz"] = { id: _util.OPS.setHScale, numArgs: 1, variableArgs: false }; - t['TL'] = { + t["TL"] = { id: _util.OPS.setLeading, numArgs: 1, variableArgs: false }; - t['Tf'] = { + t["Tf"] = { id: _util.OPS.setFont, numArgs: 2, variableArgs: false }; - t['Tr'] = { + t["Tr"] = { id: _util.OPS.setTextRenderingMode, numArgs: 1, variableArgs: false }; - t['Ts'] = { + t["Ts"] = { id: _util.OPS.setTextRise, numArgs: 1, variableArgs: false }; - t['Td'] = { + t["Td"] = { id: _util.OPS.moveText, numArgs: 2, variableArgs: false }; - t['TD'] = { + t["TD"] = { id: _util.OPS.setLeadingMoveText, numArgs: 2, variableArgs: false }; - t['Tm'] = { + t["Tm"] = { id: _util.OPS.setTextMatrix, numArgs: 6, variableArgs: false }; - t['T*'] = { + t["T*"] = { id: _util.OPS.nextLine, numArgs: 0, variableArgs: false }; - t['Tj'] = { + t["Tj"] = { id: _util.OPS.showText, numArgs: 1, variableArgs: false }; - t['TJ'] = { + t["TJ"] = { id: _util.OPS.showSpacedText, numArgs: 1, variableArgs: false }; - t['\''] = { + t["'"] = { id: _util.OPS.nextLineShowText, numArgs: 1, variableArgs: false @@ -22931,146 +22947,146 @@ var EvaluatorPreprocessor = function EvaluatorPreprocessorClosure() { numArgs: 3, variableArgs: false }; - t['d0'] = { + t["d0"] = { id: _util.OPS.setCharWidth, numArgs: 2, variableArgs: false }; - t['d1'] = { + t["d1"] = { id: _util.OPS.setCharWidthAndBounds, numArgs: 6, variableArgs: false }; - t['CS'] = { + t["CS"] = { id: _util.OPS.setStrokeColorSpace, numArgs: 1, variableArgs: false }; - t['cs'] = { + t["cs"] = { id: _util.OPS.setFillColorSpace, numArgs: 1, variableArgs: false }; - t['SC'] = { + t["SC"] = { id: _util.OPS.setStrokeColor, numArgs: 4, variableArgs: true }; - t['SCN'] = { + t["SCN"] = { id: _util.OPS.setStrokeColorN, numArgs: 33, variableArgs: true }; - t['sc'] = { + t["sc"] = { id: _util.OPS.setFillColor, numArgs: 4, variableArgs: true }; - t['scn'] = { + t["scn"] = { id: _util.OPS.setFillColorN, numArgs: 33, variableArgs: true }; - t['G'] = { + t["G"] = { id: _util.OPS.setStrokeGray, numArgs: 1, variableArgs: false }; - t['g'] = { + t["g"] = { id: _util.OPS.setFillGray, numArgs: 1, variableArgs: false }; - t['RG'] = { + t["RG"] = { id: _util.OPS.setStrokeRGBColor, numArgs: 3, variableArgs: false }; - t['rg'] = { + t["rg"] = { id: _util.OPS.setFillRGBColor, numArgs: 3, variableArgs: false }; - t['K'] = { + t["K"] = { id: _util.OPS.setStrokeCMYKColor, numArgs: 4, variableArgs: false }; - t['k'] = { + t["k"] = { id: _util.OPS.setFillCMYKColor, numArgs: 4, variableArgs: false }; - t['sh'] = { + t["sh"] = { id: _util.OPS.shadingFill, numArgs: 1, variableArgs: false }; - t['BI'] = { + t["BI"] = { id: _util.OPS.beginInlineImage, numArgs: 0, variableArgs: false }; - t['ID'] = { + t["ID"] = { id: _util.OPS.beginImageData, numArgs: 0, variableArgs: false }; - t['EI'] = { + t["EI"] = { id: _util.OPS.endInlineImage, numArgs: 1, variableArgs: false }; - t['Do'] = { + t["Do"] = { id: _util.OPS.paintXObject, numArgs: 1, variableArgs: false }; - t['MP'] = { + t["MP"] = { id: _util.OPS.markPoint, numArgs: 1, variableArgs: false }; - t['DP'] = { + t["DP"] = { id: _util.OPS.markPointProps, numArgs: 2, variableArgs: false }; - t['BMC'] = { + t["BMC"] = { id: _util.OPS.beginMarkedContent, numArgs: 1, variableArgs: false }; - t['BDC'] = { + t["BDC"] = { id: _util.OPS.beginMarkedContentProps, numArgs: 2, variableArgs: false }; - t['EMC'] = { + t["EMC"] = { id: _util.OPS.endMarkedContent, numArgs: 0, variableArgs: false }; - t['BX'] = { + t["BX"] = { id: _util.OPS.beginCompat, numArgs: 0, variableArgs: false }; - t['EX'] = { + t["EX"] = { id: _util.OPS.endCompat, numArgs: 0, variableArgs: false }; - t['BM'] = null; - t['BD'] = null; - t['true'] = null; - t['fa'] = null; - t['fal'] = null; - t['fals'] = null; - t['false'] = null; - t['nu'] = null; - t['nul'] = null; - t['null'] = null; + t["BM"] = null; + t["BD"] = null; + t["true"] = null; + t["fa"] = null; + t["fal"] = null; + t["fals"] = null; + t["false"] = null; + t["nu"] = null; + t["nul"] = null; + t["null"] = null; }); const MAX_INVALID_PATH_OPS = 20; @@ -23165,7 +23181,7 @@ var EvaluatorPreprocessor = function EvaluatorPreprocessorClosure() { args.push(obj); if (args.length > 33) { - throw new _util.FormatError('Too many arguments'); + throw new _util.FormatError("Too many arguments"); } } } @@ -23190,7 +23206,7 @@ var EvaluatorPreprocessor = function EvaluatorPreprocessorClosure() { }(); /***/ }), -/* 27 */ +/* 26 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -23203,22 +23219,22 @@ exports.CMapFactory = exports.IdentityCMap = exports.CMap = void 0; var _util = __w_pdfjs_require__(2); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _parser = __w_pdfjs_require__(11); +var _parser = __w_pdfjs_require__(10); -var _core_utils = __w_pdfjs_require__(8); +var _core_utils = __w_pdfjs_require__(7); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); -var BUILT_IN_CMAPS = ['Adobe-GB1-UCS2', 'Adobe-CNS1-UCS2', 'Adobe-Japan1-UCS2', 'Adobe-Korea1-UCS2', '78-EUC-H', '78-EUC-V', '78-H', '78-RKSJ-H', '78-RKSJ-V', '78-V', '78ms-RKSJ-H', '78ms-RKSJ-V', '83pv-RKSJ-H', '90ms-RKSJ-H', '90ms-RKSJ-V', '90msp-RKSJ-H', '90msp-RKSJ-V', '90pv-RKSJ-H', '90pv-RKSJ-V', 'Add-H', 'Add-RKSJ-H', 'Add-RKSJ-V', 'Add-V', 'Adobe-CNS1-0', 'Adobe-CNS1-1', 'Adobe-CNS1-2', 'Adobe-CNS1-3', 'Adobe-CNS1-4', 'Adobe-CNS1-5', 'Adobe-CNS1-6', 'Adobe-GB1-0', 'Adobe-GB1-1', 'Adobe-GB1-2', 'Adobe-GB1-3', 'Adobe-GB1-4', 'Adobe-GB1-5', 'Adobe-Japan1-0', 'Adobe-Japan1-1', 'Adobe-Japan1-2', 'Adobe-Japan1-3', 'Adobe-Japan1-4', 'Adobe-Japan1-5', 'Adobe-Japan1-6', 'Adobe-Korea1-0', 'Adobe-Korea1-1', 'Adobe-Korea1-2', 'B5-H', 'B5-V', 'B5pc-H', 'B5pc-V', 'CNS-EUC-H', 'CNS-EUC-V', 'CNS1-H', 'CNS1-V', 'CNS2-H', 'CNS2-V', 'ETHK-B5-H', 'ETHK-B5-V', 'ETen-B5-H', 'ETen-B5-V', 'ETenms-B5-H', 'ETenms-B5-V', 'EUC-H', 'EUC-V', 'Ext-H', 'Ext-RKSJ-H', 'Ext-RKSJ-V', 'Ext-V', 'GB-EUC-H', 'GB-EUC-V', 'GB-H', 'GB-V', 'GBK-EUC-H', 'GBK-EUC-V', 'GBK2K-H', 'GBK2K-V', 'GBKp-EUC-H', 'GBKp-EUC-V', 'GBT-EUC-H', 'GBT-EUC-V', 'GBT-H', 'GBT-V', 'GBTpc-EUC-H', 'GBTpc-EUC-V', 'GBpc-EUC-H', 'GBpc-EUC-V', 'H', 'HKdla-B5-H', 'HKdla-B5-V', 'HKdlb-B5-H', 'HKdlb-B5-V', 'HKgccs-B5-H', 'HKgccs-B5-V', 'HKm314-B5-H', 'HKm314-B5-V', 'HKm471-B5-H', 'HKm471-B5-V', 'HKscs-B5-H', 'HKscs-B5-V', 'Hankaku', 'Hiragana', 'KSC-EUC-H', 'KSC-EUC-V', 'KSC-H', 'KSC-Johab-H', 'KSC-Johab-V', 'KSC-V', 'KSCms-UHC-H', 'KSCms-UHC-HW-H', 'KSCms-UHC-HW-V', 'KSCms-UHC-V', 'KSCpc-EUC-H', 'KSCpc-EUC-V', 'Katakana', 'NWP-H', 'NWP-V', 'RKSJ-H', 'RKSJ-V', 'Roman', 'UniCNS-UCS2-H', 'UniCNS-UCS2-V', 'UniCNS-UTF16-H', 'UniCNS-UTF16-V', 'UniCNS-UTF32-H', 'UniCNS-UTF32-V', 'UniCNS-UTF8-H', 'UniCNS-UTF8-V', 'UniGB-UCS2-H', 'UniGB-UCS2-V', 'UniGB-UTF16-H', 'UniGB-UTF16-V', 'UniGB-UTF32-H', 'UniGB-UTF32-V', 'UniGB-UTF8-H', 'UniGB-UTF8-V', 'UniJIS-UCS2-H', 'UniJIS-UCS2-HW-H', 'UniJIS-UCS2-HW-V', 'UniJIS-UCS2-V', 'UniJIS-UTF16-H', 'UniJIS-UTF16-V', 'UniJIS-UTF32-H', 'UniJIS-UTF32-V', 'UniJIS-UTF8-H', 'UniJIS-UTF8-V', 'UniJIS2004-UTF16-H', 'UniJIS2004-UTF16-V', 'UniJIS2004-UTF32-H', 'UniJIS2004-UTF32-V', 'UniJIS2004-UTF8-H', 'UniJIS2004-UTF8-V', 'UniJISPro-UCS2-HW-V', 'UniJISPro-UCS2-V', 'UniJISPro-UTF8-V', 'UniJISX0213-UTF32-H', 'UniJISX0213-UTF32-V', 'UniJISX02132004-UTF32-H', 'UniJISX02132004-UTF32-V', 'UniKS-UCS2-H', 'UniKS-UCS2-V', 'UniKS-UTF16-H', 'UniKS-UTF16-V', 'UniKS-UTF32-H', 'UniKS-UTF32-V', 'UniKS-UTF8-H', 'UniKS-UTF8-V', 'V', 'WP-Symbol']; +var BUILT_IN_CMAPS = ["Adobe-GB1-UCS2", "Adobe-CNS1-UCS2", "Adobe-Japan1-UCS2", "Adobe-Korea1-UCS2", "78-EUC-H", "78-EUC-V", "78-H", "78-RKSJ-H", "78-RKSJ-V", "78-V", "78ms-RKSJ-H", "78ms-RKSJ-V", "83pv-RKSJ-H", "90ms-RKSJ-H", "90ms-RKSJ-V", "90msp-RKSJ-H", "90msp-RKSJ-V", "90pv-RKSJ-H", "90pv-RKSJ-V", "Add-H", "Add-RKSJ-H", "Add-RKSJ-V", "Add-V", "Adobe-CNS1-0", "Adobe-CNS1-1", "Adobe-CNS1-2", "Adobe-CNS1-3", "Adobe-CNS1-4", "Adobe-CNS1-5", "Adobe-CNS1-6", "Adobe-GB1-0", "Adobe-GB1-1", "Adobe-GB1-2", "Adobe-GB1-3", "Adobe-GB1-4", "Adobe-GB1-5", "Adobe-Japan1-0", "Adobe-Japan1-1", "Adobe-Japan1-2", "Adobe-Japan1-3", "Adobe-Japan1-4", "Adobe-Japan1-5", "Adobe-Japan1-6", "Adobe-Korea1-0", "Adobe-Korea1-1", "Adobe-Korea1-2", "B5-H", "B5-V", "B5pc-H", "B5pc-V", "CNS-EUC-H", "CNS-EUC-V", "CNS1-H", "CNS1-V", "CNS2-H", "CNS2-V", "ETHK-B5-H", "ETHK-B5-V", "ETen-B5-H", "ETen-B5-V", "ETenms-B5-H", "ETenms-B5-V", "EUC-H", "EUC-V", "Ext-H", "Ext-RKSJ-H", "Ext-RKSJ-V", "Ext-V", "GB-EUC-H", "GB-EUC-V", "GB-H", "GB-V", "GBK-EUC-H", "GBK-EUC-V", "GBK2K-H", "GBK2K-V", "GBKp-EUC-H", "GBKp-EUC-V", "GBT-EUC-H", "GBT-EUC-V", "GBT-H", "GBT-V", "GBTpc-EUC-H", "GBTpc-EUC-V", "GBpc-EUC-H", "GBpc-EUC-V", "H", "HKdla-B5-H", "HKdla-B5-V", "HKdlb-B5-H", "HKdlb-B5-V", "HKgccs-B5-H", "HKgccs-B5-V", "HKm314-B5-H", "HKm314-B5-V", "HKm471-B5-H", "HKm471-B5-V", "HKscs-B5-H", "HKscs-B5-V", "Hankaku", "Hiragana", "KSC-EUC-H", "KSC-EUC-V", "KSC-H", "KSC-Johab-H", "KSC-Johab-V", "KSC-V", "KSCms-UHC-H", "KSCms-UHC-HW-H", "KSCms-UHC-HW-V", "KSCms-UHC-V", "KSCpc-EUC-H", "KSCpc-EUC-V", "Katakana", "NWP-H", "NWP-V", "RKSJ-H", "RKSJ-V", "Roman", "UniCNS-UCS2-H", "UniCNS-UCS2-V", "UniCNS-UTF16-H", "UniCNS-UTF16-V", "UniCNS-UTF32-H", "UniCNS-UTF32-V", "UniCNS-UTF8-H", "UniCNS-UTF8-V", "UniGB-UCS2-H", "UniGB-UCS2-V", "UniGB-UTF16-H", "UniGB-UTF16-V", "UniGB-UTF32-H", "UniGB-UTF32-V", "UniGB-UTF8-H", "UniGB-UTF8-V", "UniJIS-UCS2-H", "UniJIS-UCS2-HW-H", "UniJIS-UCS2-HW-V", "UniJIS-UCS2-V", "UniJIS-UTF16-H", "UniJIS-UTF16-V", "UniJIS-UTF32-H", "UniJIS-UTF32-V", "UniJIS-UTF8-H", "UniJIS-UTF8-V", "UniJIS2004-UTF16-H", "UniJIS2004-UTF16-V", "UniJIS2004-UTF32-H", "UniJIS2004-UTF32-V", "UniJIS2004-UTF8-H", "UniJIS2004-UTF8-V", "UniJISPro-UCS2-HW-V", "UniJISPro-UCS2-V", "UniJISPro-UTF8-V", "UniJISX0213-UTF32-H", "UniJISX0213-UTF32-V", "UniJISX02132004-UTF32-H", "UniJISX02132004-UTF32-V", "UniKS-UCS2-H", "UniKS-UCS2-V", "UniKS-UTF16-H", "UniKS-UTF16-V", "UniKS-UTF32-H", "UniKS-UTF32-V", "UniKS-UTF8-H", "UniKS-UTF8-V", "V", "WP-Symbol"]; class CMap { constructor(builtInCMap = false) { this.codespaceRanges = [[], [], [], []]; this.numCodespaceRanges = 0; this._map = []; - this.name = ''; + this.name = ""; this.vertical = false; this.useCMap = null; this.builtInCMap = builtInCMap; @@ -23332,7 +23348,7 @@ class CMap { } get isIdentityCMap() { - if (!(this.name === 'Identity-H' || this.name === 'Identity-V')) { + if (!(this.name === "Identity-H" || this.name === "Identity-V")) { return false; } @@ -23361,19 +23377,19 @@ class IdentityCMap extends CMap { } mapCidRange(low, high, dstLow) { - (0, _util.unreachable)('should not call mapCidRange'); + (0, _util.unreachable)("should not call mapCidRange"); } mapBfRange(low, high, dstLow) { - (0, _util.unreachable)('should not call mapBfRange'); + (0, _util.unreachable)("should not call mapBfRange"); } mapBfRangeToArray(low, high, array) { - (0, _util.unreachable)('should not call mapBfRangeToArray'); + (0, _util.unreachable)("should not call mapBfRangeToArray"); } mapOne(src, dst) { - (0, _util.unreachable)('should not call mapCidOne'); + (0, _util.unreachable)("should not call mapCidOne"); } lookup(code) { @@ -23409,7 +23425,7 @@ class IdentityCMap extends CMap { } get isIdentityCMap() { - (0, _util.unreachable)('should not access .isIdentityCMap'); + (0, _util.unreachable)("should not access .isIdentityCMap"); } } @@ -23486,11 +23502,11 @@ var BinaryCMapReader = function BinaryCMapReaderClosure() { var b = this.readByte(); if (b < 0) { - throw new _util.FormatError('unexpected EOF in bcmap'); + throw new _util.FormatError("unexpected EOF in bcmap"); } last = !(b & 0x80); - n = n << 7 | b & 0x7F; + n = n << 7 | b & 0x7f; } while (!last); return n; @@ -23515,11 +23531,11 @@ var BinaryCMapReader = function BinaryCMapReaderClosure() { var b = this.readByte(); if (b < 0) { - throw new _util.FormatError('unexpected EOF in bcmap'); + throw new _util.FormatError("unexpected EOF in bcmap"); } last = !(b & 0x80); - stack[sp++] = b & 0x7F; + stack[sp++] = b & 0x7f; } while (!last); var i = size, @@ -23552,7 +23568,7 @@ var BinaryCMapReader = function BinaryCMapReaderClosure() { readString() { var len = this.readNumber(); - var s = ''; + var s = ""; for (var i = 0; i < len; i++) { s += String.fromCharCode(this.readNumber()); @@ -23581,7 +23597,7 @@ var BinaryCMapReader = function BinaryCMapReaderClosure() { var type = b >> 5; if (type === 7) { - switch (b & 0x1F) { + switch (b & 0x1f) { case 0: stream.readString(); break; @@ -23598,7 +23614,7 @@ var BinaryCMapReader = function BinaryCMapReaderClosure() { var dataSize = b & 15; if (dataSize + 1 > MAX_NUM_SIZE) { - throw new Error('processBinaryCMap: Invalid dataSize.'); + throw new Error("processBinaryCMap: Invalid dataSize."); } var ucs2DataSize = 1; @@ -23731,7 +23747,7 @@ var BinaryCMapReader = function BinaryCMapReaderClosure() { break; default: - reject(new Error('processBinaryCMap: Unknown type: ' + type)); + reject(new Error("processBinaryCMap: Unknown type: " + type)); return; } } @@ -23766,13 +23782,13 @@ var CMapFactory = function CMapFactoryClosure() { function expectString(obj) { if (!(0, _util.isString)(obj)) { - throw new _util.FormatError('Malformed CMap: expected string.'); + throw new _util.FormatError("Malformed CMap: expected string."); } } function expectInt(obj) { if (!Number.isInteger(obj)) { - throw new _util.FormatError('Malformed CMap: expected int.'); + throw new _util.FormatError("Malformed CMap: expected int."); } } @@ -23784,7 +23800,7 @@ var CMapFactory = function CMapFactoryClosure() { break; } - if ((0, _primitives.isCmd)(obj, 'endbfchar')) { + if ((0, _primitives.isCmd)(obj, "endbfchar")) { return; } @@ -23805,7 +23821,7 @@ var CMapFactory = function CMapFactoryClosure() { break; } - if ((0, _primitives.isCmd)(obj, 'endbfrange')) { + if ((0, _primitives.isCmd)(obj, "endbfrange")) { return; } @@ -23819,11 +23835,11 @@ var CMapFactory = function CMapFactoryClosure() { if (Number.isInteger(obj) || (0, _util.isString)(obj)) { var dstLow = Number.isInteger(obj) ? String.fromCharCode(obj) : obj; cMap.mapBfRange(low, high, dstLow); - } else if ((0, _primitives.isCmd)(obj, '[')) { + } else if ((0, _primitives.isCmd)(obj, "[")) { obj = lexer.getObj(); var array = []; - while (!(0, _primitives.isCmd)(obj, ']') && !(0, _primitives.isEOF)(obj)) { + while (!(0, _primitives.isCmd)(obj, "]") && !(0, _primitives.isEOF)(obj)) { array.push(obj); obj = lexer.getObj(); } @@ -23834,7 +23850,7 @@ var CMapFactory = function CMapFactoryClosure() { } } - throw new _util.FormatError('Invalid bf range.'); + throw new _util.FormatError("Invalid bf range."); } function parseCidChar(cMap, lexer) { @@ -23845,7 +23861,7 @@ var CMapFactory = function CMapFactoryClosure() { break; } - if ((0, _primitives.isCmd)(obj, 'endcidchar')) { + if ((0, _primitives.isCmd)(obj, "endcidchar")) { return; } @@ -23866,7 +23882,7 @@ var CMapFactory = function CMapFactoryClosure() { break; } - if ((0, _primitives.isCmd)(obj, 'endcidrange')) { + if ((0, _primitives.isCmd)(obj, "endcidrange")) { return; } @@ -23890,7 +23906,7 @@ var CMapFactory = function CMapFactoryClosure() { break; } - if ((0, _primitives.isCmd)(obj, 'endcodespacerange')) { + if ((0, _primitives.isCmd)(obj, "endcodespacerange")) { return; } @@ -23909,7 +23925,7 @@ var CMapFactory = function CMapFactoryClosure() { cMap.addCodespaceRange(obj.length, low, high); } - throw new _util.FormatError('Invalid codespace range.'); + throw new _util.FormatError("Invalid codespace range."); } function parseWMode(cMap, lexer) { @@ -23939,42 +23955,42 @@ var CMapFactory = function CMapFactoryClosure() { if ((0, _primitives.isEOF)(obj)) { break; } else if ((0, _primitives.isName)(obj)) { - if (obj.name === 'WMode') { + if (obj.name === "WMode") { parseWMode(cMap, lexer); - } else if (obj.name === 'CMapName') { + } else if (obj.name === "CMapName") { parseCMapName(cMap, lexer); } previous = obj; } else if ((0, _primitives.isCmd)(obj)) { switch (obj.cmd) { - case 'endcmap': + case "endcmap": break objLoop; - case 'usecmap': + case "usecmap": if ((0, _primitives.isName)(previous)) { embeddedUseCMap = previous.name; } break; - case 'begincodespacerange': + case "begincodespacerange": parseCodespaceRange(cMap, lexer); break; - case 'beginbfchar': + case "beginbfchar": parseBfChar(cMap, lexer); break; - case 'begincidchar': + case "begincidchar": parseCidChar(cMap, lexer); break; - case 'beginbfrange': + case "beginbfrange": parseBfRange(cMap, lexer); break; - case 'begincidrange': + case "begincidrange": parseCidRange(cMap, lexer); break; } @@ -23984,7 +24000,7 @@ var CMapFactory = function CMapFactoryClosure() { throw ex; } - (0, _util.warn)('Invalid cMap data: ' + ex); + (0, _util.warn)("Invalid cMap data: " + ex); continue; } } @@ -24024,18 +24040,18 @@ var CMapFactory = function CMapFactoryClosure() { } function createBuiltInCMap(name, fetchBuiltInCMap) { - if (name === 'Identity-H') { + if (name === "Identity-H") { return Promise.resolve(new IdentityCMap(false, 2)); - } else if (name === 'Identity-V') { + } else if (name === "Identity-V") { return Promise.resolve(new IdentityCMap(true, 2)); } if (!BUILT_IN_CMAPS.includes(name)) { - return Promise.reject(new Error('Unknown CMap name: ' + name)); + return Promise.reject(new Error("Unknown CMap name: " + name)); } if (!fetchBuiltInCMap) { - return Promise.reject(new Error('Built-in CMap parameters are not provided.')); + return Promise.reject(new Error("Built-in CMap parameters are not provided.")); } return fetchBuiltInCMap(name).then(function (data) { @@ -24054,7 +24070,7 @@ var CMapFactory = function CMapFactoryClosure() { return parseCMap(cMap, lexer, fetchBuiltInCMap, null); } - return Promise.reject(new Error('TODO: Only BINARY/NONE CMap compression is currently supported.')); + return Promise.reject(new Error("TODO: Only BINARY/NONE CMap compression is currently supported.")); }); } @@ -24078,7 +24094,7 @@ var CMapFactory = function CMapFactoryClosure() { }); } - return Promise.reject(new Error('Encoding required.')); + return Promise.reject(new Error("Encoding required.")); } }; @@ -24087,7 +24103,7 @@ var CMapFactory = function CMapFactoryClosure() { exports.CMapFactory = CMapFactory; /***/ }), -/* 28 */ +/* 27 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -24101,27 +24117,27 @@ exports.IdentityToUnicodeMap = exports.ToUnicodeMap = exports.FontFlags = export var _util = __w_pdfjs_require__(2); -var _cff_parser = __w_pdfjs_require__(29); +var _cff_parser = __w_pdfjs_require__(28); -var _glyphlist = __w_pdfjs_require__(32); +var _glyphlist = __w_pdfjs_require__(31); -var _encodings = __w_pdfjs_require__(31); +var _encodings = __w_pdfjs_require__(30); -var _standard_fonts = __w_pdfjs_require__(33); +var _standard_fonts = __w_pdfjs_require__(32); -var _unicode = __w_pdfjs_require__(34); +var _unicode = __w_pdfjs_require__(33); -var _font_renderer = __w_pdfjs_require__(35); +var _font_renderer = __w_pdfjs_require__(34); -var _cmap = __w_pdfjs_require__(27); +var _cmap = __w_pdfjs_require__(26); -var _core_utils = __w_pdfjs_require__(8); +var _core_utils = __w_pdfjs_require__(7); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); -var _type1_parser = __w_pdfjs_require__(36); +var _type1_parser = __w_pdfjs_require__(35); -const PRIVATE_USE_AREAS = [[0xE000, 0xF8FF], [0x100000, 0x10FFFD]]; +const PRIVATE_USE_AREAS = [[0xe000, 0xf8ff], [0x100000, 0x10fffd]]; var PDF_GLYPH_SPACE_UNITS = 1000; var SEAC_ANALYSIS_ENABLED = true; exports.SEAC_ANALYSIS_ENABLED = SEAC_ANALYSIS_ENABLED; @@ -24137,7 +24153,7 @@ var FontFlags = { ForceBold: 262144 }; exports.FontFlags = FontFlags; -var MacStandardGlyphOrdering = ['.notdef', '.null', 'nonmarkingreturn', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde', 'Odieresis', 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis', 'atilde', 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis', 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute', 'ograve', 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave', 'ucircumflex', 'udieresis', 'dagger', 'degree', 'cent', 'sterling', 'section', 'bullet', 'paragraph', 'germandbls', 'registered', 'copyright', 'trademark', 'acute', 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity', 'plusminus', 'lessequal', 'greaterequal', 'yen', 'mu', 'partialdiff', 'summation', 'product', 'pi', 'integral', 'ordfeminine', 'ordmasculine', 'Omega', 'ae', 'oslash', 'questiondown', 'exclamdown', 'logicalnot', 'radical', 'florin', 'approxequal', 'Delta', 'guillemotleft', 'guillemotright', 'ellipsis', 'nonbreakingspace', 'Agrave', 'Atilde', 'Otilde', 'OE', 'oe', 'endash', 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright', 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction', 'currency', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl', 'periodcentered', 'quotesinglbase', 'quotedblbase', 'perthousand', 'Acircumflex', 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple', 'Ograve', 'Uacute', 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron', 'Lslash', 'lslash', 'Scaron', 'scaron', 'Zcaron', 'zcaron', 'brokenbar', 'Eth', 'eth', 'Yacute', 'yacute', 'Thorn', 'thorn', 'minus', 'multiply', 'onesuperior', 'twosuperior', 'threesuperior', 'onehalf', 'onequarter', 'threequarters', 'franc', 'Gbreve', 'gbreve', 'Idotaccent', 'Scedilla', 'scedilla', 'Cacute', 'cacute', 'Ccaron', 'ccaron', 'dcroat']; +var MacStandardGlyphOrdering = [".notdef", ".null", "nonmarkingreturn", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quotesingle", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "grave", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "Adieresis", "Aring", "Ccedilla", "Eacute", "Ntilde", "Odieresis", "Udieresis", "aacute", "agrave", "acircumflex", "adieresis", "atilde", "aring", "ccedilla", "eacute", "egrave", "ecircumflex", "edieresis", "iacute", "igrave", "icircumflex", "idieresis", "ntilde", "oacute", "ograve", "ocircumflex", "odieresis", "otilde", "uacute", "ugrave", "ucircumflex", "udieresis", "dagger", "degree", "cent", "sterling", "section", "bullet", "paragraph", "germandbls", "registered", "copyright", "trademark", "acute", "dieresis", "notequal", "AE", "Oslash", "infinity", "plusminus", "lessequal", "greaterequal", "yen", "mu", "partialdiff", "summation", "product", "pi", "integral", "ordfeminine", "ordmasculine", "Omega", "ae", "oslash", "questiondown", "exclamdown", "logicalnot", "radical", "florin", "approxequal", "Delta", "guillemotleft", "guillemotright", "ellipsis", "nonbreakingspace", "Agrave", "Atilde", "Otilde", "OE", "oe", "endash", "emdash", "quotedblleft", "quotedblright", "quoteleft", "quoteright", "divide", "lozenge", "ydieresis", "Ydieresis", "fraction", "currency", "guilsinglleft", "guilsinglright", "fi", "fl", "daggerdbl", "periodcentered", "quotesinglbase", "quotedblbase", "perthousand", "Acircumflex", "Ecircumflex", "Aacute", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Oacute", "Ocircumflex", "apple", "Ograve", "Uacute", "Ucircumflex", "Ugrave", "dotlessi", "circumflex", "tilde", "macron", "breve", "dotaccent", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "Lslash", "lslash", "Scaron", "scaron", "Zcaron", "zcaron", "brokenbar", "Eth", "eth", "Yacute", "yacute", "Thorn", "thorn", "minus", "multiply", "onesuperior", "twosuperior", "threesuperior", "onehalf", "onequarter", "threequarters", "franc", "Gbreve", "gbreve", "Idotaccent", "Scedilla", "scedilla", "Cacute", "cacute", "Ccaron", "ccaron", "dcroat"]; function adjustWidths(properties) { if (!properties.fontMatrix) { @@ -24192,25 +24208,25 @@ function adjustToUnicode(properties, builtInEncoding) { function getFontType(type, subtype) { switch (type) { - case 'Type1': - return subtype === 'Type1C' ? _util.FontType.TYPE1C : _util.FontType.TYPE1; + case "Type1": + return subtype === "Type1C" ? _util.FontType.TYPE1C : _util.FontType.TYPE1; - case 'CIDFontType0': - return subtype === 'CIDFontType0C' ? _util.FontType.CIDFONTTYPE0C : _util.FontType.CIDFONTTYPE0; + case "CIDFontType0": + return subtype === "CIDFontType0C" ? _util.FontType.CIDFONTTYPE0C : _util.FontType.CIDFONTTYPE0; - case 'OpenType': + case "OpenType": return _util.FontType.OPENTYPE; - case 'TrueType': + case "TrueType": return _util.FontType.TRUETYPE; - case 'CIDFontType2': + case "CIDFontType2": return _util.FontType.CIDFONTTYPE2; - case 'MMType1': + case "MMType1": return _util.FontType.MMTYPE1; - case 'Type0': + case "Type0": return _util.FontType.TYPE0; default: @@ -24233,7 +24249,7 @@ function recoverGlyphName(name, glyphsUnicodeMap) { } } - (0, _util.info)('Unable to recover a standard glyph name for: ' + name); + (0, _util.info)("Unable to recover a standard glyph name for: " + name); return name; } @@ -24342,7 +24358,7 @@ var IdentityToUnicodeMap = function IdentityToUnicodeMapClosure() { }, amend(map) { - (0, _util.unreachable)('Should not call amend()'); + (0, _util.unreachable)("Should not call amend()"); } }; @@ -24353,15 +24369,15 @@ exports.IdentityToUnicodeMap = IdentityToUnicodeMap; var OpenTypeFileBuilder = function OpenTypeFileBuilderClosure() { function writeInt16(dest, offset, num) { - dest[offset] = num >> 8 & 0xFF; - dest[offset + 1] = num & 0xFF; + dest[offset] = num >> 8 & 0xff; + dest[offset + 1] = num & 0xff; } function writeInt32(dest, offset, num) { - dest[offset] = num >> 24 & 0xFF; - dest[offset + 1] = num >> 16 & 0xFF; - dest[offset + 2] = num >> 8 & 0xFF; - dest[offset + 3] = num & 0xFF; + dest[offset] = num >> 24 & 0xff; + dest[offset + 1] = num >> 16 & 0xff; + dest[offset + 2] = num >> 8 & 0xff; + dest[offset + 3] = num & 0xff; } function writeData(dest, offset, data) { @@ -24369,13 +24385,13 @@ var OpenTypeFileBuilder = function OpenTypeFileBuilderClosure() { if (data instanceof Uint8Array) { dest.set(data, offset); - } else if (typeof data === 'string') { + } else if (typeof data === "string") { for (i = 0, ii = data.length; i < ii; i++) { - dest[offset++] = data.charCodeAt(i) & 0xFF; + dest[offset++] = data.charCodeAt(i) & 0xff; } } else { for (i = 0, ii = data.length; i < ii; i++) { - dest[offset++] = data[i] & 0xFF; + dest[offset++] = data[i] & 0xff; } } } @@ -24429,14 +24445,14 @@ var OpenTypeFileBuilder = function OpenTypeFileBuilderClosure() { writeData(file, tableOffsets[i], table); } - if (sfnt === 'true') { + if (sfnt === "true") { sfnt = (0, _util.string32)(0x00010000); } - file[0] = sfnt.charCodeAt(0) & 0xFF; - file[1] = sfnt.charCodeAt(1) & 0xFF; - file[2] = sfnt.charCodeAt(2) & 0xFF; - file[3] = sfnt.charCodeAt(3) & 0xFF; + file[0] = sfnt.charCodeAt(0) & 0xff; + file[1] = sfnt.charCodeAt(1) & 0xff; + file[2] = sfnt.charCodeAt(2) & 0xff; + file[3] = sfnt.charCodeAt(3) & 0xff; writeInt16(file, 4, numTables); var searchParams = OpenTypeFileBuilder.getSearchParams(numTables, 16); writeInt16(file, 6, searchParams.range); @@ -24446,10 +24462,10 @@ var OpenTypeFileBuilder = function OpenTypeFileBuilderClosure() { for (i = 0; i < numTables; i++) { tableName = tablesNames[i]; - file[offset] = tableName.charCodeAt(0) & 0xFF; - file[offset + 1] = tableName.charCodeAt(1) & 0xFF; - file[offset + 2] = tableName.charCodeAt(2) & 0xFF; - file[offset + 3] = tableName.charCodeAt(3) & 0xFF; + file[offset] = tableName.charCodeAt(0) & 0xff; + file[offset + 1] = tableName.charCodeAt(1) & 0xff; + file[offset + 2] = tableName.charCodeAt(2) & 0xff; + file[offset + 3] = tableName.charCodeAt(3) & 0xff; var checksum = 0; for (j = tableOffsets[i], jj = tableOffsets[i + 1]; j < jj; j += 4) { @@ -24467,7 +24483,7 @@ var OpenTypeFileBuilder = function OpenTypeFileBuilderClosure() { }, addTable: function OpenTypeFileBuilder_addTable(tag, data) { if (tag in this.tables) { - throw new Error('Table ' + tag + ' already exists'); + throw new Error("Table " + tag + " already exists"); } this.tables[tag] = data; @@ -24492,7 +24508,7 @@ var Font = function FontClosure() { var subtype = properties.subtype; this.type = type; this.subtype = subtype; - this.fallbackName = this.isMonospace ? 'monospace' : this.isSerifFont ? 'serif' : 'sans-serif'; + this.fallbackName = this.isMonospace ? "monospace" : this.isSerifFont ? "serif" : "sans-serif"; this.differences = properties.differences; this.widths = properties.widths; this.defaultWidth = properties.defaultWidth; @@ -24508,7 +24524,7 @@ var Font = function FontClosure() { this.fallbackToUnicode = properties.fallbackToUnicode || new ToUnicodeMap(); this.toFontChar = []; - if (properties.type === 'Type3') { + if (properties.type === "Type3") { for (charCode = 0; charCode < 256; charCode++) { this.toFontChar[charCode] = this.differences[charCode] || properties.defaultEncoding[charCode]; } @@ -24527,7 +24543,7 @@ var Font = function FontClosure() { if (!file || file.isEmpty) { if (file) { - (0, _util.warn)('Font file is empty in "' + name + '" (' + this.loadedName + ')'); + (0, _util.warn)('Font file is empty in "' + name + '" (' + this.loadedName + ")"); } this.fallbackToSystemFont(); @@ -24537,33 +24553,33 @@ var Font = function FontClosure() { [type, subtype] = getFontFileType(file, properties); if (type !== this.type || subtype !== this.subtype) { - (0, _util.info)('Inconsistent font file Type/SubType, expected: ' + `${this.type}/${this.subtype} but found: ${type}/${subtype}.`); + (0, _util.info)("Inconsistent font file Type/SubType, expected: " + `${this.type}/${this.subtype} but found: ${type}/${subtype}.`); } try { var data; switch (type) { - case 'MMType1': - (0, _util.info)('MMType1 font (' + name + '), falling back to Type1.'); + case "MMType1": + (0, _util.info)("MMType1 font (" + name + "), falling back to Type1."); - case 'Type1': - case 'CIDFontType0': - this.mimetype = 'font/opentype'; - var cff = subtype === 'Type1C' || subtype === 'CIDFontType0C' ? new CFFFont(file, properties) : new Type1Font(name, file, properties); + case "Type1": + case "CIDFontType0": + this.mimetype = "font/opentype"; + var cff = subtype === "Type1C" || subtype === "CIDFontType0C" ? new CFFFont(file, properties) : new Type1Font(name, file, properties); adjustWidths(properties); data = this.convert(name, cff, properties); break; - case 'OpenType': - case 'TrueType': - case 'CIDFontType2': - this.mimetype = 'font/opentype'; + case "OpenType": + case "TrueType": + case "CIDFontType2": + this.mimetype = "font/opentype"; data = this.checkAndRepair(name, file, properties); if (this.isOpenType) { adjustWidths(properties); - type = 'OpenType'; + type = "OpenType"; } break; @@ -24617,23 +24633,23 @@ var Font = function FontClosure() { } function safeString16(value) { - value = value > 0x7FFF ? 0x7FFF : value < -0x8000 ? -0x8000 : value; + value = value > 0x7fff ? 0x7fff : value < -0x8000 ? -0x8000 : value; return String.fromCharCode(value >> 8 & 0xff, value & 0xff); } function isTrueTypeFile(file) { var header = file.peekBytes(4); - return (0, _util.readUint32)(header, 0) === 0x00010000 || (0, _util.bytesToString)(header) === 'true'; + return (0, _util.readUint32)(header, 0) === 0x00010000 || (0, _util.bytesToString)(header) === "true"; } function isTrueTypeCollectionFile(file) { let header = file.peekBytes(4); - return (0, _util.bytesToString)(header) === 'ttcf'; + return (0, _util.bytesToString)(header) === "ttcf"; } function isOpenTypeFile(file) { var header = file.peekBytes(4); - return (0, _util.bytesToString)(header) === 'OTTO'; + return (0, _util.bytesToString)(header) === "OTTO"; } function isType1File(file) { @@ -24669,32 +24685,32 @@ var Font = function FontClosure() { if (isTrueTypeFile(file) || isTrueTypeCollectionFile(file)) { if (composite) { - fileType = 'CIDFontType2'; + fileType = "CIDFontType2"; } else { - fileType = 'TrueType'; + fileType = "TrueType"; } } else if (isOpenTypeFile(file)) { if (composite) { - fileType = 'CIDFontType2'; + fileType = "CIDFontType2"; } else { - fileType = 'OpenType'; + fileType = "OpenType"; } } else if (isType1File(file)) { if (composite) { - fileType = 'CIDFontType0'; + fileType = "CIDFontType0"; } else { - fileType = type === 'MMType1' ? 'MMType1' : 'Type1'; + fileType = type === "MMType1" ? "MMType1" : "Type1"; } } else if (isCFFFile(file)) { if (composite) { - fileType = 'CIDFontType0'; - fileSubtype = 'CIDFontType0C'; + fileType = "CIDFontType0"; + fileSubtype = "CIDFontType0C"; } else { - fileType = type === 'MMType1' ? 'MMType1' : 'Type1'; - fileSubtype = 'Type1C'; + fileType = type === "MMType1" ? "MMType1" : "Type1"; + fileSubtype = "Type1C"; } } else { - (0, _util.warn)('getFontFileType: Unable to detect correct font file Type/Subtype.'); + (0, _util.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."); fileType = type; fileSubtype = subtype; } @@ -24744,7 +24760,7 @@ var Font = function FontClosure() { privateUseAreaIndex++; if (privateUseAreaIndex >= PRIVATE_USE_AREAS.length) { - (0, _util.warn)('Ran out of space in font private use area.'); + (0, _util.warn)("Ran out of space in font private use area."); break; } @@ -24807,7 +24823,7 @@ var Font = function FontClosure() { ++end; ++n; - if (end === 0xFFFF) { + if (end === 0xffff) { break; } } @@ -24820,30 +24836,30 @@ var Font = function FontClosure() { function createCmapTable(glyphs, numGlyphs) { var ranges = getRanges(glyphs, numGlyphs); - var numTables = ranges[ranges.length - 1][1] > 0xFFFF ? 2 : 1; - var cmap = '\x00\x00' + string16(numTables) + '\x00\x03' + '\x00\x01' + (0, _util.string32)(4 + numTables * 8); + var numTables = ranges[ranges.length - 1][1] > 0xffff ? 2 : 1; + var cmap = "\x00\x00" + string16(numTables) + "\x00\x03" + "\x00\x01" + (0, _util.string32)(4 + numTables * 8); var i, ii, j, jj; for (i = ranges.length - 1; i >= 0; --i) { - if (ranges[i][0] <= 0xFFFF) { + if (ranges[i][0] <= 0xffff) { break; } } var bmpLength = i + 1; - if (ranges[i][0] < 0xFFFF && ranges[i][1] === 0xFFFF) { - ranges[i][1] = 0xFFFE; + if (ranges[i][0] < 0xffff && ranges[i][1] === 0xffff) { + ranges[i][1] = 0xfffe; } - var trailingRangesCount = ranges[i][1] < 0xFFFF ? 1 : 0; + var trailingRangesCount = ranges[i][1] < 0xffff ? 1 : 0; var segCount = bmpLength + trailingRangesCount; var searchParams = OpenTypeFileBuilder.getSearchParams(segCount, 2); - var startCount = ''; - var endCount = ''; - var idDeltas = ''; - var idRangeOffsets = ''; - var glyphsIds = ''; + var startCount = ""; + var endCount = ""; + var idDeltas = ""; + var idRangeOffsets = ""; + var glyphsIds = ""; var bias = 0; var range, start, end, codes; @@ -24874,25 +24890,25 @@ var Font = function FontClosure() { } } else { var startCode = codes[0]; - idDeltas += string16(startCode - start & 0xFFFF); + idDeltas += string16(startCode - start & 0xffff); idRangeOffsets += string16(0); } } if (trailingRangesCount > 0) { - endCount += '\xFF\xFF'; - startCount += '\xFF\xFF'; - idDeltas += '\x00\x01'; - idRangeOffsets += '\x00\x00'; + endCount += "\xFF\xFF"; + startCount += "\xFF\xFF"; + idDeltas += "\x00\x01"; + idRangeOffsets += "\x00\x00"; } - var format314 = '\x00\x00' + string16(2 * segCount) + string16(searchParams.range) + string16(searchParams.entry) + string16(searchParams.rangeShift) + endCount + '\x00\x00' + startCount + idDeltas + idRangeOffsets + glyphsIds; - var format31012 = ''; - var header31012 = ''; + var format314 = "\x00\x00" + string16(2 * segCount) + string16(searchParams.range) + string16(searchParams.entry) + string16(searchParams.rangeShift) + endCount + "\x00\x00" + startCount + idDeltas + idRangeOffsets + glyphsIds; + var format31012 = ""; + var header31012 = ""; if (numTables > 1) { - cmap += '\x00\x03' + '\x00\x0A' + (0, _util.string32)(4 + numTables * 8 + 4 + format314.length); - format31012 = ''; + cmap += "\x00\x03" + "\x00\x0A" + (0, _util.string32)(4 + numTables * 8 + 4 + format314.length); + format31012 = ""; for (i = 0, ii = ranges.length; i < ii; i++) { range = ranges[i]; @@ -24912,10 +24928,10 @@ var Font = function FontClosure() { format31012 += (0, _util.string32)(start) + (0, _util.string32)(range[1]) + (0, _util.string32)(code); } - header31012 = '\x00\x0C' + '\x00\x00' + (0, _util.string32)(format31012.length + 16) + '\x00\x00\x00\x00' + (0, _util.string32)(format31012.length / 12); + header31012 = "\x00\x0C" + "\x00\x00" + (0, _util.string32)(format31012.length + 16) + "\x00\x00\x00\x00" + (0, _util.string32)(format31012.length / 12); } - return cmap + '\x00\x04' + string16(format314.length + 4) + format314 + header31012 + format31012; + return cmap + "\x00\x04" + string16(format314.length + 4) + format314 + header31012 + format31012; } function validateOS2Table(os2) { @@ -24984,12 +25000,12 @@ var Font = function FontClosure() { } else if (position < 123) { ulUnicodeRange4 |= 1 << position - 96; } else { - throw new _util.FormatError('Unicode ranges Bits > 123 are reserved for internal usage'); + throw new _util.FormatError("Unicode ranges Bits > 123 are reserved for internal usage"); } } - if (lastCharIndex > 0xFFFF) { - lastCharIndex = 0xFFFF; + if (lastCharIndex > 0xffff) { + lastCharIndex = 0xffff; } } else { firstCharIndex = 0; @@ -25008,12 +25024,12 @@ var Font = function FontClosure() { var winAscent = override.yMax || typoAscent; var winDescent = -override.yMin || -typoDescent; - return '\x00\x03' + '\x02\x24' + '\x01\xF4' + '\x00\x05' + '\x00\x00' + '\x02\x8A' + '\x02\xBB' + '\x00\x00' + '\x00\x8C' + '\x02\x8A' + '\x02\xBB' + '\x00\x00' + '\x01\xDF' + '\x00\x31' + '\x01\x02' + '\x00\x00' + '\x00\x00\x06' + String.fromCharCode(properties.fixedPitch ? 0x09 : 0x00) + '\x00\x00\x00\x00\x00\x00' + (0, _util.string32)(ulUnicodeRange1) + (0, _util.string32)(ulUnicodeRange2) + (0, _util.string32)(ulUnicodeRange3) + (0, _util.string32)(ulUnicodeRange4) + '\x2A\x32\x31\x2A' + string16(properties.italicAngle ? 1 : 0) + string16(firstCharIndex || properties.firstChar) + string16(lastCharIndex || properties.lastChar) + string16(typoAscent) + string16(typoDescent) + '\x00\x64' + string16(winAscent) + string16(winDescent) + '\x00\x00\x00\x00' + '\x00\x00\x00\x00' + string16(properties.xHeight) + string16(properties.capHeight) + string16(0) + string16(firstCharIndex || properties.firstChar) + '\x00\x03'; + return "\x00\x03" + "\x02\x24" + "\x01\xF4" + "\x00\x05" + "\x00\x00" + "\x02\x8A" + "\x02\xBB" + "\x00\x00" + "\x00\x8C" + "\x02\x8A" + "\x02\xBB" + "\x00\x00" + "\x01\xDF" + "\x00\x31" + "\x01\x02" + "\x00\x00" + "\x00\x00\x06" + String.fromCharCode(properties.fixedPitch ? 0x09 : 0x00) + "\x00\x00\x00\x00\x00\x00" + (0, _util.string32)(ulUnicodeRange1) + (0, _util.string32)(ulUnicodeRange2) + (0, _util.string32)(ulUnicodeRange3) + (0, _util.string32)(ulUnicodeRange4) + "\x2A\x32\x31\x2A" + string16(properties.italicAngle ? 1 : 0) + string16(firstCharIndex || properties.firstChar) + string16(lastCharIndex || properties.lastChar) + string16(typoAscent) + string16(typoDescent) + "\x00\x64" + string16(winAscent) + string16(winDescent) + "\x00\x00\x00\x00" + "\x00\x00\x00\x00" + string16(properties.xHeight) + string16(properties.capHeight) + string16(0) + string16(firstCharIndex || properties.firstChar) + "\x00\x03"; } function createPostTable(properties) { var angle = Math.floor(properties.italicAngle * Math.pow(2, 16)); - return '\x00\x03\x00\x00' + (0, _util.string32)(angle) + '\x00\x00' + '\x00\x00' + (0, _util.string32)(properties.fixedPitch) + '\x00\x00\x00\x00' + '\x00\x00\x00\x00' + '\x00\x00\x00\x00' + '\x00\x00\x00\x00'; + return "\x00\x03\x00\x00" + (0, _util.string32)(angle) + "\x00\x00" + "\x00\x00" + (0, _util.string32)(properties.fixedPitch) + "\x00\x00\x00\x00" + "\x00\x00\x00\x00" + "\x00\x00\x00\x00" + "\x00\x00\x00\x00"; } function createNameTable(name, proto) { @@ -25021,7 +25037,7 @@ var Font = function FontClosure() { proto = [[], []]; } - var strings = [proto[0][0] || 'Original licence', proto[0][1] || name, proto[0][2] || 'Unknown', proto[0][3] || 'uniqueID', proto[0][4] || name, proto[0][5] || 'Version 0.11', proto[0][6] || '', proto[0][7] || 'Unknown', proto[0][8] || 'Unknown', proto[0][9] || 'Unknown']; + var strings = [proto[0][0] || "Original licence", proto[0][1] || name, proto[0][2] || "Unknown", proto[0][3] || "uniqueID", proto[0][4] || name, proto[0][5] || "Version 0.11", proto[0][6] || "", proto[0][7] || "Unknown", proto[0][8] || "Unknown", proto[0][9] || "Unknown"]; var stringsUnicode = []; var i, ii, j, jj, str; @@ -25033,15 +25049,15 @@ var Font = function FontClosure() { strBufUnicode.push(string16(str.charCodeAt(j))); } - stringsUnicode.push(strBufUnicode.join('')); + stringsUnicode.push(strBufUnicode.join("")); } var names = [strings, stringsUnicode]; - var platforms = ['\x00\x01', '\x00\x03']; - var encodings = ['\x00\x00', '\x00\x01']; - var languages = ['\x00\x00', '\x04\x09']; + var platforms = ["\x00\x01", "\x00\x03"]; + var encodings = ["\x00\x00", "\x00\x01"]; + var languages = ["\x00\x00", "\x04\x09"]; var namesRecordCount = strings.length * platforms.length; - var nameTable = '\x00\x00' + string16(namesRecordCount) + string16(namesRecordCount * 12 + 6); + var nameTable = "\x00\x00" + string16(namesRecordCount) + string16(namesRecordCount * 12 + 6); var strOffset = 0; for (i = 0, ii = platforms.length; i < ii; i++) { @@ -25055,7 +25071,7 @@ var Font = function FontClosure() { } } - nameTable += strings.join('') + stringsUnicode.join(''); + nameTable += strings.join("") + stringsUnicode.join(""); return nameTable; } @@ -25069,7 +25085,7 @@ var Font = function FontClosure() { get renderer() { var renderer = _font_renderer.FontRendererFactory.create(this, SEAC_ANALYSIS_ENABLED); - return (0, _util.shadow)(this, 'renderer', renderer); + return (0, _util.shadow)(this, "renderer", renderer); }, exportData: function Font_exportData() { @@ -25089,7 +25105,7 @@ var Font = function FontClosure() { var name = this.name; var type = this.type; var subtype = this.subtype; - var fontName = name.replace(/[,_]/g, '-'); + var fontName = name.replace(/[,_]/g, "-"); var stdFontMap = (0, _standard_fonts.getStdFontMap)(), nonStdFontMap = (0, _standard_fonts.getNonStdFontMap)(); var isStandardFont = !!stdFontMap[fontName] || !!(nonStdFontMap[fontName] && stdFontMap[nonStdFontMap[fontName]]); @@ -25099,7 +25115,7 @@ var Font = function FontClosure() { this.black = name.search(/Black/g) !== -1; this.remeasure = Object.keys(this.widths).length > 0; - if (isStandardFont && type === 'CIDFontType2' && this.cidEncoding.startsWith('Identity-')) { + if (isStandardFont && type === "CIDFontType2" && this.cidEncoding.startsWith("Identity-")) { const GlyphMapForStandardFonts = (0, _standard_fonts.getGlyphMapForStandardFonts)(); const map = []; @@ -25135,7 +25151,7 @@ var Font = function FontClosure() { this.toFontChar = buildToFontChar(_encodings.SymbolSetEncoding, (0, _glyphlist.getGlyphsUnicode)(), this.differences); } else if (/Dingbats/i.test(fontName)) { if (/Wingdings/i.test(name)) { - (0, _util.warn)('Non-embedded Wingdings font, falling back to ZapfDingbats.'); + (0, _util.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."); } this.toFontChar = buildToFontChar(_encodings.ZapfDingbatsEncoding, (0, _glyphlist.getDingbatsGlyphsUnicode)(), this.differences); @@ -25170,22 +25186,22 @@ var Font = function FontClosure() { this.toFontChar = map; } - this.loadedName = fontName.split('-')[0]; + this.loadedName = fontName.split("-")[0]; this.fontType = getFontType(type, subtype); }, checkAndRepair: function Font_checkAndRepair(name, font, properties) { - const VALID_TABLES = ['OS/2', 'cmap', 'head', 'hhea', 'hmtx', 'maxp', 'name', 'post', 'loca', 'glyf', 'fpgm', 'prep', 'cvt ', 'CFF ']; + const VALID_TABLES = ["OS/2", "cmap", "head", "hhea", "hmtx", "maxp", "name", "post", "loca", "glyf", "fpgm", "prep", "cvt ", "CFF "]; function readTables(file, numTables) { let tables = Object.create(null); - tables['OS/2'] = null; - tables['cmap'] = null; - tables['head'] = null; - tables['hhea'] = null; - tables['hmtx'] = null; - tables['maxp'] = null; - tables['name'] = null; - tables['post'] = null; + tables["OS/2"] = null; + tables["cmap"] = null; + tables["head"] = null; + tables["hhea"] = null; + tables["hmtx"] = null; + tables["maxp"] = null; + tables["name"] = null; + tables["post"] = null; for (let i = 0; i < numTables; i++) { let table = readTableEntry(font); @@ -25215,7 +25231,7 @@ var Font = function FontClosure() { var data = file.getBytes(length); file.pos = previousPosition; - if (tag === 'head') { + if (tag === "head") { data[8] = data[9] = data[10] = data[11] = 0; data[17] |= 0x20; } @@ -25241,7 +25257,7 @@ var Font = function FontClosure() { function readTrueTypeCollectionHeader(ttc) { let ttcTag = (0, _util.bytesToString)(ttc.getBytes(4)); - (0, _util.assert)(ttcTag === 'ttcf', 'Must be a TrueType Collection font.'); + (0, _util.assert)(ttcTag === "ttcf", "Must be a TrueType Collection font."); let majorVersion = ttc.getUint16(); let minorVersion = ttc.getUint16(); let numFonts = ttc.getInt32() >>> 0; @@ -25284,17 +25300,17 @@ var Font = function FontClosure() { let potentialHeader = readOpenTypeHeader(ttc); let potentialTables = readTables(ttc, potentialHeader.numTables); - if (!potentialTables['name']) { + if (!potentialTables["name"]) { throw new _util.FormatError('TrueType Collection font must contain a "name" table.'); } - let nameTable = readNameTable(potentialTables['name']); + let nameTable = readNameTable(potentialTables["name"]); for (let j = 0, jj = nameTable.length; j < jj; j++) { for (let k = 0, kk = nameTable[j].length; k < kk; k++) { let nameEntry = nameTable[j][k]; - if (nameEntry && nameEntry.replace(/\s/g, '') === fontName) { + if (nameEntry && nameEntry.replace(/\s/g, "") === fontName) { return { header: potentialHeader, tables: potentialTables @@ -25309,7 +25325,7 @@ var Font = function FontClosure() { function readCmapTable(cmap, font, isSymbolicFont, hasEncoding) { if (!cmap) { - (0, _util.warn)('No cmap table available.'); + (0, _util.warn)("No cmap table available."); return { platformId: -1, encodingId: -1, @@ -25369,7 +25385,7 @@ var Font = function FontClosure() { } if (!potentialTable || font.peekByte() === -1) { - (0, _util.warn)('Could not find a preferred cmap table.'); + (0, _util.warn)("Could not find a preferred cmap table."); return { platformId: -1, encodingId: -1, @@ -25452,12 +25468,12 @@ var Font = function FontClosure() { offsetIndex = segment.offsetIndex; for (j = start; j <= end; j++) { - if (j === 0xFFFF) { + if (j === 0xffff) { continue; } glyphId = offsetIndex < 0 ? j : offsets[offsetIndex + j - start]; - glyphId = glyphId + delta & 0xFFFF; + glyphId = glyphId + delta & 0xffff; mappings.push({ charCode: j, glyphId @@ -25477,7 +25493,7 @@ var Font = function FontClosure() { }); } } else { - (0, _util.warn)('cmap table has unsupported format: ' + format); + (0, _util.warn)("cmap table has unsupported format: " + format); return { platformId: -1, encodingId: -1, @@ -25531,7 +25547,7 @@ var Font = function FontClosure() { var numOfMetrics = font.getUint16(); if (numOfMetrics > numGlyphs) { - (0, _util.info)('The numOfMetrics (' + numOfMetrics + ') should not be ' + 'greater than the numGlyphs (' + numGlyphs + ')'); + (0, _util.info)("The numOfMetrics (" + numOfMetrics + ") should not be " + "greater than the numGlyphs (" + numGlyphs + ")"); numOfMetrics = numGlyphs; header.data[34] = (numOfMetrics & 0xff00) >> 8; header.data[35] = numOfMetrics & 0x00ff; @@ -25594,8 +25610,8 @@ var Font = function FontClosure() { for (i = 0; i < flagsCount; i++) { var flag = glyf[j++]; - if (flag & 0xC0) { - glyf[j - 1] = flag & 0x3F; + if (flag & 0xc0) { + glyf[j - 1] = flag & 0x3f; } var xyLength = (flag & 2 ? 1 : flag & 16 ? 0 : 2) + (flag & 4 ? 1 : flag & 32 ? 0 : 2); @@ -25649,7 +25665,7 @@ var Font = function FontClosure() { var version = int32(data[0], data[1], data[2], data[3]); if (version >> 16 !== 1) { - (0, _util.info)('Attempting to fix invalid version in head table: ' + version); + (0, _util.info)("Attempting to fix invalid version in head table: " + version); data[0] = 0; data[1] = 1; data[2] = 0; @@ -25659,7 +25675,7 @@ var Font = function FontClosure() { var indexToLocFormat = int16(data[50], data[51]); if (indexToLocFormat < 0 || indexToLocFormat > 1) { - (0, _util.info)('Attempting to fix invalid indexToLocFormat in head table: ' + indexToLocFormat); + (0, _util.info)("Attempting to fix invalid indexToLocFormat in head table: " + indexToLocFormat); var numGlyphsPlusOne = numGlyphs + 1; if (locaLength === numGlyphsPlusOne << 1) { @@ -25669,7 +25685,7 @@ var Font = function FontClosure() { data[50] = 0; data[51] = 1; } else { - throw new _util.FormatError('Could not fix indexToLocFormat: ' + indexToLocFormat); + throw new _util.FormatError("Could not fix indexToLocFormat: " + indexToLocFormat); } } } @@ -25685,10 +25701,10 @@ var Font = function FontClosure() { }; itemEncode = function fontItemEncodeLong(data, offset, value) { - data[offset] = value >>> 24 & 0xFF; - data[offset + 1] = value >> 16 & 0xFF; - data[offset + 2] = value >> 8 & 0xFF; - data[offset + 3] = value & 0xFF; + data[offset] = value >>> 24 & 0xff; + data[offset + 1] = value >> 16 & 0xff; + data[offset + 2] = value >> 8 & 0xff; + data[offset + 3] = value & 0xff; }; } else { itemSize = 2; @@ -25698,8 +25714,8 @@ var Font = function FontClosure() { }; itemEncode = function fontItemEncode(data, offset, value) { - data[offset] = value >> 9 & 0xFF; - data[offset + 1] = value >> 1 & 0xFF; + data[offset] = value >> 9 & 0xff; + data[offset + 1] = value >> 1 & 0xff; }; } @@ -25830,7 +25846,7 @@ var Font = function FontClosure() { strBuf[i] = String.fromCharCode(font.getByte()); } - customNames.push(strBuf.join('')); + customNames.push(strBuf.join("")); } glyphNames = []; @@ -25852,7 +25868,7 @@ var Font = function FontClosure() { break; default: - (0, _util.warn)('Unknown/unsupported post table version ' + version); + (0, _util.warn)("Unknown/unsupported post table version " + version); valid = false; if (properties.defaultEncoding) { @@ -25917,7 +25933,7 @@ var Font = function FontClosure() { var nameIndex = record.name; if (record.encoding) { - var str = ''; + var str = ""; for (var j = 0, jj = record.length; j < jj; j += 2) { str += String.fromCharCode(font.getUint16()); @@ -25976,8 +25992,8 @@ var Font = function FontClosure() { stack.push(b << 8 | data[i++]); } } - } else if ((op & 0xF8) === 0xB0) { - n = op - 0xB0 + 1; + } else if ((op & 0xf8) === 0xb0) { + n = op - 0xb0 + 1; if (inFDEF || inELSE) { i += n; @@ -25986,8 +26002,8 @@ var Font = function FontClosure() { stack.push(data[i++]); } } - } else if ((op & 0xF8) === 0xB8) { - n = op - 0xB8 + 1; + } else if ((op & 0xf8) === 0xb8) { + n = op - 0xb8 + 1; if (inFDEF || inELSE) { i += n * 2; @@ -25997,12 +26013,12 @@ var Font = function FontClosure() { stack.push(b << 8 | data[i++]); } } - } else if (op === 0x2B && !tooComplexToFollowFunctions) { + } else if (op === 0x2b && !tooComplexToFollowFunctions) { if (!inFDEF && !inELSE) { funcId = stack[stack.length - 1]; if (isNaN(funcId)) { - (0, _util.info)('TT: CALL empty stack (or invalid entry).'); + (0, _util.info)("TT: CALL empty stack (or invalid entry)."); } else { ttContext.functionsUsed[funcId] = true; @@ -26010,7 +26026,7 @@ var Font = function FontClosure() { let newStackLength = stack.length + ttContext.functionsStackDeltas[funcId]; if (newStackLength < 0) { - (0, _util.warn)('TT: CALL invalid functions stack delta.'); + (0, _util.warn)("TT: CALL invalid functions stack delta."); ttContext.hintsValid = false; return; } @@ -26026,7 +26042,7 @@ var Font = function FontClosure() { pc = ttContext.functionsDefined[funcId]; if (!pc) { - (0, _util.warn)('TT: CALL non-existent function'); + (0, _util.warn)("TT: CALL non-existent function"); ttContext.hintsValid = false; return; } @@ -26036,9 +26052,9 @@ var Font = function FontClosure() { } } } - } else if (op === 0x2C && !tooComplexToFollowFunctions) { + } else if (op === 0x2c && !tooComplexToFollowFunctions) { if (inFDEF || inELSE) { - (0, _util.warn)('TT: nested FDEFs not allowed'); + (0, _util.warn)("TT: nested FDEFs not allowed"); tooComplexToFollowFunctions = true; } @@ -26049,7 +26065,7 @@ var Font = function FontClosure() { data, i }; - } else if (op === 0x2D) { + } else if (op === 0x2d) { if (inFDEF) { inFDEF = false; lastEndf = i; @@ -26057,7 +26073,7 @@ var Font = function FontClosure() { pc = callstack.pop(); if (!pc) { - (0, _util.warn)('TT: ENDF bad stack'); + (0, _util.warn)("TT: ENDF bad stack"); ttContext.hintsValid = false; return; } @@ -26069,7 +26085,7 @@ var Font = function FontClosure() { } } else if (op === 0x89) { if (inFDEF || inELSE) { - (0, _util.warn)('TT: nested IDEFs not allowed'); + (0, _util.warn)("TT: nested IDEFs not allowed"); tooComplexToFollowFunctions = true; } @@ -26077,7 +26093,7 @@ var Font = function FontClosure() { lastDeff = i; } else if (op === 0x58) { ++ifLevel; - } else if (op === 0x1B) { + } else if (op === 0x1b) { inELSE = ifLevel; } else if (op === 0x59) { if (inELSE === ifLevel) { @@ -26085,7 +26101,7 @@ var Font = function FontClosure() { } --ifLevel; - } else if (op === 0x1C) { + } else if (op === 0x1c) { if (!inFDEF && !inELSE) { var offset = stack[stack.length - 1]; @@ -26096,7 +26112,7 @@ var Font = function FontClosure() { } if (!inFDEF && !inELSE) { - var stackDelta = op <= 0x8E ? TTOpsStackDeltas[op] : op >= 0xC0 && op <= 0xDF ? -1 : op >= 0xE0 ? -2 : 0; + var stackDelta = op <= 0x8e ? TTOpsStackDeltas[op] : op >= 0xc0 && op <= 0xdf ? -1 : op >= 0xe0 ? -2 : 0; if (op >= 0x71 && op <= 0x75) { n = stack.pop(); @@ -26126,8 +26142,8 @@ var Font = function FontClosure() { } if (lastDeff > lastEndf) { - (0, _util.warn)('TT: complementing a missing function tail'); - content.push(new Uint8Array([0x22, 0x2D])); + (0, _util.warn)("TT: complementing a missing function tail"); + content.push(new Uint8Array([0x22, 0x2d])); } foldTTTable(table, content); @@ -26139,20 +26155,20 @@ var Font = function FontClosure() { } if (ttContext.functionsDefined.length > maxFunctionDefs) { - (0, _util.warn)('TT: more functions defined than expected'); + (0, _util.warn)("TT: more functions defined than expected"); ttContext.hintsValid = false; return; } for (var j = 0, jj = ttContext.functionsUsed.length; j < jj; j++) { if (j > maxFunctionDefs) { - (0, _util.warn)('TT: invalid function id: ' + j); + (0, _util.warn)("TT: invalid function id: " + j); ttContext.hintsValid = false; return; } if (ttContext.functionsUsed[j] && !ttContext.functionsDefined[j]) { - (0, _util.warn)('TT: undefined function: ' + j); + (0, _util.warn)("TT: undefined function: " + j); ttContext.hintsValid = false; return; } @@ -26225,33 +26241,33 @@ var Font = function FontClosure() { } let cff, cffFile; - var isTrueType = !tables['CFF ']; + var isTrueType = !tables["CFF "]; if (!isTrueType) { const isComposite = properties.composite && ((properties.cidToGidMap || []).length > 0 || !(properties.cMap instanceof _cmap.IdentityCMap)); - if (header.version === 'OTTO' && !isComposite || !tables['head'] || !tables['hhea'] || !tables['maxp'] || !tables['post']) { - cffFile = new _stream.Stream(tables['CFF '].data); + if (header.version === "OTTO" && !isComposite || !tables["head"] || !tables["hhea"] || !tables["maxp"] || !tables["post"]) { + cffFile = new _stream.Stream(tables["CFF "].data); cff = new CFFFont(cffFile, properties); adjustWidths(properties); return this.convert(name, cff, properties); } - delete tables['glyf']; - delete tables['loca']; - delete tables['fpgm']; - delete tables['prep']; - delete tables['cvt ']; + delete tables["glyf"]; + delete tables["loca"]; + delete tables["fpgm"]; + delete tables["prep"]; + delete tables["cvt "]; this.isOpenType = true; } else { - if (!tables['loca']) { + if (!tables["loca"]) { throw new _util.FormatError('Required "loca" table is not found'); } - if (!tables['glyf']) { + if (!tables["glyf"]) { (0, _util.warn)('Required "glyf" table is not found -- trying to recover.'); - tables['glyf'] = { - tag: 'glyf', + tables["glyf"] = { + tag: "glyf", data: new Uint8Array(0) }; } @@ -26259,32 +26275,32 @@ var Font = function FontClosure() { this.isOpenType = false; } - if (!tables['maxp']) { + if (!tables["maxp"]) { throw new _util.FormatError('Required "maxp" table is not found'); } - font.pos = (font.start || 0) + tables['maxp'].offset; + font.pos = (font.start || 0) + tables["maxp"].offset; var version = font.getInt32(); const numGlyphs = font.getUint16(); let numGlyphsOut = numGlyphs + 1; let dupFirstEntry = true; - if (numGlyphsOut > 0xFFFF) { + if (numGlyphsOut > 0xffff) { dupFirstEntry = false; numGlyphsOut = numGlyphs; - (0, _util.warn)('Not enough space in glyfs to duplicate first glyph.'); + (0, _util.warn)("Not enough space in glyfs to duplicate first glyph."); } var maxFunctionDefs = 0; var maxSizeOfInstructions = 0; - if (version >= 0x00010000 && tables['maxp'].length >= 22) { + if (version >= 0x00010000 && tables["maxp"].length >= 22) { font.pos += 8; var maxZones = font.getUint16(); if (maxZones > 2) { - tables['maxp'].data[14] = 0; - tables['maxp'].data[15] = 2; + tables["maxp"].data[14] = 0; + tables["maxp"].data[15] = 2; } font.pos += 4; @@ -26293,61 +26309,61 @@ var Font = function FontClosure() { maxSizeOfInstructions = font.getUint16(); } - tables['maxp'].data[4] = numGlyphsOut >> 8; - tables['maxp'].data[5] = numGlyphsOut & 255; - var hintsValid = sanitizeTTPrograms(tables['fpgm'], tables['prep'], tables['cvt '], maxFunctionDefs); + tables["maxp"].data[4] = numGlyphsOut >> 8; + tables["maxp"].data[5] = numGlyphsOut & 255; + var hintsValid = sanitizeTTPrograms(tables["fpgm"], tables["prep"], tables["cvt "], maxFunctionDefs); if (!hintsValid) { - delete tables['fpgm']; - delete tables['prep']; - delete tables['cvt ']; + delete tables["fpgm"]; + delete tables["prep"]; + delete tables["cvt "]; } - sanitizeMetrics(font, tables['hhea'], tables['hmtx'], numGlyphsOut, dupFirstEntry); + sanitizeMetrics(font, tables["hhea"], tables["hmtx"], numGlyphsOut, dupFirstEntry); - if (!tables['head']) { + if (!tables["head"]) { throw new _util.FormatError('Required "head" table is not found'); } - sanitizeHead(tables['head'], numGlyphs, isTrueType ? tables['loca'].length : 0); + sanitizeHead(tables["head"], numGlyphs, isTrueType ? tables["loca"].length : 0); var missingGlyphs = Object.create(null); if (isTrueType) { - var isGlyphLocationsLong = int16(tables['head'].data[50], tables['head'].data[51]); - var glyphsInfo = sanitizeGlyphLocations(tables['loca'], tables['glyf'], numGlyphs, isGlyphLocationsLong, hintsValid, dupFirstEntry, maxSizeOfInstructions); + var isGlyphLocationsLong = int16(tables["head"].data[50], tables["head"].data[51]); + var glyphsInfo = sanitizeGlyphLocations(tables["loca"], tables["glyf"], numGlyphs, isGlyphLocationsLong, hintsValid, dupFirstEntry, maxSizeOfInstructions); missingGlyphs = glyphsInfo.missingGlyphs; - if (version >= 0x00010000 && tables['maxp'].length >= 22) { - tables['maxp'].data[26] = glyphsInfo.maxSizeOfInstructions >> 8; - tables['maxp'].data[27] = glyphsInfo.maxSizeOfInstructions & 255; + if (version >= 0x00010000 && tables["maxp"].length >= 22) { + tables["maxp"].data[26] = glyphsInfo.maxSizeOfInstructions >> 8; + tables["maxp"].data[27] = glyphsInfo.maxSizeOfInstructions & 255; } } - if (!tables['hhea']) { + if (!tables["hhea"]) { throw new _util.FormatError('Required "hhea" table is not found'); } - if (tables['hhea'].data[10] === 0 && tables['hhea'].data[11] === 0) { - tables['hhea'].data[10] = 0xFF; - tables['hhea'].data[11] = 0xFF; + if (tables["hhea"].data[10] === 0 && tables["hhea"].data[11] === 0) { + tables["hhea"].data[10] = 0xff; + tables["hhea"].data[11] = 0xff; } var metricsOverride = { - unitsPerEm: int16(tables['head'].data[18], tables['head'].data[19]), - yMax: int16(tables['head'].data[42], tables['head'].data[43]), - yMin: signedInt16(tables['head'].data[38], tables['head'].data[39]), - ascent: int16(tables['hhea'].data[4], tables['hhea'].data[5]), - descent: signedInt16(tables['hhea'].data[6], tables['hhea'].data[7]) + unitsPerEm: int16(tables["head"].data[18], tables["head"].data[19]), + yMax: int16(tables["head"].data[42], tables["head"].data[43]), + yMin: signedInt16(tables["head"].data[38], tables["head"].data[39]), + ascent: int16(tables["hhea"].data[4], tables["hhea"].data[5]), + descent: signedInt16(tables["hhea"].data[6], tables["hhea"].data[7]) }; this.ascent = metricsOverride.ascent / metricsOverride.unitsPerEm; this.descent = metricsOverride.descent / metricsOverride.unitsPerEm; - if (tables['post']) { - readPostScriptTable(tables['post'], properties, numGlyphs); + if (tables["post"]) { + readPostScriptTable(tables["post"], properties, numGlyphs); } - tables['post'] = { - tag: 'post', + tables["post"] = { + tag: "post", data: createPostTable(properties) }; var charCodeToGlyphId = [], @@ -26362,7 +26378,7 @@ var Font = function FontClosure() { var isCidToGidMapEmpty = cidToGidMap.length === 0; properties.cMap.forEach(function (charCode, cid) { if (cid > 0xffff) { - throw new _util.FormatError('Max size of CID is 65,535'); + throw new _util.FormatError("Max size of CID is 65,535"); } var glyphId = -1; @@ -26378,7 +26394,7 @@ var Font = function FontClosure() { } }); } else { - var cmapTable = readCmapTable(tables['cmap'], font, this.isSymbolicFont, properties.hasEncoding); + var cmapTable = readCmapTable(tables["cmap"], font, this.isSymbolicFont, properties.hasEncoding); var cmapPlatformId = cmapTable.platformId; var cmapEncodingId = cmapTable.encodingId; var cmapMappings = cmapTable.mappings; @@ -26387,7 +26403,7 @@ var Font = function FontClosure() { if (properties.hasEncoding && (cmapPlatformId === 3 && cmapEncodingId === 1 || cmapPlatformId === 1 && cmapEncodingId === 0) || cmapPlatformId === -1 && cmapEncodingId === -1 && !!(0, _encodings.getEncoding)(properties.baseEncodingName)) { var baseEncoding = []; - if (properties.baseEncodingName === 'MacRomanEncoding' || properties.baseEncodingName === 'WinAnsiEncoding') { + if (properties.baseEncodingName === "MacRomanEncoding" || properties.baseEncodingName === "WinAnsiEncoding") { baseEncoding = (0, _encodings.getEncoding)(properties.baseEncodingName); } @@ -26398,7 +26414,7 @@ var Font = function FontClosure() { if (this.differences && charCode in this.differences) { glyphName = this.differences[charCode]; - } else if (charCode in baseEncoding && baseEncoding[charCode] !== '') { + } else if (charCode in baseEncoding && baseEncoding[charCode] !== "") { glyphName = baseEncoding[charCode]; } else { glyphName = _encodings.StandardEncoding[charCode]; @@ -26449,8 +26465,8 @@ var Font = function FontClosure() { for (let i = 0; i < cmapMappingsLength; ++i) { charCode = cmapMappings[i].charCode; - if (cmapPlatformId === 3 && charCode >= 0xF000 && charCode <= 0xF0FF) { - charCode &= 0xFF; + if (cmapPlatformId === 3 && charCode >= 0xf000 && charCode <= 0xf0ff) { + charCode &= 0xff; } charCodeToGlyphId[charCode] = cmapMappings[i].glyphId; @@ -26470,39 +26486,39 @@ var Font = function FontClosure() { var newMapping = adjustMapping(charCodeToGlyphId, hasGlyph, glyphZeroId); this.toFontChar = newMapping.toFontChar; - tables['cmap'] = { - tag: 'cmap', + tables["cmap"] = { + tag: "cmap", data: createCmapTable(newMapping.charCodeToGlyphId, numGlyphsOut) }; - if (!tables['OS/2'] || !validateOS2Table(tables['OS/2'])) { - tables['OS/2'] = { - tag: 'OS/2', + if (!tables["OS/2"] || !validateOS2Table(tables["OS/2"])) { + tables["OS/2"] = { + tag: "OS/2", data: createOS2Table(properties, newMapping.charCodeToGlyphId, metricsOverride) }; } if (!isTrueType) { try { - cffFile = new _stream.Stream(tables['CFF '].data); + cffFile = new _stream.Stream(tables["CFF "].data); var parser = new _cff_parser.CFFParser(cffFile, properties, SEAC_ANALYSIS_ENABLED); cff = parser.parse(); cff.duplicateFirstGlyph(); var compiler = new _cff_parser.CFFCompiler(cff); - tables['CFF '].data = compiler.compile(); + tables["CFF "].data = compiler.compile(); } catch (e) { - (0, _util.warn)('Failed to compile font ' + properties.loadedName); + (0, _util.warn)("Failed to compile font " + properties.loadedName); } } - if (!tables['name']) { - tables['name'] = { - tag: 'name', + if (!tables["name"]) { + tables["name"] = { + tag: "name", data: createNameTable(this.name) }; } else { - var namePrototype = readNameTable(tables['name']); - tables['name'].data = createNameTable(name, namePrototype); + var namePrototype = readNameTable(tables["name"]); + tables["name"].data = createNameTable(name, namePrototype); } var builder = new OpenTypeFileBuilder(header.version); @@ -26604,23 +26620,23 @@ var Font = function FontClosure() { } var unitsPerEm = 1 / (properties.fontMatrix || _util.FONT_IDENTITY_MATRIX)[0]; - var builder = new OpenTypeFileBuilder('\x4F\x54\x54\x4F'); - builder.addTable('CFF ', font.data); - builder.addTable('OS/2', createOS2Table(properties, newMapping.charCodeToGlyphId)); - builder.addTable('cmap', createCmapTable(newMapping.charCodeToGlyphId, numGlyphs)); - builder.addTable('head', '\x00\x01\x00\x00' + '\x00\x00\x10\x00' + '\x00\x00\x00\x00' + '\x5F\x0F\x3C\xF5' + '\x00\x00' + safeString16(unitsPerEm) + '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + '\x00\x00' + safeString16(properties.descent) + '\x0F\xFF' + safeString16(properties.ascent) + string16(properties.italicAngle ? 2 : 0) + '\x00\x11' + '\x00\x00' + '\x00\x00' + '\x00\x00'); - builder.addTable('hhea', '\x00\x01\x00\x00' + safeString16(properties.ascent) + safeString16(properties.descent) + '\x00\x00' + '\xFF\xFF' + '\x00\x00' + '\x00\x00' + '\x00\x00' + safeString16(properties.capHeight) + safeString16(Math.tan(properties.italicAngle) * properties.xHeight) + '\x00\x00' + '\x00\x00' + '\x00\x00' + '\x00\x00' + '\x00\x00' + '\x00\x00' + string16(numGlyphs)); - builder.addTable('hmtx', function fontFieldsHmtx() { + var builder = new OpenTypeFileBuilder("\x4F\x54\x54\x4F"); + builder.addTable("CFF ", font.data); + builder.addTable("OS/2", createOS2Table(properties, newMapping.charCodeToGlyphId)); + builder.addTable("cmap", createCmapTable(newMapping.charCodeToGlyphId, numGlyphs)); + builder.addTable("head", "\x00\x01\x00\x00" + "\x00\x00\x10\x00" + "\x00\x00\x00\x00" + "\x5F\x0F\x3C\xF5" + "\x00\x00" + safeString16(unitsPerEm) + "\x00\x00\x00\x00\x9e\x0b\x7e\x27" + "\x00\x00\x00\x00\x9e\x0b\x7e\x27" + "\x00\x00" + safeString16(properties.descent) + "\x0F\xFF" + safeString16(properties.ascent) + string16(properties.italicAngle ? 2 : 0) + "\x00\x11" + "\x00\x00" + "\x00\x00" + "\x00\x00"); + builder.addTable("hhea", "\x00\x01\x00\x00" + safeString16(properties.ascent) + safeString16(properties.descent) + "\x00\x00" + "\xFF\xFF" + "\x00\x00" + "\x00\x00" + "\x00\x00" + safeString16(properties.capHeight) + safeString16(Math.tan(properties.italicAngle) * properties.xHeight) + "\x00\x00" + "\x00\x00" + "\x00\x00" + "\x00\x00" + "\x00\x00" + "\x00\x00" + string16(numGlyphs)); + builder.addTable("hmtx", function fontFieldsHmtx() { var charstrings = font.charstrings; var cffWidths = font.cff ? font.cff.widths : null; - var hmtx = '\x00\x00\x00\x00'; + var hmtx = "\x00\x00\x00\x00"; for (var i = 1, ii = numGlyphs; i < ii; i++) { var width = 0; if (charstrings) { var charstring = charstrings[i - 1]; - width = 'width' in charstring ? charstring.width : 0; + width = "width" in charstring ? charstring.width : 0; } else if (cffWidths) { width = Math.ceil(cffWidths[i] || 0); } @@ -26630,18 +26646,18 @@ var Font = function FontClosure() { return hmtx; }()); - builder.addTable('maxp', '\x00\x00\x50\x00' + string16(numGlyphs)); - builder.addTable('name', createNameTable(fontName)); - builder.addTable('post', createPostTable(properties)); + builder.addTable("maxp", "\x00\x00\x50\x00" + string16(numGlyphs)); + builder.addTable("name", createNameTable(fontName)); + builder.addTable("post", createPostTable(properties)); return builder.toArray(); }, get spaceWidth() { - if ('_shadowWidth' in this) { + if ("_shadowWidth" in this) { return this._shadowWidth; } - var possibleSpaceReplacements = ['space', 'minus', 'one', 'i', 'I']; + var possibleSpaceReplacements = ["space", "minus", "one", "i", "I"]; var width; for (var i = 0, ii = possibleSpaceReplacements.length; i < ii; i++) { @@ -26695,7 +26711,7 @@ var Font = function FontClosure() { var vmetric = this.vmetrics && this.vmetrics[widthCode]; let unicode = this.toUnicode.get(charcode) || this.fallbackToUnicode.get(charcode) || charcode; - if (typeof unicode === 'number') { + if (typeof unicode === "number") { unicode = String.fromCharCode(unicode); } @@ -26722,7 +26738,7 @@ var Font = function FontClosure() { }; } - var fontChar = typeof fontCharCode === 'number' ? String.fromCodePoint(fontCharCode) : ''; + var fontChar = typeof fontCharCode === "number" ? String.fromCodePoint(fontCharCode) : ""; var glyph = this.glyphCache[charcode]; if (!glyph || !glyph.matchesForCache(fontChar, unicode, accent, width, vmetric, operatorListId, isSpace, isInFont)) { @@ -26789,7 +26805,7 @@ exports.Font = Font; var ErrorFont = function ErrorFontClosure() { function ErrorFont(error) { this.error = error; - this.loadedName = 'g_font_error'; + this.loadedName = "g_font_error"; this.missingFile = true; } @@ -27023,7 +27039,7 @@ var Type1Font = function Type1FontClosure() { }, getCharset: function Type1Font_getCharset() { - var charset = ['.notdef']; + var charset = [".notdef"]; var charstrings = this.charstrings; for (var glyphId = 0; glyphId < charstrings.length; glyphId++) { @@ -27034,7 +27050,7 @@ var Type1Font = function Type1FontClosure() { }, getGlyphMapping: function Type1Font_getGlyphMapping(properties) { var charstrings = this.charstrings; - var glyphNames = ['.notdef'], + var glyphNames = [".notdef"], glyphId; for (glyphId = 0; glyphId < charstrings.length; glyphId++) { @@ -27108,7 +27124,7 @@ var Type1Font = function Type1FontClosure() { var i; for (i = 0; i < bias; i++) { - type2Subrs.push([0x0B]); + type2Subrs.push([0x0b]); } for (i = 0; i < count; i++) { @@ -27122,28 +27138,28 @@ var Type1Font = function Type1FontClosure() { cff.header = new _cff_parser.CFFHeader(1, 0, 4, 4); cff.names = [name]; var topDict = new _cff_parser.CFFTopDict(); - topDict.setByName('version', 391); - topDict.setByName('Notice', 392); - topDict.setByName('FullName', 393); - topDict.setByName('FamilyName', 394); - topDict.setByName('Weight', 395); - topDict.setByName('Encoding', null); - topDict.setByName('FontMatrix', properties.fontMatrix); - topDict.setByName('FontBBox', properties.bbox); - topDict.setByName('charset', null); - topDict.setByName('CharStrings', null); - topDict.setByName('Private', null); + topDict.setByName("version", 391); + topDict.setByName("Notice", 392); + topDict.setByName("FullName", 393); + topDict.setByName("FamilyName", 394); + topDict.setByName("Weight", 395); + topDict.setByName("Encoding", null); + topDict.setByName("FontMatrix", properties.fontMatrix); + topDict.setByName("FontBBox", properties.bbox); + topDict.setByName("charset", null); + topDict.setByName("CharStrings", null); + topDict.setByName("Private", null); cff.topDict = topDict; var strings = new _cff_parser.CFFStrings(); - strings.add('Version 0.11'); - strings.add('See original notice'); + strings.add("Version 0.11"); + strings.add("See original notice"); strings.add(name); strings.add(name); - strings.add('Medium'); + strings.add("Medium"); cff.strings = strings; cff.globalSubrIndex = new _cff_parser.CFFIndex(); var count = glyphs.length; - var charsetArray = ['.notdef']; + var charsetArray = [".notdef"]; var i, ii; for (i = 0; i < count; i++) { @@ -27160,7 +27176,7 @@ var Type1Font = function Type1FontClosure() { cff.charset = new _cff_parser.CFFCharset(false, 0, charsetArray); var charStringsIndex = new _cff_parser.CFFIndex(); - charStringsIndex.add([0x8B, 0x0E]); + charStringsIndex.add([0x8b, 0x0e]); for (i = 0; i < count; i++) { charStringsIndex.add(glyphs[i]); @@ -27168,8 +27184,8 @@ var Type1Font = function Type1FontClosure() { cff.charStrings = charStringsIndex; var privateDict = new _cff_parser.CFFPrivateDict(); - privateDict.setByName('Subrs', null); - var fields = ['BlueValues', 'OtherBlues', 'FamilyBlues', 'FamilyOtherBlues', 'StemSnapH', 'StemSnapV', 'BlueShift', 'BlueFuzz', 'BlueScale', 'LanguageGroup', 'ExpansionFactor', 'ForceBold', 'StdHW', 'StdVW']; + privateDict.setByName("Subrs", null); + var fields = ["BlueValues", "OtherBlues", "FamilyBlues", "FamilyOtherBlues", "StemSnapH", "StemSnapV", "BlueShift", "BlueFuzz", "BlueScale", "LanguageGroup", "ExpansionFactor", "ForceBold", "StdHW", "StdVW"]; for (i = 0, ii = fields.length; i < ii; i++) { var field = fields[i]; @@ -27216,7 +27232,7 @@ var CFFFont = function CFFFontClosure() { try { this.data = compiler.compile(); } catch (e) { - (0, _util.warn)('Failed to compile font ' + properties.loadedName); + (0, _util.warn)("Failed to compile font " + properties.loadedName); this.data = file; } } @@ -27268,7 +27284,7 @@ var CFFFont = function CFFFontClosure() { }(); /***/ }), -/* 29 */ +/* 28 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -27281,222 +27297,222 @@ exports.CFFFDSelect = exports.CFFCompiler = exports.CFFPrivateDict = exports.CFF var _util = __w_pdfjs_require__(2); -var _charsets = __w_pdfjs_require__(30); +var _charsets = __w_pdfjs_require__(29); -var _encodings = __w_pdfjs_require__(31); +var _encodings = __w_pdfjs_require__(30); var MAX_SUBR_NESTING = 10; -var CFFStandardStrings = ['.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent', 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency', 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl', 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase', 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis', 'perthousand', 'questiondown', 'grave', 'acute', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent', 'dieresis', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron', 'emdash', 'AE', 'ordfeminine', 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae', 'dotlessi', 'lslash', 'oslash', 'oe', 'germandbls', 'onesuperior', 'logicalnot', 'mu', 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn', 'onequarter', 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters', 'twosuperior', 'registered', 'minus', 'eth', 'multiply', 'threesuperior', 'copyright', 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring', 'Atilde', 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute', 'Ocircumflex', 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute', 'Ucircumflex', 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron', 'aacute', 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde', 'ccedilla', 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute', 'icircumflex', 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex', 'odieresis', 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex', 'udieresis', 'ugrave', 'yacute', 'ydieresis', 'zcaron', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'commasuperior', 'threequartersemdash', 'periodsuperior', 'questionsmall', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior', 'tsuperior', 'ff', 'ffi', 'ffl', 'parenleftinferior', 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall', 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah', 'Tildesmall', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall', 'Caronsmall', 'Dotaccentsmall', 'Macronsmall', 'figuredash', 'hypheninferior', 'Ogoneksmall', 'Ringsmall', 'Cedillasmall', 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'foursuperior', 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall', 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall', 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall', 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall', 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall', 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall', 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall', 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall', 'Ydieresissmall', '001.000', '001.001', '001.002', '001.003', 'Black', 'Bold', 'Book', 'Light', 'Medium', 'Regular', 'Roman', 'Semibold']; +var CFFStandardStrings = [".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "endash", "dagger", "daggerdbl", "periodcentered", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "questiondown", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "emdash", "AE", "ordfeminine", "Lslash", "Oslash", "OE", "ordmasculine", "ae", "dotlessi", "lslash", "oslash", "oe", "germandbls", "onesuperior", "logicalnot", "mu", "trademark", "Eth", "onehalf", "plusminus", "Thorn", "onequarter", "divide", "brokenbar", "degree", "thorn", "threequarters", "twosuperior", "registered", "minus", "eth", "multiply", "threesuperior", "copyright", "Aacute", "Acircumflex", "Adieresis", "Agrave", "Aring", "Atilde", "Ccedilla", "Eacute", "Ecircumflex", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Ntilde", "Oacute", "Ocircumflex", "Odieresis", "Ograve", "Otilde", "Scaron", "Uacute", "Ucircumflex", "Udieresis", "Ugrave", "Yacute", "Ydieresis", "Zcaron", "aacute", "acircumflex", "adieresis", "agrave", "aring", "atilde", "ccedilla", "eacute", "ecircumflex", "edieresis", "egrave", "iacute", "icircumflex", "idieresis", "igrave", "ntilde", "oacute", "ocircumflex", "odieresis", "ograve", "otilde", "scaron", "uacute", "ucircumflex", "udieresis", "ugrave", "yacute", "ydieresis", "zcaron", "exclamsmall", "Hungarumlautsmall", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "exclamdownsmall", "centoldstyle", "Lslashsmall", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "Dotaccentsmall", "Macronsmall", "figuredash", "hypheninferior", "Ogoneksmall", "Ringsmall", "Cedillasmall", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall", "001.000", "001.001", "001.002", "001.003", "Black", "Bold", "Book", "Light", "Medium", "Regular", "Roman", "Semibold"]; exports.CFFStandardStrings = CFFStandardStrings; const NUM_STANDARD_CFF_STRINGS = 391; var CFFParser = function CFFParserClosure() { var CharstringValidationData = [null, { - id: 'hstem', + id: "hstem", min: 2, stackClearing: true, stem: true }, null, { - id: 'vstem', + id: "vstem", min: 2, stackClearing: true, stem: true }, { - id: 'vmoveto', + id: "vmoveto", min: 1, stackClearing: true }, { - id: 'rlineto', + id: "rlineto", min: 2, resetStack: true }, { - id: 'hlineto', + id: "hlineto", min: 1, resetStack: true }, { - id: 'vlineto', + id: "vlineto", min: 1, resetStack: true }, { - id: 'rrcurveto', + id: "rrcurveto", min: 6, resetStack: true }, null, { - id: 'callsubr', + id: "callsubr", min: 1, undefStack: true }, { - id: 'return', + id: "return", min: 0, undefStack: true }, null, null, { - id: 'endchar', + id: "endchar", min: 0, stackClearing: true }, null, null, null, { - id: 'hstemhm', + id: "hstemhm", min: 2, stackClearing: true, stem: true }, { - id: 'hintmask', + id: "hintmask", min: 0, stackClearing: true }, { - id: 'cntrmask', + id: "cntrmask", min: 0, stackClearing: true }, { - id: 'rmoveto', + id: "rmoveto", min: 2, stackClearing: true }, { - id: 'hmoveto', + id: "hmoveto", min: 1, stackClearing: true }, { - id: 'vstemhm', + id: "vstemhm", min: 2, stackClearing: true, stem: true }, { - id: 'rcurveline', + id: "rcurveline", min: 8, resetStack: true }, { - id: 'rlinecurve', + id: "rlinecurve", min: 8, resetStack: true }, { - id: 'vvcurveto', + id: "vvcurveto", min: 4, resetStack: true }, { - id: 'hhcurveto', + id: "hhcurveto", min: 4, resetStack: true }, null, { - id: 'callgsubr', + id: "callgsubr", min: 1, undefStack: true }, { - id: 'vhcurveto', + id: "vhcurveto", min: 4, resetStack: true }, { - id: 'hvcurveto', + id: "hvcurveto", min: 4, resetStack: true }]; var CharstringValidationData12 = [null, null, null, { - id: 'and', + id: "and", min: 2, stackDelta: -1 }, { - id: 'or', + id: "or", min: 2, stackDelta: -1 }, { - id: 'not', + id: "not", min: 1, stackDelta: 0 }, null, null, null, { - id: 'abs', + id: "abs", min: 1, stackDelta: 0 }, { - id: 'add', + id: "add", min: 2, stackDelta: -1, stackFn: function stack_div(stack, index) { stack[index - 2] = stack[index - 2] + stack[index - 1]; } }, { - id: 'sub', + id: "sub", min: 2, stackDelta: -1, stackFn: function stack_div(stack, index) { stack[index - 2] = stack[index - 2] - stack[index - 1]; } }, { - id: 'div', + id: "div", min: 2, stackDelta: -1, stackFn: function stack_div(stack, index) { stack[index - 2] = stack[index - 2] / stack[index - 1]; } }, null, { - id: 'neg', + id: "neg", min: 1, stackDelta: 0, stackFn: function stack_div(stack, index) { stack[index - 1] = -stack[index - 1]; } }, { - id: 'eq', + id: "eq", min: 2, stackDelta: -1 }, null, null, { - id: 'drop', + id: "drop", min: 1, stackDelta: -1 }, null, { - id: 'put', + id: "put", min: 2, stackDelta: -2 }, { - id: 'get', + id: "get", min: 1, stackDelta: 0 }, { - id: 'ifelse', + id: "ifelse", min: 4, stackDelta: -3 }, { - id: 'random', + id: "random", min: 0, stackDelta: 1 }, { - id: 'mul', + id: "mul", min: 2, stackDelta: -1, stackFn: function stack_div(stack, index) { stack[index - 2] = stack[index - 2] * stack[index - 1]; } }, null, { - id: 'sqrt', + id: "sqrt", min: 1, stackDelta: 0 }, { - id: 'dup', + id: "dup", min: 1, stackDelta: 1 }, { - id: 'exch', + id: "exch", min: 2, stackDelta: 0 }, { - id: 'index', + id: "index", min: 2, stackDelta: 0 }, { - id: 'roll', + id: "roll", min: 3, stackDelta: -2 }, null, null, null, { - id: 'hflex', + id: "hflex", min: 7, resetStack: true }, { - id: 'flex', + id: "flex", min: 13, resetStack: true }, { - id: 'hflex1', + id: "hflex1", min: 9, resetStack: true }, { - id: 'flex1', + id: "flex1", min: 11, resetStack: true }]; @@ -27525,16 +27541,16 @@ var CFFParser = function CFFParserClosure() { cff.topDict = topDict; cff.globalSubrIndex = globalSubrIndex.obj; this.parsePrivateDict(cff.topDict); - cff.isCIDFont = topDict.hasName('ROS'); - var charStringOffset = topDict.getByName('CharStrings'); + cff.isCIDFont = topDict.hasName("ROS"); + var charStringOffset = topDict.getByName("CharStrings"); var charStringIndex = this.parseIndex(charStringOffset).obj; - var fontMatrix = topDict.getByName('FontMatrix'); + var fontMatrix = topDict.getByName("FontMatrix"); if (fontMatrix) { properties.fontMatrix = fontMatrix; } - var fontBBox = topDict.getByName('FontBBox'); + var fontBBox = topDict.getByName("FontBBox"); if (fontBBox) { properties.ascent = Math.max(fontBBox[3], fontBBox[1]); @@ -27545,7 +27561,7 @@ var CFFParser = function CFFParserClosure() { var charset, encoding; if (cff.isCIDFont) { - var fdArrayIndex = this.parseIndex(topDict.getByName('FDArray')).obj; + var fdArrayIndex = this.parseIndex(topDict.getByName("FDArray")).obj; for (var i = 0, ii = fdArrayIndex.count; i < ii; ++i) { var dictRaw = fdArrayIndex.get(i); @@ -27555,11 +27571,11 @@ var CFFParser = function CFFParserClosure() { } encoding = null; - charset = this.parseCharsets(topDict.getByName('charset'), charStringIndex.count, cff.strings, true); - cff.fdSelect = this.parseFDSelect(topDict.getByName('FDSelect'), charStringIndex.count); + charset = this.parseCharsets(topDict.getByName("charset"), charStringIndex.count, cff.strings, true); + cff.fdSelect = this.parseFDSelect(topDict.getByName("FDSelect"), charStringIndex.count); } else { - charset = this.parseCharsets(topDict.getByName('charset'), charStringIndex.count, cff.strings, false); - encoding = this.parseEncoding(topDict.getByName('Encoding'), properties, cff.strings, charset.charset); + charset = this.parseCharsets(topDict.getByName("charset"), charStringIndex.count, cff.strings, false); + encoding = this.parseEncoding(topDict.getByName("Encoding"), properties, cff.strings, charset.charset); } cff.charset = charset; @@ -27587,11 +27603,11 @@ var CFFParser = function CFFParserClosure() { } if (offset >= bytesLength) { - throw new _util.FormatError('Invalid CFF header'); + throw new _util.FormatError("Invalid CFF header"); } if (offset !== 0) { - (0, _util.info)('cff data is shifted'); + (0, _util.info)("cff data is shifted"); bytes = bytes.subarray(offset); this.bytes = bytes; } @@ -27637,9 +27653,9 @@ var CFFParser = function CFFParserClosure() { } function parseFloatOperand() { - var str = ''; + var str = ""; var eof = 15; - var lookup = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.', 'E', 'E-', null, '-']; + const lookup = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ".", "E", "E-", null, "-"]; var length = dict.length; while (pos < length) { @@ -27820,7 +27836,7 @@ var CFFParser = function CFFParserClosure() { if (!subrsIndex) { validationCommand = CharstringValidationData[value]; - (0, _util.warn)('Missing subrsIndex for ' + validationCommand.id); + (0, _util.warn)("Missing subrsIndex for " + validationCommand.id); return false; } @@ -27836,7 +27852,7 @@ var CFFParser = function CFFParserClosure() { if (subrNumber < 0 || subrNumber >= subrsIndex.count || isNaN(subrNumber)) { validationCommand = CharstringValidationData[value]; - (0, _util.warn)('Out of bounds subrIndex for ' + validationCommand.id); + (0, _util.warn)("Out of bounds subrIndex for " + validationCommand.id); return false; } @@ -27865,14 +27881,14 @@ var CFFParser = function CFFParserClosure() { if (value === 3 || value === 23) { state.hasVStems = true; } else if (state.hasVStems && (value === 1 || value === 18)) { - (0, _util.warn)('CFF stem hints are in wrong order'); + (0, _util.warn)("CFF stem hints are in wrong order"); data[j - 1] = value === 1 ? 3 : 23; } } - if ('min' in validationCommand) { + if ("min" in validationCommand) { if (!state.undefStack && stackSize < validationCommand.min) { - (0, _util.warn)('Not enough parameters for ' + validationCommand.id + '; actual: ' + stackSize + ', expected: ' + validationCommand.min); + (0, _util.warn)("Not enough parameters for " + validationCommand.id + "; actual: " + stackSize + ", expected: " + validationCommand.min); return false; } } @@ -27884,7 +27900,7 @@ var CFFParser = function CFFParserClosure() { if (stackSize >= 2 && validationCommand.stem) { stackSize %= 2; } else if (stackSize > 1) { - (0, _util.warn)('Found too many parameters for stack-clearing command'); + (0, _util.warn)("Found too many parameters for stack-clearing command"); } if (stackSize > 0 && stack[stackSize - 1] >= 0) { @@ -27892,8 +27908,8 @@ var CFFParser = function CFFParserClosure() { } } - if ('stackDelta' in validationCommand) { - if ('stackFn' in validationCommand) { + if ("stackDelta" in validationCommand) { + if ("stackFn" in validationCommand) { validationCommand.stackFn(stack, stackSize); } @@ -27948,12 +27964,12 @@ var CFFParser = function CFFParserClosure() { var fdIndex = fdSelect.getFDIndex(i); if (fdIndex === -1) { - (0, _util.warn)('Glyph index is not in fd select.'); + (0, _util.warn)("Glyph index is not in fd select."); valid = false; } if (fdIndex >= fdArray.length) { - (0, _util.warn)('Invalid fd index for glyph index.'); + (0, _util.warn)("Invalid fd index for glyph index."); valid = false; } @@ -27970,10 +27986,10 @@ var CFFParser = function CFFParserClosure() { } if (state.width !== null) { - const nominalWidth = privateDictToUse.getByName('nominalWidthX'); + const nominalWidth = privateDictToUse.getByName("nominalWidthX"); widths[i] = nominalWidth + state.width; } else { - const defaultWidth = privateDictToUse.getByName('defaultWidthX'); + const defaultWidth = privateDictToUse.getByName("defaultWidthX"); widths[i] = defaultWidth; } @@ -27999,15 +28015,15 @@ var CFFParser = function CFFParserClosure() { parentDict.privateDict = privateDict; }, parsePrivateDict: function CFFParser_parsePrivateDict(parentDict) { - if (!parentDict.hasName('Private')) { + if (!parentDict.hasName("Private")) { this.emptyPrivateDictionary(parentDict); return; } - var privateOffset = parentDict.getByName('Private'); + var privateOffset = parentDict.getByName("Private"); if (!Array.isArray(privateOffset) || privateOffset.length !== 2) { - parentDict.removeByName('Private'); + parentDict.removeByName("Private"); return; } @@ -28025,11 +28041,11 @@ var CFFParser = function CFFParserClosure() { var privateDict = this.createDict(CFFPrivateDict, dict, parentDict.strings); parentDict.privateDict = privateDict; - if (!privateDict.getByName('Subrs')) { + if (!privateDict.getByName("Subrs")) { return; } - var subrsOffset = privateDict.getByName('Subrs'); + var subrsOffset = privateDict.getByName("Subrs"); var relativeOffset = offset + subrsOffset; if (subrsOffset === 0 || relativeOffset >= this.bytes.length) { @@ -28052,7 +28068,7 @@ var CFFParser = function CFFParserClosure() { var bytes = this.bytes; var start = pos; var format = bytes[pos++]; - var charset = ['.notdef']; + var charset = [".notdef"]; var id, count, i; length -= 1; @@ -28090,7 +28106,7 @@ var CFFParser = function CFFParserClosure() { break; default: - throw new _util.FormatError('Unknown charset format'); + throw new _util.FormatError("Unknown charset format"); } var end = pos; @@ -28194,7 +28210,7 @@ var CFFParser = function CFFParserClosure() { var first = bytes[pos++] << 8 | bytes[pos++]; if (i === 0 && first !== 0) { - (0, _util.warn)('parseFDSelect: The first range must have a first GID of 0' + ' -- trying to recover.'); + (0, _util.warn)("parseFDSelect: The first range must have a first GID of 0" + " -- trying to recover."); first = 0; } @@ -28214,7 +28230,7 @@ var CFFParser = function CFFParserClosure() { } if (fdSelect.length !== length) { - throw new _util.FormatError('parseFDSelect: Invalid font data.'); + throw new _util.FormatError("parseFDSelect: Invalid font data."); } return new CFFFDSelect(format, fdSelect); @@ -28243,7 +28259,7 @@ var CFF = function CFFClosure() { CFF.prototype = { duplicateFirstGlyph: function CFF_duplicateFirstGlyph() { if (this.charStrings.count >= 65535) { - (0, _util.warn)('Not enough space in charstrings to duplicate first glyph.'); + (0, _util.warn)("Not enough space in charstrings to duplicate first glyph."); return; } @@ -28389,7 +28405,7 @@ var CFFDict = function CFFDictClosure() { var type = this.types[key]; - if (type === 'num' || type === 'sid' || type === 'offset') { + if (type === "num" || type === "sid" || type === "offset") { value = value[0]; } @@ -28452,7 +28468,7 @@ var CFFDict = function CFFDictClosure() { }(); var CFFTopDict = function CFFTopDictClosure() { - var layout = [[[12, 30], 'ROS', ['sid', 'sid', 'num'], null], [[12, 20], 'SyntheticBase', 'num', null], [0, 'version', 'sid', null], [1, 'Notice', 'sid', null], [[12, 0], 'Copyright', 'sid', null], [2, 'FullName', 'sid', null], [3, 'FamilyName', 'sid', null], [4, 'Weight', 'sid', null], [[12, 1], 'isFixedPitch', 'num', 0], [[12, 2], 'ItalicAngle', 'num', 0], [[12, 3], 'UnderlinePosition', 'num', -100], [[12, 4], 'UnderlineThickness', 'num', 50], [[12, 5], 'PaintType', 'num', 0], [[12, 6], 'CharstringType', 'num', 2], [[12, 7], 'FontMatrix', ['num', 'num', 'num', 'num', 'num', 'num'], [0.001, 0, 0, 0.001, 0, 0]], [13, 'UniqueID', 'num', null], [5, 'FontBBox', ['num', 'num', 'num', 'num'], [0, 0, 0, 0]], [[12, 8], 'StrokeWidth', 'num', 0], [14, 'XUID', 'array', null], [15, 'charset', 'offset', 0], [16, 'Encoding', 'offset', 0], [17, 'CharStrings', 'offset', 0], [18, 'Private', ['offset', 'offset'], null], [[12, 21], 'PostScript', 'sid', null], [[12, 22], 'BaseFontName', 'sid', null], [[12, 23], 'BaseFontBlend', 'delta', null], [[12, 31], 'CIDFontVersion', 'num', 0], [[12, 32], 'CIDFontRevision', 'num', 0], [[12, 33], 'CIDFontType', 'num', 0], [[12, 34], 'CIDCount', 'num', 8720], [[12, 35], 'UIDBase', 'num', null], [[12, 37], 'FDSelect', 'offset', null], [[12, 36], 'FDArray', 'offset', null], [[12, 38], 'FontName', 'sid', null]]; + var layout = [[[12, 30], "ROS", ["sid", "sid", "num"], null], [[12, 20], "SyntheticBase", "num", null], [0, "version", "sid", null], [1, "Notice", "sid", null], [[12, 0], "Copyright", "sid", null], [2, "FullName", "sid", null], [3, "FamilyName", "sid", null], [4, "Weight", "sid", null], [[12, 1], "isFixedPitch", "num", 0], [[12, 2], "ItalicAngle", "num", 0], [[12, 3], "UnderlinePosition", "num", -100], [[12, 4], "UnderlineThickness", "num", 50], [[12, 5], "PaintType", "num", 0], [[12, 6], "CharstringType", "num", 2], [[12, 7], "FontMatrix", ["num", "num", "num", "num", "num", "num"], [0.001, 0, 0, 0.001, 0, 0]], [13, "UniqueID", "num", null], [5, "FontBBox", ["num", "num", "num", "num"], [0, 0, 0, 0]], [[12, 8], "StrokeWidth", "num", 0], [14, "XUID", "array", null], [15, "charset", "offset", 0], [16, "Encoding", "offset", 0], [17, "CharStrings", "offset", 0], [18, "Private", ["offset", "offset"], null], [[12, 21], "PostScript", "sid", null], [[12, 22], "BaseFontName", "sid", null], [[12, 23], "BaseFontBlend", "delta", null], [[12, 31], "CIDFontVersion", "num", 0], [[12, 32], "CIDFontRevision", "num", 0], [[12, 33], "CIDFontType", "num", 0], [[12, 34], "CIDCount", "num", 8720], [[12, 35], "UIDBase", "num", null], [[12, 37], "FDSelect", "offset", null], [[12, 36], "FDArray", "offset", null], [[12, 38], "FontName", "sid", null]]; var tables = null; function CFFTopDict(strings) { @@ -28471,7 +28487,7 @@ var CFFTopDict = function CFFTopDictClosure() { exports.CFFTopDict = CFFTopDict; var CFFPrivateDict = function CFFPrivateDictClosure() { - var layout = [[6, 'BlueValues', 'delta', null], [7, 'OtherBlues', 'delta', null], [8, 'FamilyBlues', 'delta', null], [9, 'FamilyOtherBlues', 'delta', null], [[12, 9], 'BlueScale', 'num', 0.039625], [[12, 10], 'BlueShift', 'num', 7], [[12, 11], 'BlueFuzz', 'num', 1], [10, 'StdHW', 'num', null], [11, 'StdVW', 'num', null], [[12, 12], 'StemSnapH', 'delta', null], [[12, 13], 'StemSnapV', 'delta', null], [[12, 14], 'ForceBold', 'num', 0], [[12, 17], 'LanguageGroup', 'num', 0], [[12, 18], 'ExpansionFactor', 'num', 0.06], [[12, 19], 'initialRandomSeed', 'num', 0], [20, 'defaultWidthX', 'num', 0], [21, 'nominalWidthX', 'num', 0], [19, 'Subrs', 'offset', null]]; + var layout = [[6, "BlueValues", "delta", null], [7, "OtherBlues", "delta", null], [8, "FamilyBlues", "delta", null], [9, "FamilyOtherBlues", "delta", null], [[12, 9], "BlueScale", "num", 0.039625], [[12, 10], "BlueShift", "num", 7], [[12, 11], "BlueFuzz", "num", 1], [10, "StdHW", "num", null], [11, "StdVW", "num", null], [[12, 12], "StemSnapH", "delta", null], [[12, 13], "StemSnapV", "delta", null], [[12, 14], "ForceBold", "num", 0], [[12, 17], "LanguageGroup", "num", 0], [[12, 18], "ExpansionFactor", "num", 0.06], [[12, 19], "initialRandomSeed", "num", 0], [20, "defaultWidthX", "num", 0], [21, "nominalWidthX", "num", 0], [19, "Subrs", "offset", null]]; var tables = null; function CFFPrivateDict(strings) { @@ -28576,15 +28592,15 @@ var CFFOffsetTracker = function CFFOffsetTrackerClosure() { var offset4 = offset0 + 4; if (data[offset0] !== 0x1d || data[offset1] !== 0 || data[offset2] !== 0 || data[offset3] !== 0 || data[offset4] !== 0) { - throw new _util.FormatError('writing to an offset that is not empty'); + throw new _util.FormatError("writing to an offset that is not empty"); } var value = values[i]; data[offset0] = 0x1d; - data[offset1] = value >> 24 & 0xFF; - data[offset2] = value >> 16 & 0xFF; - data[offset3] = value >> 8 & 0xFF; - data[offset4] = value & 0xFF; + data[offset1] = value >> 24 & 0xff; + data[offset2] = value >> 16 & 0xff; + data[offset3] = value >> 8 & 0xff; + data[offset4] = value & 0xff; } } }; @@ -28613,24 +28629,24 @@ var CFFCompiler = function CFFCompilerClosure() { output.add(nameIndex); if (cff.isCIDFont) { - if (cff.topDict.hasName('FontMatrix')) { - var base = cff.topDict.getByName('FontMatrix'); - cff.topDict.removeByName('FontMatrix'); + if (cff.topDict.hasName("FontMatrix")) { + var base = cff.topDict.getByName("FontMatrix"); + cff.topDict.removeByName("FontMatrix"); for (var i = 0, ii = cff.fdArray.length; i < ii; i++) { var subDict = cff.fdArray[i]; var matrix = base.slice(0); - if (subDict.hasName('FontMatrix')) { - matrix = _util.Util.transform(matrix, subDict.getByName('FontMatrix')); + if (subDict.hasName("FontMatrix")) { + matrix = _util.Util.transform(matrix, subDict.getByName("FontMatrix")); } - subDict.setByName('FontMatrix', matrix); + subDict.setByName("FontMatrix", matrix); } } } - cff.topDict.setByName('charset', 0); + cff.topDict.setByName("charset", 0); var compiled = this.compileTopDicts([cff.topDict], output.length, cff.isCIDFont); output.add(compiled.output); var topDictTracker = compiled.trackers[0]; @@ -28639,29 +28655,29 @@ var CFFCompiler = function CFFCompilerClosure() { var globalSubrIndex = this.compileIndex(cff.globalSubrIndex); output.add(globalSubrIndex); - if (cff.encoding && cff.topDict.hasName('Encoding')) { + if (cff.encoding && cff.topDict.hasName("Encoding")) { if (cff.encoding.predefined) { - topDictTracker.setEntryLocation('Encoding', [cff.encoding.format], output); + topDictTracker.setEntryLocation("Encoding", [cff.encoding.format], output); } else { var encoding = this.compileEncoding(cff.encoding); - topDictTracker.setEntryLocation('Encoding', [output.length], output); + topDictTracker.setEntryLocation("Encoding", [output.length], output); output.add(encoding); } } var charset = this.compileCharset(cff.charset, cff.charStrings.count, cff.strings, cff.isCIDFont); - topDictTracker.setEntryLocation('charset', [output.length], output); + topDictTracker.setEntryLocation("charset", [output.length], output); output.add(charset); var charStrings = this.compileCharStrings(cff.charStrings); - topDictTracker.setEntryLocation('CharStrings', [output.length], output); + topDictTracker.setEntryLocation("CharStrings", [output.length], output); output.add(charStrings); if (cff.isCIDFont) { - topDictTracker.setEntryLocation('FDSelect', [output.length], output); + topDictTracker.setEntryLocation("FDSelect", [output.length], output); var fdSelect = this.compileFDSelect(cff.fdSelect); output.add(fdSelect); compiled = this.compileTopDicts(cff.fdArray, output.length, true); - topDictTracker.setEntryLocation('FDArray', [output.length], output); + topDictTracker.setEntryLocation("FDArray", [output.length], output); output.add(compiled.output); var fontDictTrackers = compiled.trackers; this.compilePrivateDicts(cff.fdArray, fontDictTrackers, output); @@ -28683,28 +28699,28 @@ var CFFCompiler = function CFFCompilerClosure() { var m = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(value); if (m) { - var epsilon = parseFloat('1e' + ((m[2] ? +m[2] : 0) + m[1].length)); + var epsilon = parseFloat("1e" + ((m[2] ? +m[2] : 0) + m[1].length)); value = (Math.round(num * epsilon) / epsilon).toString(); } - var nibbles = ''; + var nibbles = ""; var i, ii; for (i = 0, ii = value.length; i < ii; ++i) { var a = value[i]; - if (a === 'e') { - nibbles += value[++i] === '-' ? 'c' : 'b'; - } else if (a === '.') { - nibbles += 'a'; - } else if (a === '-') { - nibbles += 'e'; + if (a === "e") { + nibbles += value[++i] === "-" ? "c" : "b"; + } else if (a === ".") { + nibbles += "a"; + } else if (a === "-") { + nibbles += "e"; } else { nibbles += a; } } - nibbles += nibbles.length & 1 ? 'f' : 'ff'; + nibbles += nibbles.length & 1 ? "f" : "ff"; var out = [30]; for (i = 0, ii = nibbles.length; i < ii; i += 2) { @@ -28720,14 +28736,14 @@ var CFFCompiler = function CFFCompilerClosure() { code = [value + 139]; } else if (value >= 108 && value <= 1131) { value = value - 108; - code = [(value >> 8) + 247, value & 0xFF]; + code = [(value >> 8) + 247, value & 0xff]; } else if (value >= -1131 && value <= -108) { value = -value - 108; - code = [(value >> 8) + 251, value & 0xFF]; + code = [(value >> 8) + 251, value & 0xff]; } else if (value >= -32768 && value <= 32767) { - code = [0x1c, value >> 8 & 0xFF, value & 0xFF]; + code = [0x1c, value >> 8 & 0xff, value & 0xff]; } else { - code = [0x1d, value >> 24 & 0xFF, value >> 16 & 0xFF, value >> 8 & 0xFF, value & 0xFF]; + code = [0x1d, value >> 24 & 0xff, value >> 16 & 0xff, value >> 8 & 0xff, value & 0xff]; } return code; @@ -28746,17 +28762,17 @@ var CFFCompiler = function CFFCompilerClosure() { for (var j = 0; j < length; j++) { var char = name[j]; - if (char < '!' || char > '~' || char === '[' || char === ']' || char === '(' || char === ')' || char === '{' || char === '}' || char === '<' || char === '>' || char === '/' || char === '%') { - char = '_'; + if (char < "!" || char > "~" || char === "[" || char === "]" || char === "(" || char === ")" || char === "{" || char === "}" || char === "<" || char === ">" || char === "/" || char === "%") { + char = "_"; } sanitizedName[j] = char; } - sanitizedName = sanitizedName.join(''); + sanitizedName = sanitizedName.join(""); - if (sanitizedName === '') { - sanitizedName = 'Bad_Font_Name'; + if (sanitizedName === "") { + sanitizedName = "Bad_Font_Name"; } nameIndex.add((0, _util.stringToBytes)(sanitizedName)); @@ -28772,11 +28788,11 @@ var CFFCompiler = function CFFCompilerClosure() { var fontDict = dicts[i]; if (removeCidKeys) { - fontDict.removeByName('CIDFontVersion'); - fontDict.removeByName('CIDFontRevision'); - fontDict.removeByName('CIDFontType'); - fontDict.removeByName('CIDCount'); - fontDict.removeByName('UIDBase'); + fontDict.removeByName("CIDFontVersion"); + fontDict.removeByName("CIDFontRevision"); + fontDict.removeByName("CIDFontType"); + fontDict.removeByName("CIDCount"); + fontDict.removeByName("UIDBase"); } var fontDictTracker = new CFFOffsetTracker(); @@ -28797,8 +28813,8 @@ var CFFCompiler = function CFFCompilerClosure() { var fontDict = dicts[i]; var privateDict = fontDict.privateDict; - if (!privateDict || !fontDict.hasName('Private')) { - throw new _util.FormatError('There must be a private dictionary.'); + if (!privateDict || !fontDict.hasName("Private")) { + throw new _util.FormatError("There must be a private dictionary."); } var privateDictTracker = new CFFOffsetTracker(); @@ -28810,12 +28826,12 @@ var CFFCompiler = function CFFCompilerClosure() { outputLength = 0; } - trackers[i].setEntryLocation('Private', [privateDictData.length, outputLength], output); + trackers[i].setEntryLocation("Private", [privateDictData.length, outputLength], output); output.add(privateDictData); - if (privateDict.subrsIndex && privateDict.hasName('Subrs')) { + if (privateDict.subrsIndex && privateDict.hasName("Subrs")) { var subrs = this.compileIndex(privateDict.subrsIndex); - privateDictTracker.setEntryLocation('Subrs', [privateDictData.length], output); + privateDictTracker.setEntryLocation("Subrs", [privateDictData.length], output); output.add(subrs); } } @@ -28851,12 +28867,12 @@ var CFFCompiler = function CFFCompilerClosure() { var value = values[j]; switch (type) { - case 'num': - case 'sid': + case "num": + case "sid": out = out.concat(this.encodeNumber(value)); break; - case 'offset': + case "offset": var name = dict.keyToNameMap[key]; if (!offsetTracker.isTracking(name)) { @@ -28866,8 +28882,8 @@ var CFFCompiler = function CFFCompilerClosure() { out = out.concat([0x1d, 0, 0, 0, 0]); break; - case 'array': - case 'delta': + case "array": + case "delta": out = out.concat(this.encodeNumber(value)); for (var k = 1, kk = values.length; k < kk; ++k) { @@ -28906,7 +28922,7 @@ var CFFCompiler = function CFFCompilerClosure() { var glyph = charStrings.get(i); if (glyph.length === 0) { - charStringsIndex.add(new Uint8Array([0x8B, 0x0E])); + charStringsIndex.add(new Uint8Array([0x8b, 0x0e])); continue; } @@ -28920,7 +28936,7 @@ var CFFCompiler = function CFFCompilerClosure() { let numGlyphsLessNotDef = numGlyphs - 1; if (isCIDFont) { - out = new Uint8Array([2, 0, 0, numGlyphsLessNotDef >> 8 & 0xFF, numGlyphsLessNotDef & 0xFF]); + out = new Uint8Array([2, 0, 0, numGlyphsLessNotDef >> 8 & 0xff, numGlyphsLessNotDef & 0xff]); } else { let length = 1 + numGlyphsLessNotDef * 2; out = new Uint8Array(length); @@ -28946,8 +28962,8 @@ var CFFCompiler = function CFFCompilerClosure() { } } - out[i] = sid >> 8 & 0xFF; - out[i + 1] = sid & 0xFF; + out[i] = sid >> 8 & 0xff; + out[i + 1] = sid & 0xff; } } @@ -28974,21 +28990,21 @@ var CFFCompiler = function CFFCompilerClosure() { case 3: let start = 0; let lastFD = fdSelect.fdSelect[0]; - let ranges = [format, 0, 0, start >> 8 & 0xFF, start & 0xFF, lastFD]; + let ranges = [format, 0, 0, start >> 8 & 0xff, start & 0xff, lastFD]; for (i = 1; i < fdSelect.fdSelect.length; i++) { let currentFD = fdSelect.fdSelect[i]; if (currentFD !== lastFD) { - ranges.push(i >> 8 & 0xFF, i & 0xFF, currentFD); + ranges.push(i >> 8 & 0xff, i & 0xff, currentFD); lastFD = currentFD; } } let numRanges = (ranges.length - 3) / 3; - ranges[1] = numRanges >> 8 & 0xFF; - ranges[2] = numRanges & 0xFF; - ranges.push(i >> 8 & 0xFF, i & 0xFF); + ranges[1] = numRanges >> 8 & 0xff; + ranges[2] = numRanges & 0xff; + ranges.push(i >> 8 & 0xff, i & 0xff); out = new Uint8Array(ranges); break; } @@ -29013,7 +29029,7 @@ var CFFCompiler = function CFFCompilerClosure() { return [0, 0, 0]; } - var data = [count >> 8 & 0xFF, count & 0xff]; + var data = [count >> 8 & 0xff, count & 0xff]; var lastOffset = 1, i; @@ -29038,13 +29054,13 @@ var CFFCompiler = function CFFCompilerClosure() { for (i = 0; i < count + 1; i++) { if (offsetSize === 1) { - data.push(relativeOffset & 0xFF); + data.push(relativeOffset & 0xff); } else if (offsetSize === 2) { - data.push(relativeOffset >> 8 & 0xFF, relativeOffset & 0xFF); + data.push(relativeOffset >> 8 & 0xff, relativeOffset & 0xff); } else if (offsetSize === 3) { - data.push(relativeOffset >> 16 & 0xFF, relativeOffset >> 8 & 0xFF, relativeOffset & 0xFF); + data.push(relativeOffset >> 16 & 0xff, relativeOffset >> 8 & 0xff, relativeOffset & 0xff); } else { - data.push(relativeOffset >>> 24 & 0xFF, relativeOffset >> 16 & 0xFF, relativeOffset >> 8 & 0xFF, relativeOffset & 0xFF); + data.push(relativeOffset >>> 24 & 0xff, relativeOffset >> 16 & 0xff, relativeOffset >> 8 & 0xff, relativeOffset & 0xff); } if (objects[i]) { @@ -29071,7 +29087,7 @@ var CFFCompiler = function CFFCompilerClosure() { exports.CFFCompiler = CFFCompiler; /***/ }), -/* 30 */ +/* 29 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -29081,15 +29097,15 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.ExpertSubsetCharset = exports.ExpertCharset = exports.ISOAdobeCharset = void 0; -const ISOAdobeCharset = ['.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent', 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency', 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl', 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase', 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis', 'perthousand', 'questiondown', 'grave', 'acute', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent', 'dieresis', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron', 'emdash', 'AE', 'ordfeminine', 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae', 'dotlessi', 'lslash', 'oslash', 'oe', 'germandbls', 'onesuperior', 'logicalnot', 'mu', 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn', 'onequarter', 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters', 'twosuperior', 'registered', 'minus', 'eth', 'multiply', 'threesuperior', 'copyright', 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring', 'Atilde', 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute', 'Ocircumflex', 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute', 'Ucircumflex', 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron', 'aacute', 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde', 'ccedilla', 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute', 'icircumflex', 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex', 'odieresis', 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex', 'udieresis', 'ugrave', 'yacute', 'ydieresis', 'zcaron']; +const ISOAdobeCharset = [".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "endash", "dagger", "daggerdbl", "periodcentered", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "questiondown", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "ring", "cedilla", "hungarumlaut", "ogonek", "caron", "emdash", "AE", "ordfeminine", "Lslash", "Oslash", "OE", "ordmasculine", "ae", "dotlessi", "lslash", "oslash", "oe", "germandbls", "onesuperior", "logicalnot", "mu", "trademark", "Eth", "onehalf", "plusminus", "Thorn", "onequarter", "divide", "brokenbar", "degree", "thorn", "threequarters", "twosuperior", "registered", "minus", "eth", "multiply", "threesuperior", "copyright", "Aacute", "Acircumflex", "Adieresis", "Agrave", "Aring", "Atilde", "Ccedilla", "Eacute", "Ecircumflex", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Ntilde", "Oacute", "Ocircumflex", "Odieresis", "Ograve", "Otilde", "Scaron", "Uacute", "Ucircumflex", "Udieresis", "Ugrave", "Yacute", "Ydieresis", "Zcaron", "aacute", "acircumflex", "adieresis", "agrave", "aring", "atilde", "ccedilla", "eacute", "ecircumflex", "edieresis", "egrave", "iacute", "icircumflex", "idieresis", "igrave", "ntilde", "oacute", "ocircumflex", "odieresis", "ograve", "otilde", "scaron", "uacute", "ucircumflex", "udieresis", "ugrave", "yacute", "ydieresis", "zcaron"]; exports.ISOAdobeCharset = ISOAdobeCharset; -const ExpertCharset = ['.notdef', 'space', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior', 'questionsmall', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior', 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall', 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah', 'Tildesmall', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall', 'Caronsmall', 'Dotaccentsmall', 'Macronsmall', 'figuredash', 'hypheninferior', 'Ogoneksmall', 'Ringsmall', 'Cedillasmall', 'onequarter', 'onehalf', 'threequarters', 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall', 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall', 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall', 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall', 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall', 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall', 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall', 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall', 'Ydieresissmall']; +const ExpertCharset = [".notdef", "space", "exclamsmall", "Hungarumlautsmall", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "exclamdownsmall", "centoldstyle", "Lslashsmall", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "Dotaccentsmall", "Macronsmall", "figuredash", "hypheninferior", "Ogoneksmall", "Ringsmall", "Cedillasmall", "onequarter", "onehalf", "threequarters", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall"]; exports.ExpertCharset = ExpertCharset; -const ExpertSubsetCharset = ['.notdef', 'space', 'dollaroldstyle', 'dollarsuperior', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior', 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', 'parenrightinferior', 'hyphensuperior', 'colonmonetary', 'onefitted', 'rupiah', 'centoldstyle', 'figuredash', 'hypheninferior', 'onequarter', 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior', 'commainferior']; +const ExpertSubsetCharset = [".notdef", "space", "dollaroldstyle", "dollarsuperior", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior", "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior", "tsuperior", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "parenrightinferior", "hyphensuperior", "colonmonetary", "onefitted", "rupiah", "centoldstyle", "figuredash", "hypheninferior", "onequarter", "onehalf", "threequarters", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior"]; exports.ExpertSubsetCharset = ExpertSubsetCharset; /***/ }), -/* 31 */ +/* 30 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -29100,41 +29116,41 @@ Object.defineProperty(exports, "__esModule", { }); exports.getEncoding = getEncoding; exports.ExpertEncoding = exports.ZapfDingbatsEncoding = exports.SymbolSetEncoding = exports.MacRomanEncoding = exports.StandardEncoding = exports.WinAnsiEncoding = void 0; -const ExpertEncoding = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'exclamsmall', 'Hungarumlautsmall', '', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior', 'questionsmall', '', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', '', '', '', 'isuperior', '', '', 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', '', '', 'rsuperior', 'ssuperior', 'tsuperior', '', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall', 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah', 'Tildesmall', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall', '', '', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall', 'Caronsmall', '', 'Dotaccentsmall', '', '', 'Macronsmall', '', '', 'figuredash', 'hypheninferior', '', '', 'Ogoneksmall', 'Ringsmall', 'Cedillasmall', '', '', '', 'onequarter', 'onehalf', 'threequarters', 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds', '', '', 'zerosuperior', 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall', 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall', 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall', 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall', 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall', 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall', 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall', 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall', 'Ydieresissmall']; +const ExpertEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclamsmall", "Hungarumlautsmall", "", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "commasuperior", "threequartersemdash", "periodsuperior", "questionsmall", "", "asuperior", "bsuperior", "centsuperior", "dsuperior", "esuperior", "", "", "", "isuperior", "", "", "lsuperior", "msuperior", "nsuperior", "osuperior", "", "", "rsuperior", "ssuperior", "tsuperior", "", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "", "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "exclamdownsmall", "centoldstyle", "Lslashsmall", "", "", "Scaronsmall", "Zcaronsmall", "Dieresissmall", "Brevesmall", "Caronsmall", "", "Dotaccentsmall", "", "", "Macronsmall", "", "", "figuredash", "hypheninferior", "", "", "Ogoneksmall", "Ringsmall", "Cedillasmall", "", "", "", "onequarter", "onehalf", "threequarters", "questiondownsmall", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "", "", "zerosuperior", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior", "oneinferior", "twoinferior", "threeinferior", "fourinferior", "fiveinferior", "sixinferior", "seveninferior", "eightinferior", "nineinferior", "centinferior", "dollarinferior", "periodinferior", "commainferior", "Agravesmall", "Aacutesmall", "Acircumflexsmall", "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall", "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall", "Igravesmall", "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall", "Ntildesmall", "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall", "Odieresissmall", "OEsmall", "Oslashsmall", "Ugravesmall", "Uacutesmall", "Ucircumflexsmall", "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall"]; exports.ExpertEncoding = ExpertEncoding; -const MacExpertEncoding = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'exclamsmall', 'Hungarumlautsmall', 'centoldstyle', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', '', 'threequartersemdash', '', 'questionsmall', '', '', '', '', 'Ethsmall', '', '', 'onequarter', 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds', '', '', '', '', '', '', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior', 'Circumflexsmall', 'hypheninferior', 'Gravesmall', 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah', 'Tildesmall', '', '', 'asuperior', 'centsuperior', '', '', '', '', 'Aacutesmall', 'Agravesmall', 'Acircumflexsmall', 'Adieresissmall', 'Atildesmall', 'Aringsmall', 'Ccedillasmall', 'Eacutesmall', 'Egravesmall', 'Ecircumflexsmall', 'Edieresissmall', 'Iacutesmall', 'Igravesmall', 'Icircumflexsmall', 'Idieresissmall', 'Ntildesmall', 'Oacutesmall', 'Ogravesmall', 'Ocircumflexsmall', 'Odieresissmall', 'Otildesmall', 'Uacutesmall', 'Ugravesmall', 'Ucircumflexsmall', 'Udieresissmall', '', 'eightsuperior', 'fourinferior', 'threeinferior', 'sixinferior', 'eightinferior', 'seveninferior', 'Scaronsmall', '', 'centinferior', 'twoinferior', '', 'Dieresissmall', '', 'Caronsmall', 'osuperior', 'fiveinferior', '', 'commainferior', 'periodinferior', 'Yacutesmall', '', 'dollarinferior', '', '', 'Thornsmall', '', 'nineinferior', 'zeroinferior', 'Zcaronsmall', 'AEsmall', 'Oslashsmall', 'questiondownsmall', 'oneinferior', 'Lslashsmall', '', '', '', '', '', '', 'Cedillasmall', '', '', '', '', '', 'OEsmall', 'figuredash', 'hyphensuperior', '', '', '', '', 'exclamdownsmall', '', 'Ydieresissmall', '', 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior', 'sevensuperior', 'ninesuperior', 'zerosuperior', '', 'esuperior', 'rsuperior', 'tsuperior', '', '', 'isuperior', 'ssuperior', 'dsuperior', '', '', '', '', '', 'lsuperior', 'Ogoneksmall', 'Brevesmall', 'Macronsmall', 'bsuperior', 'nsuperior', 'msuperior', 'commasuperior', 'periodsuperior', 'Dotaccentsmall', 'Ringsmall', '', '', '', '']; -const MacRomanEncoding = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', '', 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde', 'Odieresis', 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis', 'atilde', 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis', 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute', 'ograve', 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave', 'ucircumflex', 'udieresis', 'dagger', 'degree', 'cent', 'sterling', 'section', 'bullet', 'paragraph', 'germandbls', 'registered', 'copyright', 'trademark', 'acute', 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity', 'plusminus', 'lessequal', 'greaterequal', 'yen', 'mu', 'partialdiff', 'summation', 'product', 'pi', 'integral', 'ordfeminine', 'ordmasculine', 'Omega', 'ae', 'oslash', 'questiondown', 'exclamdown', 'logicalnot', 'radical', 'florin', 'approxequal', 'Delta', 'guillemotleft', 'guillemotright', 'ellipsis', 'space', 'Agrave', 'Atilde', 'Otilde', 'OE', 'oe', 'endash', 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright', 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction', 'currency', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl', 'periodcentered', 'quotesinglbase', 'quotedblbase', 'perthousand', 'Acircumflex', 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple', 'Ograve', 'Uacute', 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron']; +const MacExpertEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclamsmall", "Hungarumlautsmall", "centoldstyle", "dollaroldstyle", "dollarsuperior", "ampersandsmall", "Acutesmall", "parenleftsuperior", "parenrightsuperior", "twodotenleader", "onedotenleader", "comma", "hyphen", "period", "fraction", "zerooldstyle", "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle", "fiveoldstyle", "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle", "colon", "semicolon", "", "threequartersemdash", "", "questionsmall", "", "", "", "", "Ethsmall", "", "", "onequarter", "onehalf", "threequarters", "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird", "twothirds", "", "", "", "", "", "", "ff", "fi", "fl", "ffi", "ffl", "parenleftinferior", "", "parenrightinferior", "Circumflexsmall", "hypheninferior", "Gravesmall", "Asmall", "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall", "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall", "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall", "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall", "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall", "colonmonetary", "onefitted", "rupiah", "Tildesmall", "", "", "asuperior", "centsuperior", "", "", "", "", "Aacutesmall", "Agravesmall", "Acircumflexsmall", "Adieresissmall", "Atildesmall", "Aringsmall", "Ccedillasmall", "Eacutesmall", "Egravesmall", "Ecircumflexsmall", "Edieresissmall", "Iacutesmall", "Igravesmall", "Icircumflexsmall", "Idieresissmall", "Ntildesmall", "Oacutesmall", "Ogravesmall", "Ocircumflexsmall", "Odieresissmall", "Otildesmall", "Uacutesmall", "Ugravesmall", "Ucircumflexsmall", "Udieresissmall", "", "eightsuperior", "fourinferior", "threeinferior", "sixinferior", "eightinferior", "seveninferior", "Scaronsmall", "", "centinferior", "twoinferior", "", "Dieresissmall", "", "Caronsmall", "osuperior", "fiveinferior", "", "commainferior", "periodinferior", "Yacutesmall", "", "dollarinferior", "", "", "Thornsmall", "", "nineinferior", "zeroinferior", "Zcaronsmall", "AEsmall", "Oslashsmall", "questiondownsmall", "oneinferior", "Lslashsmall", "", "", "", "", "", "", "Cedillasmall", "", "", "", "", "", "OEsmall", "figuredash", "hyphensuperior", "", "", "", "", "exclamdownsmall", "", "Ydieresissmall", "", "onesuperior", "twosuperior", "threesuperior", "foursuperior", "fivesuperior", "sixsuperior", "sevensuperior", "ninesuperior", "zerosuperior", "", "esuperior", "rsuperior", "tsuperior", "", "", "isuperior", "ssuperior", "dsuperior", "", "", "", "", "", "lsuperior", "Ogoneksmall", "Brevesmall", "Macronsmall", "bsuperior", "nsuperior", "msuperior", "commasuperior", "periodsuperior", "Dotaccentsmall", "Ringsmall", "", "", "", ""]; +const MacRomanEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quotesingle", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "grave", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "", "Adieresis", "Aring", "Ccedilla", "Eacute", "Ntilde", "Odieresis", "Udieresis", "aacute", "agrave", "acircumflex", "adieresis", "atilde", "aring", "ccedilla", "eacute", "egrave", "ecircumflex", "edieresis", "iacute", "igrave", "icircumflex", "idieresis", "ntilde", "oacute", "ograve", "ocircumflex", "odieresis", "otilde", "uacute", "ugrave", "ucircumflex", "udieresis", "dagger", "degree", "cent", "sterling", "section", "bullet", "paragraph", "germandbls", "registered", "copyright", "trademark", "acute", "dieresis", "notequal", "AE", "Oslash", "infinity", "plusminus", "lessequal", "greaterequal", "yen", "mu", "partialdiff", "summation", "product", "pi", "integral", "ordfeminine", "ordmasculine", "Omega", "ae", "oslash", "questiondown", "exclamdown", "logicalnot", "radical", "florin", "approxequal", "Delta", "guillemotleft", "guillemotright", "ellipsis", "space", "Agrave", "Atilde", "Otilde", "OE", "oe", "endash", "emdash", "quotedblleft", "quotedblright", "quoteleft", "quoteright", "divide", "lozenge", "ydieresis", "Ydieresis", "fraction", "currency", "guilsinglleft", "guilsinglright", "fi", "fl", "daggerdbl", "periodcentered", "quotesinglbase", "quotedblbase", "perthousand", "Acircumflex", "Ecircumflex", "Aacute", "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis", "Igrave", "Oacute", "Ocircumflex", "apple", "Ograve", "Uacute", "Ucircumflex", "Ugrave", "dotlessi", "circumflex", "tilde", "macron", "breve", "dotaccent", "ring", "cedilla", "hungarumlaut", "ogonek", "caron"]; exports.MacRomanEncoding = MacRomanEncoding; -const StandardEncoding = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exclamdown', 'cent', 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency', 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', '', 'endash', 'dagger', 'daggerdbl', 'periodcentered', '', 'paragraph', 'bullet', 'quotesinglbase', 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis', 'perthousand', '', 'questiondown', '', 'grave', 'acute', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent', 'dieresis', '', 'ring', 'cedilla', '', 'hungarumlaut', 'ogonek', 'caron', 'emdash', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'AE', '', 'ordfeminine', '', '', '', '', 'Lslash', 'Oslash', 'OE', 'ordmasculine', '', '', '', '', '', 'ae', '', '', '', 'dotlessi', '', '', 'lslash', 'oslash', 'oe', 'germandbls', '', '', '', '']; +const StandardEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quoteright", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "quoteleft", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "exclamdown", "cent", "sterling", "fraction", "yen", "florin", "section", "currency", "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi", "fl", "", "endash", "dagger", "daggerdbl", "periodcentered", "", "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright", "guillemotright", "ellipsis", "perthousand", "", "questiondown", "", "grave", "acute", "circumflex", "tilde", "macron", "breve", "dotaccent", "dieresis", "", "ring", "cedilla", "", "hungarumlaut", "ogonek", "caron", "emdash", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "AE", "", "ordfeminine", "", "", "", "", "Lslash", "Oslash", "OE", "ordmasculine", "", "", "", "", "", "ae", "", "", "", "dotlessi", "", "", "lslash", "oslash", "oe", "germandbls", "", "", "", ""]; exports.StandardEncoding = StandardEncoding; -const WinAnsiEncoding = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'bullet', 'Euro', 'bullet', 'quotesinglbase', 'florin', 'quotedblbase', 'ellipsis', 'dagger', 'daggerdbl', 'circumflex', 'perthousand', 'Scaron', 'guilsinglleft', 'OE', 'bullet', 'Zcaron', 'bullet', 'bullet', 'quoteleft', 'quoteright', 'quotedblleft', 'quotedblright', 'bullet', 'endash', 'emdash', 'tilde', 'trademark', 'scaron', 'guilsinglright', 'oe', 'bullet', 'zcaron', 'Ydieresis', 'space', 'exclamdown', 'cent', 'sterling', 'currency', 'yen', 'brokenbar', 'section', 'dieresis', 'copyright', 'ordfeminine', 'guillemotleft', 'logicalnot', 'hyphen', 'registered', 'macron', 'degree', 'plusminus', 'twosuperior', 'threesuperior', 'acute', 'mu', 'paragraph', 'periodcentered', 'cedilla', 'onesuperior', 'ordmasculine', 'guillemotright', 'onequarter', 'onehalf', 'threequarters', 'questiondown', 'Agrave', 'Aacute', 'Acircumflex', 'Atilde', 'Adieresis', 'Aring', 'AE', 'Ccedilla', 'Egrave', 'Eacute', 'Ecircumflex', 'Edieresis', 'Igrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Eth', 'Ntilde', 'Ograve', 'Oacute', 'Ocircumflex', 'Otilde', 'Odieresis', 'multiply', 'Oslash', 'Ugrave', 'Uacute', 'Ucircumflex', 'Udieresis', 'Yacute', 'Thorn', 'germandbls', 'agrave', 'aacute', 'acircumflex', 'atilde', 'adieresis', 'aring', 'ae', 'ccedilla', 'egrave', 'eacute', 'ecircumflex', 'edieresis', 'igrave', 'iacute', 'icircumflex', 'idieresis', 'eth', 'ntilde', 'ograve', 'oacute', 'ocircumflex', 'otilde', 'odieresis', 'divide', 'oslash', 'ugrave', 'uacute', 'ucircumflex', 'udieresis', 'yacute', 'thorn', 'ydieresis']; +const WinAnsiEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quotesingle", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "grave", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", "bullet", "Euro", "bullet", "quotesinglbase", "florin", "quotedblbase", "ellipsis", "dagger", "daggerdbl", "circumflex", "perthousand", "Scaron", "guilsinglleft", "OE", "bullet", "Zcaron", "bullet", "bullet", "quoteleft", "quoteright", "quotedblleft", "quotedblright", "bullet", "endash", "emdash", "tilde", "trademark", "scaron", "guilsinglright", "oe", "bullet", "zcaron", "Ydieresis", "space", "exclamdown", "cent", "sterling", "currency", "yen", "brokenbar", "section", "dieresis", "copyright", "ordfeminine", "guillemotleft", "logicalnot", "hyphen", "registered", "macron", "degree", "plusminus", "twosuperior", "threesuperior", "acute", "mu", "paragraph", "periodcentered", "cedilla", "onesuperior", "ordmasculine", "guillemotright", "onequarter", "onehalf", "threequarters", "questiondown", "Agrave", "Aacute", "Acircumflex", "Atilde", "Adieresis", "Aring", "AE", "Ccedilla", "Egrave", "Eacute", "Ecircumflex", "Edieresis", "Igrave", "Iacute", "Icircumflex", "Idieresis", "Eth", "Ntilde", "Ograve", "Oacute", "Ocircumflex", "Otilde", "Odieresis", "multiply", "Oslash", "Ugrave", "Uacute", "Ucircumflex", "Udieresis", "Yacute", "Thorn", "germandbls", "agrave", "aacute", "acircumflex", "atilde", "adieresis", "aring", "ae", "ccedilla", "egrave", "eacute", "ecircumflex", "edieresis", "igrave", "iacute", "icircumflex", "idieresis", "eth", "ntilde", "ograve", "oacute", "ocircumflex", "otilde", "odieresis", "divide", "oslash", "ugrave", "uacute", "ucircumflex", "udieresis", "yacute", "thorn", "ydieresis"]; exports.WinAnsiEncoding = WinAnsiEncoding; -const SymbolSetEncoding = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'exclam', 'universal', 'numbersign', 'existential', 'percent', 'ampersand', 'suchthat', 'parenleft', 'parenright', 'asteriskmath', 'plus', 'comma', 'minus', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'congruent', 'Alpha', 'Beta', 'Chi', 'Delta', 'Epsilon', 'Phi', 'Gamma', 'Eta', 'Iota', 'theta1', 'Kappa', 'Lambda', 'Mu', 'Nu', 'Omicron', 'Pi', 'Theta', 'Rho', 'Sigma', 'Tau', 'Upsilon', 'sigma1', 'Omega', 'Xi', 'Psi', 'Zeta', 'bracketleft', 'therefore', 'bracketright', 'perpendicular', 'underscore', 'radicalex', 'alpha', 'beta', 'chi', 'delta', 'epsilon', 'phi', 'gamma', 'eta', 'iota', 'phi1', 'kappa', 'lambda', 'mu', 'nu', 'omicron', 'pi', 'theta', 'rho', 'sigma', 'tau', 'upsilon', 'omega1', 'omega', 'xi', 'psi', 'zeta', 'braceleft', 'bar', 'braceright', 'similar', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'Euro', 'Upsilon1', 'minute', 'lessequal', 'fraction', 'infinity', 'florin', 'club', 'diamond', 'heart', 'spade', 'arrowboth', 'arrowleft', 'arrowup', 'arrowright', 'arrowdown', 'degree', 'plusminus', 'second', 'greaterequal', 'multiply', 'proportional', 'partialdiff', 'bullet', 'divide', 'notequal', 'equivalence', 'approxequal', 'ellipsis', 'arrowvertex', 'arrowhorizex', 'carriagereturn', 'aleph', 'Ifraktur', 'Rfraktur', 'weierstrass', 'circlemultiply', 'circleplus', 'emptyset', 'intersection', 'union', 'propersuperset', 'reflexsuperset', 'notsubset', 'propersubset', 'reflexsubset', 'element', 'notelement', 'angle', 'gradient', 'registerserif', 'copyrightserif', 'trademarkserif', 'product', 'radical', 'dotmath', 'logicalnot', 'logicaland', 'logicalor', 'arrowdblboth', 'arrowdblleft', 'arrowdblup', 'arrowdblright', 'arrowdbldown', 'lozenge', 'angleleft', 'registersans', 'copyrightsans', 'trademarksans', 'summation', 'parenlefttp', 'parenleftex', 'parenleftbt', 'bracketlefttp', 'bracketleftex', 'bracketleftbt', 'bracelefttp', 'braceleftmid', 'braceleftbt', 'braceex', '', 'angleright', 'integral', 'integraltp', 'integralex', 'integralbt', 'parenrighttp', 'parenrightex', 'parenrightbt', 'bracketrighttp', 'bracketrightex', 'bracketrightbt', 'bracerighttp', 'bracerightmid', 'bracerightbt', '']; +const SymbolSetEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "exclam", "universal", "numbersign", "existential", "percent", "ampersand", "suchthat", "parenleft", "parenright", "asteriskmath", "plus", "comma", "minus", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "congruent", "Alpha", "Beta", "Chi", "Delta", "Epsilon", "Phi", "Gamma", "Eta", "Iota", "theta1", "Kappa", "Lambda", "Mu", "Nu", "Omicron", "Pi", "Theta", "Rho", "Sigma", "Tau", "Upsilon", "sigma1", "Omega", "Xi", "Psi", "Zeta", "bracketleft", "therefore", "bracketright", "perpendicular", "underscore", "radicalex", "alpha", "beta", "chi", "delta", "epsilon", "phi", "gamma", "eta", "iota", "phi1", "kappa", "lambda", "mu", "nu", "omicron", "pi", "theta", "rho", "sigma", "tau", "upsilon", "omega1", "omega", "xi", "psi", "zeta", "braceleft", "bar", "braceright", "similar", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "Euro", "Upsilon1", "minute", "lessequal", "fraction", "infinity", "florin", "club", "diamond", "heart", "spade", "arrowboth", "arrowleft", "arrowup", "arrowright", "arrowdown", "degree", "plusminus", "second", "greaterequal", "multiply", "proportional", "partialdiff", "bullet", "divide", "notequal", "equivalence", "approxequal", "ellipsis", "arrowvertex", "arrowhorizex", "carriagereturn", "aleph", "Ifraktur", "Rfraktur", "weierstrass", "circlemultiply", "circleplus", "emptyset", "intersection", "union", "propersuperset", "reflexsuperset", "notsubset", "propersubset", "reflexsubset", "element", "notelement", "angle", "gradient", "registerserif", "copyrightserif", "trademarkserif", "product", "radical", "dotmath", "logicalnot", "logicaland", "logicalor", "arrowdblboth", "arrowdblleft", "arrowdblup", "arrowdblright", "arrowdbldown", "lozenge", "angleleft", "registersans", "copyrightsans", "trademarksans", "summation", "parenlefttp", "parenleftex", "parenleftbt", "bracketlefttp", "bracketleftex", "bracketleftbt", "bracelefttp", "braceleftmid", "braceleftbt", "braceex", "", "angleright", "integral", "integraltp", "integralex", "integralbt", "parenrighttp", "parenrightex", "parenrightbt", "bracketrighttp", "bracketrightex", "bracketrightbt", "bracerighttp", "bracerightmid", "bracerightbt", ""]; exports.SymbolSetEncoding = SymbolSetEncoding; -const ZapfDingbatsEncoding = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'space', 'a1', 'a2', 'a202', 'a3', 'a4', 'a5', 'a119', 'a118', 'a117', 'a11', 'a12', 'a13', 'a14', 'a15', 'a16', 'a105', 'a17', 'a18', 'a19', 'a20', 'a21', 'a22', 'a23', 'a24', 'a25', 'a26', 'a27', 'a28', 'a6', 'a7', 'a8', 'a9', 'a10', 'a29', 'a30', 'a31', 'a32', 'a33', 'a34', 'a35', 'a36', 'a37', 'a38', 'a39', 'a40', 'a41', 'a42', 'a43', 'a44', 'a45', 'a46', 'a47', 'a48', 'a49', 'a50', 'a51', 'a52', 'a53', 'a54', 'a55', 'a56', 'a57', 'a58', 'a59', 'a60', 'a61', 'a62', 'a63', 'a64', 'a65', 'a66', 'a67', 'a68', 'a69', 'a70', 'a71', 'a72', 'a73', 'a74', 'a203', 'a75', 'a204', 'a76', 'a77', 'a78', 'a79', 'a81', 'a82', 'a83', 'a84', 'a97', 'a98', 'a99', 'a100', '', 'a89', 'a90', 'a93', 'a94', 'a91', 'a92', 'a205', 'a85', 'a206', 'a86', 'a87', 'a88', 'a95', 'a96', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'a101', 'a102', 'a103', 'a104', 'a106', 'a107', 'a108', 'a112', 'a111', 'a110', 'a109', 'a120', 'a121', 'a122', 'a123', 'a124', 'a125', 'a126', 'a127', 'a128', 'a129', 'a130', 'a131', 'a132', 'a133', 'a134', 'a135', 'a136', 'a137', 'a138', 'a139', 'a140', 'a141', 'a142', 'a143', 'a144', 'a145', 'a146', 'a147', 'a148', 'a149', 'a150', 'a151', 'a152', 'a153', 'a154', 'a155', 'a156', 'a157', 'a158', 'a159', 'a160', 'a161', 'a163', 'a164', 'a196', 'a165', 'a192', 'a166', 'a167', 'a168', 'a169', 'a170', 'a171', 'a172', 'a173', 'a162', 'a174', 'a175', 'a176', 'a177', 'a178', 'a179', 'a193', 'a180', 'a199', 'a181', 'a200', 'a182', '', 'a201', 'a183', 'a184', 'a197', 'a185', 'a194', 'a198', 'a186', 'a195', 'a187', 'a188', 'a189', 'a190', 'a191', '']; +const ZapfDingbatsEncoding = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "space", "a1", "a2", "a202", "a3", "a4", "a5", "a119", "a118", "a117", "a11", "a12", "a13", "a14", "a15", "a16", "a105", "a17", "a18", "a19", "a20", "a21", "a22", "a23", "a24", "a25", "a26", "a27", "a28", "a6", "a7", "a8", "a9", "a10", "a29", "a30", "a31", "a32", "a33", "a34", "a35", "a36", "a37", "a38", "a39", "a40", "a41", "a42", "a43", "a44", "a45", "a46", "a47", "a48", "a49", "a50", "a51", "a52", "a53", "a54", "a55", "a56", "a57", "a58", "a59", "a60", "a61", "a62", "a63", "a64", "a65", "a66", "a67", "a68", "a69", "a70", "a71", "a72", "a73", "a74", "a203", "a75", "a204", "a76", "a77", "a78", "a79", "a81", "a82", "a83", "a84", "a97", "a98", "a99", "a100", "", "a89", "a90", "a93", "a94", "a91", "a92", "a205", "a85", "a206", "a86", "a87", "a88", "a95", "a96", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "a101", "a102", "a103", "a104", "a106", "a107", "a108", "a112", "a111", "a110", "a109", "a120", "a121", "a122", "a123", "a124", "a125", "a126", "a127", "a128", "a129", "a130", "a131", "a132", "a133", "a134", "a135", "a136", "a137", "a138", "a139", "a140", "a141", "a142", "a143", "a144", "a145", "a146", "a147", "a148", "a149", "a150", "a151", "a152", "a153", "a154", "a155", "a156", "a157", "a158", "a159", "a160", "a161", "a163", "a164", "a196", "a165", "a192", "a166", "a167", "a168", "a169", "a170", "a171", "a172", "a173", "a162", "a174", "a175", "a176", "a177", "a178", "a179", "a193", "a180", "a199", "a181", "a200", "a182", "", "a201", "a183", "a184", "a197", "a185", "a194", "a198", "a186", "a195", "a187", "a188", "a189", "a190", "a191", ""]; exports.ZapfDingbatsEncoding = ZapfDingbatsEncoding; function getEncoding(encodingName) { switch (encodingName) { - case 'WinAnsiEncoding': + case "WinAnsiEncoding": return WinAnsiEncoding; - case 'StandardEncoding': + case "StandardEncoding": return StandardEncoding; - case 'MacRomanEncoding': + case "MacRomanEncoding": return MacRomanEncoding; - case 'SymbolSetEncoding': + case "SymbolSetEncoding": return SymbolSetEncoding; - case 'ZapfDingbatsEncoding': + case "ZapfDingbatsEncoding": return ZapfDingbatsEncoding; - case 'ExpertEncoding': + case "ExpertEncoding": return ExpertEncoding; - case 'MacExpertEncoding': + case "MacExpertEncoding": return MacExpertEncoding; default: @@ -29143,4544 +29159,4544 @@ function getEncoding(encodingName) { } /***/ }), -/* 32 */ +/* 31 */ /***/ (function(module, exports, __w_pdfjs_require__) { -var getLookupTableFactory = __w_pdfjs_require__(8).getLookupTableFactory; +var getLookupTableFactory = __w_pdfjs_require__(7).getLookupTableFactory; var getGlyphsUnicode = getLookupTableFactory(function (t) { - t['A'] = 0x0041; - t['AE'] = 0x00C6; - t['AEacute'] = 0x01FC; - t['AEmacron'] = 0x01E2; - t['AEsmall'] = 0xF7E6; - t['Aacute'] = 0x00C1; - t['Aacutesmall'] = 0xF7E1; - t['Abreve'] = 0x0102; - t['Abreveacute'] = 0x1EAE; - t['Abrevecyrillic'] = 0x04D0; - t['Abrevedotbelow'] = 0x1EB6; - t['Abrevegrave'] = 0x1EB0; - t['Abrevehookabove'] = 0x1EB2; - t['Abrevetilde'] = 0x1EB4; - t['Acaron'] = 0x01CD; - t['Acircle'] = 0x24B6; - t['Acircumflex'] = 0x00C2; - t['Acircumflexacute'] = 0x1EA4; - t['Acircumflexdotbelow'] = 0x1EAC; - t['Acircumflexgrave'] = 0x1EA6; - t['Acircumflexhookabove'] = 0x1EA8; - t['Acircumflexsmall'] = 0xF7E2; - t['Acircumflextilde'] = 0x1EAA; - t['Acute'] = 0xF6C9; - t['Acutesmall'] = 0xF7B4; - t['Acyrillic'] = 0x0410; - t['Adblgrave'] = 0x0200; - t['Adieresis'] = 0x00C4; - t['Adieresiscyrillic'] = 0x04D2; - t['Adieresismacron'] = 0x01DE; - t['Adieresissmall'] = 0xF7E4; - t['Adotbelow'] = 0x1EA0; - t['Adotmacron'] = 0x01E0; - t['Agrave'] = 0x00C0; - t['Agravesmall'] = 0xF7E0; - t['Ahookabove'] = 0x1EA2; - t['Aiecyrillic'] = 0x04D4; - t['Ainvertedbreve'] = 0x0202; - t['Alpha'] = 0x0391; - t['Alphatonos'] = 0x0386; - t['Amacron'] = 0x0100; - t['Amonospace'] = 0xFF21; - t['Aogonek'] = 0x0104; - t['Aring'] = 0x00C5; - t['Aringacute'] = 0x01FA; - t['Aringbelow'] = 0x1E00; - t['Aringsmall'] = 0xF7E5; - t['Asmall'] = 0xF761; - t['Atilde'] = 0x00C3; - t['Atildesmall'] = 0xF7E3; - t['Aybarmenian'] = 0x0531; - t['B'] = 0x0042; - t['Bcircle'] = 0x24B7; - t['Bdotaccent'] = 0x1E02; - t['Bdotbelow'] = 0x1E04; - t['Becyrillic'] = 0x0411; - t['Benarmenian'] = 0x0532; - t['Beta'] = 0x0392; - t['Bhook'] = 0x0181; - t['Blinebelow'] = 0x1E06; - t['Bmonospace'] = 0xFF22; - t['Brevesmall'] = 0xF6F4; - t['Bsmall'] = 0xF762; - t['Btopbar'] = 0x0182; - t['C'] = 0x0043; - t['Caarmenian'] = 0x053E; - t['Cacute'] = 0x0106; - t['Caron'] = 0xF6CA; - t['Caronsmall'] = 0xF6F5; - t['Ccaron'] = 0x010C; - t['Ccedilla'] = 0x00C7; - t['Ccedillaacute'] = 0x1E08; - t['Ccedillasmall'] = 0xF7E7; - t['Ccircle'] = 0x24B8; - t['Ccircumflex'] = 0x0108; - t['Cdot'] = 0x010A; - t['Cdotaccent'] = 0x010A; - t['Cedillasmall'] = 0xF7B8; - t['Chaarmenian'] = 0x0549; - t['Cheabkhasiancyrillic'] = 0x04BC; - t['Checyrillic'] = 0x0427; - t['Chedescenderabkhasiancyrillic'] = 0x04BE; - t['Chedescendercyrillic'] = 0x04B6; - t['Chedieresiscyrillic'] = 0x04F4; - t['Cheharmenian'] = 0x0543; - t['Chekhakassiancyrillic'] = 0x04CB; - t['Cheverticalstrokecyrillic'] = 0x04B8; - t['Chi'] = 0x03A7; - t['Chook'] = 0x0187; - t['Circumflexsmall'] = 0xF6F6; - t['Cmonospace'] = 0xFF23; - t['Coarmenian'] = 0x0551; - t['Csmall'] = 0xF763; - t['D'] = 0x0044; - t['DZ'] = 0x01F1; - t['DZcaron'] = 0x01C4; - t['Daarmenian'] = 0x0534; - t['Dafrican'] = 0x0189; - t['Dcaron'] = 0x010E; - t['Dcedilla'] = 0x1E10; - t['Dcircle'] = 0x24B9; - t['Dcircumflexbelow'] = 0x1E12; - t['Dcroat'] = 0x0110; - t['Ddotaccent'] = 0x1E0A; - t['Ddotbelow'] = 0x1E0C; - t['Decyrillic'] = 0x0414; - t['Deicoptic'] = 0x03EE; - t['Delta'] = 0x2206; - t['Deltagreek'] = 0x0394; - t['Dhook'] = 0x018A; - t['Dieresis'] = 0xF6CB; - t['DieresisAcute'] = 0xF6CC; - t['DieresisGrave'] = 0xF6CD; - t['Dieresissmall'] = 0xF7A8; - t['Digammagreek'] = 0x03DC; - t['Djecyrillic'] = 0x0402; - t['Dlinebelow'] = 0x1E0E; - t['Dmonospace'] = 0xFF24; - t['Dotaccentsmall'] = 0xF6F7; - t['Dslash'] = 0x0110; - t['Dsmall'] = 0xF764; - t['Dtopbar'] = 0x018B; - t['Dz'] = 0x01F2; - t['Dzcaron'] = 0x01C5; - t['Dzeabkhasiancyrillic'] = 0x04E0; - t['Dzecyrillic'] = 0x0405; - t['Dzhecyrillic'] = 0x040F; - t['E'] = 0x0045; - t['Eacute'] = 0x00C9; - t['Eacutesmall'] = 0xF7E9; - t['Ebreve'] = 0x0114; - t['Ecaron'] = 0x011A; - t['Ecedillabreve'] = 0x1E1C; - t['Echarmenian'] = 0x0535; - t['Ecircle'] = 0x24BA; - t['Ecircumflex'] = 0x00CA; - t['Ecircumflexacute'] = 0x1EBE; - t['Ecircumflexbelow'] = 0x1E18; - t['Ecircumflexdotbelow'] = 0x1EC6; - t['Ecircumflexgrave'] = 0x1EC0; - t['Ecircumflexhookabove'] = 0x1EC2; - t['Ecircumflexsmall'] = 0xF7EA; - t['Ecircumflextilde'] = 0x1EC4; - t['Ecyrillic'] = 0x0404; - t['Edblgrave'] = 0x0204; - t['Edieresis'] = 0x00CB; - t['Edieresissmall'] = 0xF7EB; - t['Edot'] = 0x0116; - t['Edotaccent'] = 0x0116; - t['Edotbelow'] = 0x1EB8; - t['Efcyrillic'] = 0x0424; - t['Egrave'] = 0x00C8; - t['Egravesmall'] = 0xF7E8; - t['Eharmenian'] = 0x0537; - t['Ehookabove'] = 0x1EBA; - t['Eightroman'] = 0x2167; - t['Einvertedbreve'] = 0x0206; - t['Eiotifiedcyrillic'] = 0x0464; - t['Elcyrillic'] = 0x041B; - t['Elevenroman'] = 0x216A; - t['Emacron'] = 0x0112; - t['Emacronacute'] = 0x1E16; - t['Emacrongrave'] = 0x1E14; - t['Emcyrillic'] = 0x041C; - t['Emonospace'] = 0xFF25; - t['Encyrillic'] = 0x041D; - t['Endescendercyrillic'] = 0x04A2; - t['Eng'] = 0x014A; - t['Enghecyrillic'] = 0x04A4; - t['Enhookcyrillic'] = 0x04C7; - t['Eogonek'] = 0x0118; - t['Eopen'] = 0x0190; - t['Epsilon'] = 0x0395; - t['Epsilontonos'] = 0x0388; - t['Ercyrillic'] = 0x0420; - t['Ereversed'] = 0x018E; - t['Ereversedcyrillic'] = 0x042D; - t['Escyrillic'] = 0x0421; - t['Esdescendercyrillic'] = 0x04AA; - t['Esh'] = 0x01A9; - t['Esmall'] = 0xF765; - t['Eta'] = 0x0397; - t['Etarmenian'] = 0x0538; - t['Etatonos'] = 0x0389; - t['Eth'] = 0x00D0; - t['Ethsmall'] = 0xF7F0; - t['Etilde'] = 0x1EBC; - t['Etildebelow'] = 0x1E1A; - t['Euro'] = 0x20AC; - t['Ezh'] = 0x01B7; - t['Ezhcaron'] = 0x01EE; - t['Ezhreversed'] = 0x01B8; - t['F'] = 0x0046; - t['Fcircle'] = 0x24BB; - t['Fdotaccent'] = 0x1E1E; - t['Feharmenian'] = 0x0556; - t['Feicoptic'] = 0x03E4; - t['Fhook'] = 0x0191; - t['Fitacyrillic'] = 0x0472; - t['Fiveroman'] = 0x2164; - t['Fmonospace'] = 0xFF26; - t['Fourroman'] = 0x2163; - t['Fsmall'] = 0xF766; - t['G'] = 0x0047; - t['GBsquare'] = 0x3387; - t['Gacute'] = 0x01F4; - t['Gamma'] = 0x0393; - t['Gammaafrican'] = 0x0194; - t['Gangiacoptic'] = 0x03EA; - t['Gbreve'] = 0x011E; - t['Gcaron'] = 0x01E6; - t['Gcedilla'] = 0x0122; - t['Gcircle'] = 0x24BC; - t['Gcircumflex'] = 0x011C; - t['Gcommaaccent'] = 0x0122; - t['Gdot'] = 0x0120; - t['Gdotaccent'] = 0x0120; - t['Gecyrillic'] = 0x0413; - t['Ghadarmenian'] = 0x0542; - t['Ghemiddlehookcyrillic'] = 0x0494; - t['Ghestrokecyrillic'] = 0x0492; - t['Gheupturncyrillic'] = 0x0490; - t['Ghook'] = 0x0193; - t['Gimarmenian'] = 0x0533; - t['Gjecyrillic'] = 0x0403; - t['Gmacron'] = 0x1E20; - t['Gmonospace'] = 0xFF27; - t['Grave'] = 0xF6CE; - t['Gravesmall'] = 0xF760; - t['Gsmall'] = 0xF767; - t['Gsmallhook'] = 0x029B; - t['Gstroke'] = 0x01E4; - t['H'] = 0x0048; - t['H18533'] = 0x25CF; - t['H18543'] = 0x25AA; - t['H18551'] = 0x25AB; - t['H22073'] = 0x25A1; - t['HPsquare'] = 0x33CB; - t['Haabkhasiancyrillic'] = 0x04A8; - t['Hadescendercyrillic'] = 0x04B2; - t['Hardsigncyrillic'] = 0x042A; - t['Hbar'] = 0x0126; - t['Hbrevebelow'] = 0x1E2A; - t['Hcedilla'] = 0x1E28; - t['Hcircle'] = 0x24BD; - t['Hcircumflex'] = 0x0124; - t['Hdieresis'] = 0x1E26; - t['Hdotaccent'] = 0x1E22; - t['Hdotbelow'] = 0x1E24; - t['Hmonospace'] = 0xFF28; - t['Hoarmenian'] = 0x0540; - t['Horicoptic'] = 0x03E8; - t['Hsmall'] = 0xF768; - t['Hungarumlaut'] = 0xF6CF; - t['Hungarumlautsmall'] = 0xF6F8; - t['Hzsquare'] = 0x3390; - t['I'] = 0x0049; - t['IAcyrillic'] = 0x042F; - t['IJ'] = 0x0132; - t['IUcyrillic'] = 0x042E; - t['Iacute'] = 0x00CD; - t['Iacutesmall'] = 0xF7ED; - t['Ibreve'] = 0x012C; - t['Icaron'] = 0x01CF; - t['Icircle'] = 0x24BE; - t['Icircumflex'] = 0x00CE; - t['Icircumflexsmall'] = 0xF7EE; - t['Icyrillic'] = 0x0406; - t['Idblgrave'] = 0x0208; - t['Idieresis'] = 0x00CF; - t['Idieresisacute'] = 0x1E2E; - t['Idieresiscyrillic'] = 0x04E4; - t['Idieresissmall'] = 0xF7EF; - t['Idot'] = 0x0130; - t['Idotaccent'] = 0x0130; - t['Idotbelow'] = 0x1ECA; - t['Iebrevecyrillic'] = 0x04D6; - t['Iecyrillic'] = 0x0415; - t['Ifraktur'] = 0x2111; - t['Igrave'] = 0x00CC; - t['Igravesmall'] = 0xF7EC; - t['Ihookabove'] = 0x1EC8; - t['Iicyrillic'] = 0x0418; - t['Iinvertedbreve'] = 0x020A; - t['Iishortcyrillic'] = 0x0419; - t['Imacron'] = 0x012A; - t['Imacroncyrillic'] = 0x04E2; - t['Imonospace'] = 0xFF29; - t['Iniarmenian'] = 0x053B; - t['Iocyrillic'] = 0x0401; - t['Iogonek'] = 0x012E; - t['Iota'] = 0x0399; - t['Iotaafrican'] = 0x0196; - t['Iotadieresis'] = 0x03AA; - t['Iotatonos'] = 0x038A; - t['Ismall'] = 0xF769; - t['Istroke'] = 0x0197; - t['Itilde'] = 0x0128; - t['Itildebelow'] = 0x1E2C; - t['Izhitsacyrillic'] = 0x0474; - t['Izhitsadblgravecyrillic'] = 0x0476; - t['J'] = 0x004A; - t['Jaarmenian'] = 0x0541; - t['Jcircle'] = 0x24BF; - t['Jcircumflex'] = 0x0134; - t['Jecyrillic'] = 0x0408; - t['Jheharmenian'] = 0x054B; - t['Jmonospace'] = 0xFF2A; - t['Jsmall'] = 0xF76A; - t['K'] = 0x004B; - t['KBsquare'] = 0x3385; - t['KKsquare'] = 0x33CD; - t['Kabashkircyrillic'] = 0x04A0; - t['Kacute'] = 0x1E30; - t['Kacyrillic'] = 0x041A; - t['Kadescendercyrillic'] = 0x049A; - t['Kahookcyrillic'] = 0x04C3; - t['Kappa'] = 0x039A; - t['Kastrokecyrillic'] = 0x049E; - t['Kaverticalstrokecyrillic'] = 0x049C; - t['Kcaron'] = 0x01E8; - t['Kcedilla'] = 0x0136; - t['Kcircle'] = 0x24C0; - t['Kcommaaccent'] = 0x0136; - t['Kdotbelow'] = 0x1E32; - t['Keharmenian'] = 0x0554; - t['Kenarmenian'] = 0x053F; - t['Khacyrillic'] = 0x0425; - t['Kheicoptic'] = 0x03E6; - t['Khook'] = 0x0198; - t['Kjecyrillic'] = 0x040C; - t['Klinebelow'] = 0x1E34; - t['Kmonospace'] = 0xFF2B; - t['Koppacyrillic'] = 0x0480; - t['Koppagreek'] = 0x03DE; - t['Ksicyrillic'] = 0x046E; - t['Ksmall'] = 0xF76B; - t['L'] = 0x004C; - t['LJ'] = 0x01C7; - t['LL'] = 0xF6BF; - t['Lacute'] = 0x0139; - t['Lambda'] = 0x039B; - t['Lcaron'] = 0x013D; - t['Lcedilla'] = 0x013B; - t['Lcircle'] = 0x24C1; - t['Lcircumflexbelow'] = 0x1E3C; - t['Lcommaaccent'] = 0x013B; - t['Ldot'] = 0x013F; - t['Ldotaccent'] = 0x013F; - t['Ldotbelow'] = 0x1E36; - t['Ldotbelowmacron'] = 0x1E38; - t['Liwnarmenian'] = 0x053C; - t['Lj'] = 0x01C8; - t['Ljecyrillic'] = 0x0409; - t['Llinebelow'] = 0x1E3A; - t['Lmonospace'] = 0xFF2C; - t['Lslash'] = 0x0141; - t['Lslashsmall'] = 0xF6F9; - t['Lsmall'] = 0xF76C; - t['M'] = 0x004D; - t['MBsquare'] = 0x3386; - t['Macron'] = 0xF6D0; - t['Macronsmall'] = 0xF7AF; - t['Macute'] = 0x1E3E; - t['Mcircle'] = 0x24C2; - t['Mdotaccent'] = 0x1E40; - t['Mdotbelow'] = 0x1E42; - t['Menarmenian'] = 0x0544; - t['Mmonospace'] = 0xFF2D; - t['Msmall'] = 0xF76D; - t['Mturned'] = 0x019C; - t['Mu'] = 0x039C; - t['N'] = 0x004E; - t['NJ'] = 0x01CA; - t['Nacute'] = 0x0143; - t['Ncaron'] = 0x0147; - t['Ncedilla'] = 0x0145; - t['Ncircle'] = 0x24C3; - t['Ncircumflexbelow'] = 0x1E4A; - t['Ncommaaccent'] = 0x0145; - t['Ndotaccent'] = 0x1E44; - t['Ndotbelow'] = 0x1E46; - t['Nhookleft'] = 0x019D; - t['Nineroman'] = 0x2168; - t['Nj'] = 0x01CB; - t['Njecyrillic'] = 0x040A; - t['Nlinebelow'] = 0x1E48; - t['Nmonospace'] = 0xFF2E; - t['Nowarmenian'] = 0x0546; - t['Nsmall'] = 0xF76E; - t['Ntilde'] = 0x00D1; - t['Ntildesmall'] = 0xF7F1; - t['Nu'] = 0x039D; - t['O'] = 0x004F; - t['OE'] = 0x0152; - t['OEsmall'] = 0xF6FA; - t['Oacute'] = 0x00D3; - t['Oacutesmall'] = 0xF7F3; - t['Obarredcyrillic'] = 0x04E8; - t['Obarreddieresiscyrillic'] = 0x04EA; - t['Obreve'] = 0x014E; - t['Ocaron'] = 0x01D1; - t['Ocenteredtilde'] = 0x019F; - t['Ocircle'] = 0x24C4; - t['Ocircumflex'] = 0x00D4; - t['Ocircumflexacute'] = 0x1ED0; - t['Ocircumflexdotbelow'] = 0x1ED8; - t['Ocircumflexgrave'] = 0x1ED2; - t['Ocircumflexhookabove'] = 0x1ED4; - t['Ocircumflexsmall'] = 0xF7F4; - t['Ocircumflextilde'] = 0x1ED6; - t['Ocyrillic'] = 0x041E; - t['Odblacute'] = 0x0150; - t['Odblgrave'] = 0x020C; - t['Odieresis'] = 0x00D6; - t['Odieresiscyrillic'] = 0x04E6; - t['Odieresissmall'] = 0xF7F6; - t['Odotbelow'] = 0x1ECC; - t['Ogoneksmall'] = 0xF6FB; - t['Ograve'] = 0x00D2; - t['Ogravesmall'] = 0xF7F2; - t['Oharmenian'] = 0x0555; - t['Ohm'] = 0x2126; - t['Ohookabove'] = 0x1ECE; - t['Ohorn'] = 0x01A0; - t['Ohornacute'] = 0x1EDA; - t['Ohorndotbelow'] = 0x1EE2; - t['Ohorngrave'] = 0x1EDC; - t['Ohornhookabove'] = 0x1EDE; - t['Ohorntilde'] = 0x1EE0; - t['Ohungarumlaut'] = 0x0150; - t['Oi'] = 0x01A2; - t['Oinvertedbreve'] = 0x020E; - t['Omacron'] = 0x014C; - t['Omacronacute'] = 0x1E52; - t['Omacrongrave'] = 0x1E50; - t['Omega'] = 0x2126; - t['Omegacyrillic'] = 0x0460; - t['Omegagreek'] = 0x03A9; - t['Omegaroundcyrillic'] = 0x047A; - t['Omegatitlocyrillic'] = 0x047C; - t['Omegatonos'] = 0x038F; - t['Omicron'] = 0x039F; - t['Omicrontonos'] = 0x038C; - t['Omonospace'] = 0xFF2F; - t['Oneroman'] = 0x2160; - t['Oogonek'] = 0x01EA; - t['Oogonekmacron'] = 0x01EC; - t['Oopen'] = 0x0186; - t['Oslash'] = 0x00D8; - t['Oslashacute'] = 0x01FE; - t['Oslashsmall'] = 0xF7F8; - t['Osmall'] = 0xF76F; - t['Ostrokeacute'] = 0x01FE; - t['Otcyrillic'] = 0x047E; - t['Otilde'] = 0x00D5; - t['Otildeacute'] = 0x1E4C; - t['Otildedieresis'] = 0x1E4E; - t['Otildesmall'] = 0xF7F5; - t['P'] = 0x0050; - t['Pacute'] = 0x1E54; - t['Pcircle'] = 0x24C5; - t['Pdotaccent'] = 0x1E56; - t['Pecyrillic'] = 0x041F; - t['Peharmenian'] = 0x054A; - t['Pemiddlehookcyrillic'] = 0x04A6; - t['Phi'] = 0x03A6; - t['Phook'] = 0x01A4; - t['Pi'] = 0x03A0; - t['Piwrarmenian'] = 0x0553; - t['Pmonospace'] = 0xFF30; - t['Psi'] = 0x03A8; - t['Psicyrillic'] = 0x0470; - t['Psmall'] = 0xF770; - t['Q'] = 0x0051; - t['Qcircle'] = 0x24C6; - t['Qmonospace'] = 0xFF31; - t['Qsmall'] = 0xF771; - t['R'] = 0x0052; - t['Raarmenian'] = 0x054C; - t['Racute'] = 0x0154; - t['Rcaron'] = 0x0158; - t['Rcedilla'] = 0x0156; - t['Rcircle'] = 0x24C7; - t['Rcommaaccent'] = 0x0156; - t['Rdblgrave'] = 0x0210; - t['Rdotaccent'] = 0x1E58; - t['Rdotbelow'] = 0x1E5A; - t['Rdotbelowmacron'] = 0x1E5C; - t['Reharmenian'] = 0x0550; - t['Rfraktur'] = 0x211C; - t['Rho'] = 0x03A1; - t['Ringsmall'] = 0xF6FC; - t['Rinvertedbreve'] = 0x0212; - t['Rlinebelow'] = 0x1E5E; - t['Rmonospace'] = 0xFF32; - t['Rsmall'] = 0xF772; - t['Rsmallinverted'] = 0x0281; - t['Rsmallinvertedsuperior'] = 0x02B6; - t['S'] = 0x0053; - t['SF010000'] = 0x250C; - t['SF020000'] = 0x2514; - t['SF030000'] = 0x2510; - t['SF040000'] = 0x2518; - t['SF050000'] = 0x253C; - t['SF060000'] = 0x252C; - t['SF070000'] = 0x2534; - t['SF080000'] = 0x251C; - t['SF090000'] = 0x2524; - t['SF100000'] = 0x2500; - t['SF110000'] = 0x2502; - t['SF190000'] = 0x2561; - t['SF200000'] = 0x2562; - t['SF210000'] = 0x2556; - t['SF220000'] = 0x2555; - t['SF230000'] = 0x2563; - t['SF240000'] = 0x2551; - t['SF250000'] = 0x2557; - t['SF260000'] = 0x255D; - t['SF270000'] = 0x255C; - t['SF280000'] = 0x255B; - t['SF360000'] = 0x255E; - t['SF370000'] = 0x255F; - t['SF380000'] = 0x255A; - t['SF390000'] = 0x2554; - t['SF400000'] = 0x2569; - t['SF410000'] = 0x2566; - t['SF420000'] = 0x2560; - t['SF430000'] = 0x2550; - t['SF440000'] = 0x256C; - t['SF450000'] = 0x2567; - t['SF460000'] = 0x2568; - t['SF470000'] = 0x2564; - t['SF480000'] = 0x2565; - t['SF490000'] = 0x2559; - t['SF500000'] = 0x2558; - t['SF510000'] = 0x2552; - t['SF520000'] = 0x2553; - t['SF530000'] = 0x256B; - t['SF540000'] = 0x256A; - t['Sacute'] = 0x015A; - t['Sacutedotaccent'] = 0x1E64; - t['Sampigreek'] = 0x03E0; - t['Scaron'] = 0x0160; - t['Scarondotaccent'] = 0x1E66; - t['Scaronsmall'] = 0xF6FD; - t['Scedilla'] = 0x015E; - t['Schwa'] = 0x018F; - t['Schwacyrillic'] = 0x04D8; - t['Schwadieresiscyrillic'] = 0x04DA; - t['Scircle'] = 0x24C8; - t['Scircumflex'] = 0x015C; - t['Scommaaccent'] = 0x0218; - t['Sdotaccent'] = 0x1E60; - t['Sdotbelow'] = 0x1E62; - t['Sdotbelowdotaccent'] = 0x1E68; - t['Seharmenian'] = 0x054D; - t['Sevenroman'] = 0x2166; - t['Shaarmenian'] = 0x0547; - t['Shacyrillic'] = 0x0428; - t['Shchacyrillic'] = 0x0429; - t['Sheicoptic'] = 0x03E2; - t['Shhacyrillic'] = 0x04BA; - t['Shimacoptic'] = 0x03EC; - t['Sigma'] = 0x03A3; - t['Sixroman'] = 0x2165; - t['Smonospace'] = 0xFF33; - t['Softsigncyrillic'] = 0x042C; - t['Ssmall'] = 0xF773; - t['Stigmagreek'] = 0x03DA; - t['T'] = 0x0054; - t['Tau'] = 0x03A4; - t['Tbar'] = 0x0166; - t['Tcaron'] = 0x0164; - t['Tcedilla'] = 0x0162; - t['Tcircle'] = 0x24C9; - t['Tcircumflexbelow'] = 0x1E70; - t['Tcommaaccent'] = 0x0162; - t['Tdotaccent'] = 0x1E6A; - t['Tdotbelow'] = 0x1E6C; - t['Tecyrillic'] = 0x0422; - t['Tedescendercyrillic'] = 0x04AC; - t['Tenroman'] = 0x2169; - t['Tetsecyrillic'] = 0x04B4; - t['Theta'] = 0x0398; - t['Thook'] = 0x01AC; - t['Thorn'] = 0x00DE; - t['Thornsmall'] = 0xF7FE; - t['Threeroman'] = 0x2162; - t['Tildesmall'] = 0xF6FE; - t['Tiwnarmenian'] = 0x054F; - t['Tlinebelow'] = 0x1E6E; - t['Tmonospace'] = 0xFF34; - t['Toarmenian'] = 0x0539; - t['Tonefive'] = 0x01BC; - t['Tonesix'] = 0x0184; - t['Tonetwo'] = 0x01A7; - t['Tretroflexhook'] = 0x01AE; - t['Tsecyrillic'] = 0x0426; - t['Tshecyrillic'] = 0x040B; - t['Tsmall'] = 0xF774; - t['Twelveroman'] = 0x216B; - t['Tworoman'] = 0x2161; - t['U'] = 0x0055; - t['Uacute'] = 0x00DA; - t['Uacutesmall'] = 0xF7FA; - t['Ubreve'] = 0x016C; - t['Ucaron'] = 0x01D3; - t['Ucircle'] = 0x24CA; - t['Ucircumflex'] = 0x00DB; - t['Ucircumflexbelow'] = 0x1E76; - t['Ucircumflexsmall'] = 0xF7FB; - t['Ucyrillic'] = 0x0423; - t['Udblacute'] = 0x0170; - t['Udblgrave'] = 0x0214; - t['Udieresis'] = 0x00DC; - t['Udieresisacute'] = 0x01D7; - t['Udieresisbelow'] = 0x1E72; - t['Udieresiscaron'] = 0x01D9; - t['Udieresiscyrillic'] = 0x04F0; - t['Udieresisgrave'] = 0x01DB; - t['Udieresismacron'] = 0x01D5; - t['Udieresissmall'] = 0xF7FC; - t['Udotbelow'] = 0x1EE4; - t['Ugrave'] = 0x00D9; - t['Ugravesmall'] = 0xF7F9; - t['Uhookabove'] = 0x1EE6; - t['Uhorn'] = 0x01AF; - t['Uhornacute'] = 0x1EE8; - t['Uhorndotbelow'] = 0x1EF0; - t['Uhorngrave'] = 0x1EEA; - t['Uhornhookabove'] = 0x1EEC; - t['Uhorntilde'] = 0x1EEE; - t['Uhungarumlaut'] = 0x0170; - t['Uhungarumlautcyrillic'] = 0x04F2; - t['Uinvertedbreve'] = 0x0216; - t['Ukcyrillic'] = 0x0478; - t['Umacron'] = 0x016A; - t['Umacroncyrillic'] = 0x04EE; - t['Umacrondieresis'] = 0x1E7A; - t['Umonospace'] = 0xFF35; - t['Uogonek'] = 0x0172; - t['Upsilon'] = 0x03A5; - t['Upsilon1'] = 0x03D2; - t['Upsilonacutehooksymbolgreek'] = 0x03D3; - t['Upsilonafrican'] = 0x01B1; - t['Upsilondieresis'] = 0x03AB; - t['Upsilondieresishooksymbolgreek'] = 0x03D4; - t['Upsilonhooksymbol'] = 0x03D2; - t['Upsilontonos'] = 0x038E; - t['Uring'] = 0x016E; - t['Ushortcyrillic'] = 0x040E; - t['Usmall'] = 0xF775; - t['Ustraightcyrillic'] = 0x04AE; - t['Ustraightstrokecyrillic'] = 0x04B0; - t['Utilde'] = 0x0168; - t['Utildeacute'] = 0x1E78; - t['Utildebelow'] = 0x1E74; - t['V'] = 0x0056; - t['Vcircle'] = 0x24CB; - t['Vdotbelow'] = 0x1E7E; - t['Vecyrillic'] = 0x0412; - t['Vewarmenian'] = 0x054E; - t['Vhook'] = 0x01B2; - t['Vmonospace'] = 0xFF36; - t['Voarmenian'] = 0x0548; - t['Vsmall'] = 0xF776; - t['Vtilde'] = 0x1E7C; - t['W'] = 0x0057; - t['Wacute'] = 0x1E82; - t['Wcircle'] = 0x24CC; - t['Wcircumflex'] = 0x0174; - t['Wdieresis'] = 0x1E84; - t['Wdotaccent'] = 0x1E86; - t['Wdotbelow'] = 0x1E88; - t['Wgrave'] = 0x1E80; - t['Wmonospace'] = 0xFF37; - t['Wsmall'] = 0xF777; - t['X'] = 0x0058; - t['Xcircle'] = 0x24CD; - t['Xdieresis'] = 0x1E8C; - t['Xdotaccent'] = 0x1E8A; - t['Xeharmenian'] = 0x053D; - t['Xi'] = 0x039E; - t['Xmonospace'] = 0xFF38; - t['Xsmall'] = 0xF778; - t['Y'] = 0x0059; - t['Yacute'] = 0x00DD; - t['Yacutesmall'] = 0xF7FD; - t['Yatcyrillic'] = 0x0462; - t['Ycircle'] = 0x24CE; - t['Ycircumflex'] = 0x0176; - t['Ydieresis'] = 0x0178; - t['Ydieresissmall'] = 0xF7FF; - t['Ydotaccent'] = 0x1E8E; - t['Ydotbelow'] = 0x1EF4; - t['Yericyrillic'] = 0x042B; - t['Yerudieresiscyrillic'] = 0x04F8; - t['Ygrave'] = 0x1EF2; - t['Yhook'] = 0x01B3; - t['Yhookabove'] = 0x1EF6; - t['Yiarmenian'] = 0x0545; - t['Yicyrillic'] = 0x0407; - t['Yiwnarmenian'] = 0x0552; - t['Ymonospace'] = 0xFF39; - t['Ysmall'] = 0xF779; - t['Ytilde'] = 0x1EF8; - t['Yusbigcyrillic'] = 0x046A; - t['Yusbigiotifiedcyrillic'] = 0x046C; - t['Yuslittlecyrillic'] = 0x0466; - t['Yuslittleiotifiedcyrillic'] = 0x0468; - t['Z'] = 0x005A; - t['Zaarmenian'] = 0x0536; - t['Zacute'] = 0x0179; - t['Zcaron'] = 0x017D; - t['Zcaronsmall'] = 0xF6FF; - t['Zcircle'] = 0x24CF; - t['Zcircumflex'] = 0x1E90; - t['Zdot'] = 0x017B; - t['Zdotaccent'] = 0x017B; - t['Zdotbelow'] = 0x1E92; - t['Zecyrillic'] = 0x0417; - t['Zedescendercyrillic'] = 0x0498; - t['Zedieresiscyrillic'] = 0x04DE; - t['Zeta'] = 0x0396; - t['Zhearmenian'] = 0x053A; - t['Zhebrevecyrillic'] = 0x04C1; - t['Zhecyrillic'] = 0x0416; - t['Zhedescendercyrillic'] = 0x0496; - t['Zhedieresiscyrillic'] = 0x04DC; - t['Zlinebelow'] = 0x1E94; - t['Zmonospace'] = 0xFF3A; - t['Zsmall'] = 0xF77A; - t['Zstroke'] = 0x01B5; - t['a'] = 0x0061; - t['aabengali'] = 0x0986; - t['aacute'] = 0x00E1; - t['aadeva'] = 0x0906; - t['aagujarati'] = 0x0A86; - t['aagurmukhi'] = 0x0A06; - t['aamatragurmukhi'] = 0x0A3E; - t['aarusquare'] = 0x3303; - t['aavowelsignbengali'] = 0x09BE; - t['aavowelsigndeva'] = 0x093E; - t['aavowelsigngujarati'] = 0x0ABE; - t['abbreviationmarkarmenian'] = 0x055F; - t['abbreviationsigndeva'] = 0x0970; - t['abengali'] = 0x0985; - t['abopomofo'] = 0x311A; - t['abreve'] = 0x0103; - t['abreveacute'] = 0x1EAF; - t['abrevecyrillic'] = 0x04D1; - t['abrevedotbelow'] = 0x1EB7; - t['abrevegrave'] = 0x1EB1; - t['abrevehookabove'] = 0x1EB3; - t['abrevetilde'] = 0x1EB5; - t['acaron'] = 0x01CE; - t['acircle'] = 0x24D0; - t['acircumflex'] = 0x00E2; - t['acircumflexacute'] = 0x1EA5; - t['acircumflexdotbelow'] = 0x1EAD; - t['acircumflexgrave'] = 0x1EA7; - t['acircumflexhookabove'] = 0x1EA9; - t['acircumflextilde'] = 0x1EAB; - t['acute'] = 0x00B4; - t['acutebelowcmb'] = 0x0317; - t['acutecmb'] = 0x0301; - t['acutecomb'] = 0x0301; - t['acutedeva'] = 0x0954; - t['acutelowmod'] = 0x02CF; - t['acutetonecmb'] = 0x0341; - t['acyrillic'] = 0x0430; - t['adblgrave'] = 0x0201; - t['addakgurmukhi'] = 0x0A71; - t['adeva'] = 0x0905; - t['adieresis'] = 0x00E4; - t['adieresiscyrillic'] = 0x04D3; - t['adieresismacron'] = 0x01DF; - t['adotbelow'] = 0x1EA1; - t['adotmacron'] = 0x01E1; - t['ae'] = 0x00E6; - t['aeacute'] = 0x01FD; - t['aekorean'] = 0x3150; - t['aemacron'] = 0x01E3; - t['afii00208'] = 0x2015; - t['afii08941'] = 0x20A4; - t['afii10017'] = 0x0410; - t['afii10018'] = 0x0411; - t['afii10019'] = 0x0412; - t['afii10020'] = 0x0413; - t['afii10021'] = 0x0414; - t['afii10022'] = 0x0415; - t['afii10023'] = 0x0401; - t['afii10024'] = 0x0416; - t['afii10025'] = 0x0417; - t['afii10026'] = 0x0418; - t['afii10027'] = 0x0419; - t['afii10028'] = 0x041A; - t['afii10029'] = 0x041B; - t['afii10030'] = 0x041C; - t['afii10031'] = 0x041D; - t['afii10032'] = 0x041E; - t['afii10033'] = 0x041F; - t['afii10034'] = 0x0420; - t['afii10035'] = 0x0421; - t['afii10036'] = 0x0422; - t['afii10037'] = 0x0423; - t['afii10038'] = 0x0424; - t['afii10039'] = 0x0425; - t['afii10040'] = 0x0426; - t['afii10041'] = 0x0427; - t['afii10042'] = 0x0428; - t['afii10043'] = 0x0429; - t['afii10044'] = 0x042A; - t['afii10045'] = 0x042B; - t['afii10046'] = 0x042C; - t['afii10047'] = 0x042D; - t['afii10048'] = 0x042E; - t['afii10049'] = 0x042F; - t['afii10050'] = 0x0490; - t['afii10051'] = 0x0402; - t['afii10052'] = 0x0403; - t['afii10053'] = 0x0404; - t['afii10054'] = 0x0405; - t['afii10055'] = 0x0406; - t['afii10056'] = 0x0407; - t['afii10057'] = 0x0408; - t['afii10058'] = 0x0409; - t['afii10059'] = 0x040A; - t['afii10060'] = 0x040B; - t['afii10061'] = 0x040C; - t['afii10062'] = 0x040E; - t['afii10063'] = 0xF6C4; - t['afii10064'] = 0xF6C5; - t['afii10065'] = 0x0430; - t['afii10066'] = 0x0431; - t['afii10067'] = 0x0432; - t['afii10068'] = 0x0433; - t['afii10069'] = 0x0434; - t['afii10070'] = 0x0435; - t['afii10071'] = 0x0451; - t['afii10072'] = 0x0436; - t['afii10073'] = 0x0437; - t['afii10074'] = 0x0438; - t['afii10075'] = 0x0439; - t['afii10076'] = 0x043A; - t['afii10077'] = 0x043B; - t['afii10078'] = 0x043C; - t['afii10079'] = 0x043D; - t['afii10080'] = 0x043E; - t['afii10081'] = 0x043F; - t['afii10082'] = 0x0440; - t['afii10083'] = 0x0441; - t['afii10084'] = 0x0442; - t['afii10085'] = 0x0443; - t['afii10086'] = 0x0444; - t['afii10087'] = 0x0445; - t['afii10088'] = 0x0446; - t['afii10089'] = 0x0447; - t['afii10090'] = 0x0448; - t['afii10091'] = 0x0449; - t['afii10092'] = 0x044A; - t['afii10093'] = 0x044B; - t['afii10094'] = 0x044C; - t['afii10095'] = 0x044D; - t['afii10096'] = 0x044E; - t['afii10097'] = 0x044F; - t['afii10098'] = 0x0491; - t['afii10099'] = 0x0452; - t['afii10100'] = 0x0453; - t['afii10101'] = 0x0454; - t['afii10102'] = 0x0455; - t['afii10103'] = 0x0456; - t['afii10104'] = 0x0457; - t['afii10105'] = 0x0458; - t['afii10106'] = 0x0459; - t['afii10107'] = 0x045A; - t['afii10108'] = 0x045B; - t['afii10109'] = 0x045C; - t['afii10110'] = 0x045E; - t['afii10145'] = 0x040F; - t['afii10146'] = 0x0462; - t['afii10147'] = 0x0472; - t['afii10148'] = 0x0474; - t['afii10192'] = 0xF6C6; - t['afii10193'] = 0x045F; - t['afii10194'] = 0x0463; - t['afii10195'] = 0x0473; - t['afii10196'] = 0x0475; - t['afii10831'] = 0xF6C7; - t['afii10832'] = 0xF6C8; - t['afii10846'] = 0x04D9; - t['afii299'] = 0x200E; - t['afii300'] = 0x200F; - t['afii301'] = 0x200D; - t['afii57381'] = 0x066A; - t['afii57388'] = 0x060C; - t['afii57392'] = 0x0660; - t['afii57393'] = 0x0661; - t['afii57394'] = 0x0662; - t['afii57395'] = 0x0663; - t['afii57396'] = 0x0664; - t['afii57397'] = 0x0665; - t['afii57398'] = 0x0666; - t['afii57399'] = 0x0667; - t['afii57400'] = 0x0668; - t['afii57401'] = 0x0669; - t['afii57403'] = 0x061B; - t['afii57407'] = 0x061F; - t['afii57409'] = 0x0621; - t['afii57410'] = 0x0622; - t['afii57411'] = 0x0623; - t['afii57412'] = 0x0624; - t['afii57413'] = 0x0625; - t['afii57414'] = 0x0626; - t['afii57415'] = 0x0627; - t['afii57416'] = 0x0628; - t['afii57417'] = 0x0629; - t['afii57418'] = 0x062A; - t['afii57419'] = 0x062B; - t['afii57420'] = 0x062C; - t['afii57421'] = 0x062D; - t['afii57422'] = 0x062E; - t['afii57423'] = 0x062F; - t['afii57424'] = 0x0630; - t['afii57425'] = 0x0631; - t['afii57426'] = 0x0632; - t['afii57427'] = 0x0633; - t['afii57428'] = 0x0634; - t['afii57429'] = 0x0635; - t['afii57430'] = 0x0636; - t['afii57431'] = 0x0637; - t['afii57432'] = 0x0638; - t['afii57433'] = 0x0639; - t['afii57434'] = 0x063A; - t['afii57440'] = 0x0640; - t['afii57441'] = 0x0641; - t['afii57442'] = 0x0642; - t['afii57443'] = 0x0643; - t['afii57444'] = 0x0644; - t['afii57445'] = 0x0645; - t['afii57446'] = 0x0646; - t['afii57448'] = 0x0648; - t['afii57449'] = 0x0649; - t['afii57450'] = 0x064A; - t['afii57451'] = 0x064B; - t['afii57452'] = 0x064C; - t['afii57453'] = 0x064D; - t['afii57454'] = 0x064E; - t['afii57455'] = 0x064F; - t['afii57456'] = 0x0650; - t['afii57457'] = 0x0651; - t['afii57458'] = 0x0652; - t['afii57470'] = 0x0647; - t['afii57505'] = 0x06A4; - t['afii57506'] = 0x067E; - t['afii57507'] = 0x0686; - t['afii57508'] = 0x0698; - t['afii57509'] = 0x06AF; - t['afii57511'] = 0x0679; - t['afii57512'] = 0x0688; - t['afii57513'] = 0x0691; - t['afii57514'] = 0x06BA; - t['afii57519'] = 0x06D2; - t['afii57534'] = 0x06D5; - t['afii57636'] = 0x20AA; - t['afii57645'] = 0x05BE; - t['afii57658'] = 0x05C3; - t['afii57664'] = 0x05D0; - t['afii57665'] = 0x05D1; - t['afii57666'] = 0x05D2; - t['afii57667'] = 0x05D3; - t['afii57668'] = 0x05D4; - t['afii57669'] = 0x05D5; - t['afii57670'] = 0x05D6; - t['afii57671'] = 0x05D7; - t['afii57672'] = 0x05D8; - t['afii57673'] = 0x05D9; - t['afii57674'] = 0x05DA; - t['afii57675'] = 0x05DB; - t['afii57676'] = 0x05DC; - t['afii57677'] = 0x05DD; - t['afii57678'] = 0x05DE; - t['afii57679'] = 0x05DF; - t['afii57680'] = 0x05E0; - t['afii57681'] = 0x05E1; - t['afii57682'] = 0x05E2; - t['afii57683'] = 0x05E3; - t['afii57684'] = 0x05E4; - t['afii57685'] = 0x05E5; - t['afii57686'] = 0x05E6; - t['afii57687'] = 0x05E7; - t['afii57688'] = 0x05E8; - t['afii57689'] = 0x05E9; - t['afii57690'] = 0x05EA; - t['afii57694'] = 0xFB2A; - t['afii57695'] = 0xFB2B; - t['afii57700'] = 0xFB4B; - t['afii57705'] = 0xFB1F; - t['afii57716'] = 0x05F0; - t['afii57717'] = 0x05F1; - t['afii57718'] = 0x05F2; - t['afii57723'] = 0xFB35; - t['afii57793'] = 0x05B4; - t['afii57794'] = 0x05B5; - t['afii57795'] = 0x05B6; - t['afii57796'] = 0x05BB; - t['afii57797'] = 0x05B8; - t['afii57798'] = 0x05B7; - t['afii57799'] = 0x05B0; - t['afii57800'] = 0x05B2; - t['afii57801'] = 0x05B1; - t['afii57802'] = 0x05B3; - t['afii57803'] = 0x05C2; - t['afii57804'] = 0x05C1; - t['afii57806'] = 0x05B9; - t['afii57807'] = 0x05BC; - t['afii57839'] = 0x05BD; - t['afii57841'] = 0x05BF; - t['afii57842'] = 0x05C0; - t['afii57929'] = 0x02BC; - t['afii61248'] = 0x2105; - t['afii61289'] = 0x2113; - t['afii61352'] = 0x2116; - t['afii61573'] = 0x202C; - t['afii61574'] = 0x202D; - t['afii61575'] = 0x202E; - t['afii61664'] = 0x200C; - t['afii63167'] = 0x066D; - t['afii64937'] = 0x02BD; - t['agrave'] = 0x00E0; - t['agujarati'] = 0x0A85; - t['agurmukhi'] = 0x0A05; - t['ahiragana'] = 0x3042; - t['ahookabove'] = 0x1EA3; - t['aibengali'] = 0x0990; - t['aibopomofo'] = 0x311E; - t['aideva'] = 0x0910; - t['aiecyrillic'] = 0x04D5; - t['aigujarati'] = 0x0A90; - t['aigurmukhi'] = 0x0A10; - t['aimatragurmukhi'] = 0x0A48; - t['ainarabic'] = 0x0639; - t['ainfinalarabic'] = 0xFECA; - t['aininitialarabic'] = 0xFECB; - t['ainmedialarabic'] = 0xFECC; - t['ainvertedbreve'] = 0x0203; - t['aivowelsignbengali'] = 0x09C8; - t['aivowelsigndeva'] = 0x0948; - t['aivowelsigngujarati'] = 0x0AC8; - t['akatakana'] = 0x30A2; - t['akatakanahalfwidth'] = 0xFF71; - t['akorean'] = 0x314F; - t['alef'] = 0x05D0; - t['alefarabic'] = 0x0627; - t['alefdageshhebrew'] = 0xFB30; - t['aleffinalarabic'] = 0xFE8E; - t['alefhamzaabovearabic'] = 0x0623; - t['alefhamzaabovefinalarabic'] = 0xFE84; - t['alefhamzabelowarabic'] = 0x0625; - t['alefhamzabelowfinalarabic'] = 0xFE88; - t['alefhebrew'] = 0x05D0; - t['aleflamedhebrew'] = 0xFB4F; - t['alefmaddaabovearabic'] = 0x0622; - t['alefmaddaabovefinalarabic'] = 0xFE82; - t['alefmaksuraarabic'] = 0x0649; - t['alefmaksurafinalarabic'] = 0xFEF0; - t['alefmaksurainitialarabic'] = 0xFEF3; - t['alefmaksuramedialarabic'] = 0xFEF4; - t['alefpatahhebrew'] = 0xFB2E; - t['alefqamatshebrew'] = 0xFB2F; - t['aleph'] = 0x2135; - t['allequal'] = 0x224C; - t['alpha'] = 0x03B1; - t['alphatonos'] = 0x03AC; - t['amacron'] = 0x0101; - t['amonospace'] = 0xFF41; - t['ampersand'] = 0x0026; - t['ampersandmonospace'] = 0xFF06; - t['ampersandsmall'] = 0xF726; - t['amsquare'] = 0x33C2; - t['anbopomofo'] = 0x3122; - t['angbopomofo'] = 0x3124; - t['angbracketleft'] = 0x3008; - t['angbracketright'] = 0x3009; - t['angkhankhuthai'] = 0x0E5A; - t['angle'] = 0x2220; - t['anglebracketleft'] = 0x3008; - t['anglebracketleftvertical'] = 0xFE3F; - t['anglebracketright'] = 0x3009; - t['anglebracketrightvertical'] = 0xFE40; - t['angleleft'] = 0x2329; - t['angleright'] = 0x232A; - t['angstrom'] = 0x212B; - t['anoteleia'] = 0x0387; - t['anudattadeva'] = 0x0952; - t['anusvarabengali'] = 0x0982; - t['anusvaradeva'] = 0x0902; - t['anusvaragujarati'] = 0x0A82; - t['aogonek'] = 0x0105; - t['apaatosquare'] = 0x3300; - t['aparen'] = 0x249C; - t['apostrophearmenian'] = 0x055A; - t['apostrophemod'] = 0x02BC; - t['apple'] = 0xF8FF; - t['approaches'] = 0x2250; - t['approxequal'] = 0x2248; - t['approxequalorimage'] = 0x2252; - t['approximatelyequal'] = 0x2245; - t['araeaekorean'] = 0x318E; - t['araeakorean'] = 0x318D; - t['arc'] = 0x2312; - t['arighthalfring'] = 0x1E9A; - t['aring'] = 0x00E5; - t['aringacute'] = 0x01FB; - t['aringbelow'] = 0x1E01; - t['arrowboth'] = 0x2194; - t['arrowdashdown'] = 0x21E3; - t['arrowdashleft'] = 0x21E0; - t['arrowdashright'] = 0x21E2; - t['arrowdashup'] = 0x21E1; - t['arrowdblboth'] = 0x21D4; - t['arrowdbldown'] = 0x21D3; - t['arrowdblleft'] = 0x21D0; - t['arrowdblright'] = 0x21D2; - t['arrowdblup'] = 0x21D1; - t['arrowdown'] = 0x2193; - t['arrowdownleft'] = 0x2199; - t['arrowdownright'] = 0x2198; - t['arrowdownwhite'] = 0x21E9; - t['arrowheaddownmod'] = 0x02C5; - t['arrowheadleftmod'] = 0x02C2; - t['arrowheadrightmod'] = 0x02C3; - t['arrowheadupmod'] = 0x02C4; - t['arrowhorizex'] = 0xF8E7; - t['arrowleft'] = 0x2190; - t['arrowleftdbl'] = 0x21D0; - t['arrowleftdblstroke'] = 0x21CD; - t['arrowleftoverright'] = 0x21C6; - t['arrowleftwhite'] = 0x21E6; - t['arrowright'] = 0x2192; - t['arrowrightdblstroke'] = 0x21CF; - t['arrowrightheavy'] = 0x279E; - t['arrowrightoverleft'] = 0x21C4; - t['arrowrightwhite'] = 0x21E8; - t['arrowtableft'] = 0x21E4; - t['arrowtabright'] = 0x21E5; - t['arrowup'] = 0x2191; - t['arrowupdn'] = 0x2195; - t['arrowupdnbse'] = 0x21A8; - t['arrowupdownbase'] = 0x21A8; - t['arrowupleft'] = 0x2196; - t['arrowupleftofdown'] = 0x21C5; - t['arrowupright'] = 0x2197; - t['arrowupwhite'] = 0x21E7; - t['arrowvertex'] = 0xF8E6; - t['asciicircum'] = 0x005E; - t['asciicircummonospace'] = 0xFF3E; - t['asciitilde'] = 0x007E; - t['asciitildemonospace'] = 0xFF5E; - t['ascript'] = 0x0251; - t['ascriptturned'] = 0x0252; - t['asmallhiragana'] = 0x3041; - t['asmallkatakana'] = 0x30A1; - t['asmallkatakanahalfwidth'] = 0xFF67; - t['asterisk'] = 0x002A; - t['asteriskaltonearabic'] = 0x066D; - t['asteriskarabic'] = 0x066D; - t['asteriskmath'] = 0x2217; - t['asteriskmonospace'] = 0xFF0A; - t['asterisksmall'] = 0xFE61; - t['asterism'] = 0x2042; - t['asuperior'] = 0xF6E9; - t['asymptoticallyequal'] = 0x2243; - t['at'] = 0x0040; - t['atilde'] = 0x00E3; - t['atmonospace'] = 0xFF20; - t['atsmall'] = 0xFE6B; - t['aturned'] = 0x0250; - t['aubengali'] = 0x0994; - t['aubopomofo'] = 0x3120; - t['audeva'] = 0x0914; - t['augujarati'] = 0x0A94; - t['augurmukhi'] = 0x0A14; - t['aulengthmarkbengali'] = 0x09D7; - t['aumatragurmukhi'] = 0x0A4C; - t['auvowelsignbengali'] = 0x09CC; - t['auvowelsigndeva'] = 0x094C; - t['auvowelsigngujarati'] = 0x0ACC; - t['avagrahadeva'] = 0x093D; - t['aybarmenian'] = 0x0561; - t['ayin'] = 0x05E2; - t['ayinaltonehebrew'] = 0xFB20; - t['ayinhebrew'] = 0x05E2; - t['b'] = 0x0062; - t['babengali'] = 0x09AC; - t['backslash'] = 0x005C; - t['backslashmonospace'] = 0xFF3C; - t['badeva'] = 0x092C; - t['bagujarati'] = 0x0AAC; - t['bagurmukhi'] = 0x0A2C; - t['bahiragana'] = 0x3070; - t['bahtthai'] = 0x0E3F; - t['bakatakana'] = 0x30D0; - t['bar'] = 0x007C; - t['barmonospace'] = 0xFF5C; - t['bbopomofo'] = 0x3105; - t['bcircle'] = 0x24D1; - t['bdotaccent'] = 0x1E03; - t['bdotbelow'] = 0x1E05; - t['beamedsixteenthnotes'] = 0x266C; - t['because'] = 0x2235; - t['becyrillic'] = 0x0431; - t['beharabic'] = 0x0628; - t['behfinalarabic'] = 0xFE90; - t['behinitialarabic'] = 0xFE91; - t['behiragana'] = 0x3079; - t['behmedialarabic'] = 0xFE92; - t['behmeeminitialarabic'] = 0xFC9F; - t['behmeemisolatedarabic'] = 0xFC08; - t['behnoonfinalarabic'] = 0xFC6D; - t['bekatakana'] = 0x30D9; - t['benarmenian'] = 0x0562; - t['bet'] = 0x05D1; - t['beta'] = 0x03B2; - t['betasymbolgreek'] = 0x03D0; - t['betdagesh'] = 0xFB31; - t['betdageshhebrew'] = 0xFB31; - t['bethebrew'] = 0x05D1; - t['betrafehebrew'] = 0xFB4C; - t['bhabengali'] = 0x09AD; - t['bhadeva'] = 0x092D; - t['bhagujarati'] = 0x0AAD; - t['bhagurmukhi'] = 0x0A2D; - t['bhook'] = 0x0253; - t['bihiragana'] = 0x3073; - t['bikatakana'] = 0x30D3; - t['bilabialclick'] = 0x0298; - t['bindigurmukhi'] = 0x0A02; - t['birusquare'] = 0x3331; - t['blackcircle'] = 0x25CF; - t['blackdiamond'] = 0x25C6; - t['blackdownpointingtriangle'] = 0x25BC; - t['blackleftpointingpointer'] = 0x25C4; - t['blackleftpointingtriangle'] = 0x25C0; - t['blacklenticularbracketleft'] = 0x3010; - t['blacklenticularbracketleftvertical'] = 0xFE3B; - t['blacklenticularbracketright'] = 0x3011; - t['blacklenticularbracketrightvertical'] = 0xFE3C; - t['blacklowerlefttriangle'] = 0x25E3; - t['blacklowerrighttriangle'] = 0x25E2; - t['blackrectangle'] = 0x25AC; - t['blackrightpointingpointer'] = 0x25BA; - t['blackrightpointingtriangle'] = 0x25B6; - t['blacksmallsquare'] = 0x25AA; - t['blacksmilingface'] = 0x263B; - t['blacksquare'] = 0x25A0; - t['blackstar'] = 0x2605; - t['blackupperlefttriangle'] = 0x25E4; - t['blackupperrighttriangle'] = 0x25E5; - t['blackuppointingsmalltriangle'] = 0x25B4; - t['blackuppointingtriangle'] = 0x25B2; - t['blank'] = 0x2423; - t['blinebelow'] = 0x1E07; - t['block'] = 0x2588; - t['bmonospace'] = 0xFF42; - t['bobaimaithai'] = 0x0E1A; - t['bohiragana'] = 0x307C; - t['bokatakana'] = 0x30DC; - t['bparen'] = 0x249D; - t['bqsquare'] = 0x33C3; - t['braceex'] = 0xF8F4; - t['braceleft'] = 0x007B; - t['braceleftbt'] = 0xF8F3; - t['braceleftmid'] = 0xF8F2; - t['braceleftmonospace'] = 0xFF5B; - t['braceleftsmall'] = 0xFE5B; - t['bracelefttp'] = 0xF8F1; - t['braceleftvertical'] = 0xFE37; - t['braceright'] = 0x007D; - t['bracerightbt'] = 0xF8FE; - t['bracerightmid'] = 0xF8FD; - t['bracerightmonospace'] = 0xFF5D; - t['bracerightsmall'] = 0xFE5C; - t['bracerighttp'] = 0xF8FC; - t['bracerightvertical'] = 0xFE38; - t['bracketleft'] = 0x005B; - t['bracketleftbt'] = 0xF8F0; - t['bracketleftex'] = 0xF8EF; - t['bracketleftmonospace'] = 0xFF3B; - t['bracketlefttp'] = 0xF8EE; - t['bracketright'] = 0x005D; - t['bracketrightbt'] = 0xF8FB; - t['bracketrightex'] = 0xF8FA; - t['bracketrightmonospace'] = 0xFF3D; - t['bracketrighttp'] = 0xF8F9; - t['breve'] = 0x02D8; - t['brevebelowcmb'] = 0x032E; - t['brevecmb'] = 0x0306; - t['breveinvertedbelowcmb'] = 0x032F; - t['breveinvertedcmb'] = 0x0311; - t['breveinverteddoublecmb'] = 0x0361; - t['bridgebelowcmb'] = 0x032A; - t['bridgeinvertedbelowcmb'] = 0x033A; - t['brokenbar'] = 0x00A6; - t['bstroke'] = 0x0180; - t['bsuperior'] = 0xF6EA; - t['btopbar'] = 0x0183; - t['buhiragana'] = 0x3076; - t['bukatakana'] = 0x30D6; - t['bullet'] = 0x2022; - t['bulletinverse'] = 0x25D8; - t['bulletoperator'] = 0x2219; - t['bullseye'] = 0x25CE; - t['c'] = 0x0063; - t['caarmenian'] = 0x056E; - t['cabengali'] = 0x099A; - t['cacute'] = 0x0107; - t['cadeva'] = 0x091A; - t['cagujarati'] = 0x0A9A; - t['cagurmukhi'] = 0x0A1A; - t['calsquare'] = 0x3388; - t['candrabindubengali'] = 0x0981; - t['candrabinducmb'] = 0x0310; - t['candrabindudeva'] = 0x0901; - t['candrabindugujarati'] = 0x0A81; - t['capslock'] = 0x21EA; - t['careof'] = 0x2105; - t['caron'] = 0x02C7; - t['caronbelowcmb'] = 0x032C; - t['caroncmb'] = 0x030C; - t['carriagereturn'] = 0x21B5; - t['cbopomofo'] = 0x3118; - t['ccaron'] = 0x010D; - t['ccedilla'] = 0x00E7; - t['ccedillaacute'] = 0x1E09; - t['ccircle'] = 0x24D2; - t['ccircumflex'] = 0x0109; - t['ccurl'] = 0x0255; - t['cdot'] = 0x010B; - t['cdotaccent'] = 0x010B; - t['cdsquare'] = 0x33C5; - t['cedilla'] = 0x00B8; - t['cedillacmb'] = 0x0327; - t['cent'] = 0x00A2; - t['centigrade'] = 0x2103; - t['centinferior'] = 0xF6DF; - t['centmonospace'] = 0xFFE0; - t['centoldstyle'] = 0xF7A2; - t['centsuperior'] = 0xF6E0; - t['chaarmenian'] = 0x0579; - t['chabengali'] = 0x099B; - t['chadeva'] = 0x091B; - t['chagujarati'] = 0x0A9B; - t['chagurmukhi'] = 0x0A1B; - t['chbopomofo'] = 0x3114; - t['cheabkhasiancyrillic'] = 0x04BD; - t['checkmark'] = 0x2713; - t['checyrillic'] = 0x0447; - t['chedescenderabkhasiancyrillic'] = 0x04BF; - t['chedescendercyrillic'] = 0x04B7; - t['chedieresiscyrillic'] = 0x04F5; - t['cheharmenian'] = 0x0573; - t['chekhakassiancyrillic'] = 0x04CC; - t['cheverticalstrokecyrillic'] = 0x04B9; - t['chi'] = 0x03C7; - t['chieuchacirclekorean'] = 0x3277; - t['chieuchaparenkorean'] = 0x3217; - t['chieuchcirclekorean'] = 0x3269; - t['chieuchkorean'] = 0x314A; - t['chieuchparenkorean'] = 0x3209; - t['chochangthai'] = 0x0E0A; - t['chochanthai'] = 0x0E08; - t['chochingthai'] = 0x0E09; - t['chochoethai'] = 0x0E0C; - t['chook'] = 0x0188; - t['cieucacirclekorean'] = 0x3276; - t['cieucaparenkorean'] = 0x3216; - t['cieuccirclekorean'] = 0x3268; - t['cieuckorean'] = 0x3148; - t['cieucparenkorean'] = 0x3208; - t['cieucuparenkorean'] = 0x321C; - t['circle'] = 0x25CB; - t['circlecopyrt'] = 0x00A9; - t['circlemultiply'] = 0x2297; - t['circleot'] = 0x2299; - t['circleplus'] = 0x2295; - t['circlepostalmark'] = 0x3036; - t['circlewithlefthalfblack'] = 0x25D0; - t['circlewithrighthalfblack'] = 0x25D1; - t['circumflex'] = 0x02C6; - t['circumflexbelowcmb'] = 0x032D; - t['circumflexcmb'] = 0x0302; - t['clear'] = 0x2327; - t['clickalveolar'] = 0x01C2; - t['clickdental'] = 0x01C0; - t['clicklateral'] = 0x01C1; - t['clickretroflex'] = 0x01C3; - t['club'] = 0x2663; - t['clubsuitblack'] = 0x2663; - t['clubsuitwhite'] = 0x2667; - t['cmcubedsquare'] = 0x33A4; - t['cmonospace'] = 0xFF43; - t['cmsquaredsquare'] = 0x33A0; - t['coarmenian'] = 0x0581; - t['colon'] = 0x003A; - t['colonmonetary'] = 0x20A1; - t['colonmonospace'] = 0xFF1A; - t['colonsign'] = 0x20A1; - t['colonsmall'] = 0xFE55; - t['colontriangularhalfmod'] = 0x02D1; - t['colontriangularmod'] = 0x02D0; - t['comma'] = 0x002C; - t['commaabovecmb'] = 0x0313; - t['commaaboverightcmb'] = 0x0315; - t['commaaccent'] = 0xF6C3; - t['commaarabic'] = 0x060C; - t['commaarmenian'] = 0x055D; - t['commainferior'] = 0xF6E1; - t['commamonospace'] = 0xFF0C; - t['commareversedabovecmb'] = 0x0314; - t['commareversedmod'] = 0x02BD; - t['commasmall'] = 0xFE50; - t['commasuperior'] = 0xF6E2; - t['commaturnedabovecmb'] = 0x0312; - t['commaturnedmod'] = 0x02BB; - t['compass'] = 0x263C; - t['congruent'] = 0x2245; - t['contourintegral'] = 0x222E; - t['control'] = 0x2303; - t['controlACK'] = 0x0006; - t['controlBEL'] = 0x0007; - t['controlBS'] = 0x0008; - t['controlCAN'] = 0x0018; - t['controlCR'] = 0x000D; - t['controlDC1'] = 0x0011; - t['controlDC2'] = 0x0012; - t['controlDC3'] = 0x0013; - t['controlDC4'] = 0x0014; - t['controlDEL'] = 0x007F; - t['controlDLE'] = 0x0010; - t['controlEM'] = 0x0019; - t['controlENQ'] = 0x0005; - t['controlEOT'] = 0x0004; - t['controlESC'] = 0x001B; - t['controlETB'] = 0x0017; - t['controlETX'] = 0x0003; - t['controlFF'] = 0x000C; - t['controlFS'] = 0x001C; - t['controlGS'] = 0x001D; - t['controlHT'] = 0x0009; - t['controlLF'] = 0x000A; - t['controlNAK'] = 0x0015; - t['controlNULL'] = 0x0000; - t['controlRS'] = 0x001E; - t['controlSI'] = 0x000F; - t['controlSO'] = 0x000E; - t['controlSOT'] = 0x0002; - t['controlSTX'] = 0x0001; - t['controlSUB'] = 0x001A; - t['controlSYN'] = 0x0016; - t['controlUS'] = 0x001F; - t['controlVT'] = 0x000B; - t['copyright'] = 0x00A9; - t['copyrightsans'] = 0xF8E9; - t['copyrightserif'] = 0xF6D9; - t['cornerbracketleft'] = 0x300C; - t['cornerbracketlefthalfwidth'] = 0xFF62; - t['cornerbracketleftvertical'] = 0xFE41; - t['cornerbracketright'] = 0x300D; - t['cornerbracketrighthalfwidth'] = 0xFF63; - t['cornerbracketrightvertical'] = 0xFE42; - t['corporationsquare'] = 0x337F; - t['cosquare'] = 0x33C7; - t['coverkgsquare'] = 0x33C6; - t['cparen'] = 0x249E; - t['cruzeiro'] = 0x20A2; - t['cstretched'] = 0x0297; - t['curlyand'] = 0x22CF; - t['curlyor'] = 0x22CE; - t['currency'] = 0x00A4; - t['cyrBreve'] = 0xF6D1; - t['cyrFlex'] = 0xF6D2; - t['cyrbreve'] = 0xF6D4; - t['cyrflex'] = 0xF6D5; - t['d'] = 0x0064; - t['daarmenian'] = 0x0564; - t['dabengali'] = 0x09A6; - t['dadarabic'] = 0x0636; - t['dadeva'] = 0x0926; - t['dadfinalarabic'] = 0xFEBE; - t['dadinitialarabic'] = 0xFEBF; - t['dadmedialarabic'] = 0xFEC0; - t['dagesh'] = 0x05BC; - t['dageshhebrew'] = 0x05BC; - t['dagger'] = 0x2020; - t['daggerdbl'] = 0x2021; - t['dagujarati'] = 0x0AA6; - t['dagurmukhi'] = 0x0A26; - t['dahiragana'] = 0x3060; - t['dakatakana'] = 0x30C0; - t['dalarabic'] = 0x062F; - t['dalet'] = 0x05D3; - t['daletdagesh'] = 0xFB33; - t['daletdageshhebrew'] = 0xFB33; - t['dalethebrew'] = 0x05D3; - t['dalfinalarabic'] = 0xFEAA; - t['dammaarabic'] = 0x064F; - t['dammalowarabic'] = 0x064F; - t['dammatanaltonearabic'] = 0x064C; - t['dammatanarabic'] = 0x064C; - t['danda'] = 0x0964; - t['dargahebrew'] = 0x05A7; - t['dargalefthebrew'] = 0x05A7; - t['dasiapneumatacyrilliccmb'] = 0x0485; - t['dblGrave'] = 0xF6D3; - t['dblanglebracketleft'] = 0x300A; - t['dblanglebracketleftvertical'] = 0xFE3D; - t['dblanglebracketright'] = 0x300B; - t['dblanglebracketrightvertical'] = 0xFE3E; - t['dblarchinvertedbelowcmb'] = 0x032B; - t['dblarrowleft'] = 0x21D4; - t['dblarrowright'] = 0x21D2; - t['dbldanda'] = 0x0965; - t['dblgrave'] = 0xF6D6; - t['dblgravecmb'] = 0x030F; - t['dblintegral'] = 0x222C; - t['dbllowline'] = 0x2017; - t['dbllowlinecmb'] = 0x0333; - t['dbloverlinecmb'] = 0x033F; - t['dblprimemod'] = 0x02BA; - t['dblverticalbar'] = 0x2016; - t['dblverticallineabovecmb'] = 0x030E; - t['dbopomofo'] = 0x3109; - t['dbsquare'] = 0x33C8; - t['dcaron'] = 0x010F; - t['dcedilla'] = 0x1E11; - t['dcircle'] = 0x24D3; - t['dcircumflexbelow'] = 0x1E13; - t['dcroat'] = 0x0111; - t['ddabengali'] = 0x09A1; - t['ddadeva'] = 0x0921; - t['ddagujarati'] = 0x0AA1; - t['ddagurmukhi'] = 0x0A21; - t['ddalarabic'] = 0x0688; - t['ddalfinalarabic'] = 0xFB89; - t['dddhadeva'] = 0x095C; - t['ddhabengali'] = 0x09A2; - t['ddhadeva'] = 0x0922; - t['ddhagujarati'] = 0x0AA2; - t['ddhagurmukhi'] = 0x0A22; - t['ddotaccent'] = 0x1E0B; - t['ddotbelow'] = 0x1E0D; - t['decimalseparatorarabic'] = 0x066B; - t['decimalseparatorpersian'] = 0x066B; - t['decyrillic'] = 0x0434; - t['degree'] = 0x00B0; - t['dehihebrew'] = 0x05AD; - t['dehiragana'] = 0x3067; - t['deicoptic'] = 0x03EF; - t['dekatakana'] = 0x30C7; - t['deleteleft'] = 0x232B; - t['deleteright'] = 0x2326; - t['delta'] = 0x03B4; - t['deltaturned'] = 0x018D; - t['denominatorminusonenumeratorbengali'] = 0x09F8; - t['dezh'] = 0x02A4; - t['dhabengali'] = 0x09A7; - t['dhadeva'] = 0x0927; - t['dhagujarati'] = 0x0AA7; - t['dhagurmukhi'] = 0x0A27; - t['dhook'] = 0x0257; - t['dialytikatonos'] = 0x0385; - t['dialytikatonoscmb'] = 0x0344; - t['diamond'] = 0x2666; - t['diamondsuitwhite'] = 0x2662; - t['dieresis'] = 0x00A8; - t['dieresisacute'] = 0xF6D7; - t['dieresisbelowcmb'] = 0x0324; - t['dieresiscmb'] = 0x0308; - t['dieresisgrave'] = 0xF6D8; - t['dieresistonos'] = 0x0385; - t['dihiragana'] = 0x3062; - t['dikatakana'] = 0x30C2; - t['dittomark'] = 0x3003; - t['divide'] = 0x00F7; - t['divides'] = 0x2223; - t['divisionslash'] = 0x2215; - t['djecyrillic'] = 0x0452; - t['dkshade'] = 0x2593; - t['dlinebelow'] = 0x1E0F; - t['dlsquare'] = 0x3397; - t['dmacron'] = 0x0111; - t['dmonospace'] = 0xFF44; - t['dnblock'] = 0x2584; - t['dochadathai'] = 0x0E0E; - t['dodekthai'] = 0x0E14; - t['dohiragana'] = 0x3069; - t['dokatakana'] = 0x30C9; - t['dollar'] = 0x0024; - t['dollarinferior'] = 0xF6E3; - t['dollarmonospace'] = 0xFF04; - t['dollaroldstyle'] = 0xF724; - t['dollarsmall'] = 0xFE69; - t['dollarsuperior'] = 0xF6E4; - t['dong'] = 0x20AB; - t['dorusquare'] = 0x3326; - t['dotaccent'] = 0x02D9; - t['dotaccentcmb'] = 0x0307; - t['dotbelowcmb'] = 0x0323; - t['dotbelowcomb'] = 0x0323; - t['dotkatakana'] = 0x30FB; - t['dotlessi'] = 0x0131; - t['dotlessj'] = 0xF6BE; - t['dotlessjstrokehook'] = 0x0284; - t['dotmath'] = 0x22C5; - t['dottedcircle'] = 0x25CC; - t['doubleyodpatah'] = 0xFB1F; - t['doubleyodpatahhebrew'] = 0xFB1F; - t['downtackbelowcmb'] = 0x031E; - t['downtackmod'] = 0x02D5; - t['dparen'] = 0x249F; - t['dsuperior'] = 0xF6EB; - t['dtail'] = 0x0256; - t['dtopbar'] = 0x018C; - t['duhiragana'] = 0x3065; - t['dukatakana'] = 0x30C5; - t['dz'] = 0x01F3; - t['dzaltone'] = 0x02A3; - t['dzcaron'] = 0x01C6; - t['dzcurl'] = 0x02A5; - t['dzeabkhasiancyrillic'] = 0x04E1; - t['dzecyrillic'] = 0x0455; - t['dzhecyrillic'] = 0x045F; - t['e'] = 0x0065; - t['eacute'] = 0x00E9; - t['earth'] = 0x2641; - t['ebengali'] = 0x098F; - t['ebopomofo'] = 0x311C; - t['ebreve'] = 0x0115; - t['ecandradeva'] = 0x090D; - t['ecandragujarati'] = 0x0A8D; - t['ecandravowelsigndeva'] = 0x0945; - t['ecandravowelsigngujarati'] = 0x0AC5; - t['ecaron'] = 0x011B; - t['ecedillabreve'] = 0x1E1D; - t['echarmenian'] = 0x0565; - t['echyiwnarmenian'] = 0x0587; - t['ecircle'] = 0x24D4; - t['ecircumflex'] = 0x00EA; - t['ecircumflexacute'] = 0x1EBF; - t['ecircumflexbelow'] = 0x1E19; - t['ecircumflexdotbelow'] = 0x1EC7; - t['ecircumflexgrave'] = 0x1EC1; - t['ecircumflexhookabove'] = 0x1EC3; - t['ecircumflextilde'] = 0x1EC5; - t['ecyrillic'] = 0x0454; - t['edblgrave'] = 0x0205; - t['edeva'] = 0x090F; - t['edieresis'] = 0x00EB; - t['edot'] = 0x0117; - t['edotaccent'] = 0x0117; - t['edotbelow'] = 0x1EB9; - t['eegurmukhi'] = 0x0A0F; - t['eematragurmukhi'] = 0x0A47; - t['efcyrillic'] = 0x0444; - t['egrave'] = 0x00E8; - t['egujarati'] = 0x0A8F; - t['eharmenian'] = 0x0567; - t['ehbopomofo'] = 0x311D; - t['ehiragana'] = 0x3048; - t['ehookabove'] = 0x1EBB; - t['eibopomofo'] = 0x311F; - t['eight'] = 0x0038; - t['eightarabic'] = 0x0668; - t['eightbengali'] = 0x09EE; - t['eightcircle'] = 0x2467; - t['eightcircleinversesansserif'] = 0x2791; - t['eightdeva'] = 0x096E; - t['eighteencircle'] = 0x2471; - t['eighteenparen'] = 0x2485; - t['eighteenperiod'] = 0x2499; - t['eightgujarati'] = 0x0AEE; - t['eightgurmukhi'] = 0x0A6E; - t['eighthackarabic'] = 0x0668; - t['eighthangzhou'] = 0x3028; - t['eighthnotebeamed'] = 0x266B; - t['eightideographicparen'] = 0x3227; - t['eightinferior'] = 0x2088; - t['eightmonospace'] = 0xFF18; - t['eightoldstyle'] = 0xF738; - t['eightparen'] = 0x247B; - t['eightperiod'] = 0x248F; - t['eightpersian'] = 0x06F8; - t['eightroman'] = 0x2177; - t['eightsuperior'] = 0x2078; - t['eightthai'] = 0x0E58; - t['einvertedbreve'] = 0x0207; - t['eiotifiedcyrillic'] = 0x0465; - t['ekatakana'] = 0x30A8; - t['ekatakanahalfwidth'] = 0xFF74; - t['ekonkargurmukhi'] = 0x0A74; - t['ekorean'] = 0x3154; - t['elcyrillic'] = 0x043B; - t['element'] = 0x2208; - t['elevencircle'] = 0x246A; - t['elevenparen'] = 0x247E; - t['elevenperiod'] = 0x2492; - t['elevenroman'] = 0x217A; - t['ellipsis'] = 0x2026; - t['ellipsisvertical'] = 0x22EE; - t['emacron'] = 0x0113; - t['emacronacute'] = 0x1E17; - t['emacrongrave'] = 0x1E15; - t['emcyrillic'] = 0x043C; - t['emdash'] = 0x2014; - t['emdashvertical'] = 0xFE31; - t['emonospace'] = 0xFF45; - t['emphasismarkarmenian'] = 0x055B; - t['emptyset'] = 0x2205; - t['enbopomofo'] = 0x3123; - t['encyrillic'] = 0x043D; - t['endash'] = 0x2013; - t['endashvertical'] = 0xFE32; - t['endescendercyrillic'] = 0x04A3; - t['eng'] = 0x014B; - t['engbopomofo'] = 0x3125; - t['enghecyrillic'] = 0x04A5; - t['enhookcyrillic'] = 0x04C8; - t['enspace'] = 0x2002; - t['eogonek'] = 0x0119; - t['eokorean'] = 0x3153; - t['eopen'] = 0x025B; - t['eopenclosed'] = 0x029A; - t['eopenreversed'] = 0x025C; - t['eopenreversedclosed'] = 0x025E; - t['eopenreversedhook'] = 0x025D; - t['eparen'] = 0x24A0; - t['epsilon'] = 0x03B5; - t['epsilontonos'] = 0x03AD; - t['equal'] = 0x003D; - t['equalmonospace'] = 0xFF1D; - t['equalsmall'] = 0xFE66; - t['equalsuperior'] = 0x207C; - t['equivalence'] = 0x2261; - t['erbopomofo'] = 0x3126; - t['ercyrillic'] = 0x0440; - t['ereversed'] = 0x0258; - t['ereversedcyrillic'] = 0x044D; - t['escyrillic'] = 0x0441; - t['esdescendercyrillic'] = 0x04AB; - t['esh'] = 0x0283; - t['eshcurl'] = 0x0286; - t['eshortdeva'] = 0x090E; - t['eshortvowelsigndeva'] = 0x0946; - t['eshreversedloop'] = 0x01AA; - t['eshsquatreversed'] = 0x0285; - t['esmallhiragana'] = 0x3047; - t['esmallkatakana'] = 0x30A7; - t['esmallkatakanahalfwidth'] = 0xFF6A; - t['estimated'] = 0x212E; - t['esuperior'] = 0xF6EC; - t['eta'] = 0x03B7; - t['etarmenian'] = 0x0568; - t['etatonos'] = 0x03AE; - t['eth'] = 0x00F0; - t['etilde'] = 0x1EBD; - t['etildebelow'] = 0x1E1B; - t['etnahtafoukhhebrew'] = 0x0591; - t['etnahtafoukhlefthebrew'] = 0x0591; - t['etnahtahebrew'] = 0x0591; - t['etnahtalefthebrew'] = 0x0591; - t['eturned'] = 0x01DD; - t['eukorean'] = 0x3161; - t['euro'] = 0x20AC; - t['evowelsignbengali'] = 0x09C7; - t['evowelsigndeva'] = 0x0947; - t['evowelsigngujarati'] = 0x0AC7; - t['exclam'] = 0x0021; - t['exclamarmenian'] = 0x055C; - t['exclamdbl'] = 0x203C; - t['exclamdown'] = 0x00A1; - t['exclamdownsmall'] = 0xF7A1; - t['exclammonospace'] = 0xFF01; - t['exclamsmall'] = 0xF721; - t['existential'] = 0x2203; - t['ezh'] = 0x0292; - t['ezhcaron'] = 0x01EF; - t['ezhcurl'] = 0x0293; - t['ezhreversed'] = 0x01B9; - t['ezhtail'] = 0x01BA; - t['f'] = 0x0066; - t['fadeva'] = 0x095E; - t['fagurmukhi'] = 0x0A5E; - t['fahrenheit'] = 0x2109; - t['fathaarabic'] = 0x064E; - t['fathalowarabic'] = 0x064E; - t['fathatanarabic'] = 0x064B; - t['fbopomofo'] = 0x3108; - t['fcircle'] = 0x24D5; - t['fdotaccent'] = 0x1E1F; - t['feharabic'] = 0x0641; - t['feharmenian'] = 0x0586; - t['fehfinalarabic'] = 0xFED2; - t['fehinitialarabic'] = 0xFED3; - t['fehmedialarabic'] = 0xFED4; - t['feicoptic'] = 0x03E5; - t['female'] = 0x2640; - t['ff'] = 0xFB00; - t['f_f'] = 0xFB00; - t['ffi'] = 0xFB03; - t['ffl'] = 0xFB04; - t['fi'] = 0xFB01; - t['fifteencircle'] = 0x246E; - t['fifteenparen'] = 0x2482; - t['fifteenperiod'] = 0x2496; - t['figuredash'] = 0x2012; - t['filledbox'] = 0x25A0; - t['filledrect'] = 0x25AC; - t['finalkaf'] = 0x05DA; - t['finalkafdagesh'] = 0xFB3A; - t['finalkafdageshhebrew'] = 0xFB3A; - t['finalkafhebrew'] = 0x05DA; - t['finalmem'] = 0x05DD; - t['finalmemhebrew'] = 0x05DD; - t['finalnun'] = 0x05DF; - t['finalnunhebrew'] = 0x05DF; - t['finalpe'] = 0x05E3; - t['finalpehebrew'] = 0x05E3; - t['finaltsadi'] = 0x05E5; - t['finaltsadihebrew'] = 0x05E5; - t['firsttonechinese'] = 0x02C9; - t['fisheye'] = 0x25C9; - t['fitacyrillic'] = 0x0473; - t['five'] = 0x0035; - t['fivearabic'] = 0x0665; - t['fivebengali'] = 0x09EB; - t['fivecircle'] = 0x2464; - t['fivecircleinversesansserif'] = 0x278E; - t['fivedeva'] = 0x096B; - t['fiveeighths'] = 0x215D; - t['fivegujarati'] = 0x0AEB; - t['fivegurmukhi'] = 0x0A6B; - t['fivehackarabic'] = 0x0665; - t['fivehangzhou'] = 0x3025; - t['fiveideographicparen'] = 0x3224; - t['fiveinferior'] = 0x2085; - t['fivemonospace'] = 0xFF15; - t['fiveoldstyle'] = 0xF735; - t['fiveparen'] = 0x2478; - t['fiveperiod'] = 0x248C; - t['fivepersian'] = 0x06F5; - t['fiveroman'] = 0x2174; - t['fivesuperior'] = 0x2075; - t['fivethai'] = 0x0E55; - t['fl'] = 0xFB02; - t['florin'] = 0x0192; - t['fmonospace'] = 0xFF46; - t['fmsquare'] = 0x3399; - t['fofanthai'] = 0x0E1F; - t['fofathai'] = 0x0E1D; - t['fongmanthai'] = 0x0E4F; - t['forall'] = 0x2200; - t['four'] = 0x0034; - t['fourarabic'] = 0x0664; - t['fourbengali'] = 0x09EA; - t['fourcircle'] = 0x2463; - t['fourcircleinversesansserif'] = 0x278D; - t['fourdeva'] = 0x096A; - t['fourgujarati'] = 0x0AEA; - t['fourgurmukhi'] = 0x0A6A; - t['fourhackarabic'] = 0x0664; - t['fourhangzhou'] = 0x3024; - t['fourideographicparen'] = 0x3223; - t['fourinferior'] = 0x2084; - t['fourmonospace'] = 0xFF14; - t['fournumeratorbengali'] = 0x09F7; - t['fouroldstyle'] = 0xF734; - t['fourparen'] = 0x2477; - t['fourperiod'] = 0x248B; - t['fourpersian'] = 0x06F4; - t['fourroman'] = 0x2173; - t['foursuperior'] = 0x2074; - t['fourteencircle'] = 0x246D; - t['fourteenparen'] = 0x2481; - t['fourteenperiod'] = 0x2495; - t['fourthai'] = 0x0E54; - t['fourthtonechinese'] = 0x02CB; - t['fparen'] = 0x24A1; - t['fraction'] = 0x2044; - t['franc'] = 0x20A3; - t['g'] = 0x0067; - t['gabengali'] = 0x0997; - t['gacute'] = 0x01F5; - t['gadeva'] = 0x0917; - t['gafarabic'] = 0x06AF; - t['gaffinalarabic'] = 0xFB93; - t['gafinitialarabic'] = 0xFB94; - t['gafmedialarabic'] = 0xFB95; - t['gagujarati'] = 0x0A97; - t['gagurmukhi'] = 0x0A17; - t['gahiragana'] = 0x304C; - t['gakatakana'] = 0x30AC; - t['gamma'] = 0x03B3; - t['gammalatinsmall'] = 0x0263; - t['gammasuperior'] = 0x02E0; - t['gangiacoptic'] = 0x03EB; - t['gbopomofo'] = 0x310D; - t['gbreve'] = 0x011F; - t['gcaron'] = 0x01E7; - t['gcedilla'] = 0x0123; - t['gcircle'] = 0x24D6; - t['gcircumflex'] = 0x011D; - t['gcommaaccent'] = 0x0123; - t['gdot'] = 0x0121; - t['gdotaccent'] = 0x0121; - t['gecyrillic'] = 0x0433; - t['gehiragana'] = 0x3052; - t['gekatakana'] = 0x30B2; - t['geometricallyequal'] = 0x2251; - t['gereshaccenthebrew'] = 0x059C; - t['gereshhebrew'] = 0x05F3; - t['gereshmuqdamhebrew'] = 0x059D; - t['germandbls'] = 0x00DF; - t['gershayimaccenthebrew'] = 0x059E; - t['gershayimhebrew'] = 0x05F4; - t['getamark'] = 0x3013; - t['ghabengali'] = 0x0998; - t['ghadarmenian'] = 0x0572; - t['ghadeva'] = 0x0918; - t['ghagujarati'] = 0x0A98; - t['ghagurmukhi'] = 0x0A18; - t['ghainarabic'] = 0x063A; - t['ghainfinalarabic'] = 0xFECE; - t['ghaininitialarabic'] = 0xFECF; - t['ghainmedialarabic'] = 0xFED0; - t['ghemiddlehookcyrillic'] = 0x0495; - t['ghestrokecyrillic'] = 0x0493; - t['gheupturncyrillic'] = 0x0491; - t['ghhadeva'] = 0x095A; - t['ghhagurmukhi'] = 0x0A5A; - t['ghook'] = 0x0260; - t['ghzsquare'] = 0x3393; - t['gihiragana'] = 0x304E; - t['gikatakana'] = 0x30AE; - t['gimarmenian'] = 0x0563; - t['gimel'] = 0x05D2; - t['gimeldagesh'] = 0xFB32; - t['gimeldageshhebrew'] = 0xFB32; - t['gimelhebrew'] = 0x05D2; - t['gjecyrillic'] = 0x0453; - t['glottalinvertedstroke'] = 0x01BE; - t['glottalstop'] = 0x0294; - t['glottalstopinverted'] = 0x0296; - t['glottalstopmod'] = 0x02C0; - t['glottalstopreversed'] = 0x0295; - t['glottalstopreversedmod'] = 0x02C1; - t['glottalstopreversedsuperior'] = 0x02E4; - t['glottalstopstroke'] = 0x02A1; - t['glottalstopstrokereversed'] = 0x02A2; - t['gmacron'] = 0x1E21; - t['gmonospace'] = 0xFF47; - t['gohiragana'] = 0x3054; - t['gokatakana'] = 0x30B4; - t['gparen'] = 0x24A2; - t['gpasquare'] = 0x33AC; - t['gradient'] = 0x2207; - t['grave'] = 0x0060; - t['gravebelowcmb'] = 0x0316; - t['gravecmb'] = 0x0300; - t['gravecomb'] = 0x0300; - t['gravedeva'] = 0x0953; - t['gravelowmod'] = 0x02CE; - t['gravemonospace'] = 0xFF40; - t['gravetonecmb'] = 0x0340; - t['greater'] = 0x003E; - t['greaterequal'] = 0x2265; - t['greaterequalorless'] = 0x22DB; - t['greatermonospace'] = 0xFF1E; - t['greaterorequivalent'] = 0x2273; - t['greaterorless'] = 0x2277; - t['greateroverequal'] = 0x2267; - t['greatersmall'] = 0xFE65; - t['gscript'] = 0x0261; - t['gstroke'] = 0x01E5; - t['guhiragana'] = 0x3050; - t['guillemotleft'] = 0x00AB; - t['guillemotright'] = 0x00BB; - t['guilsinglleft'] = 0x2039; - t['guilsinglright'] = 0x203A; - t['gukatakana'] = 0x30B0; - t['guramusquare'] = 0x3318; - t['gysquare'] = 0x33C9; - t['h'] = 0x0068; - t['haabkhasiancyrillic'] = 0x04A9; - t['haaltonearabic'] = 0x06C1; - t['habengali'] = 0x09B9; - t['hadescendercyrillic'] = 0x04B3; - t['hadeva'] = 0x0939; - t['hagujarati'] = 0x0AB9; - t['hagurmukhi'] = 0x0A39; - t['haharabic'] = 0x062D; - t['hahfinalarabic'] = 0xFEA2; - t['hahinitialarabic'] = 0xFEA3; - t['hahiragana'] = 0x306F; - t['hahmedialarabic'] = 0xFEA4; - t['haitusquare'] = 0x332A; - t['hakatakana'] = 0x30CF; - t['hakatakanahalfwidth'] = 0xFF8A; - t['halantgurmukhi'] = 0x0A4D; - t['hamzaarabic'] = 0x0621; - t['hamzalowarabic'] = 0x0621; - t['hangulfiller'] = 0x3164; - t['hardsigncyrillic'] = 0x044A; - t['harpoonleftbarbup'] = 0x21BC; - t['harpoonrightbarbup'] = 0x21C0; - t['hasquare'] = 0x33CA; - t['hatafpatah'] = 0x05B2; - t['hatafpatah16'] = 0x05B2; - t['hatafpatah23'] = 0x05B2; - t['hatafpatah2f'] = 0x05B2; - t['hatafpatahhebrew'] = 0x05B2; - t['hatafpatahnarrowhebrew'] = 0x05B2; - t['hatafpatahquarterhebrew'] = 0x05B2; - t['hatafpatahwidehebrew'] = 0x05B2; - t['hatafqamats'] = 0x05B3; - t['hatafqamats1b'] = 0x05B3; - t['hatafqamats28'] = 0x05B3; - t['hatafqamats34'] = 0x05B3; - t['hatafqamatshebrew'] = 0x05B3; - t['hatafqamatsnarrowhebrew'] = 0x05B3; - t['hatafqamatsquarterhebrew'] = 0x05B3; - t['hatafqamatswidehebrew'] = 0x05B3; - t['hatafsegol'] = 0x05B1; - t['hatafsegol17'] = 0x05B1; - t['hatafsegol24'] = 0x05B1; - t['hatafsegol30'] = 0x05B1; - t['hatafsegolhebrew'] = 0x05B1; - t['hatafsegolnarrowhebrew'] = 0x05B1; - t['hatafsegolquarterhebrew'] = 0x05B1; - t['hatafsegolwidehebrew'] = 0x05B1; - t['hbar'] = 0x0127; - t['hbopomofo'] = 0x310F; - t['hbrevebelow'] = 0x1E2B; - t['hcedilla'] = 0x1E29; - t['hcircle'] = 0x24D7; - t['hcircumflex'] = 0x0125; - t['hdieresis'] = 0x1E27; - t['hdotaccent'] = 0x1E23; - t['hdotbelow'] = 0x1E25; - t['he'] = 0x05D4; - t['heart'] = 0x2665; - t['heartsuitblack'] = 0x2665; - t['heartsuitwhite'] = 0x2661; - t['hedagesh'] = 0xFB34; - t['hedageshhebrew'] = 0xFB34; - t['hehaltonearabic'] = 0x06C1; - t['heharabic'] = 0x0647; - t['hehebrew'] = 0x05D4; - t['hehfinalaltonearabic'] = 0xFBA7; - t['hehfinalalttwoarabic'] = 0xFEEA; - t['hehfinalarabic'] = 0xFEEA; - t['hehhamzaabovefinalarabic'] = 0xFBA5; - t['hehhamzaaboveisolatedarabic'] = 0xFBA4; - t['hehinitialaltonearabic'] = 0xFBA8; - t['hehinitialarabic'] = 0xFEEB; - t['hehiragana'] = 0x3078; - t['hehmedialaltonearabic'] = 0xFBA9; - t['hehmedialarabic'] = 0xFEEC; - t['heiseierasquare'] = 0x337B; - t['hekatakana'] = 0x30D8; - t['hekatakanahalfwidth'] = 0xFF8D; - t['hekutaarusquare'] = 0x3336; - t['henghook'] = 0x0267; - t['herutusquare'] = 0x3339; - t['het'] = 0x05D7; - t['hethebrew'] = 0x05D7; - t['hhook'] = 0x0266; - t['hhooksuperior'] = 0x02B1; - t['hieuhacirclekorean'] = 0x327B; - t['hieuhaparenkorean'] = 0x321B; - t['hieuhcirclekorean'] = 0x326D; - t['hieuhkorean'] = 0x314E; - t['hieuhparenkorean'] = 0x320D; - t['hihiragana'] = 0x3072; - t['hikatakana'] = 0x30D2; - t['hikatakanahalfwidth'] = 0xFF8B; - t['hiriq'] = 0x05B4; - t['hiriq14'] = 0x05B4; - t['hiriq21'] = 0x05B4; - t['hiriq2d'] = 0x05B4; - t['hiriqhebrew'] = 0x05B4; - t['hiriqnarrowhebrew'] = 0x05B4; - t['hiriqquarterhebrew'] = 0x05B4; - t['hiriqwidehebrew'] = 0x05B4; - t['hlinebelow'] = 0x1E96; - t['hmonospace'] = 0xFF48; - t['hoarmenian'] = 0x0570; - t['hohipthai'] = 0x0E2B; - t['hohiragana'] = 0x307B; - t['hokatakana'] = 0x30DB; - t['hokatakanahalfwidth'] = 0xFF8E; - t['holam'] = 0x05B9; - t['holam19'] = 0x05B9; - t['holam26'] = 0x05B9; - t['holam32'] = 0x05B9; - t['holamhebrew'] = 0x05B9; - t['holamnarrowhebrew'] = 0x05B9; - t['holamquarterhebrew'] = 0x05B9; - t['holamwidehebrew'] = 0x05B9; - t['honokhukthai'] = 0x0E2E; - t['hookabovecomb'] = 0x0309; - t['hookcmb'] = 0x0309; - t['hookpalatalizedbelowcmb'] = 0x0321; - t['hookretroflexbelowcmb'] = 0x0322; - t['hoonsquare'] = 0x3342; - t['horicoptic'] = 0x03E9; - t['horizontalbar'] = 0x2015; - t['horncmb'] = 0x031B; - t['hotsprings'] = 0x2668; - t['house'] = 0x2302; - t['hparen'] = 0x24A3; - t['hsuperior'] = 0x02B0; - t['hturned'] = 0x0265; - t['huhiragana'] = 0x3075; - t['huiitosquare'] = 0x3333; - t['hukatakana'] = 0x30D5; - t['hukatakanahalfwidth'] = 0xFF8C; - t['hungarumlaut'] = 0x02DD; - t['hungarumlautcmb'] = 0x030B; - t['hv'] = 0x0195; - t['hyphen'] = 0x002D; - t['hypheninferior'] = 0xF6E5; - t['hyphenmonospace'] = 0xFF0D; - t['hyphensmall'] = 0xFE63; - t['hyphensuperior'] = 0xF6E6; - t['hyphentwo'] = 0x2010; - t['i'] = 0x0069; - t['iacute'] = 0x00ED; - t['iacyrillic'] = 0x044F; - t['ibengali'] = 0x0987; - t['ibopomofo'] = 0x3127; - t['ibreve'] = 0x012D; - t['icaron'] = 0x01D0; - t['icircle'] = 0x24D8; - t['icircumflex'] = 0x00EE; - t['icyrillic'] = 0x0456; - t['idblgrave'] = 0x0209; - t['ideographearthcircle'] = 0x328F; - t['ideographfirecircle'] = 0x328B; - t['ideographicallianceparen'] = 0x323F; - t['ideographiccallparen'] = 0x323A; - t['ideographiccentrecircle'] = 0x32A5; - t['ideographicclose'] = 0x3006; - t['ideographiccomma'] = 0x3001; - t['ideographiccommaleft'] = 0xFF64; - t['ideographiccongratulationparen'] = 0x3237; - t['ideographiccorrectcircle'] = 0x32A3; - t['ideographicearthparen'] = 0x322F; - t['ideographicenterpriseparen'] = 0x323D; - t['ideographicexcellentcircle'] = 0x329D; - t['ideographicfestivalparen'] = 0x3240; - t['ideographicfinancialcircle'] = 0x3296; - t['ideographicfinancialparen'] = 0x3236; - t['ideographicfireparen'] = 0x322B; - t['ideographichaveparen'] = 0x3232; - t['ideographichighcircle'] = 0x32A4; - t['ideographiciterationmark'] = 0x3005; - t['ideographiclaborcircle'] = 0x3298; - t['ideographiclaborparen'] = 0x3238; - t['ideographicleftcircle'] = 0x32A7; - t['ideographiclowcircle'] = 0x32A6; - t['ideographicmedicinecircle'] = 0x32A9; - t['ideographicmetalparen'] = 0x322E; - t['ideographicmoonparen'] = 0x322A; - t['ideographicnameparen'] = 0x3234; - t['ideographicperiod'] = 0x3002; - t['ideographicprintcircle'] = 0x329E; - t['ideographicreachparen'] = 0x3243; - t['ideographicrepresentparen'] = 0x3239; - t['ideographicresourceparen'] = 0x323E; - t['ideographicrightcircle'] = 0x32A8; - t['ideographicsecretcircle'] = 0x3299; - t['ideographicselfparen'] = 0x3242; - t['ideographicsocietyparen'] = 0x3233; - t['ideographicspace'] = 0x3000; - t['ideographicspecialparen'] = 0x3235; - t['ideographicstockparen'] = 0x3231; - t['ideographicstudyparen'] = 0x323B; - t['ideographicsunparen'] = 0x3230; - t['ideographicsuperviseparen'] = 0x323C; - t['ideographicwaterparen'] = 0x322C; - t['ideographicwoodparen'] = 0x322D; - t['ideographiczero'] = 0x3007; - t['ideographmetalcircle'] = 0x328E; - t['ideographmooncircle'] = 0x328A; - t['ideographnamecircle'] = 0x3294; - t['ideographsuncircle'] = 0x3290; - t['ideographwatercircle'] = 0x328C; - t['ideographwoodcircle'] = 0x328D; - t['ideva'] = 0x0907; - t['idieresis'] = 0x00EF; - t['idieresisacute'] = 0x1E2F; - t['idieresiscyrillic'] = 0x04E5; - t['idotbelow'] = 0x1ECB; - t['iebrevecyrillic'] = 0x04D7; - t['iecyrillic'] = 0x0435; - t['ieungacirclekorean'] = 0x3275; - t['ieungaparenkorean'] = 0x3215; - t['ieungcirclekorean'] = 0x3267; - t['ieungkorean'] = 0x3147; - t['ieungparenkorean'] = 0x3207; - t['igrave'] = 0x00EC; - t['igujarati'] = 0x0A87; - t['igurmukhi'] = 0x0A07; - t['ihiragana'] = 0x3044; - t['ihookabove'] = 0x1EC9; - t['iibengali'] = 0x0988; - t['iicyrillic'] = 0x0438; - t['iideva'] = 0x0908; - t['iigujarati'] = 0x0A88; - t['iigurmukhi'] = 0x0A08; - t['iimatragurmukhi'] = 0x0A40; - t['iinvertedbreve'] = 0x020B; - t['iishortcyrillic'] = 0x0439; - t['iivowelsignbengali'] = 0x09C0; - t['iivowelsigndeva'] = 0x0940; - t['iivowelsigngujarati'] = 0x0AC0; - t['ij'] = 0x0133; - t['ikatakana'] = 0x30A4; - t['ikatakanahalfwidth'] = 0xFF72; - t['ikorean'] = 0x3163; - t['ilde'] = 0x02DC; - t['iluyhebrew'] = 0x05AC; - t['imacron'] = 0x012B; - t['imacroncyrillic'] = 0x04E3; - t['imageorapproximatelyequal'] = 0x2253; - t['imatragurmukhi'] = 0x0A3F; - t['imonospace'] = 0xFF49; - t['increment'] = 0x2206; - t['infinity'] = 0x221E; - t['iniarmenian'] = 0x056B; - t['integral'] = 0x222B; - t['integralbottom'] = 0x2321; - t['integralbt'] = 0x2321; - t['integralex'] = 0xF8F5; - t['integraltop'] = 0x2320; - t['integraltp'] = 0x2320; - t['intersection'] = 0x2229; - t['intisquare'] = 0x3305; - t['invbullet'] = 0x25D8; - t['invcircle'] = 0x25D9; - t['invsmileface'] = 0x263B; - t['iocyrillic'] = 0x0451; - t['iogonek'] = 0x012F; - t['iota'] = 0x03B9; - t['iotadieresis'] = 0x03CA; - t['iotadieresistonos'] = 0x0390; - t['iotalatin'] = 0x0269; - t['iotatonos'] = 0x03AF; - t['iparen'] = 0x24A4; - t['irigurmukhi'] = 0x0A72; - t['ismallhiragana'] = 0x3043; - t['ismallkatakana'] = 0x30A3; - t['ismallkatakanahalfwidth'] = 0xFF68; - t['issharbengali'] = 0x09FA; - t['istroke'] = 0x0268; - t['isuperior'] = 0xF6ED; - t['iterationhiragana'] = 0x309D; - t['iterationkatakana'] = 0x30FD; - t['itilde'] = 0x0129; - t['itildebelow'] = 0x1E2D; - t['iubopomofo'] = 0x3129; - t['iucyrillic'] = 0x044E; - t['ivowelsignbengali'] = 0x09BF; - t['ivowelsigndeva'] = 0x093F; - t['ivowelsigngujarati'] = 0x0ABF; - t['izhitsacyrillic'] = 0x0475; - t['izhitsadblgravecyrillic'] = 0x0477; - t['j'] = 0x006A; - t['jaarmenian'] = 0x0571; - t['jabengali'] = 0x099C; - t['jadeva'] = 0x091C; - t['jagujarati'] = 0x0A9C; - t['jagurmukhi'] = 0x0A1C; - t['jbopomofo'] = 0x3110; - t['jcaron'] = 0x01F0; - t['jcircle'] = 0x24D9; - t['jcircumflex'] = 0x0135; - t['jcrossedtail'] = 0x029D; - t['jdotlessstroke'] = 0x025F; - t['jecyrillic'] = 0x0458; - t['jeemarabic'] = 0x062C; - t['jeemfinalarabic'] = 0xFE9E; - t['jeeminitialarabic'] = 0xFE9F; - t['jeemmedialarabic'] = 0xFEA0; - t['jeharabic'] = 0x0698; - t['jehfinalarabic'] = 0xFB8B; - t['jhabengali'] = 0x099D; - t['jhadeva'] = 0x091D; - t['jhagujarati'] = 0x0A9D; - t['jhagurmukhi'] = 0x0A1D; - t['jheharmenian'] = 0x057B; - t['jis'] = 0x3004; - t['jmonospace'] = 0xFF4A; - t['jparen'] = 0x24A5; - t['jsuperior'] = 0x02B2; - t['k'] = 0x006B; - t['kabashkircyrillic'] = 0x04A1; - t['kabengali'] = 0x0995; - t['kacute'] = 0x1E31; - t['kacyrillic'] = 0x043A; - t['kadescendercyrillic'] = 0x049B; - t['kadeva'] = 0x0915; - t['kaf'] = 0x05DB; - t['kafarabic'] = 0x0643; - t['kafdagesh'] = 0xFB3B; - t['kafdageshhebrew'] = 0xFB3B; - t['kaffinalarabic'] = 0xFEDA; - t['kafhebrew'] = 0x05DB; - t['kafinitialarabic'] = 0xFEDB; - t['kafmedialarabic'] = 0xFEDC; - t['kafrafehebrew'] = 0xFB4D; - t['kagujarati'] = 0x0A95; - t['kagurmukhi'] = 0x0A15; - t['kahiragana'] = 0x304B; - t['kahookcyrillic'] = 0x04C4; - t['kakatakana'] = 0x30AB; - t['kakatakanahalfwidth'] = 0xFF76; - t['kappa'] = 0x03BA; - t['kappasymbolgreek'] = 0x03F0; - t['kapyeounmieumkorean'] = 0x3171; - t['kapyeounphieuphkorean'] = 0x3184; - t['kapyeounpieupkorean'] = 0x3178; - t['kapyeounssangpieupkorean'] = 0x3179; - t['karoriisquare'] = 0x330D; - t['kashidaautoarabic'] = 0x0640; - t['kashidaautonosidebearingarabic'] = 0x0640; - t['kasmallkatakana'] = 0x30F5; - t['kasquare'] = 0x3384; - t['kasraarabic'] = 0x0650; - t['kasratanarabic'] = 0x064D; - t['kastrokecyrillic'] = 0x049F; - t['katahiraprolongmarkhalfwidth'] = 0xFF70; - t['kaverticalstrokecyrillic'] = 0x049D; - t['kbopomofo'] = 0x310E; - t['kcalsquare'] = 0x3389; - t['kcaron'] = 0x01E9; - t['kcedilla'] = 0x0137; - t['kcircle'] = 0x24DA; - t['kcommaaccent'] = 0x0137; - t['kdotbelow'] = 0x1E33; - t['keharmenian'] = 0x0584; - t['kehiragana'] = 0x3051; - t['kekatakana'] = 0x30B1; - t['kekatakanahalfwidth'] = 0xFF79; - t['kenarmenian'] = 0x056F; - t['kesmallkatakana'] = 0x30F6; - t['kgreenlandic'] = 0x0138; - t['khabengali'] = 0x0996; - t['khacyrillic'] = 0x0445; - t['khadeva'] = 0x0916; - t['khagujarati'] = 0x0A96; - t['khagurmukhi'] = 0x0A16; - t['khaharabic'] = 0x062E; - t['khahfinalarabic'] = 0xFEA6; - t['khahinitialarabic'] = 0xFEA7; - t['khahmedialarabic'] = 0xFEA8; - t['kheicoptic'] = 0x03E7; - t['khhadeva'] = 0x0959; - t['khhagurmukhi'] = 0x0A59; - t['khieukhacirclekorean'] = 0x3278; - t['khieukhaparenkorean'] = 0x3218; - t['khieukhcirclekorean'] = 0x326A; - t['khieukhkorean'] = 0x314B; - t['khieukhparenkorean'] = 0x320A; - t['khokhaithai'] = 0x0E02; - t['khokhonthai'] = 0x0E05; - t['khokhuatthai'] = 0x0E03; - t['khokhwaithai'] = 0x0E04; - t['khomutthai'] = 0x0E5B; - t['khook'] = 0x0199; - t['khorakhangthai'] = 0x0E06; - t['khzsquare'] = 0x3391; - t['kihiragana'] = 0x304D; - t['kikatakana'] = 0x30AD; - t['kikatakanahalfwidth'] = 0xFF77; - t['kiroguramusquare'] = 0x3315; - t['kiromeetorusquare'] = 0x3316; - t['kirosquare'] = 0x3314; - t['kiyeokacirclekorean'] = 0x326E; - t['kiyeokaparenkorean'] = 0x320E; - t['kiyeokcirclekorean'] = 0x3260; - t['kiyeokkorean'] = 0x3131; - t['kiyeokparenkorean'] = 0x3200; - t['kiyeoksioskorean'] = 0x3133; - t['kjecyrillic'] = 0x045C; - t['klinebelow'] = 0x1E35; - t['klsquare'] = 0x3398; - t['kmcubedsquare'] = 0x33A6; - t['kmonospace'] = 0xFF4B; - t['kmsquaredsquare'] = 0x33A2; - t['kohiragana'] = 0x3053; - t['kohmsquare'] = 0x33C0; - t['kokaithai'] = 0x0E01; - t['kokatakana'] = 0x30B3; - t['kokatakanahalfwidth'] = 0xFF7A; - t['kooposquare'] = 0x331E; - t['koppacyrillic'] = 0x0481; - t['koreanstandardsymbol'] = 0x327F; - t['koroniscmb'] = 0x0343; - t['kparen'] = 0x24A6; - t['kpasquare'] = 0x33AA; - t['ksicyrillic'] = 0x046F; - t['ktsquare'] = 0x33CF; - t['kturned'] = 0x029E; - t['kuhiragana'] = 0x304F; - t['kukatakana'] = 0x30AF; - t['kukatakanahalfwidth'] = 0xFF78; - t['kvsquare'] = 0x33B8; - t['kwsquare'] = 0x33BE; - t['l'] = 0x006C; - t['labengali'] = 0x09B2; - t['lacute'] = 0x013A; - t['ladeva'] = 0x0932; - t['lagujarati'] = 0x0AB2; - t['lagurmukhi'] = 0x0A32; - t['lakkhangyaothai'] = 0x0E45; - t['lamaleffinalarabic'] = 0xFEFC; - t['lamalefhamzaabovefinalarabic'] = 0xFEF8; - t['lamalefhamzaaboveisolatedarabic'] = 0xFEF7; - t['lamalefhamzabelowfinalarabic'] = 0xFEFA; - t['lamalefhamzabelowisolatedarabic'] = 0xFEF9; - t['lamalefisolatedarabic'] = 0xFEFB; - t['lamalefmaddaabovefinalarabic'] = 0xFEF6; - t['lamalefmaddaaboveisolatedarabic'] = 0xFEF5; - t['lamarabic'] = 0x0644; - t['lambda'] = 0x03BB; - t['lambdastroke'] = 0x019B; - t['lamed'] = 0x05DC; - t['lameddagesh'] = 0xFB3C; - t['lameddageshhebrew'] = 0xFB3C; - t['lamedhebrew'] = 0x05DC; - t['lamfinalarabic'] = 0xFEDE; - t['lamhahinitialarabic'] = 0xFCCA; - t['laminitialarabic'] = 0xFEDF; - t['lamjeeminitialarabic'] = 0xFCC9; - t['lamkhahinitialarabic'] = 0xFCCB; - t['lamlamhehisolatedarabic'] = 0xFDF2; - t['lammedialarabic'] = 0xFEE0; - t['lammeemhahinitialarabic'] = 0xFD88; - t['lammeeminitialarabic'] = 0xFCCC; - t['largecircle'] = 0x25EF; - t['lbar'] = 0x019A; - t['lbelt'] = 0x026C; - t['lbopomofo'] = 0x310C; - t['lcaron'] = 0x013E; - t['lcedilla'] = 0x013C; - t['lcircle'] = 0x24DB; - t['lcircumflexbelow'] = 0x1E3D; - t['lcommaaccent'] = 0x013C; - t['ldot'] = 0x0140; - t['ldotaccent'] = 0x0140; - t['ldotbelow'] = 0x1E37; - t['ldotbelowmacron'] = 0x1E39; - t['leftangleabovecmb'] = 0x031A; - t['lefttackbelowcmb'] = 0x0318; - t['less'] = 0x003C; - t['lessequal'] = 0x2264; - t['lessequalorgreater'] = 0x22DA; - t['lessmonospace'] = 0xFF1C; - t['lessorequivalent'] = 0x2272; - t['lessorgreater'] = 0x2276; - t['lessoverequal'] = 0x2266; - t['lesssmall'] = 0xFE64; - t['lezh'] = 0x026E; - t['lfblock'] = 0x258C; - t['lhookretroflex'] = 0x026D; - t['lira'] = 0x20A4; - t['liwnarmenian'] = 0x056C; - t['lj'] = 0x01C9; - t['ljecyrillic'] = 0x0459; - t['ll'] = 0xF6C0; - t['lladeva'] = 0x0933; - t['llagujarati'] = 0x0AB3; - t['llinebelow'] = 0x1E3B; - t['llladeva'] = 0x0934; - t['llvocalicbengali'] = 0x09E1; - t['llvocalicdeva'] = 0x0961; - t['llvocalicvowelsignbengali'] = 0x09E3; - t['llvocalicvowelsigndeva'] = 0x0963; - t['lmiddletilde'] = 0x026B; - t['lmonospace'] = 0xFF4C; - t['lmsquare'] = 0x33D0; - t['lochulathai'] = 0x0E2C; - t['logicaland'] = 0x2227; - t['logicalnot'] = 0x00AC; - t['logicalnotreversed'] = 0x2310; - t['logicalor'] = 0x2228; - t['lolingthai'] = 0x0E25; - t['longs'] = 0x017F; - t['lowlinecenterline'] = 0xFE4E; - t['lowlinecmb'] = 0x0332; - t['lowlinedashed'] = 0xFE4D; - t['lozenge'] = 0x25CA; - t['lparen'] = 0x24A7; - t['lslash'] = 0x0142; - t['lsquare'] = 0x2113; - t['lsuperior'] = 0xF6EE; - t['ltshade'] = 0x2591; - t['luthai'] = 0x0E26; - t['lvocalicbengali'] = 0x098C; - t['lvocalicdeva'] = 0x090C; - t['lvocalicvowelsignbengali'] = 0x09E2; - t['lvocalicvowelsigndeva'] = 0x0962; - t['lxsquare'] = 0x33D3; - t['m'] = 0x006D; - t['mabengali'] = 0x09AE; - t['macron'] = 0x00AF; - t['macronbelowcmb'] = 0x0331; - t['macroncmb'] = 0x0304; - t['macronlowmod'] = 0x02CD; - t['macronmonospace'] = 0xFFE3; - t['macute'] = 0x1E3F; - t['madeva'] = 0x092E; - t['magujarati'] = 0x0AAE; - t['magurmukhi'] = 0x0A2E; - t['mahapakhhebrew'] = 0x05A4; - t['mahapakhlefthebrew'] = 0x05A4; - t['mahiragana'] = 0x307E; - t['maichattawalowleftthai'] = 0xF895; - t['maichattawalowrightthai'] = 0xF894; - t['maichattawathai'] = 0x0E4B; - t['maichattawaupperleftthai'] = 0xF893; - t['maieklowleftthai'] = 0xF88C; - t['maieklowrightthai'] = 0xF88B; - t['maiekthai'] = 0x0E48; - t['maiekupperleftthai'] = 0xF88A; - t['maihanakatleftthai'] = 0xF884; - t['maihanakatthai'] = 0x0E31; - t['maitaikhuleftthai'] = 0xF889; - t['maitaikhuthai'] = 0x0E47; - t['maitholowleftthai'] = 0xF88F; - t['maitholowrightthai'] = 0xF88E; - t['maithothai'] = 0x0E49; - t['maithoupperleftthai'] = 0xF88D; - t['maitrilowleftthai'] = 0xF892; - t['maitrilowrightthai'] = 0xF891; - t['maitrithai'] = 0x0E4A; - t['maitriupperleftthai'] = 0xF890; - t['maiyamokthai'] = 0x0E46; - t['makatakana'] = 0x30DE; - t['makatakanahalfwidth'] = 0xFF8F; - t['male'] = 0x2642; - t['mansyonsquare'] = 0x3347; - t['maqafhebrew'] = 0x05BE; - t['mars'] = 0x2642; - t['masoracirclehebrew'] = 0x05AF; - t['masquare'] = 0x3383; - t['mbopomofo'] = 0x3107; - t['mbsquare'] = 0x33D4; - t['mcircle'] = 0x24DC; - t['mcubedsquare'] = 0x33A5; - t['mdotaccent'] = 0x1E41; - t['mdotbelow'] = 0x1E43; - t['meemarabic'] = 0x0645; - t['meemfinalarabic'] = 0xFEE2; - t['meeminitialarabic'] = 0xFEE3; - t['meemmedialarabic'] = 0xFEE4; - t['meemmeeminitialarabic'] = 0xFCD1; - t['meemmeemisolatedarabic'] = 0xFC48; - t['meetorusquare'] = 0x334D; - t['mehiragana'] = 0x3081; - t['meizierasquare'] = 0x337E; - t['mekatakana'] = 0x30E1; - t['mekatakanahalfwidth'] = 0xFF92; - t['mem'] = 0x05DE; - t['memdagesh'] = 0xFB3E; - t['memdageshhebrew'] = 0xFB3E; - t['memhebrew'] = 0x05DE; - t['menarmenian'] = 0x0574; - t['merkhahebrew'] = 0x05A5; - t['merkhakefulahebrew'] = 0x05A6; - t['merkhakefulalefthebrew'] = 0x05A6; - t['merkhalefthebrew'] = 0x05A5; - t['mhook'] = 0x0271; - t['mhzsquare'] = 0x3392; - t['middledotkatakanahalfwidth'] = 0xFF65; - t['middot'] = 0x00B7; - t['mieumacirclekorean'] = 0x3272; - t['mieumaparenkorean'] = 0x3212; - t['mieumcirclekorean'] = 0x3264; - t['mieumkorean'] = 0x3141; - t['mieumpansioskorean'] = 0x3170; - t['mieumparenkorean'] = 0x3204; - t['mieumpieupkorean'] = 0x316E; - t['mieumsioskorean'] = 0x316F; - t['mihiragana'] = 0x307F; - t['mikatakana'] = 0x30DF; - t['mikatakanahalfwidth'] = 0xFF90; - t['minus'] = 0x2212; - t['minusbelowcmb'] = 0x0320; - t['minuscircle'] = 0x2296; - t['minusmod'] = 0x02D7; - t['minusplus'] = 0x2213; - t['minute'] = 0x2032; - t['miribaarusquare'] = 0x334A; - t['mirisquare'] = 0x3349; - t['mlonglegturned'] = 0x0270; - t['mlsquare'] = 0x3396; - t['mmcubedsquare'] = 0x33A3; - t['mmonospace'] = 0xFF4D; - t['mmsquaredsquare'] = 0x339F; - t['mohiragana'] = 0x3082; - t['mohmsquare'] = 0x33C1; - t['mokatakana'] = 0x30E2; - t['mokatakanahalfwidth'] = 0xFF93; - t['molsquare'] = 0x33D6; - t['momathai'] = 0x0E21; - t['moverssquare'] = 0x33A7; - t['moverssquaredsquare'] = 0x33A8; - t['mparen'] = 0x24A8; - t['mpasquare'] = 0x33AB; - t['mssquare'] = 0x33B3; - t['msuperior'] = 0xF6EF; - t['mturned'] = 0x026F; - t['mu'] = 0x00B5; - t['mu1'] = 0x00B5; - t['muasquare'] = 0x3382; - t['muchgreater'] = 0x226B; - t['muchless'] = 0x226A; - t['mufsquare'] = 0x338C; - t['mugreek'] = 0x03BC; - t['mugsquare'] = 0x338D; - t['muhiragana'] = 0x3080; - t['mukatakana'] = 0x30E0; - t['mukatakanahalfwidth'] = 0xFF91; - t['mulsquare'] = 0x3395; - t['multiply'] = 0x00D7; - t['mumsquare'] = 0x339B; - t['munahhebrew'] = 0x05A3; - t['munahlefthebrew'] = 0x05A3; - t['musicalnote'] = 0x266A; - t['musicalnotedbl'] = 0x266B; - t['musicflatsign'] = 0x266D; - t['musicsharpsign'] = 0x266F; - t['mussquare'] = 0x33B2; - t['muvsquare'] = 0x33B6; - t['muwsquare'] = 0x33BC; - t['mvmegasquare'] = 0x33B9; - t['mvsquare'] = 0x33B7; - t['mwmegasquare'] = 0x33BF; - t['mwsquare'] = 0x33BD; - t['n'] = 0x006E; - t['nabengali'] = 0x09A8; - t['nabla'] = 0x2207; - t['nacute'] = 0x0144; - t['nadeva'] = 0x0928; - t['nagujarati'] = 0x0AA8; - t['nagurmukhi'] = 0x0A28; - t['nahiragana'] = 0x306A; - t['nakatakana'] = 0x30CA; - t['nakatakanahalfwidth'] = 0xFF85; - t['napostrophe'] = 0x0149; - t['nasquare'] = 0x3381; - t['nbopomofo'] = 0x310B; - t['nbspace'] = 0x00A0; - t['ncaron'] = 0x0148; - t['ncedilla'] = 0x0146; - t['ncircle'] = 0x24DD; - t['ncircumflexbelow'] = 0x1E4B; - t['ncommaaccent'] = 0x0146; - t['ndotaccent'] = 0x1E45; - t['ndotbelow'] = 0x1E47; - t['nehiragana'] = 0x306D; - t['nekatakana'] = 0x30CD; - t['nekatakanahalfwidth'] = 0xFF88; - t['newsheqelsign'] = 0x20AA; - t['nfsquare'] = 0x338B; - t['ngabengali'] = 0x0999; - t['ngadeva'] = 0x0919; - t['ngagujarati'] = 0x0A99; - t['ngagurmukhi'] = 0x0A19; - t['ngonguthai'] = 0x0E07; - t['nhiragana'] = 0x3093; - t['nhookleft'] = 0x0272; - t['nhookretroflex'] = 0x0273; - t['nieunacirclekorean'] = 0x326F; - t['nieunaparenkorean'] = 0x320F; - t['nieuncieuckorean'] = 0x3135; - t['nieuncirclekorean'] = 0x3261; - t['nieunhieuhkorean'] = 0x3136; - t['nieunkorean'] = 0x3134; - t['nieunpansioskorean'] = 0x3168; - t['nieunparenkorean'] = 0x3201; - t['nieunsioskorean'] = 0x3167; - t['nieuntikeutkorean'] = 0x3166; - t['nihiragana'] = 0x306B; - t['nikatakana'] = 0x30CB; - t['nikatakanahalfwidth'] = 0xFF86; - t['nikhahitleftthai'] = 0xF899; - t['nikhahitthai'] = 0x0E4D; - t['nine'] = 0x0039; - t['ninearabic'] = 0x0669; - t['ninebengali'] = 0x09EF; - t['ninecircle'] = 0x2468; - t['ninecircleinversesansserif'] = 0x2792; - t['ninedeva'] = 0x096F; - t['ninegujarati'] = 0x0AEF; - t['ninegurmukhi'] = 0x0A6F; - t['ninehackarabic'] = 0x0669; - t['ninehangzhou'] = 0x3029; - t['nineideographicparen'] = 0x3228; - t['nineinferior'] = 0x2089; - t['ninemonospace'] = 0xFF19; - t['nineoldstyle'] = 0xF739; - t['nineparen'] = 0x247C; - t['nineperiod'] = 0x2490; - t['ninepersian'] = 0x06F9; - t['nineroman'] = 0x2178; - t['ninesuperior'] = 0x2079; - t['nineteencircle'] = 0x2472; - t['nineteenparen'] = 0x2486; - t['nineteenperiod'] = 0x249A; - t['ninethai'] = 0x0E59; - t['nj'] = 0x01CC; - t['njecyrillic'] = 0x045A; - t['nkatakana'] = 0x30F3; - t['nkatakanahalfwidth'] = 0xFF9D; - t['nlegrightlong'] = 0x019E; - t['nlinebelow'] = 0x1E49; - t['nmonospace'] = 0xFF4E; - t['nmsquare'] = 0x339A; - t['nnabengali'] = 0x09A3; - t['nnadeva'] = 0x0923; - t['nnagujarati'] = 0x0AA3; - t['nnagurmukhi'] = 0x0A23; - t['nnnadeva'] = 0x0929; - t['nohiragana'] = 0x306E; - t['nokatakana'] = 0x30CE; - t['nokatakanahalfwidth'] = 0xFF89; - t['nonbreakingspace'] = 0x00A0; - t['nonenthai'] = 0x0E13; - t['nonuthai'] = 0x0E19; - t['noonarabic'] = 0x0646; - t['noonfinalarabic'] = 0xFEE6; - t['noonghunnaarabic'] = 0x06BA; - t['noonghunnafinalarabic'] = 0xFB9F; - t['nooninitialarabic'] = 0xFEE7; - t['noonjeeminitialarabic'] = 0xFCD2; - t['noonjeemisolatedarabic'] = 0xFC4B; - t['noonmedialarabic'] = 0xFEE8; - t['noonmeeminitialarabic'] = 0xFCD5; - t['noonmeemisolatedarabic'] = 0xFC4E; - t['noonnoonfinalarabic'] = 0xFC8D; - t['notcontains'] = 0x220C; - t['notelement'] = 0x2209; - t['notelementof'] = 0x2209; - t['notequal'] = 0x2260; - t['notgreater'] = 0x226F; - t['notgreaternorequal'] = 0x2271; - t['notgreaternorless'] = 0x2279; - t['notidentical'] = 0x2262; - t['notless'] = 0x226E; - t['notlessnorequal'] = 0x2270; - t['notparallel'] = 0x2226; - t['notprecedes'] = 0x2280; - t['notsubset'] = 0x2284; - t['notsucceeds'] = 0x2281; - t['notsuperset'] = 0x2285; - t['nowarmenian'] = 0x0576; - t['nparen'] = 0x24A9; - t['nssquare'] = 0x33B1; - t['nsuperior'] = 0x207F; - t['ntilde'] = 0x00F1; - t['nu'] = 0x03BD; - t['nuhiragana'] = 0x306C; - t['nukatakana'] = 0x30CC; - t['nukatakanahalfwidth'] = 0xFF87; - t['nuktabengali'] = 0x09BC; - t['nuktadeva'] = 0x093C; - t['nuktagujarati'] = 0x0ABC; - t['nuktagurmukhi'] = 0x0A3C; - t['numbersign'] = 0x0023; - t['numbersignmonospace'] = 0xFF03; - t['numbersignsmall'] = 0xFE5F; - t['numeralsigngreek'] = 0x0374; - t['numeralsignlowergreek'] = 0x0375; - t['numero'] = 0x2116; - t['nun'] = 0x05E0; - t['nundagesh'] = 0xFB40; - t['nundageshhebrew'] = 0xFB40; - t['nunhebrew'] = 0x05E0; - t['nvsquare'] = 0x33B5; - t['nwsquare'] = 0x33BB; - t['nyabengali'] = 0x099E; - t['nyadeva'] = 0x091E; - t['nyagujarati'] = 0x0A9E; - t['nyagurmukhi'] = 0x0A1E; - t['o'] = 0x006F; - t['oacute'] = 0x00F3; - t['oangthai'] = 0x0E2D; - t['obarred'] = 0x0275; - t['obarredcyrillic'] = 0x04E9; - t['obarreddieresiscyrillic'] = 0x04EB; - t['obengali'] = 0x0993; - t['obopomofo'] = 0x311B; - t['obreve'] = 0x014F; - t['ocandradeva'] = 0x0911; - t['ocandragujarati'] = 0x0A91; - t['ocandravowelsigndeva'] = 0x0949; - t['ocandravowelsigngujarati'] = 0x0AC9; - t['ocaron'] = 0x01D2; - t['ocircle'] = 0x24DE; - t['ocircumflex'] = 0x00F4; - t['ocircumflexacute'] = 0x1ED1; - t['ocircumflexdotbelow'] = 0x1ED9; - t['ocircumflexgrave'] = 0x1ED3; - t['ocircumflexhookabove'] = 0x1ED5; - t['ocircumflextilde'] = 0x1ED7; - t['ocyrillic'] = 0x043E; - t['odblacute'] = 0x0151; - t['odblgrave'] = 0x020D; - t['odeva'] = 0x0913; - t['odieresis'] = 0x00F6; - t['odieresiscyrillic'] = 0x04E7; - t['odotbelow'] = 0x1ECD; - t['oe'] = 0x0153; - t['oekorean'] = 0x315A; - t['ogonek'] = 0x02DB; - t['ogonekcmb'] = 0x0328; - t['ograve'] = 0x00F2; - t['ogujarati'] = 0x0A93; - t['oharmenian'] = 0x0585; - t['ohiragana'] = 0x304A; - t['ohookabove'] = 0x1ECF; - t['ohorn'] = 0x01A1; - t['ohornacute'] = 0x1EDB; - t['ohorndotbelow'] = 0x1EE3; - t['ohorngrave'] = 0x1EDD; - t['ohornhookabove'] = 0x1EDF; - t['ohorntilde'] = 0x1EE1; - t['ohungarumlaut'] = 0x0151; - t['oi'] = 0x01A3; - t['oinvertedbreve'] = 0x020F; - t['okatakana'] = 0x30AA; - t['okatakanahalfwidth'] = 0xFF75; - t['okorean'] = 0x3157; - t['olehebrew'] = 0x05AB; - t['omacron'] = 0x014D; - t['omacronacute'] = 0x1E53; - t['omacrongrave'] = 0x1E51; - t['omdeva'] = 0x0950; - t['omega'] = 0x03C9; - t['omega1'] = 0x03D6; - t['omegacyrillic'] = 0x0461; - t['omegalatinclosed'] = 0x0277; - t['omegaroundcyrillic'] = 0x047B; - t['omegatitlocyrillic'] = 0x047D; - t['omegatonos'] = 0x03CE; - t['omgujarati'] = 0x0AD0; - t['omicron'] = 0x03BF; - t['omicrontonos'] = 0x03CC; - t['omonospace'] = 0xFF4F; - t['one'] = 0x0031; - t['onearabic'] = 0x0661; - t['onebengali'] = 0x09E7; - t['onecircle'] = 0x2460; - t['onecircleinversesansserif'] = 0x278A; - t['onedeva'] = 0x0967; - t['onedotenleader'] = 0x2024; - t['oneeighth'] = 0x215B; - t['onefitted'] = 0xF6DC; - t['onegujarati'] = 0x0AE7; - t['onegurmukhi'] = 0x0A67; - t['onehackarabic'] = 0x0661; - t['onehalf'] = 0x00BD; - t['onehangzhou'] = 0x3021; - t['oneideographicparen'] = 0x3220; - t['oneinferior'] = 0x2081; - t['onemonospace'] = 0xFF11; - t['onenumeratorbengali'] = 0x09F4; - t['oneoldstyle'] = 0xF731; - t['oneparen'] = 0x2474; - t['oneperiod'] = 0x2488; - t['onepersian'] = 0x06F1; - t['onequarter'] = 0x00BC; - t['oneroman'] = 0x2170; - t['onesuperior'] = 0x00B9; - t['onethai'] = 0x0E51; - t['onethird'] = 0x2153; - t['oogonek'] = 0x01EB; - t['oogonekmacron'] = 0x01ED; - t['oogurmukhi'] = 0x0A13; - t['oomatragurmukhi'] = 0x0A4B; - t['oopen'] = 0x0254; - t['oparen'] = 0x24AA; - t['openbullet'] = 0x25E6; - t['option'] = 0x2325; - t['ordfeminine'] = 0x00AA; - t['ordmasculine'] = 0x00BA; - t['orthogonal'] = 0x221F; - t['oshortdeva'] = 0x0912; - t['oshortvowelsigndeva'] = 0x094A; - t['oslash'] = 0x00F8; - t['oslashacute'] = 0x01FF; - t['osmallhiragana'] = 0x3049; - t['osmallkatakana'] = 0x30A9; - t['osmallkatakanahalfwidth'] = 0xFF6B; - t['ostrokeacute'] = 0x01FF; - t['osuperior'] = 0xF6F0; - t['otcyrillic'] = 0x047F; - t['otilde'] = 0x00F5; - t['otildeacute'] = 0x1E4D; - t['otildedieresis'] = 0x1E4F; - t['oubopomofo'] = 0x3121; - t['overline'] = 0x203E; - t['overlinecenterline'] = 0xFE4A; - t['overlinecmb'] = 0x0305; - t['overlinedashed'] = 0xFE49; - t['overlinedblwavy'] = 0xFE4C; - t['overlinewavy'] = 0xFE4B; - t['overscore'] = 0x00AF; - t['ovowelsignbengali'] = 0x09CB; - t['ovowelsigndeva'] = 0x094B; - t['ovowelsigngujarati'] = 0x0ACB; - t['p'] = 0x0070; - t['paampssquare'] = 0x3380; - t['paasentosquare'] = 0x332B; - t['pabengali'] = 0x09AA; - t['pacute'] = 0x1E55; - t['padeva'] = 0x092A; - t['pagedown'] = 0x21DF; - t['pageup'] = 0x21DE; - t['pagujarati'] = 0x0AAA; - t['pagurmukhi'] = 0x0A2A; - t['pahiragana'] = 0x3071; - t['paiyannoithai'] = 0x0E2F; - t['pakatakana'] = 0x30D1; - t['palatalizationcyrilliccmb'] = 0x0484; - t['palochkacyrillic'] = 0x04C0; - t['pansioskorean'] = 0x317F; - t['paragraph'] = 0x00B6; - t['parallel'] = 0x2225; - t['parenleft'] = 0x0028; - t['parenleftaltonearabic'] = 0xFD3E; - t['parenleftbt'] = 0xF8ED; - t['parenleftex'] = 0xF8EC; - t['parenleftinferior'] = 0x208D; - t['parenleftmonospace'] = 0xFF08; - t['parenleftsmall'] = 0xFE59; - t['parenleftsuperior'] = 0x207D; - t['parenlefttp'] = 0xF8EB; - t['parenleftvertical'] = 0xFE35; - t['parenright'] = 0x0029; - t['parenrightaltonearabic'] = 0xFD3F; - t['parenrightbt'] = 0xF8F8; - t['parenrightex'] = 0xF8F7; - t['parenrightinferior'] = 0x208E; - t['parenrightmonospace'] = 0xFF09; - t['parenrightsmall'] = 0xFE5A; - t['parenrightsuperior'] = 0x207E; - t['parenrighttp'] = 0xF8F6; - t['parenrightvertical'] = 0xFE36; - t['partialdiff'] = 0x2202; - t['paseqhebrew'] = 0x05C0; - t['pashtahebrew'] = 0x0599; - t['pasquare'] = 0x33A9; - t['patah'] = 0x05B7; - t['patah11'] = 0x05B7; - t['patah1d'] = 0x05B7; - t['patah2a'] = 0x05B7; - t['patahhebrew'] = 0x05B7; - t['patahnarrowhebrew'] = 0x05B7; - t['patahquarterhebrew'] = 0x05B7; - t['patahwidehebrew'] = 0x05B7; - t['pazerhebrew'] = 0x05A1; - t['pbopomofo'] = 0x3106; - t['pcircle'] = 0x24DF; - t['pdotaccent'] = 0x1E57; - t['pe'] = 0x05E4; - t['pecyrillic'] = 0x043F; - t['pedagesh'] = 0xFB44; - t['pedageshhebrew'] = 0xFB44; - t['peezisquare'] = 0x333B; - t['pefinaldageshhebrew'] = 0xFB43; - t['peharabic'] = 0x067E; - t['peharmenian'] = 0x057A; - t['pehebrew'] = 0x05E4; - t['pehfinalarabic'] = 0xFB57; - t['pehinitialarabic'] = 0xFB58; - t['pehiragana'] = 0x307A; - t['pehmedialarabic'] = 0xFB59; - t['pekatakana'] = 0x30DA; - t['pemiddlehookcyrillic'] = 0x04A7; - t['perafehebrew'] = 0xFB4E; - t['percent'] = 0x0025; - t['percentarabic'] = 0x066A; - t['percentmonospace'] = 0xFF05; - t['percentsmall'] = 0xFE6A; - t['period'] = 0x002E; - t['periodarmenian'] = 0x0589; - t['periodcentered'] = 0x00B7; - t['periodhalfwidth'] = 0xFF61; - t['periodinferior'] = 0xF6E7; - t['periodmonospace'] = 0xFF0E; - t['periodsmall'] = 0xFE52; - t['periodsuperior'] = 0xF6E8; - t['perispomenigreekcmb'] = 0x0342; - t['perpendicular'] = 0x22A5; - t['perthousand'] = 0x2030; - t['peseta'] = 0x20A7; - t['pfsquare'] = 0x338A; - t['phabengali'] = 0x09AB; - t['phadeva'] = 0x092B; - t['phagujarati'] = 0x0AAB; - t['phagurmukhi'] = 0x0A2B; - t['phi'] = 0x03C6; - t['phi1'] = 0x03D5; - t['phieuphacirclekorean'] = 0x327A; - t['phieuphaparenkorean'] = 0x321A; - t['phieuphcirclekorean'] = 0x326C; - t['phieuphkorean'] = 0x314D; - t['phieuphparenkorean'] = 0x320C; - t['philatin'] = 0x0278; - t['phinthuthai'] = 0x0E3A; - t['phisymbolgreek'] = 0x03D5; - t['phook'] = 0x01A5; - t['phophanthai'] = 0x0E1E; - t['phophungthai'] = 0x0E1C; - t['phosamphaothai'] = 0x0E20; - t['pi'] = 0x03C0; - t['pieupacirclekorean'] = 0x3273; - t['pieupaparenkorean'] = 0x3213; - t['pieupcieuckorean'] = 0x3176; - t['pieupcirclekorean'] = 0x3265; - t['pieupkiyeokkorean'] = 0x3172; - t['pieupkorean'] = 0x3142; - t['pieupparenkorean'] = 0x3205; - t['pieupsioskiyeokkorean'] = 0x3174; - t['pieupsioskorean'] = 0x3144; - t['pieupsiostikeutkorean'] = 0x3175; - t['pieupthieuthkorean'] = 0x3177; - t['pieuptikeutkorean'] = 0x3173; - t['pihiragana'] = 0x3074; - t['pikatakana'] = 0x30D4; - t['pisymbolgreek'] = 0x03D6; - t['piwrarmenian'] = 0x0583; - t['plus'] = 0x002B; - t['plusbelowcmb'] = 0x031F; - t['pluscircle'] = 0x2295; - t['plusminus'] = 0x00B1; - t['plusmod'] = 0x02D6; - t['plusmonospace'] = 0xFF0B; - t['plussmall'] = 0xFE62; - t['plussuperior'] = 0x207A; - t['pmonospace'] = 0xFF50; - t['pmsquare'] = 0x33D8; - t['pohiragana'] = 0x307D; - t['pointingindexdownwhite'] = 0x261F; - t['pointingindexleftwhite'] = 0x261C; - t['pointingindexrightwhite'] = 0x261E; - t['pointingindexupwhite'] = 0x261D; - t['pokatakana'] = 0x30DD; - t['poplathai'] = 0x0E1B; - t['postalmark'] = 0x3012; - t['postalmarkface'] = 0x3020; - t['pparen'] = 0x24AB; - t['precedes'] = 0x227A; - t['prescription'] = 0x211E; - t['primemod'] = 0x02B9; - t['primereversed'] = 0x2035; - t['product'] = 0x220F; - t['projective'] = 0x2305; - t['prolongedkana'] = 0x30FC; - t['propellor'] = 0x2318; - t['propersubset'] = 0x2282; - t['propersuperset'] = 0x2283; - t['proportion'] = 0x2237; - t['proportional'] = 0x221D; - t['psi'] = 0x03C8; - t['psicyrillic'] = 0x0471; - t['psilipneumatacyrilliccmb'] = 0x0486; - t['pssquare'] = 0x33B0; - t['puhiragana'] = 0x3077; - t['pukatakana'] = 0x30D7; - t['pvsquare'] = 0x33B4; - t['pwsquare'] = 0x33BA; - t['q'] = 0x0071; - t['qadeva'] = 0x0958; - t['qadmahebrew'] = 0x05A8; - t['qafarabic'] = 0x0642; - t['qaffinalarabic'] = 0xFED6; - t['qafinitialarabic'] = 0xFED7; - t['qafmedialarabic'] = 0xFED8; - t['qamats'] = 0x05B8; - t['qamats10'] = 0x05B8; - t['qamats1a'] = 0x05B8; - t['qamats1c'] = 0x05B8; - t['qamats27'] = 0x05B8; - t['qamats29'] = 0x05B8; - t['qamats33'] = 0x05B8; - t['qamatsde'] = 0x05B8; - t['qamatshebrew'] = 0x05B8; - t['qamatsnarrowhebrew'] = 0x05B8; - t['qamatsqatanhebrew'] = 0x05B8; - t['qamatsqatannarrowhebrew'] = 0x05B8; - t['qamatsqatanquarterhebrew'] = 0x05B8; - t['qamatsqatanwidehebrew'] = 0x05B8; - t['qamatsquarterhebrew'] = 0x05B8; - t['qamatswidehebrew'] = 0x05B8; - t['qarneyparahebrew'] = 0x059F; - t['qbopomofo'] = 0x3111; - t['qcircle'] = 0x24E0; - t['qhook'] = 0x02A0; - t['qmonospace'] = 0xFF51; - t['qof'] = 0x05E7; - t['qofdagesh'] = 0xFB47; - t['qofdageshhebrew'] = 0xFB47; - t['qofhebrew'] = 0x05E7; - t['qparen'] = 0x24AC; - t['quarternote'] = 0x2669; - t['qubuts'] = 0x05BB; - t['qubuts18'] = 0x05BB; - t['qubuts25'] = 0x05BB; - t['qubuts31'] = 0x05BB; - t['qubutshebrew'] = 0x05BB; - t['qubutsnarrowhebrew'] = 0x05BB; - t['qubutsquarterhebrew'] = 0x05BB; - t['qubutswidehebrew'] = 0x05BB; - t['question'] = 0x003F; - t['questionarabic'] = 0x061F; - t['questionarmenian'] = 0x055E; - t['questiondown'] = 0x00BF; - t['questiondownsmall'] = 0xF7BF; - t['questiongreek'] = 0x037E; - t['questionmonospace'] = 0xFF1F; - t['questionsmall'] = 0xF73F; - t['quotedbl'] = 0x0022; - t['quotedblbase'] = 0x201E; - t['quotedblleft'] = 0x201C; - t['quotedblmonospace'] = 0xFF02; - t['quotedblprime'] = 0x301E; - t['quotedblprimereversed'] = 0x301D; - t['quotedblright'] = 0x201D; - t['quoteleft'] = 0x2018; - t['quoteleftreversed'] = 0x201B; - t['quotereversed'] = 0x201B; - t['quoteright'] = 0x2019; - t['quoterightn'] = 0x0149; - t['quotesinglbase'] = 0x201A; - t['quotesingle'] = 0x0027; - t['quotesinglemonospace'] = 0xFF07; - t['r'] = 0x0072; - t['raarmenian'] = 0x057C; - t['rabengali'] = 0x09B0; - t['racute'] = 0x0155; - t['radeva'] = 0x0930; - t['radical'] = 0x221A; - t['radicalex'] = 0xF8E5; - t['radoverssquare'] = 0x33AE; - t['radoverssquaredsquare'] = 0x33AF; - t['radsquare'] = 0x33AD; - t['rafe'] = 0x05BF; - t['rafehebrew'] = 0x05BF; - t['ragujarati'] = 0x0AB0; - t['ragurmukhi'] = 0x0A30; - t['rahiragana'] = 0x3089; - t['rakatakana'] = 0x30E9; - t['rakatakanahalfwidth'] = 0xFF97; - t['ralowerdiagonalbengali'] = 0x09F1; - t['ramiddlediagonalbengali'] = 0x09F0; - t['ramshorn'] = 0x0264; - t['ratio'] = 0x2236; - t['rbopomofo'] = 0x3116; - t['rcaron'] = 0x0159; - t['rcedilla'] = 0x0157; - t['rcircle'] = 0x24E1; - t['rcommaaccent'] = 0x0157; - t['rdblgrave'] = 0x0211; - t['rdotaccent'] = 0x1E59; - t['rdotbelow'] = 0x1E5B; - t['rdotbelowmacron'] = 0x1E5D; - t['referencemark'] = 0x203B; - t['reflexsubset'] = 0x2286; - t['reflexsuperset'] = 0x2287; - t['registered'] = 0x00AE; - t['registersans'] = 0xF8E8; - t['registerserif'] = 0xF6DA; - t['reharabic'] = 0x0631; - t['reharmenian'] = 0x0580; - t['rehfinalarabic'] = 0xFEAE; - t['rehiragana'] = 0x308C; - t['rekatakana'] = 0x30EC; - t['rekatakanahalfwidth'] = 0xFF9A; - t['resh'] = 0x05E8; - t['reshdageshhebrew'] = 0xFB48; - t['reshhebrew'] = 0x05E8; - t['reversedtilde'] = 0x223D; - t['reviahebrew'] = 0x0597; - t['reviamugrashhebrew'] = 0x0597; - t['revlogicalnot'] = 0x2310; - t['rfishhook'] = 0x027E; - t['rfishhookreversed'] = 0x027F; - t['rhabengali'] = 0x09DD; - t['rhadeva'] = 0x095D; - t['rho'] = 0x03C1; - t['rhook'] = 0x027D; - t['rhookturned'] = 0x027B; - t['rhookturnedsuperior'] = 0x02B5; - t['rhosymbolgreek'] = 0x03F1; - t['rhotichookmod'] = 0x02DE; - t['rieulacirclekorean'] = 0x3271; - t['rieulaparenkorean'] = 0x3211; - t['rieulcirclekorean'] = 0x3263; - t['rieulhieuhkorean'] = 0x3140; - t['rieulkiyeokkorean'] = 0x313A; - t['rieulkiyeoksioskorean'] = 0x3169; - t['rieulkorean'] = 0x3139; - t['rieulmieumkorean'] = 0x313B; - t['rieulpansioskorean'] = 0x316C; - t['rieulparenkorean'] = 0x3203; - t['rieulphieuphkorean'] = 0x313F; - t['rieulpieupkorean'] = 0x313C; - t['rieulpieupsioskorean'] = 0x316B; - t['rieulsioskorean'] = 0x313D; - t['rieulthieuthkorean'] = 0x313E; - t['rieultikeutkorean'] = 0x316A; - t['rieulyeorinhieuhkorean'] = 0x316D; - t['rightangle'] = 0x221F; - t['righttackbelowcmb'] = 0x0319; - t['righttriangle'] = 0x22BF; - t['rihiragana'] = 0x308A; - t['rikatakana'] = 0x30EA; - t['rikatakanahalfwidth'] = 0xFF98; - t['ring'] = 0x02DA; - t['ringbelowcmb'] = 0x0325; - t['ringcmb'] = 0x030A; - t['ringhalfleft'] = 0x02BF; - t['ringhalfleftarmenian'] = 0x0559; - t['ringhalfleftbelowcmb'] = 0x031C; - t['ringhalfleftcentered'] = 0x02D3; - t['ringhalfright'] = 0x02BE; - t['ringhalfrightbelowcmb'] = 0x0339; - t['ringhalfrightcentered'] = 0x02D2; - t['rinvertedbreve'] = 0x0213; - t['rittorusquare'] = 0x3351; - t['rlinebelow'] = 0x1E5F; - t['rlongleg'] = 0x027C; - t['rlonglegturned'] = 0x027A; - t['rmonospace'] = 0xFF52; - t['rohiragana'] = 0x308D; - t['rokatakana'] = 0x30ED; - t['rokatakanahalfwidth'] = 0xFF9B; - t['roruathai'] = 0x0E23; - t['rparen'] = 0x24AD; - t['rrabengali'] = 0x09DC; - t['rradeva'] = 0x0931; - t['rragurmukhi'] = 0x0A5C; - t['rreharabic'] = 0x0691; - t['rrehfinalarabic'] = 0xFB8D; - t['rrvocalicbengali'] = 0x09E0; - t['rrvocalicdeva'] = 0x0960; - t['rrvocalicgujarati'] = 0x0AE0; - t['rrvocalicvowelsignbengali'] = 0x09C4; - t['rrvocalicvowelsigndeva'] = 0x0944; - t['rrvocalicvowelsigngujarati'] = 0x0AC4; - t['rsuperior'] = 0xF6F1; - t['rtblock'] = 0x2590; - t['rturned'] = 0x0279; - t['rturnedsuperior'] = 0x02B4; - t['ruhiragana'] = 0x308B; - t['rukatakana'] = 0x30EB; - t['rukatakanahalfwidth'] = 0xFF99; - t['rupeemarkbengali'] = 0x09F2; - t['rupeesignbengali'] = 0x09F3; - t['rupiah'] = 0xF6DD; - t['ruthai'] = 0x0E24; - t['rvocalicbengali'] = 0x098B; - t['rvocalicdeva'] = 0x090B; - t['rvocalicgujarati'] = 0x0A8B; - t['rvocalicvowelsignbengali'] = 0x09C3; - t['rvocalicvowelsigndeva'] = 0x0943; - t['rvocalicvowelsigngujarati'] = 0x0AC3; - t['s'] = 0x0073; - t['sabengali'] = 0x09B8; - t['sacute'] = 0x015B; - t['sacutedotaccent'] = 0x1E65; - t['sadarabic'] = 0x0635; - t['sadeva'] = 0x0938; - t['sadfinalarabic'] = 0xFEBA; - t['sadinitialarabic'] = 0xFEBB; - t['sadmedialarabic'] = 0xFEBC; - t['sagujarati'] = 0x0AB8; - t['sagurmukhi'] = 0x0A38; - t['sahiragana'] = 0x3055; - t['sakatakana'] = 0x30B5; - t['sakatakanahalfwidth'] = 0xFF7B; - t['sallallahoualayhewasallamarabic'] = 0xFDFA; - t['samekh'] = 0x05E1; - t['samekhdagesh'] = 0xFB41; - t['samekhdageshhebrew'] = 0xFB41; - t['samekhhebrew'] = 0x05E1; - t['saraaathai'] = 0x0E32; - t['saraaethai'] = 0x0E41; - t['saraaimaimalaithai'] = 0x0E44; - t['saraaimaimuanthai'] = 0x0E43; - t['saraamthai'] = 0x0E33; - t['saraathai'] = 0x0E30; - t['saraethai'] = 0x0E40; - t['saraiileftthai'] = 0xF886; - t['saraiithai'] = 0x0E35; - t['saraileftthai'] = 0xF885; - t['saraithai'] = 0x0E34; - t['saraothai'] = 0x0E42; - t['saraueeleftthai'] = 0xF888; - t['saraueethai'] = 0x0E37; - t['saraueleftthai'] = 0xF887; - t['sarauethai'] = 0x0E36; - t['sarauthai'] = 0x0E38; - t['sarauuthai'] = 0x0E39; - t['sbopomofo'] = 0x3119; - t['scaron'] = 0x0161; - t['scarondotaccent'] = 0x1E67; - t['scedilla'] = 0x015F; - t['schwa'] = 0x0259; - t['schwacyrillic'] = 0x04D9; - t['schwadieresiscyrillic'] = 0x04DB; - t['schwahook'] = 0x025A; - t['scircle'] = 0x24E2; - t['scircumflex'] = 0x015D; - t['scommaaccent'] = 0x0219; - t['sdotaccent'] = 0x1E61; - t['sdotbelow'] = 0x1E63; - t['sdotbelowdotaccent'] = 0x1E69; - t['seagullbelowcmb'] = 0x033C; - t['second'] = 0x2033; - t['secondtonechinese'] = 0x02CA; - t['section'] = 0x00A7; - t['seenarabic'] = 0x0633; - t['seenfinalarabic'] = 0xFEB2; - t['seeninitialarabic'] = 0xFEB3; - t['seenmedialarabic'] = 0xFEB4; - t['segol'] = 0x05B6; - t['segol13'] = 0x05B6; - t['segol1f'] = 0x05B6; - t['segol2c'] = 0x05B6; - t['segolhebrew'] = 0x05B6; - t['segolnarrowhebrew'] = 0x05B6; - t['segolquarterhebrew'] = 0x05B6; - t['segoltahebrew'] = 0x0592; - t['segolwidehebrew'] = 0x05B6; - t['seharmenian'] = 0x057D; - t['sehiragana'] = 0x305B; - t['sekatakana'] = 0x30BB; - t['sekatakanahalfwidth'] = 0xFF7E; - t['semicolon'] = 0x003B; - t['semicolonarabic'] = 0x061B; - t['semicolonmonospace'] = 0xFF1B; - t['semicolonsmall'] = 0xFE54; - t['semivoicedmarkkana'] = 0x309C; - t['semivoicedmarkkanahalfwidth'] = 0xFF9F; - t['sentisquare'] = 0x3322; - t['sentosquare'] = 0x3323; - t['seven'] = 0x0037; - t['sevenarabic'] = 0x0667; - t['sevenbengali'] = 0x09ED; - t['sevencircle'] = 0x2466; - t['sevencircleinversesansserif'] = 0x2790; - t['sevendeva'] = 0x096D; - t['seveneighths'] = 0x215E; - t['sevengujarati'] = 0x0AED; - t['sevengurmukhi'] = 0x0A6D; - t['sevenhackarabic'] = 0x0667; - t['sevenhangzhou'] = 0x3027; - t['sevenideographicparen'] = 0x3226; - t['seveninferior'] = 0x2087; - t['sevenmonospace'] = 0xFF17; - t['sevenoldstyle'] = 0xF737; - t['sevenparen'] = 0x247A; - t['sevenperiod'] = 0x248E; - t['sevenpersian'] = 0x06F7; - t['sevenroman'] = 0x2176; - t['sevensuperior'] = 0x2077; - t['seventeencircle'] = 0x2470; - t['seventeenparen'] = 0x2484; - t['seventeenperiod'] = 0x2498; - t['seventhai'] = 0x0E57; - t['sfthyphen'] = 0x00AD; - t['shaarmenian'] = 0x0577; - t['shabengali'] = 0x09B6; - t['shacyrillic'] = 0x0448; - t['shaddaarabic'] = 0x0651; - t['shaddadammaarabic'] = 0xFC61; - t['shaddadammatanarabic'] = 0xFC5E; - t['shaddafathaarabic'] = 0xFC60; - t['shaddakasraarabic'] = 0xFC62; - t['shaddakasratanarabic'] = 0xFC5F; - t['shade'] = 0x2592; - t['shadedark'] = 0x2593; - t['shadelight'] = 0x2591; - t['shademedium'] = 0x2592; - t['shadeva'] = 0x0936; - t['shagujarati'] = 0x0AB6; - t['shagurmukhi'] = 0x0A36; - t['shalshelethebrew'] = 0x0593; - t['shbopomofo'] = 0x3115; - t['shchacyrillic'] = 0x0449; - t['sheenarabic'] = 0x0634; - t['sheenfinalarabic'] = 0xFEB6; - t['sheeninitialarabic'] = 0xFEB7; - t['sheenmedialarabic'] = 0xFEB8; - t['sheicoptic'] = 0x03E3; - t['sheqel'] = 0x20AA; - t['sheqelhebrew'] = 0x20AA; - t['sheva'] = 0x05B0; - t['sheva115'] = 0x05B0; - t['sheva15'] = 0x05B0; - t['sheva22'] = 0x05B0; - t['sheva2e'] = 0x05B0; - t['shevahebrew'] = 0x05B0; - t['shevanarrowhebrew'] = 0x05B0; - t['shevaquarterhebrew'] = 0x05B0; - t['shevawidehebrew'] = 0x05B0; - t['shhacyrillic'] = 0x04BB; - t['shimacoptic'] = 0x03ED; - t['shin'] = 0x05E9; - t['shindagesh'] = 0xFB49; - t['shindageshhebrew'] = 0xFB49; - t['shindageshshindot'] = 0xFB2C; - t['shindageshshindothebrew'] = 0xFB2C; - t['shindageshsindot'] = 0xFB2D; - t['shindageshsindothebrew'] = 0xFB2D; - t['shindothebrew'] = 0x05C1; - t['shinhebrew'] = 0x05E9; - t['shinshindot'] = 0xFB2A; - t['shinshindothebrew'] = 0xFB2A; - t['shinsindot'] = 0xFB2B; - t['shinsindothebrew'] = 0xFB2B; - t['shook'] = 0x0282; - t['sigma'] = 0x03C3; - t['sigma1'] = 0x03C2; - t['sigmafinal'] = 0x03C2; - t['sigmalunatesymbolgreek'] = 0x03F2; - t['sihiragana'] = 0x3057; - t['sikatakana'] = 0x30B7; - t['sikatakanahalfwidth'] = 0xFF7C; - t['siluqhebrew'] = 0x05BD; - t['siluqlefthebrew'] = 0x05BD; - t['similar'] = 0x223C; - t['sindothebrew'] = 0x05C2; - t['siosacirclekorean'] = 0x3274; - t['siosaparenkorean'] = 0x3214; - t['sioscieuckorean'] = 0x317E; - t['sioscirclekorean'] = 0x3266; - t['sioskiyeokkorean'] = 0x317A; - t['sioskorean'] = 0x3145; - t['siosnieunkorean'] = 0x317B; - t['siosparenkorean'] = 0x3206; - t['siospieupkorean'] = 0x317D; - t['siostikeutkorean'] = 0x317C; - t['six'] = 0x0036; - t['sixarabic'] = 0x0666; - t['sixbengali'] = 0x09EC; - t['sixcircle'] = 0x2465; - t['sixcircleinversesansserif'] = 0x278F; - t['sixdeva'] = 0x096C; - t['sixgujarati'] = 0x0AEC; - t['sixgurmukhi'] = 0x0A6C; - t['sixhackarabic'] = 0x0666; - t['sixhangzhou'] = 0x3026; - t['sixideographicparen'] = 0x3225; - t['sixinferior'] = 0x2086; - t['sixmonospace'] = 0xFF16; - t['sixoldstyle'] = 0xF736; - t['sixparen'] = 0x2479; - t['sixperiod'] = 0x248D; - t['sixpersian'] = 0x06F6; - t['sixroman'] = 0x2175; - t['sixsuperior'] = 0x2076; - t['sixteencircle'] = 0x246F; - t['sixteencurrencydenominatorbengali'] = 0x09F9; - t['sixteenparen'] = 0x2483; - t['sixteenperiod'] = 0x2497; - t['sixthai'] = 0x0E56; - t['slash'] = 0x002F; - t['slashmonospace'] = 0xFF0F; - t['slong'] = 0x017F; - t['slongdotaccent'] = 0x1E9B; - t['smileface'] = 0x263A; - t['smonospace'] = 0xFF53; - t['sofpasuqhebrew'] = 0x05C3; - t['softhyphen'] = 0x00AD; - t['softsigncyrillic'] = 0x044C; - t['sohiragana'] = 0x305D; - t['sokatakana'] = 0x30BD; - t['sokatakanahalfwidth'] = 0xFF7F; - t['soliduslongoverlaycmb'] = 0x0338; - t['solidusshortoverlaycmb'] = 0x0337; - t['sorusithai'] = 0x0E29; - t['sosalathai'] = 0x0E28; - t['sosothai'] = 0x0E0B; - t['sosuathai'] = 0x0E2A; - t['space'] = 0x0020; - t['spacehackarabic'] = 0x0020; - t['spade'] = 0x2660; - t['spadesuitblack'] = 0x2660; - t['spadesuitwhite'] = 0x2664; - t['sparen'] = 0x24AE; - t['squarebelowcmb'] = 0x033B; - t['squarecc'] = 0x33C4; - t['squarecm'] = 0x339D; - t['squarediagonalcrosshatchfill'] = 0x25A9; - t['squarehorizontalfill'] = 0x25A4; - t['squarekg'] = 0x338F; - t['squarekm'] = 0x339E; - t['squarekmcapital'] = 0x33CE; - t['squareln'] = 0x33D1; - t['squarelog'] = 0x33D2; - t['squaremg'] = 0x338E; - t['squaremil'] = 0x33D5; - t['squaremm'] = 0x339C; - t['squaremsquared'] = 0x33A1; - t['squareorthogonalcrosshatchfill'] = 0x25A6; - t['squareupperlefttolowerrightfill'] = 0x25A7; - t['squareupperrighttolowerleftfill'] = 0x25A8; - t['squareverticalfill'] = 0x25A5; - t['squarewhitewithsmallblack'] = 0x25A3; - t['srsquare'] = 0x33DB; - t['ssabengali'] = 0x09B7; - t['ssadeva'] = 0x0937; - t['ssagujarati'] = 0x0AB7; - t['ssangcieuckorean'] = 0x3149; - t['ssanghieuhkorean'] = 0x3185; - t['ssangieungkorean'] = 0x3180; - t['ssangkiyeokkorean'] = 0x3132; - t['ssangnieunkorean'] = 0x3165; - t['ssangpieupkorean'] = 0x3143; - t['ssangsioskorean'] = 0x3146; - t['ssangtikeutkorean'] = 0x3138; - t['ssuperior'] = 0xF6F2; - t['sterling'] = 0x00A3; - t['sterlingmonospace'] = 0xFFE1; - t['strokelongoverlaycmb'] = 0x0336; - t['strokeshortoverlaycmb'] = 0x0335; - t['subset'] = 0x2282; - t['subsetnotequal'] = 0x228A; - t['subsetorequal'] = 0x2286; - t['succeeds'] = 0x227B; - t['suchthat'] = 0x220B; - t['suhiragana'] = 0x3059; - t['sukatakana'] = 0x30B9; - t['sukatakanahalfwidth'] = 0xFF7D; - t['sukunarabic'] = 0x0652; - t['summation'] = 0x2211; - t['sun'] = 0x263C; - t['superset'] = 0x2283; - t['supersetnotequal'] = 0x228B; - t['supersetorequal'] = 0x2287; - t['svsquare'] = 0x33DC; - t['syouwaerasquare'] = 0x337C; - t['t'] = 0x0074; - t['tabengali'] = 0x09A4; - t['tackdown'] = 0x22A4; - t['tackleft'] = 0x22A3; - t['tadeva'] = 0x0924; - t['tagujarati'] = 0x0AA4; - t['tagurmukhi'] = 0x0A24; - t['taharabic'] = 0x0637; - t['tahfinalarabic'] = 0xFEC2; - t['tahinitialarabic'] = 0xFEC3; - t['tahiragana'] = 0x305F; - t['tahmedialarabic'] = 0xFEC4; - t['taisyouerasquare'] = 0x337D; - t['takatakana'] = 0x30BF; - t['takatakanahalfwidth'] = 0xFF80; - t['tatweelarabic'] = 0x0640; - t['tau'] = 0x03C4; - t['tav'] = 0x05EA; - t['tavdages'] = 0xFB4A; - t['tavdagesh'] = 0xFB4A; - t['tavdageshhebrew'] = 0xFB4A; - t['tavhebrew'] = 0x05EA; - t['tbar'] = 0x0167; - t['tbopomofo'] = 0x310A; - t['tcaron'] = 0x0165; - t['tccurl'] = 0x02A8; - t['tcedilla'] = 0x0163; - t['tcheharabic'] = 0x0686; - t['tchehfinalarabic'] = 0xFB7B; - t['tchehinitialarabic'] = 0xFB7C; - t['tchehmedialarabic'] = 0xFB7D; - t['tcircle'] = 0x24E3; - t['tcircumflexbelow'] = 0x1E71; - t['tcommaaccent'] = 0x0163; - t['tdieresis'] = 0x1E97; - t['tdotaccent'] = 0x1E6B; - t['tdotbelow'] = 0x1E6D; - t['tecyrillic'] = 0x0442; - t['tedescendercyrillic'] = 0x04AD; - t['teharabic'] = 0x062A; - t['tehfinalarabic'] = 0xFE96; - t['tehhahinitialarabic'] = 0xFCA2; - t['tehhahisolatedarabic'] = 0xFC0C; - t['tehinitialarabic'] = 0xFE97; - t['tehiragana'] = 0x3066; - t['tehjeeminitialarabic'] = 0xFCA1; - t['tehjeemisolatedarabic'] = 0xFC0B; - t['tehmarbutaarabic'] = 0x0629; - t['tehmarbutafinalarabic'] = 0xFE94; - t['tehmedialarabic'] = 0xFE98; - t['tehmeeminitialarabic'] = 0xFCA4; - t['tehmeemisolatedarabic'] = 0xFC0E; - t['tehnoonfinalarabic'] = 0xFC73; - t['tekatakana'] = 0x30C6; - t['tekatakanahalfwidth'] = 0xFF83; - t['telephone'] = 0x2121; - t['telephoneblack'] = 0x260E; - t['telishagedolahebrew'] = 0x05A0; - t['telishaqetanahebrew'] = 0x05A9; - t['tencircle'] = 0x2469; - t['tenideographicparen'] = 0x3229; - t['tenparen'] = 0x247D; - t['tenperiod'] = 0x2491; - t['tenroman'] = 0x2179; - t['tesh'] = 0x02A7; - t['tet'] = 0x05D8; - t['tetdagesh'] = 0xFB38; - t['tetdageshhebrew'] = 0xFB38; - t['tethebrew'] = 0x05D8; - t['tetsecyrillic'] = 0x04B5; - t['tevirhebrew'] = 0x059B; - t['tevirlefthebrew'] = 0x059B; - t['thabengali'] = 0x09A5; - t['thadeva'] = 0x0925; - t['thagujarati'] = 0x0AA5; - t['thagurmukhi'] = 0x0A25; - t['thalarabic'] = 0x0630; - t['thalfinalarabic'] = 0xFEAC; - t['thanthakhatlowleftthai'] = 0xF898; - t['thanthakhatlowrightthai'] = 0xF897; - t['thanthakhatthai'] = 0x0E4C; - t['thanthakhatupperleftthai'] = 0xF896; - t['theharabic'] = 0x062B; - t['thehfinalarabic'] = 0xFE9A; - t['thehinitialarabic'] = 0xFE9B; - t['thehmedialarabic'] = 0xFE9C; - t['thereexists'] = 0x2203; - t['therefore'] = 0x2234; - t['theta'] = 0x03B8; - t['theta1'] = 0x03D1; - t['thetasymbolgreek'] = 0x03D1; - t['thieuthacirclekorean'] = 0x3279; - t['thieuthaparenkorean'] = 0x3219; - t['thieuthcirclekorean'] = 0x326B; - t['thieuthkorean'] = 0x314C; - t['thieuthparenkorean'] = 0x320B; - t['thirteencircle'] = 0x246C; - t['thirteenparen'] = 0x2480; - t['thirteenperiod'] = 0x2494; - t['thonangmonthothai'] = 0x0E11; - t['thook'] = 0x01AD; - t['thophuthaothai'] = 0x0E12; - t['thorn'] = 0x00FE; - t['thothahanthai'] = 0x0E17; - t['thothanthai'] = 0x0E10; - t['thothongthai'] = 0x0E18; - t['thothungthai'] = 0x0E16; - t['thousandcyrillic'] = 0x0482; - t['thousandsseparatorarabic'] = 0x066C; - t['thousandsseparatorpersian'] = 0x066C; - t['three'] = 0x0033; - t['threearabic'] = 0x0663; - t['threebengali'] = 0x09E9; - t['threecircle'] = 0x2462; - t['threecircleinversesansserif'] = 0x278C; - t['threedeva'] = 0x0969; - t['threeeighths'] = 0x215C; - t['threegujarati'] = 0x0AE9; - t['threegurmukhi'] = 0x0A69; - t['threehackarabic'] = 0x0663; - t['threehangzhou'] = 0x3023; - t['threeideographicparen'] = 0x3222; - t['threeinferior'] = 0x2083; - t['threemonospace'] = 0xFF13; - t['threenumeratorbengali'] = 0x09F6; - t['threeoldstyle'] = 0xF733; - t['threeparen'] = 0x2476; - t['threeperiod'] = 0x248A; - t['threepersian'] = 0x06F3; - t['threequarters'] = 0x00BE; - t['threequartersemdash'] = 0xF6DE; - t['threeroman'] = 0x2172; - t['threesuperior'] = 0x00B3; - t['threethai'] = 0x0E53; - t['thzsquare'] = 0x3394; - t['tihiragana'] = 0x3061; - t['tikatakana'] = 0x30C1; - t['tikatakanahalfwidth'] = 0xFF81; - t['tikeutacirclekorean'] = 0x3270; - t['tikeutaparenkorean'] = 0x3210; - t['tikeutcirclekorean'] = 0x3262; - t['tikeutkorean'] = 0x3137; - t['tikeutparenkorean'] = 0x3202; - t['tilde'] = 0x02DC; - t['tildebelowcmb'] = 0x0330; - t['tildecmb'] = 0x0303; - t['tildecomb'] = 0x0303; - t['tildedoublecmb'] = 0x0360; - t['tildeoperator'] = 0x223C; - t['tildeoverlaycmb'] = 0x0334; - t['tildeverticalcmb'] = 0x033E; - t['timescircle'] = 0x2297; - t['tipehahebrew'] = 0x0596; - t['tipehalefthebrew'] = 0x0596; - t['tippigurmukhi'] = 0x0A70; - t['titlocyrilliccmb'] = 0x0483; - t['tiwnarmenian'] = 0x057F; - t['tlinebelow'] = 0x1E6F; - t['tmonospace'] = 0xFF54; - t['toarmenian'] = 0x0569; - t['tohiragana'] = 0x3068; - t['tokatakana'] = 0x30C8; - t['tokatakanahalfwidth'] = 0xFF84; - t['tonebarextrahighmod'] = 0x02E5; - t['tonebarextralowmod'] = 0x02E9; - t['tonebarhighmod'] = 0x02E6; - t['tonebarlowmod'] = 0x02E8; - t['tonebarmidmod'] = 0x02E7; - t['tonefive'] = 0x01BD; - t['tonesix'] = 0x0185; - t['tonetwo'] = 0x01A8; - t['tonos'] = 0x0384; - t['tonsquare'] = 0x3327; - t['topatakthai'] = 0x0E0F; - t['tortoiseshellbracketleft'] = 0x3014; - t['tortoiseshellbracketleftsmall'] = 0xFE5D; - t['tortoiseshellbracketleftvertical'] = 0xFE39; - t['tortoiseshellbracketright'] = 0x3015; - t['tortoiseshellbracketrightsmall'] = 0xFE5E; - t['tortoiseshellbracketrightvertical'] = 0xFE3A; - t['totaothai'] = 0x0E15; - t['tpalatalhook'] = 0x01AB; - t['tparen'] = 0x24AF; - t['trademark'] = 0x2122; - t['trademarksans'] = 0xF8EA; - t['trademarkserif'] = 0xF6DB; - t['tretroflexhook'] = 0x0288; - t['triagdn'] = 0x25BC; - t['triaglf'] = 0x25C4; - t['triagrt'] = 0x25BA; - t['triagup'] = 0x25B2; - t['ts'] = 0x02A6; - t['tsadi'] = 0x05E6; - t['tsadidagesh'] = 0xFB46; - t['tsadidageshhebrew'] = 0xFB46; - t['tsadihebrew'] = 0x05E6; - t['tsecyrillic'] = 0x0446; - t['tsere'] = 0x05B5; - t['tsere12'] = 0x05B5; - t['tsere1e'] = 0x05B5; - t['tsere2b'] = 0x05B5; - t['tserehebrew'] = 0x05B5; - t['tserenarrowhebrew'] = 0x05B5; - t['tserequarterhebrew'] = 0x05B5; - t['tserewidehebrew'] = 0x05B5; - t['tshecyrillic'] = 0x045B; - t['tsuperior'] = 0xF6F3; - t['ttabengali'] = 0x099F; - t['ttadeva'] = 0x091F; - t['ttagujarati'] = 0x0A9F; - t['ttagurmukhi'] = 0x0A1F; - t['tteharabic'] = 0x0679; - t['ttehfinalarabic'] = 0xFB67; - t['ttehinitialarabic'] = 0xFB68; - t['ttehmedialarabic'] = 0xFB69; - t['tthabengali'] = 0x09A0; - t['tthadeva'] = 0x0920; - t['tthagujarati'] = 0x0AA0; - t['tthagurmukhi'] = 0x0A20; - t['tturned'] = 0x0287; - t['tuhiragana'] = 0x3064; - t['tukatakana'] = 0x30C4; - t['tukatakanahalfwidth'] = 0xFF82; - t['tusmallhiragana'] = 0x3063; - t['tusmallkatakana'] = 0x30C3; - t['tusmallkatakanahalfwidth'] = 0xFF6F; - t['twelvecircle'] = 0x246B; - t['twelveparen'] = 0x247F; - t['twelveperiod'] = 0x2493; - t['twelveroman'] = 0x217B; - t['twentycircle'] = 0x2473; - t['twentyhangzhou'] = 0x5344; - t['twentyparen'] = 0x2487; - t['twentyperiod'] = 0x249B; - t['two'] = 0x0032; - t['twoarabic'] = 0x0662; - t['twobengali'] = 0x09E8; - t['twocircle'] = 0x2461; - t['twocircleinversesansserif'] = 0x278B; - t['twodeva'] = 0x0968; - t['twodotenleader'] = 0x2025; - t['twodotleader'] = 0x2025; - t['twodotleadervertical'] = 0xFE30; - t['twogujarati'] = 0x0AE8; - t['twogurmukhi'] = 0x0A68; - t['twohackarabic'] = 0x0662; - t['twohangzhou'] = 0x3022; - t['twoideographicparen'] = 0x3221; - t['twoinferior'] = 0x2082; - t['twomonospace'] = 0xFF12; - t['twonumeratorbengali'] = 0x09F5; - t['twooldstyle'] = 0xF732; - t['twoparen'] = 0x2475; - t['twoperiod'] = 0x2489; - t['twopersian'] = 0x06F2; - t['tworoman'] = 0x2171; - t['twostroke'] = 0x01BB; - t['twosuperior'] = 0x00B2; - t['twothai'] = 0x0E52; - t['twothirds'] = 0x2154; - t['u'] = 0x0075; - t['uacute'] = 0x00FA; - t['ubar'] = 0x0289; - t['ubengali'] = 0x0989; - t['ubopomofo'] = 0x3128; - t['ubreve'] = 0x016D; - t['ucaron'] = 0x01D4; - t['ucircle'] = 0x24E4; - t['ucircumflex'] = 0x00FB; - t['ucircumflexbelow'] = 0x1E77; - t['ucyrillic'] = 0x0443; - t['udattadeva'] = 0x0951; - t['udblacute'] = 0x0171; - t['udblgrave'] = 0x0215; - t['udeva'] = 0x0909; - t['udieresis'] = 0x00FC; - t['udieresisacute'] = 0x01D8; - t['udieresisbelow'] = 0x1E73; - t['udieresiscaron'] = 0x01DA; - t['udieresiscyrillic'] = 0x04F1; - t['udieresisgrave'] = 0x01DC; - t['udieresismacron'] = 0x01D6; - t['udotbelow'] = 0x1EE5; - t['ugrave'] = 0x00F9; - t['ugujarati'] = 0x0A89; - t['ugurmukhi'] = 0x0A09; - t['uhiragana'] = 0x3046; - t['uhookabove'] = 0x1EE7; - t['uhorn'] = 0x01B0; - t['uhornacute'] = 0x1EE9; - t['uhorndotbelow'] = 0x1EF1; - t['uhorngrave'] = 0x1EEB; - t['uhornhookabove'] = 0x1EED; - t['uhorntilde'] = 0x1EEF; - t['uhungarumlaut'] = 0x0171; - t['uhungarumlautcyrillic'] = 0x04F3; - t['uinvertedbreve'] = 0x0217; - t['ukatakana'] = 0x30A6; - t['ukatakanahalfwidth'] = 0xFF73; - t['ukcyrillic'] = 0x0479; - t['ukorean'] = 0x315C; - t['umacron'] = 0x016B; - t['umacroncyrillic'] = 0x04EF; - t['umacrondieresis'] = 0x1E7B; - t['umatragurmukhi'] = 0x0A41; - t['umonospace'] = 0xFF55; - t['underscore'] = 0x005F; - t['underscoredbl'] = 0x2017; - t['underscoremonospace'] = 0xFF3F; - t['underscorevertical'] = 0xFE33; - t['underscorewavy'] = 0xFE4F; - t['union'] = 0x222A; - t['universal'] = 0x2200; - t['uogonek'] = 0x0173; - t['uparen'] = 0x24B0; - t['upblock'] = 0x2580; - t['upperdothebrew'] = 0x05C4; - t['upsilon'] = 0x03C5; - t['upsilondieresis'] = 0x03CB; - t['upsilondieresistonos'] = 0x03B0; - t['upsilonlatin'] = 0x028A; - t['upsilontonos'] = 0x03CD; - t['uptackbelowcmb'] = 0x031D; - t['uptackmod'] = 0x02D4; - t['uragurmukhi'] = 0x0A73; - t['uring'] = 0x016F; - t['ushortcyrillic'] = 0x045E; - t['usmallhiragana'] = 0x3045; - t['usmallkatakana'] = 0x30A5; - t['usmallkatakanahalfwidth'] = 0xFF69; - t['ustraightcyrillic'] = 0x04AF; - t['ustraightstrokecyrillic'] = 0x04B1; - t['utilde'] = 0x0169; - t['utildeacute'] = 0x1E79; - t['utildebelow'] = 0x1E75; - t['uubengali'] = 0x098A; - t['uudeva'] = 0x090A; - t['uugujarati'] = 0x0A8A; - t['uugurmukhi'] = 0x0A0A; - t['uumatragurmukhi'] = 0x0A42; - t['uuvowelsignbengali'] = 0x09C2; - t['uuvowelsigndeva'] = 0x0942; - t['uuvowelsigngujarati'] = 0x0AC2; - t['uvowelsignbengali'] = 0x09C1; - t['uvowelsigndeva'] = 0x0941; - t['uvowelsigngujarati'] = 0x0AC1; - t['v'] = 0x0076; - t['vadeva'] = 0x0935; - t['vagujarati'] = 0x0AB5; - t['vagurmukhi'] = 0x0A35; - t['vakatakana'] = 0x30F7; - t['vav'] = 0x05D5; - t['vavdagesh'] = 0xFB35; - t['vavdagesh65'] = 0xFB35; - t['vavdageshhebrew'] = 0xFB35; - t['vavhebrew'] = 0x05D5; - t['vavholam'] = 0xFB4B; - t['vavholamhebrew'] = 0xFB4B; - t['vavvavhebrew'] = 0x05F0; - t['vavyodhebrew'] = 0x05F1; - t['vcircle'] = 0x24E5; - t['vdotbelow'] = 0x1E7F; - t['vecyrillic'] = 0x0432; - t['veharabic'] = 0x06A4; - t['vehfinalarabic'] = 0xFB6B; - t['vehinitialarabic'] = 0xFB6C; - t['vehmedialarabic'] = 0xFB6D; - t['vekatakana'] = 0x30F9; - t['venus'] = 0x2640; - t['verticalbar'] = 0x007C; - t['verticallineabovecmb'] = 0x030D; - t['verticallinebelowcmb'] = 0x0329; - t['verticallinelowmod'] = 0x02CC; - t['verticallinemod'] = 0x02C8; - t['vewarmenian'] = 0x057E; - t['vhook'] = 0x028B; - t['vikatakana'] = 0x30F8; - t['viramabengali'] = 0x09CD; - t['viramadeva'] = 0x094D; - t['viramagujarati'] = 0x0ACD; - t['visargabengali'] = 0x0983; - t['visargadeva'] = 0x0903; - t['visargagujarati'] = 0x0A83; - t['vmonospace'] = 0xFF56; - t['voarmenian'] = 0x0578; - t['voicediterationhiragana'] = 0x309E; - t['voicediterationkatakana'] = 0x30FE; - t['voicedmarkkana'] = 0x309B; - t['voicedmarkkanahalfwidth'] = 0xFF9E; - t['vokatakana'] = 0x30FA; - t['vparen'] = 0x24B1; - t['vtilde'] = 0x1E7D; - t['vturned'] = 0x028C; - t['vuhiragana'] = 0x3094; - t['vukatakana'] = 0x30F4; - t['w'] = 0x0077; - t['wacute'] = 0x1E83; - t['waekorean'] = 0x3159; - t['wahiragana'] = 0x308F; - t['wakatakana'] = 0x30EF; - t['wakatakanahalfwidth'] = 0xFF9C; - t['wakorean'] = 0x3158; - t['wasmallhiragana'] = 0x308E; - t['wasmallkatakana'] = 0x30EE; - t['wattosquare'] = 0x3357; - t['wavedash'] = 0x301C; - t['wavyunderscorevertical'] = 0xFE34; - t['wawarabic'] = 0x0648; - t['wawfinalarabic'] = 0xFEEE; - t['wawhamzaabovearabic'] = 0x0624; - t['wawhamzaabovefinalarabic'] = 0xFE86; - t['wbsquare'] = 0x33DD; - t['wcircle'] = 0x24E6; - t['wcircumflex'] = 0x0175; - t['wdieresis'] = 0x1E85; - t['wdotaccent'] = 0x1E87; - t['wdotbelow'] = 0x1E89; - t['wehiragana'] = 0x3091; - t['weierstrass'] = 0x2118; - t['wekatakana'] = 0x30F1; - t['wekorean'] = 0x315E; - t['weokorean'] = 0x315D; - t['wgrave'] = 0x1E81; - t['whitebullet'] = 0x25E6; - t['whitecircle'] = 0x25CB; - t['whitecircleinverse'] = 0x25D9; - t['whitecornerbracketleft'] = 0x300E; - t['whitecornerbracketleftvertical'] = 0xFE43; - t['whitecornerbracketright'] = 0x300F; - t['whitecornerbracketrightvertical'] = 0xFE44; - t['whitediamond'] = 0x25C7; - t['whitediamondcontainingblacksmalldiamond'] = 0x25C8; - t['whitedownpointingsmalltriangle'] = 0x25BF; - t['whitedownpointingtriangle'] = 0x25BD; - t['whiteleftpointingsmalltriangle'] = 0x25C3; - t['whiteleftpointingtriangle'] = 0x25C1; - t['whitelenticularbracketleft'] = 0x3016; - t['whitelenticularbracketright'] = 0x3017; - t['whiterightpointingsmalltriangle'] = 0x25B9; - t['whiterightpointingtriangle'] = 0x25B7; - t['whitesmallsquare'] = 0x25AB; - t['whitesmilingface'] = 0x263A; - t['whitesquare'] = 0x25A1; - t['whitestar'] = 0x2606; - t['whitetelephone'] = 0x260F; - t['whitetortoiseshellbracketleft'] = 0x3018; - t['whitetortoiseshellbracketright'] = 0x3019; - t['whiteuppointingsmalltriangle'] = 0x25B5; - t['whiteuppointingtriangle'] = 0x25B3; - t['wihiragana'] = 0x3090; - t['wikatakana'] = 0x30F0; - t['wikorean'] = 0x315F; - t['wmonospace'] = 0xFF57; - t['wohiragana'] = 0x3092; - t['wokatakana'] = 0x30F2; - t['wokatakanahalfwidth'] = 0xFF66; - t['won'] = 0x20A9; - t['wonmonospace'] = 0xFFE6; - t['wowaenthai'] = 0x0E27; - t['wparen'] = 0x24B2; - t['wring'] = 0x1E98; - t['wsuperior'] = 0x02B7; - t['wturned'] = 0x028D; - t['wynn'] = 0x01BF; - t['x'] = 0x0078; - t['xabovecmb'] = 0x033D; - t['xbopomofo'] = 0x3112; - t['xcircle'] = 0x24E7; - t['xdieresis'] = 0x1E8D; - t['xdotaccent'] = 0x1E8B; - t['xeharmenian'] = 0x056D; - t['xi'] = 0x03BE; - t['xmonospace'] = 0xFF58; - t['xparen'] = 0x24B3; - t['xsuperior'] = 0x02E3; - t['y'] = 0x0079; - t['yaadosquare'] = 0x334E; - t['yabengali'] = 0x09AF; - t['yacute'] = 0x00FD; - t['yadeva'] = 0x092F; - t['yaekorean'] = 0x3152; - t['yagujarati'] = 0x0AAF; - t['yagurmukhi'] = 0x0A2F; - t['yahiragana'] = 0x3084; - t['yakatakana'] = 0x30E4; - t['yakatakanahalfwidth'] = 0xFF94; - t['yakorean'] = 0x3151; - t['yamakkanthai'] = 0x0E4E; - t['yasmallhiragana'] = 0x3083; - t['yasmallkatakana'] = 0x30E3; - t['yasmallkatakanahalfwidth'] = 0xFF6C; - t['yatcyrillic'] = 0x0463; - t['ycircle'] = 0x24E8; - t['ycircumflex'] = 0x0177; - t['ydieresis'] = 0x00FF; - t['ydotaccent'] = 0x1E8F; - t['ydotbelow'] = 0x1EF5; - t['yeharabic'] = 0x064A; - t['yehbarreearabic'] = 0x06D2; - t['yehbarreefinalarabic'] = 0xFBAF; - t['yehfinalarabic'] = 0xFEF2; - t['yehhamzaabovearabic'] = 0x0626; - t['yehhamzaabovefinalarabic'] = 0xFE8A; - t['yehhamzaaboveinitialarabic'] = 0xFE8B; - t['yehhamzaabovemedialarabic'] = 0xFE8C; - t['yehinitialarabic'] = 0xFEF3; - t['yehmedialarabic'] = 0xFEF4; - t['yehmeeminitialarabic'] = 0xFCDD; - t['yehmeemisolatedarabic'] = 0xFC58; - t['yehnoonfinalarabic'] = 0xFC94; - t['yehthreedotsbelowarabic'] = 0x06D1; - t['yekorean'] = 0x3156; - t['yen'] = 0x00A5; - t['yenmonospace'] = 0xFFE5; - t['yeokorean'] = 0x3155; - t['yeorinhieuhkorean'] = 0x3186; - t['yerahbenyomohebrew'] = 0x05AA; - t['yerahbenyomolefthebrew'] = 0x05AA; - t['yericyrillic'] = 0x044B; - t['yerudieresiscyrillic'] = 0x04F9; - t['yesieungkorean'] = 0x3181; - t['yesieungpansioskorean'] = 0x3183; - t['yesieungsioskorean'] = 0x3182; - t['yetivhebrew'] = 0x059A; - t['ygrave'] = 0x1EF3; - t['yhook'] = 0x01B4; - t['yhookabove'] = 0x1EF7; - t['yiarmenian'] = 0x0575; - t['yicyrillic'] = 0x0457; - t['yikorean'] = 0x3162; - t['yinyang'] = 0x262F; - t['yiwnarmenian'] = 0x0582; - t['ymonospace'] = 0xFF59; - t['yod'] = 0x05D9; - t['yoddagesh'] = 0xFB39; - t['yoddageshhebrew'] = 0xFB39; - t['yodhebrew'] = 0x05D9; - t['yodyodhebrew'] = 0x05F2; - t['yodyodpatahhebrew'] = 0xFB1F; - t['yohiragana'] = 0x3088; - t['yoikorean'] = 0x3189; - t['yokatakana'] = 0x30E8; - t['yokatakanahalfwidth'] = 0xFF96; - t['yokorean'] = 0x315B; - t['yosmallhiragana'] = 0x3087; - t['yosmallkatakana'] = 0x30E7; - t['yosmallkatakanahalfwidth'] = 0xFF6E; - t['yotgreek'] = 0x03F3; - t['yoyaekorean'] = 0x3188; - t['yoyakorean'] = 0x3187; - t['yoyakthai'] = 0x0E22; - t['yoyingthai'] = 0x0E0D; - t['yparen'] = 0x24B4; - t['ypogegrammeni'] = 0x037A; - t['ypogegrammenigreekcmb'] = 0x0345; - t['yr'] = 0x01A6; - t['yring'] = 0x1E99; - t['ysuperior'] = 0x02B8; - t['ytilde'] = 0x1EF9; - t['yturned'] = 0x028E; - t['yuhiragana'] = 0x3086; - t['yuikorean'] = 0x318C; - t['yukatakana'] = 0x30E6; - t['yukatakanahalfwidth'] = 0xFF95; - t['yukorean'] = 0x3160; - t['yusbigcyrillic'] = 0x046B; - t['yusbigiotifiedcyrillic'] = 0x046D; - t['yuslittlecyrillic'] = 0x0467; - t['yuslittleiotifiedcyrillic'] = 0x0469; - t['yusmallhiragana'] = 0x3085; - t['yusmallkatakana'] = 0x30E5; - t['yusmallkatakanahalfwidth'] = 0xFF6D; - t['yuyekorean'] = 0x318B; - t['yuyeokorean'] = 0x318A; - t['yyabengali'] = 0x09DF; - t['yyadeva'] = 0x095F; - t['z'] = 0x007A; - t['zaarmenian'] = 0x0566; - t['zacute'] = 0x017A; - t['zadeva'] = 0x095B; - t['zagurmukhi'] = 0x0A5B; - t['zaharabic'] = 0x0638; - t['zahfinalarabic'] = 0xFEC6; - t['zahinitialarabic'] = 0xFEC7; - t['zahiragana'] = 0x3056; - t['zahmedialarabic'] = 0xFEC8; - t['zainarabic'] = 0x0632; - t['zainfinalarabic'] = 0xFEB0; - t['zakatakana'] = 0x30B6; - t['zaqefgadolhebrew'] = 0x0595; - t['zaqefqatanhebrew'] = 0x0594; - t['zarqahebrew'] = 0x0598; - t['zayin'] = 0x05D6; - t['zayindagesh'] = 0xFB36; - t['zayindageshhebrew'] = 0xFB36; - t['zayinhebrew'] = 0x05D6; - t['zbopomofo'] = 0x3117; - t['zcaron'] = 0x017E; - t['zcircle'] = 0x24E9; - t['zcircumflex'] = 0x1E91; - t['zcurl'] = 0x0291; - t['zdot'] = 0x017C; - t['zdotaccent'] = 0x017C; - t['zdotbelow'] = 0x1E93; - t['zecyrillic'] = 0x0437; - t['zedescendercyrillic'] = 0x0499; - t['zedieresiscyrillic'] = 0x04DF; - t['zehiragana'] = 0x305C; - t['zekatakana'] = 0x30BC; - t['zero'] = 0x0030; - t['zeroarabic'] = 0x0660; - t['zerobengali'] = 0x09E6; - t['zerodeva'] = 0x0966; - t['zerogujarati'] = 0x0AE6; - t['zerogurmukhi'] = 0x0A66; - t['zerohackarabic'] = 0x0660; - t['zeroinferior'] = 0x2080; - t['zeromonospace'] = 0xFF10; - t['zerooldstyle'] = 0xF730; - t['zeropersian'] = 0x06F0; - t['zerosuperior'] = 0x2070; - t['zerothai'] = 0x0E50; - t['zerowidthjoiner'] = 0xFEFF; - t['zerowidthnonjoiner'] = 0x200C; - t['zerowidthspace'] = 0x200B; - t['zeta'] = 0x03B6; - t['zhbopomofo'] = 0x3113; - t['zhearmenian'] = 0x056A; - t['zhebrevecyrillic'] = 0x04C2; - t['zhecyrillic'] = 0x0436; - t['zhedescendercyrillic'] = 0x0497; - t['zhedieresiscyrillic'] = 0x04DD; - t['zihiragana'] = 0x3058; - t['zikatakana'] = 0x30B8; - t['zinorhebrew'] = 0x05AE; - t['zlinebelow'] = 0x1E95; - t['zmonospace'] = 0xFF5A; - t['zohiragana'] = 0x305E; - t['zokatakana'] = 0x30BE; - t['zparen'] = 0x24B5; - t['zretroflexhook'] = 0x0290; - t['zstroke'] = 0x01B6; - t['zuhiragana'] = 0x305A; - t['zukatakana'] = 0x30BA; - t['.notdef'] = 0x0000; - t['angbracketleftbig'] = 0x2329; - t['angbracketleftBig'] = 0x2329; - t['angbracketleftbigg'] = 0x2329; - t['angbracketleftBigg'] = 0x2329; - t['angbracketrightBig'] = 0x232A; - t['angbracketrightbig'] = 0x232A; - t['angbracketrightBigg'] = 0x232A; - t['angbracketrightbigg'] = 0x232A; - t['arrowhookleft'] = 0x21AA; - t['arrowhookright'] = 0x21A9; - t['arrowlefttophalf'] = 0x21BC; - t['arrowleftbothalf'] = 0x21BD; - t['arrownortheast'] = 0x2197; - t['arrownorthwest'] = 0x2196; - t['arrowrighttophalf'] = 0x21C0; - t['arrowrightbothalf'] = 0x21C1; - t['arrowsoutheast'] = 0x2198; - t['arrowsouthwest'] = 0x2199; - t['backslashbig'] = 0x2216; - t['backslashBig'] = 0x2216; - t['backslashBigg'] = 0x2216; - t['backslashbigg'] = 0x2216; - t['bardbl'] = 0x2016; - t['bracehtipdownleft'] = 0xFE37; - t['bracehtipdownright'] = 0xFE37; - t['bracehtipupleft'] = 0xFE38; - t['bracehtipupright'] = 0xFE38; - t['braceleftBig'] = 0x007B; - t['braceleftbig'] = 0x007B; - t['braceleftbigg'] = 0x007B; - t['braceleftBigg'] = 0x007B; - t['bracerightBig'] = 0x007D; - t['bracerightbig'] = 0x007D; - t['bracerightbigg'] = 0x007D; - t['bracerightBigg'] = 0x007D; - t['bracketleftbig'] = 0x005B; - t['bracketleftBig'] = 0x005B; - t['bracketleftbigg'] = 0x005B; - t['bracketleftBigg'] = 0x005B; - t['bracketrightBig'] = 0x005D; - t['bracketrightbig'] = 0x005D; - t['bracketrightbigg'] = 0x005D; - t['bracketrightBigg'] = 0x005D; - t['ceilingleftbig'] = 0x2308; - t['ceilingleftBig'] = 0x2308; - t['ceilingleftBigg'] = 0x2308; - t['ceilingleftbigg'] = 0x2308; - t['ceilingrightbig'] = 0x2309; - t['ceilingrightBig'] = 0x2309; - t['ceilingrightbigg'] = 0x2309; - t['ceilingrightBigg'] = 0x2309; - t['circledotdisplay'] = 0x2299; - t['circledottext'] = 0x2299; - t['circlemultiplydisplay'] = 0x2297; - t['circlemultiplytext'] = 0x2297; - t['circleplusdisplay'] = 0x2295; - t['circleplustext'] = 0x2295; - t['contintegraldisplay'] = 0x222E; - t['contintegraltext'] = 0x222E; - t['coproductdisplay'] = 0x2210; - t['coproducttext'] = 0x2210; - t['floorleftBig'] = 0x230A; - t['floorleftbig'] = 0x230A; - t['floorleftbigg'] = 0x230A; - t['floorleftBigg'] = 0x230A; - t['floorrightbig'] = 0x230B; - t['floorrightBig'] = 0x230B; - t['floorrightBigg'] = 0x230B; - t['floorrightbigg'] = 0x230B; - t['hatwide'] = 0x0302; - t['hatwider'] = 0x0302; - t['hatwidest'] = 0x0302; - t['intercal'] = 0x1D40; - t['integraldisplay'] = 0x222B; - t['integraltext'] = 0x222B; - t['intersectiondisplay'] = 0x22C2; - t['intersectiontext'] = 0x22C2; - t['logicalanddisplay'] = 0x2227; - t['logicalandtext'] = 0x2227; - t['logicalordisplay'] = 0x2228; - t['logicalortext'] = 0x2228; - t['parenleftBig'] = 0x0028; - t['parenleftbig'] = 0x0028; - t['parenleftBigg'] = 0x0028; - t['parenleftbigg'] = 0x0028; - t['parenrightBig'] = 0x0029; - t['parenrightbig'] = 0x0029; - t['parenrightBigg'] = 0x0029; - t['parenrightbigg'] = 0x0029; - t['prime'] = 0x2032; - t['productdisplay'] = 0x220F; - t['producttext'] = 0x220F; - t['radicalbig'] = 0x221A; - t['radicalBig'] = 0x221A; - t['radicalBigg'] = 0x221A; - t['radicalbigg'] = 0x221A; - t['radicalbt'] = 0x221A; - t['radicaltp'] = 0x221A; - t['radicalvertex'] = 0x221A; - t['slashbig'] = 0x002F; - t['slashBig'] = 0x002F; - t['slashBigg'] = 0x002F; - t['slashbigg'] = 0x002F; - t['summationdisplay'] = 0x2211; - t['summationtext'] = 0x2211; - t['tildewide'] = 0x02DC; - t['tildewider'] = 0x02DC; - t['tildewidest'] = 0x02DC; - t['uniondisplay'] = 0x22C3; - t['unionmultidisplay'] = 0x228E; - t['unionmultitext'] = 0x228E; - t['unionsqdisplay'] = 0x2294; - t['unionsqtext'] = 0x2294; - t['uniontext'] = 0x22C3; - t['vextenddouble'] = 0x2225; - t['vextendsingle'] = 0x2223; + t["A"] = 0x0041; + t["AE"] = 0x00c6; + t["AEacute"] = 0x01fc; + t["AEmacron"] = 0x01e2; + t["AEsmall"] = 0xf7e6; + t["Aacute"] = 0x00c1; + t["Aacutesmall"] = 0xf7e1; + t["Abreve"] = 0x0102; + t["Abreveacute"] = 0x1eae; + t["Abrevecyrillic"] = 0x04d0; + t["Abrevedotbelow"] = 0x1eb6; + t["Abrevegrave"] = 0x1eb0; + t["Abrevehookabove"] = 0x1eb2; + t["Abrevetilde"] = 0x1eb4; + t["Acaron"] = 0x01cd; + t["Acircle"] = 0x24b6; + t["Acircumflex"] = 0x00c2; + t["Acircumflexacute"] = 0x1ea4; + t["Acircumflexdotbelow"] = 0x1eac; + t["Acircumflexgrave"] = 0x1ea6; + t["Acircumflexhookabove"] = 0x1ea8; + t["Acircumflexsmall"] = 0xf7e2; + t["Acircumflextilde"] = 0x1eaa; + t["Acute"] = 0xf6c9; + t["Acutesmall"] = 0xf7b4; + t["Acyrillic"] = 0x0410; + t["Adblgrave"] = 0x0200; + t["Adieresis"] = 0x00c4; + t["Adieresiscyrillic"] = 0x04d2; + t["Adieresismacron"] = 0x01de; + t["Adieresissmall"] = 0xf7e4; + t["Adotbelow"] = 0x1ea0; + t["Adotmacron"] = 0x01e0; + t["Agrave"] = 0x00c0; + t["Agravesmall"] = 0xf7e0; + t["Ahookabove"] = 0x1ea2; + t["Aiecyrillic"] = 0x04d4; + t["Ainvertedbreve"] = 0x0202; + t["Alpha"] = 0x0391; + t["Alphatonos"] = 0x0386; + t["Amacron"] = 0x0100; + t["Amonospace"] = 0xff21; + t["Aogonek"] = 0x0104; + t["Aring"] = 0x00c5; + t["Aringacute"] = 0x01fa; + t["Aringbelow"] = 0x1e00; + t["Aringsmall"] = 0xf7e5; + t["Asmall"] = 0xf761; + t["Atilde"] = 0x00c3; + t["Atildesmall"] = 0xf7e3; + t["Aybarmenian"] = 0x0531; + t["B"] = 0x0042; + t["Bcircle"] = 0x24b7; + t["Bdotaccent"] = 0x1e02; + t["Bdotbelow"] = 0x1e04; + t["Becyrillic"] = 0x0411; + t["Benarmenian"] = 0x0532; + t["Beta"] = 0x0392; + t["Bhook"] = 0x0181; + t["Blinebelow"] = 0x1e06; + t["Bmonospace"] = 0xff22; + t["Brevesmall"] = 0xf6f4; + t["Bsmall"] = 0xf762; + t["Btopbar"] = 0x0182; + t["C"] = 0x0043; + t["Caarmenian"] = 0x053e; + t["Cacute"] = 0x0106; + t["Caron"] = 0xf6ca; + t["Caronsmall"] = 0xf6f5; + t["Ccaron"] = 0x010c; + t["Ccedilla"] = 0x00c7; + t["Ccedillaacute"] = 0x1e08; + t["Ccedillasmall"] = 0xf7e7; + t["Ccircle"] = 0x24b8; + t["Ccircumflex"] = 0x0108; + t["Cdot"] = 0x010a; + t["Cdotaccent"] = 0x010a; + t["Cedillasmall"] = 0xf7b8; + t["Chaarmenian"] = 0x0549; + t["Cheabkhasiancyrillic"] = 0x04bc; + t["Checyrillic"] = 0x0427; + t["Chedescenderabkhasiancyrillic"] = 0x04be; + t["Chedescendercyrillic"] = 0x04b6; + t["Chedieresiscyrillic"] = 0x04f4; + t["Cheharmenian"] = 0x0543; + t["Chekhakassiancyrillic"] = 0x04cb; + t["Cheverticalstrokecyrillic"] = 0x04b8; + t["Chi"] = 0x03a7; + t["Chook"] = 0x0187; + t["Circumflexsmall"] = 0xf6f6; + t["Cmonospace"] = 0xff23; + t["Coarmenian"] = 0x0551; + t["Csmall"] = 0xf763; + t["D"] = 0x0044; + t["DZ"] = 0x01f1; + t["DZcaron"] = 0x01c4; + t["Daarmenian"] = 0x0534; + t["Dafrican"] = 0x0189; + t["Dcaron"] = 0x010e; + t["Dcedilla"] = 0x1e10; + t["Dcircle"] = 0x24b9; + t["Dcircumflexbelow"] = 0x1e12; + t["Dcroat"] = 0x0110; + t["Ddotaccent"] = 0x1e0a; + t["Ddotbelow"] = 0x1e0c; + t["Decyrillic"] = 0x0414; + t["Deicoptic"] = 0x03ee; + t["Delta"] = 0x2206; + t["Deltagreek"] = 0x0394; + t["Dhook"] = 0x018a; + t["Dieresis"] = 0xf6cb; + t["DieresisAcute"] = 0xf6cc; + t["DieresisGrave"] = 0xf6cd; + t["Dieresissmall"] = 0xf7a8; + t["Digammagreek"] = 0x03dc; + t["Djecyrillic"] = 0x0402; + t["Dlinebelow"] = 0x1e0e; + t["Dmonospace"] = 0xff24; + t["Dotaccentsmall"] = 0xf6f7; + t["Dslash"] = 0x0110; + t["Dsmall"] = 0xf764; + t["Dtopbar"] = 0x018b; + t["Dz"] = 0x01f2; + t["Dzcaron"] = 0x01c5; + t["Dzeabkhasiancyrillic"] = 0x04e0; + t["Dzecyrillic"] = 0x0405; + t["Dzhecyrillic"] = 0x040f; + t["E"] = 0x0045; + t["Eacute"] = 0x00c9; + t["Eacutesmall"] = 0xf7e9; + t["Ebreve"] = 0x0114; + t["Ecaron"] = 0x011a; + t["Ecedillabreve"] = 0x1e1c; + t["Echarmenian"] = 0x0535; + t["Ecircle"] = 0x24ba; + t["Ecircumflex"] = 0x00ca; + t["Ecircumflexacute"] = 0x1ebe; + t["Ecircumflexbelow"] = 0x1e18; + t["Ecircumflexdotbelow"] = 0x1ec6; + t["Ecircumflexgrave"] = 0x1ec0; + t["Ecircumflexhookabove"] = 0x1ec2; + t["Ecircumflexsmall"] = 0xf7ea; + t["Ecircumflextilde"] = 0x1ec4; + t["Ecyrillic"] = 0x0404; + t["Edblgrave"] = 0x0204; + t["Edieresis"] = 0x00cb; + t["Edieresissmall"] = 0xf7eb; + t["Edot"] = 0x0116; + t["Edotaccent"] = 0x0116; + t["Edotbelow"] = 0x1eb8; + t["Efcyrillic"] = 0x0424; + t["Egrave"] = 0x00c8; + t["Egravesmall"] = 0xf7e8; + t["Eharmenian"] = 0x0537; + t["Ehookabove"] = 0x1eba; + t["Eightroman"] = 0x2167; + t["Einvertedbreve"] = 0x0206; + t["Eiotifiedcyrillic"] = 0x0464; + t["Elcyrillic"] = 0x041b; + t["Elevenroman"] = 0x216a; + t["Emacron"] = 0x0112; + t["Emacronacute"] = 0x1e16; + t["Emacrongrave"] = 0x1e14; + t["Emcyrillic"] = 0x041c; + t["Emonospace"] = 0xff25; + t["Encyrillic"] = 0x041d; + t["Endescendercyrillic"] = 0x04a2; + t["Eng"] = 0x014a; + t["Enghecyrillic"] = 0x04a4; + t["Enhookcyrillic"] = 0x04c7; + t["Eogonek"] = 0x0118; + t["Eopen"] = 0x0190; + t["Epsilon"] = 0x0395; + t["Epsilontonos"] = 0x0388; + t["Ercyrillic"] = 0x0420; + t["Ereversed"] = 0x018e; + t["Ereversedcyrillic"] = 0x042d; + t["Escyrillic"] = 0x0421; + t["Esdescendercyrillic"] = 0x04aa; + t["Esh"] = 0x01a9; + t["Esmall"] = 0xf765; + t["Eta"] = 0x0397; + t["Etarmenian"] = 0x0538; + t["Etatonos"] = 0x0389; + t["Eth"] = 0x00d0; + t["Ethsmall"] = 0xf7f0; + t["Etilde"] = 0x1ebc; + t["Etildebelow"] = 0x1e1a; + t["Euro"] = 0x20ac; + t["Ezh"] = 0x01b7; + t["Ezhcaron"] = 0x01ee; + t["Ezhreversed"] = 0x01b8; + t["F"] = 0x0046; + t["Fcircle"] = 0x24bb; + t["Fdotaccent"] = 0x1e1e; + t["Feharmenian"] = 0x0556; + t["Feicoptic"] = 0x03e4; + t["Fhook"] = 0x0191; + t["Fitacyrillic"] = 0x0472; + t["Fiveroman"] = 0x2164; + t["Fmonospace"] = 0xff26; + t["Fourroman"] = 0x2163; + t["Fsmall"] = 0xf766; + t["G"] = 0x0047; + t["GBsquare"] = 0x3387; + t["Gacute"] = 0x01f4; + t["Gamma"] = 0x0393; + t["Gammaafrican"] = 0x0194; + t["Gangiacoptic"] = 0x03ea; + t["Gbreve"] = 0x011e; + t["Gcaron"] = 0x01e6; + t["Gcedilla"] = 0x0122; + t["Gcircle"] = 0x24bc; + t["Gcircumflex"] = 0x011c; + t["Gcommaaccent"] = 0x0122; + t["Gdot"] = 0x0120; + t["Gdotaccent"] = 0x0120; + t["Gecyrillic"] = 0x0413; + t["Ghadarmenian"] = 0x0542; + t["Ghemiddlehookcyrillic"] = 0x0494; + t["Ghestrokecyrillic"] = 0x0492; + t["Gheupturncyrillic"] = 0x0490; + t["Ghook"] = 0x0193; + t["Gimarmenian"] = 0x0533; + t["Gjecyrillic"] = 0x0403; + t["Gmacron"] = 0x1e20; + t["Gmonospace"] = 0xff27; + t["Grave"] = 0xf6ce; + t["Gravesmall"] = 0xf760; + t["Gsmall"] = 0xf767; + t["Gsmallhook"] = 0x029b; + t["Gstroke"] = 0x01e4; + t["H"] = 0x0048; + t["H18533"] = 0x25cf; + t["H18543"] = 0x25aa; + t["H18551"] = 0x25ab; + t["H22073"] = 0x25a1; + t["HPsquare"] = 0x33cb; + t["Haabkhasiancyrillic"] = 0x04a8; + t["Hadescendercyrillic"] = 0x04b2; + t["Hardsigncyrillic"] = 0x042a; + t["Hbar"] = 0x0126; + t["Hbrevebelow"] = 0x1e2a; + t["Hcedilla"] = 0x1e28; + t["Hcircle"] = 0x24bd; + t["Hcircumflex"] = 0x0124; + t["Hdieresis"] = 0x1e26; + t["Hdotaccent"] = 0x1e22; + t["Hdotbelow"] = 0x1e24; + t["Hmonospace"] = 0xff28; + t["Hoarmenian"] = 0x0540; + t["Horicoptic"] = 0x03e8; + t["Hsmall"] = 0xf768; + t["Hungarumlaut"] = 0xf6cf; + t["Hungarumlautsmall"] = 0xf6f8; + t["Hzsquare"] = 0x3390; + t["I"] = 0x0049; + t["IAcyrillic"] = 0x042f; + t["IJ"] = 0x0132; + t["IUcyrillic"] = 0x042e; + t["Iacute"] = 0x00cd; + t["Iacutesmall"] = 0xf7ed; + t["Ibreve"] = 0x012c; + t["Icaron"] = 0x01cf; + t["Icircle"] = 0x24be; + t["Icircumflex"] = 0x00ce; + t["Icircumflexsmall"] = 0xf7ee; + t["Icyrillic"] = 0x0406; + t["Idblgrave"] = 0x0208; + t["Idieresis"] = 0x00cf; + t["Idieresisacute"] = 0x1e2e; + t["Idieresiscyrillic"] = 0x04e4; + t["Idieresissmall"] = 0xf7ef; + t["Idot"] = 0x0130; + t["Idotaccent"] = 0x0130; + t["Idotbelow"] = 0x1eca; + t["Iebrevecyrillic"] = 0x04d6; + t["Iecyrillic"] = 0x0415; + t["Ifraktur"] = 0x2111; + t["Igrave"] = 0x00cc; + t["Igravesmall"] = 0xf7ec; + t["Ihookabove"] = 0x1ec8; + t["Iicyrillic"] = 0x0418; + t["Iinvertedbreve"] = 0x020a; + t["Iishortcyrillic"] = 0x0419; + t["Imacron"] = 0x012a; + t["Imacroncyrillic"] = 0x04e2; + t["Imonospace"] = 0xff29; + t["Iniarmenian"] = 0x053b; + t["Iocyrillic"] = 0x0401; + t["Iogonek"] = 0x012e; + t["Iota"] = 0x0399; + t["Iotaafrican"] = 0x0196; + t["Iotadieresis"] = 0x03aa; + t["Iotatonos"] = 0x038a; + t["Ismall"] = 0xf769; + t["Istroke"] = 0x0197; + t["Itilde"] = 0x0128; + t["Itildebelow"] = 0x1e2c; + t["Izhitsacyrillic"] = 0x0474; + t["Izhitsadblgravecyrillic"] = 0x0476; + t["J"] = 0x004a; + t["Jaarmenian"] = 0x0541; + t["Jcircle"] = 0x24bf; + t["Jcircumflex"] = 0x0134; + t["Jecyrillic"] = 0x0408; + t["Jheharmenian"] = 0x054b; + t["Jmonospace"] = 0xff2a; + t["Jsmall"] = 0xf76a; + t["K"] = 0x004b; + t["KBsquare"] = 0x3385; + t["KKsquare"] = 0x33cd; + t["Kabashkircyrillic"] = 0x04a0; + t["Kacute"] = 0x1e30; + t["Kacyrillic"] = 0x041a; + t["Kadescendercyrillic"] = 0x049a; + t["Kahookcyrillic"] = 0x04c3; + t["Kappa"] = 0x039a; + t["Kastrokecyrillic"] = 0x049e; + t["Kaverticalstrokecyrillic"] = 0x049c; + t["Kcaron"] = 0x01e8; + t["Kcedilla"] = 0x0136; + t["Kcircle"] = 0x24c0; + t["Kcommaaccent"] = 0x0136; + t["Kdotbelow"] = 0x1e32; + t["Keharmenian"] = 0x0554; + t["Kenarmenian"] = 0x053f; + t["Khacyrillic"] = 0x0425; + t["Kheicoptic"] = 0x03e6; + t["Khook"] = 0x0198; + t["Kjecyrillic"] = 0x040c; + t["Klinebelow"] = 0x1e34; + t["Kmonospace"] = 0xff2b; + t["Koppacyrillic"] = 0x0480; + t["Koppagreek"] = 0x03de; + t["Ksicyrillic"] = 0x046e; + t["Ksmall"] = 0xf76b; + t["L"] = 0x004c; + t["LJ"] = 0x01c7; + t["LL"] = 0xf6bf; + t["Lacute"] = 0x0139; + t["Lambda"] = 0x039b; + t["Lcaron"] = 0x013d; + t["Lcedilla"] = 0x013b; + t["Lcircle"] = 0x24c1; + t["Lcircumflexbelow"] = 0x1e3c; + t["Lcommaaccent"] = 0x013b; + t["Ldot"] = 0x013f; + t["Ldotaccent"] = 0x013f; + t["Ldotbelow"] = 0x1e36; + t["Ldotbelowmacron"] = 0x1e38; + t["Liwnarmenian"] = 0x053c; + t["Lj"] = 0x01c8; + t["Ljecyrillic"] = 0x0409; + t["Llinebelow"] = 0x1e3a; + t["Lmonospace"] = 0xff2c; + t["Lslash"] = 0x0141; + t["Lslashsmall"] = 0xf6f9; + t["Lsmall"] = 0xf76c; + t["M"] = 0x004d; + t["MBsquare"] = 0x3386; + t["Macron"] = 0xf6d0; + t["Macronsmall"] = 0xf7af; + t["Macute"] = 0x1e3e; + t["Mcircle"] = 0x24c2; + t["Mdotaccent"] = 0x1e40; + t["Mdotbelow"] = 0x1e42; + t["Menarmenian"] = 0x0544; + t["Mmonospace"] = 0xff2d; + t["Msmall"] = 0xf76d; + t["Mturned"] = 0x019c; + t["Mu"] = 0x039c; + t["N"] = 0x004e; + t["NJ"] = 0x01ca; + t["Nacute"] = 0x0143; + t["Ncaron"] = 0x0147; + t["Ncedilla"] = 0x0145; + t["Ncircle"] = 0x24c3; + t["Ncircumflexbelow"] = 0x1e4a; + t["Ncommaaccent"] = 0x0145; + t["Ndotaccent"] = 0x1e44; + t["Ndotbelow"] = 0x1e46; + t["Nhookleft"] = 0x019d; + t["Nineroman"] = 0x2168; + t["Nj"] = 0x01cb; + t["Njecyrillic"] = 0x040a; + t["Nlinebelow"] = 0x1e48; + t["Nmonospace"] = 0xff2e; + t["Nowarmenian"] = 0x0546; + t["Nsmall"] = 0xf76e; + t["Ntilde"] = 0x00d1; + t["Ntildesmall"] = 0xf7f1; + t["Nu"] = 0x039d; + t["O"] = 0x004f; + t["OE"] = 0x0152; + t["OEsmall"] = 0xf6fa; + t["Oacute"] = 0x00d3; + t["Oacutesmall"] = 0xf7f3; + t["Obarredcyrillic"] = 0x04e8; + t["Obarreddieresiscyrillic"] = 0x04ea; + t["Obreve"] = 0x014e; + t["Ocaron"] = 0x01d1; + t["Ocenteredtilde"] = 0x019f; + t["Ocircle"] = 0x24c4; + t["Ocircumflex"] = 0x00d4; + t["Ocircumflexacute"] = 0x1ed0; + t["Ocircumflexdotbelow"] = 0x1ed8; + t["Ocircumflexgrave"] = 0x1ed2; + t["Ocircumflexhookabove"] = 0x1ed4; + t["Ocircumflexsmall"] = 0xf7f4; + t["Ocircumflextilde"] = 0x1ed6; + t["Ocyrillic"] = 0x041e; + t["Odblacute"] = 0x0150; + t["Odblgrave"] = 0x020c; + t["Odieresis"] = 0x00d6; + t["Odieresiscyrillic"] = 0x04e6; + t["Odieresissmall"] = 0xf7f6; + t["Odotbelow"] = 0x1ecc; + t["Ogoneksmall"] = 0xf6fb; + t["Ograve"] = 0x00d2; + t["Ogravesmall"] = 0xf7f2; + t["Oharmenian"] = 0x0555; + t["Ohm"] = 0x2126; + t["Ohookabove"] = 0x1ece; + t["Ohorn"] = 0x01a0; + t["Ohornacute"] = 0x1eda; + t["Ohorndotbelow"] = 0x1ee2; + t["Ohorngrave"] = 0x1edc; + t["Ohornhookabove"] = 0x1ede; + t["Ohorntilde"] = 0x1ee0; + t["Ohungarumlaut"] = 0x0150; + t["Oi"] = 0x01a2; + t["Oinvertedbreve"] = 0x020e; + t["Omacron"] = 0x014c; + t["Omacronacute"] = 0x1e52; + t["Omacrongrave"] = 0x1e50; + t["Omega"] = 0x2126; + t["Omegacyrillic"] = 0x0460; + t["Omegagreek"] = 0x03a9; + t["Omegaroundcyrillic"] = 0x047a; + t["Omegatitlocyrillic"] = 0x047c; + t["Omegatonos"] = 0x038f; + t["Omicron"] = 0x039f; + t["Omicrontonos"] = 0x038c; + t["Omonospace"] = 0xff2f; + t["Oneroman"] = 0x2160; + t["Oogonek"] = 0x01ea; + t["Oogonekmacron"] = 0x01ec; + t["Oopen"] = 0x0186; + t["Oslash"] = 0x00d8; + t["Oslashacute"] = 0x01fe; + t["Oslashsmall"] = 0xf7f8; + t["Osmall"] = 0xf76f; + t["Ostrokeacute"] = 0x01fe; + t["Otcyrillic"] = 0x047e; + t["Otilde"] = 0x00d5; + t["Otildeacute"] = 0x1e4c; + t["Otildedieresis"] = 0x1e4e; + t["Otildesmall"] = 0xf7f5; + t["P"] = 0x0050; + t["Pacute"] = 0x1e54; + t["Pcircle"] = 0x24c5; + t["Pdotaccent"] = 0x1e56; + t["Pecyrillic"] = 0x041f; + t["Peharmenian"] = 0x054a; + t["Pemiddlehookcyrillic"] = 0x04a6; + t["Phi"] = 0x03a6; + t["Phook"] = 0x01a4; + t["Pi"] = 0x03a0; + t["Piwrarmenian"] = 0x0553; + t["Pmonospace"] = 0xff30; + t["Psi"] = 0x03a8; + t["Psicyrillic"] = 0x0470; + t["Psmall"] = 0xf770; + t["Q"] = 0x0051; + t["Qcircle"] = 0x24c6; + t["Qmonospace"] = 0xff31; + t["Qsmall"] = 0xf771; + t["R"] = 0x0052; + t["Raarmenian"] = 0x054c; + t["Racute"] = 0x0154; + t["Rcaron"] = 0x0158; + t["Rcedilla"] = 0x0156; + t["Rcircle"] = 0x24c7; + t["Rcommaaccent"] = 0x0156; + t["Rdblgrave"] = 0x0210; + t["Rdotaccent"] = 0x1e58; + t["Rdotbelow"] = 0x1e5a; + t["Rdotbelowmacron"] = 0x1e5c; + t["Reharmenian"] = 0x0550; + t["Rfraktur"] = 0x211c; + t["Rho"] = 0x03a1; + t["Ringsmall"] = 0xf6fc; + t["Rinvertedbreve"] = 0x0212; + t["Rlinebelow"] = 0x1e5e; + t["Rmonospace"] = 0xff32; + t["Rsmall"] = 0xf772; + t["Rsmallinverted"] = 0x0281; + t["Rsmallinvertedsuperior"] = 0x02b6; + t["S"] = 0x0053; + t["SF010000"] = 0x250c; + t["SF020000"] = 0x2514; + t["SF030000"] = 0x2510; + t["SF040000"] = 0x2518; + t["SF050000"] = 0x253c; + t["SF060000"] = 0x252c; + t["SF070000"] = 0x2534; + t["SF080000"] = 0x251c; + t["SF090000"] = 0x2524; + t["SF100000"] = 0x2500; + t["SF110000"] = 0x2502; + t["SF190000"] = 0x2561; + t["SF200000"] = 0x2562; + t["SF210000"] = 0x2556; + t["SF220000"] = 0x2555; + t["SF230000"] = 0x2563; + t["SF240000"] = 0x2551; + t["SF250000"] = 0x2557; + t["SF260000"] = 0x255d; + t["SF270000"] = 0x255c; + t["SF280000"] = 0x255b; + t["SF360000"] = 0x255e; + t["SF370000"] = 0x255f; + t["SF380000"] = 0x255a; + t["SF390000"] = 0x2554; + t["SF400000"] = 0x2569; + t["SF410000"] = 0x2566; + t["SF420000"] = 0x2560; + t["SF430000"] = 0x2550; + t["SF440000"] = 0x256c; + t["SF450000"] = 0x2567; + t["SF460000"] = 0x2568; + t["SF470000"] = 0x2564; + t["SF480000"] = 0x2565; + t["SF490000"] = 0x2559; + t["SF500000"] = 0x2558; + t["SF510000"] = 0x2552; + t["SF520000"] = 0x2553; + t["SF530000"] = 0x256b; + t["SF540000"] = 0x256a; + t["Sacute"] = 0x015a; + t["Sacutedotaccent"] = 0x1e64; + t["Sampigreek"] = 0x03e0; + t["Scaron"] = 0x0160; + t["Scarondotaccent"] = 0x1e66; + t["Scaronsmall"] = 0xf6fd; + t["Scedilla"] = 0x015e; + t["Schwa"] = 0x018f; + t["Schwacyrillic"] = 0x04d8; + t["Schwadieresiscyrillic"] = 0x04da; + t["Scircle"] = 0x24c8; + t["Scircumflex"] = 0x015c; + t["Scommaaccent"] = 0x0218; + t["Sdotaccent"] = 0x1e60; + t["Sdotbelow"] = 0x1e62; + t["Sdotbelowdotaccent"] = 0x1e68; + t["Seharmenian"] = 0x054d; + t["Sevenroman"] = 0x2166; + t["Shaarmenian"] = 0x0547; + t["Shacyrillic"] = 0x0428; + t["Shchacyrillic"] = 0x0429; + t["Sheicoptic"] = 0x03e2; + t["Shhacyrillic"] = 0x04ba; + t["Shimacoptic"] = 0x03ec; + t["Sigma"] = 0x03a3; + t["Sixroman"] = 0x2165; + t["Smonospace"] = 0xff33; + t["Softsigncyrillic"] = 0x042c; + t["Ssmall"] = 0xf773; + t["Stigmagreek"] = 0x03da; + t["T"] = 0x0054; + t["Tau"] = 0x03a4; + t["Tbar"] = 0x0166; + t["Tcaron"] = 0x0164; + t["Tcedilla"] = 0x0162; + t["Tcircle"] = 0x24c9; + t["Tcircumflexbelow"] = 0x1e70; + t["Tcommaaccent"] = 0x0162; + t["Tdotaccent"] = 0x1e6a; + t["Tdotbelow"] = 0x1e6c; + t["Tecyrillic"] = 0x0422; + t["Tedescendercyrillic"] = 0x04ac; + t["Tenroman"] = 0x2169; + t["Tetsecyrillic"] = 0x04b4; + t["Theta"] = 0x0398; + t["Thook"] = 0x01ac; + t["Thorn"] = 0x00de; + t["Thornsmall"] = 0xf7fe; + t["Threeroman"] = 0x2162; + t["Tildesmall"] = 0xf6fe; + t["Tiwnarmenian"] = 0x054f; + t["Tlinebelow"] = 0x1e6e; + t["Tmonospace"] = 0xff34; + t["Toarmenian"] = 0x0539; + t["Tonefive"] = 0x01bc; + t["Tonesix"] = 0x0184; + t["Tonetwo"] = 0x01a7; + t["Tretroflexhook"] = 0x01ae; + t["Tsecyrillic"] = 0x0426; + t["Tshecyrillic"] = 0x040b; + t["Tsmall"] = 0xf774; + t["Twelveroman"] = 0x216b; + t["Tworoman"] = 0x2161; + t["U"] = 0x0055; + t["Uacute"] = 0x00da; + t["Uacutesmall"] = 0xf7fa; + t["Ubreve"] = 0x016c; + t["Ucaron"] = 0x01d3; + t["Ucircle"] = 0x24ca; + t["Ucircumflex"] = 0x00db; + t["Ucircumflexbelow"] = 0x1e76; + t["Ucircumflexsmall"] = 0xf7fb; + t["Ucyrillic"] = 0x0423; + t["Udblacute"] = 0x0170; + t["Udblgrave"] = 0x0214; + t["Udieresis"] = 0x00dc; + t["Udieresisacute"] = 0x01d7; + t["Udieresisbelow"] = 0x1e72; + t["Udieresiscaron"] = 0x01d9; + t["Udieresiscyrillic"] = 0x04f0; + t["Udieresisgrave"] = 0x01db; + t["Udieresismacron"] = 0x01d5; + t["Udieresissmall"] = 0xf7fc; + t["Udotbelow"] = 0x1ee4; + t["Ugrave"] = 0x00d9; + t["Ugravesmall"] = 0xf7f9; + t["Uhookabove"] = 0x1ee6; + t["Uhorn"] = 0x01af; + t["Uhornacute"] = 0x1ee8; + t["Uhorndotbelow"] = 0x1ef0; + t["Uhorngrave"] = 0x1eea; + t["Uhornhookabove"] = 0x1eec; + t["Uhorntilde"] = 0x1eee; + t["Uhungarumlaut"] = 0x0170; + t["Uhungarumlautcyrillic"] = 0x04f2; + t["Uinvertedbreve"] = 0x0216; + t["Ukcyrillic"] = 0x0478; + t["Umacron"] = 0x016a; + t["Umacroncyrillic"] = 0x04ee; + t["Umacrondieresis"] = 0x1e7a; + t["Umonospace"] = 0xff35; + t["Uogonek"] = 0x0172; + t["Upsilon"] = 0x03a5; + t["Upsilon1"] = 0x03d2; + t["Upsilonacutehooksymbolgreek"] = 0x03d3; + t["Upsilonafrican"] = 0x01b1; + t["Upsilondieresis"] = 0x03ab; + t["Upsilondieresishooksymbolgreek"] = 0x03d4; + t["Upsilonhooksymbol"] = 0x03d2; + t["Upsilontonos"] = 0x038e; + t["Uring"] = 0x016e; + t["Ushortcyrillic"] = 0x040e; + t["Usmall"] = 0xf775; + t["Ustraightcyrillic"] = 0x04ae; + t["Ustraightstrokecyrillic"] = 0x04b0; + t["Utilde"] = 0x0168; + t["Utildeacute"] = 0x1e78; + t["Utildebelow"] = 0x1e74; + t["V"] = 0x0056; + t["Vcircle"] = 0x24cb; + t["Vdotbelow"] = 0x1e7e; + t["Vecyrillic"] = 0x0412; + t["Vewarmenian"] = 0x054e; + t["Vhook"] = 0x01b2; + t["Vmonospace"] = 0xff36; + t["Voarmenian"] = 0x0548; + t["Vsmall"] = 0xf776; + t["Vtilde"] = 0x1e7c; + t["W"] = 0x0057; + t["Wacute"] = 0x1e82; + t["Wcircle"] = 0x24cc; + t["Wcircumflex"] = 0x0174; + t["Wdieresis"] = 0x1e84; + t["Wdotaccent"] = 0x1e86; + t["Wdotbelow"] = 0x1e88; + t["Wgrave"] = 0x1e80; + t["Wmonospace"] = 0xff37; + t["Wsmall"] = 0xf777; + t["X"] = 0x0058; + t["Xcircle"] = 0x24cd; + t["Xdieresis"] = 0x1e8c; + t["Xdotaccent"] = 0x1e8a; + t["Xeharmenian"] = 0x053d; + t["Xi"] = 0x039e; + t["Xmonospace"] = 0xff38; + t["Xsmall"] = 0xf778; + t["Y"] = 0x0059; + t["Yacute"] = 0x00dd; + t["Yacutesmall"] = 0xf7fd; + t["Yatcyrillic"] = 0x0462; + t["Ycircle"] = 0x24ce; + t["Ycircumflex"] = 0x0176; + t["Ydieresis"] = 0x0178; + t["Ydieresissmall"] = 0xf7ff; + t["Ydotaccent"] = 0x1e8e; + t["Ydotbelow"] = 0x1ef4; + t["Yericyrillic"] = 0x042b; + t["Yerudieresiscyrillic"] = 0x04f8; + t["Ygrave"] = 0x1ef2; + t["Yhook"] = 0x01b3; + t["Yhookabove"] = 0x1ef6; + t["Yiarmenian"] = 0x0545; + t["Yicyrillic"] = 0x0407; + t["Yiwnarmenian"] = 0x0552; + t["Ymonospace"] = 0xff39; + t["Ysmall"] = 0xf779; + t["Ytilde"] = 0x1ef8; + t["Yusbigcyrillic"] = 0x046a; + t["Yusbigiotifiedcyrillic"] = 0x046c; + t["Yuslittlecyrillic"] = 0x0466; + t["Yuslittleiotifiedcyrillic"] = 0x0468; + t["Z"] = 0x005a; + t["Zaarmenian"] = 0x0536; + t["Zacute"] = 0x0179; + t["Zcaron"] = 0x017d; + t["Zcaronsmall"] = 0xf6ff; + t["Zcircle"] = 0x24cf; + t["Zcircumflex"] = 0x1e90; + t["Zdot"] = 0x017b; + t["Zdotaccent"] = 0x017b; + t["Zdotbelow"] = 0x1e92; + t["Zecyrillic"] = 0x0417; + t["Zedescendercyrillic"] = 0x0498; + t["Zedieresiscyrillic"] = 0x04de; + t["Zeta"] = 0x0396; + t["Zhearmenian"] = 0x053a; + t["Zhebrevecyrillic"] = 0x04c1; + t["Zhecyrillic"] = 0x0416; + t["Zhedescendercyrillic"] = 0x0496; + t["Zhedieresiscyrillic"] = 0x04dc; + t["Zlinebelow"] = 0x1e94; + t["Zmonospace"] = 0xff3a; + t["Zsmall"] = 0xf77a; + t["Zstroke"] = 0x01b5; + t["a"] = 0x0061; + t["aabengali"] = 0x0986; + t["aacute"] = 0x00e1; + t["aadeva"] = 0x0906; + t["aagujarati"] = 0x0a86; + t["aagurmukhi"] = 0x0a06; + t["aamatragurmukhi"] = 0x0a3e; + t["aarusquare"] = 0x3303; + t["aavowelsignbengali"] = 0x09be; + t["aavowelsigndeva"] = 0x093e; + t["aavowelsigngujarati"] = 0x0abe; + t["abbreviationmarkarmenian"] = 0x055f; + t["abbreviationsigndeva"] = 0x0970; + t["abengali"] = 0x0985; + t["abopomofo"] = 0x311a; + t["abreve"] = 0x0103; + t["abreveacute"] = 0x1eaf; + t["abrevecyrillic"] = 0x04d1; + t["abrevedotbelow"] = 0x1eb7; + t["abrevegrave"] = 0x1eb1; + t["abrevehookabove"] = 0x1eb3; + t["abrevetilde"] = 0x1eb5; + t["acaron"] = 0x01ce; + t["acircle"] = 0x24d0; + t["acircumflex"] = 0x00e2; + t["acircumflexacute"] = 0x1ea5; + t["acircumflexdotbelow"] = 0x1ead; + t["acircumflexgrave"] = 0x1ea7; + t["acircumflexhookabove"] = 0x1ea9; + t["acircumflextilde"] = 0x1eab; + t["acute"] = 0x00b4; + t["acutebelowcmb"] = 0x0317; + t["acutecmb"] = 0x0301; + t["acutecomb"] = 0x0301; + t["acutedeva"] = 0x0954; + t["acutelowmod"] = 0x02cf; + t["acutetonecmb"] = 0x0341; + t["acyrillic"] = 0x0430; + t["adblgrave"] = 0x0201; + t["addakgurmukhi"] = 0x0a71; + t["adeva"] = 0x0905; + t["adieresis"] = 0x00e4; + t["adieresiscyrillic"] = 0x04d3; + t["adieresismacron"] = 0x01df; + t["adotbelow"] = 0x1ea1; + t["adotmacron"] = 0x01e1; + t["ae"] = 0x00e6; + t["aeacute"] = 0x01fd; + t["aekorean"] = 0x3150; + t["aemacron"] = 0x01e3; + t["afii00208"] = 0x2015; + t["afii08941"] = 0x20a4; + t["afii10017"] = 0x0410; + t["afii10018"] = 0x0411; + t["afii10019"] = 0x0412; + t["afii10020"] = 0x0413; + t["afii10021"] = 0x0414; + t["afii10022"] = 0x0415; + t["afii10023"] = 0x0401; + t["afii10024"] = 0x0416; + t["afii10025"] = 0x0417; + t["afii10026"] = 0x0418; + t["afii10027"] = 0x0419; + t["afii10028"] = 0x041a; + t["afii10029"] = 0x041b; + t["afii10030"] = 0x041c; + t["afii10031"] = 0x041d; + t["afii10032"] = 0x041e; + t["afii10033"] = 0x041f; + t["afii10034"] = 0x0420; + t["afii10035"] = 0x0421; + t["afii10036"] = 0x0422; + t["afii10037"] = 0x0423; + t["afii10038"] = 0x0424; + t["afii10039"] = 0x0425; + t["afii10040"] = 0x0426; + t["afii10041"] = 0x0427; + t["afii10042"] = 0x0428; + t["afii10043"] = 0x0429; + t["afii10044"] = 0x042a; + t["afii10045"] = 0x042b; + t["afii10046"] = 0x042c; + t["afii10047"] = 0x042d; + t["afii10048"] = 0x042e; + t["afii10049"] = 0x042f; + t["afii10050"] = 0x0490; + t["afii10051"] = 0x0402; + t["afii10052"] = 0x0403; + t["afii10053"] = 0x0404; + t["afii10054"] = 0x0405; + t["afii10055"] = 0x0406; + t["afii10056"] = 0x0407; + t["afii10057"] = 0x0408; + t["afii10058"] = 0x0409; + t["afii10059"] = 0x040a; + t["afii10060"] = 0x040b; + t["afii10061"] = 0x040c; + t["afii10062"] = 0x040e; + t["afii10063"] = 0xf6c4; + t["afii10064"] = 0xf6c5; + t["afii10065"] = 0x0430; + t["afii10066"] = 0x0431; + t["afii10067"] = 0x0432; + t["afii10068"] = 0x0433; + t["afii10069"] = 0x0434; + t["afii10070"] = 0x0435; + t["afii10071"] = 0x0451; + t["afii10072"] = 0x0436; + t["afii10073"] = 0x0437; + t["afii10074"] = 0x0438; + t["afii10075"] = 0x0439; + t["afii10076"] = 0x043a; + t["afii10077"] = 0x043b; + t["afii10078"] = 0x043c; + t["afii10079"] = 0x043d; + t["afii10080"] = 0x043e; + t["afii10081"] = 0x043f; + t["afii10082"] = 0x0440; + t["afii10083"] = 0x0441; + t["afii10084"] = 0x0442; + t["afii10085"] = 0x0443; + t["afii10086"] = 0x0444; + t["afii10087"] = 0x0445; + t["afii10088"] = 0x0446; + t["afii10089"] = 0x0447; + t["afii10090"] = 0x0448; + t["afii10091"] = 0x0449; + t["afii10092"] = 0x044a; + t["afii10093"] = 0x044b; + t["afii10094"] = 0x044c; + t["afii10095"] = 0x044d; + t["afii10096"] = 0x044e; + t["afii10097"] = 0x044f; + t["afii10098"] = 0x0491; + t["afii10099"] = 0x0452; + t["afii10100"] = 0x0453; + t["afii10101"] = 0x0454; + t["afii10102"] = 0x0455; + t["afii10103"] = 0x0456; + t["afii10104"] = 0x0457; + t["afii10105"] = 0x0458; + t["afii10106"] = 0x0459; + t["afii10107"] = 0x045a; + t["afii10108"] = 0x045b; + t["afii10109"] = 0x045c; + t["afii10110"] = 0x045e; + t["afii10145"] = 0x040f; + t["afii10146"] = 0x0462; + t["afii10147"] = 0x0472; + t["afii10148"] = 0x0474; + t["afii10192"] = 0xf6c6; + t["afii10193"] = 0x045f; + t["afii10194"] = 0x0463; + t["afii10195"] = 0x0473; + t["afii10196"] = 0x0475; + t["afii10831"] = 0xf6c7; + t["afii10832"] = 0xf6c8; + t["afii10846"] = 0x04d9; + t["afii299"] = 0x200e; + t["afii300"] = 0x200f; + t["afii301"] = 0x200d; + t["afii57381"] = 0x066a; + t["afii57388"] = 0x060c; + t["afii57392"] = 0x0660; + t["afii57393"] = 0x0661; + t["afii57394"] = 0x0662; + t["afii57395"] = 0x0663; + t["afii57396"] = 0x0664; + t["afii57397"] = 0x0665; + t["afii57398"] = 0x0666; + t["afii57399"] = 0x0667; + t["afii57400"] = 0x0668; + t["afii57401"] = 0x0669; + t["afii57403"] = 0x061b; + t["afii57407"] = 0x061f; + t["afii57409"] = 0x0621; + t["afii57410"] = 0x0622; + t["afii57411"] = 0x0623; + t["afii57412"] = 0x0624; + t["afii57413"] = 0x0625; + t["afii57414"] = 0x0626; + t["afii57415"] = 0x0627; + t["afii57416"] = 0x0628; + t["afii57417"] = 0x0629; + t["afii57418"] = 0x062a; + t["afii57419"] = 0x062b; + t["afii57420"] = 0x062c; + t["afii57421"] = 0x062d; + t["afii57422"] = 0x062e; + t["afii57423"] = 0x062f; + t["afii57424"] = 0x0630; + t["afii57425"] = 0x0631; + t["afii57426"] = 0x0632; + t["afii57427"] = 0x0633; + t["afii57428"] = 0x0634; + t["afii57429"] = 0x0635; + t["afii57430"] = 0x0636; + t["afii57431"] = 0x0637; + t["afii57432"] = 0x0638; + t["afii57433"] = 0x0639; + t["afii57434"] = 0x063a; + t["afii57440"] = 0x0640; + t["afii57441"] = 0x0641; + t["afii57442"] = 0x0642; + t["afii57443"] = 0x0643; + t["afii57444"] = 0x0644; + t["afii57445"] = 0x0645; + t["afii57446"] = 0x0646; + t["afii57448"] = 0x0648; + t["afii57449"] = 0x0649; + t["afii57450"] = 0x064a; + t["afii57451"] = 0x064b; + t["afii57452"] = 0x064c; + t["afii57453"] = 0x064d; + t["afii57454"] = 0x064e; + t["afii57455"] = 0x064f; + t["afii57456"] = 0x0650; + t["afii57457"] = 0x0651; + t["afii57458"] = 0x0652; + t["afii57470"] = 0x0647; + t["afii57505"] = 0x06a4; + t["afii57506"] = 0x067e; + t["afii57507"] = 0x0686; + t["afii57508"] = 0x0698; + t["afii57509"] = 0x06af; + t["afii57511"] = 0x0679; + t["afii57512"] = 0x0688; + t["afii57513"] = 0x0691; + t["afii57514"] = 0x06ba; + t["afii57519"] = 0x06d2; + t["afii57534"] = 0x06d5; + t["afii57636"] = 0x20aa; + t["afii57645"] = 0x05be; + t["afii57658"] = 0x05c3; + t["afii57664"] = 0x05d0; + t["afii57665"] = 0x05d1; + t["afii57666"] = 0x05d2; + t["afii57667"] = 0x05d3; + t["afii57668"] = 0x05d4; + t["afii57669"] = 0x05d5; + t["afii57670"] = 0x05d6; + t["afii57671"] = 0x05d7; + t["afii57672"] = 0x05d8; + t["afii57673"] = 0x05d9; + t["afii57674"] = 0x05da; + t["afii57675"] = 0x05db; + t["afii57676"] = 0x05dc; + t["afii57677"] = 0x05dd; + t["afii57678"] = 0x05de; + t["afii57679"] = 0x05df; + t["afii57680"] = 0x05e0; + t["afii57681"] = 0x05e1; + t["afii57682"] = 0x05e2; + t["afii57683"] = 0x05e3; + t["afii57684"] = 0x05e4; + t["afii57685"] = 0x05e5; + t["afii57686"] = 0x05e6; + t["afii57687"] = 0x05e7; + t["afii57688"] = 0x05e8; + t["afii57689"] = 0x05e9; + t["afii57690"] = 0x05ea; + t["afii57694"] = 0xfb2a; + t["afii57695"] = 0xfb2b; + t["afii57700"] = 0xfb4b; + t["afii57705"] = 0xfb1f; + t["afii57716"] = 0x05f0; + t["afii57717"] = 0x05f1; + t["afii57718"] = 0x05f2; + t["afii57723"] = 0xfb35; + t["afii57793"] = 0x05b4; + t["afii57794"] = 0x05b5; + t["afii57795"] = 0x05b6; + t["afii57796"] = 0x05bb; + t["afii57797"] = 0x05b8; + t["afii57798"] = 0x05b7; + t["afii57799"] = 0x05b0; + t["afii57800"] = 0x05b2; + t["afii57801"] = 0x05b1; + t["afii57802"] = 0x05b3; + t["afii57803"] = 0x05c2; + t["afii57804"] = 0x05c1; + t["afii57806"] = 0x05b9; + t["afii57807"] = 0x05bc; + t["afii57839"] = 0x05bd; + t["afii57841"] = 0x05bf; + t["afii57842"] = 0x05c0; + t["afii57929"] = 0x02bc; + t["afii61248"] = 0x2105; + t["afii61289"] = 0x2113; + t["afii61352"] = 0x2116; + t["afii61573"] = 0x202c; + t["afii61574"] = 0x202d; + t["afii61575"] = 0x202e; + t["afii61664"] = 0x200c; + t["afii63167"] = 0x066d; + t["afii64937"] = 0x02bd; + t["agrave"] = 0x00e0; + t["agujarati"] = 0x0a85; + t["agurmukhi"] = 0x0a05; + t["ahiragana"] = 0x3042; + t["ahookabove"] = 0x1ea3; + t["aibengali"] = 0x0990; + t["aibopomofo"] = 0x311e; + t["aideva"] = 0x0910; + t["aiecyrillic"] = 0x04d5; + t["aigujarati"] = 0x0a90; + t["aigurmukhi"] = 0x0a10; + t["aimatragurmukhi"] = 0x0a48; + t["ainarabic"] = 0x0639; + t["ainfinalarabic"] = 0xfeca; + t["aininitialarabic"] = 0xfecb; + t["ainmedialarabic"] = 0xfecc; + t["ainvertedbreve"] = 0x0203; + t["aivowelsignbengali"] = 0x09c8; + t["aivowelsigndeva"] = 0x0948; + t["aivowelsigngujarati"] = 0x0ac8; + t["akatakana"] = 0x30a2; + t["akatakanahalfwidth"] = 0xff71; + t["akorean"] = 0x314f; + t["alef"] = 0x05d0; + t["alefarabic"] = 0x0627; + t["alefdageshhebrew"] = 0xfb30; + t["aleffinalarabic"] = 0xfe8e; + t["alefhamzaabovearabic"] = 0x0623; + t["alefhamzaabovefinalarabic"] = 0xfe84; + t["alefhamzabelowarabic"] = 0x0625; + t["alefhamzabelowfinalarabic"] = 0xfe88; + t["alefhebrew"] = 0x05d0; + t["aleflamedhebrew"] = 0xfb4f; + t["alefmaddaabovearabic"] = 0x0622; + t["alefmaddaabovefinalarabic"] = 0xfe82; + t["alefmaksuraarabic"] = 0x0649; + t["alefmaksurafinalarabic"] = 0xfef0; + t["alefmaksurainitialarabic"] = 0xfef3; + t["alefmaksuramedialarabic"] = 0xfef4; + t["alefpatahhebrew"] = 0xfb2e; + t["alefqamatshebrew"] = 0xfb2f; + t["aleph"] = 0x2135; + t["allequal"] = 0x224c; + t["alpha"] = 0x03b1; + t["alphatonos"] = 0x03ac; + t["amacron"] = 0x0101; + t["amonospace"] = 0xff41; + t["ampersand"] = 0x0026; + t["ampersandmonospace"] = 0xff06; + t["ampersandsmall"] = 0xf726; + t["amsquare"] = 0x33c2; + t["anbopomofo"] = 0x3122; + t["angbopomofo"] = 0x3124; + t["angbracketleft"] = 0x3008; + t["angbracketright"] = 0x3009; + t["angkhankhuthai"] = 0x0e5a; + t["angle"] = 0x2220; + t["anglebracketleft"] = 0x3008; + t["anglebracketleftvertical"] = 0xfe3f; + t["anglebracketright"] = 0x3009; + t["anglebracketrightvertical"] = 0xfe40; + t["angleleft"] = 0x2329; + t["angleright"] = 0x232a; + t["angstrom"] = 0x212b; + t["anoteleia"] = 0x0387; + t["anudattadeva"] = 0x0952; + t["anusvarabengali"] = 0x0982; + t["anusvaradeva"] = 0x0902; + t["anusvaragujarati"] = 0x0a82; + t["aogonek"] = 0x0105; + t["apaatosquare"] = 0x3300; + t["aparen"] = 0x249c; + t["apostrophearmenian"] = 0x055a; + t["apostrophemod"] = 0x02bc; + t["apple"] = 0xf8ff; + t["approaches"] = 0x2250; + t["approxequal"] = 0x2248; + t["approxequalorimage"] = 0x2252; + t["approximatelyequal"] = 0x2245; + t["araeaekorean"] = 0x318e; + t["araeakorean"] = 0x318d; + t["arc"] = 0x2312; + t["arighthalfring"] = 0x1e9a; + t["aring"] = 0x00e5; + t["aringacute"] = 0x01fb; + t["aringbelow"] = 0x1e01; + t["arrowboth"] = 0x2194; + t["arrowdashdown"] = 0x21e3; + t["arrowdashleft"] = 0x21e0; + t["arrowdashright"] = 0x21e2; + t["arrowdashup"] = 0x21e1; + t["arrowdblboth"] = 0x21d4; + t["arrowdbldown"] = 0x21d3; + t["arrowdblleft"] = 0x21d0; + t["arrowdblright"] = 0x21d2; + t["arrowdblup"] = 0x21d1; + t["arrowdown"] = 0x2193; + t["arrowdownleft"] = 0x2199; + t["arrowdownright"] = 0x2198; + t["arrowdownwhite"] = 0x21e9; + t["arrowheaddownmod"] = 0x02c5; + t["arrowheadleftmod"] = 0x02c2; + t["arrowheadrightmod"] = 0x02c3; + t["arrowheadupmod"] = 0x02c4; + t["arrowhorizex"] = 0xf8e7; + t["arrowleft"] = 0x2190; + t["arrowleftdbl"] = 0x21d0; + t["arrowleftdblstroke"] = 0x21cd; + t["arrowleftoverright"] = 0x21c6; + t["arrowleftwhite"] = 0x21e6; + t["arrowright"] = 0x2192; + t["arrowrightdblstroke"] = 0x21cf; + t["arrowrightheavy"] = 0x279e; + t["arrowrightoverleft"] = 0x21c4; + t["arrowrightwhite"] = 0x21e8; + t["arrowtableft"] = 0x21e4; + t["arrowtabright"] = 0x21e5; + t["arrowup"] = 0x2191; + t["arrowupdn"] = 0x2195; + t["arrowupdnbse"] = 0x21a8; + t["arrowupdownbase"] = 0x21a8; + t["arrowupleft"] = 0x2196; + t["arrowupleftofdown"] = 0x21c5; + t["arrowupright"] = 0x2197; + t["arrowupwhite"] = 0x21e7; + t["arrowvertex"] = 0xf8e6; + t["asciicircum"] = 0x005e; + t["asciicircummonospace"] = 0xff3e; + t["asciitilde"] = 0x007e; + t["asciitildemonospace"] = 0xff5e; + t["ascript"] = 0x0251; + t["ascriptturned"] = 0x0252; + t["asmallhiragana"] = 0x3041; + t["asmallkatakana"] = 0x30a1; + t["asmallkatakanahalfwidth"] = 0xff67; + t["asterisk"] = 0x002a; + t["asteriskaltonearabic"] = 0x066d; + t["asteriskarabic"] = 0x066d; + t["asteriskmath"] = 0x2217; + t["asteriskmonospace"] = 0xff0a; + t["asterisksmall"] = 0xfe61; + t["asterism"] = 0x2042; + t["asuperior"] = 0xf6e9; + t["asymptoticallyequal"] = 0x2243; + t["at"] = 0x0040; + t["atilde"] = 0x00e3; + t["atmonospace"] = 0xff20; + t["atsmall"] = 0xfe6b; + t["aturned"] = 0x0250; + t["aubengali"] = 0x0994; + t["aubopomofo"] = 0x3120; + t["audeva"] = 0x0914; + t["augujarati"] = 0x0a94; + t["augurmukhi"] = 0x0a14; + t["aulengthmarkbengali"] = 0x09d7; + t["aumatragurmukhi"] = 0x0a4c; + t["auvowelsignbengali"] = 0x09cc; + t["auvowelsigndeva"] = 0x094c; + t["auvowelsigngujarati"] = 0x0acc; + t["avagrahadeva"] = 0x093d; + t["aybarmenian"] = 0x0561; + t["ayin"] = 0x05e2; + t["ayinaltonehebrew"] = 0xfb20; + t["ayinhebrew"] = 0x05e2; + t["b"] = 0x0062; + t["babengali"] = 0x09ac; + t["backslash"] = 0x005c; + t["backslashmonospace"] = 0xff3c; + t["badeva"] = 0x092c; + t["bagujarati"] = 0x0aac; + t["bagurmukhi"] = 0x0a2c; + t["bahiragana"] = 0x3070; + t["bahtthai"] = 0x0e3f; + t["bakatakana"] = 0x30d0; + t["bar"] = 0x007c; + t["barmonospace"] = 0xff5c; + t["bbopomofo"] = 0x3105; + t["bcircle"] = 0x24d1; + t["bdotaccent"] = 0x1e03; + t["bdotbelow"] = 0x1e05; + t["beamedsixteenthnotes"] = 0x266c; + t["because"] = 0x2235; + t["becyrillic"] = 0x0431; + t["beharabic"] = 0x0628; + t["behfinalarabic"] = 0xfe90; + t["behinitialarabic"] = 0xfe91; + t["behiragana"] = 0x3079; + t["behmedialarabic"] = 0xfe92; + t["behmeeminitialarabic"] = 0xfc9f; + t["behmeemisolatedarabic"] = 0xfc08; + t["behnoonfinalarabic"] = 0xfc6d; + t["bekatakana"] = 0x30d9; + t["benarmenian"] = 0x0562; + t["bet"] = 0x05d1; + t["beta"] = 0x03b2; + t["betasymbolgreek"] = 0x03d0; + t["betdagesh"] = 0xfb31; + t["betdageshhebrew"] = 0xfb31; + t["bethebrew"] = 0x05d1; + t["betrafehebrew"] = 0xfb4c; + t["bhabengali"] = 0x09ad; + t["bhadeva"] = 0x092d; + t["bhagujarati"] = 0x0aad; + t["bhagurmukhi"] = 0x0a2d; + t["bhook"] = 0x0253; + t["bihiragana"] = 0x3073; + t["bikatakana"] = 0x30d3; + t["bilabialclick"] = 0x0298; + t["bindigurmukhi"] = 0x0a02; + t["birusquare"] = 0x3331; + t["blackcircle"] = 0x25cf; + t["blackdiamond"] = 0x25c6; + t["blackdownpointingtriangle"] = 0x25bc; + t["blackleftpointingpointer"] = 0x25c4; + t["blackleftpointingtriangle"] = 0x25c0; + t["blacklenticularbracketleft"] = 0x3010; + t["blacklenticularbracketleftvertical"] = 0xfe3b; + t["blacklenticularbracketright"] = 0x3011; + t["blacklenticularbracketrightvertical"] = 0xfe3c; + t["blacklowerlefttriangle"] = 0x25e3; + t["blacklowerrighttriangle"] = 0x25e2; + t["blackrectangle"] = 0x25ac; + t["blackrightpointingpointer"] = 0x25ba; + t["blackrightpointingtriangle"] = 0x25b6; + t["blacksmallsquare"] = 0x25aa; + t["blacksmilingface"] = 0x263b; + t["blacksquare"] = 0x25a0; + t["blackstar"] = 0x2605; + t["blackupperlefttriangle"] = 0x25e4; + t["blackupperrighttriangle"] = 0x25e5; + t["blackuppointingsmalltriangle"] = 0x25b4; + t["blackuppointingtriangle"] = 0x25b2; + t["blank"] = 0x2423; + t["blinebelow"] = 0x1e07; + t["block"] = 0x2588; + t["bmonospace"] = 0xff42; + t["bobaimaithai"] = 0x0e1a; + t["bohiragana"] = 0x307c; + t["bokatakana"] = 0x30dc; + t["bparen"] = 0x249d; + t["bqsquare"] = 0x33c3; + t["braceex"] = 0xf8f4; + t["braceleft"] = 0x007b; + t["braceleftbt"] = 0xf8f3; + t["braceleftmid"] = 0xf8f2; + t["braceleftmonospace"] = 0xff5b; + t["braceleftsmall"] = 0xfe5b; + t["bracelefttp"] = 0xf8f1; + t["braceleftvertical"] = 0xfe37; + t["braceright"] = 0x007d; + t["bracerightbt"] = 0xf8fe; + t["bracerightmid"] = 0xf8fd; + t["bracerightmonospace"] = 0xff5d; + t["bracerightsmall"] = 0xfe5c; + t["bracerighttp"] = 0xf8fc; + t["bracerightvertical"] = 0xfe38; + t["bracketleft"] = 0x005b; + t["bracketleftbt"] = 0xf8f0; + t["bracketleftex"] = 0xf8ef; + t["bracketleftmonospace"] = 0xff3b; + t["bracketlefttp"] = 0xf8ee; + t["bracketright"] = 0x005d; + t["bracketrightbt"] = 0xf8fb; + t["bracketrightex"] = 0xf8fa; + t["bracketrightmonospace"] = 0xff3d; + t["bracketrighttp"] = 0xf8f9; + t["breve"] = 0x02d8; + t["brevebelowcmb"] = 0x032e; + t["brevecmb"] = 0x0306; + t["breveinvertedbelowcmb"] = 0x032f; + t["breveinvertedcmb"] = 0x0311; + t["breveinverteddoublecmb"] = 0x0361; + t["bridgebelowcmb"] = 0x032a; + t["bridgeinvertedbelowcmb"] = 0x033a; + t["brokenbar"] = 0x00a6; + t["bstroke"] = 0x0180; + t["bsuperior"] = 0xf6ea; + t["btopbar"] = 0x0183; + t["buhiragana"] = 0x3076; + t["bukatakana"] = 0x30d6; + t["bullet"] = 0x2022; + t["bulletinverse"] = 0x25d8; + t["bulletoperator"] = 0x2219; + t["bullseye"] = 0x25ce; + t["c"] = 0x0063; + t["caarmenian"] = 0x056e; + t["cabengali"] = 0x099a; + t["cacute"] = 0x0107; + t["cadeva"] = 0x091a; + t["cagujarati"] = 0x0a9a; + t["cagurmukhi"] = 0x0a1a; + t["calsquare"] = 0x3388; + t["candrabindubengali"] = 0x0981; + t["candrabinducmb"] = 0x0310; + t["candrabindudeva"] = 0x0901; + t["candrabindugujarati"] = 0x0a81; + t["capslock"] = 0x21ea; + t["careof"] = 0x2105; + t["caron"] = 0x02c7; + t["caronbelowcmb"] = 0x032c; + t["caroncmb"] = 0x030c; + t["carriagereturn"] = 0x21b5; + t["cbopomofo"] = 0x3118; + t["ccaron"] = 0x010d; + t["ccedilla"] = 0x00e7; + t["ccedillaacute"] = 0x1e09; + t["ccircle"] = 0x24d2; + t["ccircumflex"] = 0x0109; + t["ccurl"] = 0x0255; + t["cdot"] = 0x010b; + t["cdotaccent"] = 0x010b; + t["cdsquare"] = 0x33c5; + t["cedilla"] = 0x00b8; + t["cedillacmb"] = 0x0327; + t["cent"] = 0x00a2; + t["centigrade"] = 0x2103; + t["centinferior"] = 0xf6df; + t["centmonospace"] = 0xffe0; + t["centoldstyle"] = 0xf7a2; + t["centsuperior"] = 0xf6e0; + t["chaarmenian"] = 0x0579; + t["chabengali"] = 0x099b; + t["chadeva"] = 0x091b; + t["chagujarati"] = 0x0a9b; + t["chagurmukhi"] = 0x0a1b; + t["chbopomofo"] = 0x3114; + t["cheabkhasiancyrillic"] = 0x04bd; + t["checkmark"] = 0x2713; + t["checyrillic"] = 0x0447; + t["chedescenderabkhasiancyrillic"] = 0x04bf; + t["chedescendercyrillic"] = 0x04b7; + t["chedieresiscyrillic"] = 0x04f5; + t["cheharmenian"] = 0x0573; + t["chekhakassiancyrillic"] = 0x04cc; + t["cheverticalstrokecyrillic"] = 0x04b9; + t["chi"] = 0x03c7; + t["chieuchacirclekorean"] = 0x3277; + t["chieuchaparenkorean"] = 0x3217; + t["chieuchcirclekorean"] = 0x3269; + t["chieuchkorean"] = 0x314a; + t["chieuchparenkorean"] = 0x3209; + t["chochangthai"] = 0x0e0a; + t["chochanthai"] = 0x0e08; + t["chochingthai"] = 0x0e09; + t["chochoethai"] = 0x0e0c; + t["chook"] = 0x0188; + t["cieucacirclekorean"] = 0x3276; + t["cieucaparenkorean"] = 0x3216; + t["cieuccirclekorean"] = 0x3268; + t["cieuckorean"] = 0x3148; + t["cieucparenkorean"] = 0x3208; + t["cieucuparenkorean"] = 0x321c; + t["circle"] = 0x25cb; + t["circlecopyrt"] = 0x00a9; + t["circlemultiply"] = 0x2297; + t["circleot"] = 0x2299; + t["circleplus"] = 0x2295; + t["circlepostalmark"] = 0x3036; + t["circlewithlefthalfblack"] = 0x25d0; + t["circlewithrighthalfblack"] = 0x25d1; + t["circumflex"] = 0x02c6; + t["circumflexbelowcmb"] = 0x032d; + t["circumflexcmb"] = 0x0302; + t["clear"] = 0x2327; + t["clickalveolar"] = 0x01c2; + t["clickdental"] = 0x01c0; + t["clicklateral"] = 0x01c1; + t["clickretroflex"] = 0x01c3; + t["club"] = 0x2663; + t["clubsuitblack"] = 0x2663; + t["clubsuitwhite"] = 0x2667; + t["cmcubedsquare"] = 0x33a4; + t["cmonospace"] = 0xff43; + t["cmsquaredsquare"] = 0x33a0; + t["coarmenian"] = 0x0581; + t["colon"] = 0x003a; + t["colonmonetary"] = 0x20a1; + t["colonmonospace"] = 0xff1a; + t["colonsign"] = 0x20a1; + t["colonsmall"] = 0xfe55; + t["colontriangularhalfmod"] = 0x02d1; + t["colontriangularmod"] = 0x02d0; + t["comma"] = 0x002c; + t["commaabovecmb"] = 0x0313; + t["commaaboverightcmb"] = 0x0315; + t["commaaccent"] = 0xf6c3; + t["commaarabic"] = 0x060c; + t["commaarmenian"] = 0x055d; + t["commainferior"] = 0xf6e1; + t["commamonospace"] = 0xff0c; + t["commareversedabovecmb"] = 0x0314; + t["commareversedmod"] = 0x02bd; + t["commasmall"] = 0xfe50; + t["commasuperior"] = 0xf6e2; + t["commaturnedabovecmb"] = 0x0312; + t["commaturnedmod"] = 0x02bb; + t["compass"] = 0x263c; + t["congruent"] = 0x2245; + t["contourintegral"] = 0x222e; + t["control"] = 0x2303; + t["controlACK"] = 0x0006; + t["controlBEL"] = 0x0007; + t["controlBS"] = 0x0008; + t["controlCAN"] = 0x0018; + t["controlCR"] = 0x000d; + t["controlDC1"] = 0x0011; + t["controlDC2"] = 0x0012; + t["controlDC3"] = 0x0013; + t["controlDC4"] = 0x0014; + t["controlDEL"] = 0x007f; + t["controlDLE"] = 0x0010; + t["controlEM"] = 0x0019; + t["controlENQ"] = 0x0005; + t["controlEOT"] = 0x0004; + t["controlESC"] = 0x001b; + t["controlETB"] = 0x0017; + t["controlETX"] = 0x0003; + t["controlFF"] = 0x000c; + t["controlFS"] = 0x001c; + t["controlGS"] = 0x001d; + t["controlHT"] = 0x0009; + t["controlLF"] = 0x000a; + t["controlNAK"] = 0x0015; + t["controlNULL"] = 0x0000; + t["controlRS"] = 0x001e; + t["controlSI"] = 0x000f; + t["controlSO"] = 0x000e; + t["controlSOT"] = 0x0002; + t["controlSTX"] = 0x0001; + t["controlSUB"] = 0x001a; + t["controlSYN"] = 0x0016; + t["controlUS"] = 0x001f; + t["controlVT"] = 0x000b; + t["copyright"] = 0x00a9; + t["copyrightsans"] = 0xf8e9; + t["copyrightserif"] = 0xf6d9; + t["cornerbracketleft"] = 0x300c; + t["cornerbracketlefthalfwidth"] = 0xff62; + t["cornerbracketleftvertical"] = 0xfe41; + t["cornerbracketright"] = 0x300d; + t["cornerbracketrighthalfwidth"] = 0xff63; + t["cornerbracketrightvertical"] = 0xfe42; + t["corporationsquare"] = 0x337f; + t["cosquare"] = 0x33c7; + t["coverkgsquare"] = 0x33c6; + t["cparen"] = 0x249e; + t["cruzeiro"] = 0x20a2; + t["cstretched"] = 0x0297; + t["curlyand"] = 0x22cf; + t["curlyor"] = 0x22ce; + t["currency"] = 0x00a4; + t["cyrBreve"] = 0xf6d1; + t["cyrFlex"] = 0xf6d2; + t["cyrbreve"] = 0xf6d4; + t["cyrflex"] = 0xf6d5; + t["d"] = 0x0064; + t["daarmenian"] = 0x0564; + t["dabengali"] = 0x09a6; + t["dadarabic"] = 0x0636; + t["dadeva"] = 0x0926; + t["dadfinalarabic"] = 0xfebe; + t["dadinitialarabic"] = 0xfebf; + t["dadmedialarabic"] = 0xfec0; + t["dagesh"] = 0x05bc; + t["dageshhebrew"] = 0x05bc; + t["dagger"] = 0x2020; + t["daggerdbl"] = 0x2021; + t["dagujarati"] = 0x0aa6; + t["dagurmukhi"] = 0x0a26; + t["dahiragana"] = 0x3060; + t["dakatakana"] = 0x30c0; + t["dalarabic"] = 0x062f; + t["dalet"] = 0x05d3; + t["daletdagesh"] = 0xfb33; + t["daletdageshhebrew"] = 0xfb33; + t["dalethebrew"] = 0x05d3; + t["dalfinalarabic"] = 0xfeaa; + t["dammaarabic"] = 0x064f; + t["dammalowarabic"] = 0x064f; + t["dammatanaltonearabic"] = 0x064c; + t["dammatanarabic"] = 0x064c; + t["danda"] = 0x0964; + t["dargahebrew"] = 0x05a7; + t["dargalefthebrew"] = 0x05a7; + t["dasiapneumatacyrilliccmb"] = 0x0485; + t["dblGrave"] = 0xf6d3; + t["dblanglebracketleft"] = 0x300a; + t["dblanglebracketleftvertical"] = 0xfe3d; + t["dblanglebracketright"] = 0x300b; + t["dblanglebracketrightvertical"] = 0xfe3e; + t["dblarchinvertedbelowcmb"] = 0x032b; + t["dblarrowleft"] = 0x21d4; + t["dblarrowright"] = 0x21d2; + t["dbldanda"] = 0x0965; + t["dblgrave"] = 0xf6d6; + t["dblgravecmb"] = 0x030f; + t["dblintegral"] = 0x222c; + t["dbllowline"] = 0x2017; + t["dbllowlinecmb"] = 0x0333; + t["dbloverlinecmb"] = 0x033f; + t["dblprimemod"] = 0x02ba; + t["dblverticalbar"] = 0x2016; + t["dblverticallineabovecmb"] = 0x030e; + t["dbopomofo"] = 0x3109; + t["dbsquare"] = 0x33c8; + t["dcaron"] = 0x010f; + t["dcedilla"] = 0x1e11; + t["dcircle"] = 0x24d3; + t["dcircumflexbelow"] = 0x1e13; + t["dcroat"] = 0x0111; + t["ddabengali"] = 0x09a1; + t["ddadeva"] = 0x0921; + t["ddagujarati"] = 0x0aa1; + t["ddagurmukhi"] = 0x0a21; + t["ddalarabic"] = 0x0688; + t["ddalfinalarabic"] = 0xfb89; + t["dddhadeva"] = 0x095c; + t["ddhabengali"] = 0x09a2; + t["ddhadeva"] = 0x0922; + t["ddhagujarati"] = 0x0aa2; + t["ddhagurmukhi"] = 0x0a22; + t["ddotaccent"] = 0x1e0b; + t["ddotbelow"] = 0x1e0d; + t["decimalseparatorarabic"] = 0x066b; + t["decimalseparatorpersian"] = 0x066b; + t["decyrillic"] = 0x0434; + t["degree"] = 0x00b0; + t["dehihebrew"] = 0x05ad; + t["dehiragana"] = 0x3067; + t["deicoptic"] = 0x03ef; + t["dekatakana"] = 0x30c7; + t["deleteleft"] = 0x232b; + t["deleteright"] = 0x2326; + t["delta"] = 0x03b4; + t["deltaturned"] = 0x018d; + t["denominatorminusonenumeratorbengali"] = 0x09f8; + t["dezh"] = 0x02a4; + t["dhabengali"] = 0x09a7; + t["dhadeva"] = 0x0927; + t["dhagujarati"] = 0x0aa7; + t["dhagurmukhi"] = 0x0a27; + t["dhook"] = 0x0257; + t["dialytikatonos"] = 0x0385; + t["dialytikatonoscmb"] = 0x0344; + t["diamond"] = 0x2666; + t["diamondsuitwhite"] = 0x2662; + t["dieresis"] = 0x00a8; + t["dieresisacute"] = 0xf6d7; + t["dieresisbelowcmb"] = 0x0324; + t["dieresiscmb"] = 0x0308; + t["dieresisgrave"] = 0xf6d8; + t["dieresistonos"] = 0x0385; + t["dihiragana"] = 0x3062; + t["dikatakana"] = 0x30c2; + t["dittomark"] = 0x3003; + t["divide"] = 0x00f7; + t["divides"] = 0x2223; + t["divisionslash"] = 0x2215; + t["djecyrillic"] = 0x0452; + t["dkshade"] = 0x2593; + t["dlinebelow"] = 0x1e0f; + t["dlsquare"] = 0x3397; + t["dmacron"] = 0x0111; + t["dmonospace"] = 0xff44; + t["dnblock"] = 0x2584; + t["dochadathai"] = 0x0e0e; + t["dodekthai"] = 0x0e14; + t["dohiragana"] = 0x3069; + t["dokatakana"] = 0x30c9; + t["dollar"] = 0x0024; + t["dollarinferior"] = 0xf6e3; + t["dollarmonospace"] = 0xff04; + t["dollaroldstyle"] = 0xf724; + t["dollarsmall"] = 0xfe69; + t["dollarsuperior"] = 0xf6e4; + t["dong"] = 0x20ab; + t["dorusquare"] = 0x3326; + t["dotaccent"] = 0x02d9; + t["dotaccentcmb"] = 0x0307; + t["dotbelowcmb"] = 0x0323; + t["dotbelowcomb"] = 0x0323; + t["dotkatakana"] = 0x30fb; + t["dotlessi"] = 0x0131; + t["dotlessj"] = 0xf6be; + t["dotlessjstrokehook"] = 0x0284; + t["dotmath"] = 0x22c5; + t["dottedcircle"] = 0x25cc; + t["doubleyodpatah"] = 0xfb1f; + t["doubleyodpatahhebrew"] = 0xfb1f; + t["downtackbelowcmb"] = 0x031e; + t["downtackmod"] = 0x02d5; + t["dparen"] = 0x249f; + t["dsuperior"] = 0xf6eb; + t["dtail"] = 0x0256; + t["dtopbar"] = 0x018c; + t["duhiragana"] = 0x3065; + t["dukatakana"] = 0x30c5; + t["dz"] = 0x01f3; + t["dzaltone"] = 0x02a3; + t["dzcaron"] = 0x01c6; + t["dzcurl"] = 0x02a5; + t["dzeabkhasiancyrillic"] = 0x04e1; + t["dzecyrillic"] = 0x0455; + t["dzhecyrillic"] = 0x045f; + t["e"] = 0x0065; + t["eacute"] = 0x00e9; + t["earth"] = 0x2641; + t["ebengali"] = 0x098f; + t["ebopomofo"] = 0x311c; + t["ebreve"] = 0x0115; + t["ecandradeva"] = 0x090d; + t["ecandragujarati"] = 0x0a8d; + t["ecandravowelsigndeva"] = 0x0945; + t["ecandravowelsigngujarati"] = 0x0ac5; + t["ecaron"] = 0x011b; + t["ecedillabreve"] = 0x1e1d; + t["echarmenian"] = 0x0565; + t["echyiwnarmenian"] = 0x0587; + t["ecircle"] = 0x24d4; + t["ecircumflex"] = 0x00ea; + t["ecircumflexacute"] = 0x1ebf; + t["ecircumflexbelow"] = 0x1e19; + t["ecircumflexdotbelow"] = 0x1ec7; + t["ecircumflexgrave"] = 0x1ec1; + t["ecircumflexhookabove"] = 0x1ec3; + t["ecircumflextilde"] = 0x1ec5; + t["ecyrillic"] = 0x0454; + t["edblgrave"] = 0x0205; + t["edeva"] = 0x090f; + t["edieresis"] = 0x00eb; + t["edot"] = 0x0117; + t["edotaccent"] = 0x0117; + t["edotbelow"] = 0x1eb9; + t["eegurmukhi"] = 0x0a0f; + t["eematragurmukhi"] = 0x0a47; + t["efcyrillic"] = 0x0444; + t["egrave"] = 0x00e8; + t["egujarati"] = 0x0a8f; + t["eharmenian"] = 0x0567; + t["ehbopomofo"] = 0x311d; + t["ehiragana"] = 0x3048; + t["ehookabove"] = 0x1ebb; + t["eibopomofo"] = 0x311f; + t["eight"] = 0x0038; + t["eightarabic"] = 0x0668; + t["eightbengali"] = 0x09ee; + t["eightcircle"] = 0x2467; + t["eightcircleinversesansserif"] = 0x2791; + t["eightdeva"] = 0x096e; + t["eighteencircle"] = 0x2471; + t["eighteenparen"] = 0x2485; + t["eighteenperiod"] = 0x2499; + t["eightgujarati"] = 0x0aee; + t["eightgurmukhi"] = 0x0a6e; + t["eighthackarabic"] = 0x0668; + t["eighthangzhou"] = 0x3028; + t["eighthnotebeamed"] = 0x266b; + t["eightideographicparen"] = 0x3227; + t["eightinferior"] = 0x2088; + t["eightmonospace"] = 0xff18; + t["eightoldstyle"] = 0xf738; + t["eightparen"] = 0x247b; + t["eightperiod"] = 0x248f; + t["eightpersian"] = 0x06f8; + t["eightroman"] = 0x2177; + t["eightsuperior"] = 0x2078; + t["eightthai"] = 0x0e58; + t["einvertedbreve"] = 0x0207; + t["eiotifiedcyrillic"] = 0x0465; + t["ekatakana"] = 0x30a8; + t["ekatakanahalfwidth"] = 0xff74; + t["ekonkargurmukhi"] = 0x0a74; + t["ekorean"] = 0x3154; + t["elcyrillic"] = 0x043b; + t["element"] = 0x2208; + t["elevencircle"] = 0x246a; + t["elevenparen"] = 0x247e; + t["elevenperiod"] = 0x2492; + t["elevenroman"] = 0x217a; + t["ellipsis"] = 0x2026; + t["ellipsisvertical"] = 0x22ee; + t["emacron"] = 0x0113; + t["emacronacute"] = 0x1e17; + t["emacrongrave"] = 0x1e15; + t["emcyrillic"] = 0x043c; + t["emdash"] = 0x2014; + t["emdashvertical"] = 0xfe31; + t["emonospace"] = 0xff45; + t["emphasismarkarmenian"] = 0x055b; + t["emptyset"] = 0x2205; + t["enbopomofo"] = 0x3123; + t["encyrillic"] = 0x043d; + t["endash"] = 0x2013; + t["endashvertical"] = 0xfe32; + t["endescendercyrillic"] = 0x04a3; + t["eng"] = 0x014b; + t["engbopomofo"] = 0x3125; + t["enghecyrillic"] = 0x04a5; + t["enhookcyrillic"] = 0x04c8; + t["enspace"] = 0x2002; + t["eogonek"] = 0x0119; + t["eokorean"] = 0x3153; + t["eopen"] = 0x025b; + t["eopenclosed"] = 0x029a; + t["eopenreversed"] = 0x025c; + t["eopenreversedclosed"] = 0x025e; + t["eopenreversedhook"] = 0x025d; + t["eparen"] = 0x24a0; + t["epsilon"] = 0x03b5; + t["epsilontonos"] = 0x03ad; + t["equal"] = 0x003d; + t["equalmonospace"] = 0xff1d; + t["equalsmall"] = 0xfe66; + t["equalsuperior"] = 0x207c; + t["equivalence"] = 0x2261; + t["erbopomofo"] = 0x3126; + t["ercyrillic"] = 0x0440; + t["ereversed"] = 0x0258; + t["ereversedcyrillic"] = 0x044d; + t["escyrillic"] = 0x0441; + t["esdescendercyrillic"] = 0x04ab; + t["esh"] = 0x0283; + t["eshcurl"] = 0x0286; + t["eshortdeva"] = 0x090e; + t["eshortvowelsigndeva"] = 0x0946; + t["eshreversedloop"] = 0x01aa; + t["eshsquatreversed"] = 0x0285; + t["esmallhiragana"] = 0x3047; + t["esmallkatakana"] = 0x30a7; + t["esmallkatakanahalfwidth"] = 0xff6a; + t["estimated"] = 0x212e; + t["esuperior"] = 0xf6ec; + t["eta"] = 0x03b7; + t["etarmenian"] = 0x0568; + t["etatonos"] = 0x03ae; + t["eth"] = 0x00f0; + t["etilde"] = 0x1ebd; + t["etildebelow"] = 0x1e1b; + t["etnahtafoukhhebrew"] = 0x0591; + t["etnahtafoukhlefthebrew"] = 0x0591; + t["etnahtahebrew"] = 0x0591; + t["etnahtalefthebrew"] = 0x0591; + t["eturned"] = 0x01dd; + t["eukorean"] = 0x3161; + t["euro"] = 0x20ac; + t["evowelsignbengali"] = 0x09c7; + t["evowelsigndeva"] = 0x0947; + t["evowelsigngujarati"] = 0x0ac7; + t["exclam"] = 0x0021; + t["exclamarmenian"] = 0x055c; + t["exclamdbl"] = 0x203c; + t["exclamdown"] = 0x00a1; + t["exclamdownsmall"] = 0xf7a1; + t["exclammonospace"] = 0xff01; + t["exclamsmall"] = 0xf721; + t["existential"] = 0x2203; + t["ezh"] = 0x0292; + t["ezhcaron"] = 0x01ef; + t["ezhcurl"] = 0x0293; + t["ezhreversed"] = 0x01b9; + t["ezhtail"] = 0x01ba; + t["f"] = 0x0066; + t["fadeva"] = 0x095e; + t["fagurmukhi"] = 0x0a5e; + t["fahrenheit"] = 0x2109; + t["fathaarabic"] = 0x064e; + t["fathalowarabic"] = 0x064e; + t["fathatanarabic"] = 0x064b; + t["fbopomofo"] = 0x3108; + t["fcircle"] = 0x24d5; + t["fdotaccent"] = 0x1e1f; + t["feharabic"] = 0x0641; + t["feharmenian"] = 0x0586; + t["fehfinalarabic"] = 0xfed2; + t["fehinitialarabic"] = 0xfed3; + t["fehmedialarabic"] = 0xfed4; + t["feicoptic"] = 0x03e5; + t["female"] = 0x2640; + t["ff"] = 0xfb00; + t["f_f"] = 0xfb00; + t["ffi"] = 0xfb03; + t["ffl"] = 0xfb04; + t["fi"] = 0xfb01; + t["fifteencircle"] = 0x246e; + t["fifteenparen"] = 0x2482; + t["fifteenperiod"] = 0x2496; + t["figuredash"] = 0x2012; + t["filledbox"] = 0x25a0; + t["filledrect"] = 0x25ac; + t["finalkaf"] = 0x05da; + t["finalkafdagesh"] = 0xfb3a; + t["finalkafdageshhebrew"] = 0xfb3a; + t["finalkafhebrew"] = 0x05da; + t["finalmem"] = 0x05dd; + t["finalmemhebrew"] = 0x05dd; + t["finalnun"] = 0x05df; + t["finalnunhebrew"] = 0x05df; + t["finalpe"] = 0x05e3; + t["finalpehebrew"] = 0x05e3; + t["finaltsadi"] = 0x05e5; + t["finaltsadihebrew"] = 0x05e5; + t["firsttonechinese"] = 0x02c9; + t["fisheye"] = 0x25c9; + t["fitacyrillic"] = 0x0473; + t["five"] = 0x0035; + t["fivearabic"] = 0x0665; + t["fivebengali"] = 0x09eb; + t["fivecircle"] = 0x2464; + t["fivecircleinversesansserif"] = 0x278e; + t["fivedeva"] = 0x096b; + t["fiveeighths"] = 0x215d; + t["fivegujarati"] = 0x0aeb; + t["fivegurmukhi"] = 0x0a6b; + t["fivehackarabic"] = 0x0665; + t["fivehangzhou"] = 0x3025; + t["fiveideographicparen"] = 0x3224; + t["fiveinferior"] = 0x2085; + t["fivemonospace"] = 0xff15; + t["fiveoldstyle"] = 0xf735; + t["fiveparen"] = 0x2478; + t["fiveperiod"] = 0x248c; + t["fivepersian"] = 0x06f5; + t["fiveroman"] = 0x2174; + t["fivesuperior"] = 0x2075; + t["fivethai"] = 0x0e55; + t["fl"] = 0xfb02; + t["florin"] = 0x0192; + t["fmonospace"] = 0xff46; + t["fmsquare"] = 0x3399; + t["fofanthai"] = 0x0e1f; + t["fofathai"] = 0x0e1d; + t["fongmanthai"] = 0x0e4f; + t["forall"] = 0x2200; + t["four"] = 0x0034; + t["fourarabic"] = 0x0664; + t["fourbengali"] = 0x09ea; + t["fourcircle"] = 0x2463; + t["fourcircleinversesansserif"] = 0x278d; + t["fourdeva"] = 0x096a; + t["fourgujarati"] = 0x0aea; + t["fourgurmukhi"] = 0x0a6a; + t["fourhackarabic"] = 0x0664; + t["fourhangzhou"] = 0x3024; + t["fourideographicparen"] = 0x3223; + t["fourinferior"] = 0x2084; + t["fourmonospace"] = 0xff14; + t["fournumeratorbengali"] = 0x09f7; + t["fouroldstyle"] = 0xf734; + t["fourparen"] = 0x2477; + t["fourperiod"] = 0x248b; + t["fourpersian"] = 0x06f4; + t["fourroman"] = 0x2173; + t["foursuperior"] = 0x2074; + t["fourteencircle"] = 0x246d; + t["fourteenparen"] = 0x2481; + t["fourteenperiod"] = 0x2495; + t["fourthai"] = 0x0e54; + t["fourthtonechinese"] = 0x02cb; + t["fparen"] = 0x24a1; + t["fraction"] = 0x2044; + t["franc"] = 0x20a3; + t["g"] = 0x0067; + t["gabengali"] = 0x0997; + t["gacute"] = 0x01f5; + t["gadeva"] = 0x0917; + t["gafarabic"] = 0x06af; + t["gaffinalarabic"] = 0xfb93; + t["gafinitialarabic"] = 0xfb94; + t["gafmedialarabic"] = 0xfb95; + t["gagujarati"] = 0x0a97; + t["gagurmukhi"] = 0x0a17; + t["gahiragana"] = 0x304c; + t["gakatakana"] = 0x30ac; + t["gamma"] = 0x03b3; + t["gammalatinsmall"] = 0x0263; + t["gammasuperior"] = 0x02e0; + t["gangiacoptic"] = 0x03eb; + t["gbopomofo"] = 0x310d; + t["gbreve"] = 0x011f; + t["gcaron"] = 0x01e7; + t["gcedilla"] = 0x0123; + t["gcircle"] = 0x24d6; + t["gcircumflex"] = 0x011d; + t["gcommaaccent"] = 0x0123; + t["gdot"] = 0x0121; + t["gdotaccent"] = 0x0121; + t["gecyrillic"] = 0x0433; + t["gehiragana"] = 0x3052; + t["gekatakana"] = 0x30b2; + t["geometricallyequal"] = 0x2251; + t["gereshaccenthebrew"] = 0x059c; + t["gereshhebrew"] = 0x05f3; + t["gereshmuqdamhebrew"] = 0x059d; + t["germandbls"] = 0x00df; + t["gershayimaccenthebrew"] = 0x059e; + t["gershayimhebrew"] = 0x05f4; + t["getamark"] = 0x3013; + t["ghabengali"] = 0x0998; + t["ghadarmenian"] = 0x0572; + t["ghadeva"] = 0x0918; + t["ghagujarati"] = 0x0a98; + t["ghagurmukhi"] = 0x0a18; + t["ghainarabic"] = 0x063a; + t["ghainfinalarabic"] = 0xfece; + t["ghaininitialarabic"] = 0xfecf; + t["ghainmedialarabic"] = 0xfed0; + t["ghemiddlehookcyrillic"] = 0x0495; + t["ghestrokecyrillic"] = 0x0493; + t["gheupturncyrillic"] = 0x0491; + t["ghhadeva"] = 0x095a; + t["ghhagurmukhi"] = 0x0a5a; + t["ghook"] = 0x0260; + t["ghzsquare"] = 0x3393; + t["gihiragana"] = 0x304e; + t["gikatakana"] = 0x30ae; + t["gimarmenian"] = 0x0563; + t["gimel"] = 0x05d2; + t["gimeldagesh"] = 0xfb32; + t["gimeldageshhebrew"] = 0xfb32; + t["gimelhebrew"] = 0x05d2; + t["gjecyrillic"] = 0x0453; + t["glottalinvertedstroke"] = 0x01be; + t["glottalstop"] = 0x0294; + t["glottalstopinverted"] = 0x0296; + t["glottalstopmod"] = 0x02c0; + t["glottalstopreversed"] = 0x0295; + t["glottalstopreversedmod"] = 0x02c1; + t["glottalstopreversedsuperior"] = 0x02e4; + t["glottalstopstroke"] = 0x02a1; + t["glottalstopstrokereversed"] = 0x02a2; + t["gmacron"] = 0x1e21; + t["gmonospace"] = 0xff47; + t["gohiragana"] = 0x3054; + t["gokatakana"] = 0x30b4; + t["gparen"] = 0x24a2; + t["gpasquare"] = 0x33ac; + t["gradient"] = 0x2207; + t["grave"] = 0x0060; + t["gravebelowcmb"] = 0x0316; + t["gravecmb"] = 0x0300; + t["gravecomb"] = 0x0300; + t["gravedeva"] = 0x0953; + t["gravelowmod"] = 0x02ce; + t["gravemonospace"] = 0xff40; + t["gravetonecmb"] = 0x0340; + t["greater"] = 0x003e; + t["greaterequal"] = 0x2265; + t["greaterequalorless"] = 0x22db; + t["greatermonospace"] = 0xff1e; + t["greaterorequivalent"] = 0x2273; + t["greaterorless"] = 0x2277; + t["greateroverequal"] = 0x2267; + t["greatersmall"] = 0xfe65; + t["gscript"] = 0x0261; + t["gstroke"] = 0x01e5; + t["guhiragana"] = 0x3050; + t["guillemotleft"] = 0x00ab; + t["guillemotright"] = 0x00bb; + t["guilsinglleft"] = 0x2039; + t["guilsinglright"] = 0x203a; + t["gukatakana"] = 0x30b0; + t["guramusquare"] = 0x3318; + t["gysquare"] = 0x33c9; + t["h"] = 0x0068; + t["haabkhasiancyrillic"] = 0x04a9; + t["haaltonearabic"] = 0x06c1; + t["habengali"] = 0x09b9; + t["hadescendercyrillic"] = 0x04b3; + t["hadeva"] = 0x0939; + t["hagujarati"] = 0x0ab9; + t["hagurmukhi"] = 0x0a39; + t["haharabic"] = 0x062d; + t["hahfinalarabic"] = 0xfea2; + t["hahinitialarabic"] = 0xfea3; + t["hahiragana"] = 0x306f; + t["hahmedialarabic"] = 0xfea4; + t["haitusquare"] = 0x332a; + t["hakatakana"] = 0x30cf; + t["hakatakanahalfwidth"] = 0xff8a; + t["halantgurmukhi"] = 0x0a4d; + t["hamzaarabic"] = 0x0621; + t["hamzalowarabic"] = 0x0621; + t["hangulfiller"] = 0x3164; + t["hardsigncyrillic"] = 0x044a; + t["harpoonleftbarbup"] = 0x21bc; + t["harpoonrightbarbup"] = 0x21c0; + t["hasquare"] = 0x33ca; + t["hatafpatah"] = 0x05b2; + t["hatafpatah16"] = 0x05b2; + t["hatafpatah23"] = 0x05b2; + t["hatafpatah2f"] = 0x05b2; + t["hatafpatahhebrew"] = 0x05b2; + t["hatafpatahnarrowhebrew"] = 0x05b2; + t["hatafpatahquarterhebrew"] = 0x05b2; + t["hatafpatahwidehebrew"] = 0x05b2; + t["hatafqamats"] = 0x05b3; + t["hatafqamats1b"] = 0x05b3; + t["hatafqamats28"] = 0x05b3; + t["hatafqamats34"] = 0x05b3; + t["hatafqamatshebrew"] = 0x05b3; + t["hatafqamatsnarrowhebrew"] = 0x05b3; + t["hatafqamatsquarterhebrew"] = 0x05b3; + t["hatafqamatswidehebrew"] = 0x05b3; + t["hatafsegol"] = 0x05b1; + t["hatafsegol17"] = 0x05b1; + t["hatafsegol24"] = 0x05b1; + t["hatafsegol30"] = 0x05b1; + t["hatafsegolhebrew"] = 0x05b1; + t["hatafsegolnarrowhebrew"] = 0x05b1; + t["hatafsegolquarterhebrew"] = 0x05b1; + t["hatafsegolwidehebrew"] = 0x05b1; + t["hbar"] = 0x0127; + t["hbopomofo"] = 0x310f; + t["hbrevebelow"] = 0x1e2b; + t["hcedilla"] = 0x1e29; + t["hcircle"] = 0x24d7; + t["hcircumflex"] = 0x0125; + t["hdieresis"] = 0x1e27; + t["hdotaccent"] = 0x1e23; + t["hdotbelow"] = 0x1e25; + t["he"] = 0x05d4; + t["heart"] = 0x2665; + t["heartsuitblack"] = 0x2665; + t["heartsuitwhite"] = 0x2661; + t["hedagesh"] = 0xfb34; + t["hedageshhebrew"] = 0xfb34; + t["hehaltonearabic"] = 0x06c1; + t["heharabic"] = 0x0647; + t["hehebrew"] = 0x05d4; + t["hehfinalaltonearabic"] = 0xfba7; + t["hehfinalalttwoarabic"] = 0xfeea; + t["hehfinalarabic"] = 0xfeea; + t["hehhamzaabovefinalarabic"] = 0xfba5; + t["hehhamzaaboveisolatedarabic"] = 0xfba4; + t["hehinitialaltonearabic"] = 0xfba8; + t["hehinitialarabic"] = 0xfeeb; + t["hehiragana"] = 0x3078; + t["hehmedialaltonearabic"] = 0xfba9; + t["hehmedialarabic"] = 0xfeec; + t["heiseierasquare"] = 0x337b; + t["hekatakana"] = 0x30d8; + t["hekatakanahalfwidth"] = 0xff8d; + t["hekutaarusquare"] = 0x3336; + t["henghook"] = 0x0267; + t["herutusquare"] = 0x3339; + t["het"] = 0x05d7; + t["hethebrew"] = 0x05d7; + t["hhook"] = 0x0266; + t["hhooksuperior"] = 0x02b1; + t["hieuhacirclekorean"] = 0x327b; + t["hieuhaparenkorean"] = 0x321b; + t["hieuhcirclekorean"] = 0x326d; + t["hieuhkorean"] = 0x314e; + t["hieuhparenkorean"] = 0x320d; + t["hihiragana"] = 0x3072; + t["hikatakana"] = 0x30d2; + t["hikatakanahalfwidth"] = 0xff8b; + t["hiriq"] = 0x05b4; + t["hiriq14"] = 0x05b4; + t["hiriq21"] = 0x05b4; + t["hiriq2d"] = 0x05b4; + t["hiriqhebrew"] = 0x05b4; + t["hiriqnarrowhebrew"] = 0x05b4; + t["hiriqquarterhebrew"] = 0x05b4; + t["hiriqwidehebrew"] = 0x05b4; + t["hlinebelow"] = 0x1e96; + t["hmonospace"] = 0xff48; + t["hoarmenian"] = 0x0570; + t["hohipthai"] = 0x0e2b; + t["hohiragana"] = 0x307b; + t["hokatakana"] = 0x30db; + t["hokatakanahalfwidth"] = 0xff8e; + t["holam"] = 0x05b9; + t["holam19"] = 0x05b9; + t["holam26"] = 0x05b9; + t["holam32"] = 0x05b9; + t["holamhebrew"] = 0x05b9; + t["holamnarrowhebrew"] = 0x05b9; + t["holamquarterhebrew"] = 0x05b9; + t["holamwidehebrew"] = 0x05b9; + t["honokhukthai"] = 0x0e2e; + t["hookabovecomb"] = 0x0309; + t["hookcmb"] = 0x0309; + t["hookpalatalizedbelowcmb"] = 0x0321; + t["hookretroflexbelowcmb"] = 0x0322; + t["hoonsquare"] = 0x3342; + t["horicoptic"] = 0x03e9; + t["horizontalbar"] = 0x2015; + t["horncmb"] = 0x031b; + t["hotsprings"] = 0x2668; + t["house"] = 0x2302; + t["hparen"] = 0x24a3; + t["hsuperior"] = 0x02b0; + t["hturned"] = 0x0265; + t["huhiragana"] = 0x3075; + t["huiitosquare"] = 0x3333; + t["hukatakana"] = 0x30d5; + t["hukatakanahalfwidth"] = 0xff8c; + t["hungarumlaut"] = 0x02dd; + t["hungarumlautcmb"] = 0x030b; + t["hv"] = 0x0195; + t["hyphen"] = 0x002d; + t["hypheninferior"] = 0xf6e5; + t["hyphenmonospace"] = 0xff0d; + t["hyphensmall"] = 0xfe63; + t["hyphensuperior"] = 0xf6e6; + t["hyphentwo"] = 0x2010; + t["i"] = 0x0069; + t["iacute"] = 0x00ed; + t["iacyrillic"] = 0x044f; + t["ibengali"] = 0x0987; + t["ibopomofo"] = 0x3127; + t["ibreve"] = 0x012d; + t["icaron"] = 0x01d0; + t["icircle"] = 0x24d8; + t["icircumflex"] = 0x00ee; + t["icyrillic"] = 0x0456; + t["idblgrave"] = 0x0209; + t["ideographearthcircle"] = 0x328f; + t["ideographfirecircle"] = 0x328b; + t["ideographicallianceparen"] = 0x323f; + t["ideographiccallparen"] = 0x323a; + t["ideographiccentrecircle"] = 0x32a5; + t["ideographicclose"] = 0x3006; + t["ideographiccomma"] = 0x3001; + t["ideographiccommaleft"] = 0xff64; + t["ideographiccongratulationparen"] = 0x3237; + t["ideographiccorrectcircle"] = 0x32a3; + t["ideographicearthparen"] = 0x322f; + t["ideographicenterpriseparen"] = 0x323d; + t["ideographicexcellentcircle"] = 0x329d; + t["ideographicfestivalparen"] = 0x3240; + t["ideographicfinancialcircle"] = 0x3296; + t["ideographicfinancialparen"] = 0x3236; + t["ideographicfireparen"] = 0x322b; + t["ideographichaveparen"] = 0x3232; + t["ideographichighcircle"] = 0x32a4; + t["ideographiciterationmark"] = 0x3005; + t["ideographiclaborcircle"] = 0x3298; + t["ideographiclaborparen"] = 0x3238; + t["ideographicleftcircle"] = 0x32a7; + t["ideographiclowcircle"] = 0x32a6; + t["ideographicmedicinecircle"] = 0x32a9; + t["ideographicmetalparen"] = 0x322e; + t["ideographicmoonparen"] = 0x322a; + t["ideographicnameparen"] = 0x3234; + t["ideographicperiod"] = 0x3002; + t["ideographicprintcircle"] = 0x329e; + t["ideographicreachparen"] = 0x3243; + t["ideographicrepresentparen"] = 0x3239; + t["ideographicresourceparen"] = 0x323e; + t["ideographicrightcircle"] = 0x32a8; + t["ideographicsecretcircle"] = 0x3299; + t["ideographicselfparen"] = 0x3242; + t["ideographicsocietyparen"] = 0x3233; + t["ideographicspace"] = 0x3000; + t["ideographicspecialparen"] = 0x3235; + t["ideographicstockparen"] = 0x3231; + t["ideographicstudyparen"] = 0x323b; + t["ideographicsunparen"] = 0x3230; + t["ideographicsuperviseparen"] = 0x323c; + t["ideographicwaterparen"] = 0x322c; + t["ideographicwoodparen"] = 0x322d; + t["ideographiczero"] = 0x3007; + t["ideographmetalcircle"] = 0x328e; + t["ideographmooncircle"] = 0x328a; + t["ideographnamecircle"] = 0x3294; + t["ideographsuncircle"] = 0x3290; + t["ideographwatercircle"] = 0x328c; + t["ideographwoodcircle"] = 0x328d; + t["ideva"] = 0x0907; + t["idieresis"] = 0x00ef; + t["idieresisacute"] = 0x1e2f; + t["idieresiscyrillic"] = 0x04e5; + t["idotbelow"] = 0x1ecb; + t["iebrevecyrillic"] = 0x04d7; + t["iecyrillic"] = 0x0435; + t["ieungacirclekorean"] = 0x3275; + t["ieungaparenkorean"] = 0x3215; + t["ieungcirclekorean"] = 0x3267; + t["ieungkorean"] = 0x3147; + t["ieungparenkorean"] = 0x3207; + t["igrave"] = 0x00ec; + t["igujarati"] = 0x0a87; + t["igurmukhi"] = 0x0a07; + t["ihiragana"] = 0x3044; + t["ihookabove"] = 0x1ec9; + t["iibengali"] = 0x0988; + t["iicyrillic"] = 0x0438; + t["iideva"] = 0x0908; + t["iigujarati"] = 0x0a88; + t["iigurmukhi"] = 0x0a08; + t["iimatragurmukhi"] = 0x0a40; + t["iinvertedbreve"] = 0x020b; + t["iishortcyrillic"] = 0x0439; + t["iivowelsignbengali"] = 0x09c0; + t["iivowelsigndeva"] = 0x0940; + t["iivowelsigngujarati"] = 0x0ac0; + t["ij"] = 0x0133; + t["ikatakana"] = 0x30a4; + t["ikatakanahalfwidth"] = 0xff72; + t["ikorean"] = 0x3163; + t["ilde"] = 0x02dc; + t["iluyhebrew"] = 0x05ac; + t["imacron"] = 0x012b; + t["imacroncyrillic"] = 0x04e3; + t["imageorapproximatelyequal"] = 0x2253; + t["imatragurmukhi"] = 0x0a3f; + t["imonospace"] = 0xff49; + t["increment"] = 0x2206; + t["infinity"] = 0x221e; + t["iniarmenian"] = 0x056b; + t["integral"] = 0x222b; + t["integralbottom"] = 0x2321; + t["integralbt"] = 0x2321; + t["integralex"] = 0xf8f5; + t["integraltop"] = 0x2320; + t["integraltp"] = 0x2320; + t["intersection"] = 0x2229; + t["intisquare"] = 0x3305; + t["invbullet"] = 0x25d8; + t["invcircle"] = 0x25d9; + t["invsmileface"] = 0x263b; + t["iocyrillic"] = 0x0451; + t["iogonek"] = 0x012f; + t["iota"] = 0x03b9; + t["iotadieresis"] = 0x03ca; + t["iotadieresistonos"] = 0x0390; + t["iotalatin"] = 0x0269; + t["iotatonos"] = 0x03af; + t["iparen"] = 0x24a4; + t["irigurmukhi"] = 0x0a72; + t["ismallhiragana"] = 0x3043; + t["ismallkatakana"] = 0x30a3; + t["ismallkatakanahalfwidth"] = 0xff68; + t["issharbengali"] = 0x09fa; + t["istroke"] = 0x0268; + t["isuperior"] = 0xf6ed; + t["iterationhiragana"] = 0x309d; + t["iterationkatakana"] = 0x30fd; + t["itilde"] = 0x0129; + t["itildebelow"] = 0x1e2d; + t["iubopomofo"] = 0x3129; + t["iucyrillic"] = 0x044e; + t["ivowelsignbengali"] = 0x09bf; + t["ivowelsigndeva"] = 0x093f; + t["ivowelsigngujarati"] = 0x0abf; + t["izhitsacyrillic"] = 0x0475; + t["izhitsadblgravecyrillic"] = 0x0477; + t["j"] = 0x006a; + t["jaarmenian"] = 0x0571; + t["jabengali"] = 0x099c; + t["jadeva"] = 0x091c; + t["jagujarati"] = 0x0a9c; + t["jagurmukhi"] = 0x0a1c; + t["jbopomofo"] = 0x3110; + t["jcaron"] = 0x01f0; + t["jcircle"] = 0x24d9; + t["jcircumflex"] = 0x0135; + t["jcrossedtail"] = 0x029d; + t["jdotlessstroke"] = 0x025f; + t["jecyrillic"] = 0x0458; + t["jeemarabic"] = 0x062c; + t["jeemfinalarabic"] = 0xfe9e; + t["jeeminitialarabic"] = 0xfe9f; + t["jeemmedialarabic"] = 0xfea0; + t["jeharabic"] = 0x0698; + t["jehfinalarabic"] = 0xfb8b; + t["jhabengali"] = 0x099d; + t["jhadeva"] = 0x091d; + t["jhagujarati"] = 0x0a9d; + t["jhagurmukhi"] = 0x0a1d; + t["jheharmenian"] = 0x057b; + t["jis"] = 0x3004; + t["jmonospace"] = 0xff4a; + t["jparen"] = 0x24a5; + t["jsuperior"] = 0x02b2; + t["k"] = 0x006b; + t["kabashkircyrillic"] = 0x04a1; + t["kabengali"] = 0x0995; + t["kacute"] = 0x1e31; + t["kacyrillic"] = 0x043a; + t["kadescendercyrillic"] = 0x049b; + t["kadeva"] = 0x0915; + t["kaf"] = 0x05db; + t["kafarabic"] = 0x0643; + t["kafdagesh"] = 0xfb3b; + t["kafdageshhebrew"] = 0xfb3b; + t["kaffinalarabic"] = 0xfeda; + t["kafhebrew"] = 0x05db; + t["kafinitialarabic"] = 0xfedb; + t["kafmedialarabic"] = 0xfedc; + t["kafrafehebrew"] = 0xfb4d; + t["kagujarati"] = 0x0a95; + t["kagurmukhi"] = 0x0a15; + t["kahiragana"] = 0x304b; + t["kahookcyrillic"] = 0x04c4; + t["kakatakana"] = 0x30ab; + t["kakatakanahalfwidth"] = 0xff76; + t["kappa"] = 0x03ba; + t["kappasymbolgreek"] = 0x03f0; + t["kapyeounmieumkorean"] = 0x3171; + t["kapyeounphieuphkorean"] = 0x3184; + t["kapyeounpieupkorean"] = 0x3178; + t["kapyeounssangpieupkorean"] = 0x3179; + t["karoriisquare"] = 0x330d; + t["kashidaautoarabic"] = 0x0640; + t["kashidaautonosidebearingarabic"] = 0x0640; + t["kasmallkatakana"] = 0x30f5; + t["kasquare"] = 0x3384; + t["kasraarabic"] = 0x0650; + t["kasratanarabic"] = 0x064d; + t["kastrokecyrillic"] = 0x049f; + t["katahiraprolongmarkhalfwidth"] = 0xff70; + t["kaverticalstrokecyrillic"] = 0x049d; + t["kbopomofo"] = 0x310e; + t["kcalsquare"] = 0x3389; + t["kcaron"] = 0x01e9; + t["kcedilla"] = 0x0137; + t["kcircle"] = 0x24da; + t["kcommaaccent"] = 0x0137; + t["kdotbelow"] = 0x1e33; + t["keharmenian"] = 0x0584; + t["kehiragana"] = 0x3051; + t["kekatakana"] = 0x30b1; + t["kekatakanahalfwidth"] = 0xff79; + t["kenarmenian"] = 0x056f; + t["kesmallkatakana"] = 0x30f6; + t["kgreenlandic"] = 0x0138; + t["khabengali"] = 0x0996; + t["khacyrillic"] = 0x0445; + t["khadeva"] = 0x0916; + t["khagujarati"] = 0x0a96; + t["khagurmukhi"] = 0x0a16; + t["khaharabic"] = 0x062e; + t["khahfinalarabic"] = 0xfea6; + t["khahinitialarabic"] = 0xfea7; + t["khahmedialarabic"] = 0xfea8; + t["kheicoptic"] = 0x03e7; + t["khhadeva"] = 0x0959; + t["khhagurmukhi"] = 0x0a59; + t["khieukhacirclekorean"] = 0x3278; + t["khieukhaparenkorean"] = 0x3218; + t["khieukhcirclekorean"] = 0x326a; + t["khieukhkorean"] = 0x314b; + t["khieukhparenkorean"] = 0x320a; + t["khokhaithai"] = 0x0e02; + t["khokhonthai"] = 0x0e05; + t["khokhuatthai"] = 0x0e03; + t["khokhwaithai"] = 0x0e04; + t["khomutthai"] = 0x0e5b; + t["khook"] = 0x0199; + t["khorakhangthai"] = 0x0e06; + t["khzsquare"] = 0x3391; + t["kihiragana"] = 0x304d; + t["kikatakana"] = 0x30ad; + t["kikatakanahalfwidth"] = 0xff77; + t["kiroguramusquare"] = 0x3315; + t["kiromeetorusquare"] = 0x3316; + t["kirosquare"] = 0x3314; + t["kiyeokacirclekorean"] = 0x326e; + t["kiyeokaparenkorean"] = 0x320e; + t["kiyeokcirclekorean"] = 0x3260; + t["kiyeokkorean"] = 0x3131; + t["kiyeokparenkorean"] = 0x3200; + t["kiyeoksioskorean"] = 0x3133; + t["kjecyrillic"] = 0x045c; + t["klinebelow"] = 0x1e35; + t["klsquare"] = 0x3398; + t["kmcubedsquare"] = 0x33a6; + t["kmonospace"] = 0xff4b; + t["kmsquaredsquare"] = 0x33a2; + t["kohiragana"] = 0x3053; + t["kohmsquare"] = 0x33c0; + t["kokaithai"] = 0x0e01; + t["kokatakana"] = 0x30b3; + t["kokatakanahalfwidth"] = 0xff7a; + t["kooposquare"] = 0x331e; + t["koppacyrillic"] = 0x0481; + t["koreanstandardsymbol"] = 0x327f; + t["koroniscmb"] = 0x0343; + t["kparen"] = 0x24a6; + t["kpasquare"] = 0x33aa; + t["ksicyrillic"] = 0x046f; + t["ktsquare"] = 0x33cf; + t["kturned"] = 0x029e; + t["kuhiragana"] = 0x304f; + t["kukatakana"] = 0x30af; + t["kukatakanahalfwidth"] = 0xff78; + t["kvsquare"] = 0x33b8; + t["kwsquare"] = 0x33be; + t["l"] = 0x006c; + t["labengali"] = 0x09b2; + t["lacute"] = 0x013a; + t["ladeva"] = 0x0932; + t["lagujarati"] = 0x0ab2; + t["lagurmukhi"] = 0x0a32; + t["lakkhangyaothai"] = 0x0e45; + t["lamaleffinalarabic"] = 0xfefc; + t["lamalefhamzaabovefinalarabic"] = 0xfef8; + t["lamalefhamzaaboveisolatedarabic"] = 0xfef7; + t["lamalefhamzabelowfinalarabic"] = 0xfefa; + t["lamalefhamzabelowisolatedarabic"] = 0xfef9; + t["lamalefisolatedarabic"] = 0xfefb; + t["lamalefmaddaabovefinalarabic"] = 0xfef6; + t["lamalefmaddaaboveisolatedarabic"] = 0xfef5; + t["lamarabic"] = 0x0644; + t["lambda"] = 0x03bb; + t["lambdastroke"] = 0x019b; + t["lamed"] = 0x05dc; + t["lameddagesh"] = 0xfb3c; + t["lameddageshhebrew"] = 0xfb3c; + t["lamedhebrew"] = 0x05dc; + t["lamfinalarabic"] = 0xfede; + t["lamhahinitialarabic"] = 0xfcca; + t["laminitialarabic"] = 0xfedf; + t["lamjeeminitialarabic"] = 0xfcc9; + t["lamkhahinitialarabic"] = 0xfccb; + t["lamlamhehisolatedarabic"] = 0xfdf2; + t["lammedialarabic"] = 0xfee0; + t["lammeemhahinitialarabic"] = 0xfd88; + t["lammeeminitialarabic"] = 0xfccc; + t["largecircle"] = 0x25ef; + t["lbar"] = 0x019a; + t["lbelt"] = 0x026c; + t["lbopomofo"] = 0x310c; + t["lcaron"] = 0x013e; + t["lcedilla"] = 0x013c; + t["lcircle"] = 0x24db; + t["lcircumflexbelow"] = 0x1e3d; + t["lcommaaccent"] = 0x013c; + t["ldot"] = 0x0140; + t["ldotaccent"] = 0x0140; + t["ldotbelow"] = 0x1e37; + t["ldotbelowmacron"] = 0x1e39; + t["leftangleabovecmb"] = 0x031a; + t["lefttackbelowcmb"] = 0x0318; + t["less"] = 0x003c; + t["lessequal"] = 0x2264; + t["lessequalorgreater"] = 0x22da; + t["lessmonospace"] = 0xff1c; + t["lessorequivalent"] = 0x2272; + t["lessorgreater"] = 0x2276; + t["lessoverequal"] = 0x2266; + t["lesssmall"] = 0xfe64; + t["lezh"] = 0x026e; + t["lfblock"] = 0x258c; + t["lhookretroflex"] = 0x026d; + t["lira"] = 0x20a4; + t["liwnarmenian"] = 0x056c; + t["lj"] = 0x01c9; + t["ljecyrillic"] = 0x0459; + t["ll"] = 0xf6c0; + t["lladeva"] = 0x0933; + t["llagujarati"] = 0x0ab3; + t["llinebelow"] = 0x1e3b; + t["llladeva"] = 0x0934; + t["llvocalicbengali"] = 0x09e1; + t["llvocalicdeva"] = 0x0961; + t["llvocalicvowelsignbengali"] = 0x09e3; + t["llvocalicvowelsigndeva"] = 0x0963; + t["lmiddletilde"] = 0x026b; + t["lmonospace"] = 0xff4c; + t["lmsquare"] = 0x33d0; + t["lochulathai"] = 0x0e2c; + t["logicaland"] = 0x2227; + t["logicalnot"] = 0x00ac; + t["logicalnotreversed"] = 0x2310; + t["logicalor"] = 0x2228; + t["lolingthai"] = 0x0e25; + t["longs"] = 0x017f; + t["lowlinecenterline"] = 0xfe4e; + t["lowlinecmb"] = 0x0332; + t["lowlinedashed"] = 0xfe4d; + t["lozenge"] = 0x25ca; + t["lparen"] = 0x24a7; + t["lslash"] = 0x0142; + t["lsquare"] = 0x2113; + t["lsuperior"] = 0xf6ee; + t["ltshade"] = 0x2591; + t["luthai"] = 0x0e26; + t["lvocalicbengali"] = 0x098c; + t["lvocalicdeva"] = 0x090c; + t["lvocalicvowelsignbengali"] = 0x09e2; + t["lvocalicvowelsigndeva"] = 0x0962; + t["lxsquare"] = 0x33d3; + t["m"] = 0x006d; + t["mabengali"] = 0x09ae; + t["macron"] = 0x00af; + t["macronbelowcmb"] = 0x0331; + t["macroncmb"] = 0x0304; + t["macronlowmod"] = 0x02cd; + t["macronmonospace"] = 0xffe3; + t["macute"] = 0x1e3f; + t["madeva"] = 0x092e; + t["magujarati"] = 0x0aae; + t["magurmukhi"] = 0x0a2e; + t["mahapakhhebrew"] = 0x05a4; + t["mahapakhlefthebrew"] = 0x05a4; + t["mahiragana"] = 0x307e; + t["maichattawalowleftthai"] = 0xf895; + t["maichattawalowrightthai"] = 0xf894; + t["maichattawathai"] = 0x0e4b; + t["maichattawaupperleftthai"] = 0xf893; + t["maieklowleftthai"] = 0xf88c; + t["maieklowrightthai"] = 0xf88b; + t["maiekthai"] = 0x0e48; + t["maiekupperleftthai"] = 0xf88a; + t["maihanakatleftthai"] = 0xf884; + t["maihanakatthai"] = 0x0e31; + t["maitaikhuleftthai"] = 0xf889; + t["maitaikhuthai"] = 0x0e47; + t["maitholowleftthai"] = 0xf88f; + t["maitholowrightthai"] = 0xf88e; + t["maithothai"] = 0x0e49; + t["maithoupperleftthai"] = 0xf88d; + t["maitrilowleftthai"] = 0xf892; + t["maitrilowrightthai"] = 0xf891; + t["maitrithai"] = 0x0e4a; + t["maitriupperleftthai"] = 0xf890; + t["maiyamokthai"] = 0x0e46; + t["makatakana"] = 0x30de; + t["makatakanahalfwidth"] = 0xff8f; + t["male"] = 0x2642; + t["mansyonsquare"] = 0x3347; + t["maqafhebrew"] = 0x05be; + t["mars"] = 0x2642; + t["masoracirclehebrew"] = 0x05af; + t["masquare"] = 0x3383; + t["mbopomofo"] = 0x3107; + t["mbsquare"] = 0x33d4; + t["mcircle"] = 0x24dc; + t["mcubedsquare"] = 0x33a5; + t["mdotaccent"] = 0x1e41; + t["mdotbelow"] = 0x1e43; + t["meemarabic"] = 0x0645; + t["meemfinalarabic"] = 0xfee2; + t["meeminitialarabic"] = 0xfee3; + t["meemmedialarabic"] = 0xfee4; + t["meemmeeminitialarabic"] = 0xfcd1; + t["meemmeemisolatedarabic"] = 0xfc48; + t["meetorusquare"] = 0x334d; + t["mehiragana"] = 0x3081; + t["meizierasquare"] = 0x337e; + t["mekatakana"] = 0x30e1; + t["mekatakanahalfwidth"] = 0xff92; + t["mem"] = 0x05de; + t["memdagesh"] = 0xfb3e; + t["memdageshhebrew"] = 0xfb3e; + t["memhebrew"] = 0x05de; + t["menarmenian"] = 0x0574; + t["merkhahebrew"] = 0x05a5; + t["merkhakefulahebrew"] = 0x05a6; + t["merkhakefulalefthebrew"] = 0x05a6; + t["merkhalefthebrew"] = 0x05a5; + t["mhook"] = 0x0271; + t["mhzsquare"] = 0x3392; + t["middledotkatakanahalfwidth"] = 0xff65; + t["middot"] = 0x00b7; + t["mieumacirclekorean"] = 0x3272; + t["mieumaparenkorean"] = 0x3212; + t["mieumcirclekorean"] = 0x3264; + t["mieumkorean"] = 0x3141; + t["mieumpansioskorean"] = 0x3170; + t["mieumparenkorean"] = 0x3204; + t["mieumpieupkorean"] = 0x316e; + t["mieumsioskorean"] = 0x316f; + t["mihiragana"] = 0x307f; + t["mikatakana"] = 0x30df; + t["mikatakanahalfwidth"] = 0xff90; + t["minus"] = 0x2212; + t["minusbelowcmb"] = 0x0320; + t["minuscircle"] = 0x2296; + t["minusmod"] = 0x02d7; + t["minusplus"] = 0x2213; + t["minute"] = 0x2032; + t["miribaarusquare"] = 0x334a; + t["mirisquare"] = 0x3349; + t["mlonglegturned"] = 0x0270; + t["mlsquare"] = 0x3396; + t["mmcubedsquare"] = 0x33a3; + t["mmonospace"] = 0xff4d; + t["mmsquaredsquare"] = 0x339f; + t["mohiragana"] = 0x3082; + t["mohmsquare"] = 0x33c1; + t["mokatakana"] = 0x30e2; + t["mokatakanahalfwidth"] = 0xff93; + t["molsquare"] = 0x33d6; + t["momathai"] = 0x0e21; + t["moverssquare"] = 0x33a7; + t["moverssquaredsquare"] = 0x33a8; + t["mparen"] = 0x24a8; + t["mpasquare"] = 0x33ab; + t["mssquare"] = 0x33b3; + t["msuperior"] = 0xf6ef; + t["mturned"] = 0x026f; + t["mu"] = 0x00b5; + t["mu1"] = 0x00b5; + t["muasquare"] = 0x3382; + t["muchgreater"] = 0x226b; + t["muchless"] = 0x226a; + t["mufsquare"] = 0x338c; + t["mugreek"] = 0x03bc; + t["mugsquare"] = 0x338d; + t["muhiragana"] = 0x3080; + t["mukatakana"] = 0x30e0; + t["mukatakanahalfwidth"] = 0xff91; + t["mulsquare"] = 0x3395; + t["multiply"] = 0x00d7; + t["mumsquare"] = 0x339b; + t["munahhebrew"] = 0x05a3; + t["munahlefthebrew"] = 0x05a3; + t["musicalnote"] = 0x266a; + t["musicalnotedbl"] = 0x266b; + t["musicflatsign"] = 0x266d; + t["musicsharpsign"] = 0x266f; + t["mussquare"] = 0x33b2; + t["muvsquare"] = 0x33b6; + t["muwsquare"] = 0x33bc; + t["mvmegasquare"] = 0x33b9; + t["mvsquare"] = 0x33b7; + t["mwmegasquare"] = 0x33bf; + t["mwsquare"] = 0x33bd; + t["n"] = 0x006e; + t["nabengali"] = 0x09a8; + t["nabla"] = 0x2207; + t["nacute"] = 0x0144; + t["nadeva"] = 0x0928; + t["nagujarati"] = 0x0aa8; + t["nagurmukhi"] = 0x0a28; + t["nahiragana"] = 0x306a; + t["nakatakana"] = 0x30ca; + t["nakatakanahalfwidth"] = 0xff85; + t["napostrophe"] = 0x0149; + t["nasquare"] = 0x3381; + t["nbopomofo"] = 0x310b; + t["nbspace"] = 0x00a0; + t["ncaron"] = 0x0148; + t["ncedilla"] = 0x0146; + t["ncircle"] = 0x24dd; + t["ncircumflexbelow"] = 0x1e4b; + t["ncommaaccent"] = 0x0146; + t["ndotaccent"] = 0x1e45; + t["ndotbelow"] = 0x1e47; + t["nehiragana"] = 0x306d; + t["nekatakana"] = 0x30cd; + t["nekatakanahalfwidth"] = 0xff88; + t["newsheqelsign"] = 0x20aa; + t["nfsquare"] = 0x338b; + t["ngabengali"] = 0x0999; + t["ngadeva"] = 0x0919; + t["ngagujarati"] = 0x0a99; + t["ngagurmukhi"] = 0x0a19; + t["ngonguthai"] = 0x0e07; + t["nhiragana"] = 0x3093; + t["nhookleft"] = 0x0272; + t["nhookretroflex"] = 0x0273; + t["nieunacirclekorean"] = 0x326f; + t["nieunaparenkorean"] = 0x320f; + t["nieuncieuckorean"] = 0x3135; + t["nieuncirclekorean"] = 0x3261; + t["nieunhieuhkorean"] = 0x3136; + t["nieunkorean"] = 0x3134; + t["nieunpansioskorean"] = 0x3168; + t["nieunparenkorean"] = 0x3201; + t["nieunsioskorean"] = 0x3167; + t["nieuntikeutkorean"] = 0x3166; + t["nihiragana"] = 0x306b; + t["nikatakana"] = 0x30cb; + t["nikatakanahalfwidth"] = 0xff86; + t["nikhahitleftthai"] = 0xf899; + t["nikhahitthai"] = 0x0e4d; + t["nine"] = 0x0039; + t["ninearabic"] = 0x0669; + t["ninebengali"] = 0x09ef; + t["ninecircle"] = 0x2468; + t["ninecircleinversesansserif"] = 0x2792; + t["ninedeva"] = 0x096f; + t["ninegujarati"] = 0x0aef; + t["ninegurmukhi"] = 0x0a6f; + t["ninehackarabic"] = 0x0669; + t["ninehangzhou"] = 0x3029; + t["nineideographicparen"] = 0x3228; + t["nineinferior"] = 0x2089; + t["ninemonospace"] = 0xff19; + t["nineoldstyle"] = 0xf739; + t["nineparen"] = 0x247c; + t["nineperiod"] = 0x2490; + t["ninepersian"] = 0x06f9; + t["nineroman"] = 0x2178; + t["ninesuperior"] = 0x2079; + t["nineteencircle"] = 0x2472; + t["nineteenparen"] = 0x2486; + t["nineteenperiod"] = 0x249a; + t["ninethai"] = 0x0e59; + t["nj"] = 0x01cc; + t["njecyrillic"] = 0x045a; + t["nkatakana"] = 0x30f3; + t["nkatakanahalfwidth"] = 0xff9d; + t["nlegrightlong"] = 0x019e; + t["nlinebelow"] = 0x1e49; + t["nmonospace"] = 0xff4e; + t["nmsquare"] = 0x339a; + t["nnabengali"] = 0x09a3; + t["nnadeva"] = 0x0923; + t["nnagujarati"] = 0x0aa3; + t["nnagurmukhi"] = 0x0a23; + t["nnnadeva"] = 0x0929; + t["nohiragana"] = 0x306e; + t["nokatakana"] = 0x30ce; + t["nokatakanahalfwidth"] = 0xff89; + t["nonbreakingspace"] = 0x00a0; + t["nonenthai"] = 0x0e13; + t["nonuthai"] = 0x0e19; + t["noonarabic"] = 0x0646; + t["noonfinalarabic"] = 0xfee6; + t["noonghunnaarabic"] = 0x06ba; + t["noonghunnafinalarabic"] = 0xfb9f; + t["nooninitialarabic"] = 0xfee7; + t["noonjeeminitialarabic"] = 0xfcd2; + t["noonjeemisolatedarabic"] = 0xfc4b; + t["noonmedialarabic"] = 0xfee8; + t["noonmeeminitialarabic"] = 0xfcd5; + t["noonmeemisolatedarabic"] = 0xfc4e; + t["noonnoonfinalarabic"] = 0xfc8d; + t["notcontains"] = 0x220c; + t["notelement"] = 0x2209; + t["notelementof"] = 0x2209; + t["notequal"] = 0x2260; + t["notgreater"] = 0x226f; + t["notgreaternorequal"] = 0x2271; + t["notgreaternorless"] = 0x2279; + t["notidentical"] = 0x2262; + t["notless"] = 0x226e; + t["notlessnorequal"] = 0x2270; + t["notparallel"] = 0x2226; + t["notprecedes"] = 0x2280; + t["notsubset"] = 0x2284; + t["notsucceeds"] = 0x2281; + t["notsuperset"] = 0x2285; + t["nowarmenian"] = 0x0576; + t["nparen"] = 0x24a9; + t["nssquare"] = 0x33b1; + t["nsuperior"] = 0x207f; + t["ntilde"] = 0x00f1; + t["nu"] = 0x03bd; + t["nuhiragana"] = 0x306c; + t["nukatakana"] = 0x30cc; + t["nukatakanahalfwidth"] = 0xff87; + t["nuktabengali"] = 0x09bc; + t["nuktadeva"] = 0x093c; + t["nuktagujarati"] = 0x0abc; + t["nuktagurmukhi"] = 0x0a3c; + t["numbersign"] = 0x0023; + t["numbersignmonospace"] = 0xff03; + t["numbersignsmall"] = 0xfe5f; + t["numeralsigngreek"] = 0x0374; + t["numeralsignlowergreek"] = 0x0375; + t["numero"] = 0x2116; + t["nun"] = 0x05e0; + t["nundagesh"] = 0xfb40; + t["nundageshhebrew"] = 0xfb40; + t["nunhebrew"] = 0x05e0; + t["nvsquare"] = 0x33b5; + t["nwsquare"] = 0x33bb; + t["nyabengali"] = 0x099e; + t["nyadeva"] = 0x091e; + t["nyagujarati"] = 0x0a9e; + t["nyagurmukhi"] = 0x0a1e; + t["o"] = 0x006f; + t["oacute"] = 0x00f3; + t["oangthai"] = 0x0e2d; + t["obarred"] = 0x0275; + t["obarredcyrillic"] = 0x04e9; + t["obarreddieresiscyrillic"] = 0x04eb; + t["obengali"] = 0x0993; + t["obopomofo"] = 0x311b; + t["obreve"] = 0x014f; + t["ocandradeva"] = 0x0911; + t["ocandragujarati"] = 0x0a91; + t["ocandravowelsigndeva"] = 0x0949; + t["ocandravowelsigngujarati"] = 0x0ac9; + t["ocaron"] = 0x01d2; + t["ocircle"] = 0x24de; + t["ocircumflex"] = 0x00f4; + t["ocircumflexacute"] = 0x1ed1; + t["ocircumflexdotbelow"] = 0x1ed9; + t["ocircumflexgrave"] = 0x1ed3; + t["ocircumflexhookabove"] = 0x1ed5; + t["ocircumflextilde"] = 0x1ed7; + t["ocyrillic"] = 0x043e; + t["odblacute"] = 0x0151; + t["odblgrave"] = 0x020d; + t["odeva"] = 0x0913; + t["odieresis"] = 0x00f6; + t["odieresiscyrillic"] = 0x04e7; + t["odotbelow"] = 0x1ecd; + t["oe"] = 0x0153; + t["oekorean"] = 0x315a; + t["ogonek"] = 0x02db; + t["ogonekcmb"] = 0x0328; + t["ograve"] = 0x00f2; + t["ogujarati"] = 0x0a93; + t["oharmenian"] = 0x0585; + t["ohiragana"] = 0x304a; + t["ohookabove"] = 0x1ecf; + t["ohorn"] = 0x01a1; + t["ohornacute"] = 0x1edb; + t["ohorndotbelow"] = 0x1ee3; + t["ohorngrave"] = 0x1edd; + t["ohornhookabove"] = 0x1edf; + t["ohorntilde"] = 0x1ee1; + t["ohungarumlaut"] = 0x0151; + t["oi"] = 0x01a3; + t["oinvertedbreve"] = 0x020f; + t["okatakana"] = 0x30aa; + t["okatakanahalfwidth"] = 0xff75; + t["okorean"] = 0x3157; + t["olehebrew"] = 0x05ab; + t["omacron"] = 0x014d; + t["omacronacute"] = 0x1e53; + t["omacrongrave"] = 0x1e51; + t["omdeva"] = 0x0950; + t["omega"] = 0x03c9; + t["omega1"] = 0x03d6; + t["omegacyrillic"] = 0x0461; + t["omegalatinclosed"] = 0x0277; + t["omegaroundcyrillic"] = 0x047b; + t["omegatitlocyrillic"] = 0x047d; + t["omegatonos"] = 0x03ce; + t["omgujarati"] = 0x0ad0; + t["omicron"] = 0x03bf; + t["omicrontonos"] = 0x03cc; + t["omonospace"] = 0xff4f; + t["one"] = 0x0031; + t["onearabic"] = 0x0661; + t["onebengali"] = 0x09e7; + t["onecircle"] = 0x2460; + t["onecircleinversesansserif"] = 0x278a; + t["onedeva"] = 0x0967; + t["onedotenleader"] = 0x2024; + t["oneeighth"] = 0x215b; + t["onefitted"] = 0xf6dc; + t["onegujarati"] = 0x0ae7; + t["onegurmukhi"] = 0x0a67; + t["onehackarabic"] = 0x0661; + t["onehalf"] = 0x00bd; + t["onehangzhou"] = 0x3021; + t["oneideographicparen"] = 0x3220; + t["oneinferior"] = 0x2081; + t["onemonospace"] = 0xff11; + t["onenumeratorbengali"] = 0x09f4; + t["oneoldstyle"] = 0xf731; + t["oneparen"] = 0x2474; + t["oneperiod"] = 0x2488; + t["onepersian"] = 0x06f1; + t["onequarter"] = 0x00bc; + t["oneroman"] = 0x2170; + t["onesuperior"] = 0x00b9; + t["onethai"] = 0x0e51; + t["onethird"] = 0x2153; + t["oogonek"] = 0x01eb; + t["oogonekmacron"] = 0x01ed; + t["oogurmukhi"] = 0x0a13; + t["oomatragurmukhi"] = 0x0a4b; + t["oopen"] = 0x0254; + t["oparen"] = 0x24aa; + t["openbullet"] = 0x25e6; + t["option"] = 0x2325; + t["ordfeminine"] = 0x00aa; + t["ordmasculine"] = 0x00ba; + t["orthogonal"] = 0x221f; + t["oshortdeva"] = 0x0912; + t["oshortvowelsigndeva"] = 0x094a; + t["oslash"] = 0x00f8; + t["oslashacute"] = 0x01ff; + t["osmallhiragana"] = 0x3049; + t["osmallkatakana"] = 0x30a9; + t["osmallkatakanahalfwidth"] = 0xff6b; + t["ostrokeacute"] = 0x01ff; + t["osuperior"] = 0xf6f0; + t["otcyrillic"] = 0x047f; + t["otilde"] = 0x00f5; + t["otildeacute"] = 0x1e4d; + t["otildedieresis"] = 0x1e4f; + t["oubopomofo"] = 0x3121; + t["overline"] = 0x203e; + t["overlinecenterline"] = 0xfe4a; + t["overlinecmb"] = 0x0305; + t["overlinedashed"] = 0xfe49; + t["overlinedblwavy"] = 0xfe4c; + t["overlinewavy"] = 0xfe4b; + t["overscore"] = 0x00af; + t["ovowelsignbengali"] = 0x09cb; + t["ovowelsigndeva"] = 0x094b; + t["ovowelsigngujarati"] = 0x0acb; + t["p"] = 0x0070; + t["paampssquare"] = 0x3380; + t["paasentosquare"] = 0x332b; + t["pabengali"] = 0x09aa; + t["pacute"] = 0x1e55; + t["padeva"] = 0x092a; + t["pagedown"] = 0x21df; + t["pageup"] = 0x21de; + t["pagujarati"] = 0x0aaa; + t["pagurmukhi"] = 0x0a2a; + t["pahiragana"] = 0x3071; + t["paiyannoithai"] = 0x0e2f; + t["pakatakana"] = 0x30d1; + t["palatalizationcyrilliccmb"] = 0x0484; + t["palochkacyrillic"] = 0x04c0; + t["pansioskorean"] = 0x317f; + t["paragraph"] = 0x00b6; + t["parallel"] = 0x2225; + t["parenleft"] = 0x0028; + t["parenleftaltonearabic"] = 0xfd3e; + t["parenleftbt"] = 0xf8ed; + t["parenleftex"] = 0xf8ec; + t["parenleftinferior"] = 0x208d; + t["parenleftmonospace"] = 0xff08; + t["parenleftsmall"] = 0xfe59; + t["parenleftsuperior"] = 0x207d; + t["parenlefttp"] = 0xf8eb; + t["parenleftvertical"] = 0xfe35; + t["parenright"] = 0x0029; + t["parenrightaltonearabic"] = 0xfd3f; + t["parenrightbt"] = 0xf8f8; + t["parenrightex"] = 0xf8f7; + t["parenrightinferior"] = 0x208e; + t["parenrightmonospace"] = 0xff09; + t["parenrightsmall"] = 0xfe5a; + t["parenrightsuperior"] = 0x207e; + t["parenrighttp"] = 0xf8f6; + t["parenrightvertical"] = 0xfe36; + t["partialdiff"] = 0x2202; + t["paseqhebrew"] = 0x05c0; + t["pashtahebrew"] = 0x0599; + t["pasquare"] = 0x33a9; + t["patah"] = 0x05b7; + t["patah11"] = 0x05b7; + t["patah1d"] = 0x05b7; + t["patah2a"] = 0x05b7; + t["patahhebrew"] = 0x05b7; + t["patahnarrowhebrew"] = 0x05b7; + t["patahquarterhebrew"] = 0x05b7; + t["patahwidehebrew"] = 0x05b7; + t["pazerhebrew"] = 0x05a1; + t["pbopomofo"] = 0x3106; + t["pcircle"] = 0x24df; + t["pdotaccent"] = 0x1e57; + t["pe"] = 0x05e4; + t["pecyrillic"] = 0x043f; + t["pedagesh"] = 0xfb44; + t["pedageshhebrew"] = 0xfb44; + t["peezisquare"] = 0x333b; + t["pefinaldageshhebrew"] = 0xfb43; + t["peharabic"] = 0x067e; + t["peharmenian"] = 0x057a; + t["pehebrew"] = 0x05e4; + t["pehfinalarabic"] = 0xfb57; + t["pehinitialarabic"] = 0xfb58; + t["pehiragana"] = 0x307a; + t["pehmedialarabic"] = 0xfb59; + t["pekatakana"] = 0x30da; + t["pemiddlehookcyrillic"] = 0x04a7; + t["perafehebrew"] = 0xfb4e; + t["percent"] = 0x0025; + t["percentarabic"] = 0x066a; + t["percentmonospace"] = 0xff05; + t["percentsmall"] = 0xfe6a; + t["period"] = 0x002e; + t["periodarmenian"] = 0x0589; + t["periodcentered"] = 0x00b7; + t["periodhalfwidth"] = 0xff61; + t["periodinferior"] = 0xf6e7; + t["periodmonospace"] = 0xff0e; + t["periodsmall"] = 0xfe52; + t["periodsuperior"] = 0xf6e8; + t["perispomenigreekcmb"] = 0x0342; + t["perpendicular"] = 0x22a5; + t["perthousand"] = 0x2030; + t["peseta"] = 0x20a7; + t["pfsquare"] = 0x338a; + t["phabengali"] = 0x09ab; + t["phadeva"] = 0x092b; + t["phagujarati"] = 0x0aab; + t["phagurmukhi"] = 0x0a2b; + t["phi"] = 0x03c6; + t["phi1"] = 0x03d5; + t["phieuphacirclekorean"] = 0x327a; + t["phieuphaparenkorean"] = 0x321a; + t["phieuphcirclekorean"] = 0x326c; + t["phieuphkorean"] = 0x314d; + t["phieuphparenkorean"] = 0x320c; + t["philatin"] = 0x0278; + t["phinthuthai"] = 0x0e3a; + t["phisymbolgreek"] = 0x03d5; + t["phook"] = 0x01a5; + t["phophanthai"] = 0x0e1e; + t["phophungthai"] = 0x0e1c; + t["phosamphaothai"] = 0x0e20; + t["pi"] = 0x03c0; + t["pieupacirclekorean"] = 0x3273; + t["pieupaparenkorean"] = 0x3213; + t["pieupcieuckorean"] = 0x3176; + t["pieupcirclekorean"] = 0x3265; + t["pieupkiyeokkorean"] = 0x3172; + t["pieupkorean"] = 0x3142; + t["pieupparenkorean"] = 0x3205; + t["pieupsioskiyeokkorean"] = 0x3174; + t["pieupsioskorean"] = 0x3144; + t["pieupsiostikeutkorean"] = 0x3175; + t["pieupthieuthkorean"] = 0x3177; + t["pieuptikeutkorean"] = 0x3173; + t["pihiragana"] = 0x3074; + t["pikatakana"] = 0x30d4; + t["pisymbolgreek"] = 0x03d6; + t["piwrarmenian"] = 0x0583; + t["plus"] = 0x002b; + t["plusbelowcmb"] = 0x031f; + t["pluscircle"] = 0x2295; + t["plusminus"] = 0x00b1; + t["plusmod"] = 0x02d6; + t["plusmonospace"] = 0xff0b; + t["plussmall"] = 0xfe62; + t["plussuperior"] = 0x207a; + t["pmonospace"] = 0xff50; + t["pmsquare"] = 0x33d8; + t["pohiragana"] = 0x307d; + t["pointingindexdownwhite"] = 0x261f; + t["pointingindexleftwhite"] = 0x261c; + t["pointingindexrightwhite"] = 0x261e; + t["pointingindexupwhite"] = 0x261d; + t["pokatakana"] = 0x30dd; + t["poplathai"] = 0x0e1b; + t["postalmark"] = 0x3012; + t["postalmarkface"] = 0x3020; + t["pparen"] = 0x24ab; + t["precedes"] = 0x227a; + t["prescription"] = 0x211e; + t["primemod"] = 0x02b9; + t["primereversed"] = 0x2035; + t["product"] = 0x220f; + t["projective"] = 0x2305; + t["prolongedkana"] = 0x30fc; + t["propellor"] = 0x2318; + t["propersubset"] = 0x2282; + t["propersuperset"] = 0x2283; + t["proportion"] = 0x2237; + t["proportional"] = 0x221d; + t["psi"] = 0x03c8; + t["psicyrillic"] = 0x0471; + t["psilipneumatacyrilliccmb"] = 0x0486; + t["pssquare"] = 0x33b0; + t["puhiragana"] = 0x3077; + t["pukatakana"] = 0x30d7; + t["pvsquare"] = 0x33b4; + t["pwsquare"] = 0x33ba; + t["q"] = 0x0071; + t["qadeva"] = 0x0958; + t["qadmahebrew"] = 0x05a8; + t["qafarabic"] = 0x0642; + t["qaffinalarabic"] = 0xfed6; + t["qafinitialarabic"] = 0xfed7; + t["qafmedialarabic"] = 0xfed8; + t["qamats"] = 0x05b8; + t["qamats10"] = 0x05b8; + t["qamats1a"] = 0x05b8; + t["qamats1c"] = 0x05b8; + t["qamats27"] = 0x05b8; + t["qamats29"] = 0x05b8; + t["qamats33"] = 0x05b8; + t["qamatsde"] = 0x05b8; + t["qamatshebrew"] = 0x05b8; + t["qamatsnarrowhebrew"] = 0x05b8; + t["qamatsqatanhebrew"] = 0x05b8; + t["qamatsqatannarrowhebrew"] = 0x05b8; + t["qamatsqatanquarterhebrew"] = 0x05b8; + t["qamatsqatanwidehebrew"] = 0x05b8; + t["qamatsquarterhebrew"] = 0x05b8; + t["qamatswidehebrew"] = 0x05b8; + t["qarneyparahebrew"] = 0x059f; + t["qbopomofo"] = 0x3111; + t["qcircle"] = 0x24e0; + t["qhook"] = 0x02a0; + t["qmonospace"] = 0xff51; + t["qof"] = 0x05e7; + t["qofdagesh"] = 0xfb47; + t["qofdageshhebrew"] = 0xfb47; + t["qofhebrew"] = 0x05e7; + t["qparen"] = 0x24ac; + t["quarternote"] = 0x2669; + t["qubuts"] = 0x05bb; + t["qubuts18"] = 0x05bb; + t["qubuts25"] = 0x05bb; + t["qubuts31"] = 0x05bb; + t["qubutshebrew"] = 0x05bb; + t["qubutsnarrowhebrew"] = 0x05bb; + t["qubutsquarterhebrew"] = 0x05bb; + t["qubutswidehebrew"] = 0x05bb; + t["question"] = 0x003f; + t["questionarabic"] = 0x061f; + t["questionarmenian"] = 0x055e; + t["questiondown"] = 0x00bf; + t["questiondownsmall"] = 0xf7bf; + t["questiongreek"] = 0x037e; + t["questionmonospace"] = 0xff1f; + t["questionsmall"] = 0xf73f; + t["quotedbl"] = 0x0022; + t["quotedblbase"] = 0x201e; + t["quotedblleft"] = 0x201c; + t["quotedblmonospace"] = 0xff02; + t["quotedblprime"] = 0x301e; + t["quotedblprimereversed"] = 0x301d; + t["quotedblright"] = 0x201d; + t["quoteleft"] = 0x2018; + t["quoteleftreversed"] = 0x201b; + t["quotereversed"] = 0x201b; + t["quoteright"] = 0x2019; + t["quoterightn"] = 0x0149; + t["quotesinglbase"] = 0x201a; + t["quotesingle"] = 0x0027; + t["quotesinglemonospace"] = 0xff07; + t["r"] = 0x0072; + t["raarmenian"] = 0x057c; + t["rabengali"] = 0x09b0; + t["racute"] = 0x0155; + t["radeva"] = 0x0930; + t["radical"] = 0x221a; + t["radicalex"] = 0xf8e5; + t["radoverssquare"] = 0x33ae; + t["radoverssquaredsquare"] = 0x33af; + t["radsquare"] = 0x33ad; + t["rafe"] = 0x05bf; + t["rafehebrew"] = 0x05bf; + t["ragujarati"] = 0x0ab0; + t["ragurmukhi"] = 0x0a30; + t["rahiragana"] = 0x3089; + t["rakatakana"] = 0x30e9; + t["rakatakanahalfwidth"] = 0xff97; + t["ralowerdiagonalbengali"] = 0x09f1; + t["ramiddlediagonalbengali"] = 0x09f0; + t["ramshorn"] = 0x0264; + t["ratio"] = 0x2236; + t["rbopomofo"] = 0x3116; + t["rcaron"] = 0x0159; + t["rcedilla"] = 0x0157; + t["rcircle"] = 0x24e1; + t["rcommaaccent"] = 0x0157; + t["rdblgrave"] = 0x0211; + t["rdotaccent"] = 0x1e59; + t["rdotbelow"] = 0x1e5b; + t["rdotbelowmacron"] = 0x1e5d; + t["referencemark"] = 0x203b; + t["reflexsubset"] = 0x2286; + t["reflexsuperset"] = 0x2287; + t["registered"] = 0x00ae; + t["registersans"] = 0xf8e8; + t["registerserif"] = 0xf6da; + t["reharabic"] = 0x0631; + t["reharmenian"] = 0x0580; + t["rehfinalarabic"] = 0xfeae; + t["rehiragana"] = 0x308c; + t["rekatakana"] = 0x30ec; + t["rekatakanahalfwidth"] = 0xff9a; + t["resh"] = 0x05e8; + t["reshdageshhebrew"] = 0xfb48; + t["reshhebrew"] = 0x05e8; + t["reversedtilde"] = 0x223d; + t["reviahebrew"] = 0x0597; + t["reviamugrashhebrew"] = 0x0597; + t["revlogicalnot"] = 0x2310; + t["rfishhook"] = 0x027e; + t["rfishhookreversed"] = 0x027f; + t["rhabengali"] = 0x09dd; + t["rhadeva"] = 0x095d; + t["rho"] = 0x03c1; + t["rhook"] = 0x027d; + t["rhookturned"] = 0x027b; + t["rhookturnedsuperior"] = 0x02b5; + t["rhosymbolgreek"] = 0x03f1; + t["rhotichookmod"] = 0x02de; + t["rieulacirclekorean"] = 0x3271; + t["rieulaparenkorean"] = 0x3211; + t["rieulcirclekorean"] = 0x3263; + t["rieulhieuhkorean"] = 0x3140; + t["rieulkiyeokkorean"] = 0x313a; + t["rieulkiyeoksioskorean"] = 0x3169; + t["rieulkorean"] = 0x3139; + t["rieulmieumkorean"] = 0x313b; + t["rieulpansioskorean"] = 0x316c; + t["rieulparenkorean"] = 0x3203; + t["rieulphieuphkorean"] = 0x313f; + t["rieulpieupkorean"] = 0x313c; + t["rieulpieupsioskorean"] = 0x316b; + t["rieulsioskorean"] = 0x313d; + t["rieulthieuthkorean"] = 0x313e; + t["rieultikeutkorean"] = 0x316a; + t["rieulyeorinhieuhkorean"] = 0x316d; + t["rightangle"] = 0x221f; + t["righttackbelowcmb"] = 0x0319; + t["righttriangle"] = 0x22bf; + t["rihiragana"] = 0x308a; + t["rikatakana"] = 0x30ea; + t["rikatakanahalfwidth"] = 0xff98; + t["ring"] = 0x02da; + t["ringbelowcmb"] = 0x0325; + t["ringcmb"] = 0x030a; + t["ringhalfleft"] = 0x02bf; + t["ringhalfleftarmenian"] = 0x0559; + t["ringhalfleftbelowcmb"] = 0x031c; + t["ringhalfleftcentered"] = 0x02d3; + t["ringhalfright"] = 0x02be; + t["ringhalfrightbelowcmb"] = 0x0339; + t["ringhalfrightcentered"] = 0x02d2; + t["rinvertedbreve"] = 0x0213; + t["rittorusquare"] = 0x3351; + t["rlinebelow"] = 0x1e5f; + t["rlongleg"] = 0x027c; + t["rlonglegturned"] = 0x027a; + t["rmonospace"] = 0xff52; + t["rohiragana"] = 0x308d; + t["rokatakana"] = 0x30ed; + t["rokatakanahalfwidth"] = 0xff9b; + t["roruathai"] = 0x0e23; + t["rparen"] = 0x24ad; + t["rrabengali"] = 0x09dc; + t["rradeva"] = 0x0931; + t["rragurmukhi"] = 0x0a5c; + t["rreharabic"] = 0x0691; + t["rrehfinalarabic"] = 0xfb8d; + t["rrvocalicbengali"] = 0x09e0; + t["rrvocalicdeva"] = 0x0960; + t["rrvocalicgujarati"] = 0x0ae0; + t["rrvocalicvowelsignbengali"] = 0x09c4; + t["rrvocalicvowelsigndeva"] = 0x0944; + t["rrvocalicvowelsigngujarati"] = 0x0ac4; + t["rsuperior"] = 0xf6f1; + t["rtblock"] = 0x2590; + t["rturned"] = 0x0279; + t["rturnedsuperior"] = 0x02b4; + t["ruhiragana"] = 0x308b; + t["rukatakana"] = 0x30eb; + t["rukatakanahalfwidth"] = 0xff99; + t["rupeemarkbengali"] = 0x09f2; + t["rupeesignbengali"] = 0x09f3; + t["rupiah"] = 0xf6dd; + t["ruthai"] = 0x0e24; + t["rvocalicbengali"] = 0x098b; + t["rvocalicdeva"] = 0x090b; + t["rvocalicgujarati"] = 0x0a8b; + t["rvocalicvowelsignbengali"] = 0x09c3; + t["rvocalicvowelsigndeva"] = 0x0943; + t["rvocalicvowelsigngujarati"] = 0x0ac3; + t["s"] = 0x0073; + t["sabengali"] = 0x09b8; + t["sacute"] = 0x015b; + t["sacutedotaccent"] = 0x1e65; + t["sadarabic"] = 0x0635; + t["sadeva"] = 0x0938; + t["sadfinalarabic"] = 0xfeba; + t["sadinitialarabic"] = 0xfebb; + t["sadmedialarabic"] = 0xfebc; + t["sagujarati"] = 0x0ab8; + t["sagurmukhi"] = 0x0a38; + t["sahiragana"] = 0x3055; + t["sakatakana"] = 0x30b5; + t["sakatakanahalfwidth"] = 0xff7b; + t["sallallahoualayhewasallamarabic"] = 0xfdfa; + t["samekh"] = 0x05e1; + t["samekhdagesh"] = 0xfb41; + t["samekhdageshhebrew"] = 0xfb41; + t["samekhhebrew"] = 0x05e1; + t["saraaathai"] = 0x0e32; + t["saraaethai"] = 0x0e41; + t["saraaimaimalaithai"] = 0x0e44; + t["saraaimaimuanthai"] = 0x0e43; + t["saraamthai"] = 0x0e33; + t["saraathai"] = 0x0e30; + t["saraethai"] = 0x0e40; + t["saraiileftthai"] = 0xf886; + t["saraiithai"] = 0x0e35; + t["saraileftthai"] = 0xf885; + t["saraithai"] = 0x0e34; + t["saraothai"] = 0x0e42; + t["saraueeleftthai"] = 0xf888; + t["saraueethai"] = 0x0e37; + t["saraueleftthai"] = 0xf887; + t["sarauethai"] = 0x0e36; + t["sarauthai"] = 0x0e38; + t["sarauuthai"] = 0x0e39; + t["sbopomofo"] = 0x3119; + t["scaron"] = 0x0161; + t["scarondotaccent"] = 0x1e67; + t["scedilla"] = 0x015f; + t["schwa"] = 0x0259; + t["schwacyrillic"] = 0x04d9; + t["schwadieresiscyrillic"] = 0x04db; + t["schwahook"] = 0x025a; + t["scircle"] = 0x24e2; + t["scircumflex"] = 0x015d; + t["scommaaccent"] = 0x0219; + t["sdotaccent"] = 0x1e61; + t["sdotbelow"] = 0x1e63; + t["sdotbelowdotaccent"] = 0x1e69; + t["seagullbelowcmb"] = 0x033c; + t["second"] = 0x2033; + t["secondtonechinese"] = 0x02ca; + t["section"] = 0x00a7; + t["seenarabic"] = 0x0633; + t["seenfinalarabic"] = 0xfeb2; + t["seeninitialarabic"] = 0xfeb3; + t["seenmedialarabic"] = 0xfeb4; + t["segol"] = 0x05b6; + t["segol13"] = 0x05b6; + t["segol1f"] = 0x05b6; + t["segol2c"] = 0x05b6; + t["segolhebrew"] = 0x05b6; + t["segolnarrowhebrew"] = 0x05b6; + t["segolquarterhebrew"] = 0x05b6; + t["segoltahebrew"] = 0x0592; + t["segolwidehebrew"] = 0x05b6; + t["seharmenian"] = 0x057d; + t["sehiragana"] = 0x305b; + t["sekatakana"] = 0x30bb; + t["sekatakanahalfwidth"] = 0xff7e; + t["semicolon"] = 0x003b; + t["semicolonarabic"] = 0x061b; + t["semicolonmonospace"] = 0xff1b; + t["semicolonsmall"] = 0xfe54; + t["semivoicedmarkkana"] = 0x309c; + t["semivoicedmarkkanahalfwidth"] = 0xff9f; + t["sentisquare"] = 0x3322; + t["sentosquare"] = 0x3323; + t["seven"] = 0x0037; + t["sevenarabic"] = 0x0667; + t["sevenbengali"] = 0x09ed; + t["sevencircle"] = 0x2466; + t["sevencircleinversesansserif"] = 0x2790; + t["sevendeva"] = 0x096d; + t["seveneighths"] = 0x215e; + t["sevengujarati"] = 0x0aed; + t["sevengurmukhi"] = 0x0a6d; + t["sevenhackarabic"] = 0x0667; + t["sevenhangzhou"] = 0x3027; + t["sevenideographicparen"] = 0x3226; + t["seveninferior"] = 0x2087; + t["sevenmonospace"] = 0xff17; + t["sevenoldstyle"] = 0xf737; + t["sevenparen"] = 0x247a; + t["sevenperiod"] = 0x248e; + t["sevenpersian"] = 0x06f7; + t["sevenroman"] = 0x2176; + t["sevensuperior"] = 0x2077; + t["seventeencircle"] = 0x2470; + t["seventeenparen"] = 0x2484; + t["seventeenperiod"] = 0x2498; + t["seventhai"] = 0x0e57; + t["sfthyphen"] = 0x00ad; + t["shaarmenian"] = 0x0577; + t["shabengali"] = 0x09b6; + t["shacyrillic"] = 0x0448; + t["shaddaarabic"] = 0x0651; + t["shaddadammaarabic"] = 0xfc61; + t["shaddadammatanarabic"] = 0xfc5e; + t["shaddafathaarabic"] = 0xfc60; + t["shaddakasraarabic"] = 0xfc62; + t["shaddakasratanarabic"] = 0xfc5f; + t["shade"] = 0x2592; + t["shadedark"] = 0x2593; + t["shadelight"] = 0x2591; + t["shademedium"] = 0x2592; + t["shadeva"] = 0x0936; + t["shagujarati"] = 0x0ab6; + t["shagurmukhi"] = 0x0a36; + t["shalshelethebrew"] = 0x0593; + t["shbopomofo"] = 0x3115; + t["shchacyrillic"] = 0x0449; + t["sheenarabic"] = 0x0634; + t["sheenfinalarabic"] = 0xfeb6; + t["sheeninitialarabic"] = 0xfeb7; + t["sheenmedialarabic"] = 0xfeb8; + t["sheicoptic"] = 0x03e3; + t["sheqel"] = 0x20aa; + t["sheqelhebrew"] = 0x20aa; + t["sheva"] = 0x05b0; + t["sheva115"] = 0x05b0; + t["sheva15"] = 0x05b0; + t["sheva22"] = 0x05b0; + t["sheva2e"] = 0x05b0; + t["shevahebrew"] = 0x05b0; + t["shevanarrowhebrew"] = 0x05b0; + t["shevaquarterhebrew"] = 0x05b0; + t["shevawidehebrew"] = 0x05b0; + t["shhacyrillic"] = 0x04bb; + t["shimacoptic"] = 0x03ed; + t["shin"] = 0x05e9; + t["shindagesh"] = 0xfb49; + t["shindageshhebrew"] = 0xfb49; + t["shindageshshindot"] = 0xfb2c; + t["shindageshshindothebrew"] = 0xfb2c; + t["shindageshsindot"] = 0xfb2d; + t["shindageshsindothebrew"] = 0xfb2d; + t["shindothebrew"] = 0x05c1; + t["shinhebrew"] = 0x05e9; + t["shinshindot"] = 0xfb2a; + t["shinshindothebrew"] = 0xfb2a; + t["shinsindot"] = 0xfb2b; + t["shinsindothebrew"] = 0xfb2b; + t["shook"] = 0x0282; + t["sigma"] = 0x03c3; + t["sigma1"] = 0x03c2; + t["sigmafinal"] = 0x03c2; + t["sigmalunatesymbolgreek"] = 0x03f2; + t["sihiragana"] = 0x3057; + t["sikatakana"] = 0x30b7; + t["sikatakanahalfwidth"] = 0xff7c; + t["siluqhebrew"] = 0x05bd; + t["siluqlefthebrew"] = 0x05bd; + t["similar"] = 0x223c; + t["sindothebrew"] = 0x05c2; + t["siosacirclekorean"] = 0x3274; + t["siosaparenkorean"] = 0x3214; + t["sioscieuckorean"] = 0x317e; + t["sioscirclekorean"] = 0x3266; + t["sioskiyeokkorean"] = 0x317a; + t["sioskorean"] = 0x3145; + t["siosnieunkorean"] = 0x317b; + t["siosparenkorean"] = 0x3206; + t["siospieupkorean"] = 0x317d; + t["siostikeutkorean"] = 0x317c; + t["six"] = 0x0036; + t["sixarabic"] = 0x0666; + t["sixbengali"] = 0x09ec; + t["sixcircle"] = 0x2465; + t["sixcircleinversesansserif"] = 0x278f; + t["sixdeva"] = 0x096c; + t["sixgujarati"] = 0x0aec; + t["sixgurmukhi"] = 0x0a6c; + t["sixhackarabic"] = 0x0666; + t["sixhangzhou"] = 0x3026; + t["sixideographicparen"] = 0x3225; + t["sixinferior"] = 0x2086; + t["sixmonospace"] = 0xff16; + t["sixoldstyle"] = 0xf736; + t["sixparen"] = 0x2479; + t["sixperiod"] = 0x248d; + t["sixpersian"] = 0x06f6; + t["sixroman"] = 0x2175; + t["sixsuperior"] = 0x2076; + t["sixteencircle"] = 0x246f; + t["sixteencurrencydenominatorbengali"] = 0x09f9; + t["sixteenparen"] = 0x2483; + t["sixteenperiod"] = 0x2497; + t["sixthai"] = 0x0e56; + t["slash"] = 0x002f; + t["slashmonospace"] = 0xff0f; + t["slong"] = 0x017f; + t["slongdotaccent"] = 0x1e9b; + t["smileface"] = 0x263a; + t["smonospace"] = 0xff53; + t["sofpasuqhebrew"] = 0x05c3; + t["softhyphen"] = 0x00ad; + t["softsigncyrillic"] = 0x044c; + t["sohiragana"] = 0x305d; + t["sokatakana"] = 0x30bd; + t["sokatakanahalfwidth"] = 0xff7f; + t["soliduslongoverlaycmb"] = 0x0338; + t["solidusshortoverlaycmb"] = 0x0337; + t["sorusithai"] = 0x0e29; + t["sosalathai"] = 0x0e28; + t["sosothai"] = 0x0e0b; + t["sosuathai"] = 0x0e2a; + t["space"] = 0x0020; + t["spacehackarabic"] = 0x0020; + t["spade"] = 0x2660; + t["spadesuitblack"] = 0x2660; + t["spadesuitwhite"] = 0x2664; + t["sparen"] = 0x24ae; + t["squarebelowcmb"] = 0x033b; + t["squarecc"] = 0x33c4; + t["squarecm"] = 0x339d; + t["squarediagonalcrosshatchfill"] = 0x25a9; + t["squarehorizontalfill"] = 0x25a4; + t["squarekg"] = 0x338f; + t["squarekm"] = 0x339e; + t["squarekmcapital"] = 0x33ce; + t["squareln"] = 0x33d1; + t["squarelog"] = 0x33d2; + t["squaremg"] = 0x338e; + t["squaremil"] = 0x33d5; + t["squaremm"] = 0x339c; + t["squaremsquared"] = 0x33a1; + t["squareorthogonalcrosshatchfill"] = 0x25a6; + t["squareupperlefttolowerrightfill"] = 0x25a7; + t["squareupperrighttolowerleftfill"] = 0x25a8; + t["squareverticalfill"] = 0x25a5; + t["squarewhitewithsmallblack"] = 0x25a3; + t["srsquare"] = 0x33db; + t["ssabengali"] = 0x09b7; + t["ssadeva"] = 0x0937; + t["ssagujarati"] = 0x0ab7; + t["ssangcieuckorean"] = 0x3149; + t["ssanghieuhkorean"] = 0x3185; + t["ssangieungkorean"] = 0x3180; + t["ssangkiyeokkorean"] = 0x3132; + t["ssangnieunkorean"] = 0x3165; + t["ssangpieupkorean"] = 0x3143; + t["ssangsioskorean"] = 0x3146; + t["ssangtikeutkorean"] = 0x3138; + t["ssuperior"] = 0xf6f2; + t["sterling"] = 0x00a3; + t["sterlingmonospace"] = 0xffe1; + t["strokelongoverlaycmb"] = 0x0336; + t["strokeshortoverlaycmb"] = 0x0335; + t["subset"] = 0x2282; + t["subsetnotequal"] = 0x228a; + t["subsetorequal"] = 0x2286; + t["succeeds"] = 0x227b; + t["suchthat"] = 0x220b; + t["suhiragana"] = 0x3059; + t["sukatakana"] = 0x30b9; + t["sukatakanahalfwidth"] = 0xff7d; + t["sukunarabic"] = 0x0652; + t["summation"] = 0x2211; + t["sun"] = 0x263c; + t["superset"] = 0x2283; + t["supersetnotequal"] = 0x228b; + t["supersetorequal"] = 0x2287; + t["svsquare"] = 0x33dc; + t["syouwaerasquare"] = 0x337c; + t["t"] = 0x0074; + t["tabengali"] = 0x09a4; + t["tackdown"] = 0x22a4; + t["tackleft"] = 0x22a3; + t["tadeva"] = 0x0924; + t["tagujarati"] = 0x0aa4; + t["tagurmukhi"] = 0x0a24; + t["taharabic"] = 0x0637; + t["tahfinalarabic"] = 0xfec2; + t["tahinitialarabic"] = 0xfec3; + t["tahiragana"] = 0x305f; + t["tahmedialarabic"] = 0xfec4; + t["taisyouerasquare"] = 0x337d; + t["takatakana"] = 0x30bf; + t["takatakanahalfwidth"] = 0xff80; + t["tatweelarabic"] = 0x0640; + t["tau"] = 0x03c4; + t["tav"] = 0x05ea; + t["tavdages"] = 0xfb4a; + t["tavdagesh"] = 0xfb4a; + t["tavdageshhebrew"] = 0xfb4a; + t["tavhebrew"] = 0x05ea; + t["tbar"] = 0x0167; + t["tbopomofo"] = 0x310a; + t["tcaron"] = 0x0165; + t["tccurl"] = 0x02a8; + t["tcedilla"] = 0x0163; + t["tcheharabic"] = 0x0686; + t["tchehfinalarabic"] = 0xfb7b; + t["tchehinitialarabic"] = 0xfb7c; + t["tchehmedialarabic"] = 0xfb7d; + t["tcircle"] = 0x24e3; + t["tcircumflexbelow"] = 0x1e71; + t["tcommaaccent"] = 0x0163; + t["tdieresis"] = 0x1e97; + t["tdotaccent"] = 0x1e6b; + t["tdotbelow"] = 0x1e6d; + t["tecyrillic"] = 0x0442; + t["tedescendercyrillic"] = 0x04ad; + t["teharabic"] = 0x062a; + t["tehfinalarabic"] = 0xfe96; + t["tehhahinitialarabic"] = 0xfca2; + t["tehhahisolatedarabic"] = 0xfc0c; + t["tehinitialarabic"] = 0xfe97; + t["tehiragana"] = 0x3066; + t["tehjeeminitialarabic"] = 0xfca1; + t["tehjeemisolatedarabic"] = 0xfc0b; + t["tehmarbutaarabic"] = 0x0629; + t["tehmarbutafinalarabic"] = 0xfe94; + t["tehmedialarabic"] = 0xfe98; + t["tehmeeminitialarabic"] = 0xfca4; + t["tehmeemisolatedarabic"] = 0xfc0e; + t["tehnoonfinalarabic"] = 0xfc73; + t["tekatakana"] = 0x30c6; + t["tekatakanahalfwidth"] = 0xff83; + t["telephone"] = 0x2121; + t["telephoneblack"] = 0x260e; + t["telishagedolahebrew"] = 0x05a0; + t["telishaqetanahebrew"] = 0x05a9; + t["tencircle"] = 0x2469; + t["tenideographicparen"] = 0x3229; + t["tenparen"] = 0x247d; + t["tenperiod"] = 0x2491; + t["tenroman"] = 0x2179; + t["tesh"] = 0x02a7; + t["tet"] = 0x05d8; + t["tetdagesh"] = 0xfb38; + t["tetdageshhebrew"] = 0xfb38; + t["tethebrew"] = 0x05d8; + t["tetsecyrillic"] = 0x04b5; + t["tevirhebrew"] = 0x059b; + t["tevirlefthebrew"] = 0x059b; + t["thabengali"] = 0x09a5; + t["thadeva"] = 0x0925; + t["thagujarati"] = 0x0aa5; + t["thagurmukhi"] = 0x0a25; + t["thalarabic"] = 0x0630; + t["thalfinalarabic"] = 0xfeac; + t["thanthakhatlowleftthai"] = 0xf898; + t["thanthakhatlowrightthai"] = 0xf897; + t["thanthakhatthai"] = 0x0e4c; + t["thanthakhatupperleftthai"] = 0xf896; + t["theharabic"] = 0x062b; + t["thehfinalarabic"] = 0xfe9a; + t["thehinitialarabic"] = 0xfe9b; + t["thehmedialarabic"] = 0xfe9c; + t["thereexists"] = 0x2203; + t["therefore"] = 0x2234; + t["theta"] = 0x03b8; + t["theta1"] = 0x03d1; + t["thetasymbolgreek"] = 0x03d1; + t["thieuthacirclekorean"] = 0x3279; + t["thieuthaparenkorean"] = 0x3219; + t["thieuthcirclekorean"] = 0x326b; + t["thieuthkorean"] = 0x314c; + t["thieuthparenkorean"] = 0x320b; + t["thirteencircle"] = 0x246c; + t["thirteenparen"] = 0x2480; + t["thirteenperiod"] = 0x2494; + t["thonangmonthothai"] = 0x0e11; + t["thook"] = 0x01ad; + t["thophuthaothai"] = 0x0e12; + t["thorn"] = 0x00fe; + t["thothahanthai"] = 0x0e17; + t["thothanthai"] = 0x0e10; + t["thothongthai"] = 0x0e18; + t["thothungthai"] = 0x0e16; + t["thousandcyrillic"] = 0x0482; + t["thousandsseparatorarabic"] = 0x066c; + t["thousandsseparatorpersian"] = 0x066c; + t["three"] = 0x0033; + t["threearabic"] = 0x0663; + t["threebengali"] = 0x09e9; + t["threecircle"] = 0x2462; + t["threecircleinversesansserif"] = 0x278c; + t["threedeva"] = 0x0969; + t["threeeighths"] = 0x215c; + t["threegujarati"] = 0x0ae9; + t["threegurmukhi"] = 0x0a69; + t["threehackarabic"] = 0x0663; + t["threehangzhou"] = 0x3023; + t["threeideographicparen"] = 0x3222; + t["threeinferior"] = 0x2083; + t["threemonospace"] = 0xff13; + t["threenumeratorbengali"] = 0x09f6; + t["threeoldstyle"] = 0xf733; + t["threeparen"] = 0x2476; + t["threeperiod"] = 0x248a; + t["threepersian"] = 0x06f3; + t["threequarters"] = 0x00be; + t["threequartersemdash"] = 0xf6de; + t["threeroman"] = 0x2172; + t["threesuperior"] = 0x00b3; + t["threethai"] = 0x0e53; + t["thzsquare"] = 0x3394; + t["tihiragana"] = 0x3061; + t["tikatakana"] = 0x30c1; + t["tikatakanahalfwidth"] = 0xff81; + t["tikeutacirclekorean"] = 0x3270; + t["tikeutaparenkorean"] = 0x3210; + t["tikeutcirclekorean"] = 0x3262; + t["tikeutkorean"] = 0x3137; + t["tikeutparenkorean"] = 0x3202; + t["tilde"] = 0x02dc; + t["tildebelowcmb"] = 0x0330; + t["tildecmb"] = 0x0303; + t["tildecomb"] = 0x0303; + t["tildedoublecmb"] = 0x0360; + t["tildeoperator"] = 0x223c; + t["tildeoverlaycmb"] = 0x0334; + t["tildeverticalcmb"] = 0x033e; + t["timescircle"] = 0x2297; + t["tipehahebrew"] = 0x0596; + t["tipehalefthebrew"] = 0x0596; + t["tippigurmukhi"] = 0x0a70; + t["titlocyrilliccmb"] = 0x0483; + t["tiwnarmenian"] = 0x057f; + t["tlinebelow"] = 0x1e6f; + t["tmonospace"] = 0xff54; + t["toarmenian"] = 0x0569; + t["tohiragana"] = 0x3068; + t["tokatakana"] = 0x30c8; + t["tokatakanahalfwidth"] = 0xff84; + t["tonebarextrahighmod"] = 0x02e5; + t["tonebarextralowmod"] = 0x02e9; + t["tonebarhighmod"] = 0x02e6; + t["tonebarlowmod"] = 0x02e8; + t["tonebarmidmod"] = 0x02e7; + t["tonefive"] = 0x01bd; + t["tonesix"] = 0x0185; + t["tonetwo"] = 0x01a8; + t["tonos"] = 0x0384; + t["tonsquare"] = 0x3327; + t["topatakthai"] = 0x0e0f; + t["tortoiseshellbracketleft"] = 0x3014; + t["tortoiseshellbracketleftsmall"] = 0xfe5d; + t["tortoiseshellbracketleftvertical"] = 0xfe39; + t["tortoiseshellbracketright"] = 0x3015; + t["tortoiseshellbracketrightsmall"] = 0xfe5e; + t["tortoiseshellbracketrightvertical"] = 0xfe3a; + t["totaothai"] = 0x0e15; + t["tpalatalhook"] = 0x01ab; + t["tparen"] = 0x24af; + t["trademark"] = 0x2122; + t["trademarksans"] = 0xf8ea; + t["trademarkserif"] = 0xf6db; + t["tretroflexhook"] = 0x0288; + t["triagdn"] = 0x25bc; + t["triaglf"] = 0x25c4; + t["triagrt"] = 0x25ba; + t["triagup"] = 0x25b2; + t["ts"] = 0x02a6; + t["tsadi"] = 0x05e6; + t["tsadidagesh"] = 0xfb46; + t["tsadidageshhebrew"] = 0xfb46; + t["tsadihebrew"] = 0x05e6; + t["tsecyrillic"] = 0x0446; + t["tsere"] = 0x05b5; + t["tsere12"] = 0x05b5; + t["tsere1e"] = 0x05b5; + t["tsere2b"] = 0x05b5; + t["tserehebrew"] = 0x05b5; + t["tserenarrowhebrew"] = 0x05b5; + t["tserequarterhebrew"] = 0x05b5; + t["tserewidehebrew"] = 0x05b5; + t["tshecyrillic"] = 0x045b; + t["tsuperior"] = 0xf6f3; + t["ttabengali"] = 0x099f; + t["ttadeva"] = 0x091f; + t["ttagujarati"] = 0x0a9f; + t["ttagurmukhi"] = 0x0a1f; + t["tteharabic"] = 0x0679; + t["ttehfinalarabic"] = 0xfb67; + t["ttehinitialarabic"] = 0xfb68; + t["ttehmedialarabic"] = 0xfb69; + t["tthabengali"] = 0x09a0; + t["tthadeva"] = 0x0920; + t["tthagujarati"] = 0x0aa0; + t["tthagurmukhi"] = 0x0a20; + t["tturned"] = 0x0287; + t["tuhiragana"] = 0x3064; + t["tukatakana"] = 0x30c4; + t["tukatakanahalfwidth"] = 0xff82; + t["tusmallhiragana"] = 0x3063; + t["tusmallkatakana"] = 0x30c3; + t["tusmallkatakanahalfwidth"] = 0xff6f; + t["twelvecircle"] = 0x246b; + t["twelveparen"] = 0x247f; + t["twelveperiod"] = 0x2493; + t["twelveroman"] = 0x217b; + t["twentycircle"] = 0x2473; + t["twentyhangzhou"] = 0x5344; + t["twentyparen"] = 0x2487; + t["twentyperiod"] = 0x249b; + t["two"] = 0x0032; + t["twoarabic"] = 0x0662; + t["twobengali"] = 0x09e8; + t["twocircle"] = 0x2461; + t["twocircleinversesansserif"] = 0x278b; + t["twodeva"] = 0x0968; + t["twodotenleader"] = 0x2025; + t["twodotleader"] = 0x2025; + t["twodotleadervertical"] = 0xfe30; + t["twogujarati"] = 0x0ae8; + t["twogurmukhi"] = 0x0a68; + t["twohackarabic"] = 0x0662; + t["twohangzhou"] = 0x3022; + t["twoideographicparen"] = 0x3221; + t["twoinferior"] = 0x2082; + t["twomonospace"] = 0xff12; + t["twonumeratorbengali"] = 0x09f5; + t["twooldstyle"] = 0xf732; + t["twoparen"] = 0x2475; + t["twoperiod"] = 0x2489; + t["twopersian"] = 0x06f2; + t["tworoman"] = 0x2171; + t["twostroke"] = 0x01bb; + t["twosuperior"] = 0x00b2; + t["twothai"] = 0x0e52; + t["twothirds"] = 0x2154; + t["u"] = 0x0075; + t["uacute"] = 0x00fa; + t["ubar"] = 0x0289; + t["ubengali"] = 0x0989; + t["ubopomofo"] = 0x3128; + t["ubreve"] = 0x016d; + t["ucaron"] = 0x01d4; + t["ucircle"] = 0x24e4; + t["ucircumflex"] = 0x00fb; + t["ucircumflexbelow"] = 0x1e77; + t["ucyrillic"] = 0x0443; + t["udattadeva"] = 0x0951; + t["udblacute"] = 0x0171; + t["udblgrave"] = 0x0215; + t["udeva"] = 0x0909; + t["udieresis"] = 0x00fc; + t["udieresisacute"] = 0x01d8; + t["udieresisbelow"] = 0x1e73; + t["udieresiscaron"] = 0x01da; + t["udieresiscyrillic"] = 0x04f1; + t["udieresisgrave"] = 0x01dc; + t["udieresismacron"] = 0x01d6; + t["udotbelow"] = 0x1ee5; + t["ugrave"] = 0x00f9; + t["ugujarati"] = 0x0a89; + t["ugurmukhi"] = 0x0a09; + t["uhiragana"] = 0x3046; + t["uhookabove"] = 0x1ee7; + t["uhorn"] = 0x01b0; + t["uhornacute"] = 0x1ee9; + t["uhorndotbelow"] = 0x1ef1; + t["uhorngrave"] = 0x1eeb; + t["uhornhookabove"] = 0x1eed; + t["uhorntilde"] = 0x1eef; + t["uhungarumlaut"] = 0x0171; + t["uhungarumlautcyrillic"] = 0x04f3; + t["uinvertedbreve"] = 0x0217; + t["ukatakana"] = 0x30a6; + t["ukatakanahalfwidth"] = 0xff73; + t["ukcyrillic"] = 0x0479; + t["ukorean"] = 0x315c; + t["umacron"] = 0x016b; + t["umacroncyrillic"] = 0x04ef; + t["umacrondieresis"] = 0x1e7b; + t["umatragurmukhi"] = 0x0a41; + t["umonospace"] = 0xff55; + t["underscore"] = 0x005f; + t["underscoredbl"] = 0x2017; + t["underscoremonospace"] = 0xff3f; + t["underscorevertical"] = 0xfe33; + t["underscorewavy"] = 0xfe4f; + t["union"] = 0x222a; + t["universal"] = 0x2200; + t["uogonek"] = 0x0173; + t["uparen"] = 0x24b0; + t["upblock"] = 0x2580; + t["upperdothebrew"] = 0x05c4; + t["upsilon"] = 0x03c5; + t["upsilondieresis"] = 0x03cb; + t["upsilondieresistonos"] = 0x03b0; + t["upsilonlatin"] = 0x028a; + t["upsilontonos"] = 0x03cd; + t["uptackbelowcmb"] = 0x031d; + t["uptackmod"] = 0x02d4; + t["uragurmukhi"] = 0x0a73; + t["uring"] = 0x016f; + t["ushortcyrillic"] = 0x045e; + t["usmallhiragana"] = 0x3045; + t["usmallkatakana"] = 0x30a5; + t["usmallkatakanahalfwidth"] = 0xff69; + t["ustraightcyrillic"] = 0x04af; + t["ustraightstrokecyrillic"] = 0x04b1; + t["utilde"] = 0x0169; + t["utildeacute"] = 0x1e79; + t["utildebelow"] = 0x1e75; + t["uubengali"] = 0x098a; + t["uudeva"] = 0x090a; + t["uugujarati"] = 0x0a8a; + t["uugurmukhi"] = 0x0a0a; + t["uumatragurmukhi"] = 0x0a42; + t["uuvowelsignbengali"] = 0x09c2; + t["uuvowelsigndeva"] = 0x0942; + t["uuvowelsigngujarati"] = 0x0ac2; + t["uvowelsignbengali"] = 0x09c1; + t["uvowelsigndeva"] = 0x0941; + t["uvowelsigngujarati"] = 0x0ac1; + t["v"] = 0x0076; + t["vadeva"] = 0x0935; + t["vagujarati"] = 0x0ab5; + t["vagurmukhi"] = 0x0a35; + t["vakatakana"] = 0x30f7; + t["vav"] = 0x05d5; + t["vavdagesh"] = 0xfb35; + t["vavdagesh65"] = 0xfb35; + t["vavdageshhebrew"] = 0xfb35; + t["vavhebrew"] = 0x05d5; + t["vavholam"] = 0xfb4b; + t["vavholamhebrew"] = 0xfb4b; + t["vavvavhebrew"] = 0x05f0; + t["vavyodhebrew"] = 0x05f1; + t["vcircle"] = 0x24e5; + t["vdotbelow"] = 0x1e7f; + t["vecyrillic"] = 0x0432; + t["veharabic"] = 0x06a4; + t["vehfinalarabic"] = 0xfb6b; + t["vehinitialarabic"] = 0xfb6c; + t["vehmedialarabic"] = 0xfb6d; + t["vekatakana"] = 0x30f9; + t["venus"] = 0x2640; + t["verticalbar"] = 0x007c; + t["verticallineabovecmb"] = 0x030d; + t["verticallinebelowcmb"] = 0x0329; + t["verticallinelowmod"] = 0x02cc; + t["verticallinemod"] = 0x02c8; + t["vewarmenian"] = 0x057e; + t["vhook"] = 0x028b; + t["vikatakana"] = 0x30f8; + t["viramabengali"] = 0x09cd; + t["viramadeva"] = 0x094d; + t["viramagujarati"] = 0x0acd; + t["visargabengali"] = 0x0983; + t["visargadeva"] = 0x0903; + t["visargagujarati"] = 0x0a83; + t["vmonospace"] = 0xff56; + t["voarmenian"] = 0x0578; + t["voicediterationhiragana"] = 0x309e; + t["voicediterationkatakana"] = 0x30fe; + t["voicedmarkkana"] = 0x309b; + t["voicedmarkkanahalfwidth"] = 0xff9e; + t["vokatakana"] = 0x30fa; + t["vparen"] = 0x24b1; + t["vtilde"] = 0x1e7d; + t["vturned"] = 0x028c; + t["vuhiragana"] = 0x3094; + t["vukatakana"] = 0x30f4; + t["w"] = 0x0077; + t["wacute"] = 0x1e83; + t["waekorean"] = 0x3159; + t["wahiragana"] = 0x308f; + t["wakatakana"] = 0x30ef; + t["wakatakanahalfwidth"] = 0xff9c; + t["wakorean"] = 0x3158; + t["wasmallhiragana"] = 0x308e; + t["wasmallkatakana"] = 0x30ee; + t["wattosquare"] = 0x3357; + t["wavedash"] = 0x301c; + t["wavyunderscorevertical"] = 0xfe34; + t["wawarabic"] = 0x0648; + t["wawfinalarabic"] = 0xfeee; + t["wawhamzaabovearabic"] = 0x0624; + t["wawhamzaabovefinalarabic"] = 0xfe86; + t["wbsquare"] = 0x33dd; + t["wcircle"] = 0x24e6; + t["wcircumflex"] = 0x0175; + t["wdieresis"] = 0x1e85; + t["wdotaccent"] = 0x1e87; + t["wdotbelow"] = 0x1e89; + t["wehiragana"] = 0x3091; + t["weierstrass"] = 0x2118; + t["wekatakana"] = 0x30f1; + t["wekorean"] = 0x315e; + t["weokorean"] = 0x315d; + t["wgrave"] = 0x1e81; + t["whitebullet"] = 0x25e6; + t["whitecircle"] = 0x25cb; + t["whitecircleinverse"] = 0x25d9; + t["whitecornerbracketleft"] = 0x300e; + t["whitecornerbracketleftvertical"] = 0xfe43; + t["whitecornerbracketright"] = 0x300f; + t["whitecornerbracketrightvertical"] = 0xfe44; + t["whitediamond"] = 0x25c7; + t["whitediamondcontainingblacksmalldiamond"] = 0x25c8; + t["whitedownpointingsmalltriangle"] = 0x25bf; + t["whitedownpointingtriangle"] = 0x25bd; + t["whiteleftpointingsmalltriangle"] = 0x25c3; + t["whiteleftpointingtriangle"] = 0x25c1; + t["whitelenticularbracketleft"] = 0x3016; + t["whitelenticularbracketright"] = 0x3017; + t["whiterightpointingsmalltriangle"] = 0x25b9; + t["whiterightpointingtriangle"] = 0x25b7; + t["whitesmallsquare"] = 0x25ab; + t["whitesmilingface"] = 0x263a; + t["whitesquare"] = 0x25a1; + t["whitestar"] = 0x2606; + t["whitetelephone"] = 0x260f; + t["whitetortoiseshellbracketleft"] = 0x3018; + t["whitetortoiseshellbracketright"] = 0x3019; + t["whiteuppointingsmalltriangle"] = 0x25b5; + t["whiteuppointingtriangle"] = 0x25b3; + t["wihiragana"] = 0x3090; + t["wikatakana"] = 0x30f0; + t["wikorean"] = 0x315f; + t["wmonospace"] = 0xff57; + t["wohiragana"] = 0x3092; + t["wokatakana"] = 0x30f2; + t["wokatakanahalfwidth"] = 0xff66; + t["won"] = 0x20a9; + t["wonmonospace"] = 0xffe6; + t["wowaenthai"] = 0x0e27; + t["wparen"] = 0x24b2; + t["wring"] = 0x1e98; + t["wsuperior"] = 0x02b7; + t["wturned"] = 0x028d; + t["wynn"] = 0x01bf; + t["x"] = 0x0078; + t["xabovecmb"] = 0x033d; + t["xbopomofo"] = 0x3112; + t["xcircle"] = 0x24e7; + t["xdieresis"] = 0x1e8d; + t["xdotaccent"] = 0x1e8b; + t["xeharmenian"] = 0x056d; + t["xi"] = 0x03be; + t["xmonospace"] = 0xff58; + t["xparen"] = 0x24b3; + t["xsuperior"] = 0x02e3; + t["y"] = 0x0079; + t["yaadosquare"] = 0x334e; + t["yabengali"] = 0x09af; + t["yacute"] = 0x00fd; + t["yadeva"] = 0x092f; + t["yaekorean"] = 0x3152; + t["yagujarati"] = 0x0aaf; + t["yagurmukhi"] = 0x0a2f; + t["yahiragana"] = 0x3084; + t["yakatakana"] = 0x30e4; + t["yakatakanahalfwidth"] = 0xff94; + t["yakorean"] = 0x3151; + t["yamakkanthai"] = 0x0e4e; + t["yasmallhiragana"] = 0x3083; + t["yasmallkatakana"] = 0x30e3; + t["yasmallkatakanahalfwidth"] = 0xff6c; + t["yatcyrillic"] = 0x0463; + t["ycircle"] = 0x24e8; + t["ycircumflex"] = 0x0177; + t["ydieresis"] = 0x00ff; + t["ydotaccent"] = 0x1e8f; + t["ydotbelow"] = 0x1ef5; + t["yeharabic"] = 0x064a; + t["yehbarreearabic"] = 0x06d2; + t["yehbarreefinalarabic"] = 0xfbaf; + t["yehfinalarabic"] = 0xfef2; + t["yehhamzaabovearabic"] = 0x0626; + t["yehhamzaabovefinalarabic"] = 0xfe8a; + t["yehhamzaaboveinitialarabic"] = 0xfe8b; + t["yehhamzaabovemedialarabic"] = 0xfe8c; + t["yehinitialarabic"] = 0xfef3; + t["yehmedialarabic"] = 0xfef4; + t["yehmeeminitialarabic"] = 0xfcdd; + t["yehmeemisolatedarabic"] = 0xfc58; + t["yehnoonfinalarabic"] = 0xfc94; + t["yehthreedotsbelowarabic"] = 0x06d1; + t["yekorean"] = 0x3156; + t["yen"] = 0x00a5; + t["yenmonospace"] = 0xffe5; + t["yeokorean"] = 0x3155; + t["yeorinhieuhkorean"] = 0x3186; + t["yerahbenyomohebrew"] = 0x05aa; + t["yerahbenyomolefthebrew"] = 0x05aa; + t["yericyrillic"] = 0x044b; + t["yerudieresiscyrillic"] = 0x04f9; + t["yesieungkorean"] = 0x3181; + t["yesieungpansioskorean"] = 0x3183; + t["yesieungsioskorean"] = 0x3182; + t["yetivhebrew"] = 0x059a; + t["ygrave"] = 0x1ef3; + t["yhook"] = 0x01b4; + t["yhookabove"] = 0x1ef7; + t["yiarmenian"] = 0x0575; + t["yicyrillic"] = 0x0457; + t["yikorean"] = 0x3162; + t["yinyang"] = 0x262f; + t["yiwnarmenian"] = 0x0582; + t["ymonospace"] = 0xff59; + t["yod"] = 0x05d9; + t["yoddagesh"] = 0xfb39; + t["yoddageshhebrew"] = 0xfb39; + t["yodhebrew"] = 0x05d9; + t["yodyodhebrew"] = 0x05f2; + t["yodyodpatahhebrew"] = 0xfb1f; + t["yohiragana"] = 0x3088; + t["yoikorean"] = 0x3189; + t["yokatakana"] = 0x30e8; + t["yokatakanahalfwidth"] = 0xff96; + t["yokorean"] = 0x315b; + t["yosmallhiragana"] = 0x3087; + t["yosmallkatakana"] = 0x30e7; + t["yosmallkatakanahalfwidth"] = 0xff6e; + t["yotgreek"] = 0x03f3; + t["yoyaekorean"] = 0x3188; + t["yoyakorean"] = 0x3187; + t["yoyakthai"] = 0x0e22; + t["yoyingthai"] = 0x0e0d; + t["yparen"] = 0x24b4; + t["ypogegrammeni"] = 0x037a; + t["ypogegrammenigreekcmb"] = 0x0345; + t["yr"] = 0x01a6; + t["yring"] = 0x1e99; + t["ysuperior"] = 0x02b8; + t["ytilde"] = 0x1ef9; + t["yturned"] = 0x028e; + t["yuhiragana"] = 0x3086; + t["yuikorean"] = 0x318c; + t["yukatakana"] = 0x30e6; + t["yukatakanahalfwidth"] = 0xff95; + t["yukorean"] = 0x3160; + t["yusbigcyrillic"] = 0x046b; + t["yusbigiotifiedcyrillic"] = 0x046d; + t["yuslittlecyrillic"] = 0x0467; + t["yuslittleiotifiedcyrillic"] = 0x0469; + t["yusmallhiragana"] = 0x3085; + t["yusmallkatakana"] = 0x30e5; + t["yusmallkatakanahalfwidth"] = 0xff6d; + t["yuyekorean"] = 0x318b; + t["yuyeokorean"] = 0x318a; + t["yyabengali"] = 0x09df; + t["yyadeva"] = 0x095f; + t["z"] = 0x007a; + t["zaarmenian"] = 0x0566; + t["zacute"] = 0x017a; + t["zadeva"] = 0x095b; + t["zagurmukhi"] = 0x0a5b; + t["zaharabic"] = 0x0638; + t["zahfinalarabic"] = 0xfec6; + t["zahinitialarabic"] = 0xfec7; + t["zahiragana"] = 0x3056; + t["zahmedialarabic"] = 0xfec8; + t["zainarabic"] = 0x0632; + t["zainfinalarabic"] = 0xfeb0; + t["zakatakana"] = 0x30b6; + t["zaqefgadolhebrew"] = 0x0595; + t["zaqefqatanhebrew"] = 0x0594; + t["zarqahebrew"] = 0x0598; + t["zayin"] = 0x05d6; + t["zayindagesh"] = 0xfb36; + t["zayindageshhebrew"] = 0xfb36; + t["zayinhebrew"] = 0x05d6; + t["zbopomofo"] = 0x3117; + t["zcaron"] = 0x017e; + t["zcircle"] = 0x24e9; + t["zcircumflex"] = 0x1e91; + t["zcurl"] = 0x0291; + t["zdot"] = 0x017c; + t["zdotaccent"] = 0x017c; + t["zdotbelow"] = 0x1e93; + t["zecyrillic"] = 0x0437; + t["zedescendercyrillic"] = 0x0499; + t["zedieresiscyrillic"] = 0x04df; + t["zehiragana"] = 0x305c; + t["zekatakana"] = 0x30bc; + t["zero"] = 0x0030; + t["zeroarabic"] = 0x0660; + t["zerobengali"] = 0x09e6; + t["zerodeva"] = 0x0966; + t["zerogujarati"] = 0x0ae6; + t["zerogurmukhi"] = 0x0a66; + t["zerohackarabic"] = 0x0660; + t["zeroinferior"] = 0x2080; + t["zeromonospace"] = 0xff10; + t["zerooldstyle"] = 0xf730; + t["zeropersian"] = 0x06f0; + t["zerosuperior"] = 0x2070; + t["zerothai"] = 0x0e50; + t["zerowidthjoiner"] = 0xfeff; + t["zerowidthnonjoiner"] = 0x200c; + t["zerowidthspace"] = 0x200b; + t["zeta"] = 0x03b6; + t["zhbopomofo"] = 0x3113; + t["zhearmenian"] = 0x056a; + t["zhebrevecyrillic"] = 0x04c2; + t["zhecyrillic"] = 0x0436; + t["zhedescendercyrillic"] = 0x0497; + t["zhedieresiscyrillic"] = 0x04dd; + t["zihiragana"] = 0x3058; + t["zikatakana"] = 0x30b8; + t["zinorhebrew"] = 0x05ae; + t["zlinebelow"] = 0x1e95; + t["zmonospace"] = 0xff5a; + t["zohiragana"] = 0x305e; + t["zokatakana"] = 0x30be; + t["zparen"] = 0x24b5; + t["zretroflexhook"] = 0x0290; + t["zstroke"] = 0x01b6; + t["zuhiragana"] = 0x305a; + t["zukatakana"] = 0x30ba; + t[".notdef"] = 0x0000; + t["angbracketleftbig"] = 0x2329; + t["angbracketleftBig"] = 0x2329; + t["angbracketleftbigg"] = 0x2329; + t["angbracketleftBigg"] = 0x2329; + t["angbracketrightBig"] = 0x232a; + t["angbracketrightbig"] = 0x232a; + t["angbracketrightBigg"] = 0x232a; + t["angbracketrightbigg"] = 0x232a; + t["arrowhookleft"] = 0x21aa; + t["arrowhookright"] = 0x21a9; + t["arrowlefttophalf"] = 0x21bc; + t["arrowleftbothalf"] = 0x21bd; + t["arrownortheast"] = 0x2197; + t["arrownorthwest"] = 0x2196; + t["arrowrighttophalf"] = 0x21c0; + t["arrowrightbothalf"] = 0x21c1; + t["arrowsoutheast"] = 0x2198; + t["arrowsouthwest"] = 0x2199; + t["backslashbig"] = 0x2216; + t["backslashBig"] = 0x2216; + t["backslashBigg"] = 0x2216; + t["backslashbigg"] = 0x2216; + t["bardbl"] = 0x2016; + t["bracehtipdownleft"] = 0xfe37; + t["bracehtipdownright"] = 0xfe37; + t["bracehtipupleft"] = 0xfe38; + t["bracehtipupright"] = 0xfe38; + t["braceleftBig"] = 0x007b; + t["braceleftbig"] = 0x007b; + t["braceleftbigg"] = 0x007b; + t["braceleftBigg"] = 0x007b; + t["bracerightBig"] = 0x007d; + t["bracerightbig"] = 0x007d; + t["bracerightbigg"] = 0x007d; + t["bracerightBigg"] = 0x007d; + t["bracketleftbig"] = 0x005b; + t["bracketleftBig"] = 0x005b; + t["bracketleftbigg"] = 0x005b; + t["bracketleftBigg"] = 0x005b; + t["bracketrightBig"] = 0x005d; + t["bracketrightbig"] = 0x005d; + t["bracketrightbigg"] = 0x005d; + t["bracketrightBigg"] = 0x005d; + t["ceilingleftbig"] = 0x2308; + t["ceilingleftBig"] = 0x2308; + t["ceilingleftBigg"] = 0x2308; + t["ceilingleftbigg"] = 0x2308; + t["ceilingrightbig"] = 0x2309; + t["ceilingrightBig"] = 0x2309; + t["ceilingrightbigg"] = 0x2309; + t["ceilingrightBigg"] = 0x2309; + t["circledotdisplay"] = 0x2299; + t["circledottext"] = 0x2299; + t["circlemultiplydisplay"] = 0x2297; + t["circlemultiplytext"] = 0x2297; + t["circleplusdisplay"] = 0x2295; + t["circleplustext"] = 0x2295; + t["contintegraldisplay"] = 0x222e; + t["contintegraltext"] = 0x222e; + t["coproductdisplay"] = 0x2210; + t["coproducttext"] = 0x2210; + t["floorleftBig"] = 0x230a; + t["floorleftbig"] = 0x230a; + t["floorleftbigg"] = 0x230a; + t["floorleftBigg"] = 0x230a; + t["floorrightbig"] = 0x230b; + t["floorrightBig"] = 0x230b; + t["floorrightBigg"] = 0x230b; + t["floorrightbigg"] = 0x230b; + t["hatwide"] = 0x0302; + t["hatwider"] = 0x0302; + t["hatwidest"] = 0x0302; + t["intercal"] = 0x1d40; + t["integraldisplay"] = 0x222b; + t["integraltext"] = 0x222b; + t["intersectiondisplay"] = 0x22c2; + t["intersectiontext"] = 0x22c2; + t["logicalanddisplay"] = 0x2227; + t["logicalandtext"] = 0x2227; + t["logicalordisplay"] = 0x2228; + t["logicalortext"] = 0x2228; + t["parenleftBig"] = 0x0028; + t["parenleftbig"] = 0x0028; + t["parenleftBigg"] = 0x0028; + t["parenleftbigg"] = 0x0028; + t["parenrightBig"] = 0x0029; + t["parenrightbig"] = 0x0029; + t["parenrightBigg"] = 0x0029; + t["parenrightbigg"] = 0x0029; + t["prime"] = 0x2032; + t["productdisplay"] = 0x220f; + t["producttext"] = 0x220f; + t["radicalbig"] = 0x221a; + t["radicalBig"] = 0x221a; + t["radicalBigg"] = 0x221a; + t["radicalbigg"] = 0x221a; + t["radicalbt"] = 0x221a; + t["radicaltp"] = 0x221a; + t["radicalvertex"] = 0x221a; + t["slashbig"] = 0x002f; + t["slashBig"] = 0x002f; + t["slashBigg"] = 0x002f; + t["slashbigg"] = 0x002f; + t["summationdisplay"] = 0x2211; + t["summationtext"] = 0x2211; + t["tildewide"] = 0x02dc; + t["tildewider"] = 0x02dc; + t["tildewidest"] = 0x02dc; + t["uniondisplay"] = 0x22c3; + t["unionmultidisplay"] = 0x228e; + t["unionmultitext"] = 0x228e; + t["unionsqdisplay"] = 0x2294; + t["unionsqtext"] = 0x2294; + t["uniontext"] = 0x22c3; + t["vextenddouble"] = 0x2225; + t["vextendsingle"] = 0x2223; }); var getDingbatsGlyphsUnicode = getLookupTableFactory(function (t) { - t['space'] = 0x0020; - t['a1'] = 0x2701; - t['a2'] = 0x2702; - t['a202'] = 0x2703; - t['a3'] = 0x2704; - t['a4'] = 0x260E; - t['a5'] = 0x2706; - t['a119'] = 0x2707; - t['a118'] = 0x2708; - t['a117'] = 0x2709; - t['a11'] = 0x261B; - t['a12'] = 0x261E; - t['a13'] = 0x270C; - t['a14'] = 0x270D; - t['a15'] = 0x270E; - t['a16'] = 0x270F; - t['a105'] = 0x2710; - t['a17'] = 0x2711; - t['a18'] = 0x2712; - t['a19'] = 0x2713; - t['a20'] = 0x2714; - t['a21'] = 0x2715; - t['a22'] = 0x2716; - t['a23'] = 0x2717; - t['a24'] = 0x2718; - t['a25'] = 0x2719; - t['a26'] = 0x271A; - t['a27'] = 0x271B; - t['a28'] = 0x271C; - t['a6'] = 0x271D; - t['a7'] = 0x271E; - t['a8'] = 0x271F; - t['a9'] = 0x2720; - t['a10'] = 0x2721; - t['a29'] = 0x2722; - t['a30'] = 0x2723; - t['a31'] = 0x2724; - t['a32'] = 0x2725; - t['a33'] = 0x2726; - t['a34'] = 0x2727; - t['a35'] = 0x2605; - t['a36'] = 0x2729; - t['a37'] = 0x272A; - t['a38'] = 0x272B; - t['a39'] = 0x272C; - t['a40'] = 0x272D; - t['a41'] = 0x272E; - t['a42'] = 0x272F; - t['a43'] = 0x2730; - t['a44'] = 0x2731; - t['a45'] = 0x2732; - t['a46'] = 0x2733; - t['a47'] = 0x2734; - t['a48'] = 0x2735; - t['a49'] = 0x2736; - t['a50'] = 0x2737; - t['a51'] = 0x2738; - t['a52'] = 0x2739; - t['a53'] = 0x273A; - t['a54'] = 0x273B; - t['a55'] = 0x273C; - t['a56'] = 0x273D; - t['a57'] = 0x273E; - t['a58'] = 0x273F; - t['a59'] = 0x2740; - t['a60'] = 0x2741; - t['a61'] = 0x2742; - t['a62'] = 0x2743; - t['a63'] = 0x2744; - t['a64'] = 0x2745; - t['a65'] = 0x2746; - t['a66'] = 0x2747; - t['a67'] = 0x2748; - t['a68'] = 0x2749; - t['a69'] = 0x274A; - t['a70'] = 0x274B; - t['a71'] = 0x25CF; - t['a72'] = 0x274D; - t['a73'] = 0x25A0; - t['a74'] = 0x274F; - t['a203'] = 0x2750; - t['a75'] = 0x2751; - t['a204'] = 0x2752; - t['a76'] = 0x25B2; - t['a77'] = 0x25BC; - t['a78'] = 0x25C6; - t['a79'] = 0x2756; - t['a81'] = 0x25D7; - t['a82'] = 0x2758; - t['a83'] = 0x2759; - t['a84'] = 0x275A; - t['a97'] = 0x275B; - t['a98'] = 0x275C; - t['a99'] = 0x275D; - t['a100'] = 0x275E; - t['a101'] = 0x2761; - t['a102'] = 0x2762; - t['a103'] = 0x2763; - t['a104'] = 0x2764; - t['a106'] = 0x2765; - t['a107'] = 0x2766; - t['a108'] = 0x2767; - t['a112'] = 0x2663; - t['a111'] = 0x2666; - t['a110'] = 0x2665; - t['a109'] = 0x2660; - t['a120'] = 0x2460; - t['a121'] = 0x2461; - t['a122'] = 0x2462; - t['a123'] = 0x2463; - t['a124'] = 0x2464; - t['a125'] = 0x2465; - t['a126'] = 0x2466; - t['a127'] = 0x2467; - t['a128'] = 0x2468; - t['a129'] = 0x2469; - t['a130'] = 0x2776; - t['a131'] = 0x2777; - t['a132'] = 0x2778; - t['a133'] = 0x2779; - t['a134'] = 0x277A; - t['a135'] = 0x277B; - t['a136'] = 0x277C; - t['a137'] = 0x277D; - t['a138'] = 0x277E; - t['a139'] = 0x277F; - t['a140'] = 0x2780; - t['a141'] = 0x2781; - t['a142'] = 0x2782; - t['a143'] = 0x2783; - t['a144'] = 0x2784; - t['a145'] = 0x2785; - t['a146'] = 0x2786; - t['a147'] = 0x2787; - t['a148'] = 0x2788; - t['a149'] = 0x2789; - t['a150'] = 0x278A; - t['a151'] = 0x278B; - t['a152'] = 0x278C; - t['a153'] = 0x278D; - t['a154'] = 0x278E; - t['a155'] = 0x278F; - t['a156'] = 0x2790; - t['a157'] = 0x2791; - t['a158'] = 0x2792; - t['a159'] = 0x2793; - t['a160'] = 0x2794; - t['a161'] = 0x2192; - t['a163'] = 0x2194; - t['a164'] = 0x2195; - t['a196'] = 0x2798; - t['a165'] = 0x2799; - t['a192'] = 0x279A; - t['a166'] = 0x279B; - t['a167'] = 0x279C; - t['a168'] = 0x279D; - t['a169'] = 0x279E; - t['a170'] = 0x279F; - t['a171'] = 0x27A0; - t['a172'] = 0x27A1; - t['a173'] = 0x27A2; - t['a162'] = 0x27A3; - t['a174'] = 0x27A4; - t['a175'] = 0x27A5; - t['a176'] = 0x27A6; - t['a177'] = 0x27A7; - t['a178'] = 0x27A8; - t['a179'] = 0x27A9; - t['a193'] = 0x27AA; - t['a180'] = 0x27AB; - t['a199'] = 0x27AC; - t['a181'] = 0x27AD; - t['a200'] = 0x27AE; - t['a182'] = 0x27AF; - t['a201'] = 0x27B1; - t['a183'] = 0x27B2; - t['a184'] = 0x27B3; - t['a197'] = 0x27B4; - t['a185'] = 0x27B5; - t['a194'] = 0x27B6; - t['a198'] = 0x27B7; - t['a186'] = 0x27B8; - t['a195'] = 0x27B9; - t['a187'] = 0x27BA; - t['a188'] = 0x27BB; - t['a189'] = 0x27BC; - t['a190'] = 0x27BD; - t['a191'] = 0x27BE; - t['a89'] = 0x2768; - t['a90'] = 0x2769; - t['a93'] = 0x276A; - t['a94'] = 0x276B; - t['a91'] = 0x276C; - t['a92'] = 0x276D; - t['a205'] = 0x276E; - t['a85'] = 0x276F; - t['a206'] = 0x2770; - t['a86'] = 0x2771; - t['a87'] = 0x2772; - t['a88'] = 0x2773; - t['a95'] = 0x2774; - t['a96'] = 0x2775; - t['.notdef'] = 0x0000; + t["space"] = 0x0020; + t["a1"] = 0x2701; + t["a2"] = 0x2702; + t["a202"] = 0x2703; + t["a3"] = 0x2704; + t["a4"] = 0x260e; + t["a5"] = 0x2706; + t["a119"] = 0x2707; + t["a118"] = 0x2708; + t["a117"] = 0x2709; + t["a11"] = 0x261b; + t["a12"] = 0x261e; + t["a13"] = 0x270c; + t["a14"] = 0x270d; + t["a15"] = 0x270e; + t["a16"] = 0x270f; + t["a105"] = 0x2710; + t["a17"] = 0x2711; + t["a18"] = 0x2712; + t["a19"] = 0x2713; + t["a20"] = 0x2714; + t["a21"] = 0x2715; + t["a22"] = 0x2716; + t["a23"] = 0x2717; + t["a24"] = 0x2718; + t["a25"] = 0x2719; + t["a26"] = 0x271a; + t["a27"] = 0x271b; + t["a28"] = 0x271c; + t["a6"] = 0x271d; + t["a7"] = 0x271e; + t["a8"] = 0x271f; + t["a9"] = 0x2720; + t["a10"] = 0x2721; + t["a29"] = 0x2722; + t["a30"] = 0x2723; + t["a31"] = 0x2724; + t["a32"] = 0x2725; + t["a33"] = 0x2726; + t["a34"] = 0x2727; + t["a35"] = 0x2605; + t["a36"] = 0x2729; + t["a37"] = 0x272a; + t["a38"] = 0x272b; + t["a39"] = 0x272c; + t["a40"] = 0x272d; + t["a41"] = 0x272e; + t["a42"] = 0x272f; + t["a43"] = 0x2730; + t["a44"] = 0x2731; + t["a45"] = 0x2732; + t["a46"] = 0x2733; + t["a47"] = 0x2734; + t["a48"] = 0x2735; + t["a49"] = 0x2736; + t["a50"] = 0x2737; + t["a51"] = 0x2738; + t["a52"] = 0x2739; + t["a53"] = 0x273a; + t["a54"] = 0x273b; + t["a55"] = 0x273c; + t["a56"] = 0x273d; + t["a57"] = 0x273e; + t["a58"] = 0x273f; + t["a59"] = 0x2740; + t["a60"] = 0x2741; + t["a61"] = 0x2742; + t["a62"] = 0x2743; + t["a63"] = 0x2744; + t["a64"] = 0x2745; + t["a65"] = 0x2746; + t["a66"] = 0x2747; + t["a67"] = 0x2748; + t["a68"] = 0x2749; + t["a69"] = 0x274a; + t["a70"] = 0x274b; + t["a71"] = 0x25cf; + t["a72"] = 0x274d; + t["a73"] = 0x25a0; + t["a74"] = 0x274f; + t["a203"] = 0x2750; + t["a75"] = 0x2751; + t["a204"] = 0x2752; + t["a76"] = 0x25b2; + t["a77"] = 0x25bc; + t["a78"] = 0x25c6; + t["a79"] = 0x2756; + t["a81"] = 0x25d7; + t["a82"] = 0x2758; + t["a83"] = 0x2759; + t["a84"] = 0x275a; + t["a97"] = 0x275b; + t["a98"] = 0x275c; + t["a99"] = 0x275d; + t["a100"] = 0x275e; + t["a101"] = 0x2761; + t["a102"] = 0x2762; + t["a103"] = 0x2763; + t["a104"] = 0x2764; + t["a106"] = 0x2765; + t["a107"] = 0x2766; + t["a108"] = 0x2767; + t["a112"] = 0x2663; + t["a111"] = 0x2666; + t["a110"] = 0x2665; + t["a109"] = 0x2660; + t["a120"] = 0x2460; + t["a121"] = 0x2461; + t["a122"] = 0x2462; + t["a123"] = 0x2463; + t["a124"] = 0x2464; + t["a125"] = 0x2465; + t["a126"] = 0x2466; + t["a127"] = 0x2467; + t["a128"] = 0x2468; + t["a129"] = 0x2469; + t["a130"] = 0x2776; + t["a131"] = 0x2777; + t["a132"] = 0x2778; + t["a133"] = 0x2779; + t["a134"] = 0x277a; + t["a135"] = 0x277b; + t["a136"] = 0x277c; + t["a137"] = 0x277d; + t["a138"] = 0x277e; + t["a139"] = 0x277f; + t["a140"] = 0x2780; + t["a141"] = 0x2781; + t["a142"] = 0x2782; + t["a143"] = 0x2783; + t["a144"] = 0x2784; + t["a145"] = 0x2785; + t["a146"] = 0x2786; + t["a147"] = 0x2787; + t["a148"] = 0x2788; + t["a149"] = 0x2789; + t["a150"] = 0x278a; + t["a151"] = 0x278b; + t["a152"] = 0x278c; + t["a153"] = 0x278d; + t["a154"] = 0x278e; + t["a155"] = 0x278f; + t["a156"] = 0x2790; + t["a157"] = 0x2791; + t["a158"] = 0x2792; + t["a159"] = 0x2793; + t["a160"] = 0x2794; + t["a161"] = 0x2192; + t["a163"] = 0x2194; + t["a164"] = 0x2195; + t["a196"] = 0x2798; + t["a165"] = 0x2799; + t["a192"] = 0x279a; + t["a166"] = 0x279b; + t["a167"] = 0x279c; + t["a168"] = 0x279d; + t["a169"] = 0x279e; + t["a170"] = 0x279f; + t["a171"] = 0x27a0; + t["a172"] = 0x27a1; + t["a173"] = 0x27a2; + t["a162"] = 0x27a3; + t["a174"] = 0x27a4; + t["a175"] = 0x27a5; + t["a176"] = 0x27a6; + t["a177"] = 0x27a7; + t["a178"] = 0x27a8; + t["a179"] = 0x27a9; + t["a193"] = 0x27aa; + t["a180"] = 0x27ab; + t["a199"] = 0x27ac; + t["a181"] = 0x27ad; + t["a200"] = 0x27ae; + t["a182"] = 0x27af; + t["a201"] = 0x27b1; + t["a183"] = 0x27b2; + t["a184"] = 0x27b3; + t["a197"] = 0x27b4; + t["a185"] = 0x27b5; + t["a194"] = 0x27b6; + t["a198"] = 0x27b7; + t["a186"] = 0x27b8; + t["a195"] = 0x27b9; + t["a187"] = 0x27ba; + t["a188"] = 0x27bb; + t["a189"] = 0x27bc; + t["a190"] = 0x27bd; + t["a191"] = 0x27be; + t["a89"] = 0x2768; + t["a90"] = 0x2769; + t["a93"] = 0x276a; + t["a94"] = 0x276b; + t["a91"] = 0x276c; + t["a92"] = 0x276d; + t["a205"] = 0x276e; + t["a85"] = 0x276f; + t["a206"] = 0x2770; + t["a86"] = 0x2771; + t["a87"] = 0x2772; + t["a88"] = 0x2773; + t["a95"] = 0x2774; + t["a96"] = 0x2775; + t[".notdef"] = 0x0000; }); exports.getGlyphsUnicode = getGlyphsUnicode; exports.getDingbatsGlyphsUnicode = getDingbatsGlyphsUnicode; /***/ }), -/* 33 */ +/* 32 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -33691,245 +33707,245 @@ Object.defineProperty(exports, "__esModule", { }); exports.getSupplementalGlyphMapForCalibri = exports.getSupplementalGlyphMapForArialBlack = exports.getGlyphMapForStandardFonts = exports.getSymbolsFonts = exports.getSerifFonts = exports.getNonStdFontMap = exports.getStdFontMap = void 0; -var _core_utils = __w_pdfjs_require__(8); +var _core_utils = __w_pdfjs_require__(7); const getStdFontMap = (0, _core_utils.getLookupTableFactory)(function (t) { - t['ArialNarrow'] = 'Helvetica'; - t['ArialNarrow-Bold'] = 'Helvetica-Bold'; - t['ArialNarrow-BoldItalic'] = 'Helvetica-BoldOblique'; - t['ArialNarrow-Italic'] = 'Helvetica-Oblique'; - t['ArialBlack'] = 'Helvetica'; - t['ArialBlack-Bold'] = 'Helvetica-Bold'; - t['ArialBlack-BoldItalic'] = 'Helvetica-BoldOblique'; - t['ArialBlack-Italic'] = 'Helvetica-Oblique'; - t['Arial-Black'] = 'Helvetica'; - t['Arial-Black-Bold'] = 'Helvetica-Bold'; - t['Arial-Black-BoldItalic'] = 'Helvetica-BoldOblique'; - t['Arial-Black-Italic'] = 'Helvetica-Oblique'; - t['Arial'] = 'Helvetica'; - t['Arial-Bold'] = 'Helvetica-Bold'; - t['Arial-BoldItalic'] = 'Helvetica-BoldOblique'; - t['Arial-Italic'] = 'Helvetica-Oblique'; - t['Arial-BoldItalicMT'] = 'Helvetica-BoldOblique'; - t['Arial-BoldMT'] = 'Helvetica-Bold'; - t['Arial-ItalicMT'] = 'Helvetica-Oblique'; - t['ArialMT'] = 'Helvetica'; - t['Courier-Bold'] = 'Courier-Bold'; - t['Courier-BoldItalic'] = 'Courier-BoldOblique'; - t['Courier-Italic'] = 'Courier-Oblique'; - t['CourierNew'] = 'Courier'; - t['CourierNew-Bold'] = 'Courier-Bold'; - t['CourierNew-BoldItalic'] = 'Courier-BoldOblique'; - t['CourierNew-Italic'] = 'Courier-Oblique'; - t['CourierNewPS-BoldItalicMT'] = 'Courier-BoldOblique'; - t['CourierNewPS-BoldMT'] = 'Courier-Bold'; - t['CourierNewPS-ItalicMT'] = 'Courier-Oblique'; - t['CourierNewPSMT'] = 'Courier'; - t['Helvetica'] = 'Helvetica'; - t['Helvetica-Bold'] = 'Helvetica-Bold'; - t['Helvetica-BoldItalic'] = 'Helvetica-BoldOblique'; - t['Helvetica-BoldOblique'] = 'Helvetica-BoldOblique'; - t['Helvetica-Italic'] = 'Helvetica-Oblique'; - t['Helvetica-Oblique'] = 'Helvetica-Oblique'; - t['SegoeUISymbol'] = 'Helvetica'; - t['Symbol-Bold'] = 'Symbol'; - t['Symbol-BoldItalic'] = 'Symbol'; - t['Symbol-Italic'] = 'Symbol'; - t['TimesNewRoman'] = 'Times-Roman'; - t['TimesNewRoman-Bold'] = 'Times-Bold'; - t['TimesNewRoman-BoldItalic'] = 'Times-BoldItalic'; - t['TimesNewRoman-Italic'] = 'Times-Italic'; - t['TimesNewRomanPS'] = 'Times-Roman'; - t['TimesNewRomanPS-Bold'] = 'Times-Bold'; - t['TimesNewRomanPS-BoldItalic'] = 'Times-BoldItalic'; - t['TimesNewRomanPS-BoldItalicMT'] = 'Times-BoldItalic'; - t['TimesNewRomanPS-BoldMT'] = 'Times-Bold'; - t['TimesNewRomanPS-Italic'] = 'Times-Italic'; - t['TimesNewRomanPS-ItalicMT'] = 'Times-Italic'; - t['TimesNewRomanPSMT'] = 'Times-Roman'; - t['TimesNewRomanPSMT-Bold'] = 'Times-Bold'; - t['TimesNewRomanPSMT-BoldItalic'] = 'Times-BoldItalic'; - t['TimesNewRomanPSMT-Italic'] = 'Times-Italic'; + t["ArialNarrow"] = "Helvetica"; + t["ArialNarrow-Bold"] = "Helvetica-Bold"; + t["ArialNarrow-BoldItalic"] = "Helvetica-BoldOblique"; + t["ArialNarrow-Italic"] = "Helvetica-Oblique"; + t["ArialBlack"] = "Helvetica"; + t["ArialBlack-Bold"] = "Helvetica-Bold"; + t["ArialBlack-BoldItalic"] = "Helvetica-BoldOblique"; + t["ArialBlack-Italic"] = "Helvetica-Oblique"; + t["Arial-Black"] = "Helvetica"; + t["Arial-Black-Bold"] = "Helvetica-Bold"; + t["Arial-Black-BoldItalic"] = "Helvetica-BoldOblique"; + t["Arial-Black-Italic"] = "Helvetica-Oblique"; + t["Arial"] = "Helvetica"; + t["Arial-Bold"] = "Helvetica-Bold"; + t["Arial-BoldItalic"] = "Helvetica-BoldOblique"; + t["Arial-Italic"] = "Helvetica-Oblique"; + t["Arial-BoldItalicMT"] = "Helvetica-BoldOblique"; + t["Arial-BoldMT"] = "Helvetica-Bold"; + t["Arial-ItalicMT"] = "Helvetica-Oblique"; + t["ArialMT"] = "Helvetica"; + t["Courier-Bold"] = "Courier-Bold"; + t["Courier-BoldItalic"] = "Courier-BoldOblique"; + t["Courier-Italic"] = "Courier-Oblique"; + t["CourierNew"] = "Courier"; + t["CourierNew-Bold"] = "Courier-Bold"; + t["CourierNew-BoldItalic"] = "Courier-BoldOblique"; + t["CourierNew-Italic"] = "Courier-Oblique"; + t["CourierNewPS-BoldItalicMT"] = "Courier-BoldOblique"; + t["CourierNewPS-BoldMT"] = "Courier-Bold"; + t["CourierNewPS-ItalicMT"] = "Courier-Oblique"; + t["CourierNewPSMT"] = "Courier"; + t["Helvetica"] = "Helvetica"; + t["Helvetica-Bold"] = "Helvetica-Bold"; + t["Helvetica-BoldItalic"] = "Helvetica-BoldOblique"; + t["Helvetica-BoldOblique"] = "Helvetica-BoldOblique"; + t["Helvetica-Italic"] = "Helvetica-Oblique"; + t["Helvetica-Oblique"] = "Helvetica-Oblique"; + t["Symbol-Bold"] = "Symbol"; + t["Symbol-BoldItalic"] = "Symbol"; + t["Symbol-Italic"] = "Symbol"; + t["TimesNewRoman"] = "Times-Roman"; + t["TimesNewRoman-Bold"] = "Times-Bold"; + t["TimesNewRoman-BoldItalic"] = "Times-BoldItalic"; + t["TimesNewRoman-Italic"] = "Times-Italic"; + t["TimesNewRomanPS"] = "Times-Roman"; + t["TimesNewRomanPS-Bold"] = "Times-Bold"; + t["TimesNewRomanPS-BoldItalic"] = "Times-BoldItalic"; + t["TimesNewRomanPS-BoldItalicMT"] = "Times-BoldItalic"; + t["TimesNewRomanPS-BoldMT"] = "Times-Bold"; + t["TimesNewRomanPS-Italic"] = "Times-Italic"; + t["TimesNewRomanPS-ItalicMT"] = "Times-Italic"; + t["TimesNewRomanPSMT"] = "Times-Roman"; + t["TimesNewRomanPSMT-Bold"] = "Times-Bold"; + t["TimesNewRomanPSMT-BoldItalic"] = "Times-BoldItalic"; + t["TimesNewRomanPSMT-Italic"] = "Times-Italic"; }); exports.getStdFontMap = getStdFontMap; const getNonStdFontMap = (0, _core_utils.getLookupTableFactory)(function (t) { - t['Calibri'] = 'Helvetica'; - t['Calibri-Bold'] = 'Helvetica-Bold'; - t['Calibri-BoldItalic'] = 'Helvetica-BoldOblique'; - t['Calibri-Italic'] = 'Helvetica-Oblique'; - t['CenturyGothic'] = 'Helvetica'; - t['CenturyGothic-Bold'] = 'Helvetica-Bold'; - t['CenturyGothic-BoldItalic'] = 'Helvetica-BoldOblique'; - t['CenturyGothic-Italic'] = 'Helvetica-Oblique'; - t['ComicSansMS'] = 'Comic Sans MS'; - t['ComicSansMS-Bold'] = 'Comic Sans MS-Bold'; - t['ComicSansMS-BoldItalic'] = 'Comic Sans MS-BoldItalic'; - t['ComicSansMS-Italic'] = 'Comic Sans MS-Italic'; - t['LucidaConsole'] = 'Courier'; - t['LucidaConsole-Bold'] = 'Courier-Bold'; - t['LucidaConsole-BoldItalic'] = 'Courier-BoldOblique'; - t['LucidaConsole-Italic'] = 'Courier-Oblique'; - t['LucidaSans-Demi'] = 'Helvetica-Bold'; - t['MS-Gothic'] = 'MS Gothic'; - t['MS-Gothic-Bold'] = 'MS Gothic-Bold'; - t['MS-Gothic-BoldItalic'] = 'MS Gothic-BoldItalic'; - t['MS-Gothic-Italic'] = 'MS Gothic-Italic'; - t['MS-Mincho'] = 'MS Mincho'; - t['MS-Mincho-Bold'] = 'MS Mincho-Bold'; - t['MS-Mincho-BoldItalic'] = 'MS Mincho-BoldItalic'; - t['MS-Mincho-Italic'] = 'MS Mincho-Italic'; - t['MS-PGothic'] = 'MS PGothic'; - t['MS-PGothic-Bold'] = 'MS PGothic-Bold'; - t['MS-PGothic-BoldItalic'] = 'MS PGothic-BoldItalic'; - t['MS-PGothic-Italic'] = 'MS PGothic-Italic'; - t['MS-PMincho'] = 'MS PMincho'; - t['MS-PMincho-Bold'] = 'MS PMincho-Bold'; - t['MS-PMincho-BoldItalic'] = 'MS PMincho-BoldItalic'; - t['MS-PMincho-Italic'] = 'MS PMincho-Italic'; - t['NuptialScript'] = 'Times-Italic'; - t['Wingdings'] = 'ZapfDingbats'; + t["Calibri"] = "Helvetica"; + t["Calibri-Bold"] = "Helvetica-Bold"; + t["Calibri-BoldItalic"] = "Helvetica-BoldOblique"; + t["Calibri-Italic"] = "Helvetica-Oblique"; + t["CenturyGothic"] = "Helvetica"; + t["CenturyGothic-Bold"] = "Helvetica-Bold"; + t["CenturyGothic-BoldItalic"] = "Helvetica-BoldOblique"; + t["CenturyGothic-Italic"] = "Helvetica-Oblique"; + t["ComicSansMS"] = "Comic Sans MS"; + t["ComicSansMS-Bold"] = "Comic Sans MS-Bold"; + t["ComicSansMS-BoldItalic"] = "Comic Sans MS-BoldItalic"; + t["ComicSansMS-Italic"] = "Comic Sans MS-Italic"; + t["LucidaConsole"] = "Courier"; + t["LucidaConsole-Bold"] = "Courier-Bold"; + t["LucidaConsole-BoldItalic"] = "Courier-BoldOblique"; + t["LucidaConsole-Italic"] = "Courier-Oblique"; + t["LucidaSans-Demi"] = "Helvetica-Bold"; + t["MS-Gothic"] = "MS Gothic"; + t["MS-Gothic-Bold"] = "MS Gothic-Bold"; + t["MS-Gothic-BoldItalic"] = "MS Gothic-BoldItalic"; + t["MS-Gothic-Italic"] = "MS Gothic-Italic"; + t["MS-Mincho"] = "MS Mincho"; + t["MS-Mincho-Bold"] = "MS Mincho-Bold"; + t["MS-Mincho-BoldItalic"] = "MS Mincho-BoldItalic"; + t["MS-Mincho-Italic"] = "MS Mincho-Italic"; + t["MS-PGothic"] = "MS PGothic"; + t["MS-PGothic-Bold"] = "MS PGothic-Bold"; + t["MS-PGothic-BoldItalic"] = "MS PGothic-BoldItalic"; + t["MS-PGothic-Italic"] = "MS PGothic-Italic"; + t["MS-PMincho"] = "MS PMincho"; + t["MS-PMincho-Bold"] = "MS PMincho-Bold"; + t["MS-PMincho-BoldItalic"] = "MS PMincho-BoldItalic"; + t["MS-PMincho-Italic"] = "MS PMincho-Italic"; + t["NuptialScript"] = "Times-Italic"; + t["SegoeUISymbol"] = "Helvetica"; + t["Wingdings"] = "ZapfDingbats"; }); exports.getNonStdFontMap = getNonStdFontMap; const getSerifFonts = (0, _core_utils.getLookupTableFactory)(function (t) { - t['Adobe Jenson'] = true; - t['Adobe Text'] = true; - t['Albertus'] = true; - t['Aldus'] = true; - t['Alexandria'] = true; - t['Algerian'] = true; - t['American Typewriter'] = true; - t['Antiqua'] = true; - t['Apex'] = true; - t['Arno'] = true; - t['Aster'] = true; - t['Aurora'] = true; - t['Baskerville'] = true; - t['Bell'] = true; - t['Bembo'] = true; - t['Bembo Schoolbook'] = true; - t['Benguiat'] = true; - t['Berkeley Old Style'] = true; - t['Bernhard Modern'] = true; - t['Berthold City'] = true; - t['Bodoni'] = true; - t['Bauer Bodoni'] = true; - t['Book Antiqua'] = true; - t['Bookman'] = true; - t['Bordeaux Roman'] = true; - t['Californian FB'] = true; - t['Calisto'] = true; - t['Calvert'] = true; - t['Capitals'] = true; - t['Cambria'] = true; - t['Cartier'] = true; - t['Caslon'] = true; - t['Catull'] = true; - t['Centaur'] = true; - t['Century Old Style'] = true; - t['Century Schoolbook'] = true; - t['Chaparral'] = true; - t['Charis SIL'] = true; - t['Cheltenham'] = true; - t['Cholla Slab'] = true; - t['Clarendon'] = true; - t['Clearface'] = true; - t['Cochin'] = true; - t['Colonna'] = true; - t['Computer Modern'] = true; - t['Concrete Roman'] = true; - t['Constantia'] = true; - t['Cooper Black'] = true; - t['Corona'] = true; - t['Ecotype'] = true; - t['Egyptienne'] = true; - t['Elephant'] = true; - t['Excelsior'] = true; - t['Fairfield'] = true; - t['FF Scala'] = true; - t['Folkard'] = true; - t['Footlight'] = true; - t['FreeSerif'] = true; - t['Friz Quadrata'] = true; - t['Garamond'] = true; - t['Gentium'] = true; - t['Georgia'] = true; - t['Gloucester'] = true; - t['Goudy Old Style'] = true; - t['Goudy Schoolbook'] = true; - t['Goudy Pro Font'] = true; - t['Granjon'] = true; - t['Guardian Egyptian'] = true; - t['Heather'] = true; - t['Hercules'] = true; - t['High Tower Text'] = true; - t['Hiroshige'] = true; - t['Hoefler Text'] = true; - t['Humana Serif'] = true; - t['Imprint'] = true; - t['Ionic No. 5'] = true; - t['Janson'] = true; - t['Joanna'] = true; - t['Korinna'] = true; - t['Lexicon'] = true; - t['Liberation Serif'] = true; - t['Linux Libertine'] = true; - t['Literaturnaya'] = true; - t['Lucida'] = true; - t['Lucida Bright'] = true; - t['Melior'] = true; - t['Memphis'] = true; - t['Miller'] = true; - t['Minion'] = true; - t['Modern'] = true; - t['Mona Lisa'] = true; - t['Mrs Eaves'] = true; - t['MS Serif'] = true; - t['Museo Slab'] = true; - t['New York'] = true; - t['Nimbus Roman'] = true; - t['NPS Rawlinson Roadway'] = true; - t['NuptialScript'] = true; - t['Palatino'] = true; - t['Perpetua'] = true; - t['Plantin'] = true; - t['Plantin Schoolbook'] = true; - t['Playbill'] = true; - t['Poor Richard'] = true; - t['Rawlinson Roadway'] = true; - t['Renault'] = true; - t['Requiem'] = true; - t['Rockwell'] = true; - t['Roman'] = true; - t['Rotis Serif'] = true; - t['Sabon'] = true; - t['Scala'] = true; - t['Seagull'] = true; - t['Sistina'] = true; - t['Souvenir'] = true; - t['STIX'] = true; - t['Stone Informal'] = true; - t['Stone Serif'] = true; - t['Sylfaen'] = true; - t['Times'] = true; - t['Trajan'] = true; - t['Trinité'] = true; - t['Trump Mediaeval'] = true; - t['Utopia'] = true; - t['Vale Type'] = true; - t['Bitstream Vera'] = true; - t['Vera Serif'] = true; - t['Versailles'] = true; - t['Wanted'] = true; - t['Weiss'] = true; - t['Wide Latin'] = true; - t['Windsor'] = true; - t['XITS'] = true; + t["Adobe Jenson"] = true; + t["Adobe Text"] = true; + t["Albertus"] = true; + t["Aldus"] = true; + t["Alexandria"] = true; + t["Algerian"] = true; + t["American Typewriter"] = true; + t["Antiqua"] = true; + t["Apex"] = true; + t["Arno"] = true; + t["Aster"] = true; + t["Aurora"] = true; + t["Baskerville"] = true; + t["Bell"] = true; + t["Bembo"] = true; + t["Bembo Schoolbook"] = true; + t["Benguiat"] = true; + t["Berkeley Old Style"] = true; + t["Bernhard Modern"] = true; + t["Berthold City"] = true; + t["Bodoni"] = true; + t["Bauer Bodoni"] = true; + t["Book Antiqua"] = true; + t["Bookman"] = true; + t["Bordeaux Roman"] = true; + t["Californian FB"] = true; + t["Calisto"] = true; + t["Calvert"] = true; + t["Capitals"] = true; + t["Cambria"] = true; + t["Cartier"] = true; + t["Caslon"] = true; + t["Catull"] = true; + t["Centaur"] = true; + t["Century Old Style"] = true; + t["Century Schoolbook"] = true; + t["Chaparral"] = true; + t["Charis SIL"] = true; + t["Cheltenham"] = true; + t["Cholla Slab"] = true; + t["Clarendon"] = true; + t["Clearface"] = true; + t["Cochin"] = true; + t["Colonna"] = true; + t["Computer Modern"] = true; + t["Concrete Roman"] = true; + t["Constantia"] = true; + t["Cooper Black"] = true; + t["Corona"] = true; + t["Ecotype"] = true; + t["Egyptienne"] = true; + t["Elephant"] = true; + t["Excelsior"] = true; + t["Fairfield"] = true; + t["FF Scala"] = true; + t["Folkard"] = true; + t["Footlight"] = true; + t["FreeSerif"] = true; + t["Friz Quadrata"] = true; + t["Garamond"] = true; + t["Gentium"] = true; + t["Georgia"] = true; + t["Gloucester"] = true; + t["Goudy Old Style"] = true; + t["Goudy Schoolbook"] = true; + t["Goudy Pro Font"] = true; + t["Granjon"] = true; + t["Guardian Egyptian"] = true; + t["Heather"] = true; + t["Hercules"] = true; + t["High Tower Text"] = true; + t["Hiroshige"] = true; + t["Hoefler Text"] = true; + t["Humana Serif"] = true; + t["Imprint"] = true; + t["Ionic No. 5"] = true; + t["Janson"] = true; + t["Joanna"] = true; + t["Korinna"] = true; + t["Lexicon"] = true; + t["Liberation Serif"] = true; + t["Linux Libertine"] = true; + t["Literaturnaya"] = true; + t["Lucida"] = true; + t["Lucida Bright"] = true; + t["Melior"] = true; + t["Memphis"] = true; + t["Miller"] = true; + t["Minion"] = true; + t["Modern"] = true; + t["Mona Lisa"] = true; + t["Mrs Eaves"] = true; + t["MS Serif"] = true; + t["Museo Slab"] = true; + t["New York"] = true; + t["Nimbus Roman"] = true; + t["NPS Rawlinson Roadway"] = true; + t["NuptialScript"] = true; + t["Palatino"] = true; + t["Perpetua"] = true; + t["Plantin"] = true; + t["Plantin Schoolbook"] = true; + t["Playbill"] = true; + t["Poor Richard"] = true; + t["Rawlinson Roadway"] = true; + t["Renault"] = true; + t["Requiem"] = true; + t["Rockwell"] = true; + t["Roman"] = true; + t["Rotis Serif"] = true; + t["Sabon"] = true; + t["Scala"] = true; + t["Seagull"] = true; + t["Sistina"] = true; + t["Souvenir"] = true; + t["STIX"] = true; + t["Stone Informal"] = true; + t["Stone Serif"] = true; + t["Sylfaen"] = true; + t["Times"] = true; + t["Trajan"] = true; + t["Trinité"] = true; + t["Trump Mediaeval"] = true; + t["Utopia"] = true; + t["Vale Type"] = true; + t["Bitstream Vera"] = true; + t["Vera Serif"] = true; + t["Versailles"] = true; + t["Wanted"] = true; + t["Weiss"] = true; + t["Wide Latin"] = true; + t["Windsor"] = true; + t["XITS"] = true; }); exports.getSerifFonts = getSerifFonts; const getSymbolsFonts = (0, _core_utils.getLookupTableFactory)(function (t) { - t['Dingbats'] = true; - t['Symbol'] = true; - t['ZapfDingbats'] = true; + t["Dingbats"] = true; + t["Symbol"] = true; + t["ZapfDingbats"] = true; }); exports.getSymbolsFonts = getSymbolsFonts; const getGlyphMapForStandardFonts = (0, _core_utils.getLookupTableFactory)(function (t) { @@ -34423,43 +34439,43 @@ const getSupplementalGlyphMapForCalibri = (0, _core_utils.getLookupTableFactory) exports.getSupplementalGlyphMapForCalibri = getSupplementalGlyphMapForCalibri; /***/ }), -/* 34 */ +/* 33 */ /***/ (function(module, exports, __w_pdfjs_require__) { -var getLookupTableFactory = __w_pdfjs_require__(8).getLookupTableFactory; +var getLookupTableFactory = __w_pdfjs_require__(7).getLookupTableFactory; var getSpecialPUASymbols = getLookupTableFactory(function (t) { - t[63721] = 0x00A9; - t[63193] = 0x00A9; - t[63720] = 0x00AE; - t[63194] = 0x00AE; + t[63721] = 0x00a9; + t[63193] = 0x00a9; + t[63720] = 0x00ae; + t[63194] = 0x00ae; t[63722] = 0x2122; t[63195] = 0x2122; - t[63729] = 0x23A7; - t[63730] = 0x23A8; - t[63731] = 0x23A9; - t[63740] = 0x23AB; - t[63741] = 0x23AC; - t[63742] = 0x23AD; - t[63726] = 0x23A1; - t[63727] = 0x23A2; - t[63728] = 0x23A3; - t[63737] = 0x23A4; - t[63738] = 0x23A5; - t[63739] = 0x23A6; - t[63723] = 0x239B; - t[63724] = 0x239C; - t[63725] = 0x239D; - t[63734] = 0x239E; - t[63735] = 0x239F; - t[63736] = 0x23A0; + t[63729] = 0x23a7; + t[63730] = 0x23a8; + t[63731] = 0x23a9; + t[63740] = 0x23ab; + t[63741] = 0x23ac; + t[63742] = 0x23ad; + t[63726] = 0x23a1; + t[63727] = 0x23a2; + t[63728] = 0x23a3; + t[63737] = 0x23a4; + t[63738] = 0x23a5; + t[63739] = 0x23a6; + t[63723] = 0x239b; + t[63724] = 0x239c; + t[63725] = 0x239d; + t[63734] = 0x239e; + t[63735] = 0x239f; + t[63736] = 0x23a0; }); function mapSpecialUnicodeValues(code) { - if (code >= 0xFFF0 && code <= 0xFFFF) { + if (code >= 0xfff0 && code <= 0xffff) { return 0; - } else if (code >= 0xF600 && code <= 0xF8FF) { + } else if (code >= 0xf600 && code <= 0xf8ff) { return getSpecialPUASymbols()[code] || code; - } else if (code === 0x00AD) { - return 0x002D; + } else if (code === 0x00ad) { + return 0x002d; } return code; } @@ -34471,9 +34487,9 @@ function getUnicodeForGlyph(name, glyphsUnicodeMap) { if (!name) { return -1; } - if (name[0] === 'u') { + if (name[0] === "u") { var nameLen = name.length, hexStr; - if (nameLen === 7 && name[1] === 'n' && name[2] === 'i') { + if (nameLen === 7 && name[1] === "n" && name[2] === "i") { hexStr = name.substring(3); } else if (nameLen >= 5 && nameLen <= 7) { hexStr = name.substring(1); @@ -34491,496 +34507,496 @@ function getUnicodeForGlyph(name, glyphsUnicodeMap) { } var UnicodeRanges = [ { - 'begin': 0x0000, - 'end': 0x007F + begin: 0x0000, + end: 0x007f }, { - 'begin': 0x0080, - 'end': 0x00FF + begin: 0x0080, + end: 0x00ff }, { - 'begin': 0x0100, - 'end': 0x017F + begin: 0x0100, + end: 0x017f }, { - 'begin': 0x0180, - 'end': 0x024F + begin: 0x0180, + end: 0x024f }, { - 'begin': 0x0250, - 'end': 0x02AF + begin: 0x0250, + end: 0x02af }, { - 'begin': 0x02B0, - 'end': 0x02FF + begin: 0x02b0, + end: 0x02ff }, { - 'begin': 0x0300, - 'end': 0x036F + begin: 0x0300, + end: 0x036f }, { - 'begin': 0x0370, - 'end': 0x03FF + begin: 0x0370, + end: 0x03ff }, { - 'begin': 0x2C80, - 'end': 0x2CFF + begin: 0x2c80, + end: 0x2cff }, { - 'begin': 0x0400, - 'end': 0x04FF + begin: 0x0400, + end: 0x04ff }, { - 'begin': 0x0530, - 'end': 0x058F + begin: 0x0530, + end: 0x058f }, { - 'begin': 0x0590, - 'end': 0x05FF + begin: 0x0590, + end: 0x05ff }, { - 'begin': 0xA500, - 'end': 0xA63F + begin: 0xa500, + end: 0xa63f }, { - 'begin': 0x0600, - 'end': 0x06FF + begin: 0x0600, + end: 0x06ff }, { - 'begin': 0x07C0, - 'end': 0x07FF + begin: 0x07c0, + end: 0x07ff }, { - 'begin': 0x0900, - 'end': 0x097F + begin: 0x0900, + end: 0x097f }, { - 'begin': 0x0980, - 'end': 0x09FF + begin: 0x0980, + end: 0x09ff }, { - 'begin': 0x0A00, - 'end': 0x0A7F + begin: 0x0a00, + end: 0x0a7f }, { - 'begin': 0x0A80, - 'end': 0x0AFF + begin: 0x0a80, + end: 0x0aff }, { - 'begin': 0x0B00, - 'end': 0x0B7F + begin: 0x0b00, + end: 0x0b7f }, { - 'begin': 0x0B80, - 'end': 0x0BFF + begin: 0x0b80, + end: 0x0bff }, { - 'begin': 0x0C00, - 'end': 0x0C7F + begin: 0x0c00, + end: 0x0c7f }, { - 'begin': 0x0C80, - 'end': 0x0CFF + begin: 0x0c80, + end: 0x0cff }, { - 'begin': 0x0D00, - 'end': 0x0D7F + begin: 0x0d00, + end: 0x0d7f }, { - 'begin': 0x0E00, - 'end': 0x0E7F + begin: 0x0e00, + end: 0x0e7f }, { - 'begin': 0x0E80, - 'end': 0x0EFF + begin: 0x0e80, + end: 0x0eff }, { - 'begin': 0x10A0, - 'end': 0x10FF + begin: 0x10a0, + end: 0x10ff }, { - 'begin': 0x1B00, - 'end': 0x1B7F + begin: 0x1b00, + end: 0x1b7f }, { - 'begin': 0x1100, - 'end': 0x11FF + begin: 0x1100, + end: 0x11ff }, { - 'begin': 0x1E00, - 'end': 0x1EFF + begin: 0x1e00, + end: 0x1eff }, { - 'begin': 0x1F00, - 'end': 0x1FFF + begin: 0x1f00, + end: 0x1fff }, { - 'begin': 0x2000, - 'end': 0x206F + begin: 0x2000, + end: 0x206f }, { - 'begin': 0x2070, - 'end': 0x209F + begin: 0x2070, + end: 0x209f }, { - 'begin': 0x20A0, - 'end': 0x20CF + begin: 0x20a0, + end: 0x20cf }, { - 'begin': 0x20D0, - 'end': 0x20FF + begin: 0x20d0, + end: 0x20ff }, { - 'begin': 0x2100, - 'end': 0x214F + begin: 0x2100, + end: 0x214f }, { - 'begin': 0x2150, - 'end': 0x218F + begin: 0x2150, + end: 0x218f }, { - 'begin': 0x2190, - 'end': 0x21FF + begin: 0x2190, + end: 0x21ff }, { - 'begin': 0x2200, - 'end': 0x22FF + begin: 0x2200, + end: 0x22ff }, { - 'begin': 0x2300, - 'end': 0x23FF + begin: 0x2300, + end: 0x23ff }, { - 'begin': 0x2400, - 'end': 0x243F + begin: 0x2400, + end: 0x243f }, { - 'begin': 0x2440, - 'end': 0x245F + begin: 0x2440, + end: 0x245f }, { - 'begin': 0x2460, - 'end': 0x24FF + begin: 0x2460, + end: 0x24ff }, { - 'begin': 0x2500, - 'end': 0x257F + begin: 0x2500, + end: 0x257f }, { - 'begin': 0x2580, - 'end': 0x259F + begin: 0x2580, + end: 0x259f }, { - 'begin': 0x25A0, - 'end': 0x25FF + begin: 0x25a0, + end: 0x25ff }, { - 'begin': 0x2600, - 'end': 0x26FF + begin: 0x2600, + end: 0x26ff }, { - 'begin': 0x2700, - 'end': 0x27BF + begin: 0x2700, + end: 0x27bf }, { - 'begin': 0x3000, - 'end': 0x303F + begin: 0x3000, + end: 0x303f }, { - 'begin': 0x3040, - 'end': 0x309F + begin: 0x3040, + end: 0x309f }, { - 'begin': 0x30A0, - 'end': 0x30FF + begin: 0x30a0, + end: 0x30ff }, { - 'begin': 0x3100, - 'end': 0x312F + begin: 0x3100, + end: 0x312f }, { - 'begin': 0x3130, - 'end': 0x318F + begin: 0x3130, + end: 0x318f }, { - 'begin': 0xA840, - 'end': 0xA87F + begin: 0xa840, + end: 0xa87f }, { - 'begin': 0x3200, - 'end': 0x32FF + begin: 0x3200, + end: 0x32ff }, { - 'begin': 0x3300, - 'end': 0x33FF + begin: 0x3300, + end: 0x33ff }, { - 'begin': 0xAC00, - 'end': 0xD7AF + begin: 0xac00, + end: 0xd7af }, { - 'begin': 0xD800, - 'end': 0xDFFF + begin: 0xd800, + end: 0xdfff }, { - 'begin': 0x10900, - 'end': 0x1091F + begin: 0x10900, + end: 0x1091f }, { - 'begin': 0x4E00, - 'end': 0x9FFF + begin: 0x4e00, + end: 0x9fff }, { - 'begin': 0xE000, - 'end': 0xF8FF + begin: 0xe000, + end: 0xf8ff }, { - 'begin': 0x31C0, - 'end': 0x31EF + begin: 0x31c0, + end: 0x31ef }, { - 'begin': 0xFB00, - 'end': 0xFB4F + begin: 0xfb00, + end: 0xfb4f }, { - 'begin': 0xFB50, - 'end': 0xFDFF + begin: 0xfb50, + end: 0xfdff }, { - 'begin': 0xFE20, - 'end': 0xFE2F + begin: 0xfe20, + end: 0xfe2f }, { - 'begin': 0xFE10, - 'end': 0xFE1F + begin: 0xfe10, + end: 0xfe1f }, { - 'begin': 0xFE50, - 'end': 0xFE6F + begin: 0xfe50, + end: 0xfe6f }, { - 'begin': 0xFE70, - 'end': 0xFEFF + begin: 0xfe70, + end: 0xfeff }, { - 'begin': 0xFF00, - 'end': 0xFFEF + begin: 0xff00, + end: 0xffef }, { - 'begin': 0xFFF0, - 'end': 0xFFFF + begin: 0xfff0, + end: 0xffff }, { - 'begin': 0x0F00, - 'end': 0x0FFF + begin: 0x0f00, + end: 0x0fff }, { - 'begin': 0x0700, - 'end': 0x074F + begin: 0x0700, + end: 0x074f }, { - 'begin': 0x0780, - 'end': 0x07BF + begin: 0x0780, + end: 0x07bf }, { - 'begin': 0x0D80, - 'end': 0x0DFF + begin: 0x0d80, + end: 0x0dff }, { - 'begin': 0x1000, - 'end': 0x109F + begin: 0x1000, + end: 0x109f }, { - 'begin': 0x1200, - 'end': 0x137F + begin: 0x1200, + end: 0x137f }, { - 'begin': 0x13A0, - 'end': 0x13FF + begin: 0x13a0, + end: 0x13ff }, { - 'begin': 0x1400, - 'end': 0x167F + begin: 0x1400, + end: 0x167f }, { - 'begin': 0x1680, - 'end': 0x169F + begin: 0x1680, + end: 0x169f }, { - 'begin': 0x16A0, - 'end': 0x16FF + begin: 0x16a0, + end: 0x16ff }, { - 'begin': 0x1780, - 'end': 0x17FF + begin: 0x1780, + end: 0x17ff }, { - 'begin': 0x1800, - 'end': 0x18AF + begin: 0x1800, + end: 0x18af }, { - 'begin': 0x2800, - 'end': 0x28FF + begin: 0x2800, + end: 0x28ff }, { - 'begin': 0xA000, - 'end': 0xA48F + begin: 0xa000, + end: 0xa48f }, { - 'begin': 0x1700, - 'end': 0x171F + begin: 0x1700, + end: 0x171f }, { - 'begin': 0x10300, - 'end': 0x1032F + begin: 0x10300, + end: 0x1032f }, { - 'begin': 0x10330, - 'end': 0x1034F + begin: 0x10330, + end: 0x1034f }, { - 'begin': 0x10400, - 'end': 0x1044F + begin: 0x10400, + end: 0x1044f }, { - 'begin': 0x1D000, - 'end': 0x1D0FF + begin: 0x1d000, + end: 0x1d0ff }, { - 'begin': 0x1D400, - 'end': 0x1D7FF + begin: 0x1d400, + end: 0x1d7ff }, { - 'begin': 0xFF000, - 'end': 0xFFFFD + begin: 0xff000, + end: 0xffffd }, { - 'begin': 0xFE00, - 'end': 0xFE0F + begin: 0xfe00, + end: 0xfe0f }, { - 'begin': 0xE0000, - 'end': 0xE007F + begin: 0xe0000, + end: 0xe007f }, { - 'begin': 0x1900, - 'end': 0x194F + begin: 0x1900, + end: 0x194f }, { - 'begin': 0x1950, - 'end': 0x197F + begin: 0x1950, + end: 0x197f }, { - 'begin': 0x1980, - 'end': 0x19DF + begin: 0x1980, + end: 0x19df }, { - 'begin': 0x1A00, - 'end': 0x1A1F + begin: 0x1a00, + end: 0x1a1f }, { - 'begin': 0x2C00, - 'end': 0x2C5F + begin: 0x2c00, + end: 0x2c5f }, { - 'begin': 0x2D30, - 'end': 0x2D7F + begin: 0x2d30, + end: 0x2d7f }, { - 'begin': 0x4DC0, - 'end': 0x4DFF + begin: 0x4dc0, + end: 0x4dff }, { - 'begin': 0xA800, - 'end': 0xA82F + begin: 0xa800, + end: 0xa82f }, { - 'begin': 0x10000, - 'end': 0x1007F + begin: 0x10000, + end: 0x1007f }, { - 'begin': 0x10140, - 'end': 0x1018F + begin: 0x10140, + end: 0x1018f }, { - 'begin': 0x10380, - 'end': 0x1039F + begin: 0x10380, + end: 0x1039f }, { - 'begin': 0x103A0, - 'end': 0x103DF + begin: 0x103a0, + end: 0x103df }, { - 'begin': 0x10450, - 'end': 0x1047F + begin: 0x10450, + end: 0x1047f }, { - 'begin': 0x10480, - 'end': 0x104AF + begin: 0x10480, + end: 0x104af }, { - 'begin': 0x10800, - 'end': 0x1083F + begin: 0x10800, + end: 0x1083f }, { - 'begin': 0x10A00, - 'end': 0x10A5F + begin: 0x10a00, + end: 0x10a5f }, { - 'begin': 0x1D300, - 'end': 0x1D35F + begin: 0x1d300, + end: 0x1d35f }, { - 'begin': 0x12000, - 'end': 0x123FF + begin: 0x12000, + end: 0x123ff }, { - 'begin': 0x1D360, - 'end': 0x1D37F + begin: 0x1d360, + end: 0x1d37f }, { - 'begin': 0x1B80, - 'end': 0x1BBF + begin: 0x1b80, + end: 0x1bbf }, { - 'begin': 0x1C00, - 'end': 0x1C4F + begin: 0x1c00, + end: 0x1c4f }, { - 'begin': 0x1C50, - 'end': 0x1C7F + begin: 0x1c50, + end: 0x1c7f }, { - 'begin': 0xA880, - 'end': 0xA8DF + begin: 0xa880, + end: 0xa8df }, { - 'begin': 0xA900, - 'end': 0xA92F + begin: 0xa900, + end: 0xa92f }, { - 'begin': 0xA930, - 'end': 0xA95F + begin: 0xa930, + end: 0xa95f }, { - 'begin': 0xAA00, - 'end': 0xAA5F + begin: 0xaa00, + end: 0xaa5f }, { - 'begin': 0x10190, - 'end': 0x101CF + begin: 0x10190, + end: 0x101cf }, { - 'begin': 0x101D0, - 'end': 0x101FF + begin: 0x101d0, + end: 0x101ff }, { - 'begin': 0x102A0, - 'end': 0x102DF + begin: 0x102a0, + end: 0x102df }, { - 'begin': 0x1F030, - 'end': 0x1F09F + begin: 0x1f030, + end: 0x1f09f } ]; function getUnicodeRangeFor(value) { @@ -35004,1390 +35020,1390 @@ function isRTLRangeFor(value) { return false; } var getNormalizedUnicodes = getLookupTableFactory(function (t) { - t['\u00A8'] = '\u0020\u0308'; - t['\u00AF'] = '\u0020\u0304'; - t['\u00B4'] = '\u0020\u0301'; - t['\u00B5'] = '\u03BC'; - t['\u00B8'] = '\u0020\u0327'; - t['\u0132'] = '\u0049\u004A'; - t['\u0133'] = '\u0069\u006A'; - t['\u013F'] = '\u004C\u00B7'; - t['\u0140'] = '\u006C\u00B7'; - t['\u0149'] = '\u02BC\u006E'; - t['\u017F'] = '\u0073'; - t['\u01C4'] = '\u0044\u017D'; - t['\u01C5'] = '\u0044\u017E'; - t['\u01C6'] = '\u0064\u017E'; - t['\u01C7'] = '\u004C\u004A'; - t['\u01C8'] = '\u004C\u006A'; - t['\u01C9'] = '\u006C\u006A'; - t['\u01CA'] = '\u004E\u004A'; - t['\u01CB'] = '\u004E\u006A'; - t['\u01CC'] = '\u006E\u006A'; - t['\u01F1'] = '\u0044\u005A'; - t['\u01F2'] = '\u0044\u007A'; - t['\u01F3'] = '\u0064\u007A'; - t['\u02D8'] = '\u0020\u0306'; - t['\u02D9'] = '\u0020\u0307'; - t['\u02DA'] = '\u0020\u030A'; - t['\u02DB'] = '\u0020\u0328'; - t['\u02DC'] = '\u0020\u0303'; - t['\u02DD'] = '\u0020\u030B'; - t['\u037A'] = '\u0020\u0345'; - t['\u0384'] = '\u0020\u0301'; - t['\u03D0'] = '\u03B2'; - t['\u03D1'] = '\u03B8'; - t['\u03D2'] = '\u03A5'; - t['\u03D5'] = '\u03C6'; - t['\u03D6'] = '\u03C0'; - t['\u03F0'] = '\u03BA'; - t['\u03F1'] = '\u03C1'; - t['\u03F2'] = '\u03C2'; - t['\u03F4'] = '\u0398'; - t['\u03F5'] = '\u03B5'; - t['\u03F9'] = '\u03A3'; - t['\u0587'] = '\u0565\u0582'; - t['\u0675'] = '\u0627\u0674'; - t['\u0676'] = '\u0648\u0674'; - t['\u0677'] = '\u06C7\u0674'; - t['\u0678'] = '\u064A\u0674'; - t['\u0E33'] = '\u0E4D\u0E32'; - t['\u0EB3'] = '\u0ECD\u0EB2'; - t['\u0EDC'] = '\u0EAB\u0E99'; - t['\u0EDD'] = '\u0EAB\u0EA1'; - t['\u0F77'] = '\u0FB2\u0F81'; - t['\u0F79'] = '\u0FB3\u0F81'; - t['\u1E9A'] = '\u0061\u02BE'; - t['\u1FBD'] = '\u0020\u0313'; - t['\u1FBF'] = '\u0020\u0313'; - t['\u1FC0'] = '\u0020\u0342'; - t['\u1FFE'] = '\u0020\u0314'; - t['\u2002'] = '\u0020'; - t['\u2003'] = '\u0020'; - t['\u2004'] = '\u0020'; - t['\u2005'] = '\u0020'; - t['\u2006'] = '\u0020'; - t['\u2008'] = '\u0020'; - t['\u2009'] = '\u0020'; - t['\u200A'] = '\u0020'; - t['\u2017'] = '\u0020\u0333'; - t['\u2024'] = '\u002E'; - t['\u2025'] = '\u002E\u002E'; - t['\u2026'] = '\u002E\u002E\u002E'; - t['\u2033'] = '\u2032\u2032'; - t['\u2034'] = '\u2032\u2032\u2032'; - t['\u2036'] = '\u2035\u2035'; - t['\u2037'] = '\u2035\u2035\u2035'; - t['\u203C'] = '\u0021\u0021'; - t['\u203E'] = '\u0020\u0305'; - t['\u2047'] = '\u003F\u003F'; - t['\u2048'] = '\u003F\u0021'; - t['\u2049'] = '\u0021\u003F'; - t['\u2057'] = '\u2032\u2032\u2032\u2032'; - t['\u205F'] = '\u0020'; - t['\u20A8'] = '\u0052\u0073'; - t['\u2100'] = '\u0061\u002F\u0063'; - t['\u2101'] = '\u0061\u002F\u0073'; - t['\u2103'] = '\u00B0\u0043'; - t['\u2105'] = '\u0063\u002F\u006F'; - t['\u2106'] = '\u0063\u002F\u0075'; - t['\u2107'] = '\u0190'; - t['\u2109'] = '\u00B0\u0046'; - t['\u2116'] = '\u004E\u006F'; - t['\u2121'] = '\u0054\u0045\u004C'; - t['\u2135'] = '\u05D0'; - t['\u2136'] = '\u05D1'; - t['\u2137'] = '\u05D2'; - t['\u2138'] = '\u05D3'; - t['\u213B'] = '\u0046\u0041\u0058'; - t['\u2160'] = '\u0049'; - t['\u2161'] = '\u0049\u0049'; - t['\u2162'] = '\u0049\u0049\u0049'; - t['\u2163'] = '\u0049\u0056'; - t['\u2164'] = '\u0056'; - t['\u2165'] = '\u0056\u0049'; - t['\u2166'] = '\u0056\u0049\u0049'; - t['\u2167'] = '\u0056\u0049\u0049\u0049'; - t['\u2168'] = '\u0049\u0058'; - t['\u2169'] = '\u0058'; - t['\u216A'] = '\u0058\u0049'; - t['\u216B'] = '\u0058\u0049\u0049'; - t['\u216C'] = '\u004C'; - t['\u216D'] = '\u0043'; - t['\u216E'] = '\u0044'; - t['\u216F'] = '\u004D'; - t['\u2170'] = '\u0069'; - t['\u2171'] = '\u0069\u0069'; - t['\u2172'] = '\u0069\u0069\u0069'; - t['\u2173'] = '\u0069\u0076'; - t['\u2174'] = '\u0076'; - t['\u2175'] = '\u0076\u0069'; - t['\u2176'] = '\u0076\u0069\u0069'; - t['\u2177'] = '\u0076\u0069\u0069\u0069'; - t['\u2178'] = '\u0069\u0078'; - t['\u2179'] = '\u0078'; - t['\u217A'] = '\u0078\u0069'; - t['\u217B'] = '\u0078\u0069\u0069'; - t['\u217C'] = '\u006C'; - t['\u217D'] = '\u0063'; - t['\u217E'] = '\u0064'; - t['\u217F'] = '\u006D'; - t['\u222C'] = '\u222B\u222B'; - t['\u222D'] = '\u222B\u222B\u222B'; - t['\u222F'] = '\u222E\u222E'; - t['\u2230'] = '\u222E\u222E\u222E'; - t['\u2474'] = '\u0028\u0031\u0029'; - t['\u2475'] = '\u0028\u0032\u0029'; - t['\u2476'] = '\u0028\u0033\u0029'; - t['\u2477'] = '\u0028\u0034\u0029'; - t['\u2478'] = '\u0028\u0035\u0029'; - t['\u2479'] = '\u0028\u0036\u0029'; - t['\u247A'] = '\u0028\u0037\u0029'; - t['\u247B'] = '\u0028\u0038\u0029'; - t['\u247C'] = '\u0028\u0039\u0029'; - t['\u247D'] = '\u0028\u0031\u0030\u0029'; - t['\u247E'] = '\u0028\u0031\u0031\u0029'; - t['\u247F'] = '\u0028\u0031\u0032\u0029'; - t['\u2480'] = '\u0028\u0031\u0033\u0029'; - t['\u2481'] = '\u0028\u0031\u0034\u0029'; - t['\u2482'] = '\u0028\u0031\u0035\u0029'; - t['\u2483'] = '\u0028\u0031\u0036\u0029'; - t['\u2484'] = '\u0028\u0031\u0037\u0029'; - t['\u2485'] = '\u0028\u0031\u0038\u0029'; - t['\u2486'] = '\u0028\u0031\u0039\u0029'; - t['\u2487'] = '\u0028\u0032\u0030\u0029'; - t['\u2488'] = '\u0031\u002E'; - t['\u2489'] = '\u0032\u002E'; - t['\u248A'] = '\u0033\u002E'; - t['\u248B'] = '\u0034\u002E'; - t['\u248C'] = '\u0035\u002E'; - t['\u248D'] = '\u0036\u002E'; - t['\u248E'] = '\u0037\u002E'; - t['\u248F'] = '\u0038\u002E'; - t['\u2490'] = '\u0039\u002E'; - t['\u2491'] = '\u0031\u0030\u002E'; - t['\u2492'] = '\u0031\u0031\u002E'; - t['\u2493'] = '\u0031\u0032\u002E'; - t['\u2494'] = '\u0031\u0033\u002E'; - t['\u2495'] = '\u0031\u0034\u002E'; - t['\u2496'] = '\u0031\u0035\u002E'; - t['\u2497'] = '\u0031\u0036\u002E'; - t['\u2498'] = '\u0031\u0037\u002E'; - t['\u2499'] = '\u0031\u0038\u002E'; - t['\u249A'] = '\u0031\u0039\u002E'; - t['\u249B'] = '\u0032\u0030\u002E'; - t['\u249C'] = '\u0028\u0061\u0029'; - t['\u249D'] = '\u0028\u0062\u0029'; - t['\u249E'] = '\u0028\u0063\u0029'; - t['\u249F'] = '\u0028\u0064\u0029'; - t['\u24A0'] = '\u0028\u0065\u0029'; - t['\u24A1'] = '\u0028\u0066\u0029'; - t['\u24A2'] = '\u0028\u0067\u0029'; - t['\u24A3'] = '\u0028\u0068\u0029'; - t['\u24A4'] = '\u0028\u0069\u0029'; - t['\u24A5'] = '\u0028\u006A\u0029'; - t['\u24A6'] = '\u0028\u006B\u0029'; - t['\u24A7'] = '\u0028\u006C\u0029'; - t['\u24A8'] = '\u0028\u006D\u0029'; - t['\u24A9'] = '\u0028\u006E\u0029'; - t['\u24AA'] = '\u0028\u006F\u0029'; - t['\u24AB'] = '\u0028\u0070\u0029'; - t['\u24AC'] = '\u0028\u0071\u0029'; - t['\u24AD'] = '\u0028\u0072\u0029'; - t['\u24AE'] = '\u0028\u0073\u0029'; - t['\u24AF'] = '\u0028\u0074\u0029'; - t['\u24B0'] = '\u0028\u0075\u0029'; - t['\u24B1'] = '\u0028\u0076\u0029'; - t['\u24B2'] = '\u0028\u0077\u0029'; - t['\u24B3'] = '\u0028\u0078\u0029'; - t['\u24B4'] = '\u0028\u0079\u0029'; - t['\u24B5'] = '\u0028\u007A\u0029'; - t['\u2A0C'] = '\u222B\u222B\u222B\u222B'; - t['\u2A74'] = '\u003A\u003A\u003D'; - t['\u2A75'] = '\u003D\u003D'; - t['\u2A76'] = '\u003D\u003D\u003D'; - t['\u2E9F'] = '\u6BCD'; - t['\u2EF3'] = '\u9F9F'; - t['\u2F00'] = '\u4E00'; - t['\u2F01'] = '\u4E28'; - t['\u2F02'] = '\u4E36'; - t['\u2F03'] = '\u4E3F'; - t['\u2F04'] = '\u4E59'; - t['\u2F05'] = '\u4E85'; - t['\u2F06'] = '\u4E8C'; - t['\u2F07'] = '\u4EA0'; - t['\u2F08'] = '\u4EBA'; - t['\u2F09'] = '\u513F'; - t['\u2F0A'] = '\u5165'; - t['\u2F0B'] = '\u516B'; - t['\u2F0C'] = '\u5182'; - t['\u2F0D'] = '\u5196'; - t['\u2F0E'] = '\u51AB'; - t['\u2F0F'] = '\u51E0'; - t['\u2F10'] = '\u51F5'; - t['\u2F11'] = '\u5200'; - t['\u2F12'] = '\u529B'; - t['\u2F13'] = '\u52F9'; - t['\u2F14'] = '\u5315'; - t['\u2F15'] = '\u531A'; - t['\u2F16'] = '\u5338'; - t['\u2F17'] = '\u5341'; - t['\u2F18'] = '\u535C'; - t['\u2F19'] = '\u5369'; - t['\u2F1A'] = '\u5382'; - t['\u2F1B'] = '\u53B6'; - t['\u2F1C'] = '\u53C8'; - t['\u2F1D'] = '\u53E3'; - t['\u2F1E'] = '\u56D7'; - t['\u2F1F'] = '\u571F'; - t['\u2F20'] = '\u58EB'; - t['\u2F21'] = '\u5902'; - t['\u2F22'] = '\u590A'; - t['\u2F23'] = '\u5915'; - t['\u2F24'] = '\u5927'; - t['\u2F25'] = '\u5973'; - t['\u2F26'] = '\u5B50'; - t['\u2F27'] = '\u5B80'; - t['\u2F28'] = '\u5BF8'; - t['\u2F29'] = '\u5C0F'; - t['\u2F2A'] = '\u5C22'; - t['\u2F2B'] = '\u5C38'; - t['\u2F2C'] = '\u5C6E'; - t['\u2F2D'] = '\u5C71'; - t['\u2F2E'] = '\u5DDB'; - t['\u2F2F'] = '\u5DE5'; - t['\u2F30'] = '\u5DF1'; - t['\u2F31'] = '\u5DFE'; - t['\u2F32'] = '\u5E72'; - t['\u2F33'] = '\u5E7A'; - t['\u2F34'] = '\u5E7F'; - t['\u2F35'] = '\u5EF4'; - t['\u2F36'] = '\u5EFE'; - t['\u2F37'] = '\u5F0B'; - t['\u2F38'] = '\u5F13'; - t['\u2F39'] = '\u5F50'; - t['\u2F3A'] = '\u5F61'; - t['\u2F3B'] = '\u5F73'; - t['\u2F3C'] = '\u5FC3'; - t['\u2F3D'] = '\u6208'; - t['\u2F3E'] = '\u6236'; - t['\u2F3F'] = '\u624B'; - t['\u2F40'] = '\u652F'; - t['\u2F41'] = '\u6534'; - t['\u2F42'] = '\u6587'; - t['\u2F43'] = '\u6597'; - t['\u2F44'] = '\u65A4'; - t['\u2F45'] = '\u65B9'; - t['\u2F46'] = '\u65E0'; - t['\u2F47'] = '\u65E5'; - t['\u2F48'] = '\u66F0'; - t['\u2F49'] = '\u6708'; - t['\u2F4A'] = '\u6728'; - t['\u2F4B'] = '\u6B20'; - t['\u2F4C'] = '\u6B62'; - t['\u2F4D'] = '\u6B79'; - t['\u2F4E'] = '\u6BB3'; - t['\u2F4F'] = '\u6BCB'; - t['\u2F50'] = '\u6BD4'; - t['\u2F51'] = '\u6BDB'; - t['\u2F52'] = '\u6C0F'; - t['\u2F53'] = '\u6C14'; - t['\u2F54'] = '\u6C34'; - t['\u2F55'] = '\u706B'; - t['\u2F56'] = '\u722A'; - t['\u2F57'] = '\u7236'; - t['\u2F58'] = '\u723B'; - t['\u2F59'] = '\u723F'; - t['\u2F5A'] = '\u7247'; - t['\u2F5B'] = '\u7259'; - t['\u2F5C'] = '\u725B'; - t['\u2F5D'] = '\u72AC'; - t['\u2F5E'] = '\u7384'; - t['\u2F5F'] = '\u7389'; - t['\u2F60'] = '\u74DC'; - t['\u2F61'] = '\u74E6'; - t['\u2F62'] = '\u7518'; - t['\u2F63'] = '\u751F'; - t['\u2F64'] = '\u7528'; - t['\u2F65'] = '\u7530'; - t['\u2F66'] = '\u758B'; - t['\u2F67'] = '\u7592'; - t['\u2F68'] = '\u7676'; - t['\u2F69'] = '\u767D'; - t['\u2F6A'] = '\u76AE'; - t['\u2F6B'] = '\u76BF'; - t['\u2F6C'] = '\u76EE'; - t['\u2F6D'] = '\u77DB'; - t['\u2F6E'] = '\u77E2'; - t['\u2F6F'] = '\u77F3'; - t['\u2F70'] = '\u793A'; - t['\u2F71'] = '\u79B8'; - t['\u2F72'] = '\u79BE'; - t['\u2F73'] = '\u7A74'; - t['\u2F74'] = '\u7ACB'; - t['\u2F75'] = '\u7AF9'; - t['\u2F76'] = '\u7C73'; - t['\u2F77'] = '\u7CF8'; - t['\u2F78'] = '\u7F36'; - t['\u2F79'] = '\u7F51'; - t['\u2F7A'] = '\u7F8A'; - t['\u2F7B'] = '\u7FBD'; - t['\u2F7C'] = '\u8001'; - t['\u2F7D'] = '\u800C'; - t['\u2F7E'] = '\u8012'; - t['\u2F7F'] = '\u8033'; - t['\u2F80'] = '\u807F'; - t['\u2F81'] = '\u8089'; - t['\u2F82'] = '\u81E3'; - t['\u2F83'] = '\u81EA'; - t['\u2F84'] = '\u81F3'; - t['\u2F85'] = '\u81FC'; - t['\u2F86'] = '\u820C'; - t['\u2F87'] = '\u821B'; - t['\u2F88'] = '\u821F'; - t['\u2F89'] = '\u826E'; - t['\u2F8A'] = '\u8272'; - t['\u2F8B'] = '\u8278'; - t['\u2F8C'] = '\u864D'; - t['\u2F8D'] = '\u866B'; - t['\u2F8E'] = '\u8840'; - t['\u2F8F'] = '\u884C'; - t['\u2F90'] = '\u8863'; - t['\u2F91'] = '\u897E'; - t['\u2F92'] = '\u898B'; - t['\u2F93'] = '\u89D2'; - t['\u2F94'] = '\u8A00'; - t['\u2F95'] = '\u8C37'; - t['\u2F96'] = '\u8C46'; - t['\u2F97'] = '\u8C55'; - t['\u2F98'] = '\u8C78'; - t['\u2F99'] = '\u8C9D'; - t['\u2F9A'] = '\u8D64'; - t['\u2F9B'] = '\u8D70'; - t['\u2F9C'] = '\u8DB3'; - t['\u2F9D'] = '\u8EAB'; - t['\u2F9E'] = '\u8ECA'; - t['\u2F9F'] = '\u8F9B'; - t['\u2FA0'] = '\u8FB0'; - t['\u2FA1'] = '\u8FB5'; - t['\u2FA2'] = '\u9091'; - t['\u2FA3'] = '\u9149'; - t['\u2FA4'] = '\u91C6'; - t['\u2FA5'] = '\u91CC'; - t['\u2FA6'] = '\u91D1'; - t['\u2FA7'] = '\u9577'; - t['\u2FA8'] = '\u9580'; - t['\u2FA9'] = '\u961C'; - t['\u2FAA'] = '\u96B6'; - t['\u2FAB'] = '\u96B9'; - t['\u2FAC'] = '\u96E8'; - t['\u2FAD'] = '\u9751'; - t['\u2FAE'] = '\u975E'; - t['\u2FAF'] = '\u9762'; - t['\u2FB0'] = '\u9769'; - t['\u2FB1'] = '\u97CB'; - t['\u2FB2'] = '\u97ED'; - t['\u2FB3'] = '\u97F3'; - t['\u2FB4'] = '\u9801'; - t['\u2FB5'] = '\u98A8'; - t['\u2FB6'] = '\u98DB'; - t['\u2FB7'] = '\u98DF'; - t['\u2FB8'] = '\u9996'; - t['\u2FB9'] = '\u9999'; - t['\u2FBA'] = '\u99AC'; - t['\u2FBB'] = '\u9AA8'; - t['\u2FBC'] = '\u9AD8'; - t['\u2FBD'] = '\u9ADF'; - t['\u2FBE'] = '\u9B25'; - t['\u2FBF'] = '\u9B2F'; - t['\u2FC0'] = '\u9B32'; - t['\u2FC1'] = '\u9B3C'; - t['\u2FC2'] = '\u9B5A'; - t['\u2FC3'] = '\u9CE5'; - t['\u2FC4'] = '\u9E75'; - t['\u2FC5'] = '\u9E7F'; - t['\u2FC6'] = '\u9EA5'; - t['\u2FC7'] = '\u9EBB'; - t['\u2FC8'] = '\u9EC3'; - t['\u2FC9'] = '\u9ECD'; - t['\u2FCA'] = '\u9ED1'; - t['\u2FCB'] = '\u9EF9'; - t['\u2FCC'] = '\u9EFD'; - t['\u2FCD'] = '\u9F0E'; - t['\u2FCE'] = '\u9F13'; - t['\u2FCF'] = '\u9F20'; - t['\u2FD0'] = '\u9F3B'; - t['\u2FD1'] = '\u9F4A'; - t['\u2FD2'] = '\u9F52'; - t['\u2FD3'] = '\u9F8D'; - t['\u2FD4'] = '\u9F9C'; - t['\u2FD5'] = '\u9FA0'; - t['\u3036'] = '\u3012'; - t['\u3038'] = '\u5341'; - t['\u3039'] = '\u5344'; - t['\u303A'] = '\u5345'; - t['\u309B'] = '\u0020\u3099'; - t['\u309C'] = '\u0020\u309A'; - t['\u3131'] = '\u1100'; - t['\u3132'] = '\u1101'; - t['\u3133'] = '\u11AA'; - t['\u3134'] = '\u1102'; - t['\u3135'] = '\u11AC'; - t['\u3136'] = '\u11AD'; - t['\u3137'] = '\u1103'; - t['\u3138'] = '\u1104'; - t['\u3139'] = '\u1105'; - t['\u313A'] = '\u11B0'; - t['\u313B'] = '\u11B1'; - t['\u313C'] = '\u11B2'; - t['\u313D'] = '\u11B3'; - t['\u313E'] = '\u11B4'; - t['\u313F'] = '\u11B5'; - t['\u3140'] = '\u111A'; - t['\u3141'] = '\u1106'; - t['\u3142'] = '\u1107'; - t['\u3143'] = '\u1108'; - t['\u3144'] = '\u1121'; - t['\u3145'] = '\u1109'; - t['\u3146'] = '\u110A'; - t['\u3147'] = '\u110B'; - t['\u3148'] = '\u110C'; - t['\u3149'] = '\u110D'; - t['\u314A'] = '\u110E'; - t['\u314B'] = '\u110F'; - t['\u314C'] = '\u1110'; - t['\u314D'] = '\u1111'; - t['\u314E'] = '\u1112'; - t['\u314F'] = '\u1161'; - t['\u3150'] = '\u1162'; - t['\u3151'] = '\u1163'; - t['\u3152'] = '\u1164'; - t['\u3153'] = '\u1165'; - t['\u3154'] = '\u1166'; - t['\u3155'] = '\u1167'; - t['\u3156'] = '\u1168'; - t['\u3157'] = '\u1169'; - t['\u3158'] = '\u116A'; - t['\u3159'] = '\u116B'; - t['\u315A'] = '\u116C'; - t['\u315B'] = '\u116D'; - t['\u315C'] = '\u116E'; - t['\u315D'] = '\u116F'; - t['\u315E'] = '\u1170'; - t['\u315F'] = '\u1171'; - t['\u3160'] = '\u1172'; - t['\u3161'] = '\u1173'; - t['\u3162'] = '\u1174'; - t['\u3163'] = '\u1175'; - t['\u3164'] = '\u1160'; - t['\u3165'] = '\u1114'; - t['\u3166'] = '\u1115'; - t['\u3167'] = '\u11C7'; - t['\u3168'] = '\u11C8'; - t['\u3169'] = '\u11CC'; - t['\u316A'] = '\u11CE'; - t['\u316B'] = '\u11D3'; - t['\u316C'] = '\u11D7'; - t['\u316D'] = '\u11D9'; - t['\u316E'] = '\u111C'; - t['\u316F'] = '\u11DD'; - t['\u3170'] = '\u11DF'; - t['\u3171'] = '\u111D'; - t['\u3172'] = '\u111E'; - t['\u3173'] = '\u1120'; - t['\u3174'] = '\u1122'; - t['\u3175'] = '\u1123'; - t['\u3176'] = '\u1127'; - t['\u3177'] = '\u1129'; - t['\u3178'] = '\u112B'; - t['\u3179'] = '\u112C'; - t['\u317A'] = '\u112D'; - t['\u317B'] = '\u112E'; - t['\u317C'] = '\u112F'; - t['\u317D'] = '\u1132'; - t['\u317E'] = '\u1136'; - t['\u317F'] = '\u1140'; - t['\u3180'] = '\u1147'; - t['\u3181'] = '\u114C'; - t['\u3182'] = '\u11F1'; - t['\u3183'] = '\u11F2'; - t['\u3184'] = '\u1157'; - t['\u3185'] = '\u1158'; - t['\u3186'] = '\u1159'; - t['\u3187'] = '\u1184'; - t['\u3188'] = '\u1185'; - t['\u3189'] = '\u1188'; - t['\u318A'] = '\u1191'; - t['\u318B'] = '\u1192'; - t['\u318C'] = '\u1194'; - t['\u318D'] = '\u119E'; - t['\u318E'] = '\u11A1'; - t['\u3200'] = '\u0028\u1100\u0029'; - t['\u3201'] = '\u0028\u1102\u0029'; - t['\u3202'] = '\u0028\u1103\u0029'; - t['\u3203'] = '\u0028\u1105\u0029'; - t['\u3204'] = '\u0028\u1106\u0029'; - t['\u3205'] = '\u0028\u1107\u0029'; - t['\u3206'] = '\u0028\u1109\u0029'; - t['\u3207'] = '\u0028\u110B\u0029'; - t['\u3208'] = '\u0028\u110C\u0029'; - t['\u3209'] = '\u0028\u110E\u0029'; - t['\u320A'] = '\u0028\u110F\u0029'; - t['\u320B'] = '\u0028\u1110\u0029'; - t['\u320C'] = '\u0028\u1111\u0029'; - t['\u320D'] = '\u0028\u1112\u0029'; - t['\u320E'] = '\u0028\u1100\u1161\u0029'; - t['\u320F'] = '\u0028\u1102\u1161\u0029'; - t['\u3210'] = '\u0028\u1103\u1161\u0029'; - t['\u3211'] = '\u0028\u1105\u1161\u0029'; - t['\u3212'] = '\u0028\u1106\u1161\u0029'; - t['\u3213'] = '\u0028\u1107\u1161\u0029'; - t['\u3214'] = '\u0028\u1109\u1161\u0029'; - t['\u3215'] = '\u0028\u110B\u1161\u0029'; - t['\u3216'] = '\u0028\u110C\u1161\u0029'; - t['\u3217'] = '\u0028\u110E\u1161\u0029'; - t['\u3218'] = '\u0028\u110F\u1161\u0029'; - t['\u3219'] = '\u0028\u1110\u1161\u0029'; - t['\u321A'] = '\u0028\u1111\u1161\u0029'; - t['\u321B'] = '\u0028\u1112\u1161\u0029'; - t['\u321C'] = '\u0028\u110C\u116E\u0029'; - t['\u321D'] = '\u0028\u110B\u1169\u110C\u1165\u11AB\u0029'; - t['\u321E'] = '\u0028\u110B\u1169\u1112\u116E\u0029'; - t['\u3220'] = '\u0028\u4E00\u0029'; - t['\u3221'] = '\u0028\u4E8C\u0029'; - t['\u3222'] = '\u0028\u4E09\u0029'; - t['\u3223'] = '\u0028\u56DB\u0029'; - t['\u3224'] = '\u0028\u4E94\u0029'; - t['\u3225'] = '\u0028\u516D\u0029'; - t['\u3226'] = '\u0028\u4E03\u0029'; - t['\u3227'] = '\u0028\u516B\u0029'; - t['\u3228'] = '\u0028\u4E5D\u0029'; - t['\u3229'] = '\u0028\u5341\u0029'; - t['\u322A'] = '\u0028\u6708\u0029'; - t['\u322B'] = '\u0028\u706B\u0029'; - t['\u322C'] = '\u0028\u6C34\u0029'; - t['\u322D'] = '\u0028\u6728\u0029'; - t['\u322E'] = '\u0028\u91D1\u0029'; - t['\u322F'] = '\u0028\u571F\u0029'; - t['\u3230'] = '\u0028\u65E5\u0029'; - t['\u3231'] = '\u0028\u682A\u0029'; - t['\u3232'] = '\u0028\u6709\u0029'; - t['\u3233'] = '\u0028\u793E\u0029'; - t['\u3234'] = '\u0028\u540D\u0029'; - t['\u3235'] = '\u0028\u7279\u0029'; - t['\u3236'] = '\u0028\u8CA1\u0029'; - t['\u3237'] = '\u0028\u795D\u0029'; - t['\u3238'] = '\u0028\u52B4\u0029'; - t['\u3239'] = '\u0028\u4EE3\u0029'; - t['\u323A'] = '\u0028\u547C\u0029'; - t['\u323B'] = '\u0028\u5B66\u0029'; - t['\u323C'] = '\u0028\u76E3\u0029'; - t['\u323D'] = '\u0028\u4F01\u0029'; - t['\u323E'] = '\u0028\u8CC7\u0029'; - t['\u323F'] = '\u0028\u5354\u0029'; - t['\u3240'] = '\u0028\u796D\u0029'; - t['\u3241'] = '\u0028\u4F11\u0029'; - t['\u3242'] = '\u0028\u81EA\u0029'; - t['\u3243'] = '\u0028\u81F3\u0029'; - t['\u32C0'] = '\u0031\u6708'; - t['\u32C1'] = '\u0032\u6708'; - t['\u32C2'] = '\u0033\u6708'; - t['\u32C3'] = '\u0034\u6708'; - t['\u32C4'] = '\u0035\u6708'; - t['\u32C5'] = '\u0036\u6708'; - t['\u32C6'] = '\u0037\u6708'; - t['\u32C7'] = '\u0038\u6708'; - t['\u32C8'] = '\u0039\u6708'; - t['\u32C9'] = '\u0031\u0030\u6708'; - t['\u32CA'] = '\u0031\u0031\u6708'; - t['\u32CB'] = '\u0031\u0032\u6708'; - t['\u3358'] = '\u0030\u70B9'; - t['\u3359'] = '\u0031\u70B9'; - t['\u335A'] = '\u0032\u70B9'; - t['\u335B'] = '\u0033\u70B9'; - t['\u335C'] = '\u0034\u70B9'; - t['\u335D'] = '\u0035\u70B9'; - t['\u335E'] = '\u0036\u70B9'; - t['\u335F'] = '\u0037\u70B9'; - t['\u3360'] = '\u0038\u70B9'; - t['\u3361'] = '\u0039\u70B9'; - t['\u3362'] = '\u0031\u0030\u70B9'; - t['\u3363'] = '\u0031\u0031\u70B9'; - t['\u3364'] = '\u0031\u0032\u70B9'; - t['\u3365'] = '\u0031\u0033\u70B9'; - t['\u3366'] = '\u0031\u0034\u70B9'; - t['\u3367'] = '\u0031\u0035\u70B9'; - t['\u3368'] = '\u0031\u0036\u70B9'; - t['\u3369'] = '\u0031\u0037\u70B9'; - t['\u336A'] = '\u0031\u0038\u70B9'; - t['\u336B'] = '\u0031\u0039\u70B9'; - t['\u336C'] = '\u0032\u0030\u70B9'; - t['\u336D'] = '\u0032\u0031\u70B9'; - t['\u336E'] = '\u0032\u0032\u70B9'; - t['\u336F'] = '\u0032\u0033\u70B9'; - t['\u3370'] = '\u0032\u0034\u70B9'; - t['\u33E0'] = '\u0031\u65E5'; - t['\u33E1'] = '\u0032\u65E5'; - t['\u33E2'] = '\u0033\u65E5'; - t['\u33E3'] = '\u0034\u65E5'; - t['\u33E4'] = '\u0035\u65E5'; - t['\u33E5'] = '\u0036\u65E5'; - t['\u33E6'] = '\u0037\u65E5'; - t['\u33E7'] = '\u0038\u65E5'; - t['\u33E8'] = '\u0039\u65E5'; - t['\u33E9'] = '\u0031\u0030\u65E5'; - t['\u33EA'] = '\u0031\u0031\u65E5'; - t['\u33EB'] = '\u0031\u0032\u65E5'; - t['\u33EC'] = '\u0031\u0033\u65E5'; - t['\u33ED'] = '\u0031\u0034\u65E5'; - t['\u33EE'] = '\u0031\u0035\u65E5'; - t['\u33EF'] = '\u0031\u0036\u65E5'; - t['\u33F0'] = '\u0031\u0037\u65E5'; - t['\u33F1'] = '\u0031\u0038\u65E5'; - t['\u33F2'] = '\u0031\u0039\u65E5'; - t['\u33F3'] = '\u0032\u0030\u65E5'; - t['\u33F4'] = '\u0032\u0031\u65E5'; - t['\u33F5'] = '\u0032\u0032\u65E5'; - t['\u33F6'] = '\u0032\u0033\u65E5'; - t['\u33F7'] = '\u0032\u0034\u65E5'; - t['\u33F8'] = '\u0032\u0035\u65E5'; - t['\u33F9'] = '\u0032\u0036\u65E5'; - t['\u33FA'] = '\u0032\u0037\u65E5'; - t['\u33FB'] = '\u0032\u0038\u65E5'; - t['\u33FC'] = '\u0032\u0039\u65E5'; - t['\u33FD'] = '\u0033\u0030\u65E5'; - t['\u33FE'] = '\u0033\u0031\u65E5'; - t['\uFB00'] = '\u0066\u0066'; - t['\uFB01'] = '\u0066\u0069'; - t['\uFB02'] = '\u0066\u006C'; - t['\uFB03'] = '\u0066\u0066\u0069'; - t['\uFB04'] = '\u0066\u0066\u006C'; - t['\uFB05'] = '\u017F\u0074'; - t['\uFB06'] = '\u0073\u0074'; - t['\uFB13'] = '\u0574\u0576'; - t['\uFB14'] = '\u0574\u0565'; - t['\uFB15'] = '\u0574\u056B'; - t['\uFB16'] = '\u057E\u0576'; - t['\uFB17'] = '\u0574\u056D'; - t['\uFB4F'] = '\u05D0\u05DC'; - t['\uFB50'] = '\u0671'; - t['\uFB51'] = '\u0671'; - t['\uFB52'] = '\u067B'; - t['\uFB53'] = '\u067B'; - t['\uFB54'] = '\u067B'; - t['\uFB55'] = '\u067B'; - t['\uFB56'] = '\u067E'; - t['\uFB57'] = '\u067E'; - t['\uFB58'] = '\u067E'; - t['\uFB59'] = '\u067E'; - t['\uFB5A'] = '\u0680'; - t['\uFB5B'] = '\u0680'; - t['\uFB5C'] = '\u0680'; - t['\uFB5D'] = '\u0680'; - t['\uFB5E'] = '\u067A'; - t['\uFB5F'] = '\u067A'; - t['\uFB60'] = '\u067A'; - t['\uFB61'] = '\u067A'; - t['\uFB62'] = '\u067F'; - t['\uFB63'] = '\u067F'; - t['\uFB64'] = '\u067F'; - t['\uFB65'] = '\u067F'; - t['\uFB66'] = '\u0679'; - t['\uFB67'] = '\u0679'; - t['\uFB68'] = '\u0679'; - t['\uFB69'] = '\u0679'; - t['\uFB6A'] = '\u06A4'; - t['\uFB6B'] = '\u06A4'; - t['\uFB6C'] = '\u06A4'; - t['\uFB6D'] = '\u06A4'; - t['\uFB6E'] = '\u06A6'; - t['\uFB6F'] = '\u06A6'; - t['\uFB70'] = '\u06A6'; - t['\uFB71'] = '\u06A6'; - t['\uFB72'] = '\u0684'; - t['\uFB73'] = '\u0684'; - t['\uFB74'] = '\u0684'; - t['\uFB75'] = '\u0684'; - t['\uFB76'] = '\u0683'; - t['\uFB77'] = '\u0683'; - t['\uFB78'] = '\u0683'; - t['\uFB79'] = '\u0683'; - t['\uFB7A'] = '\u0686'; - t['\uFB7B'] = '\u0686'; - t['\uFB7C'] = '\u0686'; - t['\uFB7D'] = '\u0686'; - t['\uFB7E'] = '\u0687'; - t['\uFB7F'] = '\u0687'; - t['\uFB80'] = '\u0687'; - t['\uFB81'] = '\u0687'; - t['\uFB82'] = '\u068D'; - t['\uFB83'] = '\u068D'; - t['\uFB84'] = '\u068C'; - t['\uFB85'] = '\u068C'; - t['\uFB86'] = '\u068E'; - t['\uFB87'] = '\u068E'; - t['\uFB88'] = '\u0688'; - t['\uFB89'] = '\u0688'; - t['\uFB8A'] = '\u0698'; - t['\uFB8B'] = '\u0698'; - t['\uFB8C'] = '\u0691'; - t['\uFB8D'] = '\u0691'; - t['\uFB8E'] = '\u06A9'; - t['\uFB8F'] = '\u06A9'; - t['\uFB90'] = '\u06A9'; - t['\uFB91'] = '\u06A9'; - t['\uFB92'] = '\u06AF'; - t['\uFB93'] = '\u06AF'; - t['\uFB94'] = '\u06AF'; - t['\uFB95'] = '\u06AF'; - t['\uFB96'] = '\u06B3'; - t['\uFB97'] = '\u06B3'; - t['\uFB98'] = '\u06B3'; - t['\uFB99'] = '\u06B3'; - t['\uFB9A'] = '\u06B1'; - t['\uFB9B'] = '\u06B1'; - t['\uFB9C'] = '\u06B1'; - t['\uFB9D'] = '\u06B1'; - t['\uFB9E'] = '\u06BA'; - t['\uFB9F'] = '\u06BA'; - t['\uFBA0'] = '\u06BB'; - t['\uFBA1'] = '\u06BB'; - t['\uFBA2'] = '\u06BB'; - t['\uFBA3'] = '\u06BB'; - t['\uFBA4'] = '\u06C0'; - t['\uFBA5'] = '\u06C0'; - t['\uFBA6'] = '\u06C1'; - t['\uFBA7'] = '\u06C1'; - t['\uFBA8'] = '\u06C1'; - t['\uFBA9'] = '\u06C1'; - t['\uFBAA'] = '\u06BE'; - t['\uFBAB'] = '\u06BE'; - t['\uFBAC'] = '\u06BE'; - t['\uFBAD'] = '\u06BE'; - t['\uFBAE'] = '\u06D2'; - t['\uFBAF'] = '\u06D2'; - t['\uFBB0'] = '\u06D3'; - t['\uFBB1'] = '\u06D3'; - t['\uFBD3'] = '\u06AD'; - t['\uFBD4'] = '\u06AD'; - t['\uFBD5'] = '\u06AD'; - t['\uFBD6'] = '\u06AD'; - t['\uFBD7'] = '\u06C7'; - t['\uFBD8'] = '\u06C7'; - t['\uFBD9'] = '\u06C6'; - t['\uFBDA'] = '\u06C6'; - t['\uFBDB'] = '\u06C8'; - t['\uFBDC'] = '\u06C8'; - t['\uFBDD'] = '\u0677'; - t['\uFBDE'] = '\u06CB'; - t['\uFBDF'] = '\u06CB'; - t['\uFBE0'] = '\u06C5'; - t['\uFBE1'] = '\u06C5'; - t['\uFBE2'] = '\u06C9'; - t['\uFBE3'] = '\u06C9'; - t['\uFBE4'] = '\u06D0'; - t['\uFBE5'] = '\u06D0'; - t['\uFBE6'] = '\u06D0'; - t['\uFBE7'] = '\u06D0'; - t['\uFBE8'] = '\u0649'; - t['\uFBE9'] = '\u0649'; - t['\uFBEA'] = '\u0626\u0627'; - t['\uFBEB'] = '\u0626\u0627'; - t['\uFBEC'] = '\u0626\u06D5'; - t['\uFBED'] = '\u0626\u06D5'; - t['\uFBEE'] = '\u0626\u0648'; - t['\uFBEF'] = '\u0626\u0648'; - t['\uFBF0'] = '\u0626\u06C7'; - t['\uFBF1'] = '\u0626\u06C7'; - t['\uFBF2'] = '\u0626\u06C6'; - t['\uFBF3'] = '\u0626\u06C6'; - t['\uFBF4'] = '\u0626\u06C8'; - t['\uFBF5'] = '\u0626\u06C8'; - t['\uFBF6'] = '\u0626\u06D0'; - t['\uFBF7'] = '\u0626\u06D0'; - t['\uFBF8'] = '\u0626\u06D0'; - t['\uFBF9'] = '\u0626\u0649'; - t['\uFBFA'] = '\u0626\u0649'; - t['\uFBFB'] = '\u0626\u0649'; - t['\uFBFC'] = '\u06CC'; - t['\uFBFD'] = '\u06CC'; - t['\uFBFE'] = '\u06CC'; - t['\uFBFF'] = '\u06CC'; - t['\uFC00'] = '\u0626\u062C'; - t['\uFC01'] = '\u0626\u062D'; - t['\uFC02'] = '\u0626\u0645'; - t['\uFC03'] = '\u0626\u0649'; - t['\uFC04'] = '\u0626\u064A'; - t['\uFC05'] = '\u0628\u062C'; - t['\uFC06'] = '\u0628\u062D'; - t['\uFC07'] = '\u0628\u062E'; - t['\uFC08'] = '\u0628\u0645'; - t['\uFC09'] = '\u0628\u0649'; - t['\uFC0A'] = '\u0628\u064A'; - t['\uFC0B'] = '\u062A\u062C'; - t['\uFC0C'] = '\u062A\u062D'; - t['\uFC0D'] = '\u062A\u062E'; - t['\uFC0E'] = '\u062A\u0645'; - t['\uFC0F'] = '\u062A\u0649'; - t['\uFC10'] = '\u062A\u064A'; - t['\uFC11'] = '\u062B\u062C'; - t['\uFC12'] = '\u062B\u0645'; - t['\uFC13'] = '\u062B\u0649'; - t['\uFC14'] = '\u062B\u064A'; - t['\uFC15'] = '\u062C\u062D'; - t['\uFC16'] = '\u062C\u0645'; - t['\uFC17'] = '\u062D\u062C'; - t['\uFC18'] = '\u062D\u0645'; - t['\uFC19'] = '\u062E\u062C'; - t['\uFC1A'] = '\u062E\u062D'; - t['\uFC1B'] = '\u062E\u0645'; - t['\uFC1C'] = '\u0633\u062C'; - t['\uFC1D'] = '\u0633\u062D'; - t['\uFC1E'] = '\u0633\u062E'; - t['\uFC1F'] = '\u0633\u0645'; - t['\uFC20'] = '\u0635\u062D'; - t['\uFC21'] = '\u0635\u0645'; - t['\uFC22'] = '\u0636\u062C'; - t['\uFC23'] = '\u0636\u062D'; - t['\uFC24'] = '\u0636\u062E'; - t['\uFC25'] = '\u0636\u0645'; - t['\uFC26'] = '\u0637\u062D'; - t['\uFC27'] = '\u0637\u0645'; - t['\uFC28'] = '\u0638\u0645'; - t['\uFC29'] = '\u0639\u062C'; - t['\uFC2A'] = '\u0639\u0645'; - t['\uFC2B'] = '\u063A\u062C'; - t['\uFC2C'] = '\u063A\u0645'; - t['\uFC2D'] = '\u0641\u062C'; - t['\uFC2E'] = '\u0641\u062D'; - t['\uFC2F'] = '\u0641\u062E'; - t['\uFC30'] = '\u0641\u0645'; - t['\uFC31'] = '\u0641\u0649'; - t['\uFC32'] = '\u0641\u064A'; - t['\uFC33'] = '\u0642\u062D'; - t['\uFC34'] = '\u0642\u0645'; - t['\uFC35'] = '\u0642\u0649'; - t['\uFC36'] = '\u0642\u064A'; - t['\uFC37'] = '\u0643\u0627'; - t['\uFC38'] = '\u0643\u062C'; - t['\uFC39'] = '\u0643\u062D'; - t['\uFC3A'] = '\u0643\u062E'; - t['\uFC3B'] = '\u0643\u0644'; - t['\uFC3C'] = '\u0643\u0645'; - t['\uFC3D'] = '\u0643\u0649'; - t['\uFC3E'] = '\u0643\u064A'; - t['\uFC3F'] = '\u0644\u062C'; - t['\uFC40'] = '\u0644\u062D'; - t['\uFC41'] = '\u0644\u062E'; - t['\uFC42'] = '\u0644\u0645'; - t['\uFC43'] = '\u0644\u0649'; - t['\uFC44'] = '\u0644\u064A'; - t['\uFC45'] = '\u0645\u062C'; - t['\uFC46'] = '\u0645\u062D'; - t['\uFC47'] = '\u0645\u062E'; - t['\uFC48'] = '\u0645\u0645'; - t['\uFC49'] = '\u0645\u0649'; - t['\uFC4A'] = '\u0645\u064A'; - t['\uFC4B'] = '\u0646\u062C'; - t['\uFC4C'] = '\u0646\u062D'; - t['\uFC4D'] = '\u0646\u062E'; - t['\uFC4E'] = '\u0646\u0645'; - t['\uFC4F'] = '\u0646\u0649'; - t['\uFC50'] = '\u0646\u064A'; - t['\uFC51'] = '\u0647\u062C'; - t['\uFC52'] = '\u0647\u0645'; - t['\uFC53'] = '\u0647\u0649'; - t['\uFC54'] = '\u0647\u064A'; - t['\uFC55'] = '\u064A\u062C'; - t['\uFC56'] = '\u064A\u062D'; - t['\uFC57'] = '\u064A\u062E'; - t['\uFC58'] = '\u064A\u0645'; - t['\uFC59'] = '\u064A\u0649'; - t['\uFC5A'] = '\u064A\u064A'; - t['\uFC5B'] = '\u0630\u0670'; - t['\uFC5C'] = '\u0631\u0670'; - t['\uFC5D'] = '\u0649\u0670'; - t['\uFC5E'] = '\u0020\u064C\u0651'; - t['\uFC5F'] = '\u0020\u064D\u0651'; - t['\uFC60'] = '\u0020\u064E\u0651'; - t['\uFC61'] = '\u0020\u064F\u0651'; - t['\uFC62'] = '\u0020\u0650\u0651'; - t['\uFC63'] = '\u0020\u0651\u0670'; - t['\uFC64'] = '\u0626\u0631'; - t['\uFC65'] = '\u0626\u0632'; - t['\uFC66'] = '\u0626\u0645'; - t['\uFC67'] = '\u0626\u0646'; - t['\uFC68'] = '\u0626\u0649'; - t['\uFC69'] = '\u0626\u064A'; - t['\uFC6A'] = '\u0628\u0631'; - t['\uFC6B'] = '\u0628\u0632'; - t['\uFC6C'] = '\u0628\u0645'; - t['\uFC6D'] = '\u0628\u0646'; - t['\uFC6E'] = '\u0628\u0649'; - t['\uFC6F'] = '\u0628\u064A'; - t['\uFC70'] = '\u062A\u0631'; - t['\uFC71'] = '\u062A\u0632'; - t['\uFC72'] = '\u062A\u0645'; - t['\uFC73'] = '\u062A\u0646'; - t['\uFC74'] = '\u062A\u0649'; - t['\uFC75'] = '\u062A\u064A'; - t['\uFC76'] = '\u062B\u0631'; - t['\uFC77'] = '\u062B\u0632'; - t['\uFC78'] = '\u062B\u0645'; - t['\uFC79'] = '\u062B\u0646'; - t['\uFC7A'] = '\u062B\u0649'; - t['\uFC7B'] = '\u062B\u064A'; - t['\uFC7C'] = '\u0641\u0649'; - t['\uFC7D'] = '\u0641\u064A'; - t['\uFC7E'] = '\u0642\u0649'; - t['\uFC7F'] = '\u0642\u064A'; - t['\uFC80'] = '\u0643\u0627'; - t['\uFC81'] = '\u0643\u0644'; - t['\uFC82'] = '\u0643\u0645'; - t['\uFC83'] = '\u0643\u0649'; - t['\uFC84'] = '\u0643\u064A'; - t['\uFC85'] = '\u0644\u0645'; - t['\uFC86'] = '\u0644\u0649'; - t['\uFC87'] = '\u0644\u064A'; - t['\uFC88'] = '\u0645\u0627'; - t['\uFC89'] = '\u0645\u0645'; - t['\uFC8A'] = '\u0646\u0631'; - t['\uFC8B'] = '\u0646\u0632'; - t['\uFC8C'] = '\u0646\u0645'; - t['\uFC8D'] = '\u0646\u0646'; - t['\uFC8E'] = '\u0646\u0649'; - t['\uFC8F'] = '\u0646\u064A'; - t['\uFC90'] = '\u0649\u0670'; - t['\uFC91'] = '\u064A\u0631'; - t['\uFC92'] = '\u064A\u0632'; - t['\uFC93'] = '\u064A\u0645'; - t['\uFC94'] = '\u064A\u0646'; - t['\uFC95'] = '\u064A\u0649'; - t['\uFC96'] = '\u064A\u064A'; - t['\uFC97'] = '\u0626\u062C'; - t['\uFC98'] = '\u0626\u062D'; - t['\uFC99'] = '\u0626\u062E'; - t['\uFC9A'] = '\u0626\u0645'; - t['\uFC9B'] = '\u0626\u0647'; - t['\uFC9C'] = '\u0628\u062C'; - t['\uFC9D'] = '\u0628\u062D'; - t['\uFC9E'] = '\u0628\u062E'; - t['\uFC9F'] = '\u0628\u0645'; - t['\uFCA0'] = '\u0628\u0647'; - t['\uFCA1'] = '\u062A\u062C'; - t['\uFCA2'] = '\u062A\u062D'; - t['\uFCA3'] = '\u062A\u062E'; - t['\uFCA4'] = '\u062A\u0645'; - t['\uFCA5'] = '\u062A\u0647'; - t['\uFCA6'] = '\u062B\u0645'; - t['\uFCA7'] = '\u062C\u062D'; - t['\uFCA8'] = '\u062C\u0645'; - t['\uFCA9'] = '\u062D\u062C'; - t['\uFCAA'] = '\u062D\u0645'; - t['\uFCAB'] = '\u062E\u062C'; - t['\uFCAC'] = '\u062E\u0645'; - t['\uFCAD'] = '\u0633\u062C'; - t['\uFCAE'] = '\u0633\u062D'; - t['\uFCAF'] = '\u0633\u062E'; - t['\uFCB0'] = '\u0633\u0645'; - t['\uFCB1'] = '\u0635\u062D'; - t['\uFCB2'] = '\u0635\u062E'; - t['\uFCB3'] = '\u0635\u0645'; - t['\uFCB4'] = '\u0636\u062C'; - t['\uFCB5'] = '\u0636\u062D'; - t['\uFCB6'] = '\u0636\u062E'; - t['\uFCB7'] = '\u0636\u0645'; - t['\uFCB8'] = '\u0637\u062D'; - t['\uFCB9'] = '\u0638\u0645'; - t['\uFCBA'] = '\u0639\u062C'; - t['\uFCBB'] = '\u0639\u0645'; - t['\uFCBC'] = '\u063A\u062C'; - t['\uFCBD'] = '\u063A\u0645'; - t['\uFCBE'] = '\u0641\u062C'; - t['\uFCBF'] = '\u0641\u062D'; - t['\uFCC0'] = '\u0641\u062E'; - t['\uFCC1'] = '\u0641\u0645'; - t['\uFCC2'] = '\u0642\u062D'; - t['\uFCC3'] = '\u0642\u0645'; - t['\uFCC4'] = '\u0643\u062C'; - t['\uFCC5'] = '\u0643\u062D'; - t['\uFCC6'] = '\u0643\u062E'; - t['\uFCC7'] = '\u0643\u0644'; - t['\uFCC8'] = '\u0643\u0645'; - t['\uFCC9'] = '\u0644\u062C'; - t['\uFCCA'] = '\u0644\u062D'; - t['\uFCCB'] = '\u0644\u062E'; - t['\uFCCC'] = '\u0644\u0645'; - t['\uFCCD'] = '\u0644\u0647'; - t['\uFCCE'] = '\u0645\u062C'; - t['\uFCCF'] = '\u0645\u062D'; - t['\uFCD0'] = '\u0645\u062E'; - t['\uFCD1'] = '\u0645\u0645'; - t['\uFCD2'] = '\u0646\u062C'; - t['\uFCD3'] = '\u0646\u062D'; - t['\uFCD4'] = '\u0646\u062E'; - t['\uFCD5'] = '\u0646\u0645'; - t['\uFCD6'] = '\u0646\u0647'; - t['\uFCD7'] = '\u0647\u062C'; - t['\uFCD8'] = '\u0647\u0645'; - t['\uFCD9'] = '\u0647\u0670'; - t['\uFCDA'] = '\u064A\u062C'; - t['\uFCDB'] = '\u064A\u062D'; - t['\uFCDC'] = '\u064A\u062E'; - t['\uFCDD'] = '\u064A\u0645'; - t['\uFCDE'] = '\u064A\u0647'; - t['\uFCDF'] = '\u0626\u0645'; - t['\uFCE0'] = '\u0626\u0647'; - t['\uFCE1'] = '\u0628\u0645'; - t['\uFCE2'] = '\u0628\u0647'; - t['\uFCE3'] = '\u062A\u0645'; - t['\uFCE4'] = '\u062A\u0647'; - t['\uFCE5'] = '\u062B\u0645'; - t['\uFCE6'] = '\u062B\u0647'; - t['\uFCE7'] = '\u0633\u0645'; - t['\uFCE8'] = '\u0633\u0647'; - t['\uFCE9'] = '\u0634\u0645'; - t['\uFCEA'] = '\u0634\u0647'; - t['\uFCEB'] = '\u0643\u0644'; - t['\uFCEC'] = '\u0643\u0645'; - t['\uFCED'] = '\u0644\u0645'; - t['\uFCEE'] = '\u0646\u0645'; - t['\uFCEF'] = '\u0646\u0647'; - t['\uFCF0'] = '\u064A\u0645'; - t['\uFCF1'] = '\u064A\u0647'; - t['\uFCF2'] = '\u0640\u064E\u0651'; - t['\uFCF3'] = '\u0640\u064F\u0651'; - t['\uFCF4'] = '\u0640\u0650\u0651'; - t['\uFCF5'] = '\u0637\u0649'; - t['\uFCF6'] = '\u0637\u064A'; - t['\uFCF7'] = '\u0639\u0649'; - t['\uFCF8'] = '\u0639\u064A'; - t['\uFCF9'] = '\u063A\u0649'; - t['\uFCFA'] = '\u063A\u064A'; - t['\uFCFB'] = '\u0633\u0649'; - t['\uFCFC'] = '\u0633\u064A'; - t['\uFCFD'] = '\u0634\u0649'; - t['\uFCFE'] = '\u0634\u064A'; - t['\uFCFF'] = '\u062D\u0649'; - t['\uFD00'] = '\u062D\u064A'; - t['\uFD01'] = '\u062C\u0649'; - t['\uFD02'] = '\u062C\u064A'; - t['\uFD03'] = '\u062E\u0649'; - t['\uFD04'] = '\u062E\u064A'; - t['\uFD05'] = '\u0635\u0649'; - t['\uFD06'] = '\u0635\u064A'; - t['\uFD07'] = '\u0636\u0649'; - t['\uFD08'] = '\u0636\u064A'; - t['\uFD09'] = '\u0634\u062C'; - t['\uFD0A'] = '\u0634\u062D'; - t['\uFD0B'] = '\u0634\u062E'; - t['\uFD0C'] = '\u0634\u0645'; - t['\uFD0D'] = '\u0634\u0631'; - t['\uFD0E'] = '\u0633\u0631'; - t['\uFD0F'] = '\u0635\u0631'; - t['\uFD10'] = '\u0636\u0631'; - t['\uFD11'] = '\u0637\u0649'; - t['\uFD12'] = '\u0637\u064A'; - t['\uFD13'] = '\u0639\u0649'; - t['\uFD14'] = '\u0639\u064A'; - t['\uFD15'] = '\u063A\u0649'; - t['\uFD16'] = '\u063A\u064A'; - t['\uFD17'] = '\u0633\u0649'; - t['\uFD18'] = '\u0633\u064A'; - t['\uFD19'] = '\u0634\u0649'; - t['\uFD1A'] = '\u0634\u064A'; - t['\uFD1B'] = '\u062D\u0649'; - t['\uFD1C'] = '\u062D\u064A'; - t['\uFD1D'] = '\u062C\u0649'; - t['\uFD1E'] = '\u062C\u064A'; - t['\uFD1F'] = '\u062E\u0649'; - t['\uFD20'] = '\u062E\u064A'; - t['\uFD21'] = '\u0635\u0649'; - t['\uFD22'] = '\u0635\u064A'; - t['\uFD23'] = '\u0636\u0649'; - t['\uFD24'] = '\u0636\u064A'; - t['\uFD25'] = '\u0634\u062C'; - t['\uFD26'] = '\u0634\u062D'; - t['\uFD27'] = '\u0634\u062E'; - t['\uFD28'] = '\u0634\u0645'; - t['\uFD29'] = '\u0634\u0631'; - t['\uFD2A'] = '\u0633\u0631'; - t['\uFD2B'] = '\u0635\u0631'; - t['\uFD2C'] = '\u0636\u0631'; - t['\uFD2D'] = '\u0634\u062C'; - t['\uFD2E'] = '\u0634\u062D'; - t['\uFD2F'] = '\u0634\u062E'; - t['\uFD30'] = '\u0634\u0645'; - t['\uFD31'] = '\u0633\u0647'; - t['\uFD32'] = '\u0634\u0647'; - t['\uFD33'] = '\u0637\u0645'; - t['\uFD34'] = '\u0633\u062C'; - t['\uFD35'] = '\u0633\u062D'; - t['\uFD36'] = '\u0633\u062E'; - t['\uFD37'] = '\u0634\u062C'; - t['\uFD38'] = '\u0634\u062D'; - t['\uFD39'] = '\u0634\u062E'; - t['\uFD3A'] = '\u0637\u0645'; - t['\uFD3B'] = '\u0638\u0645'; - t['\uFD3C'] = '\u0627\u064B'; - t['\uFD3D'] = '\u0627\u064B'; - t['\uFD50'] = '\u062A\u062C\u0645'; - t['\uFD51'] = '\u062A\u062D\u062C'; - t['\uFD52'] = '\u062A\u062D\u062C'; - t['\uFD53'] = '\u062A\u062D\u0645'; - t['\uFD54'] = '\u062A\u062E\u0645'; - t['\uFD55'] = '\u062A\u0645\u062C'; - t['\uFD56'] = '\u062A\u0645\u062D'; - t['\uFD57'] = '\u062A\u0645\u062E'; - t['\uFD58'] = '\u062C\u0645\u062D'; - t['\uFD59'] = '\u062C\u0645\u062D'; - t['\uFD5A'] = '\u062D\u0645\u064A'; - t['\uFD5B'] = '\u062D\u0645\u0649'; - t['\uFD5C'] = '\u0633\u062D\u062C'; - t['\uFD5D'] = '\u0633\u062C\u062D'; - t['\uFD5E'] = '\u0633\u062C\u0649'; - t['\uFD5F'] = '\u0633\u0645\u062D'; - t['\uFD60'] = '\u0633\u0645\u062D'; - t['\uFD61'] = '\u0633\u0645\u062C'; - t['\uFD62'] = '\u0633\u0645\u0645'; - t['\uFD63'] = '\u0633\u0645\u0645'; - t['\uFD64'] = '\u0635\u062D\u062D'; - t['\uFD65'] = '\u0635\u062D\u062D'; - t['\uFD66'] = '\u0635\u0645\u0645'; - t['\uFD67'] = '\u0634\u062D\u0645'; - t['\uFD68'] = '\u0634\u062D\u0645'; - t['\uFD69'] = '\u0634\u062C\u064A'; - t['\uFD6A'] = '\u0634\u0645\u062E'; - t['\uFD6B'] = '\u0634\u0645\u062E'; - t['\uFD6C'] = '\u0634\u0645\u0645'; - t['\uFD6D'] = '\u0634\u0645\u0645'; - t['\uFD6E'] = '\u0636\u062D\u0649'; - t['\uFD6F'] = '\u0636\u062E\u0645'; - t['\uFD70'] = '\u0636\u062E\u0645'; - t['\uFD71'] = '\u0637\u0645\u062D'; - t['\uFD72'] = '\u0637\u0645\u062D'; - t['\uFD73'] = '\u0637\u0645\u0645'; - t['\uFD74'] = '\u0637\u0645\u064A'; - t['\uFD75'] = '\u0639\u062C\u0645'; - t['\uFD76'] = '\u0639\u0645\u0645'; - t['\uFD77'] = '\u0639\u0645\u0645'; - t['\uFD78'] = '\u0639\u0645\u0649'; - t['\uFD79'] = '\u063A\u0645\u0645'; - t['\uFD7A'] = '\u063A\u0645\u064A'; - t['\uFD7B'] = '\u063A\u0645\u0649'; - t['\uFD7C'] = '\u0641\u062E\u0645'; - t['\uFD7D'] = '\u0641\u062E\u0645'; - t['\uFD7E'] = '\u0642\u0645\u062D'; - t['\uFD7F'] = '\u0642\u0645\u0645'; - t['\uFD80'] = '\u0644\u062D\u0645'; - t['\uFD81'] = '\u0644\u062D\u064A'; - t['\uFD82'] = '\u0644\u062D\u0649'; - t['\uFD83'] = '\u0644\u062C\u062C'; - t['\uFD84'] = '\u0644\u062C\u062C'; - t['\uFD85'] = '\u0644\u062E\u0645'; - t['\uFD86'] = '\u0644\u062E\u0645'; - t['\uFD87'] = '\u0644\u0645\u062D'; - t['\uFD88'] = '\u0644\u0645\u062D'; - t['\uFD89'] = '\u0645\u062D\u062C'; - t['\uFD8A'] = '\u0645\u062D\u0645'; - t['\uFD8B'] = '\u0645\u062D\u064A'; - t['\uFD8C'] = '\u0645\u062C\u062D'; - t['\uFD8D'] = '\u0645\u062C\u0645'; - t['\uFD8E'] = '\u0645\u062E\u062C'; - t['\uFD8F'] = '\u0645\u062E\u0645'; - t['\uFD92'] = '\u0645\u062C\u062E'; - t['\uFD93'] = '\u0647\u0645\u062C'; - t['\uFD94'] = '\u0647\u0645\u0645'; - t['\uFD95'] = '\u0646\u062D\u0645'; - t['\uFD96'] = '\u0646\u062D\u0649'; - t['\uFD97'] = '\u0646\u062C\u0645'; - t['\uFD98'] = '\u0646\u062C\u0645'; - t['\uFD99'] = '\u0646\u062C\u0649'; - t['\uFD9A'] = '\u0646\u0645\u064A'; - t['\uFD9B'] = '\u0646\u0645\u0649'; - t['\uFD9C'] = '\u064A\u0645\u0645'; - t['\uFD9D'] = '\u064A\u0645\u0645'; - t['\uFD9E'] = '\u0628\u062E\u064A'; - t['\uFD9F'] = '\u062A\u062C\u064A'; - t['\uFDA0'] = '\u062A\u062C\u0649'; - t['\uFDA1'] = '\u062A\u062E\u064A'; - t['\uFDA2'] = '\u062A\u062E\u0649'; - t['\uFDA3'] = '\u062A\u0645\u064A'; - t['\uFDA4'] = '\u062A\u0645\u0649'; - t['\uFDA5'] = '\u062C\u0645\u064A'; - t['\uFDA6'] = '\u062C\u062D\u0649'; - t['\uFDA7'] = '\u062C\u0645\u0649'; - t['\uFDA8'] = '\u0633\u062E\u0649'; - t['\uFDA9'] = '\u0635\u062D\u064A'; - t['\uFDAA'] = '\u0634\u062D\u064A'; - t['\uFDAB'] = '\u0636\u062D\u064A'; - t['\uFDAC'] = '\u0644\u062C\u064A'; - t['\uFDAD'] = '\u0644\u0645\u064A'; - t['\uFDAE'] = '\u064A\u062D\u064A'; - t['\uFDAF'] = '\u064A\u062C\u064A'; - t['\uFDB0'] = '\u064A\u0645\u064A'; - t['\uFDB1'] = '\u0645\u0645\u064A'; - t['\uFDB2'] = '\u0642\u0645\u064A'; - t['\uFDB3'] = '\u0646\u062D\u064A'; - t['\uFDB4'] = '\u0642\u0645\u062D'; - t['\uFDB5'] = '\u0644\u062D\u0645'; - t['\uFDB6'] = '\u0639\u0645\u064A'; - t['\uFDB7'] = '\u0643\u0645\u064A'; - t['\uFDB8'] = '\u0646\u062C\u062D'; - t['\uFDB9'] = '\u0645\u062E\u064A'; - t['\uFDBA'] = '\u0644\u062C\u0645'; - t['\uFDBB'] = '\u0643\u0645\u0645'; - t['\uFDBC'] = '\u0644\u062C\u0645'; - t['\uFDBD'] = '\u0646\u062C\u062D'; - t['\uFDBE'] = '\u062C\u062D\u064A'; - t['\uFDBF'] = '\u062D\u062C\u064A'; - t['\uFDC0'] = '\u0645\u062C\u064A'; - t['\uFDC1'] = '\u0641\u0645\u064A'; - t['\uFDC2'] = '\u0628\u062D\u064A'; - t['\uFDC3'] = '\u0643\u0645\u0645'; - t['\uFDC4'] = '\u0639\u062C\u0645'; - t['\uFDC5'] = '\u0635\u0645\u0645'; - t['\uFDC6'] = '\u0633\u062E\u064A'; - t['\uFDC7'] = '\u0646\u062C\u064A'; - t['\uFE49'] = '\u203E'; - t['\uFE4A'] = '\u203E'; - t['\uFE4B'] = '\u203E'; - t['\uFE4C'] = '\u203E'; - t['\uFE4D'] = '\u005F'; - t['\uFE4E'] = '\u005F'; - t['\uFE4F'] = '\u005F'; - t['\uFE80'] = '\u0621'; - t['\uFE81'] = '\u0622'; - t['\uFE82'] = '\u0622'; - t['\uFE83'] = '\u0623'; - t['\uFE84'] = '\u0623'; - t['\uFE85'] = '\u0624'; - t['\uFE86'] = '\u0624'; - t['\uFE87'] = '\u0625'; - t['\uFE88'] = '\u0625'; - t['\uFE89'] = '\u0626'; - t['\uFE8A'] = '\u0626'; - t['\uFE8B'] = '\u0626'; - t['\uFE8C'] = '\u0626'; - t['\uFE8D'] = '\u0627'; - t['\uFE8E'] = '\u0627'; - t['\uFE8F'] = '\u0628'; - t['\uFE90'] = '\u0628'; - t['\uFE91'] = '\u0628'; - t['\uFE92'] = '\u0628'; - t['\uFE93'] = '\u0629'; - t['\uFE94'] = '\u0629'; - t['\uFE95'] = '\u062A'; - t['\uFE96'] = '\u062A'; - t['\uFE97'] = '\u062A'; - t['\uFE98'] = '\u062A'; - t['\uFE99'] = '\u062B'; - t['\uFE9A'] = '\u062B'; - t['\uFE9B'] = '\u062B'; - t['\uFE9C'] = '\u062B'; - t['\uFE9D'] = '\u062C'; - t['\uFE9E'] = '\u062C'; - t['\uFE9F'] = '\u062C'; - t['\uFEA0'] = '\u062C'; - t['\uFEA1'] = '\u062D'; - t['\uFEA2'] = '\u062D'; - t['\uFEA3'] = '\u062D'; - t['\uFEA4'] = '\u062D'; - t['\uFEA5'] = '\u062E'; - t['\uFEA6'] = '\u062E'; - t['\uFEA7'] = '\u062E'; - t['\uFEA8'] = '\u062E'; - t['\uFEA9'] = '\u062F'; - t['\uFEAA'] = '\u062F'; - t['\uFEAB'] = '\u0630'; - t['\uFEAC'] = '\u0630'; - t['\uFEAD'] = '\u0631'; - t['\uFEAE'] = '\u0631'; - t['\uFEAF'] = '\u0632'; - t['\uFEB0'] = '\u0632'; - t['\uFEB1'] = '\u0633'; - t['\uFEB2'] = '\u0633'; - t['\uFEB3'] = '\u0633'; - t['\uFEB4'] = '\u0633'; - t['\uFEB5'] = '\u0634'; - t['\uFEB6'] = '\u0634'; - t['\uFEB7'] = '\u0634'; - t['\uFEB8'] = '\u0634'; - t['\uFEB9'] = '\u0635'; - t['\uFEBA'] = '\u0635'; - t['\uFEBB'] = '\u0635'; - t['\uFEBC'] = '\u0635'; - t['\uFEBD'] = '\u0636'; - t['\uFEBE'] = '\u0636'; - t['\uFEBF'] = '\u0636'; - t['\uFEC0'] = '\u0636'; - t['\uFEC1'] = '\u0637'; - t['\uFEC2'] = '\u0637'; - t['\uFEC3'] = '\u0637'; - t['\uFEC4'] = '\u0637'; - t['\uFEC5'] = '\u0638'; - t['\uFEC6'] = '\u0638'; - t['\uFEC7'] = '\u0638'; - t['\uFEC8'] = '\u0638'; - t['\uFEC9'] = '\u0639'; - t['\uFECA'] = '\u0639'; - t['\uFECB'] = '\u0639'; - t['\uFECC'] = '\u0639'; - t['\uFECD'] = '\u063A'; - t['\uFECE'] = '\u063A'; - t['\uFECF'] = '\u063A'; - t['\uFED0'] = '\u063A'; - t['\uFED1'] = '\u0641'; - t['\uFED2'] = '\u0641'; - t['\uFED3'] = '\u0641'; - t['\uFED4'] = '\u0641'; - t['\uFED5'] = '\u0642'; - t['\uFED6'] = '\u0642'; - t['\uFED7'] = '\u0642'; - t['\uFED8'] = '\u0642'; - t['\uFED9'] = '\u0643'; - t['\uFEDA'] = '\u0643'; - t['\uFEDB'] = '\u0643'; - t['\uFEDC'] = '\u0643'; - t['\uFEDD'] = '\u0644'; - t['\uFEDE'] = '\u0644'; - t['\uFEDF'] = '\u0644'; - t['\uFEE0'] = '\u0644'; - t['\uFEE1'] = '\u0645'; - t['\uFEE2'] = '\u0645'; - t['\uFEE3'] = '\u0645'; - t['\uFEE4'] = '\u0645'; - t['\uFEE5'] = '\u0646'; - t['\uFEE6'] = '\u0646'; - t['\uFEE7'] = '\u0646'; - t['\uFEE8'] = '\u0646'; - t['\uFEE9'] = '\u0647'; - t['\uFEEA'] = '\u0647'; - t['\uFEEB'] = '\u0647'; - t['\uFEEC'] = '\u0647'; - t['\uFEED'] = '\u0648'; - t['\uFEEE'] = '\u0648'; - t['\uFEEF'] = '\u0649'; - t['\uFEF0'] = '\u0649'; - t['\uFEF1'] = '\u064A'; - t['\uFEF2'] = '\u064A'; - t['\uFEF3'] = '\u064A'; - t['\uFEF4'] = '\u064A'; - t['\uFEF5'] = '\u0644\u0622'; - t['\uFEF6'] = '\u0644\u0622'; - t['\uFEF7'] = '\u0644\u0623'; - t['\uFEF8'] = '\u0644\u0623'; - t['\uFEF9'] = '\u0644\u0625'; - t['\uFEFA'] = '\u0644\u0625'; - t['\uFEFB'] = '\u0644\u0627'; - t['\uFEFC'] = '\u0644\u0627'; + t["\u00A8"] = "\u0020\u0308"; + t["\u00AF"] = "\u0020\u0304"; + t["\u00B4"] = "\u0020\u0301"; + t["\u00B5"] = "\u03BC"; + t["\u00B8"] = "\u0020\u0327"; + t["\u0132"] = "\u0049\u004A"; + t["\u0133"] = "\u0069\u006A"; + t["\u013F"] = "\u004C\u00B7"; + t["\u0140"] = "\u006C\u00B7"; + t["\u0149"] = "\u02BC\u006E"; + t["\u017F"] = "\u0073"; + t["\u01C4"] = "\u0044\u017D"; + t["\u01C5"] = "\u0044\u017E"; + t["\u01C6"] = "\u0064\u017E"; + t["\u01C7"] = "\u004C\u004A"; + t["\u01C8"] = "\u004C\u006A"; + t["\u01C9"] = "\u006C\u006A"; + t["\u01CA"] = "\u004E\u004A"; + t["\u01CB"] = "\u004E\u006A"; + t["\u01CC"] = "\u006E\u006A"; + t["\u01F1"] = "\u0044\u005A"; + t["\u01F2"] = "\u0044\u007A"; + t["\u01F3"] = "\u0064\u007A"; + t["\u02D8"] = "\u0020\u0306"; + t["\u02D9"] = "\u0020\u0307"; + t["\u02DA"] = "\u0020\u030A"; + t["\u02DB"] = "\u0020\u0328"; + t["\u02DC"] = "\u0020\u0303"; + t["\u02DD"] = "\u0020\u030B"; + t["\u037A"] = "\u0020\u0345"; + t["\u0384"] = "\u0020\u0301"; + t["\u03D0"] = "\u03B2"; + t["\u03D1"] = "\u03B8"; + t["\u03D2"] = "\u03A5"; + t["\u03D5"] = "\u03C6"; + t["\u03D6"] = "\u03C0"; + t["\u03F0"] = "\u03BA"; + t["\u03F1"] = "\u03C1"; + t["\u03F2"] = "\u03C2"; + t["\u03F4"] = "\u0398"; + t["\u03F5"] = "\u03B5"; + t["\u03F9"] = "\u03A3"; + t["\u0587"] = "\u0565\u0582"; + t["\u0675"] = "\u0627\u0674"; + t["\u0676"] = "\u0648\u0674"; + t["\u0677"] = "\u06C7\u0674"; + t["\u0678"] = "\u064A\u0674"; + t["\u0E33"] = "\u0E4D\u0E32"; + t["\u0EB3"] = "\u0ECD\u0EB2"; + t["\u0EDC"] = "\u0EAB\u0E99"; + t["\u0EDD"] = "\u0EAB\u0EA1"; + t["\u0F77"] = "\u0FB2\u0F81"; + t["\u0F79"] = "\u0FB3\u0F81"; + t["\u1E9A"] = "\u0061\u02BE"; + t["\u1FBD"] = "\u0020\u0313"; + t["\u1FBF"] = "\u0020\u0313"; + t["\u1FC0"] = "\u0020\u0342"; + t["\u1FFE"] = "\u0020\u0314"; + t["\u2002"] = "\u0020"; + t["\u2003"] = "\u0020"; + t["\u2004"] = "\u0020"; + t["\u2005"] = "\u0020"; + t["\u2006"] = "\u0020"; + t["\u2008"] = "\u0020"; + t["\u2009"] = "\u0020"; + t["\u200A"] = "\u0020"; + t["\u2017"] = "\u0020\u0333"; + t["\u2024"] = "\u002E"; + t["\u2025"] = "\u002E\u002E"; + t["\u2026"] = "\u002E\u002E\u002E"; + t["\u2033"] = "\u2032\u2032"; + t["\u2034"] = "\u2032\u2032\u2032"; + t["\u2036"] = "\u2035\u2035"; + t["\u2037"] = "\u2035\u2035\u2035"; + t["\u203C"] = "\u0021\u0021"; + t["\u203E"] = "\u0020\u0305"; + t["\u2047"] = "\u003F\u003F"; + t["\u2048"] = "\u003F\u0021"; + t["\u2049"] = "\u0021\u003F"; + t["\u2057"] = "\u2032\u2032\u2032\u2032"; + t["\u205F"] = "\u0020"; + t["\u20A8"] = "\u0052\u0073"; + t["\u2100"] = "\u0061\u002F\u0063"; + t["\u2101"] = "\u0061\u002F\u0073"; + t["\u2103"] = "\u00B0\u0043"; + t["\u2105"] = "\u0063\u002F\u006F"; + t["\u2106"] = "\u0063\u002F\u0075"; + t["\u2107"] = "\u0190"; + t["\u2109"] = "\u00B0\u0046"; + t["\u2116"] = "\u004E\u006F"; + t["\u2121"] = "\u0054\u0045\u004C"; + t["\u2135"] = "\u05D0"; + t["\u2136"] = "\u05D1"; + t["\u2137"] = "\u05D2"; + t["\u2138"] = "\u05D3"; + t["\u213B"] = "\u0046\u0041\u0058"; + t["\u2160"] = "\u0049"; + t["\u2161"] = "\u0049\u0049"; + t["\u2162"] = "\u0049\u0049\u0049"; + t["\u2163"] = "\u0049\u0056"; + t["\u2164"] = "\u0056"; + t["\u2165"] = "\u0056\u0049"; + t["\u2166"] = "\u0056\u0049\u0049"; + t["\u2167"] = "\u0056\u0049\u0049\u0049"; + t["\u2168"] = "\u0049\u0058"; + t["\u2169"] = "\u0058"; + t["\u216A"] = "\u0058\u0049"; + t["\u216B"] = "\u0058\u0049\u0049"; + t["\u216C"] = "\u004C"; + t["\u216D"] = "\u0043"; + t["\u216E"] = "\u0044"; + t["\u216F"] = "\u004D"; + t["\u2170"] = "\u0069"; + t["\u2171"] = "\u0069\u0069"; + t["\u2172"] = "\u0069\u0069\u0069"; + t["\u2173"] = "\u0069\u0076"; + t["\u2174"] = "\u0076"; + t["\u2175"] = "\u0076\u0069"; + t["\u2176"] = "\u0076\u0069\u0069"; + t["\u2177"] = "\u0076\u0069\u0069\u0069"; + t["\u2178"] = "\u0069\u0078"; + t["\u2179"] = "\u0078"; + t["\u217A"] = "\u0078\u0069"; + t["\u217B"] = "\u0078\u0069\u0069"; + t["\u217C"] = "\u006C"; + t["\u217D"] = "\u0063"; + t["\u217E"] = "\u0064"; + t["\u217F"] = "\u006D"; + t["\u222C"] = "\u222B\u222B"; + t["\u222D"] = "\u222B\u222B\u222B"; + t["\u222F"] = "\u222E\u222E"; + t["\u2230"] = "\u222E\u222E\u222E"; + t["\u2474"] = "\u0028\u0031\u0029"; + t["\u2475"] = "\u0028\u0032\u0029"; + t["\u2476"] = "\u0028\u0033\u0029"; + t["\u2477"] = "\u0028\u0034\u0029"; + t["\u2478"] = "\u0028\u0035\u0029"; + t["\u2479"] = "\u0028\u0036\u0029"; + t["\u247A"] = "\u0028\u0037\u0029"; + t["\u247B"] = "\u0028\u0038\u0029"; + t["\u247C"] = "\u0028\u0039\u0029"; + t["\u247D"] = "\u0028\u0031\u0030\u0029"; + t["\u247E"] = "\u0028\u0031\u0031\u0029"; + t["\u247F"] = "\u0028\u0031\u0032\u0029"; + t["\u2480"] = "\u0028\u0031\u0033\u0029"; + t["\u2481"] = "\u0028\u0031\u0034\u0029"; + t["\u2482"] = "\u0028\u0031\u0035\u0029"; + t["\u2483"] = "\u0028\u0031\u0036\u0029"; + t["\u2484"] = "\u0028\u0031\u0037\u0029"; + t["\u2485"] = "\u0028\u0031\u0038\u0029"; + t["\u2486"] = "\u0028\u0031\u0039\u0029"; + t["\u2487"] = "\u0028\u0032\u0030\u0029"; + t["\u2488"] = "\u0031\u002E"; + t["\u2489"] = "\u0032\u002E"; + t["\u248A"] = "\u0033\u002E"; + t["\u248B"] = "\u0034\u002E"; + t["\u248C"] = "\u0035\u002E"; + t["\u248D"] = "\u0036\u002E"; + t["\u248E"] = "\u0037\u002E"; + t["\u248F"] = "\u0038\u002E"; + t["\u2490"] = "\u0039\u002E"; + t["\u2491"] = "\u0031\u0030\u002E"; + t["\u2492"] = "\u0031\u0031\u002E"; + t["\u2493"] = "\u0031\u0032\u002E"; + t["\u2494"] = "\u0031\u0033\u002E"; + t["\u2495"] = "\u0031\u0034\u002E"; + t["\u2496"] = "\u0031\u0035\u002E"; + t["\u2497"] = "\u0031\u0036\u002E"; + t["\u2498"] = "\u0031\u0037\u002E"; + t["\u2499"] = "\u0031\u0038\u002E"; + t["\u249A"] = "\u0031\u0039\u002E"; + t["\u249B"] = "\u0032\u0030\u002E"; + t["\u249C"] = "\u0028\u0061\u0029"; + t["\u249D"] = "\u0028\u0062\u0029"; + t["\u249E"] = "\u0028\u0063\u0029"; + t["\u249F"] = "\u0028\u0064\u0029"; + t["\u24A0"] = "\u0028\u0065\u0029"; + t["\u24A1"] = "\u0028\u0066\u0029"; + t["\u24A2"] = "\u0028\u0067\u0029"; + t["\u24A3"] = "\u0028\u0068\u0029"; + t["\u24A4"] = "\u0028\u0069\u0029"; + t["\u24A5"] = "\u0028\u006A\u0029"; + t["\u24A6"] = "\u0028\u006B\u0029"; + t["\u24A7"] = "\u0028\u006C\u0029"; + t["\u24A8"] = "\u0028\u006D\u0029"; + t["\u24A9"] = "\u0028\u006E\u0029"; + t["\u24AA"] = "\u0028\u006F\u0029"; + t["\u24AB"] = "\u0028\u0070\u0029"; + t["\u24AC"] = "\u0028\u0071\u0029"; + t["\u24AD"] = "\u0028\u0072\u0029"; + t["\u24AE"] = "\u0028\u0073\u0029"; + t["\u24AF"] = "\u0028\u0074\u0029"; + t["\u24B0"] = "\u0028\u0075\u0029"; + t["\u24B1"] = "\u0028\u0076\u0029"; + t["\u24B2"] = "\u0028\u0077\u0029"; + t["\u24B3"] = "\u0028\u0078\u0029"; + t["\u24B4"] = "\u0028\u0079\u0029"; + t["\u24B5"] = "\u0028\u007A\u0029"; + t["\u2A0C"] = "\u222B\u222B\u222B\u222B"; + t["\u2A74"] = "\u003A\u003A\u003D"; + t["\u2A75"] = "\u003D\u003D"; + t["\u2A76"] = "\u003D\u003D\u003D"; + t["\u2E9F"] = "\u6BCD"; + t["\u2EF3"] = "\u9F9F"; + t["\u2F00"] = "\u4E00"; + t["\u2F01"] = "\u4E28"; + t["\u2F02"] = "\u4E36"; + t["\u2F03"] = "\u4E3F"; + t["\u2F04"] = "\u4E59"; + t["\u2F05"] = "\u4E85"; + t["\u2F06"] = "\u4E8C"; + t["\u2F07"] = "\u4EA0"; + t["\u2F08"] = "\u4EBA"; + t["\u2F09"] = "\u513F"; + t["\u2F0A"] = "\u5165"; + t["\u2F0B"] = "\u516B"; + t["\u2F0C"] = "\u5182"; + t["\u2F0D"] = "\u5196"; + t["\u2F0E"] = "\u51AB"; + t["\u2F0F"] = "\u51E0"; + t["\u2F10"] = "\u51F5"; + t["\u2F11"] = "\u5200"; + t["\u2F12"] = "\u529B"; + t["\u2F13"] = "\u52F9"; + t["\u2F14"] = "\u5315"; + t["\u2F15"] = "\u531A"; + t["\u2F16"] = "\u5338"; + t["\u2F17"] = "\u5341"; + t["\u2F18"] = "\u535C"; + t["\u2F19"] = "\u5369"; + t["\u2F1A"] = "\u5382"; + t["\u2F1B"] = "\u53B6"; + t["\u2F1C"] = "\u53C8"; + t["\u2F1D"] = "\u53E3"; + t["\u2F1E"] = "\u56D7"; + t["\u2F1F"] = "\u571F"; + t["\u2F20"] = "\u58EB"; + t["\u2F21"] = "\u5902"; + t["\u2F22"] = "\u590A"; + t["\u2F23"] = "\u5915"; + t["\u2F24"] = "\u5927"; + t["\u2F25"] = "\u5973"; + t["\u2F26"] = "\u5B50"; + t["\u2F27"] = "\u5B80"; + t["\u2F28"] = "\u5BF8"; + t["\u2F29"] = "\u5C0F"; + t["\u2F2A"] = "\u5C22"; + t["\u2F2B"] = "\u5C38"; + t["\u2F2C"] = "\u5C6E"; + t["\u2F2D"] = "\u5C71"; + t["\u2F2E"] = "\u5DDB"; + t["\u2F2F"] = "\u5DE5"; + t["\u2F30"] = "\u5DF1"; + t["\u2F31"] = "\u5DFE"; + t["\u2F32"] = "\u5E72"; + t["\u2F33"] = "\u5E7A"; + t["\u2F34"] = "\u5E7F"; + t["\u2F35"] = "\u5EF4"; + t["\u2F36"] = "\u5EFE"; + t["\u2F37"] = "\u5F0B"; + t["\u2F38"] = "\u5F13"; + t["\u2F39"] = "\u5F50"; + t["\u2F3A"] = "\u5F61"; + t["\u2F3B"] = "\u5F73"; + t["\u2F3C"] = "\u5FC3"; + t["\u2F3D"] = "\u6208"; + t["\u2F3E"] = "\u6236"; + t["\u2F3F"] = "\u624B"; + t["\u2F40"] = "\u652F"; + t["\u2F41"] = "\u6534"; + t["\u2F42"] = "\u6587"; + t["\u2F43"] = "\u6597"; + t["\u2F44"] = "\u65A4"; + t["\u2F45"] = "\u65B9"; + t["\u2F46"] = "\u65E0"; + t["\u2F47"] = "\u65E5"; + t["\u2F48"] = "\u66F0"; + t["\u2F49"] = "\u6708"; + t["\u2F4A"] = "\u6728"; + t["\u2F4B"] = "\u6B20"; + t["\u2F4C"] = "\u6B62"; + t["\u2F4D"] = "\u6B79"; + t["\u2F4E"] = "\u6BB3"; + t["\u2F4F"] = "\u6BCB"; + t["\u2F50"] = "\u6BD4"; + t["\u2F51"] = "\u6BDB"; + t["\u2F52"] = "\u6C0F"; + t["\u2F53"] = "\u6C14"; + t["\u2F54"] = "\u6C34"; + t["\u2F55"] = "\u706B"; + t["\u2F56"] = "\u722A"; + t["\u2F57"] = "\u7236"; + t["\u2F58"] = "\u723B"; + t["\u2F59"] = "\u723F"; + t["\u2F5A"] = "\u7247"; + t["\u2F5B"] = "\u7259"; + t["\u2F5C"] = "\u725B"; + t["\u2F5D"] = "\u72AC"; + t["\u2F5E"] = "\u7384"; + t["\u2F5F"] = "\u7389"; + t["\u2F60"] = "\u74DC"; + t["\u2F61"] = "\u74E6"; + t["\u2F62"] = "\u7518"; + t["\u2F63"] = "\u751F"; + t["\u2F64"] = "\u7528"; + t["\u2F65"] = "\u7530"; + t["\u2F66"] = "\u758B"; + t["\u2F67"] = "\u7592"; + t["\u2F68"] = "\u7676"; + t["\u2F69"] = "\u767D"; + t["\u2F6A"] = "\u76AE"; + t["\u2F6B"] = "\u76BF"; + t["\u2F6C"] = "\u76EE"; + t["\u2F6D"] = "\u77DB"; + t["\u2F6E"] = "\u77E2"; + t["\u2F6F"] = "\u77F3"; + t["\u2F70"] = "\u793A"; + t["\u2F71"] = "\u79B8"; + t["\u2F72"] = "\u79BE"; + t["\u2F73"] = "\u7A74"; + t["\u2F74"] = "\u7ACB"; + t["\u2F75"] = "\u7AF9"; + t["\u2F76"] = "\u7C73"; + t["\u2F77"] = "\u7CF8"; + t["\u2F78"] = "\u7F36"; + t["\u2F79"] = "\u7F51"; + t["\u2F7A"] = "\u7F8A"; + t["\u2F7B"] = "\u7FBD"; + t["\u2F7C"] = "\u8001"; + t["\u2F7D"] = "\u800C"; + t["\u2F7E"] = "\u8012"; + t["\u2F7F"] = "\u8033"; + t["\u2F80"] = "\u807F"; + t["\u2F81"] = "\u8089"; + t["\u2F82"] = "\u81E3"; + t["\u2F83"] = "\u81EA"; + t["\u2F84"] = "\u81F3"; + t["\u2F85"] = "\u81FC"; + t["\u2F86"] = "\u820C"; + t["\u2F87"] = "\u821B"; + t["\u2F88"] = "\u821F"; + t["\u2F89"] = "\u826E"; + t["\u2F8A"] = "\u8272"; + t["\u2F8B"] = "\u8278"; + t["\u2F8C"] = "\u864D"; + t["\u2F8D"] = "\u866B"; + t["\u2F8E"] = "\u8840"; + t["\u2F8F"] = "\u884C"; + t["\u2F90"] = "\u8863"; + t["\u2F91"] = "\u897E"; + t["\u2F92"] = "\u898B"; + t["\u2F93"] = "\u89D2"; + t["\u2F94"] = "\u8A00"; + t["\u2F95"] = "\u8C37"; + t["\u2F96"] = "\u8C46"; + t["\u2F97"] = "\u8C55"; + t["\u2F98"] = "\u8C78"; + t["\u2F99"] = "\u8C9D"; + t["\u2F9A"] = "\u8D64"; + t["\u2F9B"] = "\u8D70"; + t["\u2F9C"] = "\u8DB3"; + t["\u2F9D"] = "\u8EAB"; + t["\u2F9E"] = "\u8ECA"; + t["\u2F9F"] = "\u8F9B"; + t["\u2FA0"] = "\u8FB0"; + t["\u2FA1"] = "\u8FB5"; + t["\u2FA2"] = "\u9091"; + t["\u2FA3"] = "\u9149"; + t["\u2FA4"] = "\u91C6"; + t["\u2FA5"] = "\u91CC"; + t["\u2FA6"] = "\u91D1"; + t["\u2FA7"] = "\u9577"; + t["\u2FA8"] = "\u9580"; + t["\u2FA9"] = "\u961C"; + t["\u2FAA"] = "\u96B6"; + t["\u2FAB"] = "\u96B9"; + t["\u2FAC"] = "\u96E8"; + t["\u2FAD"] = "\u9751"; + t["\u2FAE"] = "\u975E"; + t["\u2FAF"] = "\u9762"; + t["\u2FB0"] = "\u9769"; + t["\u2FB1"] = "\u97CB"; + t["\u2FB2"] = "\u97ED"; + t["\u2FB3"] = "\u97F3"; + t["\u2FB4"] = "\u9801"; + t["\u2FB5"] = "\u98A8"; + t["\u2FB6"] = "\u98DB"; + t["\u2FB7"] = "\u98DF"; + t["\u2FB8"] = "\u9996"; + t["\u2FB9"] = "\u9999"; + t["\u2FBA"] = "\u99AC"; + t["\u2FBB"] = "\u9AA8"; + t["\u2FBC"] = "\u9AD8"; + t["\u2FBD"] = "\u9ADF"; + t["\u2FBE"] = "\u9B25"; + t["\u2FBF"] = "\u9B2F"; + t["\u2FC0"] = "\u9B32"; + t["\u2FC1"] = "\u9B3C"; + t["\u2FC2"] = "\u9B5A"; + t["\u2FC3"] = "\u9CE5"; + t["\u2FC4"] = "\u9E75"; + t["\u2FC5"] = "\u9E7F"; + t["\u2FC6"] = "\u9EA5"; + t["\u2FC7"] = "\u9EBB"; + t["\u2FC8"] = "\u9EC3"; + t["\u2FC9"] = "\u9ECD"; + t["\u2FCA"] = "\u9ED1"; + t["\u2FCB"] = "\u9EF9"; + t["\u2FCC"] = "\u9EFD"; + t["\u2FCD"] = "\u9F0E"; + t["\u2FCE"] = "\u9F13"; + t["\u2FCF"] = "\u9F20"; + t["\u2FD0"] = "\u9F3B"; + t["\u2FD1"] = "\u9F4A"; + t["\u2FD2"] = "\u9F52"; + t["\u2FD3"] = "\u9F8D"; + t["\u2FD4"] = "\u9F9C"; + t["\u2FD5"] = "\u9FA0"; + t["\u3036"] = "\u3012"; + t["\u3038"] = "\u5341"; + t["\u3039"] = "\u5344"; + t["\u303A"] = "\u5345"; + t["\u309B"] = "\u0020\u3099"; + t["\u309C"] = "\u0020\u309A"; + t["\u3131"] = "\u1100"; + t["\u3132"] = "\u1101"; + t["\u3133"] = "\u11AA"; + t["\u3134"] = "\u1102"; + t["\u3135"] = "\u11AC"; + t["\u3136"] = "\u11AD"; + t["\u3137"] = "\u1103"; + t["\u3138"] = "\u1104"; + t["\u3139"] = "\u1105"; + t["\u313A"] = "\u11B0"; + t["\u313B"] = "\u11B1"; + t["\u313C"] = "\u11B2"; + t["\u313D"] = "\u11B3"; + t["\u313E"] = "\u11B4"; + t["\u313F"] = "\u11B5"; + t["\u3140"] = "\u111A"; + t["\u3141"] = "\u1106"; + t["\u3142"] = "\u1107"; + t["\u3143"] = "\u1108"; + t["\u3144"] = "\u1121"; + t["\u3145"] = "\u1109"; + t["\u3146"] = "\u110A"; + t["\u3147"] = "\u110B"; + t["\u3148"] = "\u110C"; + t["\u3149"] = "\u110D"; + t["\u314A"] = "\u110E"; + t["\u314B"] = "\u110F"; + t["\u314C"] = "\u1110"; + t["\u314D"] = "\u1111"; + t["\u314E"] = "\u1112"; + t["\u314F"] = "\u1161"; + t["\u3150"] = "\u1162"; + t["\u3151"] = "\u1163"; + t["\u3152"] = "\u1164"; + t["\u3153"] = "\u1165"; + t["\u3154"] = "\u1166"; + t["\u3155"] = "\u1167"; + t["\u3156"] = "\u1168"; + t["\u3157"] = "\u1169"; + t["\u3158"] = "\u116A"; + t["\u3159"] = "\u116B"; + t["\u315A"] = "\u116C"; + t["\u315B"] = "\u116D"; + t["\u315C"] = "\u116E"; + t["\u315D"] = "\u116F"; + t["\u315E"] = "\u1170"; + t["\u315F"] = "\u1171"; + t["\u3160"] = "\u1172"; + t["\u3161"] = "\u1173"; + t["\u3162"] = "\u1174"; + t["\u3163"] = "\u1175"; + t["\u3164"] = "\u1160"; + t["\u3165"] = "\u1114"; + t["\u3166"] = "\u1115"; + t["\u3167"] = "\u11C7"; + t["\u3168"] = "\u11C8"; + t["\u3169"] = "\u11CC"; + t["\u316A"] = "\u11CE"; + t["\u316B"] = "\u11D3"; + t["\u316C"] = "\u11D7"; + t["\u316D"] = "\u11D9"; + t["\u316E"] = "\u111C"; + t["\u316F"] = "\u11DD"; + t["\u3170"] = "\u11DF"; + t["\u3171"] = "\u111D"; + t["\u3172"] = "\u111E"; + t["\u3173"] = "\u1120"; + t["\u3174"] = "\u1122"; + t["\u3175"] = "\u1123"; + t["\u3176"] = "\u1127"; + t["\u3177"] = "\u1129"; + t["\u3178"] = "\u112B"; + t["\u3179"] = "\u112C"; + t["\u317A"] = "\u112D"; + t["\u317B"] = "\u112E"; + t["\u317C"] = "\u112F"; + t["\u317D"] = "\u1132"; + t["\u317E"] = "\u1136"; + t["\u317F"] = "\u1140"; + t["\u3180"] = "\u1147"; + t["\u3181"] = "\u114C"; + t["\u3182"] = "\u11F1"; + t["\u3183"] = "\u11F2"; + t["\u3184"] = "\u1157"; + t["\u3185"] = "\u1158"; + t["\u3186"] = "\u1159"; + t["\u3187"] = "\u1184"; + t["\u3188"] = "\u1185"; + t["\u3189"] = "\u1188"; + t["\u318A"] = "\u1191"; + t["\u318B"] = "\u1192"; + t["\u318C"] = "\u1194"; + t["\u318D"] = "\u119E"; + t["\u318E"] = "\u11A1"; + t["\u3200"] = "\u0028\u1100\u0029"; + t["\u3201"] = "\u0028\u1102\u0029"; + t["\u3202"] = "\u0028\u1103\u0029"; + t["\u3203"] = "\u0028\u1105\u0029"; + t["\u3204"] = "\u0028\u1106\u0029"; + t["\u3205"] = "\u0028\u1107\u0029"; + t["\u3206"] = "\u0028\u1109\u0029"; + t["\u3207"] = "\u0028\u110B\u0029"; + t["\u3208"] = "\u0028\u110C\u0029"; + t["\u3209"] = "\u0028\u110E\u0029"; + t["\u320A"] = "\u0028\u110F\u0029"; + t["\u320B"] = "\u0028\u1110\u0029"; + t["\u320C"] = "\u0028\u1111\u0029"; + t["\u320D"] = "\u0028\u1112\u0029"; + t["\u320E"] = "\u0028\u1100\u1161\u0029"; + t["\u320F"] = "\u0028\u1102\u1161\u0029"; + t["\u3210"] = "\u0028\u1103\u1161\u0029"; + t["\u3211"] = "\u0028\u1105\u1161\u0029"; + t["\u3212"] = "\u0028\u1106\u1161\u0029"; + t["\u3213"] = "\u0028\u1107\u1161\u0029"; + t["\u3214"] = "\u0028\u1109\u1161\u0029"; + t["\u3215"] = "\u0028\u110B\u1161\u0029"; + t["\u3216"] = "\u0028\u110C\u1161\u0029"; + t["\u3217"] = "\u0028\u110E\u1161\u0029"; + t["\u3218"] = "\u0028\u110F\u1161\u0029"; + t["\u3219"] = "\u0028\u1110\u1161\u0029"; + t["\u321A"] = "\u0028\u1111\u1161\u0029"; + t["\u321B"] = "\u0028\u1112\u1161\u0029"; + t["\u321C"] = "\u0028\u110C\u116E\u0029"; + t["\u321D"] = "\u0028\u110B\u1169\u110C\u1165\u11AB\u0029"; + t["\u321E"] = "\u0028\u110B\u1169\u1112\u116E\u0029"; + t["\u3220"] = "\u0028\u4E00\u0029"; + t["\u3221"] = "\u0028\u4E8C\u0029"; + t["\u3222"] = "\u0028\u4E09\u0029"; + t["\u3223"] = "\u0028\u56DB\u0029"; + t["\u3224"] = "\u0028\u4E94\u0029"; + t["\u3225"] = "\u0028\u516D\u0029"; + t["\u3226"] = "\u0028\u4E03\u0029"; + t["\u3227"] = "\u0028\u516B\u0029"; + t["\u3228"] = "\u0028\u4E5D\u0029"; + t["\u3229"] = "\u0028\u5341\u0029"; + t["\u322A"] = "\u0028\u6708\u0029"; + t["\u322B"] = "\u0028\u706B\u0029"; + t["\u322C"] = "\u0028\u6C34\u0029"; + t["\u322D"] = "\u0028\u6728\u0029"; + t["\u322E"] = "\u0028\u91D1\u0029"; + t["\u322F"] = "\u0028\u571F\u0029"; + t["\u3230"] = "\u0028\u65E5\u0029"; + t["\u3231"] = "\u0028\u682A\u0029"; + t["\u3232"] = "\u0028\u6709\u0029"; + t["\u3233"] = "\u0028\u793E\u0029"; + t["\u3234"] = "\u0028\u540D\u0029"; + t["\u3235"] = "\u0028\u7279\u0029"; + t["\u3236"] = "\u0028\u8CA1\u0029"; + t["\u3237"] = "\u0028\u795D\u0029"; + t["\u3238"] = "\u0028\u52B4\u0029"; + t["\u3239"] = "\u0028\u4EE3\u0029"; + t["\u323A"] = "\u0028\u547C\u0029"; + t["\u323B"] = "\u0028\u5B66\u0029"; + t["\u323C"] = "\u0028\u76E3\u0029"; + t["\u323D"] = "\u0028\u4F01\u0029"; + t["\u323E"] = "\u0028\u8CC7\u0029"; + t["\u323F"] = "\u0028\u5354\u0029"; + t["\u3240"] = "\u0028\u796D\u0029"; + t["\u3241"] = "\u0028\u4F11\u0029"; + t["\u3242"] = "\u0028\u81EA\u0029"; + t["\u3243"] = "\u0028\u81F3\u0029"; + t["\u32C0"] = "\u0031\u6708"; + t["\u32C1"] = "\u0032\u6708"; + t["\u32C2"] = "\u0033\u6708"; + t["\u32C3"] = "\u0034\u6708"; + t["\u32C4"] = "\u0035\u6708"; + t["\u32C5"] = "\u0036\u6708"; + t["\u32C6"] = "\u0037\u6708"; + t["\u32C7"] = "\u0038\u6708"; + t["\u32C8"] = "\u0039\u6708"; + t["\u32C9"] = "\u0031\u0030\u6708"; + t["\u32CA"] = "\u0031\u0031\u6708"; + t["\u32CB"] = "\u0031\u0032\u6708"; + t["\u3358"] = "\u0030\u70B9"; + t["\u3359"] = "\u0031\u70B9"; + t["\u335A"] = "\u0032\u70B9"; + t["\u335B"] = "\u0033\u70B9"; + t["\u335C"] = "\u0034\u70B9"; + t["\u335D"] = "\u0035\u70B9"; + t["\u335E"] = "\u0036\u70B9"; + t["\u335F"] = "\u0037\u70B9"; + t["\u3360"] = "\u0038\u70B9"; + t["\u3361"] = "\u0039\u70B9"; + t["\u3362"] = "\u0031\u0030\u70B9"; + t["\u3363"] = "\u0031\u0031\u70B9"; + t["\u3364"] = "\u0031\u0032\u70B9"; + t["\u3365"] = "\u0031\u0033\u70B9"; + t["\u3366"] = "\u0031\u0034\u70B9"; + t["\u3367"] = "\u0031\u0035\u70B9"; + t["\u3368"] = "\u0031\u0036\u70B9"; + t["\u3369"] = "\u0031\u0037\u70B9"; + t["\u336A"] = "\u0031\u0038\u70B9"; + t["\u336B"] = "\u0031\u0039\u70B9"; + t["\u336C"] = "\u0032\u0030\u70B9"; + t["\u336D"] = "\u0032\u0031\u70B9"; + t["\u336E"] = "\u0032\u0032\u70B9"; + t["\u336F"] = "\u0032\u0033\u70B9"; + t["\u3370"] = "\u0032\u0034\u70B9"; + t["\u33E0"] = "\u0031\u65E5"; + t["\u33E1"] = "\u0032\u65E5"; + t["\u33E2"] = "\u0033\u65E5"; + t["\u33E3"] = "\u0034\u65E5"; + t["\u33E4"] = "\u0035\u65E5"; + t["\u33E5"] = "\u0036\u65E5"; + t["\u33E6"] = "\u0037\u65E5"; + t["\u33E7"] = "\u0038\u65E5"; + t["\u33E8"] = "\u0039\u65E5"; + t["\u33E9"] = "\u0031\u0030\u65E5"; + t["\u33EA"] = "\u0031\u0031\u65E5"; + t["\u33EB"] = "\u0031\u0032\u65E5"; + t["\u33EC"] = "\u0031\u0033\u65E5"; + t["\u33ED"] = "\u0031\u0034\u65E5"; + t["\u33EE"] = "\u0031\u0035\u65E5"; + t["\u33EF"] = "\u0031\u0036\u65E5"; + t["\u33F0"] = "\u0031\u0037\u65E5"; + t["\u33F1"] = "\u0031\u0038\u65E5"; + t["\u33F2"] = "\u0031\u0039\u65E5"; + t["\u33F3"] = "\u0032\u0030\u65E5"; + t["\u33F4"] = "\u0032\u0031\u65E5"; + t["\u33F5"] = "\u0032\u0032\u65E5"; + t["\u33F6"] = "\u0032\u0033\u65E5"; + t["\u33F7"] = "\u0032\u0034\u65E5"; + t["\u33F8"] = "\u0032\u0035\u65E5"; + t["\u33F9"] = "\u0032\u0036\u65E5"; + t["\u33FA"] = "\u0032\u0037\u65E5"; + t["\u33FB"] = "\u0032\u0038\u65E5"; + t["\u33FC"] = "\u0032\u0039\u65E5"; + t["\u33FD"] = "\u0033\u0030\u65E5"; + t["\u33FE"] = "\u0033\u0031\u65E5"; + t["\uFB00"] = "\u0066\u0066"; + t["\uFB01"] = "\u0066\u0069"; + t["\uFB02"] = "\u0066\u006C"; + t["\uFB03"] = "\u0066\u0066\u0069"; + t["\uFB04"] = "\u0066\u0066\u006C"; + t["\uFB05"] = "\u017F\u0074"; + t["\uFB06"] = "\u0073\u0074"; + t["\uFB13"] = "\u0574\u0576"; + t["\uFB14"] = "\u0574\u0565"; + t["\uFB15"] = "\u0574\u056B"; + t["\uFB16"] = "\u057E\u0576"; + t["\uFB17"] = "\u0574\u056D"; + t["\uFB4F"] = "\u05D0\u05DC"; + t["\uFB50"] = "\u0671"; + t["\uFB51"] = "\u0671"; + t["\uFB52"] = "\u067B"; + t["\uFB53"] = "\u067B"; + t["\uFB54"] = "\u067B"; + t["\uFB55"] = "\u067B"; + t["\uFB56"] = "\u067E"; + t["\uFB57"] = "\u067E"; + t["\uFB58"] = "\u067E"; + t["\uFB59"] = "\u067E"; + t["\uFB5A"] = "\u0680"; + t["\uFB5B"] = "\u0680"; + t["\uFB5C"] = "\u0680"; + t["\uFB5D"] = "\u0680"; + t["\uFB5E"] = "\u067A"; + t["\uFB5F"] = "\u067A"; + t["\uFB60"] = "\u067A"; + t["\uFB61"] = "\u067A"; + t["\uFB62"] = "\u067F"; + t["\uFB63"] = "\u067F"; + t["\uFB64"] = "\u067F"; + t["\uFB65"] = "\u067F"; + t["\uFB66"] = "\u0679"; + t["\uFB67"] = "\u0679"; + t["\uFB68"] = "\u0679"; + t["\uFB69"] = "\u0679"; + t["\uFB6A"] = "\u06A4"; + t["\uFB6B"] = "\u06A4"; + t["\uFB6C"] = "\u06A4"; + t["\uFB6D"] = "\u06A4"; + t["\uFB6E"] = "\u06A6"; + t["\uFB6F"] = "\u06A6"; + t["\uFB70"] = "\u06A6"; + t["\uFB71"] = "\u06A6"; + t["\uFB72"] = "\u0684"; + t["\uFB73"] = "\u0684"; + t["\uFB74"] = "\u0684"; + t["\uFB75"] = "\u0684"; + t["\uFB76"] = "\u0683"; + t["\uFB77"] = "\u0683"; + t["\uFB78"] = "\u0683"; + t["\uFB79"] = "\u0683"; + t["\uFB7A"] = "\u0686"; + t["\uFB7B"] = "\u0686"; + t["\uFB7C"] = "\u0686"; + t["\uFB7D"] = "\u0686"; + t["\uFB7E"] = "\u0687"; + t["\uFB7F"] = "\u0687"; + t["\uFB80"] = "\u0687"; + t["\uFB81"] = "\u0687"; + t["\uFB82"] = "\u068D"; + t["\uFB83"] = "\u068D"; + t["\uFB84"] = "\u068C"; + t["\uFB85"] = "\u068C"; + t["\uFB86"] = "\u068E"; + t["\uFB87"] = "\u068E"; + t["\uFB88"] = "\u0688"; + t["\uFB89"] = "\u0688"; + t["\uFB8A"] = "\u0698"; + t["\uFB8B"] = "\u0698"; + t["\uFB8C"] = "\u0691"; + t["\uFB8D"] = "\u0691"; + t["\uFB8E"] = "\u06A9"; + t["\uFB8F"] = "\u06A9"; + t["\uFB90"] = "\u06A9"; + t["\uFB91"] = "\u06A9"; + t["\uFB92"] = "\u06AF"; + t["\uFB93"] = "\u06AF"; + t["\uFB94"] = "\u06AF"; + t["\uFB95"] = "\u06AF"; + t["\uFB96"] = "\u06B3"; + t["\uFB97"] = "\u06B3"; + t["\uFB98"] = "\u06B3"; + t["\uFB99"] = "\u06B3"; + t["\uFB9A"] = "\u06B1"; + t["\uFB9B"] = "\u06B1"; + t["\uFB9C"] = "\u06B1"; + t["\uFB9D"] = "\u06B1"; + t["\uFB9E"] = "\u06BA"; + t["\uFB9F"] = "\u06BA"; + t["\uFBA0"] = "\u06BB"; + t["\uFBA1"] = "\u06BB"; + t["\uFBA2"] = "\u06BB"; + t["\uFBA3"] = "\u06BB"; + t["\uFBA4"] = "\u06C0"; + t["\uFBA5"] = "\u06C0"; + t["\uFBA6"] = "\u06C1"; + t["\uFBA7"] = "\u06C1"; + t["\uFBA8"] = "\u06C1"; + t["\uFBA9"] = "\u06C1"; + t["\uFBAA"] = "\u06BE"; + t["\uFBAB"] = "\u06BE"; + t["\uFBAC"] = "\u06BE"; + t["\uFBAD"] = "\u06BE"; + t["\uFBAE"] = "\u06D2"; + t["\uFBAF"] = "\u06D2"; + t["\uFBB0"] = "\u06D3"; + t["\uFBB1"] = "\u06D3"; + t["\uFBD3"] = "\u06AD"; + t["\uFBD4"] = "\u06AD"; + t["\uFBD5"] = "\u06AD"; + t["\uFBD6"] = "\u06AD"; + t["\uFBD7"] = "\u06C7"; + t["\uFBD8"] = "\u06C7"; + t["\uFBD9"] = "\u06C6"; + t["\uFBDA"] = "\u06C6"; + t["\uFBDB"] = "\u06C8"; + t["\uFBDC"] = "\u06C8"; + t["\uFBDD"] = "\u0677"; + t["\uFBDE"] = "\u06CB"; + t["\uFBDF"] = "\u06CB"; + t["\uFBE0"] = "\u06C5"; + t["\uFBE1"] = "\u06C5"; + t["\uFBE2"] = "\u06C9"; + t["\uFBE3"] = "\u06C9"; + t["\uFBE4"] = "\u06D0"; + t["\uFBE5"] = "\u06D0"; + t["\uFBE6"] = "\u06D0"; + t["\uFBE7"] = "\u06D0"; + t["\uFBE8"] = "\u0649"; + t["\uFBE9"] = "\u0649"; + t["\uFBEA"] = "\u0626\u0627"; + t["\uFBEB"] = "\u0626\u0627"; + t["\uFBEC"] = "\u0626\u06D5"; + t["\uFBED"] = "\u0626\u06D5"; + t["\uFBEE"] = "\u0626\u0648"; + t["\uFBEF"] = "\u0626\u0648"; + t["\uFBF0"] = "\u0626\u06C7"; + t["\uFBF1"] = "\u0626\u06C7"; + t["\uFBF2"] = "\u0626\u06C6"; + t["\uFBF3"] = "\u0626\u06C6"; + t["\uFBF4"] = "\u0626\u06C8"; + t["\uFBF5"] = "\u0626\u06C8"; + t["\uFBF6"] = "\u0626\u06D0"; + t["\uFBF7"] = "\u0626\u06D0"; + t["\uFBF8"] = "\u0626\u06D0"; + t["\uFBF9"] = "\u0626\u0649"; + t["\uFBFA"] = "\u0626\u0649"; + t["\uFBFB"] = "\u0626\u0649"; + t["\uFBFC"] = "\u06CC"; + t["\uFBFD"] = "\u06CC"; + t["\uFBFE"] = "\u06CC"; + t["\uFBFF"] = "\u06CC"; + t["\uFC00"] = "\u0626\u062C"; + t["\uFC01"] = "\u0626\u062D"; + t["\uFC02"] = "\u0626\u0645"; + t["\uFC03"] = "\u0626\u0649"; + t["\uFC04"] = "\u0626\u064A"; + t["\uFC05"] = "\u0628\u062C"; + t["\uFC06"] = "\u0628\u062D"; + t["\uFC07"] = "\u0628\u062E"; + t["\uFC08"] = "\u0628\u0645"; + t["\uFC09"] = "\u0628\u0649"; + t["\uFC0A"] = "\u0628\u064A"; + t["\uFC0B"] = "\u062A\u062C"; + t["\uFC0C"] = "\u062A\u062D"; + t["\uFC0D"] = "\u062A\u062E"; + t["\uFC0E"] = "\u062A\u0645"; + t["\uFC0F"] = "\u062A\u0649"; + t["\uFC10"] = "\u062A\u064A"; + t["\uFC11"] = "\u062B\u062C"; + t["\uFC12"] = "\u062B\u0645"; + t["\uFC13"] = "\u062B\u0649"; + t["\uFC14"] = "\u062B\u064A"; + t["\uFC15"] = "\u062C\u062D"; + t["\uFC16"] = "\u062C\u0645"; + t["\uFC17"] = "\u062D\u062C"; + t["\uFC18"] = "\u062D\u0645"; + t["\uFC19"] = "\u062E\u062C"; + t["\uFC1A"] = "\u062E\u062D"; + t["\uFC1B"] = "\u062E\u0645"; + t["\uFC1C"] = "\u0633\u062C"; + t["\uFC1D"] = "\u0633\u062D"; + t["\uFC1E"] = "\u0633\u062E"; + t["\uFC1F"] = "\u0633\u0645"; + t["\uFC20"] = "\u0635\u062D"; + t["\uFC21"] = "\u0635\u0645"; + t["\uFC22"] = "\u0636\u062C"; + t["\uFC23"] = "\u0636\u062D"; + t["\uFC24"] = "\u0636\u062E"; + t["\uFC25"] = "\u0636\u0645"; + t["\uFC26"] = "\u0637\u062D"; + t["\uFC27"] = "\u0637\u0645"; + t["\uFC28"] = "\u0638\u0645"; + t["\uFC29"] = "\u0639\u062C"; + t["\uFC2A"] = "\u0639\u0645"; + t["\uFC2B"] = "\u063A\u062C"; + t["\uFC2C"] = "\u063A\u0645"; + t["\uFC2D"] = "\u0641\u062C"; + t["\uFC2E"] = "\u0641\u062D"; + t["\uFC2F"] = "\u0641\u062E"; + t["\uFC30"] = "\u0641\u0645"; + t["\uFC31"] = "\u0641\u0649"; + t["\uFC32"] = "\u0641\u064A"; + t["\uFC33"] = "\u0642\u062D"; + t["\uFC34"] = "\u0642\u0645"; + t["\uFC35"] = "\u0642\u0649"; + t["\uFC36"] = "\u0642\u064A"; + t["\uFC37"] = "\u0643\u0627"; + t["\uFC38"] = "\u0643\u062C"; + t["\uFC39"] = "\u0643\u062D"; + t["\uFC3A"] = "\u0643\u062E"; + t["\uFC3B"] = "\u0643\u0644"; + t["\uFC3C"] = "\u0643\u0645"; + t["\uFC3D"] = "\u0643\u0649"; + t["\uFC3E"] = "\u0643\u064A"; + t["\uFC3F"] = "\u0644\u062C"; + t["\uFC40"] = "\u0644\u062D"; + t["\uFC41"] = "\u0644\u062E"; + t["\uFC42"] = "\u0644\u0645"; + t["\uFC43"] = "\u0644\u0649"; + t["\uFC44"] = "\u0644\u064A"; + t["\uFC45"] = "\u0645\u062C"; + t["\uFC46"] = "\u0645\u062D"; + t["\uFC47"] = "\u0645\u062E"; + t["\uFC48"] = "\u0645\u0645"; + t["\uFC49"] = "\u0645\u0649"; + t["\uFC4A"] = "\u0645\u064A"; + t["\uFC4B"] = "\u0646\u062C"; + t["\uFC4C"] = "\u0646\u062D"; + t["\uFC4D"] = "\u0646\u062E"; + t["\uFC4E"] = "\u0646\u0645"; + t["\uFC4F"] = "\u0646\u0649"; + t["\uFC50"] = "\u0646\u064A"; + t["\uFC51"] = "\u0647\u062C"; + t["\uFC52"] = "\u0647\u0645"; + t["\uFC53"] = "\u0647\u0649"; + t["\uFC54"] = "\u0647\u064A"; + t["\uFC55"] = "\u064A\u062C"; + t["\uFC56"] = "\u064A\u062D"; + t["\uFC57"] = "\u064A\u062E"; + t["\uFC58"] = "\u064A\u0645"; + t["\uFC59"] = "\u064A\u0649"; + t["\uFC5A"] = "\u064A\u064A"; + t["\uFC5B"] = "\u0630\u0670"; + t["\uFC5C"] = "\u0631\u0670"; + t["\uFC5D"] = "\u0649\u0670"; + t["\uFC5E"] = "\u0020\u064C\u0651"; + t["\uFC5F"] = "\u0020\u064D\u0651"; + t["\uFC60"] = "\u0020\u064E\u0651"; + t["\uFC61"] = "\u0020\u064F\u0651"; + t["\uFC62"] = "\u0020\u0650\u0651"; + t["\uFC63"] = "\u0020\u0651\u0670"; + t["\uFC64"] = "\u0626\u0631"; + t["\uFC65"] = "\u0626\u0632"; + t["\uFC66"] = "\u0626\u0645"; + t["\uFC67"] = "\u0626\u0646"; + t["\uFC68"] = "\u0626\u0649"; + t["\uFC69"] = "\u0626\u064A"; + t["\uFC6A"] = "\u0628\u0631"; + t["\uFC6B"] = "\u0628\u0632"; + t["\uFC6C"] = "\u0628\u0645"; + t["\uFC6D"] = "\u0628\u0646"; + t["\uFC6E"] = "\u0628\u0649"; + t["\uFC6F"] = "\u0628\u064A"; + t["\uFC70"] = "\u062A\u0631"; + t["\uFC71"] = "\u062A\u0632"; + t["\uFC72"] = "\u062A\u0645"; + t["\uFC73"] = "\u062A\u0646"; + t["\uFC74"] = "\u062A\u0649"; + t["\uFC75"] = "\u062A\u064A"; + t["\uFC76"] = "\u062B\u0631"; + t["\uFC77"] = "\u062B\u0632"; + t["\uFC78"] = "\u062B\u0645"; + t["\uFC79"] = "\u062B\u0646"; + t["\uFC7A"] = "\u062B\u0649"; + t["\uFC7B"] = "\u062B\u064A"; + t["\uFC7C"] = "\u0641\u0649"; + t["\uFC7D"] = "\u0641\u064A"; + t["\uFC7E"] = "\u0642\u0649"; + t["\uFC7F"] = "\u0642\u064A"; + t["\uFC80"] = "\u0643\u0627"; + t["\uFC81"] = "\u0643\u0644"; + t["\uFC82"] = "\u0643\u0645"; + t["\uFC83"] = "\u0643\u0649"; + t["\uFC84"] = "\u0643\u064A"; + t["\uFC85"] = "\u0644\u0645"; + t["\uFC86"] = "\u0644\u0649"; + t["\uFC87"] = "\u0644\u064A"; + t["\uFC88"] = "\u0645\u0627"; + t["\uFC89"] = "\u0645\u0645"; + t["\uFC8A"] = "\u0646\u0631"; + t["\uFC8B"] = "\u0646\u0632"; + t["\uFC8C"] = "\u0646\u0645"; + t["\uFC8D"] = "\u0646\u0646"; + t["\uFC8E"] = "\u0646\u0649"; + t["\uFC8F"] = "\u0646\u064A"; + t["\uFC90"] = "\u0649\u0670"; + t["\uFC91"] = "\u064A\u0631"; + t["\uFC92"] = "\u064A\u0632"; + t["\uFC93"] = "\u064A\u0645"; + t["\uFC94"] = "\u064A\u0646"; + t["\uFC95"] = "\u064A\u0649"; + t["\uFC96"] = "\u064A\u064A"; + t["\uFC97"] = "\u0626\u062C"; + t["\uFC98"] = "\u0626\u062D"; + t["\uFC99"] = "\u0626\u062E"; + t["\uFC9A"] = "\u0626\u0645"; + t["\uFC9B"] = "\u0626\u0647"; + t["\uFC9C"] = "\u0628\u062C"; + t["\uFC9D"] = "\u0628\u062D"; + t["\uFC9E"] = "\u0628\u062E"; + t["\uFC9F"] = "\u0628\u0645"; + t["\uFCA0"] = "\u0628\u0647"; + t["\uFCA1"] = "\u062A\u062C"; + t["\uFCA2"] = "\u062A\u062D"; + t["\uFCA3"] = "\u062A\u062E"; + t["\uFCA4"] = "\u062A\u0645"; + t["\uFCA5"] = "\u062A\u0647"; + t["\uFCA6"] = "\u062B\u0645"; + t["\uFCA7"] = "\u062C\u062D"; + t["\uFCA8"] = "\u062C\u0645"; + t["\uFCA9"] = "\u062D\u062C"; + t["\uFCAA"] = "\u062D\u0645"; + t["\uFCAB"] = "\u062E\u062C"; + t["\uFCAC"] = "\u062E\u0645"; + t["\uFCAD"] = "\u0633\u062C"; + t["\uFCAE"] = "\u0633\u062D"; + t["\uFCAF"] = "\u0633\u062E"; + t["\uFCB0"] = "\u0633\u0645"; + t["\uFCB1"] = "\u0635\u062D"; + t["\uFCB2"] = "\u0635\u062E"; + t["\uFCB3"] = "\u0635\u0645"; + t["\uFCB4"] = "\u0636\u062C"; + t["\uFCB5"] = "\u0636\u062D"; + t["\uFCB6"] = "\u0636\u062E"; + t["\uFCB7"] = "\u0636\u0645"; + t["\uFCB8"] = "\u0637\u062D"; + t["\uFCB9"] = "\u0638\u0645"; + t["\uFCBA"] = "\u0639\u062C"; + t["\uFCBB"] = "\u0639\u0645"; + t["\uFCBC"] = "\u063A\u062C"; + t["\uFCBD"] = "\u063A\u0645"; + t["\uFCBE"] = "\u0641\u062C"; + t["\uFCBF"] = "\u0641\u062D"; + t["\uFCC0"] = "\u0641\u062E"; + t["\uFCC1"] = "\u0641\u0645"; + t["\uFCC2"] = "\u0642\u062D"; + t["\uFCC3"] = "\u0642\u0645"; + t["\uFCC4"] = "\u0643\u062C"; + t["\uFCC5"] = "\u0643\u062D"; + t["\uFCC6"] = "\u0643\u062E"; + t["\uFCC7"] = "\u0643\u0644"; + t["\uFCC8"] = "\u0643\u0645"; + t["\uFCC9"] = "\u0644\u062C"; + t["\uFCCA"] = "\u0644\u062D"; + t["\uFCCB"] = "\u0644\u062E"; + t["\uFCCC"] = "\u0644\u0645"; + t["\uFCCD"] = "\u0644\u0647"; + t["\uFCCE"] = "\u0645\u062C"; + t["\uFCCF"] = "\u0645\u062D"; + t["\uFCD0"] = "\u0645\u062E"; + t["\uFCD1"] = "\u0645\u0645"; + t["\uFCD2"] = "\u0646\u062C"; + t["\uFCD3"] = "\u0646\u062D"; + t["\uFCD4"] = "\u0646\u062E"; + t["\uFCD5"] = "\u0646\u0645"; + t["\uFCD6"] = "\u0646\u0647"; + t["\uFCD7"] = "\u0647\u062C"; + t["\uFCD8"] = "\u0647\u0645"; + t["\uFCD9"] = "\u0647\u0670"; + t["\uFCDA"] = "\u064A\u062C"; + t["\uFCDB"] = "\u064A\u062D"; + t["\uFCDC"] = "\u064A\u062E"; + t["\uFCDD"] = "\u064A\u0645"; + t["\uFCDE"] = "\u064A\u0647"; + t["\uFCDF"] = "\u0626\u0645"; + t["\uFCE0"] = "\u0626\u0647"; + t["\uFCE1"] = "\u0628\u0645"; + t["\uFCE2"] = "\u0628\u0647"; + t["\uFCE3"] = "\u062A\u0645"; + t["\uFCE4"] = "\u062A\u0647"; + t["\uFCE5"] = "\u062B\u0645"; + t["\uFCE6"] = "\u062B\u0647"; + t["\uFCE7"] = "\u0633\u0645"; + t["\uFCE8"] = "\u0633\u0647"; + t["\uFCE9"] = "\u0634\u0645"; + t["\uFCEA"] = "\u0634\u0647"; + t["\uFCEB"] = "\u0643\u0644"; + t["\uFCEC"] = "\u0643\u0645"; + t["\uFCED"] = "\u0644\u0645"; + t["\uFCEE"] = "\u0646\u0645"; + t["\uFCEF"] = "\u0646\u0647"; + t["\uFCF0"] = "\u064A\u0645"; + t["\uFCF1"] = "\u064A\u0647"; + t["\uFCF2"] = "\u0640\u064E\u0651"; + t["\uFCF3"] = "\u0640\u064F\u0651"; + t["\uFCF4"] = "\u0640\u0650\u0651"; + t["\uFCF5"] = "\u0637\u0649"; + t["\uFCF6"] = "\u0637\u064A"; + t["\uFCF7"] = "\u0639\u0649"; + t["\uFCF8"] = "\u0639\u064A"; + t["\uFCF9"] = "\u063A\u0649"; + t["\uFCFA"] = "\u063A\u064A"; + t["\uFCFB"] = "\u0633\u0649"; + t["\uFCFC"] = "\u0633\u064A"; + t["\uFCFD"] = "\u0634\u0649"; + t["\uFCFE"] = "\u0634\u064A"; + t["\uFCFF"] = "\u062D\u0649"; + t["\uFD00"] = "\u062D\u064A"; + t["\uFD01"] = "\u062C\u0649"; + t["\uFD02"] = "\u062C\u064A"; + t["\uFD03"] = "\u062E\u0649"; + t["\uFD04"] = "\u062E\u064A"; + t["\uFD05"] = "\u0635\u0649"; + t["\uFD06"] = "\u0635\u064A"; + t["\uFD07"] = "\u0636\u0649"; + t["\uFD08"] = "\u0636\u064A"; + t["\uFD09"] = "\u0634\u062C"; + t["\uFD0A"] = "\u0634\u062D"; + t["\uFD0B"] = "\u0634\u062E"; + t["\uFD0C"] = "\u0634\u0645"; + t["\uFD0D"] = "\u0634\u0631"; + t["\uFD0E"] = "\u0633\u0631"; + t["\uFD0F"] = "\u0635\u0631"; + t["\uFD10"] = "\u0636\u0631"; + t["\uFD11"] = "\u0637\u0649"; + t["\uFD12"] = "\u0637\u064A"; + t["\uFD13"] = "\u0639\u0649"; + t["\uFD14"] = "\u0639\u064A"; + t["\uFD15"] = "\u063A\u0649"; + t["\uFD16"] = "\u063A\u064A"; + t["\uFD17"] = "\u0633\u0649"; + t["\uFD18"] = "\u0633\u064A"; + t["\uFD19"] = "\u0634\u0649"; + t["\uFD1A"] = "\u0634\u064A"; + t["\uFD1B"] = "\u062D\u0649"; + t["\uFD1C"] = "\u062D\u064A"; + t["\uFD1D"] = "\u062C\u0649"; + t["\uFD1E"] = "\u062C\u064A"; + t["\uFD1F"] = "\u062E\u0649"; + t["\uFD20"] = "\u062E\u064A"; + t["\uFD21"] = "\u0635\u0649"; + t["\uFD22"] = "\u0635\u064A"; + t["\uFD23"] = "\u0636\u0649"; + t["\uFD24"] = "\u0636\u064A"; + t["\uFD25"] = "\u0634\u062C"; + t["\uFD26"] = "\u0634\u062D"; + t["\uFD27"] = "\u0634\u062E"; + t["\uFD28"] = "\u0634\u0645"; + t["\uFD29"] = "\u0634\u0631"; + t["\uFD2A"] = "\u0633\u0631"; + t["\uFD2B"] = "\u0635\u0631"; + t["\uFD2C"] = "\u0636\u0631"; + t["\uFD2D"] = "\u0634\u062C"; + t["\uFD2E"] = "\u0634\u062D"; + t["\uFD2F"] = "\u0634\u062E"; + t["\uFD30"] = "\u0634\u0645"; + t["\uFD31"] = "\u0633\u0647"; + t["\uFD32"] = "\u0634\u0647"; + t["\uFD33"] = "\u0637\u0645"; + t["\uFD34"] = "\u0633\u062C"; + t["\uFD35"] = "\u0633\u062D"; + t["\uFD36"] = "\u0633\u062E"; + t["\uFD37"] = "\u0634\u062C"; + t["\uFD38"] = "\u0634\u062D"; + t["\uFD39"] = "\u0634\u062E"; + t["\uFD3A"] = "\u0637\u0645"; + t["\uFD3B"] = "\u0638\u0645"; + t["\uFD3C"] = "\u0627\u064B"; + t["\uFD3D"] = "\u0627\u064B"; + t["\uFD50"] = "\u062A\u062C\u0645"; + t["\uFD51"] = "\u062A\u062D\u062C"; + t["\uFD52"] = "\u062A\u062D\u062C"; + t["\uFD53"] = "\u062A\u062D\u0645"; + t["\uFD54"] = "\u062A\u062E\u0645"; + t["\uFD55"] = "\u062A\u0645\u062C"; + t["\uFD56"] = "\u062A\u0645\u062D"; + t["\uFD57"] = "\u062A\u0645\u062E"; + t["\uFD58"] = "\u062C\u0645\u062D"; + t["\uFD59"] = "\u062C\u0645\u062D"; + t["\uFD5A"] = "\u062D\u0645\u064A"; + t["\uFD5B"] = "\u062D\u0645\u0649"; + t["\uFD5C"] = "\u0633\u062D\u062C"; + t["\uFD5D"] = "\u0633\u062C\u062D"; + t["\uFD5E"] = "\u0633\u062C\u0649"; + t["\uFD5F"] = "\u0633\u0645\u062D"; + t["\uFD60"] = "\u0633\u0645\u062D"; + t["\uFD61"] = "\u0633\u0645\u062C"; + t["\uFD62"] = "\u0633\u0645\u0645"; + t["\uFD63"] = "\u0633\u0645\u0645"; + t["\uFD64"] = "\u0635\u062D\u062D"; + t["\uFD65"] = "\u0635\u062D\u062D"; + t["\uFD66"] = "\u0635\u0645\u0645"; + t["\uFD67"] = "\u0634\u062D\u0645"; + t["\uFD68"] = "\u0634\u062D\u0645"; + t["\uFD69"] = "\u0634\u062C\u064A"; + t["\uFD6A"] = "\u0634\u0645\u062E"; + t["\uFD6B"] = "\u0634\u0645\u062E"; + t["\uFD6C"] = "\u0634\u0645\u0645"; + t["\uFD6D"] = "\u0634\u0645\u0645"; + t["\uFD6E"] = "\u0636\u062D\u0649"; + t["\uFD6F"] = "\u0636\u062E\u0645"; + t["\uFD70"] = "\u0636\u062E\u0645"; + t["\uFD71"] = "\u0637\u0645\u062D"; + t["\uFD72"] = "\u0637\u0645\u062D"; + t["\uFD73"] = "\u0637\u0645\u0645"; + t["\uFD74"] = "\u0637\u0645\u064A"; + t["\uFD75"] = "\u0639\u062C\u0645"; + t["\uFD76"] = "\u0639\u0645\u0645"; + t["\uFD77"] = "\u0639\u0645\u0645"; + t["\uFD78"] = "\u0639\u0645\u0649"; + t["\uFD79"] = "\u063A\u0645\u0645"; + t["\uFD7A"] = "\u063A\u0645\u064A"; + t["\uFD7B"] = "\u063A\u0645\u0649"; + t["\uFD7C"] = "\u0641\u062E\u0645"; + t["\uFD7D"] = "\u0641\u062E\u0645"; + t["\uFD7E"] = "\u0642\u0645\u062D"; + t["\uFD7F"] = "\u0642\u0645\u0645"; + t["\uFD80"] = "\u0644\u062D\u0645"; + t["\uFD81"] = "\u0644\u062D\u064A"; + t["\uFD82"] = "\u0644\u062D\u0649"; + t["\uFD83"] = "\u0644\u062C\u062C"; + t["\uFD84"] = "\u0644\u062C\u062C"; + t["\uFD85"] = "\u0644\u062E\u0645"; + t["\uFD86"] = "\u0644\u062E\u0645"; + t["\uFD87"] = "\u0644\u0645\u062D"; + t["\uFD88"] = "\u0644\u0645\u062D"; + t["\uFD89"] = "\u0645\u062D\u062C"; + t["\uFD8A"] = "\u0645\u062D\u0645"; + t["\uFD8B"] = "\u0645\u062D\u064A"; + t["\uFD8C"] = "\u0645\u062C\u062D"; + t["\uFD8D"] = "\u0645\u062C\u0645"; + t["\uFD8E"] = "\u0645\u062E\u062C"; + t["\uFD8F"] = "\u0645\u062E\u0645"; + t["\uFD92"] = "\u0645\u062C\u062E"; + t["\uFD93"] = "\u0647\u0645\u062C"; + t["\uFD94"] = "\u0647\u0645\u0645"; + t["\uFD95"] = "\u0646\u062D\u0645"; + t["\uFD96"] = "\u0646\u062D\u0649"; + t["\uFD97"] = "\u0646\u062C\u0645"; + t["\uFD98"] = "\u0646\u062C\u0645"; + t["\uFD99"] = "\u0646\u062C\u0649"; + t["\uFD9A"] = "\u0646\u0645\u064A"; + t["\uFD9B"] = "\u0646\u0645\u0649"; + t["\uFD9C"] = "\u064A\u0645\u0645"; + t["\uFD9D"] = "\u064A\u0645\u0645"; + t["\uFD9E"] = "\u0628\u062E\u064A"; + t["\uFD9F"] = "\u062A\u062C\u064A"; + t["\uFDA0"] = "\u062A\u062C\u0649"; + t["\uFDA1"] = "\u062A\u062E\u064A"; + t["\uFDA2"] = "\u062A\u062E\u0649"; + t["\uFDA3"] = "\u062A\u0645\u064A"; + t["\uFDA4"] = "\u062A\u0645\u0649"; + t["\uFDA5"] = "\u062C\u0645\u064A"; + t["\uFDA6"] = "\u062C\u062D\u0649"; + t["\uFDA7"] = "\u062C\u0645\u0649"; + t["\uFDA8"] = "\u0633\u062E\u0649"; + t["\uFDA9"] = "\u0635\u062D\u064A"; + t["\uFDAA"] = "\u0634\u062D\u064A"; + t["\uFDAB"] = "\u0636\u062D\u064A"; + t["\uFDAC"] = "\u0644\u062C\u064A"; + t["\uFDAD"] = "\u0644\u0645\u064A"; + t["\uFDAE"] = "\u064A\u062D\u064A"; + t["\uFDAF"] = "\u064A\u062C\u064A"; + t["\uFDB0"] = "\u064A\u0645\u064A"; + t["\uFDB1"] = "\u0645\u0645\u064A"; + t["\uFDB2"] = "\u0642\u0645\u064A"; + t["\uFDB3"] = "\u0646\u062D\u064A"; + t["\uFDB4"] = "\u0642\u0645\u062D"; + t["\uFDB5"] = "\u0644\u062D\u0645"; + t["\uFDB6"] = "\u0639\u0645\u064A"; + t["\uFDB7"] = "\u0643\u0645\u064A"; + t["\uFDB8"] = "\u0646\u062C\u062D"; + t["\uFDB9"] = "\u0645\u062E\u064A"; + t["\uFDBA"] = "\u0644\u062C\u0645"; + t["\uFDBB"] = "\u0643\u0645\u0645"; + t["\uFDBC"] = "\u0644\u062C\u0645"; + t["\uFDBD"] = "\u0646\u062C\u062D"; + t["\uFDBE"] = "\u062C\u062D\u064A"; + t["\uFDBF"] = "\u062D\u062C\u064A"; + t["\uFDC0"] = "\u0645\u062C\u064A"; + t["\uFDC1"] = "\u0641\u0645\u064A"; + t["\uFDC2"] = "\u0628\u062D\u064A"; + t["\uFDC3"] = "\u0643\u0645\u0645"; + t["\uFDC4"] = "\u0639\u062C\u0645"; + t["\uFDC5"] = "\u0635\u0645\u0645"; + t["\uFDC6"] = "\u0633\u062E\u064A"; + t["\uFDC7"] = "\u0646\u062C\u064A"; + t["\uFE49"] = "\u203E"; + t["\uFE4A"] = "\u203E"; + t["\uFE4B"] = "\u203E"; + t["\uFE4C"] = "\u203E"; + t["\uFE4D"] = "\u005F"; + t["\uFE4E"] = "\u005F"; + t["\uFE4F"] = "\u005F"; + t["\uFE80"] = "\u0621"; + t["\uFE81"] = "\u0622"; + t["\uFE82"] = "\u0622"; + t["\uFE83"] = "\u0623"; + t["\uFE84"] = "\u0623"; + t["\uFE85"] = "\u0624"; + t["\uFE86"] = "\u0624"; + t["\uFE87"] = "\u0625"; + t["\uFE88"] = "\u0625"; + t["\uFE89"] = "\u0626"; + t["\uFE8A"] = "\u0626"; + t["\uFE8B"] = "\u0626"; + t["\uFE8C"] = "\u0626"; + t["\uFE8D"] = "\u0627"; + t["\uFE8E"] = "\u0627"; + t["\uFE8F"] = "\u0628"; + t["\uFE90"] = "\u0628"; + t["\uFE91"] = "\u0628"; + t["\uFE92"] = "\u0628"; + t["\uFE93"] = "\u0629"; + t["\uFE94"] = "\u0629"; + t["\uFE95"] = "\u062A"; + t["\uFE96"] = "\u062A"; + t["\uFE97"] = "\u062A"; + t["\uFE98"] = "\u062A"; + t["\uFE99"] = "\u062B"; + t["\uFE9A"] = "\u062B"; + t["\uFE9B"] = "\u062B"; + t["\uFE9C"] = "\u062B"; + t["\uFE9D"] = "\u062C"; + t["\uFE9E"] = "\u062C"; + t["\uFE9F"] = "\u062C"; + t["\uFEA0"] = "\u062C"; + t["\uFEA1"] = "\u062D"; + t["\uFEA2"] = "\u062D"; + t["\uFEA3"] = "\u062D"; + t["\uFEA4"] = "\u062D"; + t["\uFEA5"] = "\u062E"; + t["\uFEA6"] = "\u062E"; + t["\uFEA7"] = "\u062E"; + t["\uFEA8"] = "\u062E"; + t["\uFEA9"] = "\u062F"; + t["\uFEAA"] = "\u062F"; + t["\uFEAB"] = "\u0630"; + t["\uFEAC"] = "\u0630"; + t["\uFEAD"] = "\u0631"; + t["\uFEAE"] = "\u0631"; + t["\uFEAF"] = "\u0632"; + t["\uFEB0"] = "\u0632"; + t["\uFEB1"] = "\u0633"; + t["\uFEB2"] = "\u0633"; + t["\uFEB3"] = "\u0633"; + t["\uFEB4"] = "\u0633"; + t["\uFEB5"] = "\u0634"; + t["\uFEB6"] = "\u0634"; + t["\uFEB7"] = "\u0634"; + t["\uFEB8"] = "\u0634"; + t["\uFEB9"] = "\u0635"; + t["\uFEBA"] = "\u0635"; + t["\uFEBB"] = "\u0635"; + t["\uFEBC"] = "\u0635"; + t["\uFEBD"] = "\u0636"; + t["\uFEBE"] = "\u0636"; + t["\uFEBF"] = "\u0636"; + t["\uFEC0"] = "\u0636"; + t["\uFEC1"] = "\u0637"; + t["\uFEC2"] = "\u0637"; + t["\uFEC3"] = "\u0637"; + t["\uFEC4"] = "\u0637"; + t["\uFEC5"] = "\u0638"; + t["\uFEC6"] = "\u0638"; + t["\uFEC7"] = "\u0638"; + t["\uFEC8"] = "\u0638"; + t["\uFEC9"] = "\u0639"; + t["\uFECA"] = "\u0639"; + t["\uFECB"] = "\u0639"; + t["\uFECC"] = "\u0639"; + t["\uFECD"] = "\u063A"; + t["\uFECE"] = "\u063A"; + t["\uFECF"] = "\u063A"; + t["\uFED0"] = "\u063A"; + t["\uFED1"] = "\u0641"; + t["\uFED2"] = "\u0641"; + t["\uFED3"] = "\u0641"; + t["\uFED4"] = "\u0641"; + t["\uFED5"] = "\u0642"; + t["\uFED6"] = "\u0642"; + t["\uFED7"] = "\u0642"; + t["\uFED8"] = "\u0642"; + t["\uFED9"] = "\u0643"; + t["\uFEDA"] = "\u0643"; + t["\uFEDB"] = "\u0643"; + t["\uFEDC"] = "\u0643"; + t["\uFEDD"] = "\u0644"; + t["\uFEDE"] = "\u0644"; + t["\uFEDF"] = "\u0644"; + t["\uFEE0"] = "\u0644"; + t["\uFEE1"] = "\u0645"; + t["\uFEE2"] = "\u0645"; + t["\uFEE3"] = "\u0645"; + t["\uFEE4"] = "\u0645"; + t["\uFEE5"] = "\u0646"; + t["\uFEE6"] = "\u0646"; + t["\uFEE7"] = "\u0646"; + t["\uFEE8"] = "\u0646"; + t["\uFEE9"] = "\u0647"; + t["\uFEEA"] = "\u0647"; + t["\uFEEB"] = "\u0647"; + t["\uFEEC"] = "\u0647"; + t["\uFEED"] = "\u0648"; + t["\uFEEE"] = "\u0648"; + t["\uFEEF"] = "\u0649"; + t["\uFEF0"] = "\u0649"; + t["\uFEF1"] = "\u064A"; + t["\uFEF2"] = "\u064A"; + t["\uFEF3"] = "\u064A"; + t["\uFEF4"] = "\u064A"; + t["\uFEF5"] = "\u0644\u0622"; + t["\uFEF6"] = "\u0644\u0622"; + t["\uFEF7"] = "\u0644\u0623"; + t["\uFEF8"] = "\u0644\u0623"; + t["\uFEF9"] = "\u0644\u0625"; + t["\uFEFA"] = "\u0644\u0625"; + t["\uFEFB"] = "\u0644\u0627"; + t["\uFEFC"] = "\u0644\u0627"; }); function reverseIfRtl(chars) { var charsLength = chars.length; if (charsLength <= 1 || !isRTLRangeFor(chars.charCodeAt(0))) { return chars; } - var s = ''; + var s = ""; for (var ii = charsLength - 1; ii >= 0; ii--) { s += chars[ii]; } @@ -36400,7 +36416,7 @@ exports.getNormalizedUnicodes = getNormalizedUnicodes; exports.getUnicodeForGlyph = getUnicodeForGlyph; /***/ }), -/* 35 */ +/* 34 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -36413,13 +36429,13 @@ exports.FontRendererFactory = void 0; var _util = __w_pdfjs_require__(2); -var _cff_parser = __w_pdfjs_require__(29); +var _cff_parser = __w_pdfjs_require__(28); -var _glyphlist = __w_pdfjs_require__(32); +var _glyphlist = __w_pdfjs_require__(31); -var _encodings = __w_pdfjs_require__(31); +var _encodings = __w_pdfjs_require__(30); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); var FontRendererFactory = function FontRendererFactoryClosure() { function getLong(data, offset) { @@ -36554,7 +36570,7 @@ var FontRendererFactory = function FontRendererFactoryClosure() { } if (ranges[l].start <= code && code <= ranges[l].end) { - gid = ranges[l].idDelta + (ranges[l].ids ? ranges[l].ids[code - ranges[l].start] : code) & 0xFFFF; + gid = ranges[l].idDelta + (ranges[l].ids ? ranges[l].ids[code - ranges[l].start] : code) & 0xffff; } return { @@ -36566,21 +36582,21 @@ var FontRendererFactory = function FontRendererFactoryClosure() { function compileGlyf(code, cmds, font) { function moveTo(x, y) { cmds.push({ - cmd: 'moveTo', + cmd: "moveTo", args: [x, y] }); } function lineTo(x, y) { cmds.push({ - cmd: 'lineTo', + cmd: "lineTo", args: [x, y] }); } function quadraticCurveTo(xa, ya, x, y) { cmds.push({ - cmd: 'quadraticCurveTo', + cmd: "quadraticCurveTo", args: [xa, ya, x, y] }); } @@ -36640,15 +36656,15 @@ var FontRendererFactory = function FontRendererFactoryClosure() { if (subglyph) { cmds.push({ - cmd: 'save' + cmd: "save" }); cmds.push({ - cmd: 'transform', + cmd: "transform", args: [scaleX, scale01, scale10, scaleY, x, y] }); compileGlyf(subglyph, cmds, font); cmds.push({ - cmd: 'restore' + cmd: "restore" }); } } while (flags & 0x20); @@ -36765,21 +36781,21 @@ var FontRendererFactory = function FontRendererFactoryClosure() { function moveTo(x, y) { cmds.push({ - cmd: 'moveTo', + cmd: "moveTo", args: [x, y] }); } function lineTo(x, y) { cmds.push({ - cmd: 'lineTo', + cmd: "lineTo", args: [x, y] }); } function bezierCurveTo(x1, y1, x2, y2, x, y) { cmds.push({ - cmd: 'bezierCurveTo', + cmd: "bezierCurveTo", args: [x1, y1, x2, y2, x, y] }); } @@ -36882,7 +36898,7 @@ var FontRendererFactory = function FontRendererFactoryClosure() { subrCode = subrs[n]; } } else { - (0, _util.warn)('Invalid fd index for glyph index.'); + (0, _util.warn)("Invalid fd index for glyph index."); } } else { subrCode = font.subrs[n + font.subrsBias]; @@ -36984,16 +37000,16 @@ var FontRendererFactory = function FontRendererFactoryClosure() { y = stack.pop(); x = stack.pop(); cmds.push({ - cmd: 'save' + cmd: "save" }); cmds.push({ - cmd: 'translate', + cmd: "translate", args: [x, y] }); var cmap = lookupCmap(font.cmap, String.fromCharCode(font.glyphNameMap[_encodings.StandardEncoding[achar]])); compileCharString(font.glyphs[cmap.glyphId], cmds, font, cmap.glyphId); cmds.push({ - cmd: 'restore' + cmd: "restore" }); cmap = lookupCmap(font.cmap, String.fromCharCode(font.glyphNameMap[_encodings.StandardEncoding[bchar]])); compileCharString(font.glyphs[cmap.glyphId], cmds, font, cmap.glyphId); @@ -37200,7 +37216,7 @@ var FontRendererFactory = function FontRendererFactoryClosure() { class CompiledFont { constructor(fontMatrix) { if (this.constructor === CompiledFont) { - (0, _util.unreachable)('Cannot initialize CompiledFont.'); + (0, _util.unreachable)("Cannot initialize CompiledFont."); } this.fontMatrix = fontMatrix; @@ -37236,33 +37252,33 @@ var FontRendererFactory = function FontRendererFactoryClosure() { if (fdIndex >= 0 && fdIndex < this.fdArray.length) { let fontDict = this.fdArray[fdIndex]; - fontMatrix = fontDict.getByName('FontMatrix') || _util.FONT_IDENTITY_MATRIX; + fontMatrix = fontDict.getByName("FontMatrix") || _util.FONT_IDENTITY_MATRIX; } else { - (0, _util.warn)('Invalid fd index for glyph index.'); + (0, _util.warn)("Invalid fd index for glyph index."); } } const cmds = []; cmds.push({ - cmd: 'save' + cmd: "save" }); cmds.push({ - cmd: 'transform', + cmd: "transform", args: fontMatrix.slice() }); cmds.push({ - cmd: 'scale', - args: ['size', '-size'] + cmd: "scale", + args: ["size", "-size"] }); this.compileGlyphImpl(code, cmds, glyphId); cmds.push({ - cmd: 'restore' + cmd: "restore" }); return cmds; } compileGlyphImpl() { - (0, _util.unreachable)('Children classes should implement this.'); + (0, _util.unreachable)("Children classes should implement this."); } hasBuiltPath(unicode) { @@ -37318,24 +37334,24 @@ var FontRendererFactory = function FontRendererFactoryClosure() { var length = getLong(data, p + 12); switch (tag) { - case 'cmap': + case "cmap": cmap = parseCmap(data, offset, offset + length); break; - case 'glyf': + case "glyf": glyf = data.subarray(offset, offset + length); break; - case 'loca': + case "loca": loca = data.subarray(offset, offset + length); break; - case 'head': + case "head": unitsPerEm = getUshort(data, offset + 18); indexToLocFormat = getUshort(data, offset + 50); break; - case 'CFF ': + case "CFF ": cff = parseCff(data, offset, offset + length, seacAnalysisEnabled); break; } @@ -37354,7 +37370,7 @@ var FontRendererFactory = function FontRendererFactoryClosure() { exports.FontRendererFactory = FontRendererFactory; /***/ }), -/* 36 */ +/* 35 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -37367,29 +37383,29 @@ exports.Type1Parser = void 0; var _util = __w_pdfjs_require__(2); -var _encodings = __w_pdfjs_require__(31); +var _encodings = __w_pdfjs_require__(30); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); var HINTING_ENABLED = false; var Type1CharString = function Type1CharStringClosure() { var COMMAND_MAP = { - 'hstem': [1], - 'vstem': [3], - 'vmoveto': [4], - 'rlineto': [5], - 'hlineto': [6], - 'vlineto': [7], - 'rrcurveto': [8], - 'callsubr': [10], - 'flex': [12, 35], - 'drop': [12, 18], - 'endchar': [14], - 'rmoveto': [21], - 'hmoveto': [22], - 'vhcurveto': [30], - 'hvcurveto': [31] + hstem: [1], + vstem: [3], + vmoveto: [4], + rlineto: [5], + hlineto: [6], + vlineto: [7], + rrcurveto: [8], + callsubr: [10], + flex: [12, 35], + drop: [12, 18], + endchar: [14], + rmoveto: [21], + hmoveto: [22], + vhcurveto: [30], + hvcurveto: [31] }; function Type1CharString() { @@ -37659,7 +37675,7 @@ var Type1CharString = function Type1CharStringClosure() { this.output.push(28, value >> 8 & 0xff, value & 0xff); } else { value = 65536 * value | 0; - this.output.push(255, value >> 24 & 0xFF, value >> 16 & 0xFF, value >> 8 & 0xFF, value & 0xFF); + this.output.push(255, value >> 24 & 0xff, value >> 16 & 0xff, value >> 8 & 0xff, value & 0xff); } } @@ -37747,7 +37763,7 @@ var Type1Parser = function Type1ParserClosure() { } function isSpecial(c) { - return c === 0x2F || c === 0x5B || c === 0x5D || c === 0x7B || c === 0x7D || c === 0x28 || c === 0x29; + return c === 0x2f || c === 0x5b || c === 0x5d || c === 0x7b || c === 0x7d || c === 0x28 || c === 0x29; } function Type1Parser(stream, encrypted, seacAnalysisEnabled) { @@ -37770,7 +37786,7 @@ var Type1Parser = function Type1ParserClosure() { while (true) { var token = this.getToken(); - if (token === null || token === ']' || token === '}') { + if (token === null || token === "]" || token === "}") { break; } @@ -37789,7 +37805,7 @@ var Type1Parser = function Type1ParserClosure() { }, readBoolean: function Type1Parser_readBoolean() { var token = this.getToken(); - return token === 'true' ? 1 : 0; + return token === "true" ? 1 : 0; }, nextChar: function Type1_nextChar() { return this.currentChar = this.stream.getByte(); @@ -37804,7 +37820,7 @@ var Type1Parser = function Type1ParserClosure() { } if (comment) { - if (ch === 0x0A || ch === 0x0D) { + if (ch === 0x0a || ch === 0x0d) { comment = false; } } else if (ch === 0x25) { @@ -37821,7 +37837,7 @@ var Type1Parser = function Type1ParserClosure() { return String.fromCharCode(ch); } - var token = ''; + var token = ""; do { token += String.fromCharCode(ch); @@ -37842,25 +37858,25 @@ var Type1Parser = function Type1ParserClosure() { var subrs = [], charstrings = []; var privateData = Object.create(null); - privateData['lenIV'] = 4; + privateData["lenIV"] = 4; var program = { subrs: [], charstrings: [], properties: { - 'privateData': privateData + privateData } }; var token, length, data, lenIV, encoded; while ((token = this.getToken()) !== null) { - if (token !== '/') { + if (token !== "/") { continue; } token = this.getToken(); switch (token) { - case 'CharStrings': + case "CharStrings": this.getToken(); this.getToken(); this.getToken(); @@ -37869,11 +37885,11 @@ var Type1Parser = function Type1ParserClosure() { while (true) { token = this.getToken(); - if (token === null || token === 'end') { + if (token === null || token === "end") { break; } - if (token !== '/') { + if (token !== "/") { continue; } @@ -37881,12 +37897,12 @@ var Type1Parser = function Type1ParserClosure() { length = this.readInt(); this.getToken(); data = length > 0 ? stream.getBytes(length) : new Uint8Array(0); - lenIV = program.properties.privateData['lenIV']; + lenIV = program.properties.privateData["lenIV"]; encoded = this.readCharStrings(data, lenIV); this.nextChar(); token = this.getToken(); - if (token === 'noaccess') { + if (token === "noaccess") { this.getToken(); } @@ -37898,21 +37914,21 @@ var Type1Parser = function Type1ParserClosure() { break; - case 'Subrs': + case "Subrs": this.readInt(); this.getToken(); - while (this.getToken() === 'dup') { + while (this.getToken() === "dup") { var index = this.readInt(); length = this.readInt(); this.getToken(); data = length > 0 ? stream.getBytes(length) : new Uint8Array(0); - lenIV = program.properties.privateData['lenIV']; + lenIV = program.properties.privateData["lenIV"]; encoded = this.readCharStrings(data, lenIV); this.nextChar(); token = this.getToken(); - if (token === 'noaccess') { + if (token === "noaccess") { this.getToken(); } @@ -37921,10 +37937,10 @@ var Type1Parser = function Type1ParserClosure() { break; - case 'BlueValues': - case 'OtherBlues': - case 'FamilyBlues': - case 'FamilyOtherBlues': + case "BlueValues": + case "OtherBlues": + case "FamilyBlues": + case "FamilyOtherBlues": var blueArray = this.readNumberArray(); if (blueArray.length > 0 && blueArray.length % 2 === 0 && HINTING_ENABLED) { @@ -37933,26 +37949,26 @@ var Type1Parser = function Type1ParserClosure() { break; - case 'StemSnapH': - case 'StemSnapV': + case "StemSnapH": + case "StemSnapV": program.properties.privateData[token] = this.readNumberArray(); break; - case 'StdHW': - case 'StdVW': + case "StdHW": + case "StdVW": program.properties.privateData[token] = this.readNumberArray()[0]; break; - case 'BlueShift': - case 'lenIV': - case 'BlueFuzz': - case 'BlueScale': - case 'LanguageGroup': - case 'ExpansionFactor': + case "BlueShift": + case "lenIV": + case "BlueFuzz": + case "BlueScale": + case "LanguageGroup": + case "ExpansionFactor": program.properties.privateData[token] = this.readNumber(); break; - case 'ForceBold': + case "ForceBold": program.properties.privateData[token] = this.readBoolean(); break; } @@ -37992,19 +38008,19 @@ var Type1Parser = function Type1ParserClosure() { var token; while ((token = this.getToken()) !== null) { - if (token !== '/') { + if (token !== "/") { continue; } token = this.getToken(); switch (token) { - case 'FontMatrix': + case "FontMatrix": var matrix = this.readNumberArray(); properties.fontMatrix = matrix; break; - case 'Encoding': + case "Encoding": var encodingArg = this.getToken(); var encoding; @@ -38018,7 +38034,7 @@ var Type1Parser = function Type1ParserClosure() { for (var j = 0; j < size; j++) { token = this.getToken(); - while (token !== 'dup' && token !== 'def') { + while (token !== "dup" && token !== "def") { token = this.getToken(); if (token === null) { @@ -38026,7 +38042,7 @@ var Type1Parser = function Type1ParserClosure() { } } - if (token === 'def') { + if (token === "def") { break; } @@ -38041,7 +38057,7 @@ var Type1Parser = function Type1ParserClosure() { properties.builtInEncoding = encoding; break; - case 'FontBBox': + case "FontBBox": var fontBBox = this.readNumberArray(); properties.ascent = Math.max(fontBBox[3], fontBBox[1]); properties.descent = Math.min(fontBBox[1], fontBBox[3]); @@ -38057,7 +38073,7 @@ var Type1Parser = function Type1ParserClosure() { exports.Type1Parser = Type1Parser; /***/ }), -/* 37 */ +/* 36 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -38071,11 +38087,11 @@ exports.Pattern = void 0; var _util = __w_pdfjs_require__(2); -var _colorspace = __w_pdfjs_require__(23); +var _colorspace = __w_pdfjs_require__(22); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _core_utils = __w_pdfjs_require__(8); +var _core_utils = __w_pdfjs_require__(7); var ShadingType = { FUNCTION_BASED: 1, @@ -38089,7 +38105,7 @@ var ShadingType = { var Pattern = function PatternClosure() { function Pattern() { - (0, _util.unreachable)('should not call Pattern constructor'); + (0, _util.unreachable)("should not call Pattern constructor"); } Pattern.prototype = { @@ -38100,7 +38116,7 @@ var Pattern = function PatternClosure() { Pattern.parseShading = function (shading, matrix, xref, res, handler, pdfFunctionFactory) { var dict = (0, _primitives.isStream)(shading) ? shading.dict : shading; - var type = dict.get('ShadingType'); + var type = dict.get("ShadingType"); try { switch (type) { @@ -38115,14 +38131,14 @@ var Pattern = function PatternClosure() { return new Shadings.Mesh(shading, matrix, xref, res, pdfFunctionFactory); default: - throw new _util.FormatError('Unsupported ShadingType: ' + type); + throw new _util.FormatError("Unsupported ShadingType: " + type); } } catch (ex) { if (ex instanceof _core_utils.MissingDataException) { throw ex; } - handler.send('UnsupportedFeature', { + handler.send("UnsupportedFeature", { featureId: _util.UNSUPPORTED_FEATURES.shadingPattern }); (0, _util.warn)(ex); @@ -38140,13 +38156,13 @@ Shadings.SMALL_NUMBER = 1e-6; Shadings.RadialAxial = function RadialAxialClosure() { function RadialAxial(dict, matrix, xref, res, pdfFunctionFactory) { this.matrix = matrix; - this.coordsArr = dict.getArray('Coords'); - this.shadingType = dict.get('ShadingType'); - this.type = 'Pattern'; - var cs = dict.get('ColorSpace', 'CS'); + this.coordsArr = dict.getArray("Coords"); + this.shadingType = dict.get("ShadingType"); + this.type = "Pattern"; + var cs = dict.get("ColorSpace", "CS"); cs = _colorspace.ColorSpace.parse(cs, xref, res, pdfFunctionFactory); this.cs = cs; - const bbox = dict.getArray('BBox'); + const bbox = dict.getArray("BBox"); if (Array.isArray(bbox) && bbox.length === 4) { this.bbox = _util.Util.normalizeRect(bbox); @@ -38157,8 +38173,8 @@ Shadings.RadialAxial = function RadialAxialClosure() { var t0 = 0.0, t1 = 1.0; - if (dict.has('Domain')) { - var domainArr = dict.getArray('Domain'); + if (dict.has("Domain")) { + var domainArr = dict.getArray("Domain"); t0 = domainArr[0]; t1 = domainArr[1]; } @@ -38166,8 +38182,8 @@ Shadings.RadialAxial = function RadialAxialClosure() { var extendStart = false, extendEnd = false; - if (dict.has('Extend')) { - var extendArr = dict.getArray('Extend'); + if (dict.has("Extend")) { + var extendArr = dict.getArray("Extend"); extendStart = extendArr[0]; extendEnd = extendArr[1]; } @@ -38182,20 +38198,20 @@ Shadings.RadialAxial = function RadialAxialClosure() { var distance = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); if (r1 <= r2 + distance && r2 <= r1 + distance) { - (0, _util.warn)('Unsupported radial gradient.'); + (0, _util.warn)("Unsupported radial gradient."); } } this.extendStart = extendStart; this.extendEnd = extendEnd; - var fnObj = dict.get('Function'); + var fnObj = dict.get("Function"); var fn = pdfFunctionFactory.createFromArray(fnObj); const NUMBER_OF_SAMPLES = 10; const step = (t1 - t0) / NUMBER_OF_SAMPLES; var colorStops = this.colorStops = []; if (t0 >= t1 || step <= 0) { - (0, _util.info)('Bad shading domain.'); + (0, _util.info)("Bad shading domain."); return; } @@ -38213,10 +38229,10 @@ Shadings.RadialAxial = function RadialAxialClosure() { colorStops.push([i / NUMBER_OF_SAMPLES, cssColor]); } - var background = 'transparent'; + var background = "transparent"; - if (dict.has('Background')) { - rgbColor = cs.getRgb(dict.get('Background'), 0); + if (dict.has("Background")) { + rgbColor = cs.getRgb(dict.get("Background"), 0); background = _util.Util.makeCssRgb(rgbColor[0], rgbColor[1], rgbColor[2]); } @@ -38244,13 +38260,13 @@ Shadings.RadialAxial = function RadialAxialClosure() { p1 = [coordsArr[2], coordsArr[3]]; r0 = null; r1 = null; - type = 'axial'; + type = "axial"; } else if (shadingType === ShadingType.RADIAL) { p0 = [coordsArr[0], coordsArr[1]]; p1 = [coordsArr[3], coordsArr[4]]; r0 = coordsArr[2]; r1 = coordsArr[5]; - type = 'radial'; + type = "radial"; } else { (0, _util.unreachable)(`getPattern type unknown: ${shadingType}`); } @@ -38269,7 +38285,7 @@ Shadings.RadialAxial = function RadialAxialClosure() { } } - return ['RadialAxial', type, this.bbox, this.colorStops, p0, p1, r0, r1]; + return ["RadialAxial", type, this.bbox, this.colorStops, p0, p1, r0, r1]; } }; return RadialAxial; @@ -38320,7 +38336,7 @@ Shadings.Mesh = function MeshClosure() { buffer = buffer << 24 | this.stream.getByte() << 16 | this.stream.getByte() << 8 | this.stream.getByte(); var nextByte = this.stream.getByte(); this.buffer = nextByte & (1 << bufferLength) - 1; - return (buffer << 8 - bufferLength | (nextByte & 0xFF) >> bufferLength) >>> 0; + return (buffer << 8 - bufferLength | (nextByte & 0xff) >> bufferLength) >>> 0; } if (n === 8 && bufferLength === 0) { @@ -38388,7 +38404,7 @@ Shadings.Mesh = function MeshClosure() { if (verticesLeft === 0) { if (!(0 <= f && f <= 2)) { - throw new _util.FormatError('Unknown type4 flag'); + throw new _util.FormatError("Unknown type4 flag"); } switch (f) { @@ -38418,7 +38434,7 @@ Shadings.Mesh = function MeshClosure() { } mesh.figures.push({ - type: 'triangles', + type: "triangles", coords: new Int32Array(ps), colors: new Int32Array(ps) }); @@ -38438,7 +38454,7 @@ Shadings.Mesh = function MeshClosure() { } mesh.figures.push({ - type: 'lattice', + type: "lattice", coords: new Int32Array(ps), colors: new Int32Array(ps), verticesPerRow @@ -38474,7 +38490,7 @@ Shadings.Mesh = function MeshClosure() { function buildFigureFromPatch(mesh, index) { var figure = mesh.figures[index]; - (0, _util.assert)(figure.type === 'patch', 'Unexpected patch mesh figure'); + (0, _util.assert)(figure.type === "patch", "Unexpected patch mesh figure"); var coords = mesh.coords, colors = mesh.colors; var pi = figure.coords; @@ -38545,7 +38561,7 @@ Shadings.Mesh = function MeshClosure() { figureCoords[verticesPerRow * splitYBy + splitXBy] = pi[15]; figureColors[verticesPerRow * splitYBy + splitXBy] = ci[3]; mesh.figures[index] = { - type: 'lattice', + type: "lattice", coords: figureCoords, colors: figureColors, verticesPerRow @@ -38562,7 +38578,7 @@ Shadings.Mesh = function MeshClosure() { var f = reader.readFlag(); if (!(0 <= f && f <= 3)) { - throw new _util.FormatError('Unknown type6 flag'); + throw new _util.FormatError("Unknown type6 flag"); } var i, ii; @@ -38676,7 +38692,7 @@ Shadings.Mesh = function MeshClosure() { ps[10] = coords.length; coords.push([(-4 * coords[ps[15]][0] - coords[ps[0]][0] + 6 * (coords[ps[11]][0] + coords[ps[14]][0]) - 2 * (coords[ps[12]][0] + coords[ps[3]][0]) + 3 * (coords[ps[2]][0] + coords[ps[8]][0])) / 9, (-4 * coords[ps[15]][1] - coords[ps[0]][1] + 6 * (coords[ps[11]][1] + coords[ps[14]][1]) - 2 * (coords[ps[12]][1] + coords[ps[3]][1]) + 3 * (coords[ps[2]][1] + coords[ps[8]][1])) / 9]); mesh.figures.push({ - type: 'patch', + type: "patch", coords: new Int32Array(ps), colors: new Int32Array(cs) }); @@ -38693,7 +38709,7 @@ Shadings.Mesh = function MeshClosure() { var f = reader.readFlag(); if (!(0 <= f && f <= 3)) { - throw new _util.FormatError('Unknown type7 flag'); + throw new _util.FormatError("Unknown type7 flag"); } var i, ii; @@ -38815,7 +38831,7 @@ Shadings.Mesh = function MeshClosure() { } mesh.figures.push({ - type: 'patch', + type: "patch", coords: new Int32Array(ps), colors: new Int32Array(cs) }); @@ -38879,14 +38895,14 @@ Shadings.Mesh = function MeshClosure() { function Mesh(stream, matrix, xref, res, pdfFunctionFactory) { if (!(0, _primitives.isStream)(stream)) { - throw new _util.FormatError('Mesh data is not a stream'); + throw new _util.FormatError("Mesh data is not a stream"); } var dict = stream.dict; this.matrix = matrix; - this.shadingType = dict.get('ShadingType'); - this.type = 'Pattern'; - const bbox = dict.getArray('BBox'); + this.shadingType = dict.get("ShadingType"); + this.type = "Pattern"; + const bbox = dict.getArray("BBox"); if (Array.isArray(bbox) && bbox.length === 4) { this.bbox = _util.Util.normalizeRect(bbox); @@ -38894,20 +38910,20 @@ Shadings.Mesh = function MeshClosure() { this.bbox = null; } - var cs = dict.get('ColorSpace', 'CS'); + var cs = dict.get("ColorSpace", "CS"); cs = _colorspace.ColorSpace.parse(cs, xref, res, pdfFunctionFactory); this.cs = cs; - this.background = dict.has('Background') ? cs.getRgb(dict.get('Background'), 0) : null; - var fnObj = dict.get('Function'); + this.background = dict.has("Background") ? cs.getRgb(dict.get("Background"), 0) : null; + var fnObj = dict.get("Function"); var fn = fnObj ? pdfFunctionFactory.createFromArray(fnObj) : null; this.coords = []; this.colors = []; this.figures = []; var decodeContext = { - bitsPerCoordinate: dict.get('BitsPerCoordinate'), - bitsPerComponent: dict.get('BitsPerComponent'), - bitsPerFlag: dict.get('BitsPerFlag'), - decode: dict.getArray('Decode'), + bitsPerCoordinate: dict.get("BitsPerCoordinate"), + bitsPerComponent: dict.get("BitsPerComponent"), + bitsPerFlag: dict.get("BitsPerFlag"), + decode: dict.getArray("Decode"), colorFn: fn, colorSpace: cs, numComps: fn ? 1 : cs.numComps @@ -38921,10 +38937,10 @@ Shadings.Mesh = function MeshClosure() { break; case ShadingType.LATTICE_FORM_MESH: - var verticesPerRow = dict.get('VerticesPerRow') | 0; + var verticesPerRow = dict.get("VerticesPerRow") | 0; if (verticesPerRow < 2) { - throw new _util.FormatError('Invalid VerticesPerRow'); + throw new _util.FormatError("Invalid VerticesPerRow"); } decodeType5Shading(this, reader, verticesPerRow); @@ -38941,7 +38957,7 @@ Shadings.Mesh = function MeshClosure() { break; default: - (0, _util.unreachable)('Unsupported mesh type.'); + (0, _util.unreachable)("Unsupported mesh type."); break; } @@ -38959,7 +38975,7 @@ Shadings.Mesh = function MeshClosure() { Mesh.prototype = { getIR: function Mesh_getIR() { - return ['Mesh', this.shadingType, this.coords, this.colors, this.figures, this.bounds, this.matrix, this.bbox, this.background]; + return ["Mesh", this.shadingType, this.coords, this.colors, this.figures, this.bounds, this.matrix, this.bbox, this.background]; } }; return Mesh; @@ -38967,36 +38983,36 @@ Shadings.Mesh = function MeshClosure() { Shadings.Dummy = function DummyClosure() { function Dummy() { - this.type = 'Pattern'; + this.type = "Pattern"; } Dummy.prototype = { getIR: function Dummy_getIR() { - return ['Dummy']; + return ["Dummy"]; } }; return Dummy; }(); function getTilingPatternIR(operatorList, dict, args) { - let matrix = dict.getArray('Matrix'); + let matrix = dict.getArray("Matrix"); - let bbox = _util.Util.normalizeRect(dict.getArray('BBox')); + let bbox = _util.Util.normalizeRect(dict.getArray("BBox")); - let xstep = dict.get('XStep'); - let ystep = dict.get('YStep'); - let paintType = dict.get('PaintType'); - let tilingType = dict.get('TilingType'); + let xstep = dict.get("XStep"); + let ystep = dict.get("YStep"); + let paintType = dict.get("PaintType"); + let tilingType = dict.get("TilingType"); if (bbox[2] - bbox[0] === 0 || bbox[3] - bbox[1] === 0) { throw new _util.FormatError(`Invalid getTilingPatternIR /BBox array: [${bbox}].`); } - return ['TilingPattern', args, operatorList, matrix, bbox, xstep, ystep, paintType, tilingType]; + return ["TilingPattern", args, operatorList, matrix, bbox, xstep, ystep, paintType, tilingType]; } /***/ }), -/* 38 */ +/* 37 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -39009,8 +39025,8 @@ exports.bidi = bidi; var _util = __w_pdfjs_require__(2); -var baseTypes = ['BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS', 'B', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'B', 'B', 'B', 'S', 'WS', 'ON', 'ON', 'ET', 'ET', 'ET', 'ON', 'ON', 'ON', 'ON', 'ON', 'ES', 'CS', 'ES', 'CS', 'CS', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'CS', 'ON', 'ON', 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'ON', 'ON', 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'ON', 'ON', 'ON', 'ON', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'B', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'CS', 'ON', 'ET', 'ET', 'ET', 'ET', 'ON', 'ON', 'ON', 'ON', 'L', 'ON', 'ON', 'BN', 'ON', 'ON', 'ET', 'ET', 'EN', 'EN', 'ON', 'L', 'ON', 'ON', 'ON', 'EN', 'L', 'ON', 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L']; -var arabicTypes = ['AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'ON', 'ON', 'AL', 'ET', 'ET', 'AL', 'CS', 'AL', 'ON', 'ON', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL', 'AL', '', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'ET', 'AN', 'AN', 'AL', 'AL', 'AL', 'NSM', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AN', 'ON', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'NSM', 'NSM', 'ON', 'NSM', 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL']; +var baseTypes = ["BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "S", "B", "S", "WS", "B", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "B", "B", "B", "S", "WS", "ON", "ON", "ET", "ET", "ET", "ON", "ON", "ON", "ON", "ON", "ES", "CS", "ES", "CS", "CS", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "CS", "ON", "ON", "ON", "ON", "ON", "ON", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "ON", "ON", "ON", "ON", "ON", "ON", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "ON", "ON", "ON", "ON", "BN", "BN", "BN", "BN", "BN", "BN", "B", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "BN", "CS", "ON", "ET", "ET", "ET", "ET", "ON", "ON", "ON", "ON", "L", "ON", "ON", "BN", "ON", "ON", "ET", "ET", "EN", "EN", "ON", "L", "ON", "ON", "ON", "EN", "L", "ON", "ON", "ON", "ON", "ON", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "ON", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "L", "ON", "L", "L", "L", "L", "L", "L", "L", "L"]; +var arabicTypes = ["AN", "AN", "AN", "AN", "AN", "AN", "ON", "ON", "AL", "ET", "ET", "AL", "CS", "AL", "ON", "ON", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AL", "AL", "", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "AN", "ET", "AN", "AN", "AL", "AL", "AL", "NSM", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "AL", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AN", "ON", "NSM", "NSM", "NSM", "NSM", "NSM", "NSM", "AL", "AL", "NSM", "NSM", "ON", "NSM", "NSM", "NSM", "NSM", "AL", "AL", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "EN", "AL", "AL", "AL", "AL", "AL", "AL"]; function isOdd(i) { return (i & 1) !== 0; @@ -39047,7 +39063,7 @@ function reverseValues(arr, start, end) { function createBidiText(str, isLTR, vertical) { return { str, - dir: vertical ? 'ttb' : isLTR ? 'ltr' : 'rtl' + dir: vertical ? "ttb" : isLTR ? "ltr" : "rtl" }; } @@ -39070,23 +39086,23 @@ function bidi(str, startLevel, vertical) { for (i = 0; i < strLength; ++i) { chars[i] = str.charAt(i); var charCode = str.charCodeAt(i); - var charType = 'L'; + var charType = "L"; if (charCode <= 0x00ff) { charType = baseTypes[charCode]; } else if (0x0590 <= charCode && charCode <= 0x05f4) { - charType = 'R'; + charType = "R"; } else if (0x0600 <= charCode && charCode <= 0x06ff) { charType = arabicTypes[charCode & 0xff]; if (!charType) { - (0, _util.warn)('Bidi: invalid Unicode character ' + charCode.toString(16)); + (0, _util.warn)("Bidi: invalid Unicode character " + charCode.toString(16)); } - } else if (0x0700 <= charCode && charCode <= 0x08AC) { - charType = 'AL'; + } else if (0x0700 <= charCode && charCode <= 0x08ac) { + charType = "AL"; } - if (charType === 'R' || charType === 'AL' || charType === 'AN') { + if (charType === "R" || charType === "AL" || charType === "AN") { numBidi++; } @@ -39114,13 +39130,13 @@ function bidi(str, startLevel, vertical) { levels[i] = startLevel; } - var e = isOdd(startLevel) ? 'R' : 'L'; + var e = isOdd(startLevel) ? "R" : "L"; var sor = e; var eor = sor; var lastType = sor; for (i = 0; i < strLength; ++i) { - if (types[i] === 'NSM') { + if (types[i] === "NSM") { types[i] = lastType; } else { lastType = types[i]; @@ -39133,9 +39149,9 @@ function bidi(str, startLevel, vertical) { for (i = 0; i < strLength; ++i) { t = types[i]; - if (t === 'EN') { - types[i] = lastType === 'AL' ? 'AN' : 'EN'; - } else if (t === 'R' || t === 'L' || t === 'AL') { + if (t === "EN") { + types[i] = lastType === "AL" ? "AN" : "EN"; + } else if (t === "R" || t === "L" || t === "AL") { lastType = t; } } @@ -39143,39 +39159,39 @@ function bidi(str, startLevel, vertical) { for (i = 0; i < strLength; ++i) { t = types[i]; - if (t === 'AL') { - types[i] = 'R'; + if (t === "AL") { + types[i] = "R"; } } for (i = 1; i < strLength - 1; ++i) { - if (types[i] === 'ES' && types[i - 1] === 'EN' && types[i + 1] === 'EN') { - types[i] = 'EN'; + if (types[i] === "ES" && types[i - 1] === "EN" && types[i + 1] === "EN") { + types[i] = "EN"; } - if (types[i] === 'CS' && (types[i - 1] === 'EN' || types[i - 1] === 'AN') && types[i + 1] === types[i - 1]) { + if (types[i] === "CS" && (types[i - 1] === "EN" || types[i - 1] === "AN") && types[i + 1] === types[i - 1]) { types[i] = types[i - 1]; } } for (i = 0; i < strLength; ++i) { - if (types[i] === 'EN') { + if (types[i] === "EN") { var j; for (j = i - 1; j >= 0; --j) { - if (types[j] !== 'ET') { + if (types[j] !== "ET") { break; } - types[j] = 'EN'; + types[j] = "EN"; } for (j = i + 1; j < strLength; ++j) { - if (types[j] !== 'ET') { + if (types[j] !== "ET") { break; } - types[j] = 'EN'; + types[j] = "EN"; } } } @@ -39183,8 +39199,8 @@ function bidi(str, startLevel, vertical) { for (i = 0; i < strLength; ++i) { t = types[i]; - if (t === 'WS' || t === 'ES' || t === 'ET' || t === 'CS') { - types[i] = 'ON'; + if (t === "WS" || t === "ES" || t === "ET" || t === "CS") { + types[i] = "ON"; } } @@ -39193,16 +39209,16 @@ function bidi(str, startLevel, vertical) { for (i = 0; i < strLength; ++i) { t = types[i]; - if (t === 'EN') { - types[i] = lastType === 'L' ? 'L' : 'EN'; - } else if (t === 'R' || t === 'L') { + if (t === "EN") { + types[i] = lastType === "L" ? "L" : "EN"; + } else if (t === "R" || t === "L") { lastType = t; } } for (i = 0; i < strLength; ++i) { - if (types[i] === 'ON') { - var end = findUnequal(types, i + 1, 'ON'); + if (types[i] === "ON") { + var end = findUnequal(types, i + 1, "ON"); var before = sor; if (i > 0) { @@ -39215,12 +39231,12 @@ function bidi(str, startLevel, vertical) { after = types[end + 1]; } - if (before !== 'L') { - before = 'R'; + if (before !== "L") { + before = "R"; } - if (after !== 'L') { - after = 'R'; + if (after !== "L") { + after = "R"; } if (before === after) { @@ -39232,7 +39248,7 @@ function bidi(str, startLevel, vertical) { } for (i = 0; i < strLength; ++i) { - if (types[i] === 'ON') { + if (types[i] === "ON") { types[i] = e; } } @@ -39241,13 +39257,13 @@ function bidi(str, startLevel, vertical) { t = types[i]; if (isEven(levels[i])) { - if (t === 'R') { + if (t === "R") { levels[i] += 1; - } else if (t === 'AN' || t === 'EN') { + } else if (t === "AN" || t === "EN") { levels[i] += 2; } } else { - if (t === 'L' || t === 'AN' || t === 'EN') { + if (t === "L" || t === "AN" || t === "EN") { levels[i] += 1; } } @@ -39291,16 +39307,16 @@ function bidi(str, startLevel, vertical) { for (i = 0, ii = chars.length; i < ii; ++i) { var ch = chars[i]; - if (ch === '<' || ch === '>') { - chars[i] = ''; + if (ch === "<" || ch === ">") { + chars[i] = ""; } } - return createBidiText(chars.join(''), isLTR); + return createBidiText(chars.join(""), isLTR); } /***/ }), -/* 39 */ +/* 38 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -39311,2950 +39327,2950 @@ Object.defineProperty(exports, "__esModule", { }); exports.getMetrics = void 0; -var _core_utils = __w_pdfjs_require__(8); +var _core_utils = __w_pdfjs_require__(7); var getMetrics = (0, _core_utils.getLookupTableFactory)(function (t) { - t['Courier'] = 600; - t['Courier-Bold'] = 600; - t['Courier-BoldOblique'] = 600; - t['Courier-Oblique'] = 600; - t['Helvetica'] = (0, _core_utils.getLookupTableFactory)(function (t) { - t['space'] = 278; - t['exclam'] = 278; - t['quotedbl'] = 355; - t['numbersign'] = 556; - t['dollar'] = 556; - t['percent'] = 889; - t['ampersand'] = 667; - t['quoteright'] = 222; - t['parenleft'] = 333; - t['parenright'] = 333; - t['asterisk'] = 389; - t['plus'] = 584; - t['comma'] = 278; - t['hyphen'] = 333; - t['period'] = 278; - t['slash'] = 278; - t['zero'] = 556; - t['one'] = 556; - t['two'] = 556; - t['three'] = 556; - t['four'] = 556; - t['five'] = 556; - t['six'] = 556; - t['seven'] = 556; - t['eight'] = 556; - t['nine'] = 556; - t['colon'] = 278; - t['semicolon'] = 278; - t['less'] = 584; - t['equal'] = 584; - t['greater'] = 584; - t['question'] = 556; - t['at'] = 1015; - t['A'] = 667; - t['B'] = 667; - t['C'] = 722; - t['D'] = 722; - t['E'] = 667; - t['F'] = 611; - t['G'] = 778; - t['H'] = 722; - t['I'] = 278; - t['J'] = 500; - t['K'] = 667; - t['L'] = 556; - t['M'] = 833; - t['N'] = 722; - t['O'] = 778; - t['P'] = 667; - t['Q'] = 778; - t['R'] = 722; - t['S'] = 667; - t['T'] = 611; - t['U'] = 722; - t['V'] = 667; - t['W'] = 944; - t['X'] = 667; - t['Y'] = 667; - t['Z'] = 611; - t['bracketleft'] = 278; - t['backslash'] = 278; - t['bracketright'] = 278; - t['asciicircum'] = 469; - t['underscore'] = 556; - t['quoteleft'] = 222; - t['a'] = 556; - t['b'] = 556; - t['c'] = 500; - t['d'] = 556; - t['e'] = 556; - t['f'] = 278; - t['g'] = 556; - t['h'] = 556; - t['i'] = 222; - t['j'] = 222; - t['k'] = 500; - t['l'] = 222; - t['m'] = 833; - t['n'] = 556; - t['o'] = 556; - t['p'] = 556; - t['q'] = 556; - t['r'] = 333; - t['s'] = 500; - t['t'] = 278; - t['u'] = 556; - t['v'] = 500; - t['w'] = 722; - t['x'] = 500; - t['y'] = 500; - t['z'] = 500; - t['braceleft'] = 334; - t['bar'] = 260; - t['braceright'] = 334; - t['asciitilde'] = 584; - t['exclamdown'] = 333; - t['cent'] = 556; - t['sterling'] = 556; - t['fraction'] = 167; - t['yen'] = 556; - t['florin'] = 556; - t['section'] = 556; - t['currency'] = 556; - t['quotesingle'] = 191; - t['quotedblleft'] = 333; - t['guillemotleft'] = 556; - t['guilsinglleft'] = 333; - t['guilsinglright'] = 333; - t['fi'] = 500; - t['fl'] = 500; - t['endash'] = 556; - t['dagger'] = 556; - t['daggerdbl'] = 556; - t['periodcentered'] = 278; - t['paragraph'] = 537; - t['bullet'] = 350; - t['quotesinglbase'] = 222; - t['quotedblbase'] = 333; - t['quotedblright'] = 333; - t['guillemotright'] = 556; - t['ellipsis'] = 1000; - t['perthousand'] = 1000; - t['questiondown'] = 611; - t['grave'] = 333; - t['acute'] = 333; - t['circumflex'] = 333; - t['tilde'] = 333; - t['macron'] = 333; - t['breve'] = 333; - t['dotaccent'] = 333; - t['dieresis'] = 333; - t['ring'] = 333; - t['cedilla'] = 333; - t['hungarumlaut'] = 333; - t['ogonek'] = 333; - t['caron'] = 333; - t['emdash'] = 1000; - t['AE'] = 1000; - t['ordfeminine'] = 370; - t['Lslash'] = 556; - t['Oslash'] = 778; - t['OE'] = 1000; - t['ordmasculine'] = 365; - t['ae'] = 889; - t['dotlessi'] = 278; - t['lslash'] = 222; - t['oslash'] = 611; - t['oe'] = 944; - t['germandbls'] = 611; - t['Idieresis'] = 278; - t['eacute'] = 556; - t['abreve'] = 556; - t['uhungarumlaut'] = 556; - t['ecaron'] = 556; - t['Ydieresis'] = 667; - t['divide'] = 584; - t['Yacute'] = 667; - t['Acircumflex'] = 667; - t['aacute'] = 556; - t['Ucircumflex'] = 722; - t['yacute'] = 500; - t['scommaaccent'] = 500; - t['ecircumflex'] = 556; - t['Uring'] = 722; - t['Udieresis'] = 722; - t['aogonek'] = 556; - t['Uacute'] = 722; - t['uogonek'] = 556; - t['Edieresis'] = 667; - t['Dcroat'] = 722; - t['commaaccent'] = 250; - t['copyright'] = 737; - t['Emacron'] = 667; - t['ccaron'] = 500; - t['aring'] = 556; - t['Ncommaaccent'] = 722; - t['lacute'] = 222; - t['agrave'] = 556; - t['Tcommaaccent'] = 611; - t['Cacute'] = 722; - t['atilde'] = 556; - t['Edotaccent'] = 667; - t['scaron'] = 500; - t['scedilla'] = 500; - t['iacute'] = 278; - t['lozenge'] = 471; - t['Rcaron'] = 722; - t['Gcommaaccent'] = 778; - t['ucircumflex'] = 556; - t['acircumflex'] = 556; - t['Amacron'] = 667; - t['rcaron'] = 333; - t['ccedilla'] = 500; - t['Zdotaccent'] = 611; - t['Thorn'] = 667; - t['Omacron'] = 778; - t['Racute'] = 722; - t['Sacute'] = 667; - t['dcaron'] = 643; - t['Umacron'] = 722; - t['uring'] = 556; - t['threesuperior'] = 333; - t['Ograve'] = 778; - t['Agrave'] = 667; - t['Abreve'] = 667; - t['multiply'] = 584; - t['uacute'] = 556; - t['Tcaron'] = 611; - t['partialdiff'] = 476; - t['ydieresis'] = 500; - t['Nacute'] = 722; - t['icircumflex'] = 278; - t['Ecircumflex'] = 667; - t['adieresis'] = 556; - t['edieresis'] = 556; - t['cacute'] = 500; - t['nacute'] = 556; - t['umacron'] = 556; - t['Ncaron'] = 722; - t['Iacute'] = 278; - t['plusminus'] = 584; - t['brokenbar'] = 260; - t['registered'] = 737; - t['Gbreve'] = 778; - t['Idotaccent'] = 278; - t['summation'] = 600; - t['Egrave'] = 667; - t['racute'] = 333; - t['omacron'] = 556; - t['Zacute'] = 611; - t['Zcaron'] = 611; - t['greaterequal'] = 549; - t['Eth'] = 722; - t['Ccedilla'] = 722; - t['lcommaaccent'] = 222; - t['tcaron'] = 317; - t['eogonek'] = 556; - t['Uogonek'] = 722; - t['Aacute'] = 667; - t['Adieresis'] = 667; - t['egrave'] = 556; - t['zacute'] = 500; - t['iogonek'] = 222; - t['Oacute'] = 778; - t['oacute'] = 556; - t['amacron'] = 556; - t['sacute'] = 500; - t['idieresis'] = 278; - t['Ocircumflex'] = 778; - t['Ugrave'] = 722; - t['Delta'] = 612; - t['thorn'] = 556; - t['twosuperior'] = 333; - t['Odieresis'] = 778; - t['mu'] = 556; - t['igrave'] = 278; - t['ohungarumlaut'] = 556; - t['Eogonek'] = 667; - t['dcroat'] = 556; - t['threequarters'] = 834; - t['Scedilla'] = 667; - t['lcaron'] = 299; - t['Kcommaaccent'] = 667; - t['Lacute'] = 556; - t['trademark'] = 1000; - t['edotaccent'] = 556; - t['Igrave'] = 278; - t['Imacron'] = 278; - t['Lcaron'] = 556; - t['onehalf'] = 834; - t['lessequal'] = 549; - t['ocircumflex'] = 556; - t['ntilde'] = 556; - t['Uhungarumlaut'] = 722; - t['Eacute'] = 667; - t['emacron'] = 556; - t['gbreve'] = 556; - t['onequarter'] = 834; - t['Scaron'] = 667; - t['Scommaaccent'] = 667; - t['Ohungarumlaut'] = 778; - t['degree'] = 400; - t['ograve'] = 556; - t['Ccaron'] = 722; - t['ugrave'] = 556; - t['radical'] = 453; - t['Dcaron'] = 722; - t['rcommaaccent'] = 333; - t['Ntilde'] = 722; - t['otilde'] = 556; - t['Rcommaaccent'] = 722; - t['Lcommaaccent'] = 556; - t['Atilde'] = 667; - t['Aogonek'] = 667; - t['Aring'] = 667; - t['Otilde'] = 778; - t['zdotaccent'] = 500; - t['Ecaron'] = 667; - t['Iogonek'] = 278; - t['kcommaaccent'] = 500; - t['minus'] = 584; - t['Icircumflex'] = 278; - t['ncaron'] = 556; - t['tcommaaccent'] = 278; - t['logicalnot'] = 584; - t['odieresis'] = 556; - t['udieresis'] = 556; - t['notequal'] = 549; - t['gcommaaccent'] = 556; - t['eth'] = 556; - t['zcaron'] = 500; - t['ncommaaccent'] = 556; - t['onesuperior'] = 333; - t['imacron'] = 278; - t['Euro'] = 556; + t["Courier"] = 600; + t["Courier-Bold"] = 600; + t["Courier-BoldOblique"] = 600; + t["Courier-Oblique"] = 600; + t["Helvetica"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t["space"] = 278; + t["exclam"] = 278; + t["quotedbl"] = 355; + t["numbersign"] = 556; + t["dollar"] = 556; + t["percent"] = 889; + t["ampersand"] = 667; + t["quoteright"] = 222; + t["parenleft"] = 333; + t["parenright"] = 333; + t["asterisk"] = 389; + t["plus"] = 584; + t["comma"] = 278; + t["hyphen"] = 333; + t["period"] = 278; + t["slash"] = 278; + t["zero"] = 556; + t["one"] = 556; + t["two"] = 556; + t["three"] = 556; + t["four"] = 556; + t["five"] = 556; + t["six"] = 556; + t["seven"] = 556; + t["eight"] = 556; + t["nine"] = 556; + t["colon"] = 278; + t["semicolon"] = 278; + t["less"] = 584; + t["equal"] = 584; + t["greater"] = 584; + t["question"] = 556; + t["at"] = 1015; + t["A"] = 667; + t["B"] = 667; + t["C"] = 722; + t["D"] = 722; + t["E"] = 667; + t["F"] = 611; + t["G"] = 778; + t["H"] = 722; + t["I"] = 278; + t["J"] = 500; + t["K"] = 667; + t["L"] = 556; + t["M"] = 833; + t["N"] = 722; + t["O"] = 778; + t["P"] = 667; + t["Q"] = 778; + t["R"] = 722; + t["S"] = 667; + t["T"] = 611; + t["U"] = 722; + t["V"] = 667; + t["W"] = 944; + t["X"] = 667; + t["Y"] = 667; + t["Z"] = 611; + t["bracketleft"] = 278; + t["backslash"] = 278; + t["bracketright"] = 278; + t["asciicircum"] = 469; + t["underscore"] = 556; + t["quoteleft"] = 222; + t["a"] = 556; + t["b"] = 556; + t["c"] = 500; + t["d"] = 556; + t["e"] = 556; + t["f"] = 278; + t["g"] = 556; + t["h"] = 556; + t["i"] = 222; + t["j"] = 222; + t["k"] = 500; + t["l"] = 222; + t["m"] = 833; + t["n"] = 556; + t["o"] = 556; + t["p"] = 556; + t["q"] = 556; + t["r"] = 333; + t["s"] = 500; + t["t"] = 278; + t["u"] = 556; + t["v"] = 500; + t["w"] = 722; + t["x"] = 500; + t["y"] = 500; + t["z"] = 500; + t["braceleft"] = 334; + t["bar"] = 260; + t["braceright"] = 334; + t["asciitilde"] = 584; + t["exclamdown"] = 333; + t["cent"] = 556; + t["sterling"] = 556; + t["fraction"] = 167; + t["yen"] = 556; + t["florin"] = 556; + t["section"] = 556; + t["currency"] = 556; + t["quotesingle"] = 191; + t["quotedblleft"] = 333; + t["guillemotleft"] = 556; + t["guilsinglleft"] = 333; + t["guilsinglright"] = 333; + t["fi"] = 500; + t["fl"] = 500; + t["endash"] = 556; + t["dagger"] = 556; + t["daggerdbl"] = 556; + t["periodcentered"] = 278; + t["paragraph"] = 537; + t["bullet"] = 350; + t["quotesinglbase"] = 222; + t["quotedblbase"] = 333; + t["quotedblright"] = 333; + t["guillemotright"] = 556; + t["ellipsis"] = 1000; + t["perthousand"] = 1000; + t["questiondown"] = 611; + t["grave"] = 333; + t["acute"] = 333; + t["circumflex"] = 333; + t["tilde"] = 333; + t["macron"] = 333; + t["breve"] = 333; + t["dotaccent"] = 333; + t["dieresis"] = 333; + t["ring"] = 333; + t["cedilla"] = 333; + t["hungarumlaut"] = 333; + t["ogonek"] = 333; + t["caron"] = 333; + t["emdash"] = 1000; + t["AE"] = 1000; + t["ordfeminine"] = 370; + t["Lslash"] = 556; + t["Oslash"] = 778; + t["OE"] = 1000; + t["ordmasculine"] = 365; + t["ae"] = 889; + t["dotlessi"] = 278; + t["lslash"] = 222; + t["oslash"] = 611; + t["oe"] = 944; + t["germandbls"] = 611; + t["Idieresis"] = 278; + t["eacute"] = 556; + t["abreve"] = 556; + t["uhungarumlaut"] = 556; + t["ecaron"] = 556; + t["Ydieresis"] = 667; + t["divide"] = 584; + t["Yacute"] = 667; + t["Acircumflex"] = 667; + t["aacute"] = 556; + t["Ucircumflex"] = 722; + t["yacute"] = 500; + t["scommaaccent"] = 500; + t["ecircumflex"] = 556; + t["Uring"] = 722; + t["Udieresis"] = 722; + t["aogonek"] = 556; + t["Uacute"] = 722; + t["uogonek"] = 556; + t["Edieresis"] = 667; + t["Dcroat"] = 722; + t["commaaccent"] = 250; + t["copyright"] = 737; + t["Emacron"] = 667; + t["ccaron"] = 500; + t["aring"] = 556; + t["Ncommaaccent"] = 722; + t["lacute"] = 222; + t["agrave"] = 556; + t["Tcommaaccent"] = 611; + t["Cacute"] = 722; + t["atilde"] = 556; + t["Edotaccent"] = 667; + t["scaron"] = 500; + t["scedilla"] = 500; + t["iacute"] = 278; + t["lozenge"] = 471; + t["Rcaron"] = 722; + t["Gcommaaccent"] = 778; + t["ucircumflex"] = 556; + t["acircumflex"] = 556; + t["Amacron"] = 667; + t["rcaron"] = 333; + t["ccedilla"] = 500; + t["Zdotaccent"] = 611; + t["Thorn"] = 667; + t["Omacron"] = 778; + t["Racute"] = 722; + t["Sacute"] = 667; + t["dcaron"] = 643; + t["Umacron"] = 722; + t["uring"] = 556; + t["threesuperior"] = 333; + t["Ograve"] = 778; + t["Agrave"] = 667; + t["Abreve"] = 667; + t["multiply"] = 584; + t["uacute"] = 556; + t["Tcaron"] = 611; + t["partialdiff"] = 476; + t["ydieresis"] = 500; + t["Nacute"] = 722; + t["icircumflex"] = 278; + t["Ecircumflex"] = 667; + t["adieresis"] = 556; + t["edieresis"] = 556; + t["cacute"] = 500; + t["nacute"] = 556; + t["umacron"] = 556; + t["Ncaron"] = 722; + t["Iacute"] = 278; + t["plusminus"] = 584; + t["brokenbar"] = 260; + t["registered"] = 737; + t["Gbreve"] = 778; + t["Idotaccent"] = 278; + t["summation"] = 600; + t["Egrave"] = 667; + t["racute"] = 333; + t["omacron"] = 556; + t["Zacute"] = 611; + t["Zcaron"] = 611; + t["greaterequal"] = 549; + t["Eth"] = 722; + t["Ccedilla"] = 722; + t["lcommaaccent"] = 222; + t["tcaron"] = 317; + t["eogonek"] = 556; + t["Uogonek"] = 722; + t["Aacute"] = 667; + t["Adieresis"] = 667; + t["egrave"] = 556; + t["zacute"] = 500; + t["iogonek"] = 222; + t["Oacute"] = 778; + t["oacute"] = 556; + t["amacron"] = 556; + t["sacute"] = 500; + t["idieresis"] = 278; + t["Ocircumflex"] = 778; + t["Ugrave"] = 722; + t["Delta"] = 612; + t["thorn"] = 556; + t["twosuperior"] = 333; + t["Odieresis"] = 778; + t["mu"] = 556; + t["igrave"] = 278; + t["ohungarumlaut"] = 556; + t["Eogonek"] = 667; + t["dcroat"] = 556; + t["threequarters"] = 834; + t["Scedilla"] = 667; + t["lcaron"] = 299; + t["Kcommaaccent"] = 667; + t["Lacute"] = 556; + t["trademark"] = 1000; + t["edotaccent"] = 556; + t["Igrave"] = 278; + t["Imacron"] = 278; + t["Lcaron"] = 556; + t["onehalf"] = 834; + t["lessequal"] = 549; + t["ocircumflex"] = 556; + t["ntilde"] = 556; + t["Uhungarumlaut"] = 722; + t["Eacute"] = 667; + t["emacron"] = 556; + t["gbreve"] = 556; + t["onequarter"] = 834; + t["Scaron"] = 667; + t["Scommaaccent"] = 667; + t["Ohungarumlaut"] = 778; + t["degree"] = 400; + t["ograve"] = 556; + t["Ccaron"] = 722; + t["ugrave"] = 556; + t["radical"] = 453; + t["Dcaron"] = 722; + t["rcommaaccent"] = 333; + t["Ntilde"] = 722; + t["otilde"] = 556; + t["Rcommaaccent"] = 722; + t["Lcommaaccent"] = 556; + t["Atilde"] = 667; + t["Aogonek"] = 667; + t["Aring"] = 667; + t["Otilde"] = 778; + t["zdotaccent"] = 500; + t["Ecaron"] = 667; + t["Iogonek"] = 278; + t["kcommaaccent"] = 500; + t["minus"] = 584; + t["Icircumflex"] = 278; + t["ncaron"] = 556; + t["tcommaaccent"] = 278; + t["logicalnot"] = 584; + t["odieresis"] = 556; + t["udieresis"] = 556; + t["notequal"] = 549; + t["gcommaaccent"] = 556; + t["eth"] = 556; + t["zcaron"] = 500; + t["ncommaaccent"] = 556; + t["onesuperior"] = 333; + t["imacron"] = 278; + t["Euro"] = 556; }); - t['Helvetica-Bold'] = (0, _core_utils.getLookupTableFactory)(function (t) { - t['space'] = 278; - t['exclam'] = 333; - t['quotedbl'] = 474; - t['numbersign'] = 556; - t['dollar'] = 556; - t['percent'] = 889; - t['ampersand'] = 722; - t['quoteright'] = 278; - t['parenleft'] = 333; - t['parenright'] = 333; - t['asterisk'] = 389; - t['plus'] = 584; - t['comma'] = 278; - t['hyphen'] = 333; - t['period'] = 278; - t['slash'] = 278; - t['zero'] = 556; - t['one'] = 556; - t['two'] = 556; - t['three'] = 556; - t['four'] = 556; - t['five'] = 556; - t['six'] = 556; - t['seven'] = 556; - t['eight'] = 556; - t['nine'] = 556; - t['colon'] = 333; - t['semicolon'] = 333; - t['less'] = 584; - t['equal'] = 584; - t['greater'] = 584; - t['question'] = 611; - t['at'] = 975; - t['A'] = 722; - t['B'] = 722; - t['C'] = 722; - t['D'] = 722; - t['E'] = 667; - t['F'] = 611; - t['G'] = 778; - t['H'] = 722; - t['I'] = 278; - t['J'] = 556; - t['K'] = 722; - t['L'] = 611; - t['M'] = 833; - t['N'] = 722; - t['O'] = 778; - t['P'] = 667; - t['Q'] = 778; - t['R'] = 722; - t['S'] = 667; - t['T'] = 611; - t['U'] = 722; - t['V'] = 667; - t['W'] = 944; - t['X'] = 667; - t['Y'] = 667; - t['Z'] = 611; - t['bracketleft'] = 333; - t['backslash'] = 278; - t['bracketright'] = 333; - t['asciicircum'] = 584; - t['underscore'] = 556; - t['quoteleft'] = 278; - t['a'] = 556; - t['b'] = 611; - t['c'] = 556; - t['d'] = 611; - t['e'] = 556; - t['f'] = 333; - t['g'] = 611; - t['h'] = 611; - t['i'] = 278; - t['j'] = 278; - t['k'] = 556; - t['l'] = 278; - t['m'] = 889; - t['n'] = 611; - t['o'] = 611; - t['p'] = 611; - t['q'] = 611; - t['r'] = 389; - t['s'] = 556; - t['t'] = 333; - t['u'] = 611; - t['v'] = 556; - t['w'] = 778; - t['x'] = 556; - t['y'] = 556; - t['z'] = 500; - t['braceleft'] = 389; - t['bar'] = 280; - t['braceright'] = 389; - t['asciitilde'] = 584; - t['exclamdown'] = 333; - t['cent'] = 556; - t['sterling'] = 556; - t['fraction'] = 167; - t['yen'] = 556; - t['florin'] = 556; - t['section'] = 556; - t['currency'] = 556; - t['quotesingle'] = 238; - t['quotedblleft'] = 500; - t['guillemotleft'] = 556; - t['guilsinglleft'] = 333; - t['guilsinglright'] = 333; - t['fi'] = 611; - t['fl'] = 611; - t['endash'] = 556; - t['dagger'] = 556; - t['daggerdbl'] = 556; - t['periodcentered'] = 278; - t['paragraph'] = 556; - t['bullet'] = 350; - t['quotesinglbase'] = 278; - t['quotedblbase'] = 500; - t['quotedblright'] = 500; - t['guillemotright'] = 556; - t['ellipsis'] = 1000; - t['perthousand'] = 1000; - t['questiondown'] = 611; - t['grave'] = 333; - t['acute'] = 333; - t['circumflex'] = 333; - t['tilde'] = 333; - t['macron'] = 333; - t['breve'] = 333; - t['dotaccent'] = 333; - t['dieresis'] = 333; - t['ring'] = 333; - t['cedilla'] = 333; - t['hungarumlaut'] = 333; - t['ogonek'] = 333; - t['caron'] = 333; - t['emdash'] = 1000; - t['AE'] = 1000; - t['ordfeminine'] = 370; - t['Lslash'] = 611; - t['Oslash'] = 778; - t['OE'] = 1000; - t['ordmasculine'] = 365; - t['ae'] = 889; - t['dotlessi'] = 278; - t['lslash'] = 278; - t['oslash'] = 611; - t['oe'] = 944; - t['germandbls'] = 611; - t['Idieresis'] = 278; - t['eacute'] = 556; - t['abreve'] = 556; - t['uhungarumlaut'] = 611; - t['ecaron'] = 556; - t['Ydieresis'] = 667; - t['divide'] = 584; - t['Yacute'] = 667; - t['Acircumflex'] = 722; - t['aacute'] = 556; - t['Ucircumflex'] = 722; - t['yacute'] = 556; - t['scommaaccent'] = 556; - t['ecircumflex'] = 556; - t['Uring'] = 722; - t['Udieresis'] = 722; - t['aogonek'] = 556; - t['Uacute'] = 722; - t['uogonek'] = 611; - t['Edieresis'] = 667; - t['Dcroat'] = 722; - t['commaaccent'] = 250; - t['copyright'] = 737; - t['Emacron'] = 667; - t['ccaron'] = 556; - t['aring'] = 556; - t['Ncommaaccent'] = 722; - t['lacute'] = 278; - t['agrave'] = 556; - t['Tcommaaccent'] = 611; - t['Cacute'] = 722; - t['atilde'] = 556; - t['Edotaccent'] = 667; - t['scaron'] = 556; - t['scedilla'] = 556; - t['iacute'] = 278; - t['lozenge'] = 494; - t['Rcaron'] = 722; - t['Gcommaaccent'] = 778; - t['ucircumflex'] = 611; - t['acircumflex'] = 556; - t['Amacron'] = 722; - t['rcaron'] = 389; - t['ccedilla'] = 556; - t['Zdotaccent'] = 611; - t['Thorn'] = 667; - t['Omacron'] = 778; - t['Racute'] = 722; - t['Sacute'] = 667; - t['dcaron'] = 743; - t['Umacron'] = 722; - t['uring'] = 611; - t['threesuperior'] = 333; - t['Ograve'] = 778; - t['Agrave'] = 722; - t['Abreve'] = 722; - t['multiply'] = 584; - t['uacute'] = 611; - t['Tcaron'] = 611; - t['partialdiff'] = 494; - t['ydieresis'] = 556; - t['Nacute'] = 722; - t['icircumflex'] = 278; - t['Ecircumflex'] = 667; - t['adieresis'] = 556; - t['edieresis'] = 556; - t['cacute'] = 556; - t['nacute'] = 611; - t['umacron'] = 611; - t['Ncaron'] = 722; - t['Iacute'] = 278; - t['plusminus'] = 584; - t['brokenbar'] = 280; - t['registered'] = 737; - t['Gbreve'] = 778; - t['Idotaccent'] = 278; - t['summation'] = 600; - t['Egrave'] = 667; - t['racute'] = 389; - t['omacron'] = 611; - t['Zacute'] = 611; - t['Zcaron'] = 611; - t['greaterequal'] = 549; - t['Eth'] = 722; - t['Ccedilla'] = 722; - t['lcommaaccent'] = 278; - t['tcaron'] = 389; - t['eogonek'] = 556; - t['Uogonek'] = 722; - t['Aacute'] = 722; - t['Adieresis'] = 722; - t['egrave'] = 556; - t['zacute'] = 500; - t['iogonek'] = 278; - t['Oacute'] = 778; - t['oacute'] = 611; - t['amacron'] = 556; - t['sacute'] = 556; - t['idieresis'] = 278; - t['Ocircumflex'] = 778; - t['Ugrave'] = 722; - t['Delta'] = 612; - t['thorn'] = 611; - t['twosuperior'] = 333; - t['Odieresis'] = 778; - t['mu'] = 611; - t['igrave'] = 278; - t['ohungarumlaut'] = 611; - t['Eogonek'] = 667; - t['dcroat'] = 611; - t['threequarters'] = 834; - t['Scedilla'] = 667; - t['lcaron'] = 400; - t['Kcommaaccent'] = 722; - t['Lacute'] = 611; - t['trademark'] = 1000; - t['edotaccent'] = 556; - t['Igrave'] = 278; - t['Imacron'] = 278; - t['Lcaron'] = 611; - t['onehalf'] = 834; - t['lessequal'] = 549; - t['ocircumflex'] = 611; - t['ntilde'] = 611; - t['Uhungarumlaut'] = 722; - t['Eacute'] = 667; - t['emacron'] = 556; - t['gbreve'] = 611; - t['onequarter'] = 834; - t['Scaron'] = 667; - t['Scommaaccent'] = 667; - t['Ohungarumlaut'] = 778; - t['degree'] = 400; - t['ograve'] = 611; - t['Ccaron'] = 722; - t['ugrave'] = 611; - t['radical'] = 549; - t['Dcaron'] = 722; - t['rcommaaccent'] = 389; - t['Ntilde'] = 722; - t['otilde'] = 611; - t['Rcommaaccent'] = 722; - t['Lcommaaccent'] = 611; - t['Atilde'] = 722; - t['Aogonek'] = 722; - t['Aring'] = 722; - t['Otilde'] = 778; - t['zdotaccent'] = 500; - t['Ecaron'] = 667; - t['Iogonek'] = 278; - t['kcommaaccent'] = 556; - t['minus'] = 584; - t['Icircumflex'] = 278; - t['ncaron'] = 611; - t['tcommaaccent'] = 333; - t['logicalnot'] = 584; - t['odieresis'] = 611; - t['udieresis'] = 611; - t['notequal'] = 549; - t['gcommaaccent'] = 611; - t['eth'] = 611; - t['zcaron'] = 500; - t['ncommaaccent'] = 611; - t['onesuperior'] = 333; - t['imacron'] = 278; - t['Euro'] = 556; + t["Helvetica-Bold"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t["space"] = 278; + t["exclam"] = 333; + t["quotedbl"] = 474; + t["numbersign"] = 556; + t["dollar"] = 556; + t["percent"] = 889; + t["ampersand"] = 722; + t["quoteright"] = 278; + t["parenleft"] = 333; + t["parenright"] = 333; + t["asterisk"] = 389; + t["plus"] = 584; + t["comma"] = 278; + t["hyphen"] = 333; + t["period"] = 278; + t["slash"] = 278; + t["zero"] = 556; + t["one"] = 556; + t["two"] = 556; + t["three"] = 556; + t["four"] = 556; + t["five"] = 556; + t["six"] = 556; + t["seven"] = 556; + t["eight"] = 556; + t["nine"] = 556; + t["colon"] = 333; + t["semicolon"] = 333; + t["less"] = 584; + t["equal"] = 584; + t["greater"] = 584; + t["question"] = 611; + t["at"] = 975; + t["A"] = 722; + t["B"] = 722; + t["C"] = 722; + t["D"] = 722; + t["E"] = 667; + t["F"] = 611; + t["G"] = 778; + t["H"] = 722; + t["I"] = 278; + t["J"] = 556; + t["K"] = 722; + t["L"] = 611; + t["M"] = 833; + t["N"] = 722; + t["O"] = 778; + t["P"] = 667; + t["Q"] = 778; + t["R"] = 722; + t["S"] = 667; + t["T"] = 611; + t["U"] = 722; + t["V"] = 667; + t["W"] = 944; + t["X"] = 667; + t["Y"] = 667; + t["Z"] = 611; + t["bracketleft"] = 333; + t["backslash"] = 278; + t["bracketright"] = 333; + t["asciicircum"] = 584; + t["underscore"] = 556; + t["quoteleft"] = 278; + t["a"] = 556; + t["b"] = 611; + t["c"] = 556; + t["d"] = 611; + t["e"] = 556; + t["f"] = 333; + t["g"] = 611; + t["h"] = 611; + t["i"] = 278; + t["j"] = 278; + t["k"] = 556; + t["l"] = 278; + t["m"] = 889; + t["n"] = 611; + t["o"] = 611; + t["p"] = 611; + t["q"] = 611; + t["r"] = 389; + t["s"] = 556; + t["t"] = 333; + t["u"] = 611; + t["v"] = 556; + t["w"] = 778; + t["x"] = 556; + t["y"] = 556; + t["z"] = 500; + t["braceleft"] = 389; + t["bar"] = 280; + t["braceright"] = 389; + t["asciitilde"] = 584; + t["exclamdown"] = 333; + t["cent"] = 556; + t["sterling"] = 556; + t["fraction"] = 167; + t["yen"] = 556; + t["florin"] = 556; + t["section"] = 556; + t["currency"] = 556; + t["quotesingle"] = 238; + t["quotedblleft"] = 500; + t["guillemotleft"] = 556; + t["guilsinglleft"] = 333; + t["guilsinglright"] = 333; + t["fi"] = 611; + t["fl"] = 611; + t["endash"] = 556; + t["dagger"] = 556; + t["daggerdbl"] = 556; + t["periodcentered"] = 278; + t["paragraph"] = 556; + t["bullet"] = 350; + t["quotesinglbase"] = 278; + t["quotedblbase"] = 500; + t["quotedblright"] = 500; + t["guillemotright"] = 556; + t["ellipsis"] = 1000; + t["perthousand"] = 1000; + t["questiondown"] = 611; + t["grave"] = 333; + t["acute"] = 333; + t["circumflex"] = 333; + t["tilde"] = 333; + t["macron"] = 333; + t["breve"] = 333; + t["dotaccent"] = 333; + t["dieresis"] = 333; + t["ring"] = 333; + t["cedilla"] = 333; + t["hungarumlaut"] = 333; + t["ogonek"] = 333; + t["caron"] = 333; + t["emdash"] = 1000; + t["AE"] = 1000; + t["ordfeminine"] = 370; + t["Lslash"] = 611; + t["Oslash"] = 778; + t["OE"] = 1000; + t["ordmasculine"] = 365; + t["ae"] = 889; + t["dotlessi"] = 278; + t["lslash"] = 278; + t["oslash"] = 611; + t["oe"] = 944; + t["germandbls"] = 611; + t["Idieresis"] = 278; + t["eacute"] = 556; + t["abreve"] = 556; + t["uhungarumlaut"] = 611; + t["ecaron"] = 556; + t["Ydieresis"] = 667; + t["divide"] = 584; + t["Yacute"] = 667; + t["Acircumflex"] = 722; + t["aacute"] = 556; + t["Ucircumflex"] = 722; + t["yacute"] = 556; + t["scommaaccent"] = 556; + t["ecircumflex"] = 556; + t["Uring"] = 722; + t["Udieresis"] = 722; + t["aogonek"] = 556; + t["Uacute"] = 722; + t["uogonek"] = 611; + t["Edieresis"] = 667; + t["Dcroat"] = 722; + t["commaaccent"] = 250; + t["copyright"] = 737; + t["Emacron"] = 667; + t["ccaron"] = 556; + t["aring"] = 556; + t["Ncommaaccent"] = 722; + t["lacute"] = 278; + t["agrave"] = 556; + t["Tcommaaccent"] = 611; + t["Cacute"] = 722; + t["atilde"] = 556; + t["Edotaccent"] = 667; + t["scaron"] = 556; + t["scedilla"] = 556; + t["iacute"] = 278; + t["lozenge"] = 494; + t["Rcaron"] = 722; + t["Gcommaaccent"] = 778; + t["ucircumflex"] = 611; + t["acircumflex"] = 556; + t["Amacron"] = 722; + t["rcaron"] = 389; + t["ccedilla"] = 556; + t["Zdotaccent"] = 611; + t["Thorn"] = 667; + t["Omacron"] = 778; + t["Racute"] = 722; + t["Sacute"] = 667; + t["dcaron"] = 743; + t["Umacron"] = 722; + t["uring"] = 611; + t["threesuperior"] = 333; + t["Ograve"] = 778; + t["Agrave"] = 722; + t["Abreve"] = 722; + t["multiply"] = 584; + t["uacute"] = 611; + t["Tcaron"] = 611; + t["partialdiff"] = 494; + t["ydieresis"] = 556; + t["Nacute"] = 722; + t["icircumflex"] = 278; + t["Ecircumflex"] = 667; + t["adieresis"] = 556; + t["edieresis"] = 556; + t["cacute"] = 556; + t["nacute"] = 611; + t["umacron"] = 611; + t["Ncaron"] = 722; + t["Iacute"] = 278; + t["plusminus"] = 584; + t["brokenbar"] = 280; + t["registered"] = 737; + t["Gbreve"] = 778; + t["Idotaccent"] = 278; + t["summation"] = 600; + t["Egrave"] = 667; + t["racute"] = 389; + t["omacron"] = 611; + t["Zacute"] = 611; + t["Zcaron"] = 611; + t["greaterequal"] = 549; + t["Eth"] = 722; + t["Ccedilla"] = 722; + t["lcommaaccent"] = 278; + t["tcaron"] = 389; + t["eogonek"] = 556; + t["Uogonek"] = 722; + t["Aacute"] = 722; + t["Adieresis"] = 722; + t["egrave"] = 556; + t["zacute"] = 500; + t["iogonek"] = 278; + t["Oacute"] = 778; + t["oacute"] = 611; + t["amacron"] = 556; + t["sacute"] = 556; + t["idieresis"] = 278; + t["Ocircumflex"] = 778; + t["Ugrave"] = 722; + t["Delta"] = 612; + t["thorn"] = 611; + t["twosuperior"] = 333; + t["Odieresis"] = 778; + t["mu"] = 611; + t["igrave"] = 278; + t["ohungarumlaut"] = 611; + t["Eogonek"] = 667; + t["dcroat"] = 611; + t["threequarters"] = 834; + t["Scedilla"] = 667; + t["lcaron"] = 400; + t["Kcommaaccent"] = 722; + t["Lacute"] = 611; + t["trademark"] = 1000; + t["edotaccent"] = 556; + t["Igrave"] = 278; + t["Imacron"] = 278; + t["Lcaron"] = 611; + t["onehalf"] = 834; + t["lessequal"] = 549; + t["ocircumflex"] = 611; + t["ntilde"] = 611; + t["Uhungarumlaut"] = 722; + t["Eacute"] = 667; + t["emacron"] = 556; + t["gbreve"] = 611; + t["onequarter"] = 834; + t["Scaron"] = 667; + t["Scommaaccent"] = 667; + t["Ohungarumlaut"] = 778; + t["degree"] = 400; + t["ograve"] = 611; + t["Ccaron"] = 722; + t["ugrave"] = 611; + t["radical"] = 549; + t["Dcaron"] = 722; + t["rcommaaccent"] = 389; + t["Ntilde"] = 722; + t["otilde"] = 611; + t["Rcommaaccent"] = 722; + t["Lcommaaccent"] = 611; + t["Atilde"] = 722; + t["Aogonek"] = 722; + t["Aring"] = 722; + t["Otilde"] = 778; + t["zdotaccent"] = 500; + t["Ecaron"] = 667; + t["Iogonek"] = 278; + t["kcommaaccent"] = 556; + t["minus"] = 584; + t["Icircumflex"] = 278; + t["ncaron"] = 611; + t["tcommaaccent"] = 333; + t["logicalnot"] = 584; + t["odieresis"] = 611; + t["udieresis"] = 611; + t["notequal"] = 549; + t["gcommaaccent"] = 611; + t["eth"] = 611; + t["zcaron"] = 500; + t["ncommaaccent"] = 611; + t["onesuperior"] = 333; + t["imacron"] = 278; + t["Euro"] = 556; }); - t['Helvetica-BoldOblique'] = (0, _core_utils.getLookupTableFactory)(function (t) { - t['space'] = 278; - t['exclam'] = 333; - t['quotedbl'] = 474; - t['numbersign'] = 556; - t['dollar'] = 556; - t['percent'] = 889; - t['ampersand'] = 722; - t['quoteright'] = 278; - t['parenleft'] = 333; - t['parenright'] = 333; - t['asterisk'] = 389; - t['plus'] = 584; - t['comma'] = 278; - t['hyphen'] = 333; - t['period'] = 278; - t['slash'] = 278; - t['zero'] = 556; - t['one'] = 556; - t['two'] = 556; - t['three'] = 556; - t['four'] = 556; - t['five'] = 556; - t['six'] = 556; - t['seven'] = 556; - t['eight'] = 556; - t['nine'] = 556; - t['colon'] = 333; - t['semicolon'] = 333; - t['less'] = 584; - t['equal'] = 584; - t['greater'] = 584; - t['question'] = 611; - t['at'] = 975; - t['A'] = 722; - t['B'] = 722; - t['C'] = 722; - t['D'] = 722; - t['E'] = 667; - t['F'] = 611; - t['G'] = 778; - t['H'] = 722; - t['I'] = 278; - t['J'] = 556; - t['K'] = 722; - t['L'] = 611; - t['M'] = 833; - t['N'] = 722; - t['O'] = 778; - t['P'] = 667; - t['Q'] = 778; - t['R'] = 722; - t['S'] = 667; - t['T'] = 611; - t['U'] = 722; - t['V'] = 667; - t['W'] = 944; - t['X'] = 667; - t['Y'] = 667; - t['Z'] = 611; - t['bracketleft'] = 333; - t['backslash'] = 278; - t['bracketright'] = 333; - t['asciicircum'] = 584; - t['underscore'] = 556; - t['quoteleft'] = 278; - t['a'] = 556; - t['b'] = 611; - t['c'] = 556; - t['d'] = 611; - t['e'] = 556; - t['f'] = 333; - t['g'] = 611; - t['h'] = 611; - t['i'] = 278; - t['j'] = 278; - t['k'] = 556; - t['l'] = 278; - t['m'] = 889; - t['n'] = 611; - t['o'] = 611; - t['p'] = 611; - t['q'] = 611; - t['r'] = 389; - t['s'] = 556; - t['t'] = 333; - t['u'] = 611; - t['v'] = 556; - t['w'] = 778; - t['x'] = 556; - t['y'] = 556; - t['z'] = 500; - t['braceleft'] = 389; - t['bar'] = 280; - t['braceright'] = 389; - t['asciitilde'] = 584; - t['exclamdown'] = 333; - t['cent'] = 556; - t['sterling'] = 556; - t['fraction'] = 167; - t['yen'] = 556; - t['florin'] = 556; - t['section'] = 556; - t['currency'] = 556; - t['quotesingle'] = 238; - t['quotedblleft'] = 500; - t['guillemotleft'] = 556; - t['guilsinglleft'] = 333; - t['guilsinglright'] = 333; - t['fi'] = 611; - t['fl'] = 611; - t['endash'] = 556; - t['dagger'] = 556; - t['daggerdbl'] = 556; - t['periodcentered'] = 278; - t['paragraph'] = 556; - t['bullet'] = 350; - t['quotesinglbase'] = 278; - t['quotedblbase'] = 500; - t['quotedblright'] = 500; - t['guillemotright'] = 556; - t['ellipsis'] = 1000; - t['perthousand'] = 1000; - t['questiondown'] = 611; - t['grave'] = 333; - t['acute'] = 333; - t['circumflex'] = 333; - t['tilde'] = 333; - t['macron'] = 333; - t['breve'] = 333; - t['dotaccent'] = 333; - t['dieresis'] = 333; - t['ring'] = 333; - t['cedilla'] = 333; - t['hungarumlaut'] = 333; - t['ogonek'] = 333; - t['caron'] = 333; - t['emdash'] = 1000; - t['AE'] = 1000; - t['ordfeminine'] = 370; - t['Lslash'] = 611; - t['Oslash'] = 778; - t['OE'] = 1000; - t['ordmasculine'] = 365; - t['ae'] = 889; - t['dotlessi'] = 278; - t['lslash'] = 278; - t['oslash'] = 611; - t['oe'] = 944; - t['germandbls'] = 611; - t['Idieresis'] = 278; - t['eacute'] = 556; - t['abreve'] = 556; - t['uhungarumlaut'] = 611; - t['ecaron'] = 556; - t['Ydieresis'] = 667; - t['divide'] = 584; - t['Yacute'] = 667; - t['Acircumflex'] = 722; - t['aacute'] = 556; - t['Ucircumflex'] = 722; - t['yacute'] = 556; - t['scommaaccent'] = 556; - t['ecircumflex'] = 556; - t['Uring'] = 722; - t['Udieresis'] = 722; - t['aogonek'] = 556; - t['Uacute'] = 722; - t['uogonek'] = 611; - t['Edieresis'] = 667; - t['Dcroat'] = 722; - t['commaaccent'] = 250; - t['copyright'] = 737; - t['Emacron'] = 667; - t['ccaron'] = 556; - t['aring'] = 556; - t['Ncommaaccent'] = 722; - t['lacute'] = 278; - t['agrave'] = 556; - t['Tcommaaccent'] = 611; - t['Cacute'] = 722; - t['atilde'] = 556; - t['Edotaccent'] = 667; - t['scaron'] = 556; - t['scedilla'] = 556; - t['iacute'] = 278; - t['lozenge'] = 494; - t['Rcaron'] = 722; - t['Gcommaaccent'] = 778; - t['ucircumflex'] = 611; - t['acircumflex'] = 556; - t['Amacron'] = 722; - t['rcaron'] = 389; - t['ccedilla'] = 556; - t['Zdotaccent'] = 611; - t['Thorn'] = 667; - t['Omacron'] = 778; - t['Racute'] = 722; - t['Sacute'] = 667; - t['dcaron'] = 743; - t['Umacron'] = 722; - t['uring'] = 611; - t['threesuperior'] = 333; - t['Ograve'] = 778; - t['Agrave'] = 722; - t['Abreve'] = 722; - t['multiply'] = 584; - t['uacute'] = 611; - t['Tcaron'] = 611; - t['partialdiff'] = 494; - t['ydieresis'] = 556; - t['Nacute'] = 722; - t['icircumflex'] = 278; - t['Ecircumflex'] = 667; - t['adieresis'] = 556; - t['edieresis'] = 556; - t['cacute'] = 556; - t['nacute'] = 611; - t['umacron'] = 611; - t['Ncaron'] = 722; - t['Iacute'] = 278; - t['plusminus'] = 584; - t['brokenbar'] = 280; - t['registered'] = 737; - t['Gbreve'] = 778; - t['Idotaccent'] = 278; - t['summation'] = 600; - t['Egrave'] = 667; - t['racute'] = 389; - t['omacron'] = 611; - t['Zacute'] = 611; - t['Zcaron'] = 611; - t['greaterequal'] = 549; - t['Eth'] = 722; - t['Ccedilla'] = 722; - t['lcommaaccent'] = 278; - t['tcaron'] = 389; - t['eogonek'] = 556; - t['Uogonek'] = 722; - t['Aacute'] = 722; - t['Adieresis'] = 722; - t['egrave'] = 556; - t['zacute'] = 500; - t['iogonek'] = 278; - t['Oacute'] = 778; - t['oacute'] = 611; - t['amacron'] = 556; - t['sacute'] = 556; - t['idieresis'] = 278; - t['Ocircumflex'] = 778; - t['Ugrave'] = 722; - t['Delta'] = 612; - t['thorn'] = 611; - t['twosuperior'] = 333; - t['Odieresis'] = 778; - t['mu'] = 611; - t['igrave'] = 278; - t['ohungarumlaut'] = 611; - t['Eogonek'] = 667; - t['dcroat'] = 611; - t['threequarters'] = 834; - t['Scedilla'] = 667; - t['lcaron'] = 400; - t['Kcommaaccent'] = 722; - t['Lacute'] = 611; - t['trademark'] = 1000; - t['edotaccent'] = 556; - t['Igrave'] = 278; - t['Imacron'] = 278; - t['Lcaron'] = 611; - t['onehalf'] = 834; - t['lessequal'] = 549; - t['ocircumflex'] = 611; - t['ntilde'] = 611; - t['Uhungarumlaut'] = 722; - t['Eacute'] = 667; - t['emacron'] = 556; - t['gbreve'] = 611; - t['onequarter'] = 834; - t['Scaron'] = 667; - t['Scommaaccent'] = 667; - t['Ohungarumlaut'] = 778; - t['degree'] = 400; - t['ograve'] = 611; - t['Ccaron'] = 722; - t['ugrave'] = 611; - t['radical'] = 549; - t['Dcaron'] = 722; - t['rcommaaccent'] = 389; - t['Ntilde'] = 722; - t['otilde'] = 611; - t['Rcommaaccent'] = 722; - t['Lcommaaccent'] = 611; - t['Atilde'] = 722; - t['Aogonek'] = 722; - t['Aring'] = 722; - t['Otilde'] = 778; - t['zdotaccent'] = 500; - t['Ecaron'] = 667; - t['Iogonek'] = 278; - t['kcommaaccent'] = 556; - t['minus'] = 584; - t['Icircumflex'] = 278; - t['ncaron'] = 611; - t['tcommaaccent'] = 333; - t['logicalnot'] = 584; - t['odieresis'] = 611; - t['udieresis'] = 611; - t['notequal'] = 549; - t['gcommaaccent'] = 611; - t['eth'] = 611; - t['zcaron'] = 500; - t['ncommaaccent'] = 611; - t['onesuperior'] = 333; - t['imacron'] = 278; - t['Euro'] = 556; + t["Helvetica-BoldOblique"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t["space"] = 278; + t["exclam"] = 333; + t["quotedbl"] = 474; + t["numbersign"] = 556; + t["dollar"] = 556; + t["percent"] = 889; + t["ampersand"] = 722; + t["quoteright"] = 278; + t["parenleft"] = 333; + t["parenright"] = 333; + t["asterisk"] = 389; + t["plus"] = 584; + t["comma"] = 278; + t["hyphen"] = 333; + t["period"] = 278; + t["slash"] = 278; + t["zero"] = 556; + t["one"] = 556; + t["two"] = 556; + t["three"] = 556; + t["four"] = 556; + t["five"] = 556; + t["six"] = 556; + t["seven"] = 556; + t["eight"] = 556; + t["nine"] = 556; + t["colon"] = 333; + t["semicolon"] = 333; + t["less"] = 584; + t["equal"] = 584; + t["greater"] = 584; + t["question"] = 611; + t["at"] = 975; + t["A"] = 722; + t["B"] = 722; + t["C"] = 722; + t["D"] = 722; + t["E"] = 667; + t["F"] = 611; + t["G"] = 778; + t["H"] = 722; + t["I"] = 278; + t["J"] = 556; + t["K"] = 722; + t["L"] = 611; + t["M"] = 833; + t["N"] = 722; + t["O"] = 778; + t["P"] = 667; + t["Q"] = 778; + t["R"] = 722; + t["S"] = 667; + t["T"] = 611; + t["U"] = 722; + t["V"] = 667; + t["W"] = 944; + t["X"] = 667; + t["Y"] = 667; + t["Z"] = 611; + t["bracketleft"] = 333; + t["backslash"] = 278; + t["bracketright"] = 333; + t["asciicircum"] = 584; + t["underscore"] = 556; + t["quoteleft"] = 278; + t["a"] = 556; + t["b"] = 611; + t["c"] = 556; + t["d"] = 611; + t["e"] = 556; + t["f"] = 333; + t["g"] = 611; + t["h"] = 611; + t["i"] = 278; + t["j"] = 278; + t["k"] = 556; + t["l"] = 278; + t["m"] = 889; + t["n"] = 611; + t["o"] = 611; + t["p"] = 611; + t["q"] = 611; + t["r"] = 389; + t["s"] = 556; + t["t"] = 333; + t["u"] = 611; + t["v"] = 556; + t["w"] = 778; + t["x"] = 556; + t["y"] = 556; + t["z"] = 500; + t["braceleft"] = 389; + t["bar"] = 280; + t["braceright"] = 389; + t["asciitilde"] = 584; + t["exclamdown"] = 333; + t["cent"] = 556; + t["sterling"] = 556; + t["fraction"] = 167; + t["yen"] = 556; + t["florin"] = 556; + t["section"] = 556; + t["currency"] = 556; + t["quotesingle"] = 238; + t["quotedblleft"] = 500; + t["guillemotleft"] = 556; + t["guilsinglleft"] = 333; + t["guilsinglright"] = 333; + t["fi"] = 611; + t["fl"] = 611; + t["endash"] = 556; + t["dagger"] = 556; + t["daggerdbl"] = 556; + t["periodcentered"] = 278; + t["paragraph"] = 556; + t["bullet"] = 350; + t["quotesinglbase"] = 278; + t["quotedblbase"] = 500; + t["quotedblright"] = 500; + t["guillemotright"] = 556; + t["ellipsis"] = 1000; + t["perthousand"] = 1000; + t["questiondown"] = 611; + t["grave"] = 333; + t["acute"] = 333; + t["circumflex"] = 333; + t["tilde"] = 333; + t["macron"] = 333; + t["breve"] = 333; + t["dotaccent"] = 333; + t["dieresis"] = 333; + t["ring"] = 333; + t["cedilla"] = 333; + t["hungarumlaut"] = 333; + t["ogonek"] = 333; + t["caron"] = 333; + t["emdash"] = 1000; + t["AE"] = 1000; + t["ordfeminine"] = 370; + t["Lslash"] = 611; + t["Oslash"] = 778; + t["OE"] = 1000; + t["ordmasculine"] = 365; + t["ae"] = 889; + t["dotlessi"] = 278; + t["lslash"] = 278; + t["oslash"] = 611; + t["oe"] = 944; + t["germandbls"] = 611; + t["Idieresis"] = 278; + t["eacute"] = 556; + t["abreve"] = 556; + t["uhungarumlaut"] = 611; + t["ecaron"] = 556; + t["Ydieresis"] = 667; + t["divide"] = 584; + t["Yacute"] = 667; + t["Acircumflex"] = 722; + t["aacute"] = 556; + t["Ucircumflex"] = 722; + t["yacute"] = 556; + t["scommaaccent"] = 556; + t["ecircumflex"] = 556; + t["Uring"] = 722; + t["Udieresis"] = 722; + t["aogonek"] = 556; + t["Uacute"] = 722; + t["uogonek"] = 611; + t["Edieresis"] = 667; + t["Dcroat"] = 722; + t["commaaccent"] = 250; + t["copyright"] = 737; + t["Emacron"] = 667; + t["ccaron"] = 556; + t["aring"] = 556; + t["Ncommaaccent"] = 722; + t["lacute"] = 278; + t["agrave"] = 556; + t["Tcommaaccent"] = 611; + t["Cacute"] = 722; + t["atilde"] = 556; + t["Edotaccent"] = 667; + t["scaron"] = 556; + t["scedilla"] = 556; + t["iacute"] = 278; + t["lozenge"] = 494; + t["Rcaron"] = 722; + t["Gcommaaccent"] = 778; + t["ucircumflex"] = 611; + t["acircumflex"] = 556; + t["Amacron"] = 722; + t["rcaron"] = 389; + t["ccedilla"] = 556; + t["Zdotaccent"] = 611; + t["Thorn"] = 667; + t["Omacron"] = 778; + t["Racute"] = 722; + t["Sacute"] = 667; + t["dcaron"] = 743; + t["Umacron"] = 722; + t["uring"] = 611; + t["threesuperior"] = 333; + t["Ograve"] = 778; + t["Agrave"] = 722; + t["Abreve"] = 722; + t["multiply"] = 584; + t["uacute"] = 611; + t["Tcaron"] = 611; + t["partialdiff"] = 494; + t["ydieresis"] = 556; + t["Nacute"] = 722; + t["icircumflex"] = 278; + t["Ecircumflex"] = 667; + t["adieresis"] = 556; + t["edieresis"] = 556; + t["cacute"] = 556; + t["nacute"] = 611; + t["umacron"] = 611; + t["Ncaron"] = 722; + t["Iacute"] = 278; + t["plusminus"] = 584; + t["brokenbar"] = 280; + t["registered"] = 737; + t["Gbreve"] = 778; + t["Idotaccent"] = 278; + t["summation"] = 600; + t["Egrave"] = 667; + t["racute"] = 389; + t["omacron"] = 611; + t["Zacute"] = 611; + t["Zcaron"] = 611; + t["greaterequal"] = 549; + t["Eth"] = 722; + t["Ccedilla"] = 722; + t["lcommaaccent"] = 278; + t["tcaron"] = 389; + t["eogonek"] = 556; + t["Uogonek"] = 722; + t["Aacute"] = 722; + t["Adieresis"] = 722; + t["egrave"] = 556; + t["zacute"] = 500; + t["iogonek"] = 278; + t["Oacute"] = 778; + t["oacute"] = 611; + t["amacron"] = 556; + t["sacute"] = 556; + t["idieresis"] = 278; + t["Ocircumflex"] = 778; + t["Ugrave"] = 722; + t["Delta"] = 612; + t["thorn"] = 611; + t["twosuperior"] = 333; + t["Odieresis"] = 778; + t["mu"] = 611; + t["igrave"] = 278; + t["ohungarumlaut"] = 611; + t["Eogonek"] = 667; + t["dcroat"] = 611; + t["threequarters"] = 834; + t["Scedilla"] = 667; + t["lcaron"] = 400; + t["Kcommaaccent"] = 722; + t["Lacute"] = 611; + t["trademark"] = 1000; + t["edotaccent"] = 556; + t["Igrave"] = 278; + t["Imacron"] = 278; + t["Lcaron"] = 611; + t["onehalf"] = 834; + t["lessequal"] = 549; + t["ocircumflex"] = 611; + t["ntilde"] = 611; + t["Uhungarumlaut"] = 722; + t["Eacute"] = 667; + t["emacron"] = 556; + t["gbreve"] = 611; + t["onequarter"] = 834; + t["Scaron"] = 667; + t["Scommaaccent"] = 667; + t["Ohungarumlaut"] = 778; + t["degree"] = 400; + t["ograve"] = 611; + t["Ccaron"] = 722; + t["ugrave"] = 611; + t["radical"] = 549; + t["Dcaron"] = 722; + t["rcommaaccent"] = 389; + t["Ntilde"] = 722; + t["otilde"] = 611; + t["Rcommaaccent"] = 722; + t["Lcommaaccent"] = 611; + t["Atilde"] = 722; + t["Aogonek"] = 722; + t["Aring"] = 722; + t["Otilde"] = 778; + t["zdotaccent"] = 500; + t["Ecaron"] = 667; + t["Iogonek"] = 278; + t["kcommaaccent"] = 556; + t["minus"] = 584; + t["Icircumflex"] = 278; + t["ncaron"] = 611; + t["tcommaaccent"] = 333; + t["logicalnot"] = 584; + t["odieresis"] = 611; + t["udieresis"] = 611; + t["notequal"] = 549; + t["gcommaaccent"] = 611; + t["eth"] = 611; + t["zcaron"] = 500; + t["ncommaaccent"] = 611; + t["onesuperior"] = 333; + t["imacron"] = 278; + t["Euro"] = 556; }); - t['Helvetica-Oblique'] = (0, _core_utils.getLookupTableFactory)(function (t) { - t['space'] = 278; - t['exclam'] = 278; - t['quotedbl'] = 355; - t['numbersign'] = 556; - t['dollar'] = 556; - t['percent'] = 889; - t['ampersand'] = 667; - t['quoteright'] = 222; - t['parenleft'] = 333; - t['parenright'] = 333; - t['asterisk'] = 389; - t['plus'] = 584; - t['comma'] = 278; - t['hyphen'] = 333; - t['period'] = 278; - t['slash'] = 278; - t['zero'] = 556; - t['one'] = 556; - t['two'] = 556; - t['three'] = 556; - t['four'] = 556; - t['five'] = 556; - t['six'] = 556; - t['seven'] = 556; - t['eight'] = 556; - t['nine'] = 556; - t['colon'] = 278; - t['semicolon'] = 278; - t['less'] = 584; - t['equal'] = 584; - t['greater'] = 584; - t['question'] = 556; - t['at'] = 1015; - t['A'] = 667; - t['B'] = 667; - t['C'] = 722; - t['D'] = 722; - t['E'] = 667; - t['F'] = 611; - t['G'] = 778; - t['H'] = 722; - t['I'] = 278; - t['J'] = 500; - t['K'] = 667; - t['L'] = 556; - t['M'] = 833; - t['N'] = 722; - t['O'] = 778; - t['P'] = 667; - t['Q'] = 778; - t['R'] = 722; - t['S'] = 667; - t['T'] = 611; - t['U'] = 722; - t['V'] = 667; - t['W'] = 944; - t['X'] = 667; - t['Y'] = 667; - t['Z'] = 611; - t['bracketleft'] = 278; - t['backslash'] = 278; - t['bracketright'] = 278; - t['asciicircum'] = 469; - t['underscore'] = 556; - t['quoteleft'] = 222; - t['a'] = 556; - t['b'] = 556; - t['c'] = 500; - t['d'] = 556; - t['e'] = 556; - t['f'] = 278; - t['g'] = 556; - t['h'] = 556; - t['i'] = 222; - t['j'] = 222; - t['k'] = 500; - t['l'] = 222; - t['m'] = 833; - t['n'] = 556; - t['o'] = 556; - t['p'] = 556; - t['q'] = 556; - t['r'] = 333; - t['s'] = 500; - t['t'] = 278; - t['u'] = 556; - t['v'] = 500; - t['w'] = 722; - t['x'] = 500; - t['y'] = 500; - t['z'] = 500; - t['braceleft'] = 334; - t['bar'] = 260; - t['braceright'] = 334; - t['asciitilde'] = 584; - t['exclamdown'] = 333; - t['cent'] = 556; - t['sterling'] = 556; - t['fraction'] = 167; - t['yen'] = 556; - t['florin'] = 556; - t['section'] = 556; - t['currency'] = 556; - t['quotesingle'] = 191; - t['quotedblleft'] = 333; - t['guillemotleft'] = 556; - t['guilsinglleft'] = 333; - t['guilsinglright'] = 333; - t['fi'] = 500; - t['fl'] = 500; - t['endash'] = 556; - t['dagger'] = 556; - t['daggerdbl'] = 556; - t['periodcentered'] = 278; - t['paragraph'] = 537; - t['bullet'] = 350; - t['quotesinglbase'] = 222; - t['quotedblbase'] = 333; - t['quotedblright'] = 333; - t['guillemotright'] = 556; - t['ellipsis'] = 1000; - t['perthousand'] = 1000; - t['questiondown'] = 611; - t['grave'] = 333; - t['acute'] = 333; - t['circumflex'] = 333; - t['tilde'] = 333; - t['macron'] = 333; - t['breve'] = 333; - t['dotaccent'] = 333; - t['dieresis'] = 333; - t['ring'] = 333; - t['cedilla'] = 333; - t['hungarumlaut'] = 333; - t['ogonek'] = 333; - t['caron'] = 333; - t['emdash'] = 1000; - t['AE'] = 1000; - t['ordfeminine'] = 370; - t['Lslash'] = 556; - t['Oslash'] = 778; - t['OE'] = 1000; - t['ordmasculine'] = 365; - t['ae'] = 889; - t['dotlessi'] = 278; - t['lslash'] = 222; - t['oslash'] = 611; - t['oe'] = 944; - t['germandbls'] = 611; - t['Idieresis'] = 278; - t['eacute'] = 556; - t['abreve'] = 556; - t['uhungarumlaut'] = 556; - t['ecaron'] = 556; - t['Ydieresis'] = 667; - t['divide'] = 584; - t['Yacute'] = 667; - t['Acircumflex'] = 667; - t['aacute'] = 556; - t['Ucircumflex'] = 722; - t['yacute'] = 500; - t['scommaaccent'] = 500; - t['ecircumflex'] = 556; - t['Uring'] = 722; - t['Udieresis'] = 722; - t['aogonek'] = 556; - t['Uacute'] = 722; - t['uogonek'] = 556; - t['Edieresis'] = 667; - t['Dcroat'] = 722; - t['commaaccent'] = 250; - t['copyright'] = 737; - t['Emacron'] = 667; - t['ccaron'] = 500; - t['aring'] = 556; - t['Ncommaaccent'] = 722; - t['lacute'] = 222; - t['agrave'] = 556; - t['Tcommaaccent'] = 611; - t['Cacute'] = 722; - t['atilde'] = 556; - t['Edotaccent'] = 667; - t['scaron'] = 500; - t['scedilla'] = 500; - t['iacute'] = 278; - t['lozenge'] = 471; - t['Rcaron'] = 722; - t['Gcommaaccent'] = 778; - t['ucircumflex'] = 556; - t['acircumflex'] = 556; - t['Amacron'] = 667; - t['rcaron'] = 333; - t['ccedilla'] = 500; - t['Zdotaccent'] = 611; - t['Thorn'] = 667; - t['Omacron'] = 778; - t['Racute'] = 722; - t['Sacute'] = 667; - t['dcaron'] = 643; - t['Umacron'] = 722; - t['uring'] = 556; - t['threesuperior'] = 333; - t['Ograve'] = 778; - t['Agrave'] = 667; - t['Abreve'] = 667; - t['multiply'] = 584; - t['uacute'] = 556; - t['Tcaron'] = 611; - t['partialdiff'] = 476; - t['ydieresis'] = 500; - t['Nacute'] = 722; - t['icircumflex'] = 278; - t['Ecircumflex'] = 667; - t['adieresis'] = 556; - t['edieresis'] = 556; - t['cacute'] = 500; - t['nacute'] = 556; - t['umacron'] = 556; - t['Ncaron'] = 722; - t['Iacute'] = 278; - t['plusminus'] = 584; - t['brokenbar'] = 260; - t['registered'] = 737; - t['Gbreve'] = 778; - t['Idotaccent'] = 278; - t['summation'] = 600; - t['Egrave'] = 667; - t['racute'] = 333; - t['omacron'] = 556; - t['Zacute'] = 611; - t['Zcaron'] = 611; - t['greaterequal'] = 549; - t['Eth'] = 722; - t['Ccedilla'] = 722; - t['lcommaaccent'] = 222; - t['tcaron'] = 317; - t['eogonek'] = 556; - t['Uogonek'] = 722; - t['Aacute'] = 667; - t['Adieresis'] = 667; - t['egrave'] = 556; - t['zacute'] = 500; - t['iogonek'] = 222; - t['Oacute'] = 778; - t['oacute'] = 556; - t['amacron'] = 556; - t['sacute'] = 500; - t['idieresis'] = 278; - t['Ocircumflex'] = 778; - t['Ugrave'] = 722; - t['Delta'] = 612; - t['thorn'] = 556; - t['twosuperior'] = 333; - t['Odieresis'] = 778; - t['mu'] = 556; - t['igrave'] = 278; - t['ohungarumlaut'] = 556; - t['Eogonek'] = 667; - t['dcroat'] = 556; - t['threequarters'] = 834; - t['Scedilla'] = 667; - t['lcaron'] = 299; - t['Kcommaaccent'] = 667; - t['Lacute'] = 556; - t['trademark'] = 1000; - t['edotaccent'] = 556; - t['Igrave'] = 278; - t['Imacron'] = 278; - t['Lcaron'] = 556; - t['onehalf'] = 834; - t['lessequal'] = 549; - t['ocircumflex'] = 556; - t['ntilde'] = 556; - t['Uhungarumlaut'] = 722; - t['Eacute'] = 667; - t['emacron'] = 556; - t['gbreve'] = 556; - t['onequarter'] = 834; - t['Scaron'] = 667; - t['Scommaaccent'] = 667; - t['Ohungarumlaut'] = 778; - t['degree'] = 400; - t['ograve'] = 556; - t['Ccaron'] = 722; - t['ugrave'] = 556; - t['radical'] = 453; - t['Dcaron'] = 722; - t['rcommaaccent'] = 333; - t['Ntilde'] = 722; - t['otilde'] = 556; - t['Rcommaaccent'] = 722; - t['Lcommaaccent'] = 556; - t['Atilde'] = 667; - t['Aogonek'] = 667; - t['Aring'] = 667; - t['Otilde'] = 778; - t['zdotaccent'] = 500; - t['Ecaron'] = 667; - t['Iogonek'] = 278; - t['kcommaaccent'] = 500; - t['minus'] = 584; - t['Icircumflex'] = 278; - t['ncaron'] = 556; - t['tcommaaccent'] = 278; - t['logicalnot'] = 584; - t['odieresis'] = 556; - t['udieresis'] = 556; - t['notequal'] = 549; - t['gcommaaccent'] = 556; - t['eth'] = 556; - t['zcaron'] = 500; - t['ncommaaccent'] = 556; - t['onesuperior'] = 333; - t['imacron'] = 278; - t['Euro'] = 556; + t["Helvetica-Oblique"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t["space"] = 278; + t["exclam"] = 278; + t["quotedbl"] = 355; + t["numbersign"] = 556; + t["dollar"] = 556; + t["percent"] = 889; + t["ampersand"] = 667; + t["quoteright"] = 222; + t["parenleft"] = 333; + t["parenright"] = 333; + t["asterisk"] = 389; + t["plus"] = 584; + t["comma"] = 278; + t["hyphen"] = 333; + t["period"] = 278; + t["slash"] = 278; + t["zero"] = 556; + t["one"] = 556; + t["two"] = 556; + t["three"] = 556; + t["four"] = 556; + t["five"] = 556; + t["six"] = 556; + t["seven"] = 556; + t["eight"] = 556; + t["nine"] = 556; + t["colon"] = 278; + t["semicolon"] = 278; + t["less"] = 584; + t["equal"] = 584; + t["greater"] = 584; + t["question"] = 556; + t["at"] = 1015; + t["A"] = 667; + t["B"] = 667; + t["C"] = 722; + t["D"] = 722; + t["E"] = 667; + t["F"] = 611; + t["G"] = 778; + t["H"] = 722; + t["I"] = 278; + t["J"] = 500; + t["K"] = 667; + t["L"] = 556; + t["M"] = 833; + t["N"] = 722; + t["O"] = 778; + t["P"] = 667; + t["Q"] = 778; + t["R"] = 722; + t["S"] = 667; + t["T"] = 611; + t["U"] = 722; + t["V"] = 667; + t["W"] = 944; + t["X"] = 667; + t["Y"] = 667; + t["Z"] = 611; + t["bracketleft"] = 278; + t["backslash"] = 278; + t["bracketright"] = 278; + t["asciicircum"] = 469; + t["underscore"] = 556; + t["quoteleft"] = 222; + t["a"] = 556; + t["b"] = 556; + t["c"] = 500; + t["d"] = 556; + t["e"] = 556; + t["f"] = 278; + t["g"] = 556; + t["h"] = 556; + t["i"] = 222; + t["j"] = 222; + t["k"] = 500; + t["l"] = 222; + t["m"] = 833; + t["n"] = 556; + t["o"] = 556; + t["p"] = 556; + t["q"] = 556; + t["r"] = 333; + t["s"] = 500; + t["t"] = 278; + t["u"] = 556; + t["v"] = 500; + t["w"] = 722; + t["x"] = 500; + t["y"] = 500; + t["z"] = 500; + t["braceleft"] = 334; + t["bar"] = 260; + t["braceright"] = 334; + t["asciitilde"] = 584; + t["exclamdown"] = 333; + t["cent"] = 556; + t["sterling"] = 556; + t["fraction"] = 167; + t["yen"] = 556; + t["florin"] = 556; + t["section"] = 556; + t["currency"] = 556; + t["quotesingle"] = 191; + t["quotedblleft"] = 333; + t["guillemotleft"] = 556; + t["guilsinglleft"] = 333; + t["guilsinglright"] = 333; + t["fi"] = 500; + t["fl"] = 500; + t["endash"] = 556; + t["dagger"] = 556; + t["daggerdbl"] = 556; + t["periodcentered"] = 278; + t["paragraph"] = 537; + t["bullet"] = 350; + t["quotesinglbase"] = 222; + t["quotedblbase"] = 333; + t["quotedblright"] = 333; + t["guillemotright"] = 556; + t["ellipsis"] = 1000; + t["perthousand"] = 1000; + t["questiondown"] = 611; + t["grave"] = 333; + t["acute"] = 333; + t["circumflex"] = 333; + t["tilde"] = 333; + t["macron"] = 333; + t["breve"] = 333; + t["dotaccent"] = 333; + t["dieresis"] = 333; + t["ring"] = 333; + t["cedilla"] = 333; + t["hungarumlaut"] = 333; + t["ogonek"] = 333; + t["caron"] = 333; + t["emdash"] = 1000; + t["AE"] = 1000; + t["ordfeminine"] = 370; + t["Lslash"] = 556; + t["Oslash"] = 778; + t["OE"] = 1000; + t["ordmasculine"] = 365; + t["ae"] = 889; + t["dotlessi"] = 278; + t["lslash"] = 222; + t["oslash"] = 611; + t["oe"] = 944; + t["germandbls"] = 611; + t["Idieresis"] = 278; + t["eacute"] = 556; + t["abreve"] = 556; + t["uhungarumlaut"] = 556; + t["ecaron"] = 556; + t["Ydieresis"] = 667; + t["divide"] = 584; + t["Yacute"] = 667; + t["Acircumflex"] = 667; + t["aacute"] = 556; + t["Ucircumflex"] = 722; + t["yacute"] = 500; + t["scommaaccent"] = 500; + t["ecircumflex"] = 556; + t["Uring"] = 722; + t["Udieresis"] = 722; + t["aogonek"] = 556; + t["Uacute"] = 722; + t["uogonek"] = 556; + t["Edieresis"] = 667; + t["Dcroat"] = 722; + t["commaaccent"] = 250; + t["copyright"] = 737; + t["Emacron"] = 667; + t["ccaron"] = 500; + t["aring"] = 556; + t["Ncommaaccent"] = 722; + t["lacute"] = 222; + t["agrave"] = 556; + t["Tcommaaccent"] = 611; + t["Cacute"] = 722; + t["atilde"] = 556; + t["Edotaccent"] = 667; + t["scaron"] = 500; + t["scedilla"] = 500; + t["iacute"] = 278; + t["lozenge"] = 471; + t["Rcaron"] = 722; + t["Gcommaaccent"] = 778; + t["ucircumflex"] = 556; + t["acircumflex"] = 556; + t["Amacron"] = 667; + t["rcaron"] = 333; + t["ccedilla"] = 500; + t["Zdotaccent"] = 611; + t["Thorn"] = 667; + t["Omacron"] = 778; + t["Racute"] = 722; + t["Sacute"] = 667; + t["dcaron"] = 643; + t["Umacron"] = 722; + t["uring"] = 556; + t["threesuperior"] = 333; + t["Ograve"] = 778; + t["Agrave"] = 667; + t["Abreve"] = 667; + t["multiply"] = 584; + t["uacute"] = 556; + t["Tcaron"] = 611; + t["partialdiff"] = 476; + t["ydieresis"] = 500; + t["Nacute"] = 722; + t["icircumflex"] = 278; + t["Ecircumflex"] = 667; + t["adieresis"] = 556; + t["edieresis"] = 556; + t["cacute"] = 500; + t["nacute"] = 556; + t["umacron"] = 556; + t["Ncaron"] = 722; + t["Iacute"] = 278; + t["plusminus"] = 584; + t["brokenbar"] = 260; + t["registered"] = 737; + t["Gbreve"] = 778; + t["Idotaccent"] = 278; + t["summation"] = 600; + t["Egrave"] = 667; + t["racute"] = 333; + t["omacron"] = 556; + t["Zacute"] = 611; + t["Zcaron"] = 611; + t["greaterequal"] = 549; + t["Eth"] = 722; + t["Ccedilla"] = 722; + t["lcommaaccent"] = 222; + t["tcaron"] = 317; + t["eogonek"] = 556; + t["Uogonek"] = 722; + t["Aacute"] = 667; + t["Adieresis"] = 667; + t["egrave"] = 556; + t["zacute"] = 500; + t["iogonek"] = 222; + t["Oacute"] = 778; + t["oacute"] = 556; + t["amacron"] = 556; + t["sacute"] = 500; + t["idieresis"] = 278; + t["Ocircumflex"] = 778; + t["Ugrave"] = 722; + t["Delta"] = 612; + t["thorn"] = 556; + t["twosuperior"] = 333; + t["Odieresis"] = 778; + t["mu"] = 556; + t["igrave"] = 278; + t["ohungarumlaut"] = 556; + t["Eogonek"] = 667; + t["dcroat"] = 556; + t["threequarters"] = 834; + t["Scedilla"] = 667; + t["lcaron"] = 299; + t["Kcommaaccent"] = 667; + t["Lacute"] = 556; + t["trademark"] = 1000; + t["edotaccent"] = 556; + t["Igrave"] = 278; + t["Imacron"] = 278; + t["Lcaron"] = 556; + t["onehalf"] = 834; + t["lessequal"] = 549; + t["ocircumflex"] = 556; + t["ntilde"] = 556; + t["Uhungarumlaut"] = 722; + t["Eacute"] = 667; + t["emacron"] = 556; + t["gbreve"] = 556; + t["onequarter"] = 834; + t["Scaron"] = 667; + t["Scommaaccent"] = 667; + t["Ohungarumlaut"] = 778; + t["degree"] = 400; + t["ograve"] = 556; + t["Ccaron"] = 722; + t["ugrave"] = 556; + t["radical"] = 453; + t["Dcaron"] = 722; + t["rcommaaccent"] = 333; + t["Ntilde"] = 722; + t["otilde"] = 556; + t["Rcommaaccent"] = 722; + t["Lcommaaccent"] = 556; + t["Atilde"] = 667; + t["Aogonek"] = 667; + t["Aring"] = 667; + t["Otilde"] = 778; + t["zdotaccent"] = 500; + t["Ecaron"] = 667; + t["Iogonek"] = 278; + t["kcommaaccent"] = 500; + t["minus"] = 584; + t["Icircumflex"] = 278; + t["ncaron"] = 556; + t["tcommaaccent"] = 278; + t["logicalnot"] = 584; + t["odieresis"] = 556; + t["udieresis"] = 556; + t["notequal"] = 549; + t["gcommaaccent"] = 556; + t["eth"] = 556; + t["zcaron"] = 500; + t["ncommaaccent"] = 556; + t["onesuperior"] = 333; + t["imacron"] = 278; + t["Euro"] = 556; }); - t['Symbol'] = (0, _core_utils.getLookupTableFactory)(function (t) { - t['space'] = 250; - t['exclam'] = 333; - t['universal'] = 713; - t['numbersign'] = 500; - t['existential'] = 549; - t['percent'] = 833; - t['ampersand'] = 778; - t['suchthat'] = 439; - t['parenleft'] = 333; - t['parenright'] = 333; - t['asteriskmath'] = 500; - t['plus'] = 549; - t['comma'] = 250; - t['minus'] = 549; - t['period'] = 250; - t['slash'] = 278; - t['zero'] = 500; - t['one'] = 500; - t['two'] = 500; - t['three'] = 500; - t['four'] = 500; - t['five'] = 500; - t['six'] = 500; - t['seven'] = 500; - t['eight'] = 500; - t['nine'] = 500; - t['colon'] = 278; - t['semicolon'] = 278; - t['less'] = 549; - t['equal'] = 549; - t['greater'] = 549; - t['question'] = 444; - t['congruent'] = 549; - t['Alpha'] = 722; - t['Beta'] = 667; - t['Chi'] = 722; - t['Delta'] = 612; - t['Epsilon'] = 611; - t['Phi'] = 763; - t['Gamma'] = 603; - t['Eta'] = 722; - t['Iota'] = 333; - t['theta1'] = 631; - t['Kappa'] = 722; - t['Lambda'] = 686; - t['Mu'] = 889; - t['Nu'] = 722; - t['Omicron'] = 722; - t['Pi'] = 768; - t['Theta'] = 741; - t['Rho'] = 556; - t['Sigma'] = 592; - t['Tau'] = 611; - t['Upsilon'] = 690; - t['sigma1'] = 439; - t['Omega'] = 768; - t['Xi'] = 645; - t['Psi'] = 795; - t['Zeta'] = 611; - t['bracketleft'] = 333; - t['therefore'] = 863; - t['bracketright'] = 333; - t['perpendicular'] = 658; - t['underscore'] = 500; - t['radicalex'] = 500; - t['alpha'] = 631; - t['beta'] = 549; - t['chi'] = 549; - t['delta'] = 494; - t['epsilon'] = 439; - t['phi'] = 521; - t['gamma'] = 411; - t['eta'] = 603; - t['iota'] = 329; - t['phi1'] = 603; - t['kappa'] = 549; - t['lambda'] = 549; - t['mu'] = 576; - t['nu'] = 521; - t['omicron'] = 549; - t['pi'] = 549; - t['theta'] = 521; - t['rho'] = 549; - t['sigma'] = 603; - t['tau'] = 439; - t['upsilon'] = 576; - t['omega1'] = 713; - t['omega'] = 686; - t['xi'] = 493; - t['psi'] = 686; - t['zeta'] = 494; - t['braceleft'] = 480; - t['bar'] = 200; - t['braceright'] = 480; - t['similar'] = 549; - t['Euro'] = 750; - t['Upsilon1'] = 620; - t['minute'] = 247; - t['lessequal'] = 549; - t['fraction'] = 167; - t['infinity'] = 713; - t['florin'] = 500; - t['club'] = 753; - t['diamond'] = 753; - t['heart'] = 753; - t['spade'] = 753; - t['arrowboth'] = 1042; - t['arrowleft'] = 987; - t['arrowup'] = 603; - t['arrowright'] = 987; - t['arrowdown'] = 603; - t['degree'] = 400; - t['plusminus'] = 549; - t['second'] = 411; - t['greaterequal'] = 549; - t['multiply'] = 549; - t['proportional'] = 713; - t['partialdiff'] = 494; - t['bullet'] = 460; - t['divide'] = 549; - t['notequal'] = 549; - t['equivalence'] = 549; - t['approxequal'] = 549; - t['ellipsis'] = 1000; - t['arrowvertex'] = 603; - t['arrowhorizex'] = 1000; - t['carriagereturn'] = 658; - t['aleph'] = 823; - t['Ifraktur'] = 686; - t['Rfraktur'] = 795; - t['weierstrass'] = 987; - t['circlemultiply'] = 768; - t['circleplus'] = 768; - t['emptyset'] = 823; - t['intersection'] = 768; - t['union'] = 768; - t['propersuperset'] = 713; - t['reflexsuperset'] = 713; - t['notsubset'] = 713; - t['propersubset'] = 713; - t['reflexsubset'] = 713; - t['element'] = 713; - t['notelement'] = 713; - t['angle'] = 768; - t['gradient'] = 713; - t['registerserif'] = 790; - t['copyrightserif'] = 790; - t['trademarkserif'] = 890; - t['product'] = 823; - t['radical'] = 549; - t['dotmath'] = 250; - t['logicalnot'] = 713; - t['logicaland'] = 603; - t['logicalor'] = 603; - t['arrowdblboth'] = 1042; - t['arrowdblleft'] = 987; - t['arrowdblup'] = 603; - t['arrowdblright'] = 987; - t['arrowdbldown'] = 603; - t['lozenge'] = 494; - t['angleleft'] = 329; - t['registersans'] = 790; - t['copyrightsans'] = 790; - t['trademarksans'] = 786; - t['summation'] = 713; - t['parenlefttp'] = 384; - t['parenleftex'] = 384; - t['parenleftbt'] = 384; - t['bracketlefttp'] = 384; - t['bracketleftex'] = 384; - t['bracketleftbt'] = 384; - t['bracelefttp'] = 494; - t['braceleftmid'] = 494; - t['braceleftbt'] = 494; - t['braceex'] = 494; - t['angleright'] = 329; - t['integral'] = 274; - t['integraltp'] = 686; - t['integralex'] = 686; - t['integralbt'] = 686; - t['parenrighttp'] = 384; - t['parenrightex'] = 384; - t['parenrightbt'] = 384; - t['bracketrighttp'] = 384; - t['bracketrightex'] = 384; - t['bracketrightbt'] = 384; - t['bracerighttp'] = 494; - t['bracerightmid'] = 494; - t['bracerightbt'] = 494; - t['apple'] = 790; + t["Symbol"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t["space"] = 250; + t["exclam"] = 333; + t["universal"] = 713; + t["numbersign"] = 500; + t["existential"] = 549; + t["percent"] = 833; + t["ampersand"] = 778; + t["suchthat"] = 439; + t["parenleft"] = 333; + t["parenright"] = 333; + t["asteriskmath"] = 500; + t["plus"] = 549; + t["comma"] = 250; + t["minus"] = 549; + t["period"] = 250; + t["slash"] = 278; + t["zero"] = 500; + t["one"] = 500; + t["two"] = 500; + t["three"] = 500; + t["four"] = 500; + t["five"] = 500; + t["six"] = 500; + t["seven"] = 500; + t["eight"] = 500; + t["nine"] = 500; + t["colon"] = 278; + t["semicolon"] = 278; + t["less"] = 549; + t["equal"] = 549; + t["greater"] = 549; + t["question"] = 444; + t["congruent"] = 549; + t["Alpha"] = 722; + t["Beta"] = 667; + t["Chi"] = 722; + t["Delta"] = 612; + t["Epsilon"] = 611; + t["Phi"] = 763; + t["Gamma"] = 603; + t["Eta"] = 722; + t["Iota"] = 333; + t["theta1"] = 631; + t["Kappa"] = 722; + t["Lambda"] = 686; + t["Mu"] = 889; + t["Nu"] = 722; + t["Omicron"] = 722; + t["Pi"] = 768; + t["Theta"] = 741; + t["Rho"] = 556; + t["Sigma"] = 592; + t["Tau"] = 611; + t["Upsilon"] = 690; + t["sigma1"] = 439; + t["Omega"] = 768; + t["Xi"] = 645; + t["Psi"] = 795; + t["Zeta"] = 611; + t["bracketleft"] = 333; + t["therefore"] = 863; + t["bracketright"] = 333; + t["perpendicular"] = 658; + t["underscore"] = 500; + t["radicalex"] = 500; + t["alpha"] = 631; + t["beta"] = 549; + t["chi"] = 549; + t["delta"] = 494; + t["epsilon"] = 439; + t["phi"] = 521; + t["gamma"] = 411; + t["eta"] = 603; + t["iota"] = 329; + t["phi1"] = 603; + t["kappa"] = 549; + t["lambda"] = 549; + t["mu"] = 576; + t["nu"] = 521; + t["omicron"] = 549; + t["pi"] = 549; + t["theta"] = 521; + t["rho"] = 549; + t["sigma"] = 603; + t["tau"] = 439; + t["upsilon"] = 576; + t["omega1"] = 713; + t["omega"] = 686; + t["xi"] = 493; + t["psi"] = 686; + t["zeta"] = 494; + t["braceleft"] = 480; + t["bar"] = 200; + t["braceright"] = 480; + t["similar"] = 549; + t["Euro"] = 750; + t["Upsilon1"] = 620; + t["minute"] = 247; + t["lessequal"] = 549; + t["fraction"] = 167; + t["infinity"] = 713; + t["florin"] = 500; + t["club"] = 753; + t["diamond"] = 753; + t["heart"] = 753; + t["spade"] = 753; + t["arrowboth"] = 1042; + t["arrowleft"] = 987; + t["arrowup"] = 603; + t["arrowright"] = 987; + t["arrowdown"] = 603; + t["degree"] = 400; + t["plusminus"] = 549; + t["second"] = 411; + t["greaterequal"] = 549; + t["multiply"] = 549; + t["proportional"] = 713; + t["partialdiff"] = 494; + t["bullet"] = 460; + t["divide"] = 549; + t["notequal"] = 549; + t["equivalence"] = 549; + t["approxequal"] = 549; + t["ellipsis"] = 1000; + t["arrowvertex"] = 603; + t["arrowhorizex"] = 1000; + t["carriagereturn"] = 658; + t["aleph"] = 823; + t["Ifraktur"] = 686; + t["Rfraktur"] = 795; + t["weierstrass"] = 987; + t["circlemultiply"] = 768; + t["circleplus"] = 768; + t["emptyset"] = 823; + t["intersection"] = 768; + t["union"] = 768; + t["propersuperset"] = 713; + t["reflexsuperset"] = 713; + t["notsubset"] = 713; + t["propersubset"] = 713; + t["reflexsubset"] = 713; + t["element"] = 713; + t["notelement"] = 713; + t["angle"] = 768; + t["gradient"] = 713; + t["registerserif"] = 790; + t["copyrightserif"] = 790; + t["trademarkserif"] = 890; + t["product"] = 823; + t["radical"] = 549; + t["dotmath"] = 250; + t["logicalnot"] = 713; + t["logicaland"] = 603; + t["logicalor"] = 603; + t["arrowdblboth"] = 1042; + t["arrowdblleft"] = 987; + t["arrowdblup"] = 603; + t["arrowdblright"] = 987; + t["arrowdbldown"] = 603; + t["lozenge"] = 494; + t["angleleft"] = 329; + t["registersans"] = 790; + t["copyrightsans"] = 790; + t["trademarksans"] = 786; + t["summation"] = 713; + t["parenlefttp"] = 384; + t["parenleftex"] = 384; + t["parenleftbt"] = 384; + t["bracketlefttp"] = 384; + t["bracketleftex"] = 384; + t["bracketleftbt"] = 384; + t["bracelefttp"] = 494; + t["braceleftmid"] = 494; + t["braceleftbt"] = 494; + t["braceex"] = 494; + t["angleright"] = 329; + t["integral"] = 274; + t["integraltp"] = 686; + t["integralex"] = 686; + t["integralbt"] = 686; + t["parenrighttp"] = 384; + t["parenrightex"] = 384; + t["parenrightbt"] = 384; + t["bracketrighttp"] = 384; + t["bracketrightex"] = 384; + t["bracketrightbt"] = 384; + t["bracerighttp"] = 494; + t["bracerightmid"] = 494; + t["bracerightbt"] = 494; + t["apple"] = 790; }); - t['Times-Roman'] = (0, _core_utils.getLookupTableFactory)(function (t) { - t['space'] = 250; - t['exclam'] = 333; - t['quotedbl'] = 408; - t['numbersign'] = 500; - t['dollar'] = 500; - t['percent'] = 833; - t['ampersand'] = 778; - t['quoteright'] = 333; - t['parenleft'] = 333; - t['parenright'] = 333; - t['asterisk'] = 500; - t['plus'] = 564; - t['comma'] = 250; - t['hyphen'] = 333; - t['period'] = 250; - t['slash'] = 278; - t['zero'] = 500; - t['one'] = 500; - t['two'] = 500; - t['three'] = 500; - t['four'] = 500; - t['five'] = 500; - t['six'] = 500; - t['seven'] = 500; - t['eight'] = 500; - t['nine'] = 500; - t['colon'] = 278; - t['semicolon'] = 278; - t['less'] = 564; - t['equal'] = 564; - t['greater'] = 564; - t['question'] = 444; - t['at'] = 921; - t['A'] = 722; - t['B'] = 667; - t['C'] = 667; - t['D'] = 722; - t['E'] = 611; - t['F'] = 556; - t['G'] = 722; - t['H'] = 722; - t['I'] = 333; - t['J'] = 389; - t['K'] = 722; - t['L'] = 611; - t['M'] = 889; - t['N'] = 722; - t['O'] = 722; - t['P'] = 556; - t['Q'] = 722; - t['R'] = 667; - t['S'] = 556; - t['T'] = 611; - t['U'] = 722; - t['V'] = 722; - t['W'] = 944; - t['X'] = 722; - t['Y'] = 722; - t['Z'] = 611; - t['bracketleft'] = 333; - t['backslash'] = 278; - t['bracketright'] = 333; - t['asciicircum'] = 469; - t['underscore'] = 500; - t['quoteleft'] = 333; - t['a'] = 444; - t['b'] = 500; - t['c'] = 444; - t['d'] = 500; - t['e'] = 444; - t['f'] = 333; - t['g'] = 500; - t['h'] = 500; - t['i'] = 278; - t['j'] = 278; - t['k'] = 500; - t['l'] = 278; - t['m'] = 778; - t['n'] = 500; - t['o'] = 500; - t['p'] = 500; - t['q'] = 500; - t['r'] = 333; - t['s'] = 389; - t['t'] = 278; - t['u'] = 500; - t['v'] = 500; - t['w'] = 722; - t['x'] = 500; - t['y'] = 500; - t['z'] = 444; - t['braceleft'] = 480; - t['bar'] = 200; - t['braceright'] = 480; - t['asciitilde'] = 541; - t['exclamdown'] = 333; - t['cent'] = 500; - t['sterling'] = 500; - t['fraction'] = 167; - t['yen'] = 500; - t['florin'] = 500; - t['section'] = 500; - t['currency'] = 500; - t['quotesingle'] = 180; - t['quotedblleft'] = 444; - t['guillemotleft'] = 500; - t['guilsinglleft'] = 333; - t['guilsinglright'] = 333; - t['fi'] = 556; - t['fl'] = 556; - t['endash'] = 500; - t['dagger'] = 500; - t['daggerdbl'] = 500; - t['periodcentered'] = 250; - t['paragraph'] = 453; - t['bullet'] = 350; - t['quotesinglbase'] = 333; - t['quotedblbase'] = 444; - t['quotedblright'] = 444; - t['guillemotright'] = 500; - t['ellipsis'] = 1000; - t['perthousand'] = 1000; - t['questiondown'] = 444; - t['grave'] = 333; - t['acute'] = 333; - t['circumflex'] = 333; - t['tilde'] = 333; - t['macron'] = 333; - t['breve'] = 333; - t['dotaccent'] = 333; - t['dieresis'] = 333; - t['ring'] = 333; - t['cedilla'] = 333; - t['hungarumlaut'] = 333; - t['ogonek'] = 333; - t['caron'] = 333; - t['emdash'] = 1000; - t['AE'] = 889; - t['ordfeminine'] = 276; - t['Lslash'] = 611; - t['Oslash'] = 722; - t['OE'] = 889; - t['ordmasculine'] = 310; - t['ae'] = 667; - t['dotlessi'] = 278; - t['lslash'] = 278; - t['oslash'] = 500; - t['oe'] = 722; - t['germandbls'] = 500; - t['Idieresis'] = 333; - t['eacute'] = 444; - t['abreve'] = 444; - t['uhungarumlaut'] = 500; - t['ecaron'] = 444; - t['Ydieresis'] = 722; - t['divide'] = 564; - t['Yacute'] = 722; - t['Acircumflex'] = 722; - t['aacute'] = 444; - t['Ucircumflex'] = 722; - t['yacute'] = 500; - t['scommaaccent'] = 389; - t['ecircumflex'] = 444; - t['Uring'] = 722; - t['Udieresis'] = 722; - t['aogonek'] = 444; - t['Uacute'] = 722; - t['uogonek'] = 500; - t['Edieresis'] = 611; - t['Dcroat'] = 722; - t['commaaccent'] = 250; - t['copyright'] = 760; - t['Emacron'] = 611; - t['ccaron'] = 444; - t['aring'] = 444; - t['Ncommaaccent'] = 722; - t['lacute'] = 278; - t['agrave'] = 444; - t['Tcommaaccent'] = 611; - t['Cacute'] = 667; - t['atilde'] = 444; - t['Edotaccent'] = 611; - t['scaron'] = 389; - t['scedilla'] = 389; - t['iacute'] = 278; - t['lozenge'] = 471; - t['Rcaron'] = 667; - t['Gcommaaccent'] = 722; - t['ucircumflex'] = 500; - t['acircumflex'] = 444; - t['Amacron'] = 722; - t['rcaron'] = 333; - t['ccedilla'] = 444; - t['Zdotaccent'] = 611; - t['Thorn'] = 556; - t['Omacron'] = 722; - t['Racute'] = 667; - t['Sacute'] = 556; - t['dcaron'] = 588; - t['Umacron'] = 722; - t['uring'] = 500; - t['threesuperior'] = 300; - t['Ograve'] = 722; - t['Agrave'] = 722; - t['Abreve'] = 722; - t['multiply'] = 564; - t['uacute'] = 500; - t['Tcaron'] = 611; - t['partialdiff'] = 476; - t['ydieresis'] = 500; - t['Nacute'] = 722; - t['icircumflex'] = 278; - t['Ecircumflex'] = 611; - t['adieresis'] = 444; - t['edieresis'] = 444; - t['cacute'] = 444; - t['nacute'] = 500; - t['umacron'] = 500; - t['Ncaron'] = 722; - t['Iacute'] = 333; - t['plusminus'] = 564; - t['brokenbar'] = 200; - t['registered'] = 760; - t['Gbreve'] = 722; - t['Idotaccent'] = 333; - t['summation'] = 600; - t['Egrave'] = 611; - t['racute'] = 333; - t['omacron'] = 500; - t['Zacute'] = 611; - t['Zcaron'] = 611; - t['greaterequal'] = 549; - t['Eth'] = 722; - t['Ccedilla'] = 667; - t['lcommaaccent'] = 278; - t['tcaron'] = 326; - t['eogonek'] = 444; - t['Uogonek'] = 722; - t['Aacute'] = 722; - t['Adieresis'] = 722; - t['egrave'] = 444; - t['zacute'] = 444; - t['iogonek'] = 278; - t['Oacute'] = 722; - t['oacute'] = 500; - t['amacron'] = 444; - t['sacute'] = 389; - t['idieresis'] = 278; - t['Ocircumflex'] = 722; - t['Ugrave'] = 722; - t['Delta'] = 612; - t['thorn'] = 500; - t['twosuperior'] = 300; - t['Odieresis'] = 722; - t['mu'] = 500; - t['igrave'] = 278; - t['ohungarumlaut'] = 500; - t['Eogonek'] = 611; - t['dcroat'] = 500; - t['threequarters'] = 750; - t['Scedilla'] = 556; - t['lcaron'] = 344; - t['Kcommaaccent'] = 722; - t['Lacute'] = 611; - t['trademark'] = 980; - t['edotaccent'] = 444; - t['Igrave'] = 333; - t['Imacron'] = 333; - t['Lcaron'] = 611; - t['onehalf'] = 750; - t['lessequal'] = 549; - t['ocircumflex'] = 500; - t['ntilde'] = 500; - t['Uhungarumlaut'] = 722; - t['Eacute'] = 611; - t['emacron'] = 444; - t['gbreve'] = 500; - t['onequarter'] = 750; - t['Scaron'] = 556; - t['Scommaaccent'] = 556; - t['Ohungarumlaut'] = 722; - t['degree'] = 400; - t['ograve'] = 500; - t['Ccaron'] = 667; - t['ugrave'] = 500; - t['radical'] = 453; - t['Dcaron'] = 722; - t['rcommaaccent'] = 333; - t['Ntilde'] = 722; - t['otilde'] = 500; - t['Rcommaaccent'] = 667; - t['Lcommaaccent'] = 611; - t['Atilde'] = 722; - t['Aogonek'] = 722; - t['Aring'] = 722; - t['Otilde'] = 722; - t['zdotaccent'] = 444; - t['Ecaron'] = 611; - t['Iogonek'] = 333; - t['kcommaaccent'] = 500; - t['minus'] = 564; - t['Icircumflex'] = 333; - t['ncaron'] = 500; - t['tcommaaccent'] = 278; - t['logicalnot'] = 564; - t['odieresis'] = 500; - t['udieresis'] = 500; - t['notequal'] = 549; - t['gcommaaccent'] = 500; - t['eth'] = 500; - t['zcaron'] = 444; - t['ncommaaccent'] = 500; - t['onesuperior'] = 300; - t['imacron'] = 278; - t['Euro'] = 500; + t["Times-Roman"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t["space"] = 250; + t["exclam"] = 333; + t["quotedbl"] = 408; + t["numbersign"] = 500; + t["dollar"] = 500; + t["percent"] = 833; + t["ampersand"] = 778; + t["quoteright"] = 333; + t["parenleft"] = 333; + t["parenright"] = 333; + t["asterisk"] = 500; + t["plus"] = 564; + t["comma"] = 250; + t["hyphen"] = 333; + t["period"] = 250; + t["slash"] = 278; + t["zero"] = 500; + t["one"] = 500; + t["two"] = 500; + t["three"] = 500; + t["four"] = 500; + t["five"] = 500; + t["six"] = 500; + t["seven"] = 500; + t["eight"] = 500; + t["nine"] = 500; + t["colon"] = 278; + t["semicolon"] = 278; + t["less"] = 564; + t["equal"] = 564; + t["greater"] = 564; + t["question"] = 444; + t["at"] = 921; + t["A"] = 722; + t["B"] = 667; + t["C"] = 667; + t["D"] = 722; + t["E"] = 611; + t["F"] = 556; + t["G"] = 722; + t["H"] = 722; + t["I"] = 333; + t["J"] = 389; + t["K"] = 722; + t["L"] = 611; + t["M"] = 889; + t["N"] = 722; + t["O"] = 722; + t["P"] = 556; + t["Q"] = 722; + t["R"] = 667; + t["S"] = 556; + t["T"] = 611; + t["U"] = 722; + t["V"] = 722; + t["W"] = 944; + t["X"] = 722; + t["Y"] = 722; + t["Z"] = 611; + t["bracketleft"] = 333; + t["backslash"] = 278; + t["bracketright"] = 333; + t["asciicircum"] = 469; + t["underscore"] = 500; + t["quoteleft"] = 333; + t["a"] = 444; + t["b"] = 500; + t["c"] = 444; + t["d"] = 500; + t["e"] = 444; + t["f"] = 333; + t["g"] = 500; + t["h"] = 500; + t["i"] = 278; + t["j"] = 278; + t["k"] = 500; + t["l"] = 278; + t["m"] = 778; + t["n"] = 500; + t["o"] = 500; + t["p"] = 500; + t["q"] = 500; + t["r"] = 333; + t["s"] = 389; + t["t"] = 278; + t["u"] = 500; + t["v"] = 500; + t["w"] = 722; + t["x"] = 500; + t["y"] = 500; + t["z"] = 444; + t["braceleft"] = 480; + t["bar"] = 200; + t["braceright"] = 480; + t["asciitilde"] = 541; + t["exclamdown"] = 333; + t["cent"] = 500; + t["sterling"] = 500; + t["fraction"] = 167; + t["yen"] = 500; + t["florin"] = 500; + t["section"] = 500; + t["currency"] = 500; + t["quotesingle"] = 180; + t["quotedblleft"] = 444; + t["guillemotleft"] = 500; + t["guilsinglleft"] = 333; + t["guilsinglright"] = 333; + t["fi"] = 556; + t["fl"] = 556; + t["endash"] = 500; + t["dagger"] = 500; + t["daggerdbl"] = 500; + t["periodcentered"] = 250; + t["paragraph"] = 453; + t["bullet"] = 350; + t["quotesinglbase"] = 333; + t["quotedblbase"] = 444; + t["quotedblright"] = 444; + t["guillemotright"] = 500; + t["ellipsis"] = 1000; + t["perthousand"] = 1000; + t["questiondown"] = 444; + t["grave"] = 333; + t["acute"] = 333; + t["circumflex"] = 333; + t["tilde"] = 333; + t["macron"] = 333; + t["breve"] = 333; + t["dotaccent"] = 333; + t["dieresis"] = 333; + t["ring"] = 333; + t["cedilla"] = 333; + t["hungarumlaut"] = 333; + t["ogonek"] = 333; + t["caron"] = 333; + t["emdash"] = 1000; + t["AE"] = 889; + t["ordfeminine"] = 276; + t["Lslash"] = 611; + t["Oslash"] = 722; + t["OE"] = 889; + t["ordmasculine"] = 310; + t["ae"] = 667; + t["dotlessi"] = 278; + t["lslash"] = 278; + t["oslash"] = 500; + t["oe"] = 722; + t["germandbls"] = 500; + t["Idieresis"] = 333; + t["eacute"] = 444; + t["abreve"] = 444; + t["uhungarumlaut"] = 500; + t["ecaron"] = 444; + t["Ydieresis"] = 722; + t["divide"] = 564; + t["Yacute"] = 722; + t["Acircumflex"] = 722; + t["aacute"] = 444; + t["Ucircumflex"] = 722; + t["yacute"] = 500; + t["scommaaccent"] = 389; + t["ecircumflex"] = 444; + t["Uring"] = 722; + t["Udieresis"] = 722; + t["aogonek"] = 444; + t["Uacute"] = 722; + t["uogonek"] = 500; + t["Edieresis"] = 611; + t["Dcroat"] = 722; + t["commaaccent"] = 250; + t["copyright"] = 760; + t["Emacron"] = 611; + t["ccaron"] = 444; + t["aring"] = 444; + t["Ncommaaccent"] = 722; + t["lacute"] = 278; + t["agrave"] = 444; + t["Tcommaaccent"] = 611; + t["Cacute"] = 667; + t["atilde"] = 444; + t["Edotaccent"] = 611; + t["scaron"] = 389; + t["scedilla"] = 389; + t["iacute"] = 278; + t["lozenge"] = 471; + t["Rcaron"] = 667; + t["Gcommaaccent"] = 722; + t["ucircumflex"] = 500; + t["acircumflex"] = 444; + t["Amacron"] = 722; + t["rcaron"] = 333; + t["ccedilla"] = 444; + t["Zdotaccent"] = 611; + t["Thorn"] = 556; + t["Omacron"] = 722; + t["Racute"] = 667; + t["Sacute"] = 556; + t["dcaron"] = 588; + t["Umacron"] = 722; + t["uring"] = 500; + t["threesuperior"] = 300; + t["Ograve"] = 722; + t["Agrave"] = 722; + t["Abreve"] = 722; + t["multiply"] = 564; + t["uacute"] = 500; + t["Tcaron"] = 611; + t["partialdiff"] = 476; + t["ydieresis"] = 500; + t["Nacute"] = 722; + t["icircumflex"] = 278; + t["Ecircumflex"] = 611; + t["adieresis"] = 444; + t["edieresis"] = 444; + t["cacute"] = 444; + t["nacute"] = 500; + t["umacron"] = 500; + t["Ncaron"] = 722; + t["Iacute"] = 333; + t["plusminus"] = 564; + t["brokenbar"] = 200; + t["registered"] = 760; + t["Gbreve"] = 722; + t["Idotaccent"] = 333; + t["summation"] = 600; + t["Egrave"] = 611; + t["racute"] = 333; + t["omacron"] = 500; + t["Zacute"] = 611; + t["Zcaron"] = 611; + t["greaterequal"] = 549; + t["Eth"] = 722; + t["Ccedilla"] = 667; + t["lcommaaccent"] = 278; + t["tcaron"] = 326; + t["eogonek"] = 444; + t["Uogonek"] = 722; + t["Aacute"] = 722; + t["Adieresis"] = 722; + t["egrave"] = 444; + t["zacute"] = 444; + t["iogonek"] = 278; + t["Oacute"] = 722; + t["oacute"] = 500; + t["amacron"] = 444; + t["sacute"] = 389; + t["idieresis"] = 278; + t["Ocircumflex"] = 722; + t["Ugrave"] = 722; + t["Delta"] = 612; + t["thorn"] = 500; + t["twosuperior"] = 300; + t["Odieresis"] = 722; + t["mu"] = 500; + t["igrave"] = 278; + t["ohungarumlaut"] = 500; + t["Eogonek"] = 611; + t["dcroat"] = 500; + t["threequarters"] = 750; + t["Scedilla"] = 556; + t["lcaron"] = 344; + t["Kcommaaccent"] = 722; + t["Lacute"] = 611; + t["trademark"] = 980; + t["edotaccent"] = 444; + t["Igrave"] = 333; + t["Imacron"] = 333; + t["Lcaron"] = 611; + t["onehalf"] = 750; + t["lessequal"] = 549; + t["ocircumflex"] = 500; + t["ntilde"] = 500; + t["Uhungarumlaut"] = 722; + t["Eacute"] = 611; + t["emacron"] = 444; + t["gbreve"] = 500; + t["onequarter"] = 750; + t["Scaron"] = 556; + t["Scommaaccent"] = 556; + t["Ohungarumlaut"] = 722; + t["degree"] = 400; + t["ograve"] = 500; + t["Ccaron"] = 667; + t["ugrave"] = 500; + t["radical"] = 453; + t["Dcaron"] = 722; + t["rcommaaccent"] = 333; + t["Ntilde"] = 722; + t["otilde"] = 500; + t["Rcommaaccent"] = 667; + t["Lcommaaccent"] = 611; + t["Atilde"] = 722; + t["Aogonek"] = 722; + t["Aring"] = 722; + t["Otilde"] = 722; + t["zdotaccent"] = 444; + t["Ecaron"] = 611; + t["Iogonek"] = 333; + t["kcommaaccent"] = 500; + t["minus"] = 564; + t["Icircumflex"] = 333; + t["ncaron"] = 500; + t["tcommaaccent"] = 278; + t["logicalnot"] = 564; + t["odieresis"] = 500; + t["udieresis"] = 500; + t["notequal"] = 549; + t["gcommaaccent"] = 500; + t["eth"] = 500; + t["zcaron"] = 444; + t["ncommaaccent"] = 500; + t["onesuperior"] = 300; + t["imacron"] = 278; + t["Euro"] = 500; }); - t['Times-Bold'] = (0, _core_utils.getLookupTableFactory)(function (t) { - t['space'] = 250; - t['exclam'] = 333; - t['quotedbl'] = 555; - t['numbersign'] = 500; - t['dollar'] = 500; - t['percent'] = 1000; - t['ampersand'] = 833; - t['quoteright'] = 333; - t['parenleft'] = 333; - t['parenright'] = 333; - t['asterisk'] = 500; - t['plus'] = 570; - t['comma'] = 250; - t['hyphen'] = 333; - t['period'] = 250; - t['slash'] = 278; - t['zero'] = 500; - t['one'] = 500; - t['two'] = 500; - t['three'] = 500; - t['four'] = 500; - t['five'] = 500; - t['six'] = 500; - t['seven'] = 500; - t['eight'] = 500; - t['nine'] = 500; - t['colon'] = 333; - t['semicolon'] = 333; - t['less'] = 570; - t['equal'] = 570; - t['greater'] = 570; - t['question'] = 500; - t['at'] = 930; - t['A'] = 722; - t['B'] = 667; - t['C'] = 722; - t['D'] = 722; - t['E'] = 667; - t['F'] = 611; - t['G'] = 778; - t['H'] = 778; - t['I'] = 389; - t['J'] = 500; - t['K'] = 778; - t['L'] = 667; - t['M'] = 944; - t['N'] = 722; - t['O'] = 778; - t['P'] = 611; - t['Q'] = 778; - t['R'] = 722; - t['S'] = 556; - t['T'] = 667; - t['U'] = 722; - t['V'] = 722; - t['W'] = 1000; - t['X'] = 722; - t['Y'] = 722; - t['Z'] = 667; - t['bracketleft'] = 333; - t['backslash'] = 278; - t['bracketright'] = 333; - t['asciicircum'] = 581; - t['underscore'] = 500; - t['quoteleft'] = 333; - t['a'] = 500; - t['b'] = 556; - t['c'] = 444; - t['d'] = 556; - t['e'] = 444; - t['f'] = 333; - t['g'] = 500; - t['h'] = 556; - t['i'] = 278; - t['j'] = 333; - t['k'] = 556; - t['l'] = 278; - t['m'] = 833; - t['n'] = 556; - t['o'] = 500; - t['p'] = 556; - t['q'] = 556; - t['r'] = 444; - t['s'] = 389; - t['t'] = 333; - t['u'] = 556; - t['v'] = 500; - t['w'] = 722; - t['x'] = 500; - t['y'] = 500; - t['z'] = 444; - t['braceleft'] = 394; - t['bar'] = 220; - t['braceright'] = 394; - t['asciitilde'] = 520; - t['exclamdown'] = 333; - t['cent'] = 500; - t['sterling'] = 500; - t['fraction'] = 167; - t['yen'] = 500; - t['florin'] = 500; - t['section'] = 500; - t['currency'] = 500; - t['quotesingle'] = 278; - t['quotedblleft'] = 500; - t['guillemotleft'] = 500; - t['guilsinglleft'] = 333; - t['guilsinglright'] = 333; - t['fi'] = 556; - t['fl'] = 556; - t['endash'] = 500; - t['dagger'] = 500; - t['daggerdbl'] = 500; - t['periodcentered'] = 250; - t['paragraph'] = 540; - t['bullet'] = 350; - t['quotesinglbase'] = 333; - t['quotedblbase'] = 500; - t['quotedblright'] = 500; - t['guillemotright'] = 500; - t['ellipsis'] = 1000; - t['perthousand'] = 1000; - t['questiondown'] = 500; - t['grave'] = 333; - t['acute'] = 333; - t['circumflex'] = 333; - t['tilde'] = 333; - t['macron'] = 333; - t['breve'] = 333; - t['dotaccent'] = 333; - t['dieresis'] = 333; - t['ring'] = 333; - t['cedilla'] = 333; - t['hungarumlaut'] = 333; - t['ogonek'] = 333; - t['caron'] = 333; - t['emdash'] = 1000; - t['AE'] = 1000; - t['ordfeminine'] = 300; - t['Lslash'] = 667; - t['Oslash'] = 778; - t['OE'] = 1000; - t['ordmasculine'] = 330; - t['ae'] = 722; - t['dotlessi'] = 278; - t['lslash'] = 278; - t['oslash'] = 500; - t['oe'] = 722; - t['germandbls'] = 556; - t['Idieresis'] = 389; - t['eacute'] = 444; - t['abreve'] = 500; - t['uhungarumlaut'] = 556; - t['ecaron'] = 444; - t['Ydieresis'] = 722; - t['divide'] = 570; - t['Yacute'] = 722; - t['Acircumflex'] = 722; - t['aacute'] = 500; - t['Ucircumflex'] = 722; - t['yacute'] = 500; - t['scommaaccent'] = 389; - t['ecircumflex'] = 444; - t['Uring'] = 722; - t['Udieresis'] = 722; - t['aogonek'] = 500; - t['Uacute'] = 722; - t['uogonek'] = 556; - t['Edieresis'] = 667; - t['Dcroat'] = 722; - t['commaaccent'] = 250; - t['copyright'] = 747; - t['Emacron'] = 667; - t['ccaron'] = 444; - t['aring'] = 500; - t['Ncommaaccent'] = 722; - t['lacute'] = 278; - t['agrave'] = 500; - t['Tcommaaccent'] = 667; - t['Cacute'] = 722; - t['atilde'] = 500; - t['Edotaccent'] = 667; - t['scaron'] = 389; - t['scedilla'] = 389; - t['iacute'] = 278; - t['lozenge'] = 494; - t['Rcaron'] = 722; - t['Gcommaaccent'] = 778; - t['ucircumflex'] = 556; - t['acircumflex'] = 500; - t['Amacron'] = 722; - t['rcaron'] = 444; - t['ccedilla'] = 444; - t['Zdotaccent'] = 667; - t['Thorn'] = 611; - t['Omacron'] = 778; - t['Racute'] = 722; - t['Sacute'] = 556; - t['dcaron'] = 672; - t['Umacron'] = 722; - t['uring'] = 556; - t['threesuperior'] = 300; - t['Ograve'] = 778; - t['Agrave'] = 722; - t['Abreve'] = 722; - t['multiply'] = 570; - t['uacute'] = 556; - t['Tcaron'] = 667; - t['partialdiff'] = 494; - t['ydieresis'] = 500; - t['Nacute'] = 722; - t['icircumflex'] = 278; - t['Ecircumflex'] = 667; - t['adieresis'] = 500; - t['edieresis'] = 444; - t['cacute'] = 444; - t['nacute'] = 556; - t['umacron'] = 556; - t['Ncaron'] = 722; - t['Iacute'] = 389; - t['plusminus'] = 570; - t['brokenbar'] = 220; - t['registered'] = 747; - t['Gbreve'] = 778; - t['Idotaccent'] = 389; - t['summation'] = 600; - t['Egrave'] = 667; - t['racute'] = 444; - t['omacron'] = 500; - t['Zacute'] = 667; - t['Zcaron'] = 667; - t['greaterequal'] = 549; - t['Eth'] = 722; - t['Ccedilla'] = 722; - t['lcommaaccent'] = 278; - t['tcaron'] = 416; - t['eogonek'] = 444; - t['Uogonek'] = 722; - t['Aacute'] = 722; - t['Adieresis'] = 722; - t['egrave'] = 444; - t['zacute'] = 444; - t['iogonek'] = 278; - t['Oacute'] = 778; - t['oacute'] = 500; - t['amacron'] = 500; - t['sacute'] = 389; - t['idieresis'] = 278; - t['Ocircumflex'] = 778; - t['Ugrave'] = 722; - t['Delta'] = 612; - t['thorn'] = 556; - t['twosuperior'] = 300; - t['Odieresis'] = 778; - t['mu'] = 556; - t['igrave'] = 278; - t['ohungarumlaut'] = 500; - t['Eogonek'] = 667; - t['dcroat'] = 556; - t['threequarters'] = 750; - t['Scedilla'] = 556; - t['lcaron'] = 394; - t['Kcommaaccent'] = 778; - t['Lacute'] = 667; - t['trademark'] = 1000; - t['edotaccent'] = 444; - t['Igrave'] = 389; - t['Imacron'] = 389; - t['Lcaron'] = 667; - t['onehalf'] = 750; - t['lessequal'] = 549; - t['ocircumflex'] = 500; - t['ntilde'] = 556; - t['Uhungarumlaut'] = 722; - t['Eacute'] = 667; - t['emacron'] = 444; - t['gbreve'] = 500; - t['onequarter'] = 750; - t['Scaron'] = 556; - t['Scommaaccent'] = 556; - t['Ohungarumlaut'] = 778; - t['degree'] = 400; - t['ograve'] = 500; - t['Ccaron'] = 722; - t['ugrave'] = 556; - t['radical'] = 549; - t['Dcaron'] = 722; - t['rcommaaccent'] = 444; - t['Ntilde'] = 722; - t['otilde'] = 500; - t['Rcommaaccent'] = 722; - t['Lcommaaccent'] = 667; - t['Atilde'] = 722; - t['Aogonek'] = 722; - t['Aring'] = 722; - t['Otilde'] = 778; - t['zdotaccent'] = 444; - t['Ecaron'] = 667; - t['Iogonek'] = 389; - t['kcommaaccent'] = 556; - t['minus'] = 570; - t['Icircumflex'] = 389; - t['ncaron'] = 556; - t['tcommaaccent'] = 333; - t['logicalnot'] = 570; - t['odieresis'] = 500; - t['udieresis'] = 556; - t['notequal'] = 549; - t['gcommaaccent'] = 500; - t['eth'] = 500; - t['zcaron'] = 444; - t['ncommaaccent'] = 556; - t['onesuperior'] = 300; - t['imacron'] = 278; - t['Euro'] = 500; + t["Times-Bold"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t["space"] = 250; + t["exclam"] = 333; + t["quotedbl"] = 555; + t["numbersign"] = 500; + t["dollar"] = 500; + t["percent"] = 1000; + t["ampersand"] = 833; + t["quoteright"] = 333; + t["parenleft"] = 333; + t["parenright"] = 333; + t["asterisk"] = 500; + t["plus"] = 570; + t["comma"] = 250; + t["hyphen"] = 333; + t["period"] = 250; + t["slash"] = 278; + t["zero"] = 500; + t["one"] = 500; + t["two"] = 500; + t["three"] = 500; + t["four"] = 500; + t["five"] = 500; + t["six"] = 500; + t["seven"] = 500; + t["eight"] = 500; + t["nine"] = 500; + t["colon"] = 333; + t["semicolon"] = 333; + t["less"] = 570; + t["equal"] = 570; + t["greater"] = 570; + t["question"] = 500; + t["at"] = 930; + t["A"] = 722; + t["B"] = 667; + t["C"] = 722; + t["D"] = 722; + t["E"] = 667; + t["F"] = 611; + t["G"] = 778; + t["H"] = 778; + t["I"] = 389; + t["J"] = 500; + t["K"] = 778; + t["L"] = 667; + t["M"] = 944; + t["N"] = 722; + t["O"] = 778; + t["P"] = 611; + t["Q"] = 778; + t["R"] = 722; + t["S"] = 556; + t["T"] = 667; + t["U"] = 722; + t["V"] = 722; + t["W"] = 1000; + t["X"] = 722; + t["Y"] = 722; + t["Z"] = 667; + t["bracketleft"] = 333; + t["backslash"] = 278; + t["bracketright"] = 333; + t["asciicircum"] = 581; + t["underscore"] = 500; + t["quoteleft"] = 333; + t["a"] = 500; + t["b"] = 556; + t["c"] = 444; + t["d"] = 556; + t["e"] = 444; + t["f"] = 333; + t["g"] = 500; + t["h"] = 556; + t["i"] = 278; + t["j"] = 333; + t["k"] = 556; + t["l"] = 278; + t["m"] = 833; + t["n"] = 556; + t["o"] = 500; + t["p"] = 556; + t["q"] = 556; + t["r"] = 444; + t["s"] = 389; + t["t"] = 333; + t["u"] = 556; + t["v"] = 500; + t["w"] = 722; + t["x"] = 500; + t["y"] = 500; + t["z"] = 444; + t["braceleft"] = 394; + t["bar"] = 220; + t["braceright"] = 394; + t["asciitilde"] = 520; + t["exclamdown"] = 333; + t["cent"] = 500; + t["sterling"] = 500; + t["fraction"] = 167; + t["yen"] = 500; + t["florin"] = 500; + t["section"] = 500; + t["currency"] = 500; + t["quotesingle"] = 278; + t["quotedblleft"] = 500; + t["guillemotleft"] = 500; + t["guilsinglleft"] = 333; + t["guilsinglright"] = 333; + t["fi"] = 556; + t["fl"] = 556; + t["endash"] = 500; + t["dagger"] = 500; + t["daggerdbl"] = 500; + t["periodcentered"] = 250; + t["paragraph"] = 540; + t["bullet"] = 350; + t["quotesinglbase"] = 333; + t["quotedblbase"] = 500; + t["quotedblright"] = 500; + t["guillemotright"] = 500; + t["ellipsis"] = 1000; + t["perthousand"] = 1000; + t["questiondown"] = 500; + t["grave"] = 333; + t["acute"] = 333; + t["circumflex"] = 333; + t["tilde"] = 333; + t["macron"] = 333; + t["breve"] = 333; + t["dotaccent"] = 333; + t["dieresis"] = 333; + t["ring"] = 333; + t["cedilla"] = 333; + t["hungarumlaut"] = 333; + t["ogonek"] = 333; + t["caron"] = 333; + t["emdash"] = 1000; + t["AE"] = 1000; + t["ordfeminine"] = 300; + t["Lslash"] = 667; + t["Oslash"] = 778; + t["OE"] = 1000; + t["ordmasculine"] = 330; + t["ae"] = 722; + t["dotlessi"] = 278; + t["lslash"] = 278; + t["oslash"] = 500; + t["oe"] = 722; + t["germandbls"] = 556; + t["Idieresis"] = 389; + t["eacute"] = 444; + t["abreve"] = 500; + t["uhungarumlaut"] = 556; + t["ecaron"] = 444; + t["Ydieresis"] = 722; + t["divide"] = 570; + t["Yacute"] = 722; + t["Acircumflex"] = 722; + t["aacute"] = 500; + t["Ucircumflex"] = 722; + t["yacute"] = 500; + t["scommaaccent"] = 389; + t["ecircumflex"] = 444; + t["Uring"] = 722; + t["Udieresis"] = 722; + t["aogonek"] = 500; + t["Uacute"] = 722; + t["uogonek"] = 556; + t["Edieresis"] = 667; + t["Dcroat"] = 722; + t["commaaccent"] = 250; + t["copyright"] = 747; + t["Emacron"] = 667; + t["ccaron"] = 444; + t["aring"] = 500; + t["Ncommaaccent"] = 722; + t["lacute"] = 278; + t["agrave"] = 500; + t["Tcommaaccent"] = 667; + t["Cacute"] = 722; + t["atilde"] = 500; + t["Edotaccent"] = 667; + t["scaron"] = 389; + t["scedilla"] = 389; + t["iacute"] = 278; + t["lozenge"] = 494; + t["Rcaron"] = 722; + t["Gcommaaccent"] = 778; + t["ucircumflex"] = 556; + t["acircumflex"] = 500; + t["Amacron"] = 722; + t["rcaron"] = 444; + t["ccedilla"] = 444; + t["Zdotaccent"] = 667; + t["Thorn"] = 611; + t["Omacron"] = 778; + t["Racute"] = 722; + t["Sacute"] = 556; + t["dcaron"] = 672; + t["Umacron"] = 722; + t["uring"] = 556; + t["threesuperior"] = 300; + t["Ograve"] = 778; + t["Agrave"] = 722; + t["Abreve"] = 722; + t["multiply"] = 570; + t["uacute"] = 556; + t["Tcaron"] = 667; + t["partialdiff"] = 494; + t["ydieresis"] = 500; + t["Nacute"] = 722; + t["icircumflex"] = 278; + t["Ecircumflex"] = 667; + t["adieresis"] = 500; + t["edieresis"] = 444; + t["cacute"] = 444; + t["nacute"] = 556; + t["umacron"] = 556; + t["Ncaron"] = 722; + t["Iacute"] = 389; + t["plusminus"] = 570; + t["brokenbar"] = 220; + t["registered"] = 747; + t["Gbreve"] = 778; + t["Idotaccent"] = 389; + t["summation"] = 600; + t["Egrave"] = 667; + t["racute"] = 444; + t["omacron"] = 500; + t["Zacute"] = 667; + t["Zcaron"] = 667; + t["greaterequal"] = 549; + t["Eth"] = 722; + t["Ccedilla"] = 722; + t["lcommaaccent"] = 278; + t["tcaron"] = 416; + t["eogonek"] = 444; + t["Uogonek"] = 722; + t["Aacute"] = 722; + t["Adieresis"] = 722; + t["egrave"] = 444; + t["zacute"] = 444; + t["iogonek"] = 278; + t["Oacute"] = 778; + t["oacute"] = 500; + t["amacron"] = 500; + t["sacute"] = 389; + t["idieresis"] = 278; + t["Ocircumflex"] = 778; + t["Ugrave"] = 722; + t["Delta"] = 612; + t["thorn"] = 556; + t["twosuperior"] = 300; + t["Odieresis"] = 778; + t["mu"] = 556; + t["igrave"] = 278; + t["ohungarumlaut"] = 500; + t["Eogonek"] = 667; + t["dcroat"] = 556; + t["threequarters"] = 750; + t["Scedilla"] = 556; + t["lcaron"] = 394; + t["Kcommaaccent"] = 778; + t["Lacute"] = 667; + t["trademark"] = 1000; + t["edotaccent"] = 444; + t["Igrave"] = 389; + t["Imacron"] = 389; + t["Lcaron"] = 667; + t["onehalf"] = 750; + t["lessequal"] = 549; + t["ocircumflex"] = 500; + t["ntilde"] = 556; + t["Uhungarumlaut"] = 722; + t["Eacute"] = 667; + t["emacron"] = 444; + t["gbreve"] = 500; + t["onequarter"] = 750; + t["Scaron"] = 556; + t["Scommaaccent"] = 556; + t["Ohungarumlaut"] = 778; + t["degree"] = 400; + t["ograve"] = 500; + t["Ccaron"] = 722; + t["ugrave"] = 556; + t["radical"] = 549; + t["Dcaron"] = 722; + t["rcommaaccent"] = 444; + t["Ntilde"] = 722; + t["otilde"] = 500; + t["Rcommaaccent"] = 722; + t["Lcommaaccent"] = 667; + t["Atilde"] = 722; + t["Aogonek"] = 722; + t["Aring"] = 722; + t["Otilde"] = 778; + t["zdotaccent"] = 444; + t["Ecaron"] = 667; + t["Iogonek"] = 389; + t["kcommaaccent"] = 556; + t["minus"] = 570; + t["Icircumflex"] = 389; + t["ncaron"] = 556; + t["tcommaaccent"] = 333; + t["logicalnot"] = 570; + t["odieresis"] = 500; + t["udieresis"] = 556; + t["notequal"] = 549; + t["gcommaaccent"] = 500; + t["eth"] = 500; + t["zcaron"] = 444; + t["ncommaaccent"] = 556; + t["onesuperior"] = 300; + t["imacron"] = 278; + t["Euro"] = 500; }); - t['Times-BoldItalic'] = (0, _core_utils.getLookupTableFactory)(function (t) { - t['space'] = 250; - t['exclam'] = 389; - t['quotedbl'] = 555; - t['numbersign'] = 500; - t['dollar'] = 500; - t['percent'] = 833; - t['ampersand'] = 778; - t['quoteright'] = 333; - t['parenleft'] = 333; - t['parenright'] = 333; - t['asterisk'] = 500; - t['plus'] = 570; - t['comma'] = 250; - t['hyphen'] = 333; - t['period'] = 250; - t['slash'] = 278; - t['zero'] = 500; - t['one'] = 500; - t['two'] = 500; - t['three'] = 500; - t['four'] = 500; - t['five'] = 500; - t['six'] = 500; - t['seven'] = 500; - t['eight'] = 500; - t['nine'] = 500; - t['colon'] = 333; - t['semicolon'] = 333; - t['less'] = 570; - t['equal'] = 570; - t['greater'] = 570; - t['question'] = 500; - t['at'] = 832; - t['A'] = 667; - t['B'] = 667; - t['C'] = 667; - t['D'] = 722; - t['E'] = 667; - t['F'] = 667; - t['G'] = 722; - t['H'] = 778; - t['I'] = 389; - t['J'] = 500; - t['K'] = 667; - t['L'] = 611; - t['M'] = 889; - t['N'] = 722; - t['O'] = 722; - t['P'] = 611; - t['Q'] = 722; - t['R'] = 667; - t['S'] = 556; - t['T'] = 611; - t['U'] = 722; - t['V'] = 667; - t['W'] = 889; - t['X'] = 667; - t['Y'] = 611; - t['Z'] = 611; - t['bracketleft'] = 333; - t['backslash'] = 278; - t['bracketright'] = 333; - t['asciicircum'] = 570; - t['underscore'] = 500; - t['quoteleft'] = 333; - t['a'] = 500; - t['b'] = 500; - t['c'] = 444; - t['d'] = 500; - t['e'] = 444; - t['f'] = 333; - t['g'] = 500; - t['h'] = 556; - t['i'] = 278; - t['j'] = 278; - t['k'] = 500; - t['l'] = 278; - t['m'] = 778; - t['n'] = 556; - t['o'] = 500; - t['p'] = 500; - t['q'] = 500; - t['r'] = 389; - t['s'] = 389; - t['t'] = 278; - t['u'] = 556; - t['v'] = 444; - t['w'] = 667; - t['x'] = 500; - t['y'] = 444; - t['z'] = 389; - t['braceleft'] = 348; - t['bar'] = 220; - t['braceright'] = 348; - t['asciitilde'] = 570; - t['exclamdown'] = 389; - t['cent'] = 500; - t['sterling'] = 500; - t['fraction'] = 167; - t['yen'] = 500; - t['florin'] = 500; - t['section'] = 500; - t['currency'] = 500; - t['quotesingle'] = 278; - t['quotedblleft'] = 500; - t['guillemotleft'] = 500; - t['guilsinglleft'] = 333; - t['guilsinglright'] = 333; - t['fi'] = 556; - t['fl'] = 556; - t['endash'] = 500; - t['dagger'] = 500; - t['daggerdbl'] = 500; - t['periodcentered'] = 250; - t['paragraph'] = 500; - t['bullet'] = 350; - t['quotesinglbase'] = 333; - t['quotedblbase'] = 500; - t['quotedblright'] = 500; - t['guillemotright'] = 500; - t['ellipsis'] = 1000; - t['perthousand'] = 1000; - t['questiondown'] = 500; - t['grave'] = 333; - t['acute'] = 333; - t['circumflex'] = 333; - t['tilde'] = 333; - t['macron'] = 333; - t['breve'] = 333; - t['dotaccent'] = 333; - t['dieresis'] = 333; - t['ring'] = 333; - t['cedilla'] = 333; - t['hungarumlaut'] = 333; - t['ogonek'] = 333; - t['caron'] = 333; - t['emdash'] = 1000; - t['AE'] = 944; - t['ordfeminine'] = 266; - t['Lslash'] = 611; - t['Oslash'] = 722; - t['OE'] = 944; - t['ordmasculine'] = 300; - t['ae'] = 722; - t['dotlessi'] = 278; - t['lslash'] = 278; - t['oslash'] = 500; - t['oe'] = 722; - t['germandbls'] = 500; - t['Idieresis'] = 389; - t['eacute'] = 444; - t['abreve'] = 500; - t['uhungarumlaut'] = 556; - t['ecaron'] = 444; - t['Ydieresis'] = 611; - t['divide'] = 570; - t['Yacute'] = 611; - t['Acircumflex'] = 667; - t['aacute'] = 500; - t['Ucircumflex'] = 722; - t['yacute'] = 444; - t['scommaaccent'] = 389; - t['ecircumflex'] = 444; - t['Uring'] = 722; - t['Udieresis'] = 722; - t['aogonek'] = 500; - t['Uacute'] = 722; - t['uogonek'] = 556; - t['Edieresis'] = 667; - t['Dcroat'] = 722; - t['commaaccent'] = 250; - t['copyright'] = 747; - t['Emacron'] = 667; - t['ccaron'] = 444; - t['aring'] = 500; - t['Ncommaaccent'] = 722; - t['lacute'] = 278; - t['agrave'] = 500; - t['Tcommaaccent'] = 611; - t['Cacute'] = 667; - t['atilde'] = 500; - t['Edotaccent'] = 667; - t['scaron'] = 389; - t['scedilla'] = 389; - t['iacute'] = 278; - t['lozenge'] = 494; - t['Rcaron'] = 667; - t['Gcommaaccent'] = 722; - t['ucircumflex'] = 556; - t['acircumflex'] = 500; - t['Amacron'] = 667; - t['rcaron'] = 389; - t['ccedilla'] = 444; - t['Zdotaccent'] = 611; - t['Thorn'] = 611; - t['Omacron'] = 722; - t['Racute'] = 667; - t['Sacute'] = 556; - t['dcaron'] = 608; - t['Umacron'] = 722; - t['uring'] = 556; - t['threesuperior'] = 300; - t['Ograve'] = 722; - t['Agrave'] = 667; - t['Abreve'] = 667; - t['multiply'] = 570; - t['uacute'] = 556; - t['Tcaron'] = 611; - t['partialdiff'] = 494; - t['ydieresis'] = 444; - t['Nacute'] = 722; - t['icircumflex'] = 278; - t['Ecircumflex'] = 667; - t['adieresis'] = 500; - t['edieresis'] = 444; - t['cacute'] = 444; - t['nacute'] = 556; - t['umacron'] = 556; - t['Ncaron'] = 722; - t['Iacute'] = 389; - t['plusminus'] = 570; - t['brokenbar'] = 220; - t['registered'] = 747; - t['Gbreve'] = 722; - t['Idotaccent'] = 389; - t['summation'] = 600; - t['Egrave'] = 667; - t['racute'] = 389; - t['omacron'] = 500; - t['Zacute'] = 611; - t['Zcaron'] = 611; - t['greaterequal'] = 549; - t['Eth'] = 722; - t['Ccedilla'] = 667; - t['lcommaaccent'] = 278; - t['tcaron'] = 366; - t['eogonek'] = 444; - t['Uogonek'] = 722; - t['Aacute'] = 667; - t['Adieresis'] = 667; - t['egrave'] = 444; - t['zacute'] = 389; - t['iogonek'] = 278; - t['Oacute'] = 722; - t['oacute'] = 500; - t['amacron'] = 500; - t['sacute'] = 389; - t['idieresis'] = 278; - t['Ocircumflex'] = 722; - t['Ugrave'] = 722; - t['Delta'] = 612; - t['thorn'] = 500; - t['twosuperior'] = 300; - t['Odieresis'] = 722; - t['mu'] = 576; - t['igrave'] = 278; - t['ohungarumlaut'] = 500; - t['Eogonek'] = 667; - t['dcroat'] = 500; - t['threequarters'] = 750; - t['Scedilla'] = 556; - t['lcaron'] = 382; - t['Kcommaaccent'] = 667; - t['Lacute'] = 611; - t['trademark'] = 1000; - t['edotaccent'] = 444; - t['Igrave'] = 389; - t['Imacron'] = 389; - t['Lcaron'] = 611; - t['onehalf'] = 750; - t['lessequal'] = 549; - t['ocircumflex'] = 500; - t['ntilde'] = 556; - t['Uhungarumlaut'] = 722; - t['Eacute'] = 667; - t['emacron'] = 444; - t['gbreve'] = 500; - t['onequarter'] = 750; - t['Scaron'] = 556; - t['Scommaaccent'] = 556; - t['Ohungarumlaut'] = 722; - t['degree'] = 400; - t['ograve'] = 500; - t['Ccaron'] = 667; - t['ugrave'] = 556; - t['radical'] = 549; - t['Dcaron'] = 722; - t['rcommaaccent'] = 389; - t['Ntilde'] = 722; - t['otilde'] = 500; - t['Rcommaaccent'] = 667; - t['Lcommaaccent'] = 611; - t['Atilde'] = 667; - t['Aogonek'] = 667; - t['Aring'] = 667; - t['Otilde'] = 722; - t['zdotaccent'] = 389; - t['Ecaron'] = 667; - t['Iogonek'] = 389; - t['kcommaaccent'] = 500; - t['minus'] = 606; - t['Icircumflex'] = 389; - t['ncaron'] = 556; - t['tcommaaccent'] = 278; - t['logicalnot'] = 606; - t['odieresis'] = 500; - t['udieresis'] = 556; - t['notequal'] = 549; - t['gcommaaccent'] = 500; - t['eth'] = 500; - t['zcaron'] = 389; - t['ncommaaccent'] = 556; - t['onesuperior'] = 300; - t['imacron'] = 278; - t['Euro'] = 500; + t["Times-BoldItalic"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t["space"] = 250; + t["exclam"] = 389; + t["quotedbl"] = 555; + t["numbersign"] = 500; + t["dollar"] = 500; + t["percent"] = 833; + t["ampersand"] = 778; + t["quoteright"] = 333; + t["parenleft"] = 333; + t["parenright"] = 333; + t["asterisk"] = 500; + t["plus"] = 570; + t["comma"] = 250; + t["hyphen"] = 333; + t["period"] = 250; + t["slash"] = 278; + t["zero"] = 500; + t["one"] = 500; + t["two"] = 500; + t["three"] = 500; + t["four"] = 500; + t["five"] = 500; + t["six"] = 500; + t["seven"] = 500; + t["eight"] = 500; + t["nine"] = 500; + t["colon"] = 333; + t["semicolon"] = 333; + t["less"] = 570; + t["equal"] = 570; + t["greater"] = 570; + t["question"] = 500; + t["at"] = 832; + t["A"] = 667; + t["B"] = 667; + t["C"] = 667; + t["D"] = 722; + t["E"] = 667; + t["F"] = 667; + t["G"] = 722; + t["H"] = 778; + t["I"] = 389; + t["J"] = 500; + t["K"] = 667; + t["L"] = 611; + t["M"] = 889; + t["N"] = 722; + t["O"] = 722; + t["P"] = 611; + t["Q"] = 722; + t["R"] = 667; + t["S"] = 556; + t["T"] = 611; + t["U"] = 722; + t["V"] = 667; + t["W"] = 889; + t["X"] = 667; + t["Y"] = 611; + t["Z"] = 611; + t["bracketleft"] = 333; + t["backslash"] = 278; + t["bracketright"] = 333; + t["asciicircum"] = 570; + t["underscore"] = 500; + t["quoteleft"] = 333; + t["a"] = 500; + t["b"] = 500; + t["c"] = 444; + t["d"] = 500; + t["e"] = 444; + t["f"] = 333; + t["g"] = 500; + t["h"] = 556; + t["i"] = 278; + t["j"] = 278; + t["k"] = 500; + t["l"] = 278; + t["m"] = 778; + t["n"] = 556; + t["o"] = 500; + t["p"] = 500; + t["q"] = 500; + t["r"] = 389; + t["s"] = 389; + t["t"] = 278; + t["u"] = 556; + t["v"] = 444; + t["w"] = 667; + t["x"] = 500; + t["y"] = 444; + t["z"] = 389; + t["braceleft"] = 348; + t["bar"] = 220; + t["braceright"] = 348; + t["asciitilde"] = 570; + t["exclamdown"] = 389; + t["cent"] = 500; + t["sterling"] = 500; + t["fraction"] = 167; + t["yen"] = 500; + t["florin"] = 500; + t["section"] = 500; + t["currency"] = 500; + t["quotesingle"] = 278; + t["quotedblleft"] = 500; + t["guillemotleft"] = 500; + t["guilsinglleft"] = 333; + t["guilsinglright"] = 333; + t["fi"] = 556; + t["fl"] = 556; + t["endash"] = 500; + t["dagger"] = 500; + t["daggerdbl"] = 500; + t["periodcentered"] = 250; + t["paragraph"] = 500; + t["bullet"] = 350; + t["quotesinglbase"] = 333; + t["quotedblbase"] = 500; + t["quotedblright"] = 500; + t["guillemotright"] = 500; + t["ellipsis"] = 1000; + t["perthousand"] = 1000; + t["questiondown"] = 500; + t["grave"] = 333; + t["acute"] = 333; + t["circumflex"] = 333; + t["tilde"] = 333; + t["macron"] = 333; + t["breve"] = 333; + t["dotaccent"] = 333; + t["dieresis"] = 333; + t["ring"] = 333; + t["cedilla"] = 333; + t["hungarumlaut"] = 333; + t["ogonek"] = 333; + t["caron"] = 333; + t["emdash"] = 1000; + t["AE"] = 944; + t["ordfeminine"] = 266; + t["Lslash"] = 611; + t["Oslash"] = 722; + t["OE"] = 944; + t["ordmasculine"] = 300; + t["ae"] = 722; + t["dotlessi"] = 278; + t["lslash"] = 278; + t["oslash"] = 500; + t["oe"] = 722; + t["germandbls"] = 500; + t["Idieresis"] = 389; + t["eacute"] = 444; + t["abreve"] = 500; + t["uhungarumlaut"] = 556; + t["ecaron"] = 444; + t["Ydieresis"] = 611; + t["divide"] = 570; + t["Yacute"] = 611; + t["Acircumflex"] = 667; + t["aacute"] = 500; + t["Ucircumflex"] = 722; + t["yacute"] = 444; + t["scommaaccent"] = 389; + t["ecircumflex"] = 444; + t["Uring"] = 722; + t["Udieresis"] = 722; + t["aogonek"] = 500; + t["Uacute"] = 722; + t["uogonek"] = 556; + t["Edieresis"] = 667; + t["Dcroat"] = 722; + t["commaaccent"] = 250; + t["copyright"] = 747; + t["Emacron"] = 667; + t["ccaron"] = 444; + t["aring"] = 500; + t["Ncommaaccent"] = 722; + t["lacute"] = 278; + t["agrave"] = 500; + t["Tcommaaccent"] = 611; + t["Cacute"] = 667; + t["atilde"] = 500; + t["Edotaccent"] = 667; + t["scaron"] = 389; + t["scedilla"] = 389; + t["iacute"] = 278; + t["lozenge"] = 494; + t["Rcaron"] = 667; + t["Gcommaaccent"] = 722; + t["ucircumflex"] = 556; + t["acircumflex"] = 500; + t["Amacron"] = 667; + t["rcaron"] = 389; + t["ccedilla"] = 444; + t["Zdotaccent"] = 611; + t["Thorn"] = 611; + t["Omacron"] = 722; + t["Racute"] = 667; + t["Sacute"] = 556; + t["dcaron"] = 608; + t["Umacron"] = 722; + t["uring"] = 556; + t["threesuperior"] = 300; + t["Ograve"] = 722; + t["Agrave"] = 667; + t["Abreve"] = 667; + t["multiply"] = 570; + t["uacute"] = 556; + t["Tcaron"] = 611; + t["partialdiff"] = 494; + t["ydieresis"] = 444; + t["Nacute"] = 722; + t["icircumflex"] = 278; + t["Ecircumflex"] = 667; + t["adieresis"] = 500; + t["edieresis"] = 444; + t["cacute"] = 444; + t["nacute"] = 556; + t["umacron"] = 556; + t["Ncaron"] = 722; + t["Iacute"] = 389; + t["plusminus"] = 570; + t["brokenbar"] = 220; + t["registered"] = 747; + t["Gbreve"] = 722; + t["Idotaccent"] = 389; + t["summation"] = 600; + t["Egrave"] = 667; + t["racute"] = 389; + t["omacron"] = 500; + t["Zacute"] = 611; + t["Zcaron"] = 611; + t["greaterequal"] = 549; + t["Eth"] = 722; + t["Ccedilla"] = 667; + t["lcommaaccent"] = 278; + t["tcaron"] = 366; + t["eogonek"] = 444; + t["Uogonek"] = 722; + t["Aacute"] = 667; + t["Adieresis"] = 667; + t["egrave"] = 444; + t["zacute"] = 389; + t["iogonek"] = 278; + t["Oacute"] = 722; + t["oacute"] = 500; + t["amacron"] = 500; + t["sacute"] = 389; + t["idieresis"] = 278; + t["Ocircumflex"] = 722; + t["Ugrave"] = 722; + t["Delta"] = 612; + t["thorn"] = 500; + t["twosuperior"] = 300; + t["Odieresis"] = 722; + t["mu"] = 576; + t["igrave"] = 278; + t["ohungarumlaut"] = 500; + t["Eogonek"] = 667; + t["dcroat"] = 500; + t["threequarters"] = 750; + t["Scedilla"] = 556; + t["lcaron"] = 382; + t["Kcommaaccent"] = 667; + t["Lacute"] = 611; + t["trademark"] = 1000; + t["edotaccent"] = 444; + t["Igrave"] = 389; + t["Imacron"] = 389; + t["Lcaron"] = 611; + t["onehalf"] = 750; + t["lessequal"] = 549; + t["ocircumflex"] = 500; + t["ntilde"] = 556; + t["Uhungarumlaut"] = 722; + t["Eacute"] = 667; + t["emacron"] = 444; + t["gbreve"] = 500; + t["onequarter"] = 750; + t["Scaron"] = 556; + t["Scommaaccent"] = 556; + t["Ohungarumlaut"] = 722; + t["degree"] = 400; + t["ograve"] = 500; + t["Ccaron"] = 667; + t["ugrave"] = 556; + t["radical"] = 549; + t["Dcaron"] = 722; + t["rcommaaccent"] = 389; + t["Ntilde"] = 722; + t["otilde"] = 500; + t["Rcommaaccent"] = 667; + t["Lcommaaccent"] = 611; + t["Atilde"] = 667; + t["Aogonek"] = 667; + t["Aring"] = 667; + t["Otilde"] = 722; + t["zdotaccent"] = 389; + t["Ecaron"] = 667; + t["Iogonek"] = 389; + t["kcommaaccent"] = 500; + t["minus"] = 606; + t["Icircumflex"] = 389; + t["ncaron"] = 556; + t["tcommaaccent"] = 278; + t["logicalnot"] = 606; + t["odieresis"] = 500; + t["udieresis"] = 556; + t["notequal"] = 549; + t["gcommaaccent"] = 500; + t["eth"] = 500; + t["zcaron"] = 389; + t["ncommaaccent"] = 556; + t["onesuperior"] = 300; + t["imacron"] = 278; + t["Euro"] = 500; }); - t['Times-Italic'] = (0, _core_utils.getLookupTableFactory)(function (t) { - t['space'] = 250; - t['exclam'] = 333; - t['quotedbl'] = 420; - t['numbersign'] = 500; - t['dollar'] = 500; - t['percent'] = 833; - t['ampersand'] = 778; - t['quoteright'] = 333; - t['parenleft'] = 333; - t['parenright'] = 333; - t['asterisk'] = 500; - t['plus'] = 675; - t['comma'] = 250; - t['hyphen'] = 333; - t['period'] = 250; - t['slash'] = 278; - t['zero'] = 500; - t['one'] = 500; - t['two'] = 500; - t['three'] = 500; - t['four'] = 500; - t['five'] = 500; - t['six'] = 500; - t['seven'] = 500; - t['eight'] = 500; - t['nine'] = 500; - t['colon'] = 333; - t['semicolon'] = 333; - t['less'] = 675; - t['equal'] = 675; - t['greater'] = 675; - t['question'] = 500; - t['at'] = 920; - t['A'] = 611; - t['B'] = 611; - t['C'] = 667; - t['D'] = 722; - t['E'] = 611; - t['F'] = 611; - t['G'] = 722; - t['H'] = 722; - t['I'] = 333; - t['J'] = 444; - t['K'] = 667; - t['L'] = 556; - t['M'] = 833; - t['N'] = 667; - t['O'] = 722; - t['P'] = 611; - t['Q'] = 722; - t['R'] = 611; - t['S'] = 500; - t['T'] = 556; - t['U'] = 722; - t['V'] = 611; - t['W'] = 833; - t['X'] = 611; - t['Y'] = 556; - t['Z'] = 556; - t['bracketleft'] = 389; - t['backslash'] = 278; - t['bracketright'] = 389; - t['asciicircum'] = 422; - t['underscore'] = 500; - t['quoteleft'] = 333; - t['a'] = 500; - t['b'] = 500; - t['c'] = 444; - t['d'] = 500; - t['e'] = 444; - t['f'] = 278; - t['g'] = 500; - t['h'] = 500; - t['i'] = 278; - t['j'] = 278; - t['k'] = 444; - t['l'] = 278; - t['m'] = 722; - t['n'] = 500; - t['o'] = 500; - t['p'] = 500; - t['q'] = 500; - t['r'] = 389; - t['s'] = 389; - t['t'] = 278; - t['u'] = 500; - t['v'] = 444; - t['w'] = 667; - t['x'] = 444; - t['y'] = 444; - t['z'] = 389; - t['braceleft'] = 400; - t['bar'] = 275; - t['braceright'] = 400; - t['asciitilde'] = 541; - t['exclamdown'] = 389; - t['cent'] = 500; - t['sterling'] = 500; - t['fraction'] = 167; - t['yen'] = 500; - t['florin'] = 500; - t['section'] = 500; - t['currency'] = 500; - t['quotesingle'] = 214; - t['quotedblleft'] = 556; - t['guillemotleft'] = 500; - t['guilsinglleft'] = 333; - t['guilsinglright'] = 333; - t['fi'] = 500; - t['fl'] = 500; - t['endash'] = 500; - t['dagger'] = 500; - t['daggerdbl'] = 500; - t['periodcentered'] = 250; - t['paragraph'] = 523; - t['bullet'] = 350; - t['quotesinglbase'] = 333; - t['quotedblbase'] = 556; - t['quotedblright'] = 556; - t['guillemotright'] = 500; - t['ellipsis'] = 889; - t['perthousand'] = 1000; - t['questiondown'] = 500; - t['grave'] = 333; - t['acute'] = 333; - t['circumflex'] = 333; - t['tilde'] = 333; - t['macron'] = 333; - t['breve'] = 333; - t['dotaccent'] = 333; - t['dieresis'] = 333; - t['ring'] = 333; - t['cedilla'] = 333; - t['hungarumlaut'] = 333; - t['ogonek'] = 333; - t['caron'] = 333; - t['emdash'] = 889; - t['AE'] = 889; - t['ordfeminine'] = 276; - t['Lslash'] = 556; - t['Oslash'] = 722; - t['OE'] = 944; - t['ordmasculine'] = 310; - t['ae'] = 667; - t['dotlessi'] = 278; - t['lslash'] = 278; - t['oslash'] = 500; - t['oe'] = 667; - t['germandbls'] = 500; - t['Idieresis'] = 333; - t['eacute'] = 444; - t['abreve'] = 500; - t['uhungarumlaut'] = 500; - t['ecaron'] = 444; - t['Ydieresis'] = 556; - t['divide'] = 675; - t['Yacute'] = 556; - t['Acircumflex'] = 611; - t['aacute'] = 500; - t['Ucircumflex'] = 722; - t['yacute'] = 444; - t['scommaaccent'] = 389; - t['ecircumflex'] = 444; - t['Uring'] = 722; - t['Udieresis'] = 722; - t['aogonek'] = 500; - t['Uacute'] = 722; - t['uogonek'] = 500; - t['Edieresis'] = 611; - t['Dcroat'] = 722; - t['commaaccent'] = 250; - t['copyright'] = 760; - t['Emacron'] = 611; - t['ccaron'] = 444; - t['aring'] = 500; - t['Ncommaaccent'] = 667; - t['lacute'] = 278; - t['agrave'] = 500; - t['Tcommaaccent'] = 556; - t['Cacute'] = 667; - t['atilde'] = 500; - t['Edotaccent'] = 611; - t['scaron'] = 389; - t['scedilla'] = 389; - t['iacute'] = 278; - t['lozenge'] = 471; - t['Rcaron'] = 611; - t['Gcommaaccent'] = 722; - t['ucircumflex'] = 500; - t['acircumflex'] = 500; - t['Amacron'] = 611; - t['rcaron'] = 389; - t['ccedilla'] = 444; - t['Zdotaccent'] = 556; - t['Thorn'] = 611; - t['Omacron'] = 722; - t['Racute'] = 611; - t['Sacute'] = 500; - t['dcaron'] = 544; - t['Umacron'] = 722; - t['uring'] = 500; - t['threesuperior'] = 300; - t['Ograve'] = 722; - t['Agrave'] = 611; - t['Abreve'] = 611; - t['multiply'] = 675; - t['uacute'] = 500; - t['Tcaron'] = 556; - t['partialdiff'] = 476; - t['ydieresis'] = 444; - t['Nacute'] = 667; - t['icircumflex'] = 278; - t['Ecircumflex'] = 611; - t['adieresis'] = 500; - t['edieresis'] = 444; - t['cacute'] = 444; - t['nacute'] = 500; - t['umacron'] = 500; - t['Ncaron'] = 667; - t['Iacute'] = 333; - t['plusminus'] = 675; - t['brokenbar'] = 275; - t['registered'] = 760; - t['Gbreve'] = 722; - t['Idotaccent'] = 333; - t['summation'] = 600; - t['Egrave'] = 611; - t['racute'] = 389; - t['omacron'] = 500; - t['Zacute'] = 556; - t['Zcaron'] = 556; - t['greaterequal'] = 549; - t['Eth'] = 722; - t['Ccedilla'] = 667; - t['lcommaaccent'] = 278; - t['tcaron'] = 300; - t['eogonek'] = 444; - t['Uogonek'] = 722; - t['Aacute'] = 611; - t['Adieresis'] = 611; - t['egrave'] = 444; - t['zacute'] = 389; - t['iogonek'] = 278; - t['Oacute'] = 722; - t['oacute'] = 500; - t['amacron'] = 500; - t['sacute'] = 389; - t['idieresis'] = 278; - t['Ocircumflex'] = 722; - t['Ugrave'] = 722; - t['Delta'] = 612; - t['thorn'] = 500; - t['twosuperior'] = 300; - t['Odieresis'] = 722; - t['mu'] = 500; - t['igrave'] = 278; - t['ohungarumlaut'] = 500; - t['Eogonek'] = 611; - t['dcroat'] = 500; - t['threequarters'] = 750; - t['Scedilla'] = 500; - t['lcaron'] = 300; - t['Kcommaaccent'] = 667; - t['Lacute'] = 556; - t['trademark'] = 980; - t['edotaccent'] = 444; - t['Igrave'] = 333; - t['Imacron'] = 333; - t['Lcaron'] = 611; - t['onehalf'] = 750; - t['lessequal'] = 549; - t['ocircumflex'] = 500; - t['ntilde'] = 500; - t['Uhungarumlaut'] = 722; - t['Eacute'] = 611; - t['emacron'] = 444; - t['gbreve'] = 500; - t['onequarter'] = 750; - t['Scaron'] = 500; - t['Scommaaccent'] = 500; - t['Ohungarumlaut'] = 722; - t['degree'] = 400; - t['ograve'] = 500; - t['Ccaron'] = 667; - t['ugrave'] = 500; - t['radical'] = 453; - t['Dcaron'] = 722; - t['rcommaaccent'] = 389; - t['Ntilde'] = 667; - t['otilde'] = 500; - t['Rcommaaccent'] = 611; - t['Lcommaaccent'] = 556; - t['Atilde'] = 611; - t['Aogonek'] = 611; - t['Aring'] = 611; - t['Otilde'] = 722; - t['zdotaccent'] = 389; - t['Ecaron'] = 611; - t['Iogonek'] = 333; - t['kcommaaccent'] = 444; - t['minus'] = 675; - t['Icircumflex'] = 333; - t['ncaron'] = 500; - t['tcommaaccent'] = 278; - t['logicalnot'] = 675; - t['odieresis'] = 500; - t['udieresis'] = 500; - t['notequal'] = 549; - t['gcommaaccent'] = 500; - t['eth'] = 500; - t['zcaron'] = 389; - t['ncommaaccent'] = 500; - t['onesuperior'] = 300; - t['imacron'] = 278; - t['Euro'] = 500; + t["Times-Italic"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t["space"] = 250; + t["exclam"] = 333; + t["quotedbl"] = 420; + t["numbersign"] = 500; + t["dollar"] = 500; + t["percent"] = 833; + t["ampersand"] = 778; + t["quoteright"] = 333; + t["parenleft"] = 333; + t["parenright"] = 333; + t["asterisk"] = 500; + t["plus"] = 675; + t["comma"] = 250; + t["hyphen"] = 333; + t["period"] = 250; + t["slash"] = 278; + t["zero"] = 500; + t["one"] = 500; + t["two"] = 500; + t["three"] = 500; + t["four"] = 500; + t["five"] = 500; + t["six"] = 500; + t["seven"] = 500; + t["eight"] = 500; + t["nine"] = 500; + t["colon"] = 333; + t["semicolon"] = 333; + t["less"] = 675; + t["equal"] = 675; + t["greater"] = 675; + t["question"] = 500; + t["at"] = 920; + t["A"] = 611; + t["B"] = 611; + t["C"] = 667; + t["D"] = 722; + t["E"] = 611; + t["F"] = 611; + t["G"] = 722; + t["H"] = 722; + t["I"] = 333; + t["J"] = 444; + t["K"] = 667; + t["L"] = 556; + t["M"] = 833; + t["N"] = 667; + t["O"] = 722; + t["P"] = 611; + t["Q"] = 722; + t["R"] = 611; + t["S"] = 500; + t["T"] = 556; + t["U"] = 722; + t["V"] = 611; + t["W"] = 833; + t["X"] = 611; + t["Y"] = 556; + t["Z"] = 556; + t["bracketleft"] = 389; + t["backslash"] = 278; + t["bracketright"] = 389; + t["asciicircum"] = 422; + t["underscore"] = 500; + t["quoteleft"] = 333; + t["a"] = 500; + t["b"] = 500; + t["c"] = 444; + t["d"] = 500; + t["e"] = 444; + t["f"] = 278; + t["g"] = 500; + t["h"] = 500; + t["i"] = 278; + t["j"] = 278; + t["k"] = 444; + t["l"] = 278; + t["m"] = 722; + t["n"] = 500; + t["o"] = 500; + t["p"] = 500; + t["q"] = 500; + t["r"] = 389; + t["s"] = 389; + t["t"] = 278; + t["u"] = 500; + t["v"] = 444; + t["w"] = 667; + t["x"] = 444; + t["y"] = 444; + t["z"] = 389; + t["braceleft"] = 400; + t["bar"] = 275; + t["braceright"] = 400; + t["asciitilde"] = 541; + t["exclamdown"] = 389; + t["cent"] = 500; + t["sterling"] = 500; + t["fraction"] = 167; + t["yen"] = 500; + t["florin"] = 500; + t["section"] = 500; + t["currency"] = 500; + t["quotesingle"] = 214; + t["quotedblleft"] = 556; + t["guillemotleft"] = 500; + t["guilsinglleft"] = 333; + t["guilsinglright"] = 333; + t["fi"] = 500; + t["fl"] = 500; + t["endash"] = 500; + t["dagger"] = 500; + t["daggerdbl"] = 500; + t["periodcentered"] = 250; + t["paragraph"] = 523; + t["bullet"] = 350; + t["quotesinglbase"] = 333; + t["quotedblbase"] = 556; + t["quotedblright"] = 556; + t["guillemotright"] = 500; + t["ellipsis"] = 889; + t["perthousand"] = 1000; + t["questiondown"] = 500; + t["grave"] = 333; + t["acute"] = 333; + t["circumflex"] = 333; + t["tilde"] = 333; + t["macron"] = 333; + t["breve"] = 333; + t["dotaccent"] = 333; + t["dieresis"] = 333; + t["ring"] = 333; + t["cedilla"] = 333; + t["hungarumlaut"] = 333; + t["ogonek"] = 333; + t["caron"] = 333; + t["emdash"] = 889; + t["AE"] = 889; + t["ordfeminine"] = 276; + t["Lslash"] = 556; + t["Oslash"] = 722; + t["OE"] = 944; + t["ordmasculine"] = 310; + t["ae"] = 667; + t["dotlessi"] = 278; + t["lslash"] = 278; + t["oslash"] = 500; + t["oe"] = 667; + t["germandbls"] = 500; + t["Idieresis"] = 333; + t["eacute"] = 444; + t["abreve"] = 500; + t["uhungarumlaut"] = 500; + t["ecaron"] = 444; + t["Ydieresis"] = 556; + t["divide"] = 675; + t["Yacute"] = 556; + t["Acircumflex"] = 611; + t["aacute"] = 500; + t["Ucircumflex"] = 722; + t["yacute"] = 444; + t["scommaaccent"] = 389; + t["ecircumflex"] = 444; + t["Uring"] = 722; + t["Udieresis"] = 722; + t["aogonek"] = 500; + t["Uacute"] = 722; + t["uogonek"] = 500; + t["Edieresis"] = 611; + t["Dcroat"] = 722; + t["commaaccent"] = 250; + t["copyright"] = 760; + t["Emacron"] = 611; + t["ccaron"] = 444; + t["aring"] = 500; + t["Ncommaaccent"] = 667; + t["lacute"] = 278; + t["agrave"] = 500; + t["Tcommaaccent"] = 556; + t["Cacute"] = 667; + t["atilde"] = 500; + t["Edotaccent"] = 611; + t["scaron"] = 389; + t["scedilla"] = 389; + t["iacute"] = 278; + t["lozenge"] = 471; + t["Rcaron"] = 611; + t["Gcommaaccent"] = 722; + t["ucircumflex"] = 500; + t["acircumflex"] = 500; + t["Amacron"] = 611; + t["rcaron"] = 389; + t["ccedilla"] = 444; + t["Zdotaccent"] = 556; + t["Thorn"] = 611; + t["Omacron"] = 722; + t["Racute"] = 611; + t["Sacute"] = 500; + t["dcaron"] = 544; + t["Umacron"] = 722; + t["uring"] = 500; + t["threesuperior"] = 300; + t["Ograve"] = 722; + t["Agrave"] = 611; + t["Abreve"] = 611; + t["multiply"] = 675; + t["uacute"] = 500; + t["Tcaron"] = 556; + t["partialdiff"] = 476; + t["ydieresis"] = 444; + t["Nacute"] = 667; + t["icircumflex"] = 278; + t["Ecircumflex"] = 611; + t["adieresis"] = 500; + t["edieresis"] = 444; + t["cacute"] = 444; + t["nacute"] = 500; + t["umacron"] = 500; + t["Ncaron"] = 667; + t["Iacute"] = 333; + t["plusminus"] = 675; + t["brokenbar"] = 275; + t["registered"] = 760; + t["Gbreve"] = 722; + t["Idotaccent"] = 333; + t["summation"] = 600; + t["Egrave"] = 611; + t["racute"] = 389; + t["omacron"] = 500; + t["Zacute"] = 556; + t["Zcaron"] = 556; + t["greaterequal"] = 549; + t["Eth"] = 722; + t["Ccedilla"] = 667; + t["lcommaaccent"] = 278; + t["tcaron"] = 300; + t["eogonek"] = 444; + t["Uogonek"] = 722; + t["Aacute"] = 611; + t["Adieresis"] = 611; + t["egrave"] = 444; + t["zacute"] = 389; + t["iogonek"] = 278; + t["Oacute"] = 722; + t["oacute"] = 500; + t["amacron"] = 500; + t["sacute"] = 389; + t["idieresis"] = 278; + t["Ocircumflex"] = 722; + t["Ugrave"] = 722; + t["Delta"] = 612; + t["thorn"] = 500; + t["twosuperior"] = 300; + t["Odieresis"] = 722; + t["mu"] = 500; + t["igrave"] = 278; + t["ohungarumlaut"] = 500; + t["Eogonek"] = 611; + t["dcroat"] = 500; + t["threequarters"] = 750; + t["Scedilla"] = 500; + t["lcaron"] = 300; + t["Kcommaaccent"] = 667; + t["Lacute"] = 556; + t["trademark"] = 980; + t["edotaccent"] = 444; + t["Igrave"] = 333; + t["Imacron"] = 333; + t["Lcaron"] = 611; + t["onehalf"] = 750; + t["lessequal"] = 549; + t["ocircumflex"] = 500; + t["ntilde"] = 500; + t["Uhungarumlaut"] = 722; + t["Eacute"] = 611; + t["emacron"] = 444; + t["gbreve"] = 500; + t["onequarter"] = 750; + t["Scaron"] = 500; + t["Scommaaccent"] = 500; + t["Ohungarumlaut"] = 722; + t["degree"] = 400; + t["ograve"] = 500; + t["Ccaron"] = 667; + t["ugrave"] = 500; + t["radical"] = 453; + t["Dcaron"] = 722; + t["rcommaaccent"] = 389; + t["Ntilde"] = 667; + t["otilde"] = 500; + t["Rcommaaccent"] = 611; + t["Lcommaaccent"] = 556; + t["Atilde"] = 611; + t["Aogonek"] = 611; + t["Aring"] = 611; + t["Otilde"] = 722; + t["zdotaccent"] = 389; + t["Ecaron"] = 611; + t["Iogonek"] = 333; + t["kcommaaccent"] = 444; + t["minus"] = 675; + t["Icircumflex"] = 333; + t["ncaron"] = 500; + t["tcommaaccent"] = 278; + t["logicalnot"] = 675; + t["odieresis"] = 500; + t["udieresis"] = 500; + t["notequal"] = 549; + t["gcommaaccent"] = 500; + t["eth"] = 500; + t["zcaron"] = 389; + t["ncommaaccent"] = 500; + t["onesuperior"] = 300; + t["imacron"] = 278; + t["Euro"] = 500; }); - t['ZapfDingbats'] = (0, _core_utils.getLookupTableFactory)(function (t) { - t['space'] = 278; - t['a1'] = 974; - t['a2'] = 961; - t['a202'] = 974; - t['a3'] = 980; - t['a4'] = 719; - t['a5'] = 789; - t['a119'] = 790; - t['a118'] = 791; - t['a117'] = 690; - t['a11'] = 960; - t['a12'] = 939; - t['a13'] = 549; - t['a14'] = 855; - t['a15'] = 911; - t['a16'] = 933; - t['a105'] = 911; - t['a17'] = 945; - t['a18'] = 974; - t['a19'] = 755; - t['a20'] = 846; - t['a21'] = 762; - t['a22'] = 761; - t['a23'] = 571; - t['a24'] = 677; - t['a25'] = 763; - t['a26'] = 760; - t['a27'] = 759; - t['a28'] = 754; - t['a6'] = 494; - t['a7'] = 552; - t['a8'] = 537; - t['a9'] = 577; - t['a10'] = 692; - t['a29'] = 786; - t['a30'] = 788; - t['a31'] = 788; - t['a32'] = 790; - t['a33'] = 793; - t['a34'] = 794; - t['a35'] = 816; - t['a36'] = 823; - t['a37'] = 789; - t['a38'] = 841; - t['a39'] = 823; - t['a40'] = 833; - t['a41'] = 816; - t['a42'] = 831; - t['a43'] = 923; - t['a44'] = 744; - t['a45'] = 723; - t['a46'] = 749; - t['a47'] = 790; - t['a48'] = 792; - t['a49'] = 695; - t['a50'] = 776; - t['a51'] = 768; - t['a52'] = 792; - t['a53'] = 759; - t['a54'] = 707; - t['a55'] = 708; - t['a56'] = 682; - t['a57'] = 701; - t['a58'] = 826; - t['a59'] = 815; - t['a60'] = 789; - t['a61'] = 789; - t['a62'] = 707; - t['a63'] = 687; - t['a64'] = 696; - t['a65'] = 689; - t['a66'] = 786; - t['a67'] = 787; - t['a68'] = 713; - t['a69'] = 791; - t['a70'] = 785; - t['a71'] = 791; - t['a72'] = 873; - t['a73'] = 761; - t['a74'] = 762; - t['a203'] = 762; - t['a75'] = 759; - t['a204'] = 759; - t['a76'] = 892; - t['a77'] = 892; - t['a78'] = 788; - t['a79'] = 784; - t['a81'] = 438; - t['a82'] = 138; - t['a83'] = 277; - t['a84'] = 415; - t['a97'] = 392; - t['a98'] = 392; - t['a99'] = 668; - t['a100'] = 668; - t['a89'] = 390; - t['a90'] = 390; - t['a93'] = 317; - t['a94'] = 317; - t['a91'] = 276; - t['a92'] = 276; - t['a205'] = 509; - t['a85'] = 509; - t['a206'] = 410; - t['a86'] = 410; - t['a87'] = 234; - t['a88'] = 234; - t['a95'] = 334; - t['a96'] = 334; - t['a101'] = 732; - t['a102'] = 544; - t['a103'] = 544; - t['a104'] = 910; - t['a106'] = 667; - t['a107'] = 760; - t['a108'] = 760; - t['a112'] = 776; - t['a111'] = 595; - t['a110'] = 694; - t['a109'] = 626; - t['a120'] = 788; - t['a121'] = 788; - t['a122'] = 788; - t['a123'] = 788; - t['a124'] = 788; - t['a125'] = 788; - t['a126'] = 788; - t['a127'] = 788; - t['a128'] = 788; - t['a129'] = 788; - t['a130'] = 788; - t['a131'] = 788; - t['a132'] = 788; - t['a133'] = 788; - t['a134'] = 788; - t['a135'] = 788; - t['a136'] = 788; - t['a137'] = 788; - t['a138'] = 788; - t['a139'] = 788; - t['a140'] = 788; - t['a141'] = 788; - t['a142'] = 788; - t['a143'] = 788; - t['a144'] = 788; - t['a145'] = 788; - t['a146'] = 788; - t['a147'] = 788; - t['a148'] = 788; - t['a149'] = 788; - t['a150'] = 788; - t['a151'] = 788; - t['a152'] = 788; - t['a153'] = 788; - t['a154'] = 788; - t['a155'] = 788; - t['a156'] = 788; - t['a157'] = 788; - t['a158'] = 788; - t['a159'] = 788; - t['a160'] = 894; - t['a161'] = 838; - t['a163'] = 1016; - t['a164'] = 458; - t['a196'] = 748; - t['a165'] = 924; - t['a192'] = 748; - t['a166'] = 918; - t['a167'] = 927; - t['a168'] = 928; - t['a169'] = 928; - t['a170'] = 834; - t['a171'] = 873; - t['a172'] = 828; - t['a173'] = 924; - t['a162'] = 924; - t['a174'] = 917; - t['a175'] = 930; - t['a176'] = 931; - t['a177'] = 463; - t['a178'] = 883; - t['a179'] = 836; - t['a193'] = 836; - t['a180'] = 867; - t['a199'] = 867; - t['a181'] = 696; - t['a200'] = 696; - t['a182'] = 874; - t['a201'] = 874; - t['a183'] = 760; - t['a184'] = 946; - t['a197'] = 771; - t['a185'] = 865; - t['a194'] = 771; - t['a198'] = 888; - t['a186'] = 967; - t['a195'] = 888; - t['a187'] = 831; - t['a188'] = 873; - t['a189'] = 927; - t['a190'] = 970; - t['a191'] = 918; + t["ZapfDingbats"] = (0, _core_utils.getLookupTableFactory)(function (t) { + t["space"] = 278; + t["a1"] = 974; + t["a2"] = 961; + t["a202"] = 974; + t["a3"] = 980; + t["a4"] = 719; + t["a5"] = 789; + t["a119"] = 790; + t["a118"] = 791; + t["a117"] = 690; + t["a11"] = 960; + t["a12"] = 939; + t["a13"] = 549; + t["a14"] = 855; + t["a15"] = 911; + t["a16"] = 933; + t["a105"] = 911; + t["a17"] = 945; + t["a18"] = 974; + t["a19"] = 755; + t["a20"] = 846; + t["a21"] = 762; + t["a22"] = 761; + t["a23"] = 571; + t["a24"] = 677; + t["a25"] = 763; + t["a26"] = 760; + t["a27"] = 759; + t["a28"] = 754; + t["a6"] = 494; + t["a7"] = 552; + t["a8"] = 537; + t["a9"] = 577; + t["a10"] = 692; + t["a29"] = 786; + t["a30"] = 788; + t["a31"] = 788; + t["a32"] = 790; + t["a33"] = 793; + t["a34"] = 794; + t["a35"] = 816; + t["a36"] = 823; + t["a37"] = 789; + t["a38"] = 841; + t["a39"] = 823; + t["a40"] = 833; + t["a41"] = 816; + t["a42"] = 831; + t["a43"] = 923; + t["a44"] = 744; + t["a45"] = 723; + t["a46"] = 749; + t["a47"] = 790; + t["a48"] = 792; + t["a49"] = 695; + t["a50"] = 776; + t["a51"] = 768; + t["a52"] = 792; + t["a53"] = 759; + t["a54"] = 707; + t["a55"] = 708; + t["a56"] = 682; + t["a57"] = 701; + t["a58"] = 826; + t["a59"] = 815; + t["a60"] = 789; + t["a61"] = 789; + t["a62"] = 707; + t["a63"] = 687; + t["a64"] = 696; + t["a65"] = 689; + t["a66"] = 786; + t["a67"] = 787; + t["a68"] = 713; + t["a69"] = 791; + t["a70"] = 785; + t["a71"] = 791; + t["a72"] = 873; + t["a73"] = 761; + t["a74"] = 762; + t["a203"] = 762; + t["a75"] = 759; + t["a204"] = 759; + t["a76"] = 892; + t["a77"] = 892; + t["a78"] = 788; + t["a79"] = 784; + t["a81"] = 438; + t["a82"] = 138; + t["a83"] = 277; + t["a84"] = 415; + t["a97"] = 392; + t["a98"] = 392; + t["a99"] = 668; + t["a100"] = 668; + t["a89"] = 390; + t["a90"] = 390; + t["a93"] = 317; + t["a94"] = 317; + t["a91"] = 276; + t["a92"] = 276; + t["a205"] = 509; + t["a85"] = 509; + t["a206"] = 410; + t["a86"] = 410; + t["a87"] = 234; + t["a88"] = 234; + t["a95"] = 334; + t["a96"] = 334; + t["a101"] = 732; + t["a102"] = 544; + t["a103"] = 544; + t["a104"] = 910; + t["a106"] = 667; + t["a107"] = 760; + t["a108"] = 760; + t["a112"] = 776; + t["a111"] = 595; + t["a110"] = 694; + t["a109"] = 626; + t["a120"] = 788; + t["a121"] = 788; + t["a122"] = 788; + t["a123"] = 788; + t["a124"] = 788; + t["a125"] = 788; + t["a126"] = 788; + t["a127"] = 788; + t["a128"] = 788; + t["a129"] = 788; + t["a130"] = 788; + t["a131"] = 788; + t["a132"] = 788; + t["a133"] = 788; + t["a134"] = 788; + t["a135"] = 788; + t["a136"] = 788; + t["a137"] = 788; + t["a138"] = 788; + t["a139"] = 788; + t["a140"] = 788; + t["a141"] = 788; + t["a142"] = 788; + t["a143"] = 788; + t["a144"] = 788; + t["a145"] = 788; + t["a146"] = 788; + t["a147"] = 788; + t["a148"] = 788; + t["a149"] = 788; + t["a150"] = 788; + t["a151"] = 788; + t["a152"] = 788; + t["a153"] = 788; + t["a154"] = 788; + t["a155"] = 788; + t["a156"] = 788; + t["a157"] = 788; + t["a158"] = 788; + t["a159"] = 788; + t["a160"] = 894; + t["a161"] = 838; + t["a163"] = 1016; + t["a164"] = 458; + t["a196"] = 748; + t["a165"] = 924; + t["a192"] = 748; + t["a166"] = 918; + t["a167"] = 927; + t["a168"] = 928; + t["a169"] = 928; + t["a170"] = 834; + t["a171"] = 873; + t["a172"] = 828; + t["a173"] = 924; + t["a162"] = 924; + t["a174"] = 917; + t["a175"] = 930; + t["a176"] = 931; + t["a177"] = 463; + t["a178"] = 883; + t["a179"] = 836; + t["a193"] = 836; + t["a180"] = 867; + t["a199"] = 867; + t["a181"] = 696; + t["a200"] = 696; + t["a182"] = 874; + t["a201"] = 874; + t["a183"] = 760; + t["a184"] = 946; + t["a197"] = 771; + t["a185"] = 865; + t["a194"] = 771; + t["a198"] = 888; + t["a186"] = 967; + t["a195"] = 888; + t["a187"] = 831; + t["a188"] = 873; + t["a189"] = 927; + t["a190"] = 970; + t["a191"] = 918; }); }); exports.getMetrics = getMetrics; /***/ }), -/* 40 */ +/* 39 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -42268,13 +42284,13 @@ exports.PostScriptCompiler = exports.PostScriptEvaluator = exports.PDFFunctionFa var _util = __w_pdfjs_require__(2); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _ps_parser = __w_pdfjs_require__(41); +var _ps_parser = __w_pdfjs_require__(40); let IsEvalSupportedCached = { get value() { - return (0, _util.shadow)(this, 'value', (0, _util.isEvalSupported)()); + return (0, _util.shadow)(this, "value", (0, _util.isEvalSupported)()); } }; @@ -42316,7 +42332,7 @@ function toNumberArray(arr) { const length = arr.length; for (let i = 0; i < length; i++) { - if (typeof arr[i] !== 'number') { + if (typeof arr[i] !== "number") { const result = new Array(length); for (let i = 0; i < length; i++) { @@ -42379,11 +42395,11 @@ var PDFFunction = function PDFFunctionClosure() { } var types = [this.constructSampled, null, this.constructInterpolated, this.constructStiched, this.constructPostScript]; - var typeNum = dict.get('FunctionType'); + var typeNum = dict.get("FunctionType"); var typeFn = types[typeNum]; if (!typeFn) { - throw new _util.FormatError('Unknown type of function'); + throw new _util.FormatError("Unknown type of function"); } return typeFn.call(this, { @@ -42498,26 +42514,26 @@ var PDFFunction = function PDFFunctionClosure() { return out; } - var domain = toNumberArray(dict.getArray('Domain')); - var range = toNumberArray(dict.getArray('Range')); + var domain = toNumberArray(dict.getArray("Domain")); + var range = toNumberArray(dict.getArray("Range")); if (!domain || !range) { - throw new _util.FormatError('No domain or range'); + throw new _util.FormatError("No domain or range"); } var inputSize = domain.length / 2; var outputSize = range.length / 2; domain = toMultiArray(domain); range = toMultiArray(range); - var size = toNumberArray(dict.getArray('Size')); - var bps = dict.get('BitsPerSample'); - var order = dict.get('Order') || 1; + var size = toNumberArray(dict.getArray("Size")); + var bps = dict.get("BitsPerSample"); + var order = dict.get("Order") || 1; if (order !== 1) { - (0, _util.info)('No support for cubic spline interpolation: ' + order); + (0, _util.info)("No support for cubic spline interpolation: " + order); } - var encode = toNumberArray(dict.getArray('Encode')); + var encode = toNumberArray(dict.getArray("Encode")); if (!encode) { encode = []; @@ -42529,7 +42545,7 @@ var PDFFunction = function PDFFunctionClosure() { encode = toMultiArray(encode); } - var decode = toNumberArray(dict.getArray('Decode')); + var decode = toNumberArray(dict.getArray("Decode")); if (!decode) { decode = range; @@ -42617,9 +42633,9 @@ var PDFFunction = function PDFFunctionClosure() { fn, dict }) { - var c0 = toNumberArray(dict.getArray('C0')) || [0]; - var c1 = toNumberArray(dict.getArray('C1')) || [1]; - var n = dict.get('N'); + var c0 = toNumberArray(dict.getArray("C0")) || [0]; + var c1 = toNumberArray(dict.getArray("C1")) || [1]; + var n = dict.get("N"); var length = c0.length; var diff = []; @@ -42654,19 +42670,19 @@ var PDFFunction = function PDFFunctionClosure() { fn, dict }) { - var domain = toNumberArray(dict.getArray('Domain')); + var domain = toNumberArray(dict.getArray("Domain")); if (!domain) { - throw new _util.FormatError('No domain'); + throw new _util.FormatError("No domain"); } var inputSize = domain.length / 2; if (inputSize !== 1) { - throw new _util.FormatError('Bad domain for stiched function'); + throw new _util.FormatError("Bad domain for stiched function"); } - var fnRefs = dict.get('Functions'); + var fnRefs = dict.get("Functions"); var fns = []; for (var i = 0, ii = fnRefs.length; i < ii; ++i) { @@ -42677,8 +42693,8 @@ var PDFFunction = function PDFFunctionClosure() { })); } - var bounds = toNumberArray(dict.getArray('Bounds')); - var encode = toNumberArray(dict.getArray('Encode')); + var bounds = toNumberArray(dict.getArray("Bounds")); + var encode = toNumberArray(dict.getArray("Encode")); return [CONSTRUCT_STICHED, domain, bounds, encode, fns]; }, @@ -42736,15 +42752,15 @@ var PDFFunction = function PDFFunctionClosure() { fn, dict }) { - var domain = toNumberArray(dict.getArray('Domain')); - var range = toNumberArray(dict.getArray('Range')); + var domain = toNumberArray(dict.getArray("Domain")); + var range = toNumberArray(dict.getArray("Range")); if (!domain) { - throw new _util.FormatError('No domain.'); + throw new _util.FormatError("No domain."); } if (!range) { - throw new _util.FormatError('No range.'); + throw new _util.FormatError("No range."); } var lexer = new _ps_parser.PostScriptLexer(fn); @@ -42766,11 +42782,11 @@ var PDFFunction = function PDFFunctionClosure() { let compiled = new PostScriptCompiler().compile(code, domain, range); if (compiled) { - return new Function('src', 'srcOffset', 'dest', 'destOffset', compiled); + return new Function("src", "srcOffset", "dest", "destOffset", compiled); } } - (0, _util.info)('Unable to compile PS function'); + (0, _util.info)("Unable to compile PS function"); var numOutputs = range.length >> 1; var numInputs = domain.length >> 1; var evaluator = new PostScriptEvaluator(code); @@ -42780,13 +42796,13 @@ var PDFFunction = function PDFFunctionClosure() { var tmpBuf = new Float32Array(numInputs); return function constructPostScriptFromIRResult(src, srcOffset, dest, destOffset) { var i, value; - var key = ''; + var key = ""; var input = tmpBuf; for (i = 0; i < numInputs; i++) { value = src[srcOffset + i]; input[i] = value; - key += value + '_'; + key += value + "_"; } var cachedValue = cache[key]; @@ -42832,7 +42848,7 @@ var PDFFunction = function PDFFunctionClosure() { function isPDFFunction(v) { var fnDict; - if (typeof v !== 'object') { + if (typeof v !== "object") { return false; } else if ((0, _primitives.isDict)(v)) { fnDict = v; @@ -42842,7 +42858,7 @@ function isPDFFunction(v) { return false; } - return fnDict.has('FunctionType'); + return fnDict.has("FunctionType"); } var PostScriptStack = function PostScriptStackClosure() { @@ -42855,21 +42871,21 @@ var PostScriptStack = function PostScriptStackClosure() { PostScriptStack.prototype = { push: function PostScriptStack_push(value) { if (this.stack.length >= MAX_STACK_SIZE) { - throw new Error('PostScript function stack overflow.'); + throw new Error("PostScript function stack overflow."); } this.stack.push(value); }, pop: function PostScriptStack_pop() { if (this.stack.length <= 0) { - throw new Error('PostScript function stack underflow.'); + throw new Error("PostScript function stack underflow."); } return this.stack.pop(); }, copy: function PostScriptStack_copy(n) { if (this.stack.length + n >= MAX_STACK_SIZE) { - throw new Error('PostScript function stack overflow.'); + throw new Error("PostScript function stack overflow."); } var stack = this.stack; @@ -42928,13 +42944,13 @@ var PostScriptEvaluator = function PostScriptEvaluatorClosure() { while (counter < length) { operator = operators[counter++]; - if (typeof operator === 'number') { + if (typeof operator === "number") { stack.push(operator); continue; } switch (operator) { - case 'jz': + case "jz": b = stack.pop(); a = stack.pop(); @@ -42944,23 +42960,23 @@ var PostScriptEvaluator = function PostScriptEvaluatorClosure() { break; - case 'j': + case "j": a = stack.pop(); counter = a; break; - case 'abs': + case "abs": a = stack.pop(); stack.push(Math.abs(a)); break; - case 'add': + case "add": b = stack.pop(); a = stack.pop(); stack.push(a + b); break; - case 'and': + case "and": b = stack.pop(); a = stack.pop(); @@ -42972,12 +42988,12 @@ var PostScriptEvaluator = function PostScriptEvaluatorClosure() { break; - case 'atan': + case "atan": a = stack.pop(); stack.push(Math.atan(a)); break; - case 'bitshift': + case "bitshift": b = stack.pop(); a = stack.pop(); @@ -42989,133 +43005,133 @@ var PostScriptEvaluator = function PostScriptEvaluatorClosure() { break; - case 'ceiling': + case "ceiling": a = stack.pop(); stack.push(Math.ceil(a)); break; - case 'copy': + case "copy": a = stack.pop(); stack.copy(a); break; - case 'cos': + case "cos": a = stack.pop(); stack.push(Math.cos(a)); break; - case 'cvi': + case "cvi": a = stack.pop() | 0; stack.push(a); break; - case 'cvr': + case "cvr": break; - case 'div': + case "div": b = stack.pop(); a = stack.pop(); stack.push(a / b); break; - case 'dup': + case "dup": stack.copy(1); break; - case 'eq': + case "eq": b = stack.pop(); a = stack.pop(); stack.push(a === b); break; - case 'exch': + case "exch": stack.roll(2, 1); break; - case 'exp': + case "exp": b = stack.pop(); a = stack.pop(); stack.push(Math.pow(a, b)); break; - case 'false': + case "false": stack.push(false); break; - case 'floor': + case "floor": a = stack.pop(); stack.push(Math.floor(a)); break; - case 'ge': + case "ge": b = stack.pop(); a = stack.pop(); stack.push(a >= b); break; - case 'gt': + case "gt": b = stack.pop(); a = stack.pop(); stack.push(a > b); break; - case 'idiv': + case "idiv": b = stack.pop(); a = stack.pop(); stack.push(a / b | 0); break; - case 'index': + case "index": a = stack.pop(); stack.index(a); break; - case 'le': + case "le": b = stack.pop(); a = stack.pop(); stack.push(a <= b); break; - case 'ln': + case "ln": a = stack.pop(); stack.push(Math.log(a)); break; - case 'log': + case "log": a = stack.pop(); stack.push(Math.log(a) / Math.LN10); break; - case 'lt': + case "lt": b = stack.pop(); a = stack.pop(); stack.push(a < b); break; - case 'mod': + case "mod": b = stack.pop(); a = stack.pop(); stack.push(a % b); break; - case 'mul': + case "mul": b = stack.pop(); a = stack.pop(); stack.push(a * b); break; - case 'ne': + case "ne": b = stack.pop(); a = stack.pop(); stack.push(a !== b); break; - case 'neg': + case "neg": a = stack.pop(); stack.push(-a); break; - case 'not': + case "not": a = stack.pop(); if ((0, _util.isBool)(a)) { @@ -43126,7 +43142,7 @@ var PostScriptEvaluator = function PostScriptEvaluatorClosure() { break; - case 'or': + case "or": b = stack.pop(); a = stack.pop(); @@ -43138,48 +43154,48 @@ var PostScriptEvaluator = function PostScriptEvaluatorClosure() { break; - case 'pop': + case "pop": stack.pop(); break; - case 'roll': + case "roll": b = stack.pop(); a = stack.pop(); stack.roll(a, b); break; - case 'round': + case "round": a = stack.pop(); stack.push(Math.round(a)); break; - case 'sin': + case "sin": a = stack.pop(); stack.push(Math.sin(a)); break; - case 'sqrt': + case "sqrt": a = stack.pop(); stack.push(Math.sqrt(a)); break; - case 'sub': + case "sub": b = stack.pop(); a = stack.pop(); stack.push(a - b); break; - case 'true': + case "true": stack.push(true); break; - case 'truncate': + case "truncate": a = stack.pop(); a = a < 0 ? Math.ceil(a) : Math.floor(a); stack.push(a); break; - case 'xor': + case "xor": b = stack.pop(); a = stack.pop(); @@ -43210,11 +43226,11 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { } AstNode.prototype.visit = function (visitor) { - (0, _util.unreachable)('abstract method'); + (0, _util.unreachable)("abstract method"); }; function AstArgument(index, min, max) { - AstNode.call(this, 'args'); + AstNode.call(this, "args"); this.index = index; this.min = min; this.max = max; @@ -43227,7 +43243,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { }; function AstLiteral(number) { - AstNode.call(this, 'literal'); + AstNode.call(this, "literal"); this.number = number; this.min = number; this.max = number; @@ -43240,7 +43256,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { }; function AstBinaryOperation(op, arg1, arg2, min, max) { - AstNode.call(this, 'binary'); + AstNode.call(this, "binary"); this.op = op; this.arg1 = arg1; this.arg2 = arg2; @@ -43255,7 +43271,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { }; function AstMin(arg, max) { - AstNode.call(this, 'max'); + AstNode.call(this, "max"); this.arg = arg; this.min = arg.min; this.max = max; @@ -43268,7 +43284,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { }; function AstVariable(index, min, max) { - AstNode.call(this, 'var'); + AstNode.call(this, "var"); this.index = index; this.min = min; this.max = max; @@ -43281,7 +43297,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { }; function AstVariableDefinition(variable, arg) { - AstNode.call(this, 'definition'); + AstNode.call(this, "definition"); this.variable = variable; this.arg = arg; } @@ -43298,11 +43314,11 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { ExpressionBuilderVisitor.prototype = { visitArgument(arg) { - this.parts.push('Math.max(', arg.min, ', Math.min(', arg.max, ', src[srcOffset + ', arg.index, ']))'); + this.parts.push("Math.max(", arg.min, ", Math.min(", arg.max, ", src[srcOffset + ", arg.index, "]))"); }, visitVariable(variable) { - this.parts.push('v', variable.index); + this.parts.push("v", variable.index); }, visitLiteral(literal) { @@ -43310,61 +43326,61 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { }, visitBinaryOperation(operation) { - this.parts.push('('); + this.parts.push("("); operation.arg1.visit(this); - this.parts.push(' ', operation.op, ' '); + this.parts.push(" ", operation.op, " "); operation.arg2.visit(this); - this.parts.push(')'); + this.parts.push(")"); }, visitVariableDefinition(definition) { - this.parts.push('var '); + this.parts.push("var "); definition.variable.visit(this); - this.parts.push(' = '); + this.parts.push(" = "); definition.arg.visit(this); - this.parts.push(';'); + this.parts.push(";"); }, visitMin(max) { - this.parts.push('Math.min('); + this.parts.push("Math.min("); max.arg.visit(this); - this.parts.push(', ', max.max, ')'); + this.parts.push(", ", max.max, ")"); }, toString() { - return this.parts.join(''); + return this.parts.join(""); } }; function buildAddOperation(num1, num2) { - if (num2.type === 'literal' && num2.number === 0) { + if (num2.type === "literal" && num2.number === 0) { return num1; } - if (num1.type === 'literal' && num1.number === 0) { + if (num1.type === "literal" && num1.number === 0) { return num2; } - if (num2.type === 'literal' && num1.type === 'literal') { + if (num2.type === "literal" && num1.type === "literal") { return new AstLiteral(num1.number + num2.number); } - return new AstBinaryOperation('+', num1, num2, num1.min + num2.min, num1.max + num2.max); + return new AstBinaryOperation("+", num1, num2, num1.min + num2.min, num1.max + num2.max); } function buildMulOperation(num1, num2) { - if (num2.type === 'literal') { + if (num2.type === "literal") { if (num2.number === 0) { return new AstLiteral(0); } else if (num2.number === 1) { return num1; - } else if (num1.type === 'literal') { + } else if (num1.type === "literal") { return new AstLiteral(num1.number * num2.number); } } - if (num1.type === 'literal') { + if (num1.type === "literal") { if (num1.number === 0) { return new AstLiteral(0); } else if (num1.number === 1) { @@ -43374,23 +43390,23 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { var min = Math.min(num1.min * num2.min, num1.min * num2.max, num1.max * num2.min, num1.max * num2.max); var max = Math.max(num1.min * num2.min, num1.min * num2.max, num1.max * num2.min, num1.max * num2.max); - return new AstBinaryOperation('*', num1, num2, min, max); + return new AstBinaryOperation("*", num1, num2, min, max); } function buildSubOperation(num1, num2) { - if (num2.type === 'literal') { + if (num2.type === "literal") { if (num2.number === 0) { return num1; - } else if (num1.type === 'literal') { + } else if (num1.type === "literal") { return new AstLiteral(num1.number - num2.number); } } - if (num2.type === 'binary' && num2.op === '-' && num1.type === 'literal' && num1.number === 1 && num2.arg1.type === 'literal' && num2.arg1.number === 1) { + if (num2.type === "binary" && num2.op === "-" && num1.type === "literal" && num1.number === 1 && num2.arg1.type === "literal" && num2.arg1.number === 1) { return num2.arg2; } - return new AstBinaryOperation('-', num1, num2, num1.min - num2.max, num1.max - num2.min); + return new AstBinaryOperation("-", num1, num2, num1.min - num2.max, num1.max - num2.min); } function buildMinOperation(num1, max) { @@ -43423,13 +43439,13 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { for (i = 0, ii = code.length; i < ii; i++) { item = code[i]; - if (typeof item === 'number') { + if (typeof item === "number") { stack.push(new AstLiteral(item)); continue; } switch (item) { - case 'add': + case "add": if (stack.length < 2) { return null; } @@ -43439,14 +43455,14 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { stack.push(buildAddOperation(num1, num2)); break; - case 'cvr': + case "cvr": if (stack.length < 1) { return null; } break; - case 'mul': + case "mul": if (stack.length < 2) { return null; } @@ -43456,7 +43472,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { stack.push(buildMulOperation(num1, num2)); break; - case 'sub': + case "sub": if (stack.length < 2) { return null; } @@ -43466,7 +43482,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { stack.push(buildSubOperation(num1, num2)); break; - case 'exch': + case "exch": if (stack.length < 2) { return null; } @@ -43476,7 +43492,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { stack.push(ast1, ast2); break; - case 'pop': + case "pop": if (stack.length < 1) { return null; } @@ -43484,14 +43500,14 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { stack.pop(); break; - case 'index': + case "index": if (stack.length < 1) { return null; } num1 = stack.pop(); - if (num1.type !== 'literal') { + if (num1.type !== "literal") { return null; } @@ -43503,7 +43519,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { ast1 = stack[stack.length - n - 1]; - if (ast1.type === 'literal' || ast1.type === 'var') { + if (ast1.type === "literal" || ast1.type === "var") { stack.push(ast1); break; } @@ -43514,12 +43530,12 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { instructions.push(new AstVariableDefinition(tmpVar, ast1)); break; - case 'dup': + case "dup": if (stack.length < 1) { return null; } - if (typeof code[i + 1] === 'number' && code[i + 2] === 'gt' && code[i + 3] === i + 7 && code[i + 4] === 'jz' && code[i + 5] === 'pop' && code[i + 6] === code[i + 1]) { + if (typeof code[i + 1] === "number" && code[i + 2] === "gt" && code[i + 3] === i + 7 && code[i + 4] === "jz" && code[i + 5] === "pop" && code[i + 6] === code[i + 1]) { num1 = stack.pop(); stack.push(buildMinOperation(num1, code[i + 1])); i += 6; @@ -43528,7 +43544,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { ast1 = stack[stack.length - 1]; - if (ast1.type === 'literal' || ast1.type === 'var') { + if (ast1.type === "literal" || ast1.type === "var") { stack.push(ast1); break; } @@ -43539,7 +43555,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { instructions.push(new AstVariableDefinition(tmpVar, ast1)); break; - case 'roll': + case "roll": if (stack.length < 2) { return null; } @@ -43547,7 +43563,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { num2 = stack.pop(); num1 = stack.pop(); - if (num2.type !== 'literal' || num1.type !== 'literal') { + if (num2.type !== "literal" || num1.type !== "literal") { return null; } @@ -43590,20 +43606,20 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { var out = [statementBuilder.toString()]; if (min > expr.min) { - out.unshift('Math.max(', min, ', '); - out.push(')'); + out.unshift("Math.max(", min, ", "); + out.push(")"); } if (max < expr.max) { - out.unshift('Math.min(', max, ', '); - out.push(')'); + out.unshift("Math.min(", max, ", "); + out.push(")"); } - out.unshift('dest[destOffset + ', i, '] = '); - out.push(';'); - result.push(out.join('')); + out.unshift("dest[destOffset + ", i, "] = "); + out.push(";"); + result.push(out.join("")); }); - return result.join('\n'); + return result.join("\n"); } }; return PostScriptCompiler; @@ -43612,7 +43628,7 @@ var PostScriptCompiler = function PostScriptCompilerClosure() { exports.PostScriptCompiler = PostScriptCompiler; /***/ }), -/* 41 */ +/* 40 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -43625,7 +43641,7 @@ exports.PostScriptParser = exports.PostScriptLexer = void 0; var _util = __w_pdfjs_require__(2); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); class PostScriptParser { constructor(lexer) { @@ -43687,7 +43703,7 @@ class PostScriptParser { if (this.accept(PostScriptTokenTypes.IF)) { this.operators[conditionLocation] = this.operators.length; - this.operators[conditionLocation + 1] = 'jz'; + this.operators[conditionLocation + 1] = "jz"; } else if (this.accept(PostScriptTokenTypes.LBRACE)) { const jumpLocation = this.operators.length; this.operators.push(null, null); @@ -43696,11 +43712,11 @@ class PostScriptParser { this.expect(PostScriptTokenTypes.RBRACE); this.expect(PostScriptTokenTypes.IFELSE); this.operators[jumpLocation] = this.operators.length; - this.operators[jumpLocation + 1] = 'j'; + this.operators[jumpLocation + 1] = "j"; this.operators[conditionLocation] = endOfTrue; - this.operators[conditionLocation + 1] = 'jz'; + this.operators[conditionLocation + 1] = "jz"; } else { - throw new _util.FormatError('PS Function: error parsing conditional.'); + throw new _util.FormatError("PS Function: error parsing conditional."); } } @@ -43736,19 +43752,19 @@ const PostScriptToken = function PostScriptTokenClosure() { } static get LBRACE() { - return (0, _util.shadow)(this, 'LBRACE', new PostScriptToken(PostScriptTokenTypes.LBRACE, '{')); + return (0, _util.shadow)(this, "LBRACE", new PostScriptToken(PostScriptTokenTypes.LBRACE, "{")); } static get RBRACE() { - return (0, _util.shadow)(this, 'RBRACE', new PostScriptToken(PostScriptTokenTypes.RBRACE, '}')); + return (0, _util.shadow)(this, "RBRACE", new PostScriptToken(PostScriptTokenTypes.RBRACE, "}")); } static get IF() { - return (0, _util.shadow)(this, 'IF', new PostScriptToken(PostScriptTokenTypes.IF, 'IF')); + return (0, _util.shadow)(this, "IF", new PostScriptToken(PostScriptTokenTypes.IF, "IF")); } static get IFELSE() { - return (0, _util.shadow)(this, 'IFELSE', new PostScriptToken(PostScriptTokenTypes.IFELSE, 'IFELSE')); + return (0, _util.shadow)(this, "IFELSE", new PostScriptToken(PostScriptTokenTypes.IFELSE, "IFELSE")); } } @@ -43777,7 +43793,7 @@ class PostScriptLexer { } if (comment) { - if (ch === 0x0A || ch === 0x0D) { + if (ch === 0x0a || ch === 0x0d) { comment = false; } } else if (ch === 0x25) { @@ -43800,16 +43816,16 @@ class PostScriptLexer { case 0x37: case 0x38: case 0x39: - case 0x2B: - case 0x2D: - case 0x2E: + case 0x2b: + case 0x2d: + case 0x2e: return new PostScriptToken(PostScriptTokenTypes.NUMBER, this.getNumber()); - case 0x7B: + case 0x7b: this.nextChar(); return PostScriptToken.LBRACE; - case 0x7D: + case 0x7d: this.nextChar(); return PostScriptToken.RBRACE; } @@ -43818,17 +43834,17 @@ class PostScriptLexer { strBuf.length = 0; strBuf[0] = String.fromCharCode(ch); - while ((ch = this.nextChar()) >= 0 && (ch >= 0x41 && ch <= 0x5A || ch >= 0x61 && ch <= 0x7A)) { + while ((ch = this.nextChar()) >= 0 && (ch >= 0x41 && ch <= 0x5a || ch >= 0x61 && ch <= 0x7a)) { strBuf.push(String.fromCharCode(ch)); } - const str = strBuf.join(''); + const str = strBuf.join(""); switch (str.toLowerCase()) { - case 'if': + case "if": return PostScriptToken.IF; - case 'ifelse': + case "ifelse": return PostScriptToken.IFELSE; default: @@ -43843,14 +43859,14 @@ class PostScriptLexer { strBuf[0] = String.fromCharCode(ch); while ((ch = this.nextChar()) >= 0) { - if (ch >= 0x30 && ch <= 0x39 || ch === 0x2D || ch === 0x2E) { + if (ch >= 0x30 && ch <= 0x39 || ch === 0x2d || ch === 0x2e) { strBuf.push(String.fromCharCode(ch)); } else { break; } } - const value = parseFloat(strBuf.join('')); + const value = parseFloat(strBuf.join("")); if (isNaN(value)) { throw new _util.FormatError(`Invalid floating point number: ${value}`); @@ -43864,7 +43880,7 @@ class PostScriptLexer { exports.PostScriptLexer = PostScriptLexer; /***/ }), -/* 42 */ +/* 41 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -43908,7 +43924,7 @@ class MurmurHash3_64 { data = input; length = data.byteLength; } else { - throw new Error('Wrong data format in MurmurHash3_64_update. ' + 'Input must be a string or array.'); + throw new Error("Wrong data format in MurmurHash3_64_update. " + "Input must be a string or array."); } const blockCounts = length >> 2; @@ -43982,7 +43998,7 @@ class MurmurHash3_64 { h1 ^= h2 >>> 1; const hex1 = (h1 >>> 0).toString(16), hex2 = (h2 >>> 0).toString(16); - return hex1.padStart(8, '0') + hex2.padStart(8, '0'); + return hex1.padStart(8, "0") + hex2.padStart(8, "0"); } } @@ -43990,7 +44006,7 @@ class MurmurHash3_64 { exports.MurmurHash3_64 = MurmurHash3_64; /***/ }), -/* 43 */ +/* 42 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -44001,11 +44017,11 @@ Object.defineProperty(exports, "__esModule", { }); exports.NativeImageDecoder = void 0; -var _colorspace = __w_pdfjs_require__(23); +var _colorspace = __w_pdfjs_require__(22); -var _jpeg_stream = __w_pdfjs_require__(18); +var _jpeg_stream = __w_pdfjs_require__(17); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); class NativeImageDecoder { constructor({ @@ -44028,9 +44044,9 @@ class NativeImageDecoder { decode(image) { const dict = image.dict; - let colorSpace = dict.get('ColorSpace', 'CS'); + let colorSpace = dict.get("ColorSpace", "CS"); colorSpace = _colorspace.ColorSpace.parse(colorSpace, this.xref, this.resources, this.pdfFunctionFactory); - return this.handler.sendWithPromise('JpegDecode', [image.getIR(this.forceDataSchema), colorSpace.numComps]).then(function ({ + return this.handler.sendWithPromise("JpegDecode", [image.getIR(this.forceDataSchema), colorSpace.numComps]).then(function ({ data, width, height @@ -44042,26 +44058,26 @@ class NativeImageDecoder { static isSupported(image, xref, res, pdfFunctionFactory) { const dict = image.dict; - if (dict.has('DecodeParms') || dict.has('DP')) { + if (dict.has("DecodeParms") || dict.has("DP")) { return false; } - const cs = _colorspace.ColorSpace.parse(dict.get('ColorSpace', 'CS'), xref, res, pdfFunctionFactory); + const cs = _colorspace.ColorSpace.parse(dict.get("ColorSpace", "CS"), xref, res, pdfFunctionFactory); - return (cs.name === 'DeviceGray' || cs.name === 'DeviceRGB') && cs.isDefaultDecode(dict.getArray('Decode', 'D')); + return (cs.name === "DeviceGray" || cs.name === "DeviceRGB") && cs.isDefaultDecode(dict.getArray("Decode", "D")); } static isDecodable(image, xref, res, pdfFunctionFactory) { const dict = image.dict; - if (dict.has('DecodeParms') || dict.has('DP')) { + if (dict.has("DecodeParms") || dict.has("DP")) { return false; } - const cs = _colorspace.ColorSpace.parse(dict.get('ColorSpace', 'CS'), xref, res, pdfFunctionFactory); + const cs = _colorspace.ColorSpace.parse(dict.get("ColorSpace", "CS"), xref, res, pdfFunctionFactory); - const bpc = dict.get('BitsPerComponent', 'BPC') || 1; - return (cs.numComps === 1 || cs.numComps === 3) && cs.isDefaultDecode(dict.getArray('Decode', 'D'), bpc); + const bpc = dict.get("BitsPerComponent", "BPC") || 1; + return (cs.numComps === 1 || cs.numComps === 3) && cs.isDefaultDecode(dict.getArray("Decode", "D"), bpc); } } @@ -44069,7 +44085,7 @@ class NativeImageDecoder { exports.NativeImageDecoder = NativeImageDecoder; /***/ }), -/* 44 */ +/* 43 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -44082,21 +44098,21 @@ exports.PDFImage = void 0; var _util = __w_pdfjs_require__(2); -var _primitives = __w_pdfjs_require__(5); +var _primitives = __w_pdfjs_require__(4); -var _colorspace = __w_pdfjs_require__(23); +var _colorspace = __w_pdfjs_require__(22); -var _stream = __w_pdfjs_require__(12); +var _stream = __w_pdfjs_require__(11); -var _jpeg_stream = __w_pdfjs_require__(18); +var _jpeg_stream = __w_pdfjs_require__(17); -var _jpx = __w_pdfjs_require__(21); +var _jpx = __w_pdfjs_require__(20); var PDFImage = function PDFImageClosure() { function handleImageData(image, nativeDecoder) { if (nativeDecoder && nativeDecoder.canDecode(image)) { return nativeDecoder.decode(image).catch(reason => { - (0, _util.warn)('Native image decoding failed -- trying to recover: ' + (reason && reason.message)); + (0, _util.warn)("Native image decoding failed -- trying to recover: " + (reason && reason.message)); return image; }); } @@ -44150,11 +44166,11 @@ var PDFImage = function PDFImageClosure() { }) { this.image = image; var dict = image.dict; - const filter = dict.get('Filter'); + const filter = dict.get("Filter"); if ((0, _primitives.isName)(filter)) { switch (filter.name) { - case 'JPXDecode': + case "JPXDecode": var jpxImage = new _jpx.JpxImage(); jpxImage.parseImageProperties(image.stream); image.stream.reset(); @@ -44164,35 +44180,35 @@ var PDFImage = function PDFImageClosure() { image.numComps = jpxImage.componentsCount; break; - case 'JBIG2Decode': + case "JBIG2Decode": image.bitsPerComponent = 1; image.numComps = 1; break; } } - let width = dict.get('Width', 'W'); - let height = dict.get('Height', 'H'); + let width = dict.get("Width", "W"); + let height = dict.get("Height", "H"); if (Number.isInteger(image.width) && image.width > 0 && Number.isInteger(image.height) && image.height > 0 && (image.width !== width || image.height !== height)) { - (0, _util.warn)('PDFImage - using the Width/Height of the image data, ' + 'rather than the image dictionary.'); + (0, _util.warn)("PDFImage - using the Width/Height of the image data, " + "rather than the image dictionary."); width = image.width; height = image.height; } if (width < 1 || height < 1) { - throw new _util.FormatError(`Invalid image width: ${width} or ` + `height: ${height}`); + throw new _util.FormatError(`Invalid image width: ${width} or height: ${height}`); } this.width = width; this.height = height; - this.interpolate = dict.get('Interpolate', 'I') || false; - this.imageMask = dict.get('ImageMask', 'IM') || false; - this.matte = dict.get('Matte') || false; + this.interpolate = dict.get("Interpolate", "I") || false; + this.imageMask = dict.get("ImageMask", "IM") || false; + this.matte = dict.get("Matte") || false; var bitsPerComponent = image.bitsPerComponent; if (!bitsPerComponent) { - bitsPerComponent = dict.get('BitsPerComponent', 'BPC'); + bitsPerComponent = dict.get("BitsPerComponent", "BPC"); if (!bitsPerComponent) { if (this.imageMask) { @@ -44206,26 +44222,26 @@ var PDFImage = function PDFImageClosure() { this.bpc = bitsPerComponent; if (!this.imageMask) { - var colorSpace = dict.get('ColorSpace', 'CS'); + var colorSpace = dict.get("ColorSpace", "CS"); if (!colorSpace) { - (0, _util.info)('JPX images (which do not require color spaces)'); + (0, _util.info)("JPX images (which do not require color spaces)"); switch (image.numComps) { case 1: - colorSpace = _primitives.Name.get('DeviceGray'); + colorSpace = _primitives.Name.get("DeviceGray"); break; case 3: - colorSpace = _primitives.Name.get('DeviceRGB'); + colorSpace = _primitives.Name.get("DeviceRGB"); break; case 4: - colorSpace = _primitives.Name.get('DeviceCMYK'); + colorSpace = _primitives.Name.get("DeviceCMYK"); break; default: - throw new Error(`JPX images with ${image.numComps} ` + 'color components not supported.'); + throw new Error(`JPX images with ${image.numComps} ` + "color components not supported."); } } @@ -44234,7 +44250,7 @@ var PDFImage = function PDFImageClosure() { this.numComps = this.colorSpace.numComps; } - this.decode = dict.getArray('Decode', 'D'); + this.decode = dict.getArray("Decode", "D"); this.needsDecode = false; if (this.decode && (this.colorSpace && !this.colorSpace.isDefaultDecode(this.decode, bitsPerComponent) || isMask && !_colorspace.ColorSpace.isDefaultDecode(this.decode, 1))) { @@ -44242,7 +44258,7 @@ var PDFImage = function PDFImageClosure() { var max = (1 << bitsPerComponent) - 1; this.decodeCoefficients = []; this.decodeAddends = []; - const isIndexed = this.colorSpace && this.colorSpace.name === 'Indexed'; + const isIndexed = this.colorSpace && this.colorSpace.name === "Indexed"; for (var i = 0, j = 0; i < this.decode.length; i += 2, ++j) { var dmin = this.decode[i]; @@ -44263,10 +44279,10 @@ var PDFImage = function PDFImageClosure() { } else if (mask) { if ((0, _primitives.isStream)(mask)) { var maskDict = mask.dict, - imageMask = maskDict.get('ImageMask', 'IM'); + imageMask = maskDict.get("ImageMask", "IM"); if (!imageMask) { - (0, _util.warn)('Ignoring /Mask in image without /ImageMask.'); + (0, _util.warn)("Ignoring /Mask in image without /ImageMask."); } else { this.mask = new PDFImage({ xref, @@ -44295,8 +44311,8 @@ var PDFImage = function PDFImageClosure() { var imagePromise = handleImageData(image, nativeDecoder); var smaskPromise; var maskPromise; - var smask = image.dict.get('SMask'); - var mask = image.dict.get('Mask'); + var smask = image.dict.get("SMask"); + var mask = image.dict.get("Mask"); if (smask) { smaskPromise = handleImageData(smask, nativeDecoder); @@ -44310,7 +44326,7 @@ var PDFImage = function PDFImageClosure() { } else if (Array.isArray(mask)) { maskPromise = Promise.resolve(mask); } else { - (0, _util.warn)('Unsupported mask format.'); + (0, _util.warn)("Unsupported mask format."); maskPromise = Promise.resolve(null); } } else { @@ -44359,7 +44375,7 @@ var PDFImage = function PDFImageClosure() { if (inverseDecode) { for (i = 0; i < actualLength; i++) { - data[i] ^= 0xFF; + data[i] ^= 0xff; } } @@ -44530,7 +44546,7 @@ var PDFImage = function PDFImageClosure() { alphaBuf[i] = opacity; } } else { - throw new _util.FormatError('Unknown mask format.'); + throw new _util.FormatError("Unknown mask format."); } } @@ -44594,9 +44610,9 @@ var PDFImage = function PDFImageClosure() { if (!forceRGBA) { var kind; - if (this.colorSpace.name === 'DeviceGray' && bpc === 1) { + if (this.colorSpace.name === "DeviceGray" && bpc === 1) { kind = _util.ImageKind.GRAYSCALE_1BPP; - } else if (this.colorSpace.name === 'DeviceRGB' && bpc === 8 && !this.needsDecode) { + } else if (this.colorSpace.name === "DeviceRGB" && bpc === 8 && !this.needsDecode) { kind = _util.ImageKind.RGB_24BPP; } @@ -44613,7 +44629,7 @@ var PDFImage = function PDFImageClosure() { } if (this.needsDecode) { - (0, _util.assert)(kind === _util.ImageKind.GRAYSCALE_1BPP, 'PDFImage.createImageData: The image must be grayscale.'); + (0, _util.assert)(kind === _util.ImageKind.GRAYSCALE_1BPP, "PDFImage.createImageData: The image must be grayscale."); var buffer = imgData.data; for (var i = 0, ii = buffer.length; i < ii; i++) { @@ -44628,11 +44644,11 @@ var PDFImage = function PDFImageClosure() { let imageLength = originalHeight * rowBytes; switch (this.colorSpace.name) { - case 'DeviceGray': + case "DeviceGray": imageLength *= 3; - case 'DeviceRGB': - case 'DeviceCMYK': + case "DeviceRGB": + case "DeviceCMYK": imgData.kind = _util.ImageKind.RGB_24BPP; imgData.data = this.getImageBytes(imageLength, drawWidth, drawHeight, true); return imgData; @@ -44729,7 +44745,7 @@ var PDFImage = function PDFImageClosure() { exports.PDFImage = PDFImage; /***/ }), -/* 45 */ +/* 44 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -44739,11 +44755,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.isNodeJS = void 0; -const isNodeJS = typeof process === 'object' && process + '' === '[object process]' && !process.versions['nw'] && !process.versions['electron']; +const isNodeJS = typeof process === "object" && process + "" === "[object process]" && !process.versions["nw"] && !process.versions["electron"]; exports.isNodeJS = isNodeJS; /***/ }), -/* 46 */ +/* 45 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -44774,21 +44790,21 @@ const StreamKind = { }; function wrapReason(reason) { - if (typeof reason !== 'object' || reason === null) { + if (typeof reason !== "object" || reason === null) { return reason; } switch (reason.name) { - case 'AbortException': + case "AbortException": return new _util.AbortException(reason.message); - case 'MissingPDFException': + case "MissingPDFException": return new _util.MissingPDFException(reason.message); - case 'UnexpectedResponseException': + case "UnexpectedResponseException": return new _util.UnexpectedResponseException(reason.message, reason.status); - case 'UnknownErrorException': + case "UnknownErrorException": return new _util.UnknownErrorException(reason.message, reason.details); default: @@ -44837,7 +44853,7 @@ class MessageHandler { } else if (data.callback === CallbackKind.ERROR) { capability.reject(wrapReason(data.reason)); } else { - throw new Error('Unexpected callback case'); + throw new Error("Unexpected callback case"); } return; @@ -44883,7 +44899,7 @@ class MessageHandler { action(data.data); }; - comObj.addEventListener('message', this._onComObjOnMessage); + comObj.addEventListener("message", this._onComObjOnMessage); } on(actionName, handler) { @@ -44930,7 +44946,7 @@ class MessageHandler { const sourceName = this.sourceName; const targetName = this.targetName; const comObj = this.comObj; - return new _util.ReadableStream({ + return new ReadableStream({ start: controller => { const startCapability = (0, _util.createPromiseCapability)(); this.streamControllers[streamId] = { @@ -44965,7 +44981,7 @@ class MessageHandler { return pullCapability.promise; }, cancel: reason => { - (0, _util.assert)(reason instanceof Error, 'cancel must have a valid reason'); + (0, _util.assert)(reason instanceof Error, "cancel must have a valid reason"); const cancelCapability = (0, _util.createPromiseCapability)(); this.streamControllers[streamId].cancelCall = cancelCapability; this.streamControllers[streamId].isClosed = true; @@ -45027,7 +45043,7 @@ class MessageHandler { }, error(reason) { - (0, _util.assert)(reason instanceof Error, 'error must have a valid reason'); + (0, _util.assert)(reason instanceof Error, "error must have a valid reason"); if (this.isCancelled) { return; @@ -45141,7 +45157,7 @@ class MessageHandler { break; case StreamKind.ENQUEUE: - (0, _util.assert)(this.streamControllers[streamId], 'enqueue should have stream controller'); + (0, _util.assert)(this.streamControllers[streamId], "enqueue should have stream controller"); if (this.streamControllers[streamId].isClosed) { break; @@ -45151,7 +45167,7 @@ class MessageHandler { break; case StreamKind.CLOSE: - (0, _util.assert)(this.streamControllers[streamId], 'close should have stream controller'); + (0, _util.assert)(this.streamControllers[streamId], "close should have stream controller"); if (this.streamControllers[streamId].isClosed) { break; @@ -45165,7 +45181,7 @@ class MessageHandler { break; case StreamKind.ERROR: - (0, _util.assert)(this.streamControllers[streamId], 'error should have stream controller'); + (0, _util.assert)(this.streamControllers[streamId], "error should have stream controller"); this.streamControllers[streamId].controller.error(wrapReason(data.reason)); this._deleteStreamController(streamId); @@ -45216,7 +45232,7 @@ class MessageHandler { break; default: - throw new Error('Unexpected stream case'); + throw new Error("Unexpected stream case"); } } @@ -45236,7 +45252,7 @@ class MessageHandler { } destroy() { - this.comObj.removeEventListener('message', this._onComObjOnMessage); + this.comObj.removeEventListener("message", this._onComObjOnMessage); } } @@ -45244,7 +45260,7 @@ class MessageHandler { exports.MessageHandler = MessageHandler; /***/ }), -/* 47 */ +/* 46 */ /***/ (function(module, exports, __w_pdfjs_require__) { "use strict"; @@ -45303,10 +45319,10 @@ class PDFWorkerStreamReader { this._isRangeSupported = false; this._isStreamingSupported = false; - const readableStream = this._msgHandler.sendWithStream('GetReader'); + const readableStream = this._msgHandler.sendWithStream("GetReader"); this._reader = readableStream.getReader(); - this._headersReady = this._msgHandler.sendWithPromise('ReaderHeadersReady').then(data => { + this._headersReady = this._msgHandler.sendWithPromise("ReaderHeadersReady").then(data => { this._isStreamingSupported = data.isStreamingSupported; this._isRangeSupported = data.isRangeSupported; this._contentLength = data.contentLength; @@ -45359,7 +45375,7 @@ class PDFWorkerStreamRangeReader { this._msgHandler = msgHandler; this.onProgress = null; - const readableStream = this._msgHandler.sendWithStream('GetRangeReader', { + const readableStream = this._msgHandler.sendWithStream("GetRangeReader", { begin, end }); diff --git a/browser/extensions/pdfjs/content/web/debugger.js b/browser/extensions/pdfjs/content/web/debugger.js index 501daa84c6bb..255c4a32c8ee 100644 --- a/browser/extensions/pdfjs/content/web/debugger.js +++ b/browser/extensions/pdfjs/content/web/debugger.js @@ -14,37 +14,41 @@ */ /* eslint-disable no-var */ -'use strict'; +"use strict"; var FontInspector = (function FontInspectorClosure() { var fonts, createObjectURL; var active = false; - var fontAttribute = 'data-font-name'; + var fontAttribute = "data-font-name"; function removeSelection() { - let divs = document.querySelectorAll(`span[${fontAttribute}]`); - for (let div of divs) { - div.className = ''; + const divs = document.querySelectorAll(`span[${fontAttribute}]`); + for (const div of divs) { + div.className = ""; } } function resetSelection() { - let divs = document.querySelectorAll(`span[${fontAttribute}]`); - for (let div of divs) { - div.className = 'debuggerHideText'; + const divs = document.querySelectorAll(`span[${fontAttribute}]`); + for (const div of divs) { + div.className = "debuggerHideText"; } } function selectFont(fontName, show) { - let divs = document.querySelectorAll(`span[${fontAttribute}=${fontName}]`); - for (let div of divs) { - div.className = show ? 'debuggerShowText' : 'debuggerHideText'; + const divs = document.querySelectorAll( + `span[${fontAttribute}=${fontName}]` + ); + for (const div of divs) { + div.className = show ? "debuggerShowText" : "debuggerHideText"; } } function textLayerClick(e) { - if (!e.target.dataset.fontName || - e.target.tagName.toUpperCase() !== 'SPAN') { + if ( + !e.target.dataset.fontName || + e.target.tagName.toUpperCase() !== "SPAN" + ) { return; } var fontName = e.target.dataset.fontName; - var selects = document.getElementsByTagName('input'); + var selects = document.getElementsByTagName("input"); for (var i = 0; i < selects.length; ++i) { var select = selects[i]; if (select.dataset.fontName !== fontName) { @@ -57,25 +61,25 @@ var FontInspector = (function FontInspectorClosure() { } return { // Properties/functions needed by PDFBug. - id: 'FontInspector', - name: 'Font Inspector', + id: "FontInspector", + name: "Font Inspector", panel: null, manager: null, init: function init(pdfjsLib) { var panel = this.panel; - panel.setAttribute('style', 'padding: 5px;'); - var tmp = document.createElement('button'); - tmp.addEventListener('click', resetSelection); - tmp.textContent = 'Refresh'; + panel.setAttribute("style", "padding: 5px;"); + var tmp = document.createElement("button"); + tmp.addEventListener("click", resetSelection); + tmp.textContent = "Refresh"; panel.appendChild(tmp); - fonts = document.createElement('div'); + fonts = document.createElement("div"); panel.appendChild(fonts); createObjectURL = pdfjsLib.createObjectURL; }, cleanup: function cleanup() { - fonts.textContent = ''; + fonts.textContent = ""; }, enabled: false, get active() { @@ -84,62 +88,65 @@ var FontInspector = (function FontInspectorClosure() { set active(value) { active = value; if (active) { - document.body.addEventListener('click', textLayerClick, true); + document.body.addEventListener("click", textLayerClick, true); resetSelection(); } else { - document.body.removeEventListener('click', textLayerClick, true); + document.body.removeEventListener("click", textLayerClick, true); removeSelection(); } }, // FontInspector specific functions. fontAdded: function fontAdded(fontObj, url) { function properties(obj, list) { - var moreInfo = document.createElement('table'); + var moreInfo = document.createElement("table"); for (var i = 0; i < list.length; i++) { - var tr = document.createElement('tr'); - var td1 = document.createElement('td'); + var tr = document.createElement("tr"); + var td1 = document.createElement("td"); td1.textContent = list[i]; tr.appendChild(td1); - var td2 = document.createElement('td'); + var td2 = document.createElement("td"); td2.textContent = obj[list[i]].toString(); tr.appendChild(td2); moreInfo.appendChild(tr); } return moreInfo; } - var moreInfo = properties(fontObj, ['name', 'type']); + var moreInfo = properties(fontObj, ["name", "type"]); var fontName = fontObj.loadedName; - var font = document.createElement('div'); - var name = document.createElement('span'); + var font = document.createElement("div"); + var name = document.createElement("span"); name.textContent = fontName; - var download = document.createElement('a'); + var download = document.createElement("a"); if (url) { url = /url\(['"]?([^\)"']+)/.exec(url); download.href = url[1]; } else if (fontObj.data) { download.href = createObjectURL(fontObj.data, fontObj.mimeType); } - download.textContent = 'Download'; - var logIt = document.createElement('a'); - logIt.href = ''; - logIt.textContent = 'Log'; - logIt.addEventListener('click', function(event) { + download.textContent = "Download"; + var logIt = document.createElement("a"); + logIt.href = ""; + logIt.textContent = "Log"; + logIt.addEventListener("click", function(event) { event.preventDefault(); console.log(fontObj); }); - var select = document.createElement('input'); - select.setAttribute('type', 'checkbox'); + var select = document.createElement("input"); + select.setAttribute("type", "checkbox"); select.dataset.fontName = fontName; - select.addEventListener('click', (function(select, fontName) { - return (function() { - selectFont(fontName, select.checked); - }); - })(select, fontName)); + select.addEventListener( + "click", + (function(select, fontName) { + return function() { + selectFont(fontName, select.checked); + }; + })(select, fontName) + ); font.appendChild(select); font.appendChild(name); - font.appendChild(document.createTextNode(' ')); + font.appendChild(document.createTextNode(" ")); font.appendChild(download); - font.appendChild(document.createTextNode(' ')); + font.appendChild(document.createTextNode(" ")); font.appendChild(logIt); font.appendChild(moreInfo); fonts.appendChild(font); @@ -165,24 +172,24 @@ var StepperManager = (function StepperManagerClosure() { var breakPoints = Object.create(null); return { // Properties/functions needed by PDFBug. - id: 'Stepper', - name: 'Stepper', + id: "Stepper", + name: "Stepper", panel: null, manager: null, init: function init(pdfjsLib) { var self = this; - this.panel.setAttribute('style', 'padding: 5px;'); - stepperControls = document.createElement('div'); - stepperChooser = document.createElement('select'); - stepperChooser.addEventListener('change', function(event) { + this.panel.setAttribute("style", "padding: 5px;"); + stepperControls = document.createElement("div"); + stepperChooser = document.createElement("select"); + stepperChooser.addEventListener("change", function(event) { self.selectStepper(this.value); }); stepperControls.appendChild(stepperChooser); - stepperDiv = document.createElement('div'); + stepperDiv = document.createElement("div"); this.panel.appendChild(stepperControls); this.panel.appendChild(stepperDiv); - if (sessionStorage.getItem('pdfjsBreakPoints')) { - breakPoints = JSON.parse(sessionStorage.getItem('pdfjsBreakPoints')); + if (sessionStorage.getItem("pdfjsBreakPoints")) { + breakPoints = JSON.parse(sessionStorage.getItem("pdfjsBreakPoints")); } opMap = Object.create(null); @@ -191,21 +198,21 @@ var StepperManager = (function StepperManagerClosure() { } }, cleanup: function cleanup() { - stepperChooser.textContent = ''; - stepperDiv.textContent = ''; + stepperChooser.textContent = ""; + stepperDiv.textContent = ""; steppers = []; }, enabled: false, active: false, // Stepper specific functions. create: function create(pageIndex) { - var debug = document.createElement('div'); - debug.id = 'stepper' + pageIndex; - debug.setAttribute('hidden', true); - debug.className = 'stepper'; + var debug = document.createElement("div"); + debug.id = "stepper" + pageIndex; + debug.setAttribute("hidden", true); + debug.className = "stepper"; stepperDiv.appendChild(debug); - var b = document.createElement('option'); - b.textContent = 'Page ' + (pageIndex + 1); + var b = document.createElement("option"); + b.textContent = "Page " + (pageIndex + 1); b.value = pageIndex; stepperChooser.appendChild(b); var initBreakPoints = breakPoints[pageIndex] || []; @@ -225,9 +232,9 @@ var StepperManager = (function StepperManagerClosure() { for (i = 0; i < steppers.length; ++i) { var stepper = steppers[i]; if (stepper.pageIndex === pageIndex) { - stepper.panel.removeAttribute('hidden'); + stepper.panel.removeAttribute("hidden"); } else { - stepper.panel.setAttribute('hidden', true); + stepper.panel.setAttribute("hidden", true); } } var options = stepperChooser.options; @@ -238,7 +245,7 @@ var StepperManager = (function StepperManagerClosure() { }, saveBreakPoints: function saveBreakPoints(pageIndex, bps) { breakPoints[pageIndex] = bps; - sessionStorage.setItem('pdfjsBreakPoints', JSON.stringify(breakPoints)); + sessionStorage.setItem("pdfjsBreakPoints", JSON.stringify(breakPoints)); }, }; })(); @@ -255,22 +262,26 @@ var Stepper = (function StepperClosure() { } function simplifyArgs(args) { - if (typeof args === 'string') { + if (typeof args === "string") { var MAX_STRING_LENGTH = 75; - return args.length <= MAX_STRING_LENGTH ? args : - args.substring(0, MAX_STRING_LENGTH) + '...'; + return args.length <= MAX_STRING_LENGTH + ? args + : args.substring(0, MAX_STRING_LENGTH) + "..."; } - if (typeof args !== 'object' || args === null) { + if (typeof args !== "object" || args === null) { return args; } - if ('length' in args) { // array - var simpleArgs = [], i, ii; + if ("length" in args) { + // array + var simpleArgs = [], + i, + ii; var MAX_ITEMS = 10; for (i = 0, ii = Math.min(MAX_ITEMS, args.length); i < ii; i++) { simpleArgs.push(simplifyArgs(args[i])); } if (i < args.length) { - simpleArgs.push('...'); + simpleArgs.push("..."); } return simpleArgs; } @@ -293,16 +304,16 @@ var Stepper = (function StepperClosure() { Stepper.prototype = { init: function init(operatorList) { var panel = this.panel; - var content = c('div', 'c=continue, s=step'); - var table = c('table'); + var content = c("div", "c=continue, s=step"); + var table = c("table"); content.appendChild(table); table.cellSpacing = 0; - var headerRow = c('tr'); + var headerRow = c("tr"); table.appendChild(headerRow); - headerRow.appendChild(c('th', 'Break')); - headerRow.appendChild(c('th', 'Idx')); - headerRow.appendChild(c('th', 'fn')); - headerRow.appendChild(c('th', 'args')); + headerRow.appendChild(c("th", "Break")); + headerRow.appendChild(c("th", "Idx")); + headerRow.appendChild(c("th", "fn")); + headerRow.appendChild(c("th", "args")); panel.appendChild(content); this.table = table; this.updateOperatorList(operatorList); @@ -326,56 +337,58 @@ var Stepper = (function StepperClosure() { } var chunk = document.createDocumentFragment(); - var operatorsToDisplay = Math.min(MAX_OPERATORS_COUNT, - operatorList.fnArray.length); + var operatorsToDisplay = Math.min( + MAX_OPERATORS_COUNT, + operatorList.fnArray.length + ); for (var i = this.operatorListIdx; i < operatorsToDisplay; i++) { - var line = c('tr'); - line.className = 'line'; + var line = c("tr"); + line.className = "line"; line.dataset.idx = i; chunk.appendChild(line); var checked = this.breakPoints.includes(i); var args = operatorList.argsArray[i] || []; - var breakCell = c('td'); - var cbox = c('input'); - cbox.type = 'checkbox'; - cbox.className = 'points'; + var breakCell = c("td"); + var cbox = c("input"); + cbox.type = "checkbox"; + cbox.className = "points"; cbox.checked = checked; cbox.dataset.idx = i; cbox.onclick = cboxOnClick; breakCell.appendChild(cbox); line.appendChild(breakCell); - line.appendChild(c('td', i.toString())); + line.appendChild(c("td", i.toString())); var fn = opMap[operatorList.fnArray[i]]; var decArgs = args; - if (fn === 'showText') { + if (fn === "showText") { var glyphs = args[0]; var newArgs = []; var str = []; for (var j = 0; j < glyphs.length; j++) { var glyph = glyphs[j]; - if (typeof glyph === 'object' && glyph !== null) { + if (typeof glyph === "object" && glyph !== null) { str.push(glyph.fontChar); } else { if (str.length > 0) { - newArgs.push(str.join('')); + newArgs.push(str.join("")); str = []; } newArgs.push(glyph); // null or number } } if (str.length > 0) { - newArgs.push(str.join('')); + newArgs.push(str.join("")); } decArgs = [newArgs]; } - line.appendChild(c('td', fn)); - line.appendChild(c('td', JSON.stringify(simplifyArgs(decArgs)))); + line.appendChild(c("td", fn)); + line.appendChild(c("td", JSON.stringify(simplifyArgs(decArgs)))); } if (operatorsToDisplay < operatorList.fnArray.length) { - line = c('tr'); - var lastCell = c('td', '...'); + line = c("tr"); + var lastCell = c("td", "..."); lastCell.colspan = 4; chunk.appendChild(lastCell); } @@ -401,13 +414,13 @@ var Stepper = (function StepperClosure() { var listener = function(e) { switch (e.keyCode) { case 83: // step - dom.removeEventListener('keydown', listener); + dom.removeEventListener("keydown", listener); self.nextBreakPoint = self.currentIdx + 1; self.goTo(-1); callback(); break; case 67: // continue - dom.removeEventListener('keydown', listener); + dom.removeEventListener("keydown", listener); var breakPoint = self.getNextBreakPoint(); self.nextBreakPoint = breakPoint; self.goTo(-1); @@ -415,15 +428,15 @@ var Stepper = (function StepperClosure() { break; } }; - dom.addEventListener('keydown', listener); + dom.addEventListener("keydown", listener); self.goTo(idx); }, goTo: function goTo(idx) { - var allRows = this.panel.getElementsByClassName('line'); + var allRows = this.panel.getElementsByClassName("line"); for (var x = 0, xx = allRows.length; x < xx; ++x) { var row = allRows[x]; if ((row.dataset.idx | 0) === idx) { - row.style.backgroundColor = 'rgb(251,250,207)'; + row.style.backgroundColor = "rgb(251,250,207)"; row.scrollIntoView(); } else { row.style.backgroundColor = null; @@ -451,12 +464,12 @@ var Stats = (function Stats() { } return { // Properties/functions needed by PDFBug. - id: 'Stats', - name: 'Stats', + id: "Stats", + name: "Stats", panel: null, manager: null, init(pdfjsLib) { - this.panel.setAttribute('style', 'padding: 5px;'); + this.panel.setAttribute("style", "padding: 5px;"); }, enabled: false, active: false, @@ -471,16 +484,16 @@ var Stats = (function Stats() { this.panel.removeChild(b.div); stats.splice(statsIndex, 1); } - var wrapper = document.createElement('div'); - wrapper.className = 'stats'; - var title = document.createElement('div'); - title.className = 'title'; - title.textContent = 'Page: ' + pageNumber; - var statsDiv = document.createElement('div'); + var wrapper = document.createElement("div"); + wrapper.className = "stats"; + var title = document.createElement("div"); + title.className = "title"; + title.textContent = "Page: " + pageNumber; + var statsDiv = document.createElement("div"); statsDiv.textContent = stat.toString(); wrapper.appendChild(title); wrapper.appendChild(statsDiv); - stats.push({ pageNumber, div: wrapper, }); + stats.push({ pageNumber, div: wrapper }); stats.sort(function(a, b) { return a.pageNumber - b.pageNumber; }); @@ -503,14 +516,11 @@ window.PDFBug = (function PDFBugClosure() { var activePanel = null; return { - tools: [ - FontInspector, - StepperManager, - Stats - ], + tools: [FontInspector, StepperManager, Stats], enable(ids) { - var all = false, tools = this.tools; - if (ids.length === 1 && ids[0] === 'all') { + var all = false, + tools = this.tools; + if (ids.length === 1 && ids[0] === "all") { all = true; } for (var i = 0; i < tools.length; ++i) { @@ -540,34 +550,37 @@ window.PDFBug = (function PDFBugClosure() { * Panel * ... */ - var ui = document.createElement('div'); - ui.id = 'PDFBug'; + var ui = document.createElement("div"); + ui.id = "PDFBug"; - var controls = document.createElement('div'); - controls.setAttribute('class', 'controls'); + var controls = document.createElement("div"); + controls.setAttribute("class", "controls"); ui.appendChild(controls); - var panels = document.createElement('div'); - panels.setAttribute('class', 'panels'); + var panels = document.createElement("div"); + panels.setAttribute("class", "panels"); ui.appendChild(panels); container.appendChild(ui); - container.style.right = panelWidth + 'px'; + container.style.right = panelWidth + "px"; // Initialize all the debugging tools. var tools = this.tools; var self = this; for (var i = 0; i < tools.length; ++i) { var tool = tools[i]; - var panel = document.createElement('div'); - var panelButton = document.createElement('button'); + var panel = document.createElement("div"); + var panelButton = document.createElement("button"); panelButton.textContent = tool.name; - panelButton.addEventListener('click', (function(selected) { - return function(event) { - event.preventDefault(); - self.selectPanel(selected); - }; - })(i)); + panelButton.addEventListener( + "click", + (function(selected) { + return function(event) { + event.preventDefault(); + self.selectPanel(selected); + }; + })(i) + ); controls.appendChild(panelButton); panels.appendChild(panel); tool.panel = panel; @@ -575,9 +588,13 @@ window.PDFBug = (function PDFBugClosure() { if (tool.enabled) { tool.init(pdfjsLib); } else { - panel.textContent = tool.name + ' is disabled. To enable add ' + - ' "' + tool.id + '" to the pdfBug parameter ' + - 'and refresh (separate multiple by commas).'; + panel.textContent = + tool.name + + " is disabled. To enable add " + + ' "' + + tool.id + + '" to the pdfBug parameter ' + + "and refresh (separate multiple by commas)."; } buttons.push(panelButton); } @@ -591,7 +608,7 @@ window.PDFBug = (function PDFBugClosure() { } }, selectPanel(index) { - if (typeof index !== 'number') { + if (typeof index !== "number") { index = this.tools.indexOf(index); } if (index === activePanel) { @@ -601,13 +618,13 @@ window.PDFBug = (function PDFBugClosure() { var tools = this.tools; for (var j = 0; j < tools.length; ++j) { if (j === index) { - buttons[j].setAttribute('class', 'active'); + buttons[j].setAttribute("class", "active"); tools[j].active = true; - tools[j].panel.removeAttribute('hidden'); + tools[j].panel.removeAttribute("hidden"); } else { - buttons[j].setAttribute('class', ''); + buttons[j].setAttribute("class", ""); tools[j].active = false; - tools[j].panel.setAttribute('hidden', 'true'); + tools[j].panel.setAttribute("hidden", "true"); } } }, diff --git a/browser/extensions/pdfjs/content/web/viewer.css b/browser/extensions/pdfjs/content/web/viewer.css index f2beb9e3e0ab..130a15a0cb4f 100644 --- a/browser/extensions/pdfjs/content/web/viewer.css +++ b/browser/extensions/pdfjs/content/web/viewer.css @@ -35,8 +35,7 @@ .textLayer .highlight { margin: -1px; padding: 1px; - - background-color: rgb(180, 0, 170); + background-color: rgba(180, 0, 170, 1); border-radius: 4px; } @@ -53,10 +52,12 @@ } .textLayer .highlight.selected { - background-color: rgb(0, 100, 0); + background-color: rgba(0, 100, 0, 1); } -.textLayer ::selection { background: rgb(0,0,255); } +.textLayer ::selection { + background: rgba(0, 0, 255, 1); +} .textLayer .endOfContent { display: block; @@ -92,8 +93,8 @@ .annotationLayer .linkAnnotation > a:hover, .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover { opacity: 0.2; - background: #ff0; - box-shadow: 0px 2px 10px #ff0; + background: rgba(255, 255, 0, 1); + box-shadow: 0px 2px 10px rgba(255, 255, 0, 1); } .annotationLayer .textAnnotation img { @@ -146,7 +147,7 @@ .annotationLayer .choiceWidgetAnnotation select:hover, .annotationLayer .buttonWidgetAnnotation.checkBox input:hover, .annotationLayer .buttonWidgetAnnotation.radioButton input:hover { - border: 1px solid #000; + border: 1px solid rgba(0, 0, 0, 1); } .annotationLayer .textWidgetAnnotation input:focus, @@ -159,7 +160,7 @@ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after, .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before { - background-color: #000; + background-color: rgba(0, 0, 0, 1); content: ''; display: block; position: absolute; @@ -220,8 +221,8 @@ position: absolute; z-index: 200; max-width: 20em; - background-color: #FFFF99; - box-shadow: 0px 2px 5px #888; + background-color: rgba(255, 255, 153, 1); + box-shadow: 0px 2px 5px rgba(136, 136, 136, 1); border-radius: 2px; padding: 6px; margin-left: 5px; @@ -245,7 +246,7 @@ } .annotationLayer .popup p { - border-top: 1px solid #333; + border-top: 1px solid rgba(51, 51, 51, 1); margin-top: 2px; padding-top: 2px; } @@ -281,7 +282,7 @@ border: 9px solid transparent; background-clip: content-box; border-image: url(images/shadow.png) 9 9 repeat; - background-color: white; + background-color: rgba(255, 255, 255, 1); } .pdfViewer.removePageBorders .page { @@ -397,7 +398,7 @@ html { body { height: 100%; width: 100%; - background-color: #404040; + background-color: rgba(64, 64, 64, 1); background-image: url(images/texture.png); } @@ -418,8 +419,8 @@ select { #viewerContainer.pdfPresentationMode:fullscreen { top: 0px; - border-top: 2px solid transparent; - background-color: #000; + border-top: 2px solid rgba(0, 0, 0, 0); + background-color: rgba(0, 0, 0, 1); width: 100%; height: 100%; overflow: hidden; @@ -455,8 +456,7 @@ select { width: var(--sidebar-width); visibility: hidden; z-index: 100; - border-top: 1px solid #333; - + border-top: 1px solid rgba(51, 51, 51, 1); transition-duration: 200ms; transition-timing-function: ease; } @@ -508,15 +508,15 @@ html[dir='rtl'] #outerContainer.sidebarOpen #sidebarContainer { overflow: auto; position: absolute; width: 100%; - background-color: hsla(0,0%,0%,.1); + background-color: rgba(0, 0, 0, 0.1); } html[dir='ltr'] #sidebarContent { left: 0; - box-shadow: inset -1px 0 0 hsla(0,0%,0%,.25); + box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25); } html[dir='rtl'] #sidebarContent { right: 0; - box-shadow: inset 1px 0 0 hsla(0,0%,0%,.25); + box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25); } #viewerContainer { @@ -533,10 +533,10 @@ html[dir='rtl'] #sidebarContent { transition-timing-function: ease; } html[dir='ltr'] #viewerContainer { - box-shadow: inset 1px 0 0 hsla(0,0%,100%,.05); + box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.05); } html[dir='rtl'] #viewerContainer { - box-shadow: inset -1px 0 0 hsla(0,0%,100%,.05); + box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05); } #outerContainer.sidebarResizing #viewerContainer { @@ -570,21 +570,21 @@ html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentatio #toolbarSidebar { width: 100%; height: 32px; - background-color: #424242; /* fallback */ + background-color: rgba(66, 66, 66, 1); /* fallback */ background-image: url(images/texture.png), - linear-gradient(hsla(0,0%,30%,.99), hsla(0,0%,25%,.95)); + linear-gradient(rgba(77, 77, 77, 0.99), rgba(64, 64, 64, 0.95)); } html[dir='ltr'] #toolbarSidebar { box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25), - inset 0 -1px 0 hsla(0,0%,100%,.05), - 0 1px 0 hsla(0,0%,0%,.15), - 0 0 1px hsla(0,0%,0%,.1); + inset 0 -1px 0 rgba(255, 255, 255, 0.05), + 0 1px 0 rgba(0, 0, 0, 0.15), + 0 0 1px rgba(0, 0, 0, 0.1); } html[dir='rtl'] #toolbarSidebar { box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25), - inset 0 1px 0 hsla(0,0%,100%,.05), - 0 1px 0 hsla(0,0%,0%,.15), - 0 0 1px hsla(0,0%,0%,.1); + inset 0 1px 0 rgba(255, 255, 255, 0.05), + 0 1px 0 rgba(0, 0, 0, 0.15), + 0 0 1px rgba(0, 0, 0, 0.1); } #sidebarResizer { @@ -605,21 +605,21 @@ html[dir='rtl'] #sidebarResizer { #toolbarContainer, .findbar, .secondaryToolbar { position: relative; height: 32px; - background-color: #474747; /* fallback */ + background-color: rgba(71, 71, 71, 1); /* fallback */ background-image: url(images/texture.png), - linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95)); + linear-gradient(rgba(82, 82, 82, 0.99), rgba(69, 69, 69, 0.95)); } html[dir='ltr'] #toolbarContainer, .findbar, .secondaryToolbar { - box-shadow: inset 0 1px 1px hsla(0,0%,0%,.15), - inset 0 -1px 0 hsla(0,0%,100%,.05), - 0 1px 0 hsla(0,0%,0%,.15), - 0 1px 1px hsla(0,0%,0%,.1); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15), + inset 0 -1px 0 rgba(255, 255, 255, 0.05), + 0 1px 0 rgba(0, 0, 0, 0.15), + 0 1px 1px rgba(0, 0, 0, 0.1); } html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar { - box-shadow: inset 0 1px 1px hsla(0,0%,0%,.15), - inset 0 -1px 0 hsla(0,0%,100%,.05), - 0 1px 0 hsla(0,0%,0%,.15), - 0 1px 1px hsla(0,0%,0%,.1); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15), + inset 0 -1px 0 rgba(255, 255, 255, 0.05), + 0 1px 0 rgba(0, 0, 0, 0.15), + 0 1px 1px rgba(0, 0, 0, 0.1); } #toolbarViewer { @@ -630,8 +630,8 @@ html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar { position: relative; width: 100%; height: 4px; - background-color: #333; - border-bottom: 1px solid #333; + background-color: rgba(51, 51, 51, 1); + border-bottom: 1px solid rgba(51, 51, 51, 1); } #loadingBar .progress { @@ -640,7 +640,7 @@ html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar { left: 0; width: 0%; height: 100%; - background-color: #ddd; + background-color: rgba(221, 221, 221, 1); overflow: hidden; transition: width 200ms; } @@ -651,7 +651,7 @@ html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar { } #loadingBar .progress.indeterminate { - background-color: #999; + background-color: rgba(153, 153, 153, 1); transition: none; } @@ -661,12 +661,10 @@ html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar { left: 0; height: 100%; width: calc(100% + 150px); - background: repeating-linear-gradient(135deg, - #bbb 0, #999 5px, - #999 45px, #ddd 55px, - #ddd 95px, #bbb 100px); - + rgba(187, 187, 187, 1) 0, rgba(153, 153, 153, 1) 5px, + rgba(153, 153, 153, 1) 45px, rgba(221, 221, 221, 1) 55px, + rgba(221, 221, 221, 1) 95px, rgba(187, 187, 187, 1) 100px); animation: progressIndeterminate 950ms linear infinite; } @@ -678,7 +676,7 @@ html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar { min-width: 16px; padding: 0px 6px 0px 6px; margin: 4px 2px 4px 2px; - color: hsl(0,0%,85%); + color: rgba(217, 217, 217, 1); font-size: 12px; line-height: 14px; text-align: left; @@ -749,14 +747,14 @@ html[dir='rtl'] .secondaryToolbar { .doorHanger, .doorHangerRight { - border: 1px solid hsla(0,0%,0%,.5); + border: 1px solid rgba(0, 0, 0, 0.5); border-radius: 2px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); } .doorHanger:after, .doorHanger:before, .doorHangerRight:after, .doorHangerRight:before { bottom: 100%; - border: solid transparent; + border: solid rgba(0, 0, 0, 0); content: " "; height: 0; width: 0; @@ -765,12 +763,12 @@ html[dir='rtl'] .secondaryToolbar { } .doorHanger:after, .doorHangerRight:after { - border-bottom-color: hsla(0,0%,32%,.99); + border-bottom-color: rgba(82, 82, 82, 0.99); border-width: 8px; } .doorHanger:before, .doorHangerRight:before { - border-bottom-color: hsla(0,0%,0%,.5); + border-bottom-color: rgba(0, 0, 0, 0.5); border-width: 9px; } @@ -799,22 +797,22 @@ html[dir='ltr'] .doorHangerRight:before { } #findResultsCount { - background-color: hsl(0, 0%, 85%); - color: hsl(0, 0%, 32%); + background-color: rgba(217, 217, 217, 1); + color: rgba(82, 82, 82, 1); text-align: center; padding: 3px 4px; } #findMsg { font-style: italic; - color: #A6B7D0; + color: rgba(166, 183, 208, 1); } #findMsg:empty { display: none; } #findInput.notFound { - background-color: rgb(255, 102, 102); + background-color: rgba(255, 102, 102, 1); } #toolbarViewerMiddle { @@ -893,14 +891,14 @@ html[dir='rtl'] .splitToolbarButton > .toolbarButton { .splitToolbarButton:focus > .toolbarButton, .splitToolbarButton.toggled > .toolbarButton, .toolbarButton.textButton { - background-color: hsla(0,0%,0%,.12); - background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0)); + background-color: rgba(0, 0, 0, 0.12); + background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)); background-clip: padding-box; - border: 1px solid hsla(0,0%,0%,.35); - border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42); - box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset, - 0 0 1px hsla(0,0%,100%,.15) inset, - 0 1px 0 hsla(0,0%,100%,.05); + border: 1px solid rgba(0, 0, 0, 0.35); + border-color: rgba(0, 0, 0, 0.32) rgba(0, 0, 0, 0.38) rgba(0, 0, 0, 0.42); + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, + 0 0 1px rgba(255, 255, 255, 0.15) inset, + 0 1px 0 rgba(255, 255, 255, 0.05); transition-property: background-color, border-color, box-shadow; transition-duration: 150ms; transition-timing-function: ease; @@ -913,10 +911,10 @@ html[dir='rtl'] .splitToolbarButton > .toolbarButton { .overlayButton:focus, .toolbarButton.textButton:hover, .toolbarButton.textButton:focus { - background-color: hsla(0,0%,0%,.2); - box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset, - 0 0 1px hsla(0,0%,100%,.15) inset, - 0 0 1px hsla(0,0%,0%,.05); + background-color: rgba(0,0,0,0.2); + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, + 0 0 1px rgba(255, 255, 255, 0.15) inset, + 0 0 1px rgba(0, 0, 0, 0.05); z-index: 199; } .splitToolbarButton > .toolbarButton { @@ -929,7 +927,7 @@ html[dir='rtl'] .splitToolbarButton > .toolbarButton:last-child { margin-right: -1px; border-top-left-radius: 2px; border-bottom-left-radius: 2px; - border-right-color: transparent; + border-right-color: rgba(0, 0, 0, 0); } html[dir='ltr'] .splitToolbarButton > .toolbarButton:last-child, html[dir='rtl'] .splitToolbarButton > .toolbarButton:first-child { @@ -938,14 +936,14 @@ html[dir='rtl'] .splitToolbarButton > .toolbarButton:first-child { margin-left: -1px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; - border-left-color: transparent; + border-left-color: rgba(0, 0, 0, 0); } .splitToolbarButtonSeparator { padding: 8px 0; width: 1px; - background-color: hsla(0,0%,0%,.5); + background-color: rgba(0, 0, 0, 0.5); z-index: 99; - box-shadow: 0 0 0 1px hsla(0,0%,100%,.08); + box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); display: inline-block; margin: 5px 0; } @@ -959,7 +957,7 @@ html[dir='rtl'] .splitToolbarButtonSeparator { .splitToolbarButton.toggled > .splitToolbarButtonSeparator { padding: 12px 0; margin: 1px 0; - box-shadow: 0 0 0 1px hsla(0,0%,100%,.03); + box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03); transition-property: padding; transition-duration: 10ms; transition-timing-function: ease; @@ -971,9 +969,9 @@ html[dir='rtl'] .splitToolbarButtonSeparator { .overlayButton { min-width: 16px; padding: 2px 6px 0; - border: 1px solid transparent; + border: 1px solid rgba(0, 0, 0, 0); border-radius: 2px; - color: hsla(0,0%,100%,.8); + color: rgba(255, 255, 255, 0.8); font-size: 12px; line-height: 14px; user-select: none; @@ -1001,26 +999,26 @@ html[dir='rtl'] .dropdownToolbarButton { .overlayButton, .secondaryToolbarButton:hover, .secondaryToolbarButton:focus { - background-color: hsla(0,0%,0%,.12); - background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0)); + background-color: rgba(0, 0, 0, 0.12); + background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)); background-clip: padding-box; - border: 1px solid hsla(0,0%,0%,.35); - border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42); - box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset, - 0 0 1px hsla(0,0%,100%,.15) inset, - 0 1px 0 hsla(0,0%,100%,.05); + border: 1px solid rgba(0, 0, 0, 0.35); + border-color: rgba(0, 0, 0, 0.32) rgba(0, 0, 0, 0.38) rgba(0, 0, 0, 0.42); + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, + 0 0 1px rgba(255, 255, 255, 0.15) inset, + 0 1px 0 rgba(255, 255, 255, 0.05); } .toolbarButton:hover:active, .overlayButton:hover:active, .dropdownToolbarButton:hover:active, .secondaryToolbarButton:hover:active { - background-color: hsla(0,0%,0%,.2); - background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0)); - border-color: hsla(0,0%,0%,.35) hsla(0,0%,0%,.4) hsla(0,0%,0%,.45); - box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset, - 0 0 1px hsla(0,0%,0%,.2) inset, - 0 1px 0 hsla(0,0%,100%,.05); + background-color: rgba(0, 0, 0, 0.2); + background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)); + border-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.45); + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset, + 0 0 1px rgba(0, 0, 0, 0.2) inset, + 0 1px 0 rgba(255, 255, 255, 0.05); transition-property: background-color, border-color, box-shadow; transition-duration: 10ms; transition-timing-function: linear; @@ -1029,12 +1027,12 @@ html[dir='rtl'] .dropdownToolbarButton { .toolbarButton.toggled, .splitToolbarButton.toggled > .toolbarButton.toggled, .secondaryToolbarButton.toggled { - background-color: hsla(0,0%,0%,.3); - background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0)); - border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.45) hsla(0,0%,0%,.5); - box-shadow: 0 1px 1px hsla(0,0%,0%,.1) inset, - 0 0 1px hsla(0,0%,0%,.2) inset, - 0 1px 0 hsla(0,0%,100%,.05); + background-color: rgba(0, 0, 0, 0.3); + background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)); + border-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.45) rgba(0, 0, 0, 0.5); + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset, + 0 0 1px rgba(0, 0, 0, 0.2) inset, + 0 1px 0 rgba(255, 255, 255, 0.05); transition-property: background-color, border-color, box-shadow; transition-duration: 10ms; transition-timing-function: linear; @@ -1043,11 +1041,11 @@ html[dir='rtl'] .dropdownToolbarButton { .toolbarButton.toggled:hover:active, .splitToolbarButton.toggled > .toolbarButton.toggled:hover:active, .secondaryToolbarButton.toggled:hover:active { - background-color: hsla(0,0%,0%,.4); - border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.5) hsla(0,0%,0%,.55); - box-shadow: 0 1px 1px hsla(0,0%,0%,.2) inset, - 0 0 1px hsla(0,0%,0%,.3) inset, - 0 1px 0 hsla(0,0%,100%,.05); + background-color: rgba(0, 0, 0, 0.4); + border-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.55); + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) inset, + 0 0 1px rgba(0, 0, 0, 0.3) inset, + 0 1px 0 rgba(255, 255, 255, 0.05); } .dropdownToolbarButton { @@ -1067,7 +1065,7 @@ html[dir='rtl'] .dropdownToolbarButton { .dropdownToolbarButton > select { min-width: 140px; font-size: 12px; - color: hsl(0,0%,95%); + color: rgba(242, 242, 242, 1); margin: 0; padding: 3px 2px 2px; border: none; @@ -1075,7 +1073,7 @@ html[dir='rtl'] .dropdownToolbarButton { } .dropdownToolbarButton > select > option { - background: hsl(0,0%,24%); + background: rgba(61, 61, 61, 1); } #customScaleOption { @@ -1083,7 +1081,7 @@ html[dir='rtl'] .dropdownToolbarButton { } #pageWidthOption { - border-bottom: 1px rgba(255, 255, 255, .5) solid; + border-bottom: 1px rgba(255, 255, 255, 0.5) solid; } html[dir='ltr'] .splitToolbarButton:first-child, @@ -1252,7 +1250,7 @@ html[dir="rtl"] #viewOutline.toolbarButton::before { top: 1px; /* Create a filled circle, with a diameter of 9 pixels, using only CSS: */ content: ''; - background-color: #70DB55; + background-color: rgba(112, 219, 85, 1); height: 9px; width: 9px; border-radius: 50%; @@ -1353,8 +1351,8 @@ html[dir="rtl"] .secondaryToolbarButton > span { padding: 8px 0; margin: 8px 4px; width: 1px; - background-color: hsla(0,0%,0%,.5); - box-shadow: 0 0 0 1px hsla(0,0%,100%,.08); + background-color: rgba(0, 0, 0, 0.5); + box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); } html[dir='ltr'] .verticalToolbarSeparator { margin-left: 2px; @@ -1368,23 +1366,23 @@ html[dir='rtl'] .verticalToolbarSeparator { margin: 0 0 4px 0; height: 1px; width: 100%; - background-color: hsla(0,0%,0%,.5); - box-shadow: 0 0 0 1px hsla(0,0%,100%,.08); + background-color: rgba(0, 0, 0, 0.5); + box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); } .toolbarField { padding: 3px 6px; margin: 4px 0 4px 0; border-radius: 2px; - background-color: hsla(0,0%,100%,.09); - background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0)); + background-color: rgba(255, 255, 255, 0.09); + background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)); background-clip: padding-box; border-width: 1px; border-style: solid; - border-color: hsla(0,0%,0%,.32) hsla(0,0%,0%,.38) hsla(0,0%,0%,.42); - box-shadow: 0 1px 0 hsla(0,0%,0%,.05) inset, - 0 1px 0 hsla(0,0%,100%,.05); - color: hsl(0,0%,95%); + border-color: rgba(0, 0, 0, 0.32) rgba(0, 0, 0, 0.38) rgba(0, 0, 0, 0.42); + box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) inset, + 0 1px 0 rgba(255, 255, 255, 0.05); + color: rgba(242, 242, 242, 1); font-size: 12px; line-height: 14px; outline-style: none; @@ -1412,22 +1410,22 @@ html[dir='rtl'] .verticalToolbarSeparator { } .toolbarField:hover { - background-color: hsla(0,0%,100%,.11); - border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.43) hsla(0,0%,0%,.45); + background-color: rgba(255, 255, 255, 0.11); + border-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.43) rgba(0, 0, 0, 0.45); } .toolbarField:focus { - background-color: hsla(0,0%,100%,.15); - border-color: hsla(204,100%,65%,.8) hsla(204,100%,65%,.85) hsla(204,100%,65%,.9); + background-color: rgba(255, 255, 255, 0.15); + border-color: rgba(77, 184, 255, 0.8) rgba(77, 184, 255, 0.85) rgba(77, 184, 255, 0.9); } .toolbarLabel { min-width: 16px; padding: 3px 6px 3px 2px; margin: 4px 2px 4px 0; - border: 1px solid transparent; + border: 1px solid rgba(0, 0, 0, 0); border-radius: 2px; - color: hsl(0,0%,85%); + color: rgba(217, 217, 217, 1); font-size: 12px; line-height: 14px; text-align: left; @@ -1473,11 +1471,11 @@ html[dir='rtl'] .thumbnail { } .thumbnailImage { - border: 1px solid transparent; + border: 1px solid rgba(0, 0, 0, 0); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); opacity: 0.8; z-index: 99; - background-color: white; + background-color: rgba(255, 255, 255, 1); background-clip: content-box; } @@ -1493,28 +1491,28 @@ a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage, a:focus > .thumbnail > .thumbnailSelectionRing, .thumbnail:hover > .thumbnailSelectionRing { - background-color: hsla(0,0%,100%,.15); - background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0)); + background-color: rgba(255, 255, 255, 0.15); + background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)); background-clip: padding-box; - box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset, - 0 0 1px hsla(0,0%,100%,.2) inset, - 0 0 1px hsla(0,0%,0%,.2); - color: hsla(0,0%,100%,.9); + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, + 0 0 1px rgba(255, 255, 255, 0.2) inset, + 0 0 1px rgba(0, 0, 0, 0.2); + color: rgba(255, 255, 255, 0.9); } .thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage { - box-shadow: 0 0 0 1px hsla(0,0%,0%,.5); + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); opacity: 1; } .thumbnail.selected > .thumbnailSelectionRing { - background-color: hsla(0,0%,100%,.3); - background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0)); + background-color: rgba(255, 255, 255, 0.3); + background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)); background-clip: padding-box; - box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset, - 0 0 1px hsla(0,0%,100%,.1) inset, - 0 0 1px hsla(0,0%,0%,.2); - color: hsla(0,0%,100%,1); + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, + 0 0 1px rgba(255, 255, 255, 0.1) inset, + 0 0 1px rgba(0, 0, 0, 0.2); + color: rgba(255, 255, 255,1); } #outlineView, @@ -1554,7 +1552,7 @@ html[dir='rtl'] .outlineItem > .outlineItems { height: auto; margin-bottom: 1px; border-radius: 2px; - color: hsla(0,0%,100%,.8); + color: rgba(255, 255, 255, 0.8); font-size: 13px; line-height: 15px; user-select: none; @@ -1588,7 +1586,7 @@ html[dir='rtl'] .attachmentsItem > button { position: relative; height: 0; width: 0; - color: hsla(0,0%,100%,.5); + color: rgba(255, 255, 255, 0.5); } .outlineItemToggler::before { content: url(images/treeitem-expanded.png); @@ -1622,29 +1620,29 @@ html[dir='rtl'] .outlineItemToggler::before { .outlineItemToggler:hover ~ .outlineItems, .outlineItem > a:hover, .attachmentsItem > button:hover { - background-color: hsla(0,0%,100%,.02); - background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0)); + background-color: rgba(255, 255, 255, 0.02); + background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)); background-clip: padding-box; - box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset, - 0 0 1px hsla(0,0%,100%,.2) inset, - 0 0 1px hsla(0,0%,0%,.2); + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, + 0 0 1px rgba(255, 255, 255, 0.2) inset, + 0 0 1px rgba(0, 0, 0, 0.2); border-radius: 2px; - color: hsla(0,0%,100%,.9); + color: rgba(255, 255, 255, 0.9); } .outlineItem.selected { - background-color: hsla(0,0%,100%,.08); - background-image: linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0)); + background-color: rgba(255, 255, 255, 0.08); + background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)); background-clip: padding-box; - box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset, - 0 0 1px hsla(0,0%,100%,.1) inset, - 0 0 1px hsla(0,0%,0%,.2); - color: hsla(0,0%,100%,1); + box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, + 0 0 1px rgba(255, 255, 255, 0.1) inset, + 0 0 1px rgba(0, 0, 0, 0.2); + color: rgba(255, 255, 255, 1); } .noResults { font-size: 12px; - color: hsla(0,0%,100%,.8); + color: rgba(255, 255, 255, 0.8); font-style: italic; cursor: default; } @@ -1652,11 +1650,13 @@ html[dir='rtl'] .outlineItemToggler::before { /* TODO: file FF bug to support ::-moz-selection:window-inactive so we can override the opaque grey background when the window is inactive; see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */ -::selection { background: rgba(0,0,255,0.3); } +::selection { + background: rgba(0, 0, 255, 0.3); +} #errorWrapper { - background: none repeat scroll 0 0 #FF5555; - color: white; + background: none repeat scroll 0 0 rgba(255, 85, 85, 1); + color: rgba(255, 255, 255, 1); left: 0; position: absolute; right: 0; @@ -1677,8 +1677,8 @@ html[dir='rtl'] .outlineItemToggler::before { } #errorMoreInfo { - background-color: #FFFFFF; - color: black; + background-color: rgba(255, 255, 255, 1); + color: rgba(0, 0, 0, 1); padding: 3px; margin: 3px; width: 98%; @@ -1695,7 +1695,7 @@ html[dir='rtl'] .outlineItemToggler::before { position: absolute; width: 100%; height: 100%; - background-color: hsla(0,0%,0%,.2); + background-color: rgba(0, 0, 0, 0.2); z-index: 40000; } #overlayContainer > * { @@ -1712,13 +1712,13 @@ html[dir='rtl'] .outlineItemToggler::before { display: inline-block; padding: 15px; border-spacing: 4px; - color: hsl(0,0%,85%); + color: rgba(217, 217, 217, 1); font-size: 12px; line-height: 14px; - background-color: #474747; /* fallback */ + background-color: rgba(71, 71, 71, 1); /* fallback */ background-image: url(images/texture.png), - linear-gradient(hsla(0,0%,32%,.99), hsla(0,0%,27%,.95)); - border: 1px solid hsla(0,0%,0%,.5); + linear-gradient(rgba(82, 82, 82,0.99), rgba(69, 69, 69, 0.95)); + border: 1px solid rgba(0, 0, 0, 0.5); border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); } @@ -1740,8 +1740,8 @@ html[dir='rtl'] .outlineItemToggler::before { margin: 4px 0 4px 0; height: 1px; width: 100%; - background-color: hsla(0,0%,0%,.5); - box-shadow: 0 0 0 1px hsla(0,0%,100%,.08); + background-color: rgba(0, 0, 0, 0.5); + box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); } .dialog .buttonRow { @@ -1750,7 +1750,7 @@ html[dir='rtl'] .outlineItemToggler::before { } .dialog :link { - color: white; + color: rgba(255, 255, 255, 1); } #passwordOverlay > .dialog { @@ -1789,8 +1789,8 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * { } .fileInput { - background: white; - color: black; + background: rgba(255, 255, 255, 1); + color: rgba(0, 0, 0, 1); margin-top: 5px; visibility: hidden; position: fixed; @@ -1799,8 +1799,8 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * { } #PDFBug { - background: none repeat scroll 0 0 white; - border: 1px solid #666666; + background: none repeat scroll 0 0 rgba(255, 255, 255, 1); + border: 1px solid rgba(102, 102, 102, 1); position: fixed; top: 32px; right: 0; @@ -1810,9 +1810,9 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * { width: 300px; } #PDFBug .controls { - background:#EEEEEE; - border-bottom: 1px solid #666666; - padding: 3px; + background: rgba(238, 238, 238, 1); + border-bottom: 1px solid rgba(102, 102, 102, 1); + padding: 3px; } #PDFBug .panels { bottom: 0; @@ -1826,11 +1826,11 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * { font-weight: bold; } .debuggerShowText { - background: none repeat scroll 0 0 yellow; - color: blue; + background: none repeat scroll 0 0 rgba(255, 255, 0, 1); + color: rgba(0, 0, 255, 1); } .debuggerHideText:hover { - background: none repeat scroll 0 0 yellow; + background: none repeat scroll 0 0 rgba(255, 255, 0, 1); } #PDFBug .stats { font-family: courier; @@ -1849,7 +1849,7 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * { } #viewer.textLayer-visible .canvasWrapper { - background-color: rgb(128,255,128); + background-color: rgba(128, 255, 128, 1); } #viewer.textLayer-visible .canvasWrapper canvas { @@ -1858,19 +1858,19 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * { #viewer.textLayer-visible .textLayer > span { background-color: rgba(255, 255, 0, 0.1); - color: black; + color: rgba(0, 0, 0, 1); border: solid 1px rgba(255, 0, 0, 0.5); box-sizing: border-box; } #viewer.textLayer-hover .textLayer > span:hover { - background-color: white; - color: black; + background-color: rgba(255, 255, 255, 1); + color: rgba(0, 0, 0, 1); } #viewer.textLayer-shadow .textLayer > span { - background-color: rgba(255,255,255, .6); - color: black; + background-color: rgba(255, 255, 255, 0.6); + color: rgba(0, 0, 0, 1); } .grab-to-pan-grab { @@ -1884,9 +1884,8 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * { .grab-to-pan-grabbing { cursor: url("images/grabbing.cur"), move !important; cursor: grabbing !important; - position: fixed; - background: transparent; + background: rgba(0, 0, 0, 0); display: block; top: 0; left: 0; @@ -2107,7 +2106,7 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * { @media print { /* General rules for printing. */ body { - background: transparent none; + background: rgba(0, 0, 0, 0) none; } /* Rules for browsers that don't support mozPrintCallback. */ @@ -2130,7 +2129,7 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * { border: none; box-shadow: none; background-clip: content-box; - background-color: white; + background-color: rgba(255, 255, 255, 1); } .page[data-loaded] { @@ -2186,7 +2185,7 @@ html[dir='rtl'] #documentPropertiesOverlay .row > * { @media all and (max-width: 840px) { #sidebarContent { - background-color: hsla(0,0%,0%,.7); + background-color: rgba(0, 0, 0, 0.7); } html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer { diff --git a/browser/extensions/pdfjs/content/web/viewer.js b/browser/extensions/pdfjs/content/web/viewer.js index 413c00faad37..ed347facaef2 100644 --- a/browser/extensions/pdfjs/content/web/viewer.js +++ b/browser/extensions/pdfjs/content/web/viewer.js @@ -131,137 +131,137 @@ let pdfjsWebApp, pdfjsWebAppOptions; function getViewerConfiguration() { return { appContainer: document.body, - mainContainer: document.getElementById('viewerContainer'), - viewerContainer: document.getElementById('viewer'), + mainContainer: document.getElementById("viewerContainer"), + viewerContainer: document.getElementById("viewer"), eventBus: null, toolbar: { - container: document.getElementById('toolbarViewer'), - numPages: document.getElementById('numPages'), - pageNumber: document.getElementById('pageNumber'), - scaleSelectContainer: document.getElementById('scaleSelectContainer'), - scaleSelect: document.getElementById('scaleSelect'), - customScaleOption: document.getElementById('customScaleOption'), - previous: document.getElementById('previous'), - next: document.getElementById('next'), - zoomIn: document.getElementById('zoomIn'), - zoomOut: document.getElementById('zoomOut'), - viewFind: document.getElementById('viewFind'), - openFile: document.getElementById('openFile'), - print: document.getElementById('print'), - presentationModeButton: document.getElementById('presentationMode'), - download: document.getElementById('download'), - viewBookmark: document.getElementById('viewBookmark') + container: document.getElementById("toolbarViewer"), + numPages: document.getElementById("numPages"), + pageNumber: document.getElementById("pageNumber"), + scaleSelectContainer: document.getElementById("scaleSelectContainer"), + scaleSelect: document.getElementById("scaleSelect"), + customScaleOption: document.getElementById("customScaleOption"), + previous: document.getElementById("previous"), + next: document.getElementById("next"), + zoomIn: document.getElementById("zoomIn"), + zoomOut: document.getElementById("zoomOut"), + viewFind: document.getElementById("viewFind"), + openFile: document.getElementById("openFile"), + print: document.getElementById("print"), + presentationModeButton: document.getElementById("presentationMode"), + download: document.getElementById("download"), + viewBookmark: document.getElementById("viewBookmark") }, secondaryToolbar: { - toolbar: document.getElementById('secondaryToolbar'), - toggleButton: document.getElementById('secondaryToolbarToggle'), - toolbarButtonContainer: document.getElementById('secondaryToolbarButtonContainer'), - presentationModeButton: document.getElementById('secondaryPresentationMode'), - openFileButton: document.getElementById('secondaryOpenFile'), - printButton: document.getElementById('secondaryPrint'), - downloadButton: document.getElementById('secondaryDownload'), - viewBookmarkButton: document.getElementById('secondaryViewBookmark'), - firstPageButton: document.getElementById('firstPage'), - lastPageButton: document.getElementById('lastPage'), - pageRotateCwButton: document.getElementById('pageRotateCw'), - pageRotateCcwButton: document.getElementById('pageRotateCcw'), - cursorSelectToolButton: document.getElementById('cursorSelectTool'), - cursorHandToolButton: document.getElementById('cursorHandTool'), - scrollVerticalButton: document.getElementById('scrollVertical'), - scrollHorizontalButton: document.getElementById('scrollHorizontal'), - scrollWrappedButton: document.getElementById('scrollWrapped'), - spreadNoneButton: document.getElementById('spreadNone'), - spreadOddButton: document.getElementById('spreadOdd'), - spreadEvenButton: document.getElementById('spreadEven'), - documentPropertiesButton: document.getElementById('documentProperties') + toolbar: document.getElementById("secondaryToolbar"), + toggleButton: document.getElementById("secondaryToolbarToggle"), + toolbarButtonContainer: document.getElementById("secondaryToolbarButtonContainer"), + presentationModeButton: document.getElementById("secondaryPresentationMode"), + openFileButton: document.getElementById("secondaryOpenFile"), + printButton: document.getElementById("secondaryPrint"), + downloadButton: document.getElementById("secondaryDownload"), + viewBookmarkButton: document.getElementById("secondaryViewBookmark"), + firstPageButton: document.getElementById("firstPage"), + lastPageButton: document.getElementById("lastPage"), + pageRotateCwButton: document.getElementById("pageRotateCw"), + pageRotateCcwButton: document.getElementById("pageRotateCcw"), + cursorSelectToolButton: document.getElementById("cursorSelectTool"), + cursorHandToolButton: document.getElementById("cursorHandTool"), + scrollVerticalButton: document.getElementById("scrollVertical"), + scrollHorizontalButton: document.getElementById("scrollHorizontal"), + scrollWrappedButton: document.getElementById("scrollWrapped"), + spreadNoneButton: document.getElementById("spreadNone"), + spreadOddButton: document.getElementById("spreadOdd"), + spreadEvenButton: document.getElementById("spreadEven"), + documentPropertiesButton: document.getElementById("documentProperties") }, fullscreen: { - contextFirstPage: document.getElementById('contextFirstPage'), - contextLastPage: document.getElementById('contextLastPage'), - contextPageRotateCw: document.getElementById('contextPageRotateCw'), - contextPageRotateCcw: document.getElementById('contextPageRotateCcw') + contextFirstPage: document.getElementById("contextFirstPage"), + contextLastPage: document.getElementById("contextLastPage"), + contextPageRotateCw: document.getElementById("contextPageRotateCw"), + contextPageRotateCcw: document.getElementById("contextPageRotateCcw") }, sidebar: { - outerContainer: document.getElementById('outerContainer'), - viewerContainer: document.getElementById('viewerContainer'), - toggleButton: document.getElementById('sidebarToggle'), - thumbnailButton: document.getElementById('viewThumbnail'), - outlineButton: document.getElementById('viewOutline'), - attachmentsButton: document.getElementById('viewAttachments'), - thumbnailView: document.getElementById('thumbnailView'), - outlineView: document.getElementById('outlineView'), - attachmentsView: document.getElementById('attachmentsView') + outerContainer: document.getElementById("outerContainer"), + viewerContainer: document.getElementById("viewerContainer"), + toggleButton: document.getElementById("sidebarToggle"), + thumbnailButton: document.getElementById("viewThumbnail"), + outlineButton: document.getElementById("viewOutline"), + attachmentsButton: document.getElementById("viewAttachments"), + thumbnailView: document.getElementById("thumbnailView"), + outlineView: document.getElementById("outlineView"), + attachmentsView: document.getElementById("attachmentsView") }, sidebarResizer: { - outerContainer: document.getElementById('outerContainer'), - resizer: document.getElementById('sidebarResizer') + outerContainer: document.getElementById("outerContainer"), + resizer: document.getElementById("sidebarResizer") }, findBar: { - bar: document.getElementById('findbar'), - toggleButton: document.getElementById('viewFind'), - findField: document.getElementById('findInput'), - highlightAllCheckbox: document.getElementById('findHighlightAll'), - caseSensitiveCheckbox: document.getElementById('findMatchCase'), - entireWordCheckbox: document.getElementById('findEntireWord'), - findMsg: document.getElementById('findMsg'), - findResultsCount: document.getElementById('findResultsCount'), - findPreviousButton: document.getElementById('findPrevious'), - findNextButton: document.getElementById('findNext') + bar: document.getElementById("findbar"), + toggleButton: document.getElementById("viewFind"), + findField: document.getElementById("findInput"), + highlightAllCheckbox: document.getElementById("findHighlightAll"), + caseSensitiveCheckbox: document.getElementById("findMatchCase"), + entireWordCheckbox: document.getElementById("findEntireWord"), + findMsg: document.getElementById("findMsg"), + findResultsCount: document.getElementById("findResultsCount"), + findPreviousButton: document.getElementById("findPrevious"), + findNextButton: document.getElementById("findNext") }, passwordOverlay: { - overlayName: 'passwordOverlay', - container: document.getElementById('passwordOverlay'), - label: document.getElementById('passwordText'), - input: document.getElementById('password'), - submitButton: document.getElementById('passwordSubmit'), - cancelButton: document.getElementById('passwordCancel') + overlayName: "passwordOverlay", + container: document.getElementById("passwordOverlay"), + label: document.getElementById("passwordText"), + input: document.getElementById("password"), + submitButton: document.getElementById("passwordSubmit"), + cancelButton: document.getElementById("passwordCancel") }, documentProperties: { - overlayName: 'documentPropertiesOverlay', - container: document.getElementById('documentPropertiesOverlay'), - closeButton: document.getElementById('documentPropertiesClose'), + overlayName: "documentPropertiesOverlay", + container: document.getElementById("documentPropertiesOverlay"), + closeButton: document.getElementById("documentPropertiesClose"), fields: { - 'fileName': document.getElementById('fileNameField'), - 'fileSize': document.getElementById('fileSizeField'), - 'title': document.getElementById('titleField'), - 'author': document.getElementById('authorField'), - 'subject': document.getElementById('subjectField'), - 'keywords': document.getElementById('keywordsField'), - 'creationDate': document.getElementById('creationDateField'), - 'modificationDate': document.getElementById('modificationDateField'), - 'creator': document.getElementById('creatorField'), - 'producer': document.getElementById('producerField'), - 'version': document.getElementById('versionField'), - 'pageCount': document.getElementById('pageCountField'), - 'pageSize': document.getElementById('pageSizeField'), - 'linearized': document.getElementById('linearizedField') + fileName: document.getElementById("fileNameField"), + fileSize: document.getElementById("fileSizeField"), + title: document.getElementById("titleField"), + author: document.getElementById("authorField"), + subject: document.getElementById("subjectField"), + keywords: document.getElementById("keywordsField"), + creationDate: document.getElementById("creationDateField"), + modificationDate: document.getElementById("modificationDateField"), + creator: document.getElementById("creatorField"), + producer: document.getElementById("producerField"), + version: document.getElementById("versionField"), + pageCount: document.getElementById("pageCountField"), + pageSize: document.getElementById("pageSizeField"), + linearized: document.getElementById("linearizedField") } }, errorWrapper: { - container: document.getElementById('errorWrapper'), - errorMessage: document.getElementById('errorMessage'), - closeButton: document.getElementById('errorClose'), - errorMoreInfo: document.getElementById('errorMoreInfo'), - moreInfoButton: document.getElementById('errorShowMore'), - lessInfoButton: document.getElementById('errorShowLess') + container: document.getElementById("errorWrapper"), + errorMessage: document.getElementById("errorMessage"), + closeButton: document.getElementById("errorClose"), + errorMoreInfo: document.getElementById("errorMoreInfo"), + moreInfoButton: document.getElementById("errorShowMore"), + lessInfoButton: document.getElementById("errorShowLess") }, - printContainer: document.getElementById('printContainer'), - openFileInputName: 'fileInput', - debuggerScriptPath: './debugger.js' + printContainer: document.getElementById("printContainer"), + openFileInputName: "fileInput", + debuggerScriptPath: "./debugger.js" }; } function webViewerLoad() { - let config = getViewerConfiguration(); + const config = getViewerConfiguration(); window.PDFViewerApplication = pdfjsWebApp.PDFViewerApplication; window.PDFViewerApplicationOptions = pdfjsWebAppOptions.AppOptions; pdfjsWebApp.PDFViewerApplication.run(config); } -if (document.readyState === 'interactive' || document.readyState === 'complete') { +if (document.readyState === "interactive" || document.readyState === "complete") { webViewerLoad(); } else { - document.addEventListener('DOMContentLoaded', webViewerLoad, true); + document.addEventListener("DOMContentLoaded", webViewerLoad, true); } /***/ }), @@ -341,15 +341,15 @@ const DefaultExternalServices = { reportTelemetry(data) {}, createDownloadManager(options) { - throw new Error('Not implemented: createDownloadManager'); + throw new Error("Not implemented: createDownloadManager"); }, createPreferences() { - throw new Error('Not implemented: createPreferences'); + throw new Error("Not implemented: createPreferences"); }, createL10n(options) { - throw new Error('Not implemented: createL10n'); + throw new Error("Not implemented: createL10n"); }, supportsIntegratedFind: false, @@ -361,7 +361,7 @@ const DefaultExternalServices = { } }; exports.DefaultExternalServices = DefaultExternalServices; -let PDFViewerApplication = { +const PDFViewerApplication = { initialBookmark: document.location.hash.substring(1), initialized: false, fellback: false, @@ -392,8 +392,8 @@ let PDFViewerApplication = { isInitialViewSet: false, downloadComplete: false, isViewerEmbedded: window.parent !== window, - url: '', - baseUrl: '', + url: "", + baseUrl: "", externalServices: DefaultExternalServices, _boundEvents: {}, contentDispositionFilename: null, @@ -405,16 +405,16 @@ let PDFViewerApplication = { await this._parseHashParameters(); await this._initializeL10n(); - if (this.isViewerEmbedded && _app_options.AppOptions.get('externalLinkTarget') === _pdfjsLib.LinkTarget.NONE) { - _app_options.AppOptions.set('externalLinkTarget', _pdfjsLib.LinkTarget.TOP); + if (this.isViewerEmbedded && _app_options.AppOptions.get("externalLinkTarget") === _pdfjsLib.LinkTarget.NONE) { + _app_options.AppOptions.set("externalLinkTarget", _pdfjsLib.LinkTarget.TOP); } await this._initializeViewerComponents(); this.bindEvents(); this.bindWindowEvents(); - let appContainer = appConfig.appContainer || document.documentElement; + const appContainer = appConfig.appContainer || document.documentElement; this.l10n.translate(appContainer).then(() => { - this.eventBus.dispatch('localized', { + this.eventBus.dispatch("localized", { source: this }); }); @@ -422,7 +422,7 @@ let PDFViewerApplication = { }, async _readPreferences() { - if (_app_options.AppOptions.get('disablePreferences') === true) { + if (_app_options.AppOptions.get("disablePreferences") === true) { return; } @@ -438,70 +438,70 @@ let PDFViewerApplication = { }, async _parseHashParameters() { - if (!_app_options.AppOptions.get('pdfBugEnabled')) { + if (!_app_options.AppOptions.get("pdfBugEnabled")) { return undefined; } const waitOn = []; - let hash = document.location.hash.substring(1); - let hashParams = (0, _ui_utils.parseQueryString)(hash); + const hash = document.location.hash.substring(1); + const hashParams = (0, _ui_utils.parseQueryString)(hash); - if ('disableworker' in hashParams && hashParams['disableworker'] === 'true') { + if ("disableworker" in hashParams && hashParams["disableworker"] === "true") { waitOn.push(loadFakeWorker()); } - if ('disablerange' in hashParams) { - _app_options.AppOptions.set('disableRange', hashParams['disablerange'] === 'true'); + if ("disablerange" in hashParams) { + _app_options.AppOptions.set("disableRange", hashParams["disablerange"] === "true"); } - if ('disablestream' in hashParams) { - _app_options.AppOptions.set('disableStream', hashParams['disablestream'] === 'true'); + if ("disablestream" in hashParams) { + _app_options.AppOptions.set("disableStream", hashParams["disablestream"] === "true"); } - if ('disableautofetch' in hashParams) { - _app_options.AppOptions.set('disableAutoFetch', hashParams['disableautofetch'] === 'true'); + if ("disableautofetch" in hashParams) { + _app_options.AppOptions.set("disableAutoFetch", hashParams["disableautofetch"] === "true"); } - if ('disablefontface' in hashParams) { - _app_options.AppOptions.set('disableFontFace', hashParams['disablefontface'] === 'true'); + if ("disablefontface" in hashParams) { + _app_options.AppOptions.set("disableFontFace", hashParams["disablefontface"] === "true"); } - if ('disablehistory' in hashParams) { - _app_options.AppOptions.set('disableHistory', hashParams['disablehistory'] === 'true'); + if ("disablehistory" in hashParams) { + _app_options.AppOptions.set("disableHistory", hashParams["disablehistory"] === "true"); } - if ('webgl' in hashParams) { - _app_options.AppOptions.set('enableWebGL', hashParams['webgl'] === 'true'); + if ("webgl" in hashParams) { + _app_options.AppOptions.set("enableWebGL", hashParams["webgl"] === "true"); } - if ('useonlycsszoom' in hashParams) { - _app_options.AppOptions.set('useOnlyCssZoom', hashParams['useonlycsszoom'] === 'true'); + if ("useonlycsszoom" in hashParams) { + _app_options.AppOptions.set("useOnlyCssZoom", hashParams["useonlycsszoom"] === "true"); } - if ('verbosity' in hashParams) { - _app_options.AppOptions.set('verbosity', hashParams['verbosity'] | 0); + if ("verbosity" in hashParams) { + _app_options.AppOptions.set("verbosity", hashParams["verbosity"] | 0); } - if ('textlayer' in hashParams) { - switch (hashParams['textlayer']) { - case 'off': - _app_options.AppOptions.set('textLayerMode', _ui_utils.TextLayerMode.DISABLE); + if ("textlayer" in hashParams) { + switch (hashParams["textlayer"]) { + case "off": + _app_options.AppOptions.set("textLayerMode", _ui_utils.TextLayerMode.DISABLE); break; - case 'visible': - case 'shadow': - case 'hover': - let viewer = this.appConfig.viewerContainer; - viewer.classList.add('textLayer-' + hashParams['textlayer']); + case "visible": + case "shadow": + case "hover": + const viewer = this.appConfig.viewerContainer; + viewer.classList.add("textLayer-" + hashParams["textlayer"]); break; } } - if ('pdfbug' in hashParams) { - _app_options.AppOptions.set('pdfBug', true); + if ("pdfbug" in hashParams) { + _app_options.AppOptions.set("pdfBug", true); - let enabled = hashParams['pdfbug'].split(','); + const enabled = hashParams["pdfbug"].split(","); waitOn.push(loadAndEnablePDFBug(enabled)); } @@ -512,28 +512,28 @@ let PDFViewerApplication = { async _initializeL10n() { this.l10n = this.externalServices.createL10n({ - locale: _app_options.AppOptions.get('locale') + locale: _app_options.AppOptions.get("locale") }); const dir = await this.l10n.getDirection(); - document.getElementsByTagName('html')[0].dir = dir; + document.getElementsByTagName("html")[0].dir = dir; }, async _initializeViewerComponents() { const appConfig = this.appConfig; this.overlayManager = new _overlay_manager.OverlayManager(); - const eventBus = appConfig.eventBus || (0, _ui_utils.getGlobalEventBus)(_app_options.AppOptions.get('eventBusDispatchToDOM')); + const eventBus = appConfig.eventBus || (0, _ui_utils.getGlobalEventBus)(_app_options.AppOptions.get("eventBusDispatchToDOM")); this.eventBus = eventBus; - let pdfRenderingQueue = new _pdf_rendering_queue.PDFRenderingQueue(); + const pdfRenderingQueue = new _pdf_rendering_queue.PDFRenderingQueue(); pdfRenderingQueue.onIdle = this.cleanup.bind(this); this.pdfRenderingQueue = pdfRenderingQueue; - let pdfLinkService = new _pdf_link_service.PDFLinkService({ + const pdfLinkService = new _pdf_link_service.PDFLinkService({ eventBus, - externalLinkTarget: _app_options.AppOptions.get('externalLinkTarget'), - externalLinkRel: _app_options.AppOptions.get('externalLinkRel') + externalLinkTarget: _app_options.AppOptions.get("externalLinkTarget"), + externalLinkRel: _app_options.AppOptions.get("externalLinkRel") }); this.pdfLinkService = pdfLinkService; - let downloadManager = this.externalServices.createDownloadManager({ - disableCreateObjectURL: _app_options.AppOptions.get('disableCreateObjectURL') + const downloadManager = this.externalServices.createDownloadManager({ + disableCreateObjectURL: _app_options.AppOptions.get("disableCreateObjectURL") }); this.downloadManager = downloadManager; const findController = new _pdf_find_controller.PDFFindController({ @@ -551,15 +551,15 @@ let PDFViewerApplication = { linkService: pdfLinkService, downloadManager, findController, - renderer: _app_options.AppOptions.get('renderer'), - enableWebGL: _app_options.AppOptions.get('enableWebGL'), + renderer: _app_options.AppOptions.get("renderer"), + enableWebGL: _app_options.AppOptions.get("enableWebGL"), l10n: this.l10n, - textLayerMode: _app_options.AppOptions.get('textLayerMode'), - imageResourcesPath: _app_options.AppOptions.get('imageResourcesPath'), - renderInteractiveForms: _app_options.AppOptions.get('renderInteractiveForms'), - enablePrintAutoRotate: _app_options.AppOptions.get('enablePrintAutoRotate'), - useOnlyCssZoom: _app_options.AppOptions.get('useOnlyCssZoom'), - maxCanvasPixels: _app_options.AppOptions.get('maxCanvasPixels') + textLayerMode: _app_options.AppOptions.get("textLayerMode"), + imageResourcesPath: _app_options.AppOptions.get("imageResourcesPath"), + renderInteractiveForms: _app_options.AppOptions.get("renderInteractiveForms"), + enablePrintAutoRotate: _app_options.AppOptions.get("enablePrintAutoRotate"), + useOnlyCssZoom: _app_options.AppOptions.get("useOnlyCssZoom"), + maxCanvasPixels: _app_options.AppOptions.get("maxCanvasPixels") }); pdfRenderingQueue.setViewer(this.pdfViewer); pdfLinkService.setViewer(this.pdfViewer); @@ -584,7 +584,7 @@ let PDFViewerApplication = { this.pdfCursorTools = new _pdf_cursor_tools.PDFCursorTools({ container, eventBus, - cursorToolOnLoad: _app_options.AppOptions.get('cursorToolOnLoad') + cursorToolOnLoad: _app_options.AppOptions.get("cursorToolOnLoad") }); this.toolbar = new _toolbar.Toolbar(appConfig.toolbar, eventBus, this.l10n); this.secondaryToolbar = new _secondary_toolbar.SecondaryToolbar(appConfig.secondaryToolbar, container, eventBus); @@ -687,7 +687,7 @@ let PDFViewerApplication = { get supportsFullscreen() { let support; support = document.fullscreenEnabled === true || document.mozFullScreenEnabled === true; - return (0, _pdfjsLib.shadow)(this, 'supportsFullscreen', support); + return (0, _pdfjsLib.shadow)(this, "supportsFullscreen", support); }, get supportsIntegratedFind() { @@ -703,8 +703,8 @@ let PDFViewerApplication = { }, get loadingBar() { - let bar = new _ui_utils.ProgressBar('#loadingBar'); - return (0, _pdfjsLib.shadow)(this, 'loadingBar', bar); + const bar = new _ui_utils.ProgressBar("#loadingBar"); + return (0, _pdfjsLib.shadow)(this, "loadingBar", bar); }, get supportedMouseWheelZoomModifierKeys() { @@ -745,7 +745,7 @@ let PDFViewerApplication = { }, onError(err) { - PDFViewerApplication.l10n.get('loading_error', null, 'An error occurred while loading the PDF.').then(msg => { + PDFViewerApplication.l10n.get("loading_error", null, "An error occurred while loading the PDF.").then(msg => { PDFViewerApplication.error(msg, err); }); }, @@ -757,10 +757,10 @@ let PDFViewerApplication = { }); }, - setTitleUsingUrl(url = '') { + setTitleUsingUrl(url = "") { this.url = url; - this.baseUrl = url.split('#')[0]; - let title = (0, _ui_utils.getPDFFileNameFromURL)(url, ''); + this.baseUrl = url.split("#")[0]; + let title = (0, _ui_utils.getPDFFileNameFromURL)(url, ""); if (!title) { try { @@ -782,14 +782,14 @@ let PDFViewerApplication = { }, async close() { - let errorWrapper = this.appConfig.errorWrapper.container; - errorWrapper.setAttribute('hidden', 'true'); + const errorWrapper = this.appConfig.errorWrapper.container; + errorWrapper.setAttribute("hidden", "true"); if (!this.pdfLoadingTask) { return undefined; } - let promise = this.pdfLoadingTask.destroy(); + const promise = this.pdfLoadingTask.destroy(); this.pdfLoadingTask = null; if (this.pdfDocument) { @@ -803,13 +803,17 @@ let PDFViewerApplication = { this.store = null; this.isInitialViewSet = false; this.downloadComplete = false; - this.url = ''; - this.baseUrl = ''; + this.url = ""; + this.baseUrl = ""; this.contentDispositionFilename = null; this.pdfSidebar.reset(); this.pdfOutlineViewer.reset(); this.pdfAttachmentViewer.reset(); + if (this.pdfHistory) { + this.pdfHistory.reset(); + } + if (this.findBar) { this.findBar.reset(); } @@ -817,7 +821,7 @@ let PDFViewerApplication = { this.toolbar.reset(); this.secondaryToolbar.reset(); - if (typeof PDFBug !== 'undefined') { + if (typeof PDFBug !== "undefined") { PDFBug.cleanup(); } @@ -831,16 +835,16 @@ let PDFViewerApplication = { const workerParameters = _app_options.AppOptions.getAll(_app_options.OptionKind.WORKER); - for (let key in workerParameters) { + for (const key in workerParameters) { _pdfjsLib.GlobalWorkerOptions[key] = workerParameters[key]; } - let parameters = Object.create(null); + const parameters = Object.create(null); - if (typeof file === 'string') { + if (typeof file === "string") { this.setTitleUsingUrl(file); parameters.url = file; - } else if (file && 'byteLength' in file) { + } else if (file && "byteLength" in file) { parameters.data = file; } else if (file.url && file.originalUrl) { this.setTitleUsingUrl(file.originalUrl); @@ -849,10 +853,10 @@ let PDFViewerApplication = { const apiParameters = _app_options.AppOptions.getAll(_app_options.OptionKind.API); - for (let key in apiParameters) { + for (const key in apiParameters) { let value = apiParameters[key]; - if (key === 'docBaseUrl' && !value) { + if (key === "docBaseUrl" && !value) { value = this.baseUrl; } @@ -860,10 +864,10 @@ let PDFViewerApplication = { } if (args) { - for (let key in args) { + for (const key in args) { const value = args[key]; - if (key === 'length') { + if (key === "length") { this.pdfDocumentProperties.setFileSize(value); } @@ -871,7 +875,7 @@ let PDFViewerApplication = { } } - let loadingTask = (0, _pdfjsLib.getDocument)(parameters); + const loadingTask = (0, _pdfjsLib.getDocument)(parameters); this.pdfLoadingTask = loadingTask; loadingTask.onPassword = (updateCallback, reason) => { @@ -895,17 +899,17 @@ let PDFViewerApplication = { return undefined; } - let message = exception && exception.message; + const message = exception && exception.message; let loadingErrorMessage; if (exception instanceof _pdfjsLib.InvalidPDFException) { - loadingErrorMessage = this.l10n.get('invalid_file_error', null, 'Invalid or corrupted PDF file.'); + loadingErrorMessage = this.l10n.get("invalid_file_error", null, "Invalid or corrupted PDF file."); } else if (exception instanceof _pdfjsLib.MissingPDFException) { - loadingErrorMessage = this.l10n.get('missing_file_error', null, 'Missing PDF file.'); + loadingErrorMessage = this.l10n.get("missing_file_error", null, "Missing PDF file."); } else if (exception instanceof _pdfjsLib.UnexpectedResponseException) { - loadingErrorMessage = this.l10n.get('unexpected_response_error', null, 'Unexpected server response.'); + loadingErrorMessage = this.l10n.get("unexpected_response_error", null, "Unexpected server response."); } else { - loadingErrorMessage = this.l10n.get('loading_error', null, 'An error occurred while loading the PDF.'); + loadingErrorMessage = this.l10n.get("loading_error", null, "An error occurred while loading the PDF."); } return loadingErrorMessage.then(msg => { @@ -922,9 +926,9 @@ let PDFViewerApplication = { downloadManager.downloadUrl(url, filename); } - let url = this.baseUrl; - let filename = this.contentDispositionFilename || (0, _ui_utils.getPDFFileNameFromURL)(this.url); - let downloadManager = this.downloadManager; + const url = this.baseUrl; + const filename = this.contentDispositionFilename || (0, _ui_utils.getPDFFileNameFromURL)(this.url); + const downloadManager = this.downloadManager; downloadManager.onerror = err => { this.error(`PDF failed to download: ${err}`); @@ -937,7 +941,7 @@ let PDFViewerApplication = { this.pdfDocument.getData().then(function (data) { const blob = new Blob([data], { - type: 'application/pdf' + type: "application/pdf" }); downloadManager.download(blob, url, filename); }).catch(downloadByUrl); @@ -962,37 +966,37 @@ let PDFViewerApplication = { }, error(message, moreInfo) { - let moreInfoText = [this.l10n.get('error_version_info', { - version: _pdfjsLib.version || '?', - build: _pdfjsLib.build || '?' - }, 'PDF.js v{{version}} (build: {{build}})')]; + const moreInfoText = [this.l10n.get("error_version_info", { + version: _pdfjsLib.version || "?", + build: _pdfjsLib.build || "?" + }, "PDF.js v{{version}} (build: {{build}})")]; if (moreInfo) { - moreInfoText.push(this.l10n.get('error_message', { + moreInfoText.push(this.l10n.get("error_message", { message: moreInfo.message - }, 'Message: {{message}}')); + }, "Message: {{message}}")); if (moreInfo.stack) { - moreInfoText.push(this.l10n.get('error_stack', { + moreInfoText.push(this.l10n.get("error_stack", { stack: moreInfo.stack - }, 'Stack: {{stack}}')); + }, "Stack: {{stack}}")); } else { if (moreInfo.filename) { - moreInfoText.push(this.l10n.get('error_file', { + moreInfoText.push(this.l10n.get("error_file", { file: moreInfo.filename - }, 'File: {{file}}')); + }, "File: {{file}}")); } if (moreInfo.lineNumber) { - moreInfoText.push(this.l10n.get('error_line', { + moreInfoText.push(this.l10n.get("error_line", { line: moreInfo.lineNumber - }, 'Line: {{line}}')); + }, "Line: {{line}}")); } } } Promise.all(moreInfoText).then(parts => { - console.error(message + '\n' + parts.join('\n')); + console.error(message + "\n" + parts.join("\n")); }); this.fallback(); }, @@ -1002,11 +1006,11 @@ let PDFViewerApplication = { return; } - let percent = Math.round(level * 100); + const percent = Math.round(level * 100); if (percent > this.loadingBar.percent || isNaN(percent)) { this.loadingBar.percent = percent; - const disableAutoFetch = this.pdfDocument ? this.pdfDocument.loadingParams['disableAutoFetch'] : _app_options.AppOptions.get('disableAutoFetch'); + const disableAutoFetch = this.pdfDocument ? this.pdfDocument.loadingParams["disableAutoFetch"] : _app_options.AppOptions.get("disableAutoFetch"); if (disableAutoFetch && percent) { if (this.disableAutoFetchLoadingBarTimeout) { @@ -1029,7 +1033,7 @@ let PDFViewerApplication = { this.downloadComplete = true; this.loadingBar.hide(); firstPagePromise.then(() => { - this.eventBus.dispatch('documentloaded', { + this.eventBus.dispatch("documentloaded", { source: this }); }); @@ -1044,27 +1048,27 @@ let PDFViewerApplication = { baseDocumentUrl = this.baseUrl; this.pdfLinkService.setDocument(pdfDocument, baseDocumentUrl); this.pdfDocumentProperties.setDocument(pdfDocument, this.url); - let pdfViewer = this.pdfViewer; + const pdfViewer = this.pdfViewer; pdfViewer.setDocument(pdfDocument); - let firstPagePromise = pdfViewer.firstPagePromise; - let pagesPromise = pdfViewer.pagesPromise; - let onePageRendered = pdfViewer.onePageRendered; - let pdfThumbnailViewer = this.pdfThumbnailViewer; + const firstPagePromise = pdfViewer.firstPagePromise; + const pagesPromise = pdfViewer.pagesPromise; + const onePageRendered = pdfViewer.onePageRendered; + const pdfThumbnailViewer = this.pdfThumbnailViewer; pdfThumbnailViewer.setDocument(pdfDocument); firstPagePromise.then(pdfPage => { this.loadingBar.setWidth(this.appConfig.viewerContainer); const storePromise = store.getMultiple({ page: null, zoom: _ui_utils.DEFAULT_SCALE_VALUE, - scrollLeft: '0', - scrollTop: '0', + scrollLeft: "0", + scrollTop: "0", rotation: null, sidebarView: _pdf_sidebar.SidebarView.UNKNOWN, scrollMode: _ui_utils.ScrollMode.UNKNOWN, spreadMode: _ui_utils.SpreadMode.UNKNOWN }).catch(() => {}); Promise.all([_ui_utils.animationStarted, storePromise, pageLayoutPromise, pageModePromise, openActionDestPromise]).then(async ([timeStamp, values = {}, pageLayout, pageMode, openActionDest]) => { - const viewOnLoad = _app_options.AppOptions.get('viewOnLoad'); + const viewOnLoad = _app_options.AppOptions.get("viewOnLoad"); this._initializePdfHistory({ fingerprint: pdfDocument.fingerprint, @@ -1074,16 +1078,16 @@ let PDFViewerApplication = { const initialBookmark = this.initialBookmark; - const zoom = _app_options.AppOptions.get('defaultZoomValue'); + const zoom = _app_options.AppOptions.get("defaultZoomValue"); let hash = zoom ? `zoom=${zoom}` : null; let rotation = null; - let sidebarView = _app_options.AppOptions.get('sidebarViewOnLoad'); + let sidebarView = _app_options.AppOptions.get("sidebarViewOnLoad"); - let scrollMode = _app_options.AppOptions.get('scrollModeOnLoad'); + let scrollMode = _app_options.AppOptions.get("scrollModeOnLoad"); - let spreadMode = _app_options.AppOptions.get('spreadModeOnLoad'); + let spreadMode = _app_options.AppOptions.get("spreadModeOnLoad"); if (values.page && viewOnLoad !== ViewOnLoad.INITIAL) { hash = `page=${values.page}&zoom=${zoom || values.zoom},` + `${values.scrollLeft},${values.scrollTop}`; @@ -1116,7 +1120,7 @@ let PDFViewerApplication = { scrollMode, spreadMode }); - this.eventBus.dispatch('documentinit', { + this.eventBus.dispatch("documentinit", { source: this }); @@ -1146,18 +1150,19 @@ let PDFViewerApplication = { }); }); pdfDocument.getPageLabels().then(labels => { - if (!labels || _app_options.AppOptions.get('disablePageLabels')) { + if (!labels || _app_options.AppOptions.get("disablePageLabels")) { return; } - let i = 0, - numLabels = labels.length; + const numLabels = labels.length; if (numLabels !== this.pagesCount) { - console.error('The number of Page Labels does not match ' + 'the number of pages in the document.'); + console.error("The number of Page Labels does not match " + "the number of pages in the document."); return; } + let i = 0; + while (i < numLabels && labels[i] === (i + 1).toString()) { i++; } @@ -1186,16 +1191,13 @@ let PDFViewerApplication = { return false; } - console.warn('Warning: JavaScript is not supported'); + console.warn("Warning: JavaScript is not supported"); this.fallback(_pdfjsLib.UNSUPPORTED_FEATURES.javaScript); return true; }); - let regex = /\bprint\s*\(/; - for (let i = 0, ii = javaScript.length; i < ii; i++) { - let js = javaScript[i]; - - if (js && regex.test(js)) { + for (const js of javaScript) { + if (js && _ui_utils.AutoPrintRegExp.test(js)) { setTimeout(function () { window.print(); }); @@ -1224,19 +1226,20 @@ let PDFViewerApplication = { this.documentInfo = info; this.metadata = metadata; this.contentDispositionFilename = contentDispositionFilename; - console.log('PDF ' + pdfDocument.fingerprint + ' [' + info.PDFFormatVersion + ' ' + (info.Producer || '-').trim() + ' / ' + (info.Creator || '-').trim() + ']' + ' (PDF.js: ' + (_pdfjsLib.version || '-') + (_app_options.AppOptions.get('enableWebGL') ? ' [WebGL]' : '') + ')'); + console.log("PDF " + pdfDocument.fingerprint + " [" + info.PDFFormatVersion + " " + (info.Producer || "-").trim() + " / " + (info.Creator || "-").trim() + "]" + " (PDF.js: " + (_pdfjsLib.version || "-") + (_app_options.AppOptions.get("enableWebGL") ? " [WebGL]" : "") + ")"); let pdfTitle; + const infoTitle = info && info["Title"]; - if (metadata && metadata.has('dc:title')) { - let title = metadata.get('dc:title'); - - if (title !== 'Untitled') { - pdfTitle = title; - } + if (infoTitle) { + pdfTitle = infoTitle; } - if (!pdfTitle && info && info['Title']) { - pdfTitle = info['Title']; + const metadataTitle = metadata && metadata.get("dc:title"); + + if (metadataTitle) { + if (metadataTitle !== "Untitled" && !/[\uFFF0-\uFFFF]/g.test(metadataTitle)) { + pdfTitle = metadataTitle; + } } if (pdfTitle) { @@ -1246,13 +1249,19 @@ let PDFViewerApplication = { } if (info.IsAcroFormPresent) { - console.warn('Warning: AcroForm/XFA is not supported'); + console.warn("Warning: AcroForm/XFA is not supported"); this.fallback(_pdfjsLib.UNSUPPORTED_FEATURES.forms); } - const versionId = `v${info.PDFFormatVersion.replace('.', '_')}`; - let generatorId = 'other'; - const KNOWN_GENERATORS = ['acrobat distiller', 'acrobat pdfwriter', 'adobe livecycle', 'adobe pdf library', 'adobe photoshop', 'ghostscript', 'tcpdf', 'cairo', 'dvipdfm', 'dvips', 'pdftex', 'pdfkit', 'itext', 'prince', 'quarkxpress', 'mac os x', 'microsoft', 'openoffice', 'oracle', 'luradocument', 'pdf-xchange', 'antenna house', 'aspose.cells', 'fpdf']; + let versionId = "other"; + const KNOWN_VERSIONS = ["1.0", "1.1", "1.2", "1.3", "1.4", "1.5", "1.6", "1.7", "1.8", "1.9", "2.0", "2.1", "2.2", "2.3"]; + + if (KNOWN_VERSIONS.includes(info.PDFFormatVersion)) { + versionId = `v${info.PDFFormatVersion.replace(".", "_")}`; + } + + let generatorId = "other"; + const KNOWN_GENERATORS = ["acrobat distiller", "acrobat pdfwriter", "adobe livecycle", "adobe pdf library", "adobe photoshop", "ghostscript", "tcpdf", "cairo", "dvipdfm", "dvips", "pdftex", "pdfkit", "itext", "prince", "quarkxpress", "mac os x", "microsoft", "openoffice", "oracle", "luradocument", "pdf-xchange", "antenna house", "aspose.cells", "fpdf"]; if (info.Producer) { KNOWN_GENERATORS.some(function (generator, s, i) { @@ -1260,14 +1269,14 @@ let PDFViewerApplication = { return false; } - generatorId = s.replace(/[ .\-]/g, '_'); + generatorId = s.replace(/[ .\-]/g, "_"); return true; }.bind(null, info.Producer.toLowerCase())); } - let formType = !info.IsAcroFormPresent ? null : info.IsXFAPresent ? 'xfa' : 'acroform'; + const formType = !info.IsAcroFormPresent ? null : info.IsXFAPresent ? "xfa" : "acroform"; this.externalServices.reportTelemetry({ - type: 'documentInfo', + type: "documentInfo", version: versionId, generator: generatorId, formType @@ -1280,14 +1289,14 @@ let PDFViewerApplication = { viewOnLoad, initialDest = null }) { - if (_app_options.AppOptions.get('disableHistory') || this.isViewerEmbedded) { + if (_app_options.AppOptions.get("disableHistory") || this.isViewerEmbedded) { return; } this.pdfHistory.initialize({ fingerprint, resetHistory: viewOnLoad === ViewOnLoad.INITIAL, - updateUrl: _app_options.AppOptions.get('historyUpdateUrl') + updateUrl: _app_options.AppOptions.get("historyUpdateUrl") }); if (this.pdfHistory.initialBookmark) { @@ -1373,27 +1382,27 @@ let PDFViewerApplication = { } if (!this.supportsPrinting) { - this.l10n.get('printing_not_supported', null, 'Warning: Printing is not fully supported by ' + 'this browser.').then(printMessage => { + this.l10n.get("printing_not_supported", null, "Warning: Printing is not fully supported by this browser.").then(printMessage => { this.error(printMessage); }); return; } if (!this.pdfViewer.pageViewsReady) { - this.l10n.get('printing_not_ready', null, 'Warning: The PDF is not fully loaded for printing.').then(notReadyMessage => { + this.l10n.get("printing_not_ready", null, "Warning: The PDF is not fully loaded for printing.").then(notReadyMessage => { window.alert(notReadyMessage); }); return; } - let pagesOverview = this.pdfViewer.getPagesOverview(); - let printContainer = this.appConfig.printContainer; - let printService = PDFPrintServiceFactory.instance.createPrintService(this.pdfDocument, pagesOverview, printContainer, this.l10n); + const pagesOverview = this.pdfViewer.getPagesOverview(); + const printContainer = this.appConfig.printContainer; + const printService = PDFPrintServiceFactory.instance.createPrintService(this.pdfDocument, pagesOverview, printContainer, this.l10n); this.printService = printService; this.forceRendering(); printService.layout(); this.externalServices.reportTelemetry({ - type: 'print' + type: "print" }); }, @@ -1411,7 +1420,7 @@ let PDFViewerApplication = { return; } - let newRotation = (this.pdfViewer.pagesRotation + 360 + delta) % 360; + const newRotation = (this.pdfViewer.pagesRotation + 360 + delta) % 360; this.pdfViewer.pagesRotation = newRotation; }, @@ -1424,154 +1433,154 @@ let PDFViewerApplication = { }, bindEvents() { - let { + const { eventBus, _boundEvents } = this; _boundEvents.beforePrint = this.beforePrint.bind(this); _boundEvents.afterPrint = this.afterPrint.bind(this); - eventBus.on('resize', webViewerResize); - eventBus.on('hashchange', webViewerHashchange); - eventBus.on('beforeprint', _boundEvents.beforePrint); - eventBus.on('afterprint', _boundEvents.afterPrint); - eventBus.on('pagerendered', webViewerPageRendered); - eventBus.on('textlayerrendered', webViewerTextLayerRendered); - eventBus.on('updateviewarea', webViewerUpdateViewarea); - eventBus.on('pagechanging', webViewerPageChanging); - eventBus.on('scalechanging', webViewerScaleChanging); - eventBus.on('rotationchanging', webViewerRotationChanging); - eventBus.on('sidebarviewchanged', webViewerSidebarViewChanged); - eventBus.on('pagemode', webViewerPageMode); - eventBus.on('namedaction', webViewerNamedAction); - eventBus.on('presentationmodechanged', webViewerPresentationModeChanged); - eventBus.on('presentationmode', webViewerPresentationMode); - eventBus.on('openfile', webViewerOpenFile); - eventBus.on('print', webViewerPrint); - eventBus.on('download', webViewerDownload); - eventBus.on('firstpage', webViewerFirstPage); - eventBus.on('lastpage', webViewerLastPage); - eventBus.on('nextpage', webViewerNextPage); - eventBus.on('previouspage', webViewerPreviousPage); - eventBus.on('zoomin', webViewerZoomIn); - eventBus.on('zoomout', webViewerZoomOut); - eventBus.on('zoomreset', webViewerZoomReset); - eventBus.on('pagenumberchanged', webViewerPageNumberChanged); - eventBus.on('scalechanged', webViewerScaleChanged); - eventBus.on('rotatecw', webViewerRotateCw); - eventBus.on('rotateccw', webViewerRotateCcw); - eventBus.on('switchscrollmode', webViewerSwitchScrollMode); - eventBus.on('scrollmodechanged', webViewerScrollModeChanged); - eventBus.on('switchspreadmode', webViewerSwitchSpreadMode); - eventBus.on('spreadmodechanged', webViewerSpreadModeChanged); - eventBus.on('documentproperties', webViewerDocumentProperties); - eventBus.on('find', webViewerFind); - eventBus.on('findfromurlhash', webViewerFindFromUrlHash); - eventBus.on('updatefindmatchescount', webViewerUpdateFindMatchesCount); - eventBus.on('updatefindcontrolstate', webViewerUpdateFindControlState); + eventBus.on("resize", webViewerResize); + eventBus.on("hashchange", webViewerHashchange); + eventBus.on("beforeprint", _boundEvents.beforePrint); + eventBus.on("afterprint", _boundEvents.afterPrint); + eventBus.on("pagerendered", webViewerPageRendered); + eventBus.on("textlayerrendered", webViewerTextLayerRendered); + eventBus.on("updateviewarea", webViewerUpdateViewarea); + eventBus.on("pagechanging", webViewerPageChanging); + eventBus.on("scalechanging", webViewerScaleChanging); + eventBus.on("rotationchanging", webViewerRotationChanging); + eventBus.on("sidebarviewchanged", webViewerSidebarViewChanged); + eventBus.on("pagemode", webViewerPageMode); + eventBus.on("namedaction", webViewerNamedAction); + eventBus.on("presentationmodechanged", webViewerPresentationModeChanged); + eventBus.on("presentationmode", webViewerPresentationMode); + eventBus.on("openfile", webViewerOpenFile); + eventBus.on("print", webViewerPrint); + eventBus.on("download", webViewerDownload); + eventBus.on("firstpage", webViewerFirstPage); + eventBus.on("lastpage", webViewerLastPage); + eventBus.on("nextpage", webViewerNextPage); + eventBus.on("previouspage", webViewerPreviousPage); + eventBus.on("zoomin", webViewerZoomIn); + eventBus.on("zoomout", webViewerZoomOut); + eventBus.on("zoomreset", webViewerZoomReset); + eventBus.on("pagenumberchanged", webViewerPageNumberChanged); + eventBus.on("scalechanged", webViewerScaleChanged); + eventBus.on("rotatecw", webViewerRotateCw); + eventBus.on("rotateccw", webViewerRotateCcw); + eventBus.on("switchscrollmode", webViewerSwitchScrollMode); + eventBus.on("scrollmodechanged", webViewerScrollModeChanged); + eventBus.on("switchspreadmode", webViewerSwitchSpreadMode); + eventBus.on("spreadmodechanged", webViewerSpreadModeChanged); + eventBus.on("documentproperties", webViewerDocumentProperties); + eventBus.on("find", webViewerFind); + eventBus.on("findfromurlhash", webViewerFindFromUrlHash); + eventBus.on("updatefindmatchescount", webViewerUpdateFindMatchesCount); + eventBus.on("updatefindcontrolstate", webViewerUpdateFindControlState); }, bindWindowEvents() { - let { + const { eventBus, _boundEvents } = this; _boundEvents.windowResize = () => { - eventBus.dispatch('resize', { + eventBus.dispatch("resize", { source: window }); }; _boundEvents.windowHashChange = () => { - eventBus.dispatch('hashchange', { + eventBus.dispatch("hashchange", { source: window, hash: document.location.hash.substring(1) }); }; _boundEvents.windowBeforePrint = () => { - eventBus.dispatch('beforeprint', { + eventBus.dispatch("beforeprint", { source: window }); }; _boundEvents.windowAfterPrint = () => { - eventBus.dispatch('afterprint', { + eventBus.dispatch("afterprint", { source: window }); }; - window.addEventListener('visibilitychange', webViewerVisibilityChange); - window.addEventListener('wheel', webViewerWheel, { + window.addEventListener("visibilitychange", webViewerVisibilityChange); + window.addEventListener("wheel", webViewerWheel, { passive: false }); - window.addEventListener('click', webViewerClick); - window.addEventListener('keydown', webViewerKeyDown); - window.addEventListener('resize', _boundEvents.windowResize); - window.addEventListener('hashchange', _boundEvents.windowHashChange); - window.addEventListener('beforeprint', _boundEvents.windowBeforePrint); - window.addEventListener('afterprint', _boundEvents.windowAfterPrint); + window.addEventListener("click", webViewerClick); + window.addEventListener("keydown", webViewerKeyDown); + window.addEventListener("resize", _boundEvents.windowResize); + window.addEventListener("hashchange", _boundEvents.windowHashChange); + window.addEventListener("beforeprint", _boundEvents.windowBeforePrint); + window.addEventListener("afterprint", _boundEvents.windowAfterPrint); }, unbindEvents() { - let { + const { eventBus, _boundEvents } = this; - eventBus.off('resize', webViewerResize); - eventBus.off('hashchange', webViewerHashchange); - eventBus.off('beforeprint', _boundEvents.beforePrint); - eventBus.off('afterprint', _boundEvents.afterPrint); - eventBus.off('pagerendered', webViewerPageRendered); - eventBus.off('textlayerrendered', webViewerTextLayerRendered); - eventBus.off('updateviewarea', webViewerUpdateViewarea); - eventBus.off('pagechanging', webViewerPageChanging); - eventBus.off('scalechanging', webViewerScaleChanging); - eventBus.off('rotationchanging', webViewerRotationChanging); - eventBus.off('sidebarviewchanged', webViewerSidebarViewChanged); - eventBus.off('pagemode', webViewerPageMode); - eventBus.off('namedaction', webViewerNamedAction); - eventBus.off('presentationmodechanged', webViewerPresentationModeChanged); - eventBus.off('presentationmode', webViewerPresentationMode); - eventBus.off('openfile', webViewerOpenFile); - eventBus.off('print', webViewerPrint); - eventBus.off('download', webViewerDownload); - eventBus.off('firstpage', webViewerFirstPage); - eventBus.off('lastpage', webViewerLastPage); - eventBus.off('nextpage', webViewerNextPage); - eventBus.off('previouspage', webViewerPreviousPage); - eventBus.off('zoomin', webViewerZoomIn); - eventBus.off('zoomout', webViewerZoomOut); - eventBus.off('zoomreset', webViewerZoomReset); - eventBus.off('pagenumberchanged', webViewerPageNumberChanged); - eventBus.off('scalechanged', webViewerScaleChanged); - eventBus.off('rotatecw', webViewerRotateCw); - eventBus.off('rotateccw', webViewerRotateCcw); - eventBus.off('switchscrollmode', webViewerSwitchScrollMode); - eventBus.off('scrollmodechanged', webViewerScrollModeChanged); - eventBus.off('switchspreadmode', webViewerSwitchSpreadMode); - eventBus.off('spreadmodechanged', webViewerSpreadModeChanged); - eventBus.off('documentproperties', webViewerDocumentProperties); - eventBus.off('find', webViewerFind); - eventBus.off('findfromurlhash', webViewerFindFromUrlHash); - eventBus.off('updatefindmatchescount', webViewerUpdateFindMatchesCount); - eventBus.off('updatefindcontrolstate', webViewerUpdateFindControlState); + eventBus.off("resize", webViewerResize); + eventBus.off("hashchange", webViewerHashchange); + eventBus.off("beforeprint", _boundEvents.beforePrint); + eventBus.off("afterprint", _boundEvents.afterPrint); + eventBus.off("pagerendered", webViewerPageRendered); + eventBus.off("textlayerrendered", webViewerTextLayerRendered); + eventBus.off("updateviewarea", webViewerUpdateViewarea); + eventBus.off("pagechanging", webViewerPageChanging); + eventBus.off("scalechanging", webViewerScaleChanging); + eventBus.off("rotationchanging", webViewerRotationChanging); + eventBus.off("sidebarviewchanged", webViewerSidebarViewChanged); + eventBus.off("pagemode", webViewerPageMode); + eventBus.off("namedaction", webViewerNamedAction); + eventBus.off("presentationmodechanged", webViewerPresentationModeChanged); + eventBus.off("presentationmode", webViewerPresentationMode); + eventBus.off("openfile", webViewerOpenFile); + eventBus.off("print", webViewerPrint); + eventBus.off("download", webViewerDownload); + eventBus.off("firstpage", webViewerFirstPage); + eventBus.off("lastpage", webViewerLastPage); + eventBus.off("nextpage", webViewerNextPage); + eventBus.off("previouspage", webViewerPreviousPage); + eventBus.off("zoomin", webViewerZoomIn); + eventBus.off("zoomout", webViewerZoomOut); + eventBus.off("zoomreset", webViewerZoomReset); + eventBus.off("pagenumberchanged", webViewerPageNumberChanged); + eventBus.off("scalechanged", webViewerScaleChanged); + eventBus.off("rotatecw", webViewerRotateCw); + eventBus.off("rotateccw", webViewerRotateCcw); + eventBus.off("switchscrollmode", webViewerSwitchScrollMode); + eventBus.off("scrollmodechanged", webViewerScrollModeChanged); + eventBus.off("switchspreadmode", webViewerSwitchSpreadMode); + eventBus.off("spreadmodechanged", webViewerSpreadModeChanged); + eventBus.off("documentproperties", webViewerDocumentProperties); + eventBus.off("find", webViewerFind); + eventBus.off("findfromurlhash", webViewerFindFromUrlHash); + eventBus.off("updatefindmatchescount", webViewerUpdateFindMatchesCount); + eventBus.off("updatefindcontrolstate", webViewerUpdateFindControlState); _boundEvents.beforePrint = null; _boundEvents.afterPrint = null; }, unbindWindowEvents() { - let { + const { _boundEvents } = this; - window.removeEventListener('visibilitychange', webViewerVisibilityChange); - window.removeEventListener('wheel', webViewerWheel); - window.removeEventListener('click', webViewerClick); - window.removeEventListener('keydown', webViewerKeyDown); - window.removeEventListener('resize', _boundEvents.windowResize); - window.removeEventListener('hashchange', _boundEvents.windowHashChange); - window.removeEventListener('beforeprint', _boundEvents.windowBeforePrint); - window.removeEventListener('afterprint', _boundEvents.windowAfterPrint); + window.removeEventListener("visibilitychange", webViewerVisibilityChange); + window.removeEventListener("wheel", webViewerWheel); + window.removeEventListener("click", webViewerClick); + window.removeEventListener("keydown", webViewerKeyDown); + window.removeEventListener("resize", _boundEvents.windowResize); + window.removeEventListener("hashchange", _boundEvents.windowHashChange); + window.removeEventListener("beforeprint", _boundEvents.windowBeforePrint); + window.removeEventListener("afterprint", _boundEvents.windowAfterPrint); _boundEvents.windowResize = null; _boundEvents.windowHashChange = null; _boundEvents.windowBeforePrint = null; @@ -1583,16 +1592,16 @@ exports.PDFViewerApplication = PDFViewerApplication; let validateFileURL; ; -function loadFakeWorker() { +async function loadFakeWorker() { if (!_pdfjsLib.GlobalWorkerOptions.workerSrc) { - _pdfjsLib.GlobalWorkerOptions.workerSrc = _app_options.AppOptions.get('workerSrc'); + _pdfjsLib.GlobalWorkerOptions.workerSrc = _app_options.AppOptions.get("workerSrc"); } return (0, _pdfjsLib.loadScript)(_pdfjsLib.PDFWorker.getWorkerSrc()); } function loadAndEnablePDFBug(enabledTabs) { - let appConfig = PDFViewerApplication.appConfig; + const appConfig = PDFViewerApplication.appConfig; return (0, _pdfjsLib.loadScript)(appConfig.debuggerScriptPath).then(function () { PDFBug.enable(enabledTabs); PDFBug.init({ @@ -1603,37 +1612,37 @@ function loadAndEnablePDFBug(enabledTabs) { } function webViewerInitialized() { - let appConfig = PDFViewerApplication.appConfig; + const appConfig = PDFViewerApplication.appConfig; let file; - file = window.location.href.split('#')[0]; - appConfig.toolbar.openFile.setAttribute('hidden', 'true'); - appConfig.secondaryToolbar.openFileButton.setAttribute('hidden', 'true'); + file = window.location.href.split("#")[0]; + appConfig.toolbar.openFile.setAttribute("hidden", "true"); + appConfig.secondaryToolbar.openFileButton.setAttribute("hidden", "true"); if (!PDFViewerApplication.supportsDocumentFonts) { - _app_options.AppOptions.set('disableFontFace', true); + _app_options.AppOptions.set("disableFontFace", true); - PDFViewerApplication.l10n.get('web_fonts_disabled', null, 'Web fonts are disabled: unable to use embedded PDF fonts.').then(msg => { + PDFViewerApplication.l10n.get("web_fonts_disabled", null, "Web fonts are disabled: unable to use embedded PDF fonts.").then(msg => { console.warn(msg); }); } if (!PDFViewerApplication.supportsPrinting) { - appConfig.toolbar.print.classList.add('hidden'); - appConfig.secondaryToolbar.printButton.classList.add('hidden'); + appConfig.toolbar.print.classList.add("hidden"); + appConfig.secondaryToolbar.printButton.classList.add("hidden"); } if (!PDFViewerApplication.supportsFullscreen) { - appConfig.toolbar.presentationModeButton.classList.add('hidden'); - appConfig.secondaryToolbar.presentationModeButton.classList.add('hidden'); + appConfig.toolbar.presentationModeButton.classList.add("hidden"); + appConfig.secondaryToolbar.presentationModeButton.classList.add("hidden"); } if (PDFViewerApplication.supportsIntegratedFind) { - appConfig.toolbar.viewFind.classList.add('hidden'); + appConfig.toolbar.viewFind.classList.add("hidden"); } - appConfig.mainContainer.addEventListener('transitionend', function (evt) { + appConfig.mainContainer.addEventListener("transitionend", function (evt) { if (evt.target === this) { - PDFViewerApplication.eventBus.dispatch('resize', { + PDFViewerApplication.eventBus.dispatch("resize", { source: this }); } @@ -1642,7 +1651,7 @@ function webViewerInitialized() { try { webViewerOpenFileViaURL(file); } catch (reason) { - PDFViewerApplication.l10n.get('loading_error', null, 'An error occurred while loading the PDF.').then(msg => { + PDFViewerApplication.l10n.get("loading_error", null, "An error occurred while loading the PDF.").then(msg => { PDFViewerApplication.error(msg, reason); }); } @@ -1657,9 +1666,9 @@ let webViewerOpenFileViaURL; } function webViewerPageRendered(evt) { - let pageNumber = evt.pageNumber; - let pageIndex = pageNumber - 1; - let pageView = PDFViewerApplication.pdfViewer.getPageView(pageIndex); + const pageNumber = evt.pageNumber; + const pageIndex = pageNumber - 1; + const pageView = PDFViewerApplication.pdfViewer.getPageView(pageIndex); if (pageNumber === PDFViewerApplication.page) { PDFViewerApplication.toolbar.updateLoadingIndicatorState(false); @@ -1670,27 +1679,27 @@ function webViewerPageRendered(evt) { } if (PDFViewerApplication.pdfSidebar.isThumbnailViewVisible) { - let thumbnailView = PDFViewerApplication.pdfThumbnailViewer.getThumbnail(pageIndex); + const thumbnailView = PDFViewerApplication.pdfThumbnailViewer.getThumbnail(pageIndex); thumbnailView.setImage(pageView); } - if (typeof Stats !== 'undefined' && Stats.enabled && pageView.stats) { + if (typeof Stats !== "undefined" && Stats.enabled && pageView.stats) { Stats.add(pageNumber, pageView.stats); } if (pageView.error) { - PDFViewerApplication.l10n.get('rendering_error', null, 'An error occurred while rendering the page.').then(msg => { + PDFViewerApplication.l10n.get("rendering_error", null, "An error occurred while rendering the page.").then(msg => { PDFViewerApplication.error(msg, pageView.error); }); } PDFViewerApplication.externalServices.reportTelemetry({ - type: 'pageInfo', + type: "pageInfo", timestamp: evt.timestamp }); PDFViewerApplication.pdfDocument.getStats().then(function (stats) { PDFViewerApplication.externalServices.reportTelemetry({ - type: 'documentStats', + type: "documentStats", stats }); }); @@ -1698,32 +1707,33 @@ function webViewerPageRendered(evt) { function webViewerTextLayerRendered(evt) { if (evt.numTextDivs > 0 && !PDFViewerApplication.supportsDocumentColors) { - PDFViewerApplication.l10n.get('document_colors_not_allowed', null, 'PDF documents are not allowed to use their own colors: ' + '\'Allow pages to choose their own colors\' ' + 'is deactivated in the browser.').then(msg => { + PDFViewerApplication.l10n.get("document_colors_not_allowed", null, "PDF documents are not allowed to use their own colors: " + "'Allow pages to choose their own colors' " + "is deactivated in the browser.").then(msg => { console.error(msg); }); PDFViewerApplication.fallback(); } } -function webViewerPageMode(evt) { - let mode = evt.mode, - view; +function webViewerPageMode({ + mode +}) { + let view; switch (mode) { - case 'thumbs': + case "thumbs": view = _pdf_sidebar.SidebarView.THUMBS; break; - case 'bookmarks': - case 'outline': + case "bookmarks": + case "outline": view = _pdf_sidebar.SidebarView.OUTLINE; break; - case 'attachments': + case "attachments": view = _pdf_sidebar.SidebarView.ATTACHMENTS; break; - case 'none': + case "none": view = _pdf_sidebar.SidebarView.NONE; break; @@ -1736,14 +1746,14 @@ function webViewerPageMode(evt) { } function webViewerNamedAction(evt) { - let action = evt.action; + const action = evt.action; switch (action) { - case 'GoToPage': + case "GoToPage": PDFViewerApplication.appConfig.toolbar.pageNumber.select(); break; - case 'Find': + case "Find": if (!PDFViewerApplication.supportsIntegratedFind) { PDFViewerApplication.findBar.toggle(); } @@ -1753,7 +1763,7 @@ function webViewerNamedAction(evt) { } function webViewerPresentationModeChanged(evt) { - let { + const { active, switchInProgress } = evt; @@ -1762,53 +1772,53 @@ function webViewerPresentationModeChanged(evt) { function webViewerSidebarViewChanged(evt) { PDFViewerApplication.pdfRenderingQueue.isThumbnailViewEnabled = PDFViewerApplication.pdfSidebar.isThumbnailViewVisible; - let store = PDFViewerApplication.store; + const store = PDFViewerApplication.store; if (store && PDFViewerApplication.isInitialViewSet) { - store.set('sidebarView', evt.view).catch(function () {}); + store.set("sidebarView", evt.view).catch(function () {}); } } function webViewerUpdateViewarea(evt) { - let location = evt.location, - store = PDFViewerApplication.store; + const location = evt.location, + store = PDFViewerApplication.store; if (store && PDFViewerApplication.isInitialViewSet) { store.setMultiple({ - 'page': location.pageNumber, - 'zoom': location.scale, - 'scrollLeft': location.left, - 'scrollTop': location.top, - 'rotation': location.rotation + page: location.pageNumber, + zoom: location.scale, + scrollLeft: location.left, + scrollTop: location.top, + rotation: location.rotation }).catch(function () {}); } - let href = PDFViewerApplication.pdfLinkService.getAnchorUrl(location.pdfOpenParams); + const href = PDFViewerApplication.pdfLinkService.getAnchorUrl(location.pdfOpenParams); PDFViewerApplication.appConfig.toolbar.viewBookmark.href = href; PDFViewerApplication.appConfig.secondaryToolbar.viewBookmarkButton.href = href; - let currentPage = PDFViewerApplication.pdfViewer.getPageView(PDFViewerApplication.page - 1); - let loading = currentPage.renderingState !== _pdf_rendering_queue.RenderingStates.FINISHED; + const currentPage = PDFViewerApplication.pdfViewer.getPageView(PDFViewerApplication.page - 1); + const loading = currentPage.renderingState !== _pdf_rendering_queue.RenderingStates.FINISHED; PDFViewerApplication.toolbar.updateLoadingIndicatorState(loading); } function webViewerScrollModeChanged(evt) { - let store = PDFViewerApplication.store; + const store = PDFViewerApplication.store; if (store && PDFViewerApplication.isInitialViewSet) { - store.set('scrollMode', evt.mode).catch(function () {}); + store.set("scrollMode", evt.mode).catch(function () {}); } } function webViewerSpreadModeChanged(evt) { - let store = PDFViewerApplication.store; + const store = PDFViewerApplication.store; if (store && PDFViewerApplication.isInitialViewSet) { - store.set('spreadMode', evt.mode).catch(function () {}); + store.set("spreadMode", evt.mode).catch(function () {}); } } function webViewerResize() { - let { + const { pdfDocument, pdfViewer } = PDFViewerApplication; @@ -1817,9 +1827,9 @@ function webViewerResize() { return; } - let currentScaleValue = pdfViewer.currentScaleValue; + const currentScaleValue = pdfViewer.currentScaleValue; - if (currentScaleValue === 'auto' || currentScaleValue === 'page-fit' || currentScaleValue === 'page-width') { + if (currentScaleValue === "auto" || currentScaleValue === "page-fit" || currentScaleValue === "page-width") { pdfViewer.currentScaleValue = currentScaleValue; } @@ -1827,7 +1837,7 @@ function webViewerResize() { } function webViewerHashchange(evt) { - let hash = evt.hash; + const hash = evt.hash; if (!hash) { return; @@ -1890,9 +1900,9 @@ function webViewerZoomReset() { } function webViewerPageNumberChanged(evt) { - let pdfViewer = PDFViewerApplication.pdfViewer; + const pdfViewer = PDFViewerApplication.pdfViewer; - if (evt.value !== '') { + if (evt.value !== "") { pdfViewer.currentPageLabel = evt.value; } @@ -1926,7 +1936,7 @@ function webViewerDocumentProperties() { } function webViewerFind(evt) { - PDFViewerApplication.findController.executeCommand('find' + evt.type, { + PDFViewerApplication.findController.executeCommand("find" + evt.type, { query: evt.query, phraseSearch: evt.phraseSearch, caseSensitive: evt.caseSensitive, @@ -1937,7 +1947,7 @@ function webViewerFind(evt) { } function webViewerFindFromUrlHash(evt) { - PDFViewerApplication.findController.executeCommand('find', { + PDFViewerApplication.findController.executeCommand("find", { query: evt.query, phraseSearch: evt.phraseSearch, caseSensitive: false, @@ -1985,7 +1995,7 @@ function webViewerRotationChanging(evt) { } function webViewerPageChanging(evt) { - let page = evt.pageNumber; + const page = evt.pageNumber; PDFViewerApplication.toolbar.setPageNumber(page, evt.pageLabel || null); PDFViewerApplication.secondaryToolbar.setPageNumber(page); @@ -1993,8 +2003,8 @@ function webViewerPageChanging(evt) { PDFViewerApplication.pdfThumbnailViewer.scrollThumbnailIntoView(page); } - if (typeof Stats !== 'undefined' && Stats.enabled) { - let pageView = PDFViewerApplication.pdfViewer.getPageView(page - 1); + if (typeof Stats !== "undefined" && Stats.enabled) { + const pageView = PDFViewerApplication.pdfViewer.getPageView(page - 1); if (pageView && pageView.stats) { Stats.add(page, pageView.stats); @@ -2003,7 +2013,7 @@ function webViewerPageChanging(evt) { } function webViewerVisibilityChange(evt) { - if (document.visibilityState === 'visible') { + if (document.visibilityState === "visible") { setZoomDisabledTimeout(); } } @@ -2033,14 +2043,14 @@ function webViewerWheel(evt) { if (evt.ctrlKey && supportedMouseWheelZoomModifierKeys.ctrlKey || evt.metaKey && supportedMouseWheelZoomModifierKeys.metaKey) { evt.preventDefault(); - if (zoomDisabledTimeout || document.visibilityState === 'hidden') { + if (zoomDisabledTimeout || document.visibilityState === "hidden") { return; } - let previousScale = pdfViewer.currentScale; - let delta = (0, _ui_utils.normalizeWheelEventDelta)(evt); + const previousScale = pdfViewer.currentScale; + const delta = (0, _ui_utils.normalizeWheelEventDelta)(evt); const MOUSE_WHEEL_DELTA_PER_PAGE_SCALE = 3.0; - let ticks = delta * MOUSE_WHEEL_DELTA_PER_PAGE_SCALE; + const ticks = delta * MOUSE_WHEEL_DELTA_PER_PAGE_SCALE; if (ticks < 0) { PDFViewerApplication.zoomOut(-ticks); @@ -2048,13 +2058,13 @@ function webViewerWheel(evt) { PDFViewerApplication.zoomIn(ticks); } - let currentScale = pdfViewer.currentScale; + const currentScale = pdfViewer.currentScale; if (previousScale !== currentScale) { - let scaleCorrectionFactor = currentScale / previousScale - 1; - let rect = pdfViewer.container.getBoundingClientRect(); - let dx = evt.clientX - rect.left; - let dy = evt.clientY - rect.top; + const scaleCorrectionFactor = currentScale / previousScale - 1; + const rect = pdfViewer.container.getBoundingClientRect(); + const dx = evt.clientX - rect.left; + const dy = evt.clientY - rect.top; pdfViewer.container.scrollLeft += dx * scaleCorrectionFactor; pdfViewer.container.scrollTop += dy * scaleCorrectionFactor; } @@ -2068,7 +2078,7 @@ function webViewerClick(evt) { return; } - let appConfig = PDFViewerApplication.appConfig; + const appConfig = PDFViewerApplication.appConfig; if (PDFViewerApplication.pdfViewer.containsElement(evt.target) || appConfig.toolbar.container.contains(evt.target) && evt.target !== appConfig.secondaryToolbar.toggleButton) { PDFViewerApplication.secondaryToolbar.close(); @@ -2082,9 +2092,9 @@ function webViewerKeyDown(evt) { let handled = false, ensureViewerFocused = false; - let cmd = (evt.ctrlKey ? 1 : 0) | (evt.altKey ? 2 : 0) | (evt.shiftKey ? 4 : 0) | (evt.metaKey ? 8 : 0); - let pdfViewer = PDFViewerApplication.pdfViewer; - let isViewerInPresentationMode = pdfViewer && pdfViewer.isInPresentationMode; + const cmd = (evt.ctrlKey ? 1 : 0) | (evt.altKey ? 2 : 0) | (evt.shiftKey ? 4 : 0) | (evt.metaKey ? 8 : 0); + const pdfViewer = PDFViewerApplication.pdfViewer; + const isViewerInPresentationMode = pdfViewer && pdfViewer.isInPresentationMode; if (cmd === 1 || cmd === 8 || cmd === 5 || cmd === 12) { switch (evt.keyCode) { @@ -2098,10 +2108,10 @@ function webViewerKeyDown(evt) { case 71: if (!PDFViewerApplication.supportsIntegratedFind) { - let findState = PDFViewerApplication.findController.state; + const findState = PDFViewerApplication.findController.state; if (findState) { - PDFViewerApplication.findController.executeCommand('findagain', { + PDFViewerApplication.findController.executeCommand("findagain", { query: findState.query, phraseSearch: findState.phraseSearch, caseSensitive: findState.caseSensitive, @@ -2191,10 +2201,10 @@ function webViewerKeyDown(evt) { return; } - let curElement = document.activeElement || document.querySelector(':focus'); - let curElementTagName = curElement && curElement.tagName.toUpperCase(); + const curElement = document.activeElement || document.querySelector(":focus"); + const curElementTagName = curElement && curElement.tagName.toUpperCase(); - if (curElementTagName === 'INPUT' || curElementTagName === 'TEXTAREA' || curElementTagName === 'SELECT' || curElement && curElement.isContentEditable) { + if (curElementTagName === "INPUT" || curElementTagName === "TEXTAREA" || curElementTagName === "SELECT" || curElement && curElement.isContentEditable) { if (evt.keyCode !== 27) { return; } @@ -2308,7 +2318,7 @@ function webViewerKeyDown(evt) { break; } - if (turnPage !== 0 && (!turnOnlyIfPageFit || pdfViewer.currentScaleValue === 'page-fit')) { + if (turnPage !== 0 && (!turnOnlyIfPageFit || pdfViewer.currentScaleValue === "page-fit")) { if (turnPage > 0) { if (PDFViewerApplication.page < PDFViewerApplication.pagesCount) { PDFViewerApplication.page++; @@ -2327,7 +2337,7 @@ function webViewerKeyDown(evt) { switch (evt.keyCode) { case 13: case 32: - if (!isViewerInPresentationMode && pdfViewer.currentScaleValue !== 'page-fit') { + if (!isViewerInPresentationMode && pdfViewer.currentScaleValue !== "page-fit") { break; } @@ -2345,7 +2355,7 @@ function webViewerKeyDown(evt) { } if (!handled && !isViewerInPresentationMode) { - if (evt.keyCode >= 33 && evt.keyCode <= 40 || evt.keyCode === 32 && curElementTagName !== 'BUTTON') { + if (evt.keyCode >= 33 && evt.keyCode <= 40 || evt.keyCode === 32 && curElementTagName !== "BUTTON") { ensureViewerFocused = true; } } @@ -2361,16 +2371,16 @@ function webViewerKeyDown(evt) { function apiPageLayoutToSpreadMode(layout) { switch (layout) { - case 'SinglePage': - case 'OneColumn': + case "SinglePage": + case "OneColumn": return _ui_utils.SpreadMode.NONE; - case 'TwoColumnLeft': - case 'TwoPageLeft': + case "TwoColumnLeft": + case "TwoPageLeft": return _ui_utils.SpreadMode.ODD; - case 'TwoColumnRight': - case 'TwoPageRight': + case "TwoColumnRight": + case "TwoPageRight": return _ui_utils.SpreadMode.EVEN; } @@ -2379,30 +2389,30 @@ function apiPageLayoutToSpreadMode(layout) { function apiPageModeToSidebarView(mode) { switch (mode) { - case 'UseNone': + case "UseNone": return _pdf_sidebar.SidebarView.NONE; - case 'UseThumbs': + case "UseThumbs": return _pdf_sidebar.SidebarView.THUMBS; - case 'UseOutlines': + case "UseOutlines": return _pdf_sidebar.SidebarView.OUTLINE; - case 'UseAttachments': + case "UseAttachments": return _pdf_sidebar.SidebarView.ATTACHMENTS; - case 'UseOC': + case "UseOC": } return _pdf_sidebar.SidebarView.NONE; } -let PDFPrintServiceFactory = { +const PDFPrintServiceFactory = { instance: { supportsPrinting: false, createPrintService() { - throw new Error('Not implemented: createPrintService'); + throw new Error("Not implemented: createPrintService"); } } @@ -2440,14 +2450,14 @@ exports.binarySearchFirstItem = binarySearchFirstItem; exports.normalizeWheelEventDelta = normalizeWheelEventDelta; exports.waitOnEventOrTimeout = waitOnEventOrTimeout; exports.moveToEndOfArray = moveToEndOfArray; -exports.WaitOnType = exports.animationStarted = exports.ProgressBar = exports.EventBus = exports.NullL10n = exports.SpreadMode = exports.ScrollMode = exports.TextLayerMode = exports.RendererType = exports.PresentationModeState = exports.VERTICAL_PADDING = exports.SCROLLBAR_PADDING = exports.MAX_AUTO_SCALE = exports.UNKNOWN_SCALE = exports.MAX_SCALE = exports.MIN_SCALE = exports.DEFAULT_SCALE = exports.DEFAULT_SCALE_VALUE = exports.CSS_UNITS = void 0; +exports.WaitOnType = exports.animationStarted = exports.ProgressBar = exports.EventBus = exports.NullL10n = exports.SpreadMode = exports.ScrollMode = exports.TextLayerMode = exports.RendererType = exports.PresentationModeState = exports.VERTICAL_PADDING = exports.SCROLLBAR_PADDING = exports.MAX_AUTO_SCALE = exports.UNKNOWN_SCALE = exports.MAX_SCALE = exports.MIN_SCALE = exports.DEFAULT_SCALE = exports.DEFAULT_SCALE_VALUE = exports.CSS_UNITS = exports.AutoPrintRegExp = void 0; const CSS_UNITS = 96.0 / 72.0; exports.CSS_UNITS = CSS_UNITS; -const DEFAULT_SCALE_VALUE = 'auto'; +const DEFAULT_SCALE_VALUE = "auto"; exports.DEFAULT_SCALE_VALUE = DEFAULT_SCALE_VALUE; const DEFAULT_SCALE = 1.0; exports.DEFAULT_SCALE = DEFAULT_SCALE; -const MIN_SCALE = 0.10; +const MIN_SCALE = 0.1; exports.MIN_SCALE = MIN_SCALE; const MAX_SCALE = 10.0; exports.MAX_SCALE = MAX_SCALE; @@ -2467,8 +2477,8 @@ const PresentationModeState = { }; exports.PresentationModeState = PresentationModeState; const RendererType = { - CANVAS: 'canvas', - SVG: 'svg' + CANVAS: "canvas", + SVG: "svg" }; exports.RendererType = RendererType; const TextLayerMode = { @@ -2491,6 +2501,8 @@ const SpreadMode = { EVEN: 2 }; exports.SpreadMode = SpreadMode; +const AutoPrintRegExp = /\bprint\s*\(/; +exports.AutoPrintRegExp = AutoPrintRegExp; function formatL10nValue(text, args) { if (!args) { @@ -2498,17 +2510,17 @@ function formatL10nValue(text, args) { } return text.replace(/\{\{\s*(\w+)\s*\}\}/g, (all, name) => { - return name in args ? args[name] : '{{' + name + '}}'; + return name in args ? args[name] : "{{" + name + "}}"; }); } -let NullL10n = { +const NullL10n = { async getLanguage() { - return 'en-us'; + return "en-us"; }, async getDirection() { - return 'ltr'; + return "ltr"; }, async get(property, args, fallback) { @@ -2521,9 +2533,9 @@ let NullL10n = { exports.NullL10n = NullL10n; function getOutputScale(ctx) { - let devicePixelRatio = window.devicePixelRatio || 1; - let backingStoreRatio = ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1; - let pixelRatio = devicePixelRatio / backingStoreRatio; + const devicePixelRatio = window.devicePixelRatio || 1; + const backingStoreRatio = ctx.webkitBackingStorePixelRatio || ctx.mozBackingStorePixelRatio || ctx.msBackingStorePixelRatio || ctx.oBackingStorePixelRatio || ctx.backingStorePixelRatio || 1; + const pixelRatio = devicePixelRatio / backingStoreRatio; return { sx: pixelRatio, sy: pixelRatio, @@ -2535,14 +2547,14 @@ function scrollIntoView(element, spot, skipOverflowHiddenElements = false) { let parent = element.offsetParent; if (!parent) { - console.error('offsetParent is not set -- cannot scroll'); + console.error("offsetParent is not set -- cannot scroll"); return; } let offsetY = element.offsetTop + element.clientTop; let offsetX = element.offsetLeft + element.clientLeft; - while (parent.clientHeight === parent.scrollHeight && parent.clientWidth === parent.scrollWidth || skipOverflowHiddenElements && getComputedStyle(parent).overflow === 'hidden') { + while (parent.clientHeight === parent.scrollHeight && parent.clientWidth === parent.scrollWidth || skipOverflowHiddenElements && getComputedStyle(parent).overflow === "hidden") { if (parent.dataset._scaleY) { offsetY /= parent.dataset._scaleY; offsetX /= parent.dataset._scaleX; @@ -2572,23 +2584,23 @@ function scrollIntoView(element, spot, skipOverflowHiddenElements = false) { } function watchScroll(viewAreaElement, callback) { - let debounceScroll = function (evt) { + const debounceScroll = function (evt) { if (rAF) { return; } rAF = window.requestAnimationFrame(function viewAreaElementScrolled() { rAF = null; - let currentX = viewAreaElement.scrollLeft; - let lastX = state.lastX; + const currentX = viewAreaElement.scrollLeft; + const lastX = state.lastX; if (currentX !== lastX) { state.right = currentX > lastX; } state.lastX = currentX; - let currentY = viewAreaElement.scrollTop; - let lastY = state.lastY; + const currentY = viewAreaElement.scrollTop; + const lastY = state.lastY; if (currentY !== lastY) { state.down = currentY > lastY; @@ -2599,7 +2611,7 @@ function watchScroll(viewAreaElement, callback) { }); }; - let state = { + const state = { right: true, down: true, lastX: viewAreaElement.scrollLeft, @@ -2607,18 +2619,18 @@ function watchScroll(viewAreaElement, callback) { _eventHandler: debounceScroll }; let rAF = null; - viewAreaElement.addEventListener('scroll', debounceScroll, true); + viewAreaElement.addEventListener("scroll", debounceScroll, true); return state; } function parseQueryString(query) { - let parts = query.split('&'); - let params = Object.create(null); + const parts = query.split("&"); + const params = Object.create(null); for (let i = 0, ii = parts.length; i < ii; ++i) { - let param = parts[i].split('='); - let key = param[0].toLowerCase(); - let value = param.length > 1 ? param[1] : null; + const param = parts[i].split("="); + const key = param[0].toLowerCase(); + const value = param.length > 1 ? param[1] : null; params[decodeURIComponent(key)] = decodeURIComponent(value); } @@ -2638,8 +2650,8 @@ function binarySearchFirstItem(items, condition) { } while (minIndex < maxIndex) { - let currentIndex = minIndex + maxIndex >> 1; - let currentItem = items[currentIndex]; + const currentIndex = minIndex + maxIndex >> 1; + const currentItem = items[currentIndex]; if (condition(currentItem)) { maxIndex = currentIndex; @@ -2656,8 +2668,8 @@ function approximateFraction(x) { return [x, 1]; } - let xinv = 1 / x; - let limit = 8; + const xinv = 1 / x; + const limit = 8; if (xinv > limit) { return [1, limit]; @@ -2665,15 +2677,15 @@ function approximateFraction(x) { return [1, xinv]; } - let x_ = x > 1 ? xinv : x; + const x_ = x > 1 ? xinv : x; let a = 0, b = 1, c = 1, d = 1; while (true) { - let p = a + c, - q = b + d; + const p = a + c, + q = b + d; if (q > limit) { break; @@ -2700,7 +2712,7 @@ function approximateFraction(x) { } function roundToDivide(x, div) { - let r = x % div; + const r = x % div; return r === 0 ? x : Math.round(x - r + div); } @@ -2812,7 +2824,7 @@ function getVisibleElements(scrollEl, views, sortByVisibility = false, horizonta if (sortByVisibility) { visible.sort(function (a, b) { - let pc = a.percent - b.percent; + const pc = a.percent - b.percent; if (Math.abs(pc) > 0.001) { return -pc; @@ -2834,35 +2846,35 @@ function noContextMenuHandler(evt) { } function isDataSchema(url) { - let i = 0, - ii = url.length; + let i = 0; + const ii = url.length; - while (i < ii && url[i].trim() === '') { + while (i < ii && url[i].trim() === "") { i++; } - return url.substring(i, i + 5).toLowerCase() === 'data:'; + return url.substring(i, i + 5).toLowerCase() === "data:"; } -function getPDFFileNameFromURL(url, defaultFilename = 'document.pdf') { - if (typeof url !== 'string') { +function getPDFFileNameFromURL(url, defaultFilename = "document.pdf") { + if (typeof url !== "string") { return defaultFilename; } if (isDataSchema(url)) { - console.warn('getPDFFileNameFromURL: ' + 'ignoring "data:" URL for performance reasons.'); + console.warn("getPDFFileNameFromURL: " + 'ignoring "data:" URL for performance reasons.'); return defaultFilename; } const reURI = /^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/; const reFilename = /[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i; - let splitURI = reURI.exec(url); + const splitURI = reURI.exec(url); let suggestedFilename = reFilename.exec(splitURI[1]) || reFilename.exec(splitURI[2]) || reFilename.exec(splitURI[3]); if (suggestedFilename) { suggestedFilename = suggestedFilename[0]; - if (suggestedFilename.includes('%')) { + if (suggestedFilename.includes("%")) { try { suggestedFilename = reFilename.exec(decodeURIComponent(suggestedFilename))[0]; } catch (ex) {} @@ -2874,7 +2886,7 @@ function getPDFFileNameFromURL(url, defaultFilename = 'document.pdf') { function normalizeWheelEventDelta(evt) { let delta = Math.sqrt(evt.deltaX * evt.deltaX + evt.deltaY * evt.deltaY); - let angle = Math.atan2(evt.deltaY, evt.deltaX); + const angle = Math.atan2(evt.deltaY, evt.deltaX); if (-0.25 * Math.PI < angle && angle < 0.75 * Math.PI) { delta = -delta; @@ -2911,8 +2923,8 @@ function isPortraitOrientation(size) { } const WaitOnType = { - EVENT: 'event', - TIMEOUT: 'timeout' + EVENT: "event", + TIMEOUT: "timeout" }; exports.WaitOnType = WaitOnType; @@ -2922,8 +2934,8 @@ function waitOnEventOrTimeout({ delay = 0 }) { return new Promise(function (resolve, reject) { - if (typeof target !== 'object' || !(name && typeof name === 'string') || !(Number.isInteger(delay) && delay >= 0)) { - throw new Error('waitOnEventOrTimeout - invalid parameters.'); + if (typeof target !== "object" || !(name && typeof name === "string") || !(Number.isInteger(delay) && delay >= 0)) { + throw new Error("waitOnEventOrTimeout - invalid parameters."); } function handler(type) { @@ -2949,11 +2961,11 @@ function waitOnEventOrTimeout({ } const timeoutHandler = handler.bind(null, WaitOnType.TIMEOUT); - let timeout = setTimeout(timeoutHandler, delay); + const timeout = setTimeout(timeoutHandler, delay); }); } -let animationStarted = new Promise(function (resolve) { +const animationStarted = new Promise(function (resolve) { window.requestAnimationFrame(resolve); }); exports.animationStarted = animationStarted; @@ -2978,7 +2990,7 @@ class EventBus { } off(eventName, listener) { - let eventListeners = this._listeners[eventName]; + const eventListeners = this._listeners[eventName]; let i; if (!eventListeners || (i = eventListeners.indexOf(listener)) < 0) { @@ -2989,7 +3001,7 @@ class EventBus { } dispatch(eventName) { - let eventListeners = this._listeners[eventName]; + const eventListeners = this._listeners[eventName]; if (!eventListeners || eventListeners.length === 0) { if (this._dispatchToDOM) { @@ -3017,10 +3029,10 @@ class EventBus { if (args && args.length > 0) { const obj = args[0]; - for (let key in obj) { + for (const key in obj) { const value = obj[key]; - if (key === 'source') { + if (key === "source") { if (value === window || value === document) { return; } @@ -3032,7 +3044,7 @@ class EventBus { } } - const event = document.createEvent('CustomEvent'); + const event = document.createEvent("CustomEvent"); event.initCustomEvent(eventName, true, true, details); document.dispatchEvent(event); } @@ -3063,24 +3075,24 @@ class ProgressBar { units } = {}) { this.visible = true; - this.div = document.querySelector(id + ' .progress'); + this.div = document.querySelector(id + " .progress"); this.bar = this.div.parentNode; this.height = height || 100; this.width = width || 100; - this.units = units || '%'; + this.units = units || "%"; this.div.style.height = this.height + this.units; this.percent = 0; } _updateBar() { if (this._indeterminate) { - this.div.classList.add('indeterminate'); + this.div.classList.add("indeterminate"); this.div.style.width = this.width + this.units; return; } - this.div.classList.remove('indeterminate'); - let progressSize = this.width * this._percent / 100; + this.div.classList.remove("indeterminate"); + const progressSize = this.width * this._percent / 100; this.div.style.width = progressSize + this.units; } @@ -3100,11 +3112,11 @@ class ProgressBar { return; } - let container = viewer.parentNode; - let scrollbarWidth = container.offsetWidth - viewer.offsetWidth; + const container = viewer.parentNode; + const scrollbarWidth = container.offsetWidth - viewer.offsetWidth; if (scrollbarWidth > 0) { - this.bar.setAttribute('style', 'width: calc(100% - ' + scrollbarWidth + 'px);'); + this.bar.setAttribute("style", "width: calc(100% - " + scrollbarWidth + "px);"); } } @@ -3114,8 +3126,8 @@ class ProgressBar { } this.visible = false; - this.bar.classList.add('hidden'); - document.body.classList.remove('loadingInProgress'); + this.bar.classList.add("hidden"); + document.body.classList.remove("loadingInProgress"); } show() { @@ -3124,8 +3136,8 @@ class ProgressBar { } this.visible = true; - document.body.classList.add('loadingInProgress'); - this.bar.classList.remove('hidden'); + document.body.classList.add("loadingInProgress"); + this.bar.classList.remove("hidden"); } } @@ -3180,11 +3192,11 @@ const defaultOptions = { kind: OptionKind.VIEWER + OptionKind.PREFERENCE }, defaultUrl: { - value: 'compressed.tracemonkey-pldi-09.pdf', + value: "compressed.tracemonkey-pldi-09.pdf", kind: OptionKind.VIEWER }, defaultZoomValue: { - value: '', + value: "", kind: OptionKind.VIEWER + OptionKind.PREFERENCE }, disableHistory: { @@ -3208,7 +3220,7 @@ const defaultOptions = { kind: OptionKind.VIEWER + OptionKind.PREFERENCE }, externalLinkRel: { - value: 'noopener noreferrer nofollow', + value: "noopener noreferrer nofollow", kind: OptionKind.VIEWER }, externalLinkTarget: { @@ -3220,7 +3232,7 @@ const defaultOptions = { kind: OptionKind.VIEWER + OptionKind.PREFERENCE }, imageResourcesPath: { - value: './images/', + value: "./images/", kind: OptionKind.VIEWER }, maxCanvasPixels: { @@ -3233,7 +3245,7 @@ const defaultOptions = { kind: OptionKind.VIEWER + OptionKind.PREFERENCE }, renderer: { - value: 'canvas', + value: "canvas", kind: OptionKind.VIEWER + OptionKind.PREFERENCE }, renderInteractiveForms: { @@ -3269,7 +3281,7 @@ const defaultOptions = { kind: OptionKind.API }, cMapUrl: { - value: '../web/cmaps/', + value: "../web/cmaps/", kind: OptionKind.API }, disableAutoFetch: { @@ -3294,7 +3306,7 @@ const defaultOptions = { kind: OptionKind.API + OptionKind.PREFERENCE }, docBaseUrl: { - value: '', + value: "", kind: OptionKind.API }, isEvalSupported: { @@ -3318,7 +3330,7 @@ const defaultOptions = { kind: OptionKind.WORKER }, workerSrc: { - value: '../build/pdf.worker.js', + value: "../build/pdf.worker.js", kind: OptionKind.WORKER } }; @@ -3327,7 +3339,7 @@ const userOptions = Object.create(null); class AppOptions { constructor() { - throw new Error('Cannot initialize AppOptions.'); + throw new Error("Cannot initialize AppOptions."); } static get(name) { @@ -3361,7 +3373,7 @@ class AppOptions { const value = defaultOption.value, valueType = typeof value; - if (valueType === 'boolean' || valueType === 'string' || valueType === 'number' && Number.isInteger(value)) { + if (valueType === "boolean" || valueType === "string" || valueType === "number" && Number.isInteger(value)) { options[name] = value; continue; } @@ -3398,10 +3410,10 @@ exports.AppOptions = AppOptions; let pdfjsLib; -if (typeof window !== 'undefined' && window['pdfjs-dist/build/pdf']) { - pdfjsLib = window['pdfjs-dist/build/pdf']; +if (typeof window !== "undefined" && window["pdfjs-dist/build/pdf"]) { + pdfjsLib = window["pdfjs-dist/build/pdf"]; } else { - pdfjsLib = require('../build/pdf.js'); + pdfjsLib = require("../build/pdf.js"); } module.exports = pdfjsLib; @@ -3413,7 +3425,7 @@ module.exports = pdfjsLib; "use strict"; -let compatibilityParams = Object.create(null); +const compatibilityParams = Object.create(null); ; exports.viewerCompatibilityParams = Object.freeze(compatibilityParams); @@ -3472,7 +3484,7 @@ class PDFCursorTools { return; } - let disableActiveTool = () => { + const disableActiveTool = () => { switch (this.active) { case CursorTool.SELECT: break; @@ -3507,17 +3519,17 @@ class PDFCursorTools { } _dispatchEvent() { - this.eventBus.dispatch('cursortoolchanged', { + this.eventBus.dispatch("cursortoolchanged", { source: this, tool: this.active }); } _addEventListeners() { - this.eventBus.on('switchcursortool', evt => { + this.eventBus.on("switchcursortool", evt => { this.switchTool(evt.tool); }); - this.eventBus.on('presentationmodechanged', evt => { + this.eventBus.on("presentationmodechanged", evt => { if (evt.switchInProgress) { return; } @@ -3556,7 +3568,7 @@ function GrabToPan(options) { this.element = options.element; this.document = options.element.ownerDocument; - if (typeof options.ignoreTarget === 'function') { + if (typeof options.ignoreTarget === "function") { this.ignoreTarget = options.ignoreTarget; } @@ -3567,16 +3579,16 @@ function GrabToPan(options) { this._onmousedown = this._onmousedown.bind(this); this._onmousemove = this._onmousemove.bind(this); this._endPan = this._endPan.bind(this); - var overlay = this.overlay = document.createElement('div'); - overlay.className = 'grab-to-pan-grabbing'; + var overlay = this.overlay = document.createElement("div"); + overlay.className = "grab-to-pan-grabbing"; } GrabToPan.prototype = { - CSS_CLASS_GRAB: 'grab-to-pan-grab', + CSS_CLASS_GRAB: "grab-to-pan-grab", activate: function GrabToPan_activate() { if (!this.active) { this.active = true; - this.element.addEventListener('mousedown', this._onmousedown, true); + this.element.addEventListener("mousedown", this._onmousedown, true); this.element.classList.add(this.CSS_CLASS_GRAB); if (this.onActiveChanged) { @@ -3587,7 +3599,7 @@ GrabToPan.prototype = { deactivate: function GrabToPan_deactivate() { if (this.active) { this.active = false; - this.element.removeEventListener('mousedown', this._onmousedown, true); + this.element.removeEventListener("mousedown", this._onmousedown, true); this._endPan(); @@ -3606,7 +3618,7 @@ GrabToPan.prototype = { } }, ignoreTarget: function GrabToPan_ignoreTarget(node) { - return node[matchesSelector]('a[href], a[href] *, input, textarea, button, button *, select, option'); + return node[matchesSelector]("a[href], a[href] *, input, textarea, button, button *, select, option"); }, _onmousedown: function GrabToPan__onmousedown(event) { if (event.button !== 0 || this.ignoreTarget(event.target)) { @@ -3625,9 +3637,9 @@ GrabToPan.prototype = { this.scrollTopStart = this.element.scrollTop; this.clientXStart = event.clientX; this.clientYStart = event.clientY; - this.document.addEventListener('mousemove', this._onmousemove, true); - this.document.addEventListener('mouseup', this._endPan, true); - this.element.addEventListener('scroll', this._endPan, true); + this.document.addEventListener("mousemove", this._onmousemove, true); + this.document.addEventListener("mouseup", this._endPan, true); + this.element.addEventListener("scroll", this._endPan, true); event.preventDefault(); event.stopPropagation(); var focusedElement = document.activeElement; @@ -3637,7 +3649,7 @@ GrabToPan.prototype = { } }, _onmousemove: function GrabToPan__onmousemove(event) { - this.element.removeEventListener('scroll', this._endPan, true); + this.element.removeEventListener("scroll", this._endPan, true); if (isLeftMouseReleased(event)) { this._endPan(); @@ -3654,7 +3666,7 @@ GrabToPan.prototype = { this.element.scrollTo({ top: scrollTop, left: scrollLeft, - behavior: 'instant' + behavior: "instant" }); } else { this.element.scrollTop = scrollTop; @@ -3666,21 +3678,21 @@ GrabToPan.prototype = { } }, _endPan: function GrabToPan__endPan() { - this.element.removeEventListener('scroll', this._endPan, true); - this.document.removeEventListener('mousemove', this._onmousemove, true); - this.document.removeEventListener('mouseup', this._endPan, true); + this.element.removeEventListener("scroll", this._endPan, true); + this.document.removeEventListener("mousemove", this._onmousemove, true); + this.document.removeEventListener("mouseup", this._endPan, true); this.overlay.remove(); } }; var matchesSelector; -['webkitM', 'mozM', 'msM', 'oM', 'm'].some(function (prefix) { - var name = prefix + 'atches'; +["webkitM", "mozM", "msM", "oM", "m"].some(function (prefix) { + var name = prefix + "atches"; if (name in document.documentElement) { matchesSelector = name; } - name += 'Selector'; + name += "Selector"; if (name in document.documentElement) { matchesSelector = name; @@ -3694,7 +3706,7 @@ var isChrome15OrOpera15plus = chrome && (chrome.webstore || chrome.app); var isSafari6plus = /Apple/.test(navigator.vendor) && /Version\/([6-9]\d*|[1-5]\d+)/.test(navigator.userAgent); function isLeftMouseReleased(event) { - if ('buttons' in event && isNotIEorIsIE10plus) { + if ("buttons" in event && isNotIEorIsIE10plus) { return !(event.buttons & 1); } @@ -3774,15 +3786,15 @@ class PDFRenderingQueue { } getHighestPriority(visible, views, scrolledDown) { - let visibleViews = visible.views; - let numVisible = visibleViews.length; + const visibleViews = visible.views; + const numVisible = visibleViews.length; if (numVisible === 0) { return null; } for (let i = 0; i < numVisible; ++i) { - let view = visibleViews[i].view; + const view = visibleViews[i].view; if (!this.isViewFinished(view)) { return view; @@ -3790,13 +3802,13 @@ class PDFRenderingQueue { } if (scrolledDown) { - let nextPageIndex = visible.last.id; + const nextPageIndex = visible.last.id; if (views[nextPageIndex] && !this.isViewFinished(views[nextPageIndex])) { return views[nextPageIndex]; } } else { - let previousPageIndex = visible.first.id - 2; + const previousPageIndex = visible.first.id - 2; if (views[previousPageIndex] && !this.isViewFinished(views[previousPageIndex])) { return views[previousPageIndex]; @@ -3855,7 +3867,7 @@ var _ui_utils = __webpack_require__(2); var _pdf_rendering_queue = __webpack_require__(8); -const UI_NOTIFICATION_CLASS = 'pdfSidebarNotification'; +const UI_NOTIFICATION_CLASS = "pdfSidebarNotification"; const SidebarView = { UNKNOWN: -1, NONE: 0, @@ -3985,12 +3997,12 @@ class PDFSidebar { } this.active = view; - this.thumbnailButton.classList.toggle('toggled', view === SidebarView.THUMBS); - this.outlineButton.classList.toggle('toggled', view === SidebarView.OUTLINE); - this.attachmentsButton.classList.toggle('toggled', view === SidebarView.ATTACHMENTS); - this.thumbnailView.classList.toggle('hidden', view !== SidebarView.THUMBS); - this.outlineView.classList.toggle('hidden', view !== SidebarView.OUTLINE); - this.attachmentsView.classList.toggle('hidden', view !== SidebarView.ATTACHMENTS); + this.thumbnailButton.classList.toggle("toggled", view === SidebarView.THUMBS); + this.outlineButton.classList.toggle("toggled", view === SidebarView.OUTLINE); + this.attachmentsButton.classList.toggle("toggled", view === SidebarView.ATTACHMENTS); + this.thumbnailView.classList.toggle("hidden", view !== SidebarView.THUMBS); + this.outlineView.classList.toggle("hidden", view !== SidebarView.OUTLINE); + this.attachmentsView.classList.toggle("hidden", view !== SidebarView.ATTACHMENTS); if (forceOpen && !this.isOpen) { this.open(); @@ -4018,8 +4030,8 @@ class PDFSidebar { } this.isOpen = true; - this.toggleButton.classList.add('toggled'); - this.outerContainer.classList.add('sidebarMoving', 'sidebarOpen'); + this.toggleButton.classList.add("toggled"); + this.outerContainer.classList.add("sidebarMoving", "sidebarOpen"); if (this.active === SidebarView.THUMBS) { this._updateThumbnailViewer(); @@ -4038,9 +4050,9 @@ class PDFSidebar { } this.isOpen = false; - this.toggleButton.classList.remove('toggled'); - this.outerContainer.classList.add('sidebarMoving'); - this.outerContainer.classList.remove('sidebarOpen'); + this.toggleButton.classList.remove("toggled"); + this.outerContainer.classList.add("sidebarMoving"); + this.outerContainer.classList.remove("sidebarOpen"); this._forceRendering(); @@ -4056,7 +4068,7 @@ class PDFSidebar { } _dispatchEvent() { - this.eventBus.dispatch('sidebarviewchanged', { + this.eventBus.dispatch("sidebarviewchanged", { source: this, view: this.visibleView }); @@ -4072,17 +4084,17 @@ class PDFSidebar { } _updateThumbnailViewer() { - let { + const { pdfViewer, pdfThumbnailViewer } = this; - let pagesCount = pdfViewer.pagesCount; + const pagesCount = pdfViewer.pagesCount; for (let pageIndex = 0; pageIndex < pagesCount; pageIndex++) { - let pageView = pdfViewer.getPageView(pageIndex); + const pageView = pdfViewer.getPageView(pageIndex); if (pageView && pageView.renderingState === _pdf_rendering_queue.RenderingStates.FINISHED) { - let thumbnailView = pdfThumbnailViewer.getThumbnail(pageIndex); + const thumbnailView = pdfThumbnailViewer.getThumbnail(pageIndex); thumbnailView.setImage(pageView); } } @@ -4095,7 +4107,7 @@ class PDFSidebar { return; } - this.l10n.get('toggle_sidebar_notification.title', null, 'Toggle Sidebar (document contains outline/attachments)').then(msg => { + this.l10n.get("toggle_sidebar_notification.title", null, "Toggle Sidebar (document contains outline/attachments)").then(msg => { this.toggleButton.title = msg; }); @@ -4121,7 +4133,7 @@ class PDFSidebar { return; } - let removeNotification = view => { + const removeNotification = view => { switch (view) { case SidebarView.OUTLINE: this.outlineButton.classList.remove(UI_NOTIFICATION_CLASS); @@ -4148,36 +4160,36 @@ class PDFSidebar { removeNotification(SidebarView[view]); } - this.l10n.get('toggle_sidebar.title', null, 'Toggle Sidebar').then(msg => { + this.l10n.get("toggle_sidebar.title", null, "Toggle Sidebar").then(msg => { this.toggleButton.title = msg; }); } _addEventListeners() { - this.viewerContainer.addEventListener('transitionend', evt => { + this.viewerContainer.addEventListener("transitionend", evt => { if (evt.target === this.viewerContainer) { - this.outerContainer.classList.remove('sidebarMoving'); + this.outerContainer.classList.remove("sidebarMoving"); } }); - this.toggleButton.addEventListener('click', () => { + this.toggleButton.addEventListener("click", () => { this.toggle(); }); - this.thumbnailButton.addEventListener('click', () => { + this.thumbnailButton.addEventListener("click", () => { this.switchView(SidebarView.THUMBS); }); - this.outlineButton.addEventListener('click', () => { + this.outlineButton.addEventListener("click", () => { this.switchView(SidebarView.OUTLINE); }); - this.outlineButton.addEventListener('dblclick', () => { - this.eventBus.dispatch('toggleoutlinetree', { + this.outlineButton.addEventListener("dblclick", () => { + this.eventBus.dispatch("toggleoutlinetree", { source: this }); }); - this.attachmentsButton.addEventListener('click', () => { + this.attachmentsButton.addEventListener("click", () => { this.switchView(SidebarView.ATTACHMENTS); }); - this.eventBus.on('outlineloaded', evt => { - let outlineCount = evt.outlineCount; + this.eventBus.on("outlineloaded", evt => { + const outlineCount = evt.outlineCount; this.outlineButton.disabled = !outlineCount; if (outlineCount) { @@ -4186,7 +4198,7 @@ class PDFSidebar { this.switchView(SidebarView.THUMBS); } }); - this.eventBus.on('attachmentsloaded', evt => { + this.eventBus.on("attachmentsloaded", evt => { if (evt.attachmentsCount) { this.attachmentsButton.disabled = false; @@ -4207,7 +4219,7 @@ class PDFSidebar { } }); }); - this.eventBus.on('presentationmodechanged', evt => { + this.eventBus.on("presentationmodechanged", evt => { if (!evt.active && !evt.switchInProgress && this.isThumbnailViewVisible) { this._updateThumbnailViewer(); } @@ -4245,9 +4257,9 @@ class OverlayManager { let container; if (!name || !element || !(container = element.parentNode)) { - throw new Error('Not enough parameters.'); + throw new Error("Not enough parameters."); } else if (this._overlays[name]) { - throw new Error('The overlay is already registered.'); + throw new Error("The overlay is already registered."); } this._overlays[name] = { @@ -4260,9 +4272,9 @@ class OverlayManager { async unregister(name) { if (!this._overlays[name]) { - throw new Error('The overlay does not exist.'); + throw new Error("The overlay does not exist."); } else if (this._active === name) { - throw new Error('The overlay cannot be removed while it is active.'); + throw new Error("The overlay cannot be removed while it is active."); } delete this._overlays[name]; @@ -4270,41 +4282,41 @@ class OverlayManager { async open(name) { if (!this._overlays[name]) { - throw new Error('The overlay does not exist.'); + throw new Error("The overlay does not exist."); } else if (this._active) { if (this._overlays[name].canForceClose) { this._closeThroughCaller(); } else if (this._active === name) { - throw new Error('The overlay is already active.'); + throw new Error("The overlay is already active."); } else { - throw new Error('Another overlay is currently active.'); + throw new Error("Another overlay is currently active."); } } this._active = name; - this._overlays[this._active].element.classList.remove('hidden'); + this._overlays[this._active].element.classList.remove("hidden"); - this._overlays[this._active].container.classList.remove('hidden'); + this._overlays[this._active].container.classList.remove("hidden"); - window.addEventListener('keydown', this._keyDownBound); + window.addEventListener("keydown", this._keyDownBound); } async close(name) { if (!this._overlays[name]) { - throw new Error('The overlay does not exist.'); + throw new Error("The overlay does not exist."); } else if (!this._active) { - throw new Error('The overlay is currently not active.'); + throw new Error("The overlay is currently not active."); } else if (this._active !== name) { - throw new Error('Another overlay is currently active.'); + throw new Error("Another overlay is currently active."); } - this._overlays[this._active].container.classList.add('hidden'); + this._overlays[this._active].container.classList.add("hidden"); - this._overlays[this._active].element.classList.add('hidden'); + this._overlays[this._active].element.classList.add("hidden"); this._active = null; - window.removeEventListener('keydown', this._keyDownBound); + window.removeEventListener("keydown", this._keyDownBound); } _keyDown(evt) { @@ -4357,9 +4369,9 @@ class PasswordPrompt { this.l10n = l10n; this.updateCallback = null; this.reason = null; - this.submitButton.addEventListener('click', this.verify.bind(this)); - this.cancelButton.addEventListener('click', this.close.bind(this)); - this.input.addEventListener('keydown', e => { + this.submitButton.addEventListener("click", this.verify.bind(this)); + this.cancelButton.addEventListener("click", this.close.bind(this)); + this.input.addEventListener("keydown", e => { if (e.keyCode === 13) { this.verify(); } @@ -4373,9 +4385,9 @@ class PasswordPrompt { let promptString; if (this.reason === _pdfjsLib.PasswordResponses.INCORRECT_PASSWORD) { - promptString = this.l10n.get('password_invalid', null, 'Invalid password. Please try again.'); + promptString = this.l10n.get("password_invalid", null, "Invalid password. Please try again."); } else { - promptString = this.l10n.get('password_label', null, 'Enter the password to open this PDF file.'); + promptString = this.l10n.get("password_label", null, "Enter the password to open this PDF file."); } promptString.then(msg => { @@ -4386,12 +4398,12 @@ class PasswordPrompt { close() { this.overlayManager.close(this.overlayName).then(() => { - this.input.value = ''; + this.input.value = ""; }); } verify() { - let password = this.input.value; + const password = this.input.value; if (password && password.length > 0) { this.close(); @@ -4432,12 +4444,12 @@ class PDFAttachmentViewer { this.eventBus = eventBus; this.downloadManager = downloadManager; this.reset(); - this.eventBus.on('fileattachmentannotation', this._appendAttachment.bind(this)); + this.eventBus.on("fileattachmentannotation", this._appendAttachment.bind(this)); } reset(keepRenderedCapability = false) { this.attachments = null; - this.container.textContent = ''; + this.container.textContent = ""; if (!keepRenderedCapability) { this._renderedCapability = (0, _pdfjsLib.createPromiseCapability)(); @@ -4447,7 +4459,7 @@ class PDFAttachmentViewer { _dispatchEvent(attachmentsCount) { this._renderedCapability.resolve(); - this.eventBus.dispatch('attachmentsloaded', { + this.eventBus.dispatch("attachmentsloaded", { source: this, attachmentsCount }); @@ -4462,11 +4474,11 @@ class PDFAttachmentViewer { button.onclick = function () { if (!blobUrl) { - blobUrl = (0, _pdfjsLib.createObjectURL)(content, 'application/pdf'); + blobUrl = (0, _pdfjsLib.createObjectURL)(content, "application/pdf"); } let viewerUrl; - viewerUrl = blobUrl + '?' + encodeURIComponent(filename); + viewerUrl = blobUrl + "?" + encodeURIComponent(filename); window.open(viewerUrl); return false; }; @@ -4474,7 +4486,7 @@ class PDFAttachmentViewer { _bindLink(button, content, filename) { button.onclick = () => { - this.downloadManager.downloadData(content, filename, ''); + this.downloadManager.downloadData(content, filename, ""); return false; }; } @@ -4497,17 +4509,17 @@ class PDFAttachmentViewer { return; } - let names = Object.keys(attachments).sort(function (a, b) { + const names = Object.keys(attachments).sort(function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); }); attachmentsCount = names.length; for (let i = 0; i < attachmentsCount; i++) { - let item = attachments[names[i]]; - let filename = (0, _pdfjsLib.removeNullCharacters)((0, _pdfjsLib.getFilenameFromUrl)(item.filename)); - let div = document.createElement('div'); - div.className = 'attachmentsItem'; - let button = document.createElement('button'); + const item = attachments[names[i]]; + const filename = (0, _pdfjsLib.removeNullCharacters)((0, _pdfjsLib.getFilenameFromUrl)(item.filename)); + const div = document.createElement("div"); + div.className = "attachmentsItem"; + const button = document.createElement("button"); button.textContent = filename; if (/\.pdf$/i.test(filename) && !this.downloadManager.disableCreateObjectURL) { @@ -4534,7 +4546,7 @@ class PDFAttachmentViewer { if (!attachments) { attachments = Object.create(null); } else { - for (let name in attachments) { + for (const name in attachments) { if (id === name) { return; } @@ -4572,15 +4584,15 @@ var _pdfjsLib = __webpack_require__(4); var _ui_utils = __webpack_require__(2); -const DEFAULT_FIELD_CONTENT = '-'; -const NON_METRIC_LOCALES = ['en-us', 'en-lr', 'my']; +const DEFAULT_FIELD_CONTENT = "-"; +const NON_METRIC_LOCALES = ["en-us", "en-lr", "my"]; const US_PAGE_NAMES = { - '8.5x11': 'Letter', - '8.5x14': 'Legal' + "8.5x11": "Letter", + "8.5x14": "Legal" }; const METRIC_PAGE_NAMES = { - '297x420': 'A3', - '210x297': 'A4' + "297x420": "A3", + "210x297": "A4" }; function getPageName(size, isPortrait, pageNames) { @@ -4605,16 +4617,16 @@ class PDFDocumentProperties { this._reset(); if (closeButton) { - closeButton.addEventListener('click', this.close.bind(this)); + closeButton.addEventListener("click", this.close.bind(this)); } this.overlayManager.register(this.overlayName, this.container, this.close.bind(this)); if (eventBus) { - eventBus.on('pagechanging', evt => { + eventBus.on("pagechanging", evt => { this._currentPageNumber = evt.pageNumber; }); - eventBus.on('rotationchanging', evt => { + eventBus.on("rotationchanging", evt => { this._pagesRotation = evt.pagesRotation; }); } @@ -4626,8 +4638,8 @@ class PDFDocumentProperties { } open() { - let freezeFieldData = data => { - Object.defineProperty(this, 'fieldData', { + const freezeFieldData = data => { + Object.defineProperty(this, "fieldData", { value: Object.freeze(data), writable: false, enumerable: true, @@ -4639,7 +4651,7 @@ class PDFDocumentProperties { const currentPageNumber = this._currentPageNumber; const pagesRotation = this._pagesRotation; - if (this.fieldData && currentPageNumber === this.fieldData['_currentPageNumber'] && pagesRotation === this.fieldData['_pagesRotation']) { + if (this.fieldData && currentPageNumber === this.fieldData["_currentPageNumber"] && pagesRotation === this.fieldData["_pagesRotation"]) { this._updateUI(); return; @@ -4650,27 +4662,27 @@ class PDFDocumentProperties { metadata, contentDispositionFilename }) => { - return Promise.all([info, metadata, contentDispositionFilename || (0, _ui_utils.getPDFFileNameFromURL)(this.url || ''), this._parseFileSize(this.maybeFileSize), this._parseDate(info.CreationDate), this._parseDate(info.ModDate), this.pdfDocument.getPage(currentPageNumber).then(pdfPage => { + return Promise.all([info, metadata, contentDispositionFilename || (0, _ui_utils.getPDFFileNameFromURL)(this.url || ""), this._parseFileSize(this.maybeFileSize), this._parseDate(info.CreationDate), this._parseDate(info.ModDate), this.pdfDocument.getPage(currentPageNumber).then(pdfPage => { return this._parsePageSize((0, _ui_utils.getPageSizeInches)(pdfPage), pagesRotation); }), this._parseLinearization(info.IsLinearized)]); }).then(([info, metadata, fileName, fileSize, creationDate, modDate, pageSize, isLinearized]) => { freezeFieldData({ - 'fileName': fileName, - 'fileSize': fileSize, - 'title': info.Title, - 'author': info.Author, - 'subject': info.Subject, - 'keywords': info.Keywords, - 'creationDate': creationDate, - 'modificationDate': modDate, - 'creator': info.Creator, - 'producer': info.Producer, - 'version': info.PDFFormatVersion, - 'pageCount': this.pdfDocument.numPages, - 'pageSize': pageSize, - 'linearized': isLinearized, - '_currentPageNumber': currentPageNumber, - '_pagesRotation': pagesRotation + fileName, + fileSize, + title: info.Title, + author: info.Author, + subject: info.Subject, + keywords: info.Keywords, + creationDate, + modificationDate: modDate, + creator: info.Creator, + producer: info.Producer, + version: info.PDFFormatVersion, + pageCount: this.pdfDocument.numPages, + pageSize, + linearized: isLinearized, + _currentPageNumber: currentPageNumber, + _pagesRotation: pagesRotation }); this._updateUI(); @@ -4682,12 +4694,12 @@ class PDFDocumentProperties { this.maybeFileSize = length; return this._parseFileSize(length); }).then(fileSize => { - if (fileSize === this.fieldData['fileSize']) { + if (fileSize === this.fieldData["fileSize"]) { return; } - let data = Object.assign(Object.create(null), this.fieldData); - data['fileSize'] = fileSize; + const data = Object.assign(Object.create(null), this.fieldData); + data["fileSize"] = fileSize; freezeFieldData(data); this._updateUI(); @@ -4734,7 +4746,7 @@ class PDFDocumentProperties { _updateUI(reset = false) { if (reset || !this.fieldData) { - for (let id in this.fields) { + for (const id in this.fields) { this.fields[id].textContent = DEFAULT_FIELD_CONTENT; } @@ -4745,28 +4757,28 @@ class PDFDocumentProperties { return; } - for (let id in this.fields) { - let content = this.fieldData[id]; + for (const id in this.fields) { + const content = this.fieldData[id]; this.fields[id].textContent = content || content === 0 ? content : DEFAULT_FIELD_CONTENT; } } async _parseFileSize(fileSize = 0) { - let kb = fileSize / 1024; + const kb = fileSize / 1024; if (!kb) { return undefined; } else if (kb < 1024) { - return this.l10n.get('document_properties_kb', { + return this.l10n.get("document_properties_kb", { size_kb: (+kb.toPrecision(3)).toLocaleString(), size_b: fileSize.toLocaleString() - }, '{{size_kb}} KB ({{size_b}} bytes)'); + }, "{{size_kb}} KB ({{size_b}} bytes)"); } - return this.l10n.get('document_properties_mb', { + return this.l10n.get("document_properties_mb", { size_mb: (+(kb / 1024).toPrecision(3)).toLocaleString(), size_b: fileSize.toLocaleString() - }, '{{size_mb}} MB ({{size_b}} bytes)'); + }, "{{size_mb}} MB ({{size_b}} bytes)"); } async _parsePageSize(pageSizeInches, pagesRotation) { @@ -4817,20 +4829,20 @@ class PDFDocumentProperties { } if (name) { - pageName = this.l10n.get('document_properties_page_size_name_' + name.toLowerCase(), null, name); + pageName = this.l10n.get("document_properties_page_size_name_" + name.toLowerCase(), null, name); } - return Promise.all([this._isNonMetricLocale ? sizeInches : sizeMillimeters, this.l10n.get('document_properties_page_size_unit_' + (this._isNonMetricLocale ? 'inches' : 'millimeters'), null, this._isNonMetricLocale ? 'in' : 'mm'), pageName, this.l10n.get('document_properties_page_size_orientation_' + (isPortrait ? 'portrait' : 'landscape'), null, isPortrait ? 'portrait' : 'landscape')]).then(([{ + return Promise.all([this._isNonMetricLocale ? sizeInches : sizeMillimeters, this.l10n.get("document_properties_page_size_unit_" + (this._isNonMetricLocale ? "inches" : "millimeters"), null, this._isNonMetricLocale ? "in" : "mm"), pageName, this.l10n.get("document_properties_page_size_orientation_" + (isPortrait ? "portrait" : "landscape"), null, isPortrait ? "portrait" : "landscape")]).then(([{ width, height }, unit, name, orientation]) => { - return this.l10n.get('document_properties_page_size_dimension_' + (name ? 'name_' : '') + 'string', { + return this.l10n.get("document_properties_page_size_dimension_" + (name ? "name_" : "") + "string", { width: width.toLocaleString(), height: height.toLocaleString(), unit, name, orientation - }, '{{width}} × {{height}} {{unit}} (' + (name ? '{{name}}, ' : '') + '{{orientation}})'); + }, "{{width}} × {{height}} {{unit}} (" + (name ? "{{name}}, " : "") + "{{orientation}})"); }); } @@ -4841,14 +4853,14 @@ class PDFDocumentProperties { return undefined; } - return this.l10n.get('document_properties_date_string', { + return this.l10n.get("document_properties_date_string", { date: dateObject.toLocaleDateString(), time: dateObject.toLocaleTimeString() - }, '{{date}}, {{time}}'); + }, "{{date}}, {{time}}"); } _parseLinearization(isLinearized) { - return this.l10n.get('document_properties_linearized_' + (isLinearized ? 'yes' : 'no'), null, isLinearized ? 'Yes' : 'No'); + return this.l10n.get("document_properties_linearized_" + (isLinearized ? "yes" : "no"), null, isLinearized ? "Yes" : "No"); } } @@ -4888,17 +4900,17 @@ class PDFFindBar { this.findNextButton = options.findNextButton || null; this.eventBus = eventBus; this.l10n = l10n; - this.toggleButton.addEventListener('click', () => { + this.toggleButton.addEventListener("click", () => { this.toggle(); }); - this.findField.addEventListener('input', () => { - this.dispatchEvent(''); + this.findField.addEventListener("input", () => { + this.dispatchEvent(""); }); - this.bar.addEventListener('keydown', e => { + this.bar.addEventListener("keydown", e => { switch (e.keyCode) { case 13: if (e.target === this.findField) { - this.dispatchEvent('again', e.shiftKey); + this.dispatchEvent("again", e.shiftKey); } break; @@ -4908,22 +4920,22 @@ class PDFFindBar { break; } }); - this.findPreviousButton.addEventListener('click', () => { - this.dispatchEvent('again', true); + this.findPreviousButton.addEventListener("click", () => { + this.dispatchEvent("again", true); }); - this.findNextButton.addEventListener('click', () => { - this.dispatchEvent('again', false); + this.findNextButton.addEventListener("click", () => { + this.dispatchEvent("again", false); }); - this.highlightAll.addEventListener('click', () => { - this.dispatchEvent('highlightallchange'); + this.highlightAll.addEventListener("click", () => { + this.dispatchEvent("highlightallchange"); }); - this.caseSensitive.addEventListener('click', () => { - this.dispatchEvent('casesensitivitychange'); + this.caseSensitive.addEventListener("click", () => { + this.dispatchEvent("casesensitivitychange"); }); - this.entireWord.addEventListener('click', () => { - this.dispatchEvent('entirewordchange'); + this.entireWord.addEventListener("click", () => { + this.dispatchEvent("entirewordchange"); }); - this.eventBus.on('resize', this._adjustWidth.bind(this)); + this.eventBus.on("resize", this._adjustWidth.bind(this)); } reset() { @@ -4931,7 +4943,7 @@ class PDFFindBar { } dispatchEvent(type, findPrev) { - this.eventBus.dispatch('find', { + this.eventBus.dispatch("find", { source: this, type, query: this.findField.value, @@ -4945,34 +4957,34 @@ class PDFFindBar { updateUIState(state, previous, matchesCount) { let notFound = false; - let findMsg = ''; - let status = ''; + let findMsg = ""; + let status = ""; switch (state) { case _pdf_find_controller.FindState.FOUND: break; case _pdf_find_controller.FindState.PENDING: - status = 'pending'; + status = "pending"; break; case _pdf_find_controller.FindState.NOT_FOUND: - findMsg = this.l10n.get('find_not_found', null, 'Phrase not found'); + findMsg = this.l10n.get("find_not_found", null, "Phrase not found"); notFound = true; break; case _pdf_find_controller.FindState.WRAPPED: if (previous) { - findMsg = this.l10n.get('find_reached_top', null, 'Reached top of document, continued from bottom'); + findMsg = this.l10n.get("find_reached_top", null, "Reached top of document, continued from bottom"); } else { - findMsg = this.l10n.get('find_reached_bottom', null, 'Reached end of document, continued from top'); + findMsg = this.l10n.get("find_reached_bottom", null, "Reached end of document, continued from top"); } break; } - this.findField.classList.toggle('notFound', notFound); - this.findField.setAttribute('data-status', status); + this.findField.classList.toggle("notFound", notFound); + this.findField.setAttribute("data-status", status); Promise.resolve(findMsg).then(msg => { this.findMsg.textContent = msg; @@ -4989,25 +5001,25 @@ class PDFFindBar { return; } - let matchesCountMsg = '', - limit = MATCHES_COUNT_LIMIT; + const limit = MATCHES_COUNT_LIMIT; + let matchesCountMsg = ""; if (total > 0) { if (total > limit) { - matchesCountMsg = this.l10n.get('find_match_count_limit[other]', { + matchesCountMsg = this.l10n.get("find_match_count_limit[other]", { limit - }, 'More than {{limit}} matches'); + }, "More than {{limit}} matches"); } else { - matchesCountMsg = this.l10n.get('find_match_count[other]', { + matchesCountMsg = this.l10n.get("find_match_count[other]", { current, total - }, '{{current}} of {{total}} matches'); + }, "{{current}} of {{total}} matches"); } } Promise.resolve(matchesCountMsg).then(msg => { this.findResultsCount.textContent = msg; - this.findResultsCount.classList.toggle('hidden', !total); + this.findResultsCount.classList.toggle("hidden", !total); this._adjustWidth(); }); @@ -5016,8 +5028,8 @@ class PDFFindBar { open() { if (!this.opened) { this.opened = true; - this.toggleButton.classList.add('toggled'); - this.bar.classList.remove('hidden'); + this.toggleButton.classList.add("toggled"); + this.bar.classList.remove("hidden"); } this.findField.select(); @@ -5032,9 +5044,9 @@ class PDFFindBar { } this.opened = false; - this.toggleButton.classList.remove('toggled'); - this.bar.classList.add('hidden'); - this.eventBus.dispatch('findbarclose', { + this.toggleButton.classList.remove("toggled"); + this.bar.classList.add("hidden"); + this.eventBus.dispatch("findbarclose", { source: this }); } @@ -5052,12 +5064,12 @@ class PDFFindBar { return; } - this.bar.classList.remove('wrapContainers'); - let findbarHeight = this.bar.clientHeight; - let inputContainerHeight = this.bar.firstElementChild.clientHeight; + this.bar.classList.remove("wrapContainers"); + const findbarHeight = this.bar.clientHeight; + const inputContainerHeight = this.bar.firstElementChild.clientHeight; if (findbarHeight > inputContainerHeight) { - this.bar.classList.add('wrapContainers'); + this.bar.classList.add("wrapContainers"); } } @@ -5094,24 +5106,24 @@ const FIND_TIMEOUT = 250; const MATCH_SCROLL_OFFSET_TOP = -50; const MATCH_SCROLL_OFFSET_LEFT = -400; const CHARACTERS_TO_NORMALIZE = { - '\u2018': '\'', - '\u2019': '\'', - '\u201A': '\'', - '\u201B': '\'', - '\u201C': '"', - '\u201D': '"', - '\u201E': '"', - '\u201F': '"', - '\u00BC': '1/4', - '\u00BD': '1/2', - '\u00BE': '3/4' + "\u2018": "'", + "\u2019": "'", + "\u201A": "'", + "\u201B": "'", + "\u201C": '"', + "\u201D": '"', + "\u201E": '"', + "\u201F": '"', + "\u00BC": "1/4", + "\u00BD": "1/2", + "\u00BE": "3/4" }; let normalizationRegex = null; function normalize(text) { if (!normalizationRegex) { - const replace = Object.keys(CHARACTERS_TO_NORMALIZE).join(''); - normalizationRegex = new RegExp(`[${replace}]`, 'g'); + const replace = Object.keys(CHARACTERS_TO_NORMALIZE).join(""); + normalizationRegex = new RegExp(`[${replace}]`, "g"); } return text.replace(normalizationRegex, function (ch) { @@ -5129,7 +5141,7 @@ class PDFFindController { this._reset(); - eventBus.on('findbarclose', this._onFindBarClose.bind(this)); + eventBus.on("findbarclose", this._onFindBarClose.bind(this)); } get highlightMatches() { @@ -5179,7 +5191,7 @@ class PDFFindController { this._state = state; - if (cmd !== 'findhighlightallchange') { + if (cmd !== "findhighlightallchange") { this._updateUIState(FindState.PENDING); } @@ -5198,7 +5210,7 @@ class PDFFindController { this._findTimeout = null; } - if (cmd === 'find') { + if (cmd === "find") { this._findTimeout = setTimeout(() => { this._nextMatch(); @@ -5206,13 +5218,13 @@ class PDFFindController { }, FIND_TIMEOUT); } else if (this._dirtyMatch) { this._nextMatch(); - } else if (cmd === 'findagain') { + } else if (cmd === "findagain") { this._nextMatch(); if (findbarClosed && this._state.highlightAll) { this._updateAllPages(); } - } else if (cmd === 'findhighlightallchange') { + } else if (cmd === "findhighlightallchange") { if (pendingTimeout) { this._nextMatch(); } else { @@ -5290,7 +5302,7 @@ class PDFFindController { } switch (cmd) { - case 'findagain': + case "findagain": const pageNumber = this._selected.pageIdx + 1; const linkService = this._linkService; @@ -5300,7 +5312,7 @@ class PDFFindController { return false; - case 'findhighlightallchange': + case "findhighlightallchange": return false; } @@ -5497,11 +5509,11 @@ class PDFFindController { strBuf.push(textItems[j].str); } - this._pageContents[i] = normalize(strBuf.join('')); + this._pageContents[i] = normalize(strBuf.join("")); extractTextCapability.resolve(i); }, reason => { console.error(`Unable to get text content for page ${i + 1}`, reason); - this._pageContents[i] = ''; + this._pageContents[i] = ""; extractTextCapability.resolve(i); }); }); @@ -5513,14 +5525,14 @@ class PDFFindController { this._linkService.page = index + 1; } - this._eventBus.dispatch('updatetextlayermatches', { + this._eventBus.dispatch("updatetextlayermatches", { source: this, pageIndex: index }); } _updateAllPages() { - this._eventBus.dispatch('updatetextlayermatches', { + this._eventBus.dispatch("updatetextlayermatches", { source: this, pageIndex: -1 }); @@ -5560,7 +5572,7 @@ class PDFFindController { } } - if (this._query === '') { + if (this._query === "") { this._updateUIState(FindState.FOUND); return; @@ -5620,7 +5632,7 @@ class PDFFindController { _nextPageMatch() { if (this._resumePageIdx !== null) { - console.error('There can only be one pending page.'); + console.error("There can only be one pending page."); } let matches = null; @@ -5727,14 +5739,14 @@ class PDFFindController { } _updateUIResultsCount() { - this._eventBus.dispatch('updatefindmatchescount', { + this._eventBus.dispatch("updatefindmatchescount", { source: this, matchesCount: this._requestMatchesCount() }); } _updateUIState(state, previous) { - this._eventBus.dispatch('updatefindcontrolstate', { + this._eventBus.dispatch("updatefindcontrolstate", { source: this, state, previous, @@ -5771,15 +5783,15 @@ const CharacterType = { exports.CharacterType = CharacterType; function isAlphabeticalScript(charCode) { - return charCode < 0x2E80; + return charCode < 0x2e80; } function isAscii(charCode) { - return (charCode & 0xFF80) === 0; + return (charCode & 0xff80) === 0; } function isAsciiAlpha(charCode) { - return charCode >= 0x61 && charCode <= 0x7A || charCode >= 0x41 && charCode <= 0x5A; + return charCode >= 0x61 && charCode <= 0x7a || charCode >= 0x41 && charCode <= 0x5a; } function isAsciiDigit(charCode) { @@ -5787,27 +5799,27 @@ function isAsciiDigit(charCode) { } function isAsciiSpace(charCode) { - return charCode === 0x20 || charCode === 0x09 || charCode === 0x0D || charCode === 0x0A; + return charCode === 0x20 || charCode === 0x09 || charCode === 0x0d || charCode === 0x0a; } function isHan(charCode) { - return charCode >= 0x3400 && charCode <= 0x9FFF || charCode >= 0xF900 && charCode <= 0xFAFF; + return charCode >= 0x3400 && charCode <= 0x9fff || charCode >= 0xf900 && charCode <= 0xfaff; } function isKatakana(charCode) { - return charCode >= 0x30A0 && charCode <= 0x30FF; + return charCode >= 0x30a0 && charCode <= 0x30ff; } function isHiragana(charCode) { - return charCode >= 0x3040 && charCode <= 0x309F; + return charCode >= 0x3040 && charCode <= 0x309f; } function isHalfwidthKatakana(charCode) { - return charCode >= 0xFF60 && charCode <= 0xFF9F; + return charCode >= 0xff60 && charCode <= 0xff9f; } function isThai(charCode) { - return (charCode & 0xFF80) === 0x0E00; + return (charCode & 0xff80) === 0x0e00; } function getCharacterType(charCode) { @@ -5815,14 +5827,14 @@ function getCharacterType(charCode) { if (isAscii(charCode)) { if (isAsciiSpace(charCode)) { return CharacterType.SPACE; - } else if (isAsciiAlpha(charCode) || isAsciiDigit(charCode) || charCode === 0x5F) { + } else if (isAsciiAlpha(charCode) || isAsciiDigit(charCode) || charCode === 0x5f) { return CharacterType.ALPHA_LETTER; } return CharacterType.PUNCT; } else if (isThai(charCode)) { return CharacterType.THAI_LETTER; - } else if (charCode === 0xA0) { + } else if (charCode === 0xa0) { return CharacterType.SPACE; } @@ -5866,22 +5878,6 @@ function getCurrentHash() { return document.location.hash; } -function parseCurrentHash(linkService) { - let hash = unescape(getCurrentHash()).substring(1); - let params = (0, _ui_utils.parseQueryString)(hash); - let page = params.page | 0; - - if (!(Number.isInteger(page) && page > 0 && page <= linkService.pagesCount)) { - page = null; - } - - return { - hash, - page, - rotation: linkService.rotation - }; -} - class PDFHistory { constructor({ linkService, @@ -5889,17 +5885,23 @@ class PDFHistory { }) { this.linkService = linkService; this.eventBus = eventBus || (0, _ui_utils.getGlobalEventBus)(); - this.initialized = false; - this.initialBookmark = null; - this.initialRotation = null; - this._boundEvents = Object.create(null); + this._initialized = false; + this._fingerprint = ""; + this.reset(); + this._boundEvents = null; this._isViewerInPresentationMode = false; - this._isPagesLoaded = false; - this.eventBus.on('presentationmodechanged', evt => { + this.eventBus.on("presentationmodechanged", evt => { this._isViewerInPresentationMode = evt.active || evt.switchInProgress; }); - this.eventBus.on('pagesloaded', evt => { - this._isPagesLoaded = !!evt.pagesCount; + this.eventBus.on("pagesinit", () => { + this._isPagesLoaded = false; + + const onPagesLoaded = evt => { + this.eventBus.off("pagesloaded", onPagesLoaded); + this._isPagesLoaded = !!evt.pagesCount; + }; + + this.eventBus.on("pagesloaded", onPagesLoaded); }); } @@ -5908,23 +5910,23 @@ class PDFHistory { resetHistory = false, updateUrl = false }) { - if (!fingerprint || typeof fingerprint !== 'string') { + if (!fingerprint || typeof fingerprint !== "string") { console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.'); return; } - let reInitialized = this.initialized && this.fingerprint !== fingerprint; - this.fingerprint = fingerprint; - this._updateUrl = updateUrl === true; - - if (!this.initialized) { - this._bindEvents(); + if (this._initialized) { + this.reset(); } - let state = window.history.state; - this.initialized = true; - this.initialBookmark = null; - this.initialRotation = null; + const reInitialized = this._fingerprint !== "" && this._fingerprint !== fingerprint; + this._fingerprint = fingerprint; + this._updateUrl = updateUrl === true; + this._initialized = true; + + this._bindEvents(); + + const state = window.history.state; this._popStateInProgress = false; this._blockHashChange = 0; this._currentHash = getCurrentHash(); @@ -5934,11 +5936,11 @@ class PDFHistory { this._position = null; if (!this._isValidState(state, true) || resetHistory) { - let { + const { hash, page, rotation - } = parseCurrentHash(this.linkService); + } = this._parseCurrentHash(); if (!hash || reInitialized || resetHistory) { this._pushOrReplaceState(null, true); @@ -5955,7 +5957,7 @@ class PDFHistory { return; } - let destination = state.destination; + const destination = state.destination; this._updateInternalState(destination, state.uid, true); @@ -5964,42 +5966,60 @@ class PDFHistory { } if (destination.rotation !== undefined) { - this.initialRotation = destination.rotation; + this._initialRotation = destination.rotation; } if (destination.dest) { - this.initialBookmark = JSON.stringify(destination.dest); + this._initialBookmark = JSON.stringify(destination.dest); this._destination.page = null; } else if (destination.hash) { - this.initialBookmark = destination.hash; + this._initialBookmark = destination.hash; } else if (destination.page) { - this.initialBookmark = `page=${destination.page}`; + this._initialBookmark = `page=${destination.page}`; } } + reset() { + if (this._initialized) { + this._pageHide(); + + this._initialized = false; + + this._unbindEvents(); + } + + if (this._updateViewareaTimeout) { + clearTimeout(this._updateViewareaTimeout); + this._updateViewareaTimeout = null; + } + + this._initialBookmark = null; + this._initialRotation = null; + } + push({ namedDest = null, explicitDest, pageNumber }) { - if (!this.initialized) { + if (!this._initialized) { return; } - if (namedDest && typeof namedDest !== 'string') { - console.error('PDFHistory.push: ' + `"${namedDest}" is not a valid namedDest parameter.`); + if (namedDest && typeof namedDest !== "string") { + console.error("PDFHistory.push: " + `"${namedDest}" is not a valid namedDest parameter.`); return; } else if (!Array.isArray(explicitDest)) { - console.error('PDFHistory.push: ' + `"${explicitDest}" is not a valid explicitDest parameter.`); + console.error("PDFHistory.push: " + `"${explicitDest}" is not a valid explicitDest parameter.`); return; } else if (!(Number.isInteger(pageNumber) && pageNumber > 0 && pageNumber <= this.linkService.pagesCount)) { if (pageNumber !== null || this._destination) { - console.error('PDFHistory.push: ' + `"${pageNumber}" is not a valid pageNumber parameter.`); + console.error("PDFHistory.push: " + `"${pageNumber}" is not a valid pageNumber parameter.`); return; } } - let hash = namedDest || JSON.stringify(explicitDest); + const hash = namedDest || JSON.stringify(explicitDest); if (!hash) { return; @@ -6035,7 +6055,7 @@ class PDFHistory { } pushCurrentPosition() { - if (!this.initialized || this._popStateInProgress) { + if (!this._initialized || this._popStateInProgress) { return; } @@ -6043,11 +6063,11 @@ class PDFHistory { } back() { - if (!this.initialized || this._popStateInProgress) { + if (!this._initialized || this._popStateInProgress) { return; } - let state = window.history.state; + const state = window.history.state; if (this._isValidState(state) && state.uid > 0) { window.history.back(); @@ -6055,11 +6075,11 @@ class PDFHistory { } forward() { - if (!this.initialized || this._popStateInProgress) { + if (!this._initialized || this._popStateInProgress) { return; } - let state = window.history.state; + const state = window.history.state; if (this._isValidState(state) && state.uid < this._maxUid) { window.history.forward(); @@ -6067,13 +6087,21 @@ class PDFHistory { } get popStateInProgress() { - return this.initialized && (this._popStateInProgress || this._blockHashChange > 0); + return this._initialized && (this._popStateInProgress || this._blockHashChange > 0); + } + + get initialBookmark() { + return this._initialized ? this._initialBookmark : null; + } + + get initialRotation() { + return this._initialized ? this._initialRotation : null; } _pushOrReplaceState(destination, forceReplace = false) { - let shouldReplace = forceReplace || !this._destination; - let newState = { - fingerprint: this.fingerprint, + const shouldReplace = forceReplace || !this._destination; + const newState = { + fingerprint: this._fingerprint, uid: shouldReplace ? this._uid : this._uid + 1, destination }; @@ -6083,18 +6111,18 @@ class PDFHistory { let newUrl; if (this._updateUrl && destination && destination.hash) { - const baseUrl = document.location.href.split('#')[0]; + const baseUrl = document.location.href.split("#")[0]; - if (!baseUrl.startsWith('file://')) { + if (!baseUrl.startsWith("file://")) { newUrl = `${baseUrl}#${destination.hash}`; } } if (shouldReplace) { - window.history.replaceState(newState, '', newUrl); + window.history.replaceState(newState, "", newUrl); } else { this._maxUid = this._uid; - window.history.pushState(newState, '', newUrl); + window.history.pushState(newState, "", newUrl); } } @@ -6148,15 +6176,15 @@ class PDFHistory { return false; } - if (state.fingerprint !== this.fingerprint) { + if (state.fingerprint !== this._fingerprint) { if (checkReload) { - if (typeof state.fingerprint !== 'string' || state.fingerprint.length !== this.fingerprint.length) { + if (typeof state.fingerprint !== "string" || state.fingerprint.length !== this._fingerprint.length) { return false; } - const [perfEntry] = performance.getEntriesByType('navigation'); + const [perfEntry] = performance.getEntriesByType("navigation"); - if (!perfEntry || perfEntry.type !== 'reload') { + if (!perfEntry || perfEntry.type !== "reload") { return false; } } else { @@ -6168,7 +6196,7 @@ class PDFHistory { return false; } - if (state.destination === null || typeof state.destination !== 'object') { + if (state.destination === null || typeof state.destination !== "object") { return false; } @@ -6190,6 +6218,21 @@ class PDFHistory { this._numPositionUpdates = 0; } + _parseCurrentHash() { + const hash = unescape(getCurrentHash()).substring(1); + let page = (0, _ui_utils.parseQueryString)(hash).page | 0; + + if (!(Number.isInteger(page) && page > 0 && page <= this.linkService.pagesCount)) { + page = null; + } + + return { + hash, + page, + rotation: this.linkService.rotation + }; + } + _updateViewarea({ location }) { @@ -6227,17 +6270,18 @@ class PDFHistory { _popState({ state }) { - let newHash = getCurrentHash(), - hashChanged = this._currentHash !== newHash; + const newHash = getCurrentHash(), + hashChanged = this._currentHash !== newHash; this._currentHash = newHash; - if (!state || false) { + if (!state) { this._uid++; - let { + + const { hash, page, rotation - } = parseCurrentHash(this.linkService); + } = this._parseCurrentHash(); this._pushOrReplaceState({ hash, @@ -6258,14 +6302,14 @@ class PDFHistory { this._blockHashChange++; (0, _ui_utils.waitOnEventOrTimeout)({ target: window, - name: 'hashchange', + name: "hashchange", delay: HASH_CHANGE_TIMEOUT }).then(() => { this._blockHashChange--; }); } - let destination = state.destination; + const destination = state.destination; this._updateInternalState(destination, state.uid, true); @@ -6290,23 +6334,36 @@ class PDFHistory { }); } + _pageHide() { + if (!this._destination || this._destination.temporary) { + this._tryPushCurrentPosition(); + } + } + _bindEvents() { - let { - _boundEvents, - eventBus - } = this; - _boundEvents.updateViewarea = this._updateViewarea.bind(this); - _boundEvents.popState = this._popState.bind(this); + if (this._boundEvents) { + return; + } - _boundEvents.pageHide = evt => { - if (!this._destination || this._destination.temporary) { - this._tryPushCurrentPosition(); - } + this._boundEvents = { + updateViewarea: this._updateViewarea.bind(this), + popState: this._popState.bind(this), + pageHide: this._pageHide.bind(this) }; + this.eventBus.on("updateviewarea", this._boundEvents.updateViewarea); + window.addEventListener("popstate", this._boundEvents.popState); + window.addEventListener("pagehide", this._boundEvents.pageHide); + } - eventBus.on('updateviewarea', _boundEvents.updateViewarea); - window.addEventListener('popstate', _boundEvents.popState); - window.addEventListener('pagehide', _boundEvents.pageHide); + _unbindEvents() { + if (!this._boundEvents) { + return; + } + + this.eventBus.off("updateviewarea", this._boundEvents.updateViewarea); + window.removeEventListener("popstate", this._boundEvents.popState); + window.removeEventListener("pagehide", this._boundEvents.pageHide); + this._boundEvents = null; } } @@ -6314,7 +6371,7 @@ class PDFHistory { exports.PDFHistory = PDFHistory; function isDestHashesEqual(destHash, pushHash) { - if (typeof destHash !== 'string' || typeof pushHash !== 'string') { + if (typeof destHash !== "string" || typeof pushHash !== "string") { return false; } @@ -6322,7 +6379,7 @@ function isDestHashesEqual(destHash, pushHash) { return true; } - let { + const { nameddest } = (0, _ui_utils.parseQueryString)(destHash); @@ -6343,12 +6400,12 @@ function isDestArraysEqual(firstDest, secondDest) { return false; } - if (first !== null && typeof first === 'object' && second !== null) { + if (first !== null && typeof first === "object" && second !== null) { if (Object.keys(first).length !== Object.keys(second).length) { return false; } - for (let key in first) { + for (const key in first) { if (!isEntryEqual(first[key], second[key])) { return false; } @@ -6444,12 +6501,12 @@ class PDFLinkService { } navigateTo(dest) { - let goToDestination = ({ + const goToDestination = ({ namedDest, explicitDest }) => { - let destRef = explicitDest[0], - pageNumber; + const destRef = explicitDest[0]; + let pageNumber; if (destRef instanceof Object) { pageNumber = this._cachedPageNumber(destRef); @@ -6494,7 +6551,7 @@ class PDFLinkService { }; new Promise((resolve, reject) => { - if (typeof dest === 'string') { + if (typeof dest === "string") { this.pdfDocument.getDestination(dest).then(destArray => { resolve({ namedDest: dest, @@ -6505,7 +6562,7 @@ class PDFLinkService { } resolve({ - namedDest: '', + namedDest: "", explicitDest: dest }); }).then(data => { @@ -6519,64 +6576,64 @@ class PDFLinkService { } getDestinationHash(dest) { - if (typeof dest === 'string') { - return this.getAnchorUrl('#' + escape(dest)); + if (typeof dest === "string") { + return this.getAnchorUrl("#" + escape(dest)); } if (Array.isArray(dest)) { - let str = JSON.stringify(dest); - return this.getAnchorUrl('#' + escape(str)); + const str = JSON.stringify(dest); + return this.getAnchorUrl("#" + escape(str)); } - return this.getAnchorUrl(''); + return this.getAnchorUrl(""); } getAnchorUrl(anchor) { - return (this.baseUrl || '') + anchor; + return (this.baseUrl || "") + anchor; } setHash(hash) { let pageNumber, dest; - if (hash.includes('=')) { - let params = (0, _ui_utils.parseQueryString)(hash); + if (hash.includes("=")) { + const params = (0, _ui_utils.parseQueryString)(hash); - if ('search' in params) { - this.eventBus.dispatch('findfromurlhash', { + if ("search" in params) { + this.eventBus.dispatch("findfromurlhash", { source: this, - query: params['search'].replace(/"/g, ''), - phraseSearch: params['phrase'] === 'true' + query: params["search"].replace(/"/g, ""), + phraseSearch: params["phrase"] === "true" }); } - if ('nameddest' in params) { + if ("nameddest" in params) { this.navigateTo(params.nameddest); return; } - if ('page' in params) { + if ("page" in params) { pageNumber = params.page | 0 || 1; } - if ('zoom' in params) { - let zoomArgs = params.zoom.split(','); - let zoomArg = zoomArgs[0]; - let zoomArgNumber = parseFloat(zoomArg); + if ("zoom" in params) { + const zoomArgs = params.zoom.split(","); + const zoomArg = zoomArgs[0]; + const zoomArgNumber = parseFloat(zoomArg); - if (!zoomArg.includes('Fit')) { + if (!zoomArg.includes("Fit")) { dest = [null, { - name: 'XYZ' + name: "XYZ" }, zoomArgs.length > 1 ? zoomArgs[1] | 0 : null, zoomArgs.length > 2 ? zoomArgs[2] | 0 : null, zoomArgNumber ? zoomArgNumber / 100 : zoomArg]; } else { - if (zoomArg === 'Fit' || zoomArg === 'FitB') { + if (zoomArg === "Fit" || zoomArg === "FitB") { dest = [null, { name: zoomArg }]; - } else if (zoomArg === 'FitH' || zoomArg === 'FitBH' || zoomArg === 'FitV' || zoomArg === 'FitBV') { + } else if (zoomArg === "FitH" || zoomArg === "FitBH" || zoomArg === "FitV" || zoomArg === "FitBV") { dest = [null, { name: zoomArg }, zoomArgs.length > 1 ? zoomArgs[1] | 0 : null]; - } else if (zoomArg === 'FitR') { + } else if (zoomArg === "FitR") { if (zoomArgs.length !== 5) { console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'); } else { @@ -6585,7 +6642,7 @@ class PDFLinkService { }, zoomArgs[1] | 0, zoomArgs[2] | 0, zoomArgs[3] | 0, zoomArgs[4] | 0]; } } else { - console.error(`PDFLinkService.setHash: "${zoomArg}" is not ` + 'a valid zoom value.'); + console.error(`PDFLinkService.setHash: "${zoomArg}" is not ` + "a valid zoom value."); } } } @@ -6600,8 +6657,8 @@ class PDFLinkService { this.page = pageNumber; } - if ('pagemode' in params) { - this.eventBus.dispatch('pagemode', { + if ("pagemode" in params) { + this.eventBus.dispatch("pagemode", { source: this, mode: params.pagemode }); @@ -6617,50 +6674,50 @@ class PDFLinkService { } } catch (ex) {} - if (typeof dest === 'string' || isValidExplicitDestination(dest)) { + if (typeof dest === "string" || isValidExplicitDestination(dest)) { this.navigateTo(dest); return; } - console.error(`PDFLinkService.setHash: "${unescape(hash)}" is not ` + 'a valid destination.'); + console.error(`PDFLinkService.setHash: "${unescape(hash)}" is not ` + "a valid destination."); } } executeNamedAction(action) { switch (action) { - case 'GoBack': + case "GoBack": if (this.pdfHistory) { this.pdfHistory.back(); } break; - case 'GoForward': + case "GoForward": if (this.pdfHistory) { this.pdfHistory.forward(); } break; - case 'NextPage': + case "NextPage": if (this.page < this.pagesCount) { this.page++; } break; - case 'PrevPage': + case "PrevPage": if (this.page > 1) { this.page--; } break; - case 'LastPage': + case "LastPage": this.page = this.pagesCount; break; - case 'FirstPage': + case "FirstPage": this.page = 1; break; @@ -6668,7 +6725,7 @@ class PDFLinkService { break; } - this.eventBus.dispatch('namedaction', { + this.eventBus.dispatch("namedaction", { source: this, action }); @@ -6701,48 +6758,49 @@ function isValidExplicitDestination(dest) { return false; } - let destLength = dest.length, - allowNull = true; + const destLength = dest.length; if (destLength < 2) { return false; } - let page = dest[0]; + const page = dest[0]; - if (!(typeof page === 'object' && Number.isInteger(page.num) && Number.isInteger(page.gen)) && !(Number.isInteger(page) && page >= 0)) { + if (!(typeof page === "object" && Number.isInteger(page.num) && Number.isInteger(page.gen)) && !(Number.isInteger(page) && page >= 0)) { return false; } - let zoom = dest[1]; + const zoom = dest[1]; - if (!(typeof zoom === 'object' && typeof zoom.name === 'string')) { + if (!(typeof zoom === "object" && typeof zoom.name === "string")) { return false; } + let allowNull = true; + switch (zoom.name) { - case 'XYZ': + case "XYZ": if (destLength !== 5) { return false; } break; - case 'Fit': - case 'FitB': + case "Fit": + case "FitB": return destLength === 2; - case 'FitH': - case 'FitBH': - case 'FitV': - case 'FitBV': + case "FitH": + case "FitBH": + case "FitV": + case "FitBV": if (destLength !== 3) { return false; } break; - case 'FitR': + case "FitR": if (destLength !== 6) { return false; } @@ -6755,9 +6813,9 @@ function isValidExplicitDestination(dest) { } for (let i = 2; i < destLength; i++) { - let param = dest[i]; + const param = dest[i]; - if (!(typeof param === 'number' || allowNull && param === null)) { + if (!(typeof param === "number" || allowNull && param === null)) { return false; } } @@ -6791,11 +6849,11 @@ class SimpleLinkService { navigateTo(dest) {} getDestinationHash(dest) { - return '#'; + return "#"; } getAnchorUrl(hash) { - return '#'; + return "#"; } setHash(hash) {} @@ -6826,7 +6884,7 @@ exports.PDFOutlineViewer = void 0; var _pdfjsLib = __webpack_require__(4); -const DEFAULT_TITLE = '\u2013'; +const DEFAULT_TITLE = "\u2013"; class PDFOutlineViewer { constructor({ @@ -6838,18 +6896,18 @@ class PDFOutlineViewer { this.linkService = linkService; this.eventBus = eventBus; this.reset(); - eventBus.on('toggleoutlinetree', this.toggleOutlineTree.bind(this)); + eventBus.on("toggleoutlinetree", this.toggleOutlineTree.bind(this)); } reset() { this.outline = null; this.lastToggleIsShow = true; - this.container.textContent = ''; - this.container.classList.remove('outlineWithDeepNesting'); + this.container.textContent = ""; + this.container.classList.remove("outlineWithDeepNesting"); } _dispatchEvent(outlineCount) { - this.eventBus.dispatch('outlineloaded', { + this.eventBus.dispatch("outlineloaded", { source: this, outlineCount }); @@ -6860,7 +6918,7 @@ class PDFOutlineViewer { newWindow, dest }) { - let { + const { linkService } = this; @@ -6889,18 +6947,18 @@ class PDFOutlineViewer { bold, italic }) { - let styleStr = ''; + let styleStr = ""; if (bold) { - styleStr += 'font-weight: bold;'; + styleStr += "font-weight: bold;"; } if (italic) { - styleStr += 'font-style: italic;'; + styleStr += "font-style: italic;"; } if (styleStr) { - element.setAttribute('style', styleStr); + element.setAttribute("style", styleStr); } } @@ -6908,19 +6966,19 @@ class PDFOutlineViewer { count, items }) { - let toggler = document.createElement('div'); - toggler.className = 'outlineItemToggler'; + const toggler = document.createElement("div"); + toggler.className = "outlineItemToggler"; if (count < 0 && Math.abs(count) === items.length) { - toggler.classList.add('outlineItemsHidden'); + toggler.classList.add("outlineItemsHidden"); } toggler.onclick = evt => { evt.stopPropagation(); - toggler.classList.toggle('outlineItemsHidden'); + toggler.classList.toggle("outlineItemsHidden"); if (evt.shiftKey) { - let shouldShowAll = !toggler.classList.contains('outlineItemsHidden'); + const shouldShowAll = !toggler.classList.contains("outlineItemsHidden"); this._toggleOutlineItem(div, shouldShowAll); } @@ -6932,8 +6990,8 @@ class PDFOutlineViewer { _toggleOutlineItem(root, show = false) { this.lastToggleIsShow = show; - for (const toggler of root.querySelectorAll('.outlineItemToggler')) { - toggler.classList.toggle('outlineItemsHidden', !show); + for (const toggler of root.querySelectorAll(".outlineItemToggler")) { + toggler.classList.toggle("outlineItemsHidden", !show); } } @@ -6962,8 +7020,8 @@ class PDFOutlineViewer { return; } - let fragment = document.createDocumentFragment(); - let queue = [{ + const fragment = document.createDocumentFragment(); + const queue = [{ parent: fragment, items: this.outline }]; @@ -6973,9 +7031,9 @@ class PDFOutlineViewer { const levelData = queue.shift(); for (const item of levelData.items) { - let div = document.createElement('div'); - div.className = 'outlineItem'; - let element = document.createElement('a'); + const div = document.createElement("div"); + div.className = "outlineItem"; + const element = document.createElement("a"); this._bindLink(element, item); @@ -6989,8 +7047,8 @@ class PDFOutlineViewer { this._addToggleButton(div, item); - let itemsDiv = document.createElement('div'); - itemsDiv.className = 'outlineItems'; + const itemsDiv = document.createElement("div"); + itemsDiv.className = "outlineItems"; div.appendChild(itemsDiv); queue.push({ parent: itemsDiv, @@ -7004,8 +7062,8 @@ class PDFOutlineViewer { } if (hasAnyNesting) { - this.container.classList.add('outlineWithDeepNesting'); - this.lastToggleIsShow = fragment.querySelectorAll('.outlineItemsHidden').length === 0; + this.container.classList.add("outlineWithDeepNesting"); + this.lastToggleIsShow = fragment.querySelectorAll(".outlineItemsHidden").length === 0; } this.container.appendChild(fragment); @@ -7033,8 +7091,8 @@ var _ui_utils = __webpack_require__(2); const DELAY_BEFORE_RESETTING_SWITCH_IN_PROGRESS = 1500; const DELAY_BEFORE_HIDING_CONTROLS = 3000; -const ACTIVE_SELECTOR = 'pdfPresentationMode'; -const CONTROLS_SELECTOR = 'pdfPresentationModeControls'; +const ACTIVE_SELECTOR = "pdfPresentationMode"; +const CONTROLS_SELECTOR = "pdfPresentationModeControls"; const MOUSE_SCROLL_COOLDOWN_TIME = 50; const PAGE_SWITCH_THRESHOLD = 0.1; const SWIPE_MIN_DISTANCE_THRESHOLD = 50; @@ -7058,27 +7116,27 @@ class PDFPresentationMode { this.touchSwipeState = null; if (contextMenuItems) { - contextMenuItems.contextFirstPage.addEventListener('click', () => { + contextMenuItems.contextFirstPage.addEventListener("click", () => { this.contextMenuOpen = false; - this.eventBus.dispatch('firstpage', { + this.eventBus.dispatch("firstpage", { source: this }); }); - contextMenuItems.contextLastPage.addEventListener('click', () => { + contextMenuItems.contextLastPage.addEventListener("click", () => { this.contextMenuOpen = false; - this.eventBus.dispatch('lastpage', { + this.eventBus.dispatch("lastpage", { source: this }); }); - contextMenuItems.contextPageRotateCw.addEventListener('click', () => { + contextMenuItems.contextPageRotateCw.addEventListener("click", () => { this.contextMenuOpen = false; - this.eventBus.dispatch('rotatecw', { + this.eventBus.dispatch("rotatecw", { source: this }); }); - contextMenuItems.contextPageRotateCcw.addEventListener('click', () => { + contextMenuItems.contextPageRotateCcw.addEventListener("click", () => { this.contextMenuOpen = false; - this.eventBus.dispatch('rotateccw', { + this.eventBus.dispatch("rotateccw", { source: this }); }); @@ -7121,9 +7179,9 @@ class PDFPresentationMode { } evt.preventDefault(); - let delta = (0, _ui_utils.normalizeWheelEventDelta)(evt); - let currentTime = new Date().getTime(); - let storedTime = this.mouseScrollTimeStamp; + const delta = (0, _ui_utils.normalizeWheelEventDelta)(evt); + const currentTime = new Date().getTime(); + const storedTime = this.mouseScrollTimeStamp; if (currentTime > storedTime && currentTime - storedTime < MOUSE_SCROLL_COOLDOWN_TIME) { return; @@ -7136,11 +7194,11 @@ class PDFPresentationMode { this.mouseScrollDelta += delta; if (Math.abs(this.mouseScrollDelta) >= PAGE_SWITCH_THRESHOLD) { - let totalDelta = this.mouseScrollDelta; + const totalDelta = this.mouseScrollDelta; this._resetMouseScrollState(); - let success = totalDelta > 0 ? this._goToPreviousPage() : this._goToNextPage(); + const success = totalDelta > 0 ? this._goToPreviousPage() : this._goToNextPage(); if (success) { this.mouseScrollTimeStamp = currentTime; @@ -7153,7 +7211,7 @@ class PDFPresentationMode { } _goToPreviousPage() { - let page = this.pdfViewer.currentPageNumber; + const page = this.pdfViewer.currentPageNumber; if (page <= 1) { return false; @@ -7164,7 +7222,7 @@ class PDFPresentationMode { } _goToNextPage() { - let page = this.pdfViewer.currentPageNumber; + const page = this.pdfViewer.currentPageNumber; if (page >= this.pdfViewer.pagesCount) { return false; @@ -7175,7 +7233,7 @@ class PDFPresentationMode { } _notifyStateChange() { - this.eventBus.dispatch('presentationmodechanged', { + this.eventBus.dispatch("presentationmodechanged", { source: this, active: this.active, switchInProgress: !!this.switchInProgress @@ -7213,7 +7271,7 @@ class PDFPresentationMode { this.container.classList.add(ACTIVE_SELECTOR); setTimeout(() => { this.pdfViewer.currentPageNumber = this.args.page; - this.pdfViewer.currentScaleValue = 'page-fit'; + this.pdfViewer.currentScaleValue = "page-fit"; }, 0); this._addWindowListeners(); @@ -7221,12 +7279,12 @@ class PDFPresentationMode { this._showControls(); this.contextMenuOpen = false; - this.container.setAttribute('contextmenu', 'viewerContextMenu'); + this.container.setAttribute("contextmenu", "viewerContextMenu"); window.getSelection().removeAllRanges(); } _exit() { - let page = this.pdfViewer.currentPageNumber; + const page = this.pdfViewer.currentPageNumber; this.container.classList.remove(ACTIVE_SELECTOR); setTimeout(() => { this.active = false; @@ -7246,7 +7304,7 @@ class PDFPresentationMode { this._resetMouseScrollState(); - this.container.removeAttribute('contextmenu'); + this.container.removeAttribute("contextmenu"); this.contextMenuOpen = false; } @@ -7258,7 +7316,7 @@ class PDFPresentationMode { } if (evt.button === 0) { - let isInternalLink = evt.target.href && evt.target.classList.contains('internalLink'); + const isInternalLink = evt.target.href && evt.target.classList.contains("internalLink"); if (!isInternalLink) { evt.preventDefault(); @@ -7315,7 +7373,7 @@ class PDFPresentationMode { } switch (evt.type) { - case 'touchstart': + case "touchstart": this.touchSwipeState = { startX: evt.touches[0].pageX, startY: evt.touches[0].pageY, @@ -7324,7 +7382,7 @@ class PDFPresentationMode { }; break; - case 'touchmove': + case "touchmove": if (this.touchSwipeState === null) { return; } @@ -7334,15 +7392,15 @@ class PDFPresentationMode { evt.preventDefault(); break; - case 'touchend': + case "touchend": if (this.touchSwipeState === null) { return; } let delta = 0; - let dx = this.touchSwipeState.endX - this.touchSwipeState.startX; - let dy = this.touchSwipeState.endY - this.touchSwipeState.startY; - let absAngle = Math.abs(Math.atan2(dy, dx)); + const dx = this.touchSwipeState.endX - this.touchSwipeState.startX; + const dy = this.touchSwipeState.endY - this.touchSwipeState.startY; + const absAngle = Math.abs(Math.atan2(dy, dx)); if (Math.abs(dx) > SWIPE_MIN_DISTANCE_THRESHOLD && (absAngle <= SWIPE_ANGLE_THRESHOLD || absAngle >= Math.PI - SWIPE_ANGLE_THRESHOLD)) { delta = dx; @@ -7367,25 +7425,25 @@ class PDFPresentationMode { this.resetMouseScrollStateBind = this._resetMouseScrollState.bind(this); this.contextMenuBind = this._contextMenu.bind(this); this.touchSwipeBind = this._touchSwipe.bind(this); - window.addEventListener('mousemove', this.showControlsBind); - window.addEventListener('mousedown', this.mouseDownBind); - window.addEventListener('wheel', this.mouseWheelBind); - window.addEventListener('keydown', this.resetMouseScrollStateBind); - window.addEventListener('contextmenu', this.contextMenuBind); - window.addEventListener('touchstart', this.touchSwipeBind); - window.addEventListener('touchmove', this.touchSwipeBind); - window.addEventListener('touchend', this.touchSwipeBind); + window.addEventListener("mousemove", this.showControlsBind); + window.addEventListener("mousedown", this.mouseDownBind); + window.addEventListener("wheel", this.mouseWheelBind); + window.addEventListener("keydown", this.resetMouseScrollStateBind); + window.addEventListener("contextmenu", this.contextMenuBind); + window.addEventListener("touchstart", this.touchSwipeBind); + window.addEventListener("touchmove", this.touchSwipeBind); + window.addEventListener("touchend", this.touchSwipeBind); } _removeWindowListeners() { - window.removeEventListener('mousemove', this.showControlsBind); - window.removeEventListener('mousedown', this.mouseDownBind); - window.removeEventListener('wheel', this.mouseWheelBind); - window.removeEventListener('keydown', this.resetMouseScrollStateBind); - window.removeEventListener('contextmenu', this.contextMenuBind); - window.removeEventListener('touchstart', this.touchSwipeBind); - window.removeEventListener('touchmove', this.touchSwipeBind); - window.removeEventListener('touchend', this.touchSwipeBind); + window.removeEventListener("mousemove", this.showControlsBind); + window.removeEventListener("mousedown", this.mouseDownBind); + window.removeEventListener("wheel", this.mouseWheelBind); + window.removeEventListener("keydown", this.resetMouseScrollStateBind); + window.removeEventListener("contextmenu", this.contextMenuBind); + window.removeEventListener("touchstart", this.touchSwipeBind); + window.removeEventListener("touchmove", this.touchSwipeBind); + window.removeEventListener("touchend", this.touchSwipeBind); delete this.showControlsBind; delete this.mouseDownBind; delete this.mouseWheelBind; @@ -7404,13 +7462,13 @@ class PDFPresentationMode { _addFullscreenChangeListeners() { this.fullscreenChangeBind = this._fullscreenChange.bind(this); - window.addEventListener('fullscreenchange', this.fullscreenChangeBind); - window.addEventListener('mozfullscreenchange', this.fullscreenChangeBind); + window.addEventListener("fullscreenchange", this.fullscreenChangeBind); + window.addEventListener("mozfullscreenchange", this.fullscreenChangeBind); } _removeFullscreenChangeListeners() { - window.removeEventListener('fullscreenchange', this.fullscreenChangeBind); - window.removeEventListener('mozfullscreenchange', this.fullscreenChangeBind); + window.removeEventListener("fullscreenchange", this.fullscreenChangeBind); + window.removeEventListener("mozfullscreenchange", this.fullscreenChangeBind); delete this.fullscreenChangeBind; } @@ -7432,9 +7490,9 @@ exports.PDFSidebarResizer = void 0; var _ui_utils = __webpack_require__(2); -const SIDEBAR_WIDTH_VAR = '--sidebar-width'; +const SIDEBAR_WIDTH_VAR = "--sidebar-width"; const SIDEBAR_MIN_WIDTH = 200; -const SIDEBAR_RESIZING_CLASS = 'sidebarResizing'; +const SIDEBAR_RESIZING_CLASS = "sidebarResizing"; class PDFSidebarResizer { constructor(options, eventBus, l10n = _ui_utils.NullL10n) { @@ -7450,9 +7508,9 @@ class PDFSidebarResizer { this.eventBus = eventBus; this.l10n = l10n; this.enabled = true; - this.resizer.classList.remove('hidden'); + this.resizer.classList.remove("hidden"); this.l10n.getDirection().then(dir => { - this.isRTL = dir === 'rtl'; + this.isRTL = dir === "rtl"; }); this._addEventListeners(); @@ -7494,12 +7552,12 @@ class PDFSidebarResizer { _mouseUp(evt) { this.outerContainer.classList.remove(SIDEBAR_RESIZING_CLASS); - this.eventBus.dispatch('resize', { + this.eventBus.dispatch("resize", { source: this }); - let _boundEvents = this._boundEvents; - window.removeEventListener('mousemove', _boundEvents.mouseMove); - window.removeEventListener('mouseup', _boundEvents.mouseUp); + const _boundEvents = this._boundEvents; + window.removeEventListener("mousemove", _boundEvents.mouseMove); + window.removeEventListener("mouseup", _boundEvents.mouseUp); } _addEventListeners() { @@ -7507,22 +7565,22 @@ class PDFSidebarResizer { return; } - let _boundEvents = this._boundEvents; + const _boundEvents = this._boundEvents; _boundEvents.mouseMove = this._mouseMove.bind(this); _boundEvents.mouseUp = this._mouseUp.bind(this); - this.resizer.addEventListener('mousedown', evt => { + this.resizer.addEventListener("mousedown", evt => { if (evt.button !== 0) { return; } this.outerContainer.classList.add(SIDEBAR_RESIZING_CLASS); - window.addEventListener('mousemove', _boundEvents.mouseMove); - window.addEventListener('mouseup', _boundEvents.mouseUp); + window.addEventListener("mousemove", _boundEvents.mouseMove); + window.addEventListener("mouseup", _boundEvents.mouseUp); }); - this.eventBus.on('sidebarviewchanged', evt => { + this.eventBus.on("sidebarviewchanged", evt => { this.sidebarOpen = !!(evt && evt.view); }); - this.eventBus.on('resize', evt => { + this.eventBus.on("resize", evt => { if (!evt || evt.source !== window) { return; } @@ -7541,13 +7599,13 @@ class PDFSidebarResizer { this.outerContainer.classList.add(SIDEBAR_RESIZING_CLASS); - let updated = this._updateWidth(this._width); + const updated = this._updateWidth(this._width); Promise.resolve().then(() => { this.outerContainer.classList.remove(SIDEBAR_RESIZING_CLASS); if (updated) { - this.eventBus.dispatch('resize', { + this.eventBus.dispatch("resize", { source: this }); } @@ -7576,7 +7634,7 @@ var _ui_utils = __webpack_require__(2); var _pdf_thumbnail_view = __webpack_require__(23); const THUMBNAIL_SCROLL_MARGIN = -19; -const THUMBNAIL_SELECTED_CLASS = 'selected'; +const THUMBNAIL_SELECTED_CLASS = "selected"; class PDFThumbnailViewer { constructor({ @@ -7624,13 +7682,13 @@ class PDFThumbnailViewer { thumbnailView.div.classList.add(THUMBNAIL_SELECTED_CLASS); } - let visibleThumbs = this._getVisibleThumbs(); + const visibleThumbs = this._getVisibleThumbs(); - let numVisibleThumbs = visibleThumbs.views.length; + const numVisibleThumbs = visibleThumbs.views.length; if (numVisibleThumbs > 0) { - let first = visibleThumbs.first.id; - let last = numVisibleThumbs > 1 ? visibleThumbs.last.id : first; + const first = visibleThumbs.first.id; + const last = numVisibleThumbs > 1 ? visibleThumbs.last.id : first; let shouldScroll = false; if (pageNumber <= first || pageNumber >= last) { @@ -7662,7 +7720,7 @@ class PDFThumbnailViewer { set pagesRotation(rotation) { if (!(0, _ui_utils.isValidRotation)(rotation)) { - throw new Error('Invalid thumbnails rotation angle.'); + throw new Error("Invalid thumbnails rotation angle."); } if (!this.pdfDocument) { @@ -7690,7 +7748,7 @@ class PDFThumbnailViewer { this._pageLabels = null; this._pagesRotation = 0; this._pagesRequests = new WeakMap(); - this.container.textContent = ''; + this.container.textContent = ""; } setDocument(pdfDocument) { @@ -7707,13 +7765,13 @@ class PDFThumbnailViewer { } pdfDocument.getPage(1).then(firstPdfPage => { - let pagesCount = pdfDocument.numPages; + const pagesCount = pdfDocument.numPages; const viewport = firstPdfPage.getViewport({ scale: 1 }); for (let pageNum = 1; pageNum <= pagesCount; ++pageNum) { - let thumbnail = new _pdf_thumbnail_view.PDFThumbnailView({ + const thumbnail = new _pdf_thumbnail_view.PDFThumbnailView({ container: this.container, id: pageNum, defaultViewport: viewport.clone(), @@ -7735,7 +7793,7 @@ class PDFThumbnailViewer { const thumbnailView = this._thumbnails[this._currentPageNumber - 1]; thumbnailView.div.classList.add(THUMBNAIL_SELECTED_CLASS); }).catch(reason => { - console.error('Unable to initialize thumbnail viewer', reason); + console.error("Unable to initialize thumbnail viewer", reason); }); } @@ -7756,13 +7814,13 @@ class PDFThumbnailViewer { this._pageLabels = null; } else if (!(Array.isArray(labels) && this.pdfDocument.numPages === labels.length)) { this._pageLabels = null; - console.error('PDFThumbnailViewer_setPageLabels: Invalid page labels.'); + console.error("PDFThumbnailViewer_setPageLabels: Invalid page labels."); } else { this._pageLabels = labels; } for (let i = 0, ii = this._thumbnails.length; i < ii; i++) { - let label = this._pageLabels && this._pageLabels[i]; + const label = this._pageLabels && this._pageLabels[i]; this._thumbnails[i].setPageLabel(label); } @@ -7786,7 +7844,7 @@ class PDFThumbnailViewer { return pdfPage; }).catch(reason => { - console.error('Unable to get page for thumb view', reason); + console.error("Unable to get page for thumb view", reason); this._pagesRequests.delete(thumbView); }); @@ -7797,9 +7855,9 @@ class PDFThumbnailViewer { } forceRendering() { - let visibleThumbs = this._getVisibleThumbs(); + const visibleThumbs = this._getVisibleThumbs(); - let thumbView = this.renderingQueue.getHighestPriority(visibleThumbs, this._thumbnails, this.scroll.down); + const thumbView = this.renderingQueue.getHighestPriority(visibleThumbs, this._thumbnails, this.scroll.down); if (thumbView) { this._ensurePdfPageLoaded(thumbView).then(() => { @@ -7845,25 +7903,25 @@ const TempImageFactory = function TempImageFactoryClosure() { let tempCanvas = tempCanvasCache; if (!tempCanvas) { - tempCanvas = document.createElement('canvas'); + tempCanvas = document.createElement("canvas"); tempCanvasCache = tempCanvas; } tempCanvas.width = width; tempCanvas.height = height; tempCanvas.mozOpaque = true; - let ctx = tempCanvas.getContext('2d', { + const ctx = tempCanvas.getContext("2d", { alpha: false }); ctx.save(); - ctx.fillStyle = 'rgb(255, 255, 255)'; + ctx.fillStyle = "rgb(255, 255, 255)"; ctx.fillRect(0, 0, width, height); ctx.restore(); return tempCanvas; }, destroyCanvas() { - let tempCanvas = tempCanvasCache; + const tempCanvas = tempCanvasCache; if (tempCanvas) { tempCanvas.width = 0; @@ -7887,7 +7945,7 @@ class PDFThumbnailView { l10n = _ui_utils.NullL10n }) { this.id = id; - this.renderingId = 'thumbnail' + id; + this.renderingId = "thumbnail" + id; this.pageLabel = null; this.pdfPage = null; this.rotation = 0; @@ -7906,11 +7964,11 @@ class PDFThumbnailView { this.canvasHeight = this.canvasWidth / this.pageRatio | 0; this.scale = this.canvasWidth / this.pageWidth; this.l10n = l10n; - let anchor = document.createElement('a'); - anchor.href = linkService.getAnchorUrl('#page=' + id); - this.l10n.get('thumb_page_title', { + const anchor = document.createElement("a"); + anchor.href = linkService.getAnchorUrl("#page=" + id); + this.l10n.get("thumb_page_title", { page: id - }, 'Page {{page}}').then(msg => { + }, "Page {{page}}").then(msg => { anchor.title = msg; }); @@ -7920,15 +7978,15 @@ class PDFThumbnailView { }; this.anchor = anchor; - let div = document.createElement('div'); - div.className = 'thumbnail'; - div.setAttribute('data-page-number', this.id); + const div = document.createElement("div"); + div.className = "thumbnail"; + div.setAttribute("data-page-number", this.id); this.div = div; - let ring = document.createElement('div'); - ring.className = 'thumbnailSelectionRing'; - let borderAdjustment = 2 * THUMBNAIL_CANVAS_BORDER_WIDTH; - ring.style.width = this.canvasWidth + borderAdjustment + 'px'; - ring.style.height = this.canvasHeight + borderAdjustment + 'px'; + const ring = document.createElement("div"); + ring.className = "thumbnailSelectionRing"; + const borderAdjustment = 2 * THUMBNAIL_CANVAS_BORDER_WIDTH; + ring.style.width = this.canvasWidth + borderAdjustment + "px"; + ring.style.height = this.canvasHeight + borderAdjustment + "px"; this.ring = ring; div.appendChild(ring); anchor.appendChild(div); @@ -7938,7 +7996,7 @@ class PDFThumbnailView { setPdfPage(pdfPage) { this.pdfPage = pdfPage; this.pdfPageRotate = pdfPage.rotate; - let totalRotation = (this.rotation + this.pdfPageRotate) % 360; + const totalRotation = (this.rotation + this.pdfPageRotate) % 360; this.viewport = pdfPage.getViewport({ scale: 1, rotation: totalRotation @@ -7954,17 +8012,17 @@ class PDFThumbnailView { this.pageRatio = this.pageWidth / this.pageHeight; this.canvasHeight = this.canvasWidth / this.pageRatio | 0; this.scale = this.canvasWidth / this.pageWidth; - this.div.removeAttribute('data-loaded'); - let ring = this.ring; - let childNodes = ring.childNodes; + this.div.removeAttribute("data-loaded"); + const ring = this.ring; + const childNodes = ring.childNodes; for (let i = childNodes.length - 1; i >= 0; i--) { ring.removeChild(childNodes[i]); } - let borderAdjustment = 2 * THUMBNAIL_CANVAS_BORDER_WIDTH; - ring.style.width = this.canvasWidth + borderAdjustment + 'px'; - ring.style.height = this.canvasHeight + borderAdjustment + 'px'; + const borderAdjustment = 2 * THUMBNAIL_CANVAS_BORDER_WIDTH; + ring.style.width = this.canvasWidth + borderAdjustment + "px"; + ring.style.height = this.canvasHeight + borderAdjustment + "px"; if (this.canvas) { this.canvas.width = 0; @@ -7973,17 +8031,17 @@ class PDFThumbnailView { } if (this.image) { - this.image.removeAttribute('src'); + this.image.removeAttribute("src"); delete this.image; } } update(rotation) { - if (typeof rotation !== 'undefined') { + if (typeof rotation !== "undefined") { this.rotation = rotation; } - let totalRotation = (this.rotation + this.pdfPageRotate) % 360; + const totalRotation = (this.rotation + this.pdfPageRotate) % 360; this.viewport = this.viewport.clone({ scale: 1, rotation: totalRotation @@ -8001,17 +8059,17 @@ class PDFThumbnailView { } _getPageDrawContext(noCtxScale = false) { - let canvas = document.createElement('canvas'); + const canvas = document.createElement("canvas"); this.canvas = canvas; canvas.mozOpaque = true; - let ctx = canvas.getContext('2d', { + const ctx = canvas.getContext("2d", { alpha: false }); - let outputScale = (0, _ui_utils.getOutputScale)(ctx); + const outputScale = (0, _ui_utils.getOutputScale)(ctx); canvas.width = this.canvasWidth * outputScale.sx | 0; canvas.height = this.canvasHeight * outputScale.sy | 0; - canvas.style.width = this.canvasWidth + 'px'; - canvas.style.height = this.canvasHeight + 'px'; + canvas.style.width = this.canvasWidth + "px"; + canvas.style.height = this.canvasHeight + "px"; if (!noCtxScale && outputScale.scaled) { ctx.scale(outputScale.sx, outputScale.sy); @@ -8029,35 +8087,35 @@ class PDFThumbnailView { return; } - let id = this.renderingId; - let className = 'thumbnailImage'; + const id = this.renderingId; + const className = "thumbnailImage"; if (this.disableCanvasToImageConversion) { this.canvas.id = id; this.canvas.className = className; - this.l10n.get('thumb_page_canvas', { + this.l10n.get("thumb_page_canvas", { page: this.pageId - }, 'Thumbnail of Page {{page}}').then(msg => { - this.canvas.setAttribute('aria-label', msg); + }, "Thumbnail of Page {{page}}").then(msg => { + this.canvas.setAttribute("aria-label", msg); }); - this.div.setAttribute('data-loaded', true); + this.div.setAttribute("data-loaded", true); this.ring.appendChild(this.canvas); return; } - let image = document.createElement('img'); + const image = document.createElement("img"); image.id = id; image.className = className; - this.l10n.get('thumb_page_canvas', { + this.l10n.get("thumb_page_canvas", { page: this.pageId - }, 'Thumbnail of Page {{page}}').then(msg => { - image.setAttribute('aria-label', msg); + }, "Thumbnail of Page {{page}}").then(msg => { + image.setAttribute("aria-label", msg); }); - image.style.width = this.canvasWidth + 'px'; - image.style.height = this.canvasHeight + 'px'; + image.style.width = this.canvasWidth + "px"; + image.style.height = this.canvasHeight + "px"; image.src = this.canvas.toDataURL(); this.image = image; - this.div.setAttribute('data-loaded', true); + this.div.setAttribute("data-loaded", true); this.ring.appendChild(image); this.canvas.width = 0; this.canvas.height = 0; @@ -8066,14 +8124,14 @@ class PDFThumbnailView { draw() { if (this.renderingState !== _pdf_rendering_queue.RenderingStates.INITIAL) { - console.error('Must be in new state before drawing'); + console.error("Must be in new state before drawing"); return Promise.resolve(undefined); } this.renderingState = _pdf_rendering_queue.RenderingStates.RUNNING; - let renderCapability = (0, _pdfjsLib.createPromiseCapability)(); + const renderCapability = (0, _pdfjsLib.createPromiseCapability)(); - let finishRenderTask = error => { + const finishRenderTask = error => { if (renderTask === this.renderTask) { this.renderTask = null; } @@ -8094,13 +8152,13 @@ class PDFThumbnailView { } }; - let ctx = this._getPageDrawContext(); + const ctx = this._getPageDrawContext(); - let drawViewport = this.viewport.clone({ + const drawViewport = this.viewport.clone({ scale: this.scale }); - let renderContinueCallback = cont => { + const renderContinueCallback = cont => { if (!this.renderingQueue.isHighestPriority(this)) { this.renderingState = _pdf_rendering_queue.RenderingStates.PAUSED; @@ -8115,11 +8173,11 @@ class PDFThumbnailView { cont(); }; - let renderContext = { + const renderContext = { canvasContext: ctx, viewport: drawViewport }; - let renderTask = this.renderTask = this.pdfPage.render(renderContext); + const renderTask = this.renderTask = this.pdfPage.render(renderContext); renderTask.onContinue = renderContinueCallback; renderTask.promise.then(function () { finishRenderTask(null); @@ -8134,7 +8192,7 @@ class PDFThumbnailView { return; } - let img = pageView.canvas; + const img = pageView.canvas; if (!img) { return; @@ -8146,9 +8204,9 @@ class PDFThumbnailView { this.renderingState = _pdf_rendering_queue.RenderingStates.FINISHED; - let ctx = this._getPageDrawContext(true); + const ctx = this._getPageDrawContext(true); - let canvas = ctx.canvas; + const canvas = ctx.canvas; if (img.width <= 2 * canvas.width) { ctx.drawImage(img, 0, 0, img.width, img.height, 0, 0, canvas.width, canvas.height); @@ -8160,8 +8218,8 @@ class PDFThumbnailView { let reducedWidth = canvas.width << MAX_NUM_SCALING_STEPS; let reducedHeight = canvas.height << MAX_NUM_SCALING_STEPS; - let reducedImage = TempImageFactory.getCanvas(reducedWidth, reducedHeight); - let reducedImageCtx = reducedImage.getContext('2d'); + const reducedImage = TempImageFactory.getCanvas(reducedWidth, reducedHeight); + const reducedImageCtx = reducedImage.getContext("2d"); while (reducedWidth > img.width || reducedHeight > img.height) { reducedWidth >>= 1; @@ -8186,10 +8244,10 @@ class PDFThumbnailView { } setPageLabel(label) { - this.pageLabel = typeof label === 'string' ? label : null; - this.l10n.get('thumb_page_title', { + this.pageLabel = typeof label === "string" ? label : null; + this.l10n.get("thumb_page_title", { page: this.pageId - }, 'Page {{page}}').then(msg => { + }, "Page {{page}}").then(msg => { this.anchor.title = msg; }); @@ -8197,13 +8255,13 @@ class PDFThumbnailView { return; } - this.l10n.get('thumb_page_canvas', { + this.l10n.get("thumb_page_canvas", { page: this.pageId - }, 'Thumbnail of Page {{page}}').then(ariaLabel => { + }, "Thumbnail of Page {{page}}").then(ariaLabel => { if (this.image) { - this.image.setAttribute('aria-label', ariaLabel); + this.image.setAttribute("aria-label", ariaLabel); } else if (this.disableCanvasToImageConversion && this.canvas) { - this.canvas.setAttribute('aria-label', ariaLabel); + this.canvas.setAttribute("aria-label", ariaLabel); } }); } @@ -8234,7 +8292,7 @@ var _pdfjsLib = __webpack_require__(4); class PDFViewer extends _base_viewer.BaseViewer { get _setDocumentViewerElement() { - return (0, _pdfjsLib.shadow)(this, '_setDocumentViewerElement', this.viewer); + return (0, _pdfjsLib.shadow)(this, "_setDocumentViewerElement", this.viewer); } _scrollIntoView({ @@ -8332,10 +8390,10 @@ var _text_layer_builder = __webpack_require__(28); const DEFAULT_CACHE_SIZE = 10; function PDFPageViewBuffer(size) { - let data = []; + const data = []; this.push = function (view) { - let i = data.indexOf(view); + const i = data.indexOf(view); if (i >= 0) { data.splice(i, 1); @@ -8384,7 +8442,7 @@ function isSameScale(oldScale, newScale) { class BaseViewer { constructor(options) { if (this.constructor === BaseViewer) { - throw new Error('Cannot initialize BaseViewer.'); + throw new Error("Cannot initialize BaseViewer."); } this._name = this.constructor.name; @@ -8396,7 +8454,7 @@ class BaseViewer { this.findController = options.findController || null; this.removePageBorders = options.removePageBorders || false; this.textLayerMode = Number.isInteger(options.textLayerMode) ? options.textLayerMode : _ui_utils.TextLayerMode.ENABLE; - this.imageResourcesPath = options.imageResourcesPath || ''; + this.imageResourcesPath = options.imageResourcesPath || ""; this.renderInteractiveForms = options.renderInteractiveForms || false; this.enablePrintAutoRotate = options.enablePrintAutoRotate || false; this.renderer = options.renderer || _ui_utils.RendererType.CANVAS; @@ -8420,11 +8478,11 @@ class BaseViewer { this._resetView(); if (this.removePageBorders) { - this.viewer.classList.add('removePageBorders'); + this.viewer.classList.add("removePageBorders"); } Promise.resolve().then(() => { - this.eventBus.dispatch('baseviewerinit', { + this.eventBus.dispatch("baseviewerinit", { source: this }); }); @@ -8454,7 +8512,7 @@ class BaseViewer { set currentPageNumber(val) { if (!Number.isInteger(val)) { - throw new Error('Invalid page number.'); + throw new Error("Invalid page number."); } if (!this.pdfDocument) { @@ -8480,7 +8538,7 @@ class BaseViewer { } this._currentPageNumber = val; - this.eventBus.dispatch('pagechanging', { + this.eventBus.dispatch("pagechanging", { source: this, pageNumber: val, pageLabel: this._pageLabels && this._pageLabels[val - 1] @@ -8505,7 +8563,7 @@ class BaseViewer { let page = val | 0; if (this._pageLabels) { - let i = this._pageLabels.indexOf(val); + const i = this._pageLabels.indexOf(val); if (i >= 0) { page = i + 1; @@ -8523,7 +8581,7 @@ class BaseViewer { set currentScale(val) { if (isNaN(val)) { - throw new Error('Invalid numeric scale.'); + throw new Error("Invalid numeric scale."); } if (!this.pdfDocument) { @@ -8551,7 +8609,7 @@ class BaseViewer { set pagesRotation(rotation) { if (!(0, _ui_utils.isValidRotation)(rotation)) { - throw new Error('Invalid pages rotation angle.'); + throw new Error("Invalid pages rotation angle."); } if (!this.pdfDocument) { @@ -8563,10 +8621,10 @@ class BaseViewer { } this._pagesRotation = rotation; - let pageNumber = this._currentPageNumber; + const pageNumber = this._currentPageNumber; for (let i = 0, ii = this._pages.length; i < ii; i++) { - let pageView = this._pages[i]; + const pageView = this._pages[i]; pageView.update(pageView.scale, rotation); } @@ -8574,7 +8632,7 @@ class BaseViewer { this._setScale(this._currentScaleValue, true); } - this.eventBus.dispatch('rotationchanging', { + this.eventBus.dispatch("rotationchanging", { source: this, pagesRotation: rotation, pageNumber @@ -8586,7 +8644,7 @@ class BaseViewer { } get _setDocumentViewerElement() { - throw new Error('Not implemented: _setDocumentViewerElement'); + throw new Error("Not implemented: _setDocumentViewerElement"); } setDocument(pdfDocument) { @@ -8606,12 +8664,12 @@ class BaseViewer { return; } - let pagesCount = pdfDocument.numPages; - let pagesCapability = (0, _pdfjsLib.createPromiseCapability)(); + const pagesCount = pdfDocument.numPages; + const pagesCapability = (0, _pdfjsLib.createPromiseCapability)(); this.pagesPromise = pagesCapability.promise; pagesCapability.promise.then(() => { this._pageViewsReady = true; - this.eventBus.dispatch('pagesloaded', { + this.eventBus.dispatch("pagesloaded", { source: this, pagesCount }); @@ -8631,7 +8689,7 @@ class BaseViewer { this._buffer.push(pageView); }; - this.eventBus.on('pagerender', this._onBeforeDraw); + this.eventBus.on("pagerender", this._onBeforeDraw); this._onAfterDraw = evt => { if (evt.cssTransform || onePageRenderedCapability.settled) { @@ -8639,13 +8697,13 @@ class BaseViewer { } onePageRenderedCapability.resolve(); - this.eventBus.off('pagerendered', this._onAfterDraw); + this.eventBus.off("pagerendered", this._onAfterDraw); this._onAfterDraw = null; }; - this.eventBus.on('pagerendered', this._onAfterDraw); + this.eventBus.on("pagerendered", this._onAfterDraw); firstPagePromise.then(firstPdfPage => { - let scale = this.currentScale; + const scale = this.currentScale; const viewport = firstPdfPage.getViewport({ scale: scale * _ui_utils.CSS_UNITS }); @@ -8657,7 +8715,7 @@ class BaseViewer { textLayerFactory = this; } - let pageView = new _pdf_page_view.PDFPageView({ + const pageView = new _pdf_page_view.PDFPageView({ container: this._setDocumentViewerElement, eventBus: this.eventBus, id: pageNum, @@ -8695,7 +8753,7 @@ class BaseViewer { this.findController.setDocument(pdfDocument); } - if (pdfDocument.loadingParams['disableAutoFetch'] || pagesCount > 7500) { + if (pdfDocument.loadingParams["disableAutoFetch"] || pagesCount > 7500) { pagesCapability.resolve(); return; } @@ -8709,7 +8767,7 @@ class BaseViewer { for (let pageNum = 2; pageNum <= pagesCount; ++pageNum) { pdfDocument.getPage(pageNum).then(pdfPage => { - let pageView = this._pages[pageNum - 1]; + const pageView = this._pages[pageNum - 1]; if (!pageView.pdfPage) { pageView.setPdfPage(pdfPage); @@ -8729,7 +8787,7 @@ class BaseViewer { }); } }); - this.eventBus.dispatch('pagesinit', { + this.eventBus.dispatch("pagesinit", { source: this }); @@ -8737,7 +8795,7 @@ class BaseViewer { this.update(); } }).catch(reason => { - console.error('Unable to initialize viewer', reason); + console.error("Unable to initialize viewer", reason); }); } @@ -8756,8 +8814,8 @@ class BaseViewer { } for (let i = 0, ii = this._pages.length; i < ii; i++) { - let pageView = this._pages[i]; - let label = this._pageLabels && this._pageLabels[i]; + const pageView = this._pages[i]; + const label = this._pageLabels && this._pageLabels[i]; pageView.setPageLabel(label); } } @@ -8777,16 +8835,16 @@ class BaseViewer { this._spreadMode = _ui_utils.SpreadMode.NONE; if (this._onBeforeDraw) { - this.eventBus.off('pagerender', this._onBeforeDraw); + this.eventBus.off("pagerender", this._onBeforeDraw); this._onBeforeDraw = null; } if (this._onAfterDraw) { - this.eventBus.off('pagerendered', this._onAfterDraw); + this.eventBus.off("pagerendered", this._onAfterDraw); this._onAfterDraw = null; } - this.viewer.textContent = ''; + this.viewer.textContent = ""; this._updateScrollMode(); } @@ -8812,7 +8870,7 @@ class BaseViewer { if (isSameScale(this._currentScale, newScale)) { if (preset) { - this.eventBus.dispatch('scalechanging', { + this.eventBus.dispatch("scalechanging", { source: this, scale: newScale, presetValue: newValue @@ -8835,7 +8893,7 @@ class BaseViewer { if (this._location && !(this.isInPresentationMode || this.isChangingPresentationMode)) { page = this._location.pageNumber; dest = [null, { - name: 'XYZ' + name: "XYZ" }, this._location.left, this._location.top, null]; } @@ -8846,7 +8904,7 @@ class BaseViewer { }); } - this.eventBus.dispatch('scalechanging', { + this.eventBus.dispatch("scalechanging", { source: this, scale: newScale, presetValue: preset ? newValue : undefined @@ -8863,7 +8921,7 @@ class BaseViewer { if (scale > 0) { this._setScaleUpdatePages(scale, value, noScroll, false); } else { - let currentPage = this._pages[this._currentPageNumber - 1]; + const currentPage = this._pages[this._currentPageNumber - 1]; if (!currentPage) { return; @@ -8877,28 +8935,28 @@ class BaseViewer { [hPadding, vPadding] = [vPadding, hPadding]; } - let pageWidthScale = (this.container.clientWidth - hPadding) / currentPage.width * currentPage.scale; - let pageHeightScale = (this.container.clientHeight - vPadding) / currentPage.height * currentPage.scale; + const pageWidthScale = (this.container.clientWidth - hPadding) / currentPage.width * currentPage.scale; + const pageHeightScale = (this.container.clientHeight - vPadding) / currentPage.height * currentPage.scale; switch (value) { - case 'page-actual': + case "page-actual": scale = 1; break; - case 'page-width': + case "page-width": scale = pageWidthScale; break; - case 'page-height': + case "page-height": scale = pageHeightScale; break; - case 'page-fit': + case "page-fit": scale = Math.min(pageWidthScale, pageHeightScale); break; - case 'auto': - let horizontalScale = (0, _ui_utils.isPortraitOrientation)(currentPage) ? pageWidthScale : Math.min(pageHeightScale, pageWidthScale); + case "auto": + const horizontalScale = (0, _ui_utils.isPortraitOrientation)(currentPage) ? pageWidthScale : Math.min(pageHeightScale, pageWidthScale); scale = Math.min(_ui_utils.MAX_AUTO_SCALE, horizontalScale); break; @@ -8916,7 +8974,7 @@ class BaseViewer { this._setScale(this._currentScaleValue, true); } - let pageView = this._pages[this._currentPageNumber - 1]; + const pageView = this._pages[this._currentPageNumber - 1]; this._scrollIntoView({ pageDiv: pageView.div @@ -8951,13 +9009,13 @@ class BaseViewer { height = 0, widthScale, heightScale; - let changeOrientation = pageView.rotation % 180 === 0 ? false : true; - let pageWidth = (changeOrientation ? pageView.height : pageView.width) / pageView.scale / _ui_utils.CSS_UNITS; - let pageHeight = (changeOrientation ? pageView.width : pageView.height) / pageView.scale / _ui_utils.CSS_UNITS; + const changeOrientation = pageView.rotation % 180 === 0 ? false : true; + const pageWidth = (changeOrientation ? pageView.height : pageView.width) / pageView.scale / _ui_utils.CSS_UNITS; + const pageHeight = (changeOrientation ? pageView.width : pageView.height) / pageView.scale / _ui_utils.CSS_UNITS; let scale = 0; switch (destArray[1].name) { - case 'XYZ': + case "XYZ": x = destArray[2]; y = destArray[3]; scale = destArray[4]; @@ -8965,15 +9023,15 @@ class BaseViewer { y = y !== null ? y : pageHeight; break; - case 'Fit': - case 'FitB': - scale = 'page-fit'; + case "Fit": + case "FitB": + scale = "page-fit"; break; - case 'FitH': - case 'FitBH': + case "FitH": + case "FitBH": y = destArray[2]; - scale = 'page-width'; + scale = "page-width"; if (y === null && this._location) { x = this._location.left; @@ -8982,21 +9040,21 @@ class BaseViewer { break; - case 'FitV': - case 'FitBV': + case "FitV": + case "FitBV": x = destArray[2]; width = pageWidth; height = pageHeight; - scale = 'page-height'; + scale = "page-height"; break; - case 'FitR': + case "FitR": x = destArray[2]; y = destArray[3]; width = destArray[4] - x; height = destArray[5] - y; - let hPadding = this.removePageBorders ? 0 : _ui_utils.SCROLLBAR_PADDING; - let vPadding = this.removePageBorders ? 0 : _ui_utils.VERTICAL_PADDING; + const hPadding = this.removePageBorders ? 0 : _ui_utils.SCROLLBAR_PADDING; + const vPadding = this.removePageBorders ? 0 : _ui_utils.VERTICAL_PADDING; widthScale = (this.container.clientWidth - hPadding) / width / _ui_utils.CSS_UNITS; heightScale = (this.container.clientHeight - vPadding) / height / _ui_utils.CSS_UNITS; scale = Math.min(Math.abs(widthScale), Math.abs(heightScale)); @@ -9013,7 +9071,7 @@ class BaseViewer { this.currentScaleValue = _ui_utils.DEFAULT_SCALE_VALUE; } - if (scale === 'page-fit' && !destArray[4]) { + if (scale === "page-fit" && !destArray[4]) { this._scrollIntoView({ pageDiv: pageView.div, pageNumber @@ -9022,7 +9080,7 @@ class BaseViewer { return; } - let boundingRect = [pageView.viewport.convertToViewportPoint(x, y), pageView.viewport.convertToViewportPoint(x + width, y + height)]; + const boundingRect = [pageView.viewport.convertToViewportPoint(x, y), pageView.viewport.convertToViewportPoint(x + width, y + height)]; let left = Math.min(boundingRect[0][0], boundingRect[1][0]); let top = Math.min(boundingRect[0][1], boundingRect[1][1]); @@ -9042,18 +9100,18 @@ class BaseViewer { } _updateLocation(firstPage) { - let currentScale = this._currentScale; - let currentScaleValue = this._currentScaleValue; - let normalizedScaleValue = parseFloat(currentScaleValue) === currentScale ? Math.round(currentScale * 10000) / 100 : currentScaleValue; - let pageNumber = firstPage.id; - let pdfOpenParams = '#page=' + pageNumber; - pdfOpenParams += '&zoom=' + normalizedScaleValue; - let currentPageView = this._pages[pageNumber - 1]; - let container = this.container; - let topLeft = currentPageView.getPagePoint(container.scrollLeft - firstPage.x, container.scrollTop - firstPage.y); - let intLeft = Math.round(topLeft[0]); - let intTop = Math.round(topLeft[1]); - pdfOpenParams += ',' + intLeft + ',' + intTop; + const currentScale = this._currentScale; + const currentScaleValue = this._currentScaleValue; + const normalizedScaleValue = parseFloat(currentScaleValue) === currentScale ? Math.round(currentScale * 10000) / 100 : currentScaleValue; + const pageNumber = firstPage.id; + let pdfOpenParams = "#page=" + pageNumber; + pdfOpenParams += "&zoom=" + normalizedScaleValue; + const currentPageView = this._pages[pageNumber - 1]; + const container = this.container; + const topLeft = currentPageView.getPagePoint(container.scrollLeft - firstPage.x, container.scrollTop - firstPage.y); + const intLeft = Math.round(topLeft[0]); + const intTop = Math.round(topLeft[1]); + pdfOpenParams += "," + intLeft + "," + intTop; this._location = { pageNumber, scale: normalizedScaleValue, @@ -9065,7 +9123,7 @@ class BaseViewer { } _updateHelper(visiblePages) { - throw new Error('Not implemented: _updateHelper'); + throw new Error("Not implemented: _updateHelper"); } update() { @@ -9088,7 +9146,7 @@ class BaseViewer { this._updateLocation(visible.first); - this.eventBus.dispatch('updateviewarea', { + this.eventBus.dispatch("updateviewarea", { source: this, location: this._location }); @@ -9197,7 +9255,7 @@ class BaseViewer { return pdfPage; }).catch(reason => { - console.error('Unable to get page for page view', reason); + console.error("Unable to get page for page view", reason); this._pagesRequests.delete(pageView); }); @@ -9208,10 +9266,10 @@ class BaseViewer { } forceRendering(currentlyVisiblePages) { - let visiblePages = currentlyVisiblePages || this._getVisiblePages(); + const visiblePages = currentlyVisiblePages || this._getVisiblePages(); - let scrollAhead = this._isScrollModeHorizontal ? this.scroll.right : this.scroll.down; - let pageView = this.renderingQueue.getHighestPriority(visiblePages, this._pages, scrollAhead); + const scrollAhead = this._isScrollModeHorizontal ? this.scroll.right : this.scroll.down; + const pageView = this.renderingQueue.getHighestPriority(visiblePages, this._pages, scrollAhead); if (pageView) { this._ensurePdfPageLoaded(pageView).then(() => { @@ -9235,7 +9293,7 @@ class BaseViewer { }); } - createAnnotationLayerBuilder(pageDiv, pdfPage, imageResourcesPath = '', renderInteractiveForms = false, l10n = _ui_utils.NullL10n) { + createAnnotationLayerBuilder(pageDiv, pdfPage, imageResourcesPath = "", renderInteractiveForms = false, l10n = _ui_utils.NullL10n) { return new _annotation_layer_builder.AnnotationLayerBuilder({ pageDiv, pdfPage, @@ -9248,10 +9306,10 @@ class BaseViewer { } get hasEqualPageSizes() { - let firstPageView = this._pages[0]; + const firstPageView = this._pages[0]; for (let i = 1, ii = this._pages.length; i < ii; ++i) { - let pageView = this._pages[i]; + const pageView = this._pages[i]; if (pageView.width !== firstPageView.width || pageView.height !== firstPageView.height) { return false; @@ -9262,8 +9320,8 @@ class BaseViewer { } getPagesOverview() { - let pagesOverview = this._pages.map(function (pageView) { - let viewport = pageView.pdfPage.getViewport({ + const pagesOverview = this._pages.map(function (pageView) { + const viewport = pageView.pdfPage.getViewport({ scale: 1 }); return { @@ -9277,7 +9335,7 @@ class BaseViewer { return pagesOverview; } - let isFirstPagePortrait = (0, _ui_utils.isPortraitOrientation)(pagesOverview[0]); + const isFirstPagePortrait = (0, _ui_utils.isPortraitOrientation)(pagesOverview[0]); return pagesOverview.map(function (size) { if (isFirstPagePortrait === (0, _ui_utils.isPortraitOrientation)(size)) { return size; @@ -9305,7 +9363,7 @@ class BaseViewer { } this._scrollMode = mode; - this.eventBus.dispatch('scrollmodechanged', { + this.eventBus.dispatch("scrollmodechanged", { source: this, mode }); @@ -9316,8 +9374,8 @@ class BaseViewer { _updateScrollMode(pageNumber = null) { const scrollMode = this._scrollMode, viewer = this.viewer; - viewer.classList.toggle('scrollHorizontal', scrollMode === _ui_utils.ScrollMode.HORIZONTAL); - viewer.classList.toggle('scrollWrapped', scrollMode === _ui_utils.ScrollMode.WRAPPED); + viewer.classList.toggle("scrollHorizontal", scrollMode === _ui_utils.ScrollMode.HORIZONTAL); + viewer.classList.toggle("scrollWrapped", scrollMode === _ui_utils.ScrollMode.WRAPPED); if (!this.pdfDocument || !pageNumber) { return; @@ -9346,7 +9404,7 @@ class BaseViewer { } this._spreadMode = mode; - this.eventBus.dispatch('spreadmodechanged', { + this.eventBus.dispatch("spreadmodechanged", { source: this, mode }); @@ -9361,7 +9419,7 @@ class BaseViewer { const viewer = this.viewer, pages = this._pages; - viewer.textContent = ''; + viewer.textContent = ""; if (this._spreadMode === _ui_utils.SpreadMode.NONE) { for (let i = 0, iMax = pages.length; i < iMax; ++i) { @@ -9373,8 +9431,8 @@ class BaseViewer { for (let i = 0, iMax = pages.length; i < iMax; ++i) { if (spread === null) { - spread = document.createElement('div'); - spread.className = 'spread'; + spread = document.createElement("div"); + spread.className = "spread"; viewer.appendChild(spread); } else if (i % 2 === parity) { spread = spread.cloneNode(false); @@ -9422,7 +9480,7 @@ class AnnotationLayerBuilder { pdfPage, linkService, downloadManager, - imageResourcesPath = '', + imageResourcesPath = "", renderInteractiveForms = false, l10n = _ui_utils.NullL10n }) { @@ -9437,7 +9495,7 @@ class AnnotationLayerBuilder { this._cancelled = false; } - render(viewport, intent = 'display') { + render(viewport, intent = "display") { this.pdfPage.getAnnotations({ intent }).then(annotations => { @@ -9445,7 +9503,7 @@ class AnnotationLayerBuilder { return; } - let parameters = { + const parameters = { viewport: viewport.clone({ dontFlip: true }), @@ -9465,8 +9523,8 @@ class AnnotationLayerBuilder { return; } - this.div = document.createElement('div'); - this.div.className = 'annotationLayer'; + this.div = document.createElement("div"); + this.div.className = "annotationLayer"; this.pageDiv.appendChild(this.div); parameters.div = this.div; @@ -9486,7 +9544,7 @@ class AnnotationLayerBuilder { return; } - this.div.setAttribute('hidden', 'true'); + this.div.setAttribute("hidden", "true"); } } @@ -9494,7 +9552,7 @@ class AnnotationLayerBuilder { exports.AnnotationLayerBuilder = AnnotationLayerBuilder; class DefaultAnnotationLayerFactory { - createAnnotationLayerBuilder(pageDiv, pdfPage, imageResourcesPath = '', renderInteractiveForms = false, l10n = _ui_utils.NullL10n) { + createAnnotationLayerBuilder(pageDiv, pdfPage, imageResourcesPath = "", renderInteractiveForms = false, l10n = _ui_utils.NullL10n) { return new AnnotationLayerBuilder({ pageDiv, pdfPage, @@ -9533,10 +9591,10 @@ const MAX_CANVAS_PIXELS = _viewer_compatibility.viewerCompatibilityParams.maxCan class PDFPageView { constructor(options) { - let container = options.container; - let defaultViewport = options.defaultViewport; + const container = options.container; + const defaultViewport = options.defaultViewport; this.id = options.id; - this.renderingId = 'page' + this.id; + this.renderingId = "page" + this.id; this.pdfPage = null; this.pageLabel = null; this.rotation = 0; @@ -9545,7 +9603,7 @@ class PDFPageView { this.pdfPageRotate = defaultViewport.rotation; this.hasRestrictedScaling = false; this.textLayerMode = Number.isInteger(options.textLayerMode) ? options.textLayerMode : _ui_utils.TextLayerMode.ENABLE; - this.imageResourcesPath = options.imageResourcesPath || ''; + this.imageResourcesPath = options.imageResourcesPath || ""; this.renderInteractiveForms = options.renderInteractiveForms || false; this.useOnlyCssZoom = options.useOnlyCssZoom || false; this.maxCanvasPixels = options.maxCanvasPixels || MAX_CANVAS_PIXELS; @@ -9564,11 +9622,11 @@ class PDFPageView { this.annotationLayer = null; this.textLayer = null; this.zoomLayer = null; - let div = document.createElement('div'); - div.className = 'page'; - div.style.width = Math.floor(this.viewport.width) + 'px'; - div.style.height = Math.floor(this.viewport.height) + 'px'; - div.setAttribute('data-page-number', this.id); + const div = document.createElement("div"); + div.className = "page"; + div.style.width = Math.floor(this.viewport.width) + "px"; + div.style.height = Math.floor(this.viewport.height) + "px"; + div.setAttribute("data-page-number", this.id); this.div = div; container.appendChild(div); } @@ -9576,7 +9634,7 @@ class PDFPageView { setPdfPage(pdfPage) { this.pdfPage = pdfPage; this.pdfPageRotate = pdfPage.rotate; - let totalRotation = (this.rotation + this.pdfPageRotate) % 360; + const totalRotation = (this.rotation + this.pdfPageRotate) % 360; this.viewport = pdfPage.getViewport({ scale: this.scale * _ui_utils.CSS_UNITS, rotation: totalRotation @@ -9598,7 +9656,7 @@ class PDFPageView { return; } - let zoomLayerCanvas = this.zoomLayer.firstChild; + const zoomLayerCanvas = this.zoomLayer.firstChild; this.paintedViewportMap.delete(zoomLayerCanvas); zoomLayerCanvas.width = 0; zoomLayerCanvas.height = 0; @@ -9613,15 +9671,15 @@ class PDFPageView { reset(keepZoomLayer = false, keepAnnotations = false) { this.cancelRendering(keepAnnotations); this.renderingState = _pdf_rendering_queue.RenderingStates.INITIAL; - let div = this.div; - div.style.width = Math.floor(this.viewport.width) + 'px'; - div.style.height = Math.floor(this.viewport.height) + 'px'; - let childNodes = div.childNodes; - let currentZoomLayerNode = keepZoomLayer && this.zoomLayer || null; - let currentAnnotationNode = keepAnnotations && this.annotationLayer && this.annotationLayer.div || null; + const div = this.div; + div.style.width = Math.floor(this.viewport.width) + "px"; + div.style.height = Math.floor(this.viewport.height) + "px"; + const childNodes = div.childNodes; + const currentZoomLayerNode = keepZoomLayer && this.zoomLayer || null; + const currentAnnotationNode = keepAnnotations && this.annotationLayer && this.annotationLayer.div || null; for (let i = childNodes.length - 1; i >= 0; i--) { - let node = childNodes[i]; + const node = childNodes[i]; if (currentZoomLayerNode === node || currentAnnotationNode === node) { continue; @@ -9630,7 +9688,7 @@ class PDFPageView { div.removeChild(node); } - div.removeAttribute('data-loaded'); + div.removeAttribute("data-loaded"); if (currentAnnotationNode) { this.annotationLayer.hide(); @@ -9655,19 +9713,19 @@ class PDFPageView { delete this.svg; } - this.loadingIconDiv = document.createElement('div'); - this.loadingIconDiv.className = 'loadingIcon'; + this.loadingIconDiv = document.createElement("div"); + this.loadingIconDiv.className = "loadingIcon"; div.appendChild(this.loadingIconDiv); } update(scale, rotation) { this.scale = scale || this.scale; - if (typeof rotation !== 'undefined') { + if (typeof rotation !== "undefined") { this.rotation = rotation; } - let totalRotation = (this.rotation + this.pdfPageRotate) % 360; + const totalRotation = (this.rotation + this.pdfPageRotate) % 360; this.viewport = this.viewport.clone({ scale: this.scale * _ui_utils.CSS_UNITS, rotation: totalRotation @@ -9675,7 +9733,7 @@ class PDFPageView { if (this.svg) { this.cssTransform(this.svg, true); - this.eventBus.dispatch('pagerendered', { + this.eventBus.dispatch("pagerendered", { source: this, pageNumber: this.id, cssTransform: true, @@ -9687,7 +9745,7 @@ class PDFPageView { let isScalingRestricted = false; if (this.canvas && this.maxCanvasPixels > 0) { - let outputScale = this.outputScale; + const outputScale = this.outputScale; if ((Math.floor(this.viewport.width) * outputScale.sx | 0) * (Math.floor(this.viewport.height) * outputScale.sy | 0) > this.maxCanvasPixels) { isScalingRestricted = true; @@ -9697,7 +9755,7 @@ class PDFPageView { if (this.canvas) { if (this.useOnlyCssZoom || this.hasRestrictedScaling && isScalingRestricted) { this.cssTransform(this.canvas, true); - this.eventBus.dispatch('pagerendered', { + this.eventBus.dispatch("pagerendered", { source: this, pageNumber: this.id, cssTransform: true, @@ -9706,9 +9764,9 @@ class PDFPageView { return; } - if (!this.zoomLayer && !this.canvas.hasAttribute('hidden')) { + if (!this.zoomLayer && !this.canvas.hasAttribute("hidden")) { this.zoomLayer = this.canvas.parentNode; - this.zoomLayer.style.position = 'absolute'; + this.zoomLayer.style.position = "absolute"; } } @@ -9739,13 +9797,13 @@ class PDFPageView { } cssTransform(target, redrawAnnotations = false) { - let width = this.viewport.width; - let height = this.viewport.height; - let div = this.div; - target.style.width = target.parentNode.style.width = div.style.width = Math.floor(width) + 'px'; - target.style.height = target.parentNode.style.height = div.style.height = Math.floor(height) + 'px'; - let relativeRotation = this.viewport.rotation - this.paintedViewportMap.get(target).rotation; - let absRotation = Math.abs(relativeRotation); + const width = this.viewport.width; + const height = this.viewport.height; + const div = this.div; + target.style.width = target.parentNode.style.width = div.style.width = Math.floor(width) + "px"; + target.style.height = target.parentNode.style.height = div.style.height = Math.floor(height) + "px"; + const relativeRotation = this.viewport.rotation - this.paintedViewportMap.get(target).rotation; + const absRotation = Math.abs(relativeRotation); let scaleX = 1, scaleY = 1; @@ -9754,20 +9812,20 @@ class PDFPageView { scaleY = width / height; } - let cssTransform = 'rotate(' + relativeRotation + 'deg) ' + 'scale(' + scaleX + ',' + scaleY + ')'; + const cssTransform = "rotate(" + relativeRotation + "deg) " + "scale(" + scaleX + "," + scaleY + ")"; target.style.transform = cssTransform; if (this.textLayer) { - let textLayerViewport = this.textLayer.viewport; - let textRelativeRotation = this.viewport.rotation - textLayerViewport.rotation; - let textAbsRotation = Math.abs(textRelativeRotation); + const textLayerViewport = this.textLayer.viewport; + const textRelativeRotation = this.viewport.rotation - textLayerViewport.rotation; + const textAbsRotation = Math.abs(textRelativeRotation); let scale = width / textLayerViewport.width; if (textAbsRotation === 90 || textAbsRotation === 270) { scale = width / textLayerViewport.height; } - let textLayerDiv = this.textLayer.textLayerDiv; + const textLayerDiv = this.textLayer.textLayerDiv; let transX, transY; switch (textAbsRotation) { @@ -9777,30 +9835,30 @@ class PDFPageView { case 90: transX = 0; - transY = '-' + textLayerDiv.style.height; + transY = "-" + textLayerDiv.style.height; break; case 180: - transX = '-' + textLayerDiv.style.width; - transY = '-' + textLayerDiv.style.height; + transX = "-" + textLayerDiv.style.width; + transY = "-" + textLayerDiv.style.height; break; case 270: - transX = '-' + textLayerDiv.style.width; + transX = "-" + textLayerDiv.style.width; transY = 0; break; default: - console.error('Bad rotation value.'); + console.error("Bad rotation value."); break; } - textLayerDiv.style.transform = 'rotate(' + textAbsRotation + 'deg) ' + 'scale(' + scale + ', ' + scale + ') ' + 'translate(' + transX + ', ' + transY + ')'; - textLayerDiv.style.transformOrigin = '0% 0%'; + textLayerDiv.style.transform = "rotate(" + textAbsRotation + "deg) " + "scale(" + scale + ", " + scale + ") " + "translate(" + transX + ", " + transY + ")"; + textLayerDiv.style.transformOrigin = "0% 0%"; } if (redrawAnnotations && this.annotationLayer) { - this.annotationLayer.render(this.viewport, 'display'); + this.annotationLayer.render(this.viewport, "display"); } } @@ -9818,22 +9876,22 @@ class PDFPageView { draw() { if (this.renderingState !== _pdf_rendering_queue.RenderingStates.INITIAL) { - console.error('Must be in new state before drawing'); + console.error("Must be in new state before drawing"); this.reset(); } if (!this.pdfPage) { this.renderingState = _pdf_rendering_queue.RenderingStates.FINISHED; - return Promise.reject(new Error('Page is not loaded')); + return Promise.reject(new Error("Page is not loaded")); } this.renderingState = _pdf_rendering_queue.RenderingStates.RUNNING; - let pdfPage = this.pdfPage; - let div = this.div; - let canvasWrapper = document.createElement('div'); + const pdfPage = this.pdfPage; + const div = this.div; + const canvasWrapper = document.createElement("div"); canvasWrapper.style.width = div.style.width; canvasWrapper.style.height = div.style.height; - canvasWrapper.classList.add('canvasWrapper'); + canvasWrapper.classList.add("canvasWrapper"); if (this.annotationLayer && this.annotationLayer.div) { div.insertBefore(canvasWrapper, this.annotationLayer.div); @@ -9844,8 +9902,8 @@ class PDFPageView { let textLayer = null; if (this.textLayerMode !== _ui_utils.TextLayerMode.DISABLE && this.textLayerFactory) { - let textLayerDiv = document.createElement('div'); - textLayerDiv.className = 'textLayer'; + const textLayerDiv = document.createElement("div"); + textLayerDiv.className = "textLayer"; textLayerDiv.style.width = canvasWrapper.style.width; textLayerDiv.style.height = canvasWrapper.style.height; @@ -9899,7 +9957,7 @@ class PDFPageView { this.error = error; this.stats = pdfPage.stats; - this.eventBus.dispatch('pagerendered', { + this.eventBus.dispatch("pagerendered", { source: this, pageNumber: this.id, cssTransform: false, @@ -9911,13 +9969,13 @@ class PDFPageView { } }; - let paintTask = this.renderer === _ui_utils.RendererType.SVG ? this.paintOnSvg(canvasWrapper) : this.paintOnCanvas(canvasWrapper); + const paintTask = this.renderer === _ui_utils.RendererType.SVG ? this.paintOnSvg(canvasWrapper) : this.paintOnCanvas(canvasWrapper); paintTask.onRenderContinue = renderContinueCallback; this.paintTask = paintTask; - let resultPromise = paintTask.promise.then(function () { + const resultPromise = paintTask.promise.then(function () { return finishPaintTask(null).then(function () { if (textLayer) { - let readableStream = pdfPage.streamTextContent({ + const readableStream = pdfPage.streamTextContent({ normalizeWhitespace: true }); textLayer.setTextContentStream(readableStream); @@ -9933,11 +9991,11 @@ class PDFPageView { this.annotationLayer = this.annotationLayerFactory.createAnnotationLayerBuilder(div, pdfPage, this.imageResourcesPath, this.renderInteractiveForms, this.l10n); } - this.annotationLayer.render(this.viewport, 'display'); + this.annotationLayer.render(this.viewport, "display"); } - div.setAttribute('data-loaded', true); - this.eventBus.dispatch('pagerender', { + div.setAttribute("data-loaded", true); + this.eventBus.dispatch("pagerender", { source: this, pageNumber: this.id }); @@ -9945,8 +10003,8 @@ class PDFPageView { } paintOnCanvas(canvasWrapper) { - let renderCapability = (0, _pdfjsLib.createPromiseCapability)(); - let result = { + const renderCapability = (0, _pdfjsLib.createPromiseCapability)(); + const result = { promise: renderCapability.promise, onRenderContinue(cont) { @@ -9958,15 +10016,15 @@ class PDFPageView { } }; - let viewport = this.viewport; - let canvas = document.createElement('canvas'); + const viewport = this.viewport; + const canvas = document.createElement("canvas"); canvas.id = this.renderingId; - canvas.setAttribute('hidden', 'hidden'); + canvas.setAttribute("hidden", "hidden"); let isCanvasHidden = true; - let showCanvas = function () { + const showCanvas = function () { if (isCanvasHidden) { - canvas.removeAttribute('hidden'); + canvas.removeAttribute("hidden"); isCanvasHidden = false; } }; @@ -9974,14 +10032,14 @@ class PDFPageView { canvasWrapper.appendChild(canvas); this.canvas = canvas; canvas.mozOpaque = true; - let ctx = canvas.getContext('2d', { + const ctx = canvas.getContext("2d", { alpha: false }); - let outputScale = (0, _ui_utils.getOutputScale)(ctx); + const outputScale = (0, _ui_utils.getOutputScale)(ctx); this.outputScale = outputScale; if (this.useOnlyCssZoom) { - let actualSizeViewport = viewport.clone({ + const actualSizeViewport = viewport.clone({ scale: _ui_utils.CSS_UNITS }); outputScale.sx *= actualSizeViewport.width / viewport.width; @@ -9990,8 +10048,8 @@ class PDFPageView { } if (this.maxCanvasPixels > 0) { - let pixelsInViewport = viewport.width * viewport.height; - let maxScale = Math.sqrt(this.maxCanvasPixels / pixelsInViewport); + const pixelsInViewport = viewport.width * viewport.height; + const maxScale = Math.sqrt(this.maxCanvasPixels / pixelsInViewport); if (outputScale.sx > maxScale || outputScale.sy > maxScale) { outputScale.sx = maxScale; @@ -10003,22 +10061,22 @@ class PDFPageView { } } - let sfx = (0, _ui_utils.approximateFraction)(outputScale.sx); - let sfy = (0, _ui_utils.approximateFraction)(outputScale.sy); + const sfx = (0, _ui_utils.approximateFraction)(outputScale.sx); + const sfy = (0, _ui_utils.approximateFraction)(outputScale.sy); canvas.width = (0, _ui_utils.roundToDivide)(viewport.width * outputScale.sx, sfx[0]); canvas.height = (0, _ui_utils.roundToDivide)(viewport.height * outputScale.sy, sfy[0]); - canvas.style.width = (0, _ui_utils.roundToDivide)(viewport.width, sfx[1]) + 'px'; - canvas.style.height = (0, _ui_utils.roundToDivide)(viewport.height, sfy[1]) + 'px'; + canvas.style.width = (0, _ui_utils.roundToDivide)(viewport.width, sfx[1]) + "px"; + canvas.style.height = (0, _ui_utils.roundToDivide)(viewport.height, sfy[1]) + "px"; this.paintedViewportMap.set(canvas, viewport); - let transform = !outputScale.scaled ? null : [outputScale.sx, 0, 0, outputScale.sy, 0, 0]; - let renderContext = { + const transform = !outputScale.scaled ? null : [outputScale.sx, 0, 0, outputScale.sy, 0, 0]; + const renderContext = { canvasContext: ctx, transform, viewport: this.viewport, enableWebGL: this.enableWebGL, renderInteractiveForms: this.renderInteractiveForms }; - let renderTask = this.pdfPage.render(renderContext); + const renderTask = this.pdfPage.render(renderContext); renderTask.onContinue = function (cont) { showCanvas(); @@ -10042,7 +10100,7 @@ class PDFPageView { paintOnSvg(wrapper) { return { - promise: Promise.reject(new Error('SVG rendering is not supported.')), + promise: Promise.reject(new Error("SVG rendering is not supported.")), onRenderContinue(cont) {}, @@ -10052,12 +10110,12 @@ class PDFPageView { } setPageLabel(label) { - this.pageLabel = typeof label === 'string' ? label : null; + this.pageLabel = typeof label === "string" ? label : null; if (this.pageLabel !== null) { - this.div.setAttribute('data-page-label', this.pageLabel); + this.div.setAttribute("data-page-label", this.pageLabel); } else { - this.div.removeAttribute('data-page-label'); + this.div.removeAttribute("data-page-label"); } } @@ -10115,12 +10173,12 @@ class TextLayerBuilder { this.renderingDone = true; if (!this.enhanceTextSelection) { - let endOfContent = document.createElement('div'); - endOfContent.className = 'endOfContent'; + const endOfContent = document.createElement("div"); + endOfContent.className = "endOfContent"; this.textLayerDiv.appendChild(endOfContent); } - this.eventBus.dispatch('textlayerrendered', { + this.eventBus.dispatch("textlayerrendered", { source: this, pageNumber: this.pageNumber, numTextDivs: this.textDivs.length @@ -10134,7 +10192,7 @@ class TextLayerBuilder { this.cancel(); this.textDivs = []; - let textLayerFrag = document.createDocumentFragment(); + const textLayerFrag = document.createDocumentFragment(); this.textLayerRenderTask = (0, _pdfjsLib.renderTextLayer)({ textContent: this.textContent, textContentStream: this.textContentStream, @@ -10160,7 +10218,7 @@ class TextLayerBuilder { } }; - this.eventBus.on('updatetextlayermatches', this._onUpdateTextLayerMatches); + this.eventBus.on("updatetextlayermatches", this._onUpdateTextLayerMatches); } } @@ -10171,7 +10229,7 @@ class TextLayerBuilder { } if (this._onUpdateTextLayerMatches) { - this.eventBus.off('updatetextlayermatches', this._onUpdateTextLayerMatches); + this.eventBus.off("updatetextlayermatches", this._onUpdateTextLayerMatches); this._onUpdateTextLayerMatches = null; } } @@ -10210,10 +10268,10 @@ class TextLayerBuilder { } if (i === textContentItemsStr.length) { - console.error('Could not find a matching mapping'); + console.error("Could not find a matching mapping"); } - let match = { + const match = { begin: { divIdx: i, offset: matchIdx - iIndex @@ -10256,24 +10314,24 @@ class TextLayerBuilder { const selectedMatchIdx = findController.selected.matchIdx; const highlightAll = findController.state.highlightAll; let prevEnd = null; - let infinity = { + const infinity = { divIdx: -1, offset: undefined }; function beginText(begin, className) { - let divIdx = begin.divIdx; - textDivs[divIdx].textContent = ''; + const divIdx = begin.divIdx; + textDivs[divIdx].textContent = ""; appendTextToDiv(divIdx, 0, begin.offset, className); } function appendTextToDiv(divIdx, fromOffset, toOffset, className) { - let div = textDivs[divIdx]; - let content = textContentItemsStr[divIdx].substring(fromOffset, toOffset); - let node = document.createTextNode(content); + const div = textDivs[divIdx]; + const content = textContentItemsStr[divIdx].substring(fromOffset, toOffset); + const node = document.createTextNode(content); if (className) { - let span = document.createElement('span'); + const span = document.createElement("span"); span.className = className; span.appendChild(node); div.appendChild(span); @@ -10294,11 +10352,11 @@ class TextLayerBuilder { } for (let i = i0; i < i1; i++) { - let match = matches[i]; - let begin = match.begin; - let end = match.end; + const match = matches[i]; + const begin = match.begin; + const end = match.end; const isSelected = isSelectedPage && i === selectedMatchIdx; - const highlightSuffix = isSelected ? ' selected' : ''; + const highlightSuffix = isSelected ? " selected" : ""; if (isSelected) { findController.scrollMatchIntoView({ @@ -10319,15 +10377,15 @@ class TextLayerBuilder { } if (begin.divIdx === end.divIdx) { - appendTextToDiv(begin.divIdx, begin.offset, end.offset, 'highlight' + highlightSuffix); + appendTextToDiv(begin.divIdx, begin.offset, end.offset, "highlight" + highlightSuffix); } else { - appendTextToDiv(begin.divIdx, begin.offset, infinity.offset, 'highlight begin' + highlightSuffix); + appendTextToDiv(begin.divIdx, begin.offset, infinity.offset, "highlight begin" + highlightSuffix); for (let n0 = begin.divIdx + 1, n1 = end.divIdx; n0 < n1; n0++) { - textDivs[n0].className = 'highlight middle' + highlightSuffix; + textDivs[n0].className = "highlight middle" + highlightSuffix; } - beginText(end, 'highlight end' + highlightSuffix); + beginText(end, "highlight end" + highlightSuffix); } prevEnd = end; @@ -10353,13 +10411,13 @@ class TextLayerBuilder { let clearedUntilDivIdx = -1; for (let i = 0, ii = matches.length; i < ii; i++) { - let match = matches[i]; - let begin = Math.max(clearedUntilDivIdx, match.begin.divIdx); + const match = matches[i]; + const begin = Math.max(clearedUntilDivIdx, match.begin.divIdx); for (let n = begin, end = match.end.divIdx; n <= end; n++) { - let div = textDivs[n]; + const div = textDivs[n]; div.textContent = textContentItemsStr[n]; - div.className = ''; + div.className = ""; } clearedUntilDivIdx = match.end.divIdx + 1; @@ -10377,35 +10435,35 @@ class TextLayerBuilder { } _bindMouse() { - let div = this.textLayerDiv; + const div = this.textLayerDiv; let expandDivsTimer = null; - div.addEventListener('mousedown', evt => { + div.addEventListener("mousedown", evt => { if (this.enhanceTextSelection && this.textLayerRenderTask) { this.textLayerRenderTask.expandTextDivs(true); return; } - let end = div.querySelector('.endOfContent'); + const end = div.querySelector(".endOfContent"); if (!end) { return; } - end.classList.add('active'); + end.classList.add("active"); }); - div.addEventListener('mouseup', () => { + div.addEventListener("mouseup", () => { if (this.enhanceTextSelection && this.textLayerRenderTask) { this.textLayerRenderTask.expandTextDivs(false); return; } - let end = div.querySelector('.endOfContent'); + const end = div.querySelector(".endOfContent"); if (!end) { return; } - end.classList.remove('active'); + end.classList.remove("active"); }); } @@ -10452,19 +10510,19 @@ class SecondaryToolbar { this.toolbarButtonContainer = options.toolbarButtonContainer; this.buttons = [{ element: options.presentationModeButton, - eventName: 'presentationmode', + eventName: "presentationmode", close: true }, { element: options.openFileButton, - eventName: 'openfile', + eventName: "openfile", close: true }, { element: options.printButton, - eventName: 'print', + eventName: "print", close: true }, { element: options.downloadButton, - eventName: 'download', + eventName: "download", close: true }, { element: options.viewBookmarkButton, @@ -10472,79 +10530,79 @@ class SecondaryToolbar { close: true }, { element: options.firstPageButton, - eventName: 'firstpage', + eventName: "firstpage", close: true }, { element: options.lastPageButton, - eventName: 'lastpage', + eventName: "lastpage", close: true }, { element: options.pageRotateCwButton, - eventName: 'rotatecw', + eventName: "rotatecw", close: false }, { element: options.pageRotateCcwButton, - eventName: 'rotateccw', + eventName: "rotateccw", close: false }, { element: options.cursorSelectToolButton, - eventName: 'switchcursortool', + eventName: "switchcursortool", eventDetails: { tool: _pdf_cursor_tools.CursorTool.SELECT }, close: true }, { element: options.cursorHandToolButton, - eventName: 'switchcursortool', + eventName: "switchcursortool", eventDetails: { tool: _pdf_cursor_tools.CursorTool.HAND }, close: true }, { element: options.scrollVerticalButton, - eventName: 'switchscrollmode', + eventName: "switchscrollmode", eventDetails: { mode: _ui_utils.ScrollMode.VERTICAL }, close: true }, { element: options.scrollHorizontalButton, - eventName: 'switchscrollmode', + eventName: "switchscrollmode", eventDetails: { mode: _ui_utils.ScrollMode.HORIZONTAL }, close: true }, { element: options.scrollWrappedButton, - eventName: 'switchscrollmode', + eventName: "switchscrollmode", eventDetails: { mode: _ui_utils.ScrollMode.WRAPPED }, close: true }, { element: options.spreadNoneButton, - eventName: 'switchspreadmode', + eventName: "switchspreadmode", eventDetails: { mode: _ui_utils.SpreadMode.NONE }, close: true }, { element: options.spreadOddButton, - eventName: 'switchspreadmode', + eventName: "switchspreadmode", eventDetails: { mode: _ui_utils.SpreadMode.ODD }, close: true }, { element: options.spreadEvenButton, - eventName: 'switchspreadmode', + eventName: "switchspreadmode", eventDetails: { mode: _ui_utils.SpreadMode.EVEN }, close: true }, { element: options.documentPropertiesButton, - eventName: 'documentproperties', + eventName: "documentproperties", close: true }]; this.items = { @@ -10568,12 +10626,12 @@ class SecondaryToolbar { this._bindSpreadModeListener(options); - this.eventBus.on('resize', this._setMaxHeight.bind(this)); - this.eventBus.on('baseviewerinit', evt => { + this.eventBus.on("resize", this._setMaxHeight.bind(this)); + this.eventBus.on("baseviewerinit", evt => { if (evt.source instanceof _pdf_single_page_viewer.PDFSinglePageViewer) { - this.toolbarButtonContainer.classList.add('hiddenScrollModeButtons', 'hiddenSpreadModeButtons'); + this.toolbarButtonContainer.classList.add("hiddenScrollModeButtons", "hiddenSpreadModeButtons"); } else { - this.toolbarButtonContainer.classList.remove('hiddenScrollModeButtons', 'hiddenSpreadModeButtons'); + this.toolbarButtonContainer.classList.remove("hiddenScrollModeButtons", "hiddenSpreadModeButtons"); } }); } @@ -10600,7 +10658,7 @@ class SecondaryToolbar { this._updateUIState(); - this.eventBus.dispatch('secondarytoolbarreset', { + this.eventBus.dispatch("secondarytoolbarreset", { source: this }); } @@ -10613,7 +10671,7 @@ class SecondaryToolbar { } _bindClickListeners() { - this.toggleButton.addEventListener('click', this.toggle.bind(this)); + this.toggleButton.addEventListener("click", this.toggle.bind(this)); for (const { element, @@ -10621,13 +10679,13 @@ class SecondaryToolbar { close, eventDetails } of this.buttons) { - element.addEventListener('click', evt => { + element.addEventListener("click", evt => { if (eventName !== null) { - let details = { + const details = { source: this }; - for (let property in eventDetails) { + for (const property in eventDetails) { details[property] = eventDetails[property]; } @@ -10642,11 +10700,11 @@ class SecondaryToolbar { } _bindCursorToolsListener(buttons) { - this.eventBus.on('cursortoolchanged', function ({ + this.eventBus.on("cursortoolchanged", function ({ tool }) { - buttons.cursorSelectToolButton.classList.toggle('toggled', tool === _pdf_cursor_tools.CursorTool.SELECT); - buttons.cursorHandToolButton.classList.toggle('toggled', tool === _pdf_cursor_tools.CursorTool.HAND); + buttons.cursorSelectToolButton.classList.toggle("toggled", tool === _pdf_cursor_tools.CursorTool.SELECT); + buttons.cursorHandToolButton.classList.toggle("toggled", tool === _pdf_cursor_tools.CursorTool.HAND); }); } @@ -10654,17 +10712,17 @@ class SecondaryToolbar { function scrollModeChanged({ mode }) { - buttons.scrollVerticalButton.classList.toggle('toggled', mode === _ui_utils.ScrollMode.VERTICAL); - buttons.scrollHorizontalButton.classList.toggle('toggled', mode === _ui_utils.ScrollMode.HORIZONTAL); - buttons.scrollWrappedButton.classList.toggle('toggled', mode === _ui_utils.ScrollMode.WRAPPED); + buttons.scrollVerticalButton.classList.toggle("toggled", mode === _ui_utils.ScrollMode.VERTICAL); + buttons.scrollHorizontalButton.classList.toggle("toggled", mode === _ui_utils.ScrollMode.HORIZONTAL); + buttons.scrollWrappedButton.classList.toggle("toggled", mode === _ui_utils.ScrollMode.WRAPPED); const isScrollModeHorizontal = mode === _ui_utils.ScrollMode.HORIZONTAL; buttons.spreadNoneButton.disabled = isScrollModeHorizontal; buttons.spreadOddButton.disabled = isScrollModeHorizontal; buttons.spreadEvenButton.disabled = isScrollModeHorizontal; } - this.eventBus.on('scrollmodechanged', scrollModeChanged); - this.eventBus.on('secondarytoolbarreset', evt => { + this.eventBus.on("scrollmodechanged", scrollModeChanged); + this.eventBus.on("secondarytoolbarreset", evt => { if (evt.source === this) { scrollModeChanged({ mode: _ui_utils.ScrollMode.VERTICAL @@ -10677,13 +10735,13 @@ class SecondaryToolbar { function spreadModeChanged({ mode }) { - buttons.spreadNoneButton.classList.toggle('toggled', mode === _ui_utils.SpreadMode.NONE); - buttons.spreadOddButton.classList.toggle('toggled', mode === _ui_utils.SpreadMode.ODD); - buttons.spreadEvenButton.classList.toggle('toggled', mode === _ui_utils.SpreadMode.EVEN); + buttons.spreadNoneButton.classList.toggle("toggled", mode === _ui_utils.SpreadMode.NONE); + buttons.spreadOddButton.classList.toggle("toggled", mode === _ui_utils.SpreadMode.ODD); + buttons.spreadEvenButton.classList.toggle("toggled", mode === _ui_utils.SpreadMode.EVEN); } - this.eventBus.on('spreadmodechanged', spreadModeChanged); - this.eventBus.on('secondarytoolbarreset', evt => { + this.eventBus.on("spreadmodechanged", spreadModeChanged); + this.eventBus.on("secondarytoolbarreset", evt => { if (evt.source === this) { spreadModeChanged({ mode: _ui_utils.SpreadMode.NONE @@ -10701,8 +10759,8 @@ class SecondaryToolbar { this._setMaxHeight(); - this.toggleButton.classList.add('toggled'); - this.toolbar.classList.remove('hidden'); + this.toggleButton.classList.add("toggled"); + this.toolbar.classList.remove("hidden"); } close() { @@ -10711,8 +10769,8 @@ class SecondaryToolbar { } this.opened = false; - this.toolbar.classList.add('hidden'); - this.toggleButton.classList.remove('toggled'); + this.toolbar.classList.add("hidden"); + this.toggleButton.classList.remove("toggled"); } toggle() { @@ -10734,7 +10792,7 @@ class SecondaryToolbar { return; } - this.toolbarButtonContainer.setAttribute('style', 'max-height: ' + (this.containerHeight - _ui_utils.SCROLLBAR_PADDING) + 'px;'); + this.toolbarButtonContainer.setAttribute("style", "max-height: " + (this.containerHeight - _ui_utils.SCROLLBAR_PADDING) + "px;"); this.previousContainerHeight = this.containerHeight; } @@ -10761,13 +10819,13 @@ var _pdfjsLib = __webpack_require__(4); class PDFSinglePageViewer extends _base_viewer.BaseViewer { constructor(options) { super(options); - this.eventBus.on('pagesinit', evt => { + this.eventBus.on("pagesinit", evt => { this._ensurePageViewVisible(); }); } get _setDocumentViewerElement() { - return (0, _pdfjsLib.shadow)(this, '_setDocumentViewerElement', this._shadowViewer); + return (0, _pdfjsLib.shadow)(this, "_setDocumentViewerElement", this._shadowViewer); } _resetView() { @@ -10779,9 +10837,9 @@ class PDFSinglePageViewer extends _base_viewer.BaseViewer { } _ensurePageViewVisible() { - let pageView = this._pages[this._currentPageNumber - 1]; - let previousPageView = this._pages[this._previousPageNumber - 1]; - let viewerNodes = this.viewer.childNodes; + const pageView = this._pages[this._currentPageNumber - 1]; + const previousPageView = this._pages[this._previousPageNumber - 1]; + const viewerNodes = this.viewer.childNodes; switch (viewerNodes.length) { case 0: @@ -10790,7 +10848,7 @@ class PDFSinglePageViewer extends _base_viewer.BaseViewer { case 1: if (viewerNodes[0] !== previousPageView.div) { - throw new Error('_ensurePageViewVisible: Unexpected previously visible page.'); + throw new Error("_ensurePageViewVisible: Unexpected previously visible page."); } if (pageView === previousPageView) { @@ -10804,7 +10862,7 @@ class PDFSinglePageViewer extends _base_viewer.BaseViewer { break; default: - throw new Error('_ensurePageViewVisible: Only one page should be visible at a time.'); + throw new Error("_ensurePageViewVisible: Only one page should be visible at a time."); } this._previousPageNumber = this._currentPageNumber; @@ -10852,7 +10910,7 @@ class PDFSinglePageViewer extends _base_viewer.BaseViewer { _updateHelper(visiblePages) {} get _isScrollModeHorizontal() { - return (0, _pdfjsLib.shadow)(this, '_isScrollModeHorizontal', false); + return (0, _pdfjsLib.shadow)(this, "_isScrollModeHorizontal", false); } _updateScrollMode() {} @@ -10877,7 +10935,7 @@ exports.Toolbar = void 0; var _ui_utils = __webpack_require__(2); -const PAGE_NUMBER_LOADING_INDICATOR = 'visiblePageIsLoading'; +const PAGE_NUMBER_LOADING_INDICATOR = "visiblePageIsLoading"; const SCALE_SELECT_CONTAINER_PADDING = 8; const SCALE_SELECT_PADDING = 22; @@ -10888,28 +10946,28 @@ class Toolbar { this.l10n = l10n; this.buttons = [{ element: options.previous, - eventName: 'previouspage' + eventName: "previouspage" }, { element: options.next, - eventName: 'nextpage' + eventName: "nextpage" }, { element: options.zoomIn, - eventName: 'zoomin' + eventName: "zoomin" }, { element: options.zoomOut, - eventName: 'zoomout' + eventName: "zoomout" }, { element: options.openFile, - eventName: 'openfile' + eventName: "openfile" }, { element: options.print, - eventName: 'print' + eventName: "print" }, { element: options.presentationModeButton, - eventName: 'presentationmode' + eventName: "presentationmode" }, { element: options.download, - eventName: 'download' + eventName: "download" }, { element: options.viewBookmark, eventName: null @@ -10976,7 +11034,7 @@ class Toolbar { element, eventName } of this.buttons) { - element.addEventListener('click', evt => { + element.addEventListener("click", evt => { if (eventName !== null) { this.eventBus.dispatch(eventName, { source: this @@ -10985,27 +11043,27 @@ class Toolbar { }); } - pageNumber.addEventListener('click', function () { + pageNumber.addEventListener("click", function () { this.select(); }); - pageNumber.addEventListener('change', function () { - self.eventBus.dispatch('pagenumberchanged', { + pageNumber.addEventListener("change", function () { + self.eventBus.dispatch("pagenumberchanged", { source: self, value: this.value }); }); - scaleSelect.addEventListener('change', function () { - if (this.value === 'custom') { + scaleSelect.addEventListener("change", function () { + if (this.value === "custom") { return; } - self.eventBus.dispatch('scalechanged', { + self.eventBus.dispatch("scalechanged", { source: self, value: this.value }); }); scaleSelect.oncontextmenu = _ui_utils.noContextMenuHandler; - this.eventBus.on('localized', () => { + this.eventBus.on("localized", () => { this._wasLocalized = true; this._adjustScaleWidth(); @@ -11029,12 +11087,12 @@ class Toolbar { if (resetNumPages) { if (this.hasPageLabels) { - items.pageNumber.type = 'text'; + items.pageNumber.type = "text"; } else { - items.pageNumber.type = 'number'; - this.l10n.get('of_pages', { + items.pageNumber.type = "number"; + this.l10n.get("of_pages", { pagesCount - }, 'of {{pagesCount}}').then(msg => { + }, "of {{pagesCount}}").then(msg => { items.numPages.textContent = msg; }); } @@ -11044,10 +11102,10 @@ class Toolbar { if (this.hasPageLabels) { items.pageNumber.value = this.pageLabel; - this.l10n.get('page_of_pages', { + this.l10n.get("page_of_pages", { pageNumber, pagesCount - }, '({{pageNumber}} of {{pagesCount}})').then(msg => { + }, "({{pageNumber}} of {{pagesCount}})").then(msg => { items.numPages.textContent = msg; }); } else { @@ -11058,10 +11116,10 @@ class Toolbar { items.next.disabled = pageNumber >= pagesCount; items.zoomOut.disabled = pageScale <= _ui_utils.MIN_SCALE; items.zoomIn.disabled = pageScale >= _ui_utils.MAX_SCALE; - let customScale = Math.round(pageScale * 10000) / 100; - this.l10n.get('page_scale_percent', { + const customScale = Math.round(pageScale * 10000) / 100; + this.l10n.get("page_scale_percent", { scale: customScale - }, '{{scale}}%').then(msg => { + }, "{{scale}}%").then(msg => { let predefinedValueFound = false; for (const option of items.scaleSelect.options) { @@ -11082,24 +11140,24 @@ class Toolbar { } updateLoadingIndicatorState(loading = false) { - let pageNumberInput = this.items.pageNumber; + const pageNumberInput = this.items.pageNumber; pageNumberInput.classList.toggle(PAGE_NUMBER_LOADING_INDICATOR, loading); } _adjustScaleWidth() { - let container = this.items.scaleSelectContainer; - let select = this.items.scaleSelect; + const container = this.items.scaleSelectContainer; + const select = this.items.scaleSelect; _ui_utils.animationStarted.then(function () { if (container.clientWidth === 0) { - container.setAttribute('style', 'display: inherit;'); + container.setAttribute("style", "display: inherit;"); } if (container.clientWidth > 0) { - select.setAttribute('style', 'min-width: inherit;'); - let width = select.clientWidth + SCALE_SELECT_CONTAINER_PADDING; - select.setAttribute('style', 'min-width: ' + (width + SCALE_SELECT_PADDING) + 'px;'); - container.setAttribute('style', 'min-width: ' + width + 'px; ' + 'max-width: ' + width + 'px;'); + select.setAttribute("style", "min-width: inherit;"); + const width = select.clientWidth + SCALE_SELECT_CONTAINER_PADDING; + select.setAttribute("style", `min-width: ${width + SCALE_SELECT_PADDING}px;`); + container.setAttribute("style", `min-width: ${width}px; max-width: ${width}px;`); } }); } @@ -11126,9 +11184,9 @@ class ViewHistory { this.fingerprint = fingerprint; this.cacheSize = cacheSize; this._initializedPromise = this._readFromStorage().then(databaseStr => { - let database = JSON.parse(databaseStr || '{}'); + const database = JSON.parse(databaseStr || "{}"); - if (!('files' in database)) { + if (!("files" in database)) { database.files = []; } else { while (database.files.length >= this.cacheSize) { @@ -11139,7 +11197,7 @@ class ViewHistory { let index = -1; for (let i = 0, length = database.files.length; i < length; i++) { - let branch = database.files[i]; + const branch = database.files[i]; if (branch.fingerprint === this.fingerprint) { index = i; @@ -11159,12 +11217,12 @@ class ViewHistory { } async _writeToStorage() { - let databaseStr = JSON.stringify(this.database); - sessionStorage.setItem('pdfjs.history', databaseStr); + const databaseStr = JSON.stringify(this.database); + sessionStorage.setItem("pdfjs.history", databaseStr); } async _readFromStorage() { - return sessionStorage.getItem('pdfjs.history'); + return sessionStorage.getItem("pdfjs.history"); } async set(name, val) { @@ -11176,7 +11234,7 @@ class ViewHistory { async setMultiple(properties) { await this._initializedPromise; - for (let name in properties) { + for (const name in properties) { this.file[name] = properties[name]; } @@ -11185,16 +11243,16 @@ class ViewHistory { async get(name, defaultValue) { await this._initializedPromise; - let val = this.file[name]; + const val = this.file[name]; return val !== undefined ? val : defaultValue; } async getMultiple(properties) { await this._initializedPromise; - let values = Object.create(null); + const values = Object.create(null); - for (let name in properties) { - let val = this.file[name]; + for (const name in properties) { + const val = this.file[name]; values[name] = val !== undefined ? val : properties[name]; } @@ -11229,39 +11287,39 @@ var _app = __webpack_require__(1); ; -let FirefoxCom = function FirefoxComClosure() { +const FirefoxCom = function FirefoxComClosure() { return { requestSync(action, data) { - let request = document.createTextNode(''); + const request = document.createTextNode(""); document.documentElement.appendChild(request); - let sender = document.createEvent('CustomEvent'); - sender.initCustomEvent('pdf.js.message', true, false, { + const sender = document.createEvent("CustomEvent"); + sender.initCustomEvent("pdf.js.message", true, false, { action, data, sync: true }); request.dispatchEvent(sender); - let response = sender.detail.response; + const response = sender.detail.response; document.documentElement.removeChild(request); return response; }, request(action, data, callback) { - let request = document.createTextNode(''); + const request = document.createTextNode(""); if (callback) { - document.addEventListener('pdf.js.response', function listener(event) { - let node = event.target; - let response = event.detail.response; + document.addEventListener("pdf.js.response", function listener(event) { + const node = event.target; + const response = event.detail.response; document.documentElement.removeChild(node); - document.removeEventListener('pdf.js.response', listener); + document.removeEventListener("pdf.js.response", listener); return callback(response); }); } document.documentElement.appendChild(request); - let sender = document.createEvent('CustomEvent'); - sender.initCustomEvent('pdf.js.message', true, false, { + const sender = document.createEvent("CustomEvent"); + sender.initCustomEvent("pdf.js.message", true, false, { action, data, sync: false, @@ -11281,15 +11339,15 @@ class DownloadManager { } downloadUrl(url, filename) { - FirefoxCom.request('download', { + FirefoxCom.request("download", { originalUrl: url, filename }); } downloadData(data, filename, contentType) { - let blobUrl = (0, _pdfjsLib.createObjectURL)(data, contentType); - FirefoxCom.request('download', { + const blobUrl = (0, _pdfjsLib.createObjectURL)(data, contentType); + FirefoxCom.request("download", { blobUrl, originalUrl: blobUrl, filename, @@ -11298,9 +11356,9 @@ class DownloadManager { } download(blob, url, filename) { - let blobUrl = URL.createObjectURL(blob); + const blobUrl = URL.createObjectURL(blob); - let onResponse = err => { + const onResponse = err => { if (err && this.onerror) { this.onerror(err); } @@ -11308,7 +11366,7 @@ class DownloadManager { URL.revokeObjectURL(blobUrl); }; - FirefoxCom.request('download', { + FirefoxCom.request("download", { blobUrl, originalUrl: url, filename @@ -11322,14 +11380,14 @@ exports.DownloadManager = DownloadManager; class FirefoxPreferences extends _preferences.BasePreferences { async _writeToStorage(prefObj) { return new Promise(function (resolve) { - FirefoxCom.request('setPreferences', prefObj, resolve); + FirefoxCom.request("setPreferences", prefObj, resolve); }); } async _readFromStorage(prefObj) { return new Promise(function (resolve) { - FirefoxCom.request('getPreferences', prefObj, function (prefStr) { - let readPrefs = JSON.parse(prefStr); + FirefoxCom.request("getPreferences", prefObj, function (prefStr) { + const readPrefs = JSON.parse(prefStr); resolve(readPrefs); }); }); @@ -11361,7 +11419,7 @@ class MozL10n { } (function listenFindEvents() { - const events = ['find', 'findagain', 'findhighlightallchange', 'findcasesensitivitychange', 'findentirewordchange', 'findbarclose']; + const events = ["find", "findagain", "findhighlightallchange", "findcasesensitivitychange", "findentirewordchange", "findbarclose"]; const handleEvent = function ({ type, @@ -11371,7 +11429,7 @@ class MozL10n { return; } - if (type === 'findbarclose') { + if (type === "findbarclose") { _app.PDFViewerApplication.eventBus.dispatch(type, { source: window }); @@ -11379,9 +11437,9 @@ class MozL10n { return; } - _app.PDFViewerApplication.eventBus.dispatch('find', { + _app.PDFViewerApplication.eventBus.dispatch("find", { source: window, - type: type.substring('find'.length), + type: type.substring("find".length), query: detail.query, phraseSearch: true, caseSensitive: !!detail.caseSensitive, @@ -11397,7 +11455,7 @@ class MozL10n { })(); (function listenZoomEvents() { - const events = ['zoomin', 'zoomout', 'zoomreset']; + const events = ["zoomin", "zoomout", "zoomreset"]; const handleEvent = function ({ type, @@ -11407,7 +11465,7 @@ class MozL10n { return; } - if (type === 'zoomreset' && _app.PDFViewerApplication.pdfViewer.currentScaleValue === _ui_utils.DEFAULT_SCALE_VALUE) { + if (type === "zoomreset" && _app.PDFViewerApplication.pdfViewer.currentScaleValue === _ui_utils.DEFAULT_SCALE_VALUE) { return; } @@ -11423,72 +11481,72 @@ class MozL10n { class FirefoxComDataRangeTransport extends _pdfjsLib.PDFDataRangeTransport { requestDataRange(begin, end) { - FirefoxCom.request('requestDataRange', { + FirefoxCom.request("requestDataRange", { begin, end }); } abort() { - FirefoxCom.requestSync('abortLoading', null); + FirefoxCom.requestSync("abortLoading", null); } } _app.PDFViewerApplication.externalServices = { updateFindControlState(data) { - FirefoxCom.request('updateFindControlState', data); + FirefoxCom.request("updateFindControlState", data); }, updateFindMatchesCount(data) { - FirefoxCom.request('updateFindMatchesCount', data); + FirefoxCom.request("updateFindMatchesCount", data); }, initPassiveLoading(callbacks) { let pdfDataRangeTransport; - window.addEventListener('message', function windowMessage(e) { + window.addEventListener("message", function windowMessage(e) { if (e.source !== null) { - console.warn('Rejected untrusted message from ' + e.origin); + console.warn("Rejected untrusted message from " + e.origin); return; } - let args = e.data; + const args = e.data; - if (typeof args !== 'object' || !('pdfjsLoadAction' in args)) { + if (typeof args !== "object" || !("pdfjsLoadAction" in args)) { return; } switch (args.pdfjsLoadAction) { - case 'supportsRangedLoading': + case "supportsRangedLoading": pdfDataRangeTransport = new FirefoxComDataRangeTransport(args.length, args.data, args.done); callbacks.onOpenWithTransport(args.pdfUrl, args.length, pdfDataRangeTransport); break; - case 'range': + case "range": pdfDataRangeTransport.onDataRange(args.begin, args.chunk); break; - case 'rangeProgress': + case "rangeProgress": pdfDataRangeTransport.onDataProgress(args.loaded); break; - case 'progressiveRead': + case "progressiveRead": pdfDataRangeTransport.onDataProgressiveRead(args.chunk); pdfDataRangeTransport.onDataProgress(args.loaded, args.total); break; - case 'progressiveDone': + case "progressiveDone": if (pdfDataRangeTransport) { pdfDataRangeTransport.onDataProgressiveDone(); } break; - case 'progress': + case "progress": callbacks.onProgress(args.loaded, args.total); break; - case 'complete': + case "complete": if (!args.data) { callbacks.onError(args.errorCode); break; @@ -11498,15 +11556,15 @@ _app.PDFViewerApplication.externalServices = { break; } }); - FirefoxCom.requestSync('initPassiveLoading', null); + FirefoxCom.requestSync("initPassiveLoading", null); }, fallback(data, callback) { - FirefoxCom.request('fallback', data, callback); + FirefoxCom.request("fallback", data, callback); }, reportTelemetry(data) { - FirefoxCom.request('reportTelemetry', JSON.stringify(data)); + FirefoxCom.request("reportTelemetry", JSON.stringify(data)); }, createDownloadManager(options) { @@ -11518,38 +11576,38 @@ _app.PDFViewerApplication.externalServices = { }, createL10n(options) { - let mozL10n = document.mozL10n; + const mozL10n = document.mozL10n; return new MozL10n(mozL10n); }, get supportsIntegratedFind() { - let support = FirefoxCom.requestSync('supportsIntegratedFind'); - return (0, _pdfjsLib.shadow)(this, 'supportsIntegratedFind', support); + const support = FirefoxCom.requestSync("supportsIntegratedFind"); + return (0, _pdfjsLib.shadow)(this, "supportsIntegratedFind", support); }, get supportsDocumentFonts() { - let support = FirefoxCom.requestSync('supportsDocumentFonts'); - return (0, _pdfjsLib.shadow)(this, 'supportsDocumentFonts', support); + const support = FirefoxCom.requestSync("supportsDocumentFonts"); + return (0, _pdfjsLib.shadow)(this, "supportsDocumentFonts", support); }, get supportsDocumentColors() { - let support = FirefoxCom.requestSync('supportsDocumentColors'); - return (0, _pdfjsLib.shadow)(this, 'supportsDocumentColors', support); + const support = FirefoxCom.requestSync("supportsDocumentColors"); + return (0, _pdfjsLib.shadow)(this, "supportsDocumentColors", support); }, get supportedMouseWheelZoomModifierKeys() { - let support = FirefoxCom.requestSync('supportedMouseWheelZoomModifierKeys'); - return (0, _pdfjsLib.shadow)(this, 'supportedMouseWheelZoomModifierKeys', support); + const support = FirefoxCom.requestSync("supportedMouseWheelZoomModifierKeys"); + return (0, _pdfjsLib.shadow)(this, "supportedMouseWheelZoomModifierKeys", support); } }; document.mozL10n.setExternalLocalizerServices({ getLocale() { - return FirefoxCom.requestSync('getLocale', null); + return FirefoxCom.requestSync("getLocale", null); }, getStrings(key) { - return FirefoxCom.requestSync('getStrings', key); + return FirefoxCom.requestSync("getStrings", key); } }); @@ -11723,12 +11781,12 @@ function getDefaultPreferences() { class BasePreferences { constructor() { if (this.constructor === BasePreferences) { - throw new Error('Cannot initialize BasePreferences.'); + throw new Error("Cannot initialize BasePreferences."); } this.prefs = null; this._initializedPromise = getDefaultPreferences().then(defaults => { - Object.defineProperty(this, 'defaults', { + Object.defineProperty(this, "defaults", { value: Object.freeze(defaults), writable: false, enumerable: true, @@ -11741,7 +11799,7 @@ class BasePreferences { return; } - for (let name in prefs) { + for (const name in prefs) { const defaultValue = this.defaults[name], prefValue = prefs[name]; @@ -11755,11 +11813,11 @@ class BasePreferences { } async _writeToStorage(prefObj) { - throw new Error('Not implemented: _writeToStorage'); + throw new Error("Not implemented: _writeToStorage"); } async _readFromStorage(prefObj) { - throw new Error('Not implemented: _readFromStorage'); + throw new Error("Not implemented: _readFromStorage"); } async reset() { @@ -11770,25 +11828,25 @@ class BasePreferences { async set(name, value) { await this._initializedPromise; - let defaultValue = this.defaults[name]; + const defaultValue = this.defaults[name]; if (defaultValue === undefined) { throw new Error(`Set preference: "${name}" is undefined.`); } else if (value === undefined) { - throw new Error('Set preference: no value is specified.'); + throw new Error("Set preference: no value is specified."); } - let valueType = typeof value; - let defaultType = typeof defaultValue; + const valueType = typeof value; + const defaultType = typeof defaultValue; if (valueType !== defaultType) { - if (valueType === 'number' && defaultType === 'string') { + if (valueType === "number" && defaultType === "string") { value = value.toString(); } else { throw new Error(`Set preference: "${value}" is a ${valueType}, ` + `expected a ${defaultType}.`); } } else { - if (valueType === 'number' && !Number.isInteger(value)) { + if (valueType === "number" && !Number.isInteger(value)) { throw new Error(`Set preference: "${value}" must be an integer.`); } } @@ -11799,12 +11857,12 @@ class BasePreferences { async get(name) { await this._initializedPromise; - let defaultValue = this.defaults[name]; + const defaultValue = this.defaults[name]; if (defaultValue === undefined) { throw new Error(`Get preference: "${name}" is undefined.`); } else { - let prefValue = this.prefs[name]; + const prefValue = this.prefs[name]; if (prefValue !== undefined) { return prefValue; @@ -11844,32 +11902,32 @@ var _app = __webpack_require__(1); var _pdfjsLib = __webpack_require__(4); function composePage(pdfDocument, pageNumber, size, printContainer) { - let canvas = document.createElement('canvas'); - const PRINT_RESOLUTION = _app_options.AppOptions.get('printResolution') || 150; + const canvas = document.createElement("canvas"); + const PRINT_RESOLUTION = _app_options.AppOptions.get("printResolution") || 150; const PRINT_UNITS = PRINT_RESOLUTION / 72.0; canvas.width = Math.floor(size.width * PRINT_UNITS); canvas.height = Math.floor(size.height * PRINT_UNITS); - canvas.style.width = Math.floor(size.width * _ui_utils.CSS_UNITS) + 'px'; - canvas.style.height = Math.floor(size.height * _ui_utils.CSS_UNITS) + 'px'; - let canvasWrapper = document.createElement('div'); + canvas.style.width = Math.floor(size.width * _ui_utils.CSS_UNITS) + "px"; + canvas.style.height = Math.floor(size.height * _ui_utils.CSS_UNITS) + "px"; + const canvasWrapper = document.createElement("div"); canvasWrapper.appendChild(canvas); printContainer.appendChild(canvasWrapper); canvas.mozPrintCallback = function (obj) { - let ctx = obj.context; + const ctx = obj.context; ctx.save(); - ctx.fillStyle = 'rgb(255, 255, 255)'; + ctx.fillStyle = "rgb(255, 255, 255)"; ctx.fillRect(0, 0, canvas.width, canvas.height); ctx.restore(); pdfDocument.getPage(pageNumber).then(function (pdfPage) { - let renderContext = { + const renderContext = { canvasContext: ctx, transform: [PRINT_UNITS, 0, 0, PRINT_UNITS, 0, 0], viewport: pdfPage.getViewport({ scale: 1, rotation: size.rotation }), - intent: 'print' + intent: "print" }; return pdfPage.render(renderContext).promise; }).then(function () { @@ -11877,7 +11935,7 @@ function composePage(pdfDocument, pageNumber, size, printContainer) { }, function (error) { console.error(error); - if ('abort' in obj) { + if ("abort" in obj) { obj.abort(); } else { obj.done(); @@ -11899,8 +11957,8 @@ FirefoxPrintService.prototype = { pagesOverview, printContainer } = this; - const body = document.querySelector('body'); - body.setAttribute('data-pdfjsprinting', true); + const body = document.querySelector("body"); + body.setAttribute("data-pdfjsprinting", true); for (let i = 0, ii = pagesOverview.length; i < ii; ++i) { composePage(pdfDocument, i + 1, pagesOverview[i], printContainer); @@ -11908,17 +11966,17 @@ FirefoxPrintService.prototype = { }, destroy() { - this.printContainer.textContent = ''; - const body = document.querySelector('body'); - body.removeAttribute('data-pdfjsprinting'); + this.printContainer.textContent = ""; + const body = document.querySelector("body"); + body.removeAttribute("data-pdfjsprinting"); } }; _app.PDFPrintServiceFactory.instance = { get supportsPrinting() { - let canvas = document.createElement('canvas'); - let value = 'mozPrintCallback' in canvas; - return (0, _pdfjsLib.shadow)(this, 'supportsPrinting', value); + const canvas = document.createElement("canvas"); + const value = "mozPrintCallback" in canvas; + return (0, _pdfjsLib.shadow)(this, "supportsPrinting", value); }, createPrintService(pdfDocument, pagesOverview, printContainer) { diff --git a/browser/extensions/pdfjs/moz.yaml b/browser/extensions/pdfjs/moz.yaml index 33862b96513a..9cc25fe149d1 100644 --- a/browser/extensions/pdfjs/moz.yaml +++ b/browser/extensions/pdfjs/moz.yaml @@ -20,7 +20,7 @@ origin: # Human-readable identifier for this version/release # Generally "version NNN", "tag SSS", "bookmark SSS" - release: version 2.4.176 + release: version 2.4.254 # The package's license, where possible using the mnemonic from # https://spdx.org/licenses/