/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1792:function(e,t,r){"use strict";var n=r(2324),o=r(3034),c={props:{initial:{type:Boolean,default:!1}},data:function(){return{size:{width:-1,height:-1}}},methods:{reset:function(){var e=this.$el.firstChild,t=this.$el.lastChild;e.scrollLeft=1e5,e.scrollTop=1e5,t.scrollLeft=1e5,t.scrollTop=1e5},update:function(){this.size.width=this.$el.offsetWidth,this.size.height=this.$el.offsetHeight}},watch:{size:{deep:!0,handler:function(e){this.reset(),this.$emit("resize",{width:this.size.width,height:this.size.height})}}},render:function(e){var style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",t="position: absolute; left: 0; top: 0;";return e("div",{style:style+"animation-name: resizeSensorVisibility;",on:{"~animationstart":this.update}},[e("div",{style:style,on:{scroll:this.update}},[e("div",{style:t+"width: 100000px; height: 100000px;"})]),e("div",{style:style,on:{scroll:this.update}},[e("div",{style:t+"width: 200%; height: 200%;"})])])},beforeDestroy:function(){this.$emit("resize",{width:0,height:0}),this.$emit("resizeSensorBeforeDestroy")},mounted:function(){if(!0===this.initial&&this.$nextTick(this.update),this.$el.offsetParent!==this.$el.parentNode&&(this.$el.parentNode.style.position="relative"),"attachEvent"in this.$el&&!("AnimationEvent"in window)){var e=function(){this.update(),t()}.bind(this),t=function(){this.$el.detachEvent("onresize",e),this.$off("resizeSensorBeforeDestroy",t)}.bind(this);this.$el.attachEvent("onresize",e),this.$on("resizeSensorBeforeDestroy",t),this.reset()}}},l=(r(3035),r(4)),h=Object(l.a)(c,undefined,undefined,!1,null,null,null).exports;r(3037);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var source;if("string"==typeof e)source={url:e};else{if("object"!==d(e)||null===e)throw new TypeError("invalid src type");source=Object.assign({},e)}var r=Object(n.getDocument)(source).promise;return r.__PDFDocumentLoadingTask=!0,t&&t.onPassword&&(r.onPassword=t.onPassword),t&&t.onProgress&&(r.onProgress=t.onProgress),r}var m={createLoadingTask:f,components:{resizeSensor:h},props:{src:{type:[String,Object,Promise],default:""},page:{type:Number,default:1},rotate:{type:Number,default:0},scale:{type:[Number,String],default:"page-width"},resize:{type:Boolean,default:!1},annotation:{type:Boolean,default:!1},text:{type:Boolean,default:!0}},data:function(){return{internalSrc:this.src,pdf:null,pdfViewer:null,loading:!0}},watch:{pdf:function(e){var t=e.pdfInfo||e._pdfInfo;this.$emit("numpages",t.numPages)},page:function(e){var t=this;this.pdf.getPage(e).then((function(e){t.pdfViewer.setPdfPage(e),t.pdfViewer.draw()}))},scale:function(e){this.drawScaled(e)},rotate:function(e){this.pdfViewer&&(this.pdfViewer.update(this.scale,e),this.pdfViewer.draw())}},mounted:function(){var e,t=this;("object"!==d(e=t.internalSrc)||null===e||!0!==e.__PDFDocumentLoadingTask)&&(t.internalSrc=f(t.internalSrc),t.$emit("loading",!0));var r=this.$refs.container,n=new o.EventBus;t.pdfLinkService=new o.PDFLinkService({eventBus:n,externalLinkTarget:2}),t.pdfFindController=new o.PDFFindController({eventBus:n,linkService:t.pdfLinkService});var c=void 0,l=void 0;t.annotation&&(c=new o.DefaultAnnotationLayerFactory),t.text&&(l=new o.DefaultTextLayerFactory),t.internalSrc.then((function(e){return t.pdf=e,e.getPage(t.page)})).then((function(e){t.pdfViewer=new o.PDFPageView({container:r,id:t.page,scale:1,defaultViewport:e.getViewport({scale:1}),eventBus:n,textLayerFactory:l,annotationLayerFactory:c}),t.pdfViewer.setPdfPage(e);var h={scrollPageIntoView:function(e){t.$emit("link-clicked",e)}};t.pdfLinkService.setDocument(t.pdf),t.pdfLinkService.setViewer(h),t.pdfFindController.setDocument(t.pdf),t.drawScaled(t.scale),t.loading=!1,t.$emit("loading",!1)})).catch((function(e){t.$emit("error",e),t.loading=!1,t.$emit("loading",!1)}))},beforeDestroy:function(){var e=this;e.pdfViewer&&(e.pdfViewer.destroy(),e.pdfViewer=null)},methods:{calculateScale:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return this.pdfViewer.update(1,this.rotate),-1===e&&-1===t&&(e=this.$refs.container.offsetWidth),e/this.pdfViewer.viewport.width},calculateScaleHeight:function(){this.pdfViewer.update(1,this.rotate);var e=this.$refs.container.offsetHeight;return this.$refs.container.parentElement.parentElement.offsetHeight/e},drawScaled:function(e){this.pdfViewer&&("page-width"===e?(e=this.calculateScale(),this.$emit("update:scale",e)):"page-height"===e&&(e=this.calculateScaleHeight(),this.$emit("update:scale",e)),this.pdfViewer.update(e,this.rotate),this.annotation&&(this.pdfViewer.annotationLayer=this.pdfViewer.annotationLayerFactory.createAnnotationLayerBuilder(this.pdfViewer.div,this.pdfViewer.pdfPage),this.pdfViewer.annotationLayer.linkService=this.pdfLinkService),this.pdfViewer.draw(),this.text&&(this.pdfViewer.textLayer.findController=this.pdfFindController),this.loading=!1,this.$emit("loading",!1))},resizeScale:function(){this.resize&&this.drawScaled("page-width")}}},v=m,y=(r(3039),Object(l.a)(v,(function(){var e=this,t=e._self._c;return t("div",[e.loading?e._t("loading"):e._e(),e._v(" "),t("div",{ref:"container",attrs:{id:"viewerContainer"}},[t("div",{staticClass:"pdfViewer",attrs:{id:"viewer"}}),e._v(" "),t("resizeSensor",{attrs:{initial:!0},on:{resize:e.resizeScale}})],1)],2)}),[],!1,null,null,null));t.a=y.exports},2324:function(module,exports,__webpack_require__){(function(process,Buffer,module){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,factory;function _superPropGet(e,t,r,n){var p=_get(_getPrototypeOf(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof p?function(e){return p.apply(r,e)}:p}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},_get.apply(null,arguments)}function _superPropBase(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_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 _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,c=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw c}}}}function _unsupportedIterableToArray(e,a){if(e){if("string"==typeof e)return _arrayLikeToArray(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,a):void 0}}function _arrayLikeToArray(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,r=Array(a);t<a;t++)r[t]=e[t];return r}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _regeneratorRuntime(){"use strict";_regeneratorRuntime=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof k?t:k,a=Object.create(i.prototype),c=new F(n||[]);return o(a,"_invoke",{value:P(e,r,c)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var f="suspendedStart",m="suspendedYield",v="executing",s="completed",y={};function k(){}function w(){}function S(){}var p={};l(p,a,(function(){return this}));var A=Object.getPrototypeOf,x=A&&A(A(L([])));x&&x!==r&&n.call(x,a)&&(p=x);var g=S.prototype=k.prototype=Object.create(p);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(o,c,i,a){var l=d(e[o],e,c);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):t.resolve(h).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,a)}))}a(l.arg)}var c;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return c=c?c.then(o,o):o()}})}function P(t,r,n){var o=f;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=T(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var p=d(t,r,n);if("normal"===p.type){if(o=n.done?s:m,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function T(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(_typeof(t)+" is not iterable")}return w.prototype=S,o(g,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},t.awrap=function(e){return{__await:e}},C(_.prototype),l(_.prototype,c,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new _(h(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(g),l(g,u,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=L,F.prototype={constructor:F,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function asyncGeneratorStep(e,t,r,n,o,a,c){try{var i=e[a](c),u=i.value}catch(e){return void r(e)}i.done?t(u):Promise.resolve(u).then(n,o)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function c(e){asyncGeneratorStep(a,n,o,c,l,"next",e)}function l(e){asyncGeneratorStep(a,n,o,c,l,"throw",e)}c(void 0)}))}}function _classCallCheck(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var i=_toPrimitive(e,"string");return"symbol"==_typeof(i)?i:i+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}factory=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===_typeof(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLinkAttributes",{enumerable:!0,get:function(){return n.addLinkAttributes}}),Object.defineProperty(t,"getFilenameFromUrl",{enumerable:!0,get:function(){return n.getFilenameFromUrl}}),Object.defineProperty(t,"LinkTarget",{enumerable:!0,get:function(){return n.LinkTarget}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(t,"PDFDateString",{enumerable:!0,get:function(){return n.PDFDateString}}),Object.defineProperty(t,"RenderingCancelledException",{enumerable:!0,get:function(){return n.RenderingCancelledException}}),Object.defineProperty(t,"build",{enumerable:!0,get:function(){return o.build}}),Object.defineProperty(t,"getDocument",{enumerable:!0,get:function(){return o.getDocument}}),Object.defineProperty(t,"LoopbackPort",{enumerable:!0,get:function(){return o.LoopbackPort}}),Object.defineProperty(t,"PDFDataRangeTransport",{enumerable:!0,get:function(){return o.PDFDataRangeTransport}}),Object.defineProperty(t,"PDFWorker",{enumerable:!0,get:function(){return o.PDFWorker}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return o.version}}),Object.defineProperty(t,"CMapCompressionType",{enumerable:!0,get:function(){return c.CMapCompressionType}}),Object.defineProperty(t,"createObjectURL",{enumerable:!0,get:function(){return c.createObjectURL}}),Object.defineProperty(t,"createPromiseCapability",{enumerable:!0,get:function(){return c.createPromiseCapability}}),Object.defineProperty(t,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return c.createValidAbsoluteUrl}}),Object.defineProperty(t,"InvalidPDFException",{enumerable:!0,get:function(){return c.InvalidPDFException}}),Object.defineProperty(t,"MissingPDFException",{enumerable:!0,get:function(){return c.MissingPDFException}}),Object.defineProperty(t,"OPS",{enumerable:!0,get:function(){return c.OPS}}),Object.defineProperty(t,"PasswordResponses",{enumerable:!0,get:function(){return c.PasswordResponses}}),Object.defineProperty(t,"PermissionFlag",{enumerable:!0,get:function(){return c.PermissionFlag}}),Object.defineProperty(t,"removeNullCharacters",{enumerable:!0,get:function(){return c.removeNullCharacters}}),Object.defineProperty(t,"shadow",{enumerable:!0,get:function(){return c.shadow}}),Object.defineProperty(t,"UnexpectedResponseException",{enumerable:!0,get:function(){return c.UnexpectedResponseException}}),Object.defineProperty(t,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return c.UNSUPPORTED_FEATURES}}),Object.defineProperty(t,"Util",{enumerable:!0,get:function(){return c.Util}}),Object.defineProperty(t,"VerbosityLevel",{enumerable:!0,get:function(){return c.VerbosityLevel}}),Object.defineProperty(t,"AnnotationLayer",{enumerable:!0,get:function(){return l.AnnotationLayer}}),Object.defineProperty(t,"apiCompatibilityParams",{enumerable:!0,get:function(){return h.apiCompatibilityParams}}),Object.defineProperty(t,"GlobalWorkerOptions",{enumerable:!0,get:function(){return d.GlobalWorkerOptions}}),Object.defineProperty(t,"renderTextLayer",{enumerable:!0,get:function(){return f.renderTextLayer}}),Object.defineProperty(t,"SVGGraphics",{enumerable:!0,get:function(){return m.SVGGraphics}});var n=r(1),o=r(5),c=r(2),l=r(16),h=r(7),d=r(10),f=r(17),m=r(18);if(r(4).isNodeJS){var v=r(19).PDFNodeStream;(0,o.setPDFNetworkStreamFactory)((function(e){return new v(e)}))}else{var y,k=r(22).PDFNetworkStream;(0,n.isFetchSupported)()&&(y=r(23).PDFFetchStream),(0,o.setPDFNetworkStreamFactory)((function(e){return y&&(0,n.isValidFetchUrl)(e.url)?new y(e):new k(e)}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=function(link){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.url,r=e.target,c=e.rel,l=e.enabled,h=void 0===l||l;(0,n.assert)(t&&"string"==typeof t,'addLinkAttributes: A valid "url" parameter must provided.');var d=(0,n.removeNullCharacters)(t);h?link.href=link.title=d:(link.href="",link.title="Disabled: ".concat(d),link.onclick=function(){return!1});var f="";switch(r){case v.NONE:break;case v.SELF:f="_self";break;case v.BLANK:f="_blank";break;case v.PARENT:f="_parent";break;case v.TOP:f="_top"}link.target=f,link.rel="string"==typeof c?c:o},t.getFilenameFromUrl=function(e){var t=e.indexOf("#"),r=e.indexOf("?"),n=Math.min(t>0?t:e.length,r>0?r:e.length);return e.substring(e.lastIndexOf("/",n)+1,n)},t.isFetchSupported=w,t.isValidFetchUrl=S,t.loadScript=function(e){return new Promise((function(t,r){var script=document.createElement("script");script.src=e,script.onload=t,script.onerror=function(){r(new Error("Cannot load script at: ".concat(script.src)))},(document.head||document.documentElement).appendChild(script)}))},t.deprecated=function(details){console.log("Deprecated API usage: "+details)},t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var n=r(2),o="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=o;var c="http://www.w3.org/2000/svg",l=function(){return _createClass((function e(){_classCallCheck(this,e)}),[{key:"create",value:function(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");var canvas=document.createElement("canvas"),r=canvas.getContext("2d");return canvas.width=e,canvas.height=t,{canvas:canvas,context:r}}},{key:"reset",value:function(e,t,r){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}},{key:"destroy",value:function(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}}])}();t.DOMCanvasFactory=l;var h=function(){return _createClass((function e(t){var r=t.baseUrl,n=void 0===r?null:r,o=t.isCompressed,c=void 0!==o&&o;_classCallCheck(this,e),this.baseUrl=n,this.isCompressed=c}),[{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,o,c,l=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.name,this.baseUrl){e.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(r){e.next=5;break}throw new Error("CMap name must be specified.");case 5:if(o=this.baseUrl+r+(this.isCompressed?".bcmap":""),c=this.isCompressed?n.CMapCompressionType.BINARY:n.CMapCompressionType.NONE,!w()||!S(o,document.baseURI)){e.next=9;break}return e.abrupt("return",fetch(o).then(function(){var e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok){e.next=2;break}throw new Error(t.statusText);case 2:if(!l.isCompressed){e.next=10;break}return e.t0=Uint8Array,e.next=6,t.arrayBuffer();case 6:e.t1=e.sent,r=new e.t0(e.t1),e.next=15;break;case 10:return e.t2=n.stringToBytes,e.next=13,t.text();case 13:e.t3=e.sent,r=(0,e.t2)(e.t3);case 15:return e.abrupt("return",{cMapData:r,compressionType:c});case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){throw new Error("Unable to load ".concat(l.isCompressed?"binary ":"")+"CMap at: ".concat(o))})));case 9:return e.abrupt("return",new Promise((function(e,t){var r=new XMLHttpRequest;r.open("GET",o,!0),l.isCompressed&&(r.responseType="arraybuffer"),r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE){var o;if((200===r.status||0===r.status)&&(l.isCompressed&&r.response?o=new Uint8Array(r.response):!l.isCompressed&&r.responseText&&(o=(0,n.stringToBytes)(r.responseText)),o))return void e({cMapData:o,compressionType:c});t(new Error(r.statusText))}},r.send(null)})).catch((function(e){throw new Error("Unable to load ".concat(l.isCompressed?"binary ":"")+"CMap at: ".concat(o))})));case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}())}])}();t.DOMCMapReaderFactory=h;var d=function(){return _createClass((function e(){_classCallCheck(this,e)}),[{key:"create",value:function(e,t){(0,n.assert)(e>0&&t>0,"Invalid SVG dimensions");var svg=document.createElementNS(c,"svg:svg");return svg.setAttribute("version","1.1"),svg.setAttribute("width",e+"px"),svg.setAttribute("height",t+"px"),svg.setAttribute("preserveAspectRatio","none"),svg.setAttribute("viewBox","0 0 "+e+" "+t),svg}},{key:"createElement",value:function(e){return(0,n.assert)("string"==typeof e,"Invalid SVG element type"),document.createElementNS(c,e)}}])}();t.DOMSVGFactory=d;var f=function(){function e(t){var r=t.viewBox,n=t.scale,o=t.rotation,c=t.offsetX,l=void 0===c?0:c,h=t.offsetY,d=void 0===h?0:h,f=t.dontFlip,m=void 0!==f&&f;_classCallCheck(this,e),this.viewBox=r,this.scale=n,this.rotation=o,this.offsetX=l,this.offsetY=d;var v,y,k,w,S,A,x,C,_=(r[2]+r[0])/2,P=(r[3]+r[1])/2;switch(o=(o%=360)<0?o+360:o){case 180:v=-1,y=0,k=0,w=1;break;case 90:v=0,y=1,k=1,w=0;break;case 270:v=0,y=-1,k=-1,w=0;break;case 0:v=1,y=0,k=0,w=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}m&&(k=-k,w=-w),0===v?(S=Math.abs(P-r[1])*n+l,A=Math.abs(_-r[0])*n+d,x=Math.abs(r[3]-r[1])*n,C=Math.abs(r[2]-r[0])*n):(S=Math.abs(_-r[0])*n+l,A=Math.abs(P-r[1])*n+d,x=Math.abs(r[2]-r[0])*n,C=Math.abs(r[3]-r[1])*n),this.transform=[v*n,y*n,k*n,w*n,S-v*n*_-k*n*P,A-y*n*_-w*n*P],this.width=x,this.height=C}return _createClass(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.scale,n=void 0===r?this.scale:r,o=t.rotation,c=void 0===o?this.rotation:o,l=t.offsetX,h=void 0===l?this.offsetX:l,d=t.offsetY,f=void 0===d?this.offsetY:d,m=t.dontFlip,v=void 0!==m&&m;return new e({viewBox:this.viewBox.slice(),scale:n,rotation:c,offsetX:h,offsetY:f,dontFlip:v})}},{key:"convertToViewportPoint",value:function(e,t){return n.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(rect){var e=n.Util.applyTransform([rect[0],rect[1]],this.transform),t=n.Util.applyTransform([rect[2],rect[3]],this.transform);return[e[0],e[1],t[0],t[1]]}},{key:"convertToPdfPoint",value:function(e,t){return n.Util.applyInverseTransform([e,t],this.transform)}}])}();t.PageViewport=f;var m=function(e){function t(e,r){var n;return _classCallCheck(this,t),(n=_callSuper(this,t,[e])).type=r,n}return _inherits(t,e),_createClass(t)}(n.BaseException);t.RenderingCancelledException=m;var v={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};t.LinkTarget=v;var y,k=function(){return _createClass((function e(){_classCallCheck(this,e),this.started=Object.create(null),this.times=[]}),[{key:"time",value:function(e){e in this.started&&(0,n.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,n.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e,t=[],r=0,n=_createForOfIteratorHelper(this.times);try{for(n.s();!(e=n.n()).done;){var o=e.value.name;o.length>r&&(r=o.length)}}catch(e){n.e(e)}finally{n.f()}var c,l=_createForOfIteratorHelper(this.times);try{for(l.s();!(c=l.n()).done;){var h=c.value,d=h.end-h.start;t.push("".concat(h.name.padEnd(r)," ").concat(d,"ms\n"))}}catch(e){l.e(e)}finally{l.f()}return t.join("")}}])}();function w(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function S(e,t){try{var r=(t?new URL(e,t):new URL(e)).protocol;return"http:"===r||"https:"===r}catch(e){return!1}}t.StatTimer=k;var A=function(){return _createClass((function e(){_classCallCheck(this,e)}),null,[{key:"toDateObject",value:function(input){if(!input||!(0,n.isString)(input))return null;y||(y=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var e=y.exec(input);if(!e)return null;var t=parseInt(e[1],10),r=parseInt(e[2],10);r=r>=1&&r<=12?r-1:0;var o=parseInt(e[3],10);o=o>=1&&o<=31?o:1;var c=parseInt(e[4],10);c=c>=0&&c<=23?c:0;var l=parseInt(e[5],10);l=l>=0&&l<=59?l:0;var h=parseInt(e[6],10);h=h>=0&&h<=59?h:0;var d=e[7]||"Z",f=parseInt(e[8],10);f=f>=0&&f<=23?f:0;var m=parseInt(e[9],10)||0;return m=m>=0&&m<=59?m:0,"-"===d?(c+=f,l+=m):"+"===d&&(c-=f,l-=m),new Date(Date.UTC(t,r,o,c,l,h))}}])}();t.PDFDateString=A},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=C,t.arraysToBytes=function(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var r=0,i=0;i<t;i++)r+=C(e[i]);for(var n=0,data=new Uint8Array(r),o=0;o<t;o++){var c=e[o];c instanceof Uint8Array||(c="string"==typeof c?x(c):new Uint8Array(c));var l=c.byteLength;data.set(c,n),n+=l}return data},t.assert=h,t.bytesToString=function(e){h(null!==e&&"object"===_typeof(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,r=8192;if(t<r)return String.fromCharCode.apply(null,e);for(var n=[],i=0;i<t;i+=r){var o=Math.min(i+r,t),c=e.subarray(i,o);n.push(String.fromCharCode.apply(null,c))}return n.join("")},t.createPromiseCapability=function(){var e=Object.create(null),t=!1;return Object.defineProperty(e,"settled",{get:function(){return t}}),e.promise=new Promise((function(r,n){e.resolve=function(data){t=!0,r(data)},e.reject=function(e){t=!0,n(e)}})),e},t.getVerbosityLevel=function(){return o},t.info=function(e){o>=n.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===_typeof(e)&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){return e.length===t.length&&e.every((function(element,e){return element===t[e]}))},t.isBool=function(e){return"boolean"==typeof e},t.isEmptyObj=function(e){for(var t in e)return!1;return!0},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSameOrigin=function(e,t){var base;try{if(!(base=new URL(e)).origin||"null"===base.origin)return!1}catch(e){return!1}var r=new URL(t,base);return base.origin===r.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch(e){}return null},t.removeNullCharacters=function(e){return"string"!=typeof e?(c("The argument for removeNullCharacters must be a string."),e):e.replace(A,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(o=e)},t.shadow=shadow,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=x,t.stringToPDFString=function(e){var t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(var i=2;i<t;i+=2)r.push(String.fromCharCode(e.charCodeAt(i)<<8|e.charCodeAt(i+1)));else if("ÿ"===e[0]&&"þ"===e[1])for(var n=2;n<t;n+=2)r.push(String.fromCharCode(e.charCodeAt(n+1)<<8|e.charCodeAt(n)));else for(var o=0;o<t;++o){var code=F[e.charCodeAt(o)];r.push(code?String.fromCharCode(code):e.charAt(o))}return r.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=c,t.unreachable=l,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,r(3),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.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},t.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},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.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},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.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},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var n={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=n,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.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},t.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"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var o=n.WARNINGS;function c(e){o>=n.WARNINGS&&console.log("Warning: ".concat(e))}function l(e){throw new Error(e)}function h(e,t){e||l(t)}function shadow(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var d=function(){function e(t){this.constructor===e&&l("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=d;var f=function(e){function t(e,code){var r;return _classCallCheck(this,t),(r=_callSuper(this,t,[e])).code=code,r}return _inherits(t,e),_createClass(t)}(d);t.PasswordException=f;var m=function(e){function t(e,details){var r;return _classCallCheck(this,t),(r=_callSuper(this,t,[e])).details=details,r}return _inherits(t,e),_createClass(t)}(d);t.UnknownErrorException=m;var v=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t)}(d);t.InvalidPDFException=v;var y=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t)}(d);t.MissingPDFException=y;var k=function(e){function t(e,r){var n;return _classCallCheck(this,t),(n=_callSuper(this,t,[e])).status=r,n}return _inherits(t,e),_createClass(t)}(d);t.UnexpectedResponseException=k;var w=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t)}(d);t.FormatError=w;var S=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t)}(d);t.AbortException=S;var A=/\x00/g;function x(e){h("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),i=0;i<t;++i)r[i]=255&e.charCodeAt(i);return r}function C(e){return void 0!==e.length?e.length:(h(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}var _={get value(){return shadow(this,"value",((e=new Uint8Array(4))[0]=1,1===new Uint32Array(e.buffer,0,1)[0]));var e}};t.IsLittleEndianCached=_;var P={get value(){return shadow(this,"value",function(){try{return new Function(""),!0}catch(e){return!1}}())}};t.IsEvalSupportedCached=P;var T=["rgb(",0,",",0,",",0,")"],I=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"makeCssRgb",value:function(e,g,b){return T[1]=e,T[3]=g,T[5]=b,T.join("")}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(p,e){return[p[0]*e[0]+p[1]*e[2]+e[4],p[0]*e[1]+p[1]*e[3]+e[5]]}},{key:"applyInverseTransform",value:function(p,e){var t=e[0]*e[3]-e[1]*e[2];return[(p[0]*e[3]-p[1]*e[2]+e[2]*e[5]-e[4]*e[3])/t,(-p[0]*e[1]+p[1]*e[0]+e[4]*e[1]-e[5]*e[0])/t]}},{key:"getAxialAlignedBoundingBox",value:function(t,r){var n=e.applyTransform(t,r),o=e.applyTransform(t.slice(2,4),r),c=e.applyTransform([t[0],t[3]],r),l=e.applyTransform([t[2],t[1]],r);return[Math.min(n[0],o[0],c[0],l[0]),Math.min(n[1],o[1],c[1],l[1]),Math.max(n[0],o[0],c[0],l[0]),Math.max(n[1],o[1],c[1],l[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"apply3dTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],a=e[0]*t[0]+e[1]*t[2],b=e[0]*t[1]+e[1]*t[3],r=e[2]*t[0]+e[3]*t[2],n=e[2]*t[1]+e[3]*t[3],o=(a+n)/2,c=Math.sqrt((a+n)*(a+n)-4*(a*n-r*b))/2,l=o+c||1,h=o-c||1;return[Math.sqrt(l),Math.sqrt(h)]}},{key:"normalizeRect",value:function(rect){var e=rect.slice(0);return rect[0]>rect[2]&&(e[0]=rect[2],e[2]=rect[0]),rect[1]>rect[3]&&(e[1]=rect[3],e[3]=rect[1]),e}},{key:"intersect",value:function(t,r){function n(a,b){return a-b}var o=[t[0],t[2],r[0],r[2]].sort(n),c=[t[1],t[3],r[1],r[3]].sort(n),l=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),o[0]===t[0]&&o[1]===r[0]||o[0]===r[0]&&o[1]===t[0]?(l[0]=o[1],l[2]=o[2],c[0]===t[1]&&c[1]===r[1]||c[0]===r[1]&&c[1]===t[1]?(l[1]=c[1],l[3]=c[2],l):null):null}}])}();t.Util=I;var E,F=[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],L=(E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",function(data,e){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var t=new Blob([data],{type:e});return URL.createObjectURL(t)}for(var r="data:".concat(e,";base64,"),i=0,n=data.length;i<n;i+=3){var o=255&data[i],c=255&data[i+1],l=255&data[i+2];r+=E[o>>2]+E[(3&o)<<4|c>>4]+E[i+1<n?(15&c)<<2|l>>6:64]+E[i+2<n?63&l:64]}return r});t.createObjectURL=L},function(e,t,r){"use strict";r(4)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var n="object"===(void 0===process?"undefined":_typeof(process))&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;t.isNodeJS=n},function(module,exports,__w_pdfjs_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _util=__w_pdfjs_require__(2),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(6),_api_compatibility=__w_pdfjs_require__(7),_canvas=__w_pdfjs_require__(8),_worker_options=__w_pdfjs_require__(10),_is_node=__w_pdfjs_require__(4),_message_handler=__w_pdfjs_require__(11),_metadata=__w_pdfjs_require__(12),_transport_stream=__w_pdfjs_require__(14),_webgl=__w_pdfjs_require__(15),DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,createPDFNetworkStream;function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){var source,t=new PDFDocumentLoadingTask;if("string"==typeof e)source={url:e};else if((0,_util.isArrayBuffer)(e))source={data:e};else if(e instanceof PDFDataRangeTransport)source={range:e};else{if("object"!==_typeof(e))throw new Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");source=e}var r=Object.create(null),n=null,o=null;for(var c in source)if("url"!==c||"undefined"==typeof window)if("range"!==c)if("worker"!==c)if("data"!==c||source[c]instanceof Uint8Array)r[c]=source[c];else{var l=source[c];if("string"==typeof l)r[c]=(0,_util.stringToBytes)(l);else if("object"!==_typeof(l)||null===l||isNaN(l.length)){if(!(0,_util.isArrayBuffer)(l))throw new Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");r[c]=new Uint8Array(l)}else r[c]=new Uint8Array(l)}else o=source[c];else n=source[c];else r[c]=new URL(source[c],window.location).href;if(r.rangeChunkSize=r.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,r.CMapReaderFactory=r.CMapReaderFactory||_display_utils.DOMCMapReaderFactory,r.ignoreErrors=!0!==r.stopAtErrors,r.fontExtraProperties=!0===r.fontExtraProperties,r.pdfBug=!0===r.pdfBug,Number.isInteger(r.maxImageSize)||(r.maxImageSize=-1),"boolean"!=typeof r.isEvalSupported&&(r.isEvalSupported=!0),"boolean"!=typeof r.disableFontFace&&(r.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),"boolean"!=typeof r.disableRange&&(r.disableRange=!1),"boolean"!=typeof r.disableStream&&(r.disableStream=!1),"boolean"!=typeof r.disableAutoFetch&&(r.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(r.verbosity),!o){var h={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};o=h.port?PDFWorker.fromPort(h):new PDFWorker(h),t._worker=o}var d=t.docId;return o.promise.then((function(){if(t.destroyed)throw new Error("Loading aborted");var e=_fetchDocument(o,r,n,d),c=new Promise((function(e){var t;n?t=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,disableRange:r.disableRange,disableStream:r.disableStream},n):r.data||(t=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream})),e(t)}));return Promise.all([e,c]).then((function(e){var n=_slicedToArray(e,2),c=n[0],l=n[1];if(t.destroyed)throw new Error("Loading aborted");var h=new _message_handler.MessageHandler(d,c,o.port);h.postMessageTransfers=o.postMessageTransfers;var f=new WorkerTransport(h,t,l,r);t._transport=f,h.send("Ready",null)}))})).catch(t._capability.reject),t}function _fetchDocument(e,source,t,r){return e.destroyed?Promise.reject(new Error("Worker was destroyed")):(t&&(source.length=t.length,source.initialData=t.initialData,source.progressiveDone=t.progressiveDone),e.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.5.207",source:{data:source.data,url:source.url,password:source.password,disableAutoFetch:source.disableAutoFetch,rangeChunkSize:source.rangeChunkSize,length:source.length},maxImageSize:source.maxImageSize,disableFontFace:source.disableFontFace,postMessageTransfers:e.postMessageTransfers,docBaseUrl:source.docBaseUrl,ignoreErrors:source.ignoreErrors,isEvalSupported:source.isEvalSupported,fontExtraProperties:source.fontExtraProperties}).then((function(t){if(e.destroyed)throw new Error("Worker was destroyed");return t})))}var PDFDocumentLoadingTask=(nextDocumentId=0,function(){return _createClass((function e(){_classCallCheck(this,e),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+nextDocumentId++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}),[{key:"promise",get:function(){return this._capability.promise}},{key:"destroy",value:function(){var e=this;return this.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then((function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)}))}}])}()),nextDocumentId,PDFDataRangeTransport=function(){return _createClass((function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.length=t,this.initialData=r,this.progressiveDone=n,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}),[{key:"addRangeListener",value:function(e){this._rangeListeners.push(e)}},{key:"addProgressListener",value:function(e){this._progressListeners.push(e)}},{key:"addProgressiveReadListener",value:function(e){this._progressiveReadListeners.push(e)}},{key:"addProgressiveDoneListener",value:function(e){this._progressiveDoneListeners.push(e)}},{key:"onDataRange",value:function(e,t){var r,n=_createForOfIteratorHelper(this._rangeListeners);try{for(n.s();!(r=n.n()).done;)(0,r.value)(e,t)}catch(e){n.e(e)}finally{n.f()}}},{key:"onDataProgress",value:function(e,t){var r=this;this._readyCapability.promise.then((function(){var n,o=_createForOfIteratorHelper(r._progressListeners);try{for(o.s();!(n=o.n()).done;)(0,n.value)(e,t)}catch(e){o.e(e)}finally{o.f()}}))}},{key:"onDataProgressiveRead",value:function(e){var t=this;this._readyCapability.promise.then((function(){var r,n=_createForOfIteratorHelper(t._progressiveReadListeners);try{for(n.s();!(r=n.n()).done;)(0,r.value)(e)}catch(e){n.e(e)}finally{n.f()}}))}},{key:"onDataProgressiveDone",value:function(){var e=this;this._readyCapability.promise.then((function(){var t,r=_createForOfIteratorHelper(e._progressiveDoneListeners);try{for(r.s();!(t=r.n()).done;)(0,t.value)()}catch(e){r.e(e)}finally{r.f()}}))}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}])}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){return _createClass((function e(t,r){_classCallCheck(this,e),this._pdfInfo=t,this._transport=r}),[{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"getPage",value:function(e){return this._transport.getPage(e)}},{key:"getPageIndex",value:function(e){return this._transport.getPageIndex(e)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(e){return this._transport.getDestination(e)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getOpenActionDestination",value:function(){return(0,_display_utils.deprecated)("getOpenActionDestination, use getOpenAction instead."),this.getOpenAction().then((function(e){return e&&e.dest?e.dest:null}))}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){return this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}])}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){return _createClass((function e(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_classCallCheck(this,e),this._pageIndex=t,this._pageInfo=r,this._transport=n,this._stats=o?new _display_utils.StatTimer:null,this._pdfBug=o,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this.intentStates=Object.create(null),this.destroyed=!1}),[{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.scale,r=e.rotation,n=void 0===r?this.rotate:r,o=e.offsetX,c=void 0===o?0:o,l=e.offsetY,h=void 0===l?0:l,d=e.dontFlip,f=void 0!==d&&d;return new _display_utils.PageViewport({viewBox:this.view,scale:t,rotation:n,offsetX:c,offsetY:h,dontFlip:f})}},{key:"getAnnotations",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intent,t=void 0===e?null:e;return this.annotationsPromise&&this.annotationsIntent===t||(this.annotationsPromise=this._transport.getAnnotations(this._pageIndex,t),this.annotationsIntent=t),this.annotationsPromise}},{key:"render",value:function(e){var t=this,r=e.canvasContext,n=e.viewport,o=e.intent,c=void 0===o?"display":o,l=e.enableWebGL,h=void 0!==l&&l,d=e.renderInteractiveForms,f=void 0!==d&&d,m=e.transform,v=void 0===m?null:m,y=e.imageLayer,k=void 0===y?null:y,w=e.canvasFactory,S=void 0===w?null:w,A=e.background,x=void 0===A?null:A;this._stats&&this._stats.time("Overall");var C="print"===c?"print":"display";this.pendingCleanup=!1,this.intentStates[C]||(this.intentStates[C]=Object.create(null));var _=this.intentStates[C];_.streamReaderCancelTimeout&&(clearTimeout(_.streamReaderCancelTimeout),_.streamReaderCancelTimeout=null);var P=S||new _display_utils.DOMCanvasFactory,T=new _webgl.WebGLContext({enable:h});_.displayReadyCapability||(_.displayReadyCapability=(0,_util.createPromiseCapability)(),_.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:C,renderInteractiveForms:!0===f}));var I=function(e){var i=_.renderTasks.indexOf(E);i>=0&&_.renderTasks.splice(i,1),(t.cleanupAfterRender||"print"===C)&&(t.pendingCleanup=!0),t._tryCleanup(),e?(E.capability.reject(e),t._abortOperatorList({intentState:_,reason:e})):E.capability.resolve(),t._stats&&(t._stats.timeEnd("Rendering"),t._stats.timeEnd("Overall"))},E=new InternalRenderTask({callback:I,params:{canvasContext:r,viewport:n,transform:v,imageLayer:k,background:x},objs:this.objs,commonObjs:this.commonObjs,operatorList:_.operatorList,pageIndex:this._pageIndex,canvasFactory:P,webGLContext:T,useRequestAnimationFrame:"print"!==C,pdfBug:this._pdfBug});_.renderTasks||(_.renderTasks=[]),_.renderTasks.push(E);var F=E.task;return _.displayReadyCapability.promise.then((function(e){t.pendingCleanup?I():(t._stats&&t._stats.time("Rendering"),E.initializeGraphics(e),E.operatorListChanged())})).catch(I),F}},{key:"getOperatorList",value:function(){var e="oplist";this.intentStates[e]||(this.intentStates[e]=Object.create(null));var t,r=this.intentStates[e];return r.opListReadCapability||((t={}).operatorListChanged=function(){if(r.operatorList.lastChunk){r.opListReadCapability.resolve(r.operatorList);var i=r.renderTasks.indexOf(t);i>=0&&r.renderTasks.splice(i,1)}},r.opListReadCapability=(0,_util.createPromiseCapability)(),r.renderTasks=[],r.renderTasks.push(t),r.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:e})),r.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.normalizeWhitespace,r=void 0!==t&&t,n=e.disableCombineTextItems,o=void 0!==n&&n;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===r,combineTextItems:!0!==o},{highWaterMark:100,size:function(e){return e.items.length}})}},{key:"getTextContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.streamTextContent(e);return new Promise((function(e,r){var n=t.getReader(),o={items:[],styles:Object.create(null)};!function t(){n.read().then((function(r){var n,c=r.value;r.done?e(o):(Object.assign(o.styles,c.styles),(n=o.items).push.apply(n,_toConsumableArray(c.items)),t())}),r)}()}))}},{key:"_destroy",value:function(){var e=this;this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var t=[];return Object.keys(this.intentStates).forEach((function(r){var n=e.intentStates[r];e._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),"oplist"!==r&&n.renderTasks.forEach((function(e){var r=e.capability.promise.catch((function(){}));t.push(r),e.cancel()}))})),this.objs.clear(),this.annotationsPromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(e)}},{key:"_tryCleanup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(!this.pendingCleanup||Object.keys(this.intentStates).some((function(t){var r=e.intentStates[t];return 0!==r.renderTasks.length||!r.operatorList.lastChunk}))||(Object.keys(this.intentStates).forEach((function(t){delete e.intentStates[t]})),this.objs.clear(),this.annotationsPromise=null,t&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,0))}},{key:"_startRenderPage",value:function(e,t){var r=this.intentStates[t];r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(e))}},{key:"_renderPageChunk",value:function(e,t){for(var i=0,r=e.length;i<r;i++)t.operatorList.fnArray.push(e.fnArray[i]),t.operatorList.argsArray.push(e.argsArray[i]);t.operatorList.lastChunk=e.lastChunk;for(var n=0;n<t.renderTasks.length;n++)t.renderTasks[n].operatorListChanged();e.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(e){var t=this;(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var r=this._transport.messageHandler.sendWithStream("GetOperatorList",e).getReader(),n=this.intentStates[e.intent];n.streamReader=r;var o=function(){r.read().then((function(e){var r=e.value;e.done?n.streamReader=null:t._transport.destroyed||(t._renderPageChunk(r,n),o())}),(function(e){if(n.streamReader=null,!t._transport.destroyed){if(n.operatorList){n.operatorList.lastChunk=!0;for(var i=0;i<n.renderTasks.length;i++)n.renderTasks[i].operatorListChanged();t._tryCleanup()}if(n.displayReadyCapability)n.displayReadyCapability.reject(e);else{if(!n.opListReadCapability)throw e;n.opListReadCapability.reject(e)}}}))};o()}},{key:"_abortOperatorList",value:function(e){var t=this,r=e.intentState,n=e.reason,o=e.force,c=void 0!==o&&o;if((0,_util.assert)(n instanceof Error||"object"===_typeof(n)&&null!==n,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),r.streamReader){if(!c){if(0!==r.renderTasks.length)return;if(n instanceof _display_utils.RenderingCancelledException)return void(r.streamReaderCancelTimeout=setTimeout((function(){t._abortOperatorList({intentState:r,reason:n,force:!0}),r.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}r.streamReader.cancel(new _util.AbortException(n&&n.message)),r.streamReader=null,this._transport.destroyed||(Object.keys(this.intentStates).some((function(e){return t.intentStates[e]===r&&(delete t.intentStates[e],!0)})),this.cleanup())}}},{key:"stats",get:function(){return this._stats}}])}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){return _createClass((function e(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,e),this._listeners=[],this._defer=t,this._deferred=Promise.resolve(void 0)}),[{key:"postMessage",value:function(e,t){var r=this;if(this._defer){var n=new WeakMap,o={data:function e(r){if("object"!==_typeof(r)||null===r)return r;if(n.has(r))return n.get(r);var o,c;if((o=r.buffer)&&(0,_util.isArrayBuffer)(o))return c=t&&t.includes(o)?new r.constructor(o,r.byteOffset,r.byteLength):new r.constructor(r),n.set(r,c),c;for(var i in c=Array.isArray(r)?[]:{},n.set(r,c),r){for(var desc=void 0,p=r;!(desc=Object.getOwnPropertyDescriptor(p,i));)p=Object.getPrototypeOf(p);if(void 0!==desc.value)if("function"!=typeof desc.value)c[i]=e(desc.value);else if(r.hasOwnProperty&&r.hasOwnProperty(i))throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(r[i]))}return c}(e)};this._deferred.then((function(){r._listeners.forEach((function(e){e.call(r,o)}))}))}else this._listeners.forEach((function(t){t.call(r,{data:e})}))}},{key:"addEventListener",value:function(e,t){this._listeners.push(t)}},{key:"removeEventListener",value:function(e,t){var i=this._listeners.indexOf(t);this._listeners.splice(i,1)}},{key:"terminate",value:function(){this._listeners.length=0}}])}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function PDFWorkerClosure(){var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"==typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(void 0!==fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}function getMainThreadWorkerMessageHandler(){var e;try{e=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(e){}return e||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();var loader=function(){var _ref18=_asyncToGenerator(_regeneratorRuntime().mark((function _callee3(){var mainWorkerMessageHandler,worker;return _regeneratorRuntime().wrap((function _callee3$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:if(mainWorkerMessageHandler=getMainThreadWorkerMessageHandler(),!mainWorkerMessageHandler){_context3.next=3;break}return _context3.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context3.next=6;break}return worker=eval("require")(_getWorkerSrc()),_context3.abrupt("return",worker.WorkerMessageHandler);case 6:return _context3.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context3.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context3.stop()}}),_callee3)})));return function(){return _ref18.apply(this,arguments)}}();return loader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}function createCDNWrapper(e){var t="importScripts('"+e+"');";return URL.createObjectURL(new Blob([t]))}var PDFWorker=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.name,n=void 0===r?null:r,o=t.port,c=void 0===o?null:o,l=t.verbosity,h=void 0===l?(0,_util.getVerbosityLevel)():l;if(_classCallCheck(this,e),c&&pdfWorkerPorts.has(c))throw new Error("Cannot use more than one PDFWorker per port");if(this.name=n,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=h,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,c)return pdfWorkerPorts.set(c,this),void this._initializeFromPort(c);this._initialize()}return _createClass(e,[{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}},{key:"_initializeFromPort",value:function(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var e=this;if("undefined"!=typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var t=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,t)||(t=createCDNWrapper(new URL(t,window.location).href));var r=new Worker(t),n=new _message_handler.MessageHandler("main","worker",r),o=function(){r.removeEventListener("error",c),n.destroy(),r.terminate(),e.destroyed?e._readyCapability.reject(new Error("Worker was destroyed")):e._setupFakeWorker()},c=function(){e._webWorker||o()};r.addEventListener("error",c),n.on("test",(function(data){r.removeEventListener("error",c),e.destroyed?o():data?(e._messageHandler=n,e._port=r,e._webWorker=r,data.supportTransfers||(e.postMessageTransfers=!1),e._readyCapability.resolve(),n.send("configure",{verbosity:e.verbosity})):(e._setupFakeWorker(),n.destroy(),r.terminate())})),n.on("ready",(function(data){if(r.removeEventListener("error",c),e.destroyed)o();else try{l()}catch(t){e._setupFakeWorker()}}));var l=function(){var t=new Uint8Array([e.postMessageTransfers?255:0]);try{n.send("test",t,[t.buffer])}catch(e){(0,_util.warn)("Cannot use postMessage transfers."),t[0]=0,n.send("test",t)}};return void l()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var e=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((function(t){if(e.destroyed)e._readyCapability.reject(new Error("Worker was destroyed"));else{var r=new LoopbackPort;e._port=r;var n="fake"+nextFakeWorkerId++,o=new _message_handler.MessageHandler(n+"_worker",n,r);t.setup(o,r);var c=new _message_handler.MessageHandler(n,n+"_worker",r);e._messageHandler=c,e._readyCapability.resolve(),c.send("configure",{verbosity:e.verbosity})}})).catch((function(t){e._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))}))}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}}],[{key:"fromPort",value:function(t){if(!t||!t.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(t.port)?pdfWorkerPorts.get(t.port):new e(t)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}])}();return PDFWorker}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){return _createClass((function e(t,r,n,o){_classCallCheck(this,e),this.messageHandler=t,this.loadingTask=r,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:r.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)}),this._params=o,this.CMapReaderFactory=new o.CMapReaderFactory({baseUrl:o.cMapUrl,isCompressed:o.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}),[{key:"destroy",value:function(){var e=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var t=[];this.pageCache.forEach((function(e){e&&t.push(e._destroy())})),this.pageCache.length=0,this.pagePromises.length=0;var r=this.messageHandler.sendWithPromise("Terminate",null);return t.push(r),Promise.all(t).then((function(){e.fontLoader.clear(),e._networkStream&&e._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),e.messageHandler&&(e.messageHandler.destroy(),e.messageHandler=null),e.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var e=this,t=this.messageHandler,r=this.loadingTask;t.on("GetReader",(function(data,t){(0,_util.assert)(e._networkStream,"GetReader - no `IPDFStream` instance available."),e._fullReader=e._networkStream.getFullReader(),e._fullReader.onProgress=function(t){e._lastProgress={loaded:t.loaded,total:t.total}},t.onPull=function(){e._fullReader.read().then((function(e){var r=e.value;e.done?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(r),"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(r),1,[r]))})).catch((function(e){t.error(e)}))},t.onCancel=function(t){e._fullReader.cancel(t)}})),t.on("ReaderHeadersReady",(function(data){var t=(0,_util.createPromiseCapability)(),n=e._fullReader;return n.headersReady.then((function(){n.isStreamingSupported&&n.isRangeSupported||(e._lastProgress&&r.onProgress&&r.onProgress(e._lastProgress),n.onProgress=function(e){r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}),t.resolve({isStreamingSupported:n.isStreamingSupported,isRangeSupported:n.isRangeSupported,contentLength:n.contentLength})}),t.reject),t.promise})),t.on("GetRangeReader",(function(data,t){(0,_util.assert)(e._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var r=e._networkStream.getRangeReader(data.begin,data.end);r?(t.onPull=function(){r.read().then((function(e){var r=e.value;e.done?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(r),"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(r),1,[r]))})).catch((function(e){t.error(e)}))},t.onCancel=function(e){r.cancel(e)}):t.close()})),t.on("GetDoc",(function(t){var n=t.pdfInfo;e._numPages=n.numPages,r._capability.resolve(new PDFDocumentProxy(n,e))})),t.on("DocException",(function(e){var t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details)}r._capability.reject(t)})),t.on("PasswordRequest",(function(t){if(e._passwordCapability=(0,_util.createPromiseCapability)(),r.onPassword)try{r.onPassword((function(t){e._passwordCapability.resolve({password:t})}),t.code)}catch(t){e._passwordCapability.reject(t)}else e._passwordCapability.reject(new _util.PasswordException(t.message,t.code));return e._passwordCapability.promise})),t.on("DataLoaded",(function(data){r.onProgress&&r.onProgress({loaded:data.length,total:data.length}),e.downloadInfoCapability.resolve(data)})),t.on("StartRenderPage",(function(data){e.destroyed||e.pageCache[data.pageIndex]._startRenderPage(data.transparency,data.intent)})),t.on("commonobj",(function(data){if(!e.destroyed){var r=_slicedToArray(data,3),n=r[0],o=r[1],c=r[2];if(!e.commonObjs.has(n))switch(o){case"Font":var l=e._params;if("error"in c){var h=c.error;(0,_util.warn)("Error during font loading: ".concat(h)),e.commonObjs.resolve(n,h);break}var d=null;l.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(d={registerFont:function(e,t){globalThis.FontInspector.fontAdded(e,t)}});var f=new _font_loader.FontFaceObject(c,{isEvalSupported:l.isEvalSupported,disableFontFace:l.disableFontFace,ignoreErrors:l.ignoreErrors,onUnsupportedFeature:e._onUnsupportedFeature.bind(e),fontRegistry:d});e.fontLoader.bind(f).catch((function(e){return t.sendWithPromise("FontFallback",{id:n})})).finally((function(){!l.fontExtraProperties&&f.data&&(f.data=null),e.commonObjs.resolve(n,f)}));break;case"FontPath":case"FontType3Res":case"Image":e.commonObjs.resolve(n,c);break;default:throw new Error("Got unknown common object type ".concat(o))}}})),t.on("obj",(function(data){if(!e.destroyed){var t=_slicedToArray(data,4),r=t[0],n=t[1],o=t[2],c=t[3],l=e.pageCache[n];if(!l.objs.has(r)){if("Image"!==o)throw new Error("Got unknown object type ".concat(o));l.objs.resolve(r,c),c&&"data"in c&&c.data.length>8e6&&(l.cleanupAfterRender=!0)}}})),t.on("DocProgress",(function(data){e.destroyed||r.onProgress&&r.onProgress({loaded:data.loaded,total:data.total})})),t.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),t.on("FetchBuiltInCMap",(function(data,t){if(e.destroyed)t.error(new Error("Worker was destroyed"));else{var r=!1;t.onPull=function(){r?t.close():(r=!0,e.CMapReaderFactory.fetch(data).then((function(e){t.enqueue(e,1,[e.cMapData.buffer])})).catch((function(e){t.error(e)})))}}}))}},{key:"_onUnsupportedFeature",value:function(e){var t=e.featureId;this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(t)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(e){var t=this;if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request"));var r=e-1;if(r in this.pagePromises)return this.pagePromises[r];var n=this.messageHandler.sendWithPromise("GetPage",{pageIndex:r}).then((function(e){if(t.destroyed)throw new Error("Transport destroyed");var n=new PDFPageProxy(r,e,t,t._params.pdfBug);return t.pageCache[r]=n,n}));return this.pagePromises[r]=n,n}},{key:"getPageIndex",value:function(e){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch((function(e){return Promise.reject(new Error(e))}))}},{key:"getAnnotations",value:function(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var e=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then((function(t){return{info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:e._fullReader?e._fullReader.filename:null}}))}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:function(){var e=this;return this.messageHandler.sendWithPromise("Cleanup",null).then((function(){for(var i=0,t=e.pageCache.length;i<t;i++){var r=e.pageCache[i];if(r&&!r.cleanup())throw new Error("startCleanup: Page ".concat(i+1," is currently rendering."))}e.commonObjs.clear(),e.fontLoader.clear()}))}},{key:"loadingParams",get:function(){var e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,disableFontFace:e.disableFontFace})}}])}(),PDFObjects=function(){return _createClass((function e(){_classCallCheck(this,e),this._objs=Object.create(null)}),[{key:"_ensureObj",value:function(e){return this._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return this._ensureObj(e).capability.promise.then(t),null;var r=this._objs[e];if(!r||!r.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(e,"."));return r.data}},{key:"has",value:function(e){var t=this._objs[e];return!!t&&t.resolved}},{key:"resolve",value:function(e,data){var t=this._ensureObj(e);t.resolved=!0,t.data=data,t.capability.resolve(data)}},{key:"clear",value:function(){this._objs=Object.create(null)}}])}(),RenderTask=function(){return _createClass((function e(t){_classCallCheck(this,e),this._internalRenderTask=t,this.onContinue=null}),[{key:"promise",get:function(){return this._internalRenderTask.capability.promise}},{key:"cancel",value:function(){this._internalRenderTask.cancel()}}])}(),InternalRenderTask=function(){var e=new WeakSet,t=function(){return _createClass((function e(t){var r=t.callback,n=t.params,o=t.objs,c=t.commonObjs,l=t.operatorList,h=t.pageIndex,d=t.canvasFactory,f=t.webGLContext,m=t.useRequestAnimationFrame,v=void 0!==m&&m,y=t.pdfBug,k=void 0!==y&&y;_classCallCheck(this,e),this.callback=r,this.params=n,this.objs=o,this.commonObjs=c,this.operatorListIdx=null,this.operatorList=l,this._pageIndex=h,this.canvasFactory=d,this.webGLContext=f,this._pdfBug=k,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===v&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvasContext.canvas}),[{key:"initializeGraphics",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.cancelled){if(this._canvas){if(e.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.");e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var r=this.params,n=r.canvasContext,o=r.viewport,c=r.transform,l=r.imageLayer,h=r.background;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,l),this.gfx.beginDrawing({transform:c,viewport:o,transparency:t,background:h}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var e=this;this._useRequestAnimationFrame?window.requestAnimationFrame((function(){e._nextBound().catch(e.cancel.bind(e))})):Promise.resolve().then(this._nextBound).catch(this.cancel.bind(this))}},{key:"_next",value:(t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.cancelled){t.next=2;break}return t.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback()));case 4:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})}]);var t}();return t}(),version="2.5.207";exports.version=version;var build="0974d605";exports.build=build},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var n,o=r(2),c=function(){return _createClass((function e(t){var r=t.docId,n=t.onUnsupportedFeature;_classCallCheck(this,e),this.constructor===e&&(0,o.unreachable)("Cannot initialize BaseFontLoader."),this.docId=r,this._onUnsupportedFeature=n,this.nativeFontFaces=[],this.styleElement=null}),[{key:"addNativeFontFace",value:function(e){this.nativeFontFaces.push(e),document.fonts.add(e)}},{key:"insertRule",value:function(e){var t=this.styleElement;t||((t=this.styleElement=document.createElement("style")).id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(t));var r=t.sheet;r.insertRule(e,r.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach((function(e){document.fonts.delete(e)})),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,c=this;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.attached&&!t.missingFile){e.next=2;break}return e.abrupt("return");case 2:if(t.attached=!0,!this.isFontLoadingAPISupported){e.next=19;break}if(!(r=t.createNativeFontFace())){e.next=18;break}return this.addNativeFontFace(r),e.prev=7,e.next=10,r.loaded;case 10:e.next=18;break;case 12:throw e.prev=12,e.t0=e.catch(7),this._onUnsupportedFeature({featureId:o.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,o.warn)("Failed to load font '".concat(r.family,"': '").concat(e.t0,"'.")),t.disableFontFace=!0,e.t0;case 18:return e.abrupt("return");case 19:if(!(n=t.createFontFaceRule())){e.next=26;break}if(this.insertRule(n),!this.isSyncFontLoadingSupported){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,new Promise((function(e){var r=c._queueLoadingCallback(e);c._prepareFontLoadEvent([n],[t],r)}));case 26:case"end":return e.stop()}}),e,this,[[7,12]])}))),function(t){return e.apply(this,arguments)})},{key:"_queueLoadingCallback",value:function(e){(0,o.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"isFontLoadingAPISupported",get:function(){var e="undefined"!=typeof document&&!!document.fonts;return(0,o.shadow)(this,"isFontLoadingAPISupported",e)}},{key:"isSyncFontLoadingSupported",get:function(){(0,o.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,o.unreachable)("Abstract method `_loadTestFont`.")}},{key:"_prepareFontLoadEvent",value:function(e,t,r){(0,o.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}]);var e}();t.FontLoader=n,t.FontLoader=n=function(e){function t(e){var r;return _classCallCheck(this,t),(r=_callSuper(this,t,[e])).loadingContext={requests:[],nextRequestId:0},r.loadTestFontId=0,r}return _inherits(t,e),_createClass(t,[{key:"isSyncFontLoadingSupported",get:function(){var e=!1;if("undefined"==typeof navigator)e=!0;else{var t=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);t&&t[1]>=14&&(e=!0)}return(0,o.shadow)(this,"isSyncFontLoadingSupported",e)}},{key:"_queueLoadingCallback",value:function(e){var t=this.loadingContext,r={id:"pdfjs-font-loading-".concat(t.nextRequestId++),done:!1,complete:function(){for((0,o.assert)(!r.done,"completeRequest() cannot be called twice."),r.done=!0;t.requests.length>0&&t.requests[0].done;){var e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(r),r}},{key:"_loadTestFont",get:function(){return(0,o.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}},{key:"_prepareFontLoadEvent",value:function(e,t,r){function n(data,e){return data.charCodeAt(e)<<24|data.charCodeAt(e+1)<<16|data.charCodeAt(e+2)<<8|255&data.charCodeAt(e+3)}function c(s,e,t,r){return s.substring(0,e)+r+s.substring(e+t)}var i,l,canvas=document.createElement("canvas");canvas.width=1,canvas.height=1;var h=canvas.getContext("2d"),d=0,f="lt".concat(Date.now()).concat(this.loadTestFontId++),data=this._loadTestFont,m=1482184792,v=n(data=c(data,976,f.length,f),16);for(i=0,l=f.length-3;i<l;i+=4)v=v-m+n(f,i)|0;i<f.length&&(v=v-m+n(f+"XXX",i)|0),data=c(data,16,4,(0,o.string32)(v));var y="url(data:font/opentype;base64,".concat(btoa(data),");"),k='@font-face {font-family:"'.concat(f,'";src:').concat(y,"}");this.insertRule(k);var w=[];for(i=0,l=t.length;i<l;i++)w.push(t[i].loadedName);w.push(f);var div=document.createElement("div");for(div.style.visibility="hidden",div.style.width=div.style.height="10px",div.style.position="absolute",div.style.top=div.style.left="0px",i=0,l=w.length;i<l;++i){var span=document.createElement("span");span.textContent="Hi",span.style.fontFamily=w[i],div.appendChild(span)}document.body.appendChild(div),function e(t,r){if(++d>30)return(0,o.warn)("Load test font never loaded."),void r();h.font="30px "+t,h.fillText(".",0,20),h.getImageData(0,0,1,1).data[3]>0?r():setTimeout(e.bind(null,t,r))}(f,(function(){document.body.removeChild(div),r.complete()}))}}])}(c);var l=function(){return _createClass((function e(t,r){var n=r.isEvalSupported,o=void 0===n||n,c=r.disableFontFace,l=void 0!==c&&c,h=r.ignoreErrors,d=void 0!==h&&h,f=r.onUnsupportedFeature,m=void 0===f?null:f,v=r.fontRegistry,y=void 0===v?null:v;for(var i in _classCallCheck(this,e),this.compiledGlyphs=Object.create(null),t)this[i]=t[i];this.isEvalSupported=!1!==o,this.disableFontFace=!0===l,this.ignoreErrors=!0===d,this._onUnsupportedFeature=m,this.fontRegistry=y}),[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var data=(0,o.bytesToString)(new Uint8Array(this.data)),e="url(data:".concat(this.mimetype,";base64,").concat(btoa(data),");"),t='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(e,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,e),t}},{key:"getPathGenerator",value:function(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];var r,n;try{r=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:o.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,o.warn)('getPathGenerator - ignoring character: "'.concat(e,'".')),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&o.IsEvalSupportedCached.value){for(var c,l="",i=0,h=r.length;i<h;i++)c=void 0!==(n=r[i]).args?n.args.join(","):"",l+="c."+n.cmd+"("+c+");\n";return this.compiledGlyphs[t]=new Function("c","size",l)}return this.compiledGlyphs[t]=function(e,t){for(var o=0,c=r.length;o<c;o++)"scale"===(n=r[o]).cmd&&(n.args=[t,-t]),e[n.cmd].apply(e,n.args)}}}])}();t.FontFaceObject=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiCompatibilityParams=void 0;var n=r(4),o=Object.create(null);n.isNodeJS&&(o.disableFontFace=!0);var c=Object.freeze(o);t.apiCompatibilityParams=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var n=r(2),o=r(9),c=4096,l=.65,h=16;function d(e){e.mozCurrentTransform||(e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[],Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){var e=this._transformMatrix,a=e[0],b=e[1],t=e[2],r=e[3],n=e[4],o=e[5],c=a*r-b*t,l=b*t-a*r;return[r/c,b/l,t/l,a/c,(r*n-t*o)/l,(b*n-a*o)/c]}}),e.save=function(){var e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){var e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){var r=this._transformMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5],this._originalTranslate(e,t)},e.scale=function(e,t){var r=this._transformMatrix;r[0]=r[0]*e,r[1]=r[1]*e,r[2]=r[2]*t,r[3]=r[3]*t,this._originalScale(e,t)},e.transform=function(a,b,t,r,n,o){var c=this._transformMatrix;this._transformMatrix=[c[0]*a+c[2]*b,c[1]*a+c[3]*b,c[0]*t+c[2]*r,c[1]*t+c[3]*r,c[0]*n+c[2]*o+c[4],c[1]*n+c[3]*o+c[5]],e._originalTransform(a,b,t,r,n,o)},e.setTransform=function(a,b,t,r,n,o){this._transformMatrix=[a,b,t,r,n,o],e._originalSetTransform(a,b,t,r,n,o)},e.rotate=function(e){var t=Math.cos(e),r=Math.sin(e),n=this._transformMatrix;this._transformMatrix=[n[0]*t+n[2]*r,n[1]*t+n[3]*r,n[0]*-r+n[2]*t,n[1]*-r+n[3]*t,n[4],n[5]],this._originalRotate(e)})}var f=function(){function e(e){this.canvasFactory=e,this.cache=Object.create(null)}return e.prototype={getCanvas:function(e,t,r,n){var o;return void 0!==this.cache[e]?(o=this.cache[e],this.canvasFactory.reset(o,t,r),o.context.setTransform(1,0,0,1,0,0)):(o=this.canvasFactory.create(t,r),this.cache[e]=o),n&&d(o.context),o},clear:function(){for(var e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}},e}(),m=function(){function e(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=n.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=n.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null}return e.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),v=function(){function e(e,t,r,n,o,c){this.ctx=e,this.current=new m,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=r,this.canvasFactory=n,this.webGLContext=o,this.imageLayer=c,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.cachedCanvases=new f(this.canvasFactory),e&&d(e),this._cachedGetSinglePixelWidth=null}function t(e,t){if("undefined"!=typeof ImageData&&t instanceof ImageData)e.putImageData(t,0,0);else{var r,i,o,c,l,d=t.height,f=t.width,m=d%h,v=(d-m)/h,y=0===m?v:v+1,k=e.createImageData(f,h),w=0,S=t.data,A=k.data;if(t.kind===n.ImageKind.GRAYSCALE_1BPP){var x=S.byteLength,C=new Uint32Array(A.buffer,0,A.byteLength>>2),_=C.length,P=f+7>>3,T=4294967295,I=n.IsLittleEndianCached.value?4278190080:255;for(i=0;i<y;i++){for(c=i<v?h:m,r=0,o=0;o<c;o++){for(var E=x-w,F=0,L=E>P?f:8*E-7,O=-8&L,mask=0,R=0;F<O;F+=8)R=S[w++],C[r++]=128&R?T:I,C[r++]=64&R?T:I,C[r++]=32&R?T:I,C[r++]=16&R?T:I,C[r++]=8&R?T:I,C[r++]=4&R?T:I,C[r++]=2&R?T:I,C[r++]=1&R?T:I;for(;F<L;F++)0===mask&&(R=S[w++],mask=128),C[r++]=R&mask?T:I,mask>>=1}for(;r<_;)C[r++]=0;e.putImageData(k,0,i*h)}}else if(t.kind===n.ImageKind.RGBA_32BPP){for(o=0,l=f*h*4,i=0;i<v;i++)A.set(S.subarray(w,w+l)),w+=l,e.putImageData(k,0,o),o+=h;i<y&&(l=f*m*4,A.set(S.subarray(w,w+l)),e.putImageData(k,0,o))}else{if(t.kind!==n.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(t.kind));for(l=f*(c=h),i=0;i<y;i++){for(i>=v&&(l=f*(c=m)),r=0,o=l;o--;)A[r++]=S[w++],A[r++]=S[w++],A[r++]=S[w++],A[r++]=255;e.putImageData(k,0,i*h)}}}}function r(e,t){for(var r=t.height,n=t.width,o=r%h,c=(r-o)/h,l=0===o?c:c+1,d=e.createImageData(n,h),f=0,m=t.data,v=d.data,i=0;i<l;i++){for(var y=i<c?h:o,k=3,w=0;w<y;w++)for(var mask=0,S=0;S<n;S++){if(!mask){var A=m[f++];mask=128}v[k]=A&mask?0:255,k+=4,mask>>=1}e.putImageData(d,0,i*h)}}function v(e,t){for(var r=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],i=0,n=r.length;i<n;i++){var o=r[i];void 0!==e[o]&&(t[o]=e[o])}void 0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}function y(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void 0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}function k(e,t,r,n){for(var o=e.length,i=3;i<o;i+=4){var c=e[i];if(0===c)e[i-3]=t,e[i-2]=r,e[i-1]=n;else if(c<255){var l=255-c;e[i-3]=e[i-3]*c+t*l>>8,e[i-2]=e[i-2]*c+r*l>>8,e[i-1]=e[i-1]*c+n*l>>8}}}function w(e,t,r){for(var n=e.length,o=1/255,i=3;i<n;i+=4){var c=r?r[e[i]]:e[i];t[i]=t[i]*c*o|0}}function S(e,t,r){for(var n=e.length,i=3;i<n;i+=4){var o=77*e[i-3]+152*e[i-2]+28*e[i-1];t[i]=r?t[i]*r[o>>8]>>8:t[i]*o>>16}}function A(e,t,r,n){var mask=t.canvas,o=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);var c=t.backdrop||null;if(!t.transferMap&&n.isEnabled){var l=n.composeSMask({layer:r.canvas,mask:mask,properties:{subtype:t.subtype,backdrop:c}});return e.setTransform(1,0,0,1,0,0),void e.drawImage(l,t.offsetX,t.offsetY)}!function(e,t,r,n,o,c,l){var h,d=!!c,f=d?c[0]:0,m=d?c[1]:0,v=d?c[2]:0;h="Luminosity"===o?S:w;for(var y=Math.min(n,Math.ceil(1048576/r)),A=0;A<n;A+=y){var x=Math.min(y,n-A),C=e.getImageData(0,A,r,x),_=t.getImageData(0,A,r,x);d&&k(C.data,f,m,v),h(C.data,_.data,l),e.putImageData(_,0,A)}}(o,r,mask.width,mask.height,t.subtype,c,t.transferMap),e.drawImage(mask,0,0)}var x=["butt","round","square"],C=["miter","round","bevel"],_={},P={};for(var T in e.prototype={beginDrawing:function(e){var t=e.transform,r=e.viewport,n=e.transparency,o=void 0!==n&&n,c=e.background,l=void 0===c?null:c,h=this.ctx.canvas.width,d=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=l||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,h,d),this.ctx.restore(),o){var f=this.cachedCanvases.getCanvas("transparent",h,d,!0);this.compositeCtx=this.ctx,this.transparentCanvas=f.canvas,this.ctx=f.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),y(this.ctx),t&&this.ctx.transform.apply(this.ctx,t),this.ctx.transform.apply(this.ctx,r.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(e,t,r,o){var c=e.argsArray,l=e.fnArray,i=t||0,h=c.length;if(h===i)return i;for(var d,f=h-i>10&&"function"==typeof r,m=f?Date.now()+15:0,v=0,y=this.commonObjs,k=this.objs;;){if(void 0!==o&&i===o.nextBreakPoint)return o.breakIt(i,r),i;if((d=l[i])!==n.OPS.dependency)this[d].apply(this,c[i]);else{var w,S=_createForOfIteratorHelper(c[i]);try{for(S.s();!(w=S.n()).done;){var A=w.value,x=A.startsWith("g_")?y:k;if(!x.has(A))return x.get(A,r),i}}catch(e){S.e(e)}finally{S.f()}}if(++i===h)return i;if(f&&++v>10){if(Date.now()>m)return r(),i;v=0}}},endDrawing:function(){null!==this.current.activeSMask&&this.endSMaskGroup(),this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(style){this.ctx.lineCap=x[style]},setLineJoin:function(style){this.ctx.lineJoin=C[style]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){var r=this.ctx;void 0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)},setRenderingIntent:function(e){},setFlatness:function(e){},setGState:function(e){for(var i=0,t=e.length;i<t;i++){var r=e[i],n=r[0],o=r[1];switch(n){case"LW":this.setLineWidth(o);break;case"LC":this.setLineCap(o);break;case"LJ":this.setLineJoin(o);break;case"ML":this.setMiterLimit(o);break;case"D":this.setDash(o[0],o[1]);break;case"RI":this.setRenderingIntent(o);break;case"FL":this.setFlatness(o);break;case"Font":this.setFont(o[0],o[1]);break;case"CA":this.current.strokeAlpha=r[1];break;case"ca":this.current.fillAlpha=r[1],this.ctx.globalAlpha=r[1];break;case"BM":this.ctx.globalCompositeOperation=o;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=o?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var e=this.current.activeSMask,t=e.canvas.width,r=e.canvas.height,n="smaskGroupAt"+this.groupLevel,o=this.cachedCanvases.getCanvas(n,t,r,!0),c=this.ctx,l=c.mozCurrentTransform;this.ctx.save();var h=o.context;h.scale(1/e.scaleX,1/e.scaleY),h.translate(-e.offsetX,-e.offsetY),h.transform.apply(h,l),e.startTransformInverse=h.mozCurrentTransformInverse,v(c,h),this.ctx=h,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(c),this.groupLevel++},suspendSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),A(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),v(e,this.ctx),this.current.resumeSMaskCtx=e;var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){var e=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){var e=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),A(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),v(e,this.ctx);var t=n.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();var e=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)},transform:function(a,b,e,t,r,n){this.ctx.transform(a,b,e,t,r,n),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){for(var r=this.ctx,o=this.current,c=o.x,l=o.y,i=0,h=0,d=e.length;i<d;i++)switch(0|e[i]){case n.OPS.rectangle:c=t[h++],l=t[h++];var f=t[h++],m=t[h++];0===f&&(f=this.getSinglePixelWidth()),0===m&&(m=this.getSinglePixelWidth());var v=c+f,y=l+m;this.ctx.moveTo(c,l),this.ctx.lineTo(v,l),this.ctx.lineTo(v,y),this.ctx.lineTo(c,y),this.ctx.lineTo(c,l),this.ctx.closePath();break;case n.OPS.moveTo:c=t[h++],l=t[h++],r.moveTo(c,l);break;case n.OPS.lineTo:c=t[h++],l=t[h++],r.lineTo(c,l);break;case n.OPS.curveTo:c=t[h+4],l=t[h+5],r.bezierCurveTo(t[h],t[h+1],t[h+2],t[h+3],c,l),h+=6;break;case n.OPS.curveTo2:r.bezierCurveTo(c,l,t[h],t[h+1],t[h+2],t[h+3]),c=t[h+2],l=t[h+3],h+=4;break;case n.OPS.curveTo3:c=t[h+2],l=t[h+3],r.bezierCurveTo(t[h],t[h+1],c,l,c,l),h+=4;break;case n.OPS.closePath:r.closePath()}o.setCurrentPoint(c,l)},closePath:function(){this.ctx.closePath()},stroke:function(e){e=void 0===e||e;var t=this.ctx,r=this.current.strokeColor;if(t.globalAlpha=this.current.strokeAlpha,r&&r.hasOwnProperty("type")&&"Pattern"===r.type){t.save();var o=t.mozCurrentTransform,c=n.Util.singularValueDecompose2dScale(o)[0];t.strokeStyle=r.getPattern(t,this),t.lineWidth=Math.max(this.getSinglePixelWidth()*l,this.current.lineWidth*c),t.stroke(),t.restore()}else t.lineWidth=Math.max(this.getSinglePixelWidth()*l,this.current.lineWidth),t.stroke();e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e=void 0===e||e;var t=this.ctx,r=this.current.fillColor,n=!1;this.current.patternFill&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=r.getPattern(t,this),n=!0),this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill(),n&&t.restore(),e&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=_},eoClip:function(){this.pendingClip=P},beginText:function(){this.current.textMatrix=n.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){var e=this.pendingTextPaths,t=this.ctx;if(void 0!==e){t.save(),t.beginPath();for(var i=0;i<e.length;i++){var path=e[i];t.setTransform.apply(t,path.transform),t.translate(path.x,path.y),path.addToPath(t,path.fontSize)}t.restore(),t.clip(),t.beginPath(),delete this.pendingTextPaths}else t.beginPath()},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){var r=this.commonObjs.get(e),o=this.current;if(!r)throw new Error("Can't find font for ".concat(e));if(o.fontMatrix=r.fontMatrix?r.fontMatrix:n.FONT_IDENTITY_MATRIX,0!==o.fontMatrix[0]&&0!==o.fontMatrix[3]||(0,n.warn)("Invalid font matrix for font "+e),t<0?(t=-t,o.fontDirection=-1):o.fontDirection=1,this.current.font=r,this.current.fontSize=t,!r.isType3Font){var c=r.loadedName||"sans-serif",l="normal";r.black?l="900":r.bold&&(l="bold");var h=r.italic?"italic":"normal",d='"'.concat(c,'", ').concat(r.fallbackName),f=t;t<16?f=16:t>100&&(f=100),this.current.fontSizeScale=t/f,this.ctx.font="".concat(h," ").concat(l," ").concat(f,"px ").concat(d)}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(a,b,e,t,r,n){this.current.textMatrix=[a,b,e,t,r,n],this.current.textMatrixScale=Math.sqrt(a*a+b*b),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,r,o){var c,l=this.ctx,h=this.current,d=h.font,f=h.textRenderingMode,m=h.fontSize/h.fontSizeScale,v=f&n.TextRenderingMode.FILL_STROKE_MASK,y=!!(f&n.TextRenderingMode.ADD_TO_PATH_FLAG),k=h.patternFill&&!d.missingFile;(d.disableFontFace||y||k)&&(c=d.getPathGenerator(this.commonObjs,e)),d.disableFontFace||k?(l.save(),l.translate(t,r),l.beginPath(),c(l,m),o&&l.setTransform.apply(l,o),v!==n.TextRenderingMode.FILL&&v!==n.TextRenderingMode.FILL_STROKE||l.fill(),v!==n.TextRenderingMode.STROKE&&v!==n.TextRenderingMode.FILL_STROKE||l.stroke(),l.restore()):(v!==n.TextRenderingMode.FILL&&v!==n.TextRenderingMode.FILL_STROKE||l.fillText(e,t,r),v!==n.TextRenderingMode.STROKE&&v!==n.TextRenderingMode.FILL_STROKE||l.strokeText(e,t,r)),y&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:l.mozCurrentTransform,x:t,y:r,fontSize:m,addToPath:c})},get isFontSubpixelAAEnabled(){var e=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;e.scale(1.5,1),e.fillText("I",0,10);for(var data=e.getImageData(0,0,10,10).data,t=!1,i=3;i<data.length;i+=4)if(data[i]>0&&data[i]<255){t=!0;break}return(0,n.shadow)(this,"isFontSubpixelAAEnabled",t)},showText:function(e){var t=this.current,r=t.font;if(r.isType3Font)return this.showType3Text(e);var o=t.fontSize;if(0!==o){var c,h=this.ctx,d=t.fontSizeScale,f=t.charSpacing,m=t.wordSpacing,v=t.fontDirection,y=t.textHScale*v,k=e.length,w=r.vertical,S=w?1:-1,A=r.defaultVMetrics,x=o*t.fontMatrix[0],C=t.textRenderingMode===n.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;if(h.save(),t.patternFill){h.save();var pattern=t.fillColor.getPattern(h,this);c=h.mozCurrentTransform,h.restore(),h.fillStyle=pattern}h.transform.apply(h,t.textMatrix),h.translate(t.x,t.y+t.textRise),v>0?h.scale(y,-1):h.scale(y,1);var _=t.lineWidth,P=t.textMatrixScale;if(0===P||0===_){var T=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;T!==n.TextRenderingMode.STROKE&&T!==n.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,_=this.getSinglePixelWidth()*l)}else _/=P;1!==d&&(h.scale(d,d),_/=d),h.lineWidth=_;var i,I=0;for(i=0;i<k;++i){var glyph=e[i];if((0,n.isNum)(glyph))I+=S*glyph*o/1e3;else{var E,F,L,O,R,M,N,D=!1,B=(glyph.isSpace?m:0)+f,U=glyph.fontChar,j=glyph.accent,H=glyph.width;if(w?(R=glyph.vmetric||A,M=-(M=glyph.vmetric?R[1]:.5*H)*x,N=R[2]*x,H=R?-R[0]:H,E=M/d,F=(I+N)/d):(E=I/d,F=0),r.remeasure&&H>0){var G=1e3*h.measureText(U).width/o*d;if(H<G&&this.isFontSubpixelAAEnabled){var z=H/G;D=!0,h.save(),h.scale(z,1),E/=z}else H!==G&&(E+=(H-G)/2e3*o/d)}(glyph.isInFont||r.missingFile)&&(C&&!j?h.fillText(U,E,F):(this.paintChar(U,E,F,c),j&&(L=E+j.offset.x/d,O=F-j.offset.y/d,this.paintChar(j.fontChar,L,O,c)))),I+=w?H*x-B*v:H*x+B*v,D&&h.restore()}}w?t.y-=I:t.x+=I*y,h.restore()}},showType3Text:function(e){var i,glyph,t,r,o=this.ctx,c=this.current,l=c.font,h=c.fontSize,d=c.fontDirection,f=l.vertical?1:-1,m=c.charSpacing,v=c.wordSpacing,y=c.textHScale*d,k=c.fontMatrix||n.FONT_IDENTITY_MATRIX,w=e.length;if(c.textRenderingMode!==n.TextRenderingMode.INVISIBLE&&0!==h){for(this._cachedGetSinglePixelWidth=null,o.save(),o.transform.apply(o,c.textMatrix),o.translate(c.x,c.y),o.scale(y,d),i=0;i<w;++i)if(glyph=e[i],(0,n.isNum)(glyph))r=f*glyph*h/1e3,this.ctx.translate(r,0),c.x+=r*y;else{var S=(glyph.isSpace?v:0)+m,A=l.charProcOperatorList[glyph.operatorListId];A?(this.processingType3=glyph,this.save(),o.scale(h,h),o.transform.apply(o,k),this.executeOperatorList(A),this.restore(),t=n.Util.applyTransform([glyph.width,0],k)[0]*h+S,o.translate(t,0),c.x+=t*y):(0,n.warn)('Type3 character "'.concat(glyph.operatorListId,'" is not available.'))}o.restore(),this.processingType3=null}},setCharWidth:function(e,t){},setCharWidthAndBounds:function(e,t,r,n,o,c){this.ctx.rect(r,n,o-r,c-n),this.clip(),this.endPath()},getColorN_Pattern:function(t){var pattern,r=this;if("TilingPattern"===t[0]){var n=t[1],c=this.baseTransform||this.ctx.mozCurrentTransform.slice(),l={createCanvasGraphics:function(t){return new e(t,r.commonObjs,r.objs,r.canvasFactory,r.webGLContext)}};pattern=new o.TilingPattern(t,n,this.ctx,l,c)}else pattern=(0,o.getShadingPatternFromIR)(t);return pattern},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(e,g,b){var t=n.Util.makeCssRgb(e,g,b);this.ctx.strokeStyle=t,this.current.strokeColor=t},setFillRGBColor:function(e,g,b){var t=n.Util.makeCssRgb(e,g,b);this.ctx.fillStyle=t,this.current.fillColor=t,this.current.patternFill=!1},shadingFill:function(e){var t=this.ctx;this.save();var pattern=(0,o.getShadingPatternFromIR)(e);t.fillStyle=pattern.getPattern(t,this,!0);var r=t.mozCurrentTransformInverse;if(r){var canvas=t.canvas,c=canvas.width,l=canvas.height,h=n.Util.applyTransform([0,0],r),br=n.Util.applyTransform([0,l],r),ul=n.Util.applyTransform([c,0],r),d=n.Util.applyTransform([c,l],r),f=Math.min(h[0],br[0],ul[0],d[0]),m=Math.min(h[1],br[1],ul[1],d[1]),v=Math.max(h[0],br[0],ul[0],d[0]),y=Math.max(h[1],br[1],ul[1],d[1]);this.ctx.fillRect(f,m,v-f,y-m)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,n.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,n.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t){var r=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],r,n),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop()},beginGroup:function(e){this.save();var t=this.ctx;e.isolated||(0,n.info)("TODO: Support non-isolated groups."),e.knockout&&(0,n.warn)("Knockout groups not supported.");var r=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");var o=n.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform),l=[0,0,t.canvas.width,t.canvas.height];o=n.Util.intersect(o,l)||[0,0,0,0];var h=Math.floor(o[0]),d=Math.floor(o[1]),f=Math.max(Math.ceil(o[2])-h,1),m=Math.max(Math.ceil(o[3])-d,1),y=1,k=1;f>c&&(y=f/c,f=c),m>c&&(k=m/c,m=c);var w="groupAt"+this.groupLevel;e.smask&&(w+="_smask_"+this.smaskCounter++%2);var S=this.cachedCanvases.getCanvas(w,f,m,!0),A=S.context;A.scale(1/y,1/k),A.translate(-h,-d),A.transform.apply(A,r),e.smask?this.smaskStack.push({canvas:S.canvas,context:A,offsetX:h,offsetY:d,scaleX:y,scaleY:k,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(h,d),t.scale(y,k)),v(t,A),this.ctx=A,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){this.groupLevel--;var t=this.ctx;this.ctx=this.groupStack.pop(),void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(rect,e,t){if(this.save(),y(this.ctx),this.current=new m,Array.isArray(rect)&&4===rect.length){var r=rect[2]-rect[0],n=rect[3]-rect[1];this.ctx.rect(rect[0],rect[1],r,n),this.clip(),this.endPath()}this.transform.apply(this,e),this.transform.apply(this,t)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(img){var e=this.ctx,t=img.width,n=img.height,o=this.current.fillColor,c=this.current.patternFill,glyph=this.processingType3;if(glyph&&void 0===glyph.compiled&&(glyph.compiled=t<=1e3&&n<=1e3?function(e){var i,t,r,n,o=e.width,c=e.height,l=o+1,h=new Uint8Array(l*(c+1)),d=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),f=o+7&-8,m=e.data,data=new Uint8Array(f*c),v=0;for(i=0,n=m.length;i<n;i++)for(var mask=128,y=m[i];mask>0;)data[v++]=y&mask?0:255,mask>>=1;var k=0;for(0!==data[v=0]&&(h[0]=1,++k),t=1;t<o;t++)data[v]!==data[v+1]&&(h[t]=data[v]?2:1,++k),v++;for(0!==data[v]&&(h[t]=2,++k),i=1;i<c;i++){r=i*l,data[(v=i*f)-f]!==data[v]&&(h[r]=data[v]?1:8,++k);var w=(data[v]?4:0)+(data[v-f]?8:0);for(t=1;t<o;t++)d[w=(w>>2)+(data[v+1]?4:0)+(data[v-f+1]?8:0)]&&(h[r+t]=d[w],++k),v++;if(data[v-f]!==data[v]&&(h[r+t]=data[v]?2:4,++k),k>1e3)return null}for(r=i*l,0!==data[v=f*(c-1)]&&(h[r]=8,++k),t=1;t<o;t++)data[v]!==data[v+1]&&(h[r+t]=data[v]?4:8,++k),v++;if(0!==data[v]&&(h[r+t]=4,++k),k>1e3)return null;var S=new Int32Array([0,l,-1,0,-l,0,0,0,1]),A=[];for(i=0;k&&i<=c;i++){for(var p=i*l,x=p+o;p<x&&!h[p];)p++;if(p!==x){var C,_=[p%l,i],P=h[p],T=p;do{var I=S[P];do{p+=I}while(!h[p]);5!==(C=h[p])&&10!==C?(P=C,h[p]=0):(P=C&51*P>>4,h[p]&=P>>2|P<<2),_.push(p%l),_.push(p/l|0),h[p]||--k}while(T!==p);A.push(_),--i}}return function(e){e.save(),e.scale(1/o,-1/c),e.translate(0,-c),e.beginPath();for(var t=0,r=A.length;t<r;t++){var n=A[t];e.moveTo(n[0],n[1]);for(var l=2,h=n.length;l<h;l+=2)e.lineTo(n[l],n[l+1])}e.fill(),e.beginPath(),e.restore()}}({data:img.data,width:t,height:n}):null),glyph&&glyph.compiled)glyph.compiled(e);else{var l=this.cachedCanvases.getCanvas("maskCanvas",t,n),h=l.context;h.save(),r(h,img),h.globalCompositeOperation="source-in",h.fillStyle=c?o.getPattern(h,this):o,h.fillRect(0,0,t,n),h.restore(),this.paintInlineImageXObject(l.canvas)}},paintImageMaskXObjectRepeat:function(e,t,n,o){var c=e.width,l=e.height,h=this.current.fillColor,d=this.current.patternFill,f=this.cachedCanvases.getCanvas("maskCanvas",c,l),m=f.context;m.save(),r(m,e),m.globalCompositeOperation="source-in",m.fillStyle=d?h.getPattern(m,this):h,m.fillRect(0,0,c,l),m.restore();for(var v=this.ctx,i=0,y=o.length;i<y;i+=2)v.save(),v.transform(t,0,0,n,o[i],o[i+1]),v.scale(1,-1),v.drawImage(f.canvas,0,0,c,l,0,-1,1,1),v.restore()},paintImageMaskXObjectGroup:function(e){for(var t=this.ctx,n=this.current.fillColor,o=this.current.patternFill,i=0,c=e.length;i<c;i++){var image=e[i],l=image.width,h=image.height,d=this.cachedCanvases.getCanvas("maskCanvas",l,h),f=d.context;f.save(),r(f,image),f.globalCompositeOperation="source-in",f.fillStyle=o?n.getPattern(f,this):n,f.fillRect(0,0,l,h),f.restore(),t.save(),t.transform.apply(t,image.transform),t.scale(1,-1),t.drawImage(d.canvas,0,0,l,h,0,-1,1,1),t.restore()}},paintImageXObject:function(e){var t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,n.warn)("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(e,t,r,o){var c=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);if(c){for(var l=c.width,h=c.height,map=[],i=0,d=o.length;i<d;i+=2)map.push({transform:[t,0,0,r,o[i],o[i+1]],x:0,y:0,w:l,h:h});this.paintInlineImageXObjectGroup(c,map)}else(0,n.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(e){var r=e.width,n=e.height,o=this.ctx;this.save(),o.scale(1/r,-1/n);var c,l,h=o.mozCurrentTransformInverse,a=h[0],b=h[1],d=Math.max(Math.sqrt(a*a+b*b),1),f=h[2],m=h[3],v=Math.max(Math.sqrt(f*f+m*m),1);if("function"==typeof HTMLElement&&e instanceof HTMLElement||!e.data)c=e;else{var y=(l=this.cachedCanvases.getCanvas("inlineImage",r,n)).context;t(y,e),c=l.canvas}for(var k=r,w=n,S="prescale1";d>2&&k>1||v>2&&w>1;){var A=k,x=w;d>2&&k>1&&(d/=k/(A=Math.ceil(k/2))),v>2&&w>1&&(v/=w/(x=Math.ceil(w/2))),(y=(l=this.cachedCanvases.getCanvas(S,A,x)).context).clearRect(0,0,A,x),y.drawImage(c,0,0,k,w,0,0,A,x),c=l.canvas,k=A,w=x,S="prescale1"===S?"prescale2":"prescale1"}if(o.drawImage(c,0,0,k,w,0,-n,r,n),this.imageLayer){var C=this.getCanvasPosition(0,-n);this.imageLayer.appendImage({imgData:e,left:C[0],top:C[1],width:r/h[0],height:n/h[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,map){var r=this.ctx,n=e.width,o=e.height,c=this.cachedCanvases.getCanvas("inlineImage",n,o);t(c.context,e);for(var i=0,l=map.length;i<l;i++){var h=map[i];if(r.save(),r.transform.apply(r,h.transform),r.scale(1,-1),r.drawImage(c.canvas,h.x,h.y,h.w,h.h,0,-1,1,1),this.imageLayer){var d=this.getCanvasPosition(h.x,h.y);this.imageLayer.appendImage({imgData:e,left:d[0],top:d[1],width:n,height:o})}r.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,n.warn)("Unsupported 'paintXObject' command.")},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){},beginMarkedContentProps:function(e,t){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var e=this.ctx;this.pendingClip&&(this.pendingClip===P?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth:function(e){if(null===this._cachedGetSinglePixelWidth){var t=this.ctx.mozCurrentTransformInverse;this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(t[0]*t[0]+t[1]*t[1],t[2]*t[2]+t[3]*t[3]))}return this._cachedGetSinglePixelWidth},getCanvasPosition:function(e,t){var r=this.ctx.mozCurrentTransform;return[r[0]*e+r[2]*t+r[4],r[1]*e+r[3]*t+r[5]]}},n.OPS)e.prototype[n.OPS[T]]=e.prototype[T];return e}();t.CanvasGraphics=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPatternFromIR=function(e){var t=o[e[0]];if(!t)throw new Error("Unknown IR type: ".concat(e[0]));return t.fromIR(e)},t.TilingPattern=void 0;var n=r(2),o={};function c(e,t){if(t&&"undefined"!=typeof Path2D){var r=t[2]-t[0],n=t[3]-t[1],o=new Path2D;o.rect(t[0],t[1],r,n),e.clip(o)}}o.RadialAxial={fromIR:function(e){var t=e[1],r=e[2],n=e[3],o=e[4],l=e[5],h=e[6],d=e[7];return{type:"Pattern",getPattern:function(e){var f;c(e,r),"axial"===t?f=e.createLinearGradient(o[0],o[1],l[0],l[1]):"radial"===t&&(f=e.createRadialGradient(o[0],o[1],h,l[0],l[1],d));for(var i=0,m=n.length;i<m;++i){var v=n[i];f.addColorStop(v[0],v[1])}return f}}}};var l=function(){function e(data,e,t,r,n,o,c,l){var h,d=e.coords,f=e.colors,m=data.data,v=4*data.width;d[t+1]>d[r+1]&&(h=t,t=r,r=h,h=o,o=c,c=h),d[r+1]>d[n+1]&&(h=r,r=n,n=h,h=c,c=l,l=h),d[t+1]>d[r+1]&&(h=t,t=r,r=h,h=o,o=c,c=h);var y=(d[t]+e.offsetX)*e.scaleX,k=(d[t+1]+e.offsetY)*e.scaleY,w=(d[r]+e.offsetX)*e.scaleX,S=(d[r+1]+e.offsetY)*e.scaleY,A=(d[n]+e.offsetX)*e.scaleX,x=(d[n+1]+e.offsetY)*e.scaleY;if(!(k>=x))for(var C,_,P,T,I,E,F,L,O=f[o],R=f[o+1],M=f[o+2],N=f[c],D=f[c+1],B=f[c+2],U=f[l],j=f[l+1],H=f[l+2],G=Math.round(k),z=Math.round(x),W=G;W<=z;W++){if(W<S){var V=void 0;C=y-(y-w)*(V=W<k?0:k===S?1:(k-W)/(k-S)),_=O-(O-N)*V,P=R-(R-D)*V,T=M-(M-B)*V}else{var X=void 0;C=w-(w-A)*(X=W>x?1:S===x?0:(S-W)/(S-x)),_=N-(N-U)*X,P=D-(D-j)*X,T=B-(B-H)*X}var Y=void 0;I=y-(y-A)*(Y=W<k?0:W>x?1:(k-W)/(k-x)),E=O-(O-U)*Y,F=R-(R-j)*Y,L=M-(M-H)*Y;for(var K=Math.round(Math.min(C,I)),J=Math.round(Math.max(C,I)),Z=v*W+4*K,Q=K;Q<=J;Q++)(Y=(C-Q)/(C-I))<0?Y=0:Y>1&&(Y=1),m[Z++]=_-(_-E)*Y|0,m[Z++]=P-(P-F)*Y|0,m[Z++]=T-(T-L)*Y|0,m[Z++]=255}}function t(data,figure,t){var i,r,n=figure.coords,o=figure.colors;switch(figure.type){case"lattice":var c=figure.verticesPerRow,l=Math.floor(n.length/c)-1,h=c-1;for(i=0;i<l;i++)for(var q=i*c,d=0;d<h;d++,q++)e(data,t,n[q],n[q+1],n[q+c],o[q],o[q+1],o[q+c]),e(data,t,n[q+c+1],n[q+1],n[q+c],o[q+c+1],o[q+1],o[q+c]);break;case"triangles":for(i=0,r=n.length;i<r;i+=3)e(data,t,n[i],n[i+1],n[i+2],o[i],o[i+1],o[i+2]);break;default:throw new Error("illegal figure")}}return function(e,r,n,o,c,l,h,d){var canvas,f,i,m,v=Math.floor(e[0]),y=Math.floor(e[1]),k=Math.ceil(e[2])-v,w=Math.ceil(e[3])-y,S=Math.min(Math.ceil(Math.abs(k*r[0]*1.1)),3e3),A=Math.min(Math.ceil(Math.abs(w*r[1]*1.1)),3e3),x=k/S,C=w/A,_={coords:n,colors:o,offsetX:-v,offsetY:-y,scaleX:1/x,scaleY:1/C},P=S+4,T=A+4;if(d.isEnabled)canvas=d.drawFigures({width:S,height:A,backgroundColor:l,figures:c,context:_}),(f=h.getCanvas("mesh",P,T,!1)).context.drawImage(canvas,2,2),canvas=f.canvas;else{var I=(f=h.getCanvas("mesh",P,T,!1)).context,data=I.createImageData(S,A);if(l){var E=data.data;for(i=0,m=E.length;i<m;i+=4)E[i]=l[0],E[i+1]=l[1],E[i+2]=l[2],E[i+3]=255}for(i=0;i<c.length;i++)t(data,c[i],_);I.putImageData(data,2,2),canvas=f.canvas}return{canvas:canvas,offsetX:v-2*x,offsetY:y-2*C,scaleX:x,scaleY:C}}}();o.Mesh={fromIR:function(e){var t=e[2],r=e[3],o=e[4],h=e[5],d=e[6],f=e[7],m=e[8];return{type:"Pattern",getPattern:function(e,v,y){var k;if(c(e,f),y)k=n.Util.singularValueDecompose2dScale(e.mozCurrentTransform);else if(k=n.Util.singularValueDecompose2dScale(v.baseTransform),d){var w=n.Util.singularValueDecompose2dScale(d);k=[k[0]*w[0],k[1]*w[1]]}var S=l(h,k,t,r,o,y?null:m,v.cachedCanvases,v.webGLContext);return y||(e.setTransform.apply(e,v.baseTransform),d&&e.transform.apply(e,d)),e.translate(S.offsetX,S.offsetY),e.scale(S.scaleX,S.scaleY),e.createPattern(S.canvas,"no-repeat")}}}},o.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};var h=function(){var e=1,t=2;function r(e,t,r,n,o){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=n,this.baseTransform=o,this.type="Pattern",this.ctx=r}return r.prototype={createPatternCanvas:function(e){var t=this.operatorList,r=this.bbox,o=this.xstep,c=this.ystep,l=this.paintType,h=this.tilingType,d=this.color,f=this.canvasGraphicsFactory;(0,n.info)("TilingType: "+h);var m=r[0],v=r[1],y=r[2],k=r[3],w=n.Util.singularValueDecompose2dScale(this.matrix),S=n.Util.singularValueDecompose2dScale(this.baseTransform),A=[w[0]*S[0],w[1]*S[1]],x=this.getSizeAndScale(o,this.ctx.canvas.width,A[0]),C=this.getSizeAndScale(c,this.ctx.canvas.height,A[1]),_=e.cachedCanvases.getCanvas("pattern",x.size,C.size,!0),P=_.context,T=f.createCanvasGraphics(P);return T.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(T,l,d),T.transform(x.scale,0,0,C.scale,0,0),T.transform(1,0,0,1,-m,-v),this.clipBbox(T,r,m,v,y,k),T.executeOperatorList(t),this.ctx.transform(1,0,0,1,m,v),this.ctx.scale(1/x.scale,1/C.scale),_.canvas},getSizeAndScale:function(e,t,r){e=Math.abs(e);var n=Math.max(3e3,t),o=Math.ceil(e*r);return o>=n?o=n:r=o/e,{scale:r,size:o}},clipBbox:function(e,t,r,n,o,c){if(Array.isArray(t)&&4===t.length){var l=o-r,h=c-n;e.ctx.rect(r,n,l,h),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(r,o,c){var l=r.ctx,h=r.current;switch(o){case e:var d=this.ctx;l.fillStyle=d.fillStyle,l.strokeStyle=d.strokeStyle,h.fillColor=d.fillStyle,h.strokeColor=d.strokeStyle;break;case t:var f=n.Util.makeCssRgb(c[0],c[1],c[2]);l.fillStyle=f,l.strokeStyle=f,h.fillColor=f,h.strokeColor=f;break;default:throw new n.FormatError("Unsupported paint type: ".concat(o))}},getPattern:function(e,t){(e=this.ctx).setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);var r=this.createPatternCanvas(t);return e.createPattern(r,"repeat")}},r}();t.TilingPattern=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var n=r(2),o=1,c=2,l=1,h=2,d=3,f=4,m=5,v=6,y=7,k=8;function w(e){if("object"!==_typeof(e)||null===e)return e;switch(e.name){case"AbortException":return new n.AbortException(e.message);case"MissingPDFException":return new n.MissingPDFException(e.message);case"UnexpectedResponseException":return new n.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new n.UnknownErrorException(e.message,e.details);default:return new n.UnknownErrorException(e.message,e.toString())}}var S=function(){return _createClass((function e(t,r,n){var l=this;_classCallCheck(this,e),this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var data=e.data;if(data.targetName===l.sourceName)if(data.stream)l._processStreamMessage(data);else if(data.callback){var t=data.callbackId,r=l.callbackCapabilities[t];if(!r)throw new Error("Cannot resolve callback ".concat(t));if(delete l.callbackCapabilities[t],data.callback===o)r.resolve(data.data);else{if(data.callback!==c)throw new Error("Unexpected callback case");r.reject(w(data.reason))}}else{var h=l.actionHandler[data.action];if(!h)throw new Error("Unknown action from worker: ".concat(data.action));if(data.callbackId){var d=l.sourceName,f=data.sourceName;new Promise((function(e){e(h(data.data))})).then((function(e){n.postMessage({sourceName:d,targetName:f,callback:o,callbackId:data.callbackId,data:e})}),(function(e){n.postMessage({sourceName:d,targetName:f,callback:c,callbackId:data.callbackId,reason:w(e)})}))}else data.streamId?l._createStreamSink(data):h(data.data)}},n.addEventListener("message",this._onComObjOnMessage)}),[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,data,t){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:data},t)}},{key:"sendWithPromise",value:function(e,data,t){var r=this.callbackId++,o=(0,n.createPromiseCapability)();this.callbackCapabilities[r]=o;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:data},t)}catch(e){o.reject(e)}return o.promise}},{key:"sendWithStream",value:function(e,data,t,r){var o=this,c=this.streamId++,h=this.sourceName,d=this.targetName,f=this.comObj;return new ReadableStream({start:function(t){var l=(0,n.createPromiseCapability)();return o.streamControllers[c]={controller:t,startCall:l,pullCall:null,cancelCall:null,isClosed:!1},o._postMessage({sourceName:h,targetName:d,action:e,streamId:c,data:data,desiredSize:t.desiredSize},r),l.promise},pull:function(e){var t=(0,n.createPromiseCapability)();return o.streamControllers[c].pullCall=t,f.postMessage({sourceName:h,targetName:d,stream:v,streamId:c,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,n.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,n.createPromiseCapability)();return o.streamControllers[c].cancelCall=t,o.streamControllers[c].isClosed=!0,f.postMessage({sourceName:h,targetName:d,stream:l,streamId:c,reason:w(e)}),t.promise}},t)}},{key:"_createStreamSink",value:function(data){var e=this,t=this.actionHandler[data.action],r=data.streamId,o=this.sourceName,c=data.sourceName,l=this.comObj,h={enqueue:function(t){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,h=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var d=this.desiredSize;this.desiredSize-=l,d>0&&this.desiredSize<=0&&(this.sinkCapability=(0,n.createPromiseCapability)(),this.ready=this.sinkCapability.promise),e._postMessage({sourceName:o,targetName:c,stream:f,streamId:r,chunk:t},h)}},close:function(){this.isCancelled||(this.isCancelled=!0,l.postMessage({sourceName:o,targetName:c,stream:d,streamId:r}),delete e.streamSinks[r])},error:function(e){(0,n.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,l.postMessage({sourceName:o,targetName:c,stream:m,streamId:r,reason:w(e)}))},sinkCapability:(0,n.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:data.desiredSize,ready:null};h.sinkCapability.resolve(),h.ready=h.sinkCapability.promise,this.streamSinks[r]=h,new Promise((function(e){e(t(data.data,h))})).then((function(){l.postMessage({sourceName:o,targetName:c,stream:k,streamId:r,success:!0})}),(function(e){l.postMessage({sourceName:o,targetName:c,stream:k,streamId:r,reason:w(e)})}))}},{key:"_processStreamMessage",value:function(data){var e=data.streamId,t=this.sourceName,r=data.sourceName,o=this.comObj;switch(data.stream){case k:data.success?this.streamControllers[e].startCall.resolve():this.streamControllers[e].startCall.reject(w(data.reason));break;case y:data.success?this.streamControllers[e].pullCall.resolve():this.streamControllers[e].pullCall.reject(w(data.reason));break;case v:if(!this.streamSinks[e]){o.postMessage({sourceName:t,targetName:r,stream:y,streamId:e,success:!0});break}this.streamSinks[e].desiredSize<=0&&data.desiredSize>0&&this.streamSinks[e].sinkCapability.resolve(),this.streamSinks[e].desiredSize=data.desiredSize;var c=this.streamSinks[data.streamId].onPull;new Promise((function(e){e(c&&c())})).then((function(){o.postMessage({sourceName:t,targetName:r,stream:y,streamId:e,success:!0})}),(function(n){o.postMessage({sourceName:t,targetName:r,stream:y,streamId:e,reason:w(n)})}));break;case f:if((0,n.assert)(this.streamControllers[e],"enqueue should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].controller.enqueue(data.chunk);break;case d:if((0,n.assert)(this.streamControllers[e],"close should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].isClosed=!0,this.streamControllers[e].controller.close(),this._deleteStreamController(e);break;case m:(0,n.assert)(this.streamControllers[e],"error should have stream controller"),this.streamControllers[e].controller.error(w(data.reason)),this._deleteStreamController(e);break;case h:data.success?this.streamControllers[e].cancelCall.resolve():this.streamControllers[e].cancelCall.reject(w(data.reason)),this._deleteStreamController(e);break;case l:if(!this.streamSinks[e])break;var S=this.streamSinks[data.streamId].onCancel;new Promise((function(e){e(S&&S(w(data.reason)))})).then((function(){o.postMessage({sourceName:t,targetName:r,stream:h,streamId:e,success:!0})}),(function(n){o.postMessage({sourceName:t,targetName:r,stream:h,streamId:e,reason:w(n)})})),this.streamSinks[e].sinkCapability.reject(w(data.reason)),this.streamSinks[e].isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(e){return e&&e.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]);var e}();t.MessageHandler=S},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var n=r(2),o=r(13),c=function(){return _createClass((function e(data){_classCallCheck(this,e),(0,n.assert)("string"==typeof data,"Metadata: input is not a string"),data=this._repair(data);var t=(new o.SimpleXMLParser).parseFromString(data);this._metadataMap=new Map,t&&this._parse(t)}),[{key:"_repair",value:function(data){return data.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,(function(e,t){for(var r=t.replace(/\\([0-3])([0-7])([0-7])/g,(function(code,e,t,r){return String.fromCharCode(64*e+8*t+1*r)})).replace(/&(amp|apos|gt|lt|quot);/g,(function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error("_repair: ".concat(t," isn't defined."))})),n="",i=0,o=r.length;i<o;i+=2){var code=256*r.charCodeAt(i)+r.charCodeAt(i+1);n+=code>=32&&code<127&&60!==code&&62!==code&&38!==code?String.fromCharCode(code):"&#x"+(65536+code).toString(16).substring(1)+";"}return">"+n}))}},{key:"_parse",value:function(e){var t=e.documentElement;if("rdf:rdf"!==t.nodeName.toLowerCase())for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName.toLowerCase();)t=t.nextSibling;var r=t?t.nodeName.toLowerCase():null;if(t&&"rdf:rdf"===r&&t.hasChildNodes())for(var n=t.childNodes,i=0,o=n.length;i<o;i++){var desc=n[i];if("rdf:description"===desc.nodeName.toLowerCase())for(var c=0,l=desc.childNodes.length;c<l;c++)if("#text"!==desc.childNodes[c].nodeName.toLowerCase()){var h=desc.childNodes[c],d=h.nodeName.toLowerCase();this._metadataMap.set(d,h.textContent.trim())}}}},{key:"get",value:function(e){return this._metadataMap.has(e)?this._metadataMap.get(e):null}},{key:"getAll",value:function(){var e,t=Object.create(null),r=_createForOfIteratorHelper(this._metadataMap);try{for(r.s();!(e=r.n()).done;){var n=_slicedToArray(e.value,2),o=n[0],c=n[1];t[o]=c}}catch(e){r.e(e)}finally{r.f()}return t}},{key:"has",value:function(e){return this._metadataMap.has(e)}}])}();t.Metadata=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleXMLParser=void 0;var n=0,o=-2,c=-3,l=-4,h=-5,d=-6,f=-9;function m(s,e){var t=s[e];return" "===t||"\n"===t||"\r"===t||"\t"===t}var v=function(){return _createClass((function e(){_classCallCheck(this,e)}),[{key:"_resolveEntities",value:function(s){var e=this;return s.replace(/&([^;]+);/g,(function(t,r){if("#x"===r.substring(0,2))return String.fromCharCode(parseInt(r.substring(2),16));if("#"===r.substring(0,1))return String.fromCharCode(parseInt(r.substring(1),10));switch(r){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"'}return e.onResolveEntity(r)}))}},{key:"_parseContent",value:function(s,e){var t=[],r=e;function n(){for(;r<s.length&&m(s,r);)++r}for(;r<s.length&&!m(s,r)&&">"!==s[r]&&"/"!==s[r];)++r;var o=s.substring(e,r);for(n();r<s.length&&">"!==s[r]&&"/"!==s[r]&&"?"!==s[r];){n();for(var c,l="";r<s.length&&!m(s,r)&&"="!==s[r];)l+=s[r],++r;if(n(),"="!==s[r])return null;++r,n();var h=s[r];if('"'!==h&&"'"!==h)return null;var d=s.indexOf(h,++r);if(d<0)return null;c=s.substring(r,d),t.push({name:l,value:this._resolveEntities(c)}),r=d+1,n()}return{name:o,attributes:t,parsed:r-e}}},{key:"_parseProcessingInstruction",value:function(s,e){for(var t=e;t<s.length&&!m(s,t)&&">"!==s[t]&&"/"!==s[t];)++t;var r=s.substring(e,t);!function(){for(;t<s.length&&m(s,t);)++t}();for(var n=t;t<s.length&&("?"!==s[t]||">"!==s[t+1]);)++t;return{name:r,value:s.substring(n,t),parsed:t-e}}},{key:"parseXml",value:function(s){for(var i=0;i<s.length;){var e=i;if("<"===s[i]){var q=void 0;switch(s[++e]){case"/":if(++e,(q=s.indexOf(">",e))<0)return void this.onError(f);this.onEndElement(s.substring(e,q)),e=q+1;break;case"?":++e;var t=this._parseProcessingInstruction(s,e);if("?>"!==s.substring(e+t.parsed,e+t.parsed+2))return void this.onError(c);this.onPi(t.name,t.value),e+=t.parsed+2;break;case"!":if("--"===s.substring(e+1,e+3)){if((q=s.indexOf("--\x3e",e+3))<0)return void this.onError(h);this.onComment(s.substring(e+3,q)),e=q+3}else if("[CDATA["===s.substring(e+1,e+8)){if((q=s.indexOf("]]>",e+8))<0)return void this.onError(o);this.onCdata(s.substring(e+8,q)),e=q+3}else{if("DOCTYPE"!==s.substring(e+1,e+8))return void this.onError(d);var r=s.indexOf("[",e+8),n=!1;if((q=s.indexOf(">",e+8))<0)return void this.onError(l);if(r>0&&q>r){if((q=s.indexOf("]>",e+8))<0)return void this.onError(l);n=!0}var m=s.substring(e+8,q+(n?1:0));this.onDoctype(m),e=q+(n?2:1)}break;default:var content=this._parseContent(s,e);if(null===content)return void this.onError(d);var v=!1;if("/>"===s.substring(e+content.parsed,e+content.parsed+2))v=!0;else if(">"!==s.substring(e+content.parsed,e+content.parsed+1))return void this.onError(f);this.onBeginElement(content.name,content.attributes,v),e+=content.parsed+(v?2:1)}}else{for(;e<s.length&&"<"!==s[e];)e++;var text=s.substring(i,e);this.onText(this._resolveEntities(text))}i=e}}},{key:"onResolveEntity",value:function(e){return"&".concat(e,";")}},{key:"onPi",value:function(e,t){}},{key:"onComment",value:function(text){}},{key:"onCdata",value:function(text){}},{key:"onDoctype",value:function(e){}},{key:"onText",value:function(text){}},{key:"onBeginElement",value:function(e,t,r){}},{key:"onEndElement",value:function(e){}},{key:"onError",value:function(code){}}])}(),y=function(){return _createClass((function e(t,r){_classCallCheck(this,e),this.nodeName=t,this.nodeValue=r,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}),[{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var e=this.parentNode.childNodes;if(e){var t=e.indexOf(this);if(-1!==t)return e[t+1]}}},{key:"textContent",get:function(){return this.childNodes?this.childNodes.map((function(e){return e.textContent})).join(""):this.nodeValue||""}},{key:"hasChildNodes",value:function(){return this.childNodes&&this.childNodes.length>0}}])}(),k=function(e){function t(){var e;return _classCallCheck(this,t),(e=_callSuper(this,t))._currentFragment=null,e._stack=null,e._errorCode=n,e}return _inherits(t,e),_createClass(t,[{key:"parseFromString",value:function(data){if(this._currentFragment=[],this._stack=[],this._errorCode=n,this.parseXml(data),this._errorCode===n){var e=_slicedToArray(this._currentFragment,1)[0];if(e)return{documentElement:e}}}},{key:"onResolveEntity",value:function(e){return"apos"===e?"'":_superPropGet(t,"onResolveEntity",this,3)([e])}},{key:"onText",value:function(text){if(!function(s){for(var i=0,e=s.length;i<e;i++)if(!m(s,i))return!1;return!0}(text)){var e=new y("#text",text);this._currentFragment.push(e)}}},{key:"onCdata",value:function(text){var e=new y("#text",text);this._currentFragment.push(e)}},{key:"onBeginElement",value:function(e,t,r){var n=new y(e);n.childNodes=[],this._currentFragment.push(n),r||(this._stack.push(this._currentFragment),this._currentFragment=n.childNodes)}},{key:"onEndElement",value:function(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment[this._currentFragment.length-1];if(t)for(var i=0,r=t.childNodes.length;i<r;i++)t.childNodes[i].parentNode=t}},{key:"onError",value:function(code){this._errorCode=code}}])}(v);t.SimpleXMLParser=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var n=r(2),o=function(){return _createClass((function e(t,r){var o=this;_classCallCheck(this,e),(0,n.assert)(r,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=t.progressiveDone||!1;var c=t.initialData;if(c&&c.length>0){var l=new Uint8Array(c).buffer;this._queuedChunks.push(l)}this._pdfDataRangeTransport=r,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._contentLength=t.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((function(e,t){o._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener((function(e,t){o._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((function(e){o._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((function(){o._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}),[{key:"_onReceiveData",value:function(e){var t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{var r=this._rangeReaders.some((function(r){return r._begin===e.begin&&(r._enqueue(t),!0)}));(0,n.assert)(r,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}},{key:"_onProgress",value:function(e){if(void 0===e.total){var t=this._rangeReaders[0];t&&t.onProgress&&t.onProgress({loaded:e.loaded})}else{var r=this._fullRequestReader;r&&r.onProgress&&r.onProgress({loaded:e.loaded,total:e.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(e){var i=this._rangeReaders.indexOf(e);i>=0&&this._rangeReaders.splice(i,1)}},{key:"getFullReader",value:function(){(0,n.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new c(this,e,this._progressiveDone)}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new l(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeReaders.slice(0).forEach((function(t){t.cancel(e)})),this._pdfDataRangeTransport.abort()}}])}();t.PDFDataTransportStream=o;var c=function(){return _createClass((function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this._stream=t,this._done=n||!1,this._filename=null,this._queuedChunks=r||[],this._loaded=0;var o,c=_createForOfIteratorHelper(this._queuedChunks);try{for(c.s();!(o=c.n()).done;){var l=o.value;this._loaded+=l.byteLength}}catch(e){c.e(e)}finally{c.f()}this._requests=[],this._headersReady=Promise.resolve(),t._fullRequestReader=this,this.onProgress=null}),[{key:"_enqueue",value:function(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}},{key:"read",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this._queuedChunks.length>0)){e.next=3;break}return t=this._queuedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 3:if(!this._done){e.next=5;break}return e.abrupt("return",{value:void 0,done:!0});case 5:return r=(0,n.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 8:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}}]);var e}(),l=function(){return _createClass((function e(t,r,n){_classCallCheck(this,e),this._stream=t,this._begin=r,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}),[{key:"_enqueue",value:function(e){this._done||(0===this._requests.length?this._queuedChunk=e:(this._requests.shift().resolve({value:e,done:!1}),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,n.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}}]);var e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void 0;var n=r(2),o=function(){return _createClass((function e(t){var r=t.enable,n=void 0!==r&&r;_classCallCheck(this,e),this._enabled=!0===n}),[{key:"isEnabled",get:function(){var e=this._enabled;return e&&(e=c.tryInitGL()),(0,n.shadow)(this,"isEnabled",e)}},{key:"composeSMask",value:function(e){var t=e.layer,mask=e.mask,r=e.properties;return c.composeSMask(t,mask,r)}},{key:"drawFigures",value:function(e){var t=e.width,r=e.height,n=e.backgroundColor,o=e.figures,l=e.context;return c.drawFigures(t,r,n,o,l)}},{key:"clear",value:function(){c.cleanup()}}])}();t.WebGLContext=o;var c=function(){function e(e,code,t){var r=e.createShader(t);if(e.shaderSource(r,code),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS)){var n=e.getShaderInfoLog(r);throw new Error("Error during shader compilation: "+n)}return r}function t(t,code){return e(t,code,t.VERTEX_SHADER)}function r(t,code){return e(t,code,t.FRAGMENT_SHADER)}function n(e,t){for(var r=e.createProgram(),i=0,n=t.length;i<n;++i)e.attachShader(r,t[i]);if(e.linkProgram(r),!e.getProgramParameter(r,e.LINK_STATUS)){var o=e.getProgramInfoLog(r);throw new Error("Error during program linking: "+o)}return r}function o(e,image,t){e.activeTexture(t);var r=e.createTexture();return e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,image),r}var c,l;function h(){c||(l=document.createElement("canvas"),c=l.getContext("webgl",{premultipliedalpha:!1}))}var d=null,f=null;return{tryInitGL:function(){try{return h(),!!c}catch(e){}return!1},composeSMask:function(e,mask,f){var m=e.width,v=e.height;d||function(){var canvas,e;h(),canvas=l,l=null,e=c,c=null;var o=n(e,[t(e,"  attribute vec2 a_position;                                      attribute vec2 a_texCoord;                                                                                                      uniform vec2 u_resolution;                                                                                                      varying vec2 v_texCoord;                                                                                                        void main() {                                                     vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0;       gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);                                                                              v_texCoord = a_texCoord;                                      }                                                             "),r(e,"  precision mediump float;                                                                                                        uniform vec4 u_backdrop;                                        uniform int u_subtype;                                          uniform sampler2D u_image;                                      uniform sampler2D u_mask;                                                                                                       varying vec2 v_texCoord;                                                                                                        void main() {                                                     vec4 imageColor = texture2D(u_image, v_texCoord);               vec4 maskColor = texture2D(u_mask, v_texCoord);                 if (u_backdrop.a > 0.0) {                                         maskColor.rgb = maskColor.rgb * maskColor.a +                                   u_backdrop.rgb * (1.0 - maskColor.a);         }                                                               float lum;                                                      if (u_subtype == 0) {                                             lum = maskColor.a;                                            } else {                                                          lum = maskColor.r * 0.3 + maskColor.g * 0.59 +                        maskColor.b * 0.11;                                     }                                                               imageColor.a *= lum;                                            imageColor.rgb *= imageColor.a;                                 gl_FragColor = imageColor;                                    }                                                             ")]);e.useProgram(o);var f={};f.gl=e,f.canvas=canvas,f.resolutionLocation=e.getUniformLocation(o,"u_resolution"),f.positionLocation=e.getAttribLocation(o,"a_position"),f.backdropLocation=e.getUniformLocation(o,"u_backdrop"),f.subtypeLocation=e.getUniformLocation(o,"u_subtype");var m=e.getAttribLocation(o,"a_texCoord"),v=e.getUniformLocation(o,"u_image"),y=e.getUniformLocation(o,"u_mask"),k=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,k),e.bufferData(e.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),e.STATIC_DRAW),e.enableVertexAttribArray(m),e.vertexAttribPointer(m,2,e.FLOAT,!1,0,0),e.uniform1i(v,0),e.uniform1i(y,1),d=f}();var y=d,canvas=y.canvas,k=y.gl;canvas.width=m,canvas.height=v,k.viewport(0,0,k.drawingBufferWidth,k.drawingBufferHeight),k.uniform2f(y.resolutionLocation,m,v),f.backdrop?k.uniform4f(y.resolutionLocation,f.backdrop[0],f.backdrop[1],f.backdrop[2],1):k.uniform4f(y.resolutionLocation,0,0,0,0),k.uniform1i(y.subtypeLocation,"Luminosity"===f.subtype?1:0);var w=o(k,e,k.TEXTURE0),S=o(k,mask,k.TEXTURE1),A=k.createBuffer();return k.bindBuffer(k.ARRAY_BUFFER,A),k.bufferData(k.ARRAY_BUFFER,new Float32Array([0,0,m,0,0,v,0,v,m,0,m,v]),k.STATIC_DRAW),k.enableVertexAttribArray(y.positionLocation),k.vertexAttribPointer(y.positionLocation,2,k.FLOAT,!1,0,0),k.clearColor(0,0,0,0),k.enable(k.BLEND),k.blendFunc(k.ONE,k.ONE_MINUS_SRC_ALPHA),k.clear(k.COLOR_BUFFER_BIT),k.drawArrays(k.TRIANGLES,0,6),k.flush(),k.deleteTexture(w),k.deleteTexture(S),k.deleteBuffer(A),canvas},drawFigures:function(e,o,d,m,v){f||function(){var canvas,e;h(),canvas=l,l=null,e=c,c=null;var o=n(e,[t(e,"  attribute vec2 a_position;                                      attribute vec3 a_color;                                                                                                         uniform vec2 u_resolution;                                      uniform vec2 u_scale;                                           uniform vec2 u_offset;                                                                                                          varying vec4 v_color;                                                                                                           void main() {                                                     vec2 position = (a_position + u_offset) * u_scale;              vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0;         gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);                                                                              v_color = vec4(a_color / 255.0, 1.0);                         }                                                             "),r(e,"  precision mediump float;                                                                                                        varying vec4 v_color;                                                                                                           void main() {                                                     gl_FragColor = v_color;                                       }                                                             ")]);e.useProgram(o);var d={};d.gl=e,d.canvas=canvas,d.resolutionLocation=e.getUniformLocation(o,"u_resolution"),d.scaleLocation=e.getUniformLocation(o,"u_scale"),d.offsetLocation=e.getUniformLocation(o,"u_offset"),d.positionLocation=e.getAttribLocation(o,"a_position"),d.colorLocation=e.getAttribLocation(o,"a_color"),f=d}();var y=f,canvas=y.canvas,k=y.gl;canvas.width=e,canvas.height=o,k.viewport(0,0,k.drawingBufferWidth,k.drawingBufferHeight),k.uniform2f(y.resolutionLocation,e,o);var i,w,S,A=0;for(i=0,w=m.length;i<w;i++)switch(m[i].type){case"lattice":A+=((S=m[i].coords.length/m[i].verticesPerRow|0)-1)*(m[i].verticesPerRow-1)*6;break;case"triangles":A+=m[i].coords.length}var x=new Float32Array(2*A),C=new Uint8Array(3*A),_=v.coords,P=v.colors,T=0,I=0;for(i=0,w=m.length;i<w;i++){var figure=m[i],E=figure.coords,F=figure.colors;switch(figure.type){case"lattice":var L=figure.verticesPerRow;S=E.length/L|0;for(var O=1;O<S;O++)for(var R=O*L+1,col=1;col<L;col++,R++)x[T]=_[E[R-L-1]],x[T+1]=_[E[R-L-1]+1],x[T+2]=_[E[R-L]],x[T+3]=_[E[R-L]+1],x[T+4]=_[E[R-1]],x[T+5]=_[E[R-1]+1],C[I]=P[F[R-L-1]],C[I+1]=P[F[R-L-1]+1],C[I+2]=P[F[R-L-1]+2],C[I+3]=P[F[R-L]],C[I+4]=P[F[R-L]+1],C[I+5]=P[F[R-L]+2],C[I+6]=P[F[R-1]],C[I+7]=P[F[R-1]+1],C[I+8]=P[F[R-1]+2],x[T+6]=x[T+2],x[T+7]=x[T+3],x[T+8]=x[T+4],x[T+9]=x[T+5],x[T+10]=_[E[R]],x[T+11]=_[E[R]+1],C[I+9]=C[I+3],C[I+10]=C[I+4],C[I+11]=C[I+5],C[I+12]=C[I+6],C[I+13]=C[I+7],C[I+14]=C[I+8],C[I+15]=P[F[R]],C[I+16]=P[F[R]+1],C[I+17]=P[F[R]+2],T+=12,I+=18;break;case"triangles":for(var M=0,N=E.length;M<N;M++)x[T]=_[E[M]],x[T+1]=_[E[M]+1],C[I]=P[F[M]],C[I+1]=P[F[M]+1],C[I+2]=P[F[M]+2],T+=2,I+=3}}d?k.clearColor(d[0]/255,d[1]/255,d[2]/255,1):k.clearColor(0,0,0,0),k.clear(k.COLOR_BUFFER_BIT);var D=k.createBuffer();k.bindBuffer(k.ARRAY_BUFFER,D),k.bufferData(k.ARRAY_BUFFER,x,k.STATIC_DRAW),k.enableVertexAttribArray(y.positionLocation),k.vertexAttribPointer(y.positionLocation,2,k.FLOAT,!1,0,0);var B=k.createBuffer();return k.bindBuffer(k.ARRAY_BUFFER,B),k.bufferData(k.ARRAY_BUFFER,C,k.STATIC_DRAW),k.enableVertexAttribArray(y.colorLocation),k.vertexAttribPointer(y.colorLocation,3,k.UNSIGNED_BYTE,!1,0,0),k.uniform2f(y.scaleLocation,v.scaleX,v.scaleY),k.uniform2f(y.offsetLocation,v.offsetX,v.offsetY),k.drawArrays(k.TRIANGLES,0,A),k.flush(),k.deleteBuffer(D),k.deleteBuffer(B),canvas},cleanup:function(){d&&d.canvas&&(d.canvas.width=0,d.canvas.height=0),f&&f.canvas&&(f.canvas.width=0,f.canvas.height=0),d=null,f=null}}}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var n=r(1),o=r(2),c=function(){return _createClass((function e(){_classCallCheck(this,e)}),null,[{key:"create",value:function(e){switch(e.data.annotationType){case o.AnnotationType.LINK:return new h(e);case o.AnnotationType.TEXT:return new d(e);case o.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new m(e);case"Btn":return e.data.radioButton?new y(e):e.data.checkBox?new v(e):new k(e);case"Ch":return new w(e)}return new f(e);case o.AnnotationType.POPUP:return new S(e);case o.AnnotationType.FREETEXT:return new x(e);case o.AnnotationType.LINE:return new C(e);case o.AnnotationType.SQUARE:return new _(e);case o.AnnotationType.CIRCLE:return new P(e);case o.AnnotationType.POLYLINE:return new T(e);case o.AnnotationType.CARET:return new E(e);case o.AnnotationType.INK:return new F(e);case o.AnnotationType.POLYGON:return new I(e);case o.AnnotationType.HIGHLIGHT:return new L(e);case o.AnnotationType.UNDERLINE:return new O(e);case o.AnnotationType.SQUIGGLY:return new R(e);case o.AnnotationType.STRIKEOUT:return new M(e);case o.AnnotationType.STAMP:return new N(e);case o.AnnotationType.FILEATTACHMENT:return new D(e);default:return new l(e)}}}])}(),l=function(){return _createClass((function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.isRenderable=r,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,this.svgFactory=t.svgFactory,r&&(this.container=this._createContainer(n))}),[{key:"_createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],data=this.data,t=this.page,r=this.viewport,n=document.createElement("section"),c=data.rect[2]-data.rect[0],l=data.rect[3]-data.rect[1];n.setAttribute("data-annotation-id",data.id);var rect=o.Util.normalizeRect([data.rect[0],t.view[3]-data.rect[1]+t.view[1],data.rect[2],t.view[3]-data.rect[3]+t.view[1]]);if(n.style.transform="matrix(".concat(r.transform.join(","),")"),n.style.transformOrigin="-".concat(rect[0],"px -").concat(rect[1],"px"),!e&&data.borderStyle.width>0){n.style.borderWidth="".concat(data.borderStyle.width,"px"),data.borderStyle.style!==o.AnnotationBorderStyleType.UNDERLINE&&(c-=2*data.borderStyle.width,l-=2*data.borderStyle.width);var h=data.borderStyle.horizontalCornerRadius,d=data.borderStyle.verticalCornerRadius;if(h>0||d>0){var f="".concat(h,"px / ").concat(d,"px");n.style.borderRadius=f}switch(data.borderStyle.style){case o.AnnotationBorderStyleType.SOLID:n.style.borderStyle="solid";break;case o.AnnotationBorderStyleType.DASHED:n.style.borderStyle="dashed";break;case o.AnnotationBorderStyleType.BEVELED:(0,o.warn)("Unimplemented border style: beveled");break;case o.AnnotationBorderStyleType.INSET:(0,o.warn)("Unimplemented border style: inset");break;case o.AnnotationBorderStyleType.UNDERLINE:n.style.borderBottomStyle="solid"}data.color?n.style.borderColor=o.Util.makeCssRgb(0|data.color[0],0|data.color[1],0|data.color[2]):n.style.borderWidth=0}return n.style.left="".concat(rect[0],"px"),n.style.top="".concat(rect[1],"px"),n.style.width="".concat(c,"px"),n.style.height="".concat(l,"px"),n}},{key:"_createPopup",value:function(e,t,data){t||((t=document.createElement("div")).style.height=e.style.height,t.style.width=e.style.width,e.appendChild(t));var r=new A({container:e,trigger:t,color:data.color,title:data.title,modificationDate:data.modificationDate,contents:data.contents,hideWrapper:!0}).render();r.style.left=e.style.width,e.appendChild(r)}},{key:"render",value:function(){(0,o.unreachable)("Abstract method `AnnotationElement.render` called")}}])}(),h=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,!!(e.data.url||e.data.dest||e.data.action)])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.className="linkAnnotation";var data=this.data,e=this.linkService,link=document.createElement("a");return data.url?(0,n.addLinkAttributes)(link,{url:data.url,target:data.newWindow?n.LinkTarget.BLANK:e.externalLinkTarget,rel:e.externalLinkRel,enabled:e.externalLinkEnabled}):data.action?this._bindNamedAction(link,data.action):this._bindLink(link,data.dest),this.container.appendChild(link),this.container}},{key:"_bindLink",value:function(link,e){var t=this;link.href=this.linkService.getDestinationHash(e),link.onclick=function(){return e&&t.linkService.navigateTo(e),!1},e&&(link.className="internalLink")}},{key:"_bindNamedAction",value:function(link,e){var t=this;link.href=this.linkService.getAnchorUrl(""),link.onclick=function(){return t.linkService.executeNamedAction(e),!1},link.className="internalLink"}}])}(l),d=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,!!(e.data.hasPopup||e.data.title||e.data.contents)])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.className="textAnnotation";var image=document.createElement("img");return 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.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(this.container,image,this.data),this.container.appendChild(image),this.container}}])}(l),f=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return this.container}}])}(l),m=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.className="textWidgetAnnotation";var element=null;if(this.renderInteractiveForms){if(this.data.multiLine?(element=document.createElement("textarea")).textContent=this.data.fieldValue:((element=document.createElement("input")).type="text",element.setAttribute("value",this.data.fieldValue)),element.disabled=this.data.readOnly,element.name=this.data.fieldName,null!==this.data.maxLen&&(element.maxLength=this.data.maxLen),this.data.comb){var e=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;element.classList.add("comb"),element.style.letterSpacing="calc(".concat(e,"px - 1ch)")}}else{(element=document.createElement("div")).textContent=this.data.fieldValue,element.style.verticalAlign="middle",element.style.display="table-cell";var t=null;this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(t=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(element,t)}return null!==this.data.textAlignment&&(element.style.textAlign=["left","center","right"][this.data.textAlignment]),this.container.appendChild(element),this.container}},{key:"_setTextStyle",value:function(element,e){var style=element.style;if(style.fontSize="".concat(this.data.fontSize,"px"),style.direction=this.data.fontDirection<0?"rtl":"ltr",e){var t="normal";e.black?t="900":e.bold&&(t="bold"),style.fontWeight=t,style.fontStyle=e.italic?"italic":"normal";var r=e.loadedName?'"'.concat(e.loadedName,'", '):"",n=e.fallbackName||"Helvetica, sans-serif";style.fontFamily=r+n}}}])}(f),v=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,e.renderInteractiveForms])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var element=document.createElement("input");return element.disabled=this.data.readOnly,element.type="checkbox",element.name=this.data.fieldName,this.data.fieldValue&&"Off"!==this.data.fieldValue&&element.setAttribute("checked",!0),this.container.appendChild(element),this.container}}])}(f),y=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,e.renderInteractiveForms])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var element=document.createElement("input");return element.disabled=this.data.readOnly,element.type="radio",element.name=this.data.fieldName,this.data.fieldValue===this.data.buttonValue&&element.setAttribute("checked",!0),this.container.appendChild(element),this.container}}])}(f),k=function(e){function t(){return _classCallCheck(this,t),_callSuper(this,t,arguments)}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){var e=_superPropGet(t,"render",this,3)([]);return e.className="buttonWidgetAnnotation pushButton",e}}])}(h),w=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,e.renderInteractiveForms])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var e=document.createElement("select");e.disabled=this.data.readOnly,e.name=this.data.fieldName,this.data.combo||(e.size=this.data.options.length,this.data.multiSelect&&(e.multiple=!0));var t,r=_createForOfIteratorHelper(this.data.options);try{for(r.s();!(t=r.n()).done;){var option=t.value,n=document.createElement("option");n.textContent=option.displayValue,n.value=option.exportValue,this.data.fieldValue.includes(option.displayValue)&&n.setAttribute("selected",!0),e.appendChild(n)}}catch(e){r.e(e)}finally{r.f()}return this.container.appendChild(e),this.container}}])}(f),S=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,!(!e.data.title&&!e.data.contents)])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;var e='[data-annotation-id="'.concat(this.data.parentId,'"]'),t=this.layer.querySelector(e);if(!t)return this.container;var r=new A({container:this.container,trigger:t,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),n=parseFloat(t.style.left),o=parseFloat(t.style.width);return this.container.style.transformOrigin="-".concat(n+o,"px -").concat(t.style.top),this.container.style.left="".concat(n+o,"px"),this.container.appendChild(r.render()),this.container}}])}(l),A=function(){return _createClass((function e(t){_classCallCheck(this,e),this.container=t.container,this.trigger=t.trigger,this.color=t.color,this.title=t.title,this.modificationDate=t.modificationDate,this.contents=t.contents,this.hideWrapper=t.hideWrapper||!1,this.pinned=!1}),[{key:"render",value:function(){var e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.setAttribute("hidden",!0);var t=document.createElement("div");t.className="popup";var r=this.color;if(r){var c=.7*(255-r[0])+r[0],g=.7*(255-r[1])+r[1],b=.7*(255-r[2])+r[2];t.style.backgroundColor=o.Util.makeCssRgb(0|c,0|g,0|b)}var title=document.createElement("h1");title.textContent=this.title,t.appendChild(title);var l=n.PDFDateString.toDateObject(this.modificationDate);if(l){var h=document.createElement("span");h.textContent="{{date}}, {{time}}",h.dataset.l10nId="annotation_date_string",h.dataset.l10nArgs=JSON.stringify({date:l.toLocaleDateString(),time:l.toLocaleTimeString()}),t.appendChild(h)}var d=this._formatContents(this.contents);return t.appendChild(d),this.trigger.addEventListener("click",this._toggle.bind(this)),this.trigger.addEventListener("mouseover",this._show.bind(this,!1)),this.trigger.addEventListener("mouseout",this._hide.bind(this,!1)),t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}},{key:"_formatContents",value:function(e){for(var p=document.createElement("p"),t=e.split(/(?:\r\n?|\n)/),i=0,r=t.length;i<r;++i){var line=t[i];p.appendChild(document.createTextNode(line)),i<r-1&&p.appendChild(document.createElement("br"))}return p}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(this.pinned=!0),this.hideElement.hasAttribute("hidden")&&(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.pinned=!1),this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),this.container.style.zIndex-=1)}}])}(),x=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}])}(l),C=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.className="lineAnnotation";var data=this.data,e=data.rect[2]-data.rect[0],t=data.rect[3]-data.rect[1],svg=this.svgFactory.create(e,t),line=this.svgFactory.createElement("svg:line");return 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),this._createPopup(this.container,line,data),this.container}}])}(l),_=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.className="squareAnnotation";var data=this.data,e=data.rect[2]-data.rect[0],t=data.rect[3]-data.rect[1],svg=this.svgFactory.create(e,t),r=data.borderStyle.width,n=this.svgFactory.createElement("svg:rect");return n.setAttribute("x",r/2),n.setAttribute("y",r/2),n.setAttribute("width",e-r),n.setAttribute("height",t-r),n.setAttribute("stroke-width",r||1),n.setAttribute("stroke","transparent"),n.setAttribute("fill","none"),svg.appendChild(n),this.container.append(svg),this._createPopup(this.container,n,data),this.container}}])}(l),P=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.className="circleAnnotation";var data=this.data,e=data.rect[2]-data.rect[0],t=data.rect[3]-data.rect[1],svg=this.svgFactory.create(e,t),r=data.borderStyle.width,circle=this.svgFactory.createElement("svg:ellipse");return circle.setAttribute("cx",e/2),circle.setAttribute("cy",t/2),circle.setAttribute("rx",e/2-r/2),circle.setAttribute("ry",t/2-r/2),circle.setAttribute("stroke-width",r||1),circle.setAttribute("stroke","transparent"),circle.setAttribute("fill","none"),svg.appendChild(circle),this.container.append(svg),this._createPopup(this.container,circle,data),this.container}}])}(l),T=function(e){function t(e){var r;return _classCallCheck(this,t),(r=_callSuper(this,t,[e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0])).containerClassName="polylineAnnotation",r.svgElementName="svg:polyline",r}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,data=this.data,t=data.rect[2]-data.rect[0],r=data.rect[3]-data.rect[1],svg=this.svgFactory.create(t,r),n=[],o=_createForOfIteratorHelper(data.vertices);try{for(o.s();!(e=o.n()).done;){var c=e.value,l=c.x-data.rect[0],h=data.rect[3]-c.y;n.push(l+","+h)}}catch(e){o.e(e)}finally{o.f()}n=n.join(" ");var polyline=this.svgFactory.createElement(this.svgElementName);return polyline.setAttribute("points",n),polyline.setAttribute("stroke-width",data.borderStyle.width||1),polyline.setAttribute("stroke","transparent"),polyline.setAttribute("fill","none"),svg.appendChild(polyline),this.container.append(svg),this._createPopup(this.container,polyline,data),this.container}}])}(l),I=function(e){function t(e){var r;return _classCallCheck(this,t),(r=_callSuper(this,t,[e])).containerClassName="polygonAnnotation",r.svgElementName="svg:polygon",r}return _inherits(t,e),_createClass(t)}(T),E=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}])}(l),F=function(e){function t(e){var r;return _classCallCheck(this,t),(r=_callSuper(this,t,[e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0])).containerClassName="inkAnnotation",r.svgElementName="svg:polyline",r}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.className=this.containerClassName;var e,data=this.data,t=data.rect[2]-data.rect[0],r=data.rect[3]-data.rect[1],svg=this.svgFactory.create(t,r),n=_createForOfIteratorHelper(data.inkLists);try{for(n.s();!(e=n.n()).done;){var o,c=e.value,l=[],h=_createForOfIteratorHelper(c);try{for(h.s();!(o=h.n()).done;){var d=o.value,f=d.x-data.rect[0],m=data.rect[3]-d.y;l.push("".concat(f,",").concat(m))}}catch(e){h.e(e)}finally{h.f()}l=l.join(" ");var polyline=this.svgFactory.createElement(this.svgElementName);polyline.setAttribute("points",l),polyline.setAttribute("stroke-width",data.borderStyle.width||1),polyline.setAttribute("stroke","transparent"),polyline.setAttribute("fill","none"),this._createPopup(this.container,polyline,data),svg.appendChild(polyline)}}catch(e){n.e(e)}finally{n.f()}return this.container.append(svg),this.container}}])}(l),L=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return this.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}])}(l),O=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return this.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}])}(l),R=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return this.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}])}(l),M=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return this.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}])}(l),N=function(e){function t(e){return _classCallCheck(this,t),_callSuper(this,t,[e,!!(e.data.hasPopup||e.data.title||e.data.contents),!0])}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}])}(l),D=function(e){function t(e){var r;_classCallCheck(this,t);var c=(r=_callSuper(this,t,[e,!0])).data.file,l=c.filename,content=c.content;return r.filename=(0,n.getFilenameFromUrl)(l),r.content=content,r.linkService.eventBus&&r.linkService.eventBus.dispatch("fileattachmentannotation",{source:r,id:(0,o.stringToPDFString)(l),filename:l,content:content}),r}return _inherits(t,e),_createClass(t,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var e=document.createElement("div");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,e,this.data),this.container.appendChild(e),this.container}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,o.warn)("Download cannot be started due to unavailable download manager")}}])}(l),B=function(){return _createClass((function e(){_classCallCheck(this,e)}),null,[{key:"render",value:function(e){var t,r=[],l=[],h=_createForOfIteratorHelper(e.annotations);try{for(h.s();!(t=h.n()).done;){var d=t.value;d&&(d.annotationType!==o.AnnotationType.POPUP?r.push(d):l.push(d))}}catch(e){h.e(e)}finally{h.f()}l.length&&r.push.apply(r,l);for(var f=0,m=r;f<m.length;f++){var data=m[f],element=c.create({data:data,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderInteractiveForms:e.renderInteractiveForms||!1,svgFactory:new n.DOMSVGFactory});element.isRenderable&&e.div.appendChild(element.render())}}},{key:"update",value:function(e){var t,r=_createForOfIteratorHelper(e.annotations);try{for(r.s();!(t=r.n()).done;){var data=t.value,element=e.div.querySelector('[data-annotation-id="'.concat(data.id,'"]'));element&&(element.style.transform="matrix(".concat(e.viewport.transform.join(","),")"))}}catch(e){r.e(e)}finally{r.f()}e.div.removeAttribute("hidden")}}])}();t.AnnotationLayer=B},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void 0;var n=r(2),o=function(){var e=/\S/;function t(t,r,o){var c,l=document.createElement("span"),h={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(t._textDivs.push(l),c=r.str,!e.test(c))return h.isWhitespace=!0,void t._textDivProperties.set(l,h);var d=n.Util.transform(t._viewport.transform,r.transform),f=Math.atan2(d[1],d[0]),style=o[r.fontName];style.vertical&&(f+=Math.PI/2);var m,v,y=Math.sqrt(d[2]*d[2]+d[3]*d[3]),k=y;style.ascent?k=style.ascent*k:style.descent&&(k=(1+style.descent)*k),0===f?(m=d[4],v=d[5]-k):(m=d[4]+k*Math.sin(f),v=d[5]-k*Math.cos(f)),l.style.left="".concat(m,"px"),l.style.top="".concat(v,"px"),l.style.fontSize="".concat(y,"px"),l.style.fontFamily=style.fontFamily,l.textContent=r.str,t._fontInspectorEnabled&&(l.dataset.fontName=r.fontName),0!==f&&(h.angle=f*(180/Math.PI));var w=!1;if(r.str.length>1)w=!0;else if(r.transform[0]!==r.transform[3]){var S=Math.abs(r.transform[0]),A=Math.abs(r.transform[3]);S!==A&&Math.max(S,A)/Math.min(S,A)>1.5&&(w=!0)}if(w&&(style.vertical?h.canvasWidth=r.height*t._viewport.scale:h.canvasWidth=r.width*t._viewport.scale),t._textDivProperties.set(l,h),t._textContentStream&&t._layoutText(l),t._enhanceTextSelection){var x=1,C=0;0!==f&&(x=Math.cos(f),C=Math.sin(f));var _,b,P=(style.vertical?r.height:r.width)*t._viewport.scale,T=y;0!==f?(_=[x,C,-C,x,m,v],b=n.Util.getAxialAlignedBoundingBox([0,0,P,T],_)):b=[m,v,m+P,v+T],t._bounds.push({left:b[0],top:b[1],right:b[2],bottom:b[3],div:l,size:[P,T],m:_})}}function r(e){if(!e._canceled){var t=e._textDivs,r=e._capability,n=t.length;if(n>1e5)return e._renderingDone=!0,void r.resolve();if(!e._textContentStream)for(var i=0;i<n;i++)e._layoutText(t[i]);e._renderingDone=!0,r.resolve()}}function o(e,t,r){for(var n=0,i=0;i<r;i++){var o=e[t++];o>0&&(n=n?Math.min(o,n):o)}return n}function c(e){for(var t=e._bounds,r=e._viewport,c=function(e,t,r){var n=r.map((function(e,i){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:i,x1New:void 0,x2New:void 0}}));l(e,n);var o=new Array(r.length);return n.forEach((function(b){var i=b.index;o[i]={left:b.x1New,top:0,right:b.x2New,bottom:0}})),r.map((function(t,i){var r=o[i],b=n[i];b.x1=t.top,b.y1=e-r.right,b.x2=t.bottom,b.y2=e-r.left,b.index=i,b.x1New=void 0,b.x2New=void 0})),l(t,n),n.forEach((function(b){var i=b.index;o[i].top=b.x1New,o[i].bottom=b.x2New})),o}(r.width,r.height,t),i=0;i<c.length;i++){var div=t[i].div,h=e._textDivProperties.get(div);if(0!==h.angle){var d=c[i],b=t[i],f=b.m,m=f[0],s=f[1],v=[[0,0],[0,b.size[1]],[b.size[0],0],b.size],y=new Float64Array(64);v.forEach((function(p,e){var t=n.Util.applyTransform(p,f);y[e+0]=m&&(d.left-t[0])/m,y[e+4]=s&&(d.top-t[1])/s,y[e+8]=m&&(d.right-t[0])/m,y[e+12]=s&&(d.bottom-t[1])/s,y[e+16]=s&&(d.left-t[0])/-s,y[e+20]=m&&(d.top-t[1])/m,y[e+24]=s&&(d.right-t[0])/-s,y[e+28]=m&&(d.bottom-t[1])/m,y[e+32]=m&&(d.left-t[0])/-m,y[e+36]=s&&(d.top-t[1])/-s,y[e+40]=m&&(d.right-t[0])/-m,y[e+44]=s&&(d.bottom-t[1])/-s,y[e+48]=s&&(d.left-t[0])/s,y[e+52]=m&&(d.top-t[1])/-m,y[e+56]=s&&(d.right-t[0])/s,y[e+60]=m&&(d.bottom-t[1])/-m}));var k=1+Math.min(Math.abs(m),Math.abs(s));h.paddingLeft=o(y,32,16)/k,h.paddingTop=o(y,48,16)/k,h.paddingRight=o(y,0,16)/k,h.paddingBottom=o(y,16,16)/k,e._textDivProperties.set(div,h)}else h.paddingLeft=t[i].left-c[i].left,h.paddingTop=t[i].top-c[i].top,h.paddingRight=c[i].right-t[i].right,h.paddingBottom=c[i].bottom-t[i].bottom,e._textDivProperties.set(div,h)}}function l(e,t){t.sort((function(a,b){return a.x1-b.x1||a.index-b.index}));var r=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];t.forEach((function(e){for(var i=0;i<r.length&&r[i].end<=e.y1;)i++;for(var t,n,o=r.length-1;o>=0&&r[o].start>=e.y2;)o--;var q,c,l=-1/0;for(q=i;q<=o;q++){var h;(h=(n=(t=r[q]).boundary).x2>e.x1?n.index>e.index?n.x1New:e.x1:void 0===n.x2New?(n.x2+e.x1)/2:n.x2New)>l&&(l=h)}for(e.x1New=l,q=i;q<=o;q++)void 0===(n=(t=r[q]).boundary).x2New?n.x2>e.x1?n.index>e.index&&(n.x2New=n.x2):n.x2New=l:n.x2New>l&&(n.x2New=Math.max(l,n.x2));var d=[],f=null;for(q=i;q<=o;q++){var m=(n=(t=r[q]).boundary).x2>e.x2?n:e;f===m?d[d.length-1].end=t.end:(d.push({start:t.start,end:t.end,boundary:m}),f=m)}for(r[i].start<e.y1&&(d[0].start=e.y1,d.unshift({start:r[i].start,end:e.y1,boundary:r[i].boundary})),e.y2<r[o].end&&(d[d.length-1].end=e.y2,d.push({start:e.y2,end:r[o].end,boundary:r[o].boundary})),q=i;q<=o;q++)if(void 0===(n=(t=r[q]).boundary).x2New){var v=!1;for(c=i-1;!v&&c>=0&&r[c].start>=n.y1;c--)v=r[c].boundary===n;for(c=o+1;!v&&c<r.length&&r[c].end<=n.y2;c++)v=r[c].boundary===n;for(c=0;!v&&c<d.length;c++)v=d[c].boundary===n;v||(n.x2New=l)}Array.prototype.splice.apply(r,[i,o-i+1].concat(d))})),r.forEach((function(t){var r=t.boundary;void 0===r.x2New&&(r.x2New=Math.max(e,r.x2))}))}function h(e){var t=this,r=e.textContent,o=e.textContentStream,c=e.container,l=e.viewport,h=e.textDivs,d=e.textContentItemsStr,f=e.enhanceTextSelection;this._textContent=r,this._textContentStream=o,this._container=c,this._viewport=l,this._textDivs=h||[],this._textContentItemsStr=d||[],this._enhanceTextSelection=!!f,this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,n.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally((function(){t._layoutTextCtx&&(t._layoutTextCtx.canvas.width=0,t._layoutTextCtx.canvas.height=0,t._layoutTextCtx=null)})).catch((function(){}))}return h.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new n.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))},_processItems:function(e,r){for(var i=0,n=e.length;i<n;i++)this._textContentItemsStr.push(e[i].str),t(this,e[i],r)},_layoutText:function(e){var t=this._textDivProperties.get(e);if(!t.isWhitespace){var r="";if(0!==t.canvasWidth){var n=e.style,o=n.fontSize,c=n.fontFamily;o===this._layoutTextLastFontSize&&c===this._layoutTextLastFontFamily||(this._layoutTextCtx.font="".concat(o," ").concat(c),this._layoutTextLastFontSize=o,this._layoutTextLastFontFamily=c);var l=this._layoutTextCtx.measureText(e.textContent).width;l>0&&(t.scale=t.canvasWidth/l,r="scaleX(".concat(t.scale,")"))}0!==t.angle&&(r="rotate(".concat(t.angle,"deg) ").concat(r)),r.length>0&&(this._enhanceTextSelection&&(t.originalTransform=r),e.style.transform=r),this._textDivProperties.set(e,t),this._container.appendChild(e)}},_render:function(e){var t=this,o=(0,n.createPromiseCapability)(),c=Object.create(null),canvas=document.createElement("canvas");if(canvas.mozOpaque=!0,this._layoutTextCtx=canvas.getContext("2d",{alpha:!1}),this._textContent){var l=this._textContent.items,h=this._textContent.styles;this._processItems(l,h),o.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');var d=function(){t._reader.read().then((function(e){var r=e.value;e.done?o.resolve():(Object.assign(c,r.styles),t._processItems(r.items,c),d())}),o.reject)};this._reader=this._textContentStream.getReader(),d()}o.promise.then((function(){c=null,e?t._renderTimer=setTimeout((function(){r(t),t._renderTimer=null}),e):r(t)}),this._capability.reject)},expandTextDivs:function(e){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(c(this),this._bounds=null);for(var t=[],r=[],i=0,n=this._textDivs.length;i<n;i++){var div=this._textDivs[i],o=this._textDivProperties.get(div);o.isWhitespace||(e?(t.length=0,r.length=0,o.originalTransform&&t.push(o.originalTransform),o.paddingTop>0?(r.push("".concat(o.paddingTop,"px")),t.push("translateY(".concat(-o.paddingTop,"px)"))):r.push(0),o.paddingRight>0?r.push("".concat(o.paddingRight/o.scale,"px")):r.push(0),o.paddingBottom>0?r.push("".concat(o.paddingBottom,"px")):r.push(0),o.paddingLeft>0?(r.push("".concat(o.paddingLeft/o.scale,"px")),t.push("translateX(".concat(-o.paddingLeft/o.scale,"px)"))):r.push(0),div.style.padding=r.join(" "),t.length&&(div.style.transform=t.join(" "))):(div.style.padding=null,div.style.transform=o.originalTransform))}}}},function(e){var t=new h({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t}}();t.renderTextLayer=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var n=r(2),o=r(1),c=r(4),l=function(){throw new Error("Not implemented: SVGGraphics")};t.SVGGraphics=l;var h=function(e){if(Number.isInteger(e))return e.toString();var s=e.toFixed(10),i=s.length-1;if("0"!==s[i])return s;do{i--}while("0"===s[i]);return s.substring(0,"."===s[i]?i:i+1)},d=function(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":"scale(".concat(h(e[0])," ").concat(h(e[3]),")");if(e[0]===e[3]&&e[1]===-e[2]){var a=180*Math.acos(e[0])/Math.PI;return"rotate(".concat(h(a),")")}}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return"translate(".concat(h(e[4])," ").concat(h(e[5]),")");return"matrix(".concat(h(e[0])," ").concat(h(e[1])," ").concat(h(e[2])," ").concat(h(e[3])," ").concat(h(e[4])," ")+"".concat(h(e[5]),")")},f={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},m=["butt","round","square"],v=["miter","round","bevel"],y=function(){for(var e=new Uint8Array([137,80,78,71,13,10,26,10]),t=new Int32Array(256),i=0;i<256;i++){for(var r=i,o=0;o<8;o++)r=1&r?3988292384^r>>1&2147483647:r>>1&2147483647;t[i]=r}function l(e,body,data,r){var p=r,n=body.length;data[p]=n>>24&255,data[p+1]=n>>16&255,data[p+2]=n>>8&255,data[p+3]=255&n,data[p+=4]=255&e.charCodeAt(0),data[p+1]=255&e.charCodeAt(1),data[p+2]=255&e.charCodeAt(2),data[p+3]=255&e.charCodeAt(3),p+=4,data.set(body,p);var o=function(data,e,r){for(var n=-1,o=e;o<r;o++){var a=255&(n^data[o]);n=n>>>8^t[a]}return~n}(data,r+4,p+=body.length);data[p]=o>>24&255,data[p+1]=o>>16&255,data[p+2]=o>>8&255,data[p+3]=255&o}function h(e){var t=e.length,r=65535,n=Math.ceil(t/r),o=new Uint8Array(2+t+5*n+4),c=0;o[c++]=120,o[c++]=156;for(var l=0;t>r;)o[c++]=0,o[c++]=255,o[c++]=255,o[c++]=0,o[c++]=0,o.set(e.subarray(l,l+r),c),c+=r,l+=r,t-=r;o[c++]=1,o[c++]=255&t,o[c++]=t>>8&255,o[c++]=255&~t,o[c++]=(65535&~t)>>8&255,o.set(e.subarray(l),c),c+=e.length-l;var h=function(data,e,t){for(var a=1,b=0,r=e;r<t;++r)b=(b+(a=(a+(255&data[r]))%65521))%65521;return b<<16|a}(e,0,e.length);return o[c++]=h>>24&255,o[c++]=h>>16&255,o[c++]=h>>8&255,o[c++]=255&h,o}function d(t,r,o,d){var f,m,v,y=t.width,k=t.height,w=t.data;switch(r){case n.ImageKind.GRAYSCALE_1BPP:m=0,f=1,v=y+7>>3;break;case n.ImageKind.RGB_24BPP:m=2,f=8,v=3*y;break;case n.ImageKind.RGBA_32BPP:m=6,f=8,v=4*y;break;default:throw new Error("invalid format")}for(var S=new Uint8Array((1+v)*k),A=0,x=0,C=0;C<k;++C)S[A++]=0,S.set(w.subarray(x,x+v),A),x+=v,A+=v;if(r===n.ImageKind.GRAYSCALE_1BPP&&d){A=0;for(var _=0;_<k;_++){A++;for(var P=0;P<v;P++)S[A++]^=255}}var T=new Uint8Array([y>>24&255,y>>16&255,y>>8&255,255&y,k>>24&255,k>>16&255,k>>8&255,255&k,f,m,0,0,0]),I=function(e){if(!c.isNodeJS)return h(e);try{var input;input=parseInt(process.versions.node)>=8?e:Buffer.from(e);var output=__webpack_require__(1637).deflateSync(input,{level:9});return output instanceof Uint8Array?output:new Uint8Array(output)}catch(e){(0,n.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return h(e)}(S),E=e.length+36+T.length+I.length,data=new Uint8Array(E),F=0;return data.set(e,F),l("IHDR",T,data,F+=e.length),l("IDATA",I,data,F+=12+T.length),F+=12+I.length,l("IEND",new Uint8Array(0),data,F),(0,n.createObjectURL)(data,"image/png",o)}return function(e,t,r){return d(e,void 0===e.kind?n.ImageKind.GRAYSCALE_1BPP:e.kind,t,r)}}(),k=function(){return _createClass((function e(){_classCallCheck(this,e),this.fontSizeScale=1,this.fontWeight=f.fontWeight,this.fontSize=0,this.textMatrix=n.IDENTITY_MATRIX,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=n.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=f.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}),[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(e,t){this.x=e,this.y=t}}])}(),w=0,S=0,A=0;t.SVGGraphics=l=function(){return _createClass((function e(t,r){var c=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var l in _classCallCheck(this,e),this.svgFactory=new o.DOMSVGFactory,this.current=new k,this.transformMatrix=n.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=t,this.objs=r,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!c,this._operatorIdMapping=[],n.OPS)this._operatorIdMapping[n.OPS[l]]=l}),[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var e=this.current;this.extraStack.push(e),this.current=e.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(e){this.save(),this.executeOpTree(e),this.restore()}},{key:"loadDependencies",value:function(e){for(var t=this,r=e.fnArray,o=e.argsArray,i=0,c=r.length;i<c;i++)if(r[i]===n.OPS.dependency){var l,h=_createForOfIteratorHelper(o[i]);try{var d=function(){var e=l.value,r=e.startsWith("g_")?t.commonObjs:t.objs,n=new Promise((function(t){r.get(e,t)}));t.current.dependencies.push(n)};for(h.s();!(l=h.n()).done;)d()}catch(e){h.e(e)}finally{h.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(a,b,e,t,r,o){var c=[a,b,e,t,r,o];this.transformMatrix=n.Util.transform(this.transformMatrix,c),this.tgrp=null}},{key:"getSVG",value:function(e,t){var r=this;this.viewport=t;var o=this._initialize(t);return this.loadDependencies(e).then((function(){return r.transformMatrix=n.IDENTITY_MATRIX,r.executeOpTree(r.convertOpList(e)),o}))}},{key:"convertOpList",value:function(e){for(var t=this._operatorIdMapping,r=e.argsArray,n=e.fnArray,o=[],i=0,c=n.length;i<c;i++){var l=n[i];o.push({fnId:l,fn:t[l],args:r[i]})}return function(e){var t,r=[],n=[],o=_createForOfIteratorHelper(e);try{for(o.s();!(t=o.n()).done;){var c=t.value;"save"!==c.fn?"restore"===c.fn?r=n.pop():r.push(c):(r.push({fnId:92,fn:"group",items:[]}),n.push(r),r=r[r.length-1].items)}}catch(e){o.e(e)}finally{o.f()}return r}(o)}},{key:"executeOpTree",value:function(e){var t,r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,c=o.fn,l=o.fnId,h=o.args;switch(0|l){case n.OPS.beginText:this.beginText();break;case n.OPS.dependency:break;case n.OPS.setLeading:this.setLeading(h);break;case n.OPS.setLeadingMoveText:this.setLeadingMoveText(h[0],h[1]);break;case n.OPS.setFont:this.setFont(h);break;case n.OPS.showText:case n.OPS.showSpacedText:this.showText(h[0]);break;case n.OPS.endText:this.endText();break;case n.OPS.moveText:this.moveText(h[0],h[1]);break;case n.OPS.setCharSpacing:this.setCharSpacing(h[0]);break;case n.OPS.setWordSpacing:this.setWordSpacing(h[0]);break;case n.OPS.setHScale:this.setHScale(h[0]);break;case n.OPS.setTextMatrix:this.setTextMatrix(h[0],h[1],h[2],h[3],h[4],h[5]);break;case n.OPS.setTextRise:this.setTextRise(h[0]);break;case n.OPS.setTextRenderingMode:this.setTextRenderingMode(h[0]);break;case n.OPS.setLineWidth:this.setLineWidth(h[0]);break;case n.OPS.setLineJoin:this.setLineJoin(h[0]);break;case n.OPS.setLineCap:this.setLineCap(h[0]);break;case n.OPS.setMiterLimit:this.setMiterLimit(h[0]);break;case n.OPS.setFillRGBColor:this.setFillRGBColor(h[0],h[1],h[2]);break;case n.OPS.setStrokeRGBColor:this.setStrokeRGBColor(h[0],h[1],h[2]);break;case n.OPS.setStrokeColorN:this.setStrokeColorN(h);break;case n.OPS.setFillColorN:this.setFillColorN(h);break;case n.OPS.shadingFill:this.shadingFill(h[0]);break;case n.OPS.setDash:this.setDash(h[0],h[1]);break;case n.OPS.setRenderingIntent:this.setRenderingIntent(h[0]);break;case n.OPS.setFlatness:this.setFlatness(h[0]);break;case n.OPS.setGState:this.setGState(h[0]);break;case n.OPS.fill:this.fill();break;case n.OPS.eoFill:this.eoFill();break;case n.OPS.stroke:this.stroke();break;case n.OPS.fillStroke:this.fillStroke();break;case n.OPS.eoFillStroke:this.eoFillStroke();break;case n.OPS.clip:this.clip("nonzero");break;case n.OPS.eoClip:this.clip("evenodd");break;case n.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case n.OPS.paintImageXObject:this.paintImageXObject(h[0]);break;case n.OPS.paintInlineImageXObject:this.paintInlineImageXObject(h[0]);break;case n.OPS.paintImageMaskXObject:this.paintImageMaskXObject(h[0]);break;case n.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(h[0],h[1]);break;case n.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case n.OPS.closePath:this.closePath();break;case n.OPS.closeStroke:this.closeStroke();break;case n.OPS.closeFillStroke:this.closeFillStroke();break;case n.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case n.OPS.nextLine:this.nextLine();break;case n.OPS.transform:this.transform(h[0],h[1],h[2],h[3],h[4],h[5]);break;case n.OPS.constructPath:this.constructPath(h[0],h[1]);break;case n.OPS.endPath:this.endPath();break;case 92:this.group(o.items);break;default:(0,n.warn)("Unimplemented operator ".concat(c))}}}catch(e){r.e(e)}finally{r.f()}}},{key:"setWordSpacing",value:function(e){this.current.wordSpacing=e}},{key:"setCharSpacing",value:function(e){this.current.charSpacing=e}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(a,b,e,t,r,n){var o=this.current;o.textMatrix=o.lineMatrix=[a,b,e,t,r,n],o.textMatrixScale=Math.sqrt(a*a+b*b),o.x=o.lineX=0,o.y=o.lineY=0,o.xcoords=[],o.ycoords=[],o.tspan=this.svgFactory.createElement("svg:tspan"),o.tspan.setAttributeNS(null,"font-family",o.fontFamily),o.tspan.setAttributeNS(null,"font-size","".concat(h(o.fontSize),"px")),o.tspan.setAttributeNS(null,"y",h(-o.y)),o.txtElement=this.svgFactory.createElement("svg:text"),o.txtElement.appendChild(o.tspan)}},{key:"beginText",value:function(){var e=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=n.IDENTITY_MATRIX,e.lineMatrix=n.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}},{key:"moveText",value:function(e,t){var r=this.current;r.x=r.lineX+=e,r.y=r.lineY+=t,r.xcoords=[],r.ycoords=[],r.tspan=this.svgFactory.createElement("svg:tspan"),r.tspan.setAttributeNS(null,"font-family",r.fontFamily),r.tspan.setAttributeNS(null,"font-size","".concat(h(r.fontSize),"px")),r.tspan.setAttributeNS(null,"y",h(-r.y))}},{key:"showText",value:function(e){var t=this.current,r=t.font,o=t.fontSize;if(0!==o){var c,l=t.fontSizeScale,m=t.charSpacing,v=t.wordSpacing,y=t.fontDirection,k=t.textHScale*y,w=r.vertical,S=w?1:-1,A=r.defaultVMetrics,x=o*t.fontMatrix[0],C=0,_=_createForOfIteratorHelper(e);try{for(_.s();!(c=_.n()).done;){var glyph=c.value;if(null!==glyph)if((0,n.isNum)(glyph))C+=S*glyph*o/1e3;else{var P=(glyph.isSpace?v:0)+m,T=glyph.fontChar,I=void 0,E=void 0,F=glyph.width;if(w){var L=void 0,O=glyph.vmetric||A;L=-(L=glyph.vmetric?O[1]:.5*F)*x;var R=O[2]*x;F=O?-O[0]:F,I=L/l,E=(C+R)/l}else I=C/l,E=0;(glyph.isInFont||r.missingFile)&&(t.xcoords.push(t.x+I),w&&t.ycoords.push(-t.y+E),t.tspan.textContent+=T),C+=w?F*x-P*y:F*x+P*y}else C+=y*v}}catch(e){_.e(e)}finally{_.f()}t.tspan.setAttributeNS(null,"x",t.xcoords.map(h).join(" ")),w?t.tspan.setAttributeNS(null,"y",t.ycoords.map(h).join(" ")):t.tspan.setAttributeNS(null,"y",h(-t.y)),w?t.y-=C:t.x+=C*k,t.tspan.setAttributeNS(null,"font-family",t.fontFamily),t.tspan.setAttributeNS(null,"font-size","".concat(h(t.fontSize),"px")),t.fontStyle!==f.fontStyle&&t.tspan.setAttributeNS(null,"font-style",t.fontStyle),t.fontWeight!==f.fontWeight&&t.tspan.setAttributeNS(null,"font-weight",t.fontWeight);var M=t.textRenderingMode&n.TextRenderingMode.FILL_STROKE_MASK;if(M===n.TextRenderingMode.FILL||M===n.TextRenderingMode.FILL_STROKE?(t.fillColor!==f.fillColor&&t.tspan.setAttributeNS(null,"fill",t.fillColor),t.fillAlpha<1&&t.tspan.setAttributeNS(null,"fill-opacity",t.fillAlpha)):t.textRenderingMode===n.TextRenderingMode.ADD_TO_PATH?t.tspan.setAttributeNS(null,"fill","transparent"):t.tspan.setAttributeNS(null,"fill","none"),M===n.TextRenderingMode.STROKE||M===n.TextRenderingMode.FILL_STROKE){var N=1/(t.textMatrixScale||1);this._setStrokeAttributes(t.tspan,N)}var D=t.textMatrix;0!==t.textRise&&((D=D.slice())[5]+=t.textRise),t.txtElement.setAttributeNS(null,"transform","".concat(d(D)," scale(").concat(h(k),", -1)")),t.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.txtElement.appendChild(t.tspan),t.txtgrp.appendChild(t.txtElement),this._ensureTransformGroup().appendChild(t.txtElement)}}},{key:"setLeadingMoveText",value:function(e,t){this.setLeading(-t),this.moveText(e,t)}},{key:"addFontStyle",value:function(e){if(!e.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var t=(0,n.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(e.loadedName,'";')+" src: url(".concat(t,"); }\n")}},{key:"setFont",value:function(details){var e=this.current,t=this.commonObjs.get(details[0]),r=details[1];e.font=t,!this.embedFonts||t.missingFile||this.embeddedFonts[t.loadedName]||(this.addFontStyle(t),this.embeddedFonts[t.loadedName]=t),e.fontMatrix=t.fontMatrix?t.fontMatrix:n.FONT_IDENTITY_MATRIX;var o="normal";t.black?o="900":t.bold&&(o="bold");var c=t.italic?"italic":"normal";r<0?(r=-r,e.fontDirection=-1):e.fontDirection=1,e.fontSize=r,e.fontFamily=t.loadedName,e.fontWeight=o,e.fontStyle=c,e.tspan=this.svgFactory.createElement("svg:tspan"),e.tspan.setAttributeNS(null,"y",h(-e.y)),e.xcoords=[],e.ycoords=[]}},{key:"endText",value:function(){var e=this.current;e.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement&&e.txtElement.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(e){e>0&&(this.current.lineWidth=e)}},{key:"setLineCap",value:function(style){this.current.lineCap=m[style]}},{key:"setLineJoin",value:function(style){this.current.lineJoin=v[style]}},{key:"setMiterLimit",value:function(e){this.current.miterLimit=e}},{key:"setStrokeAlpha",value:function(e){this.current.strokeAlpha=e}},{key:"setStrokeRGBColor",value:function(e,g,b){this.current.strokeColor=n.Util.makeCssRgb(e,g,b)}},{key:"setFillAlpha",value:function(e){this.current.fillAlpha=e}},{key:"setFillRGBColor",value:function(e,g,b){this.current.fillColor=n.Util.makeCssRgb(e,g,b),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(e){this.current.strokeColor=this._makeColorN_Pattern(e)}},{key:"setFillColorN",value:function(e){this.current.fillColor=this._makeColorN_Pattern(e)}},{key:"shadingFill",value:function(e){var t=this.viewport.width,r=this.viewport.height,o=n.Util.inverseTransform(this.transformMatrix),c=n.Util.applyTransform([0,0],o),br=n.Util.applyTransform([0,r],o),ul=n.Util.applyTransform([t,0],o),l=n.Util.applyTransform([t,r],o),h=Math.min(c[0],br[0],ul[0],l[0]),d=Math.min(c[1],br[1],ul[1],l[1]),f=Math.max(c[0],br[0],ul[0],l[0]),m=Math.max(c[1],br[1],ul[1],l[1]),rect=this.svgFactory.createElement("svg:rect");rect.setAttributeNS(null,"x",h),rect.setAttributeNS(null,"y",d),rect.setAttributeNS(null,"width",f-h),rect.setAttributeNS(null,"height",m-d),rect.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&rect.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(rect)}},{key:"_makeColorN_Pattern",value:function(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}},{key:"_makeTilingPattern",value:function(e){var t=e[1],r=e[2],o=e[3]||n.IDENTITY_MATRIX,c=_slicedToArray(e[4],4),l=c[0],h=c[1],d=c[2],f=c[3],m=e[5],v=e[6],y=e[7],k="shading".concat(A++),w=_slicedToArray(n.Util.applyTransform([l,h],o),2),S=w[0],x=w[1],C=_slicedToArray(n.Util.applyTransform([d,f],o),2),_=C[0],P=C[1],T=_slicedToArray(n.Util.singularValueDecompose2dScale(o),2),I=m*T[0],E=v*T[1],F=this.svgFactory.createElement("svg:pattern");F.setAttributeNS(null,"id",k),F.setAttributeNS(null,"patternUnits","userSpaceOnUse"),F.setAttributeNS(null,"width",I),F.setAttributeNS(null,"height",E),F.setAttributeNS(null,"x","".concat(S)),F.setAttributeNS(null,"y","".concat(x));var svg=this.svg,L=this.transformMatrix,O=this.current.fillColor,R=this.current.strokeColor,M=this.svgFactory.create(_-S,P-x);if(this.svg=M,this.transformMatrix=o,2===y){var N,D=(N=n.Util).makeCssRgb.apply(N,_toConsumableArray(t));this.current.fillColor=D,this.current.strokeColor=D}return this.executeOpTree(this.convertOpList(r)),this.svg=svg,this.transformMatrix=L,this.current.fillColor=O,this.current.strokeColor=R,F.appendChild(M.childNodes[0]),this.defs.appendChild(F),"url(#".concat(k,")")}},{key:"_makeShadingPattern",value:function(e){switch(e[0]){case"RadialAxial":var t,r="shading".concat(A++),o=e[3];switch(e[1]){case"axial":var c=e[4],l=e[5];(t=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"x1",c[0]),t.setAttributeNS(null,"y1",c[1]),t.setAttributeNS(null,"x2",l[0]),t.setAttributeNS(null,"y2",l[1]);break;case"radial":var h=e[4],d=e[5],f=e[6],m=e[7];(t=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",r),t.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),t.setAttributeNS(null,"cx",d[0]),t.setAttributeNS(null,"cy",d[1]),t.setAttributeNS(null,"r",m),t.setAttributeNS(null,"fx",h[0]),t.setAttributeNS(null,"fy",h[1]),t.setAttributeNS(null,"fr",f);break;default:throw new Error("Unknown RadialAxial type: ".concat(e[1]))}var v,y=_createForOfIteratorHelper(o);try{for(y.s();!(v=y.n()).done;){var k=v.value,w=this.svgFactory.createElement("svg:stop");w.setAttributeNS(null,"offset",k[0]),w.setAttributeNS(null,"stop-color",k[1]),t.appendChild(w)}}catch(e){y.e(e)}finally{y.f()}return this.defs.appendChild(t),"url(#".concat(r,")");case"Mesh":return(0,n.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(e[0]))}}},{key:"setDash",value:function(e,t){this.current.dashArray=e,this.current.dashPhase=t}},{key:"constructPath",value:function(e,t){var r,o=this.current,c=o.x,l=o.y,d=[],f=0,m=_createForOfIteratorHelper(e);try{for(m.s();!(r=m.n()).done;)switch(0|r.value){case n.OPS.rectangle:c=t[f++],l=t[f++];var v=t[f++],y=t[f++],k=c+v,w=l+y;d.push("M",h(c),h(l),"L",h(k),h(l),"L",h(k),h(w),"L",h(c),h(w),"Z");break;case n.OPS.moveTo:c=t[f++],l=t[f++],d.push("M",h(c),h(l));break;case n.OPS.lineTo:c=t[f++],l=t[f++],d.push("L",h(c),h(l));break;case n.OPS.curveTo:c=t[f+4],l=t[f+5],d.push("C",h(t[f]),h(t[f+1]),h(t[f+2]),h(t[f+3]),h(c),h(l)),f+=6;break;case n.OPS.curveTo2:d.push("C",h(c),h(l),h(t[f]),h(t[f+1]),h(t[f+2]),h(t[f+3])),c=t[f+2],l=t[f+3],f+=4;break;case n.OPS.curveTo3:c=t[f+2],l=t[f+3],d.push("C",h(t[f]),h(t[f+1]),h(c),h(l),h(c),h(l)),f+=4;break;case n.OPS.closePath:d.push("Z")}}catch(e){m.e(e)}finally{m.f()}d=d.join(" "),o.path&&e.length>0&&e[0]!==n.OPS.rectangle&&e[0]!==n.OPS.moveTo?d=o.path.getAttributeNS(null,"d")+d:(o.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(o.path)),o.path.setAttributeNS(null,"d",d),o.path.setAttributeNS(null,"fill","none"),o.element=o.path,o.setCurrentPoint(c,l)}},{key:"endPath",value:function(){var e=this.current;if(e.path=null,this.pendingClip)if(e.element){var t="clippath".concat(w++),r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",d(this.transformMatrix));var n=e.element.cloneNode(!0);"evenodd"===this.pendingClip?n.setAttributeNS(null,"clip-rule","evenodd"):n.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.appendChild(n),this.defs.appendChild(r),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach((function(e){e.clipGroup=null})),r.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl="url(#".concat(t,")"),this.tgrp=null}else this.pendingClip=null}},{key:"clip",value:function(e){this.pendingClip=e}},{key:"closePath",value:function(){var e=this.current;if(e.path){var t="".concat(e.path.getAttributeNS(null,"d"),"Z");e.path.setAttributeNS(null,"d",t)}}},{key:"setLeading",value:function(e){this.current.leading=-e}},{key:"setTextRise",value:function(e){this.current.textRise=e}},{key:"setTextRenderingMode",value:function(e){this.current.textRenderingMode=e}},{key:"setHScale",value:function(e){this.current.textHScale=e/100}},{key:"setRenderingIntent",value:function(e){}},{key:"setFlatness",value:function(e){}},{key:"setGState",value:function(e){var t,r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var o=_slicedToArray(t.value,2),c=o[0],l=o[1];switch(c){case"LW":this.setLineWidth(l);break;case"LC":this.setLineCap(l);break;case"LJ":this.setLineJoin(l);break;case"ML":this.setMiterLimit(l);break;case"D":this.setDash(l[0],l[1]);break;case"RI":this.setRenderingIntent(l);break;case"FL":this.setFlatness(l);break;case"Font":this.setFont(l);break;case"CA":this.setStrokeAlpha(l);break;case"ca":this.setFillAlpha(l);break;default:(0,n.warn)("Unimplemented graphic state operator ".concat(c))}}}catch(e){r.e(e)}finally{r.f()}}},{key:"fill",value:function(){var e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(element){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=this.current,r=t.dashArray;1!==e&&r.length>0&&(r=r.map((function(t){return e*t}))),element.setAttributeNS(null,"stroke",t.strokeColor),element.setAttributeNS(null,"stroke-opacity",t.strokeAlpha),element.setAttributeNS(null,"stroke-miterlimit",h(t.miterLimit)),element.setAttributeNS(null,"stroke-linecap",t.lineCap),element.setAttributeNS(null,"stroke-linejoin",t.lineJoin),element.setAttributeNS(null,"stroke-width",h(e*t.lineWidth)+"px"),element.setAttributeNS(null,"stroke-dasharray",r.map(h).join(" ")),element.setAttributeNS(null,"stroke-dashoffset",h(e*t.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var rect=this.svgFactory.createElement("svg:rect");rect.setAttributeNS(null,"x","0"),rect.setAttributeNS(null,"y","0"),rect.setAttributeNS(null,"width","1px"),rect.setAttributeNS(null,"height","1px"),rect.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(rect)}},{key:"paintImageXObject",value:function(e){var t=this.objs.get(e);t?this.paintInlineImageXObject(t):(0,n.warn)("Dependent image with object ID ".concat(e," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(e,mask){var t=e.width,r=e.height,n=y(e,this.forceDataSchema,!!mask),o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x","0"),o.setAttributeNS(null,"y","0"),o.setAttributeNS(null,"width",h(t)),o.setAttributeNS(null,"height",h(r)),this.current.element=o,this.clip("nonzero");var c=this.svgFactory.createElement("svg:image");c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n),c.setAttributeNS(null,"x","0"),c.setAttributeNS(null,"y",h(-r)),c.setAttributeNS(null,"width",h(t)+"px"),c.setAttributeNS(null,"height",h(r)+"px"),c.setAttributeNS(null,"transform","scale(".concat(h(1/t)," ").concat(h(-1/r),")")),mask?mask.appendChild(c):this._ensureTransformGroup().appendChild(c)}},{key:"paintImageMaskXObject",value:function(e){var t=this.current,r=e.width,n=e.height,o=t.fillColor;t.maskId="mask".concat(S++);var mask=this.svgFactory.createElement("svg:mask");mask.setAttributeNS(null,"id",t.maskId);var rect=this.svgFactory.createElement("svg:rect");rect.setAttributeNS(null,"x","0"),rect.setAttributeNS(null,"y","0"),rect.setAttributeNS(null,"width",h(r)),rect.setAttributeNS(null,"height",h(n)),rect.setAttributeNS(null,"fill",o),rect.setAttributeNS(null,"mask","url(#".concat(t.maskId,")")),this.defs.appendChild(mask),this._ensureTransformGroup().appendChild(rect),this.paintInlineImageXObject(e,mask)}},{key:"paintFormXObjectBegin",value:function(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){var r=t[2]-t[0],n=t[3]-t[1],o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x",t[0]),o.setAttributeNS(null,"y",t[1]),o.setAttributeNS(null,"width",h(r)),o.setAttributeNS(null,"height",h(n)),this.current.element=o,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(e){var svg=this.svgFactory.create(e.width,e.height),t=this.svgFactory.createElement("svg:defs");svg.appendChild(t),this.defs=t;var r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",d(e.transform)),svg.appendChild(r),this.svg=r,svg}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",d(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}])}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var n=r(2),o=r(20),c=__webpack_require__(1638),l=__webpack_require__(1639),h=__webpack_require__(1640),d=__webpack_require__(1641),f=/^file:\/\/\/[a-zA-Z]:\//,m=function(){return _createClass((function e(source){var t,r;_classCallCheck(this,e),this.source=source,this.url=(t=source.url,"file:"===(r=d.parse(t)).protocol||r.host?r:/^[a-z]:[/\\]/i.test(t)?d.parse("file:///".concat(t)):(r.host||(r.protocol="file:"),r)),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&source.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}),[{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}},{key:"getFullReader",value:function(){return(0,n.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new A(this):new w(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=this.isFsUrl?new x(this,e,t):new S(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}}])}();t.PDFNodeStream=m;var v=function(){return _createClass((function e(t){_classCallCheck(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;var source=t.source;this._contentLength=source.length,this._loaded=0,this._filename=null,this._disableRange=source.disableRange||!1,this._rangeChunkSize=source.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!source.disableStream,this._isRangeSupported=!source.disableRange,this._readableStream=null,this._readCapability=(0,n.createPromiseCapability)(),this._headersCapability=(0,n.createPromiseCapability)()}),[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,n.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new n.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]);var e}(),y=function(){return _createClass((function e(t){_classCallCheck(this,e),this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,n.createPromiseCapability)();var source=t.source;this._isStreamingSupported=!source.disableStream}),[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:if(!this._done){e.next=4;break}return e.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){e.next=6;break}throw this._storedError;case 6:if(null!==(t=this._readableStream.read())){e.next=10;break}return this._readCapability=(0,n.createPromiseCapability)(),e.abrupt("return",this.read());case 10:return this._loaded+=t.length,this.onProgress&&this.onProgress({loaded:this._loaded}),r=new Uint8Array(t).buffer,e.abrupt("return",{value:r,done:!1});case 14:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}},{key:"_error",value:function(e){this._storedError=e,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(e){var t=this;this._readableStream=e,e.on("readable",(function(){t._readCapability.resolve()})),e.on("end",(function(){e.destroy(),t._done=!0,t._readCapability.resolve()})),e.on("error",(function(e){t._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}]);var e}();function k(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}var w=function(e){function t(e){var r;_classCallCheck(this,t);var c=function(t){if(404===t.statusCode){var c=new n.MissingPDFException('Missing PDF "'.concat(r._url,'".'));return r._storedError=c,void r._headersCapability.reject(c)}r._headersCapability.resolve(),r._setReadableStream(t);var l=function(e){return r._readableStream.headers[e.toLowerCase()]},h=(0,o.validateRangeRequestCapabilities)({getResponseHeader:l,isHttp:e.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),d=h.allowRangeRequests,f=h.suggestedLength;r._isRangeSupported=d,r._contentLength=f||r._contentLength,r._filename=(0,o.extractFilenameFromHeader)(l)};return(r=_callSuper(this,t,[e]))._request=null,"http:"===r._url.protocol?r._request=l.request(k(r._url,e.httpHeaders),c):r._request=h.request(k(r._url,e.httpHeaders),c),r._request.on("error",(function(e){r._storedError=e,r._headersCapability.reject(e)})),r._request.end(),r}return _inherits(t,e),_createClass(t)}(v),S=function(e){function t(e,r,o){var c;for(var d in _classCallCheck(this,t),(c=_callSuper(this,t,[e]))._httpHeaders={},e.httpHeaders){var f=e.httpHeaders[d];void 0!==f&&(c._httpHeaders[d]=f)}c._httpHeaders.Range="bytes=".concat(r,"-").concat(o-1);var m=function(e){if(404!==e.statusCode)c._setReadableStream(e);else{var t=new n.MissingPDFException('Missing PDF "'.concat(c._url,'".'));c._storedError=t}};return c._request=null,"http:"===c._url.protocol?c._request=l.request(k(c._url,c._httpHeaders),m):c._request=h.request(k(c._url,c._httpHeaders),m),c._request.on("error",(function(e){c._storedError=e})),c._request.end(),c}return _inherits(t,e),_createClass(t)}(y),A=function(e){function t(e){var r;_classCallCheck(this,t),r=_callSuper(this,t,[e]);var path=decodeURIComponent(r._url.path);return f.test(r._url.href)&&(path=path.replace(/^\//,"")),c.lstat(path,(function(e,t){if(e)return"ENOENT"===e.code&&(e=new n.MissingPDFException('Missing PDF "'.concat(path,'".'))),r._storedError=e,void r._headersCapability.reject(e);r._contentLength=t.size,r._setReadableStream(c.createReadStream(path)),r._headersCapability.resolve()})),r}return _inherits(t,e),_createClass(t)}(v),x=function(e){function t(e,r,n){var o;_classCallCheck(this,t),o=_callSuper(this,t,[e]);var path=decodeURIComponent(o._url.path);return f.test(o._url.href)&&(path=path.replace(/^\//,"")),o._setReadableStream(c.createReadStream(path,{start:r,end:n-1})),o}return _inherits(t,e),_createClass(t)}(y)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+t+'".'):new n.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+t+'".',e)},t.extractFilenameFromHeader=function(e){var t=e("Content-Disposition");if(t){var r=(0,o.getFilenameFromContentDispositionHeader)(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(e){}if(/\.pdf$/i.test(r))return r}return null},t.validateRangeRequestCapabilities=function(e){var t=e.getResponseHeader,r=e.isHttp,o=e.rangeChunkSize,c=e.disableRange;(0,n.assert)(o>0,"Range chunk size must be larger than zero");var l={allowRangeRequests:!1,suggestedLength:void 0},h=parseInt(t("Content-Length"),10);return Number.isInteger(h)?(l.suggestedLength=h,h<=2*o||c||!r||"bytes"!==t("Accept-Ranges")||"identity"!==(t("Content-Encoding")||"identity")||(l.allowRangeRequests=!0),l):l},t.validateResponseStatus=function(e){return 200===e||206===e};var n=r(2),o=r(21)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){var t=!0,r=c("filename\\*","i").exec(e);if(r){var n=d(r=r[1]);return h(n=m(n=f(n=unescape(n))))}if(r=function(e){for(var t,r=[],n=c("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(t=n.exec(e));){var o=_slicedToArray(t,4),l=o[1],h=o[2],m=o[3];if((l=parseInt(l,10))in r){if(0===l)break}else r[l]=[h,m]}for(var v=[],y=0;y<r.length&&y in r;++y){var k=_slicedToArray(r[y],2),w=k[0],S=k[1];S=d(S),w&&(S=unescape(S),0===y&&(S=f(S))),v.push(S)}return v.join("")}(e))return h(m(r));if(r=c("filename","i").exec(e)){var o=d(r=r[1]);return h(o=m(o))}function c(e,t){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}function l(e,r){if(e){if(!/^[\x00-\xFF]+$/.test(r))return r;try{var n=new TextDecoder(e,{fatal:!0}),o=Array.from(r,(function(e){return 255&e.charCodeAt(0)}));r=n.decode(new Uint8Array(o)),t=!1}catch(n){if(/^utf-?8$/i.test(e))try{r=decodeURIComponent(escape(r)),t=!1}catch(e){}}}return r}function h(e){return t&&/[\x80-\xff]/.test(e)&&(e=l("utf-8",e),t&&(e=l("iso-8859-1",e))),e}function d(e){if(e.startsWith('"')){for(var t=e.slice(1).split('\\"'),i=0;i<t.length;++i){var r=t[i].indexOf('"');-1!==r&&(t[i]=t[i].slice(0,r),t.length=i+1),t[i]=t[i].replace(/\\(.)/g,"$1")}e=t.join('"')}return e}function f(e){var t=e.indexOf("'");return-1===t?e:l(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}function m(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,r,text){if("q"===r||"Q"===r)return l(t,text=(text=text.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})));try{text=atob(text)}catch(e){}return l(t,text)}))}return""}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var n=r(2),o=r(20),c=function(){return _createClass((function e(t,r){_classCallCheck(this,e),this.url=t,r=r||{},this.isHttp=/^https?:/i.test(t),this.httpHeaders=this.isHttp&&r.httpHeaders||{},this.withCredentials=r.withCredentials||!1,this.getXhr=r.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}),[{key:"requestRange",value:function(e,t,r){var n={begin:e,end:t};for(var o in r)n[o]=r[o];return this.request(n)}},{key:"requestFull",value:function(e){return this.request(e)}},{key:"request",value:function(e){var t=this.getXhr(),r=this.currXhrId++,n=this.pendingRequests[r]={xhr:t};for(var o in t.open("GET",this.url),t.withCredentials=this.withCredentials,this.httpHeaders){var c=this.httpHeaders[o];void 0!==c&&t.setRequestHeader(o,c)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range","bytes=".concat(e.begin,"-").concat(e.end-1)),n.expectedStatus=206):n.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(r){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),n.onHeadersReceived=e.onHeadersReceived,n.onDone=e.onDone,n.onError=e.onError,n.onProgress=e.onProgress,t.send(null),r}},{key:"onProgress",value:function(e,t){var r=this.pendingRequests[e];r&&r.onProgress&&r.onProgress(t)}},{key:"onStateChange",value:function(e,t){var r=this.pendingRequests[e];if(r){var o=r.xhr;if(o.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),4===o.readyState&&e in this.pendingRequests)if(delete this.pendingRequests[e],0===o.status&&this.isHttp)r.onError&&r.onError(o.status);else{var c=o.status||200;if(200===c&&206===r.expectedStatus||c===r.expectedStatus){var l=function(e){var data=e.response;return"string"!=typeof data?data:(0,n.stringToBytes)(data).buffer}(o);if(206===c){var h=o.getResponseHeader("Content-Range"),d=/bytes (\d+)-(\d+)\/(\d+)/.exec(h);r.onDone({begin:parseInt(d[1],10),chunk:l})}else l?r.onDone({begin:0,chunk:l}):r.onError&&r.onError(o.status)}else r.onError&&r.onError(o.status)}}}},{key:"hasPendingRequests",value:function(){for(var e in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(e){return this.pendingRequests[e].xhr}},{key:"isPendingRequest",value:function(e){return e in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var e in this.pendingRequests)this.abortRequest(0|e)}},{key:"abortRequest",value:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}])}(),l=function(){return _createClass((function e(source){_classCallCheck(this,e),this._source=source,this._manager=new c(source.url,{httpHeaders:source.httpHeaders,withCredentials:source.withCredentials}),this._rangeChunkSize=source.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}),[{key:"_onRangeRequestReaderClosed",value:function(e){var i=this._rangeRequestReaders.indexOf(e);i>=0&&this._rangeRequestReaders.splice(i,1)}},{key:"getFullReader",value:function(){return(0,n.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new h(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new d(this._manager,e,t);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}}])}();t.PDFNetworkStream=l;var h=function(){return _createClass((function e(t,source){_classCallCheck(this,e),this._manager=t;var r={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=source.url,this._fullRequestId=t.requestFull(r),this._headersReceivedCapability=(0,n.createPromiseCapability)(),this._disableRange=source.disableRange||!1,this._contentLength=source.length,this._rangeChunkSize=source.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}),[{key:"_onHeadersReceived",value:function(){var e=this._fullRequestId,t=this._manager.getRequestXhr(e),r=function(e){return t.getResponseHeader(e)},n=(0,o.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),c=n.allowRangeRequests,l=n.suggestedLength;c&&(this._isRangeSupported=!0),this._contentLength=l||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(e){e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[])}},{key:"_onError",value:function(e){var t=this._url,r=(0,o.createResponseStatusError)(e,t);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach((function(e){e.reject(r)})),this._requests=[],this._cachedChunks=[]}},{key:"_onProgress",value:function(data){this.onProgress&&this.onProgress({loaded:data.loaded,total:data.lengthComputable?data.total:this._contentLength})}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}},{key:"read",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._storedError){e.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){e.next=5;break}return t=this._cachedChunks.shift(),e.abrupt("return",{value:t,done:!1});case 5:if(!this._done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return r=(0,n.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 10:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]);var e}(),d=function(){return _createClass((function e(t,r,n){_classCallCheck(this,e),this._manager=t;var o={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=t.requestRange(r,n,o),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}),[{key:"_close",value:function(){this.onClosed&&this.onClosed(this)}},{key:"_onDone",value:function(data){var e=data.chunk;this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._close()}},{key:"_onProgress",value:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===this._queuedChunk){e.next=4;break}return t=this._queuedChunk,this._queuedChunk=null,e.abrupt("return",{value:t,done:!1});case 4:if(!this._done){e.next=6;break}return e.abrupt("return",{value:void 0,done:!0});case 6:return r=(0,n.createPromiseCapability)(),this._requests.push(r),e.abrupt("return",r.promise);case 9:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void 0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}]);var e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var n=r(2),o=r(20);function c(e,t,r){return{method:"GET",headers:e,signal:r&&r.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function l(e){var t=new Headers;for(var r in e){var n=e[r];void 0!==n&&t.append(r,n)}return t}var h=function(){return _createClass((function e(source){_classCallCheck(this,e),this.source=source,this.isHttp=/^https?:/i.test(source.url),this.httpHeaders=this.isHttp&&source.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}),[{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}},{key:"getFullReader",value:function(){return(0,n.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new d(this),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){if(t<=this._progressiveDataLength)return null;var r=new f(this,e,t);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}}])}();t.PDFFetchStream=h;var d=function(){return _createClass((function e(t){var r=this;_classCallCheck(this,e),this._stream=t,this._reader=null,this._loaded=0,this._filename=null;var source=t.source;this._withCredentials=source.withCredentials||!1,this._contentLength=source.length,this._headersCapability=(0,n.createPromiseCapability)(),this._disableRange=source.disableRange||!1,this._rangeChunkSize=source.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!source.disableStream,this._isRangeSupported=!source.disableRange,this._headers=l(this._stream.httpHeaders);var h=source.url;fetch(h,c(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,h);r._reader=e.body.getReader(),r._headersCapability.resolve();var t=function(t){return e.headers.get(t)},c=(0,o.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:r._stream.isHttp,rangeChunkSize:r._rangeChunkSize,disableRange:r._disableRange}),l=c.allowRangeRequests,d=c.suggestedLength;r._isRangeSupported=l,r._contentLength=d||r._contentLength,r._filename=(0,o.extractFilenameFromHeader)(t),!r._isStreamingSupported&&r._isRangeSupported&&r.cancel(new n.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}),[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n,o;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._headersCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,!(n=t.done)){e.next=9;break}return e.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),o=new Uint8Array(r).buffer,e.abrupt("return",{value:o,done:!1});case 13:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}]);var e}(),f=function(){return _createClass((function e(t,r,h){var d=this;_classCallCheck(this,e),this._stream=t,this._reader=null,this._loaded=0;var source=t.source;this._withCredentials=source.withCredentials||!1,this._readCapability=(0,n.createPromiseCapability)(),this._isStreamingSupported=!source.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=l(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(r,"-").concat(h-1));var f=source.url;fetch(f,c(this._headers,this._withCredentials,this._abortController)).then((function(e){if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,f);d._readCapability.resolve(),d._reader=e.body.getReader()})),this.onProgress=null}),[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(e=_asyncToGenerator(_regeneratorRuntime().mark((function e(){var t,r,n,o;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._readCapability.promise;case 2:return e.next=4,this._reader.read();case 4:if(t=e.sent,r=t.value,!(n=t.done)){e.next=9;break}return e.abrupt("return",{value:r,done:n});case 9:return this._loaded+=r.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),o=new Uint8Array(r).buffer,e.abrupt("return",{value:o,done:!1});case 13:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}]);var e}()}])},"object"===_typeof(exports)&&"object"===_typeof(module)?module.exports=factory():(__WEBPACK_AMD_DEFINE_ARRAY__=[],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=factory)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}).call(this,__webpack_require__(140),__webpack_require__(2325).Buffer,__webpack_require__(138)(module))},2326:function(e,t,r){var content=r(3036);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(14).default)("10b7c179",content,!0,{sourceMap:!1})},2327:function(e,t,r){var content=r(3040);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(14).default)("c142f686",content,!0,{sourceMap:!1})},3034:function(e,t,r){(function(e){var n,o,c,l;function h(e,t,r){return t=v(t),function(e,t){if(t&&("object"==F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,r||[],v(e).constructor):t.apply(e,r))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function f(e,t,r,n){var p=m(v(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof p?function(e){return p.apply(r,e)}:p}function m(){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},m.apply(null,arguments)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(e,t)||S(e,t)||function(){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 S(e,a){if(e){if("string"==typeof e)return A(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,a):void 0}}function A(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,r=Array(a);t<a;t++)r[t]=e[t];return r}function x(){"use strict";x=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof k?t:k,a=Object.create(i.prototype),c=new O(n||[]);return o(a,"_invoke",{value:T(e,r,c)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var f="suspendedStart",m="suspendedYield",v="executing",s="completed",y={};function k(){}function w(){}function S(){}var p={};l(p,a,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(R([])));C&&C!==r&&n.call(C,a)&&(p=C);var g=S.prototype=k.prototype=Object.create(p);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,c,i,a){var l=d(e[o],e,c);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==F(h)&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):t.resolve(h).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,a)}))}a(l.arg)}var c;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return c=c?c.then(o,o):o()}})}function T(t,r,n){var o=f;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=I(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var p=d(t,r,n);if("normal"===p.type){if(o=n.done?s:m,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function I(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,I(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function R(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(F(t)+" is not iterable")}return w.prototype=S,o(g,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},t.awrap=function(e){return{__await:e}},_(P.prototype),l(P.prototype,c,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new P(h(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(g),l(g,u,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=R,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:R(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function C(e,t,r,n,o,a,c){try{var i=e[a](c),u=i.value}catch(e){return void r(e)}i.done?t(u):Promise.resolve(u).then(n,o)}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function c(e){C(a,n,o,c,l,"next",e)}function l(e){C(a,n,o,c,l,"throw",e)}c(void 0)}))}}function P(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E(n.key),n)}}function I(e,t,r){return t&&T(e.prototype,t),r&&T(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e){var i=function(e,t){if("object"!=F(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=F(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==F(i)?i:i+""}function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}l=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===F(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return n.AnnotationLayerBuilder}}),Object.defineProperty(t,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return n.DefaultAnnotationLayerFactory}}),Object.defineProperty(t,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return o.DefaultTextLayerFactory}}),Object.defineProperty(t,"TextLayerBuilder",{enumerable:!0,get:function(){return o.TextLayerBuilder}}),Object.defineProperty(t,"EventBus",{enumerable:!0,get:function(){return c.EventBus}}),Object.defineProperty(t,"NullL10n",{enumerable:!0,get:function(){return c.NullL10n}}),Object.defineProperty(t,"ProgressBar",{enumerable:!0,get:function(){return c.ProgressBar}}),Object.defineProperty(t,"PDFLinkService",{enumerable:!0,get:function(){return l.PDFLinkService}}),Object.defineProperty(t,"SimpleLinkService",{enumerable:!0,get:function(){return l.SimpleLinkService}}),Object.defineProperty(t,"DownloadManager",{enumerable:!0,get:function(){return h.DownloadManager}}),Object.defineProperty(t,"GenericL10n",{enumerable:!0,get:function(){return d.GenericL10n}}),Object.defineProperty(t,"PDFFindController",{enumerable:!0,get:function(){return f.PDFFindController}}),Object.defineProperty(t,"PDFHistory",{enumerable:!0,get:function(){return m.PDFHistory}}),Object.defineProperty(t,"PDFPageView",{enumerable:!0,get:function(){return v.PDFPageView}}),Object.defineProperty(t,"PDFSinglePageViewer",{enumerable:!0,get:function(){return y.PDFSinglePageViewer}}),Object.defineProperty(t,"PDFViewer",{enumerable:!0,get:function(){return k.PDFViewer}});var n=r(1),o=r(5),c=r(3),l=r(4),h=r(6),d=r(8),f=r(10),m=r(12),v=r(13),y=r(15),k=r(17)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultAnnotationLayerFactory=t.AnnotationLayerBuilder=void 0;var n=r(2),o=r(3),c=r(4),l=function(){return I((function e(t){var r=t.pageDiv,n=t.pdfPage,c=t.linkService,l=t.downloadManager,h=t.imageResourcesPath,d=void 0===h?"":h,f=t.renderInteractiveForms,m=void 0!==f&&f,v=t.l10n,y=void 0===v?o.NullL10n:v;P(this,e),this.pageDiv=r,this.pdfPage=n,this.linkService=c,this.downloadManager=l,this.imageResourcesPath=d,this.renderInteractiveForms=m,this.l10n=y,this.div=null,this._cancelled=!1}),[{key:"render",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"display";this.pdfPage.getAnnotations({intent:r}).then((function(r){if(!t._cancelled){var o={viewport:e.clone({dontFlip:!0}),div:t.div,annotations:r,page:t.pdfPage,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,linkService:t.linkService,downloadManager:t.downloadManager};if(t.div)n.AnnotationLayer.update(o);else{if(0===r.length)return;t.div=document.createElement("div"),t.div.className="annotationLayer",t.pageDiv.appendChild(t.div),o.div=t.div,n.AnnotationLayer.render(o),t.l10n.translate(t.div)}}}))}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&this.div.setAttribute("hidden","true")}}])}();t.AnnotationLayerBuilder=l;var h=function(){return I((function e(){P(this,e)}),[{key:"createAnnotationLayerBuilder",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o.NullL10n;return new l({pageDiv:e,pdfPage:t,imageResourcesPath:r,renderInteractiveForms:n,linkService:new c.SimpleLinkService,l10n:h})}}])}();t.DefaultAnnotationLayerFactory=h},function(e,t,n){"use strict";var o;o="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:r(2324),e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidRotation=function(e){return Number.isInteger(e)&&e%90==0},t.isValidScrollMode=function(e){return Number.isInteger(e)&&Object.values(n).includes(e)&&e!==n.UNKNOWN},t.isValidSpreadMode=function(e){return Number.isInteger(e)&&Object.values(o).includes(e)&&e!==o.UNKNOWN},t.isPortraitOrientation=function(e){return e.width<=e.height},t.clamp=y,t.getPDFFileNameFromURL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof e)return t;if(function(e){for(var i=0,t=e.length;i<t&&""===e[i].trim();)i++;return"data:"===e.substring(i,i+5).toLowerCase()}(e))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),t;var r=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,n=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e),o=r.exec(n[1])||r.exec(n[2])||r.exec(n[3]);if(o&&(o=o[0]).includes("%"))try{o=r.exec(decodeURIComponent(o))[0]}catch(e){}return o||t},t.noContextMenuHandler=function(e){e.preventDefault()},t.parseQueryString=function(e){for(var t=e.split("&"),r=Object.create(null),i=0,n=t.length;i<n;++i){var param=t[i].split("="),o=param[0].toLowerCase(),c=param.length>1?param[1]:null;r[decodeURIComponent(o)]=decodeURIComponent(c)}return r},t.backtrackBeforeAllVisibleElements=d,t.getVisibleElements=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e.scrollTop,c=o+e.clientHeight,l=e.scrollLeft,f=l+e.clientWidth,m=[],v=t.length,y=0===v?0:h(t,n?function(view){var element=view.div;return element.offsetLeft+element.clientLeft+element.clientWidth>l}:function(view){var element=view.div;return element.offsetTop+element.clientTop+element.clientHeight>o});y>0&&y<v&&!n&&(y=d(y,t,o));for(var k=n?f:-1,i=y;i<v;i++){var view=t[i],element=view.div,w=element.offsetLeft+element.clientLeft,S=element.offsetTop+element.clientTop,A=element.clientWidth,x=element.clientHeight,C=w+A,_=S+x;if(-1===k)_>=c&&(k=_);else if((n?w:S)>k)break;if(!(_<=o||S>=c||C<=l||w>=f)){var P=(x-(Math.max(0,o-S)+Math.max(0,_-c)))*(A-(Math.max(0,l-w)+Math.max(0,C-f)))*100/x/A|0;m.push({id:view.id,x:w,y:S,view:view,percent:P})}}var T=m[0],I=m[m.length-1];return r&&m.sort((function(a,b){var e=a.percent-b.percent;return Math.abs(e)>.001?-e:a.id-b.id})),{first:T,last:I,views:m}},t.roundToDivide=function(e,div){var t=e%div;return 0===t?e:Math.round(e-t+div)},t.getPageSizeInches=function(e){var view=e.view,t=e.userUnit,r=e.rotate,n=w(view,4),o=n[0],c=n[1],l=n[2],h=n[3],d=r%180!=0,f=(l-o)/72*t,m=(h-c)/72*t;return{width:d?m:f,height:d?f:m}},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];var t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];for(var r=e>1?t:e,a=0,b=1,n=1,o=1;;){var p=a+n,q=b+o;if(q>8)break;r<=p/q?(n=p,o=q):(a=p,b=q)}return r-a/b<n/o-r?r===e?[a,b]:[b,a]:r===e?[n,o]:[o,n]},t.getOutputScale=function(e){var t=window.devicePixelRatio||1,r=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1,n=t/r;return{sx:n,sy:n,scaled:1!==n}},t.scrollIntoView=function(element,e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=element.offsetParent;if(r){for(var n=element.offsetTop+element.clientTop,o=element.offsetLeft+element.clientLeft;r.clientHeight===r.scrollHeight&&r.clientWidth===r.scrollWidth||t&&"hidden"===getComputedStyle(r).overflow;)if(r.dataset._scaleY&&(n/=r.dataset._scaleY,o/=r.dataset._scaleX),n+=r.offsetTop,o+=r.offsetLeft,!(r=r.offsetParent))return;e&&(void 0!==e.top&&(n+=e.top),void 0!==e.left&&(o+=e.left,r.scrollLeft=o)),r.scrollTop=n}else console.error("offsetParent is not set -- cannot scroll")},t.watchScroll=function(e,t){var r=function(r){o||(o=window.requestAnimationFrame((function(){o=null;var r=e.scrollLeft,c=n.lastX;r!==c&&(n.right=r>c),n.lastX=r;var l=e.scrollTop,h=n.lastY;l!==h&&(n.down=l>h),n.lastY=l,t(n)})))},n={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:r},o=null;return e.addEventListener("scroll",r,!0),n},t.binarySearchFirstItem=h,t.normalizeWheelEventDelta=function(e){var t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY),r=Math.atan2(e.deltaY,e.deltaX);return-.25*Math.PI<r&&r<.75*Math.PI&&(t=-t),0===e.deltaMode?t/=900:1===e.deltaMode&&(t/=30),t},t.waitOnEventOrTimeout=function(e){var t=e.target,r=e.name,n=e.delay,o=void 0===n?0:n;return new Promise((function(e,n){if("object"!==F(t)||!r||"string"!=typeof r||!(Number.isInteger(o)&&o>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function c(n){t instanceof v?t._off(r,l):t.removeEventListener(r,l),d&&clearTimeout(d),e(n)}var l=c.bind(null,f.EVENT);t instanceof v?t._on(r,l):t.addEventListener(r,l);var h=c.bind(null,f.TIMEOUT),d=setTimeout(h,o)}))},t.moveToEndOfArray=function(e,t){for(var r=[],n=e.length,o=0,c=0;c<n;++c)t(e[c])?r.push(e[c]):(e[o]=e[c],++o);for(var l=0;o<n;++l,++o)e[o]=r[l]},t.WaitOnType=t.animationStarted=t.ProgressBar=t.EventBus=t.NullL10n=t.SpreadMode=t.ScrollMode=t.TextLayerMode=t.RendererType=t.PresentationModeState=t.VERTICAL_PADDING=t.SCROLLBAR_PADDING=t.MAX_AUTO_SCALE=t.UNKNOWN_SCALE=t.MAX_SCALE=t.MIN_SCALE=t.DEFAULT_SCALE=t.DEFAULT_SCALE_VALUE=t.CSS_UNITS=t.AutoPrintRegExp=void 0,t.CSS_UNITS=96/72,t.DEFAULT_SCALE_VALUE="auto",t.DEFAULT_SCALE=1,t.MIN_SCALE=.1,t.MAX_SCALE=10,t.UNKNOWN_SCALE=0,t.MAX_AUTO_SCALE=1.25,t.SCROLLBAR_PADDING=40,t.VERTICAL_PADDING=5,t.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},t.RendererType={CANVAS:"canvas",SVG:"svg"},t.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};var n={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};t.ScrollMode=n;var o={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function c(text,e){return e?text.replace(/\{\{\s*(\w+)\s*\}\}/g,(function(t,r){return r in e?e[r]:"{{"+r+"}}"})):text}t.SpreadMode=o,t.AutoPrintRegExp=/\bprint\s*\(/;var l={getLanguage:function(){return _(x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","en-us");case 1:case"end":return e.stop()}}),e)})))()},getDirection:function(){return _(x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","ltr");case 1:case"end":return e.stop()}}),e)})))()},get:function(e,t,r){return _(x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c(r,t));case 1:case"end":return e.stop()}}),e)})))()},translate:function(element){return _(x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()}};function h(e,t){var r=0,n=e.length-1;if(n<0||!t(e[n]))return e.length;if(t(e[r]))return r;for(;r<n;){var o=r+n>>1;t(e[o])?n=o:r=o+1}return r}function d(e,t,r){if(e<2)return e;var n=t[e].div,o=n.offsetTop+n.clientTop;o>=r&&(o=(n=t[e-1].div).offsetTop+n.clientTop);for(var i=e-2;i>=0&&!((n=t[i].div).offsetTop+n.clientTop+n.clientHeight<=o);--i)e=i;return e}t.NullL10n=l;var f={EVENT:"event",TIMEOUT:"timeout"};t.WaitOnType=f;var m=new Promise((function(e){window.requestAnimationFrame(e)}));t.animationStarted=m;var v=function(){return I((function e(t){P(this,e),this._listeners=Object.create(null)}),[{key:"on",value:function(e,t){this._on(e,t,{external:!0})}},{key:"off",value:function(e,t){this._off(e,t,{external:!0})}},{key:"dispatch",value:function(e){var t=this._listeners[e];if(t&&0!==t.length){var r,n=Array.prototype.slice.call(arguments,1);t.slice(0).forEach((function(e){var t=e.listener;if(e.external)return r||(r=[]),void r.push(t);t.apply(null,n)})),r&&(r.forEach((function(e){e.apply(null,n)})),r=null)}}},{key:"_on",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this._listeners[e];n||(this._listeners[e]=n=[]),n.push({listener:t,external:!0===(r&&r.external)})}},{key:"_off",value:function(e,t){var r=this._listeners[e];if(r)for(var i=0,n=r.length;i<n;i++)if(r[i].listener===t)return void r.splice(i,1)}}])}();function y(e,t,r){return Math.min(Math.max(e,t),r)}t.EventBus=v;var k=function(){return I((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.height,o=r.width,c=r.units;P(this,e),this.visible=!0,this.div=document.querySelector(t+" .progress"),this.bar=this.div.parentNode,this.height=n||100,this.width=o||100,this.units=c||"%",this.div.style.height=this.height+this.units,this.percent=0}),[{key:"_updateBar",value:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate");var e=this.width*this._percent/100;this.div.style.width=e+this.units}},{key:"percent",get:function(){return this._percent},set:function(e){this._indeterminate=isNaN(e),this._percent=y(e,0,100),this._updateBar()}},{key:"setWidth",value:function(e){if(e){var t=e.parentNode.offsetWidth-e.offsetWidth;t>0&&(this.bar.style.width="calc(100% - ".concat(t,"px)"))}}},{key:"hide",value:function(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}},{key:"show",value:function(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}}])}();t.ProgressBar=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=void 0;var n=r(3),o=function(){return I((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.eventBus,n=t.externalLinkTarget,o=void 0===n?null:n,c=t.externalLinkRel,l=void 0===c?null:c,h=t.externalLinkEnabled,d=void 0===h||h,f=t.ignoreDestinationZoom,m=void 0!==f&&f;P(this,e),this.eventBus=r,this.externalLinkTarget=o,this.externalLinkRel=l,this.externalLinkEnabled=d,this._ignoreDestinationZoom=m,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}),[{key:"setDocument",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setHistory",value:function(e){this.pdfHistory=e}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(e){this.pdfViewer.pagesRotation=e}},{key:"navigateTo",value:function(e){var t=this,r=function(n){var o,c=n.namedDest,l=n.explicitDest,h=l[0];if(h instanceof Object){if(null===(o=t._cachedPageNumber(h)))return void t.pdfDocument.getPageIndex(h).then((function(e){t.cachePageRef(e+1,h),r({namedDest:c,explicitDest:l})})).catch((function(){console.error('PDFLinkService.navigateTo: "'.concat(h,'" is not ')+'a valid page reference, for dest="'.concat(e,'".'))}))}else{if(!Number.isInteger(h))return void console.error('PDFLinkService.navigateTo: "'.concat(h,'" is not ')+'a valid destination reference, for dest="'.concat(e,'".'));o=h+1}!o||o<1||o>t.pagesCount?console.error('PDFLinkService.navigateTo: "'.concat(o,'" is not ')+'a valid page number, for dest="'.concat(e,'".')):(t.pdfHistory&&(t.pdfHistory.pushCurrentPosition(),t.pdfHistory.push({namedDest:c,explicitDest:l,pageNumber:o})),t.pdfViewer.scrollPageIntoView({pageNumber:o,destArray:l,ignoreDestinationZoom:t._ignoreDestinationZoom}))};new Promise((function(r,n){"string"!=typeof e?r({namedDest:"",explicitDest:e}):t.pdfDocument.getDestination(e).then((function(t){r({namedDest:e,explicitDest:t})}))})).then((function(data){Array.isArray(data.explicitDest)?r(data):console.error('PDFLinkService.navigateTo: "'.concat(data.explicitDest,'" is')+' not a valid destination array, for dest="'.concat(e,'".'))}))}},{key:"getDestinationHash",value:function(e){if("string"==typeof e)return this.getAnchorUrl("#"+escape(e));if(Array.isArray(e)){var t=JSON.stringify(e);return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(e){return(this.baseUrl||"")+e}},{key:"setHash",value:function(e){var t,r;if(e.includes("=")){var o=(0,n.parseQueryString)(e);if("search"in o&&this.eventBus.dispatch("findfromurlhash",{source:this,query:o.search.replace(/"/g,""),phraseSearch:"true"===o.phrase}),"page"in o&&(t=0|o.page||1),"zoom"in o){var c=o.zoom.split(","),l=c[0],h=parseFloat(l);l.includes("Fit")?"Fit"===l||"FitB"===l?r=[null,{name:l}]:"FitH"===l||"FitBH"===l||"FitV"===l||"FitBV"===l?r=[null,{name:l},c.length>1?0|c[1]:null]:"FitR"===l?5!==c.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):r=[null,{name:l},0|c[1],0|c[2],0|c[3],0|c[4]]:console.error('PDFLinkService.setHash: "'.concat(l,'" is not ')+"a valid zoom value."):r=[null,{name:"XYZ"},c.length>1?0|c[1]:null,c.length>2?0|c[2]:null,h?h/100:l]}r?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:r,allowNegativeOffset:!0}):t&&(this.page=t),"pagemode"in o&&this.eventBus.dispatch("pagemode",{source:this,mode:o.pagemode}),"nameddest"in o&&this.navigateTo(o.nameddest)}else{r=unescape(e);try{r=JSON.parse(r),Array.isArray(r)||(r=r.toString())}catch(e){}if("string"==typeof r||function(e){if(!Array.isArray(e))return!1;var t=e.length;if(t<2)return!1;var r=e[0];if(!("object"===F(r)&&Number.isInteger(r.num)&&Number.isInteger(r.gen)||Number.isInteger(r)&&r>=0))return!1;var n=e[1];if("object"!==F(n)||"string"!=typeof n.name)return!1;var o=!0;switch(n.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;o=!1;break;default:return!1}for(var i=2;i<t;i++){var param=e[i];if(!("number"==typeof param||o&&null===param))return!1}return!0}(r))return void this.navigateTo(r);console.error('PDFLinkService.setHash: "'.concat(unescape(e),'" is not ')+"a valid destination.")}}},{key:"executeNamedAction",value:function(e){switch(e){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page<this.pagesCount&&this.page++;break;case"PrevPage":this.page>1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:e})}},{key:"cachePageRef",value:function(e,t){if(t){var r=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);this._pagesRefCache[r]=e}}},{key:"_cachedPageNumber",value:function(e){var t=0===e.gen?"".concat(e.num,"R"):"".concat(e.num,"R").concat(e.gen);return this._pagesRefCache&&this._pagesRefCache[t]||null}},{key:"isPageVisible",value:function(e){return this.pdfViewer.isPageVisible(e)}}])}();t.PDFLinkService=o;var c=function(){return I((function e(){P(this,e),this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}),[{key:"pagesCount",get:function(){return 0}},{key:"page",get:function(){return 0},set:function(e){}},{key:"rotation",get:function(){return 0},set:function(e){}},{key:"navigateTo",value:function(e){}},{key:"getDestinationHash",value:function(e){return"#"}},{key:"getAnchorUrl",value:function(e){return"#"}},{key:"setHash",value:function(e){}},{key:"executeNamedAction",value:function(e){}},{key:"cachePageRef",value:function(e,t){}},{key:"isPageVisible",value:function(e){return!0}}])}();t.SimpleLinkService=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultTextLayerFactory=t.TextLayerBuilder=void 0;var n=r(2),o=function(){return I((function e(t){var r=t.textLayerDiv,n=t.eventBus,o=t.pageIndex,c=t.viewport,l=t.findController,h=void 0===l?null:l,d=t.enhanceTextSelection,f=void 0!==d&&d;P(this,e),this.textLayerDiv=r,this.eventBus=n,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageIdx=o,this.pageNumber=this.pageIdx+1,this.matches=[],this.viewport=c,this.textDivs=[],this.findController=h,this.textLayerRenderTask=null,this.enhanceTextSelection=f,this._onUpdateTextLayerMatches=null,this._bindMouse()}),[{key:"_finishRendering",value:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.appendChild(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}},{key:"render",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var r=document.createDocumentFragment();this.textLayerRenderTask=(0,n.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:r,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:t,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then((function(){e.textLayerDiv.appendChild(r),e._finishRendering(),e._updateMatches()}),(function(e){})),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(t){t.pageIndex!==e.pageIdx&&-1!==t.pageIndex||e._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}}},{key:"cancel",value:function(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}},{key:"setTextContentStream",value:function(e){this.cancel(),this.textContentStream=e}},{key:"setTextContent",value:function(e){this.cancel(),this.textContent=e}},{key:"_convertMatches",value:function(e,t){if(!e)return[];for(var r=this.findController,n=this.textContentItemsStr,i=0,o=0,c=n.length-1,l=r.state.query.length,h=[],d=0,f=e.length;d<f;d++){for(var m=e[d];i!==c&&m>=o+n[i].length;)o+=n[i].length,i++;i===n.length&&console.error("Could not find a matching mapping");var v={begin:{divIdx:i,offset:m-o}};for(m+=t?t[d]:l;i!==c&&m>o+n[i].length;)o+=n[i].length,i++;v.end={divIdx:i,offset:m-o},h.push(v)}return h}},{key:"_renderMatches",value:function(e){if(0!==e.length){var t=this.findController,r=this.pageIdx,n=this.textContentItemsStr,o=this.textDivs,c=r===t.selected.pageIdx,l=t.selected.matchIdx,h=null,d={divIdx:-1,offset:void 0},f=l,m=f+1;if(t.state.highlightAll)f=0,m=e.length;else if(!c)return;for(var i=f;i<m;i++){var v=e[i],y=v.begin,k=v.end,w=c&&i===l,S=w?" selected":"";if(w&&t.scrollMatchIntoView({element:o[y.divIdx],pageIndex:r,matchIndex:l}),h&&y.divIdx===h.divIdx?_(h.divIdx,h.offset,y.offset):(null!==h&&_(h.divIdx,h.offset,d.offset),C(y)),y.divIdx===k.divIdx)_(y.divIdx,y.offset,k.offset,"highlight"+S);else{_(y.divIdx,y.offset,d.offset,"highlight begin"+S);for(var A=y.divIdx+1,x=k.divIdx;A<x;A++)o[A].className="highlight middle"+S;C(k,"highlight end"+S)}h=k}h&&_(h.divIdx,h.offset,d.offset)}function C(e,t){var r=e.divIdx;o[r].textContent="",_(r,0,e.offset,t)}function _(e,t,r,c){var div=o[e],content=n[e].substring(t,r),l=document.createTextNode(content);if(c){var span=document.createElement("span");return span.className=c,span.appendChild(l),void div.appendChild(span)}div.appendChild(l)}}},{key:"_updateMatches",value:function(){if(this.renderingDone){for(var e=this.findController,t=this.matches,r=this.pageIdx,n=this.textContentItemsStr,o=this.textDivs,c=-1,i=0,l=t.length;i<l;i++){for(var h=t[i],d=Math.max(c,h.begin.divIdx),f=h.end.divIdx;d<=f;d++){var div=o[d];div.textContent=n[d],div.className=""}c=h.end.divIdx+1}if(e&&e.highlightMatches){var m=e.pageMatches[r]||null,v=e.pageMatchesLength[r]||null;this.matches=this._convertMatches(m,v),this._renderMatches(this.matches)}}}},{key:"_bindMouse",value:function(){var e=this,div=this.textLayerDiv,t=null;div.addEventListener("mousedown",(function(r){if(e.enhanceTextSelection&&e.textLayerRenderTask)return e.textLayerRenderTask.expandTextDivs(!0),void(t&&(clearTimeout(t),t=null));var n=div.querySelector(".endOfContent");if(n){var o=r.target!==div;if(o=o&&"none"!==window.getComputedStyle(n).getPropertyValue("-moz-user-select")){var c=div.getBoundingClientRect(),l=Math.max(0,(r.pageY-c.top)/c.height);n.style.top=(100*l).toFixed(2)+"%"}n.classList.add("active")}})),div.addEventListener("mouseup",(function(){if(e.enhanceTextSelection&&e.textLayerRenderTask)t=setTimeout((function(){e.textLayerRenderTask&&e.textLayerRenderTask.expandTextDivs(!1),t=null}),300);else{var r=div.querySelector(".endOfContent");r&&(r.style.top="",r.classList.remove("active"))}}))}}])}();t.TextLayerBuilder=o;var c=function(){return I((function e(){P(this,e)}),[{key:"createTextLayerBuilder",value:function(e,t,r){return new o({textLayerDiv:e,pageIndex:t,viewport:r,enhanceTextSelection:arguments.length>3&&void 0!==arguments[3]&&arguments[3],eventBus:arguments.length>4?arguments[4]:void 0})}}])}();t.DefaultTextLayerFactory=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var n=r(2),o=r(7).viewerCompatibilityParams.disableCreateObjectURL||!1;function c(e,t){var a=document.createElement("a");if(!a.click)throw new Error('DownloadManager: "a.click()" is not supported.');a.href=e,a.target="_parent","download"in a&&(a.download=t),(document.body||document.documentElement).appendChild(a),a.click(),a.remove()}var l=function(){return I((function e(t){var r=t.disableCreateObjectURL,n=void 0===r?o:r;P(this,e),this.disableCreateObjectURL=n}),[{key:"downloadUrl",value:function(e,t){(0,n.createValidAbsoluteUrl)(e,"http://example.com")&&c(e+"#pdfjs.action=download",t)}},{key:"downloadData",value:function(data,e,t){navigator.msSaveBlob?navigator.msSaveBlob(new Blob([data],{type:t}),e):c((0,n.createObjectURL)(data,t,this.disableCreateObjectURL),e)}},{key:"download",value:function(e,t,r){navigator.msSaveBlob?navigator.msSaveBlob(e,r)||this.downloadUrl(t,r):this.disableCreateObjectURL?this.downloadUrl(t,r):c(URL.createObjectURL(e),r)}}])}();t.DownloadManager=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.viewerCompatibilityParams=void 0;var n=Object.create(null),o="undefined"!=typeof navigator&&navigator.userAgent||"",c="undefined"!=typeof navigator&&navigator.platform||"",l="undefined"!=typeof navigator&&navigator.maxTouchPoints||1,h=/Android/.test(o),d=/Trident/.test(o),f=/\b(iPad|iPhone|iPod)(?=;)/.test(o)||"MacIntel"===c&&l>1,m=/CriOS/.test(o);(d||m)&&(n.disableCreateObjectURL=!0),(f||h)&&(n.maxCanvasPixels=5242880);var v=Object.freeze(n);t.viewerCompatibilityParams=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0,r(9);var n=document.webL10n,o=function(){return I((function e(t){P(this,e),this._lang=t,this._ready=new Promise((function(e,r){n.setLanguage(t,(function(){e(n)}))}))}),[{key:"getLanguage",value:(o=_(x().mark((function e(){var t;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return t=e.sent,e.abrupt("return",t.getLanguage());case 4:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"getDirection",value:(r=_(x().mark((function e(){var t;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return t=e.sent,e.abrupt("return",t.getDirection());case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"get",value:(t=_(x().mark((function e(t,r,n){var o;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return o=e.sent,e.abrupt("return",o.get(t,r,n));case 4:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"translate",value:(e=_(x().mark((function e(element){var t;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return t=e.sent,e.abrupt("return",t.translate(element));case 4:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})}]);var e,t,r,o}();t.GenericL10n=o},function(e,t,r){"use strict";document.webL10n=function(e,t){var r={},n="",o="textContent",c="",l={},h="loading";function d(e,t,r){t=t||function(data){},r=r||function(){};var n=new XMLHttpRequest;n.open("GET",e,!0),n.overrideMimeType&&n.overrideMimeType("text/plain; charset=utf-8"),n.onreadystatechange=function(){4==n.readyState&&(200==n.status||0===n.status?t(n.responseText):r())},n.onerror=r,n.ontimeout=r;try{n.send(null)}catch(e){r()}}function f(e,t,c,l){var h=e.replace(/[^\/]*$/,"")||"./";function f(text){return text.lastIndexOf("\\")<0?text:text.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}d(e,(function(e){n+=e,function(text,e){var r={},n=/^\s*|\s*$/,o=/^\s*#|^\s*$/,c=/^\s*\[(.*)\]\s*$/,l=/^\s*@import\s+url\((.*)\)\s*$/i,m=/^([^=\s]*)\s*=\s*(.+)$/;function v(e,d,v){var k=e.replace(n,"").split(/[\r\n]+/),w="*",S=t.split("-",1)[0],A=!1,x="";!function e(){for(;;){if(!k.length)return void v();var line=k.shift();if(!o.test(line)){if(d){if(x=c.exec(line)){w=x[1].toLowerCase(),A="*"!==w&&w!==t&&w!==S;continue}if(A)continue;if(x=l.exec(line))return void y(h+x[1],e)}var n=line.match(m);n&&3==n.length&&(r[n[1]]=f(n[2]))}}}()}function y(e,t){d(e,(function(content){v(content,!1,t)}),(function(){console.warn(e+" not found."),t()}))}v(text,!0,(function(){e(r)}))}(e,(function(data){for(var e in data){var t,n,l=e.lastIndexOf(".");l>0?(t=e.substring(0,l),n=e.substring(l+1)):(t=e,n=o),r[t]||(r[t]={}),r[t][n]=data[e]}c&&c()}))}),l)}function m(e,o){e&&(e=e.toLowerCase()),o=o||function(){},r={},n="",c="",c=e;var l=t.querySelectorAll('link[type="application/l10n"]'),d=l.length;if(0!==d){var script,m,v=0;m=function(){++v>=d&&(o(),h="complete")};for(var i=0;i<d;i++)new S(l[i]).load(e,m)}else{var y=(script=t.querySelector('script[type="application/l10n"]'))?JSON.parse(script.innerHTML):null;if(y&&y.locales&&y.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(r=y.locales[e])){var k=y.default_locale.toLowerCase();for(var w in y.locales){if((w=w.toLowerCase())===e){r=y.locales[e];break}w===k&&(r=y.locales[k])}}o()}else console.log("no resource to load, early way out");h="complete"}function S(link){var e=link.href;this.load=function(t,r){f(e,t,r,(function(){console.warn(e+" not found."),console.warn('"'+t+'" resource not found'),c="",r()}))}}}function v(e,t,n){var data=r[e];if(!data){if(console.warn("#"+e+" is undefined."),!n)return null;data=n}var o={};for(var c in data){var l=data[c];l=k(l=y(l,t,e,c),t,e),o[c]=l}return o}function y(e,t,n,o){var c=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(e);if(!c||!c.length)return e;var param,h=c[1],d=c[2];return t&&d in t?param=t[d]:d in r&&(param=r[d]),h in l&&(e=(0,l[h])(e,param,n,o)),e}function k(e,t,n){return e.replace(/\{\{\s*(.+?)\s*\}\}/g,(function(e,o){return t&&o in t?t[o]:o in r?r[o]:(console.log("argument {{"+o+"}} for #"+n+" is undefined."),e)}))}function w(element){var e=function(element){if(!element)return{};var e=element.getAttribute("data-l10n-id"),t=element.getAttribute("data-l10n-args"),r={};if(t)try{r=JSON.parse(t)}catch(t){console.warn("could not parse arguments for #"+e)}return{id:e,args:r}}(element);if(e.id){var data=v(e.id,e.args);if(data){if(data[o]){if(0===function(element){if(element.children)return element.children.length;if(void 0!==element.childElementCount)return element.childElementCount;for(var e=0,i=0;i<element.childNodes.length;i++)e+=1===element.nodeType?1:0;return e}(element))element[o]=data[o];else{for(var r=element.childNodes,n=!1,i=0,c=r.length;i<c;i++)3===r[i].nodeType&&/\S/.test(r[i].nodeValue)&&(n?r[i].nodeValue="":(r[i].nodeValue=data[o],n=!0));if(!n){var l=t.createTextNode(data[o]);element.insertBefore(l,element.firstChild)}}delete data[o]}for(var h in data)element[h]=data[h]}else console.warn("#"+e.id+" is undefined.")}}return l.plural=function(e,param,t,n){var h=parseFloat(param);if(isNaN(h))return e;if(n!=o)return e;l._pluralRules||(l._pluralRules=function(e){function t(e,t){return-1!==t.indexOf(e)}function r(e,t,r){return t<=e&&e<=r}var n={0:function(e){return"other"},1:function(e){return r(e%100,3,10)?"few":0===e?"zero":r(e%100,11,99)?"many":2==e?"two":1==e?"one":"other"},2:function(e){return 0!==e&&e%10==0?"many":2==e?"two":1==e?"one":"other"},3:function(e){return 1==e?"one":"other"},4:function(e){return r(e,0,1)?"one":"other"},5:function(e){return r(e,0,2)&&2!=e?"one":"other"},6:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"},7:function(e){return 2==e?"two":1==e?"one":"other"},8:function(e){return r(e,3,6)?"few":r(e,7,10)?"many":2==e?"two":1==e?"one":"other"},9:function(e){return 0===e||1!=e&&r(e%100,1,19)?"few":1==e?"one":"other"},10:function(e){return r(e%10,2,9)&&!r(e%100,11,19)?"few":e%10!=1||r(e%100,11,19)?"other":"one"},11:function(e){return r(e%10,2,4)&&!r(e%100,12,14)?"few":e%10==0||r(e%10,5,9)||r(e%100,11,14)?"many":e%10==1&&e%100!=11?"one":"other"},12:function(e){return r(e,2,4)?"few":1==e?"one":"other"},13:function(e){return r(e%10,2,4)&&!r(e%100,12,14)?"few":1!=e&&r(e%10,0,1)||r(e%10,5,9)||r(e%100,12,14)?"many":1==e?"one":"other"},14:function(e){return r(e%100,3,4)?"few":e%100==2?"two":e%100==1?"one":"other"},15:function(e){return 0===e||r(e%100,2,10)?"few":r(e%100,11,19)?"many":1==e?"one":"other"},16:function(e){return e%10==1&&11!=e?"one":"other"},17:function(e){return 3==e?"few":0===e?"zero":6==e?"many":2==e?"two":1==e?"one":"other"},18:function(e){return 0===e?"zero":r(e,0,2)&&0!==e&&2!=e?"one":"other"},19:function(e){return r(e,2,10)?"few":r(e,0,1)?"one":"other"},20:function(e){return!r(e%10,3,4)&&e%10!=9||r(e%100,10,19)||r(e%100,70,79)||r(e%100,90,99)?e%1e6==0&&0!==e?"many":e%10!=2||t(e%100,[12,72,92])?e%10!=1||t(e%100,[11,71,91])?"other":"one":"two":"few"},21:function(e){return 0===e?"zero":1==e?"one":"other"},22:function(e){return r(e,0,1)||r(e,11,99)?"one":"other"},23:function(e){return r(e%10,1,2)||e%20==0?"one":"other"},24:function(e){return r(e,3,10)||r(e,13,19)?"few":t(e,[2,12])?"two":t(e,[1,11])?"one":"other"}},o={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[e.replace(/-.*$/,"")];return o in n?n[o]:(console.warn("plural form unknown for ["+e+"]"),function(){return"other"})}(c));var d="["+l._pluralRules(h)+"]";return 0===h&&t+"[zero]"in r?e=r[t+"[zero]"][n]:1==h&&t+"[one]"in r?e=r[t+"[one]"][n]:2==h&&t+"[two]"in r?e=r[t+"[two]"][n]:t+d in r?e=r[t+d][n]:t+"[other]"in r&&(e=r[t+"[other]"][n]),e},{get:function(e,t,r){var n,c=e.lastIndexOf("."),l=o;c>0&&(l=e.substring(c+1),e=e.substring(0,c)),r&&((n={})[l]=r);var data=v(e,t,n);return data&&l in data?data[l]:"{{"+e+"}}"},getData:function(){return r},getText:function(){return n},getLanguage:function(){return c},setLanguage:function(e,t){m(e,(function(){t&&t()}))},getDirection:function(){var e=c.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(e)>=0?"rtl":"ltr"},translate:function(element){for(var e=function(element){return element?element.querySelectorAll("*[data-l10n-id]"):[]}(element=element||t.documentElement),r=e.length,i=0;i<r;i++)w(e[i]);w(element)},getReadyState:function(){return h},ready:function(r){r&&("complete"==h||"interactive"==h?e.setTimeout((function(){r()})):t.addEventListener&&t.addEventListener("localized",(function e(){t.removeEventListener("localized",e),r()})))}}}(window,document)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindController=t.FindState=void 0;var n=r(2),o=r(11),c=r(3),l={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};t.FindState=l;var h={"‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},d=null;function f(text){if(!d){var e=Object.keys(h).join("");d=new RegExp("[".concat(e,"]"),"g")}return text.replace(d,(function(e){return h[e]}))}var m=function(){return I((function e(t){var r=t.linkService,n=t.eventBus;P(this,e),this._linkService=r,this._eventBus=n,this._reset(),n._on("findbarclose",this._onFindBarClose.bind(this))}),[{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return this._state}},{key:"setDocument",value:function(e){this._pdfDocument&&this._reset(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}},{key:"executeCommand",value:function(e,t){var r=this;if(t){var n=this._pdfDocument;(null===this._state||this._shouldDirtyMatch(e,t))&&(this._dirtyMatch=!0),this._state=t,"findhighlightallchange"!==e&&this._updateUIState(l.PENDING),this._firstPageCapability.promise.then((function(){if(r._pdfDocument&&(!n||r._pdfDocument===n)){r._extractText();var t=!r._highlightMatches,o=!!r._findTimeout;r._findTimeout&&(clearTimeout(r._findTimeout),r._findTimeout=null),"find"===e?r._findTimeout=setTimeout((function(){r._nextMatch(),r._findTimeout=null}),250):r._dirtyMatch?r._nextMatch():"findagain"===e?(r._nextMatch(),t&&r._state.highlightAll&&r._updateAllPages()):"findhighlightallchange"===e?(o?r._nextMatch():r._highlightMatches=!0,r._updateAllPages()):r._nextMatch()}}))}}},{key:"scrollMatchIntoView",value:function(e){var t=e.element,element=void 0===t?null:t,r=e.pageIndex,n=void 0===r?-1:r,o=e.matchIndex,l=void 0===o?-1:o;if(this._scrollMatches&&element&&-1!==l&&l===this._selected.matchIdx&&-1!==n&&n===this._selected.pageIdx){this._scrollMatches=!1;var h={top:-50,left:-400};(0,c.scrollIntoView)(element,h,!0)}}},{key:"_reset",value:function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=Object.create(null),this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,n.createPromiseCapability)()}},{key:"_query",get:function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=f(this._state.query)),this._normalizedQuery}},{key:"_shouldDirtyMatch",value:function(e,t){if(t.query!==this._state.query)return!0;switch(e){case"findagain":var r=this._selected.pageIdx+1,n=this._linkService;return r>=1&&r<=n.pagesCount&&r!==n.page&&!n.isPageVisible(r);case"findhighlightallchange":return!1}return!0}},{key:"_prepareMatches",value:function(e,t,r){function n(t){var r=e[t],n=e[t+1];if(t<e.length-1&&r.match===n.match)return r.skipped=!0,!0;for(var i=t-1;i>=0;i--){var o=e[i];if(!o.skipped){if(o.match+o.matchLength<r.match)break;if(o.match+o.matchLength>=r.match+r.matchLength)return r.skipped=!0,!0}}return!1}e.sort((function(a,b){return a.match===b.match?a.matchLength-b.matchLength:a.match-b.match}));for(var i=0,o=e.length;i<o;i++)n(i)||(t.push(e[i].match),r.push(e[i].matchLength))}},{key:"_isEntireWord",value:function(content,e,t){if(e>0){var r=content.charCodeAt(e),n=content.charCodeAt(e-1);if((0,o.getCharacterType)(r)===(0,o.getCharacterType)(n))return!1}var c=e+t-1;if(c<content.length-1){var l=content.charCodeAt(c),h=content.charCodeAt(c+1);if((0,o.getCharacterType)(l)===(0,o.getCharacterType)(h))return!1}return!0}},{key:"_calculatePhraseMatch",value:function(e,t,r,n){for(var o=[],c=e.length,l=-c;-1!==(l=r.indexOf(e,l+c));)n&&!this._isEntireWord(r,l,c)||o.push(l);this._pageMatches[t]=o}},{key:"_calculateWordMatch",value:function(e,t,r,n){for(var o=[],c=e.match(/\S+/g),i=0,l=c.length;i<l;i++)for(var h=c[i],d=h.length,f=-d;-1!==(f=r.indexOf(h,f+d));)n&&!this._isEntireWord(r,f,d)||o.push({match:f,matchLength:d,skipped:!1});this._pageMatchesLength[t]=[],this._pageMatches[t]=[],this._prepareMatches(o,this._pageMatches[t],this._pageMatchesLength[t])}},{key:"_calculateMatch",value:function(e){var t=this._pageContents[e],r=this._query,n=this._state,o=n.caseSensitive,c=n.entireWord,l=n.phraseSearch;if(0!==r.length){o||(t=t.toLowerCase(),r=r.toLowerCase()),l?this._calculatePhraseMatch(r,e,t,c):this._calculateWordMatch(r,e,t,c),this._state.highlightAll&&this._updatePage(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this._nextPageMatch());var h=this._pageMatches[e].length;h>0&&(this._matchesCountTotal+=h,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var e=this;if(!(this._extractTextPromises.length>0))for(var t=Promise.resolve(),r=function(i){var r=(0,n.createPromiseCapability)();e._extractTextPromises[i]=r.promise,t=t.then((function(){return e._pdfDocument.getPage(i+1).then((function(e){return e.getTextContent({normalizeWhitespace:!0})})).then((function(t){for(var n=t.items,o=[],c=0,l=n.length;c<l;c++)o.push(n[c].str);e._pageContents[i]=f(o.join("")),r.resolve(i)}),(function(t){console.error("Unable to get text content for page ".concat(i+1),t),e._pageContents[i]="",r.resolve(i)}))}))},i=0,o=this._linkService.pagesCount;i<o;i++)r(i)}},{key:"_updatePage",value:function(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}},{key:"_updateAllPages",value:function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}},{key:"_nextMatch",value:function(){var e=this,t=this._state.findPrevious,r=this._linkService.page-1,n=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=r,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(var i=0;i<n;i++)!0!==this._pendingFindMatches[i]&&(this._pendingFindMatches[i]=!0,this._extractTextPromises[i].then((function(t){delete e._pendingFindMatches[t],e._calculateMatch(t)})))}if(""!==this._query){if(!this._resumePageIdx){var o=this._offset;if(this._pagesToSearch=n,null!==o.matchIdx){var c=this._pageMatches[o.pageIdx].length;if(!t&&o.matchIdx+1<c||t&&o.matchIdx>0)return o.matchIdx=t?o.matchIdx-1:o.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(t)}this._nextPageMatch()}}else this._updateUIState(l.FOUND)}},{key:"_matchesReady",value:function(e){var t=this._offset,r=e.length,n=this._state.findPrevious;return r?(t.matchIdx=n?r-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(n),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}},{key:"_nextPageMatch",value:function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var e=null;do{var t=this._offset.pageIdx;if(!(e=this._pageMatches[t])){this._resumePageIdx=t;break}}while(!this._matchesReady(e))}},{key:"_advanceOffsetPage",value:function(e){var t=this._offset,r=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=r||t.pageIdx<0)&&(t.pageIdx=e?r-1:0,t.wrapped=!0)}},{key:"_updateMatch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=l.NOT_FOUND,r=this._offset.wrapped;if(this._offset.wrapped=!1,e){var n=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=r?l.WRAPPED:l.FOUND,-1!==n&&n!==this._selected.pageIdx&&this._updatePage(n)}this._updateUIState(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}},{key:"_onFindBarClose",value:function(e){var t=this,r=this._pdfDocument;this._firstPageCapability.promise.then((function(){!t._pdfDocument||r&&t._pdfDocument!==r||(t._findTimeout&&(clearTimeout(t._findTimeout),t._findTimeout=null),t._resumePageIdx&&(t._resumePageIdx=null,t._dirtyMatch=!0),t._updateUIState(l.FOUND),t._highlightMatches=!1,t._updateAllPages())}))}},{key:"_requestMatchesCount",value:function(){var e=this._selected,t=e.pageIdx,r=e.matchIdx,n=0,o=this._matchesCountTotal;if(-1!==r){for(var i=0;i<t;i++)n+=this._pageMatches[i]&&this._pageMatches[i].length||0;n+=r+1}return(n<1||n>o)&&(n=o=0),{current:n,total:o}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(e,t){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this._requestMatchesCount()})}}])}();t.PDFFindController=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCharacterType=function(e){return function(e){return e<11904}(e)?function(e){return!(65408&e)}(e)?function(e){return 32===e||9===e||13===e||10===e}(e)?n.SPACE:function(e){return e>=97&&e<=122||e>=65&&e<=90}(e)||function(e){return e>=48&&e<=57}(e)||95===e?n.ALPHA_LETTER:n.PUNCT:function(e){return 3584==(65408&e)}(e)?n.THAI_LETTER:160===e?n.SPACE:n.ALPHA_LETTER:function(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}(e)?n.HAN_LETTER:function(e){return e>=12448&&e<=12543}(e)?n.KATAKANA_LETTER:function(e){return e>=12352&&e<=12447}(e)?n.HIRAGANA_LETTER:function(e){return e>=65376&&e<=65439}(e)?n.HALFWIDTH_KATAKANA_LETTER:n.ALPHA_LETTER},t.CharacterType=void 0;var n={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};t.CharacterType=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDestHashesEqual=l,t.isDestArraysEqual=h,t.PDFHistory=void 0;var n=r(3);function o(){return document.location.hash}var c=function(){return I((function e(t){var r=this,n=t.linkService,o=t.eventBus;P(this,e),this.linkService=n,this.eventBus=o,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",(function(e){r._isViewerInPresentationMode=e.active||e.switchInProgress})),this.eventBus._on("pagesinit",(function(){r._isPagesLoaded=!1;var e=function(t){r.eventBus._off("pagesloaded",e),r._isPagesLoaded=!!t.pagesCount};r.eventBus._on("pagesloaded",e)}))}),[{key:"initialize",value:function(e){var t=e.fingerprint,r=e.resetHistory,n=void 0!==r&&r,c=e.updateUrl,l=void 0!==c&&c;if(t&&"string"==typeof t){this._initialized&&this.reset();var h=""!==this._fingerprint&&this._fingerprint!==t;this._fingerprint=t,this._updateUrl=!0===l,this._initialized=!0,this._bindEvents();var d=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=o(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(d,!0)||n){var f=this._parseCurrentHash(!0),m=f.hash,v=f.page,y=f.rotation;return!m||h||n?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:m,page:v,rotation:y},!0)}var k=d.destination;this._updateInternalState(k,d.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),void 0!==k.rotation&&(this._initialRotation=k.rotation),k.dest?(this._initialBookmark=JSON.stringify(k.dest),this._destination.page=null):k.hash?this._initialBookmark=k.hash:k.page&&(this._initialBookmark="page=".concat(k.page))}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}},{key:"reset",value:function(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}},{key:"push",value:function(e){var t=this,r=e.namedDest,n=void 0===r?null:r,o=e.explicitDest,c=e.pageNumber;if(this._initialized)if(n&&"string"!=typeof n)console.error("PDFHistory.push: "+'"'.concat(n,'" is not a valid namedDest parameter.'));else if(Array.isArray(o))if(Number.isInteger(c)&&c>0&&c<=this.linkService.pagesCount||null===c&&!this._destination){var d=n||JSON.stringify(o);if(d){var f=!1;if(this._destination&&(l(this._destination.hash,d)||h(this._destination.dest,o))){if(this._destination.page)return;f=!0}this._popStateInProgress&&!f||(this._pushOrReplaceState({dest:o,hash:d,page:c,rotation:this.linkService.rotation},f),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((function(){t._popStateInProgress=!1}))))}}else console.error("PDFHistory.push: "+'"'.concat(c,'" is not a valid pageNumber parameter.'));else console.error("PDFHistory.push: "+'"'.concat(o,'" is not a valid explicitDest parameter.'))}},{key:"pushCurrentPosition",value:function(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid<this._maxUid&&window.history.forward()}}},{key:"popStateInProgress",get:function(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}},{key:"initialBookmark",get:function(){return this._initialized?this._initialBookmark:null}},{key:"initialRotation",get:function(){return this._initialized?this._initialRotation:null}},{key:"_pushOrReplaceState",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!this._destination,n={fingerprint:this._fingerprint,uid:r?this._uid:this._uid+1,destination:e};if(this._updateInternalState(e,n.uid),this._updateUrl&&e&&e.hash){var o=document.location.href.split("#")[0];o.startsWith("file://")||(t="".concat(o,"#").concat(e.hash))}r?window.history.replaceState(n,"",t):(this._maxUid=this._uid,window.history.pushState(n,"",t))}},{key:"_tryPushCurrentPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._position){var t=this._position;if(e&&((t=Object.assign(Object.create(null),this._position)).temporary=!0),this._destination){if(this._destination.temporary)this._pushOrReplaceState(t,!0);else if(this._destination.hash!==t.hash&&(this._destination.page||!(this._numPositionUpdates<=50))){var r=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(this._destination.dest||!this._destination.first)return;r=!0}this._pushOrReplaceState(t,r)}}else this._pushOrReplaceState(t)}}},{key:"_isValidState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return!1;if(e.fingerprint!==this._fingerprint){if(!t)return!1;if("string"!=typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1;var r=w(performance.getEntriesByType("navigation"),1)[0];if(!r||"reload"!==r.type)return!1}return!(!Number.isInteger(e.uid)||e.uid<0)&&null!==e.destination&&"object"===F(e.destination)}},{key:"_updateInternalState",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),r&&e&&e.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=unescape(o()).substring(1),r=(0,n.parseQueryString)(t),c=r.nameddest||"",l=0|r.page;return Number.isInteger(l)&&l>0&&l<=this.linkService.pagesCount&&!(e&&c.length>0)||(l=null),{hash:t,page:l,rotation:this.linkService.rotation}}},{key:"_updateViewarea",value:function(e){var t=this,r=e.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(r.pageNumber):r.pdfOpenParams.substring(1),page:this.linkService.page,first:r.pageNumber,rotation:r.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout((function(){t._popStateInProgress||t._tryPushCurrentPosition(!0),t._updateViewareaTimeout=null}),1e3))}},{key:"_popState",value:function(e){var t=this,r=e.state,c=o(),l=this._currentHash!==c;if(this._currentHash=c,r){if(this._isValidState(r)){this._popStateInProgress=!0,l&&(this._blockHashChange++,(0,n.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then((function(){t._blockHashChange--})));var h=r.destination;this._updateInternalState(h,r.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,n.isValidRotation)(h.rotation)&&(this.linkService.rotation=h.rotation),h.dest?this.linkService.navigateTo(h.dest):h.hash?this.linkService.setHash(h.hash):h.page&&(this.linkService.page=h.page),Promise.resolve().then((function(){t._popStateInProgress=!1}))}}else{this._uid++;var d=this._parseCurrentHash(),f=d.hash,m=d.page,v=d.rotation;this._pushOrReplaceState({hash:f,page:m,rotation:v},!0)}}},{key:"_pageHide",value:function(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}},{key:"_bindEvents",value:function(){this._boundEvents||(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))}},{key:"_unbindEvents",value:function(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}])}();function l(e,t){return"string"==typeof e&&"string"==typeof t&&(e===t||(0,n.parseQueryString)(e).nameddest===t)}function h(e,t){function r(e,t){if(F(e)!==F(t))return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!==e&&"object"===F(e)&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!r(e[n],t[n]))return!1;return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var i=0,n=e.length;i<n;i++)if(!r(e[i],t[i]))return!1;return!0}t.PDFHistory=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPageView=void 0;var n=r(3),o=r(2),c=r(14),l=r(7).viewerCompatibilityParams.maxCanvasPixels||16777216,h=function(){return I((function e(t){P(this,e);var r=t.container,o=t.defaultViewport;this.id=t.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=t.scale||n.DEFAULT_SCALE,this.viewport=o,this.pdfPageRotate=o.rotation,this.hasRestrictedScaling=!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:n.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms=t.renderInteractiveForms||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels||l,this.eventBus=t.eventBus,this.renderingQueue=t.renderingQueue,this.textLayerFactory=t.textLayerFactory,this.annotationLayerFactory=t.annotationLayerFactory,this.renderer=t.renderer||n.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.l10n=t.l10n||n.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=c.RenderingStates.INITIAL,this.resume=null,this.error=null,this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null;var 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,r.appendChild(div)}),[{key:"setPdfPage",value:function(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;var t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*n.CSS_UNITS,rotation:t}),this.stats=e.stats,this.reset()}},{key:"destroy",value:function(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}},{key:"_resetZoomLayer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var t=this.zoomLayer.firstChild;this.paintedViewportMap.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.cancelRendering(t),this.renderingState=c.RenderingStates.INITIAL;var div=this.div;div.style.width=Math.floor(this.viewport.width)+"px",div.style.height=Math.floor(this.viewport.height)+"px";for(var r=div.childNodes,n=e&&this.zoomLayer||null,o=t&&this.annotationLayer&&this.annotationLayer.div||null,i=r.length-1;i>=0;i--){var l=r[i];n!==l&&o!==l&&div.removeChild(l)}div.removeAttribute("data-loaded"),o?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),n||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",div.appendChild(this.loadingIconDiv)}},{key:"update",value:function(e,t){this.scale=e||this.scale,void 0!==t&&(this.rotation=t);var r=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*n.CSS_UNITS,rotation:r}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});var o=!1;if(this.canvas&&this.maxCanvasPixels>0){var c=this.outputScale;(Math.floor(this.viewport.width)*c.sx|0)*(Math.floor(this.viewport.height)*c.sy|0)>this.maxCanvasPixels&&(o=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&o)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});this.zoomLayer||this.canvas.hasAttribute("hidden")||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}},{key:"cancelRendering",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!e&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}},{key:"cssTransform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.viewport.width,n=this.viewport.height,div=this.div;e.style.width=e.parentNode.style.width=div.style.width=Math.floor(r)+"px",e.style.height=e.parentNode.style.height=div.style.height=Math.floor(n)+"px";var o=this.viewport.rotation-this.paintedViewportMap.get(e).rotation,c=Math.abs(o),l=1,h=1;90!==c&&270!==c||(l=n/r,h=r/n);var d="rotate("+o+"deg) scale("+l+","+h+")";if(e.style.transform=d,this.textLayer){var f=this.textLayer.viewport,m=this.viewport.rotation-f.rotation,v=Math.abs(m),y=r/f.width;90!==v&&270!==v||(y=r/f.height);var k,w,S=this.textLayer.textLayerDiv;switch(v){case 0:k=w=0;break;case 90:k=0,w="-"+S.style.height;break;case 180:k="-"+S.style.width,w="-"+S.style.height;break;case 270:k="-"+S.style.width,w=0;break;default:console.error("Bad rotation value.")}S.style.transform="rotate("+v+"deg) scale("+y+", "+y+") translate("+k+", "+w+")",S.style.transformOrigin="0% 0%"}t&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}},{key:"getPagePoint",value:function(e,t){return this.viewport.convertToPdfPoint(e,t)}},{key:"draw",value:function(){var e=this;this.renderingState!==c.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var div=this.div,t=this.pdfPage;if(!t)return this.renderingState=c.RenderingStates.FINISHED,this.loadingIconDiv&&(div.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=c.RenderingStates.RUNNING;var r=document.createElement("div");r.style.width=div.style.width,r.style.height=div.style.height,r.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?div.insertBefore(r,this.annotationLayer.div):div.appendChild(r);var l=null;if(this.textLayerMode!==n.TextLayerMode.DISABLE&&this.textLayerFactory){var h=document.createElement("div");h.className="textLayer",h.style.width=r.style.width,h.style.height=r.style.height,this.annotationLayer&&this.annotationLayer.div?div.insertBefore(h,this.annotationLayer.div):div.appendChild(h),l=this.textLayerFactory.createTextLayerBuilder(h,this.id-1,this.viewport,this.textLayerMode===n.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=l;var d=null;this.renderingQueue&&(d=function(t){if(!e.renderingQueue.isHighestPriority(e))return e.renderingState=c.RenderingStates.PAUSED,void(e.resume=function(){e.renderingState=c.RenderingStates.RUNNING,t()});t()});var f=function(){var r=_(x().mark((function r(n){return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(m===e.paintTask&&(e.paintTask=null),!(n instanceof o.RenderingCancelledException)){r.next=4;break}return e.error=null,r.abrupt("return");case 4:if(e.renderingState=c.RenderingStates.FINISHED,e.loadingIconDiv&&(div.removeChild(e.loadingIconDiv),delete e.loadingIconDiv),e._resetZoomLayer(!0),e.error=n,e.stats=t.stats,e.eventBus.dispatch("pagerendered",{source:e,pageNumber:e.id,cssTransform:!1,timestamp:performance.now()}),!n){r.next=12;break}throw n;case 12:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),m=this.renderer===n.RendererType.SVG?this.paintOnSvg(r):this.paintOnCanvas(r);m.onRenderContinue=d,this.paintTask=m;var v=m.promise.then((function(){return f(null).then((function(){if(l){var e=t.streamTextContent({normalizeWhitespace:!0});l.setTextContentStream(e),l.render()}}))}),(function(e){return f(e)}));return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(div,t,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this.annotationLayer.render(this.viewport,"display")),div.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),v}},{key:"paintOnCanvas",value:function(e){var t=(0,o.createPromiseCapability)(),r={promise:t.promise,onRenderContinue:function(e){e()},cancel:function(){A.cancel()}},c=this.viewport,canvas=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then((function(e){canvas.setAttribute("aria-label",e)})),canvas.setAttribute("hidden","hidden");var l=!0,h=function(){l&&(canvas.removeAttribute("hidden"),l=!1)};e.appendChild(canvas),this.canvas=canvas,canvas.mozOpaque=!0;var d=canvas.getContext("2d",{alpha:!1}),f=(0,n.getOutputScale)(d);if(this.outputScale=f,this.useOnlyCssZoom){var m=c.clone({scale:n.CSS_UNITS});f.sx*=m.width/c.width,f.sy*=m.height/c.height,f.scaled=!0}if(this.maxCanvasPixels>0){var v=c.width*c.height,y=Math.sqrt(this.maxCanvasPixels/v);f.sx>y||f.sy>y?(f.sx=y,f.sy=y,f.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var k=(0,n.approximateFraction)(f.sx),w=(0,n.approximateFraction)(f.sy);canvas.width=(0,n.roundToDivide)(c.width*f.sx,k[0]),canvas.height=(0,n.roundToDivide)(c.height*f.sy,w[0]),canvas.style.width=(0,n.roundToDivide)(c.width,k[1])+"px",canvas.style.height=(0,n.roundToDivide)(c.height,w[1])+"px",this.paintedViewportMap.set(canvas,c);var S={canvasContext:d,transform:f.scaled?[f.sx,0,0,f.sy,0,0]:null,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms},A=this.pdfPage.render(S);return A.onContinue=function(e){h(),r.onRenderContinue?r.onRenderContinue(e):e()},A.promise.then((function(){h(),t.resolve(void 0)}),(function(e){h(),t.reject(e)})),r}},{key:"paintOnSvg",value:function(e){var t=this,r=!1,l=function(){if(r)throw new o.RenderingCancelledException("Rendering cancelled, page ".concat(t.id),"svg")},h=this.pdfPage,d=this.viewport.clone({scale:n.CSS_UNITS});return{promise:h.getOperatorList().then((function(r){return l(),new o.SVGGraphics(h.commonObjs,h.objs).getSVG(r,d).then((function(svg){l(),t.svg=svg,t.paintedViewportMap.set(svg,d),svg.style.width=e.style.width,svg.style.height=e.style.height,t.renderingState=c.RenderingStates.FINISHED,e.appendChild(svg)}))})),onRenderContinue:function(e){e()},cancel:function(){r=!0}}}},{key:"setPageLabel",value:function(label){this.pageLabel="string"==typeof label?label:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}])}();t.PDFPageView=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFRenderingQueue=t.RenderingStates=void 0;var n={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};t.RenderingStates=n;var o=function(){return I((function e(){P(this,e),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}),[{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setThumbnailViewer",value:function(e){this.pdfThumbnailViewer=e}},{key:"isHighestPriority",value:function(view){return this.highestPriorityPage===view.renderingId}},{key:"renderHighestPriority",value:function(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}},{key:"getHighestPriority",value:function(e,t,r){var n=e.views,o=n.length;if(0===o)return null;for(var i=0;i<o;++i){var view=n[i].view;if(!this.isViewFinished(view))return view}if(r){var c=e.last.id;if(t[c]&&!this.isViewFinished(t[c]))return t[c]}else{var l=e.first.id-2;if(t[l]&&!this.isViewFinished(t[l]))return t[l]}return null}},{key:"isViewFinished",value:function(view){return view.renderingState===n.FINISHED}},{key:"renderView",value:function(view){var e=this;switch(view.renderingState){case n.FINISHED:return!1;case n.PAUSED:this.highestPriorityPage=view.renderingId,view.resume();break;case n.RUNNING:this.highestPriorityPage=view.renderingId;break;case n.INITIAL:this.highestPriorityPage=view.renderingId,view.draw().finally((function(){e.renderHighestPriority()})).catch((function(e){console.error('renderView: "'.concat(e,'"'))}))}return!0}}])}();t.PDFRenderingQueue=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFSinglePageViewer=void 0;var n=r(16),o=r(2),c=function(e){function t(e){var r;return P(this,t),(r=h(this,t,[e])).eventBus._on("pagesinit",(function(e){r._ensurePageViewVisible()})),r}return y(t,e),I(t,[{key:"_viewerElement",get:function(){return(0,o.shadow)(this,"_viewerElement",this._shadowViewer)}},{key:"_resetView",value:function(){f(t,"_resetView",this,3)([]),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}},{key:"_ensurePageViewVisible",value:function(){var e=this._pages[this._currentPageNumber-1],t=this._pages[this._previousPageNumber-1],r=this.viewer.childNodes;switch(r.length){case 0:this.viewer.appendChild(e.div);break;case 1:if(r[0]!==t.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(e===t)break;this._shadowViewer.appendChild(t.div),this.viewer.appendChild(e.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}},{key:"_scrollUpdate",value:function(){this._updateScrollDown&&this._updateScrollDown(),f(t,"_scrollUpdate",this,3)([])}},{key:"_scrollIntoView",value:function(e){var r=this,n=e.pageDiv,o=e.pageSpot,c=void 0===o?null:o,l=e.pageNumber,h=void 0===l?null:l;h&&this._setCurrentPageNumber(h);var d=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),f(t,"_scrollIntoView",this,3)([{pageDiv:n,pageSpot:c,pageNumber:h}]),this._updateScrollDown=function(){r.scroll.down=d,r._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(e){}},{key:"_isScrollModeHorizontal",get:function(){return(0,o.shadow)(this,"_isScrollModeHorizontal",!1)}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}}])}(n.BaseViewer);t.PDFSinglePageViewer=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseViewer=void 0;var n=r(3),o=r(14),c=r(1),l=r(2),h=r(13),d=r(4),f=r(5);function m(e){var data=[];this.push=function(view){var i=data.indexOf(view);i>=0&&data.splice(i,1),data.push(view),data.length>e&&data.shift().destroy()},this.resize=function(t,r){if(e=t,r){for(var o=new Set,i=0,c=r.length;i<c;++i)o.add(r[i].id);(0,n.moveToEndOfArray)(data,(function(e){return o.has(e.id)}))}for(;data.length>e;)data.shift().destroy()}}var v=function(){return I((function e(t){var r=this;if(P(this,e),this.constructor===e)throw new Error("Cannot initialize BaseViewer.");this._name=this.constructor.name,this.container=t.container,this.viewer=t.viewer||t.container.firstElementChild,this.eventBus=t.eventBus,this.linkService=t.linkService||new d.SimpleLinkService,this.downloadManager=t.downloadManager||null,this.findController=t.findController||null,this.removePageBorders=t.removePageBorders||!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:n.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms=t.renderInteractiveForms||!1,this.enablePrintAutoRotate=t.enablePrintAutoRotate||!1,this.renderer=t.renderer||n.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels,this.l10n=t.l10n||n.NullL10n,this.defaultRenderingQueue=!t.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new o.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=t.renderingQueue,this.scroll=(0,n.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=n.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then((function(){r.eventBus.dispatch("baseviewerinit",{source:r})}))}),[{key:"pagesCount",get:function(){return this._pages.length}},{key:"getPageView",value:function(e){return this._pages[e]}},{key:"pageViewsReady",get:function(){return!!this._pagesCapability.settled&&this._pages.every((function(e){return e&&e.pdfPage}))}},{key:"currentPageNumber",get:function(){return this._currentPageNumber},set:function(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(e,!0)||console.error("".concat(this._name,'.currentPageNumber: "').concat(e,'" is not a valid page.')))}},{key:"_setCurrentPageNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._currentPageNumber===e?(t&&this._resetCurrentPageView(),!0):0<e&&e<=this.pagesCount&&(this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:e,pageLabel:this._pageLabels&&this._pageLabels[e-1]}),t&&this._resetCurrentPageView(),!0)}},{key:"currentPageLabel",get:function(){return this._pageLabels&&this._pageLabels[this._currentPageNumber-1]},set:function(e){if(this.pdfDocument){var t=0|e;if(this._pageLabels){var i=this._pageLabels.indexOf(e);i>=0&&(t=i+1)}this._setCurrentPageNumber(t,!0)||console.error("".concat(this._name,'.currentPageLabel: "').concat(e,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return this._currentScale!==n.UNKNOWN_SCALE?this._currentScale:n.DEFAULT_SCALE},set:function(e){if(isNaN(e))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(e,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(e){this.pdfDocument&&this._setScale(e,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(e){if(!(0,n.isValidRotation)(e))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&this._pagesRotation!==e){this._pagesRotation=e;for(var t=this._currentPageNumber,i=0,r=this._pages.length;i<r;i++){var o=this._pages[i];o.update(o.scale,e)}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}}},{key:"firstPagePromise",get:function(){return this.pdfDocument?this._firstPageCapability.promise:null}},{key:"onePageRendered",get:function(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}},{key:"pagesPromise",get:function(){return this.pdfDocument?this._pagesCapability.promise:null}},{key:"_viewerElement",get:function(){throw new Error("Not implemented: _viewerElement")}},{key:"_onePageRenderedOrForceFetch",value:function(){return this.container.offsetParent&&0!==this._getVisiblePages().views.length?this._onePageRenderedCapability.promise:Promise.resolve()}},{key:"setDocument",value:function(e){var t=this;if(this.pdfDocument&&(this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null)),this.pdfDocument=e,e){var r=e.numPages,o=e.getPage(1);this._pagesCapability.promise.then((function(){t.eventBus.dispatch("pagesloaded",{source:t,pagesCount:r})})),this._onBeforeDraw=function(e){var r=t._pages[e.pageNumber-1];r&&t._buffer.push(r)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=function(e){e.cssTransform||t._onePageRenderedCapability.settled||(t._onePageRenderedCapability.resolve(),t.eventBus._off("pagerendered",t._onAfterDraw),t._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),o.then((function(o){t._firstPageCapability.resolve(o);for(var c=t.currentScale,l=o.getViewport({scale:c*n.CSS_UNITS}),d=t.textLayerMode!==n.TextLayerMode.DISABLE?t:null,f=1;f<=r;++f){var m=new h.PDFPageView({container:t._viewerElement,eventBus:t.eventBus,id:f,scale:c,defaultViewport:l.clone(),renderingQueue:t.renderingQueue,textLayerFactory:d,textLayerMode:t.textLayerMode,annotationLayerFactory:t,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,renderer:t.renderer,enableWebGL:t.enableWebGL,useOnlyCssZoom:t.useOnlyCssZoom,maxCanvasPixels:t.maxCanvasPixels,l10n:t.l10n});t._pages.push(m)}var v=t._pages[0];v&&(v.setPdfPage(o),t.linkService.cachePageRef(1,o.ref)),t._spreadMode!==n.SpreadMode.NONE&&t._updateSpreadMode(),t._onePageRenderedOrForceFetch().then((function(){if(t.findController&&t.findController.setDocument(e),e.loadingParams.disableAutoFetch||r>7500)t._pagesCapability.resolve();else{var n=r-1;if(n<=0)t._pagesCapability.resolve();else for(var o=function(r){e.getPage(r).then((function(e){var o=t._pages[r-1];o.pdfPage||o.setPdfPage(e),t.linkService.cachePageRef(r,e.ref),0==--n&&t._pagesCapability.resolve()}),(function(e){console.error("Unable to get page ".concat(r," to initialize viewer"),e),0==--n&&t._pagesCapability.resolve()}))},c=2;c<=r;++c)o(c)}})),t.eventBus.dispatch("pagesinit",{source:t}),t.defaultRenderingQueue&&t.update()})).catch((function(e){console.error("Unable to initialize viewer",e)}))}}},{key:"setPageLabels",value:function(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("".concat(this._name,".setPageLabels: Invalid page labels."))):this._pageLabels=null;for(var i=0,t=this._pages.length;i<t;i++){var r=this._pages[i],label=this._pageLabels&&this._pageLabels[i];r.setPageLabel(label)}}}},{key:"_resetView",value:function(){this._pages=[],this._currentPageNumber=1,this._currentScale=n.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new m(10),this._location=null,this._pagesRotation=0,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,l.createPromiseCapability)(),this._onePageRenderedCapability=(0,l.createPromiseCapability)(),this._pagesCapability=(0,l.createPromiseCapability)(),this._scrollMode=n.ScrollMode.VERTICAL,this._spreadMode=n.SpreadMode.NONE,this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.viewer.textContent="",this._updateScrollMode()}},{key:"_scrollUpdate",value:function(){0!==this.pagesCount&&this.update()}},{key:"_scrollIntoView",value:function(e){var t=e.pageDiv,r=e.pageSpot,o=void 0===r?null:r;e.pageNumber,(0,n.scrollIntoView)(t,o)}},{key:"_setScaleUpdatePages",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._currentScaleValue=t.toString(),function(e,t){return t===e||Math.abs(t-e)<1e-15}(this._currentScale,e))n&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t});else{for(var i=0,o=this._pages.length;i<o;i++)this._pages[i].update(e);if(this._currentScale=e,!r){var c,l=this._currentPageNumber;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(l=this._location.pageNumber,c=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:l,destArray:c,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:n?t:void 0}),this.defaultRenderingQueue&&this.update()}}},{key:"_setScale",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=parseFloat(e);if(r>0)this._setScaleUpdatePages(r,e,t,!1);else{var o=this._pages[this._currentPageNumber-1];if(!o)return;var c=this.isInPresentationMode||this.removePageBorders,l=c?0:n.SCROLLBAR_PADDING,h=c?0:n.VERTICAL_PADDING;if(!c&&this._isScrollModeHorizontal){var d=[h,l];l=d[0],h=d[1]}var f=(this.container.clientWidth-l)/o.width*o.scale,m=(this.container.clientHeight-h)/o.height*o.scale;switch(e){case"page-actual":r=1;break;case"page-width":r=f;break;case"page-height":r=m;break;case"page-fit":r=Math.min(f,m);break;case"auto":var v=(0,n.isPortraitOrientation)(o)?f:Math.min(m,f);r=Math.min(n.MAX_AUTO_SCALE,v);break;default:return void console.error("".concat(this._name,'._setScale: "').concat(e,'" is an unknown zoom value.'))}this._setScaleUpdatePages(r,e,t,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0);var e=this._pages[this._currentPageNumber-1];this._scrollIntoView({pageDiv:e.div})}},{key:"scrollPageIntoView",value:function(e){var t=e.pageNumber,r=e.destArray,o=void 0===r?null:r,c=e.allowNegativeOffset,l=void 0!==c&&c,h=e.ignoreDestinationZoom,d=void 0!==h&&h;if(this.pdfDocument){var f=Number.isInteger(t)&&this._pages[t-1];if(f)if(!this.isInPresentationMode&&o){var m,v,y=0,k=0,w=0,S=0,A=f.rotation%180!=0,x=(A?f.height:f.width)/f.scale/n.CSS_UNITS,C=(A?f.width:f.height)/f.scale/n.CSS_UNITS,_=0;switch(o[1].name){case"XYZ":y=o[2],k=o[3],_=o[4],y=null!==y?y:0,k=null!==k?k:C;break;case"Fit":case"FitB":_="page-fit";break;case"FitH":case"FitBH":_="page-width",null===(k=o[2])&&this._location&&(y=this._location.left,k=this._location.top);break;case"FitV":case"FitBV":y=o[2],w=x,S=C,_="page-height";break;case"FitR":y=o[2],k=o[3],w=o[4]-y,S=o[5]-k;var P=this.removePageBorders?0:n.SCROLLBAR_PADDING,T=this.removePageBorders?0:n.VERTICAL_PADDING;m=(this.container.clientWidth-P)/w/n.CSS_UNITS,v=(this.container.clientHeight-T)/S/n.CSS_UNITS,_=Math.min(Math.abs(m),Math.abs(v));break;default:return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(o[1].name,'" is not a valid destination type.'))}if(d||(_&&_!==this._currentScale?this.currentScaleValue=_:this._currentScale===n.UNKNOWN_SCALE&&(this.currentScaleValue=n.DEFAULT_SCALE_VALUE)),"page-fit"!==_||o[4]){var I=[f.viewport.convertToViewportPoint(y,k),f.viewport.convertToViewportPoint(y+w,k+S)],E=Math.min(I[0][0],I[1][0]),F=Math.min(I[0][1],I[1][1]);l||(E=Math.max(E,0),F=Math.max(F,0)),this._scrollIntoView({pageDiv:f.div,pageSpot:{left:E,top:F},pageNumber:t})}else this._scrollIntoView({pageDiv:f.div,pageNumber:t})}else this._setCurrentPageNumber(t,!0);else console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(t,'" is not a valid pageNumber parameter.'))}}},{key:"_updateLocation",value:function(e){var t=this._currentScale,r=this._currentScaleValue,n=parseFloat(r)===t?Math.round(1e4*t)/100:r,o=e.id,c="#page="+o;c+="&zoom="+n;var l=this._pages[o-1],h=this.container,d=l.getPagePoint(h.scrollLeft-e.x,h.scrollTop-e.y),f=Math.round(d[0]),m=Math.round(d[1]);c+=","+f+","+m,this._location={pageNumber:o,scale:n,top:m,left:f,rotation:this._pagesRotation,pdfOpenParams:c}}},{key:"_updateHelper",value:function(e){throw new Error("Not implemented: _updateHelper")}},{key:"update",value:function(){var e=this._getVisiblePages(),t=e.views,r=t.length;if(0!==r){var n=Math.max(10,2*r+1);this._buffer.resize(n,t),this.renderingQueue.renderHighestPriority(e),this._updateHelper(t),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"containsElement",value:function(element){return this.container.contains(element)}},{key:"focus",value:function(){this.container.focus()}},{key:"_isScrollModeHorizontal",get:function(){return!this.isInPresentationMode&&this._scrollMode===n.ScrollMode.HORIZONTAL}},{key:"isInPresentationMode",get:function(){return this.presentationModeState===n.PresentationModeState.FULLSCREEN}},{key:"isChangingPresentationMode",get:function(){return this.presentationModeState===n.PresentationModeState.CHANGING}},{key:"isHorizontalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"_getCurrentVisiblePage",value:function(){if(!this.pagesCount)return{views:[]};var e=this._pages[this._currentPageNumber-1],element=e.div,view={id:e.id,x:element.offsetLeft+element.clientLeft,y:element.offsetTop+element.clientTop,view:e};return{first:view,last:view,views:[view]}}},{key:"_getVisiblePages",value:function(){return(0,n.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}},{key:"isPageVisible",value:function(e){return!!this.pdfDocument&&(e<1||e>this.pagesCount?(console.error("".concat(this._name,'.isPageVisible: "').concat(e,'" is out of bounds.')),!1):this._getVisiblePages().views.some((function(view){return view.id===e})))}},{key:"cleanup",value:function(){for(var i=0,e=this._pages.length;i<e;i++)this._pages[i]&&this._pages[i].renderingState!==o.RenderingStates.FINISHED&&this._pages[i].reset()}},{key:"_cancelRendering",value:function(){for(var i=0,e=this._pages.length;i<e;i++)this._pages[i]&&this._pages[i].cancelRendering()}},{key:"_ensurePdfPageLoaded",value:function(e){var t=this;if(e.pdfPage)return Promise.resolve(e.pdfPage);if(this._pagesRequests.has(e))return this._pagesRequests.get(e);var r=this.pdfDocument.getPage(e.id).then((function(r){return e.pdfPage||e.setPdfPage(r),t._pagesRequests.delete(e),r})).catch((function(r){console.error("Unable to get page for page view",r),t._pagesRequests.delete(e)}));return this._pagesRequests.set(e,r),r}},{key:"forceRendering",value:function(e){var t=this,r=e||this._getVisiblePages(),n=this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,o=this.renderingQueue.getHighestPriority(r,this._pages,n);return!!o&&(this._ensurePdfPageLoaded(o).then((function(){t.renderingQueue.renderView(o)})),!0)}},{key:"createTextLayerBuilder",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;return new f.TextLayerBuilder({textLayerDiv:e,eventBus:o,pageIndex:t,viewport:r,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&n})}},{key:"createAnnotationLayerBuilder",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.NullL10n;return new c.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:r,renderInteractiveForms:o,linkService:this.linkService,downloadManager:this.downloadManager,l10n:l})}},{key:"hasEqualPageSizes",get:function(){for(var e=this._pages[0],i=1,t=this._pages.length;i<t;++i){var r=this._pages[i];if(r.width!==e.width||r.height!==e.height)return!1}return!0}},{key:"getPagesOverview",value:function(){var e=this._pages.map((function(e){var t=e.pdfPage.getViewport({scale:1});return{width:t.width,height:t.height,rotation:t.rotation}}));if(!this.enablePrintAutoRotate)return e;var t=(0,n.isPortraitOrientation)(e[0]);return e.map((function(e){return t===(0,n.isPortraitOrientation)(e)?e:{width:e.height,height:e.width,rotation:(e.rotation+90)%360}}))}},{key:"scrollMode",get:function(){return this._scrollMode},set:function(e){if(this._scrollMode!==e){if(!(0,n.isValidScrollMode)(e))throw new Error("Invalid scroll mode: ".concat(e));this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber)}}},{key:"_updateScrollMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this._scrollMode,r=this.viewer;r.classList.toggle("scrollHorizontal",t===n.ScrollMode.HORIZONTAL),r.classList.toggle("scrollWrapped",t===n.ScrollMode.WRAPPED),this.pdfDocument&&e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}},{key:"spreadMode",get:function(){return this._spreadMode},set:function(e){if(this._spreadMode!==e){if(!(0,n.isValidSpreadMode)(e))throw new Error("Invalid spread mode: ".concat(e));this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}},{key:"_updateSpreadMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var t=this.viewer,r=this._pages;if(t.textContent="",this._spreadMode===n.SpreadMode.NONE)for(var i=0,o=r.length;i<o;++i)t.appendChild(r[i].div);else for(var c=this._spreadMode-1,l=null,h=0,d=r.length;h<d;++h)null===l?((l=document.createElement("div")).className="spread",t.appendChild(l)):h%2===c&&(l=l.cloneNode(!1),t.appendChild(l)),l.appendChild(r[h].div);e&&(this._setCurrentPageNumber(e,!0),this.update())}}}])}();t.BaseViewer=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFViewer=void 0;var n=r(16),o=r(2),c=function(e){function t(){return P(this,t),h(this,t,arguments)}return y(t,e),I(t,[{key:"_viewerElement",get:function(){return(0,o.shadow)(this,"_viewerElement",this.viewer)}},{key:"_scrollIntoView",value:function(e){var r=e.pageDiv,n=e.pageSpot,o=void 0===n?null:n,c=e.pageNumber,l=void 0===c?null:c;if(!o&&!this.isInPresentationMode){var h=r.offsetLeft+r.clientLeft,d=h+r.clientWidth,m=this.container,v=m.scrollLeft,y=m.clientWidth;(this._isScrollModeHorizontal||h<v||d>v+y)&&(o={left:0,top:0})}f(t,"_scrollIntoView",this,3)([{pageDiv:r,pageSpot:o,pageNumber:l}])}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():f(t,"_getVisiblePages",this,3)([])}},{key:"_updateHelper",value:function(e){if(!this.isInPresentationMode){var t,r=this._currentPageNumber,n=!1,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=S(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,c=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw c}}}}(e);try{for(o.s();!(t=o.n()).done;){var c=t.value;if(c.percent<100)break;if(c.id===r){n=!0;break}}}catch(e){o.e(e)}finally{o.f()}n||(r=e[0].id),this._setCurrentPageNumber(r)}}}])}(n.BaseViewer);t.PDFViewer=c}])},"object"===F(t)&&"object"===F(e)?e.exports=l():(o=[],void 0===(c="function"==typeof(n=l)?n.apply(t,o):n)||(e.exports=c))}).call(this,r(138)(e))},3035:function(e,t,r){"use strict";r(2326)},3036:function(e,t,r){var n=r(13)(!1);n.push([e.i,"\n@keyframes resizeSensorVisibility {\nfrom { top: 0;\n}\n}\r\n",""]),e.exports=n},3037:function(e,t,r){("undefined"!=typeof window?window:{}).pdfjsWorker=r(3038)},3038:function(e,t,r){(function(e,r){var n,o,c,l;function h(e,t,r,n){var p=d(C(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof p?function(e){return p.apply(r,e)}:p}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=C(e)););return e}(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},d.apply(null,arguments)}function f(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=E(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,c=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw c}}}}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function y(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e){var i=function(e,t){if("object"!=R(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=R(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==R(i)?i:i+""}function w(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function S(e,t,r){return t=C(t),A(e,x()?Reflect.construct(t,r||[],C(e).constructor):t.apply(e,r))}function A(e,t){if(t&&("object"==R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function _(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}function T(){"use strict";T=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof k?t:k,a=Object.create(i.prototype),c=new L(n||[]);return o(a,"_invoke",{value:P(e,r,c)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var f="suspendedStart",m="suspendedYield",v="executing",s="completed",y={};function k(){}function w(){}function S(){}var p={};l(p,a,(function(){return this}));var A=Object.getPrototypeOf,x=A&&A(A(O([])));x&&x!==r&&n.call(x,a)&&(p=x);var g=S.prototype=k.prototype=Object.create(p);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(o,c,i,a){var l=d(e[o],e,c);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==R(h)&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):t.resolve(h).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,a)}))}a(l.arg)}var c;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return c=c?c.then(o,o):o()}})}function P(t,r,n){var o=f;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=I(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var p=d(t,r,n);if("normal"===p.type){if(o=n.done?s:m,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function I(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,I(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function F(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(R(t)+" is not iterable")}return w.prototype=S,o(g,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:w,configurable:!0}),w.displayName=l(S,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},t.awrap=function(e){return{__await:e}},C(_.prototype),l(_.prototype,c,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new _(h(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(g),l(g,u,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(F),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return a.type="throw",a.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),F(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;F(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(e,t)||E(e,t)||function(){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 E(e,a){if(e){if("string"==typeof e)return F(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?F(e,a):void 0}}function F(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,r=Array(a);t<a;t++)r[t]=e[t];return r}function L(e,t,r,n,o,a,c){try{var i=e[a](c),u=i.value}catch(e){return void r(e)}i.done?t(u):Promise.resolve(u).then(n,o)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function c(e){L(a,n,o,c,l,"next",e)}function l(e){L(a,n,o,c,l,"throw",e)}c(void 0)}))}}function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}l=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===R(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"WorkerMessageHandler",{enumerable:!0,get:function(){return n.WorkerMessageHandler}});var n=r(1)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerMessageHandler=t.WorkerTask=void 0;var n=r(2),o=r(5),c=r(6),l=r(4),h=r(45),d=r(46),f=r(8),m=function(){function e(e){this.name=e,this.terminated=!1,this._capability=(0,n.createPromiseCapability)()}return e.prototype={get finished(){return this._capability.promise},finish:function(){this._capability.resolve()},terminate:function(){this.terminated=!0},ensureNotTerminated:function(){if(this.terminated)throw new Error("Worker task was terminated")}},e}();t.WorkerTask=m;var v,y={setup:function(e,t){var r=!1;e.on("test",(function(data){if(!r)if(r=!0,data instanceof Uint8Array){var t=255===data[0];e.postMessageTransfers=t,e.send("test",{supportTransfers:t})}else e.send("test",null)})),e.on("configure",(function(data){(0,n.setVerbosityLevel)(data.verbosity)})),e.on("GetDocRequest",(function(data){return y.createDocumentHandler(data,t)}))},createDocumentHandler:function(e,t){var r,l=!1,v=null,y=[],k=(0,n.getVerbosityLevel)(),w=e.apiVersion,S="2.5.207";if(w!==S)throw new Error('The API version "'.concat(w,'" does not match ')+'the Worker version "'.concat(S,'".'));var A=[];for(var x in[])A.push(x);if(A.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+A.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if("undefined"==typeof ReadableStream||void 0===Promise.allSettled)throw new Error("The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream` and/or `Promise.allSettled`); please use an ES5-compatible build instead.");var C=e.docId,_=e.docBaseUrl,P=e.docId+"_worker",E=new h.MessageHandler(P,C,t);function F(){if(l)throw new Error("Worker was terminated")}function L(e){y.push(e)}function R(e){e.finish();var i=y.indexOf(e);y.splice(i,1)}function M(e){return N.apply(this,arguments)}function N(){return(N=O(T().mark((function e(t){var n,o,c,l;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.ensureDoc("checkHeader");case 2:return e.next=4,r.ensureDoc("parseStartXRef");case 4:return e.next=6,r.ensureDoc("parse",[t]);case 6:if(t){e.next=9;break}return e.next=9,r.ensureDoc("checkFirstPage");case 9:return e.next=11,Promise.all([r.ensureDoc("numPages"),r.ensureDoc("fingerprint")]);case 11:return n=e.sent,o=I(n,2),c=o[0],l=o[1],e.abrupt("return",{numPages:c,fingerprint:l});case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(data,e){var t,r=(0,n.createPromiseCapability)(),source=data.source;if(source.data){try{t=new c.LocalPdfManager(C,source.data,source.password,e,_),r.resolve(t)}catch(e){r.reject(e)}return r.promise}var o,l=[];try{o=new d.PDFWorkerStream(E)}catch(e){return r.reject(e),r.promise}var h=o.getFullReader();h.headersReady.then((function(){if(h.isRangeSupported){var n=source.disableAutoFetch||h.isStreamingSupported;t=new c.NetworkPdfManager(C,o,{msgHandler:E,password:source.password,length:h.contentLength,disableAutoFetch:n,rangeChunkSize:source.rangeChunkSize},e,_);for(var i=0;i<l.length;i++)t.sendProgressiveData(l[i]);l=[],r.resolve(t),v=null}})).catch((function(e){r.reject(e),v=null}));var f=0;return new Promise((function(o,d){var m=function(o){var y=o.value,k=o.done;try{if(F(),k)return t||function(){var o=(0,n.arraysToBytes)(l);source.length&&o.length!==source.length&&(0,n.warn)("reported HTTP length is different from actual");try{t=new c.LocalPdfManager(C,o,source.password,e,_),r.resolve(t)}catch(e){r.reject(e)}l=[]}(),void(v=null);f+=(0,n.arrayByteLength)(y),h.isStreamingSupported||E.send("DocProgress",{loaded:f,total:Math.max(f,h.contentLength||0)}),t?t.sendProgressiveData(y):l.push(y),h.read().then(m,d)}catch(e){d(e)}};h.read().then(m,d)})).catch((function(e){r.reject(e),v=null})),v=function(e){o.cancelAllRequests(e)},r.promise}return E.postMessageTransfers=e.postMessageTransfers,E.on("GetPage",(function(data){return r.getPage(data.pageIndex).then((function(e){return Promise.all([r.ensure(e,"rotate"),r.ensure(e,"ref"),r.ensure(e,"userUnit"),r.ensure(e,"view")]).then((function(e){var t=I(e,4);return{rotate:t[0],ref:t[1],userUnit:t[2],view:t[3]}}))}))})),E.on("GetPageIndex",(function(data){var e=o.Ref.get(data.ref.num,data.ref.gen);return r.pdfDocument.catalog.getPageIndex(e)})),E.on("GetDestinations",(function(data){return r.ensureCatalog("destinations")})),E.on("GetDestination",(function(data){return r.ensureCatalog("getDestination",[data.id])})),E.on("GetPageLabels",(function(data){return r.ensureCatalog("pageLabels")})),E.on("GetPageLayout",(function(data){return r.ensureCatalog("pageLayout")})),E.on("GetPageMode",(function(data){return r.ensureCatalog("pageMode")})),E.on("GetViewerPreferences",(function(data){return r.ensureCatalog("viewerPreferences")})),E.on("GetOpenAction",(function(data){return r.ensureCatalog("openAction")})),E.on("GetAttachments",(function(data){return r.ensureCatalog("attachments")})),E.on("GetJavaScript",(function(data){return r.ensureCatalog("javaScript")})),E.on("GetOutline",(function(data){return r.ensureCatalog("documentOutline")})),E.on("GetPermissions",(function(data){return r.ensureCatalog("permissions")})),E.on("GetMetadata",(function(data){return Promise.all([r.ensureDoc("documentInfo"),r.ensureCatalog("metadata")])})),E.on("GetData",(function(data){return r.requestLoadedStream(),r.onLoadedStream().then((function(e){return e.bytes}))})),E.on("GetStats",(function(data){return r.pdfDocument.xref.stats})),E.on("GetAnnotations",(function(e){var t=e.pageIndex,n=e.intent;return r.getPage(t).then((function(e){return e.getAnnotationsData(n)}))})),E.on("GetOperatorList",(function(data,e){var t=data.pageIndex;r.getPage(t).then((function(r){var o=new m("GetOperatorList: page ".concat(t));L(o);var c=k>=n.VerbosityLevel.INFOS?Date.now():0;r.getOperatorList({handler:E,sink:e,task:o,intent:data.intent,renderInteractiveForms:data.renderInteractiveForms}).then((function(r){R(o),c&&(0,n.info)("page=".concat(t+1," - getOperatorList: time=")+"".concat(Date.now()-c,"ms, len=").concat(r.length)),e.close()}),(function(t){R(o),o.terminated||(E.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorOperatorList}),e.error(t))}))}))}),this),E.on("GetTextContent",(function(data,e){var t=data.pageIndex;e.onPull=function(e){},e.onCancel=function(e){},r.getPage(t).then((function(r){var o=new m("GetTextContent: page "+t);L(o);var c=k>=n.VerbosityLevel.INFOS?Date.now():0;r.extractTextContent({handler:E,task:o,sink:e,normalizeWhitespace:data.normalizeWhitespace,combineTextItems:data.combineTextItems}).then((function(){R(o),c&&(0,n.info)("page=".concat(t+1," - getTextContent: time=")+"".concat(Date.now()-c,"ms")),e.close()}),(function(t){R(o),o.terminated||e.error(t)}))}))})),E.on("FontFallback",(function(data){return r.fontFallback(data.id,E)})),E.on("Cleanup",(function(data){return r.cleanup(!0)})),E.on("Terminate",(function(data){l=!0;var e=[];if(r){r.terminate(new n.AbortException("Worker was terminated."));var t=r.cleanup();e.push(t),r=null}else(0,o.clearPrimitiveCaches)();return v&&v(new n.AbortException("Worker was terminated.")),y.forEach((function(t){e.push(t.finished),t.terminate()})),Promise.all(e).then((function(){E.destroy(),E=null}))})),E.on("Ready",(function(data){!function(data){function e(e){F(),E.send("GetDoc",{pdfInfo:e})}function t(e){if(F(),e instanceof n.PasswordException){var t=new m("PasswordException: response ".concat(e.code));L(t),E.sendWithPromise("PasswordRequest",e).then((function(e){var n=e.password;R(t),r.updatePassword(n),o()})).catch((function(){R(t),E.send("DocException",e)}))}else e instanceof n.InvalidPDFException||e instanceof n.MissingPDFException||e instanceof n.UnexpectedResponseException||e instanceof n.UnknownErrorException?E.send("DocException",e):E.send("DocException",new n.UnknownErrorException(e.message,e.toString()))}function o(){F(),M(!1).then(e,(function(n){F(),n instanceof f.XRefParseException?(r.requestLoadedStream(),r.onLoadedStream().then((function(){F(),M(!0).then(e,t)}))):t(n)}),t)}F(),D(data,{maxImageSize:data.maxImageSize,disableFontFace:data.disableFontFace,ignoreErrors:data.ignoreErrors,isEvalSupported:data.isEvalSupported,fontExtraProperties:data.fontExtraProperties}).then((function(e){if(l)throw e.terminate(new n.AbortException("Worker was terminated.")),new Error("Worker was terminated");(r=e).onLoadedStream().then((function(e){E.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(o,t)}(e),e=null})),P},initializeFromPort:function(e){var t=new h.MessageHandler("worker","main",e);y.setup(t,e),t.send("ready",null)}};t.WorkerMessageHandler=y,"undefined"==typeof window&&!l.isNodeJS&&"undefined"!=typeof self&&"function"==typeof(v=self).postMessage&&"onmessage"in v&&y.initializeFromPort(self)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=I,t.arraysToBytes=function(e){var t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];for(var r=0,i=0;i<t;i++)r+=I(e[i]);for(var n=0,data=new Uint8Array(r),o=0;o<t;o++){var c=e[o];c instanceof Uint8Array||(c="string"==typeof c?T(c):new Uint8Array(c));var l=c.byteLength;data.set(c,n),n+=l}return data},t.assert=h,t.bytesToString=function(e){h(null!==e&&"object"===R(e)&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length,r=8192;if(t<r)return String.fromCharCode.apply(null,e);for(var n=[],i=0;i<t;i+=r){var o=Math.min(i+r,t),c=e.subarray(i,o);n.push(String.fromCharCode.apply(null,c))}return n.join("")},t.createPromiseCapability=function(){var e=Object.create(null),t=!1;return Object.defineProperty(e,"settled",{get:function(){return t}}),e.promise=new Promise((function(r,n){e.resolve=function(data){t=!0,r(data)},e.reject=function(e){t=!0,n(e)}})),e},t.getVerbosityLevel=function(){return o},t.info=function(e){o>=n.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===R(e)&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){return e.length===t.length&&e.every((function(element,e){return element===t[e]}))},t.isBool=function(e){return"boolean"==typeof e},t.isEmptyObj=function(e){for(var t in e)return!1;return!0},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSameOrigin=function(e,t){var base;try{if(!(base=new URL(e)).origin||"null"===base.origin)return!1}catch(e){return!1}var r=new URL(t,base);return base.origin===r.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch(e){}return null},t.removeNullCharacters=function(e){return"string"!=typeof e?(c("The argument for removeNullCharacters must be a string."),e):e.replace(P,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(o=e)},t.shadow=shadow,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=T,t.stringToPDFString=function(e){var t=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(var i=2;i<t;i+=2)r.push(String.fromCharCode(e.charCodeAt(i)<<8|e.charCodeAt(i+1)));else if("ÿ"===e[0]&&"þ"===e[1])for(var n=2;n<t;n+=2)r.push(String.fromCharCode(e.charCodeAt(n+1)<<8|e.charCodeAt(n)));else for(var o=0;o<t;++o){var code=N[e.charCodeAt(o)];r.push(code?String.fromCharCode(code):e.charAt(o))}return r.join("")},t.stringToUTF8String=function(e){return decodeURIComponent(escape(e))},t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=c,t.unreachable=l,t.IsEvalSupportedCached=t.IsLittleEndianCached=t.createObjectURL=t.FormatError=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.MissingPDFException=t.InvalidPDFException=t.AbortException=t.CMapCompressionType=t.ImageKind=t.FontType=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.UNSUPPORTED_FEATURES=t.VerbosityLevel=t.OPS=t.IDENTITY_MATRIX=t.FONT_IDENTITY_MATRIX=t.BaseException=void 0,r(3),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.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},t.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},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.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},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.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},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var n={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=n,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.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},t.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"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var o=n.WARNINGS;function c(e){o>=n.WARNINGS&&console.log("Warning: ".concat(e))}function l(e){throw new Error(e)}function h(e,t){e||l(t)}function shadow(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}var d=function(){function e(t){this.constructor===e&&l("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=d;var f=function(e){function t(e,code){var r;return w(this,t),(r=S(this,t,[e])).code=code,r}return _(t,e),y(t)}(d);t.PasswordException=f;var m=function(e){function t(e,details){var r;return w(this,t),(r=S(this,t,[e])).details=details,r}return _(t,e),y(t)}(d);t.UnknownErrorException=m;var v=function(e){function t(){return w(this,t),S(this,t,arguments)}return _(t,e),y(t)}(d);t.InvalidPDFException=v;var k=function(e){function t(){return w(this,t),S(this,t,arguments)}return _(t,e),y(t)}(d);t.MissingPDFException=k;var A=function(e){function t(e,r){var n;return w(this,t),(n=S(this,t,[e])).status=r,n}return _(t,e),y(t)}(d);t.UnexpectedResponseException=A;var x=function(e){function t(){return w(this,t),S(this,t,arguments)}return _(t,e),y(t)}(d);t.FormatError=x;var C=function(e){function t(){return w(this,t),S(this,t,arguments)}return _(t,e),y(t)}(d);t.AbortException=C;var P=/\x00/g;function T(e){h("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),i=0;i<t;++i)r[i]=255&e.charCodeAt(i);return r}function I(e){return void 0!==e.length?e.length:(h(void 0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}var E={get value(){return shadow(this,"value",((e=new Uint8Array(4))[0]=1,1===new Uint32Array(e.buffer,0,1)[0]));var e}};t.IsLittleEndianCached=E;var F={get value(){return shadow(this,"value",function(){try{return new Function(""),!0}catch(e){return!1}}())}};t.IsEvalSupportedCached=F;var L=["rgb(",0,",",0,",",0,")"],O=function(){function e(){w(this,e)}return y(e,null,[{key:"makeCssRgb",value:function(e,g,b){return L[1]=e,L[3]=g,L[5]=b,L.join("")}},{key:"transform",value:function(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}},{key:"applyTransform",value:function(p,e){return[p[0]*e[0]+p[1]*e[2]+e[4],p[0]*e[1]+p[1]*e[3]+e[5]]}},{key:"applyInverseTransform",value:function(p,e){var t=e[0]*e[3]-e[1]*e[2];return[(p[0]*e[3]-p[1]*e[2]+e[2]*e[5]-e[4]*e[3])/t,(-p[0]*e[1]+p[1]*e[0]+e[4]*e[1]-e[5]*e[0])/t]}},{key:"getAxialAlignedBoundingBox",value:function(t,r){var n=e.applyTransform(t,r),o=e.applyTransform(t.slice(2,4),r),c=e.applyTransform([t[0],t[3]],r),l=e.applyTransform([t[2],t[1]],r);return[Math.min(n[0],o[0],c[0],l[0]),Math.min(n[1],o[1],c[1],l[1]),Math.max(n[0],o[0],c[0],l[0]),Math.max(n[1],o[1],c[1],l[1])]}},{key:"inverseTransform",value:function(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}},{key:"apply3dTransform",value:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}},{key:"singularValueDecompose2dScale",value:function(e){var t=[e[0],e[2],e[1],e[3]],a=e[0]*t[0]+e[1]*t[2],b=e[0]*t[1]+e[1]*t[3],r=e[2]*t[0]+e[3]*t[2],n=e[2]*t[1]+e[3]*t[3],o=(a+n)/2,c=Math.sqrt((a+n)*(a+n)-4*(a*n-r*b))/2,l=o+c||1,h=o-c||1;return[Math.sqrt(l),Math.sqrt(h)]}},{key:"normalizeRect",value:function(rect){var e=rect.slice(0);return rect[0]>rect[2]&&(e[0]=rect[2],e[2]=rect[0]),rect[1]>rect[3]&&(e[1]=rect[3],e[3]=rect[1]),e}},{key:"intersect",value:function(t,r){function n(a,b){return a-b}var o=[t[0],t[2],r[0],r[2]].sort(n),c=[t[1],t[3],r[1],r[3]].sort(n),l=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),o[0]===t[0]&&o[1]===r[0]||o[0]===r[0]&&o[1]===t[0]?(l[0]=o[1],l[2]=o[2],c[0]===t[1]&&c[1]===r[1]||c[0]===r[1]&&c[1]===t[1]?(l[1]=c[1],l[3]=c[2],l):null):null}}])}();t.Util=O;var M,N=[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],D=(M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",function(data,e){if(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var t=new Blob([data],{type:e});return URL.createObjectURL(t)}for(var r="data:".concat(e,";base64,"),i=0,n=data.length;i<n;i+=3){var o=255&data[i],c=255&data[i+1],l=255&data[i+2];r+=M[o>>2]+M[(3&o)<<4|c>>4]+M[i+1<n?(15&c)<<2|l>>6:64]+M[i+2<n?63&l:64]}return r});t.createObjectURL=D},function(e,t,r){"use strict";r(4)},function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isNodeJS=void 0;var o="object"===(void 0===e?"undefined":R(e))&&e+""=="[object process]"&&!e.versions.nw&&!e.versions.electron;r.isNodeJS=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearPrimitiveCaches=function(){c._clearCache(),o._clearCache(),h._clearCache()},t.isEOF=function(e){return e===n},t.isCmd=function(e,t){return e instanceof c&&(void 0===t||e.cmd===t)},t.isDict=v,t.isName=m,t.isRef=function(e){return e instanceof h},t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen},t.isStream=function(e){return"object"===R(e)&&null!==e&&void 0!==e.getBytes},t.RefSetCache=t.RefSet=t.Ref=t.Name=t.Dict=t.Cmd=t.EOF=void 0,r(2);var n={};t.EOF=n;var o=function(){var e=Object.create(null);function t(e){this.name=e}return t.prototype={},t.get=function(r){var n=e[r];return n||(e[r]=new t(r))},t._clearCache=function(){e=Object.create(null)},t}();t.Name=o;var c=function(){var e=Object.create(null);function t(e){this.cmd=e}return t.prototype={},t.get=function(r){var n=e[r];return n||(e[r]=new t(r))},t._clearCache=function(){e=Object.create(null)},t}();t.Cmd=c;var l=function(){var e=function(){return e};function t(t){this._map=Object.create(null),this.xref=t,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=e}return t.prototype={assignXref:function(e){this.xref=e},get:function(e,t,r){var n=this._map[e];return void 0===n&&void 0!==t&&void 0===(n=this._map[t])&&void 0!==r&&(n=this._map[r]),n instanceof h&&this.xref?this.xref.fetch(n,this.suppressEncryption):n},getAsync:function(e,t,r){var n=this;return O(T().mark((function o(){var c;return T().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(void 0===(c=n._map[e])&&void 0!==t&&void 0===(c=n._map[t])&&void 0!==r&&(c=n._map[r]),!(c instanceof h&&n.xref)){o.next=4;break}return o.abrupt("return",n.xref.fetchAsync(c,n.suppressEncryption));case 4:return o.abrupt("return",c);case 5:case"end":return o.stop()}}),o)})))()},getArray:function(e,t,r){var n=this.get(e,t,r);if(!Array.isArray(n)||!this.xref)return n;for(var i=0,o=(n=n.slice()).length;i<o;i++)n[i]instanceof h&&(n[i]=this.xref.fetch(n[i],this.suppressEncryption));return n},getRaw:function(e){return this._map[e]},getKeys:function(){return Object.keys(this._map)},set:function(e,t){this._map[e]=t},has:function(e){return void 0!==this._map[e]},forEach:function(e){for(var t in this._map)e(t,this.get(t))}},t.empty=new t(null),t.merge=function(e,r){for(var n=new t(e),i=0,o=r.length;i<o;i++){var c=r[i];if(v(c))for(var l in c._map)void 0===n._map[l]&&(n._map[l]=c._map[l])}return n},t}();t.Dict=l;var h=function(){var e=Object.create(null);function t(e,t){this.num=e,this.gen=t}return t.prototype={toString:function(){return 0===this.gen?"".concat(this.num,"R"):"".concat(this.num,"R").concat(this.gen)}},t.get=function(r,n){var o=0===n?"".concat(r,"R"):"".concat(r,"R").concat(n),c=e[o];return c||(e[o]=new t(r,n))},t._clearCache=function(){e=Object.create(null)},t}();t.Ref=h;var d=function(){function e(){this.dict=Object.create(null)}return e.prototype={has:function(e){return e.toString()in this.dict},put:function(e){this.dict[e.toString()]=!0},remove:function(e){delete this.dict[e.toString()]}},e}();t.RefSet=d;var f=function(){function e(){this.dict=Object.create(null)}return e.prototype={get size(){return Object.keys(this.dict).length},get:function(e){return this.dict[e.toString()]},has:function(e){return e.toString()in this.dict},put:function(e,t){this.dict[e.toString()]=t},putAlias:function(e,t){this.dict[e.toString()]=this.get(t)},forEach:function(e){for(var i in this.dict)e(this.dict[i])},clear:function(){this.dict=Object.create(null)}},e}();function m(e,t){return e instanceof o&&(void 0===t||e.name===t)}function v(e,t){return e instanceof l&&(void 0===t||m(e.get("Type"),t))}t.RefSetCache=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var n=r(2),o=r(7),c=r(8),l=r(9),h=r(12),d=function(){return y((function e(){w(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize BasePdfManager.")}),[{key:"docId",get:function(){return this._docId}},{key:"password",get:function(){return this._password}},{key:"docBaseUrl",get:function(){var e=null;if(this._docBaseUrl){var t=(0,n.createValidAbsoluteUrl)(this._docBaseUrl);t?e=t.href:(0,n.warn)('Invalid absolute docBaseUrl: "'.concat(this._docBaseUrl,'".'))}return(0,n.shadow)(this,"docBaseUrl",e)}},{key:"onLoadedStream",value:function(){(0,n.unreachable)("Abstract method `onLoadedStream` called")}},{key:"ensureDoc",value:function(e,t){return this.ensure(this.pdfDocument,e,t)}},{key:"ensureXRef",value:function(e,t){return this.ensure(this.pdfDocument.xref,e,t)}},{key:"ensureCatalog",value:function(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}},{key:"getPage",value:function(e){return this.pdfDocument.getPage(e)}},{key:"fontFallback",value:function(e,t){return this.pdfDocument.fontFallback(e,t)}},{key:"cleanup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pdfDocument.cleanup(e)}},{key:"ensure",value:(e=O(T().mark((function e(t,r,o){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,n.unreachable)("Abstract method `ensure` called");case 1:case"end":return e.stop()}}),e)}))),function(t,r,n){return e.apply(this,arguments)})},{key:"requestRange",value:function(e,t){(0,n.unreachable)("Abstract method `requestRange` called")}},{key:"requestLoadedStream",value:function(){(0,n.unreachable)("Abstract method `requestLoadedStream` called")}},{key:"sendProgressiveData",value:function(e){(0,n.unreachable)("Abstract method `sendProgressiveData` called")}},{key:"updatePassword",value:function(e){this._password=e}},{key:"terminate",value:function(e){(0,n.unreachable)("Abstract method `terminate` called")}}]);var e}(),f=function(e){function t(e,data,r,n,o){var c;w(this,t),(c=S(this,t))._docId=e,c._password=r,c._docBaseUrl=o,c.evaluatorOptions=n;var d=new h.Stream(data);return c.pdfDocument=new l.PDFDocument(c,d),c._loadedStreamPromise=Promise.resolve(d),c}return _(t,e),y(t,[{key:"ensure",value:(r=O(T().mark((function e(t,r,n){var o;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof(o=t[r])){e.next=3;break}return e.abrupt("return",o.apply(t,n));case 3:return e.abrupt("return",o);case 4:case"end":return e.stop()}}),e)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"requestRange",value:function(e,t){return Promise.resolve()}},{key:"requestLoadedStream",value:function(){}},{key:"onLoadedStream",value:function(){return this._loadedStreamPromise}},{key:"terminate",value:function(e){}}]);var r}(d);t.LocalPdfManager=f;var m=function(e){function t(e,r,n,c,h){var d;return w(this,t),(d=S(this,t))._docId=e,d._password=n.password,d._docBaseUrl=h,d.msgHandler=n.msgHandler,d.evaluatorOptions=c,d.streamManager=new o.ChunkedStreamManager(r,{msgHandler:n.msgHandler,length:n.length,disableAutoFetch:n.disableAutoFetch,rangeChunkSize:n.rangeChunkSize}),d.pdfDocument=new l.PDFDocument(d,d.streamManager.getStream()),d}return _(t,e),y(t,[{key:"ensure",value:(r=O(T().mark((function e(t,r,n){var o;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"function"!=typeof(o=t[r])){e.next=4;break}return e.abrupt("return",o.apply(t,n));case 4:return e.abrupt("return",o);case 7:if(e.prev=7,e.t0=e.catch(0),e.t0 instanceof c.MissingDataException){e.next=11;break}throw e.t0;case 11:return e.next=13,this.requestRange(e.t0.begin,e.t0.end);case 13:return e.abrupt("return",this.ensure(t,r,n));case 14:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e,t,n){return r.apply(this,arguments)})},{key:"requestRange",value:function(e,t){return this.streamManager.requestRange(e,t)}},{key:"requestLoadedStream",value:function(){this.streamManager.requestAllChunks()}},{key:"sendProgressiveData",value:function(e){this.streamManager.onReceiveData({chunk:e})}},{key:"onLoadedStream",value:function(){return this.streamManager.onLoadedStream()}},{key:"terminate",value:function(e){this.streamManager.abort(e)}}]);var r}(d);t.NetworkPdfManager=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var n=r(2),o=r(8),c=function(){return y((function e(t,r,n){w(this,e),this.bytes=new Uint8Array(t),this.start=0,this.pos=0,this.end=t,this.chunkSize=r,this.loadedChunks=[],this.numChunksLoaded=0,this.numChunks=Math.ceil(t/r),this.manager=n,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}),[{key:"getMissingChunks",value:function(){for(var e=[],t=0,r=this.numChunks;t<r;++t)this.loadedChunks[t]||e.push(t);return e}},{key:"getBaseStreams",value:function(){return[this]}},{key:"allChunksLoaded",value:function(){return this.numChunksLoaded===this.numChunks}},{key:"onReceiveData",value:function(e,t){var r=this.chunkSize;if(e%r!=0)throw new Error("Bad begin offset: ".concat(e));var n=e+t.byteLength;if(n%r!=0&&n!==this.bytes.length)throw new Error("Bad end offset: ".concat(n));this.bytes.set(new Uint8Array(t),e);for(var o=Math.floor(e/r),c=Math.floor((n-1)/r)+1,l=o;l<c;++l)this.loadedChunks[l]||(this.loadedChunks[l]=!0,++this.numChunksLoaded)}},{key:"onReceiveProgressiveData",value:function(data){var e=this.progressiveDataLength,t=Math.floor(e/this.chunkSize);this.bytes.set(new Uint8Array(data),e),e+=data.byteLength,this.progressiveDataLength=e;for(var r=e>=this.end?this.numChunks:Math.floor(e/this.chunkSize),n=t;n<r;++n)this.loadedChunks[n]||(this.loadedChunks[n]=!0,++this.numChunksLoaded)}},{key:"ensureByte",value:function(e){if(!(e<this.progressiveDataLength)){var t=Math.floor(e/this.chunkSize);if(t!==this.lastSuccessfulEnsureByteChunk){if(!this.loadedChunks[t])throw new o.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}}},{key:"ensureRange",value:function(e,t){if(!(e>=t||t<=this.progressiveDataLength))for(var r=this.chunkSize,n=Math.floor(e/r),c=Math.floor((t-1)/r)+1,l=n;l<c;++l)if(!this.loadedChunks[l])throw new o.MissingDataException(e,t)}},{key:"nextEmptyChunk",value:function(e){for(var t=this.numChunks,i=0;i<t;++i){var r=(e+i)%t;if(!this.loadedChunks[r])return r}return null}},{key:"hasChunk",value:function(e){return!!this.loadedChunks[e]}},{key:"length",get:function(){return this.end-this.start}},{key:"isEmpty",get:function(){return 0===this.length}},{key:"getByte",value:function(){var e=this.pos;return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}},{key:"getUint16",value:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}},{key:"getInt32",value:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}},{key:"getBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.bytes,n=this.pos,o=this.end;if(!e){o>this.progressiveDataLength&&this.ensureRange(n,o);var c=r.subarray(n,o);return t?new Uint8ClampedArray(c):c}var l=n+e;l>o&&(l=o),l>this.progressiveDataLength&&this.ensureRange(n,l),this.pos=l;var h=r.subarray(n,l);return t?new Uint8ClampedArray(h):h}},{key:"peekByte",value:function(){var e=this.getByte();return-1!==e&&this.pos--,e}},{key:"peekBytes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBytes(e,t);return this.pos-=r.length,r}},{key:"getByteRange",value:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),t>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}},{key:"skip",value:function(e){e||(e=1),this.pos+=e}},{key:"reset",value:function(){this.pos=this.start}},{key:"moveStart",value:function(){this.start=this.pos}},{key:"makeSubStream",value:function(e,t,r){function n(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),n.prototype=Object.create(this),n.prototype.getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,n=[],o=t;o<r;++o)this.loadedChunks[o]||n.push(o);return n},n.prototype.allChunksLoaded=function(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length};var o=new n;return o.pos=o.start=e,o.end=e+t||this.end,o.dict=r,o}}])}();t.ChunkedStream=c;var l=function(){return y((function e(t,r){w(this,e),this.length=r.length,this.chunkSize=r.rangeChunkSize,this.stream=new c(this.length,this.chunkSize,this),this.pdfNetworkStream=t,this.disableAutoFetch=r.disableAutoFetch,this.msgHandler=r.msgHandler,this.currRequestId=0,this.chunksNeededByRequest=Object.create(null),this.requestsByChunk=Object.create(null),this.promisesByRequest=Object.create(null),this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=(0,n.createPromiseCapability)()}),[{key:"onLoadedStream",value:function(){return this._loadedStreamCapability.promise}},{key:"sendRequest",value:function(e,t){var r=this,o=this.pdfNetworkStream.getRangeReader(e,t);o.isStreamingSupported||(o.onProgress=this.onProgress.bind(this));var c=[],l=0;new Promise((function(e,t){var h=function(d){try{if(!d.done){var data=d.value;return c.push(data),l+=(0,n.arrayByteLength)(data),o.isStreamingSupported&&r.onProgress({loaded:l}),void o.read().then(h,t)}var f=(0,n.arraysToBytes)(c);c=null,e(f)}catch(e){t(e)}};o.read().then(h,t)})).then((function(data){r.aborted||r.onReceiveData({chunk:data,begin:e})}))}},{key:"requestAllChunks",value:function(){var e=this.stream.getMissingChunks();return this._requestChunks(e),this._loadedStreamCapability.promise}},{key:"_requestChunks",value:function(e){var t=this.currRequestId++,r=Object.create(null);this.chunksNeededByRequest[t]=r;var o,c=m(e);try{for(c.s();!(o=c.n()).done;){var l=o.value;this.stream.hasChunk(l)||(r[l]=!0)}}catch(e){c.e(e)}finally{c.f()}if((0,n.isEmptyObj)(r))return Promise.resolve();var h=(0,n.createPromiseCapability)();this.promisesByRequest[t]=h;var d=[];for(var f in r)(f|=0)in this.requestsByChunk||(this.requestsByChunk[f]=[],d.push(f)),this.requestsByChunk[f].push(t);if(!d.length)return h.promise;var v,y=m(this.groupChunks(d));try{for(y.s();!(v=y.n()).done;){var k=v.value,w=k.beginChunk*this.chunkSize,S=Math.min(k.endChunk*this.chunkSize,this.length);this.sendRequest(w,S)}}catch(e){y.e(e)}finally{y.f()}return h.promise}},{key:"getStream",value:function(){return this.stream}},{key:"requestRange",value:function(e,t){t=Math.min(t,this.length);for(var r=this.getBeginChunk(e),n=this.getEndChunk(t),o=[],c=r;c<n;++c)o.push(c);return this._requestChunks(o)}},{key:"requestRanges",value:function(){var e,t=[],r=m(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);try{for(r.s();!(e=r.n()).done;)for(var n=e.value,o=this.getBeginChunk(n.begin),c=this.getEndChunk(n.end),l=o;l<c;++l)t.includes(l)||t.push(l)}catch(e){r.e(e)}finally{r.f()}return t.sort((function(a,b){return a-b})),this._requestChunks(t)}},{key:"groupChunks",value:function(e){for(var t=[],r=-1,n=-1,i=0,o=e.length;i<o;++i){var c=e[i];r<0&&(r=c),n>=0&&n+1!==c&&(t.push({beginChunk:r,endChunk:n+1}),r=c),i+1===e.length&&t.push({beginChunk:r,endChunk:c+1}),n=c}return t}},{key:"onProgress",value:function(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}},{key:"onReceiveData",value:function(e){var t=e.chunk,r=void 0===e.begin,o=r?this.progressiveDataLength:e.begin,c=o+t.byteLength,l=Math.floor(o/this.chunkSize),h=c<this.length?Math.floor(c/this.chunkSize):Math.ceil(c/this.chunkSize);r?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=c):this.stream.onReceiveData(o,t),this.stream.allChunksLoaded()&&this._loadedStreamCapability.resolve(this.stream);for(var d=[],f=l;f<h;++f){var v=this.requestsByChunk[f]||[];delete this.requestsByChunk[f];var y,k=m(v);try{for(k.s();!(y=k.n()).done;){var w=y.value,S=this.chunksNeededByRequest[w];f in S&&delete S[f],(0,n.isEmptyObj)(S)&&d.push(w)}}catch(e){k.e(e)}finally{k.f()}}if(!this.disableAutoFetch&&(0,n.isEmptyObj)(this.requestsByChunk)){var A;if(1===this.stream.numChunksLoaded){var x=this.stream.numChunks-1;this.stream.hasChunk(x)||(A=x)}else A=this.stream.nextEmptyChunk(h);Number.isInteger(A)&&this._requestChunks([A])}for(var C=0,_=d;C<_.length;C++){var P=_[C],T=this.promisesByRequest[P];delete this.promisesByRequest[P],T.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}},{key:"onError",value:function(e){this._loadedStreamCapability.reject(e)}},{key:"getBeginChunk",value:function(e){return Math.floor(e/this.chunkSize)}},{key:"getEndChunk",value:function(e){return Math.floor((e-1)/this.chunkSize)+1}},{key:"abort",value:function(e){for(var t in this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(e),this.promisesByRequest)this.promisesByRequest[t].reject(e)}}])}();t.ChunkedStreamManager=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLookupTableFactory=function(e){var t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}},t.getInheritableProperty=function(e){for(var t,r=e.dict,o=e.key,c=e.getArray,l=void 0!==c&&c,h=e.stopWhenFound,d=void 0===h||h,f=0;r;){var m=l?r.getArray(o):r.get(o);if(void 0!==m){if(d)return m;t||(t=[]),t.push(m)}if(++f>100){(0,n.warn)('getInheritableProperty: maximum loop count exceeded for "'.concat(o,'"'));break}r=r.get("Parent")}return t},t.toRomanNumerals=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,n.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");for(var r,o=[];e>=1e3;)e-=1e3,o.push("M");r=e/100|0,e%=100,o.push(h[r]),r=e/10|0,e%=10,o.push(h[10+r]),o.push(h[20+e]);var c=o.join("");return t?c.toLowerCase():c},t.log2=function(e){return e<=0?0:Math.ceil(Math.log2(e))},t.readInt8=function(data,e){return data[e]<<24>>24},t.readUint16=function(data,e){return data[e]<<8|data[e+1]},t.readUint32=function(data,e){return(data[e]<<24|data[e+1]<<16|data[e+2]<<8|data[e+3])>>>0},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.XRefParseException=t.XRefEntryException=t.MissingDataException=void 0;var n=r(2),o=function(e){function t(e,r){var n;return w(this,t),(n=S(this,t,["Missing data [".concat(e,", ").concat(r,")")])).begin=e,n.end=r,n}return _(t,e),y(t)}(n.BaseException);t.MissingDataException=o;var c=function(e){function t(){return w(this,t),S(this,t,arguments)}return _(t,e),y(t)}(n.BaseException);t.XRefEntryException=c;var l=function(e){function t(){return w(this,t),S(this,t,arguments)}return _(t,e),y(t)}(n.BaseException);t.XRefParseException=l;var h=["","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(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDocument=t.Page=void 0;var n=r(2),o=r(10),c=r(5),l=r(8),h=r(12),d=r(25),f=r(22),v=r(11),k=r(26),S=r(27),A=r(41),x=[0,0,612,792];function C(e,t){return"display"===t&&e.viewable||"print"===t&&e.printable}var _=function(){return y((function e(t){var r=t.pdfManager,n=t.xref,o=t.pageIndex,c=t.pageDict,l=t.ref,h=t.fontCache,d=t.builtInCMapCache,f=t.globalImageCache,m=t.pdfFunctionFactory;w(this,e),this.pdfManager=r,this.pageIndex=o,this.pageDict=c,this.xref=n,this.ref=l,this.fontCache=h,this.builtInCMapCache=d,this.globalImageCache=f,this.pdfFunctionFactory=m,this.evaluatorOptions=r.evaluatorOptions,this.resourcesPromise=null;var v={obj:0};this.idFactory={createObjId:function(){return"p".concat(o,"_").concat(++v.obj)},getDocId:function(){return"g_".concat(r.docId)}}}),[{key:"_getInheritableProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,l.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(r)?1!==r.length&&(0,c.isDict)(r[0])?c.Dict.merge(this.xref,r):r[0]:r}},{key:"content",get:function(){return this.pageDict.get("Contents")}},{key:"resources",get:function(){return(0,n.shadow)(this,"resources",this._getInheritableProperty("Resources")||c.Dict.empty)}},{key:"_getBoundingBox",value:function(e){var t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(t[2]-t[0]!=0&&t[3]-t[1]!=0)return t;(0,n.warn)("Empty /".concat(e," entry."))}return null}},{key:"mediaBox",get:function(){return(0,n.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||x)}},{key:"cropBox",get:function(){return(0,n.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}},{key:"userUnit",get:function(){var e=this.pageDict.get("UserUnit");return(!(0,n.isNum)(e)||e<=0)&&(e=1),(0,n.shadow)(this,"userUnit",e)}},{key:"view",get:function(){var view,e=this.cropBox,t=this.mediaBox;if(e===t||(0,n.isArrayEqual)(e,t))view=t;else{var r=n.Util.intersect(e,t);r&&r[2]-r[0]!=0&&r[3]-r[1]!=0?view=r:(0,n.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,n.shadow)(this,"view",view||t)}},{key:"rotate",get:function(){var e=this._getInheritableProperty("Rotate")||0;return e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360),(0,n.shadow)(this,"rotate",e)}},{key:"getContentStream",value:function(){var e,content=this.content;if(Array.isArray(content)){var t,r=this.xref,n=[],o=m(content);try{for(o.s();!(t=o.n()).done;){var l=t.value;n.push(r.fetchIfRef(l))}}catch(e){o.e(e)}finally{o.f()}e=new h.StreamsSequenceStream(n)}else e=(0,c.isStream)(content)?content:new h.NullStream;return e}},{key:"loadResources",value:function(e){var t=this;return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then((function(){return new o.ObjectLoader(t.resources,e,t.xref).load()}))}},{key:"getOperatorList",value:function(e){var t=this,r=e.handler,o=e.sink,c=e.task,l=e.intent,h=e.renderInteractiveForms,d=this.pdfManager.ensure(this,"getContentStream"),f=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),v=new S.PartialEvaluator({xref:this.xref,handler:r,pageIndex:this.pageIndex,idFactory:this.idFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions,pdfFunctionFactory:this.pdfFunctionFactory}),y=Promise.all([d,f]).then((function(e){var n=I(e,1)[0],h=new k.OperatorList(l,o,t.pageIndex);return r.send("StartRenderPage",{transparency:v.hasBlendModes(t.resources),pageIndex:t.pageIndex,intent:l}),v.getOperatorList({stream:n,task:c,resources:t.resources,operatorList:h}).then((function(){return h}))}));return Promise.all([y,this._parsedAnnotations]).then((function(e){var t=I(e,2),r=t[0],o=t[1];if(0===o.length)return r.flush(!0),{length:r.totalLength};var d,f=[],y=m(o);try{for(y.s();!(d=y.n()).done;){var k=d.value;C(k,l)&&f.push(k.getOperatorList(v,c,h).catch((function(e){return(0,n.warn)("getOperatorList - ignoring annotation data during "+'"'.concat(c.name,'" task: "').concat(e,'".')),null})))}}catch(e){y.e(e)}finally{y.f()}return Promise.all(f).then((function(e){r.addOp(n.OPS.beginAnnotations,[]);var t,o=m(e);try{for(o.s();!(t=o.n()).done;){var c=t.value;r.addOpList(c)}}catch(e){o.e(e)}finally{o.f()}return r.addOp(n.OPS.endAnnotations,[]),r.flush(!0),{length:r.totalLength}}))}))}},{key:"extractTextContent",value:function(e){var t=this,r=e.handler,n=e.task,o=e.normalizeWhitespace,c=e.sink,l=e.combineTextItems,h=this.pdfManager.ensure(this,"getContentStream"),d=this.loadResources(["ExtGState","XObject","Font"]);return Promise.all([h,d]).then((function(e){var h=I(e,1)[0];return new S.PartialEvaluator({xref:t.xref,handler:r,pageIndex:t.pageIndex,idFactory:t.idFactory,fontCache:t.fontCache,builtInCMapCache:t.builtInCMapCache,globalImageCache:t.globalImageCache,options:t.evaluatorOptions,pdfFunctionFactory:t.pdfFunctionFactory}).getTextContent({stream:h,task:n,resources:t.resources,normalizeWhitespace:o,combineTextItems:l,sink:c})}))}},{key:"getAnnotationsData",value:function(e){return this._parsedAnnotations.then((function(t){for(var r=[],i=0,n=t.length;i<n;i++)e&&!C(t[i],e)||r.push(t[i].data);return r}))}},{key:"annotations",get:function(){return(0,n.shadow)(this,"annotations",this._getInheritableProperty("Annots")||[])}},{key:"_parsedAnnotations",get:function(){var e=this,t=this.pdfManager.ensure(this,"annotations").then((function(){var t,r=[],o=m(e.annotations);try{for(o.s();!(t=o.n()).done;){var c=t.value;r.push(d.AnnotationFactory.create(e.xref,c,e.pdfManager,e.idFactory).catch((function(e){return(0,n.warn)('_parsedAnnotations: "'.concat(e,'".')),null})))}}catch(e){o.e(e)}finally{o.f()}return Promise.all(r).then((function(e){return e.filter((function(e){return!!e}))}))}));return(0,n.shadow)(this,"_parsedAnnotations",t)}}])}();t.Page=_;var P=new Uint8Array([37,80,68,70,45]),E=new Uint8Array([115,116,97,114,116,120,114,101,102]),F=new Uint8Array([101,110,100,111,98,106]),L=/^[1-9]\.[0-9]$/;function R(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1024,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t.length,c=e.peekBytes(r),l=c.length-o;if(l<=0)return!1;if(n)for(var h=o-1,d=c.length-1;d>=h;){for(var f=0;f<o&&c[d-f]===t[h-f];)f++;if(f>=o)return e.pos+=d-h,!0;d--}else for(var m=0;m<=l;){for(var v=0;v<o&&c[m+v]===t[v];)v++;if(v>=o)return e.pos+=m,!0;m++}return!1}var M=function(){return y((function e(t,r){var l;if(w(this,e),(0,c.isStream)(r))l=r;else{if(!(0,n.isArrayBuffer)(r))throw new Error("PDFDocument: Unknown argument type");l=new h.Stream(r)}if(l.length<=0)throw new n.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=t,this.stream=l,this.xref=new o.XRef(l,t),this.pdfFunctionFactory=new A.PDFFunctionFactory({xref:this.xref,isEvalSupported:t.evaluatorOptions.isEvalSupported}),this._pagePromises=[]}),[{key:"parse",value:function(e){this.setup(e);var t=this.catalog.catDict.get("Version");(0,c.isName)(t)&&(this.pdfFormatVersion=t.name);try{if(this.acroForm=this.catalog.catDict.get("AcroForm"),this.acroForm){this.xfa=this.acroForm.get("XFA");var r=this.acroForm.get("Fields");Array.isArray(r)&&0!==r.length||this.xfa||(this.acroForm=null)}}catch(e){if(e instanceof l.MissingDataException)throw e;(0,n.info)("Cannot fetch AcroForm entry; assuming no AcroForms are present"),this.acroForm=null}try{var o=this.catalog.catDict.get("Collection");(0,c.isDict)(o)&&o.getKeys().length>0&&(this.collection=o)}catch(e){if(e instanceof l.MissingDataException)throw e;(0,n.info)("Cannot fetch Collection dictionary.")}}},{key:"linearization",get:function(){var e=null;try{e=v.Linearization.create(this.stream)}catch(e){if(e instanceof l.MissingDataException)throw e;(0,n.info)(e)}return(0,n.shadow)(this,"linearization",e)}},{key:"startXRef",get:function(){var e=this.stream,t=0;if(this.linearization)e.reset(),R(e,F)&&(t=e.pos+6-e.start);else{for(var r=E.length,o=!1,c=e.end;!o&&c>0;)(c-=1024-r)<0&&(c=0),e.pos=c,o=R(e,E,1024,!0);if(o){var h;e.skip(9);do{h=e.getByte()}while((0,l.isWhiteSpace)(h));for(var d="";h>=32&&h<=57;)d+=String.fromCharCode(h),h=e.getByte();t=parseInt(d,10),isNaN(t)&&(t=0)}}return(0,n.shadow)(this,"startXRef",t)}},{key:"checkHeader",value:function(){var e=this.stream;if(e.reset(),R(e,P)){e.moveStart();for(var t,r="";(t=e.getByte())>32&&!(r.length>=12);)r+=String.fromCharCode(t);this.pdfFormatVersion||(this.pdfFormatVersion=r.substring(5))}}},{key:"parseStartXRef",value:function(){this.xref.setStartXRef(this.startXRef)}},{key:"setup",value:function(e){this.xref.parse(e),this.catalog=new o.Catalog(this.pdfManager,this.xref)}},{key:"numPages",get:function(){var e=this.linearization,t=e?e.numPages:this.catalog.numPages;return(0,n.shadow)(this,"numPages",t)}},{key:"documentInfo",get:function(){var e={Title:n.isString,Author:n.isString,Subject:n.isString,Keywords:n.isString,Creator:n.isString,Producer:n.isString,CreationDate:n.isString,ModDate:n.isString,Trapped:c.isName},t=this.pdfFormatVersion;"string"==typeof t&&L.test(t)||((0,n.warn)("Invalid PDF header version number: ".concat(t)),t=null);var r,o={PDFFormatVersion:t,IsLinearized:!!this.linearization,IsAcroFormPresent:!!this.acroForm,IsXFAPresent:!!this.xfa,IsCollectionPresent:!!this.collection};try{r=this.xref.trailer.get("Info")}catch(e){if(e instanceof l.MissingDataException)throw e;(0,n.info)("The document information dictionary is invalid.")}if((0,c.isDict)(r)){var h,d=m(r.getKeys());try{for(d.s();!(h=d.n()).done;){var f=h.value,v=r.get(f);if(e[f])e[f](v)?o[f]="string"!=typeof v?v:(0,n.stringToPDFString)(v):(0,n.info)('Bad value in document info for "'.concat(f,'".'));else if("string"==typeof f){var y=void 0;if((0,n.isString)(v))y=(0,n.stringToPDFString)(v);else{if(!((0,c.isName)(v)||(0,n.isNum)(v)||(0,n.isBool)(v))){(0,n.info)('Unsupported value in document info for (custom) "'.concat(f,'".'));continue}y=v}o.Custom||(o.Custom=Object.create(null)),o.Custom[f]=y}}}catch(e){d.e(e)}finally{d.f()}}return(0,n.shadow)(this,"documentInfo",o)}},{key:"fingerprint",get:function(){for(var e,t=this.xref.trailer.get("ID"),r=[],i=0,o=(e=Array.isArray(t)&&t[0]&&(0,n.isString)(t[0])&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==t[0]?(0,n.stringToBytes)(t[0]):(0,f.calculateMD5)(this.stream.getByteRange(0,1024),0,1024)).length;i<o;i++){var c=e[i].toString(16);r.push(c.padStart(2,"0"))}return(0,n.shadow)(this,"fingerprint",r.join(""))}},{key:"_getLinearizationPage",value:function(e){var t=this.catalog,r=this.linearization,o=c.Ref.get(r.objectNumberFirst,0);return this.xref.fetchAsync(o).then((function(e){if((0,c.isDict)(e,"Page")||(0,c.isDict)(e)&&!e.has("Type")&&e.has("Contents"))return o&&!t.pageKidsCountCache.has(o)&&t.pageKidsCountCache.put(o,1),[e,o];throw new n.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")})).catch((function(r){return(0,n.info)(r),t.getPageDict(e)}))}},{key:"getPage",value:function(e){var t=this;if(void 0!==this._pagePromises[e])return this._pagePromises[e];var r=this.catalog,n=this.linearization,o=n&&n.pageFirst===e?this._getLinearizationPage(e):r.getPageDict(e);return this._pagePromises[e]=o.then((function(n){var o=I(n,2),c=o[0],l=o[1];return new _({pdfManager:t.pdfManager,xref:t.xref,pageIndex:e,pageDict:c,ref:l,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,globalImageCache:r.globalImageCache,pdfFunctionFactory:t.pdfFunctionFactory})}))}},{key:"checkFirstPage",value:function(){var e=this;return this.getPage(0).catch(function(){var t=O(T().mark((function t(r){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r instanceof l.XRefEntryException)){t.next=5;break}return e._pagePromises.length=0,t.next=4,e.cleanup();case 4:throw new l.XRefParseException;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"fontFallback",value:function(e,t){return this.catalog.fontFallback(e,t)}},{key:"cleanup",value:(e=O(T().mark((function e(){var t,r=arguments;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]&&r[0],e.abrupt("return",this.catalog?this.catalog.cleanup(t):(0,c.clearPrimitiveCaches)());case 2:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e}();t.PDFDocument=M},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=t.XRef=t.ObjectLoader=t.Catalog=void 0;var n=r(2),o=r(5),c=r(11),l=r(8),h=r(22),d=r(23),f=r(24);function v(e){return(0,o.isDict)(e)?e.get("D"):e}var k=function(){function e(t,r){if(w(this,e),this.pdfManager=t,this.xref=r,this.catDict=r.getCatalogObj(),!(0,o.isDict)(this.catDict))throw new n.FormatError("Catalog object is not a dictionary.");this.fontCache=new o.RefSetCache,this.builtInCMapCache=new Map,this.globalImageCache=new f.GlobalImageCache,this.pageKidsCountCache=new o.RefSetCache}return y(e,[{key:"metadata",get:function(){var e=this.catDict.getRaw("Metadata");if(!(0,o.isRef)(e))return(0,n.shadow)(this,"metadata",null);var t,r=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),c=this.xref.fetch(e,r);if(c&&(0,o.isDict)(c.dict)){var h=c.dict.get("Type"),d=c.dict.get("Subtype");if((0,o.isName)(h,"Metadata")&&(0,o.isName)(d,"XML"))try{t=(0,n.stringToUTF8String)((0,n.bytesToString)(c.getBytes()))}catch(e){if(e instanceof l.MissingDataException)throw e;(0,n.info)("Skipping invalid metadata.")}}return(0,n.shadow)(this,"metadata",t)}},{key:"toplevelPagesDict",get:function(){var e=this.catDict.get("Pages");if(!(0,o.isDict)(e))throw new n.FormatError("Invalid top-level pages dictionary.");return(0,n.shadow)(this,"toplevelPagesDict",e)}},{key:"documentOutline",get:function(){var e=null;try{e=this._readDocumentOutline()}catch(e){if(e instanceof l.MissingDataException)throw e;(0,n.warn)("Unable to read document outline.")}return(0,n.shadow)(this,"documentOutline",e)}},{key:"_readDocumentOutline",value:function(){var t=this.catDict.get("Outlines");if(!(0,o.isDict)(t))return null;if(t=t.getRaw("First"),!(0,o.isRef)(t))return null;var r={items:[]},c=[{obj:t,parent:r}],l=new o.RefSet;l.put(t);for(var h=this.xref,f=new Uint8ClampedArray(3);c.length>0;){var i=c.shift(),m=h.fetchIfRef(i.obj);if(null!==m){if(!m.has("Title"))throw new n.FormatError("Invalid outline item encountered.");var data={url:null,dest:null};e.parseDestDictionary({destDict:m,resultObj:data,docBaseUrl:this.pdfManager.docBaseUrl});var title=m.get("Title"),v=m.get("F")||0,y=m.getArray("C"),k=m.get("Count"),w=f;!Array.isArray(y)||3!==y.length||0===y[0]&&0===y[1]&&0===y[2]||(w=d.ColorSpace.singletons.rgb.getRgb(y,0));var S={dest:data.dest,url:data.url,unsafeUrl:data.unsafeUrl,newWindow:data.newWindow,title:(0,n.stringToPDFString)(title),color:w,count:Number.isInteger(k)?k:void 0,bold:!!(2&v),italic:!!(1&v),items:[]};i.parent.items.push(S),t=m.getRaw("First"),(0,o.isRef)(t)&&!l.has(t)&&(c.push({obj:t,parent:S}),l.put(t)),t=m.getRaw("Next"),(0,o.isRef)(t)&&!l.has(t)&&(c.push({obj:t,parent:i.parent}),l.put(t))}}return r.items.length>0?r.items:null}},{key:"permissions",get:function(){var e=null;try{e=this._readPermissions()}catch(e){if(e instanceof l.MissingDataException)throw e;(0,n.warn)("Unable to read permissions.")}return(0,n.shadow)(this,"permissions",e)}},{key:"_readPermissions",value:function(){var e=this.xref.trailer.get("Encrypt");if(!(0,o.isDict)(e))return null;var t=e.get("P");if(!(0,n.isNum)(t))return null;t+=Math.pow(2,32);var r=[];for(var c in n.PermissionFlag){var l=n.PermissionFlag[c];t&l&&r.push(l)}return r}},{key:"numPages",get:function(){var e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new n.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,n.shadow)(this,"numPages",e)}},{key:"destinations",get:function(){var e=this._readDests(),t=Object.create(null);if(e instanceof C){var r=e.getAll();for(var c in r)t[c]=v(r[c])}else e instanceof o.Dict&&e.forEach((function(e,r){r&&(t[e]=v(r))}));return(0,n.shadow)(this,"destinations",t)}},{key:"getDestination",value:function(e){var t=this._readDests();return t instanceof C||t instanceof o.Dict?v(t.get(e)||null):null}},{key:"_readDests",value:function(){var e=this.catDict.get("Names");return e&&e.has("Dests")?new C(e.getRaw("Dests"),this.xref):this.catDict.has("Dests")?this.catDict.get("Dests"):void 0}},{key:"pageLabels",get:function(){var e=null;try{e=this._readPageLabels()}catch(e){if(e instanceof l.MissingDataException)throw e;(0,n.warn)("Unable to read page labels.")}return(0,n.shadow)(this,"pageLabels",e)}},{key:"_readPageLabels",value:function(){var e=this.catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),style=null,r="",c=new P(e,this.xref).getAll(),h="",d=1,i=0,f=this.numPages;i<f;i++){if(i in c){var m=c[i];if(!(0,o.isDict)(m))throw new n.FormatError("PageLabel is not a dictionary.");if(m.has("Type")&&!(0,o.isName)(m.get("Type"),"PageLabel"))throw new n.FormatError("Invalid type in PageLabel dictionary.");if(m.has("S")){var s=m.get("S");if(!(0,o.isName)(s))throw new n.FormatError("Invalid style in PageLabel dictionary.");style=s.name}else style=null;if(m.has("P")){var p=m.get("P");if(!(0,n.isString)(p))throw new n.FormatError("Invalid prefix in PageLabel dictionary.");r=(0,n.stringToPDFString)(p)}else r="";if(m.has("St")){var v=m.get("St");if(!(Number.isInteger(v)&&v>=1))throw new n.FormatError("Invalid start in PageLabel dictionary.");d=v}else d=1}switch(style){case"D":h=d;break;case"R":case"r":h=(0,l.toRomanNumerals)(d,"r"===style);break;case"A":case"a":for(var y="a"===style?97:65,k=d-1,w=String.fromCharCode(y+k%26),S=[],A=0,x=k/26|0;A<=x;A++)S.push(w);h=S.join("");break;default:if(style)throw new n.FormatError('Invalid style "'.concat(style,'" in PageLabel dictionary.'));h=""}t[i]=r+h,d++}return t}},{key:"pageLayout",get:function(){var e=this.catDict.get("PageLayout"),t="";if((0,o.isName)(e))switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,n.shadow)(this,"pageLayout",t)}},{key:"pageMode",get:function(){var e=this.catDict.get("PageMode"),t="UseNone";if((0,o.isName)(e))switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,n.shadow)(this,"pageMode",t)}},{key:"viewerPreferences",get:function(){var e=this,t={HideToolbar:n.isBool,HideMenubar:n.isBool,HideWindowUI:n.isBool,FitWindow:n.isBool,CenterWindow:n.isBool,DisplayDocTitle:n.isBool,NonFullScreenPageMode:o.isName,Direction:o.isName,ViewArea:o.isName,ViewClip:o.isName,PrintArea:o.isName,PrintClip:o.isName,PrintScaling:o.isName,Duplex:o.isName,PickTrayByPDFSize:n.isBool,PrintPageRange:Array.isArray,NumCopies:Number.isInteger},r=this.catDict.get("ViewerPreferences"),c=null;if((0,o.isDict)(r))for(var l in t)if(r.has(l)){var h=r.get(l);if(t[l](h)){var d=void 0;switch(l){case"NonFullScreenPageMode":switch(h.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":d=h.name;break;default:d="UseNone"}break;case"Direction":switch(h.name){case"L2R":case"R2L":d=h.name;break;default:d="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":switch(h.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":d=h.name;break;default:d="CropBox"}break;case"PrintScaling":switch(h.name){case"None":case"AppDefault":d=h.name;break;default:d="AppDefault"}break;case"Duplex":switch(h.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":d=h.name;break;default:d="None"}break;case"PrintPageRange":if(h.length%2!=0)break;h.every((function(t,i,r){return Number.isInteger(t)&&t>0&&(0===i||t>=r[i-1])&&t<=e.numPages}))&&(d=h);break;case"NumCopies":h>0&&(d=h);break;default:if("boolean"!=typeof h)throw new n.FormatError("viewerPreferences - expected a boolean value for: ".concat(l));d=h}void 0!==d?(c||(c=Object.create(null)),c[l]=d):(0,n.info)('Bad value in ViewerPreferences for "'.concat(l,'".'))}else(0,n.info)('Bad value in ViewerPreferences for "'.concat(l,'".'))}return(0,n.shadow)(this,"viewerPreferences",c)}},{key:"openAction",get:function(){var t=this.catDict.get("OpenAction"),r=null;if((0,o.isDict)(t)){var c=new o.Dict(this.xref);c.set("A",t);var l={url:null,dest:null,action:null};e.parseDestDictionary({destDict:c,resultObj:l}),Array.isArray(l.dest)?(r||(r=Object.create(null)),r.dest=l.dest):l.action&&(r||(r=Object.create(null)),r.action=l.action)}else Array.isArray(t)&&(r||(r=Object.create(null)),r.dest=t);return(0,n.shadow)(this,"openAction",r)}},{key:"attachments",get:function(){var e=this.catDict.get("Names"),t=null;if(e&&e.has("EmbeddedFiles")){var r=new C(e.getRaw("EmbeddedFiles"),this.xref).getAll();for(var o in r){var c=new E(r[o],this.xref);t||(t=Object.create(null)),t[(0,n.stringToPDFString)(o)]=c.serializable}}return(0,n.shadow)(this,"attachments",t)}},{key:"javaScript",get:function(){var e=this.catDict.get("Names"),t=null;function r(e){var r=e.get("S");if((0,o.isName)(r,"JavaScript")){var c=e.get("JS");if((0,o.isStream)(c))c=(0,n.bytesToString)(c.getBytes());else if(!(0,n.isString)(c))return;t||(t=[]),t.push((0,n.stringToPDFString)(c))}}if(e&&e.has("JavaScript")){var c=new C(e.getRaw("JavaScript"),this.xref).getAll();for(var l in c){var h=c[l];(0,o.isDict)(h)&&r(h)}}var d=this.catDict.get("OpenAction");return(0,o.isDict)(d)&&(0,o.isName)(d.get("S"),"JavaScript")&&r(d),(0,n.shadow)(this,"javaScript",t)}},{key:"fontFallback",value:function(e,t){var r=[];return this.fontCache.forEach((function(e){r.push(e)})),Promise.all(r).then((function(r){var n,o=m(r);try{for(o.s();!(n=o.n()).done;){var c=n.value;if(c.loadedName===e)return void c.fallback(t)}}catch(e){o.e(e)}finally{o.f()}}))}},{key:"cleanup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,o.clearPrimitiveCaches)(),this.globalImageCache.clear(t),this.pageKidsCountCache.clear();var r=[];return this.fontCache.forEach((function(e){r.push(e)})),Promise.all(r).then((function(t){var r,n=m(t);try{for(n.s();!(r=n.n()).done;)delete r.value.dict.translated}catch(e){n.e(e)}finally{n.f()}e.fontCache.clear(),e.builtInCMapCache.clear()}))}},{key:"getPageDict",value:function(e){var t,r=(0,n.createPromiseCapability)(),c=[this.catDict.getRaw("Pages")],l=new o.RefSet,h=this.xref,d=this.pageKidsCountCache,f=0;return function m(){for(var v,y=function(){var v=c.pop();if((0,o.isRef)(v))return(t=d.get(v))>0&&f+t<e?(f+=t,0):l.has(v)?(r.reject(new n.FormatError("Pages tree contains circular reference.")),{v:void 0}):(l.put(v),h.fetchAsync(v).then((function(t){(0,o.isDict)(t,"Page")||(0,o.isDict)(t)&&!t.has("Kids")?e===f?(v&&!d.has(v)&&d.put(v,1),r.resolve([t,v])):(f++,m()):(c.push(t),m())}),r.reject),{v:void 0});if(!(0,o.isDict)(v))return r.reject(new n.FormatError("Page dictionary kid reference points to wrong type of object.")),{v:void 0};if(t=v.get("Count"),Number.isInteger(t)&&t>=0){var y=v.objId;if(y&&!d.has(y)&&d.put(y,t),f+t<=e)return f+=t,0}var k=v.get("Kids");if(!Array.isArray(k))return(0,o.isName)(v.get("Type"),"Page")||!v.has("Type")&&v.has("Contents")?f===e?(r.resolve([v,null]),{v:void 0}):(f++,0):(r.reject(new n.FormatError("Page dictionary kids object is not an array.")),{v:void 0});for(var w=k.length-1;w>=0;w--)c.push(k[w])};c.length;)if(0!==(v=y())&&v)return v.v;r.reject(new Error("Page index ".concat(e," not found.")))}(),r.promise}},{key:"getPageIndex",value:function(e){var t=this.xref,r=0;return function c(l){return function(r){var c,l=0;return t.fetchAsync(r).then((function(t){if((0,o.isRefsEqual)(r,e)&&!(0,o.isDict)(t,"Page")&&(!(0,o.isDict)(t)||t.has("Type")||!t.has("Contents")))throw new n.FormatError("The reference does not point to a /Page dictionary.");if(!t)return null;if(!(0,o.isDict)(t))throw new n.FormatError("Node must be a dictionary.");return c=t.getRaw("Parent"),t.getAsync("Parent")})).then((function(e){if(!e)return null;if(!(0,o.isDict)(e))throw new n.FormatError("Parent must be a dictionary.");return e.getAsync("Kids")})).then((function(e){if(!e)return null;for(var h=[],d=!1,i=0,f=e.length;i<f;i++){var m=e[i];if(!(0,o.isRef)(m))throw new n.FormatError("Kid must be a reference.");if((0,o.isRefsEqual)(m,r)){d=!0;break}h.push(t.fetchAsync(m).then((function(e){if(!(0,o.isDict)(e))throw new n.FormatError("Kid node must be a dictionary.");e.has("Count")?l+=e.get("Count"):l++})))}if(!d)throw new n.FormatError("Kid reference not found in parent's kids.");return Promise.all(h).then((function(){return[l,c]}))}))}(l).then((function(e){if(!e)return r;var t=I(e,2),n=t[0],o=t[1];return r+=n,c(o)}))}(e)}}],[{key:"parseDestDictionary",value:function(e){var t=e.destDict;if((0,o.isDict)(t)){var r=e.resultObj;if("object"===R(r)){var c,l,h=e.docBaseUrl||null,d=t.get("A");if(!(0,o.isDict)(d)&&t.has("Dest")&&(d=t.get("Dest")),(0,o.isDict)(d)){var f=d.get("S");if(!(0,o.isName)(f))return void(0,n.warn)("parseDestDictionary: Invalid type in Action dictionary.");var m=f.name;switch(m){case"URI":c=d.get("URI"),(0,o.isName)(c)?c="/"+c.name:(0,n.isString)(c)&&(c=function(e){return e.startsWith("www.")?"http://".concat(e):e}(c));break;case"GoTo":l=d.get("D");break;case"Launch":case"GoToR":var v=d.get("F");(0,o.isDict)(v)?c=v.get("F")||null:(0,n.isString)(v)&&(c=v);var y=d.get("D");if(y&&((0,o.isName)(y)&&(y=y.name),(0,n.isString)(c))){var k=c.split("#")[0];(0,n.isString)(y)?c=k+"#"+y:Array.isArray(y)&&(c=k+"#"+JSON.stringify(y))}var w=d.get("NewWindow");(0,n.isBool)(w)&&(r.newWindow=w);break;case"Named":var S=d.get("N");(0,o.isName)(S)&&(r.action=S.name);break;case"JavaScript":var A,x=d.get("JS");if((0,o.isStream)(x)?A=(0,n.bytesToString)(x.getBytes()):(0,n.isString)(x)&&(A=x),A){var C=new RegExp("^\\s*("+["app.launchURL","window.open"].join("|").split(".").join("\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec((0,n.stringToPDFString)(A));if(C&&C[2]){c=C[2],"true"===C[3]&&"app.launchURL"===C[1]&&(r.newWindow=!0);break}}default:(0,n.warn)('parseDestDictionary: unsupported action type "'.concat(m,'".'))}}else t.has("Dest")&&(l=t.get("Dest"));if((0,n.isString)(c)){c=function(e){try{return(0,n.stringToUTF8String)(e)}catch(t){return e}}(c);var _=(0,n.createValidAbsoluteUrl)(c,h);_&&(r.url=_.href),r.unsafeUrl=c}l&&((0,o.isName)(l)&&(l=l.name),((0,n.isString)(l)||Array.isArray(l))&&(r.dest=l))}else(0,n.warn)("parseDestDictionary: `resultObj` must be an object.")}else(0,n.warn)("parseDestDictionary: `destDict` must be a dictionary.")}}])}();t.Catalog=k;var A=function(){function e(e,t){this.stream=e,this.pdfManager=t,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this.stats={streamTypes:Object.create(null),fontTypes:Object.create(null)}}return e.prototype={setStartXRef:function(e){this.startXRefQueue=[e]},parse:function(e){var t,r,c;e?((0,n.warn)("Indexing all PDF objects"),t=this.indexObjects()):t=this.readXRef(),t.assignXref(this),this.trailer=t;try{r=t.get("Encrypt")}catch(e){if(e instanceof l.MissingDataException)throw e;(0,n.warn)('XRef.parse - Invalid "Encrypt" reference: "'.concat(e,'".'))}if((0,o.isDict)(r)){var d=t.get("ID"),f=d&&d.length?d[0]:"";r.suppressEncryption=!0,this.encrypt=new h.CipherTransformFactory(r,f,this.pdfManager.password)}try{c=t.get("Root")}catch(e){if(e instanceof l.MissingDataException)throw e;(0,n.warn)('XRef.parse - Invalid "Root" reference: "'.concat(e,'".'))}if(!(0,o.isDict)(c)||!c.has("Pages")){if(!e)throw new l.XRefParseException;throw new n.FormatError("Invalid root reference")}this.root=c},processXRefTable:function(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);if(!(0,o.isCmd)(t,"trailer"))throw new n.FormatError("Invalid XRef table: could not find trailer dictionary");var r=e.getObj();if(!(0,o.isDict)(r)&&r.dict&&(r=r.dict),!(0,o.isDict)(r))throw new n.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,r},readXRefTable:function(e){var t,r=e.lexer.stream,c=this.tableState;for(r.pos=c.streamPos,e.buf1=c.parserBuf1,e.buf2=c.parserBuf2;;){if(!("firstEntryNum"in c)||!("entryCount"in c)){if((0,o.isCmd)(t=e.getObj(),"trailer"))break;c.firstEntryNum=t,c.entryCount=e.getObj()}var l=c.firstEntryNum,h=c.entryCount;if(!Number.isInteger(l)||!Number.isInteger(h))throw new n.FormatError("Invalid XRef table: wrong types in subsection header");for(var i=c.entryNum;i<h;i++){c.streamPos=r.pos,c.entryNum=i,c.parserBuf1=e.buf1,c.parserBuf2=e.buf2;var d={};d.offset=e.getObj(),d.gen=e.getObj();var f=e.getObj();if(f instanceof o.Cmd)switch(f.cmd){case"f":d.free=!0;break;case"n":d.uncompressed=!0}if(!Number.isInteger(d.offset)||!Number.isInteger(d.gen)||!d.free&&!d.uncompressed)throw new n.FormatError("Invalid entry in XRef subsection: ".concat(l,", ").concat(h));0===i&&d.free&&1===l&&(l=0),this.entries[i+l]||(this.entries[i+l]=d)}c.entryNum=0,c.streamPos=r.pos,c.parserBuf1=e.buf1,c.parserBuf2=e.buf2,delete c.firstEntryNum,delete c.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new n.FormatError("Invalid XRef table: unexpected first object");return t},processXRefStream:function(e){if(!("streamState"in this)){var t=e.dict,r=t.get("W"),n=t.get("Index");n||(n=[0,t.get("Size")]),this.streamState={entryRanges:n,byteWidths:r,entryNum:0,streamPos:e.pos}}return this.readXRefStream(e),delete this.streamState,e.dict},readXRefStream:function(e){var i,t,r=this.streamState;e.pos=r.streamPos;for(var o=r.byteWidths,c=o[0],l=o[1],h=o[2],d=r.entryRanges;d.length>0;){var f=d[0],m=d[1];if(!Number.isInteger(f)||!Number.isInteger(m))throw new n.FormatError("Invalid XRef range fields: ".concat(f,", ").concat(m));if(!Number.isInteger(c)||!Number.isInteger(l)||!Number.isInteger(h))throw new n.FormatError("Invalid XRef entry fields length: ".concat(f,", ").concat(m));for(i=r.entryNum;i<m;++i){r.entryNum=i,r.streamPos=e.pos;var v=0,y=0,k=0;for(t=0;t<c;++t)v=v<<8|e.getByte();for(0===c&&(v=1),t=0;t<l;++t)y=y<<8|e.getByte();for(t=0;t<h;++t)k=k<<8|e.getByte();var w={};switch(w.offset=y,w.gen=k,v){case 0:w.free=!0;break;case 1:w.uncompressed=!0;break;case 2:break;default:throw new n.FormatError("Invalid XRef entry type: ".concat(v))}this.entries[f+i]||(this.entries[f+i]=w)}r.entryNum=0,r.streamPos=e.pos,d.splice(0,2)}},indexObjects:function(){function e(data,e){for(var t="",r=data[e];10!==r&&13!==r&&60!==r&&!(++e>=data.length);)t+=String.fromCharCode(r),r=data[e];return t}function t(data,e,t){for(var r=t.length,n=data.length,o=0;e<n;){for(var i=0;i<r&&data[e+i]===t[i];)++i;if(i>=r)break;e++,o++}return o}var r=/^(\d+)\s+(\d+)\s+obj\b/,h=/\bendobj[\b\s]$/,d=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,f=new Uint8Array([116,114,97,105,108,101,114]),m=new Uint8Array([115,116,97,114,116,120,114,101,102]),v=new Uint8Array([111,98,106]),y=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var k=this.stream;k.pos=0;for(var i,w,S,A=k.getBytes(),x=k.start,C=A.length,_=[],P=[];x<C;){var T=A[x];if(9!==T&&10!==T&&13!==T&&32!==T)if(37!==T){var I,E=e(A,x);if(E.startsWith("xref")&&(4===E.length||/\s/.test(E[4])))x+=t(A,x,f),_.push(x),x+=t(A,x,m);else if(I=r.exec(E)){var F=0|I[1],L=0|I[2];this.entries[F]&&this.entries[F].gen!==L||(this.entries[F]={offset:x-k.start,gen:L,uncompressed:!0});for(var O=void 0,R=x+E.length;R<A.length;){var M=R+t(A,R,v)+4;O=M-x;var N=Math.max(M-25,R),D=(0,n.bytesToString)(A.subarray(N,M));if(h.test(D))break;var B=d.exec(D);if(B&&B[1]){(0,n.warn)('indexObjects: Found new "obj" inside of another "obj", caused by missing "endobj" -- trying to recover.'),O-=B[1].length;break}R=M}var content=A.subarray(x,x+O),U=t(content,0,y);U<O&&content[U+5]<64&&(P.push(x-k.start),this.xrefstms[x-k.start]=1),x+=O}else E.startsWith("trailer")&&(7===E.length||/\s/.test(E[7]))?(_.push(x),x+=t(A,x,m)):x+=E.length+1}else do{if(++x>=C)break;T=A[x]}while(10!==T&&13!==T);else++x}for(i=0,w=P.length;i<w;++i)this.startXRefQueue.push(P[i]),this.readXRef(!0);for(i=0,w=_.length;i<w;++i){k.pos=_[i];var j=new c.Parser({lexer:new c.Lexer(k),xref:this,allowStreams:!0,recoveryMode:!0}),H=j.getObj();if((0,o.isCmd)(H,"trailer")){var G=j.getObj();if((0,o.isDict)(G)){var z=void 0;try{z=G.get("Root")}catch(e){if(e instanceof l.MissingDataException)throw e;continue}if((0,o.isDict)(z)&&z.has("Pages")){if(G.has("ID"))return G;S=G}}}}if(S)return S;throw new n.InvalidPDFException("Invalid PDF structure.")},readXRef:function(e){var t=this.stream,r=Object.create(null);try{for(;this.startXRefQueue.length;){var h=this.startXRefQueue[0];if(r[h])(0,n.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();else{r[h]=!0,t.pos=h+t.start;var d,f=new c.Parser({lexer:new c.Lexer(t),xref:this,allowStreams:!0}),m=f.getObj();if((0,o.isCmd)(m,"xref")){if(d=this.processXRefTable(f),this.topDict||(this.topDict=d),m=d.get("XRefStm"),Number.isInteger(m)){var v=m;v in this.xrefstms||(this.xrefstms[v]=1,this.startXRefQueue.push(v))}}else{if(!Number.isInteger(m))throw new n.FormatError("Invalid XRef stream header");if(!Number.isInteger(f.getObj())||!(0,o.isCmd)(f.getObj(),"obj")||!(0,o.isStream)(m=f.getObj()))throw new n.FormatError("Invalid XRef stream");if(d=this.processXRefStream(m),this.topDict||(this.topDict=d),!d)throw new n.FormatError("Failed to read XRef stream")}m=d.get("Prev"),Number.isInteger(m)?this.startXRefQueue.push(m):(0,o.isRef)(m)&&this.startXRefQueue.push(m.num),this.startXRefQueue.shift()}}return this.topDict}catch(e){if(e instanceof l.MissingDataException)throw e;(0,n.info)("(while reading XRef): "+e)}if(!e)throw new l.XRefParseException},getEntry:function(i){var e=this.entries[i];return e&&!e.free&&e.offset?e:null},fetchIfRef:function(e,t){return e instanceof o.Ref?this.fetch(e,t):e},fetch:function(e,t){if(!(e instanceof o.Ref))throw new Error("ref object is not a reference");var r=e.num,n=this._cacheMap.get(r);if(void 0!==n)return n instanceof o.Dict&&!n.objId&&(n.objId=e.toString()),n;var c=this.getEntry(r);return null===c?(this._cacheMap.set(r,c),c):(c=c.uncompressed?this.fetchUncompressed(e,c,t):this.fetchCompressed(e,c,t),(0,o.isDict)(c)?c.objId=e.toString():(0,o.isStream)(c)&&(c.dict.objId=e.toString()),c)},fetchUncompressed:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.gen,h=e.num;if(t.gen!==n)throw new l.XRefEntryException("Inconsistent generation in XRef: ".concat(e));var d=this.stream.makeSubStream(t.offset+this.stream.start),f=new c.Parser({lexer:new c.Lexer(d),xref:this,allowStreams:!0}),m=f.getObj(),v=f.getObj(),y=f.getObj();if(m!==h||v!==n||!(y instanceof o.Cmd))throw new l.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e));if("obj"!==y.cmd){if(y.cmd.startsWith("obj")&&(h=parseInt(y.cmd.substring(3),10),!Number.isNaN(h)))return h;throw new l.XRefEntryException("Bad (uncompressed) XRef entry: ".concat(e))}return t=this.encrypt&&!r?f.getObj(this.encrypt.createCipherTransform(h,n)):f.getObj(),(0,o.isStream)(t)||this._cacheMap.set(h,t),t},fetchCompressed:function(e,t){var r=t.offset,h=this.fetch(o.Ref.get(r,0));if(!(0,o.isStream)(h))throw new n.FormatError("bad ObjStm stream");var d=h.dict.get("First"),f=h.dict.get("N");if(!Number.isInteger(d)||!Number.isInteger(f))throw new n.FormatError("invalid first and n parameters for ObjStm stream");for(var m=new c.Parser({lexer:new c.Lexer(h),xref:this,allowStreams:!0}),v=new Array(f),i=0;i<f;++i){var y=m.getObj();if(!Number.isInteger(y))throw new n.FormatError("invalid object number in the ObjStm stream: ".concat(y));var k=m.getObj();if(!Number.isInteger(k))throw new n.FormatError("invalid object offset in the ObjStm stream: ".concat(k));v[i]=y}for(var w=new Array(f),S=0;S<f;++S){var A=m.getObj();if(w[S]=A,m.buf1 instanceof o.Cmd&&"endobj"===m.buf1.cmd&&m.shift(),!(0,o.isStream)(A)){var x=v[S],C=this.entries[x];C&&C.offset===r&&C.gen===S&&this._cacheMap.set(x,A)}}if(void 0===(t=w[t.gen]))throw new l.XRefEntryException("Bad (compressed) XRef entry: ".concat(e));return t},fetchIfRefAsync:function(e,t){var r=this;return O(T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(e instanceof o.Ref)){n.next=2;break}return n.abrupt("return",r.fetchAsync(e,t));case 2:return n.abrupt("return",e);case 3:case"end":return n.stop()}}),n)})))()},fetchAsync:function(e,t){var r=this;return O(T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.abrupt("return",r.fetch(e,t));case 4:if(n.prev=4,n.t0=n.catch(0),n.t0 instanceof l.MissingDataException){n.next=8;break}throw n.t0;case 8:return n.next=10,r.pdfManager.requestRange(n.t0.begin,n.t0.end);case 10:return n.abrupt("return",r.fetchAsync(e,t));case 11:case"end":return n.stop()}}),n,null,[[0,4]])})))()},getCatalogObj:function(){return this.root}},e}();t.XRef=A;var x=function(){return y((function e(t,r,o){w(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize NameOrNumberTree."),this.root=t,this.xref=r,this._type=o}),[{key:"getAll",value:function(){var e=Object.create(null);if(!this.root)return e;var t=this.xref,r=new o.RefSet;r.put(this.root);for(var c=[this.root];c.length>0;){var l=t.fetchIfRef(c.shift());if((0,o.isDict)(l))if(l.has("Kids"))for(var h=l.get("Kids"),i=0,d=h.length;i<d;i++){var f=h[i];if(r.has(f))throw new n.FormatError('Duplicate entry in "'.concat(this._type,'" tree.'));c.push(f),r.put(f)}else{var m=l.get(this._type);if(Array.isArray(m))for(var v=0,y=m.length;v<y;v+=2)e[t.fetchIfRef(m[v])]=t.fetchIfRef(m[v+1])}}return e}},{key:"get",value:function(e){if(!this.root)return null;for(var t=this.xref,r=t.fetchIfRef(this.root),o=0;r.has("Kids");){if(++o>10)return(0,n.warn)('Search depth limit reached for "'.concat(this._type,'" tree.')),null;var c=r.get("Kids");if(!Array.isArray(c))return null;for(var l=0,h=c.length-1;l<=h;){var d=l+h>>1,f=t.fetchIfRef(c[d]).get("Limits");if(e<t.fetchIfRef(f[0]))h=d-1;else{if(!(e>t.fetchIfRef(f[1]))){r=t.fetchIfRef(c[d]);break}l=d+1}}if(l>h)return null}var m=r.get(this._type);if(Array.isArray(m)){for(var v=0,y=m.length-2;v<=y;){var k=v+y>>1,w=k+(1&k),S=t.fetchIfRef(m[w]);if(e<S)y=w-2;else{if(!(e>S))return t.fetchIfRef(m[w+1]);v=w+2}}(0,n.info)('Falling back to an exhaustive search, for key "'.concat(e,'", ')+'in "'.concat(this._type,'" tree.'));for(var A=0,x=m.length;A<x;A+=2)if(t.fetchIfRef(m[A])===e)return(0,n.warn)('The "'.concat(e,'" key was found at an incorrect, ')+'i.e. out-of-order, position in "'.concat(this._type,'" tree.')),t.fetchIfRef(m[A+1])}return null}}])}(),C=function(e){function t(e,r){return w(this,t),S(this,t,[e,r,"Names"])}return _(t,e),y(t)}(x),P=function(e){function t(e,r){return w(this,t),S(this,t,[e,r,"Nums"])}return _(t,e),y(t)}(x),E=function(){function e(e,t){e&&(0,o.isDict)(e)&&(this.xref=t,this.root=e,e.has("FS")&&(this.fs=e.get("FS")),this.description=e.has("Desc")?(0,n.stringToPDFString)(e.get("Desc")):"",e.has("RF")&&(0,n.warn)("Related file specifications are not supported"),this.contentAvailable=!0,e.has("EF")||(this.contentAvailable=!1,(0,n.warn)("Non-embedded file specifications are not supported")))}function t(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}return e.prototype={get filename(){if(!this._filename&&this.root){var e=t(this.root)||"unnamed";this._filename=(0,n.stringToPDFString)(e).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename},get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=t(this.root.get("EF")));var content=null;if(this.contentRef){var e=this.xref.fetchIfRef(this.contentRef);e&&(0,o.isStream)(e)?content=e.getBytes():(0,n.warn)("Embedded file specification points to non-existing/invalid content")}else(0,n.warn)("Embedded file specification does not have a content");return content},get serializable(){return{filename:this.filename,content:this.content}}},e}();t.FileSpec=E;var F=function(){function e(e){return e instanceof o.Ref||e instanceof o.Dict||Array.isArray(e)||(0,o.isStream)(e)}function t(t,r){if(t instanceof o.Dict||(0,o.isStream)(t))for(var n=t instanceof o.Dict?t:t.dict,c=n.getKeys(),i=0,l=c.length;i<l;i++){var h=n.getRaw(c[i]);e(h)&&r.push(h)}else if(Array.isArray(t))for(var d=0,f=t.length;d<f;d++){var m=t[d];e(m)&&r.push(m)}}function r(e,t,r){this.dict=e,this.keys=t,this.xref=r,this.refSet=null}return r.prototype={load:function(){var e=this;return O(T().mark((function t(){var r,n,c,i,l,h;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.xref.stream.allChunksLoaded&&!e.xref.stream.allChunksLoaded()){t.next=2;break}return t.abrupt("return",void 0);case 2:for(r=e.keys,n=e.dict,e.refSet=new o.RefSet,c=[],i=0,l=r.length;i<l;i++)void 0!==(h=n.getRaw(r[i]))&&c.push(h);return t.abrupt("return",e._walk(c));case 7:case"end":return t.stop()}}),t)})))()},_walk:function(e){var r=this;return O(T().mark((function n(){var c,h,d,f,m,i,v,y,k,w,S;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:c=[],h=[];case 2:if(!e.length){n.next=22;break}if(!((d=e.pop())instanceof o.Ref)){n.next=18;break}if(!r.refSet.has(d)){n.next=7;break}return n.abrupt("continue",2);case 7:n.prev=7,r.refSet.put(d),d=r.xref.fetch(d),n.next=18;break;case 12:if(n.prev=12,n.t0=n.catch(7),n.t0 instanceof l.MissingDataException){n.next=16;break}throw n.t0;case 16:c.push(d),h.push({begin:n.t0.begin,end:n.t0.end});case 18:if(d&&d.getBaseStreams){for(f=d.getBaseStreams(),m=!1,i=0,v=f.length;i<v;i++)(y=f[i]).allChunksLoaded&&!y.allChunksLoaded()&&(m=!0,h.push({begin:y.start,end:y.end}));m&&c.push(d)}t(d,e),n.next=2;break;case 22:if(!h.length){n.next=27;break}return n.next=25,r.xref.stream.manager.requestRanges(h);case 25:for(k=0,w=c.length;k<w;k++)(S=c[k])instanceof o.Ref&&r.refSet.remove(S);return n.abrupt("return",r._walk(c));case 27:return r.refSet=null,n.abrupt("return",void 0);case 29:case"end":return n.stop()}}),n,null,[[7,12]])})))()}},r}();t.ObjectLoader=F},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var n=r(12),o=r(2),c=r(5),l=r(8),h=r(13),d=r(15),f=r(18),m=r(20);function v(e){for(var t=e.length,a=1,b=0,i=0;i<t;++i)b+=a+=255&e[i];return b%65521<<16|a%65521}var k=function(){return y((function e(t){var r=t.lexer,n=t.xref,o=t.allowStreams,c=void 0!==o&&o,l=t.recoveryMode,h=void 0!==l&&l;w(this,e),this.lexer=r,this.xref=n,this.allowStreams=c,this.recoveryMode=h,this.imageCache=Object.create(null),this.refill()}),[{key:"refill",value:function(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}},{key:"shift",value:function(){this.buf2 instanceof c.Cmd&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}},{key:"tryShift",value:function(){try{return this.shift(),!0}catch(e){if(e instanceof l.MissingDataException)throw e;return!1}}},{key:"getObj",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.buf1;if(this.shift(),t instanceof c.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":for(var r=[];!(0,c.isCmd)(this.buf1,"]")&&!(0,c.isEOF)(this.buf1);)r.push(this.getObj(e));if((0,c.isEOF)(this.buf1)){if(!this.recoveryMode)throw new o.FormatError("End of file inside array");return r}return this.shift(),r;case"<<":for(var n=new c.Dict(this.xref);!(0,c.isCmd)(this.buf1,">>")&&!(0,c.isEOF)(this.buf1);)if((0,c.isName)(this.buf1)){var l=this.buf1.name;if(this.shift(),(0,c.isEOF)(this.buf1))break;n.set(l,this.getObj(e))}else(0,o.info)("Malformed dictionary: key must be a name object"),this.shift();if((0,c.isEOF)(this.buf1)){if(!this.recoveryMode)throw new o.FormatError("End of file inside dictionary");return n}return(0,c.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(n,e):n:(this.shift(),n);default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,c.isCmd)(this.buf2,"R")){var h=c.Ref.get(t,this.buf1);return this.shift(),this.shift(),h}return t}return"string"==typeof t&&e?e.decryptString(t):t}},{key:"findDefaultInlineStreamEnd",value:function(e){for(var t,r,n=e.pos,c=0;-1!==(t=e.getByte());)if(0===c)c=69===t?1:0;else if(1===c)c=73===t?2:0;else if((0,o.assert)(2===c,"findDefaultInlineStreamEnd - invalid state."),32===t||10===t||13===t){r=e.pos;for(var h=e.peekBytes(10),i=0,d=h.length;i<d;i++)if((0!==(t=h[i])||0===h[i+1])&&10!==t&&13!==t&&(t<32||t>127)){c=0;break}if(2===c)break}else c=0;-1===t&&((0,o.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),r&&((0,o.warn)('... trying to recover by using the last "EI" occurrence.'),e.skip(-(e.pos-r))));var f=4;return e.skip(-f),t=e.peekByte(),e.skip(f),(0,l.isWhiteSpace)(t)||f--,e.pos-f-n}},{key:"findDCTDecodeInlineStreamEnd",value:function(e){for(var b,t,r=e.pos,n=!1;-1!==(b=e.getByte());)if(255===b){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:n=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:(t=e.getUint16())>2?e.skip(t-2):e.skip(-2)}if(n)break}var c=e.pos-r;return-1===b?((0,o.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-c),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),c)}},{key:"findASCII85DecodeInlineStreamEnd",value:function(e){for(var t,r=e.pos;-1!==(t=e.getByte());)if(126===t){var n=e.pos;for(t=e.peekByte();(0,l.isWhiteSpace)(t);)e.skip(),t=e.peekByte();if(62===t){e.skip();break}if(e.pos>n){var c=e.peekBytes(2);if(69===c[0]&&73===c[1])break}}var h=e.pos-r;return-1===t?((0,o.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-h),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),h)}},{key:"findASCIIHexDecodeInlineStreamEnd",value:function(e){for(var t,r=e.pos;-1!==(t=e.getByte())&&62!==t;);var n=e.pos-r;return-1===t?((0,o.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-n),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),n)}},{key:"inlineStreamSkipEI",value:function(e){for(var t,r=0;-1!==(t=e.getByte());)if(0===r)r=69===t?1:0;else if(1===r)r=73===t?2:0;else if(2===r)break}},{key:"makeInlineImage",value:function(e){for(var t,r=this.lexer,n=r.stream,l=new c.Dict(this.xref);!(0,c.isCmd)(this.buf1,"ID")&&!(0,c.isEOF)(this.buf1);){if(!(0,c.isName)(this.buf1))throw new o.FormatError("Dictionary key must be a name object");var h=this.buf1.name;if(this.shift(),(0,c.isEOF)(this.buf1))break;l.set(h,this.getObj(e))}-1!==r.beginInlineImagePos&&(t=n.pos-r.beginInlineImagePos);var d,filter=l.get("Filter","F");if((0,c.isName)(filter))d=filter.name;else if(Array.isArray(filter)){var f=this.xref.fetchIfRef(filter[0]);(0,c.isName)(f)&&(d=f.name)}var m,y=n.pos;m="DCTDecode"===d||"DCT"===d?this.findDCTDecodeInlineStreamEnd(n):"ASCII85Decode"===d||"A85"===d?this.findASCII85DecodeInlineStreamEnd(n):"ASCIIHexDecode"===d||"AHx"===d?this.findASCIIHexDecodeInlineStreamEnd(n):this.findDefaultInlineStreamEnd(n);var k,w=n.makeSubStream(y,m,l);if(m<1e3&&t<5552){var S=w.getBytes();w.reset();var A=n.pos;n.pos=r.beginInlineImagePos;var x=n.getBytes(t);n.pos=A,k=v(S)+"_"+v(x);var C=this.imageCache[k];if(void 0!==C)return this.buf2=c.Cmd.get("EI"),this.shift(),C.reset(),C}return e&&(w=e.createStream(w,m)),(w=this.filter(w,l,m)).dict=l,void 0!==k&&(w.cacheKey="inline_".concat(m,"_").concat(k),this.imageCache[k]=w),this.buf2=c.Cmd.get("EI"),this.shift(),w}},{key:"_findStreamLength",value:function(e,t){var r=this.lexer.stream;r.pos=e;for(var n=t.length;r.pos<r.end;){var o=r.peekBytes(2048),c=o.length-n;if(c<=0)break;for(var l=0;l<c;){for(var h=0;h<n&&o[l+h]===t[h];)h++;if(h>=n)return r.pos+=l,r.pos-e;l++}r.pos+=c}return-1}},{key:"makeStream",value:function(e,t){var r=this.lexer,n=r.stream;r.skipToNextLine();var h=n.pos-1,d=e.get("Length");if(Number.isInteger(d)||((0,o.info)('Bad length "'.concat(d,'" in stream')),d=0),n.pos=h+d,r.nextChar(),this.tryShift()&&(0,c.isCmd)(this.buf2,"endstream"))this.shift();else{var f=new Uint8Array([101,110,100,115,116,114,101,97,109]),m=this._findStreamLength(h,f);if(m<0){for(var i=1;i<=1;i++){var v=f.length-i,y=f.slice(0,v),k=this._findStreamLength(h,y);if(k>=0){var w=n.peekBytes(v+1)[v];if(!(0,l.isWhiteSpace)(w))break;(0,o.info)('Found "'.concat((0,o.bytesToString)(y),'" when ')+"searching for endstream command."),m=k;break}}if(m<0)throw new o.FormatError("Missing endstream command.")}d=m,r.nextChar(),this.shift(),this.shift()}return this.shift(),n=n.makeSubStream(h,d,e),t&&(n=t.createStream(n,d)),(n=this.filter(n,e,d)).dict=e,n}},{key:"filter",value:function(e,t,r){var filter=t.get("Filter","F"),n=t.get("DecodeParms","DP");if((0,c.isName)(filter))return Array.isArray(n)&&(0,o.warn)("/DecodeParms should not contain an Array, when /Filter contains a Name."),this.makeFilter(e,filter.name,r,n);var l=r;if(Array.isArray(filter))for(var h=filter,d=n,i=0,f=h.length;i<f;++i){if(filter=this.xref.fetchIfRef(h[i]),!(0,c.isName)(filter))throw new o.FormatError('Bad filter name "'.concat(filter,'"'));n=null,Array.isArray(d)&&i in d&&(n=this.xref.fetchIfRef(d[i])),e=this.makeFilter(e,filter.name,l,n),l=null}return e}},{key:"makeFilter",value:function(e,t,r,c){if(0===r)return(0,o.warn)('Empty "'.concat(t,'" stream.')),new n.NullStream;try{var v=this.xref.stats.streamTypes;if("FlateDecode"===t||"Fl"===t)return v[o.StreamType.FLATE]=!0,c?new n.PredictorStream(new n.FlateStream(e,r),r,c):new n.FlateStream(e,r);if("LZWDecode"===t||"LZW"===t){v[o.StreamType.LZW]=!0;var y=1;return c?(c.has("EarlyChange")&&(y=c.get("EarlyChange")),new n.PredictorStream(new n.LZWStream(e,r,y),r,c)):new n.LZWStream(e,r,y)}return"DCTDecode"===t||"DCT"===t?(v[o.StreamType.DCT]=!0,new f.JpegStream(e,r,e.dict,c)):"JPXDecode"===t||"JPX"===t?(v[o.StreamType.JPX]=!0,new m.JpxStream(e,r,e.dict,c)):"ASCII85Decode"===t||"A85"===t?(v[o.StreamType.A85]=!0,new n.Ascii85Stream(e,r)):"ASCIIHexDecode"===t||"AHx"===t?(v[o.StreamType.AHX]=!0,new n.AsciiHexStream(e,r)):"CCITTFaxDecode"===t||"CCF"===t?(v[o.StreamType.CCF]=!0,new h.CCITTFaxStream(e,r,c)):"RunLengthDecode"===t||"RL"===t?(v[o.StreamType.RLX]=!0,new n.RunLengthStream(e,r)):"JBIG2Decode"===t?(v[o.StreamType.JBIG]=!0,new d.Jbig2Stream(e,r,e.dict,c)):((0,o.warn)('Filter "'.concat(t,'" is not supported.')),e)}catch(e){if(e instanceof l.MissingDataException)throw e;return(0,o.warn)('Invalid stream: "'.concat(e,'"')),new n.NullStream}}}])}();t.Parser=k;var S=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,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,2,0,2,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,2,0,2,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,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];function A(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var x=function(){return y((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;w(this,e),this.stream=t,this.nextChar(),this.strBuf=[],this.knownCommands=r,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}),[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"peekChar",value:function(){return this.stream.peekByte()}},{key:"getNumber",value:function(){var e=this.currentChar,t=!1,r=0,n=0;if(45===e?(n=-1,45===(e=this.nextChar())&&(e=this.nextChar())):43===e&&(n=1,e=this.nextChar()),10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e&&(r=10,e=this.nextChar()),e<48||e>57){if(10===r&&0===n&&((0,l.isWhiteSpace)(e)||-1===e))return(0,o.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;throw new o.FormatError("Invalid number: ".concat(String.fromCharCode(e)," (charCode ").concat(e,")"))}n=n||1;for(var c=e-48,h=0,d=1;(e=this.nextChar())>=0;)if(e>=48&&e<=57){var f=e-48;t?h=10*h+f:(0!==r&&(r*=10),c=10*c+f)}else if(46===e){if(0!==r)break;r=1}else if(45===e)(0,o.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(43===(e=this.peekChar())||45===e)d=45===e?-1:1,this.nextChar();else if(e<48||e>57)break;t=!0}return 0!==r&&(c/=r),t&&(c*=Math.pow(10,d*h)),n*c}},{key:"getString",value:function(){var e=1,t=!1,r=this.strBuf;r.length=0;for(var n=this.nextChar();;){var c=!1;switch(0|n){case-1:(0,o.warn)("Unterminated string"),t=!0;break;case 40:++e,r.push("(");break;case 41:0==--e?(this.nextChar(),t=!0):r.push(")");break;case 92:switch(n=this.nextChar()){case-1:(0,o.warn)("Unterminated string"),t=!0;break;case 110:r.push("\n");break;case 114:r.push("\r");break;case 116:r.push("\t");break;case 98:r.push("\b");break;case 102:r.push("\f");break;case 92:case 40:case 41:r.push(String.fromCharCode(n));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var l=15&n;c=!0,(n=this.nextChar())>=48&&n<=55&&(l=(l<<3)+(15&n),(n=this.nextChar())>=48&&n<=55&&(c=!1,l=(l<<3)+(15&n))),r.push(String.fromCharCode(l));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(n))}break;default:r.push(String.fromCharCode(n))}if(t)break;c||(n=this.nextChar())}return r.join("")}},{key:"getName",value:function(){var e,t,r=this.strBuf;for(r.length=0;(e=this.nextChar())>=0&&!S[e];)if(35===e){if(e=this.nextChar(),S[e]){(0,o.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),r.push("#");break}var n=A(e);if(-1!==n){t=e;var l=A(e=this.nextChar());if(-1===l){if((0,o.warn)("Lexer_getName: Illegal digit (".concat(String.fromCharCode(e),") ")+"in hexadecimal number."),r.push("#",String.fromCharCode(t)),S[e])break;r.push(String.fromCharCode(e));continue}r.push(String.fromCharCode(n<<4|l))}else r.push("#",String.fromCharCode(e))}else r.push(String.fromCharCode(e));return r.length>127&&(0,o.warn)("Name token is longer than allowed by the spec: ".concat(r.length)),c.Name.get(r.join(""))}},{key:"_hexStringWarn",value:function(e){5!=this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,o.warn)("getHexString - ignoring invalid character: ".concat(e)):(0,o.warn)("getHexString - ignoring additional invalid characters.")}},{key:"getHexString",value:function(){var e=this.strBuf;e.length=0;var t,r,n=this.currentChar,c=!0;for(this._hexStringNumWarn=0;;){if(n<0){(0,o.warn)("Unterminated hex string");break}if(62===n){this.nextChar();break}if(1!==S[n]){if(c){if(-1===(t=A(n))){this._hexStringWarn(n),n=this.nextChar();continue}}else{if(-1===(r=A(n))){this._hexStringWarn(n),n=this.nextChar();continue}e.push(String.fromCharCode(t<<4|r))}c=!c,n=this.nextChar()}else n=this.nextChar()}return e.join("")}},{key:"getObj",value:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return c.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==S[t])break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),c.Cmd.get("[");case 93:return this.nextChar(),c.Cmd.get("]");case 60:return 60===(t=this.nextChar())?(this.nextChar(),c.Cmd.get("<<")):this.getHexString();case 62:return 62===(t=this.nextChar())?(this.nextChar(),c.Cmd.get(">>")):c.Cmd.get(">");case 123:return this.nextChar(),c.Cmd.get("{");case 125:return this.nextChar(),c.Cmd.get("}");case 41:throw this.nextChar(),new o.FormatError("Illegal character: ".concat(t))}for(var r=String.fromCharCode(t),n=this.knownCommands,l=n&&void 0!==n[r];(t=this.nextChar())>=0&&!S[t];){var h=r+String.fromCharCode(t);if(l&&void 0===n[h])break;if(128===r.length)throw new o.FormatError("Command token too long: ".concat(r.length));r=h,l=n&&void 0!==n[r]}return"true"===r||"false"!==r&&("null"===r?null:("BI"===r&&(this.beginInlineImagePos=this.stream.pos),c.Cmd.get(r)))}},{key:"skipToNextLine",value:function(){for(var e=this.currentChar;e>=0;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}])}();t.Lexer=x;var C=function(){return y((function e(){w(this,e)}),null,[{key:"create",value:function(e){function t(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.get(t);if(Number.isInteger(n)&&(r?n>=0:n>0))return n;throw new Error('The "'.concat(t,'" parameter in the linearization ')+"dictionary is invalid.")}var r,n,l=new k({lexer:new x(e),xref:null}),h=l.getObj(),d=l.getObj(),f=l.getObj(),m=l.getObj();if(!(Number.isInteger(h)&&Number.isInteger(d)&&(0,c.isCmd)(f,"obj")&&(0,c.isDict)(m)&&(0,o.isNum)(r=m.get("Linearized"))&&r>0))return null;if((n=t(m,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:n,hints:function(e){var t,r=e.get("H");if(Array.isArray(r)&&(2===(t=r.length)||4===t)){for(var n=0;n<t;n++){var o=r[n];if(!(Number.isInteger(o)&&o>0))throw new Error("Hint (".concat(n,") in the linearization dictionary is invalid."))}return r}throw new Error("Hint array in the linearization dictionary is invalid.")}(m),objectNumberFirst:t(m,"O"),endFirst:t(m,"E"),numPages:t(m,"N"),mainXRefEntriesOffset:t(m,"T"),pageFirst:m.has("P")?t(m,"P",!0):0}}}])}();t.Linearization=C},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=t.StringStream=t.StreamsSequenceStream=t.Stream=t.RunLengthStream=t.PredictorStream=t.NullStream=t.FlateStream=t.DecodeStream=t.DecryptStream=t.AsciiHexStream=t.Ascii85Stream=void 0;var n=r(2),o=r(5),c=r(8),l=function(){function e(e,t,r,n){this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+r||this.bytes.length,this.dict=n}return e.prototype={get length(){return this.end-this.start},get isEmpty(){return 0===this.length},getByte:function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.bytes,n=this.pos,o=this.end;if(!e){var c=r.subarray(n,o);return t?new Uint8ClampedArray(c):c}var l=n+e;l>o&&(l=o),this.pos=l;var h=r.subarray(n,l);return t?new Uint8ClampedArray(h):h},peekByte:function(){var e=this.getByte();return-1!==e&&this.pos--,e},peekBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBytes(e,t);return this.pos-=r.length,r},getByteRange:function(e,t){return e<0&&(e=0),t>this.end&&(t=this.end),this.bytes.subarray(e,t)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=this.start},moveStart:function(){this.start=this.pos},makeSubStream:function(t,r,n){return new e(this.bytes.buffer,t,r,n)}},e}();t.Stream=l;var h=function(){function e(e){var t=(0,n.stringToBytes)(e);l.call(this,t)}return e.prototype=l.prototype,e}();t.StringStream=h;var d=function(){var e=new Uint8Array(0);function t(t){if(this._rawMinBufferLength=t||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=e,this.minBufferLength=512,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}return t.prototype={get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength},ensureBuffer:function(e){var t=this.buffer;if(e<=t.byteLength)return t;for(var r=this.minBufferLength;r<e;)r*=2;var n=new Uint8Array(r);return n.set(t),this.buffer=n},getByte:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},getUint16:function(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t},getInt32:function(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()},getBytes:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.pos;if(e){for(this.ensureBuffer(n+e),t=n+e;!this.eof&&this.bufferLength<t;)this.readBlock();var o=this.bufferLength;t>o&&(t=o)}else{for(;!this.eof;)this.readBlock();t=this.bufferLength}this.pos=t;var c=this.buffer.subarray(n,t);return!r||c instanceof Uint8ClampedArray?c:new Uint8ClampedArray(c)},peekByte:function(){var e=this.getByte();return-1!==e&&this.pos--,e},peekBytes:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getBytes(e,t);return this.pos-=r.length,r},makeSubStream:function(e,t,r){for(var n=e+t;this.bufferLength<=n&&!this.eof;)this.readBlock();return new l(this.buffer,e,t,r)},getByteRange:function(e,t){(0,n.unreachable)("Should not call DecodeStream.getByteRange")},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0},getBaseStreams:function(){return this.str&&this.str.getBaseStreams?this.str.getBaseStreams():[]}},t}();t.DecodeStream=d;var m=function(){function e(e){this.streams=e;for(var t=0,i=0,r=e.length;i<r;i++){var n=e[i];t+=n instanceof d?n._rawMinBufferLength:n.length}d.call(this,t)}return e.prototype=Object.create(d.prototype),e.prototype.readBlock=function(){var e=this.streams;if(0!==e.length){var t=e.shift().getBytes(),r=this.bufferLength,n=r+t.length;this.ensureBuffer(n).set(t,r),this.bufferLength=n}else this.eof=!0},e.prototype.getBaseStreams=function(){for(var e=[],i=0,t=this.streams.length;i<t;i++){var r=this.streams[i];r.getBaseStreams&&e.push.apply(e,f(r.getBaseStreams()))}return e},e}();t.StreamsSequenceStream=m;var v=function(){var e=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),t=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),r=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),o=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],c=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];function l(e,t){this.str=e,this.dict=e.dict;var r=e.getByte(),o=e.getByte();if(-1===r||-1===o)throw new n.FormatError("Invalid header in flate stream: ".concat(r,", ").concat(o));if(8!=(15&r))throw new n.FormatError("Unknown compression method in flate stream: ".concat(r,", ").concat(o));if(((r<<8)+o)%31!=0)throw new n.FormatError("Bad FCHECK in flate stream: ".concat(r,", ").concat(o));if(32&o)throw new n.FormatError("FDICT bit set in flate stream: ".concat(r,", ").concat(o));this.codeSize=0,this.codeBuf=0,d.call(this,t)}return l.prototype=Object.create(d.prototype),l.prototype.getBits=function(e){for(var b,t=this.str,r=this.codeSize,o=this.codeBuf;r<e;){if(-1===(b=t.getByte()))throw new n.FormatError("Bad encoding in flate stream");o|=b<<r,r+=8}return b=o&(1<<e)-1,this.codeBuf=o>>e,this.codeSize=r-=e,b},l.prototype.getCode=function(table){for(var b,e=this.str,t=table[0],r=table[1],o=this.codeSize,c=this.codeBuf;o<r&&-1!==(b=e.getByte());)c|=b<<o,o+=8;var code=t[c&(1<<r)-1],l=code>>16,h=65535&code;if(l<1||o<l)throw new n.FormatError("Bad encoding in flate stream");return this.codeBuf=c>>l,this.codeSize=o-l,h},l.prototype.generateHuffmanTable=function(e){var i,t=e.length,r=0;for(i=0;i<t;++i)e[i]>r&&(r=e[i]);for(var n=1<<r,o=new Int32Array(n),c=1,code=0,l=2;c<=r;++c,code<<=1,l<<=1)for(var h=0;h<t;++h)if(e[h]===c){var d=0,f=code;for(i=0;i<c;++i)d=d<<1|1&f,f>>=1;for(i=d;i<n;i+=l)o[i]=c<<16|h;++code}return[o,r]},l.prototype.readBlock=function(){var l,h,d=this.str,f=this.getBits(3);if(1&f&&(this.eof=!0),0!=(f>>=1)){var m,v;if(1===f)m=o,v=c;else{if(2!==f)throw new n.FormatError("Unknown block type in flate stream");var i,y=this.getBits(5)+257,k=this.getBits(5)+1,w=this.getBits(4)+4,S=new Uint8Array(e.length);for(i=0;i<w;++i)S[e[i]]=this.getBits(3);var A=this.generateHuffmanTable(S);h=0,i=0;for(var x,C,_,P=y+k,T=new Uint8Array(P);i<P;){var code=this.getCode(A);if(16===code)x=2,C=3,_=h;else if(17===code)x=3,C=3,_=h=0;else{if(18!==code){T[i++]=h=code;continue}x=7,C=11,_=h=0}for(var I=this.getBits(x)+C;I-- >0;)T[i++]=_}m=this.generateHuffmanTable(T.subarray(0,y)),v=this.generateHuffmanTable(T.subarray(y,P))}for(var E=(l=this.buffer)?l.length:0,F=this.bufferLength;;){var L=this.getCode(m);if(L<256)F+1>=E&&(E=(l=this.ensureBuffer(F+1)).length),l[F++]=L;else{if(256===L)return void(this.bufferLength=F);var O=(L=t[L-=257])>>16;O>0&&(O=this.getBits(O)),h=(65535&L)+O,L=this.getCode(v),(O=(L=r[L])>>16)>0&&(O=this.getBits(O));var R=(65535&L)+O;F+h>=E&&(E=(l=this.ensureBuffer(F+h)).length);for(var M=0;M<h;++M,++F)l[F]=l[F-R]}}}else{var b;if(-1===(b=d.getByte()))throw new n.FormatError("Bad block header in flate stream");var N=b;if(-1===(b=d.getByte()))throw new n.FormatError("Bad block header in flate stream");if(N|=b<<8,-1===(b=d.getByte()))throw new n.FormatError("Bad block header in flate stream");var D=b;if(-1===(b=d.getByte()))throw new n.FormatError("Bad block header in flate stream");if((D|=b<<8)!=(65535&~N)&&(0!==N||0!==D))throw new n.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var B=this.bufferLength,U=B+N;if(l=this.ensureBuffer(U),this.bufferLength=U,0===N)-1===d.peekByte()&&(this.eof=!0);else{var j=d.getBytes(N);l.set(j,B),j.length<N&&(this.eof=!0)}}},l}();t.FlateStream=v;var y=function(){function e(e,t,r){if(!(0,o.isDict)(r))return e;var c=this.predictor=r.get("Predictor")||1;if(c<=1)return e;if(2!==c&&(c<10||c>15))throw new n.FormatError("Unsupported predictor: ".concat(c));this.readBlock=2===c?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;var l=this.colors=r.get("Colors")||1,h=this.bits=r.get("BitsPerComponent")||8,f=this.columns=r.get("Columns")||1;return this.pixBytes=l*h+7>>3,this.rowBytes=f*l*h+7>>3,d.call(this,t),this}return e.prototype=Object.create(d.prototype),e.prototype.readBlockTiff=function(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),n=this.bits,o=this.colors,c=this.str.getBytes(e);if(this.eof=!c.length,!this.eof){var i,l=0,h=0,d=0,f=0,m=t;if(1===n&&1===o)for(i=0;i<e;++i){var v=c[i]^l;v^=v>>1,v^=v>>2,l=(1&(v^=v>>4))<<7,r[m++]=v}else if(8===n){for(i=0;i<o;++i)r[m++]=c[i];for(;i<e;++i)r[m]=r[m-o]+c[i],m++}else if(16===n){var y=2*o;for(i=0;i<y;++i)r[m++]=c[i];for(;i<e;i+=2){var k=((255&c[i])<<8)+(255&c[i+1])+((255&r[m-y])<<8)+(255&r[m-y+1]);r[m++]=k>>8&255,r[m++]=255&k}}else{var w=new Uint8Array(o+1),S=(1<<n)-1,A=0,x=t,C=this.columns;for(i=0;i<C;++i)for(var _=0;_<o;++_)d<n&&(l=l<<8|255&c[A++],d+=8),w[_]=w[_]+(l>>d-n)&S,d-=n,h=h<<n|w[_],(f+=n)>=8&&(r[x++]=h>>f-8&255,f-=8);f>0&&(r[x++]=(h<<8-f)+(l&(1<<8-f)-1))}this.bufferLength+=e}},e.prototype.readBlockPng=function(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),o=this.str.getBytes(e);if(this.eof=!o.length,!this.eof){var c=this.bufferLength,l=this.ensureBuffer(c+e),h=l.subarray(c-e,c);0===h.length&&(h=new Uint8Array(e));var i,d,f,m=c;switch(r){case 0:for(i=0;i<e;++i)l[m++]=o[i];break;case 1:for(i=0;i<t;++i)l[m++]=o[i];for(;i<e;++i)l[m]=l[m-t]+o[i]&255,m++;break;case 2:for(i=0;i<e;++i)l[m++]=h[i]+o[i]&255;break;case 3:for(i=0;i<t;++i)l[m++]=(h[i]>>1)+o[i];for(;i<e;++i)l[m]=(h[i]+l[m-t]>>1)+o[i]&255,m++;break;case 4:for(i=0;i<t;++i)d=h[i],f=o[i],l[m++]=d+f;for(;i<e;++i){d=h[i];var v=h[i-t],y=l[m-t],p=y+d-v,k=p-y;k<0&&(k=-k);var w=p-d;w<0&&(w=-w);var S=p-v;S<0&&(S=-S),f=o[i],l[m++]=k<=w&&k<=S?y+f:w<=S?d+f:v+f}break;default:throw new n.FormatError("Unsupported predictor: ".concat(r))}this.bufferLength+=e}},e}();t.PredictorStream=y;var k=function(){function e(e,t,r){this.str=e,this.dict=e.dict,this.decrypt=r,this.nextChunk=null,this.initialized=!1,d.call(this,t)}return e.prototype=Object.create(d.prototype),e.prototype.readBlock=function(){var e;if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(512),this.initialized=!0),e&&0!==e.length){this.nextChunk=this.str.getBytes(512);var t=this.nextChunk&&this.nextChunk.length>0;e=(0,this.decrypt)(e,!t);var i,r=this.bufferLength,n=e.length,o=this.ensureBuffer(r+n);for(i=0;i<n;i++)o[r++]=e[i];this.bufferLength=r}else this.eof=!0},e}();t.DecryptStream=k;var w=function(){function e(e,t){this.str=e,this.dict=e.dict,this.input=new Uint8Array(5),t&&(t*=.8),d.call(this,t)}return e.prototype=Object.create(d.prototype),e.prototype.readBlock=function(){for(var e=this.str,t=e.getByte();(0,c.isWhiteSpace)(t);)t=e.getByte();if(-1!==t&&126!==t){var r,i,n=this.bufferLength;if(122===t){for(r=this.ensureBuffer(n+4),i=0;i<4;++i)r[n+i]=0;this.bufferLength+=4}else{var input=this.input;for(input[0]=t,i=1;i<5;++i){for(t=e.getByte();(0,c.isWhiteSpace)(t);)t=e.getByte();if(input[i]=t,-1===t||126===t)break}if(r=this.ensureBuffer(n+i-1),this.bufferLength+=i-1,i<5){for(;i<5;++i)input[i]=117;this.eof=!0}var o=0;for(i=0;i<5;++i)o=85*o+(input[i]-33);for(i=3;i>=0;--i)r[n+i]=255&o,o>>=8}}else this.eof=!0},e}();t.Ascii85Stream=w;var S=function(){function e(e,t){this.str=e,this.dict=e.dict,this.firstDigit=-1,t&&(t*=.5),d.call(this,t)}return e.prototype=Object.create(d.prototype),e.prototype.readBlock=function(){var e=this.str.getBytes(8e3);if(e.length){for(var t=e.length+1>>1,r=this.ensureBuffer(this.bufferLength+t),n=this.bufferLength,o=this.firstDigit,i=0,c=e.length;i<c;i++){var l,h=e[i];if(h>=48&&h<=57)l=15&h;else{if(!(h>=65&&h<=70||h>=97&&h<=102)){if(62===h){this.eof=!0;break}continue}l=9+(15&h)}o<0?o=l:(r[n++]=o<<4|l,o=-1)}o>=0&&this.eof&&(r[n++]=o<<4,o=-1),this.firstDigit=o,this.bufferLength=n}else this.eof=!0},e}();t.AsciiHexStream=S;var A=function(){function e(e,t){this.str=e,this.dict=e.dict,d.call(this,t)}return e.prototype=Object.create(d.prototype),e.prototype.readBlock=function(){var e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{var t,r=this.bufferLength,n=e[0];if(n<128){if((t=this.ensureBuffer(r+n+1))[r++]=e[1],n>0){var source=this.str.getBytes(n);t.set(source,r),r+=n}}else{n=257-n;var b=e[1];t=this.ensureBuffer(r+n+1);for(var i=0;i<n;i++)t[r++]=b}this.bufferLength=r}},e}();t.RunLengthStream=A;var x=function(){function e(e,t,r){this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;for(var n=4096,o={earlyChange:r,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(n),dictionaryLengths:new Uint16Array(n),dictionaryPrevCodes:new Uint16Array(n),currentSequence:new Uint8Array(n),currentSequenceLength:0},i=0;i<256;++i)o.dictionaryValues[i]=i,o.dictionaryLengths[i]=1;this.lzwState=o,d.call(this,t)}return e.prototype=Object.create(d.prototype),e.prototype.readBits=function(e){for(var t=this.bitsCached,r=this.cachedData;t<e;){var n=this.str.getByte();if(-1===n)return this.eof=!0,null;r=r<<8|n,t+=8}return this.bitsCached=t-=e,this.cachedData=r,this.lastCode=null,r>>>t&(1<<e)-1},e.prototype.readBlock=function(){var i,e,q,t=1024,r=this.lzwState;if(r){var n=r.earlyChange,o=r.nextCode,c=r.dictionaryValues,l=r.dictionaryLengths,h=r.dictionaryPrevCodes,d=r.codeLength,f=r.prevCode,m=r.currentSequence,v=r.currentSequenceLength,y=0,k=this.bufferLength,w=this.ensureBuffer(this.bufferLength+t);for(i=0;i<512;i++){var code=this.readBits(d),S=v>0;if(code<256)m[0]=code,v=1;else{if(!(code>=258)){if(256===code){d=9,o=258,v=0;continue}this.eof=!0,delete this.lzwState;break}if(code<o)for(e=(v=l[code])-1,q=code;e>=0;e--)m[e]=c[q],q=h[q];else m[v++]=m[0]}if(S&&(h[o]=f,l[o]=l[f]+1,c[o]=m[0],d=++o+n&o+n-1?d:0|Math.min(Math.log(o+n)/.6931471805599453+1,12)),f=code,t<(y+=v)){do{t+=512}while(t<y);w=this.ensureBuffer(this.bufferLength+t)}for(e=0;e<v;e++)w[k++]=m[e]}r.nextCode=o,r.codeLength=d,r.prevCode=f,r.currentSequenceLength=v,this.bufferLength=k}},e}();t.LZWStream=x;var C=function(){function e(){l.call(this,new Uint8Array(0))}return e.prototype=l.prototype,e}();t.NullStream=C},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var n=r(5),o=r(14),c=r(12),l=function(){function e(e,t,r){this.str=e,this.dict=e.dict,(0,n.isDict)(r)||(r=n.Dict.empty);var source={next:function(){return e.getByte()}};this.ccittFaxDecoder=new o.CCITTFaxDecoder(source,{K:r.get("K"),EndOfLine:r.get("EndOfLine"),EncodedByteAlign:r.get("EncodedByteAlign"),Columns:r.get("Columns"),Rows:r.get("Rows"),EndOfBlock:r.get("EndOfBlock"),BlackIs1:r.get("BlackIs1")}),c.DecodeStream.call(this,t)}return e.prototype=Object.create(c.DecodeStream.prototype),e.prototype.readBlock=function(){for(;!this.eof;){var e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}},e}();t.CCITTFaxStream=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0;var n=r(2),o=function(){var e=-1,t=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[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],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],r=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],o=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],c=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],l=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],h=[[-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 d(source){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!source||"function"!=typeof source.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=source,this.eof=!1,this.encoding=e.K||0,this.eoline=e.EndOfLine||!1,this.byteAlign=e.EncodedByteAlign||!1,this.columns=e.Columns||1728,this.rows=e.Rows||0;var t,r=e.EndOfBlock;for(null==r&&(r=!0),this.eoblock=r,this.black=e.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;0===(t=this._lookBits(12));)this._eatBits(1);1===t&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}return d.prototype={readNextChar:function(){if(this.eof)return-1;var t,r,o,i,c,l=this.refLine,h=this.codingLine,d=this.columns;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;var f,m,v;if(this.err=!1,this.nextLine2D){for(i=0;h[i]<d;++i)l[i]=h[i];for(l[i++]=d,l[i]=d,h[0]=0,this.codingPos=0,t=0,r=0;h[this.codingPos]<d;)switch(f=this._getTwoDimCode()){case 0:this._addPixels(l[t+1],r),l[t+1]<d&&(t+=2);break;case 1:if(f=m=0,r){do{f+=v=this._getBlackCode()}while(v>=64);do{m+=v=this._getWhiteCode()}while(v>=64)}else{do{f+=v=this._getWhiteCode()}while(v>=64);do{m+=v=this._getBlackCode()}while(v>=64)}for(this._addPixels(h[this.codingPos]+f,r),h[this.codingPos]<d&&this._addPixels(h[this.codingPos]+m,1^r);l[t]<=h[this.codingPos]&&l[t]<d;)t+=2;break;case 7:if(this._addPixels(l[t]+3,r),r^=1,h[this.codingPos]<d)for(++t;l[t]<=h[this.codingPos]&&l[t]<d;)t+=2;break;case 5:if(this._addPixels(l[t]+2,r),r^=1,h[this.codingPos]<d)for(++t;l[t]<=h[this.codingPos]&&l[t]<d;)t+=2;break;case 3:if(this._addPixels(l[t]+1,r),r^=1,h[this.codingPos]<d)for(++t;l[t]<=h[this.codingPos]&&l[t]<d;)t+=2;break;case 2:if(this._addPixels(l[t],r),r^=1,h[this.codingPos]<d)for(++t;l[t]<=h[this.codingPos]&&l[t]<d;)t+=2;break;case 8:if(this._addPixelsNeg(l[t]-3,r),r^=1,h[this.codingPos]<d)for(t>0?--t:++t;l[t]<=h[this.codingPos]&&l[t]<d;)t+=2;break;case 6:if(this._addPixelsNeg(l[t]-2,r),r^=1,h[this.codingPos]<d)for(t>0?--t:++t;l[t]<=h[this.codingPos]&&l[t]<d;)t+=2;break;case 4:if(this._addPixelsNeg(l[t]-1,r),r^=1,h[this.codingPos]<d)for(t>0?--t:++t;l[t]<=h[this.codingPos]&&l[t]<d;)t+=2;break;case e:this._addPixels(d,0),this.eof=!0;break;default:(0,n.info)("bad 2d code"),this._addPixels(d,0),this.err=!0}}else for(h[0]=0,this.codingPos=0,r=0;h[this.codingPos]<d;){if(f=0,r)do{f+=v=this._getBlackCode()}while(v>=64);else do{f+=v=this._getWhiteCode()}while(v>=64);this._addPixels(h[this.codingPos]+f,r),r^=1}var y=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(f=this._lookBits(12),this.eoline)for(;f!==e&&1!==f;)this._eatBits(1),f=this._lookBits(12);else for(;0===f;)this._eatBits(1),f=this._lookBits(12);1===f?(this._eatBits(12),y=!0):f===e&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&y&&this.byteAlign){if(1===(f=this._lookBits(12))){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for(i=0;i<4;++i)1!==(f=this._lookBits(12))&&(0,n.info)("bad rtc code: "+f),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if((f=this._lookBits(13))===e)return this.eof=!0,-1;if(f>>1==1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(1&f))}h[0]>0?this.outputBits=h[this.codingPos=0]:this.outputBits=h[this.codingPos=1],this.row++}if(this.outputBits>=8)c=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&h[this.codingPos]<d&&(this.codingPos++,this.outputBits=h[this.codingPos]-h[this.codingPos-1]);else{o=8,c=0;do{this.outputBits>o?(c<<=o,1&this.codingPos||(c|=255>>8-o),this.outputBits-=o,o=0):(c<<=this.outputBits,1&this.codingPos||(c|=255>>8-this.outputBits),o-=this.outputBits,this.outputBits=0,h[this.codingPos]<d?(this.codingPos++,this.outputBits=h[this.codingPos]-h[this.codingPos-1]):o>0&&(c<<=o,o=0))}while(o)}return this.black&&(c^=255),c},_addPixels:function(e,t){var r=this.codingLine,o=this.codingPos;e>r[o]&&(e>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,e=this.columns),1&o^t&&++o,r[o]=e),this.codingPos=o},_addPixelsNeg:function(e,t){var r=this.codingLine,o=this.codingPos;if(e>r[o])e>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,e=this.columns),1&o^t&&++o,r[o]=e;else if(e<r[o]){for(e<0&&((0,n.info)("invalid code"),this.err=!0,e=0);o>0&&e<r[o-1];)--o;r[o]=e}this.codingPos=o},_findTableCode:function(t,r,table,n){for(var o=n||0,i=t;i<=r;++i){var code=this._lookBits(i);if(code===e)return[!0,1,!1];if(i<r&&(code<<=r-i),!o||code>=o){var p=table[code-o];if(p[0]===i)return this._eatBits(i),[!0,p[1],!0]}}return[!1,0,!1]},_getTwoDimCode:function(){var p,code=0;if(this.eoblock){if(code=this._lookBits(7),(p=t[code])&&p[0]>0)return this._eatBits(p[0]),p[1]}else{var r=this._findTableCode(1,7,t);if(r[0]&&r[2])return r[1]}return(0,n.info)("Bad two dim code"),e},_getWhiteCode:function(){var p,code=0;if(this.eoblock){if((code=this._lookBits(12))===e)return 1;if((p=code>>5?o[code>>3]:r[code])[0]>0)return this._eatBits(p[0]),p[1]}else{var t=this._findTableCode(1,9,o);if(t[0])return t[1];if((t=this._findTableCode(11,12,r))[0])return t[1]}return(0,n.info)("bad white code"),this._eatBits(1),1},_getBlackCode:function(){var code,p;if(this.eoblock){if((code=this._lookBits(13))===e)return 1;if((p=code>>7?!(code>>9)&&code>>7?l[(code>>1)-64]:h[code>>7]:c[code])[0]>0)return this._eatBits(p[0]),p[1]}else{var t=this._findTableCode(2,6,h);if(t[0])return t[1];if((t=this._findTableCode(7,12,l,64))[0])return t[1];if((t=this._findTableCode(10,13,c))[0])return t[1]}return(0,n.info)("bad black code"),this._eatBits(1),1},_lookBits:function(t){for(var r;this.inputBits<t;){if(-1===(r=this.source.next()))return 0===this.inputBits?e:this.inputBuf<<t-this.inputBits&65535>>16-t;this.inputBuf=this.inputBuf<<8|r,this.inputBits+=8}return this.inputBuf>>this.inputBits-t&65535>>16-t},_eatBits:function(e){(this.inputBits-=e)<0&&(this.inputBits=0)}},d}();t.CCITTFaxDecoder=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var n=r(5),o=r(12),c=r(16),l=r(2),h=function(){function e(e,t,r,n){this.stream=e,this.maybeLength=t,this.dict=r,this.params=n,o.DecodeStream.call(this,t)}return e.prototype=Object.create(o.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,l.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(!this.eof){var e=new c.Jbig2Image,t=[];if((0,n.isDict)(this.params)){var r=this.params.get("JBIG2Globals");if((0,n.isStream)(r)){var o=r.getBytes();t.push({data:o,start:0,end:o.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});for(var data=e.parseChunks(t),l=data.length,i=0;i<l;i++)data[i]^=255;this.buffer=data,this.bufferLength=l,this.eof=!0}},e}();t.Jbig2Stream=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var n=r(2),o=r(8),c=r(17),l=r(14),h=function(e){function t(e){return w(this,t),S(this,t,["JBIG2 error: ".concat(e)])}return _(t,e),y(t)}(n.BaseException),d=function(){function e(){}function t(data,e,t){this.data=data,this.start=e,this.end=t}function r(e,t,r){var n=e.getContexts(t),o=1;function c(e){for(var t=0,i=0;i<e;i++){var c=r.readBit(n,o);o=o<256?o<<1|c:511&(o<<1|c)|256,t=t<<1|c}return t>>>0}var l=c(1),h=c(1)?c(1)?c(1)?c(1)?c(1)?c(32)+4436:c(12)+340:c(8)+84:c(6)+20:c(4)+4:c(2);return 0===l?h:h>0?-h:null}function d(e,t,r){for(var n=e.getContexts("IAID"),o=1,i=0;i<r;i++)o=o<<1|t.readBit(n,o);return r<31?o&(1<<r)-1:2147483647&o}e.prototype={getContexts:function(e){return e in this?this[e]:this[e]=new Int8Array(65536)}},t.prototype={get decoder(){var e=new c.ArithmeticDecoder(this.data,this.start,this.end);return(0,n.shadow)(this,"decoder",e)},get contextCache(){var t=new e;return(0,n.shadow)(this,"contextCache",t)}};var f=["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"],m=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],v=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],y=[39717,1941,229,405],k=[32,8];function w(e,t,r,n,o,c,l,h){if(e)return U(new N(h.data,h.start,h.end),t,r,!1);if(0===n&&!c&&!o&&4===l.length&&3===l[0].x&&-1===l[0].y&&-3===l[1].x&&-1===l[1].y&&2===l[2].x&&-2===l[2].y&&-2===l[3].x&&-2===l[3].y)return function(e,t,r){var n,i,o,c,l,h,d,f=r.decoder,m=r.contextCache.getContexts("GB"),v=[];for(i=0;i<t;i++)for(l=v[i]=new Uint8Array(e),h=i<1?l:v[i-1],n=(d=i<2?l:v[i-2])[0]<<13|d[1]<<12|d[2]<<11|h[0]<<7|h[1]<<6|h[2]<<5|h[3]<<4,o=0;o<e;o++)l[o]=c=f.readBit(m,n),n=(31735&n)<<1|(o+3<e?d[o+3]<<11:0)|(o+4<e?h[o+4]<<4:0)|c;return v}(t,r,h);var d=!!c,template=m[n].concat(l);template.sort((function(a,b){return a.y-b.y||a.x-b.x}));var f,v,k=template.length,w=new Int8Array(k),S=new Int8Array(k),A=[],x=0,C=0,_=0,P=0;for(v=0;v<k;v++)w[v]=template[v].x,S[v]=template[v].y,C=Math.min(C,template[v].x),_=Math.max(_,template[v].x),P=Math.min(P,template[v].y),v<k-1&&template[v].y===template[v+1].y&&template[v].x===template[v+1].x-1?x|=1<<k-1-v:A.push(v);var T=A.length,I=new Int8Array(T),E=new Int8Array(T),F=new Uint16Array(T);for(f=0;f<T;f++)v=A[f],I[f]=template[v].x,E[f]=template[v].y,F[f]=1<<k-1-v;for(var L,O,R,M,D,B=-C,j=-P,H=t-_,G=y[n],z=new Uint8Array(t),W=[],V=h.decoder,X=h.contextCache.getContexts("GB"),Y=0,K=0,i=0;i<r;i++)if(o&&(Y^=V.readBit(X,G)))W.push(z);else for(z=new Uint8Array(z),W.push(z),L=0;L<t;L++)if(d&&c[i][L])z[L]=0;else{if(L>=B&&L<H&&i>=j)for(K=K<<1&x,v=0;v<T;v++)O=i+E[v],R=L+I[v],(M=W[O][R])&&(K|=M=F[v]);else for(K=0,D=k-1,v=0;v<k;v++,D--)(R=L+w[v])>=0&&R<t&&(O=i+S[v])>=0&&(M=W[O][R])&&(K|=M<<D);var J=V.readBit(X,K);z[L]=J}return W}function S(e,t,r,n,o,c,l,d,f){var m=v[r].coding;0===r&&(m=m.concat([d[0]]));var y,w=m.length,S=new Int32Array(w),A=new Int32Array(w);for(y=0;y<w;y++)S[y]=m[y].x,A[y]=m[y].y;var x=v[r].reference;0===r&&(x=x.concat([d[1]]));var C=x.length,_=new Int32Array(C),P=new Int32Array(C);for(y=0;y<C;y++)_[y]=x[y].x,P[y]=x[y].y;for(var T=n[0].length,I=n.length,E=k[r],F=[],L=f.decoder,O=f.contextCache.getContexts("GR"),R=0,i=0;i<t;i++){if(l&&(R^=L.readBit(O,E)))throw new h("prediction is not supported");var M=new Uint8Array(e);F.push(M);for(var N=0;N<e;N++){var D,B,U=0;for(y=0;y<w;y++)D=i+A[y],B=N+S[y],D<0||B<0||B>=e?U<<=1:U=U<<1|F[D][B];for(y=0;y<C;y++)D=i+P[y]-c,B=N+_[y]-o,D<0||D>=I||B<0||B>=T?U<<=1:U=U<<1|n[D][B];var j=L.readBit(O,U);M[N]=j}}return F}function A(e,t,n,o,c,l,f,m,v,y,k,w,A,x,C,_,P,T,I){if(e&&t)throw new h("refinement with Huffman is not supported");var i,E,F=[];for(i=0;i<o;i++){if(E=new Uint8Array(n),c)for(var L=0;L<n;L++)E[L]=c;F.push(E)}var O=P.decoder,R=P.contextCache,M=e?-x.tableDeltaT.decode(I):-r(R,"IADT",O),N=0;for(i=0;i<l;){M+=e?x.tableDeltaT.decode(I):r(R,"IADT",O);for(var D=N+=e?x.tableFirstS.decode(I):r(R,"IAFS",O);;){var B=0;f>1&&(B=e?I.readBits(T):r(R,"IAIT",O));var U=f*M+B,j=e?x.symbolIDTable.decode(I):d(R,O,v),H=t&&(e?I.readBit():r(R,"IARI",O)),G=m[j],z=G[0].length,W=G.length;if(H){var V=r(R,"IARDW",O),X=r(R,"IARDH",O);G=S(z+=V,W+=X,C,G,(V>>1)+r(R,"IARDX",O),(X>>1)+r(R,"IARDY",O),!1,_,P)}var Y,K,J,Z=U-(1&w?0:W-1),Q=D-(2&w?z-1:0);if(y){for(Y=0;Y<W;Y++)if(E=F[Q+Y]){J=G[Y];var $=Math.min(n-Z,z);switch(A){case 0:for(K=0;K<$;K++)E[Z+K]|=J[K];break;case 2:for(K=0;K<$;K++)E[Z+K]^=J[K];break;default:throw new h("operator ".concat(A," is not supported"))}}D+=W-1}else{for(K=0;K<W;K++)if(E=F[Z+K])switch(J=G[K],A){case 0:for(Y=0;Y<z;Y++)E[Q+Y]|=J[Y];break;case 2:for(Y=0;Y<z;Y++)E[Q+Y]^=J[Y];break;default:throw new h("operator ".concat(A," is not supported"))}D+=z-1}i++;var ee=e?x.tableDeltaS.decode(I):r(R,"IADS",O);if(null===ee)break;D+=ee+k}}return F}function x(data,e){var t={};t.number=(0,o.readUint32)(data,e);var r=data[e+4],n=63&r;if(!f[n])throw new h("invalid segment type: "+n);t.type=n,t.typeName=f[n],t.deferredNonRetain=!!(128&r);var c=!!(64&r),l=data[e+5],d=l>>5&7,m=[31&l],v=e+6;if(7===l){d=536870911&(0,o.readUint32)(data,v-1),v+=3;var y=d+7>>3;for(m[0]=data[v++];--y>0;)m.push(data[v++])}else if(5===l||6===l)throw new h("invalid referred-to flags");t.retainBits=m;var k=4;t.number<=256?k=1:t.number<=65536&&(k=2);var i,w,S=[];for(i=0;i<d;i++){var A=void 0;A=1===k?data[v]:2===k?(0,o.readUint16)(data,v):(0,o.readUint32)(data,v),S.push(A),v+=k}if(t.referredTo=S,c?(t.pageAssociation=(0,o.readUint32)(data,v),v+=4):t.pageAssociation=data[v++],t.length=(0,o.readUint32)(data,v),v+=4,4294967295===t.length){if(38!==n)throw new h("invalid unknown segment length");var x=_(data,v),C=!!(1&data[v+P]),T=new Uint8Array(6);for(C||(T[0]=255,T[1]=172),T[2]=x.height>>>24&255,T[3]=x.height>>16&255,T[4]=x.height>>8&255,T[5]=255&x.height,i=v,w=data.length;i<w;i++){for(var I=0;I<6&&T[I]===data[i+I];)I++;if(6===I){t.length=i+6;break}}if(4294967295===t.length)throw new h("segment end was not found")}return t.headerEnd=v,t}function C(header,data,e,t){for(var r=[],n=e;n<t;){var o=x(data,n);n=o.headerEnd;var c={header:o,data:data};if(header.randomAccess||(c.start=n,n+=o.length,c.end=n),r.push(c),51===o.type)break}if(header.randomAccess)for(var i=0,l=r.length;i<l;i++)r[i].start=n,n+=r[i].header.length,r[i].end=n;return r}function _(data,e){return{width:(0,o.readUint32)(data,e),height:(0,o.readUint32)(data,e+4),x:(0,o.readUint32)(data,e+8),y:(0,o.readUint32)(data,e+12),combinationOperator:7&data[e+16]}}var P=17;function T(e,t){var r,n,i,c,header=e.header,data=e.data,l=e.start,d=e.end;switch(header.type){case 0:var f={},m=(0,o.readUint16)(data,l);if(f.huffman=!!(1&m),f.refinement=!!(2&m),f.huffmanDHSelector=m>>2&3,f.huffmanDWSelector=m>>4&3,f.bitmapSizeSelector=m>>6&1,f.aggregationInstancesSelector=m>>7&1,f.bitmapCodingContextUsed=!!(256&m),f.bitmapCodingContextRetained=!!(512&m),f.template=m>>10&3,f.refinementTemplate=m>>12&1,l+=2,!f.huffman){for(c=0===f.template?4:1,n=[],i=0;i<c;i++)n.push({x:(0,o.readInt8)(data,l),y:(0,o.readInt8)(data,l+1)}),l+=2;f.at=n}if(f.refinement&&!f.refinementTemplate){for(n=[],i=0;i<2;i++)n.push({x:(0,o.readInt8)(data,l),y:(0,o.readInt8)(data,l+1)}),l+=2;f.refinementAt=n}f.numberOfExportedSymbols=(0,o.readUint32)(data,l),l+=4,f.numberOfNewSymbols=(0,o.readUint32)(data,l),l+=4,r=[f,header.number,header.referredTo,data,l,d];break;case 6:case 7:var v={};v.info=_(data,l),l+=P;var y=(0,o.readUint16)(data,l);if(l+=2,v.huffman=!!(1&y),v.refinement=!!(2&y),v.logStripSize=y>>2&3,v.stripSize=1<<v.logStripSize,v.referenceCorner=y>>4&3,v.transposed=!!(64&y),v.combinationOperator=y>>7&3,v.defaultPixelValue=y>>9&1,v.dsOffset=y<<17>>27,v.refinementTemplate=y>>15&1,v.huffman){var k=(0,o.readUint16)(data,l);l+=2,v.huffmanFS=3&k,v.huffmanDS=k>>2&3,v.huffmanDT=k>>4&3,v.huffmanRefinementDW=k>>6&3,v.huffmanRefinementDH=k>>8&3,v.huffmanRefinementDX=k>>10&3,v.huffmanRefinementDY=k>>12&3,v.huffmanRefinementSizeSelector=!!(16384&k)}if(v.refinement&&!v.refinementTemplate){for(n=[],i=0;i<2;i++)n.push({x:(0,o.readInt8)(data,l),y:(0,o.readInt8)(data,l+1)}),l+=2;v.refinementAt=n}v.numberOfSymbolInstances=(0,o.readUint32)(data,l),l+=4,r=[v,header.referredTo,data,l,d];break;case 16:var w={},S=data[l++];w.mmr=!!(1&S),w.template=S>>1&3,w.patternWidth=data[l++],w.patternHeight=data[l++],w.maxPatternIndex=(0,o.readUint32)(data,l),l+=4,r=[w,header.number,data,l,d];break;case 22:case 23:var A={};A.info=_(data,l),l+=P;var x=data[l++];A.mmr=!!(1&x),A.template=x>>1&3,A.enableSkip=!!(8&x),A.combinationOperator=x>>4&7,A.defaultPixelValue=x>>7&1,A.gridWidth=(0,o.readUint32)(data,l),l+=4,A.gridHeight=(0,o.readUint32)(data,l),l+=4,A.gridOffsetX=4294967295&(0,o.readUint32)(data,l),l+=4,A.gridOffsetY=4294967295&(0,o.readUint32)(data,l),l+=4,A.gridVectorX=(0,o.readUint16)(data,l),l+=2,A.gridVectorY=(0,o.readUint16)(data,l),l+=2,r=[A,header.referredTo,data,l,d];break;case 38:case 39:var C={};C.info=_(data,l),l+=P;var T=data[l++];if(C.mmr=!!(1&T),C.template=T>>1&3,C.prediction=!!(8&T),!C.mmr){for(c=0===C.template?4:1,n=[],i=0;i<c;i++)n.push({x:(0,o.readInt8)(data,l),y:(0,o.readInt8)(data,l+1)}),l+=2;C.at=n}r=[C,data,l,d];break;case 48:var I={width:(0,o.readUint32)(data,l),height:(0,o.readUint32)(data,l+4),resolutionX:(0,o.readUint32)(data,l+8),resolutionY:(0,o.readUint32)(data,l+12)};4294967295===I.height&&delete I.height;var E=data[l+16];(0,o.readUint16)(data,l+17),I.lossless=!!(1&E),I.refinement=!!(2&E),I.defaultPixelValue=E>>2&1,I.combinationOperator=E>>3&3,I.requiresBuffer=!!(32&E),I.combinationOperatorOverride=!!(64&E),r=[I];break;case 49:case 50:case 51:case 62:break;case 53:r=[header.number,data,l,d];break;default:throw new h("segment type ".concat(header.typeName,"(").concat(header.type,")")+" is not implemented")}var F="on"+header.typeName;F in t&&t[F].apply(t,r)}function I(e,t){for(var i=0,r=e.length;i<r;i++)T(e[i],t)}function E(){}function F(e){2===e.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=e[0],this.rangeLength=0,this.prefixCode=e[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=e[0],this.prefixLength=e[1],this.rangeLength=e[2],this.prefixCode=e[3],this.isLowerRange="lower"===e[4])}function L(line){this.children=[],line?(this.isLeaf=!0,this.rangeLength=line.rangeLength,this.rangeLow=line.rangeLow,this.isLowerRange=line.isLowerRange,this.isOOB=line.isOOB):this.isLeaf=!1}function O(e,t){t||this.assignPrefixCodes(e),this.rootNode=new L(null);for(var i=0,r=e.length;i<r;i++){var line=e[i];line.prefixLength>0&&this.rootNode.buildTree(line,line.prefixLength-1)}}E.prototype={onPageInformation:function(e){this.currentPageInfo=e;var t=e.width+7>>3,r=new Uint8ClampedArray(t*e.height);if(e.defaultPixelValue)for(var i=0,n=r.length;i<n;i++)r[i]=255;this.buffer=r},drawBitmap:function(e,t){var i,r,mask,n,o=this.currentPageInfo,c=e.width,l=e.height,d=o.width+7>>3,f=o.combinationOperatorOverride?e.combinationOperator:o.combinationOperator,m=this.buffer,v=128>>(7&e.x),y=e.y*d+(e.x>>3);switch(f){case 0:for(i=0;i<l;i++){for(mask=v,n=y,r=0;r<c;r++)t[i][r]&&(m[n]|=mask),(mask>>=1)||(mask=128,n++);y+=d}break;case 2:for(i=0;i<l;i++){for(mask=v,n=y,r=0;r<c;r++)t[i][r]&&(m[n]^=mask),(mask>>=1)||(mask=128,n++);y+=d}break;default:throw new h("operator ".concat(f," is not supported"))}},onImmediateGenericRegion:function(e,data,r,n){var o=e.info,c=new t(data,r,n),l=w(e.mmr,o.width,o.height,e.template,e.prediction,null,e.at,c);this.drawBitmap(o,l)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(e,n,c,data,l,f){var m,v;e.huffman&&(m=function(e,t,r){var n,o,c,l,d=0;switch(e.huffmanDHSelector){case 0:case 1:n=M(e.huffmanDHSelector+4);break;case 3:n=D(d,t,r),d++;break;default:throw new h("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:o=M(e.huffmanDWSelector+2);break;case 3:o=D(d,t,r),d++;break;default:throw new h("invalid Huffman DW selector")}return e.bitmapSizeSelector?(c=D(d,t,r),d++):c=M(1),l=e.aggregationInstancesSelector?D(d,t,r):M(1),{tableDeltaHeight:n,tableDeltaWidth:o,tableBitmapSize:c,tableAggregateInstances:l}}(e,c,this.customTables),v=new N(data,l,f));var y=this.symbols;y||(this.symbols=y={});for(var k=[],i=0,x=c.length;i<x;i++){var C=y[c[i]];C&&(k=k.concat(C))}var _=new t(data,l,f);y[n]=function(e,t,n,c,l,f,m,v,y,k,x,C){if(e&&t)throw new h("symbol refinement with Huffman is not supported");var _,P,T=[],I=0,E=(0,o.log2)(n.length+c),F=x.decoder,L=x.contextCache;for(e&&(_=M(1),P=[],E=Math.max(E,1));T.length<c;){I+=e?f.tableDeltaHeight.decode(C):r(L,"IADH",F);for(var O=0,R=0,N=e?P.length:0;;){var D,j=e?f.tableDeltaWidth.decode(C):r(L,"IADW",F);if(null===j)break;if(R+=O+=j,t){var H=r(L,"IAAI",F);if(H>1)D=A(e,t,O,I,0,H,1,n.concat(T),E,0,0,1,0,f,y,k,x,0,C);else{var G=d(L,F,E),z=r(L,"IARDX",F),W=r(L,"IARDY",F);D=S(O,I,y,G<n.length?n[G]:T[G-n.length],z,W,!1,k,x)}T.push(D)}else e?P.push(O):(D=w(!1,O,I,m,!1,null,v,x),T.push(D))}if(e&&!t){var V=f.tableBitmapSize.decode(C);C.byteAlign();var X=void 0;if(0===V)X=B(C,R,I);else{var Y=C.end,K=C.position+V;C.end=K,X=U(C,R,I,!1),C.end=Y,C.position=K}var J=P.length;if(N===J-1)T.push(X);else{var Z=void 0,Q=void 0,$=0,ee=void 0,te=void 0;for(Z=N;Z<J;Z++){for(ee=$+P[Z],te=[],Q=0;Q<I;Q++)te.push(X[Q].subarray($,ee));T.push(te),$=ee}}}}for(var re=[],ae=[],ne=!1,ie=n.length+c;ae.length<ie;){for(var oe=e?_.decode(C):r(L,"IAEX",F);oe--;)ae.push(ne);ne=!ne}for(var i=0,se=n.length;i<se;i++)ae[i]&&re.push(n[i]);for(var ce=0;ce<c;i++,ce++)ae[i]&&re.push(T[ce]);return re}(e.huffman,e.refinement,k,e.numberOfNewSymbols,e.numberOfExportedSymbols,m,e.template,e.at,e.refinementTemplate,e.refinementAt,_,v)},onImmediateTextRegion:function(e,r,data,n,c){for(var l,d,f=e.info,m=this.symbols,v=[],i=0,y=r.length;i<y;i++){var k=m[r[i]];k&&(v=v.concat(k))}var w=(0,o.log2)(v.length);e.huffman&&(d=new N(data,n,c),l=function(e,t,r,n,o){for(var c=[],i=0;i<=34;i++){var l=o.readBits(4);c.push(new F([i,l,0,0]))}var d=new O(c,!1);c.length=0;for(var f=0;f<n;){var m=d.decode(o);if(m>=32){var v=void 0,y=void 0,k=void 0;switch(m){case 32:if(0===f)throw new h("no previous value in symbol ID table");y=o.readBits(2)+3,v=c[f-1].prefixLength;break;case 33:y=o.readBits(3)+3,v=0;break;case 34:y=o.readBits(7)+11,v=0;break;default:throw new h("invalid code length in symbol ID table")}for(k=0;k<y;k++)c.push(new F([f,v,0,0])),f++}else c.push(new F([f,m,0,0])),f++}o.byteAlign();var w,S,A,x=new O(c,!1),C=0;switch(e.huffmanFS){case 0:case 1:w=M(e.huffmanFS+6);break;case 3:w=D(C,t,r),C++;break;default:throw new h("invalid Huffman FS selector")}switch(e.huffmanDS){case 0:case 1:case 2:S=M(e.huffmanDS+8);break;case 3:S=D(C,t,r),C++;break;default:throw new h("invalid Huffman DS selector")}switch(e.huffmanDT){case 0:case 1:case 2:A=M(e.huffmanDT+11);break;case 3:A=D(C,t,r),C++;break;default:throw new h("invalid Huffman DT selector")}if(e.refinement)throw new h("refinement with Huffman is not supported");return{symbolIDTable:x,tableFirstS:w,tableDeltaS:S,tableDeltaT:A}}(e,r,this.customTables,v.length,d));var S=new t(data,n,c),x=A(e.huffman,e.refinement,f.width,f.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,v,w,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,l,e.refinementTemplate,e.refinementAt,S,e.logStripSize,d);this.drawBitmap(f,x)},onImmediateLosslessTextRegion:function(){this.onImmediateTextRegion.apply(this,arguments)},onPatternDictionary:function(e,r,data,n,o){var c=this.patterns;c||(this.patterns=c={});var l=new t(data,n,o);c[r]=function(e,t,r,n,template,o){var c=[];e||(c.push({x:-t,y:0}),0===template&&(c.push({x:-3,y:-1}),c.push({x:2,y:-2}),c.push({x:-2,y:-2})));for(var l=w(e,(n+1)*t,r,template,!1,null,c,o),h=[],i=0;i<=n;i++){for(var d=[],f=t*i,m=f+t,v=0;v<r;v++)d.push(l[v].subarray(f,m));h.push(d)}return h}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,l)},onImmediateHalftoneRegion:function(e,r,data,n,c){var l=this.patterns[r[0]],d=e.info,f=new t(data,n,c),m=function(e,t,template,r,n,c,l,d,f,m,v,y,k,S,A){if(l)throw new h("skip is not supported");if(0!==d)throw new h("operator "+d+" is not supported in halftone region");var i,x,C,_=[];for(i=0;i<n;i++){if(C=new Uint8Array(r),c)for(x=0;x<r;x++)C[x]=c;_.push(C)}var P=t.length,T=t[0],I=T[0].length,E=T.length,F=(0,o.log2)(P),L=[];e||(L.push({x:template<=1?3:2,y:-1}),0===template&&(L.push({x:-3,y:-1}),L.push({x:2,y:-2}),L.push({x:-2,y:-2})));var O,R,M,D,B,j,H,G,z,W,V,X=[];for(e&&(O=new N(A.data,A.start,A.end)),i=F-1;i>=0;i--)R=e?U(O,f,m,!0):w(!1,f,m,template,!1,null,L,A),X[i]=R;for(M=0;M<m;M++)for(D=0;D<f;D++){for(B=0,j=0,x=F-1;x>=0;x--)j|=(B=X[x][M][D]^B)<<x;if(H=t[j],z=y+M*k-D*S>>8,(G=v+M*S+D*k>>8)>=0&&G+I<=r&&z>=0&&z+E<=n)for(i=0;i<E;i++)for(V=_[z+i],W=H[i],x=0;x<I;x++)V[G+x]|=W[x];else{var Y=void 0,K=void 0;for(i=0;i<E;i++)if(!((K=z+i)<0||K>=n))for(V=_[K],W=H[i],x=0;x<I;x++)(Y=G+x)>=0&&Y<r&&(V[Y]|=W[x])}}return _}(e.mmr,l,e.template,d.width,d.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,f);this.drawBitmap(d,m)},onImmediateLosslessHalftoneRegion:function(){this.onImmediateHalftoneRegion.apply(this,arguments)},onTables:function(e,data,t,r){var n=this.customTables;n||(this.customTables=n={}),n[e]=function(data,e,t){var r,n,c=data[e],l=4294967295&(0,o.readUint32)(data,e+1),h=4294967295&(0,o.readUint32)(data,e+5),d=new N(data,e+9,t),f=1+(c>>1&7),m=1+(c>>4&7),v=[],y=l;do{r=d.readBits(f),n=d.readBits(m),v.push(new F([y,r,n,0])),y+=1<<n}while(y<h);return r=d.readBits(f),v.push(new F([l-1,r,32,0,"lower"])),r=d.readBits(f),v.push(new F([h,r,32,0])),1&c&&(r=d.readBits(f),v.push(new F([r,0]))),new O(v,!1)}(data,t,r)}},L.prototype={buildTree:function(line,e){var t=line.prefixCode>>e&1;if(e<=0)this.children[t]=new L(line);else{var r=this.children[t];r||(this.children[t]=r=new L(null)),r.buildTree(line,e-1)}},decodeNode:function(e){if(this.isLeaf){if(this.isOOB)return null;var t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}var r=this.children[e.readBit()];if(!r)throw new h("invalid Huffman data");return r.decodeNode(e)}},O.prototype={decode:function(e){return this.rootNode.decodeNode(e)},assignPrefixCodes:function(e){for(var t=e.length,r=0,i=0;i<t;i++)r=Math.max(r,e[i].prefixLength);for(var n=new Uint32Array(r+1),o=0;o<t;o++)n[e[o].prefixLength]++;var c,l,line,h=1,d=0;for(n[0]=0;h<=r;){for(c=d=d+n[h-1]<<1,l=0;l<t;)(line=e[l]).prefixLength===h&&(line.prefixCode=c,c++),l++;h++}}};var R={};function M(e){var t,table=R[e];if(table)return table;switch(e){case 1:t=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:t=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:t=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:t=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:t=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:t=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:t=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:t=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:t=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:t=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:t=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:t=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:t=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:t=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:t=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new h("standard table B.".concat(e," does not exist"))}for(var i=0,r=t.length;i<r;i++)t[i]=new F(t[i]);return table=new O(t,!0),R[e]=table,table}function N(data,e,t){this.data=data,this.start=e,this.end=t,this.position=e,this.shift=-1,this.currentByte=0}function D(e,t,r){for(var n=0,i=0,o=t.length;i<o;i++){var table=r[t[i]];if(table){if(e===n)return table;n++}}throw new h("can't find custom Huffman table")}function B(e,t,r){for(var n=[],o=0;o<r;o++){var c=new Uint8Array(t);n.push(c);for(var l=0;l<t;l++)c[l]=e.readBit();e.byteAlign()}return n}function U(input,e,t,r){for(var n,o={K:-1,Columns:e,Rows:t,BlackIs1:!0,EndOfBlock:r},c=new l.CCITTFaxDecoder(input,o),h=[],d=!1,f=0;f<t;f++){var m=new Uint8Array(e);h.push(m);for(var v=-1,y=0;y<e;y++)v<0&&(-1===(n=c.readNextChar())&&(n=0,d=!0),v=7),m[y]=n>>v&1,v--}if(r&&!d)for(var i=0;i<5&&-1!==c.readNextChar();i++);return h}function j(){}return N.prototype={readBit:function(){if(this.shift<0){if(this.position>=this.end)throw new h("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e},readBits:function(e){var i,t=0;for(i=e-1;i>=0;i--)t|=this.readBit()<<i;return t},byteAlign:function(){this.shift=-1},next:function(){return this.position>=this.end?-1:this.data[this.position++]}},j.prototype={parseChunks:function(e){return function(e){for(var t=new E,i=0,r=e.length;i<r;i++){var n=e[i];I(C({},n.data,n.start,n.end),t)}return t.buffer}(e)},parse:function(data){var e=function(data){var e=data.length,t=0;if(151!==data[t]||74!==data[t+1]||66!==data[t+2]||50!==data[t+3]||13!==data[t+4]||10!==data[t+5]||26!==data[t+6]||10!==data[t+7])throw new h("parseJbig2 - invalid header.");var header=Object.create(null);t+=8;var r=data[t++];header.randomAccess=!(1&r),2&r||(header.numberOfPages=(0,o.readUint32)(data,t),t+=4);var n=C(header,data,t,e),c=new E;I(n,c);for(var l=c.currentPageInfo,d=l.width,f=l.height,m=c.buffer,v=new Uint8ClampedArray(d*f),q=0,y=0,i=0;i<f;i++)for(var mask=0,k=void 0,w=0;w<d;w++)mask||(mask=128,k=m[y++]),v[q++]=k&mask?0:255,mask>>=1;return{imgData:v,width:d,height:f}}(data),t=e.imgData,r=e.width,n=e.height;return this.width=r,this.height=n,t}},j}();t.Jbig2Image=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;var n=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}],o=function(){return y((function e(data,t,r){w(this,e),this.data=data,this.bp=t,this.dataEnd=r,this.chigh=data[t],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}),[{key:"byteIn",value:function(){var data=this.data,e=this.bp;255===data[e]?data[e+1]>143?(this.clow+=65280,this.ct=8):(e++,this.clow+=data[e]<<9,this.ct=7,this.bp=e):(e++,this.clow+=e<this.dataEnd?data[e]<<8:65280,this.ct=8,this.bp=e),this.clow>65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}},{key:"readBit",value:function(e,t){var r,o=e[t]>>1,c=1&e[t],l=n[o],h=l.qe,a=this.a-h;if(this.chigh<h)a<h?(a=h,r=c,o=l.nmps):(a=h,r=1^c,1===l.switchFlag&&(c=r),o=l.nlps);else{if(this.chigh-=h,32768&a)return this.a=a,c;a<h?(r=1^c,1===l.switchFlag&&(c=r),o=l.nlps):(r=c,o=l.nmps)}do{0===this.ct&&this.byteIn(),a<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--}while(!(32768&a));return this.a=a,e[t]=o<<1|c,r}}])}();t.ArithmeticDecoder=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var n=r(12),o=r(5),c=r(19),l=r(2),h=function(){function e(e,t,r,o){for(var c;-1!==(c=e.getByte());)if(255===c){e.skip(-1);break}this.stream=e,this.maybeLength=t,this.dict=r,this.params=o,n.DecodeStream.call(this,t)}return e.prototype=Object.create(n.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,l.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(!this.eof){var e={decodeTransform:void 0,colorTransform:void 0},t=this.dict.getArray("Decode","D");if(this.forceRGB&&Array.isArray(t)){for(var r=this.dict.get("BitsPerComponent")||8,n=t.length,l=new Int32Array(n),h=!1,d=(1<<r)-1,i=0;i<n;i+=2)l[i]=256*(t[i+1]-t[i])|0,l[i+1]=t[i]*d|0,256===l[i]&&0===l[i+1]||(h=!0);h&&(e.decodeTransform=l)}if((0,o.isDict)(this.params)){var f=this.params.get("ColorTransform");Number.isInteger(f)&&(e.colorTransform=f)}var m=new c.JpegImage(e);m.parse(this.bytes);var data=m.getData({width:this.drawWidth,height:this.drawHeight,forceRGB:this.forceRGB,isSourcePDF:!0});this.buffer=data,this.bufferLength=data.length,this.eof=!0}},e}();t.JpegStream=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var n=r(2),o=r(8),c=function(e){function t(e){return w(this,t),S(this,t,["JPEG error: ".concat(e)])}return _(t,e),y(t)}(n.BaseException),l=function(e){function t(e,r){var n;return w(this,t),(n=S(this,t,[e])).scanLines=r,n}return _(t,e),y(t)}(n.BaseException),h=function(e){function t(){return w(this,t),S(this,t,arguments)}return _(t,e),y(t)}(n.BaseException),d=function(){var e=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),t=4017,r=799,d=3406,f=2276,m=1567,v=3784,y=5793,k=2896;function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.decodeTransform,r=void 0===t?null:t,n=e.colorTransform,o=void 0===n?-1:n;this._decodeTransform=r,this._colorTransform=o}function S(e,t){for(var i,r,n=0,code=[],o=16;o>0&&!e[o-1];)o--;code.push({children:[],index:0});var q,p=code[0];for(i=0;i<o;i++){for(r=0;r<e[i];r++){for((p=code.pop()).children[p.index]=t[n];p.index>0;)p=code.pop();for(p.index++,code.push(p);code.length<=i;)code.push(q={children:[],index:0}),p.children[p.index]=q.children,p=q;n++}i+1<o&&(code.push(q={children:[],index:0}),p.children[p.index]=q.children,p=q)}return code[0].children}function A(component,e,col){return 64*((component.blocksPerLine+1)*e+col)}function x(data,t,r,d,f,m,v,y,k){var w=arguments.length>9&&void 0!==arguments[9]&&arguments[9],S=r.mcusPerLine,x=r.progressive,C=t,_=0,T=0;function I(){if(T>0)return T--,_>>T&1;if(255===(_=data[t++])){var e=data[t++];if(e){if(220===e&&w){t+=2;var n=(0,o.readUint16)(data,t);if(t+=2,n>0&&n!==r.scanLines)throw new l("Found DNL marker (0xFFDC) while parsing scan data",n)}else if(217===e){if(w){var d=8*D;if(d>0&&d<r.scanLines/10)throw new l("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",d)}throw new h("Found EOI marker (0xFFD9) while parsing scan data")}throw new c("unexpected marker ".concat((_<<8|e).toString(16)))}}return T=7,_>>>7}function E(e){for(var t=e;;){switch(R(t=t[I()])){case"number":return t;case"object":continue}throw new c("invalid huffman sequence")}}function F(e){for(var t=0;e>0;)t=t<<1|I(),e--;return t}function L(e){if(1===e)return 1===I()?1:-1;var t=F(e);return t>=1<<e-1?t:t+(-1<<e)+1}var O,M=0,N=0,D=0;function B(component,e,t,r,col){var n=t%S;D=(t/S|0)*component.v+r;var o=n*component.h+col;e(component,A(component,D,o))}function U(component,e,t){D=t/component.blocksPerLine|0;var r=t%component.blocksPerLine;e(component,A(component,D,r))}var component,i,j,H,G,z,W=d.length;z=x?0===m?0===y?function(component,e){var t=E(component.huffmanTableDC),r=0===t?0:L(t)<<k;component.blockData[e]=component.pred+=r}:function(component,e){component.blockData[e]|=I()<<k}:0===y?function(component,t){if(M>0)M--;else for(var r=m,n=v;r<=n;){var o=E(component.huffmanTableAC),s=15&o,c=o>>4;if(0!==s){var l=e[r+=c];component.blockData[t+l]=L(s)*(1<<k),r++}else{if(c<15){M=F(c)+(1<<c)-1;break}r+=16}}}:function(component,t){for(var s,r,n=m,o=v,l=0;n<=o;){var h=t+e[n],d=component.blockData[h]<0?-1:1;switch(N){case 0:if(l=(r=E(component.huffmanTableAC))>>4,0==(s=15&r))l<15?(M=F(l)+(1<<l),N=4):(l=16,N=1);else{if(1!==s)throw new c("invalid ACn encoding");O=L(s),N=l?2:3}continue;case 1:case 2:component.blockData[h]?component.blockData[h]+=d*(I()<<k):0==--l&&(N=2===N?3:0);break;case 3:component.blockData[h]?component.blockData[h]+=d*(I()<<k):(component.blockData[h]=O<<k,N=0);break;case 4:component.blockData[h]&&(component.blockData[h]+=d*(I()<<k))}n++}4===N&&0==--M&&(N=0)}:function(component,t){var r=E(component.huffmanTableDC),n=0===r?0:L(r);component.blockData[t]=component.pred+=n;for(var o=1;o<64;){var c=E(component.huffmanTableAC),s=15&c,l=c>>4;if(0!==s){var h=e[o+=l];component.blockData[t+h]=L(s),o++}else{if(l<15)break;o+=16}}};var V,X,Y,K,J=0;for(X=1===W?d[0].blocksPerLine*d[0].blocksPerColumn:S*r.mcusPerColumn;J<=X;){var Z=f?Math.min(X-J,f):X;if(Z>0){for(i=0;i<W;i++)d[i].pred=0;if(M=0,1===W)for(component=d[0],G=0;G<Z;G++)U(component,z,J),J++;else for(G=0;G<Z;G++){for(i=0;i<W;i++)for(Y=(component=d[i]).h,K=component.v,j=0;j<K;j++)for(H=0;H<Y;H++)B(component,z,J,j,H);J++}}if(T=0,!(V=P(data,t)))break;if(V.invalid){var Q=Z>0?"unexpected":"excessive";(0,n.warn)("decodeScan - ".concat(Q," MCU data, current marker is: ").concat(V.invalid)),t=V.offset}if(!(V.marker>=65488&&V.marker<=65495))break;t+=2}return t-C}function C(component,e,p){var n,o,l,h,w,S,A,x,C,_,P,T,I,E,F,L,O,R=component.quantizationTable,M=component.blockData;if(!R)throw new c("missing required Quantization Table.");for(var N=0;N<64;N+=8)C=M[e+N],_=M[e+N+1],P=M[e+N+2],T=M[e+N+3],I=M[e+N+4],E=M[e+N+5],F=M[e+N+6],L=M[e+N+7],C*=R[N],_|P|T|I|E|F|L?(_*=R[N+1],P*=R[N+2],T*=R[N+3],I*=R[N+4],E*=R[N+5],F*=R[N+6],L*=R[N+7],o=(n=(n=y*C+128>>8)+(o=y*I+128>>8)+1>>1)-o,O=(l=P)*v+(h=F)*m+128>>8,l=l*m-h*v+128>>8,A=(w=(w=k*(_-L)+128>>8)+(A=E<<4)+1>>1)-A,S=(x=(x=k*(_+L)+128>>8)+(S=T<<4)+1>>1)-S,h=(n=n+(h=O)+1>>1)-h,l=(o=o+l+1>>1)-l,O=w*f+x*d+2048>>12,w=w*d-x*f+2048>>12,x=O,O=S*r+A*t+2048>>12,S=S*t-A*r+2048>>12,A=O,p[N]=n+x,p[N+7]=n-x,p[N+1]=o+A,p[N+6]=o-A,p[N+2]=l+S,p[N+5]=l-S,p[N+3]=h+w,p[N+4]=h-w):(O=y*C+512>>10,p[N]=O,p[N+1]=O,p[N+2]=O,p[N+3]=O,p[N+4]=O,p[N+5]=O,p[N+6]=O,p[N+7]=O);for(var col=0;col<8;++col)C=p[col],(_=p[col+8])|(P=p[col+16])|(T=p[col+24])|(I=p[col+32])|(E=p[col+40])|(F=p[col+48])|(L=p[col+56])?(o=(n=4112+((n=y*C+2048>>12)+(o=y*I+2048>>12)+1>>1))-o,O=(l=P)*v+(h=F)*m+2048>>12,l=l*m-h*v+2048>>12,h=O,A=(w=(w=k*(_-L)+2048>>12)+(A=E)+1>>1)-A,S=(x=(x=k*(_+L)+2048>>12)+(S=T)+1>>1)-S,O=w*f+x*d+2048>>12,w=w*d-x*f+2048>>12,x=O,O=S*r+A*t+2048>>12,S=S*t-A*r+2048>>12,(C=(n=n+h+1>>1)+x)<16?C=0:C>=4080?C=255:C>>=4,(_=(o=o+l+1>>1)+(A=O))<16?_=0:_>=4080?_=255:_>>=4,(P=(l=o-l)+S)<16?P=0:P>=4080?P=255:P>>=4,(T=(h=n-h)+w)<16?T=0:T>=4080?T=255:T>>=4,(I=h-w)<16?I=0:I>=4080?I=255:I>>=4,(E=l-S)<16?E=0:E>=4080?E=255:E>>=4,(F=o-A)<16?F=0:F>=4080?F=255:F>>=4,(L=n-x)<16?L=0:L>=4080?L=255:L>>=4,M[e+col]=C,M[e+col+8]=_,M[e+col+16]=P,M[e+col+24]=T,M[e+col+32]=I,M[e+col+40]=E,M[e+col+48]=F,M[e+col+56]=L):(O=(O=y*C+8192>>14)<-2040?0:O>=2024?255:O+2056>>4,M[e+col]=O,M[e+col+8]=O,M[e+col+16]=O,M[e+col+24]=O,M[e+col+32]=O,M[e+col+40]=O,M[e+col+48]=O,M[e+col+56]=O)}function _(e,component){for(var t=component.blocksPerLine,r=component.blocksPerColumn,n=new Int16Array(64),o=0;o<r;o++)for(var c=0;c<t;c++)C(component,A(component,o,c),n);return component.blockData}function P(data,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=data.length-1,n=t<e?t:e;if(e>=r)return null;var c=(0,o.readUint16)(data,e);if(c>=65472&&c<=65534)return{invalid:null,marker:c,offset:e};for(var l=(0,o.readUint16)(data,n);!(l>=65472&&l<=65534);){if(++n>=r)return null;l=(0,o.readUint16)(data,n)}return{invalid:c.toString(16),marker:l,offset:n}}return w.prototype={parse:function(data){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).dnlScanLines,r=void 0===t?null:t;function d(){var e=(0,o.readUint16)(data,y),t=(y+=2)+e-2,r=P(data,t,y);r&&r.invalid&&((0,n.warn)("readDataBlock - incorrect length, current marker is: "+r.invalid),t=r.offset);var c=data.subarray(y,t);return y+=c.length,c}function f(e){for(var t=Math.ceil(e.samplesPerLine/8/e.maxH),r=Math.ceil(e.scanLines/8/e.maxV),i=0;i<e.components.length;i++){component=e.components[i];var n=Math.ceil(Math.ceil(e.samplesPerLine/8)*component.h/e.maxH),o=Math.ceil(Math.ceil(e.scanLines/8)*component.v/e.maxV),c=t*component.h,l=r*component.v*64*(c+1);component.blockData=new Int16Array(l),component.blocksPerLine=n,component.blocksPerColumn=o}e.mcusPerLine=t,e.mcusPerColumn=r}var m,v,y=0,k=null,w=null,A=0,C=[],T=[],I=[],E=(0,o.readUint16)(data,y);if(y+=2,65496!==E)throw new c("SOI not found");E=(0,o.readUint16)(data,y),y+=2;e:for(;65497!==E;){var i,F,L;switch(E){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var O=d();65504===E&&74===O[0]&&70===O[1]&&73===O[2]&&70===O[3]&&0===O[4]&&(k={version:{major:O[5],minor:O[6]},densityUnits:O[7],xDensity:O[8]<<8|O[9],yDensity:O[10]<<8|O[11],thumbWidth:O[12],thumbHeight:O[13],thumbData:O.subarray(14,14+3*O[12]*O[13])}),65518===E&&65===O[0]&&100===O[1]&&111===O[2]&&98===O[3]&&101===O[4]&&(w={version:O[5]<<8|O[6],flags0:O[7]<<8|O[8],flags1:O[9]<<8|O[10],transformCode:O[11]});break;case 65499:for(var R=(0,o.readUint16)(data,y)+(y+=2)-2;y<R;){var M=data[y++],N=new Uint16Array(64);if(M>>4){if(M>>4!=1)throw new c("DQT - invalid table spec");for(F=0;F<64;F++)N[e[F]]=(0,o.readUint16)(data,y),y+=2}else for(F=0;F<64;F++)N[e[F]]=data[y++];C[15&M]=N}break;case 65472:case 65473:case 65474:if(m)throw new c("Only single frame JPEGs supported");y+=2,(m={}).extended=65473===E,m.progressive=65474===E,m.precision=data[y++];var D=(0,o.readUint16)(data,y);y+=2,m.scanLines=r||D,m.samplesPerLine=(0,o.readUint16)(data,y),y+=2,m.components=[],m.componentIds={};var B,U=data[y++],j=0,H=0;for(i=0;i<U;i++){B=data[y];var G=data[y+1]>>4,z=15&data[y+1];j<G&&(j=G),H<z&&(H=z);var W=data[y+2];L=m.components.push({h:G,v:z,quantizationId:W,quantizationTable:null}),m.componentIds[B]=L-1,y+=3}m.maxH=j,m.maxV=H,f(m);break;case 65476:var V=(0,o.readUint16)(data,y);for(y+=2,i=2;i<V;){var X=data[y++],Y=new Uint8Array(16),K=0;for(F=0;F<16;F++,y++)K+=Y[F]=data[y];var J=new Uint8Array(K);for(F=0;F<K;F++,y++)J[F]=data[y];i+=17+K,(X>>4?T:I)[15&X]=S(Y,J)}break;case 65501:y+=2,v=(0,o.readUint16)(data,y),y+=2;break;case 65498:var Z=1==++A&&!r;y+=2;var component,Q=data[y++],$=[];for(i=0;i<Q;i++){var ee=m.componentIds[data[y++]];component=m.components[ee];var te=data[y++];component.huffmanTableDC=I[te>>4],component.huffmanTableAC=T[15&te],$.push(component)}var re=data[y++],ae=data[y++],ne=data[y++];try{var ie=x(data,y,m,$,v,re,ae,ne>>4,15&ne,Z);y+=ie}catch(e){if(e instanceof l)return(0,n.warn)("".concat(e.message," -- attempting to re-parse the JPEG image.")),this.parse(data,{dnlScanLines:e.scanLines});if(e instanceof h){(0,n.warn)("".concat(e.message," -- ignoring the rest of the image data."));break e}throw e}break;case 65500:y+=4;break;case 65535:255!==data[y]&&y--;break;default:var oe=P(data,y-2,y-3);if(oe&&oe.invalid){(0,n.warn)("JpegImage.parse - unexpected data, current marker is: "+oe.invalid),y=oe.offset;break}if(y>=data.length-1){(0,n.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new c("JpegImage.parse - unknown marker: "+E.toString(16))}E=(0,o.readUint16)(data,y),y+=2}for(this.width=m.samplesPerLine,this.height=m.scanLines,this.jfif=k,this.adobe=w,this.components=[],i=0;i<m.components.length;i++){var se=C[(component=m.components[i]).quantizationId];se&&(component.quantizationTable=se),this.components.push({output:_(0,component),scaleX:component.h/m.maxH,scaleY:component.v/m.maxV,blocksPerLine:component.blocksPerLine,blocksPerColumn:component.blocksPerColumn})}this.numComponents=this.components.length},_getLinearizedBlockData:function(e,t){var component,r,n,o,c,l,i,h,d,f,output,m,v=arguments.length>2&&void 0!==arguments[2]&&arguments[2],y=this.width/e,k=this.height/t,w=0,S=this.components.length,A=e*t*S,data=new Uint8ClampedArray(A),x=new Uint32Array(e),C=4294967288;for(i=0;i<S;i++){if(r=(component=this.components[i]).scaleX*y,n=component.scaleY*k,w=i,output=component.output,o=component.blocksPerLine+1<<3,r!==m){for(c=0;c<e;c++)h=0|c*r,x[c]=(h&C)<<3|7&h;m=r}for(l=0;l<t;l++)for(f=o*((h=0|l*n)&C)|(7&h)<<3,c=0;c<e;c++)data[w]=output[f+x[c]],w+=S}var _=this._decodeTransform;if(v||4!==S||_||(_=new Int32Array([-256,255,-256,255,-256,255,-256,255])),_)for(i=0;i<A;)for(h=0,d=0;h<S;h++,i++,d+=2)data[i]=(data[i]*_[d]>>8)+_[d+1];return data},get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform:1===this._colorTransform},_convertYccToRgb:function(data){for(var e,t,r,i=0,n=data.length;i<n;i+=3)e=data[i],t=data[i+1],r=data[i+2],data[i]=e-179.456+1.402*r,data[i+1]=e+135.459-.344*t-.714*r,data[i+2]=e-226.816+1.772*t;return data},_convertYcckToRgb:function(data){for(var e,t,r,n,o=0,i=0,c=data.length;i<c;i+=4)e=data[i],t=data[i+1],r=data[i+2],n=data[i+3],data[o++]=t*(-660635669420364e-19*t+.000437130475926232*r-54080610064599e-18*e+.00048449797120281*n-.154362151871126)-122.67195406894+r*(-.000957964378445773*r+.000817076911346625*e-.00477271405408747*n+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*n+.48357088451265)+n*(-.000336197177618394*n+.484791561490776),data[o++]=107.268039397724+t*(219927104525741e-19*t-.000640992018297945*r+.000659397001245577*e+.000426105652938837*n-.176491792462875)+r*(-.000778269941513683*r+.00130872261408275*e+.000770482631801132*n-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*n+.25802910206845)+n*(-.000318913117588328*n-.213742400323665),data[o++]=t*(-.000570115196973677*t-263409051004589e-19*r+.0020741088115012*e-.00288260236853442*n+.814272968359295)-20.810012546947+r*(-153496057440975e-19*r-.000132689043961446*e+.000560833691242812*n-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*n+.116935020465145)+n*(-.000343531996510555*n+.24165260232407);return data.subarray(0,o)},_convertYcckToCmyk:function(data){for(var e,t,r,i=0,n=data.length;i<n;i+=4)e=data[i],t=data[i+1],r=data[i+2],data[i]=434.456-e-1.402*r,data[i+1]=119.541-e+.344*t+.714*r,data[i+2]=481.816-e-1.772*t;return data},_convertCmykToRgb:function(data){for(var e,t,r,n,o=0,i=0,c=data.length;i<c;i+=4)e=data[i],t=data[i+1],r=data[i+2],n=data[i+3],data[o++]=255+e*(-6747147073602441e-20*e+.0008379262121013727*t+.0002894718188643294*r+.003264231057537806*n-1.1185611867203937)+t*(26374107616089405e-21*t-8626949158638572e-20*r-.0002748769067499491*n-.02155688794978967)+r*(-3878099212869363e-20*r-.0003267808279485286*n+.0686742238595345)-n*(.0003361971776183937*n+.7430659151342254),data[o++]=255+e*(.00013596372813588848*e+.000924537132573585*t+.00010567359618683593*r+.0004791864687436512*n-.3109689587515875)+t*(-.00023545346108370344*t+.0002702845253534714*r+.0020200308977307156*n-.7488052167015494)+r*(6834815998235662e-20*r+.00015168452363460973*n-.09751927774728933)-n*(.0003189131175883281*n+.7364883807733168),data[o++]=255+e*(13598650411385307e-21*e+.00012423956175490851*t+.0004751985097583589*r-36729317476630422e-22*n-.05562186980264034)+t*(.00016141380598724676*t+.0009692239130725186*r+.0007782692450036253*n-.44015232367526463)+r*(5.068882914068769e-7*r+.0017778369011375071*n-.7591454649749609)-n*(.0003435319965105553*n+.7063770186160144);return data.subarray(0,o)},getData:function(e){var t=e.width,r=e.height,n=e.forceRGB,o=void 0!==n&&n,l=e.isSourcePDF,h=void 0!==l&&l;if(this.numComponents>4)throw new c("Unsupported color mode");var data=this._getLinearizedBlockData(t,r,h);if(1===this.numComponents&&o){for(var d=data.length,f=new Uint8ClampedArray(3*d),m=0,i=0;i<d;i++){var v=data[i];f[m++]=v,f[m++]=v,f[m++]=v}return f}if(3===this.numComponents&&this._isColorConversionNeeded)return this._convertYccToRgb(data);if(4===this.numComponents){if(this._isColorConversionNeeded)return o?this._convertYcckToRgb(data):this._convertYcckToCmyk(data);if(o)return this._convertCmykToRgb(data)}return data}},w}();t.JpegImage=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var n=r(12),o=r(21),c=r(2),l=function(){function e(e,t,r,o){this.stream=e,this.maybeLength=t,this.dict=r,this.params=o,n.DecodeStream.call(this,t)}return e.prototype=Object.create(n.DecodeStream.prototype),Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,c.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0}),e.prototype.ensureBuffer=function(e){},e.prototype.readBlock=function(){if(!this.eof){var e=new o.JpxImage;e.parse(this.bytes);var t=e.width,r=e.height,n=e.componentsCount,c=e.tiles.length;if(1===c)this.buffer=e.tiles[0].items;else{for(var data=new Uint8ClampedArray(t*r*n),l=0;l<c;l++)for(var h=e.tiles[l],d=h.width,f=h.height,m=h.left,v=h.top,y=h.items,k=0,w=(t*v+m)*n,S=t*n,A=d*n,x=0;x<f;x++){var C=y.subarray(k,k+A);data.set(C,w),k+=A,w+=S}this.buffer=data}this.bufferLength=this.buffer.length,this.eof=!0}},e}();t.JpxStream=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var n=r(2),o=r(8),c=r(17),l=function(e){function t(e){return w(this,t),S(this,t,["JPX error: ".concat(e)])}return _(t,e),y(t)}(n.BaseException),h=function(){var e={LL:0,LH:1,HL:1,HH:2};function t(){this.failOnCorruptedImage=!1}function r(component,e){component.x0=Math.ceil(e.XOsiz/component.XRsiz),component.x1=Math.ceil(e.Xsiz/component.XRsiz),component.y0=Math.ceil(e.YOsiz/component.YRsiz),component.y1=Math.ceil(e.Ysiz/component.YRsiz),component.width=component.x1-component.x0,component.height=component.y1-component.y0}function h(e,t){for(var r,n=e.SIZ,o=[],c=Math.ceil((n.Xsiz-n.XTOsiz)/n.XTsiz),l=Math.ceil((n.Ysiz-n.YTOsiz)/n.YTsiz),q=0;q<l;q++)for(var p=0;p<c;p++)(r={}).tx0=Math.max(n.XTOsiz+p*n.XTsiz,n.XOsiz),r.ty0=Math.max(n.YTOsiz+q*n.YTsiz,n.YOsiz),r.tx1=Math.min(n.XTOsiz+(p+1)*n.XTsiz,n.Xsiz),r.ty1=Math.min(n.YTOsiz+(q+1)*n.YTsiz,n.Ysiz),r.width=r.tx1-r.tx0,r.height=r.ty1-r.ty0,r.components=[],o.push(r);e.tiles=o;for(var i=0,h=n.Csiz;i<h;i++)for(var component=t[i],d=0,f=o.length;d<f;d++){var m={};r=o[d],m.tcx0=Math.ceil(r.tx0/component.XRsiz),m.tcy0=Math.ceil(r.ty0/component.YRsiz),m.tcx1=Math.ceil(r.tx1/component.XRsiz),m.tcy1=Math.ceil(r.ty1/component.YRsiz),m.width=m.tcx1-m.tcx0,m.height=m.tcy1-m.tcy0,r.components[i]=m}}function d(e,component,t){var r=component.codingStyleParameters,n={};return r.entropyCoderWithCustomPrecincts?(n.PPx=r.precinctsSizes[t].PPx,n.PPy=r.precinctsSizes[t].PPy):(n.PPx=15,n.PPy=15),n.xcb_=t>0?Math.min(r.xcb,n.PPx-1):Math.min(r.xcb,n.PPx),n.ycb_=t>0?Math.min(r.ycb,n.PPy-1):Math.min(r.ycb,n.PPy),n}function f(e,t,r){var n=1<<r.PPx,o=1<<r.PPy,c=0===t.resLevel,l=1<<r.PPx+(c?0:-1),h=1<<r.PPy+(c?0:-1),d=t.trx1>t.trx0?Math.ceil(t.trx1/n)-Math.floor(t.trx0/n):0,f=t.try1>t.try0?Math.ceil(t.try1/o)-Math.floor(t.try0/o):0,m=d*f;t.precinctParameters={precinctWidth:n,precinctHeight:o,numprecinctswide:d,numprecinctshigh:f,numprecincts:m,precinctWidthInSubband:l,precinctHeightInSubband:h}}function m(e,t,r){var i,n,o,c,l=r.xcb_,h=r.ycb_,d=1<<l,f=1<<h,m=t.tbx0>>l,v=t.tby0>>h,y=t.tbx1+d-1>>l,k=t.tby1+f-1>>h,w=t.resolution.precinctParameters,S=[],A=[];for(n=v;n<k;n++)for(i=m;i<y;i++)if((o={cbx:i,cby:n,tbx0:d*i,tby0:f*n,tbx1:d*(i+1),tby1:f*(n+1)}).tbx0_=Math.max(t.tbx0,o.tbx0),o.tby0_=Math.max(t.tby0,o.tby0),o.tbx1_=Math.min(t.tbx1,o.tbx1),o.tby1_=Math.min(t.tby1,o.tby1),c=Math.floor((o.tbx0_-t.tbx0)/w.precinctWidthInSubband)+Math.floor((o.tby0_-t.tby0)/w.precinctHeightInSubband)*w.numprecinctswide,o.precinctNumber=c,o.subbandType=t.type,o.Lblock=3,!(o.tbx1_<=o.tbx0_||o.tby1_<=o.tby0_)){S.push(o);var x=A[c];void 0!==x?(i<x.cbxMin?x.cbxMin=i:i>x.cbxMax&&(x.cbxMax=i),n<x.cbyMin?x.cbxMin=n:n>x.cbyMax&&(x.cbyMax=n)):A[c]=x={cbxMin:i,cbyMin:n,cbxMax:i,cbyMax:n},o.precinct=x}t.codeblockParameters={codeblockWidth:l,codeblockHeight:h,numcodeblockwide:y-m+1,numcodeblockhigh:k-v+1},t.codeblocks=S,t.precincts=A}function v(e,t,r){for(var n=[],o=e.subbands,i=0,c=o.length;i<c;i++)for(var l=o[i].codeblocks,h=0,d=l.length;h<d;h++){var f=l[h];f.precinctNumber===t&&n.push(f)}return{layerNumber:r,codeblocks:n}}function y(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],o=n.codingStyleDefaultParameters.layersCount,c=t.Csiz,h=0,q=0;q<c;q++)h=Math.max(h,n.components[q].codingStyleParameters.decompositionLevelsCount);var d=0,f=0,i=0,m=0;this.nextPacket=function(){for(;d<o;d++){for(;f<=h;f++){for(;i<c;i++){var component=n.components[i];if(!(f>component.codingStyleParameters.decompositionLevelsCount)){for(var e=component.resolutions[f],t=e.precinctParameters.numprecincts;m<t;){var r=v(e,m,d);return m++,r}m=0}}i=0}f=0}throw new l("Out of packets")}}function k(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],o=n.codingStyleDefaultParameters.layersCount,c=t.Csiz,h=0,q=0;q<c;q++)h=Math.max(h,n.components[q].codingStyleParameters.decompositionLevelsCount);var d=0,f=0,i=0,m=0;this.nextPacket=function(){for(;d<=h;d++){for(;f<o;f++){for(;i<c;i++){var component=n.components[i];if(!(d>component.codingStyleParameters.decompositionLevelsCount)){for(var e=component.resolutions[d],t=e.precinctParameters.numprecincts;m<t;){var r=v(e,m,f);return m++,r}m=0}}i=0}f=0}throw new l("Out of packets")}}function w(e){var t,r,n,p,o=e.SIZ,c=e.currentTile.index,h=e.tiles[c],d=h.codingStyleDefaultParameters.layersCount,f=o.Csiz,m=0;for(n=0;n<f;n++){var component=h.components[n];m=Math.max(m,component.codingStyleParameters.decompositionLevelsCount)}var y=new Int32Array(m+1);for(r=0;r<=m;++r){var k=0;for(n=0;n<f;++n){var w=h.components[n].resolutions;r<w.length&&(k=Math.max(k,w[r].precinctParameters.numprecincts))}y[r]=k}t=0,r=0,n=0,p=0,this.nextPacket=function(){for(;r<=m;r++){for(;p<y[r];p++){for(;n<f;n++){var e=h.components[n];if(!(r>e.codingStyleParameters.decompositionLevelsCount)){var o=e.resolutions[r],c=o.precinctParameters.numprecincts;if(!(p>=c)){for(;t<d;){var k=v(o,p,t);return t++,k}t=0}}}n=0}p=0}throw new l("Out of packets")}}function S(e){var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],o=n.codingStyleDefaultParameters.layersCount,c=t.Csiz,h=C(n),d=h,f=0,m=0,y=0,k=0,w=0;this.nextPacket=function(){for(;w<d.maxNumHigh;w++){for(;k<d.maxNumWide;k++){for(;y<c;y++){for(var component=n.components[y],e=component.codingStyleParameters.decompositionLevelsCount;m<=e;m++){var t=component.resolutions[m],r=h.components[y].resolutions[m],S=x(k,w,r,d,t);if(null!==S){for(;f<o;){var A=v(t,S,f);return f++,A}f=0}}m=0}y=0}k=0}throw new l("Out of packets")}}function A(e){var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],o=n.codingStyleDefaultParameters.layersCount,c=t.Csiz,h=C(n),d=0,f=0,m=0,y=0,k=0;this.nextPacket=function(){for(;m<c;++m){for(var component=n.components[m],e=h.components[m],t=component.codingStyleParameters.decompositionLevelsCount;k<e.maxNumHigh;k++){for(;y<e.maxNumWide;y++){for(;f<=t;f++){var r=component.resolutions[f],w=e.resolutions[f],S=x(y,k,w,e,r);if(null!==S){for(;d<o;){var A=v(r,S,d);return d++,A}d=0}}f=0}y=0}k=0}throw new l("Out of packets")}}function x(e,t,r,n,o){var c=e*n.minWidth,l=t*n.minHeight;if(c%r.width!=0||l%r.height!=0)return null;var h=l/r.width*o.precinctParameters.numprecinctswide;return c/r.height+h}function C(e){for(var t=e.components.length,r=Number.MAX_VALUE,n=Number.MAX_VALUE,o=0,c=0,l=new Array(t),h=0;h<t;h++){for(var component=e.components[h],d=component.codingStyleParameters.decompositionLevelsCount,f=new Array(d+1),m=Number.MAX_VALUE,v=Number.MAX_VALUE,y=0,k=0,w=1,S=d;S>=0;--S){var A=component.resolutions[S],x=w*A.precinctParameters.precinctWidth,C=w*A.precinctParameters.precinctHeight;m=Math.min(m,x),v=Math.min(v,C),y=Math.max(y,A.precinctParameters.numprecinctswide),k=Math.max(k,A.precinctParameters.numprecinctshigh),f[S]={width:x,height:C},w<<=1}r=Math.min(r,m),n=Math.min(n,v),o=Math.max(o,y),c=Math.max(c,k),l[h]={resolutions:f,minWidth:m,minHeight:v,maxNumWide:y,maxNumHigh:k}}return{components:l,minWidth:r,minHeight:n,maxNumWide:o,maxNumHigh:c}}function _(e){for(var t=e.SIZ,r=e.currentTile.index,n=e.tiles[r],o=t.Csiz,c=0;c<o;c++){for(var component=n.components[c],h=component.codingStyleParameters.decompositionLevelsCount,v=[],x=[],C=0;C<=h;C++){var _,P=d(0,component,C),T={},I=1<<h-C;if(T.trx0=Math.ceil(component.tcx0/I),T.try0=Math.ceil(component.tcy0/I),T.trx1=Math.ceil(component.tcx1/I),T.try1=Math.ceil(component.tcy1/I),T.resLevel=C,f(0,T,P),v.push(T),0===C)(_={}).type="LL",_.tbx0=Math.ceil(component.tcx0/I),_.tby0=Math.ceil(component.tcy0/I),_.tbx1=Math.ceil(component.tcx1/I),_.tby1=Math.ceil(component.tcy1/I),_.resolution=T,m(0,_,P),x.push(_),T.subbands=[_];else{var E=1<<h-C+1,F=[];(_={}).type="HL",_.tbx0=Math.ceil(component.tcx0/E-.5),_.tby0=Math.ceil(component.tcy0/E),_.tbx1=Math.ceil(component.tcx1/E-.5),_.tby1=Math.ceil(component.tcy1/E),_.resolution=T,m(0,_,P),x.push(_),F.push(_),(_={}).type="LH",_.tbx0=Math.ceil(component.tcx0/E),_.tby0=Math.ceil(component.tcy0/E-.5),_.tbx1=Math.ceil(component.tcx1/E),_.tby1=Math.ceil(component.tcy1/E-.5),_.resolution=T,m(0,_,P),x.push(_),F.push(_),(_={}).type="HH",_.tbx0=Math.ceil(component.tcx0/E-.5),_.tby0=Math.ceil(component.tcy0/E-.5),_.tbx1=Math.ceil(component.tcx1/E-.5),_.tby1=Math.ceil(component.tcy1/E-.5),_.resolution=T,m(0,_,P),x.push(_),F.push(_),T.subbands=F}}component.resolutions=v,component.subbands=x}var L=n.codingStyleDefaultParameters.progressionOrder;switch(L){case 0:n.packetsIterator=new y(e);break;case 1:n.packetsIterator=new k(e);break;case 2:n.packetsIterator=new w(e);break;case 3:n.packetsIterator=new S(e);break;case 4:n.packetsIterator=new A(e);break;default:throw new l("Unsupported progression order ".concat(L))}}function P(e,data,t,r){var n,c=0,l=0,h=!1;function d(e){for(;l<e;){var b=data[t+c];c++,h?(n=n<<7|b,l+=7,h=!1):(n=n<<8|b,l+=8),255===b&&(h=!0)}return n>>>(l-=e)&(1<<e)-1}function f(e){return 255===data[t+c-1]&&data[t+c]===e?(m(1),!0):255===data[t+c]&&data[t+c+1]===e&&(m(2),!0)}function m(e){c+=e}function v(){l=0,h&&(c++,h=!1)}function y(){if(0===d(1))return 1;if(0===d(1))return 2;var e=d(2);return e<3?e+3:(e=d(5))<31?e+6:(e=d(7))+37}for(var k=e.currentTile.index,w=e.tiles[k],S=e.COD.sopMarkerUsed,A=e.COD.ephMarkerUsed,x=w.packetsIterator;c<r;){v(),S&&f(145)&&m(4);var C=x.nextPacket();if(d(1)){for(var _,P=C.layerNumber,T=[],i=0,I=C.codeblocks.length;i<I;i++){var E=(_=C.codeblocks[i]).precinct,O=_.cbx-E.cbxMin,R=_.cby-E.cbyMin,M=!1,N=!1;if(void 0!==_.included)M=!!d(1);else{var D,B;if(void 0!==(E=_.precinct).inclusionTree)D=E.inclusionTree;else{var U=E.cbxMax-E.cbxMin+1,j=E.cbyMax-E.cbyMin+1;D=new L(U,j,P),B=new F(U,j),E.inclusionTree=D,E.zeroBitPlanesTree=B}if(D.reset(O,R,P))for(;;){if(!d(1)){D.incrementValue(P);break}if(!D.nextLevel()){_.included=!0,M=N=!0;break}}}if(M){if(N){for((B=E.zeroBitPlanesTree).reset(O,R);;)if(d(1)){if(!B.nextLevel())break}else B.incrementValue();_.zeroBitPlanes=B.value}for(var H=y();d(1);)_.Lblock++;var G=(0,o.log2)(H),z=d((H<1<<G?G-1:G)+_.Lblock);T.push({codeblock:_,codingpasses:H,dataLength:z})}}for(v(),A&&f(146);T.length>0;){var W=T.shift();void 0===(_=W.codeblock).data&&(_.data=[]),_.data.push({data:data,start:t+c,end:t+c+W.dataLength,codingpasses:W.codingpasses}),c+=W.dataLength}}}return c}function T(e,t,r,n,o,l,h,d){for(var f=n.tbx0,m=n.tby0,v=n.tbx1-n.tbx0,y=n.codeblocks,k="H"===n.type.charAt(0)?1:0,w="H"===n.type.charAt(1)?t:0,i=0,S=y.length;i<S;++i){var A=y[i],x=A.tbx1_-A.tbx0_,C=A.tby1_-A.tby0_;if(0!==x&&0!==C&&void 0!==A.data){var _,P;_=new O(x,C,A.subbandType,A.zeroBitPlanes,l),P=2;var T,I,E,data=A.data,F=0,L=0;for(T=0,I=data.length;T<I;T++)F+=(E=data[T]).end-E.start,L+=E.codingpasses;var R=new Uint8Array(F),M=0;for(T=0,I=data.length;T<I;T++){var N=(E=data[T]).data.subarray(E.start,E.end);R.set(N,M),M+=N.length}var D=new c.ArithmeticDecoder(R,0,F);for(_.setDecoder(D),T=0;T<L;T++){switch(P){case 0:_.runSignificancePropagationPass();break;case 1:_.runMagnitudeRefinementPass();break;case 2:_.runCleanupPass(),d&&_.checkSegmentationSymbol()}P=(P+1)%3}var B,U,j,H=A.tbx0_-f+(A.tby0_-m)*v,G=_.coefficentsSign,z=_.coefficentsMagnitude,W=_.bitsDecoded,V=h?0:.5;M=0;var X="LL"!==n.type;for(T=0;T<C;T++){var Y=2*(H/v|0)*(t-v)+k+w;for(B=0;B<x;B++){if(0!==(U=z[M])){U=(U+V)*o,0!==G[M]&&(U=-U),j=W[M];var K=X?Y+(H<<1):H;e[K]=h&&j>=l?U:U*(1<<l-j)}H++,M++}H+=v-x}}}}function I(t,r,n){for(var component=r.components[n],o=component.codingStyleParameters,c=component.quantizationParameters,l=o.decompositionLevelsCount,h=c.SPqcds,d=c.scalarExpounded,f=c.guardBits,m=o.segmentationSymbolUsed,v=t.components[n].precision,y=o.reversibleTransformation,k=y?new N:new M,w=[],b=0,i=0;i<=l;i++){for(var S=component.resolutions[i],A=S.trx1-S.trx0,x=S.try1-S.try0,C=new Float32Array(A*x),_=0,P=S.subbands.length;_<P;_++){var I,E;d?(I=h[b].mu,E=h[b].epsilon,b++):(I=h[0].mu,E=h[0].epsilon+(i>0?1-i:0));var F=S.subbands[_],L=e[F.type];T(C,A,0,F,y?1:Math.pow(2,v+L-E)*(1+I/2048),f+E-1,y,m)}w.push({width:A,height:x,items:C})}var O=k.calculate(w,component.tcx0,component.tcy0);return{left:component.tcx0,top:component.tcy0,width:O.width,height:O.height,items:O.items}}function E(e,t){for(var r=e.SIZ.Csiz,n=e.tiles[t],o=0;o<r;o++){var component=n.components[o],c=void 0!==e.currentTile.QCC[o]?e.currentTile.QCC[o]:e.currentTile.QCD;component.quantizationParameters=c;var l=void 0!==e.currentTile.COC[o]?e.currentTile.COC[o]:e.currentTile.COD;component.codingStyleParameters=l}n.codingStyleDefaultParameters=e.currentTile.COD}t.prototype={parse:function(data){if(65359!==(0,o.readUint16)(data,0))for(var e=0,t=data.length;e<t;){var r=8,c=(0,o.readUint32)(data,e),h=(0,o.readUint32)(data,e+4);if(e+=r,1===c&&(c=4294967296*(0,o.readUint32)(data,e)+(0,o.readUint32)(data,e+4),e+=8,r+=8),0===c&&(c=t-e+r),c<r)throw new l("Invalid box field size");var d=c-r,f=!0;switch(h){case 1785737832:f=!1;break;case 1668246642:var m=data[e];if(1===m){var v=(0,o.readUint32)(data,e+3);switch(v){case 16:case 17:case 18:break;default:(0,n.warn)("Unknown colorspace "+v)}}else 2===m&&(0,n.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(data,e,e+d);break;case 1783636e3:218793738!==(0,o.readUint32)(data,e)&&(0,n.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var y=String.fromCharCode(h>>24&255,h>>16&255,h>>8&255,255&h);(0,n.warn)("Unsupported header type "+h+" ("+y+")")}f&&(e+=d)}else this.parseCodestream(data,0,data.length)},parseImageProperties:function(e){for(var t=e.getByte();t>=0;)if(65361==(t<<8|(t=e.getByte()))){e.skip(4);var r=e.getInt32()>>>0,n=e.getInt32()>>>0,o=e.getInt32()>>>0,c=e.getInt32()>>>0;e.skip(16);var h=e.getUint16();return this.width=r-o,this.height=n-c,this.componentsCount=h,void(this.bitsPerComponent=8)}throw new l("No size marker found in JPX stream")},parseCodestream:function(data,e,t){var c={},d=!1;try{for(var f=e;f+1<t;){var code=(0,o.readUint16)(data,f);f+=2;var m,v,y,k,w,S,A=0;switch(code){case 65359:c.mainHeader=!0;break;case 65497:break;case 65361:A=(0,o.readUint16)(data,f);var x={};x.Xsiz=(0,o.readUint32)(data,f+4),x.Ysiz=(0,o.readUint32)(data,f+8),x.XOsiz=(0,o.readUint32)(data,f+12),x.YOsiz=(0,o.readUint32)(data,f+16),x.XTsiz=(0,o.readUint32)(data,f+20),x.YTsiz=(0,o.readUint32)(data,f+24),x.XTOsiz=(0,o.readUint32)(data,f+28),x.YTOsiz=(0,o.readUint32)(data,f+32);var C=(0,o.readUint16)(data,f+36);x.Csiz=C;var T=[];m=f+38;for(var i=0;i<C;i++){var component={precision:1+(127&data[m]),isSigned:!!(128&data[m]),XRsiz:data[m+1],YRsiz:data[m+2]};m+=3,r(component,x),T.push(component)}c.SIZ=x,c.components=T,h(c,T),c.QCC=[],c.COC=[];break;case 65372:A=(0,o.readUint16)(data,f);var F={};switch(m=f+2,31&(v=data[m++])){case 0:k=8,w=!0;break;case 1:k=16,w=!1;break;case 2:k=16,w=!0;break;default:throw new Error("Invalid SQcd value "+v)}for(F.noQuantization=8===k,F.scalarExpounded=w,F.guardBits=v>>5,y=[];m<A+f;){var L={};8===k?(L.epsilon=data[m++]>>3,L.mu=0):(L.epsilon=data[m]>>3,L.mu=(7&data[m])<<8|data[m+1],m+=2),y.push(L)}F.SPqcds=y,c.mainHeader?c.QCD=F:(c.currentTile.QCD=F,c.currentTile.QCC=[]);break;case 65373:A=(0,o.readUint16)(data,f);var O,R={};switch(m=f+2,c.SIZ.Csiz<257?O=data[m++]:(O=(0,o.readUint16)(data,m),m+=2),31&(v=data[m++])){case 0:k=8,w=!0;break;case 1:k=16,w=!1;break;case 2:k=16,w=!0;break;default:throw new Error("Invalid SQcd value "+v)}for(R.noQuantization=8===k,R.scalarExpounded=w,R.guardBits=v>>5,y=[];m<A+f;)L={},8===k?(L.epsilon=data[m++]>>3,L.mu=0):(L.epsilon=data[m]>>3,L.mu=(7&data[m])<<8|data[m+1],m+=2),y.push(L);R.SPqcds=y,c.mainHeader?c.QCC[O]=R:c.currentTile.QCC[O]=R;break;case 65362:A=(0,o.readUint16)(data,f);var M={};m=f+2;var N=data[m++];M.entropyCoderWithCustomPrecincts=!!(1&N),M.sopMarkerUsed=!!(2&N),M.ephMarkerUsed=!!(4&N),M.progressionOrder=data[m++],M.layersCount=(0,o.readUint16)(data,m),m+=2,M.multipleComponentTransform=data[m++],M.decompositionLevelsCount=data[m++],M.xcb=2+(15&data[m++]),M.ycb=2+(15&data[m++]);var D=data[m++];if(M.selectiveArithmeticCodingBypass=!!(1&D),M.resetContextProbabilities=!!(2&D),M.terminationOnEachCodingPass=!!(4&D),M.verticallyStripe=!!(8&D),M.predictableTermination=!!(16&D),M.segmentationSymbolUsed=!!(32&D),M.reversibleTransformation=data[m++],M.entropyCoderWithCustomPrecincts){for(var B=[];m<A+f;){var U=data[m++];B.push({PPx:15&U,PPy:U>>4})}M.precinctsSizes=B}var j=[];if(M.selectiveArithmeticCodingBypass&&j.push("selectiveArithmeticCodingBypass"),M.resetContextProbabilities&&j.push("resetContextProbabilities"),M.terminationOnEachCodingPass&&j.push("terminationOnEachCodingPass"),M.verticallyStripe&&j.push("verticallyStripe"),M.predictableTermination&&j.push("predictableTermination"),j.length>0)throw d=!0,new Error("Unsupported COD options ("+j.join(", ")+")");c.mainHeader?c.COD=M:(c.currentTile.COD=M,c.currentTile.COC=[]);break;case 65424:A=(0,o.readUint16)(data,f),(S={}).index=(0,o.readUint16)(data,f+2),S.length=(0,o.readUint32)(data,f+4),S.dataEnd=S.length+f-2,S.partIndex=data[f+8],S.partsCount=data[f+9],c.mainHeader=!1,0===S.partIndex&&(S.COD=c.COD,S.COC=c.COC.slice(0),S.QCD=c.QCD,S.QCC=c.QCC.slice(0)),c.currentTile=S;break;case 65427:0===(S=c.currentTile).partIndex&&(E(c,S.index),_(c)),P(c,data,f,A=S.dataEnd-f);break;case 65365:case 65367:case 65368:case 65380:A=(0,o.readUint16)(data,f);break;case 65363:throw new Error("Codestream code 0xFF53 (COC) is not implemented");default:throw new Error("Unknown codestream code: "+code.toString(16))}f+=A}}catch(e){if(d||this.failOnCorruptedImage)throw new l(e.message);(0,n.warn)("JPX: Trying to recover from: "+e.message)}this.tiles=function(e){for(var t=e.SIZ,r=e.components,n=t.Csiz,o=[],i=0,c=e.tiles.length;i<c;i++){var l,h=e.tiles[i],d=[];for(l=0;l<n;l++)d[l]=I(e,h,l);var f,m,v,y,k,w,S,A=d[0],x=new Uint8ClampedArray(A.items.length*n),C={left:A.left,top:A.top,width:A.width,height:A.height,items:x},_=0;if(h.codingStyleDefaultParameters.multipleComponentTransform){var P=4===n,T=d[0].items,E=d[1].items,F=d[2].items,L=P?d[3].items:null;m=.5+(128<<(f=r[0].precision-8));var O=h.components[0],R=n-3;if(y=T.length,O.codingStyleParameters.reversibleTransformation)for(v=0;v<y;v++,_+=R){k=T[v]+m,w=E[v];var g=k-((S=F[v])+w>>2);x[_++]=g+S>>f,x[_++]=g>>f,x[_++]=g+w>>f}else for(v=0;v<y;v++,_+=R)k=T[v]+m,w=E[v],S=F[v],x[_++]=k+1.402*S>>f,x[_++]=k-.34413*w-.71414*S>>f,x[_++]=k+1.772*w>>f;if(P)for(v=0,_=3;v<y;v++,_+=4)x[_]=L[v]+m>>f}else for(l=0;l<n;l++){var M=d[l].items;for(m=.5+(128<<(f=r[l].precision-8)),_=l,v=0,y=M.length;v<y;v++)x[_]=M[v]+m>>f,_+=n}o.push(C)}return o}(c),this.width=c.SIZ.Xsiz-c.SIZ.XOsiz,this.height=c.SIZ.Ysiz-c.SIZ.YOsiz,this.componentsCount=c.SIZ.Csiz}};var F=function(){function e(e,t){var r=(0,o.log2)(Math.max(e,t))+1;this.levels=[];for(var i=0;i<r;i++){var n={width:e,height:t,items:[]};this.levels.push(n),e=Math.ceil(e/2),t=Math.ceil(t/2)}}return e.prototype={reset:function(i,e){for(var t,r=0,n=0;r<this.levels.length;){var o=i+e*(t=this.levels[r]).width;if(void 0!==t.items[o]){n=t.items[o];break}t.index=o,i>>=1,e>>=1,r++}r--,(t=this.levels[r]).items[t.index]=n,this.currentLevel=r,delete this.value},incrementValue:function(){var e=this.levels[this.currentLevel];e.items[e.index]++},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return--e<0?(this.value=r,!1):(this.currentLevel=e,(t=this.levels[e]).items[t.index]=r,!0)}},e}(),L=function(){function e(e,t,r){var n=(0,o.log2)(Math.max(e,t))+1;this.levels=[];for(var i=0;i<n;i++){for(var c=new Uint8Array(e*t),l=0,h=c.length;l<h;l++)c[l]=r;var d={width:e,height:t,items:c};this.levels.push(d),e=Math.ceil(e/2),t=Math.ceil(t/2)}}return e.prototype={reset:function(i,e,t){for(var r=0;r<this.levels.length;){var n=this.levels[r],o=i+e*n.width;n.index=o;var c=n.items[o];if(255===c)break;if(c>t)return this.currentLevel=r,this.propagateValues(),!1;i>>=1,e>>=1,r++}return this.currentLevel=r-1,!0},incrementValue:function(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()},propagateValues:function(){for(var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];--e>=0;)(t=this.levels[e]).items[t.index]=r},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];return t.items[t.index]=255,!(--e<0||(this.currentLevel=e,(t=this.levels[e]).items[t.index]=r,0))}},e}(),O=function(){var e=17,t=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),r=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),n=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);function o(e,o,c,l,h){var d;this.width=e,this.height=o,d="HH"===c?n:"HL"===c?r:t,this.contextLabelTable=d;var f,m=e*o;this.neighborsSignificance=new Uint8Array(m),this.coefficentsSign=new Uint8Array(m),f=h>14?new Uint32Array(m):h>6?new Uint16Array(m):new Uint8Array(m),this.coefficentsMagnitude=f,this.processingFlags=new Uint8Array(m);var v=new Uint8Array(m);if(0!==l)for(var i=0;i<m;i++)v[i]=l;this.bitsDecoded=v,this.reset()}return o.prototype={setDecoder:function(e){this.decoder=e},reset:function(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[17]=92,this.contexts[18]=6},setNeighborsSignificance:function(e,t,r){var i,n=this.neighborsSignificance,o=this.width,c=this.height,l=t>0,h=t+1<o;e>0&&(i=r-o,l&&(n[i-1]+=16),h&&(n[i+1]+=16),n[i]+=4),e+1<c&&(i=r+o,l&&(n[i-1]+=16),h&&(n[i+1]+=16),n[i]+=4),l&&(n[r-1]+=1),h&&(n[r+1]+=1),n[r]|=128},runSignificancePropagationPass:function(){for(var e=this.decoder,t=this.width,r=this.height,n=this.coefficentsMagnitude,o=this.coefficentsSign,c=this.neighborsSignificance,l=this.processingFlags,h=this.contexts,d=this.contextLabelTable,f=this.bitsDecoded,m=0;m<r;m+=4)for(var v=0;v<t;v++)for(var y=m*t+v,k=0;k<4;k++,y+=t){var i=m+k;if(i>=r)break;if(l[y]&=-2,!n[y]&&c[y]){var w=d[c[y]];if(e.readBit(h,w)){var S=this.decodeSignBit(i,v,y);o[y]=S,n[y]=1,this.setNeighborsSignificance(i,v,y),l[y]|=2}f[y]++,l[y]|=1}}},decodeSignBit:function(e,t,r){var n,o,c,l,h,d,f=this.width,m=this.height,v=this.coefficentsMagnitude,y=this.coefficentsSign;l=t>0&&0!==v[r-1],t+1<f&&0!==v[r+1]?(c=y[r+1],n=l?1-c-(o=y[r-1]):1-c-c):n=l?1-(o=y[r-1])-o:0;var k=3*n;return l=e>0&&0!==v[r-f],e+1<m&&0!==v[r+f]?(c=y[r+f],n=l?1-c-(o=y[r-f])+k:1-c-c+k):n=l?1-(o=y[r-f])-o+k:k,n>=0?(h=9+n,d=this.decoder.readBit(this.contexts,h)):(h=9-n,d=1^this.decoder.readBit(this.contexts,h)),d},runMagnitudeRefinementPass:function(){for(var e,t=this.decoder,r=this.width,n=this.height,o=this.coefficentsMagnitude,c=this.neighborsSignificance,l=this.contexts,h=this.bitsDecoded,d=this.processingFlags,f=r*n,m=4*r,v=0;v<f;v=e){e=Math.min(f,v+m);for(var y=0;y<r;y++)for(var k=v+y;k<e;k+=r)if(o[k]&&!(1&d[k])){var w=16;2&d[k]&&(d[k]^=2,w=127&c[k]?14:15);var S=t.readBit(l,w);o[k]=o[k]<<1|S,h[k]++,d[k]|=1}}},runCleanupPass:function(){for(var t,r=this.decoder,n=this.width,o=this.height,c=this.neighborsSignificance,l=this.coefficentsMagnitude,h=this.coefficentsSign,d=this.contexts,f=this.contextLabelTable,m=this.bitsDecoded,v=this.processingFlags,y=n,k=2*n,w=3*n,S=0;S<o;S=t){t=Math.min(S+4,o);for(var A=S*n,x=S+3<o,C=0;C<n;C++){var _,P=A+C,T=0,I=P,i=S;if(x&&0===v[P]&&0===v[P+y]&&0===v[P+k]&&0===v[P+w]&&0===c[P]&&0===c[P+y]&&0===c[P+k]&&0===c[P+w]){if(!r.readBit(d,18)){m[P]++,m[P+y]++,m[P+k]++,m[P+w]++;continue}0!=(T=r.readBit(d,e)<<1|r.readBit(d,e))&&(i=S+T,I+=T*n),_=this.decodeSignBit(i,C,I),h[I]=_,l[I]=1,this.setNeighborsSignificance(i,C,I),v[I]|=2,I=P;for(var E=S;E<=i;E++,I+=n)m[I]++;T++}for(i=S+T;i<t;i++,I+=n)if(!(l[I]||1&v[I])){var F=f[c[I]];1===r.readBit(d,F)&&(_=this.decodeSignBit(i,C,I),h[I]=_,l[I]=1,this.setNeighborsSignificance(i,C,I),v[I]|=2),m[I]++}}}},checkSegmentationSymbol:function(){var t=this.decoder,r=this.contexts;if(10!=(t.readBit(r,e)<<3|t.readBit(r,e)<<2|t.readBit(r,e)<<1|t.readBit(r,e)))throw new l("Invalid segmentation symbol")}},o}(),R=function(){function e(){}return e.prototype.calculate=function(e,t,r){for(var n=e[0],i=1,o=e.length;i<o;i++)n=this.iterate(n,e[i],t,r);return n},e.prototype.extend=function(e,t,r){var n=t-1,o=t+1,c=t+r-2,l=t+r;e[n--]=e[o++],e[l++]=e[c--],e[n--]=e[o++],e[l++]=e[c--],e[n--]=e[o++],e[l++]=e[c--],e[n]=e[o],e[l]=e[c]},e.prototype.iterate=function(e,t,r,n){var i,o,c,l,u,h,d=e.width,f=e.height,m=e.items,v=t.width,y=t.height,k=t.items;for(c=0,i=0;i<f;i++)for(l=2*i*v,o=0;o<d;o++,c++,l+=2)k[l]=m[c];m=e.items=null;var w=new Float32Array(v+8);if(1===v){if(1&r)for(h=0,c=0;h<y;h++,c+=v)k[c]*=.5}else for(h=0,c=0;h<y;h++,c+=v)w.set(k.subarray(c,c+v),4),this.extend(w,4,v),this.filter(w,4,v),k.set(w.subarray(4,4+v),c);var S=16,A=[];for(i=0;i<S;i++)A.push(new Float32Array(y+8));var b,x=0;if(e=4+y,1===y){if(1&n)for(u=0;u<v;u++)k[u]*=.5}else for(u=0;u<v;u++){if(0===x){for(S=Math.min(v-u,S),c=u,l=4;l<e;c+=v,l++)for(b=0;b<S;b++)A[b][l]=k[c+b];x=S}var C=A[--x];if(this.extend(C,4,y),this.filter(C,4,y),0===x)for(c=u-S+1,l=4;l<e;c+=v,l++)for(b=0;b<S;b++)k[c+b]=A[b][l]}return{width:v,height:y,items:k}},e}(),M=function(){function e(){R.call(this)}return e.prototype=Object.create(R.prototype),e.prototype.filter=function(e,t,r){var n,o,c,l,h=r>>1,d=-1.586134342059924,f=-.052980118572961,m=.882911075530934,v=.443506852043971,y=1.230174104914001,k=1/y;for(n=(t|=0)-3,o=h+4;o--;n+=2)e[n]*=k;for(c=v*e[(n=t-2)-1],o=h+3;o--&&(l=v*e[n+1],e[n]=y*e[n]-c-l,o--);n+=2)c=v*e[(n+=2)+1],e[n]=y*e[n]-c-l;for(c=m*e[(n=t-1)-1],o=h+2;o--&&(l=m*e[n+1],e[n]-=c+l,o--);n+=2)c=m*e[(n+=2)+1],e[n]-=c+l;for(c=f*e[(n=t)-1],o=h+1;o--&&(l=f*e[n+1],e[n]-=c+l,o--);n+=2)c=f*e[(n+=2)+1],e[n]-=c+l;if(0!==h)for(c=d*e[(n=t+1)-1],o=h;o--&&(l=d*e[n+1],e[n]-=c+l,o--);n+=2)c=d*e[(n+=2)+1],e[n]-=c+l},e}(),N=function(){function e(){R.call(this)}return e.prototype=Object.create(R.prototype),e.prototype.filter=function(e,t,r){var n,o,c=r>>1;for(n=t|=0,o=c+1;o--;n+=2)e[n]-=e[n-1]+e[n+1]+2>>2;for(n=t+1,o=c;o--;n+=2)e[n]+=e[n-1]+e[n+1]>>1},e}();return t}();t.JpxImage=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA512=t.calculateSHA384=t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0;var n=r(2),o=r(5),c=r(12),l=function(){function e(e){this.a=0,this.b=0;var i,t,s=new Uint8Array(256),r=0,n=e.length;for(i=0;i<256;++i)s[i]=i;for(i=0;i<256;++i)r=r+(t=s[i])+e[i%n]&255,s[i]=s[r],s[r]=t;this.s=s}return e.prototype={encryptBlock:function(data){var i,e,t,r=data.length,a=this.a,b=this.b,s=this.s,output=new Uint8Array(r);for(i=0;i<r;++i)t=s[b=b+(e=s[a=a+1&255])&255],s[a]=t,s[b]=e,output[i]=data[i]^s[e+t&255];return this.a=a,this.b=b,output}},e.prototype.decryptBlock=e.prototype.encryptBlock,e}();t.ARCFourCipher=l;var h,d,f=(h=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]),d=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]),function(data,e,t){var i,r,n,o=1732584193,h1=-271733879,h2=-1732584194,h3=271733878,c=t+72&-64,l=new Uint8Array(c);for(i=0;i<t;++i)l[i]=data[e++];for(l[i++]=128,n=c-8;i<n;)l[i++]=0;l[i++]=t<<3&255,l[i++]=t>>5&255,l[i++]=t>>13&255,l[i++]=t>>21&255,l[i++]=t>>>29&255,l[i++]=0,l[i++]=0,l[i++]=0;var f=new Int32Array(16);for(i=0;i<c;){for(r=0;r<16;++r,i+=4)f[r]=l[i]|l[i+1]<<8|l[i+2]<<16|l[i+3]<<24;var m,g,a=o,b=h1,v=h2,y=h3;for(r=0;r<64;++r){r<16?(m=b&v|~b&y,g=r):r<32?(m=y&b|~y&v,g=5*r+1&15):r<48?(m=b^v^y,g=3*r+5&15):(m=v^(b|~y),g=7*r&15);var k=y,w=a+m+d[r]+f[g]|0,S=h[r];y=v,v=b,b=b+(w<<S|w>>>32-S)|0,a=k}o=o+a|0,h1=h1+b|0,h2=h2+v|0,h3=h3+y|0}return new Uint8Array([255&o,o>>8&255,o>>16&255,o>>>24&255,255&h1,h1>>8&255,h1>>16&255,h1>>>24&255,255&h2,h2>>8&255,h2>>16&255,h2>>>24&255,255&h3,h3>>8&255,h3>>16&255,h3>>>24&255])});t.calculateMD5=f;var m=function(){function e(e,t){this.high=0|e,this.low=0|t}return e.prototype={and:function(e){this.high&=e.high,this.low&=e.low},xor:function(e){this.high^=e.high,this.low^=e.low},or:function(e){this.high|=e.high,this.low|=e.low},shiftRight:function(e){e>=32?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)},shiftLeft:function(e){e>=32?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low=this.low<<e)},rotateRight:function(e){var t,r;32&e?(r=this.low,t=this.high):(t=this.low,r=this.high),e&=31,this.low=t>>>e|r<<32-e,this.high=r>>>e|t<<32-e},not:function(){this.high=~this.high,this.low=~this.low},add:function(e){var t=(this.low>>>0)+(e.low>>>0),r=(this.high>>>0)+(e.high>>>0);t>4294967295&&(r+=1),this.low=0|t,this.high=0|r},copyTo:function(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low},assign:function(e){this.high=e.high,this.low=e.low}},e}(),v=function(){function e(e,t){return e>>>t|e<<32-t}function t(e,t,r){return e&t^~e&r}function r(e,t,r){return e&t^e&r^t&r}function n(t){return e(t,2)^e(t,13)^e(t,22)}function o(t){return e(t,6)^e(t,11)^e(t,25)}function c(t){return e(t,7)^e(t,18)^t>>>3}var l=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];return function(data,h,d){var i,f,m,v=1779033703,h1=3144134277,h2=1013904242,h3=2773480762,h4=1359893119,h5=2600822924,h6=528734635,y=1541459225,k=64*Math.ceil((d+9)/64),w=new Uint8Array(k);for(i=0;i<d;++i)w[i]=data[h++];for(w[i++]=128,m=k-8;i<m;)w[i++]=0;w[i++]=0,w[i++]=0,w[i++]=0,w[i++]=d>>>29&255,w[i++]=d>>21&255,w[i++]=d>>13&255,w[i++]=d>>5&255,w[i++]=d<<3&255;var S,A=new Uint32Array(64);for(i=0;i<k;){for(f=0;f<16;++f)A[f]=w[i]<<24|w[i+1]<<16|w[i+2]<<8|w[i+3],i+=4;for(f=16;f<64;++f)A[f]=0|(e(S=A[f-2],17)^e(S,19)^S>>>10)+A[f-7]+c(A[f-15])+A[f-16];var x,C,a=v,b=h1,_=h2,P=h3,T=h4,I=h5,g=h6,E=y;for(f=0;f<64;++f)x=E+o(T)+t(T,I,g)+l[f]+A[f],C=n(a)+r(a,b,_),E=g,g=I,I=T,T=P+x|0,P=_,_=b,b=a,a=x+C|0;v=v+a|0,h1=h1+b|0,h2=h2+_|0,h3=h3+P|0,h4=h4+T|0,h5=h5+I|0,h6=h6+g|0,y=y+E|0}return new Uint8Array([v>>24&255,v>>16&255,v>>8&255,255&v,h1>>24&255,h1>>16&255,h1>>8&255,255&h1,h2>>24&255,h2>>16&255,h2>>8&255,255&h2,h3>>24&255,h3>>16&255,h3>>8&255,255&h3,h4>>24&255,h4>>16&255,h4>>8&255,255&h4,h5>>24&255,h5>>16&255,h5>>8&255,255&h5,h6>>24&255,h6>>16&255,h6>>8&255,255&h6,y>>24&255,y>>16&255,y>>8&255,255&y])}}();t.calculateSHA256=v;var k=function(){function e(e,t,r,n,o){e.assign(t),e.and(r),o.assign(t),o.not(),o.and(n),e.xor(o)}function t(e,t,r,n,o){e.assign(t),e.and(r),o.assign(t),o.and(n),e.xor(o),o.assign(r),o.and(n),e.xor(o)}function r(e,t,r){e.assign(t),e.rotateRight(28),r.assign(t),r.rotateRight(34),e.xor(r),r.assign(t),r.rotateRight(39),e.xor(r)}function n(e,t,r){e.assign(t),e.rotateRight(14),r.assign(t),r.rotateRight(18),e.xor(r),r.assign(t),r.rotateRight(41),e.xor(r)}function o(e,t,r){e.assign(t),e.rotateRight(1),r.assign(t),r.rotateRight(8),e.xor(r),r.assign(t),r.shiftRight(7),e.xor(r)}function c(e,t,r){e.assign(t),e.rotateRight(19),r.assign(t),r.rotateRight(61),e.xor(r),r.assign(t),r.shiftRight(6),e.xor(r)}var l=[new m(1116352408,3609767458),new m(1899447441,602891725),new m(3049323471,3964484399),new m(3921009573,2173295548),new m(961987163,4081628472),new m(1508970993,3053834265),new m(2453635748,2937671579),new m(2870763221,3664609560),new m(3624381080,2734883394),new m(310598401,1164996542),new m(607225278,1323610764),new m(1426881987,3590304994),new m(1925078388,4068182383),new m(2162078206,991336113),new m(2614888103,633803317),new m(3248222580,3479774868),new m(3835390401,2666613458),new m(4022224774,944711139),new m(264347078,2341262773),new m(604807628,2007800933),new m(770255983,1495990901),new m(1249150122,1856431235),new m(1555081692,3175218132),new m(1996064986,2198950837),new m(2554220882,3999719339),new m(2821834349,766784016),new m(2952996808,2566594879),new m(3210313671,3203337956),new m(3336571891,1034457026),new m(3584528711,2466948901),new m(113926993,3758326383),new m(338241895,168717936),new m(666307205,1188179964),new m(773529912,1546045734),new m(1294757372,1522805485),new m(1396182291,2643833823),new m(1695183700,2343527390),new m(1986661051,1014477480),new m(2177026350,1206759142),new m(2456956037,344077627),new m(2730485921,1290863460),new m(2820302411,3158454273),new m(3259730800,3505952657),new m(3345764771,106217008),new m(3516065817,3606008344),new m(3600352804,1432725776),new m(4094571909,1467031594),new m(275423344,851169720),new m(430227734,3100823752),new m(506948616,1363258195),new m(659060556,3750685593),new m(883997877,3785050280),new m(958139571,3318307427),new m(1322822218,3812723403),new m(1537002063,2003034995),new m(1747873779,3602036899),new m(1955562222,1575990012),new m(2024104815,1125592928),new m(2227730452,2716904306),new m(2361852424,442776044),new m(2428436474,593698344),new m(2756734187,3733110249),new m(3204031479,2999351573),new m(3329325298,3815920427),new m(3391569614,3928383900),new m(3515267271,566280711),new m(3940187606,3454069534),new m(4118630271,4000239992),new m(116418474,1914138554),new m(174292421,2731055270),new m(289380356,3203993006),new m(460393269,320620315),new m(685471733,587496836),new m(852142971,1086792851),new m(1017036298,365543100),new m(1126000580,2618297676),new m(1288033470,3409855158),new m(1501505948,4234509866),new m(1607167915,987167468),new m(1816402316,1246189591)];return function(data,h,d,f){var v,h1,h2,h3,h4,h5,h6,y;(f=!!f)?(v=new m(3418070365,3238371032),h1=new m(1654270250,914150663),h2=new m(2438529370,812702999),h3=new m(355462360,4144912697),h4=new m(1731405415,4290775857),h5=new m(2394180231,1750603025),h6=new m(3675008525,1694076839),y=new m(1203062813,3204075428)):(v=new m(1779033703,4089235720),h1=new m(3144134277,2227873595),h2=new m(1013904242,4271175723),h3=new m(2773480762,1595750129),h4=new m(1359893119,2917565137),h5=new m(2600822924,725511199),h6=new m(528734635,4215389547),y=new m(1541459225,327033209));var i,k,w,S=128*Math.ceil((d+17)/128),A=new Uint8Array(S);for(i=0;i<d;++i)A[i]=data[h++];for(A[i++]=128,w=S-16;i<w;)A[i++]=0;A[i++]=0,A[i++]=0,A[i++]=0,A[i++]=0,A[i++]=0,A[i++]=0,A[i++]=0,A[i++]=0,A[i++]=0,A[i++]=0,A[i++]=0,A[i++]=d>>>29&255,A[i++]=d>>21&255,A[i++]=d>>13&255,A[i++]=d>>5&255,A[i++]=d<<3&255;var x=new Array(80);for(i=0;i<80;i++)x[i]=new m(0,0);var C,_,a=new m(0,0),b=new m(0,0),P=new m(0,0),T=new m(0,0),I=new m(0,0),E=new m(0,0),g=new m(0,0),F=new m(0,0),L=new m(0,0),O=new m(0,0),R=new m(0,0),M=new m(0,0);for(i=0;i<S;){for(k=0;k<16;++k)x[k].high=A[i]<<24|A[i+1]<<16|A[i+2]<<8|A[i+3],x[k].low=A[i+4]<<24|A[i+5]<<16|A[i+6]<<8|A[i+7],i+=8;for(k=16;k<80;++k)c(C=x[k],x[k-2],M),C.add(x[k-7]),o(R,x[k-15],M),C.add(R),C.add(x[k-16]);for(a.assign(v),b.assign(h1),P.assign(h2),T.assign(h3),I.assign(h4),E.assign(h5),g.assign(h6),F.assign(y),k=0;k<80;++k)L.assign(F),n(R,I,M),L.add(R),e(R,I,E,g,M),L.add(R),L.add(l[k]),L.add(x[k]),r(O,a,M),t(R,a,b,P,M),O.add(R),C=F,F=g,g=E,E=I,T.add(L),I=T,T=P,P=b,b=a,C.assign(L),C.add(O),a=C;v.add(a),h1.add(b),h2.add(P),h3.add(T),h4.add(I),h5.add(E),h6.add(g),y.add(F)}return f?(_=new Uint8Array(48),v.copyTo(_,0),h1.copyTo(_,8),h2.copyTo(_,16),h3.copyTo(_,24),h4.copyTo(_,32),h5.copyTo(_,40)):(_=new Uint8Array(64),v.copyTo(_,0),h1.copyTo(_,8),h2.copyTo(_,16),h3.copyTo(_,24),h4.copyTo(_,32),h5.copyTo(_,40),h6.copyTo(_,48),y.copyTo(_,56)),_}}();t.calculateSHA512=k;var A=function(data,e,t){return k(data,e,t,!0)};t.calculateSHA384=A;var x=function(){function e(){}return e.prototype={decryptBlock:function(data){return data}},e}(),C=function(){return y((function e(){w(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize AESBaseCipher."),this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]),this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]),this._mixCol=new Uint8Array(256);for(var i=0;i<256;i++)this._mixCol[i]=i<128?i<<1:i<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}),[{key:"_expandKey",value:function(e){(0,n.unreachable)("Cannot call `_expandKey` on the base class")}},{key:"_decrypt",value:function(input,e){var t,u,r,n=new Uint8Array(16);n.set(input);for(var o=0,c=this._keySize;o<16;++o,++c)n[o]^=e[c];for(var i=this._cyclesOfRepetition-1;i>=1;--i){t=n[13],n[13]=n[9],n[9]=n[5],n[5]=n[1],n[1]=t,t=n[14],u=n[10],n[14]=n[6],n[10]=n[2],n[6]=t,n[2]=u,t=n[15],u=n[11],r=n[7],n[15]=n[3],n[11]=t,n[7]=u,n[3]=r;for(var l=0;l<16;++l)n[l]=this._inv_s[n[l]];for(var h=0,d=16*i;h<16;++h,++d)n[h]^=e[d];for(var f=0;f<16;f+=4){var m=this._mix[n[f]],v=this._mix[n[f+1]],y=this._mix[n[f+2]],k=this._mix[n[f+3]];t=m^v>>>8^v<<24^y>>>16^y<<16^k>>>24^k<<8,n[f]=t>>>24&255,n[f+1]=t>>16&255,n[f+2]=t>>8&255,n[f+3]=255&t}}t=n[13],n[13]=n[9],n[9]=n[5],n[5]=n[1],n[1]=t,t=n[14],u=n[10],n[14]=n[6],n[10]=n[2],n[6]=t,n[2]=u,t=n[15],u=n[11],r=n[7],n[15]=n[3],n[11]=t,n[7]=u,n[3]=r;for(var w=0;w<16;++w)n[w]=this._inv_s[n[w]],n[w]^=e[w];return n}},{key:"_encrypt",value:function(input,e){var t,u,r,s=this._s,n=new Uint8Array(16);n.set(input);for(var o=0;o<16;++o)n[o]^=e[o];for(var i=1;i<this._cyclesOfRepetition;i++){for(var c=0;c<16;++c)n[c]=s[n[c]];r=n[1],n[1]=n[5],n[5]=n[9],n[9]=n[13],n[13]=r,r=n[2],u=n[6],n[2]=n[10],n[6]=n[14],n[10]=r,n[14]=u,r=n[3],u=n[7],t=n[11],n[3]=n[15],n[7]=r,n[11]=u,n[15]=t;for(var l=0;l<16;l+=4){var h=n[l+0],d=n[l+1],f=n[l+2],m=n[l+3];t=h^d^f^m,n[l+0]^=t^this._mixCol[h^d],n[l+1]^=t^this._mixCol[d^f],n[l+2]^=t^this._mixCol[f^m],n[l+3]^=t^this._mixCol[m^h]}for(var v=0,y=16*i;v<16;++v,++y)n[v]^=e[y]}for(var k=0;k<16;++k)n[k]=s[n[k]];r=n[1],n[1]=n[5],n[5]=n[9],n[9]=n[13],n[13]=r,r=n[2],u=n[6],n[2]=n[10],n[6]=n[14],n[10]=r,n[14]=u,r=n[3],u=n[7],t=n[11],n[3]=n[15],n[7]=r,n[11]=u,n[15]=t;for(var w=0,S=this._keySize;w<16;++w,++S)n[w]^=e[S];return n}},{key:"_decryptBlock2",value:function(data,e){for(var t=data.length,r=this.buffer,n=this.bufferPosition,o=[],c=this.iv,i=0;i<t;++i)if(r[n]=data[i],!(++n<16)){for(var l=this._decrypt(r,this._key),h=0;h<16;++h)l[h]^=c[h];c=r,o.push(l),r=new Uint8Array(16),n=0}if(this.buffer=r,this.bufferLength=n,this.iv=c,0===o.length)return new Uint8Array(0);var d=16*o.length;if(e){var f=o[o.length-1],m=f[15];if(m<=16){for(var v=15,y=16-m;v>=y;--v)if(f[v]!==m){m=0;break}d-=m,o[o.length-1]=f.subarray(0,16-m)}}for(var output=new Uint8Array(d),k=0,w=0,S=o.length;k<S;++k,w+=16)output.set(o[k],w);return output}},{key:"decryptBlock",value:function(data,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=data.length,n=this.buffer,o=this.bufferPosition;if(t)this.iv=t;else{for(var i=0;o<16&&i<r;++i,++o)n[o]=data[i];if(o<16)return this.bufferLength=o,new Uint8Array(0);this.iv=n,data=data.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(data,e)}},{key:"encrypt",value:function(data,e){var t=data.length,r=this.buffer,n=this.bufferPosition,o=[];e||(e=new Uint8Array(16));for(var i=0;i<t;++i)if(r[n]=data[i],!(++n<16)){for(var c=0;c<16;++c)r[c]^=e[c];var l=this._encrypt(r,this._key);e=l,o.push(l),r=new Uint8Array(16),n=0}if(this.buffer=r,this.bufferLength=n,this.iv=e,0===o.length)return new Uint8Array(0);for(var h=16*o.length,output=new Uint8Array(h),d=0,f=0,m=o.length;d<m;++d,f+=16)output.set(o[d],f);return output}}])}(),P=function(e){function t(e){var r;return w(this,t),(r=S(this,t))._cyclesOfRepetition=10,r._keySize=160,r._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]),r._key=r._expandKey(e),r}return _(t,e),y(t,[{key:"_expandKey",value:function(e){var s=this._s,t=this._rcon,r=new Uint8Array(176);r.set(e);for(var n=16,i=1;n<176;++i){var o=r[n-3],c=r[n-2],l=r[n-1],h=r[n-4];o=s[o],c=s[c],l=s[l],h=s[h],o^=t[i];for(var d=0;d<4;++d)r[n]=o^=r[n-16],r[++n]=c^=r[n-16],r[++n]=l^=r[n-16],r[++n]=h^=r[n-16],n++}return r}}])}(C);t.AES128Cipher=P;var T=function(e){function t(e){var r;return w(this,t),(r=S(this,t))._cyclesOfRepetition=14,r._keySize=224,r._key=r._expandKey(e),r}return _(t,e),y(t,[{key:"_expandKey",value:function(e){var s=this._s,t=new Uint8Array(240);t.set(e);for(var r,n,o,c,l=1,h=32,i=1;h<240;++i){h%32==16?(r=s[r],n=s[n],o=s[o],c=s[c]):h%32==0&&(r=t[h-3],n=t[h-2],o=t[h-1],c=t[h-4],r=s[r],n=s[n],o=s[o],c=s[c],r^=l,(l<<=1)>=256&&(l=255&(27^l)));for(var d=0;d<4;++d)t[h]=r^=t[h-32],t[++h]=n^=t[h-32],t[++h]=o^=t[h-32],t[++h]=c^=t[h-32],h++}return t}}])}(C);t.AES256Cipher=T;var I=function(){function e(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}function t(){}return t.prototype={checkOwnerPassword:function(t,r,n,o){var c=new Uint8Array(t.length+56);return c.set(t,0),c.set(r,t.length),c.set(n,t.length+r.length),e(v(c,0,c.length),o)},checkUserPassword:function(t,r,n){var o=new Uint8Array(t.length+8);return o.set(t,0),o.set(r,t.length),e(v(o,0,o.length),n)},getOwnerKey:function(e,t,r,n){var o=new Uint8Array(e.length+56);o.set(e,0),o.set(t,e.length),o.set(r,e.length+t.length);var c=v(o,0,o.length);return new T(c).decryptBlock(n,!1,new Uint8Array(16))},getUserKey:function(e,t,r){var n=new Uint8Array(e.length+8);n.set(e,0),n.set(t,e.length);var o=v(n,0,n.length);return new T(o).decryptBlock(r,!1,new Uint8Array(16))}},t}();t.PDF17=I;var E=function(){function e(e,t){var r=new Uint8Array(e.length+t.length);return r.set(e,0),r.set(t,e.length),r}function t(t,input,r){for(var n=v(input,0,input.length).subarray(0,32),o=[0],i=0;i<64||o[o.length-1]>i-32;){var c=t.length+n.length+r.length,l=new Uint8Array(64*c),h=e(t,n);h=e(h,r);for(var d=0,f=0;d<64;d++,f+=c)l.set(h,f);o=new P(n.subarray(0,16)).encrypt(l,n.subarray(16,32));for(var m=0,y=0;y<16;y++)m*=1,m%=3,m+=(o[y]>>>0)%3,m%=3;0===m?n=v(o,0,o.length):1===m?n=A(o,0,o.length):2===m&&(n=k(o,0,o.length)),i++}return n.subarray(0,32)}function r(){}function n(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}return r.prototype={hash:function(e,r,n){return t(e,r,n)},checkOwnerPassword:function(e,r,o,c){var l=new Uint8Array(e.length+56);return l.set(e,0),l.set(r,e.length),l.set(o,e.length+r.length),n(t(e,l,o),c)},checkUserPassword:function(e,r,o){var c=new Uint8Array(e.length+8);return c.set(e,0),c.set(r,e.length),n(t(e,c,[]),o)},getOwnerKey:function(e,r,n,o){var c=new Uint8Array(e.length+56);c.set(e,0),c.set(r,e.length),c.set(n,e.length+r.length);var l=t(e,c,n);return new T(l).decryptBlock(o,!1,new Uint8Array(16))},getUserKey:function(e,r,n){var o=new Uint8Array(e.length+8);o.set(e,0),o.set(r,e.length);var c=t(e,o,[]);return new T(c).decryptBlock(n,!1,new Uint8Array(16))}},r}();t.PDF20=E;var F=function(){function e(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}return e.prototype={createStream:function(e,t){var r=new this.StreamCipherConstructor;return new c.DecryptStream(e,t,(function(data,e){return r.decryptBlock(data,e)}))},decryptString:function(s){var e=new this.StringCipherConstructor,data=(0,n.stringToBytes)(s);return data=e.decryptBlock(data,!0),(0,n.bytesToString)(data)}},e}(),L=function(){var e=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function t(t,r,n,o,c,h,d,m){var v,y,k=40+n.length+t.length,w=new Uint8Array(k),i=0;if(r)for(y=Math.min(32,r.length);i<y;++i)w[i]=r[i];for(v=0;i<32;)w[i++]=e[v++];for(v=0,y=n.length;v<y;++v)w[i++]=n[v];for(w[i++]=255&c,w[i++]=c>>8&255,w[i++]=c>>16&255,w[i++]=c>>>24&255,v=0,y=t.length;v<y;++v)w[i++]=t[v];h>=4&&!m&&(w[i++]=255,w[i++]=255,w[i++]=255,w[i++]=255);var S=f(w,0,i),A=d>>3;if(h>=3)for(v=0;v<50;++v)S=f(S,0,A);var x,C=S.subarray(0,A);if(h>=3){for(i=0;i<32;++i)w[i]=e[i];for(v=0,y=t.length;v<y;++v)w[i++]=t[v];x=new l(C).encryptBlock(f(w,0,i)),y=C.length;var _,P=new Uint8Array(y);for(v=1;v<=19;++v){for(_=0;_<y;++_)P[_]=C[_]^v;x=new l(P).encryptBlock(x)}for(v=0,y=x.length;v<y;++v)if(o[v]!==x[v])return null}else for(v=0,y=(x=new l(C).encryptBlock(e)).length;v<y;++v)if(o[v]!==x[v])return null;return C}var r=o.Name.get("Identity");function c(c,h,d){var filter=c.get("Filter");if(!(0,o.isName)(filter,"Standard"))throw new n.FormatError("unknown encryption method");this.dict=c;var m=c.get("V");if(!Number.isInteger(m)||1!==m&&2!==m&&4!==m&&5!==m)throw new n.FormatError("unsupported encryption algorithm");this.algorithm=m;var v=c.get("Length");if(!v)if(m<=3)v=40;else{var y=c.get("CF"),k=c.get("StmF");if((0,o.isDict)(y)&&(0,o.isName)(k)){y.suppressEncryption=!0;var w=y.get(k.name);(v=w&&w.get("Length")||128)<40&&(v<<=3)}}if(!Number.isInteger(v)||v<40||v%8!=0)throw new n.FormatError("invalid key length");var S=(0,n.stringToBytes)(c.get("O")).subarray(0,32),A=(0,n.stringToBytes)(c.get("U")).subarray(0,32),x=c.get("P"),C=c.get("R"),_=(4===m||5===m)&&!1!==c.get("EncryptMetadata");this.encryptMetadata=_;var P,T,F=(0,n.stringToBytes)(h);if(d){if(6===C)try{d=(0,n.utf8StringToString)(d)}catch(e){(0,n.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}P=(0,n.stringToBytes)(d)}if(5!==m)T=t(F,P,S,A,x,C,v,_);else{var L=(0,n.stringToBytes)(c.get("O")).subarray(32,40),O=(0,n.stringToBytes)(c.get("O")).subarray(40,48),R=(0,n.stringToBytes)(c.get("U")).subarray(0,48),M=(0,n.stringToBytes)(c.get("U")).subarray(32,40),N=(0,n.stringToBytes)(c.get("U")).subarray(40,48),D=(0,n.stringToBytes)(c.get("OE")),B=(0,n.stringToBytes)(c.get("UE"));(0,n.stringToBytes)(c.get("Perms")),T=function(e,t,r,n,o,c,l,h,d,f,m){if(t){var v=Math.min(127,t.length);t=t.subarray(0,v)}else t=[];var y;return(y=6===e?new E:new I).checkUserPassword(t,h,l)?y.getUserKey(t,d,m):t.length&&y.checkOwnerPassword(t,n,c,r)?y.getOwnerKey(t,o,c,f):null}(C,P,S,L,O,R,A,M,N,D,B)}if(!T&&!d)throw new n.PasswordException("No password given",n.PasswordResponses.NEED_PASSWORD);if(!T&&d){var U=function(t,r,n,o){var c,h,d=new Uint8Array(32),i=0;for(h=Math.min(32,t.length);i<h;++i)d[i]=t[i];for(c=0;i<32;)d[i++]=e[c++];var m,v=f(d,0,i),y=o>>3;if(n>=3)for(c=0;c<50;++c)v=f(v,0,v.length);if(n>=3){m=r;var k,w=new Uint8Array(y);for(c=19;c>=0;c--){for(k=0;k<y;++k)w[k]=v[k]^c;m=new l(w).encryptBlock(m)}}else m=new l(v.subarray(0,y)).encryptBlock(r);return m}(P,S,C,v);T=t(F,U,S,A,x,C,v,_)}if(!T)throw new n.PasswordException("Incorrect Password",n.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=T,m>=4){var j=c.get("CF");(0,o.isDict)(j)&&(j.suppressEncryption=!0),this.cf=j,this.stmf=c.get("StmF")||r,this.strf=c.get("StrF")||r,this.eff=c.get("EFF")||this.stmf}}function h(e,t,r,n){var i,o,c=new Uint8Array(r.length+9);for(i=0,o=r.length;i<o;++i)c[i]=r[i];return c[i++]=255&e,c[i++]=e>>8&255,c[i++]=e>>16&255,c[i++]=255&t,c[i++]=t>>8&255,n&&(c[i++]=115,c[i++]=65,c[i++]=108,c[i++]=84),f(c,0,i).subarray(0,Math.min(r.length+5,16))}function d(e,t,r,c,d){if(!(0,o.isName)(t))throw new n.FormatError("Invalid crypt filter name.");var f,m=e.get(t.name);if(null!=m&&(f=m.get("CFM")),!f||"None"===f.name)return function(){return new x};if("V2"===f.name)return function(){return new l(h(r,c,d,!1))};if("AESV2"===f.name)return function(){return new P(h(r,c,d,!0))};if("AESV3"===f.name)return function(){return new T(d)};throw new n.FormatError("Unknown crypto method")}return c.prototype={createCipherTransform:function(e,t){if(4===this.algorithm||5===this.algorithm)return new F(d(this.cf,this.stmf,e,t,this.encryptionKey),d(this.cf,this.strf,e,t,this.encryptionKey));var r=h(e,t,this.encryptionKey,!1),n=function(){return new l(r)};return new F(n,n)}},c}();t.CipherTransformFactory=L},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var n=r(2),o=r(5),c=function(){function e(t,r){w(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize ColorSpace."),this.name=t,this.numComps=r}return y(e,[{key:"getRgb",value:function(e,t){var r=new Uint8ClampedArray(3);return this.getRgbItem(e,t,r,0),r}},{key:"getRgbItem",value:function(e,t,r,o){(0,n.unreachable)("Should not call ColorSpace.getRgbItem")}},{key:"getRgbBuffer",value:function(e,t,r,o,c,l,h){(0,n.unreachable)("Should not call ColorSpace.getRgbBuffer")}},{key:"getOutputLength",value:function(e,t){(0,n.unreachable)("Should not call ColorSpace.getOutputLength")}},{key:"isPassthrough",value:function(e){return!1}},{key:"isDefaultDecode",value:function(t,r){return e.isDefaultDecode(t,this.numComps)}},{key:"fillRgb",value:function(e,t,r,n,o,c,l,h,d){var f=t*r,m=null,v=1<<l,y=r!==o||t!==n;if(this.isPassthrough(l))m=h;else if(1===this.numComps&&f>v&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){for(var k=l<=8?new Uint8Array(v):new Uint16Array(v),i=0;i<v;i++)k[i]=i;var w=new Uint8ClampedArray(3*v);if(this.getRgbBuffer(k,0,v,w,0,l,0),y){m=new Uint8Array(3*f);for(var S=0,A=0;A<f;++A){var x=3*h[A];m[S++]=w[x],m[S++]=w[x+1],m[S++]=w[x+2]}}else for(var C=0,_=0;_<f;++_){var P=3*h[_];e[C++]=w[P],e[C++]=w[P+1],e[C++]=w[P+2],C+=d}}else y?(m=new Uint8ClampedArray(3*f),this.getRgbBuffer(h,0,f,m,0,l,0)):this.getRgbBuffer(h,0,n*c,e,0,l,d);if(m)if(y)!function(e,t,r,h1,n,h2,o){o=1!==o?0:o;for(var c,l=r/n,h=h1/h2,d=0,f=new Uint16Array(n),m=3*r,i=0;i<n;i++)f[i]=3*Math.floor(i*l);for(var v=0;v<h2;v++)for(var y=Math.floor(v*h)*m,k=0;k<n;k++)c=y+f[k],t[d++]=e[c++],t[d++]=e[c++],t[d++]=e[c++],d+=o}(m,e,t,r,n,o,d);else for(var T=0,I=0,E=0,F=n*c;E<F;E++)e[T++]=m[I++],e[T++]=m[I++],e[T++]=m[I++],T+=d}},{key:"usesZeroToOneRange",get:function(){return(0,n.shadow)(this,"usesZeroToOneRange",!0)}}],[{key:"parse",value:function(e,t,r,n){var o=this.parseToIR(e,t,r,n);return this.fromIR(o)}},{key:"fromIR",value:function(e){var t,r,o,c=Array.isArray(e)?e[0]:e;switch(c){case"DeviceGrayCS":return this.singletons.gray;case"DeviceRgbCS":return this.singletons.rgb;case"DeviceCmykCS":return this.singletons.cmyk;case"CalGrayCS":return t=e[1],r=e[2],o=e[3],new k(t,r,o);case"CalRGBCS":t=e[1],r=e[2],o=e[3];var f=e[4];return new A(t,r,o,f);case"PatternCS":var m=e[1];return m&&(m=this.fromIR(m)),new h(m);case"IndexedCS":var v=e[1],y=e[2],w=e[3];return new d(this.fromIR(v),y,w);case"AlternateCS":var S=e[1],C=e[2],_=e[3];return new l(S,this.fromIR(C),_);case"LabCS":t=e[1],r=e[2];var P=e[3];return new x(t,r,P);default:throw new n.FormatError("Unknown colorspace name: ".concat(c))}}},{key:"parseToIR",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,c=arguments.length>3?arguments[3]:void 0;if(e=t.fetchIfRef(e),(0,o.isName)(e))switch(e.name){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"Pattern":return["PatternCS",null];default:if((0,o.isDict)(r)){var l=r.get("ColorSpace");if((0,o.isDict)(l)){var h=l.get(e.name);if(h){if((0,o.isName)(h))return this.parseToIR(h,t,r,c);e=h;break}}}throw new n.FormatError("unrecognized colorspace ".concat(e.name))}if(Array.isArray(e)){var d,f,m,v=t.fetchIfRef(e[0]).name;switch(v){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"CalGray":return["CalGrayCS",(f=t.fetchIfRef(e[1])).getArray("WhitePoint"),f.getArray("BlackPoint"),f.get("Gamma")];case"CalRGB":return["CalRGBCS",(f=t.fetchIfRef(e[1])).getArray("WhitePoint"),f.getArray("BlackPoint"),f.getArray("Gamma"),f.getArray("Matrix")];case"ICCBased":var y=t.fetchIfRef(e[1]).dict;if(d=y.get("N"),m=y.get("Alternate")){var k=this.parseToIR(m,t,r,c);if(this.fromIR(k,c).numComps===d)return k;(0,n.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===d)return"DeviceGrayCS";if(3===d)return"DeviceRgbCS";if(4===d)return"DeviceCmykCS";break;case"Pattern":var w=e[1]||null;return w&&(w=this.parseToIR(w,t,r,c)),["PatternCS",w];case"Indexed":case"I":var S=this.parseToIR(e[1],t,r,c),A=t.fetchIfRef(e[2])+1,x=t.fetchIfRef(e[3]);return(0,o.isStream)(x)&&(x=x.getBytes()),["IndexedCS",S,A,x];case"Separation":case"DeviceN":var C=t.fetchIfRef(e[1]);return["AlternateCS",d=Array.isArray(C)?C.length:1,m=this.parseToIR(e[2],t,r,c),c.create(t.fetchIfRef(e[3]))];case"Lab":return["LabCS",(f=t.fetchIfRef(e[1])).getArray("WhitePoint"),f.getArray("BlackPoint"),f.getArray("Range")];default:throw new n.FormatError('unimplemented color space object "'.concat(v,'"'))}}throw new n.FormatError('unrecognized color space object: "'.concat(e,'"'))}},{key:"isDefaultDecode",value:function(e,t){if(!Array.isArray(e))return!0;if(2*t!==e.length)return(0,n.warn)("The decode map is not the correct length"),!0;for(var i=0,r=e.length;i<r;i+=2)if(0!==e[i]||1!==e[i+1])return!1;return!0}},{key:"singletons",get:function(){return(0,n.shadow)(this,"singletons",{get gray(){return(0,n.shadow)(this,"gray",new f)},get rgb(){return(0,n.shadow)(this,"rgb",new m)},get cmyk(){return(0,n.shadow)(this,"cmyk",new v)}})}}])}();t.ColorSpace=c;var l=function(e){function t(e,base,r){var n;return w(this,t),(n=S(this,t,["Alternate",e])).base=base,n.tintFn=r,n.tmpBuf=new Float32Array(base.numComps),n}return _(t,e),y(t,[{key:"getRgbItem",value:function(e,t,r,n){var o=this.tmpBuf;this.tintFn(e,t,o,0),this.base.getRgbItem(o,0,r,n)}},{key:"getRgbBuffer",value:function(e,t,r,n,o,c,l){var i,h,d=this.tintFn,base=this.base,f=1/((1<<c)-1),m=base.numComps,v=base.usesZeroToOneRange,y=(base.isPassthrough(8)||!v)&&0===l,k=y?o:0,w=y?n:new Uint8ClampedArray(m*r),S=this.numComps,A=new Float32Array(S),x=new Float32Array(m);for(i=0;i<r;i++){for(h=0;h<S;h++)A[h]=e[t++]*f;if(d(A,0,x,0),v)for(h=0;h<m;h++)w[k++]=255*x[h];else base.getRgbItem(x,0,w,k),k+=m}y||base.getRgbBuffer(w,0,r,n,o,8,l)}},{key:"getOutputLength",value:function(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}}])}(c),h=function(e){function t(e){var r;return w(this,t),(r=S(this,t,["Pattern",null])).base=e,r}return _(t,e),y(t,[{key:"isDefaultDecode",value:function(e,t){(0,n.unreachable)("Should not call PatternCS.isDefaultDecode")}}])}(c),d=function(e){function t(base,e,r){var c;w(this,t),(c=S(this,t,["Indexed",1])).base=base,c.highVal=e;var l=base.numComps*e;if((0,o.isStream)(r)){c.lookup=new Uint8Array(l);var h=r.getBytes(l);c.lookup.set(h)}else if((0,n.isString)(r)){c.lookup=new Uint8Array(l);for(var i=0;i<l;++i)c.lookup[i]=r.charCodeAt(i)}else{if(!(r instanceof Uint8Array))throw new n.FormatError("Unrecognized lookup table: ".concat(r));c.lookup=r}return c}return _(t,e),y(t,[{key:"getRgbItem",value:function(e,t,r,n){var o=this.base.numComps,c=e[t]*o;this.base.getRgbBuffer(this.lookup,c,1,r,n,8,0)}},{key:"getRgbBuffer",value:function(e,t,r,n,o,c,l){for(var base=this.base,h=base.numComps,d=base.getOutputLength(h,l),f=this.lookup,i=0;i<r;++i){var m=e[t++]*h;base.getRgbBuffer(f,m,1,n,o,8,l),o+=d}}},{key:"getOutputLength",value:function(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}},{key:"isDefaultDecode",value:function(e,t){return!Array.isArray(e)||(2!==e.length?((0,n.warn)("Decode map length is not correct"),!0):!Number.isInteger(t)||t<1?((0,n.warn)("Bits per component is not correct"),!0):0===e[0]&&e[1]===(1<<t)-1)}}])}(c),f=function(e){function t(){return w(this,t),S(this,t,["DeviceGray",1])}return _(t,e),y(t,[{key:"getRgbItem",value:function(e,t,r,n){var o=255*e[t];r[n]=r[n+1]=r[n+2]=o}},{key:"getRgbBuffer",value:function(e,t,r,n,o,c,l){for(var h=255/((1<<c)-1),d=t,q=o,i=0;i<r;++i){var f=h*e[d++];n[q++]=f,n[q++]=f,n[q++]=f,q+=l}}},{key:"getOutputLength",value:function(e,t){return e*(3+t)}}])}(c),m=function(e){function t(){return w(this,t),S(this,t,["DeviceRGB",3])}return _(t,e),y(t,[{key:"getRgbItem",value:function(e,t,r,n){r[n]=255*e[t],r[n+1]=255*e[t+1],r[n+2]=255*e[t+2]}},{key:"getRgbBuffer",value:function(e,t,r,n,o,c,l){if(8!==c||0!==l)for(var h=255/((1<<c)-1),d=t,q=o,i=0;i<r;++i)n[q++]=h*e[d++],n[q++]=h*e[d++],n[q++]=h*e[d++],q+=l;else n.set(e.subarray(t,t+3*r),o)}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}},{key:"isPassthrough",value:function(e){return 8===e}}])}(c),v=function(){function e(e,t,r,n,o){var c=e[t]*r,l=e[t+1]*r,h=e[t+2]*r,d=e[t+3]*r;n[o]=255+c*(-4.387332384609988*c+54.48615194189176*l+18.82290502165302*h+212.25662451639585*d-285.2331026137004)+l*(1.7149763477362134*l-5.6096736904047315*h+-17.873870861415444*d-5.497006427196366)+h*(-2.5217340131683033*h-21.248923337353073*d+17.5119270841813)+d*(-21.86122147463605*d-189.48180835922747),n[o+1]=255+c*(8.841041422036149*c+60.118027045597366*l+6.871425592049007*h+31.159100130055922*d-79.2970844816548)+l*(-15.310361306967817*l+17.575251261109482*h+131.35250912493976*d-190.9453302588951)+h*(4.444339102852739*h+9.8632861493405*d-24.86741582555878)+d*(-20.737325471181034*d-187.80453709719578),n[o+2]=255+c*(.8842522430003296*c+8.078677503112928*l+30.89978309703729*h-.23883238689178934*d-14.183576799673286)+l*(10.49593273432072*l+63.02378494754052*h+50.606957656360734*d-112.23884253719248)+h*(.03296041114873217*h+115.60384449646641*d-193.58209356861505)+d*(-22.33816807309886*d-180.12613974708367)}return function(t){function r(){return w(this,r),S(this,r,["DeviceCMYK",4])}return _(r,t),y(r,[{key:"getRgbItem",value:function(t,r,n,o){e(t,r,1,n,o)}},{key:"getRgbBuffer",value:function(t,r,n,o,c,l,h){for(var d=1/((1<<l)-1),i=0;i<n;i++)e(t,r,d,o,c),r+=4,c+=3+h}},{key:"getOutputLength",value:function(e,t){return e/4*(3+t)|0}}])}(c)}(),k=function(){function e(e,t,r,n,o,c){var l=t[r]*c,h=Math.pow(l,e.G),d=e.YW*h,f=Math.max(295.8*Math.pow(d,.3333333333333333)-40.8,0);n[o]=f,n[o+1]=f,n[o+2]=f}return function(t){function r(e,t,o){var c;if(w(this,r),c=S(this,r,["CalGray",1]),!e)throw new n.FormatError("WhitePoint missing - required for color space CalGray");if(t=t||[0,0,0],o=o||1,c.XW=e[0],c.YW=e[1],c.ZW=e[2],c.XB=t[0],c.YB=t[1],c.ZB=t[2],c.G=o,c.XW<0||c.ZW<0||1!==c.YW)throw new n.FormatError("Invalid WhitePoint components for ".concat(c.name)+", no fallback available");return(c.XB<0||c.YB<0||c.ZB<0)&&((0,n.info)("Invalid BlackPoint for ".concat(c.name,", falling back to default.")),c.XB=c.YB=c.ZB=0),0===c.XB&&0===c.YB&&0===c.ZB||(0,n.warn)("".concat(c.name,", BlackPoint: XB: ").concat(c.XB,", YB: ").concat(c.YB,", ")+"ZB: ".concat(c.ZB,", only default values are supported.")),c.G<1&&((0,n.info)("Invalid Gamma: ".concat(c.G," for ").concat(c.name,", ")+"falling back to default."),c.G=1),c}return _(r,t),y(r,[{key:"getRgbItem",value:function(t,r,n,o){e(this,t,r,n,o,1)}},{key:"getRgbBuffer",value:function(t,r,n,o,c,l,h){for(var d=1/((1<<l)-1),i=0;i<n;++i)e(this,t,r,o,c,d),r+=1,c+=3+h}},{key:"getOutputLength",value:function(e,t){return e*(3+t)}}])}(c)}(),A=function(){var e=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),t=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),r=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),o=new Float32Array([1,1,1]),l=new Float32Array(3),h=new Float32Array(3),d=new Float32Array(3),f=Math.pow(24/116,3)/8;function m(a,b,e){e[0]=a[0]*b[0]+a[1]*b[1]+a[2]*b[2],e[1]=a[3]*b[0]+a[4]*b[1]+a[5]*b[2],e[2]=a[6]*b[0]+a[7]*b[1]+a[8]*b[2]}function v(e){return k(0,1,e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function k(e,t,r){return Math.max(e,Math.min(t,r))}function A(e){return e<0?-A(-e):e>8?Math.pow((e+16)/116,3):e*f}function x(n,c,f,y,w,S){var x=k(0,1,c[f]*S),C=k(0,1,c[f+1]*S),_=k(0,1,c[f+2]*S),P=Math.pow(x,n.GR),T=Math.pow(C,n.GG),I=Math.pow(_,n.GB),E=n.MXA*P+n.MXB*T+n.MXC*I,F=n.MYA*P+n.MYB*T+n.MYC*I,L=n.MZA*P+n.MZB*T+n.MZC*I,O=h;O[0]=E,O[1]=F,O[2]=L;var R=d;!function(r,n,o){if(1===r[0]&&1===r[2])return o[0]=n[0],o[1]=n[1],void(o[2]=n[2]);var c=o;m(e,n,c);var h=l;!function(e,t,r){r[0]=1*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1*t[2]/e[2]}(r,c,h),m(t,h,o)}(n.whitePoint,O,R);var M=h;!function(e,t,r){if(0===e[0]&&0===e[1]&&0===e[2])return r[0]=t[0],r[1]=t[1],void(r[2]=t[2]);var n=A(0),o=(1-n)/(1-A(e[0])),c=1-o,l=(1-n)/(1-A(e[1])),h=1-l,d=(1-n)/(1-A(e[2])),f=1-d;r[0]=t[0]*o+c,r[1]=t[1]*l+h,r[2]=t[2]*d+f}(n.blackPoint,R,M);var N=d;!function(r,n,o){var c=o;m(e,n,c);var h=l;!function(e,t,r){r[0]=.95047*t[0]/e[0],r[1]=1*t[1]/e[1],r[2]=1.08883*t[2]/e[2]}(r,c,h),m(t,h,o)}(o,M,N);var D=h;m(r,N,D),y[w]=255*v(D[0]),y[w+1]=255*v(D[1]),y[w+2]=255*v(D[2])}return function(e){function t(e,r,o,c){var l;if(w(this,t),l=S(this,t,["CalRGB",3]),!e)throw new n.FormatError("WhitePoint missing - required for color space CalRGB");r=r||new Float32Array(3),o=o||new Float32Array([1,1,1]),c=c||new Float32Array([1,0,0,0,1,0,0,0,1]);var h=e[0],d=e[1],f=e[2];l.whitePoint=e;var m=r[0],v=r[1],y=r[2];if(l.blackPoint=r,l.GR=o[0],l.GG=o[1],l.GB=o[2],l.MXA=c[0],l.MYA=c[1],l.MZA=c[2],l.MXB=c[3],l.MYB=c[4],l.MZB=c[5],l.MXC=c[6],l.MYC=c[7],l.MZC=c[8],h<0||f<0||1!==d)throw new n.FormatError("Invalid WhitePoint components for ".concat(l.name)+", no fallback available");return(m<0||v<0||y<0)&&((0,n.info)("Invalid BlackPoint for ".concat(l.name," [").concat(m,", ").concat(v,", ").concat(y,"], ")+"falling back to default."),l.blackPoint=new Float32Array(3)),(l.GR<0||l.GG<0||l.GB<0)&&((0,n.info)("Invalid Gamma [".concat(l.GR,", ").concat(l.GG,", ").concat(l.GB,"] for ")+"".concat(l.name,", falling back to default.")),l.GR=l.GG=l.GB=1),l}return _(t,e),y(t,[{key:"getRgbItem",value:function(e,t,r,n){x(this,e,t,r,n,1)}},{key:"getRgbBuffer",value:function(e,t,r,n,o,c,l){for(var h=1/((1<<c)-1),i=0;i<r;++i)x(this,e,t,n,o,h),t+=3,o+=3+l}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}}])}(c)}(),x=function(){function e(e){return e>=6/29?e*e*e:108/841*(e-4/29)}function t(e,t,r,n){return r+e*(n-r)/t}function r(r,n,o,c,l,h){var d=n[o],f=n[o+1],m=n[o+2];!1!==c&&(d=t(d,c,0,100),f=t(f,c,r.amin,r.amax),m=t(m,c,r.bmin,r.bmax)),f>r.amax?f=r.amax:f<r.amin&&(f=r.amin),m>r.bmax?m=r.bmax:m<r.bmin&&(m=r.bmin);var v,g,b,y=(d+16)/116,k=y+f/500,w=y-m/200,S=r.XW*e(k),A=r.YW*e(y),x=r.ZW*e(w);r.ZW<1?(v=3.1339*S+-1.617*A+-.4906*x,g=-.9785*S+1.916*A+.0333*x,b=.072*S+-.229*A+1.4057*x):(v=3.2406*S+-1.5372*A+-.4986*x,g=-.9689*S+1.8758*A+.0415*x,b=.0557*S+-.204*A+1.057*x),l[h]=255*Math.sqrt(v),l[h+1]=255*Math.sqrt(g),l[h+2]=255*Math.sqrt(b)}return function(e){function t(e,r,o){var c;if(w(this,t),c=S(this,t,["Lab",3]),!e)throw new n.FormatError("WhitePoint missing - required for color space Lab");if(r=r||[0,0,0],o=o||[-100,100,-100,100],c.XW=e[0],c.YW=e[1],c.ZW=e[2],c.amin=o[0],c.amax=o[1],c.bmin=o[2],c.bmax=o[3],c.XB=r[0],c.YB=r[1],c.ZB=r[2],c.XW<0||c.ZW<0||1!==c.YW)throw new n.FormatError("Invalid WhitePoint components, no fallback available");return(c.XB<0||c.YB<0||c.ZB<0)&&((0,n.info)("Invalid BlackPoint, falling back to default"),c.XB=c.YB=c.ZB=0),(c.amin>c.amax||c.bmin>c.bmax)&&((0,n.info)("Invalid Range, falling back to defaults"),c.amin=-100,c.amax=100,c.bmin=-100,c.bmax=100),c}return _(t,e),y(t,[{key:"getRgbItem",value:function(e,t,n,o){r(this,e,t,!1,n,o)}},{key:"getRgbBuffer",value:function(e,t,n,o,c,l,h){for(var d=(1<<l)-1,i=0;i<n;i++)r(this,e,t,d,o,c),t+=3,c+=3+h}},{key:"getOutputLength",value:function(e,t){return e*(3+t)/3|0}},{key:"isDefaultDecode",value:function(e,t){return!0}},{key:"usesZeroToOneRange",get:function(){return(0,n.shadow)(this,"usesZeroToOneRange",!1)}}])}(c)}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalImageCache=t.LocalImageCache=void 0;var n=r(2),o=r(5),c=function(){return y((function e(){w(this,e),this._nameRefMap=new Map,this._imageMap=new Map,this._imageCache=new o.RefSetCache}),[{key:"getByName",value:function(e){var t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}},{key:"getByRef",value:function(e){return this._imageCache.get(e)||null}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,data=arguments.length>2?arguments[2]:void 0;if(!e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;return this._nameRefMap.set(e,t),void this._imageCache.put(t,data)}this._imageMap.has(e)||this._imageMap.set(e,data)}}])}();t.LocalImageCache=c;var l=function(){function e(){w(this,e),this._refCache=new o.RefSetCache,this._imageCache=new o.RefSetCache}return y(e,[{key:"shouldCache",value:function(t,r){var n=this._refCache.get(t);return!((n?n.size+(n.has(r)?0:1):1)<e.NUM_PAGES_THRESHOLD||!this._imageCache.has(t)&&this._imageCache.size>=e.MAX_IMAGES_TO_CACHE)}},{key:"addPageIndex",value:function(e,t){var r=this._refCache.get(e);r||(r=new Set,this._refCache.put(e,r)),r.add(t)}},{key:"getData",value:function(t,r){if(!this._refCache.has(t))return null;var n=this._refCache.get(t);return n.size<e.NUM_PAGES_THRESHOLD?null:this._imageCache.has(t)?(n.add(r),this._imageCache.get(t)):null}},{key:"setData",value:function(t,data){if(!this._refCache.has(t))throw new Error('GlobalImageCache.setData - expected "addPageIndex" to have been called.');this._imageCache.has(t)||(this._imageCache.size>=e.MAX_IMAGES_TO_CACHE?(0,n.info)("GlobalImageCache.setData - ignoring image above MAX_IMAGES_TO_CACHE."):this._imageCache.put(t,data))}},{key:"clear",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this._refCache.clear(),this._imageCache.clear()}}],[{key:"NUM_PAGES_THRESHOLD",get:function(){return(0,n.shadow)(this,"NUM_PAGES_THRESHOLD",2)}},{key:"MAX_IMAGES_TO_CACHE",get:function(){return(0,n.shadow)(this,"MAX_IMAGES_TO_CACHE",10)}}])}();t.GlobalImageCache=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQuadPoints=x,t.MarkupAnnotation=t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0;var n=r(2),o=r(10),c=r(5),l=r(23),d=r(8),f=r(26),v=r(12),k=function(){return y((function e(){w(this,e)}),null,[{key:"create",value:function(e,t,r,n){return r.ensure(this,"_create",[e,t,r,n])}},{key:"_create",value:function(e,t,r,o){var l=e.fetchIfRef(t);if((0,c.isDict)(l)){var h=(0,c.isRef)(t)?t.toString():"annot_".concat(o.createObjId()),f=l.get("Subtype"),m={xref:e,dict:l,subtype:f=(0,c.isName)(f)?f.name:null,id:h,pdfManager:r};switch(f){case"Link":return new M(m);case"Text":return new R(m);case"Widget":var v=(0,d.getInheritableProperty)({dict:l,key:"FT"});switch(v=(0,c.isName)(v)?v.name:null){case"Tx":return new F(m);case"Btn":return new L(m);case"Ch":return new O(m)}return(0,n.warn)('Unimplemented widget field type "'+v+'", falling back to base field type.'),new E(m);case"Popup":return new N(m);case"FreeText":return new D(m);case"Line":return new B(m);case"Square":return new U(m);case"Circle":return new j(m);case"PolyLine":return new H(m);case"Polygon":return new G(m);case"Caret":return new z(m);case"Ink":return new W(m);case"Highlight":return new V(m);case"Underline":return new X(m);case"Squiggly":return new Y(m);case"StrikeOut":return new K(m);case"Stamp":return new J(m);case"FileAttachment":return new Z(m);default:return f?(0,n.warn)('Unimplemented annotation type "'+f+'", falling back to base annotation.'):(0,n.warn)("Annotation is missing the required /Subtype."),new C(m)}}}}])}();function x(e,rect){if(!e.has("QuadPoints"))return null;var t=e.getArray("QuadPoints");if(!Array.isArray(t)||t.length%8>0)return null;for(var r=[],i=0,n=t.length/8;i<n;i++){r.push([]);for(var o=8*i,c=8*i+8;o<c;o+=2){var l=t[o],h=t[o+1];if(l<rect[0]||l>rect[2]||h<rect[1]||h>rect[3])return null;r[i].push({x:l,y:h})}}return r}t.AnnotationFactory=k;var C=function(){return y((function e(t){w(this,e);var r=t.dict;this.setContents(r.get("Contents")),this.setModificationDate(r.get("M")),this.setFlags(r.get("F")),this.setRectangle(r.getArray("Rect")),this.setColor(r.getArray("C")),this.setBorderStyle(r),this.setAppearance(r),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,contents:this.contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype}}),[{key:"_hasFlag",value:function(e,t){return!!(e&t)}},{key:"_isViewable",value:function(e){return!this._hasFlag(e,n.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,n.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,n.AnnotationFlag.NOVIEW)}},{key:"_isPrintable",value:function(e){return this._hasFlag(e,n.AnnotationFlag.PRINT)&&!this._hasFlag(e,n.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,n.AnnotationFlag.HIDDEN)}},{key:"viewable",get:function(){return 0===this.flags||this._isViewable(this.flags)}},{key:"printable",get:function(){return 0!==this.flags&&this._isPrintable(this.flags)}},{key:"setContents",value:function(e){this.contents=(0,n.stringToPDFString)(e||"")}},{key:"setModificationDate",value:function(e){this.modificationDate=(0,n.isString)(e)?e:null}},{key:"setFlags",value:function(e){this.flags=Number.isInteger(e)&&e>0?e:0}},{key:"hasFlag",value:function(e){return this._hasFlag(this.flags,e)}},{key:"setRectangle",value:function(e){Array.isArray(e)&&4===e.length?this.rectangle=n.Util.normalizeRect(e):this.rectangle=[0,0,0,0]}},{key:"setColor",value:function(e){var t=new Uint8ClampedArray(3);if(Array.isArray(e))switch(e.length){case 0:this.color=null;break;case 1:l.ColorSpace.singletons.gray.getRgbItem(e,0,t,0),this.color=t;break;case 3:l.ColorSpace.singletons.rgb.getRgbItem(e,0,t,0),this.color=t;break;case 4:l.ColorSpace.singletons.cmyk.getRgbItem(e,0,t,0),this.color=t;break;default:this.color=t}else this.color=t}},{key:"setBorderStyle",value:function(e){if(this.borderStyle=new P,(0,c.isDict)(e))if(e.has("BS")){var t=e.get("BS"),r=t.get("Type");r&&!(0,c.isName)(r,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D")))}else if(e.has("Border")){var n=e.getArray("Border");Array.isArray(n)&&n.length>=3&&(this.borderStyle.setHorizontalCornerRadius(n[0]),this.borderStyle.setVerticalCornerRadius(n[1]),this.borderStyle.setWidth(n[2],this.rectangle),4===n.length&&this.borderStyle.setDashArray(n[3]))}else this.borderStyle.setWidth(0)}},{key:"setAppearance",value:function(e){this.appearance=null;var t=e.get("AP");if((0,c.isDict)(t)){var r=t.get("N");if((0,c.isStream)(r))this.appearance=r;else if((0,c.isDict)(r)){var n=e.get("AS");(0,c.isName)(n)&&r.has(n.name)&&(this.appearance=r.get(n.name))}}}},{key:"loadResources",value:function(e){return this.appearance.dict.getAsync("Resources").then((function(t){if(t)return new o.ObjectLoader(t,e,t.xref).load().then((function(){return t}))}))}},{key:"getOperatorList",value:function(e,t,r){var o=this;if(!this.appearance)return Promise.resolve(new f.OperatorList);var data=this.data,c=this.appearance.dict,l=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),h=c.getArray("BBox")||[0,0,1,1],d=c.getArray("Matrix")||[1,0,0,1,0,0],m=function(rect,e,t){var r=I(n.Util.getAxialAlignedBoundingBox(e,t),4),o=r[0],c=r[1],l=r[2],h=r[3];if(o===l||c===h)return[1,0,0,1,rect[0],rect[1]];var d=(rect[2]-rect[0])/(l-o),f=(rect[3]-rect[1])/(h-c);return[d,0,0,f,rect[0]-o*d,rect[1]-c*f]}(data.rect,h,d);return l.then((function(r){var c=new f.OperatorList;return c.addOp(n.OPS.beginAnnotation,[data.rect,m,d]),e.getOperatorList({stream:o.appearance,task:t,resources:r,operatorList:c}).then((function(){return c.addOp(n.OPS.endAnnotation,[]),o.appearance.reset(),c}))}))}}])}();t.Annotation=C;var P=function(){return y((function e(){w(this,e),this.width=1,this.style=n.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}),[{key:"setWidth",value:function(e){var rect=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0,0];if((0,c.isName)(e))this.width=0;else if(Number.isInteger(e)){if(e>0){var t=(rect[2]-rect[0])/2,r=(rect[3]-rect[1])/2;t>0&&r>0&&(e>t||e>r)&&((0,n.warn)("AnnotationBorderStyle.setWidth - ignoring width: ".concat(e)),e=1)}this.width=e}}},{key:"setStyle",value:function(style){if((0,c.isName)(style))switch(style.name){case"S":this.style=n.AnnotationBorderStyleType.SOLID;break;case"D":this.style=n.AnnotationBorderStyleType.DASHED;break;case"B":this.style=n.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=n.AnnotationBorderStyleType.INSET;break;case"U":this.style=n.AnnotationBorderStyleType.UNDERLINE}}},{key:"setDashArray",value:function(e){if(Array.isArray(e)&&e.length>0){var t,r=!0,n=!0,o=m(e);try{for(o.s();!(t=o.n()).done;){var element=t.value;if(!(+element>=0)){r=!1;break}element>0&&(n=!1)}}catch(e){o.e(e)}finally{o.f()}r&&!n?this.dashArray=e:this.width=0}else e&&(this.width=0)}},{key:"setHorizontalCornerRadius",value:function(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}},{key:"setVerticalCornerRadius",value:function(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}])}();t.AnnotationBorderStyle=P;var T=function(e){function t(e){var r;w(this,t),r=S(this,t,[e]);var o=e.dict;if(o.has("IRT")){var l=o.getRaw("IRT");r.data.inReplyTo=(0,c.isRef)(l)?l.toString():null;var rt=o.get("RT");r.data.replyType=(0,c.isName)(rt)?rt.name:n.AnnotationReplyType.REPLY}if(r.data.replyType===n.AnnotationReplyType.GROUP){var h=o.get("IRT");r.data.title=(0,n.stringToPDFString)(h.get("T")||""),r.setContents(h.get("Contents")),r.data.contents=r.contents,h.has("CreationDate")?(r.setCreationDate(h.get("CreationDate")),r.data.creationDate=r.creationDate):r.data.creationDate=null,h.has("M")?(r.setModificationDate(h.get("M")),r.data.modificationDate=r.modificationDate):r.data.modificationDate=null,r.data.hasPopup=h.has("Popup"),h.has("C")?(r.setColor(h.getArray("C")),r.data.color=r.color):r.data.color=null}else r.data.title=(0,n.stringToPDFString)(o.get("T")||""),r.setCreationDate(o.get("CreationDate")),r.data.creationDate=r.creationDate,r.data.hasPopup=o.has("Popup"),o.has("C")||(r.data.color=null);return r}return _(t,e),y(t,[{key:"setCreationDate",value:function(e){this.creationDate=(0,n.isString)(e)?e:null}}])}(C);t.MarkupAnnotation=T;var E=function(e){function t(e){var r;w(this,t),r=S(this,t,[e]);var o=e.dict,data=r.data;data.annotationType=n.AnnotationType.WIDGET,data.fieldName=r._constructFieldName(o),data.fieldValue=(0,d.getInheritableProperty)({dict:o,key:"V",getArray:!0}),data.alternativeText=(0,n.stringToPDFString)(o.get("TU")||""),data.defaultAppearance=(0,d.getInheritableProperty)({dict:o,key:"DA"})||"";var l=(0,d.getInheritableProperty)({dict:o,key:"FT"});return data.fieldType=(0,c.isName)(l)?l.name:null,r.fieldResources=(0,d.getInheritableProperty)({dict:o,key:"DR"})||c.Dict.empty,data.fieldFlags=(0,d.getInheritableProperty)({dict:o,key:"Ff"}),(!Number.isInteger(data.fieldFlags)||data.fieldFlags<0)&&(data.fieldFlags=0),data.readOnly=r.hasFieldFlag(n.AnnotationFieldFlag.READONLY),"Sig"===data.fieldType&&(data.fieldValue=null,r.setFlags(n.AnnotationFlag.HIDDEN)),r}return _(t,e),y(t,[{key:"_constructFieldName",value:function(e){if(!e.has("T")&&!e.has("Parent"))return(0,n.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,n.stringToPDFString)(e.get("T"));var t=[];e.has("T")&&t.unshift((0,n.stringToPDFString)(e.get("T")));for(var r=e;r.has("Parent")&&(r=r.get("Parent"),(0,c.isDict)(r));)r.has("T")&&t.unshift((0,n.stringToPDFString)(r.get("T")));return t.join(".")}},{key:"hasFieldFlag",value:function(e){return!!(this.data.fieldFlags&e)}},{key:"getOperatorList",value:function(e,r,n){return n?Promise.resolve(new f.OperatorList):h(t,"getOperatorList",this,3)([e,r,n])}}])}(C),F=function(e){function t(e){var r;w(this,t),r=S(this,t,[e]);var o=e.dict;r.data.fieldValue=(0,n.stringToPDFString)(r.data.fieldValue||"");var c=(0,d.getInheritableProperty)({dict:o,key:"Q"});(!Number.isInteger(c)||c<0||c>2)&&(c=null),r.data.textAlignment=c;var l=(0,d.getInheritableProperty)({dict:o,key:"MaxLen"});return(!Number.isInteger(l)||l<0)&&(l=null),r.data.maxLen=l,r.data.multiLine=r.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE),r.data.comb=r.hasFieldFlag(n.AnnotationFieldFlag.COMB)&&!r.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE)&&!r.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD)&&!r.hasFieldFlag(n.AnnotationFieldFlag.FILESELECT)&&null!==r.data.maxLen,r}return _(t,e),y(t,[{key:"getOperatorList",value:function(e,r,o){if(o||this.appearance)return h(t,"getOperatorList",this,3)([e,r,o]);var c=new f.OperatorList;if(!this.data.defaultAppearance)return Promise.resolve(c);var l=new v.Stream((0,n.stringToBytes)(this.data.defaultAppearance));return e.getOperatorList({stream:l,task:r,resources:this.fieldResources,operatorList:c}).then((function(){return c}))}}])}(E),L=function(e){function t(e){var r;return w(this,t),(r=S(this,t,[e])).data.checkBox=!r.hasFieldFlag(n.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),r.data.radioButton=r.hasFieldFlag(n.AnnotationFieldFlag.RADIO)&&!r.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),r.data.pushButton=r.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON),r.data.checkBox?r._processCheckBox(e):r.data.radioButton?r._processRadioButton(e):r.data.pushButton?r._processPushButton(e):(0,n.warn)("Invalid field flags for button widget annotation"),r}return _(t,e),y(t,[{key:"_processCheckBox",value:function(e){(0,c.isName)(this.data.fieldValue)&&(this.data.fieldValue=this.data.fieldValue.name);var t=e.dict.get("AP");if((0,c.isDict)(t)){var r=t.get("D");if((0,c.isDict)(r)){var n=r.getKeys();2===n.length&&(this.data.exportValue="Off"===n[0]?n[1]:n[0])}}}},{key:"_processRadioButton",value:function(e){this.data.fieldValue=this.data.buttonValue=null;var t=e.dict.get("Parent");if((0,c.isDict)(t)&&t.has("V")){var r=t.get("V");(0,c.isName)(r)&&(this.data.fieldValue=r.name)}var n=e.dict.get("AP");if((0,c.isDict)(n)){var o=n.get("N");if((0,c.isDict)(o)){var l,h=m(o.getKeys());try{for(h.s();!(l=h.n()).done;){var d=l.value;if("Off"!==d){this.data.buttonValue=d;break}}}catch(e){h.e(e)}finally{h.f()}}}}},{key:"_processPushButton",value:function(e){e.dict.has("A")?o.Catalog.parseDestDictionary({destDict:e.dict,resultObj:this.data,docBaseUrl:e.pdfManager.docBaseUrl}):(0,n.warn)("Push buttons without action dictionaries are not supported")}}])}(E),O=function(e){function t(e){var r;w(this,t),(r=S(this,t,[e])).data.options=[];var o=(0,d.getInheritableProperty)({dict:e.dict,key:"Opt"});if(Array.isArray(o))for(var c=e.xref,i=0,l=o.length;i<l;i++){var option=c.fetchIfRef(o[i]),h=Array.isArray(option);r.data.options[i]={exportValue:h?c.fetchIfRef(option[0]):option,displayValue:(0,n.stringToPDFString)(h?c.fetchIfRef(option[1]):option)}}return Array.isArray(r.data.fieldValue)||(r.data.fieldValue=[r.data.fieldValue]),r.data.combo=r.hasFieldFlag(n.AnnotationFieldFlag.COMBO),r.data.multiSelect=r.hasFieldFlag(n.AnnotationFieldFlag.MULTISELECT),r}return _(t,e),y(t)}(E),R=function(e){function t(e){var r;w(this,t),r=S(this,t,[e]);var o=e.dict;return r.data.annotationType=n.AnnotationType.TEXT,r.data.hasAppearance?r.data.name="NoIcon":(r.data.rect[1]=r.data.rect[3]-22,r.data.rect[2]=r.data.rect[0]+22,r.data.name=o.has("Name")?o.get("Name").name:"Note"),o.has("State")?(r.data.state=o.get("State")||null,r.data.stateModel=o.get("StateModel")||null):(r.data.state=null,r.data.stateModel=null),r}return _(t,e),y(t)}(T),M=function(e){function t(e){var r;w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.LINK;var c=x(e.dict,r.rectangle);return c&&(r.data.quadPoints=c),o.Catalog.parseDestDictionary({destDict:e.dict,resultObj:r.data,docBaseUrl:e.pdfManager.docBaseUrl}),r}return _(t,e),y(t)}(C),N=function(e){function t(e){var r;w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.POPUP;var o=e.dict.get("Parent");if(!o)return(0,n.warn)("Popup annotation has a missing or invalid parent annotation."),A(r);var l=o.get("Subtype");r.data.parentType=(0,c.isName)(l)?l.name:null;var h=e.dict.getRaw("Parent");r.data.parentId=(0,c.isRef)(h)?h.toString():null;var rt=o.get("RT");if((0,c.isName)(rt,n.AnnotationReplyType.GROUP)&&(o=o.get("IRT")),o.has("M")?(r.setModificationDate(o.get("M")),r.data.modificationDate=r.modificationDate):r.data.modificationDate=null,o.has("C")?(r.setColor(o.getArray("C")),r.data.color=r.color):r.data.color=null,!r.viewable){var d=o.get("F");r._isViewable(d)&&r.setFlags(d)}return r.data.title=(0,n.stringToPDFString)(o.get("T")||""),r.data.contents=(0,n.stringToPDFString)(o.get("Contents")||""),r}return _(t,e),y(t)}(C),D=function(e){function t(e){var r;return w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.FREETEXT,r}return _(t,e),y(t)}(T),B=function(e){function t(e){var r;return w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.LINE,r.data.lineCoordinates=n.Util.normalizeRect(e.dict.getArray("L")),r}return _(t,e),y(t)}(T),U=function(e){function t(e){var r;return w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.SQUARE,r}return _(t,e),y(t)}(T),j=function(e){function t(e){var r;return w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.CIRCLE,r}return _(t,e),y(t)}(T),H=function(e){function t(e){var r;w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.POLYLINE;var o=e.dict.getArray("Vertices");r.data.vertices=[];for(var i=0,c=o.length;i<c;i+=2)r.data.vertices.push({x:o[i],y:o[i+1]});return r}return _(t,e),y(t)}(T),G=function(e){function t(e){var r;return w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.POLYGON,r}return _(t,e),y(t)}(H),z=function(e){function t(e){var r;return w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.CARET,r}return _(t,e),y(t)}(T),W=function(e){function t(e){var r;w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.INK;var o=e.xref,c=e.dict.getArray("InkList");r.data.inkLists=[];for(var i=0,l=c.length;i<l;++i){r.data.inkLists.push([]);for(var h=0,d=c[i].length;h<d;h+=2)r.data.inkLists[i].push({x:o.fetchIfRef(c[i][h]),y:o.fetchIfRef(c[i][h+1])})}return r}return _(t,e),y(t)}(T),V=function(e){function t(e){var r;w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.HIGHLIGHT;var o=x(e.dict,r.rectangle);return o&&(r.data.quadPoints=o),r}return _(t,e),y(t)}(T),X=function(e){function t(e){var r;w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.UNDERLINE;var o=x(e.dict,r.rectangle);return o&&(r.data.quadPoints=o),r}return _(t,e),y(t)}(T),Y=function(e){function t(e){var r;w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.SQUIGGLY;var o=x(e.dict,r.rectangle);return o&&(r.data.quadPoints=o),r}return _(t,e),y(t)}(T),K=function(e){function t(e){var r;w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.STRIKEOUT;var o=x(e.dict,r.rectangle);return o&&(r.data.quadPoints=o),r}return _(t,e),y(t)}(T),J=function(e){function t(e){var r;return w(this,t),(r=S(this,t,[e])).data.annotationType=n.AnnotationType.STAMP,r}return _(t,e),y(t)}(T),Z=function(e){function t(e){var r;w(this,t),r=S(this,t,[e]);var c=new o.FileSpec(e.dict.get("FS"),e.xref);return r.data.annotationType=n.AnnotationType.FILEATTACHMENT,r.data.file=c.serializable,r}return _(t,e),y(t)}(T)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0;var n=r(2),o=function(){function e(e,pattern,t,r,n){for(var o=e,i=0,c=pattern.length-1;i<c;i++){var l=pattern[i];o=o[l]||(o[l]=[])}o[pattern[pattern.length-1]]={checkFn:t,iterateFn:r,processFn:n}}var t=[];function r(e){this.queue=e,this.state=null,this.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray},this.match=null,this.lastProcessed=0}return e(t,[n.OPS.save,n.OPS.transform,n.OPS.paintInlineImageXObject,n.OPS.restore],null,(function(e,i){var t=e.fnArray,r=(i-(e.iCurr-3))%4;switch(r){case 0:return t[i]===n.OPS.save;case 1:return t[i]===n.OPS.transform;case 2:return t[i]===n.OPS.paintInlineImageXObject;case 3:return t[i]===n.OPS.restore}throw new Error("iterateInlineImageGroup - invalid pos: ".concat(r))}),(function(e,i){var t=e.fnArray,r=e.argsArray,o=e.iCurr,c=o-3,l=o-2,h=o-1,d=Math.min(Math.floor((i-c)/4),200);if(d<10)return i-(i-c)%4;var q,f=0,map=[],m=0,v=1,y=1;for(q=0;q<d;q++){var k=r[l+(q<<2)],img=r[h+(q<<2)][0];v+img.width>1e3&&(f=Math.max(f,v),y+=m+2,v=0,m=0),map.push({transform:k,x:v,y:y,w:img.width,h:img.height}),v+=img.width+2,m=Math.max(m,img.height)}var w=Math.max(f,v)+1,S=y+m+1,A=new Uint8ClampedArray(w*S*4),x=w<<2;for(q=0;q<d;q++){var data=r[h+(q<<2)][0].data,C=map[q].w<<2,_=0,P=map[q].x+map[q].y*w<<2;A.set(data.subarray(0,C),P-x);for(var T=0,I=map[q].h;T<I;T++)A.set(data.subarray(_,_+C),P),_+=C,P+=x;for(A.set(data.subarray(_-C,_),P);P>=0;)data[P-4]=data[P],data[P-3]=data[P+1],data[P-2]=data[P+2],data[P-1]=data[P+3],data[P+C]=data[P+C-4],data[P+C+1]=data[P+C-3],data[P+C+2]=data[P+C-2],data[P+C+3]=data[P+C-1],P-=x}return t.splice(c,4*d,n.OPS.paintInlineImageXObjectGroup),r.splice(c,4*d,[{width:w,height:S,kind:n.ImageKind.RGBA_32BPP,data:A},map]),c+1})),e(t,[n.OPS.save,n.OPS.transform,n.OPS.paintImageMaskXObject,n.OPS.restore],null,(function(e,i){var t=e.fnArray,r=(i-(e.iCurr-3))%4;switch(r){case 0:return t[i]===n.OPS.save;case 1:return t[i]===n.OPS.transform;case 2:return t[i]===n.OPS.paintImageMaskXObject;case 3:return t[i]===n.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: ".concat(r))}),(function(e,i){var q,t=e.fnArray,r=e.argsArray,o=e.iCurr,c=o-3,l=o-2,h=o-1,d=Math.floor((i-c)/4);if(d=function(e,t,r,o){for(var c=e+2,i=0;i<t;i++){var l=o[c+4*i],h=1===l.length&&l[0];if(!h||1!==h.width||1!==h.height||h.data.length&&(1!==h.data.length||0!==h.data[0]))break;r[c+4*i]=n.OPS.paintSolidColorImageMask}return t-i}(c,d,t,r),d<10)return i-(i-c)%4;var f,m,v=!1,y=r[h][0];if(0===r[l][1]&&0===r[l][2]){v=!0;var k=r[l][0],w=r[l][3];f=l+4;var S=h+4;for(q=1;q<d;q++,f+=4,S+=4)if(m=r[f],r[S][0]!==y||m[0]!==k||0!==m[1]||0!==m[2]||m[3]!==w){q<10?v=!1:d=q;break}}if(v){d=Math.min(d,1e3);var A=new Float32Array(2*d);for(f=l,q=0;q<d;q++,f+=4)m=r[f],A[q<<1]=m[4],A[1+(q<<1)]=m[5];t.splice(c,4*d,n.OPS.paintImageMaskXObjectRepeat),r.splice(c,4*d,[y,k,w,A])}else{d=Math.min(d,100);var x=[];for(q=0;q<d;q++){m=r[l+(q<<2)];var C=r[h+(q<<2)][0];x.push({data:C.data,width:C.width,height:C.height,transform:m})}t.splice(c,4*d,n.OPS.paintImageMaskXObjectGroup),r.splice(c,4*d,[x])}return c+1})),e(t,[n.OPS.save,n.OPS.transform,n.OPS.paintImageXObject,n.OPS.restore],(function(e){var t=e.argsArray,r=e.iCurr-2;return 0===t[r][1]&&0===t[r][2]}),(function(e,i){var t=e.fnArray,r=e.argsArray,o=(i-(e.iCurr-3))%4;switch(o){case 0:return t[i]===n.OPS.save;case 1:if(t[i]!==n.OPS.transform)return!1;var c=e.iCurr-2,l=r[c][0],h=r[c][3];return r[i][0]===l&&0===r[i][1]&&0===r[i][2]&&r[i][3]===h;case 2:if(t[i]!==n.OPS.paintImageXObject)return!1;var d=r[e.iCurr-1][0];return r[i][0]===d;case 3:return t[i]===n.OPS.restore}throw new Error("iterateImageGroup - invalid pos: ".concat(o))}),(function(e,i){var t=e.fnArray,r=e.argsArray,o=e.iCurr,c=o-3,l=o-2,h=r[o-1][0],d=r[l][0],f=r[l][3],m=Math.min(Math.floor((i-c)/4),1e3);if(m<3)return i-(i-c)%4;for(var v=new Float32Array(2*m),y=l,q=0;q<m;q++,y+=4){var k=r[y];v[q<<1]=k[4],v[1+(q<<1)]=k[5]}var w=[h,d,f,v];return t.splice(c,4*m,n.OPS.paintImageXObjectRepeat),r.splice(c,4*m,w),c+1})),e(t,[n.OPS.beginText,n.OPS.setFont,n.OPS.setTextMatrix,n.OPS.showText,n.OPS.endText],null,(function(e,i){var t=e.fnArray,r=e.argsArray,o=(i-(e.iCurr-4))%5;switch(o){case 0:return t[i]===n.OPS.beginText;case 1:return t[i]===n.OPS.setFont;case 2:return t[i]===n.OPS.setTextMatrix;case 3:if(t[i]!==n.OPS.showText)return!1;var c=e.iCurr-3,l=r[c][0],h=r[c][1];return r[i][0]===l&&r[i][1]===h;case 4:return t[i]===n.OPS.endText}throw new Error("iterateShowTextGroup - invalid pos: ".concat(o))}),(function(e,i){var t=e.fnArray,r=e.argsArray,n=e.iCurr,o=n-4,c=n-3,l=n-2,h=n-1,d=n,f=r[c][0],m=r[c][1],v=Math.min(Math.floor((i-o)/5),1e3);if(v<3)return i-(i-o)%5;var y=o;o>=4&&t[o-4]===t[c]&&t[o-3]===t[l]&&t[o-2]===t[h]&&t[o-1]===t[d]&&r[o-4][0]===f&&r[o-4][1]===m&&(v++,y-=5);for(var k=y+4,q=1;q<v;q++)t.splice(k,3),r.splice(k,3),k+=2;return k+1})),r.prototype={_optimize:function(){var e=this.queue.fnArray,i=this.lastProcessed,r=e.length,n=this.state,o=this.match;if(n||o||i+1!==r||t[e[i]]){for(var c=this.context;i<r;){if(o){if((0,o.iterateFn)(c,i)){i++;continue}if(i=(0,o.processFn)(c,i+1),o=null,n=null,i>=(r=e.length))break}(n=(n||t)[e[i]])&&!Array.isArray(n)?(c.iCurr=i,i++,!n.checkFn||(0,n.checkFn)(c)?(o=n,n=null):n=null):i++}this.state=n,this.match=o,this.lastProcessed=i}else this.lastProcessed=r},push:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()},flush:function(){for(;this.match;){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}},reset:function(){this.state=null,this.match=null,this.lastProcessed=0}},r}(),c=function(){function e(e){this.queue=e}return e.prototype={push:function(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t)},flush:function(){},reset:function(){}},e}(),l=function(){function e(e,t,r){this._streamSink=t,this.fnArray=[],this.argsArray=[],this.optimizer=t&&"oplist"!==e?new o(this):new c(this),this.dependencies=Object.create(null),this._totalLength=0,this.pageIndex=r,this.intent=e,this.weight=0,this._resolved=t?null:Promise.resolve()}return e.prototype={get length(){return this.argsArray.length},get ready(){return this._resolved||this._streamSink.ready},get totalLength(){return this._totalLength+this.length},addOp:function(e,t){this.optimizer.push(e,t),this.weight++,this._streamSink&&(this.weight>=1e3||this.weight>=995&&(e===n.OPS.restore||e===n.OPS.endText))&&this.flush()},addDependency:function(e){e in this.dependencies||(this.dependencies[e]=!0,this.addOp(n.OPS.dependency,[e]))},addDependencies:function(e){for(var t in e)this.addDependency(t)},addOpList:function(t){if(t instanceof e){Object.assign(this.dependencies,t.dependencies);for(var i=0,r=t.length;i<r;i++)this.addOp(t.fnArray[i],t.argsArray[i])}else(0,n.warn)('addOpList - ignoring invalid "opList" parameter.')},getIR:function(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}},get _transfers(){for(var e=[],t=this.fnArray,r=this.argsArray,o=this.length,i=0;i<o;i++)switch(t[i]){case n.OPS.paintInlineImageXObject:case n.OPS.paintInlineImageXObjectGroup:case n.OPS.paintImageMaskXObject:var c=r[i][0];c.cached||e.push(c.data.buffer)}return e},flush:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.optimizer.flush();var t=this.length;this._totalLength+=t,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,length:t},1,this._transfers),this.dependencies=Object.create(null),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}},e}();t.OperatorList=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PartialEvaluator=void 0;var n=r(2),o=r(28),c=r(5),l=r(29),h=r(32),d=r(8),f=r(35),v=r(34),k=r(38),S=r(11),A=r(39),x=r(23),C=r(12),_=r(33),P=r(40),I=r(41),E=r(24),F=r(43),L=r(26),R=r(44),M=function(){var e={maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1};function t(t){var r=this,o=t.xref,c=t.handler,l=t.pageIndex,h=t.idFactory,d=t.fontCache,f=t.builtInCMapCache,m=t.globalImageCache,v=t.options,y=void 0===v?null:v,k=t.pdfFunctionFactory;this.xref=o,this.handler=c,this.pageIndex=l,this.idFactory=h,this.fontCache=d,this.builtInCMapCache=f,this.globalImageCache=m,this.options=y||e,this.pdfFunctionFactory=k,this.parsingType3Font=!1,this.fetchBuiltInCMap=function(){var e=O(T().mark((function e(t){var o,c,data;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.builtInCMapCache.has(t)){e.next=2;break}return e.abrupt("return",r.builtInCMapCache.get(t));case 2:return o=r.handler.sendWithStream("FetchBuiltInCMap",{name:t}),c=o.getReader(),e.next=6,new Promise((function(e,t){!function r(){c.read().then((function(t){var n=t.value;t.done||(e(n),r())}),t)}()}));case 6:return(data=e.sent).compressionType!==n.CMapCompressionType.NONE&&r.builtInCMapCache.set(t,data),e.abrupt("return",data);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}function r(){this.reset()}function y(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++){var o=y(e[i],!0);if(o)return o}return(0,n.warn)("Unsupported blend mode Array: ".concat(e)),"source-over"}if(!(0,c.isName)(e))return t?null:"source-over";switch(e.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}return t?null:((0,n.warn)("Unsupported blend mode: ".concat(e.name)),"source-over")}r.prototype={check:function(){return!(++this.checked<100)&&(this.checked=0,this.endTime<=Date.now())},reset:function(){this.endTime=Date.now()+20,this.checked=0}};var w=Promise.resolve();return t.prototype={clone:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object.create(this);return r.options=t,r},hasBlendModes:function(e){if(!(e instanceof c.Dict))return!1;var t=Object.create(null);e.objId&&(t[e.objId]=!0);for(var r=[e],o=this.xref;r.length;){var l=r.shift(),h=l.get("ExtGState");if(h instanceof c.Dict)for(var f=h.getKeys(),i=0,m=f.length;i<m;i++){var v=f[i],y=h.getRaw(v);if(y instanceof c.Ref){if(t[y.toString()])continue;try{y=o.fetch(y)}catch(e){if(e instanceof d.MissingDataException)throw e;if(this.options.ignoreErrors){y instanceof c.Ref&&(t[y.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorExtGState}),(0,n.warn)('hasBlendModes - ignoring ExtGState: "'.concat(e,'".'));continue}throw e}}if(y instanceof c.Dict){y.objId&&(t[y.objId]=!0);var k=y.get("BM");if(k instanceof c.Name){if("Normal"!==k.name)return!0}else if(void 0!==k&&Array.isArray(k))for(var w=0,S=k.length;w<S;w++)if(k[w]instanceof c.Name&&"Normal"!==k[w].name)return!0}}var A=l.get("XObject");if(A instanceof c.Dict)for(var x=A.getKeys(),C=0,_=x.length;C<_;C++){var P=x[C],T=A.getRaw(P);if(T instanceof c.Ref){if(t[T.toString()])continue;try{T=o.fetch(T)}catch(e){if(e instanceof d.MissingDataException)throw e;if(this.options.ignoreErrors){T instanceof c.Ref&&(t[T.toString()]=!0),this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorXObject}),(0,n.warn)('hasBlendModes - ignoring XObject: "'.concat(e,'".'));continue}throw e}}if((0,c.isStream)(T)){if(T.dict.objId){if(t[T.dict.objId])continue;t[T.dict.objId]=!0}var I=T.dict.get("Resources");!(I instanceof c.Dict)||I.objId&&t[I.objId]||(r.push(I),I.objId&&(t[I.objId]=!0))}}}return!1},buildFormXObject:function(e,t,r,o,l,h){var d=this;return O(T().mark((function f(){var m,v,y,k,w,S,A;return T().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:if(m=t.dict,v=m.getArray("Matrix"),y=m.getArray("BBox"),y=Array.isArray(y)&&4===y.length?n.Util.normalizeRect(y):null,!(k=m.get("Group"))){f.next=18;break}if(w={matrix:v,bbox:y,smask:r,isolated:!1,knockout:!1},S=k.get("S"),A=null,!(0,c.isName)(S,"Transparency")){f.next=16;break}if(w.isolated=k.get("I")||!1,w.knockout=k.get("K")||!1,!k.has("CS")){f.next=16;break}return f.next=15,d.parseColorSpace({cs:k.get("CS"),resources:e});case 15:A=f.sent;case 16:r&&r.backdrop&&(A=A||x.ColorSpace.singletons.rgb,r.backdrop=A.getRgb(r.backdrop,0)),o.addOp(n.OPS.beginGroup,[w]);case 18:return o.addOp(n.OPS.paintFormXObjectBegin,[v,y]),f.abrupt("return",d.getOperatorList({stream:t,task:l,resources:m.get("Resources")||e,operatorList:o,initialState:h}).then((function(){o.addOp(n.OPS.paintFormXObjectEnd,[]),k&&o.addOp(n.OPS.endGroup,[w])})));case 20:case"end":return f.stop()}}),f)})))()},buildPaintImageXObject:function(e){var t=this;return O(T().mark((function r(){var o,image,c,l,h,d,f,m,v,y,k,w,S,A,x,_,P,I,E,F,mask,L,O,M,N;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.resources,image=e.image,c=e.isInline,l=void 0!==c&&c,h=e.operatorList,d=e.cacheKey,f=e.localImageCache,m=image.dict,v=m.objId,y=m.get("Width","W"),k=m.get("Height","H"),y&&(0,n.isNum)(y)&&k&&(0,n.isNum)(k)){r.next=8;break}return(0,n.warn)("Image dimensions are missing, or not numbers."),r.abrupt("return",void 0);case 8:if(!(-1!==(w=t.options.maxImageSize)&&y*k>w)){r.next=12;break}return(0,n.warn)("Image exceeded maximum allowed size and was removed."),r.abrupt("return",void 0);case 12:if(!m.get("ImageMask","IM")){r.next=25;break}return x=m.get("Width","W"),_=m.get("Height","H"),P=x+7>>3,I=image.getBytes(P*_,!0),E=m.getArray("Decode","D"),(S=R.PDFImage.createMask({imgArray:I,width:x,height:_,imageIsFromDecodeStream:image instanceof C.DecodeStream,inverseDecode:!!E&&E[0]>0})).cached=!!d,A=[S],h.addOp(n.OPS.paintImageMaskXObject,A),d&&f.set(d,v,{fn:n.OPS.paintImageMaskXObject,args:A}),r.abrupt("return",void 0);case 25:if(F=m.get("SMask","SM")||!1,mask=m.get("Mask")||!1,!l||F||mask||!(y+k<200)){r.next=33;break}return L=new R.PDFImage({xref:t.xref,res:o,image:image,isInline:l,pdfFunctionFactory:t.pdfFunctionFactory}),S=L.createImageData(!0),h.addOp(n.OPS.paintInlineImageXObject,[S]),r.abrupt("return",void 0);case 33:if(O="img_".concat(t.idFactory.createObjId()),M=!1,t.parsingType3Font?O="".concat(t.idFactory.getDocId(),"_type3res_").concat(O):v&&(M=t.globalImageCache.shouldCache(v,t.pageIndex))&&(O="".concat(t.idFactory.getDocId(),"_").concat(O)),h.addDependency(O),A=[O,y,k],N=R.PDFImage.buildImage({xref:t.xref,res:o,image:image,isInline:l,pdfFunctionFactory:t.pdfFunctionFactory}).then((function(e){if(S=e.createImageData(!1),t.parsingType3Font)return t.handler.sendWithPromise("commonobj",[O,"FontType3Res",S],[S.data.buffer]);M?t.handler.send("commonobj",[O,"Image",S],[S.data.buffer]):t.handler.send("obj",[O,t.pageIndex,"Image",S],[S.data.buffer])})).catch((function(e){if((0,n.warn)("Unable to decode image: "+e),t.parsingType3Font)return t.handler.sendWithPromise("commonobj",[O,"FontType3Res",null]);M?t.handler.send("commonobj",[O,"Image",null]):t.handler.send("obj",[O,t.pageIndex,"Image",null])})),!t.parsingType3Font){r.next=41;break}return r.next=41,N;case 41:return h.addOp(n.OPS.paintImageXObject,A),d&&(f.set(d,v,{fn:n.OPS.paintImageXObject,args:A}),v&&((0,n.assert)(!l,"Cannot cache an inline image globally."),t.globalImageCache.addPageIndex(v,t.pageIndex),M&&t.globalImageCache.setData(v,{objId:O,fn:n.OPS.paintImageXObject,args:A}))),r.abrupt("return",void 0);case 44:case"end":return r.stop()}}),r)})))()},handleSMask:function(e,t,r,n,o){var c=e.get("G"),l={subtype:e.get("S").name,backdrop:e.get("BC")},h=e.get("TR");if((0,I.isPDFFunction)(h)){for(var d=this.pdfFunctionFactory.create(h),f=new Uint8Array(256),m=new Float32Array(1),i=0;i<256;i++)m[0]=i/255,d(m,0,m,0),f[i]=255*m[0]|0;l.transferMap=f}return this.buildFormXObject(t,c,l,r,n,o.state.clone())},handleTilingType:function(e,t,r,pattern,o,l,h){var d=this,f=new L.OperatorList,m=[o.get("Resources"),r],v=c.Dict.merge(this.xref,m);return this.getOperatorList({stream:pattern,task:h,resources:v,operatorList:f}).then((function(){return(0,k.getTilingPatternIR)({fnArray:f.fnArray,argsArray:f.argsArray},o,t)})).then((function(t){l.addDependencies(f.dependencies),l.addOp(e,t)}),(function(e){if(!(e instanceof n.AbortException)){if(d.options.ignoreErrors)return d.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorTilingPattern}),void(0,n.warn)('handleTilingType - ignoring pattern: "'.concat(e,'".'));throw e}}))},handleSetFont:function(e,t,r,o,c,h){var d,f=this;return t&&(d=(t=t.slice())[0].name),this.loadFont(d,r,e).then((function(t){return t.font.isType3Font?t.loadType3Data(f,e,o,c).then((function(){return t})).catch((function(e){return f.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontLoadType3}),new N({loadedName:"g_font_error",font:new l.ErrorFont("Type3 font load error: ".concat(e)),dict:t.font,extraProperties:f.options.fontExtraProperties})})):t})).then((function(e){return h.font=e.font,e.send(f.handler),e.loadedName}))},handleText:function(e,r){var o=r.font,c=o.charsToGlyphs(e);return o.data&&(r.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG||"Pattern"===r.fillColorSpace.name||o.disableFontFace||this.options.disableFontFace)&&t.buildFontPaths(o,c,this.handler),c},ensureStateFont:function(e){if(!e.font){var t=new n.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontState}),void(0,n.warn)('ensureStateFont: "'.concat(t,'".'));throw t}},setGState:function(e,t,r,o,l){for(var h=this,d=[],f=t.getKeys(),m=Promise.resolve(),v=function(){var v=f[i],k=t.get(v);switch(v){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":d.push([v,k]);break;case"Font":m=m.then((function(){return h.handleSetFont(e,null,k[0],r,o,l.state).then((function(e){r.addDependency(e),d.push([v,[e,k[1]]])}))}));break;case"BM":d.push([v,y(k)]);break;case"SMask":if((0,c.isName)(k,"None")){d.push([v,!1]);break}(0,c.isDict)(k)?(m=m.then((function(){return h.handleSMask(k,e,r,o,l)})),d.push([v,!0])):(0,n.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,n.info)("graphic state operator "+v);break;default:(0,n.info)("Unknown graphic state operator "+v)}},i=0,k=f.length;i<k;i++)v();return m.then((function(){d.length>0&&r.addOp(n.OPS.setGState,[d])}))},loadFont:function(e,r,o){var h,d=this,f=function(){return Promise.resolve(new N({loadedName:"g_font_error",font:new l.ErrorFont('Font "'.concat(e,'" is not available.')),dict:r,extraProperties:d.options.fontExtraProperties}))},m=this.xref;if(r){if(!(0,c.isRef)(r))throw new n.FormatError('The "font" object should be a reference.');h=r}else{var v=o.get("Font");v&&(h=v.getRaw(e))}if(!h){var y='Font "'.concat(e||r&&r.toString(),'" is not available');if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,n.warn)("".concat(y,".")),f();this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontMissing}),(0,n.warn)("".concat(y," -- attempting to fallback to a default font.")),h=t.getFallbackFontDict()}if(this.fontCache.has(h))return this.fontCache.get(h);if(r=m.fetchIfRef(h),!(0,c.isDict)(r))return f();if(r.translated)return r.translated;var k,w,S=(0,n.createPromiseCapability)(),A=this.preEvaluateFont(r),x=A.descriptor,C=A.hash,_=(0,c.isRef)(h);if(_&&(k=h.toString()),C&&(0,c.isDict)(x)){x.fontAliases||(x.fontAliases=Object.create(null));var P=x.fontAliases;if(P[C]){var T=P[C].aliasRef;if(_&&T&&this.fontCache.has(T))return this.fontCache.putAlias(h,T),this.fontCache.get(h)}else P[C]={fontID:l.Font.getFontID()};_&&(P[C].aliasRef=h),k=P[C].fontID}_?this.fontCache.put(h,S.promise):(k||(k=this.idFactory.createObjId()),this.fontCache.put("id_".concat(k),S.promise)),(0,n.assert)(k,'The "fontID" must be defined.'),r.loadedName="".concat(this.idFactory.getDocId(),"_f").concat(k),r.translated=S.promise;try{w=this.translateFont(A)}catch(e){w=Promise.reject(e)}return w.then((function(e){void 0!==e.fontType&&(m.stats.fontTypes[e.fontType]=!0),S.resolve(new N({loadedName:r.loadedName,font:e,dict:r,extraProperties:d.options.fontExtraProperties}))})).catch((function(e){d.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontTranslate});try{var t=x&&x.get("FontFile3"),o=t&&t.get("Subtype"),c=(0,l.getFontType)(A.type,o&&o.name);m.stats.fontTypes[c]=!0}catch(e){}S.resolve(new N({loadedName:r.loadedName,font:new l.ErrorFont(e instanceof Error?e.message:e),dict:r,extraProperties:d.options.fontExtraProperties}))})),S.promise},buildPath:function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=e.length-1;if(r||(r=[]),c<0||e.fnArray[c]!==n.OPS.constructPath)o&&((0,n.warn)('Encountered path operator "'.concat(t,'" inside of a text object.')),e.addOp(n.OPS.save,null)),e.addOp(n.OPS.constructPath,[[t],r]),o&&e.addOp(n.OPS.restore,null);else{var l=e.argsArray[c];l[0].push(t),Array.prototype.push.apply(l[1],r)}},parseColorSpace:function(e){var t=this,r=e.cs,o=e.resources;return new Promise((function(e){e(x.ColorSpace.parse(r,t.xref,o,t.pdfFunctionFactory))})).catch((function(e){if(e instanceof n.AbortException)return null;if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorColorSpace}),(0,n.warn)('parseColorSpace - ignoring ColorSpace: "'.concat(e,'".')),null;throw e}))},handleColorN:function(e,t,r,o,l,h,d){var f=this;return O(T().mark((function m(){var v,pattern,y,w,S,A,x;return T().wrap((function(m){for(;;)switch(m.prev=m.next){case 0:if(v=r[r.length-1],!(0,c.isName)(v)||!(pattern=l.get(v.name))){m.next=16;break}if(y=(0,c.isStream)(pattern)?pattern.dict:pattern,1!==(w=y.get("PatternType"))){m.next=9;break}return S=o.base?o.base.getRgb(r,0):null,m.abrupt("return",f.handleTilingType(t,S,h,pattern,y,e,d));case 9:if(2!==w){m.next=15;break}return A=y.get("Shading"),x=y.getArray("Matrix"),pattern=k.Pattern.parseShading(A,x,f.xref,h,f.handler,f.pdfFunctionFactory),e.addOp(t,pattern.getIR()),m.abrupt("return",void 0);case 15:throw new n.FormatError("Unknown PatternType: ".concat(w));case 16:throw new n.FormatError("Unknown PatternName: ".concat(v));case 17:case"end":return m.stop()}}),m)})))()},getOperatorList:function(e){var t=this,o=e.stream,l=e.task,h=e.resources,d=e.operatorList,f=e.initialState,m=void 0===f?null:f;if(h=h||c.Dict.empty,m=m||new U,!d)throw new Error('getOperatorList: missing "operatorList" parameter');var v=this,y=this.xref,S=!1,A=new E.LocalImageCache,C=h.get("XObject")||c.Dict.empty,_=h.get("Pattern")||c.Dict.empty,P=new D(m),T=new j(o,y,P),I=new r;function F(e){for(var i=0,t=T.savedStatesDepth;i<t;i++)d.addOp(n.OPS.restore,[])}return new Promise((function e(t,r){var o=function(n){Promise.all([n,d.ready]).then((function(){try{e(t,r)}catch(e){r(e)}}),r)};l.ensureNotTerminated(),I.reset();for(var f,i,m,E,L={};!(f=I.check())&&(L.args=null,T.read(L));){var O=L.args,R=L.fn;switch(0|R){case n.OPS.paintXObject:var M=O[0].name;if(M){var N=A.getByName(M);if(N){d.addOp(N.fn,N.args),O=null;continue}}return void o(new Promise((function(e,t){if(!M)throw new n.FormatError("XObject must be referred to by name.");var r=C.getRaw(M);if(r instanceof c.Ref){var o=A.getByRef(r);if(o)return d.addOp(o.fn,o.args),void e();var f=v.globalImageCache.getData(r,v.pageIndex);if(f)return d.addDependency(f.objId),d.addOp(f.fn,f.args),void e();r=y.fetch(r)}if(!r)return d.addOp(R,O),void e();if(!(0,c.isStream)(r))throw new n.FormatError("XObject should be a stream");var m=r.dict.get("Subtype");if(!(0,c.isName)(m))throw new n.FormatError("XObject should have a Name subtype");if("Form"===m.name)return P.save(),void v.buildFormXObject(h,r,null,d,l,P.state.clone()).then((function(){P.restore(),e()}),t);if("Image"!==m.name){if("PS"!==m.name)throw new n.FormatError("Unhandled XObject subtype ".concat(m.name));(0,n.info)("Ignored XObject subtype PS"),e()}else v.buildPaintImageXObject({resources:h,image:r,operatorList:d,cacheKey:M,localImageCache:A}).then(e,t)})).catch((function(e){if(!(e instanceof n.AbortException)){if(v.options.ignoreErrors)return v.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorXObject}),void(0,n.warn)('getOperatorList - ignoring XObject: "'.concat(e,'".'));throw e}})));case n.OPS.setFont:var D=O[1];return void o(v.handleSetFont(h,O,null,d,l,P.state).then((function(e){d.addDependency(e),d.addOp(n.OPS.setFont,[e,D])})));case n.OPS.beginText:S=!0;break;case n.OPS.endText:S=!1;break;case n.OPS.endInlineImage:var B=O[0].cacheKey;if(B){var U=A.getByName(B);if(U){d.addOp(U.fn,U.args),O=null;continue}}return void o(v.buildPaintImageXObject({resources:h,image:O[0],isInline:!0,operatorList:d,cacheKey:B,localImageCache:A}));case n.OPS.showText:if(!P.state.font){v.ensureStateFont(P.state);continue}O[0]=v.handleText(O[0],P.state);break;case n.OPS.showSpacedText:if(!P.state.font){v.ensureStateFont(P.state);continue}var j=O[0],H=[],G=j.length,z=P.state;for(i=0;i<G;++i){var W=j[i];(0,n.isString)(W)?Array.prototype.push.apply(H,v.handleText(W,z)):(0,n.isNum)(W)&&H.push(W)}O[0]=H,R=n.OPS.showText;break;case n.OPS.nextLineShowText:if(!P.state.font){v.ensureStateFont(P.state);continue}d.addOp(n.OPS.nextLine),O[0]=v.handleText(O[0],P.state),R=n.OPS.showText;break;case n.OPS.nextLineSetSpacingShowText:if(!P.state.font){v.ensureStateFont(P.state);continue}d.addOp(n.OPS.nextLine),d.addOp(n.OPS.setWordSpacing,[O.shift()]),d.addOp(n.OPS.setCharSpacing,[O.shift()]),O[0]=v.handleText(O[0],P.state),R=n.OPS.showText;break;case n.OPS.setTextRenderingMode:P.state.textRenderingMode=O[0];break;case n.OPS.setFillColorSpace:return void o(v.parseColorSpace({cs:O[0],resources:h}).then((function(e){e&&(P.state.fillColorSpace=e)})));case n.OPS.setStrokeColorSpace:return void o(v.parseColorSpace({cs:O[0],resources:h}).then((function(e){e&&(P.state.strokeColorSpace=e)})));case n.OPS.setFillColor:E=P.state.fillColorSpace,O=E.getRgb(O,0),R=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeColor:E=P.state.strokeColorSpace,O=E.getRgb(O,0),R=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillGray:P.state.fillColorSpace=x.ColorSpace.singletons.gray,O=x.ColorSpace.singletons.gray.getRgb(O,0),R=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeGray:P.state.strokeColorSpace=x.ColorSpace.singletons.gray,O=x.ColorSpace.singletons.gray.getRgb(O,0),R=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillCMYKColor:P.state.fillColorSpace=x.ColorSpace.singletons.cmyk,O=x.ColorSpace.singletons.cmyk.getRgb(O,0),R=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeCMYKColor:P.state.strokeColorSpace=x.ColorSpace.singletons.cmyk,O=x.ColorSpace.singletons.cmyk.getRgb(O,0),R=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillRGBColor:P.state.fillColorSpace=x.ColorSpace.singletons.rgb,O=x.ColorSpace.singletons.rgb.getRgb(O,0);break;case n.OPS.setStrokeRGBColor:P.state.strokeColorSpace=x.ColorSpace.singletons.rgb,O=x.ColorSpace.singletons.rgb.getRgb(O,0);break;case n.OPS.setFillColorN:if("Pattern"===(E=P.state.fillColorSpace).name)return void o(v.handleColorN(d,n.OPS.setFillColorN,O,E,_,h,l));O=E.getRgb(O,0),R=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeColorN:if("Pattern"===(E=P.state.strokeColorSpace).name)return void o(v.handleColorN(d,n.OPS.setStrokeColorN,O,E,_,h,l));O=E.getRgb(O,0),R=n.OPS.setStrokeRGBColor;break;case n.OPS.shadingFill:var V=h.get("Shading");if(!V)throw new n.FormatError("No shading resource found");var X=V.get(O[0].name);if(!X)throw new n.FormatError("No shading object found");var Y=k.Pattern.parseShading(X,null,y,h,v.handler,v.pdfFunctionFactory).getIR();O=[Y],R=n.OPS.shadingFill;break;case n.OPS.setGState:var K=O[0],J=h.get("ExtGState");if(!(0,c.isDict)(J)||!J.has(K.name))break;var Z=J.get(K.name);return void o(v.setGState(h,Z,d,l,P));case n.OPS.moveTo:case n.OPS.lineTo:case n.OPS.curveTo:case n.OPS.curveTo2:case n.OPS.curveTo3:case n.OPS.closePath:case n.OPS.rectangle:v.buildPath(d,R,O,S);continue;case n.OPS.markPoint:case n.OPS.markPointProps:case n.OPS.beginMarkedContent:case n.OPS.beginMarkedContentProps:case n.OPS.endMarkedContent:case n.OPS.beginCompat:case n.OPS.endCompat:continue;default:if(null!==O){for(i=0,m=O.length;i<m&&!(O[i]instanceof c.Dict);i++);if(i<m){(0,n.warn)("getOperatorList - ignoring operator: "+R);continue}}}d.addOp(R,O)}f?o(w):(F(),t())})).catch((function(e){if(!(e instanceof n.AbortException)){if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorOperatorList}),(0,n.warn)('getOperatorList - ignoring errors during "'.concat(l.name,'" ')+'task: "'.concat(e,'".')),void F();throw e}}))},getTextContent:function(e){var t=this,o=e.stream,l=e.task,h=e.resources,d=e.stateManager,m=void 0===d?null:d,v=e.normalizeWhitespace,y=void 0!==v&&v,k=e.combineTextItems,S=void 0!==k&&k,x=e.sink,C=e.seenStyles,_=void 0===C?Object.create(null):C;h=h||c.Dict.empty,m=m||new D(new B);var P,T=/\s/g,I={items:[],styles:Object.create(null)},F={initialized:!1,str:[],width:0,height:0,vertical:!1,lastAdvanceWidth:0,lastAdvanceHeight:0,textAdvanceScale:0,spaceWidth:0,fakeSpaceMin:1/0,fakeMultiSpaceMin:1/0,fakeMultiSpaceMax:-0,textRunBreakAllowed:!1,transform:null,fontName:null},L=this,O=this.xref,R=null,M=new E.LocalImageCache,N=new j(o,O,m);function U(){if(F.initialized)return F;var e=P.font;e.loadedName in _||(_[e.loadedName]=!0,I.styles[e.loadedName]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical}),F.fontName=e.loadedName;var t=[P.fontSize*P.textHScale,0,0,P.fontSize,0,P.textRise];if(e.isType3Font&&P.fontSize<=1&&!(0,n.isArrayEqual)(P.fontMatrix,n.FONT_IDENTITY_MATRIX)){var r=e.bbox[3]-e.bbox[1];r>0&&(t[3]*=r*P.fontMatrix[3])}var o=n.Util.transform(P.ctm,n.Util.transform(P.textMatrix,t));F.transform=o,e.vertical?(F.width=Math.sqrt(o[0]*o[0]+o[1]*o[1]),F.height=0,F.vertical=!0):(F.width=0,F.height=Math.sqrt(o[2]*o[2]+o[3]*o[3]),F.vertical=!1);var a=P.textLineMatrix[0],b=P.textLineMatrix[1],c=Math.sqrt(a*a+b*b);a=P.ctm[0],b=P.ctm[1];var l=Math.sqrt(a*a+b*b);F.textAdvanceScale=l*c,F.lastAdvanceWidth=0,F.lastAdvanceHeight=0;var h=e.spaceWidth/1e3*P.fontSize;return h?(F.spaceWidth=h,F.fakeSpaceMin=.3*h,F.fakeMultiSpaceMin=1.5*h,F.fakeMultiSpaceMax=4*h,F.textRunBreakAllowed=!e.isMonospace):(F.spaceWidth=0,F.fakeSpaceMin=1/0,F.fakeMultiSpaceMin=1/0,F.fakeMultiSpaceMax=0,F.textRunBreakAllowed=!1),F.initialized=!0,F}function H(e){for(var code,i=0,t=e.length;i<t&&(code=e.charCodeAt(i))>=32&&code<=127;)i++;return i<t?e.replace(T," "):e}function G(e,t){return L.loadFont(e,t,h).then((function(e){P.font=e.font,P.fontMatrix=e.font.fontMatrix||n.FONT_IDENTITY_MATRIX}))}function z(e){for(var t=P.font,r=U(),n=0,o=0,c=t.charsToGlyphs(e),i=0;i<c.length;i++){var glyph=c[i],l=null;l=t.vertical&&glyph.vmetric?glyph.vmetric[0]:glyph.width;var h=glyph.unicode,d=(0,f.getNormalizedUnicodes)();void 0!==d[h]&&(h=d[h]),h=(0,f.reverseIfRtl)(h);var m=P.charSpacing;if(glyph.isSpace){var v=P.wordSpacing;m+=v,v>0&&W(v,r.str)}var y=0,k=0;t.vertical?o+=k=l*P.fontMatrix[0]*P.fontSize+m:n+=y=(l*P.fontMatrix[0]*P.fontSize+m)*P.textHScale,P.translateTextMatrix(y,k),r.str.push(h)}return t.vertical?(r.lastAdvanceHeight=o,r.height+=Math.abs(o)):(r.lastAdvanceWidth=n,r.width+=n),r}function W(e,t){if(!(e<F.fakeSpaceMin))if(e<F.fakeMultiSpaceMin)t.push(" ");else for(var r=Math.round(e/F.spaceWidth);r-- >0;)t.push(" ")}function V(){var e,t,r;F.initialized&&(F.vertical?F.height*=F.textAdvanceScale:F.width*=F.textAdvanceScale,I.items.push((t=(e=F).str.join(""),r=(0,A.bidi)(t,-1,e.vertical),{str:y?H(r.str):r.str,dir:r.dir,width:e.width,height:e.height,transform:e.transform,fontName:e.fontName})),F.initialized=!1,F.str.length=0)}function X(){var e=I.items.length;e>0&&(x.enqueue(I,e),I.items=[],I.styles=Object.create(null))}var Y=new r;return new Promise((function e(t,r){var o=function(n){X(),Promise.all([n,x.ready]).then((function(){try{e(t,r)}catch(e){r(e)}}),r)};l.ensureNotTerminated(),Y.reset();for(var d,f={},v=[];!(d=Y.check())&&(v.length=0,f.args=v,N.read(f));){P=m.state;var k,A=f.fn;switch(v=f.args,0|A){case n.OPS.setFont:var C=v[0].name,T=v[1];if(P.font&&C===P.fontName&&T===P.fontSize)break;return V(),P.fontName=C,P.fontSize=T,void o(G(C,null));case n.OPS.setTextRise:V(),P.textRise=v[0];break;case n.OPS.setHScale:V(),P.textHScale=v[0]/100;break;case n.OPS.setLeading:V(),P.leading=v[0];break;case n.OPS.moveText:var E=!!P.font&&0===(P.font.vertical?v[0]:v[1]);if(k=v[0]-v[1],S&&E&&F.initialized&&k>0&&k<=F.fakeMultiSpaceMax){P.translateTextLineMatrix(v[0],v[1]),F.width+=v[0]-F.lastAdvanceWidth,F.height+=v[1]-F.lastAdvanceHeight,W(v[0]-F.lastAdvanceWidth-(v[1]-F.lastAdvanceHeight),F.str);break}V(),P.translateTextLineMatrix(v[0],v[1]),P.textMatrix=P.textLineMatrix.slice();break;case n.OPS.setLeadingMoveText:V(),P.leading=-v[1],P.translateTextLineMatrix(v[0],v[1]),P.textMatrix=P.textLineMatrix.slice();break;case n.OPS.nextLine:V(),P.carriageReturn();break;case n.OPS.setTextMatrix:if(k=P.calcTextLineMatrixAdvance(v[0],v[1],v[2],v[3],v[4],v[5]),S&&null!==k&&F.initialized&&k.value>0&&k.value<=F.fakeMultiSpaceMax){P.translateTextLineMatrix(k.width,k.height),F.width+=k.width-F.lastAdvanceWidth,F.height+=k.height-F.lastAdvanceHeight,W(k.width-F.lastAdvanceWidth-(k.height-F.lastAdvanceHeight),F.str);break}V(),P.setTextMatrix(v[0],v[1],v[2],v[3],v[4],v[5]),P.setTextLineMatrix(v[0],v[1],v[2],v[3],v[4],v[5]);break;case n.OPS.setCharSpacing:P.charSpacing=v[0];break;case n.OPS.setWordSpacing:P.wordSpacing=v[0];break;case n.OPS.beginText:V(),P.textMatrix=n.IDENTITY_MATRIX.slice(),P.textLineMatrix=n.IDENTITY_MATRIX.slice();break;case n.OPS.showSpacedText:if(!m.state.font){L.ensureStateFont(m.state);continue}for(var B,j=v[0],H=0,K=j.length;H<K;H++)if("string"==typeof j[H])z(j[H]);else if((0,n.isNum)(j[H])){U(),k=j[H]*P.fontSize/1e3;var J=!1;P.font.vertical?(B=k,P.translateTextMatrix(0,B),(J=F.textRunBreakAllowed&&k>F.fakeMultiSpaceMax)||(F.height+=B)):(B=(k=-k)*P.textHScale,P.translateTextMatrix(B,0),(J=F.textRunBreakAllowed&&k>F.fakeMultiSpaceMax)||(F.width+=B)),J?V():k>0&&W(k,F.str)}break;case n.OPS.showText:if(!m.state.font){L.ensureStateFont(m.state);continue}z(v[0]);break;case n.OPS.nextLineShowText:if(!m.state.font){L.ensureStateFont(m.state);continue}V(),P.carriageReturn(),z(v[0]);break;case n.OPS.nextLineSetSpacingShowText:if(!m.state.font){L.ensureStateFont(m.state);continue}V(),P.wordSpacing=v[0],P.charSpacing=v[1],P.carriageReturn(),z(v[2]);break;case n.OPS.paintXObject:V(),R||(R=h.get("XObject")||c.Dict.empty);var Z=v[0].name;if(Z&&M.getByName(Z))break;return void o(new Promise((function(e,t){if(!Z)throw new n.FormatError("XObject must be referred to by name.");var r=R.getRaw(Z);if(r instanceof c.Ref){if(M.getByRef(r))return void e();r=O.fetch(r)}if(r){if(!(0,c.isStream)(r))throw new n.FormatError("XObject should be a stream");var o=r.dict.get("Subtype");if(!(0,c.isName)(o))throw new n.FormatError("XObject should have a Name subtype");if("Form"!==o.name)return M.set(Z,r.dict.objId,!0),void e();var d=m.state.clone(),f=new D(d),v=r.dict.getArray("Matrix");Array.isArray(v)&&6===v.length&&f.transform(v),X();var k={enqueueInvoked:!1,enqueue:function(e,t){this.enqueueInvoked=!0,x.enqueue(e,t)},get desiredSize(){return x.desiredSize},get ready(){return x.ready}};L.getTextContent({stream:r,task:l,resources:r.dict.get("Resources")||h,stateManager:f,normalizeWhitespace:y,combineTextItems:S,sink:k,seenStyles:_}).then((function(){k.enqueueInvoked||M.set(Z,r.dict.objId,!0),e()}),t)}else e()})).catch((function(e){if(!(e instanceof n.AbortException)){if(!L.options.ignoreErrors)throw e;(0,n.warn)('getTextContent - ignoring XObject: "'.concat(e,'".'))}})));case n.OPS.setGState:V();var Q=v[0],$=h.get("ExtGState");if(!(0,c.isDict)($)||!(0,c.isName)(Q))break;var ee=$.get(Q.name);if(!(0,c.isDict)(ee))break;var te=ee.get("Font");if(te)return P.fontName=null,P.fontSize=te[1],void o(G(null,te[0]))}if(I.items.length>=x.desiredSize){d=!0;break}}d?o(w):(V(),X(),t())})).catch((function(e){if(!(e instanceof n.AbortException)){if(t.options.ignoreErrors)return(0,n.warn)('getTextContent - ignoring errors during "'.concat(l.name,'" ')+'task: "'.concat(e,'".')),V(),void X();throw e}}))},extractDataStructures:function(e,t,r){var o,d=this,f=this.xref,m=e.get("ToUnicode")||t.get("ToUnicode"),v=m?this.readToUnicode(m):Promise.resolve(void 0);if(r.composite){var y=e.get("CIDSystemInfo");(0,c.isDict)(y)&&(r.cidSystemInfo={registry:(0,n.stringToPDFString)(y.get("Registry")),ordering:(0,n.stringToPDFString)(y.get("Ordering")),supplement:y.get("Supplement")});var k=e.get("CIDToGIDMap");(0,c.isStream)(k)&&(o=k.getBytes())}var w,S=[],A=null;if(e.has("Encoding")){if(w=e.get("Encoding"),(0,c.isDict)(w)){if(A=w.get("BaseEncoding"),A=(0,c.isName)(A)?A.name:null,w.has("Differences"))for(var x=w.get("Differences"),C=0,_=0,P=x.length;_<P;_++){var data=f.fetchIfRef(x[_]);if((0,n.isNum)(data))C=data;else{if(!(0,c.isName)(data))throw new n.FormatError("Invalid entry in 'Differences' array: ".concat(data));S[C++]=data.name}}}else{if(!(0,c.isName)(w))throw new n.FormatError("Encoding is not a Name nor a Dict");A=w.name}"MacRomanEncoding"!==A&&"MacExpertEncoding"!==A&&"WinAnsiEncoding"!==A&&(A=null)}if(A)r.defaultEncoding=(0,h.getEncoding)(A).slice();else{var T=!!(r.flags&l.FontFlags.Symbolic),I=!!(r.flags&l.FontFlags.Nonsymbolic);w=h.StandardEncoding,"TrueType"!==r.type||I||(w=h.WinAnsiEncoding),T&&(w=h.MacRomanEncoding,r.file||(/Symbol/i.test(r.name)?w=h.SymbolSetEncoding:/Dingbats|Wingdings/i.test(r.name)&&(w=h.ZapfDingbatsEncoding))),r.defaultEncoding=w}return r.differences=S,r.baseEncodingName=A,r.hasEncoding=!!A||S.length>0,r.dict=e,v.then((function(e){return r.toUnicode=e,d.buildToUnicode(r)})).then((function(e){return r.toUnicode=e,o&&(r.cidToGidMap=d.readCidToGidMap(o,e)),r}))},_buildSimpleFontToUnicode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,n.assert)(!e.composite,"Must be a simple font.");var r=[],o=e.defaultEncoding.slice(),c=e.baseEncodingName,d=e.differences;for(var m in d){var v=d[m];".notdef"!==v&&(o[m]=v)}var y=(0,_.getGlyphsUnicode)();for(var k in o){var w=o[k];if(""!==w)if(void 0!==y[w])r[k]=String.fromCharCode(y[w]);else{var code=0;switch(w[0]){case"G":3===w.length&&(code=parseInt(w.substring(1),16));break;case"g":5===w.length&&(code=parseInt(w.substring(1),16));break;case"C":case"c":if(w.length>=3&&w.length<=4){var S=w.substring(1);if(t){code=parseInt(S,16);break}if(code=+S,Number.isNaN(code)&&Number.isInteger(parseInt(S,16)))return this._buildSimpleFontToUnicode(e,!0)}break;default:var A=(0,f.getUnicodeForGlyph)(w,y);-1!==A&&(code=A)}if(code>0&&code<=1114111&&Number.isInteger(code)){if(c&&code===+k){var x=(0,h.getEncoding)(c);if(x&&(w=x[k])){r[k]=String.fromCharCode(y[w]);continue}}r[k]=String.fromCodePoint(code)}}}return new l.ToUnicodeMap(r)},buildToUnicode:function(e){if(e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._buildSimpleFontToUnicode(e)),Promise.resolve(e.toUnicode);if(!e.composite)return Promise.resolve(this._buildSimpleFontToUnicode(e));if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof o.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){var t=e.cidSystemInfo.registry,r=e.cidSystemInfo.ordering,h=c.Name.get(t+"-"+r+"-UCS2");return o.CMapFactory.create({encoding:h,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(t){var r=e.cMap,o=[];return r.forEach((function(e,r){if(r>65535)throw new n.FormatError("Max size of CID is 65,535");var c=t.lookup(r);c&&(o[e]=String.fromCharCode((c.charCodeAt(0)<<8)+c.charCodeAt(1)))})),new l.ToUnicodeMap(o)}))}return Promise.resolve(new l.IdentityToUnicodeMap(e.firstChar,e.lastChar))},readToUnicode:function(e){var t=this,r=e;return(0,c.isName)(r)?o.CMapFactory.create({encoding:r,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(e){return e instanceof o.IdentityCMap?new l.IdentityToUnicodeMap(0,65535):new l.ToUnicodeMap(e.getMap())})):(0,c.isStream)(r)?o.CMapFactory.create({encoding:r,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(e){if(e instanceof o.IdentityCMap)return new l.IdentityToUnicodeMap(0,65535);var map=new Array(e.length);return e.forEach((function(e,t){for(var r=[],n=0;n<t.length;n+=2){var o=t.charCodeAt(n)<<8|t.charCodeAt(n+1);if(55296==(63488&o)){n+=2;var c=t.charCodeAt(n)<<8|t.charCodeAt(n+1);r.push(((1023&o)<<10)+(1023&c)+65536)}else r.push(o)}map[e]=String.fromCodePoint.apply(String,r)})),new l.ToUnicodeMap(map)}),(function(e){if(e instanceof n.AbortException)return null;if(t.options.ignoreErrors)return t.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontToUnicode}),(0,n.warn)('readToUnicode - ignoring ToUnicode data: "'.concat(e,'".')),null;throw e})):Promise.resolve(null)},readCidToGidMap:function(e,t){for(var r=[],n=0,o=e.length;n<o;n++){var c=e[n++]<<8|e[n],code=n>>1;(0!==c||t.has(code))&&(r[code]=c)}return r},extractWidths:function(e,t,r){var n,i,o,h,d,f,code,m,v=this.xref,y=[],k=0,w=[];if(r.composite){if(k=e.has("DW")?e.get("DW"):1e3,m=e.get("W"))for(i=0,o=m.length;i<o;i++)if(f=v.fetchIfRef(m[i++]),code=v.fetchIfRef(m[i]),Array.isArray(code))for(h=0,d=code.length;h<d;h++)y[f++]=v.fetchIfRef(code[h]);else{var S=v.fetchIfRef(m[++i]);for(h=f;h<=code;h++)y[h]=S}if(r.vertical){var A=e.getArray("DW2")||[880,-1e3];if(n=[A[1],.5*k,A[0]],A=e.get("W2"))for(i=0,o=A.length;i<o;i++)if(f=v.fetchIfRef(A[i++]),code=v.fetchIfRef(A[i]),Array.isArray(code))for(h=0,d=code.length;h<d;h++)w[f++]=[v.fetchIfRef(code[h++]),v.fetchIfRef(code[h++]),v.fetchIfRef(code[h])];else{var x=[v.fetchIfRef(A[++i]),v.fetchIfRef(A[++i]),v.fetchIfRef(A[++i])];for(h=f;h<=code;h++)w[h]=x}}}else{var C=r.firstChar;if(m=e.get("Widths")){for(h=C,i=0,o=m.length;i<o;i++)y[h++]=v.fetchIfRef(m[i]);k=parseFloat(t.get("MissingWidth"))||0}else{var _=e.get("BaseFont");if((0,c.isName)(_)){var P=this.getBaseFontMetrics(_.name);y=this.buildCharCodeToWidth(P.widths,r),k=P.defaultWidth}}}var T=!0,I=k;for(var glyph in y){var E=y[glyph];if(E)if(I){if(I!==E){T=!1;break}}else I=E}T&&(r.flags|=l.FontFlags.FixedPitch),r.defaultWidth=k,r.widths=y,r.defaultVMetrics=n,r.vmetrics=w},isSerifFont:function(e){var t=e.split("-")[0];return t in(0,v.getSerifFonts)()||-1!==t.search(/serif/gi)},getBaseFontMetrics:function(e){var t=0,r=[],o=!1,c=(0,v.getStdFontMap)()[e]||e,l=(0,P.getMetrics)();c in l||(c=this.isSerifFont(e)?"Times-Roman":"Helvetica");var h=l[c];return(0,n.isNum)(h)?(t=h,o=!0):r=h(),{defaultWidth:t,monospace:o,widths:r}},buildCharCodeToWidth:function(e,t){for(var r=Object.create(null),n=t.differences,o=t.defaultEncoding,c=0;c<256;c++)c in n&&e[n[c]]?r[c]=e[n[c]]:c in o&&e[o[c]]&&(r[c]=e[o[c]]);return r},preEvaluateFont:function(e){var t=e,r=e.get("Subtype");if(!(0,c.isName)(r))throw new n.FormatError("invalid font Subtype");var o,l=!1;if("Type0"===r.name){var h=e.get("DescendantFonts");if(!h)throw new n.FormatError("Descendant fonts are not specified");if(r=(e=Array.isArray(h)?this.xref.fetchIfRef(h[0]):h).get("Subtype"),!(0,c.isName)(r))throw new n.FormatError("invalid font Subtype");l=!0}var d=e.get("FontDescriptor");if(d){var f=new F.MurmurHash3_64,m=t.getRaw("Encoding");if((0,c.isName)(m))f.update(m.name);else if((0,c.isRef)(m))f.update(m.toString());else if((0,c.isDict)(m))for(var v=m.getKeys(),i=0,y=v.length;i<y;i++){var k=m.getRaw(v[i]);if((0,c.isName)(k))f.update(k.name);else if((0,c.isRef)(k))f.update(k.toString());else if(Array.isArray(k)){for(var w=k.length,S=new Array(w),A=0;A<w;A++){var x=k[A];(0,c.isName)(x)?S[A]=x.name:((0,n.isNum)(x)||(0,c.isRef)(x))&&(S[A]=x.toString())}f.update(S.join())}}var C=e.get("FirstChar")||0,_=e.get("LastChar")||(l?65535:255);f.update("".concat(C,"-").concat(_));var P=e.get("ToUnicode")||t.get("ToUnicode");if((0,c.isStream)(P)){var T=P.str||P;o=T.buffer?new Uint8Array(T.buffer.buffer,0,T.bufferLength):new Uint8Array(T.bytes.buffer,T.start,T.end-T.start),f.update(o)}else(0,c.isName)(P)&&f.update(P.name);var I=e.get("Widths")||t.get("Widths");I&&(o=new Uint8Array(new Uint32Array(I).buffer),f.update(o))}return{descriptor:d,dict:e,baseDict:t,composite:l,type:r.name,hash:f?f.hexdigest():""}},translateFont:function(e){var t,r=this,h=e.baseDict,d=e.dict,f=e.composite,m=e.descriptor,y=e.type,k=f?65535:255,w=d.get("FirstChar")||0,S=d.get("LastChar")||k;if(!m){if("Type3"!==y){var A=d.get("BaseFont");if(!(0,c.isName)(A))throw new n.FormatError("Base font is not specified");A=A.name.replace(/[,_]/g,"-");var x=this.getBaseFontMetrics(A),C=A.split("-")[0],_=(this.isSerifFont(C)?l.FontFlags.Serif:0)|(x.monospace?l.FontFlags.FixedPitch:0)|((0,v.getSymbolsFonts)()[C]?l.FontFlags.Symbolic:l.FontFlags.Nonsymbolic);t={type:y,name:A,widths:x.widths,defaultWidth:x.defaultWidth,flags:_,firstChar:w,lastChar:S};var P=d.get("Widths");return this.extractDataStructures(d,d,t).then((function(e){if(P){for(var t=[],n=w,i=0,o=P.length;i<o;i++)t[n++]=r.xref.fetchIfRef(P[i]);e.widths=t}else e.widths=r.buildCharCodeToWidth(x.widths,e);return new l.Font(A,null,e)}))}(m=new c.Dict(null)).set("FontName",c.Name.get(y)),m.set("FontBBox",d.getArray("FontBBox")||[0,0,0,0])}var T=m.get("FontName"),I=d.get("BaseFont");if((0,n.isString)(T)&&(T=c.Name.get(T)),(0,n.isString)(I)&&(I=c.Name.get(I)),"Type3"!==y){var E=T&&T.name,F=I&&I.name;E!==F&&((0,n.info)("The FontDescriptor's FontName is \"".concat(E,'" but ')+"should be the same as the Font's BaseFont \"".concat(F,'".')),E&&F&&F.startsWith(E)&&(T=I))}if(T=T||I,!(0,c.isName)(T))throw new n.FormatError("invalid font name");var L,O=m.get("FontFile","FontFile2","FontFile3");if(O&&O.dict){var R=O.dict.get("Subtype");R&&(R=R.name);var M=O.dict.get("Length1"),N=O.dict.get("Length2"),D=O.dict.get("Length3")}if(t={type:y,name:T.name,subtype:R,file:O,length1:M,length2:N,length3:D,loadedName:h.loadedName,composite:f,fixedPitch:!1,fontMatrix:d.getArray("FontMatrix")||n.FONT_IDENTITY_MATRIX,firstChar:w||0,lastChar:S||k,bbox:m.getArray("FontBBox"),ascent:m.get("Ascent"),descent:m.get("Descent"),xHeight:m.get("XHeight"),capHeight:m.get("CapHeight"),flags:m.get("Flags"),italicAngle:m.get("ItalicAngle"),isType3Font:!1},f){var B=h.get("Encoding");(0,c.isName)(B)&&(t.cidEncoding=B.name),L=o.CMapFactory.create({encoding:B,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then((function(e){t.cMap=e,t.vertical=t.cMap.vertical}))}else L=Promise.resolve(void 0);return L.then((function(){return r.extractDataStructures(d,h,t)})).then((function(e){return r.extractWidths(d,m,e),"Type3"===y&&(e.isType3Font=!0),new l.Font(T.name,O,e)}))}},t.buildFontPaths=function(e,t,r){function n(t){e.renderer.hasBuiltPath(t)||r.send("commonobj",["".concat(e.loadedName,"_path_").concat(t),"FontPath",e.renderer.getPathJs(t)])}var o,c=m(t);try{for(c.s();!(o=c.n()).done;){var glyph=o.value;n(glyph.fontChar);var l=glyph.accent;l&&l.fontChar&&n(l.fontChar)}}catch(e){c.e(e)}finally{c.f()}},t.getFallbackFontDict=function(){if(this._fallbackFontDict)return this._fallbackFontDict;var e=new c.Dict;return e.set("BaseFont",c.Name.get("PDFJS-FallbackFont")),e.set("Type",c.Name.get("FallbackType")),e.set("Subtype",c.Name.get("FallbackType")),e.set("Encoding",c.Name.get("WinAnsiEncoding")),this._fallbackFontDict=e},t}();t.PartialEvaluator=M;var N=function(){return y((function e(t){var r=t.loadedName,n=t.font,o=t.dict,c=t.extraProperties,l=void 0!==c&&c;w(this,e),this.loadedName=r,this.font=n,this.dict=o,this._extraProperties=l,this.type3Loaded=null,this.sent=!1}),[{key:"send",value:function(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._extraProperties)]))}},{key:"fallback",value:function(e){if(this.font.data){this.font.disableFontFace=!0;var t=this.font.glyphCacheValues;M.buildFontPaths(this.font,t,e)}}},{key:"loadType3Data",value:function(e,t,r,o){if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");if(this.type3Loaded)return this.type3Loaded;var c=Object.create(e.options);c.ignoreErrors=!1;var l=e.clone(c);l.parsingType3Font=!0;for(var h=this.font,d=Promise.resolve(),f=this.dict.get("CharProcs"),m=this.dict.get("Resources")||t,v=f.getKeys(),y=Object.create(null),k=function(){var e=v[i];d=d.then((function(){var t=f.get(e),c=new L.OperatorList;return l.getOperatorList({stream:t,task:o,resources:m,operatorList:c}).then((function(){y[e]=c.getIR(),r.addDependencies(c.dependencies)})).catch((function(t){(0,n.warn)('Type3 font resource "'.concat(e,'" is not available.'));var r=new L.OperatorList;y[e]=r.getIR()}))}))},i=0,w=v.length;i<w;++i)k();return this.type3Loaded=d.then((function(){h.charProcOperatorList=y})),this.type3Loaded}}])}(),D=function(){function e(e){this.state=e,this.stateStack=[]}return e.prototype={save:function(){var e=this.state;this.stateStack.push(this.state),this.state=e.clone()},restore:function(){var e=this.stateStack.pop();e&&(this.state=e)},transform:function(e){this.state.ctm=n.Util.transform(this.state.ctm,e)}},e}(),B=function(){function e(){this.ctm=new Float32Array(n.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.textMatrix=n.IDENTITY_MATRIX.slice(),this.textLineMatrix=n.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}return e.prototype={setTextMatrix:function(a,b,e,t,r,n){var o=this.textMatrix;o[0]=a,o[1]=b,o[2]=e,o[3]=t,o[4]=r,o[5]=n},setTextLineMatrix:function(a,b,e,t,r,n){var o=this.textLineMatrix;o[0]=a,o[1]=b,o[2]=e,o[3]=t,o[4]=r,o[5]=n},translateTextMatrix:function(e,t){var r=this.textMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]},translateTextLineMatrix:function(e,t){var r=this.textLineMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5]},calcTextLineMatrixAdvance:function(a,b,e,t,r,n){var o=this.font;if(!o)return null;var c=this.textLineMatrix;if(a!==c[0]||b!==c[1]||e!==c[2]||t!==c[3])return null;var l=r-c[4],h=n-c[5];if(o.vertical&&0!==l||!o.vertical&&0!==h)return null;var d,f,m=a*t-b*e;return o.vertical?(d=-h*e/m,f=h*a/m):(d=l*t/m,f=-l*b/m),{width:d,height:f,value:o.vertical?f:d}},calcRenderMatrix:function(e){var t=[this.fontSize*this.textHScale,0,0,this.fontSize,0,this.textRise];return n.Util.transform(e,n.Util.transform(this.textMatrix,t))},carriageReturn:function(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()},clone:function(){var e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}},e}(),U=function(){function e(){this.ctm=new Float32Array(n.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=n.TextRenderingMode.FILL,this.fillColorSpace=x.ColorSpace.singletons.gray,this.strokeColorSpace=x.ColorSpace.singletons.gray}return e.prototype={clone:function(){return Object.create(this)}},e}(),j=function(){var e=(0,d.getLookupTableFactory)((function(e){e.w={id:n.OPS.setLineWidth,numArgs:1,variableArgs:!1},e.J={id:n.OPS.setLineCap,numArgs:1,variableArgs:!1},e.j={id:n.OPS.setLineJoin,numArgs:1,variableArgs:!1},e.M={id:n.OPS.setMiterLimit,numArgs:1,variableArgs:!1},e.d={id:n.OPS.setDash,numArgs:2,variableArgs:!1},e.ri={id:n.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},e.i={id:n.OPS.setFlatness,numArgs:1,variableArgs:!1},e.gs={id:n.OPS.setGState,numArgs:1,variableArgs:!1},e.q={id:n.OPS.save,numArgs:0,variableArgs:!1},e.Q={id:n.OPS.restore,numArgs:0,variableArgs:!1},e.cm={id:n.OPS.transform,numArgs:6,variableArgs:!1},e.m={id:n.OPS.moveTo,numArgs:2,variableArgs:!1},e.l={id:n.OPS.lineTo,numArgs:2,variableArgs:!1},e.c={id:n.OPS.curveTo,numArgs:6,variableArgs:!1},e.v={id:n.OPS.curveTo2,numArgs:4,variableArgs:!1},e.y={id:n.OPS.curveTo3,numArgs:4,variableArgs:!1},e.h={id:n.OPS.closePath,numArgs:0,variableArgs:!1},e.re={id:n.OPS.rectangle,numArgs:4,variableArgs:!1},e.S={id:n.OPS.stroke,numArgs:0,variableArgs:!1},e.s={id:n.OPS.closeStroke,numArgs:0,variableArgs:!1},e.f={id:n.OPS.fill,numArgs:0,variableArgs:!1},e.F={id:n.OPS.fill,numArgs:0,variableArgs:!1},e["f*"]={id:n.OPS.eoFill,numArgs:0,variableArgs:!1},e.B={id:n.OPS.fillStroke,numArgs:0,variableArgs:!1},e["B*"]={id:n.OPS.eoFillStroke,numArgs:0,variableArgs:!1},e.b={id:n.OPS.closeFillStroke,numArgs:0,variableArgs:!1},e["b*"]={id:n.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},e.n={id:n.OPS.endPath,numArgs:0,variableArgs:!1},e.W={id:n.OPS.clip,numArgs:0,variableArgs:!1},e["W*"]={id:n.OPS.eoClip,numArgs:0,variableArgs:!1},e.BT={id:n.OPS.beginText,numArgs:0,variableArgs:!1},e.ET={id:n.OPS.endText,numArgs:0,variableArgs:!1},e.Tc={id:n.OPS.setCharSpacing,numArgs:1,variableArgs:!1},e.Tw={id:n.OPS.setWordSpacing,numArgs:1,variableArgs:!1},e.Tz={id:n.OPS.setHScale,numArgs:1,variableArgs:!1},e.TL={id:n.OPS.setLeading,numArgs:1,variableArgs:!1},e.Tf={id:n.OPS.setFont,numArgs:2,variableArgs:!1},e.Tr={id:n.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},e.Ts={id:n.OPS.setTextRise,numArgs:1,variableArgs:!1},e.Td={id:n.OPS.moveText,numArgs:2,variableArgs:!1},e.TD={id:n.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},e.Tm={id:n.OPS.setTextMatrix,numArgs:6,variableArgs:!1},e["T*"]={id:n.OPS.nextLine,numArgs:0,variableArgs:!1},e.Tj={id:n.OPS.showText,numArgs:1,variableArgs:!1},e.TJ={id:n.OPS.showSpacedText,numArgs:1,variableArgs:!1},e["'"]={id:n.OPS.nextLineShowText,numArgs:1,variableArgs:!1},e['"']={id:n.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},e.d0={id:n.OPS.setCharWidth,numArgs:2,variableArgs:!1},e.d1={id:n.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},e.CS={id:n.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},e.cs={id:n.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},e.SC={id:n.OPS.setStrokeColor,numArgs:4,variableArgs:!0},e.SCN={id:n.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},e.sc={id:n.OPS.setFillColor,numArgs:4,variableArgs:!0},e.scn={id:n.OPS.setFillColorN,numArgs:33,variableArgs:!0},e.G={id:n.OPS.setStrokeGray,numArgs:1,variableArgs:!1},e.g={id:n.OPS.setFillGray,numArgs:1,variableArgs:!1},e.RG={id:n.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},e.rg={id:n.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},e.K={id:n.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},e.k={id:n.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},e.sh={id:n.OPS.shadingFill,numArgs:1,variableArgs:!1},e.BI={id:n.OPS.beginInlineImage,numArgs:0,variableArgs:!1},e.ID={id:n.OPS.beginImageData,numArgs:0,variableArgs:!1},e.EI={id:n.OPS.endInlineImage,numArgs:1,variableArgs:!1},e.Do={id:n.OPS.paintXObject,numArgs:1,variableArgs:!1},e.MP={id:n.OPS.markPoint,numArgs:1,variableArgs:!1},e.DP={id:n.OPS.markPointProps,numArgs:2,variableArgs:!1},e.BMC={id:n.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},e.BDC={id:n.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},e.EMC={id:n.OPS.endMarkedContent,numArgs:0,variableArgs:!1},e.BX={id:n.OPS.beginCompat,numArgs:0,variableArgs:!1},e.EX={id:n.OPS.endCompat,numArgs:0,variableArgs:!1},e.BM=null,e.BD=null,e.true=null,e.fa=null,e.fal=null,e.fals=null,e.false=null,e.nu=null,e.nul=null,e.null=null}));function t(t,r,n){this.opMap=e(),this.parser=new S.Parser({lexer:new S.Lexer(t,this.opMap),xref:r}),this.stateManager=n,this.nonProcessedArgs=[],this._numInvalidPathOPS=0}return t.prototype={get savedStatesDepth(){return this.stateManager.stateStack.length},read:function(e){for(var t=e.args;;){var r=this.parser.getObj();if(r instanceof c.Cmd){var o=r.cmd,l=this.opMap[o];if(!l){(0,n.warn)('Unknown command "'.concat(o,'".'));continue}var h=l.id,d=l.numArgs,f=null!==t?t.length:0;if(l.variableArgs)f>d&&(0,n.info)("Command ".concat(o,": expected [0, ").concat(d,"] args, ")+"but received ".concat(f," args."));else{if(f!==d){for(var m=this.nonProcessedArgs;f>d;)m.push(t.shift()),f--;for(;f<d&&0!==m.length;)null===t&&(t=[]),t.unshift(m.pop()),f++}if(f<d){var v="command ".concat(o,": expected ").concat(d," args, ")+"but received ".concat(f," args.");if(h>=n.OPS.moveTo&&h<=n.OPS.endPath&&++this._numInvalidPathOPS>20)throw new n.FormatError("Invalid ".concat(v));(0,n.warn)("Skipping ".concat(v)),null!==t&&(t.length=0);continue}}return this.preprocessCommand(h,t),e.fn=h,e.args=t,!0}if(r===c.EOF)return!1;if(null!==r&&(null===t&&(t=[]),t.push(r),t.length>33))throw new n.FormatError("Too many arguments")}},preprocessCommand:function(e,t){switch(0|e){case n.OPS.save:this.stateManager.save();break;case n.OPS.restore:this.stateManager.restore();break;case n.OPS.transform:this.stateManager.transform(t)}}},t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CMapFactory=t.IdentityCMap=t.CMap=void 0;var n=r(2),o=r(5),c=r(11),l=r(8),h=r(12),d=["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"],f=Math.pow(2,24)-1,m=function(){return y((function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];w(this,e),this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=t}),[{key:"addCodespaceRange",value:function(e,t,r){this.codespaceRanges[e-1].push(t,r),this.numCodespaceRanges++}},{key:"mapCidRange",value:function(e,t,r){if(t-e>f)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=r++}},{key:"mapBfRange",value:function(e,t,r){if(t-e>f)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var n=r.length-1;e<=t;)this._map[e++]=r,r=r.substring(0,n)+String.fromCharCode(r.charCodeAt(n)+1)}},{key:"mapBfRangeToArray",value:function(e,t,r){if(t-e>f)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");for(var n=r.length,i=0;e<=t&&i<n;)this._map[e]=r[i++],++e}},{key:"mapOne",value:function(e,t){this._map[e]=t}},{key:"lookup",value:function(code){return this._map[code]}},{key:"contains",value:function(code){return void 0!==this._map[code]}},{key:"forEach",value:function(e){var map=this._map,t=map.length;if(t<=65536)for(var i=0;i<t;i++)void 0!==map[i]&&e(i,map[i]);else for(var r in map)e(r,map[r])}},{key:"charCodeOf",value:function(e){var map=this._map;if(map.length<=65536)return map.indexOf(e);for(var t in map)if(map[t]===e)return 0|t;return-1}},{key:"getMap",value:function(){return this._map}},{key:"readCharCode",value:function(e,t,r){for(var n=0,o=this.codespaceRanges,c=0,l=o.length;c<l;c++){n=(n<<8|e.charCodeAt(t+c))>>>0;for(var h=o[c],d=0,f=h.length;d<f;){var m=h[d++],v=h[d++];if(n>=m&&n<=v)return r.charcode=n,void(r.length=c+1)}}r.charcode=0,r.length=1}},{key:"length",get:function(){return this._map.length}},{key:"isIdentityCMap",get:function(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var i=0;i<65536;i++)if(this._map[i]!==i)return!1;return!0}}])}();t.CMap=m;var v=function(e){function t(e,r){var n;return w(this,t),(n=S(this,t)).vertical=e,n.addCodespaceRange(r,0,65535),n}return _(t,e),y(t,[{key:"mapCidRange",value:function(e,t,r){(0,n.unreachable)("should not call mapCidRange")}},{key:"mapBfRange",value:function(e,t,r){(0,n.unreachable)("should not call mapBfRange")}},{key:"mapBfRangeToArray",value:function(e,t,r){(0,n.unreachable)("should not call mapBfRangeToArray")}},{key:"mapOne",value:function(e,t){(0,n.unreachable)("should not call mapCidOne")}},{key:"lookup",value:function(code){return Number.isInteger(code)&&code<=65535?code:void 0}},{key:"contains",value:function(code){return Number.isInteger(code)&&code<=65535}},{key:"forEach",value:function(e){for(var i=0;i<=65535;i++)e(i,i)}},{key:"charCodeOf",value:function(e){return Number.isInteger(e)&&e<=65535?e:-1}},{key:"getMap",value:function(){for(var map=new Array(65536),i=0;i<=65535;i++)map[i]=i;return map}},{key:"length",get:function(){return 65536}},{key:"isIdentityCMap",get:function(){(0,n.unreachable)("should not access .isIdentityCMap")}}])}(m);t.IdentityCMap=v;var k=function(){function e(a,e){for(var t=0,i=0;i<=e;i++)t=t<<8|a[i];return t>>>0}function t(a,e){return 1===e?String.fromCharCode(a[0],a[1]):3===e?String.fromCharCode(a[0],a[1],a[2],a[3]):String.fromCharCode.apply(null,a.subarray(0,e+1))}function r(a,b,e){for(var t=0,i=e;i>=0;i--)t+=a[i]+b[i],a[i]=255&t,t>>=8}function o(a,e){for(var t=1,i=e;i>=0&&t>0;i--)t+=a[i],a[i]=255&t,t>>=8}var c=16;function l(data){this.buffer=data,this.pos=0,this.end=data.length,this.tmpBuf=new Uint8Array(19)}function h(){}return l.prototype={readByte:function(){return this.pos>=this.end?-1:this.buffer[this.pos++]},readNumber:function(){var e,t=0;do{var b=this.readByte();if(b<0)throw new n.FormatError("unexpected EOF in bcmap");e=!(128&b),t=t<<7|127&b}while(!e);return t},readSigned:function(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1},readHex:function(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1},readHexNumber:function(e,t){var r,o=this.tmpBuf,c=0;do{var b=this.readByte();if(b<0)throw new n.FormatError("unexpected EOF in bcmap");r=!(128&b),o[c++]=127&b}while(!r);for(var i=t,l=0,h=0;i>=0;){for(;h<8&&o.length>0;)l=o[--c]<<h|l,h+=7;e[i]=255&l,i--,l>>=8,h-=8}},readHexSigned:function(e,t){this.readHexNumber(e,t);for(var r=1&e[t]?255:0,n=0,i=0;i<=t;i++)n=(1&n)<<8|e[i],e[i]=n>>1^r},readString:function(){for(var e=this.readNumber(),s="",i=0;i<e;i++)s+=String.fromCharCode(this.readNumber());return s}},h.prototype={process:function(data,n,h){return new Promise((function(d,f){var m=new l(data),header=m.readByte();n.vertical=!!(1&header);for(var code,b,v=null,y=new Uint8Array(c),k=new Uint8Array(c),w=new Uint8Array(c),S=new Uint8Array(c),A=new Uint8Array(c);(b=m.readByte())>=0;){var x=b>>5;if(7!==x){var C=!!(16&b),_=15&b;if(_+1>c)throw new Error("processBinaryCMap: Invalid dataSize.");var i,P=m.readNumber();switch(x){case 0:for(m.readHex(y,_),m.readHexNumber(k,_),r(k,y,_),n.addCodespaceRange(_+1,e(y,_),e(k,_)),i=1;i<P;i++)o(k,_),m.readHexNumber(y,_),r(y,k,_),m.readHexNumber(k,_),r(k,y,_),n.addCodespaceRange(_+1,e(y,_),e(k,_));break;case 1:for(m.readHex(y,_),m.readHexNumber(k,_),r(k,y,_),m.readNumber(),i=1;i<P;i++)o(k,_),m.readHexNumber(y,_),r(y,k,_),m.readHexNumber(k,_),r(k,y,_),m.readNumber();break;case 2:for(m.readHex(w,_),code=m.readNumber(),n.mapOne(e(w,_),code),i=1;i<P;i++)o(w,_),C||(m.readHexNumber(A,_),r(w,A,_)),code=m.readSigned()+(code+1),n.mapOne(e(w,_),code);break;case 3:for(m.readHex(y,_),m.readHexNumber(k,_),r(k,y,_),code=m.readNumber(),n.mapCidRange(e(y,_),e(k,_),code),i=1;i<P;i++)o(k,_),C?y.set(k):(m.readHexNumber(y,_),r(y,k,_)),m.readHexNumber(k,_),r(k,y,_),code=m.readNumber(),n.mapCidRange(e(y,_),e(k,_),code);break;case 4:for(m.readHex(w,1),m.readHex(S,_),n.mapOne(e(w,1),t(S,_)),i=1;i<P;i++)o(w,1),C||(m.readHexNumber(A,1),r(w,A,1)),o(S,_),m.readHexSigned(A,_),r(S,A,_),n.mapOne(e(w,1),t(S,_));break;case 5:for(m.readHex(y,1),m.readHexNumber(k,1),r(k,y,1),m.readHex(S,_),n.mapBfRange(e(y,1),e(k,1),t(S,_)),i=1;i<P;i++)o(k,1),C?y.set(k):(m.readHexNumber(y,1),r(y,k,1)),m.readHexNumber(k,1),r(k,y,1),m.readHex(S,_),n.mapBfRange(e(y,1),e(k,1),t(S,_));break;default:return void f(new Error("processBinaryCMap: Unknown type: "+x))}}else switch(31&b){case 0:m.readString();break;case 1:v=m.readString()}}d(v?h(v):n)}))}},h}(),A=function(){function e(e){for(var a=0,i=0;i<e.length;i++)a=a<<8|e.charCodeAt(i);return a>>>0}function t(e){if(!(0,n.isString)(e))throw new n.FormatError("Malformed CMap: expected string.")}function r(e){if(!Number.isInteger(e))throw new n.FormatError("Malformed CMap: expected int.")}function f(r,n){for(;;){var c=n.getObj();if((0,o.isEOF)(c))break;if((0,o.isCmd)(c,"endbfchar"))return;t(c);var l=e(c);t(c=n.getObj());var h=c;r.mapOne(l,h)}}function y(r,c){for(;;){var l=c.getObj();if((0,o.isEOF)(l))break;if((0,o.isCmd)(l,"endbfrange"))return;t(l);var h=e(l);t(l=c.getObj());var d=e(l);if(l=c.getObj(),Number.isInteger(l)||(0,n.isString)(l)){var f=Number.isInteger(l)?String.fromCharCode(l):l;r.mapBfRange(h,d,f)}else{if(!(0,o.isCmd)(l,"["))break;l=c.getObj();for(var m=[];!(0,o.isCmd)(l,"]")&&!(0,o.isEOF)(l);)m.push(l),l=c.getObj();r.mapBfRangeToArray(h,d,m)}}throw new n.FormatError("Invalid bf range.")}function w(n,c){for(;;){var l=c.getObj();if((0,o.isEOF)(l))break;if((0,o.isCmd)(l,"endcidchar"))return;t(l);var h=e(l);r(l=c.getObj());var d=l;n.mapOne(h,d)}}function S(n,c){for(;;){var l=c.getObj();if((0,o.isEOF)(l))break;if((0,o.isCmd)(l,"endcidrange"))return;t(l);var h=e(l);t(l=c.getObj());var d=e(l);r(l=c.getObj());var f=l;n.mapCidRange(h,d,f)}}function A(t,r){for(;;){var c=r.getObj();if((0,o.isEOF)(c))break;if((0,o.isCmd)(c,"endcodespacerange"))return;if(!(0,n.isString)(c))break;var l=e(c);if(c=r.getObj(),!(0,n.isString)(c))break;var h=e(c);t.addCodespaceRange(c.length,l,h)}throw new n.FormatError("Invalid codespace range.")}function x(e,t){var r=t.getObj();Number.isInteger(r)&&(e.vertical=!!r)}function C(e,t){var r=t.getObj();(0,o.isName)(r)&&(0,n.isString)(r.name)&&(e.name=r.name)}function _(e,t,r,c){var h,d;e:for(;;)try{var m=t.getObj();if((0,o.isEOF)(m))break;if((0,o.isName)(m))"WMode"===m.name?x(e,t):"CMapName"===m.name&&C(e,t),h=m;else if((0,o.isCmd)(m))switch(m.cmd){case"endcmap":break e;case"usecmap":(0,o.isName)(h)&&(d=h.name);break;case"begincodespacerange":A(e,t);break;case"beginbfchar":f(e,t);break;case"begincidchar":w(e,t);break;case"beginbfrange":y(e,t);break;case"begincidrange":S(e,t)}}catch(e){if(e instanceof l.MissingDataException)throw e;(0,n.warn)("Invalid cMap data: "+e);continue}return!c&&d&&(c=d),c?P(e,r,c):Promise.resolve(e)}function P(e,t,r){return I(r,t).then((function(t){if(e.useCMap=t,0===e.numCodespaceRanges){for(var r=e.useCMap.codespaceRanges,i=0;i<r.length;i++)e.codespaceRanges[i]=r[i].slice();e.numCodespaceRanges=e.useCMap.numCodespaceRanges}return e.useCMap.forEach((function(t,r){e.contains(t)||e.mapOne(t,e.useCMap.lookup(t))})),e}))}function I(e,t){return"Identity-H"===e?Promise.resolve(new v(!1,2)):"Identity-V"===e?Promise.resolve(new v(!0,2)):d.includes(e)?t?t(e).then((function(data){var e=data.cMapData,r=data.compressionType,o=new m(!0);if(r===n.CMapCompressionType.BINARY)return(new k).process(e,o,(function(e){return P(o,t,e)}));if(r===n.CMapCompressionType.NONE){var l=new c.Lexer(new h.Stream(e));return _(o,l,t,null)}return Promise.reject(new Error("TODO: Only BINARY/NONE CMap compression is currently supported."))})):Promise.reject(new Error("Built-in CMap parameters are not provided.")):Promise.reject(new Error("Unknown CMap name: "+e))}return{create:function(e){return O(T().mark((function t(){var r,n,l,h,d;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.encoding,n=e.fetchBuiltInCMap,l=e.useCMap,!(0,o.isName)(r)){t.next=7;break}return t.abrupt("return",I(r.name,n));case 7:if(!(0,o.isStream)(r)){t.next=11;break}return h=new m,d=new c.Lexer(r),t.abrupt("return",_(h,d,n,l).then((function(e){return e.isIdentityCMap?I(e.name,n):e})));case 11:throw new Error("Encoding required.");case 12:case"end":return t.stop()}}),t)})))()}}}();t.CMapFactory=A},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFontType=F,t.IdentityToUnicodeMap=t.ToUnicodeMap=t.FontFlags=t.Font=t.ErrorFont=t.SEAC_ANALYSIS_ENABLED=void 0;var n=r(2),o=r(30),c=r(33),l=r(32),h=r(34),d=r(35),f=r(8),v=r(36),y=r(28),k=r(12),w=r(37),S=[[57344,63743],[1048576,1114109]],A=1e3,x=!0;t.SEAC_ANALYSIS_ENABLED=x;var C=["ascent","bbox","black","bold","charProcOperatorList","composite","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isMonospace","isSerifFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],_=["cMap","defaultEncoding","differences","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"],P={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};t.FontFlags=P;var T=[".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 E(e){if(e.fontMatrix&&e.fontMatrix[0]!==n.FONT_IDENTITY_MATRIX[0]){var t=.001/e.fontMatrix[0],r=e.widths;for(var glyph in r)r[glyph]*=t;e.defaultWidth*=t}}function F(e,t){switch(e){case"Type1":return"Type1C"===t?n.FontType.TYPE1C:n.FontType.TYPE1;case"CIDFontType0":return"CIDFontType0C"===t?n.FontType.CIDFONTTYPE0C:n.FontType.CIDFONTTYPE0;case"OpenType":return n.FontType.OPENTYPE;case"TrueType":return n.FontType.TRUETYPE;case"CIDFontType2":return n.FontType.CIDFONTTYPE2;case"MMType1":return n.FontType.MMTYPE1;case"Type0":return n.FontType.TYPE0;default:return n.FontType.UNKNOWN}}function L(e,t){if(void 0!==t[e])return e;var r=(0,d.getUnicodeForGlyph)(e,t);if(-1!==r)for(var o in t)if(t[o]===r)return o;return(0,n.info)("Unable to recover a standard glyph name for: "+e),e}var O=function(){function e(e,t,r,n,o,c,l,h){this.fontChar=e,this.unicode=t,this.accent=r,this.width=n,this.vmetric=o,this.operatorListId=c,this.isSpace=l,this.isInFont=h}return e.prototype.matchesForCache=function(e,t,r,n,o,c,l,h){return this.fontChar===e&&this.unicode===t&&this.accent===r&&this.width===n&&this.vmetric===o&&this.operatorListId===c&&this.isSpace===l&&this.isInFont===h},e}(),R=function(){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._map=e}return e.prototype={get length(){return this._map.length},forEach:function(e){for(var t in this._map)e(t,this._map[t].charCodeAt(0))},has:function(i){return void 0!==this._map[i]},get:function(i){return this._map[i]},charCodeOf:function(e){var map=this._map;if(map.length<=65536)return map.indexOf(e);for(var t in map)if(map[t]===e)return 0|t;return-1},amend:function(map){for(var e in map)this._map[e]=map[e]}},e}();t.ToUnicodeMap=R;var M=function(){function e(e,t){this.firstChar=e,this.lastChar=t}return e.prototype={get length(){return this.lastChar+1-this.firstChar},forEach:function(e){for(var i=this.firstChar,t=this.lastChar;i<=t;i++)e(i,i)},has:function(i){return this.firstChar<=i&&i<=this.lastChar},get:function(i){if(this.firstChar<=i&&i<=this.lastChar)return String.fromCharCode(i)},charCodeOf:function(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1},amend:function(map){(0,n.unreachable)("Should not call amend()")}},e}();t.IdentityToUnicodeMap=M;var N=function(){function e(e,t,r){e[t]=r>>8&255,e[t+1]=255&r}function t(e,t,r){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function r(e,t,data){var i,r;if(data instanceof Uint8Array)e.set(data,t);else if("string"==typeof data)for(i=0,r=data.length;i<r;i++)e[t++]=255&data.charCodeAt(i);else for(i=0,r=data.length;i<r;i++)e[t++]=255&data[i]}function o(e){this.sfnt=e,this.tables=Object.create(null)}return o.getSearchParams=function(e,t){for(var r=1,n=0;(r^e)>r;)r<<=1,n++;var o=r*t;return{range:o,entry:n,rangeShift:t*e-o}},o.prototype={toArray:function(){var c=this.sfnt,l=this.tables,h=Object.keys(l);h.sort();var i,d,m,table,v,y=h.length,k=12+16*y,w=[k];for(i=0;i<y;i++)k+=((table=l[h[i]]).length+3&-4)>>>0,w.push(k);var S=new Uint8Array(k);for(i=0;i<y;i++)table=l[h[i]],r(S,w[i],table);"true"===c&&(c=(0,n.string32)(65536)),S[0]=255&c.charCodeAt(0),S[1]=255&c.charCodeAt(1),S[2]=255&c.charCodeAt(2),S[3]=255&c.charCodeAt(3),e(S,4,y);var A=o.getSearchParams(y,16);for(e(S,6,A.range),e(S,8,A.entry),e(S,10,A.rangeShift),k=12,i=0;i<y;i++){v=h[i],S[k]=255&v.charCodeAt(0),S[k+1]=255&v.charCodeAt(1),S[k+2]=255&v.charCodeAt(2),S[k+3]=255&v.charCodeAt(3);var x=0;for(d=w[i],m=w[i+1];d<m;d+=4)x=x+(0,f.readUint32)(S,d)>>>0;t(S,k+4,x),t(S,k+8,w[i]),t(S,k+12,l[v].length),k+=16}return S},addTable:function(e,data){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=data}},o}(),D=function(){function e(e,t,r){var o;this.name=e,this.loadedName=r.loadedName,this.isType3Font=r.isType3Font,this.missingFile=!1,this.glyphCache=Object.create(null),this.isSerifFont=!!(r.flags&P.Serif),this.isSymbolicFont=!!(r.flags&P.Symbolic),this.isMonospace=!!(r.flags&P.FixedPitch);var c=r.type,l=r.subtype;this.type=c,this.subtype=l;var h="sans-serif";if(this.isMonospace?h="monospace":this.isSerifFont&&(h="serif"),this.fallbackName=h,this.differences=r.differences,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.composite=r.composite,this.cMap=r.cMap,this.ascent=r.ascent/A,this.descent=r.descent/A,this.fontMatrix=r.fontMatrix,this.bbox=r.bbox,this.defaultEncoding=r.defaultEncoding,this.toUnicode=r.toUnicode,this.fallbackToUnicode=r.fallbackToUnicode||new R,this.toFontChar=[],"Type3"!==r.type){if(this.cidEncoding=r.cidEncoding,this.vertical=!!r.vertical,this.vertical&&(this.vmetrics=r.vmetrics,this.defaultVMetrics=r.defaultVMetrics),!t||t.isEmpty)return t&&(0,n.warn)('Font file is empty in "'+e+'" ('+this.loadedName+")"),void this.fallbackToSystemFont();var d=function(e,t){var r,o,c=t.type,l=t.subtype,h=t.composite;return function(e){var header=e.peekBytes(4);return 65536===(0,f.readUint32)(header,0)||"true"===(0,n.bytesToString)(header)}(e)||U(e)?r=h?"CIDFontType2":"TrueType":function(e){var header=e.peekBytes(4);return"OTTO"===(0,n.bytesToString)(header)}(e)?r=h?"CIDFontType2":"OpenType":function(e){var header=e.peekBytes(2);return 37===header[0]&&33===header[1]||128===header[0]&&1===header[1]}(e)?r=h?"CIDFontType0":"MMType1"===c?"MMType1":"Type1":function(e){var header=e.peekBytes(4);return header[0]>=1&&header[3]>=1&&header[3]<=4}(e)?h?(r="CIDFontType0",o="CIDFontType0C"):(r="MMType1"===c?"MMType1":"Type1",o="Type1C"):((0,n.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),r=c,o=l),[r,o]}(t,r),m=I(d,2);c=m[0],l=m[1],c===this.type&&l===this.subtype||(0,n.info)("Inconsistent font file Type/SubType, expected: "+"".concat(this.type,"/").concat(this.subtype," but found: ").concat(c,"/").concat(l,"."));try{var data;switch(c){case"MMType1":(0,n.info)("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var v="Type1C"===l||"CIDFontType0C"===l?new H(t,r):new j(e,t,r);E(r),data=this.convert(e,v,r);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",data=this.checkAndRepair(e,t,r),this.isOpenType&&(E(r),c="OpenType");break;default:throw new n.FormatError("Font ".concat(c," is not supported"))}}catch(e){return(0,n.warn)(e),void this.fallbackToSystemFont()}this.data=data,this.fontType=F(c,l),this.fontMatrix=r.fontMatrix,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.toUnicode=r.toUnicode,this.seacMap=r.seacMap}else{for(o=0;o<256;o++)this.toFontChar[o]=this.differences[o]||r.defaultEncoding[o];this.fontType=n.FontType.TYPE3}}var t;function r(e,t){return(e<<8)+t}function w(e,t){var r=(e<<8)+t;return 32768&r?r-65536:r}function D(e){return String.fromCharCode(e>>8&255,255&e)}function B(e){return e>32767?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function U(e){var header=e.peekBytes(4);return"ttcf"===(0,n.bytesToString)(header)}function G(e,t,r){for(var n,o=[],i=0,c=e.length;i<c;i++)-1!==(n=(0,d.getUnicodeForGlyph)(e[i],t))&&(o[i]=n);for(var l in r)-1!==(n=(0,d.getUnicodeForGlyph)(r[l],t))&&(o[+l]=n);return o}function z(e,t,r){var o=Object.create(null),c=[],l=0,h=S[l][0],d=S[l][1];for(var f in e){var m=e[f|=0];if(t(m)){if(h>d){if(++l>=S.length){(0,n.warn)("Ran out of space in font private use area.");break}h=S[l][0],d=S[l][1]}var v=h++;0===m&&(m=r),o[v]=m,c[f]=v}}return{toFontChar:c,charCodeToGlyphId:o,nextAvailableFontCharCode:h}}function W(e,t){var i,r,o,c,l=function(e,t){var r=[];for(var n in e)e[n]>=t||r.push({fontCharCode:0|n,glyphId:e[n]});0===r.length&&r.push({fontCharCode:0,glyphId:0}),r.sort((function(a,b){return a.fontCharCode-b.fontCharCode}));for(var o=[],c=r.length,l=0;l<c;){var h=r[l].fontCharCode,d=[r[l].glyphId];++l;for(var f=h;l<c&&f+1===r[l].fontCharCode&&(d.push(r[l].glyphId),++l,65535!=++f););o.push([h,f,d])}return o}(e,t),h=l[l.length-1][1]>65535?2:1,d="\0\0"+D(h)+"\0\0"+(0,n.string32)(4+8*h);for(i=l.length-1;i>=0&&!(l[i][0]<=65535);--i);var f=i+1;l[i][0]<65535&&65535===l[i][1]&&(l[i][1]=65534);var m,v,y,k,w=l[i][1]<65535?1:0,S=f+w,A=N.getSearchParams(S,2),x="",C="",_="",P="",T="",I=0;for(i=0,r=f;i<r;i++){v=(m=l[i])[0],y=m[1],x+=D(v),C+=D(y);var E=!0;for(o=1,c=(k=m[2]).length;o<c;++o)if(k[o]!==k[o-1]+1){E=!1;break}if(E)_+=D(k[0]-v&65535),P+=D(0);else{var F=2*(S-i)+2*I;for(I+=y-v+1,_+=D(0),P+=D(F),o=0,c=k.length;o<c;++o)T+=D(k[o])}}w>0&&(C+="ÿÿ",x+="ÿÿ",_+="\0",P+="\0\0");var L="\0\0"+D(2*S)+D(A.range)+D(A.entry)+D(A.rangeShift)+C+"\0\0"+x+_+P+T,O="",R="";if(h>1){for(d+="\0\0\n"+(0,n.string32)(4+8*h+4+L.length),O="",i=0,r=l.length;i<r;i++){v=(m=l[i])[0];var code=(k=m[2])[0];for(o=1,c=k.length;o<c;++o)k[o]!==k[o-1]+1&&(y=m[0]+o-1,O+=(0,n.string32)(v)+(0,n.string32)(y)+(0,n.string32)(code),v=y+1,code=k[o]);O+=(0,n.string32)(v)+(0,n.string32)(m[1])+(0,n.string32)(code)}R="\0\f\0\0"+(0,n.string32)(O.length+16)+"\0\0\0\0"+(0,n.string32)(O.length/12)}return d+"\0"+D(L.length+4)+L+R+O}function V(e,t,r){r=r||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var o=0,c=0,l=0,h=0,f=null,m=0;if(t){for(var code in t){(f>(code|=0)||!f)&&(f=code),m<code&&(m=code);var v=(0,d.getUnicodeRangeFor)(code);if(v<32)o|=1<<v;else if(v<64)c|=1<<v-32;else if(v<96)l|=1<<v-64;else{if(!(v<123))throw new n.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");h|=1<<v-96}}m>65535&&(m=65535)}else f=0,m=255;var y=e.bbox||[0,0,0,0],k=r.unitsPerEm||1/(e.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],w=e.ascentScaled?1:k/A,S=r.ascent||Math.round(w*(e.ascent||y[3])),x=r.descent||Math.round(w*(e.descent||y[1]));x>0&&e.descent>0&&y[1]<0&&(x=-x);var C=r.yMax||S,_=-r.yMin||-x;return"\0$ô\0\0\0»\0\0\0»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,n.string32)(o)+(0,n.string32)(c)+(0,n.string32)(l)+(0,n.string32)(h)+"*21*"+D(e.italicAngle?1:0)+D(f||e.firstChar)+D(m||e.lastChar)+D(S)+D(x)+"\0d"+D(C)+D(_)+"\0\0\0\0\0\0\0\0"+D(e.xHeight)+D(e.capHeight)+D(0)+D(f||e.firstChar)+"\0"}function X(e){var t=Math.floor(e.italicAngle*Math.pow(2,16));return"\0\0\0"+(0,n.string32)(t)+"\0\0\0\0"+(0,n.string32)(e.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function Y(e,t){t||(t=[[],[]]);var i,r,n,o,c,l=[t[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||"",t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],h=[];for(i=0,r=l.length;i<r;i++){var d=[];for(n=0,o=(c=t[1][i]||l[i]).length;n<o;n++)d.push(D(c.charCodeAt(n)));h.push(d.join(""))}var f=[l,h],m=["\0","\0"],v=["\0\0","\0"],y=["\0\0","\t"],k=l.length*m.length,w="\0\0"+D(k)+D(12*k+6),S=0;for(i=0,r=m.length;i<r;i++){var A=f[i];for(n=0,o=A.length;n<o;n++)c=A[n],w+=m[i]+v[i]+y[i]+D(n)+D(c.length)+D(S),S+=c.length}return w+=l.join("")+h.join("")}return e.getFontID=(t=1,function(){return String(t++)}),e.prototype={name:null,font:null,mimetype:null,disableFontFace:!1,get renderer(){var e=v.FontRendererFactory.create(this,x);return(0,n.shadow)(this,"renderer",e)},exportData:function(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?[].concat(C,_):C,data=Object.create(null),o=m(n);try{for(o.s();!(r=o.n()).done;)void 0!==(t=this[e=r.value])&&(data[e]=t)}catch(e){o.e(e)}finally{o.f()}return data},fallbackToSystemFont:function(){var e=this;this.missingFile=!0;var t=this.name,r=this.type,o=this.subtype,f=t.replace(/[,_]/g,"-").replace(/\s/g,""),m=(0,h.getStdFontMap)(),v=(0,h.getNonStdFontMap)(),y=!!m[f]||!(!v[f]||!m[v[f]]);if(f=m[f]||v[f]||f,this.bold=-1!==f.search(/bold/gi),this.italic=-1!==f.search(/oblique/gi)||-1!==f.search(/italic/gi),this.black=-1!==t.search(/Black/g),this.remeasure=Object.keys(this.widths).length>0,y&&"CIDFontType2"===r&&this.cidEncoding.startsWith("Identity-")){var k=(0,h.getGlyphMapForStandardFonts)(),map=[];for(var w in k)map[+w]=k[w];if(/Arial-?Black/i.test(t)){var S=(0,h.getSupplementalGlyphMapForArialBlack)();for(var A in S)map[+A]=S[A]}else if(/Calibri/i.test(t)){var x=(0,h.getSupplementalGlyphMapForCalibri)();for(var C in x)map[+C]=x[C]}this.toUnicode instanceof M||this.toUnicode.forEach((function(e,t){map[+e]=t})),this.toFontChar=map,this.toUnicode=new R(map)}else if(/Symbol/i.test(f))this.toFontChar=G(l.SymbolSetEncoding,(0,c.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(f))/Wingdings/i.test(t)&&(0,n.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=G(l.ZapfDingbatsEncoding,(0,c.getDingbatsGlyphsUnicode)(),this.differences);else if(y)this.toFontChar=G(this.defaultEncoding,(0,c.getGlyphsUnicode)(),this.differences);else{var _=(0,c.getGlyphsUnicode)(),P=[];if(this.toUnicode.forEach((function(t,r){if(!e.composite){var n=e.differences[t]||e.defaultEncoding[t],o=(0,d.getUnicodeForGlyph)(n,_);-1!==o&&(r=o)}P[+t]=r})),this.composite&&this.toUnicode instanceof M&&/Verdana/i.test(t)){var T=(0,h.getGlyphMapForStandardFonts)();for(var I in T)P[+I]=T[I]}this.toFontChar=P}this.loadedName=f.split("-")[0],this.fontType=F(r,o)},checkAndRepair:function(e,t,h){var d=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function f(e,t){var r=Object.create(null);r["OS/2"]=null,r.cmap=null,r.head=null,r.hhea=null,r.hmtx=null,r.maxp=null,r.name=null,r.post=null;for(var i=0;i<t;i++){var table=m(e);d.includes(table.tag)&&0!==table.length&&(r[table.tag]=table)}return r}function m(e){var t=(0,n.bytesToString)(e.getBytes(4)),r=e.getInt32()>>>0,o=e.getInt32()>>>0,c=e.getInt32()>>>0,l=e.pos;e.pos=e.start?e.start:0,e.skip(o);var data=e.getBytes(c);return e.pos=l,"head"===t&&(data[8]=data[9]=data[10]=data[11]=0,data[17]|=32),{tag:t,checksum:r,length:c,offset:o,data:data}}function v(e){return{version:(0,n.bytesToString)(e.getBytes(4)),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function S(source,e,t,r,n,o){var c={length:0,sizeOfInstructions:0};if(t-e<=12)return c;var l,h,d,f=source.subarray(e,t),m=w(f[0],f[1]);if(m<0)return d=m=-1,(l=f)[1+(h=0)]=d,l[h]=d>>>8,r.set(f,n),c.length=f.length,c;var i,v=10,y=0;for(i=0;i<m;i++)y=1+(f[v]<<8|f[v+1]),v+=2;var k=v,S=f[v]<<8|f[v+1];c.sizeOfInstructions=S;var A=v+=2+S,x=0;for(i=0;i<y;i++){var C=f[v++];192&C&&(f[v-1]=63&C);var _=2;2&C?_=1:16&C&&(_=0);var P=2;4&C?P=1:32&C&&(P=0);var T=_+P;if(x+=T,8&C){var I=f[v++];i+=I,x+=I*T}}if(0===x)return c;var E=v+x;return E>f.length?c:!o&&S>0?(r.set(f.subarray(0,k),n),r.set([0,0],n+k),r.set(f.subarray(A,E),n+k+2),E-=S,f.length-E>3&&(E=E+3&-4),c.length=E,c):f.length-E>3?(E=E+3&-4,r.set(f.subarray(0,E),n),c.length=E,c):(r.set(f,n),c.length=f.length,c)}function A(e){var r=(t.start?t.start:0)+e.offset;t.pos=r;var o=[[],[]],c=e.length,l=r+c;if(0!==t.getUint16()||c<6)return o;var i,h,d=t.getUint16(),f=t.getUint16(),m=[];for(i=0;i<d&&t.pos+12<=l;i++){var v={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(1===v.platform&&0===v.encoding&&0===v.language||3===v.platform&&1===v.encoding&&1033===v.language)&&m.push(v)}for(i=0,h=m.length;i<h;i++){var y=m[i];if(!(y.length<=0)){var k=r+f+y.offset;if(!(k+y.length>l)){t.pos=k;var w=y.name;if(y.encoding){for(var S="",A=0,x=y.length;A<x;A+=2)S+=String.fromCharCode(t.getUint16());o[1][w]=S}else o[0][w]=(0,n.bytesToString)(t.getBytes(y.length))}}}return o}var header,C,_,P,I=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function F(table,e){for(var t,r,b,o,c,data=table.data,i=0,l=0,h=0,d=[],f=[],m=[],v=e.tooComplexToFollowFunctions,y=!1,k=0,w=0,S=data.length;i<S;){var A=data[i++];if(64===A)if(r=data[i++],y||w)i+=r;else for(t=0;t<r;t++)d.push(data[i++]);else if(65===A)if(r=data[i++],y||w)i+=2*r;else for(t=0;t<r;t++)b=data[i++],d.push(b<<8|data[i++]);else if(176==(248&A))if(r=A-176+1,y||w)i+=r;else for(t=0;t<r;t++)d.push(data[i++]);else if(184==(248&A))if(r=A-184+1,y||w)i+=2*r;else for(t=0;t<r;t++)b=data[i++],d.push(b<<8|data[i++]);else if(43!==A||v)if(44!==A||v){if(45===A)if(y)y=!1,l=i;else{if(!(c=f.pop()))return(0,n.warn)("TT: ENDF bad stack"),void(e.hintsValid=!1);o=m.pop(),data=c.data,i=c.i,e.functionsStackDeltas[o]=d.length-c.stackTop}else if(137===A)(y||w)&&((0,n.warn)("TT: nested IDEFs not allowed"),v=!0),y=!0,h=i;else if(88===A)++k;else if(27===A)w=k;else if(89===A)w===k&&(w=0),--k;else if(28===A&&!y&&!w){var x=d[d.length-1];x>0&&(i+=x-1)}}else(y||w)&&((0,n.warn)("TT: nested FDEFs not allowed"),v=!0),y=!0,h=i,o=d.pop(),e.functionsDefined[o]={data:data,i:i};else if(!y&&!w)if(o=d[d.length-1],isNaN(o))(0,n.info)("TT: CALL empty stack (or invalid entry).");else if(e.functionsUsed[o]=!0,o in e.functionsStackDeltas){var C=d.length+e.functionsStackDeltas[o];if(C<0)return(0,n.warn)("TT: CALL invalid functions stack delta."),void(e.hintsValid=!1);d.length=C}else if(o in e.functionsDefined&&!m.includes(o)){if(f.push({data:data,i:i,stackTop:d.length-1}),m.push(o),!(c=e.functionsDefined[o]))return(0,n.warn)("TT: CALL non-existent function"),void(e.hintsValid=!1);data=c.data,i=c.i}if(!y&&!w){var _=0;for(A<=142?_=I[A]:A>=192&&A<=223?_=-1:A>=224&&(_=-2),A>=113&&A<=117&&(r=d.pop(),isNaN(r)||(_=2*-r));_<0&&d.length>0;)d.pop(),_++;for(;_>0;)d.push(NaN),_--}}e.tooComplexToFollowFunctions=v;var content=[data];i>data.length&&content.push(new Uint8Array(i-data.length)),h>l&&((0,n.warn)("TT: complementing a missing function tail"),content.push(new Uint8Array([34,45]))),function(table,content){if(content.length>1){var e,t,r=0;for(e=0,t=content.length;e<t;e++)r+=content[e].length;r=r+3&-4;var n=new Uint8Array(r),o=0;for(e=0,t=content.length;e<t;e++)n.set(content[e],o),o+=content[e].length;table.data=n,table.length=r}}(table,content)}if(U(t=new k.Stream(new Uint8Array(t.getBytes())))){var O=function(e,t){for(var r=function(e){var t=(0,n.bytesToString)(e.getBytes(4));(0,n.assert)("ttcf"===t,"Must be a TrueType Collection font.");for(var r=e.getUint16(),o=e.getUint16(),c=e.getInt32()>>>0,l=[],i=0;i<c;i++)l.push(e.getInt32()>>>0);var header={ttcTag:t,majorVersion:r,minorVersion:o,numFonts:c,offsetTable:l};switch(r){case 1:return header;case 2:return header.dsigTag=e.getInt32()>>>0,header.dsigLength=e.getInt32()>>>0,header.dsigOffset=e.getInt32()>>>0,header}throw new n.FormatError("Invalid TrueType Collection majorVersion: ".concat(r,"."))}(e),o=r.numFonts,c=r.offsetTable,i=0;i<o;i++){e.pos=(e.start||0)+c[i];var l=v(e),h=f(e,l.numTables);if(!h.name)throw new n.FormatError('TrueType Collection font must contain a "name" table.');for(var d=A(h.name),m=0,y=d.length;m<y;m++)for(var k=0,w=d[m].length;k<w;k++){var S=d[m][k];if(S&&S.replace(/\s/g,"")===t)return{header:l,tables:h}}}throw new n.FormatError('TrueType Collection does not contain "'.concat(t,'" font.'))}(t,this.name);header=O.header,C=O.tables}else header=v(t),C=f(t,header.numTables);var R=!C["CFF "];if(R){if(!C.loca)throw new n.FormatError('Required "loca" table is not found');C.glyf||((0,n.warn)('Required "glyf" table is not found -- trying to recover.'),C.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{var M=h.composite&&((h.cidToGidMap||[]).length>0||!(h.cMap instanceof y.IdentityCMap));if("OTTO"===header.version&&!M||!C.head||!C.hhea||!C.maxp||!C.post)return P=new k.Stream(C["CFF "].data),_=new H(P,h),E(h),this.convert(e,_,h);delete C.glyf,delete C.loca,delete C.fpgm,delete C.prep,delete C["cvt "],this.isOpenType=!0}if(!C.maxp)throw new n.FormatError('Required "maxp" table is not found');t.pos=(t.start||0)+C.maxp.offset;var D=t.getInt32(),B=t.getUint16(),j=B+1,G=!0;j>65535&&(G=!1,j=B,(0,n.warn)("Not enough space in glyfs to duplicate first glyph."));var K=0,J=0;D>=65536&&C.maxp.length>=22&&(t.pos+=8,t.getUint16()>2&&(C.maxp.data[14]=0,C.maxp.data[15]=2),t.pos+=4,K=t.getUint16(),t.pos+=4,J=t.getUint16()),C.maxp.data[4]=j>>8,C.maxp.data[5]=255&j;var Z=function(e,t,r,o){var c={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&F(e,c),t&&F(t,c),e&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,n.warn)("TT: more functions defined than expected"),void(e.hintsValid=!1);for(var r=0,o=e.functionsUsed.length;r<o;r++){if(r>t)return(0,n.warn)("TT: invalid function id: "+r),void(e.hintsValid=!1);if(e.functionsUsed[r]&&!e.functionsDefined[r])return(0,n.warn)("TT: undefined function: "+r),void(e.hintsValid=!1)}}}(c,o),r&&1&r.length){var l=new Uint8Array(r.length+1);l.set(r.data),r.data=l}return c.hintsValid}(C.fpgm,C.prep,C["cvt "],K);if(Z||(delete C.fpgm,delete C.prep,delete C["cvt "]),function(e,header,t,r,o){if(header){e.pos=(e.start?e.start:0)+header.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=8,e.pos+=2;var c=e.getUint16();c>r&&((0,n.info)("The numOfMetrics ("+c+") should not be greater than the numGlyphs ("+r+")"),c=r,header.data[34]=(65280&c)>>8,header.data[35]=255&c);var l=r-c-(t.length-4*c>>1);if(l>0){var h=new Uint8Array(t.length+2*l);h.set(t.data),o&&(h[t.length]=t.data[2],h[t.length+1]=t.data[3]),t.data=h}}else t&&(t.data=null)}(t,C.hhea,C.hmtx,j,G),!C.head)throw new n.FormatError('Required "head" table is not found');!function(head,e,t){var o,c,l,h,data=head.data,d=(o=data[0],c=data[1],l=data[2],h=data[3],(o<<24)+(c<<16)+(l<<8)+h);d>>16!=1&&((0,n.info)("Attempting to fix invalid version in head table: "+d),data[0]=0,data[1]=1,data[2]=0,data[3]=0);var f=r(data[50],data[51]);if(f<0||f>1){(0,n.info)("Attempting to fix invalid indexToLocFormat in head table: "+f);var m=e+1;if(t===m<<1)data[50]=0,data[51]=0;else{if(t!==m<<2)throw new n.FormatError("Could not fix indexToLocFormat: "+f);data[50]=0,data[51]=1}}}(C.head,B,R?C.loca.length:0);var Q=Object.create(null);if(R){var $=r(C.head.data[50],C.head.data[51]),ee=function(e,t,r,n,o,c,l){var h,d,f;n?(h=4,d=function(data,e){return data[e]<<24|data[e+1]<<16|data[e+2]<<8|data[e+3]},f=function(data,e,t){data[e]=t>>>24&255,data[e+1]=t>>16&255,data[e+2]=t>>8&255,data[e+3]=255&t}):(h=2,d=function(data,e){return data[e]<<9|data[e+1]<<1},f=function(data,e,t){data[e]=t>>9&255,data[e+1]=t>>1&255});var m=c?r+1:r,v=h*(1+m),y=new Uint8Array(v);y.set(e.data.subarray(0,v)),e.data=y;var i,k,w=t.data,A=w.length,x=new Uint8Array(A),C=d(y,0),_=0,P=Object.create(null);for(f(y,0,_),i=0,k=h;i<r;i++,k+=h){var T=d(y,k);0===T&&(T=C),T>A&&(A+3&-4)===T&&(T=A),T>A&&(C=T);var I=S(w,C,T,x,_,o),E=I.length;0===E&&(P[i]=!0),I.sizeOfInstructions>l&&(l=I.sizeOfInstructions),f(y,k,_+=E),C=T}if(0===_){var F=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(i=0,k=h;i<m;i++,k+=h)f(y,k,F.length);t.data=F}else if(c){var L=d(y,h);x.length>L+_?t.data=x.subarray(0,L+_):(t.data=new Uint8Array(L+_),t.data.set(x.subarray(0,_))),t.data.set(x.subarray(0,L),_),f(e.data,y.length-h,_+L)}else t.data=x.subarray(0,_);return{missingGlyphs:P,maxSizeOfInstructions:l}}(C.loca,C.glyf,B,$,Z,G,J);Q=ee.missingGlyphs,D>=65536&&C.maxp.length>=22&&(C.maxp.data[26]=ee.maxSizeOfInstructions>>8,C.maxp.data[27]=255&ee.maxSizeOfInstructions)}if(!C.hhea)throw new n.FormatError('Required "hhea" table is not found');0===C.hhea.data[10]&&0===C.hhea.data[11]&&(C.hhea.data[10]=255,C.hhea.data[11]=255);var te={unitsPerEm:r(C.head.data[18],C.head.data[19]),yMax:r(C.head.data[42],C.head.data[43]),yMin:w(C.head.data[38],C.head.data[39]),ascent:r(C.hhea.data[4],C.hhea.data[5]),descent:w(C.hhea.data[6],C.hhea.data[7])};this.ascent=te.ascent/te.unitsPerEm,this.descent=te.descent/te.unitsPerEm,C.post&&function(e,r,o){var c=(t.start?t.start:0)+e.offset;t.pos=c;var l,h=c+e.length,d=t.getInt32();t.skip(28);var i,f=!0;switch(d){case 65536:l=T;break;case 131072:var m=t.getUint16();if(m!==o){f=!1;break}var v=[];for(i=0;i<m;++i){var y=t.getUint16();if(y>=32768){f=!1;break}v.push(y)}if(!f)break;for(var k=[],w=[];t.pos<h;){var S=t.getByte();for(w.length=S,i=0;i<S;++i)w[i]=String.fromCharCode(t.getByte());k.push(w.join(""))}for(l=[],i=0;i<m;++i){var A=v[i];A<258?l.push(T[A]):l.push(k[A-258])}break;case 196608:break;default:(0,n.warn)("Unknown/unsupported post table version "+d),f=!1,r.defaultEncoding&&(l=r.defaultEncoding)}r.glyphNames=l}(C.post,h,B),C.post={tag:"post",data:X(h)};var re=[];function ae(e){return!Q[e]}if(h.composite){var ne=h.cidToGidMap||[],ie=0===ne.length;h.cMap.forEach((function(e,t){if(t>65535)throw new n.FormatError("Max size of CID is 65,535");var r=-1;ie?r=t:void 0!==ne[t]&&(r=ne[t]),r>=0&&r<B&&ae(r)&&(re[e]=r)}))}else{var oe=function(e,t,r,o){if(!e)return(0,n.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var c,l=(t.start?t.start:0)+e.offset;t.pos=l,t.skip(2);for(var h,d=t.getUint16(),f=!1,i=0;i<d;i++){var m=t.getUint16(),v=t.getUint16(),y=t.getInt32()>>>0,k=!1;if((!h||h.platformId!==m||h.encodingId!==v)&&(0===m&&0===v||1===m&&0===v?k=!0:3!==m||1!==v||!o&&h?r&&3===m&&0===v&&(k=!0,f=!0):(k=!0,r||(f=!0)),k&&(h={platformId:m,encodingId:v,offset:y}),f))break}if(h&&(t.pos=l+h.offset),!h||-1===t.peekByte())return(0,n.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var w=t.getUint16();t.skip(4);var S,A,x=!1,C=[];if(0===w){for(S=0;S<256;S++){var _=t.getByte();_&&C.push({charCode:S,glyphId:_})}x=!0}else if(4===w){var P=t.getUint16()>>1;t.skip(6);var T,I=[];for(T=0;T<P;T++)I.push({end:t.getUint16()});for(t.skip(2),T=0;T<P;T++)I[T].start=t.getUint16();for(T=0;T<P;T++)I[T].delta=t.getUint16();var E=0;for(T=0;T<P;T++){c=I[T];var F=t.getUint16();if(F){var L=(F>>1)-(P-T);c.offsetIndex=L,E=Math.max(E,L+c.end-c.start+1)}else c.offsetIndex=-1}var O=[];for(S=0;S<E;S++)O.push(t.getUint16());for(T=0;T<P;T++){l=(c=I[T]).start;var R=c.end,M=c.delta;for(L=c.offsetIndex,S=l;S<=R;S++)65535!==S&&(A=(A=L<0?S:O[L+S-l])+M&65535,C.push({charCode:S,glyphId:A}))}}else{if(6!==w)return(0,n.warn)("cmap table has unsupported format: "+w),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var N=t.getUint16(),D=t.getUint16();for(S=0;S<D;S++){A=t.getUint16();var B=N+S;C.push({charCode:B,glyphId:A})}}for(C.sort((function(a,b){return a.charCode-b.charCode})),i=1;i<C.length;i++)C[i-1].charCode===C[i].charCode&&(C.splice(i,1),i--);return{platformId:h.platformId,encodingId:h.encodingId,mappings:C,hasShortCmap:x}}(C.cmap,t,this.isSymbolicFont,h.hasEncoding),se=oe.platformId,ce=oe.encodingId,le=oe.mappings,ue=le.length;if(h.hasEncoding&&(3===se&&1===ce||1===se&&0===ce)||-1===se&&-1===ce&&(0,l.getEncoding)(h.baseEncodingName)){var he=[];"MacRomanEncoding"!==h.baseEncodingName&&"WinAnsiEncoding"!==h.baseEncodingName||(he=(0,l.getEncoding)(h.baseEncodingName));for(var de=(0,c.getGlyphsUnicode)(),fe=0;fe<256;fe++){var pe,ge;if(pe=this.differences&&fe in this.differences?this.differences[fe]:fe in he&&""!==he[fe]?he[fe]:l.StandardEncoding[fe]){var me;ge=L(pe,de),3===se&&1===ce?me=de[ge]:1===se&&0===ce&&(me=l.MacRomanEncoding.indexOf(ge));for(var ve=!1,i=0;i<ue;++i)if(le[i].charCode===me){re[fe]=le[i].glyphId,ve=!0;break}if(!ve&&h.glyphNames){var be=h.glyphNames.indexOf(pe);-1===be&&ge!==pe&&(be=h.glyphNames.indexOf(ge)),be>0&&ae(be)&&(re[fe]=be)}}}}else if(0===se&&0===ce)for(var ye=0;ye<ue;++ye)re[le[ye].charCode]=le[ye].glyphId;else for(var ke=0;ke<ue;++ke){var we=le[ke].charCode;3===se&&we>=61440&&we<=61695&&(we&=255),re[we]=le[ke].glyphId}}0===re.length&&(re[0]=0);var Se=j-1;G||(Se=0);var Ae=z(re,ae,Se);if(this.toFontChar=Ae.toFontChar,C.cmap={tag:"cmap",data:W(Ae.charCodeToGlyphId,j)},C["OS/2"]&&function(e,t){t.pos=(t.start||0)+e.offset;var r=t.getUint16();t.skip(60);var n=t.getUint16();return!(r<4&&768&n||t.getUint16()>t.getUint16()||(t.skip(6),0===t.getUint16()||(e.data[8]=e.data[9]=0,0)))}(C["OS/2"],t)||(C["OS/2"]={tag:"OS/2",data:V(h,Ae.charCodeToGlyphId,te)}),!R)try{P=new k.Stream(C["CFF "].data),(_=new o.CFFParser(P,h,x).parse()).duplicateFirstGlyph();var xe=new o.CFFCompiler(_);C["CFF "].data=xe.compile()}catch(e){(0,n.warn)("Failed to compile font "+h.loadedName)}if(C.name){var Ce=A(C.name);C.name.data=Y(e,Ce)}else C.name={tag:"name",data:Y(this.name)};var _e=new N(header.version);for(var Pe in C)_e.addTable(Pe,C[Pe].data);return _e.toArray()},convert:function(e,t,r){r.fixedPitch=!1,r.builtInEncoding&&function(e,t){if(!e.hasIncludedToUnicodeMap&&!(e.hasEncoding||t===e.defaultEncoding||e.toUnicode instanceof M)){var r=[],n=(0,c.getGlyphsUnicode)();for(var o in t){var l=t[o],h=(0,d.getUnicodeForGlyph)(l,n);-1!==h&&(r[o]=String.fromCharCode(h))}e.toUnicode.amend(r)}}(r,r.builtInEncoding);var o=1;t instanceof H&&(o=t.numGlyphs-1);var h=t.getGlyphMapping(r),f=z(h,t.hasGlyphId.bind(t),o);this.toFontChar=f.toFontChar;var m=t.numGlyphs;function v(e,t){var r=null;for(var n in e)t===e[n]&&(r||(r=[]),r.push(0|n));return r}function y(e,t){for(var r in e)if(t===e[r])return 0|r;return f.charCodeToGlyphId[f.nextAvailableFontCharCode]=t,f.nextAvailableFontCharCode++}var k=t.seacs;if(k&&k.length){var w=r.fontMatrix||n.FONT_IDENTITY_MATRIX,S=t.getCharset(),A=Object.create(null);for(var x in k){var C=k[x|=0],_=l.StandardEncoding[C[2]],P=l.StandardEncoding[C[3]],T=S.indexOf(_),I=S.indexOf(P);if(!(T<0||I<0)){var E={x:C[0]*w[0]+C[1]*w[2]+w[4],y:C[0]*w[1]+C[1]*w[3]+w[5]},F=v(h,x);if(F)for(var i=0,L=F.length;i<L;i++){var O=F[i],R=f.charCodeToGlyphId,U=y(R,T),j=y(R,I);A[O]={baseFontCharCode:U,accentFontCharCode:j,accentOffset:E}}}}r.seacMap=A}var G=1/(r.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],K=new N("OTTO");return K.addTable("CFF ",t.data),K.addTable("OS/2",V(r,f.charCodeToGlyphId)),K.addTable("cmap",W(f.charCodeToGlyphId,m)),K.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+B(G)+"\0\0\0\0\v~'\0\0\0\0\v~'\0\0"+B(r.descent)+"ÿ"+B(r.ascent)+D(r.italicAngle?2:0)+"\0\0\0\0\0\0\0"),K.addTable("hhea","\0\0\0"+B(r.ascent)+B(r.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+B(r.capHeight)+B(Math.tan(r.italicAngle)*r.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+D(m)),K.addTable("hmtx",function(){for(var e=t.charstrings,r=t.cff?t.cff.widths:null,n="\0\0\0\0",o=1,c=m;o<c;o++){var l=0;if(e){var h=e[o-1];l="width"in h?h.width:0}else r&&(l=Math.ceil(r[o]||0));n+=D(l)+D(0)}return n}()),K.addTable("maxp","\0\0P\0"+D(m)),K.addTable("name",Y(e)),K.addTable("post",X(r)),K.toArray()},get spaceWidth(){for(var e,t=["space","minus","one","i","I"],i=0,r=t.length;i<r;i++){var o=t[i];if(o in this.widths){e=this.widths[o];break}var l=(0,c.getGlyphsUnicode)()[o],h=0;if(this.composite&&this.cMap.contains(l)&&(h=this.cMap.lookup(l)),!h&&this.toUnicode&&(h=this.toUnicode.charCodeOf(l)),h<=0&&(h=l),e=this.widths[h])break}return e=e||this.defaultWidth,(0,n.shadow)(this,"spaceWidth",e)},charToGlyph:function(e,t){var r,o,c,l=e;this.cMap&&this.cMap.contains(e)&&(l=this.cMap.lookup(e)),o=this.widths[l],o=(0,n.isNum)(o)?o:this.defaultWidth;var h=this.vmetrics&&this.vmetrics[l],f=this.toUnicode.get(e)||this.fallbackToUnicode.get(e)||e;"number"==typeof f&&(f=String.fromCharCode(f));var m=e in this.toFontChar;if(r=this.toFontChar[e]||e,this.missingFile){var v=this.differences[e]||this.defaultEncoding[e];".notdef"!==v&&""!==v||"Type1"!==this.type||(r=32),r=(0,d.mapSpecialUnicodeValues)(r)}this.isType3Font&&(c=r);var y=null;if(this.seacMap&&this.seacMap[e]){m=!0;var k=this.seacMap[e];r=k.baseFontCharCode,y={fontChar:String.fromCodePoint(k.accentFontCharCode),offset:k.accentOffset}}var w="";"number"==typeof r&&(r<=1114111?w=String.fromCodePoint(r):(0,n.warn)("charToGlyph - invalid fontCharCode: ".concat(r)));var glyph=this.glyphCache[e];return glyph&&glyph.matchesForCache(w,f,y,o,h,c,t,m)||(glyph=new O(w,f,y,o,h,c,t,m),this.glyphCache[e]=glyph),glyph},charsToGlyphs:function(e){var t,glyph,r,n=this.charsCache;if(n&&(t=n[e]))return t;n||(n=this.charsCache=Object.create(null)),t=[];var o,c=e,i=0;if(this.cMap)for(var l=Object.create(null);i<e.length;){this.cMap.readCharCode(e,i,l),r=l.charcode;var h=l.length;i+=h;var d=1===h&&32===e.charCodeAt(i-1);glyph=this.charToGlyph(r,d),t.push(glyph)}else for(i=0,o=e.length;i<o;++i)r=e.charCodeAt(i),glyph=this.charToGlyph(r,32===r),t.push(glyph);return n[c]=t},get glyphCacheValues(){return Object.values(this.glyphCache)}},e}();t.Font=D;var B=function(){function e(e){this.error=e,this.loadedName="g_font_error",this.missingFile=!0}return e.prototype={charsToGlyphs:function(){return[]},exportData:function(){return{error:this.error}}},e}();function U(e,t,r){var n,o,h,d=Object.create(null),f=!!(e.flags&P.Symbolic);if(e.baseEncodingName)for(h=(0,l.getEncoding)(e.baseEncodingName),o=0;o<h.length;o++)n=r.indexOf(h[o]),d[o]=n>=0?n:0;else if(f)for(o in t)d[o]=t[o];else for(h=l.StandardEncoding,o=0;o<h.length;o++)n=r.indexOf(h[o]),d[o]=n>=0?n:0;var m,v=e.differences;if(v)for(o in v){var y=v[o];if(-1===(n=r.indexOf(y))){m||(m=(0,c.getGlyphsUnicode)());var k=L(y,m);k!==y&&(n=r.indexOf(k))}d[o]=n>=0?n:0}return d}t.ErrorFont=B;var j=function(){function e(e,t,r){for(var n,o=e.length,c=t.length,l=o-c,i=r,h=!1;i<l;){for(n=0;n<c&&e[i+n]===t[n];)n++;if(n>=c){for(i+=n;i<o&&(0,f.isWhiteSpace)(e[i]);)i++;h=!0;break}i++}return{found:h,length:i}}function t(t,r,o){var c=o.length1,l=(o.length2,r.peekBytes(6)),h=128===l[0]&&1===l[1];h&&(r.skip(6),c=l[5]<<24|l[4]<<16|l[3]<<8|l[2]);var d=function(t,r){var o,c,l,h,d=[101,101,120,101,99],m=t.pos;try{c=(o=t.getBytes(r)).length}catch(e){if(e instanceof f.MissingDataException)throw e}if(c===r&&(l=e(o,d,r-2*d.length)).found&&l.length===r)return{stream:new k.Stream(o),length:r};for((0,n.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),t.pos=m;0!==(l=e(t.peekBytes(2048),d,0)).length;)if(t.pos+=l.length,l.found){h=t.pos-m;break}return t.pos=m,h?{stream:new k.Stream(t.getBytes(h)),length:h}:((0,n.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new k.Stream(t.getBytes(r)),length:r})}(r,c);new w.Type1Parser(d.stream,!1,x).extractFontHeader(o),h&&((l=r.getBytes(6))[5],l[4],l[3],l[2]);var m,v=(m=r.getBytes(),{stream:new k.Stream(m),length:m.length}),data=new w.Type1Parser(v.stream,!0,x).extractFontProgram(o);for(var y in data.properties)o[y]=data.properties[y];var S=data.charstrings,A=this.getType2Charstrings(S),C=this.getType2Subrs(data.subrs);this.charstrings=S,this.data=this.wrap(t,A,this.charstrings,C,o),this.seacs=this.getSeacs(data.charstrings)}return t.prototype={get numGlyphs(){return this.charstrings.length+1},getCharset:function(){for(var e=[".notdef"],t=this.charstrings,r=0;r<t.length;r++)e.push(t[r].glyphName);return e},getGlyphMapping:function(e){var t=this.charstrings;if(e.composite){for(var r=Object.create(null),n=0,o=t.length;n<o;n++)r[e.cMap.charCodeOf(n)]=n+1;return r}var c,l=[".notdef"];for(c=0;c<t.length;c++)l.push(t[c].glyphName);var h=e.builtInEncoding;if(h){var d=Object.create(null);for(var f in h)(c=l.indexOf(h[f]))>=0&&(d[f]=c)}return U(e,d,l)},hasGlyphId:function(e){return!(e<0||e>=this.numGlyphs)&&(0===e||this.charstrings[e-1].charstring.length>0)},getSeacs:function(e){var i,t,r=[];for(i=0,t=e.length;i<t;i++){var n=e[i];n.seac&&(r[i+1]=n.seac)}return r},getType2Charstrings:function(e){for(var t=[],i=0,r=e.length;i<r;i++)t.push(e[i].charstring);return t},getType2Subrs:function(e){var t=0,r=e.length;t=r<1133?107:r<33769?1131:32768;var i,n=[];for(i=0;i<t;i++)n.push([11]);for(i=0;i<r;i++)n.push(e[i]);return n},wrap:function(e,t,r,n,c){var l=new o.CFF;l.header=new o.CFFHeader(1,0,4,4),l.names=[e];var h=new o.CFFTopDict;h.setByName("version",391),h.setByName("Notice",392),h.setByName("FullName",393),h.setByName("FamilyName",394),h.setByName("Weight",395),h.setByName("Encoding",null),h.setByName("FontMatrix",c.fontMatrix),h.setByName("FontBBox",c.bbox),h.setByName("charset",null),h.setByName("CharStrings",null),h.setByName("Private",null),l.topDict=h;var d=new o.CFFStrings;d.add("Version 0.11"),d.add("See original notice"),d.add(e),d.add(e),d.add("Medium"),l.strings=d,l.globalSubrIndex=new o.CFFIndex;var i,f,m=t.length,v=[".notdef"];for(i=0;i<m;i++){var y=r[i].glyphName;-1===o.CFFStandardStrings.indexOf(y)&&d.add(y),v.push(y)}l.charset=new o.CFFCharset(!1,0,v);var k=new o.CFFIndex;for(k.add([139,14]),i=0;i<m;i++)k.add(t[i]);l.charStrings=k;var w=new o.CFFPrivateDict;w.setByName("Subrs",null);var S=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(i=0,f=S.length;i<f;i++){var A=S[i];if(A in c.privateData){var x=c.privateData[A];if(Array.isArray(x))for(var C=x.length-1;C>0;C--)x[C]-=x[C-1];w.setByName(A,x)}}l.topDict.privateDict=w;var _=new o.CFFIndex;for(i=0,f=n.length;i<f;i++)_.add(n[i]);return w.subrsIndex=_,new o.CFFCompiler(l).compile()}},t}(),H=function(){function e(e,t){this.properties=t;var r=new o.CFFParser(e,t,x);this.cff=r.parse(),this.cff.duplicateFirstGlyph();var c=new o.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=c.compile()}catch(r){(0,n.warn)("Failed to compile font "+t.loadedName),this.data=e}}return e.prototype={get numGlyphs(){return this.cff.charStrings.count},getCharset:function(){return this.cff.charset.charset},getGlyphMapping:function(){var e,t,r=this.cff,n=this.properties,o=r.charset.charset;if(n.composite){if(e=Object.create(null),r.isCIDFont)for(t=0;t<o.length;t++){var c=o[t];e[n.cMap.charCodeOf(c)]=t}else for(t=0;t<r.charStrings.count;t++)e[n.cMap.charCodeOf(t)]=t;return e}return e=U(n,r.encoding?r.encoding.encoding:null,o)},hasGlyphId:function(e){return this.cff.hasGlyphId(e)}},e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFDSelect=t.CFFCompiler=t.CFFPrivateDict=t.CFFTopDict=t.CFFCharset=t.CFFIndex=t.CFFStrings=t.CFFHeader=t.CFF=t.CFFParser=t.CFFStandardStrings=void 0;var n=r(2),o=r(31),c=r(32),l=[".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"];t.CFFStandardStrings=l;var h=391,d=function(){var e=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],t=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn:function(e,t){e[t-1]=-e[t-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn:function(e,t){e[t-2]=e[t-2]*e[t-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];function r(e,t,r){this.bytes=e.getBytes(),this.properties=t,this.seacAnalysisEnabled=!!r}return r.prototype={parse:function(){var e=this.properties,t=new f;this.cff=t;var header=this.parseHeader(),r=this.parseIndex(header.endPos),n=this.parseIndex(r.endPos),o=this.parseIndex(n.endPos),c=this.parseIndex(o.endPos),l=this.parseDict(n.obj.get(0)),h=this.createDict(w,l,t.strings);t.header=header.obj,t.names=this.parseNameIndex(r.obj),t.strings=this.parseStringIndex(o.obj),t.topDict=h,t.globalSubrIndex=c.obj,this.parsePrivateDict(t.topDict),t.isCIDFont=h.hasName("ROS");var d=h.getByName("CharStrings"),m=this.parseIndex(d).obj,v=h.getByName("FontMatrix");v&&(e.fontMatrix=v);var y,k,S=h.getByName("FontBBox");if(S&&(e.ascent=Math.max(S[3],S[1]),e.descent=Math.min(S[1],S[3]),e.ascentScaled=!0),t.isCIDFont){for(var A=this.parseIndex(h.getByName("FDArray")).obj,i=0,x=A.count;i<x;++i){var C=A.get(i),_=this.createDict(w,this.parseDict(C),t.strings);this.parsePrivateDict(_),t.fdArray.push(_)}k=null,y=this.parseCharsets(h.getByName("charset"),m.count,t.strings,!0),t.fdSelect=this.parseFDSelect(h.getByName("FDSelect"),m.count)}else y=this.parseCharsets(h.getByName("charset"),m.count,t.strings,!1),k=this.parseEncoding(h.getByName("Encoding"),e,t.strings,y.charset);t.charset=y,t.encoding=k;var P=this.parseCharStrings({charStrings:m,localSubrIndex:h.privateDict.subrsIndex,globalSubrIndex:c.obj,fdSelect:t.fdSelect,fdArray:t.fdArray,privateDict:h.privateDict});return t.charStrings=P.charStrings,t.seacs=P.seacs,t.widths=P.widths,t},parseHeader:function(){for(var e=this.bytes,t=e.length,r=0;r<t&&1!==e[r];)++r;if(r>=t)throw new n.FormatError("Invalid CFF header");0!==r&&((0,n.info)("cff data is shifted"),e=e.subarray(r),this.bytes=e);var o=e[0],c=e[1],l=e[2],h=e[3];return{obj:new m(o,c,l,h),endPos:l}},parseDict:function(e){var t=0;function r(){var r=e[t++];return 30===r?function(){for(var r="",n=15,o=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],c=e.length;t<c;){var b=e[t++],l=b>>4,h=15&b;if(l===n)break;if(r+=o[l],h===n)break;r+=o[h]}return parseFloat(r)}():28===r?r=((r=e[t++])<<24|e[t++]<<16)>>16:29===r?r=(r=(r=(r=e[t++])<<8|e[t++])<<8|e[t++])<<8|e[t++]:r>=32&&r<=246?r-139:r>=247&&r<=250?256*(r-247)+e[t++]+108:r>=251&&r<=254?-256*(r-251)-e[t++]-108:((0,n.warn)('CFFParser_parseDict: "'+r+'" is a reserved command.'),NaN)}var o=[],c=[];t=0;for(var l=e.length;t<l;){var b=e[t];b<=21?(12===b&&(b=b<<8|e[++t]),c.push([b,o]),o=[],++t):o.push(r())}return c},parseIndex:function(e){var i,t,r=new y,n=this.bytes,o=n[e++]<<8|n[e++],c=[],l=e;if(0!==o){var h=n[e++],d=e+(o+1)*h-1;for(i=0,t=o+1;i<t;++i){for(var f=0,m=0;m<h;++m)f<<=8,f+=n[e++];c.push(d+f)}l=c[o]}for(i=0,t=c.length-1;i<t;++i){var v=c[i],k=c[i+1];r.add(n.subarray(v,k))}return{obj:r,endPos:l}},parseNameIndex:function(e){for(var t=[],i=0,r=e.count;i<r;++i){var o=e.get(i);t.push((0,n.bytesToString)(o))}return t},parseStringIndex:function(e){for(var t=new v,i=0,r=e.count;i<r;++i){var data=e.get(i);t.add((0,n.bytesToString)(data))}return t},createDict:function(e,t,r){for(var n=new e(r),i=0,o=t.length;i<o;++i){var c=t[i],l=c[0],h=c[1];n.setByKey(l,h)}return n},parseCharString:function(r,data,o,c){if(!data||r.callDepth>10)return!1;for(var l=r.stackSize,h=r.stack,d=data.length,f=0;f<d;){var m=data[f++],v=null;if(12===m){var q=data[f++];0===q?(data[f-2]=139,data[f-1]=22,l=0):v=t[q]}else if(28===m)h[l]=(data[f]<<24|data[f+1]<<16)>>16,f+=2,l++;else if(14===m){if(l>=4&&(l-=4,this.seacAnalysisEnabled))return r.seac=h.slice(l,l+4),!1;v=e[m]}else if(m>=32&&m<=246)h[l]=m-139,l++;else if(m>=247&&m<=254)h[l]=m<251?(m-247<<8)+data[f]+108:-(m-251<<8)-data[f]-108,f++,l++;else if(255===m)h[l]=(data[f]<<24|data[f+1]<<16|data[f+2]<<8|data[f+3])/65536,f+=4,l++;else if(19===m||20===m)r.hints+=l>>1,f+=r.hints+7>>3,l%=2,v=e[m];else{if(10===m||29===m){var y;if(!(y=10===m?o:c))return v=e[m],(0,n.warn)("Missing subrsIndex for "+v.id),!1;var k=32768;y.count<1240?k=107:y.count<33900&&(k=1131);var w=h[--l]+k;if(w<0||w>=y.count||isNaN(w))return v=e[m],(0,n.warn)("Out of bounds subrIndex for "+v.id),!1;if(r.stackSize=l,r.callDepth++,!this.parseCharString(r,y.get(w),o,c))return!1;r.callDepth--,l=r.stackSize;continue}if(11===m)return r.stackSize=l,!0;v=e[m]}if(v){if(v.stem&&(r.hints+=l>>1,3===m||23===m?r.hasVStems=!0:!r.hasVStems||1!==m&&18!==m||((0,n.warn)("CFF stem hints are in wrong order"),data[f-1]=1===m?3:23)),"min"in v&&!r.undefStack&&l<v.min)return(0,n.warn)("Not enough parameters for "+v.id+"; actual: "+l+", expected: "+v.min),!1;r.firstStackClearing&&v.stackClearing&&(r.firstStackClearing=!1,(l-=v.min)>=2&&v.stem?l%=2:l>1&&(0,n.warn)("Found too many parameters for stack-clearing command"),l>0&&h[l-1]>=0&&(r.width=h[l-1])),"stackDelta"in v?("stackFn"in v&&v.stackFn(h,l),l+=v.stackDelta):v.stackClearing?l=0:v.resetStack?(l=0,r.undefStack=!1):v.undefStack&&(l=0,r.undefStack=!0,r.firstStackClearing=!1)}}return r.stackSize=l,!0},parseCharStrings:function(e){for(var t=e.charStrings,r=e.localSubrIndex,o=e.globalSubrIndex,c=e.fdSelect,l=e.fdArray,h=e.privateDict,d=[],f=[],m=t.count,i=0;i<m;i++){var v=t.get(i),y={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1},k=!0,w=null,S=h;if(c&&l.length){var A=c.getFDIndex(i);-1===A&&((0,n.warn)("Glyph index is not in fd select."),k=!1),A>=l.length&&((0,n.warn)("Invalid fd index for glyph index."),k=!1),k&&(w=(S=l[A].privateDict).subrsIndex)}else r&&(w=r);if(k&&(k=this.parseCharString(y,v,w,o)),null!==y.width){var x=S.getByName("nominalWidthX");f[i]=x+y.width}else{var C=S.getByName("defaultWidthX");f[i]=C}null!==y.seac&&(d[i]=y.seac),k||t.set(i,new Uint8Array([14]))}return{charStrings:t,seacs:d,widths:f}},emptyPrivateDictionary:function(e){var t=this.createDict(S,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t},parsePrivateDict:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if(Array.isArray(t)&&2===t.length){var r=t[0],n=t[1];if(0===r||n>=this.bytes.length)this.emptyPrivateDictionary(e);else{var o=n+r,c=this.bytes.subarray(n,o),l=this.parseDict(c),h=this.createDict(S,l,e.strings);if(e.privateDict=h,h.getByName("Subrs")){var d=h.getByName("Subrs"),f=n+d;if(0===d||f>=this.bytes.length)this.emptyPrivateDictionary(e);else{var m=this.parseIndex(f);h.subrsIndex=m.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)},parseCharsets:function(e,t,r,c){if(0===e)return new x(!0,A.ISO_ADOBE,o.ISOAdobeCharset);if(1===e)return new x(!0,A.EXPERT,o.ExpertCharset);if(2===e)return new x(!0,A.EXPERT_SUBSET,o.ExpertSubsetCharset);var l,h,i,d=this.bytes,f=e,m=d[e++],v=[c?0:".notdef"];switch(t-=1,m){case 0:for(i=0;i<t;i++)l=d[e++]<<8|d[e++],v.push(c?l:r.get(l));break;case 1:for(;v.length<=t;)for(l=d[e++]<<8|d[e++],h=d[e++],i=0;i<=h;i++)v.push(c?l++:r.get(l++));break;case 2:for(;v.length<=t;)for(l=d[e++]<<8|d[e++],h=d[e++]<<8|d[e++],i=0;i<=h;i++)v.push(c?l++:r.get(l++));break;default:throw new n.FormatError("Unknown charset format")}var y=e,k=d.subarray(f,y);return new x(!1,m,v,k)},parseEncoding:function(e,t,r,o){var l,i,h,d=Object.create(null),f=this.bytes,m=!1,v=null;if(0===e||1===e){m=!0,l=e;var y=e?c.ExpertEncoding:c.StandardEncoding;for(i=0,h=o.length;i<h;i++){var k=y.indexOf(o[i]);-1!==k&&(d[k]=i)}}else{var w=e;switch(127&(l=f[e++])){case 0:var S=f[e++];for(i=1;i<=S;i++)d[f[e++]]=i;break;case 1:var A=f[e++],x=1;for(i=0;i<A;i++)for(var _=f[e++],P=f[e++],T=_;T<=_+P;T++)d[T]=x++;break;default:throw new n.FormatError("Unknown encoding format: ".concat(l," in CFF"))}var I=e;128&l&&(f[w]&=127,function(){var t=f[e++];for(i=0;i<t;i++){var code=f[e++],n=(f[e++]<<8)+(255&f[e++]);d[code]=o.indexOf(r.get(n))}}()),v=f.subarray(w,I)}return new C(m,l&=127,d,v)},parseFDSelect:function(e,t){var i,r=this.bytes,o=r[e++],c=[];switch(o){case 0:for(i=0;i<t;++i){var l=r[e++];c.push(l)}break;case 3:var h=r[e++]<<8|r[e++];for(i=0;i<h;++i){var d=r[e++]<<8|r[e++];0===i&&0!==d&&((0,n.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),d=0);for(var f=r[e++],m=r[e]<<8|r[e+1],v=d;v<m;++v)c.push(f)}e+=2;break;default:throw new n.FormatError('parseFDSelect: Unknown format "'.concat(o,'".'))}if(c.length!==t)throw new n.FormatError("parseFDSelect: Invalid font data.");return new _(o,c)}},r}();t.CFFParser=d;var f=function(){function e(){this.header=null,this.names=[],this.topDict=null,this.strings=new v,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}return e.prototype={duplicateFirstGlyph:function(){if(this.charStrings.count>=65535)(0,n.warn)("Not enough space in charstrings to duplicate first glyph.");else{var e=this.charStrings.get(0);this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}},hasGlyphId:function(e){return!(e<0||e>=this.charStrings.count)&&this.charStrings.get(e).length>0}},e}();t.CFF=f;var m=function(e,t,r,n){this.major=e,this.minor=t,this.hdrSize=r,this.offSize=n};t.CFFHeader=m;var v=function(){function e(){this.strings=[]}return e.prototype={get:function(e){return e>=0&&e<=390?l[e]:e-h<=this.strings.length?this.strings[e-h]:l[0]},getSID:function(e){var t=l.indexOf(e);return-1!==t?t:-1!==(t=this.strings.indexOf(e))?t+h:-1},add:function(e){this.strings.push(e)},get count(){return this.strings.length}},e}();t.CFFStrings=v;var y=function(){function e(){this.objects=[],this.length=0}return e.prototype={add:function(data){this.length+=data.length,this.objects.push(data)},set:function(e,data){this.length+=data.length-this.objects[e].length,this.objects[e]=data},get:function(e){return this.objects[e]},get count(){return this.objects.length}},e}();t.CFFIndex=y;var k=function(){function e(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}return e.prototype={setByKey:function(e,t){if(!(e in this.keyToNameMap))return!1;var r=t.length;if(0===r)return!0;for(var i=0;i<r;i++)if(isNaN(t[i]))return(0,n.warn)('Invalid CFFDict value: "'+t+'" for key "'+e+'".'),!0;var o=this.types[e];return"num"!==o&&"sid"!==o&&"offset"!==o||(t=t[0]),this.values[e]=t,!0},setByName:function(e,t){if(!(e in this.nameToKeyMap))throw new n.FormatError('Invalid dictionary name "'.concat(e,'"'));this.values[this.nameToKeyMap[e]]=t},hasName:function(e){return this.nameToKeyMap[e]in this.values},getByName:function(e){if(!(e in this.nameToKeyMap))throw new n.FormatError("Invalid dictionary name ".concat(e,'"'));var t=this.nameToKeyMap[e];return t in this.values?this.values[t]:this.defaults[t]},removeByName:function(e){delete this.values[this.nameToKeyMap[e]]}},e.createTables=function(e){for(var t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},i=0,r=e.length;i<r;++i){var n=e[i],o=Array.isArray(n[0])?(n[0][0]<<8)+n[0][1]:n[0];t.keyToNameMap[o]=n[1],t.nameToKeyMap[n[1]]=o,t.types[o]=n[2],t.defaults[o]=n[3],t.opcodes[o]=Array.isArray(n[0])?n[0]:[n[0]],t.order.push(o)}return t},e}(),w=function(){var e=[[[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"],[.001,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]],t=null;function r(r){null===t&&(t=k.createTables(e)),k.call(this,t,r),this.privateDict=null}return r.prototype=Object.create(k.prototype),r}();t.CFFTopDict=w;var S=function(){var e=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.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",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]],t=null;function r(r){null===t&&(t=k.createTables(e)),k.call(this,t,r),this.subrsIndex=null}return r.prototype=Object.create(k.prototype),r}();t.CFFPrivateDict=S;var A={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2},x=function(e,t,r,n){this.predefined=e,this.format=t,this.charset=r,this.raw=n};t.CFFCharset=x;var C=function(e,t,r,n){this.predefined=e,this.format=t,this.encoding=r,this.raw=n},_=function(){function e(e,t){this.format=e,this.fdSelect=t}return e.prototype={getFDIndex:function(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}},e}();t.CFFFDSelect=_;var P=function(){function e(){this.offsets=Object.create(null)}return e.prototype={isTracking:function(e){return e in this.offsets},track:function(e,t){if(e in this.offsets)throw new n.FormatError("Already tracking location of ".concat(e));this.offsets[e]=t},offset:function(e){for(var t in this.offsets)this.offsets[t]+=e},setEntryLocation:function(e,t,output){if(!(e in this.offsets))throw new n.FormatError("Not tracking location of ".concat(e));for(var data=output.data,r=this.offsets[e],i=0,o=t.length;i<o;++i){var c=5*i+r,l=c+1,h=c+2,d=c+3,f=c+4;if(29!==data[c]||0!==data[l]||0!==data[h]||0!==data[d]||0!==data[f])throw new n.FormatError("writing to an offset that is not empty");var m=t[i];data[c]=29,data[l]=m>>24&255,data[h]=m>>16&255,data[d]=m>>8&255,data[f]=255&m}}},e}(),T=function(){function e(e){this.cff=e}return e.prototype={compile:function(){var e=this.cff,output={data:[],length:0,add:function(data){this.data=this.data.concat(data),this.length=this.data.length}},header=this.compileHeader(e.header);output.add(header);var t=this.compileNameIndex(e.names);if(output.add(t),e.isCIDFont&&e.topDict.hasName("FontMatrix")){var base=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(var i=0,r=e.fdArray.length;i<r;i++){var o=e.fdArray[i],c=base.slice(0);o.hasName("FontMatrix")&&(c=n.Util.transform(c,o.getByName("FontMatrix"))),o.setByName("FontMatrix",c)}}e.topDict.setByName("charset",0);var l=this.compileTopDicts([e.topDict],output.length,e.isCIDFont);output.add(l.output);var h=l.trackers[0],d=this.compileStringIndex(e.strings.strings);output.add(d);var f=this.compileIndex(e.globalSubrIndex);if(output.add(f),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)h.setEntryLocation("Encoding",[e.encoding.format],output);else{var m=this.compileEncoding(e.encoding);h.setEntryLocation("Encoding",[output.length],output),output.add(m)}var v=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);h.setEntryLocation("charset",[output.length],output),output.add(v);var y=this.compileCharStrings(e.charStrings);if(h.setEntryLocation("CharStrings",[output.length],output),output.add(y),e.isCIDFont){h.setEntryLocation("FDSelect",[output.length],output);var k=this.compileFDSelect(e.fdSelect);output.add(k),l=this.compileTopDicts(e.fdArray,output.length,!0),h.setEntryLocation("FDArray",[output.length],output),output.add(l.output);var w=l.trackers;this.compilePrivateDicts(e.fdArray,w,output)}return this.compilePrivateDicts([e.topDict],[h],output),output.add([0]),output.data},encodeNumber:function(e){return parseFloat(e)!==parseInt(e,10)||isNaN(e)?this.encodeFloat(e):this.encodeInteger(e)},encodeFloat:function(e){var t=e.toString(),r=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(r){var n=parseFloat("1e"+((r[2]?+r[2]:0)+r[1].length));t=(Math.round(e*n)/n).toString()}var i,o,c="";for(i=0,o=t.length;i<o;++i){var a=t[i];c+="e"===a?"-"===t[++i]?"c":"b":"."===a?"a":"-"===a?"e":a}var l=[30];for(i=0,o=(c+=1&c.length?"f":"ff").length;i<o;i+=2)l.push(parseInt(c.substring(i,i+2),16));return l},encodeInteger:function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e]},compileHeader:function(header){return[header.major,header.minor,header.hdrSize,header.offSize]},compileNameIndex:function(e){for(var t=new y,i=0,r=e.length;i<r;++i){for(var o=e[i],c=Math.min(o.length,127),l=new Array(c),h=0;h<c;h++){var d=o[h];(d<"!"||d>"~"||"["===d||"]"===d||"("===d||")"===d||"{"===d||"}"===d||"<"===d||">"===d||"/"===d||"%"===d)&&(d="_"),l[h]=d}""===(l=l.join(""))&&(l="Bad_Font_Name"),t.add((0,n.stringToBytes)(l))}return this.compileIndex(t)},compileTopDicts:function(e,t,r){for(var n=[],o=new y,i=0,c=e.length;i<c;++i){var l=e[i];r&&(l.removeByName("CIDFontVersion"),l.removeByName("CIDFontRevision"),l.removeByName("CIDFontType"),l.removeByName("CIDCount"),l.removeByName("UIDBase"));var h=new P,d=this.compileDict(l,h);n.push(h),o.add(d),h.offset(t)}return{trackers:n,output:o=this.compileIndex(o,n)}},compilePrivateDicts:function(e,t,output){for(var i=0,r=e.length;i<r;++i){var o=e[i],c=o.privateDict;if(!c||!o.hasName("Private"))throw new n.FormatError("There must be a private dictionary.");var l=new P,h=this.compileDict(c,l),d=output.length;if(l.offset(d),h.length||(d=0),t[i].setEntryLocation("Private",[h.length,d],output),output.add(h),c.subrsIndex&&c.hasName("Subrs")){var f=this.compileIndex(c.subrsIndex);l.setEntryLocation("Subrs",[h.length],output),output.add(f)}}},compileDict:function(e,t){for(var r=[],o=e.order,i=0;i<o.length;++i){var c=o[i];if(c in e.values){var l=e.values[c],h=e.types[c];if(Array.isArray(h)||(h=[h]),Array.isArray(l)||(l=[l]),0!==l.length){for(var d=0,f=h.length;d<f;++d){var m=h[d],v=l[d];switch(m){case"num":case"sid":r=r.concat(this.encodeNumber(v));break;case"offset":var y=e.keyToNameMap[c];t.isTracking(y)||t.track(y,r.length),r=r.concat([29,0,0,0,0]);break;case"array":case"delta":r=r.concat(this.encodeNumber(v));for(var k=1,w=l.length;k<w;++k)r=r.concat(this.encodeNumber(l[k]));break;default:throw new n.FormatError("Unknown data type of ".concat(m))}}r=r.concat(e.opcodes[c])}}}return r},compileStringIndex:function(e){for(var t=new y,i=0,r=e.length;i<r;++i)t.add((0,n.stringToBytes)(e[i]));return this.compileIndex(t)},compileGlobalSubrIndex:function(){var e=this.cff.globalSubrIndex;this.out.writeByteArray(this.compileIndex(e))},compileCharStrings:function(e){for(var t=new y,i=0;i<e.count;i++){var glyph=e.get(i);0!==glyph.length?t.add(glyph):t.add(new Uint8Array([139,14]))}return this.compileIndex(t)},compileCharset:function(e,t,r,o){var c,l=t-1;if(o)c=new Uint8Array([2,0,0,l>>8&255,255&l]);else{(c=new Uint8Array(1+2*l))[0]=0;for(var h=0,d=e.charset.length,f=!1,i=1;i<c.length;i+=2){var m=0;if(h<d){var v=e.charset[h++];-1===(m=r.getSID(v))&&(m=0,f||(f=!0,(0,n.warn)("Couldn't find ".concat(v," in CFF strings"))))}c[i]=m>>8&255,c[i+1]=255&m}}return this.compileTypedArray(c)},compileEncoding:function(e){return this.compileTypedArray(e.raw)},compileFDSelect:function(e){var t,i,r=e.format;switch(r){case 0:for((t=new Uint8Array(1+e.fdSelect.length))[0]=r,i=0;i<e.fdSelect.length;i++)t[i+1]=e.fdSelect[i];break;case 3:var n=e.fdSelect[0],o=[r,0,0,0,0,n];for(i=1;i<e.fdSelect.length;i++){var c=e.fdSelect[i];c!==n&&(o.push(i>>8&255,255&i,c),n=c)}var l=(o.length-3)/3;o[1]=l>>8&255,o[2]=255&l,o.push(i>>8&255,255&i),t=new Uint8Array(o)}return this.compileTypedArray(t)},compileTypedArray:function(data){for(var e=[],i=0,t=data.length;i<t;++i)e[i]=data[i];return e},compileIndex:function(e,t){t=t||[];var r=e.objects,n=r.length;if(0===n)return[0,0,0];var i,o,data=[n>>8&255,255&n],c=1;for(i=0;i<n;++i)c+=r[i].length;o=c<256?1:c<65536?2:c<16777216?3:4,data.push(o);var l=1;for(i=0;i<n+1;i++)1===o?data.push(255&l):2===o?data.push(l>>8&255,255&l):3===o?data.push(l>>16&255,l>>8&255,255&l):data.push(l>>>24&255,l>>16&255,l>>8&255,255&l),r[i]&&(l+=r[i].length);for(i=0;i<n;i++){t[i]&&t[i].offset(data.length);for(var h=0,d=r[i].length;h<d;h++)data.push(r[i][h])}return data}},e}();t.CFFCompiler=T},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpertSubsetCharset=t.ExpertCharset=t.ISOAdobeCharset=void 0,t.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"],t.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"],t.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"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEncoding=function(e){switch(e){case"WinAnsiEncoding":return h;case"StandardEncoding":return l;case"MacRomanEncoding":return c;case"SymbolSetEncoding":return d;case"ZapfDingbatsEncoding":return f;case"ExpertEncoding":return n;case"MacExpertEncoding":return o;default:return null}},t.ExpertEncoding=t.ZapfDingbatsEncoding=t.SymbolSetEncoding=t.MacRomanEncoding=t.StandardEncoding=t.WinAnsiEncoding=void 0;var n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];t.ExpertEncoding=n;var o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""],c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];t.MacRomanEncoding=c;var l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""];t.StandardEncoding=l;var h=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"];t.WinAnsiEncoding=h;var d=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];t.SymbolSetEncoding=d;var f=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""];t.ZapfDingbatsEncoding=f},function(e,t,r){var n=r(8).getLookupTableFactory,o=n((function(e){e.A=65,e.AE=198,e.AEacute=508,e.AEmacron=482,e.AEsmall=63462,e.Aacute=193,e.Aacutesmall=63457,e.Abreve=258,e.Abreveacute=7854,e.Abrevecyrillic=1232,e.Abrevedotbelow=7862,e.Abrevegrave=7856,e.Abrevehookabove=7858,e.Abrevetilde=7860,e.Acaron=461,e.Acircle=9398,e.Acircumflex=194,e.Acircumflexacute=7844,e.Acircumflexdotbelow=7852,e.Acircumflexgrave=7846,e.Acircumflexhookabove=7848,e.Acircumflexsmall=63458,e.Acircumflextilde=7850,e.Acute=63177,e.Acutesmall=63412,e.Acyrillic=1040,e.Adblgrave=512,e.Adieresis=196,e.Adieresiscyrillic=1234,e.Adieresismacron=478,e.Adieresissmall=63460,e.Adotbelow=7840,e.Adotmacron=480,e.Agrave=192,e.Agravesmall=63456,e.Ahookabove=7842,e.Aiecyrillic=1236,e.Ainvertedbreve=514,e.Alpha=913,e.Alphatonos=902,e.Amacron=256,e.Amonospace=65313,e.Aogonek=260,e.Aring=197,e.Aringacute=506,e.Aringbelow=7680,e.Aringsmall=63461,e.Asmall=63329,e.Atilde=195,e.Atildesmall=63459,e.Aybarmenian=1329,e.B=66,e.Bcircle=9399,e.Bdotaccent=7682,e.Bdotbelow=7684,e.Becyrillic=1041,e.Benarmenian=1330,e.Beta=914,e.Bhook=385,e.Blinebelow=7686,e.Bmonospace=65314,e.Brevesmall=63220,e.Bsmall=63330,e.Btopbar=386,e.C=67,e.Caarmenian=1342,e.Cacute=262,e.Caron=63178,e.Caronsmall=63221,e.Ccaron=268,e.Ccedilla=199,e.Ccedillaacute=7688,e.Ccedillasmall=63463,e.Ccircle=9400,e.Ccircumflex=264,e.Cdot=266,e.Cdotaccent=266,e.Cedillasmall=63416,e.Chaarmenian=1353,e.Cheabkhasiancyrillic=1212,e.Checyrillic=1063,e.Chedescenderabkhasiancyrillic=1214,e.Chedescendercyrillic=1206,e.Chedieresiscyrillic=1268,e.Cheharmenian=1347,e.Chekhakassiancyrillic=1227,e.Cheverticalstrokecyrillic=1208,e.Chi=935,e.Chook=391,e.Circumflexsmall=63222,e.Cmonospace=65315,e.Coarmenian=1361,e.Csmall=63331,e.D=68,e.DZ=497,e.DZcaron=452,e.Daarmenian=1332,e.Dafrican=393,e.Dcaron=270,e.Dcedilla=7696,e.Dcircle=9401,e.Dcircumflexbelow=7698,e.Dcroat=272,e.Ddotaccent=7690,e.Ddotbelow=7692,e.Decyrillic=1044,e.Deicoptic=1006,e.Delta=8710,e.Deltagreek=916,e.Dhook=394,e.Dieresis=63179,e.DieresisAcute=63180,e.DieresisGrave=63181,e.Dieresissmall=63400,e.Digammagreek=988,e.Djecyrillic=1026,e.Dlinebelow=7694,e.Dmonospace=65316,e.Dotaccentsmall=63223,e.Dslash=272,e.Dsmall=63332,e.Dtopbar=395,e.Dz=498,e.Dzcaron=453,e.Dzeabkhasiancyrillic=1248,e.Dzecyrillic=1029,e.Dzhecyrillic=1039,e.E=69,e.Eacute=201,e.Eacutesmall=63465,e.Ebreve=276,e.Ecaron=282,e.Ecedillabreve=7708,e.Echarmenian=1333,e.Ecircle=9402,e.Ecircumflex=202,e.Ecircumflexacute=7870,e.Ecircumflexbelow=7704,e.Ecircumflexdotbelow=7878,e.Ecircumflexgrave=7872,e.Ecircumflexhookabove=7874,e.Ecircumflexsmall=63466,e.Ecircumflextilde=7876,e.Ecyrillic=1028,e.Edblgrave=516,e.Edieresis=203,e.Edieresissmall=63467,e.Edot=278,e.Edotaccent=278,e.Edotbelow=7864,e.Efcyrillic=1060,e.Egrave=200,e.Egravesmall=63464,e.Eharmenian=1335,e.Ehookabove=7866,e.Eightroman=8551,e.Einvertedbreve=518,e.Eiotifiedcyrillic=1124,e.Elcyrillic=1051,e.Elevenroman=8554,e.Emacron=274,e.Emacronacute=7702,e.Emacrongrave=7700,e.Emcyrillic=1052,e.Emonospace=65317,e.Encyrillic=1053,e.Endescendercyrillic=1186,e.Eng=330,e.Enghecyrillic=1188,e.Enhookcyrillic=1223,e.Eogonek=280,e.Eopen=400,e.Epsilon=917,e.Epsilontonos=904,e.Ercyrillic=1056,e.Ereversed=398,e.Ereversedcyrillic=1069,e.Escyrillic=1057,e.Esdescendercyrillic=1194,e.Esh=425,e.Esmall=63333,e.Eta=919,e.Etarmenian=1336,e.Etatonos=905,e.Eth=208,e.Ethsmall=63472,e.Etilde=7868,e.Etildebelow=7706,e.Euro=8364,e.Ezh=439,e.Ezhcaron=494,e.Ezhreversed=440,e.F=70,e.Fcircle=9403,e.Fdotaccent=7710,e.Feharmenian=1366,e.Feicoptic=996,e.Fhook=401,e.Fitacyrillic=1138,e.Fiveroman=8548,e.Fmonospace=65318,e.Fourroman=8547,e.Fsmall=63334,e.G=71,e.GBsquare=13191,e.Gacute=500,e.Gamma=915,e.Gammaafrican=404,e.Gangiacoptic=1002,e.Gbreve=286,e.Gcaron=486,e.Gcedilla=290,e.Gcircle=9404,e.Gcircumflex=284,e.Gcommaaccent=290,e.Gdot=288,e.Gdotaccent=288,e.Gecyrillic=1043,e.Ghadarmenian=1346,e.Ghemiddlehookcyrillic=1172,e.Ghestrokecyrillic=1170,e.Gheupturncyrillic=1168,e.Ghook=403,e.Gimarmenian=1331,e.Gjecyrillic=1027,e.Gmacron=7712,e.Gmonospace=65319,e.Grave=63182,e.Gravesmall=63328,e.Gsmall=63335,e.Gsmallhook=667,e.Gstroke=484,e.H=72,e.H18533=9679,e.H18543=9642,e.H18551=9643,e.H22073=9633,e.HPsquare=13259,e.Haabkhasiancyrillic=1192,e.Hadescendercyrillic=1202,e.Hardsigncyrillic=1066,e.Hbar=294,e.Hbrevebelow=7722,e.Hcedilla=7720,e.Hcircle=9405,e.Hcircumflex=292,e.Hdieresis=7718,e.Hdotaccent=7714,e.Hdotbelow=7716,e.Hmonospace=65320,e.Hoarmenian=1344,e.Horicoptic=1e3,e.Hsmall=63336,e.Hungarumlaut=63183,e.Hungarumlautsmall=63224,e.Hzsquare=13200,e.I=73,e.IAcyrillic=1071,e.IJ=306,e.IUcyrillic=1070,e.Iacute=205,e.Iacutesmall=63469,e.Ibreve=300,e.Icaron=463,e.Icircle=9406,e.Icircumflex=206,e.Icircumflexsmall=63470,e.Icyrillic=1030,e.Idblgrave=520,e.Idieresis=207,e.Idieresisacute=7726,e.Idieresiscyrillic=1252,e.Idieresissmall=63471,e.Idot=304,e.Idotaccent=304,e.Idotbelow=7882,e.Iebrevecyrillic=1238,e.Iecyrillic=1045,e.Ifraktur=8465,e.Igrave=204,e.Igravesmall=63468,e.Ihookabove=7880,e.Iicyrillic=1048,e.Iinvertedbreve=522,e.Iishortcyrillic=1049,e.Imacron=298,e.Imacroncyrillic=1250,e.Imonospace=65321,e.Iniarmenian=1339,e.Iocyrillic=1025,e.Iogonek=302,e.Iota=921,e.Iotaafrican=406,e.Iotadieresis=938,e.Iotatonos=906,e.Ismall=63337,e.Istroke=407,e.Itilde=296,e.Itildebelow=7724,e.Izhitsacyrillic=1140,e.Izhitsadblgravecyrillic=1142,e.J=74,e.Jaarmenian=1345,e.Jcircle=9407,e.Jcircumflex=308,e.Jecyrillic=1032,e.Jheharmenian=1355,e.Jmonospace=65322,e.Jsmall=63338,e.K=75,e.KBsquare=13189,e.KKsquare=13261,e.Kabashkircyrillic=1184,e.Kacute=7728,e.Kacyrillic=1050,e.Kadescendercyrillic=1178,e.Kahookcyrillic=1219,e.Kappa=922,e.Kastrokecyrillic=1182,e.Kaverticalstrokecyrillic=1180,e.Kcaron=488,e.Kcedilla=310,e.Kcircle=9408,e.Kcommaaccent=310,e.Kdotbelow=7730,e.Keharmenian=1364,e.Kenarmenian=1343,e.Khacyrillic=1061,e.Kheicoptic=998,e.Khook=408,e.Kjecyrillic=1036,e.Klinebelow=7732,e.Kmonospace=65323,e.Koppacyrillic=1152,e.Koppagreek=990,e.Ksicyrillic=1134,e.Ksmall=63339,e.L=76,e.LJ=455,e.LL=63167,e.Lacute=313,e.Lambda=923,e.Lcaron=317,e.Lcedilla=315,e.Lcircle=9409,e.Lcircumflexbelow=7740,e.Lcommaaccent=315,e.Ldot=319,e.Ldotaccent=319,e.Ldotbelow=7734,e.Ldotbelowmacron=7736,e.Liwnarmenian=1340,e.Lj=456,e.Ljecyrillic=1033,e.Llinebelow=7738,e.Lmonospace=65324,e.Lslash=321,e.Lslashsmall=63225,e.Lsmall=63340,e.M=77,e.MBsquare=13190,e.Macron=63184,e.Macronsmall=63407,e.Macute=7742,e.Mcircle=9410,e.Mdotaccent=7744,e.Mdotbelow=7746,e.Menarmenian=1348,e.Mmonospace=65325,e.Msmall=63341,e.Mturned=412,e.Mu=924,e.N=78,e.NJ=458,e.Nacute=323,e.Ncaron=327,e.Ncedilla=325,e.Ncircle=9411,e.Ncircumflexbelow=7754,e.Ncommaaccent=325,e.Ndotaccent=7748,e.Ndotbelow=7750,e.Nhookleft=413,e.Nineroman=8552,e.Nj=459,e.Njecyrillic=1034,e.Nlinebelow=7752,e.Nmonospace=65326,e.Nowarmenian=1350,e.Nsmall=63342,e.Ntilde=209,e.Ntildesmall=63473,e.Nu=925,e.O=79,e.OE=338,e.OEsmall=63226,e.Oacute=211,e.Oacutesmall=63475,e.Obarredcyrillic=1256,e.Obarreddieresiscyrillic=1258,e.Obreve=334,e.Ocaron=465,e.Ocenteredtilde=415,e.Ocircle=9412,e.Ocircumflex=212,e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210,e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216,e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356,e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472,e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578,e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986,e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035,e.Tsmall=63348,e.Twelveroman=8555,e.Tworoman=8545,e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920,e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis=7802,e.Umonospace=65333,e.Uogonek=370,e.Upsilon=933,e.Upsilon1=978,e.Upsilonacutehooksymbolgreek=979,e.Upsilonafrican=433,e.Upsilondieresis=939,e.Upsilondieresishooksymbolgreek=980,e.Upsilonhooksymbol=978,e.Upsilontonos=910,e.Uring=366,e.Ushortcyrillic=1038,e.Usmall=63349,e.Ustraightcyrillic=1198,e.Ustraightstrokecyrillic=1200,e.Utilde=360,e.Utildeacute=7800,e.Utildebelow=7796,e.V=86,e.Vcircle=9419,e.Vdotbelow=7806,e.Vecyrillic=1042,e.Vewarmenian=1358,e.Vhook=434,e.Vmonospace=65334,e.Voarmenian=1352,e.Vsmall=63350,e.Vtilde=7804,e.W=87,e.Wacute=7810,e.Wcircle=9420,e.Wcircumflex=372,e.Wdieresis=7812,e.Wdotaccent=7814,e.Wdotbelow=7816,e.Wgrave=7808,e.Wmonospace=65335,e.Wsmall=63351,e.X=88,e.Xcircle=9421,e.Xdieresis=7820,e.Xdotaccent=7818,e.Xeharmenian=1341,e.Xi=926,e.Xmonospace=65336,e.Xsmall=63352,e.Y=89,e.Yacute=221,e.Yacutesmall=63485,e.Yatcyrillic=1122,e.Ycircle=9422,e.Ycircumflex=374,e.Ydieresis=376,e.Ydieresissmall=63487,e.Ydotaccent=7822,e.Ydotbelow=7924,e.Yericyrillic=1067,e.Yerudieresiscyrillic=1272,e.Ygrave=7922,e.Yhook=435,e.Yhookabove=7926,e.Yiarmenian=1349,e.Yicyrillic=1031,e.Yiwnarmenian=1362,e.Ymonospace=65337,e.Ysmall=63353,e.Ytilde=7928,e.Yusbigcyrillic=1130,e.Yusbigiotifiedcyrillic=1132,e.Yuslittlecyrillic=1126,e.Yuslittleiotifiedcyrillic=1128,e.Z=90,e.Zaarmenian=1334,e.Zacute=377,e.Zcaron=381,e.Zcaronsmall=63231,e.Zcircle=9423,e.Zcircumflex=7824,e.Zdot=379,e.Zdotaccent=379,e.Zdotbelow=7826,e.Zecyrillic=1047,e.Zedescendercyrillic=1176,e.Zedieresiscyrillic=1246,e.Zeta=918,e.Zhearmenian=1338,e.Zhebrevecyrillic=1217,e.Zhecyrillic=1046,e.Zhedescendercyrillic=1174,e.Zhedieresiscyrillic=1244,e.Zlinebelow=7828,e.Zmonospace=65338,e.Zsmall=63354,e.Zstroke=437,e.a=97,e.aabengali=2438,e.aacute=225,e.aadeva=2310,e.aagujarati=2694,e.aagurmukhi=2566,e.aamatragurmukhi=2622,e.aarusquare=13059,e.aavowelsignbengali=2494,e.aavowelsigndeva=2366,e.aavowelsigngujarati=2750,e.abbreviationmarkarmenian=1375,e.abbreviationsigndeva=2416,e.abengali=2437,e.abopomofo=12570,e.abreve=259,e.abreveacute=7855,e.abrevecyrillic=1233,e.abrevedotbelow=7863,e.abrevegrave=7857,e.abrevehookabove=7859,e.abrevetilde=7861,e.acaron=462,e.acircle=9424,e.acircumflex=226,e.acircumflexacute=7845,e.acircumflexdotbelow=7853,e.acircumflexgrave=7847,e.acircumflexhookabove=7849,e.acircumflextilde=7851,e.acute=180,e.acutebelowcmb=791,e.acutecmb=769,e.acutecomb=769,e.acutedeva=2388,e.acutelowmod=719,e.acutetonecmb=833,e.acyrillic=1072,e.adblgrave=513,e.addakgurmukhi=2673,e.adeva=2309,e.adieresis=228,e.adieresiscyrillic=1235,e.adieresismacron=479,e.adotbelow=7841,e.adotmacron=481,e.ae=230,e.aeacute=509,e.aekorean=12624,e.aemacron=483,e.afii00208=8213,e.afii08941=8356,e.afii10017=1040,e.afii10018=1041,e.afii10019=1042,e.afii10020=1043,e.afii10021=1044,e.afii10022=1045,e.afii10023=1025,e.afii10024=1046,e.afii10025=1047,e.afii10026=1048,e.afii10027=1049,e.afii10028=1050,e.afii10029=1051,e.afii10030=1052;e.afii10031=1053,e.afii10032=1054,e.afii10033=1055,e.afii10034=1056,e.afii10035=1057,e.afii10036=1058,e.afii10037=1059,e.afii10038=1060,e.afii10039=1061,e.afii10040=1062,e.afii10041=1063,e.afii10042=1064,e.afii10043=1065,e.afii10044=1066,e.afii10045=1067,e.afii10046=1068,e.afii10047=1069,e.afii10048=1070,e.afii10049=1071,e.afii10050=1168,e.afii10051=1026,e.afii10052=1027,e.afii10053=1028,e.afii10054=1029,e.afii10055=1030,e.afii10056=1031,e.afii10057=1032,e.afii10058=1033,e.afii10059=1034,e.afii10060=1035,e.afii10061=1036,e.afii10062=1038,e.afii10063=63172,e.afii10064=63173,e.afii10065=1072,e.afii10066=1073,e.afii10067=1074,e.afii10068=1075,e.afii10069=1076,e.afii10070=1077,e.afii10071=1105,e.afii10072=1078,e.afii10073=1079,e.afii10074=1080,e.afii10075=1081,e.afii10076=1082,e.afii10077=1083,e.afii10078=1084,e.afii10079=1085,e.afii10080=1086,e.afii10081=1087,e.afii10082=1088,e.afii10083=1089,e.afii10084=1090,e.afii10085=1091,e.afii10086=1092,e.afii10087=1093,e.afii10088=1094,e.afii10089=1095,e.afii10090=1096,e.afii10091=1097,e.afii10092=1098,e.afii10093=1099,e.afii10094=1100,e.afii10095=1101,e.afii10096=1102,e.afii10097=1103,e.afii10098=1169,e.afii10099=1106,e.afii10100=1107,e.afii10101=1108,e.afii10102=1109,e.afii10103=1110,e.afii10104=1111,e.afii10105=1112,e.afii10106=1113,e.afii10107=1114,e.afii10108=1115,e.afii10109=1116,e.afii10110=1118,e.afii10145=1039,e.afii10146=1122,e.afii10147=1138,e.afii10148=1140,e.afii10192=63174,e.afii10193=1119,e.afii10194=1123,e.afii10195=1139,e.afii10196=1141,e.afii10831=63175,e.afii10832=63176,e.afii10846=1241,e.afii299=8206,e.afii300=8207,e.afii301=8205,e.afii57381=1642,e.afii57388=1548,e.afii57392=1632,e.afii57393=1633,e.afii57394=1634,e.afii57395=1635,e.afii57396=1636,e.afii57397=1637,e.afii57398=1638,e.afii57399=1639,e.afii57400=1640,e.afii57401=1641,e.afii57403=1563,e.afii57407=1567,e.afii57409=1569,e.afii57410=1570,e.afii57411=1571,e.afii57412=1572,e.afii57413=1573,e.afii57414=1574,e.afii57415=1575,e.afii57416=1576,e.afii57417=1577,e.afii57418=1578,e.afii57419=1579,e.afii57420=1580,e.afii57421=1581,e.afii57422=1582,e.afii57423=1583,e.afii57424=1584,e.afii57425=1585,e.afii57426=1586,e.afii57427=1587,e.afii57428=1588,e.afii57429=1589,e.afii57430=1590,e.afii57431=1591,e.afii57432=1592,e.afii57433=1593,e.afii57434=1594,e.afii57440=1600,e.afii57441=1601,e.afii57442=1602,e.afii57443=1603,e.afii57444=1604,e.afii57445=1605,e.afii57446=1606,e.afii57448=1608,e.afii57449=1609,e.afii57450=1610,e.afii57451=1611,e.afii57452=1612,e.afii57453=1613,e.afii57454=1614,e.afii57455=1615,e.afii57456=1616,e.afii57457=1617,e.afii57458=1618,e.afii57470=1607,e.afii57505=1700,e.afii57506=1662,e.afii57507=1670,e.afii57508=1688,e.afii57509=1711,e.afii57511=1657,e.afii57512=1672,e.afii57513=1681,e.afii57514=1722,e.afii57519=1746,e.afii57534=1749,e.afii57636=8362,e.afii57645=1470,e.afii57658=1475,e.afii57664=1488,e.afii57665=1489,e.afii57666=1490,e.afii57667=1491,e.afii57668=1492,e.afii57669=1493,e.afii57670=1494,e.afii57671=1495,e.afii57672=1496,e.afii57673=1497,e.afii57674=1498,e.afii57675=1499,e.afii57676=1500,e.afii57677=1501,e.afii57678=1502,e.afii57679=1503,e.afii57680=1504,e.afii57681=1505,e.afii57682=1506,e.afii57683=1507,e.afii57684=1508,e.afii57685=1509,e.afii57686=1510,e.afii57687=1511,e.afii57688=1512,e.afii57689=1513,e.afii57690=1514,e.afii57694=64298,e.afii57695=64299,e.afii57700=64331,e.afii57705=64287,e.afii57716=1520,e.afii57717=1521,e.afii57718=1522,e.afii57723=64309,e.afii57793=1460,e.afii57794=1461,e.afii57795=1462,e.afii57796=1467,e.afii57797=1464,e.afii57798=1463,e.afii57799=1456,e.afii57800=1458,e.afii57801=1457,e.afii57802=1459,e.afii57803=1474,e.afii57804=1473,e.afii57806=1465,e.afii57807=1468,e.afii57839=1469,e.afii57841=1471,e.afii57842=1472,e.afii57929=700,e.afii61248=8453,e.afii61289=8467,e.afii61352=8470,e.afii61573=8236,e.afii61574=8237,e.afii61575=8238,e.afii61664=8204,e.afii63167=1645,e.afii64937=701,e.agrave=224,e.agujarati=2693,e.agurmukhi=2565,e.ahiragana=12354,e.ahookabove=7843,e.aibengali=2448,e.aibopomofo=12574,e.aideva=2320,e.aiecyrillic=1237,e.aigujarati=2704,e.aigurmukhi=2576,e.aimatragurmukhi=2632,e.ainarabic=1593,e.ainfinalarabic=65226,e.aininitialarabic=65227,e.ainmedialarabic=65228,e.ainvertedbreve=515,e.aivowelsignbengali=2504,e.aivowelsigndeva=2376,e.aivowelsigngujarati=2760,e.akatakana=12450,e.akatakanahalfwidth=65393,e.akorean=12623,e.alef=1488,e.alefarabic=1575,e.alefdageshhebrew=64304,e.aleffinalarabic=65166,e.alefhamzaabovearabic=1571,e.alefhamzaabovefinalarabic=65156,e.alefhamzabelowarabic=1573,e.alefhamzabelowfinalarabic=65160,e.alefhebrew=1488,e.aleflamedhebrew=64335,e.alefmaddaabovearabic=1570,e.alefmaddaabovefinalarabic=65154,e.alefmaksuraarabic=1609,e.alefmaksurafinalarabic=65264,e.alefmaksurainitialarabic=65267,e.alefmaksuramedialarabic=65268,e.alefpatahhebrew=64302,e.alefqamatshebrew=64303,e.aleph=8501,e.allequal=8780,e.alpha=945,e.alphatonos=940,e.amacron=257,e.amonospace=65345,e.ampersand=38,e.ampersandmonospace=65286,e.ampersandsmall=63270,e.amsquare=13250,e.anbopomofo=12578,e.angbopomofo=12580,e.angbracketleft=12296,e.angbracketright=12297,e.angkhankhuthai=3674,e.angle=8736,e.anglebracketleft=12296,e.anglebracketleftvertical=65087,e.anglebracketright=12297,e.anglebracketrightvertical=65088,e.angleleft=9001,e.angleright=9002,e.angstrom=8491,e.anoteleia=903,e.anudattadeva=2386,e.anusvarabengali=2434,e.anusvaradeva=2306,e.anusvaragujarati=2690,e.aogonek=261,e.apaatosquare=13056,e.aparen=9372,e.apostrophearmenian=1370,e.apostrophemod=700,e.apple=63743,e.approaches=8784,e.approxequal=8776,e.approxequalorimage=8786,e.approximatelyequal=8773,e.araeaekorean=12686,e.araeakorean=12685,e.arc=8978,e.arighthalfring=7834,e.aring=229,e.aringacute=507,e.aringbelow=7681,e.arrowboth=8596,e.arrowdashdown=8675,e.arrowdashleft=8672,e.arrowdashright=8674,e.arrowdashup=8673,e.arrowdblboth=8660,e.arrowdbldown=8659,e.arrowdblleft=8656,e.arrowdblright=8658,e.arrowdblup=8657,e.arrowdown=8595,e.arrowdownleft=8601,e.arrowdownright=8600,e.arrowdownwhite=8681,e.arrowheaddownmod=709,e.arrowheadleftmod=706,e.arrowheadrightmod=707,e.arrowheadupmod=708,e.arrowhorizex=63719,e.arrowleft=8592,e.arrowleftdbl=8656,e.arrowleftdblstroke=8653,e.arrowleftoverright=8646,e.arrowleftwhite=8678,e.arrowright=8594,e.arrowrightdblstroke=8655,e.arrowrightheavy=10142,e.arrowrightoverleft=8644,e.arrowrightwhite=8680,e.arrowtableft=8676,e.arrowtabright=8677,e.arrowup=8593,e.arrowupdn=8597,e.arrowupdnbse=8616,e.arrowupdownbase=8616,e.arrowupleft=8598,e.arrowupleftofdown=8645,e.arrowupright=8599,e.arrowupwhite=8679,e.arrowvertex=63718,e.asciicircum=94,e.asciicircummonospace=65342,e.asciitilde=126,e.asciitildemonospace=65374,e.ascript=593,e.ascriptturned=594,e.asmallhiragana=12353,e.asmallkatakana=12449,e.asmallkatakanahalfwidth=65383,e.asterisk=42,e.asteriskaltonearabic=1645,e.asteriskarabic=1645,e.asteriskmath=8727,e.asteriskmonospace=65290,e.asterisksmall=65121,e.asterism=8258,e.asuperior=63209,e.asymptoticallyequal=8771,e.at=64,e.atilde=227,e.atmonospace=65312,e.atsmall=65131,e.aturned=592,e.aubengali=2452,e.aubopomofo=12576,e.audeva=2324,e.augujarati=2708,e.augurmukhi=2580,e.aulengthmarkbengali=2519,e.aumatragurmukhi=2636,e.auvowelsignbengali=2508,e.auvowelsigndeva=2380,e.auvowelsigngujarati=2764,e.avagrahadeva=2365,e.aybarmenian=1377,e.ayin=1506,e.ayinaltonehebrew=64288,e.ayinhebrew=1506,e.b=98,e.babengali=2476,e.backslash=92,e.backslashmonospace=65340,e.badeva=2348,e.bagujarati=2732,e.bagurmukhi=2604,e.bahiragana=12400,e.bahtthai=3647,e.bakatakana=12496,e.bar=124,e.barmonospace=65372,e.bbopomofo=12549,e.bcircle=9425,e.bdotaccent=7683,e.bdotbelow=7685,e.beamedsixteenthnotes=9836,e.because=8757,e.becyrillic=1073,e.beharabic=1576,e.behfinalarabic=65168,e.behinitialarabic=65169,e.behiragana=12409,e.behmedialarabic=65170,e.behmeeminitialarabic=64671,e.behmeemisolatedarabic=64520,e.behnoonfinalarabic=64621,e.bekatakana=12505,e.benarmenian=1378,e.bet=1489,e.beta=946,e.betasymbolgreek=976,e.betdagesh=64305,e.betdageshhebrew=64305,e.bethebrew=1489,e.betrafehebrew=64332,e.bhabengali=2477,e.bhadeva=2349,e.bhagujarati=2733,e.bhagurmukhi=2605,e.bhook=595,e.bihiragana=12403,e.bikatakana=12499,e.bilabialclick=664,e.bindigurmukhi=2562,e.birusquare=13105,e.blackcircle=9679,e.blackdiamond=9670,e.blackdownpointingtriangle=9660,e.blackleftpointingpointer=9668,e.blackleftpointingtriangle=9664,e.blacklenticularbracketleft=12304,e.blacklenticularbracketleftvertical=65083,e.blacklenticularbracketright=12305,e.blacklenticularbracketrightvertical=65084,e.blacklowerlefttriangle=9699,e.blacklowerrighttriangle=9698,e.blackrectangle=9644,e.blackrightpointingpointer=9658,e.blackrightpointingtriangle=9654,e.blacksmallsquare=9642,e.blacksmilingface=9787,e.blacksquare=9632,e.blackstar=9733,e.blackupperlefttriangle=9700,e.blackupperrighttriangle=9701,e.blackuppointingsmalltriangle=9652,e.blackuppointingtriangle=9650,e.blank=9251,e.blinebelow=7687,e.block=9608,e.bmonospace=65346,e.bobaimaithai=3610,e.bohiragana=12412,e.bokatakana=12508,e.bparen=9373,e.bqsquare=13251,e.braceex=63732,e.braceleft=123,e.braceleftbt=63731,e.braceleftmid=63730,e.braceleftmonospace=65371,e.braceleftsmall=65115,e.bracelefttp=63729,e.braceleftvertical=65079,e.braceright=125,e.bracerightbt=63742,e.bracerightmid=63741,e.bracerightmonospace=65373,e.bracerightsmall=65116,e.bracerighttp=63740,e.bracerightvertical=65080,e.bracketleft=91,e.bracketleftbt=63728,e.bracketleftex=63727,e.bracketleftmonospace=65339,e.bracketlefttp=63726,e.bracketright=93,e.bracketrightbt=63739,e.bracketrightex=63738,e.bracketrightmonospace=65341,e.bracketrighttp=63737,e.breve=728,e.brevebelowcmb=814,e.brevecmb=774,e.breveinvertedbelowcmb=815,e.breveinvertedcmb=785,e.breveinverteddoublecmb=865,e.bridgebelowcmb=810,e.bridgeinvertedbelowcmb=826,e.brokenbar=166,e.bstroke=384,e.bsuperior=63210,e.btopbar=387,e.buhiragana=12406,e.bukatakana=12502,e.bullet=8226,e.bulletinverse=9688,e.bulletoperator=8729,e.bullseye=9678,e.c=99,e.caarmenian=1390,e.cabengali=2458,e.cacute=263,e.cadeva=2330,e.cagujarati=2714,e.cagurmukhi=2586,e.calsquare=13192,e.candrabindubengali=2433,e.candrabinducmb=784,e.candrabindudeva=2305,e.candrabindugujarati=2689,e.capslock=8682,e.careof=8453,e.caron=711,e.caronbelowcmb=812,e.caroncmb=780,e.carriagereturn=8629,e.cbopomofo=12568,e.ccaron=269,e.ccedilla=231,e.ccedillaacute=7689,e.ccircle=9426,e.ccircumflex=265,e.ccurl=597,e.cdot=267,e.cdotaccent=267,e.cdsquare=13253,e.cedilla=184,e.cedillacmb=807,e.cent=162,e.centigrade=8451,e.centinferior=63199,e.centmonospace=65504,e.centoldstyle=63394,e.centsuperior=63200,e.chaarmenian=1401,e.chabengali=2459,e.chadeva=2331,e.chagujarati=2715,e.chagurmukhi=2587,e.chbopomofo=12564,e.cheabkhasiancyrillic=1213,e.checkmark=10003,e.checyrillic=1095,e.chedescenderabkhasiancyrillic=1215,e.chedescendercyrillic=1207,e.chedieresiscyrillic=1269,e.cheharmenian=1395,e.chekhakassiancyrillic=1228,e.cheverticalstrokecyrillic=1209,e.chi=967,e.chieuchacirclekorean=12919,e.chieuchaparenkorean=12823,e.chieuchcirclekorean=12905,e.chieuchkorean=12618,e.chieuchparenkorean=12809,e.chochangthai=3594,e.chochanthai=3592,e.chochingthai=3593,e.chochoethai=3596,e.chook=392,e.cieucacirclekorean=12918,e.cieucaparenkorean=12822,e.cieuccirclekorean=12904,e.cieuckorean=12616,e.cieucparenkorean=12808,e.cieucuparenkorean=12828,e.circle=9675,e.circlecopyrt=169,e.circlemultiply=8855,e.circleot=8857,e.circleplus=8853,e.circlepostalmark=12342,e.circlewithlefthalfblack=9680,e.circlewithrighthalfblack=9681,e.circumflex=710,e.circumflexbelowcmb=813,e.circumflexcmb=770,e.clear=8999,e.clickalveolar=450,e.clickdental=448,e.clicklateral=449,e.clickretroflex=451,e.club=9827,e.clubsuitblack=9827,e.clubsuitwhite=9831,e.cmcubedsquare=13220,e.cmonospace=65347,e.cmsquaredsquare=13216,e.coarmenian=1409,e.colon=58,e.colonmonetary=8353,e.colonmonospace=65306,e.colonsign=8353,e.colonsmall=65109,e.colontriangularhalfmod=721,e.colontriangularmod=720,e.comma=44,e.commaabovecmb=787,e.commaaboverightcmb=789,e.commaaccent=63171,e.commaarabic=1548,e.commaarmenian=1373,e.commainferior=63201,e.commamonospace=65292,e.commareversedabovecmb=788,e.commareversedmod=701,e.commasmall=65104,e.commasuperior=63202,e.commaturnedabovecmb=786,e.commaturnedmod=699,e.compass=9788,e.congruent=8773,e.contourintegral=8750,e.control=8963,e.controlACK=6,e.controlBEL=7,e.controlBS=8,e.controlCAN=24,e.controlCR=13,e.controlDC1=17,e.controlDC2=18,e.controlDC3=19,e.controlDC4=20,e.controlDEL=127,e.controlDLE=16,e.controlEM=25,e.controlENQ=5,e.controlEOT=4,e.controlESC=27,e.controlETB=23,e.controlETX=3,e.controlFF=12,e.controlFS=28,e.controlGS=29,e.controlHT=9,e.controlLF=10,e.controlNAK=21,e.controlNULL=0,e.controlRS=30,e.controlSI=15,e.controlSO=14,e.controlSOT=2,e.controlSTX=1,e.controlSUB=26,e.controlSYN=22,e.controlUS=31,e.controlVT=11,e.copyright=169,e.copyrightsans=63721,e.copyrightserif=63193,e.cornerbracketleft=12300,e.cornerbracketlefthalfwidth=65378,e.cornerbracketleftvertical=65089,e.cornerbracketright=12301,e.cornerbracketrighthalfwidth=65379,e.cornerbracketrightvertical=65090,e.corporationsquare=13183,e.cosquare=13255,e.coverkgsquare=13254,e.cparen=9374,e.cruzeiro=8354,e.cstretched=663,e.curlyand=8911,e.curlyor=8910,e.currency=164,e.cyrBreve=63185,e.cyrFlex=63186,e.cyrbreve=63188,e.cyrflex=63189,e.d=100,e.daarmenian=1380,e.dabengali=2470,e.dadarabic=1590,e.dadeva=2342,e.dadfinalarabic=65214,e.dadinitialarabic=65215,e.dadmedialarabic=65216,e.dagesh=1468,e.dageshhebrew=1468,e.dagger=8224,e.daggerdbl=8225,e.dagujarati=2726,e.dagurmukhi=2598,e.dahiragana=12384,e.dakatakana=12480,e.dalarabic=1583,e.dalet=1491,e.daletdagesh=64307,e.daletdageshhebrew=64307,e.dalethebrew=1491,e.dalfinalarabic=65194,e.dammaarabic=1615,e.dammalowarabic=1615,e.dammatanaltonearabic=1612,e.dammatanarabic=1612,e.danda=2404,e.dargahebrew=1447,e.dargalefthebrew=1447,e.dasiapneumatacyrilliccmb=1157,e.dblGrave=63187,e.dblanglebracketleft=12298,e.dblanglebracketleftvertical=65085,e.dblanglebracketright=12299,e.dblanglebracketrightvertical=65086,e.dblarchinvertedbelowcmb=811,e.dblarrowleft=8660,e.dblarrowright=8658,e.dbldanda=2405,e.dblgrave=63190,e.dblgravecmb=783,e.dblintegral=8748,e.dbllowline=8215,e.dbllowlinecmb=819,e.dbloverlinecmb=831,e.dblprimemod=698,e.dblverticalbar=8214,e.dblverticallineabovecmb=782,e.dbopomofo=12553,e.dbsquare=13256,e.dcaron=271,e.dcedilla=7697,e.dcircle=9427,e.dcircumflexbelow=7699,e.dcroat=273,e.ddabengali=2465,e.ddadeva=2337,e.ddagujarati=2721,e.ddagurmukhi=2593,e.ddalarabic=1672,e.ddalfinalarabic=64393,e.dddhadeva=2396,e.ddhabengali=2466,e.ddhadeva=2338,e.ddhagujarati=2722,e.ddhagurmukhi=2594,e.ddotaccent=7691,e.ddotbelow=7693,e.decimalseparatorarabic=1643,e.decimalseparatorpersian=1643,e.decyrillic=1076,e.degree=176,e.dehihebrew=1453,e.dehiragana=12391,e.deicoptic=1007,e.dekatakana=12487,e.deleteleft=9003,e.deleteright=8998,e.delta=948,e.deltaturned=397,e.denominatorminusonenumeratorbengali=2552,e.dezh=676,e.dhabengali=2471,e.dhadeva=2343,e.dhagujarati=2727,e.dhagurmukhi=2599,e.dhook=599,e.dialytikatonos=901,e.dialytikatonoscmb=836,e.diamond=9830,e.diamondsuitwhite=9826,e.dieresis=168,e.dieresisacute=63191,e.dieresisbelowcmb=804,e.dieresiscmb=776,e.dieresisgrave=63192,e.dieresistonos=901,e.dihiragana=12386,e.dikatakana=12482,e.dittomark=12291,e.divide=247,e.divides=8739,e.divisionslash=8725,e.djecyrillic=1106,e.dkshade=9619,e.dlinebelow=7695,e.dlsquare=13207,e.dmacron=273,e.dmonospace=65348,e.dnblock=9604,e.dochadathai=3598,e.dodekthai=3604,e.dohiragana=12393,e.dokatakana=12489,e.dollar=36;e.dollarinferior=63203,e.dollarmonospace=65284,e.dollaroldstyle=63268,e.dollarsmall=65129,e.dollarsuperior=63204,e.dong=8363,e.dorusquare=13094,e.dotaccent=729,e.dotaccentcmb=775,e.dotbelowcmb=803,e.dotbelowcomb=803,e.dotkatakana=12539,e.dotlessi=305,e.dotlessj=63166,e.dotlessjstrokehook=644,e.dotmath=8901,e.dottedcircle=9676,e.doubleyodpatah=64287,e.doubleyodpatahhebrew=64287,e.downtackbelowcmb=798,e.downtackmod=725,e.dparen=9375,e.dsuperior=63211,e.dtail=598,e.dtopbar=396,e.duhiragana=12389,e.dukatakana=12485,e.dz=499,e.dzaltone=675,e.dzcaron=454,e.dzcurl=677,e.dzeabkhasiancyrillic=1249,e.dzecyrillic=1109,e.dzhecyrillic=1119,e.e=101,e.eacute=233,e.earth=9793,e.ebengali=2447,e.ebopomofo=12572,e.ebreve=277,e.ecandradeva=2317,e.ecandragujarati=2701,e.ecandravowelsigndeva=2373,e.ecandravowelsigngujarati=2757,e.ecaron=283,e.ecedillabreve=7709,e.echarmenian=1381,e.echyiwnarmenian=1415,e.ecircle=9428,e.ecircumflex=234,e.ecircumflexacute=7871,e.ecircumflexbelow=7705,e.ecircumflexdotbelow=7879,e.ecircumflexgrave=7873,e.ecircumflexhookabove=7875,e.ecircumflextilde=7877,e.ecyrillic=1108,e.edblgrave=517,e.edeva=2319,e.edieresis=235,e.edot=279,e.edotaccent=279,e.edotbelow=7865,e.eegurmukhi=2575,e.eematragurmukhi=2631,e.efcyrillic=1092,e.egrave=232,e.egujarati=2703,e.eharmenian=1383,e.ehbopomofo=12573,e.ehiragana=12360,e.ehookabove=7867,e.eibopomofo=12575,e.eight=56,e.eightarabic=1640,e.eightbengali=2542,e.eightcircle=9319,e.eightcircleinversesansserif=10129,e.eightdeva=2414,e.eighteencircle=9329,e.eighteenparen=9349,e.eighteenperiod=9369,e.eightgujarati=2798,e.eightgurmukhi=2670,e.eighthackarabic=1640,e.eighthangzhou=12328,e.eighthnotebeamed=9835,e.eightideographicparen=12839,e.eightinferior=8328,e.eightmonospace=65304,e.eightoldstyle=63288,e.eightparen=9339,e.eightperiod=9359,e.eightpersian=1784,e.eightroman=8567,e.eightsuperior=8312,e.eightthai=3672,e.einvertedbreve=519,e.eiotifiedcyrillic=1125,e.ekatakana=12456,e.ekatakanahalfwidth=65396,e.ekonkargurmukhi=2676,e.ekorean=12628,e.elcyrillic=1083,e.element=8712,e.elevencircle=9322,e.elevenparen=9342,e.elevenperiod=9362,e.elevenroman=8570,e.ellipsis=8230,e.ellipsisvertical=8942,e.emacron=275,e.emacronacute=7703,e.emacrongrave=7701,e.emcyrillic=1084,e.emdash=8212,e.emdashvertical=65073,e.emonospace=65349,e.emphasismarkarmenian=1371,e.emptyset=8709,e.enbopomofo=12579,e.encyrillic=1085,e.endash=8211,e.endashvertical=65074,e.endescendercyrillic=1187,e.eng=331,e.engbopomofo=12581,e.enghecyrillic=1189,e.enhookcyrillic=1224,e.enspace=8194,e.eogonek=281,e.eokorean=12627,e.eopen=603,e.eopenclosed=666,e.eopenreversed=604,e.eopenreversedclosed=606,e.eopenreversedhook=605,e.eparen=9376,e.epsilon=949,e.epsilontonos=941,e.equal=61,e.equalmonospace=65309,e.equalsmall=65126,e.equalsuperior=8316,e.equivalence=8801,e.erbopomofo=12582,e.ercyrillic=1088,e.ereversed=600,e.ereversedcyrillic=1101,e.escyrillic=1089,e.esdescendercyrillic=1195,e.esh=643,e.eshcurl=646,e.eshortdeva=2318,e.eshortvowelsigndeva=2374,e.eshreversedloop=426,e.eshsquatreversed=645,e.esmallhiragana=12359,e.esmallkatakana=12455,e.esmallkatakanahalfwidth=65386,e.estimated=8494,e.esuperior=63212,e.eta=951,e.etarmenian=1384,e.etatonos=942,e.eth=240,e.etilde=7869,e.etildebelow=7707,e.etnahtafoukhhebrew=1425,e.etnahtafoukhlefthebrew=1425,e.etnahtahebrew=1425,e.etnahtalefthebrew=1425,e.eturned=477,e.eukorean=12641,e.euro=8364,e.evowelsignbengali=2503,e.evowelsigndeva=2375,e.evowelsigngujarati=2759,e.exclam=33,e.exclamarmenian=1372,e.exclamdbl=8252,e.exclamdown=161,e.exclamdownsmall=63393,e.exclammonospace=65281,e.exclamsmall=63265,e.existential=8707,e.ezh=658,e.ezhcaron=495,e.ezhcurl=659,e.ezhreversed=441,e.ezhtail=442,e.f=102,e.fadeva=2398,e.fagurmukhi=2654,e.fahrenheit=8457,e.fathaarabic=1614,e.fathalowarabic=1614,e.fathatanarabic=1611,e.fbopomofo=12552,e.fcircle=9429,e.fdotaccent=7711,e.feharabic=1601,e.feharmenian=1414,e.fehfinalarabic=65234,e.fehinitialarabic=65235,e.fehmedialarabic=65236,e.feicoptic=997,e.female=9792,e.ff=64256,e.f_f=64256,e.ffi=64259,e.ffl=64260,e.fi=64257,e.fifteencircle=9326,e.fifteenparen=9346,e.fifteenperiod=9366,e.figuredash=8210,e.filledbox=9632,e.filledrect=9644,e.finalkaf=1498,e.finalkafdagesh=64314,e.finalkafdageshhebrew=64314,e.finalkafhebrew=1498,e.finalmem=1501,e.finalmemhebrew=1501,e.finalnun=1503,e.finalnunhebrew=1503,e.finalpe=1507,e.finalpehebrew=1507,e.finaltsadi=1509,e.finaltsadihebrew=1509,e.firsttonechinese=713,e.fisheye=9673,e.fitacyrillic=1139,e.five=53,e.fivearabic=1637,e.fivebengali=2539,e.fivecircle=9316,e.fivecircleinversesansserif=10126,e.fivedeva=2411,e.fiveeighths=8541,e.fivegujarati=2795,e.fivegurmukhi=2667,e.fivehackarabic=1637,e.fivehangzhou=12325,e.fiveideographicparen=12836,e.fiveinferior=8325,e.fivemonospace=65301,e.fiveoldstyle=63285,e.fiveparen=9336,e.fiveperiod=9356,e.fivepersian=1781,e.fiveroman=8564,e.fivesuperior=8309,e.fivethai=3669,e.fl=64258,e.florin=402,e.fmonospace=65350,e.fmsquare=13209,e.fofanthai=3615,e.fofathai=3613,e.fongmanthai=3663,e.forall=8704,e.four=52,e.fourarabic=1636,e.fourbengali=2538,e.fourcircle=9315,e.fourcircleinversesansserif=10125,e.fourdeva=2410,e.fourgujarati=2794,e.fourgurmukhi=2666,e.fourhackarabic=1636,e.fourhangzhou=12324,e.fourideographicparen=12835,e.fourinferior=8324,e.fourmonospace=65300,e.fournumeratorbengali=2551,e.fouroldstyle=63284,e.fourparen=9335,e.fourperiod=9355,e.fourpersian=1780,e.fourroman=8563,e.foursuperior=8308,e.fourteencircle=9325,e.fourteenparen=9345,e.fourteenperiod=9365,e.fourthai=3668,e.fourthtonechinese=715,e.fparen=9377,e.fraction=8260,e.franc=8355,e.g=103,e.gabengali=2455,e.gacute=501,e.gadeva=2327,e.gafarabic=1711,e.gaffinalarabic=64403,e.gafinitialarabic=64404,e.gafmedialarabic=64405,e.gagujarati=2711,e.gagurmukhi=2583,e.gahiragana=12364,e.gakatakana=12460,e.gamma=947,e.gammalatinsmall=611,e.gammasuperior=736,e.gangiacoptic=1003,e.gbopomofo=12557,e.gbreve=287,e.gcaron=487,e.gcedilla=291,e.gcircle=9430,e.gcircumflex=285,e.gcommaaccent=291,e.gdot=289,e.gdotaccent=289,e.gecyrillic=1075,e.gehiragana=12370,e.gekatakana=12466,e.geometricallyequal=8785,e.gereshaccenthebrew=1436,e.gereshhebrew=1523,e.gereshmuqdamhebrew=1437,e.germandbls=223,e.gershayimaccenthebrew=1438,e.gershayimhebrew=1524,e.getamark=12307,e.ghabengali=2456,e.ghadarmenian=1394,e.ghadeva=2328,e.ghagujarati=2712,e.ghagurmukhi=2584,e.ghainarabic=1594,e.ghainfinalarabic=65230,e.ghaininitialarabic=65231,e.ghainmedialarabic=65232,e.ghemiddlehookcyrillic=1173,e.ghestrokecyrillic=1171,e.gheupturncyrillic=1169,e.ghhadeva=2394,e.ghhagurmukhi=2650,e.ghook=608,e.ghzsquare=13203,e.gihiragana=12366,e.gikatakana=12462,e.gimarmenian=1379,e.gimel=1490,e.gimeldagesh=64306,e.gimeldageshhebrew=64306,e.gimelhebrew=1490,e.gjecyrillic=1107,e.glottalinvertedstroke=446,e.glottalstop=660,e.glottalstopinverted=662,e.glottalstopmod=704,e.glottalstopreversed=661,e.glottalstopreversedmod=705,e.glottalstopreversedsuperior=740,e.glottalstopstroke=673,e.glottalstopstrokereversed=674,e.gmacron=7713,e.gmonospace=65351,e.gohiragana=12372,e.gokatakana=12468,e.gparen=9378,e.gpasquare=13228,e.gradient=8711,e.grave=96,e.gravebelowcmb=790,e.gravecmb=768,e.gravecomb=768,e.gravedeva=2387,e.gravelowmod=718,e.gravemonospace=65344,e.gravetonecmb=832,e.greater=62,e.greaterequal=8805,e.greaterequalorless=8923,e.greatermonospace=65310,e.greaterorequivalent=8819,e.greaterorless=8823,e.greateroverequal=8807,e.greatersmall=65125,e.gscript=609,e.gstroke=485,e.guhiragana=12368,e.guillemotleft=171,e.guillemotright=187,e.guilsinglleft=8249,e.guilsinglright=8250,e.gukatakana=12464,e.guramusquare=13080,e.gysquare=13257,e.h=104,e.haabkhasiancyrillic=1193,e.haaltonearabic=1729,e.habengali=2489,e.hadescendercyrillic=1203,e.hadeva=2361,e.hagujarati=2745,e.hagurmukhi=2617,e.haharabic=1581,e.hahfinalarabic=65186,e.hahinitialarabic=65187,e.hahiragana=12399,e.hahmedialarabic=65188,e.haitusquare=13098,e.hakatakana=12495,e.hakatakanahalfwidth=65418,e.halantgurmukhi=2637,e.hamzaarabic=1569,e.hamzalowarabic=1569,e.hangulfiller=12644,e.hardsigncyrillic=1098,e.harpoonleftbarbup=8636,e.harpoonrightbarbup=8640,e.hasquare=13258,e.hatafpatah=1458,e.hatafpatah16=1458,e.hatafpatah23=1458,e.hatafpatah2f=1458,e.hatafpatahhebrew=1458,e.hatafpatahnarrowhebrew=1458,e.hatafpatahquarterhebrew=1458,e.hatafpatahwidehebrew=1458,e.hatafqamats=1459,e.hatafqamats1b=1459,e.hatafqamats28=1459,e.hatafqamats34=1459,e.hatafqamatshebrew=1459,e.hatafqamatsnarrowhebrew=1459,e.hatafqamatsquarterhebrew=1459,e.hatafqamatswidehebrew=1459,e.hatafsegol=1457,e.hatafsegol17=1457,e.hatafsegol24=1457,e.hatafsegol30=1457,e.hatafsegolhebrew=1457,e.hatafsegolnarrowhebrew=1457,e.hatafsegolquarterhebrew=1457,e.hatafsegolwidehebrew=1457,e.hbar=295,e.hbopomofo=12559,e.hbrevebelow=7723,e.hcedilla=7721,e.hcircle=9431,e.hcircumflex=293,e.hdieresis=7719,e.hdotaccent=7715,e.hdotbelow=7717,e.he=1492,e.heart=9829,e.heartsuitblack=9829,e.heartsuitwhite=9825,e.hedagesh=64308,e.hedageshhebrew=64308,e.hehaltonearabic=1729,e.heharabic=1607,e.hehebrew=1492,e.hehfinalaltonearabic=64423,e.hehfinalalttwoarabic=65258,e.hehfinalarabic=65258,e.hehhamzaabovefinalarabic=64421,e.hehhamzaaboveisolatedarabic=64420,e.hehinitialaltonearabic=64424,e.hehinitialarabic=65259,e.hehiragana=12408,e.hehmedialaltonearabic=64425,e.hehmedialarabic=65260,e.heiseierasquare=13179,e.hekatakana=12504,e.hekatakanahalfwidth=65421,e.hekutaarusquare=13110,e.henghook=615,e.herutusquare=13113,e.het=1495,e.hethebrew=1495,e.hhook=614,e.hhooksuperior=689,e.hieuhacirclekorean=12923,e.hieuhaparenkorean=12827,e.hieuhcirclekorean=12909,e.hieuhkorean=12622,e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830,e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107,e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380,e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288,e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615,e.ieungparenkorean=12807,e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356,e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733,e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuperior=63213,e.iterationhiragana=12445,e.iterationkatakana=12541,e.itilde=297,e.itildebelow=7725,e.iubopomofo=12585,e.iucyrillic=1102,e.ivowelsignbengali=2495,e.ivowelsigndeva=2367,e.ivowelsigngujarati=2751,e.izhitsacyrillic=1141,e.izhitsadblgravecyrillic=1143,e.j=106,e.jaarmenian=1393,e.jabengali=2460,e.jadeva=2332,e.jagujarati=2716,e.jagurmukhi=2588,e.jbopomofo=12560,e.jcaron=496,e.jcircle=9433,e.jcircumflex=309,e.jcrossedtail=669,e.jdotlessstroke=607,e.jecyrillic=1112,e.jeemarabic=1580,e.jeemfinalarabic=65182,e.jeeminitialarabic=65183,e.jeemmedialarabic=65184,e.jeharabic=1688,e.jehfinalarabic=64395,e.jhabengali=2461,e.jhadeva=2333,e.jhagujarati=2717,e.jhagurmukhi=2589,e.jheharmenian=1403,e.jis=12292,e.jmonospace=65354,e.jparen=9381,e.jsuperior=690,e.k=107,e.kabashkircyrillic=1185,e.kabengali=2453,e.kacute=7729,e.kacyrillic=1082,e.kadescendercyrillic=1179,e.kadeva=2325,e.kaf=1499,e.kafarabic=1603,e.kafdagesh=64315,e.kafdageshhebrew=64315,e.kaffinalarabic=65242,e.kafhebrew=1499,e.kafinitialarabic=65243,e.kafmedialarabic=65244,e.kafrafehebrew=64333,e.kagujarati=2709,e.kagurmukhi=2581,e.kahiragana=12363,e.kahookcyrillic=1220,e.kakatakana=12459,e.kakatakanahalfwidth=65398,e.kappa=954,e.kappasymbolgreek=1008,e.kapyeounmieumkorean=12657,e.kapyeounphieuphkorean=12676,e.kapyeounpieupkorean=12664,e.kapyeounssangpieupkorean=12665,e.karoriisquare=13069,e.kashidaautoarabic=1600,e.kashidaautonosidebearingarabic=1600,e.kasmallkatakana=12533,e.kasquare=13188,e.kasraarabic=1616,e.kasratanarabic=1613,e.kastrokecyrillic=1183,e.katahiraprolongmarkhalfwidth=65392,e.kaverticalstrokecyrillic=1181,e.kbopomofo=12558,e.kcalsquare=13193,e.kcaron=489,e.kcedilla=311,e.kcircle=9434,e.kcommaaccent=311,e.kdotbelow=7731,e.keharmenian=1412,e.kehiragana=12369,e.kekatakana=12465,e.kekatakanahalfwidth=65401,e.kenarmenian=1391,e.kesmallkatakana=12534,e.kgreenlandic=312,e.khabengali=2454,e.khacyrillic=1093,e.khadeva=2326,e.khagujarati=2710,e.khagurmukhi=2582,e.khaharabic=1582,e.khahfinalarabic=65190,e.khahinitialarabic=65191,e.khahmedialarabic=65192,e.kheicoptic=999,e.khhadeva=2393,e.khhagurmukhi=2649,e.khieukhacirclekorean=12920,e.khieukhaparenkorean=12824,e.khieukhcirclekorean=12906,e.khieukhkorean=12619,e.khieukhparenkorean=12810,e.khokhaithai=3586,e.khokhonthai=3589,e.khokhuatthai=3587,e.khokhwaithai=3588,e.khomutthai=3675,e.khook=409,e.khorakhangthai=3590,e.khzsquare=13201,e.kihiragana=12365,e.kikatakana=12461,e.kikatakanahalfwidth=65399,e.kiroguramusquare=13077,e.kiromeetorusquare=13078,e.kirosquare=13076,e.kiyeokacirclekorean=12910,e.kiyeokaparenkorean=12814,e.kiyeokcirclekorean=12896,e.kiyeokkorean=12593,e.kiyeokparenkorean=12800,e.kiyeoksioskorean=12595,e.kjecyrillic=1116,e.klinebelow=7733,e.klsquare=13208,e.kmcubedsquare=13222;e.kmonospace=65355,e.kmsquaredsquare=13218,e.kohiragana=12371,e.kohmsquare=13248,e.kokaithai=3585,e.kokatakana=12467,e.kokatakanahalfwidth=65402,e.kooposquare=13086,e.koppacyrillic=1153,e.koreanstandardsymbol=12927,e.koroniscmb=835,e.kparen=9382,e.kpasquare=13226,e.ksicyrillic=1135,e.ktsquare=13263,e.kturned=670,e.kuhiragana=12367,e.kukatakana=12463,e.kukatakanahalfwidth=65400,e.kvsquare=13240,e.kwsquare=13246,e.l=108,e.labengali=2482,e.lacute=314,e.ladeva=2354,e.lagujarati=2738,e.lagurmukhi=2610,e.lakkhangyaothai=3653,e.lamaleffinalarabic=65276,e.lamalefhamzaabovefinalarabic=65272,e.lamalefhamzaaboveisolatedarabic=65271,e.lamalefhamzabelowfinalarabic=65274,e.lamalefhamzabelowisolatedarabic=65273,e.lamalefisolatedarabic=65275,e.lamalefmaddaabovefinalarabic=65270,e.lamalefmaddaaboveisolatedarabic=65269,e.lamarabic=1604,e.lambda=955,e.lambdastroke=411,e.lamed=1500,e.lameddagesh=64316,e.lameddageshhebrew=64316,e.lamedhebrew=1500,e.lamfinalarabic=65246,e.lamhahinitialarabic=64714,e.laminitialarabic=65247,e.lamjeeminitialarabic=64713,e.lamkhahinitialarabic=64715,e.lamlamhehisolatedarabic=65010,e.lammedialarabic=65248,e.lammeemhahinitialarabic=64904,e.lammeeminitialarabic=64716,e.largecircle=9711,e.lbar=410,e.lbelt=620,e.lbopomofo=12556,e.lcaron=318,e.lcedilla=316,e.lcircle=9435,e.lcircumflexbelow=7741,e.lcommaaccent=316,e.ldot=320,e.ldotaccent=320,e.ldotbelow=7735,e.ldotbelowmacron=7737,e.leftangleabovecmb=794,e.lefttackbelowcmb=792,e.less=60,e.lessequal=8804,e.lessequalorgreater=8922,e.lessmonospace=65308,e.lessorequivalent=8818,e.lessorgreater=8822,e.lessoverequal=8806,e.lesssmall=65124,e.lezh=622,e.lfblock=9612,e.lhookretroflex=621,e.lira=8356,e.liwnarmenian=1388,e.lj=457,e.ljecyrillic=1113,e.ll=63168,e.lladeva=2355,e.llagujarati=2739,e.llinebelow=7739,e.llladeva=2356,e.llvocalicbengali=2529,e.llvocalicdeva=2401,e.llvocalicvowelsignbengali=2531,e.llvocalicvowelsigndeva=2403,e.lmiddletilde=619,e.lmonospace=65356,e.lmsquare=13264,e.lochulathai=3628,e.logicaland=8743,e.logicalnot=172,e.logicalnotreversed=8976,e.logicalor=8744,e.lolingthai=3621,e.longs=383,e.lowlinecenterline=65102,e.lowlinecmb=818,e.lowlinedashed=65101,e.lozenge=9674,e.lparen=9383,e.lslash=322,e.lsquare=8467,e.lsuperior=63214,e.ltshade=9617,e.luthai=3622,e.lvocalicbengali=2444,e.lvocalicdeva=2316,e.lvocalicvowelsignbengali=2530,e.lvocalicvowelsigndeva=2402,e.lxsquare=13267,e.m=109,e.mabengali=2478,e.macron=175,e.macronbelowcmb=817,e.macroncmb=772,e.macronlowmod=717,e.macronmonospace=65507,e.macute=7743,e.madeva=2350,e.magujarati=2734,e.magurmukhi=2606,e.mahapakhhebrew=1444,e.mahapakhlefthebrew=1444,e.mahiragana=12414,e.maichattawalowleftthai=63637,e.maichattawalowrightthai=63636,e.maichattawathai=3659,e.maichattawaupperleftthai=63635,e.maieklowleftthai=63628,e.maieklowrightthai=63627,e.maiekthai=3656,e.maiekupperleftthai=63626,e.maihanakatleftthai=63620,e.maihanakatthai=3633,e.maitaikhuleftthai=63625,e.maitaikhuthai=3655,e.maitholowleftthai=63631,e.maitholowrightthai=63630,e.maithothai=3657,e.maithoupperleftthai=63629,e.maitrilowleftthai=63634,e.maitrilowrightthai=63633,e.maitrithai=3658,e.maitriupperleftthai=63632,e.maiyamokthai=3654,e.makatakana=12510,e.makatakanahalfwidth=65423,e.male=9794,e.mansyonsquare=13127,e.maqafhebrew=1470,e.mars=9794,e.masoracirclehebrew=1455,e.masquare=13187,e.mbopomofo=12551,e.mbsquare=13268,e.mcircle=9436,e.mcubedsquare=13221,e.mdotaccent=7745,e.mdotbelow=7747,e.meemarabic=1605,e.meemfinalarabic=65250,e.meeminitialarabic=65251,e.meemmedialarabic=65252,e.meemmeeminitialarabic=64721,e.meemmeemisolatedarabic=64584,e.meetorusquare=13133,e.mehiragana=12417,e.meizierasquare=13182,e.mekatakana=12513,e.mekatakanahalfwidth=65426,e.mem=1502,e.memdagesh=64318,e.memdageshhebrew=64318,e.memhebrew=1502,e.menarmenian=1396,e.merkhahebrew=1445,e.merkhakefulahebrew=1446,e.merkhakefulalefthebrew=1446,e.merkhalefthebrew=1445,e.mhook=625,e.mhzsquare=13202,e.middledotkatakanahalfwidth=65381,e.middot=183,e.mieumacirclekorean=12914,e.mieumaparenkorean=12818,e.mieumcirclekorean=12900,e.mieumkorean=12609,e.mieumpansioskorean=12656,e.mieumparenkorean=12804,e.mieumpieupkorean=12654,e.mieumsioskorean=12655,e.mihiragana=12415,e.mikatakana=12511,e.mikatakanahalfwidth=65424,e.minus=8722,e.minusbelowcmb=800,e.minuscircle=8854,e.minusmod=727,e.minusplus=8723,e.minute=8242,e.miribaarusquare=13130,e.mirisquare=13129,e.mlonglegturned=624,e.mlsquare=13206,e.mmcubedsquare=13219,e.mmonospace=65357,e.mmsquaredsquare=13215,e.mohiragana=12418,e.mohmsquare=13249,e.mokatakana=12514,e.mokatakanahalfwidth=65427,e.molsquare=13270,e.momathai=3617,e.moverssquare=13223,e.moverssquaredsquare=13224,e.mparen=9384,e.mpasquare=13227,e.mssquare=13235,e.msuperior=63215,e.mturned=623,e.mu=181,e.mu1=181,e.muasquare=13186,e.muchgreater=8811,e.muchless=8810,e.mufsquare=13196,e.mugreek=956,e.mugsquare=13197,e.muhiragana=12416,e.mukatakana=12512,e.mukatakanahalfwidth=65425,e.mulsquare=13205,e.multiply=215,e.mumsquare=13211,e.munahhebrew=1443,e.munahlefthebrew=1443,e.musicalnote=9834,e.musicalnotedbl=9835,e.musicflatsign=9837,e.musicsharpsign=9839,e.mussquare=13234,e.muvsquare=13238,e.muwsquare=13244,e.mvmegasquare=13241,e.mvsquare=13239,e.mwmegasquare=13247,e.mwsquare=13245,e.n=110,e.nabengali=2472,e.nabla=8711,e.nacute=324,e.nadeva=2344,e.nagujarati=2728,e.nagurmukhi=2600,e.nahiragana=12394,e.nakatakana=12490,e.nakatakanahalfwidth=65413,e.napostrophe=329,e.nasquare=13185,e.nbopomofo=12555,e.nbspace=160,e.ncaron=328,e.ncedilla=326,e.ncircle=9437,e.ncircumflexbelow=7755,e.ncommaaccent=326,e.ndotaccent=7749,e.ndotbelow=7751,e.nehiragana=12397,e.nekatakana=12493,e.nekatakanahalfwidth=65416,e.newsheqelsign=8362,e.nfsquare=13195,e.ngabengali=2457,e.ngadeva=2329,e.ngagujarati=2713,e.ngagurmukhi=2585,e.ngonguthai=3591,e.nhiragana=12435,e.nhookleft=626,e.nhookretroflex=627,e.nieunacirclekorean=12911,e.nieunaparenkorean=12815,e.nieuncieuckorean=12597,e.nieuncirclekorean=12897,e.nieunhieuhkorean=12598,e.nieunkorean=12596,e.nieunpansioskorean=12648,e.nieunparenkorean=12801,e.nieunsioskorean=12647,e.nieuntikeutkorean=12646,e.nihiragana=12395,e.nikatakana=12491,e.nikatakanahalfwidth=65414,e.nikhahitleftthai=63641,e.nikhahitthai=3661,e.nine=57,e.ninearabic=1641,e.ninebengali=2543,e.ninecircle=9320,e.ninecircleinversesansserif=10130,e.ninedeva=2415,e.ninegujarati=2799,e.ninegurmukhi=2671,e.ninehackarabic=1641,e.ninehangzhou=12329,e.nineideographicparen=12840,e.nineinferior=8329,e.ninemonospace=65305,e.nineoldstyle=63289,e.nineparen=9340,e.nineperiod=9360,e.ninepersian=1785,e.nineroman=8568,e.ninesuperior=8313,e.nineteencircle=9330,e.nineteenparen=9350,e.nineteenperiod=9370,e.ninethai=3673,e.nj=460,e.njecyrillic=1114,e.nkatakana=12531,e.nkatakanahalfwidth=65437,e.nlegrightlong=414,e.nlinebelow=7753,e.nmonospace=65358,e.nmsquare=13210,e.nnabengali=2467,e.nnadeva=2339,e.nnagujarati=2723,e.nnagurmukhi=2595,e.nnnadeva=2345,e.nohiragana=12398,e.nokatakana=12494,e.nokatakanahalfwidth=65417,e.nonbreakingspace=160,e.nonenthai=3603,e.nonuthai=3609,e.noonarabic=1606,e.noonfinalarabic=65254,e.noonghunnaarabic=1722,e.noonghunnafinalarabic=64415,e.nooninitialarabic=65255,e.noonjeeminitialarabic=64722,e.noonjeemisolatedarabic=64587,e.noonmedialarabic=65256,e.noonmeeminitialarabic=64725,e.noonmeemisolatedarabic=64590,e.noonnoonfinalarabic=64653,e.notcontains=8716,e.notelement=8713,e.notelementof=8713,e.notequal=8800,e.notgreater=8815,e.notgreaternorequal=8817,e.notgreaternorless=8825,e.notidentical=8802,e.notless=8814,e.notlessnorequal=8816,e.notparallel=8742,e.notprecedes=8832,e.notsubset=8836,e.notsucceeds=8833,e.notsuperset=8837,e.nowarmenian=1398,e.nparen=9385,e.nssquare=13233,e.nsuperior=8319,e.ntilde=241,e.nu=957,e.nuhiragana=12396,e.nukatakana=12492,e.nukatakanahalfwidth=65415,e.nuktabengali=2492,e.nuktadeva=2364,e.nuktagujarati=2748,e.nuktagurmukhi=2620,e.numbersign=35,e.numbersignmonospace=65283,e.numbersignsmall=65119,e.numeralsigngreek=884,e.numeralsignlowergreek=885,e.numero=8470,e.nun=1504,e.nundagesh=64320,e.nundageshhebrew=64320,e.nunhebrew=1504,e.nvsquare=13237,e.nwsquare=13243,e.nyabengali=2462,e.nyadeva=2334,e.nyagujarati=2718,e.nyagurmukhi=2590,e.o=111,e.oacute=243,e.oangthai=3629,e.obarred=629,e.obarredcyrillic=1257,e.obarreddieresiscyrillic=1259,e.obengali=2451,e.obopomofo=12571,e.obreve=335,e.ocandradeva=2321,e.ocandragujarati=2705,e.ocandravowelsigndeva=2377,e.ocandravowelsigngujarati=2761,e.ocaron=466,e.ocircle=9438,e.ocircumflex=244,e.ocircumflexacute=7889,e.ocircumflexdotbelow=7897,e.ocircumflexgrave=7891,e.ocircumflexhookabove=7893,e.ocircumflextilde=7895,e.ocyrillic=1086,e.odblacute=337,e.odblgrave=525,e.odeva=2323,e.odieresis=246,e.odieresiscyrillic=1255,e.odotbelow=7885,e.oe=339,e.oekorean=12634,e.ogonek=731,e.ogonekcmb=808,e.ograve=242,e.ogujarati=2707,e.oharmenian=1413,e.ohiragana=12362,e.ohookabove=7887,e.ohorn=417,e.ohornacute=7899,e.ohorndotbelow=7907,e.ohorngrave=7901,e.ohornhookabove=7903,e.ohorntilde=7905,e.ohungarumlaut=337,e.oi=419,e.oinvertedbreve=527,e.okatakana=12458,e.okatakanahalfwidth=65397,e.okorean=12631,e.olehebrew=1451,e.omacron=333,e.omacronacute=7763,e.omacrongrave=7761,e.omdeva=2384,e.omega=969,e.omega1=982,e.omegacyrillic=1121,e.omegalatinclosed=631,e.omegaroundcyrillic=1147,e.omegatitlocyrillic=1149,e.omegatonos=974,e.omgujarati=2768,e.omicron=959,e.omicrontonos=972,e.omonospace=65359,e.one=49,e.onearabic=1633,e.onebengali=2535,e.onecircle=9312,e.onecircleinversesansserif=10122,e.onedeva=2407,e.onedotenleader=8228,e.oneeighth=8539,e.onefitted=63196,e.onegujarati=2791,e.onegurmukhi=2663,e.onehackarabic=1633,e.onehalf=189,e.onehangzhou=12321,e.oneideographicparen=12832,e.oneinferior=8321,e.onemonospace=65297,e.onenumeratorbengali=2548,e.oneoldstyle=63281,e.oneparen=9332,e.oneperiod=9352,e.onepersian=1777,e.onequarter=188,e.oneroman=8560,e.onesuperior=185,e.onethai=3665,e.onethird=8531,e.oogonek=491,e.oogonekmacron=493,e.oogurmukhi=2579,e.oomatragurmukhi=2635,e.oopen=596,e.oparen=9386,e.openbullet=9702,e.option=8997,e.ordfeminine=170,e.ordmasculine=186,e.orthogonal=8735,e.oshortdeva=2322,e.oshortvowelsigndeva=2378,e.oslash=248,e.oslashacute=511,e.osmallhiragana=12361,e.osmallkatakana=12457,e.osmallkatakanahalfwidth=65387,e.ostrokeacute=511,e.osuperior=63216,e.otcyrillic=1151,e.otilde=245,e.otildeacute=7757,e.otildedieresis=7759,e.oubopomofo=12577,e.overline=8254,e.overlinecenterline=65098,e.overlinecmb=773,e.overlinedashed=65097,e.overlinedblwavy=65100,e.overlinewavy=65099,e.overscore=175,e.ovowelsignbengali=2507,e.ovowelsigndeva=2379,e.ovowelsigngujarati=2763,e.p=112,e.paampssquare=13184,e.paasentosquare=13099,e.pabengali=2474,e.pacute=7765,e.padeva=2346,e.pagedown=8671,e.pageup=8670,e.pagujarati=2730,e.pagurmukhi=2602,e.pahiragana=12401,e.paiyannoithai=3631,e.pakatakana=12497,e.palatalizationcyrilliccmb=1156,e.palochkacyrillic=1216,e.pansioskorean=12671,e.paragraph=182,e.parallel=8741,e.parenleft=40,e.parenleftaltonearabic=64830,e.parenleftbt=63725,e.parenleftex=63724,e.parenleftinferior=8333,e.parenleftmonospace=65288,e.parenleftsmall=65113,e.parenleftsuperior=8317,e.parenlefttp=63723,e.parenleftvertical=65077,e.parenright=41,e.parenrightaltonearabic=64831,e.parenrightbt=63736,e.parenrightex=63735,e.parenrightinferior=8334,e.parenrightmonospace=65289,e.parenrightsmall=65114,e.parenrightsuperior=8318,e.parenrighttp=63734,e.parenrightvertical=65078,e.partialdiff=8706,e.paseqhebrew=1472,e.pashtahebrew=1433,e.pasquare=13225,e.patah=1463,e.patah11=1463,e.patah1d=1463,e.patah2a=1463,e.patahhebrew=1463,e.patahnarrowhebrew=1463,e.patahquarterhebrew=1463,e.patahwidehebrew=1463,e.pazerhebrew=1441,e.pbopomofo=12550,e.pcircle=9439,e.pdotaccent=7767,e.pe=1508,e.pecyrillic=1087,e.pedagesh=64324,e.pedageshhebrew=64324,e.peezisquare=13115,e.pefinaldageshhebrew=64323,e.peharabic=1662,e.peharmenian=1402,e.pehebrew=1508,e.pehfinalarabic=64343,e.pehinitialarabic=64344,e.pehiragana=12410,e.pehmedialarabic=64345,e.pekatakana=12506,e.pemiddlehookcyrillic=1191,e.perafehebrew=64334,e.percent=37,e.percentarabic=1642,e.percentmonospace=65285,e.percentsmall=65130,e.period=46,e.periodarmenian=1417,e.periodcentered=183,e.periodhalfwidth=65377,e.periodinferior=63207,e.periodmonospace=65294,e.periodsmall=65106,e.periodsuperior=63208,e.perispomenigreekcmb=834,e.perpendicular=8869,e.perthousand=8240,e.peseta=8359,e.pfsquare=13194,e.phabengali=2475,e.phadeva=2347,e.phagujarati=2731,e.phagurmukhi=2603,e.phi=966,e.phi1=981,e.phieuphacirclekorean=12922,e.phieuphaparenkorean=12826,e.phieuphcirclekorean=12908,e.phieuphkorean=12621,e.phieuphparenkorean=12812,e.philatin=632,e.phinthuthai=3642,e.phisymbolgreek=981,e.phook=421,e.phophanthai=3614,e.phophungthai=3612,e.phosamphaothai=3616,e.pi=960,e.pieupacirclekorean=12915,e.pieupaparenkorean=12819,e.pieupcieuckorean=12662,e.pieupcirclekorean=12901,e.pieupkiyeokkorean=12658,e.pieupkorean=12610,e.pieupparenkorean=12805,e.pieupsioskiyeokkorean=12660,e.pieupsioskorean=12612,e.pieupsiostikeutkorean=12661,e.pieupthieuthkorean=12663,e.pieuptikeutkorean=12659,e.pihiragana=12404,e.pikatakana=12500,e.pisymbolgreek=982,e.piwrarmenian=1411,e.plus=43,e.plusbelowcmb=799,e.pluscircle=8853,e.plusminus=177,e.plusmod=726,e.plusmonospace=65291,e.plussmall=65122,e.plussuperior=8314,e.pmonospace=65360,e.pmsquare=13272,e.pohiragana=12413,e.pointingindexdownwhite=9759,e.pointingindexleftwhite=9756,e.pointingindexrightwhite=9758,e.pointingindexupwhite=9757,e.pokatakana=12509,e.poplathai=3611,e.postalmark=12306,e.postalmarkface=12320,e.pparen=9387,e.precedes=8826,e.prescription=8478,e.primemod=697,e.primereversed=8245,e.product=8719,e.projective=8965,e.prolongedkana=12540,e.propellor=8984,e.propersubset=8834,e.propersuperset=8835,e.proportion=8759,e.proportional=8733,e.psi=968,e.psicyrillic=1137,e.psilipneumatacyrilliccmb=1158,e.pssquare=13232,e.puhiragana=12407,e.pukatakana=12503,e.pvsquare=13236,e.pwsquare=13242,e.q=113,e.qadeva=2392,e.qadmahebrew=1448,e.qafarabic=1602,e.qaffinalarabic=65238,e.qafinitialarabic=65239,e.qafmedialarabic=65240,e.qamats=1464,e.qamats10=1464,e.qamats1a=1464,e.qamats1c=1464,e.qamats27=1464,e.qamats29=1464,e.qamats33=1464,e.qamatsde=1464,e.qamatshebrew=1464,e.qamatsnarrowhebrew=1464,e.qamatsqatanhebrew=1464,e.qamatsqatannarrowhebrew=1464,e.qamatsqatanquarterhebrew=1464,e.qamatsqatanwidehebrew=1464,e.qamatsquarterhebrew=1464,e.qamatswidehebrew=1464,e.qarneyparahebrew=1439,e.qbopomofo=12561,e.qcircle=9440,e.qhook=672,e.qmonospace=65361,e.qof=1511,e.qofdagesh=64327,e.qofdageshhebrew=64327,e.qofhebrew=1511,e.qparen=9388,e.quarternote=9833,e.qubuts=1467,e.qubuts18=1467,e.qubuts25=1467,e.qubuts31=1467,e.qubutshebrew=1467,e.qubutsnarrowhebrew=1467,e.qubutsquarterhebrew=1467,e.qubutswidehebrew=1467,e.question=63,e.questionarabic=1567,e.questionarmenian=1374,e.questiondown=191,e.questiondownsmall=63423,e.questiongreek=894,e.questionmonospace=65311,e.questionsmall=63295,e.quotedbl=34,e.quotedblbase=8222,e.quotedblleft=8220,e.quotedblmonospace=65282,e.quotedblprime=12318,e.quotedblprimereversed=12317,e.quotedblright=8221,e.quoteleft=8216,e.quoteleftreversed=8219,e.quotereversed=8219,e.quoteright=8217,e.quoterightn=329,e.quotesinglbase=8218,e.quotesingle=39,e.quotesinglemonospace=65287,e.r=114,e.raarmenian=1404,e.rabengali=2480,e.racute=341,e.radeva=2352,e.radical=8730,e.radicalex=63717,e.radoverssquare=13230,e.radoverssquaredsquare=13231,e.radsquare=13229,e.rafe=1471,e.rafehebrew=1471,e.ragujarati=2736,e.ragurmukhi=2608,e.rahiragana=12425,e.rakatakana=12521,e.rakatakanahalfwidth=65431,e.ralowerdiagonalbengali=2545,e.ramiddlediagonalbengali=2544,e.ramshorn=612,e.ratio=8758,e.rbopomofo=12566,e.rcaron=345,e.rcedilla=343,e.rcircle=9441,e.rcommaaccent=343,e.rdblgrave=529,e.rdotaccent=7769,e.rdotbelow=7771,e.rdotbelowmacron=7773,e.referencemark=8251,e.reflexsubset=8838,e.reflexsuperset=8839,e.registered=174,e.registersans=63720,e.registerserif=63194,e.reharabic=1585,e.reharmenian=1408,e.rehfinalarabic=65198,e.rehiragana=12428,e.rekatakana=12524,e.rekatakanahalfwidth=65434,e.resh=1512,e.reshdageshhebrew=64328,e.reshhebrew=1512,e.reversedtilde=8765,e.reviahebrew=1431;e.reviamugrashhebrew=1431,e.revlogicalnot=8976,e.rfishhook=638,e.rfishhookreversed=639,e.rhabengali=2525,e.rhadeva=2397,e.rho=961,e.rhook=637,e.rhookturned=635,e.rhookturnedsuperior=693,e.rhosymbolgreek=1009,e.rhotichookmod=734,e.rieulacirclekorean=12913,e.rieulaparenkorean=12817,e.rieulcirclekorean=12899,e.rieulhieuhkorean=12608,e.rieulkiyeokkorean=12602,e.rieulkiyeoksioskorean=12649,e.rieulkorean=12601,e.rieulmieumkorean=12603,e.rieulpansioskorean=12652,e.rieulparenkorean=12803,e.rieulphieuphkorean=12607,e.rieulpieupkorean=12604,e.rieulpieupsioskorean=12651,e.rieulsioskorean=12605,e.rieulthieuthkorean=12606,e.rieultikeutkorean=12650,e.rieulyeorinhieuhkorean=12653,e.rightangle=8735,e.righttackbelowcmb=793,e.righttriangle=8895,e.rihiragana=12426,e.rikatakana=12522,e.rikatakanahalfwidth=65432,e.ring=730,e.ringbelowcmb=805,e.ringcmb=778,e.ringhalfleft=703,e.ringhalfleftarmenian=1369,e.ringhalfleftbelowcmb=796,e.ringhalfleftcentered=723,e.ringhalfright=702,e.ringhalfrightbelowcmb=825,e.ringhalfrightcentered=722,e.rinvertedbreve=531,e.rittorusquare=13137,e.rlinebelow=7775,e.rlongleg=636,e.rlonglegturned=634,e.rmonospace=65362,e.rohiragana=12429,e.rokatakana=12525,e.rokatakanahalfwidth=65435,e.roruathai=3619,e.rparen=9389,e.rrabengali=2524,e.rradeva=2353,e.rragurmukhi=2652,e.rreharabic=1681,e.rrehfinalarabic=64397,e.rrvocalicbengali=2528,e.rrvocalicdeva=2400,e.rrvocalicgujarati=2784,e.rrvocalicvowelsignbengali=2500,e.rrvocalicvowelsigndeva=2372,e.rrvocalicvowelsigngujarati=2756,e.rsuperior=63217,e.rtblock=9616,e.rturned=633,e.rturnedsuperior=692,e.ruhiragana=12427,e.rukatakana=12523,e.rukatakanahalfwidth=65433,e.rupeemarkbengali=2546,e.rupeesignbengali=2547,e.rupiah=63197,e.ruthai=3620,e.rvocalicbengali=2443,e.rvocalicdeva=2315,e.rvocalicgujarati=2699,e.rvocalicvowelsignbengali=2499,e.rvocalicvowelsigndeva=2371,e.rvocalicvowelsigngujarati=2755,e.s=115,e.sabengali=2488,e.sacute=347,e.sacutedotaccent=7781,e.sadarabic=1589,e.sadeva=2360,e.sadfinalarabic=65210,e.sadinitialarabic=65211,e.sadmedialarabic=65212,e.sagujarati=2744,e.sagurmukhi=2616,e.sahiragana=12373,e.sakatakana=12469,e.sakatakanahalfwidth=65403,e.sallallahoualayhewasallamarabic=65018,e.samekh=1505,e.samekhdagesh=64321,e.samekhdageshhebrew=64321,e.samekhhebrew=1505,e.saraaathai=3634,e.saraaethai=3649,e.saraaimaimalaithai=3652,e.saraaimaimuanthai=3651,e.saraamthai=3635,e.saraathai=3632,e.saraethai=3648,e.saraiileftthai=63622,e.saraiithai=3637,e.saraileftthai=63621,e.saraithai=3636,e.saraothai=3650,e.saraueeleftthai=63624,e.saraueethai=3639,e.saraueleftthai=63623,e.sarauethai=3638,e.sarauthai=3640,e.sarauuthai=3641,e.sbopomofo=12569,e.scaron=353,e.scarondotaccent=7783,e.scedilla=351,e.schwa=601,e.schwacyrillic=1241,e.schwadieresiscyrillic=1243,e.schwahook=602,e.scircle=9442,e.scircumflex=349,e.scommaaccent=537,e.sdotaccent=7777,e.sdotbelow=7779,e.sdotbelowdotaccent=7785,e.seagullbelowcmb=828,e.second=8243,e.secondtonechinese=714,e.section=167,e.seenarabic=1587,e.seenfinalarabic=65202,e.seeninitialarabic=65203,e.seenmedialarabic=65204,e.segol=1462,e.segol13=1462,e.segol1f=1462,e.segol2c=1462,e.segolhebrew=1462,e.segolnarrowhebrew=1462,e.segolquarterhebrew=1462,e.segoltahebrew=1426,e.segolwidehebrew=1462,e.seharmenian=1405,e.sehiragana=12379,e.sekatakana=12475,e.sekatakanahalfwidth=65406,e.semicolon=59,e.semicolonarabic=1563,e.semicolonmonospace=65307,e.semicolonsmall=65108,e.semivoicedmarkkana=12444,e.semivoicedmarkkanahalfwidth=65439,e.sentisquare=13090,e.sentosquare=13091,e.seven=55,e.sevenarabic=1639,e.sevenbengali=2541,e.sevencircle=9318,e.sevencircleinversesansserif=10128,e.sevendeva=2413,e.seveneighths=8542,e.sevengujarati=2797,e.sevengurmukhi=2669,e.sevenhackarabic=1639,e.sevenhangzhou=12327,e.sevenideographicparen=12838,e.seveninferior=8327,e.sevenmonospace=65303,e.sevenoldstyle=63287,e.sevenparen=9338,e.sevenperiod=9358,e.sevenpersian=1783,e.sevenroman=8566,e.sevensuperior=8311,e.seventeencircle=9328,e.seventeenparen=9348,e.seventeenperiod=9368,e.seventhai=3671,e.sfthyphen=173,e.shaarmenian=1399,e.shabengali=2486,e.shacyrillic=1096,e.shaddaarabic=1617,e.shaddadammaarabic=64609,e.shaddadammatanarabic=64606,e.shaddafathaarabic=64608,e.shaddakasraarabic=64610,e.shaddakasratanarabic=64607,e.shade=9618,e.shadedark=9619,e.shadelight=9617,e.shademedium=9618,e.shadeva=2358,e.shagujarati=2742,e.shagurmukhi=2614,e.shalshelethebrew=1427,e.shbopomofo=12565,e.shchacyrillic=1097,e.sheenarabic=1588,e.sheenfinalarabic=65206,e.sheeninitialarabic=65207,e.sheenmedialarabic=65208,e.sheicoptic=995,e.sheqel=8362,e.sheqelhebrew=8362,e.sheva=1456,e.sheva115=1456,e.sheva15=1456,e.sheva22=1456,e.sheva2e=1456,e.shevahebrew=1456,e.shevanarrowhebrew=1456,e.shevaquarterhebrew=1456,e.shevawidehebrew=1456,e.shhacyrillic=1211,e.shimacoptic=1005,e.shin=1513,e.shindagesh=64329,e.shindageshhebrew=64329,e.shindageshshindot=64300,e.shindageshshindothebrew=64300,e.shindageshsindot=64301,e.shindageshsindothebrew=64301,e.shindothebrew=1473,e.shinhebrew=1513,e.shinshindot=64298,e.shinshindothebrew=64298,e.shinsindot=64299,e.shinsindothebrew=64299,e.shook=642,e.sigma=963,e.sigma1=962,e.sigmafinal=962,e.sigmalunatesymbolgreek=1010,e.sihiragana=12375,e.sikatakana=12471,e.sikatakanahalfwidth=65404,e.siluqhebrew=1469,e.siluqlefthebrew=1469,e.similar=8764,e.sindothebrew=1474,e.siosacirclekorean=12916,e.siosaparenkorean=12820,e.sioscieuckorean=12670,e.sioscirclekorean=12902,e.sioskiyeokkorean=12666,e.sioskorean=12613,e.siosnieunkorean=12667,e.siosparenkorean=12806,e.siospieupkorean=12669,e.siostikeutkorean=12668,e.six=54,e.sixarabic=1638,e.sixbengali=2540,e.sixcircle=9317,e.sixcircleinversesansserif=10127,e.sixdeva=2412,e.sixgujarati=2796,e.sixgurmukhi=2668,e.sixhackarabic=1638,e.sixhangzhou=12326,e.sixideographicparen=12837,e.sixinferior=8326,e.sixmonospace=65302,e.sixoldstyle=63286,e.sixparen=9337,e.sixperiod=9357,e.sixpersian=1782,e.sixroman=8565,e.sixsuperior=8310,e.sixteencircle=9327,e.sixteencurrencydenominatorbengali=2553,e.sixteenparen=9347,e.sixteenperiod=9367,e.sixthai=3670,e.slash=47,e.slashmonospace=65295,e.slong=383,e.slongdotaccent=7835,e.smileface=9786,e.smonospace=65363,e.sofpasuqhebrew=1475,e.softhyphen=173,e.softsigncyrillic=1100,e.sohiragana=12381,e.sokatakana=12477,e.sokatakanahalfwidth=65407,e.soliduslongoverlaycmb=824,e.solidusshortoverlaycmb=823,e.sorusithai=3625,e.sosalathai=3624,e.sosothai=3595,e.sosuathai=3626,e.space=32,e.spacehackarabic=32,e.spade=9824,e.spadesuitblack=9824,e.spadesuitwhite=9828,e.sparen=9390,e.squarebelowcmb=827,e.squarecc=13252,e.squarecm=13213,e.squarediagonalcrosshatchfill=9641,e.squarehorizontalfill=9636,e.squarekg=13199,e.squarekm=13214,e.squarekmcapital=13262,e.squareln=13265,e.squarelog=13266,e.squaremg=13198,e.squaremil=13269,e.squaremm=13212,e.squaremsquared=13217,e.squareorthogonalcrosshatchfill=9638,e.squareupperlefttolowerrightfill=9639,e.squareupperrighttolowerleftfill=9640,e.squareverticalfill=9637,e.squarewhitewithsmallblack=9635,e.srsquare=13275,e.ssabengali=2487,e.ssadeva=2359,e.ssagujarati=2743,e.ssangcieuckorean=12617,e.ssanghieuhkorean=12677,e.ssangieungkorean=12672,e.ssangkiyeokkorean=12594,e.ssangnieunkorean=12645,e.ssangpieupkorean=12611,e.ssangsioskorean=12614,e.ssangtikeutkorean=12600,e.ssuperior=63218,e.sterling=163,e.sterlingmonospace=65505,e.strokelongoverlaycmb=822,e.strokeshortoverlaycmb=821,e.subset=8834,e.subsetnotequal=8842,e.subsetorequal=8838,e.succeeds=8827,e.suchthat=8715,e.suhiragana=12377,e.sukatakana=12473,e.sukatakanahalfwidth=65405,e.sukunarabic=1618,e.summation=8721,e.sun=9788,e.superset=8835,e.supersetnotequal=8843,e.supersetorequal=8839,e.svsquare=13276,e.syouwaerasquare=13180,e.t=116,e.tabengali=2468,e.tackdown=8868,e.tackleft=8867,e.tadeva=2340,e.tagujarati=2724,e.tagurmukhi=2596,e.taharabic=1591,e.tahfinalarabic=65218,e.tahinitialarabic=65219,e.tahiragana=12383,e.tahmedialarabic=65220,e.taisyouerasquare=13181,e.takatakana=12479,e.takatakanahalfwidth=65408,e.tatweelarabic=1600,e.tau=964,e.tav=1514,e.tavdages=64330,e.tavdagesh=64330,e.tavdageshhebrew=64330,e.tavhebrew=1514,e.tbar=359,e.tbopomofo=12554,e.tcaron=357,e.tccurl=680,e.tcedilla=355,e.tcheharabic=1670,e.tchehfinalarabic=64379,e.tchehinitialarabic=64380,e.tchehmedialarabic=64381,e.tcircle=9443,e.tcircumflexbelow=7793,e.tcommaaccent=355,e.tdieresis=7831,e.tdotaccent=7787,e.tdotbelow=7789,e.tecyrillic=1090,e.tedescendercyrillic=1197,e.teharabic=1578,e.tehfinalarabic=65174,e.tehhahinitialarabic=64674,e.tehhahisolatedarabic=64524,e.tehinitialarabic=65175,e.tehiragana=12390,e.tehjeeminitialarabic=64673,e.tehjeemisolatedarabic=64523,e.tehmarbutaarabic=1577,e.tehmarbutafinalarabic=65172,e.tehmedialarabic=65176,e.tehmeeminitialarabic=64676,e.tehmeemisolatedarabic=64526,e.tehnoonfinalarabic=64627,e.tekatakana=12486,e.tekatakanahalfwidth=65411,e.telephone=8481,e.telephoneblack=9742,e.telishagedolahebrew=1440,e.telishaqetanahebrew=1449,e.tencircle=9321,e.tenideographicparen=12841,e.tenparen=9341,e.tenperiod=9361,e.tenroman=8569,e.tesh=679,e.tet=1496,e.tetdagesh=64312,e.tetdageshhebrew=64312,e.tethebrew=1496,e.tetsecyrillic=1205,e.tevirhebrew=1435,e.tevirlefthebrew=1435,e.thabengali=2469,e.thadeva=2341,e.thagujarati=2725,e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825,e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323,e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430,e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391,e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359,e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072,e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178,e.twothai=3666,e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.udblacute=369,e.udblgrave=533,e.udeva=2313,e.udieresis=252,e.udieresisacute=472,e.udieresisbelow=7795,e.udieresiscaron=474,e.udieresiscyrillic=1265,e.udieresisgrave=476,e.udieresismacron=470,e.udotbelow=7909,e.ugrave=249,e.ugujarati=2697,e.ugurmukhi=2569,e.uhiragana=12358,e.uhookabove=7911,e.uhorn=432,e.uhornacute=7913,e.uhorndotbelow=7921,e.uhorngrave=7915,e.uhornhookabove=7917,e.uhorntilde=7919,e.uhungarumlaut=369,e.uhungarumlautcyrillic=1267,e.uinvertedbreve=535,e.ukatakana=12454,e.ukatakanahalfwidth=65395,e.ukcyrillic=1145,e.ukorean=12636,e.umacron=363,e.umacroncyrillic=1263,e.umacrondieresis=7803,e.umatragurmukhi=2625,e.umonospace=65365,e.underscore=95,e.underscoredbl=8215,e.underscoremonospace=65343,e.underscorevertical=65075,e.underscorewavy=65103,e.union=8746,e.universal=8704,e.uogonek=371,e.uparen=9392,e.upblock=9600,e.upperdothebrew=1476,e.upsilon=965,e.upsilondieresis=971,e.upsilondieresistonos=944,e.upsilonlatin=650,e.upsilontonos=973,e.uptackbelowcmb=797,e.uptackmod=724,e.uragurmukhi=2675,e.uring=367,e.ushortcyrillic=1118,e.usmallhiragana=12357,e.usmallkatakana=12453,e.usmallkatakanahalfwidth=65385,e.ustraightcyrillic=1199,e.ustraightstrokecyrillic=1201,e.utilde=361,e.utildeacute=7801,e.utildebelow=7797,e.uubengali=2442,e.uudeva=2314,e.uugujarati=2698,e.uugurmukhi=2570,e.uumatragurmukhi=2626,e.uuvowelsignbengali=2498,e.uuvowelsigndeva=2370,e.uuvowelsigngujarati=2754,e.uvowelsignbengali=2497,e.uvowelsigndeva=2369,e.uvowelsigngujarati=2753,e.v=118,e.vadeva=2357,e.vagujarati=2741,e.vagurmukhi=2613,e.vakatakana=12535,e.vav=1493,e.vavdagesh=64309,e.vavdagesh65=64309,e.vavdageshhebrew=64309,e.vavhebrew=1493,e.vavholam=64331,e.vavholamhebrew=64331,e.vavvavhebrew=1520,e.vavyodhebrew=1521,e.vcircle=9445,e.vdotbelow=7807,e.vecyrillic=1074,e.veharabic=1700,e.vehfinalarabic=64363,e.vehinitialarabic=64364,e.vehmedialarabic=64365,e.vekatakana=12537,e.venus=9792,e.verticalbar=124,e.verticallineabovecmb=781,e.verticallinebelowcmb=809,e.verticallinelowmod=716,e.verticallinemod=712,e.vewarmenian=1406,e.vhook=651,e.vikatakana=12536,e.viramabengali=2509,e.viramadeva=2381,e.viramagujarati=2765,e.visargabengali=2435,e.visargadeva=2307,e.visargagujarati=2691,e.vmonospace=65366,e.voarmenian=1400,e.voicediterationhiragana=12446,e.voicediterationkatakana=12542,e.voicedmarkkana=12443,e.voicedmarkkanahalfwidth=65438,e.vokatakana=12538,e.vparen=9393,e.vtilde=7805,e.vturned=652,e.vuhiragana=12436,e.vukatakana=12532,e.w=119,e.wacute=7811,e.waekorean=12633,e.wahiragana=12431,e.wakatakana=12527,e.wakatakanahalfwidth=65436,e.wakorean=12632,e.wasmallhiragana=12430,e.wasmallkatakana=12526,e.wattosquare=13143,e.wavedash=12316,e.wavyunderscorevertical=65076,e.wawarabic=1608,e.wawfinalarabic=65262,e.wawhamzaabovearabic=1572,e.wawhamzaabovefinalarabic=65158,e.wbsquare=13277,e.wcircle=9446,e.wcircumflex=373,e.wdieresis=7813,e.wdotaccent=7815,e.wdotbelow=7817,e.wehiragana=12433,e.weierstrass=8472,e.wekatakana=12529,e.wekorean=12638,e.weokorean=12637,e.wgrave=7809,e.whitebullet=9702,e.whitecircle=9675,e.whitecircleinverse=9689,e.whitecornerbracketleft=12302,e.whitecornerbracketleftvertical=65091,e.whitecornerbracketright=12303,e.whitecornerbracketrightvertical=65092,e.whitediamond=9671,e.whitediamondcontainingblacksmalldiamond=9672,e.whitedownpointingsmalltriangle=9663,e.whitedownpointingtriangle=9661,e.whiteleftpointingsmalltriangle=9667,e.whiteleftpointingtriangle=9665,e.whitelenticularbracketleft=12310,e.whitelenticularbracketright=12311,e.whiterightpointingsmalltriangle=9657;e.whiterightpointingtriangle=9655,e.whitesmallsquare=9643,e.whitesmilingface=9786,e.whitesquare=9633,e.whitestar=9734,e.whitetelephone=9743,e.whitetortoiseshellbracketleft=12312,e.whitetortoiseshellbracketright=12313,e.whiteuppointingsmalltriangle=9653,e.whiteuppointingtriangle=9651,e.wihiragana=12432,e.wikatakana=12528,e.wikorean=12639,e.wmonospace=65367,e.wohiragana=12434,e.wokatakana=12530,e.wokatakanahalfwidth=65382,e.won=8361,e.wonmonospace=65510,e.wowaenthai=3623,e.wparen=9394,e.wring=7832,e.wsuperior=695,e.wturned=653,e.wynn=447,e.x=120,e.xabovecmb=829,e.xbopomofo=12562,e.xcircle=9447,e.xdieresis=7821,e.xdotaccent=7819,e.xeharmenian=1389,e.xi=958,e.xmonospace=65368,e.xparen=9395,e.xsuperior=739,e.y=121,e.yaadosquare=13134,e.yabengali=2479,e.yacute=253,e.yadeva=2351,e.yaekorean=12626,e.yagujarati=2735,e.yagurmukhi=2607,e.yahiragana=12420,e.yakatakana=12516,e.yakatakanahalfwidth=65428,e.yakorean=12625,e.yamakkanthai=3662,e.yasmallhiragana=12419,e.yasmallkatakana=12515,e.yasmallkatakanahalfwidth=65388,e.yatcyrillic=1123,e.ycircle=9448,e.ycircumflex=375,e.ydieresis=255,e.ydotaccent=7823,e.ydotbelow=7925,e.yeharabic=1610,e.yehbarreearabic=1746,e.yehbarreefinalarabic=64431,e.yehfinalarabic=65266,e.yehhamzaabovearabic=1574,e.yehhamzaabovefinalarabic=65162,e.yehhamzaaboveinitialarabic=65163,e.yehhamzaabovemedialarabic=65164,e.yehinitialarabic=65267,e.yehmedialarabic=65268,e.yehmeeminitialarabic=64733,e.yehmeemisolatedarabic=64600,e.yehnoonfinalarabic=64660,e.yehthreedotsbelowarabic=1745,e.yekorean=12630,e.yen=165,e.yenmonospace=65509,e.yeokorean=12629,e.yeorinhieuhkorean=12678,e.yerahbenyomohebrew=1450,e.yerahbenyomolefthebrew=1450,e.yericyrillic=1099,e.yerudieresiscyrillic=1273,e.yesieungkorean=12673,e.yesieungpansioskorean=12675,e.yesieungsioskorean=12674,e.yetivhebrew=1434,e.ygrave=7923,e.yhook=436,e.yhookabove=7927,e.yiarmenian=1397,e.yicyrillic=1111,e.yikorean=12642,e.yinyang=9775,e.yiwnarmenian=1410,e.ymonospace=65369,e.yod=1497,e.yoddagesh=64313,e.yoddageshhebrew=64313,e.yodhebrew=1497,e.yodyodhebrew=1522,e.yodyodpatahhebrew=64287,e.yohiragana=12424,e.yoikorean=12681,e.yokatakana=12520,e.yokatakanahalfwidth=65430,e.yokorean=12635,e.yosmallhiragana=12423,e.yosmallkatakana=12519,e.yosmallkatakanahalfwidth=65390,e.yotgreek=1011,e.yoyaekorean=12680,e.yoyakorean=12679,e.yoyakthai=3618,e.yoyingthai=3597,e.yparen=9396,e.ypogegrammeni=890,e.ypogegrammenigreekcmb=837,e.yr=422,e.yring=7833,e.ysuperior=696,e.ytilde=7929,e.yturned=654,e.yuhiragana=12422,e.yuikorean=12684,e.yukatakana=12518,e.yukatakanahalfwidth=65429,e.yukorean=12640,e.yusbigcyrillic=1131,e.yusbigiotifiedcyrillic=1133,e.yuslittlecyrillic=1127,e.yuslittleiotifiedcyrillic=1129,e.yusmallhiragana=12421,e.yusmallkatakana=12517,e.yusmallkatakanahalfwidth=65389,e.yuyekorean=12683,e.yuyeokorean=12682,e.yyabengali=2527,e.yyadeva=2399,e.z=122,e.zaarmenian=1382,e.zacute=378,e.zadeva=2395,e.zagurmukhi=2651,e.zaharabic=1592,e.zahfinalarabic=65222,e.zahinitialarabic=65223,e.zahiragana=12374,e.zahmedialarabic=65224,e.zainarabic=1586,e.zainfinalarabic=65200,e.zakatakana=12470,e.zaqefgadolhebrew=1429,e.zaqefqatanhebrew=1428,e.zarqahebrew=1432,e.zayin=1494,e.zayindagesh=64310,e.zayindageshhebrew=64310,e.zayinhebrew=1494,e.zbopomofo=12567,e.zcaron=382,e.zcircle=9449,e.zcircumflex=7825,e.zcurl=657,e.zdot=380,e.zdotaccent=380,e.zdotbelow=7827,e.zecyrillic=1079,e.zedescendercyrillic=1177,e.zedieresiscyrillic=1247,e.zehiragana=12380,e.zekatakana=12476,e.zero=48,e.zeroarabic=1632,e.zerobengali=2534,e.zerodeva=2406,e.zerogujarati=2790,e.zerogurmukhi=2662,e.zerohackarabic=1632,e.zeroinferior=8320,e.zeromonospace=65296,e.zerooldstyle=63280,e.zeropersian=1776,e.zerosuperior=8304,e.zerothai=3664,e.zerowidthjoiner=65279,e.zerowidthnonjoiner=8204,e.zerowidthspace=8203,e.zeta=950,e.zhbopomofo=12563,e.zhearmenian=1386,e.zhebrevecyrillic=1218,e.zhecyrillic=1078,e.zhedescendercyrillic=1175,e.zhedieresiscyrillic=1245,e.zihiragana=12376,e.zikatakana=12472,e.zinorhebrew=1454,e.zlinebelow=7829,e.zmonospace=65370,e.zohiragana=12382,e.zokatakana=12478,e.zparen=9397,e.zretroflexhook=656,e.zstroke=438,e.zuhiragana=12378,e.zukatakana=12474,e[".notdef"]=0,e.angbracketleftbig=9001,e.angbracketleftBig=9001,e.angbracketleftbigg=9001,e.angbracketleftBigg=9001,e.angbracketrightBig=9002,e.angbracketrightbig=9002,e.angbracketrightBigg=9002,e.angbracketrightbigg=9002,e.arrowhookleft=8618,e.arrowhookright=8617,e.arrowlefttophalf=8636,e.arrowleftbothalf=8637,e.arrownortheast=8599,e.arrownorthwest=8598,e.arrowrighttophalf=8640,e.arrowrightbothalf=8641,e.arrowsoutheast=8600,e.arrowsouthwest=8601,e.backslashbig=8726,e.backslashBig=8726,e.backslashBigg=8726,e.backslashbigg=8726,e.bardbl=8214,e.bracehtipdownleft=65079,e.bracehtipdownright=65079,e.bracehtipupleft=65080,e.bracehtipupright=65080,e.braceleftBig=123,e.braceleftbig=123,e.braceleftbigg=123,e.braceleftBigg=123,e.bracerightBig=125,e.bracerightbig=125,e.bracerightbigg=125,e.bracerightBigg=125,e.bracketleftbig=91,e.bracketleftBig=91,e.bracketleftbigg=91,e.bracketleftBigg=91,e.bracketrightBig=93,e.bracketrightbig=93,e.bracketrightbigg=93,e.bracketrightBigg=93,e.ceilingleftbig=8968,e.ceilingleftBig=8968,e.ceilingleftBigg=8968,e.ceilingleftbigg=8968,e.ceilingrightbig=8969,e.ceilingrightBig=8969,e.ceilingrightbigg=8969,e.ceilingrightBigg=8969,e.circledotdisplay=8857,e.circledottext=8857,e.circlemultiplydisplay=8855,e.circlemultiplytext=8855,e.circleplusdisplay=8853,e.circleplustext=8853,e.contintegraldisplay=8750,e.contintegraltext=8750,e.coproductdisplay=8720,e.coproducttext=8720,e.floorleftBig=8970,e.floorleftbig=8970,e.floorleftbigg=8970,e.floorleftBigg=8970,e.floorrightbig=8971,e.floorrightBig=8971,e.floorrightBigg=8971,e.floorrightbigg=8971,e.hatwide=770,e.hatwider=770,e.hatwidest=770,e.intercal=7488,e.integraldisplay=8747,e.integraltext=8747,e.intersectiondisplay=8898,e.intersectiontext=8898,e.logicalanddisplay=8743,e.logicalandtext=8743,e.logicalordisplay=8744,e.logicalortext=8744,e.parenleftBig=40,e.parenleftbig=40,e.parenleftBigg=40,e.parenleftbigg=40,e.parenrightBig=41,e.parenrightbig=41,e.parenrightBigg=41,e.parenrightbigg=41,e.prime=8242,e.productdisplay=8719,e.producttext=8719,e.radicalbig=8730,e.radicalBig=8730,e.radicalBigg=8730,e.radicalbigg=8730,e.radicalbt=8730,e.radicaltp=8730,e.radicalvertex=8730,e.slashbig=47,e.slashBig=47,e.slashBigg=47,e.slashbigg=47,e.summationdisplay=8721,e.summationtext=8721,e.tildewide=732,e.tildewider=732,e.tildewidest=732,e.uniondisplay=8899,e.unionmultidisplay=8846,e.unionmultitext=8846,e.unionsqdisplay=8852,e.unionsqtext=8852,e.uniontext=8899,e.vextenddouble=8741,e.vextendsingle=8739})),c=n((function(e){e.space=32,e.a1=9985,e.a2=9986,e.a202=9987,e.a3=9988,e.a4=9742,e.a5=9990,e.a119=9991,e.a118=9992,e.a117=9993,e.a11=9755,e.a12=9758,e.a13=9996,e.a14=9997,e.a15=9998,e.a16=9999,e.a105=1e4,e.a17=10001,e.a18=10002,e.a19=10003,e.a20=10004,e.a21=10005,e.a22=10006,e.a23=10007,e.a24=10008,e.a25=10009,e.a26=10010,e.a27=10011,e.a28=10012,e.a6=10013,e.a7=10014,e.a8=10015,e.a9=10016,e.a10=10017,e.a29=10018,e.a30=10019,e.a31=10020,e.a32=10021,e.a33=10022,e.a34=10023,e.a35=9733,e.a36=10025,e.a37=10026,e.a38=10027,e.a39=10028,e.a40=10029,e.a41=10030,e.a42=10031,e.a43=10032,e.a44=10033,e.a45=10034,e.a46=10035,e.a47=10036,e.a48=10037,e.a49=10038,e.a50=10039,e.a51=10040,e.a52=10041,e.a53=10042,e.a54=10043,e.a55=10044,e.a56=10045,e.a57=10046,e.a58=10047,e.a59=10048,e.a60=10049,e.a61=10050,e.a62=10051,e.a63=10052,e.a64=10053,e.a65=10054,e.a66=10055,e.a67=10056,e.a68=10057,e.a69=10058,e.a70=10059,e.a71=9679,e.a72=10061,e.a73=9632,e.a74=10063,e.a203=10064,e.a75=10065,e.a204=10066,e.a76=9650,e.a77=9660,e.a78=9670,e.a79=10070,e.a81=9687,e.a82=10072,e.a83=10073,e.a84=10074,e.a97=10075,e.a98=10076,e.a99=10077,e.a100=10078,e.a101=10081,e.a102=10082,e.a103=10083,e.a104=10084,e.a106=10085,e.a107=10086,e.a108=10087,e.a112=9827,e.a111=9830,e.a110=9829,e.a109=9824,e.a120=9312,e.a121=9313,e.a122=9314,e.a123=9315,e.a124=9316,e.a125=9317,e.a126=9318,e.a127=9319,e.a128=9320,e.a129=9321,e.a130=10102,e.a131=10103,e.a132=10104,e.a133=10105,e.a134=10106,e.a135=10107,e.a136=10108,e.a137=10109,e.a138=10110,e.a139=10111,e.a140=10112,e.a141=10113,e.a142=10114,e.a143=10115,e.a144=10116,e.a145=10117,e.a146=10118,e.a147=10119,e.a148=10120,e.a149=10121,e.a150=10122,e.a151=10123,e.a152=10124,e.a153=10125,e.a154=10126,e.a155=10127,e.a156=10128,e.a157=10129,e.a158=10130,e.a159=10131,e.a160=10132,e.a161=8594,e.a163=8596,e.a164=8597,e.a196=10136,e.a165=10137,e.a192=10138,e.a166=10139,e.a167=10140,e.a168=10141,e.a169=10142,e.a170=10143,e.a171=10144,e.a172=10145,e.a173=10146,e.a162=10147,e.a174=10148,e.a175=10149,e.a176=10150,e.a177=10151,e.a178=10152,e.a179=10153,e.a193=10154,e.a180=10155,e.a199=10156,e.a181=10157,e.a200=10158,e.a182=10159,e.a201=10161,e.a183=10162,e.a184=10163,e.a197=10164,e.a185=10165,e.a194=10166,e.a198=10167,e.a186=10168,e.a195=10169,e.a187=10170,e.a188=10171,e.a189=10172,e.a190=10173,e.a191=10174,e.a89=10088,e.a90=10089,e.a93=10090,e.a94=10091,e.a91=10092,e.a92=10093,e.a205=10094,e.a85=10095,e.a206=10096,e.a86=10097,e.a87=10098,e.a88=10099,e.a95=10100,e.a96=10101,e[".notdef"]=0}));t.getGlyphsUnicode=o,t.getDingbatsGlyphsUnicode=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getGlyphMapForStandardFonts=t.getSymbolsFonts=t.getSerifFonts=t.getNonStdFontMap=t.getStdFontMap=void 0;var n=r(8),o=(0,n.getLookupTableFactory)((function(e){e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Courier-Bold"]="Courier-Bold",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e.Helvetica="Helvetica",e["Helvetica-Bold"]="Helvetica-Bold",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"}));t.getStdFontMap=o;var c=(0,n.getLookupTableFactory)((function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica",e.Wingdings="ZapfDingbats",e["Wingdings-Regular"]="ZapfDingbats"}));t.getNonStdFontMap=c;var l=(0,n.getLookupTableFactory)((function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinité"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0}));t.getSerifFonts=l;var h=(0,n.getLookupTableFactory)((function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0}));t.getSymbolsFonts=h;var d=(0,n.getLookupTableFactory)((function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[227]=353,e[229]=382,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}));t.getGlyphMapForStandardFonts=d;var f=(0,n.getLookupTableFactory)((function(e){e[227]=322,e[264]=261,e[291]=346}));t.getSupplementalGlyphMapForArialBlack=f;var m=(0,n.getLookupTableFactory)((function(e){e[1]=32,e[4]=65,e[17]=66,e[18]=67,e[24]=68,e[28]=69,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[87]=80,e[89]=81,e[90]=82,e[94]=83,e[100]=84,e[104]=85,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[127]=90,e[258]=97,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[282]=100,e[286]=101,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[383]=243,e[393]=112,e[395]=113,e[396]=114,e[400]=115,e[401]=347,e[410]=116,e[437]=117,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[460]=122,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45}));t.getSupplementalGlyphMapForCalibri=m},function(e,t,r){var n=r(8).getLookupTableFactory,o=n((function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120})),c=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}],l=n((function(e){e["¨"]=" ̈",e["¯"]=" ̄",e["´"]=" ́",e["µ"]="μ",e["¸"]=" ̧",e["Ĳ"]="IJ",e["ĳ"]="ij",e["Ŀ"]="L·",e["ŀ"]="l·",e["ŉ"]="ʼn",e["ſ"]="s",e["Ǆ"]="DŽ",e["ǅ"]="Dž",e["ǆ"]="dž",e["Ǉ"]="LJ",e["ǈ"]="Lj",e["ǉ"]="lj",e["Ǌ"]="NJ",e["ǋ"]="Nj",e["ǌ"]="nj",e["Ǳ"]="DZ",e["ǲ"]="Dz",e["ǳ"]="dz",e["˘"]=" ̆",e["˙"]=" ̇",e["˚"]=" ̊",e["˛"]=" ̨",e["˜"]=" ̃",e["˝"]=" ̋",e["ͺ"]=" ͅ",e["΄"]=" ́",e["ϐ"]="β",e["ϑ"]="θ",e["ϒ"]="Υ",e["ϕ"]="φ",e["ϖ"]="π",e["ϰ"]="κ",e["ϱ"]="ρ",e["ϲ"]="ς",e["ϴ"]="Θ",e["ϵ"]="ε",e["Ϲ"]="Σ",e["և"]="եւ",e["ٵ"]="اٴ",e["ٶ"]="وٴ",e["ٷ"]="ۇٴ",e["ٸ"]="يٴ",e["ำ"]="ํา",e["ຳ"]="ໍາ",e["ໜ"]="ຫນ",e["ໝ"]="ຫມ",e["ཷ"]="ྲཱྀ",e["ཹ"]="ླཱྀ",e["ẚ"]="aʾ",e["᾽"]=" ̓",e["᾿"]=" ̓",e["῀"]=" ͂",e["῾"]=" ̔",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e[" "]=" ",e["‗"]=" ̳",e["․"]=".",e["‥"]="..",e["…"]="...",e["″"]="′′",e["‴"]="′′′",e["‶"]="‵‵",e["‷"]="‵‵‵",e["‼"]="!!",e["‾"]=" ̅",e["⁇"]="??",e["⁈"]="?!",e["⁉"]="!?",e["⁗"]="′′′′",e[" "]=" ",e["₨"]="Rs",e["℀"]="a/c",e["℁"]="a/s",e["℃"]="°C",e["℅"]="c/o",e["℆"]="c/u",e["ℇ"]="Ɛ",e["℉"]="°F",e["№"]="No",e["℡"]="TEL",e["ℵ"]="א",e["ℶ"]="ב",e["ℷ"]="ג",e["ℸ"]="ד",e["℻"]="FAX",e["Ⅰ"]="I",e["Ⅱ"]="II",e["Ⅲ"]="III",e["Ⅳ"]="IV",e["Ⅴ"]="V",e["Ⅵ"]="VI",e["Ⅶ"]="VII",e["Ⅷ"]="VIII",e["Ⅸ"]="IX",e["Ⅹ"]="X",e["Ⅺ"]="XI",e["Ⅻ"]="XII",e["Ⅼ"]="L",e["Ⅽ"]="C",e["Ⅾ"]="D",e["Ⅿ"]="M",e["ⅰ"]="i",e["ⅱ"]="ii",e["ⅲ"]="iii",e["ⅳ"]="iv",e["ⅴ"]="v",e["ⅵ"]="vi",e["ⅶ"]="vii",e["ⅷ"]="viii",e["ⅸ"]="ix",e["ⅹ"]="x",e["ⅺ"]="xi",e["ⅻ"]="xii",e["ⅼ"]="l",e["ⅽ"]="c",e["ⅾ"]="d",e["ⅿ"]="m",e["∬"]="∫∫",e["∭"]="∫∫∫",e["∯"]="∮∮",e["∰"]="∮∮∮",e["⑴"]="(1)",e["⑵"]="(2)",e["⑶"]="(3)",e["⑷"]="(4)",e["⑸"]="(5)",e["⑹"]="(6)",e["⑺"]="(7)",e["⑻"]="(8)",e["⑼"]="(9)",e["⑽"]="(10)",e["⑾"]="(11)",e["⑿"]="(12)",e["⒀"]="(13)",e["⒁"]="(14)",e["⒂"]="(15)",e["⒃"]="(16)",e["⒄"]="(17)",e["⒅"]="(18)",e["⒆"]="(19)",e["⒇"]="(20)",e["⒈"]="1.",e["⒉"]="2.",e["⒊"]="3.",e["⒋"]="4.",e["⒌"]="5.",e["⒍"]="6.",e["⒎"]="7.",e["⒏"]="8.",e["⒐"]="9.",e["⒑"]="10.",e["⒒"]="11.",e["⒓"]="12.",e["⒔"]="13.",e["⒕"]="14.",e["⒖"]="15.",e["⒗"]="16.",e["⒘"]="17.",e["⒙"]="18.",e["⒚"]="19.",e["⒛"]="20.",e["⒜"]="(a)",e["⒝"]="(b)",e["⒞"]="(c)",e["⒟"]="(d)",e["⒠"]="(e)",e["⒡"]="(f)",e["⒢"]="(g)",e["⒣"]="(h)",e["⒤"]="(i)",e["⒥"]="(j)",e["⒦"]="(k)",e["⒧"]="(l)",e["⒨"]="(m)",e["⒩"]="(n)",e["⒪"]="(o)",e["⒫"]="(p)",e["⒬"]="(q)",e["⒭"]="(r)",e["⒮"]="(s)",e["⒯"]="(t)",e["⒰"]="(u)",e["⒱"]="(v)",e["⒲"]="(w)",e["⒳"]="(x)",e["⒴"]="(y)",e["⒵"]="(z)",e["⨌"]="∫∫∫∫",e["⩴"]="::=",e["⩵"]="==",e["⩶"]="===",e["⺟"]="母",e["⻳"]="龟",e["⼀"]="一",e["⼁"]="丨",e["⼂"]="丶",e["⼃"]="丿",e["⼄"]="乙",e["⼅"]="亅",e["⼆"]="二",e["⼇"]="亠",e["⼈"]="人",e["⼉"]="儿",e["⼊"]="入",e["⼋"]="八",e["⼌"]="冂",e["⼍"]="冖",e["⼎"]="冫",e["⼏"]="几",e["⼐"]="凵",e["⼑"]="刀",e["⼒"]="力",e["⼓"]="勹",e["⼔"]="匕",e["⼕"]="匚",e["⼖"]="匸",e["⼗"]="十",e["⼘"]="卜",e["⼙"]="卩",e["⼚"]="厂",e["⼛"]="厶",e["⼜"]="又",e["⼝"]="口",e["⼞"]="囗",e["⼟"]="土",e["⼠"]="士",e["⼡"]="夂",e["⼢"]="夊",e["⼣"]="夕",e["⼤"]="大",e["⼥"]="女",e["⼦"]="子",e["⼧"]="宀",e["⼨"]="寸",e["⼩"]="小",e["⼪"]="尢",e["⼫"]="尸",e["⼬"]="屮",e["⼭"]="山",e["⼮"]="巛",e["⼯"]="工",e["⼰"]="己",e["⼱"]="巾",e["⼲"]="干",e["⼳"]="幺",e["⼴"]="广",e["⼵"]="廴",e["⼶"]="廾",e["⼷"]="弋",e["⼸"]="弓",e["⼹"]="彐",e["⼺"]="彡",e["⼻"]="彳",e["⼼"]="心",e["⼽"]="戈",e["⼾"]="戶",e["⼿"]="手",e["⽀"]="支",e["⽁"]="攴",e["⽂"]="文",e["⽃"]="斗",e["⽄"]="斤",e["⽅"]="方",e["⽆"]="无",e["⽇"]="日",e["⽈"]="曰",e["⽉"]="月",e["⽊"]="木",e["⽋"]="欠",e["⽌"]="止",e["⽍"]="歹",e["⽎"]="殳",e["⽏"]="毋",e["⽐"]="比",e["⽑"]="毛",e["⽒"]="氏",e["⽓"]="气",e["⽔"]="水",e["⽕"]="火",e["⽖"]="爪",e["⽗"]="父",e["⽘"]="爻",e["⽙"]="爿",e["⽚"]="片",e["⽛"]="牙",e["⽜"]="牛",e["⽝"]="犬",e["⽞"]="玄",e["⽟"]="玉",e["⽠"]="瓜",e["⽡"]="瓦",e["⽢"]="甘",e["⽣"]="生",e["⽤"]="用",e["⽥"]="田",e["⽦"]="疋",e["⽧"]="疒",e["⽨"]="癶",e["⽩"]="白",e["⽪"]="皮",e["⽫"]="皿",e["⽬"]="目",e["⽭"]="矛",e["⽮"]="矢",e["⽯"]="石",e["⽰"]="示",e["⽱"]="禸",e["⽲"]="禾",e["⽳"]="穴",e["⽴"]="立",e["⽵"]="竹",e["⽶"]="米",e["⽷"]="糸",e["⽸"]="缶",e["⽹"]="网",e["⽺"]="羊",e["⽻"]="羽",e["⽼"]="老",e["⽽"]="而",e["⽾"]="耒",e["⽿"]="耳",e["⾀"]="聿",e["⾁"]="肉",e["⾂"]="臣",e["⾃"]="自",e["⾄"]="至",e["⾅"]="臼",e["⾆"]="舌",e["⾇"]="舛",e["⾈"]="舟",e["⾉"]="艮",e["⾊"]="色",e["⾋"]="艸",e["⾌"]="虍",e["⾍"]="虫",e["⾎"]="血",e["⾏"]="行",e["⾐"]="衣",e["⾑"]="襾",e["⾒"]="見",e["⾓"]="角",e["⾔"]="言",e["⾕"]="谷",e["⾖"]="豆",e["⾗"]="豕",e["⾘"]="豸",e["⾙"]="貝",e["⾚"]="赤",e["⾛"]="走",e["⾜"]="足",e["⾝"]="身",e["⾞"]="車",e["⾟"]="辛",e["⾠"]="辰",e["⾡"]="辵",e["⾢"]="邑",e["⾣"]="酉",e["⾤"]="釆",e["⾥"]="里",e["⾦"]="金",e["⾧"]="長",e["⾨"]="門",e["⾩"]="阜",e["⾪"]="隶",e["⾫"]="隹",e["⾬"]="雨",e["⾭"]="靑",e["⾮"]="非",e["⾯"]="面",e["⾰"]="革",e["⾱"]="韋",e["⾲"]="韭",e["⾳"]="音",e["⾴"]="頁",e["⾵"]="風",e["⾶"]="飛",e["⾷"]="食",e["⾸"]="首",e["⾹"]="香",e["⾺"]="馬",e["⾻"]="骨",e["⾼"]="高",e["⾽"]="髟",e["⾾"]="鬥",e["⾿"]="鬯",e["⿀"]="鬲",e["⿁"]="鬼",e["⿂"]="魚",e["⿃"]="鳥",e["⿄"]="鹵",e["⿅"]="鹿",e["⿆"]="麥",e["⿇"]="麻",e["⿈"]="黃",e["⿉"]="黍",e["⿊"]="黑",e["⿋"]="黹",e["⿌"]="黽",e["⿍"]="鼎",e["⿎"]="鼓",e["⿏"]="鼠",e["⿐"]="鼻",e["⿑"]="齊",e["⿒"]="齒",e["⿓"]="龍",e["⿔"]="龜",e["⿕"]="龠",e["〶"]="〒",e["〸"]="十",e["〹"]="卄",e["〺"]="卅",e["゛"]=" ゙",e["゜"]=" ゚",e["ㄱ"]="ᄀ",e["ㄲ"]="ᄁ",e["ㄳ"]="ᆪ",e["ㄴ"]="ᄂ",e["ㄵ"]="ᆬ",e["ㄶ"]="ᆭ",e["ㄷ"]="ᄃ",e["ㄸ"]="ᄄ",e["ㄹ"]="ᄅ",e["ㄺ"]="ᆰ",e["ㄻ"]="ᆱ",e["ㄼ"]="ᆲ",e["ㄽ"]="ᆳ",e["ㄾ"]="ᆴ",e["ㄿ"]="ᆵ",e["ㅀ"]="ᄚ",e["ㅁ"]="ᄆ",e["ㅂ"]="ᄇ",e["ㅃ"]="ᄈ",e["ㅄ"]="ᄡ",e["ㅅ"]="ᄉ",e["ㅆ"]="ᄊ",e["ㅇ"]="ᄋ",e["ㅈ"]="ᄌ",e["ㅉ"]="ᄍ",e["ㅊ"]="ᄎ",e["ㅋ"]="ᄏ",e["ㅌ"]="ᄐ",e["ㅍ"]="ᄑ",e["ㅎ"]="ᄒ",e["ㅏ"]="ᅡ",e["ㅐ"]="ᅢ",e["ㅑ"]="ᅣ",e["ㅒ"]="ᅤ",e["ㅓ"]="ᅥ",e["ㅔ"]="ᅦ",e["ㅕ"]="ᅧ",e["ㅖ"]="ᅨ",e["ㅗ"]="ᅩ",e["ㅘ"]="ᅪ",e["ㅙ"]="ᅫ",e["ㅚ"]="ᅬ",e["ㅛ"]="ᅭ",e["ㅜ"]="ᅮ",e["ㅝ"]="ᅯ",e["ㅞ"]="ᅰ",e["ㅟ"]="ᅱ",e["ㅠ"]="ᅲ",e["ㅡ"]="ᅳ",e["ㅢ"]="ᅴ",e["ㅣ"]="ᅵ",e["ㅤ"]="ᅠ",e["ㅥ"]="ᄔ",e["ㅦ"]="ᄕ",e["ㅧ"]="ᇇ",e["ㅨ"]="ᇈ",e["ㅩ"]="ᇌ",e["ㅪ"]="ᇎ",e["ㅫ"]="ᇓ",e["ㅬ"]="ᇗ",e["ㅭ"]="ᇙ",e["ㅮ"]="ᄜ",e["ㅯ"]="ᇝ",e["ㅰ"]="ᇟ",e["ㅱ"]="ᄝ",e["ㅲ"]="ᄞ",e["ㅳ"]="ᄠ",e["ㅴ"]="ᄢ",e["ㅵ"]="ᄣ",e["ㅶ"]="ᄧ",e["ㅷ"]="ᄩ",e["ㅸ"]="ᄫ",e["ㅹ"]="ᄬ",e["ㅺ"]="ᄭ",e["ㅻ"]="ᄮ",e["ㅼ"]="ᄯ",e["ㅽ"]="ᄲ",e["ㅾ"]="ᄶ",e["ㅿ"]="ᅀ",e["ㆀ"]="ᅇ",e["ㆁ"]="ᅌ",e["ㆂ"]="ᇱ",e["ㆃ"]="ᇲ",e["ㆄ"]="ᅗ",e["ㆅ"]="ᅘ",e["ㆆ"]="ᅙ",e["ㆇ"]="ᆄ",e["ㆈ"]="ᆅ",e["ㆉ"]="ᆈ",e["ㆊ"]="ᆑ",e["ㆋ"]="ᆒ",e["ㆌ"]="ᆔ",e["ㆍ"]="ᆞ",e["ㆎ"]="ᆡ",e["㈀"]="(ᄀ)",e["㈁"]="(ᄂ)",e["㈂"]="(ᄃ)",e["㈃"]="(ᄅ)",e["㈄"]="(ᄆ)",e["㈅"]="(ᄇ)",e["㈆"]="(ᄉ)",e["㈇"]="(ᄋ)",e["㈈"]="(ᄌ)",e["㈉"]="(ᄎ)",e["㈊"]="(ᄏ)",e["㈋"]="(ᄐ)",e["㈌"]="(ᄑ)",e["㈍"]="(ᄒ)",e["㈎"]="(가)",e["㈏"]="(나)",e["㈐"]="(다)",e["㈑"]="(라)",e["㈒"]="(마)",e["㈓"]="(바)",e["㈔"]="(사)",e["㈕"]="(아)",e["㈖"]="(자)",e["㈗"]="(차)",e["㈘"]="(카)",e["㈙"]="(타)",e["㈚"]="(파)",e["㈛"]="(하)",e["㈜"]="(주)",e["㈝"]="(오전)",e["㈞"]="(오후)",e["㈠"]="(一)",e["㈡"]="(二)",e["㈢"]="(三)",e["㈣"]="(四)",e["㈤"]="(五)",e["㈥"]="(六)",e["㈦"]="(七)",e["㈧"]="(八)",e["㈨"]="(九)",e["㈩"]="(十)",e["㈪"]="(月)",e["㈫"]="(火)",e["㈬"]="(水)",e["㈭"]="(木)",e["㈮"]="(金)",e["㈯"]="(土)",e["㈰"]="(日)",e["㈱"]="(株)",e["㈲"]="(有)",e["㈳"]="(社)",e["㈴"]="(名)",e["㈵"]="(特)",e["㈶"]="(財)",e["㈷"]="(祝)",e["㈸"]="(労)",e["㈹"]="(代)",e["㈺"]="(呼)",e["㈻"]="(学)",e["㈼"]="(監)",e["㈽"]="(企)",e["㈾"]="(資)",e["㈿"]="(協)",e["㉀"]="(祭)",e["㉁"]="(休)",e["㉂"]="(自)",e["㉃"]="(至)",e["㋀"]="1月",e["㋁"]="2月",e["㋂"]="3月",e["㋃"]="4月",e["㋄"]="5月",e["㋅"]="6月",e["㋆"]="7月",e["㋇"]="8月",e["㋈"]="9月",e["㋉"]="10月",e["㋊"]="11月",e["㋋"]="12月",e["㍘"]="0点",e["㍙"]="1点",e["㍚"]="2点",e["㍛"]="3点",e["㍜"]="4点",e["㍝"]="5点",e["㍞"]="6点",e["㍟"]="7点",e["㍠"]="8点",e["㍡"]="9点",e["㍢"]="10点",e["㍣"]="11点",e["㍤"]="12点",e["㍥"]="13点",e["㍦"]="14点",e["㍧"]="15点",e["㍨"]="16点",e["㍩"]="17点",e["㍪"]="18点",e["㍫"]="19点",e["㍬"]="20点",e["㍭"]="21点",e["㍮"]="22点",e["㍯"]="23点",e["㍰"]="24点",e["㏠"]="1日",e["㏡"]="2日",e["㏢"]="3日",e["㏣"]="4日",e["㏤"]="5日",e["㏥"]="6日",e["㏦"]="7日",e["㏧"]="8日",e["㏨"]="9日",e["㏩"]="10日",e["㏪"]="11日",e["㏫"]="12日",e["㏬"]="13日",e["㏭"]="14日",e["㏮"]="15日",e["㏯"]="16日",e["㏰"]="17日",e["㏱"]="18日",e["㏲"]="19日",e["㏳"]="20日",e["㏴"]="21日",e["㏵"]="22日",e["㏶"]="23日",e["㏷"]="24日",e["㏸"]="25日",e["㏹"]="26日",e["㏺"]="27日",e["㏻"]="28日",e["㏼"]="29日",e["㏽"]="30日",e["㏾"]="31日",e["ﬀ"]="ff",e["ﬁ"]="fi",e["ﬂ"]="fl",e["ﬃ"]="ffi",e["ﬄ"]="ffl",e["ﬅ"]="ſt",e["ﬆ"]="st",e["ﬓ"]="մն",e["ﬔ"]="մե",e["ﬕ"]="մի",e["ﬖ"]="վն",e["ﬗ"]="մխ",e["ﭏ"]="אל",e["ﭐ"]="ٱ",e["ﭑ"]="ٱ",e["ﭒ"]="ٻ",e["ﭓ"]="ٻ",e["ﭔ"]="ٻ",e["ﭕ"]="ٻ",e["ﭖ"]="پ",e["ﭗ"]="پ",e["ﭘ"]="پ",e["ﭙ"]="پ",e["ﭚ"]="ڀ",e["ﭛ"]="ڀ",e["ﭜ"]="ڀ",e["ﭝ"]="ڀ",e["ﭞ"]="ٺ",e["ﭟ"]="ٺ",e["ﭠ"]="ٺ",e["ﭡ"]="ٺ",e["ﭢ"]="ٿ",e["ﭣ"]="ٿ",e["ﭤ"]="ٿ",e["ﭥ"]="ٿ",e["ﭦ"]="ٹ",e["ﭧ"]="ٹ",e["ﭨ"]="ٹ",e["ﭩ"]="ٹ",e["ﭪ"]="ڤ",e["ﭫ"]="ڤ",e["ﭬ"]="ڤ",e["ﭭ"]="ڤ",e["ﭮ"]="ڦ",e["ﭯ"]="ڦ",e["ﭰ"]="ڦ",e["ﭱ"]="ڦ",e["ﭲ"]="ڄ",e["ﭳ"]="ڄ",e["ﭴ"]="ڄ",e["ﭵ"]="ڄ",e["ﭶ"]="ڃ",e["ﭷ"]="ڃ",e["ﭸ"]="ڃ",e["ﭹ"]="ڃ",e["ﭺ"]="چ",e["ﭻ"]="چ",e["ﭼ"]="چ",e["ﭽ"]="چ",e["ﭾ"]="ڇ",e["ﭿ"]="ڇ",e["ﮀ"]="ڇ",e["ﮁ"]="ڇ",e["ﮂ"]="ڍ",e["ﮃ"]="ڍ",e["ﮄ"]="ڌ",e["ﮅ"]="ڌ",e["ﮆ"]="ڎ",e["ﮇ"]="ڎ",e["ﮈ"]="ڈ",e["ﮉ"]="ڈ",e["ﮊ"]="ژ",e["ﮋ"]="ژ",e["ﮌ"]="ڑ",e["ﮍ"]="ڑ",e["ﮎ"]="ک",e["ﮏ"]="ک",e["ﮐ"]="ک",e["ﮑ"]="ک",e["ﮒ"]="گ",e["ﮓ"]="گ",e["ﮔ"]="گ",e["ﮕ"]="گ",e["ﮖ"]="ڳ",e["ﮗ"]="ڳ",e["ﮘ"]="ڳ",e["ﮙ"]="ڳ",e["ﮚ"]="ڱ",e["ﮛ"]="ڱ",e["ﮜ"]="ڱ",e["ﮝ"]="ڱ",e["ﮞ"]="ں",e["ﮟ"]="ں",e["ﮠ"]="ڻ",e["ﮡ"]="ڻ",e["ﮢ"]="ڻ",e["ﮣ"]="ڻ",e["ﮤ"]="ۀ",e["ﮥ"]="ۀ",e["ﮦ"]="ہ",e["ﮧ"]="ہ",e["ﮨ"]="ہ",e["ﮩ"]="ہ",e["ﮪ"]="ھ",e["ﮫ"]="ھ",e["ﮬ"]="ھ",e["ﮭ"]="ھ",e["ﮮ"]="ے",e["ﮯ"]="ے",e["ﮰ"]="ۓ",e["ﮱ"]="ۓ",e["ﯓ"]="ڭ",e["ﯔ"]="ڭ",e["ﯕ"]="ڭ",e["ﯖ"]="ڭ",e["ﯗ"]="ۇ",e["ﯘ"]="ۇ",e["ﯙ"]="ۆ",e["ﯚ"]="ۆ",e["ﯛ"]="ۈ",e["ﯜ"]="ۈ",e["ﯝ"]="ٷ",e["ﯞ"]="ۋ",e["ﯟ"]="ۋ",e["ﯠ"]="ۅ",e["ﯡ"]="ۅ",e["ﯢ"]="ۉ",e["ﯣ"]="ۉ",e["ﯤ"]="ې",e["ﯥ"]="ې",e["ﯦ"]="ې",e["ﯧ"]="ې",e["ﯨ"]="ى",e["ﯩ"]="ى",e["ﯪ"]="ئا",e["ﯫ"]="ئا",e["ﯬ"]="ئە",e["ﯭ"]="ئە",e["ﯮ"]="ئو",e["ﯯ"]="ئو",e["ﯰ"]="ئۇ",e["ﯱ"]="ئۇ",e["ﯲ"]="ئۆ",e["ﯳ"]="ئۆ",e["ﯴ"]="ئۈ",e["ﯵ"]="ئۈ",e["ﯶ"]="ئې";e["ﯷ"]="ئې",e["ﯸ"]="ئې",e["ﯹ"]="ئى",e["ﯺ"]="ئى",e["ﯻ"]="ئى",e["ﯼ"]="ی",e["ﯽ"]="ی",e["ﯾ"]="ی",e["ﯿ"]="ی",e["ﰀ"]="ئج",e["ﰁ"]="ئح",e["ﰂ"]="ئم",e["ﰃ"]="ئى",e["ﰄ"]="ئي",e["ﰅ"]="بج",e["ﰆ"]="بح",e["ﰇ"]="بخ",e["ﰈ"]="بم",e["ﰉ"]="بى",e["ﰊ"]="بي",e["ﰋ"]="تج",e["ﰌ"]="تح",e["ﰍ"]="تخ",e["ﰎ"]="تم",e["ﰏ"]="تى",e["ﰐ"]="تي",e["ﰑ"]="ثج",e["ﰒ"]="ثم",e["ﰓ"]="ثى",e["ﰔ"]="ثي",e["ﰕ"]="جح",e["ﰖ"]="جم",e["ﰗ"]="حج",e["ﰘ"]="حم",e["ﰙ"]="خج",e["ﰚ"]="خح",e["ﰛ"]="خم",e["ﰜ"]="سج",e["ﰝ"]="سح",e["ﰞ"]="سخ",e["ﰟ"]="سم",e["ﰠ"]="صح",e["ﰡ"]="صم",e["ﰢ"]="ضج",e["ﰣ"]="ضح",e["ﰤ"]="ضخ",e["ﰥ"]="ضم",e["ﰦ"]="طح",e["ﰧ"]="طم",e["ﰨ"]="ظم",e["ﰩ"]="عج",e["ﰪ"]="عم",e["ﰫ"]="غج",e["ﰬ"]="غم",e["ﰭ"]="فج",e["ﰮ"]="فح",e["ﰯ"]="فخ",e["ﰰ"]="فم",e["ﰱ"]="فى",e["ﰲ"]="في",e["ﰳ"]="قح",e["ﰴ"]="قم",e["ﰵ"]="قى",e["ﰶ"]="قي",e["ﰷ"]="كا",e["ﰸ"]="كج",e["ﰹ"]="كح",e["ﰺ"]="كخ",e["ﰻ"]="كل",e["ﰼ"]="كم",e["ﰽ"]="كى",e["ﰾ"]="كي",e["ﰿ"]="لج",e["ﱀ"]="لح",e["ﱁ"]="لخ",e["ﱂ"]="لم",e["ﱃ"]="لى",e["ﱄ"]="لي",e["ﱅ"]="مج",e["ﱆ"]="مح",e["ﱇ"]="مخ",e["ﱈ"]="مم",e["ﱉ"]="مى",e["ﱊ"]="مي",e["ﱋ"]="نج",e["ﱌ"]="نح",e["ﱍ"]="نخ",e["ﱎ"]="نم",e["ﱏ"]="نى",e["ﱐ"]="ني",e["ﱑ"]="هج",e["ﱒ"]="هم",e["ﱓ"]="هى",e["ﱔ"]="هي",e["ﱕ"]="يج",e["ﱖ"]="يح",e["ﱗ"]="يخ",e["ﱘ"]="يم",e["ﱙ"]="يى",e["ﱚ"]="يي",e["ﱛ"]="ذٰ",e["ﱜ"]="رٰ",e["ﱝ"]="ىٰ",e["ﱞ"]=" ٌّ",e["ﱟ"]=" ٍّ",e["ﱠ"]=" َّ",e["ﱡ"]=" ُّ",e["ﱢ"]=" ِّ",e["ﱣ"]=" ّٰ",e["ﱤ"]="ئر",e["ﱥ"]="ئز",e["ﱦ"]="ئم",e["ﱧ"]="ئن",e["ﱨ"]="ئى",e["ﱩ"]="ئي",e["ﱪ"]="بر",e["ﱫ"]="بز",e["ﱬ"]="بم",e["ﱭ"]="بن",e["ﱮ"]="بى",e["ﱯ"]="بي",e["ﱰ"]="تر",e["ﱱ"]="تز",e["ﱲ"]="تم",e["ﱳ"]="تن",e["ﱴ"]="تى",e["ﱵ"]="تي",e["ﱶ"]="ثر",e["ﱷ"]="ثز",e["ﱸ"]="ثم",e["ﱹ"]="ثن",e["ﱺ"]="ثى",e["ﱻ"]="ثي",e["ﱼ"]="فى",e["ﱽ"]="في",e["ﱾ"]="قى",e["ﱿ"]="قي",e["ﲀ"]="كا",e["ﲁ"]="كل",e["ﲂ"]="كم",e["ﲃ"]="كى",e["ﲄ"]="كي",e["ﲅ"]="لم",e["ﲆ"]="لى",e["ﲇ"]="لي",e["ﲈ"]="ما",e["ﲉ"]="مم",e["ﲊ"]="نر",e["ﲋ"]="نز",e["ﲌ"]="نم",e["ﲍ"]="نن",e["ﲎ"]="نى",e["ﲏ"]="ني",e["ﲐ"]="ىٰ",e["ﲑ"]="ير",e["ﲒ"]="يز",e["ﲓ"]="يم",e["ﲔ"]="ين",e["ﲕ"]="يى",e["ﲖ"]="يي",e["ﲗ"]="ئج",e["ﲘ"]="ئح",e["ﲙ"]="ئخ",e["ﲚ"]="ئم",e["ﲛ"]="ئه",e["ﲜ"]="بج",e["ﲝ"]="بح",e["ﲞ"]="بخ",e["ﲟ"]="بم",e["ﲠ"]="به",e["ﲡ"]="تج",e["ﲢ"]="تح",e["ﲣ"]="تخ",e["ﲤ"]="تم",e["ﲥ"]="ته",e["ﲦ"]="ثم",e["ﲧ"]="جح",e["ﲨ"]="جم",e["ﲩ"]="حج",e["ﲪ"]="حم",e["ﲫ"]="خج",e["ﲬ"]="خم",e["ﲭ"]="سج",e["ﲮ"]="سح",e["ﲯ"]="سخ",e["ﲰ"]="سم",e["ﲱ"]="صح",e["ﲲ"]="صخ",e["ﲳ"]="صم",e["ﲴ"]="ضج",e["ﲵ"]="ضح",e["ﲶ"]="ضخ",e["ﲷ"]="ضم",e["ﲸ"]="طح",e["ﲹ"]="ظم",e["ﲺ"]="عج",e["ﲻ"]="عم",e["ﲼ"]="غج",e["ﲽ"]="غم",e["ﲾ"]="فج",e["ﲿ"]="فح",e["ﳀ"]="فخ",e["ﳁ"]="فم",e["ﳂ"]="قح",e["ﳃ"]="قم",e["ﳄ"]="كج",e["ﳅ"]="كح",e["ﳆ"]="كخ",e["ﳇ"]="كل",e["ﳈ"]="كم",e["ﳉ"]="لج",e["ﳊ"]="لح",e["ﳋ"]="لخ",e["ﳌ"]="لم",e["ﳍ"]="له",e["ﳎ"]="مج",e["ﳏ"]="مح",e["ﳐ"]="مخ",e["ﳑ"]="مم",e["ﳒ"]="نج",e["ﳓ"]="نح",e["ﳔ"]="نخ",e["ﳕ"]="نم",e["ﳖ"]="نه",e["ﳗ"]="هج",e["ﳘ"]="هم",e["ﳙ"]="هٰ",e["ﳚ"]="يج",e["ﳛ"]="يح",e["ﳜ"]="يخ",e["ﳝ"]="يم",e["ﳞ"]="يه",e["ﳟ"]="ئم",e["ﳠ"]="ئه",e["ﳡ"]="بم",e["ﳢ"]="به",e["ﳣ"]="تم",e["ﳤ"]="ته",e["ﳥ"]="ثم",e["ﳦ"]="ثه",e["ﳧ"]="سم",e["ﳨ"]="سه",e["ﳩ"]="شم",e["ﳪ"]="شه",e["ﳫ"]="كل",e["ﳬ"]="كم",e["ﳭ"]="لم",e["ﳮ"]="نم",e["ﳯ"]="نه",e["ﳰ"]="يم",e["ﳱ"]="يه",e["ﳲ"]="ـَّ",e["ﳳ"]="ـُّ",e["ﳴ"]="ـِّ",e["ﳵ"]="طى",e["ﳶ"]="طي",e["ﳷ"]="عى",e["ﳸ"]="عي",e["ﳹ"]="غى",e["ﳺ"]="غي",e["ﳻ"]="سى",e["ﳼ"]="سي",e["ﳽ"]="شى",e["ﳾ"]="شي",e["ﳿ"]="حى",e["ﴀ"]="حي",e["ﴁ"]="جى",e["ﴂ"]="جي",e["ﴃ"]="خى",e["ﴄ"]="خي",e["ﴅ"]="صى",e["ﴆ"]="صي",e["ﴇ"]="ضى",e["ﴈ"]="ضي",e["ﴉ"]="شج",e["ﴊ"]="شح",e["ﴋ"]="شخ",e["ﴌ"]="شم",e["ﴍ"]="شر",e["ﴎ"]="سر",e["ﴏ"]="صر",e["ﴐ"]="ضر",e["ﴑ"]="طى",e["ﴒ"]="طي",e["ﴓ"]="عى",e["ﴔ"]="عي",e["ﴕ"]="غى",e["ﴖ"]="غي",e["ﴗ"]="سى",e["ﴘ"]="سي",e["ﴙ"]="شى",e["ﴚ"]="شي",e["ﴛ"]="حى",e["ﴜ"]="حي",e["ﴝ"]="جى",e["ﴞ"]="جي",e["ﴟ"]="خى",e["ﴠ"]="خي",e["ﴡ"]="صى",e["ﴢ"]="صي",e["ﴣ"]="ضى",e["ﴤ"]="ضي",e["ﴥ"]="شج",e["ﴦ"]="شح",e["ﴧ"]="شخ",e["ﴨ"]="شم",e["ﴩ"]="شر",e["ﴪ"]="سر",e["ﴫ"]="صر",e["ﴬ"]="ضر",e["ﴭ"]="شج",e["ﴮ"]="شح",e["ﴯ"]="شخ",e["ﴰ"]="شم",e["ﴱ"]="سه",e["ﴲ"]="شه",e["ﴳ"]="طم",e["ﴴ"]="سج",e["ﴵ"]="سح",e["ﴶ"]="سخ",e["ﴷ"]="شج",e["ﴸ"]="شح",e["ﴹ"]="شخ",e["ﴺ"]="طم",e["ﴻ"]="ظم",e["ﴼ"]="اً",e["ﴽ"]="اً",e["ﵐ"]="تجم",e["ﵑ"]="تحج",e["ﵒ"]="تحج",e["ﵓ"]="تحم",e["ﵔ"]="تخم",e["ﵕ"]="تمج",e["ﵖ"]="تمح",e["ﵗ"]="تمخ",e["ﵘ"]="جمح",e["ﵙ"]="جمح",e["ﵚ"]="حمي",e["ﵛ"]="حمى",e["ﵜ"]="سحج",e["ﵝ"]="سجح",e["ﵞ"]="سجى",e["ﵟ"]="سمح",e["ﵠ"]="سمح",e["ﵡ"]="سمج",e["ﵢ"]="سمم",e["ﵣ"]="سمم",e["ﵤ"]="صحح",e["ﵥ"]="صحح",e["ﵦ"]="صمم",e["ﵧ"]="شحم",e["ﵨ"]="شحم",e["ﵩ"]="شجي",e["ﵪ"]="شمخ",e["ﵫ"]="شمخ",e["ﵬ"]="شمم",e["ﵭ"]="شمم",e["ﵮ"]="ضحى",e["ﵯ"]="ضخم",e["ﵰ"]="ضخم",e["ﵱ"]="طمح",e["ﵲ"]="طمح",e["ﵳ"]="طمم",e["ﵴ"]="طمي",e["ﵵ"]="عجم",e["ﵶ"]="عمم",e["ﵷ"]="عمم",e["ﵸ"]="عمى",e["ﵹ"]="غمم",e["ﵺ"]="غمي",e["ﵻ"]="غمى",e["ﵼ"]="فخم",e["ﵽ"]="فخم",e["ﵾ"]="قمح",e["ﵿ"]="قمم",e["ﶀ"]="لحم",e["ﶁ"]="لحي",e["ﶂ"]="لحى",e["ﶃ"]="لجج",e["ﶄ"]="لجج",e["ﶅ"]="لخم",e["ﶆ"]="لخم",e["ﶇ"]="لمح",e["ﶈ"]="لمح",e["ﶉ"]="محج",e["ﶊ"]="محم",e["ﶋ"]="محي",e["ﶌ"]="مجح",e["ﶍ"]="مجم",e["ﶎ"]="مخج",e["ﶏ"]="مخم",e["ﶒ"]="مجخ",e["ﶓ"]="همج",e["ﶔ"]="همم",e["ﶕ"]="نحم",e["ﶖ"]="نحى",e["ﶗ"]="نجم",e["ﶘ"]="نجم",e["ﶙ"]="نجى",e["ﶚ"]="نمي",e["ﶛ"]="نمى",e["ﶜ"]="يمم",e["ﶝ"]="يمم",e["ﶞ"]="بخي",e["ﶟ"]="تجي",e["ﶠ"]="تجى",e["ﶡ"]="تخي",e["ﶢ"]="تخى",e["ﶣ"]="تمي",e["ﶤ"]="تمى",e["ﶥ"]="جمي",e["ﶦ"]="جحى",e["ﶧ"]="جمى",e["ﶨ"]="سخى",e["ﶩ"]="صحي",e["ﶪ"]="شحي",e["ﶫ"]="ضحي",e["ﶬ"]="لجي",e["ﶭ"]="لمي",e["ﶮ"]="يحي",e["ﶯ"]="يجي",e["ﶰ"]="يمي",e["ﶱ"]="ممي",e["ﶲ"]="قمي",e["ﶳ"]="نحي",e["ﶴ"]="قمح",e["ﶵ"]="لحم",e["ﶶ"]="عمي",e["ﶷ"]="كمي",e["ﶸ"]="نجح",e["ﶹ"]="مخي",e["ﶺ"]="لجم",e["ﶻ"]="كمم",e["ﶼ"]="لجم",e["ﶽ"]="نجح",e["ﶾ"]="جحي",e["ﶿ"]="حجي",e["ﷀ"]="مجي",e["ﷁ"]="فمي",e["ﷂ"]="بحي",e["ﷃ"]="كمم",e["ﷄ"]="عجم",e["ﷅ"]="صمم",e["ﷆ"]="سخي",e["ﷇ"]="نجي",e["﹉"]="‾",e["﹊"]="‾",e["﹋"]="‾",e["﹌"]="‾",e["﹍"]="_",e["﹎"]="_",e["﹏"]="_",e["ﺀ"]="ء",e["ﺁ"]="آ",e["ﺂ"]="آ",e["ﺃ"]="أ",e["ﺄ"]="أ",e["ﺅ"]="ؤ",e["ﺆ"]="ؤ",e["ﺇ"]="إ",e["ﺈ"]="إ",e["ﺉ"]="ئ",e["ﺊ"]="ئ",e["ﺋ"]="ئ",e["ﺌ"]="ئ",e["ﺍ"]="ا",e["ﺎ"]="ا",e["ﺏ"]="ب",e["ﺐ"]="ب",e["ﺑ"]="ب",e["ﺒ"]="ب",e["ﺓ"]="ة",e["ﺔ"]="ة",e["ﺕ"]="ت",e["ﺖ"]="ت",e["ﺗ"]="ت",e["ﺘ"]="ت",e["ﺙ"]="ث",e["ﺚ"]="ث",e["ﺛ"]="ث",e["ﺜ"]="ث",e["ﺝ"]="ج",e["ﺞ"]="ج",e["ﺟ"]="ج",e["ﺠ"]="ج",e["ﺡ"]="ح",e["ﺢ"]="ح",e["ﺣ"]="ح",e["ﺤ"]="ح",e["ﺥ"]="خ",e["ﺦ"]="خ",e["ﺧ"]="خ",e["ﺨ"]="خ",e["ﺩ"]="د",e["ﺪ"]="د",e["ﺫ"]="ذ",e["ﺬ"]="ذ",e["ﺭ"]="ر",e["ﺮ"]="ر",e["ﺯ"]="ز",e["ﺰ"]="ز",e["ﺱ"]="س",e["ﺲ"]="س",e["ﺳ"]="س",e["ﺴ"]="س",e["ﺵ"]="ش",e["ﺶ"]="ش",e["ﺷ"]="ش",e["ﺸ"]="ش",e["ﺹ"]="ص",e["ﺺ"]="ص",e["ﺻ"]="ص",e["ﺼ"]="ص",e["ﺽ"]="ض",e["ﺾ"]="ض",e["ﺿ"]="ض",e["ﻀ"]="ض",e["ﻁ"]="ط",e["ﻂ"]="ط",e["ﻃ"]="ط",e["ﻄ"]="ط",e["ﻅ"]="ظ",e["ﻆ"]="ظ",e["ﻇ"]="ظ",e["ﻈ"]="ظ",e["ﻉ"]="ع",e["ﻊ"]="ع",e["ﻋ"]="ع",e["ﻌ"]="ع",e["ﻍ"]="غ",e["ﻎ"]="غ",e["ﻏ"]="غ",e["ﻐ"]="غ",e["ﻑ"]="ف",e["ﻒ"]="ف",e["ﻓ"]="ف",e["ﻔ"]="ف",e["ﻕ"]="ق",e["ﻖ"]="ق",e["ﻗ"]="ق",e["ﻘ"]="ق",e["ﻙ"]="ك",e["ﻚ"]="ك",e["ﻛ"]="ك",e["ﻜ"]="ك",e["ﻝ"]="ل",e["ﻞ"]="ل",e["ﻟ"]="ل",e["ﻠ"]="ل",e["ﻡ"]="م",e["ﻢ"]="م",e["ﻣ"]="م",e["ﻤ"]="م",e["ﻥ"]="ن",e["ﻦ"]="ن",e["ﻧ"]="ن",e["ﻨ"]="ن",e["ﻩ"]="ه",e["ﻪ"]="ه",e["ﻫ"]="ه",e["ﻬ"]="ه",e["ﻭ"]="و",e["ﻮ"]="و",e["ﻯ"]="ى",e["ﻰ"]="ى",e["ﻱ"]="ي",e["ﻲ"]="ي",e["ﻳ"]="ي",e["ﻴ"]="ي",e["ﻵ"]="لآ",e["ﻶ"]="لآ",e["ﻷ"]="لأ",e["ﻸ"]="لأ",e["ﻹ"]="لإ",e["ﻺ"]="لإ",e["ﻻ"]="لا",e["ﻼ"]="لا"}));t.mapSpecialUnicodeValues=function(code){return code>=65520&&code<=65535?0:code>=62976&&code<=63743?o()[code]||code:173===code?45:code},t.reverseIfRtl=function(e){var t,r,n=e.length;if(n<=1||!((t=e.charCodeAt(0))>=(r=c[13]).begin&&t<r.end||t>=(r=c[11]).begin&&t<r.end))return e;for(var s="",o=n-1;o>=0;o--)s+=e[o];return s},t.getUnicodeRangeFor=function(e){for(var i=0,t=c.length;i<t;i++){var r=c[i];if(e>=r.begin&&e<r.end)return i}return-1},t.getNormalizedUnicodes=l,t.getUnicodeForGlyph=function(e,t){var r=t[e];if(void 0!==r)return r;if(!e)return-1;if("u"===e[0]){var n,o=e.length;if(7===o&&"n"===e[1]&&"i"===e[2])n=e.substring(3);else{if(!(o>=5&&o<=7))return-1;n=e.substring(1)}if(n===n.toUpperCase()&&(r=parseInt(n,16))>=0)return r}return-1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var n=r(2),o=r(30),c=r(33),l=r(32),h=r(12),d=function(){function e(data,e){return data[e]<<24|data[e+1]<<16|data[e+2]<<8|data[e+3]}function t(data,e){return data[e]<<8|data[e+1]}function r(e){var t=e.length,r=32768;return t<1240?r=107:t<33900&&(r=1131),r}function d(data,r,o){var c,p,i,l=1===t(data,r+2)?e(data,r+8):e(data,r+16),h=t(data,r+l);if(4===h){t(data,r+l+2);var d=t(data,r+l+6)>>1;for(p=r+l+14,c=[],i=0;i<d;i++,p+=2)c[i]={end:t(data,p)};for(p+=2,i=0;i<d;i++,p+=2)c[i].start=t(data,p);for(i=0;i<d;i++,p+=2)c[i].idDelta=t(data,p);for(i=0;i<d;i++,p+=2){var f=t(data,p);if(0!==f){c[i].ids=[];for(var m=0,v=c[i].end-c[i].start+1;m<v;m++)c[i].ids[m]=t(data,p+f),f+=2}}return c}if(12===h){e(data,r+l+4);var y=e(data,r+l+12);for(p=r+l+16,c=[],i=0;i<y;i++)c.push({start:e(data,p),end:e(data,p+4),idDelta:e(data,p+8)-e(data,p)}),p+=12;return c}throw new n.FormatError("unsupported cmap: ".concat(h))}function f(data,e,t,r){var n=new o.CFFParser(new h.Stream(data,e,t-e),{},r).parse();return{glyphs:n.charStrings.objects,subrs:n.topDict.privateDict&&n.topDict.privateDict.subrsIndex&&n.topDict.privateDict.subrsIndex.objects,gsubrs:n.globalSubrIndex&&n.globalSubrIndex.objects,isCFFCIDFont:n.isCIDFont,fdSelect:n.fdSelect,fdArray:n.fdArray}}function m(e,t){for(var code=t.codePointAt(0),r=0,n=0,o=e.length-1;n<o;){var c=n+o+1>>1;code<e[c].start?o=c-1:n=c}return e[n].start<=code&&code<=e[n].end&&(r=e[n].idDelta+(e[n].ids?e[n].ids[code-e[n].start]:code)&65535),{charCode:code,glyphId:r}}function v(code,e,t){function r(t,r){e.push({cmd:"moveTo",args:[t,r]})}function n(t,r){e.push({cmd:"lineTo",args:[t,r]})}function o(t,r,n,o){e.push({cmd:"quadraticCurveTo",args:[t,r,n,o]})}var c,i=0,l=(code[i]<<24|code[i+1]<<16)>>16,h=0,d=0;if(i+=10,l<0)do{c=code[i]<<8|code[i+1];var f,m,y=code[i+2]<<8|code[i+3];i+=4,1&c?(f=(code[i]<<24|code[i+1]<<16)>>16,m=(code[i+2]<<24|code[i+3]<<16)>>16,i+=4):(f=code[i++],m=code[i++]),2&c?(h=f,d=m):(h=0,d=0);var k=1,w=1,S=0,A=0;8&c?(k=w=(code[i]<<24|code[i+1]<<16)/1073741824,i+=2):64&c?(k=(code[i]<<24|code[i+1]<<16)/1073741824,w=(code[i+2]<<24|code[i+3]<<16)/1073741824,i+=4):128&c&&(k=(code[i]<<24|code[i+1]<<16)/1073741824,S=(code[i+2]<<24|code[i+3]<<16)/1073741824,A=(code[i+4]<<24|code[i+5]<<16)/1073741824,w=(code[i+6]<<24|code[i+7]<<16)/1073741824,i+=8);var x=t.glyphs[y];x&&(e.push({cmd:"save"}),e.push({cmd:"transform",args:[k,S,A,w,h,d]}),v(x,e,t),e.push({cmd:"restore"}))}while(32&c);else{var C,_,P=[];for(C=0;C<l;C++)P.push(code[i]<<8|code[i+1]),i+=2;i+=2+(code[i]<<8|code[i+1]);for(var T=P[P.length-1]+1,I=[];I.length<T;){var E=1;for(8&(c=code[i++])&&(E+=code[i++]);E-- >0;)I.push({flags:c})}for(C=0;C<T;C++){switch(18&I[C].flags){case 0:h+=(code[i]<<24|code[i+1]<<16)>>16,i+=2;break;case 2:h-=code[i++];break;case 18:h+=code[i++]}I[C].x=h}for(C=0;C<T;C++){switch(36&I[C].flags){case 0:d+=(code[i]<<24|code[i+1]<<16)>>16,i+=2;break;case 4:d-=code[i++];break;case 36:d+=code[i++]}I[C].y=d}var F=0;for(i=0;i<l;i++){var L=P[i],O=I.slice(F,L+1);if(1&O[0].flags)O.push(O[0]);else if(1&O[O.length-1].flags)O.unshift(O[O.length-1]);else{var p={flags:1,x:(O[0].x+O[O.length-1].x)/2,y:(O[0].y+O[O.length-1].y)/2};O.unshift(p),O.push(p)}for(r(O[0].x,O[0].y),C=1,_=O.length;C<_;C++)1&O[C].flags?n(O[C].x,O[C].y):1&O[C+1].flags?(o(O[C].x,O[C].y,O[C+1].x,O[C+1].y),C++):o(O[C].x,O[C].y,(O[C].x+O[C+1].x)/2,(O[C].y+O[C+1].y)/2);F=L+1}}}function k(e,t,o,c){function h(e,r){t.push({cmd:"moveTo",args:[e,r]})}function d(e,r){t.push({cmd:"lineTo",args:[e,r]})}function f(e,r,n,o,c,l){t.push({cmd:"bezierCurveTo",args:[e,r,n,o,c,l]})}var v=[],y=0,w=0,S=0;!function e(code){for(var i=0;i<code.length;){var A,x,C,_,P,T,I,E,F=!1,L=code[i++];switch(L){case 1:case 3:case 18:case 23:S+=v.length>>1,F=!0;break;case 4:w+=v.pop(),h(y,w),F=!0;break;case 5:for(;v.length>0;)y+=v.shift(),w+=v.shift(),d(y,w);break;case 6:for(;v.length>0&&(d(y+=v.shift(),w),0!==v.length);)w+=v.shift(),d(y,w);break;case 7:for(;v.length>0&&(w+=v.shift(),d(y,w),0!==v.length);)d(y+=v.shift(),w);break;case 8:for(;v.length>0;)A=y+v.shift(),C=w+v.shift(),x=A+v.shift(),_=C+v.shift(),y=x+v.shift(),w=_+v.shift(),f(A,C,x,_,y,w);break;case 10:if(I=v.pop(),E=null,o.isCFFCIDFont){var O=o.fdSelect.getFDIndex(c);if(O>=0&&O<o.fdArray.length){var R=o.fdArray[O],M=void 0;R.privateDict&&R.privateDict.subrsIndex&&(M=R.privateDict.subrsIndex.objects),M&&(E=M[I+=r(M)])}else(0,n.warn)("Invalid fd index for glyph index.")}else E=o.subrs[I+o.subrsBias];E&&e(E);break;case 11:return;case 12:switch(L=code[i++]){case 34:x=(A=y+v.shift())+v.shift(),P=w+v.shift(),y=x+v.shift(),f(A,w,x,P,y,P),x=(A=y+v.shift())+v.shift(),y=x+v.shift(),f(A,P,x,w,y,w);break;case 35:A=y+v.shift(),C=w+v.shift(),x=A+v.shift(),_=C+v.shift(),y=x+v.shift(),w=_+v.shift(),f(A,C,x,_,y,w),A=y+v.shift(),C=w+v.shift(),x=A+v.shift(),_=C+v.shift(),y=x+v.shift(),w=_+v.shift(),f(A,C,x,_,y,w),v.pop();break;case 36:f(A=y+v.shift(),P=w+v.shift(),x=A+v.shift(),T=P+v.shift(),y=x+v.shift(),T),f(A=y+v.shift(),T,x=A+v.shift(),T+v.shift(),y=x+v.shift(),w);break;case 37:var N=y,D=w;A=y+v.shift(),C=w+v.shift(),x=A+v.shift(),_=C+v.shift(),y=x+v.shift(),w=_+v.shift(),f(A,C,x,_,y,w),A=y+v.shift(),C=w+v.shift(),x=A+v.shift(),_=C+v.shift(),y=x,w=_,Math.abs(y-N)>Math.abs(w-D)?y+=v.shift():w+=v.shift(),f(A,C,x,_,y,w);break;default:throw new n.FormatError("unknown operator: 12 ".concat(L))}break;case 14:if(v.length>=4){var B=v.pop(),U=v.pop();w=v.pop(),y=v.pop(),t.push({cmd:"save"}),t.push({cmd:"translate",args:[y,w]});var j=m(o.cmap,String.fromCharCode(o.glyphNameMap[l.StandardEncoding[B]]));k(o.glyphs[j.glyphId],t,o,j.glyphId),t.push({cmd:"restore"}),j=m(o.cmap,String.fromCharCode(o.glyphNameMap[l.StandardEncoding[U]])),k(o.glyphs[j.glyphId],t,o,j.glyphId)}return;case 19:case 20:i+=(S+=v.length>>1)+7>>3,F=!0;break;case 21:w+=v.pop(),h(y+=v.pop(),w),F=!0;break;case 22:h(y+=v.pop(),w),F=!0;break;case 24:for(;v.length>2;)A=y+v.shift(),C=w+v.shift(),x=A+v.shift(),_=C+v.shift(),y=x+v.shift(),w=_+v.shift(),f(A,C,x,_,y,w);y+=v.shift(),w+=v.shift(),d(y,w);break;case 25:for(;v.length>6;)y+=v.shift(),w+=v.shift(),d(y,w);A=y+v.shift(),C=w+v.shift(),x=A+v.shift(),_=C+v.shift(),y=x+v.shift(),w=_+v.shift(),f(A,C,x,_,y,w);break;case 26:for(v.length%2&&(y+=v.shift());v.length>0;)A=y,C=w+v.shift(),x=A+v.shift(),_=C+v.shift(),y=x,w=_+v.shift(),f(A,C,x,_,y,w);break;case 27:for(v.length%2&&(w+=v.shift());v.length>0;)f(A=y+v.shift(),C=w,x=A+v.shift(),_=C+v.shift(),y=x+v.shift(),w=_);break;case 28:v.push((code[i]<<24|code[i+1]<<16)>>16),i+=2;break;case 29:I=v.pop()+o.gsubrsBias,(E=o.gsubrs[I])&&e(E);break;case 30:for(;v.length>0&&(A=y,C=w+v.shift(),x=A+v.shift(),_=C+v.shift(),y=x+v.shift(),w=_+(1===v.length?v.shift():0),f(A,C,x,_,y,w),0!==v.length);)A=y+v.shift(),C=w,x=A+v.shift(),_=C+v.shift(),w=_+v.shift(),f(A,C,x,_,y=x+(1===v.length?v.shift():0),w);break;case 31:for(;v.length>0&&(A=y+v.shift(),C=w,x=A+v.shift(),_=C+v.shift(),w=_+v.shift(),f(A,C,x,_,y=x+(1===v.length?v.shift():0),w),0!==v.length);)A=y,C=w+v.shift(),x=A+v.shift(),_=C+v.shift(),y=x+v.shift(),w=_+(1===v.length?v.shift():0),f(A,C,x,_,y,w);break;default:if(L<32)throw new n.FormatError("unknown operator: ".concat(L));L<247?v.push(L-139):L<251?v.push(256*(L-247)+code[i++]+108):L<255?v.push(256*-(L-251)-code[i++]-108):(v.push((code[i]<<24|code[i+1]<<16|code[i+2]<<8|code[i+3])/65536),i+=4)}F&&(v.length=0)}}(e)}var A=[],x=function(){return y((function e(t){w(this,e),this.constructor===e&&(0,n.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=t,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}),[{key:"getPathJs",value:function(e){var t=m(this.cmap,e),r=this.compiledGlyphs[t.glyphId];return r||(r=this.compileGlyph(this.glyphs[t.glyphId],t.glyphId),this.compiledGlyphs[t.glyphId]=r),void 0===this.compiledCharCodeToGlyphId[t.charCode]&&(this.compiledCharCodeToGlyphId[t.charCode]=t.glyphId),r}},{key:"compileGlyph",value:function(code,e){if(!code||0===code.length||14===code[0])return A;var t=this.fontMatrix;if(this.isCFFCIDFont){var r=this.fdSelect.getFDIndex(e);r>=0&&r<this.fdArray.length?t=this.fdArray[r].getByName("FontMatrix")||n.FONT_IDENTITY_MATRIX:(0,n.warn)("Invalid fd index for glyph index.")}var o=[];return o.push({cmd:"save"}),o.push({cmd:"transform",args:t.slice()}),o.push({cmd:"scale",args:["size","-size"]}),this.compileGlyphImpl(code,o,e),o.push({cmd:"restore"}),o}},{key:"compileGlyphImpl",value:function(){(0,n.unreachable)("Children classes should implement this.")}},{key:"hasBuiltPath",value:function(e){var t=m(this.cmap,e);return void 0!==this.compiledGlyphs[t.glyphId]&&void 0!==this.compiledCharCodeToGlyphId[t.charCode]}}])}(),C=function(e){function t(e,r,n){var o;return w(this,t),(o=S(this,t,[n||[488e-6,0,0,488e-6,0,0]])).glyphs=e,o.cmap=r,o}return _(t,e),y(t,[{key:"compileGlyphImpl",value:function(code,e){v(code,e,this)}}])}(x),P=function(e){function t(e,n,o,l){var h;return w(this,t),(h=S(this,t,[o||[.001,0,0,.001,0,0]])).glyphs=e.glyphs,h.gsubrs=e.gsubrs||[],h.subrs=e.subrs||[],h.cmap=n,h.glyphNameMap=l||(0,c.getGlyphsUnicode)(),h.gsubrsBias=r(h.gsubrs),h.subrsBias=r(h.subrs),h.isCFFCIDFont=e.isCFFCIDFont,h.fdSelect=e.fdSelect,h.fdArray=e.fdArray,h}return _(t,e),y(t,[{key:"compileGlyphImpl",value:function(code,e,t){k(code,e,this,t)}}])}(x);return{create:function(r,o){for(var c,l,h,m,v,y,data=new Uint8Array(r.data),k=t(data,4),i=0,p=12;i<k;i++,p+=16){var w=(0,n.bytesToString)(data.subarray(p,p+4)),S=e(data,p+8),A=e(data,p+12);switch(w){case"cmap":c=d(data,S);break;case"glyf":l=data.subarray(S,S+A);break;case"loca":h=data.subarray(S,S+A);break;case"head":y=t(data,S+18),v=t(data,S+50);break;case"CFF ":m=f(data,S,S+A,o)}}if(l){var x=y?[1/y,0,0,1/y,0,0]:r.fontMatrix;return new C(function(e,t,r){var n,o;r?(n=4,o=function(data,e){return data[e]<<24|data[e+1]<<16|data[e+2]<<8|data[e+3]}):(n=2,o=function(data,e){return data[e]<<9|data[e+1]<<1});for(var c=[],l=o(t,0),h=n;h<t.length;h+=n){var d=o(t,h);c.push(e.subarray(l,d)),l=d}return c}(l,h,v),c,x)}return new P(m,c,r.fontMatrix,r.glyphNameMap)}}}();t.FontRendererFactory=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var n=r(32),o=r(8),c=r(12),l=r(2),h=function(){var e=[4],t=[5],r=[6],n=[7],o=[8],c=[12,35],h=[14],d=[21],f=[22],m=[30],v=[31];function y(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}return y.prototype={convert:function(y,k,w){for(var S,A,x,C=y.length,_=!1,i=0;i<C;i++){var P=y[i];if(P<32){switch(12===P&&(P=(P<<8)+y[++i]),P){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){_=!0;break}var T=this.stack.pop();this.stack.push(0,T);break}_=this.executeCommand(1,e);break;case 5:_=this.executeCommand(2,t);break;case 6:_=this.executeCommand(1,r);break;case 7:_=this.executeCommand(1,n);break;case 8:_=this.executeCommand(6,o);break;case 10:if(this.stack.length<1){_=!0;break}if(!k[x=this.stack.pop()]){_=!0;break}_=this.convert(k[x],k,w);break;case 11:return _;case 13:if(this.stack.length<2){_=!0;break}S=this.stack.pop(),A=this.stack.pop(),this.lsb=A,this.width=S,this.stack.push(S,A),_=this.executeCommand(2,f);break;case 14:this.output.push(h[0]);break;case 21:if(this.flexing)break;_=this.executeCommand(2,d);break;case 22:if(this.flexing){this.stack.push(0);break}_=this.executeCommand(1,f);break;case 30:_=this.executeCommand(4,m);break;case 31:_=this.executeCommand(4,v);break;case 3078:w?(this.seac=this.stack.splice(-4,4),_=this.executeCommand(0,h)):_=this.executeCommand(4,h);break;case 3079:if(this.stack.length<4){_=!0;break}this.stack.pop(),S=this.stack.pop();var I=this.stack.pop();A=this.stack.pop(),this.lsb=A,this.width=S,this.stack.push(S,A,I),_=this.executeCommand(3,d);break;case 3084:if(this.stack.length<2){_=!0;break}var E=this.stack.pop(),F=this.stack.pop();this.stack.push(F/E);break;case 3088:if(this.stack.length<2){_=!0;break}x=this.stack.pop();var L=this.stack.pop();if(0===x&&3===L){var O=this.stack.splice(this.stack.length-17,17);this.stack.push(O[2]+O[0],O[3]+O[1],O[4],O[5],O[6],O[7],O[8],O[9],O[10],O[11],O[12],O[13],O[14]),_=this.executeCommand(13,c,!0),this.flexing=!1,this.stack.push(O[15],O[16])}else 1===x&&0===L&&(this.flexing=!0);break;case 3089:break;default:(0,l.warn)('Unknown type 1 charstring command of "'+P+'"')}if(_)break}else P<=246?P-=139:P=P<=250?256*(P-247)+y[++i]+108:P<=254?-256*(P-251)-y[++i]-108:(255&y[++i])<<24|(255&y[++i])<<16|(255&y[++i])<<8|255&y[++i],this.stack.push(P)}return _},executeCommand:function(e,t,r){var n=this.stack.length;if(e>n)return!0;for(var o=n-e,i=o;i<n;i++){var c=this.stack[i];Number.isInteger(c)?this.output.push(28,c>>8&255,255&c):(c=65536*c|0,this.output.push(255,c>>24&255,c>>16&255,c>>8&255,255&c))}return this.output.push.apply(this.output,t),r?this.stack.splice(o,e):this.stack.length=0,!1}},y}(),d=function(){function e(code){return code>=48&&code<=57||code>=65&&code<=70||code>=97&&code<=102}function t(data,e,t){if(t>=data.length)return new Uint8Array(0);var i,r,n=0|e;for(i=0;i<t;i++)n=52845*(data[i]+n)+22719&65535;var o=data.length-t,c=new Uint8Array(o);for(i=t,r=0;r<o;i++,r++){var l=data[i];c[r]=l^n>>8,n=52845*(l+n)+22719&65535}return c}function r(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}function l(r,n,l){if(n){var data=r.getBytes(),h=!((e(data[0])||(0,o.isWhiteSpace)(data[0]))&&e(data[1])&&e(data[2])&&e(data[3])&&e(data[4])&&e(data[5])&&e(data[6])&&e(data[7]));r=new c.Stream(h?t(data,55665,4):function(data,t,r){var i,n,o=0|t,c=data.length,l=new Uint8Array(c>>>1);for(i=0,n=0;i<c;i++){var h=data[i];if(e(h)){var d;for(i++;i<c&&!e(d=data[i]);)i++;if(i<c){var f=parseInt(String.fromCharCode(h,d),16);l[n++]=f^o>>8,o=52845*(f+o)+22719&65535}}}return l.slice(r,n)}(data,55665,4))}this.seacAnalysisEnabled=!!l,this.stream=r,this.nextChar()}return l.prototype={readNumberArray:function(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e},readNumber:function(){var e=this.getToken();return parseFloat(e||0)},readInt:function(){var e=this.getToken();return 0|parseInt(e||0,10)},readBoolean:function(){return"true"===this.getToken()?1:0},nextChar:function(){return this.currentChar=this.stream.getByte()},getToken:function(){for(var e=!1,t=this.currentChar;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,o.isWhiteSpace)(t))break;t=this.nextChar()}if(r(t))return this.nextChar(),String.fromCharCode(t);var n="";do{n+=String.fromCharCode(t),t=this.nextChar()}while(t>=0&&!(0,o.isWhiteSpace)(t)&&!r(t));return n},readCharStrings:function(e,r){return-1===r?e:t(e,4330,r)},extractFontProgram:function(e){var t=this.stream,r=[],n=[],o=Object.create(null);o.lenIV=4;for(var c,l,data,d,f,m={subrs:[],charstrings:[],properties:{privateData:o}};null!==(c=this.getToken());)if("/"===c)switch(c=this.getToken()){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();null!==(c=this.getToken())&&"end"!==c;)if("/"===c){var glyph=this.getToken();l=this.readInt(),this.getToken(),data=l>0?t.getBytes(l):new Uint8Array(0),d=m.properties.privateData.lenIV,f=this.readCharStrings(data,d),this.nextChar(),"noaccess"===(c=this.getToken())&&this.getToken(),n.push({glyph:glyph,encoded:f})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){var v=this.readInt();l=this.readInt(),this.getToken(),data=l>0?t.getBytes(l):new Uint8Array(0),d=m.properties.privateData.lenIV,f=this.readCharStrings(data,d),this.nextChar(),"noaccess"===(c=this.getToken())&&this.getToken(),r[v]=f}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var y=this.readNumberArray();y.length>0&&y.length;break;case"StemSnapH":case"StemSnapV":m.properties.privateData[c]=this.readNumberArray();break;case"StdHW":case"StdVW":m.properties.privateData[c]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":m.properties.privateData[c]=this.readNumber();break;case"ForceBold":m.properties.privateData[c]=this.readBoolean()}for(var i=0;i<n.length;i++){glyph=n[i].glyph,f=n[i].encoded;var k=new h,w=k.convert(f,r,this.seacAnalysisEnabled),output=k.output;w&&(output=[14]);var S={glyphName:glyph,charstring:output,width:k.width,lsb:k.lsb,seac:k.seac};if(".notdef"===glyph?m.charstrings.unshift(S):m.charstrings.push(S),e.builtInEncoding){var A=e.builtInEncoding.indexOf(glyph);A>-1&&void 0===e.widths[A]&&A>=e.firstChar&&A<=e.lastChar&&(e.widths[A]=k.width)}}return m},extractFontHeader:function(e){for(var t;null!==(t=this.getToken());)if("/"===t)switch(t=this.getToken()){case"FontMatrix":var r=this.readNumberArray();e.fontMatrix=r;break;case"Encoding":var o,c=this.getToken();if(/^\d+$/.test(c)){o=[];var l=0|parseInt(c,10);this.getToken();for(var h=0;h<l;h++){for(t=this.getToken();"dup"!==t&&"def"!==t;)if(null===(t=this.getToken()))return;if("def"===t)break;var d=this.readInt();this.getToken();var glyph=this.getToken();o[d]=glyph,this.getToken()}}else o=(0,n.getEncoding)(c);e.builtInEncoding=o;break;case"FontBBox":var f=this.readNumberArray();e.ascent=Math.max(f[3],f[1]),e.descent=Math.min(f[1],f[3]),e.ascentScaled=!0}}},l}();t.Type1Parser=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTilingPatternIR=function(e,t,r){var o=t.getArray("Matrix"),c=n.Util.normalizeRect(t.getArray("BBox")),l=t.get("XStep"),h=t.get("YStep"),d=t.get("PaintType"),f=t.get("TilingType");if(c[2]-c[0]==0||c[3]-c[1]==0)throw new n.FormatError("Invalid getTilingPatternIR /BBox array: [".concat(c,"]."));return["TilingPattern",r,e,o,c,l,h,d,f]},t.Pattern=void 0;var n=r(2),o=r(23),c=r(5),l=r(8),h=2,d=3,f=4,m=5,v=6,y=7,k=function(){function e(){(0,n.unreachable)("should not call Pattern constructor")}return e.prototype={getPattern:function(e){(0,n.unreachable)("Should not call Pattern.getStyle: ".concat(e))}},e.parseShading=function(e,t,r,o,k,S){var A=(0,c.isStream)(e)?e.dict:e,x=A.get("ShadingType");try{switch(x){case h:case d:return new w.RadialAxial(A,t,r,o,S);case f:case m:case v:case y:return new w.Mesh(e,t,r,o,S);default:throw new n.FormatError("Unsupported ShadingType: "+x)}}catch(e){if(e instanceof l.MissingDataException)throw e;return k.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.shadingPattern}),(0,n.warn)(e),new w.Dummy}},e}();t.Pattern=k;var w={SMALL_NUMBER:1e-6};w.RadialAxial=function(){function e(e,t,r,c,l){this.matrix=t,this.coordsArr=e.getArray("Coords"),this.shadingType=e.get("ShadingType"),this.type="Pattern";var h=e.get("ColorSpace","CS");h=o.ColorSpace.parse(h,r,c,l),this.cs=h;var f=e.getArray("BBox");Array.isArray(f)&&4===f.length?this.bbox=n.Util.normalizeRect(f):this.bbox=null;var m=0,v=1;if(e.has("Domain")){var y=e.getArray("Domain");m=y[0],v=y[1]}var k=!1,S=!1;if(e.has("Extend")){var A=e.getArray("Extend");k=A[0],S=A[1]}if(!(this.shadingType!==d||k&&S)){var x=this.coordsArr[0],C=this.coordsArr[1],_=this.coordsArr[2],P=this.coordsArr[3],T=this.coordsArr[4],I=this.coordsArr[5],E=Math.sqrt((x-P)*(x-P)+(C-T)*(C-T));_<=I+E&&I<=_+E&&(0,n.warn)("Unsupported radial gradient.")}this.extendStart=k,this.extendEnd=S;var F=e.get("Function"),L=l.createFromArray(F),O=(v-m)/10,R=this.colorStops=[];if(m>=v||O<=0)(0,n.info)("Bad shading domain.");else{for(var M,N=new Float32Array(h.numComps),D=new Float32Array(1),i=0;i<=10;i++){D[0]=m+i*O,L(D,0,N,0),M=h.getRgb(N,0);var B=n.Util.makeCssRgb(M[0],M[1],M[2]);R.push([i/10,B])}var U="transparent";e.has("Background")&&(M=h.getRgb(e.get("Background"),0),U=n.Util.makeCssRgb(M[0],M[1],M[2])),k||(R.unshift([0,U]),R[1][0]+=w.SMALL_NUMBER),S||(R[R.length-1][0]-=w.SMALL_NUMBER,R.push([1,U])),this.colorStops=R}}return e.prototype={getIR:function(){var e,t,r,o,c,l=this.coordsArr,f=this.shadingType;f===h?(t=[l[0],l[1]],r=[l[2],l[3]],o=null,c=null,e="axial"):f===d?(t=[l[0],l[1]],r=[l[3],l[4]],o=l[2],c=l[5],e="radial"):(0,n.unreachable)("getPattern type unknown: ".concat(f));var m=this.matrix;if(m&&(t=n.Util.applyTransform(t,m),r=n.Util.applyTransform(r,m),f===d)){var v=n.Util.singularValueDecompose2dScale(m);o*=v[0],c*=v[1]}return["RadialAxial",e,this.bbox,this.colorStops,t,r,o,c]}},e}(),w.Mesh=function(){function e(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;var r=t.numComps;this.tmpCompsBuf=new Float32Array(r);var n=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(n):this.tmpCompsBuf}e.prototype={get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;var e=this.stream.getByte();return!(e<0||(this.buffer=e,this.bufferLength=8,0))},readBits:function(e){var t=this.buffer,r=this.bufferLength;if(32===e){if(0===r)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();var n=this.stream.getByte();return this.buffer=n&(1<<r)-1,(t<<8-r|(255&n)>>r)>>>0}if(8===e&&0===r)return this.stream.getByte();for(;r<e;)t=t<<8|this.stream.getByte(),r+=8;return r-=e,this.bufferLength=r,this.buffer=t&(1<<r)-1,t>>r},align:function(){this.buffer=0,this.bufferLength=0},readFlag:function(){return this.readBits(this.context.bitsPerFlag)},readCoordinate:function(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),n=this.context.decode,o=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*o*(n[1]-n[0])+n[0],r*o*(n[3]-n[2])+n[2]]},readComponents:function(){for(var e=this.context.numComps,t=this.context.bitsPerComponent,r=t<32?1/((1<<t)-1):2.3283064365386963e-10,n=this.context.decode,o=this.tmpCompsBuf,i=0,c=4;i<e;i++,c+=2){var l=this.readBits(t);o[i]=l*r*(n[c+1]-n[c])+n[c]}var h=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(o,0,h,0),this.context.colorSpace.getRgb(h,0)}};var t,r=(t=[],function(e){return t[e]||(t[e]=function(e){for(var t=[],i=0;i<=e;i++){var r=i/e,n=1-r;t.push(new Float32Array([n*n*n,3*r*n*n,3*r*r*n,r*r*r]))}return t}(e)),t[e]});function l(e,t){var figure=e.figures[t];(0,n.assert)("patch"===figure.type,"Unexpected patch mesh figure");var o=e.coords,c=e.colors,l=figure.coords,h=figure.colors,d=Math.min(o[l[0]][0],o[l[3]][0],o[l[12]][0],o[l[15]][0]),f=Math.min(o[l[0]][1],o[l[3]][1],o[l[12]][1],o[l[15]][1]),m=Math.max(o[l[0]][0],o[l[3]][0],o[l[12]][0],o[l[15]][0]),v=Math.max(o[l[0]][1],o[l[3]][1],o[l[12]][1],o[l[15]][1]),y=Math.ceil(20*(m-d)/(e.bounds[2]-e.bounds[0]));y=Math.max(3,Math.min(20,y));var k=Math.ceil(20*(v-f)/(e.bounds[3]-e.bounds[1]));k=Math.max(3,Math.min(20,k));for(var w=y+1,S=new Int32Array((k+1)*w),A=new Int32Array((k+1)*w),x=0,C=new Uint8Array(3),_=new Uint8Array(3),P=c[h[0]],T=c[h[1]],I=c[h[2]],E=c[h[3]],F=r(k),L=r(y),O=0;O<=k;O++){C[0]=(P[0]*(k-O)+I[0]*O)/k|0,C[1]=(P[1]*(k-O)+I[1]*O)/k|0,C[2]=(P[2]*(k-O)+I[2]*O)/k|0,_[0]=(T[0]*(k-O)+E[0]*O)/k|0,_[1]=(T[1]*(k-O)+E[1]*O)/k|0,_[2]=(T[2]*(k-O)+E[2]*O)/k|0;for(var col=0;col<=y;col++,x++)if(0!==O&&O!==k||0!==col&&col!==y){for(var R=0,M=0,q=0,i=0;i<=3;i++)for(var N=0;N<=3;N++,q++){var D=F[O][i]*L[col][N];R+=o[l[q]][0]*D,M+=o[l[q]][1]*D}S[x]=o.length,o.push([R,M]),A[x]=c.length;var B=new Uint8Array(3);B[0]=(C[0]*(y-col)+_[0]*col)/y|0,B[1]=(C[1]*(y-col)+_[1]*col)/y|0,B[2]=(C[2]*(y-col)+_[2]*col)/y|0,c.push(B)}}S[0]=l[0],A[0]=h[0],S[y]=l[3],A[y]=h[1],S[w*k]=l[12],A[w*k]=h[2],S[w*k+y]=l[15],A[w*k+y]=h[3],e.figures[t]={type:"lattice",coords:S,colors:A,verticesPerRow:w}}function h(e){for(var t=e.coords[0][0],r=e.coords[0][1],n=t,o=r,i=1,c=e.coords.length;i<c;i++){var l=e.coords[i][0],h=e.coords[i][1];t=t>l?l:t,r=r>h?h:r,n=n<l?l:n,o=o<h?h:o}e.bounds=[t,r,n,o]}function d(t,r,d,k,w){if(!(0,c.isStream)(t))throw new n.FormatError("Mesh data is not a stream");var S=t.dict;this.matrix=r,this.shadingType=S.get("ShadingType"),this.type="Pattern";var A=S.getArray("BBox");Array.isArray(A)&&4===A.length?this.bbox=n.Util.normalizeRect(A):this.bbox=null;var x=S.get("ColorSpace","CS");x=o.ColorSpace.parse(x,d,k,w),this.cs=x,this.background=S.has("Background")?x.getRgb(S.get("Background"),0):null;var C=S.get("Function"),_=C?w.createFromArray(C):null;this.coords=[],this.colors=[],this.figures=[];var P=new e(t,{bitsPerCoordinate:S.get("BitsPerCoordinate"),bitsPerComponent:S.get("BitsPerComponent"),bitsPerFlag:S.get("BitsPerFlag"),decode:S.getArray("Decode"),colorFn:_,colorSpace:x,numComps:_?1:x.numComps}),T=!1;switch(this.shadingType){case f:!function(e,t){for(var r=e.coords,o=e.colors,c=[],l=[],h=0;t.hasData;){var d=t.readFlag(),f=t.readCoordinate(),m=t.readComponents();if(0===h){if(!(0<=d&&d<=2))throw new n.FormatError("Unknown type4 flag");switch(d){case 0:h=3;break;case 1:l.push(l[l.length-2],l[l.length-1]),h=1;break;case 2:l.push(l[l.length-3],l[l.length-1]),h=1}c.push(d)}l.push(r.length),r.push(f),o.push(m),h--,t.align()}e.figures.push({type:"triangles",coords:new Int32Array(l),colors:new Int32Array(l)})}(this,P);break;case m:var I=0|S.get("VerticesPerRow");if(I<2)throw new n.FormatError("Invalid VerticesPerRow");!function(e,t,r){for(var n=e.coords,o=e.colors,c=[];t.hasData;){var l=t.readCoordinate(),h=t.readComponents();c.push(n.length),n.push(l),o.push(h)}e.figures.push({type:"lattice",coords:new Int32Array(c),colors:new Int32Array(c),verticesPerRow:r})}(this,P,I);break;case v:!function(e,t){for(var r=e.coords,o=e.colors,c=new Int32Array(16),l=new Int32Array(4);t.hasData;){var i,h,d=t.readFlag();if(!(0<=d&&d<=3))throw new n.FormatError("Unknown type6 flag");var f=r.length;for(i=0,h=0!==d?8:12;i<h;i++)r.push(t.readCoordinate());var m,v,y,k,w=o.length;for(i=0,h=0!==d?2:4;i<h;i++)o.push(t.readComponents());switch(d){case 0:c[12]=f+3,c[13]=f+4,c[14]=f+5,c[15]=f+6,c[8]=f+2,c[11]=f+7,c[4]=f+1,c[7]=f+8,c[0]=f,c[1]=f+11,c[2]=f+10,c[3]=f+9,l[2]=w+1,l[3]=w+2,l[0]=w,l[1]=w+3;break;case 1:m=c[12],v=c[13],y=c[14],k=c[15],c[12]=k,c[13]=f+0,c[14]=f+1,c[15]=f+2,c[8]=y,c[11]=f+3,c[4]=v,c[7]=f+4,c[0]=m,c[1]=f+7,c[2]=f+6,c[3]=f+5,m=l[2],v=l[3],l[2]=v,l[3]=w,l[0]=m,l[1]=w+1;break;case 2:m=c[15],v=c[11],c[12]=c[3],c[13]=f+0,c[14]=f+1,c[15]=f+2,c[8]=c[7],c[11]=f+3,c[4]=v,c[7]=f+4,c[0]=m,c[1]=f+7,c[2]=f+6,c[3]=f+5,m=l[3],l[2]=l[1],l[3]=w,l[0]=m,l[1]=w+1;break;case 3:c[12]=c[0],c[13]=f+0,c[14]=f+1,c[15]=f+2,c[8]=c[1],c[11]=f+3,c[4]=c[2],c[7]=f+4,c[0]=c[3],c[1]=f+7,c[2]=f+6,c[3]=f+5,l[2]=l[0],l[3]=w,l[0]=l[1],l[1]=w+1}c[5]=r.length,r.push([(-4*r[c[0]][0]-r[c[15]][0]+6*(r[c[4]][0]+r[c[1]][0])-2*(r[c[12]][0]+r[c[3]][0])+3*(r[c[13]][0]+r[c[7]][0]))/9,(-4*r[c[0]][1]-r[c[15]][1]+6*(r[c[4]][1]+r[c[1]][1])-2*(r[c[12]][1]+r[c[3]][1])+3*(r[c[13]][1]+r[c[7]][1]))/9]),c[6]=r.length,r.push([(-4*r[c[3]][0]-r[c[12]][0]+6*(r[c[2]][0]+r[c[7]][0])-2*(r[c[0]][0]+r[c[15]][0])+3*(r[c[4]][0]+r[c[14]][0]))/9,(-4*r[c[3]][1]-r[c[12]][1]+6*(r[c[2]][1]+r[c[7]][1])-2*(r[c[0]][1]+r[c[15]][1])+3*(r[c[4]][1]+r[c[14]][1]))/9]),c[9]=r.length,r.push([(-4*r[c[12]][0]-r[c[3]][0]+6*(r[c[8]][0]+r[c[13]][0])-2*(r[c[0]][0]+r[c[15]][0])+3*(r[c[11]][0]+r[c[1]][0]))/9,(-4*r[c[12]][1]-r[c[3]][1]+6*(r[c[8]][1]+r[c[13]][1])-2*(r[c[0]][1]+r[c[15]][1])+3*(r[c[11]][1]+r[c[1]][1]))/9]),c[10]=r.length,r.push([(-4*r[c[15]][0]-r[c[0]][0]+6*(r[c[11]][0]+r[c[14]][0])-2*(r[c[12]][0]+r[c[3]][0])+3*(r[c[2]][0]+r[c[8]][0]))/9,(-4*r[c[15]][1]-r[c[0]][1]+6*(r[c[11]][1]+r[c[14]][1])-2*(r[c[12]][1]+r[c[3]][1])+3*(r[c[2]][1]+r[c[8]][1]))/9]),e.figures.push({type:"patch",coords:new Int32Array(c),colors:new Int32Array(l)})}}(this,P),T=!0;break;case y:!function(e,t){for(var r=e.coords,o=e.colors,c=new Int32Array(16),l=new Int32Array(4);t.hasData;){var i,h,d=t.readFlag();if(!(0<=d&&d<=3))throw new n.FormatError("Unknown type7 flag");var f=r.length;for(i=0,h=0!==d?12:16;i<h;i++)r.push(t.readCoordinate());var m,v,y,k,w=o.length;for(i=0,h=0!==d?2:4;i<h;i++)o.push(t.readComponents());switch(d){case 0:c[12]=f+3,c[13]=f+4,c[14]=f+5,c[15]=f+6,c[8]=f+2,c[9]=f+13,c[10]=f+14,c[11]=f+7,c[4]=f+1,c[5]=f+12,c[6]=f+15,c[7]=f+8,c[0]=f,c[1]=f+11,c[2]=f+10,c[3]=f+9,l[2]=w+1,l[3]=w+2,l[0]=w,l[1]=w+3;break;case 1:m=c[12],v=c[13],y=c[14],k=c[15],c[12]=k,c[13]=f+0,c[14]=f+1,c[15]=f+2,c[8]=y,c[9]=f+9,c[10]=f+10,c[11]=f+3,c[4]=v,c[5]=f+8,c[6]=f+11,c[7]=f+4,c[0]=m,c[1]=f+7,c[2]=f+6,c[3]=f+5,m=l[2],v=l[3],l[2]=v,l[3]=w,l[0]=m,l[1]=w+1;break;case 2:m=c[15],v=c[11],c[12]=c[3],c[13]=f+0,c[14]=f+1,c[15]=f+2,c[8]=c[7],c[9]=f+9,c[10]=f+10,c[11]=f+3,c[4]=v,c[5]=f+8,c[6]=f+11,c[7]=f+4,c[0]=m,c[1]=f+7,c[2]=f+6,c[3]=f+5,m=l[3],l[2]=l[1],l[3]=w,l[0]=m,l[1]=w+1;break;case 3:c[12]=c[0],c[13]=f+0,c[14]=f+1,c[15]=f+2,c[8]=c[1],c[9]=f+9,c[10]=f+10,c[11]=f+3,c[4]=c[2],c[5]=f+8,c[6]=f+11,c[7]=f+4,c[0]=c[3],c[1]=f+7,c[2]=f+6,c[3]=f+5,l[2]=l[0],l[3]=w,l[0]=l[1],l[1]=w+1}e.figures.push({type:"patch",coords:new Int32Array(c),colors:new Int32Array(l)})}}(this,P),T=!0;break;default:(0,n.unreachable)("Unsupported mesh type.")}if(T){h(this);for(var i=0,E=this.figures.length;i<E;i++)l(this,i)}h(this),function(e){var i,t,r,n,o=e.coords,c=new Float32Array(2*o.length);for(i=0,r=0,t=o.length;i<t;i++){var l=o[i];c[r++]=l[0],c[r++]=l[1]}e.coords=c;var h=e.colors,d=new Uint8Array(3*h.length);for(i=0,r=0,t=h.length;i<t;i++){var f=h[i];d[r++]=f[0],d[r++]=f[1],d[r++]=f[2]}e.colors=d;var m=e.figures;for(i=0,t=m.length;i<t;i++){var figure=m[i],v=figure.coords,y=figure.colors;for(r=0,n=v.length;r<n;r++)v[r]*=2,y[r]*=3}}(this)}return d.prototype={getIR:function(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.matrix,this.bbox,this.background]}},d}(),w.Dummy=function(){function e(){this.type="Pattern"}return e.prototype={getIR:function(){return["Dummy"]}},e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=function(e,t,r){var w=!0,S=e.length;if(0===S||r)return v(e,w,r);y.length=S,k.length=S;var i,A,x=0;for(i=0;i<S;++i){y[i]=e.charAt(i);var C=e.charCodeAt(i),_="L";C<=255?_=o[C]:1424<=C&&C<=1524?_="R":1536<=C&&C<=1791?(_=c[255&C])||(0,n.warn)("Bidi: invalid Unicode character "+C.toString(16)):1792<=C&&C<=2220&&(_="AL"),"R"!==_&&"AL"!==_&&"AN"!==_||x++,k[i]=_}if(0===x)return v(e,w=!0);-1===t&&(x/S<.3?(w=!0,t=0):(w=!1,t=1));var P=[];for(i=0;i<S;++i)P[i]=t;var T,I=l(t)?"R":"L",E=I,F=E,L=E;for(i=0;i<S;++i)"NSM"===k[i]?k[i]=L:L=k[i];for(L=E,i=0;i<S;++i)"EN"===(T=k[i])?k[i]="AL"===L?"AN":"EN":"R"!==T&&"L"!==T&&"AL"!==T||(L=T);for(i=0;i<S;++i)"AL"===(T=k[i])&&(k[i]="R");for(i=1;i<S-1;++i)"ES"===k[i]&&"EN"===k[i-1]&&"EN"===k[i+1]&&(k[i]="EN"),"CS"!==k[i]||"EN"!==k[i-1]&&"AN"!==k[i-1]||k[i+1]!==k[i-1]||(k[i]=k[i-1]);for(i=0;i<S;++i)if("EN"===k[i]){var O;for(O=i-1;O>=0&&"ET"===k[O];--O)k[O]="EN";for(O=i+1;O<S&&"ET"===k[O];++O)k[O]="EN"}for(i=0;i<S;++i)"WS"!==(T=k[i])&&"ES"!==T&&"ET"!==T&&"CS"!==T||(k[i]="ON");for(L=E,i=0;i<S;++i)"EN"===(T=k[i])?k[i]="L"===L?"L":"EN":"R"!==T&&"L"!==T||(L=T);for(i=0;i<S;++i)if("ON"===k[i]){var R=d(k,i+1,"ON"),M=E;i>0&&(M=k[i-1]);var N=F;R+1<S&&(N=k[R+1]),"L"!==M&&(M="R"),"L"!==N&&(N="R"),M===N&&f(k,i,R,M),i=R-1}for(i=0;i<S;++i)"ON"===k[i]&&(k[i]=I);for(i=0;i<S;++i)T=k[i],h(P[i])?"R"===T?P[i]+=1:"AN"!==T&&"EN"!==T||(P[i]+=2):"L"!==T&&"AN"!==T&&"EN"!==T||(P[i]+=1);var D,B=-1,U=99;for(i=0,A=P.length;i<A;++i)B<(D=P[i])&&(B=D),U>D&&l(D)&&(U=D);for(D=B;D>=U;--D){var j=-1;for(i=0,A=P.length;i<A;++i)P[i]<D?j>=0&&(m(y,j,i),j=-1):j<0&&(j=i);j>=0&&m(y,j,P.length)}for(i=0,A=y.length;i<A;++i){var H=y[i];"<"!==H&&">"!==H||(y[i]="")}return v(y.join(""),w)};var n=r(2),o=["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"],c=["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 l(i){return!!(1&i)}function h(i){return!(1&i)}function d(e,t,r){for(var n=t,o=e.length;n<o;++n)if(e[n]!==r)return n;return n}function f(e,t,r,n){for(var o=t;o<r;++o)e[o]=n}function m(e,t,r){for(var i=t,n=r-1;i<n;++i,--n){var o=e[i];e[i]=e[n],e[n]=o}}function v(e,t){var r="ltr";return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?r="ttb":t||(r="rtl"),{str:e,dir:r}}var y=[],k=[]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=void 0;var n=r(8),o=(0,n.getLookupTableFactory)((function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,n.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Bold"]=(0,n.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-BoldOblique"]=(0,n.getLookupTableFactory)((function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556})),e["Helvetica-Oblique"]=(0,n.getLookupTableFactory)((function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556})),e.Symbol=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790})),e["Times-Roman"]=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Bold"]=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-BoldItalic"]=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500})),e["Times-Italic"]=(0,n.getLookupTableFactory)((function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500})),e.ZapfDingbats=(0,n.getLookupTableFactory)((function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918}))}));t.getMetrics=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPDFFunction=function(e){var t;if("object"!==R(e))return!1;if((0,o.isDict)(e))t=e;else{if(!(0,o.isStream)(e))return!1;t=e.dict}return t.has("FunctionType")},t.PostScriptCompiler=t.PostScriptEvaluator=t.PDFFunctionFactory=void 0;var n=r(2),o=r(5),c=r(42),l=function(){return y((function e(t){var r=t.xref,n=t.isEvalSupported,o=void 0===n||n;w(this,e),this.xref=r,this.isEvalSupported=!1!==o}),[{key:"create",value:function(e){return d.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e})}},{key:"createFromArray",value:function(e){return d.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e})}}])}();function h(e){if(!Array.isArray(e))return null;for(var t=e.length,i=0;i<t;i++)if("number"!=typeof e[i]){for(var r=new Array(t),n=0;n<t;n++)r[n]=+e[n];return r}return e}t.PDFFunctionFactory=l;var d={getSampleArray:function(e,t,r,n){var i,o,c=1;for(i=0,o=e.length;i<o;i++)c*=e[i];c*=t;var l=new Array(c),h=0,d=0,f=1/(Math.pow(2,r)-1),m=n.getBytes((c*r+7)/8),v=0;for(i=0;i<c;i++){for(;h<r;)d<<=8,d|=m[v++],h+=8;h-=r,l[i]=(d>>h)*f,d&=(1<<h)-1}return l},getIR:function(e){var t=e.xref,r=e.isEvalSupported,o=e.fn,c=o.dict;c||(c=o);var l=[this.constructSampled,null,this.constructInterpolated,this.constructStiched,this.constructPostScript][c.get("FunctionType")];if(!l)throw new n.FormatError("Unknown type of function");return l.call(this,{xref:t,isEvalSupported:r,fn:o,dict:c})},fromIR:function(e){var t=e.xref,r=e.isEvalSupported,n=e.IR;switch(n[0]){case 0:return this.constructSampledFromIR({xref:t,isEvalSupported:r,IR:n});case 2:return this.constructInterpolatedFromIR({xref:t,isEvalSupported:r,IR:n});case 3:return this.constructStichedFromIR({xref:t,isEvalSupported:r,IR:n});default:return this.constructPostScriptFromIR({xref:t,isEvalSupported:r,IR:n})}},parse:function(e){var t=e.xref,r=e.isEvalSupported,n=e.fn,o=this.getIR({xref:t,isEvalSupported:r,fn:n});return this.fromIR({xref:t,isEvalSupported:r,IR:o})},parseArray:function(e){var t=e.xref,r=e.isEvalSupported,n=e.fnObj;if(!Array.isArray(n))return this.parse({xref:t,isEvalSupported:r,fn:n});for(var o=[],c=0,l=n.length;c<l;c++)o.push(this.parse({xref:t,isEvalSupported:r,fn:t.fetchIfRef(n[c])}));return function(e,t,r,n){for(var i=0,c=o.length;i<c;i++)o[i](e,t,r,n+i)}},constructSampled:function(e){e.xref,e.isEvalSupported;var t=e.fn,r=e.dict;function o(e){for(var t=e.length,r=[],n=0,i=0;i<t;i+=2)r[n]=[e[i],e[i+1]],++n;return r}var c=h(r.getArray("Domain")),l=h(r.getArray("Range"));if(!c||!l)throw new n.FormatError("No domain or range");var d=c.length/2,f=l.length/2;c=o(c),l=o(l);var m=h(r.getArray("Size")),v=r.get("BitsPerSample"),y=r.get("Order")||1;1!==y&&(0,n.info)("No support for cubic spline interpolation: "+y);var k=h(r.getArray("Encode"));if(k)k=o(k);else{k=[];for(var i=0;i<d;++i)k.push([0,m[i]-1])}var w=h(r.getArray("Decode"));return[0,d,c,k,w=w?o(w):l,this.getSampleArray(m,f,v,t),m,f,Math.pow(2,v)-1,l]},constructSampledFromIR:function(e){e.xref,e.isEvalSupported;var t=e.IR;function r(e,t,r,n,o){return n+(o-n)/(r-t)*(e-t)}return function(e,n,o,c){var i,l,h=t[1],d=t[2],f=t[3],m=t[4],v=t[5],y=t[6],k=t[7],w=t[9],S=1<<h,A=new Float64Array(S),x=new Uint32Array(S);for(l=0;l<S;l++)A[l]=1;var C=k,_=1;for(i=0;i<h;++i){var P=d[i][0],T=d[i][1],I=r(Math.min(Math.max(e[n+i],P),T),P,T,f[i][0],f[i][1]),E=y[i],F=(I=Math.min(Math.max(I,0),E-1))<E-1?Math.floor(I):I-1,L=F+1-I,O=I-F,R=F*C,M=R+C;for(l=0;l<S;l++)l&_?(A[l]*=O,x[l]+=M):(A[l]*=L,x[l]+=R);C*=E,_<<=1}for(l=0;l<k;++l){var N=0;for(i=0;i<S;i++)N+=v[x[i]+l]*A[i];N=r(N,0,1,m[l][0],m[l][1]),o[c+l]=Math.min(Math.max(N,w[l][0]),w[l][1])}}},constructInterpolated:function(e){e.xref,e.isEvalSupported,e.fn;for(var t=e.dict,r=h(t.getArray("C0"))||[0],n=h(t.getArray("C1"))||[1],o=t.get("N"),c=r.length,l=[],i=0;i<c;++i)l.push(n[i]-r[i]);return[2,r,l,o]},constructInterpolatedFromIR:function(e){e.xref,e.isEvalSupported;var t=e.IR,r=t[1],n=t[2],o=t[3],c=n.length;return function(e,t,l,h){for(var d=1===o?e[t]:Math.pow(e[t],o),f=0;f<c;++f)l[h+f]=r[f]+d*n[f]}},constructStiched:function(e){var t=e.xref,r=e.isEvalSupported,o=(e.fn,e.dict),c=h(o.getArray("Domain"));if(!c)throw new n.FormatError("No domain");if(1!=c.length/2)throw new n.FormatError("Bad domain for stiched function");for(var l=o.get("Functions"),d=[],i=0,f=l.length;i<f;++i)d.push(this.parse({xref:t,isEvalSupported:r,fn:t.fetchIfRef(l[i])}));return[3,c,h(o.getArray("Bounds")),h(o.getArray("Encode")),d]},constructStichedFromIR:function(e){e.xref,e.isEvalSupported;var t=e.IR,r=t[1],n=t[2],o=t[3],c=t[4],l=new Float32Array(1);return function(e,t,h,d){for(var f=function(e,t,r){return e>r?e=r:e<t&&(e=t),e}(e[t],r[0],r[1]),i=0,m=n.length;i<m&&!(f<n[i]);++i);var v=r[0];i>0&&(v=n[i-1]);var y=r[1];i<n.length&&(y=n[i]);var k=o[2*i],w=o[2*i+1];l[0]=v===y?k:k+(f-v)*(w-k)/(y-v),c[i](l,0,h,d)}},constructPostScript:function(e){e.xref,e.isEvalSupported;var t=e.fn,r=e.dict,o=h(r.getArray("Domain")),l=h(r.getArray("Range"));if(!o)throw new n.FormatError("No domain.");if(!l)throw new n.FormatError("No range.");var d=new c.PostScriptLexer(t);return[4,o,l,new c.PostScriptParser(d).parse()]},constructPostScriptFromIR:function(e){e.xref;var t=e.isEvalSupported,r=e.IR,o=r[1],c=r[2],code=r[3];if(t&&n.IsEvalSupportedCached.value){var l=(new v).compile(code,o,c);if(l)return new Function("src","srcOffset","dest","destOffset",l)}(0,n.info)("Unable to compile PS function");var h=c.length>>1,d=o.length>>1,f=new m(code),y=Object.create(null),k=8192,w=new Float32Array(d);return function(e,t,r,n){var i,o,l="",input=w;for(i=0;i<d;i++)o=e[t+i],input[i]=o,l+=o+"_";var m=y[l];if(void 0===m){var output=new Float32Array(h),v=f.execute(input),S=v.length-h;for(i=0;i<h;i++){o=v[S+i];var A=c[2*i];(o<A||o>(A=c[2*i+1]))&&(o=A),output[i]=o}k>0&&(k--,y[l]=output),r.set(output,n)}else r.set(m,n)}}},f=function(){function e(e){this.stack=e?Array.prototype.slice.call(e,0):[]}return e.prototype={push:function(e){if(this.stack.length>=100)throw new Error("PostScript function stack overflow.");this.stack.push(e)},pop:function(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()},copy:function(e){if(this.stack.length+e>=100)throw new Error("PostScript function stack overflow.");for(var t=this.stack,i=t.length-e,r=e-1;r>=0;r--,i++)t.push(t[i])},index:function(e){this.push(this.stack[this.stack.length-e-1])},roll:function(e,p){var i,t,r,n=this.stack,o=n.length-e,c=n.length-1,l=o+(p-Math.floor(p/e)*e);for(i=o,t=c;i<t;i++,t--)r=n[i],n[i]=n[t],n[t]=r;for(i=o,t=l-1;i<t;i++,t--)r=n[i],n[i]=n[t],n[t]=r;for(i=l,t=c;i<t;i++,t--)r=n[i],n[i]=n[t],n[t]=r}},e}(),m=function(){function e(e){this.operators=e}return e.prototype={execute:function(e){for(var t,a,b,r=new f(e),o=0,c=this.operators,l=c.length;o<l;)if("number"!=typeof(t=c[o++]))switch(t){case"jz":b=r.pop(),(a=r.pop())||(o=b);break;case"j":o=a=r.pop();break;case"abs":a=r.pop(),r.push(Math.abs(a));break;case"add":b=r.pop(),a=r.pop(),r.push(a+b);break;case"and":b=r.pop(),a=r.pop(),(0,n.isBool)(a)&&(0,n.isBool)(b)?r.push(a&&b):r.push(a&b);break;case"atan":a=r.pop(),r.push(Math.atan(a));break;case"bitshift":b=r.pop(),(a=r.pop())>0?r.push(a<<b):r.push(a>>b);break;case"ceiling":a=r.pop(),r.push(Math.ceil(a));break;case"copy":a=r.pop(),r.copy(a);break;case"cos":a=r.pop(),r.push(Math.cos(a));break;case"cvi":a=0|r.pop(),r.push(a);break;case"cvr":break;case"div":b=r.pop(),a=r.pop(),r.push(a/b);break;case"dup":r.copy(1);break;case"eq":b=r.pop(),a=r.pop(),r.push(a===b);break;case"exch":r.roll(2,1);break;case"exp":b=r.pop(),a=r.pop(),r.push(Math.pow(a,b));break;case"false":r.push(!1);break;case"floor":a=r.pop(),r.push(Math.floor(a));break;case"ge":b=r.pop(),a=r.pop(),r.push(a>=b);break;case"gt":b=r.pop(),a=r.pop(),r.push(a>b);break;case"idiv":b=r.pop(),a=r.pop(),r.push(a/b|0);break;case"index":a=r.pop(),r.index(a);break;case"le":b=r.pop(),a=r.pop(),r.push(a<=b);break;case"ln":a=r.pop(),r.push(Math.log(a));break;case"log":a=r.pop(),r.push(Math.log(a)/Math.LN10);break;case"lt":b=r.pop(),a=r.pop(),r.push(a<b);break;case"mod":b=r.pop(),a=r.pop(),r.push(a%b);break;case"mul":b=r.pop(),a=r.pop(),r.push(a*b);break;case"ne":b=r.pop(),a=r.pop(),r.push(a!==b);break;case"neg":a=r.pop(),r.push(-a);break;case"not":a=r.pop(),(0,n.isBool)(a)?r.push(!a):r.push(~a);break;case"or":b=r.pop(),a=r.pop(),(0,n.isBool)(a)&&(0,n.isBool)(b)?r.push(a||b):r.push(a|b);break;case"pop":r.pop();break;case"roll":b=r.pop(),a=r.pop(),r.roll(a,b);break;case"round":a=r.pop(),r.push(Math.round(a));break;case"sin":a=r.pop(),r.push(Math.sin(a));break;case"sqrt":a=r.pop(),r.push(Math.sqrt(a));break;case"sub":b=r.pop(),a=r.pop(),r.push(a-b);break;case"true":r.push(!0);break;case"truncate":a=(a=r.pop())<0?Math.ceil(a):Math.floor(a),r.push(a);break;case"xor":b=r.pop(),a=r.pop(),(0,n.isBool)(a)&&(0,n.isBool)(b)?r.push(a!==b):r.push(a^b);break;default:throw new n.FormatError("Unknown operator ".concat(t))}else r.push(t);return r.stack}},e}();t.PostScriptEvaluator=m;var v=function(){function e(e){this.type=e}function t(t,r,n){e.call(this,"args"),this.index=t,this.min=r,this.max=n}function r(t){e.call(this,"literal"),this.number=t,this.min=t,this.max=t}function o(t,r,n,o,c){e.call(this,"binary"),this.op=t,this.arg1=r,this.arg2=n,this.min=o,this.max=c}function c(t,r){e.call(this,"max"),this.arg=t,this.min=t.min,this.max=r}function l(t,r,n){e.call(this,"var"),this.index=t,this.min=r,this.max=n}function h(t,r){e.call(this,"definition"),this.variable=t,this.arg=r}function d(){this.parts=[]}function f(e,t){return"literal"===t.type&&0===t.number?e:"literal"===e.type&&0===e.number?t:"literal"===t.type&&"literal"===e.type?new r(e.number+t.number):new o("+",e,t,e.min+t.min,e.max+t.max)}function m(e,t){if("literal"===t.type){if(0===t.number)return new r(0);if(1===t.number)return e;if("literal"===e.type)return new r(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new r(0);if(1===e.number)return t}return new o("*",e,t,Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max))}function v(e,t){if("literal"===t.type){if(0===t.number)return e;if("literal"===e.type)return new r(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new o("-",e,t,e.min-t.max,e.max-t.min)}function y(e,t){return e.min>=t?new r(t):e.max<=t?e:new c(e,t)}function k(){}return e.prototype.visit=function(e){(0,n.unreachable)("abstract method")},t.prototype=Object.create(e.prototype),t.prototype.visit=function(e){e.visitArgument(this)},r.prototype=Object.create(e.prototype),r.prototype.visit=function(e){e.visitLiteral(this)},o.prototype=Object.create(e.prototype),o.prototype.visit=function(e){e.visitBinaryOperation(this)},c.prototype=Object.create(e.prototype),c.prototype.visit=function(e){e.visitMin(this)},l.prototype=Object.create(e.prototype),l.prototype.visit=function(e){e.visitVariable(this)},h.prototype=Object.create(e.prototype),h.prototype.visit=function(e){e.visitVariableDefinition(this)},d.prototype={visitArgument:function(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")},visitVariable:function(e){this.parts.push("v",e.index)},visitLiteral:function(e){this.parts.push(e.number)},visitBinaryOperation:function(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")},visitVariableDefinition:function(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")},visitMin:function(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")},toString:function(){return this.parts.join("")}},k.prototype={compile:function(code,e,n){for(var o,c,k,w,S,A,x,C,_=[],P=[],T=e.length>>1,I=n.length>>1,E=0,i=0;i<T;i++)_.push(new t(i,e[2*i],e[2*i+1]));for(var F=0,L=code.length;F<L;F++)if("number"!=typeof(C=code[F]))switch(C){case"add":if(_.length<2)return null;w=_.pop(),k=_.pop(),_.push(f(k,w));break;case"cvr":if(_.length<1)return null;break;case"mul":if(_.length<2)return null;w=_.pop(),k=_.pop(),_.push(m(k,w));break;case"sub":if(_.length<2)return null;w=_.pop(),k=_.pop(),_.push(v(k,w));break;case"exch":if(_.length<2)return null;S=_.pop(),A=_.pop(),_.push(S,A);break;case"pop":if(_.length<1)return null;_.pop();break;case"index":if(_.length<1)return null;if("literal"!==(k=_.pop()).type)return null;if((o=k.number)<0||!Number.isInteger(o)||_.length<o)return null;if("literal"===(S=_[_.length-o-1]).type||"var"===S.type){_.push(S);break}x=new l(E++,S.min,S.max),_[_.length-o-1]=x,_.push(x),P.push(new h(x,S));break;case"dup":if(_.length<1)return null;if("number"==typeof code[F+1]&&"gt"===code[F+2]&&code[F+3]===F+7&&"jz"===code[F+4]&&"pop"===code[F+5]&&code[F+6]===code[F+1]){k=_.pop(),_.push(y(k,code[F+1])),F+=6;break}if("literal"===(S=_[_.length-1]).type||"var"===S.type){_.push(S);break}x=new l(E++,S.min,S.max),_[_.length-1]=x,_.push(x),P.push(new h(x,S));break;case"roll":if(_.length<2)return null;if(w=_.pop(),k=_.pop(),"literal"!==w.type||"literal"!==k.type)return null;if(c=w.number,(o=k.number)<=0||!Number.isInteger(o)||!Number.isInteger(c)||_.length<o)return null;if(0==(c=(c%o+o)%o))break;Array.prototype.push.apply(_,_.splice(_.length-o,o-c));break;default:return null}else _.push(new r(C));if(_.length!==I)return null;var O=[];return P.forEach((function(e){var t=new d;e.visit(t),O.push(t.toString())})),_.forEach((function(e,i){var t=new d;e.visit(t);var r=n[2*i],o=n[2*i+1],c=[t.toString()];r>e.min&&(c.unshift("Math.max(",r,", "),c.push(")")),o<e.max&&(c.unshift("Math.min(",o,", "),c.push(")")),c.unshift("dest[destOffset + ",i,"] = "),c.push(";"),O.push(c.join(""))})),O.join("\n")}},k}();t.PostScriptCompiler=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var n=r(2),o=r(5),c=r(8),l=function(){return y((function e(t){w(this,e),this.lexer=t,this.operators=[],this.token=null,this.prev=null}),[{key:"nextToken",value:function(){this.prev=this.token,this.token=this.lexer.getToken()}},{key:"accept",value:function(e){return this.token.type===e&&(this.nextToken(),!0)}},{key:"expect",value:function(e){if(this.accept(e))return!0;throw new n.FormatError("Unexpected symbol: found ".concat(this.token.type," expected ").concat(e,"."))}},{key:"parse",value:function(){return this.nextToken(),this.expect(d.LBRACE),this.parseBlock(),this.expect(d.RBRACE),this.operators}},{key:"parseBlock",value:function(){for(;;)if(this.accept(d.NUMBER))this.operators.push(this.prev.value);else if(this.accept(d.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(d.LBRACE))return;this.parseCondition()}}},{key:"parseCondition",value:function(){var e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(d.RBRACE),this.accept(d.IF))this.operators[e]=this.operators.length,this.operators[e+1]="jz";else{if(!this.accept(d.LBRACE))throw new n.FormatError("PS Function: error parsing conditional.");var t=this.operators.length;this.operators.push(null,null);var r=this.operators.length;this.parseBlock(),this.expect(d.RBRACE),this.expect(d.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=r,this.operators[e+1]="jz"}}}])}();t.PostScriptParser=l;var h,d={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5},f=(h=Object.create(null),function(){function e(t,r){w(this,e),this.type=t,this.value=r}return y(e,null,[{key:"getOperator",value:function(t){var r=h[t];return r||(h[t]=new e(d.OPERATOR,t))}},{key:"LBRACE",get:function(){return(0,n.shadow)(this,"LBRACE",new e(d.LBRACE,"{"))}},{key:"RBRACE",get:function(){return(0,n.shadow)(this,"RBRACE",new e(d.RBRACE,"}"))}},{key:"IF",get:function(){return(0,n.shadow)(this,"IF",new e(d.IF,"IF"))}},{key:"IFELSE",get:function(){return(0,n.shadow)(this,"IFELSE",new e(d.IFELSE,"IFELSE"))}}])}()),m=function(){return y((function e(t){w(this,e),this.stream=t,this.nextChar(),this.strBuf=[]}),[{key:"nextChar",value:function(){return this.currentChar=this.stream.getByte()}},{key:"getToken",value:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return o.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,c.isWhiteSpace)(t))break;t=this.nextChar()}switch(0|t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new f(d.NUMBER,this.getNumber());case 123:return this.nextChar(),f.LBRACE;case 125:return this.nextChar(),f.RBRACE}var r=this.strBuf;for(r.length=0,r[0]=String.fromCharCode(t);(t=this.nextChar())>=0&&(t>=65&&t<=90||t>=97&&t<=122);)r.push(String.fromCharCode(t));var n=r.join("");switch(n.toLowerCase()){case"if":return f.IF;case"ifelse":return f.IFELSE;default:return f.getOperator(n)}}},{key:"getNumber",value:function(){var e=this.currentChar,t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));var r=parseFloat(t.join(""));if(isNaN(r))throw new n.FormatError("Invalid floating point number: ".concat(r));return r}}])}();t.PostScriptLexer=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var n=r(2),o=3285377520,c=4294901760,l=65535,h=function(){return y((function e(t){w(this,e),this.h1=t?4294967295&t:o,this.h2=t?4294967295&t:o}),[{key:"update",value:function(input){var data,e;if((0,n.isString)(input)){data=new Uint8Array(2*input.length),e=0;for(var i=0,t=input.length;i<t;i++){var code=input.charCodeAt(i);code<=255?data[e++]=code:(data[e++]=code>>>8,data[e++]=255&code)}}else{if(!(0,n.isArrayBuffer)(input))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");e=(data=input).byteLength}for(var r=e>>2,o=e-4*r,h=new Uint32Array(data.buffer,0,r),d=0,f=0,h1=this.h1,h2=this.h2,m=3432918353,v=461845907,y=11601,k=13715,w=0;w<r;w++)1&w?h1=5*(h1=(h1^=d=(d=(d=(d=h[w])*m&c|d*y&l)<<15|d>>>17)*v&c|d*k&l)<<13|h1>>>19)+3864292196:h2=5*(h2=(h2^=f=(f=(f=(f=h[w])*m&c|f*y&l)<<15|f>>>17)*v&c|f*k&l)<<13|h2>>>19)+3864292196;switch(d=0,o){case 3:d^=data[4*r+2]<<16;case 2:d^=data[4*r+1]<<8;case 1:d=(d=(d=(d^=data[4*r])*m&c|d*y&l)<<15|d>>>17)*v&c|d*k&l,1&r?h1^=d:h2^=d}this.h1=h1,this.h2=h2}},{key:"hexdigest",value:function(){var h1=this.h1,h2=this.h2;h1=3981806797*(h1^=h2>>>1)&c|36045*h1&l,h1=444984403*(h1^=(h2=4283543511*h2&c|(2950163797*(h2<<16|h1>>>16)&c)>>>16)>>>1)&c|60499*h1&l;var e=((h1^=(h2=3301882366*h2&c|(3120437893*(h2<<16|h1>>>16)&c)>>>16)>>>1)>>>0).toString(16),t=(h2>>>0).toString(16);return e.padStart(8,"0")+t.padStart(8,"0")}}])}();t.MurmurHash3_64=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var n=r(2),o=r(5),c=r(23),l=r(12),h=r(18),d=r(21),f=function(){function e(e,t,r,n){return(e=t+e*r)<0?e=0:e>n&&(e=n),e}function t(e,t,r,h1,n,h2){var o,c=n*h2;o=t<=8?new Uint8Array(c):t<=16?new Uint16Array(c):new Uint32Array(c);var i,l,h,d,f=r/n,m=h1/h2,v=0,y=new Uint16Array(n),k=r;for(i=0;i<n;i++)y[i]=Math.floor(i*f);for(i=0;i<h2;i++)for(h=Math.floor(i*m)*k,l=0;l<n;l++)d=h+y[l],o[v++]=e[d];return o}function r(e){var t=e.xref,l=e.res,image=e.image,h=e.isInline,f=void 0!==h&&h,m=e.smask,v=void 0===m?null:m,y=e.mask,mask=void 0===y?null:y,k=e.isMask,w=void 0!==k&&k,S=e.pdfFunctionFactory;this.image=image;var A=image.dict,filter=A.get("Filter");if((0,o.isName)(filter))switch(filter.name){case"JPXDecode":var x=new d.JpxImage;x.parseImageProperties(image.stream),image.stream.reset(),image.width=x.width,image.height=x.height,image.bitsPerComponent=x.bitsPerComponent,image.numComps=x.componentsCount;break;case"JBIG2Decode":image.bitsPerComponent=1,image.numComps=1}var C=A.get("Width","W"),_=A.get("Height","H");if(Number.isInteger(image.width)&&image.width>0&&Number.isInteger(image.height)&&image.height>0&&(image.width!==C||image.height!==_)&&((0,n.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),C=image.width,_=image.height),C<1||_<1)throw new n.FormatError("Invalid image width: ".concat(C," or height: ").concat(_));this.width=C,this.height=_,this.interpolate=A.get("Interpolate","I")||!1,this.imageMask=A.get("ImageMask","IM")||!1,this.matte=A.get("Matte")||!1;var P=image.bitsPerComponent;if(!P&&!(P=A.get("BitsPerComponent","BPC"))){if(!this.imageMask)throw new n.FormatError("Bits per component missing in image: ".concat(this.imageMask));P=1}if(this.bpc=P,!this.imageMask){var T=A.get("ColorSpace","CS");if(!T)switch((0,n.info)("JPX images (which do not require color spaces)"),image.numComps){case 1:T=o.Name.get("DeviceGray");break;case 3:T=o.Name.get("DeviceRGB");break;case 4:T=o.Name.get("DeviceCMYK");break;default:throw new Error("JPX images with ".concat(image.numComps," ")+"color components not supported.")}var I=f?l:null;this.colorSpace=c.ColorSpace.parse(T,t,I,S),this.numComps=this.colorSpace.numComps}if(this.decode=A.getArray("Decode","D"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,P)||w&&!c.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;var E=(1<<P)-1;this.decodeCoefficients=[],this.decodeAddends=[];for(var F=this.colorSpace&&"Indexed"===this.colorSpace.name,i=0,L=0;i<this.decode.length;i+=2,++L){var O=this.decode[i],R=this.decode[i+1];this.decodeCoefficients[L]=F?(R-O)/E:R-O,this.decodeAddends[L]=F?O:E*O}}v?this.smask=new r({xref:t,res:l,image:v,isInline:f,pdfFunctionFactory:S}):mask&&((0,o.isStream)(mask)?mask.dict.get("ImageMask","IM")?this.mask=new r({xref:t,res:l,image:mask,isInline:f,isMask:!0,pdfFunctionFactory:S}):(0,n.warn)("Ignoring /Mask in image without /ImageMask."):this.mask=mask)}return r.buildImage=function(e){var t=e.xref,c=e.res,image=e.image,l=e.isInline,h=void 0!==l&&l,d=e.pdfFunctionFactory,f=image,m=null,v=null,y=image.dict.get("SMask"),mask=image.dict.get("Mask");return y?m=y:mask&&((0,o.isStream)(mask)||Array.isArray(mask)?v=mask:(0,n.warn)("Unsupported mask format.")),Promise.resolve(new r({xref:t,res:c,image:f,isInline:h,smask:m,mask:v,pdfFunctionFactory:d}))},r.createMask=function(e){var data,i,t=e.imgArray,r=e.width,n=e.height,o=e.imageIsFromDecodeStream,c=e.inverseDecode,l=(r+7>>3)*n,h=t.byteLength;if(!o||c&&l!==h)if(c)for((data=new Uint8ClampedArray(l)).set(t),i=h;i<l;i++)data[i]=255;else(data=new Uint8ClampedArray(h)).set(t);else data=t;if(c)for(i=0;i<h;i++)data[i]^=255;return{data:data,width:r,height:n}},r.prototype={get drawWidth(){return Math.max(this.width,this.smask&&this.smask.width||0,this.mask&&this.mask.width||0)},get drawHeight(){return Math.max(this.height,this.smask&&this.smask.height||0,this.mask&&this.mask.height||0)},decodeBuffer:function(t){var i,r,n=this.bpc,o=this.numComps,c=this.decodeAddends,l=this.decodeCoefficients,h=(1<<n)-1;if(1!==n){var d=0;for(i=0,r=this.width*this.height;i<r;i++)for(var f=0;f<o;f++)t[d]=e(t[d],c[f],l[f],h),d++}else for(i=0,r=t.length;i<r;i++)t[i]=+!t[i]},getComponents:function(e){var t=this.bpc;if(8===t)return e;var output,r=this.width,n=this.height,o=this.numComps,c=r*n*o,l=0;output=t<=8?new Uint8Array(c):t<=16?new Uint16Array(c):new Uint32Array(c);var h,d,f=r*o,m=(1<<t)-1,i=0;if(1===t)for(var mask,v,y,k=0;k<n;k++){for(v=i+(-8&f),y=i+f;i<v;)d=e[l++],output[i]=d>>7&1,output[i+1]=d>>6&1,output[i+2]=d>>5&1,output[i+3]=d>>4&1,output[i+4]=d>>3&1,output[i+5]=d>>2&1,output[i+6]=d>>1&1,output[i+7]=1&d,i+=8;if(i<y)for(d=e[l++],mask=128;i<y;)output[i++]=+!!(d&mask),mask>>=1}else{var w=0;for(d=0,i=0,h=c;i<h;++i){for(i%f==0&&(d=0,w=0);w<t;)d=d<<8|e[l++],w+=8;var S=w-t,A=d>>S;A<0?A=0:A>m&&(A=m),output[i]=A,d&=(1<<S)-1,w=S}}return output},fillOpacity:function(e,o,c,l,image){var h,d,f,i,m,v,y=this.smask,mask=this.mask;if(y)d=y.width,f=y.height,h=new Uint8ClampedArray(d*f),y.fillGrayBuffer(h),d===o&&f===c||(h=t(h,y.bpc,d,f,o,c));else if(mask)if(mask instanceof r){for(d=mask.width,f=mask.height,h=new Uint8ClampedArray(d*f),mask.numComps=1,mask.fillGrayBuffer(h),i=0,m=d*f;i<m;++i)h[i]=255-h[i];d===o&&f===c||(h=t(h,mask.bpc,d,f,o,c))}else{if(!Array.isArray(mask))throw new n.FormatError("Unknown mask format.");h=new Uint8ClampedArray(o*c);var k=this.numComps;for(i=0,m=o*c;i<m;++i){var w=0,S=i*k;for(v=0;v<k;++v){var A=image[S+v],x=2*v;if(A<mask[x]||A>mask[x+1]){w=255;break}}h[i]=w}}if(h)for(i=0,v=3,m=o*l;i<m;++i,v+=4)e[v]=h[i];else for(i=0,v=3,m=o*l;i<m;++i,v+=4)e[v]=255},undoPreblend:function(e,t,r){var n=this.smask&&this.smask.matte;if(n)for(var o=this.colorSpace.getRgb(n,0),c=o[0],l=o[1],h=o[2],d=t*r*4,i=0;i<d;i+=4){var f=e[i+3];if(0!==f){var m=255/f;e[i]=(e[i]-c)*m+c,e[i+1]=(e[i+1]-l)*m+l,e[i+2]=(e[i+2]-h)*m+h}else e[i]=255,e[i+1]=255,e[i+2]=255}},createImageData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.drawWidth,o=this.drawHeight,c={width:r,height:o,kind:0,data:null},d=this.numComps,f=this.width,m=this.height,v=this.bpc,y=f*d*v+7>>3;if(!t){var k;if("DeviceGray"===this.colorSpace.name&&1===v?k=n.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==v||this.needsDecode||(k=n.ImageKind.RGB_24BPP),k&&!this.smask&&!this.mask&&r===f&&o===m){if(c.kind=k,e=this.getImageBytes(m*y),this.image instanceof l.DecodeStream)c.data=e;else{var w=new Uint8ClampedArray(e.length);w.set(e),c.data=w}if(this.needsDecode){(0,n.assert)(k===n.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");for(var S=c.data,i=0,A=S.length;i<A;i++)S[i]^=255}return c}if(this.image instanceof h.JpegStream&&!this.smask&&!this.mask){var x=m*y;switch(this.colorSpace.name){case"DeviceGray":x*=3;case"DeviceRGB":case"DeviceCMYK":return c.kind=n.ImageKind.RGB_24BPP,c.data=this.getImageBytes(x,r,o,!0),c}}}var C,_,P=0|(e=this.getImageBytes(m*y)).length/y*o/m,T=this.getComponents(e);return t||this.smask||this.mask?(c.kind=n.ImageKind.RGBA_32BPP,c.data=new Uint8ClampedArray(r*o*4),C=1,_=!0,this.fillOpacity(c.data,r,o,P,T)):(c.kind=n.ImageKind.RGB_24BPP,c.data=new Uint8ClampedArray(r*o*3),C=0,_=!1),this.needsDecode&&this.decodeBuffer(T),this.colorSpace.fillRgb(c.data,f,m,r,o,P,v,T,C),_&&this.undoPreblend(c.data,r,P),c},fillGrayBuffer:function(e){var t=this.numComps;if(1!==t)throw new n.FormatError("Reading gray scale from a color image: ".concat(t));var i,r,o=this.width,c=this.height,l=this.bpc,h=o*t*l+7>>3,d=this.getImageBytes(c*h),f=this.getComponents(d);if(1!==l){this.needsDecode&&this.decodeBuffer(f),r=o*c;var m=255/((1<<l)-1);for(i=0;i<r;++i)e[i]=m*f[i]}else if(r=o*c,this.needsDecode)for(i=0;i<r;++i)e[i]=f[i]-1&255;else for(i=0;i<r;++i)e[i]=255&-f[i]},getImageBytes:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=r||this.height,this.image.forceRGB=!!n,this.image.getBytes(e,!0)}},r}();t.PDFImage=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var n=r(2),o=1,c=2,l=1,h=2,d=3,f=4,m=5,v=6,k=7,S=8;function A(e){if("object"!==R(e)||null===e)return e;switch(e.name){case"AbortException":return new n.AbortException(e.message);case"MissingPDFException":return new n.MissingPDFException(e.message);case"UnexpectedResponseException":return new n.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new n.UnknownErrorException(e.message,e.details);default:return new n.UnknownErrorException(e.message,e.toString())}}var x=function(){return y((function e(t,r,n){var l=this;w(this,e),this.sourceName=t,this.targetName=r,this.comObj=n,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(e){var data=e.data;if(data.targetName===l.sourceName)if(data.stream)l._processStreamMessage(data);else if(data.callback){var t=data.callbackId,r=l.callbackCapabilities[t];if(!r)throw new Error("Cannot resolve callback ".concat(t));if(delete l.callbackCapabilities[t],data.callback===o)r.resolve(data.data);else{if(data.callback!==c)throw new Error("Unexpected callback case");r.reject(A(data.reason))}}else{var h=l.actionHandler[data.action];if(!h)throw new Error("Unknown action from worker: ".concat(data.action));if(data.callbackId){var d=l.sourceName,f=data.sourceName;new Promise((function(e){e(h(data.data))})).then((function(e){n.postMessage({sourceName:d,targetName:f,callback:o,callbackId:data.callbackId,data:e})}),(function(e){n.postMessage({sourceName:d,targetName:f,callback:c,callbackId:data.callbackId,reason:A(e)})}))}else data.streamId?l._createStreamSink(data):h(data.data)}},n.addEventListener("message",this._onComObjOnMessage)}),[{key:"on",value:function(e,t){var r=this.actionHandler;if(r[e])throw new Error('There is already an actionName called "'.concat(e,'"'));r[e]=t}},{key:"send",value:function(e,data,t){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:data},t)}},{key:"sendWithPromise",value:function(e,data,t){var r=this.callbackId++,o=(0,n.createPromiseCapability)();this.callbackCapabilities[r]=o;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:data},t)}catch(e){o.reject(e)}return o.promise}},{key:"sendWithStream",value:function(e,data,t,r){var o=this,c=this.streamId++,h=this.sourceName,d=this.targetName,f=this.comObj;return new ReadableStream({start:function(t){var l=(0,n.createPromiseCapability)();return o.streamControllers[c]={controller:t,startCall:l,pullCall:null,cancelCall:null,isClosed:!1},o._postMessage({sourceName:h,targetName:d,action:e,streamId:c,data:data,desiredSize:t.desiredSize},r),l.promise},pull:function(e){var t=(0,n.createPromiseCapability)();return o.streamControllers[c].pullCall=t,f.postMessage({sourceName:h,targetName:d,stream:v,streamId:c,desiredSize:e.desiredSize}),t.promise},cancel:function(e){(0,n.assert)(e instanceof Error,"cancel must have a valid reason");var t=(0,n.createPromiseCapability)();return o.streamControllers[c].cancelCall=t,o.streamControllers[c].isClosed=!0,f.postMessage({sourceName:h,targetName:d,stream:l,streamId:c,reason:A(e)}),t.promise}},t)}},{key:"_createStreamSink",value:function(data){var e=this,t=this.actionHandler[data.action],r=data.streamId,o=this.sourceName,c=data.sourceName,l=this.comObj,h={enqueue:function(t){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,h=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var d=this.desiredSize;this.desiredSize-=l,d>0&&this.desiredSize<=0&&(this.sinkCapability=(0,n.createPromiseCapability)(),this.ready=this.sinkCapability.promise),e._postMessage({sourceName:o,targetName:c,stream:f,streamId:r,chunk:t},h)}},close:function(){this.isCancelled||(this.isCancelled=!0,l.postMessage({sourceName:o,targetName:c,stream:d,streamId:r}),delete e.streamSinks[r])},error:function(e){(0,n.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,l.postMessage({sourceName:o,targetName:c,stream:m,streamId:r,reason:A(e)}))},sinkCapability:(0,n.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:data.desiredSize,ready:null};h.sinkCapability.resolve(),h.ready=h.sinkCapability.promise,this.streamSinks[r]=h,new Promise((function(e){e(t(data.data,h))})).then((function(){l.postMessage({sourceName:o,targetName:c,stream:S,streamId:r,success:!0})}),(function(e){l.postMessage({sourceName:o,targetName:c,stream:S,streamId:r,reason:A(e)})}))}},{key:"_processStreamMessage",value:function(data){var e=data.streamId,t=this.sourceName,r=data.sourceName,o=this.comObj;switch(data.stream){case S:data.success?this.streamControllers[e].startCall.resolve():this.streamControllers[e].startCall.reject(A(data.reason));break;case k:data.success?this.streamControllers[e].pullCall.resolve():this.streamControllers[e].pullCall.reject(A(data.reason));break;case v:if(!this.streamSinks[e]){o.postMessage({sourceName:t,targetName:r,stream:k,streamId:e,success:!0});break}this.streamSinks[e].desiredSize<=0&&data.desiredSize>0&&this.streamSinks[e].sinkCapability.resolve(),this.streamSinks[e].desiredSize=data.desiredSize;var c=this.streamSinks[data.streamId].onPull;new Promise((function(e){e(c&&c())})).then((function(){o.postMessage({sourceName:t,targetName:r,stream:k,streamId:e,success:!0})}),(function(n){o.postMessage({sourceName:t,targetName:r,stream:k,streamId:e,reason:A(n)})}));break;case f:if((0,n.assert)(this.streamControllers[e],"enqueue should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].controller.enqueue(data.chunk);break;case d:if((0,n.assert)(this.streamControllers[e],"close should have stream controller"),this.streamControllers[e].isClosed)break;this.streamControllers[e].isClosed=!0,this.streamControllers[e].controller.close(),this._deleteStreamController(e);break;case m:(0,n.assert)(this.streamControllers[e],"error should have stream controller"),this.streamControllers[e].controller.error(A(data.reason)),this._deleteStreamController(e);break;case h:data.success?this.streamControllers[e].cancelCall.resolve():this.streamControllers[e].cancelCall.reject(A(data.reason)),this._deleteStreamController(e);break;case l:if(!this.streamSinks[e])break;var y=this.streamSinks[data.streamId].onCancel;new Promise((function(e){e(y&&y(A(data.reason)))})).then((function(){o.postMessage({sourceName:t,targetName:r,stream:h,streamId:e,success:!0})}),(function(n){o.postMessage({sourceName:t,targetName:r,stream:h,streamId:e,reason:A(n)})})),this.streamSinks[e].sinkCapability.reject(A(data.reason)),this.streamSinks[e].isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:(e=O(T().mark((function e(t){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([this.streamControllers[t].startCall,this.streamControllers[t].pullCall,this.streamControllers[t].cancelCall].map((function(e){return e&&e.promise})));case 2:delete this.streamControllers[t];case 3:case"end":return e.stop()}}),e,this)}))),function(t){return e.apply(this,arguments)})},{key:"_postMessage",value:function(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]);var e}();t.MessageHandler=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var n=r(2),o=function(){return y((function e(t){w(this,e),this._msgHandler=t,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}),[{key:"getFullReader",value:function(){return(0,n.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new c(this._msgHandler),this._fullRequestReader}},{key:"getRangeReader",value:function(e,t){var r=new l(e,t,this._msgHandler);return this._rangeRequestReaders.push(r),r}},{key:"cancelAllRequests",value:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}}])}();t.PDFWorkerStream=o;var c=function(){return y((function e(t){var r=this;w(this,e),this._msgHandler=t,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;var n=this._msgHandler.sendWithStream("GetReader");this._reader=n.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((function(data){r._isStreamingSupported=data.isStreamingSupported,r._isRangeSupported=data.isRangeSupported,r._contentLength=data.contentLength}))}),[{key:"headersReady",get:function(){return this._headersReady}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"read",value:(e=O(T().mark((function e(){var t,r;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,!t.done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader.cancel(e)}}]);var e}(),l=function(){return y((function e(t,r,n){w(this,e),this._msgHandler=n,this.onProgress=null;var o=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:r});this._reader=o.getReader()}),[{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(e=O(T().mark((function e(){var t,r;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.read();case 2:if(t=e.sent,r=t.value,!t.done){e.next=7;break}return e.abrupt("return",{value:void 0,done:!0});case 7:return e.abrupt("return",{value:r.buffer,done:!1});case 8:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(e){this._reader.cancel(e)}}]);var e}()}])},"object"===R(t)&&"object"===R(r)?r.exports=l():(o=[],void 0===(c="function"==typeof(n=l)?n.apply(t,o):n)||(r.exports=c))}).call(this,r(140),r(138)(e))},3039:function(e,t,r){"use strict";r(2327)},3040:function(e,t,r){var n=r(13),o=r(85),c=r(3041),l=r(3042),h=n(!1),d=o(c),f=o(l);h.push([e.i,'/* Copyright 2014 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n.textLayer {\n  position: absolute;\n  left: 0;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  overflow: hidden;\n  opacity: 0.2;\n  line-height: 1.0;\n}\n.textLayer > span {\n  color: transparent;\n  position: absolute;\n  white-space: pre;\n  cursor: text;\n  transform-origin: 0% 0%;\n}\n.textLayer .highlight {\n  margin: -1px;\n  padding: 1px;\n  background-color: rgba(180, 0, 170, 1);\n  border-radius: 4px;\n}\n.textLayer .highlight.begin {\n  border-radius: 4px 0px 0px 4px;\n}\n.textLayer .highlight.end {\n  border-radius: 0px 4px 4px 0px;\n}\n.textLayer .highlight.middle {\n  border-radius: 0px;\n}\n.textLayer .highlight.selected {\n  background-color: rgba(0, 100, 0, 1);\n}\n.textLayer ::-moz-selection {\n  background: rgba(0, 0, 255, 1);\n}\n.textLayer ::selection {\n  background: rgba(0, 0, 255, 1);\n}\n.textLayer .endOfContent {\n  display: block;\n  position: absolute;\n  left: 0px;\n  top: 100%;\n  right: 0px;\n  bottom: 0px;\n  z-index: -1;\n  cursor: default;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n}\n.textLayer .endOfContent.active {\n  top: 0px;\n}\n.annotationLayer section {\n  position: absolute;\n}\n.annotationLayer .linkAnnotation > a,\n.annotationLayer .buttonWidgetAnnotation.pushButton > a {\n  position: absolute;\n  font-size: 1em;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n}\n.annotationLayer .linkAnnotation > a:hover,\n.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {\n  opacity: 0.2;\n  background: rgba(255, 255, 0, 1);\n  box-shadow: 0px 2px 10px rgba(255, 255, 0, 1);\n}\n.annotationLayer .textAnnotation img {\n  position: absolute;\n  cursor: pointer;\n}\n.annotationLayer .textWidgetAnnotation input,\n.annotationLayer .textWidgetAnnotation textarea,\n.annotationLayer .choiceWidgetAnnotation select,\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n  background-color: rgba(0, 54, 255, 0.13);\n  border: 1px solid transparent;\n  box-sizing: border-box;\n  font-size: 9px;\n  height: 100%;\n  margin: 0;\n  padding: 0 3px;\n  vertical-align: top;\n  width: 100%;\n}\n.annotationLayer .choiceWidgetAnnotation select option {\n  padding: 0;\n}\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n  border-radius: 50%;\n}\n.annotationLayer .textWidgetAnnotation textarea {\n  font: message-box;\n  font-size: 9px;\n  resize: none;\n}\n.annotationLayer .textWidgetAnnotation input[disabled],\n.annotationLayer .textWidgetAnnotation textarea[disabled],\n.annotationLayer .choiceWidgetAnnotation select[disabled],\n.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],\n.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {\n  background: none;\n  border: 1px solid transparent;\n  cursor: not-allowed;\n}\n.annotationLayer .textWidgetAnnotation input:hover,\n.annotationLayer .textWidgetAnnotation textarea:hover,\n.annotationLayer .choiceWidgetAnnotation select:hover,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {\n  border: 1px solid rgba(0, 0, 0, 1);\n}\n.annotationLayer .textWidgetAnnotation input:focus,\n.annotationLayer .textWidgetAnnotation textarea:focus,\n.annotationLayer .choiceWidgetAnnotation select:focus {\n  background: none;\n  border: 1px solid transparent;\n}\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {\n  background-color: rgba(0, 0, 0, 1);\n  content: \'\';\n  display: block;\n  position: absolute;\n}\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {\n  height: 80%;\n  left: 45%;\n  width: 1px;\n}\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {\n  transform: rotate(45deg);\n}\n.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {\n  transform: rotate(-45deg);\n}\n.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {\n  border-radius: 50%;\n  height: 50%;\n  left: 30%;\n  top: 20%;\n  width: 50%;\n}\n.annotationLayer .textWidgetAnnotation input.comb {\n  font-family: monospace;\n  padding-left: 2px;\n  padding-right: 0;\n}\n.annotationLayer .textWidgetAnnotation input.comb:focus {\n  /*\n   * Letter spacing is placed on the right side of each character. Hence, the\n   * letter spacing of the last character may be placed outside the visible\n   * area, causing horizontal scrolling. We avoid this by extending the width\n   * when the element has focus and revert this when it loses focus.\n   */\n  width: 115%;\n}\n.annotationLayer .buttonWidgetAnnotation.checkBox input,\n.annotationLayer .buttonWidgetAnnotation.radioButton input {\n  -webkit-appearance: none;\n     -moz-appearance: none;\n          appearance: none;\n  padding: 0;\n}\n.annotationLayer .popupWrapper {\n  position: absolute;\n  width: 20em;\n}\n.annotationLayer .popup {\n  position: absolute;\n  z-index: 200;\n  max-width: 20em;\n  background-color: rgba(255, 255, 153, 1);\n  box-shadow: 0px 2px 5px rgba(136, 136, 136, 1);\n  border-radius: 2px;\n  padding: 6px;\n  margin-left: 5px;\n  cursor: pointer;\n  font: message-box;\n  font-size: 9px;\n  word-wrap: break-word;\n}\n.annotationLayer .popup > * {\n  font-size: 9px;\n}\n.annotationLayer .popup h1 {\n  display: inline-block;\n}\n.annotationLayer .popup span {\n  display: inline-block;\n  margin-left: 5px;\n}\n.annotationLayer .popup p {\n  border-top: 1px solid rgba(51, 51, 51, 1);\n  margin-top: 2px;\n  padding-top: 2px;\n}\n.annotationLayer .highlightAnnotation,\n.annotationLayer .underlineAnnotation,\n.annotationLayer .squigglyAnnotation,\n.annotationLayer .strikeoutAnnotation,\n.annotationLayer .freeTextAnnotation,\n.annotationLayer .lineAnnotation svg line,\n.annotationLayer .squareAnnotation svg rect,\n.annotationLayer .circleAnnotation svg ellipse,\n.annotationLayer .polylineAnnotation svg polyline,\n.annotationLayer .polygonAnnotation svg polygon,\n.annotationLayer .caretAnnotation,\n.annotationLayer .inkAnnotation svg polyline,\n.annotationLayer .stampAnnotation,\n.annotationLayer .fileAttachmentAnnotation {\n  cursor: pointer;\n}\n.pdfViewer .canvasWrapper {\n  overflow: hidden;\n}\n.pdfViewer .page {\n  direction: ltr;\n  width: 816px;\n  height: 1056px;\n  margin: 1px auto -8px auto;\n  position: relative;\n  overflow: visible;\n  border: 9px solid transparent;\n  background-clip: content-box;\n  -o-border-image: url('+d+") 9 9 repeat;\n     border-image: url("+d+") 9 9 repeat;\n  background-color: rgba(255, 255, 255, 1);\n}\n.pdfViewer.removePageBorders .page {\n  margin: 0px auto 10px auto;\n  border: none;\n}\n.pdfViewer.singlePageView {\n  display: inline-block;\n}\n.pdfViewer.singlePageView .page {\n  margin: 0;\n  border: none;\n}\n.pdfViewer.scrollHorizontal, .pdfViewer.scrollWrapped, .spread {\n  margin-left: 3.5px;\n  margin-right: 3.5px;\n  text-align: center;\n}\n.pdfViewer.scrollHorizontal, .spread {\n  white-space: nowrap;\n}\n.pdfViewer.removePageBorders,\n.pdfViewer.scrollHorizontal .spread,\n.pdfViewer.scrollWrapped .spread {\n  margin-left: 0;\n  margin-right: 0;\n}\n.spread .page,\n.pdfViewer.scrollHorizontal .page,\n.pdfViewer.scrollWrapped .page,\n.pdfViewer.scrollHorizontal .spread,\n.pdfViewer.scrollWrapped .spread {\n  display: inline-block;\n  vertical-align: middle;\n}\n.spread .page,\n.pdfViewer.scrollHorizontal .page,\n.pdfViewer.scrollWrapped .page {\n  margin-left: -3.5px;\n  margin-right: -3.5px;\n}\n.pdfViewer.removePageBorders .spread .page,\n.pdfViewer.removePageBorders.scrollHorizontal .page,\n.pdfViewer.removePageBorders.scrollWrapped .page {\n  margin-left: 5px;\n  margin-right: 5px;\n}\n.pdfViewer .page canvas {\n  margin: 0;\n  display: block;\n}\n.pdfViewer .page canvas[hidden] {\n  display: none;\n}\n.pdfViewer .page .loadingIcon {\n  position: absolute;\n  display: block;\n  left: 0;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  background: url("+f+") center no-repeat;\n}\n.pdfPresentationMode .pdfViewer {\n  margin-left: 0;\n  margin-right: 0;\n}\n.pdfPresentationMode .pdfViewer .page,\n.pdfPresentationMode .pdfViewer .spread {\n  display: block;\n}\n.pdfPresentationMode .pdfViewer .page,\n.pdfPresentationMode .pdfViewer.removePageBorders .page {\n  margin-left: auto;\n  margin-right: auto;\n}\n.pdfPresentationMode:-ms-fullscreen .pdfViewer .page {\n  margin-bottom: 100% !important;\n}\n.pdfPresentationMode:-webkit-full-screen .pdfViewer .page {\n  margin-bottom: 100%;\n  border: 0;\n}\n.pdfPresentationMode:-moz-full-screen .pdfViewer .page {\n  margin-bottom: 100%;\n  border: 0;\n}\n.pdfPresentationMode:fullscreen .pdfViewer .page {\n  margin-bottom: 100%;\n  border: 0;\n}\n",""]),e.exports=h},3041:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII="},3042:function(e,t,r){e.exports=r.p+"img/loading-icon.faa74e8.gif"}}]);