!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){functionr(t){rt=t}functioni(){returnrt}functiona(t){rt>=tt.infos&&console.log("Info: "+t)}functions(t){rt>=tt.warnings&&console.log("Warning: "+t)}functiono(t){console.log("Deprecated API usage: "+t)}functionc(t){throwrt>=tt.errors&&(console.log("Error: "+t),console.log(l())),newError(t)}functionl(){try{thrownewError}catch(t){returnt.stack?t.stack.split("\n").slice(2).join("\n"):""}}functionh(t,e){t||c(e)}functionu(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}functiond(t){if(!t)return!1;switch(t.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}functionf(t,e){if(!t)returnnull;try{varn=e?newURL(t,e):newURL(t);if(d(n))returnn}catch(t){}returnnull}functionp(t,e,n){returnObject.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}functiong(t){vare;returnfunction(){returnt&&(e=Object.create(null),t(e),t=null),e}}functionm(t){return"string"!=typeoft?(s("The argument for removeNullCharacters must be a string."),t):t.replace(pt,"")}functionA(t){h(null!==t&&"object"===(void0===t?"undefined":X(t))&&void0!==t.length,"Invalid argument for bytesToString");vare=t.length;if(e<8192)returnString.fromCharCode.apply(null,t);for(varn=[],r=0;r<e;r+=8192){vari=Math.min(r+8192,e),a=t.subarray(r,i);n.push(String.fromCharCode.apply(null,a))}returnn.join("")}functionv(t){h("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}functionb(t){returnvoid0!==t.length?t.length:(h(void0!==t.byteLength),t.byteLength)}functiony(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=b(n),i+=r;vars=0,o=newUint8Array(i);for(e=0;e<a;e++)n=t[e],ninstanceofUint8Array||(n="string"==typeofn?v(n):newUint8Array(n)),r=n.byteLength,o.set(n,s),s+=r;returno}functionS(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}functionw(t,e){returnt[e]<<24>>24}function_(t,e){returnt[e]<<8|t[e+1]}functionT(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}functionC(){vart=newUint8Array(4);returnt[0]=1,1===newUint32Array(t.buffer,0,1)[0]}functionk(){try{returnnewFunction(""),!0}catch(t){return!1}}functionP(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=vt[t.charCodeAt(e)];r.push(i?String.fromCharCode(i):t.charAt(e))}returnr.join("")}functionL(t){returndecodeURIComponent(escape(t))}functionE(t){returnunescape(encodeURIComponent(t))}functionR(t){for(vareint)return!1;return!0}functionO(t){return"boolean"==typeoft}functionI(t){return"number"==typeoft&&(0|t)===t}functionF(t){return"number"==typeoft}functionM(t){return"string"==typeoft}functionD(t){returntinstanceofArray}functionN(t){return"object"===(void0===t?"undefined":X(t))&&null!==t&&void0!==t.byteLength}functionj(t){return32===t||9===t||13===t||10===t}functionU(){return"undefined"==typeof__pdfjsdev_webpack__&&("object"===("undefined"==typeofproce
this.container.style.zIndex-=1)}},t}(),m=function(){functiont(t){vare=!!(t.data.hasPopup||t.data.title||t.data.contents);s.call(this,t,e,!0)}vare="http://www.w3.org/2000/svg";returna.Util.inherit(t,s,{render:function(){this.container.className="lineAnnotation";vart=this.data,n=t.rect[2]-t.rect[0],r=t.rect[3]-t.rect[1],i=document.createElementNS(e,"svg:svg");i.setAttributeNS(null,"version","1.1"),i.setAttributeNS(null,"width",n+"px"),i.setAttributeNS(null,"height",r+"px"),i.setAttributeNS(null,"preserveAspectRatio","none"),i.setAttributeNS(null,"viewBox","0 0 "+n+" "+r);vara=document.createElementNS(e,"svg:line");returna.setAttributeNS(null,"x1",t.rect[2]-t.lineCoordinates[0]),a.setAttributeNS(null,"y1",t.rect[3]-t.lineCoordinates[1]),a.setAttributeNS(null,"x2",t.rect[2]-t.lineCoordinates[2]),a.setAttributeNS(null,"y2",t.rect[3]-t.lineCoordinates[3]),a.setAttributeNS(null,"stroke-width",t.borderStyle.width),a.setAttributeNS(null,"stroke","transparent"),i.appendChild(a),this.container.append(i),this._createPopup(this.container,a,this.data),this.container}}),t}(),A=function(){functiont(t){vare=!!(t.data.hasPopup||t.data.title||t.data.contents);s.call(this,t,e,!0)}returna.Util.inherit(t,s,{render:function(){returnthis.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),t}(),v=function(){functiont(t){vare=!!(t.data.hasPopup||t.data.title||t.data.contents);s.call(this,t,e,!0)}returna.Util.inherit(t,s,{render:function(){returnthis.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),t}(),b=function(){functiont(t){vare=!!(t.data.hasPopup||t.data.title||t.data.contents);s.call(this,t,e,!0)}returna.Util.inherit(t,s,{render:function(){returnthis.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),t}(),y=function(){functiont(t){vare=!!(t.data.hasPopup||t.data.title||t.data.contents);s.call(this,t,e,!0)}returna.Util.inherit(t,s,{render:function(){returnthis.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),t}(),S=function(){functiont(t){s.call(this,t,!0);vare=this.data.file;this.filename=(0,i.getFilenameFromUrl)(e.filename),this.content=e.content,this.linkService.onFileAttachmentAnnotation({id:(0,a.stringToPDFString)(e.filename),filename:e.filename,content:e.content})}returna.Util.inherit(t,s,{render:function(){this.container.className="fileAttachmentAnnotation";vart=document.createElement("div");returnt.style.height=this.container.style.height,t.style.width=this.container.style.width,t.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,t,this.data),this.container.appendChild(t),this.container},_download:function(){if(!this.downloadManager)returnvoid(0,a.warn)("Download cannot be started due to unavailable download manager");this.downloadManager.downloadData(this.content,this.filename,"")}}),t}(),x=function(){return{render:function(t){for(vare=newr,n=0,a=t.annotations.length;n<a;n++){vars=t.annotations[n];if(s){varo=e.create({data:s,layer:t.div,page:t.page,viewport:t.viewport,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||(0,i.getDefaultSetting)("imageResourcesPath"),renderInteractiveForms:t.renderInteractiveForms||!1});o.isRenderable&&t.div.appendChild(o.render())}}},update:function(t){for(vare=0,n=t.annotations.length;e<n;e++){varr=t.annotations[e],a=t.div.querySelector('[data-annotation-id="'+r.id+'"]');a&&i.CustomStyle.setProp("transform",a,"matrix("+t.viewport.transform.join(",")+")")}t.div.removeAttribute("hidden")}}}();e.AnnotationLayer=x},function(t,e,n){"use strict";functionr(t,e,n,r){vara=newS;arguments.length>1&&(0,o.deprecated)("getDocument is called with pdfDataRangeTransport, passwordCallback or progressCallback argument"),e&&(eins
l="fragment"):y!==p&&"\t"!==y&&"\n"!==y&&"\r"!==y&&(this._schemeData+=a(y));break;case"no scheme":if(o&&t(o._scheme)){l="relative";continue}c("Missing scheme."),r.call(this);break;case"relative or authority":if("/"!==y||"/"!==e[h+1]){c("Expected /, got: "+y),l="relative";continue}l="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!==this._scheme&&(this._scheme=o._scheme),y===p){this._host=o._host,this._port=o._port,this._path=o._path.slice(),this._query=o._query,this._username=o._username,this._password=o._password;breakt}if("/"===y||"\\"===y)"\\"===y&&c("\\ is an invalid code point."),l="relative slash";elseif("?"===y)this._host=o._host,this._port=o._port,this._path=o._path.slice(),this._query="?",this._username=o._username,this._password=o._password,l="query";else{if("#"!==y){varS=e[h+1],x=e[h+2];("file"!==this._scheme||!g.test(y)||":"!==S&&"|"!==S||x!==p&&"/"!==x&&"\\"!==x&&"?"!==x&&"#"!==x)&&(this._host=o._host,this._port=o._port,this._username=o._username,this._password=o._password,this._path=o._path.slice(),this._path.pop()),l="relative path";continue}this._host=o._host,this._port=o._port,this._path=o._path.slice(),this._query=o._query,this._fragment="#",this._username=o._username,this._password=o._password,l="fragment"}break;case"relative slash":if("/"!==y&&"\\"!==y){"file"!==this._scheme&&(this._host=o._host,this._port=o._port,this._username=o._username,this._password=o._password),l="relative path";continue}"\\"===y&&c("\\ is an invalid code point."),l="file"===this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!==y){c("Expected '/', got: "+y),l="authority ignore slashes";continue}l="authority second slash";break;case"authority second slash":if(l="authority ignore slashes","/"!==y){c("Expected '/', got: "+y);continue}break;case"authority ignore slashes":if("/"!==y&&"\\"!==y){l="authority";continue}c("Expected authority, got: "+y);break;case"authority":if("@"===y){A&&(c("@ already seen."),u+="%40"),A=!0;for(varw=0;w<u.length;w++){var_=u[w];if("\t"!==_&&"\n"!==_&&"\r"!==_)if(":"!==_||null!==this._password){varT=a(_);null!==this._password?this._password+=T:this._username+=T}elsethis._password="";elsec("Invalid whitespace in authority.")}u=""}else{if(y===p||"/"===y||"\\"===y||"?"===y||"#"===y){h-=u.length,u="",l="host";continue}u+=y}break;case"file host":if(y===p||"/"===y||"\\"===y||"?"===y||"#"===y){2!==u.length||!g.test(u[0])||":"!==u[1]&&"|"!==u[1]?0===u.length?l="relative path start":(this._host=i.call(this,u),u="",l="relative path start"):l="relative path";continue}"\t"===y||"\n"===y||"\r"===y?c("Invalid whitespace in file host."):u+=y;break;case"host":case"hostname":if(":"!==y||v){if(y===p||"/"===y||"\\"===y||"?"===y||"#"===y){if(this._host=i.call(this,u),u="",l="relative path start",n)breakt;continue}"\t"!==y&&"\n"!==y&&"\r"!==y?("["===y?v=!0:"]"===y&&(v=!1),u+=y):c("Invalid code point in host/hostname: "+y)}elseif(this._host=i.call(this,u),u="",l="port","hostname"===n)breakt;break;case"port":if(/[0-9]/.test(y))u+=y;else{if(y===p||"/"===y||"\\"===y||"?"===y||"#"===y||n){if(""!==u){varC=parseInt(u,10);C!==d[this._scheme]&&(this._port=C+""),u=""}if(n)breakt;l="relative path start";continue}"\t"===y||"\n"===y||"\r"===y?c("Invalid code point in port: "+y):r.call(this)}break;case"relative path start":if("\\"===y&&c("'\\' not allowed in path."),l="relative path","/"!==y&&"\\"!==y)continue;break;case"relative path":if(y!==p&&"/"!==y&&"\\"!==y&&(n||"?"!==y&&"#"!==y))"\t"!==y&&"\n"!==y&&"\r"!==y&&(u+=a(y));else{"\\"===y&&c("\\ not allowed in relative path.");vark;(k=f[u.toLowerCase()])&&(u=k),".."===u?(this._path.pop(),"/"!==y&&"\\"!==y&&this._path.push("")):"."===u&&"/"!==y&&"\\"!==y?this._path.push(""):"."!==u&&("file"===this._scheme&&0===this._path.length&&2===u.length&&g.test(u[0])&&"|"===u[1]&&(u=u[0]+":"),this._path.push(u)),u="","?"===y?(this._query="?",l="query"):"#"===y&&(this._fragment="#",l="fragment")}break;case"query":n||"#"!==y?y!==p&&"\t"!==y&&"\n"!==y&&"\r"!==y&&(this._query+=s(y)):(this._fragment="#",l="fragment");break