functionscrollIntoView(a,b){varc=a.offsetParent,d=a.offsetTop+a.clientTop,e=a.offsetLeft+a.clientLeft;if(c){for(;c.clientHeight===c.scrollHeight;)if(c.dataset._scaleY&&(d/=c.dataset._scaleY,e/=c.dataset._scaleX),d+=c.offsetTop,e+=c.offsetLeft,c=c.offsetParent,!c)return;b&&(void0!==b.top&&(d+=b.top),void0!==b.left&&(e+=b.left,c.scrollLeft=e));c.scrollTop=d}elseconsole.error("offsetParent is not set -- cannot scroll")}functionnoContextMenuHandler(a){a.preventDefault()}
reset:function(){this.isInitializedPromiseResolved&&(this.prefs={},this.writeToStorage(this.prefs))},set:function(a,c){if(this.isInitializedPromiseResolved)if(void0===DEFAULT_PREFERENCES[a])console.error("Preferences_set: '"+a+"' is undefined.");elseif(void0===c)console.error("Preferences_set: no value is specified.");else{vard=typeofc,e=typeofDEFAULT_PREFERENCES[a];if(d!==e)if("number"===d&&"string"===e)c=c.toString();else{console.error("Preferences_set: '"+c+"' is a \""+d+'", expected a "'+
e+'".');return}this.prefs[a]=c;this.writeToStorage(this.prefs)}},get:function(a){varc=DEFAULT_PREFERENCES[a];if(void0===c)console.error("Preferences_get: '"+a+"' is undefined.");elsereturnthis.isInitializedPromiseResolved&&(a=this.prefs[a],void0!==a)?a:c}};returna}();Preferences.prototype.writeToStorage=function(a){isLocalStorageEnabled&&localStorage.setItem("preferences",JSON.stringify(a))};
h=a.querySelector(".relative-progress");d.value=b;h.textContent=b+"%";a.removeAttribute("hidden");a.onclick=c}elsea.setAttribute("hidden","")}if(!("mozPrintCallback"indocument.createElement("canvas"))){HTMLCanvasElement.prototype.mozPrintCallback=void0;vare,g,h=window.print;window.print=function(){if(e)console.warn("Ignored window.print() because of a pending print job.");elsetry{a("beforeprint")}finally{e=document.querySelectorAll("canvas"),g=-1,b()}};varf=!!document.attachEvent;window.addEventListener("keydown",
get:function(a,c){returnthis.isInitializedPromiseResolved?this.file[a]||c:c}};returna}(),PDFFindBar={opened:!1,bar:null,toggleButton:null,findField:null,highlightAll:null,caseSensitive:null,findMsg:null,findStatusIcon:null,findPreviousButton:null,findNextButton:null,initialize:function(a){if("undefined"===typeofPDFFindController||null===PDFFindController)throw"PDFFindBar cannot be initialized without a PDFFindController instance.";this.bar=a.bar;this.toggleButton=a.toggleButton;this.findField=
a,!0,!0,{query:this.findField.value,caseSensitive:this.caseSensitive.checked,highlightAll:this.highlightAll.checked,findPrevious:b});returnwindow.dispatchEvent(c)},updateUIState:function(a,b){varc=!1,d="",e="";switch(a){caseFindStates.FIND_PENDING:e="pending";break;caseFindStates.FIND_NOTFOUND:d=mozL10n.get("find_not_found",null,"Phrase not found");c=!0;break;caseFindStates.FIND_WRAPPED:d=b?mozL10n.get("find_reached_top",null,"Reached top of document, continued from bottom"):mozL10n.get("find_reached_bottom",
null,"Reached end of document, continued from top")}c?this.findField.classList.add("notFound"):this.findField.classList.remove("notFound");this.findField.setAttribute("data-status",e);this.findMsg.textContent=d},open:function(){this.opened||(this.opened=!0,this.toggleButton.classList.add("toggled"),this.bar.classList.remove("hidden"));this.findField.select();this.findField.focus()},close:function(){this.opened&&(this.opened=!1,this.toggleButton.classList.remove("toggled"),this.bar.classList.add("hidden"),
PDFFindController.active=!1)},toggle:function(){this.opened?this.close():this.open()}},PDFFindController={startedTextExtraction:!1,extractTextPromises:[],pendingFindMatches:{},active:!1,pageContents:[],pageMatches:[],selected:{pageIdx:-1,matchIdx:-1},offset:{pageIdx:null,matchIdx:null},resumePageIdx:null,resumeCallback:null,state:null,dirtyMatch:!1,findTimeout:null,pdfPageSource:null,integratedFind:!1,initialize:function(a){if("undefined"===typeofPDFFindBar||null===PDFFindBar)throw"PDFFindController cannot be initialized without a PDFFindController instance";
1:c.matchIdx+1;this.updateMatch(!0);return}this.advanceOffsetPage(a)}this.nextPageMatch()}},nextPageMatch:function(){null!==this.resumePageIdx&&console.error("There can only be one pending page.");vara=function(a){varb=this.offset;a=a.length;varc=this.state.findPrevious;if(a)this.hadMatch=!0,b.matchIdx=c?a-1:0,this.updateMatch(!0);else{this.advanceOffsetPage(c);if(b.wrapped&&(b.matchIdx=null,!this.hadMatch)){this.updateMatch(!1);return}this.nextPageMatch()}}.bind(this),b=this.offset.pageIdx,c=
this.passwordField.addEventListener("keydown",function(a){13===a.keyCode&&this.verifyPassword()}.bind(this));this.overlayContainer.addEventListener("keydown",function(a){27===a.keyCode&&this.hide()}.bind(this))},show:function(){if(!this.visible){this.visible=!0;this.overlayContainer.classList.remove("hidden");this.passwordField.focus();vara=mozL10n.get("password_label",null,"Enter the password to open this PDF file.");this.reason===PDFJS.PasswordResponses.INCORRECT_PASSWORD&&(a=mozL10n.get("password_invalid",
document.documentElement&&(b=a);a+="Selector";aindocument.documentElement&&(b=a);returnb});varc=!document.documentMode||9<document.documentMode,d=window.chrome,e=d&&(d.webstore||d.app),g=/Apple/.test(navigator.vendor)&&/Version\/([6-9]\d*|[1-5]\d+)/.test(navigator.userAgent);returna}(),HandTool={initialize:function(a){varb=a.toggleHandTool;this.handTool=newGrabToPan({element:a.container,onActiveChanged:function(a){b&&(a?(b.title=mozL10n.get("hand_tool_disable.title",null,"Disable hand tool"),
b.firstElementChild.textContent=mozL10n.get("hand_tool_disable_label",null,"Disable hand tool")):(b.title=mozL10n.get("hand_tool_enable.title",null,"Enable hand tool"),b.firstElementChild.textContent=mozL10n.get("hand_tool_enable_label",null,"Enable hand tool")))}});b&&b.addEventListener("click",this.handTool.toggle,!1)},toggle:function(){this.handTool.toggle()},enterPresentationMode:function(){this.handTool.active&&(this.wasActive=!0,this.handTool.deactivate())},exitPresentationMode:function(){this.wasActive&&
a,!0,c);else{vare=this.pages[this.page-1];if(e){d=(this.container.clientWidth-SCROLLBAR_PADDING)/e.width*e.scale;e=(this.container.clientHeight-VERTICAL_PADDING)/e.height*e.scale;switch(a){case"page-actual":d=1;break;case"page-width":break;case"page-height":d=e;break;case"page-fit":d=Math.min(d,e);break;case"auto":d=Math.min(MAX_AUTO_SCALE,d);break;default:console.error("pdfViewSetScale: '"+a+"' is an unknown zoom value.");return}this._setScaleUpdatePages(d,a,b,c);selectScaleOption(a)}}}},zoomIn:function(a){varb=
{begin:a,end:c})}};window.addEventListener("message",function(b){varc=b.data;if("object"===typeofc&&"pdfjsLoadAction"inc)switch(c.pdfjsLoadAction){case"supportsRangedLoading":PDFView.open(c.pdfUrl,0,void0,a,{length:c.length,initialData:c.data});break;case"range":a.onDataRange(c.begin,c.chunk);break;case"rangeProgress":a.onDataProgress(c.loaded);break;case"progress":PDFView.progress(c.loaded/c.total);break;case"complete":if(!c.data){PDFView.error(mozL10n.get("loading_error",null,"An error occurred while loading the PDF."),
a;PasswordPrompt.reason=b;PasswordPrompt.show()},function(a){h.progress(a.loaded/a.total)}).then(function(a){h.load(a,b);h.loading=!1},function(a,b){varc=mozL10n.get("loading_error",null,"An error occurred while loading the PDF.");b&&"InvalidPDFException"===b.name&&(c=mozL10n.get("invalid_file_error",null,"Invalid or corrupted PDF file."));b&&"MissingPDFException"===b.name&&(c=mozL10n.get("missing_file_error",null,"Missing PDF file."));h.error(c,{message:a});h.loading=!1})},download:function(){functiona(){d.downloadUrl(b,
c)}varb=this.url.split("#")[0],c=getPDFFileNameFromURL(b),d=newDownloadManager;d.onerror=function(a){PDFView.error("PDF failed to download.")};this.pdfDocument?this.pdfDocument.getData().then(function(a){a=PDFJS.createBlob(a,"application/pdf");d.download(a,b,c)},a).then(null,a):a()},fallback:function(a){},navigateTo:function(a){varb="",c=this,d=function(e){c.pendingRefStr=null;varg=einstanceofObject?c.pagesRefMap[e.num+" "+e.gen+" R"]:e+1;g?(g>c.pages.length&&(g=c.pages.length),c.pages[g-1].scrollIntoView(a),
"0"),e="page="+a+"&zoom="+c+","+e+","+h;elsec&&(e="page=1&zoom="+c);PDFHistory.initialize(d.documentFingerprint);d.setInitialView(e,b);d.isViewerEmbedded||d.container.focus()});n.then(function(){PDFView.supportsPrinting&&a.getJavaScript().then(function(a){a.length&&(console.warn("Warning: JavaScript is not supported"),PDFView.fallback(PDFJS.UNSUPPORTED_FEATURES.javaScript));for(varb=/\bprint\s*\(/g,c=0,d=a.length;c<d;c++){vare=a[c];if(e&&b.test(e)){setTimeout(function(){window.print()});break}}})});
beforePrint:function(){if(this.supportsPrinting){vara=!1;if(this.pages.length)for(varb=0,c=this.pages.length;b<c;++b){if(!this.pages[b].pdfPage){a=!0;break}}elsea=!0;if(a)a=mozL10n.get("printing_not_ready",null,"Warning: The PDF is not fully loaded for printing."),window.alert(a);elsefor(document.querySelector("body").setAttribute("data-mozPrintCallback",!0),b=0,c=this.pages.length;b<c;++b)this.pages[b].beforePrint()}elsea=mozL10n.get("printing_not_supported",null,"Warning: Printing is not fully supported by this browser."),
{left:a,top:b})):scrollIntoView(h)}elsescrollIntoView(h)};this.getTextContent=function(){returnPDFView.getPage(this.id).then(function(a){returna.getTextContent()})};this.draw=function(a){functionb(d){v===m.renderTask&&(m.renderTask=null);if("cancelled"!==d){m.renderingState=RenderingStates.FINISHED;m.loadingIconDiv&&(h.removeChild(m.loadingIconDiv),deletem.loadingIconDiv);m.zoomLayer&&(h.removeChild(m.zoomLayer),m.zoomLayer=null);d&&PDFView.error(mozL10n.get("rendering_error",null,"An error occurred while rendering the page."),
d);m.stats=c.stats;m.updateStats();if(m.onAfterDraw)m.onAfterDraw();cache.push(m);d=document.createEvent("CustomEvent");d.initCustomEvent("pagerender",!0,!0,{pageNumber:c.pageNumber});h.dispatchEvent(d);a()}}varc=this.pdfPage;if(!this.pagePdfPromise)if(c){this.renderingState!==RenderingStates.INITIAL&&console.error("Must be in new state before drawing");this.renderingState=RenderingStates.RUNNING;vard=this.viewport,e=document.createElement("div");e.style.width=h.style.width;e.style.height=h.style.height;
g.textContent="";g.style.width=this.canvasWidth+"px";g.style.height=this.canvasHeight+"px";this.hasImage=!1;this.renderingState=RenderingStates.INITIAL;this.resume=null};this.getPageDrawContext=function(){vara=document.createElement("canvas");a.id="thumbnail"+b;a.width=this.canvasWidth;a.height=this.canvasHeight;a.className="thumbnailImage";a.setAttribute("aria-label",mozL10n.get("thumb_page_canvas",{page:b},"Thumbnail of Page {{page}}"));e.setAttribute("data-loaded",!0);g.appendChild(a);a=a.getContext("2d");
a.save();a.fillStyle="rgb(255, 255, 255)";a.fillRect(0,0,this.canvasWidth,this.canvasHeight);a.restore();returna};this.drawingRequired=function(){return!this.hasImage};this.draw=function(a){if(this.pdfPage)if(this.renderingState!==RenderingStates.INITIAL&&console.error("Must be in new state before drawing"),this.renderingState=RenderingStates.RUNNING,this.hasImage)a();else{varb=this,c=this.getPageDrawContext(),d=this.viewport.clone({scale:this.scale});this.pdfPage.render({canvasContext:c,viewport:d,
0,e=0,g=this.textContent.bidiTexts,h=g.length-1,f=null===PDFFindController?0:PDFFindController.state.query.length,k=[],s=0;s<a.length;s++){for(varn=a[s];b!==h&&n>=e+g[b].str.length;)e+=g[b].str.length,b++;b==g.length&&console.error("Could not find matching mapping");for(varq={begin:{divIdx:b,offset:n-e}},n=n+f;b!==h&&n>e+g[b].str.length;)e+=g[b].str.length,b++;q.end={divIdx:b,offset:n-e};k.push(q)}returnk};this.renderMatches=function(a){functionb(a,c){vard=a.divIdx,e=h[d];e.textContent="";varf=