!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],t):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=t():e["pdfjs-dist/build/pdf.worker"]=e.pdfjsDistBuildPdfWorker=t()}(this,function(){return function(e){function t(a){if(r[a])return r[a].exports;var i=r[a]={i:a,l:!1,exports:{}};e[a].call(i.exports,i,i.exports,t);i.l=!0;return i.exports}var r={};t.m=e;t.c=r;t.i=function(e){return e};t.d=function(e,r,a){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:a})};t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};t.d(r,"a",r);return r};t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};t.p="";return t(t.s=36)}([function(e,t,r){"use strict";(function(e){function a(e){ie=e}function i(){return ie}function n(e){ie>=te.infos&&console.log("Info: "+e)}function s(e){ie>=te.warnings&&console.log("Warning: "+e)}function o(e){console.log("Deprecated API usage: "+e)}function c(e){if(ie>=te.errors){console.log("Error: "+e);console.log(l())}throw new Error(e)}function l(){try{throw new Error}catch(e){return e.stack?e.stack.split("\n").slice(2).join("\n"):""}}function h(e,t){e||c(t)}function u(e,t){try{var r=new URL(e);if(!r.origin||"null"===r.origin)return!1}catch(e){return!1}var a=new URL(t,r);return r.origin===a.origin}function f(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function d(e,t){if(!e)return null;try{var r=t?new URL(e,t):new URL(e);if(f(r))return r}catch(e){}return null}function g(e,t,r){Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1});return r}function p(e){var t;return function(){if(e){t=Object.create(null);e(t);e=null}return t}}function m(e){if("string"!=typeof e){s("The argument for removeNullCharacters must be a string.");return e}return e.replace(pe,"")}function b(e){h(null!==e&&"object"===(void 0===e?"undefined":H(e))&&void 0!==e.length,"Invalid argument for bytesToString");var t=e.length;if(t<8192)return String.fromCharCode.apply(null,e);for(var r=[],a=0;a>24&255,e>>16&255,e>>8&255,255&e)}function S(e){for(var t=1,r=0;e>t;){t<<=1;r++}return r}function C(e,t){return e[t]<<24>>24}function x(e,t){return e[t]<<8|e[t+1]}function A(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function I(){var e=new Uint8Array(4);e[0]=1;return 1===new Uint32Array(e.buffer,0,1)[0]}function O(){try{new Function("");return!0}catch(e){return!1}}function P(e){var t,r=e.length,a=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;te[2]){t[0]=e[2];t[2]=e[0]}if(e[1]>e[3]){t[1]=e[3];t[3]=e[1]}return t};e.intersect=function(t,r){function a(e,t){return e-t}var i=[t[0],t[2],r[0],r[2]].sort(a),n=[t[1],t[3],r[1],r[3]].sort(a),s=[];t=e.normalizeRect(t);r=e.normalizeRect(r);if(!(i[0]===t[0]&&i[1]===r[0]||i[0]===r[0]&&i[1]===t[0]))return!1;s[0]=i[1];s[2]=i[2];if(!(n[0]===t[1]&&n[1]===r[1]||n[0]===r[1]&&n[1]===t[1]))return!1;s[1]=n[1];s[3]=n[2];return s};e.sign=function(e){return e<0?-1:1};var r=["","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"];e.toRoman=function(e,t){h(E(e)&&e>0,"The number should be a positive integer.");for(var a,i=[];e>=1e3;){e-=1e3;i.push("M")}a=e/100|0;e%=100;i.push(r[a]);a=e/10|0;e%=10;i.push(r[10+a]);i.push(r[20+e]);var n=i.join("");return t?n.toLowerCase():n};e.appendToArray=function(e,t){Array.prototype.push.apply(e,t)};e.prependToArray=function(e,t){Array.prototype.unshift.apply(e,t)};e.extendObj=function(e,t){for(var r in t)e[r]=t[r]};e.getInheritableProperty=function(e,t,r){for(;e&&!e.has(t);)e=e.get("Parent");return e?r?e.getArray(t):e.get(t):null};e.inherit=function(e,t,r){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;for(var a in r)e.prototype[a]=r[a]};e.loadScript=function(e,t){var r=document.createElement("script"),a=!1;r.setAttribute("src",e);t&&(r.onload=function(){a||t();a=!0});document.getElementsByTagName("head")[0].appendChild(r)};return e}(),ve=function(){function e(e,t,r,a,i,n){this.viewBox=e;this.scale=t;this.rotation=r;this.offsetX=a;this.offsetY=i;var s,o,c,l,h=(e[2]+e[0])/2,u=(e[3]+e[1])/2;r%=360;r=r<0?r+360:r;switch(r){case 180:s=-1;o=0;c=0;l=1;break;case 90:s=0;o=1;c=1;l=0;break;case 270:s=0;o=-1;c=-1;l=0;break;default:s=1;o=0;c=0;l=-1}if(n){c=-c;l=-l}var f,d,g,p;if(0===s){f=Math.abs(u-e[1])*t+a;d=Math.abs(h-e[0])*t+i;g=Math.abs(e[3]-e[1])*t;p=Math.abs(e[2]-e[0])*t}else{f=Math.abs(h-e[0])*t+a;d=Math.abs(u-e[1])*t+i;g=Math.abs(e[2]-e[0])*t;p=Math.abs(e[3]-e[1])*t}this.transform=[s*t,o*t,c*t,l*t,f-s*t*h-c*t*u,d-o*t*h-l*t*u];this.width=g;this.height=p;this.fontScale=t}e.prototype={clone:function(t){t=t||{};var r="scale"in t?t.scale:this.scale,a="rotation"in t?t.rotation:this.rotation;return new e(this.viewBox.slice(),r,a,this.offsetX,this.offsetY,t.dontFlip)},convertToViewportPoint:function(e,t){return be.applyTransform([e,t],this.transform)},convertToViewportRectangle:function(e){var t=be.applyTransform([e[0],e[1]],this.transform),r=be.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]},convertToPdfPoint:function(e,t){return be.applyInverseTransform([e,t],this.transform)}};return e}(),ye=[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],ke=function(){function e(e,t,r){for(;e.lengthn&&(n=s.length)}for(t=0,r=a.length;t2&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var a=we(t,r);return URL.createObjectURL(a)}for(var i="data:"+r+";base64,",n=0,s=t.length;n>2]+e[(3&o)<<4|c>>4]+e[n+1>6:64]+e[n+2=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=this.bytes,r=this.pos,a=this.end;if(!e)return t.subarray(r,a);var i=r+e;i>a&&(i=a);this.pos=i;return t.subarray(r,i)},peekByte:function(){var e=this.getByte();this.pos--;return e},peekBytes:function(e){var t=this.getBytes(e);this.pos-=t.length;return 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,a){return new e(this.bytes.buffer,t,r,a)}};return e}(),l=function(){function e(e){for(var t=e.length,r=new Uint8Array(t),a=0;aa&&(t=a)}else{for(;!this.eof;)this.readBlock();t=this.bufferLength}this.pos=t;return this.buffer.subarray(r,t)},peekByte:function(){var e=this.getByte();this.pos--;return e},peekBytes:function(e){var t=this.getBytes(e);this.pos-=t.length;return t},makeSubStream:function(e,t,r){for(var a=e+t;this.bufferLength<=a&&!this.eof;)this.readBlock();return new c(this.buffer,e,t,r)},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():[]}};return e}(),u=function(){function e(e){this.streams=e;h.call(this,null)}e.prototype=Object.create(h.prototype);e.prototype.readBlock=function(){var e=this.streams;if(0!==e.length){var t=e.shift(),r=t.getBytes(),a=this.bufferLength,i=a+r.length;this.ensureBuffer(i).set(r,a);this.bufferLength=i}else this.eof=!0};e.prototype.getBaseStreams=function(){for(var e=[],t=0,r=this.streams.length;t>e;this.codeSize=i-=e;return t};e.prototype.getCode=function(e){for(var t,r=this.str,i=e[0],n=e[1],s=this.codeSize,o=this.codeBuf;s>16,h=65535&c;(l<1||s>l;this.codeSize=s-l;return h};e.prototype.generateHuffmanTable=function(e){var t,r=e.length,a=0;for(t=0;ta&&(a=e[t]);for(var i=1<>=1}for(t=h;t>=1;if(0!==l){var h,u;if(1===l){h=n;u=s}else if(2===l){var f,d=this.getBits(5)+257,g=this.getBits(5)+1,p=this.getBits(4)+4,m=new Uint8Array(t.length);for(f=0;f0;)S[f++]=k}h=this.generateHuffmanTable(S.subarray(0,d));u=this.generateHuffmanTable(S.subarray(d,w))}else(0,a.error)("Unknown block type in flate stream");e=this.buffer;for(var A=e?e.length:0,I=this.bufferLength;;){var O=this.getCode(h);if(O<256){if(I+1>=A){e=this.ensureBuffer(I+1);A=e.length}e[I++]=O}else{if(256===O){this.bufferLength=I;return}O-=257;O=r[O];var P=O>>16;P>0&&(P=this.getBits(P));o=(65535&O)+P;O=this.getCode(u);O=i[O];P=O>>16;P>0&&(P=this.getBits(P));var T=(65535&O)+P;if(I+o>=A){e=this.ensureBuffer(I+o);A=e.length}for(var B=0;B15)&&(0,a.error)("Unsupported predictor: "+n);this.readBlock=2===n?this.readBlockTiff:this.readBlockPng;this.str=e;this.dict=e.dict;var s=this.colors=r.get("Colors")||1,o=this.bits=r.get("BitsPerComponent")||8,c=this.columns=r.get("Columns")||1;this.pixBytes=s*o+7>>3;this.rowBytes=c*s*o+7>>3;h.call(this,t);return this}e.prototype=Object.create(h.prototype);e.prototype.readBlockTiff=function(){var e=this.rowBytes,t=this.bufferLength,r=this.ensureBuffer(t+e),a=this.bits,i=this.colors,n=this.str.getBytes(e);this.eof=!n.length;if(!this.eof){var s,o=0,c=0,l=0,h=0,u=t;if(1===a&&1===i)for(s=0;s>1;f^=f>>2;f^=f>>4;o=(1&f)<<7;r[u++]=f}else if(8===a){for(s=0;s>l-a)&g;l-=a;c=c<=8){r[m++]=c>>h-8&255;h-=8}}h>0&&(r[m++]=(c<<8-h)+(o&(1<<8-h)-1))}this.bufferLength+=e}};e.prototype.readBlockPng=function(){var e=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),i=this.str.getBytes(e);this.eof=!i.length;if(!this.eof){var n=this.bufferLength,s=this.ensureBuffer(n+e),o=s.subarray(n-e,n);0===o.length&&(o=new Uint8Array(e));var c,l,h,u=n;switch(r){case 0:for(c=0;c>1)+i[c];for(;c>1)+i[c]&255;u++}break;case 4:for(c=0;c0;e=(0,this.decrypt)(e,!t);var r,a=this.bufferLength,i=e.length,n=this.ensureBuffer(a+i);for(r=0;r=0;--i){r[n+i]=255&o;o>>=8}}}else this.eof=!0};return e}(),y=function(){function e(e,t){this.str=e;this.dict=e.dict;this.firstDigit=-1;t&&(t*=.5);h.call(this,t)}e.prototype=Object.create(h.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),a=this.bufferLength,i=this.firstDigit,n=0,s=e.length;n=48&&c<=57)o=15&c;else{if(!(c>=65&&c<=70||c>=97&&c<=102)){if(62===c){this.eof=!0;break}continue}o=9+(15&c)}if(i<0)i=o;else{r[a++]=i<<4|o;i=-1}}if(i>=0&&this.eof){r[a++]=i<<4;i=-1}this.firstDigit=i;this.bufferLength=a}else this.eof=!0};return e}(),k=function(){function e(e,t){this.str=e;this.dict=e.dict;h.call(this,t)}e.prototype=Object.create(h.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,a=e[0];if(a<128){t=this.ensureBuffer(r+a+1);t[r++]=e[1];if(a>0){var i=this.str.getBytes(a);t.set(i,r);r+=a}}else{a=257-a;var n=e[1];t=this.ensureBuffer(r+a+1);for(var s=0;s0){this.nextLine2D=!this.lookBits(1);this.eatBits(1)}h.call(this,t)}var 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]],n=[[-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]],s=[[-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]],o=[[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]],c=[[-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]];e.prototype=Object.create(h.prototype);e.prototype.readBlock=function(){for(;!this.eof;){var e=this.lookChar();this.ensureBuffer(this.bufferLength+1);this.buffer[this.bufferLength++]=e}};e.prototype.addPixels=function(e,t){var r=this.codingLine,i=this.codingPos;if(e>r[i]){if(e>this.columns){(0,a.info)("row is wrong length");this.err=!0;e=this.columns}1&i^t&&++i;r[i]=e}this.codingPos=i};e.prototype.addPixelsNeg=function(e,t){var r=this.codingLine,i=this.codingPos;if(e>r[i]){if(e>this.columns){(0,a.info)("row is wrong length");this.err=!0;e=this.columns}1&i^t&&++i;r[i]=e}else if(e0&&e=64);do{l+=h=this.getWhiteCode()}while(h>=64)}else{do{c+=h=this.getWhiteCode()}while(h>=64);do{l+=h=this.getBlackCode()}while(h>=64)}this.addPixels(s[this.codingPos]+c,t);s[this.codingPos]0?--e:++e;for(;n[e]<=s[this.codingPos]&&n[e]0?--e:++e;for(;n[e]<=s[this.codingPos]&&n[e]0?--e:++e;for(;n[e]<=s[this.codingPos]&&n[e]=64);else do{c+=h=this.getWhiteCode()}while(h>=64);this.addPixels(s[this.codingPos]+c,t);t^=1}}var u=!1;this.byteAlign&&(this.inputBits&=-8);if(this.eoblock||this.row!==this.rows-1){c=this.lookBits(12);if(this.eoline)for(;-1!==c&&1!==c;){this.eatBits(1);c=this.lookBits(12)}else for(;0===c;){this.eatBits(1);c=this.lookBits(12)}if(1===c){this.eatBits(12);u=!0}else-1===c&&(this.eof=!0)}else this.eof=!0;if(!this.eof&&this.encoding>0){this.nextLine2D=!this.lookBits(1);this.eatBits(1)}if(this.eoblock&&u&&this.byteAlign){c=this.lookBits(12);if(1===c){this.eatBits(12);if(this.encoding>0){this.lookBits(1);this.eatBits(1)}if(this.encoding>=0)for(i=0;i<4;++i){c=this.lookBits(12);1!==c&&(0,a.info)("bad rtc code: "+c);this.eatBits(12);if(this.encoding>0){this.lookBits(1);this.eatBits(1)}}this.eof=!0}}else if(this.err&&this.eoline){for(;;){c=this.lookBits(13);if(-1===c){this.eof=!0;return null}if(c>>1==1)break;this.eatBits(1)}this.eatBits(12);if(this.encoding>0){this.eatBits(1);this.nextLine2D=!(1&c)}}s[0]>0?this.outputBits=s[this.codingPos=0]:this.outputBits=s[this.codingPos=1];this.row++}var f;if(this.outputBits>=8){f=1&this.codingPos?0:255;this.outputBits-=8;if(0===this.outputBits&&s[this.codingPos]r){f<<=r;1&this.codingPos||(f|=255>>8-r);this.outputBits-=r;r=0}else{f<<=this.outputBits;1&this.codingPos||(f|=255>>8-this.outputBits);r-=this.outputBits;this.outputBits=0;if(s[this.codingPos]0){f<<=r;r=0}}}while(r)}this.black&&(f^=255);return f};e.prototype.findTableCode=function(e,t,r,a){for(var i=a||0,n=e;n<=t;++n){var s=this.lookBits(n);if(-1===s)return[!0,1,!1];n=i){var o=r[s-i];if(o[0]===n){this.eatBits(n);return[!0,o[1],!0]}}}return[!1,0,!1]};e.prototype.getTwoDimCode=function(){var e,r=0;if(this.eoblock){r=this.lookBits(7);e=t[r];if(e&&e[0]>0){this.eatBits(e[0]);return e[1]}}else{var i=this.findTableCode(1,7,t);if(i[0]&&i[2])return i[1]}(0,a.info)("Bad two dim code");return-1};e.prototype.getWhiteCode=function(){var e,t=0;if(this.eoblock){t=this.lookBits(12);if(-1===t)return 1;e=t>>5==0?r[t]:n[t>>3];if(e[0]>0){this.eatBits(e[0]);return e[1]}}else{var i=this.findTableCode(1,9,n);if(i[0])return i[1];i=this.findTableCode(11,12,r);if(i[0])return i[1]}(0,a.info)("bad white code");this.eatBits(1);return 1};e.prototype.getBlackCode=function(){var e,t;if(this.eoblock){e=this.lookBits(13);if(-1===e)return 1;t=e>>7==0?s[e]:e>>9==0&&e>>7!=0?o[(e>>1)-64]:c[e>>7];if(t[0]>0){this.eatBits(t[0]);return t[1]}}else{var r=this.findTableCode(2,6,c);if(r[0])return r[1];r=this.findTableCode(7,12,o,64);if(r[0])return r[1];r=this.findTableCode(10,13,s);if(r[0])return r[1]}(0,a.info)("bad black code");this.eatBits(1);return 1};e.prototype.lookBits=function(e){for(var t;this.inputBits>16-e;this.inputBuf=this.inputBuf<<8|t;this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e};e.prototype.eatBits=function(e){(this.inputBits-=e)<0&&(this.inputBits=0)};return e}(),S=function(){function e(e,t,r){this.str=e;this.dict=e.dict;this.cachedData=0;this.bitsCached=0;for(var a={earlyChange:r,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(4096),dictionaryLengths:new Uint16Array(4096),dictionaryPrevCodes:new Uint16Array(4096),currentSequence:new Uint8Array(4096),currentSequenceLength:0},i=0;i<256;++i){a.dictionaryValues[i]=i;a.dictionaryLengths[i]=1}this.lzwState=a;h.call(this,t)}e.prototype=Object.create(h.prototype);e.prototype.readBits=function(e){for(var t=this.bitsCached,r=this.cachedData;t>>t&(1<0;if(b<256){f[0]=b;d=1}else{if(!(b>=258)){if(256===b){h=9;s=258;d=0;continue}this.eof=!0;delete this.lzwState;break}if(b=0;t--){f[t]=o[r];r=l[r]}}else f[d++]=f[0]}if(v){l[s]=u;c[s]=c[u]+1;o[s]=f[0];s++;h=s+n&s+n-1?h:0|Math.min(Math.log(s+n)/.6931471805599453+1,12)}u=b;g+=d;if(ag&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){var m,b=o<=8?new Uint8Array(g):new Uint16Array(g);for(h=0;h255?255:i;r[a]=r[a+1]=r[a+2]=i},getRgbBuffer:function(e,t,r,a,i,n,s){for(var o=255/((1<255?255:i;r[a+1]=n<0?0:n>255?255:n;r[a+2]=s<0?0:s>255?255:s},getRgbBuffer:function(e,t,r,a,i,n,s){if(8!==n||0!==s)for(var o=255/((1<255?255:l<0?0:l;a[i+1]=h>255?255:h<0?0:h;a[i+2]=u>255?255:u<0?0:u}function t(){this.name="DeviceCMYK";this.numComps=4;this.defaultColor=new Float32Array(this.numComps);this.defaultColor[3]=1}t.prototype={getRgb:s.prototype.getRgb,getRgbItem:function(t,r,a,i){e(t,r,1,a,i)},getRgbBuffer:function(t,r,a,i,n,s,o){for(var c=1/((1<8?Math.pow((e+16)/116,3):e*k}function l(e,t,r){if(0!==e[0]||0!==e[1]||0!==e[2]){var a=c(0),i=a,n=c(e[0]),s=a,o=c(e[1]),l=a,h=c(e[2]),u=(1-i)/(1-n),f=1-u,d=(1-s)/(1-o),g=1-d,p=(1-l)/(1-h),m=1-p;r[0]=t[0]*u+f;r[1]=t[1]*d+g;r[2]=t[2]*p+m}else{r[0]=t[0];r[1]=t[1];r[2]=t[2]}}function h(e,a,i){if(1!==e[0]||1!==e[2]){var n=i;t(d,a,n);var s=b;r(e,n,s);t(g,s,i)}else{i[0]=a[0];i[1]=a[1];i[2]=a[2]}}function u(e,r,a){var n=a;t(d,r,n);var s=b;i(e,n,s);t(g,s,a)}function f(e,r,a,i,s,c){var f=o(0,1,r[a]*c),d=o(0,1,r[a+1]*c),g=o(0,1,r[a+2]*c),b=Math.pow(f,e.GR),k=Math.pow(d,e.GG),w=Math.pow(g,e.GB),S=e.MXA*b+e.MXB*k+e.MXC*w,C=e.MYA*b+e.MYB*k+e.MYC*w,x=e.MZA*b+e.MZB*k+e.MZC*w,A=v;A[0]=S;A[1]=C;A[2]=x;var I=y;h(e.whitePoint,A,I);var O=v;l(e.blackPoint,I,O);var P=y;u(m,O,P);var T=v;t(p,P,T);var B=n(T[0]),R=n(T[1]),F=n(T[2]);i[s]=Math.round(255*B);i[s+1]=Math.round(255*R);i[s+2]=Math.round(255*F)}var d=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]),g=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]),p=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]),m=new Float32Array([1,1,1]),b=new Float32Array(3),v=new Float32Array(3),y=new Float32Array(3),k=Math.pow(24/116,3)/8;e.prototype={getRgb:function(e,t){var r=new Uint8Array(3);this.getRgbItem(e,t,r,0);return r},getRgbItem:function(e,t,r,a){f(this,e,t,r,a,1)},getRgbBuffer:function(e,t,r,a,i,n,s){for(var o=1/((1<this.amax||this.bmin>this.bmax){(0,a.info)("Invalid Range, falling back to defaults");this.amin=-100;this.amax=100;this.bmin=-100;this.bmax=100}}function t(e){var t;t=e>=6/29?e*e*e:108/841*(e-4/29);return t}function r(e,t,r,a){return r+e*(a-r)/t}function i(e,a,i,n,s,o){var c=a[i],l=a[i+1],h=a[i+2];if(!1!==n){c=r(c,n,0,100);l=r(l,n,e.amin,e.amax);h=r(h,n,e.bmin,e.bmax)}l=l>e.amax?e.amax:le.bmax?e.bmax:h=1?255:255*Math.sqrt(u)|0;s[o+1]=f<=0?0:f>=1?255:255*Math.sqrt(f)|0;s[o+2]=d<=0?0:d>=1?255:255*Math.sqrt(d)|0}e.prototype={getRgb:s.prototype.getRgb,getRgbItem:function(e,t,r,a){i(this,e,t,!1,r,a)},getRgbBuffer:function(e,t,r,a,n,s,o){for(var c=(1<>")&&!(0,n.isEOF)(this.buf1);)if((0,n.isName)(this.buf1)){var s=this.buf1.name;this.shift();if((0,n.isEOF)(this.buf1))break;a.set(s,this.getObj(e))}else{(0,i.info)("Malformed dictionary: key must be a name object");this.shift()}if((0,n.isEOF)(this.buf1)){this.recoveryMode||(0,i.error)("End of file inside dictionary");return a}if((0,n.isCmd)(this.buf2,"stream"))return this.allowStreams?this.makeStream(a,e):a;this.shift();return a;default:return t}if((0,i.isInt)(t)){var o=t;if((0,i.isInt)(this.buf1)&&(0,n.isCmd)(this.buf2,"R")){var c=new n.Ref(o,this.buf1);this.shift();this.shift();return c}return o}if((0,i.isString)(t)){var l=t;e&&(l=e.decryptString(l));return l}return t},findDefaultInlineStreamEnd:function(e){for(var t,r,a,n,s=e.pos,o=0;-1!==(t=e.getByte());)if(0===o)o=69===t?1:0;else if(1===o)o=73===t?2:0;else{(0,i.assert)(2===o);if(32===t||10===t||13===t){a=5;n=e.peekBytes(a);for(r=0;r127)){o=0;break}}if(2===o)break}else o=0}return e.pos-4-s},findDCTDecodeInlineStreamEnd:function(e){for(var t,r,a,n=e.pos,s=!1;-1!==(t=e.getByte());)if(255===t){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:s=!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:r=e.getUint16();r>2?e.skip(r-2):e.skip(-2)}if(s)break}a=e.pos-n;if(-1===t){(0,i.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead.");e.skip(-a);return this.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);return a},findASCII85DecodeInlineStreamEnd:function(e){for(var t,r,a=e.pos;-1!==(t=e.getByte());)if(126===t&&62===e.peekByte()){e.skip();break}r=e.pos-a;if(-1===t){(0,i.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead.");e.skip(-r);return this.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);return r},findASCIIHexDecodeInlineStreamEnd:function(e){for(var t,r,a=e.pos;-1!==(t=e.getByte())&&62!==t;);r=e.pos-a;if(-1===t){(0,i.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead.");e.skip(-r);return this.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);return r},inlineStreamSkipEI: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},makeInlineImage:function(e){for(var t=this.lexer,r=t.stream,a=new n.Dict(this.xref);!(0,n.isCmd)(this.buf1,"ID")&&!(0,n.isEOF)(this.buf1);){(0,n.isName)(this.buf1)||(0,i.error)("Dictionary key must be a name object");var s=this.buf1.name;this.shift();if((0,n.isEOF)(this.buf1))break;a.set(s,this.getObj(e))}var o,c=a.get("Filter","F");if((0,n.isName)(c))o=c.name;else if((0,i.isArray)(c)){var l=this.xref.fetchIfRef(c[0]);(0,n.isName)(l)&&(o=l.name)}var h,u,f,d=r.pos;h="DCTDecode"===o||"DCT"===o?this.findDCTDecodeInlineStreamEnd(r):"ASCII85Decide"===o||"A85"===o?this.findASCII85DecodeInlineStreamEnd(r):"ASCIIHexDecode"===o||"AHx"===o?this.findASCIIHexDecodeInlineStreamEnd(r):this.findDefaultInlineStreamEnd(r);var g,p=r.makeSubStream(d,h,a);if(h<1e3){var m=p.getBytes();p.reset();var b=1,v=0;for(u=0,f=m.length;u=9){f=!0;break}c++}if(f){u+=c;a.pos+=c;break}u+=g;a.pos+=g}f||(0,i.error)("Missing endstream");o=u;r.nextChar();this.shift();this.shift()}this.shift();a=a.makeSubStream(s,o,e);t&&(a=t.createStream(a,o));a=this.filter(a,e,o);a.dict=e;return a},filter:function(e,t,r){var a=t.get("Filter","F"),s=t.get("DecodeParms","DP");if((0,n.isName)(a)){(0,i.isArray)(s)&&(s=this.xref.fetchIfRef(s[0]));return this.makeFilter(e,a.name,r,s)}var o=r;if((0,i.isArray)(a))for(var c=a,l=s,h=0,u=c.length;h=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}var r=[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];e.prototype={nextChar:function(){return this.currentChar=this.stream.getByte()},peekChar:function(){return this.stream.peekByte()},getNumber:function(){var e=this.currentChar,t=!1,r=0,a=1;if(45===e){a=-1;e=this.nextChar();45===e&&(e=this.nextChar())}else 43===e&&(e=this.nextChar());if(46===e){r=10;e=this.nextChar()}if(10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);(e<48||e>57)&&(0,i.error)("Invalid number: "+String.fromCharCode(e)+" (charCode "+e+")");for(var n=e-48,s=0,o=1;(e=this.nextChar())>=0;)if(48<=e&&e<=57){var c=e-48;if(t)s=10*s+c;else{0!==r&&(r*=10);n=10*n+c}}else if(46===e){if(0!==r)break;r=1}else if(45===e)(0, i.warn)("Badly formatted number");else{if(69!==e&&101!==e)break;e=this.peekChar();if(43===e||45===e){o=45===e?-1:1;this.nextChar()}else if(e<48||e>57)break;t=!0}0!==r&&(n/=r);t&&(n*=Math.pow(10,o*s));return a*n},getString:function(){var e=1,t=!1,r=this.strBuf;r.length=0;for(var a=this.nextChar();;){var n=!1;switch(0|a){case-1:(0,i.warn)("Unterminated string");t=!0;break;case 40:++e;r.push("(");break;case 41:if(0==--e){this.nextChar();t=!0}else r.push(")");break;case 92:a=this.nextChar();switch(a){case-1:(0,i.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(a));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:var s=15&a;a=this.nextChar();n=!0;if(a>=48&&a<=55){s=(s<<3)+(15&a);a=this.nextChar();if(a>=48&&a<=55){n=!1;s=(s<<3)+(15&a)}}r.push(String.fromCharCode(s));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(a))}break;default:r.push(String.fromCharCode(a))}if(t)break;n||(a=this.nextChar())}return r.join("")},getName:function(){var e,a,s=this.strBuf;s.length=0;for(;(e=this.nextChar())>=0&&!r[e];)if(35===e){e=this.nextChar();if(r[e]){(0,i.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number.");s.push("#");break}var o=t(e);if(-1!==o){a=e;e=this.nextChar();var c=t(e);if(-1===c){(0,i.warn)("Lexer_getName: Illegal digit ("+String.fromCharCode(e)+") in hexadecimal number.");s.push("#",String.fromCharCode(a));if(r[e])break;s.push(String.fromCharCode(e));continue}s.push(String.fromCharCode(o<<4|c))}else s.push("#",String.fromCharCode(e))}else s.push(String.fromCharCode(e));s.length>127&&(0,i.warn)("name token is longer than allowed by the spec: "+s.length);return n.Name.get(s.join(""))},getHexString:function(){var e=this.strBuf;e.length=0;for(var a,n,s=this.currentChar,o=!0;;){if(s<0){(0,i.warn)("Unterminated hex string");break}if(62===s){this.nextChar();break}if(1!==r[s]){if(o){a=t(s);if(-1===a){(0,i.warn)('Ignoring invalid character "'+s+'" in hex string');s=this.nextChar();continue}}else{n=t(s);if(-1===n){(0,i.warn)('Ignoring invalid character "'+s+'" in hex string');s=this.nextChar();continue}e.push(String.fromCharCode(a<<4|n))}o=!o;s=this.nextChar()}else s=this.nextChar()}return e.join("")},getObj:function(){for(var e=!1,t=this.currentChar;;){if(t<0)return n.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==r[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:this.nextChar();return n.Cmd.get("[");case 93:this.nextChar();return n.Cmd.get("]");case 60:t=this.nextChar();if(60===t){this.nextChar();return n.Cmd.get("<<")}return this.getHexString();case 62:t=this.nextChar();if(62===t){this.nextChar();return n.Cmd.get(">>")}return n.Cmd.get(">");case 123:this.nextChar();return n.Cmd.get("{");case 125:this.nextChar();return n.Cmd.get("}");case 41:this.nextChar();(0,i.error)("Illegal character: "+t)}for(var a=String.fromCharCode(t),s=this.knownCommands,o=s&&void 0!==s[a];(t=this.nextChar())>=0&&!r[t];){var c=a+String.fromCharCode(t);if(o&&void 0===s[c])break;128===a.length&&(0,i.error)("Command token too long: "+a.length);a=c;o=s&&void 0!==s[a]}return"true"===a||"false"!==a&&("null"===a?null:n.Cmd.get(a))},skipToNextLine:function(){for(var e=this.currentChar;e>=0;){if(13===e){e=this.nextChar();10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}};return e}(),c={create:function(e){function t(e,t){var r=f.get(e);if((0,i.isInt)(r)&&(t?r>=0:r>0))return r;throw new Error('The "'+e+'" parameter in the linearization dictionary is invalid.')}var r,a,c=new s(new o(e),!1,null),l=c.getObj(),h=c.getObj(),u=c.getObj(),f=c.getObj();if(!((0,i.isInt)(l)&&(0,i.isInt)(h)&&(0,n.isCmd)(u,"obj")&&(0,n.isDict)(f)&&(0,i.isNum)(r=f.get("Linearized"))&&r>0))return null;if((a=t("L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:a,hints:function(){var e,t,r=f.get("H");if((0,i.isArray)(r)&&(2===(e=r.length)||4===e)){for(var a=0;a0))throw new Error("Hint ("+a+") in the linearization dictionary is invalid.");return r}throw new Error("Hint array in the linearization dictionary is invalid.")}(),objectNumberFirst:t("O"),endFirst:t("E"),numPages:t("N"),mainXRefEntriesOffset:t("T"),pageFirst:f.has("P")?t("P",!0):0}}};t.Lexer=o;t.Linearization=c;t.Parser=s},function(e,t,r){"use strict";function a(e){var t;if("object"!==(void 0===e?"undefined":i(e)))return!1;if((0,s.isDict)(e))t=e;else{if(!(0,s.isStream)(e))return!1;t=e.dict}return t.has("FunctionType")}Object.defineProperty(t,"__esModule",{value:!0});t.PostScriptCompiler=t.PostScriptEvaluator=t.PDFFunction=t.isPDFFunction=void 0;var i="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},n=r(0),s=r(1),o=r(34),c=function(){return{getSampleArray:function(e,t,r,a){var i,n,s=1;for(i=0,n=e.length;i>c)*h;l&=(1<r?e=r:e0&&(f=r[h-1]);var d=t[1];h>1,o=t.length>>1,c=new h(a),l=Object.create(null),f=8192,d=new Float32Array(o);return function(e,t,a,i){var n,h,u="",g=d;for(n=0;ny&&(h=y)}m[n]=h}if(f>0){f--;l[u]=m}a.set(m,i)}else a.set(p,i)}}}}(),l=function(){function e(e){this.stack=e?Array.prototype.slice.call(e,0):[]}e.prototype={push:function(e){this.stack.length>=100&&(0,n.error)("PostScript function stack overflow.");this.stack.push(e)},pop:function(){this.stack.length<=0&&(0,n.error)("PostScript function stack underflow.");return this.stack.pop()},copy:function(e){this.stack.length+e>=100&&(0,n.error)("PostScript function stack overflow.");for(var t=this.stack,r=t.length-e,a=e-1;a>=0;a--,r++)t.push(t[r])},index:function(e){this.push(this.stack[this.stack.length-e-1])},roll:function(e,t){var r,a,i,n=this.stack,s=n.length-e,o=n.length-1,c=s+(t-Math.floor(t/e)*e);for(r=s,a=o;r0?i.push(r<>a);break;case"ceiling":r=i.pop();i.push(Math.ceil(r));break;case"copy":r=i.pop();i.copy(r);break;case"cos":r=i.pop();i.push(Math.cos(r));break;case"cvi":r=0|i.pop();i.push(r);break;case"cvr":break;case"div":a=i.pop();r=i.pop();i.push(r/a);break;case"dup":i.copy(1);break;case"eq":a=i.pop();r=i.pop();i.push(r===a);break;case"exch":i.roll(2,1);break;case"exp":a=i.pop();r=i.pop();i.push(Math.pow(r,a));break;case"false":i.push(!1);break;case"floor":r=i.pop();i.push(Math.floor(r));break;case"ge":a=i.pop();r=i.pop();i.push(r>=a);break;case"gt":a=i.pop();r=i.pop();i.push(r>a);break;case"idiv":a=i.pop();r=i.pop();i.push(r/a|0);break;case"index":r=i.pop();i.index(r);break;case"le":a=i.pop();r=i.pop();i.push(r<=a);break;case"ln":r=i.pop();i.push(Math.log(r));break;case"log":r=i.pop();i.push(Math.log(r)/Math.LN10);break;case"lt":a=i.pop();r=i.pop();i.push(r=t?new r(t):e.max<=t?e:new i(e,t)}function f(){}e.prototype.visit=function(e){throw new Error("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)};a.prototype=Object.create(e.prototype);a.prototype.visit=function(e){e.visitBinaryOperation(this)};i.prototype=Object.create(e.prototype);i.prototype.visit=function(e){e.visitMin(this)};n.prototype=Object.create(e.prototype);n.prototype.visit=function(e){e.visitVariable(this)};s.prototype=Object.create(e.prototype);s.prototype.visit=function(e){e.visitVariableDefinition(this)};o.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("")}};f.prototype={compile:function(e,a,i){var f,d,g,p,m,b,v,y,k,w,S=[],C=[],x=a.length>>1,A=i.length>>1,I=0;for(f=0;fe.min){s.unshift("Math.max(",a,", ");s.push(")")}if(n0&&this._queuedChunks.push(r);this._msgHandler=t;this._isRangeSupported=!e.disableRange;this._isStreamingSupported=!e.disableStream;this._contentLength=e.length;this._fullRequestReader=null;this._rangeReaders=[];t.on("OnDataRange",this._onReceiveData.bind(this));t.on("OnDataProgress",this._onProgress.bind(this))}function t(e,t){this._stream=e;this._done=!1;this._queuedChunks=t||[];this._requests=[];this._headersReady=Promise.resolve();e._fullRequestReader=this;this.onProgress=null}function r(e,t,r){this._stream=e;this._begin=t;this._end=r;this._queuedChunk=null;this._requests=[];this._done=!1;this.onProgress=null}e.prototype={_onReceiveData:function(e){if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(e.chunk):this._queuedChunks.push(e.chunk);else{var t=this._rangeReaders.some(function(t){if(t._begin!==e.begin)return!1;t._enqueue(e.chunk);return!0});(0,s.assert)(t)}},_onProgress:function(e){if(this._rangeReaders.length>0){var t=this._rangeReaders[0];t.onProgress&&t.onProgress({loaded:e.loaded})}},_removeRangeReader:function(e){var t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)},getFullReader:function(){(0,s.assert)(!this._fullRequestReader);var e=this._queuedChunks;this._queuedChunks=null;return new t(this,e)},getRangeReader:function(e,t){var a=new r(this,e,t);this._msgHandler.send("RequestDataRange",{begin:e,end:t});this._rangeReaders.push(a);return a},cancelAllRequests:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);this._rangeReaders.slice(0).forEach(function(t){t.cancel(e)})}};t.prototype={_enqueue:function(e){if(!this._done)if(this._requests.length>0){var t=this._requests.shift();t.resolve({value:e,done:!1})}else this._queuedChunks.push(e)},get headersReady(){return this._headersReady},get isRangeSupported(){return this._stream._isRangeSupported},get isStreamingSupported(){return this._stream._isStreamingSupported},get contentLength(){return this._stream._contentLength},read:function(){if(this._queuedChunks.length>0){var e=this._queuedChunks.shift();return Promise.resolve({value:e,done:!1})}if(this._done)return Promise.resolve({value:void 0,done:!0});var t=(0,s.createPromiseCapability)();this._requests.push(t);return t.promise},cancel:function(e){this._done=!0;this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})});this._requests=[]}};r.prototype={_enqueue:function(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{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)}},get isStreamingSupported(){return!1},read:function(){if(this._queuedChunk)return Promise.resolve({value:this._queuedChunk,done:!1});if(this._done)return Promise.resolve({value:void 0,done:!0});var e=(0,s.createPromiseCapability)();this._requests.push(e);return e.promise},cancel:function(e){this._done=!0;this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})});this._requests=[];this._stream._removeRangeReader(this)}};return e}(),u={setup:function(e,t){var r=!1;e.on("test",function(t){if(!r){r=!0;if(t instanceof Uint8Array){var a=255===t[0];e.postMessageTransfers=a;var i=new XMLHttpRequest,n="response"in i;try{i.responseType}catch(e){n=!1}n?e.send("test",{supportTypedArray:!0,supportTransfers:a}):e.send("test",!1)}else e.send("test","main",!1)}});e.on("configure",function(e){(0,s.setVerbosityLevel)(e.verbosity)});e.on("GetDocRequest",function(e){return u.createDocumentHandler(e,t)})},createDocumentHandler:function(e,t){function r(){if(m)throw new Error("Worker was terminated")}function a(e){v.push(e)}function u(e){e.finish();var t=v.indexOf(e);v.splice(t,1)}function f(e){var t=(0,s.createPromiseCapability)(),r=function(){var e=p.ensureDoc("numPages"),r=p.ensureDoc("fingerprint"),i=p.ensureXRef("encrypt");Promise.all([e,r,i]).then(function(e){var r={numPages:e[0],fingerprint:e[1],encrypted:!!e[2]};t.resolve(r)},a)},a=function(e){t.reject(e)};p.ensureDoc("checkHeader",[]).then(function(){p.ensureDoc("parseStartXRef",[]).then(function(){p.ensureDoc("parse",[e]).then(r,a)},a)},a);return t.promise}function d(e,t){var a,n=(0,s.createPromiseCapability)(),c=e.source;if(c.data){try{a=new o.LocalPdfManager(y,c.data,c.password,t,k);n.resolve(a)}catch(e){n.reject(e)}return n.promise}var l;try{if(c.chunkedViewerLoading)l=new h(c,S);else{(0,s.assert)(i,"./network module is not loaded");l=new i(e)}}catch(e){n.reject(e);return n.promise}var u=l.getFullReader();u.headersReady.then(function(){u.isStreamingSupported&&u.isRangeSupported||(u.onProgress=function(e){S.send("DocProgress",{loaded:e.loaded,total:e.total})});if(u.isRangeSupported){var e=c.disableAutoFetch||u.isStreamingSupported;a=new o.NetworkPdfManager(y,l,{msgHandler:S,url:c.url,password:c.password,length:u.contentLength,disableAutoFetch:e,rangeChunkSize:c.rangeChunkSize},t,k);n.resolve(a);b=null}}).catch(function(e){n.reject(e);b=null});var f=[],d=0,g=function(){var e=(0,s.arraysToBytes)(f);c.length&&e.length!==c.length&&(0,s.warn)("reported HTTP length is different from actual");try{a=new o.LocalPdfManager(y,e,c.password,t,k);n.resolve(a)}catch(e){n.reject(e)}f=[]};new Promise(function(e,t){var i=function e(i){try{r();if(i.done){a||g();b=null;return}var n=i.value;d+=(0,s.arrayByteLength)(n);u.isStreamingSupported||S.send("DocProgress",{loaded:d,total:Math.max(d,u.contentLength||0)});a?a.sendProgressiveData(n):f.push(n);u.read().then(e,t)}catch(e){t(e)}};u.read().then(i,t)}).catch(function(e){n.reject(e);b=null});b=function(){l.cancelAllRequests("abort")};return n.promise}function g(e){function t(e){r();S.send("GetDoc",{pdfInfo:e})}function i(e){if(e instanceof s.PasswordException){var t=new l("PasswordException: response "+e.code);a(t);S.sendWithPromise("PasswordRequest",e).then(function(e){u(t);p.updatePassword(e.password);n()}).catch(function(e){u(t);S.send("PasswordException",e)}.bind(null,e))}else e instanceof s.InvalidPDFException?S.send("InvalidPDF",e):e instanceof s.MissingPDFException?S.send("MissingPDF",e):e instanceof s.UnexpectedResponseException?S.send("UnexpectedResponse",e):S.send("UnknownError",new s.UnknownErrorException(e.message,e.toString()))}function n(){r();f(!1).then(t,function(e){r();if(e instanceof s.XRefParseException){p.requestLoadedStream();p.onLoadedStream().then(function(){r();f(!0).then(t,i)})}else i(e)},i)}r();d(e,{forceDataSchema:e.disableCreateObjectURL,maxImageSize:void 0===e.maxImageSize?-1:e.maxImageSize,disableFontFace:e.disableFontFace,nativeImageDecoderSupport:e.nativeImageDecoderSupport,ignoreErrors:e.ignoreErrors}).then(function(e){if(m){e.terminate();throw new Error("Worker was terminated")}p=e;S.send("PDFManagerReady",null);p.onLoadedStream().then(function(e){S.send("DataLoaded",{length:e.bytes.byteLength})})}).then(n,i)}var p,m=!1,b=null,v=[],y=e.docId,k=e.docBaseUrl,w=e.docId+"_worker",S=new s.MessageHandler(w,y,t);S.postMessageTransfers=e.postMessageTransfers;S.on("GetPage",function(e){return p.getPage(e.pageIndex).then(function(e){var t=p.ensure(e,"rotate"),r=p.ensure(e,"ref"),a=p.ensure(e,"userUnit"),i=p.ensure(e,"view");return Promise.all([t,r,a,i]).then(function(e){return{rotate:e[0],ref:e[1],userUnit:e[2],view:e[3]}})})});S.on("GetPageIndex",function(e){var t=new c.Ref(e.ref.num,e.ref.gen);return p.pdfDocument.catalog.getPageIndex(t)});S.on("GetDestinations",function(e){return p.ensureCatalog("destinations")});S.on("GetDestination",function(e){return p.ensureCatalog("getDestination",[e.id])});S.on("GetPageLabels",function(e){return p.ensureCatalog("pageLabels")});S.on("GetAttachments",function(e){return p.ensureCatalog("attachments")});S.on("GetJavaScript",function(e){return p.ensureCatalog("javaScript")});S.on("GetOutline",function(e){return p.ensureCatalog("documentOutline")});S.on("GetMetadata",function(e){return Promise.all([p.ensureDoc("documentInfo"),p.ensureCatalog("metadata")])});S.on("GetData",function(e){p.requestLoadedStream();return p.onLoadedStream().then(function(e){return e.bytes})});S.on("GetStats",function(e){return p.pdfDocument.xref.stats});S.on("GetAnnotations",function(e){return p.getPage(e.pageIndex).then(function(t){return p.ensure(t,"getAnnotationsData",[e.intent])})});S.on("RenderPageRequest",function(e){var t=e.pageIndex;p.getPage(t).then(function(r){var i=new l("RenderPageRequest: page "+t);a(i);var o=t+1,c=Date.now();r.getOperatorList({handler:S,task:i,intent:e.intent,renderInteractiveForms:e.renderInteractiveForms}).then(function(e){u(i);(0,s.info)("page="+o+" - getOperatorList: time="+(Date.now()-c)+"ms, len="+e.totalLength)},function(t){u(i);if(!i.terminated){S.send("UnsupportedFeature",{featureId:s.UNSUPPORTED_FEATURES.unknown});var r,a="worker.js: while trying to getPage() and getOperatorList()";r="string"==typeof t?{message:t,stack:a}:"object"===(void 0===t?"undefined":n(t))?{message:t.message||t.toString(),stack:t.stack||a}:{message:"Unknown exception type: "+(void 0===t?"undefined":n(t)),stack:a};S.send("PageError",{pageNum:o,error:r,intent:e.intent})}})})},this);S.on("GetTextContent",function(e){var t=e.pageIndex;return p.getPage(t).then(function(r){var i=new l("GetTextContent: page "+t);a(i);var n=t+1,o=Date.now();return r.extractTextContent({handler:S,task:i,normalizeWhitespace:e.normalizeWhitespace,combineTextItems:e.combineTextItems}).then(function(e){u(i);(0,s.info)("text indexing: page="+n+" - time="+(Date.now()-o)+"ms");return e},function(e){u(i);if(!i.terminated)throw e})})});S.on("Cleanup",function(e){return p.cleanup()});S.on("Terminate",function(e){m=!0;if(p){p.terminate();p=null}b&&b();var t=[];v.forEach(function(e){t.push(e.finished);e.terminate()});return Promise.all(t).then(function(){S.destroy();S=null})});S.on("Ready",function(t){g(e);e=null});return w},initializeFromPort:function(e){var t=new s.MessageHandler("worker","main",e);u.setup(t,e);t.send("ready",null)}};"undefined"==typeof window&&!(0,s.isNodeJS)()&&"undefined"!=typeof self&&function(e){return"function"==typeof e.postMessage&&"onmessage"in e}(self)&&u.initializeFromPort(self);t.setPDFNetworkStreamClass=a;t.WorkerTask=l;t.WorkerMessageHandler=u},function(e,t,r){"use strict";var a,i="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};a=function(){return this}();try{a=a||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":i(window))&&(a=window)}e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t,r){this.data=e;this.bp=t;this.dataEnd=r;this.chigh=e[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}var t=[{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}];e.prototype={byteIn:function(){var e=this.data,t=this.bp;if(255===e[t]){if(e[t+1]>143){this.clow+=65280;this.ct=8}else{t++;this.clow+=e[t]<<9;this.ct=7;this.bp=t}}else{t++;this.clow+=t65535){this.chigh+=this.clow>>16;this.clow&=65535}},readBit:function(e,r){var a,i=e[r]>>1,n=1&e[r],s=t[i],o=s.qe,c=this.a-o;if(this.chigh>15&1;this.clow=this.clow<<1&65535;this.ct--}while(0==(32768&c));this.a=c;e[r]=i<<1|n;return a}};return e}();t.ArithmeticDecoder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CFFCompiler=t.CFFPrivateDict=t.CFFTopDict=t.CFFCharset=t.CFFIndex=t.CFFStrings=t.CFFHeader=t.CFF=t.CFFParser=t.CFFStandardStrings=void 0;var a=r(0),i=r(22),n=r(4),s=[".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"],o=function(){function e(e,t,r){this.bytes=e.getBytes();this.properties=t;this.seacAnalysisEnabled=!!r}var t=[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}],r=[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}];e.prototype={parse:function(){var e=this.properties,t=new c;this.cff=t;var r=this.parseHeader(),a=this.parseIndex(r.endPos),i=this.parseIndex(a.endPos),n=this.parseIndex(i.endPos),s=this.parseIndex(n.endPos),o=this.parseDict(i.obj.get(0)),l=this.createDict(d,o,t.strings);t.header=r.obj;t.names=this.parseNameIndex(a.obj);t.strings=this.parseStringIndex(n.obj);t.topDict=l;t.globalSubrIndex=s.obj;this.parsePrivateDict(t.topDict);t.isCIDFont=l.hasName("ROS");var h=l.getByName("CharStrings"),u=this.parseIndex(h).obj,f=l.getByName("FontMatrix");f&&(e.fontMatrix=f);var g=l.getByName("FontBBox");if(g){e.ascent=Math.max(g[3],g[1]);e.descent=Math.min(g[1],g[3]);e.ascentScaled=!0}var p,m;if(t.isCIDFont){for(var b=this.parseIndex(l.getByName("FDArray")).obj,v=0,y=b.count;v=t)(0,a.error)("Invalid CFF header");else if(0!==r){(0,a.info)("cff data is shifted");e=e.subarray(r);this.bytes=e}var i=e[0],n=e[1],s=e[2],o=e[3];return{obj:new l(i,n,s,o),endPos:s}},parseDict:function(e){function t(){for(var t="",a=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],i=e.length;r>4,o=15&n;if(15===s)break;t+=a[s];if(15===o)break;t+=a[o]}return parseFloat(t)}var r=0,i=[],n=[];r=0;for(var s=e.length;r>16;return i}if(29===i){i=e[r++];i=i<<8|e[r++];i=i<<8|e[r++];i=i<<8|e[r++];return i}if(i>=32&&i<=246)return i-139;if(i>=247&&i<=250)return 256*(i-247)+e[r++]+108;if(i>=251&&i<=254)return-256*(i-251)-e[r++]-108;(0,a.warn)('CFFParser_parseDict: "'+i+'" is a reserved command.');return NaN}())}return n},parseIndex:function(e){var t,r,a=new u,i=this.bytes,n=i[e++]<<8|i[e++],s=[],o=e;if(0!==n){var c=i[e++],l=e+(n+1)*c-1;for(t=0,r=n+1;t126||91===l||93===l||40===l||41===l||123===l||125===l||60===l||62===l||47===l||37===l||35===l?95:l:o[c]=l}t.push((0,a.bytesToString)(o))}return t},parseStringIndex:function(e){for(var t=new h,r=0,i=e.count;r10)return!1;for(var o=e.stackSize,c=e.stack,l=i.length,h=0;h>16;h+=2;o++}else if(14===u){if(o>=4){o-=4;if(this.seacAnalysisEnabled){e.seac=c.slice(o,o+4);return!1}}f=t[u]}else if(u>=32&&u<=246){c[o]=u-139;o++}else if(u>=247&&u<=254){c[o]=u<251?(u-247<<8)+i[h]+108:-(u-251<<8)-i[h]-108;h++;o++}else if(255===u){c[o]=(i[h]<<24|i[h+1]<<16|i[h+2]<<8|i[h+3])/65536;h+=4;o++}else if(19===u||20===u){e.hints+=o>>1;h+=e.hints+7>>3;o%=2;f=t[u]}else{if(10===u||29===u){var g;g=10===u?n:s;if(!g){f=t[u];(0,a.warn)("Missing subrsIndex for "+f.id);return!1}var p=32768;g.count<1240?p=107:g.count<33900&&(p=1131);var m=c[--o]+p;if(m<0||m>=g.count||isNaN(m)){f=t[u];(0,a.warn)("Out of bounds subrIndex for "+f.id);return!1}e.stackSize=o;e.callDepth++;var b=this.parseCharString(e,g.get(m),n,s);if(!b)return!1;e.callDepth--;o=e.stackSize;continue}if(11===u){e.stackSize=o;return!0}f=t[u]}if(f){f.stem&&(e.hints+=o>>1);if("min"in f&&!e.undefStack&&o=2&&f.stem?o%=2:o>1&&(0,a.warn)("Found too many parameters for stack-clearing command");o>0&&c[o-1]>=0&&(e.width=c[o-1])}if("stackDelta"in f){"stackFn"in f&&f.stackFn(c,o);o+=f.stackDelta}else if(f.stackClearing)o=0;else if(f.resetStack){o=0;e.undefStack=!1}else if(f.undefStack){o=0;e.undefStack=!0;e.firstStackClearing=!1}}}e.stackSize=o;return!0},parseCharStrings:function(e,t,r,i,n){for(var s=[],o=[],c=e.count,l=0;l=n.length){(0,a.warn)("Invalid fd index for glyph index.");f=!1}f&&(d=n[g].privateDict.subrsIndex)}else t&&(d=t);f&&(f=this.parseCharString(u,h,d,r));null!==u.width&&(o[l]=u.width);null!==u.seac&&(s[l]=u.seac);f||e.set(l,new Uint8Array([14]))}return{charStrings:e,seacs:s,widths:o}},emptyPrivateDictionary:function(e){var t=this.createDict(g,[],e.strings);e.setByKey(18,[0,0]);e.privateDict=t},parsePrivateDict:function(e){if(e.hasName("Private")){var t=e.getByName("Private");if((0,a.isArray)(t)&&2===t.length){var r=t[0],i=t[1];if(0===r||i>=this.bytes.length)this.emptyPrivateDictionary(e);else{var n=i+r,s=this.bytes.subarray(i,n),o=this.parseDict(s),c=this.createDict(g,o,e.strings);e.privateDict=c;if(c.getByName("Subrs")){var l=c.getByName("Subrs"),h=i+l;if(0===l||h>=this.bytes.length)this.emptyPrivateDictionary(e);else{var u=this.parseIndex(h);c.subrsIndex=u.obj}}}}else e.removeByName("Private")}else this.emptyPrivateDictionary(e)},parseCharsets:function(e,t,r,n){if(0===e)return new m(!0,p.ISO_ADOBE,i.ISOAdobeCharset);if(1===e)return new m(!0,p.EXPERT,i.ExpertCharset);if(2===e)return new m(!0,p.EXPERT_SUBSET,i.ExpertSubsetCharset);var s,o,c,l=this.bytes,h=e,u=l[e++],f=[".notdef"];t-=1;switch(u){case 0:for(c=0;c=0&&e<=390?s[e]:e-391<=this.strings.length?this.strings[e-391]:s[0]},add:function(e){this.strings.push(e)},get count(){return this.strings.length}};return e}(),u=function(){function e(){this.objects=[];this.length=0}e.prototype={add:function(e){this.length+=e.length;this.objects.push(e)},set:function(e,t){this.length+=t.length-this.objects[e].length;this.objects[e]=t},get:function(e){return this.objects[e]},get count(){return this.objects.length}};return e}(),f=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)}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=this.fdSelect.length?-1:this.fdSelect[e]}};return e}(),y=function(){function e(){this.offsets=Object.create(null)}e.prototype={isTracking:function(e){return e in this.offsets},track:function(e,t){e in this.offsets&&(0,a.error)("Already tracking location of "+e);this.offsets[e]=t},offset:function(e){for(var t in this.offsets)this.offsets[t]+=e},setEntryLocation:function(e,t,r){e in this.offsets||(0,a.error)("Not tracking location of "+e);for(var i=r.data,n=this.offsets[e],s=0,o=t.length;s>24&255;i[h]=d>>16&255;i[u]=d>>8&255;i[f]=255&d}}};return e}(),k=function(){function e(e){this.cff=e}e.prototype={compile:function(){var e=this.cff,t={data:[],length:0,add:function(e){this.data=this.data.concat(e);this.length=this.data.length}},r=this.compileHeader(e.header);t.add(r);var i=this.compileNameIndex(e.names);t.add(i);if(e.isCIDFont&&e.topDict.hasName("FontMatrix")){var n=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(var s=0,o=e.fdArray.length;s=-107&&e<=107)t=[e+139];else if(e>=108&&e<=1131){e-=108;t=[247+(e>>8),255&e]}else if(e>=-1131&&e<=-108){e=-e-108;t=[251+(e>>8),255&e]}else t=e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e];return t},compileHeader:function(e){return[e.major,e.minor,e.hdrSize,e.offSize]},compileNameIndex:function(e){for(var t=new u,r=0,i=e.length;r>8&255,255&a],s=1;for(i=0;i>8&255,255&c):3===o?n.push(c>>16&255,c>>8&255,255&c):n.push(c>>>24&255,c>>16&255,c>>8&255,255&c);r[i]&&(c+=r[i].length)}for(i=0;i=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(a=r;a=t||t<=this.progressiveDataLength))for(var r=this.chunkSize,i=Math.floor(e/r),n=Math.floor((t-1)/r)+1,s=i;s=this.end)return-1;this.ensureByte(e);return 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=this.bytes,r=this.pos,a=this.end;if(!e){this.ensureRange(r,a);return t.subarray(r,a)}var i=r+e;i>a&&(i=a);this.ensureRange(r,i);this.pos=i;return t.subarray(r,i)},peekByte:function(){var e=this.getByte();this.pos--;return e},peekBytes:function(e){var t=this.getBytes(e);this.pos-=t.length;return t},getByteRange:function(e,t){this.ensureRange(e,t);return 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(e,t,r){function a(){}this.ensureRange(e,e+t);a.prototype=Object.create(this);a.prototype.getMissingChunks=function(){for(var e=this.chunkSize,t=Math.floor(this.start/e),r=Math.floor((this.end-1)/e)+1,a=[],i=t;i=0&&a+1!==n){t.push({beginChunk:r,endChunk:a+1});r=n}i+1===e.length&&t.push({beginChunk:r,endChunk:n+1});a=n}return t},onProgress:function(e){var t=this.stream.numChunksLoaded*this.chunkSize+e.loaded;this.msgHandler.send("DocProgress",{loaded:t,total:this.length})},onReceiveData:function(e){var t=e.chunk,r=void 0===e.begin,i=r?this.progressiveDataLength:e.begin,n=i+t.byteLength,s=Math.floor(i/this.chunkSize),o=n>5&255;d[n++]=i>>13&255;d[n++]=i>>21&255;d[n++]=i>>>29&255;d[n++]=0;d[n++]=0;d[n++]=0;var g=new Int32Array(16);for(n=0;n>>32-C)|0;b=w}c=c+b|0;l=l+v|0;h=h+y|0;u=u+k|0}return new Uint8Array([255&c,c>>8&255,c>>16&255,c>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255,255&h,h>>8&255,h>>16&255,h>>>24&255,255&u,u>>8&255,u>>16&255,u>>>24&255])}var t=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]),r=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]);return e}(),c=function(){function e(e,t){this.high=0|e;this.low=0|t}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){if(e>=32){this.low=this.high>>>e-32|0;this.high=0}else{this.low=this.low>>>e|this.high<<32-e;this.high=this.high>>>e|0}},shiftLeft:function(e){if(e>=32){this.high=this.low<>>32-e;this.low=this.low<>>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}};return e}(),l=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 a(t){return e(t,2)^e(t,13)^e(t,22)}function i(t){return e(t,6)^e(t,11)^e(t,25)}function n(t){return e(t,7)^e(t,18)^t>>>3}function s(t){return e(t,17)^e(t,19)^t>>>10}function o(e,o,l){var h,u,f,d=1779033703,g=3144134277,p=1013904242,m=2773480762,b=1359893119,v=2600822924,y=528734635,k=1541459225,w=64*Math.ceil((l+9)/64),S=new Uint8Array(w);for(h=0;h>>29&255;S[h++]=l>>21&255;S[h++]=l>>13&255;S[h++]=l>>5&255;S[h++]=l<<3&255;var C=new Uint32Array(64);for(h=0;h>24&255,d>>16&255,d>>8&255,255&d,g>>24&255,g>>16&255,g>>8&255,255&g,p>>24&255,p>>16&255,p>>8&255,255&p,m>>24&255,m>>16&255,m>>8&255,255&m,b>>24&255,b>>16&255,b>>8&255,255&b,v>>24&255,v>>16&255,v>>8&255,255&v,y>>24&255,y>>16&255,y>>8&255,255&y,k>>24&255,k>>16&255,k>>8&255,255&k])}var c=[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 o}(),h=function(){function e(e,t,r,a,i){e.assign(t);e.and(r);i.assign(t);i.not();i.and(a);e.xor(i)}function t(e,t,r,a,i){e.assign(t);e.and(r);i.assign(t);i.and(a);e.xor(i);i.assign(r);i.and(a);e.xor(i)}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 a(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 i(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 n(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)}function s(s,l,h,u){u=!!u;var f,d,g,p,m,b,v,y;if(u){f=new c(3418070365,3238371032);d=new c(1654270250,914150663);g=new c(2438529370,812702999);p=new c(355462360,4144912697);m=new c(1731405415,4290775857);b=new c(2394180231,1750603025);v=new c(3675008525,1694076839);y=new c(1203062813,3204075428)}else{f=new c(1779033703,4089235720);d=new c(3144134277,2227873595);g=new c(1013904242,4271175723);p=new c(2773480762,1595750129);m=new c(1359893119,2917565137);b=new c(2600822924,725511199);v=new c(528734635,4215389547);y=new c(1541459225,327033209)}var k,w,S,C=128*Math.ceil((h+17)/128),x=new Uint8Array(C);for(k=0;k>>29&255;x[k++]=h>>21&255;x[k++]=h>>13&255;x[k++]=h>>5&255;x[k++]=h<<3&255;var A=new Array(80);for(k=0;k<80;k++)A[k]=new c(0,0);var I,O=new c(0,0),P=new c(0,0),T=new c(0,0),B=new c(0,0),R=new c(0,0),F=new c(0,0),E=new c(0,0),M=new c(0,0),D=new c(0,0),L=new c(0,0),U=new c(0,0),N=new c(0,0);for(k=0;k=1;--a){s=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=s;s=r[14];c=r[10];r[14]=r[6];r[10]=r[2];r[6]=s;r[2]=c;s=r[15];c=r[11];l=r[7];r[15]=r[3];r[11]=s;r[7]=c;r[3]=l;for(i=0;i<16;++i)r[i]=o[r[i]];for(i=0,n=16*a;i<16;++i,++n)r[i]^=t[n];for(i=0;i<16;i+=4){var u=h[r[i]],f=h[r[i+1]],d=h[r[i+2]],g=h[r[i+3]];s=u^f>>>8^f<<24^d>>>16^d<<16^g>>>24^g<<8;r[i]=s>>>24&255;r[i+1]=s>>16&255;r[i+2]=s>>8&255;r[i+3]=255&s}}s=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=s;s=r[14];c=r[10];r[14]=r[6];r[10]=r[2];r[6]=s;r[2]=c;s=r[15];c=r[11];l=r[7];r[15]=r[3];r[11]=s;r[7]=c;r[3]=l;for(i=0;i<16;++i){r[i]=o[r[i]];r[i]^=t[i]}return r}function r(e,t){var r,a,i,n,o=new Uint8Array(16);o.set(e);for(h=0;h<16;++h)o[h]^=t[h];for(l=1;l<10;l++){for(h=0;h<16;++h)o[h]=s[o[h]];i=o[1];o[1]=o[5];o[5]=o[9];o[9]=o[13];o[13]=i;i=o[2];a=o[6];o[2]=o[10];o[6]=o[14];o[10]=i;o[14]=a;i=o[3];a=o[7];r=o[11];o[3]=o[15];o[7]=i;o[11]=a;o[15]=r;for(var h=0;h<16;h+=4){var u=o[h+0],f=o[h+1],d=o[h+2],g=o[h+3];r=u^f^d^g;o[h+0]^=r^c[u^f];o[h+1]^=r^c[f^d];o[h+2]^=r^c[d^g];o[h+3]^=r^c[g^u]}for(h=0,n=16*l;h<16;++h,++n)o[h]^=t[n]}for(h=0;h<16;++h)o[h]=s[o[h]];i=o[1];o[1]=o[5];o[5]=o[9];o[9]=o[13];o[13]=i;i=o[2];a=o[6];o[2]=o[10];o[6]=o[14];o[10]=i;o[14]=a;i=o[3];a=o[7];r=o[11];o[3]=o[15];o[7]=i;o[11]=a;o[15]=r;for(h=0,n=160;h<16;++h,++n)o[h]^=t[n];return o}function a(t){this.key=e(t);this.buffer=new Uint8Array(16);this.bufferPosition=0}function i(e,r){var a,i,n,s=e.length,o=this.buffer,c=this.bufferPosition,l=[],h=this.iv;for(a=0;a=n;--a)if(d[a]!==g){g=0;break}f-=g;l[l.length-1]=d.subarray(0,16-g)}}var p=new Uint8Array(f);for(a=0,i=0,n=l.length;a=256&&(r=255&(27^r))}for(var h=0;h<4;++h){t[a]=s^=t[a-32];a++;t[a]=o^=t[a-32];a++;t[a]=c^=t[a-32];a++;t[a]=l^=t[a-32];a++}}return t}function t(e,t){var r=new Uint8Array(16);r.set(e);var a,i,n,o,c,h;for(i=0,n=224;i<16;++i,++n)r[i]^=t[n];for(a=13;a>=1;--a){o=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=o;o=r[14];c=r[10];r[14]=r[6];r[10]=r[2];r[6]=o;r[2]=c;o=r[15];c=r[11];h=r[7];r[15]=r[3];r[11]=o;r[7]=c;r[3]=h;for(i=0;i<16;++i)r[i]=s[r[i]];for(i=0,n=16*a;i<16;++i,++n)r[i]^=t[n];for(i=0;i<16;i+=4){var u=l[r[i]],f=l[r[i+1]],d=l[r[i+2]],g=l[r[i+3]];o=u^f>>>8^f<<24^d>>>16^d<<16^g>>>24^g<<8;r[i]=o>>>24&255;r[i+1]=o>>16&255;r[i+2]=o>>8&255;r[i+3]=255&o}}o=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=o;o=r[14];c=r[10];r[14]=r[6];r[10]=r[2];r[6]=o;r[2]=c;o=r[15];c=r[11];h=r[7];r[15]=r[3];r[11]=o;r[7]=c;r[3]=h;for(i=0;i<16;++i){r[i]=s[r[i]];r[i]^=t[i]}return r}function r(e,t){var r,a,i,s,l=new Uint8Array(16);l.set(e);for(h=0;h<16;++h)l[h]^=t[h];for(c=1;c<14;c++){for(h=0;h<16;++h)l[h]=n[l[h]];i=l[1];l[1]=l[5];l[5]=l[9];l[9]=l[13];l[13]=i;i=l[2];a=l[6];l[2]=l[10];l[6]=l[14];l[10]=i;l[14]=a;i=l[3];a=l[7];r=l[11];l[3]=l[15];l[7]=i;l[11]=a;l[15]=r;for(var h=0;h<16;h+=4){var u=l[h+0],f=l[h+1],d=l[h+2],g=l[h+3];r=u^f^d^g;l[h+0]^=r^o[u^f];l[h+1]^=r^o[f^d];l[h+2]^=r^o[d^g];l[h+3]^=r^o[g^u]}for(h=0,s=16*c;h<16;++h,++s)l[h]^=t[s]}for(h=0;h<16;++h)l[h]=n[l[h]];i=l[1];l[1]=l[5];l[5]=l[9];l[9]=l[13];l[13]=i;i=l[2];a=l[6];l[2]=l[10];l[6]=l[14];l[10]=i;l[14]=a;i=l[3];a=l[7];r=l[11];l[3]=l[15];l[7]=i;l[11]=a;l[15]=r;for(h=0,s=224;h<16;++h,++s)l[h]^=t[s];return l}function a(t){this.key=e(t);this.buffer=new Uint8Array(16);this.bufferPosition=0}function i(e,r){var a,i,n,s=e.length,o=this.buffer,c=this.bufferPosition,l=[],h=this.iv;for(a=0;a=n;--a)if(d[a]!==g){g=0;break}f-=g;l[l.length-1]=d.subarray(0,16-g)}}var p=new Uint8Array(f);for(a=0,i=0,n=l.length;as-32;){var o=t.length+i.length+a.length,c=new Uint8Array(64*o),f=e(t,i);f=e(f,a);for(var g=0,p=0;g<64;g++,p+=o)c.set(f,p);n=new d(i.subarray(0,16)).encrypt(c,i.subarray(16,32));for(var m=0,b=0;b<16;b++){m*=1;m%=3;m+=(n[b]>>>0)%3;m%=3}0===m?i=l(n,0,n.length):1===m?i=u(n,0,n.length):2===m&&(i=h(n,0,n.length));s++}return i.subarray(0,32)}function r(){}function a(e,t){if(e.length!==t.length)return!1;for(var r=0;r>8&255;g[p++]=i>>16&255;g[p++]=i>>>24&255;for(u=0,f=e.length;u=4&&!l){g[p++]=255;g[p++]=255;g[p++]=255;g[p++]=255}var m=o(g,0,p),b=c>>3;if(n>=3)for(u=0;u<50;++u)m=o(m,0,b);var v,y,k=m.subarray(0,b);if(n>=3){for(p=0;p<32;++p)g[p]=h[p];for(u=0,f=e.length;u>3;if(r>=3)for(i=0;i<50;++i)u=o(u,0,u.length);var d,g;if(r>=3){g=t;var p,m=new Uint8Array(f);for(i=19;i>=0;i--){for(p=0;p=4){var C=n.get("CF");(0,i.isDict)(C)&&(C.suppressEncryption=!0);this.cf=C;this.stmf=n.get("StmF")||u;this.strf=n.get("StrF")||u;this.eff=n.get("EFF")||this.stmf}}function c(e,t,r,a){var i,n,s=new Uint8Array(r.length+9);for(i=0,n=r.length;i>8&255;s[i++]=e>>16&255;s[i++]=255&t;s[i++]=t>>8&255;if(a){s[i++]=115;s[i++]=65;s[i++]=108;s[i++]=84}return o(s,0,i).subarray(0,Math.min(r.length+5,16))}function l(e,t,r,n,o){(0,a.assert)((0,i.isName)(t),"Invalid crypt filter name.");var l,h=e.get(t.name);null!==h&&void 0!==h&&(l=h.get("CFM"));if(!l||"None"===l.name)return function(){return new f};if("V2"===l.name)return function(){return new s(c(r,n,o,!1))};if("AESV2"===l.name)return function(){return new d(c(r,n,o,!0))};if("AESV3"===l.name)return function(){return new g(o)};(0,a.error)("Unknown crypto method")}var h=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]),u=i.Name.get("Identity");n.prototype={createCipherTransform:function(e,t){if(4===this.algorithm||5===this.algorithm)return new b(l(this.cf,this.stmf,e,t,this.encryptionKey),l(this.cf,this.strf,e,t,this.encryptionKey));var r=c(e,t,this.encryptionKey,!1),a=function(){return new s(r)};return new b(a,a)}};return n}();t.AES128Cipher=d;t.AES256Cipher=g;t.ARCFourCipher=s;t.CipherTransformFactory=v;t.PDF17=p;t.PDF20=m;t.calculateMD5=o;t.calculateSHA256=l;t.calculateSHA384=u;t.calculateSHA512=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.PartialEvaluator=t.OperatorList=void 0;var a=r(0),i=r(23),n=r(2),s=r(1),o=r(26),c=r(4),l=r(18),h=r(17),u=r(32),f=r(6),d=r(5),g=r(21),p=r(3),m=r(7),b=r(30),v=r(31),y=r(27),k=function(){function e(e,t,r,a){this.xref=e;this.resources=t;this.handler=r;this.forceDataSchema=a}function t(e){var t=this,r=e.pdfManager,i=e.xref,n=e.handler,s=e.pageIndex,o=e.idFactory,c=e.fontCache,l=e.builtInCMapCache,h=e.options,u=void 0===h?null:h;this.pdfManager=r;this.xref=i;this.handler=n;this.pageIndex=s;this.idFactory=o;this.fontCache=c;this.builtInCMapCache=l;this.options=u||k;this.fetchBuiltInCMap=function(e){var r=t.builtInCMapCache[e];return r?Promise.resolve(r):t.handler.sendWithPromise("FetchBuiltInCMap",{name:e}).then(function(r){r.compressionType!==a.CMapCompressionType.NONE&&(t.builtInCMapCache[e]=r);return r})}}function r(){this.reset()}function d(e){if(!(0,s.isName)(e))return"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"}(0,a.warn)("Unsupported blend mode: "+e.name);return"source-over"}var k={forceDataSchema:!1,maxImageSize:-1,disableFontFace:!1,nativeImageDecoderSupport:a.NativeImageDecoding.DECODE,ignoreErrors:!1};e.prototype={canDecode:function(t){return t instanceof n.JpegStream&&e.isDecodable(t,this.xref,this.resources)},decode:function(e){var t=e.dict,r=t.get("ColorSpace","CS");r=p.ColorSpace.parse(r,this.xref,this.resources);var a=r.numComps;return this.handler.sendWithPromise("JpegDecode",[e.getIR(this.forceDataSchema),a]).then(function(t){var r=t.data;return new n.Stream(r,0,r.length,e.dict)})}};e.isSupported=function(e,t,r){var a=e.dict;if(a.has("DecodeParms")||a.has("DP"))return!1;var i=p.ColorSpace.parse(a.get("ColorSpace","CS"),t,r);return("DeviceGray"===i.name||"DeviceRGB"===i.name)&&i.isDefaultDecode(a.getArray("Decode","D"))};e.isDecodable=function(e,t,r){var a=e.dict;if(a.has("DecodeParms")||a.has("DP"))return!1;var i=p.ColorSpace.parse(a.get("ColorSpace","CS"),t,r);return(1===i.numComps||3===i.numComps)&&i.isDefaultDecode(a.getArray("Decode","D"))};r.prototype={check:function(){if(++this.checked<100)return!1;this.checked=0;return this.endTime<=Date.now()},reset:function(){this.endTime=Date.now()+20;this.checked=0}};var O=Promise.resolve();t.prototype={clone:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=Object.create(this);t.options=e;return t},hasBlendModes:function(e){if(!(0,s.isDict)(e))return!1;var t=Object.create(null);e.objId&&(t[e.objId]=!0);for(var r=[e],a=this.xref;r.length;){var i,n,o,c=r.shift(),l=c.get("ExtGState");if((0,s.isDict)(l)){var h=l.getKeys();for(n=0,o=h.length;nd)(0,a.warn)("Image exceeded maximum allowed size and was removed.");else{var g,p,m=h.get("ImageMask","IM")||!1;if(m){var b=h.get("Width","W"),v=h.get("Height","H"),k=b+7>>3,w=r.getBytes(k*v),S=h.getArray("Decode","D"),C=!!S&&S[0]>0;g=y.PDFImage.createMask(w,b,v,r instanceof n.DecodeStream,C);g.cached=!0;p=[g];s.addOp(a.OPS.paintImageMaskXObject,p);o&&(c[o]={fn:a.OPS.paintImageMaskXObject,args:p})}else{var x=h.get("SMask","SM")||!1,A=h.get("Mask")||!1;if(!i||x||A||r instanceof n.JpegStream||!(u+f<200)){var I=this.options.nativeImageDecoderSupport,O="img_"+this.idFactory.createObjId();s.addDependency(O);p=[O,u,f];if(I!==a.NativeImageDecoding.NONE&&!x&&!A&&r instanceof n.JpegStream&&e.isSupported(r,this.xref,t)){s.addOp(a.OPS.paintJpegXObject,p) ;this.handler.send("obj",[O,this.pageIndex,"JpegStream",r.getIR(this.options.forceDataSchema)]);o&&(c[o]={fn:a.OPS.paintJpegXObject,args:p})}else{var P=null;I===a.NativeImageDecoding.DECODE&&(r instanceof n.JpegStream||A instanceof n.JpegStream||x instanceof n.JpegStream)&&(P=new e(this.xref,t,this.handler,this.options.forceDataSchema));y.PDFImage.buildImage(this.handler,this.xref,t,r,i,P).then(function(e){var t=e.createImageData(!1);l.handler.send("obj",[O,l.pageIndex,"Image",t],[t.data.buffer])}).catch(function(e){(0,a.warn)("Unable to decode image: "+e);l.handler.send("obj",[O,l.pageIndex,"Image",null])});s.addOp(a.OPS.paintImageXObject,p);o&&(c[o]={fn:a.OPS.paintImageXObject,args:p})}}else{g=new y.PDFImage(this.xref,t,r,i,null,null).createImageData(!0);s.addOp(a.OPS.paintInlineImageXObject,[g])}}}}else(0,a.warn)("Image dimensions are missing, or not numbers.")},handleSMask:function(e,t,r,a,i){var n=e.get("G"),s={subtype:e.get("S").name,backdrop:e.get("BC")},o=e.get("TR");if((0,f.isPDFFunction)(o)){for(var c=f.PDFFunction.parse(this.xref,o),l=new Uint8Array(256),h=new Float32Array(1),u=0;u<256;u++){h[0]=u/255;c(h,0,h,0);l[u]=255*h[0]|0}s.transferMap=l}return this.buildFormXObject(t,n,s,r,a,i.state.clone())},handleTilingType:function(e,t,r,a,i,n,o){var c=new S,l=[i.get("Resources"),r],h=s.Dict.merge(this.xref,l);return this.getOperatorList({stream:a,task:o,resources:h,operatorList:c}).then(function(){n.addDependencies(c.dependencies);n.addOp(e,(0,u.getTilingPatternIR)({fnArray:c.fnArray,argsArray:c.argsArray},i,t))})},handleSetFont:function(e,t,r,i,n,s){var c,l=this;if(t){t=t.slice();c=t[0].name}return this.loadFont(c,r,e).then(function(t){return t.font.isType3Font?t.loadType3Data(l,e,i,n).then(function(){return t}).catch(function(e){l.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.font});return new w("g_font_error",new o.ErrorFont("Type3 font load error: "+e),t.font)}):t}).then(function(e){s.font=e.font;e.send(l.handler);return e.loadedName})},handleText:function(e,t){var r=this,i=t.font,n=i.charsToGlyphs(e),s=!!(t.textRenderingMode&a.TextRenderingMode.ADD_TO_PATH_FLAG);if(i.data&&(s||this.options.disableFontFace))for(var o=function(e){if(!i.renderer.hasBuiltPath(e)){var t=i.renderer.getPathJs(e);r.handler.send("commonobj",[i.loadedName+"_path_"+e,"FontPath",t])}},c=0,l=n.length;c0&&r.addOp(a.OPS.setGState,[c])})},loadFont:function(e,t,r){function i(){return Promise.resolve(new w("g_font_error",new o.ErrorFont("Font "+e+" is not available"),t))}var n,c=this,l=this.xref;if(t){(0,a.assert)((0,s.isRef)(t));n=t}else{var h=r.get("Font");if(!h){(0,a.warn)("fontRes not available");return i()}n=h.getRaw(e)}if(!n){(0,a.warn)("fontRef not available");return i()}if(this.fontCache.has(n))return this.fontCache.get(n);t=l.fetchIfRef(n);if(!(0,s.isDict)(t))return i();if(t.translated)return t.translated;var u,f=(0,a.createPromiseCapability)(),d=this.preEvaluateFont(t),g=d.descriptor,p=(0,s.isRef)(n);p&&(u=n.toString());if((0,s.isDict)(g)){g.fontAliases||(g.fontAliases=Object.create(null));var m=g.fontAliases,b=d.hash;if(m[b]){var v=m[b].aliasRef;if(p&&v&&this.fontCache.has(v)){this.fontCache.putAlias(n,v);return this.fontCache.get(n)}}else m[b]={fontID:o.Font.getFontID()};p&&(m[b].aliasRef=n);u=m[b].fontID}if(p)this.fontCache.put(n,f.promise);else{u||(u=this.idFactory.createObjId());this.fontCache.put("id_"+u,f.promise)}(0,a.assert)(u,'The "fontID" must be defined.');t.loadedName="g_"+this.pdfManager.docId+"_f"+u;t.translated=f.promise;var y;try{y=this.translateFont(d)}catch(e){y=Promise.reject(e)}y.then(function(e){if(void 0!==e.fontType){l.stats.fontTypes[e.fontType]=!0}f.resolve(new w(t.loadedName,e,t))}).catch(function(e){c.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.font});try{var r=d.descriptor,i=r&&r.get("FontFile3"),n=i&&i.get("Subtype"),s=(0,o.getFontType)(d.type,n&&n.name);l.stats.fontTypes[s]=!0}catch(e){}f.resolve(new w(t.loadedName,new o.ErrorFont(e instanceof Error?e.message:e),t))});return f.promise},buildPath:function(e,t,r){var i=e.length-1;r||(r=[]);if(i<0||e.fnArray[i]!==a.OPS.constructPath)e.addOp(a.OPS.constructPath,[[t],r]);else{var n=e.argsArray[i];n[0].push(t);Array.prototype.push.apply(n[1],r)}},handleColorN:function(e,t,r,a,i,n,o){var c,l=r[r.length-1];if((0,s.isName)(l)&&(c=i.get(l.name))){var h=(0,s.isStream)(c)?c.dict:c,f=h.get("PatternType");if(1===f){var d=a.base?a.base.getRgb(r,0):null;return this.handleTilingType(t,d,n,c,h,e,o)}if(2===f){var g=h.get("Shading"),p=h.getArray("Matrix");c=u.Pattern.parseShading(g,p,this.xref,n,this.handler);e.addOp(t,c.getIR());return Promise.resolve()}return Promise.reject(new Error("Unknown PatternType: "+f))}e.addOp(t,r);return Promise.resolve()},getOperatorList:function(e){function t(e){for(var t=0,r=k.savedStatesDepth;t0){r*=A.fontMatrix[3];t[3]*=r}}var i=a.Util.transform(A.ctm,a.Util.transform(A.textMatrix,t));B.transform=i;if(e.vertical){B.width=Math.sqrt(i[0]*i[0]+i[1]*i[1]);B.height=0;B.vertical=!0}else{B.width=0;B.height=Math.sqrt(i[2]*i[2]+i[3]*i[3]);B.vertical=!1}var n=A.textLineMatrix[0],s=A.textLineMatrix[1],o=Math.sqrt(n*n+s*s);n=A.ctm[0];s=A.ctm[1];var c=Math.sqrt(n*n+s*s);B.textAdvanceScale=c*o;B.lastAdvanceWidth=0;B.lastAdvanceHeight=0;var l=e.spaceWidth/1e3*A.fontSize;if(l){B.spaceWidth=l;B.fakeSpaceMin=l*R;B.fakeMultiSpaceMin=l*F;B.fakeMultiSpaceMax=l*E;B.textRunBreakAllowed=!e.isMonospace}else{B.spaceWidth=0;B.fakeSpaceMin=1/0;B.fakeMultiSpaceMin=1/0;B.fakeMultiSpaceMax=0;B.textRunBreakAllowed=!1}B.initialized=!0;return B}function i(e){for(var t,r=0,a=e.length;r=32&&t<=127;)r++;return r0&&h(p,a.str)}var m=0,b=0;if(r.vertical){b=u*A.fontMatrix[0]*A.fontSize+g;n+=b}else{m=(u*A.fontMatrix[0]*A.fontSize+g)*A.textHScale;i+=m}A.translateTextMatrix(m,b);a.str.push(f)}if(r.vertical){a.lastAdvanceHeight=n;a.height+=Math.abs(n)}else{a.lastAdvanceWidth=i;a.width+=i}return a}function h(e,t){if(!(e0;)t.push(" ")}function u(){if(B.initialized){B.width*=B.textAdvanceScale;B.height*=B.textAdvanceScale;T.items.push(n(B));B.initialized=!1;B.str.length=0}}var f=this,d=e.stream,p=e.task,m=e.resources,b=e.stateManager,v=void 0===b?null:b,y=e.normalizeWhitespace,k=void 0!==y&&y,w=e.combineTextItems,S=void 0!==w&&w;m=m||s.Dict.empty;v=v||new C(new x);var A,P=/\s/g,T={items:[],styles:Object.create(null)},B={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},R=.3,F=1.5,E=4,M=this,D=this.xref,L=null,U=Object.create(null),N=new I(d,D,v),q=new r;return new Promise(function e(r,i){var n=function(t){t.then(function(){try{e(r,i)}catch(e){i(e)}},i)};p.ensureNotTerminated();q.reset();for(var l,f={},d=[];!(l=q.check());){d.length=0;f.args=d;if(!N.read(f))break;A=v.state;var g=f.fn;d=f.args;var b,y;switch(0|g){case a.OPS.setFont:var w=d[0].name,x=d[1];if(A.font&&w===A.fontName&&x===A.fontSize)break;u();A.fontName=w;A.fontSize=x;n(o(w,null));return;case a.OPS.setTextRise:u();A.textRise=d[0];break;case a.OPS.setHScale:u();A.textHScale=d[0]/100;break;case a.OPS.setLeading:u();A.leading=d[0];break;case a.OPS.moveText:var I=!!A.font&&0===(A.font.vertical?d[0]:d[1]);b=d[0]-d[1];if(S&&I&&B.initialized&&b>0&&b<=B.fakeMultiSpaceMax){A.translateTextLineMatrix(d[0],d[1]);B.width+=d[0]-B.lastAdvanceWidth;B.height+=d[1]-B.lastAdvanceHeight;y=d[0]-B.lastAdvanceWidth-(d[1]-B.lastAdvanceHeight);h(y,B.str);break}u();A.translateTextLineMatrix(d[0],d[1]);A.textMatrix=A.textLineMatrix.slice();break;case a.OPS.setLeadingMoveText:u();A.leading=-d[1];A.translateTextLineMatrix(d[0],d[1]);A.textMatrix=A.textLineMatrix.slice();break;case a.OPS.nextLine:u();A.carriageReturn();break;case a.OPS.setTextMatrix:b=A.calcTextLineMatrixAdvance(d[0],d[1],d[2],d[3],d[4],d[5]);if(S&&null!==b&&B.initialized&&b.value>0&&b.value<=B.fakeMultiSpaceMax){A.translateTextLineMatrix(b.width,b.height);B.width+=b.width-B.lastAdvanceWidth;B.height+=b.height-B.lastAdvanceHeight;y=b.width-B.lastAdvanceWidth-(b.height-B.lastAdvanceHeight);h(y,B.str);break}u();A.setTextMatrix(d[0],d[1],d[2],d[3],d[4],d[5]);A.setTextLineMatrix(d[0],d[1],d[2],d[3],d[4],d[5]);break;case a.OPS.setCharSpacing:A.charSpacing=d[0];break;case a.OPS.setWordSpacing:A.wordSpacing=d[0];break;case a.OPS.beginText:u();A.textMatrix=a.IDENTITY_MATRIX.slice();A.textLineMatrix=a.IDENTITY_MATRIX.slice();break;case a.OPS.showSpacedText:for(var P,R=d[0],F=0,E=R.length;FB.fakeMultiSpaceMax;D||(B.height+=P)}else{b=-b;P=b*A.textHScale;A.translateTextMatrix(P,0);D=B.textRunBreakAllowed&&b>B.fakeMultiSpaceMax;D||(B.width+=P)}D?u():b>0&&h(b,B.str)}break;case a.OPS.showText:c(d[0]);break;case a.OPS.nextLineShowText:u();A.carriageReturn();c(d[0]);break;case a.OPS.nextLineSetSpacingShowText:u();A.wordSpacing=d[0];A.charSpacing=d[1];A.carriageReturn();c(d[2]);break;case a.OPS.paintXObject:u();if(d[0].code)break;L||(L=m.get("XObject")||s.Dict.empty);var j=d[0].name;if(U.key===j){if(U.texts){a.Util.appendToArray(T.items,U.texts.items);a.Util.extendObj(T.styles,U.texts.styles)}break}var _=L.get(j);if(!_)break;(0,a.assert)((0,s.isStream)(_),"XObject should be a stream");var z=_.dict.get("Subtype");(0,a.assert)((0,s.isName)(z),"XObject should have a Name subtype");if("Form"!==z.name){U.key=j;U.texts=null;break}var H=v.state.clone(),G=new C(H),X=_.dict.getArray("Matrix");(0,a.isArray)(X)&&6===X.length&&G.transform(X);n(M.getTextContent({stream:_,task:p,resources:_.dict.get("Resources")||m,stateManager:G,normalizeWhitespace:k,combineTextItems:S}).then(function(e){a.Util.appendToArray(T.items,e.items);a.Util.extendObj(T.styles,e.styles);U.key=j;U.texts=e}));return;case a.OPS.setGState:u();var V=d[0],W=m.get("ExtGState");if(!(0,s.isDict)(W)||!(0,s.isName)(V))break;var Y=W.get(V.name);if(!(0,s.isDict)(Y))break;var K=Y.get("Font");if(K){A.fontName=null;A.fontSize=K[1];n(o(null,K[0]));return}}}if(l)n(O);else{u();r(T)}}).catch(function(e){if(f.options.ignoreErrors){(0,a.warn)("getTextContent - ignoring errors during task: "+p.name);u();return T}throw e})},extractDataStructures:function(e,t,r){var i=this,n=this.xref,l=e.get("ToUnicode")||t.get("ToUnicode"),h=l?this.readToUnicode(l):Promise.resolve(void 0);if(r.composite){var u=e.get("CIDSystemInfo");(0,s.isDict)(u)&&(r.cidSystemInfo={registry:u.get("Registry"),ordering:u.get("Ordering"),supplement:u.get("Supplement")});var f=e.get("CIDToGIDMap");(0,s.isStream)(f)&&(r.cidToGidMap=this.readCidToGidMap(f))}var d,g=[],p=null;if(e.has("Encoding")){d=e.get("Encoding");if((0,s.isDict)(d)){p=d.get("BaseEncoding");p=(0,s.isName)(p)?p.name:null;if(d.has("Differences"))for(var m=d.get("Differences"),b=0,v=0,y=m.length;v0;r.dict=e;return h.then(function(e){r.toUnicode=e;return i.buildToUnicode(r)}).then(function(e){r.toUnicode=e;return r})},buildToUnicode:function(e){e.hasIncludedToUnicodeMap=!!e.toUnicode&&e.toUnicode.length>0;if(e.hasIncludedToUnicodeMap)return Promise.resolve(e.toUnicode);var t,r,n;if(!e.composite){t=[];var h=e.defaultEncoding.slice(),u=e.baseEncodingName,f=e.differences;for(r in f){n=f[r];".notdef"!==n&&(h[r]=n)}var d=(0,m.getGlyphsUnicode)();for(r in h){n=h[r];if(""!==n)if(void 0!==d[n])t[r]=String.fromCharCode(d[n]);else{var g=0;switch(n[0]){case"G":3===n.length&&(g=parseInt(n.substr(1),16));break;case"g":5===n.length&&(g=parseInt(n.substr(1),16));break;case"C":case"c":n.length>=3&&(g=+n.substr(1));break;default:var p=(0,l.getUnicodeForGlyph)(n,d);-1!==p&&(g=p)}if(g){if(u&&g===+r){var b=(0,c.getEncoding)(u);if(b&&(n=b[r])){t[r]=String.fromCharCode(d[n]);continue}}t[r]=String.fromCharCode(g)}}}return Promise.resolve(new o.ToUnicodeMap(t))}if(e.composite&&(e.cMap.builtInCMap&&!(e.cMap instanceof i.IdentityCMap)||"Adobe"===e.cidSystemInfo.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering))){var v=e.cidSystemInfo.registry,y=e.cidSystemInfo.ordering,k=s.Name.get(v+"-"+y+"-UCS2");return i.CMapFactory.create({encoding:k,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(r){var i=e.cMap;t=[];i.forEach(function(e,i){(0,a.assert)(i<=65535,"Max size of CID is 65,535");var n=r.lookup(i);n&&(t[e]=String.fromCharCode((n.charCodeAt(0)<<8)+n.charCodeAt(1)))});return new o.ToUnicodeMap(t)})}return Promise.resolve(new o.IdentityToUnicodeMap(e.firstChar,e.lastChar))},readToUnicode:function(e){var t=e;return(0,s.isName)(t)?i.CMapFactory.create({encoding:t,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){return e instanceof i.IdentityCMap?new o.IdentityToUnicodeMap(0,65535):new o.ToUnicodeMap(e.getMap())}):(0,s.isStream)(t)?i.CMapFactory.create({encoding:t,fetchBuiltInCMap:this.fetchBuiltInCMap,useCMap:null}).then(function(e){if(e instanceof i.IdentityCMap)return new o.IdentityToUnicodeMap(0,65535);var t=new Array(e.length);e.forEach(function(e,r){for(var a=[],i=0;i>1]=n}}return r},extractWidths:function(e,t,r){var i,n,c,l,h,u,f,d,g=this.xref,p=[],m=0,b=[];if(r.composite){m=e.get("DW")||1e3;d=e.get("W");if(d)for(n=0,c=d.length;n=1e3?this.flush():this.fnArray.length>=995&&(e===a.OPS.restore||e===a.OPS.endText)&&this.flush())},addDependency:function(e){if(!(e in this.dependencies)){this.dependencies[e]=!0;this.addOp(a.OPS.dependency,[e])}},addDependencies:function(e){for(var t in e)this.addDependency(t)},addOpList:function(e){a.Util.extendObj(this.dependencies,e.dependencies);for(var t=0,r=e.length;tc&&(0,a.info)("Command "+o+": expected [0,"+c+"] args, but received "+l+" args.");else{if(l!==c){for(var h=this.nonProcessedArgs;l>c;){h.push(t.shift());l--}for(;l1e3){f=Math.max(f,p);m+=g+2;p=0;g=0}d.push({transform:b,x:p,y:m,w:v.width,h:v.height});p+=v.width+2;g=Math.max(g,v.height)}var y=Math.max(f,p)+1,k=m+g+1,w=new Uint8Array(y*k*4),S=y<<2;for(u=0;u=0;){C[I-4]=C[I];C[I-3]=C[I+1];C[I-2]=C[I+2];C[I-1]=C[I+3];C[I+x]=C[I+x-4];C[I+x+1]=C[I+x-3];C[I+x+2]=C[I+x-2];C[I+x+3]=C[I+x-1];I-=S}}t.splice(n,4*h,a.OPS.paintInlineImageXObjectGroup);r.splice(n,4*h,[{width:y,height:k,kind:a.ImageKind.RGBA_32BPP,data:w},d]);return n+1});e(i,[a.OPS.save,a.OPS.transform,a.OPS.paintImageMaskXObject,a.OPS.restore],function(e){for(var r=e.fnArray,i=e.argsArray,n=e.iCurr,s=n-3,o=n-2,c=n-1,l=s+4,h=r.length;l+3=4&&t[n-4]===t[s]&&t[n-3]===t[o]&&t[n-2]===t[c]&&t[n-1]===t[l]&&r[n-4][0]===h&&r[n-4][1]===u){g++;p-=5}for(var m=p+4,b=1;b0?Math.min(a.xcb,i.PPx-1):Math.min(a.xcb,i.PPx);i.ycb_=r>0?Math.min(a.ycb,i.PPy-1):Math.min(a.ycb,i.PPy);return i}function s(e,t,r){var a=1<t.trx0?Math.ceil(t.trx1/a)-Math.floor(t.trx0/a):0,l=t.try1>t.try0?Math.ceil(t.try1/i)-Math.floor(t.try0/i):0,h=c*l;t.precinctParameters={precinctWidth:a,precinctHeight:i,numprecinctswide:c,numprecinctshigh:l,numprecincts:h,precinctWidthInSubband:s,precinctHeightInSubband:o}}function o(e,t,r){var a,i,n,s,o=r.xcb_,c=r.ycb_,l=1<>o,f=t.tby0>>c,d=t.tbx1+l-1>>o,g=t.tby1+h-1>>c,p=t.resolution.precinctParameters,m=[],b=[];for(i=f;ik.cbxMax&&(k.cbxMax=a);ik.cbyMax&&(k.cbyMax=i)}else b[s]=k={cbxMin:a,cbyMin:i,cbxMax:a,cbyMax:i};n.precinct=k}}t.codeblockParameters={codeblockWidth:o,codeblockHeight:c,numcodeblockwide:d-u+1,numcodeblockhigh:g-f+1};t.codeblocks=m;t.precincts=b}function c(e,t,r){for(var a=[],i=e.subbands,n=0,s=i.length;ne.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[u],r=t.precinctParameters.numprecincts;de.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[h],r=t.precinctParameters.numprecincts;de.codingStyleParameters.decompositionLevelsCount)){var s=e.resolutions[r],o=s.precinctParameters.numprecincts;if(!(n>=o)){for(;t=0;--m){var b=c.resolutions[m],v=p*b.precinctParameters.precinctWidth,y=p*b.precinctParameters.precinctHeight;u=Math.min(u,v);f=Math.min(f,y);d=Math.max(d,b.precinctParameters.numprecinctswide);g=Math.max(g,b.precinctParameters.numprecinctshigh);h[m]={width:v,height:y};p<<=1}r=Math.min(r,u);a=Math.min(a,f);i=Math.max(i,d);n=Math.max(n,g);s[o]={resolutions:h,minWidth:u,minHeight:f,maxNumWide:d,maxNumHigh:g}}return{components:s,minWidth:r,minHeight:a,maxNumWide:i,maxNumHigh:n}}function m(e){for(var t=e.SIZ,r=e.currentTile.index,i=e.tiles[r],c=t.Csiz,g=0;g>>u&(1<0;){var j=w.shift();y=j.codeblock;void 0===y.data&&(y.data=[]);y.data.push({data:t,start:r+h,end:r+h+j.dataLength,codingpasses:j.codingpasses});h+=j.dataLength}}}return h}function v(e,t,r,a,n,s,o,c){for(var l=a.tbx0,h=a.tby0,u=a.tbx1-a.tbx0,f=a.codeblocks,d="H"===a.type.charAt(0)?1:0,g="H"===a.type.charAt(1)?t:0,p=0,m=f.length;p=s?M:M*(1<0?1-m:0)}var T=b.subbands[C],B=S[T.type];v(w,y,k,T,f?1:Math.pow(2,u+B-I)*(1+A/2048),l+I-1,f,h)}g.push({width:y,height:k,items:w})}var R=d.calculate(g,a.tcx0,a.tcy0);return{left:a.tcx0,top:a.tcy0,width:R.width,height:R.height,items:R.items}}function k(e){for(var t=e.SIZ,r=e.components,a=t.Csiz,i=[],n=0,s=e.tiles.length;n>2);w=S+k;C=S+v;O[T++]=w<=0?0:w>=f?255:w>>h;O[T++]=S<=0?0:S>=f?255:S>>h;O[T++]=C<=0?0:C>=f?255:C>>h}else for(p=0;p=f?255:w>>h;O[T++]=S<=0?0:S>=f?255:S>>h;O[T++]=C<=0?0:C>=f?255:C>>h}if(B)for(p=0,T=3;p=g?255:x+u>>h}}else for(o=0;o=f?255:A+u>>h;T+=a}}i.push(P)}return i}function w(e,t){for(var r=e.SIZ,a=r.Csiz,i=e.tiles[t],n=0;n>24&255,s>>16&255,s>>8&255,255&s);(0,a.warn)("Unsupported header type "+s+" ("+u+")")}c&&(t+=o)}else this.parseCodestream(e,0,e.length)},parseImageProperties:function(e){for(var t=e.getByte();t>=0;){var r=t;t=e.getByte();if(65361===(r<<8|t)){e.skip(4);var i=e.getInt32()>>>0,n=e.getInt32()>>>0,s=e.getInt32()>>>0,o=e.getInt32()>>>0;e.skip(16);var c=e.getUint16();this.width=i-s;this.height=n-o;this.componentsCount=c;this.bitsPerComponent=8;return}}(0,a.error)("JPX Error: No size marker found in JPX stream")},parseCodestream:function(e,i,n){var s={},o=!1;try{for(var c=i;c+1>5;f=[];for(;h>3;O.mu=0}else{O.epsilon=e[h]>>3;O.mu=(7&e[h])<<8|e[h+1];h+=2}f.push(O)}I.SPqcds=f;if(s.mainHeader)s.QCD=I;else{s.currentTile.QCD=I;s.currentTile.QCC=[]}break;case 65373:v=(0,a.readUint16)(e,c);var P={};h=c+2;var T;if(s.SIZ.Csiz<257)T=e[h++];else{T=(0,a.readUint16)(e,h);h+=2}u=e[h++];switch(31&u){case 0:d=8;g=!0;break;case 1:d=16;g=!1;break;case 2:d=16;g=!0;break;default:throw new Error("Invalid SQcd value "+u)}P.noQuantization=8===d;P.scalarExpounded=g;P.guardBits=u>>5;f=[];for(;h>3;O.mu=0}else{O.epsilon=e[h]>>3;O.mu=(7&e[h])<<8|e[h+1];h+=2}f.push(O)}P.SPqcds=f;s.mainHeader?s.QCC[T]=P:s.currentTile.QCC[T]=P;break;case 65362:v=(0,a.readUint16)(e,c);var B={};h=c+2;var R=e[h++];B.entropyCoderWithCustomPrecincts=!!(1&R);B.sopMarkerUsed=!!(2&R);B.ephMarkerUsed=!!(4&R);B.progressionOrder=e[h++];B.layersCount=(0,a.readUint16)(e,h);h+=2;B.multipleComponentTransform=e[h++];B.decompositionLevelsCount=e[h++];B.xcb=2+(15&e[h++]);B.ycb=2+(15&e[h++]);var F=e[h++];B.selectiveArithmeticCodingBypass=!!(1&F);B.resetContextProbabilities=!!(2&F);B.terminationOnEachCodingPass=!!(4&F);B.verticalyStripe=!!(8&F);B.predictableTermination=!!(16&F);B.segmentationSymbolUsed=!!(32&F);B.reversibleTransformation=e[h++];if(B.entropyCoderWithCustomPrecincts){for(var E=[];h>4})}B.precinctsSizes=E}var D=[];B.selectiveArithmeticCodingBypass&&D.push("selectiveArithmeticCodingBypass");B.resetContextProbabilities&&D.push("resetContextProbabilities");B.terminationOnEachCodingPass&&D.push("terminationOnEachCodingPass");B.verticalyStripe&&D.push("verticalyStripe");B.predictableTermination&&D.push("predictableTermination");if(D.length>0){o=!0;throw new Error("Unsupported COD options ("+D.join(", ")+")")}if(s.mainHeader)s.COD=B;else{s.currentTile.COD=B;s.currentTile.COC=[]}break;case 65424:v=(0,a.readUint16)(e,c);p={};p.index=(0,a.readUint16)(e,c+2);p.length=(0,a.readUint32)(e,c+4);p.dataEnd=p.length+c-2;p.partIndex=e[c+8];p.partsCount=e[c+9];s.mainHeader=!1;if(0===p.partIndex){p.COD=s.COD;p.COC=s.COC.slice(0);p.QCD=s.QCD;p.QCC=s.QCC.slice(0)}s.currentTile=p;break;case 65427:p=s.currentTile;if(0===p.partIndex){w(s,p.index);m(s)}v=p.dataEnd-c;b(s,e,c,v);break;case 65365:case 65367:case 65368:case 65380:v=(0,a.readUint16)(e,c);break;case 65363:throw new Error("Codestream code 0xFF53 (COC) is not implemented");default:throw new Error("Unknown codestream code: "+l.toString(16))}c+=v}}catch(e){o||this.failOnCorruptedImage?(0,a.error)("JPX Error: "+e.message):(0,a.warn)("JPX: Trying to recover from: "+e.message)}this.tiles=k(s);this.width=s.SIZ.Xsiz-s.SIZ.XOsiz;this.height=s.SIZ.Ysiz-s.SIZ.YOsiz;this.componentsCount=s.SIZ.Csiz}};var C=function(){function e(e,t){var r=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var i=0;i>=1;t>>=1;a++}a--;r=this.levels[a];r.items[r.index]=i;this.currentLevel=a;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];e--;if(e<0){this.value=r;return!1}this.currentLevel=e;t=this.levels[e];t.items[t.index]=r;return!0}};return e}(),x=function(){function e(e,t,r){var i=(0,a.log2)(Math.max(e,t))+1;this.levels=[];for(var n=0;nr){this.currentLevel=a;this.propagateValues();return!1}e>>=1;t>>=1;a++}this.currentLevel=a-1;return!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];t.items[t.index]=r}},nextLevel:function(){var e=this.currentLevel,t=this.levels[e],r=t.items[t.index];t.items[t.index]=255;e--;if(e<0)return!1;this.currentLevel=e;t=this.levels[e];t.items[t.index]=r;return!0}};return e}(),A=function(){function e(e,a,n,s,o){this.width=e;this.height=a;this.contextLabelTable="HH"===n?i:"HL"===n?r:t;var c=e*a;this.neighborsSignificance=new Uint8Array(c);this.coefficentsSign=new Uint8Array(c);this.coefficentsMagnitude=o>14?new Uint32Array(c):o>6?new Uint16Array(c):new Uint8Array(c);this.processingFlags=new Uint8Array(c);var l=new Uint8Array(c);if(0!==s)for(var h=0;h0,c=t+10){a=r-n;o&&(i[a-1]+=16);c&&(i[a+1]+=16);i[a]+=4}if(e+1=r)break;s[f]&=-2;if(!a[f]&&n[f]){var p=c[n[f]],m=e.readBit(o,p);if(m){var b=this.decodeSignBit(g,u,f);i[f]=b;a[f]=1;this.setNeighborsSignificance(g,u,f);s[f]|=2}l[f]++;s[f]|=1}}},decodeSignBit:function(e,t,r){var a,i,n,s,o,c,l=this.width,h=this.height,u=this.coefficentsMagnitude,f=this.coefficentsSign;s=t>0&&0!==u[r-1];if(t+10&&0!==u[r-l];if(e+1=0){o=9+a;c=this.decoder.readBit(this.contexts,o)}else{o=9-a;c=1^this.decoder.readBit(this.contexts,o)}return c},runMagnitudeRefinementPass:function(){for(var e,t=this.decoder,r=this.width,a=this.height,i=this.coefficentsMagnitude,n=this.neighborsSignificance,s=this.contexts,o=this.bitsDecoded,c=this.processingFlags,l=r*a,h=4*r,u=0;u>1;t|=0;var i,n,s,o,c=-1.586134342059924,l=-.052980118572961,h=.882911075530934,u=.443506852043971,f=1.230174104914001;i=t-3;for(n=a+4;n--;i+=2)e[i]*=.8128930661159609;i=t-2;s=u*e[i-1];for(n=a+3;n--;i+=2){o=u*e[i+1];e[i]=f*e[i]-s-o;if(!n--)break;i+=2;s=u*e[i+1];e[i]=f*e[i]-s-o}i=t-1;s=h*e[i-1];for(n=a+2;n--;i+=2){o=h*e[i+1];e[i]-=s+o;if(!n--)break;i+=2;s=h*e[i+1];e[i]-=s+o}i=t;s=l*e[i-1];for(n=a+1;n--;i+=2){o=l*e[i+1];e[i]-=s+o;if(!n--)break;i+=2;s=l*e[i+1];e[i]-=s+o}if(0!==a){i=t+1;s=c*e[i-1];for(n=a;n--;i+=2){o=c*e[i+1];e[i]-=s+o;if(!n--)break;i+=2;s=c*e[i+1];e[i]-=s+o}}};return e}(),P=function(){function e(){I.call(this)}e.prototype=Object.create(I.prototype);e.prototype.filter=function(e,t,r){var a=r>>1;t|=0;var i,n;for(i=t,n=a+1;n--;i+=2)e[i]-=e[i-1]+e[i+1]+2>>2;for(i=t+1,n=a;n--;i+=2)e[i]+=e[i-1]+e[i+1]>>1};return e}();return e}();t.JpxImage=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FileSpec=t.XRef=t.ObjectLoader=t.Catalog=void 0;var a="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},i=function(){function e(e,t){var r=[],a=!0,i=!1,n=void 0;try{for(var s,o=e[Symbol.iterator]();!(a=(s=o.next()).done);a=!0){r.push(s.value);if(t&&r.length===t)break}}catch(e){i=!0;n=e}finally{try{!a&&o.return&&o.return()}finally{if(i)throw n}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=r(0),s=r(1),o=r(5),c=r(12),l=r(13),h=r(3),u=function(){function e(e,t,r){this.pdfManager=e;this.xref=t;this.catDict=t.getCatalogObj();(0,n.assert)((0,s.isDict)(this.catDict),"catalog object is not a dictionary");this.fontCache=new s.RefSetCache;this.builtInCMapCache=Object.create(null);this.pageKidsCountCache=new s.RefSetCache;this.pageFactory=r;this.pagePromises=[]}e.prototype={get metadata(){var e=this.catDict.getRaw("Metadata");if(!(0,s.isRef)(e))return(0,n.shadow)(this,"metadata",null);var t,r=!!this.xref.encrypt&&this.xref.encrypt.encryptMetadata,a=this.xref.fetch(e,!r);if(a&&(0,s.isDict)(a.dict)){var i=a.dict.get("Type"),o=a.dict.get("Subtype");if((0,s.isName)(i,"Metadata")&&(0,s.isName)(o,"XML"))try{t=(0,n.stringToUTF8String)((0,n.bytesToString)(a.getBytes()))}catch(e){if(e instanceof n.MissingDataException)throw e;(0,n.info)("Skipping invalid metadata.")}}return(0,n.shadow)(this,"metadata",t)},get toplevelPagesDict(){var e=this.catDict.get("Pages");(0,n.assert)((0,s.isDict)(e),"invalid top-level pages dictionary");return(0,n.shadow)(this,"toplevelPagesDict",e)},get documentOutline(){var e=null;try{e=this.readDocumentOutline()}catch(e){if(e instanceof n.MissingDataException)throw e;(0,n.warn)("Unable to read document outline")}return(0,n.shadow)(this,"documentOutline",e)},readDocumentOutline:function(){var t=this.catDict.get("Outlines");if(!(0,s.isDict)(t))return null;t=t.getRaw("First");if(!(0,s.isRef)(t))return null;var r={items:[]},a=[{obj:t,parent:r}],i=new s.RefSet;i.put(t);for(var o=this.xref,c=new Uint8Array(3);a.length>0;){var l=a.shift(),u=o.fetchIfRef(l.obj);if(null!==u){(0,n.assert)(u.has("Title"),"Invalid outline item");var f={url:null,dest:null};e.parseDestDictionary({destDict:u,resultObj:f,docBaseUrl:this.pdfManager.docBaseUrl});var d=u.get("Title"),g=u.get("F")||0,p=u.getArray("C"),m=c;!(0,n.isArray)(p)||3!==p.length||0===p[0]&&0===p[1]&&0===p[2]||(m=h.ColorSpace.singletons.rgb.getRgb(p,0));var b={dest:f.dest,url:f.url,unsafeUrl:f.unsafeUrl,newWindow:f.newWindow,title:(0,n.stringToPDFString)(d),color:m,count:u.get("Count"),bold:!!(2&g),italic:!!(1&g),items:[]};l.parent.items.push(b);t=u.getRaw("First");if((0,s.isRef)(t)&&!i.has(t)){a.push({obj:t,parent:b});i.put(t)}t=u.getRaw("Next");if((0,s.isRef)(t)&&!i.has(t)){a.push({obj:t,parent:l.parent});i.put(t)}}}return r.items.length>0?r.items:null},get numPages(){var e=this.toplevelPagesDict.get("Count");(0,n.assert)((0,n.isInt)(e),"page count in top level pages object is not an integer");return(0,n.shadow)(this,"num",e)},get destinations(){function e(e){return(0,s.isDict)(e)?e.get("D"):e}var t,r,a=this.xref,i={},o=this.catDict.get("Names");o&&o.has("Dests")?t=o.getRaw("Dests"):this.catDict.has("Dests")&&(r=this.catDict.get("Dests"));if(r){o=r;o.forEach(function(t,r){r&&(i[t]=e(r))})}if(t){var c=new g(t,a),l=c.getAll();for(var h in l)i[h]=e(l[h])}return(0,n.shadow)(this,"destinations",i)},getDestination:function(e){function t(e){return(0,s.isDict)(e)?e.get("D"):e}var r,a,i=this.xref,n=null,o=this.catDict.get("Names");o&&o.has("Dests")?r=o.getRaw("Dests"):this.catDict.has("Dests")&&(a=this.catDict.get("Dests"));if(a){var c=a.get(e);c&&(n=t(c))}if(r){n=t(new g(r,i).get(e))}return n},get pageLabels(){var e=null;try{e=this.readPageLabels()}catch(e){if(e instanceof n.MissingDataException)throw e;(0,n.warn)("Unable to read page labels.")}return(0,n.shadow)(this,"pageLabels",e)},readPageLabels:function(){var e=this.catDict.getRaw("PageLabels");if(!e)return null;for(var t=new Array(this.numPages),r=null,a="",i=new p(e,this.xref),o=i.getAll(),c="",l=1,h=0,u=this.numPages;h=1,"Invalid start in PageLabel dictionary.");l=b||1}switch(r){case"D":c=l;break;case"R":case"r":c=n.Util.toRoman(l,"r"===r);break;case"A":case"a":for(var v="a"===r?97:65,y=l-1,k=String.fromCharCode(v+y%26),w=[],S=0,C=y/26|0;S<=C;S++)w.push(k);c=w.join("");break;default:(0,n.assert)(!r,'Invalid style "'+r+'" in PageLabel dictionary.')}t[h]=a+c;c="";l++}return t},get attachments(){var e,t=this.xref,r=null,a=this.catDict.get("Names");a&&(e=a.getRaw("EmbeddedFiles"));if(e){var i=new g(e,t),s=i.getAll();for(var o in s){var c=new m(s[o],t);r||(r=Object.create(null));r[(0,n.stringToPDFString)(o)]=c.serializable}}return(0,n.shadow)(this,"attachments",r)},get javaScript(){function e(e){var t=e.get("S");if((0,s.isName)(t,"JavaScript")){var r=e.get("JS");if((0,s.isStream)(r))r=(0,n.bytesToString)(r.getBytes());else if(!(0,n.isString)(r))return;a.push((0,n.stringToPDFString)(r))}}var t=this.xref,r=this.catDict.get("Names"),a=[];if(r&&r.has("JavaScript")){var i=new g(r.getRaw("JavaScript"),t),o=i.getAll();for(var c in o){var l=o[c];(0,s.isDict)(l)&&e(l)}}var h=this.catDict.get("OpenAction");if((0,s.isDict)(h,"Action")){var u=h.get("S");if((0,s.isName)(u,"Named")){var f=h.get("N");(0,s.isName)(f,"Print")&&a.push("print({});")}else e(h)}return(0,n.shadow)(this,"javaScript",a)},cleanup:function(){var e=this;this.pageKidsCountCache.clear();var t=[];this.fontCache.forEach(function(e){t.push(e)});return Promise.all(t).then(function(t){for(var r=0,a=t.length;r0&&o+r=0;d--)i.push(f[d])}}a.reject("Page index "+e+" not found.")}var r,a=(0,n.createPromiseCapability)(),i=[this.catDict.getRaw("Pages")],o=0,c=this.xref,l=this.pageKidsCountCache;t();return a.promise},getPageIndex:function(e){function t(t){var r,i=0;return a.fetchAsync(t).then(function(a){if((0,s.isRefsEqual)(t,e)&&!(0,s.isDict)(a,"Page")&&(!(0,s.isDict)(a)||a.has("Type")||!a.has("Contents")))throw new Error("The reference does not point to a /Page Dict.");if(!a)return null;(0,n.assert)((0,s.isDict)(a),"node must be a Dict.");r=a.getRaw("Parent");return a.getAsync("Parent")}).then(function(e){if(!e)return null;(0,n.assert)((0,s.isDict)(e),"parent must be a Dict.");return e.getAsync("Kids")}).then(function(e){if(!e)return null;for(var o=[],c=!1,l=0;l0;){var h=l[0],u=l[1];(0,n.isInt)(h)&&(0,n.isInt)(u)||(0,n.error)("Invalid XRef range fields: "+h+", "+u);(0,n.isInt)(s)&&(0,n.isInt)(o)&&(0,n.isInt)(c)||(0,n.error)("Invalid XRef entry fields length: "+h+", "+u);for(t=a.entryNum;t=a)break;t++;n++}return n}var t=10,r=13,a=60,i=/^(\d+)\s+(\d+)\s+obj\b/,c=new Uint8Array([116,114,97,105,108,101,114]),l=new Uint8Array([115,116,97,114,116,120,114,101,102]),h=new Uint8Array([101,110,100,111,98,106]),u=new Uint8Array([47,88,82,101,102]);this.entries.length=0;var f=this.stream;f.pos=0;for(var d=f.getBytes(),g=f.start,p=d.length,m=[],b=[];g=e.length);){n+=String.fromCharCode(s);s=e[i]}return n}(d,g);if(0!==k.indexOf("xref")||4!==k.length&&!/\s/.test(k[4]))if(y=i.exec(k)){void 0===this.entries[y[1]]&&(this.entries[y[1]]={offset:g-f.start,gen:0|y[2],uncompressed:!0});var w=e(d,g,h)+7,S=d.subarray(g,g+w),C=e(S,0,u);if(C=p)break;v=d[g]}while(v!==t&&v!==r);else++g}var x,A;for(x=0,A=b.length;x0;){var i,o,c=t.fetchIfRef(a.shift());if((0,s.isDict)(c))if(c.has("Kids")){var l=c.get("Kids");for(i=0,o=l.length;i10){(0,n.warn)('Search depth limit reached for "'+this._type+'" tree.');return null}var c=s.get("Kids");if(!(0,n.isArray)(c))return null;t=0;r=c.length-1;for(;t<=r;){a=t+r>>1;var l=i.fetchIfRef(c[a]),h=l.get("Limits");if(ei.fetchIfRef(h[1]))){s=i.fetchIfRef(c[a]);break}t=a+1}}if(t>r)return null}var u=s.get(this._type);if((0,n.isArray)(u)){t=0;r=u.length-2;for(;t<=r;){a=t+r&-2;var f=i.fetchIfRef(u[a]);if(ef))return i.fetchIfRef(u[a+1]);t=a+2}}}return null}};return e}(),g=function(){function e(e,t){this.root=e;this.xref=t;this._type="Names"}n.Util.inherit(e,d,{});return e}(),p=function(){function e(e,t){this.root=e;this.xref=t;this._type="Nums"}n.Util.inherit(e,d,{});return e}(),m=function(){function e(e,t){if(e&&(0,s.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;if(!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}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 e=null;if(this.contentRef){var r=this.xref,a=r.fetchIfRef(this.contentRef);a&&(0,s.isStream)(a)?e=a.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 e},get serializable(){return{filename:this.filename,content:this.content}}};return e}(),b=function(){function e(e){return(0,s.isRef)(e)||(0,s.isDict)(e)||(0,n.isArray)(e)||(0,s.isStream)(e)}function t(t,r){var a;if((0,s.isDict)(t)||(0,s.isStream)(t)){var i;i=(0,s.isDict)(t)?t.map:t.dict.map;for(var o in i){a=i[o];e(a)&&r.push(a)}}else if((0,n.isArray)(t))for(var c=0,l=t.length;c=65520&&e<=65535?0:e>=62976&&e<=63743?l()[e]||e:e}function i(e,t){var r=t[e];if(void 0!==r)return r;if(!e)return-1;if("u"===e[0]){var a,i=e.length;if(7===i&&"n"===e[1]&&"i"===e[2])a=e.substr(3);else{if(!(i>=5&&i<=7))return-1;a=e.substr(1)}if(a===a.toUpperCase()){r=parseInt(a,16);if(r>=0)return r}}return-1}function n(e){for(var t=0,r=h.length;t=a.begin&&e=t.begin&&e=t.begin&&e=0;a--)r+=e[a];return r}var c=r(0).getLookupTableFactory,l=c(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}),h=[{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}],u=c(function(e){e["¨"]=" ̈";e["¯"]=" ̄";e["´"]=" ́";e["µ"]="μ";e["¸"]=" ̧";e["IJ"]="IJ";e["ij"]="ij";e["Ŀ"]="L·";e["ŀ"]="l·";e["ʼn"]="ʼn";e["ſ"]="s";e["DŽ"]="DŽ";e["Dž"]="Dž";e["dž"]="dž";e["LJ"]="LJ";e["Lj"]="Lj";e["lj"]="lj";e["NJ"]="NJ";e["Nj"]="Nj";e["nj"]="nj";e["DZ"]="DZ";e["Dz"]="Dz";e["dz"]="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"]="ff";e["fi"]="fi";e["fl"]="fl";e["ffi"]="ffi";e["ffl"]="ffl";e["ſt"]="ſt";e["st"]="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=a;t.reverseIfRtl=o;t.getUnicodeRangeFor=n;t.getNormalizedUnicodes=u;t.getUnicodeForGlyph=i},function(e,t,r){"use strict";function a(e,t){this.url=e;t=t||{};this.isHttp=/^https?:/i.test(e);this.httpHeaders=this.isHttp&&t.httpHeaders||{};this.withCredentials=t.withCredentials||!1;this.getXhr=t.getXhr||function(){return new XMLHttpRequest};this.currXhrId=0;this.pendingRequests=Object.create(null);this.loadedRequests=Object.create(null)}function i(e){var t=e.response;if("string"!=typeof t)return t;for(var r=t.length,a=new Uint8Array(r),i=0;i=2&&r.onHeadersReceived){r.onHeadersReceived();delete r.onHeadersReceived}if(4===a.readyState&&e in this.pendingRequests){delete this.pendingRequests[e];if(0===a.status&&this.isHttp)r.onError&&r.onError(a.status);else{var n=a.status||200;if(200===n&&206===r.expectedStatus||n===r.expectedStatus){this.loadedRequests[e]=!0;var s=i(a);if(206===n){var o=a.getResponseHeader("Content-Range"),c=/bytes (\d+)-(\d+)\/(\d+)/.exec(o),l=parseInt(c[1],10);r.onDone({begin:l,chunk:s})}else r.onProgressiveData?r.onDone(null):s?r.onDone({begin:0,chunk:s}):r.onError&&r.onError(a.status)}else r.onError&&r.onError(a.status)}}}},hasPendingRequests:function(){for(var e in this.pendingRequests)return!0;return!1},getRequestXhr:function(e){return this.pendingRequests[e].xhr},isStreamingRequest:function(e){return!!this.pendingRequests[e].onProgressiveData},isPendingRequest:function(e){return e in this.pendingRequests},isLoadedRequest:function(e){return e in this.loadedRequests},abortAllRequests:function(){for(var e in this.pendingRequests)this.abortRequest(0|e)},abortRequest:function(e){var t=this.pendingRequests[e].xhr;delete this.pendingRequests[e];t.abort()}};n.prototype={_onRangeRequestReaderClosed:function(e){var t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)},getFullReader:function(){(0,c.assert)(!this._fullRequestReader);this._fullRequestReader=new s(this._manager,this._options);return this._fullRequestReader},getRangeReader:function(e,t){var r=new o(this._manager,e,t);r.onClosed=this._onRangeRequestReaderClosed.bind(this);this._rangeRequestReaders.push(r);return r},cancelAllRequests:function(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);this._rangeRequestReaders.slice(0).forEach(function(t){t.cancel(e)})}};s.prototype={_validateRangeRequestCapabilities:function(){if(this._disableRange)return!1;var e=this._manager;if(!e.isHttp)return!1;var t=this._fullRequestId,r=e.getRequestXhr(t);if("bytes"!==r.getResponseHeader("Accept-Ranges"))return!1;if("identity"!==(r.getResponseHeader("Content-Encoding")||"identity"))return!1;var a=r.getResponseHeader("Content-Length");a=parseInt(a,10);if(!(0,c.isInt)(a))return!1;this._contentLength=a;return!(a<=2*this._rangeChunkSize)},_onHeadersReceived:function(){this._validateRangeRequestCapabilities()&&(this._isRangeSupported=!0);var e=this._manager,t=this._fullRequestId;e.isStreamingRequest(t)?this._isStreamingSupported=!0:this._isRangeSupported&&e.abortRequest(t);this._headersReceivedCapability.resolve()},_onProgressiveData:function(e){if(this._requests.length>0){this._requests.shift().resolve({value:e,done:!1})}else this._cachedChunks.push(e)},_onDone:function(e){e&&this._onProgressiveData(e.chunk);this._done=!0;if(!(this._cachedChunks.length>0)){this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})});this._requests=[]}},_onError:function(e){var t,r=this._url;t=404===e||0===e&&/^file:/.test(r)?new c.MissingPDFException('Missing PDF "'+r+'".'):new c.UnexpectedResponseException("Unexpected server response ("+e+') while retrieving PDF "'+r+'".',e);this._storedError=t;this._headersReceivedCapability.reject(t);this._requests.forEach(function(e){e.reject(t)});this._requests=[];this._cachedChunks=[]},_onProgress:function(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})},get isRangeSupported(){return this._isRangeSupported},get isStreamingSupported(){return this._isStreamingSupported},get contentLength(){return this._contentLength},get headersReady(){return this._headersReceivedCapability.promise},read:function(){if(this._storedError)return Promise.reject(this._storedError);if(this._cachedChunks.length>0){var e=this._cachedChunks.shift();return Promise.resolve(e)}if(this._done)return Promise.resolve({value:void 0,done:!0});var t=(0,c.createPromiseCapability)();this._requests.push(t);return t.promise},cancel: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}};o.prototype={_close:function(){this.onClosed&&this.onClosed(this)},_onDone:function(e){var t=e.chunk;if(this._requests.length>0){this._requests.shift().resolve({value:t,done:!1})}else this._queuedChunk=t;this._done=!0;this._requests.forEach(function(e){e.resolve({value:void 0,done:!0})});this._requests=[];this._close()},_onProgress:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})},get isStreamingSupported(){return!1},read:function(){ if(null!==this._queuedChunk){var e=this._queuedChunk;this._queuedChunk=null;return Promise.resolve({value:e,done:!1})}if(this._done)return Promise.resolve({value:void 0,done:!0});var t=(0,c.createPromiseCapability)();this._requests.push(t);return t.promise},cancel: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()}};(0,l.setPDFNetworkStreamClass)(n);t.PDFNetworkStream=n;t.NetworkManager=a},function(e,t,r){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0});t.AnnotationFactory=t.AnnotationBorderStyle=t.Annotation=void 0;var i=r(0),n=r(16),s=r(1),o=r(3),c=r(14),l=r(2);a.prototype={create:function(e,t,r,a){var n=e.fetchIfRef(t);if((0,s.isDict)(n)){var o=(0,s.isRef)(t)?t.toString():"annot_"+a.createObjId(),c=n.get("Subtype");c=(0,s.isName)(c)?c.name:null;var l={xref:e,dict:n,ref:(0,s.isRef)(t)?t:null,subtype:c,id:o,pdfManager:r};switch(c){case"Link":return new b(l);case"Text":return new m(l);case"Widget":var u=i.Util.getInheritableProperty(n,"FT");u=(0,s.isName)(u)?u.name:null;switch(u){case"Tx":return new d(l);case"Btn":return new g(l);case"Ch":return new p(l)}(0,i.warn)('Unimplemented widget field type "'+u+'", falling back to base field type.');return new f(l);case"Popup":return new v(l);case"Line":return new y(l);case"Highlight":return new k(l);case"Underline":return new w(l);case"Squiggly":return new S(l);case"StrikeOut":return new C(l);case"FileAttachment":return new x(l);default:c?(0,i.warn)('Unimplemented annotation type "'+c+'", falling back to base annotation.'):(0,i.warn)("Annotation is missing the required /Subtype.");return new h(l)}}}};var h=function(){function e(e,t,r){var a=i.Util.getAxialAlignedBoundingBox(t,r),n=a[0],s=a[1],o=a[2],c=a[3];if(n===o||s===c)return[1,0,0,1,e[0],e[1]];var l=(e[2]-e[0])/(o-n),h=(e[3]-e[1])/(c-s);return[l,0,0,h,e[0]-n*l,e[1]-s*h]}function t(e){var t=e.dict;this.setFlags(t.get("F"));this.setRectangle(t.getArray("Rect"));this.setColor(t.getArray("C"));this.setBorderStyle(t);this.setAppearance(t);this.data={};this.data.id=e.id;this.data.subtype=e.subtype;this.data.annotationFlags=this.flags;this.data.rect=this.rectangle;this.data.color=this.color;this.data.borderStyle=this.borderStyle;this.data.hasAppearance=!!this.appearance}t.prototype={_hasFlag:function(e,t){return!!(e&t)},_isViewable:function(e){return!this._hasFlag(e,i.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,i.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,i.AnnotationFlag.NOVIEW)},_isPrintable:function(e){return this._hasFlag(e,i.AnnotationFlag.PRINT)&&!this._hasFlag(e,i.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,i.AnnotationFlag.HIDDEN)},get viewable(){return 0===this.flags||this._isViewable(this.flags)},get printable(){return 0!==this.flags&&this._isPrintable(this.flags)},setFlags:function(e){this.flags=(0,i.isInt)(e)&&e>0?e:0},hasFlag:function(e){return this._hasFlag(this.flags,e)},setRectangle:function(e){(0,i.isArray)(e)&&4===e.length?this.rectangle=i.Util.normalizeRect(e):this.rectangle=[0,0,0,0]},setColor:function(e){var t=new Uint8Array(3);if((0,i.isArray)(e))switch(e.length){case 0:this.color=null;break;case 1:o.ColorSpace.singletons.gray.getRgbItem(e,0,t,0);this.color=t;break;case 3:o.ColorSpace.singletons.rgb.getRgbItem(e,0,t,0);this.color=t;break;case 4:o.ColorSpace.singletons.cmyk.getRgbItem(e,0,t,0);this.color=t;break;default:this.color=t}else this.color=t},setBorderStyle:function(e){this.borderStyle=new u;if((0,s.isDict)(e))if(e.has("BS")){var t=e.get("BS"),r=t.get("Type");if(!r||(0,s.isName)(r,"Border")){this.borderStyle.setWidth(t.get("W"));this.borderStyle.setStyle(t.get("S"));this.borderStyle.setDashArray(t.getArray("D"))}}else if(e.has("Border")){var a=e.getArray("Border");if((0,i.isArray)(a)&&a.length>=3){this.borderStyle.setHorizontalCornerRadius(a[0]);this.borderStyle.setVerticalCornerRadius(a[1]);this.borderStyle.setWidth(a[2]);4===a.length&&this.borderStyle.setDashArray(a[3])}}else this.borderStyle.setWidth(0)},setAppearance:function(e){this.appearance=null;var t=e.get("AP");if((0,s.isDict)(t)){var r=t.get("N");if((0,s.isStream)(r))this.appearance=r;else if((0,s.isDict)(r)){var a=e.get("AS");(0,s.isName)(a)&&r.has(a.name)&&(this.appearance=r.get(a.name))}}},_preparePopup:function(e){e.has("C")||(this.data.color=null);this.data.hasPopup=e.has("Popup");this.data.title=(0,i.stringToPDFString)(e.get("T")||"");this.data.contents=(0,i.stringToPDFString)(e.get("Contents")||"")},loadResources:function(e){return this.appearance.dict.getAsync("Resources").then(function(t){if(t){return new n.ObjectLoader(t.map,e,t.xref).load().then(function(){return t})}})},getOperatorList:function(t,r,a){var n=this;if(!this.appearance)return Promise.resolve(new c.OperatorList);var s=this.data,o=this.appearance.dict,l=this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"]),h=o.getArray("BBox")||[0,0,1,1],u=o.getArray("Matrix")||[1,0,0,1,0,0],f=e(s.rect,h,u);return l.then(function(e){var a=new c.OperatorList;a.addOp(i.OPS.beginAnnotation,[s.rect,f,u]);return t.getOperatorList({stream:n.appearance,task:r,resources:e,operatorList:a}).then(function(){a.addOp(i.OPS.endAnnotation,[]);n.appearance.reset();return a})})}};return t}(),u=function(){function e(){this.width=1;this.style=i.AnnotationBorderStyleType.SOLID;this.dashArray=[3];this.horizontalCornerRadius=0;this.verticalCornerRadius=0}e.prototype={setWidth:function(e){e===(0|e)&&(this.width=e)},setStyle:function(e){if(e)switch(e.name){case"S":this.style=i.AnnotationBorderStyleType.SOLID;break;case"D":this.style=i.AnnotationBorderStyleType.DASHED;break;case"B":this.style=i.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=i.AnnotationBorderStyleType.INSET;break;case"U":this.style=i.AnnotationBorderStyleType.UNDERLINE}},setDashArray:function(e){if((0,i.isArray)(e)&&e.length>0){for(var t=!0,r=!0,a=0,n=e.length;a=0)){t=!1;break}s>0&&(r=!1)}t&&!r?this.dashArray=e:this.width=0}else e&&(this.width=0)},setHorizontalCornerRadius:function(e){e===(0|e)&&(this.horizontalCornerRadius=e)},setVerticalCornerRadius:function(e){e===(0|e)&&(this.verticalCornerRadius=e)}};return e}(),f=function(){function e(e){h.call(this,e);var t=e.dict,r=this.data;r.annotationType=i.AnnotationType.WIDGET;r.fieldName=this._constructFieldName(t);r.fieldValue=i.Util.getInheritableProperty(t,"V",!0);r.alternativeText=(0,i.stringToPDFString)(t.get("TU")||"");r.defaultAppearance=i.Util.getInheritableProperty(t,"DA")||"";var a=i.Util.getInheritableProperty(t,"FT");r.fieldType=(0,s.isName)(a)?a.name:null;this.fieldResources=i.Util.getInheritableProperty(t,"DR")||s.Dict.empty;r.fieldFlags=i.Util.getInheritableProperty(t,"Ff");(!(0,i.isInt)(r.fieldFlags)||r.fieldFlags<0)&&(r.fieldFlags=0);r.readOnly=this.hasFieldFlag(i.AnnotationFieldFlag.READONLY);"Sig"===r.fieldType&&this.setFlags(i.AnnotationFlag.HIDDEN)}i.Util.inherit(e,h,{_constructFieldName:function(e){if(!e.has("T")&&!e.has("Parent")){(0,i.warn)("Unknown field name, falling back to empty field name.");return""}if(!e.has("Parent"))return(0,i.stringToPDFString)(e.get("T"));var t=[];e.has("T")&&t.unshift((0,i.stringToPDFString)(e.get("T")));for(var r=e;r.has("Parent");){r=r.get("Parent");if(!(0,s.isDict)(r))break;r.has("T")&&t.unshift((0,i.stringToPDFString)(r.get("T")))}return t.join(".")},hasFieldFlag:function(e){return!!(this.data.fieldFlags&e)}});return e}(),d=function(){function e(e){f.call(this,e);this.data.fieldValue=(0,i.stringToPDFString)(this.data.fieldValue||"");var t=i.Util.getInheritableProperty(e.dict,"Q");(!(0,i.isInt)(t)||t<0||t>2)&&(t=null);this.data.textAlignment=t;var r=i.Util.getInheritableProperty(e.dict,"MaxLen");(!(0,i.isInt)(r)||r<0)&&(r=null);this.data.maxLen=r;this.data.multiLine=this.hasFieldFlag(i.AnnotationFieldFlag.MULTILINE);this.data.comb=this.hasFieldFlag(i.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(i.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(i.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(i.AnnotationFieldFlag.FILESELECT)&&null!==this.data.maxLen}i.Util.inherit(e,f,{getOperatorList:function(e,t,r){var a=new c.OperatorList;if(r)return Promise.resolve(a);if(this.appearance)return h.prototype.getOperatorList.call(this,e,t,r);if(!this.data.defaultAppearance)return Promise.resolve(a);var n=new l.Stream((0,i.stringToBytes)(this.data.defaultAppearance));return e.getOperatorList({stream:n,task:t,resources:this.fieldResources,operatorList:a}).then(function(){return a})}});return e}(),g=function(){function e(e){f.call(this,e);this.data.checkBox=!this.hasFieldFlag(i.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(i.AnnotationFieldFlag.PUSHBUTTON);if(this.data.checkBox){if(!(0,s.isName)(this.data.fieldValue))return;this.data.fieldValue=this.data.fieldValue.name}this.data.radioButton=this.hasFieldFlag(i.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(i.AnnotationFieldFlag.PUSHBUTTON);if(this.data.radioButton){this.data.fieldValue=this.data.buttonValue=null;var t=e.dict.get("Parent");if((0,s.isDict)(t)&&t.has("V")){var r=t.get("V");(0,s.isName)(r)&&(this.data.fieldValue=r.name)}var a=e.dict.get("AP");if(!(0,s.isDict)(a))return;var n=a.get("N");if(!(0,s.isDict)(n))return;for(var o=n.getKeys(),c=0,l=o.length;c=0&&"ET"===g[O];--O)g[O]="EN";for(O=m+1;O0&&(T=g[m-1]);var B=x;P+1R&&a(R)&&(E=R)}for(R=F;R>=E;--R){var M=-1;for(m=0,b=w.length;m=0){o(d,M,m);M=-1}}else M<0&&(M=m);M>=0&&o(d,M,w.length)}for(m=0,b=d.length;m"!==D||(d[m]="")}return c(d.join(""),l)}Object.defineProperty(t,"__esModule",{value:!0});t.bidi=void 0;var h=r(0),u=["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"],f=["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"],d=[],g=[];t.bidi=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=[".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"],i=[".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"],n=[".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"];t.ISOAdobeCharset=a;t.ExpertCharset=i;t.ExpertSubsetCharset=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CMapFactory=t.IdentityCMap=t.CMap=void 0;var a=r(0),i=r(1),n=r(5),s=r(2),o=["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"],c=function(){function e(e){this.codespaceRanges=[[],[],[],[]];this.numCodespaceRanges=0;this._map=[];this.name="";this.vertical=!1;this.useCMap=null;this.builtInCMap=e}e.prototype={addCodespaceRange:function(e,t,r){this.codespaceRanges[e-1].push(t,r);this.numCodespaceRanges++},mapCidRange:function(e,t,r){for(;e<=t;)this._map[e++]=r++},mapBfRange:function(e,t,r){for(var a=r.length-1;e<=t;){this._map[e++]=r;r=r.substr(0,a)+String.fromCharCode(r.charCodeAt(a)+1)}},mapBfRangeToArray:function(e,t,r){for(var a=0,i=r.length;e<=t&&a>>0;for(var o=i[s],c=0,l=o.length;c=h&&a<=u){r.charcode=a;r.length=s+1;return}}}r.charcode=0;r.length=1},get length(){return this._map.length},get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(var e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}};return e}(),l=function(){function e(e,t){c.call(this);this.vertical=e;this.addCodespaceRange(t,0,65535)}a.Util.inherit(e,c,{});e.prototype={addCodespaceRange:c.prototype.addCodespaceRange,mapCidRange:function(e,t,r){(0,a.error)("should not call mapCidRange")},mapBfRange:function(e,t,r){(0,a.error)("should not call mapBfRange")},mapBfRangeToArray:function(e,t,r){(0,a.error)("should not call mapBfRangeToArray")},mapOne:function(e,t){(0,a.error)("should not call mapCidOne")},lookup:function(e){return(0,a.isInt)(e)&&e<=65535?e:void 0},contains:function(e){return(0,a.isInt)(e)&&e<=65535},forEach:function(e){for(var t=0;t<=65535;t++)e(t,t)},charCodeOf:function(e){return(0,a.isInt)(e)&&e<=65535?e:-1},getMap:function(){for(var e=new Array(65536),t=0;t<=65535;t++)e[t]=t;return e},readCharCode:c.prototype.readCharCode,get length(){return 65536},get isIdentityCMap(){(0,a.error)("should not access .isIdentityCMap")}};return e}(),h=function(){function e(e,t){for(var r=0,a=0;a<=t;a++)r=r<<8|e[a];return r>>>0}function t(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode.apply(null,e.subarray(0,t+1))}function r(e,t,r){for(var a=0,i=r;i>=0;i--){a+=e[i]+t[i];e[i]=255&a;a>>=8}}function i(e,t){for(var r=1,a=t;a>=0&&r>0;a--){r+=e[a];e[a]=255&r;r>>=8}}function n(e){this.buffer=e;this.pos=0;this.end=e.length;this.tmpBuf=new Uint8Array(l)}function s(s,o,l){return new Promise(function(h,u){var f=new n(s),d=f.readByte();o.vertical=!!(1&d);for(var g,p,m=null,b=new Uint8Array(c),v=new Uint8Array(c),y=new Uint8Array(c),k=new Uint8Array(c),w=new Uint8Array(c);(p=f.readByte())>=0;){var S=p>>5;if(7!==S){var C=!!(16&p),x=15&p;(0,a.assert)(x+1<=c);var A,I=f.readNumber();switch(S){case 0:f.readHex(b,x);f.readHexNumber(v,x);r(v,b,x);o.addCodespaceRange(x+1,e(b,x),e(v,x));for(A=1;A=this.end?-1:this.buffer[this.pos++]},readNumber:function(){var e,t=0;do{var r=this.readByte();r<0&&(0,a.error)("unexpected EOF in bcmap");e=!(128&r);t=t<<7|127&r}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,i=this.tmpBuf,n=0;do{var s=this.readByte();s<0&&(0,a.error)("unexpected EOF in bcmap");r=!(128&s);i[n++]=127&s}while(!r);for(var o=t,c=0,l=0;o>=0;){for(;l<8&&i.length>0;){c=i[--n]<>=8;l-=8}},readHexSigned:function(e,t){this.readHexNumber(e,t);for(var r=1&e[t]?255:0,a=0,i=0;i<=t;i++){a=(1&a)<<8|e[i];e[i]=a>>1^r}},readString:function(){for(var e=this.readNumber(),t="",r=0;r>>0}function t(e){(0,a.isString)(e)||(0,a.error)("Malformed CMap: expected string.")}function r(e){(0,a.isInt)(e)||(0,a.error)("Malformed CMap: expected int.")}function u(r,a){for(;;){var n=a.getObj();if((0,i.isEOF)(n))break;if((0,i.isCmd)(n,"endbfchar"))return;t(n);var s=e(n);n=a.getObj();t(n);var o=n;r.mapOne(s,o)}}function f(r,n){for(;;){var s=n.getObj();if((0,i.isEOF)(s))break;if((0,i.isCmd)(s,"endbfrange"))return;t(s);var o=e(s);s=n.getObj();t(s);var c=e(s);s=n.getObj();if((0,a.isInt)(s)||(0,a.isString)(s)){var l=(0,a.isInt)(s)?String.fromCharCode(s):s;r.mapBfRange(o,c,l)}else{if(!(0,i.isCmd)(s,"["))break;s=n.getObj();for(var h=[];!(0,i.isCmd)(s,"]")&&!(0,i.isEOF)(s);){h.push(s);s=n.getObj()}r.mapBfRangeToArray(o,c,h)}}(0,a.error)("Invalid bf range.")}function d(a,n){for(;;){var s=n.getObj();if((0,i.isEOF)(s))break ;if((0,i.isCmd)(s,"endcidchar"))return;t(s);var o=e(s);s=n.getObj();r(s);var c=s;a.mapOne(o,c)}}function g(a,n){for(;;){var s=n.getObj();if((0,i.isEOF)(s))break;if((0,i.isCmd)(s,"endcidrange"))return;t(s);var o=e(s);s=n.getObj();t(s);var c=e(s);s=n.getObj();r(s);var l=s;a.mapCidRange(o,c,l)}}function p(t,r){for(;;){var n=r.getObj();if((0,i.isEOF)(n))break;if((0,i.isCmd)(n,"endcodespacerange"))return;if(!(0,a.isString)(n))break;var s=e(n);n=r.getObj();if(!(0,a.isString)(n))break;var o=e(n);t.addCodespaceRange(n.length,s,o)}(0,a.error)("Invalid codespace range.")}function m(e,t){var r=t.getObj();(0,a.isInt)(r)&&(e.vertical=!!r)}function b(e,t){var r=t.getObj();(0,i.isName)(r)&&(0,a.isString)(r.name)&&(e.name=r.name)}function v(e,t,r,n){var s,o;e:for(;;)try{var c=t.getObj();if((0,i.isEOF)(c))break;if((0,i.isName)(c)){"WMode"===c.name?m(e,t):"CMapName"===c.name&&b(e,t);s=c}else if((0,i.isCmd)(c))switch(c.cmd){case"endcmap":break e;case"usecmap":(0,i.isName)(s)&&(o=s.name);break;case"begincodespacerange":p(e,t);break;case"beginbfchar":u(e,t);break;case"begincidchar":d(e,t);break;case"beginbfrange":f(e,t);break;case"begincidrange":g(e,t)}}catch(e){if(e instanceof a.MissingDataException)throw e;(0,a.warn)("Invalid cMap data: "+e);continue}!n&&o&&(n=o);return n?y(e,r,n):Promise.resolve(e)}function y(e,t,r){return k(r,t).then(function(t){e.useCMap=t;if(0===e.numCodespaceRanges){for(var r=e.useCMap.codespaceRanges,a=0;a100){(0,i.warn)("getInheritedPageProp: maximum loop count exceeded for "+e);return a?a[0]:void 0}r=r.get("Parent")}if(a)return 1!==a.length&&(0,s.isDict)(a[0])?s.Dict.merge(this.xref,a):a[0]},get content(){return this.getPageProp("Contents")},get resources(){return(0,i.shadow)(this,"resources",this.getInheritedPageProp("Resources")||s.Dict.empty)},get mediaBox(){var e=this.getInheritedPageProp("MediaBox",!0);return(0,i.isArray)(e)&&4===e.length?(0,i.shadow)(this,"mediaBox",e):(0,i.shadow)(this,"mediaBox",r)},get cropBox(){var e=this.getInheritedPageProp("CropBox",!0);return(0,i.isArray)(e)&&4===e.length?(0,i.shadow)(this,"cropBox",e):(0,i.shadow)(this,"cropBox",this.mediaBox)},get userUnit(){var e=this.getPageProp("UserUnit");(!(0,i.isNum)(e)||e<=0)&&(e=1);return(0,i.shadow)(this,"userUnit",e)},get view(){var e=this.mediaBox,t=this.cropBox;if(e===t)return(0,i.shadow)(this,"view",e);var r=i.Util.intersect(t,e);return(0,i.shadow)(this,"view",r||e)},get rotate(){var e=this.getInheritedPageProp("Rotate")||0;e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360);return(0,i.shadow)(this,"rotate",e)},getContentStream:function(){var e,t=this.content;if((0,i.isArray)(t)){var r,a=this.xref,n=t.length,c=[];for(r=0;r0,"stream must have data");this.pdfManager=e;this.stream=r;this.xref=new n.XRef(r,e)}function t(e,t,r,a){var i=e.pos,n=e.end,s=[];i+r>n&&(r=n-i);for(var o=0;o0;){n-=1024-"startxref".length;n<0&&(n=0);e.pos=n;a=t(e,"startxref",1024,!0)}if(a){e.skip(9);var s;do{s=e.getByte()}while((0,i.isSpace)(s));for(var o="";s>=32&&s<=57;){o+=String.fromCharCode(s);s=e.getByte()}r=parseInt(o,10);isNaN(r)&&(r=0)}}return(0,i.shadow)(this,"startXRef",r)},get mainXRefEntriesOffset(){var e=0,t=this.linearization;t&&(e=t.mainXRefEntriesOffset);return(0,i.shadow)(this,"mainXRefEntriesOffset",e)},checkHeader:function(){var e=this.stream;e.reset();if(t(e,"%PDF-",1024)){e.moveStart();for(var r,a="";(r=e.getByte())>32&&!(a.length>=12);)a+=String.fromCharCode(r);this.pdfFormatVersion||(this.pdfFormatVersion=a.substring(5))}},parseStartXRef:function(){var e=this.startXRef;this.xref.setStartXRef(e)},setup:function(e){var t=this;this.xref.parse(e);var r={createPage:function(e,r,a,i,n){return new f(t.pdfManager,t.xref,e,r,a,i,n)}};this.catalog=new n.Catalog(this.pdfManager,this.xref,r)},get numPages(){var e=this.linearization,t=e?e.numPages:this.catalog.numPages;return(0,i.shadow)(this,"numPages",t)},get documentInfo(){var e,t={PDFFormatVersion:this.pdfFormatVersion,IsAcroFormPresent:!!this.acroForm,IsXFAPresent:!!this.xfa};try{e=this.xref.trailer.get("Info")}catch(e){if(e instanceof i.MissingDataException)throw e;(0,i.info)("The document information dictionary is invalid.")}if(e){var r=a.entries;for(var n in r)if(e.has(n)){var s=e.get(n);r[n](s)?t[n]="string"!=typeof s?s:(0,i.stringToPDFString)(s):(0,i.info)('Bad value in document info for "'+n+'"')}}return(0,i.shadow)(this,"documentInfo",t)},get fingerprint(){var e,t=this.xref,a="",n=t.trailer.get("ID");if(n&&(0,i.isArray)(n)&&n[0]&&(0,i.isString)(n[0])&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==n[0])e=(0,i.stringToBytes)(n[0]);else{this.stream.ensureRange&&this.stream.ensureRange(0,Math.min(r,this.stream.end));e=(0,h.calculateMD5)(this.stream.bytes.subarray(0,r),0,r)}for(var s=0,o=e.length;s>1;o=i+l+14;s=[];for(c=0;c>1;r>16,o=0,c=0;n+=10;if(s<0)do{i=e[n]<<8|e[n+1];var l=e[n+2]<<8|e[n+3];n+=4;var h,f;if(1&i){h=(e[n]<<24|e[n+1]<<16)>>16;f=(e[n+2]<<24|e[n+3]<<16)>>16;n+=4}else{h=e[n++];f=e[n++]}if(2&i){o=h;c=f}else{o=0;c=0}var d=1,g=1,p=0,m=0;if(8&i){d=g=(e[n]<<24|e[n+1]<<16)/1073741824;n+=2}else if(64&i){d=(e[n]<<24|e[n+1]<<16)/1073741824;g=(e[n+2]<<24|e[n+3]<<16)/1073741824;n+=4}else if(128&i){d=(e[n]<<24|e[n+1]<<16)/1073741824;p=(e[n+2]<<24|e[n+3]<<16)/1073741824;m=(e[n+4]<<24|e[n+5]<<16)/1073741824;g=(e[n+6]<<24|e[n+7]<<16)/1073741824;n+=8}var b=r.glyphs[l];if(b){t.push({cmd:"save"});t.push({cmd:"transform",args:[d,p,m,g,o,c]});u(b,t,r);t.push({cmd:"restore"})}}while(32&i);else{var v,y,k=[];for(v=0;v0;)S.push({flags:i})}for(v=0;v>16;n+=2;break;case 2:o-=e[n++];break;case 18:o+=e[n++]}S[v].x=o}for(v=0;v>16;n+=2;break;case 4:c-=e[n++];break;case 36:c+=e[n++]}S[v].y=c}var x=0;for(n=0;n>1;A=!0;break;case 4:d+=l.pop();i(u,d);A=!0;break;case 5:for(;l.length>0;){u+=l.shift();d+=l.shift();n(u,d)}break;case 6:for(;l.length>0;){u+=l.shift();n(u,d);if(0===l.length)break;d+=l.shift();n(u,d)}break;case 7:for(;l.length>0;){d+=l.shift();n(u,d);if(0===l.length)break;u+=l.shift();n(u,d)}break;case 8:for(;l.length>0;){m=u+l.shift();v=d+l.shift();b=m+l.shift();y=v+l.shift();u=b+l.shift();d=y+l.shift();o(m,v,b,y,u,d)}break;case 10:C=l.pop()+r.subrsBias;x=r.subrs[C];x&&c(x);break;case 11:return;case 12:I=e[p++];switch(I){case 34:m=u+l.shift();b=m+l.shift();k=d+l.shift();u=b+l.shift();o(m,d,b,k,u,k);m=u+l.shift();b=m+l.shift();u=b+l.shift();o(m,k,b,d,u,d);break;case 35:m=u+l.shift();v=d+l.shift();b=m+l.shift();y=v+l.shift();u=b+l.shift();d=y+l.shift();o(m,v,b,y,u,d);m=u+l.shift();v=d+l.shift();b=m+l.shift();y=v+l.shift();u=b+l.shift();d=y+l.shift();o(m,v,b,y,u,d);l.pop();break;case 36:m=u+l.shift();k=d+l.shift();b=m+l.shift();w=k+l.shift();u=b+l.shift();o(m,k,b,w,u,w);m=u+l.shift();b=m+l.shift();S=w+l.shift();u=b+l.shift();o(m,w,b,S,u,d);break;case 37:var O=u,P=d;m=u+l.shift();v=d+l.shift();b=m+l.shift();y=v+l.shift();u=b+l.shift();d=y+l.shift();o(m,v,b,y,u,d);m=u+l.shift();v=d+l.shift();b=m+l.shift();y=v+l.shift();u=b;d=y;Math.abs(u-O)>Math.abs(d-P)?u+=l.shift():d+=l.shift();o(m,v,b,y,u,d);break;default:(0,a.error)("unknown operator: 12 "+I)}break;case 14:if(l.length>=4){var T=l.pop(),B=l.pop();d=l.pop();u=l.pop();t.push({cmd:"save"});t.push({cmd:"translate",args:[u,d]});var R=h(r.cmap,String.fromCharCode(r.glyphNameMap[s.StandardEncoding[T]]));f(r.glyphs[R.glyphId],t,r);t.push({cmd:"restore"});R=h(r.cmap,String.fromCharCode(r.glyphNameMap[s.StandardEncoding[B]]));f(r.glyphs[R.glyphId],t,r)}return;case 18:g+=l.length>>1;A=!0;break;case 19:case 20:g+=l.length>>1;p+=g+7>>3;A=!0;break;case 21:d+=l.pop();u+=l.pop();i(u,d);A=!0;break;case 22:u+=l.pop();i(u,d);A=!0;break;case 23:g+=l.length>>1;A=!0;break;case 24:for(;l.length>2;){m=u+l.shift();v=d+l.shift();b=m+l.shift();y=v+l.shift();u=b+l.shift();d=y+l.shift();o(m,v,b,y,u,d)}u+=l.shift();d+=l.shift();n(u,d);break;case 25:for(;l.length>6;){u+=l.shift();d+=l.shift();n(u,d)}m=u+l.shift();v=d+l.shift();b=m+l.shift();y=v+l.shift();u=b+l.shift();d=y+l.shift();o(m,v,b,y,u,d);break;case 26:l.length%2&&(u+=l.shift());for(;l.length>0;){m=u;v=d+l.shift();b=m+l.shift();y=v+l.shift();u=b;d=y+l.shift();o(m,v,b,y,u,d)}break;case 27:l.length%2&&(d+=l.shift());for(;l.length>0;){m=u+l.shift();v=d;b=m+l.shift();y=v+l.shift();u=b+l.shift();d=y;o(m,v,b,y,u,d)}break;case 28:l.push((e[p]<<24|e[p+1]<<16)>>16);p+=2;break;case 29:C=l.pop()+r.gsubrsBias;x=r.gsubrs[C];x&&c(x);break;case 30:for(;l.length>0;){m=u;v=d+l.shift();b=m+l.shift();y=v+l.shift();u=b+l.shift();d=y+(1===l.length?l.shift():0);o(m,v,b,y,u,d);if(0===l.length)break;m=u+l.shift();v=d;b=m+l.shift();y=v+l.shift();d=y+l.shift();u=b+(1===l.length?l.shift():0);o(m,v,b,y,u,d)}break;case 31:for(;l.length>0;){m=u+l.shift();v=d;b=m+l.shift();y=v+l.shift();d=y+l.shift();u=b+(1===l.length?l.shift():0);o(m,v,b,y,u,d);if(0===l.length)break;m=u;v=d+l.shift();b=m+l.shift();y=v+l.shift();u=b+l.shift();d=y+(1===l.length?l.shift():0);o(m,v,b,y,u,d)}break;default:I<32&&(0,a.error)("unknown operator: "+I);if(I<247)l.push(I-139);else if(I<251)l.push(256*(I-247)+e[p++]+108);else if(I<255)l.push(256*-(I-251)-e[p++]-108);else{l.push((e[p]<<24|e[p+1]<<16|e[p+2]<<8|e[p+3])/65536);p+=4}}A&&(l.length=0)}}var l=[],u=0,d=0,g=0;c(e)}function d(e){this.compiledGlyphs=Object.create(null);this.compiledCharCodeToGlyphId=Object.create(null);this.fontMatrix=e}function g(e,t,r){r=r||[488e-6,0,0,488e-6,0,0];d.call(this,r);this.glyphs=e;this.cmap=t}function p(e,t,r,a){r=r||[.001,0,0,.001,0,0];d.call(this,r);this.glyphs=e.glyphs;this.gsubrs=e.gsubrs||[];this.subrs=e.subrs||[];this.cmap=t;this.glyphNameMap=a||(0,n.getGlyphsUnicode)();this.gsubrsBias=this.gsubrs.length<1240?107:this.gsubrs.length<33900?1131:32768;this.subrsBias=this.subrs.length<1240?107:this.subrs.length<33900?1131:32768}d.prototype={getPathJs:function(e){var t=h(this.cmap,e),r=this.compiledGlyphs[t.glyphId];if(!r){r=this.compileGlyph(this.glyphs[t.glyphId]);this.compiledGlyphs[t.glyphId]=r}void 0===this.compiledCharCodeToGlyphId[t.charCode]&&(this.compiledCharCodeToGlyphId[t.charCode]=t.glyphId);return r},compileGlyph:function(e){if(!e||0===e.length||14===e[0])return"";var t=[];t.push({cmd:"save"});t.push({cmd:"transform",args:this.fontMatrix.slice()});t.push({cmd:"scale",args:["size","-size"]});this.compileGlyphImpl(e,t);t.push({cmd:"restore"});return t},compileGlyphImpl:function(){(0,a.error)("Children classes should implement this.")},hasBuiltPath:function(e){var t=h(this.cmap,e);return void 0!==this.compiledGlyphs[t.glyphId]&&void 0!==this.compiledCharCodeToGlyphId[t.charCode]}};a.Util.inherit(g,d,{compileGlyphImpl:function(e,t){u(e,t,this)}});a.Util.inherit(p,d,{compileGlyphImpl:function(e,t){f(e,t,this)}});return{create:function(i,n){for(var s,o,h,u,f,d,m=new Uint8Array(i.data),b=t(m,4),v=0,y=12;v=0?a:0}}else if(c)for(i in t)o[i]=t[i];else{n=u.StandardEncoding;for(i=0;i=0?a:0}}var l,f=e.differences;if(f)for(i in f){var d=f[i];a=r.indexOf(d);if(-1===a){l||(l=(0,h.getGlyphsUnicode)());var g=s(d,l);g!==d&&(a=r.indexOf(g))}o[i]=a>=0?a:0}return o}Object.defineProperty(t,"__esModule",{value:!0});t.getFontType=t.ProblematicCharRanges=t.IdentityToUnicodeMap=t.ToUnicodeMap=t.FontFlags=t.Font=t.ErrorFont=t.PRIVATE_USE_OFFSET_END=t.PRIVATE_USE_OFFSET_START=t.SEAC_ANALYSIS_ENABLED=void 0;var c=r(0),l=r(11),h=r(7),u=r(4),f=r(17),d=r(18),g=r(25),p=r(2),m=r(35),b=57344,v=63743,y=!1,k=1e3,w=!1,S={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144},C=[".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"],x=function(){function e(e,t,r,a,i,n,s,o){this.fontChar=e;this.unicode=t;this.accent=r;this.width=a;this.vmetric=i;this.operatorListId=n;this.isSpace=s;this.isInFont=o}e.prototype.matchesForCache=function(e,t,r,a,i,n,s,o){return this.fontChar===e&&this.unicode===t&&this.accent===r&&this.width===a&&this.vmetric===i&&this.operatorListId===n&&this.isSpace===s&&this.isInFont===o};return e}(),A=function(){function e(e){this._map=e}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(e){return void 0!==this._map[e]},get:function(e){return this._map[e]},charCodeOf:function(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(var r in t)if(t[r]===e)return 0|r;return-1},amend:function(e){for(var t in e)this._map[t]=e[t]}};return e}(),I=function(){function e(e,t){this.firstChar=e;this.lastChar=t}e.prototype={get length(){return this.lastChar+1-this.firstChar},forEach:function(e){for(var t=this.firstChar,r=this.lastChar;t<=r;t++)e(t,t)},has:function(e){return this.firstChar<=e&&e<=this.lastChar},get:function(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)},charCodeOf:function(e){return(0,c.isInt)(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1},amend:function(e){(0,c.error)("Should not call amend()")}};return e}(),O=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,r){var a,i;if(r instanceof Uint8Array)e.set(r,t);else if("string"==typeof r)for(a=0,i=r.length;ar;){r<<=1;a++}var i=r*t;return{range:i,entry:a,rangeShift:t*e-i}};a.prototype={toArray:function(){var i=this.sfnt,n=this.tables,s=Object.keys(n);s.sort();var o,l,h,u,f,d=s.length,g=12+16*d,p=[g];for(o=0;o>>0;p.push(g)}var m=new Uint8Array(g);for(o=0;o>>0}t(m,g+4,v);t(m,g+8,p[o]);t(m,g+12,n[f].length);g+=16}return m},addTable:function(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}};return a}(),P=new Int32Array([0,32,127,161,173,174,1536,1920,2208,4256,6016,6144,7168,7248,8192,8208,8209,8210,8232,8240,8287,8304,9676,9677,12288,12289,12644,12645,43616,43648,65520,65536]),T=function(){function e(e,t,r){var i,s,o,l=this;this.name=e;this.loadedName=r.loadedName;this.isType3Font=r.isType3Font;this.sizes=[];this.missingFile=!1;this.glyphCache=Object.create(null);this.isSerifFont=!!(r.flags&S.Serif);this.isSymbolicFont=!!(r.flags&S.Symbolic);this.isMonospace=!!(r.flags&S.FixedPitch);var g=r.type,p=r.subtype;this.type=g;this.fallbackName=this.isMonospace?"monospace":this.isSerifFont?"serif":"sans-serif";this.differences=r.differences;this.widths=r.widths;this.defaultWidth=r.defaultWidth;this.composite=r.composite;this.wideChars=r.wideChars;this.cMap=r.cMap;this.ascent=r.ascent/k;this.descent=r.descent/k;this.fontMatrix=r.fontMatrix;this.bbox=r.bbox;this.toUnicode=r.toUnicode;this.toFontChar=[];if("Type3"!==r.type){this.cidEncoding=r.cidEncoding;this.vertical=r.vertical;if(this.vertical){this.vmetrics=r.vmetrics;this.defaultVMetrics=r.defaultVMetrics}var m;if(t&&!t.isEmpty){"Type1C"===p&&("Type1"!==g&&"MMType1"!==g?B(t)?p="TrueType":g="Type1":E(t)&&(g=p="OpenType"));"CIDFontType0C"===p&&"CIDFontType0"!==g&&(g="CIDFontType0");"OpenType"===p&&(g="OpenType");"CIDFontType0"===g&&(M(t)?p="CIDFontType0":E(t)?g=p="OpenType":p="CIDFontType0C");var b;switch(g){case"MMType1":(0,c.info)("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";var v="Type1C"===p||"CIDFontType0C"===p?new F(t,r):new R(e,t,r);a(r);b=this.convert(e,v,r);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype";b=this.checkAndRepair(e,t,r);if(this.isOpenType){a(r);g="OpenType"}break;default:(0,c.error)("Font "+g+" is not supported")}this.data=b;this.fontType=n(g,p);this.fontMatrix=r.fontMatrix;this.widths=r.widths;this.defaultWidth=r.defaultWidth;this.toUnicode=r.toUnicode;this.encoding=r.baseEncoding;this.seacMap=r.seacMap;this.loading=!0}else{t&&(0,c.warn)('Font file is empty in "'+e+'" ('+this.loadedName+")");this.missingFile=!0;var y=e.replace(/[,_]/g,"-"),w=(0,f.getStdFontMap)(),C=(0,f.getNonStdFontMap)(),x=!!w[y]||!(!C[y]||!w[C[y]]);y=w[y]||C[y]||y;this.bold=-1!==y.search(/bold/gi);this.italic=-1!==y.search(/oblique/gi)||-1!==y.search(/italic/gi);this.black=-1!==e.search(/Black/g);this.remeasure=Object.keys(this.widths).length>0;if(x&&"CIDFontType2"===g&&0===r.cidEncoding.indexOf("Identity-")){var O=(0,f.getGlyphMapForStandardFonts)(),P=[];for(i in O)P[+i]=O[i];if(/Arial-?Black/i.test(e)){var T=(0,f.getSupplementalGlyphMapForArialBlack)();for(i in T)P[+i]=T[i]}this.toUnicode instanceof I||this.toUnicode.forEach(function(e,t){P[+e]=t});this.toFontChar=P;this.toUnicode=new A(P)}else if(/Symbol/i.test(y))this.toFontChar=D(u.SymbolSetEncoding,(0,h.getGlyphsUnicode)(),r.differences);else if(/Dingbats/i.test(y)){/Wingdings/i.test(e)&&(0,c.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats.");this.toFontChar=D(u.ZapfDingbatsEncoding,(0,h.getDingbatsGlyphsUnicode)(),r.differences)}else if(x)this.toFontChar=D(r.defaultEncoding,(0,h.getGlyphsUnicode)(),r.differences);else{m=(0,h.getGlyphsUnicode)();this.toUnicode.forEach(function(e,t){if(!l.composite){s=r.differences[e]||r.defaultEncoding[e];o=(0,d.getUnicodeForGlyph)(s,m);-1!==o&&(t=o)}l.toFontChar[e]=t})}this.loadedName=y.split("-")[0];this.loading=!1;this.fontType=n(g,p)}}else{for(i=0;i<256;i++)this.toFontChar[i]=this.differences[i]||r.defaultEncoding[i];this.fontType=c.FontType.TYPE3}}function t(e,t){return(e<<8)+t}function r(e,t){var r=(e<<8)+t;return 32768&r?r-65536:r}function o(e,t,r,a){return(e<<24)+(t<<16)+(r<<8)+a}function m(e){return String.fromCharCode(e>>8&255,255&e)}function T(e){e=e>32767?32767:e<-32768?-32768:e;return String.fromCharCode(e>>8&255,255&e)}function B(e){var t=e.peekBytes(4);return 65536===(0,c.readUint32)(t,0)}function E(e){var t=e.peekBytes(4);return"OTTO"===(0,c.bytesToString)(t)}function M(e){var t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}function D(e,t,r){for(var a,i=[],n=0,s=e.length;n>1;e=t||r.push({fontCharCode:0|a,glyphId:e[a]});r.sort(function(e,t){return e.fontCharCode-t.fontCharCode});for(var i=[],n=r.length,s=0;s65535?2:1,l="\0\0"+m(o)+"\0\0"+(0,c.string32)(4+8*o);for(r=s.length-1;r>=0&&!(s[r][0]<=65535);--r);var h=r+1;s[r][0]<65535&&65535===s[r][1]&&(s[r][1]=65534);var u,f,d,g,p=s[r][1]<65535?1:0,b=h+p,v=O.getSearchParams(b,2),y="",k="",w="",S="",C="",x=0;for(r=0,a=h;r0){k+="ÿÿ";y+="ÿÿ";w+="\0";S+="\0\0"}var P="\0\0"+m(2*b)+m(v.range)+m(v.entry)+m(v.rangeShift)+k+"\0\0"+y+w+S+C,T="",B="";if(o>1){l+="\0\0\n"+(0,c.string32)(4+8*o+4+P.length);T="";for(r=0,a=s.length;rt.getUint16())return!1;t.getBytes(6);if(0===t.getUint16())return!1;e.data[8]=e.data[9]=0;return!0}function _(e,t,r){r=r||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};var a=0,i=0,n=0,s=0,o=null,l=0;if(t)for(var h in t){h|=0;(o>h||!o)&&(o=h);l 123 are reserved for internal usage")}else{o=0;l=255}var f=e.bbox||[0,0,0,0],g=r.unitsPerEm||1/(e.fontMatrix||c.FONT_IDENTITY_MATRIX)[0],p=e.ascentScaled?1:g/k,b=r.ascent||Math.round(p*(e.ascent||f[3])),v=r.descent||Math.round(p*(e.descent||f[1]));v>0&&e.descent>0&&f[1]<0&&(v=-v);var y=r.yMax||b,w=-r.yMin||-v;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,c.string32)(a)+(0,c.string32)(i)+(0,c.string32)(n)+(0,c.string32)(s)+"*21*"+m(e.italicAngle?1:0)+m(o||e.firstChar)+m(l||e.lastChar)+m(b)+m(v)+"\0d"+m(y)+m(w)+"\0\0\0\0\0\0\0\0"+m(e.xHeight)+m(e.capHeight)+m(0)+m(o||e.firstChar)+"\0"}function z(e){var t=Math.floor(e.italicAngle*Math.pow(2,16));return"\0\0\0"+(0,c.string32)(t)+"\0\0\0\0"+(0,c.string32)(e.fixedPitch)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function H(e,t){t||(t=[[],[]]);var r,a,i,n,s,o=[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"],c=[];for(r=0,a=o.length;rs.length)return 0;if(!n&&f>0){a.set(s.subarray(0,u),i);a.set([0,0],i+u);a.set(s.subarray(d,v),i+u+2);v-=f;s.length-v>3&&(v=v+3&-4);return v}if(s.length-v>3){v=v+3&-4;a.set(s.subarray(0,v),i);return v}a.set(s,i);return s.length}function d(e,t){for(var r,a,i,n,s,o=e.data,l=0,h=0,u=0,f=[],d=[],g=[],p=t.tooComplexToFollowFunctions,b=!1,y=0,k=0,w=o.length;l0&&(l+=C-1)}}else{if(b||k){(0,c.warn)("TT: nested FDEFs not allowed");p=!0}b=!0;u=l;n=f.pop();t.functionsDefined[n]={data:o,i:l}}else if(!b&&!k){n=f[f.length-1];t.functionsUsed[n]=!0;if(n in t.functionsStackDeltas)f.length+=t.functionsStackDeltas[n];else if(n in t.functionsDefined&&g.indexOf(n)<0){d.push({data:o,i:l,stackTop:f.length-1});g.push(n);s=t.functionsDefined[n];if(!s){(0,c.warn)("TT: CALL non-existent function");t.hintsValid=!1;return}o=s.data;l=s.i}}if(!b&&!k){var x=S<=142?v[S]:S>=192&&S<=223?-1:S>=224?-2:0;if(S>=113&&S<=117){a=f.pop();isNaN(a)||(x=2*-a)}for(;x<0&&f.length>0;){f.pop();x++}for(;x>0;){f.push(NaN);x--}}}t.tooComplexToFollowFunctions=p;var A=[o];l>o.length&&A.push(new Uint8Array(l-o.length));if(u>h){(0,c.warn)("TT: complementing a missing function tail");A.push(new Uint8Array([34,45]))}m(e,A)}function g(e,t){if(!e.tooComplexToFollowFunctions)if(e.functionsDefined.length>t){(0,c.warn)("TT: more functions defined than expected");e.hintsValid=!1}else for(var r=0,a=e.functionsUsed.length;rt){(0,c.warn)("TT: invalid function id: "+r);e.hintsValid=!1;return}if(e.functionsUsed[r]&&!e.functionsDefined[r]){(0,c.warn)("TT: undefined function: "+r);e.hintsValid=!1;return}}}function m(e,t){if(t.length>1){var r,a,i=0;for(r=0,a=t.length;r=0&&K.has(t))||!!(J&&r>=0&&(0,c.isNum)(J[r])))}var v=[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];i=new p.Stream(new Uint8Array(i.getBytes()));var y,k,S=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "],x=function(e){return{version:(0,c.bytesToString)(e.getBytes(4)),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}(i),A=x.numTables,P=Object.create(null);P["OS/2"]=null;P.cmap=null;P.head=null;P.hhea=null;P.hmtx=null;P.maxp=null;P.name=null;P.post=null;for(var T,B=0;B>>0,a=e.getInt32()>>>0,i=e.getInt32()>>>0,n=e.pos;e.pos=e.start?e.start:0;e.skip(a);var s=e.getBytes(i);e.pos=n;if("head"===t){s[8]=s[9]=s[10]=s[11]=0;s[17]|=32}return{tag:t,checksum:r,length:i,offset:a,data:s}}(i);S.indexOf(T.tag)<0||0!==T.length&&(P[T.tag]=T)}var R=!P["CFF "];if(R){P.loca||(0,c.error)('Required "loca" table is not found');if(!P.glyf){(0,c.warn)('Required "glyf" table is not found -- trying to recover.');P.glyf={tag:"glyf",data:new Uint8Array(0)}}this.isOpenType=!1}else{if("OTTO"===x.version&&!n.composite||!P.head||!P.hhea||!P.maxp||!P.post){k=new p.Stream(P["CFF "].data);y=new F(k,n);a(n);return this.convert(e,y,n)}delete P.glyf;delete P.loca;delete P.fpgm;delete P.prep;delete P["cvt "];this.isOpenType=!0}P.maxp||(0,c.error)('Required "maxp" table is not found');i.pos=(i.start||0)+P.maxp.offset;var E=i.getInt32(),M=i.getUint16(),D=0;if(E>=65536&&P.maxp.length>=22){i.pos+=8;if(i.getUint16()>2){P.maxp.data[14]=0;P.maxp.data[15]=2}i.pos+=4;D=i.getUint16()}var L=!1;if("CIDFontType2"===n.type&&n.toUnicode&&n.toUnicode.get(0)>"\0"){L=!0;M++;P.maxp.data[4]=M>>8;P.maxp.data[5]=255&M}var N=function(e,t,r,a){var i={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};e&&d(e,i);t&&d(t,i);e&&g(i,a);if(r&&1&r.length){var n=new Uint8Array(r.length+1);n.set(r.data);r.data=n}return i.hintsValid}(P.fpgm,P.prep,P["cvt "],D);if(!N){delete P.fpgm;delete P.prep;delete P["cvt "]}!function(e,t,r,a){if(t){e.pos=(e.start?e.start:0)+t.offset;e.pos+=t.length-2;var i=e.getUint16();if(i>a){(0,c.info)("The numOfMetrics ("+i+") should not be greater than the numGlyphs ("+a+")");i=a;t.data[34]=(65280&i)>>8;t.data[35]=255&i}var n=a-i,s=n-(r.length-4*i>>1);if(s>0){var o=new Uint8Array(r.length+2*s);o.set(r.data);r.data=o}}else r&&(r.data=null)}(i,P.hhea,P.hmtx,M);P.head||(0,c.error)('Required "head" table is not found');!function(e,r,a){var i=e.data,n=o(i[0],i[1],i[2],i[3]);if(n>>16!=1){(0,c.info)("Attempting to fix invalid version in head table: "+n);i[0]=0;i[1]=1;i[2]=0;i[3]=0}var s=t(i[50],i[51]);if(s<0||s>1){(0,c.info)("Attempting to fix invalid indexToLocFormat in head table: "+s);var l=r+1;if(a===l<<1){i[50]=0;i[51]=0}else if(a===l<<2){i[50]=0;i[51]=1}else(0,c.warn)("Could not fix indexToLocFormat: "+s)}}(P.head,M,R?P.loca.length:0);var G=Object.create(null);if(R){var X=t(P.head.data[50],P.head.data[51]);G=function(e,t,r,a,i,n){var s,o,c;if(a){s=4;o=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};c=function(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}}else{s=2;o=function(e,t){return e[t]<<9|e[t+1]<<1};c=function(e,t,r){e[t]=r>>9&255;e[t+1]=r>>1&255}}var l=e.data,h=s*(1+r);if(l.length!==h){l=new Uint8Array(h);l.set(e.data.subarray(0,h));e.data=l}var u=t.data,d=u.length,g=new Uint8Array(d),p=o(l,0),m=0,b=Object.create(null);c(l,0,m);var v,y;for(v=0,y=s;vd&&(d+3&-4)===k&&(k=d);if(k>d){c(l,y,m);p=k}else{p===k&&(b[v]=!0);m+=f(u,p,k,g,m,i);c(l,y,m);p=k}}if(0===m){var w=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(v=0,y=s;vS+m)t.data=g.subarray(0,S+m);else{t.data=new Uint8Array(S+m);t.data.set(g.subarray(0,m))}t.data.set(g.subarray(0,S),m);c(e.data,l.length-s,m+S)}else t.data=g.subarray(0,m);return b}(P.loca,P.glyf,M,X,N,L)}P.hhea||(0,c.error)('Required "hhea" table is not found');if(0===P.hhea.data[10]&&0===P.hhea.data[11]){P.hhea.data[10]=255;P.hhea.data[11]=255}var V={unitsPerEm:t(P.head.data[18],P.head.data[19]),yMax:t(P.head.data[42],P.head.data[43]),yMin:r(P.head.data[38],P.head.data[39]),ascent:t(P.hhea.data[4],P.hhea.data[5]),descent:r(P.hhea.data[6],P.hhea.data[7])};this.ascent=V.ascent/V.unitsPerEm;this.descent=V.descent/V.unitsPerEm;if(P.post){(function(e,t,r){var a=(i.start?i.start:0)+e.offset;i.pos=a;var n=e.length,s=a+n,o=i.getInt32();i.getBytes(28);var l,h,u=!0;switch(o){case 65536:l=C;break;case 131072:var f=i.getUint16();if(f!==r){u=!1;break}var d=[];for(h=0;h=32768){u=!1;break}d.push(g)}if(!u)break;for(var p=[],m=[];i.pos=0&&r>>0,g=!1;if(0===u&&0===f)g=!0;else if(1===u&&0===f)g=!0;else if(3!==u||1!==f||!a&&s){if(r&&3===u&&0===f){g=!0;l=!0}}else{g=!0;r||(l=!0)}g&&(s={platformId:u,encodingId:f,offset:d});if(l)break}s&&(t.pos=n+s.offset);if(!s||-1===t.peekByte()){(0,c.warn)("Could not find a preferred cmap table.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}var p=t.getUint16();t.getUint16();t.getUint16();var m,b,v=!1,y=[];if(0===p){for(m=0;m<256;m++){var k=t.getByte();k&&y.push({charCode:m,glyphId:k})}v=!0}else if(4===p){var w=t.getUint16()>>1;t.getBytes(6);var S,C=[];for(S=0;S>1)-(w-S);i.offsetIndex=I;x=Math.max(x,I+i.end-i.start+1)}else i.offsetIndex=-1}var O=[];for(m=0;m0&&b(de,-1,-1)){Y[W]=de;ue=!0}}ue||(Y[W]=0)}}}else if(0===te&&0===re)for(B=0;Bn)){i.pos=g;var p=d.name;if(d.encoding){for(var m="",b=0,v=d.length;b=n){o+=a;for(;o=0&&(n[s]=t)}}return o(e,n,a)},getSeacs:function(e){var t,r,a=[];for(t=0,r=e.length;t>8&255,255&g)}n.charset=new l.CFFCharset(!1,0,[],d);var p=new l.CFFIndex;p.add([139,14]);for(h=0;h0;w--)k[w]-=k[w-1];b.setByName(y,k)}}n.topDict.privateDict=b;var S=new l.CFFIndex;for(h=0,u=a.length;ha?a:e}function r(e,t,r,a,i,n){var s,o,c,l,h=i*n,u=t<=8?new Uint8Array(h):t<=16?new Uint16Array(h):new Uint32Array(h),f=r/i,d=a/n,g=0,p=new Uint16Array(i),m=r;for(s=0;s>3)*r,c=e.byteLength,l=o===c;if(!a||i&&!l)if(i){n=new Uint8Array(o);n.set(e);for(s=c;s>7&1;l[f+1]=a>>6&1;l[f+2]=a>>5&1;l[f+3]=a>>4&1;l[f+4]=a>>3&1;l[f+5]=a>>2&1;l[f+6]=a>>1&1;l[f+7]=1&a;f+=8}if(f>=1}}}else{var b=0;a=0;for(f=0,r=o;f>v;l[f]=y<0?0:y>u?u:y;a&=(1<p[k+1]){b=255;break}}o[u]=b}}else(0,a.error)("Unknown mask format.");if(o)for(u=0,d=3,f=t*n;u=255?255:0|i;e[f+1]=n<=0?0:n>=255?255:0|n;e[f+2]=s<=0?0:s>=255?255:0|s}else{e[f]=255;e[f+1]=255;e[f+2]=255}}},createImageData:function(e){var t,r=this.drawWidth,n=this.drawHeight,s={width:r,height:n},o=this.numComps,c=this.width,l=this.height,h=this.bpc,u=c*o*h+7>>3;if(!e){var f;"DeviceGray"===this.colorSpace.name&&1===h?f=a.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==h||this.needsDecode||(f=a.ImageKind.RGB_24BPP);if(f&&!this.smask&&!this.mask&&r===c&&n===l){s.kind=f;t=this.getImageBytes(l*u);if(this.image instanceof i.DecodeStream)s.data=t;else{var d=new Uint8Array(t.length);d.set(t);s.data=d}if(this.needsDecode){(0,a.assert)(f===a.ImageKind.GRAYSCALE_1BPP);for(var g=s.data,p=0,m=g.length;p>3,l=this.getImageBytes(s*c),h=this.getComponents(l);if(1!==o){this.needsDecode&&this.decodeBuffer(h);i=n*s;var u=255/((1<>>0}var i=e.getContexts(t),n=1,s=a(1),o=a(1)?a(1)?a(1)?a(1)?a(1)?a(32)+4436:a(12)+340:a(8)+84:a(6)+20:a(4)+4:a(2);return 0===s?o:o>0?-o:null}function n(e,t,r){for(var a=e.getContexts("IAID"),i=1,n=0;n=E&&P=M){z=z<<1&v;for(d=0;d=0&&B=0){R=N[T][B];R&&(z|=R<=e?E<<=1:E=E<<1|x[R][F]}for(u=0;u=k||F<0||F>=y?E<<=1:E=E<<1|i[R][F]}var M=A.readBit(I,E);T[B]=M}}return x}function l(e,t,i,s,l,u,f,d,g,p,m){e&&(0,a.error)("JBIG2 error: huffman is not supported");for(var b=[],v=0,y=(0,a.log2)(i.length+s),k=m.decoder,w=m.contextCache;b.length1)x=h(e,t,S,v,0,A,1,i.concat(b),y,0,0,1,0,u,g,p,m);else{var I=n(w,k,y),O=r(w,"IARDX",k),P=r(w,"IARDY",k);x=c(S,v,g,I>1)+q,(N>>1)+j,!1,y,k)}var _,z,H,G=R-(1&p?0:L),X=T-(2&p?D:0);if(d){for(_=0;_>5&7,l=[31&o],h=t+6;if(7===o){c=536870911&(0,a.readUint32)(e,h-1);h+=3;var u=c+7>>3;l[0]=e[h++];for(;--u>0;)l.push(e[h++])}else 5!==o&&6!==o||(0,a.error)("JBIG2 error: invalid referred-to flags");r.retainBits=l;var f,g,p=r.number<=256?1:r.number<=65536?2:4,m=[];for(f=0;f>>24&255;S[3]=v.height>>16&255;S[4]=v.height>>8&255;S[5]=255&v.height;for(f=h,g=e.length;f>2&3;u.huffmanDWSelector=f>>4&3;u.bitmapSizeSelector=f>>6&1;u.aggregationInstancesSelector=f>>7&1;u.bitmapCodingContextUsed=!!(256&f);u.bitmapCodingContextRetained=!!(512&f);u.template=f>>10&3;u.refinementTemplate=f>>12&1;l+=2;if(!u.huffman){s=0===u.template?4:1;i=[];for(n=0;n>2&3);g.referenceCorner=p>>4&3;g.transposed=!!(64&p);g.combinationOperator=p>>7&3;g.defaultPixelValue=p>>9&1;g.dsOffset=p<<17>>27;g.refinementTemplate=p>>15&1;if(g.huffman){var m=(0,a.readUint16)(c,l);l+=2;g.huffmanFS=3&m;g.huffmanDS=m>>2&3;g.huffmanDT=m>>4&3;g.huffmanRefinementDW=m>>6&3;g.huffmanRefinementDH=m>>8&3;g.huffmanRefinementDX=m>>10&3;g.huffmanRefinementDY=m>>12&3;g.huffmanRefinementSizeSelector=!!(14&m)}if(g.refinement&&!g.refinementTemplate){i=[];for(n=0;n<2;n++){i.push({x:(0,a.readInt8)(c,l),y:(0,a.readInt8)(c,l+1)});l+=2}g.refinementAt=i}g.numberOfSymbolInstances=(0,a.readUint32)(c,l);l+=4;g.huffman&&(0,a.error)("JBIG2 error: huffman is not supported");r=[g,o.referredTo,c,l,h];break;case 38:case 39:var b={};b.info=d(c,l);l+=x;var v=c[l++];b.mmr=!!(1&v);b.template=v>>1&3;b.prediction=!!(8&v);if(!b.mmr){s=0===b.template?4:1;i=[];for(n=0;n>2&1;y.combinationOperator=k>>3&3;y.requiresBuffer=!!(32&k);y.combinationOperatorOverride=!!(64&k);r=[y];break;case 49:case 50:case 51:case 62:break;default:(0,a.error)("JBIG2 error: segment type "+o.typeName+"("+o.type+") is not implemented")}var w="on"+o.typeName;w in t&&t[w].apply(t,r)}function p(e,t){for(var r=0,a=e.length;r>3,r=new Uint8Array(t*e.height);if(e.defaultPixelValue)for(var a=0,i=r.length;a>3,u=o.combinationOperatorOverride?e.combinationOperator:o.combinationOperator,f=this.buffer,d=128>>(7&e.x),g=e.y*h+(e.x>>3);switch(u){case 0:for(r=0;r>=1;if(!n){n=128;s++}}g+=h}break;case 2:for(r=0;r>=1;if(!n){n=128;s++}}g+=h}break;default:(0,a.error)("JBIG2 error: operator "+u+" is not supported")}},onImmediateGenericRegion:function(e,r,a,i){var n=e.info,s=new t(r,a,i),c=o(e.mmr,n.width,n.height,e.template,e.prediction,null,e.at,s);this.drawBitmap(n,c)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(e,r,i,n,s,o){e.huffman&&(0,a.error)("JBIG2 error: huffman is not supported");var c=this.symbols;c||(this.symbols=c={});for(var h=[],u=0,f=i.length;u0&&!e[s-1];)s--;n.push({children:[],index:0});var o,c=n[0];for(r=0;r0;)c=n.pop();c.index++;n.push(c);for(;n.length<=r;){n.push(o={children:[],index:0});c.children[c.index]=o.children;c=o}i++}if(r+10){M--;return E>>M&1}E=e[t++];if(255===E){var r=e[t++];r&&(0,i.error)("JPEG error: unexpected marker "+(E<<8|r).toString(16))}M=7;return E>>>7}function p(e){for(var t=e;;){t=t[g()];if("number"==typeof t)return t;"object"!==(void 0===t?"undefined":a(t))&&(0,i.error)("JPEG error: invalid huffman sequence")}}function m(e){for(var t=0;e>0;){t=t<<1|g();e--}return t}function b(e){if(1===e)return 1===g()?1:-1;var t=m(e);return t>=1<>4;if(0!==s){i+=o;var c=h[i];e.blockData[t+c]=b(s);i++}else{if(o<15)break;i+=16}}}function y(e,t){var r=p(e.huffmanTableDC),a=0===r?0:b(r)<0)D--;else for(var r=c,a=u;r<=a;){var i=p(e.huffmanTableAC),n=15&i,s=i>>4;if(0!==n){r+=s;var o=h[r];e.blockData[t+o]=b(n)*(1<>4;if(0===r)if(o<15){D=m(o)+(1<=65488&&G<=65495))break;t+=2}N=l(e,t);if(N&&N.invalid){(0,i.warn)("decodeScan - unexpected Scan data, next marker is: "+N.invalid);t=N.offset}return t-F}function s(e,t,r){var a,n,s,o,c,l,h,y,k,w,S,C,x,A,I,O,P,T=e.quantizationTable,B=e.blockData;T||(0,i.error)("JPEG error: missing required Quantization Table.");for(var R=0;R<64;R+=8){k=B[t+R];w=B[t+R+1];S=B[t+R+2];C=B[t+R+3];x=B[t+R+4];A=B[t+R+5];I=B[t+R+6];O=B[t+R+7];k*=T[R];if(0!=(w|S|C|x|A|I|O)){w*=T[R+1];S*=T[R+2];C*=T[R+3];x*=T[R+4];A*=T[R+5];I*=T[R+6];O*=T[R+7];a=b*k+128>>8;n=b*x+128>>8;s=S;o=I;c=v*(w-O)+128>>8;y=v*(w+O)+128>>8;l=C<<4;h=A<<4;a=a+n+1>>1;n=a-n;P=s*m+o*p+128>>8;s=s*p-o*m+128>>8;o=P;c=c+h+1>>1;h=c-h;y=y+l+1>>1;l=y-l;a=a+o+1>>1;o=a-o;n=n+s+1>>1;s=n-s;P=c*g+y*d+2048>>12;c=c*d-y*g+2048>>12;y=P;P=l*f+h*u+2048>>12;l=l*u-h*f+2048>>12;h=P;r[R]=a+y;r[R+7]=a-y;r[R+1]=n+h;r[R+6]=n-h;r[R+2]=s+l;r[R+5]=s-l;r[R+3]=o+c;r[R+4]=o-c}else{P=b*k+512>>10;r[R]=P;r[R+1]=P;r[R+2]=P;r[R+3]=P;r[R+4]=P;r[R+5]=P;r[R+6]=P;r[R+7]=P}}for(var F=0;F<8;++F){k=r[F];w=r[F+8];S=r[F+16];C=r[F+24];x=r[F+32];A=r[F+40];I=r[F+48];O=r[F+56];if(0!=(w|S|C|x|A|I|O)){a=b*k+2048>>12;n=b*x+2048>>12;s=S;o=I;c=v*(w-O)+2048>>12;y=v*(w+O)+2048>>12;l=C;h=A;a=4112+(a+n+1>>1);n=a-n;P=s*m+o*p+2048>>12;s=s*p-o*m+2048>>12;o=P;c=c+h+1>>1;h=c-h;y=y+l+1>>1;l=y-l;a=a+o+1>>1;o=a-o;n=n+s+1>>1;s=n-s;P=c*g+y*d+2048>>12;c=c*d-y*g+2048>>12;y=P;P=l*f+h*u+2048>>12;l=l*u-h*f+2048>>12;h=P;k=a+y;O=a-y;w=n+h;I=n-h;S=s+l;A=s-l;C=o+c;x=o-c;k=k<16?0:k>=4080?255:k>>4;w=w<16?0:w>=4080?255:w>>4;S=S<16?0:S>=4080?255:S>>4;C=C<16?0:C>=4080?255:C>>4;x=x<16?0:x>=4080?255:x>>4;A=A<16?0:A>=4080?255:A>>4;I=I<16?0:I>=4080?255:I>>4;O=O<16?0:O>=4080?255:O>>4;B[t+F]=k;B[t+F+8]=w;B[t+F+16]=S;B[t+F+24]=C;B[t+F+32]=x;B[t+F+40]=A;B[t+F+48]=I;B[t+F+56]=O}else{P=b*k+8192>>14;P=P<-2040?0:P>=2024?255:P+2056>>4;B[t+F]=P;B[t+F+8]=P;B[t+F+16]=P;B[t+F+24]=P;B[t+F+32]=P;B[t+F+40]=P;B[t+F+48]=P;B[t+F+56]=P}}}function o(e,t){for(var a=t.blocksPerLine,i=t.blocksPerColumn,n=new Int16Array(64),o=0;o=255?255:e}function l(e,t,r){function a(t){return e[t]<<8|e[t+1]}var i=e.length-1,n=r=i)return null;var s=a(t);if(s>=65472&&s<=65534)return{invalid:null,marker:s,offset:t};for(var o=a(n);!(o>=65472&&o<=65534);){if(++n>=i)return null;o=a(n)}return{invalid:s.toString(16),marker:o,offset:n}}var h=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]),u=4017,f=799,d=3406,g=2276,p=1567,m=3784,b=5793,v=2896;e.prototype={parse:function(e){function r(){var t=e[c]<<8|e[c+1];c+=2;return t}var a,s,c=0,u=null,f=null,d=[],g=[],p=[],m=r();65496!==m&&(0,i.error)("JPEG error: SOI not found");m=r();for(;65497!==m;){var b,v,y;switch(m){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 k=function(){var t=r(),a=c+t-2,n=l(e,a,c);if(n&&n.invalid){(0,i.warn)("readDataBlock - incorrect length, next marker is: "+n.invalid);a=n.offset}var s=e.subarray(c,a);c+=s.length;return s}();65504===m&&74===k[0]&&70===k[1]&&73===k[2]&&70===k[3]&&0===k[4]&&(u={version:{major:k[5],minor:k[6]},densityUnits:k[7],xDensity:k[8]<<8|k[9],yDensity:k[10]<<8|k[11],thumbWidth:k[12],thumbHeight:k[13],thumbData:k.subarray(14,14+3*k[12]*k[13])});65518===m&&65===k[0]&&100===k[1]&&111===k[2]&&98===k[3]&&101===k[4]&&(f={version:k[5]<<8|k[6],flags0:k[7]<<8|k[8],flags1:k[9]<<8|k[10],transformCode:k[11]});break;case 65499:for(var w,S=r(),C=S+c-2;c>4==0)for(v=0;v<64;v++){w=h[v];A[w]=e[c++]}else if(x>>4==1)for(v=0;v<64;v++){w=h[v];A[w]=r()}else(0,i.error)("JPEG error: DQT - invalid table spec");d[15&x]=A}break;case 65472:case 65473:case 65474:a&&(0,i.error)("JPEG error: Only single frame JPEGs supported");r();a={};a.extended=65473===m;a.progressive=65474===m;a.precision=e[c++];a.scanLines=r();a.samplesPerLine=r();a.components=[];a.componentIds={};var I,O=e[c++],P=0,T=0;for(b=0;b>4,R=15&e[c+1];P>4==0?p:g)[15&M]=t(D,U)}break;case 65501:r();s=r();break;case 65498:r();var N,q=e[c++],j=[];for(b=0;b>4];N.huffmanTableAC=g[15&z];j.push(N)}var H=e[c++],G=e[c++],X=e[c++],V=n(e,c,a,j,s,H,G,X>>4,15&X);c+=V;break;case 65535:255!==e[c]&&c--;break;default:if(255===e[c-3]&&e[c-2]>=192&&e[c-2]<=254){c-=3;break}(0,i.error)("JPEG error: unknown marker "+m.toString(16))}m=r()}this.width=a.samplesPerLine;this.height=a.scanLines;this.jfif=u;this.adobe=f;this.components=[];for(b=0;b>8)+k[h+1];return v},_isColorConversionNeeded:function(){return!(!this.adobe||!this.adobe.transformCode)||(3===this.numComponents?!(!this.adobe&&0===this.colorTransform):!this.adobe&&1===this.colorTransform)},_convertYccToRgb:function(e){for(var t,r,a,i=0,n=e.length;i=0?255:l<=s?0:255+l*(1/255/255)|0;e[n++]=h>=0?255:h<=s?0:255+h*(1/255/255)|0;e[n++]=u>=0?255:u<=s?0:255+u*(1/255/255)|0}return e},getData:function(e,t,r){this.numComponents>4&&(0,i.error)("JPEG error: Unsupported color mode");var a=this._getLinearizedBlockData(e,t);if(1===this.numComponents&&r){for(var n=a.length,s=new Uint8Array(3*n),o=0,c=0;c>>8;r[i++]=255&n}}}else{if(!("object"===(void 0===e?"undefined":a(e))&&"byteLength"in e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");r=e;i=r.byteLength}var s=i>>2,o=i-4*s,c=new Uint32Array(r.buffer,0,s),l=0,h=0,u=this.h1,f=this.h2,d=3432918353,g=461845907;for(t=0;t>>17;l=l*g&4294901760|13715*l&65535;u^=l;u=u<<13|u>>>19;u=5*u+3864292196}else{h=c[t];h=h*d&4294901760|11601*h&65535;h=h<<15|h>>>17;h=h*g&4294901760|13715*h&65535;f^=h;f=f<<13|f>>>19;f=5*f+3864292196}l=0;switch(o){case 3:l^=r[4*s+2]<<16;case 2:l^=r[4*s+1]<<8;case 1:l^=r[4*s];l=l*d&4294901760|11601*l&65535;l=l<<15|l>>>17;l=l*g&4294901760|13715*l&65535;1&s?u^=l:f^=l}this.h1=u;this.h2=f;return this},hexdigest:function(){var e=this.h1,t=this.h2;e^=t>>>1;e=3981806797*e&4294901760|36045*e&65535;t=4283543511*t&4294901760|(2950163797*(t<<16|e>>>16)&4294901760)>>>16;e^=t>>>1;e=444984403*e&4294901760|60499*e&65535;t=3301882366*t&4294901760|(3120437893*(t<<16|e>>>16)&4294901760)>>>16;e^=t>>>1;for(var r=0,a=[e,t],i="";r>>0).toString(16);n.length<8;)n="0"+n;i+=n}return i}};return t}();t.MurmurHash3_64=i},function(e,t,r){"use strict";function a(e,t,r){return["TilingPattern",r,e,t.getArray("Matrix"),t.getArray("BBox"),t.get("XStep"),t.get("YStep"),t.get("PaintType"),t.get("TilingType")]}Object.defineProperty(t,"__esModule",{value:!0});t.getTilingPatternIR=t.Pattern=void 0;var i=r(0),n=r(3),s=r(1),o=r(6),c={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7},l=function(){function e(){(0,i.error)("should not call Pattern constructor")}e.prototype={getPattern:function(e){(0,i.error)("Should not call Pattern.getStyle: "+e)}};e.parseShading=function(e,t,r,a,n){var o=(0,s.isStream)(e)?e.dict:e,l=o.get("ShadingType");try{switch(l){case c.AXIAL:case c.RADIAL:return new h.RadialAxial(o,t,r,a);case c.FREE_FORM_MESH:case c.LATTICE_FORM_MESH:case c.COONS_PATCH_MESH:case c.TENSOR_PATCH_MESH:return new h.Mesh(e,t,r,a);default:throw new Error("Unsupported ShadingType: "+l)}}catch(e){if(e instanceof i.MissingDataException)throw e;n.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.shadingPattern});(0,i.warn)(e);return new h.Dummy}};return e}(),h={};h.SMALL_NUMBER=1e-6;h.RadialAxial=function(){function e(e,t,r,a){this.matrix=t;this.coordsArr=e.getArray("Coords");this.shadingType=e.get("ShadingType");this.type="Pattern";var s=e.get("ColorSpace","CS");s=n.ColorSpace.parse(s,r,a);this.cs=s;var l=0,u=1;if(e.has("Domain")){var f=e.getArray("Domain");l=f[0];u=f[1]}var d=!1,g=!1;if(e.has("Extend")){var p=e.getArray("Extend");d=p[0];g=p[1]}if(!(this.shadingType!==c.RADIAL||d&&g)){var m=this.coordsArr[0],b=this.coordsArr[1],v=this.coordsArr[2],y=this.coordsArr[3],k=this.coordsArr[4],w=this.coordsArr[5],S=Math.sqrt((m-y)*(m-y)+(b-k)*(b-k));v<=w+S&&w<=v+S&&(0,i.warn)("Unsupported radial gradient.")}this.extendStart=d;this.extendEnd=g;var C=e.get("Function"),x=o.PDFFunction.parseArray(r,C),A=u-l,I=A/10,O=this.colorStops=[];if(l>=u||I<=0)(0,i.info)("Bad shading domain.");else{for(var P,T=new Float32Array(s.numComps),B=new Float32Array(1),R=l;R<=u;R+=I){B[0]=R;x(B,0,T,0);P=s.getRgb(T,0);var F=i.Util.makeCssRgb(P[0],P[1],P[2]);O.push([(R-l)/A,F])}var E="transparent";if(e.has("Background")){P=s.getRgb(e.get("Background"),0);E=i.Util.makeCssRgb(P[0],P[1],P[2])}if(!d){O.unshift([0,E]);O[1][0]+=h.SMALL_NUMBER}if(!g){O[O.length-1][0]-=h.SMALL_NUMBER;O.push([1,E])}this.colorStops=O}}e.prototype={getIR:function(){var e,t,r,a,n,s=this.coordsArr,o=this.shadingType;if(o===c.AXIAL){t=[s[0],s[1]];r=[s[2],s[3]];a=null;n=null;e="axial"}else if(o===c.RADIAL){t=[s[0],s[1]];r=[s[3],s[4]];a=s[2];n=s[5];e="radial"}else(0,i.error)("getPattern type unknown: "+o);var l=this.matrix;if(l){t=i.Util.applyTransform(t,l);r=i.Util.applyTransform(r,l);if(o===c.RADIAL){var h=i.Util.singularValueDecompose2dScale(l);a*=h[0];n*=h[1]}}return["RadialAxial",e,this.colorStops,t,r,a,n]}};return e}();h.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 a=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(a):this.tmpCompsBuf}function t(e,t){for(var r=e.coords,a=e.colors,n=[],s=[],o=0;t.hasData;){var c=t.readFlag(),l=t.readCoordinate(),h=t.readComponents();if(0===o){(0,i.assert)(0<=c&&c<=2,"Unknown type4 flag");switch(c){case 0:o=3;break;case 1:s.push(s[s.length-2],s[s.length-1]);o=1;break;case 2:s.push(s[s.length-3],s[s.length-1]);o=1}n.push(c)}s.push(r.length);r.push(l);a.push(h);o--;t.align()}e.figures.push({type:"triangles",coords:new Int32Array(s),colors:new Int32Array(s)})}function r(e,t,r){for(var a=e.coords,i=e.colors,n=[];t.hasData;){var s=t.readCoordinate(),o=t.readComponents();n.push(a.length);a.push(s);i.push(o)}e.figures.push({type:"lattice",coords:new Int32Array(n),colors:new Int32Array(n),verticesPerRow:r})}function a(e,t){var r=e.figures[t];(0,i.assert)("patch"===r.type,"Unexpected patch mesh figure");var a=e.coords,n=e.colors,s=r.coords,o=r.colors,c=Math.min(a[s[0]][0],a[s[3]][0],a[s[12]][0],a[s[15]][0]),l=Math.min(a[s[0]][1],a[s[3]][1],a[s[12]][1],a[s[15]][1]),h=Math.max(a[s[0]][0],a[s[3]][0],a[s[12]][0],a[s[15]][0]),u=Math.max(a[s[0]][1],a[s[3]][1],a[s[12]][1],a[s[15]][1]),f=Math.ceil((h-c)*m/(e.bounds[2]-e.bounds[0]));f=Math.max(g,Math.min(p,f));var d=Math.ceil((u-l)*m/(e.bounds[3]-e.bounds[1]));d=Math.max(g,Math.min(p,d));for(var v=f+1,y=new Int32Array((d+1)*v),k=new Int32Array((d+1)*v),w=0,S=new Uint8Array(3),C=new Uint8Array(3),x=n[o[0]],A=n[o[1]],I=n[o[2]],O=n[o[3]],P=b(d),T=b(f),B=0;B<=d;B++){S[0]=(x[0]*(d-B)+I[0]*B)/d|0;S[1]=(x[1]*(d-B)+I[1]*B)/d|0;S[2]=(x[2]*(d-B)+I[2]*B)/d|0;C[0]=(A[0]*(d-B)+O[0]*B)/d|0;C[1]=(A[1]*(d-B)+O[1]*B)/d|0;C[2]=(A[2]*(d-B)+O[2]*B)/d|0;for(var R=0;R<=f;R++,w++)if(0!==B&&B!==d||0!==R&&R!==f){for(var F=0,E=0,M=0,D=0;D<=3;D++)for(var L=0;L<=3;L++,M++){var U=P[B][D]*T[R][L];F+=a[s[M]][0]*U;E+=a[s[M]][1]*U}y[w]=a.length;a.push([F,E]);k[w]=n.length;var N=new Uint8Array(3);N[0]=(S[0]*(f-R)+C[0]*R)/f|0;N[1]=(S[1]*(f-R)+C[1]*R)/f|0;N[2]=(S[2]*(f-R)+C[2]*R)/f|0;n.push(N)}}y[0]=s[0];k[0]=o[0];y[f]=s[3];k[f]=o[1];y[v*d]=s[12];k[v*d]=o[2];y[v*d+f]=s[15];k[v*d+f]=o[3];e.figures[t]={type:"lattice",coords:y,colors:k,verticesPerRow:v}}function l(e,t){for(var r=e.coords,a=e.colors,n=new Int32Array(16),s=new Int32Array(4);t.hasData;){var o=t.readFlag();(0,i.assert)(0<=o&&o<=3,"Unknown type6 flag");var c,l,h=r.length;for(c=0,l=0!==o?8:12;co?o:t;r=r>c?c:r;a=a=2,"Invalid VerticesPerRow");r(this,S,x);break;case c.COONS_PATCH_MESH:l(this,S);C=!0;break;case c.TENSOR_PATCH_MESH:h(this,S);C=!0;break;default:(0,i.error)("Unsupported mesh type.")}if(C){u(this);for(var A=0,I=this.figures.length;A0)return!0;var e=this.stream.getByte();if(e<0)return!1;this.buffer=e;this.bufferLength=8;return!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 a=this.stream.getByte();this.buffer=a&(1<>r)>>>0}if(8===e&&0===r)return this.stream.getByte();for(;r>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),a=this.context.decode,i=e<32?1/((1<=0&&(t>=65&&t<=90||t>=97&&t<=122);)r.push(String.fromCharCode(t));var n=r.join("");switch(n.toLowerCase()){case"if":return o.IF;case"ifelse":return o.IFELSE;default:return o.getOperator(n)}},getNumber:function(){var e=this.currentChar,t=this.strBuf;t.length=0;t[0]=String.fromCharCode(e);for(;(e=this.nextChar())>=0&&(e>=48&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));var r=parseFloat(t.join(""));isNaN(r)&&(0,a.error)("Invalid floating point number: "+r);return r}};return e}();t.PostScriptLexer=c;t.PostScriptParser=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Type1Parser=void 0;var a=r(0),i=r(4),n=r(2),s=function(){function e(){this.width=0;this.lsb=0;this.flexing=!1;this.output=[];this.stack=[]}var t={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};e.prototype={convert:function(e,r,i){for(var n,s,o,c=e.length,l=!1,h=0;ha)return!0;for(var i=a-e,n=i;n>8&255,255&s);else{s=65536*s|0;this.output.push(255,s>>24&255,s>>16&255,s>>8&255,255&s)}}this.output.push.apply(this.output,t);r?this.stack.splice(i,e):this.stack.length=0;return!1}};return e}(),o=function(){function e(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function t(e,t,r){if(r>=e.length)return new Uint8Array(0);var a,i,n=0|t;for(a=0;a>8;n=52845*(c+n)+22719&65535}return o}function r(t,r,a){var i,n,s=0|r,o=t.length,c=o>>>1,l=new Uint8Array(c);for(i=0,n=0;i>8;s=52845*(f+s)+22719&65535}}}return Array.prototype.slice.call(l,a,n)}function o(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}function c(a,i,s){if(i){var o=a.getBytes(),c=!(e(o[0])&&e(o[1])&&e(o[2])&&e(o[3]));a=new n.Stream(c?t(o,l,4):r(o,l,4))}this.seacAnalysisEnabled=!!s;this.stream=a;this.nextChar()}var l=55665;c.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,a.isSpace)(t))break;t=this.nextChar()}if(o(t)){this.nextChar();return String.fromCharCode(t)}var r="";do{r+=String.fromCharCode(t);t=this.nextChar()}while(t>=0&&!(0,a.isSpace)(t)&&!o(t));return r},extractFontProgram:function(){var e=this.stream,r=[],a=[],i=Object.create(null);i.lenIV=4;for(var n,o,c,l,h,u={subrs:[],charstrings:[],properties:{privateData:i}};null!==(n=this.getToken());)if("/"===n){n=this.getToken();switch(n){case"CharStrings":this.getToken();this.getToken();this.getToken();this.getToken();for(;;){n=this.getToken();if(null===n||"end"===n)break;if("/"===n){var f=this.getToken();o=this.readInt();this.getToken();c=e.makeSubStream(e.pos,o);l=u.properties.privateData.lenIV;h=t(c.getBytes(),4330,l);e.skip(o);this.nextChar();n=this.getToken();"noaccess"===n&&this.getToken();a.push({glyph:f,encoded:h})}}break;case"Subrs":this.readInt();this.getToken();for(;"dup"===(n=this.getToken());){var d=this.readInt();o=this.readInt();this.getToken();c=e.makeSubStream(e.pos,o);l=u.properties.privateData.lenIV;h=t(c.getBytes(),4330,l);e.skip(o);this.nextChar();n=this.getToken();"noaccess"===n&&this.getToken();r[d]=h}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":var g=this.readNumberArray();(g.length>0&&g.length,1)||(u.properties.privateData[n]=g);break;case"StemSnapH":case"StemSnapV":u.properties.privateData[n]=this.readNumberArray();break;case"StdHW":case"StdVW":u.properties.privateData[n]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":u.properties.privateData[n]=this.readNumber();break;case"ForceBold":u.properties.privateData[n]=this.readBoolean()}}for(var p=0;p=0,c=/Chrome\/(39|40)\./.test(a),l=a.indexOf("CriOS")>=0,h=a.indexOf("Trident")>=0,u=/\b(iPad|iPhone|iPod)(?=;)/.test(a),f=a.indexOf("Opera")>=0,d=/Safari\//.test(a)&&!/(Chrome\/|Android\s)/.test(a),g="object"===("undefined"==typeof window?"undefined":t(window))&&"object"===("undefined"==typeof document?"undefined":t(document));"undefined"==typeof PDFJS&&(r.PDFJS={});PDFJS.compatibilityChecked=!0;!function(){function e(e,t){return new o(this.slice(e,t))}function a(e,t){arguments.length<2&&(t=0);for(var r=0,a=e.length;r>>0},set:function(t){var r=this.buffer,a=e<<2;r[a]=255&t;r[a+1]=t>>8&255;r[a+2]=t>>16&255;r[a+3]=t>>>24&255}}}function s(e){for(;c>2,l=(3&n)<<4|s>>4,h=r+1>6:64,u=r+2>(-2*a&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return n}}}();!function(){void 0===Function.prototype.bind&&(Function.prototype.bind=function(e){var t=this,r=Array.prototype.slice.call(arguments,1);return function(){var a=r.concat(Array.prototype.slice.call(arguments));return t.apply(e,a)}})}();!function(){if(g){"dataset"in document.createElement("div")||Object.defineProperty(HTMLElement.prototype,"dataset",{get:function(){if(this._dataset)return this._dataset;for(var e={},t=0,r=this.attributes.length;t=0&&a&&n.splice(s,1);e.className=n.join(" ");return s>=0}if(g){if(!("classList"in document.createElement("div"))){var t={add:function(t){e(this.element,t,!0,!1)},contains:function(t){return e(this.element,t,!1,!1)},remove:function(t){e(this.element,t,!1,!0)},toggle:function(t){e(this.element,t,!0,!0)}};Object.defineProperty(HTMLElement.prototype,"classList",{get:function(){if(this._classList)return this._classList;var e=Object.create(t,{element:{value:this,writable:!1,enumerable:!0}});Object.defineProperty(this,"_classList",{value:e,writable:!1,enumerable:!1});return e},enumerable:!0})}}}();!function(){if(!("undefined"==typeof importScripts||"console"in r)){var e={},t={log:function(){var e=Array.prototype.slice.call(arguments);r.postMessage({targetName:"main",action:"console_log",data:e})},error:function(){var e=Array.prototype.slice.call(arguments);r.postMessage({targetName:"main",action:"console_error",data:e})},time:function(t){e[t]=Date.now()},timeEnd:function(t){var r=e[t];if(!r)throw new Error("Unknown timer name "+t);this.log("Timer:",t,Date.now()-r)}};r.console=t}}();!function(){if(g)if("console"in window)if("bind"in console.log);else{console.log=function(e){return function(t){return e(t)}}(console.log);console.error=function(e){return function(t){return e(t)}}(console.error);console.warn=function(e){return function(t){return e(t)}}(console.warn)}else window.console={log:function(){},error:function(){},warn:function(){}}}();!function(){function e(e){t(e.target)&&e.stopPropagation()}function t(e){return e.disabled||e.parentNode&&t(e.parentNode)}f&&document.addEventListener("click",e,!0)}();!function(){(h||l)&&(PDFJS.disableCreateObjectURL=!0)}();!function(){"undefined"!=typeof navigator&&("language"in navigator||(PDFJS.locale=navigator.userLanguage||"en-US"))}();!function(){if(d||n||c||u){PDFJS.disableRange=!0;PDFJS.disableStream=!0}}();!function(){g&&(history.pushState&&!n||(PDFJS.disableHistory=!0))}();!function(){if(g)if(window.CanvasPixelArray)"function"!=typeof window.CanvasPixelArray.prototype.set&&(window.CanvasPixelArray.prototype.set=function(e){for(var t=0,r=this.length;t0;){var r=this.handlers.shift(),a=r.thisPromise._status,i=r.thisPromise._value;try{if(1===a)"function"==typeof r.onResolve&&(i=r.onResolve(i));else if("function"==typeof r.onReject){i=r.onReject(i);a=1;r.thisPromise._unhandledRejection&&this.removeUnhandeledRejection(r.thisPromise)}}catch(t){a=e;i=t}r.nextPromise._updateStatus(a,i);if(Date.now()>=t)break}this.handlers.length>0?setTimeout(this.runHandlers.bind(this),0):this.running=!1},addUnhandledRejection:function(e){this.unhandledRejections.push({promise:e,time:Date.now()});this.scheduleRejectionCheck()},removeUnhandeledRejection:function(e){e._unhandledRejection=!1;for(var t=0;t500){var a=e.unhandledRejections[r].promise._value,i="Unhandled rejection: "+a;a.stack&&(i+="\n"+a.stack);try{throw new Error(i)}catch(e){console.warn(i)}e.unhandledRejections.splice(r);r--}e.unhandledRejections.length&&e.scheduleRejectionCheck()},500)}}},a=function(e){this._status=0;this._handlers=[];try{e.call(this,this._resolve.bind(this),this._reject.bind(this))}catch(e){this._reject(e)}};a.all=function(t){function r(t){if(s._status!==e){c=[];n(t)}}var i,n,s=new a(function(e,t){i=e;n=t}),o=t.length,c=[];if(0===o){i(c);return s}for(var l=0,h=t.length;l32&&t<127&&-1===[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function s(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1===[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function o(t,r,o){function c(e){y.push(e)}var l=r||"scheme start",h=0,u="",b=!1,v=!1,y=[];e:for(;(t[h-1]!==g||0===h)&&!this._isInvalid;){var k=t[h];switch(l){case"scheme start":if(!k||!p.test(k)){if(r){c("Invalid scheme.");break e}u="";l="no scheme";continue}u+=k.toLowerCase();l="scheme";break;case"scheme":if(k&&m.test(k))u+=k.toLowerCase();else{if(":"!==k){if(r){if(k===g)break e;c("Code point not allowed in scheme: "+k);break e}u="";h=0;l="no scheme";continue}this._scheme=u;u="";if(r)break e;e(this._scheme)&&(this._isRelative=!0);l="file"===this._scheme?"relative":this._isRelative&&o&&o._scheme===this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":if("?"===k){this._query="?";l="query"}else if("#"===k){this._fragment="#";l="fragment"}else k!==g&&"\t"!==k&&"\n"!==k&&"\r"!==k&&(this._schemeData+=n(k));break;case"no scheme":if(o&&e(o._scheme)){l="relative";continue}c("Missing scheme.");a.call(this);break;case"relative or authority":if("/"!==k||"/"!==t[h+1]){c("Expected /, got: "+k);l="relative";continue}l="authority ignore slashes";break;case"relative":this._isRelative=!0;"file"!==this._scheme&&(this._scheme=o._scheme);if(k===g){this._host=o._host;this._port=o._port;this._path=o._path.slice();this._query=o._query;this._username=o._username;this._password=o._password;break e}if("/"===k||"\\"===k){"\\"===k&&c("\\ is an invalid code point.");l="relative slash"}else if("?"===k){this._host=o._host;this._port=o._port;this._path=o._path.slice();this._query="?";this._username=o._username;this._password=o._password;l="query"}else{if("#"!==k){var w=t[h+1],S=t[h+2];if("file"!==this._scheme||!p.test(k)||":"!==w&&"|"!==w||S!==g&&"/"!==S&&"\\"!==S&&"?"!==S&&"#"!==S){this._host=o._host;this._port=o._port;this._username=o._username;this._password=o._password;this._path=o._path.slice();this._path.pop()}l="relative path";continue}this._host=o._host;this._port=o._port;this._path=o._path.slice();this._query=o._query;this._fragment="#";this._username=o._username;this._password=o._password;l="fragment"}break;case"relative slash":if("/"!==k&&"\\"!==k){if("file"!==this._scheme){this._host=o._host;this._port=o._port;this._username=o._username;this._password=o._password}l="relative path";continue}"\\"===k&&c("\\ is an invalid code point.");l="file"===this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!==k){c("Expected '/', got: "+k);l="authority ignore slashes";continue}l="authority second slash";break;case"authority second slash":l="authority ignore slashes";if("/"!==k){c("Expected '/', got: "+k);continue}break;case"authority ignore slashes":if("/"!==k&&"\\"!==k){l="authority";continue}c("Expected authority, got: "+k);break;case"authority":if("@"===k){if(b){c("@ already seen.");u+="%40"}b=!0;for(var C=0;C