ngx-extended-pdf-viewer
Version:
Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.
22 lines • 962 kB
JavaScript
/**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2020 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @licend The above is the entire license notice for the
* Javascript code in this page
*/
!function webpackUniversalModuleDefinition(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],r):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=r():t["pdfjs-dist/build/pdf.worker"]=t.pdfjsWorker=r()}(this,(function(){return function(t){var r={};function __w_pdfjs_require__(a){if(r[a])return r[a].exports;var i=r[a]={i:a,l:!1,exports:{}};t[a].call(i.exports,i,i.exports,__w_pdfjs_require__);i.l=!0;return i.exports}__w_pdfjs_require__.m=t;__w_pdfjs_require__.c=r;__w_pdfjs_require__.d=function(t,r,a){__w_pdfjs_require__.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:a})};__w_pdfjs_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:!0})};__w_pdfjs_require__.t=function(t,r){1&r&&(t=__w_pdfjs_require__(t));if(8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);__w_pdfjs_require__.r(a);Object.defineProperty(a,"default",{enumerable:!0,value:t});if(2&r&&"string"!=typeof t)for(var i in t)__w_pdfjs_require__.d(a,i,function(r){return t[r]}.bind(null,i));return a};__w_pdfjs_require__.n=function(t){var r=t&&t.__esModule?function getDefault(){return t.default}:function getModuleExports(){return t};__w_pdfjs_require__.d(r,"a",r);return r};__w_pdfjs_require__.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};__w_pdfjs_require__.p="";return __w_pdfjs_require__(__w_pdfjs_require__.s=0)}([function(t,r,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0});Object.defineProperty(r,"WorkerMessageHandler",{enumerable:!0,get:function get(){return i.WorkerMessageHandler}});var i=a(1)},function(t,r,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.WorkerMessageHandler=r.WorkerTask=void 0;var i=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}(a(2)),o=a(5),c=a(201),l=a(202),u=a(223),h=a(243),d=a(244),p=a(204);function _toArray(t){return _arrayWithHoles(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _slicedToArray(t,r){return _arrayWithHoles(t)||function _iterableToArrayLimit(t,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var a=[],i=!0,o=!1,c=void 0;try{for(var l,u=t[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){a.push(l.value);if(r&&a.length===r)break}}catch(t){o=!0;c=t}finally{try{i||null==u.return||u.return()}finally{if(o)throw c}}return a}(t,r)||_unsupportedIterableToArray(t,r)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);return"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function _arrayWithHoles(t){if(Array.isArray(t))return t}function asyncGeneratorStep(t,r,a,i,o,c,l){try{var u=t[c](l),h=u.value}catch(t){a(t);return}u.done?r(h):Promise.resolve(h).then(i,o)}function _asyncToGenerator(t){return function(){var r=this,a=arguments;return new Promise((function(i,o){var c=t.apply(r,a);function _next(t){asyncGeneratorStep(c,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(c,i,o,_next,_throw,"throw",t)}_next(void 0)}))}}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}var m=function(){function WorkerTask(t){_classCallCheck(this,WorkerTask);this.name=t;this.terminated=!1;this._capability=(0,o.createPromiseCapability)()}_createClass(WorkerTask,[{key:"finish",value:function finish(){this._capability.resolve()}},{key:"terminate",value:function terminate(){this.terminated=!0}},{key:"ensureNotTerminated",value:function ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}},{key:"finished",get:function get(){return this._capability.promise}}]);return WorkerTask}();r.WorkerTask=m;var g=function(){function WorkerMessageHandler(){_classCallCheck(this,WorkerMessageHandler)}_createClass(WorkerMessageHandler,null,[{key:"setup",value:function setup(t,r){var a=!1;t.on("test",(function wphSetupTest(r){if(!a){a=!0;if(r instanceof Uint8Array){var i=255===r[0];t.postMessageTransfers=i;t.send("test",{supportTransfers:i})}else t.send("test",null)}}));t.on("configure",(function wphConfigure(t){(0,o.setVerbosityLevel)(t.verbosity)}));t.on("GetDocRequest",(function wphSetupDoc(t){return WorkerMessageHandler.createDocumentHandler(t,r)}))}},{key:"createDocumentHandler",value:function createDocumentHandler(t,r){var a,g=!1,y=null,b=[],v=(0,o.getVerbosityLevel)(),S=t.apiVersion;if("2.7.54"!==S)throw new Error('The API version "'.concat(S,'" does not match ')+'the Worker version "'.concat("2.7.54",'".'));var k=[];for(var w in[])k.push(w);if(k.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+k.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");var C=t.docId,_=t.docBaseUrl,x=t.docId+"_worker",A=new h.MessageHandler(x,C,r);A.postMessageTransfers=t.postMessageTransfers;function ensureNotTerminated(){if(g)throw new Error("Worker was terminated")}function startWorkerTask(t){b.push(t)}function finishWorkerTask(t){t.finish();var r=b.indexOf(t);b.splice(r,1)}function loadDocument(t){return _loadDocument.apply(this,arguments)}function _loadDocument(){return(_loadDocument=_asyncToGenerator(i.default.mark((function _callee(t){var r,o,c,l;return i.default.wrap((function _callee$(i){for(;;)switch(i.prev=i.next){case 0:i.next=2;return a.ensureDoc("checkHeader");case 2:i.next=4;return a.ensureDoc("parseStartXRef");case 4:i.next=6;return a.ensureDoc("parse",[t]);case 6:if(t){i.next=9;break}i.next=9;return a.ensureDoc("checkFirstPage");case 9:i.next=11;return Promise.all([a.ensureDoc("numPages"),a.ensureDoc("fingerprint")]);case 11:r=i.sent;o=_slicedToArray(r,2);c=o[0];l=o[1];return i.abrupt("return",{numPages:c,fingerprint:l});case 16:case"end":return i.stop()}}),_callee)})))).apply(this,arguments)}function getPdfManager(t,r){var a,i=(0,o.createPromiseCapability)(),c=t.source;if(c.data){try{a=new l.LocalPdfManager(C,c.data,c.password,r,_);i.resolve(a)}catch(t){i.reject(t)}return i.promise}var u,h=[];try{u=new d.PDFWorkerStream(A)}catch(t){i.reject(t);return i.promise}var p=u.getFullReader();p.headersReady.then((function(){if(p.isRangeSupported){var t=c.disableAutoFetch||p.isStreamingSupported;a=new l.NetworkPdfManager(C,u,{msgHandler:A,password:c.password,length:p.contentLength,disableAutoFetch:t,rangeChunkSize:c.rangeChunkSize},r,_);for(var o=0;o<h.length;o++)a.sendProgressiveData(h[o]);h=[];i.resolve(a);y=null}})).catch((function(t){i.reject(t);y=null}));var m=0;new Promise((function(t,u){p.read().then((function readChunk(t){var d=t.value,g=t.done;try{ensureNotTerminated();if(g){a||function flushChunks(){var t=(0,o.arraysToBytes)(h);c.length&&t.length!==c.length&&(0,o.warn)("reported HTTP length is different from actual");try{a=new l.LocalPdfManager(C,t,c.password,r,_);i.resolve(a)}catch(t){i.reject(t)}h=[]}();y=null;return}m+=(0,o.arrayByteLength)(d);p.isStreamingSupported||A.send("DocProgress",{loaded:m,total:Math.max(m,p.contentLength||0)});a?a.sendProgressiveData(d):h.push(d);p.read().then(readChunk,u)}catch(t){u(t)}}),u)})).catch((function(t){i.reject(t);y=null}));y=function cancelXHRs(t){u.cancelAllRequests(t)};return i.promise}A.on("GetPage",(function wphSetupGetPage(t){return a.getPage(t.pageIndex).then((function(t){return Promise.all([a.ensure(t,"rotate"),a.ensure(t,"ref"),a.ensure(t,"userUnit"),a.ensure(t,"view")]).then((function(t){var r=_slicedToArray(t,4);return{rotate:r[0],ref:r[1],userUnit:r[2],view:r[3]}}))}))}));A.on("GetPageIndex",(function wphSetupGetPageIndex(t){var r=t.ref,i=c.Ref.get(r.num,r.gen);return a.ensureCatalog("getPageIndex",[i])}));A.on("GetDestinations",(function wphSetupGetDestinations(t){return a.ensureCatalog("destinations")}));A.on("GetDestination",(function wphSetupGetDestination(t){return a.ensureCatalog("getDestination",[t.id])}));A.on("GetPageLabels",(function wphSetupGetPageLabels(t){return a.ensureCatalog("pageLabels")}));A.on("GetPageLayout",(function wphSetupGetPageLayout(t){return a.ensureCatalog("pageLayout")}));A.on("GetPageMode",(function wphSetupGetPageMode(t){return a.ensureCatalog("pageMode")}));A.on("GetViewerPreferences",(function(t){return a.ensureCatalog("viewerPreferences")}));A.on("GetOpenAction",(function(t){return a.ensureCatalog("openAction")}));A.on("GetAttachments",(function wphSetupGetAttachments(t){return a.ensureCatalog("attachments")}));A.on("GetJavaScript",(function wphSetupGetJavaScript(t){return a.ensureCatalog("javaScript")}));A.on("GetOutline",(function wphSetupGetOutline(t){return a.ensureCatalog("documentOutline")}));A.on("GetOptionalContentConfig",(function(t){return a.ensureCatalog("optionalContentConfig")}));A.on("GetPermissions",(function(t){return a.ensureCatalog("permissions")}));A.on("GetMetadata",(function wphSetupGetMetadata(t){return Promise.all([a.ensureDoc("documentInfo"),a.ensureCatalog("metadata")])}));A.on("GetData",(function wphSetupGetData(t){a.requestLoadedStream();return a.onLoadedStream().then((function(t){return t.bytes}))}));A.on("GetStats",(function wphSetupGetStats(t){return a.ensureXRef("stats")}));A.on("GetAnnotations",(function(t){var r=t.pageIndex,i=t.intent;return a.getPage(r).then((function(t){return t.getAnnotationsData(i)}))}));A.on("SaveDocument",(function(t){var r=t.numPages,i=t.annotationStorage,l=t.filename;a.requestLoadedStream();for(var h=[a.onLoadedStream(),a.ensureCatalog("acroForm")],d=a.pdfDocument,p=function _loop(t){h.push(a.getPage(t).then((function(r){var a=new m("Save: page ".concat(t));return r.save(A,a,i)})))},g=0;g<r;g++)p(g);return Promise.all(h).then((function(t){var r,a=_toArray(t),i=a[0],h=a[1],p=[],m=function _createForOfIteratorHelper(t,r){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,l=!0,u=!1;return{s:function s(){a=t[Symbol.iterator]()},n:function n(){var t=a.next();l=t.done;return t},e:function e(t){u=!0;c=t},f:function f(){try{l||null==a.return||a.return()}finally{if(u)throw c}}}}(a.slice(2));try{for(m.s();!(r=m.n()).done;){p=r.value.filter((function(t){return null!==t})).reduce((function(t,r){return t.concat(r)}),p)}}catch(t){m.e(t)}finally{m.f()}if(0===p.length)return i.bytes;var g=h instanceof c.Dict&&h.get("XFA")||[],y=null;if(Array.isArray(g))for(var b=0,v=g.length;b<v;b+=2)"datasets"===g[b]&&(y=g[b+1]);else(0,o.warn)("Unsupported XFA type.");var S=d.xref,k=Object.create(null);if(S.trailer){var w=Object.create(null),C=S.trailer.get("Info")||null;C instanceof c.Dict&&C.forEach((function(t,r){(0,o.isString)(t)&&(0,o.isString)(r)&&(w[t]=(0,o.stringToPDFString)(r))}));k={rootRef:S.trailer.getRaw("Root")||null,encrypt:S.trailer.getRaw("Encrypt")||null,newRef:S.getNewRef(),infoRef:S.trailer.getRaw("Info")||null,info:w,fileIds:S.trailer.getRaw("ID")||null,startXRef:d.startXRef,filename:l}}S.resetNewRef();return(0,u.incrementalUpdate)({originalData:i.bytes,xrefInfo:k,newRefs:p,xref:S,datasetsRef:y})}))}));A.on("GetOperatorList",(function wphSetupRenderPage(t,r){var i=t.pageIndex;a.getPage(i).then((function(a){var c=new m("GetOperatorList: page ".concat(i));startWorkerTask(c);var l=v>=o.VerbosityLevel.INFOS?Date.now():0;a.getOperatorList({handler:A,sink:r,task:c,intent:t.intent,renderInteractiveForms:t.renderInteractiveForms,annotationStorage:t.annotationStorage}).then((function(t){finishWorkerTask(c);l&&(0,o.info)("page=".concat(i+1," - getOperatorList: time=")+"".concat(Date.now()-l,"ms, len=").concat(t.length));r.close()}),(function(t){finishWorkerTask(c);if(!c.terminated){A.send("UnsupportedFeature",{featureId:o.UNSUPPORTED_FEATURES.errorOperatorList});r.error(t)}}))}))}),this);A.on("GetTextContent",(function wphExtractText(t,r){var i=t.pageIndex;r.onPull=function(t){};r.onCancel=function(t){};a.getPage(i).then((function(a){var c=new m("GetTextContent: page "+i);startWorkerTask(c);var l=v>=o.VerbosityLevel.INFOS?Date.now():0;a.extractTextContent({handler:A,task:c,sink:r,normalizeWhitespace:t.normalizeWhitespace,combineTextItems:t.combineTextItems}).then((function(){finishWorkerTask(c);l&&(0,o.info)("page=".concat(i+1," - getTextContent: time=")+"".concat(Date.now()-l,"ms"));r.close()}),(function(t){finishWorkerTask(c);c.terminated||r.error(t)}))}))}));A.on("FontFallback",(function(t){return a.fontFallback(t.id,A)}));A.on("Cleanup",(function wphCleanup(t){return a.cleanup(!0)}));A.on("Terminate",(function wphTerminate(t){g=!0;var r=[];if(a){a.terminate(new o.AbortException("Worker was terminated."));var i=a.cleanup();r.push(i);a=null}else(0,c.clearPrimitiveCaches)();y&&y(new o.AbortException("Worker was terminated."));b.forEach((function(t){r.push(t.finished);t.terminate()}));return Promise.all(r).then((function(){A.destroy();A=null}))}));A.on("Ready",(function wphReady(r){!function setupDoc(t){function onSuccess(t){ensureNotTerminated();A.send("GetDoc",{pdfInfo:t})}function onFailure(t){ensureNotTerminated();if(t instanceof o.PasswordException){var r=new m("PasswordException: response ".concat(t.code));startWorkerTask(r);A.sendWithPromise("PasswordRequest",t).then((function(t){var i=t.password;finishWorkerTask(r);a.updatePassword(i);pdfManagerReady()})).catch((function(){finishWorkerTask(r);A.send("DocException",t)}))}else t instanceof o.InvalidPDFException||t instanceof o.MissingPDFException||t instanceof o.UnexpectedResponseException||t instanceof o.UnknownErrorException?A.send("DocException",t):A.send("DocException",new o.UnknownErrorException(t.message,t.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(t){ensureNotTerminated();if(t instanceof p.XRefParseException){a.requestLoadedStream();a.onLoadedStream().then((function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)}))}else onFailure(t)}))}ensureNotTerminated();getPdfManager(t,{maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties}).then((function(t){if(g){t.terminate(new o.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}(a=t).onLoadedStream().then((function(t){A.send("DataLoaded",{length:t.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(t);t=null}));A.on("showUnverifiedSignatures",(function wphReady(t){t&&console.log("showUnverifiedSignatures="+t+". This is an incompletely implemented feature. Signatures cannot be validated, so use it at own risk.");self.showUnverifiedSignatures=t}));return x}},{key:"initializeFromPort",value:function initializeFromPort(t){var r=new h.MessageHandler("worker","main",t);WorkerMessageHandler.setup(r,t);r.send("ready",null)}}]);return WorkerMessageHandler}();r.WorkerMessageHandler=g;"undefined"==typeof window&&"undefined"!=typeof self&&function isMessagePort(t){return"function"==typeof t.postMessage&&"onmessage"in t}(self)&&g.initializeFromPort(self)},function(t,r,a){"use strict";t.exports=a(3)},function(t,r,a){"use strict";(function(t){function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=function(t){var r=Object.prototype,a=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function define(t,r,a){Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0});return t[r]}try{define({},"")}catch(t){define=function define(t,r,a){return t[r]=a}}function wrap(t,r,a,i){var o=r&&r.prototype instanceof Generator?r:Generator,c=Object.create(o.prototype),l=new Context(i||[]);c._invoke=function makeInvokeMethod(t,r,a){var i="suspendedStart";return function invoke(o,c){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw c;return doneResult()}a.method=o;a.arg=c;for(;;){var l=a.delegate;if(l){var h=maybeInvokeDelegate(l,a);if(h){if(h===u)continue;return h}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===i){i="completed";throw a.arg}a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i="executing";var d=tryCatch(t,r,a);if("normal"===d.type){i=a.done?"completed":"suspendedYield";if(d.arg===u)continue;return{value:d.arg,done:a.done}}if("throw"===d.type){i="completed";a.method="throw";a.arg=d.arg}}}}(t,a,l);return c}t.wrap=wrap;function tryCatch(t,r,a){try{return{type:"normal",arg:t.call(r,a)}}catch(t){return{type:"throw",arg:t}}}var u={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var h={};h[o]=function(){return this};var d=Object.getPrototypeOf,p=d&&d(d(values([])));p&&p!==r&&a.call(p,o)&&(h=p);var m=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(h);GeneratorFunction.prototype=m.constructor=GeneratorFunctionPrototype;GeneratorFunctionPrototype.constructor=GeneratorFunction;GeneratorFunction.displayName=define(GeneratorFunctionPrototype,l,"GeneratorFunction");function defineIteratorMethods(t){["next","throw","return"].forEach((function(r){define(t,r,(function(t){return this._invoke(r,t)}))}))}t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===GeneratorFunction||"GeneratorFunction"===(r.displayName||r.name))};t.mark=function(t){if(Object.setPrototypeOf)Object.setPrototypeOf(t,GeneratorFunctionPrototype);else{t.__proto__=GeneratorFunctionPrototype;define(t,l,"GeneratorFunction")}t.prototype=Object.create(m);return t};t.awrap=function(t){return{__await:t}};function AsyncIterator(t,r){var i;this._invoke=function enqueue(o,c){function callInvokeWithMethodAndArg(){return new r((function(i,l){!function invoke(i,o,c,l){var u=tryCatch(t[i],t,o);if("throw"!==u.type){var h=u.arg,d=h.value;return d&&"object"===_typeof(d)&&a.call(d,"__await")?r.resolve(d.__await).then((function(t){invoke("next",t,c,l)}),(function(t){invoke("throw",t,c,l)})):r.resolve(d).then((function(t){h.value=t;c(h)}),(function(t){return invoke("throw",t,c,l)}))}l(u.arg)}(o,c,i,l)}))}return i=i?i.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}defineIteratorMethods(AsyncIterator.prototype);AsyncIterator.prototype[c]=function(){return this};t.AsyncIterator=AsyncIterator;t.async=function(r,a,i,o,c){void 0===c&&(c=Promise);var l=new AsyncIterator(wrap(r,a,i,o),c);return t.isGeneratorFunction(a)?l:l.next().then((function(t){return t.done?t.value:l.next()}))};function maybeInvokeDelegate(t,r){var a=t.iterator[r.method];if(void 0===a){r.delegate=null;if("throw"===r.method){if(t.iterator.return){r.method="return";r.arg=void 0;maybeInvokeDelegate(t,r);if("throw"===r.method)return u}r.method="throw";r.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var i=tryCatch(a,t.iterator,r.arg);if("throw"===i.type){r.method="throw";r.arg=i.arg;r.delegate=null;return u}var o=i.arg;if(!o){r.method="throw";r.arg=new TypeError("iterator result is not an object");r.delegate=null;return u}if(!o.done)return o;r[t.resultName]=o.value;r.next=t.nextLoc;if("return"!==r.method){r.method="next";r.arg=void 0}r.delegate=null;return u}defineIteratorMethods(m);define(m,l,"Generator");m[o]=function(){return this};m.toString=function(){return"[object Generator]"};function pushTryEntry(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]);if(2 in t){r.finallyLoc=t[2];r.afterLoc=t[3]}this.tryEntries.push(r)}function resetTryEntry(t){var r=t.completion||{};r.type="normal";delete r.arg;t.completion=r}function Context(t){this.tryEntries=[{tryLoc:"root"}];t.forEach(pushTryEntry,this);this.reset(!0)}t.keys=function(t){var r=[];for(var a in t)r.push(a);r.reverse();return function next(){for(;r.length;){var a=r.pop();if(a in t){next.value=a;next.done=!1;return next}}next.done=!0;return next}};function values(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,c=function next(){for(;++i<t.length;)if(a.call(t,i)){next.value=t[i];next.done=!1;return next}next.value=void 0;next.done=!0;return next};return c.next=c}}return{next:doneResult}}t.values=values;function doneResult(){return{value:void 0,done:!0}}Context.prototype={constructor:Context,reset:function reset(t){this.prev=0;this.next=0;this.sent=this._sent=void 0;this.done=!1;this.delegate=null;this.method="next";this.arg=void 0;this.tryEntries.forEach(resetTryEntry);if(!t)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function dispatchException(t){if(this.done)throw t;var r=this;function handle(a,i){c.type="throw";c.arg=t;r.next=a;if(i){r.method="next";r.arg=void 0}return!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],c=o.completion;if("root"===o.tryLoc)return handle("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return handle(o.catchLoc,!0);if(this.prev<o.finallyLoc)return handle(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return handle(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return handle(o.finallyLoc)}}}},abrupt:function abrupt(t,r){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var c=o;break}}c&&("break"===t||"continue"===t)&&c.tryLoc<=r&&r<=c.finallyLoc&&(c=null);var l=c?c.completion:{};l.type=t;l.arg=r;if(c){this.method="next";this.next=c.finallyLoc;return u}return this.complete(l)},complete:function complete(t,r){if("throw"===t.type)throw t.arg;if("break"===t.type||"continue"===t.type)this.next=t.arg;else if("return"===t.type){this.rval=this.arg=t.arg;this.method="return";this.next="end"}else"normal"===t.type&&r&&(this.next=r);return u},finish:function finish(t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.finallyLoc===t){this.complete(a.completion,a.afterLoc);resetTryEntry(a);return u}}},catch:function _catch(t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc===t){var i=a.completion;if("throw"===i.type){var o=i.arg;resetTryEntry(a)}return o}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,r,a){this.delegate={iterator:values(t),resultName:r,nextLoc:a};"next"===this.method&&(this.arg=void 0);return u}};return t}("object"===_typeof(t)?t.exports:{});try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}}).call(this,a(4)(t))},function(t,r,a){"use strict";t.exports=function(t){if(!t.webpackPolyfill){t.deprecate=function(){};t.paths=[];t.children||(t.children=[]);Object.defineProperty(t,"loaded",{enumerable:!0,get:function get(){return t.l}});Object.defineProperty(t,"id",{enumerable:!0,get:function get(){return t.i}});t.webpackPolyfill=1}return t}},function(t,r,a){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.arrayByteLength=arrayByteLength;r.arraysToBytes=function arraysToBytes(t){var r=t.length;if(1===r&&t[0]instanceof Uint8Array)return t[0];for(var a=0,i=0;i<r;i++)a+=arrayByteLength(t[i]);for(var o=0,c=new Uint8Array(a),l=0;l<r;l++){var u=t[l];u instanceof Uint8Array||(u="string"==typeof u?stringToBytes(u):new Uint8Array(u));var h=u.byteLength;c.set(u,o);o+=h}return c};r.assert=assert;r.bytesToString=function bytesToString(t){assert(null!==t&&"object"===_typeof(t)&&void 0!==t.length,"Invalid argument for bytesToString");var r=t.length;if(r<8192)return String.fromCharCode.apply(null,t);for(var a=[],i=0;i<r;i+=8192){var o=Math.min(i+8192,r),c=t.subarray(i,o);a.push(String.fromCharCode.apply(null,c))}return a.join("")};r.createPromiseCapability=function createPromiseCapability(){var t=Object.create(null),r=!1;Object.defineProperty(t,"settled",{get:function get(){return r}});t.promise=new Promise((function(a,i){t.resolve=function(t){r=!0;a(t)};t.reject=function(t){r=!0;i(t)}}));return t};r.escapeString=function escapeString(t){return t.replace(/([\(\)\\\n\r])/g,(function(t){return"\n"===t?"\\n":"\r"===t?"\\r":"\\".concat(t)}))};r.encodeToXmlString=function encodeToXmlString(t){for(var r=[],a=0,i=0,o=t.length;i<o;i++){var c=t.codePointAt(i);if(32<=c&&c<=126){var l=_[c];if(l){a<i&&r.push(t.substring(a,i));r.push(l);a=i+1}}else{a<i&&r.push(t.substring(a,i));r.push("&#x".concat(c.toString(16).toUpperCase(),";"));c>55295&&(c<57344||c>65533)&&i++;a=i+1}}if(0===r.length)return t;a<t.length&&r.push(t.substring(a,t.length));return r.join("")};r.getModificationDate=function getModificationDate(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,r=[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")];return r.join("")};r.getVerbosityLevel=function getVerbosityLevel(){return o};r.info=function info(t){o>=i.INFOS&&console.log("Info: ".concat(t))};r.isArrayBuffer=function isArrayBuffer(t){return"object"===_typeof(t)&&null!==t&&void 0!==t.byteLength};r.isArrayEqual=function isArrayEqual(t,r){if(t.length!==r.length)return!1;return t.every((function(t,a){return t===r[a]}))};r.isBool=function isBool(t){return"boolean"==typeof t};r.isNum=function isNum(t){return"number"==typeof t};r.isString=function isString(t){return"string"==typeof t};r.isSameOrigin=function isSameOrigin(t,r){var a;try{if(!(a=new URL(t)).origin||"null"===a.origin)return!1}catch(t){return!1}var i=new URL(r,a);return a.origin===i.origin};r.createValidAbsoluteUrl=function createValidAbsoluteUrl(t,r){if(!t)return null;try{var a=r?new URL(t,r):new URL(t);if(function _isValidProtocol(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(a))return a}catch(t){}return null};r.removeNullCharacters=function removeNullCharacters(t){if("string"!=typeof t){warn("The argument for removeNullCharacters must be a string.");return t}return t.replace(y,"")};r.setVerbosityLevel=function setVerbosityLevel(t){Number.isInteger(t)&&(o=t)};r.shadow=shadow;r.string32=function string32(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)};r.stringToBytes=stringToBytes;r.stringToPDFString=function stringToPDFString(t){var r=t.length,a=[];if("þ"===t[0]&&"ÿ"===t[1])for(var i=2;i<r;i+=2)a.push(String.fromCharCode(t.charCodeAt(i)<<8|t.charCodeAt(i+1)));else if("ÿ"===t[0]&&"þ"===t[1])for(var o=2;o<r;o+=2)a.push(String.fromCharCode(t.charCodeAt(o+1)<<8|t.charCodeAt(o)));else for(var c=0;c<r;++c){var l=w[t.charCodeAt(c)];a.push(l?String.fromCharCode(l):t.charAt(c))}return a.join("")};r.stringToUTF8String=function stringToUTF8String(t){return decodeURIComponent(escape(t))};r.utf8StringToString=function utf8StringToString(t){return unescape(encodeURIComponent(t))};r.warn=warn;r.unreachable=unreachable;r.IsEvalSupportedCached=r.IsLittleEndianCached=r.createObjectURL=r.FormatError=r.Util=r.UnknownErrorException=r.UnexpectedResponseException=r.TextRenderingMode=r.StreamType=r.PermissionFlag=r.PasswordResponses=r.PasswordException=r.MissingPDFException=r.InvalidPDFException=r.AbortException=r.CMapCompressionType=r.ImageKind=r.FontType=r.AnnotationType=r.AnnotationStateModelType=r.AnnotationReviewState=r.AnnotationReplyType=r.AnnotationMarkedState=r.AnnotationFlag=r.AnnotationFieldFlag=r.AnnotationBorderStyleType=r.UNSUPPORTED_FEATURES=r.VerbosityLevel=r.OPS=r.IDENTITY_MATRIX=r.FONT_IDENTITY_MATRIX=r.BaseException=void 0;a(6);function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1;i.configurable=!0;"value"in i&&(i.writable=!0);Object.defineProperty(t,i.key,i)}}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(t){return typeof t}:function _typeof(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _inherits(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}});r&&_setPrototypeOf(t,r)}function _setPrototypeOf(t,r){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(t,r){t.__proto__=r;return t})(t,r)}function _createSuper(t){var r=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return!0}catch(t){return!1}}();return function _createSuperInternal(){var a,i=_getPrototypeOf(t);if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(i,arguments,o)}else a=i.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(t,r){return!r||"object"!==_typeof(r)&&"function"!=typeof r?function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}r.IDENTITY_MATRIX=[1,0,0,1,0,0];r.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];r.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};r.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};r.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};r.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};r.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};r.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};r.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};r.AnnotationReplyType={GROUP:"Group",REPLY:"R"};r.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};r.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};r.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};r.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};r.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var i={ERRORS:0,WARNINGS:1,INFOS:5};r.VerbosityLevel=i;r.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};r.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};r.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"};r.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var o=i.WARNINGS;function warn(t){o>=i.WARNINGS&&console.log("Warning: ".concat(t))}function unreachable(t){throw new Error(t)}function assert(t,r){t||unreachable(r)}function shadow(t,r,a){Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!1});return a}var c=function BaseExceptionClosure(){function BaseException(t){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=t;this.name=this.constructor.name}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();r.BaseException=c;var l=function(t){_inherits(PasswordException,t);var r=_createSuper(PasswordException);function PasswordException(t,a){var i;_classCallCheck(this,PasswordException);(i=r.call(this,t)).code=a;return i}return PasswordException}(c);r.PasswordException=l;var u=function(t){_inherits(UnknownErrorException,t);var r=_createSuper(UnknownErrorException);function UnknownErrorException(t,a){var i;_classCallCheck(this,UnknownErrorException);(i=r.call(this,t)).details=a;return i}return UnknownErrorException}(c);r.UnknownErrorException=u;var h=function(t){_inherits(InvalidPDFException,t);var r=_createSuper(InvalidPDFException);function InvalidPDFException(){_classCallCheck(this,InvalidPDFException);return r.apply(this,arguments)}return InvalidPDFException}(c);r.InvalidPDFException=h;var d=function(t){_inherits(MissingPDFException,t);var r=_createSuper(MissingPDFException);function MissingPDFException(){_classCallCheck(this,MissingPDFException);return r.apply(this,arguments)}return MissingPDFException}(c);r.MissingPDFException=d;var p=function(t){_inherits(UnexpectedResponseException,t);var r=_createSuper(UnexpectedResponseException);function UnexpectedResponseException(t,a){var i;_classCallCheck(this,UnexpectedResponseException);(i=r.call(this,t)).status=a;return i}return UnexpectedResponseException}(c);r.UnexpectedResponseException=p;var m=function(t){_inherits(FormatError,t);var r=_createSuper(FormatError);function FormatError(){_classCallCheck(this,FormatError);return r.apply(this,arguments)}return FormatError}(c);r.FormatError=m;var g=function(t){_inherits(AbortException,t);var r=_createSuper(AbortException);function AbortException(){_classCallCheck(this,AbortException);return r.apply(this,arguments)}return AbortException}(c);r.AbortException=g;var y=/\x00/g;function stringToBytes(t){assert("string"==typeof t,"Invalid argument for stringToBytes");for(var r=t.length,a=new Uint8Array(r),i=0;i<r;++i)a[i]=255&t.charCodeAt(i);return a}function arrayByteLength(t){if(void 0!==t.length)return t.length;assert(void 0!==t.byteLength,"arrayByteLength - invalid argument.");return t.byteLength}var b={get value(){return shadow(this,"value",function isLittleEndian(){var t=new Uint8Array(4);t[0]=1;return 1===new Uint32Array(t.buffer,0,1)[0]}())}};r.IsLittleEndianCached=b;var v={get value(){return shadow(this,"value",function isEvalSupported(){try{new Function("");return!0}catch(t){return!1}}())}};r.IsEvalSupportedCached=v;var S=["rgb(",0,",",0,",",0,")"],k=function(){function Util(){_classCallCheck(this,Util)}!function _createClass(t,r,a){r&&_defineProperties(t.prototype,r);a&&_defineProperties(t,a);return t}(Util,null,[{key:"makeCssRgb",value:function makeCssRgb(t,r,a){S[1]=t;S[3]=r;S[5]=a;return S.join("")}},{key:"transform",value:function transform(t,r){return[t[0]*r[0]+t[2]*r[1],t[1]*r[0]+t[3]*r[1],t[0]*r[2]+t[2]*r[3],t[1]*r[2]+t[3]*r[3],t[0]*r[4]+t[2]*r[5]+t[4],t[1]*r[4]+t[3]*r[5]+t[5]]}},{key:"applyTransform",value:function applyTransform(t,r){return[t[0]*r[0]+t[1]*r[2]+r[4],t[0]*r[1]+t[1]*r[3]+r[5]]}},{key:"applyInverseTransform",value:function applyInverseTransform(t,r){var a=r[0]*r[3]-r[1]*r[2];return[(t[0]*r[3]-t[1]*r[2]+r[2]*r[5]-r[4]*r[3])/a,(-t[0]*r[1]+t[1]*r[0]+r[4]*r[1]-r[5]*r[0])/a]}},{key:"getAxialAlignedBoundingBox",value:function getAxialAlignedBoundingBox(t,r){var a=Util.applyTransform(t,r),i=Util.applyTransform(t.slice(2,4),r),o=Util.applyTransform([t[0],t[3]],r),c=Util.applyTransform([t[2],t[1]],r);return[Math.min(a[0],i[0],o[0],c[0]),Math.min(a[1],i[1],o[1],c[1]),Math.max(a[0],i[0],o[0],c[0]),Math.max(a[1],i[1],o[1],c[1])]}},{key:"inverseTransform",value:function inverseTransform(t){var r=t[0]*t[3]-t[1]*t[2];return[t[3]/r,-t[1]/r,-t[2]/r,t[0]/r,(t[2]*t[5]-t[4]*t[3])/r,(t[4]*t[1]-t[5]*t[0])/r]}},{key:"apply3dTransform",value:function apply3dTransform(t,r){return[t[0]*r[0]+t[1]*r[1]+t[2]*r[2],t[3]*r[0]+t[4]*r[1]+t[5]*r[2],t[6]*r[0]+t[7]*r[1]+t[8]*r[2]]}},{key:"singularValueDecompose2dScale",value:function singularValueDecompose2dScale(t){var r=[t[0],t[2],t[1],t[3]],a=t[0]*r[0]+t[1]*r[2],i=t[0]*r[1]+t[1]*r[3],o=t[2]*r[0]+t[3]*r[2],c=t[2]*r[1]+t[3]*r[3],l=(a+c)/2,u=Math.sqrt((a+c)*(a+c)-4*(a*c-o*i))/2,h=l+u||1,d=l-u||1;return[Math.sqrt(h),Math.sqrt(d)]}},{key:"normalizeRect",value:function normalizeRect(t){var r=t.slice(0);if(t[0]>t[2]){r[0]=t[2];r[2]=t[0]}if(t[1]>t[3]){r[1]=t[3];r[3]=t[1]}return r}},{key:"intersect",value:function intersect(t,r){function compare(t,r){return t-r}var a=[t[0],t[2],r[0],r[2]].sort(compare),i=[t[1],t[3],r[1],r[3]].sort(compare),o=[];t=Util.normalizeRect(t);r=Util.normalizeRect(r);if(!(a[0]===t[0]&&a[1]===r[0]||a[0]===r[0]&&a[1]===t[0]))return null;o[0]=a[1];o[2]=a[2];if(!(i[0]===t[1]&&i[1]===r[1]||i[0]===r[1]&&i[1]===t[1]))return null;o[1]=i[1];o[3]=i[2];return o}}]);return Util}();r.Util=k;var w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];var C=function createObjectURLClosure(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return function createObjectURL(r,a){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!i&&URL.createObjectURL){var o=new Blob([r],{type:a});return URL.createObjectURL(o)}for(var c="data:".concat(a,";base64,"),l=0,u=r.length;l<u;l+=3){var h=255&r[l],d=255&r[l+1],p=255&r[l+2],m=h>>2,g=(3&h)<<4|d>>4,y=l+1<u?(15&d)<<2|p>>6:64,b=l+2<u?63&p:64;c+=t[m]+t[g]+t[y]+t[b]}return c}}();r.createObjectURL=C;var _={60:"<",62:">",38:"&",34:""",39:"'"}},function(t,r,a){"use strict";if("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked){"undefined"!=typeof globalThis&&globalThis.Math===Math||(globalThis=a(7));globalThis._pdfjsCompatibilityChecked=!0;!function checkNodeBtoa(){globalThis.btoa}();!function checkNodeAtob(){globalThis.atob}();!function checkStringStartsWith(){String.prototype.startsWith||a(52)}();!function checkStringEndsWith(){String.prototype.endsWith||a(63)}();!function checkStringIncludes(){String.prototype.includes||a(65)}();!function checkArrayIncludes(){Array.prototype.includes||a(67)}();!function checkArrayFrom(){Array.from||a(75)}();!function checkObjectAssign(){Object.assign||a(97)}();!function checkObjectFromEntries(){Object.fromEntries||a(100)}();!function checkMathLog2(){Math.log2||(Math.log2=a(104))}();!function checkNumberIsNaN(){Number.isNaN||(Number.isNaN=a(106))}();!function checkNumberIsInteger(){Number.isInteger||(Number.isInteger=a(108))}();!function checkTypedArraySlice(){Uint8Array.prototype.slice||a(111)}();!function checkPromise(){globalThis.Promise.allSettled||(globalThis.Promise=a(116))}();!function checkURL(){globalThis.URL=a(137)}();!function checkReadableStream(){var t=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function start(t){t.close()}});t=!0}catch(t){}t||(globalThis.ReadableStream=a(144).ReadableStream)}();!function checkMapEntries(){globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=a(145))}();!function checkSetEntries(){globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=a(152))}();!function checkWeakMap(){globalThis.WeakMap||(globalThis.WeakMap=a(154))}();!function checkWeakSet(){globalThis.WeakSet||(globalThis.WeakSet=a(160))}();!function checkStringCodePointAt(){String.prototype.codePointAt||a(162)}();!function checkStringFromCodePoint(){String.fromCodePoint||(String.fromCodePoint=a(164))}();!function checkSymbol(){globalThis.Symbol||a(166)}();!function checkStringPadStart(){String.prototype.padStart||a(189)}();!function checkStringPadEnd(){String.prototype.padEnd||a(194)}();!function checkObjectValues(){Object.values||(Object.values=a(196))}();!function checkObjectEntries(){Object.entries||(Object.entries=a(199))}()}},function(t,r,a){a(8);t.exports=a(10)},function(t,r,a){a(9)({global:!0},{globalThis:a(10)})},function(t,r,a){var i=a(10),o=a(11).f,c=a(25),l=a(28),u=a(29),h=a(39),d=a(51);t.exports=function(t,r){var a,p,m,g,y,b=t.target,v=t.global,S=t.stat;if(a=v?i:S?i[b]||u(b,{}):(i[b]||{}).prototype)for(p in r){g=r[p];m=t.noTargetGet?(y=o(a,p))&&y.value:a[p];if(!d(v?p:b+(S?".":"#")+p,t.forced)&&void 0!==m){if(typeof g==typeof m)continue;h(g,m)}(t.sham||m&&m.sham)&&c(g,"sham",!0);l(a,p,g,t)}}},function(t,r){var check=function(t){return t&&t.Math==Math&&t};t.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||Function("return this")()},function(t,r,a){var i=a(12),o=a(14),c=a(15),l=a(16),u=a(20),h=a(22),d=a(23),p=Object.getOwnPropertyDescriptor;r.f=i?p:function getOwnPropertyDescriptor(t,r){t=l(t);r=u(r,!0);if(d)try{return p(t,r)}catch(t){}if(h(t,r))return c(!o.f.call(t,r),t[r])}},function(t,r,a){var i=a(13);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r,a){"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,c=o&&!i.call({1:2},1);r.f=c?function propertyIsEnumerable(t){var r=o(this,t);return!!r&&r.enumerable}:i},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r,a){var i=a(17),o=a(19);t.exports=function(t){return i(o(t))}},function(t,r,a){var i=a(13),o=a(18),c="".split;t.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?c.call(t,""):Object(t)}:Object},function(t,r){var a={}.toString;t.exports=function(t){return a.call(t).slice(8,-1)}},function(t,r){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,r,a){var i=a(21);t.exports=function(t,r){if(!i(t))return t;var a,o;if(r&&"function"==typeof(a=t.toString)&&!i(o=a.call(t)))return o;if("function"==typeof(a=t.valueOf)&&!i(o=a.call(t)))return o;if(!r&&"function"==typeof(a=t.toString)&&!i(o=a.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,r){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,r){var a={}.hasOwnProperty;t.exports=function(t,r){return a.call(t,r)}},function(t,r,a){var i=a(12),o=a(13),c=a(24);t.exports=!i&&!o((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}))},function(t,r,a){var i=a(10),o=a(21),c=i.document,l=o(c)&&o(c.createElement);t.exports=function(t){return l?c.createElement(t):{}}},function(t,r,a){var i=a(12),o=a(26),c=a(15);t.exports=i?function(t,r,a){return o.f(t,r,c(1,a))}:function(t,r,a){t[r]=a;return t}},function(t,r,a){var i=a(12),o=a(23),c=a(27),l=a(20),u=Object.defineProperty;r.f=i?u:function defineProperty(t,r,a){c(t);r=l(r,!0);c(a);if(o)try{return u(t,r,a)}catch(t){}if("get"in a||"set"in a)throw TypeError("Accessors not supported");"value"in a&&(t[r]=a.value);return t}},function(t,r,a){var i=a(21);t.exports=function(t){if(!i(t))throw TypeError(String(t)+" is not an object");return t}},function(t,r,a){var i=a(10),o=a(25),c=a(22),l=a(29),u=a(30),h=a(32),d=h.get,p=h.enforce,m=String(String).split("String");(t.exports=function(t,r,a,u){var h=!!u&&!!u.unsafe,d=!!u&&!!u.enumerable,g=!!u&&!!u.noTargetGet;if("function"==typeof a){"string"!=typeof r||c(a,"name")||o(a,"name",r);p(a).source=m.join("string"==typeof r?r:"")}if(t!==i){h?!g&&t[r]&&(d=!0):delete t[r];d?t[r]=a:o(t,r,a)}else d?t[r]=a:l(r,a)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&d(this).source||u(this)}))},function(t,r,a){var i=a(10),o=a(25);t.exports=function(t,r){try{o(i,t,r)}catch(a){i[t]=r}return r}},function(t,r,a){var i=a(31),o=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(t){return o.call(t)});t.exports=i.inspectSource},function(t,r,a){var i=a(10),o=a(29),c=i["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=c},function(t,r,a){var i,o,c,l=a(33),u=a(10),h=a(21),d=a(25),p=a(22),m=a(34),g=a(38),y=u.WeakMap;if(l){var b=new y,v=b.get,S=b.has,k=b.set;i=function(t,r){k.call(b,t,r);return r};o=function(t){return v.call(b,t)||{}};c=function(t){return S.call(b,t)}}else{var w=m("state");g[w]=!0;i=function(t,r){d(t,w,r);return r};o=function(t){return p(t,w)?t[w]:{}};c=function(t){return p(t,w)}}t.exports={set:i,get:o,has:c,enforce:function(t){return c(t)?o(t):i(t,{})},getterFor:function(t){return function(r){var a;if(!h(r)||(a=o(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return a}}}},function(t,r,a){var i=a(10),o=a(30),c=i.WeakMap;t.exports="function"==typeof c&&/native code/.test(o(c))},function(t,r,a){var i=a(35),o=a(37),c=i("keys");t.exports=function(t){return c[t]||(c[t]=o(t))}},function(t,r,a){var i=a(36),o=a(31);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.6.5",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,r){t.export