!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define("pdfjs-dist/build/pdf",[],t):"object"==typeofexports?exports["pdfjs-dist/build/pdf"]=t():e["pdfjs-dist/build/pdf"]=e.pdfjsDistBuildPdf=t()}(this,function(){returnfunction(e){functiont(n){if(r[n])returnr[n].exports;vari=r[n]={i:n,l:!1,exports:{}};returne[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}varr={};returnt.m=e,t.c=r,t.i=function(e){returne},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){varr=e&&e.__esModule?function(){returne.default}:function(){returne};returnt.d(r,"a",r),r},t.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=15)}([function(e,t,r){"use strict";functionn(e){le=e}functioni(){returnle}functiona(e){le>=ae.infos&&console.log("Info: "+e)}functiono(e){le>=ae.warnings&&console.log("Warning: "+e)}functions(e){console.log("Deprecated API usage: "+e)}functionl(e){thrownewError(e)}functionc(e,t){e||l(t)}functionu(e,t){try{varr=newURL(e);if(!r.origin||"null"===r.origin)return!1}catch(e){return!1}varn=newURL(t,r);returnr.origin===n.origin}functiond(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functionh(e,t){if(!e)returnnull;try{varr=t?newURL(e,t):newURL(e);if(d(r))returnr}catch(e){}returnnull}functionf(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}functionp(e){vart;returnfunction(){returne&&(t=Object.create(null),e(t),e=null),t}}functionm(e){return"string"!=typeofe?(o("The argument for removeNullCharacters must be a string."),e):e.replace(ye,"")}functiong(e){c(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=[],n=0;n<t;n+=8192){vari=Math.min(n+8192,t),a=e.subarray(n,i);r.push(String.fromCharCode.apply(null,a))}returnr.join("")}functionv(e){c("string"==typeofe,"Invalid argument for stringToBytes");for(vart=e.length,r=newUint8Array(t),n=0;n<t;++n)r[n]=255&e.charCodeAt(n);returnr}functionb(e){returnvoid0!==e.length?e.length:(c(void0!==e.byteLength),e.byteLength)}function_(e){if(1===e.length&&e[0]instanceofUint8Array)returne[0];vart,r,n,i=0,a=e.length;for(t=0;t<a;t++)r=e[t],n=b(r),i+=n;varo=0,s=newUint8Array(i);for(t=0;t<a;t++)r=e[t],rinstanceofUint8Array||(r="string"==typeofr?v(r):newUint8Array(r)),n=r.byteLength,s.set(r,o),o+=n;returns}functiony(e){returnString.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}functionA(e){for(vart=1,r=0;e>t;)t<<=1,r++;returnr}functionS(e,t){returne[t]<<24>>24}functionw(e,t){returne[t]<<8|e[t+1]}functionP(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}functionC(){vare=newUint8Array(4);returne[0]=1,1===newUint32Array(e.buffer,0,1)[0]}functionR(){try{returnnewFunction(""),!0}catch(e){return!1}}functionk(e){vart,r=e.length,n=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t<r;t+=2)n.push(String.fromCharCode(e.charCodeAt(t)<<8|e.charCodeAt(t+1)));elsefor(t=0;t<r;++t){vari=Pe[e.charCodeAt(t)];n.push(i?String.fromCharCode(i):e.charAt(t))}returnn.join("")}functionx(e){returndecodeURIComponent(escape(e))}functionT(e){returnunescape(encodeURIComponent(e))}functionE(e){for(vartine)return!1;return!0}functionI(e){return"boolean"==typeofe}functionL(e){return"number"==typeofe&&(0|e)===e}functionO(e){return"number"==typeofe}functionj(e){return"string"==typeofe}functionD(e){returneinstanceofArray}functionF(e){return"object"===(void0===e?"undefined":X(e))&&null!==e&&void0!==e.byteLength}functionN(e){return32===e||9===e||13===e||10===e}functionM(){return"object"===("undefined"==typeofprocess?"undefined":X(process))&&process+""=="[object process]"}functionq(){vare={};returne.promise=newPromise(function(t,r){e.resolve=t,e.reject=r}),e}functionU(e,t){varr=arguments.length>2&&void0!==arguments[2]?a
rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:(0,d.getDefaultSetting)("maxImageSize"),disableFontFace:(0,d.getDefaultSetting)("disableFontFace"),disableCreateObjectURL:(0,d.getDefaultSetting)("disableCreateObjectURL"),postMessageTransfers:(0,d.getDefaultSetting)("postMessageTransfers")&&!b,docBaseUrl:t.docBaseUrl,nativeImageDecoderSupport:t.nativeImageDecoderSupport,ignoreErrors:t.ignoreErrors}).then(function(t){if(e.destroyed)thrownewError("Worker was destroyed");returnt}))}Object.defineProperty(t,"__esModule",{value:!0}),t.build=t.version=t._UnsupportedManager=t.setPDFNetworkStreamClass=t.PDFPageProxy=t.PDFDocumentProxy=t.PDFWorker=t.PDFDataRangeTransport=t.LoopbackPort=t.getDocument=void0;vars,l=function(){functione(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}returnfunction(t,r,n){returnr&&e(t.prototype,r),n&&e(t,n),t}}(),c="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},u=r(0),d=r(1),h=r(12),f=r(11),p=r(6),m=r(14),g=65536,v=!1,b=!1,_="undefined"!=typeofdocument&&document.currentScript?document.currentScript.src:null,y=null,A=!1;"undefined"==typeofwindow?(v=!0,void0===require.ensure&&(require.ensure=require("node-ensure")),A=!0):"undefined"!=typeofrequire&&"function"==typeofrequire.ensure&&(A=!0),"undefined"!=typeofrequirejs&&requirejs.toUrl&&(s=requirejs.toUrl("pdfjs-dist/build/pdf.worker.js"));varS="undefined"!=typeofrequirejs&&requirejs.load;y=A?function(e){require.ensure([],function(){vart;t=require("./pdf.worker.js"),e(t.WorkerMessageHandler)})}:S?function(e){requirejs(["pdfjs-dist/build/pdf.worker"],function(t){e(t.WorkerMessageHandler)})}:null;varw,P,C,R=function(){functione(){this._capability=(0,u.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+t++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}vart=0;returne.prototype={getpromise(){returnthis._capability.promise},destroy:function(){vare=this;returnthis.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then(function(){e._transport=null,e._worker&&(e._worker.destroy(),e._worker=null)})},then:function(e,t){returnthis.promise.then.apply(this.promise,arguments)}},e}(),k=function(){functione(e,t){this.length=e,this.initialData=t,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._readyCapability=(0,u.createPromiseCapability)()}returne.prototype={addRangeListener:function(e){this._rangeListeners.push(e)},addProgressListener:function(e){this._progressListeners.push(e)},addProgressiveReadListener:function(e){this._progressiveReadListeners.push(e)},onDataRange:function(e,t){for(varr=this._rangeListeners,n=0,i=r.length;n<i;++n)r[n](e,t)},onDataProgress:function(e){vart=this;this._readyCapability.promise.then(function(){for(varr=t._progressListeners,n=0,i=r.length;n<i;++n)r[n](e)})},onDataProgressiveRead:function(e){vart=this;this._readyCapability.promise.then(function(){for(varr=t._progressiveReadListeners,n=0,i=r.length;n<i;++n)r[n](e)})},transportReady:function(){this._readyCapability.resolve()},requestDataRange:function(e,t){thrownewError("Abstract method PDFDataRangeTransport.requestDataRange")},abort:function(){}},e}(),x=function(){functione(e,t,r){this.pdfInfo=e,this.transport=t,this.loadingTask=r}returne.prototype={getnumPages(){returnthis.pdfInfo.numPages},getfingerprint(){returnthis.pdfInfo.fingerprint},getPage:function(e){returnthis.transport.getPage(e)},getPageIndex:function(e){returnthis.transport.getPageIndex(e)},getDestinations:function(){returnthis.transport.getDestinations()},getDestination:function(e){returnthis.transport.getDestination(e)},getPageLabels:function(){returnthis.transport.getPageLabels()},getPageMode:function(){returnthis.transport.getPageMode()},getAttachments:function(){return
;e._writeRequests.push(n)})}functionc(e,t){varr=e._state;if("writable"===r)returnvoidu(e,t);de("erroring"===r),d(e)}functionu(e,t){de(void0===e._storedError,"stream._storedError === undefined"),de("writable"===e._state,"state must be writable");varr=e._writableStreamController;de(void0!==r,"controller must not be undefined"),e._state="erroring",e._storedError=t;varn=e._writer;void0!==n&&k(n,t),!1===v(e)&&!0===r._started&&d(e)}functiond(e){de("erroring"===e._state,"stream._state === erroring"),de(!1===v(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)}if(e._writeRequests=[],void0===e._pendingAbortRequest)returnvoidy(e);varn=e._pendingAbortRequest;if(e._pendingAbortRequest=void0,!0===n._wasAlreadyErroring)returnn._reject(t),voidy(e);e._writableStreamController.__abortSteps(n._reason).then(function(){n._resolve(),y(e)},function(t){n._reject(t),y(e)})}functionh(e){de(void0!==e._inFlightWriteRequest),e._inFlightWriteRequest._resolve(void0),e._inFlightWriteRequest=void0}functionf(e,t){de(void0!==e._inFlightWriteRequest),e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void0,de("writable"===e._state||"erroring"===e._state),c(e,t)}functionp(e){de(void0!==e._inFlightCloseRequest),e._inFlightCloseRequest._resolve(void0),e._inFlightCloseRequest=void0;vart=e._state;de("writable"===t||"erroring"===t),"erroring"===t&&(e._storedError=void0,void0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void0)),e._state="closed";varr=e._writer;void0!==r&&Q(r),de(void0===e._pendingAbortRequest,"stream._pendingAbortRequest === undefined"),de(void0===e._storedError,"stream._storedError === undefined")}functionm(e,t){de(void0!==e._inFlightCloseRequest),e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void0,de("writable"===e._state||"erroring"===e._state),void0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void0),c(e,t)}functiong(e){returnvoid0!==e._closeRequest||void0!==e._inFlightCloseRequest}functionv(e){returnvoid0!==e._inFlightWriteRequest||void0!==e._inFlightCloseRequest}functionb(e){de(void0===e._inFlightCloseRequest),de(void0!==e._closeRequest),e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void0}function_(e){de(void0===e._inFlightWriteRequest,"there must be no pending write request"),de(0!==e._writeRequests.length,"writeRequests must not be empty"),e._inFlightWriteRequest=e._writeRequests.shift()}functiony(e){de("errored"===e._state,'_stream_.[[state]] is `"errored"`'),void0!==e._closeRequest&&(de(void0===e._inFlightCloseRequest),e._closeRequest._reject(e._storedError),e._closeRequest=void0);vart=e._writer;void0!==t&&(V(t,e._storedError),t._closedPromise.catch(function(){}))}functionA(e,t){de("writable"===e._state),de(!1===g(e));varr=e._writer;void0!==r&&t!==e._backpressure&&(!0===t?te(r):(de(!1===t),ne(r))),e._backpressure=t}functionS(e){return!!ce(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}functionw(e,t){varr=e._ownerWritableStream;returnde(void0!==r),s(r,t)}functionP(e){vart=e._ownerWritableStream;de(void0!==t);varr=t._state;if("closed"===r||"errored"===r)returnPromise.reject(newTypeError("The stream (in "+r+" state) is not in the writable state and cannot be closed"));de("writable"===r||"erroring"===r),de(!1===g(t));varn=newPromise(function(e,r){varn={_resolve:e,_reject:r};t._closeRequest=n});return!0===t._backpressure&&"writable"===r&&ne(e),I(t._writableStreamController),n}functionC(e){vart=e._ownerWritableStream;de(void0!==t);varr=t._state;return!0===g(t)||"closed"===r?Promise.resolve():"errored"===r?Promise.reject(t._storedError):(de("writable"===r||"erroring"===r),P(e))}functionR(e,t){"pending"===e._closedPromiseState?V(e,t):J(e,t),e._closedPromise.catch(function(){})}functionk(e,t){"pending"===e._readyPromiseState?ee(e,t):re(e,t),e._readyPromise.catch(funct
;varc=a(this),u=He(e),d=!1,h=Promise.resolve();returnnewPromise(function(r,a){functiono(){returnh=Promise.resolve(),!0===d?Promise.resolve():u._readyPromise.then(function(){returnE(c).then(function(e){vart=e.value;!0!==e.done&&(h=Ke(u,t).catch(function(){}))})}).then(o)}functionl(){vare=h;returnh.then(function(){returne!==h?l():void0})}functionf(e,t,r){"errored"===e._state?r(e._storedError):t.catch(r).catch(qe)}functionp(t,r,n){functioni(){t().then(function(){returnv(r,n)},function(e){returnv(!0,e)}).catch(qe)}!0!==d&&(d=!0,"writable"===e._state&&!1===Ze(e)?l().then(i):i())}functiong(t,r){!0!==d&&(d=!0,"writable"===e._state&&!1===Ze(e)?l().then(function(){returnv(t,r)}).catch(qe):v(t,r))}functionv(e,t){Qe(u),x(c),e?a(t):r(void0)}if(f(t,c._closedPromise,function(t){!1===i?p(function(){returnVe(e,t)},!0,t):g(!0,t)}),f(e,u._closedPromise,function(e){!1===s?p(function(){returnm(t,e)},!0,e):g(!0,e)}),function(e,t,r){"closed"===e._state?r():t.then(r).catch(qe)}(t,c._closedPromise,function(){!1===n?p(function(){returnJe(u)}):g()}),!0===Ze(e)||"closed"===e._state){varb=newTypeError("the destination writable stream closed before all data could be piped to it");!1===s?p(function(){returnm(t,b)},!0,b):g(!0,b)}o().catch(function(e){h=Promise.resolve(),qe(e)})})}},{key:"tee",value:function(){if(!1===o(this))throwce("tee");vare=c(this,!1);returnje(e)}},{key:"locked",get:function(){if(!1===o(this))throwce("locked");returnl(this)}}]),e}();e.exports={ReadableStream:$e,IsReadableStreamDisturbed:s,ReadableStreamDefaultControllerClose:j,ReadableStreamDefaultControllerEnqueue:D,ReadableStreamDefaultControllerError:F,ReadableStreamDefaultControllerGetDesiredSize:M};varet=function(){functione(t){if(n(this,e),!1===o(t))thrownewTypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===l(t))thrownewTypeError("This stream has already been locked for exclusive reading by another reader");R(this,t),this._readRequests=[]}returnwe(e,[{key:"cancel",value:function(e){return!1===C(this)?Promise.reject(de("cancel")):void0===this._ownerReadableStream?Promise.reject(ue("cancel")):k(this,e)}},{key:"read",value:function(){return!1===C(this)?Promise.reject(de("read")):void0===this._ownerReadableStream?Promise.reject(ue("read from")):E(this)}},{key:"releaseLock",value:function(){if(!1===C(this))throwde("releaseLock");if(void0!==this._ownerReadableStream){if(this._readRequests.length>0)thrownewTypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");x(this)}}},{key:"closed",get:function(){return!1===C(this)?Promise.reject(de("closed")):this._closedPromise}}]),e}(),tt=function(){functione(t){if(n(this,e),!o(t))thrownewTypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===q(t._readableStreamController))thrownewTypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(l(t))thrownewTypeError("This stream has already been locked for exclusive reading by another reader");R(this,t),this._readIntoRequests=[]}returnwe(e,[{key:"cancel",value:function(e){returnP(this)?void0===this._ownerReadableStream?Promise.reject(ue("cancel")):k(this,e):Promise.reject(be("cancel"))}},{key:"read",value:function(e){returnP(this)?void0===this._ownerReadableStream?Promise.reject(ue("read from")):ArrayBuffer.isView(e)?0===e.byteLength?Promise.reject(newTypeError("view must have non-zero byteLength")):T(this,e):Promise.reject(newTypeError("view must be an array buffer view")):Promise.reject(be("read"))}},{key:"releaseLock",value:function(){if(!P(this))throwbe("releaseLock");if(void0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)thrownewTypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");x(this)}}},{key:"closed",get:function(){returnP(this)?this._closedPromise:Promise.reject(be("closed"))}}]),e}(),rt=function(){functione(t,r,i,a){if(n(this,e),!1===o(t))thrownewTypeE
t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e=void0===e||e;vart=this.ctx,r=this.current.fillColor,n=this.current.patternFill,i=!1;n&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=r.getPattern(t,this),i=!0),this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill(),i&&t.restore(),e&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0,this.fill()},fillStroke:function(){this.fill(!1),this.stroke(!1),this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0,this.fillStroke()},closeFillStroke:function(){this.closePath(),this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=A},eoClip:function(){this.pendingClip=S},beginText:function(){this.current.textMatrix=a.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){vare=this.pendingTextPaths,t=this.ctx;if(void0===e)returnvoidt.beginPath();t.save(),t.beginPath();for(varr=0;r<e.length;r++){varn=e[r];t.setTransform.apply(t,n.transform),t.translate(n.x,n.y),n.addToPath(t,n.fontSize)}t.restore(),t.clip(),t.beginPath(),deletethis.pendingTextPaths},setCharSpacing:function(e){this.current.charSpacing=e},setWordSpacing:function(e){this.current.wordSpacing=e},setHScale:function(e){this.current.textHScale=e/100},setLeading:function(e){this.current.leading=-e},setFont:function(e,t){varr=this.commonObjs.get(e),n=this.current;if(!r)thrownewError("Can't find font for "+e);if(n.fontMatrix=r.fontMatrix?r.fontMatrix:a.FONT_IDENTITY_MATRIX,0!==n.fontMatrix[0]&&0!==n.fontMatrix[3]||(0,a.warn)("Invalid font matrix for font "+e),t<0?(t=-t,n.fontDirection=-1):n.fontDirection=1,this.current.font=r,this.current.fontSize=t,!r.isType3Font){vari=r.loadedName||"sans-serif",o=r.black?"900":r.bold?"bold":"normal",s=r.italic?"italic":"normal",l='"'+i+'", '+r.fallbackName,c=t<16?16:t>100?100:t;this.current.fontSizeScale=t/c;varu=s+" "+o+" "+c+"px "+l;this.ctx.font=u}},setTextRenderingMode:function(e){this.current.textRenderingMode=e},setTextRise:function(e){this.current.textRise=e},moveText:function(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t},setLeadingMoveText:function(e,t){this.setLeading(-t),this.moveText(e,t)},setTextMatrix:function(e,t,r,n,i,a){this.current.textMatrix=[e,t,r,n,i,a],this.current.textMatrixScale=Math.sqrt(e*e+t*t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(e,t,r){varn,i=this.ctx,o=this.current,s=o.font,l=o.textRenderingMode,c=o.fontSize/o.fontSizeScale,u=l&a.TextRenderingMode.FILL_STROKE_MASK,d=!!(l&a.TextRenderingMode.ADD_TO_PATH_FLAG);if((s.disableFontFace||d)&&(n=s.getPathGenerator(this.commonObjs,e)),s.disableFontFace?(i.save(),i.translate(t,r),i.beginPath(),n(i,c),u!==a.TextRenderingMode.FILL&&u!==a.TextRenderingMode.FILL_STROKE||i.fill(),u!==a.TextRenderingMode.STROKE&&u!==a.TextRenderingMode.FILL_STROKE||i.stroke(),i.restore()):(u!==a.TextRenderingMode.FILL&&u!==a.TextRenderingMode.FILL_STROKE||i.fillText(e,t,r),u!==a.TextRenderingMode.STROKE&&u!==a.TextRenderingMode.FILL_STROKE||i.strokeText(e,t,r)),d){(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:i.mozCurrentTransform,x:t,y:r,fontSize:c,addToPath:n})}},getisFontSubpixelAAEnabled(){vare=this.canvasFactory.create(10,10).context;e.scale(1.5,1),e.fillText("I",0,10);for(vart=e.getImageData(0,0,10,10).data,r=!1,n=3;n<t.length;n+=4)if(t[n]>0&&t[n]<255){r=!0;break}return(0,a.shadow)(this,"isFontSubpixelAAEnabled",r)},showText:function(e){vart=this.current,r=t.font;if(r.isType3Font)returnthis.showType3Text(e);varn=t.fontSize;if(0!==n){vari=this.ctx,o=t.fontSizeScale,s=t.charSpacing,l=t.wordSpacing,c=t.fontDirection,u=t.textHScale*c,d=e.length,h=r.vertical,f=h?1:-1,p=r.defaultVMetrics,m=n*t.fontMatrix[0],g=t.textRenderingM
vari="undefined"!=typeofwindow&&window.Math===Math?window:"undefined"!=typeofglobal&&global.Math===Math?global:"undefined"!=typeofself&&self.Math===Math?self:void0,a="undefined"!=typeofnavigator&&navigator.userAgent||"",o=/Android/.test(a),s=/Android\s[0-2][^\d]/.test(a),l=/Android\s[0-4][^\d]/.test(a),c=a.indexOf("Chrom")>=0,u=/Chrome\/(39|40)\./.test(a),d=a.indexOf("CriOS")>=0,h=a.indexOf("Trident")>=0,f=/\b(iPad|iPhone|iPod)(?=;)/.test(a),p=a.indexOf("Opera")>=0,m=/Safari\//.test(a)&&!/(Chrome\/|Android\s)/.test(a),g="object"===("undefined"==typeofwindow?"undefined":n(window))&&"object"===("undefined"==typeofdocument?"undefined":n(document));"undefined"==typeofPDFJS&&(i.PDFJS={}),PDFJS.compatibilityChecked=!0,function(){functione(e,t){returnnews(this.slice(e,t))}functiont(e,t){arguments.length<2&&(t=0);for(varr=0,n=e.length;r<n;++r,++t)this[t]=255&e[r]}functionr(e,t){this.buffer=e,this.byteLength=e.length,this.length=t,o(this.length)}functiona(e){return{get:function(){vart=this.buffer,r=e<<2;return(t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24)>>>0},set:function(t){varr=this.buffer,n=e<<2;r[n]=255&t,r[n+1]=t>>8&255,r[n+2]=t>>16&255,r[n+3]=t>>>24&255}}}functiono(e){for(;l<e;)Object.defineProperty(r.prototype,l,a(l)),l++}functions(r){vari,a,o;if("number"==typeofr)for(i=[],a=0;a<r;++a)i[a]=0;elseif("slice"inr)i=r.slice(0);elsefor(i=[],a=0,o=r.length;a<o;++a)i[a]=r[a];returni.subarray=e,i.buffer=i,i.byteLength=i.length,i.set=t,"object"===(void0===r?"undefined":n(r))&&r.buffer&&(i.buffer=r.buffer),i}if("undefined"!=typeofUint8Array)returnvoid0===Uint8Array.prototype.subarray&&(Uint8Array.prototype.subarray=function(e,t){returnnewUint8Array(this.slice(e,t))},Float32Array.prototype.subarray=function(e,t){returnnewFloat32Array(this.slice(e,t))}),void("undefined"==typeofFloat64Array&&(i.Float64Array=Float32Array));r.prototype=Object.create(null);varl=0;i.Uint8Array=s,i.Int8Array=s,i.Int32Array=s,i.Uint16Array=s,i.Float32Array=s,i.Float64Array=s,i.Uint32Array=function(){if(3===arguments.length){if(0!==arguments[1])thrownewError("offset !== 0 is not supported");returnnewr(arguments[0],arguments[2])}returns.apply(this,arguments)}}(),function(){if(g&&window.CanvasPixelArray){vare=window.CanvasPixelArray.prototype;"buffer"ine||(Object.defineProperty(e,"buffer",{get:function(){returnthis},enumerable:!1,configurable:!0}),Object.defineProperty(e,"byteLength",{get:function(){returnthis.length},enumerable:!1,configurable:!0}))}}(),function(){i.URL||(i.URL=i.webkitURL)}(),function(){if(void0!==Object.defineProperty){vare=!0;try{g&&Object.defineProperty(newImage,"id",{value:"test"});vart=function(){};t.prototype={getid(){}},Object.defineProperty(newt,"id",{value:"",configurable:!0,enumerable:!0,writable:!1})}catch(t){e=!1}if(e)return}Object.defineProperty=function(e,t,r){deletee[t],"get"inr&&e.__defineGetter__(t,r.get),"set"inr&&e.__defineSetter__(t,r.set),"value"inr&&(e.__defineSetter__(t,function(e){returnthis.__defineGetter__(t,function(){returne}),e}),e[t]=r.value)}}(),function(){if("undefined"!=typeofXMLHttpRequest){vare=XMLHttpRequest.prototype,t=newXMLHttpRequest;if("overrideMimeType"int||Object.defineProperty(e,"overrideMimeType",{value:function(e){}}),!("responseType"int)){if(Object.defineProperty(e,"responseType",{get:function(){returnthis._responseType||"text"},set:function(e){"text"!==e&&"arraybuffer"!==e||(this._responseType=e,"arraybuffer"===e&&"function"==typeofthis.overrideMimeType&&this.overrideMimeType("text/plain; charset=x-user-defined"))}}),"undefined"!=typeofVBArray)returnvoidObject.defineProperty(e,"response",{get:function(){return"arraybuffer"===this.responseType?newUint8Array(newVBArray(this.responseBody).toArray()):this.responseText}});Object.defineProperty(e,"response",{get:function(){if("arraybuffer"!==this.responseType)returnthis.responseText;vare,t=this.responseText,r=t.length,n=newUint8Array(r);for(e=0;e<r;++e)n[e]=255&t.charCodeAt(e);returnn.buffer}})}}}(),function(){if(!("btoa"ini)){vare="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz