!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define("pdfjs-dist/build/pdf",[],e):"object"==typeofexports?exports["pdfjs-dist/build/pdf"]=e():t["pdfjs-dist/build/pdf"]=t.pdfjsDistBuildPdf=e()}(this,function(){returnfunction(t){functione(r){if(n[r])returnn[r].exports;vari=n[r]={i:r,l:!1,exports:{}};returnt[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}varn={};returne.m=t,e.c=n,e.i=function(t){returnt},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){varn=t&&t.__esModule?function(){returnt.default}:function(){returnt};returne.d(n,"a",n),n},e.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=13)}([function(t,e,n){"use strict";(function(t){functionn(t){et=t}functionr(){returnet}functioni(t){et>=Z.infos&&console.log("Info: "+t)}functiona(t){et>=Z.warnings&&console.log("Warning: "+t)}functions(t){console.log("Deprecated API usage: "+t)}functiono(t){throwet>=Z.errors&&(console.log("Error: "+t),console.log(c())),newError(t)}functionc(){try{thrownewError}catch(t){returnt.stack?t.stack.split("\n").slice(2).join("\n"):""}}functionl(t,e){t||o(e)}functionh(t,e){try{varn=newURL(t);if(!n.origin||"null"===n.origin)return!1}catch(t){return!1}varr=newURL(e,n);returnn.origin===r.origin}functionu(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functiond(t,e){if(!t)returnnull;try{varn=e?newURL(t,e):newURL(t);if(u(n))returnn}catch(t){}returnnull}functionf(t,e,n){returnObject.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}functionp(t){vare;returnfunction(){returnt&&(e=Object.create(null),t(e),t=null),e}}functiong(t){return"string"!=typeoft?(a("The argument for removeNullCharacters must be a string."),t):t.replace(dt,"")}functionm(t){l(null!==t&&"object"==typeoft&&void0!==t.length,"Invalid argument for bytesToString");vare=t.length,n=8192;if(e<n)returnString.fromCharCode.apply(null,t);for(varr=[],i=0;i<e;i+=n){vara=Math.min(i+n,e),s=t.subarray(i,a);r.push(String.fromCharCode.apply(null,s))}returnr.join("")}functionA(t){l("string"==typeoft,"Invalid argument for stringToBytes");for(vare=t.length,n=newUint8Array(e),r=0;r<e;++r)n[r]=255&t.charCodeAt(r);returnn}functionv(t){returnvoid0!==t.length?t.length:(l(void0!==t.byteLength),t.byteLength)}functionb(t){if(1===t.length&&t[0]instanceofUint8Array)returnt[0];vare,n,r,i=0,a=t.length;for(e=0;e<a;e++)n=t[e],r=v(n),i+=r;vars=0,o=newUint8Array(i);for(e=0;e<a;e++)n=t[e],ninstanceofUint8Array||(n="string"==typeofn?A(n):newUint8Array(n)),r=n.byteLength,o.set(n,s),s+=r;returno}functiony(t){returnString.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)}functionx(t){for(vare=1,n=0;t>e;)e<<=1,n++;returnn}functionS(t,e){returnt[e]<<24>>24}functionk(t,e){returnt[e]<<8|t[e+1]}functionC(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function_(){vart=newUint8Array(2);t[0]=1;vare=newUint16Array(t.buffer);return1===e[0]}functionw(){try{returnnewFunction(""),!0}catch(t){return!1}}functionT(t){vare,n=t.length,r=[];if("þ"===t[0]&&"ÿ"===t[1])for(e=2;e<n;e+=2)r.push(String.fromCharCode(t.charCodeAt(e)<<8|t.charCodeAt(e+1)));elsefor(e=0;e<n;++e){vari=At[t.charCodeAt(e)];r.push(i?String.fromCharCode(i):t.charAt(e))}returnr.join("")}functionL(t){returndecodeURIComponent(escape(t))}functionE(t){returnunescape(encodeURIComponent(t))}functionP(t){for(vareint)return!1;return!0}functionR(t){return"boolean"==typeoft}functionI(t){return"number"==typeoft&&(0|t)===t}functionF(t){return"number"==typeoft}functionO(t){return"string"==typeoft}functionM(t){returntinstanceofArray}functionN(t){return"object"==typeoft&&null!==t&&void0!==t.byteLength}functionD(t){return32===t||9===t||13===t||10===t}functionj(){return"undefined"==typeof__pdfjsdev_webpack__&&("object"==typeofprocess&&process+""=="[object process]")}functionU(){vart={};re
t.canvas=null,t.context=null}};varv,b=function(){functiont(t){this.baseUrl=t.baseUrl||null,this.isCompressed=t.isCompressed||!1}returnt.prototype={fetch:function(t){returnt.name?newPromise(function(e,n){varr=this.baseUrl+t.name,i=newXMLHttpRequest;this.isCompressed&&(r+=".bcmap",i.responseType="arraybuffer"),i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE&&(200===i.status||0===i.status)){vart;if(this.isCompressed&&i.response?t=newUint8Array(i.response):!this.isCompressed&&i.responseText&&(t=g(i.responseText)),t)returnvoide({cMapData:t,compressionType:this.isCompressed?m.BINARY:m.NONE});n(newError("Unable to load "+(this.isCompressed?"binary":"")+" CMap at: "+r))}}.bind(this),i.open("GET",r,!0),i.send(null)}.bind(this)):Promise.reject(newError("CMap name must be specified."))}},t}(),y=function(){functiont(){}vare=["ms","Moz","Webkit","O"],n=Object.create(null);returnt.getProp=function(t,r){if(1===arguments.length&&"string"==typeofn[t])returnn[t];r=r||document.documentElement;vari,a,s=r.style;if("string"==typeofs[t])returnn[t]=t;a=t.charAt(0).toUpperCase()+t.slice(1);for(varo=0,c=e.length;o<c;o++)if(i=e[o]+a,"string"==typeofs[i])returnn[t]=i;returnn[t]="undefined"},t.setProp=function(t,e,n){varr=this.getProp(t);"undefined"!==r&&(e.style[r]=n)},t}();v=function(){vart=document.createElement("canvas");t.width=t.height=1;vare=t.getContext("2d"),n=e.createImageData(1,1);return"undefined"!=typeofn.data.buffer};varx={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4},S=["","_self","_blank","_parent","_top"];e.CustomStyle=y,e.addLinkAttributes=i,e.isExternalLinkTargetSet=o,e.isValidUrl=c,e.getFilenameFromUrl=a,e.LinkTarget=x,e.hasCanvasTypedArrays=v,e.getDefaultSetting=s,e.DEFAULT_LINK_REL=A,e.DOMCanvasFactory=r,e.DOMCMapReaderFactory=b},function(t,e,n){"use strict";functionr(){}vari=n(0),a=n(1),s=i.AnnotationBorderStyleType,o=i.AnnotationType,c=i.stringToPDFString,l=i.Util,h=a.addLinkAttributes,u=a.LinkTarget,d=a.getFilenameFromUrl,f=i.warn,p=a.CustomStyle,g=a.getDefaultSetting;r.prototype={create:function(t){vare=t.data.annotationType;switch(e){caseo.LINK:returnnewA(t);caseo.TEXT:returnnewv(t);caseo.WIDGET:varn=t.data.fieldType;switch(n){case"Tx":returnnewy(t);case"Btn":if(t.data.radioButton)returnnewS(t);if(t.data.checkBox)returnnewx(t);f("Unimplemented button widget annotation: pushbutton");break;case"Ch":returnnewk(t)}returnnewb(t);caseo.POPUP:returnnewC(t);caseo.HIGHLIGHT:returnneww(t);caseo.UNDERLINE:returnnewT(t);caseo.SQUIGGLY:returnnewL(t);caseo.STRIKEOUT:returnnewE(t);caseo.FILEATTACHMENT:returnnewP(t);default:returnnewm(t)}}};varm=function(){functiont(t,e){this.isRenderable=e||!1,this.data=t.data,this.layer=t.layer,this.page=t.page,this.viewport=t.viewport,this.linkService=t.linkService,this.downloadManager=t.downloadManager,this.imageResourcesPath=t.imageResourcesPath,this.renderInteractiveForms=t.renderInteractiveForms,e&&(this.container=this._createContainer())}returnt.prototype={_createContainer:function(){vart=this.data,e=this.page,n=this.viewport,r=document.createElement("section"),i=t.rect[2]-t.rect[0],a=t.rect[3]-t.rect[1];r.setAttribute("data-annotation-id",t.id);varo=l.normalizeRect([t.rect[0],e.view[3]-t.rect[1]+e.view[1],t.rect[2],e.view[3]-t.rect[3]+e.view[1]]);if(p.setProp("transform",r,"matrix("+n.transform.join(",")+")"),p.setProp("transformOrigin",r,-o[0]+"px "+-o[1]+"px"),t.borderStyle.width>0){r.style.borderWidth=t.borderStyle.width+"px",t.borderStyle.style!==s.UNDERLINE&&(i-=2*t.borderStyle.width,a-=2*t.borderStyle.width);varc=t.borderStyle.horizontalCornerRadius,h=t.borderStyle.verticalCornerRadius;if(c>0||h>0){varu=c+"px / "+h+"px";p.setProp("borderRadius",r,u)}switch(t.borderStyle.style){cases.SOLID:r.style.borderStyle="solid";break;cases.DASHED:r.style.borderStyle="dashed";break;cases.BEVELED:f("Unimplemented border style: beveled");break;cases.INSET:f("Unimplemented border style: inset");break;cases.UNDERLINE:r.style.borderBottomStyle="solid"}t.color?r.style.borderColor=l.makeCssRgb(0|t.color[0],0|t.col
break;case"Image":e=t[3],a.objs.resolve(n,e);vars=8e6;e&&"data"ine&&e.data.length>s&&(a.cleanupAfterRender=!0);break;default:x("Got unknown object type "+i)}}},this),t.on("DocProgress",function(t){if(!this.destroyed){vare=this.loadingTask;e.onProgress&&e.onProgress({loaded:t.loaded,total:t.total})}},this),t.on("PageError",function(t){if(!this.destroyed){vare=this.pageCache[t.pageNum-1],n=e.intentStates[t.intent];if(n.displayReadyCapability?n.displayReadyCapability.reject(t.error):x(t.error),n.operatorList){n.operatorList.lastChunk=!0;for(varr=0;r<n.renderTasks.length;r++)n.renderTasks[r].operatorListChanged()}}},this),t.on("UnsupportedFeature",function(t){if(!this.destroyed){vare=t.featureId,n=this.loadingTask;n.onUnsupportedFeature&&n.onUnsupportedFeature(e),nt.notify(e)}},this),t.on("JpegDecode",function(t){if(this.destroyed)returnPromise.reject(newError("Worker was destroyed"));if("undefined"==typeofdocument)returnPromise.reject(newError('"document" is not defined.'));vare=t[0],n=t[1];return3!==n&&1!==n?Promise.reject(newError("Only 3 components or 1 component can be returned")):newPromise(function(t,r){vari=newImage;i.onload=function(){vare=i.width,r=i.height,a=e*r,s=4*a,o=newUint8Array(a*n),c=document.createElement("canvas");c.width=e,c.height=r;varl=c.getContext("2d");l.drawImage(i,0,0);varh,u,d=l.getImageData(0,0,e,r).data;if(3===n)for(h=0,u=0;h<s;h+=4,u+=3)o[u]=d[h],o[u+1]=d[h+1],o[u+2]=d[h+2];elseif(1===n)for(h=0,u=0;h<s;h+=4,u++)o[u]=d[h];t({data:o,width:e,height:r})},i.onerror=function(){r(newError("JpegDecode failed to load image"))},i.src=e})},this),t.on("FetchBuiltInCMap",function(t){returnthis.destroyed?Promise.reject(newError("Worker was destroyed")):this.CMapReaderFactory.fetch({name:t.name})},this)},getData:function(){returnthis.messageHandler.sendWithPromise("GetData",null)},getPage:function(t,e){if(!_(t)||t<=0||t>this.numPages)returnPromise.reject(newError("Invalid page request"));varn=t-1;if(ninthis.pagePromises)returnthis.pagePromises[n];varr=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(function(t){if(this.destroyed)thrownewError("Transport destroyed");vare=newQ(n,t,this);returnthis.pageCache[n]=e,e}.bind(this));returnthis.pagePromises[n]=r,r},getPageIndex:function(t){returnthis.messageHandler.sendWithPromise("GetPageIndex",{ref:t}).catch(function(t){returnPromise.reject(newError(t))})},getAnnotations:function(t,e){returnthis.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})},getDestinations:function(){returnthis.messageHandler.sendWithPromise("GetDestinations",null)},getDestination:function(t){returnthis.messageHandler.sendWithPromise("GetDestination",{id:t})},getPageLabels:function(){returnthis.messageHandler.sendWithPromise("GetPageLabels",null)},getAttachments:function(){returnthis.messageHandler.sendWithPromise("GetAttachments",null)},getJavaScript:function(){returnthis.messageHandler.sendWithPromise("GetJavaScript",null)},getOutline:function(){returnthis.messageHandler.sendWithPromise("GetOutline",null)},getMetadata:function(){returnthis.messageHandler.sendWithPromise("GetMetadata",null).then(function(t){return{info:t[0],metadata:t[1]?newN(t[1]):null}})},getStats:function(){returnthis.messageHandler.sendWithPromise("GetStats",null)},startCleanup:function(){this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(vart=0,e=this.pageCache.length;t<e;t++){varn=this.pageCache[t];n&&n.cleanup()}this.commonObjs.clear(),this.fontLoader.clear()}.bind(this))}},t}(),$=function(){functiont(){this.objs=Object.create(null)}returnt.prototype={ensureObj:function(t){if(this.objs[t])returnthis.objs[t];vare={capability:y(),data:null,resolved:!1};returnthis.objs[t]=e,e},get:function(t,e){if(e)returnthis.ensureObj(t).capability.promise.then(e),null;varn=this.objs[t];returnn&&n.resolved||x("Requesting object that isn't resolved yet "+t),n.data},resolve:function(t,e){varn=this.ensureObj(t);n.resolved=!0,n.data=e,n.capability.resolve(e)},isResolved:function(t){vare=this.objs;return!!e[t]&&e[t].re
functionr(t){returnt.replace(/>\\376\\377([^<]+)/g,function(t,e){for(varn=e.replace(/\\([0-3])([0-7])([0-7])/g,function(t,e,n,r){returnString.fromCharCode(64*e+8*n+1*r)}),r="",i=0;i<n.length;i+=2){vara=256*n.charCodeAt(i)+n.charCodeAt(i+1);r+=a>=32&&a<127&&60!==a&&62!==a&&38!==a?String.fromCharCode(a):"&#x"+(65536+a).toString(16).substring(1)+";"}return">"+r})}functioni(t){if("string"==typeoft){t=r(t);vare=newDOMParser;t=e.parseFromString(t,"application/xml")}elsetinstanceofDocument||s("Metadata: Invalid metadata object");this.metaDocument=t,this.metadata=Object.create(null),this.parse()}vara=n(0),s=a.error;i.prototype={parse:function(){vart=this.metaDocument,e=t.documentElement;if("rdf:rdf"!==e.nodeName.toLowerCase())for(e=e.firstChild;e&&"rdf:rdf"!==e.nodeName.toLowerCase();)e=e.nextSibling;varn=e?e.nodeName.toLowerCase():null;if(e&&"rdf:rdf"===n&&e.hasChildNodes()){varr,i,a,s,o,c,l,h=e.childNodes;for(s=0,c=h.length;s<c;s++)if(r=h[s],"rdf:description"===r.nodeName.toLowerCase())for(o=0,l=r.childNodes.length;o<l;o++)"#text"!==r.childNodes[o].nodeName.toLowerCase()&&(i=r.childNodes[o],a=i.nodeName.toLowerCase(),this.metadata[a]=i.textContent.trim())}},get:function(t){returnthis.metadata[t]||null},has:function(t){return"undefined"!=typeofthis.metadata[t]}},e.Metadata=i},function(t,e,n){"use strict";varr=n(0),i=n(1),a=r.shadow,s=i.getDefaultSetting,o=function(){functiont(t,e,n){varr=t.createShader(n);t.shaderSource(r,e),t.compileShader(r);vari=t.getShaderParameter(r,t.COMPILE_STATUS);if(!i){vara=t.getShaderInfoLog(r);thrownewError("Error during shader compilation: "+a)}returnr}functione(e,n){returnt(e,n,e.VERTEX_SHADER)}functionn(e,n){returnt(e,n,e.FRAGMENT_SHADER)}functionr(t,e){for(varn=t.createProgram(),r=0,i=e.length;r<i;++r)t.attachShader(n,e[r]);t.linkProgram(n);vara=t.getProgramParameter(n,t.LINK_STATUS);if(!a){vars=t.getProgramInfoLog(n);thrownewError("Error during program linking: "+s)}returnn}functioni(t,e,n){t.activeTexture(n);varr=t.createTexture();returnt.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),r}functiono(){f||(p=document.createElement("canvas"),f=p.getContext("webgl",{premultipliedalpha:!1}))}functionc(){vart,i;o(),t=p,p=null,i=f,f=null;vara=e(i,g),s=n(i,m),c=r(i,[a,s]);i.useProgram(c);varl={};l.gl=i,l.canvas=t,l.resolutionLocation=i.getUniformLocation(c,"u_resolution"),l.positionLocation=i.getAttribLocation(c,"a_position"),l.backdropLocation=i.getUniformLocation(c,"u_backdrop"),l.subtypeLocation=i.getUniformLocation(c,"u_subtype");varh=i.getAttribLocation(c,"a_texCoord"),u=i.getUniformLocation(c,"u_image"),d=i.getUniformLocation(c,"u_mask"),v=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,v),i.bufferData(i.ARRAY_BUFFER,newFloat32Array([0,0,1,0,0,1,0,1,1,0,1,1]),i.STATIC_DRAW),i.enableVertexAttribArray(h),i.vertexAttribPointer(h,2,i.FLOAT,!1,0,0),i.uniform1i(u,0),i.uniform1i(d,1),A=l}functionl(t,e,n){varr=t.width,a=t.height;A||c();vars=A,o=s.canvas,l=s.gl;o.width=r,o.height=a,l.viewport(0,0,l.drawingBufferWidth,l.drawingBufferHeight),l.uniform2f(s.resolutionLocation,r,a),n.backdrop?l.uniform4f(s.resolutionLocation,n.backdrop[0],n.backdrop[1],n.backdrop[2],1):l.uniform4f(s.resolutionLocation,0,0,0,0),l.uniform1i(s.subtypeLocation,"Luminosity"===n.subtype?1:0);varh=i(l,t,l.TEXTURE0),u=i(l,e,l.TEXTURE1),d=l.createBuffer();returnl.bindBuffer(l.ARRAY_BUFFER,d),l.bufferData(l.ARRAY_BUFFER,newFloat32Array([0,0,r,0,0,a,0,a,r,0,r,a]),l.STATIC_DRAW),l.enableVertexAttribArray(s.positionLocation),l.vertexAttribPointer(s.positionLocation,2,l.FLOAT,!1,0,0),l.clearColor(0,0,0,0),l.enable(l.BLEND),l.blendFunc(l.ONE,l.ONE_MINUS_SRC_ALPHA),l.clear(l.COLOR_BUFFER_BIT),l.drawArrays(l.TRIANGLES,0,6),l.flush(),l.deleteTexture(h),l.deleteTexture(u),l.deleteBuffer(d),o}functionh(){vart,i
},showText:function(t){vare=this.current,n=e.font;if(n.isType3Font)returnthis.showType3Text(t);varr=e.fontSize;if(0!==r){vari=this.ctx,a=e.fontSizeScale,s=e.charSpacing,o=e.wordSpacing,c=e.fontDirection,l=e.textHScale*c,h=t.length,u=n.vertical,d=u?1:-1,p=n.defaultVMetrics,g=r*e.fontMatrix[0],m=e.textRenderingMode===f.FILL&&!n.disableFontFace;i.save(),i.transform.apply(i,e.textMatrix),i.translate(e.x,e.y+e.textRise),e.patternFill&&(i.fillStyle=e.fillColor.getPattern(i,this)),c>0?i.scale(l,-1):i.scale(l,1);varA=e.lineWidth,b=e.textMatrixScale;if(0===b||0===A){vary=e.textRenderingMode&f.FILL_STROKE_MASK;y!==f.STROKE&&y!==f.FILL_STROKE||(this.cachedGetSinglePixelWidth=null,A=this.getSinglePixelWidth()*R)}elseA/=b;1!==a&&(i.scale(a,a),A/=a),i.lineWidth=A;varx,S=0;for(x=0;x<h;++x){vark=t[x];if(v(k))S+=d*k*r/1e3;else{varC,_,w,T,L=!1,E=(k.isSpace?o:0)+s,P=k.fontChar,I=k.accent,F=k.width;if(u){varO,M,N;O=k.vmetric||p,M=k.vmetric?O[1]:.5*F,M=-M*g,N=O[2]*g,F=O?-O[0]:F,C=M/a,_=(S+N)/a}elseC=S/a,_=0;if(n.remeasure&&F>0){varD=1e3*i.measureText(P).width/r*a;if(F<D&&this.isFontSubpixelAAEnabled){varj=F/D;L=!0,i.save(),i.scale(j,1),C/=j}elseF!==D&&(C+=(F-D)/2e3*r/a)}(k.isInFont||n.missingFile)&&(m&&!I?i.fillText(P,C,_):(this.paintChar(P,C,_),I&&(w=C+I.offset.x/a,T=_-I.offset.y/a,this.paintChar(I.fontChar,w,T))));varU=F*g+E*c;S+=U,L&&i.restore()}}u?e.y-=S*l:e.x+=S*l,i.restore()}},showType3Text:function(t){vare,n,r,i,a=this.ctx,s=this.current,o=s.font,c=s.fontSize,h=s.fontDirection,u=o.vertical?1:-1,d=s.charSpacing,p=s.wordSpacing,m=s.textHScale*h,A=s.fontMatrix||l,b=t.length,y=s.textRenderingMode===f.INVISIBLE;if(!y&&0!==c){for(this.cachedGetSinglePixelWidth=null,a.save(),a.transform.apply(a,s.textMatrix),a.translate(s.x,s.y),a.scale(m,h),e=0;e<b;++e)if(n=t[e],v(n))i=u*n*c/1e3,this.ctx.translate(i,0),s.x+=i*m;else{varx=(n.isSpace?p:0)+d,S=o.charProcOperatorList[n.operatorListId];if(S){this.processingType3=n,this.save(),a.scale(c,c),a.transform.apply(a,A),this.executeOperatorList(S),this.restore();varC=g.applyTransform([n.width,0],A);r=C[0]*c+x,a.translate(r,0),s.x+=r*m}elsek('Type3 character "'+n.operatorListId+'" is not available')}a.restore(),this.processingType3=null}},setCharWidth:function(t,e){},setCharWidthAndBounds:function(t,e,n,r,i,a){this.ctx.rect(n,r,i-n,a-r),this.clip(),this.endPath()},getColorN_Pattern:function(e){varn;if("TilingPattern"===e[0]){varr=e[1],i=this.baseTransform||this.ctx.mozCurrentTransform.slice(),a=this,s={createCanvasGraphics:function(e){returnnewt(e,a.commonObjs,a.objs,a.canvasFactory)}};n=newC(e,r,this.ctx,s,i)}elsen=_(e);returnn},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(t,e,n){varr=g.makeCssRgb(t,e,n);this.ctx.strokeStyle=r,this.current.strokeColor=r},setFillRGBColor:function(t,e,n){varr=g.makeCssRgb(t,e,n);this.ctx.fillStyle=r,this.current.fillColor=r,this.current.patternFill=!1},shadingFill:function(t){vare=this.ctx;this.save();varn=_(t);e.fillStyle=n.getPattern(e,this,!0);varr=e.mozCurrentTransformInverse;if(r){vari=e.canvas,a=i.width,s=i.height,o=g.applyTransform([0,0],r),c=g.applyTransform([0,s],r),l=g.applyTransform([a,0],r),h=g.applyTransform([a,s],r),u=Math.min(o[0],c[0],l[0],h[0]),d=Math.min(o[1],c[1],l[1],h[1]),f=Math.max(o[0],c[0],l[0],h[0]),p=Math.max(o[1],c[1],l[1],h[1]);this.ctx.fillRect(u,d,f-u,p-d)}elsethis.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){x("Should not call beginInlineImage")},beginImageData:function(){x("Should not call beginImageData")},paintFormXObjectBegin:function(t,e){if(this.save(),this.baseTransformStack.push(this.baseTransform),b(t)&&6===t.length&&this.transform.apply(this,t),this.baseTransform=this.ctx.mozCurrentTransform,b(e)&&4===e.length){varn=e[2]-e[0],r=e[3]-e[1];this.ctx.rect(e[0],e[1],n,r),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.restore(),this.baseTransform=this.baseTransformStack.pop(