!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){nt=t}functioni(){returnnt}functiona(t){nt>=$.infos&&console.log("Info: "+t)}functions(t){nt>=$.warnings&&console.log("Warning: "+t)}functiono(t){console.log("Deprecated API usage: "+t)}functionc(t){thrownt>=$.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(ft,"")}functionA(t){h(null!==t&&"object"==typeoft&&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}functionx(t){returnString.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)}functionS(t){for(vare=1,n=0;t>e;)e<<=1,n++;returnn}functionw(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);returnt[0]=1,1===newUint16Array(t.buffer)[0]}functionT(){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}functionI(t){return"boolean"==typeoft}functionF(t){return"number"==typeoft&&(0|t)===t}functionO(t){return"number"==typeoft}functionN(t){return"string"==typeoft}functionM(t){returntinstanceofArray}functionD(t){return"object"==typeoft&&null!==t&&void0!==t.byteLength}functionj(t){return32===t||9===t||13===t||10===t}functionU(){return"undefined"==typeof__pdfjsdev_webpack__&&("object"==typeofprocess&&process+""=="[object process]")}functionB(){vart={};returnt
;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}(),T=function(){functiont(t){vare=!!(t.data.hasPopup||t.data.title||t.data.contents);m.call(this,t,e,!0)}returnl.inherit(t,m,{render:function(){returnthis.container.className="highlightAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),t}(),P=function(){functiont(t){vare=!!(t.data.hasPopup||t.data.title||t.data.contents);m.call(this,t,e,!0)}returnl.inherit(t,m,{render:function(){returnthis.container.className="underlineAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),t}(),L=function(){functiont(t){vare=!!(t.data.hasPopup||t.data.title||t.data.contents);m.call(this,t,e,!0)}returnl.inherit(t,m,{render:function(){returnthis.container.className="squigglyAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),t}(),E=function(){functiont(t){vare=!!(t.data.hasPopup||t.data.title||t.data.contents);m.call(this,t,e,!0)}returnl.inherit(t,m,{render:function(){returnthis.container.className="strikeoutAnnotation",this.data.hasPopup||this._createPopup(this.container,null,this.data),this.container}}),t}(),R=function(){functiont(t){m.call(this,t,!0);vare=this.data.file;this.filename=d(e.filename),this.content=e.content,this.linkService.onFileAttachmentAnnotation({id:c(e.filename),filename:e.filename,content:e.content})}returnl.inherit(t,m,{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)returnvoidf("Download cannot be started due to unavailable download manager");this.downloadManager.downloadData(this.content,this.filename,"")}}),t}(),I=function(){return{render:function(t){for(vare=newr,n=0,i=t.annotations.length;n<i;n++){vara=t.annotations[n];if(a){vars=e.create({data:a,layer:t.div,page:t.page,viewport:t.viewport,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||g("imageResourcesPath"),renderInteractiveForms:t.renderInteractiveForms||!1});s.isRenderable&&t.div.appendChild(s.render())}}},update:function(t){for(vare=0,n=t.annotations.length;e<n;e++){varr=t.annotations[e],i=t.div.querySelector('[data-annotation-id="'+r.id+'"]');i&&p.setProp("transform",i,"matrix("+t.viewport.transform.join(",")+")")}t.div.removeAttribute("hidden")}}}();e.AnnotationLayer=I},function(t,e,n){"use strict";functionr(t,e,n,r){vara=newV;arguments.length>1&&S("getDocument is called with pdfDataRangeTransport, passwordCallback or progressCallback argument"),e&&(einstanceofJ||(e=Object.create(e),e.length=t.length,e.initialData=t.initialData,e.abort||(e.abort=function(){})),t=Object.create(t),t.range=e),a.onPassword=n||null,a.onProgress=r||null;vars;"string"==typeoft?s={url:t}:T(t)?s={data:t}:tinstanceofJ?s={range:t}:("object"!=typeoft&&x("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object"),t.url||t.data||t.r
;if("\t"!==k&&"\n"!==k&&"\r"!==k)if(":"!==k||null!==this._password){varC=i(k);null!==this._password?this._password+=C:this._username+=C}elsethis._password="";elsec("Invalid whitespace in authority.")}m=""}else{if(y===f||"/"===y||"\\"===y||"?"===y||"#"===y){h-=m.length,m="",l="host";continue}m+=y}break;case"file host":if(y===f||"/"===y||"\\"===y||"?"===y||"#"===y){2!==m.length||!p.test(m[0])||":"!==m[1]&&"|"!==m[1]?0===m.length?l="relative path start":(this._host=r.call(this,m),m="",l="relative path start"):l="relative path";continue}"\t"===y||"\n"===y||"\r"===y?c("Invalid whitespace in file host."):m+=y;break;case"host":case"hostname":if(":"!==y||v){if(y===f||"/"===y||"\\"===y||"?"===y||"#"===y){if(this._host=r.call(this,m),m="",l="relative path start",s)breakt;continue}"\t"!==y&&"\n"!==y&&"\r"!==y?("["===y?v=!0:"]"===y&&(v=!1),m+=y):c("Invalid code point in host/hostname: "+y)}elseif(this._host=r.call(this,m),m="",l="port","hostname"===s)breakt;break;case"port":if(/[0-9]/.test(y))m+=y;else{if(y===f||"/"===y||"\\"===y||"?"===y||"#"===y||s){if(""!==m){var_=parseInt(m,10);_!==u[this._scheme]&&(this._port=_+""),m=""}if(s)breakt;l="relative path start";continue}"\t"===y||"\n"===y||"\r"===y?c("Invalid code point in port: "+y):n.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!==f&&"/"!==y&&"\\"!==y&&(s||"?"!==y&&"#"!==y))"\t"!==y&&"\n"!==y&&"\r"!==y&&(m+=i(y));else{"\\"===y&&c("\\ not allowed in relative path.");varT;(T=d[m.toLowerCase()])&&(m=T),".."===m?(this._path.pop(),"/"!==y&&"\\"!==y&&this._path.push("")):"."===m&&"/"!==y&&"\\"!==y?this._path.push(""):"."!==m&&("file"===this._scheme&&0===this._path.length&&2===m.length&&p.test(m[0])&&"|"===m[1]&&(m=m[0]+":"),this._path.push(m)),m="","?"===y?(this._query="?",l="query"):"#"===y&&(this._fragment="#",l="fragment")}break;case"query":s||"#"!==y?y!==f&&"\t"!==y&&"\n"!==y&&"\r"!==y&&(this._query+=a(y)):(this._fragment="#",l="fragment");break;case"fragment":y!==f&&"\t"!==y&&"\n"!==y&&"\r"!==y&&(this._fragment+=y)}h++}}functiono(){this._scheme="",this._schemeData="",this._username="",this._password=null,this._host="",this._port="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}functionc(t,e){void0===e||einstanceofc||(e=newc(String(e))),this._url=t,o.call(this);varn=t.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");s.call(this,n,null,e)}varl=!1;try{if("function"==typeofURL&&"object"==typeofURL.prototype&&"origin"inURL.prototype){varh=newURL("b","http://a");h.pathname="c%20d",l="http://a/c%20d"===h.href}}catch(t){}if(!l){varu=Object.create(null);u.ftp=21,u.file=0,u.gopher=70,u.http=80,u.https=443,u.ws=80,u.wss=443;vard=Object.create(null);d["%2e"]=".",d[".%2e"]="..",d["%2e."]="..",d["%2e%2e"]="..";varf,p=/[a-zA-Z]/,g=/[a-zA-Z0-9\+\-\.]/;c.prototype={toString:function(){returnthis.href},gethref(){if(this._isInvalid)returnthis._url;vart="";return""===this._username&&null===this._password||(t=this._username+(null!==this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+t+this.host:"")+this.pathname+this._query+this._fragment},sethref(t){o.call(this),s.call(this,t)},getprotocol(){returnthis._scheme+":"},setprotocol(t){this._isInvalid||s.call(this,t+":","scheme start")},gethost(){returnthis._isInvalid?"":this._port?this._host+":"+this._port:this._host},sethost(t){!this._isInvalid&&this._isRelative&&s.call(this,t,"host")},gethostname(){returnthis._host},sethostname(t){!this._isInvalid&&this._isRelative&&s.call(this,t,"hostname")},getport(){returnthis._port},setport(t){!this._isInvalid&&this._isRelative&&s.call(this,t,"port")},getpathname(){returnthis._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},setpathname(t){!this._isInvalid&&this._isRelative&&(this._path=[],s.call(this,t,"relative path start"))},getsearch(){returnthis._isInvalid||!this._query||"?"===this._query?"":this._query},setsearch(t){!this._isInvalid&&this._isRelative&&(this._query=