>>10)+m[T-7]+(E(g=m[T-15],7)^E(g,18)^g>>>3)+m[T-16];for(var b,v,y=n,w=i,k=o,S=s,x=c,C=l,A=u,I=h,T=0;T<64;++T)b=I+(E(x,6)^E(x,11)^E(x,25))+(x&C^~x&A)+O[T]+m[T],v=(E(y,2)^E(y,13)^E(y,22))+(y&w^y&k^w&k),I=A,A=C,C=x,x=S+b|0,S=k,k=w,w=y,y=b+v|0;n=n+y|0,i=i+w|0,o=o+k|0,s=s+S|0,c=c+x|0,l=l+C|0,u=u+A|0,h=h+I|0}return new Uint8Array([n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,s>>24&255,s>>16&255,s>>8&255,255&s,c>>24&255,c>>16&255,c>>8&255,255&c,l>>24&255,l>>16&255,l>>8&255,255&l,u>>24&255,u>>16&255,u>>8&255,255&u,h>>24&255,h>>16&255,h>>8&255,255&h])});function E(e,t){return e>>>t|e<<32-t}t.calculateSHA256=p;var q,g=(q=[new j(1116352408,3609767458),new j(1899447441,602891725),new j(3049323471,3964484399),new j(3921009573,2173295548),new j(961987163,4081628472),new j(1508970993,3053834265),new j(2453635748,2937671579),new j(2870763221,3664609560),new j(3624381080,2734883394),new j(310598401,1164996542),new j(607225278,1323610764),new j(1426881987,3590304994),new j(1925078388,4068182383),new j(2162078206,991336113),new j(2614888103,633803317),new j(3248222580,3479774868),new j(3835390401,2666613458),new j(4022224774,944711139),new j(264347078,2341262773),new j(604807628,2007800933),new j(770255983,1495990901),new j(1249150122,1856431235),new j(1555081692,3175218132),new j(1996064986,2198950837),new j(2554220882,3999719339),new j(2821834349,766784016),new j(2952996808,2566594879),new j(3210313671,3203337956),new j(3336571891,1034457026),new j(3584528711,2466948901),new j(113926993,3758326383),new j(338241895,168717936),new j(666307205,1188179964),new j(773529912,1546045734),new j(1294757372,1522805485),new j(1396182291,2643833823),new j(1695183700,2343527390),new j(1986661051,1014477480),new j(2177026350,1206759142),new j(2456956037,344077627),new j(2730485921,1290863460),new j(2820302411,3158454273),new j(3259730800,3505952657),new j(3345764771,106217008),new j(3516065817,3606008344),new j(3600352804,1432725776),new j(4094571909,1467031594),new j(275423344,851169720),new j(430227734,3100823752),new j(506948616,1363258195),new j(659060556,3750685593),new j(883997877,3785050280),new j(958139571,3318307427),new j(1322822218,3812723403),new j(1537002063,2003034995),new j(1747873779,3602036899),new j(1955562222,1575990012),new j(2024104815,1125592928),new j(2227730452,2716904306),new j(2361852424,442776044),new j(2428436474,593698344),new j(2756734187,3733110249),new j(3204031479,2999351573),new j(3329325298,3815920427),new j(3391569614,3928383900),new j(3515267271,566280711),new j(3940187606,3454069534),new j(4118630271,4000239992),new j(116418474,1914138554),new j(174292421,2731055270),new j(289380356,3203993006),new j(460393269,320620315),new j(685471733,587496836),new j(852142971,1086792851),new j(1017036298,365543100),new j(1126000580,2618297676),new j(1288033470,3409855158),new j(1501505948,4234509866),new j(1607167915,987167468),new j(1816402316,1246189591)],function(e,t,r,a){for(var n,i,o,s,c,l,u,h,f,d=(a=!!a)?(n=new j(3418070365,3238371032),i=new j(1654270250,914150663),o=new j(2438529370,812702999),s=new j(355462360,4144912697),c=new j(1731405415,4290775857),l=new j(2394180231,1750603025),u=new j(3675008525,1694076839),new j(1203062813,3204075428)):(n=new j(1779033703,4089235720),i=new j(3144134277,2227873595),o=new j(1013904242,4271175723),s=new j(2773480762,1595750129),c=new j(1359893119,2917565137),l=new j(2600822924,725511199),u=new j(528734635,4215389547),new j(1541459225,327033209)),p=128*Math.ceil((r+17)/128),g=new Uint8Array(p),m=0;m>>29&255,g[m++]=r>>21&255,g[m++]=r>>13&255,g[m++]=r>>5&255,g[m++]=r<<3&255;var b=new Array(80);for(m=0;m<80;m++)b[m]=new j(0,0);var v,y,w,k,S,x,C,A,I,T,O=new j(0,0),E=new j(0,0),P=new j(0,0),F=new j(0,0),R=new j(0,0),_=new j(0,0),B=new j(0,0),M=new j(0,0),L=new j(0,0),D=new j(0,0),N=new j(0,0),U=new j(0,0);for(m=0;m>>8^d<<24^p>>>16^p<<16^g>>>24^g<<8;n[h]=m>>>24&255,n[h+1]=m>>16&255,n[h+2]=m>>8&255,n[h+3]=255&m}}m=n[13],n[13]=n[9],n[9]=n[5],n[5]=n[1],n[1]=m,m=n[14],r=n[10],n[14]=n[6],n[10]=n[2],n[6]=m,n[2]=r,m=n[15],r=n[11],a=n[7],n[15]=n[3],n[11]=m,n[7]=r,n[3]=a;for(var b=0;b<16;++b)n[b]=this._inv_s[n[b]],n[b]^=t[b];return n}},{key:\"_encrypt\",value:function(e,t){var r,a,n=this._s,i=new Uint8Array(16);i.set(e);for(var o=0;o<16;++o)i[o]^=t[o];for(var s=1;si-32;){for(var o=e.length+a.length+r.length,s=new Uint8Array(64*o),c=B(e,a),c=B(c,r),l=0,u=0;l<64;l++,u+=o)s.set(c,u);for(var n=new w(a.subarray(0,16)).encrypt(s,a.subarray(16,32)),h=0,f=0;f<16;f++)h*=1,h%=3,h+=(n[f]>>>0)%3,h%=3;0===h?a=p(n,0,n.length):1===h?a=m(n,0,n.length):2===h&&(a=g(n,0,n.length)),i++}return a.subarray(0,32)}function L(){}function D(e,t){if(e.length!==t.length)return!1;for(var r=0;r>8&255,l[u++]=n>>16&255,l[u++]=n>>>24&255,v=0,m=e.length;v>3;if(3<=i)for(v=0;v<50;++v)h=I(h,0,f);var d=h.subarray(0,f);if(3<=i){for(u=0;u<32;++u)l[u]=z[u];for(v=0,m=e.length;v>3;if(3<=r)for(f=0;f<50;++f)s=I(s,0,s.length);if(3<=r)for(var l,u=t,h=new Uint8Array(c),f=19;0<=f;f--){for(l=0;l>8&255,n[i++]=e>>16&255,n[i++]=255&t,n[i++]=t>>8&255,a&&(n[i++]=115,n[i++]=65,n[i++]=108,n[i++]=84),I(n,0,i).subarray(0,Math.min(r.length+5,16))}function V(e,t,r,a,n){if(!(0,C.isName)(t))throw new x.FormatError(\"Invalid crypt filter name.\");var i,t=e.get(t.name);if(!(i=null!=t?t.get(\"CFM\"):i)||\"None\"===i.name)return function(){return new b};if(\"V2\"===i.name)return function(){return new A(X(r,a,n,!1))};if(\"AESV2\"===i.name)return function(){return new w(X(r,a,n,!0))};if(\"AESV3\"===i.name)return function(){return new T(n)};throw new x.FormatError(\"Unknown crypto method\")}t.CipherTransformFactory=r},function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.ColorSpace=void 0;var f=r(5),d=r(198);function n(e){return(n=\"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})(e)}function c(e,t){if(\"function\"!=typeof t&&null!==t)throw new TypeError(\"Super expression must either be null or a function\");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(r){var a=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=i(r);return e=a?(e=i(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),t=this,!(e=e)||\"object\"!==n(e)&&\"function\"!=typeof e?function(e){if(void 0!==e)return e;throw new ReferenceError(\"this hasn\\'t been initialised - super() hasn\\'t been called\")}(t):e}}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function o(e,t){for(var r=0;ra.amax||a.bmin>a.bmax)&&((0,f.info)(\"Invalid Range, falling back to defaults\"),a.amin=-100,a.amax=100,a.bmin=-100,a.bmax=100),a}return g(i,[{key:\"getRgbItem\",value:function(e,t,r,a){j(this,e,t,!1,r,a)}},{key:\"getRgbBuffer\",value:function(e,t,r,a,n,i,o){for(var s=(1<e.amax?s=e.amax:se.bmax?r=e.bmax:r=a.MAX_IMAGES_TO_CACHE)}},{key:\"addPageIndex\",value:function(e,t){var r=this._refCache.get(e);r||(r=new Set,this._refCache.put(e,r)),r.add(t)}},{key:\"getData\",value:function(e,t){if(!this._refCache.has(e))return null;var r=this._refCache.get(e);return!(r.size=a.MAX_IMAGES_TO_CACHE?(0,n.info)(\"GlobalImageCache.setData - ignoring image above MAX_IMAGES_TO_CACHE.\"):this._imageCache.put(e,t))}},{key:\"clear\",value:function(){0=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var n,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,n=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw n}}}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(\"undefined\"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],a=!0,n=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(a=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);a=!0);}catch(e){n=!0,i=e}finally{try{a||null==s.return||s.return()}finally{if(n)throw i}}return r}}(e,t)||y(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function y(e,t){if(e){if(\"string\"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return\"Map\"===(r=\"Object\"===r&&e.constructor?e.constructor.name:r)||\"Set\"===r?Array.from(e):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);rt[2]||lt[3])return null;a[n].push({x:c,y:l})}}return a}t.AnnotationFactory=r;var A=function(){function r(e){k(this,r);var t=e.dict;this.setContents(t.get(\"Contents\")),this.setModificationDate(t.get(\"M\")),this.setFlags(t.get(\"F\")),this.setRectangle(t.getArray(\"Rect\")),this.setColor(t.getArray(\"C\")),this.setBorderStyle(t),this.setAppearance(t),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,contents:this.contents,hasAppearance:!!this.appearance,id:e.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:e.subtype}}return x(r,[{key:\"_hasFlag\",value:function(e,t){return!!(e&t)}},{key:\"_isViewable\",value:function(e){return!this._hasFlag(e,d.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,d.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,d.AnnotationFlag.NOVIEW)}},{key:\"_isPrintable\",value:function(e){return this._hasFlag(e,d.AnnotationFlag.PRINT)&&!this._hasFlag(e,d.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,d.AnnotationFlag.HIDDEN)}},{key:\"setContents\",value:function(e){this.contents=(0,d.stringToPDFString)(e||\"\")}},{key:\"setModificationDate\",value:function(e){this.modificationDate=(0,d.isString)(e)?e:null}},{key:\"setFlags\",value:function(e){this.flags=Number.isInteger(e)&&0=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var n,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,n=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw n}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r>3,d=r.getBytes(g*p,!0),g=s.getArray(\"Decode\",\"D\"),(h=I.PDFImage.createMask({imgArray:d,width:f,height:p,imageIsFromDecodeStream:r instanceof A.DecodeStream,inverseDecode:!!g&&0O.fakeMultiSpaceMax)||(O.height+=f)):(f=(h=-h)*y.textHScale,y.translateTextMatrix(f,0),(d=O.textRunBreakAllowed&&h>O.fakeMultiSpaceMax)||(O.width+=f)),d?N():0=A.desiredSize){n=!0;break}}n?e(q):(N(),U(),r())}).catch(function(e){if(!(e instanceof z.AbortException)){if(t.options.ignoreErrors)return(0,z.warn)(\\'getTextContent - ignoring errors during \"\\'.concat(w.name,\\'\" \\')+\\'task: \"\\'.concat(e,\\'\".\\')),N(),void U();throw e}})},extractDataStructures:function(e,t,r){var a,n=this,i=this.xref,o=e.get(\"ToUnicode\")||t.get(\"ToUnicode\"),t=o?this.readToUnicode(o):Promise.resolve(void 0);r.composite&&(s=e.get(\"CIDSystemInfo\"),(0,G.isDict)(s)&&(r.cidSystemInfo={registry:(0,z.stringToPDFString)(s.get(\"Registry\")),ordering:(0,z.stringToPDFString)(s.get(\"Ordering\")),supplement:s.get(\"Supplement\")}),c=e.get(\"CIDToGIDMap\"),(0,G.isStream)(c)&&(a=c.getBytes()));var s,c,l,u=[],o=null;if(e.has(\"Encoding\")){if(l=e.get(\"Encoding\"),(0,G.isDict)(l)){if(o=l.get(\"BaseEncoding\"),o=(0,G.isName)(o)?o.name:null,l.has(\"Differences\"))for(var h=l.get(\"Differences\"),f=0,d=0,p=h.length;d>1;0==i&&!t.has(o)||(r[o]=i)}return r},extractWidths:function(e,t,r){var a,n,i,o,s,c=this.xref,l=[],u=0,h=[];if(r.composite){if(u=e.has(\"DW\")?e.get(\"DW\"):1e3,b=e.get(\"W\"))for(a=0,n=b.length;a=z.OPS.moveTo&&i<=z.OPS.endPath&&20<++this._numInvalidPathOPS)throw new z.FormatError(\"Invalid \".concat(a));(0,z.warn)(\"Skipping \".concat(a)),null!==t&&(t.length=0);continue}}return this.preprocessCommand(i,t),e.fn=i,e.args=t,!0}if(r===G.EOF)return!1;if(null!==r&&((t=null===t?[]:t).push(r),33>>0,s=n[i],c=0,l=s.length;c=this.end?-1:this.buffer[this.pos++]},readNumber:function(){var e=0;do{var t=this.readByte();if(t<0)throw new h.FormatError(\"unexpected EOF in bcmap\")}while(e=e<<7|127&t,!!(128&t));return e},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,a=this.tmpBuf,n=0;do{var i=this.readByte();if(i<0)throw new h.FormatError(\"unexpected EOF in bcmap\")}while(r=!(128&i),a[n++]=127&i,!r);for(var o=t,s=0,c=0;0<=o;){for(;c<8&&0>=8,c-=8}},readHexSigned:function(e,t){this.readHexNumber(e,t);for(var r=1&e[t]?255:0,a=0,n=0;n<=t;n++)a=(1&a)<<8|e[n],e[n]=a>>1^r},readString:function(){for(var e=this.readNumber(),t=\"\",r=0;r>5;if(7!=f){var d=!!(16&i),p=15&i;if(16<1+p)throw new Error(\"processBinaryCMap: Invalid dataSize.\");var g,m=r.readNumber();switch(f){case 0:for(r.readHex(s,p),r.readHexNumber(c,p),A(c,s,p),v.addCodespaceRange(1+p,x(s,p),x(c,p)),g=1;g>>0}function C(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 A(e,t,r){for(var a=0,n=r;0<=n;n--)a+=e[n]+t[n],e[n]=255&a,a>>=8}function I(e,t){for(var r=1,a=t;0<=a&&0>=8}function T(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(19)}function O(){}var E={create:function(o){return s=c.default.mark(function e(){var t,r,a,n,i;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.encoding,r=o.fetchBuiltInCMap,a=o.useCMap,(0,f.isName)(t))return e.abrupt(\"return\",M(t.name,r));e.next=7;break;case 7:if((0,f.isStream)(t))return n=new w,i=new l.Lexer(t),e.abrupt(\"return\",_(n,i,r,a).then(function(e){return e.isIdentityCMap?M(e.name,r):e}));e.next=11;break;case 11:throw new Error(\"Encoding required.\");case 12:case\"end\":return e.stop()}},e)}),function(){var e=this,o=arguments;return new Promise(function(t,r){var a=s.apply(e,o);function n(e){u(a,t,r,n,i,\"next\",e)}function i(e){u(a,t,r,n,i,\"throw\",e)}n(void 0)})}();var s}};function P(e){for(var t=0,r=0;r>>0}function F(e){if(!(0,h.isString)(e))throw new h.FormatError(\"Malformed CMap: expected string.\")}function R(e){if(!Number.isInteger(e))throw new h.FormatError(\"Malformed CMap: expected int.\")}function _(e,t,r,a){var n,i,o,s,c,l;e:for(;;)try{var u=t.getObj();if((0,f.isEOF)(u))break;if((0,f.isName)(u))\"WMode\"===u.name?(c=e,l=(l=t).getObj(),Number.isInteger(l)&&(c.vertical=!!l)):\"CMapName\"===u.name&&(o=e,s=(s=t).getObj(),(0,f.isName)(s)&&(0,h.isString)(s.name)&&(o.name=s.name)),n=u;else if((0,f.isCmd)(u))switch(u.cmd){case\"endcmap\":break e;case\"usecmap\":(0,f.isName)(n)&&(i=n.name);break;case\"begincodespacerange\":!function(e,t){for(;;){var r=t.getObj();if((0,f.isEOF)(r))break;if((0,f.isCmd)(r,\"endcodespacerange\"))return;if(!(0,h.isString)(r))break;var a=P(r),r=t.getObj();if(!(0,h.isString)(r))break;var n=P(r);e.addCodespaceRange(r.length,a,n)}throw new h.FormatError(\"Invalid codespace range.\")}(e,t);break;case\"beginbfchar\":!function(e,t){for(;;){var r=t.getObj();if((0,f.isEOF)(r))break;if((0,f.isCmd)(r,\"endbfchar\"))return;F(r);var a=P(r);F(r=t.getObj()),e.mapOne(a,r)}}(e,t);break;case\"begincidchar\":!function(e,t){for(;;){var r=t.getObj();if((0,f.isEOF)(r))break;if((0,f.isCmd)(r,\"endcidchar\"))return;F(r);var a=P(r);R(r=t.getObj()),e.mapOne(a,r)}}(e,t);break;case\"beginbfrange\":!function(e,t){for(;;){var r=t.getObj();if((0,f.isEOF)(r))break;if((0,f.isCmd)(r,\"endbfrange\"))return;F(r);var a=P(r);F(r=t.getObj());var n=P(r);if(r=t.getObj(),Number.isInteger(r)||(0,h.isString)(r)){var i=Number.isInteger(r)?String.fromCharCode(r):r;e.mapBfRange(a,n,i)}else{if(!(0,f.isCmd)(r,\"[\"))break;for(var r=t.getObj(),o=[];!(0,f.isCmd)(r,\"]\")&&!(0,f.isEOF)(r);)o.push(r),r=t.getObj();e.mapBfRangeToArray(a,n,o)}}throw new h.FormatError(\"Invalid bf range.\")}(e,t);break;case\"begincidrange\":!function(e,t){for(;;){var r=t.getObj();if((0,f.isEOF)(r))break;if((0,f.isCmd)(r,\"endcidrange\"))return;F(r);var a=P(r);F(r=t.getObj());var n=P(r);R(r=t.getObj()),e.mapCidRange(a,n,r)}}(e,t)}}catch(e){if(e instanceof d.MissingDataException)throw e;(0,h.warn)(\"Invalid cMap data: \"+e);continue}return(a=!a&&i?i:a)?B(e,r,a):Promise.resolve(e)}function B(a,e,t){return M(t,e).then(function(e){if(a.useCMap=e,0===a.numCodespaceRanges){for(var t=a.useCMap.codespaceRanges,r=0;re.length)&&(t=e.length);for(var r=0,a=new Array(t);r=this.firstChar&&e<=this.lastChar?e:-1},amend:function(e){(0,ne.unreachable)(\"Should not call amend()\")}},g);function g(e,t){this.firstChar=e,this.lastChar=t}t.IdentityToUnicodeMap=T;var b,de=function(){function d(e,t,r){e[t]=r>>8&255,e[t+1]=255&r}function p(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 g(e){this.sfnt=e,this.tables=Object.create(null)}g.getSearchParams=function(e,t){for(var r=1,a=0;r<(r^e);)r<<=1,a++;var n=r*t;return{range:n,entry:a,rangeShift:t*e-n}};return g.prototype={toArray:function(){var e=this.sfnt,t=this.tables,r=Object.keys(t);r.sort();for(var a,n,i=r.length,o=12+16*i,s=[o],c=0;c>>0,s.push(o);var l=new Uint8Array(o);for(c=0;c>>0;p(l,o+4,u),p(l,o+8,s[c]),p(l,o+12,t[a].length),o+=16}return l},addTable:function(e,t){if(e in this.tables)throw new Error(\"Table \"+e+\" already exists\");this.tables[e]=t}},g}(),r=(v.getFontID=(b=1,function(){return String(b++)}),v.prototype={name:null,font:null,mimetype:null,disableFontFace:!1,get renderer(){var e=a.FontRendererFactory.create(this,!0);return(0,ne.shadow)(this,\"renderer\",e)},exportData:function(){var e,t,r,a=0=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var n,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,n=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw n}}}}(a);try{for(i.s();!(r=i.n()).done;)void 0!==(t=this[e=r.value])&&(n[e]=t)}catch(e){i.e(e)}finally{i.f()}return n},fallbackToSystemFont:function(){var a=this;this.missingFile=!0;var e=this.name,t=this.type,r=this.subtype,n=e.replace(/[,_]/g,\"-\").replace(/\\\\s/g,\"\"),i=(0,y.getStdFontMap)(),o=(0,y.getNonStdFontMap)(),s=!!i[n]||!(!o[n]||!i[o[n]]),n=i[n]||o[n]||n;if(this.bold=-1!==n.search(/bold/gi),this.italic=-1!==n.search(/oblique/gi)||-1!==n.search(/italic/gi),this.black=-1!==e.search(/Black/g),this.remeasure=0>>0,a=e.getInt32()>>>0,n=e.getInt32()>>>0,i=e.pos;e.pos=e.start||0,e.skip(a);var o=e.getBytes(n);e.pos=i,\"head\"===t&&(o[8]=o[9]=o[10]=o[11]=0,o[17]|=32);return{tag:t,checksum:r,length:n,offset:a,data:o}}(e);i.includes(n.tag)&&0!==n.length&&(r[n.tag]=n)}return r}function g(e){return{version:(0,ne.bytesToString)(e.getBytes(4)),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function r(e,t){for(var r=function(e){var t=(0,ne.bytesToString)(e.getBytes(4));(0,ne.assert)(\"ttcf\"===t,\"Must be a TrueType Collection font.\");for(var r=e.getUint16(),a=e.getUint16(),n=e.getInt32()>>>0,i=[],o=0;o>>0);var s={ttcTag:t,majorVersion:r,minorVersion:a,numFonts:n,offsetTable:i};switch(r){case 1:return s;case 2:return s.dsigTag=e.getInt32()>>>0,s.dsigLength=e.getInt32()>>>0,s.dsigOffset=e.getInt32()>>>0,s}throw new ne.FormatError(\"Invalid TrueType Collection majorVersion: \".concat(r,\".\"))}(e),a=r.numFonts,n=r.offsetTable,i=0;i>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}):(s=2,c=function(e,t){return e[t]<<9|e[t+1]<<1},function(e,t,r){e[t]=r>>9&255,e[t+1]=r>>1&255}),u=i?r+1:r,a=s*(1+u),h=new Uint8Array(a);h.set(e.data.subarray(0,a)),e.data=h;var f=t.data,d=f.length,p=new Uint8Array(d),g=c(h,0),m=0,b=Object.create(null);for(l(h,0,m),S=0,x=s;S>>8,a.set(s,n),o.length=s.length,o;for(var l=10,u=0,h=0;hs.length||(!i&&0o&&(o=y.sizeOfInstructions),l(h,x,m+=w),g=v}if(0===m){for(var k=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]),S=0,x=s;Si+m?t.data=p.subarray(0,i+m):(t.data=new Uint8Array(i+m),t.data.set(p.subarray(0,m))),t.data.set(p.subarray(0,i),m),l(e.data,h.length-s,m+i)):t.data=p.subarray(0,m);return{missingGlyphs:b,maxSizeOfInstructions:o}}function b(e){var t=(m.start||0)+e.offset;m.pos=t;var r=[[],[]],e=e.length,a=t+e;if(0!==m.getUint16()||e<6)return r;for(var n,i=m.getUint16(),o=m.getUint16(),s=[],c=0;ca)){m.pos=h;h=u.name;if(u.encoding){for(var f=\"\",d=0,p=u.length;ds.length&&S.push(new Uint8Array(c-s.length)),l>8,o.maxp.data[5]=255&f;var y,w,k,S,C,A,I,T,O,E,v=(y=o.fpgm,w=o.prep,k=o[\"cvt \"],S=v,C={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0},y&&s(y,C),w&&s(w,C),y&&function(e,t){if(!e.tooComplexToFollowFunctions){if(e.functionsDefined.length>t)return(0,ne.warn)(\"TT: more functions defined than expected\"),e.hintsValid=!1;for(var r=0,a=e.functionsUsed.length;r>8,I.data[35]=255&A),0<(A=O-A-(T.length-4*A>>1))&&((A=new Uint8Array(T.length+2*A)).set(T.data),E&&(A[T.length]=T.data[2],A[T.length+1]=T.data[3]),T.data=A)):T&&(T.data=null),!o.head)throw new ne.FormatError(\\'Required \"head\" table is not found\\');!function(e,t,r){var a=e.data;if((e=(a[0]<<24)+(a[1]<<16)+(a[2]<<8)+a[3])>>16!=1&&((0,ne.info)(\"Attempting to fix invalid version in head table: \"+e),a[0]=0,a[1]=1,a[2]=0,a[3]=0),(e=(a[50]<<8)+a[51])<0||1>8,o.maxp.data[27]=255&F.maxSizeOfInstructions)),!o.hhea)throw new ne.FormatError(\\'Required \"hhea\" table is not found\\');0===o.hhea.data[10]&&0===o.hhea.data[11]&&(o.hhea.data[10]=255,o.hhea.data[11]=255);var F={unitsPerEm:(o.head.data[18]<<8)+o.head.data[19],yMax:(o.head.data[42]<<8)+o.head.data[43],yMin:pe(o.head.data[38],o.head.data[39]),ascent:(o.hhea.data[4]<<8)+o.hhea.data[5],descent:pe(o.hhea.data[6],o.hhea.data[7])};this.ascent=F.ascent/F.unitsPerEm,this.descent=F.descent/F.unitsPerEm,o.post&&function(e,t,r){var a,n=(m.start||0)+e.offset,i=(m.pos=n)+e.length,o=m.getInt32();m.skip(28);var s=!0;switch(o){case 65536:a=ue;break;case 131072:var c=m.getUint16();if(c!==r){s=!1;break}for(var l=[],u=0;u>>0,f=!1;if((!i||i.platformId!==l||i.encodingId!==u)&&(0===l&&0===u||1===l&&0===u?f=!0:3!==l||1!==u||!a&&i?r&&3===l&&0===u&&(s=f=!0):(f=!0,r||(s=!0)),f&&(i={platformId:l,encodingId:u,offset:h}),s))break}if(i&&(t.pos=n+i.offset),!i||-1===t.peekByte())return(0,ne.warn)(\"Could not find a preferred cmap table.\"),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};var d=t.getUint16();t.skip(4);var e=!1,p=[];if(0===d){for(I=0;I<256;I++){var g=t.getByte();g&&p.push({charCode:I,glyphId:g})}e=!0}else if(4===d){var m=t.getUint16()>>1;t.skip(6);for(var b=[],v=0;v>1)-(m-v),y=Math.max(y,A+w.end-w.start+1)):w.offsetIndex=-1}var S=[];for(I=0;I>8&255,255&e)}function E(e){return 32767>8&255,255&e)}function ge(e){e=e.peekBytes(4);return\"ttcf\"===(0,ne.bytesToString)(e)}function S(e,t,r){for(var a,n,i=[],o=0,s=e.length;o=t||a.push({fontCharCode:0|r,glyphId:e[r]});0===a.length&&a.push({fontCharCode:0,glyphId:0}),a.sort(function(e,t){return e.fontCharCode-t.fontCharCode});for(var n=[],i=a.length,o=0;o 123 are reserved for internal usage\");o|=1<=this.numGlyphs)&&(0===e||0>4,a=15&a;if(15==n)break;if(e+=t[n],15==a)break;e+=t[a]}return parseFloat(e)}():28===e?e=((e=i[o++])<<24|i[o++]<<16)>>16:29===e?e=(e=(e=(e=i[o++])<<8|i[o++])<<8|i[o++])<<8|i[o++]:32<=e&&e<=246?e-139:247<=e&&e<=250?256*(e-247)+i[o++]+108:251<=e&&e<=254?-256*(e-251)-i[o++]-108:((0,k.warn)(\\'CFFParser_parseDict: \"\\'+e+\\'\" is a reserved command.\\'),NaN)}for(var t=[],r=[],o=0,a=i.length;o>16,s+=2,n++;else if(14===c){if(4<=n&&(n-=4,this.seacAnalysisEnabled))return e.seac=i.slice(n,n+4),!1;l=d[c]}else if(32<=c&&c<=246)i[n]=c-139,n++;else if(247<=c&&c<=254)i[n]=c<251?(c-247<<8)+t[s]+108:-(c-251<<8)-t[s]-108,s++,n++;else if(255===c)i[n]=(t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3])/65536,s+=4,n++;else if(19===c||20===c)e.hints+=n>>1,s+=e.hints+7>>3,n%=2,l=d[c];else{if(10===c||29===c){var h=10===c?r:a;if(!h)return(0,k.warn)(\"Missing subrsIndex for \"+(l=d[c]).id),!1;u=32768;h.count<1240?u=107:h.count<33900&&(u=1131);u=i[--n]+u;if(u<0||u>=h.count||isNaN(u))return(0,k.warn)(\"Out of bounds subrIndex for \"+(l=d[c]).id),!1;if(e.stackSize=n,e.callDepth++,!this.parseCharString(e,h.get(u),r,a))return!1;e.callDepth--,n=e.stackSize;continue}if(11===c)return e.stackSize=n,!0;l=d[c]}if(l){if(l.stem&&(e.hints+=n>>1,3===c||23===c?e.hasVStems=!0:!e.hasVStems||1!==c&&18!==c||((0,k.warn)(\"CFF stem hints are in wrong order\"),t[s-1]=1===c?3:23)),\"min\"in l&&!e.undefStack&&n=i.length&&((0,k.warn)(\"Invalid fd index for glyph index.\"),p=!1),p&&(g=(m=i[h].privateDict).subrsIndex)):r&&(g=r),p=p&&this.parseCharString(d,f,g,a),null!==d.width?(g=m.getByName(\"nominalWidthX\"),c[u]=g+d.width):(m=m.getByName(\"defaultWidthX\"),c[u]=m),null!==d.seac&&(s[u]=d.seac),p||t.set(u,new Uint8Array([14]))}return{charStrings:t,seacs:s,widths:c}},emptyPrivateDictionary:function(e){var t=this.createDict(A,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t},parsePrivateDict:function(e){var t,r,a;e.hasName(\"Private\")?(t=e.getByName(\"Private\"),Array.isArray(t)&&2===t.length?(r=t[0],a=t[1],0===r||a>=this.bytes.length?this.emptyPrivateDictionary(e):(t=this.bytes.subarray(a,a+r),r=this.parseDict(t),t=this.createDict(A,r,e.strings),(e.privateDict=t).getByName(\"Subrs\")&&(a=a+(r=t.getByName(\"Subrs\")),0===r||a>=this.bytes.length?this.emptyPrivateDictionary(e):(a=this.parseIndex(a),t.subrsIndex=a.obj)))):e.removeByName(\"Private\")):this.emptyPrivateDictionary(e)},parseCharsets:function(e,t,r,a){if(0===e)return new O(!0,T.ISO_ADOBE,f.ISOAdobeCharset);if(1===e)return new O(!0,T.EXPERT,f.ExpertCharset);if(2===e)return new O(!0,T.EXPERT_SUBSET,f.ExpertSubsetCharset);var n,i,o,s=this.bytes,c=e,l=s[e++],u=[a?0:\".notdef\"];switch(--t,l){case 0:for(o=0;o=this.charStrings.count)&&0=this.fdSelect.length?-1:this.fdSelect[e]}},F);function F(e,t){this.format=e,this.fdSelect=t}t.CFFFDSelect=P;var R=(_.prototype={isTracking:function(e){return e in this.offsets},track:function(e,t){if(e in this.offsets)throw new k.FormatError(\"Already tracking location of \".concat(e));this.offsets[e]=t},offset:function(e){for(var t in this.offsets)this.offsets[t]+=e},setEntryLocation:function(e,t,r){if(!(e in this.offsets))throw new k.FormatError(\"Not tracking location of \".concat(e));for(var a=r.data,n=this.offsets[e],i=0,o=t.length;i>24&255,a[l]=f>>16&255,a[u]=f>>8&255,a[h]=255&f}}},_);function _(){this.offsets=Object.create(null)}B.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 a=this.compileNameIndex(e.names);if(t.add(a),e.isCIDFont&&e.topDict.hasName(\"FontMatrix\")){var n=e.topDict.getByName(\"FontMatrix\");e.topDict.removeByName(\"FontMatrix\");for(var i=0,o=e.fdArray.length;i>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e];return e},compileHeader:function(e){return[e.major,e.minor,e.hdrSize,e.offSize]},compileNameIndex:function(e){for(var t=new m,r=0,a=e.length;r\"===c||\"/\"===c||\"%\"===c)&&(c=\"_\"),o[s]=c}\"\"===(o=o.join(\"\"))&&(o=\"Bad_Font_Name\"),t.add((0,k.stringToBytes)(o))}return this.compileIndex(t)},compileTopDicts:function(e,t,r){for(var a=[],n=new m,i=0,o=e.length;i>8&255,255&t]);else for(var n,i=(n=new Uint8Array(1+2*t))[0]=0,o=e.charset.length,s=!1,c=1;c>8&255,n[c+1]=255&u}return this.compileTypedArray(n)},compileEncoding:function(e){return this.compileTypedArray(e.raw)},compileFDSelect:function(e){var t,r=e.format;switch(r){case 0:for((t=new Uint8Array(1+e.fdSelect.length))[0]=r,i=0;i>8&255,255&i,o),a=o)}var s=(n.length-3)/3;n[1]=s>>8&255,n[2]=255&s,n.push(i>>8&255,255&i),t=new Uint8Array(n)}return this.compileTypedArray(t)},compileTypedArray:function(e){for(var t=[],r=0,a=e.length;r>8&255,255&a],o=1,s=0;s>8&255,255&c):3===n?i.push(c>>16&255,c>>8&255,255&c):i.push(c>>>24&255,c>>16&255,c>>8&255,255&c),r[s]&&(c+=r[s].length);for(s=0;s=r.begin&&t=(r=o[11]).begin&&t=a.begin&&e>1,i=t+r+14,o=[],s=0;s>1;r>16,l=0,u=0;if(I+=10,c<0)do{var h,f,d=e[I]<<8|e[I+1],p=e[I+2]<<8|e[I+3];I+=4,1&d?(h=(e[I]<<24|e[I+1]<<16)>>16,f=(e[I+2]<<24|e[I+3]<<16)>>16,I+=4):(h=e[I++],f=e[I++]);var u=2&d?(l=h,f):l=0,g=1,m=1,b=0,v=0;8&d?(g=m=(e[I]<<24|e[I+1]<<16)/1073741824,I+=2):64&d?(g=(e[I]<<24|e[I+1]<<16)/1073741824,m=(e[I+2]<<24|e[I+3]<<16)/1073741824,I+=4):128&d&&(g=(e[I]<<24|e[I+1]<<16)/1073741824,b=(e[I+2]<<24|e[I+3]<<16)/1073741824,v=(e[I+4]<<24|e[I+5]<<16)/1073741824,m=(e[I+6]<<24|e[I+7]<<16)/1073741824,I+=8);p=t.glyphs[p]}while(p&&(n.push({cmd:\"save\"}),n.push({cmd:\"transform\",args:[g,b,v,m,l,u]}),F(p,n,t),n.push({cmd:\"restore\"})),32&d);else{for(var y,w=[],k=0;k>16,I+=2;break;case 2:l-=e[I++];break;case 18:l+=e[I++]}x[k].x=l}for(k=0;k>16,I+=2;break;case 4:u-=e[I++];break;case 36:u+=e[I++]}x[k].y=u}for(var A=0,I=0;I