!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define("pdfjs-dist/build/pdf.worker",[],t):"object"==typeofexports?exports["pdfjs-dist/build/pdf.worker"]=t():e["pdfjs-dist/build/pdf.worker"]=e.pdfjsDistBuildPdfWorker=t()}(this,function(){returnfunction(e){functiont(a){if(r[a])returnr[a].exports;vari=r[a]={i:a,l:!1,exports:{}};e[a].call(i.exports,i,i.exports,t);i.l=!0;returni.exports}varr={};t.m=e;t.c=r;t.i=function(e){returne};t.d=function(e,r,a){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:a})};t.n=function(e){varr=e&&e.__esModule?function(){returne.default}:function(){returne};t.d(r,"a",r);returnr};t.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)};t.p="";returnt(t.s=35)}([function(e,t,r){"use strict";functiona(e){ce=e}functioni(){returnce}functionn(e){ce>=ne.infos&&console.log("Info: "+e)}functiono(e){ce>=ne.warnings&&console.log("Warning: "+e)}functions(e){console.log("Deprecated API usage: "+e)}functionc(e){thrownewError(e)}functionl(e,t){e||c(t)}functionu(e,t){try{varr=newURL(e);if(!r.origin||"null"===r.origin)return!1}catch(e){return!1}vara=newURL(t,r);returnr.origin===a.origin}functionh(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functionf(e,t){if(!e)returnnull;try{varr=t?newURL(e,t):newURL(e);if(h(r))returnr}catch(e){}returnnull}functiond(e,t,r){Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1});returnr}functiong(e){vart;returnfunction(){if(e){t=Object.create(null);e(t);e=null}returnt}}functionm(e){if("string"!=typeofe){o("The argument for removeNullCharacters must be a string.");returne}returne.replace(we,"")}functionp(e){l(null!==e&&"object"===(void0===e?"undefined":X(e))&&void0!==e.length,"Invalid argument for bytesToString");vart=e.length;if(t<8192)returnString.fromCharCode.apply(null,e);for(varr=[],a=0;a<t;a+=8192){vari=Math.min(a+8192,t),n=e.subarray(a,i);r.push(String.fromCharCode.apply(null,n))}returnr.join("")}functionb(e){l("string"==typeofe,"Invalid argument for stringToBytes");for(vart=e.length,r=newUint8Array(t),a=0;a<t;++a)r[a]=255&e.charCodeAt(a);returnr}functionv(e){if(void0!==e.length)returne.length;l(void0!==e.byteLength);returne.byteLength}functiony(e){if(1===e.length&&e[0]instanceofUint8Array)returne[0];vart,r,a,i=0,n=e.length;for(t=0;t<n;t++){r=e[t];a=v(r);i+=a}varo=0,s=newUint8Array(i);for(t=0;t<n;t++){r=e[t];rinstanceofUint8Array||(r="string"==typeofr?b(r):newUint8Array(r));a=r.byteLength;s.set(r,o);o+=a}returns}functionw(e){returnString.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}functionk(e){for(vart=1,r=0;e>t;){t<<=1;r++}returnr}functionS(e,t){returne[t]<<24>>24}functionC(e,t){returne[t]<<8|e[t+1]}functionx(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}functionA(){vare=newUint8Array(4);e[0]=1;return1===newUint32Array(e.buffer,0,1)[0]}functionP(){try{newFunction("");return!0}catch(e){return!1}}functionI(e){vart,r=e.length,a=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t<r;t+=2)a.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));elsefor(t=0;t<r;++t){vari=xe[e.charCodeAt(t)];a.push(i?String.fromCharCode(i):e.charAt(t))}returna.join("")}function_(e){returndecodeURIComponent(escape(e))}functionO(e){returnunescape(encodeURIComponent(e))}functionT(e){for(vartine)return!1;return!0}functionE(e){return"boolean"==typeofe}functionR(e){return"number"==typeofe&&(0|e)===e}functionF(e){return"number"==typeofe}functionB(e){return"string"==typeofe}functionM(e){returneinstanceofArray}functionD(e){return"object"===(void0===e?"undefined":X(e))&&null!==e&&void0!==e.byteLength}functionL(e){return32===e||9===e||13===e||10===e}functionN(){return"object"===("undefined"==typeofprocess?"undefined":X(process))&&process+""=="[object process]"}functionU(){vare={};e.promise=newPromise(function(t,r){e.resolve=t;e.reject=r});returne}functionq(e,t){v
;returnnews(y,t.fromIR(w),n.PDFFunction.fromIR(k));case"LabCS":r=e[1];i=e[2];varS=e[3];returnnewm(r,i,S);default:thrownewa.FormatError("Unknown colorspace name: "+u)}};t.parseToIR=function(e,r,o){if((0,i.isName)(e)){vars=o.get("ColorSpace");if((0,i.isDict)(s)){varc=s.get(e.name);c&&(e=c)}}e=r.fetchIfRef(e);if((0,i.isName)(e))switch(e.name){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"Pattern":return["PatternCS",null];default:thrownewa.FormatError("unrecognized colorspace "+e.name)}if((0,a.isArray)(e)){varl,u,h,f,d,g,m=r.fetchIfRef(e[0]).name;switch(m){case"DeviceGray":case"G":return"DeviceGrayCS";case"DeviceRGB":case"RGB":return"DeviceRgbCS";case"DeviceCMYK":case"CMYK":return"DeviceCmykCS";case"CalGray":u=r.fetchIfRef(e[1]);f=u.getArray("WhitePoint");d=u.getArray("BlackPoint");g=u.get("Gamma");return["CalGrayCS",f,d,g];case"CalRGB":u=r.fetchIfRef(e[1]);f=u.getArray("WhitePoint");d=u.getArray("BlackPoint");g=u.getArray("Gamma");return["CalRGBCS",f,d,g,u.getArray("Matrix")];case"ICCBased":varp=r.fetchIfRef(e[1]),b=p.dict;l=b.get("N");h=b.get("Alternate");if(h){varv=t.parseToIR(h,r,o);if(t.fromIR(v).numComps===l)returnv;(0,a.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===l)return"DeviceGrayCS";if(3===l)return"DeviceRgbCS";if(4===l)return"DeviceCmykCS";break;case"Pattern":vary=e[1]||null;y&&(y=t.parseToIR(y,r,o));return["PatternCS",y];case"Indexed":case"I":varw=t.parseToIR(e[1],r,o),k=r.fetchIfRef(e[2])+1,S=r.fetchIfRef(e[3]);(0,i.isStream)(S)&&(S=S.getBytes());return["IndexedCS",w,k,S];case"Separation":case"DeviceN":varC=r.fetchIfRef(e[1]);l=(0,a.isArray)(C)?C.length:1;h=t.parseToIR(e[2],r,o);return["AlternateCS",l,h,n.PDFFunction.getIR(r,r.fetchIfRef(e[3]))];case"Lab":u=r.fetchIfRef(e[1]);f=u.getArray("WhitePoint");d=u.getArray("BlackPoint");return["LabCS",f,d,u.getArray("Range")];default:thrownewa.FormatError('unimplemented color space object "'+m+'"')}}thrownewa.FormatError('unrecognized color space object: "'+e+'"')};t.isDefaultDecode=function(e,t){if(!(0,a.isArray)(e))return!0;if(2*t!==e.length){(0,a.warn)("The decode map is not the correct length");return!0}for(varr=0,i=e.length;r<i;r+=2)if(0!==e[r]||1!==e[r+1])return!1;return!0};t.singletons={getgray(){return(0,a.shadow)(this,"gray",newu)},getrgb(){return(0,a.shadow)(this,"rgb",newh)},getcmyk(){return(0,a.shadow)(this,"cmyk",newf)}};returnt}(),s=function(){functione(e,t,r){this.name="Alternate";this.numComps=e;this.defaultColor=newFloat32Array(e);for(vara=0;a<e;++a)this.defaultColor[a]=1;this.base=t;this.tintFn=r;this.tmpBuf=newFloat32Array(t.numComps)}e.prototype={getRgb:o.prototype.getRgb,getRgbItem:function(e,t,r,a){vari=this.tmpBuf;this.tintFn(e,t,i,0);this.base.getRgbItem(i,0,r,a)},getRgbBuffer:function(e,t,r,a,i,n,o){vars,c,l=this.tintFn,u=this.base,h=1/((1<<n)-1),f=u.numComps,d=u.usesZeroToOneRange,g=(u.isPassthrough(8)||!d)&&0===o,m=g?i:0,p=g?a:newUint8Array(f*r),b=this.numComps,v=newFloat32Array(b),y=newFloat32Array(f);for(s=0;s<r;s++){for(c=0;c<b;c++)v[c]=e[t++]*h;l(v,0,y,0);if(d)for(c=0;c<f;c++)p[m++]=255*y[c];else{u.getRgbItem(y,0,p,m);m+=f}}g||u.getRgbBuffer(p,0,r,a,i,8,o)},getOutputLength:function(e,t){returnthis.base.getOutputLength(e*this.base.numComps/this.numComps,t)},isPassthrough:o.prototype.isPassthrough,fillRgb:o.prototype.fillRgb,isDefaultDecode:function(e){returno.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0};returne}(),c=function(){functione(e){this.name="Pattern";this.base=e}e.prototype={};returne}(),l=function(){functione(e,t,r){this.name="Indexed";this.numComps=1;this.defaultColor=newUint8Array(this.numComps);this.base=e;this.highVal=t;varn=e.numComps,o=n*t;if((0,i.isStream)(r)){this.lookup=newUint8Array(o);vars=r.getBytes(o);this.lookup.set(s)}elseif((0,a.isString)(r)){this.lookup=newUint8Array(o);for(varc=0;c<o;++c)this.lookup[c]=r.charCodeAt(c)}else{if(!(rinstanceofUint8Array||rinstanceofArray))thrownewa.FormatError("Unrecognizedlookuptabl
i.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead.");e.skip(-a);returnthis.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);returna},findASCII85DecodeInlineStreamEnd:function(e){for(vart,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);returnthis.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);returnr},findASCIIHexDecodeInlineStreamEnd:function(e){for(vart,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);returnthis.findDefaultInlineStreamEnd(e)}this.inlineStreamSkipEI(e);returnr},inlineStreamSkipEI:function(e){for(vart,r=0;-1!==(t=e.getByte());)if(0===r)r=69===t?1:0;elseif(1===r)r=73===t?2:0;elseif(2===r)break},makeInlineImage:function(e){for(vart=this.lexer,r=t.stream,a=newn.Dict(this.xref);!(0,n.isCmd)(this.buf1,"ID")&&!(0,n.isEOF)(this.buf1);){if(!(0,n.isName)(this.buf1))thrownewi.FormatError("Dictionary key must be a name object");varo=this.buf1.name;this.shift();if((0,n.isEOF)(this.buf1))break;a.set(o,this.getObj(e))}vars,c=a.get("Filter","F");if((0,n.isName)(c))s=c.name;elseif((0,i.isArray)(c)){varl=this.xref.fetchIfRef(c[0]);(0,n.isName)(l)&&(s=l.name)}varu,h,f,d=r.pos;u="DCTDecode"===s||"DCT"===s?this.findDCTDecodeInlineStreamEnd(r):"ASCII85Decode"===s||"A85"===s?this.findASCII85DecodeInlineStreamEnd(r):"ASCIIHexDecode"===s||"AHx"===s?this.findASCIIHexDecodeInlineStreamEnd(r):this.findDefaultInlineStreamEnd(r);varg,m=r.makeSubStream(d,u,a);if(u<1e3){varp=m.getBytes();m.reset();varb=1,v=0;for(h=0,f=p.length;h<f;++h){b+=255&p[h];v+=b}g=v%65521<<16|b%65521;if(this.imageCache.adler32===g){this.buf2=n.Cmd.get("EI");this.shift();this.imageCache[g].reset();returnthis.imageCache[g]}}e&&(m=e.createStream(m,u));m=this.filter(m,a,u);m.dict=a;if(void0!==g){m.cacheKey="inline_"+u+"_"+g;this.imageCache[g]=m}this.buf2=n.Cmd.get("EI");this.shift();returnm},makeStream:function(e,t){varr=this.lexer,a=r.stream;r.skipToNextLine();varo=a.pos-1,s=e.get("Length");if(!(0,i.isInt)(s)){(0,i.info)("Bad "+s+" attribute in stream");s=0}a.pos=o+s;r.nextChar();if(this.tryShift()&&(0,n.isCmd)(this.buf2,"endstream"))this.shift();else{a.pos=o;for(varc,l,u=[101,110,100,115,116,114,101,97,109],h=0,f=!1;a.pos<a.end;){vard=a.peekBytes(2048),g=d.length-9;if(g<=0)break;f=!1;c=0;for(;c<g;){l=0;for(;l<9&&d[c+l]===u[l];)l++;if(l>=9){f=!0;break}c++}if(f){h+=c;a.pos+=c;break}h+=g;a.pos+=g}if(!f)thrownewi.FormatError("Missing endstream");s=h;r.nextChar();this.shift();this.shift()}this.shift();a=a.makeSubStream(o,s,e);t&&(a=t.createStream(a,s));a=this.filter(a,e,s);a.dict=e;returna},filter:function(e,t,r){vara=t.get("Filter","F"),o=t.get("DecodeParms","DP");if((0,n.isName)(a)){(0,i.isArray)(o)&&(o=this.xref.fetchIfRef(o[0]));returnthis.makeFilter(e,a.name,r,o)}vars=r;if((0,i.isArray)(a))for(varc=a,l=o,u=0,h=c.length;u<h;++u){a=this.xref.fetchIfRef(c[u]);if(!(0,n.isName)(a))thrownewi.FormatError("Bad filter name: "+a);o=null;(0,i.isArray)(l)&&uinl&&(o=this.xref.fetchIfRef(l[u]));e=this.makeFilter(e,a.name,s,o);s=null}returne},makeFilter:function(e,t,r,n){if(0===r){(0,i.warn)('Empty "'+t+'" stream.');returnnewa.NullStream(e)}try{varo=this.xref.stats.streamTypes;if("FlateDecode"===t||"Fl"===t){o[i.StreamType.FLATE]=!0;returnn?newa.PredictorStream(newa.FlateStream(e,r),r,n):newa.FlateStream(e,r)}if("LZWDecode"===t||"LZW"===t){o[i.StreamType.LZW]=!0;vars=1;if(n){n.has("EarlyChange")&&(s=n.get("EarlyChange"));returnnewa.PredictorStream(newa.LZWStream(e,r,s),r,n)}returnnewa.LZWStream(e,r,s)}if("DCTDecode"===t||"DCT"===t){o[i.StreamType.DCT]=!0;returnnewa.JpegStream(e,r,e.dict,n)}if("JPXDecode"===t||"JPX"===t){o[i.StreamType.JPX]=!0;returnnewa.JpxStream(e,r,e.dict,n)}if("ASCII85Decode"===t||"A85"===t){o[i.StreamType.A85]=!0;returnnewa.Ascii85Stream(e,r)}if("ASCIIHexDecode"
;for(s=1;s<=p;s++)l[u[e++]]=s;break;case1:varv=u[e++],y=1;for(s=0;s<v;s++)for(varw=u[e++],k=u[e++],S=w;S<=w+k;S++)l[S]=y++;break;default:thrownewa.FormatError("Unknown encoding format: "+o+" in CFF")}varC=e;if(128&o){u[m]&=127;!function(){vart=u[e++];for(s=0;s<t;s++){vara=u[e++],n=(u[e++]<<8)+(255&u[e++]);l[a]=i.indexOf(r.get(n))}}()}f=u.subarray(m,C)}o&=127;returnnewb(h,o,l,f)},parseFDSelect:function(e,t){varr,i,n=e,o=this.bytes,s=o[e++],c=[],l=!1;switch(s){case0:for(i=0;i<t;++i){varu=o[e++];c.push(u)}r=o.subarray(n,e);break;case3:varh=o[e++]<<8|o[e++];for(i=0;i<h;++i){varf=o[e++]<<8|o[e++];if(0===i&&0!==f){(0,a.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover.");l=!0;f=0}for(vard=o[e++],g=o[e]<<8|o[e+1],m=f;m<g;++m)c.push(d)}e+=2;r=o.subarray(n,e);l&&(r[3]=r[4]=0);break;default:thrownewa.FormatError('parseFDSelect: Unknown format "'+s+'".')}if(c.length!==t)thrownewa.FormatError("parseFDSelect: Invalid font data.");returnnewv(c,r)}};returne}(),c=function(){functione(){this.header=null;this.names=[];this.topDict=null;this.strings=newu;this.globalSubrIndex=null;this.encoding=null;this.charset=null;this.charStrings=null;this.fdArray=[];this.fdSelect=null;this.isCIDFont=!1}returne}(),l=function(){functione(e,t,r,a){this.major=e;this.minor=t;this.hdrSize=r;this.offSize=a}returne}(),u=function(){functione(){this.strings=[]}e.prototype={get:function(e){returne>=0&&e<=390?o[e]:e-391<=this.strings.length?this.strings[e-391]:o[0]},add:function(e){this.strings.push(e)},getcount(){returnthis.strings.length}};returne}(),h=function(){functione(){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){returnthis.objects[e]},getcount(){returnthis.objects.length}};returne}(),f=function(){functione(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(!(einthis.keyToNameMap))return!1;varr=t.length;if(0===r)return!0;for(vari=0;i<r;i++)if(isNaN(t[i])){(0,a.warn)('Invalid CFFDict value: "'+t+'" for key "'+e+'".');return!0}varn=this.types[e];"num"!==n&&"sid"!==n&&"offset"!==n||(t=t[0]);this.values[e]=t;return!0},setByName:function(e,t){if(!(einthis.nameToKeyMap))thrownewa.FormatError('Invalid dictionary name "'+e+'"');this.values[this.nameToKeyMap[e]]=t},hasName:function(e){returnthis.nameToKeyMap[e]inthis.values},getByName:function(e){if(!(einthis.nameToKeyMap))thrownewa.FormatError("Invalid dictionary name "+e+'"');vart=this.nameToKeyMap[e];returntinthis.values?this.values[t]:this.defaults[t]},removeByName:function(e){deletethis.values[this.nameToKeyMap[e]]}};e.createTables=function(e){for(vart={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]},r=0,i=e.length;r<i;++r){varn=e[r],o=(0,a.isArray)(n[0])?(n[0][0]<<8)+n[0][1]:n[0];t.keyToNameMap[o]=n[1];t.nameToKeyMap[n[1]]=o;t.types[o]=n[2];t.defaults[o]=n[3];t.opcodes[o]=(0,a.isArray)(n[0])?n[0]:[n[0]];t.order.push(o)}returnt};returne}(),d=function(){functione(e){null===r&&(r=f.createTables(t));f.call(this,r,e);this.privateDict=null}vart=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"C
l.stats.fontTypes[e.fontType]=!0}f.resolve(newS(t.loadedName,e,t))}).catch(function(e){o.handler.send("UnsupportedFeature",{featureId:i.UNSUPPORTED_FEATURES.font});try{varr=d.descriptor,a=r&&r.get("FontFile3"),n=a&&a.get("Subtype"),s=(0,c.getFontType)(d.type,n&&n.name);l.stats.fontTypes[s]=!0}catch(e){}f.resolve(newS(t.loadedName,newc.ErrorFont(einstanceofError?e.message:e),t))});returnf.promise},buildPath:function(e,t,r){vara=e.length-1;r||(r=[]);if(a<0||e.fnArray[a]!==i.OPS.constructPath)e.addOp(i.OPS.constructPath,[[t],r]);else{varn=e.argsArray[a];n[0].push(t);Array.prototype.push.apply(n[1],r)}},handleColorN:function(e,t,r,a,i,n,o){varc,l=r[r.length-1];if((0,s.isName)(l)&&(c=i.get(l.name))){varu=(0,s.isStream)(c)?c.dict:c,h=u.get("PatternType");if(1===h){vard=a.base?a.base.getRgb(r,0):null;returnthis.handleTilingType(t,d,n,c,u,e,o)}if(2===h){varg=u.get("Shading"),m=u.getArray("Matrix");c=f.Pattern.parseShading(g,m,this.xref,n,this.handler);e.addOp(t,c.getIR());returnPromise.resolve()}returnPromise.reject(newError("Unknown PatternType: "+h))}e.addOp(t,r);returnPromise.resolve()},getOperatorList:function(e){functiont(e){for(vart=0,r=w.savedStatesDepth;t<r;t++)l.addOp(i.OPS.restore,[])}vara=this,n=e.stream,o=e.task,c=e.resources,l=e.operatorList,u=e.initialState,h=void0===u?null:u;c=c||s.Dict.empty;h=h||newP;if(!l)thrownewError('getOperatorList: missing "operatorList" parameter');vard=this,g=this.xref,m=Object.create(null),b=c.get("XObject")||s.Dict.empty,v=c.get("Pattern")||s.Dict.empty,y=newx(h),w=newI(n,g,y),k=newr;returnnewPromise(functione(r,a){varn=function(t){t.then(function(){try{e(r,a)}catch(e){a(e)}},a)};o.ensureNotTerminated();k.reset();for(varu,h,S,C,x={};!(u=k.check());){x.args=null;if(!w.read(x))break;varA=x.args,P=x.fn;switch(0|P){casei.OPS.paintXObject:if(A[0].code)break;varI=A[0].name;if(!I){(0,i.warn)("XObject must be referred to by name.");continue}if(void0!==m[I]){l.addOp(m[I].fn,m[I].args);A=null;continue}varO=b.get(I);if(O){if(!(0,s.isStream)(O))thrownewi.FormatError("XObject should be a stream");varT=O.dict.get("Subtype");if(!(0,s.isName)(T))thrownewi.FormatError("XObject should have a Name subtype");if("Form"===T.name){y.save();n(d.buildFormXObject(c,O,null,l,o,y.state.clone()).then(function(){y.restore()}));return}if("Image"===T.name){d.buildPaintImageXObject(c,O,!1,l,I,m);A=null;continue}if("PS"===T.name){(0,i.info)("Ignored XObject subtype PS");continue}thrownewi.FormatError("Unhandled XObject subtype "+T.name)}break;casei.OPS.setFont:varE=A[1];n(d.handleSetFont(c,A,null,l,o,y.state).then(function(e){l.addDependency(e);l.addOp(i.OPS.setFont,[e,E])}));return;casei.OPS.endInlineImage:varR=A[0].cacheKey;if(R){varF=m[R];if(void0!==F){l.addOp(F.fn,F.args);A=null;continue}}d.buildPaintImageXObject(c,A[0],!0,l,R,m);A=null;continue;casei.OPS.showText:A[0]=d.handleText(A[0],y.state);break;casei.OPS.showSpacedText:varB=A[0],M=[],D=B.length,L=y.state;for(h=0;h<D;++h){varN=B[h];(0,i.isString)(N)?Array.prototype.push.apply(M,d.handleText(N,L)):(0,i.isNum)(N)&&M.push(N)}A[0]=M;P=i.OPS.showText;break;casei.OPS.nextLineShowText:l.addOp(i.OPS.nextLine);A[0]=d.handleText(A[0],y.state);P=i.OPS.showText;break;casei.OPS.nextLineSetSpacingShowText:l.addOp(i.OPS.nextLine);l.addOp(i.OPS.setWordSpacing,[A.shift()]);l.addOp(i.OPS.setCharSpacing,[A.shift()]);A[0]=d.handleText(A[0],y.state);P=i.OPS.showText;break;casei.OPS.setTextRenderingMode:y.state.textRenderingMode=A[0];break;casei.OPS.setFillColorSpace:y.state.fillColorSpace=p.ColorSpace.parse(A[0],g,c);continue;casei.OPS.setStrokeColorSpace:y.state.strokeColorSpace=p.ColorSpace.parse(A[0],g,c);continue;casei.OPS.setFillColor:C=y.state.fillColorSpace;A=C.getRgb(A,0);P=i.OPS.setFillRGBColor;break;casei.OPS.setStrokeColor:C=y.state.strokeColorSpace;A=C.getRgb(A,0);P=i.OPS.setStrokeRGBColor;break;casei.OPS.setFillGray:y.state.fillColorSpace=p.ColorSpace.singletons.gray;A=p.ColorSpace.singletons.gray.getRgb(A,0);P=i.OPS.setFillRGBColor;break;casei.OPS.setStrokeGray:y.state.strokeColorSpace=p.ColorSpace.si
varo=n.id,c=n.numArgs,l=null!==t?t.length:0;if(n.variableArgs)l>c&&(0,i.info)("Command "+o+": expected [0,"+c+"] args, but received "+l+" args.");else{if(l!==c){for(varu=this.nonProcessedArgs;l>c;){u.push(t.shift());l--}for(;l<c&&0!==u.length;){null===t&&(t=[]);t.unshift(u.pop());l++}}if(l<c){(0,i.warn)("Skipping command "+o+": expected "+c+" args, but received "+l+" args.");null!==t&&(t.length=0);continue}}this.preprocessCommand(o,t);e.fn=o;e.args=t;return!0}if((0,s.isEOF)(r))return!1;if(null!==r){null===t&&(t=[]);t.push(r);if(t.length>33)thrownewi.FormatError("Too many arguments")}}},preprocessCommand:function(e,t){switch(0|e){casei.OPS.save:this.stateManager.save();break;casei.OPS.restore:this.stateManager.restore();break;casei.OPS.transform:this.stateManager.transform(t)}}};returne}(),_=function(){functione(e,t,r){for(vara=e,i=0,n=t.length-1;i<n;i++){varo=t[i];a=a[o]||(a[o]=[])}a[t[t.length-1]]=r}functiont(e,t,r,a){for(varn=e+2,o=0;o<t;o++){vars=a[n+4*o],c=1===s.length&&s[0];if(!c||1!==c.width||1!==c.height||c.data.length&&(1!==c.data.length||0!==c.data[0]))break;r[n+4*o]=i.OPS.paintSolidColorImageMask}returnt-o}functionr(){}vara=[];e(a,[i.OPS.save,i.OPS.transform,i.OPS.paintInlineImageXObject,i.OPS.restore],function(e){for(vart=e.fnArray,r=e.argsArray,a=e.iCurr,n=a-3,o=a-2,s=a-1,c=n+4,l=t.length;c+3<l&&t[c]===i.OPS.save&&t[c+1]===i.OPS.transform&&t[c+2]===i.OPS.paintInlineImageXObject&&t[c+3]===i.OPS.restore;)c+=4;varu=Math.min((c-n)/4,200);if(u<10)returnc;varh,f=0,d=[],g=0,m=1,p=1;for(h=0;h<u;h++){varb=r[o+(h<<2)],v=r[s+(h<<2)][0];if(m+v.width>1e3){f=Math.max(f,m);p+=g+2;m=0;g=0}d.push({transform:b,x:m,y:p,w:v.width,h:v.height});m+=v.width+2;g=Math.max(g,v.height)}vary=Math.max(f,m)+1,w=p+g+1,k=newUint8Array(y*w*4),S=y<<2;for(h=0;h<u;h++){varC=r[s+(h<<2)][0].data,x=d[h].w<<2,A=0,P=d[h].x+d[h].y*y<<2;k.set(C.subarray(0,x),P-S);for(varI=0,_=d[h].h;I<_;I++){k.set(C.subarray(A,A+x),P);A+=x;P+=S}k.set(C.subarray(A-x,A),P);for(;P>=0;){C[P-4]=C[P];C[P-3]=C[P+1];C[P-2]=C[P+2];C[P-1]=C[P+3];C[P+x]=C[P+x-4];C[P+x+1]=C[P+x-3];C[P+x+2]=C[P+x-2];C[P+x+3]=C[P+x-1];P-=S}}t.splice(n,4*u,i.OPS.paintInlineImageXObjectGroup);r.splice(n,4*u,[{width:y,height:w,kind:i.ImageKind.RGBA_32BPP,data:k},d]);returnn+1});e(a,[i.OPS.save,i.OPS.transform,i.OPS.paintImageMaskXObject,i.OPS.restore],function(e){for(varr=e.fnArray,a=e.argsArray,n=e.iCurr,o=n-3,s=n-2,c=n-1,l=o+4,u=r.length;l+3<u&&r[l]===i.OPS.save&&r[l+1]===i.OPS.transform&&r[l+2]===i.OPS.paintImageMaskXObject&&r[l+3]===i.OPS.restore;)l+=4;varh=(l-o)/4;h=t(o,h,r,a);if(h<10)returnl;varf,d,g,m=!1,p=a[c][0];if(0===a[s][1]&&0===a[s][2]){m=!0;varb=a[s][0],v=a[s][3];d=s+4;vary=c+4;for(f=1;f<h;f++,d+=4,y+=4){g=a[d];if(a[y][0]!==p||g[0]!==b||0!==g[1]||0!==g[2]||g[3]!==v){f<10?m=!1:h=f;break}}}if(m){h=Math.min(h,1e3);varw=newFloat32Array(2*h);d=s;for(f=0;f<h;f++,d+=4){g=a[d];w[f<<1]=g[4];w[1+(f<<1)]=g[5]}r.splice(o,4*h,i.OPS.paintImageMaskXObjectRepeat);a.splice(o,4*h,[p,b,v,w])}else{h=Math.min(h,100);vark=[];for(f=0;f<h;f++){g=a[s+(f<<2)];varS=a[c+(f<<2)][0];k.push({data:S.data,width:S.width,height:S.height,transform:g})}r.splice(o,4*h,i.OPS.paintImageMaskXObjectGroup);a.splice(o,4*h,[k])}returno+1});e(a,[i.OPS.save,i.OPS.transform,i.OPS.paintImageXObject,i.OPS.restore],function(e){vart=e.fnArray,r=e.argsArray,a=e.iCurr,n=a-3,o=a-2,s=a-1,c=a;if(0!==r[o][1]||0!==r[o][2])returnc+1;for(varl=r[s][0],u=r[o][0],h=r[o][3],f=n+4,d=t.length;f+3<d&&t[f]===i.OPS.save&&t[f+1]===i.OPS.transform&&t[f+2]===i.OPS.paintImageXObject&&t[f+3]===i.OPS.restore&&r[f+1][0]===u&&0===r[f+1][1]&&0===r[f+1][2]&&r[f+1][3]===h&&r[f+2][0]===l;)f+=4;varg=Math.min((f-n)/4,1e3);if(g<3)returnf;for(varm=newFloat32Array(2*g),p=o,b=0;b<g;b++,p+=4){varv=r[p];m[b<<1]=v[4];m[1+(b<<1)]=v[5]}vary=[l,u,h,m];t.splice(n,4*g,i.OPS.paintImageXObjectRepeat);r.splice(n,4*g,y);returnn+1});e(a,[i.OPS.beginText,i.OPS.setFont,i.OPS.setTextMatrix,i.OPS.showText,i.OPS.endText],function(e){for(vart=e.fnArray,r=e.argsArray,a=e.iCurr,n=a-4,o=a-3,s=a-2,c=a-1,l=a,u=r[o][0],h=r[o][1],f=n+5,d=t.length;f+4<
o.isName)(i,"Metadata")&&(0,o.isName)(s,"XML"))try{t=(0,n.stringToUTF8String)((0,n.bytesToString)(a.getBytes()))}catch(e){if(einstanceofn.MissingDataException)throwe;(0,n.info)("Skipping invalid metadata.")}}return(0,n.shadow)(this,"metadata",t)},gettoplevelPagesDict(){vare=this.catDict.get("Pages");if(!(0,o.isDict)(e))thrownewn.FormatError("invalid top-level pages dictionary");return(0,n.shadow)(this,"toplevelPagesDict",e)},getdocumentOutline(){vare=null;try{e=this.readDocumentOutline()}catch(e){if(einstanceofn.MissingDataException)throwe;(0,n.warn)("Unable to read document outline")}return(0,n.shadow)(this,"documentOutline",e)},readDocumentOutline:function(){vart=this.catDict.get("Outlines");if(!(0,o.isDict)(t))returnnull;t=t.getRaw("First");if(!(0,o.isRef)(t))returnnull;varr={items:[]},a=[{obj:t,parent:r}],i=newo.RefSet;i.put(t);for(vars=this.xref,c=newUint8Array(3);a.length>0;){varl=a.shift(),h=s.fetchIfRef(l.obj);if(null!==h){if(!h.has("Title"))thrownewn.FormatError("Invalid outline item");varf={url:null,dest:null};e.parseDestDictionary({destDict:h,resultObj:f,docBaseUrl:this.pdfManager.docBaseUrl});vard=h.get("Title"),g=h.get("F")||0,m=h.getArray("C"),p=c;!(0,n.isArray)(m)||3!==m.length||0===m[0]&&0===m[1]&&0===m[2]||(p=u.ColorSpace.singletons.rgb.getRgb(m,0));varb={dest:f.dest,url:f.url,unsafeUrl:f.unsafeUrl,newWindow:f.newWindow,title:(0,n.stringToPDFString)(d),color:p,count:h.get("Count"),bold:!!(2&g),italic:!!(1&g),items:[]};l.parent.items.push(b);t=h.getRaw("First");if((0,o.isRef)(t)&&!i.has(t)){a.push({obj:t,parent:b});i.put(t)}t=h.getRaw("Next");if((0,o.isRef)(t)&&!i.has(t)){a.push({obj:t,parent:l.parent});i.put(t)}}}returnr.items.length>0?r.items:null},getnumPages(){vare=this.toplevelPagesDict.get("Count");if(!(0,n.isInt)(e))thrownewn.FormatError("page count in top level pages object is not an integer");return(0,n.shadow)(this,"numPages",e)},getdestinations(){functione(e){return(0,o.isDict)(e)?e.get("D"):e}vart,r,a=this.xref,i={},s=this.catDict.get("Names");s&&s.has("Dests")?t=s.getRaw("Dests"):this.catDict.has("Dests")&&(r=this.catDict.get("Dests"));if(r){s=r;s.forEach(function(t,r){r&&(i[t]=e(r))})}if(t){varc=newg(t,a),l=c.getAll();for(varuinl)i[u]=e(l[u])}return(0,n.shadow)(this,"destinations",i)},getDestination:function(e){functiont(e){return(0,o.isDict)(e)?e.get("D"):e}varr,a,i=this.xref,n=null,s=this.catDict.get("Names");s&&s.has("Dests")?r=s.getRaw("Dests"):this.catDict.has("Dests")&&(a=this.catDict.get("Dests"));if(a){varc=a.get(e);c&&(n=t(c))}if(r){n=t(newg(r,i).get(e))}returnn},getpageLabels(){vare=null;try{e=this.readPageLabels()}catch(e){if(einstanceofn.MissingDataException)throwe;(0,n.warn)("Unable to read page labels.")}return(0,n.shadow)(this,"pageLabels",e)},readPageLabels:function(){vare=this.catDict.getRaw("PageLabels");if(!e)returnnull;for(vart=newArray(this.numPages),r=null,a="",i=newm(e,this.xref),s=i.getAll(),c="",l=1,u=0,h=this.numPages;u<h;u++){if(uins){varf=s[u];if(!(0,o.isDict)(f))thrownewn.FormatError("The PageLabel is not a dictionary.");vard=f.get("Type");if(d&&!(0,o.isName)(d,"PageLabel"))thrownewn.FormatError("Invalid type in PageLabel dictionary.");varg=f.get("S");if(g&&!(0,o.isName)(g))thrownewn.FormatError("Invalid style in PageLabel dictionary.");r=g?g.name:null;varp=f.get("P");if(p&&!(0,n.isString)(p))thrownewn.FormatError("Invalid prefix in PageLabel dictionary.");a=p?(0,n.stringToPDFString)(p):"";varb=f.get("St");if(b&&!((0,n.isInt)(b)&&b>=1))thrownewn.FormatError("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(varv="a"===r?97:65,y=l-1,w=String.fromCharCode(v+y%26),k=[],S=0,C=y/26|0;S<=C;S++)k.push(w);c=k.join("");break;default:if(r)thrownewn.FormatError('Invalid style "'+r+'" in PageLabel dictionary.')}t[u]=a+c;c="";l++}returnt},getpageMode(){vare=this.catDict.get("PageMode"),t="UseNone";if((0,o.isName)(e))switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC"
;Object.defineProperty(e,r,{value:a,writable:!0,enumerable:!0,configurable:!0})};t.createArrayFromList=function(e){returne.slice()};t.ArrayBufferCopy=function(e,t,r,a,i){newUint8Array(e).set(newUint8Array(r,a,i),t)};t.CreateIterResultObject=function(e,t){c("boolean"==typeoft);varr={};Object.defineProperty(r,"value",{value:e,enumerable:!0,writable:!0,configurable:!0});Object.defineProperty(r,"done",{value:t,enumerable:!0,writable:!0,configurable:!0});returnr};t.IsFiniteNonNegativeNumber=function(e){return!Number.isNaN(e)&&(e!==1/0&&!(e<0))};t.InvokeOrNoop=function(e,t,r){c(void0!==e);c(i(t));c(Array.isArray(r));vara=e[t];if(void0!==a)returnn(a,e,r)};t.PromiseInvokeOrNoop=function(e,r,a){c(void0!==e);c(i(r));c(Array.isArray(a));try{returnPromise.resolve(t.InvokeOrNoop(e,r,a))}catch(e){returnPromise.reject(e)}};t.PromiseInvokeOrPerformFallback=function(e,t,r,a,o){c(void0!==e);c(i(t));c(Array.isArray(r));c(Array.isArray(o));vars=void0;try{s=e[t]}catch(e){returnPromise.reject(e)}if(void0===s)returna.apply(null,o);try{returnPromise.resolve(n(s,e,r))}catch(e){returnPromise.reject(e)}};t.TransferArrayBuffer=function(e){returne.slice()};t.ValidateAndNormalizeHighWaterMark=function(e){e=Number(e);if(Number.isNaN(e)||e<0)thrownewRangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");returne};t.ValidateAndNormalizeQueuingStrategy=function(e,r){if(void0!==e&&"function"!=typeofe)thrownewTypeError("size property of a queuing strategy must be a function");r=t.ValidateAndNormalizeHighWaterMark(r);return{size:e,highWaterMark:r}}},function(e,t,r){functiona(e){e&&e.constructor===i&&setTimeout(function(){throwe},0)}functioni(e){this.name="AssertionError";this.message=e||"";this.stack=(newError).stack}functionn(e,t){if(!e)thrownewi(t)}i.prototype=Object.create(Error.prototype);i.prototype.constructor=i;e.exports={rethrowAssertionErrorRejection:a,AssertionError:i,assert:n}},function(e,t,r){functiona(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functioni(e){returnnewye(e)}functionn(e){return!!le(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}functiono(e){he(!0===n(e),"IsWritableStreamLocked should only be used on known writable streams");returnvoid0!==e._writer}functions(e,t){varr=e._state;if("closed"===r)returnPromise.resolve(void0);if("errored"===r)returnPromise.reject(e._storedError);vara=newTypeError("Requested to abort");if(void0!==e._pendingAbortRequest)returnPromise.reject(a);he("writable"===r||"erroring"===r,"state must be writable or erroring");vari=!1;if("erroring"===r){i=!0;t=void0}varn=newPromise(function(r,a){e._pendingAbortRequest={_resolve:r,_reject:a,_reason:t,_wasAlreadyErroring:i}});!1===i&&u(e,a);returnn}functionc(e){he(!0===o(e));he("writable"===e._state);returnnewPromise(function(t,r){vara={_resolve:t,_reject:r};e._writeRequests.push(a)})}functionl(e,t){varr=e._state;if("writable"!==r){he("erroring"===r);h(e)}elseu(e,t)}functionu(e,t){he(void0===e._storedError,"stream._storedError === undefined");he("writable"===e._state,"state must be writable");varr=e._writableStreamController;he(void0!==r,"controller must not be undefined");e._state="erroring";e._storedError=t;vara=e._writer;void0!==a&&I(a,t);!1===b(e)&&!0===r._started&&h(e)}functionh(e){he("erroring"===e._state,"stream._state === erroring");he(!1===b(e),"WritableStreamHasOperationMarkedInFlight(stream) === false");e._state="errored";e._writableStreamController.__errorSteps();for(vart=e._storedError,r=0;r<e._writeRequests.length;r++){e._writeRequests[r]._reject(t)}e._writeRequests=[];if(void0!==e._pendingAbortRequest){vara=e._pendingAbortRequest;e._pendingAbortRequest=void0;if(!0!==a._wasAlreadyErroring){e._writableStreamController.__abortSteps(a._reason).then(function(){a._resolve();w(e)},function(t){a._reject(t);w(e)})}else{a._reject(t);w(e)}}elsew(e)}functionf(e){he(void0!==e._inFlightWriteRequest);e._inFlightWriteRequest._resolve(void0);e._inFlightWriteRequest=void0}functiond(e,t){he(v
returnnewTypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}functionke(e){returnnewTypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}functionSe(e){try{Promise.prototype.then.call(e,void0,function(){})}catch(e){}}varCe=function(){functione(e,t){for(varr=0;r<t.length;r++){vara=t[r];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"ina&&(a.writable=!0);Object.defineProperty(e,a.key,a)}}returnfunction(t,r,a){r&&e(t.prototype,r);a&&e(t,a);returnt}}(),xe=r(0),Ae=xe.ArrayBufferCopy,Pe=xe.CreateIterResultObject,Ie=xe.IsFiniteNonNegativeNumber,_e=xe.InvokeOrNoop,Oe=xe.PromiseInvokeOrNoop,Te=xe.TransferArrayBuffer,Ee=xe.ValidateAndNormalizeQueuingStrategy,Re=xe.ValidateAndNormalizeHighWaterMark,Fe=r(0),Be=Fe.createArrayFromList,Me=Fe.createDataProperty,De=Fe.typeIsObject,Le=r(1),Ne=Le.assert,Ue=Le.rethrowAssertionErrorRejection,qe=r(3),je=qe.DequeueValue,ze=qe.EnqueueValueWithSize,He=qe.ResetQueue,Ge=r(2),We=Ge.AcquireWritableStreamDefaultWriter,Xe=Ge.IsWritableStream,Ve=Ge.IsWritableStreamLocked,Ye=Ge.WritableStreamAbort,Ke=Ge.WritableStreamDefaultWriterCloseWithErrorPropagation,Je=Ge.WritableStreamDefaultWriterRelease,Ze=Ge.WritableStreamDefaultWriterWrite,Qe=Ge.WritableStreamCloseQueuedOrInFlight,$e=function(){functione(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},i=r.size,n=r.highWaterMark;a(this,e);this._state="readable";this._reader=void0;this._storedError=void0;this._disturbed=!1;this._readableStreamController=void0;varo=t.type;if("bytes"===String(o)){void0===n&&(n=0);this._readableStreamController=newit(this,t,n)}else{if(void0!==o)thrownewRangeError("Invalid type is specified");void0===n&&(n=1);this._readableStreamController=newrt(this,t,i,n)}}Ce(e,[{key:"cancel",value:function(e){return!1===o(this)?Promise.reject(le("cancel")):!0===c(this)?Promise.reject(newTypeError("Cannot cancel a stream that already has a reader")):m(this,e)}},{key:"getReader",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},t=e.mode;if(!1===o(this))throwle("getReader");if(void0===t)returnn(this);t=String(t);if("byob"===t)returni(this);thrownewRangeError("Invalid mode is specified")}},{key:"pipeThrough",value:function(e,t){varr=e.writable,a=e.readable;Se(this.pipeTo(r,t));returna}},{key:"pipeTo",value:function(e){vart=this,r=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},a=r.preventClose,i=r.preventAbort,s=r.preventCancel;if(!1===o(this))returnPromise.reject(le("pipeTo"));if(!1===Xe(e))returnPromise.reject(newTypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));a=Boolean(a);i=Boolean(i);s=Boolean(s);if(!0===c(this))returnPromise.reject(newTypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream"));if(!0===Ve(e))returnPromise.reject(newTypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream"));varl=n(this),u=We(e),h=!1,f=Promise.resolve();returnnewPromise(function(r,n){functiono(){f=Promise.resolve();return!0===h?Promise.resolve():u._readyPromise.then(function(){returnT(l).then(function(e){vart=e.value;!0!==e.done&&(f=Ze(u,t).catch(function(){}))})}).then(o)}functionc(){vare=f;returnf.then(function(){returne!==f?c():void0})}functiond(e,t,r){"errored"===e._state?r(e._storedError):t.catch(r).catch(Ue)}functiong(t,r,a){functioni(){t().then(function(){returnb(r,a)},function(e){returnb(!0,e)}).catch(Ue)}if(!0!==h){h=!0;"writable"===e._state&&!1===Qe(e)?c().then(i):i()}}functionp(t,r){if(!0!==h){h=!0;"writable"===e._state&&!1===Qe(e)?c().then(function(){returnb(t,r)}).catch(Ue):b(t,r)}}functionb(e,t){Je(u);_(l);e?n(t):r(void0)}d(t,l._closedPromise,function(t){!1===i?g(function(){returnYe(e,t)},!0,t):p(!0,t)});d(e,u._closedPromise,function(e){!1===s?g(function(){returnm(t,e)},!0,e):p(!0,e)});!function(e,t,r){"closed"===e._state?r():t.then(r).catch(Ue)}(t,l._closedPromi
;this._isViewable(n)&&this.setFlags(n)}}else(0,i.warn)("Popup annotation has a missing or invalid parent annotation.")}i.Util.inherit(e,u,{});returne}(),y=function(){functione(e){u.call(this,e);this.data.annotationType=i.AnnotationType.LINE;vart=e.dict;this.data.lineCoordinates=i.Util.normalizeRect(t.getArray("L"));this._preparePopup(t)}i.Util.inherit(e,u,{});returne}(),w=function(){functione(e){u.call(this,e);this.data.annotationType=i.AnnotationType.HIGHLIGHT;this._preparePopup(e.dict)}i.Util.inherit(e,u,{});returne}(),k=function(){functione(e){u.call(this,e);this.data.annotationType=i.AnnotationType.UNDERLINE;this._preparePopup(e.dict)}i.Util.inherit(e,u,{});returne}(),S=function(){functione(e){u.call(this,e);this.data.annotationType=i.AnnotationType.SQUIGGLY;this._preparePopup(e.dict)}i.Util.inherit(e,u,{});returne}(),C=function(){functione(e){u.call(this,e);this.data.annotationType=i.AnnotationType.STRIKEOUT;this._preparePopup(e.dict)}i.Util.inherit(e,u,{});returne}(),x=function(){functione(e){u.call(this,e);vart=newn.FileSpec(e.dict.get("FS"),e.xref);this.data.annotationType=i.AnnotationType.FILEATTACHMENT;this.data.file=t.serializable;this._preparePopup(e.dict)}i.Util.inherit(e,u,{});returne}();t.Annotation=u;t.AnnotationBorderStyle=h;t.AnnotationFactory=a},function(e,t,r){"use strict";functiona(e){return0!=(1&e)}functioni(e){return0==(1&e)}functionn(e,t,r){for(vara=t,i=e.length;a<i;++a)if(e[a]!==r)returna;returna}functiono(e,t,r,a){for(vari=t;i<r;++i)e[i]=a}functions(e,t,r){for(vara=t,i=r-1;a<i;++a,--i){varn=e[a];e[a]=e[i];e[i]=n}}functionc(e,t,r){return{str:e,dir:r?"ttb":t?"ltr":"rtl"}}functionl(e,t,r){varl=!0,m=e.length;if(0===m||r)returnc(e,l,r);d.length=m;g.length=m;varp,b,v=0;for(p=0;p<m;++p){d[p]=e.charAt(p);vary=e.charCodeAt(p),w="L";if(y<=255)w=h[y];elseif(1424<=y&&y<=1524)w="R";elseif(1536<=y&&y<=1791){w=f[255&y];w||(0,u.warn)("Bidi: invalid Unicode character "+y.toString(16))}else1792<=y&&y<=2220&&(w="AL");"R"!==w&&"AL"!==w&&"AN"!==w||v++;g[p]=w}if(0===v){l=!0;returnc(e,l)}if(-1===t)if(v/m<.3){l=!0;t=0}else{l=!1;t=1}vark=[];for(p=0;p<m;++p)k[p]=t;varS=a(t)?"R":"L",C=S,x=C,A=C;for(p=0;p<m;++p)"NSM"===g[p]?g[p]=A:A=g[p];A=C;varP;for(p=0;p<m;++p){P=g[p];"EN"===P?g[p]="AL"===A?"AN":"EN":"R"!==P&&"L"!==P&&"AL"!==P||(A=P)}for(p=0;p<m;++p){P=g[p];"AL"===P&&(g[p]="R")}for(p=1;p<m-1;++p){"ES"===g[p]&&"EN"===g[p-1]&&"EN"===g[p+1]&&(g[p]="EN");"CS"!==g[p]||"EN"!==g[p-1]&&"AN"!==g[p-1]||g[p+1]!==g[p-1]||(g[p]=g[p-1])}for(p=0;p<m;++p)if("EN"===g[p]){varI;for(I=p-1;I>=0&&"ET"===g[I];--I)g[I]="EN";for(I=p+1;I<m&&"ET"===g[I];++I)g[I]="EN"}for(p=0;p<m;++p){P=g[p];"WS"!==P&&"ES"!==P&&"ET"!==P&&"CS"!==P||(g[p]="ON")}A=C;for(p=0;p<m;++p){P=g[p];"EN"===P?g[p]="L"===A?"L":"EN":"R"!==P&&"L"!==P||(A=P)}for(p=0;p<m;++p)if("ON"===g[p]){var_=n(g,p+1,"ON"),O=C;p>0&&(O=g[p-1]);varT=x;_+1<m&&(T=g[_+1]);"L"!==O&&(O="R");"L"!==T&&(T="R");O===T&&o(g,p,_,O);p=_-1}for(p=0;p<m;++p)"ON"===g[p]&&(g[p]=S);for(p=0;p<m;++p){P=g[p];i(k[p])?"R"===P?k[p]+=1:"AN"!==P&&"EN"!==P||(k[p]+=2):"L"!==P&&"AN"!==P&&"EN"!==P||(k[p]+=1)}varE,R=-1,F=99;for(p=0,b=k.length;p<b;++p){E=k[p];R<E&&(R=E);F>E&&a(E)&&(F=E)}for(E=R;E>=F;--E){varB=-1;for(p=0,b=k.length;p<b;++p)if(k[p]<E){if(B>=0){s(d,B,p);B=-1}}elseB<0&&(B=p);B>=0&&s(d,B,k.length)}for(p=0,b=d.length;p<b;++p){varM=d[p];"<"!==M&&">"!==M||(d[p]="")}returnc(d.join(""),l)}Object.defineProperty(t,"__esModule",{value:!0});t.bidi=void0;varu=r(0),h=["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
;t.data=C;returnb}if(n){varx=s(l,o);if(g.length>x+p)t.data=g.subarray(0,x+p);else{t.data=newUint8Array(x+p);t.data.set(g.subarray(0,p))}t.data.set(g.subarray(0,x),p);c(e.data,l.length-o,p+x)}elset.data=g.subarray(0,p);returnb}(P.loca,P.glyf,F,G,D,M)}if(!P.hhea)thrownewc.FormatError('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}varW={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=W.ascent/W.unitsPerEm;this.descent=W.descent/W.unitsPerEm;if(P.post){(function(e,t,r){vara=(i.start?i.start:0)+e.offset;i.pos=a;varn=e.length,o=a+n,s=i.getInt32();i.getBytes(28);varl,u,h=!0;switch(s){case65536:l=C;break;case131072:varf=i.getUint16();if(f!==r){h=!1;break}vard=[];for(u=0;u<f;++u){varg=i.getUint16();if(g>=32768){h=!1;break}d.push(g)}if(!h)break;for(varm=[],p=[];i.pos<o;){varb=i.getByte();p.length=b;for(u=0;u<b;++u)p[u]=String.fromCharCode(i.getByte());m.push(p.join(""))}l=[];for(u=0;u<f;++u){varv=d[u];v<258?l.push(C[v]):l.push(m[v-258])}break;case196608:break;default:(0,c.warn)("Unknown/unsupported post table version "+s);h=!1;t.defaultEncoding&&(l=t.defaultEncoding)}t.glyphNames=l;returnh})(P.post,n,F)||(P.post=null)}varX,V=[];if(n.composite){varY=n.cidToGidMap||[],K=0===Y.length;n.cMap.forEach(function(e,t){if(t>65535)thrownewc.FormatError("Max size of CID is 65,535");varr=-1;K?r=t:void0!==Y[t]&&(r=Y[t]);r>=0&&r<F&&b(r)&&(V[e]=r)});!M||!K&&V[0]||(V[0]=F-1)}else{varJ=function(e,t,r,a){if(!e){(0,c.warn)("No cmap table available.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}vari,n=(t.start?t.start:0)+e.offset;t.pos=n;t.getUint16();for(varo,s=t.getUint16(),l=!1,u=0;u<s;u++){varh=t.getUint16(),f=t.getUint16(),d=t.getInt32()>>>0,g=!1;if(0===h&&0===f)g=!0;elseif(1===h&&0===f)g=!0;elseif(3!==h||1!==f||!a&&o){if(r&&3===h&&0===f){g=!0;l=!0}}else{g=!0;r||(l=!0)}g&&(o={platformId:h,encodingId:f,offset:d});if(l)break}o&&(t.pos=n+o.offset);if(!o||-1===t.peekByte()){(0,c.warn)("Could not find a preferred cmap table.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}varm=t.getUint16();t.getUint16();t.getUint16();varp,b,v=!1,y=[];if(0===m){for(p=0;p<256;p++){varw=t.getByte();w&&y.push({charCode:p,glyphId:w})}v=!0}elseif(4===m){vark=t.getUint16()>>1;t.getBytes(6);varS,C=[];for(S=0;S<k;S++)C.push({end:t.getUint16()});t.getUint16();for(S=0;S<k;S++)C[S].start=t.getUint16();for(S=0;S<k;S++)C[S].delta=t.getUint16();varx=0;for(S=0;S<k;S++){i=C[S];varA=t.getUint16();if(A){varP=(A>>1)-(k-S);i.offsetIndex=P;x=Math.max(x,P+i.end-i.start+1)}elsei.offsetIndex=-1}varI=[];for(p=0;p<x;p++)I.push(t.getUint16());for(S=0;S<k;S++){i=C[S];n=i.start;var_=i.end,O=i.delta;P=i.offsetIndex;for(p=n;p<=_;p++)if(65535!==p){b=P<0?p:I[P+p-n];b=b+O&65535;y.push({charCode:p,glyphId:b})}}}else{if(6!==m){(0,c.warn)("cmap table has unsupported format: "+m);return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}varT=t.getUint16(),E=t.getUint16();for(p=0;p<E;p++){b=t.getUint16();varR=T+p;y.push({charCode:R,glyphId:b})}}y.sort(function(e,t){returne.charCode-t.charCode});for(u=1;u<y.length;u++)if(y[u-1].charCode===y[u].charCode){y.splice(u,1);u--}return{platformId:o.platformId,encodingId:o.encodingId,mappings:y,hasShortCmap:v}}(P.cmap,i,this.isSymbolicFont,n.hasEncoding),Z=J.platformId,Q=J.encodingId,$=J.mappings,ee=$.length;if(n.hasEncoding&&(3===Z&&1===Q||1===Z&&0===Q)||-1===Z&&-1===Q&&(0,h.getEncoding)(n.baseEncodingName)){varte=[];"MacRomanEncoding"!==n.baseEncodingName&&"WinAnsiEncoding"!==n.baseEncodingName||(te=(0,h.getEncoding)(n.baseEncodingName));varre=(0,u.getGlyphsUnicode)();for(X=0;X<256;X++){varae,ie;ae=this.differences&&Xinthis.differences?this.differences[X]:Xinte&&""!==te[X]?te[X]:h.StandardEncoding[X];if(ae){ie=o(ae,re);varne;3===Z&&1===Q?ne=re[ie]:1===Z&&0===Q&&(ne=h.MacRomanEncoding.indexOf(ie));varoe=!1;for(O=0;O<ee;++
}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],C=[39717,1941,229,405],x=[32,8],A=17;v.prototype={onPageInformation:function(e){this.currentPageInfo=e;vart=e.width+7>>3,r=newUint8Array(t*e.height);if(e.defaultPixelValue)for(vara=0,i=r.length;a<i;a++)r[a]=255;this.buffer=r},drawBitmap:function(e,t){varr,a,i,o,s=this.currentPageInfo,c=e.width,l=e.height,u=s.width+7>>3,h=s.combinationOperatorOverride?e.combinationOperator:s.combinationOperator,f=this.buffer,d=128>>(7&e.x),g=e.y*u+(e.x>>3);switch(h){case0:for(r=0;r<l;r++){i=d;o=g;for(a=0;a<c;a++){t[r][a]&&(f[o]|=i);i>>=1;if(!i){i=128;o++}}g+=u}break;case2:for(r=0;r<l;r++){i=d;o=g;for(a=0;a<c;a++){t[r][a]&&(f[o]^=i);i>>=1;if(!i){i=128;o++}}g+=u}break;default:thrownewn("operator "+h+" is not supported")}},onImmediateGenericRegion:function(e,r,a,i){varn=e.info,o=newt(r,a,i),s=c(e.mmr,n.width,n.height,e.template,e.prediction,null,e.at,o);this.drawBitmap(n,s)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(e,r,a,i,o,s){if(e.huffman)thrownewn("huffman is not supported");varc=this.symbols;c||(this.symbols=c={});for(varl=[],h=0,f=a.length;h<f;h++)l=l.concat(c[a[h]]);vard=newt(i,o,s);c[r]=u(e.huffman,e.refinement,l,e.numberOfNewSymbols,e.numberOfExportedSymbols,void0,e.template,e.at,e.refinementTemplate,e.refinementAt,d)},onImmediateTextRegion:function(e,r,i,n,o){for(vars=e.info,c=this.symbols,l=[],u=0,f=r.length;u<f;u++)l=l.concat(c[r[u]]);vard=(0,a.log2)(l.length),g=newt(i,n,o),m=h(e.huffman,e.refinement,s.width,s.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,l,d,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,void0,e.refinementTemplate,e.refinementAt,g);this.drawBitmap(s,m)},onImmediateLosslessTextRegion:function(){this.onImmediateTextRegion.apply(this,arguments)}};y.prototype={parseChunks:function(e){returnb(e)}};returny}();t.Jbig2Image=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.JpegImage=void0;vara="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},i=r(0),n=function(){functione(e){this.message="JPEG error: "+e}e.prototype=newError;e.prototype.name="JpegError";e.constructor=e;returne}(),o=function(){functione(){this.decodeTransform=null;this.colorTransform=-1}functiont(e,t){for(varr,a,i=0,n=[],o=16;o>0&&!e[o-1];)o--;n.push({children:[],index:0});vars,c=n[0];for(r=0;r<o;r++){for(a=0;a<e[r];a++){c=n.pop();c.children[c.index]=t[i];for(;c.index>0;)c=n.pop();c.index++;n.push(c);for(;n.length<=r;){n.push(s={children:[],index:0});c.children[c.index]=s.children;c=s}i++}if(r+1<o){n.push(s={children:[],index:0});c.children[c.index]=s.children;c=s}}returnn[0].children}functionr(e,t,r){return64*((e.blocksPerLine+1)*t+r)}functiono(e,t,o,s,c,l,f,d,g){functionm(){if(M>0){M--;returnB>>M&1}B=e[t++];if(255===B){varr=e[t++];if(r)thrownewn("unexpected marker "+(B<<8|r).toString(16))}M=7;returnB>>>7}functionp(e){for(vart=e;;){t=t[m()];if("number"==typeoft)returnt;if("object"!==(void0===t?"undefined":a(t)))thrownewn("invalid huffman sequence")}}functionb(e){for(vart=0;e>0;){t=t<<1|m();e--}returnt}functionv(e){if(1===e)return1===m()?1:-1;vart=b(e);returnt>=1<<e-1?t:t+(-1<<e)+1}functiony(e,t){varr=p(e.huffmanTableDC),a=0===r?0:v(r);e.blockData[t]=e.pred+=a;for(vari=1;i<64;){varn=p(e.huffmanTableAC),o=15&n,s=n>>4;if(0!==o){i+=s;varc=h[i];e.blockData[t+c]=v(o);i++}else{if(s<15)break;i+=16}}}functionw(e,t){varr=p(e.huffmanTableDC),a=0===r?0:v(r)<<g;e.blockData[t]=e.pred+=a}functionk(e,t){e.blockData[t]|=m()<<g}functionS(e,t){if(D>0)D--;elsefor(varr=l,a=f;r<=a;){vari=p(e.huffmanTableAC),n=15&i,o=i>>4;if(0!==n){r+=o;vars=h[r];e.blockData[t+s]=v(n)*(1<<g);r++}else{if(o<15){D=b(o)+(1<<o)-1;break}r+=16}}}functionC(e,t){for(varr,a,i=l,o=f,s=0;i<=o;){varc=h[i];switch(L){case0:a=p(e.huffmanTableAC);r=15&a;s=a>>4;
for(varr=e.coords,a=e.colors,n=newInt32Array(16),o=newInt32Array(4);t.hasData;){vars=t.readFlag();if(!(0<=s&&s<=3))thrownewi.FormatError("Unknown type7 flag");varc,l,u=r.length;for(c=0,l=0!==s?12:16;c<l;c++)r.push(t.readCoordinate());varh=a.length;for(c=0,l=0!==s?2:4;c<l;c++)a.push(t.readComponents());varf,d,g,m;switch(s){case0:n[12]=u+3;n[13]=u+4;n[14]=u+5;n[15]=u+6;n[8]=u+2;n[9]=u+13;n[10]=u+14;n[11]=u+7;n[4]=u+1;n[5]=u+12;n[6]=u+15;n[7]=u+8;n[0]=u;n[1]=u+11;n[2]=u+10;n[3]=u+9;o[2]=h+1;o[3]=h+2;o[0]=h;o[1]=h+3;break;case1:f=n[12];d=n[13];g=n[14];m=n[15];n[12]=m;n[13]=u+0;n[14]=u+1;n[15]=u+2;n[8]=g;n[9]=u+9;n[10]=u+10;n[11]=u+3;n[4]=d;n[5]=u+8;n[6]=u+11;n[7]=u+4;n[0]=f;n[1]=u+7;n[2]=u+6;n[3]=u+5;f=o[2];d=o[3];o[2]=d;o[3]=h;o[0]=f;o[1]=h+1;break;case2:f=n[15];d=n[11];n[12]=n[3];n[13]=u+0;n[14]=u+1;n[15]=u+2;n[8]=n[7];n[9]=u+9;n[10]=u+10;n[11]=u+3;n[4]=d;n[5]=u+8;n[6]=u+11;n[7]=u+4;n[0]=f;n[1]=u+7;n[2]=u+6;n[3]=u+5;f=o[3];o[2]=o[1];o[3]=h;o[0]=f;o[1]=h+1;break;case3:n[12]=n[0];n[13]=u+0;n[14]=u+1;n[15]=u+2;n[8]=n[1];n[9]=u+9;n[10]=u+10;n[11]=u+3;n[4]=n[2];n[5]=u+8;n[6]=u+11;n[7]=u+4;n[0]=n[3];n[1]=u+7;n[2]=u+6;n[3]=u+5;o[2]=o[0];o[3]=h;o[0]=o[1];o[1]=h+1}e.figures.push({type:"patch",coords:newInt32Array(n),colors:newInt32Array(o)})}}functionh(e){for(vart=e.coords[0][0],r=e.coords[0][1],a=t,i=r,n=1,o=e.coords.length;n<o;n++){vars=e.coords[n][0],c=e.coords[n][1];t=t>s?s:t;r=r>c?c:r;a=a<s?s:a;i=i<c?c:i}e.bounds=[t,r,a,i]}functionf(e){vart,r,a,i,n=e.coords,o=newFloat32Array(2*n.length);for(t=0,a=0,r=n.length;t<r;t++){vars=n[t];o[a++]=s[0];o[a++]=s[1]}e.coords=o;varc=e.colors,l=newUint8Array(3*c.length);for(t=0,a=0,r=c.length;t<r;t++){varu=c[t];l[a++]=u[0];l[a++]=u[1];l[a++]=u[2]}e.colors=l;varh=e.figures;for(t=0,r=h.length;t<r;t++){varf=h[t],d=f.coords,g=f.colors;for(a=0,i=d.length;a<i;a++){d[a]*=2;g[a]*=3}}}functiond(d,g,m,p){if(!(0,o.isStream)(d))thrownewi.FormatError("Mesh data is not a stream");varb=d.dict;this.matrix=g;this.shadingType=b.get("ShadingType");this.type="Pattern";this.bbox=b.getArray("BBox");varv=b.get("ColorSpace","CS");v=n.ColorSpace.parse(v,m,p);this.cs=v;this.background=b.has("Background")?v.getRgb(b.get("Background"),0):null;vary=b.get("Function"),w=y?s.PDFFunction.parseArray(m,y):null;this.coords=[];this.colors=[];this.figures=[];vark={bitsPerCoordinate:b.get("BitsPerCoordinate"),bitsPerComponent:b.get("BitsPerComponent"),bitsPerFlag:b.get("BitsPerFlag"),decode:b.getArray("Decode"),colorFn:w,colorSpace:v,numComps:w?1:v.numComps},S=newe(d,k),C=!1;switch(this.shadingType){casec.FREE_FORM_MESH:t(this,S);break;casec.LATTICE_FORM_MESH:varx=0|b.get("VerticesPerRow");if(x<2)thrownewi.FormatError("Invalid VerticesPerRow");r(this,S,x);break;casec.COONS_PATCH_MESH:l(this,S);C=!0;break;casec.TENSOR_PATCH_MESH:u(this,S);C=!0;break;default:(0,i.unreachable)("Unsupported mesh type.")}if(C){h(this);for(varA=0,P=this.figures.length;A<P;A++)a(this,A)}h(this);f(this)}e.prototype={gethasData(){if(this.stream.end)returnthis.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;vare=this.stream.getByte();if(e<0)return!1;this.buffer=e;this.bufferLength=8;return!0},readBits:function(e){vart=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();vara=this.stream.getByte();this.buffer=a&(1<<r)-1;return(t<<8-r|(255&a)>>r)>>>0}if(8===e&&0===r)returnthis.stream.getByte();for(;r<e;){t=t<<8|this.stream.getByte();r+=8}r-=e;this.bufferLength=r;this.buffer=t&(1<<r)-1;returnt>>r},align:function(){this.buffer=0;this.bufferLength=0},readFlag:function(){returnthis.readBits(this.context.bitsPerFlag)},readCoordinate:function(){vare=this.context.bitsPerCoordinate,t=this.readBits(e),r=this.readBits(e),a=this.context.decode,i=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*i*(a[1]-a[0])+a[0],r*i*(a[3]-a[2])+a[2]]},readComponents:function(){for(vare=this.context.numComps,t=this.context.bitsPerCompon