!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=37)}([function(e,t,r){"use strict";(function(e){functiona(e){ne=e}functioni(){returnne}functionn(e){ne>=re.infos&&console.log("Info: "+e)}functiono(e){ne>=re.warnings&&console.log("Warning: "+e)}functions(e){console.log("Deprecated API usage: "+e)}functionc(e){if(ne>=re.errors){console.log("Error: "+e);console.log(l())}thrownewError(e)}functionl(){try{thrownewError}catch(e){returne.stack?e.stack.split("\n").slice(2).join("\n"):""}}functionu(e,t){e||c(t)}functionh(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}functionf(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functiond(e,t){if(!e)returnnull;try{varr=t?newURL(e,t):newURL(e);if(f(r))returnr}catch(e){}returnnull}functiong(e,t,r){Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1});returnr}functionm(e){vart;returnfunction(){if(e){t=Object.create(null);e(t);e=null}returnt}}functionp(e){if("string"!=typeofe){o("The argument for removeNullCharacters must be a string.");returne}returne.replace(pe,"")}functionb(e){u(null!==e&&"object"===(void0===e?"undefined":H(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("")}functionv(e){u("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}functiony(e){if(void0!==e.length)returne.length;u(void0!==e.byteLength);returne.byteLength}functionw(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=y(r);i+=a}varo=0,s=newUint8Array(i);for(t=0;t<n;t++){r=e[t];rinstanceofUint8Array||(r="string"==typeofr?v(r):newUint8Array(r));a=r.byteLength;s.set(r,o);o+=a}returns}functionk(e){returnString.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}functionS(e){for(vart=1,r=0;e>t;){t<<=1;r++}returnr}functionC(e,t){returne[t]<<24>>24}functionx(e,t){returne[t]<<8|e[t+1]}functionA(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}functionP(){vare=newUint8Array(4);e[0]=1;return1===newUint32Array(e.buffer,0,1)[0]}function_(){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=we[e.charCodeAt(t)];a.push(i?String.fromCharCode(i):e.charAt(t))}returna.join("")}functionO(e){returndecodeURIComponent(escape(e))}functionT(e){returnunescape(encodeURIComponent(e))}functionR(e){for(vartine)return!1;return!0}functionE(e){return"boolean"==typeofe}functionB(e){return"number"==typeofe&&(0|e)===e}functionF(e){return"number"==typeofe}functionD(e){return"string"==typeofe}functionM(e){returneinstanceofArray}functionq(e){return"object"===(void0===e?"undefined":H(e))&&null!==e&&void0!==e.byteLength}functionL(e){return32===e||9===e||13===e||10===e}functionN(){return"undefined"==typeof__pdfjsdev_
if(18!==C){S[f++]=s=C;continue}v=7;y=11;w=s=0}for(varx=this.getBits(v)+y;x-->0;)S[f++]=w}u=this.generateHuffmanTable(S.subarray(0,d));h=this.generateHuffmanTable(S.subarray(d,k))}else(0,a.error)("Unknown block type in flate stream");e=this.buffer;for(varA=e?e.length:0,P=this.bufferLength;;){var_=this.getCode(u);if(_<256){if(P+1>=A){e=this.ensureBuffer(P+1);A=e.length}e[P++]=_}else{if(256===_){this.bufferLength=P;return}_-=257;_=r[_];varI=_>>16;I>0&&(I=this.getBits(I));s=(65535&_)+I;_=this.getCode(h);_=i[_];I=_>>16;I>0&&(I=this.getBits(I));varO=(65535&_)+I;if(P+s>=A){e=this.ensureBuffer(P+s);A=e.length}for(varT=0;T<s;++T,++P)e[P]=e[P-O]}}}else{varR;-1===(R=c.getByte())&&(0,a.error)("Bad block header in flate stream");varE=R;-1===(R=c.getByte())&&(0,a.error)("Bad block header in flate stream");E|=R<<8;-1===(R=c.getByte())&&(0,a.error)("Bad block header in flate stream");varB=R;-1===(R=c.getByte())&&(0,a.error)("Bad block header in flate stream");B|=R<<8;B===(65535&~E)||0===E&&0===B||(0,a.error)("Bad uncompressed block length in flate stream");this.codeBuf=0;this.codeSize=0;varF=this.bufferLength;e=this.ensureBuffer(F+E);varD=F+E;this.bufferLength=D;if(0===E)-1===c.peekByte()&&(this.eof=!0);elsefor(varM=F;M<D;++M){if(-1===(R=c.getByte())){this.eof=!0;break}e[M]=R}}};returne}(),d=function(){functione(e,t,r){if(!(0,i.isDict)(r))returne;varn=this.predictor=r.get("Predictor")||1;if(n<=1)returne;2!==n&&(n<10||n>15)&&(0,a.error)("Unsupported predictor: "+n);this.readBlock=2===n?this.readBlockTiff:this.readBlockPng;this.str=e;this.dict=e.dict;varo=this.colors=r.get("Colors")||1,s=this.bits=r.get("BitsPerComponent")||8,c=this.columns=r.get("Columns")||1;this.pixBytes=o*s+7>>3;this.rowBytes=c*o*s+7>>3;u.call(this,t);returnthis}e.prototype=Object.create(u.prototype);e.prototype.readBlockTiff=function(){vare=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){varo,s=0,c=0,l=0,u=0,h=t;if(1===a&&1===i)for(o=0;o<e;++o){varf=n[o]^s;f^=f>>1;f^=f>>2;f^=f>>4;s=(1&f)<<7;r[h++]=f}elseif(8===a){for(o=0;o<i;++o)r[h++]=n[o];for(;o<e;++o){r[h]=r[h-i]+n[o];h++}}else{vard=newUint8Array(i+1),g=(1<<a)-1,m=0,p=t,b=this.columns;for(o=0;o<b;++o)for(varv=0;v<i;++v){if(l<a){s=s<<8|255&n[m++];l+=8}d[v]=d[v]+(s>>l-a)&g;l-=a;c=c<<a|d[v];u+=a;if(u>=8){r[p++]=c>>u-8&255;u-=8}}u>0&&(r[p++]=(c<<8-u)+(s&(1<<8-u)-1))}this.bufferLength+=e}};e.prototype.readBlockPng=function(){vare=this.rowBytes,t=this.pixBytes,r=this.str.getByte(),i=this.str.getBytes(e);this.eof=!i.length;if(!this.eof){varn=this.bufferLength,o=this.ensureBuffer(n+e),s=o.subarray(n-e,n);0===s.length&&(s=newUint8Array(e));varc,l,u,h=n;switch(r){case0:for(c=0;c<e;++c)o[h++]=i[c];break;case1:for(c=0;c<t;++c)o[h++]=i[c];for(;c<e;++c){o[h]=o[h-t]+i[c]&255;h++}break;case2:for(c=0;c<e;++c)o[h++]=s[c]+i[c]&255;break;case3:for(c=0;c<t;++c)o[h++]=(s[c]>>1)+i[c];for(;c<e;++c){o[h]=(s[c]+o[h-t]>>1)+i[c]&255;h++}break;case4:for(c=0;c<t;++c){l=s[c];u=i[c];o[h++]=l+u}for(;c<e;++c){l=s[c];varf=s[c-t],d=o[h-t],g=d+l-f,m=g-d;m<0&&(m=-m);varp=g-l;p<0&&(p=-p);varb=g-f;b<0&&(b=-b);u=i[c];o[h++]=m<=p&&m<=b?d+u:p<=b?l+u:f+u}break;default:(0,a.error)("Unsupported predictor: "+r)}this.bufferLength+=e}};returne}(),g=function(){functione(e,t,r,a){for(vari;-1!==(i=e.getByte());)if(255===i){e.skip(-1);break}this.stream=e;this.maybeLength=t;this.dict=r;this.params=a;u.call(this,t)}e.prototype=Object.create(u.prototype);Object.defineProperty(e.prototype,"bytes",{get:function(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))},configurable:!0});e.prototype.ensureBuffer=function(e){if(!this.bufferLength){vart=newo.JpegImage,r=this.dict.getArray("Decode","D");if(this.forceRGB&&(0,a.isArray)(r)){for(varn=this.dict.get("BitsPerComponent")||8,s=r.length,c=newInt32Array(s),l=!1,u=(1<<n)-1,h=0;h<s;h+=2){c[h]=256*(r[h+1]-r[h])|0;c[h+1]=r[h]*u|0;256===c[h]&&0===c[h+1]||(l=!0)}l&&(t.decodeTransform=c)}if((0,i.isDict)(this.params)){varf=this.params.get("ColorTransform");(0,a.isInt)(f)
returne*(3+t)/3|0},isPassthrough:function(e){return8===e},fillRgb:o.prototype.fillRgb,isDefaultDecode:function(e){returno.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0};returne}(),f=function(){functione(e,t,r,a,i){varn=e[t+0]*r,o=e[t+1]*r,s=e[t+2]*r,c=e[t+3]*r,l=n*(-4.387332384609988*n+54.48615194189176*o+18.82290502165302*s+212.25662451639585*c-285.2331026137004)+o*(1.7149763477362134*o-5.6096736904047315*s+-17.873870861415444*c-5.497006427196366)+s*(-2.5217340131683033*s-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747)+255|0,u=n*(8.841041422036149*n+60.118027045597366*o+6.871425592049007*s+31.159100130055922*c-79.2970844816548)+o*(-15.310361306967817*o+17.575251261109482*s+131.35250912493976*c-190.9453302588951)+s*(4.444339102852739*s+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578)+255|0,h=n*(.8842522430003296*n+8.078677503112928*o+30.89978309703729*s-.23883238689178934*c-14.183576799673286)+o*(10.49593273432072*o+63.02378494754052*s+50.606957656360734*c-112.23884253719248)+s*(.03296041114873217*s+115.60384449646641*c-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)+255|0;a[i]=l>255?255:l<0?0:l;a[i+1]=u>255?255:u<0?0:u;a[i+2]=h>255?255:h<0?0:h}functiont(){this.name="DeviceCMYK";this.numComps=4;this.defaultColor=newFloat32Array(this.numComps);this.defaultColor[3]=1}t.prototype={getRgb:o.prototype.getRgb,getRgbItem:function(t,r,a,i){e(t,r,1,a,i)},getRgbBuffer:function(t,r,a,i,n,o,s){for(varc=1/((1<<o)-1),l=0;l<a;l++){e(t,r,c,i,n);r+=4;n+=3+s}},getOutputLength:function(e,t){returne/4*(3+t)|0},isPassthrough:o.prototype.isPassthrough,fillRgb:o.prototype.fillRgb,isDefaultDecode:function(e){returno.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0};returnt}(),d=function(){functione(e,t,r){this.name="CalGray";this.numComps=1;this.defaultColor=newFloat32Array(this.numComps);e||(0,a.error)("WhitePoint missing - required for color space CalGray");t=t||[0,0,0];r=r||1;this.XW=e[0];this.YW=e[1];this.ZW=e[2];this.XB=t[0];this.YB=t[1];this.ZB=t[2];this.G=r;(this.XW<0||this.ZW<0||1!==this.YW)&&(0,a.error)("Invalid WhitePoint components for "+this.name+", no fallback available");if(this.XB<0||this.YB<0||this.ZB<0){(0,a.info)("Invalid BlackPoint for "+this.name+", falling back to default");this.XB=this.YB=this.ZB=0}0===this.XB&&0===this.YB&&0===this.ZB||(0,a.warn)(this.name+", BlackPoint: XB: "+this.XB+", YB: "+this.YB+", ZB: "+this.ZB+", only default values are supported.");if(this.G<1){(0,a.info)("Invalid Gamma: "+this.G+" for "+this.name+", falling back to default");this.G=1}}functiont(e,t,r,a,i,n){varo=t[r]*n,s=Math.pow(o,e.G),c=e.YW*s,l=0|Math.max(295.8*Math.pow(c,.3333333333333333)-40.8,0);a[i]=l;a[i+1]=l;a[i+2]=l}e.prototype={getRgb:o.prototype.getRgb,getRgbItem:function(e,r,a,i){t(this,e,r,a,i,1)},getRgbBuffer:function(e,r,a,i,n,o,s){for(varc=1/((1<<o)-1),l=0;l<a;++l){t(this,e,r,i,n,c);r+=1;n+=3+s}},getOutputLength:function(e,t){returne*(3+t)},isPassthrough:o.prototype.isPassthrough,fillRgb:o.prototype.fillRgb,isDefaultDecode:function(e){returno.isDefaultDecode(e,this.numComps)},usesZeroToOneRange:!0};returne}(),g=function(){functione(e,t,r,i){this.name="CalRGB";this.numComps=3;this.defaultColor=newFloat32Array(this.numComps);e||(0,a.error)("WhitePoint missing - required for color space CalRGB");t=t||newFloat32Array(3);r=r||newFloat32Array([1,1,1]);i=i||newFloat32Array([1,0,0,0,1,0,0,0,1]);varn=e[0],o=e[1],s=e[2];this.whitePoint=e;varc=t[0],l=t[1],u=t[2];this.blackPoint=t;this.GR=r[0];this.GG=r[1];this.GB=r[2];this.MXA=i[0];this.MYA=i[1];this.MZA=i[2];this.MXB=i[3];this.MYB=i[4];this.MZB=i[5];this.MXC=i[6];this.MYC=i[7];this.MZC=i[8];(n<0||s<0||1!==o)&&(0,a.error)("Invalid WhitePoint components for "+this.name+", no fallback available");if(c<0||l<0||u<0){(0,a.info)("Invalid BlackPoint for "+this.name+" ["+c+", "+l+", "+u+"], falling back to default");this.blackPoint=newFloat32Array(3)}if(this.GR<0||this.GG<0||this.GB<0){(0,a.info)("Invalid Gamma ["+this.GR+", "+this.GG+", "+this.GB+"] for "+this.name+",
if(0!==r)break;r=1}elseif(45===e)(0,i.warn)("Badly formatted number");else{if(69!==e&&101!==e)break;e=this.peekChar();if(43===e||45===e){s=45===e?-1:1;this.nextChar()}elseif(e<48||e>57)break;t=!0}0!==r&&(n/=r);t&&(n*=Math.pow(10,s*o));returna*n},getString:function(){vare=1,t=!1,r=this.strBuf;r.length=0;for(vara=this.nextChar();;){varn=!1;switch(0|a){case-1:(0,i.warn)("Unterminated string");t=!0;break;case40:++e;r.push("(");break;case41:if(0==--e){this.nextChar();t=!0}elser.push(")");break;case92:a=this.nextChar();switch(a){case-1:(0,i.warn)("Unterminated string");t=!0;break;case110:r.push("\n");break;case114:r.push("\r");break;case116:r.push("\t");break;case98:r.push("\b");break;case102:r.push("\f");break;case92:case40:case41:r.push(String.fromCharCode(a));break;case48:case49:case50:case51:case52:case53:case54:case55:varo=15&a;a=this.nextChar();n=!0;if(a>=48&&a<=55){o=(o<<3)+(15&a);a=this.nextChar();if(a>=48&&a<=55){n=!1;o=(o<<3)+(15&a)}}r.push(String.fromCharCode(o));break;case13:10===this.peekChar()&&this.nextChar();break;case10:break;default:r.push(String.fromCharCode(a))}break;default:r.push(String.fromCharCode(a))}if(t)break;n||(a=this.nextChar())}returnr.join("")},getName:function(){vare,a,o=this.strBuf;o.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.");o.push("#");break}vars=t(e);if(-1!==s){a=e;e=this.nextChar();varc=t(e);if(-1===c){(0,i.warn)("Lexer_getName: Illegal digit ("+String.fromCharCode(e)+") in hexadecimal number.");o.push("#",String.fromCharCode(a));if(r[e])break;o.push(String.fromCharCode(e));continue}o.push(String.fromCharCode(s<<4|c))}elseo.push("#",String.fromCharCode(e))}elseo.push(String.fromCharCode(e));o.length>127&&(0,i.warn)("name token is longer than allowed by the spec: "+o.length);returnn.Name.get(o.join(""))},getHexString:function(){vare=this.strBuf;e.length=0;for(vara,n,o=this.currentChar,s=!0;;){if(o<0){(0,i.warn)("Unterminated hex string");break}if(62===o){this.nextChar();break}if(1!==r[o]){if(s){a=t(o);if(-1===a){(0,i.warn)('Ignoring invalid character "'+o+'" in hex string');o=this.nextChar();continue}}else{n=t(o);if(-1===n){(0,i.warn)('Ignoring invalid character "'+o+'" in hex string');o=this.nextChar();continue}e.push(String.fromCharCode(a<<4|n))}s=!s;o=this.nextChar()}elseo=this.nextChar()}returne.join("")},getObj:function(){for(vare=!1,t=this.currentChar;;){if(t<0)returnn.EOF;if(e)10!==t&&13!==t||(e=!1);elseif(37===t)e=!0;elseif(1!==r[t])break;t=this.nextChar()}switch(0|t){case48:case49:case50:case51:case52:case53:case54:case55:case56:case57:case43:case45:case46:returnthis.getNumber();case40:returnthis.getString();case47:returnthis.getName();case91:this.nextChar();returnn.Cmd.get("[");case93:this.nextChar();returnn.Cmd.get("]");case60:t=this.nextChar();if(60===t){this.nextChar();returnn.Cmd.get("<<")}returnthis.getHexString();case62:t=this.nextChar();if(62===t){this.nextChar();returnn.Cmd.get(">>")}returnn.Cmd.get(">");case123:this.nextChar();returnn.Cmd.get("{");case125:this.nextChar();returnn.Cmd.get("}");case41:this.nextChar();(0,i.error)("Illegal character: "+t)}for(vara=String.fromCharCode(t),o=this.knownCommands,s=o&&void0!==o[a];(t=this.nextChar())>=0&&!r[t];){varc=a+String.fromCharCode(t);if(s&&void0===o[c])break;128===a.length&&(0,i.error)("Command token too long: "+a.length);a=c;s=o&&void0!==o[a]}return"true"===a||"false"!==a&&("null"===a?null:n.Cmd.get(a))},skipToNextLine:function(){for(vare=this.currentChar;e>=0;){if(13===e){e=this.nextChar();10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}};returne}(),c={create:function(e){functiont(e,t){varr=f.get(e);if((0,i.isInt)(r)&&(t?r>=0:r>0))returnr;thrownewError('The "'+e+'" parameter in the linearization dictionary is invalid.')}varr,a,c=newo(news(e),!1,null),l=c.getObj(),u=c.getObj(),h=c.getObj(),f=c.getObj();if(!((0,i.isInt)(l)&&(0,i.isInt)(u)&&(0,n.isCmd)(h,"obj")&&(0,n.isDict)
for(vart="",a=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],i=e.length;r<i;){varn=e[r++],o=n>>4,s=15&n;if(15===o)break;t+=a[o];if(15===s)break;t+=a[s]}returnparseFloat(t)}varr=0,i=[],n=[];r=0;for(varo=e.length;r<o;){vars=e[r];if(s<=21){12===s&&(s=s<<8|e[++r]);n.push([s,i]);i=[];++r}elsei.push(function(){vari=e[r++];if(30===i)returnt();if(28===i){i=e[r++];i=(i<<24|e[r++]<<16)>>16;returni}if(29===i){i=e[r++];i=i<<8|e[r++];i=i<<8|e[r++];i=i<<8|e[r++];returni}if(i>=32&&i<=246)returni-139;if(i>=247&&i<=250)return256*(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.');returnNaN}())}returnn},parseIndex:function(e){vart,r,a=newh,i=this.bytes,n=i[e++]<<8|i[e++],o=[],s=e;if(0!==n){varc=i[e++],l=e+(n+1)*c-1;for(t=0,r=n+1;t<r;++t){for(varu=0,f=0;f<c;++f){u<<=8;u+=i[e++]}o.push(l+u)}s=o[n]}for(t=0,r=o.length-1;t<r;++t){vard=o[t],g=o[t+1];a.add(i.subarray(d,g))}return{obj:a,endPos:s}},parseNameIndex:function(e){for(vart=[],r=0,i=e.count;r<i;++r){for(varn=e.get(r),o=Math.min(n.length,127),s=[],c=0;c<o;++c){varl=n[c];0!==c||0!==l?s[c]=l<33||l>126||91===l||93===l||40===l||41===l||123===l||125===l||60===l||62===l||47===l||37===l||35===l?95:l:s[c]=l}t.push((0,a.bytesToString)(s))}returnt},parseStringIndex:function(e){for(vart=newu,r=0,i=e.count;r<i;++r){varn=e.get(r);t.add((0,a.bytesToString)(n))}returnt},createDict:function(e,t,r){for(vara=newe(r),i=0,n=t.length;i<n;++i){varo=t[i],s=o[0],c=o[1];a.setByKey(s,c)}returna},parseCharString:function(e,i,n,o){if(!i||e.callDepth>10)return!1;for(vars=e.stackSize,c=e.stack,l=i.length,u=0;u<l;){varh=i[u++],f=null;if(12===h){vard=i[u++];if(0===d){i[u-2]=139;i[u-1]=22;s=0}elsef=r[d]}elseif(28===h){c[s]=(i[u]<<24|i[u+1]<<16)>>16;u+=2;s++}elseif(14===h){if(s>=4){s-=4;if(this.seacAnalysisEnabled){e.seac=c.slice(s,s+4);return!1}}f=t[h]}elseif(h>=32&&h<=246){c[s]=h-139;s++}elseif(h>=247&&h<=254){c[s]=h<251?(h-247<<8)+i[u]+108:-(h-251<<8)-i[u]-108;u++;s++}elseif(255===h){c[s]=(i[u]<<24|i[u+1]<<16|i[u+2]<<8|i[u+3])/65536;u+=4;s++}elseif(19===h||20===h){e.hints+=s>>1;u+=e.hints+7>>3;s%=2;f=t[h]}else{if(10===h||29===h){varg;g=10===h?n:o;if(!g){f=t[h];(0,a.warn)("Missing subrsIndex for "+f.id);return!1}varm=32768;g.count<1240?m=107:g.count<33900&&(m=1131);varp=c[--s]+m;if(p<0||p>=g.count||isNaN(p)){f=t[h];(0,a.warn)("Out of bounds subrIndex for "+f.id);return!1}e.stackSize=s;e.callDepth++;varb=this.parseCharString(e,g.get(p),n,o);if(!b)return!1;e.callDepth--;s=e.stackSize;continue}if(11===h){e.stackSize=s;return!0}f=t[h]}if(f){f.stem&&(e.hints+=s>>1);if("min"inf&&!e.undefStack&&s<f.min){(0,a.warn)("Not enough parameters for "+f.id+"; actual: "+s+", expected: "+f.min);return!1}if(e.firstStackClearing&&f.stackClearing){e.firstStackClearing=!1;s-=f.min;s>=2&&f.stem?s%=2:s>1&&(0,a.warn)("Found too many parameters for stack-clearing command");s>0&&c[s-1]>=0&&(e.width=c[s-1])}if("stackDelta"inf){"stackFn"inf&&f.stackFn(c,s);s+=f.stackDelta}elseif(f.stackClearing)s=0;elseif(f.resetStack){s=0;e.undefStack=!1}elseif(f.undefStack){s=0;e.undefStack=!0;e.firstStackClearing=!1}}}e.stackSize=s;return!0},parseCharStrings:function(e,t,r,i,n){for(varo=[],s=[],c=e.count,l=0;l<c;l++){varu=e.get(l),h={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null},f=!0,d=null;if(i&&n.length){varg=i.getFDIndex(l);if(-1===g){(0,a.warn)("Glyph index is not in fd select.");f=!1}if(g>=n.length){(0,a.warn)("Invalid fd index for glyph index.");f=!1}f&&(d=n[g].privateDict.subrsIndex)}elset&&(d=t);f&&(f=this.parseCharString(h,u,d,r));null!==h.width&&(s[l]=h.width);null!==h.seac&&(o[l]=h.seac);f||e.set(l,newUint8Array([14]))}return{charStrings:e,seacs:o,widths:s}},emptyPrivateDictionary:function(e){vart=this.createDict(g,[],e.strings);e.setByKey(18,[0,0]);e.privateDict=t},parsePrivateDict:function(e){if(e.hasName("Private")){vart=e.getByName("Private");if((0,a.isArray)(t)&&2===t.length){varr=t[0],i=t[1];if(0===r||i>=this.bytes.length)this.emptyPriva
;if(P!==a.NativeImageDecoding.NONE&&!x&&!A&&rinstanceofn.JpegStream&&e.isSupported(r,this.xref,t)){o.addOp(a.OPS.paintJpegXObject,m);this.handler.send("obj",[_,this.pageIndex,"JpegStream",r.getIR(this.options.forceDataSchema)]);s&&(c[s]={fn:a.OPS.paintJpegXObject,args:m})}else{varI=null;P===a.NativeImageDecoding.DECODE&&(rinstanceofn.JpegStream||Ainstanceofn.JpegStream||xinstanceofn.JpegStream)&&(I=newe(this.xref,t,this.handler,this.options.forceDataSchema));y.PDFImage.buildImage(this.handler,this.xref,t,r,i,I).then(function(e){vart=e.createImageData(!1);l.handler.send("obj",[_,l.pageIndex,"Image",t],[t.data.buffer])}).catch(function(e){(0,a.warn)("Unable to decode image: "+e);l.handler.send("obj",[_,l.pageIndex,"Image",null])});o.addOp(a.OPS.paintImageXObject,m);s&&(c[s]={fn:a.OPS.paintImageXObject,args:m})}}else{g=newy.PDFImage(this.xref,t,r,i,null,null).createImageData(!0);o.addOp(a.OPS.paintInlineImageXObject,[g])}}}}else(0,a.warn)("Image dimensions are missing, or not numbers.")},handleSMask:function(e,t,r,a,i){varn=e.get("G"),o={subtype:e.get("S").name,backdrop:e.get("BC")},s=e.get("TR");if((0,f.isPDFFunction)(s)){for(varc=f.PDFFunction.parse(this.xref,s),l=newUint8Array(256),u=newFloat32Array(1),h=0;h<256;h++){u[0]=h/255;c(u,0,u,0);l[h]=255*u[0]|0}o.transferMap=l}returnthis.buildFormXObject(t,n,o,r,a,i.state.clone())},handleTilingType:function(e,t,r,a,i,n,s){varc=newS,l=[i.get("Resources"),r],u=o.Dict.merge(this.xref,l);returnthis.getOperatorList({stream:a,task:s,resources:u,operatorList:c}).then(function(){n.addDependencies(c.dependencies);n.addOp(e,(0,h.getTilingPatternIR)({fnArray:c.fnArray,argsArray:c.argsArray},i,t))})},handleSetFont:function(e,t,r,i,n,o){varc,l=this;if(t){t=t.slice();c=t[0].name}returnthis.loadFont(c,r,e).then(function(t){returnt.font.isType3Font?t.loadType3Data(l,e,i,n).then(function(){returnt}).catch(function(e){l.handler.send("UnsupportedFeature",{featureId:a.UNSUPPORTED_FEATURES.font});returnnewk("g_font_error",news.ErrorFont("Type3 font load error: "+e),t.font)}):t}).then(function(e){o.font=e.font;e.send(l.handler);returne.loadedName})},handleText:function(e,t){varr=this,i=t.font,n=i.charsToGlyphs(e),o=!!(t.textRenderingMode&a.TextRenderingMode.ADD_TO_PATH_FLAG);if(i.data&&(o||this.options.disableFontFace))for(vars=function(e){if(!i.renderer.hasBuiltPath(e)){vart=i.renderer.getPathJs(e);r.handler.send("commonobj",[i.loadedName+"_path_"+e,"FontPath",t])}},c=0,l=n.length;c<l;c++){varu=n[c];s(u.fontChar);varh=u.accent;h&&h.fontChar&&s(h.fontChar)}returnn},setGState:function(e,t,r,i,n){for(vars=this,c=[],l=t.getKeys(),u=Promise.resolve(),h=0,f=l.length;h<f;h++)!function(){varf=l[h],g=t.get(f);switch(f){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":c.push([f,g]);break;case"Font":u=u.then(function(){returns.handleSetFont(e,null,g[0],r,i,n.state).then(function(e){r.addDependency(e);c.push([f,[e,g[1]]])})});break;case"BM":c.push([f,d(g)]);break;case"SMask":if((0,o.isName)(g,"None")){c.push([f,!1]);break}if((0,o.isDict)(g)){u=u.then(function(){returns.handleSMask(g,e,r,i,n)});c.push([f,!0])}else(0,a.warn)("Unsupported SMask type");break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,a.info)("graphic state operator "+f);break;default:(0,a.info)("Unknown graphic state operator "+f)}}();returnu.then(function(){c.length>0&&r.addOp(a.OPS.setGState,[c])})},loadFont:function(e,t,r){functioni(){returnPromise.resolve(newk("g_font_error",news.ErrorFont("Font "+e+" is not available"),t))}varn,c=this,l=this.xref;if(t){(0,a.assert)((0,o.isRef)(t));n=t}else{varu=r.get("Font");if(!u){(0,a.warn)("fontRes not available");returni()}n=u.getRaw(e)}if(!n){(0,a.warn)("fontRef not available");returni()}if(this.fontCache.has(n))returnthis.fontCache.get(n);t=l.fetchIfRef(n);if(!(0,o.isDict)(t))returni();if(t.translated)returnt.translated;varh,f=(0,a.createPromiseCapability)(),d=this.preEvaluateFont(t),g=d.descriptor,m=(0,o.isRef)(n
C=g+k;S+=k*r}v=this.decodeSignBit(C,b,S);o[S]=v;n[S]=1;this.setNeighborsSignificance(C,b,S);u[S]|=2;S=y;for(varx=g;x<=C;x++,S+=r)l[S]++;k++}for(C=g+k;C<e;C++,S+=r)if(!n[S]&&0==(1&u[S])){varA=c[i[S]],P=t.readBit(s,A);if(1===P){v=this.decodeSignBit(C,b,S);o[S]=v;n[S]=1;this.setNeighborsSignificance(C,b,S);u[S]|=2}l[S]++}}}},checkSegmentationSymbol:function(){vare=this.decoder,t=this.contexts;10!=(e.readBit(t,17)<<3|e.readBit(t,17)<<2|e.readBit(t,17)<<1|e.readBit(t,17))&&(0,a.error)("JPX Error: Invalid segmentation symbol")}};returne}(),P=function(){functione(){}e.prototype.calculate=function(e,t,r){for(vara=e[0],i=1,n=e.length;i<n;i++)a=this.iterate(a,e[i],t,r);returna};e.prototype.extend=function(e,t,r){vara=t-1,i=t+1,n=t+r-2,o=t+r;e[a--]=e[i++];e[o++]=e[n--];e[a--]=e[i++];e[o++]=e[n--];e[a--]=e[i++];e[o++]=e[n--];e[a]=e[i];e[o]=e[n]};e.prototype.iterate=function(e,t,r,a){vari,n,o,s,c,l,u=e.width,h=e.height,f=e.items,d=t.width,g=t.height,m=t.items;for(o=0,i=0;i<h;i++){s=2*i*d;for(n=0;n<u;n++,o++,s+=2)m[s]=f[o]}f=e.items=null;varp=newFloat32Array(d+8);if(1===d){if(0!=(1&r))for(l=0,o=0;l<g;l++,o+=d)m[o]*=.5}elsefor(l=0,o=0;l<g;l++,o+=d){p.set(m.subarray(o,o+d),4);this.extend(p,4,d);this.filter(p,4,d);m.set(p.subarray(4,4+d),o)}varb=16,v=[];for(i=0;i<b;i++)v.push(newFloat32Array(g+8));vary,w=0;e=4+g;if(1===g){if(0!=(1&a))for(c=0;c<d;c++)m[c]*=.5}elsefor(c=0;c<d;c++){if(0===w){b=Math.min(d-c,b);for(o=c,s=4;s<e;o+=d,s++)for(y=0;y<b;y++)v[y][s]=m[o+y];w=b}w--;vark=v[w];this.extend(k,4,g);this.filter(k,4,g);if(0===w){o=c-b+1;for(s=4;s<e;o+=d,s++)for(y=0;y<b;y++)m[o+y]=v[y][s]}}return{width:d,height:g,items:m}};returne}(),_=function(){functione(){P.call(this)}e.prototype=Object.create(P.prototype);e.prototype.filter=function(e,t,r){vara=r>>1;t|=0;vari,n,o,s,c=-1.586134342059924,l=-.052980118572961,u=.882911075530934,h=.443506852043971,f=1.230174104914001;i=t-3;for(n=a+4;n--;i+=2)e[i]*=.8128930661159609;i=t-2;o=h*e[i-1];for(n=a+3;n--;i+=2){s=h*e[i+1];e[i]=f*e[i]-o-s;if(!n--)break;i+=2;o=h*e[i+1];e[i]=f*e[i]-o-s}i=t-1;o=u*e[i-1];for(n=a+2;n--;i+=2){s=u*e[i+1];e[i]-=o+s;if(!n--)break;i+=2;o=u*e[i+1];e[i]-=o+s}i=t;o=l*e[i-1];for(n=a+1;n--;i+=2){s=l*e[i+1];e[i]-=o+s;if(!n--)break;i+=2;o=l*e[i+1];e[i]-=o+s}if(0!==a){i=t+1;o=c*e[i-1];for(n=a;n--;i+=2){s=c*e[i+1];e[i]-=o+s;if(!n--)break;i+=2;o=c*e[i+1];e[i]-=o+s}}};returne}(),I=function(){functione(){P.call(this)}e.prototype=Object.create(P.prototype);e.prototype.filter=function(e,t,r){vara=r>>1;t|=0;vari,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};returne}();returne}();t.JpxImage=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FileSpec=t.XRef=t.ObjectLoader=t.Catalog=void0;vara="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},i=function(){functione(e,t){varr=[],a=!0,i=!1,n=void0;try{for(varo,s=e[Symbol.iterator]();!(a=(o=s.next()).done);a=!0){r.push(o.value);if(t&&r.length===t)break}}catch(e){i=!0;n=e}finally{try{!a&&s.return&&s.return()}finally{if(i)thrown}}returnr}returnfunction(t,r){if(Array.isArray(t))returnt;if(Symbol.iteratorinObject(t))returne(t,r);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}}(),n=r(0),o=r(1),s=r(5),c=r(12),l=r(13),u=r(3),h=function(){functione(e,t,r){this.pdfManager=e;this.xref=t;this.catDict=t.getCatalogObj();(0,n.assert)((0,o.isDict)(this.catDict),"catalog object is not a dictionary");this.fontCache=newo.RefSetCache;this.builtInCMapCache=Object.create(null);this.pageKidsCountCache=newo.RefSetCache;this.pageFactory=r;this.pagePromises=[]}e.prototype={getmetadata(){vare=this.catDict.getRaw("Metadata");if(!(0,o.isRef)(e))return(0,n.shadow)(this,"metadata",null);vart,r=!!this.xref.encrypt&&this.xref.encrypt.encryptMetadata,a=this.xref.fetch(e,!r);if(a&&(0,o.isDict)(a.dict)){vari=a.dict.get("Type"),s=a.dict.get("Subtype");if((0,o.isName)(i,"Metadata"
_onProgress:function(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})},getisStreamingSupported(){return!1},read:function(){if(null!==this._queuedChunk){vare=this._queuedChunk;this._queuedChunk=null;returnPromise.resolve({value:e,done:!1})}if(this._done)returnPromise.resolve({value:void0,done:!0});vart=(0,c.createPromiseCapability)();this._requests.push(t);returnt.promise},cancel:function(e){this._done=!0;this._requests.forEach(function(e){e.resolve({value:void0,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";vara="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe};!function(e,t){for(varrint)e[r]=t[r]}(t,function(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=7)}([function(e,t,r){functioni(e){return"string"==typeofe||"symbol"===(void0===e?"undefined":o(e))}functionn(e,t,r){if("function"!=typeofe)thrownewTypeError("Argument is not a function");returnFunction.prototype.apply.call(e,t,r)}varo="function"==typeofSymbol&&"symbol"===a(Symbol.iterator)?function(e){returnvoid0===e?"undefined":a(e)}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void0===e?"undefined":a(e)},s=r(1),c=s.assert;t.typeIsObject=function(e){return"object"===(void0===e?"undefined":o(e))&&null!==e||"function"==typeofe};t.createDataProperty=function(e,r,a){c(t.typeIsObject(e));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,AssertionErro
vart=e._controlledReadableStream,r=t._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}functionse(e,t){t=Number(t);if(!1===_e(t))thrownewRangeError("bytesWritten must be a finite");Le(e._pendingPullIntos.length>0);ee(e,t)}functionce(e,t){Le(e._pendingPullIntos.length>0);varr=e._pendingPullIntos[0];if(r.byteOffset+r.bytesFilled!==t.byteOffset)thrownewRangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)thrownewRangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer;ee(e,t.byteLength)}functionle(e){returnnewTypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}functionue(e){returnnewTypeError("Cannot "+e+" a stream using a released reader")}functionhe(e){returnnewTypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}functionfe(e){e._closedPromise=newPromise(function(t,r){e._closedPromise_resolve=t;e._closedPromise_reject=r})}functionde(e,t){e._closedPromise=Promise.reject(t);e._closedPromise_resolve=void0;e._closedPromise_reject=void0}functionge(e){e._closedPromise=Promise.resolve(void0);e._closedPromise_resolve=void0;e._closedPromise_reject=void0}functionme(e,t){Le(void0!==e._closedPromise_resolve);Le(void0!==e._closedPromise_reject);e._closedPromise_reject(t);e._closedPromise_resolve=void0;e._closedPromise_reject=void0}functionpe(e,t){Le(void0===e._closedPromise_resolve);Le(void0===e._closedPromise_reject);e._closedPromise=Promise.reject(t)}functionbe(e){Le(void0!==e._closedPromise_resolve);Le(void0!==e._closedPromise_reject);e._closedPromise_resolve(void0);e._closedPromise_resolve=void0;e._closedPromise_reject=void0}functionve(e){returnnewTypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}functionye(e){returnnewTypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}functionwe(e){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,_e=xe.IsFiniteNonNegativeNumber,Ie=xe.InvokeOrNoop,Oe=xe.PromiseInvokeOrNoop,Te=xe.TransferArrayBuffer,Re=xe.ValidateAndNormalizeQueuingStrategy,Ee=xe.ValidateAndNormalizeHighWaterMark,Be=r(0),Fe=Be.createArrayFromList,De=Be.createDataProperty,Me=Be.typeIsObject,qe=r(1),Le=qe.assert,Ne=qe.rethrowAssertionErrorRejection,Ue=r(3),je=Ue.DequeueValue,ze=Ue.EnqueueValueWithSize,He=Ue.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("Cannotcance
;for(vars=n.getKeys(),c=0,l=s.length;c<l;c++)if("Off"!==s[c]){this.data.buttonValue=s[c];break}}}i.Util.inherit(e,f,{getOperatorList:function(e,t,r){vara=newc.OperatorList;returnr?Promise.resolve(a):this.appearance?u.prototype.getOperatorList.call(this,e,t,r):Promise.resolve(a)}});returne}(),m=function(){functione(e){f.call(this,e);this.data.options=[];vart=i.Util.getInheritableProperty(e.dict,"Opt");if((0,i.isArray)(t))for(varr=e.xref,a=0,n=t.length;a<n;a++){varo=r.fetchIfRef(t[a]),s=(0,i.isArray)(o);this.data.options[a]={exportValue:s?r.fetchIfRef(o[0]):o,displayValue:s?r.fetchIfRef(o[1]):o}}(0,i.isArray)(this.data.fieldValue)||(this.data.fieldValue=[this.data.fieldValue]);this.data.combo=this.hasFieldFlag(i.AnnotationFieldFlag.COMBO);this.data.multiSelect=this.hasFieldFlag(i.AnnotationFieldFlag.MULTISELECT)}i.Util.inherit(e,f,{getOperatorList:function(e,t,r){vara=newc.OperatorList;returnr?Promise.resolve(a):u.prototype.getOperatorList.call(this,e,t,r)}});returne}(),p=function(){functione(e){u.call(this,e);this.data.annotationType=i.AnnotationType.TEXT;if(this.data.hasAppearance)this.data.name="NoIcon";else{this.data.rect[1]=this.data.rect[3]-t;this.data.rect[2]=this.data.rect[0]+t;this.data.name=e.dict.has("Name")?e.dict.get("Name").name:"Note"}this._preparePopup(e.dict)}vart=22;i.Util.inherit(e,u,{});returne}(),b=function(){functione(e){u.call(this,e);vart=this.data;t.annotationType=i.AnnotationType.LINK;n.Catalog.parseDestDictionary({destDict:e.dict,resultObj:t,docBaseUrl:e.pdfManager.docBaseUrl})}i.Util.inherit(e,u,{});returne}(),v=function(){functione(e){u.call(this,e);this.data.annotationType=i.AnnotationType.POPUP;vart=e.dict,r=t.get("Parent");if(r){vara=r.get("Subtype");this.data.parentType=(0,o.isName)(a)?a.name:null;this.data.parentId=t.getRaw("Parent").toString();this.data.title=(0,i.stringToPDFString)(r.get("T")||"");this.data.contents=(0,i.stringToPDFString)(r.get("Contents")||"");if(r.has("C")){this.setColor(r.getArray("C"));this.data.color=this.color}elsethis.data.color=null;if(!this.viewable){varn=r.get("F");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"!
;isNaN(r)&&(r=0)}}return(0,i.shadow)(this,"startXRef",r)},getmainXRefEntriesOffset(){vare=0,t=this.linearization;t&&(e=t.mainXRefEntriesOffset);return(0,i.shadow)(this,"mainXRefEntriesOffset",e)},checkHeader:function(){vare=this.stream;e.reset();if(t(e,"%PDF-",1024)){e.moveStart();for(varr,a="";(r=e.getByte())>32&&!(a.length>=12);)a+=String.fromCharCode(r);this.pdfFormatVersion||(this.pdfFormatVersion=a.substring(5))}},parseStartXRef:function(){vare=this.startXRef;this.xref.setStartXRef(e)},setup:function(e){vart=this;this.xref.parse(e);varr={createPage:function(e,r,a,i,n){returnnewf(t.pdfManager,t.xref,e,r,a,i,n)}};this.catalog=newn.Catalog(this.pdfManager,this.xref,r)},getnumPages(){vare=this.linearization,t=e?e.numPages:this.catalog.numPages;return(0,i.shadow)(this,"numPages",t)},getdocumentInfo(){vare,t={PDFFormatVersion:this.pdfFormatVersion,IsAcroFormPresent:!!this.acroForm,IsXFAPresent:!!this.xfa};try{e=this.xref.trailer.get("Info")}catch(e){if(einstanceofi.MissingDataException)throwe;(0,i.info)("The document information dictionary is invalid.")}if(e){varr=a.entries;for(varninr)if(e.has(n)){varo=e.get(n);r[n](o)?t[n]="string"!=typeofo?o:(0,i.stringToPDFString)(o):(0,i.info)('Bad value in document info for "'+n+'"')}}return(0,i.shadow)(this,"documentInfo",t)},getfingerprint(){vare,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,u.calculateMD5)(this.stream.bytes.subarray(0,r),0,r)}for(varo=0,s=e.length;o<s;o++){varc=e[o].toString(16);a+=1===c.length?"0"+c:c}return(0,i.shadow)(this,"fingerprint",a)},getPage:function(e){returnthis.catalog.getPage(e)},cleanup:function(){returnthis.catalog.cleanup()}};returne}();t.Page=f;t.PDFDocument=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FontRendererFactory=void0;vara=r(0),i=r(11),n=r(7),o=r(4),s=r(2),c=function(){functione(e,t){returne[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}functiont(e,t){returne[t]<<8|e[t+1]}functionr(r,i,n){varo,s,c,l=1===t(r,i+2)?e(r,i+8):e(r,i+16),u=t(r,i+l);if(4===u){t(r,i+l+2);varh=t(r,i+l+6)>>1;s=i+l+14;o=[];for(c=0;c<h;c++,s+=2)o[c]={end:t(r,s)};s+=2;for(c=0;c<h;c++,s+=2)o[c].start=t(r,s);for(c=0;c<h;c++,s+=2)o[c].idDelta=t(r,s);for(c=0;c<h;c++,s+=2){varf=t(r,s);if(0!==f){o[c].ids=[];for(vard=0,g=o[c].end-o[c].start+1;d<g;d++){o[c].ids[d]=t(r,s+f);f+=2}}}returno}if(12===u){e(r,i+l+4);varm=e(r,i+l+12);s=i+l+16;o=[];for(c=0;c<m;c++){o.push({start:e(r,s),end:e(r,s+4),idDelta:e(r,s+8)-e(r,s)});s+=12}returno}(0,a.error)("not supported cmap: "+u)}functionc(e,t,r,a){varn={},o=newi.CFFParser(news.Stream(e,t,r-t),n,a),c=o.parse();return{glyphs:c.charStrings.objects,subrs:c.topDict.privateDict&&c.topDict.privateDict.subrsIndex&&c.topDict.privateDict.subrsIndex.objects,gsubrs:c.globalSubrIndex&&c.globalSubrIndex.objects}}functionl(e,t,r){vara,i;if(r){a=4;i=function(e,t){returne[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}}else{a=2;i=function(e,t){returne[t]<<9|e[t+1]<<1}}for(varn=[],o=i(t,0),s=a;s<t.length;s+=a){varc=i(t,s);n.push(e.subarray(o,c));o=c}returnn}functionu(e,t){for(varr=t.charCodeAt(0),a=0,i=0,n=e.length-1;i<n;){varo=i+n+1>>1;r<e[o].start?n=o-1:i=o}e[i].start<=r&&r<=e[i].end&&(a=e[i].idDelta+(e[i].ids?e[i].ids[r-e[i].start]:r)&65535);return{charCode:r,glyphId:a}}functionh(e,t,r){functiona(e,r,a,i){t.push({cmd:"quadraticCurveTo",args:[e,r,a,i]})}vari,n=0,o=(e[n]<<24|e[n+1]<<16)>>16,s=0,c=0;n+=10;if(o<0)do{i=e[n]<<8|e[n+1];varl=e[n+2]<<8|e[n+3];n+=4;varu,f;if(1&i){u=(e[n]<<24|e[n+1]<<16)>>16;f=(e[n+2]<<24|e[n+3]<<16)>>16;n+=4}else{u=e[n++];f=e[n++]}if(2&i){s=u;c=f}else{s=0;c=0}vard=1,g=1,m=0,p=0;if(8&i){d=g=(e[n]<<24|e[n+1]<<16)/1073741824;n+=2}elseif(64&i){d=(e[n]<<24|e[n+1]<<16)/1073741824;g=(e[n+2]<<24|e[n+3]<<16)/1073741824;n+=4}elseif(128&i){d=(e[n]<<24|e[n+1]<<16)/1073741824;m=(e[n+2]<<24|e[n+3]<<16)/1073741824;p=(e[n+4]<<24|e[n+5]<<16)/1073741824;g=(e[n+6]<
returni.hintsValid}(I.fpgm,I.prep,I["cvt "],D);if(!L){deleteI.fpgm;deleteI.prep;deleteI["cvt "]}!function(e,t,r,a){if(t){e.pos=(e.start?e.start:0)+t.offset;e.pos+=t.length-2;vari=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}varn=a-i,o=n-(r.length-4*i>>1);if(o>0){vars=newUint8Array(r.length+2*o);s.set(r.data);r.data=s}}elser&&(r.data=null)}(i,I.hhea,I.hmtx,F);I.head||(0,c.error)('Required "head" table is not found');!function(e,r,a){vari=e.data,n=s(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}varo=t(i[50],i[51]);if(o<0||o>1){(0,c.info)("Attempting to fix invalid indexToLocFormat in head table: "+o);varl=r+1;if(a===l<<1){i[50]=0;i[51]=0}elseif(a===l<<2){i[50]=0;i[51]=1}else(0,c.warn)("Could not fix indexToLocFormat: "+o)}}(I.head,F,R?I.loca.length:0);varG=Object.create(null);if(R){varW=t(I.head.data[50],I.head.data[51]);G=function(e,t,r,a,i,n){varo,s,c;if(a){o=4;s=function(e,t){returne[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{o=2;s=function(e,t){returne[t]<<9|e[t+1]<<1};c=function(e,t,r){e[t]=r>>9&255;e[t+1]=r>>1&255}}varl=e.data,u=o*(1+r);if(l.length!==u){l=newUint8Array(u);l.set(e.data.subarray(0,u));e.data=l}varh=t.data,d=h.length,g=newUint8Array(d),m=s(l,0),p=0,b=Object.create(null);c(l,0,p);varv,y;for(v=0,y=o;v<r;v++,y+=o){varw=s(l,y);w>d&&(d+3&-4)===w&&(w=d);if(w>d){c(l,y,p);m=w}else{m===w&&(b[v]=!0);p+=f(h,m,w,g,p,i);c(l,y,p);m=w}}if(0===p){vark=newUint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(v=0,y=o;v<r;v++,y+=o)c(l,y,k.length);t.data=k;returnb}if(n){varS=s(l,o);if(g.length>S+p)t.data=g.subarray(0,S+p);else{t.data=newUint8Array(S+p);t.data.set(g.subarray(0,p))}t.data.set(g.subarray(0,S),p);c(e.data,l.length-o,p+S)}elset.data=g.subarray(0,p);returnb}(I.loca,I.glyf,F,W,L,M)}I.hhea||(0,c.error)('Required "hhea" table is not found');if(0===I.hhea.data[10]&&0===I.hhea.data[11]){I.hhea.data[10]=255;I.hhea.data[11]=255}varX={unitsPerEm:t(I.head.data[18],I.head.data[19]),yMax:t(I.head.data[42],I.head.data[43]),yMin:r(I.head.data[38],I.head.data[39]),ascent:t(I.hhea.data[4],I.hhea.data[5]),descent:r(I.hhea.data[6],I.hhea.data[7])};this.ascent=X.ascent/X.unitsPerEm;this.descent=X.descent/X.unitsPerEm;if(I.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})(I.post,n,F)||(I.post=null)}varV,Y=[],K=n.toUnicode,J=n.widths,Z=KinstanceofP||65536===K.length;if(n.composite){varQ=n.cidToGidMap||[],$=0===Q.length;n.cMap.forEach(function(e,t){(0,c.assert)(t<=65535,"Max size of CID is 65,535");varr=-1;$?r=t:void0!==Q[t]&&(r=Q[t]);r>=0&&r<F&&b(r,e,t)&&(Y[e]=r)});!M||!$&&Y[0]||(Y[0]=F-1)}else{varee=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}}
vari=e[r];m(f({},i.data,i.start,i.end),t)}returnt.buffer}functionb(){}functionv(){}e.prototype={getContexts:function(e){returneinthis?this[e]:this[e]=newInt8Array(65536)}};t.prototype={getdecoder(){vare=newi.ArithmeticDecoder(this.data,this.start,this.end);return(0,a.shadow)(this,"decoder",e)},getcontextCache(){vart=newe;return(0,a.shadow)(this,"contextCache",t)}};vary=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"patternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"],w=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]],k=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}],S=[39717,1941,229,405],C=[32,8],x=17;b.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,i,n,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++){n=d;o=g;for(i=0;i<c;i++){t[r][i]&&(f[o]|=n);n>>=1;if(!n){n=128;o++}}g+=u}break;case2:for(r=0;r<l;r++){n=d;o=g;for(i=0;i<c;i++){t[r][i]&&(f[o]^=n);n>>=1;if(!n){n=128;o++}}g+=u}break;default:(0,a.error)("JBIG2 error: operator "+h+" is not supported")}},onImmediateGenericRegion:function(e,r,a,i){varn=e.info,o=newt(r,a,i),c=s(e.mmr,n.width,n.height,e.template,e.prediction,null,e.at,o);this.drawBitmap(n,c)},onImmediateLosslessGenericRegion:function(){this.onImmediateGenericRegion.apply(this,arguments)},onSymbolDictionary:function(e,r,i,n,o,s){e.huffman&&(0,a.error)("JBIG2 error: huffman is not supported");varc=this.symbols;c||(this.symbols=c={});for(varu=[],h=0,f=i.length;h<f;h++)u=u.concat(c[i[h]]);vard=newt(n,o,s);c[r]=l(e.huffman,e.refinement,u,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=[],h=0,f=r.length;h<f;h++)l=l.concat(c[r[h]]);vard=(0,a.log2)(l.length),g=newt(i,n,o),m=u(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)}};v.prototype={parseChunks:function(e){returnp(e)}};returnv}();t.Jbig2Image=n},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=fun
;m=n[15];n[12]=m;n[13]=u+0;n[14]=u+1;n[15]=u+2;n[8]=g;n[11]=u+3;n[4]=d;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[11]=u+3;n[4]=d;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[11]=u+3;n[4]=n[2];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}n[5]=r.length;r.push([(-4*r[n[0]][0]-r[n[15]][0]+6*(r[n[4]][0]+r[n[1]][0])-2*(r[n[12]][0]+r[n[3]][0])+3*(r[n[13]][0]+r[n[7]][0]))/9,(-4*r[n[0]][1]-r[n[15]][1]+6*(r[n[4]][1]+r[n[1]][1])-2*(r[n[12]][1]+r[n[3]][1])+3*(r[n[13]][1]+r[n[7]][1]))/9]);n[6]=r.length;r.push([(-4*r[n[3]][0]-r[n[12]][0]+6*(r[n[2]][0]+r[n[7]][0])-2*(r[n[0]][0]+r[n[15]][0])+3*(r[n[4]][0]+r[n[14]][0]))/9,(-4*r[n[3]][1]-r[n[12]][1]+6*(r[n[2]][1]+r[n[7]][1])-2*(r[n[0]][1]+r[n[15]][1])+3*(r[n[4]][1]+r[n[14]][1]))/9]);n[9]=r.length;r.push([(-4*r[n[12]][0]-r[n[3]][0]+6*(r[n[8]][0]+r[n[13]][0])-2*(r[n[0]][0]+r[n[15]][0])+3*(r[n[11]][0]+r[n[1]][0]))/9,(-4*r[n[12]][1]-r[n[3]][1]+6*(r[n[8]][1]+r[n[13]][1])-2*(r[n[0]][1]+r[n[15]][1])+3*(r[n[11]][1]+r[n[1]][1]))/9]);n[10]=r.length;r.push([(-4*r[n[15]][0]-r[n[0]][0]+6*(r[n[11]][0]+r[n[14]][0])-2*(r[n[12]][0]+r[n[3]][0])+3*(r[n[2]][0]+r[n[8]][0]))/9,(-4*r[n[15]][1]-r[n[0]][1]+6*(r[n[11]][1]+r[n[14]][1])-2*(r[n[12]][1]+r[n[3]][1])+3*(r[n[2]][1]+r[n[8]][1]))/9]);e.figures.push({type:"patch",coords:newInt32Array(n),colors:newInt32Array(o)})}}functionu(e,t){for(varr=e.coords,a=e.colors,n=newInt32Array(16),o=newInt32Array(4);t.hasData;){vars=t.readFlag();(0,i.assert)(0<=s&&s<=3,"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){(0,i.assert)((0,o.isStream)(d),"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;
c[t]=r;s--;0===s&&i(c)}}}(l);a.isPromise(h)?h.then(f,r):f(h)}returno};a.isPromise=function(e){returne&&"function"==typeofe.then};a.resolve=function(e){returnnewa(function(t){t(e)})};a.reject=function(e){returnnewa(function(t,r){r(e)})};a.prototype={_status:null,_value:null,_handlers:null,_unhandledRejection:null,_updateStatus:function(r,i){if(1!==this._status&&this._status!==e)if(1===r&&a.isPromise(i))i.then(this._updateStatus.bind(this,1),this._updateStatus.bind(this,e));else{this._status=r;this._value=i;if(r===e&&0===this._handlers.length){this._unhandledRejection=!0;t.addUnhandledRejection(this)}t.scheduleHandlers(this)}},_resolve:function(e){this._updateStatus(1,e)},_reject:function(t){this._updateStatus(e,t)},then:function(e,r){vari=newa(function(e,t){this.resolve=e;this.reject=t});this._handlers.push({thisPromise:this,onResolve:e,onReject:r,nextPromise:i});t.scheduleHandlers(this);returni},catch:function(e){returnthis.then(void0,e)}};r.Promise=a}}();!function(){functione(){this.id="$weakmap"+t++}if(!r.WeakMap){vart=0;e.prototype={has:function(e){return!!Object.getOwnPropertyDescriptor(e,this.id)},get:function(e,t){returnthis.has(e)?e[this.id]:t},set:function(e,t){Object.defineProperty(e,this.id,{value:t,enumerable:!1,configurable:!0})},delete:function(e){deletee[this.id]}};r.WeakMap=e}}();!function(){functione(e){returnvoid0!==f[e]}functiona(){c.call(this);this._isInvalid=!0}functioni(e){""===e&&a.call(this);returne.toLowerCase()}functionn(e){vart=e.charCodeAt(0);returnt>32&&t<127&&-1===[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}functiono(e){vart=e.charCodeAt(0);returnt>32&&t<127&&-1===[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}functions(t,r,s){functionc(e){y.push(e)}varl=r||"scheme start",u=0,h="",b=!1,v=!1,y=[];e:for(;(t[u-1]!==g||0===u)&&!this._isInvalid;){varw=t[u];switch(l){case"scheme start":if(!w||!m.test(w)){if(r){c("Invalid scheme.");breake}h="";l="no scheme";continue}h+=w.toLowerCase();l="scheme";break;case"scheme":if(w&&p.test(w))h+=w.toLowerCase();else{if(":"!==w){if(r){if(w===g)breake;c("Code point not allowed in scheme: "+w);breake}h="";u=0;l="no scheme";continue}this._scheme=h;h="";if(r)breake;e(this._scheme)&&(this._isRelative=!0);l="file"===this._scheme?"relative":this._isRelative&&s&&s._scheme===this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":if("?"===w){this._query="?";l="query"}elseif("#"===w){this._fragment="#";l="fragment"}elsew!==g&&"\t"!==w&&"\n"!==w&&"\r"!==w&&(this._schemeData+=n(w));break;case"no scheme":if(s&&e(s._scheme)){l="relative";continue}c("Missing scheme.");a.call(this);break;case"relative or authority":if("/"!==w||"/"!==t[u+1]){c("Expected /, got: "+w);l="relative";continue}l="authority ignore slashes";break;case"relative":this._isRelative=!0;"file"!==this._scheme&&(this._scheme=s._scheme);if(w===g){this._host=s._host;this._port=s._port;this._path=s._path.slice();this._query=s._query;this._username=s._username;this._password=s._password;breake}if("/"===w||"\\"===w){"\\"===w&&c("\\ is an invalid code point.");l="relative slash"}elseif("?"===w){this._host=s._host;this._port=s._port;this._path=s._path.slice();this._query="?";this._username=s._username;this._password=s._password;l="query"}else{if("#"!==w){vark=t[u+1],S=t[u+2];if("file"!==this._scheme||!m.test(w)||":"!==k&&"|"!==k||S!==g&&"/"!==S&&"\\"!==S&&"?"!==S&&"#"!==S){this._host=s._host;this._port=s._port;this._username=s._username;this._password=s._password;this._path=s._path.slice();this._path.pop()}l="relative path";continue}this._host=s._host;this._port=s._port;this._path=s._path.slice();this._query=s._query;this._fragment="#";this._username=s._username;this._password=s._password;l="fragment"}break;case"relative slash":if("/"!==w&&"\\"!==w){if("file"!==this._scheme){this._host=s._host;this._port=s._port;this._username=s._username;this._password=s._password}l="relative path";continue}"\\"===w&&c("\\ is an invalid code point.");l="file"===this._scheme?"file host":"authority ignore slashes";break;