(self.webpackChunkswh_name_=self.webpackChunkswh_name_||[]).push([[509],{85719:function(module,exports){vare,t;e=this,t=function(){return(()=>{"use strict";var__webpack_modules__=[,(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=function(e,{url:t,target:r,rel:i,enabled:a=!0}={}){(0,s.assert)(t&&"string"==typeoft,'addLinkAttributes: A valid "url" parameter must provided.');consto=(0,s.removeNullCharacters)(t);a?e.href=e.title=o:(e.href="",e.title=`Disabled: ${o}`,e.onclick=()=>!1);letl="";switch(r){caseh.NONE:break;caseh.SELF:l="_self";break;caseh.BLANK:l="_blank";break;caseh.PARENT:l="_parent";break;caseh.TOP:l="_top"}e.target=l,e.rel="string"==typeofi?i:n},t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getFilenameFromUrl=function(e){constt=e.indexOf("#"),r=e.indexOf("?"),s=Math.min(t>0?t:e.length,r>0?r:e.length);returne.substring(e.lastIndexOf("/",s)+1,s)},t.getPdfFilenameFromUrl=function(e,t="document.pdf"){if("string"!=typeofe)returnt;if(d(e))return(0,s.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;constr=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,n=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);leti=r.exec(n[1])||r.exec(n[2])||r.exec(n[3]);if(i&&(i=i[0],i.includes("%")))try{i=r.exec(decodeURIComponent(i))[0]}catch(e){}returni||t},t.isDataScheme=d,t.isFetchSupported=u,t.isPdfFile=function(e){return"string"==typeofe&&/\.pdf$/i.test(e)},t.isValidFetchUrl=p,t.loadScript=function(e,t=!1){returnnewPromise(((r,s)=>{constn=document.createElement("script");n.src=e,n.onload=function(e){t&&n.remove(),r(e)},n.onerror=function(){s(newError(`Cannot load script at: ${n.src}`))},(document.head||document.documentElement).appendChild(n)}))},t.StatTimer=t.RenderingCancelledException=t.PDFDateString=t.PageViewport=t.LinkTarget=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.BaseCMapReaderFactory=t.BaseCanvasFactory=void0;vars=r(2);constn="noopener noreferrer nofollow";t.DEFAULT_LINK_REL=n;consti="http://www.w3.org/2000/svg";classa{constructor(){this.constructor===a&&(0,s.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){(0,s.unreachable)("Abstract method `create` called.")}reset(e,t,r){if(!e.canvas)thrownewError("Canvas is not specified");if(t<=0||r<=0)thrownewError("Invalid canvas size");e.canvas.width=t,e.canvas.height=r}destroy(e){if(!e.canvas)thrownewError("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}}t.BaseCanvasFactory=a,t.DOMCanvasFactory=classextendsa{constructor({ownerDocument:e=globalThis.document}={}){super(),this._document=e}create(e,t){if(e<=0||t<=0)thrownewError("Invalid canvas size");constr=this._document.createElement("canvas"),s=r.getContext("2d");returnr.width=e,r.height=t,{canvas:r,context:s}}};classo{constructor({baseUrl:e=null,isCompressed:t=!1}){this.constructor===o&&(0,s.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=e,this.isCompressed=t}asyncfetch({name:e}){if(!this.baseUrl)thrownewError('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!e)thrownewError("CMap name must be specified.");constt=this.baseUrl+e+(this.isCompressed?".bcmap":""),r=this.isCompressed?s.CMapCompressionType.BINARY:s.CMapCompressionType.NONE;returnthis._fetchData(t,r).catch((e=>{thrownewError(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${t}`)}))}_fetchData(e,t){(0,s.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=o,t.DOMCMapReaderFactory=classextendso{_fetchData(e,t){returnu()&&p(e,document.baseURI)?fetch(e).then((asynce=>{if(!e.ok)thrownewError(e.statusText);letr;returnr=this.isCompressed?newUint8Array(awaite.arrayBuffer()):(0,s.stringToBytes)(awaite.text()),{cMapData:r,compressionType:t}})):newPromise(((r,n)=>{consti=newXMLHttpRequest;i.open("GET",e,!0),this.isCompressed&&(i.responseType="arraybuffer"),i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(200===i.status||0===i.status){lete;if(this.isCompressed&&i.response?e=newUint8Array(i.response):!this.isCompressed&&i.responseText&&(e=(0,s.stringToBytes)(i.responseText)),e)returnvoidr({cMapData:e,compressionType:t})}n(newError(i.statusText))}},i.send(null)}))}},t.DOMSVGFactory=class{create(e,t){(0,s.assert)(e>0&&t>0,"Invalid SVG dimensions");constr=document.createElementNS(i,"svg:svg");returnr.setAttribute("version","1.1"),r.setAttribute("width",e+"px"),r.setAttribute("height",t+"px"),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox","0 0 "+e+" "+t),r}createElement(e){return(0,s.assert)("string"==typeofe,"Invalid SVG element type"),document.createElementNS(i,e)}};classl{constructor({viewBox:e,scale:t,rotation:r,offsetX:s=0,offsetY:n=0,dontFlip:i=!1}){this.viewBox=e,this.scale=t,this.rotation=r,this.offsetX=s,this.offsetY=n;consta=(e[2]+e[0])/2,o=(e[3]+e[1])/2;letl,c,h,d,u,p,g,f;switch((r%=360)<0&&(r+=360),r){case180:l=-1,c=0,h=0,d=1;break;case90:l=0,c=1,h=1,d=0;break;case270:l=0,c=-1,h=-1,d=0;break;case0:l=1,c=0,h=0,d=-1;break;default:thrownewError("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}i&&(h=-h,d=-d),0===l?(u=Math.abs(o-e[1])*t+s,p=Math.abs(a-e[0])*t+n,g=Math.abs(e[3]-e[1])*t,f=Math.abs(e[2]-e[0])*t):(u=Math.abs(a-e[0])*t+s,p=Math.abs(o-e[1])*t+n,g=Math.abs(e[2]-e[0])*t,f=Math.abs(e[3]-e[1])*t),this.transform=[l*t,c*t,h*t,d*t,u-l*t*a-h*t*o,p-c*t*a-d*t*o],this.width=g,this.height=f}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:r=this.offsetX,offsetY:s=this.offsetY,dontFlip:n=!1}={}){returnnewl({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:r,offsetY:s,dontFlip:n})}convertToViewportPoint(e,t){returns.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){constt=s.Util.applyTransform([e[0],e[1]],this.transform),r=s.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],r[0],r[1]]}convertToPdfPoint(e,t){returns.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=l;classcextendss.BaseException{constructor(e,t){super(e),this.type=t}}t.RenderingCancelledException=c;consth={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};functiond(e){constt=e.length;letr=0;for(;r<t&&""===e[r].trim();)r++;return"data:"===e.substring(r,r+5).toLowerCase()}functionu(){return"undefined"!=typeoffetch&&"undefined"!=typeofResponse&&"body"inResponse.prototype&&"undefined"!=typeofReadableStream}functionp(e,t){try{const{protocol:r}=t?newURL(e,t):newURL(e);return"http:"===r||"https:"===r}catch(e){return!1}}letg;t.LinkTarget=h,t.StatTimer=class{constructor(){this.started=Object.create(null),this.times=[]}time(e){einthis.started&&(0,s.warn)(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){einthis.started||(0,s.warn)(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),deletethis.started[e]}toString(){conste=[];lett=0;for(consteofthis.times){constr=e.name;r.length>t&&(t=r.length)}for(constrofthis.times){consts=r.end-r.start;e.push(`${r.name.padEnd(t)}${s}ms\n`)}returne.join("")}},t.PDFDateString=class{statictoDateObject(e){if(!e||!(0,s.isString)(e))returnnull;g||(g=newRegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));constt=g.exec(e);if(!t)returnnull;constr=parseInt(t[1],10);letn=parseInt(t[2],10);n=n>=1&&n<=12?n-1:0;leti=parseInt(t[3],10);i=i>=1&&i<=31?i:1;leta=parseInt(t[4],10);a=a>=0&&a<=23?a:0;leto=parseInt(t[5],10);o=o>=0&&o<=59?o:0;letl=parseInt(t[6],10);l=l>=0&&l<=59?l:0;constc=t[7]||"Z";leth=parseInt(t[8],10);h=h>=0&&h<=23?h:0;letd=parseInt(t[9],10)||0;returnd=d>=0&&d<=59?d:0,"-"===c?(a+=h,o+=d):"+"===c&&(a-=h,o-=d),newDate(Date.UTC(r,n,i,a,o,l))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.arrayByteLength=u,t.arraysToBytes=function(e){constt=e.length;if(1===t&&e[0]instanceofUint8Array)returne[0];letr=0;for(lets=0;s<t;s++)r+=u(e[s]);lets=0;constn=newUint8Array(r);for(letr=0;r<t;r++){lett=e[r];tinstanceofUint8Array||(t="string"==typeoft?d(t):newUint8Array(t));consti=t.byteLength;n.set(t,s),s+=i}returnn},t.assert=o,t.bytesToString=function(e){o(null!==e&&"object"==typeofe&&void0!==e.length,"Invalid argument for bytesToString");constt=e.length,r=8192;if(t<r)returnString.fromCharCode.apply(null,e);consts=[];for(letn=0;n<t;n+=r){consti=Math.min(n+r,t),a=e.subarray(n,i);s.push(String.fromCharCode.apply(null,a))}returns.join("")},t.createObjectURL=function(e,t="",r=!1){if(URL.createObjectURL&&!r)returnURL.createObjectURL(newBlob([e],{type:t}));consts="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";letn=`data:${t};base64,`;for(lett=0,r=e.length;t<r;t+=3){consti=255&e[t],a=255&e[t+1],o=255&e[t+2];n+=s[i>>2]+s[(3&i)<<4|a>>4]+s[t+1<r?(15&a)<<2|o>>6:64]+s[t+2<r?63&o:64]}returnn},t.createPromiseCapability=function(){conste=Object.create(null);lett=!1;returnObject.defineProperty(e,"settled",{get:()=>t}),e.promise=newPromise((function(r,s){e.resolve=function(e){t=!0,r(e)},e.reject=function(e){t=!0,s(e)}})),e},t.createValidAbsoluteUrl=function(e,t){if(!e)returnnull;try{constr=t?newURL(e,t):newURL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))returnr}catch(e){}returnnull},t.escapeString=function(e){returne.replace(/([()\\\n\r])/g,(e=>"\n"===e?"\\n":"\r"===e?"\\r":`\\${e}`))},t.getModificationDate=function(e=newDate){return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getVerbosityLevel=function(){returnn},t.info=function(e){n>=s.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeofe&&null!==e&&void0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(letr=0,s=e.length;r<s;r++)if(e[r]!==t[r])return!1;return!0},t.isAscii=function(e){return/^[\x00-\x7F]*$/.test(e)},t.isBool=function(e){return"boolean"==typeofe},t.isNum=function(e){return"number"==typeofe},t.isSameOrigin=function(e,t){letr;try{if(r=newURL(e),!r.origin||"null"===r.origin)return!1}catch(e){return!1}consts=newURL(t,r);returnr.origin===s.origin},t.isString=function(e){return"string"==typeofe},t.objectFromMap=function(e){constt=Object.create(null);for(const[r,s]ofe)t[r]=s;returnt},t.objectSize=function(e){returnObject.keys(e).length},t.removeNullCharacters=function(e){return"string"!=typeofe?(i("The argument for removeNullCharacters must be a string."),e):e.replace(h,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(n=e)},t.shadow=l,t.string32=function(e){returnString.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=d,t.stringToPDFString=function(e){constt=e.length,r=[];if("þ"===e[0]&&"ÿ"===e[1])for(lets=2;s<t;s+=2)r.push(String.fromCharCode(e.charCodeAt(s)<<8|e.charCodeAt(s+1)));elseif("ÿ"===e[0]&&"þ"===e[1])for(lets=2;s<t;s+=2)r.push(String.fromCharCode(e.charCodeAt(s+1)<<8|e.charCodeAt(s)));elsefor(lets=0;s<t;++s){constt=_[e.charCodeAt(s)];r.push(t?String.fromCharCode(t):e.charAt(s))}returnr.join("")},t.stringToUTF16BEString=function(e){constt=["þÿ"];for(letr=0,s=e.length;r<s;r++){consts=e.charCodeAt(r);t.push(String.fromCharCode(s>>8&255)),t.push(String.fromCharCode(255&s))}returnt.join("")},t.stringToUTF8String=function(e){returndecodeURIComponent(escape(e))},t.unreachable=a,t.utf8StringToString=function(e){returnunescape(encodeURIComponent(e))},t.warn=i,t.VerbosityLevel=t.Util=t.UNSUPPORTED_FEATURES=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.StreamType=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.IsLittleEndianCached=t.IsEvalSupportedCached=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void0,r(3),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};consts={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=s,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};letn=s.WARNINGS;functioni(e){n>=s.WARNINGS&&console.log(`Warning: ${e}`)}functiona(e){thrownewError(e)}functiono(e,t){e||a(t)}functionl(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r}constc=function(){functione(t){this.constructor===e&&a("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}returne.prototype=newError,e.constructor=e,e}();t.BaseException=c,t.PasswordException=classextendsc{constructor(e,t){super(e),this.code=t}},t.UnknownErrorException=classextendsc{constructor(e,t){super(e),this.details=t}},t.InvalidPDFException=classextendsc{},t.MissingPDFException=classextendsc{},t.UnexpectedResponseException=classextendsc{constructor(e,t){super(e),this.status=t}},t.FormatError=classextendsc{},t.AbortException=classextendsc{};consth=/\x00/g;functiond(e){o("string"==typeofe,"Invalid argument for stringToBytes");constt=e.length,r=newUint8Array(t);for(lets=0;s<t;++s)r[s]=255&e.charCodeAt(s);returnr}functionu(e){returnvoid0!==e.length?e.length:(o(void0!==e.byteLength,"arrayByteLength - invalid argument."),e.byteLength)}constp={getvalue(){returnl(this,"value",function(){conste=newUint8Array(4);returne[0]=1,1===newUint32Array(e.buffer,0,1)[0]}())}};t.IsLittleEndianCached=p;constg={getvalue(){returnl(this,"value",function(){try{returnnewFunction(""),!0}catch(e){return!1}}())}};t.IsEvalSupportedCached=g;constf=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")));classm{staticmakeHexColor(e,t,r){return`#${f[e]}${f[t]}${f[r]}`}statictransform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}staticapplyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}staticapplyInverseTransform(e,t){constr=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/r,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/r]}staticgetAxialAlignedBoundingBox(e,t){constr=m.applyTransform(e,t),s=m.applyTransform(e.slice(2,4),t),n=m.applyTransform([e[0],e[3]],t),i=m.applyTransform([e[2],e[1]],t);return[Math.min(r[0],s[0],n[0],i[0]),Math.min(r[1],s[1],n[1],i[1]),Math.max(r[0],s[0],n[0],i[0]),Math.max(r[1],s[1],n[1],i[1])]}staticinverseTransform(e){constt=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}staticapply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}staticsingularValueDecompose2dScale(e){constt=[e[0],e[2],e[1],e[3]],r=e[0]*t[0]+e[1]*t[2],s=e[0]*t[1]+e[1]*t[3],n=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],a=(r+i)/2,o=Math.sqrt((r+i)**2-4*(r*i-n*s))/2,l=a+o||1,c=a-o||1;return[Math.sqrt(l),Math.sqrt(c)]}staticnormalizeRect(e){constt=e.slice(0);returne[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}staticintersect(e,t){functionr(e,t){returne-t}consts=[e[0],e[2],t[0],t[2]].sort(r),n=[e[1],e[3],t[1],t[3]].sort(r),i=[];returne=m.normalizeRect(e),t=m.normalizeRect(t),s[0]===e[0]&&s[1]===t[0]||s[0]===t[0]&&s[1]===e[0]?(i[0]=s[1],i[2]=s[2],n[0]===e[1]&&n[1]===t[1]||n[0]===t[1]&&n[1]===e[1]?(i[1]=n[1],i[3]=n[2],i):null):null}}t.Util=m;const_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364]},(e,t,r)=>{r(4)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void0;constr=!("object"!=typeofprocess||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=r},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultCMapReaderFactory=exports.DefaultCanvasFactory=exports.build=void0;var_util=__w_pdfjs_require__(2),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(6),_node_utils=__w_pdfjs_require__(7),_annotation_storage=__w_pdfjs_require__(8),_api_compatibility=__w_pdfjs_require__(9),_canvas=__w_pdfjs_require__(10),_worker_options=__w_pdfjs_require__(12),_is_node=__w_pdfjs_require__(4),_message_handler=__w_pdfjs_require__(13),_metadata=__w_pdfjs_require__(14),_optional_content_config=__w_pdfjs_require__(15),_transport_stream=__w_pdfjs_require__(16),_webgl=__w_pdfjs_require__(17);constDEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_is_node.isNodeJS?_node_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;constDefaultCMapReaderFactory=_is_node.isNodeJS?_node_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;letcreatePDFNetworkStream;functionsetPDFNetworkStreamFactory(e){createPDFNetworkStream=e}functiongetDocument(e){constt=newPDFDocumentLoadingTask;letr;if("string"==typeofe||einstanceofURL)r={url:e};elseif((0,_util.isArrayBuffer)(e))r={data:e};elseif(einstanceofPDFDataRangeTransport)r={range:e};else{if("object"!=typeofe)thrownewError("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!e.url&&!e.data&&!e.range)thrownewError("Invalid parameter object: need either .data, .range or .url");r=e}consts=Object.create(null);letn=null,i=null;for(consttinr){consta=r[t];switch(t){case"url":if("undefined"!=typeofwindow)try{s[t]=newURL(a,window.location).href;continue}catch(e){(0,_util.warn)(`Cannot create valid URL: "${e}".`)}elseif("string"==typeofa||ainstanceofURL){s[t]=a.toString();continue}thrownewError("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":n=a;continue;case"worker":i=a;continue;case"data":if(_is_node.isNodeJS&&"undefined"!=typeofBuffer&&ainstanceofBuffer)s[t]=newUint8Array(a);else{if(ainstanceofUint8Array)break;if("string"==typeofa)s[t]=(0,_util.stringToBytes)(a);elseif("object"!=typeofa||null===a||isNaN(a.length)){if(!(0,_util.isArrayBuffer)(a))thrownewError("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.");s[t]=newUint8Array(a)}elses[t]=newUint8Array(a)}continue}s[t]=a}if(s.rangeChunkSize=s.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,s.CMapReaderFactory=s.CMapReaderFactory||DefaultCMapReaderFactory,s.ignoreErrors=!0!==s.stopAtErrors,s.fontExtraProperties=!0===s.fontExtraProperties,s.pdfBug=!0===s.pdfBug,s.enableXfa=!0===s.enableXfa,("string"!=typeofs.docBaseUrl||(0,_display_utils.isDataScheme)(s.docBaseUrl))&&(s.docBaseUrl=null),Number.isInteger(s.maxImageSize)||(s.maxImageSize=-1),"boolean"!=typeofs.isEvalSupported&&(s.isEvalSupported=!0),"boolean"!=typeofs.disableFontFace&&(s.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1),void0===s.ownerDocument&&(s.ownerDocument=globalThis.document),"boolean"!=typeofs.disableRange&&(s.disableRange=!1),"boolean"!=typeofs.disableStream&&(s.disableStream=!1),"boolean"!=typeofs.disableAutoFetch&&(s.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(s.verbosity),!i){conste={verbosity:s.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};i=e.port?PDFWorker.fromPort(e):newPDFWorker(e),t._worker=i}consta=t.docId;returni.promise.then((function(){if(t.destroyed)thrownewError("Loading aborted");conste=_fetchDocument(i,s,n,a),r=newPromise((function(e){lett;n?t=new_transport_stream.PDFDataTransportStream({length:s.length,initialData:s.initialData,progressiveDone:s.progressiveDone,contentDispositionFilename:s.contentDispositionFilename,disableRange:s.disableRange,disableStream:s.disableStream},n):s.data||(t=createPDFNetworkStream({url:s.url,length:s.length,httpHeaders:s.httpHeaders,withCredentials:s.withCredentials,rangeChunkSize:s.rangeChunkSize,disableRange:s.disableRange,disableStream:s.disableStream})),e(t)}));returnPromise.all([e,r]).then((function([e,r]){if(t.destroyed)thrownewError("Loading aborted");constn=new_message_handler.MessageHandler(a,e,i.port);n.postMessageTransfers=i.postMessageTransfers;consto=newWorkerTransport(n,t,r,s);t._transport=o,n.send("Ready",null)}))})).catch(t._capability.reject),t}function_fetchDocument(e,t,r,s){returne.destroyed?Promise.reject(newError("Worker was destroyed")):(r&&(t.length=r.length,t.initialData=r.initialData,t.progressiveDone=r.progressiveDone,t.contentDispositionFilename=r.contentDispositionFilename),e.messageHandler.sendWithPromise("GetDocRequest",{docId:s,apiVersion:"2.8.335",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,postMessageTransfers:e.postMessageTransfers,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties,enableXfa:t.enableXfa}).then((function(t){if(e.destroyed)thrownewError("Worker was destroyed");returnt})))}exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;constPDFDocumentLoadingTask=function(){lete=0;returnclass{constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}getpromise(){returnthis._capability.promise}destroy(){returnthis.destroyed=!0,(this._transport?this._transport.destroy():Promise.resolve()).then((()=>{this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}))}}}();classPDFDataRangeTransport{constructor(e,t,r=!1,s=null){this.length=e,this.initialData=t,this.progressiveDone=r,this.contentDispositionFilename=s,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(constrofthis._rangeListeners)r(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(constrofthis._progressListeners)r(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(consttofthis._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(consteofthis._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;classPDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t}getannotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new_annotation_storage.AnnotationStorage)}getnumPages(){returnthis._pdfInfo.numPages}getfingerprint(){returnthis._pdfInfo.fingerprint}getisPureXfa(){returnthis._pdfInfo.isPureXfa}getPage(e){returnthis._transport.getPage(e)}getPageIndex(e){returnthis._transport.getPageIndex(e)}getDestinations(){returnthis._transport.getDestinations()}getDestination(e){returnthis._transport.getDestination(e)}getPageLabels(){returnthis._transport.getPageLabels()}getPageLayout(){returnthis._transport.getPageLayout()}getPageMode(){returnthis._transport.getPageMode()}getViewerPreferences(){returnthis._transport.getViewerPreferences()}getOpenAction(){returnthis._transport.getOpenAction()}getAttachments(){returnthis._transport.getAttachments()}getJavaScript(){returnthis._transport.getJavaScript()}getJSActions(){returnthis._transport.getDocJSActions()}getOutline(){returnthis._transport.getOutline()}getOptionalContentConfig(){returnthis._transport.getOptionalContentConfig()}getPermissions(){returnthis._transport.getPermissions()}getMetadata(){returnthis._transport.getMetadata()}getMarkInfo(){returnthis._transport.getMarkInfo()}getData(){returnthis._transport.getData()}getDownloadInfo(){returnthis._transport.downloadInfoCapability.promise}getStats(){returnthis._transport.getStats()}cleanup(e=!1){returnthis._transport.startCleanup(e||this.isPureXfa)}destroy(){returnthis.loadingTask.destroy()}getloadingParams(){returnthis._transport.loadingParams}getloadingTask(){returnthis._transport.loadingTask}saveDocument(e){returnthis._transport.saveDocument(e)}getFieldObjects(){returnthis._transport.getFieldObjects()}hasJSActions(){returnthis._transport.hasJSActions()}getCalculationOrderIds(){returnthis._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;classPDFPageProxy{constructor(e,t,r,s,n=!1){this._pageIndex=e,this._pageInfo=t,this._ownerDocument=s,this._transport=r,this._stats=n?new_display_utils.StatTimer:null,this._pdfBug=n,this.commonObjs=r.commonObjs,this.objs=newPDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=newMap,this.destroyed=!1}getpageNumber(){returnthis._pageIndex+1}getrotate(){returnthis._pageInfo.rotate}getref(){returnthis._pageInfo.ref}getuserUnit(){returnthis._pageInfo.userUnit}getview(){returnthis._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:r=0,offsetY:s=0,dontFlip:n=!1}={}){returnnew_display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:r,offsetY:s,dontFlip:n})}getAnnotations({intent:e=null}={}){returnthis._annotationsPromise&&this._annotationsIntent===e||(this._annotationsPromise=this._transport.getAnnotations(this._pageIndex,e),this._annotationsIntent=e),this._annotationsPromise}getJSActions(){returnthis._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}getXfa(){returnthis._xfaPromise||(this._xfaPromise=this._transport.getPageXfa(this._pageIndex))}render({canvasContext:e,viewport:t,intent:r="display",enableWebGL:s=!1,renderInteractiveForms:n=!1,transform:i=null,imageLayer:a=null,canvasFactory:o=null,background:l=null,annotationStorage:c=null,optionalContentConfigPromise:h=null}){vard;this._stats&&this._stats.time("Overall");constu="print"===r?"print":"display";this.pendingCleanup=!1,h||(h=this._transport.getOptionalContentConfig());letp=this._intentStates.get(u);p||(p=Object.create(null),this._intentStates.set(u,p)),p.streamReaderCancelTimeout&&(clearTimeout(p.streamReaderCancelTimeout),p.streamReaderCancelTimeout=null);constg=o||newDefaultCanvasFactory({ownerDocument:this._ownerDocument}),f=new_webgl.WebGLContext({enable:s});p.displayReadyCapability||(p.displayReadyCapability=(0,_util.createPromiseCapability)(),p.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:u,renderInteractiveForms:!0===n,annotationStorage:c?.serializable||null}));constm=e=>{p.renderTasks.delete(_),(this.cleanupAfterRender||"print"===u)&&(this.pendingCleanup=!0),this._tryCleanup(),e?(_.capability.reject(e),this._abortOperatorList({intentState:p,reason:e})):_.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},_=newInternalRenderTask({callback:m,params:{canvasContext:e,viewport:t,transform:i,imageLayer:a,background:l},objs:this.objs,commonObjs:this.commonObjs,operatorList:p.operatorList,pageIndex:this._pageIndex,canvasFactory:g,webGLContext:f,useRequestAnimationFrame:"print"!==u,pdfBug:this._pdfBug});((d=p).renderTasks||(d.renderTasks=newSet)).add(_);constA=_.task;returnPromise.all([p.displayReadyCapability.promise,h]).then((([e,t])=>{this.pendingCleanup?m():(this._stats&&this._stats.time("Rendering"),_.initializeGraphics({transparency:e,optionalContentConfig:t}),_.operatorListChanged())})).catch(m),A}getOperatorList(){conste="oplist";lett,r=this._intentStates.get(e);vars;returnr||(r=Object.create(null),this._intentStates.set(e,r)),r.opListReadCapability||(t=Object.create(null),t.operatorListChanged=function(){r.operatorList.lastChunk&&(r.opListReadCapability.resolve(r.operatorList),r.renderTasks.delete(t))},r.opListReadCapability=(0,_util.createPromiseCapability)(),((s=r).renderTasks||(s.renderTasks=newSet)).add(t),r.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this._pageIndex,intent:e})),r.opListReadCapability.promise}streamTextContent({normalizeWhitespace:e=!1,disableCombineTextItems:t=!1}={}){returnthis._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===e,combineTextItems:!0!==t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(e={}){constt=this.streamTextContent(e);returnnewPromise((function(e,r){consts=t.getReader(),n={items:[],styles:Object.create(null)};!functiont(){s.read().then((function({value:r,done:s}){s?e(n):(Object.assign(n.styles,r.styles),n.items.push(...r.items),t())}),r)}()}))}_destroy(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;conste=[];for(const[t,r]ofthis._intentStates)if(this._abortOperatorList({intentState:r,reason:newError("Page was destroyed."),force:!0}),"oplist"!==t)for(consttofr.renderTasks)e.push(t.completed),t.cancel();returnthis.objs.clear(),this._annotationsPromise=null,this._jsActionsPromise=null,this._xfaPromise=null,this.pendingCleanup=!1,Promise.all(e)}cleanup(e=!1){returnthis.pendingCleanup=!0,this._tryCleanup(e)}_tryCleanup(e=!1){if(!this.pendingCleanup)return!1;for(const{renderTasks:e,operatorList:t}ofthis._intentStates.values())if(e.size>0||!t.lastChunk)return!1;returnthis._intentStates.clear(),this.objs.clear(),this._annotationsPromise=null,this._jsActionsPromise=null,this._xfaPromise=null,e&&this._stats&&(this._stats=new_display_utils.StatTimer),this.pendingCleanup=!1,!0}_startRenderPage(e,t){constr=this._intentStates.get(t);r&&(this._stats&&this._stats.timeEnd("Page Request"),r.displayReadyCapability&&r.displayReadyCapability.resolve(e))}_renderPageChunk(e,t){for(letr=0,s=e.length;r<s;r++)t.operatorList.fnArray.push(e.fnArray[r]),t.operatorList.argsArray.push(e.argsArray[r]);t.operatorList.lastChunk=e.lastChunk;for(consteoft.renderTasks)e.operatorListChanged();e.lastChunk&&this._tryCleanup()}_pumpOperatorList(e){(0,_util.assert)(e.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');constt=this._transport.messageHandler.sendWithStream("GetOperatorList",e).getReader(),r=this._intentStates.get(e.intent);r.streamReader=t;consts=()=>{t.read().then((({value:e,done:t})=>{t?r.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,r),s())}),(e=>{if(r.streamReader=null,!this._transport.destroyed){if(r.operatorList){r.operatorList.lastChunk=!0;for(consteofr.renderTasks)e.operatorListChanged();this._tryCleanup()}if(r.displayReadyCapability)r.displayReadyCapability.reject(e);else{if(!r.opListReadCapability)throwe;r.opListReadCapability.reject(e)}}}))};s()}_abortOperatorList({intentState:e,reason:t,force:r=!1}){if((0,_util.assert)(tinstanceofError||"object"==typeoft&&null!==t,'PDFPageProxy._abortOperatorList: Expected "reason" argument.'),e.streamReader){if(!r){if(e.renderTasks.size>0)return;if(tinstanceof_display_utils.RenderingCancelledException)returnvoid(e.streamReaderCancelTimeout=setTimeout((()=>{this._abortOperatorList({intentState:e,reason:t,force:!0}),e.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}if(e.streamReader.cancel(new_util.AbortException(t?.message)),e.streamReader=null,!this._transport.destroyed){for(const[t,r]ofthis._intentStates)if(r===e){this._intentStates.delete(t);break}this.cleanup()}}}getstats(){returnthis._stats}}exports.PDFPageProxy=PDFPageProxy;classLoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve(void0)}postMessage(e,t){constr=newWeakMap,s={data:functione(s){if("object"!=typeofs||null===s)returns;if(r.has(s))returnr.get(s);letn,i;if((n=s.buffer)&&(0,_util.isArrayBuffer)(n))returni=t?.includes(n)?news.constructor(n,s.byteOffset,s.byteLength):news.constructor(s),r.set(s,i),i;if(sinstanceofMap){i=newMap,r.set(s,i);for(const[t,r]ofs)i.set(t,e(r));returni}if(sinstanceofSet){i=newSet,r.set(s,i);for(consttofs)i.add(e(t));returni}i=Array.isArray(s)?[]:{},r.set(s,i);for(consttins){letr,n=s;for(;!(r=Object.getOwnPropertyDescriptor(n,t));)n=Object.getPrototypeOf(n);if(void0!==r.value)if("function"!=typeofr.value)i[t]=e(r.value);elseif(s.hasOwnProperty?.(t))thrownewError(`LoopbackPort.postMessage - cannot clone: ${s[t]}`)}returni}(e)};this._deferred.then((()=>{for(consteofthis._listeners)e.call(this,s)}))}addEventListener(e,t){this._listeners.push(t)}removeEventListener(e,t){constr=this._listeners.indexOf(t);this._listeners.splice(r,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;constPDFWorker=functionPDFWorkerClosure(){constpdfWorkerPorts=newWeakMap;letisWorkerDisabled=!1,fallbackWorkerSrc,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS&&"function"==typeofrequire)isWorkerDisabled=!0,fallbackWorkerSrc="./pdf.worker.js";elseif("object"==typeofdocument&&"currentScript"indocument){conste=document.currentScript?.src;e&&(fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}functiongetWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return_worker_options.GlobalWorkerOptions.workerSrc;if(void0!==fallbackWorkerSrc)return_is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;thrownewError('No "GlobalWorkerOptions.workerSrc" specified.')}functiongetMainThreadWorkerMessageHandler(){lete;try{e=globalThis.pdfjsWorker?.WorkerMessageHandler}catch(e){}returne||null}functionsetupFakeWorkerGlobal(){if(fakeWorkerCapability)returnfakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();constloader=asyncfunction(){constmainWorkerMessageHandler=getMainThreadWorkerMessageHandler();if(mainWorkerMessageHandler)returnmainWorkerMessageHandler;if(_is_node.isNodeJS&&"function"==typeofrequire){constworker=eval("require")(getWorkerSrc());returnworker.WorkerMessageHandler}returnawait(0,_display_utils.loadScript)(getWorkerSrc()),window.pdfjsWorker.WorkerMessageHandler};returnloader().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject),fakeWorkerCapability.promise}functioncreateCDNWrapper(e){constt="importScripts('"+e+"');";returnURL.createObjectURL(newBlob([t]))}classPDFWorker{constructor({name:e=null,port:t=null,verbosity:r=(0,_util.getVerbosityLevel)()}={}){if(t&&pdfWorkerPorts.has(t))thrownewError("Cannot use more than one PDFWorker per port");this.name=e,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=r,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t?(pdfWorkerPorts.set(t,this),this._initializeFromPort(t)):this._initialize()}getpromise(){returnthis._readyCapability.promise}getport(){returnthis._port}getmessageHandler(){returnthis._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new_message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeofWorker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){lete=getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,e)||(e=createCDNWrapper(newURL(e,window.location).href));constt=newWorker(e),r=new_message_handler.MessageHandler("main","worker",t),s=()=>{t.removeEventListener("error",n),r.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(newError("Worker was destroyed")):this._setupFakeWorker()},n=()=>{this._webWorker||s()};t.addEventListener("error",n),r.on("test",(e=>{t.removeEventListener("error",n),this.destroyed?s():e?(this._messageHandler=r,this._port=t,this._webWorker=t,e.supportTransfers||(this.postMessageTransfers=!1),this._readyCapability.resolve(),r.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),r.destroy(),t.terminate())})),r.on("ready",(e=>{if(t.removeEventListener("error",n),this.destroyed)s();elsetry{i()}catch(e){this._setupFakeWorker()}}));consti=()=>{conste=newUint8Array([this.postMessageTransfers?255:0]);try{r.send("test",e,[e.buffer])}catch(t){(0,_util.warn)("Cannot use postMessage transfers."),e[0]=0,r.send("test",e)}};returnvoidi()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0),setupFakeWorkerGlobal().then((e=>{if(this.destroyed)returnvoidthis._readyCapability.reject(newError("Worker was destroyed"));constt=newLoopbackPort;this._port=t;constr="fake"+nextFakeWorkerId++,s=new_message_handler.MessageHandler(r+"_worker",r,t);e.setup(s,t);constn=new_message_handler.MessageHandler(r,r+"_worker",t);this._messageHandler=n,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(newError(`Setting up fake worker failed: "${e.message}".`))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),pdfWorkerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}staticfromPort(e){if(!e||!e.port)thrownewError("PDFWorker.fromPort - invalid method signature.");returnpdfWorkerPorts.has(e.port)?pdfWorkerPorts.get(e.port):newPDFWorker(e)}staticgetWorkerSrc(){returngetWorkerSrc()}}returnPDFWorker}();exports.PDFWorker=PDFWorker;classWorkerTransport{constructor(e,t,r,s){this.messageHandler=e,this.loadingTask=t,this.commonObjs=newPDFObjects,this.fontLoader=new_font_loader.FontLoader({docId:t.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:s.ownerDocument}),this._params=s,this.CMapReaderFactory=news.CMapReaderFactory({baseUrl:s.cMapUrl,isCompressed:s.cMapPacked}),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}getloadingTaskSettled(){returnthis.loadingTask._capability.settled}destroy(){if(this.destroyCapability)returnthis.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(newError("Worker was destroyed during onPassword callback"));conste=[];this.pageCache.forEach((function(t){t&&e.push(t._destroy())})),this.pageCache.length=0,this.pagePromises.length=0;constt=this.messageHandler.sendWithPromise("Terminate",null);if(e.push(t),this.loadingTaskSettled){constt=this.loadingTask.promise.then((e=>{e.hasOwnProperty("annotationStorage")&&e.annotationStorage.resetModified()})).catch((()=>{}));e.push(t)}returnPromise.all(e).then((()=>{this.commonObjs.clear(),this.fontLoader.clear(),this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new_util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function({value:e,done:r}){r?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),t.enqueue(newUint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throwe}))}})),e.on("ReaderHeadersReady",(e=>{constr=(0,_util.createPromiseCapability)(),s=this._fullReader;returns.headersReady.then((()=>{s.isStreamingSupported&&s.isRangeSupported||(this._lastProgress&&t.onProgress&&t.onProgress(this._lastProgress),s.onProgress=e=>{t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}),r.resolve({isStreamingSupported:s.isStreamingSupported,isRangeSupported:s.isRangeSupported,contentLength:s.contentLength})}),r.reject),r.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");constr=this._networkStream.getRangeReader(e.begin,e.end);r?(t.onPull=()=>{r.read().then((function({value:e,done:r}){r?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),t.enqueue(newUint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{r.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throwe}))}):t.close()})),e.on("GetDoc",(({pdfInfo:e})=>{this._numPages=e.numPages,t._capability.resolve(newPDFDocumentProxy(e,this))})),e.on("DocException",(function(e){letr;switch(e.name){case"PasswordException":r=new_util.PasswordException(e.message,e.code);break;case"InvalidPDFException":r=new_util.InvalidPDFException(e.message);break;case"MissingPDFException":r=new_util.MissingPDFException(e.message);break;case"UnexpectedResponseException":r=new_util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":r=new_util.UnknownErrorException(e.message,e.details)}if(!(rinstanceofError)){conste="DocException - expected a valid Error.";(0,_util.warn)(e)}t._capability.reject(r)})),e.on("PasswordRequest",(e=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),t.onPassword){constr=e=>{this._passwordCapability.resolve({password:e})};try{t.onPassword(r,e.code)}catch(e){this._passwordCapability.reject(e)}}elsethis._passwordCapability.reject(new_util.PasswordException(e.message,e.code));returnthis._passwordCapability.promise})),e.on("DataLoaded",(e=>{t.onProgress&&t.onProgress({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||this.pageCache[e.pageIndex]._startRenderPage(e.transparency,e.intent)})),e.on("commonobj",(t=>{if(this.destroyed)return;const[r,s,n]=t;if(!this.commonObjs.has(r))switch(s){case"Font":constt=this._params;if("error"inn){conste=n.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(r,e);break}leti=null;t.pdfBug&&globalThis.FontInspector?.enabled&&(i={registerFont(e,t){globalThis.FontInspector.fontAdded(e,t)}});consta=new_font_loader.FontFaceObject(n,{isEvalSupported:t.isEvalSupported,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:i});this.fontLoader.bind(a).catch((t=>e.sendWithPromise("FontFallback",{id:r}))).finally((()=>{!t.fontExtraProperties&&a.data&&(a.data=null),this.commonObjs.resolve(r,a)}));break;case"FontPath":case"Image":this.commonObjs.resolve(r,n);break;default:thrownewError(`Got unknown common object type ${s}`)}})),e.on("obj",(e=>{if(this.destroyed)return;const[t,r,s,n]=e,i=this.pageCache[r];if(!i.objs.has(t))switch(s){case"Image":i.objs.resolve(t,n);conste=8e6;n?.data?.length>e&&(i.cleanupAfterRender=!0);break;default:thrownewError(`Got unknown object type ${s}`)}})),e.on("DocProgress",(e=>{this.destroyed||t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",((e,t)=>{if(this.destroyed)returnvoidt.error(newError("Worker was destroyed"));letr=!1;t.onPull=()=>{r?t.close():(r=!0,this.CMapReaderFactory.fetch(e).then((function(e){t.enqueue(e,1,[e.cMapData.buffer])})).catch((function(e){t.error(e)})))}}))}_onUnsupportedFeature({featureId:e}){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(e)}getData(){returnthis.messageHandler.sendWithPromise("GetData",null)}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)returnPromise.reject(newError("Invalid page request"));constt=e-1;if(tinthis.pagePromises)returnthis.pagePromises[t];constr=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)thrownewError("Transport destroyed");constr=newPDFPageProxy(t,e,this,this._params.ownerDocument,this._params.pdfBug);returnthis.pageCache[t]=r,r}));returnthis.pagePromises[t]=r,r}getPageIndex(e){returnthis.messageHandler.sendWithPromise("GetPageIndex",{ref:e}).catch((function(e){returnPromise.reject(newError(e))}))}getAnnotations(e,t){returnthis.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}saveDocument(e){returnthis.messageHandler.sendWithPromise("SaveDocument",{numPages:this._numPages,annotationStorage:e?.serializable||null,filename:this._fullReader?.filename??null}).finally((()=>{e&&e.resetModified()}))}getFieldObjects(){returnthis.messageHandler.sendWithPromise("GetFieldObjects",null)}hasJSActions(){returnthis._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}getCalculationOrderIds(){returnthis.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){returnthis.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeofe?Promise.reject(newError("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){returnthis.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){returnthis.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){returnthis.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){returnthis.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){returnthis.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){returnthis.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){returnthis.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){returnthis.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(e){returnthis.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getPageXfa(e){returnthis.messageHandler.sendWithPromise("GetPageXfa",{pageIndex:e})}getOutline(){returnthis.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){returnthis.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new_optional_content_config.OptionalContentConfig(e)))}getPermissions(){returnthis.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){returnthis.messageHandler.sendWithPromise("GetMetadata",null).then((e=>({info:e[0],metadata:e[1]?new_metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null})))}getMarkInfo(){returnthis.messageHandler.sendWithPromise("GetMarkInfo",null)}getStats(){returnthis.messageHandler.sendWithPromise("GetStats",null)}asyncstartCleanup(e=!1){if(awaitthis.messageHandler.sendWithPromise("Cleanup",null),!this.destroyed){for(lete=0,t=this.pageCache.length;e<t;e++){constt=this.pageCache[e];if(t&&!t.cleanup())thrownewError(`startCleanup: Page ${e+1} is currently rendering.`)}this.commonObjs.clear(),e||this.fontLoader.clear(),this._hasJSActionsPromise=null}}getloadingParams(){conste=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,disableFontFace:e.disableFontFace})}}classPDFObjects{constructor(){this._objs=Object.create(null)}_ensureObj(e){returnthis._objs[e]?this._objs[e]:this._objs[e]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}get(e,t=null){if(t)returnthis._ensureObj(e).capability.promise.then(t),null;constr=this._objs[e];if(!r||!r.resolved)thrownewError(`Requesting object that isn't resolved yet ${e}.`);returnr.data}has(e){returnthis._objs[e]?.resolved||!1}resolve(e,t){constr=this._ensureObj(e);r.resolved=!0,r.data=t,r.capability.resolve(t)}clear(){this._objs=Object.create(null)}}classRenderTask{constructor(e){this._internalRenderTask=e,this.onContinue=null}getpromise(){returnthis._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}constInternalRenderTask=function(){conste=newWeakSet;returnclass{constructor({callback:e,params:t,objs:r,commonObjs:s,operatorList:n,pageIndex:i,canvasFactory:a,webGLContext:o,useRequestAnimationFrame:l=!1,pdfBug:c=!1}){this.callback=e,this.params=t,this.objs=r,this.commonObjs=s,this.operatorListIdx=null,this.operatorList=n,this._pageIndex=i,this.canvasFactory=a,this.webGLContext=o,this._pdfBug=c,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===l&&"undefined"!=typeofwindow,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=newRenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvasContext.canvas}getcompleted(){returnthis.capability.promise.catch((function(){}))}initializeGraphics({transparency:t=!1,optionalContentConfig:r}){if(this.cancelled)return;if(this._canvas){if(e.has(this._canvas))thrownewError("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");e.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:s,viewport:n,transform:i,imageLayer:a,background:o}=this.params;this.gfx=new_canvas.CanvasGraphics(s,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext,a,r),this.gfx.beginDrawing({transform:i,viewport:n,transparency:t,background:o}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(t=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback(t||new_display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async_next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&e.delete(this._canvas),this.callback())))}}}(),version="2.8.335";exports.version=version;constbuild="228adbf67";exports.build=build},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void0;vars=r(2);classn{constructor({docId:e,onUnsupportedFeature:t,ownerDocument:r=globalThis.document}){this.constructor===n&&(0,s.unreachable)("Cannot initialize BaseFontLoader."),this.docId=e,this._onUnsupportedFeature=t,this._document=r,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(e){this.nativeFontFaces.push(e),this._document.fonts.add(e)}insertRule(e){lett=this.styleElement;t||(t=this.styleElement=this._document.createElement("style"),t.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].appendChild(t));constr=t.sheet;r.insertRule(e,r.cssRules.length)}clear(){this.nativeFontFaces.forEach((e=>{this._document.fonts.delete(e)})),this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}asyncbind(e){if(e.attached||e.missingFile)return;if(e.attached=!0,this.isFontLoadingAPISupported){constt=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{awaitt.loaded}catch(r){throwthis._onUnsupportedFeature({featureId:s.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,s.warn)(`Failed to load font '${t.family}': '${r}'.`),e.disableFontFace=!0,r}}return}constt=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;awaitnewPromise((r=>{consts=this._queueLoadingCallback(r);this._prepareFontLoadEvent([t],[e],s)}))}}_queueLoadingCallback(e){(0,s.unreachable)("Abstract method `_queueLoadingCallback`.")}getisFontLoadingAPISupported(){return(0,s.shadow)(this,"isFontLoadingAPISupported",!!this._document?.fonts)}getisSyncFontLoadingSupported(){(0,s.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get_loadTestFont(){(0,s.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(e,t,r){(0,s.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}leti;t.FontLoader=i,t.FontLoader=i=classextendsn{constructor(e){super(e),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}getisSyncFontLoadingSupported(){lete=!1;return("undefined"==typeofnavigator||/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent)?.[1]>=14)&&(e=!0),(0,s.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){constt=this.loadingContext,r={id:"pdfjs-font-loading-"+t.nextRequestId++,done:!1,complete:function(){for((0,s.assert)(!r.done,"completeRequest() cannot be called twice."),r.done=!0;t.requests.length>0&&t.requests[0].done;){conste=t.requests.shift();setTimeout(e.callback,0)}},callback:e};returnt.requests.push(r),r}get_loadTestFont(){return(0,s.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t,r){functionn(e,t){returne.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}functioni(e,t,r,s){returne.substring(0,t)+s+e.substring(t+r)}leta,o;constl=this._document.createElement("canvas");l.width=1,l.height=1;constc=l.getContext("2d");leth=0;constd=`lt${Date.now()}${this.loadTestFontId++}`;letu=this._loadTestFont;u=i(u,976,d.length,d);constp=1482184792;letg=n(u,16);for(a=0,o=d.length-3;a<o;a+=4)g=g-p+n(d,a)|0;a<d.length&&(g=g-p+n(d+"XXX",a)|0),u=i(u,16,4,(0,s.string32)(g));constf=`@font-face {font-family:"${d}";src:url(data:font/opentype;base64,${btoa(u)});}`;this.insertRule(f);constm=[];for(a=0,o=t.length;a<o;a++)m.push(t[a].loadedName);m.push(d);const_=this._document.createElement("div");for(_.style.visibility="hidden",_.style.width=_.style.height="10px",_.style.position="absolute",_.style.top=_.style.left="0px",a=0,o=m.length;a<o;++a){conste=this._document.createElement("span");e.textContent="Hi",e.style.fontFamily=m[a],_.appendChild(e)}this._document.body.appendChild(_),functione(t,r){if(h++,h>30)return(0,s.warn)("Load test font never loaded."),voidr();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?r():setTimeout(e.bind(null,t,r))}(d,(()=>{this._document.body.removeChild(_),r.complete()}))}},t.FontFaceObject=class{constructor(e,{isEvalSupported:t=!0,disableFontFace:r=!1,ignoreErrors:s=!1,onUnsupportedFeature:n,fontRegistry:i=null}){this.compiledGlyphs=Object.create(null);for(consttine)this[t]=e[t];this.isEvalSupported=!1!==t,this.disableFontFace=!0===r,this.ignoreErrors=!0===s,this._onUnsupportedFeature=n,this.fontRegistry=i}createNativeFontFace(){if(!this.data||this.disableFontFace)returnnull;conste=newFontFace(this.loadedName,this.data,{});returnthis.fontRegistry&&this.fontRegistry.registerFont(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)returnnull;conste=(0,s.bytesToString)(newUint8Array(this.data)),t=`url(data:${this.mimetype};base64,${btoa(e)});`,r=`@font-face {font-family:"${this.loadedName}";src:${t}}`;returnthis.fontRegistry&&this.fontRegistry.registerFont(this,t),r}getPathGenerator(e,t){if(void0!==this.compiledGlyphs[t])returnthis.compiledGlyphs[t];letr,n;try{r=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throwe;returnthis._onUnsupportedFeature({featureId:s.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,s.warn)(`getPathGenerator - ignoring character: "${e}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&s.IsEvalSupportedCached.value){lete,s="";for(lett=0,i=r.length;t<i;t++)n=r[t],e=void0!==n.args?n.args.join(","):"",s+="c."+n.cmd+"("+e+");\n";returnthis.compiledGlyphs[t]=newFunction("c","size",s)}returnthis.compiledGlyphs[t]=function(e,t){for(lets=0,i=r.length;s<i;s++)n=r[s],"scale"===n.cmd&&(n.args=[t,-t]),e[n.cmd].apply(e,n.args)}}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeCMapReaderFactory=t.NodeCanvasFactory=void0;vars=r(1),n=r(4),i=r(2);leta=class{constructor(){(0,i.unreachable)("Not implemented: NodeCanvasFactory")}};t.NodeCanvasFactory=a;leto=class{constructor(){(0,i.unreachable)("Not implemented: NodeCMapReaderFactory")}};t.NodeCMapReaderFactory=o,n.isNodeJS&&(t.NodeCanvasFactory=a=classextendss.BaseCanvasFactory{create(e,t){if(e<=0||t<=0)thrownewError("Invalid canvas size");constr=require("canvas").createCanvas(e,t);return{canvas:r,context:r.getContext("2d")}}},t.NodeCMapReaderFactory=o=classextendss.BaseCMapReaderFactory{_fetchData(e,t){returnnewPromise(((r,s)=>{require("fs").readFile(e,((e,n)=>{!e&&n?r({cMapData:newUint8Array(n),compressionType:t}):s(newError(e))}))}))}})},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationStorage=void0;vars=r(1),n=r(2);t.AnnotationStorage=class{constructor(){this._storage=newMap,this._modified=!1,this.onSetModified=null,this.onResetModified=null}getValue(e,t){constr=this._storage.get(e);returnvoid0!==r?r:t}getOrCreateValue(e,t){return(0,s.deprecated)("Use getValue instead."),this._storage.has(e)?this._storage.get(e):(this._storage.set(e,t),t)}setValue(e,t){constr=this._storage.get(e);lets=!1;if(void0!==r)for(const[e,n]ofObject.entries(t))r[e]!==n&&(s=!0,r[e]=n);elsethis._storage.set(e,t),s=!0;s&&this._setModified()}getAll(){returnthis._storage.size>0?(0,n.objectFromMap)(this._storage):null}getsize(){returnthis._storage.size}_setModified(){this._modified||(this._modified=!0,"function"==typeofthis.onSetModified&&this.onSetModified())}resetModified(){this._modified&&(this._modified=!1,"function"==typeofthis.onResetModified&&this.onResetModified())}getserializable(){returnthis._storage.size>0?this._storage:null}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.apiCompatibilityParams=void0;vars=r(4);constn=Object.create(null);s.isNodeJS&&(n.disableFontFace=!0);consti=Object.freeze(n);t.apiCompatibilityParams=i},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void0;vars=r(2),n=r(11);consti=4096,a=16;functiono(e){if(!e.mozCurrentTransform){e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._originalResetTransform=e.resetTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[];try{constt=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"lineWidth");e._setLineWidth=t.set,e._getLineWidth=t.get,Object.defineProperty(e,"lineWidth",{set:function(e){this._setLineWidth(1.000001*e)},get:function(){returnthis._getLineWidth()}})}catch(e){}Object.defineProperty(e,"mozCurrentTransform",{get:function(){returnthis._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){conste=this._transformMatrix,t=e[0],r=e[1],s=e[2],n=e[3],i=e[4],a=e[5],o=t*n-r*s,l=r*s-t*n;return[n/o,r/l,s/l,t/o,(n*i-s*a)/l,(r*i-t*a)/o]}}),e.save=function(){conste=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){conste=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){constr=this._transformMatrix;r[4]=r[0]*e+r[2]*t+r[4],r[5]=r[1]*e+r[3]*t+r[5],this._originalTranslate(e,t)},e.scale=function(e,t){constr=this._transformMatrix;r[0]=r[0]*e,r[1]=r[1]*e,r[2]=r[2]*t,r[3]=r[3]*t,this._originalScale(e,t)},e.transform=function(t,r,s,n,i,a){consto=this._transformMatrix;this._transformMatrix=[o[0]*t+o[2]*r,o[1]*t+o[3]*r,o[0]*s+o[2]*n,o[1]*s+o[3]*n,o[0]*i+o[2]*a+o[4],o[1]*i+o[3]*a+o[5]],e._originalTransform(t,r,s,n,i,a)},e.setTransform=function(t,r,s,n,i,a){this._transformMatrix=[t,r,s,n,i,a],e._originalSetTransform(t,r,s,n,i,a)},e.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],e._originalResetTransform()},e.rotate=function(e){constt=Math.cos(e),r=Math.sin(e),s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*r,s[1]*t+s[3]*r,s[0]*-r+s[2]*t,s[1]*-r+s[3]*t,s[4],s[5]],this._originalRotate(e)}}}constl=function(){functione(e){this.canvasFactory=e,this.cache=Object.create(null)}returne.prototype={getCanvas:function(e,t,r,s){letn;returnvoid0!==this.cache[e]?(n=this.cache[e],this.canvasFactory.reset(n,t,r),n.context.setTransform(1,0,0,1,0,0)):(n=this.canvasFactory.create(t,r),this.cache[e]=n),s&&o(n.context),n},clear(){for(consteinthis.cache){constt=this.cache[e];this.canvasFactory.destroy(t),deletethis.cache[e]}}},e}(),c=function(){functione(){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=s.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=s.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=s.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.resumeSMaskCtx=null,this.transferMaps=null}returne.prototype={clone:function(){returnObject.create(this)},setCurrentPoint:function(e,t){this.x=e,this.y=t}},e}(),h=function(){functione(e,t,r,s,n,i,a){this.ctx=e,this.current=newc,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=r,this.canvasFactory=s,this.webGLContext=n,this.imageLayer=i,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=a,this.cachedCanvases=newl(this.canvasFactory),e&&o(e),this._cachedGetSinglePixelWidth=null}functiont(e,t,r=null){if("undefined"!=typeofImageData&&tinstanceofImageData)returnvoide.putImageData(t,0,0);constn=t.height,i=t.width,o=n%a,l=(n-o)/a,c=0===o?l:l+1,h=e.createImageData(i,a);letd,u=0;constp=t.data,g=h.data;letf,m,_,A,b,y,S,v;if(r)switch(r.length){case1:b=r[0],y=r[0],S=r[0],v=r[0];break;case4:b=r[0],y=r[1],S=r[2],v=r[3]}if(t.kind===s.ImageKind.GRAYSCALE_1BPP){constt=p.byteLength,r=newUint32Array(g.buffer,0,g.byteLength>>2),n=r.length,A=i+7>>3;letb=4294967295,y=s.IsLittleEndianCached.value?4278190080:255;for(v&&255===v[0]&&0===v[255]&&([b,y]=[y,b]),f=0;f<c;f++){for(_=f<l?a:o,d=0,m=0;m<_;m++){conste=t-u;lets=0;constn=e>A?i:8*e-7,a=-8&n;leto=0,l=0;for(;s<a;s+=8)l=p[u++],r[d++]=128&l?b:y,r[d++]=64&l?b:y,r[d++]=32&l?b:y,r[d++]=16&l?b:y,r[d++]=8&l?b:y,r[d++]=4&l?b:y,r[d++]=2&l?b:y,r[d++]=1&l?b:y;for(;s<n;s++)0===o&&(l=p[u++],o=128),r[d++]=l&o?b:y,o>>=1}for(;d<n;)r[d++]=0;e.putImageData(h,0,f*a)}}elseif(t.kind===s.ImageKind.RGBA_32BPP){constt=!!(b||y||S);for(m=0,A=i*a*4,f=0;f<l;f++){if(g.set(p.subarray(u,u+A)),u+=A,t)for(lete=0;e<A;e+=4)b&&(g[e+0]=b[g[e+0]]),y&&(g[e+1]=y[g[e+1]]),S&&(g[e+2]=S[g[e+2]]);e.putImageData(h,0,m),m+=a}if(f<c){if(A=i*o*4,g.set(p.subarray(u,u+A)),t)for(lete=0;e<A;e+=4)b&&(g[e+0]=b[g[e+0]]),y&&(g[e+1]=y[g[e+1]]),S&&(g[e+2]=S[g[e+2]]);e.putImageData(h,0,m)}}else{if(t.kind!==s.ImageKind.RGB_24BPP)thrownewError(`bad image kind: ${t.kind}`);{constt=!!(b||y||S);for(_=a,A=i*_,f=0;f<c;f++){for(f>=l&&(_=o,A=i*_),d=0,m=A;m--;)g[d++]=p[u++],g[d++]=p[u++],g[d++]=p[u++],g[d++]=255;if(t)for(lete=0;e<d;e+=4)b&&(g[e+0]=b[g[e+0]]),y&&(g[e+1]=y[g[e+1]]),S&&(g[e+2]=S[g[e+2]]);e.putImageData(h,0,f*a)}}}}functionr(e,t){constr=t.height,s=t.width,n=r%a,i=(r-n)/a,o=0===n?i:i+1,l=e.createImageData(s,a);letc=0;consth=t.data,d=l.data;for(lett=0;t<o;t++){constr=t<i?a:n;leto=3;for(lete=0;e<r;e++){lete,t=0;for(letr=0;r<s;r++)t||(e=h[c++],t=128),d[o]=e&t?0:255,o+=4,t>>=1}e.putImageData(l,0,t*a)}}functionh(e,t){constr=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"];for(lets=0,n=r.length;s<n;s++){constn=r[s];void0!==e[n]&&(t[n]=e[n])}void0!==e.setLineDash&&(t.setLineDash(e.getLineDash()),t.lineDashOffset=e.lineDashOffset)}functiond(e){e.strokeStyle="#000000",e.fillStyle="#000000",e.fillRule="nonzero",e.globalAlpha=1,e.lineWidth=1,e.lineCap="butt",e.lineJoin="miter",e.miterLimit=10,e.globalCompositeOperation="source-over",e.font="10px sans-serif",void0!==e.setLineDash&&(e.setLineDash([]),e.lineDashOffset=0)}functionu(e,t,r,s){constn=e.length;for(leti=3;i<n;i+=4){constn=e[i];if(0===n)e[i-3]=t,e[i-2]=r,e[i-1]=s;elseif(n<255){consta=255-n;e[i-3]=e[i-3]*n+t*a>>8,e[i-2]=e[i-2]*n+r*a>>8,e[i-1]=e[i-1]*n+s*a>>8}}}functionp(e,t,r){consts=e.length;for(letn=3;n<s;n+=4){consts=r?r[e[n]]:e[n];t[n]=t[n]*s*.00392156862745098|0}}functiong(e,t,r){consts=e.length;for(letn=3;n<s;n+=4){consts=77*e[n-3]+152*e[n-2]+28*e[n-1];t[n]=r?t[n]*r[s>>8]>>8:t[n]*s>>16}}functionf(e,t,r,s){constn=t.canvas,i=t.context;e.setTransform(t.scaleX,0,0,t.scaleY,t.offsetX,t.offsetY);consta=t.backdrop||null;if(t.transferMap||!s.isEnabled)!function(e,t,r,s,n,i,a){consto=!!i,l=o?i[0]:0,c=o?i[1]:0,h=o?i[2]:0;letd;d="Luminosity"===n?g:p;constf=Math.min(s,Math.ceil(1048576/r));for(letn=0;n<s;n+=f){consti=Math.min(f,s-n),p=e.getImageData(0,n,r,i),g=t.getImageData(0,n,r,i);o&&u(p.data,l,c,h),d(p.data,g.data,a),e.putImageData(g,0,n)}}(i,r,n.width,n.height,t.subtype,a,t.transferMap),e.drawImage(n,0,0);else{consti=s.composeSMask({layer:r.canvas,mask:n,properties:{subtype:t.subtype,backdrop:a}});e.setTransform(1,0,0,1,0,0),e.drawImage(i,t.offsetX,t.offsetY)}}constm=["butt","round","square"],_=["miter","round","bevel"],A={},b={};e.prototype={beginDrawing({transform:e,viewport:t,transparency:r=!1,background:s=null}){constn=this.ctx.canvas.width,i=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=s||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,n,i),this.ctx.restore(),r){conste=this.cachedCanvases.getCanvas("transparent",n,i,!0);this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),d(this.ctx),e&&this.ctx.transform.apply(this.ctx,e),this.ctx.transform.apply(this.ctx,t.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this._combinedScaleFactor=Math.hypot(this.baseTransform[0],this.baseTransform[2]),this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(e,t,r,n){consti=e.argsArray,a=e.fnArray;leto=t||0;constl=i.length;if(l===o)returno;constc=l-o>10&&"function"==typeofr,h=c?Date.now()+15:0;letd=0;constu=this.commonObjs,p=this.objs;letg;for(;;){if(void0!==n&&o===n.nextBreakPoint)returnn.breakIt(o,r),o;if(g=a[o],g!==s.OPS.dependency)this[g].apply(this,i[o]);elsefor(consteofi[o]){constt=e.startsWith("g_")?u:p;if(!t.has(e))returnt.get(e,r),o}if(o++,o===l)returno;if(c&&++d>10){if(Date.now()>h)returnr(),o;d=0}}},endDrawing:function(){for(;this.stateStack.length||null!==this.current.activeSMask;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.webGLContext.clear(),this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(e){this.current.lineWidth=e,this.ctx.lineWidth=e},setLineCap:function(e){this.ctx.lineCap=m[e]},setLineJoin:function(e){this.ctx.lineJoin=_[e]},setMiterLimit:function(e){this.ctx.miterLimit=e},setDash:function(e,t){constr=this.ctx;void0!==r.setLineDash&&(r.setLineDash(e),r.lineDashOffset=t)},setRenderingIntent(e){},setFlatness(e){},setGState:function(e){for(lett=0,r=e.length;t<r;t++){constr=e[t],s=r[0],n=r[1];switch(s){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=r[1];break;case"ca":this.current.fillAlpha=r[1],this.ctx.globalAlpha=r[1];break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask&&(this.stateStack.length>0&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=n?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break;case"TR":this.current.transferMaps=n}}},beginSMaskGroup:function(){conste=this.current.activeSMask,t=e.canvas.width,r=e.canvas.height,s="smaskGroupAt"+this.groupLevel,n=this.cachedCanvases.getCanvas(s,t,r,!0),i=this.ctx,a=i.mozCurrentTransform;this.ctx.save();consto=n.context;o.scale(1/e.scaleX,1/e.scaleY),o.translate(-e.offsetX,-e.offsetY),o.transform.apply(o,a),e.startTransformInverse=o.mozCurrentTransformInverse,h(i,o),this.ctx=o,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(i),this.groupLevel++},suspendSMaskGroup:function(){conste=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),f(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),this.ctx.save(),h(e,this.ctx),this.current.resumeSMaskCtx=e;constt=s.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t),e.save(),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,e.canvas.width,e.canvas.height),e.restore()},resumeSMaskGroup:function(){conste=this.current.resumeSMaskCtx,t=this.ctx;this.ctx=e,this.groupStack.push(t),this.groupLevel++},endSMaskGroup:function(){conste=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),f(this.ctx,this.current.activeSMask,e,this.webGLContext),this.ctx.restore(),h(e,this.ctx);constt=s.Util.transform(this.current.activeSMask.startTransformInverse,e.mozCurrentTransform);this.ctx.transform.apply(this.ctx,t)},save:function(){this.ctx.save();conste=this.current;this.stateStack.push(e),this.current=e.clone(),this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup(),null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup(),0!==this.stateStack.length?(this.current=this.stateStack.pop(),this.ctx.restore(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null):this.current.activeSMask=null},transform:function(e,t,r,s,n,i){this.ctx.transform(e,t,r,s,n,i),this._cachedGetSinglePixelWidth=null},constructPath:function(e,t){constr=this.ctx,n=this.current;leti=n.x,a=n.y;for(letn=0,o=0,l=e.length;n<l;n++)switch(0|e[n]){cases.OPS.rectangle:i=t[o++],a=t[o++];conste=t[o++],n=t[o++],l=i+e,c=a+n;r.moveTo(i,a),0===e||0===n?r.lineTo(l,c):(r.lineTo(l,a),r.lineTo(l,c),r.lineTo(i,c)),r.closePath();break;cases.OPS.moveTo:i=t[o++],a=t[o++],r.moveTo(i,a);break;cases.OPS.lineTo:i=t[o++],a=t[o++],r.lineTo(i,a);break;cases.OPS.curveTo:i=t[o+4],a=t[o+5],r.bezierCurveTo(t[o],t[o+1],t[o+2],t[o+3],i,a),o+=6;break;cases.OPS.curveTo2:r.bezierCurveTo(i,a,t[o],t[o+1],t[o+2],t[o+3]),i=t[o+2],a=t[o+3],o+=4;break;cases.OPS.curveTo3:i=t[o+2],a=t[o+3],r.bezierCurveTo(t[o],t[o+1],i,a,i,a),o+=4;break;cases.OPS.closePath:r.closePath()}n.setCurrentPoint(i,a)},closePath:function(){this.ctx.closePath()},stroke:function(e){e=void0===e||e;constt=this.ctx,r=this.current.strokeColor;if(t.globalAlpha=this.current.strokeAlpha,this.contentVisible)if("object"==typeofr&&r?.getPattern){t.save();conste=t.mozCurrentTransform,n=s.Util.singularValueDecompose2dScale(e)[0];t.strokeStyle=r.getPattern(t,this);consti=this.getSinglePixelWidth(),a=this.current.lineWidth*n;i<0&&-i>=a?(t.resetTransform(),t.lineWidth=Math.round(this._combinedScaleFactor)):t.lineWidth=Math.max(i,a),t.stroke(),t.restore()}else{conste=this.getSinglePixelWidth();e<0&&-e>=this.current.lineWidth?(t.save(),t.resetTransform(),t.lineWidth=Math.round(this._combinedScaleFactor),t.stroke(),t.restore()):(t.lineWidth=Math.max(e,this.current.lineWidth),t.stroke())}e&&this.consumePath(),t.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath(),this.stroke()},fill:function(e){e=void0===e||e;constt=this.ctx,r=this.current.fillColor;lets=!1;this.current.patternFill&&(t.save(),this.baseTransform&&t.setTransform.apply(t,this.baseTransform),t.fillStyle=r.getPattern(t,this),s=!0),this.contentVisible&&(this.pendingEOFill?(t.fill("evenodd"),this.pendingEOFill=!1):t.fill()),s&&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=b},beginText:function(){this.current.textMatrix=s.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},endText:function(){conste=this.pendingTextPaths,t=this.ctx;if(void0!==e){t.save(),t.beginPath();for(letr=0;r<e.length;r++){consts=e[r];t.setTransform.apply(t,s.transform),t.translate(s.x,s.y),s.addToPath(t,s.fontSize)}t.restore(),t.clip(),t.beginPath(),deletethis.pendingTextPaths}elset.beginPath()},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){constr=this.commonObjs.get(e),n=this.current;if(!r)thrownewError(`Can't find font for ${e}`);if(n.fontMatrix=r.fontMatrix||s.FONT_IDENTITY_MATRIX,0!==n.fontMatrix[0]&&0!==n.fontMatrix[3]||(0,s.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)return;consti=r.loadedName||"sans-serif";leta="normal";r.black?a="900":r.bold&&(a="bold");consto=r.italic?"italic":"normal",l=`"${i}", ${r.fallbackName}`;letc=t;t<16?c=16:t>100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font=`${o}${a}${c}px ${l}`},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,s,n,i){this.current.textMatrix=[e,t,r,s,n,i],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar(e,t,r,n,i){consta=this.ctx,o=this.current,l=o.font,c=o.textRenderingMode,h=o.fontSize/o.fontSizeScale,d=c&s.TextRenderingMode.FILL_STROKE_MASK,u=!!(c&s.TextRenderingMode.ADD_TO_PATH_FLAG),p=o.patternFill&&!l.missingFile;letg;(l.disableFontFace||u||p)&&(g=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||p?(a.save(),a.translate(t,r),a.beginPath(),g(a,h),n&&a.setTransform.apply(a,n),d!==s.TextRenderingMode.FILL&&d!==s.TextRenderingMode.FILL_STROKE||a.fill(),d!==s.TextRenderingMode.STROKE&&d!==s.TextRenderingMode.FILL_STROKE||(i&&(a.resetTransform(),a.lineWidth=Math.round(this._combinedScaleFactor)),a.stroke()),a.restore()):(d!==s.TextRenderingMode.FILL&&d!==s.TextRenderingMode.FILL_STROKE||a.fillText(e,t,r),d!==s.TextRenderingMode.STROKE&&d!==s.TextRenderingMode.FILL_STROKE||(i?(a.save(),a.moveTo(t,r),a.resetTransform(),a.lineWidth=Math.round(this._combinedScaleFactor),a.strokeText(e,0,0),a.restore()):a.strokeText(e,t,r))),u&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:a.mozCurrentTransform,x:t,y:r,fontSize:h,addToPath:g})},getisFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);constt=e.getImageData(0,0,10,10).data;letr=!1;for(lete=3;e<t.length;e+=4)if(t[e]>0&&t[e]<255){r=!0;break}return(0,s.shadow)(this,"isFontSubpixelAAEnabled",r)},showText:function(e){constt=this.current,r=t.font;if(r.isType3Font)returnthis.showType3Text(e);constn=t.fontSize;if(0===n)return;consti=this.ctx,a=t.fontSizeScale,o=t.charSpacing,l=t.wordSpacing,c=t.fontDirection,h=t.textHScale*c,d=e.length,u=r.vertical,p=u?1:-1,g=r.defaultVMetrics,f=n*t.fontMatrix[0],m=t.textRenderingMode===s.TextRenderingMode.FILL&&!r.disableFontFace&&!t.patternFill;let_;if(i.save(),t.patternFill){i.save();conste=t.fillColor.getPattern(i,this);_=i.mozCurrentTransform,i.restore(),i.fillStyle=e}i.transform.apply(i,t.textMatrix),i.translate(t.x,t.y+t.textRise),c>0?i.scale(h,-1):i.scale(h,1);letA=t.lineWidth,b=!1;consty=t.textMatrixScale;if(0===y||0===A){conste=t.textRenderingMode&s.TextRenderingMode.FILL_STROKE_MASK;e!==s.TextRenderingMode.STROKE&&e!==s.TextRenderingMode.FILL_STROKE||(this._cachedGetSinglePixelWidth=null,A=this.getSinglePixelWidth(),b=A<0)}elseA/=y;1!==a&&(i.scale(a,a),A/=a),i.lineWidth=A;letS,v=0;for(S=0;S<d;++S){constt=e[S];if((0,s.isNum)(t)){v+=p*t*n/1e3;continue}leth=!1;constd=(t.isSpace?l:0)+o,A=t.fontChar,y=t.accent;letC,x,k,P=t.width;if(u){conste=t.vmetric||g,r=-(t.vmetric?e[1]:.5*P)*f,s=e[2]*f;P=e?-e[0]:P,C=r/a,x=(v+s)/a}elseC=v/a,x=0;if(r.remeasure&&P>0){conste=1e3*i.measureText(A).width/n*a;if(P<e&&this.isFontSubpixelAAEnabled){constt=P/e;h=!0,i.save(),i.scale(t,1),C/=t}elseP!==e&&(C+=(P-e)/2e3*n/a)}if(this.contentVisible&&(t.isInFont||r.missingFile))if(m&&!y)i.fillText(A,C,x);elseif(this.paintChar(A,C,x,_,b),y){conste=C+n*y.offset.x/a,t=x-n*y.offset.y/a;this.paintChar(y.fontChar,e,t,_,b)}k=u?P*f-d*c:P*f+d*c,v+=k,h&&i.restore()}u?t.y-=v:t.x+=v*h,i.restore()},showType3Text:function(e){constt=this.ctx,r=this.current,n=r.font,i=r.fontSize,a=r.fontDirection,o=n.vertical?1:-1,l=r.charSpacing,c=r.wordSpacing,h=r.textHScale*a,d=r.fontMatrix||s.FONT_IDENTITY_MATRIX,u=e.length;letp,g,f,m;if(r.textRenderingMode!==s.TextRenderingMode.INVISIBLE&&0!==i){for(this._cachedGetSinglePixelWidth=null,t.save(),t.transform.apply(t,r.textMatrix),t.translate(r.x,r.y),t.scale(h,a),p=0;p<u;++p){if(g=e[p],(0,s.isNum)(g)){m=o*g*i/1e3,this.ctx.translate(m,0),r.x+=m*h;continue}consta=(g.isSpace?c:0)+l,u=n.charProcOperatorList[g.operatorListId];u?(this.contentVisible&&(this.processingType3=g,this.save(),t.scale(i,i),t.transform.apply(t,d),this.executeOperatorList(u),this.restore()),f=s.Util.applyTransform([g.width,0],d)[0]*i+a,t.translate(f,0),r.x+=f*h):(0,s.warn)(`Type3 character "${g.operatorListId}" is not available.`)}t.restore(),this.processingType3=null}},setCharWidth:function(e,t){},setCharWidthAndBounds:function(e,t,r,s,n,i){this.ctx.rect(r,s,n-r,i-s),this.clip(),this.endPath()},getColorN_Pattern:function(t){letr;if("TilingPattern"===t[0]){consts=t[1],i=this.baseTransform||this.ctx.mozCurrentTransform.slice(),a={createCanvasGraphics:t=>newe(t,this.commonObjs,this.objs,this.canvasFactory,this.webGLContext)};r=newn.TilingPattern(t,s,this.ctx,a,i)}elser=(0,n.getShadingPatternFromIR)(t);returnr},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0},setStrokeRGBColor:function(e,t,r){constn=s.Util.makeHexColor(e,t,r);this.ctx.strokeStyle=n,this.current.strokeColor=n},setFillRGBColor:function(e,t,r){constn=s.Util.makeHexColor(e,t,r);this.ctx.fillStyle=n,this.current.fillColor=n,this.current.patternFill=!1},shadingFill:function(e){if(!this.contentVisible)return;constt=this.ctx;this.save();constr=(0,n.getShadingPatternFromIR)(e);t.fillStyle=r.getPattern(t,this,!0);consti=t.mozCurrentTransformInverse;if(i){conste=t.canvas,r=e.width,n=e.height,a=s.Util.applyTransform([0,0],i),o=s.Util.applyTransform([0,n],i),l=s.Util.applyTransform([r,0],i),c=s.Util.applyTransform([r,n],i),h=Math.min(a[0],o[0],l[0],c[0]),d=Math.min(a[1],o[1],l[1],c[1]),u=Math.max(a[0],o[0],l[0],c[0]),p=Math.max(a[1],o[1],l[1],c[1]);this.ctx.fillRect(h,d,u-h,p-d)}elsethis.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.restore()},beginInlineImage:function(){(0,s.unreachable)("Should not call beginInlineImage")},beginImageData:function(){(0,s.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t)){conste=t[2]-t[0],r=t[3]-t[1];this.ctx.rect(t[0],t[1],e,r),this.clip(),this.endPath()}},paintFormXObjectEnd:function(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())},beginGroup:function(e){if(!this.contentVisible)return;this.save();constt=this.ctx;e.isolated||(0,s.info)("TODO: Support non-isolated groups."),e.knockout&&(0,s.warn)("Knockout groups not supported.");constr=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)thrownewError("Bounding box is required.");letn=s.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform);consta=[0,0,t.canvas.width,t.canvas.height];n=s.Util.intersect(n,a)||[0,0,0,0];consto=Math.floor(n[0]),l=Math.floor(n[1]);letc=Math.max(Math.ceil(n[2])-o,1),d=Math.max(Math.ceil(n[3])-l,1),u=1,p=1;c>i&&(u=c/i,c=i),d>i&&(p=d/i,d=i);letg="groupAt"+this.groupLevel;e.smask&&(g+="_smask_"+this.smaskCounter++%2);constf=this.cachedCanvases.getCanvas(g,c,d,!0),m=f.context;m.scale(1/u,1/p),m.translate(-o,-l),m.transform.apply(m,r),e.smask?this.smaskStack.push({canvas:f.canvas,context:m,offsetX:o,offsetY:l,scaleX:u,scaleY:p,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(o,l),t.scale(u,p)),h(t,m),this.ctx=m,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++,this.current.activeSMask=null},endGroup:function(e){if(!this.contentVisible)return;this.groupLevel--;constt=this.ctx;this.ctx=this.groupStack.pop(),void0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1,e.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(t.canvas,0,0),this.restore()},beginAnnotations:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(e,t,r){if(this.save(),d(this.ctx),this.current=newc,Array.isArray(e)&&4===e.length){constt=e[2]-e[0],r=e[3]-e[1];this.ctx.rect(e[0],e[1],t,r),this.clip(),this.endPath()}this.transform.apply(this,t),this.transform.apply(this,r)},endAnnotation:function(){this.restore()},paintImageMaskXObject:function(e){if(!this.contentVisible)return;constt=this.ctx,s=e.width,n=e.height,i=this.current.fillColor,a=this.current.patternFill,o=this.processingType3;if(o&&void0===o.compiled&&(o.compiled=s<=1e3&&n<=1e3?function(e){constt=e.width,r=e.height,s=t+1;letn,i,a,o;constl=newUint8Array(s*(r+1)),c=newUint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),h=t+7&-8,d=e.data,u=newUint8Array(h*r);letp=0;for(n=0,i=d.length;n<i;n++){conste=d[n];lett=128;for(;t>0;)u[p++]=e&t?0:255,t>>=1}letg=0;for(p=0,0!==u[p]&&(l[0]=1,++g),a=1;a<t;a++)u[p]!==u[p+1]&&(l[a]=u[p]?2:1,++g),p++;for(0!==u[p]&&(l[a]=2,++g),n=1;n<r;n++){p=n*h,o=n*s,u[p-h]!==u[p]&&(l[o]=u[p]?1:8,++g);lete=(u[p]?4:0)+(u[p-h]?8:0);for(a=1;a<t;a++)e=(e>>2)+(u[p+1]?4:0)+(u[p-h+1]?8:0),c[e]&&(l[o+a]=c[e],++g),p++;if(u[p-h]!==u[p]&&(l[o+a]=u[p]?2:4,++g),g>1e3)returnnull}for(p=h*(r-1),o=n*s,0!==u[p]&&(l[o]=8,++g),a=1;a<t;a++)u[p]!==u[p+1]&&(l[o+a]=u[p]?4:8,++g),p++;if(0!==u[p]&&(l[o+a]=4,++g),g>1e3)returnnull;constf=newInt32Array([0,s,-1,0,-s,0,0,0,1]),m=[];for(n=0;g&&n<=r;n++){lete=n*s;constr=e+t;for(;e<r&&!l[e];)e++;if(e===r)continue;consti=[e%s,n],a=e;leto=l[e];do{constt=f[o];do{e+=t}while(!l[e]);constr=l[e];5!==r&&10!==r?(o=r,l[e]=0):(o=r&51*o>>4,l[e]&=o>>2|o<<2),i.push(e%s),i.push(e/s|0),l[e]||--g}while(a!==e);m.push(i),--n}returnfunction(e){e.save(),e.scale(1/t,-1/r),e.translate(0,-r),e.beginPath();for(lett=0,r=m.length;t<r;t++){constr=m[t];e.moveTo(r[0],r[1]);for(lett=2,s=r.length;t<s;t+=2)e.lineTo(r[t],r[t+1])}e.fill(),e.beginPath(),e.restore()}}({data:e.data,width:s,height:n}):null),o?.compiled)returnvoido.compiled(t);constl=this.cachedCanvases.getCanvas("maskCanvas",s,n),c=l.context;c.save(),r(c,e),c.globalCompositeOperation="source-in",c.fillStyle=a?i.getPattern(c,this):i,c.fillRect(0,0,s,n),c.restore(),this.paintInlineImageXObject(l.canvas)},paintImageMaskXObjectRepeat(e,t,s=0,n=0,i,a){if(!this.contentVisible)return;consto=e.width,l=e.height,c=this.current.fillColor,h=this.current.patternFill,d=this.cachedCanvases.getCanvas("maskCanvas",o,l),u=d.context;u.save(),r(u,e),u.globalCompositeOperation="source-in",u.fillStyle=h?c.getPattern(u,this):c,u.fillRect(0,0,o,l),u.restore();constp=this.ctx;for(lete=0,r=a.length;e<r;e+=2)p.save(),p.transform(t,s,n,i,a[e],a[e+1]),p.scale(1,-1),p.drawImage(d.canvas,0,0,o,l,0,-1,1,1),p.restore()},paintImageMaskXObjectGroup:function(e){if(!this.contentVisible)return;constt=this.ctx,s=this.current.fillColor,n=this.current.patternFill;for(leti=0,a=e.length;i<a;i++){consta=e[i],o=a.width,l=a.height,c=this.cachedCanvases.getCanvas("maskCanvas",o,l),h=c.context;h.save(),r(h,a),h.globalCompositeOperation="source-in",h.fillStyle=n?s.getPattern(h,this):s,h.fillRect(0,0,o,l),h.restore(),t.save(),t.transform.apply(t,a.transform),t.scale(1,-1),t.drawImage(c.canvas,0,0,o,l,0,-1,1,1),t.restore()}},paintImageXObject:function(e){if(!this.contentVisible)return;constt=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,s.warn)("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(e,t,r,n){if(!this.contentVisible)return;consti=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);if(!i)returnvoid(0,s.warn)("Dependent image isn't ready yet");consta=i.width,o=i.height,l=[];for(lete=0,s=n.length;e<s;e+=2)l.push({transform:[t,0,0,r,n[e],n[e+1]],x:0,y:0,w:a,h:o});this.paintInlineImageXObjectGroup(i,l)},paintInlineImageXObject:function(e){if(!this.contentVisible)return;constr=e.width,s=e.height,n=this.ctx;this.save(),n.scale(1/r,-1/s);consti=n.mozCurrentTransformInverse;leta,o,l,c=Math.max(Math.hypot(i[0],i[1]),1),h=Math.max(Math.hypot(i[2],i[3]),1);"function"==typeofHTMLElement&&einstanceofHTMLElement||!e.data?a=e:(o=this.cachedCanvases.getCanvas("inlineImage",r,s),l=o.context,t(l,e,this.current.transferMaps),a=o.canvas);letd=r,u=s,p="prescale1";for(;c>2&&d>1||h>2&&u>1;){lete=d,t=u;c>2&&d>1&&(e=Math.ceil(d/2),c/=d/e),h>2&&u>1&&(t=Math.ceil(u/2),h/=u/t),o=this.cachedCanvases.getCanvas(p,e,t),l=o.context,l.clearRect(0,0,e,t),l.drawImage(a,0,0,d,u,0,0,e,t),a=o.canvas,d=e,u=t,p="prescale1"===p?"prescale2":"prescale1"}if(n.drawImage(a,0,0,d,u,0,-s,r,s),this.imageLayer){constt=this.getCanvasPosition(0,-s);this.imageLayer.appendImage({imgData:e,left:t[0],top:t[1],width:r/i[0],height:s/i[3]})}this.restore()},paintInlineImageXObjectGroup:function(e,r){if(!this.contentVisible)return;consts=this.ctx,n=e.width,i=e.height,a=this.cachedCanvases.getCanvas("inlineImage",n,i);t(a.context,e,this.current.transferMaps);for(lett=0,o=r.length;t<o;t++){consto=r[t];if(s.save(),s.transform.apply(s,o.transform),s.scale(1,-1),s.drawImage(a.canvas,o.x,o.y,o.w,o.h,0,-1,1,1),this.imageLayer){constt=this.getCanvasPosition(o.x,o.y);this.imageLayer.appendImage({imgData:e,left:t[0],top:t[1],width:n,height:i})}s.restore()}},paintSolidColorImageMask:function(){this.contentVisible&&this.ctx.fillRect(0,0,1,1)},markPoint:function(e){},markPointProps:function(e,t){},beginMarkedContent:function(e){this.markedContentStack.push({visible:!0})},beginMarkedContentProps:function(e,t){"OC"===e?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(t)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()},endMarkedContent:function(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()},beginCompat:function(){},endCompat:function(){},consumePath:function(){conste=this.ctx;this.pendingClip&&(this.pendingClip===b?e.clip("evenodd"):e.clip(),this.pendingClip=null),e.beginPath()},getSinglePixelWidth(){if(null===this._cachedGetSinglePixelWidth){conste=this.ctx.mozCurrentTransform,t=Math.abs(e[0]*e[3]-e[2]*e[1]),r=e[0]**2+e[2]**2,s=e[1]**2+e[3]**2,n=Math.sqrt(Math.max(r,s))/t;r!==s&&this._combinedScaleFactor*n>1?this._cachedGetSinglePixelWidth=-this._combinedScaleFactor*n:t>Number.EPSILON?this._cachedGetSinglePixelWidth=n:this._cachedGetSinglePixelWidth=1}returnthis._cachedGetSinglePixelWidth},getCanvasPosition:function(e,t){constr=this.ctx.mozCurrentTransform;return[r[0]*e+r[2]*t+r[4],r[1]*e+r[3]*t+r[5]]},isContentVisible:function(){for(lete=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}};for(consttins.OPS)e.prototype[s.OPS[t]]=e.prototype[t];returne}();t.CanvasGraphics=h},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getShadingPatternFromIR=function(e){constt=n[e[0]];if(!t)thrownewError(`Unknown IR type: ${e[0]}`);returnt.fromIR(e)},t.TilingPattern=void0;vars=r(2);constn={};functioni(e,t){if(!t||"undefined"==typeofPath2D)return;constr=t[2]-t[0],s=t[3]-t[1],n=newPath2D;n.rect(t[0],t[1],r,s),e.clip(n)}n.RadialAxial={fromIR:function(e){constt=e[1],r=e[2],s=e[3],n=e[4],a=e[5],o=e[6],l=e[7];return{getPattern:function(e){letc;i(e,r),"axial"===t?c=e.createLinearGradient(n[0],n[1],a[0],a[1]):"radial"===t&&(c=e.createRadialGradient(n[0],n[1],o,a[0],a[1],l));for(lete=0,t=s.length;e<t;++e){constt=s[e];c.addColorStop(t[0],t[1])}returnc}}}};consta=function(){functione(e,t,r,s,n,i,a,o){constl=t.coords,c=t.colors,h=e.data,d=4*e.width;letu;l[r+1]>l[s+1]&&(u=r,r=s,s=u,u=i,i=a,a=u),l[s+1]>l[n+1]&&(u=s,s=n,n=u,u=a,a=o,o=u),l[r+1]>l[s+1]&&(u=r,r=s,s=u,u=i,i=a,a=u);constp=(l[r]+t.offsetX)*t.scaleX,g=(l[r+1]+t.offsetY)*t.scaleY,f=(l[s]+t.offsetX)*t.scaleX,m=(l[s+1]+t.offsetY)*t.scaleY,_=(l[n]+t.offsetX)*t.scaleX,A=(l[n+1]+t.offsetY)*t.scaleY;if(g>=A)return;constb=c[i],y=c[i+1],S=c[i+2],v=c[a],C=c[a+1],x=c[a+2],k=c[o],P=c[o+1],w=c[o+2],R=Math.round(g),T=Math.round(A);letE,F,M,L,D,I,O,N;for(lete=R;e<=T;e++){if(e<m){lett;t=e<g?0:g===m?1:(g-e)/(g-m),E=p-(p-f)*t,F=b-(b-v)*t,M=y-(y-C)*t,L=S-(S-x)*t}else{lett;t=e>A?1:m===A?0:(m-e)/(m-A),E=f-(f-_)*t,F=v-(v-k)*t,M=C-(C-P)*t,L=x-(x-w)*t}lett;t=e<g?0:e>A?1:(g-e)/(g-A),D=p-(p-_)*t,I=b-(b-k)*t,O=y-(y-P)*t,N=S-(S-w)*t;constr=Math.round(Math.min(E,D)),s=Math.round(Math.max(E,D));letn=d*e+4*r;for(lete=r;e<=s;e++)t=(E-e)/(E-D),t<0?t=0:t>1&&(t=1),h[n++]=F-(F-I)*t|0,h[n++]=M-(M-O)*t|0,h[n++]=L-(L-N)*t|0,h[n++]=255}}functiont(t,r,s){constn=r.coords,i=r.colors;leta,o;switch(r.type){case"lattice":constl=r.verticesPerRow,c=Math.floor(n.length/l)-1,h=l-1;for(a=0;a<c;a++){letr=a*l;for(leta=0;a<h;a++,r++)e(t,s,n[r],n[r+1],n[r+l],i[r],i[r+1],i[r+l]),e(t,s,n[r+l+1],n[r+1],n[r+l],i[r+l+1],i[r+1],i[r+l])}break;case"triangles":for(a=0,o=n.length;a<o;a+=3)e(t,s,n[a],n[a+1],n[a+2],i[a],i[a+1],i[a+2]);break;default:thrownewError("illegal figure")}}returnfunction(e,r,s,n,i,a,o,l){constc=Math.floor(e[0]),h=Math.floor(e[1]),d=Math.ceil(e[2])-c,u=Math.ceil(e[3])-h,p=Math.min(Math.ceil(Math.abs(d*r[0]*1.1)),3e3),g=Math.min(Math.ceil(Math.abs(u*r[1]*1.1)),3e3),f=d/p,m=u/g,_={coords:s,colors:n,offsetX:-c,offsetY:-h,scaleX:1/f,scaleY:1/m},A=p+4,b=g+4;lety,S,v,C;if(l.isEnabled)y=l.drawFigures({width:p,height:g,backgroundColor:a,figures:i,context:_}),S=o.getCanvas("mesh",A,b,!1),S.context.drawImage(y,2,2),y=S.canvas;else{S=o.getCanvas("mesh",A,b,!1);conste=S.context,r=e.createImageData(p,g);if(a){conste=r.data;for(v=0,C=e.length;v<C;v+=4)e[v]=a[0],e[v+1]=a[1],e[v+2]=a[2],e[v+3]=255}for(v=0;v<i.length;v++)t(r,i[v],_);e.putImageData(r,2,2),y=S.canvas}return{canvas:y,offsetX:c-2*f,offsetY:h-2*m,scaleX:f,scaleY:m}}}();n.Mesh={fromIR:function(e){constt=e[2],r=e[3],n=e[4],o=e[5],l=e[6],c=e[7],h=e[8];return{getPattern:function(e,d,u){letp;if(i(e,c),u)p=s.Util.singularValueDecompose2dScale(e.mozCurrentTransform);elseif(p=s.Util.singularValueDecompose2dScale(d.baseTransform),l){conste=s.Util.singularValueDecompose2dScale(l);p=[p[0]*e[0],p[1]*e[1]]}constg=a(o,p,t,r,n,u?null:h,d.cachedCanvases,d.webGLContext);returnu||(e.setTransform.apply(e,d.baseTransform),l&&e.transform.apply(e,l)),e.translate(g.offsetX,g.offsetY),e.scale(g.scaleX,g.scaleY),e.createPattern(g.canvas,"no-repeat")}}}},n.Dummy={fromIR:function(){return{getPattern:function(){return"hotpink"}}}};consto=function(){functione(e,t,r,s,n){this.operatorList=e[2],this.matrix=e[3]||[1,0,0,1,0,0],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=t,this.canvasGraphicsFactory=s,this.baseTransform=n,this.ctx=r}returne.prototype={createPatternCanvas:function(e){constt=this.operatorList,r=this.bbox,n=this.xstep,i=this.ystep,a=this.paintType,o=this.tilingType,l=this.color,c=this.canvasGraphicsFactory;(0,s.info)("TilingType: "+o);consth=r[0],d=r[1],u=r[2],p=r[3],g=s.Util.singularValueDecompose2dScale(this.matrix),f=s.Util.singularValueDecompose2dScale(this.baseTransform),m=[g[0]*f[0],g[1]*f[1]],_=this.getSizeAndScale(n,this.ctx.canvas.width,m[0]),A=this.getSizeAndScale(i,this.ctx.canvas.height,m[1]),b=e.cachedCanvases.getCanvas("pattern",_.size,A.size,!0),y=b.context,S=c.createCanvasGraphics(y);returnS.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(S,a,l),S.transform(_.scale,0,0,A.scale,0,0),S.transform(1,0,0,1,-h,-d),this.clipBbox(S,r,h,d,u,p),S.executeOperatorList(t),this.ctx.transform(1,0,0,1,h,d),this.ctx.scale(1/_.scale,1/A.scale),b.canvas},getSizeAndScale:function(e,t,r){e=Math.abs(e);consts=Math.max(3e3,t);letn=Math.ceil(e*r);returnn>=s?n=s:r=n/e,{scale:r,size:n}},clipBbox:function(e,t,r,s,n,i){if(Array.isArray(t)&&4===t.length){constt=n-r,a=i-s;e.ctx.rect(r,s,t,a),e.clip(),e.endPath()}},setFillAndStrokeStyleToContext:function(e,t,r){constn=e.ctx,i=e.current;switch(t){case1:conste=this.ctx;n.fillStyle=e.fillStyle,n.strokeStyle=e.strokeStyle,i.fillColor=e.fillStyle,i.strokeColor=e.strokeStyle;break;case2:consta=s.Util.makeHexColor(r[0],r[1],r[2]);n.fillStyle=a,n.strokeStyle=a,i.fillColor=a,i.strokeColor=a;break;default:thrownews.FormatError(`Unsupported paint type: ${t}`)}},getPattern:function(e,t){(e=this.ctx).setTransform.apply(e,this.baseTransform),e.transform.apply(e,this.matrix);constr=this.createPatternCanvas(t);returne.createPattern(r,"repeat")}},e}();t.TilingPattern=o},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void0;constr=Object.create(null);t.GlobalWorkerOptions=r,r.workerPort=void0===r.workerPort?null:r.workerPort,r.workerSrc=void0===r.workerSrc?"":r.workerSrc},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void0;vars=r(2);functionn(e){if("object"!=typeofe||null===e)returne;switch(e.name){case"AbortException":returnnews.AbortException(e.message);case"MissingPDFException":returnnews.MissingPDFException(e.message);case"UnexpectedResponseException":returnnews.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":returnnews.UnknownErrorException(e.message,e.details);default:returnnews.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,r){this.sourceName=e,this.targetName=t,this.comObj=r,this.callbackId=1,this.streamId=1,this.postMessageTransfers=!0,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{constt=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)returnvoidthis._processStreamMessage(t);if(t.callback){conste=t.callbackId,r=this.callbackCapabilities[e];if(!r)thrownewError(`Cannot resolve callback ${e}`);if(deletethis.callbackCapabilities[e],1===t.callback)r.resolve(t.data);else{if(2!==t.callback)thrownewError("Unexpected callback case");r.reject(n(t.reason))}return}consts=this.actionHandler[t.action];if(!s)thrownewError(`Unknown action from worker: ${t.action}`);if(t.callbackId){conste=this.sourceName,i=t.sourceName;newPromise((function(e){e(s(t.data))})).then((function(s){r.postMessage({sourceName:e,targetName:i,callback:1,callbackId:t.callbackId,data:s})}),(function(s){r.postMessage({sourceName:e,targetName:i,callback:2,callbackId:t.callbackId,reason:n(s)})}))}elset.streamId?this._createStreamSink(t):s(t.data)},r.addEventListener("message",this._onComObjOnMessage)}on(e,t){constr=this.actionHandler;if(r[e])thrownewError(`There is already an actionName called "${e}"`);r[e]=t}send(e,t,r){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},r)}sendWithPromise(e,t,r){constn=this.callbackId++,i=(0,s.createPromiseCapability)();this.callbackCapabilities[n]=i;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},r)}catch(e){i.reject(e)}returni.promise}sendWithStream(e,t,r,i){consta=this.streamId++,o=this.sourceName,l=this.targetName,c=this.comObj;returnnewReadableStream({start:r=>{constn=(0,s.createPromiseCapability)();returnthis.streamControllers[a]={controller:r,startCall:n,pullCall:null,cancelCall:null,isClosed:!1},this._postMessage({sourceName:o,targetName:l,action:e,streamId:a,data:t,desiredSize:r.desiredSize},i),n.promise},pull:e=>{constt=(0,s.createPromiseCapability)();returnthis.streamControllers[a].pullCall=t,c.postMessage({sourceName:o,targetName:l,stream:6,streamId:a,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,s.assert)(einstanceofError,"cancel must have a valid reason");constt=(0,s.createPromiseCapability)();returnthis.streamControllers[a].cancelCall=t,this.streamControllers[a].isClosed=!0,c.postMessage({sourceName:o,targetName:l,stream:1,streamId:a,reason:n(e)}),t.promise}},r)}_createStreamSink(e){constt=this,r=this.actionHandler[e.action],i=e.streamId,a=this.sourceName,o=e.sourceName,l=this.comObj,c={enqueue(e,r=1,n){if(this.isCancelled)return;constl=this.desiredSize;this.desiredSize-=r,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,s.createPromiseCapability)(),this.ready=this.sinkCapability.promise),t._postMessage({sourceName:a,targetName:o,stream:4,streamId:i,chunk:e},n)},close(){this.isCancelled||(this.isCancelled=!0,l.postMessage({sourceName:a,targetName:o,stream:3,streamId:i}),deletet.streamSinks[i])},error(e){(0,s.assert)(einstanceofError,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,l.postMessage({sourceName:a,targetName:o,stream:5,streamId:i,reason:n(e)}))},sinkCapability:(0,s.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[i]=c,newPromise((function(t){t(r(e.data,c))})).then((function(){l.postMessage({sourceName:a,targetName:o,stream:8,streamId:i,success:!0})}),(function(e){l.postMessage({sourceName:a,targetName:o,stream:8,streamId:i,reason:n(e)})}))}_processStreamMessage(e){constt=e.streamId,r=this.sourceName,i=e.sourceName,a=this.comObj;switch(e.stream){case8:e.success?this.streamControllers[t].startCall.resolve():this.streamControllers[t].startCall.reject(n(e.reason));break;case7:e.success?this.streamControllers[t].pullCall.resolve():this.streamControllers[t].pullCall.reject(n(e.reason));break;case6:if(!this.streamSinks[t]){a.postMessage({sourceName:r,targetName:i,stream:7,streamId:t,success:!0});break}this.streamSinks[t].desiredSize<=0&&e.desiredSize>0&&this.streamSinks[t].sinkCapability.resolve(),this.streamSinks[t].desiredSize=e.desiredSize;const{onPull:o}=this.streamSinks[e.streamId];newPromise((function(e){e(o&&o())})).then((function(){a.postMessage({sourceName:r,targetName:i,stream:7,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:i,stream:7,streamId:t,reason:n(e)})}));break;case4:if((0,s.assert)(this.streamControllers[t],"enqueue should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].controller.enqueue(e.chunk);break;case3:if((0,s.assert)(this.streamControllers[t],"close should have stream controller"),this.streamControllers[t].isClosed)break;this.streamControllers[t].isClosed=!0,this.streamControllers[t].controller.close(),this._deleteStreamController(t);break;case5:(0,s.assert)(this.streamControllers[t],"error should have stream controller"),this.streamControllers[t].controller.error(n(e.reason)),this._deleteStreamController(t);break;case2:e.success?this.streamControllers[t].cancelCall.resolve():this.streamControllers[t].cancelCall.reject(n(e.reason)),this._deleteStreamController(t);break;case1:if(!this.streamSinks[t])break;const{onCancel:l}=this.streamSinks[e.streamId];newPromise((function(t){t(l&&l(n(e.reason)))})).then((function(){a.postMessage({sourceName:r,targetName:i,stream:2,streamId:t,success:!0})}),(function(e){a.postMessage({sourceName:r,targetName:i,stream:2,streamId:t,reason:n(e)})})),this.streamSinks[t].sinkCapability.reject(n(e.reason)),this.streamSinks[t].isCancelled=!0,deletethis.streamSinks[t];break;default:thrownewError("Unexpected stream case")}}async_deleteStreamController(e){awaitPromise.allSettled([this.streamControllers[e].startCall,this.streamControllers[e].pullCall,this.streamControllers[e].cancelCall].map((function(e){returne&&e.promise}))),deletethis.streamControllers[e]}_postMessage(e,t){t&&this.postMessageTransfers?this.comObj.postMessage(e,t):this.comObj.postMessage(e)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void0;vars=r(2);t.Metadata=class{constructor({parsedData:e,rawData:t}){this._metadataMap=e,this._data=t}getRaw(){returnthis._data}get(e){returnthis._metadataMap.get(e)??null}getAll(){return(0,s.objectFromMap)(this._metadataMap)}has(e){returnthis._metadataMap.has(e)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void0;vars=r(2);classn{constructor(e,t){this.visible=!0,this.name=e,this.intent=t}}t.OptionalContentConfig=class{constructor(e){if(this.name=null,this.creator=null,this._order=null,this._groups=newMap,null!==e){this.name=e.name,this.creator=e.creator,this._order=e.order;for(consttofe.groups)this._groups.set(t.id,newn(t.name,t.intent));if("OFF"===e.baseState)for(consteofthis._groups)e.visible=!1;for(consttofe.on)this._groups.get(t).visible=!0;for(consttofe.off)this._groups.get(t).visible=!1}}isVisible(e){if("OCG"===e.type)returnthis._groups.has(e.id)?this._groups.get(e.id).visible:((0,s.warn)(`Optional content group not found: ${e.id}`),!0);if("OCMD"===e.type){if(e.expression&&(0,s.warn)("Visibility expression not supported yet."),!e.policy||"AnyOn"===e.policy){for(consttofe.ids){if(!this._groups.has(t))return(0,s.warn)(`Optional content group not found: ${t}`),!0;if(this._groups.get(t).visible)return!0}return!1}if("AllOn"===e.policy){for(consttofe.ids){if(!this._groups.has(t))return(0,s.warn)(`Optional content group not found: ${t}`),!0;if(!this._groups.get(t).visible)return!1}return!0}if("AnyOff"===e.policy){for(consttofe.ids){if(!this._groups.has(t))return(0,s.warn)(`Optional content group not found: ${t}`),!0;if(!this._groups.get(t).visible)return!0}return!1}if("AllOff"===e.policy){for(consttofe.ids){if(!this._groups.has(t))return(0,s.warn)(`Optional content group not found: ${t}`),!0;if(this._groups.get(t).visible)return!1}return!0}return(0,s.warn)(`Unknown optional content policy ${e.policy}.`),!0}return(0,s.warn)(`Unknown group type ${e.type}.`),!0}setVisibility(e,t=!0){this._groups.has(e)?this._groups.get(e).visible=!!t:(0,s.warn)(`Optional content group not found: ${e}`)}getOrder(){returnthis._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}getGroups(){returnthis._groups.size>0?(0,s.objectFromMap)(this._groups):null}getGroup(e){returnthis._groups.get(e)||null}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void0;vars=r(2),n=r(1);t.PDFDataTransportStream=class{constructor(e,t){(0,s.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1,this._contentDispositionFilename=e.contentDispositionFilename||null;constr=e.initialData;if(r?.length>0){conste=newUint8Array(r).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){constt=newUint8Array(e.chunk).buffer;if(void0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{constr=this._rangeReaders.some((function(r){returnr._begin===e.begin&&(r._enqueue(t),!0)}));(0,s.assert)(r,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get_progressiveDataLength(){returnthis._fullRequestReader?._loaded??0}_onProgress(e){if(void0===e.total){constt=this._rangeReaders[0];t?.onProgress&&t.onProgress({loaded:e.loaded})}else{constt=this._fullRequestReader;t?.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){constt=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,s.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");conste=this._queuedChunks;returnthis._queuedChunks=null,newi(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)returnnull;constr=newa(this,e,t);returnthis._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeReaders.slice(0).forEach((function(t){t.cancel(e)})),this._pdfDataRangeTransport.abort()}};classi{constructor(e,t,r=!1,s=null){this._stream=e,this._done=r||!1,this._filename=(0,n.isPdfFile)(s)?s:null,this._queuedChunks=t||[],this._loaded=0;for(consteofthis._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}getheadersReady(){returnthis._headersReady}getfilename(){returnthis._filename}getisRangeSupported(){returnthis._stream._isRangeSupported}getisStreamingSupported(){returnthis._stream._isStreamingSupported}getcontentLength(){returnthis._stream._contentLength}asyncread(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void0,done:!0};conste=(0,s.createPromiseCapability)();returnthis._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void0,done:!0})})),this._requests=[]}progressiveDone(){this._done||(this._done=!0)}}classa{constructor(e,t,r){this._stream=e,this._begin=t,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){this._done||(0===this._requests.length?this._queuedChunk=e:(this._requests.shift().resolve({value:e,done:!1}),this._requests.forEach((function(e){e.resolve({value:void0,done:!0})})),this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}getisStreamingSupported(){return!1}asyncread(){if(this._queuedChunk){conste=this._queuedChunk;returnthis._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void0,done:!0};conste=(0,s.createPromiseCapability)();returnthis._requests.push(e),e.promise}cancel(e){this._done=!0,this._requests.forEach((function(e){e.resolve({value:void0,done:!0})})),this._requests=[],this._stream._removeRangeReader(this)}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLContext=void0;vars=r(2);t.WebGLContext=class{constructor({enable:e=!1}){this._enabled=!0===e}getisEnabled(){lete=this._enabled;returne&&(e=n.tryInitGL()),(0,s.shadow)(this,"isEnabled",e)}composeSMask({layer:e,mask:t,properties:r}){returnn.composeSMask(e,t,r)}drawFigures({width:e,height:t,backgroundColor:r,figures:s,context:i}){returnn.drawFigures(e,t,r,s,i)}clear(){n.cleanup()}};constn=function(){functione(e,t,r){consts=e.createShader(r);if(e.shaderSource(s,t),e.compileShader(s),!e.getShaderParameter(s,e.COMPILE_STATUS)){constt=e.getShaderInfoLog(s);thrownewError("Error during shader compilation: "+t)}returns}functiont(t,r){returne(t,r,t.VERTEX_SHADER)}functionr(t,r){returne(t,r,t.FRAGMENT_SHADER)}functions(e,t){constr=e.createProgram();for(lets=0,n=t.length;s<n;++s)e.attachShader(r,t[s]);if(e.linkProgram(r),!e.getProgramParameter(r,e.LINK_STATUS)){constt=e.getProgramInfoLog(r);thrownewError("Error during program linking: "+t)}returnr}functionn(e,t,r){e.activeTexture(r);consts=e.createTexture();returne.bindTexture(e.TEXTURE_2D,s),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),s}leti,a;functiono(){i||(a=document.createElement("canvas"),i=a.getContext("webgl",{premultipliedalpha:!1}))}letl=null,c=null;return{tryInitGL(){try{returno(),!!i}catch(e){}return!1},composeSMask:function(e,c,h){constd=e.width,u=e.height;l||function(){o();conste=a;a=null;constn=i;i=null;constc=s(n,[t(n," attribute vec2 a_position; attribute vec2 a_texCoord; uniform vec2 u_resolution; varying vec2 v_texCoord; void main() { vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_texCoord = a_texCoord; } "),r(n," precision mediump float; uniform vec4 u_backdrop; uniform int u_subtype; uniform sampler2D u_image; uniform sampler2D u_mask; varying vec2 v_texCoord; void main() { vec4 imageColor = texture2D(u_image, v_texCoord); vec4 maskColor = texture2D(u_mask, v_texCoord); if (u_backdrop.a > 0.0) { maskColor.rgb = maskColor.rgb * maskColor.a + u_backdrop.rgb * (1.0 - maskColor.a); } float lum; if (u_subtype == 0) { lum = maskColor.a; } else { lum = maskColor.r * 0.3 + maskColor.g * 0.59 + maskColor.b * 0.11; } imageColor.a *= lum; imageColor.rgb *= imageColor.a; gl_FragColor = imageColor; } ")]);n.useProgram(c);consth={};h.gl=n,h.canvas=e,h.resolutionLocation=n.getUniformLocation(c,"u_resolution"),h.positionLocation=n.getAttribLocation(c,"a_position"),h.backdropLocation=n.getUniformLocation(c,"u_backdrop"),h.subtypeLocation=n.getUniformLocation(c,"u_subtype");constd=n.getAttribLocation(c,"a_texCoord"),u=n.getUniformLocation(c,"u_image"),p=n.getUniformLocation(c,"u_mask"),g=n.createBuffer();n.bindBuffer(n.ARRAY_BUFFER,g),n.bufferData(n.ARRAY_BUFFER,newFloat32Array([0,0,1,0,0,1,0,1,1,0,1,1]),n.STATIC_DRAW),n.enableVertexAttribArray(d),n.vertexAttribPointer(d,2,n.FLOAT,!1,0,0),n.uniform1i(u,0),n.uniform1i(p,1),l=h}();constp=l,g=p.canvas,f=p.gl;g.width=d,g.height=u,f.viewport(0,0,f.drawingBufferWidth,f.drawingBufferHeight),f.uniform2f(p.resolutionLocation,d,u),h.backdrop?f.uniform4f(p.resolutionLocation,h.backdrop[0],h.backdrop[1],h.backdrop[2],1):f.uniform4f(p.resolutionLocation,0,0,0,0),f.uniform1i(p.subtypeLocation,"Luminosity"===h.subtype?1:0);constm=n(f,e,f.TEXTURE0),_=n(f,c,f.TEXTURE1),A=f.createBuffer();returnf.bindBuffer(f.ARRAY_BUFFER,A),f.bufferData(f.ARRAY_BUFFER,newFloat32Array([0,0,d,0,0,u,0,u,d,0,d,u]),f.STATIC_DRAW),f.enableVertexAttribArray(p.positionLocation),f.vertexAttribPointer(p.positionLocation,2,f.FLOAT,!1,0,0),f.clearColor(0,0,0,0),f.enable(f.BLEND),f.blendFunc(f.ONE,f.ONE_MINUS_SRC_ALPHA),f.clear(f.COLOR_BUFFER_BIT),f.drawArrays(f.TRIANGLES,0,6),f.flush(),f.deleteTexture(m),f.deleteTexture(_),f.deleteBuffer(A),g},drawFigures:function(e,n,l,h,d){c||function(){o();conste=a;a=null;constn=i;i=null;constl=s(n,[t(n," attribute vec2 a_position; attribute vec3 a_color; uniform vec2 u_resolution; uniform vec2 u_scale; uniform vec2 u_offset; varying vec4 v_color; void main() { vec2 position = (a_position + u_offset) * u_scale; vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0; gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1); v_color = vec4(a_color / 255.0, 1.0); } "),r(n," precision mediump float; varying vec4 v_color; void main() { gl_FragColor = v_color; } ")]);n.useProgram(l);consth={};h.gl=n,h.canvas=e,h.resolutionLocation=n.getUniformLocation(l,"u_resolution"),h.scaleLocation=n.getUniformLocation(l,"u_scale"),h.offsetLocation=n.getUniformLocation(l,"u_offset"),h.positionLocation=n.getAttribLocation(l,"a_position"),h.colorLocation=n.getAttribLocation(l,"a_color"),c=h}();constu=c,p=u.canvas,g=u.gl;p.width=e,p.height=n,g.viewport(0,0,g.drawingBufferWidth,g.drawingBufferHeight),g.uniform2f(u.resolutionLocation,e,n);letf=0;for(lete=0,t=h.length;e<t;e++)switch(h[e].type){case"lattice":f+=((h[e].coords.length/h[e].verticesPerRow|0)-1)*(h[e].verticesPerRow-1)*6;break;case"triangles":f+=h[e].coords.length}constm=newFloat32Array(2*f),_=newUint8Array(3*f),A=d.coords,b=d.colors;lety=0,S=0;for(lete=0,t=h.length;e<t;e++){constt=h[e],r=t.coords,s=t.colors;switch(t.type){case"lattice":conste=t.verticesPerRow,n=r.length/e|0;for(lett=1;t<n;t++){letn=t*e+1;for(lett=1;t<e;t++,n++)m[y]=A[r[n-e-1]],m[y+1]=A[r[n-e-1]+1],m[y+2]=A[r[n-e]],m[y+3]=A[r[n-e]+1],m[y+4]=A[r[n-1]],m[y+5]=A[r[n-1]+1],_[S]=b[s[n-e-1]],_[S+1]=b[s[n-e-1]+1],_[S+2]=b[s[n-e-1]+2],_[S+3]=b[s[n-e]],_[S+4]=b[s[n-e]+1],_[S+5]=b[s[n-e]+2],_[S+6]=b[s[n-1]],_[S+7]=b[s[n-1]+1],_[S+8]=b[s[n-1]+2],m[y+6]=m[y+2],m[y+7]=m[y+3],m[y+8]=m[y+4],m[y+9]=m[y+5],m[y+10]=A[r[n]],m[y+11]=A[r[n]+1],_[S+9]=_[S+3],_[S+10]=_[S+4],_[S+11]=_[S+5],_[S+12]=_[S+6],_[S+13]=_[S+7],_[S+14]=_[S+8],_[S+15]=b[s[n]],_[S+16]=b[s[n]+1],_[S+17]=b[s[n]+2],y+=12,S+=18}break;case"triangles":for(lete=0,t=r.length;e<t;e++)m[y]=A[r[e]],m[y+1]=A[r[e]+1],_[S]=b[s[e]],_[S+1]=b[s[e]+1],_[S+2]=b[s[e]+2],y+=2,S+=3}}l?g.clearColor(l[0]/255,l[1]/255,l[2]/255,1):g.clearColor(0,0,0,0),g.clear(g.COLOR_BUFFER_BIT);constv=g.createBuffer();g.bindBuffer(g.ARRAY_BUFFER,v),g.bufferData(g.ARRAY_BUFFER,m,g.STATIC_DRAW),g.enableVertexAttribArray(u.positionLocation),g.vertexAttribPointer(u.positionLocation,2,g.FLOAT,!1,0,0);constC=g.createBuffer();returng.bindBuffer(g.ARRAY_BUFFER,C),g.bufferData(g.ARRAY_BUFFER,_,g.STATIC_DRAW),g.enableVertexAttribArray(u.colorLocation),g.vertexAttribPointer(u.colorLocation,3,g.UNSIGNED_BYTE,!1,0,0),g.uniform2f(u.scaleLocation,d.scaleX,d.scaleY),g.uniform2f(u.offsetLocation,d.offsetX,d.offsetY),g.drawArrays(g.TRIANGLES,0,f),g.flush(),g.deleteBuffer(v),g.deleteBuffer(C),p},cleanup(){l?.canvas&&(l.canvas.width=0,l.canvas.height=0),c?.canvas&&(c.canvas.width=0,c.canvas.height=0),l=null,c=null}}}()},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void0;vars=r(1),n=r(2),i=r(8),a=r(19);classo{staticcreate(e){switch(e.data.annotationType){casen.AnnotationType.LINK:returnnewc(e);casen.AnnotationType.TEXT:returnnewh(e);casen.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":returnnewu(e);case"Btn":returne.data.radioButton?newg(e):e.data.checkBox?newp(e):newf(e);case"Ch":returnnewm(e)}returnnewd(e);casen.AnnotationType.POPUP:returnnew_(e);casen.AnnotationType.FREETEXT:returnnewb(e);casen.AnnotationType.LINE:returnnewy(e);casen.AnnotationType.SQUARE:returnnewS(e);casen.AnnotationType.CIRCLE:returnnewv(e);casen.AnnotationType.POLYLINE:returnnewC(e);casen.AnnotationType.CARET:returnnewk(e);casen.AnnotationType.INK:returnnewP(e);casen.AnnotationType.POLYGON:returnnewx(e);casen.AnnotationType.HIGHLIGHT:returnneww(e);casen.AnnotationType.UNDERLINE:returnnewR(e);casen.AnnotationType.SQUIGGLY:returnnewT(e);casen.AnnotationType.STRIKEOUT:returnnewE(e);casen.AnnotationType.STAMP:returnnewF(e);casen.AnnotationType.FILEATTACHMENT:returnnewM(e);default:returnnewl(e)}}}classl{constructor(e,{isRenderable:t=!1,ignoreBorder:r=!1,createQuadrilaterals:s=!1}={}){this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderInteractiveForms=e.renderInteractiveForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._mouseState=e.mouseState,t&&(this.container=this._createContainer(r)),s&&(this.quadrilaterals=this._createQuadrilaterals(r))}_createContainer(e=!1){constt=this.data,r=this.page,s=this.viewport,i=document.createElement("section");leta=t.rect[2]-t.rect[0],o=t.rect[3]-t.rect[1];i.setAttribute("data-annotation-id",t.id);constl=n.Util.normalizeRect([t.rect[0],r.view[3]-t.rect[1]+r.view[1],t.rect[2],r.view[3]-t.rect[3]+r.view[1]]);if(i.style.transform=`matrix(${s.transform.join(",")})`,i.style.transformOrigin=`${-l[0]}px ${-l[1]}px`,!e&&t.borderStyle.width>0){i.style.borderWidth=`${t.borderStyle.width}px`,t.borderStyle.style!==n.AnnotationBorderStyleType.UNDERLINE&&(a-=2*t.borderStyle.width,o-=2*t.borderStyle.width);conste=t.borderStyle.horizontalCornerRadius,r=t.borderStyle.verticalCornerRadius;if(e>0||r>0){constt=`${e}px / ${r}px`;i.style.borderRadius=t}switch(t.borderStyle.style){casen.AnnotationBorderStyleType.SOLID:i.style.borderStyle="solid";break;casen.AnnotationBorderStyleType.DASHED:i.style.borderStyle="dashed";break;casen.AnnotationBorderStyleType.BEVELED:(0,n.warn)("Unimplemented border style: beveled");break;casen.AnnotationBorderStyleType.INSET:(0,n.warn)("Unimplemented border style: inset");break;casen.AnnotationBorderStyleType.UNDERLINE:i.style.borderBottomStyle="solid"}t.color?i.style.borderColor=n.Util.makeHexColor(0|t.color[0],0|t.color[1],0|t.color[2]):i.style.borderWidth=0}returni.style.left=`${l[0]}px`,i.style.top=`${l[1]}px`,i.style.width=`${a}px`,i.style.height=`${o}px`,i}_createQuadrilaterals(e=!1){if(!this.data.quadPoints)returnnull;constt=[],r=this.data.rect;for(constrofthis.data.quadPoints)this.data.rect=[r[2].x,r[2].y,r[1].x,r[1].y],t.push(this._createContainer(e));returnthis.data.rect=r,t}_createPopup(e,t){letr=this.container;this.quadrilaterals&&(e=e||this.quadrilaterals,r=this.quadrilaterals[0]),e||((e=document.createElement("div")).style.height=r.style.height,e.style.width=r.style.width,r.appendChild(e));consts=newA({container:r,trigger:e,color:t.color,title:t.title,modificationDate:t.modificationDate,contents:t.contents,hideWrapper:!0}).render();s.style.left=r.style.width,r.appendChild(s)}_renderQuadrilaterals(e){returnthis.quadrilaterals.forEach((t=>{t.className=e})),this.quadrilaterals}render(){(0,n.unreachable)("Abstract method `AnnotationElement.render` called")}}classcextendsl{constructor(e){super(e,{isRenderable:!!(e.data.url||e.data.dest||e.data.action||e.data.isTooltipOnly||e.data.actions&&(e.data.actions.Action||e.data.actions["Mouse Up"]||e.data.actions["Mouse Down"])),createQuadrilaterals:!0})}render(){const{data:e,linkService:t}=this,r=document.createElement("a");returne.url?(0,s.addLinkAttributes)(r,{url:e.url,target:e.newWindow?s.LinkTarget.BLANK:t.externalLinkTarget,rel:t.externalLinkRel,enabled:t.externalLinkEnabled}):e.action?this._bindNamedAction(r,e.action):e.dest?this._bindLink(r,e.dest):e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions?this._bindJSAction(r,e):this._bindLink(r,""),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map(((e,t)=>{consts=0===t?r:r.cloneNode();returne.appendChild(s),e})):(this.container.className="linkAnnotation",this.container.appendChild(r),this.container)}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&(e.className="internalLink")}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),e.className="internalLink"}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");constr=newMap([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(constsofObject.keys(t.actions)){constn=r.get(s);n&&(e[n]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:s}}),!1))}e.className="internalLink"}}classhextendsl{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents)})}render(){this.container.className="textAnnotation";conste=document.createElement("img");returne.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(e,this.data),this.container.appendChild(e),this.container}}classdextendsl{render(){returnthis.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(e){returnnavigator.platform.includes("Win")&&e.ctrlKey||navigator.platform.includes("Mac")&&e.metaKey}_setEventListener(e,t,r,s){t.includes("mouse")?e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:s(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:e.target.checked}})}))}_setEventListeners(e,t,r){for(const[s,n]oft)("Action"===n||this.data.actions?.[n])&&this._setEventListener(e,s,n,r)}_setColor(e){const{detail:t,target:r}=e,{style:s}=r;for(consteof["bgColor","fillColor","fgColor","textColor","borderColor","strokeColor"]){letr=t[e];if(r)switch(r=a.ColorConverters[`${r[0]}_HTML`](r.slice(1)),e){case"bgColor":case"fillColor":s.backgroundColor=r;break;case"fgColor":case"textColor":s.color=r;break;case"borderColor":case"strokeColor":s.borderColor=r}}}}classuextendsd{constructor(e){super(e,{isRenderable:e.renderInteractiveForms||!e.data.hasAppearance&&!!e.data.fieldValue})}render(){conste=this.annotationStorage,t=this.data.id;this.container.className="textWidgetAnnotation";letr=null;if(this.renderInteractiveForms){consts=e.getValue(t,{value:this.data.fieldValue,valueAsString:this.data.fieldValue}),n=s.valueAsString||s.value||"",i={userValue:null,formattedValue:null,beforeInputSelectionRange:null,beforeInputValue:null};this.data.multiLine?(r=document.createElement("textarea"),r.textContent=n):(r=document.createElement("input"),r.type="text",r.setAttribute("value",n)),i.userValue=n,r.setAttribute("id",t),r.addEventListener("input",(function(r){e.setValue(t,{value:r.target.value})}));leta=e=>{i.formattedValue&&(e.target.value=i.formattedValue),e.target.setSelectionRange(0,0),i.beforeInputSelectionRange=null};if(this.enableScripting&&this.hasJSActions){r.addEventListener("focus",(e=>{i.userValue&&(e.target.value=i.userValue)})),r.addEventListener("updatefromsandbox",(r=>{const{detail:s}=r,n={value(){i.userValue=s.value||"",e.setValue(t,{value:i.userValue.toString()}),i.formattedValue||(r.target.value=i.userValue)},valueAsString(){i.formattedValue=s.valueAsString||"",r.target!==document.activeElement&&(r.target.value=i.formattedValue),e.setValue(t,{formattedValue:i.formattedValue})},focus(){setTimeout((()=>r.target.focus({preventScroll:!1})),0)},userName(){r.target.title=s.userName},hidden(){r.target.style.visibility=s.hidden?"hidden":"visible",e.setValue(t,{hidden:s.hidden})},editable(){r.target.disabled=!s.editable},selRange(){const[e,t]=s.selRange;e>=0&&t<r.target.value.length&&r.target.setSelectionRange(e,t)}};Object.keys(s).filter((e=>einn)).forEach((e=>n[e]())),this._setColor(r)})),r.addEventListener("keydown",(e=>{i.beforeInputValue=e.target.value;letr=-1;"Escape"===e.key?r=0:"Enter"===e.key?r=2:"Tab"===e.key&&(r=3),-1!==r&&(i.userValue=e.target.value,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:e.target.value,willCommit:!0,commitKey:r,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}));consts=a;a=null,r.addEventListener("blur",(e=>{this._mouseState.isDown&&(i.userValue=e.target.value,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:e.target.value,willCommit:!0,commitKey:1,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}})),s(e)})),r.addEventListener("mousedown",(e=>{i.beforeInputValue=e.target.value,i.beforeInputSelectionRange=null})),r.addEventListener("keyup",(e=>{e.target.selectionStart===e.target.selectionEnd&&(i.beforeInputSelectionRange=null)})),r.addEventListener("select",(e=>{i.beforeInputSelectionRange=[e.target.selectionStart,e.target.selectionEnd]})),this.data.actions?.Keystroke&&r.addEventListener("input",(e=>{letr=-1,s=-1;i.beforeInputSelectionRange&&([r,s]=i.beforeInputSelectionRange),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i.beforeInputValue,change:e.data,willCommit:!1,selStart:r,selEnd:s}})})),this._setEventListeners(r,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(a&&r.addEventListener("blur",a),r.disabled=this.data.readOnly,r.name=this.data.fieldName,null!==this.data.maxLen&&(r.maxLength=this.data.maxLen),this.data.comb){conste=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;r.classList.add("comb"),r.style.letterSpacing=`calc(${e}px - 1ch)`}}elser=document.createElement("div"),r.textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell";returnthis._setTextStyle(r),this.container.appendChild(r),this.container}_setTextStyle(e){const{fontSize:t,fontColor:r}=this.data.defaultAppearanceData,s=e.style;t&&(s.fontSize=`${t}px`),s.color=n.Util.makeHexColor(r[0],r[1],r[2]),null!==this.data.textAlignment&&(s.textAlign=["left","center","right"][this.data.textAlignment])}}classpextendsd{constructor(e){super(e,{isRenderable:e.renderInteractiveForms})}render(){conste=this.annotationStorage,t=this.data,r=t.id,s=e.getValue(r,{value:t.fieldValue&&(t.exportValue&&t.exportValue===t.fieldValue||!t.exportValue&&"Off"!==t.fieldValue)}).value;this.container.className="buttonWidgetAnnotation checkBox";constn=document.createElement("input");returnn.disabled=t.readOnly,n.type="checkbox",n.name=this.data.fieldName,s&&n.setAttribute("checked",!0),n.setAttribute("id",r),n.addEventListener("change",(function(t){consts=t.target.name;for(constrofdocument.getElementsByName(s))r!==t.target&&(r.checked=!1,e.setValue(r.parentNode.getAttribute("data-annotation-id"),{value:!1}));e.setValue(r,{value:t.target.checked})})),this.enableScripting&&this.hasJSActions&&(n.addEventListener("updatefromsandbox",(t=>{const{detail:s}=t,n={value(){t.target.checked="Off"!==s.value,e.setValue(r,{value:t.target.checked})},focus(){setTimeout((()=>t.target.focus({preventScroll:!1})),0)},hidden(){t.target.style.visibility=s.hidden?"hidden":"visible",e.setValue(r,{hidden:s.hidden})},editable(){t.target.disabled=!s.editable}};Object.keys(s).filter((e=>einn)).forEach((e=>n[e]())),this._setColor(t)})),this._setEventListeners(n,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this.container.appendChild(n),this.container}}classgextendsd{constructor(e){super(e,{isRenderable:e.renderInteractiveForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";conste=this.annotationStorage,t=this.data,r=t.id,s=e.getValue(r,{value:t.fieldValue===t.buttonValue}).value,n=document.createElement("input");if(n.disabled=t.readOnly,n.type="radio",n.name=t.fieldName,s&&n.setAttribute("checked",!0),n.setAttribute("id",r),n.addEventListener("change",(function(t){const{target:s}=t;for(consttofdocument.getElementsByName(s.name))t!==s&&e.setValue(t.getAttribute("id"),{value:!1});e.setValue(r,{value:s.checked})})),this.enableScripting&&this.hasJSActions){consts=t.buttonValue;n.addEventListener("updatefromsandbox",(t=>{const{detail:n}=t,i={value(){consti=s===n.value;for(constsofdocument.getElementsByName(t.target.name)){constt=s.getAttribute("id");s.checked=t===r&&i,e.setValue(t,{value:s.checked})}},focus(){setTimeout((()=>t.target.focus({preventScroll:!1})),0)},hidden(){t.target.style.visibility=n.hidden?"hidden":"visible",e.setValue(r,{hidden:n.hidden})},editable(){t.target.disabled=!n.editable}};Object.keys(n).filter((e=>eini)).forEach((e=>i[e]())),this._setColor(t)})),this._setEventListeners(n,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}returnthis.container.appendChild(n),this.container}}classfextendsc{render(){conste=super.render();returne.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(e.title=this.data.alternativeText),e}}classmextendsd{constructor(e){super(e,{isRenderable:e.renderInteractiveForms})}render(){this.container.className="choiceWidgetAnnotation";conste=this.annotationStorage,t=this.data.id;e.getValue(t,{value:this.data.fieldValue.length>0?this.data.fieldValue[0]:void0});constr=document.createElement("select");r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.setAttribute("id",t),this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0));for(consteofthis.data.options){constt=document.createElement("option");t.textContent=e.displayValue,t.value=e.exportValue,this.data.fieldValue.includes(e.exportValue)&&t.setAttribute("selected",!0),r.appendChild(t)}consts=(e,t)=>{constr=t?"value":"textContent",s=e.target.options;returne.target.multiple?Array.prototype.filter.call(s,(e=>e.selected)).map((e=>e[r])):-1===s.selectedIndex?null:s[s.selectedIndex][r]},n=e=>{constt=e.target.options;returnArray.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};returnthis.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",(i=>{const{detail:a}=i,o={value(){constn=r.options,o=a.value,l=newSet(Array.isArray(o)?o:[o]);Array.prototype.forEach.call(n,(e=>{e.selected=l.has(e.value)})),e.setValue(t,{value:s(i,!0)})},multipleSelection(){r.multiple=!0},remove(){consto=r.options,l=a.remove;o[l].selected=!1,r.remove(l),o.length>0&&-1===Array.prototype.findIndex.call(o,(e=>e.selected))&&(o[0].selected=!0),e.setValue(t,{value:s(i,!0),items:n(i)})},clear(){for(;0!==r.length;)r.remove(0);e.setValue(t,{value:null,items:[]})},insert(){const{index:o,displayValue:l,exportValue:c}=a.insert,h=document.createElement("option");h.textContent=l,h.value=c,r.insertBefore(h,r.children[o]),e.setValue(t,{value:s(i,!0),items:n(i)})},items(){const{items:o}=a;for(;0!==r.length;)r.remove(0);for(consteofo){const{displayValue:t,exportValue:s}=e,n=document.createElement("option");n.textContent=t,n.value=s,r.appendChild(n)}r.options.length>0&&(r.options[0].selected=!0),e.setValue(t,{value:s(i,!0),items:n(i)})},indices(){constr=newSet(a.indices),n=i.target.options;Array.prototype.forEach.call(n,((e,t)=>{e.selected=r.has(t)})),e.setValue(t,{value:s(i,!0)})},focus(){setTimeout((()=>i.target.focus({preventScroll:!1})),0)},hidden(){i.target.style.visibility=a.hidden?"hidden":"visible",e.setValue(t,{hidden:a.hidden})},editable(){i.target.disabled=!a.editable}};Object.keys(a).filter((e=>eino)).forEach((e=>o[e]())),this._setColor(i)})),r.addEventListener("input",(r=>{constn=s(r,!0),i=s(r,!1);e.setValue(t,{value:n}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,changeEx:n,willCommit:!0,commitKey:1,keyDown:!1}})})),this._setEventListeners(r,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],(e=>e.target.checked))):r.addEventListener("input",(function(r){e.setValue(t,{value:s(r)})})),this.container.appendChild(r),this.container}}class_extendsl{constructor(e){super(e,{isRenderable:!(!e.data.title&&!e.data.contents)})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))returnthis.container;conste=`[data-annotation-id="${this.data.parentId}"]`,t=this.layer.querySelectorAll(e);if(0===t.length)returnthis.container;constr=newA({container:this.container,trigger:Array.from(t),color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,contents:this.data.contents}),s=this.page,i=n.Util.normalizeRect([this.data.parentRect[0],s.view[3]-this.data.parentRect[1]+s.view[1],this.data.parentRect[2],s.view[3]-this.data.parentRect[3]+s.view[1]]),a=i[0]+this.data.parentRect[2]-this.data.parentRect[0],o=i[1];returnthis.container.style.transformOrigin=`${-a}px ${-o}px`,this.container.style.left=`${a}px`,this.container.style.top=`${o}px`,this.container.appendChild(r.render()),this.container}}classA{constructor(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.title=e.title,this.modificationDate=e.modificationDate,this.contents=e.contents,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}render(){conste=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.hidden=!0;constt=document.createElement("div");t.className="popup";constr=this.color;if(r){conste=.7*(255-r[0])+r[0],s=.7*(255-r[1])+r[1],i=.7*(255-r[2])+r[2];t.style.backgroundColor=n.Util.makeHexColor(0|e,0|s,0|i)}consti=document.createElement("h1");i.textContent=this.title,t.appendChild(i);consta=s.PDFDateString.toDateObject(this.modificationDate);if(a){conste=document.createElement("span");e.textContent="{{date}}, {{time}}",e.dataset.l10nId="annotation_date_string",e.dataset.l10nArgs=JSON.stringify({date:a.toLocaleDateString(),time:a.toLocaleTimeString()}),t.appendChild(e)}consto=this._formatContents(this.contents);returnt.appendChild(o),Array.isArray(this.trigger)||(this.trigger=[this.trigger]),this.trigger.forEach((e=>{e.addEventListener("click",this._toggle.bind(this)),e.addEventListener("mouseover",this._show.bind(this,!1)),e.addEventListener("mouseout",this._hide.bind(this,!1))})),t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}_formatContents(e){constt=document.createElement("p"),r=e.split(/(?:\r\n?|\n)/);for(lete=0,s=r.length;e<s;++e){constn=r[e];t.appendChild(document.createTextNode(n)),e<s-1&&t.appendChild(document.createElement("br"))}returnt}_toggle(){this.pinned?this._hide(!0):this._show(!0)}_show(e=!1){e&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex+=1)}_hide(e=!0){e&&(this.pinned=!1),this.hideElement.hidden||this.pinned||(this.hideElement.hidden=!0,this.container.style.zIndex-=1)}}classbextendsl{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0})}render(){returnthis.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}classyextendsl{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0})}render(){this.container.className="lineAnnotation";conste=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],s=this.svgFactory.create(t,r),n=this.svgFactory.createElement("svg:line");returnn.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),n.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),n.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),n.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),n.setAttribute("stroke-width",e.borderStyle.width||1),n.setAttribute("stroke","transparent"),s.appendChild(n),this.container.append(s),this._createPopup(n,e),this.container}}classSextendsl{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0})}render(){this.container.className="squareAnnotation";conste=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],s=this.svgFactory.create(t,r),n=e.borderStyle.width,i=this.svgFactory.createElement("svg:rect");returni.setAttribute("x",n/2),i.setAttribute("y",n/2),i.setAttribute("width",t-n),i.setAttribute("height",r-n),i.setAttribute("stroke-width",n||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),s.appendChild(i),this.container.append(s),this._createPopup(i,e),this.container}}classvextendsl{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0})}render(){this.container.className="circleAnnotation";conste=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],s=this.svgFactory.create(t,r),n=e.borderStyle.width,i=this.svgFactory.createElement("svg:ellipse");returni.setAttribute("cx",t/2),i.setAttribute("cy",r/2),i.setAttribute("rx",t/2-n/2),i.setAttribute("ry",r/2-n/2),i.setAttribute("stroke-width",n||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),s.appendChild(i),this.container.append(s),this._createPopup(i,e),this.container}}classCextendsl{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;conste=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],s=this.svgFactory.create(t,r);letn=[];for(consttofe.vertices){constr=t.x-e.rect[0],s=e.rect[3]-t.y;n.push(r+","+s)}n=n.join(" ");consti=this.svgFactory.createElement(this.svgElementName);returni.setAttribute("points",n),i.setAttribute("stroke-width",e.borderStyle.width||1),i.setAttribute("stroke","transparent"),i.setAttribute("fill","none"),s.appendChild(i),this.container.append(s),this._createPopup(i,e),this.container}}classxextendsC{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}classkextendsl{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0})}render(){returnthis.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}classPextendsl{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;conste=this.data,t=e.rect[2]-e.rect[0],r=e.rect[3]-e.rect[1],s=this.svgFactory.create(t,r);for(consttofe.inkLists){letr=[];for(constsoft){constt=s.x-e.rect[0],n=e.rect[3]-s.y;r.push(`${t},${n}`)}r=r.join(" ");constn=this.svgFactory.createElement(this.svgElementName);n.setAttribute("points",r),n.setAttribute("stroke-width",e.borderStyle.width||1),n.setAttribute("stroke","transparent"),n.setAttribute("fill","none"),this._createPopup(n,e),s.appendChild(n)}returnthis.container.append(s),this.container}}classwextendsl{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0,createQuadrilaterals:!0})}render(){returnthis.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}classRextendsl{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0,createQuadrilaterals:!0})}render(){returnthis.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}classTextendsl{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0,createQuadrilaterals:!0})}render(){returnthis.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}classEextendsl{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0,createQuadrilaterals:!0})}render(){returnthis.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}classFextendsl{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.title||e.data.contents),ignoreBorder:!0})}render(){returnthis.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}classMextendsl{constructor(e){super(e,{isRenderable:!0});const{filename:t,content:r}=this.data.file;this.filename=(0,s.getFilenameFromUrl)(t),this.content=r,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,id:(0,n.stringToPDFString)(t),filename:t,content:r})}render(){this.container.className="fileAttachmentAnnotation";conste=document.createElement("div");returne.style.height=this.container.style.height,e.style.width=this.container.style.width,e.addEventListener("dblclick",this._download.bind(this)),this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(e,this.data),this.container.appendChild(e),this.container}_download(){this.downloadManager?.openOrDownloadData(this.container,this.content,this.filename)}}t.AnnotationLayer=class{staticrender(e){constt=[],r=[];for(constsofe.annotations)s&&(s.annotationType!==n.AnnotationType.POPUP?t.push(s):r.push(s));r.length&&t.push(...r);for(constroft){constt=o.create({data:r,layer:e.div,page:e.page,viewport:e.viewport,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderInteractiveForms:!1!==e.renderInteractiveForms,svgFactory:news.DOMSVGFactory,annotationStorage:e.annotationStorage||newi.AnnotationStorage,enableScripting:e.enableScripting,hasJSActions:e.hasJSActions,mouseState:e.mouseState||{isDown:!1}});if(t.isRenderable){consts=t.render();if(r.hidden&&(s.style.visibility="hidden"),Array.isArray(s))for(consttofs)e.div.appendChild(t);elsetinstanceof_?e.div.prepend(s):e.div.appendChild(s)}}}staticupdate(e){constt=`matrix(${e.viewport.transform.join(",")})`;for(constrofe.annotations){consts=e.div.querySelectorAll(`[data-annotation-id="${r.id}"]`);s&&s.forEach((e=>{e.style.transform=t}))}e.div.hidden=!1}}},(e,t)=>{functionr(e){returnMath.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void0,t.ColorConverters=class{staticCMYK_G([e,t,r,s]){return["G",1-Math.min(1,.3*e+.59*r+.11*t+s)]}staticG_CMYK([e]){return["CMYK",0,0,0,1-e]}staticG_RGB([e]){return["RGB",e,e,e]}staticG_HTML([e]){constt=r(e);return`#${t}${t}${t}`}staticRGB_G([e,t,r]){return["G",.3*e+.59*t+.11*r]}staticRGB_HTML([e,t,s]){return`#${r(e)}${r(t)}${r(s)}`}staticT_HTML(){return"#00000000"}staticCMYK_RGB([e,t,r,s]){return["RGB",1-Math.min(1,e+s),1-Math.min(1,r+s),1-Math.min(1,t+s)]}staticCMYK_HTML(e){returnthis.RGB_HTML(this.CMYK_RGB(e))}staticRGB_CMYK([e,t,r]){consts=1-e,n=1-t,i=1-r;return["CMYK",s,n,i,Math.min(s,n,i)]}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=void0;vars=r(2);constn=function(){conste=30,t=newMap,r=/\S/;functionn(n,i,a,o){constl=document.createElement("span"),c={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1};if(n._textDivs.push(l),function(e){return!r.test(e)}(i.str))returnc.isWhitespace=!0,voidn._textDivProperties.set(l,c);consth=s.Util.transform(n._viewport.transform,i.transform);letd=Math.atan2(h[1],h[0]);constu=a[i.fontName];u.vertical&&(d+=Math.PI/2);constp=Math.hypot(h[2],h[3]),g=p*function(r,s){constn=t.get(r);if(n)returnn;s.save(),s.font=`30px ${r}`;consti=s.measureText("");leta=i.fontBoundingBoxAscent,o=Math.abs(i.fontBoundingBoxDescent);if(a){s.restore();conste=a/(a+o);returnt.set(r,e),e}s.strokeStyle="red",s.clearRect(0,0,e,e),s.strokeText("g",0,0);letl=s.getImageData(0,0,e,e).data;o=0;for(lett=l.length-1-3;t>=0;t-=4)if(l[t]>0){o=Math.ceil(t/4/e);break}s.clearRect(0,0,e,e),s.strokeText("A",0,e),l=s.getImageData(0,0,e,e).data,a=0;for(lett=0,r=l.length;t<r;t+=4)if(l[t]>0){a=e-Math.floor(t/4/e);break}if(s.restore(),a){conste=a/(a+o);returnt.set(r,e),e}returnt.set(r,.8),.8}(u.fontFamily,o);letf,m;0===d?(f=h[4],m=h[5]-g):(f=h[4]+g*Math.sin(d),m=h[5]-g*Math.cos(d)),l.style.left=`${f}px`,l.style.top=`${m}px`,l.style.fontSize=`${p}px`,l.style.fontFamily=u.fontFamily,l.textContent=i.str,l.dir=i.dir,n._fontInspectorEnabled&&(l.dataset.fontName=i.fontName),0!==d&&(c.angle=d*(180/Math.PI));let_=!1;if(i.str.length>1)_=!0;elseif(i.transform[0]!==i.transform[3]){conste=Math.abs(i.transform[0]),t=Math.abs(i.transform[3]);e!==t&&Math.max(e,t)/Math.min(e,t)>1.5&&(_=!0)}if(_&&(u.vertical?c.canvasWidth=i.height*n._viewport.scale:c.canvasWidth=i.width*n._viewport.scale),n._textDivProperties.set(l,c),n._textContentStream&&n._layoutText(l),n._enhanceTextSelection){lete=1,t=0;0!==d&&(e=Math.cos(d),t=Math.sin(d));constr=(u.vertical?i.height:i.width)*n._viewport.scale,a=p;leto,c;0!==d?(o=[e,t,-t,e,f,m],c=s.Util.getAxialAlignedBoundingBox([0,0,r,a],o)):c=[f,m,f+r,m+a],n._bounds.push({left:c[0],top:c[1],right:c[2],bottom:c[3],div:l,size:[r,a],m:o})}}functioni(e){if(e._canceled)return;constt=e._textDivs,r=e._capability,s=t.length;if(s>1e5)e._renderingDone=!0,r.resolve();else{if(!e._textContentStream)for(letr=0;r<s;r++)e._layoutText(t[r]);e._renderingDone=!0,r.resolve()}}functiona(e,t,r){lets=0;for(letn=0;n<r;n++){constr=e[t++];r>0&&(s=s?Math.min(r,s):r)}returns}functiono(e,t){t.sort((function(e,t){returne.x1-t.x1||e.index-t.index}));constr=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];t.forEach((function(e){lett=0;for(;t<r.length&&r[t].end<=e.y1;)t++;lets,n,i=r.length-1;for(;i>=0&&r[i].start>=e.y2;)i--;leta,o,l=-1/0;for(a=t;a<=i;a++){lett;s=r[a],n=s.boundary,t=n.x2>e.x1?n.index>e.index?n.x1New:e.x1:void0===n.x2New?(n.x2+e.x1)/2:n.x2New,t>l&&(l=t)}for(e.x1New=l,a=t;a<=i;a++)s=r[a],n=s.boundary,void0===n.x2New?n.x2>e.x1?n.index>e.index&&(n.x2New=n.x2):n.x2New=l:n.x2New>l&&(n.x2New=Math.max(l,n.x2));constc=[];leth=null;for(a=t;a<=i;a++){s=r[a],n=s.boundary;constt=n.x2>e.x2?n:e;h===t?c[c.length-1].end=s.end:(c.push({start:s.start,end:s.end,boundary:t}),h=t)}for(r[t].start<e.y1&&(c[0].start=e.y1,c.unshift({start:r[t].start,end:e.y1,boundary:r[t].boundary})),e.y2<r[i].end&&(c[c.length-1].end=e.y2,c.push({start:e.y2,end:r[i].end,boundary:r[i].boundary})),a=t;a<=i;a++){if(s=r[a],n=s.boundary,void0!==n.x2New)continue;lete=!1;for(o=t-1;!e&&o>=0&&r[o].start>=n.y1;o--)e=r[o].boundary===n;for(o=i+1;!e&&o<r.length&&r[o].end<=n.y2;o++)e=r[o].boundary===n;for(o=0;!e&&o<c.length;o++)e=c[o].boundary===n;e||(n.x2New=l)}Array.prototype.splice.apply(r,[t,i-t+1].concat(c))})),r.forEach((function(t){constr=t.boundary;void0===r.x2New&&(r.x2New=Math.max(e,r.x2))}))}functionl({textContent:e,textContentStream:t,container:r,viewport:n,textDivs:i,textContentItemsStr:a,enhanceTextSelection:o}){this._textContent=e,this._textContentStream=t,this._container=r,this._document=r.ownerDocument,this._viewport=n,this._textDivs=i||[],this._textContentItemsStr=a||[],this._enhanceTextSelection=!!o,this._fontInspectorEnabled=!!globalThis.FontInspector?.enabled,this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=newWeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,s.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally((()=>{this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)})).catch((()=>{}))}returnl.prototype={getpromise(){returnthis._capability.promise},cancel:function(){this._canceled=!0,this._reader&&(this._reader.cancel(news.AbortException("TextLayer task cancelled.")),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(newError("TextLayer task cancelled."))},_processItems(e,t){for(letr=0,s=e.length;r<s;r++)this._textContentItemsStr.push(e[r].str),n(this,e[r],t,this._layoutTextCtx)},_layoutText(e){constt=this._textDivProperties.get(e);if(t.isWhitespace)return;letr="";if(0!==t.canvasWidth){const{fontSize:s,fontFamily:n}=e.style;s===this._layoutTextLastFontSize&&n===this._layoutTextLastFontFamily||(this._layoutTextCtx.font=`${s}${n}`,this._layoutTextLastFontSize=s,this._layoutTextLastFontFamily=n);const{width:i}=this._layoutTextCtx.measureText(e.textContent);i>0&&(t.scale=t.canvasWidth/i,r=`scaleX(${t.scale})`)}0!==t.angle&&(r=`rotate(${t.angle}deg) ${r}`),r.length>0&&(this._enhanceTextSelection&&(t.originalTransform=r),e.style.transform=r),this._textDivProperties.set(e,t),this._container.appendChild(e)},_render:function(t){constr=(0,s.createPromiseCapability)();letn=Object.create(null);consta=this._document.createElement("canvas");if(a.height=a.width=e,a.mozOpaque=!0,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){conste=this._textContent.items,t=this._textContent.styles;this._processItems(e,t),r.resolve()}else{if(!this._textContentStream)thrownewError('Neither "textContent" nor "textContentStream" parameters specified.');{conste=()=>{this._reader.read().then((({value:t,done:s})=>{s?r.resolve():(Object.assign(n,t.styles),this._processItems(t.items,n),e())}),r.reject)};this._reader=this._textContentStream.getReader(),e()}}r.promise.then((()=>{n=null,t?this._renderTimer=setTimeout((()=>{i(this),this._renderTimer=null}),t):i(this)}),this._capability.reject)},expandTextDivs:function(e){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(function(e){constt=e._bounds,r=e._viewport,n=function(e,t,r){consts=r.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void0,x2New:void0}}));o(e,s);constn=newArray(r.length);returns.forEach((function(e){constt=e.index;n[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}})),r.map((function(t,r){consti=n[r],a=s[r];a.x1=t.top,a.y1=e-i.right,a.x2=t.bottom,a.y2=e-i.left,a.index=r,a.x1New=void0,a.x2New=void0})),o(t,s),s.forEach((function(e){constt=e.index;n[t].top=e.x1New,n[t].bottom=e.x2New})),n}(r.width,r.height,t);for(letr=0;r<n.length;r++){consti=t[r].div,o=e._textDivProperties.get(i);if(0===o.angle){o.paddingLeft=t[r].left-n[r].left,o.paddingTop=t[r].top-n[r].top,o.paddingRight=n[r].right-t[r].right,o.paddingBottom=n[r].bottom-t[r].bottom,e._textDivProperties.set(i,o);continue}constl=n[r],c=t[r],h=c.m,d=h[0],u=h[1],p=[[0,0],[0,c.size[1]],[c.size[0],0],c.size],g=newFloat64Array(64);p.forEach((function(e,t){constr=s.Util.applyTransform(e,h);g[t+0]=d&&(l.left-r[0])/d,g[t+4]=u&&(l.top-r[1])/u,g[t+8]=d&&(l.right-r[0])/d,g[t+12]=u&&(l.bottom-r[1])/u,g[t+16]=u&&(l.left-r[0])/-u,g[t+20]=d&&(l.top-r[1])/d,g[t+24]=u&&(l.right-r[0])/-u,g[t+28]=d&&(l.bottom-r[1])/d,g[t+32]=d&&(l.left-r[0])/-d,g[t+36]=u&&(l.top-r[1])/-u,g[t+40]=d&&(l.right-r[0])/-d,g[t+44]=u&&(l.bottom-r[1])/-u,g[t+48]=u&&(l.left-r[0])/u,g[t+52]=d&&(l.top-r[1])/-d,g[t+56]=u&&(l.right-r[0])/u,g[t+60]=d&&(l.bottom-r[1])/-d}));constf=1+Math.min(Math.abs(d),Math.abs(u));o.paddingLeft=a(g,32,16)/f,o.paddingTop=a(g,48,16)/f,o.paddingRight=a(g,0,16)/f,o.paddingBottom=a(g,16,16)/f,e._textDivProperties.set(i,o)}}(this),this._bounds=null);constt=[],r=[];for(lets=0,n=this._textDivs.length;s<n;s++){constn=this._textDivs[s],i=this._textDivProperties.get(n);i.isWhitespace||(e?(t.length=0,r.length=0,i.originalTransform&&t.push(i.originalTransform),i.paddingTop>0?(r.push(`${i.paddingTop}px`),t.push(`translateY(${-i.paddingTop}px)`)):r.push(0),i.paddingRight>0?r.push(i.paddingRight/i.scale+"px"):r.push(0),i.paddingBottom>0?r.push(`${i.paddingBottom}px`):r.push(0),i.paddingLeft>0?(r.push(i.paddingLeft/i.scale+"px"),t.push(`translateX(${-i.paddingLeft/i.scale}px)`)):r.push(0),n.style.padding=r.join(" "),t.length&&(n.style.transform=t.join(" "))):(n.style.padding=null,n.style.transform=i.originalTransform))}}},function(e){constt=newl({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});returnt._render(e.timeout),t}}();t.renderTextLayer=n},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void0;vars=r(2),n=r(1),i=r(4);leta=function(){thrownewError("Not implemented: SVGGraphics")};t.SVGGraphics=a;{conste={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},r="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/1999/xlink",h=["butt","round","square"],d=["miter","round","bevel"],u=function(){conste=newUint8Array([137,80,78,71,13,10,26,10]),t=newInt32Array(256);for(lete=0;e<256;e++){letr=e;for(lete=0;e<8;e++)r=1&r?3988292384^r>>1&2147483647:r>>1&2147483647;t[e]=r}functionr(e,r,s,n){leti=n;consta=r.length;s[i]=a>>24&255,s[i+1]=a>>16&255,s[i+2]=a>>8&255,s[i+3]=255&a,i+=4,s[i]=255&e.charCodeAt(0),s[i+1]=255&e.charCodeAt(1),s[i+2]=255&e.charCodeAt(2),s[i+3]=255&e.charCodeAt(3),i+=4,s.set(r,i),i+=r.length;consto=function(e,r,s){letn=-1;for(leti=r;i<s;i++){constr=255&(n^e[i]);n=n>>>8^t[r]}return-1^n}(s,n+4,i);s[i]=o>>24&255,s[i+1]=o>>16&255,s[i+2]=o>>8&255,s[i+3]=255&o}functionn(e){lett=e.length;constr=65535,s=Math.ceil(t/r),n=newUint8Array(2+t+5*s+4);leti=0;n[i++]=120,n[i++]=156;leta=0;for(;t>r;)n[i++]=0,n[i++]=255,n[i++]=255,n[i++]=0,n[i++]=0,n.set(e.subarray(a,a+r),i),i+=r,a+=r,t-=r;n[i++]=1,n[i++]=255&t,n[i++]=t>>8&255,n[i++]=255&~t,n[i++]=(65535&~t)>>8&255,n.set(e.subarray(a),i),i+=e.length-a;consto=function(e,t,r){lets=1,n=0;for(leti=t;i<r;++i)s=(s+(255&e[i]))%65521,n=(n+s)%65521;returnn<<16|s}(e,0,e.length);returnn[i++]=o>>24&255,n[i++]=o>>16&255,n[i++]=o>>8&255,n[i++]=255&o,n}functiona(t,a,o,l){constc=t.width,h=t.height;letd,u,p;constg=t.data;switch(a){cases.ImageKind.GRAYSCALE_1BPP:u=0,d=1,p=c+7>>3;break;cases.ImageKind.RGB_24BPP:u=2,d=8,p=3*c;break;cases.ImageKind.RGBA_32BPP:u=6,d=8,p=4*c;break;default:thrownewError("invalid format")}constf=newUint8Array((1+p)*h);letm=0,_=0;for(lete=0;e<h;++e)f[m++]=0,f.set(g.subarray(_,_+p),m),_+=p,m+=p;if(a===s.ImageKind.GRAYSCALE_1BPP&&l){m=0;for(lete=0;e<h;e++){m++;for(lete=0;e<p;e++)f[m++]^=255}}constA=newUint8Array([c>>24&255,c>>16&255,c>>8&255,255&c,h>>24&255,h>>16&255,h>>8&255,255&h,d,u,0,0,0]),b=function(e){if(!i.isNodeJS)returnn(e);try{lett;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);constr=require("zlib").deflateSync(t,{level:9});returnrinstanceofUint8Array?r:newUint8Array(r)}catch(e){(0,s.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}returnn(e)}(f),y=e.length+36+A.length+b.length,S=newUint8Array(y);letv=0;returnS.set(e,v),v+=e.length,r("IHDR",A,S,v),v+=12+A.length,r("IDATA",b,S,v),v+=12+b.length,r("IEND",newUint8Array(0),S,v),(0,s.createObjectURL)(S,"image/png",o)}returnfunction(e,t,r){returna(e,void0===e.kind?s.ImageKind.GRAYSCALE_1BPP:e.kind,t,r)}}();classp{constructor(){this.fontSizeScale=1,this.fontWeight=e.fontWeight,this.fontSize=0,this.textMatrix=s.IDENTITY_MATRIX,this.fontMatrix=s.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=s.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=e.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){returnObject.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}functiono(e){if(Number.isInteger(e))returne.toString();constt=e.toFixed(10);letr=t.length-1;if("0"!==t[r])returnt;do{r--}while("0"===t[r]);returnt.substring(0,"."===t[r]?r:r+1)}functionl(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return1===e[0]&&1===e[3]?"":`scale(${o(e[0])}${o(e[3])})`;if(e[0]===e[3]&&e[1]===-e[2])return`rotate(${o(180*Math.acos(e[0])/Math.PI)})`}elseif(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${o(e[4])}${o(e[5])})`;return`matrix(${o(e[0])}${o(e[1])}${o(e[2])}${o(e[3])}${o(e[4])}${o(e[5])})`}letg=0,f=0,m=0;t.SVGGraphics=a=class{constructor(e,t,r=!1){this.svgFactory=newn.DOMSVGFactory,this.current=newp,this.transformMatrix=s.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!r,this._operatorIdMapping=[];for(consteins.OPS)this._operatorIdMapping[s.OPS[e]]=e}save(){this.transformStack.push(this.transformMatrix);conste=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){constt=e.fnArray,r=e.argsArray;for(lete=0,n=t.length;e<n;e++)if(t[e]===s.OPS.dependency)for(consttofr[e]){conste=t.startsWith("g_")?this.commonObjs:this.objs,r=newPromise((r=>{e.get(t,r)}));this.current.dependencies.push(r)}returnPromise.all(this.current.dependencies)}transform(e,t,r,n,i,a){consto=[e,t,r,n,i,a];this.transformMatrix=s.Util.transform(this.transformMatrix,o),this.tgrp=null}getSVG(e,t){this.viewport=t;constr=this._initialize(t);returnthis.loadDependencies(e).then((()=>(this.transformMatrix=s.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),r)))}convertOpList(e){constt=this._operatorIdMapping,r=e.argsArray,s=e.fnArray,n=[];for(lete=0,i=s.length;e<i;e++){consti=s[e];n.push({fnId:i,fn:t[i],args:r[e]})}returnfunction(e){lett=[];constr=[];for(constsofe)"save"!==s.fn?"restore"===s.fn?t=r.pop():t.push(s):(t.push({fnId:92,fn:"group",items:[]}),r.push(t),t=t[t.length-1].items);returnt}(n)}executeOpTree(e){for(consttofe){conste=t.fn,r=t.fnId,n=t.args;switch(0|r){cases.OPS.beginText:this.beginText();break;cases.OPS.dependency:break;cases.OPS.setLeading:this.setLeading(n);break;cases.OPS.setLeadingMoveText:this.setLeadingMoveText(n[0],n[1]);break;cases.OPS.setFont:this.setFont(n);break;cases.OPS.showText:cases.OPS.showSpacedText:this.showText(n[0]);break;cases.OPS.endText:this.endText();break;cases.OPS.moveText:this.moveText(n[0],n[1]);break;cases.OPS.setCharSpacing:this.setCharSpacing(n[0]);break;cases.OPS.setWordSpacing:this.setWordSpacing(n[0]);break;cases.OPS.setHScale:this.setHScale(n[0]);break;cases.OPS.setTextMatrix:this.setTextMatrix(n[0],n[1],n[2],n[3],n[4],n[5]);break;cases.OPS.setTextRise:this.setTextRise(n[0]);break;cases.OPS.setTextRenderingMode:this.setTextRenderingMode(n[0]);break;cases.OPS.setLineWidth:this.setLineWidth(n[0]);break;cases.OPS.setLineJoin:this.setLineJoin(n[0]);break;cases.OPS.setLineCap:this.setLineCap(n[0]);break;cases.OPS.setMiterLimit:this.setMiterLimit(n[0]);break;cases.OPS.setFillRGBColor:this.setFillRGBColor(n[0],n[1],n[2]);break;cases.OPS.setStrokeRGBColor:this.setStrokeRGBColor(n[0],n[1],n[2]);break;cases.OPS.setStrokeColorN:this.setStrokeColorN(n);break;cases.OPS.setFillColorN:this.setFillColorN(n);break;cases.OPS.shadingFill:this.shadingFill(n[0]);break;cases.OPS.setDash:this.setDash(n[0],n[1]);break;cases.OPS.setRenderingIntent:this.setRenderingIntent(n[0]);break;cases.OPS.setFlatness:this.setFlatness(n[0]);break;cases.OPS.setGState:this.setGState(n[0]);break;cases.OPS.fill:this.fill();break;cases.OPS.eoFill:this.eoFill();break;cases.OPS.stroke:this.stroke();break;cases.OPS.fillStroke:this.fillStroke();break;cases.OPS.eoFillStroke:this.eoFillStroke();break;cases.OPS.clip:this.clip("nonzero");break;cases.OPS.eoClip:this.clip("evenodd");break;cases.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;cases.OPS.paintImageXObject:this.paintImageXObject(n[0]);break;cases.OPS.paintInlineImageXObject:this.paintInlineImageXObject(n[0]);break;cases.OPS.paintImageMaskXObject:this.paintImageMaskXObject(n[0]);break;cases.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(n[0],n[1]);break;cases.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;cases.OPS.closePath:this.closePath();break;cases.OPS.closeStroke:this.closeStroke();break;cases.OPS.closeFillStroke:this.closeFillStroke();break;cases.OPS.closeEOFillStroke:this.closeEOFillStroke();break;cases.OPS.nextLine:this.nextLine();break;cases.OPS.transform:this.transform(n[0],n[1],n[2],n[3],n[4],n[5]);break;cases.OPS.constructPath:this.constructPath(n[0],n[1]);break;cases.OPS.endPath:this.endPath();break;case92:this.group(t.items);break;default:(0,s.warn)(`Unimplemented operator ${e}`)}}}setWordSpacing(e){this.current.wordSpacing=e}setCharSpacing(e){this.current.charSpacing=e}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(e,t,r,s,n,i){consta=this.current;a.textMatrix=a.lineMatrix=[e,t,r,s,n,i],a.textMatrixScale=Math.hypot(e,t),a.x=a.lineX=0,a.y=a.lineY=0,a.xcoords=[],a.ycoords=[],a.tspan=this.svgFactory.createElement("svg:tspan"),a.tspan.setAttributeNS(null,"font-family",a.fontFamily),a.tspan.setAttributeNS(null,"font-size",`${o(a.fontSize)}px`),a.tspan.setAttributeNS(null,"y",o(-a.y)),a.txtElement=this.svgFactory.createElement("svg:text"),a.txtElement.appendChild(a.tspan)}beginText(){conste=this.current;e.x=e.lineX=0,e.y=e.lineY=0,e.textMatrix=s.IDENTITY_MATRIX,e.lineMatrix=s.IDENTITY_MATRIX,e.textMatrixScale=1,e.tspan=this.svgFactory.createElement("svg:tspan"),e.txtElement=this.svgFactory.createElement("svg:text"),e.txtgrp=this.svgFactory.createElement("svg:g"),e.xcoords=[],e.ycoords=[]}moveText(e,t){constr=this.current;r.x=r.lineX+=e,r.y=r.lineY+=t,r.xcoords=[],r.ycoords=[],r.tspan=this.svgFactory.createElement("svg:tspan"),r.tspan.setAttributeNS(null,"font-family",r.fontFamily),r.tspan.setAttributeNS(null,"font-size",`${o(r.fontSize)}px`),r.tspan.setAttributeNS(null,"y",o(-r.y))}showText(t){constn=this.current,i=n.font,a=n.fontSize;if(0===a)return;constc=n.fontSizeScale,h=n.charSpacing,d=n.wordSpacing,u=n.fontDirection,p=n.textHScale*u,g=i.vertical,f=g?1:-1,m=i.defaultVMetrics,_=a*n.fontMatrix[0];letA=0;for(consteoft){if(null===e){A+=u*d;continue}if((0,s.isNum)(e)){A+=f*e*a/1e3;continue}constt=(e.isSpace?d:0)+h,r=e.fontChar;leto,l,p,b=e.width;if(g){lett;constr=e.vmetric||m;t=e.vmetric?r[1]:.5*b,t=-t*_;consts=r[2]*_;b=r?-r[0]:b,o=t/c,l=(A+s)/c}elseo=A/c,l=0;(e.isInFont||i.missingFile)&&(n.xcoords.push(n.x+o),g&&n.ycoords.push(-n.y+l),n.tspan.textContent+=r),p=g?b*_-t*u:b*_+t*u,A+=p}n.tspan.setAttributeNS(null,"x",n.xcoords.map(o).join(" ")),g?n.tspan.setAttributeNS(null,"y",n.ycoords.map(o).join(" ")):n.tspan.setAttributeNS(null,"y",o(-n.y)),g?n.y-=A:n.x+=A*p,n.tspan.setAttributeNS(null,"font-family",n.fontFamily),n.tspan.setAttributeNS(null,"font-size",`${o(n.fontSize)}px`),n.fontStyle!==e.fontStyle&&n.tspan.setAttributeNS(null,"font-style",n.fontStyle),n.fontWeight!==e.fontWeight&&n.tspan.setAttributeNS(null,"font-weight",n.fontWeight);constb=n.textRenderingMode&s.TextRenderingMode.FILL_STROKE_MASK;if(b===s.TextRenderingMode.FILL||b===s.TextRenderingMode.FILL_STROKE?(n.fillColor!==e.fillColor&&n.tspan.setAttributeNS(null,"fill",n.fillColor),n.fillAlpha<1&&n.tspan.setAttributeNS(null,"fill-opacity",n.fillAlpha)):n.textRenderingMode===s.TextRenderingMode.ADD_TO_PATH?n.tspan.setAttributeNS(null,"fill","transparent"):n.tspan.setAttributeNS(null,"fill","none"),b===s.TextRenderingMode.STROKE||b===s.TextRenderingMode.FILL_STROKE){conste=1/(n.textMatrixScale||1);this._setStrokeAttributes(n.tspan,e)}lety=n.textMatrix;0!==n.textRise&&(y=y.slice(),y[5]+=n.textRise),n.txtElement.setAttributeNS(null,"transform",`${l(y)} scale(${o(p)}, -1)`),n.txtElement.setAttributeNS(r,"xml:space","preserve"),n.txtElement.appendChild(n.tspan),n.txtgrp.appendChild(n.txtElement),this._ensureTransformGroup().appendChild(n.txtElement)}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}addFontStyle(e){if(!e.data)thrownewError('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));constt=(0,s.createObjectURL)(e.data,e.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${e.loadedName}"; src: url(${t}); }\n`}setFont(e){constt=this.current,r=this.commonObjs.get(e[0]);letn=e[1];t.font=r,!this.embedFonts||r.missingFile||this.embeddedFonts[r.loadedName]||(this.addFontStyle(r),this.embeddedFonts[r.loadedName]=r),t.fontMatrix=r.fontMatrix||s.FONT_IDENTITY_MATRIX;leti="normal";r.black?i="900":r.bold&&(i="bold");consta=r.italic?"italic":"normal";n<0?(n=-n,t.fontDirection=-1):t.fontDirection=1,t.fontSize=n,t.fontFamily=r.loadedName,t.fontWeight=i,t.fontStyle=a,t.tspan=this.svgFactory.createElement("svg:tspan"),t.tspan.setAttributeNS(null,"y",o(-t.y)),t.xcoords=[],t.ycoords=[]}endText(){conste=this.current;e.textRenderingMode&s.TextRenderingMode.ADD_TO_PATH_FLAG&&e.txtElement?.hasChildNodes()&&(e.element=e.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(e){e>0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=h[e]}setLineJoin(e){this.current.lineJoin=d[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,r){this.current.strokeColor=s.Util.makeHexColor(e,t,r)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,r){this.current.fillColor=s.Util.makeHexColor(e,t,r),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){constt=this.viewport.width,r=this.viewport.height,n=s.Util.inverseTransform(this.transformMatrix),i=s.Util.applyTransform([0,0],n),a=s.Util.applyTransform([0,r],n),o=s.Util.applyTransform([t,0],n),l=s.Util.applyTransform([t,r],n),c=Math.min(i[0],a[0],o[0],l[0]),h=Math.min(i[1],a[1],o[1],l[1]),d=Math.max(i[0],a[0],o[0],l[0]),u=Math.max(i[1],a[1],o[1],l[1]),p=this.svgFactory.createElement("svg:rect");p.setAttributeNS(null,"x",c),p.setAttributeNS(null,"y",h),p.setAttributeNS(null,"width",d-c),p.setAttributeNS(null,"height",u-h),p.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&p.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(p)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){constt=e[1],r=e[2],n=e[3]||s.IDENTITY_MATRIX,[i,a,o,l]=e[4],c=e[5],h=e[6],d=e[7],u="shading"+m++,[p,g]=s.Util.applyTransform([i,a],n),[f,_]=s.Util.applyTransform([o,l],n),[A,b]=s.Util.singularValueDecompose2dScale(n),y=c*A,S=h*b,v=this.svgFactory.createElement("svg:pattern");v.setAttributeNS(null,"id",u),v.setAttributeNS(null,"patternUnits","userSpaceOnUse"),v.setAttributeNS(null,"width",y),v.setAttributeNS(null,"height",S),v.setAttributeNS(null,"x",`${p}`),v.setAttributeNS(null,"y",`${g}`);constC=this.svg,x=this.transformMatrix,k=this.current.fillColor,P=this.current.strokeColor,w=this.svgFactory.create(f-p,_-g);if(this.svg=w,this.transformMatrix=n,2===d){conste=s.Util.makeHexColor(...t);this.current.fillColor=e,this.current.strokeColor=e}returnthis.executeOpTree(this.convertOpList(r)),this.svg=C,this.transformMatrix=x,this.current.fillColor=k,this.current.strokeColor=P,v.appendChild(w.childNodes[0]),this.defs.appendChild(v),`url(#${u})`}_makeShadingPattern(e){switch(e[0]){case"RadialAxial":constt="shading"+m++,r=e[3];letn;switch(e[1]){case"axial":constr=e[4],s=e[5];n=this.svgFactory.createElement("svg:linearGradient"),n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),n.setAttributeNS(null,"x1",r[0]),n.setAttributeNS(null,"y1",r[1]),n.setAttributeNS(null,"x2",s[0]),n.setAttributeNS(null,"y2",s[1]);break;case"radial":consti=e[4],a=e[5],o=e[6],l=e[7];n=this.svgFactory.createElement("svg:radialGradient"),n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),n.setAttributeNS(null,"cx",a[0]),n.setAttributeNS(null,"cy",a[1]),n.setAttributeNS(null,"r",l),n.setAttributeNS(null,"fx",i[0]),n.setAttributeNS(null,"fy",i[1]),n.setAttributeNS(null,"fr",o);break;default:thrownewError(`Unknown RadialAxial type: ${e[1]}`)}for(consteofr){constt=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),n.appendChild(t)}returnthis.defs.appendChild(n),`url(#${t})`;case"Mesh":return(0,s.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:thrownewError(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){constr=this.current;letn=r.x,i=r.y,a=[],l=0;for(constrofe)switch(0|r){cases.OPS.rectangle:n=t[l++],i=t[l++];conste=n+t[l++],r=i+t[l++];a.push("M",o(n),o(i),"L",o(e),o(i),"L",o(e),o(r),"L",o(n),o(r),"Z");break;cases.OPS.moveTo:n=t[l++],i=t[l++],a.push("M",o(n),o(i));break;cases.OPS.lineTo:n=t[l++],i=t[l++],a.push("L",o(n),o(i));break;cases.OPS.curveTo:n=t[l+4],i=t[l+5],a.push("C",o(t[l]),o(t[l+1]),o(t[l+2]),o(t[l+3]),o(n),o(i)),l+=6;break;cases.OPS.curveTo2:a.push("C",o(n),o(i),o(t[l]),o(t[l+1]),o(t[l+2]),o(t[l+3])),n=t[l+2],i=t[l+3],l+=4;break;cases.OPS.curveTo3:n=t[l+2],i=t[l+3],a.push("C",o(t[l]),o(t[l+1]),o(n),o(i),o(n),o(i)),l+=4;break;cases.OPS.closePath:a.push("Z")}a=a.join(" "),r.path&&e.length>0&&e[0]!==s.OPS.rectangle&&e[0]!==s.OPS.moveTo?a=r.path.getAttributeNS(null,"d")+a:(r.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(r.path)),r.path.setAttributeNS(null,"d",a),r.path.setAttributeNS(null,"fill","none"),r.element=r.path,r.setCurrentPoint(n,i)}endPath(){conste=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)returnvoid(this.pendingClip=null);constt="clippath"+g++,r=this.svgFactory.createElement("svg:clipPath");r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"transform",l(this.transformMatrix));consts=e.element.cloneNode(!0);"evenodd"===this.pendingClip?s.setAttributeNS(null,"clip-rule","evenodd"):s.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,r.appendChild(s),this.defs.appendChild(r),e.activeClipUrl&&(e.clipGroup=null,this.extraStack.forEach((function(e){e.clipGroup=null})),r.setAttributeNS(null,"clip-path",e.activeClipUrl)),e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){conste=this.current;if(e.path){constt=`${e.path.getAttributeNS(null,"d")}Z`;e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,r]ofe)switch(t){case"LW":this.setLineWidth(r);break;case"LC":this.setLineCap(r);break;case"LJ":this.setLineJoin(r);break;case"ML":this.setMiterLimit(r);break;case"D":this.setDash(r[0],r[1]);break;case"RI":this.setRenderingIntent(r);break;case"FL":this.setFlatness(r);break;case"Font":this.setFont(r);break;case"CA":this.setStrokeAlpha(r);break;case"ca":this.setFillAlpha(r);break;default:(0,s.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){conste=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){conste=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e,t=1){constr=this.current;lets=r.dashArray;1!==t&&s.length>0&&(s=s.map((function(e){returnt*e}))),e.setAttributeNS(null,"stroke",r.strokeColor),e.setAttributeNS(null,"stroke-opacity",r.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",o(r.miterLimit)),e.setAttributeNS(null,"stroke-linecap",r.lineCap),e.setAttributeNS(null,"stroke-linejoin",r.lineJoin),e.setAttributeNS(null,"stroke-width",o(t*r.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",s.map(o).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",o(t*r.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){conste=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}paintImageXObject(e){constt=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,s.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){constr=e.width,s=e.height,n=u(e,this.forceDataSchema,!!t),i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",o(r)),i.setAttributeNS(null,"height",o(s)),this.current.element=i,this.clip("nonzero");consta=this.svgFactory.createElement("svg:image");a.setAttributeNS(c,"xlink:href",n),a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y",o(-s)),a.setAttributeNS(null,"width",o(r)+"px"),a.setAttributeNS(null,"height",o(s)+"px"),a.setAttributeNS(null,"transform",`scale(${o(1/r)}${o(-1/s)})`),t?t.appendChild(a):this._ensureTransformGroup().appendChild(a)}paintImageMaskXObject(e){constt=this.current,r=e.width,s=e.height,n=t.fillColor;t.maskId="mask"+f++;consti=this.svgFactory.createElement("svg:mask");i.setAttributeNS(null,"id",t.maskId);consta=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",o(r)),a.setAttributeNS(null,"height",o(s)),a.setAttributeNS(null,"fill",n),a.setAttributeNS(null,"mask",`url(#${t.maskId})`),this.defs.appendChild(i),this._ensureTransformGroup().appendChild(a),this.paintInlineImageXObject(e,i)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){conste=t[2]-t[0],r=t[3]-t[1],s=this.svgFactory.createElement("svg:rect");s.setAttributeNS(null,"x",t[0]),s.setAttributeNS(null,"y",t[1]),s.setAttributeNS(null,"width",o(e)),s.setAttributeNS(null,"height",o(r)),this.current.element=s,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){constt=this.svgFactory.create(e.width,e.height),r=this.svgFactory.createElement("svg:defs");t.appendChild(r),this.defs=r;consts=this.svgFactory.createElement("svg:g");returns.setAttributeNS(null,"transform",l(e.transform)),t.appendChild(s),this.svg=s,t}_ensureClipGroup(){if(!this.current.clipGroup){conste=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}returnthis.current.clipGroup}_ensureTransformGroup(){returnthis.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",l(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void0;classr{staticsetAttributes(e,t){for(const[r,s]ofObject.entries(t))null!=s&&("style"!==r?e.setAttribute(r,s):Object.assign(e.style,s))}staticrender(e){constt=e.xfa,s=document.createElement(t.name);t.attributes&&r.setAttributes(s,t.attributes);constn=[[t,-1,s]],i=e.div;i.appendChild(s);consta=e.viewport.transform.join(",");for(i.style.transform=`matrix(${a})`,i.setAttribute("class","xfaLayer xfaFont");n.length>0;){const[e,t,s]=n[n.length-1];if(t+1===e.children.length){n.pop();continue}consti=e.children[++n[n.length-1][1]];if(null===i)continue;const{name:a}=i;if("#text"===a){s.appendChild(document.createTextNode(i.value));continue}consto=document.createElement(a);s.appendChild(o),i.attributes&&r.setAttributes(o,i.attributes),i.children&&i.children.length>0?n.push([i,-1,o]):i.value&&o.appendChild(document.createTextNode(i.value))}}staticupdate(e){constt=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}}t.XfaLayer=r},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void0;vars=r(2),n=r(24);consti=require("fs"),a=require("http"),o=require("https"),l=require("url"),c=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){constt=l.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?l.parse(`file:///${e}`):(t.host||(t.protocol="file:"),t)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get_progressiveDataLength(){returnthis._fullRequestReader?._loaded??0}getFullReader(){return(0,s.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?newf(this):newp(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)returnnull;constr=this.isFsUrl?newm(this,e,t):newg(this,e,t);returnthis._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}};classh{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;constt=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=(0,s.createPromiseCapability)(),this._headersCapability=(0,s.createPromiseCapability)()}getheadersReady(){returnthis._headersCapability.promise}getfilename(){returnthis._filename}getcontentLength(){returnthis._contentLength}getisRangeSupported(){returnthis._isRangeSupported}getisStreamingSupported(){returnthis._isStreamingSupported}asyncread(){if(awaitthis._readCapability.promise,this._done)return{value:void0,done:!0};if(this._storedError)throwthis._storedError;conste=this._readableStream.read();returnnull===e?(this._readCapability=(0,s.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:newUint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(news.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}classd{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,s.createPromiseCapability)();constt=e.source;this._isStreamingSupported=!t.disableStream}getisStreamingSupported(){returnthis._isStreamingSupported}asyncread(){if(awaitthis._readCapability.promise,this._done)return{value:void0,done:!0};if(this._storedError)throwthis._storedError;conste=this._readableStream.read();returnnull===e?(this._readCapability=(0,s.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:newUint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}functionu(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}classpextendsh{constructor(e){super(e);constt=t=>{if(404===t.statusCode){conste=news.MissingPDFException(`Missing PDF "${this._url}".`);returnthis._storedError=e,voidthis._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);constr=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:i,suggestedLength:a}=(0,n.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=a||this._contentLength,this._filename=(0,n.extractFilenameFromHeader)(r)};this._request=null,"http:"===this._url.protocol?this._request=a.request(u(this._url,e.httpHeaders),t):this._request=o.request(u(this._url,e.httpHeaders),t),this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}classgextendsd{constructor(e,t,r){super(e),this._httpHeaders={};for(consttine.httpHeaders){constr=e.httpHeaders[t];void0!==r&&(this._httpHeaders[t]=r)}this._httpHeaders.Range=`bytes=${t}-${r-1}`;constn=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{conste=news.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e}};this._request=null,"http:"===this._url.protocol?this._request=a.request(u(this._url,this._httpHeaders),n):this._request=o.request(u(this._url,this._httpHeaders),n),this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}classfextendsh{constructor(e){super(e);lett=decodeURIComponent(this._url.path);c.test(this._url.href)&&(t=t.replace(/^\//,"")),i.lstat(t,((e,r)=>{e?("ENOENT"===e.code&&(e=news.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,this._headersCapability.reject(e)):(this._contentLength=r.size,this._setReadableStream(i.createReadStream(t)),this._headersCapability.resolve())}))}}classmextendsd{constructor(e,t,r){super(e);lets=decodeURIComponent(this._url.path);c.test(this._url.href)&&(s=s.replace(/^\//,"")),this._setReadableStream(i.createReadStream(s,{start:t,end:r-1}))}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return404===e||0===e&&t.startsWith("file:")?news.MissingPDFException('Missing PDF "'+t+'".'):news.UnexpectedResponseException(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)},t.extractFilenameFromHeader=function(e){constt=e("Content-Disposition");if(t){letr=(0,n.getFilenameFromContentDispositionHeader)(t);if(r.includes("%"))try{r=decodeURIComponent(r)}catch(e){}if((0,i.isPdfFile)(r))returnr}returnnull},t.validateRangeRequestCapabilities=function({getResponseHeader:e,isHttp:t,rangeChunkSize:r,disableRange:n}){(0,s.assert)(r>0,"Range chunk size must be larger than zero");consti={allowRangeRequests:!1,suggestedLength:void0},a=parseInt(e("Content-Length"),10);returnNumber.isInteger(a)?(i.suggestedLength=a,a<=2*r||n||!t||"bytes"!==e("Accept-Ranges")||"identity"!==(e("Content-Encoding")||"identity")||(i.allowRangeRequests=!0),i):i},t.validateResponseStatus=function(e){return200===e||206===e};vars=r(2),n=r(25),i=r(1)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){lett=!0,r=s("filename\\*","i").exec(e);if(r){r=r[1];lete=a(r);returne=unescape(e),e=o(e),e=l(e),i(e)}if(r=function(e){constt=[];letr;constn=s("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(r=n.exec(e));){let[,e,s,n]=r;if(e=parseInt(e,10),eint){if(0===e)break}elset[e]=[s,n]}consti=[];for(lete=0;e<t.length&&eint;++e){let[r,s]=t[e];s=a(s),r&&(s=unescape(s),0===e&&(s=o(s))),i.push(s)}returni.join("")}(e),r)returni(l(r));if(r=s("filename","i").exec(e),r){r=r[1];lete=a(r);returne=l(e),i(e)}functions(e,t){returnnewRegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',t)}functionn(e,r){if(e){if(!/^[\x00-\xFF]+$/.test(r))returnr;try{consts=newTextDecoder(e,{fatal:!0}),n=Array.from(r,(function(e){return255&e.charCodeAt(0)}));r=s.decode(newUint8Array(n)),t=!1}catch(s){if(/^utf-?8$/i.test(e))try{r=decodeURIComponent(escape(r)),t=!1}catch(e){}}}returnr}functioni(e){returnt&&/[\x80-\xff]/.test(e)&&(e=n("utf-8",e),t&&(e=n("iso-8859-1",e))),e}functiona(e){if(e.startsWith('"')){constt=e.slice(1).split('\\"');for(lete=0;e<t.length;++e){constr=t[e].indexOf('"');-1!==r&&(t[e]=t[e].slice(0,r),t.length=e+1),t[e]=t[e].replace(/\\(.)/g,"$1")}e=t.join('"')}returne}functiono(e){constt=e.indexOf("'");return-1===t?e:n(e.slice(0,t),e.slice(t+1).replace(/^[^']*'/,""))}functionl(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,(function(e,t,r,s){if("q"===r||"Q"===r)returnn(t,s=(s=s.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,(function(e,t){returnString.fromCharCode(parseInt(t,16))})));try{s=atob(s)}catch(e){}returnn(t,s)}))}return""}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void0;vars=r(2),n=r(24);classi{constructor(e,t){this.url=e,t=t||{},this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this.withCredentials=t.withCredentials||!1,this.getXhr=t.getXhr||function(){returnnewXMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,r){consts={begin:e,end:t};for(consteinr)s[e]=r[e];returnthis.request(s)}requestFull(e){returnthis.request(e)}request(e){constt=this.getXhr(),r=this.currXhrId++,s=this.pendingRequests[r]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(consteinthis.httpHeaders){constr=this.httpHeaders[e];void0!==r&&t.setRequestHeader(e,r)}returnthis.isHttp&&"begin"ine&&"end"ine?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),s.expectedStatus=206):s.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(r){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,r),t.onprogress=this.onProgress.bind(this,r),s.onHeadersReceived=e.onHeadersReceived,s.onDone=e.onDone,s.onError=e.onError,s.onProgress=e.onProgress,t.send(null),r}onProgress(e,t){constr=this.pendingRequests[e];r&&r.onProgress&&r.onProgress(t)}onStateChange(e,t){constr=this.pendingRequests[e];if(!r)return;constn=r.xhr;if(n.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),deleter.onHeadersReceived),4!==n.readyState)return;if(!(einthis.pendingRequests))return;if(deletethis.pendingRequests[e],0===n.status&&this.isHttp)returnvoid(r.onError&&r.onError(n.status));consti=n.status||200;if((200!==i||206!==r.expectedStatus)&&i!==r.expectedStatus)returnvoid(r.onError&&r.onError(n.status));consta=function(e){constt=e.response;return"string"!=typeoft?t:(0,s.stringToBytes)(t).buffer}(n);if(206===i){conste=n.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);r.onDone({begin:parseInt(t[1],10),chunk:a})}elsea?r.onDone({begin:0,chunk:a}):r.onError&&r.onError(n.status)}getRequestXhr(e){returnthis.pendingRequests[e].xhr}isPendingRequest(e){returneinthis.pendingRequests}abortRequest(e){constt=this.pendingRequests[e].xhr;deletethis.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=newi(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){constt=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,s.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=newa(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){constr=newo(this._manager,e,t);returnr.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}};classa{constructor(e,t){this._manager=e;constr={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(r),this._headersReceivedCapability=(0,s.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void0,this._filename=null,this.onProgress=null}_onHeadersReceived(){conste=this._fullRequestId,t=this._manager.getRequestXhr(e),r=e=>t.getResponseHeader(e),{allowRangeRequests:s,suggestedLength:i}=(0,n.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});s&&(this._isRangeSupported=!0),this._contentLength=i||this._contentLength,this._filename=(0,n.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,this._cachedChunks.length>0||(this._requests.forEach((function(e){e.resolve({value:void0,done:!0})})),this._requests=[])}_onError(e){constt=this._url,r=(0,n.createResponseStatusError)(e,t);this._storedError=r,this._headersReceivedCapability.reject(r),this._requests.forEach((function(e){e.reject(r)})),this._requests=[],this._cachedChunks=[]}_onProgress(e){this.onProgress&&this.onProgress({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}getfilename(){returnthis._filename}getisRangeSupported(){returnthis._isRangeSupported}getisStreamingSupported(){returnthis._isStreamingSupported}getcontentLength(){returnthis._contentLength}getheadersReady(){returnthis._headersReceivedCapability.promise}asyncread(){if(this._storedError)throwthis._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void0,done:!0};conste=(0,s.createPromiseCapability)();returnthis._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e),this._requests.forEach((function(e){e.resolve({value:void0,done:!0})})),this._requests=[],this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}classo{constructor(e,t,r){this._manager=e;consts={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=e.requestRange(t,r,s),this._requests=[],this._queuedChunk=null,this._done=!1,this.onProgress=null,this.onClosed=null}_close(){this.onClosed&&this.onClosed(this)}_onDone(e){constt=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0,this._requests.forEach((function(e){e.resolve({value:void0,done:!0})})),this._requests=[],this._close()}_onProgress(e){!this.isStreamingSupported&&this.onProgress&&this.onProgress({loaded:e.loaded})}getisStreamingSupported(){return!1}asyncread(){if(null!==this._queuedChunk){conste=this._queuedChunk;returnthis._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void0,done:!0};conste=(0,s.createPromiseCapability)();returnthis._requests.push(e),e.promise}cancel(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()}}},(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void0;vars=r(2),n=r(24);functioni(e,t,r){return{method:"GET",headers:e,signal:r?.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}functiona(e){constt=newHeaders;for(constrine){consts=e[r];void0!==s&&t.append(r,s)}returnt}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get_progressiveDataLength(){returnthis._fullRequestReader?._loaded??0}getFullReader(){return(0,s.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=newo(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)returnnull;constr=newl(this,e,t);returnthis._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e),this._rangeRequestReaders.slice(0).forEach((function(t){t.cancel(e)}))}};classo{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;constt=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=(0,s.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeofAbortController&&(this._abortController=newAbortController),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=a(this._stream.httpHeaders);constr=t.url;fetch(r,i(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,n.validateResponseStatus)(e.status))throw(0,n.createResponseStatusError)(e.status,r);this._reader=e.body.getReader(),this._headersCapability.resolve();constt=t=>e.headers.get(t),{allowRangeRequests:i,suggestedLength:a}=(0,n.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=a||this._contentLength,this._filename=(0,n.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(news.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}getheadersReady(){returnthis._headersCapability.promise}getfilename(){returnthis._filename}getcontentLength(){returnthis._contentLength}getisRangeSupported(){returnthis._isRangeSupported}getisStreamingSupported(){returnthis._isStreamingSupported}asyncread(){awaitthis._headersCapability.promise;const{value:e,done:t}=awaitthis._reader.read();returnt?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:newUint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}classl{constructor(e,t,r){this._stream=e,this._reader=null,this._loaded=0;consto=e.source;this._withCredentials=o.withCredentials||!1,this._readCapability=(0,s.createPromiseCapability)(),this._isStreamingSupported=!o.disableStream,"undefined"!=typeofAbortController&&(this._abortController=newAbortController),this._headers=a(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${r-1}`);constl=o.url;fetch(l,i(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,n.validateResponseStatus)(e.status))throw(0,n.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch((e=>{if("AbortError"!==e?.name)throwe})),this.onProgress=null}getisStreamingSupported(){returnthis._isStreamingSupported}asyncread(){awaitthis._readCapability.promise;const{value:e,done:t}=awaitthis._reader.read();returnt?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:newUint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}}],__webpack_module_cache__={};function__w_pdfjs_require__(e){vart=__webpack_module_cache__[e];if(void0!==t)returnt.exports;varr=__webpack_module_cache__[e]={exports:{}};return__webpack_modules__[e](r,r.exports,__w_pdfjs_require__),r.exports}var__webpack_exports__={};return(()=>{vare=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLinkAttributes",{enumerable:!0,get:function(){returnt.addLinkAttributes}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){returnt.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){returnt.getPdfFilenameFromUrl}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){returnt.isPdfFile}}),Object.defineProperty(e,"LinkTarget",{enumerable:!0,get:function(){returnt.LinkTarget}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){returnt.loadScript}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){returnt.PDFDateString}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){returnt.RenderingCancelledException}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){returnr.build}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){returnr.getDocument}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){returnr.LoopbackPort}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){returnr.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){returnr.PDFWorker}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){returnr.version}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){returns.CMapCompressionType}}),Object.defineProperty(e,"createObjectURL",{enumerable:!0,get:function(){returns.createObjectURL}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){returns.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){returns.createValidAbsoluteUrl}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){returns.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){returns.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){returns.OPS}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){returns.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){returns.PermissionFlag}}),Object.defineProperty(e,"removeNullCharacters",{enumerable:!0,get:function(){returns.removeNullCharacters}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){returns.shadow}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){returns.UnexpectedResponseException}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){returns.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){returns.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){returns.VerbosityLevel}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){returnn.AnnotationLayer}}),Object.defineProperty(e,"apiCompatibilityParams",{enumerable:!0,get:function(){returni.apiCompatibilityParams}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){returna.GlobalWorkerOptions}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){returno.renderTextLayer}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){returnl.SVGGraphics}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){returnc.XfaLayer}});vart=__w_pdfjs_require__(1),r=__w_pdfjs_require__(5),s=__w_pdfjs_require__(2),n=__w_pdfjs_require__(18),i=__w_pdfjs_require__(9),a=__w_pdfjs_require__(12),o=__w_pdfjs_require__(20),l=__w_pdfjs_require__(21),c=__w_pdfjs_require__(22);{const{isNodeJS:e}=__w_pdfjs_require__(4);if(e){conste=__w_pdfjs_require__(23).PDFNodeStream;(0,r.setPDFNetworkStreamFactory)((t=>newe(t)))}else{conste=__w_pdfjs_require__(26).PDFNetworkStream;lets;(0,t.isFetchSupported)()&&(s=__w_pdfjs_require__(27).PDFFetchStream),(0,r.setPDFNetworkStreamFactory)((r=>s&&(0,t.isValidFetchUrl)(r.url)?news(r):newe(r)))}}})(),__webpack_exports__})()},"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.pdfjsLib=t()}}]);