1(self.webpackChunktonomo=self.webpackChunktonomo||[]).push([[2127],{82127:(K,I,s)=>{"use strict";s.r(I),s.d(I,{OrdersFeatureDeliveryModule:()=>Zo,routes:()=>ga});var l=s(69808),M=s(93075),N=s(77446),Y=s(74202),U=s(51062),e=s(5e3),V=function(){return V=Object.assign||function(n){for(var t,a=1,T=arguments.length;a<T;a++)for(var ae in t=arguments[a])Object.prototype.hasOwnProperty.call(t,ae)&&(n[ae]=t[ae]);return n},V.apply(this,arguments)},Q={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video"}},X=function(){function r(n){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(n),this.firstElement=this._getFirstEl(),this}return r.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"==n?t:3&t|8).toString(16)})},r.prototype._getSelector=function(n,t){return void 0===t&&(t=document),"string"!=typeof n?n:(t=t||document,"#"===n.substring(0,1)?t.querySelector(n):t.querySelectorAll(n))},r.prototype._each=function(n){return this.selector?(void 0!==this.selector.length?[].forEach.call(this.selector,n):n(this.selector,0),this):this},r.prototype._setCssVendorPrefix=function(n,t,a){var T=t.replace(/-([a-z])/gi,function(ae,Ce){return Ce.toUpperCase()});-1!==this.cssVenderPrefixes.indexOf(T)?(n.style[T.charAt(0).toLowerCase()+T.slice(1)]=a,n.style["webkit"+T]=a,n.style["moz"+T]=a,n.style["ms"+T]=a,n.style["o"+T]=a):n.style[T]=a},r.prototype._getFirstEl=function(){return this.selector&&void 0!==this.selector.length?this.selector[0]:this.selector},r.prototype.isEventMatched=function(n,t){var a=t.split(".");return n.split(".").filter(function(T){return T}).every(function(T){return-1!==a.indexOf(T)})},r.prototype.attr=function(n,t){return void 0===t?this.firstElement?this.firstElement.getAttribute(n):"":(this._each(function(a){a.setAttribute(n,t)}),this)},r.prototype.find=function(n){return B(this._getSelector(n,this.selector))},r.prototype.first=function(){return B(this.selector&&void 0!==this.selector.length?this.selector[0]:this.selector)},r.prototype.eq=function(n){return B(this.selector[n])},r.prototype.parent=function(){return B(this.selector.parentElement)},r.prototype.get=function(){return this._getFirstEl()},r.prototype.removeAttr=function(n){var t=n.split(" ");return this._each(function(a){t.forEach(function(T){return a.removeAttribute(T)})}),this},r.prototype.wrap=function(n){if(!this.firstElement)return this;var t=document.createElement("div");return t.className=n,this.firstElement.parentNode.insertBefore(t,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),t.appendChild(this.firstElement),this},r.prototype.addClass=function(n){return void 0===n&&(n=""),this._each(function(t){n.split(" ").forEach(function(a){a&&t.classList.add(a)})}),this},r.prototype.removeClass=function(n){return this._each(function(t){n.split(" ").forEach(function(a){a&&t.classList.remove(a)})}),this},r.prototype.hasClass=function(n){return!!this.firstElement&&this.firstElement.classList.contains(n)},r.prototype.hasAttribute=function(n){return!!this.firstElement&&this.firstElement.hasAttribute(n)},r.prototype.toggleClass=function(n){return this.firstElement?(this.hasClass(n)?this.removeClass(n):this.addClass(n),this):this},r.prototype.css=function(n,t){var a=this;return this._each(function(T){a._setCssVendorPrefix(T,n,t)}),this},r.prototype.on=function(n,t){var a=this;return this.selector?(n.split(" ").forEach(function(T){Array.isArray(r.eventListeners[T])||(r.eventListeners[T]=[]),r.eventListeners[T].push(t),a.selector.addEventListener(T.split(".")[0],t)}),this):this},r.prototype.once=function(n,t){var a=this;return this.on(n,function(){a.off(n),t(n)}),this},r.prototype.off=function(n){var t=this;
1return this.selector?(Object.keys(r.eventListeners).forEach(function(a){t.isEventMatched(n,a)&&(r.eventListeners[a].forEach(function(T){t.selector.removeEventListener(a.split(".")[0],T)}),r.eventListeners[a]=[])}),this):this},r.prototype.trigger=function(n,t){if(!this.firstElement)return this;var a=new CustomEvent(n.split(".")[0],{detail:t||null});return this.firstElement.dispatchEvent(a),this},r.prototype.load=function(n){var t=this;return fetch(n).then(function(a){return a.text()}).then(function(a){t.selector.innerHTML=a}),this},r.prototype.html=function(n){return void 0===n?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(t){t.innerHTML=n}),this)},r.prototype.append=function(n){return this._each(function(t){"string"==typeof n?t.insertAdjacentHTML("beforeend",n):t.appendChild(n)}),this},r.prototype.prepend=function(n){return this._each(function(t){t.insertAdjacentHTML("afterbegin",n)}),this},r.prototype.remove=function(){return this._each(function(n){n.parentNode.removeChild(n)}),this},r.prototype.empty=function(){return this._each(function(n){n.innerHTML=""}),this},r.prototype.scrollTop=function(n){return void 0!==n?(document.body.scrollTop=n,document.documentElement.scrollTop=n,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},r.prototype.scrollLeft=function(n){return void 0!==n?(document.body.scrollLeft=n,document.documentElement.scrollLeft=n,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},r.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var n=this.firstElement.getBoundingClientRect(),t=B("body").style().marginLeft;return{left:n.left-parseFloat(t)+this.scrollLeft(),top:n.top+this.scrollTop()}},r.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},r.prototype.width=function(){var n=this.style();return this.firstElement.clientWidth-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)},r.prototype.height=function(){var n=this.style();return this.firstElement.clientHeight-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)},r.eventListeners={},r}();function B(r){return function $(){(function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function r(n,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var a=document.createEvent("CustomEvent");return a.initCustomEvent(n,t.bubbles,t.cancelable,t.detail),a}})(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)}(),new X(r)}var z=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"];function W(r){return"href"===r?"src":r=(r=(r=r.replace("data-","")).charAt(0).toLowerCase()+r.slice(1)).replace(/-([a-z])/g,function(n){return n[1].toUpperCase()})}var D_getSize=function(r,n,t,a){void 0===t&&(t=0);var ae=B(r).attr("data-lg-size")||a;if(ae){var Ce=ae.split(",");if(Ce[1])for(var Be=window.innerWidth,Ge=0;Ge<Ce.length;Ge++){var qe=Ce[Ge];if(parseInt(qe.split("-")[2],10)>Be){ae=qe;break}Ge===Ce.length-1&&(ae=qe)}var it=ae.split("-"),Je=parseInt(it[0],10),at=parseInt(it[1],10),Me=n.width(),$e=n.height()-t,Qe=Math.min(Me,Je),dt=Math.min($e,at),Et=Math.min(Qe/Je,dt/at);return{width:Je*Et,height:at*Et}}},D_getTransform=function(r,n,t,a,T){if(T){var ae=B(r).find("img").first();if(ae.get()){var Ce=n.get().getBoundingClientRect(),Be=Ce.width,Ge=n.height()-(t+a),qe=ae.width(),nt=ae.height(),it=ae.style(),Je=(Be-qe)/2-ae.offset().left+(parseFloat(it.paddingLeft)||0)+(parseFloat(it.borderLeft)||0)+B(window).scrollLeft()+Ce.left,at=(Ge-nt)/2-ae.offset().top+(parseFloat(it.paddingTop)||0)+(parseFloat(it.borderTop)||0)+B(window).scrollTop()+t;return"translate3d("+(Je*=-1)+"px, "+(at*=-1)+"px, 0) scale3d("+qe/T.width+", "+nt/T.height+", 1)"}}},D_getImgMarkup=function(r,n,t,a,T,ae){var Ge="<img "+t+" "+(a?'srcset="'+a+'"':"")+" "+(T?'sizes="'+T+'"':"")+' class="lg-object lg-image" data-index="'+r+'" src="'+n+'" />',qe="";return ae&&(qe=("string"==typeof ae?JSON.parse(ae):ae).map(function(it){var Je="";return Object.keys(it).forEach(function(at){Je+=" "+at+'="'+it[at]+'"'}),"<source "+Je+"></source>"})),""+qe+Ge},g=0,p=function(){function r(n,t){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!n)return this;if(g++,this.lgId=g,this.el=n,this.LGel=B(n),this.generateSettings(t),this.buildModules(),this.settings.dynamic&&void 0!==this.settings.dynamicEl&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return r.prototype.generateSettings=function(n){if(this.settings=V(V({},Q),n),this.settings.isMobile&&"function"==typeof this.settings.isMobile?this.settings.isMobile():/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)){var t=V(V({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=V(V({},this.settings),t)}},r.prototype.normalizeSettings=function(){this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose
vendor: 6,064 bytes, line 1
1=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container||(this.settings.container=document.body),this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},r.prototype.init=function(){var n=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger("lgInit",{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){n.enableDrag(),n.enableSwipe(),n.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},r.prototype.openGalleryOnItemClick=function(){for(var n=this,t=function(ae){var Ce=a.items[ae],Be=B(Ce),Ge=X.generateUUID();Be.attr("data-lg-id",Ge).on("click.lgcustom-item-"+Ge,function(qe){qe.preventDefault(),n.openGallery(n.settings.index||ae,Ce)})},a=this,T=0;T<this.items.length;T++)t(T)},r.prototype.buildModules=function(){var n=this;this.settings.plugins.forEach(function(t){n.plugins.push(new t(n,B))})},r.prototype.validateLicense=function(){this.settings.licenseKey?"0000-0000-000-0000"===this.settings.licenseKey&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},r.prototype.getSlideItem=function(n){return B(this.getSlideItemId(n))},r.prototype.getSlideItemId=function(n){return"#lg-item-"+this.lgId+"-"+n},r.prototype.getIdName=function(n){return n+"-"+this.lgId},r.prototype.getElementById=function(n){return B("#"+this.getIdName(n))},r.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},r.prototype.buildStructure=function(){var n=this;if(!this.$container||!this.$container.get()){var a="",T="";this.settings.controls&&(a='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+' </button>\n <button type="button" id="'+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),".lg-item"!==this.settings.appendSubHtmlTo&&(T='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var ae="";this.settings.allowMediaOverlap&&(ae+="lg-media-overlap ");var Ce=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",Be=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",Ge="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),qe=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",nt=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",it='\n <div class="'+Ge+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+Ce+" "+Be+' role="dialog"\n >\n <div id="'+this.getIdName("lg-backdrop")+'" class="lg-backdrop"></div>\n\n <div id="'+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+ae+' ">\n\n <div id="'+this.getIdName("lg-content")+'" class="lg-content">\n <div id="'+this.getIdName("lg-inner")+'" class="lg-inner">\n </div>\n '+a+'\n </div>\n <div id="'+this.getIdName("lg-toolbar")+'" class="lg-toolbar lg-group">\n '+nt+"\n "+qe+"\n </div>\n "+(".lg-outer"===this.settings.appendSubHtmlTo?T:"")+'\n <div id="'+this.getIdName("lg-components")+'" class="lg-components">\n '+(".lg-sub-html"===this.settings.appendSubHtmlTo?T:"")+"\n </div>\n </div>\n </div>\n ";B(this.settings.container).append(it),document.body!==this.settings.container&&B(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var Je=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(Je+="lg-grab "),this.outer.addClass(Je),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),B(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){n.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},r.prototype.refreshOnResize=function(){if(this.lgOpened){var t=this.galleryItems[this.index].__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var a=this.mediaContainerPosition;if(this.currentImageSize=D_getSize(this.items[this.index],this.outer,a.top+a.bottom,t&&this.settings.videoMaxSize),t&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var Ce=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",Ce)}this.LGel.trigger("lgContainerResize")}},r.prototype.resizeVideoSlide=function(n,t){var a=this.getVideoContStyle(t);
1this.getSlideItem(n).find(".lg-video-cont").attr("style",a)},r.prototype.updateSlides=function(n,t){if(this.index>n.length-1&&(this.index=n.length-1),1===n.length&&(this.index=0),n.length){var a=this.galleryItems[t].src;this.galleryItems=n,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var T=0;this.galleryItems.some(function(ae,Ce){return ae.src===a&&(T=Ce,!0)}),this.currentItemsInDom=this.organizeSlideItems(T,-1),this.loadContent(T,!0),this.getSlideItem(T).addClass("lg-current"),this.index=T,this.updateCurrentCounter(T),this.LGel.trigger("lgUpdateSlides")}else this.closeGallery()},r.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if("this"===this.settings.selector)this.items.push(this.el);else if(this.settings.selector)if("string"==typeof this.settings.selector)if(this.settings.selectWithin){var n=B(this.settings.selectWithin);this.items=n.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return function(r,n,t,a){var T=[],ae=function H(){for(var r=0,n=0,t=arguments.length;n<t;n++)r+=arguments[n].length;var a=Array(r),T=0;for(n=0;n<t;n++)for(var ae=arguments[n],Ce=0,Be=ae.length;Ce<Be;Ce++,T++)a[T]=ae[Ce];return a}(z,n);return[].forEach.call(r,function(Ce){for(var Be={},Ge=0;Ge<Ce.attributes.length;Ge++){var qe=Ce.attributes[Ge];if(qe.specified){var nt=W(qe.name),it="";ae.indexOf(nt)>-1&&(it=nt),it&&(Be[it]=qe.value)}}var Je=B(Ce),at=Je.find("img").first().attr("alt"),Me=Je.attr("title"),$e=a?Je.attr(a):Je.find("img").first().attr("src");Be.thumb=$e,t&&!Be.subHtml&&(Be.subHtml=Me||at||""),Be.alt=at||Me||"",T.push(Be)}),T}(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},r.prototype.openGallery=function(n,t){var a=this;if(void 0===n&&(n=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.get().focus(),this.outer.removeClass("lg-hide-items"),this.$container.addClass("lg-show");var T=this.getItemsToBeInsertedToDom(n,n);this.currentItemsInDom=T;var ae="";T.forEach(function(Je){ae=ae+'<div id="'+Je+'" class="lg-item"></div>'}),this.$inner.append(ae),this.addHtml(n);var Ce="";this.mediaContainerPosition=this.getMediaContainerPosition();var Be=this.mediaContainerPosition,Ge=Be.top,qe=Be.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(Ge,qe),this.zoomFromOrigin&&t&&(this.currentImageSize=D_getSize(t,this.outer,Ge+qe,this.galleryItems[n].__slideVideoInfo&&this.settings.videoMaxSize),Ce=D_getTransform(t,this.outer,Ge,qe,this.currentImageSize)),(!this.zoomFromOrigin||!Ce)&&(this.outer.addClass(this.settings.startClass),this.getSlideItem(n).removeClass("lg-complete")),setTimeout(function(){a.outer.addClass("lg-components-open")},this.settings.zoomFromOrigin?100:this.settings.backdropDuration),this.index=n,this.LGel.trigger("lgBeforeOpen"),this.getSlideItem(n).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=B(window).scrollTop(),setTimeout(function(){if(a.zoomFromOrigin&&Ce){var Je=a.getSlideItem(n);Je.css("transform",Ce),setTimeout(function(){Je.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",a.settings.startAnimationDuration+"ms"),a.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){Je.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){a.$backdrop.addClass("in"),a.$container.addClass("lg-show-in")},10),(!a.zoomFromOrigin||!Ce)&&setTimeout(function(){a.outer.addClass("lg-visible")},a.settings.backdropDuration),a.slide(n,!1,!1,!1),a.LGel.trigger("lgAfterOpen")}),document.body===this.settings.container&&B("html").addClass("lg-on")}},r.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var n=this.$toolbar.get().clientHeight||0,t=this.outer.find(".lg-components .lg-sub-html").get(),a=this.settings.defaultCaptionHeight||t&&t.clientHeight||0,T=this.outer.find(".lg-thumb-outer").get();return{top:n,bottom:(T?T.clientHeight:0)+a}},r.prototype.setMediaContainerPosition=function(n,t){void 0===n&&(n=0),void 0===t&&(t=0),this.$content.css("top",n+"px").css("bottom",t+"px")},r.prototype.hideBars=function(){var n=this;setTimeout(function(){n.outer.removeClass("lg-hide-items"),n.settings.hideBarsDelay>
10&&(n.outer.on("mousemove.lg click.lg touchstart.lg",function(){n.outer.removeClass("lg-hide-items"),clearTimeout(n.hideBarTimeout),n.hideBarTimeout=setTimeout(function(){n.outer.addClass("lg-hide-items")},n.settings.hideBarsDelay)}),n.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},r.prototype.initPictureFill=function(n){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[n.get()]})}catch(t){console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},r.prototype.counter=function(){if(this.settings.counter){var n='<div class="lg-counter" role="status" aria-live="polite">\n <span id="'+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+' </span> /\n <span id="'+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(n)}},r.prototype.addHtml=function(n){var t,a;if(this.galleryItems[n].subHtmlUrl?a=this.galleryItems[n].subHtmlUrl:t=this.galleryItems[n].subHtml,!a)if(t){var T=t.substring(0,1);("."===T||"#"===T)&&(t=this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?B(this.items).eq(n).find(t).first().html():B(t).first().html())}else t="";if(".lg-item"!==this.settings.appendSubHtmlTo)a?this.outer.find(".lg-sub-html").load(a):this.outer.find(".lg-sub-html").html(t);else{var ae=B(this.getSlideItemId(n));a?ae.load(a):ae.append('<div class="lg-sub-html">'+t+"</div>")}null!=t&&(""===t?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger("lgAfterAppendSubHtml",{index:n})},r.prototype.preload=function(n){for(var t=1;t<=this.settings.preload&&!(t>=this.galleryItems.length-n);t++)this.loadContent(n+t,!1);for(var a=1;a<=this.settings.preload&&!(n-a<0);a++)this.loadContent(n-a,!1)},r.prototype.getDummyImgStyles=function(n){return n?"width:"+n.width+"px;\n margin-left: -"+n.width/2+"px;\n margin-top: -"+n.height/2+"px;\n height:"+n.height+"px":""},r.prototype.getVideoContStyle=function(n){return n?"width:"+n.width+"px;\n height:"+n.height+"px":""},r.prototype.getDummyImageContent=function(n,t,a){var T;if(this.settings.dynamic||(T=B(this.items).eq(t)),T){var ae;if(!(ae=this.settings.exThumbImage?T.attr(this.settings.exThumbImage):T.find("img").first().attr("src")))return"";var Be="<img "+a+' style="'+this.getDummyImgStyles(this.currentImageSize)+'" class="lg-dummy-img" src="'+ae+'" />';return n.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),Be}return""},r.prototype.setImgMarkup=function(n,t,a){var qe,T=this.galleryItems[a],ae=T.alt,Ce=T.srcset,Be=T.sizes,Ge=T.sources,nt=ae?'alt="'+ae+'"':"";qe=this.isFirstSlideWithZoomAnimation()?this.getDummyImageContent(t,a,nt):D_getImgMarkup(a,n,nt,Ce,Be,Ge),t.prepend('<picture class="lg-img-wrap"> '+qe+"</picture>")},r.prototype.onSlideObjectLoad=function(n,t,a,T){var ae=n.find(".lg-object").first();(function(r){return!(!r||!r.complete||0===r.naturalWidth)})(ae.get())||t?a():(ae.on("load.lg error.lg",function(){a&&a()}),ae.on("error.lg",function(){T&&T()}))},r.prototype.onLgObjectLoad=function(n,t,a,T,ae,Ce){var Be=this;this.onSlideObjectLoad(n,Ce,function(){Be.triggerSlideItemLoad(n,t,a,T,ae)},function(){n.addClass("lg-complete lg-complete_"),n.html('<span class="lg-error-msg">Oops... Failed to load content...</span>')})},r.prototype.triggerSlideItemLoad=function(n,t,a,T,ae){var Ce=this,Be=this.galleryItems[t],Ge=ae&&"video"===this.getSlideType(Be)&&!Be.poster?T:0;setTimeout(function(){n.addClass("lg-complete lg-complete_"),Ce.LGel.trigger("lgSlideItemLoad",{index:t,delay:a||0,isFirstSlide:ae})},Ge)},r.prototype.isFirstSlideWithZoomAnimation=function(){return!(this.lGalleryOn||!this.zoomFromOrigin||!this.currentImageSize)},r.prototype.addSlideVideoInfo=function(n){var t=this;n.forEach(function(a,T){a.__slideVideoInfo=function(r,n,t){if(!r)return n?{html5:!0}:void console.error("lightGallery :- data-src is not provided on slide item "+(t+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");var a=r.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),T=r.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),ae=r.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);return a?{youtube:a}:T?{vimeo:T}:ae?{wistia:ae}:void 0}(a.src,!!a.video,T),a.__slideVideoInfo&&t.settings.loadYouTubePoster&&!a.poster&&a.__slideVideoInfo.youtube&&(a.poster="//img.youtube.com/vi/"+a.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},r.prototype.loadContent=function(n,t){var a=this,T=this.galleryItems[n],ae=B(this.getSlideItemId(n)),Ce=T.poster,Be=T.srcset,Ge=T.sizes,qe=T.sources,nt=T.src,it=T.video,Je=it&&"string"==typeof it?JSON.parse(it):it;if(T.responsive){var at=T.responsive.split(",");nt=function(r){for(var n=[],t=[],a="",T=0;T<r.length;T++){var ae=r[T].split(" ");""===ae[0]&&ae.splice(0,1),t.push(ae[0]),n.push(ae[1])}for(var Ce=window.innerWidth,Be=0;Be<n.length;Be++)if(parseInt(n[Be],10)>Ce){a=t[Be];break}return a}(at)||nt}var Me=T.__slideVideoInfo,$e="",Qe=!!T.iframe,dt=!this.lGalleryOn,Et=0;if(dt&&(Et=this.zoomFromOrigin&&this.currentImageSize?this.settings.startAnimationDuration+10:this.settings.backdropDuration+10),!ae.hasClass("lg-loaded")){if(Me){var gr=this.mediaContainerPosition,St=D_getSize(this.items[n],this.outer,gr.top+gr.bottom,Me&&this.settings.videoMaxSize);$e=this.getVideoContStyle(St)}if(Qe){var mt=function(r,n,t,a,T,ae){return'<div class="lg-video-cont lg-has-iframe" style="width:'+r+"; max-width:"+t+"; height: "+n+"; max-height:"+a+'">\n <iframe class="lg-object" frameborder="0" '+(ae?'title="'+ae+'"':"")+' src="'+T+'" allowfullscreen="true"></iframe>\n </div>'}(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,nt,T.iframeTitle);ae.prepend(mt)}else if(Ce){var Ft="";dt&&this.zoomFromOrigin&&this.currentImageSize&&(Ft=this.getDummyImageContent(ae,n,"")),mt=function(r,n,t,a,T){return'<div class="lg-video-cont '+(T&&T.youtube?"lg-has-youtube":T&&T.vimeo?"lg-has-vimeo":"lg-has-html5")+'" style="'+t+'">\n <div class="lg-video-play-button">
1\n <svg\n viewBox="0 0 20 20"\n preserveAspectRatio="xMidYMid"\n focusable="false"\n aria-labelledby="'+a+'"\n role="img"\n class="lg-video-play-icon"\n >\n <title>'+a+'</title>\n <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon>\n </svg>\n <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false">\n <circle cx="50%" cy="50%" r="20"></circle></svg>\n <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false">\n <circle cx="50%" cy="50%" r="20"></circle>\n </svg>\n </div>\n '+(n||"")+'\n <img class="lg-object lg-video-poster" src="'+r+'" />\n </div>'}(Ce,Ft||"",$e,this.settings.strings.playVideo,Me),ae.prepend(mt)}else if(Me)ae.prepend(mt='<div class="lg-video-cont " style="'+$e+'"></div>');else if(this.setImgMarkup(nt,ae,n),Be||qe){var Rn=ae.find(".lg-object");this.initPictureFill(Rn)}(Ce||Me)&&this.LGel.trigger("lgHasVideo",{index:n,src:nt,html5Video:Je,hasPoster:!!Ce}),this.LGel.trigger("lgAfterAppendSlide",{index:n}),this.lGalleryOn&&".lg-item"===this.settings.appendSubHtmlTo&&this.addHtml(n)}var Gn=0;Et&&!B(document.body).hasClass("lg-from-hash")&&(Gn=Et),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){ae.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),ae.hasClass("lg-loaded")||setTimeout(function(){if("image"===a.getSlideType(T)&&(ae.find(".lg-img-wrap").append(D_getImgMarkup(n,nt,"",Be,Ge,T.sources)),Be||qe)){var es=ae.find(".lg-object");a.initPictureFill(es)}("image"===a.getSlideType(T)||"video"===a.getSlideType(T)&&Ce)&&(a.onLgObjectLoad(ae,n,Et,Gn,!0,!1),a.onSlideObjectLoad(ae,!(!Me||!Me.html5||Ce),function(){a.loadContentOnFirstSlideLoad(n,ae,Gn)},function(){a.loadContentOnFirstSlideLoad(n,ae,Gn)}))},this.settings.startAnimationDuration+100)),ae.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||"video"===this.getSlideType(T)&&!Ce)&&this.onLgObjectLoad(ae,n,Et,Gn,dt,!(!Me||!Me.html5||Ce)),(!this.zoomFromOrigin||!this.currentImageSize)&&ae.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){ae.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,!0===t&&(ae.hasClass("lg-complete_")?this.preload(n):ae.find(".lg-object").first().on("load.lg error.lg",function(){a.preload(n)}))},r.prototype.loadContentOnFirstSlideLoad=function(n,t,a){var T=this;setTimeout(function(){t.find(".lg-dummy-img").remove(),t.removeClass("lg-first-slide"),T.outer.removeClass("lg-first-slide-loading"),T.isDummyImageRemoved=!0,T.preload(n)},a+300)},r.prototype.getItemsToBeInsertedToDom=function(n,t,a){var T=this;void 0===a&&(a=0);var ae=[],Ce=Math.max(a,3);Ce=Math.min(Ce,this.galleryItems.length);var Be="lg-item-"+this.lgId+"-"+t;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(nt,it){ae.push("lg-item-"+T.lgId+"-"+it)}),ae;if(n<(this.galleryItems.length-1)/2){for(var Ge=n;Ge>n-Ce/2&&Ge>=0;Ge--)ae.push("lg-item-"+this.lgId+"-"+Ge);var qe=ae.length;for(Ge=0;Ge<Ce-qe;Ge++)ae.push("lg-item-"+this.lgId+"-"+(n+Ge+1))}else{for(Ge=n;Ge<=this.galleryItems.length-1&&Ge<n+Ce/2;Ge++)ae.push("lg-item-"+this.lgId+"-"+Ge);for(qe=ae.length,Ge=0;Ge<Ce-qe;Ge++)ae.push("lg-item-"+this.lgId+"-"+(n-Ge-1))}return this.settings.loop&&(n===this.galleryItems.length-1?ae.push("lg-item-"+this.lgId+"-0"):0===n&&ae.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),-1===ae.indexOf(Be)&&ae.push("lg-item-"+this.lgId+"-"+t),ae},r.prototype.organizeSlideItems=function(n,t){var a=this,T=this.getItemsToBeInsertedToDom(n,t,this.settings.numberOfSlideItemsInDom);return T.forEach(function(ae){-1===a.currentItemsInDom.indexOf(ae)&&a.$inner.append('<div id="'+ae+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(ae){-1===T.indexOf(ae)&&B("#"+ae).remove()}),T},r.prototype.getPreviousSlideIndex=function(){var n=0;try{var t=this.outer.find(".lg-current").first().attr("id");n=parseInt(t.split("-")[3])||0}catch(a){n=0}return n},r.prototype.setDownloadValue=function(n){if(this.settings.download){var t=this.galleryItems[n];if(!1===t.downloadUrl||"false"===t.downloadUrl)this.outer.addClass("lg-hide-download");
1else{var T=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),T.attr("href",t.downloadUrl||t.src),t.download&&T.attr("download",t.download)}}},r.prototype.makeSlideAnimation=function(n,t,a){var T=this;this.lGalleryOn&&a.addClass("lg-slide-progress"),setTimeout(function(){T.outer.addClass("lg-no-trans"),T.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),"prev"===n?(t.addClass("lg-prev-slide"),a.addClass("lg-next-slide")):(t.addClass("lg-next-slide"),a.addClass("lg-prev-slide")),setTimeout(function(){T.outer.find(".lg-item").removeClass("lg-current"),t.addClass("lg-current"),T.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},r.prototype.slide=function(n,t,a,T){var ae=this,Ce=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(n,Ce),!this.lGalleryOn||Ce!==n){var Be=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(n);var Ge=this.getSlideItem(n),qe=this.getSlideItem(Ce),nt=this.galleryItems[n],it=nt.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(nt)),this.setDownloadValue(n),it){var Je=this.mediaContainerPosition,$e=D_getSize(this.items[n],this.outer,Je.top+Je.bottom,it&&this.settings.videoMaxSize);this.resizeVideoSlide(n,$e)}if(this.LGel.trigger("lgBeforeSlide",{prevIndex:Ce,index:n,fromTouch:!!t,fromThumb:!!a}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(n),T||(n<Ce?T="prev":n>Ce&&(T="next")),t){this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var Qe=void 0,dt=void 0;Be>2?(Qe=n-1,dt=n+1,(0===n&&Ce===Be-1||n===Be-1&&0===Ce)&&(dt=0,Qe=Be-1)):(Qe=0,dt=1),"prev"===T?this.getSlideItem(dt).addClass("lg-next-slide"):this.getSlideItem(Qe).addClass("lg-prev-slide"),Ge.addClass("lg-current")}else this.makeSlideAnimation(T,Ge,qe);this.lGalleryOn?setTimeout(function(){ae.loadContent(n,!0),".lg-item"!==ae.settings.appendSubHtmlTo&&ae.addHtml(n)},this.settings.speed+50+(t?0:this.settings.slideDelay)):this.loadContent(n,!0),setTimeout(function(){ae.lgBusy=!1,qe.removeClass("lg-slide-progress"),ae.LGel.trigger("lgAfterSlide",{prevIndex:Ce,index:n,fromTouch:t,fromThumb:a})},(this.lGalleryOn?this.settings.speed+100:100)+(t?0:this.settings.slideDelay))}this.index=n}},r.prototype.updateCurrentCounter=function(n){this.getElementById("lg-counter-current").html(n+1+"")},r.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},r.prototype.getSlideType=function(n){return n.__slideVideoInfo?"video":n.iframe?"iframe":"image"},r.prototype.touchMove=function(n,t,a){var T=t.pageX-n.pageX,ae=t.pageY-n.pageY,Ce=!1;if(this.swipeDirection?Ce=!0:Math.abs(T)>15?(this.swipeDirection="horizontal",Ce=!0):Math.abs(ae)>15&&(this.swipeDirection="vertical",Ce=!0),Ce){var Be=this.getSlideItem(this.index);if("horizontal"===this.swipeDirection){null==a||a.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(Be,T,0);var Ge=Be.get().offsetWidth,nt=15*Ge/100-Math.abs(10*T/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-Ge+T-nt,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),Ge+T+nt,0)}else if("vertical"===this.swipeDirection&&this.settings.swipeToClose){null==a||a.preventDefault(),this.$container.addClass("lg-dragging-vertical");var it=1-Math.abs(ae)/window.innerHeight;this.$backdrop.css("opacity",it);var Je=1-Math.abs(ae)/(2*window.innerWidth);this.setTranslate(Be,0,ae,Je,Je),Math.abs(ae)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},r.prototype.touchEnd=function(n,t,a){var ae,T=this;"lg-slide"!==this.settings.mode&&this.outer.addClass("lg-slide"),setTimeout(function(){T.$container.removeClass("lg-dragging-vertical"),T.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var Ce=!0;if("horizontal"===T.swipeDirection){ae=n.pageX-t.pageX;var Be=Math.abs(n.pageX-t.pageX);ae<0&&Be>T.settings.swipeThreshold?(T.goToNextSlide(!0),Ce=!1):ae>0&&Be>T.settings.swipeThreshold&&(T.goToPrevSlide(!0),Ce=!1)}else if("vertical"===T.swipeDirection){if(ae=Math.abs(n.pageY-t.pageY),T.settings.closable&&T.settings.swipeToClose&&ae>100)return void T.closeGallery();T.$backdrop.css("opacity",1)}if(T.outer.find(".lg-item").removeAttr("style"),Ce&&Math.abs(n.pageX-t.pageX)<5){var Ge=B(a.target);T.isPosterElement(Ge)&&T.LGel.trigger("lgPosterClick")}T.swipeDirection=void 0}),setTimeout(function(){!T.outer.hasClass("lg-dragging")&&"lg-slide"!==T.settings.mode&&T.outer.removeClass("lg-slide")},this.settings.speed+100)},r.prototype.enableSwipe=function(){var n=this,t={},a={},T=!1,ae=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(Ce){n.dragOrSwipeEnabled=!0;var Be=n.getSlideItem(n.index);(B(Ce.target).hasClass("lg-item")||Be.get().contains(Ce.target))&&!n.outer.hasClass("lg-zoomed")&&!n.lgBusy&&1===Ce.targetTouches.length&&(ae=!0,n.touchAction="swipe",n.manageSwipeClass(),t={pageX:Ce.targetTouches[0].pageX,pageY:Ce.targetTouches[0].pageY})}),this.$inner.on("touchmove.lg",function(Ce){ae&&"swipe"===n.touchAction&&1===Ce.targetTouches.length&&(n.touchMove(t,a={pageX:Ce.targetTouches[0].pageX,pageY:Ce.targetTouches[0].pageY},Ce),T=!0)}),this.$inner.on("touchend.lg",function(Ce){if("swipe"===n.touchAction){if(T)T=!1,n.touchEnd(a,t,Ce);else if(ae){var Be=B(Ce.target);n.isPosterElement(Be)&&n.LGel.trigger("lgPosterClick")}n.touchAction=void 0,ae=!1}}
1))},r.prototype.enableDrag=function(){var n=this,t={},a={},T=!1,ae=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(Ce){n.dragOrSwipeEnabled=!0;var Be=n.getSlideItem(n.index);(B(Ce.target).hasClass("lg-item")||Be.get().contains(Ce.target))&&!n.outer.hasClass("lg-zoomed")&&!n.lgBusy&&(Ce.preventDefault(),n.lgBusy||(n.manageSwipeClass(),t={pageX:Ce.pageX,pageY:Ce.pageY},T=!0,n.outer.get().scrollLeft+=1,n.outer.get().scrollLeft-=1,n.outer.removeClass("lg-grab").addClass("lg-grabbing"),n.LGel.trigger("lgDragStart")))}),B(window).on("mousemove.lg.global"+this.lgId,function(Ce){T&&n.lgOpened&&(ae=!0,n.touchMove(t,a={pageX:Ce.pageX,pageY:Ce.pageY}),n.LGel.trigger("lgDragMove"))}),B(window).on("mouseup.lg.global"+this.lgId,function(Ce){if(n.lgOpened){var Be=B(Ce.target);ae?(ae=!1,n.touchEnd(a,t,Ce),n.LGel.trigger("lgDragEnd")):n.isPosterElement(Be)&&n.LGel.trigger("lgPosterClick"),T&&(T=!1,n.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},r.prototype.triggerPosterClick=function(){var n=this;this.$inner.on("click.lg",function(t){!n.dragOrSwipeEnabled&&n.isPosterElement(B(t.target))&&n.LGel.trigger("lgPosterClick")})},r.prototype.manageSwipeClass=function(){var n=this.index+1,t=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(0===this.index?t=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(n=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),t>-1&&this.getSlideItem(t).addClass("lg-prev-slide"),this.getSlideItem(n).addClass("lg-next-slide")},r.prototype.goToNextSlide=function(n){var t=this,a=this.settings.loop;n&&this.galleryItems.length<3&&(a=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger("lgBeforeNextSlide",{index:this.index}),this.slide(this.index,!!n,!1,"next")):a?(this.index=0,this.LGel.trigger("lgBeforeNextSlide",{index:this.index}),this.slide(this.index,!!n,!1,"next")):this.settings.slideEndAnimation&&!n&&(this.outer.addClass("lg-right-end"),setTimeout(function(){t.outer.removeClass("lg-right-end")},400)))},r.prototype.goToPrevSlide=function(n){var t=this,a=this.settings.loop;n&&this.galleryItems.length<3&&(a=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger("lgBeforePrevSlide",{index:this.index,fromTouch:n}),this.slide(this.index,!!n,!1,"prev")):a?(this.index=this.galleryItems.length-1,this.LGel.trigger("lgBeforePrevSlide",{index:this.index,fromTouch:n}),this.slide(this.index,!!n,!1,"prev")):this.settings.slideEndAnimation&&!n&&(this.outer.addClass("lg-left-end"),setTimeout(function(){t.outer.removeClass("lg-left-end")},400)))},r.prototype.keyPress=function(){var n=this;B(window).on("keydown.lg.global"+this.lgId,function(t){n.lgOpened&&!0===n.settings.escKey&&27===t.keyCode&&(t.preventDefault(),n.settings.allowMediaOverlap&&n.outer.hasClass("lg-can-toggle")&&n.outer.hasClass("lg-components-open")?n.outer.removeClass("lg-components-open"):n.closeGallery()),n.lgOpened&&n.galleryItems.length>1&&(37===t.keyCode&&(t.preventDefault(),n.goToPrevSlide()),39===t.keyCode&&(t.preventDefault(),n.goToNextSlide()))})},r.prototype.arrow=function(){var n=this;this.getElementById("lg-prev").on("click.lg",function(){n.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){n.goToNextSlide()})},r.prototype.arrowDisable=function(n){if(!this.settings.loop&&this.settings.hideControlOnEnd){var t=this.getElementById("lg-prev"),a=this.getElementById("lg-next");n+1===this.galleryItems.length?a.attr("disabled","disabled").addClass("disabled"):a.removeAttr("disabled").removeClass("disabled"),0===n?t.attr("disabled","disabled").addClass("disabled"):t.removeAttr("disabled").removeClass("disabled")}},r.prototype.setTranslate=function(n,t,a,T,ae){void 0===T&&(T=1),void 0===ae&&(ae=1),n.css("transform","translate3d("+t+"px, "+a+"px, 0px) scale3d("+T+", "+ae+", 1)")},r.prototype.mousewheel=function(){var n=this,t=0;this.outer.on("wheel.lg",function(a){if(a.deltaY&&!(n.galleryItems.length<2)){a.preventDefault();var T=(new Date).getTime();T-t<1e3||(t=T,a.deltaY>0?n.goToNextSlide():a.deltaY<0&&n.goToPrevSlide())}})},r.prototype.isSlideElement=function(n){return n.hasClass("lg-outer")||n.hasClass("lg-item")||n.hasClass("lg-img-wrap")},r.prototype.isPosterElement=function(n){var t=this.getSlideItem(this.index).find(".lg-video-play-button").get();return n.hasClass("lg-video-poster")||n.hasClass("lg-video-play-button")||t&&t.contains(n.get())},r.prototype.toggleMaximize=function(){var n=this;this.getElementById("lg-maximize").on("click.lg",function(){n.$container.toggleClass("lg-inline"),n.refreshOnResize()})},r.prototype.invalidateItems=function(){for(var n=0;n<this.items.length;n++){var a=B(this.items[n]);a.off("click.lgcustom-item-"+a.attr("data-lg-id"))}},r.prototype.manageCloseGallery=function(){var n=this;if(this.settings.closable){var t=!1;this.getElementById("lg-close").on("click.lg",function(){n.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(a){var T=B(a.target);t=!!n.isSlideElement(T)}),this.outer.on("mousemove.lg",function(){t=!1}),this.outer.on("mouseup.lg",function(a){var T=B(a.target);
1n.isSlideElement(T)&&t&&(n.outer.hasClass("lg-dragging")||n.closeGallery())}))}},r.prototype.closeGallery=function(n){var t=this;if(!this.lgOpened||!this.settings.closable&&!n)return 0;this.LGel.trigger("lgBeforeClose"),B(window).scrollTop(this.prevScrollTop);var T,a=this.items[this.index];if(this.zoomFromOrigin&&a){var ae=this.mediaContainerPosition,Ce=ae.top,Be=ae.bottom,Ge=this.galleryItems[this.index],it=D_getSize(a,this.outer,Ce+Be,Ge.__slideVideoInfo&&Ge.poster&&this.settings.videoMaxSize);T=D_getTransform(a,this.outer,Ce,Be,it)}this.zoomFromOrigin&&T?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.getSlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",T)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,B("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var Je=this.zoomFromOrigin&&T?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){t.zoomFromOrigin&&T&&t.outer.removeClass("lg-zoom-from-image"),t.$container.removeClass("lg-show"),t.$backdrop.removeAttr("style").css("transition-duration",t.settings.backdropDuration+"ms"),t.outer.removeClass("lg-closing "+t.settings.startClass),t.getSlideItem(t.index).removeClass("lg-start-end-progress"),t.$inner.empty(),t.lgOpened&&t.LGel.trigger("lgAfterClose",{instance:t}),t.outer.get()&&t.outer.get().blur(),t.lgOpened=!1},Je+100),Je+100},r.prototype.initModules=function(){this.plugins.forEach(function(n){try{n.init()}catch(t){console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},r.prototype.destroyModules=function(n){this.plugins.forEach(function(t){try{n?t.destroy():t.closeGallery&&t.closeGallery()}catch(a){console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},r.prototype.refresh=function(n){this.settings.dynamic||this.invalidateItems(),this.galleryItems=n||this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger("lgUpdateSlides")},r.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},r.prototype.destroy=function(){var n=this,t=this.closeGallery(!0);return setTimeout(function(){n.destroyModules(!0),n.settings.dynamic||n.invalidateItems(),B(window).off(".lg.global"+n.lgId),n.LGel.off(".lg"),n.$container.remove()},t),t},r}();const m=["*"];let A=(()=>{class r{constructor(t){this._elementRef=t,this.lgInitialized=!1,this._elementRef=t}ngAfterViewChecked(){this.lgInitialized||(this.registerEvents(),this.LG=function o(r,n){return new p(r,n)}(this._elementRef.nativeElement,this.settings),this.lgInitialized=!0)}ngOnDestroy(){this.LG.destroy(),this.lgInitialized=!1}registerEvents(){this.onAfterAppendSlide&&this._elementRef.nativeElement.addEventListener("lgAfterAppendSlide",t=>{this.onAfterAppendSlide&&this.onAfterAppendSlide(t.detail)}),this.onInit&&this._elementRef.nativeElement.addEventListener("lgInit",t=>{this.onInit&&this.onInit(t.detail)}),this.onHasVideo&&this._elementRef.nativeElement.addEventListener("lgHasVideo",t=>{this.onHasVideo&&this.onHasVideo(t.detail)}),this.onContainerResize&&this._elementRef.nativeElement.addEventListener("lgContainerResize",t=>{this.onContainerResize&&this.onContainerResize(t.detail)}),this.onAfterAppendSubHtml&&this._elementRef.nativeElement.addEventListener("lgAfterAppendSubHtml",t=>{this.onAfterAppendSubHtml&&this.onAfterAppendSubHtml(t.detail)}),this.onBeforeOpen&&this._elementRef.nativeElement.addEventListener("lgBeforeOpen",t=>{this.onBeforeOpen&&this.onBeforeOpen(t.detail)}),this.onAfterOpen&&this._elementRef.nativeElement.addEventListener("lgAfterOpen",t=>{this.onAfterOpen&&this.onAfterOpen(t.detail)}),this.onSlideItemLoad&&this._elementRef.nativeElement.addEventListener("lgSlideItemLoad",t=>{this.onSlideItemLoad&&this.onSlideItemLoad(t.detail)}),this.onBeforeSlide&&this._elementRef.nativeElement.addEventListener("lgBeforeSlide",t=>{this.onBeforeSlide&&this.onBeforeSlide(t.detail)}),this.onAfterSlide&&this._elementRef.nativeElement.addEventListener("lgAfterSlide",t=>{this.onAfterSlide&&this.onAfterSlide(t.detail)}),this.onPosterClick&&this._elementRef.nativeElement.addEventListener("lgPosterClick",t=>{this.onPosterClick&&this.onPosterClick(t.detail)}),this.onDragStart&&this._elementRef.nativeElement.addEventListener("lgDragStart",t=>{this.onDragStart&&this.onDragStart(t.detail)}),this.onDragMove&&this._elementRef.nativeElement.addEventListener("lgDragMove",t=>{this.onDragMove&&this.onDragMove(t.detail)}),this.onDragEnd&&this._elementRef.nativeElement.addEventListener("lgDragEnd",t=>{this.onDragEnd&&this.onDragEnd(t.detail)}),this.onBeforeNextSlide&&this._elementRef.nativeElement.addEventListener("lgBeforeNextSlide",t=>{this.onBeforeNextSlide&&this.onBeforeNextSlide(t.detail)}),this.onBeforePrevSlide&&this._elementRef.nativeElement.addEventListener("lgBeforePrevSlide",t=>{this.onBeforePrevSlide&&this.onBeforePrevSlide(t.detail)}),this.onBeforeClose&&this._elementRef.nativeElement.addEventListener("lgBeforeClose",t=>{this.onBeforeClose&&this.onBeforeClose(t.detail)}),this.onAfterClose&&this._elementRef.nativeElement.addEventListener("lgAfterClose",t=>{this.onAfterClose&&this.onAfterClose(t.detail)}),this.onRotateLeft&&this._elementRef.nativeElement.addEventListener("lgRotateLeft",t=>{this.onRotateLeft&&this.onRotateLeft(t.detail)}),this.onRotateRight&&this._elementRef.nativeElement.addEventListener("lgRotateRight",t=>{this.onRotateRight&&this.onRotateRight(t.detail)}),this.onFlipHorizontal&&this._elementRef.nativeElement.addEventListener("lgFlipHorizontal",t=>{this.onFlipHorizontal&&this.onFlipHorizontal(t.detail)}),this.onFlipVertical&&this._elementRef.nativeElement.addEventListener("lgFlipVertical",t=>{this.onFlipVertical&&this.onFlipVertical(t.detail)})}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275directiveInject(e.ElementRef))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["lightgallery"]],inputs:{settings:"settings",onAfterAppendSlide:"onAfterAppendSlide",onInit:"onInit",onHasVideo:"onHasVideo",onContainerResize:"onContainerResize",onAfterAppendSubHtml:"onAfterAppendSubHtml",onBeforeOpen:"onBeforeOpen",onAfterOpen:"onAfterOpen",onSlideItemLoad:"onSlideItemLoad",onBeforeSlide:"onBeforeSlide",onAfterSlide:"onAfterSlide",onPosterClick:"onPosterClick",onDragStart:"onDragStart",onDragMove:"onDragMove",onDragEnd:"onDragEnd",onBeforeNextSlide:"onBeforeNextSlide",onBeforePrevSlide:"onBeforePrevSlide",onBeforeClose:"onBeforeClose",onAfterClose:"onAfterClose",onRotateLeft:"onRotateLeft",onRotateRight:"onRotateRight",onFlipHorizontal:"onFlipHorizontal",onFlipVertical:"onFlipVertical"},ngContentSelectors:m,decls:1,vars:0,template:function(t,a){1&t&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275projection(0))},encapsulation:2}),r})(),O=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.\u0275\u0275defineNgModule({type:r}),r.\u0275inj=e.\u0275\u0275defineInjector({imports:[[]]}),r})();var _=s(23753),k=s(8929),P=s(63527),E=s(7625),x=s(80013),y=s(92198),f=s(85908),h=s(9903);const v=["pdfViewerContainer"];function d(r,n){const t=new r.EventBus;return function S(r,n){(0,_.R)(r,"documentload").pipe((0,E.R)(n)).subscribe(()=>{const t=document.createEvent("CustomEvent");t.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(t)}),(0,_.R)(r,"pagerendered").pipe((0,E.R)(n)).subscribe(({pageNumber:t,cssTransform:a,source:T})=>{const ae=document.createEvent("CustomEvent");ae.initCustomEvent("pagerendered",!0,!0,{pageNumber:t,cssTransform:a}),T.div.dispatchEvent(ae)}),(0,_.R)(r,"textlayerrendered").pipe((0,E.R)(n)).subscribe(({pageNumber:t,source:a})=>{const T=document.createEvent("CustomEvent");T.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:t}),a.textLayerDiv.dispatchEvent(T)}),(0,_.R)(r,"pagechanging").pipe((0,E.R)(n)).subscribe(({pageNumber:t,source:a})=>{const T=document.createEvent("UIEvents");T.initEvent("pagechanging",!0,!0),T.pageNumber=t,a.container.dis
1patchEvent(T)}),(0,_.R)(r,"pagesinit").pipe((0,E.R)(n)).subscribe(({source:t})=>{const a=document.createEvent("CustomEvent");a.initCustomEvent("pagesinit",!0,!0,null),t.container.dispatchEvent(a)}),(0,_.R)(r,"pagesloaded").pipe((0,E.R)(n)).subscribe(({pagesCount:t,source:a})=>{const T=document.createEvent("CustomEvent");T.initCustomEvent("pagesloaded",!0,!0,{pagesCount:t}),a.container.dispatchEvent(T)}),(0,_.R)(r,"scalechange").pipe((0,E.R)(n)).subscribe(({scale:t,presetValue:a,source:T})=>{const ae=document.createEvent("UIEvents");ae.initEvent("scalechange",!0,!0),ae.scale=t,ae.presetValue=a,T.container.dispatchEvent(ae)}),(0,_.R)(r,"updateviewarea").pipe((0,E.R)(n)).subscribe(({location:t,source:a})=>{const T=document.createEvent("UIEvents");T.initEvent("updateviewarea",!0,!0),T.location=t,a.container.dispatchEvent(T)}),(0,_.R)(r,"find").pipe((0,E.R)(n)).subscribe(({source:t,type:a,query:T,phraseSearch:ae,caseSensitive:Ce,highlightAll:Be,findPrevious:Ge})=>{if(t===window)return;const qe=document.createEvent("CustomEvent");qe.initCustomEvent("find"+a,!0,!0,{query:T,phraseSearch:ae,caseSensitive:Ce,highlightAll:Be,findPrevious:Ge}),window.dispatchEvent(qe)}),(0,_.R)(r,"attachmentsloaded").pipe((0,E.R)(n)).subscribe(({attachmentsCount:t,source:a})=>{const T=document.createEvent("CustomEvent");T.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:t}),a.container.dispatchEvent(T)}),(0,_.R)(r,"sidebarviewchanged").pipe((0,E.R)(n)).subscribe(({view:t,source:a})=>{const T=document.createEvent("CustomEvent");T.initCustomEvent("sidebarviewchanged",!0,!0,{view:t}),a.outerContainer.dispatchEvent(T)}),(0,_.R)(r,"pagemode").pipe((0,E.R)(n)).subscribe(({mode:t,source:a})=>{const T=document.createEvent("CustomEvent");T.initCustomEvent("pagemode",!0,!0,{mode:t}),a.pdfViewer.container.dispatchEvent(T)}),(0,_.R)(r,"namedaction").pipe((0,E.R)(n)).subscribe(({action:t,source:a})=>{const T=document.createEvent("CustomEvent");T.initCustomEvent("namedaction",!0,!0,{action:t}),a.pdfViewer.container.dispatchEvent(T)}),(0,_.R)(r,"presentationmodechanged").pipe((0,E.R)(n)).subscribe(({active:t,switchInProgress:a})=>{const T=document.createEvent("CustomEvent");T.initCustomEvent("presentationmodechanged",!0,!0,{active:t,switchInProgress:a}),window.dispatchEvent(T)}),(0,_.R)(r,"outlineloaded").pipe((0,E.R)(n)).subscribe(({outlineCount:t,source:a})=>{const T=document.createEvent("CustomEvent");T.initCustomEvent("outlineloaded",!0,!0,{outlineCount:t}),a.container.dispatchEvent(T)})}(t,n),t}function w(r,n,t){r[n]=t}function j(){return"undefined"==typeof window}j()||w(f,"verbosity",f.VerbosityLevel.INFOS);var te=(()=>{return(r=te||(te={}))[r.DISABLED=0]="DISABLED",r[r.ENABLED=1]="ENABLED",r[r.ENHANCED=2]="ENHANCED",te;var r})();let J=(()=>{class r{constructor(t,a){if(this.element=t,this.ngZone=a,this.isVisible=!1,this._cMapsUrl=void 0!==f?`https://unpkg.com/pdfjs-dist@${f.version}/cmaps/`:null,this._renderText=!0,this._renderTextMode=te.ENABLED,this._stickToPage=!1,this._originalSize=!0,this._page=1,this._zoom=1,this._zoomScale="page-width",this._rotation=0,this._showAll=!0,this._canAutoResize=!0,this._fitToPage=!1,this._externalLinkTarget="blank",this._showBorders=!1,this.resizeTimeout=null,this.pageScrollTimeout=null,this.isInitialized=!1,this.destroy$=new k.xQ,this.afterLoadComplete=new e.EventEmitter,this.pageRendered=new e.EventEmitter,this.pageInitialized=new e.EventEmitter,this.textLayerRendered=new e.EventEmitter,this.onError=new e.EventEmitter,this.onProgress=new e.EventEmitter,this.pageChange=new e.EventEmitter(!0),j())return;let T;T=window.hasOwnProperty("pdfWorkerSrc")&&"string"==typeof window.pdfWorkerSrc&&window.pdfWorkerSrc?window.pdfWorkerSrc:`https://cdn.jsdelivr.net/npm/pdfjs-dist@${f.version}/legacy/build/pdf.worker.js`,w(f.GlobalWorkerOptions,"workerSrc",T)}set cMapsUrl(t){this._cMapsUrl=t}set page(t){const a=t=parseInt(t,10)||1;this._pdf&&(t=this.getValidPageNumber(t)),this._page=t,a!==t&&this.pageChange.emit(t)}set renderText(t){this._renderText=t}set renderTextMode(t){this._renderTextMode=t}set originalSize(t){this._originalSize=t}set showAll(t){this._showAll=t}set stickToPage(t){this._stickToPage=t}set zoom(t){t<=0||(this._zoom=t)}get zoom(){return this._zoom}set zoomScale(t){this._zoomScale=t}get zoomScale(){return this._zoomScale}set rotation(t){"number"==typeof t&&t%90==0?this._rotation=t:console.warn("Invalid pages rotation angle.")}set externalLinkTarget(t){this._externalLinkTarget=t}set autoresize(t){this._canAutoResize=Boolean(t)}set fitToPage(t){this._fitToPage=Boolean(t)}set showBorders(t){this._showBorders=Boolean(t)}static getLinkTarget(t){switch(t){case"blank":return f.LinkTarget.BLANK;case"none":return f.LinkTarget.NONE;case"self":return f.LinkTarget.SELF;case"parent":return f.LinkTarget.PARENT;case"top":return f.LinkTarget.TOP}return null}ngAfterViewChecked(){if(this.isInitialized)return;const t=this.pdfViewerContainer.nativeElement.offsetParent;!0!==this.isVisible||null!=t?!1===this.isVisible&&null!=t&&(this.isVisible=!0,setTimeout(()=>{this.initialize(),this.ngOnChanges({src:this.src})})):this.isVisible=!1}ngOnInit(){this.initialize(),this.setupResizeListener()}ngOnDestroy(){this.clear(),this.destroy$.next(),this.loadingTask=null}get pdfLinkService(){return this._showAll?this.pdfMultiPageLinkService:this.pdfSinglePageLinkService}get pdfViewer(){return this.getCurrentViewer()}get pdfFindController(){return this._showAll?this.pdfMultiPageFindController:this.pdfSinglePageFindController}ngOnChanges(t){if(!j()&&this.isVisible)if("src"in t)this.loadPDF();else if(this._pdf){if("renderText"in t?(this.getCurrentViewer().textLayerMode=this._renderText?this._renderTextMode:te.DISABLED,this.resetPdfDocument()):"showAll"in t&&this.resetPdfDocument(),"page"in t){const{page:a}=t;if(a.currentValue===this._latestScrolledPage)return;this.getCurrentViewer().scrollPageIntoView({pageNumber:this._page})}this.update()}}updateSize(){const t=this.getCurrentViewer();(0,P.D)(this._pdf.getPage(t.currentPageNumber)).pipe((0,E.R)(this.destroy$)).subscribe({next:a=>{const T=this._rotation||a.rotate,ae=a.getViewport({scale:this._zoom,rotation:T}).width*r.CSS_UNITS;let Ce=this._zoom,Be=!0;if(!this._originalSize||this._fitToPage&&ae>this.pdfViewerContainer.nativeElement.clientWidth){const Ge=a.getViewport({scale:1,rotation:T});Ce=this.getScale(Ge.width,Ge.height),Be=!this._stickToPage}t._setScale(Ce,Be)}})}clear(){this.loadingTask&&!this.loadingTask.destroyed&&this.loadingTask.destroy(),this._pdf&&(this._pdf.de
1stroy(),this._pdf=null,this.pdfMultiPageViewer.setDocument(null),this.pdfSinglePageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null,null),this.pdfSinglePageLinkService.setDocument(null,null),this.pdfMultiPageFindController.setDocument(null),this.pdfSinglePageFindController.setDocument(null))}getPDFLinkServiceConfig(){const t={},a=r.getLinkTarget(this._externalLinkTarget);return a&&(t.externalLinkTarget=a),t}setupMultiPageViewer(){w(f,"disableTextLayer",!this._renderText);const t=d(h,this.destroy$);(0,_.R)(t,"pagerendered").pipe((0,E.R)(this.destroy$)).subscribe(T=>{this.pageRendered.emit(T)}),(0,_.R)(t,"pagesinit").pipe((0,E.R)(this.destroy$)).subscribe(T=>{this.pageInitialized.emit(T)}),(0,_.R)(t,"pagechanging").pipe((0,E.R)(this.destroy$)).subscribe(({pageNumber:T})=>{this.pageScrollTimeout&&clearTimeout(this.pageScrollTimeout),this.pageScrollTimeout=window.setTimeout(()=>{this._latestScrolledPage=T,this.pageChange.emit(T)},100)}),(0,_.R)(t,"textlayerrendered").pipe((0,E.R)(this.destroy$)).subscribe(T=>{this.textLayerRendered.emit(T)}),this.pdfMultiPageLinkService=new h.PDFLinkService(Object.assign({eventBus:t},this.getPDFLinkServiceConfig())),this.pdfMultiPageFindController=new h.PDFFindController({linkService:this.pdfMultiPageLinkService,eventBus:t});const a={eventBus:t,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfMultiPageLinkService,textLayerMode:this._renderText?this._renderTextMode:te.DISABLED,findController:this.pdfMultiPageFindController,renderer:"canvas",l10n:void 0};this.pdfMultiPageViewer=new h.PDFViewer(a),this.pdfMultiPageLinkService.setViewer(this.pdfMultiPageViewer),this.pdfMultiPageFindController.setDocument(this._pdf)}setupSinglePageViewer(){w(f,"disableTextLayer",!this._renderText);const t=d(h,this.destroy$);(0,_.R)(t,"pagechanging").pipe((0,E.R)(this.destroy$)).subscribe(({pageNumber:T})=>{T!==this._page&&(this.page=T)}),(0,_.R)(t,"pagerendered").pipe((0,E.R)(this.destroy$)).subscribe(T=>{this.pageRendered.emit(T)}),(0,_.R)(t,"pagesinit").pipe((0,E.R)(this.destroy$)).subscribe(T=>{this.pageInitialized.emit(T)}),(0,_.R)(t,"textlayerrendered").pipe((0,E.R)(this.destroy$)).subscribe(T=>{this.textLayerRendered.emit(T)}),this.pdfSinglePageLinkService=new h.PDFLinkService(Object.assign({eventBus:t},this.getPDFLinkServiceConfig())),this.pdfSinglePageFindController=new h.PDFFindController({linkService:this.pdfSinglePageLinkService,eventBus:t});const a={eventBus:t,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfSinglePageLinkService,textLayerMode:this._renderText?this._renderTextMode:te.DISABLED,findController:this.pdfSinglePageFindController};this.pdfSinglePageViewer=new h.PDFSinglePageViewer(a),this.pdfSinglePageLinkService.setViewer(this.pdfSinglePageViewer),this.pdfSinglePageFindController.setDocument(this._pdf),this.pdfSinglePageViewer._currentPageNumber=this._page}getValidPageNumber(t){return t<1?1:t>this._pdf.numPages?this._pdf.numPages:t}getDocumentParams(){const t=typeof this.src;if(!this._cMapsUrl)return this.src;const a={cMapUrl:this._cMapsUrl,cMapPacked:!0};return"string"===t?a.url=this.src:"object"===t&&(void 0!==this.src.byteLength?a.data=this.src:Object.assign(a,this.src)),a}loadPDF(){if(!this.src)return;if(this.lastLoaded===this.src)return void this.update();this.clear(),this.loadingTask=f.getDocument(this.getDocumentParams()),this.loadingTask.onProgress=a=>{this.onProgress.emit(a)};const t=this.src;(0,P.D)(this.loadingTask.promise).pipe((0,E.R)(this.destroy$)).subscribe({next:a=>{this._pdf=a,this.lastLoaded=t,this.afterLoadComplete.emit(a),this.pdfMultiPageViewer||(this.setupMultiPageViewer(),this.setupSinglePageViewer()),this.resetPdfDocument(),this.update()},error:a=>{this.onError.emit(a)}})}update(){this.page=this._page,this.render()}render(){this._page=this.getValidPageNumber(this._page);const t=this.getCurrentViewer();(0!==this._rotation||t.pagesRotation!==this._rotation)&&setTimeout(()=>{t.pagesRotation=this._rotation}),this._stickToPage&&setTimeout(()=>{t.currentPageNumber=this._page}),this.updateSize()}getScale(t,a){const T=this._showBorders?2*r.BORDER_WIDTH:0,ae=this.pdfViewerContainer.nativeElement.clientWidth-T,Ce=this.pdfViewerContainer.nativeElement.clientHeight-T;if(0===Ce||0===a||0===ae||0===t)return 1;let Be=1;switch(this._zoomScale){case"page-fit":Be=Math.min(Ce/a,ae/t);break;case"page-height":Be=Ce/a;break;default:Be=ae/t}return this._zoom*Be/r.CSS_UNITS}getCurrentViewer(){return this._showAll?this.pdfMultiPageViewer:this.pdfSinglePageViewer}resetPdfDocument(){this.pdfFindController.setDocument(this._pdf),this._showAll?(this.pdfSinglePageViewer.setDocument(null),this.pdfSinglePageLinkService.setDocument(null),this.pdfMultiPageViewer.setDocument(this._pdf),this.pdfMultiPageLinkService.setDocument(this._pdf,null)):(this.pdfMultiPageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null),this.pdfSinglePageViewer.setDocument(this._pdf),this.pdfSinglePageLinkService.setDocument(this._pdf,null))}
1initialize(){j()||!this.isVisible||(this.isInitialized=!0,this.setupMultiPageViewer(),this.setupSinglePageViewer())}setupResizeListener(){j()||this.ngZone.runOutsideAngular(()=>{(0,_.R)(window,"resize").pipe((0,x.b)(100),(0,y.h)(()=>this._canAutoResize&&!!this._pdf),(0,E.R)(this.destroy$)).subscribe(()=>{this.updateSize()})})}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(e.NgZone))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["pdf-viewer"]],viewQuery:function(t,a){if(1&t&&e.\u0275\u0275viewQuery(v,5),2&t){let T;e.\u0275\u0275queryRefresh(T=e.\u0275\u0275loadQuery())&&(a.pdfViewerContainer=T.first)}},inputs:{cMapsUrl:["c-maps-url","cMapsUrl"],page:"page",renderText:["render-text","renderText"],renderTextMode:["render-text-mode","renderTextMode"],originalSize:["original-size","originalSize"],showAll:["show-all","showAll"],stickToPage:["stick-to-page","stickToPage"],zoom:"zoom",zoomScale:["zoom-scale","zoomScale"],rotation:"rotation",externalLinkTarget:["external-link-target","externalLinkTarget"],autoresize:"autoresize",fitToPage:["fit-to-page","fitToPage"],showBorders:["show-borders","showBorders"],src:"src"},outputs:{afterLoadComplete:"after-load-complete",pageRendered:"page-rendered",pageInitialized:"pages-initialized",textLayerRendered:"text-layer-rendered",onError:"error",onProgress:"on-progress",pageChange:"pageChange"},features:[e.\u0275\u0275NgOnChangesFeature],decls:3,vars:0,consts:[[1,"ng2-pdf-viewer-container"],["pdfViewerContainer",""],[1,"pdfViewer"]],template:function(t,a){1&t&&(e.\u0275\u0275elementStart(0,"div",0,1),e.\u0275\u0275element(2,"div",2),e.\u0275\u0275elementEnd())},styles:[".ng2-pdf-viewer-container[_ngcontent-%COMP%]{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}[_nghost-%COMP%]{display:block;position:relative}[_nghost-%COMP%] {--annotation-unfocused-field-background:url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");--xfa-unfocused-field-background:url(\"data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>\");--pdfViewer-padding-bottom:none;--page-margin:1px auto -8px;--page-border:9px solid transparent;--spreadHorizontalWrapped-margin-LR:-3.5px;--zoom-factor:1}@media screen and (forced-colors:active){[_nghost-%COMP%] {--pdfViewer-padding-bottom:9px;--page-margin:9px auto 0;--page-border:none;--spreadHorizontalWrapped-margin-LR:4.5px}}[_nghost-%COMP%] .textLayer{position:absolute;text-align:initial;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}[_nghost-%COMP%] .textLayer br, [_nghost-%COMP%] .textLayer span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}[_nghost-%COMP%] .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}[_nghost-%COMP%] .textLayer .highlight.appended{position:static}[_nghost-%COMP%] .textLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .textLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .textLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .textLayer .highlight.selected{background-color:#006400}[_nghost-%COMP%] .textLayer ::-moz-selection{background:#00f}[_nghost-%COMP%] .textLayer ::-moz-selection, [_nghost-%COMP%] .textLayer ::selection{background:#00f}[_nghost-%COMP%] .textLayer br::-moz-selection{background:transparent}[_nghost-%COMP%] .textLayer br::-moz-selection, [_nghost-%COMP%] .textLayer br::selection{background:transparent}[_nghost-%COMP%] .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[_nghost-%COMP%] .textLayer .endOfContent.active{top:0}[_nghost-%COMP%] .annotationLayer section{position:absolute;text-align:initial}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a, [_nghost-%COMP%] .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover, [_nghost-%COMP%] .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}[_nghost-%COMP%] .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea{background-image:var(--annotation-unfocused-field-background);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}[_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select option{padding:0}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled], [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select[disabled], [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input[disabled], [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:hover, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:hover, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:hover, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}[_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:focus{background:none;border:1px solid transparent}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox :focus, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton :focus, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select :focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input :focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea :focus{background-image:none;background-color:transparent;outline:auto}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:\"\";display:block;position:absolute}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{height:80%;left:45%;width:1px}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}[_nghost-%COMP%] .annotationLayer .popupWrapper{position:absolute;width:20em}[_nghost-%COMP%] .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;white-space:normal;word-wrap:break-word}[_nghost-%COMP%] .annotationLayer .popup>*{font-size:9px}
1[_nghost-%COMP%] .annotationLayer .popup h1{display:inline-block}[_nghost-%COMP%] .annotationLayer .popup span{display:inline-block;margin-left:5px}[_nghost-%COMP%] .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}[_nghost-%COMP%] .annotationLayer .caretAnnotation, [_nghost-%COMP%] .annotationLayer .circleAnnotation svg ellipse, [_nghost-%COMP%] .annotationLayer .fileAttachmentAnnotation, [_nghost-%COMP%] .annotationLayer .freeTextAnnotation, [_nghost-%COMP%] .annotationLayer .highlightAnnotation, [_nghost-%COMP%] .annotationLayer .inkAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .lineAnnotation svg line, [_nghost-%COMP%] .annotationLayer .polygonAnnotation svg polygon, [_nghost-%COMP%] .annotationLayer .polylineAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .squareAnnotation svg rect, [_nghost-%COMP%] .annotationLayer .squigglyAnnotation, [_nghost-%COMP%] .annotationLayer .stampAnnotation, [_nghost-%COMP%] .annotationLayer .strikeoutAnnotation, [_nghost-%COMP%] .annotationLayer .underlineAnnotation{cursor:pointer}[_nghost-%COMP%] .xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}[_nghost-%COMP%] .xfaLayer .highlight.appended{position:static}[_nghost-%COMP%] .xfaLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .xfaLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .xfaLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .xfaLayer .highlight.selected{background-color:#cbdfcb}[_nghost-%COMP%] .xfaLayer ::-moz-selection{background:#00f}[_nghost-%COMP%] .xfaLayer ::-moz-selection, [_nghost-%COMP%] .xfaLayer ::selection{background:#00f}[_nghost-%COMP%] .xfaPage{overflow:hidden;position:relative}[_nghost-%COMP%] .xfaContentarea{position:absolute}[_nghost-%COMP%] .xfaPrintOnly{display:none}[_nghost-%COMP%] .xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}[_nghost-%COMP%] .xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;-webkit-font-kerning:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}[_nghost-%COMP%] .xfaLayer div, [_nghost-%COMP%] .xfaLayer svg, [_nghost-%COMP%] .xfaLayer svg *{pointer-events:none}[_nghost-%COMP%] .xfaLayer a{color:#00f}[_nghost-%COMP%] .xfaRich li{margin-left:3em}[_nghost-%COMP%] .xfaFont{color:#000;font-weight:400;-webkit-font-kerning:none;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}[_nghost-%COMP%] .xfaCaption{overflow:hidden;flex:0 0 auto}[_nghost-%COMP%] .xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}[_nghost-%COMP%] .xfaLabel{height:100%;width:100%}[_nghost-%COMP%] .xfaLeft{display:flex;flex-direction:row;align-items:center}[_nghost-%COMP%] .xfaRight{display:flex;flex-direction:row-reverse;align-items:center}[_nghost-%COMP%] .xfaLeft>.xfaCaption, [_nghost-%COMP%] .xfaLeft>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaRight>.xfaCaption, [_nghost-%COMP%] .xfaRight>.xfaCaptionForCheckButton{max-height:100%}[_nghost-%COMP%] .xfaTop{display:flex;flex-direction:column;align-items:flex-start}[_nghost-%COMP%] .xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}[_nghost-%COMP%] .xfaBottom>.xfaCaption, [_nghost-%COMP%] .xfaBottom>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaTop>.xfaCaption, [_nghost-%COMP%] .xfaTop>.xfaCaptionForCheckButton{width:100%}[_nghost-%COMP%] .xfaBorder{background-color:transparent;position:absolute;pointer-events:none}[_nghost-%COMP%] .xfaWrapped{width:100%;height:100%}[_nghost-%COMP%] .xfaSelect:focus, [_nghost-%COMP%] .xfaTextfield:focus{background-image:none;background-color:transparent;outline:auto;outline-offset:-1px}[_nghost-%COMP%] .xfaCheckbox:focus, [_nghost-%COMP%] .xfaRadio:focus{outline:auto}[_nghost-%COMP%] .xfaSelect, [_nghost-%COMP%] .xfaTextfield{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}[_nghost-%COMP%] .xfaBottom>.xfaSelect, [_nghost-%COMP%] .xfaBottom>.xfaTextfield, [_nghost-%COMP%] .xfaTop>.xfaSelect, [_nghost-%COMP%] .xfaTop>.xfaTextfield{flex:0 1 auto}
1[_nghost-%COMP%] .xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}[_nghost-%COMP%] .xfaLink{width:100%;height:100%}[_nghost-%COMP%] .xfaCheckbox, [_nghost-%COMP%] .xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}[_nghost-%COMP%] .xfaRich{white-space:pre-wrap;width:100%;height:100%}[_nghost-%COMP%] .xfaImage{-o-object-position:left top;object-position:left top;-o-object-fit:contain;object-fit:contain;width:100%;height:100%}[_nghost-%COMP%] .xfaLrTb, [_nghost-%COMP%] .xfaRlTb, [_nghost-%COMP%] .xfaTb{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaLr{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}[_nghost-%COMP%] .xfaTb>div{justify-content:left}[_nghost-%COMP%] .xfaArea, [_nghost-%COMP%] .xfaPosition{position:relative}[_nghost-%COMP%] .xfaValignMiddle{display:flex;align-items:center}[_nghost-%COMP%] .xfaTable{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}[_nghost-%COMP%] .xfaTable .xfaRlRow>div{flex:1}[_nghost-%COMP%] .xfaDisabled input, [_nghost-%COMP%] .xfaDisabled textarea, [_nghost-%COMP%] .xfaNonInteractive input, [_nghost-%COMP%] .xfaNonInteractive textarea, [_nghost-%COMP%] .xfaReadOnly input, [_nghost-%COMP%] .xfaReadOnly textarea{background:initial}@media print{[_nghost-%COMP%] .xfaTextfield{background:transparent}[_nghost-%COMP%] .xfaSelect{background:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:\"\"}}[_nghost-%COMP%] .pdfViewer{padding-bottom:var(--pdfViewer-padding-bottom)}[_nghost-%COMP%] .pdfViewer .canvasWrapper{overflow:hidden}[_nghost-%COMP%] .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);background-clip:content-box;-o-border-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=\") 9 9 repeat;border-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=\") 9 9 repeat;background-color:#fff}[_nghost-%COMP%] .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}[_nghost-%COMP%] .pdfViewer.singlePageView{display:inline-block}[_nghost-%COMP%] .pdfViewer.singlePageView .page{margin:0;border:none}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .pdfViewer.scrollWrapped, [_nghost-%COMP%] .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .spread{white-space:nowrap}[_nghost-%COMP%] .pdfViewer.removePageBorders, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}[_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread, [_nghost-%COMP%] .spread .page{display:inline-block;vertical-align:middle}[_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page, [_nghost-%COMP%] .spread .page{margin-left:var(--spreadHorizontalWrapped-margin-LR);margin-right:var(--spreadHorizontalWrapped-margin-LR)}[_nghost-%COMP%] .pdfViewer.removePageBorders.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollWrapped .page, [_nghost-%COMP%] .pdfViewer.removePageBorders .spread .page{margin-left:5px;margin-right:5px}[_nghost-%COMP%] .pdfViewer .page canvas{margin:0;display:block}[_nghost-%COMP%] .pdfViewer .page canvas[hidden]{display:none}[_nghost-%COMP%] .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(\"data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4diOZyFAoKEQDxra2mAEgjghOpCgz3LTBIxJ5kgwMBShACREHZ1V4Kg1rS44pBAgMDAg/Sw0GBAQGDZGTlY+YmpyPpSQDiqYiDQoCliqZBqkGAgKIS5kEjQ21VwCyp76dBHiNvz+MR74AqSOdVwbQuo+abppo10ssjdkAnc0rf8vgl8YqIQAh+QQJBwAAACwAAAAAGAAYAAAFrCAgjiQgCGVaDgZZFCQxqKNRKGOSjMjR0qLXTyciHA7AkaLACMIAiwOC1iAxCrMToHHYjWQiA4NBEA0Q1RpWxHg4cMXxNDk4OBxNUkPAQAEXDgllKgMzQA1pSYopBgonCj9JEA8REQ8QjY+RQJOVl4ugoYssBJuMpYYjDQSliwasiQOwNakALKqsqbWvIohFm7V6rQAGP6+JQLlFg7KDQLKJrLjBKbvAor3IKiEAIfkECQcAAAAsAAAAABgAGAAABbUgII4koChlmhokw5DEoI4NQ4xFMQoJO4uuhignMi
1QWvxGBIQC+AJBEUyUcIRiyE6CR0CllW4HABxBURTUw4nC4FcWo5CDBRpQaCoF7VjgsyCUDYDMNZ0mHdwYEBAaGMwwHDg4HDA2KjI4qkJKUiJ6faJkiA4qAKQkRB3E0i6YpAw8RERAjA4tnBoMApCMQDhFTuySKoSKMJAq6rD4GzASiJYtgi6PUcs9Kew0xh7rNJMqIhYchACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJEAQZZo2JIKQxqCOjWCMDDMqxT2LAgELkBMZCoXfyCBQiFwiRsGpku0EshNgUNAtrYPT0GQVNRBWwSKBMp98P24iISgNDAS4ipGA6JUpA2WAhDR4eWM/CAkHBwkIDYcGiTOLjY+FmZkNlCN3eUoLDmwlDW+AAwcODl5bYl8wCVYMDw5UWzBtnAANEQ8kBIM0oAAGPgcREIQnVloAChEOqARjzgAQEbczg8YkWJq8nSUhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJGAYZZoOpKKQqDoORDMKwkgwtiwSBBYAJ2owGL5RgxBziQQMgkwoMkhNqAEDARPSaiMDFdDIiRSFQowMXE8Z6RdpYHWnEAWGPVkajPmARVZMPUkCBQkJBQINgwaFPoeJi4GVlQ2Qc3VJBQcLV0ptfAMJBwdcIl+FYjALQgimoGNWIhAQZA4HXSpLMQ8PIgkOSHxAQhERPw7ASTSFyCMMDqBTJL8tf3y2fCEAIfkECQcAAAAsAAAAABgAGAAABa8gII4k0DRlmg6kYZCoOg5EDBDEaAi2jLO3nEkgkMEIL4BLpBAkVy3hCTAQKGAznM0AFNFGBAbj2cA9jQixcGZAGgECBu/9HnTp+FGjjezJFAwFBQwKe2Z+KoCChHmNjVMqA21nKQwJEJRlbnUFCQlFXlpeCWcGBUACCwlrdw8RKGImBwktdyMQEQciB7oACwcIeA4RVwAODiIGvHQKERAjxyMIB5QlVSTLYLZ0sW8hACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWPM5wNiV0UDUIBNkdoepTfMkA7thIECiyRtUAGq8fm2O4jIBgMBA1eAZ6Knx+gHaJR4QwdCMKBxEJRggFDGgQEREPjjAMBQUKIwIRDhBDC2QNDDEKoEkDoiMHDigICGkJBS2dDA6TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==\") 50% no-repeat}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer .page, [_nghost-%COMP%] .pdfPresentationMode .pdfViewer .spread{display:block}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer .page, [_nghost-%COMP%] .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}[_nghost-%COMP%] .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}[_nghost-%COMP%] .pdfPresentationMode:-webkit-full-screen .pdfViewer .page, [_nghost-%COMP%] .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}"]}),r.CSS_UNITS=96/72,r.BORDER_WIDTH=9,r})(),ge=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.\u0275\u0275defineNgModule({type:r}),r.\u0275inj=e.\u0275\u0275defineInjector({}),r})();var de=s(41777);const he=["ngx-masonry",""],be=["*"];let oe,q=(()=>{class r{constructor(t,a){this.platformId=t,this._element=a,this.updateLayout=!1,this.ordered=!1,this.layoutComplete=new e.EventEmitter,this.removeComplete=new e.EventEmitter,this.itemsLoaded=new e.EventEmitter,this.pendingItems=[]}ngOnInit(){(0,l.isPlatformBrowser)(this.platformId)&&void 0===oe&&(oe=s(66893)),this.options||(this.options={}),this.options.itemSelector||(this.options.itemSelector="[ngxMasonryItem], ngxMasonryItem"),this.options.transitionDuration="0s",(0,l.isPlatformBrowser)(this.platformId)&&(this.masonryInstance=new oe(this._element.nativeElement,this.options),this.masonryInstance.on("layoutComplete",t=>{this.layoutComplete.emit(t)}),this.masonryInstance.on("removeComplete",t=>{this.removeComplete.emit(t)}),this.masonryInstance.items=[])}ngOnChanges(t){t.updateLayout&&(t.updateLayout.firstChange||this.layout())}ngOnDestroy(){this.masonryInstance&&this.masonryInstance.destroy()}layout(){setTimeout(()=>{this.masonryInstance.layout()})}reloadItems(){setTimeout(()=>{this.masonryInstance.reloadItems()})}addPendingItem(t){this.pendingItems.push(t)}add(t){if(this.ordered){for(const[a,T]of this.pendingItems.entries())if(T){if(!T.images||0!==T.images.size)return;this.pendingItems[a]=void 0,this.itemLoaded(T),a+1===this.pendingItems.length&&(this.itemsLoaded.emit(this.pendingItems.length),this.pendingItems=[])}}else this.itemLoaded(t)}itemLoaded(t){(0,l.isPlatformBrowser)(this.platformId)&&(t.prepe
1nd?this.masonryInstance.prepended(t.element.nativeElement):this.masonryInstance.appended(t.element.nativeElement),1===this.masonryInstance.items.length&&this.masonryInstance.layout(),t.playAnimation(!0))}remove(t){(0,l.isPlatformBrowser)(this.platformId)&&(this.masonryInstance.remove(t),this.layout())}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275directiveInject(e.PLATFORM_ID),e.\u0275\u0275directiveInject(e.ElementRef))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["","ngx-masonry",""],["ngx-masonry"]],inputs:{updateLayout:"updateLayout",ordered:"ordered",options:"options"},outputs:{layoutComplete:"layoutComplete",removeComplete:"removeComplete",itemsLoaded:"itemsLoaded"},features:[e.\u0275\u0275NgOnChangesFeature],attrs:he,ngContentSelectors:be,decls:1,vars:0,template:function(t,a){1&t&&(e.\u0275\u0275projectionDef(),e.\u0275\u0275projection(0))},styles:["[_nghost-%COMP%] {\n\t\t\tdisplay: block;\n\t\t}"]}),r})(),G=(()=>{class r{constructor(t,a,T,ae){this.element=t,this.builder=a,this.parent=T,this.renderer=ae,this.prepend=!1,this.animations={show:[(0,de.oB)({opacity:0}),(0,de.jt)("400ms ease-in",(0,de.oB)({opacity:1}))],hide:[(0,de.oB)({opacity:"*"}),(0,de.jt)("400ms ease-in",(0,de.oB)({opacity:0}))]}}ngOnInit(){void 0!==this.parent.options.animations&&(this.animations=this.parent.options.animations),this.renderer.setStyle(this.element.nativeElement,"position","fixed"),this.renderer.setStyle(this.element.nativeElement,"right","-150vw"),this.parent.addPendingItem(this)}ngAfterViewInit(){const t=Array.from(this.element.nativeElement.getElementsByTagName("img"));if(this.images=new Set(t),0===t.length)setTimeout(()=>{this.parent.add(this)});else for(const a of t)a.hasAttribute("masonryLazy")?this.imageLoaded(a):(this.renderer.listen(a,"load",T=>{this.imageLoaded(a)}),this.renderer.listen(a,"error",T=>{this.imageLoaded(a)}))}ngOnDestroy(){this.images&&0===this.images.size&&this.element.nativeElement.parentNode&&(this.playAnimation(!1),this.parent.remove(this.element.nativeElement))}imageLoaded(t){this.images.delete(t),0===this.images.size&&this.parent.add(this)}playAnimation(t){const a=t?this.animations.show:this.animations.hide;a&&this.builder.build(a).create(this.element.nativeElement).play()}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(de._j),e.\u0275\u0275directiveInject((0,e.forwardRef)(()=>q)),e.\u0275\u0275directiveInject(e.Renderer2))},r.\u0275dir=e.\u0275\u0275defineDirective({type:r,selectors:[["","ngxMasonryItem",""],["ngxMasonryItem"]],inputs:{prepend:"prepend"}}),r})(),L=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.\u0275\u0275defineNgModule({type:r}),r.\u0275inj=e.\u0275\u0275defineInjector({imports:[[]]}),r})();var F=s(658),Z=s(18013),re=s(7081),ue=s(96410),ve=s(72986),ke=s(24850);let Ie=(()=>{class r{constructor(t,a){this.router=t,this.deliveryApi=a}canActivate(t){var a;const T=null!==(a=t.paramMap.get("orderId"))&&void 0!==a?a:"";return this.deliveryApi.getOrder(T).pipe((0,ve.q)(1),(0,ke.U)(ae=>!(null==ae?void 0:ae.isNativeUpload)||this.router.createUrlTree(["/order-dashboard",T,"delivery","native"])))}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275inject(Y.F0),e.\u0275\u0275inject(F.f3$))},r.\u0275prov=e.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var Oe=s(70655),Ee=s(48966),le=(s(50747),s(44224)),pe=s(87168),ne=s(87545),ce=s(24254),ie=s(67656),fe=s(255),Se=s(87238),Te=s(1297),Re=s(34467),me=s(66809),Ne=s(72751),se=s(47465);let we=(()=>{class r{transform(t){return(0,Oe.mG)(this,void 0,void 0,function*(){try{return se.toDataURL(t)}catch(a){return console.error("Error generating QR code:",a),""}})}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275pipe=e.\u0275\u0275definePipe({name:"qrCode",type:r,pure:!0}),r})();function _e(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",5)(1,"h3",6),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",7)(5,"div",8)(6,"div",9),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"button",10),e.\u0275\u0275element(9,"i",11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"div",8)(11,"div",9),e.\u0275\u0275text(12),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(13,"button",10),e.\u0275\u0275element(14,"i",11),e.\u0275\u0275elementEnd()()()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,5,"PHOTOS")),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",t.downloadLabels.large," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("matDialogClose",t.downloadTier.Original),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",t.downloadLabels.small," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("matDialogClose",t.downloadTier.Medium)}}function Pe(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",5)(1,"h3",6),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",7)(5,"div",8)(6,"div",9),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"button",10),e.\u0275\u0275element(10,"i",11),e.\u0275\u0275elementEnd()()()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,3,"FLOOR_PLANS")),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(8,5,"FLOOR_PLANS")),e.\u0275\u0275advance(2),e.\u0275\u0275property("matDialogClose",t.floorPlansDownload)}}function ze(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",5)(1,"h3",6),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",7)(5,"div",8)(6,"div",9),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"button",10),e.\u0275\u0275element(10,"i",11),e.\u0275\u0275elementEnd()()()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,3,"PANORAMA")),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(8,5,"PANORAMA")),e.\u0275\u0275advance(2),e.\u0275\u0275property("matDialogClose",t.panoramasDownload)}}function Le(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",5)(1,"h3",6),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",7)(5,"div",8)(6,"div",9),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"button",10),e.\u0275\u0275element(10,"i",11),e.\u0275\u0275elementEnd()()()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,3,"FILES")),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(8,5,"FILES")),e.\u0275\u0275advance(2),e.\u0275\u0275property("matDialogClose",t.filesDownload)}}function Ue(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"a",17),e.\u0275\u0275element(1,"i",11),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("href",t.downloadUrl,e.\u0275\u0275sanitizeUrl)}}function Ye(r,n){1&r&&(e.\u0275\u0275elementStart(0,"span",18),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275element(2,"i",11),e.\u0275\u0275elementEnd()),2&r&&e.\u0275\u0275property("matTooltip",e.\u0275\u0275pipeBind1(1,1,"VIDEO_DOWNLOAD_PREPARING"))}function je(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",8)(1,"div",9),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,Ue,2,1,"a",13),e.\u0275\u0275template(4,Ye,3,3,"span",14),e.\u0275\u0275elementStart(5,"a",15),e.\u0275\u0275element(6,"i",16),e.\u0275\u0275elementEnd()()),2&r){const t=n.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.name),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.downloadUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.preparing),e.\u0275\u0275advance(1),e.\u0275\u0275property("href",t.navigationUrl,e.\u0275\u0275sanitizeUrl)}}function Xe(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",5)(1,"h3",6),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",7),e.\u0275\u0275template(5,je,7,4,"div",12),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,3,"VIDEO")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.data.videos)("ngForTrackBy",t.trackByVideoId)}}function Ze(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"a",22),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("href","/admin/property-dashboard/"+t.data.orderId+"/overview",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,2,"CUSTOMIZE_WEBSITE")," ")}}function ot(r,n){if(1&r&&e.\u0275\u0275element(0,"ui-download-by-link",25),2&r){const t=n.ngIf,a=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("url",t)("fileName",a.name)("hint","Download QR code")}}function st(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",8)(1,"div",9),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"ui-copy-to-cl
1ipboard",23),e.\u0275\u0275template(4,ot,1,3,"ui-download-by-link",24),e.\u0275\u0275pipe(5,"async"),e.\u0275\u0275pipe(6,"qrCode"),e.\u0275\u0275elementStart(7,"a",15),e.\u0275\u0275element(8,"i",16),e.\u0275\u0275elementEnd()()),2&r){const t=n.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.name),e.\u0275\u0275advance(1),e.\u0275\u0275property("value",t.url),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(5,4,e.\u0275\u0275pipeBind1(6,6,t.url))),e.\u0275\u0275advance(3),e.\u0275\u0275property("href",t.url,e.\u0275\u0275sanitizeUrl)}}function ht(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",5)(1,"div",19)(2,"h3",20),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,Ze,3,4,"a",21),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",7),e.\u0275\u0275template(7,st,9,8,"div",12),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,4,"WEBSITE")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.data.isWebsiteEnabled),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.data.websiteLinks)("ngForTrackBy",t.trackByWebsiteLinkUrl)}}function _t(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",8)(1,"div",9),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(3,"ui-copy-to-clipboard",23),e.\u0275\u0275elementStart(4,"a",15),e.\u0275\u0275element(5,"i",16),e.\u0275\u0275elementEnd()()),2&r){const t=n.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.name),e.\u0275\u0275advance(1),e.\u0275\u0275property("value",t.url),e.\u0275\u0275advance(1),e.\u0275\u0275property("href",t.url,e.\u0275\u0275sanitizeUrl)}}function gt(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",5)(1,"h3",6),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",7),e.\u0275\u0275template(5,_t,6,3,"div",12),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,3,"3D_TOUR")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.data.tours)("ngForTrackBy",t.trackByTourId)}}function Nt(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"button",26),e.\u0275\u0275text(1," Download All "),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("matDialogClose",t.allDownload)}}const Rt="floorPlans",zt="panoramas";let Vt=(()=>{class r{constructor(t,a){var T;this.data=t,this.appConfigService=a,this.downloadLabels=null!==(T=this.appConfigService.deliveryLabelOverride)&&void 0!==T?T:{small:`${this.appConfigService.photo
1Format} (Small)`,large:"Full-Size (Large)"},this.downloadTier=F.w$1,this.floorPlansDownload=Rt,this.panoramasDownload=zt,this.filesDownload="files",this.allDownload="all"}trackByVideoId(t,a){return a.id}trackByTourId(t,a){return a.id}trackByWebsiteLinkUrl(t,a){return a.url}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275directiveInject(Ee.WI),e.\u0275\u0275directiveInject(F._ZM))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["tn-native-downloads-dialog"]],decls:16,vars:14,consts:[[1,"flex","flex-col","space-y-8","pb-16"],["class","links-group max-w-full",4,"ngIf"],[1,"dialog-actions-divider","justify-end"],["uiBtnSize","medium","uiBtnTheme","main","themeMode","secondary","matDialogClose","",1,"ml-auto"],["uiBtnSize","medium","uiBtnTheme","main","themeMode","primary",3,"matDialogClose",4,"ngIf"],[1,"links-group","max-w-full"],[1,"mb-min"],[1,"links-list"],[1,"link-item"],[1,"truncate","px-8","mr-auto"],[1,"download-trigger",3,"matDialogClose"],["uiIcon","download"],["class","link-item",4,"ngFor","ngForOf","ngForTrackBy"],["class","download-trigger",3,"href",4,"ngIf"],["class","download-trigger preparing","matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["target","_blank",1,"download-trigger",3,"href"],["uiIcon","open_in_new"],[1,"download-trigger",3,"href"],["matTooltipPosition","above",1,"download-trigger","preparing",3,"matTooltip"],[1,"flex","mb-min"],[1,"mr-auto"],["class","customize-link","target","_blank",3,"href",4,"ngIf"],["target","_blank",1,"customize-link",3,"href"],[1,"download-trigger",3,"value"],["class","download-trigger",3,"url","fileName","hint",4,"ngIf"],[1,"download-trigger",3,"url","fileName","hint"],["uiBtnSize","medium","uiBtnTheme","main","themeMode","primary",3,"matDialogClose"]],template:function(t,a){1&t&&(e.\u0275\u0275elementStart(0,"ui-dialog-header"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"mat-dialog-content",0),e.\u0275\u0275template(4,_e,15,7,"div",1),e.\u0275\u0275template(5,Pe,11,7,"div",1),e.\u0275\u0275template(6,ze,11,7,"div",1),e.\u0275\u0275template(7,Le,11,7,"div",1),e.\u0275\u0275template(8,Xe,6,5,"div",1),e.\u0275\u0275template(9,ht,8,6,"div",1),e.\u0275\u0275template(10,gt,6,5,"div",1),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"mat-dialog-actions",2)(12,"button",3),e.\u0275\u0275text(13),e.\u0275\u0275pipe(14,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(15,Nt,2,1,"button",4),e.\u0275\u0275elementEnd()),2&t&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,10,"DOWNLOAD_FILES")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",a.data.hasPhotos),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.data.hasFloorPlans),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.data.hasPanoramas),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.data.hasFiles),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.data.videos.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.data.websiteLinks.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.data.tours.length),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(14,12,"CANCEL")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.data.hasPhotos||a.data.hasFloorPlans||a.data.hasPanoramas||a.data.hasFiles))},directives:[ie.A,Ee.xY,l.NgIf,Ee.ZT,fe.a,l.NgForOf,Se.gM,Te.F,Re.K,Ee.H8,me.s,Ne.V],pipes:[U.X$,l.AsyncPipe,we],styles:[".links-group[_ngcontent-%COMP%]{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1));padding:.5rem}.links-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.customize-link[_ngcontent-%COMP%]{font-size:.75rem;font-weight:600}.link-item[_ngcontent-%COMP%]{display:flex;align-items:center;border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.25rem}.download-trigger[_ngcontent-%COMP%]{display:flex;align-items:center;border-width:0px;background-color:transparent;padding:.25rem;--tw-text-opacity: 1;color:rgb(175 175 175 / var(--tw-text-opacity, 1))}.download-trigger[_ngcontent-%COMP%]:hover{color:var(--brand-50, #228BE6)}.download-trigger.preparing[_ngcontent-%COMP%]{cursor:not-allowed}.download-trigger.preparing[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(175 175 175 / var(--tw-text-opacity, 1))}"],changeDetection:0}),r})();var wt=s(50026),pt=s(2994);let jt=(()=>
1{class r{constructor(){this.modules=null}load(){return(0,Oe.mG)(this,void 0,void 0,function*(){if(this.modules)return this.modules;const[t,a]=yield Promise.all([s.e(6217).then(s.bind(s,76217)),Promise.all([s.e(6217),s.e(4781)]).then(s.bind(s,16618))]);return this.modules={Viewer:t.Viewer,GyroscopePlugin:a.GyroscopePlugin},this.modules})}createViewer(t){if(!this.modules)throw new Error("PhotoSphereViewerService: call load() before createViewer()");return new this.modules.Viewer(t)}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=e.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var en=s(20773);const rn=["panoContainer"];function xe(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"span",16),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(2,2,t.currentIndex$)+1," / ",e.\u0275\u0275pipeBind1(3,4,t.total$)," ")}}function We(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",13)(1,"span",14),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,xe,4,6,"span",15),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275elementEnd()),2&r){const t=n.ngIf,a=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("title",t.name),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t.name),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(4,3,a.hasMultiple$))}}function Ae(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",17),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().toggleGyro()}),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275element(4,"i",18),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275classProp("pano-btn--active",e.\u0275\u0275pipeBind1(1,5,t.gyroActive$)),e.\u0275\u0275attribute("aria-pressed",e.\u0275\u0275pipeBind1(2,7,t.gyroActive$))("aria-label",e.\u0275\u0275pipeBind1(3,9,"PANORAMA_GYRO_TOGGLE")),e.\u0275\u0275advance(4),e.\u0275\u0275property("size",24)}}function Fe(r,n){1&r&&(e.\u0275\u0275elementStart(0,"div",19),e.\u0275\u0275element(1,"mat-spinner",20),e.\u0275\u0275elementEnd())}function et(r,n){1&r&&(e.\u0275\u0275elementStart(0,"div",19)(1,"div",21),e.\u0275\u0275element(2,"i",22),e.\u0275\u0275elementStart(3,"p",23),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()()()),2&r&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("size",36),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,2,"PANORAMA_VIEWER_ERROR")))}function rt(r,n){1&r&&(e.\u0275\u0275elementStart(0,"a",27),e.\u0275\u0275element(1,"i",28),e.\u0275\u0275elementStart(2,"span"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()),2&r&&(e.\u0275\u0275property("href",n.ngIf,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("size",16),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,3,"DOWNLOAD_FULL_RES")))}function ct(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"img",25),e.\u0275\u0275elementStart(2,"p",23),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,rt,5,5,"a",26),e.\u0275\u0275elementContainerEnd()),2&r){const t=n.ngIf,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("src",t.webRes.url,e.\u0275\u0275sanitizeUrl)("alt",t.name),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,4,"PANORAMA_VIEWER_ERROR")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.data.isDownloadAvailable&&(null==t.fullRes?null:t.fullRes.url))}}function ut(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",19)(1,"div",21),e.\u0275\u0275template(2,ct,6,6,"ng-container",24),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(3,1,t.currentImage$))}}function yt(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",29),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().onPrev()}),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275element(2,"i",30),e.\u0275\u0275elementEnd()}2&r&&(e.\u0275\u0275attribute("aria-label",e.\u0275\u0275pipeBind1(1,2,"PREVIOUS")),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",28))}function bt(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",31),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().onNext()}),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275element(2,"i",32),e.\u0275\u0275elementEnd()}2&r&&(e.\u0275\u0275attribute("aria-label",e.\u0275\u0275pipeBind1(1,2,"NEXT")),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",28))}let yr=(()=>
1{class r extends wt.m1{constructor(t,a,T,ae){var Ce,Be,Ge;super({currentIndex:Math.min(Math.max(null!==(Ce=t.startIndex)&&void 0!==Ce?Ce:0,0),Math.max((null!==(Ge=null===(Be=t.images)||void 0===Be?void 0:Be.length)&&void 0!==Ge?Ge:1)-1,0)),loading:!0,loadError:!1,initError:!1,gyroSupported:!1,gyroActive:!1,isMobile:!1}),this.data=t,this.dialogRef=a,this.psvService=T,this.currentIndex$=this.select(qe=>qe.currentIndex),this.loading$=this.select(qe=>qe.loading),this.loadError$=this.select(qe=>qe.loadError),this.initError$=this.select(qe=>qe.initError),this.gyroActive$=this.select(qe=>qe.gyroActive),this.currentImage$=this.select(this.currentIndex$,qe=>this.data.images[qe]),this.hasMultiple$=this.select(()=>this.data.images.length>1),this.total$=this.select(()=>this.data.images.length),this.showGyroToggle$=this.select(this.select(qe=>qe.isMobile),this.select(qe=>qe.gyroSupported),(qe,nt)=>qe&&nt),this.viewer=null,this.gyroPluginCtor=null,this.touchStartX=0,this.touchStartY=0,this.touchStartTime=0,this.watchMobile=this.effect(qe=>qe.pipe((0,pt.b)(nt=>this.patchState({isMobile:nt})))),this.watchMobile(ae)}ngAfterViewInit(){return(0,Oe.mG)(this,void 0,void 0,function*(){yield this.initViewer()})}ngOnDestroy(){super.ngOnDestroy(),this.destroyViewer()}onClose(){this.dialogRef.close()}onPrev(){this.data.images.length<=1||(this.patchState(t=>({currentIndex:(t.currentIndex-1+this.data.images.length)%this.data.images.length})),this.swapPanorama())}onNext(){this.data.images.length<=1||(this.patchState(t=>({currentIndex:(t.currentIndex+1)%this.data.images.length})),this.swapPanorama())}toggleGyro(){return(0,Oe.mG)(this,void 0,void 0,function*(){if(!this.viewer||!this.gyroPluginCtor)return;const t=this.viewer.getPlugin(this.gyroPluginCtor);if(t)try{t.isEnabled()?t.stop():yield t.start()}catch(a){console.warn("[DEV-984] Gyroscope toggle failed",a)}})}onTouchStart(t){if(this.data.images.length<=1||1!==t.touches.length)return void(this.touchStartTime=0);const a=t.touches[0];this.touchStartX=a.clientX,this.touchStartY=a.clientY,this.touchStartTime=Date.now()}onTouchEnd(t){if(this.data.images.length<=1||!this.touchStartTime)return;const a=t.changedTouches[0];if(!a)return;const T=a.clientX-this.touchStartX,ae=a.clientY-this.touchStartY,Ce=Date.now()-this.touchStartTime;this.touchStartTime=0,!(Ce>500||Math.abs(ae)>60||Math.abs(T)<80)&&(T<0?this.onNext():this.onPrev())}initViewer(){var t;return(0,Oe.mG)(this,void 0,void 0,function*(){try{const{GyroscopePlugin:a}=yield this.psvService.load();this.gyroPluginCtor=a;const T=null===(t=this.panoContainer)||void 0===t?void 0:t.nativeElement,ae=this.data.images[this.get().currentIndex],Ce=this.getPanoramaUrl(ae);if(!T||!Ce)return void this.patchState({initError:!0,loading:!1});this.viewer=this.psvService.createViewer({container:T,panorama:Ce,plugins:[a],navbar:"zoom move fullscreen",defaultZoomLvl:30,loadingTxt:""}),this.viewer.addEventListener("ready",()=>{this.patchState({loading:!1})}),this.viewer.addEventListener("panorama-loaded",()=>{this.patchState({loading:!1})}),this.viewer.addEventListener("panorama-error",Be=>{console.error("[DEV-984] PSV panorama-error",Be),this.patchState({initError:!0,loading:!1})}),yield this.initGyroscope(a)}catch(a){console.error("[DEV-984] Failed to load Photo Sphere Viewer",a),this.patchState({loadError:!0,loading:!1})}})}initGyroscope(t){return(0,Oe.mG)(this,void 0,void 0,function*(){if(!this.viewer)return;const a=this.viewer.getPlugin(t);if(a){try{const T=yield a.isSupported();this.patchState({gyroSupported:T})}catch(T){this.patchState({gyroSupported:!1})}a.addEventListener("gyroscope-updated",T=>{this.patchState({gyroActive:T.gyroscopeEnabled})})}})}swapPanorama(){const t=this.data.images[this.get().currentIndex],a=this.getPanoramaUrl(t);!this.viewer||!a||(this.patchState({loading:!0,initError:!1}),this.viewer.setPanorama(a).then(()=>{this.patchState({loading:!1})}).catch(T=>{console.error("[DEV-984] PSV setPanorama failed",T),this.patchState({initError:!0,loading:!1})}))}getPanoramaUrl(t){var a,T;return(null===(a=null==t?void 0:t.fullRes)||void 0===a?void 0:a.url)||(null===(T=null==t?void 0:t.webRes)||void 0===T?void 0:T.url)}
1destroyViewer(){if(this.viewer){try{this.viewer.destroy()}catch(t){console.warn("[DEV-984] Error destroying PSV viewer",t)}this.viewer=null}}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275directiveInject(Ee.WI),e.\u0275\u0275directiveInject(Ee.so),e.\u0275\u0275directiveInject(jt),e.\u0275\u0275directiveInject(ce.IBl))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["tn-panorama-viewer-modal"]],viewQuery:function(t,a){if(1&t&&e.\u0275\u0275viewQuery(rn,5),2&t){let T;e.\u0275\u0275queryRefresh(T=e.\u0275\u0275loadQuery())&&(a.panoContainer=T.first)}},hostBindings:function(t,a){1&t&&e.\u0275\u0275listener("touchstart",function(ae){return a.onTouchStart(ae)})("touchend",function(ae){return a.onTouchEnd(ae)})},features:[e.\u0275\u0275InheritDefinitionFeature],decls:26,vars:31,consts:[[1,"pano-modal"],[1,"pano-topbar"],["class","pano-topbar__title",4,"ngIf"],[1,"pano-topbar__actions"],["type","button","class","pano-btn",3,"pano-btn--active","click",4,"ngIf"],["type","button",1,"pano-btn","pano-btn--ghost",3,"click"],["uiIcon","close",3,"size"],[1,"pano-stage"],[1,"pano-stage__container"],["panoContainer",""],["class","pano-overlay",4,"ngIf"],["type","button","class","pano-btn pano-nav pano-nav--prev",3,"click",4,"ngIf"],["type","button","class","pano-btn pano-nav pano-nav--next",3,"click",4,"ngIf"],[1,"pano-topbar__title"],[1,"pano-topbar__name",3,"title"],["class","pano-topbar__counter",4,"ngIf"],[1,"pano-topbar__counter"],["type","button",1,"pano-btn",3,"click"],["uiIcon","screen_rotation",3,"size"],[1,"pano-overlay"],["diameter","40","strokeWidth","3","color","accent"],[1,"pano-error"],["uiIcon","error_outline",3,"size"],[1,"pano-error__text"],[4,"ngIf"],[1,"pano-error__preview",3,"src","alt"],["class","pano-download","target","_blank","rel","noopener",3,"href",4,"ngIf"],["target","_blank","rel","noopener",1,"pano-download",3,"href"],["uiIcon","download",3,"size"],["type","button",1,"pano-btn","pano-nav","pano-nav--prev",3,"click"],["uiIcon","chevron_left",3,"size"],["type","button",1,"pano-btn","pano-nav","pano-nav--next",3,"click"],["uiIcon","chevron_right",3,"size"]],template:function(t,a){1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275template(2,We,5,5,"div",2),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275elementStart(4,"div",3),e.\u0275\u0275template(5,Ae,5,11,"button",4),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275elementStart(7,"button",5),e.\u0275\u0275listener("click",function(){return a.onClose()}),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275element(9,"i",6),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(10,"div",7),e.\u0275\u0275element(11,"div",8,9),e.\u0275\u0275template(13,Fe,2,0,"div",10),e.\u0275\u0275pipe(14,"async"),e.\u0275\u0275pipe(15,"async"),e.\u0275\u0275pipe(16,"async"),e.\u0275\u0275template(17,et,6,4,"div",10),e.\u0275\u0275pipe(18,"async"),e.\u0275\u0275template(19,ut,4,3,"div",10),e.\u0275\u0275pipe(20,"async"),e.\u0275\u0275pipe(21,"async"),e.\u0275\u0275template(22,yt,3,4,"button",11),e.\u0275\u0275pipe(23,"async"),e.\u0275\u0275template(24,bt,3,4,"button",12),e.\u0275\u0275pipe(25,"async"),e.\u0275\u0275elementEnd()()),2&t&&(e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(3,9,a.currentImage$)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(6,11,a.showGyroToggle$)),e.\u0275\u0275advance(2),e.\u0275\u0275attribute("aria-label",e.\u0275\u0275pipeBind1(8,13,"CLOSE")),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",24),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(14,15,a.loading$)&&!1===e.\u0275\u0275pipeBind1(15,17,a.loadError$)&&!1===e.\u0275\u0275pipeBind1(16,19,a.initError$)),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(18,21,a.loadError$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(20,23,a.initError$)&&!1===e.\u0275\u0275pipeBind1(21,25,a.loadError$)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(23,27,a.hasMultiple$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(25,29,a.hasMultiple$)))},directives:[l.NgIf,fe.a,en.Ou],pipes:[l.AsyncPipe,U.X$],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%}.pano-modal[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;flex-direction:column;--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.pano-topbar[_ngcontent-%COMP%]{z-index:10;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:linear-gradient(to bottom,rgba(0,0,0,.7),transparent)}.pano-topbar__title[_ngcontent-%COMP%]{display:flex;min-width:0;align-items:baseline;gap:.75rem}.pano-topbar__name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;font-weight:500;max-width:60vw}.pano-topbar__counter[_ngcontent-%COMP%]{flex-shrink:0;font-size:.8125rem;color:#ffffff80}.pano-topbar__actions[_ngcontent-%COMP%]{display:flex;flex-shrink:0;align-items:center;gap:.25rem}.pano-stage[_ngcontent-%COMP%]{position:relative;min-height:0;flex:1 1 0%;overflow:hidden}.pano-stage__container[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%}.pano-btn[_ngcontent-%COMP%]{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;border-radius:9999px;border-width:0px;padding:0;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));width:36px;height:36px;background:rgba(255,255,255,.15);transition:background .15s ease,transform .1s ease}.pano-btn[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.3)}.pano-btn[_ngcontent-%COMP%]:active{transform:scale(.92)}.pano-btn--active[_ngcontent-%COMP%]{background:rgba(255,255,255,.35)}.pano-btn--active[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.45)}.pano-btn--ghost[_ngcontent-%COMP%]{background-color:transparent}.pano-btn--ghost[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.12)}.pano-nav[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;z-index:4}.pano-nav--prev[_ngcontent-%COMP%]{left:.75rem}.pano-nav--next[_ngcontent-%COMP%]{right:.75rem}@media (min-width: 640px){.pano-nav--prev[_ngcontent-%COMP%]{left:.5rem}.pano-nav--next[_ngcontent-%COMP%]{right:.5rem}}.pano-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.6);pointer-events:none}.pano-overlay[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:auto}.pano-error[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;text-align:center;max-width:360px}.pano-error__preview[_ngcontent-%COMP%]{max-width:100%;border-radius:.5rem;object-fit:cover;max-height:180px}.pano-error__text[_ngcontent-%COMP%]{margin-top:.75rem;font-size:.875rem;color:#ffffffb3}.pano-download[_ngcontent-%COMP%]{margin-top:1rem;display:inline-flex;align-items:center;gap:.375rem;border-radius:.25rem;padding:.5rem 1rem;font-size:.8125rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));-webkit-text-decoration-line:none;text-decoration-line:none;background:rgba(255,255,255,.15);transition:background .15s ease}.pano-download[_ngcontent-%COMP%]:hover{background:rgba(255,255,255,.25)}"],changeDetection:0}),r})(),Xn=(()=>
1{class r{constructor(t){this.dialog=t}open(t){this.dialog.open(yr,{panelClass:["app-v2","panorama-modal-panel"],maxWidth:"100vw",maxHeight:"100vh",width:"100vw",height:"100vh",autoFocus:!1,restoreFocus:!0,data:t})}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275inject(Ee.uw))},r.\u0275prov=e.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var Yn=s(41961),Ht=s(98723),pn=s(68896),an=s(36053),_r=s(21406),qn=s(44290),Cn=s(27221),vn=s(40537),gn=s(31307),An=s(79629),qt=s(49343),Tt=s(98798);const Qn=3e4;function on(r){return!!r.lockFilesUntilPaid&&r.paymentStatus!==Tt.bG.Paid&&r.paymentStatus!==Tt.bG.PromisedPayment}const wi={orderId:"",order:null,invoice:null,isPreview:!1,invoiceLinkLoading:!1,images:[],videos:[],floorPlans:[],panoramas:[],tours:[],files:[],flyers:[],websiteLinks:[],videoPlaybackDomain:"",loading:!0,error:null,exactOrder:!0,selectionMode:!1,selection:new Set,reordering:!1,reorderMode:!1,imagesInRow:6,draftImages:[],orderChanged:!1};let Kn=(()=>{class r extends wt.m1{constructor(t,a,T,ae,Ce,Be,Ge,qe,nt,it,Je,at){super(wi),this.translate=t,this.nativeDeliveryService=a,this.photosService=T,this.nativeDeliveryDownloadService=ae,this.deliveryApi=Ce,this.accountingInvoiceLinkService=Be,this.propertyFeatureDomainsFacade=Ge,this.propertiesStoreRepository=qe,this.appConfigService=nt,this.spwSyncOfferService=it,this.deliveryFlyersService=Je,this.document=at,this.images$=this.select(Me=>Me.images),this.orderId$=this.select(Me=>Me.orderId),this.selection$=this.select(Me=>Me.selection),this.draftImages$=this.select(Me=>Me.draftImages),this.floorPlans$=this.select(Me=>Me.floorPlans),this.panoramas$=this.select(Me=>Me.panoramas),this.files$=this.select(Me=>Me.files),this.isPreview$=this.select(Me=>Me.isPreview),this.paymentLocked$=this.select(({order:Me})=>Me?on(Me):null),this.coverImageUrl$=this.images$.pipe((0,ke.U)(([Me])=>{var $e,Qe;return(null===($e=null==Me?void 0:Me.fullRes)||void 0===$e?void 0:$e.url)||(null===(Qe=null==Me?void 0:Me.webRes)||void 0===Qe?void 0:Qe.url)||""})),this.order$=this.select(Me=>Me.order),this.invoice$=this.select(Me=>Me.invoice),this.invoiceLinkLoading$=this.select(Me=>Me.invoiceLinkLoading),this.isDownloadAvailable$=this.select(({order:Me,isPreview:$e})=>this.isOrderDownloadAvailable(Me,$e)),this.paymentRequired$=this.select(({order:Me,isPreview:$e})=>!$e&&!!Me&&on(Me)),this.anchors$=this.select(Me=>{var $e;const Qe={};return Me.images.length&&(Qe["#photosEl"]=this.translate.instant("PHOTOS")),Me.videos.length&&(Qe["#videoEl"]=this.translate.instant("VIDEO")),Me.floorPlans.length&&(Qe["#floorPlanEl"]=this.translate.instant("FLOOR_PLANS")),Me.panoramas.length&&(Qe["#panoEl"]=this.translate.instant("PANORAMA")),Me.websiteLinks.length&&(Qe["#websiteEl"]=this.translate.instant("WEBSITE")),Me.tours.length&&(Qe["#tourEl"]=this.translate.instant("3D_TOUR")),this.isFilesSectionVisible(Me)&&(Qe["#filesEl"]=this.translate.instant("FILES")),(null===($e=Me.order)||void 0===$e?void 0:$e.isFlyerBuilderEnabled)&&!Me.isPreview&&(Qe["#flyersEl"]=this.translate.instant("MARKETING_MATERIAL")),Qe},{debounce:!0}),this.vm$=this.select(Me=>{const $e=Me.videos.map(Qe=>Object.assign(Object.assign({},Qe),{shareUrl:this.toVideoShareUrl(Qe,Me.videoPlaybackDomain)}));return{order:Me.order,isDownloadAvailable:this.isOrderDownloadAvailable(Me.order,Me.isPreview),isFilesSectionVisible:this.isFilesSectionVisible(Me),images:Me.images,videos:$e,uploadedVideos:$e.filter(Qe=>!!Qe.playbackId),floorPlans:Me.floorPlans,panoramas:Me.panoramas,tours:Me.tours,files:Me.files,flyers:Me.flyers,storyFlyers:Me.flyers.filter(Qe=>Qe.type===Tt.ah.STORY),postFlyers:Me.flyers.filter(Qe=>Qe.type===Tt.ah.POST),brochureFlyers:Me.flyers.filter(Qe=>Qe.type===Tt.ah.BROCHURE),websiteLinks:Me.websiteLinks,exactOrder:Me.exactOrder,selectionMode:Me.selectionMode,imagesSelection:Me.selection,hasSelection:Me.selection.size>0,reordering:Me.reordering,reorderMode:Me.reorderMode,imagesInRow:Me.imagesInRow,draftImages:Me.draftImages,orderChanged:Me.orderChanged}},{debounce:!0}),this.setOrderId=this.updater((Me,$e)=>Object.assign(Object.assign({},Me),{orderId:$e})),this.setIsPreview=this.updater((Me,$e)=>Object.assign(Object.assign({},Me),{isPreview:$e})),this.setExactOrder=this.updater((Me,$e)=>Object.assign(Object.assign({},Me),{exactOrder:$e})),this.enterSelectionMode=this.updater(Me=>Object.assign(Object.assign({},Me),{selectionMode:!0})),this.cancelSelection=this.updater(Me=>Object.assign(Object.assign({},Me),{selectionMode:!1,selection:new Set})),this.toggleSelected=this.updater((Me,$e)=>{const Qe=new Set(Me.selection);return Qe.has($e)?Qe.delete($e):Qe.add($e),Object.assign(Object.assign({},Me),{selection:Qe})}),this.selectAll=this.updater(Me=>Object.assign(Object.assign({},Me),{selection:new Set(Me.images.map($e=>$e.id))}
1)),this.deselectAll=this.updater(Me=>Object.assign(Object.assign({},Me),{selection:new Set})),this.enterReorderMode=this.updater(Me=>Object.assign(Object.assign({},Me),{reorderMode:!0,orderChanged:!1,draftImages:[...Me.images]})),this.setDraftImages=this.updater((Me,$e)=>Object.assign(Object.assign({},Me),{draftImages:$e,orderChanged:!0})),this.setImagesInRow=this.updater((Me,$e)=>$e?Object.assign(Object.assign({},Me),{imagesInRow:$e}):Me),this.closeReorder=this.updater(Me=>Object.assign(Object.assign({},Me),{reorderMode:!1,orderChanged:!1,draftImages:[...Me.images]})),this.loadVideoPlaybackDomain=this.effect(Me=>Me.pipe((0,pt.b)(()=>this.propertyFeatureDomainsFacade.getAccount(this.appConfigService.projectId)),(0,ne.w)(()=>this.propertyFeatureDomainsFacade.defaultDomain$.pipe((0,y.h)($e=>!!$e),(0,ve.q)(1),(0,wt._b)($e=>this.patchState({videoPlaybackDomain:$e}),$e=>console.error("[DeliveryV2Store] Failed to load playback domain",$e)))))),this.loadOrder=this.effect(Me=>Me.pipe((0,ne.w)($e=>this.deliveryApi.getOrder($e).pipe((0,wt._b)(Qe=>this.patchState({order:null!=Qe?Qe:null}),Qe=>console.error("[DeliveryV2Store] Failed to load order",Qe)))))),this.loadInvoice=this.effect(Me=>Me.pipe((0,ne.w)($e=>this.deliveryApi.getInvoice($e).pipe((0,wt._b)(Qe=>this.patchState({invoice:null!=Qe?Qe:null}),Qe=>console.error("[DeliveryV2Store] Failed to load invoice",Qe)))))),this.refetchOnTabVisible=this.effect(()=>(0,_.R)(this.document,"visibilitychange").pipe((0,y.h)(()=>"visible"===this.document.visibilityState),(0,pe.M)(this.orderId$),(0,pt.b)(([,Me])=>this.loadInvoice(Me)))),this.pollWhileLocked=this.effect(()=>this.paymentLocked$.pipe((0,y.h)(Me=>!0===Me),(0,ve.q)(1),(0,pe.M)(this.orderId$),(0,ne.w)(([,Me])=>(0,Yn.z)((0,Ht.H)(5e3,5e3).pipe((0,ve.q)(24)),(0,Ht.H)(Qn,Qn)).pipe((0,_r.b)(()=>this.deliveryApi.getOrder(Me).pipe((0,wt._b)($e=>this.patchState({order:null!=$e?$e:null}),$e=>console.error("[DeliveryV2Store] Failed to poll the order",$e)))),(0,qn.o)($e=>!!$e&&on($e)),(0,E.R)((0,Ht.H)(6e5)),(0,Cn.K)($e=>(console.error("[DeliveryV2Store] Order poll failed",$e),pn.E)))))),this.openAccountingInvoice=this.effect(Me=>Me.pipe((0,pt.b)(()=>this.patchState({invoiceLinkLoading:!0})),(0,ne.w)($e=>(0,P.D)(this.accountingInvoiceLinkService.openAccountingInvoice($e)).pipe((0,Cn.K)(Qe=>(console.error("[DeliveryV2Store] Failed to open accounting invoice",Qe),pn.E)),(0,vn.x)(()=>this.patchState({invoiceLinkLoading:!1})))))),this.load=this.effect(Me=>Me.pipe((0,pt.b)($e=>{this.setOrderId($e),this.patchState({loading:!0,error:null})}),(0,pe.M)(this.isPreview$),(0,ne.w)(([$e,Qe])=>this.fetchDelivery($e,Qe).pipe((0,vn.x)(()=>this.patchState({loading:!1})))))),this.reloadOnPaymentLockChange=this.effect(()=>this.paymentLocked$.pipe((0,y.h)(Me=>null!==Me),(0,gn.T)(1),(0,pe.M)(this.orderId$,this.isPreview$),(0,ne.w)(([Me,$e,Qe])=>Me?(this.load($e),pn.E):this.refetchUntilUnclamped($e,Qe)))),this.loadWebsiteLinks=this.effect(Me=>Me.pipe((0,y.h)($e=>!!(null==$e?void 0:$e.isWebsiteEnabled)),(0,ne.w)($e=>{var Qe;const dt=(null!==(Qe=$e.deliverablesLinks)&&void 0!==Qe?Qe:[]).filter(Et=>"Website"===Et.type).map(Et=>({name:Et.name,url:Et.url}));return dt.length?(this.patchState({websiteLinks:dt}),pn.E):this.composeSpwWebsiteLinks($e.id)}))),this.loadFlyers=this.effect(Me=>Me.pipe((0,y.h)($e=>!!$e.isFlyerBuilderEnabled),(0,ne.w)($e=>this.deliveryFlyersService.list($e.id).pipe((0,wt._b)(Qe=>this.patchState({flyers:Qe}),Qe=>console.error("[DeliveryV2Store] Failed to load flyers",Qe)))))),this.download=this.effect(Me=>Me.pipe((0,pe.M)(this.orderId$),(0,pt.b)(([{ids:$e,tier:Qe},dt])=>{this.nativeDeliveryDownloadService.download(dt,"photos",$e,Qe)}))),this.downloadAllPhotos=this.effect(Me=>Me.pipe((0,pe.M)(this.orderId$,this.images$),(0,pt.b)(([$e,Qe,dt])=>{!dt.length||this.nativeDeliveryDownloadService.download(Qe,"photos",dt.map(Et=>Et.id),$e)}))),this.downloadFloorPlans=this.effect(Me=>Me.pipe((0,pe.M)(this.orderId$,this.floorPlans$),(0,pt.b)(([,$e,Qe])=>{this.nativeDeliveryDownloadService.download($e,"floorPlans",Qe.map(dt=>dt.id),F.w$1.Original)}))),this.downloadPanoramas=this.effect(Me=>Me.pipe((0,pe.M)(this.orderId$,this.panoramas$),(0,pt.b)(([,$e,Qe])=>{this.nativeDeliveryDownloadService.download($e,"panoramas",Qe.map(dt=>dt.id),F.w$1.Original)}))),this.downloadFile=this.effect(Me=>Me.pipe((0,pe.M)(this.orderId$),(0,pt.b)(([$e,Qe])=>{this.nativeDeliveryDownloadService.download(Qe,"files",[$e],F.w$1.Original)}))),this.downloadFiles=this.effect(Me=>Me.pipe((0,pe.M)(this.orderId$,this.files$),(0,pt.b)(([,$e,Qe])=>{this.nativeDeliveryDownloadService.download($e,"files",Qe.map(dt=>dt.id),F.w$1.Original)}))),this.downloadAll=this.effect(Me=>Me.pipe((0,pe.M)(this.orderId$,this.images$,this.floorPlans$,this.panoramas$,this.files$),(0,pt.b)(([,$e,Qe,dt,Et,gr])=>{const mr=[["photos",Qe],["floorPlans",dt],["panoramas",Et],["files",gr]].filter(([,mt])=>mt.length),St=mr.flatMap(([,mt])=>mt.map(Ft=>Ft.id));!St.length||this.nativeDeliveryDownloadService.download($e,mr.map(([mt])=>mt),St,F.w$1.Original)}))),this.downloadSelected=this.effect(Me=>Me.pipe((0,pe.M)(this.orderId$,this.selection$),(0,pt.b)(([,$e,Qe])=>{this.nativeDeliveryDownloadService.download($e,"photos",[...Qe],F.w$1.Original)}))),this.saveReorder=this.effect(Me=>Me.pipe((0,pt.b)(()=>this.patchState({reordering:!0,error:null,orderChanged:!1})),(0,pe.M)(this.orderId$,this.draftImages$),(0,ne.w)(([,$e,Qe])=>{const dt=Qe.map(Et=>Et.id);return this.photosService.reorder($e,dt).pipe((0,wt._b)(()=>
1{this.persistCoverImage($e,dt[0],Qe),this.load($e),this.spwSyncOfferService.notifyPhotosReordered()},Et=>this.patchState({error:Et})),(0,vn.x)(()=>this.patchState({reordering:!1})))}))),this.changeExactOrder=this.effect(Me=>Me.pipe((0,pt.b)($e=>this.setExactOrder($e)),(0,pe.M)(this.orderId$),(0,ne.w)(([$e,Qe])=>(0,P.D)(this.deliveryApi.updateDelivery(Qe,{adjustImagesDisplayOrder:!$e})).pipe((0,Cn.K)(dt=>(this.patchState({error:dt}),pn.E))))))}fetchDelivery(t,a){return this.nativeDeliveryService.get(t,a).pipe((0,wt._b)(({photos:T,videos:ae,floorPlans:Ce,panoramas:Be,tours:Ge,files:qe})=>{this.patchState({images:T.map((nt,it)=>this.toDeliveryImage(nt,it)),videos:null!=ae?ae:[],floorPlans:null!=Ce?Ce:[],panoramas:(null!=Be?Be:[]).map(nt=>this.toDeliveryPanorama(nt)),tours:null!=Ge?Ge:[],files:null!=qe?qe:[]})},T=>this.patchState({error:T})))}refetchUntilUnclamped(t,a){return(0,Ht.H)(0,3e3).pipe((0,ve.q)(4),(0,_r.b)(()=>this.fetchDelivery(t,a)),(0,qn.o)(T=>this.isClampedDelivery(T)))}isClampedDelivery({photos:t,panoramas:a}){return t.some(T=>T.pending||!!T.watermarkMediumUrl)||(null!=a?a:[]).some(T=>!T.largeUrl)}composeSpwWebsiteLinks(t){return(0,an.aj)([this.propertiesStoreRepository.getProperty(t),this.propertyFeatureDomainsFacade.defaultDomain$.pipe((0,y.h)(a=>!!a))]).pipe((0,y.h)(([a])=>!!a),(0,ve.q)(1),(0,pt.b)(([a])=>{this.propertyFeatureDomainsFacade.setDefaultDomainPath(a.defaultDomainPath),this.propertyFeatureDomainsFacade.setCustomDomainNames(a.customDomains)}),(0,ne.w)(([a])=>this.propertyFeatureDomainsFacade.spwLinks$.pipe((0,ve.q)(1),(0,ke.U)(T=>this.buildSpwWebsiteLinks(a,T)))),(0,wt._b)(a=>this.patchState({websiteLinks:a}),a=>{console.error("[DeliveryV2Store] Failed to compose website links",a)}))}buildSpwWebsiteLinks(t,a){const T=a.customUrl||a.defaultUrl,ae=this.appendLangParam(a.brandedDefaultUrl||T),Ce=this.appendMlsParam(a.unbrandedDefaultUrl||T,t.propertyAddress.mlsNumber),Be=[];return ae&&Be.push({name:"Branded",url:ae}),Ce&&Be.push({name:"Unbranded",url:Ce}),Be}appendLangParam(t){if(!t)return t;const a=new URL(t);return a.searchParams.set("lang",this.appConfigService.localization.language),a.toString()}appendMlsParam(t,a){return!t||t.includes("?mls")?t:a?`${t}?mls=${a}`:`${t}?mls`}persistCoverImage(t,a,T){var ae,Ce;const Be=T.find(qe=>qe.id===a),Ge=(null===(ae=null==Be?void 0:Be.thumbnail)||void 0===ae?void 0:ae.url)||(null===(Ce=null==Be?void 0:Be.webRes)||void 0===Ce?void 0:Ce.url);Ge&&this.deliveryApi.updateDelivery(t,{coverImage:Ge}).catch(()=>{})}toDeliveryImage(t,a){return{id:t.id,name:t.name,pending:t.pending,thumbnail:{url:t.watermarkMediumUrl||t.thumbnailUrl},webRes:{url:t.mediumUrl||t.watermarkMediumUrl||""},fullRes:{url:t.largeUrl||t.watermarkMediumUrl||""},priority:a,metadata:{order:a,parentFolder:"",tonomoExternalId:"",dropboxId:"",coverImage:0===a}}}toDeliveryPanorama(t){return{id:t.id,name:t.name,url:t.largeUrl||t.mediumUrl||t.thumbnailUrl,thumbnail:{url:t.thumbnailUrl},webRes:{url:t.mediumUrl||t.thumbnailUrl},fullRes:{url:t.largeUrl},metadata:{order:0,parentFolder:"",tonomoExternalId:"",dropboxId:"",coverImage:!1}}}toVideoShareUrl(t,a){return t.playbackId?(0,ce.SXC)(t.playbackId,a,t.name):t.url||""}isOrderDownloadAvailable(t,a){return!!t&&!a&&!on(t)}isFilesSectionVisible({order:t,isPreview:a,files:T}){return!!t&&(a||!on(t))&&T.length>0}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275inject(U.sK),e.\u0275\u0275inject(An.zz),e.\u0275\u0275inject(An.Vr),e.\u0275\u0275inject(F.jub),e.\u0275\u0275inject(F.f3$),e.\u0275\u0275inject(F.GNc),e.\u0275\u0275inject(qt.k7),e.\u0275\u0275inject(qt.fm),e.\u0275\u0275inject(F._ZM),e.\u0275\u0275inject(re.C5),e.\u0275\u0275inject(An.gl),e.\u0275\u0275inject(l.DOCUMENT))},r.\u0275prov=e.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac}),r})();var Mr=s(84061);let Jn=(()=>{class r{constructor(t){this.elRef=t,this.wpOffset=.8,this.wpDelay=0,this._force=!1,this.elRef.nativeElement.classList.add("waypoint-animation")}set force(t){this._force=t,t&&this.animate()}ngAfterViewInit(){var t;this._force||(this.scrollContainer=document.getElementById("wp-scroll-container"),null===(t=this.scrollContainer)||void 0===t||t.addEventListener("scroll",()=>this.animate(),{passive:!0})),this.animate()}animate(){var t;const a=this.elRef.nativeElement.getBoundingClientRect(),T=window.innerHeight||document.documentElement.clientHeight;(this._force||a.top>=0&&a.top+a.height*this.wpOffset<=T)&&(null===(t=this.scrollContainer)||void 0===t||t.removeEventListener("wp-scroll-container",this.animate),this.wpDelay?setTimeout(()=>{this.elRef.nativeElement.classList.add("animate")},this.wpDelay):this.elRef.nativeElement.classList.add("animate"))}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275directiveInject(e.ElementRef))},r.\u0275dir=e.\u0275\u0275defineDirective({type:r,selectors:[["","wpAnimation",""]],inputs:{wpOffset:"wpOffset",wpDelay:"wpDelay",force:["wpAnimation","force"]}}),r})();
1var Ci=s(54394),Ln=s(16985),Fr=s(10710),Ai=s(10611),Nr=s(68566),xn=s(43020);function Pn(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",14)(1,"span",15),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"uiCustomStatus"),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("uiPaymentStatusBgColor",t.order.paymentStatus),e.\u0275\u0275advance(1),e.\u0275\u0275property("uiPaymentStatusTextColor",t.order.paymentStatus),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(3,3,t.order.paymentStatus,"payment")," ")}}function Zn(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",10)(1,"div",11)(2,"span",12),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"uiCustomStatus"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,Pn,4,6,"div",13),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("uiOrderStatusBgColor",t.order.orderStatus),e.\u0275\u0275advance(1),e.\u0275\u0275property("uiOrderStatusTextColor",t.order.orderStatus),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(4,4,t.order.orderStatus,"order")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.limitedCustomerPaymentAccess)}}function Br(r,n){1&r&&(e.\u0275\u0275elementStart(0,"div",27),e.\u0275\u0275element(1,"i",28),e.\u0275\u0275elementStart(2,"span"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()),2&r&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,1,"DOWNLOAD_AVAILABLE")))}function xi(r,n){1&r&&(e.\u0275\u0275elementStart(0,"div",27),e.\u0275\u0275element(1,"i",30),e.\u0275\u0275elementStart(2,"span"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()),2&r&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,1,"PAYMENT_REQUIRED")))}function br(r,n){if(1&r&&e.\u0275\u0275template(0,xi,5,3,"div",29),2&r){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngIf",!t.isDownloadAvailable&&!t.limitedCustomerPaymentAccess&&!t.order.hideIntegratedPayment)}}function Sr(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",31,32),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).openInvoicePage.emit()}),e.\u0275\u0275element(2,"i",33),e.\u0275\u0275elementStart(3,"span"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()()}if(2&r){const t=e.\u0275\u0275reference(1);e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,2,"PAY_INVOICE"))}}function wr(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",31,34),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).openDownloadsDialog.emit()}),e.\u0275\u0275element(2,"i",35),e.\u0275\u0275elementStart(3,"span"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()()}if(2&r){const t=e.\u0275\u0275reference(1);e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,2,"DOWNLOAD_FILES"))}}function Pi(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",31,38),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(5).openInvoicePage.emit()}),e.\u0275\u0275element(2,"i",33),e.\u0275\u0275elementStart(3,"span"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()()}if(2&r){const t=e.\u0275\u0275reference(1);e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,2,"PAY_AND_DOWNLOAD_FILES"))}}function ki(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",39,40),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const T=e.\u0275\u0275nextContext(5);return T.openAccountingInvoice.emit(T.invoice.accountingId)}),e.\u0275\u0275element(2,"i",33),e.\u0275\u0275elementStart(3,"span"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()()}if(2&r){const t=e.\u0275\u0275reference(1),a=e.\u0275\u0275nextContext(5);e.\u0275\u0275property("uiBtnLoading",a.invoiceLinkLoading),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,3,"PAY_AND_DOWNLOAD_FILES"))}}function Ei(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Pi,6,4,"button",23),e.\u0275\u0275template(2,ki,6,5,"button",37),e.\u0275\u0275elementContainerEnd()),2&r){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!(null!=t.invoice&&t.invoice.accountingId)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==t.invoice?null:t.invoice.accountingId)}}function Ii(r,n){if(1&r&&e.\u0275\u0275template(0,Ei,3,2,"ng-container",36),2&r){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("ngIf",!t.limitedCustomerPaymentAccess&&!t.order.hideIntegratedPayment)}}function Qt(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"a",41,42),e.\u0275\u0275element(2,"i",43),e.\u0275\u0275elementStart(3,"span"),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275reference(1),a=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("routerLink",a.previewRouterLink),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,3,"CUSTOMER_PREVIEW_LINK"))}}const Ti=function(r){return["/order-status",r]};function Oi(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",16)(1,"div",17),e.\u0275\u0275template(2,Br,5,3,"div",18),e.\u0275\u0275template(3,br,1,1,"ng-template",null,19,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"button",20,21),e.\u0275\u0275element(7,"i",22),e.\u0275\u0275elementStart(8,"span"),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(11,Sr,6,4,"button",23),e.\u0275\u0275template(12,wr,6,4,"button",24),e.\u0275\u0275template(13,Ii,1,1,"ng-template",null,25,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(15,Qt,6,5,"a",26),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275reference(4),a=e.\u0275\u0275reference(6),T=e.\u0275\u0275reference(14),ae=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",ae.isDownloadAvailable)("ngIfElse",t),e.\u0275\u0275advance(3),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction1(11,Ti,ae.orderId)),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",a.iconSize),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(10,9,"ORDER_DETAILS")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf","promisedPayment"===ae.order.paymentStatus&&!ae.order.hideIntegratedPayment),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ae.isDownloadAvailable)("ngIfElse",T),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",ae.isPreviewEnabled&&ae.isPreviewSectionAvailable)}}function Ri(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",2)(1,"div",3),e.\u0275\u0275template(2,Zn,6,7,"div",4),e.\u0275\u0275elementStart(3,"h1",5),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",6)(6,"div",7),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",7),e.\u0275\u0275text(10),e.\u0275\u0275pipe(11,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"div",8),e.\u0275\u0275text(13),e.\u0275\u0275pipe(14,"translate"),e.\u0275\u0275pipe(15,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(16,Oi,16,13,"div",9),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("wpAnimation",!0),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.isPreview),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t.address),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(8,12,"PRESENTED_FOR")," ",t.agents," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(11,14,"BY")," ",t.companyName," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate4(" ",e.\u0275\u0275pipeBind1(14,16,"PRESENTED_FOR")," ",t.agents," ",e.\u0275\u0275pipeBind1(15,18,"BY")," ",t.companyName," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.isPreview)}}let Mn=(()=>
1{class r{constructor(){this.imageUrl="",this.invoiceLinkLoading=!1,this.isPreview=!1,this.isDownloadAvailable=!1,this.isPreviewEnabled=!1,this.isPreviewSectionAvailable=!1,this.previewRouterLink=[],this.openDownloadsDialog=new e.EventEmitter,this.openInvoicePage=new e.EventEmitter,this.openAccountingInvoice=new e.EventEmitter}get address(){var t,a;return null===(a=null===(t=this.order)||void 0===t?void 0:t.property_address)||void 0===a?void 0:a.formatted_address.split(",")[0]}get agents(){var t;return((null===(t=this.order)||void 0===t?void 0:t.listingAgents)||[]).map(a=>a.displayName).join(" & ")}get imageStyle(){return this.imageUrl?{background:`url("${this.imageUrl}") center`}:{}}openInvoice(){this.openInvoicePage.emit()}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["tn-page-cover"]],inputs:{imageUrl:"imageUrl",order:"order",invoice:"invoice",invoiceLinkLoading:"invoiceLinkLoading",isPreview:"isPreview",isDownloadAvailable:"isDownloadAvailable",isPreviewEnabled:"isPreviewEnabled",isPreviewSectionAvailable:"isPreviewSectionAvailable",orderId:"orderId",companyName:"companyName",limitedCustomerPaymentAccess:"limitedCustomerPaymentAccess",previewRouterLink:"previewRouterLink"},outputs:{openDownloadsDialog:"openDownloadsDialog",openInvoicePage:"openInvoicePage",openAccountingInvoice:"openAccountingInvoice"},decls:2,vars:2,consts:[[1,"cover",3,"ngStyle"],["class","flex flex-col items-center justify-center absolute inset-0 text-white",3,"wpAnimation",4,"ngIf"],[1,"flex","flex-col","items-center","justify-center","absolute","inset-0","text-white",3,"wpAnimation"],[1,"wrapper"],["class","flex text-12 mb-12",4,"ngIf"],[1,"address","leading-10","text-with-shadow"],[1,"hidden","sm:block","px-80","text-with-shadow"],[1,"text-20","font-medium","leading-8","text-center"],[1,"text-20","font-medium","leading-8","sm:hidden","text-center"],["class","download-panel",4,"ngIf"],[1,"flex","text-12","mb-12"],[1,"rounded","px-8","mr-min","leading-6",3,"uiOrderStatusBgColor"],[3,"uiOrderStatusTextColor"],["class","rounded px-8 ml-min leading-6",3,"uiPaymentStatusBgColor",4,"ngIf"],[1,"rounded","px-8","ml-min","leading-6",3,"uiPaymentStatusBgColor"],[3,"uiPaymentStatusTextColor"],[1,"download-panel"],[1,"download-panel__status"],["class","download-panel__status-item",4,"ngIf","ngIfElse"],["paymentRequired",""],["uiBtnSize","small","uiBtnTheme","main","themeMode","secondary",1,"download-panel__btn",3,"routerLink"],["orderDetailsButton","btnSize"],["uiIcon","assignment",3,"size"],["class","download-panel__btn","uiBtnSize","small","uiBtnTheme","main","themeMode","primary",3,"click",4,"ngIf"],["class","download-panel__btn","uiBtnSize","small","uiBtnTheme","main","themeMode","primary",3,"click",4,"ngIf","ngIfElse"],["payAndDownload",""],["class","download-panel__btn","uiBtnSize","small","uiBtnTheme","main","themeMode","primary","target","_blank",3,"routerLink",4,"ngIf"],[1,"download-panel__status-item"],["uiIcon","check_circle","uiIconVariant","filled",1,"mr-6","text-green-50"],["class","download-panel__status-item",4,"ngIf"],["uiIcon","warning","uiIconVariant","filled",1,"mr-6","text-yellow-50"],["uiBtnSize","small","uiBtnTheme","main","themeMode","primary",1,"download-panel__btn",3,"click"],["payInvoiceButton","btnSize"],["uiIcon","wallet",3,"size"],["downloadFilesButton","btnSize"],["uiIcon","download",3,"size"],[4,"ngIf"],["class","download-panel__btn","uiBtnSize","small","uiBtnTheme","main","themeMode","primary",3,"uiBtnLoading","click",4,"ngIf"],["payAndDownloadButton","btnSize"],["uiBtnSize","small","uiBtnTheme","main","themeMode","primary",1,"download-panel__btn",3,"uiBtnLoading","click"],["accountingInvoiceButton","btnSize"],["uiBtnSize","small","uiBtnTheme","main","themeMode","primary","target","_blank",1,"download-panel__btn",3,"routerLink"],["previewLinkButton","btnSize"],["uiIcon","visibility",3,"size"]],template:function(t,a){1&t&&(e.\u0275\u0275element(0,"div",0),e.\u0275\u0275template(1,Ri,17,20,"div",1)),2&t&&(e.\u0275\u0275property("ngStyle",a.imageStyle),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.order))},directives:[l.NgStyle,l.NgIf,Jn,Ci.e,Ln.w,Fr.$,Ai.T,fe.a,me.s,Ne.V,Y.rH,Nr.T,Y.yS],pipes:[xn.N,U.X$],styles:['[_nghost-%COMP%]{position:relative;display:block;overflow:hidden;border-radius:.5rem}.wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}@media (max-width: 768px){.wrapper[_ngcontent-%COMP%]{height:100%}}.address[_ngcontent-%COMP%]{color:inherit}.cover[_ngcontent-%COMP%]{min-width:calc(100% + 1rem);width:calc(100% + 1rem);margin-left:-.5rem;height:calc(100vh - 96px);will-change:opacity;animation:fade-in var(--anim-medium-duration) var(--anim-easing-out) forwards}.cover[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(170deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.4) 100%)}@media (min-width: 640px){.cover[_ngcontent-%COMP%]{height:calc(100vh - 96px);width:auto;min-width:unset;margin-left:unset}.address[_ngcontent-%COMP%]{font-size:3rem;line-height:3.75rem;font-weight:800}}.skeleton[_ngcontent-%COMP%]{width:400px;max-width:80vw}.text-with-shadow[_ngcontent-%COMP%]{text-shadow:0 4px 4px rgba(0,0,0,.25)}.download-panel[_ngcontent-%COMP%]{margin-top:2.5rem;display:grid;height:3rem;grid-auto-flow:column;align-items:center;grid-gap:.25rem;gap:.25rem;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.5rem .5rem .5rem 1rem}@media (max-width: 768px){.download-panel[_ngcontent-%COMP%]{margin-top:auto;height:auto;width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 576px){.download-panel[_ngcontent-%COMP%]{grid-template-columns:repeat(1,minmax(0,1fr))}}.download-panel__status[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:1rem;font-weight:600;--tw-text-opacity: 1;color:rgb(20 20 20 / var(--tw-text-opacity, 1))}@media (max-width: 768px){.download-panel__status[_ngcontent-%COMP%]{grid-column:1 / -1;margin-right:0;margin-bottom:.5rem}}.download-panel__status-item[_ngcontent-%COMP%]{display:flex;align-items:center}@media (max-width: 768px){.download-panel__btn[_ngcontent-%COMP%]{grid-row-start:2;width:100%!important}}@media (max-width: 576px){.download-panel__btn[_ngcontent-%COMP%]{grid-column:1 / -1;grid-row:auto}}'],changeDetection:0}),r})();
1var er=s(54789),kn=s(61432),sn=s(70949),Vr=s(39348),Cr=s(32368),zr=s(78029),tr=function(){return tr=Object.assign||function(n){for(var t,a=1,T=arguments.length;a<T;a++)for(var ae in t=arguments[a])Object.prototype.hasOwnProperty.call(t,ae)&&(n[ae]=t[ae]);return n},tr.apply(this,arguments)},Wr={fullScreen:!0,fullscreenPluginStrings:{toggleFullscreen:"Toggle Fullscreen"}};const Ur=function(){function r(n,t){return this.core=n,this.$LG=t,this.settings=tr(tr({},Wr),this.core.settings),this}return r.prototype.init=function(){if(this.settings.fullScreen){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))return;this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.fullscreenPluginStrings.toggleFullscreen+'" class="lg-fullscreen lg-icon"></button>'),this.fullScreen()}},r.prototype.isFullScreen=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},r.prototype.requestFullscreen=function(){var n=document.documentElement;n.requestFullscreen?n.requestFullscreen():n.msRequestFullscreen?n.msRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen&&n.webkitRequestFullscreen()},r.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},r.prototype.fullScreen=function(){var n=this;this.$LG(document).on("fullscreenchange.lg.global"+this.core.lgId+" \n webkitfullscreenchange.lg.global"+this.core.lgId+" \n mozfullscreenchange.lg.global"+this.core.lgId+" \n MSFullscreenChange.lg.global"+this.core.lgId,function(){!n.core.lgOpened||n.core.outer.toggleClass("lg-fullscreen-on")}),this.core.outer.find(".lg-fullscreen").first().on("click.lg",function(){n.isFullScreen()?n.exitFullscreen():n.requestFullscreen()})},r.prototype.closeGallery=function(){this.isFullScreen()&&this.exitFullscreen()},r.prototype.destroy=function(){this.$LG(document).off("fullscreenchange.lg.global"+this.core.lgId+" \n webkitfullscreenchange.lg.global"+this.core.lgId+" \n mozfullscreenchange.lg.global"+this.core.lgId+" \n MSFullscreenChange.lg.global"+this.core.lgId)},r}();var Fn=function(){return Fn=Object.assign||function(n){for(var t,a=1,T=arguments.length;a<T;a++)for(var ae in t=arguments[a])Object.prototype.hasOwnProperty.call(t,ae)&&(n[ae]=t[ae]);return n},Fn.apply(this,arguments)},jr={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",alignThumbnails:"middle",thumbWidth:100,thumbHe
vendor: 5,929 bytes, line 1
1ight:"80px",thumbMargin:5,appendThumbnailsTo:".lg-components",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1,thumbnailPluginStrings:{toggleThumbnails:"Toggle thumbnails"}};const Hr=function(){function r(n,t){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=n,this.$LG=t,this}return r.prototype.init=function(){this.settings=Fn(Fn({},jr),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},r.prototype.build=function(){var n=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",function(t){var a=n.$LG(t.target);!a.hasAttribute("data-lg-item-id")||setTimeout(function(){if(n.thumbClickable&&!n.core.lgBusy){var T=parseInt(a.attr("data-lg-item-id"));n.core.slide(T,!1,!0,!1)}},50)}),this.core.LGel.on("lgBeforeSlide.thumb",function(t){n.animateThumb(t.detail.index)}),this.core.LGel.on("lgBeforeOpen.thumb",function(){n.thumbOuterWidth=n.core.outer.get().offsetWidth}),this.core.LGel.on("lgUpdateSlides.thumb",function(){n.rebuildThumbnails()}),this.core.LGel.on("lgContainerResize.thumb",function(){!n.core.lgOpened||setTimeout(function(){n.thumbOuterWidth=n.core.outer.get().offsetWidth,n.animateThumb(n.core.index),n.thumbOuterWidth=n.core.outer.get().offsetWidth},50)})},r.prototype.setThumbMarkup=function(){var n="lg-thumb-outer ";this.settings.alignThumbnails&&(n+="lg-thumb-align-"+this.settings.alignThumbnails);var t='<div class="'+n+'">\n <div class="lg-thumb lg-group">\n </div>\n </div>';this.core.outer.addClass("lg-has-thumb"),".lg-components"===this.settings.appendThumbnailsTo?this.core.$lgComponents.append(t):this.core.outer.append(t),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},r.prototype.enableThumbDrag=function(){var n=this,t={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},a=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(T){n.thumbTotalWidth>n.thumbOuterWidth&&(T.preventDefault(),t.cords.startX=T.pageX,t.startTime=new Date,n.thumbClickable=!1,a=!0,n.core.outer.get().scrollLeft+=1,n.core.outer.get().scrollLeft-=1,n.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(T){!n.core.lgOpened||a&&(t.cords.endX=T.pageX,t=n.onThumbTouchMove(t))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){!n.core.lgOpened||(t.isMoved?t=n.onThumbTouchEnd(t):n.thumbClickable=!0,a&&(a=!1,n.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},r.prototype.enableThumbSwipe=function(){var n=this,t={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(a){n.thumbTotalWidth>n.thumbOuterWidth&&(a.preventDefault(),t.cords.startX=a.targetTouches[0].pageX,n.thumbClickable=!1,t.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(a){n.thumbTotalWidth>n.thumbOuterWidth&&(a.preventDefault(),t.cords.endX=a.targetTouches[0].pageX,t=n.onThumbTouchMove(t))}),this.$lgThumb.on("touchend.lg",function(){t.isMoved?t=n.onThumbTouchEnd(t):n.thumbClickable=!0})},r.prototype.rebuildThumbnails=function(){var n=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){n.thumbTotalWidth=n.core.galleryItems.length*(n.settings.thumbWidth+n.settings.thumbMargin),n.$lgThumb.css("width",n.thumbTotalWidth+"px"),n.$lgThumb.empty(),n.setThumbItemHtml(n.core.galleryItems),n.animateThumb(n.core.index)},50),setTimeout(function(){n.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},r.prototype.setTranslate=function(n){this.$lgThumb.css("transform","translate3d(-"+n+"px, 0px, 0px)")},r.prototype.getPossibleTransformX=function(n){return n>this.thumbTotalWidth-this.thumbOuterWidth&&(n=this.thumbTotalWidth-this.thumbOuterWidth),n<0&&(n=0),n},r.prototype.animateThumb=function(n){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var t=0;switch(this.settings.currentPagerPosition){case"left":t=0;break;case"middle":t=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":t=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*n-1-t,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},r.prototype.onThumbTouchMove=function(n){return n.newTranslateX=this.translateX,n.isMoved=!0,n.touchMoveTime=(new Date).valueOf(),n.newTranslateX-=n.cords.endX-n.cords.startX,n.newTranslateX=this.getPossibleTransformX(n.newTranslateX),this.setTranslate(n.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),n},r.prototype.onThumbTouchEnd=function(n){n.isMoved=!1,n.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var t=n.endTime.valueOf()-n.startTime.valueOf(),a=n.cords.endX-n.cords.startX,T=
1Math.abs(a)/t;return T>.15&&n.endTime.valueOf()-n.touchMoveTime<30?((T+=1)>2&&(T+=1),T+=T*(Math.abs(a)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(T-1,2)+"settings"),this.translateX=this.getPossibleTransformX(this.translateX-(a*=T)),this.setTranslate(this.translateX)):this.translateX=n.newTranslateX,Math.abs(n.cords.endX-n.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),n},r.prototype.getThumbHtml=function(n,t){var a=this.core.galleryItems[t].__slideVideoInfo||{};return'<div data-lg-item-id="'+t+'" class="lg-thumb-item '+(t===this.core.index?" active":"")+'" \n style="width:'+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+";\n margin-right: "+this.settings.thumbMargin+'px;">\n <img data-lg-item-id="'+t+'" src="'+(a.youtube&&this.settings.loadYouTubeThumbnail?"//img.youtube.com/vi/"+a.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":n)+'" />\n </div>'},r.prototype.getThumbItemHtml=function(n){for(var t="",a=0;a<n.length;a++)t+=this.getThumbHtml(n[a].thumb,a);return t},r.prototype.setThumbItemHtml=function(n){var t=this.getThumbItemHtml(n);this.$lgThumb.html(t)},r.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},r.prototype.manageActiveClassOnSlideChange=function(){var n=this;this.core.LGel.on("lgBeforeSlide.thumb",function(t){var a=n.core.outer.find(".lg-thumb-item"),T=t.detail.index;a.removeClass("active"),a.eq(T).addClass("active")})},r.prototype.toggleThumbBar=function(){var n=this;this.settings.toggleThumb&&(this.core.outer.addClass("lg-can-toggle"),this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.thumbnailPluginStrings.toggleThumbnails+'" class="lg-toggle-thumb lg-icon"></button>'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){n.core.outer.toggleClass("lg-components-open")}))},r.prototype.thumbKeyPress=function(){var n=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(t){!n.core.lgOpened||!n.settings.toggleThumb||(38===t.keyCode?(t.preventDefault(),n.core.outer.addClass("lg-components-open")):40===t.keyCode&&(t.preventDefault(),n.core.outer.removeClass("lg-components-open")))})},r.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},r}();var nr=function(){return nr=Object.assign||function(n){for(var t,a=1,T=arguments.length;a<T;a++)for(var ae in t=arguments[a])Object.prototype.hasOwnProperty.call(t,ae)&&(n[ae]=t[ae]);return n},nr.apply(this,arguments)},rr={scale:1,zoom:!0,actualSize:!0,showZoomInOutIcons:!1,actualSizeIcons:{zoomIn:"lg-zoom-in",zoomOut:"lg-zoom-out"},enableZoomAfter:300,zoomPluginStrings:{zoomIn:"Zoom in",zoomOut:"Zoom out",viewActualSize:"View actual size"}};const Gr=function(){function r(n,t){return this.core=n,this.$LG=t,this.settings=nr(nr({},rr),this.core.settings),this}return r.prototype.buildTemplates=function(){var n=this.settings.showZoomInOutIcons?'<button id="'+this.core.getIdName("lg-zoom-in")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-in lg-icon"></button><button id="'+this.core.getIdName("lg-zoom-out")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-out lg-icon"></button>':"";this.settings.actualSize&&(n+='<button id="'+this.core.getIdName("lg-actual-size")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.viewActualSize+'" class="'+this.settings.actualSizeIcons.zoomIn+' lg-icon"></button>'),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(n)},r.prototype.enableZoom=function(n){var t=this,a=this.settings.enableZoomAfter+n.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&n.detail.delay?a=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout(function(){!t.isImageSlide()||(t.core.getSlideItem(n.detail.index).addClass("lg-zoomable"),n.detail.index===t.core.
vendor: 4,173 bytes, line 1
1index&&t.setZoomEssentials())},a+30)},r.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on("lgSlideItemLoad.zoom",this.enableZoom.bind(this))},r.prototype.getModifier=function(n,t,a){var T=n;n=Math.abs(n);var ae=this.getCurrentTransform(a);if(!ae)return 1;var Ce=1;if("X"===t){var Be=Math.sign(parseFloat(ae[0]));0===n||180===n?Ce=1:90===n&&(Ce=-90===T&&1===Be||90===T&&-1===Be?-1:1),Ce*=Be}else{var Ge=Math.sign(parseFloat(ae[3]));if(0===n||180===n)Ce=1;else if(90===n){var qe=parseFloat(ae[1]),nt=parseFloat(ae[2]);Ce=Math.sign(qe*nt*T*Ge)}Ce*=Ge}return Ce},r.prototype.getImageSize=function(n,t,a){return 90===Math.abs(t)&&(a="x"===a?"y":"x"),n[{y:"offsetHeight",x:"offsetWidth"}[a]]},r.prototype.getDragCords=function(n,t){return 90===t?{x:n.pageY,y:n.pageX}:{x:n.pageX,y:n.pageY}},r.prototype.getSwipeCords=function(n,t){var a=n.targetTouches[0].pageX,T=n.targetTouches[0].pageY;return 90===t?{x:T,y:a}:{x:a,y:T}},r.prototype.getDragAllowedAxises=function(n,t){var a=this.imageYSize*(t=t||this.scale||1)>this.containerRect.height,T=this.imageXSize*t>this.containerRect.width;return 90===n?{allowX:a,allowY:T}:{allowX:T,allowY:a}},r.prototype.getCurrentTransform=function(n){if(n){var t=window.getComputedStyle(n,null),a=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform")||"none";if("none"!==a)return a.split("(")[1].split(")")[0].split(",")}},r.prototype.getCurrentRotation=function(n){if(!n)return 0;var t=this.getCurrentTransform(n);return t?Math.round(Math.atan2(parseFloat(t[1]),parseFloat(t[0]))*(180/Math.PI)):0},r.prototype.setZoomEssentials=function(){var n=this.core.getSlideItem(this.core.index).find(".lg-image").first(),t=this.core.getSlideItem(this.core.index).find(".lg-img-rotate").first().get();this.rotateValue=this.getCurrentRotation(t),this.imageYSize=this.getImageSize(n.get(),this.rotateValue,"y"),this.imageXSize=this.getImageSize(n.get(),this.rotateValue,"x"),this.containerRect=this.core.outer.get().getBoundingClientRect(),this.modifierX=this.getModifier(this.rotateValue,"X",t),this.modifierY=this.getModifier(this.rotateValue,"Y",t)},r.prototype.zoomImage=function(n){var qe,t=(this.containerRect.width-this.imageXSize)/2+this.containerRect.left,a=this.core.mediaContainerPosition,Ce=Math.abs(a.top-a.bottom)/2,Be=(this.containerRect.height-this.imageYSize-Ce*this.modifierX)/2+this.scrollTop+this.containerRect.top;1===n&&(this.positionChanged=!1);var nt=this.getDragAllowedAxises(Math.abs(this.rotateValue),n),it=nt.allowY,Je=nt.allowX;this.positionChanged&&(qe=this.top/(this.scale-1),this.pageX=Math.abs(this.left/(this.scale-1))+t,this.pageY=Math.abs(qe)+Be,this.positionChanged=!1);var at=this.getPossibleSwipeDragCords(this.rotateValue,n),Qe=(n-1)*(t-this.pageX),dt=(n-1)*(Be-this.pageY);Je?this.isBeyondPossibleLeft(Qe,at.minX)?Qe=at.minX:this.isBeyondPossibleRight(Qe,at.maxX)&&(Qe=at.maxX):n>1&&(Qe<at.minX?Qe=at.minX:Qe>at.maxX&&(Qe=at.maxX)),it?this.isBeyondPossibleTop(dt,at.minY)?dt=at.minY:this.isBeyondPossibleBottom(dt,at.maxY)&&(dt=at.maxY):n>1&&(dt<at.minY?dt=at.minY:dt>at.maxY&&(dt=at.maxY)),this.setZoomStyles({x:Qe,y:dt,scale:n})},r.prototype.setZoomStyles=function(n){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first(),a=this.core.outer.find(".lg-current .lg-dummy-img").first(),T=t.parent();this.scale=n.scale,t.css("transform","scale3d("+n.scale+", "+n.scale+", 1)"),a.css("transform","scale3d("+n.scale+", "+n.scale+", 1)"),T.css("transform","translate3d("+n.x+"px, "+n.y+"px, 0)"),this.left=n.x,this.top=n.y},r.prototype.setActualSize=function(n,t){var a=this;if(this.isImageSlide()&&!this.core.outer.hasClass("lg-first-slide-loading")){var T=this.getCurrentImageActualSizeScale();this.scale=this.core.outer.hasClass("lg-zoomed")?1:this.getScale(T),this.setPageCords(t),this.beginZoom(this.scale),this.zoomImage(this.scale),setTimeout(function(){a.core.outer.removeClass("lg-grabbing").addClass("lg-grab")},10)}},r.prototype.getNaturalWidth=function(n){var t=this.core.getSlideItem(n).find(".lg-image").first(),a=this.core.galleryItems[n].width;
1return a?parseFloat(a):t.get().naturalWidth},r.prototype.getActualSizeScale=function(n,t){return n>t?n/t||2:1},r.prototype.getCurrentImageActualSizeScale=function(){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first().get().offsetWidth,a=this.getNaturalWidth(this.core.index)||t;return this.getActualSizeScale(a,t)},r.prototype.getPageCords=function(n){var t={};if(n)t.x=n.pageX||n.targetTouches[0].pageX,t.y=n.pageY||n.targetTouches[0].pageY;else{var a=this.core.outer.get().getBoundingClientRect();t.x=a.width/2+a.left,t.y=a.height/2+this.scrollTop+a.top}return t},r.prototype.setPageCords=function(n){var t=this.getPageCords(n);this.pageX=t.x,this.pageY=t.y},r.prototype.beginZoom=function(n){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),n>1?(this.core.outer.addClass("lg-zoomed"),this.core.getElementById("lg-actual-size").removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)):this.resetZoom(),n>1},r.prototype.getScale=function(n){var t=this.getCurrentImageActualSizeScale();return n<1?n=1:n>t&&(n=t),n},r.prototype.init=function(){var n=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var t=null;this.core.outer.on("dblclick.lg",function(a){!n.$LG(a.target).hasClass("lg-image")||n.setActualSize(n.core.index,a)}),this.core.outer.on("touchstart.lg",function(a){var T=n.$LG(a.target);1===a.targetTouches.length&&T.hasClass("lg-image")&&(t?(clearTimeout(t),t=null,a.preventDefault(),n.setActualSize(n.core.index,a)):t=setTimeout(function(){t=null},300))}),this.core.LGel.on("lgContainerResize.zoom lgRotateRight.zoom lgRotateLeft.zoom lgFlipHorizontal.zoom lgFlipVertical.zoom",function(){!n.core.lgOpened||!n.isImageSlide()||(n.setPageCords(),n.setZoomEssentials(),n.zoomImage(n.scale))}),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,function(){!n.core.lgOpened||(n.scrollTop=n.$LG(window).scrollTop())}),this.core.getElementById("lg-zoom-out").on("click.lg",function(){n.core.outer.find(".lg-current .lg-image").get()&&(n.scale-=n.settings.scale,n.scale=n.getScale(n.scale),n.beginZoom(n.scale),n.zoomImage(n.scale))}),this.core.getElementById("lg-zoom-in").on("click.lg",function(){n.zoomIn()}),this.core.getElementById("lg-actual-size").on("click.lg",function(){n.setActualSize(n.core.index)}),this.core.LGel.on("lgBeforeOpen.zoom",function(){n.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on("lgAfterOpen.zoom",function(){n.scrollTop=n.$LG(window).scrollTop(),n.pageX=n.core.outer.width()/2,n.pageY=n.core.outer.height()/2+n.scrollTop,n.scale=1}),this.core.LGel.on("lgAfterSlide.zoom",function(a){var T=a.detail.prevIndex;n.scale=1,n.positionChanged=!1,n.resetZoom(T),n.isImageSlide()&&n.setZoomEssentials()}),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1}},r.prototype.zoomIn=function(n){!this.isImageSlide()||(n?this.scale=n:this.scale+=this.settings.scale,this.scale=this.getScale(this.scale),this.beginZoom(this.scale),this.zoomImage(this.scale))},r.prototype.resetZoom=function(n){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var t=this.core.getElementById("lg-actual-size"),a=this.core.getSlideItem(void 0!==n?n:this.core.index);t.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),a.find(".lg-img-wrap").first().removeAttr("style"),a.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},r.prototype.getTouchDistance=function(n){return Math.sqrt((n.targetTouches[0].pageX-n.targetTouches[1].pageX)*(n.targetTouches[0].pageX-n.targetTouches[1].pageX)+(n.targetTouches[0].pageY-n.targetTouches[1].pageY)*(n.targetTouches[0].pageY-n.targetTouches[1].pageY))},r.prototype.pinchZoom=function(){var n=this,t=0,a=!1,T=1,ae=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",function(Ce){ae=n.core.getSlideItem(n.core.index),n.isImageSlide()&&2===Ce.targetTouches.length&&!n.core.outer.hasClass("lg-first-slide-loading")&&(n.$LG(Ce.target).hasClass("lg-item")||ae.get().contains(Ce.target))&&(T=n.scale||1,n.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),n.core.touchAction="pinch",t=n.getTouchDistance(Ce))}),this.core.$inner.on("touchmove.lg",function(Ce){if(2===Ce.targetTouches.length&&"pinch"===n.core.touchAction&&(n.$LG(Ce.target).hasClass("lg-item")||ae.get().contains(Ce.target))){Ce.preventDefault();var Be=n.getTouchDistance(Ce),Ge=t-Be;!a&&Math.abs(Ge)>5&&(a=!0),a&&(n.scale=Math.max(1,T+.008*-Ge),n.zoomImage(n.scale))}}),this.core.$inner.on("touchend.lg",function(Ce){"pinch"===n.core.touchAction&&(n.$LG(Ce.target).hasClass("lg-item")||ae.get().contains(Ce.target))&&(a=!1,t=0,n.scale<=1?n.resetZoom():(n.scale=n.getScale(n.scale),n.zoomImage(n.scale),n.core.outer.addClass("lg-zoomed")),n.core.touchAction=void 0)})},r.prototype.touchendZoom=function(n,t,a,T,ae,Ce){var Be=t.x-n.x,Ge=t.y-n.y,qe=Math.abs(Be)/ae+1,nt=Math.abs(Ge)/ae+1;qe>2&&(qe+=1),nt>2&&(nt+=1),Be*=qe,Ge*=nt;var it=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),Je={};Je.x=this.left+Be*this.modifierX,Je.y=this.top+Ge*this.modifierY;var at=this.getPossibleSwipeDragCords(Ce);(Math.abs(Be)>15||Math.abs(Ge)>15)&&(T&&(this.isBeyondPossibleTop(Je.y,at.minY)?Je.y=at.minY:this.isBeyondPossibleBottom(Je.y,at.maxY)&&(Je.y=at.maxY)),a&&(this.isBeyondPossibleLeft(Je.x,at.minX)?Je.x=at.minX:this.isBeyondPossibleRight(Je.x,at.maxX)&&(Je.x=at.maxX)),T?this.top=Je.y:Je.y=this.top,a?this.left=Je.x:Je.x=this.left,this.setZoomSwipeStyles(it,Je),this.positionChanged=!0)}
1,r.prototype.getZoomSwipeCords=function(n,t,a,T,ae){var Ce={};return T?(Ce.y=this.top+(t.y-n.y)*this.modifierY,this.isBeyondPossibleTop(Ce.y,ae.minY)?Ce.y=ae.minY-(ae.minY-Ce.y)/6:this.isBeyondPossibleBottom(Ce.y,ae.maxY)&&(Ce.y=ae.maxY+(Ce.y-ae.maxY)/6)):Ce.y=this.top,a?(Ce.x=this.left+(t.x-n.x)*this.modifierX,this.isBeyondPossibleLeft(Ce.x,ae.minX)?Ce.x=ae.minX-(ae.minX-Ce.x)/6:this.isBeyondPossibleRight(Ce.x,ae.maxX)&&(Ce.x=ae.maxX+(Ce.x-ae.maxX)/6)):Ce.x=this.left,Ce},r.prototype.isBeyondPossibleLeft=function(n,t){return n>=t},r.prototype.isBeyondPossibleRight=function(n,t){return n<=t},r.prototype.isBeyondPossibleTop=function(n,t){return n>=t},r.prototype.isBeyondPossibleBottom=function(n,t){return n<=t},r.prototype.isImageSlide=function(){return"image"===this.core.getSlideType(this.core.galleryItems[this.core.index])},r.prototype.getPossibleSwipeDragCords=function(n,t){var T=Math.abs(t||this.scale||1),ae=this.core.mediaContainerPosition,Ge=Math.abs(ae.top-ae.bottom)/2,qe=(this.imageYSize-this.containerRect.height)/2+Ge*this.modifierX,nt=this.containerRect.height-this.imageYSize*T+qe,it=(this.imageXSize-this.containerRect.width)/2,Je=this.containerRect.width-this.imageXSize*T+it,at={minY:qe,maxY:nt,minX:it,maxX:Je};return 90===Math.abs(n)&&(at={minY:it,maxY:Je,minX:qe,maxX:nt}),at},r.prototype.setZoomSwipeStyles=function(n,t){n.css("transform","translate3d("+t.x+"px, "+t.y+"px, 0)")},r.prototype.zoomSwipe=function(){var qe,nt,n=this,t={},a={},T=!1,ae=!1,Ce=!1,Be=new Date,it=(new Date,this.core.getSlideItem(this.core.index));this.core.$inner.on("touchstart.lg",function(Je){if(n.isImageSlide()&&(it=n.core.getSlideItem(n.core.index),(n.$LG(Je.target).hasClass("lg-item")||it.get().contains(Je.target))&&1===Je.targetTouches.length&&n.core.outer.hasClass("lg-zoomed"))){Je.preventDefault(),Be=new Date,n.core.touchAction="zoomSwipe",nt=n.core.getSlideItem(n.core.index).find(".lg-img-wrap").first();var at=n.getDragAllowedAxises(Math.abs(n.rotateValue));Ce=at.allowY,((ae=at.allowX)||Ce)&&(t=n.getSwipeCords(Je,Math.abs(n.rotateValue))),qe=n.getPossibleSwipeDragCords(n.rotateValue),n.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}),this.core.$inner.on("touchmove.lg",function(Je){if(1===Je.targetTouches.length&&"zoomSwipe"===n.core.touchAction&&(n.$LG(Je.target).hasClass("lg-item")||it.get().contains(Je.target))){Je.preventDefault(),n.core.touchAction="zoomSwipe",a=n.getSwipeCords(Je,Math.abs(n.rotateValue));var at=n.getZoomSwipeCords(t,a,ae,Ce,qe);(Math.abs(a.x-t.x)>15||Math.abs(a.y-t.y)>15)&&(T=!0,n.setZoomSwipeStyles(nt,at))}}),this.core.$inner.on("touchend.lg",function(Je){if("zoomSwipe"===n.core.touchAction&&(n.$LG(Je.target).hasClass("lg-item")||it.get().contains(Je.target))){if(n.core.touchAction=void 0,n.core.outer.removeClass("lg-zoom-dragging"),!T)return;T=!1;var at=(new Date).valueOf()-Be.valueOf();n.touchendZoom(t,a,ae,Ce,at,n.rotateValue)}})},r.prototype.zoomDrag=function(){var Ge,qe,nt,it,n=this,t={},a={},T=!1,ae=!1,Ce=!1,Be=!1;this.core.outer.on("mousedown.lg.zoom",function(Je){if(n.isImageSlide()){var at=n.core.getSlideItem(n.core.index);if(n.$LG(Je.target).hasClass("lg-item")||at.get().contains(Je.target)){Ge=ne
1w Date,it=n.core.getSlideItem(n.core.index).find(".lg-img-wrap").first();var Me=n.getDragAllowedAxises(Math.abs(n.rotateValue));Be=Me.allowY,Ce=Me.allowX,n.core.outer.hasClass("lg-zoomed")&&n.$LG(Je.target).hasClass("lg-object")&&(Ce||Be)&&(Je.preventDefault(),t=n.getDragCords(Je,Math.abs(n.rotateValue)),nt=n.getPossibleSwipeDragCords(n.rotateValue),T=!0,n.core.outer.get().scrollLeft+=1,n.core.outer.get().scrollLeft-=1,n.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}}),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,function(Je){if(T){ae=!0,a=n.getDragCords(Je,Math.abs(n.rotateValue));var at=n.getZoomSwipeCords(t,a,Ce,Be,nt);n.setZoomSwipeStyles(it,at)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(Je){if(T){if(qe=new Date,T=!1,n.core.outer.removeClass("lg-zoom-dragging"),ae&&(t.x!==a.x||t.y!==a.y)){a=n.getDragCords(Je,Math.abs(n.rotateValue));var at=qe.valueOf()-Ge.valueOf();n.touchendZoom(t,a,Ce,Be,at,n.rotateValue)}ae=!1}n.core.outer.removeClass("lg-grabbing").addClass("lg-grab")})},r.prototype.closeGallery=function(){this.resetZoom()},r.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},r}();var $r=s(94327),ir=s(40520),Nn=s(92181);function Mi(r,n){1&r&&(e.\u0275\u0275elementStart(0,"div",10),e.\u0275\u0275element(1,"i",11),e.\u0275\u0275elementEnd())}const Fi=function(r){return{open:r}};function xr(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",12),e.\u0275\u0275listener("menuOpened",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().isMenuOpen=!0})("menuClosed",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().isMenuOpen=!1})("click",function(T){return T.stopPropagation()}),e.\u0275\u0275element(1,"i",9),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275nextContext(),a=e.\u0275\u0275reference(4);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(2,Fi,t.isMenuOpen))("matMenuTriggerFor",a)}}function Xr(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275text(1),e.\u0275\u0275elementContainerEnd()),2&r){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.downloadLabelOverride.small," ")}}function ar(r,n){if(1&r&&(e.\u0275\u0275text(0),e.\u0275\u0275pipe(1,"translate")),2&r){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275textInterpolate2(" ",t.photoFormat," (",e.\u0275\u0275pipeBind1(1,2,"SMALL"),") ")}}function Pr(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",6),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().onDownloadSmall()}),e.\u0275\u0275template(1,Xr,2,1,"ng-container",7),e.\u0275\u0275template(2,ar,2,4,"ng-template",null,13,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275element(4,"i",9),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275reference(3),a=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.downloadLabelOverride)("ngIfElse",t)}}function yn(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275text(1),e.\u0275\u0275elementContainerEnd()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.downloadLabelOverride.large," ")}}function Bn(r,n){1&r&&(e.\u0275\u0275text(0),e.\u0275\u0275pipe(1,"translate")),2&r&&e.\u0275\u0275textInterpolate1(" Full-Size (",e.\u0275\u0275pipeBind1(1,1,"LARGE"),") ")}let or=(()=>{class r{constructor(t,a){this.http=t,this.appConfigService=a,this.image=null,this.isDownloadAvailable=!1,this.selectionMode=!1,this.nativeDownload=!1,this.isSelected=!1,this.loading=!0,this.downloadRequested=new e.EventEmitter,this.isMenuOpen=!1,this.downloadLabelOverride=this.appConfigService.deliveryLabelOverride,this.photoFormat=this.appConfigService.photo
1Format}onDownloadSmall(){this.nativeDownload?this.emitDownload(F.w$1.Medium):this.saveMlsPhoto()}onDownloadLarge(){this.nativeDownload?this.emitDownload(F.w$1.Original):this.saveFullSizePhoto()}emitDownload(t){this.image&&this.downloadRequested.emit({id:this.image.id,tier:t})}saveMlsPhoto(){var t,a,T;const ae=null===(a=null===(t=this.image)||void 0===t?void 0:t.webRes)||void 0===a?void 0:a.url;if(!ae)return;const Ce=`${this.appConfigService.photoFormatKey}_${(null===(T=this.image)||void 0===T?void 0:T.name)||"image.jpg"}`;this.downloadFile(ae,Ce)}saveFullSizePhoto(){var t,a,T,ae,Ce,Be;return(0,Oe.mG)(this,void 0,void 0,function*(){const Ge=null===(a=null===(t=this.image)||void 0===t?void 0:t.metadata)||void 0===a?void 0:a.dropboxId,qe=null===(ae=null===(T=this.image)||void 0===T?void 0:T.metadata)||void 0===ae?void 0:ae.parentFolder,nt=null===(Ce=this.image)||void 0===Ce?void 0:Ce.name;if(nt)try{let it=`${this.appConfigService.coreAppUrl}/api/v1/dropbox/storage/file-temporary-link`;if(Ge)it+=`?dropboxId=${Ge}`;else{if(!qe)return;it+=`?folderPath=${encodeURIComponent(qe)}&fileName=${encodeURIComponent(nt)}`}const Je=yield this.http.get(it).toPromise(),at=(null===(Be=null==Je?void 0:Je.result)||void 0===Be?void 0:Be.link)||"";if(!at)throw new Error(`Could not retrieve file link for "${nt}".`);this.downloadFile(at,nt)}catch(it){console.error("File download failed:",it)}})}downloadFile(t,a){!t||fetch(t).then(T=>T.blob()).then(T=>(0,$r.saveAs)(T,a)).catch(T=>console.error("Error downloading image: ",T))}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275directiveInject(ir.HttpClient),e.\u0275\u0275directiveInject(F._ZM))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["tn-image-tile"]],hostVars:4,hostBindings:function(t,a){2&t&&e.\u0275\u0275classProp("selected",a.isSelected)("loading",a.loading)},inputs:{image:"image",isDownloadAvailable:"isDownloadAvailable",selectionMode:"selectionMode",nativeDownload:"nativeDownload",isSelected:"isSelected"},outputs:{downloadRequested:"downloadRequested"},decls:11,vars:8,consts:[["draggable","false",3,"src","load"],["class","absolute top-12 left-12",4,"ngIf"],["class","download-button",3,"ngClass","matMenuTriggerFor","menuOpened","menuClosed","click",4,"ngIf"],[1,"app-v2","download-image-menu"],["menu","matMenu"],["mat-menu-item","","class","download-image-menu-item",3,"click",4,"ngIf"],["mat-menu-item","",1,"download-image-menu-item",3,"click"],[4,"ngIf","ngIfElse"],["defaultLargeLabel",""],["uiIcon","download"],[1,"absolute","top-12","left-12"],["size","32","uiIcon","check_circle","uiIconVariant","filled",1,"rounded-full","bg-white","text-brand-50","w-28","h-28"],[1,"download-button",3,"ngClass","matMenuTriggerFor","menuOpened","menuClosed","click"],["defaultSmallLabel",""]],template:function(t,a){if(1&t&&(e.\u0275\u0275elementStart(0,"img",0),e.\u0275\u0275listener("load",function(){return a.loading=!1}),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(1,Mi,2,0,"div",1),e.\u0275\u0275template(2,xr,2,4,"button",2),e.\u0275\u0275elementStart(3,"mat-menu",3,4),e.\u0275\u0275template(5,Pr,5,2,"a",5),e.\u0275\u0275elementStart(6,"a",6),e.\u0275\u0275listener("click",function(){return a.onDownloadLarge()}),e.\u0275\u0275template(7,yn,2,1,"ng-container",7),e.\u0275\u0275template(8,Bn,2,3,"ng-template",null,8,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275element(10,"i",9),e.\u0275\u0275elementEnd()()),2&t){const T=e.\u0275\u0275reference(9);e.\u0275\u0275classProp("hidden",a.loading),e.\u0275\u0275property("src",null==a.image||null==a.image.thumbnail?null:a.image.thumbnail.url,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.isSelected),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.isDownloadAvailable&&!a.selectionMode&&!a.loading),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",null==a.image||null==a.image.webRes?null:a.image.webRes.url),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.downloadLabelOverride)("ngIfElse",T)}},directives:[l.NgIf,fe.a,l.NgClass,Nn.p6,Nn.VK,Nn.OP],pipes:[U.X$],styles:["[_nghost-%COMP%]{display:block;cursor:pointer}@keyframes pulse{50%{opacity:.5}}.loading[_nghost-%COMP%]{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;--tw-bg-opacity: 1;background-color:rgb(246 246 246 / var(--tw-bg-opacity, 1))}.selected[_nghost-%COMP%]{border-width:4px;border-color:var(--brand-50, #228BE6)}img[_ngcontent-%COMP%]{border-radius:0}.download-button[_ngcontent-%COMP%]{position:absolute;bottom:.75rem;right:.75rem;display:flex;align-items:center;justify-content:center;border-radius:9999px;padding:.5rem;background:rgba(0,0,0,.35)}.download-button[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.download-button.open[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.download-button.open[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{color:var(--brand-50, #228BE6)} .app-v2.mat-menu-panel.download-image-menu .download-image-menu-item{display:flex;justify-content:space-between;font-size:.875rem;font-weight:400;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(20 20 20 / var(--tw-text-opacity, 1));min-width:240px} .app-v2.mat-menu-panel.download-image-menu .download-image-menu-item>i{--tw-text-opacity: 1;color:rgb(175 175 175 / var(--tw-text-opacity, 1))} .app-v2.mat-menu-panel.download-image-menu .download-image-menu-item:hover, .app-v2.mat-menu-panel.download-image-menu .download-image-menu-item:hover>i{background-color:transparent;color:var(--brand-50, #228BE6)}"],changeDetection:0}),r})();function Yr(r,n){1&r&&e.\u0275\u0275element(0,"div",6)}function Ni(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tn-image-tile",8),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const T=e.\u0275\u0275nextContext(2).$implicit;return e.\u0275\u0275nextContext(2).onTileClick(T.id)})("downloadRequested",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).downloadRequested.emit(T)}),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275nextContext(2).$implicit,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("image",t)("selectionMode",a.selectionMode)("isSelected",a.imagesSelection.has(t.id))("isDownloadAvailable",a.isDownloadAvailable)("nativeDownload",a.nativeDownload)}}
1function kr(r,n){if(1&r&&e.\u0275\u0275template(0,Ni,1,5,"tn-image-tile",7),2&r){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("ngIf",null==t.thumbnail?null:t.thumbnail.url)}}function Bi(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Yr,1,0,"div",4),e.\u0275\u0275template(2,kr,1,1,"ng-template",null,5,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementContainerEnd()),2&r){const t=n.$implicit,a=e.\u0275\u0275reference(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.pending)("ngIfElse",a)}}function qr(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"ngx-masonry",2),e.\u0275\u0275template(2,Bi,4,2,"ng-container",3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("options",t.masonrySettings)("ordered",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.images)("ngForTrackBy",t.trackBy)}}let Jt=class{constructor(n){this.elementRef=n,this.showMasonryItems=!0,this.masonrySettings={gutter:8,horizontalOrder:!0,fitWidth:!0},this.masonryItemsObservers=[],this.observedMasonryItems=[],this.galleryImages=[],this.gallerySettings={mode:"lg-fade",addClass:"lg-delivery-gallery",preload:2,download:!1,thumbnail:!0,dynamic:!0,dynamicEl:[],zoom:!1,fullScreen:!0,plugins:[Gr,Hr,Ur],mobileSettings:{zoom:!0}},this.images=[],this.isPreview=!1,this.isDownloadAvailable=!1,this.selectionMode=!1,this.horizontalOrder=!1,this.nativeDownload=!1,this.imagesSelection=new Set,this.toggleSelection=new e.EventEmitter,this.galleryOpen=new e.EventEmitter,this.galleryClose=new e.EventEmitter,this.showAssetsProtection=new e.EventEmitter,this.downloadRequested=new e.EventEmitter,this.containerBottomPadding="100vh",this.onInit=t=>{this.gallery=t.instance},this.onClose=()=>{this.galleryClose.emit(),document.getElementsByClassName("lg-delivery-gallery")[0].removeEventListener("contextmenu",this.onContextMenu)},this.onContextMenu=t=>(this.isPreview||this.showAssetsProtection.emit(),null==t||t.preventDefault(),null==t||t.stopPropagation(),!1),this.updateMasonrySettings=t=>{this.setBottomPadding("100vh"),setTimeout(()=>{this.showMasonryItems=!1,this.masonrySettings=Object.assign(Object.assign({},this.masonrySettings),t),setTimeout(()=>{this.showMasonryItems=!0,setTimeout(()=>{this.recalculateMasonryItemsLayout(),this.setBottomPadding()})})})}}ngOnChanges(n){var t,a;this.galleryImages=this.images.filter(Ce=>!Ce.pending);const T=this.galleryImages.map(Ce=>{var Be,Ge;return{src:(null===(Be=Ce.webRes)||void 0===Be?void 0:Be.url)||"",thumb:(null===(Ge=Ce.thumbnail)||void 0===Ge?void 0:Ge.url)||"",title:Ce.name}});this.hasSlidesChanged(T)&&(this.gallerySettings=Object.assign(Object.assign({},this.gallerySettings),{dynamicEl:T}),null===(t=this.gallery)||void 0===t||t.refresh(T));const ae=Boolean(null===(a=n.horizontalOrder)||void 0===a?void 0:a.currentValue);this.masonrySettings.horizontalOrder!==ae&&this.updateMasonrySettings({horizontalOrder:ae})}ngAfterViewInit(){this.calculateMasonryItemsWidth(),this.observeMasonryItems(),this.listenToWindowResize(),setTimeout(()=>this.setBottomPadding())}onTileClick(n){this.selectionMode?this.toggleSelection.emit(n):this.openGallery(this.galleryImages.findIndex(t=>t.id===n))}openGallery(n){this.gallery.openGallery(n),this.galleryOpen.emit(),(!this.isDownloadAvailable||this.isPreview)&&document.getElementsByClassName("lg-delivery-gallery")[0].addEventListener("contextmenu",this.onContextMenu)}hasSlidesChanged(n){const t=this.gallerySettings.dynamicEl||[];return t.length!==n.length||n.some((a,T)=>a.src!==t[T].src||a.thumb!==t[T].thumb||a.title!==t[T].title)}trackBy(n,t){return t.id}recalculateMasonryItemsLayout(){this.calculateMasonryItemsWidth(),this.masonry&&(this.masonry.reloadItems(),this.masonry.layout())}listenToWindowResize(){(0,_.R)(window,"resize").pipe((0,x.b)(300),(0,le.t)(this)).subscribe(()=>{this.recalculateMasonryItemsLayout()})}observeMasonryItems(){this.masonryItemsObservers.length>
10&&(this.masonryItemsObservers.forEach((n,t)=>n.unobserve(this.observedMasonryItems[t])),this.masonryItemsObservers=[]),this.observedMasonryItems=Array.from(document.querySelectorAll(".masonry-item")),this.observedMasonryItems.forEach(n=>{const t=new IntersectionObserver(([a])=>{a.intersectionRatio>0&&!n.classList.contains("animate")&&n.classList.add("animate")},{threshold:[0]});t.observe(n),this.masonryItemsObservers.push(t)})}calculateMasonryItemsWidth(){const t=this.elementRef.nativeElement.getBoundingClientRect().width;let a=1;[{width:0,cols:2},{width:768,cols:3},{width:1024,cols:4},{width:1280,cols:5},{width:1536,cols:6}].forEach(ae=>{const{width:Ce,cols:Be}=ae;t>=Ce&&(a=Be)});const T=Math.floor((t-(this.masonrySettings.gutter||0)*(a-1))/a);Array.from(document.querySelectorAll(".masonry-item")).forEach(ae=>{ae.style.width=`${T}px`})}setBottomPadding(n="0px"){this.containerBottomPadding=n}};Jt.\u0275fac=function(n){return new(n||Jt)(e.\u0275\u0275directiveInject(e.ElementRef))},Jt.\u0275cmp=e.\u0275\u0275defineComponent({type:Jt,selectors:[["tn-image-list"]],viewQuery:function(n,t){if(1&n&&e.\u0275\u0275viewQuery(q,5),2&n){let a;e.\u0275\u0275queryRefresh(a=e.\u0275\u0275loadQuery())&&(t.masonry=a.first)}},hostVars:2,hostBindings:function(n,t){2&n&&e.\u0275\u0275styleProp("padding-bottom",t.containerBottomPadding)},inputs:{images:"images",isPreview:"isPreview",isDownloadAvailable:"isDownloadAvailable",selectionMode:"selectionMode",horizontalOrder:"horizontalOrder",nativeDownload:"nativeDownload",imagesSelection:"imagesSelection"},outputs:{toggleSelection:"toggleSelection",galleryOpen:"galleryOpen",galleryClose:"galleryClose",showAssetsProtection:"showAssetsProtection",downloadRequested:"downloadRequested"},features:[e.\u0275\u0275NgOnChangesFeature],decls:2,vars:4,consts:[[4,"ngIf"],[3,"settings","onInit","onAfterClose"],[1,"mx-auto",3,"options","ordered"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngxMasonryItem","","class","masonry-item pending-tile",4,"ngIf","ngIfElse"],["imageTile",""],["ngxMasonryItem","",1,"masonry-item","pending-tile"],["ngxMasonryItem","","class","masonry-item",3,"image","selectionMode","isSelected","isDownloadAvailable","nativeDownload","click","downloadRequested",4,"ngIf"],["ngxMasonryItem","",1,"masonry-item",3,"image","selectionMode","isSelected","isDownloadAvailable","nativeDownload","click","downloadRequested"]],template:function(n,t){1&n&&(e.\u0275\u0275template(0,qr,3,4,"ng-container",0),e.\u0275\u0275element(1,"lightgallery",1)),2&n&&(e.\u0275\u0275property("ngIf",t.showMasonryItems),e.\u0275\u0275advance(1),e.\u0275\u0275property("settings",t.gallerySettings)("onInit",t.onInit)("onAfterClose",t.onClose))},directives:[l.NgIf,q,l.NgForOf,G,or,A],styles:["@keyframes skeleton-shimmer{0%{background-position:-400px 0}to{background-position:400px 0}}[_nghost-%COMP%]{display:block}.masonry-item[_ngcontent-%COMP%]{margin-bottom:.5rem}.masonry-item.animate[_ngcontent-%COMP%]{animation:moveUp .65s ease forwards}.pending-tile[_ngcontent-%COMP%]{position:relative;overflow:hidden;background:linear-gradient(to right,#F6F6F6 8%,#E2E2E2 18%,#F6F6F6 33%);background-size:1000px 100%;animation:skeleton-shimmer 1.4s linear infinite;aspect-ratio:16/10}@keyframes moveUp{0%{transform:translateY(100px)}to{transform:translateY(0)}}"]}),Jt=(0,Oe.gn)([(0,le.c)(),(0,Oe.w6)("design:paramtypes",[e.ElementRef])],Jt);var Qr=s(44409),Kr=s(11066);function Vi(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",6),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.buffer.length," ")}}const zi=function(r){return{selected:r}},Er=function(){return{x:0,y:0}};function Jr(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",2),e.\u0275\u0275listener("click",function(){const ae=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275nextContext().onToggleSelect(ae.id)})("cdkDragStarted",function(){const ae=e.\u0275\u0275restoreView(t).index;return e.\u0275\u0275nextContext().onDragStart(ae)})("cdkDragMoved",function(T){const Ce=e.\u0275\u0275restoreView(t).index;return e.\u0275\u0275nextContext().onMove(T,Ce)})("cdkDragEnded",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().onDrop()}),e.\u0275\u0275elementStart(1,"div",3),e.\u0275\u0275element(2,"img",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,Vi,2,1,"div",5),e.\u0275\u0275elementEnd()}if(2&r){const t=n.$implicit,a=n.index,T=e.\u0275\u0275nextContext();let ae;e.\u0275\u0275styleProp("height",T.rowHeight,"px")("width",T.colWidth,"px"),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(10,zi,T.isSelected(t.id)))("cdkDragBoundary",T.containerRef)("cdkDragFreeDragPosition",null!==(ae=T.getItemPosition(a))&&void 0!==ae?ae:e.\u0275\u0275pureFunction0(12,Er))("cdkDragDisabled",!T.isSelected(t.id)),e.\u0275\u0275advance(2),e.\u0275\u0275property("src",(null==t.thumbnail?null:t.thumbnail.url)||t.webRes.url,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",T.buffer.length>1)}}let Zr=(()=>{class r extends ue.F8b{constructor(t,a){super(t,a),this.cdr=t,this.containerRef
1=a,this.reorderImages=new e.EventEmitter,this.imagesList=[],this.buffer=[],this.selectedIds=new Set}set images(t){this.imagesList=t,this.photoItemsLength=t.length}isSelected(t){return this.selectedIds.has(t)}onToggleSelect(t){this.moving||(this.isSelected(t)?this.selectedIds.delete(t):this.selectedIds.add(t))}onDragStart(t){this.moving=!0,this.buffer=this.imagesList.filter(T=>this.isSelected(T.id)),this.imagesList=this.imagesList.filter((T,ae)=>t===ae||!this.isSelected(T.id));const a=this.imagesList.findIndex(T=>this.isSelected(T.id));this.fromIndex=a,this.toIndex=a,this.photoItemsLength=this.imagesList.length}onMove(t,a){const T=this.imagesList.find(Ce=>this.isSelected(Ce.id)),ae=this.buffer.findIndex(Ce=>Ce.id===(null==T?void 0:T.id));super.onMove(t,a+ae)}onDrop(){var t;this.imagesList=this.imagesList.filter((a,T)=>T!==this.fromIndex),this.imagesList.splice(null!==(t=this.toIndex)&&void 0!==t?t:0,0,...this.buffer),this.reorderImages.emit(this.imagesList),super.onDrop(),setTimeout(()=>{this.buffer=[],this.selectedIds.clear()})}trackBy(t,a){return a.id}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275directiveInject(e.ChangeDetectorRef),e.\u0275\u0275directiveInject(e.ElementRef))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["tn-image-list-reorder"]],inputs:{images:"images"},outputs:{reorderImages:"reorderImages"},features:[e.\u0275\u0275InheritDefinitionFeature],decls:2,vars:2,consts:[["cdkDrag","","class","image-tile",3,"ngClass","cdkDragBoundary","cdkDragFreeDragPosition","cdkDragDisabled","height","width","click","cdkDragStarted","cdkDragMoved","cdkDragEnded",4,"ngFor","ngForOf","ngForTrackBy"],[1,"absolute","inset-0","bg-red-50","invisible",3,"resized"],["cdkDrag","",1,"image-tile",3,"ngClass","cdkDragBoundary","cdkDragFreeDragPosition","cdkDragDisabled","click","cdkDragStarted","cdkDragMoved","cdkDragEnded"],[1,"image-wrap"],[3,"src"],["class","counter",4,"ngIf"],[1,"counter"]],template:function(t,a){1&t&&(e.\u0275\u0275template(0,Jr,4,13,"div",0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275listener("resized",function(){return a.initGridConfig()}),e.\u0275\u0275elementEnd()),2&t&&e.\u0275\u0275property("ngForOf",a.imagesList)("ngForTrackBy",a.trackBy)},directives:[l.NgForOf,Qr.Zt,l.NgClass,l.NgIf,Kr.a5],styles:["[_nghost-%COMP%]{position:relative;width:100%;--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.image-tile[_ngcontent-%COMP%]{position:absolute;top:0;left:0;cursor:pointer;border-width:4px;border-color:transparent}.image-tile[_ngcontent-%COMP%] .image-wrap[_ngcontent-%COMP%]{height:100%;width:100%}.image-tile[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{inset:0;height:100%;width:100%;border-radius:0;object-fit:cover}.image-tile[_ngcontent-%COMP%] .counter[_ngcontent-%COMP%]{position:absolute;bottom:1rem;right:1rem;display:none;height:1.5rem;width:1.5rem;align-items:center;justify-content:center;border-radius:9999px;background-color:var(--brand-50, #228BE6);font-weight:600;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.image-tile.cdk-drag-dragging[_ngcontent-%COMP%]{border-style:none}.image-tile.cdk-drag-dragging[_ngcontent-%COMP%] .counter[_ngcontent-%COMP%]{display:flex}.image-tile[_ngcontent-%COMP%]:not(.cdk-drag-dragging){will-change:transform;transition:transform .3s cubic-bezier(0,0,.2,1)}.image-tile.selected[_ngcontent-%COMP%]{cursor:move}.image-tile.selected[_ngcontent-%COMP%] .image-wrap[_ngcontent-%COMP%]{border-width:4px;border-color:var(--brand-50, #228BE6)}.cdk-drag-dragging[_ngcontent-%COMP%]{z-index:10;transition:box-shadow .2s cubic-bezier(0,0,.2,1);box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}"]}),r})();var ei=s(32408);function Wi(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"a",4,5),e.\u0275\u0275element(2,"i",6),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275reference(1),a=e.\u0275\u0275nextContext();e.\u0275\u0275property("href",a.downloadUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275attribute("aria-disabled",a.isNoneSelected()||null),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,4,"DOWNLOAD_SELECTED"),"\n")}}function ti(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",7,8),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().download.emit()}),e.\u0275\u0275element(2,"i",6),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275reference(1),a=e.\u0275\u0275nextContext();e.\u0275\u0275property("disabled",a.isNoneSelected()),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,3,"DOWNLOAD_SELECTED"),"\n")}}let _n=(()=>
1{class r{constructor(){this.totalNumber=0,this.imagesSelection=new Set,this.downloadUrl="",this.nativeDownload=!1,this.selectAll=new e.EventEmitter,this.deselectAll=new e.EventEmitter,this.download=new e.EventEmitter}isAllSelected(){return 0!==this.totalNumber&&this.totalNumber===this.imagesSelection.size}isNoneSelected(){return 0===this.imagesSelection.size}isIndeterminate(){return!this.isNoneSelected()&&!this.isAllSelected()}onCheckboxClick(){this.isAllSelected()?this.deselectAll.emit():this.selectAll.emit()}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["tn-selected-images-toolbar"]],inputs:{totalNumber:"totalNumber",imagesSelection:"imagesSelection",downloadUrl:"downloadUrl",nativeDownload:"nativeDownload"},outputs:{selectAll:"selectAll",deselectAll:"deselectAll",download:"download"},decls:5,vars:5,consts:[[1,"select-all",3,"checked","indeterminate","change"],[1,"px-12","body"],["class","mr-8","uiBtnSize","x-small","uiBtnTheme","main","themeMode","primary",3,"href",4,"ngIf"],["class","mr-8","uiBtnSize","small","uiBtnTheme","main","themeMode","primary",3,"disabled","click",4,"ngIf"],["uiBtnSize","x-small","uiBtnTheme","main","themeMode","primary",1,"mr-8",3,"href"],["downloadSelectedLink","btnSize"],["uiIcon","download",3,"size"],["uiBtnSize","small","uiBtnTheme","main","themeMode","primary",1,"mr-8",3,"disabled","click"],["downloadSelectedButton","btnSize"]],template:function(t,a){1&t&&(e.\u0275\u0275elementStart(0,"mat-checkbox",0),e.\u0275\u0275listener("change",function(){return a.onCheckboxClick()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(1,"span",1),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,Wi,5,6,"a",2),e.\u0275\u0275template(4,ti,5,5,"button",3)),2&t&&(e.\u0275\u0275property("checked",a.isAllSelected())("indeterminate",a.isIndeterminate()),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",a.imagesSelection.size," items"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!a.nativeDownload),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.nativeDownload))},directives:[N.oG,l.NgIf,me.s,Ne.V,fe.a],pipes:[U.X$],styles:["[_nghost-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] a[aria-disabled=true][_ngcontent-%COMP%]{pointer-events:none}"]}),r})();var En=s(81736),In=s(92338);function ni(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",2),e.\u0275\u0275listener("click",function(){const ae=e.\u0275\u0275restoreView(t).index;return e.\u0275\u0275nextContext().thumbClick.emit(ae)}),e.\u0275\u0275elementStart(1,"div",3),e.\u0275\u0275element(2,"img",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"span",5),e.\u0275\u0275element(4,"i",6),e.\u0275\u0275text(5," 360\xb0 "),e.\u0275\u0275elementEnd()()}if(2&r){const t=n.$implicit;e.\u0275\u0275attribute("aria-label","Open 360 view of "+t.name),e.\u0275\u0275advance(2),e.\u0275\u0275property("src",(null==t.thumbnail?null:t.thumbnail.url)||t.webRes.url,e.\u0275\u0275sanitizeUrl)("alt",t.name),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",16)}}let zn=(()=>{class r{constructor(){this.images=[],this.thumbClick=new e.EventEmitter,this.trackById=(t,a)=>a.id}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["tn-delivery-panorama-section"]],inputs:{images:"images"},outputs:{thumbClick:"thumbClick"},decls:2,vars:2,consts:[[1,"pano-grid"],["type","button","class","pano-thumb",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],["type","button",1,"pano-thumb",3,"click"],[1,"pano-thumb-crop"],["loading","lazy",3,"src","alt"],[1,"pano-badge"],["uiIcon","360",3,"size"]],template:function(t,a){1&t&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,ni,6,4,"button",1),e.\u0275\u0275elementEnd()),2&t&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",a.images)("ngForTrackBy",a.trackById))},directives:[l.NgForOf,fe.a],styles:['[_nghost-%COMP%]{display:block}.pano-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));grid-gap:1rem;gap:1rem;padding-left:1rem;padding-right:1rem}@media (min-width: 640px){.pano-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;padding-left:0;padding-right:0}}@media (min-width: 1024px){.pano-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}.pano-thumb[_ngcontent-%COMP%]{position:relative;margin:0;display:block;width:100%;cursor:pointer;overflow:hidden;border-radius:.5rem;border-width:0px;background-color:transparent;padding:0;transition:transform .15s ease-out,box-shadow .15s ease-out}.pano-thumb[_ngcontent-%COMP%]:hover, .pano-thumb[_ngcontent-%COMP%]:focus-visible{transform:translateY(-2px);box-shadow:0 8px 24px #0000001f}.pano-thumb[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--brand-50, #228BE6);outline-offset:2px}.pano-thumb-crop[_ngcontent-%COMP%]{position:relative;width:100%;overflow:hidden;--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1));aspect-ratio:16/9}@supports not (aspect-ratio: 16/9){.pano-thumb-crop[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:56.25%}}.pano-thumb-crop[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;object-position:center}.pano-thumb-crop[_ngcontent-%COMP%]:after{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.25) 0%,rgba(0,0,0,0) 18%,rgba(0,0,0,0) 82%,rgba(0,0,0,.25) 100%)}.pano-badge[_ngcontent-%COMP%]{pointer-events:none;position:absolute;top:.75rem;left:.75rem;display:inline-flex;align-items:center;gap:.25rem;border-radius:9999px;padding:.25rem .625rem;font-size:.75rem;font-weight:600;line-height:1;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));background:rgba(0,0,0,.6)}'],changeDetection:0}),r})();var bn=s(22313);let Wn=(()=>
1{class r{constructor(t){this.sanitizer=t}set url(t){this._url=this.sanitizer.bypassSecurityTrustResourceUrl(t)}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275directiveInject(bn.DomSanitizer))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["tn-property-tour"]],inputs:{url:"url"},decls:1,vars:1,consts:[[1,"w-100","h-100",3,"src"]],template:function(t,a){1&t&&e.\u0275\u0275element(0,"iframe",0),2&t&&e.\u0275\u0275property("src",a._url,e.\u0275\u0275sanitizeResourceUrl)},styles:[""],changeDetection:0}),r})();var ln=s(25245);function Ir(r,n){if(1&r&&e.\u0275\u0275element(0,"img",12),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("src",t.icon,e.\u0275\u0275sanitizeUrl)}}function Ui(r,n){if(1&r&&e.\u0275\u0275element(0,"i",13),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("uiIcon",t.iconName)("size",32)}}function Tn(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"a",14,15),e.\u0275\u0275element(2,"i",16),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275reference(1);e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,2,"DOWNLOAD_ALL")," ")}}function ri(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",23),e.\u0275\u0275listener("click",function(T){e.\u0275\u0275restoreView(t);const ae=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275nextContext().download(T,ae)}),e.\u0275\u0275elementStart(1,"mat-icon",21),e.\u0275\u0275text(2,"download"),e.\u0275\u0275elementEnd()()}}const ji=function(r,n){return["/order-dashboard",r,"delivery","flyer",n]};function sr(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",17),e.\u0275\u0275element(2,"img",18),e.\u0275\u0275elementStart(3,"div",19)(4,"button",20)(5,"mat-icon",21),e.\u0275\u0275text(6,"edit"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(7,ri,3,0,"button",22),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()),2&r){const t=n.$implicit,a=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("src",t.thumbnailUrl,e.\u0275\u0275sanitizeUrl),e.\u0275\u0275property("width",a.width),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction2(4,ji,a.orderId,t.id)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",a.isDownloadAvailable)}}const Hi=function(r){return["/order-dashboard",r,"delivery","flyer"]};let ii=(()=>{class r{constructor(){this.orderId="",this.flyers=[],this.isDownloadAvailable=!1,this.title="",this.description="",this.icon=""}download(t,a){if(t.stopPropagation(),t.preventDefault(),a.highResUrl||a.pdfUrl){const T=a.name||a.type||"flyer",ae=a.pdfUrl?`${T}.pdf`:`${T}.jpg`;fetch(a.pdfUrl||a.highResUrl).then(Be=>Be.blob()).then(Be=>(0,$r.saveAs)(Be,ae)).catch(Be=>console.error("Error downloading image: ",Be))}}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["tn-flyers-list"]],inputs:{orderId:"orderId",flyers:"flyers",isDownloadAvailable:"isDownloadAvailable",title:"title",description:"description",icon:"icon",iconName:"iconName",width:"width"},decls:19,vars:15,consts:[[1,"flex","flex-col","justify-center","items-center","mx-3",3,"wpAnimation","wpOffset"],[1,"mt-12","mb-0","max-w-7xl","w-full","flex","flex-wrap","items-center","justify-center","lg:justify-between"],[1,"section-info"],["alt","",3,"src",4,"ngIf"],[3,"uiIcon","size",4,"ngIf"],[1,"action-buttons"],["uiBtnSize","small","uiBtnTheme","main","themeMode","secondary","target","_blank",3,"routerLink"],["createFlyerButton","btnSize"],["uiIcon","add_photo_alternate",3,"size"],["uiBtnSize","small","uiBtnTheme","main","themeMode","secondary","download","",3,"href",4,"ngIf"],[1,"max-w-7xl","flex","flex-wrap","items-start","justify-center","lg:justify-start"],[4,"ngFor","ngForOf"],["alt","",3,"src"],[3,"uiIcon","size"],["uiBtnSize","small","uiBtnTheme","main","themeMode","secondary","download","",3,"href"],["downloadAllFlyersButton","btnSize"],["uiIcon","cloud_download",3,"size"],[1,"relative","m-2"],["alt","flyer",1,"border-2",3,"src","width"],[1,"absolute","top-12","right-12","flex","items-center","gap-px"],[1,"action-icon",3,"routerLink"],[1,"text-white","p-1.5"],["class","action-icon",3,"click",4,"ngIf"],[1,"action-icon",3,"click"]],template:function(t,a){if(1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2),e.\u0275\u0275template(3,Ir,1,1,"img",3),e.\u0275\u0275template(4,Ui,1,2,"i",4),e.\u0275\u0275elementStart(5,"div")(6,"h2"),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"p"),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(10,"div",5)(11,"a",6,7),e.\u0275\u0275element(13,"i",8),e.\u0275\u0275text(14),e.\u0275\u0275pipe(15,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(16,Tn,5,4,"a",9),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(17,"div",10),e.\u0275\u0275template(18,sr,8,7,"ng-container",11),e.\u0275\u0275elementEnd()()),2&t){const T=e.\u0275\u0275reference(12);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",a.icon),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.iconName),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(a.title),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(a.description),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction1(13,Hi,a.orderId)),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",T.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(15,11,"CREATE_NEW")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!1),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",a.flyers)}},directives:[Jn,l.NgIf,fe.a,Y.yS,me.s,Ne.V,l.NgForOf,Y.rH,ln.Hw],pipes:[U.X$],styles:[".section-info[_ngcontent-%COMP%]{margin-bottom:0;display:flex;flex-direction:row;gap:.75rem}@media (min-width: 640px){.section-info[_ngcontent-%COMP%]{margin-bottom:.125rem;margin-right:.375rem}}.section-info[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:600;line-height:2.25rem}@media (min-width: 640px){.section-info[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.5rem}}.section-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-weight:400;line-height:1.5rem}@media (min-width: 640px){.section-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem}}.section-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#666}.action-buttons[_ngcontent-%COMP%]{margin-top:.375rem;margin-bottom:.375rem;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:.375rem}.action-icon[_ngcontent-%COMP%]{height:2rem;width:2rem;padding:0;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));margin-right:1px;background:rgba(0,0,0,.75);border:1px solid rgba(0,0,0,.75)}.action-icon[_ngcontent-%COMP%]:first-child{border-start-start-radius:25%;border-end-start-radius:25%}.action-icon[_ngcontent-%COMP%]:last-child{border-end-end-radius:25%;border-start-end-radius:25%}"]}),r})();function Gi(r,n){1&r&&e.\u0275\u0275element(0,"tn-order-dashboard-header")}function $i(r,n){1&r&&e.\u0275\u0275element(0,"div",12)}const Xi=function(r){return{name:r}},Yi=function(r){return["/order-status",r]};function qi(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",13)(1,"h1",14),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"h4",15),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",16),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"a",17,18),e.\u0275\u0275element(12,"i",19),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275reference(11),a=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,5,"ORDER_DELIVERY")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,7,"ORDER_DELIVERY")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(9,9,"ORDER_DELIVERY_HINT",e.\u0275\u0275pureFunction1(12,Xi,a.companyName))," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction1(14,Yi,a.orderId)),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize)}}function Qi(r,n){if(1&r&&e.\u0275\u0275element(0,"ui-anchor-nav-tabs",31),2&r){const t=n.ngIf;e.\u0275\u0275nextContext(2);const a=e.\u0275\u0275reference(1);e.\u0275\u0275property("anchors",t)("scrollContainer",a)("useNativeScroller",!0)("borderless",!0)}}function Ki(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",40)(1,"ui-form-group",41)(2,"ui-form-row")(3,"ui-input",42),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementStart(5,"button",43,44),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const T=e.\u0275\u0275nextContext(4);
1return T.store.downloadAllPhotos(T.downloadTier.Original)}),e.\u0275\u0275element(7,"i",45),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(10,"ui-form-row")(11,"ui-input",46)(12,"button",43,47),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const T=e.\u0275\u0275nextContext(4);return T.store.downloadAllPhotos(T.downloadTier.Medium)}),e.\u0275\u0275element(14,"i",45),e.\u0275\u0275text(15),e.\u0275\u0275pipe(16,"translate"),e.\u0275\u0275elementEnd()()()()()}if(2&r){const t=e.\u0275\u0275reference(6),a=e.\u0275\u0275reference(13),T=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(3),e.\u0275\u0275property("value",T.downloadLabels.large)("readonly",!0)("label",e.\u0275\u0275pipeBind1(4,9,"DOWNLOAD_PHOTOS")),e.\u0275\u0275advance(4),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(9,11,"DOWNLOAD")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("value",T.downloadLabels.small)("readonly",!0),e.\u0275\u0275advance(3),e.\u0275\u0275property("size",a.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(16,13,"DOWNLOAD")," ")}}function Ji(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"a",52,60),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).store.downloadSelected()}),e.\u0275\u0275element(2,"i",45),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275reference(1);e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,2,"DOWNLOAD_SELECTED")," ")}}function Zi(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Ji,5,4,"a",51),e.\u0275\u0275elementStart(2,"button",52,53),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(5).store.selectAll()}),e.\u0275\u0275element(4,"i",54),e.\u0275\u0275elementStart(5,"span",55),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"button",52,56),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(5).store.deselectAll()}),e.\u0275\u0275element(10,"i",57),e.\u0275\u0275elementStart(11,"span",55),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"button",52,58),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(5).store.cancelSelection()}),e.\u0275\u0275element(16,"i",59),e.\u0275\u0275elementStart(17,"span",55),e.\u0275\u0275text(18),e.\u0275\u0275pipe(19,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&r){const t=e.\u0275\u0275reference(3),a=e.\u0275\u0275reference(9),T=e.\u0275\u0275reference(15),ae=e.\u0275\u0275nextContext(3).ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ae.hasSelection),e.\u0275\u0275advance(3),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,7,"SELECT_ALL")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("size",a.iconSize),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(13,9,"DESELECT_ALL")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("size",T.iconSize),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(19,11,"CANCEL")," ")}}function ai(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",52,64),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(7).store.enterSelectionMode()}),e.\u0275\u0275element(2,"i",65),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275reference(1);e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,2,"SELECT")," ")}}function ea(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,ai,5,4,"button",51),e.\u0275\u0275elementStart(2,"mat-slide-toggle",61),e.\u0275\u0275listener("change",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).store.changeExactOrder(T.checked)}),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"button",52,62),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).store.enterReorderMode()}),e.\u0275\u0275element(7,"i",63),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&r){const t=e.\u0275\u0275reference(6),a=e.\u0275\u0275nextContext(4).ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.isDownloadAvailable),e.\u0275\u0275advance(1),e.\u0275\u0275property("disableRipple",!0)("checked",a.exactOrder),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,6,"EXACT_ORDER_PHOTOS")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(9,8,"REORDER_PHOTOS")," ")}}function ta(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"mat-slider",66),e.\u0275\u0275listener("change",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).store.setImagesInRow(T.value)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"button",67),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).store.saveReorder()}),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"button",52),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).store.closeReorder()}),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&r){const t=e.\u0275\u0275nextContext(4).ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("max",12)("min",1)("step",1)("thumbLabel",!0)("value",t.imagesInRow),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",!t.orderChanged||t.reordering),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,8,"SAVE")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,10,"CLOSE")," ")}}function un(r,n){if(1&r&&(e.\u0275\u0275template(0,ea,10,10,"ng-container",3),e.\u0275\u0275template(1,ta,8,12,"ng-container",3)),2&r){const t=e.\u0275\u0275nextContext(3).ngIf;e.\u0275\u0275property("ngIf",!t.reorderMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.reorderMode)}}function Tr(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",48),e.\u0275\u0275template(1,Zi,20,13,"ng-container",49),e.\u0275\u0275template(2,un,2,2,"ng-template",null,50,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275reference(3),a=e.\u0275\u0275nextContext(2).ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.selectionMode)("ngIfElse",t)}}function oi(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tn-image-list",68),e.\u0275\u0275listener("toggleSelection",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).store.toggleSelected(T)})("downloadRequested",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).onDownloadRequested(T)})("showAssetsProtection",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).showAssetsProtectionMessage()}),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275nextContext(2).ngIf,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("images",t.images)("isDownloadAvailable",t.isDownloadAvailable)("isPreview",a.isPreview)("nativeDownload",!0)("selectionMode",t.selectionMode)("imagesSelection",t.imagesSelection)("horizontalOrder",t.exactOrder)}}function Or(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tn-image-list-reorder",69),e.\u0275\u0275listener("reorderImages",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).store.setDraftImages(T)}),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275nextContext(2).ngIf;e.\u0275\u0275property("images",t.draftImages)("colsNumber",t.imagesInRow)("padding",8)}}function cn(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ui-snack-bar")(1,"tn-selected-images-toolbar",70),e.\u0275\u0275listener("selectAll",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).store.selectAll()})("deselectAll",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).store.deselectAll()})("download",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).store.downloadSelected()}),e.\u0275\u0275elementEnd()()}if(2&r){const t=e.\u0275\u0275nextContext(2).ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("totalNumber",t.images.length)("imagesSelection",t.imagesSelection)("nativeDownload",!0)}}function dn(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",32)(1,"div",33)(2,"h2",34),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,Ki,17,15,"div",35),e.\u0275\u0275template(6,Tr,4,2,"div",36),e.\u0275\u0275template(7,oi,1,7,"tn-image-list",37),e.\u0275\u0275template(8,Or,1,3,"tn-image-list-reorder",38),e.\u0275\u0275elementStart(9,"div",39),e.\u0275\u0275template(10,cn,2,3,"ui-snack-bar",3),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext().ngIf,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,6,"PHOTOS")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isDownloadAvailable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!a.isPreview),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.reorderMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.reorderMode),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.selectionMode)}}function Gt(r,n){if(1&r&&(e.\u0275\u0275element(0,"ui-download-by-link",83),e.\u0275\u0275pipe(1,"translate")),2&r){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(1,3,"DOWNLOAD"))("v2",!0)("url",t.downloadUrl)}}function Un(r,n){1&r&&(e.\u0275\u0275elementStart(0,"span",84),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275element(2,"i",85),e.\u0275\u0275elementStart(3,"span",86),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()()),2&r&&(e.\u0275\u0275property("matTooltip",e.\u0275\u0275pipeBind1(1,2,"V
1IDEO_DOWNLOAD_PREPARING")),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(5,4,"DOWNLOAD")))}function si(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-row")(1,"div",77)(2,"ui-input",78),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275template(4,Gt,2,5,"ui-download-by-link",79),e.\u0275\u0275template(5,Un,6,6,"ng-template",null,80,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",81),e.\u0275\u0275element(8,"ui-open-in-new-tab",82),e.\u0275\u0275elementEnd()()()),2&r){const t=n.$implicit,a=n.index,T=e.\u0275\u0275reference(6);e.\u0275\u0275advance(2),e.\u0275\u0275property("readonly",!0)("value",t.name)("label",0===a?e.\u0275\u0275pipeBind1(3,6,"DOWNLOAD_VIDEO"):""),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.downloadUrl)("ngIfElse",T),e.\u0275\u0275advance(4),e.\u0275\u0275property("url",t.shareUrl)}}function Sn(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-row")(1,"div",77)(2,"ui-input",78),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275element(4,"ui-copy-to-clipboard",87),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",81),e.\u0275\u0275element(7,"ui-open-in-new-tab",82),e.\u0275\u0275elementEnd()()()),2&r){const t=n.$implicit,a=n.index;e.\u0275\u0275advance(2),e.\u0275\u0275property("readonly",!0)("value",t.name)("label",0===a?e.\u0275\u0275pipeBind1(3,7,"OPEN_VIDEO"):""),e.\u0275\u0275advance(2),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(5,9,"COPY"))("v2",!0)("value",t.shareUrl),e.\u0275\u0275advance(3),e.\u0275\u0275property("url",t.shareUrl)}}function li(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",73)(1,"div",74),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"ui-form-group",75),e.\u0275\u0275template(5,si,9,8,"ui-form-row",76),e.\u0275\u0275template(6,Sn,8,11,"ui-form-row",76),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext(2).ngIf,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,7,"DOWNLOAD_VIDEO_HINT")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.uploadedVideos)("ngForTrackBy",a.trackByVideoId),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.videos)("ngForTrackBy",a.trackByVideoId)}}function ui(r,n){if(1&r&&e.\u0275\u0275element(0,"mux-player",92),2&r){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275attribute("playback-id",t.playbackId)}}function lr(r,n){if(1&r&&e.\u0275\u0275element(0,"ui-video-player",93),2&r){const t=e.\u0275\u0275nextContext().$implicit,a=e.\u0275\u0275nextContext(2).ngIf;e.\u0275\u0275property("url",t.url||"")("allowDownload",a.isDownloadAvailable)}}function ci(r,n){if(1&r&&e.\u0275\u0275element(0,"ui-download-by-link",99),2&r){const t=e.\u0275\u0275nextContext(3).$implicit;e.\u0275\u0275property("url",t.downloadUrl)}}function di(r,n){1&r&&(e.\u0275\u0275elementStart(0,"span",100),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275element(2,"i",85),e.\u0275\u0275elementEnd()),2&r&&e.\u0275\u0275property("matTooltip",e.\u0275\u0275pipeBind1(1,1,"VIDEO_DOWNLOAD_PREPARING"))}function fi(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-input",96),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275template(2,ci,1,1,"ui-download-by-link",97),e.\u0275\u0275template(3,di,3,3,"ng-template",null,98,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275reference(4),a=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("readonly",!0)("value",e.\u0275\u0275pipeBind1(1,4,"DOWNLOAD_VIDEO")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.downloadUrl)("ngIfElse",t)}}function ur(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-input",96),e.\u0275\u0275element(1,"ui-copy-to-clipboard",101),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("readonly",!0)("value",t.name),e.\u0275\u0275advance(1),e.\u0275\u0275property("value",t.shareUrl)}}function hi(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-input",96),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275element(2,"ui-open-in-new-tab",102),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("readonly",!0)("value",e.\u0275\u0275pipeBind1(1,4,"OPEN_VIDEO")),e.\u0275\u0275advance(2),e.\u0275\u0275property("hint",e.\u0275\u0275pipeBind1(3,6,"SHARE_VIDEO_HINT"))("url",t.shareUrl)}}function pi(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-row")(1,"ui-input",103),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275element(3,"ui-copy-to-cl
1ipboard",87),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext(2).$implicit,a=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("readonly",!0)("label",e.\u0275\u0275pipeBind1(2,6,"EMBED_CODE"))("value",a.videoEmbedCode(t)),e.\u0275\u0275advance(2),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(4,8,"COPY"))("v2",!0)("value",a.videoEmbedCode(t))}}function na(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-group",94)(1,"ui-form-row",77),e.\u0275\u0275template(2,fi,5,6,"ui-input",95),e.\u0275\u0275template(3,ur,2,3,"ui-input",95),e.\u0275\u0275template(4,hi,4,8,"ui-input",95),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,pi,5,10,"ui-form-row",3),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.playbackId),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.playbackId),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.playbackId),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.playbackId)}}function ra(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",88),e.\u0275\u0275template(1,ui,1,1,"mux-player",89),e.\u0275\u0275template(2,lr,1,2,"ng-template",null,90,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275template(4,na,6,4,"ui-form-group",91),e.\u0275\u0275elementEnd()),2&r){const t=n.$implicit,a=e.\u0275\u0275reference(3),T=e.\u0275\u0275nextContext(2).ngIf;e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.playbackId)("ngIfElse",a),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",T.isDownloadAvailable)}}function ia(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",32)(1,"div",33)(2,"h2",34),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,li,7,9,"div",71),e.\u0275\u0275template(6,ra,5,5,"div",72),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext().ngIf,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,4,"VIDEO")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isDownloadAvailable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.videos)("ngForTrackBy",a.trackByVideoId)}}function aa(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",73)(1,"ui-form-group",106)(2,"ui-form-row")(3,"ui-input",107),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementStart(6,"button",43,108),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).store.downloadFloorPlans()}),e.\u0275\u0275element(8,"i",45),e.\u0275\u0275text(9),e.\u0275\u0275pipe(10,"translate"),e.\u0275\u0275elementEnd()()()()()}if(2&r){const t=e.\u0275\u0275reference(7);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(3),e.\u0275\u0275property("readonly",!0)("value",e.\u0275\u0275pipeBind1(4,7,"FLOOR_PLANS"))("label",e.\u0275\u0275pipeBind1(5,9,"DOWNLOAD_FLOOR_PLAN")),e.\u0275\u0275advance(5),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(10,11,"DOWNLOAD")," ")}}function cr(r,n){1&r&&e.\u0275\u0275element(0,"div",109)}function oa(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",110)(1,"div",111),e.\u0275\u0275element(2,"div",112),e.\u0275\u0275elementEnd()()),2&r){const t=n.$implicit,a=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngStyle",a.floorPlanImageStyle(t))}}function vi(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",32)(1,"div",33)(2,"h2",34),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,aa,11,13,"div",71),e.\u0275\u0275template(6,cr,1,0,"div",104),e.\u0275\u0275template(7,oa,3,3,"div",105),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext().ngIf,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,5,"FLOOR_PLANS")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isDownloadAvailable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.isDownloadAvailable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.floorPlans)("ngForTrackBy",a.trackByFloorPlanId)}}function dr(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",32)(1,"div",33)(2,"h2",34),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"tn-delivery-panorama-section",113),e.\u0275\u0275listener("thumbClick",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).onPanoThumbClick(T)}),e.\u0275\u0275elementEnd()()}if(2&r){const t=e.\u0275\u0275nextContext().ngIf;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,2,"PANORAMA")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("images",t.panoramas)}}function fr(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",118),e.\u0275\u0275element(2,"ui-download-by-link",119),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",120),e.\u0275\u0275element(4,"img",121),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&r){const t=n.ngIf;e.\u0275\u0275advance(2),e.\u0275\u0275property("url",t)("hint","Download QR code"),e.\u0275\u0275advance(2),e.\u0275\u0275property("src",t,e.\u0275\u0275sanitizeUrl)}}function hr(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-row")(1,"div",117)(2,"ui-input",78),e.\u0275\u0275element(3,"ui-copy-to-cl
1ipboard",87),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",81),e.\u0275\u0275element(6,"ui-open-in-new-tab",82),e.\u0275\u0275template(7,fr,5,3,"ng-container",3),e.\u0275\u0275pipe(8,"async"),e.\u0275\u0275pipe(9,"qrCode"),e.\u0275\u0275elementEnd()()()),2&r){const t=n.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275property("readonly",!0)("value",t.url)("label",t.name),e.\u0275\u0275advance(1),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(4,8,"COPY"))("v2",!0)("value",t.url),e.\u0275\u0275advance(3),e.\u0275\u0275property("url",t.url),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(8,10,e.\u0275\u0275pipeBind1(9,12,t.url)))}}function jn(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",32)(1,"div",33)(2,"h2",34),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",114)(6,"div",74),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"ui-form-group",115),e.\u0275\u0275template(10,hr,10,14,"ui-form-row",76),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"a",116),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd()()()),2&r){const t=e.\u0275\u0275nextContext().ngIf,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,8,"WEBSITE")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(8,10,a.websiteHintKey)," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.websiteLinks)("ngForTrackBy",a.trackByWebsiteLinkUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("href","/admin/property-dashboard/"+a.orderId+"/overview",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(13,12,"CUSTOMIZE_WEBSITE")," ")}}function pr(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",114)(1,"div",74),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"ui-form-group",75)(5,"ui-form-row")(6,"ui-input",103),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275element(8,"ui-copy-to-clipboard",87),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"ui-form-row")(11,"ui-input",103),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275element(13,"ui-copy-to-clipboard",87),e.\u0275\u0275pipe(14,"translate"),e.\u0275\u0275elementEnd()()()()),2&r){const t=e.\u0275\u0275nextContext().$implicit,a=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,15,a.tourLinksHintKey)," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("readonly",!0)("label",e.\u0275\u0275pipeBind1(7,17,"COPY_LINK"))("value",t.name),e.\u0275\u0275advance(2),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(9,19,"COPY"))("v2",!0)("value",t.url),e.\u0275\u0275advance(3),e.\u0275\u0275property("readonly",!0)("label",e.\u0275\u0275pipeBind1(12,21,"EMBED_CODE"))("value",a.tourEmbedCode(t)),e.\u0275\u0275advance(2),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(14,23,"COPY"))("v2",!0)("value",a.tourEmbedCode(t))}}function sa(r,n){1&r&&e.\u0275\u0275element(0,"div",109)}function la(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",32)(1,"div",33)(2,"h2",34),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(4,pr,15,25,"div",122),e.\u0275\u0275template(5,sa,1,0,"div",104),e.\u0275\u0275elementStart(6,"div",88)(7,"div",123)(8,"div",124),e.\u0275\u0275element(9,"tn-property-tour",82),e.\u0275\u0275elementEnd()()()()),2&r){const t=n.$implicit,a=e.\u0275\u0275nextContext().ngIf;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",t.name," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.isDownloadAvailable),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!a.isDownloadAvailable),e.\u0275\u0275advance(1),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(3),e.\u0275\u0275property("url",t.url)}}function gi(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ui-form-row")(1,"ui-input",107),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementStart(3,"button",43,125),e.\u0275\u0275listener("click",function(){const ae=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275nextContext(4).store.downloadFile(ae.id)}),e.\u0275\u0275element(5,"i",45),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()()()}if(2&r){const t=n.$implicit,a=n.index,T=e.\u0275\u0275reference(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("readonly",!0)("value",t.name)("label",0===a?e.\u0275\u0275pipeBind1(2,5,"DOWNLOAD_FILES_PDF"):""),e.\u0275\u0275advance(4),e.\u0275\u0275property("size",T.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,7,"DOWNLOAD")," ")}}function mi(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",32)(1,"div",33)(2,"h2",34),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",73)(6,"ui-form-group",106),e.\u0275\u0275template(7,gi,8,9,"ui-form-row",76),e.\u0275\u0275elementEnd()()()),2&r){const t=e.\u0275\u0275nextContext().ngIf,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,5,"FILES")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.files)("ngForTrackBy",a.trackByFileId)}}function ua(r,n){if(1&r&&(e.\u0275\u0275element(0,"tn-flyers-list",129),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275pipe(2,"translate")),2&r){const t=e.\u0275\u0275nextContext(2).ngIf,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("flyers",t.storyFlyers)("orderId",a.orderId)("title",e.\u0275\u0275pipeBind1(1,6,"INSTAGRAM_STORIES_TITLE"))("description",e.\u0275\u0275pipeBind1(2,8,"INSTAGRAM_STORIES_DESCRIPTION"))("width",240)("isDownloadAvailable",t.isDownloadAvailable)}}function yi(r,n){if(1&r&&(e.\u0275\u0275element(0,"tn-flyers-list",130),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275pipe(2,"translate")),2&r){const t=e.\u0275\u0275nextContext(2).ngIf,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("flyers",t.postFlyers)("orderId",a.orderId)("title",e.\u0275\u0275pipeBind1(1,6,"POSTS_TITLE"))("description",e.\u0275\u0275pipeBind1(2,8,"POSTS_DESCRIPTION"))("width",304)("isDownloadAvailable",t.isDownloadAvailable)}}function ca(r,n){if(1&r&&(e.\u0275\u0275element(0,"tn-flyers-list",131),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275pipe(2,"translate")),2&r){const t=e.\u0275\u0275nextContext(2).ngIf,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("flyers",t.brochureFlyers)("orderId",a.orderId)("title",e.\u0275\u0275pipeBind1(1,6,"BROCHURE_TITLE"))("description",e.\u0275\u0275pipeBind1(2,8,"BROCHURE_DESCRIPTION"))("width",304)("isDownloadAvailable",t.isDownloadAvailable)}}const da=function(r){return["/order-dashboard",r,"delivery","flyer"]};function fa(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",114)(1,"a",132),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",74),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(1),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction1(9,da,t.orderId)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,5,"CREATE_FLYER")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(6,7,"FLYER_OPEN_BUILDER_HINT")," ")}}function ha(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",32)(1,"div",33)(2,"h2",34),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,ua,3,10,"tn-flyers-list",126),e.\u0275\u0275template(6,yi,3,10,"tn-flyers-list",127),e.\u0275\u0275template(7,ca,3,10,"tn-flyers-list",128),e.\u0275\u0275template(8,fa,7,11,"div",122),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext().ngIf;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,5,"MARKETING_MATERIAL")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.storyFlyers.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.postFlyers.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.brochureFlyers.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.flyers.length)}}function pa(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Qi,1,4,"ui-anchor-nav-tabs",20),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275element(3,"div",21),e.\u0275\u0275template(4,dn,11,8,"div",22),e.\u0275\u0275element(5,"div",23),e.\u0275\u0275template(6,ia,7,6,"div",22),e.\u0275\u0275element(7,"div",24),e.\u0275\u0275template(8,vi,8,7,"div",22),e.\u0275\u0275element(9,"div",25),e.\u0275\u0275template(10,dr,6,4,"div",22),e.\u0275\u0275element(11,"div",26),e.\u0275\u0275template(12,jn,14,14,"div",22),e.\u0275\u0275element(13,"div",27),e.\u0275\u0275template(14,la,10,6,"div",28),e.\u0275\u0275element(15,"div",29),e.\u0275\u0275template(16,mi,8,7,"div",22),e.\u0275\u0275element(17,"div",30),e.\u0275\u0275template(18,ha,9,7,"div",22),e.\u0275\u0275elementContainerEnd()),2&r){const t=n.ngIf,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,10,a.anchors$)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",t.images.length),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.videos.length),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.floorPlans.length),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.panoramas.length),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.websiteLinks.length),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.tours)("ngForTrackBy",a.trackByTourId),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isFilesSectionVisible),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==t.order?null:t.order.isFlyerBuilderEnabled)&&!a.isPreview)}}function vr(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",1,2),e.\u0275\u0275template(2,Gi,1,0,"tn-order-dashboard-header",3),e.\u0275\u0275template(3,$i,1,0,"div",4),e.\u0275\u0275template(4,qi,13,16,"div",5),e.\u0275\u0275elementStart(5,"div",6)(6,"div",7)(7,"div",8)(8,"div",9)(9,"tn-page-cover",10),e.\u0275\u0275listener("openDownloadsDialog",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().onOpenDownloads()})("openInvoicePage",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().openInvoicePage()})("openAccountingInvoice",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().store.openAccountingInvoice(T)}),e.\u0275\u0275pipe(10,"async"),e.\u0275\u0275pipe(11,"async"),e.\u0275\u0275pipe(12,"async"),e.\u0275\u0275pipe(13,"async"),e.\u0275\u0275pipe(14,"async"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"div",9),e.\u0275\u0275template(16,pa,19,12,"ng-container",3),e.\u0275\u0275pipe(17,"async"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(18,"div",11),e.\u0275\u0275elementEnd()()()()}if(2&r){const t=n.ngIf,a=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!a.isPreview),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.isPreview),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!a.isPreview),e.\u0275\u0275advance(5),e.\u0275\u0275property("imageUrl",e.\u0275\u0275pipeBind1(10,16,a.coverImageUrl$)||"")("order",t)("invoice",e.\u0275\u0275pipeBind1(11,18,a.invoice$))("invoiceLinkLoading",!0===e.\u0275\u0275pipeBind1(12,20,a.invoiceLinkLoading$))("orderId",a.orderId)("companyName",a.companyName)("isPreview",a.isPreview)("isDownloadAvailable",!0===e.\u0275\u0275pipeBind1(13,22,a.isDownloadAvailable$))("isPreviewEnabled",a.isPreviewEnabled)("isPreviewSectionAvailable",!0)("limitedCustomerPaymentAccess",e.\u0275\u0275pipeBind1(14,24,a.limitedCustomerPaymentAccess$))("previewRouterLink",a.previewRouterLink),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(17,26,a.vm$))}}let nn=class{constructor(n,t,a,T,ae,Ce,Be,Ge,qe,nt){var it,Je;this.route=n,this.elementRef=t,this.store=a,this.appConfigService=T,this.authService=ae,this.confirmDialogService=Ce,this.router=Be,this.dialog=Ge,this.spwSyncOffer=qe,this.panoramaViewerModalService=nt,this.vm$=this.store.vm$,this.anchors$=this.store.anchors$,this.coverImageUrl$=this.store.coverImageUrl$,this.orderId=null!==(it=this.route.
1snapshot.pathFromRoot.map(at=>at.paramMap.get("orderId")).find(at=>!!at))&&void 0!==it?it:"",this.previewRouterLink=["/order-dashboard",this.orderId,"delivery","native","preview"],this.isPreview=!0===this.route.snapshot.data.isPreview||this.route.snapshot.queryParamMap.has("preview"),this.order$=this.store.order$,this.invoice$=this.store.invoice$,this.isDownloadAvailable$=this.store.isDownloadAvailable$,this.invoiceLinkLoading$=this.store.invoiceLinkLoading$,this.limitedCustomerPaymentAccess$=this.authService.limitedCustomerPaymentAccess$,this.companyName=this.appConfigService.name,this.downloadLabels=null!==(Je=this.appConfigService.deliveryLabelOverride)&&void 0!==Je?Je:{small:`${this.appConfigService.photoFormat} (Small)`,large:"Full-Size (Large)"},this.isPreviewEnabled=this.appConfigService.customerPreviewLinkEnabled,this.downloadTier=F.w$1,this.tourLinksHintKey="MLS"===this.appConfigService.photoFormat?"3D_TOUR_LINKS_HINT_MLS":"3D_TOUR_LINKS_HINT",this.websiteHintKey="MLS"===this.appConfigService.photoFormat?"PROPERTY_WEBSITE_AD_HINT_MLS":"PROPERTY_WEBSITE_AD_HINT",this.hostClass="app-v2"}ngOnInit(){if(this.spwSyncOffer.setOrderId(this.orderId),this.store.setIsPreview(this.isPreview),this.store.load(this.orderId),this.store.loadOrder(this.orderId),this.store.loadInvoice(this.orderId),this.store.refetchOnTabVisible(),this.store.loadVideoPlaybackDomain(),!this.isPreview){const n=this.order$.pipe((0,y.h)(t=>!!t),(0,ve.q)(1));this.store.loadWebsiteLinks(n),this.store.loadFlyers(n)}this.order$.pipe((0,y.h)(n=>null!=n),(0,ke.U)(n=>!(null==n?void 0:n.adjustImagesDisplayOrder)),(0,ve.q)(1),(0,le.t)(this)).subscribe(n=>this.store.setExactOrder(n)),(0,_.R)(this.elementRef.nativeElement,"contextmenu").pipe((0,pe.M)(this.store.paymentRequired$),(0,le.t)(this)).subscribe(([n,t])=>this.handleContextMenu(n,t))}showAssetsProtectionMessage(){this.limitedCustomerPaymentAccess$.pipe((0,ve.q)(1),(0,pe.M)(this.order$),(0,y.h)(([n,t])=>!n&&!(null==t?void 0:t.hideIntegratedPayment)),(0,ne.w)(()=>this.confirmDialogService.confirm({message:["DELIVERY_PREVIEW_PROTECTION_MESSAGE"],okButtonText:"PAY_NOW",cancelButtonText:"CANCEL"})),(0,y.h)(Boolean),(0,pe.M)(this.invoice$),(0,le.t)(this)).subscribe(([,n])=>this.payOutstandingInvoice(n))}openInvoicePage(){this.router.navigate(["/order-status",this.orderId,"invoice"],{queryParams:{redirectTo:this.router.url}})}onDownloadRequested(n){this.store.download({ids:[n.id],tier:n.tier})}trackByVideoId(n,t){return t.id}trackByFloorPlanId(n,t){return t.id}floorPlanImageStyle(n){return{"background-image":`url("${n.mediumUrl||n.thumbnailUrl}")`}}videoEmbedCode(n){return n.url?(0,ce.Ezw)(n.url):""}trackByTourId(n,t){return t.id}trackByFileId(n,t){return t.id}trackByWebsiteLinkUrl(n,t){return t.url}tourEmbedCode(n){return(0,ce.Ezw)(n.url)}onOpenDownloads(){this.vm$.pipe((0,ve.q)(1),(0,le.t)(this)).subscribe(n=>this.openDownloadsDialog(n))}onPanoThumbClick(n){this.vm$.pipe((0,ve.q)(1),(0,le.t)(this)).subscribe(t=>this.openPanoramaViewer(t,n))}openPanoramaViewer(n,t){this.panoramaViewerModalService.open({images:n.panoramas,startIndex:t,isDownloadAvailable:n.isDownloadAvailable})}openDownloadsDialog(n){this.dialog.open(Vt,{panelClass:["app-v2","native-downloads-dialog"],width:"600px",maxWidth:"100%",autoFocus:!1,data:this.buildDownloadsDialogData(n)}).afterClosed().pipe((0,le.t)(this)).subscribe(t=>this.onDownloadsDialogClosed(t))}buildDownloadsDialogData(n){var t;return{hasPhotos:n.images.length>0,videos:n.videos.map(a=>({id:a.id,name:a.name,navigationUrl:a.shareUrl,downloadUrl:a.downloadUrl,preparing:!!a.playbackId&&!a.downloadUrl})),hasFloorPlans:n.floorPlans.length>0,hasPanoramas:n.panoramas.length>0,hasFiles:n.files.length>0,tours:n.tours,websiteLinks:n.websiteLinks,isWebsiteEnabled:!!(null===(t=n.order)||void 0===t?void 0:t.isWebsiteEnabled),orderId:this.orderId}}onDownloadsDialogClosed(n){if(n){if(n===Rt)return void this.store.downloadFloorPlans();if(n===zt)return void this.store.downloadPanoramas();if("files"===n)return void this.store.downloadFiles();if("all"===n)return void this.store.downloadAll();this.store.downloadAllPhotos(n)}}handleContextMenu(n,t){this.isPreview?n.preventDefault():t&&(n.preventDefault(),this.showAssetsProtectionMessage())}payOutstandingInvoice(n){(null==n?void 0:n.accountingId)?this.store.openAccountingInvoice(n.accountingId):this.openInvoicePage()}};nn.\u0275fac=function(n){return new(n||nn)(e.\u0275\u0275directiveInject(Y.gz),e.\u0275\u0275directiveInject(e.ElementRef),e.\u0275\u0275directiveInject(Kn),e.\u0275\u0275directiveInject(F._ZM),e.\u0275\u0275directiveInject(F.e80),e.\u0275\u0275directiveInject(ue.DNF),e.\u0275\u0275directiveInject(Y.F0),e.\u0275\u0275directiveInject(Ee.uw),e.\u0275\u0275directiveInject(re.C5),e.\u0275\u0275directiveInject(Xn))},nn.\u0275cmp=e.\u0275\u0275defineComponent({type:nn,selectors:[["tn-orders-feature-delivery-v2"]],hostVars:2,hostBindings:function(n,t){2&n&&e.\u0275\u0275classMap(t.hostClass)},features:[e.\u0275\u0275ProvidersFeature([Kn,re.C5])],decls:2,vars:3,consts:[["class","page-container",4,"ngIf"],[1,"page-container"],["scrollC
1ontainer",""],[4,"ngIf"],["class","pt-16",4,"ngIf"],["class","flex items-center flex-col mb-min p-8 sm:p-16 relative","style","margin-top: -152px",4,"ngIf"],[1,"container","px-0","sm:px-16"],[1,"page-content"],[1,"flex-auto"],[1,"sm:mx-16","sm:mt-16"],[3,"imageUrl","order","invoice","invoiceLinkLoading","orderId","companyName","isPreview","isDownloadAvailable","isPreviewEnabled","isPreviewSectionAvailable","limitedCustomerPaymentAccess","previewRouterLink","openDownloadsDialog","openInvoicePage","openAccountingInvoice"],[1,"h-48","sm:hidden"],[1,"pt-16"],[1,"flex","items-center","flex-col","mb-min","p-8","sm:p-16","relative",2,"margin-top","-152px"],[1,"hidden","sm:block"],[1,"sm:hidden"],[1,"pt-min","paragraph","text-gray-50","hidden","sm:block"],["uiBtnSize","small","iconOnly","","uiBtnTheme","main","themeMode","secondary",1,"order-status",3,"routerLink"],["orderStatusButton","btnSize"],["uiIcon","keyboard_double_arrow_left",3,"size"],["class","section-nav",3,"anchors","scrollContainer","useNativeScroller","borderless",4,"ngIf"],["id","photosEl",1,"anchor"],["class","flex flex-col mt-40 sm:pt-32",4,"ngIf"],["id","videoEl",1,"anchor"],["id","floorPlanEl",1,"anchor"],["id","panoEl",1,"anchor"],["id","websiteEl",1,"anchor"],["id","tourEl",1,"anchor"],["class","flex flex-col mt-40 sm:pt-32",4,"ngFor","ngForOf","ngForTrackBy"],["id","filesEl",1,"anchor"],["id","flyersEl",1,"anchor"],[1,"section-nav",3,"anchors","scrollContainer","useNativeScroller","borderless"],[1,"flex","flex-col","mt-40","sm:pt-32"],[1,"border-t","flex","mb-8","justify-center"],[1,"-mt-16","sm:-mt-24","px-12","sm:py-8","sm:mb-8","bg-white","sm:text-24","text-center"],["class","flex flex-col justify-center items-center",4,"ngIf"],["class","flex justify-end items-center flex-wrap gap-8 pb-8",4,"ngIf"],[3,"images","isDownloadAvailable","isPreview","nativeDownload","selectionMode","imagesSelection","horizontalOrder","toggleSelection","downloadRequested","showAssetsProtection",4,"ngIf"],[3,"images","colsNumber","padding","reorderImages",4,"ngIf"],[1,"fixed","bottom-8","left-0","right-0","flex","justify-center","z-9999"],[1,"flex","flex-col","justify-center","items-center"],[1,"mt-24","mb-16","sm:mb-48","xl:mb-8","section-links"],["inputClass","truncate delivery-download-input",1,"w-full",3,"value","readonly","label"],["uiBtnSize","small","uiBtnTheme","main","themeMode","tertiary",1,"absolute","right-min","bottom-min",3,"click"],["downloadOriginalButton","btnSize"],["uiIcon","download",3,"size"],["inputClass","truncate delivery-download-input",1,"w-full",3,"value","readonly"],["downloadMediumButton","btnSize"],[1,"flex","justify-end","items-center","flex-wrap","gap-8","pb-8"],[4,"ngIf","ngIfElse"],["selectClosed",""],["uiBtnSize","small","uiBtnTheme","main","themeMode","tertiary",3,"click",4,"ngIf"],["uiBtnSize","small","uiBtnTheme","main","themeMode","tertiary",3,"click"],["selectAllButton","btnSize"],["uiIcon","select_all",3,"size"],[1,"hidden","sm:inline"],["deselectAllButton","btnSize"],["uiIcon","deselect",3,"size"],["cancelSelectionButton","btnSize"],["uiIcon","close",3,"size"],["downloadSelectedButton","btnSize"],[1,"mat-slide-toggle-v2",3,"disableRipple","checked","change"],["reorderModeButton","btnSize"],["uiIcon","edit",3,"size"],["selectModeButton","btnSize"],["uiIcon","highlight_mouse_cursor",3,"size"],["color","primary",3,"max","min","step","thumbLabel","value","change"],["uiBtnSize","small","uiBtnTheme","main","themeMode","primary",3,"disabled","click"],[3,"images","isDownloadAvailable","isPreview","nativeDownload","selectionMode","imagesSelection","horizontalOrder","toggleSelection","downloadRequested","showAssetsProtection"],[3,"images","colsNumber","padding","reorderImages"],[3,"totalNumber","imagesSelection","nativeDownload","selectAll","deselectAll","download"],["class","mt-16 flex flex-col justify-center items-center",3,"wpAnimation","wpOffset",4,"ngIf"],["class","aspect-ratio-container w-full mx-auto",3,"wpAnimation","wpOffset",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-16","flex","flex-col","justify-center","items-center",3,"wpAnimation","wpOffset"],[1,"section-description"],[1,"mt-24","mb-16","sm:mb-48","wide-section-links"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"flex"],["inputClass","truncate delivery-download-input",1,"w-full",3,"readonly","value","label"],["class","absolute right-min bottom-min",3,"text","v2","url",4,"ngIf","ngIfElse"],["downloadPreparing",""],[1,"flex","items-end","ml-min","mb-min"],[3,"url"],[1,"absolute","right-min","bottom-min",3,"text","v2","url"],["matTooltipPosition","above",1,"absolute","right-min","bottom-min","flex","items-center","p-min","text-gray-30","cursor-not-allowed",3,"matTooltip"],["uiIcon","download"],[1,"pl-min"],[1,"absolute","right-min","bottom-min",3,"text","v2","value"],[1,"aspect-ratio-container","w-full","mx-auto",3,"wpAnimation","wpOffset"],["class","mux-player","accent-color","#FF0000","thumbnail-time","1","rendition-order","desc","min-resolution","720p",4,"ngIf","ngIfElse"],["linkVideoPlayer",""],["class","mt-min sm:mt-8 mb-24",4,"ngIf"],["accent-color","#FF0000","thumbnail-time","1","rendition-order","desc","min-resolution","720p",1,"mux-player"],[3,"url","allowDownload"],[1,"mt-min","sm:mt-8","mb-24"],["class","flex-1","inputClass","truncate delivery-download-input",3,"readonly","value",4,"ngIf"],["inputClass","truncate delivery-download-input",1,"flex-1",3,"readonly","value"],["class","p-min pl-8 absolute right-8 bottom-8",3,"url",4,"ngIf","ngIfElse"],["tilePreparing",""],[1,"p-min","pl-8","absolute","right-8","bottom-8",3,"url"],["matTooltipPosition","above",1,"p-min","pl-8","absolute","right-8","bottom-8","flex","items-center","text-gray-30","cursor-not-allowed",3,"matTooltip"],[1,"p-min","pl-8","absolute","right-8","bottom-8",3,"value"],[1,"absolute","right-min","bottom-min",3,"hint","url"],["inputClass","truncate delivery-download-input",3,"readonly","label","value"],["class","mb-24 sm:mb-48",4,"ngIf"],["class","aspect-ratio-container w-full mb-24 mx-auto",3,"wpAnimation","wpOffset",4,"ngFor","ngForOf","ngForTrackBy"],[1,"mt-8","mb-16","sm:mb-48","wide-section-links"],["inputClass","truncate delivery-download-input",3,"readonly","value","label"],["downloadFloorPlansButton","btnSize"],[1,"mb-24","sm:mb-48"],[1,"aspect-ratio-container","w-full","mb-24","mx-auto",3,"wpAnimation","wpOffset"],[1,"relative","w-full","m-auto","floor-plan-container"],[1,"absolute","
1inset-0","rounded-lg","overflow-hidden","bg-contain","bg-center","bg-no-repeat",3,"ngStyle"],[3,"images","thumbClick"],[1,"flex","flex-col","justify-center","items-center",3,"wpAnimation","wpOffset"],[1,"mt-24","wide-section-links"],["uiBtnSize","medium","uiBtnTheme","main","themeMode","tertiary","target","_blank",1,"admin-panel-link","mt-12",3,"href"],[1,"flex","items-center"],[1,"p-12","bg-white","rounded","h-fit","mt-3","ml-2"],[3,"url","hint"],[1,"ml-2"],["alt","QR Code",3,"src"],["class","flex flex-col justify-center items-center",3,"wpAnimation","wpOffset",4,"ngIf"],[1,"relative","w-full","m-auto","tour-3d-container"],[1,"absolute","inset-0","rounded-lg","overflow-hidden","bg-black"],["downloadFileButton","btnSize"],["icon","/assets/icon/instagram.svg",3,"flyers","orderId","title","description","width","isDownloadAvailable",4,"ngIf"],["iconName","mail",3,"flyers","orderId","title","description","width","isDownloadAvailable",4,"ngIf"],["iconName","document_scanner",3,"flyers","orderId","title","description","width","isDownloadAvailable",4,"ngIf"],["icon","/assets/icon/instagram.svg",3,"flyers","orderId","title","description","width","isDownloadAvailable"],["iconName","mail",3,"flyers","orderId","title","description","width","isDownloadAvailable"],["iconName","document_scanner",3,"flyers","orderId","title","description","width","isDownloadAvailable"],["uiBtnSize","medium","uiBtnTheme","main","themeMode","tertiary","target","_blank",1,"admin-panel-link","mt-12",3,"routerLink"]],template:function(n,t){1&n&&(e.\u0275\u0275template(0,vr,19,28,"div",0),e.\u0275\u0275pipe(1,"async")),2&n&&e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(1,1,t.order$))},directives:[l.NgIf,Mr.U,Y.yS,me.s,Ne.V,fe.a,Mn,er.r,kn.H,sn.L,Vr.a,Cr.Rr,zr.pH,Jt,Zr,ei.E,_n,Jn,l.NgForOf,Re.K,Se.gM,En.b,Te.F,In.p,l.NgStyle,zn,Wn,ii],pipes:[l.AsyncPipe,U.X$,we],styles:[".page-container[_ngcontent-%COMP%]{position:fixed;inset:0;display:flex;flex-direction:column;overflow-x:auto;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));z-index:1040}@media (min-width: 640px){.page-container[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(246 246 246 / var(--tw-bg-opacity, 1));padding-bottom:1rem}}.page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding-left:.5rem;padding-right:.5rem}@media (min-width: 640px){.page-content[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem;border-radius:.5rem;padding-left:0;padding-right:0;padding-bottom:1rem}}.container[_ngcontent-%COMP%]{max-width:100%}.order-status[_ngcontent-%COMP%]{position:absolute;left:.5rem;bottom:.25rem}@media (min-width: 640px){.order-status[_ngcontent-%COMP%]{left:1rem;bottom:1rem}}.section-links[_ngcontent-%COMP%]{min-width:100%;max-width:max-content}@media (min-width: 640px){.section-links[_ngcontent-%COMP%]{min-width:400px}}.wide-section-links[_ngcontent-%COMP%]{min-width:100%;max-width:max-content}@media (min-width: 640px){.wide-section-links[_ngcontent-%COMP%]{min-width:600px}}.aspect-ratio-container[_ngcontent-%COMP%]{max-width:1200px}.section-description[_ngcontent-%COMP%]{width:100%;padding-top:1rem;text-align:center;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(117 117 117 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.section-description[_ngcontent-%COMP%]{width:600px}}.floor-plan-container[_ngcontent-%COMP%]{padding-top:56.26%}.admin-panel-link[_ngcontent-%COMP%]{width:100%}@media (min-width: 640px){.admin-panel-link[_ngcontent-%COMP%]{width:600px}}.admin-panel-link[_ngcontent-%COMP%]:active{--tw-bg-opacity: 1 !important;background-color:rgb(246 246 246 / var(--tw-bg-opacity, 1))!important;--tw-text-opacity: 1 !important;color:rgb(117 117 117 / var(--tw-text-opacity, 1))!important}.tour-3d-container[_ngcontent-%COMP%]{overflow:hidden;padding-top:56.26%}.mux-player[_ngcontent-%COMP%]{height:700px}[_nghost-%COMP%] .delivery-download-input{padding-right:120px;opacity:1!important}.anchor[_ngcontent-%COMP%]{transform:translateY(-50px)}.section-nav[_ngcontent-%COMP%]{position:sticky;top:0;z-index:10;display:block;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}"]}),nn=(0,Oe.gn)([(0,le.c)(),(0,Oe.w6)("design:paramtypes",[Y.gz,e.ElementRef,Kn,F._ZM,F.e80,ue.DNF,Y.F0,Ee.uw,re.C5,Xn])],nn);var i=s(57261),C=s(591),ee=s(34202),ye=s(92858),De=s(18339);function He(r,n){if(1&r&&e.\u0275\u0275element(0,"ui-open-in-new-tab",4),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("url",t.navigationUrl)}}function Ke(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ui-download-by-link",5),e.\u0275\u0275listener("downloadRequested",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().onDownloadRequested(T)}),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("fileName",t.fileName)("url",t.downloadUrl)("hint","Download: "+t.name)}}
1function tt(r,n){if(1&r&&e.\u0275\u0275element(0,"ui-copy-to-clipboard",6),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("value",t.copyUrl)}}let lt=(()=>{class r{constructor(t){this.deliveryDownloadService=t,this.name="",this.fileName="",this.navigationUrl="",this.downloadUrl="",this.copyUrl=""}onDownloadRequested(t){this.deliveryDownloadService.download(t,this.fileName)}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275directiveInject(F.nt8))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["tn-delivery-link-item"]],inputs:{name:"name",fileName:"fileName",navigationUrl:"navigationUrl",downloadUrl:"downloadUrl",copyUrl:"copyUrl"},decls:5,vars:4,consts:[[1,"truncate","px-8","mr-auto"],[3,"url",4,"ngIf"],["class","ml-8",3,"fileName","url","hint","downloadRequested",4,"ngIf"],["class","ml-8 p-min","text","",3,"value",4,"ngIf"],[3,"url"],[1,"ml-8",3,"fileName","url","hint","downloadRequested"],["text","",1,"ml-8","p-min",3,"value"]],template:function(t,a){1&t&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(2,He,1,1,"ui-open-in-new-tab",1),e.\u0275\u0275template(3,Ke,1,3,"ui-download-by-link",2),e.\u0275\u0275template(4,tt,1,1,"ui-copy-to-clipboard",3)),2&t&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",a.name,"\n"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.navigationUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.downloadUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.copyUrl))},directives:[l.NgIf,En.b,Re.K,Te.F],styles:["[_nghost-%COMP%]{display:flex;align-items:center;border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.25rem}[_nghost-%COMP%] .mat-checkbox-layout{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .mat-checkbox-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .download-by-link-ref{padding:.25rem}"],changeDetection:0}),r})();function vt(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",6)(1,"h3",7),e.\u0275\u0275text(2,"Dropbox"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",8),e.\u0275\u0275element(4,"tn-delivery-link-item",9),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275property("name",t.data.dropboxLink.name)("navigationUrl",t.data.dropboxLink.url)("copyUrl",t.data.dropboxLink.url)}}function Ct(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"a",14),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("href","/admin/property-dashboard/"+t.data.order.id+"/overview",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,2,"CUSTOMIZE_WEBSITE")," ")}}function xt(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"tn-delivery-link-item",15),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275pipe(3,"qrCode"),e.\u0275\u0275elementContainerEnd()),2&r){const t=n.$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("name",t.name)("fileName",t.name)("copyUrl",t.url)("navigationUrl",t.url)("downloadUrl",e.\u0275\u0275pipeBind1(2,5,e.\u0275\u0275pipeBind1(3,7,t.url)))}}function Ot(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",6)(1,"div",10)(2,"h3",11),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,Ct,3,4,"a",12),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",8),e.\u0275\u0275template(7,xt,4,9,"ng-container",13),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,3,"WEBSITE")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.data.isWebsiteEnabled),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.data.websiteLinks)}}function fn(r,n){if(1&r&&e.\u0275\u0275element(0,"tn-delivery-link-item",18),2&r){const t=n.$implicit,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("name",t.name)("downloadUrl",a.createDownloadLink(t.url))}}function Hn(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",16)(1,"h3",7),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",8),e.\u0275\u0275template(5,fn,1,2,"tn-delivery-link-item",17),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,2,"PHOTOS")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.data.photoFolderLinks)}}function hn(r,n){if(1&r&&e.\u0275\u0275element(0,"tn-delivery-link-item",18),2&r){const t=n.$implicit,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("name",t.name)("downloadUrl",a.createDownloadLink(t.url))}}function Lt(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",6)(1,"h3",7),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",8),e.\u0275\u0275template(5,hn,1,2,"tn-delivery-link-item",17),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,2,"FLOOR_PLANS")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.data.floorPlanLinks)}}function $t(r,n){if(1&r&&e.\u0275\u0275element(0,"tn-delivery-link-item",18),2&r){const t=n.$implicit,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("name",t.name)("downloadUrl",a.createDownloadLink(t.url))}}function Zt(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",6)(1,"h3",7),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",8),e.\u0275\u0275template(5,$t,1,2,"tn-delivery-link-item",17),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,2,"PANORAMA")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.data.panoFolderLinks)}}function At(r,n){if(1&r&&e.\u0275\u0275element(0,"tn-delivery-link-item",21),2&r){const t=n.$implicit,a=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("name",t.name)("navigationUrl",a.createDropboxLink(t.url))("downloadUrl",a.createDownloadLink(t.url))}}function kt(r,n){if(1&r&&e.\u0275\u0275element(0,"tn-delivery-link-item",9),2&r){const t=n.$implicit;
1e.\u0275\u0275property("name",t.name)("navigationUrl",t.url)("copyUrl",t.url)}}function Mt(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",6)(1,"h3",7),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",8),e.\u0275\u0275template(5,At,1,3,"tn-delivery-link-item",19),e.\u0275\u0275template(6,kt,1,3,"tn-delivery-link-item",20),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,3,"VIDEO")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.data.videoLinks),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.data.videoPreviewLinks)}}function ft(r,n){if(1&r&&e.\u0275\u0275element(0,"tn-delivery-link-item",9),2&r){const t=n.$implicit;e.\u0275\u0275property("name",t.name)("navigationUrl",t.url)("copyUrl",t.url)}}function Pt(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",6)(1,"h3",7),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",8),e.\u0275\u0275template(5,ft,1,3,"tn-delivery-link-item",20),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,2,"3D_TOUR")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.data.tourLinks)}}function It(r,n){if(1&r&&e.\u0275\u0275element(0,"tn-delivery-link-item",18),2&r){const t=n.$implicit;e.\u0275\u0275property("name",t.name)("downloadUrl",t.url)}}function Xt(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",6)(1,"h3",7),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",8),e.\u0275\u0275template(5,It,1,2,"tn-delivery-link-item",17),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,2,"DOCUMENTS")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.data.pdfLinks)}}let wn=(()=>{class r{constructor(t,a,T,ae){this.data=t,this.dialogRef=a,this.appConfigService=T,this.deliveryDownloadService=ae,this.loading=!1}createDownloadLink(t){return this.deliveryDownloadService.toDownloadUrl(t)}createDropboxLink(t){return t.replace(/dl=1$/,"dl=0")}onDownloadAll(){return(0,Oe.mG)(this,void 0,void 0,function*(){this.loading=!0,this.deliveryDownloadService.download(this.data.dropboxLink.url),yield this.delay(5e3),this.deliveryDownloadService.download(this.getMlsDownloadUrl()),this.dialogRef.close()})}getMlsDownloadUrl(){var t;const T=(this.appConfigService.defaultPhoneAuthCountryISO||De.HT.UnitedStates)===De.HT.UnitedStates?"MLS (Small)":"Web Resolution",ae=this.data.order,Ce=null===(t=ae.property_address)||void 0===t?void 0:t.formatted_address;return this.appConfigService.streamingServiceUrl+`/${this.appConfigService.projectId}/orders/${this.data.order.id}/delivery?folderName=${encodeURIComponent(Ce?`${Ce} - ${T}`:`${ae.order_name||ae.packages} - ${T}`)}`}delay(t){return new Promise(a=>setTimeout(a,t))}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275directiveInject(Ee.WI),e.\u0275\u0275directiveInject(Ee.so),e.\u0275\u0275directiveInject(F._ZM),e.\u0275\u0275directiveInject(F.nt8))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["tn-delivery-downloads"]],decls:17,vars:12,consts:[[1,"flex","flex-col","space-y-8","pb-16"],["class","links-group",4,"ngIf"],["class","links-group max-w-full",4,"ngIf"],[1,"dialog-actions-divider","justify-end"],["uiBtnSize","medium","uiBtnTheme","main","themeMode","secondary","matDialogClose",""],["uiBtnSize","medium","uiBtnTheme","main","themeMode","primary",3,"disabled","click"],[1,"links-group"],[1,"mb-min"],[1,"links-list"],[3,"name","navigationUrl","copyUrl"],[1,"flex","mb-min"],[1,"mr-auto"],["class","custom-link","target","_blank",3,"href",4,"ngIf"],[4,"ngFor","ngForOf"],["target","_blank",1,"custom-link",3,"href"],[3,"name","fileName","copyUrl","navigationUrl","downloadUrl"],[1,"links-group","max-w-full"],[3,"name","downloadUrl",4,"ngFor","ngForOf"],[3,"name","downloadUrl"],[3,"name","navigationUrl","downloadUrl",4,"ngFor","ngForOf"],[3,"name","navigationUrl","copyUrl",4,"ngFor","ngForOf"],[3,"name","navigationUrl","downloadUrl"]],template:function(t,a){1&t&&(e.\u0275\u0275elementStart(0,"ui-dialog-header"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"mat-dialog-content",0),e.\u0275\u0275template(4,vt,5,3,"div",1),e.\u0275\u0275template(5,Ot,8,5,"div",1),e.\u0275\u0275template(6,Hn,6,4,"div",2),e.\u0275\u0275template(7,Lt,6,4,"div",1),e.\u0275\u0275template(8,Zt,6,4,"div",1),e.\u0275\u0275template(9,Mt,7,5,"div",1),e.\u0275\u0275template(10,Pt,6,4,"div",1),e.\u0275\u0275template(11,Xt,6,4,"div",1),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"mat-dialog-actions",3)(13,"button",4),e.\u0275\u0275text(14," Cancel "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"button",5),e.\u0275\u0275listener("click",function(){return a.onDownloadAll()}),e.\u0275\u0275text(16," Download All "),e.\u0275\u0275elementEnd()()),2&t&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,10,"DOWNLOAD_FILES")),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",a.data.dropboxLink&&!a.data.dropboxLinkHidden),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.data.websiteLinks.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.data.photoFolderLinks.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.data.floorPlanLinks.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==a.data.panoFolderLinks?null:a.data.panoFolderLinks.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.data.videoLinks.length||(null==a.data.videoPreviewLinks?null:a.data.videoPreviewLinks.length)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.data.tourLinks.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.data.pdfLinks.length),e.\u0275\u0275advance(4),e.\u0275\u0275property("disabled",a.loading))},directives:[ie.A,Ee.xY,l.NgIf,lt,l.NgForOf,Ee.H8,me.s,Ne.V,Ee.ZT],pipes:[U.X$,l.AsyncPipe,we],styles:[".delivery-downloads-dialog .mat-dialog-content{max-height:calc(100vh - 218px)} .delivery-downloads-dialog .links-group{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1));padding:.5rem} .delivery-downloads-dialog .links-list{display:flex;flex-direction:column;gap:.25rem} .delivery-downloads-dialog .custom-link{font-size:.75rem;font-weight:600} .delivery-download-input{padding-right:110px!important;padding-right:5rem!important;opacity:1!important}"]}),r})(),Rr=(()=>
1{class r{constructor(t){this.dialog=t}openDialog(t){return this.dialog.open(wn,{panelClass:["app-v2","delivery-downloads-dialog"],width:"600px",maxWidth:"100%",autoFocus:!1,data:t}).afterClosed()}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275inject(Ee.uw))},r.\u0275prov=e.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Dr=[{name:"meetrapport",matches:r=>/\/meetrapport(?:\W|$)/i.test(r.path_lower||"")}];var ya=s(52069);function _a(r,n){1&r&&e.\u0275\u0275element(0,"tn-order-dashboard-header")}function ba(r,n){1&r&&e.\u0275\u0275element(0,"div",13)}const Sa=function(r){return{name:r}},va=function(r){return["/order-status",r]};function wa(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",14)(1,"h1",15),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"h4",16),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",17),e.\u0275\u0275text(8),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"a",18,19),e.\u0275\u0275element(12,"i",20),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275reference(11),a=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,5,"ORDER_DELIVERY")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,7,"ORDER_DELIVERY")),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind2(9,9,"ORDER_DELIVERY_HINT",e.\u0275\u0275pureFunction1(12,Sa,a.appConfigService.name))," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction1(14,va,a.orderId)),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize)}}function Ca(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"button",45,46),e.\u0275\u0275element(2,"i",47),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275reference(1),a=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction1(5,va,a.orderId)),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,3,"ORDER_DETAILS")," ")}}function Aa(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",48,49),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).openDownloadsDialog()}),e.\u0275\u0275element(2,"i",50),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275reference(1);e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,2,"DOWNLOAD")," ")}}function xa(r,n){1&r&&e.\u0275\u0275element(0,"div",51)}function Pa(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",66),e.\u0275\u0275element(1,"ui-open-in-new-tab",67),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext().$implicit,a=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(1),e.\u0275\u0275property("url",a.createDropboxLink(t.url))}}function ka(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ui-form-row")(1,"div",62)(2,"ui-input",63),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementStart(4,"ui-download-by-link",64),e.\u0275\u0275listener("downloadRequested",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(5).onDownloadRequested(T)}),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(6,Pa,2,1,"div",65),e.\u0275\u0275elementEnd()()}if(2&r){const t=n.$implicit,a=n.index,T=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(2),e.\u0275\u0275property("value",t.name)("readonly",!0)("label",0===a?e.\u0275\u0275pipeBind1(3,7,"DOWNLOAD_PHOTOS"):""),e.\u0275\u0275advance(2),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(5,9,"DOWNLOAD"))("v2",!0)("url",T.createDownloadLink(t.url)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.url.includes("dropbox")&&!T.dropboxLinkHidden)}}function Ea(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",58)(1,"div",59),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"ui-form-group",60),e.\u0275\u0275template(5,ka,7,11,"ui-form-row",61),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,4,"PHOTO_EXTENSION_HINT")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.ph
1otoFolderLinks)}}function Ia(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",70,71),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).selectionMode=!0}),e.\u0275\u0275element(2,"i",72),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275reference(1);e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,2,"SELECT")," ")}}function Ta(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"a",81,82),e.\u0275\u0275element(2,"i",50),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275reference(1),a=e.\u0275\u0275nextContext(7);e.\u0275\u0275property("href",a.getSelectionDownloadUrl(),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,3,"DOWNLOAD_SELECTED")," ")}}function Oa(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Ta,5,5,"a",73),e.\u0275\u0275elementStart(2,"button",70,74),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).onSelectAll()}),e.\u0275\u0275element(4,"i",75),e.\u0275\u0275elementStart(5,"span",76),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(8,"button",70,77),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).onDeselectAll()}),e.\u0275\u0275element(10,"i",78),e.\u0275\u0275elementStart(11,"span",76),e.\u0275\u0275text(12),e.\u0275\u0275pipe(13,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"button",70,79),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).onCancelSelection()}),e.\u0275\u0275element(16,"i",80),e.\u0275\u0275elementStart(17,"span",76),e.\u0275\u0275text(18),e.\u0275\u0275pipe(19,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&r){const t=e.\u0275\u0275reference(3),a=e.\u0275\u0275reference(9),T=e.\u0275\u0275reference(15),ae=e.\u0275\u0275nextContext(6);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",ae.imagesSelection.size),e.\u0275\u0275advance(3),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,7,"SELECT_ALL")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("size",a.iconSize),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(13,9,"DESELECT_ALL")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("size",T.iconSize),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(19,11,"CANCEL")," ")}}function Ra(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Ia,5,4,"button",69),e.\u0275\u0275template(2,Oa,20,13,"ng-container",3),e.\u0275\u0275elementContainerEnd()),2&r){const t=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.photosReorderMode&&!t.selectionMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.selectionMode)}}function Da(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"mat-slide-toggle",83),e.\u0275\u0275listener("change",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(5).setImagesHorizontalOrder(T.checked)}),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"button",70,84),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(5).photosReorderMode=!0}),e.\u0275\u0275element(6,"i",85),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&r){const t=e.\u0275\u0275reference(5),a=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(1),e.\u0275\u0275property("disableRipple",!0)("checked",a.imagesHorizontalOrder),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,5,"EXACT_ORDER_PHOTOS")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(8,7,"REORDER_PHOTOS")," ")}}function La(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"mat-slider",86),e.\u0275\u0275listener("change",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(5).setImagesInRow(T.value)}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"button",87),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(5).onSaveReorder()}),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"button",70),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(5).onCloseReorder()}),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&r){const t=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(1),e.\u0275\u0275property("max",12)("min",1)("step",1)("thumbLabel",!0)("value",t.imagesInRow),e.\u0275\u0275advance(1),e.\u0275\u0275property("disabled",!t.photosOrderChanged),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,8,"SAVE")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,10,"CLOSE")," ")}}function Ma(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",68),e.\u0275\u0275template(1,Ra,3,2,"ng-container",3),e.\u0275\u0275template(2,Da,9,9,"ng-container",3),e.\u0275\u0275template(3,La,8,12,"ng-container",3),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("wpAnimation",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isDownloadAvailable()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.photosReorderMode&&!t.selectionMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.photosReorderMode)}}function Fa(r,n){1&r&&e.\u0275\u0275element(0,"div",89)}const Na=function(){return["Customer"]};function Ba(r,n){1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Fa,1,0,"div",88),e.\u0275\u0275elementContainerEnd()),2&r&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("uiHasPermissions",e.\u0275\u0275pureFunction0(1,Na)))}function Va(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tn-image-list",90),e.\u0275\u0275listener("toggleSelection",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).onToggleSelection(T)})("galleryOpen",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).isGalleryOpened=!0})("galleryClose",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).isGalleryOpened=!1})("showAssetsProtection",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).showAssetsProtectionMessage()}),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("selectionMode",t.selectionMode)("images",t.images)("imagesSelection",t.imagesSelection)("isPreview",t.isPreview)("horizontalOrder",t.imagesHorizontalOrder)("isDownloadAvailable",t.isDownloadAvailable())}}function za(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"tn-image-list-reorder",91),e.\u0275\u0275listener("reorderImages",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).onReorderImages(T)}),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("images",t.draftImages)("colsNumber",t.imagesInRow)("padding",8)}}function Wa(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",52)(1,"div",53)(2,"h2",54),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,Ea,6,6,"div",34),e.\u0275\u0275template(6,Ma,4,4,"div",55),e.\u0275\u0275template(7,Ba,2,2,"ng-container",3),e.\u0275\u0275template(8,Va,1,6,"tn-image-list",56),e.\u0275\u0275template(9,za,1,3,"tn-image-list-reorder",57),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,8,"PHOTOS")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isDownloadAvailable()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.isPreview),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.isDownloadAvailable()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.photosReorderMode),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.photosReorderMode)}}function Ua(r,n){1&r&&e.\u0275\u0275elementContainer(0)}function ja(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",52)(1,"div",53)(2,"h2",54),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"tn-delivery-panorama-section",92),e.\u0275\u0275listener("thumbClick",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).onPanoThumbClick(T)}),e.\u0275\u0275elementEnd()()}if(2&r){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,4,"PANORAMA")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("images",t.panoImages)}}function Ha(r,n){1&r&&(e.\u0275\u0275elementStart(0,"div",52)(1,"div",53)(2,"h2",54),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()()),2&r&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,3,"FILES")," "))}function Ga(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ui-download-by-link",64),e.\u0275\u0275listener("downloadRequested",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(5).onDownloadRequested(T)}),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275nextContext().$implicit,a=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(1,3,"DOWNLOAD"))("v2",!0)("url",a.createDownloadLink(t.url))}}function $a(r,n){if(1&r&&e.\u0275\u0275element(0,"ui-open-in-new-tab",95),2&r){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("url",t.url)}}function Xa(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-row")(1,"div",62)(2,"ui-input",63),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275template(4,Ga,2,5,"ui-download-by-link",93),e.\u0275\u0275template(5,$a,1,1,"ui-open-in-new-tab",94),e.\u0275\u0275elementEnd()()()),2&r){const t=n.$implicit,a=n.index,T=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275property("value",t.name)("readonly",!0)("label",0===a?e.\u0275\u0275pipeBind1(3,5,"DOWNLOAD_FILES_PDF"):""),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!T.order.imported),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",T.order.imported)}}function Ya(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",58)(1,"ui-form-group",60),e.\u0275\u0275template(2,Xa,6,7,"ui-form-row",61),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.pdfLinks)}}function qa(r,n){if(1&r&&e.\u0275\u0275element(0,"pdf-viewer",96),2&r){const t=n.$implicit;e.\u0275\u0275property("src",t.pdfUrl||t.url)("original-size",!1)}}function Qa(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",108),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).showAssetsProtectionMessage()}),e.\u0275\u0275element(1,"ui-open-in-new-tab",109),e.\u0275\u0275elementEnd()}}function Ka(r,n){if(1&r&&e.\u0275\u0275element(0,"ui-open-in-new-tab",67),2&r){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("url",t.url)}}function Ja(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ui-form-row")(1,"div",62)(2,"ui-input",63)(3,"div",104),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const T=e.\u0275\u0275nextContext(5);return!T.isDownloadAvailable()&&T.showAssetsProtectionMessage()}
1),e.\u0275\u0275element(4,"ui-copy-to-clipboard",105),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"div",66),e.\u0275\u0275template(7,Qa,2,0,"div",106),e.\u0275\u0275template(8,Ka,1,1,"ng-template",null,107,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()()}if(2&r){const t=n.$implicit,a=n.index,T=e.\u0275\u0275reference(9),ae=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(2),e.\u0275\u0275property("value",t.name)("readonly",!0)("label",0===a?"frame.io":""),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("cursor-not-allowed",!ae.isDownloadAvailable()),e.\u0275\u0275advance(1),e.\u0275\u0275classProp("pointer-events-none",!ae.isDownloadAvailable()),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(5,12,"COPY"))("v2",!0)("value",t.url),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!ae.isDownloadAvailable())("ngIfElse",T)}}function Za(r,n){1&r&&(e.\u0275\u0275elementStart(0,"div",110),e.\u0275\u0275element(1,"div",111),e.\u0275\u0275elementEnd())}function eo(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",101)(1,"div",59),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"ui-form-group",102),e.\u0275\u0275template(5,Ja,10,14,"ui-form-row",61),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(6,Za,2,0,"div",103),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,5,"DOWNLOAD_EXTERNAL_VIDEO_HINT")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.videoExternalLinks),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.videoLinks.length||t.getVideoPreviewLinks().length)}}function to(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",66),e.\u0275\u0275element(1,"ui-open-in-new-tab",67),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext().$implicit,a=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(1),e.\u0275\u0275property("url",a.createDropboxLink(t.url))}}function no(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ui-form-row")(1,"div",62)(2,"ui-input",113),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementStart(4,"ui-download-by-link",64),e.\u0275\u0275listener("downloadRequested",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(5).onDownloadRequested(T)}),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(6,to,2,1,"div",65),e.\u0275\u0275elementEnd()()}if(2&r){const t=n.$implicit,a=n.index,T=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(2),e.\u0275\u0275property("readonly",!0)("value",t.name)("label",0===a?e.\u0275\u0275pipeBind1(3,7,"DOWNLOAD_VIDEO"):""),e.\u0275\u0275advance(2),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(5,9,"DOWNLOAD"))("v2",!0)("url",T.createDownloadLink(t.url)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!T.dropboxLinkHidden)}}function ro(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-row")(1,"div",62)(2,"ui-input",114),e.\u0275\u0275element(3,"ui-download-by-link",115),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",66),e.\u0275\u0275element(6,"ui-open-in-new-tab",67),e.\u0275\u0275elementEnd()()()),2&r){const t=n.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275property("readonly",!0)("value",t.name),e.\u0275\u0275advance(1),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(4,6,"DOWNLOAD"))("v2",!0)("url",t.url),e.\u0275\u0275advance(3),e.\u0275\u0275property("url",t.url)}}function io(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-row")(1,"div",62)(2,"ui-input",63),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275element(4,"ui-copy-to-clipboard",116),e.\u0275\u0275pipe(5,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",66),e.\u0275\u0275element(7,"ui-open-in-new-tab",67),e.\u0275\u0275elementEnd()()()),2&r){const t=e.\u0275\u0275nextContext(),a=t.$implicit,T=t.index;e.\u0275\u0275advance(2),e.\u0275\u0275property("value",a.name)("readonly",!0)("label",0===T?e.\u0275\u0275pipeBind1(3,7,"OPEN_VIDEO"):""),e.\u0275\u0275advance(2),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(5,9,"COPY"))("v2",!0)("value",a.muxPreviewUrl||a.url),e.\u0275\u0275advance(3),e.\u0275\u0275property("url",a.muxPreviewUrl||a.url)}}function ao(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,io,8,11,"ui-form-row",3),e.\u0275\u0275elementContainerEnd()),2&r){const t=n.$implicit,a=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!a.dropboxLinkHidden||!(t.muxPreviewUrl||t.url).includes("dropbox"))}}function oo(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-row")(1,"div",62)(2,"ui-input",117),e.\u0275\u0275element(3,"ui-copy-to-cl
1ipboard",116),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",66),e.\u0275\u0275element(6,"ui-open-in-new-tab",67),e.\u0275\u0275elementEnd()()()),2&r){const t=n.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275property("value",t.name)("readonly",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(4,6,"COPY"))("v2",!0)("value",t.url),e.\u0275\u0275advance(3),e.\u0275\u0275property("url",t.url)}}function so(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",101)(1,"div",59),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"ui-form-group",112),e.\u0275\u0275template(5,no,7,11,"ui-form-row",61),e.\u0275\u0275template(6,ro,7,8,"ui-form-row",61),e.\u0275\u0275template(7,ao,2,1,"ng-container",61),e.\u0275\u0275template(8,oo,7,8,"ui-form-row",61),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,7,"DOWNLOAD_VIDEO_HINT")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.videoLinks),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.videoRenderedLinks),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.getVideoPreviewLinks()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.videoRenderedLinks)}}function lo(r,n){1&r&&e.\u0275\u0275element(0,"div",118)}function uo(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"mux-player",121),e.\u0275\u0275elementContainerEnd()),2&r){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275attribute("playback-id",t.playbackId)}}function co(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"ui-video-player",122),e.\u0275\u0275elementContainerEnd()),2&r){const t=e.\u0275\u0275nextContext().$implicit,a=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("url",t.url)("allowDownload",a.isDownloadAvailable())}}function fo(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ui-input",126)(1,"ui-download-by-link",127),e.\u0275\u0275listener("downloadRequested",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).onDownloadRequested(T)}),e.\u0275\u0275elementEnd()()}if(2&r){const t=e.\u0275\u0275nextContext(2).$implicit,a=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("readonly",!0),e.\u0275\u0275advance(1),e.\u0275\u0275property("url",a.createDownloadLink(t.url))}}function ho(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-input",128),e.\u0275\u0275element(1,"ui-copy-to-clipboard",129),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("readonly",!0)("value",t.name),e.\u0275\u0275advance(1),e.\u0275\u0275property("value",t.url)}}function po(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-input",128),e.\u0275\u0275element(1,"ui-open-in-new-tab",130),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275property("readonly",!0)("value","Share Video"),e.\u0275\u0275advance(1),e.\u0275\u0275property("url",t.muxPreviewUrl)}}function vo(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-row")(1,"ui-input",131),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275element(3,"ui-copy-to-clipboard",116),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext(2).$implicit,a=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("readonly",!0)("label",e.\u0275\u0275pipeBind1(2,6,"EMBED_CODE"))("value",a.getEmbedCode(t.url)),e.\u0275\u0275advance(2),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(4,8,"COPY"))("v2",!0)("value",a.getEmbedCode(t.url))}}function go(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-group",123)(1,"ui-form-row",62),e.\u0275\u0275template(2,fo,2,2,"ui-input",124),e.\u0275\u0275template(3,ho,2,3,"ui-input",125),e.\u0275\u0275template(4,po,2,3,"ui-input",125),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,vo,5,10,"ui-form-row",3),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext().$implicit,a=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.isVideoDownloadable(t.url)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!a.isVideoDownloadable(t.url)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.muxPreviewUrl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.isVideoEmbeddable(t.url))}}function mo(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",119),e.\u0275\u0275template(1,uo,2,1,"ng-container",3),e.\u0275\u0275template(2,co,2,2,"ng-container",3),e.\u0275\u0275template(3,go,6,4,"ui-form-group",120),e.\u0275\u0275elementEnd()),2&r){const t=n.$implicit,a=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.playbackId),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.playbackId),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.isDownloadAvailable())}}function yo(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-group",123)(1,"ui-form-row",132)(2,"ui-input",133),e.\u0275\u0275element(3,"ui-download-by-link",134),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"ui-input",133),e.\u0275\u0275element(5,"ui-open-in-new-tab",135),e.\u0275\u0275elementEnd()()()),2&r){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275property("readonly",!0)("value",t.name),e.\u0275\u0275advance(1),e.\u0275\u0275property("url",t.url),e.\u0275\u0275advance(1),e.\u0275\u0275property("readonly",!0)("value",t.name),e.\u0275\u0275advance(1),e.\u0275\u0275property("url",t.url)}}function _o(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",119),e.\u0275\u0275element(1,"ui-video-player",122),e.\u0275\u0275template(2,yo,6,6,"ui-form-group",120),e.\u0275\u0275elementEnd()),2&r){const t=n.$implicit,a=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(1),e.\u0275\u0275property("url",t.url)("allowDownload",a.isDownloadAvailable()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.isDownloadAvailable())}}function bo(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",97)(1,"div",53)(2,"h2",54),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,eo,7,7,"div",98),e.\u0275\u0275template(6,so,9,9,"div",98),e.\u0275\u0275template(7,lo,1,0,"div",99),e.\u0275\u0275template(8,mo,4,5,"div",100),e.\u0275\u0275template(9,_o,3,5,"div",100),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,8,"VIDEO")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.videoExternalLinks.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isDownloadAvailable()&&t.videoLinks.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.isDownloadAvailable()&&!t.videoExternalLinks.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.getVideoPreviewLinks()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.videoRenderedLinks)}}function So(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",139),e.\u0275\u0275element(2,"ui-download-by-link",140),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",141),e.\u0275\u0275element(4,"img",142),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&r){const t=n.ngIf;e.\u0275\u0275advance(2),e.\u0275\u0275property("url",t)("hint","Download QR code"),e.\u0275\u0275advance(2),e.\u0275\u0275property("src",t,e.\u0275\u0275sanitizeUrl)}}function wo(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-row")(1,"div",137)(2,"ui-input",113),e.\u0275\u0275element(3,"ui-copy-to-cl
1ipboard",138),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",66),e.\u0275\u0275element(5,"ui-open-in-new-tab",67),e.\u0275\u0275template(6,So,5,3,"ng-container",3),e.\u0275\u0275pipe(7,"async"),e.\u0275\u0275pipe(8,"qrCode"),e.\u0275\u0275elementEnd()()()),2&r){const t=n.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275property("readonly",!0)("value",t.url)("label",t.name),e.\u0275\u0275advance(1),e.\u0275\u0275property("v2",!0)("value",t.url),e.\u0275\u0275advance(2),e.\u0275\u0275property("url",t.url),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(7,7,e.\u0275\u0275pipeBind1(8,9,t.url)))}}function Co(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"a",143),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("href","/admin/property-dashboard/"+t.orderId+"/overview",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,2,"CUSTOMIZE_WEBSITE")," ")}}function Ao(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",97)(1,"div",53)(2,"h2",54),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",58)(6,"div",59),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"ui-form-group",102),e.\u0275\u0275template(10,wo,9,11,"ui-form-row",61),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(11,Co,3,4,"a",136),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,8,"WEBSITE")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(8,10,t.isMls?"PROPERTY_WEBSITE_AD_HINT_MLS":"PROPERTY_WEBSITE_AD_HINT")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngForOf",t.websiteLinks),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",null==t.order?null:t.order.isWebsiteEnabled)}}function xo(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",58)(1,"div",59),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"ui-form-group",112)(5,"ui-form-row")(6,"ui-input",131),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275element(8,"ui-copy-to-clipboard",116),e.\u0275\u0275pipe(9,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"ui-form-row")(11,"ui-input",131),e.\u0275\u0275pipe(12,"translate"),e.\u0275\u0275element(13,"ui-copy-to-clipboard",116),e.\u0275\u0275pipe(14,"translate"),e.\u0275\u0275elementEnd()()()()),2&r){const t=e.\u0275\u0275nextContext().$implicit,a=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,15,a.isMls?"3D_TOUR_LINKS_HINT_MLS":"3D_TOUR_LINKS_HINT")," "),e.\u0275\u0275advance(4),e.\u0275\u0275property("readonly",!0)("label",e.\u0275\u0275pipeBind1(7,17,"COPY_LINK"))("value",t.name),e.\u0275\u0275advance(2),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(9,19,"COPY"))("v2",!0)("value",t.url),e.\u0275\u0275advance(3),e.\u0275\u0275property("readonly",!0)("label",e.\u0275\u0275pipeBind1(12,21,"EMBED_CODE"))("value",a.getEmbedCode(t.url)),e.\u0275\u0275advance(2),e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(14,23,"COPY"))("v2",!0)("value",a.getEmbedCode(t.url))}}function Po(r,n){1&r&&e.\u0275\u0275element(0,"div",118)}function ko(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",97)(1,"div",53)(2,"h2",54),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(4,xo,15,25,"div",34),e.\u0275\u0275template(5,Po,1,0,"div",99),e.\u0275\u0275elementStart(6,"div",119)(7,"div",144)(8,"div",145),e.\u0275\u0275element(9,"tn-property-tour",67),e.\u0275\u0275elementEnd()()()()),2&r){const t=n.$implicit,a=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",t.name," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.isDownloadAvailable()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!a.isDownloadAvailable()),e.\u0275\u0275advance(1),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(3),e.\u0275\u0275property("url",t.url)}}function Eo(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ui-download-by-link",64),e.\u0275\u0275listener("downloadRequested",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(6).onDownloadRequested(T)}),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275nextContext().$implicit,a=e.\u0275\u0275nextContext(5);e.\u0275\u0275property("text",e.\u0275\u0275pipeBind1(1,3,"DOWNLOAD"))("v2",!0)("url",a.createDownloadLink(t.url))}}function Io(r,n){if(1&r&&e.\u0275\u0275element(0,"ui-open-in-new-tab",149),2&r){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275property("url",t.url)}}function To(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"ui-form-row")(1,"ui-input",147),e.\u0275\u0275pipe(2,"translate"),e.\u0275\u0275template(3,Eo,2,5,"ui-download-by-link",93),e.\u0275\u0275template(4,Io,1,1,"ui-open-in-new-tab",148),e.\u0275\u0275elementEnd()()),2&r){const t=n.$implicit,a=n.index,T=e.\u0275\u0275nextContext(5);e.\u0275\u0275advance(1),e.\u0275\u0275property("readonly",!0)("value",t.name)("label",0===a?e.\u0275\u0275pipeBind1(2,5,"DOWNLOAD_FLOOR_PLAN"):""),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!T.order.imported),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",T.order.imported)}}function Oo(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",58)(1,"ui-form-group",112),e.\u0275\u0275template(2,To,5,7,"ui-form-row",61),e.\u0275\u0275elementEnd()()),2&r){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.floorPlanLinks)}}function Ro(r,n){1&r&&e.\u0275\u0275element(0,"div",118)}const Do=function(r){return{"background-image":r}};function Lo(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",150)(1,"div",151),e.\u0275\u0275element(2,"div",152),e.\u0275\u0275elementEnd()()),2&r){const t=n.$implicit;e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngStyle",e.\u0275\u0275pureFunction1(3,Do,"url("+t.webRes.url+")"))}}function Mo(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",97)(1,"div",53)(2,"h2",54),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,Oo,3,3,"div",34),e.\u0275\u0275template(6,Ro,1,0,"div",99),e.\u0275\u0275template(7,Lo,3,5,"div",146),e.\u0275\u0275pipe(8,"async"),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,6,"FLOOR_PLANS")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isDownloadAvailable()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.isDownloadAvailable()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind1(8,8,t.floorPlans$))}}function Fo(r,n){if(1&r&&(e.\u0275\u0275element(0,"tn-flyers-list",154),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275pipe(2,"translate")),2&r){const t=e.\u0275\u0275nextContext().ngIf,a=e.\u0275\u0275nextContext(5);e.\u0275\u0275propertyInterpolate("title",e.\u0275\u0275pipeBind1(1,6,"INSTAGRAM_STORIES_TITLE")),e.\u0275\u0275propertyInterpolate("description",e.\u0275\u0275pipeBind1(2,8,"INSTAGRAM_STORIES_DESCRIPTION")),e.\u0275\u0275property("flyers",t)("orderId",a.orderId)("width",240)("isDownloadAvailable",a.isDownloadAvailable())}}function No(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Fo,3,10,"tn-flyers-list",153),e.\u0275\u0275elementContainerEnd()),2&r){const t=n.ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.length)}}function Bo(r,n){if(1&r&&(e.\u0275\u0275element(0,"tn-flyers-list",156),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275pipe(2,"translate")),2&r){const t=e.\u0275\u0275nextContext().ngIf,a=e.\u0275\u0275nextContext(5);e.\u0275\u0275propertyInterpolate("title",e.\u0275\u0275pipeBind1(1,6,"POSTS_TITLE")),e.\u0275\u0275propertyInterpolate("description",e.\u0275\u0275pipeBind1(2,8,"POSTS_DESCRIPTION")),e.\u0275\u0275property("flyers",t)("orderId",a.orderId)("isDownloadAvailable",a.isDownloadAvailable())("width",304)}}function Vo(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Bo,3,10,"tn-flyers-list",155),e.\u0275\u0275elementContainerEnd()),2&r){const t=n.ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.length)}}function zo(r,n){if(1&r&&(e.\u0275\u0275element(0,"tn-flyers-list",158),e.\u0275\u0275pipe(1,"translate"),e.\u0275\u0275pipe(2,"translate")),2&r){const t=e.\u0275\u0275nextContext().ngIf,a=e.\u0275\u0275nextContext(5);e.\u0275\u0275propertyInterpolate("title",e.\u0275\u0275pipeBind1(1,6,"BROCHURE_TITLE")),e.\u0275\u0275propertyInterpolate("description",e.\u0275\u0275pipeBind1(2,8,"BROCHURE_DESCRIPTION")),e.\u0275\u0275property("flyers",t)("orderId",a.orderId)("isDownloadAvailable",a.isDownloadAvailable())("width",304)}}function Wo(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,zo,3,10,"tn-flyers-list",157),e.\u0275\u0275elementContainerEnd()),2&r){const t=n.ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.length)}}function Uo(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,No,2,1,"ng-container",3),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275template(3,Vo,2,1,"ng-container",3),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275template(5,Wo,2,1,"ng-container",3),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275elementContainerEnd()),2&r){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,3,t.storyFlyers)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(4,5,t.postFlyers)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(6,7,t.brochureFlyers))}}const jo=function(r){return["/order-dashboard",r,"delivery","flyer"]};function Ho(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",58)(2,"a",159),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",59),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()),2&r){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(1),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction1(9,jo,t.orderId)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,5,"CREATE_FLYER")," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(7,7,"FLYER_OPEN_BUILDER_HINT")," ")}}function Go(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",52)(1,"div",53)(2,"h2",54),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(5,Uo,7,9,"ng-container",3),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275template(7,Ho,8,11,"ng-container",3),e.\u0275\u0275pipe(8,"async"),e.\u0275\u0275elementEnd()),2&r){const t=e.\u0275\u0275nextContext(3);let a,T;e.\u0275\u0275advance(1),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,5,"MARKETING_MATERIAL")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",null==(a=e.\u0275\u0275pipeBind1(6,7,t.flyers))?null:a.length),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!(null!=(T=e.\u0275\u0275pipeBind1(8,9,t.flyers))&&T.length))}}function $o(r,n){if(1&r&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"div",21),e.\u0275\u0275elementStart(2,"div",22)(3,"div",23)(4,"div",24),e.\u0275\u0275template(5,Ca,5,7,"button",25),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(6,"ui-anchor-nav-tabs",26),e.\u0275\u0275elementStart(7,"div",27),e.\u0275\u0275template(8,Aa,5,4,"button",28),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(9,xa,1,0,"div",29),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",11),e.\u0275\u0275element(11,"div",30),e.\u0275\u0275template(12,Wa,10,10,"div",31),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(13,Ua,1,0,"ng-container",3),e.\u0275\u0275pipe(14,"async"),e.\u0275\u0275element(15,"div",32),e.\u0275\u0275template(16,ja,6,6,"div",31),e.\u0275\u0275element(17,"div",33),e.\u0275\u0275template(18,Ha,5,5,"div",31),e.\u0275\u0275template(19,Ya,3,3,"div",34),e.\u0275\u0275elementStart(20,"div",35),e.\u0275\u0275template(21,qa,1,2,"pdf-viewer",36),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(22,"div",37),e.\u0275\u0275template(23,bo,10,10,"div",38),e.\u0275\u0275element(24,"div",39),e.\u0275\u0275template(25,Ao,12,12,"div",38),e.\u0275\u0275element(26,"div",40),e.\u0275\u0275template(27,ko,10,8,"div",41),e.\u0275\u0275element(28,"div",42),e.\u0275\u0275template(29,Mo,9,10,"div",38),e.\u0275\u0275element(30,"div",43),e.\u0275\u0275template(31,Go,9,11,"div",31),e.\u0275\u0275element(32,"div",44),e.\u0275\u0275elementContainerEnd()),2&r){e.\u0275\u0275nextContext();const t=e.\u0275\u0275reference(1),a=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",.15),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",a.isMenuStuck),e.\u0275\u0275advance(1),e.\u0275\u0275property("anchors",a.anchors)("scrollContainer",t)("useNativeScroller",!0)("borderless",!0),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.isMenuStuck&&a.isDownloadAvailable()),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.isMenuStuck),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",a.images.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(14,22,a.panoImages$)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",a.panoImages.length),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.pdfLinks.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",a.isDownloadAvailable()&&a.pdfLinks.length),e.\u0275\u0275advance(1),e.\u0275\u0275property("wpAnimation",!0)("wpOffset",0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",a.pdfLinks),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.isVideoSectionAvailable()),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.websiteLinks.length&&!a.isPreview),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",a.tourLinks),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",a.floorPlanLinks.length),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==a.order?null:a.order.isFlyerBuilderEnabled)&&!a.isPreview)}}function Xo(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",4,5),e.\u0275\u0275template(2,_a,1,0,"tn-order-dashboard-header",3),e.\u0275\u0275template(3,ba,1,0,"div",6),e.\u0275\u0275template(4,wa,13,16,"div",7),e.\u0275\u0275elementStart(5,"div",8)(6,"div",9)(7,"div",10)(8,"div",11)(9,"tn-page-cover",12),e.\u0275\u0275listener("openDownloadsDialog",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().openDownloadsDialog()})("openInvoicePage",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().openInvoicePage()})("openAccountingInvoice",function(T){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().openAccountingInvoice(T)}),e.\u0275\u0275pipe(10,"async"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(11,$o,33,24,"ng-container",3),e.\u0275\u0275elementEnd()()()()}if(2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.isPreview),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.isPreview),e.
1\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.isPreview),e.\u0275\u0275advance(5),e.\u0275\u0275property("imageUrl",t.getCoverImageUrl())("order",t.order)("invoice",t.invoice)("invoiceLinkLoading",t.invoiceLinkLoading)("isPreview",t.isPreview)("isPreviewEnabled",t.isPreviewEnabled)("isDownloadAvailable",t.isDownloadAvailable())("isPreviewSectionAvailable",t.isPreviewSectionAvailable())("limitedCustomerPaymentAccess",e.\u0275\u0275pipeBind1(10,16,t.limitedCustomerPaymentAccess$))("orderId",t.orderId)("previewRouterLink",t.previewRouterLink)("companyName",t.appConfigService.name),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isPreviewSectionAvailable())}}function Yo(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",160,161),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().openDownloadsDialog()}),e.\u0275\u0275element(2,"i",50),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"translate"),e.\u0275\u0275elementEnd()}if(2&r){const t=e.\u0275\u0275reference(1);e.\u0275\u0275advance(2),e.\u0275\u0275property("size",t.iconSize),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(4,2,"DOWNLOAD"),"\n")}}function qo(r,n){if(1&r){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"ui-snack-bar")(1,"tn-selected-images-toolbar",162),e.\u0275\u0275listener("selectAll",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().onSelectAll()})("deselectAll",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().onDeselectAll()}),e.\u0275\u0275elementEnd()()}if(2&r){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("totalNumber",t.images.length)("imagesSelection",t.imagesSelection)("downloadUrl",t.getSelectionDownloadUrl())}}let On=class{constructor(n,t,a,T,ae,Ce,Be,Ge,qe,nt,it,Je,at,Me,$e,Qe,dt,Et,gr,_i,mr){this.orderDeliveryFacade=n,this.route=t,this.router=a,this.permissionsService=T,this.deliveryDownloadsDialogService=ae,this.propertyFeatureDomainsFacade=Ce,this.singlePropertyFacade=Be,this.meta=Ge,this.appConfigService=qe,this.scroller=nt,this.translate=it,this.confirmDialogService=Je,this.contextService=at,this.deliveryFlyersService=Me,this.deliveryApi=$e,this.accountingInvoiceLinkService=Qe,this.authService=dt,this.snackBar=Et,this.panoramaViewerModalService=gr,this.deliveryDownloadService=_i,this.isMobile$=mr,this.isMenuStuck=!1,this.photosReorderMode=!1,this.photosOrderChanged=!1,this.imagesInRow=6,this.selectionMode=!1,this.imagesSelection=new Set,this.anchors={},this.isGalleryOpened=!1,this.dropboxLinkHidden=!0,this.images=[],this.draftImages=[],this.websiteLinks=[],this.videoLinks=[],this.videoPreviewLinks=[],this.videoExternalLinks=[],this.videoRenderedLinks=[],this.videoDbxPreviewLinks=[],this.tourLinks=[],this.pdfLinks=[],this.floorPlansImages=[],this.panoImages=[],this._photoFolderLinks=new C.X([]),this._floorPlanLinks=new C.X([]),this._panoFolderLinks=new C.X([]),this.images$=(0,an.aj)([this.orderDeliveryFacade.allImage$,this._photoFolderLinks]).pipe((0,ke.U)(([St,mt])=>St.filter(Ft=>!Ft.metadata.parentFolder||mt.some(Ut=>Ut.path_lower===Ft.metadata.parentFolder))),(0,ke.U)(St=>St.map(mt=>mt.watermarkWebRes&&this.showWatermarkedImage(mt.watermarkWebRes.url)?Object.assign(Object.assign({},mt),{webRes:mt.watermarkWebRes}):mt)),(0,pt.b)(St=>{this.images=St.slice(),this.draftImages=St.slice()})),this.floorPlans$=(0,an.aj)([this.orderDeliveryFacade.allImage$,this._floorPlanLinks]).pipe((0,ke.U)(([St,mt])=>St.reduce((Ft,Ut)=>{if(!Ut.metadata.parentFolder)return Ft;const Rn=mt.find(Gn=>Gn.path_lower===Ut.metadata.parentFolder);return Rn&&Ft.push(Object.assign(Object.assign({},Ut),{name:Ut.name.replace(/\.(jpg|jpeg|png)$/,""),url:Rn.url})),Ft},[])),(0,pt.b)(St=>{this.floorPlansImages=St,this.anchors=this.getAnchors()})),this.panoImages$=(0,an.aj)([this.orderDeliveryFacade.allImage$,this._panoFolderLinks]).pipe((0,ke.U)(([St,mt])=>St.filter(Ft=>mt.some(Ut=>Ut.path_lower===Ft.metadata.parentFolder)).map(Ft=>{var Ut,Rn;return Object.assign(Object.assign({},Ft),{url:(null===(Ut=Ft.fullRes)||void 0===Ut?void 0:Ut.url)||(null===(Rn=Ft.webRes)||void 0===Rn?void 0:Rn.url)})})),(0,pt.b)(St=>{this.panoImages=St,this.anchors=this.getAnchors()})),this.tabs=["website","images","panorama","files","video","tour","floorPlans"],this.orderId=this.route.
1snapshot.params.orderId,this.previewRouterLink=["/order-dashboard",this.orderId,"delivery","preview"],this.flyers=this.deliveryFlyersService.list(this.orderId).pipe((0,ve.q)(1)).toPromise(),this.storyFlyers=this.flyers.then(St=>St.filter(mt=>mt.type===Tt.ah.STORY)),this.postFlyers=this.flyers.then(St=>St.filter(mt=>mt.type===Tt.ah.POST)),this.brochureFlyers=this.flyers.then(St=>St.filter(mt=>mt.type===Tt.ah.BROCHURE)),this.limitedCustomerPaymentAccess$=this.authService.limitedCustomerPaymentAccess$,this.imagesHorizontalOrder=!0,this.invoiceLinkLoading=!1,this.hostClass="app-v2",this.contextMenu=()=>!(this.isPreview||this.displayPaymentLink()&&(this.showAssetsProtectionMessage(),1)),this.setImagesHorizontalOrder=St=>{this.imagesHorizontalOrder=St,this.saveAdjustImagesDisplayOrder(!St)},this.saveAdjustImagesDisplayOrder=(St=!1)=>{const mt=this.translate.instant("GOT_IT");this.deliveryApi.updateDelivery(this.orderId,{adjustImagesDisplayOrder:St}).then(()=>{this.snackBar.open(this.translate.instant("SAVE_UPDATE_SUCCESS"),mt,{duration:1200})}).catch(()=>{this.snackBar.open(this.translate.instant("ERROR_OCCURRED"),mt,{duration:3e3})})}}get isPreview(){return!!this.route.snapshot.data.isPreview}get isPreviewEnabled(){return this.appConfigService.customerPreviewLinkEnabled}
1get isMls(){return"MLS"===this.appConfigService.photoFormat}ngOnInit(){this.orderDeliveryFacade.getImages(this.orderId),this.propertyFeatureDomainsFacade.getAccount(this.appConfigService.projectId),(0,an.aj)([this.deliveryApi.getOrder(this.orderId),this.deliveryApi.getInvoice(this.orderId),this.deliveryApi.getMuxVideos(this.orderId),this.propertyFeatureDomainsFacade.defaultDomain$.pipe((0,y.h)(t=>Boolean(t)))]).pipe((0,ve.q)(1)).subscribe(([t,a,T,ae])=>{if(!t)return;this.order=t,this.invoice=a,this.imagesHorizontalOrder=!t.adjustImagesDisplayOrder,this.dropboxLink={name:"Dropbox link",url:(null==t?void 0:t.deliverable_link)||""};const Ce=this.mapVideoMuxMetadata(t.deliverablesLinks,T);this.mapLinks(Ce||[],ae),t.isWebsiteEnabled&&(this.fetchProperty(),this.fetchSpwLinks()),on(t)&&this.pollUntilPaid()}),this.isMobile$.pipe((0,ve.q)(1)).subscribe(t=>{this.imagesInRow=t?2:6}),this.contextService.bookingConfig$.pipe((0,ve.q)(1)).subscribe(t=>{this.dropboxLinkHidden=t.dropboxLinkHidden});const n=this.route.snapshot.queryParams.anchor;n&&this.flyers.then(()=>{const t=document.querySelector(`#${n}`);t&&setTimeout(()=>{t.scrollIntoView({behavior:"auto",block:"start"})},100)})}ngAfterViewInit(){this.observeNavigationMenu()}ngOnDestroy(){this.removeMetaTags()}get currentUrl(){return this.router.url}get photoFolderLinks(){return this._photoFolderLinks.value}get floorPlanLinks(){return this._floorPlanLinks.value}get panoFolderLinks(){return this._panoFolderLinks.value}showAssetsProtectionMessage(){this.order.hideIntegratedPayment||this.limitedCustomerPaymentAccess$.pipe((0,ve.q)(1),(0,y.h)(n=>!n)).subscribe(()=>{this.confirmDialogService.confirm({message:["DELIVERY_PREVIEW_PROTECTION_MESSAGE"],okButtonText:"PAY_NOW",cancelButtonText:"CANCEL"}).pipe((0,y.h)(Boolean)).subscribe(()=>{var n;const t=null===(n=this.invoice)||void 0===n?void 0:n.accountingId;t?this.accountingInvoiceLinkService.openAccountingInvoice(t):this.router.navigate(["/order-status",this.orderId,"invoice"],{queryParams:{redirectTo:this.currentUrl}})})})}getVideoPreviewLinks(){var n;return(null===(n=this.videoPreviewLinks)||void 0===n?void 0:n.length)?this.videoPreviewLinks:this.videoDbxPreviewLinks}displayPaymentLink(){var n,t,a;return!this.isPreview&&(null===(n=this.order)||void 0===n?void 0:n.lockFilesUntilPaid)&&(null===(t=this.order)||void 0===t?void 0:t.paymentStatus)!==Tt.bG.Paid&&(null===(a=this.order)||void 0===a?void 0:a.paymentStatus)!==Tt.bG.PromisedPayment}isDownloadAvailable(){var n,t,a;return this.order&&!this.isPreview&&(!(null===(n=this.order)||void 0===n?void 0:n.lockFilesUntilPaid)||(null===(t=this.order)||void 0===t?void 0:t.paymentStatus)===Tt.bG.Paid||(null===(a=this.order)||void 0===a?void 0:a.paymentStatus)===Tt.bG.PromisedPayment)}showWatermarkedImage(n){return!(!n||!this.order.lockFilesUntilPaid)&&this.order.paymentStatus!==Tt.bG.Paid&&this.order.paymentStatus!==Tt.bG.PromisedPayment}isVideoSectionAvailable(){return!!(this.videoLinks.length||this.videoRenderedLinks.length||this.videoExternalLinks.length||this.getVideoPreviewLinks().length)}isPreviewSectionAvailable(){var n;return this.order&&(!(null===(n=this.order)||void 0===n?void 0:n.hideDeliveryPreviewSection)||this.permissionsService.isAdmin||this.permissionsService.isStaff||this.permissionsService.isContractor||this.order.paymentStatus===Tt.bG.Paid||this.order.paymentStatus===Tt.bG.PromisedPayment||!this.order.lockFilesUntilPaid)}isVideoEmbeddable(n){return n.includes("youtube")||n.includes("vimeo")}isVideoDownloadable(n){return n.includes("dropbox")}fetchProperty(){this.singlePropertyFacade.getProperty(this.orderId),this.singlePropertyFacade.property$.pipe((0,y.h)(n=>Boolean(n)),(0,le.t)(this)).subscribe(n=>{this.property=n})}fetchSpwLinks(){this.websiteLinks.length||(0,an.aj)([this.singlePropertyFacade.property$,this.propertyFeatureDomainsFacade.spwLinks$]).pipe((0,y.h)(([n])=>!!n),(0,le.t)(this)).subscribe(([n,t])=>{this.propertyFeatureDomainsFacade.setDefaultDomainPath(n.defaultDomainPath),this.propertyFeatureDomainsFacade.setCustomDomainNames(n.customDomains);const a=(null==t?void 0:t.customUrl)||(null==t?void 0:t.defaultUrl),T=(null==t?void 0:t.brandedDefaultUrl)?t.brandedDefaultUrl:a,ae=(null==t?void 0:t.unbrandedDefaultUrl)?t.unbrandedDefaultUrl:a?`${a}?mls=${n.propertyAddress.mlsNumber}`:"";this.websiteLinks=[],T&&this.websiteLinks.push({name:"Branded",type:"Website",url:T,dropboxId:"",path_lower:"",isCustom:!1}),ae&&this.websiteLinks.push({name:"Unbranded",type:"Website",url:ae,dropboxId:"",path_lower:"",isCustom:!1}),this.anchors=this.getAnchors()})}mapLinks(n,t){this.pdfLinks=n.filter(a=>{const T=this.isPreview&&function ma(r){return Dr.some(n=>n.matches(r))}(a);return"PDF"===a.type&&!T}),this.websiteLinks=n.filter(a=>"Website"===a.type),this._photoFolderLinks.next(this.localizePhotoFolderLinks(n.filter(a=>"Photos"===a.type))),this._floorPlanLinks.next(n.filter(a=>"Floor Plan"===a.type)),this._panoFolderLinks.next(n.filter(a=>"360 Panorama"===a.type)),this.videoLinks=n.filter(a=>"Video"===a.type&&a.url.includes("dropbox.com")),this.videoPreviewLinks=n.filter(a=>"Video"===a.type&&!a.url.includes("dropbox.com")&&!a.url.includes("firebasestorage.googleapis.com")&&!a.url.includes("app.frame.io")),this.videoRenderedLinks=n.filter(a=>"Video"===a.type&&a.url.includes("firebasestorage.googleapis.com")),this.videoExternalLinks=n.filter(a=>"Video"===a.type&&a.url.includes("app.frame.io")),this.tourLinks=n.filter(a=>"3D Tour"===a.type),this.videoPreviewLinks.length||(this.videoDbxPreviewLinks=this.videoLinks.filter(a=>a.url.match(/\.(mp4|mov|mkv|m4v|avi|flv|mts|3gp|f4v|f4p|swf|mpg|mpeg|wmv|webm|m4p|m2v)/i)).map(a=>Object.assign(Object.assign({},a),{url:this.createRawLink(a.url)})).map(a=>Object.assign(Object.assign({},a),{muxPreviewUrl:a.playbackId?`https://${t}/video/${a.playbackId}`:void 0}))),this.anchors=this.getAnchors()}openDownloadsDialog(){this.deliveryDownloadsDialogService.openDialog({order:this.order,dropboxLink:this.dropboxLink,websiteLinks:this.websiteLinks,photoFolderLinks:this.photoFolderLinks,floorPlanLinks:this.floorPlanLinks,panoFolderLinks:this.panoFolderLinks,videoLinks:this.videoLinks,tourLinks:this.tourLinks,pdfLinks:this.pdfLinks,videoPreviewLinks:this.videoPreviewLinks,isWebsiteEnabled:this.order.isWebsiteEnabled,dropboxLinkHidden:this.dropboxLinkHidden})}openInvoicePage(){this.router.navigate(["/order-status",this.orderId,"invoice"],{queryParams:{redirectTo:this.currentUrl}})}openAccountingInvoice(n){return(0,Oe.mG)(this,void 0,void 0,function*(){this.invoiceLinkLoading=!0;try{yield this.accountingInvoiceLinkService.openAccountingInvoice(n)}finally{this.invoiceLinkLoading=!1}})}onDownloadRequested(n){this.deliveryDownloadService.download(n)}createDownloadLink(n){return this.deliveryDownloadService.toDownloadUrl(n)}createDropboxLink(n){return n.replace(/dl=1$/,"dl=0")}createRawLink(n){return n.replace(/dl=(0|1)$/,"raw=1")}getAnchors(){const n={};return this.photoFolderLinks.length&&(n["#photoEl"]=this.translate.instant("PHOTOS")),this.panoImages.length&&(n["#panoEl"]=this.translate.instant("PANORAMA")),this.pdfLinks.length&&(n["#filesEl"]=this.translate.instant("FILES")),(this.getVideoPreviewLinks().length||this.videoRenderedLinks.length||this.videoExternalLinks.length)&&(n["#videoEl"]=this.translate.instant("VIDEO")),this.websiteLinks.length&&!this.isPreview&&(n["#websiteEl"]=this.translate.instant("WEBSITE")),this.tourLinks.length&&(n["#tourEl"]=this.translate.instant("3D_TOUR")),this.floorPlansImages.length&&(n["#floorPlanEl"]=this.translate.instant("FLOOR_PLANS")),this.order.isFlyerBuilderEnabled&&!this.isPreview&&(n["#flyersEl"]=this.translate.instant("MARKETING_MATERIAL")),n}getCoverImageUrl(){var n,t,a,T;return(null===(t=null===(n=this.images[0])||void 0===n?void 0:n.fullRes)||void 0===t?void 0:t.url)||(null===(T=null===(a=this.images[0])||void 0===a?void 0:a.webRes)||void 0===T?void 0:T.url)}onPanoThumbClick(n){!this.panoImages.length||this.panoramaViewerModalService.open({images:this.panoImages,startIndex:n,isDownloadAvailable:this.isDownloadAvailable()})}onSelectAll(){const n=this.images.map(t=>
1t.id);this.imagesSelection=new Set(n)}onDeselectAll(){this.imagesSelection.clear()}onToggleSelection(n){this.imagesSelection.has(n)?this.imagesSelection.delete(n):this.imagesSelection.add(n)}onCancelSelection(){this.selectionMode=!1,this.imagesSelection.clear()}getSelectionDownloadUrl(){const n=this.imagesSelection.size===this.images.length?[]:Array.from(this.imagesSelection);return this.appConfigService.streamingServiceUrl+`/${this.appConfigService.projectId}/orders/${this.orderId}/delivery?orderName=${encodeURIComponent(this.order.packages)}`+n.map(t=>`&ids=${t}`).join("")}setImagesInRow(n){!n||(this.imagesInRow=n)}onReorderImages(n){this.draftImages=n,this.photosOrderChanged=!0}onSaveReorder(){this.orderDeliveryFacade.updateDeliveryImagesOrder({images:this.draftImages,orderId:this.orderId}),this.deliveryApi.updateDelivery(this.orderId,{coverImage:this.draftImages[0].thumbnail.url||this.draftImages[0].webRes.url}),this.property&&this.onSyncReorder(),this.photosOrderChanged=!1}onSyncReorder(){this.confirmDialogService.confirm({message:["SYNC_IMAGES_ORDER"],okButtonText:"SYNC",cancelButtonText:"CANCEL"}).pipe((0,y.h)(Boolean)).subscribe(()=>{const n=this.reorderPropertyImages(this.property.galleries,this.draftImages);this.singlePropertyFacade.updateProperty({tonomoExternalId:this.property.tonomoExternalId,galleries:n})})}onCloseReorder(){this.photosReorderMode=!1,this.photosOrderChanged=!1,this.draftImages=this.images.slice()}getEmbedCode(n){return(null==n?void 0:n.trim())?['<div style="display:block; position: relative; padding-bottom: 57%; height: 0; overflow: hidden">',`<iframe src="${n}" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none" allowfullscreen></iframe>`,"</div>"].join(""):""}pollUntilPaid(){(0,Yn.z)((0,Ht.H)(5e3,5e3).pipe((0,ve.q)(24)),(0,Ht.H)(Qn,Qn)).pipe((0,_r.b)(()=>this.deliveryApi.getOrder(this.orderId).pipe((0,Cn.K)(n=>(console.error("[Delivery] Failed to poll the order",n),pn.E)))),(0,y.h)(n=>!!n),(0,qn.o)(n=>on(n),!0),(0,E.R)((0,Ht.H)(6e5)),(0,le.t)(this)).subscribe(n=>{this.order=n,on(n)||this.orderDeliveryFacade.getImages(this.orderId)})}observeNavigationMenu(){const n=document.getElementById("nav-sticky-threshold");n instanceof HTMLElement&&new IntersectionObserver(([a])=>{this.isMenuStuck=a.intersectionRatio<=0},{threshold:[1]}).observe(n)}removeMetaTags(){this.meta.removeTag("name='og:title'"),this.meta.removeTag("name='og:image'")}reorderPropertyImages(n,t){const a=new Map(t.map((T,ae)=>[T.metadata.dropboxId,ae]));return n.map(T=>{const ae=[...T.photos].sort((Ce,Be)=>{var Ge,qe;return(Ce.dropboxId&&null!==(Ge=a.get(Ce.dropboxId))&&void 0!==Ge?Ge:Number.MAX_VALUE)-(Be.dropboxId&&null!==(qe=a.get(Be.dropboxId))&&void 0!==qe?qe:Number.MAX_VALUE)});return Object.assign(Object.assign({},T),{photos:ae})})}mapVideoMuxMetadata(n,t){return(n||[]).map(a=>{const T=t.find(ae=>ae.dropbox_content_hash===a.content_hash);return T?Object.assign(Object.assign({},a),{playbackId:T.playbackId}):a})}localizePhotoFolderLinks(n){const t=this.appConfigService.deliveryLabelOverride;if(!t)return n;const a=[{suffix:ye.oE.FullSize,label:t.large},{suffix:ye.oE.MLS,label:t.small},{suffix:ye.oE.WEB,label:t.small}];return n.map(T=>{const ae=a.find(Ce=>{var Be;return null===(Be=T.name)||void 0===Be?void 0:Be.endsWith(Ce.suffix)});return ae?Object.assign(Object.assign({},T),{name:T.name.slice(0,-ae.suffix.length)+ae.label}):T})}};function Qo(r,n){if(1&r&&e.\u0275\u0275element(0,"mux-player",3),2&r){const t=e.\u0275\u0275nextContext().ngIf;e.\u0275\u0275attribute("playback-id",t.playbackId)}}function Ko(r,n){if(1&r&&(e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275template(1,Qo,1,1,"mux-player",2),e.\u0275\u0275elementEnd()),2&r){const t=n.ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.playbackId)}}On.\u0275fac=function(n){return new(n||On)(e.\u0275\u0275directiveInject(Z.VJ),e.\u0275\u0275directiveInject(Y.gz),e.\u0275\u0275directiveInject(Y.F0),e.\u0275\u0275directiveInject(F.qQA),e.\u0275\u0275directiveInject(Rr),e.\u0275\u0275directiveInject(qt.k7),e.\u0275\u0275directiveInject(qt.RV),e.\u0275\u0275directiveInject(bn.Meta),e.\u0275\u0275directiveInject(F._ZM),e.\u0275\u0275directiveInject(l.ViewportScroller),e.\u0275\u0275directiveInject(U.sK),e.\u0275\u0275directiveInject(ue.DNF),e.\u0275\u0275directiveInject(F.ObY),e.\u0275\u0275directiveInject(An.gl),e.\u0275\u0275directiveInject(F.f3$),e.\u0275\u0275directiveInject(F.GNc),e.\u0275\u0275directiveInject(F.e80),e.\u0275\u0275directiveInject(i.ux),e.\u0275\u0275directiveInject(Xn),e.\u0275\u0275directiveInject(F.nt8),e.\u0275\u0275directiveInject(ce.IBl))},On.\u0275cmp=e.\u0275\u0275defineComponent({type:On,selectors:[["tn-orders-feature-delivery"]],hostVars:2,hostBindings:function(n,t){1&n&&e.\u0275\u0275listener("contextmenu",function(){return t.contextMenu()}),2&n&&e.\u0275\u0275classMap(t.hostClass)},features:[e.\u0275\u0275ProvidersFeature([qt.k7])],decls:5,vars:5,consts:[["id","wp-scroll-container","class","page-container",4,"ngIf"],["class","fixed bottom-8 left-8 download-btn","uiBtnSize","small","uiBtnTheme","main","themeMode","primary",3,"click",4,"ngIf"],[1,"fixed","bottom-8","left-0","right-0","flex","justify-center","z-9999"],[4,"ngIf"],["id","wp-scroll-container",1,"page-container"],["scrollC
1ontainer",""],["class","pt-16",4,"ngIf"],["class","flex items-center flex-col mb-min p-8 sm:p-16 relative","style","margin-top: -152px",4,"ngIf"],[1,"container","px-0","sm:px-16"],[1,"page-content"],[1,"flex-auto"],[1,"sm:mx-16","sm:mt-16"],[3,"imageUrl","order","invoice","invoiceLinkLoading","isPreview","isPreviewEnabled","isDownloadAvailable","isPreviewSectionAvailable","limitedCustomerPaymentAccess","orderId","previewRouterLink","companyName","openDownloadsDialog","openInvoicePage","openAccountingInvoice"],[1,"pt-16"],[1,"flex","items-center","flex-col","mb-min","p-8","sm:p-16","relative",2,"margin-top","-152px"],[1,"hidden","sm:block"],[1,"sm:hidden"],[1,"pt-min","paragraph","text-gray-50","hidden","sm:block"],["uiBtnSize","small","iconOnly","","uiBtnTheme","main","themeMode","secondary",1,"order-status",3,"routerLink"],["orderStatusButton","btnSize"],["uiIcon","keyboard_double_arrow_left",3,"size"],["id","nav-sticky-threshold",1,"hidden","sm:block"],[1,"nav-wrapper",3,"wpAnimation","wpOffset"],[1,"flex","justify-between"],[1,"ml-16","nav-button-wrap"],["uiBtnSize","small","uiBtnTheme","main","themeMode","tertiary",3,"routerLink",4,"ngIf"],[3,"anchors","scrollContainer","useNativeScroller","borderless"],[1,"mr-16","justify-end","nav-button-wrap"],["uiBtnSize","small","uiBtnTheme","main","themeMode","primary",3,"click",4,"ngIf"],["class","nav-separator",4,"ngIf"],["id","photoEl",1,"anchor"],["class","flex flex-col mt-40 sm:pt-32",4,"ngIf"],["id","panoEl",1,"anchor"],["id","filesEl",1,"anchor"],["class","flex flex-col justify-center items-center",3,"wpAnimation","wpOffset",4,"ngIf"],[1,"pdf-container",3,"wpAnimation","wpOffset"],["class","pdf",3,"src","original-size",4,"ngFor","ngForOf"],["id","videoEl",1,"anchor"],["class","mt-48 sm:mt-64 sm:pt-32 sm:px-16",4,"ngIf"],["id","websiteEl",1,"anchor"],["id","tourEl",1,"anchor"],["class","mt-48 sm:mt-64 sm:pt-32 sm:px-16",4,"ngFor","ngForOf"],["id","floorPlanEl",1,"anchor"],["id","flyersEl",1,"anchor"],[1,"h-48","sm:hidden"],["uiBtnSize","small","uiBtnTheme","main","themeMode","tertiary",3,"routerLink"],["orderDetailsButton","btnSize"],["uiIcon","assignment",3,"size"],["uiBtnSize","small","uiBtnTheme","main","themeMode","primary",3,"click"],["stickyDownloadButton","btnSize"],["uiIcon","download",3,"size"],[1,"nav-separator"],[1,"flex","flex-col","mt-40","sm:pt-32"],[1,"border-t","flex","mb-8","justify-center",3,"wpAnimation","wpOffset"],[1,"-mt-16","sm:-mt-24","px-12","sm:py-8","sm:mb-8","bg-white","sm:text-24","text-center"],["class","flex justify-end items-center gap-8 pb-8",3,"wpAnimation",4,"ngIf"],[3,"selectionMode","images","imagesSelection","isPreview","horizontalOrder","isDownloadAvailable","toggleSelection","galleryOpen","galleryClose","showAssetsProtection",4,"ngIf"],[3,"images","colsNumber","padding","reorderImages",4,"ngIf"],[1,"flex","flex-col","justify-center","items-center",3,"wpAnimation","wpOffset"],[1,"section-description"],[1,"mt-24","mb-16","sm:mb-48","xl:mb-8","section-links"],[4,"ngFor","ngForOf"],[1,"flex"],["inputClass","truncate delivery-download-input",1,"w-full",3,"value","readonly","label"],[1,"absolute","right-min","bottom-min",3,"text","v2","url","downloadRequested"],["class","flex items-end ml-min mb-min",4,"ngIf"],[1,"flex","items-end","ml-min","mb-min"],[3,"url"],[1,"flex","justify-end","items-center","gap-8","pb-8",3,"wpAnimation"],["uiBtnSize","small","uiBtnTheme","main","themeMode","tertiary",3,"click",4,"ngIf"],["uiBtnSize","small","uiBtnTheme","main","themeMode","tertiary",3,"click"],["selectModeButton","btnSize"],["uiIcon","highlight_mouse_cursor",3,"size"],["uiBtnSize","small","uiBtnTheme","main","themeMode","tertiary",3,"href",4,"ngIf"],["selectAllButton","btnSize"],["uiIcon","select_all",3,"size"],[1,"hidden","sm:inline"],["deselectAllButton","btnSize"],["uiIcon","deselect",3,"size"],["cancelSelectionButton","btnSize"],["uiIcon","close",3,"size"],["uiBtnSize","small","uiBtnTheme","main","themeMode","tertiary",3,"href"],["downloadSelectedButton","btnSize"],[1,"mat-slide-toggle-v2",3,"disableRipple","checked","change"],["reorderModeButton","btnSize"],["uiIcon","edit",3,"size"],["color","primary",3,"max","min","step","thumbL
1abel","value","change"],["uiBtnSize","small","uiBtnTheme","main","themeMode","primary",3,"disabled","click"],["class","xl:pb-32",4,"uiHasPermissions"],[1,"xl:pb-32"],[3,"selectionMode","images","imagesSelection","isPreview","horizontalOrder","isDownloadAvailable","toggleSelection","galleryOpen","galleryClose","showAssetsProtection"],[3,"images","colsNumber","padding","reorderImages"],[3,"images","thumbClick"],["class","absolute right-min bottom-min",3,"text","v2","url","downloadRequested",4,"ngIf"],["class","absolute right-min bottom-min","hint","Open PDF file",3,"url",4,"ngIf"],["hint","Open PDF file",1,"absolute","right-min","bottom-min",3,"url"],[1,"pdf",3,"src","original-size"],[1,"mt-48","sm:mt-64","sm:pt-32","sm:px-16"],["class","mt-16 flex flex-col justify-center items-center",3,"wpAnimation","wpOffset",4,"ngIf"],["class","mb-24 sm:mb-48",4,"ngIf"],["class","aspect-ratio-container mx-auto",3,"wpAnimation","wpOffset",4,"ngFor","ngForOf"],[1,"mt-16","flex","flex-col","justify-center","items-center",3,"wpAnimation","wpOffset"],[1,"mt-24","section-links"],["class","flex justify-center",4,"ngIf"],[1,"absolute","right-min","bottom-min",3,"click"],[3,"text","v2","value"],["class","cursor-not-allowed",3,"click",4,"ngIf","ngIfElse"],["openInNewTab",""],[1,"cursor-not-allowed",3,"click"],[1,"pointer-events-none"],[1,"flex","justify-center"],[1,"separator"],[1,"mt-24","mb-16","sm:mb-48","section-links"],["inputClass","truncate delivery-download-input",1,"w-full",3,"readonly","value","label"],["inputClass","truncate delivery-download-input",1,"w-full",3,"readonly","value"],[1,"absolute","right-min","bottom-min",3,"text","v2","url"],[1,"absolute","right-min","bottom-min",3,"text","v2","value"],["inputClass","truncate delivery-download-input",1,"w-full",3,"value","readonly"],[1,"mb-24","sm:mb-48"],[1,"aspect-ratio-container","mx-auto",3,"wpAnimation","wpOffset"],["class","mt-min sm:mt-8 mb-24",4,"ngIf"],["accent-color","#FF0000","thumbnail-time","1","rendition-order","desc","min-resolution","720p",1,"mux-player"],[3,"url","allowDownload"],[1,"mt-min","sm:mt-8","mb-24"],["class","flex-1","inputClass","truncate delivery-download-input","value","Download Video",3,"readonly",4,"ngIf"],["class","flex-1","inputClass","truncate delivery-download-input",3,"readonly","value",4,"ngIf"],["inputClass","truncate delivery-download-input","value","Download Video",1,"flex-1",3,"readonly"],[1,"p-min","pl-8","absolute","right-8","bottom-8",3,"url","downloadRequested"],["inputClass","truncate delivery-download-input",1,"flex-1",3,"readonly","value"],[1,"p-min","pl-8","absolute","right-8","bottom-8",3,"value"],["hint","Open single video delivery page",1,"absolute","right-min","bottom-min",3,"url"],["inputClass","truncate delivery-download-input",3,"readonly","label","value"],[1,"grid-cols-2"],["inputClass","truncate delivery-download-input",3,"readonly","value"],[1,"p-min","pl-8","absolute","right-8","bottom-8",3,"url"],[1,"absolute","right-min","bottom-min",3,"url"],["class","admin-panel-link mt-12","uiBtnSize","medium","uiBtnTheme","main","themeMode","tertiary","target","_blank",3,"href",4,"ngIf"],[1,"flex","items-center"],["text","Copy",1,"absolute","right-min","bottom-min",3,"v2","value"],[1,"p-12","bg-white","rounded","h-fit","mt-3","ml-2"],[3,"url","hint"],[1,"ml-2"],["alt","QR Code",3,"src"],["uiBtnSize","medium","uiBtnTheme","main","themeMode","tertiary","target","_blank",1,"admin-panel-link","mt-12",3,"href"],[1,"relative","w-full","m-auto","tour-3d-container"],[1,"absolute","inset-0","rounded-lg","overflow-hidden","bg-black"],["class","aspect-ratio-container mb-24 mx-auto",3,"wpAnimation","wpOffset",4,"ngFor","ngForOf"],["inputClass","truncate delivery-download-input",3,"readonly","value","label"],["class","absolute right-min bottom-min","hint","Open file",3,"url",4,"ngIf"],["hint","Open file",1,"absolute","right-min","bottom-min",3,"url"],[1,"aspect-ratio-container","mb-24","mx-auto",3,"wpAnimation","wpOffset"],[1,"relative","w-full","m-auto","floor-plan-container"],[1,"absolute","inset-0","rounded-lg","overflow-hidden","bg-contain","bg-center","bg-no-repeat",3,"ngStyle"],["icon","/assets/icon/instagram.svg",3,"flyers","orderId","title","description","width","isDownloadAvailable",4,"ngIf"],["icon","/assets/icon/instagram.svg",3,"flyers","orderId","title","description","width","isDownloadAvailable"],["iconName","mail",3,"flyers","orderId","isDownloadAvailable","t
1itle","description","width",4,"ngIf"],["iconName","mail",3,"flyers","orderId","isDownloadAvailable","title","description","width"],["iconName","document_scanner",3,"flyers","orderId","isDownloadAvailable","title","description","width",4,"ngIf"],["iconName","document_scanner",3,"flyers","orderId","isDownloadAvailable","title","description","width"],["uiBtnSize","medium","uiBtnTheme","main","themeMode","tertiary","target","_blank",1,"admin-panel-link","mt-12",3,"routerLink"],["uiBtnSize","small","uiBtnTheme","main","themeMode","primary",1,"fixed","bottom-8","left-8","download-btn",3,"click"],["floatingDownloadButton","btnSize"],[3,"totalNumber","imagesSelection","downloadUrl","selectAll","deselectAll"]],template:function(n,t){1&n&&(e.\u0275\u0275template(0,Xo,12,18,"div",0),e.\u0275\u0275pipe(1,"async"),e.\u0275\u0275template(2,Yo,5,4,"button",1),e.\u0275\u0275elementStart(3,"div",2),e.\u0275\u0275template(4,qo,2,3,"ui-snack-bar",3),e.\u0275\u0275elementEnd()),2&n&&(e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(1,3,t.images$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.isDownloadAvailable()&&!t.isGalleryOpened&&!t.selectionMode&&!t.photosReorderMode),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",t.selectionMode))},directives:[l.NgIf,Mr.U,Y.yS,me.s,Ne.V,fe.a,Mn,Jn,Y.rH,er.r,kn.H,l.NgForOf,sn.L,Vr.a,Re.K,En.b,Cr.Rr,zr.pH,ya.z,Jt,Zr,zn,J,Te.F,In.p,Wn,l.NgStyle,ii,ei.E,_n],pipes:[l.AsyncPipe,U.X$,we],styles:[".page-container[_ngcontent-%COMP%]{position:fixed;inset:0;display:flex;flex-direction:column;overflow-x:auto;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));z-index:1040}@media (min-width: 640px){.page-container[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(246 246 246 / var(--tw-bg-opacity, 1));padding-bottom:1rem}}.page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding-left:.5rem;padding-right:.5rem}@media (min-width: 640px){.page-content[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem;border-radius:.5rem;padding-left:0;padding-right:0;padding-bottom:1rem}}.container[_ngcontent-%COMP%]{max-width:100%}#photoEl.anchor[_ngcontent-%COMP%]{transform:translateY(-50px)}.order-status[_ngcontent-%COMP%]{position:absolute;left:.5rem;bottom:.25rem}@media (min-width: 640px){.order-status[_ngcontent-%COMP%]{left:1rem;bottom:1rem}}
1.separator[_ngcontent-%COMP%]{height:1px;margin-top:2rem;width:5rem;border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(226 226 226 / var(--tw-bg-opacity, 1))}.nav-wrapper[_ngcontent-%COMP%]{position:sticky;top:0;z-index:10;margin-top:2rem;display:none;flex-direction:column;justify-content:center;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){.nav-wrapper[_ngcontent-%COMP%]{display:flex}}.nav-button-wrap[_ngcontent-%COMP%]{min-width:150px;display:flex;align-items:center}.nav-separator[_ngcontent-%COMP%]{height:1px;margin-left:1rem;margin-right:1rem;--tw-bg-opacity: 1;background-color:rgb(226 226 226 / var(--tw-bg-opacity, 1))}@media (min-width: 1280px){.media-wrapper[_ngcontent-%COMP%]{max-width:1200px}}.aspect-ratio-container[_ngcontent-%COMP%]{max-width:1200px}.section-description[_ngcontent-%COMP%]{width:100%;padding-top:1rem;text-align:center;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(117 117 117 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.section-description[_ngcontent-%COMP%]{width:600px}}.section-links[_ngcontent-%COMP%]{min-width:100%;max-width:max-content}@media (min-width: 640px){.section-links[_ngcontent-%COMP%]{min-width:600px}}.tour-3d-container[_ngcontent-%COMP%]{overflow:hidden;padding-top:56.26%}.floor-plan-container[_ngcontent-%COMP%]{padding-top:56.26%}.download-btn[_ngcontent-%COMP%]{z-index:1200;width:calc(100% - 1rem)}@media (min-width: 640px){.download-btn[_ngcontent-%COMP%]{display:none!important}}.admin-panel-link[_ngcontent-%COMP%]{width:100%}@media (min-width: 640px){.admin-panel-link[_ngcontent-%COMP%]{width:600px}}.admin-panel-link[_ngcontent-%COMP%]:active{--tw-bg-opacity: 1 !important;background-color:rgb(246 246 246 / var(--tw-bg-opacity, 1))!important;--tw-text-opacity: 1 !important;color:rgb(117 117 117 / var(--tw-text-opacity, 1))!important}[_nghost-%COMP%] .delivery-download-input{padding-right:120px;opacity:1!important}[_nghost-%COMP%] .pdf-container{margin-top:2rem;display:flex;flex-wrap:wrap;justify-content:center;gap:2rem}[_nghost-%COMP%] .pdf{height:600px;width:400px}.mux-player[_ngcontent-%COMP%]{height:700px}"]}),On=(0,Oe.gn)([(0,le.c)(),(0,Oe.w6)("design:paramtypes",[Z.VJ,Y.gz,Y.F0,F.qQA,Rr,qt.k7,qt.RV,bn.Meta,F._ZM,l.ViewportScroller,U.sK,ue.DNF,F.ObY,An.gl,F.f3$,F.GNc,F.e80,i.ux,Xn,F.nt8,ee.y])],On);const ga=[{path:"",pathMatch:"full",component:On,canActivate:[Ie,Z.rd]},{path:"native",pathMatch:"full",component:nn},{path:"native/preview",pathMatch:"full",component:nn,data:{isPreview:!0},canActivate:[Z.fm]},{path:"preview",pathMatch:"full",component:On,data:{isPreview:!0},canActivate:[Z.rd,Z.fm]},{path:"videos/:videoId",pathMatch:"full",component:(()=>{class r{constructor(t,a){this.route=t,this.deliveryApi=a,this.hostClass="app-v2",this.orderId=this.route.snapshot.params.orderId,this.videoId=this.route.snapshot.params.videoId,this.link$=(0,an.aj)([this.deliveryApi.getOrder(this.orderId),this.deliveryApi.getMuxVideos(this.orderId)]).pipe((0,ke.U)(([T,ae])=>{const Ce=((null==T?void 0:T.deliverablesLinks)||[]).find(Ge=>Ge.dropboxId===this.videoId);if(!Ce)return null;const Be=ae.find(Ge=>Ce.content_hash&&Ce.content_hash===Ge.dropbox_content_hash);return(null==Be?void 0:Be.playbackId)?Object.assign(Object.assign({},Ce),{playbackId:Be.playbackId}):null}))}}return r.\u0275fac=function(t){return new(t||r)(e.\u0275\u0275directiveInject(Y.gz),e.\u0275\u0275directiveInject(F.f3$))},r.\u0275cmp=e.\u0275\u0275defineComponent({type:r,selectors:[["ng-component"]],hostVars:2,hostBindings:function(t,a){2&t&&e.\u0275\u0275classMap(a.hostClass)},decls:2,vars:3,consts:[["class","page-container",4,"ngIf"],[1,"page-container"],["class","max-h-full","accent-color","#FF0000","thumbnail-time","1","rendition-order","desc","min-resolution","720p",4,"ngIf"],["accent-color","#FF0000","thumbnail-time","1","rendition-order","desc","min-resolution","720p",1,"max-h-full"]],template:function(t,a){1&t&&(e.\u0275\u0275template(0,Ko,2,1,"div",0),e.\u0275\u0275pipe(1,"async")),2&t&&e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(1,1,a.link$))},directives:[l.NgIf],pipes:[l.AsyncPipe],styles:[".page-container[_ngcontent-%COMP%]{position:fixed;inset:0;display:flex;flex-direction:column;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));z-index:1040}"]}),r})(),canActivate:[Z.rd]}];let Zo=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.\u0275\u0275defineNgModule({type:r}),r.\u0275inj=e.\u0275\u0275defineInjector({imports:[[l.CommonModule,M.u5,N.p9,L,O,re.$p,ue.eYi,Y.Bz.forChild(ga),U.aw,ge,F.B2M]]}),r})()},51349:(K,I,s)=>{var l,M;!function(N,Y){"use strict";l=function(){var Y=function(){var U=window.Element.prototype;if(U.matches)return"matches";if(U.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],V=0;V<e.length;V++){var R=e[V]+"MatchesSelector";if(U[R])return R}}();return function(e,V){return e[Y](V)}},void 0!==(M=l.call(I,s,I,K))&&(K.exports=M)}(window)},99665:function(K,I,s){var M;"undefined"!=typeof window&&window,void 0!==(M=function(){"use strict";function N(){}var Y=N.prototype;return Y.on=function(U,e){if(U&&e){var V=this._events=this._events||{},H=V[U]=V[U]||[];return-1==H.indexOf(e)&&H.push(e),this}},Y.once=function(U,e){if(U&&e){this.on(U,e);var V=this._onceEvents=this._onceEvents||{};return(V[U]=V[U]||{})[e]=!0,this}},Y.off=function(U,e){var V=this._events&&this._events[U];if(V&&V.length){var H=V.indexOf(e);return-1!=H&&V.splice(H,1),this}},Y.emitEvent=function(U,e){var V=this._events&&this._events[U];if(V&&V.length){V=V.slice(0),e=e||[];for(var H=this._onceEvents&&this._onceEvents[U],R=0;R<V.length;R++){var Q=V[R];H&&H[Q]&&(this.off(U,Q),delete H[Q]),Q.apply(this,e)}return this}},Y.allOff=function(){delete this._events,delete this._onceEvents},N}.call(I,s,I,K))&&(K.exports=M)},59777:(K,I,s)=>{var l,M,N;N=window,l=[s(51349)],void 0!==(M=function(U){return function(Y,U){"use strict";var e={extend:function(R,Q){for(var $ in Q)R[$]=Q[$];return R},modulo:function(R,Q){return(R%Q+Q)%Q}},V=Array.prototype.slice;e.makeArray=function(R){return Array.isArray(R)?R:null==R?[]:"object"==typeof R&&"number"==typeof R.length?V.call(R):[R]},e.removeFrom=function(R,Q){var $=R.indexOf(Q);
vendor: 13,996 bytes, line 1
1-1!=$&&R.splice($,1)},e.getParent=function(R,Q){for(;R.parentNode&&R!=document.body;)if(U(R=R.parentNode,Q))return R},e.getQueryElement=function(R){return"string"==typeof R?document.querySelector(R):R},e.handleEvent=function(R){var Q="on"+R.type;this[Q]&&this[Q](R)},e.filterFindElements=function(R,Q){R=e.makeArray(R);var $=[];return R.forEach(function(X){if(X instanceof HTMLElement){if(!Q)return void $.push(X);U(X,Q)&&$.push(X);for(var B=X.querySelectorAll(Q),z=0;z<B.length;z++)$.push(B[z])}}),$},e.debounceMethod=function(R,Q,$){$=$||100;var X=R.prototype[Q],B=Q+"Timeout";R.prototype[Q]=function(){clearTimeout(this[B]);var W=arguments,D=this;this[B]=setTimeout(function(){X.apply(D,W),delete D[B]},$)}},e.docReady=function(R){var Q=document.readyState;"complete"==Q||"interactive"==Q?setTimeout(R):document.addEventListener("DOMContentLoaded",R)},e.toDashed=function(R){return R.replace(/(.)([A-Z])/g,function(Q,$,X){return $+"-"+X}).toLowerCase()};var H=Y.console;return e.htmlInit=function(R,Q){e.docReady(function(){var $=e.toDashed(Q),X="data-"+$,B=document.querySelectorAll("["+X+"]"),z=document.querySelectorAll(".js-"+$),W=e.makeArray(B).concat(e.makeArray(z)),D=X+"-options",g=Y.jQuery;W.forEach(function(p){var u,o=p.getAttribute(X)||p.getAttribute(D);try{u=o&&JSON.parse(o)}catch(m){return void(H&&H.error("Error parsing "+X+" on "+p.className+": "+m))}var b=new R(p,u);g&&g.data(p,Q,b)})})},e}(N,U)}.apply(I,l))&&(K.exports=M)},7390:(K,I,s)=>{var M;window,void 0!==(M=function(){"use strict";function Y(W){var D=parseFloat(W);return-1==W.indexOf("%")&&!isNaN(D)&&D}var e="undefined"==typeof console?function U(){}:function(W){console.error(W)},V=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],H=V.length;function Q(W){var D=getComputedStyle(W);return D||e("Style returned "+D+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),D}var X,$=!1;function z(W){if(function B(){if(!$){$=!0;var W=document.createElement("div");W.style.width="200px",W.style.padding="1px 2px 3px 4px",W.style.borderStyle="solid",W.style.borderWidth="1px 2px 3px 4px",W.style.boxSizing="border-box";var D=document.body||document.documentElement;D.appendChild(W);var g=Q(W);X=200==Math.round(Y(g.width)),z.isBoxSizeOuter=X,D.removeChild(W)}}(),"string"==typeof W&&(W=document.querySelector(W)),W&&"object"==typeof W&&W.nodeType){var D=Q(W);if("none"==D.display)return function R(){for(var W={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},D=0;D<H;D++)W[V[D]]=0;return W}();var g={};g.width=W.offsetWidth,g.height=W.offsetHeight;for(var p=g.isBorderBox="border-box"==D.boxSizing,o=0;o<H;o++){var u=V[o],m=parseFloat(D[u]);g[u]=isNaN(m)?0:m}var c=g.paddingLeft+g.paddingRight,A=g.paddingTop+g.paddingBottom,O=g.marginLeft+g.marginRight,_=g.marginTop+g.marginBottom,k=g.borderLeftWidth+g.borderRightWidth,P=g.borderTopWidth+g.borderBottomWidth,E=p&&X,x=Y(D.width);!1!==x&&(g.width=x+(E?0:c+k));var y=Y(D.height);return!1!==y&&(g.height=y+(E?0:A+P)),g.innerWidth=g.width-(c+k),g.innerHeight=g.height-(A+P),g.outerWidth=g.width+O,g.outerHeight=g.height+_,g}}return z}.call(I,s,I,K))&&(K.exports=M)},66893:(K,I,s)=>{var M,N;window,M=[s(91898),s(7390)],void 0!==(N=function(U,e){"use strict";var V=U.create("masonry");V.compatOptions.fitWidth="isFitWidth";var H=V.prototype;return H._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var R=0;R<this.cols;R++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},H.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var R=this.items[0],Q=R&&R.element;this.columnWidth=Q&&e(Q).outerWidth||this.containerWidth}var $=this.columnWidth+=this.gutter,X=this.containerWidth+this.gutter,B=X/$,z=$-X%$;B=Math[z&&z<1?"round":"floor"](B),this.cols=Math.max(B,1)},H.getContainerWidth=function(){var R=this._getOption("fitWidth"),$=e(R?this.element.parentNode:this.element);this.containerWidth=$&&$.innerWidth},H._getItemLayoutPosition=function(R){R.getSize();var Q=R.size.outerWidth%this.columnWidth,X=Math[Q&&Q<1?"round":"ceil"](R.size.outerWidth/this.columnWidth);X=Math.min(X,this.cols);for(var z=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](X,R),W={x:this.columnWidth*z.col,y:z.y},D=z.y+R.size.outerHeight,g=X+z.col,p=z.col;p<g;p++)this.colYs[p]=D;return W},H._getTopColPosition=function(R){var Q=this._getTopColGroup(R),$=Math.min.apply(Math,Q);return{col:Q.indexOf($),y:$}},H._getTopColGroup=function(R){if(R<2)return this.colYs;for(var Q=[],$=this.cols+1-R,X=0;X<$;X++)Q[X]=this._getColGroupY(X,R);return Q},H._getColGroupY=function(R,Q){if(Q<2)return this.colYs[R];var $=this.colYs.slice(R,R+Q);return Math.max.apply(Math,$)},H._getHorizontalColPosition=function(R,Q){var $=this.horizontalColIndex%this.cols;return $=R>1&&$+R>this.cols?0:$,this.horizontalColIndex=Q.size.outerWidth&&Q.size.outerHeight?$+R:this.horizontalColIndex,{col:$,y:this._getColGroupY($,R)}},H._manageStamp=function(R){var Q=e(R),$=this._getElementOffset(R),B=this._getOption("originLeft")?$.left:$.right,z=B+Q.outerWidth,W=Math.floor(B/this.columnWidth);W=Math.max(0,W);var D=Math.floor(z/this.columnWidth);D-=z%this.columnWidth?0:1,D=Math.min(this.cols-1,D);for(var p=(this._getOption("originTop")?$.top:$.bottom)+Q.outerHeight,o=W;o<=D;o++)this.colYs[o]=Math.max(p,this.colYs[o])},H._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var R={height:this.maxY};return this._getOption("fitWidth")&&(R.width=this._getContainerFitWidth()),R},H._getContainerFitWidth=function(){for(var R=0,Q=this.cols;--Q&&0===this.colYs[Q];)R++;return(this.cols-R)*this.columnWidth-this.gutter},H.needsResizeLayout=function(){var R=this.containerWidth;return this.getContainerWidth(),R!=this.containerWidth},V}.apply(I,M))&&(K.exports=N)},42544:(K,I,s)=>{var M,N;window,M=[s(99665),s(7390)],void 0!==(N=function(U,e){"use strict";var H=document.documentElement.style,R="string"==typeof H.transition?"transition":"WebkitTransition",Q="string"==typeof H.transform?"transform":"WebkitTransform",$={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[R],X={transform:Q,transition:R,transitionDuration:R+"Duration",transitionProperty:R+"Property",transitionDelay:R+"Delay"};function B(o,u){!o||(this.element=o,this.layout=u,this.position={x:0,y:0},this._create())}var z=B.prototype=Object.create(U.prototype);z.constructor=B,z._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},z.handleEvent=function(o){var u="on"+o.type;this[u]&&this[u](o)},z.getSize=function(){this.size=e(this.element)},z.css=function(o){var u=this.element.style;for(var b in o)u[X[b]||b]=o[b]},z.getPosition=function(){var o=getComputedStyle(this.element),u=this.layout._getOption("originLeft"),b=this.layout._getOption("originTop"),m=o[u?"left":"right"],c=o[b?"top":"bottom"],A=parseFloat(m),O=parseFloat(c),_=this.layout.size;-1!=m.indexOf("%")&&(A=A/100*_.width),-1!=c.indexOf("%")&&(O=O/100*_.height),A=isNaN(A)?0:A,O=isNaN(O)?0:O,O-=b?_.paddingTop:_.paddingBottom,this.position.x=A-=u?_.paddingLeft:_.paddingRight,this.position.y=O},z.layoutPosition=function(){var o=this.layout.size,u={},b=this.layout._getOption("originLeft"),m=this.layout._getOption("originTop"),O=b?"right":"left";u[b?"left":"right"]=this.getXValue(this.position.x+o[b?"paddingLeft":"paddingRight"]),u[O]="";var E=m?"bottom":"top";u[m?"top":"bottom"]=this.getYValue(this.position.y+o[m?"paddingTop":"paddingBottom"]),u[E]="",this.css(u),this.emitEvent("layout",[this])},z.getXValue=function(o){var u=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!u?o/this.layout.size.width*100+"%":o+"px"},z.getYValue=function(o){var u=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&u?o/this.layout.size.height*100+"%":o+"px"},z._transitionTo=function(o,u){this.getPosition();var b=this.position.x,m=this.position.y,c=o==this.position.x&&u==this.position.y;if(this.setPosition(o,u),!c||this.isTransitioning){var _={};_.transform=this.getTranslate(o-b,u-m),this.transition({to:_,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},z.getTranslate=function(o,u){return"translate3d("+(o=this.layout._getOption("originLeft")?o:-o)+"px, "+(u=this.layout._getOption("originTop")?u:-u)+"px, 0)"},z.goTo=function(o,u){this.setPosition(o,u),this.layoutPosition()},z.moveTo=z._transitionTo,z.setPosition=function(o,u){this.position.x=parseFloat(o),this.position.y=parseFloat(u)},z._nonTransition=function(o){for(var u in this.css(o.to),o.isCleaning&&this._removeStyles(o.to),o.onTransitionEnd)o.onTransitionEnd[u].call(this)},z.transition=function(o){if(parseFloat(this.layout.options.transitionDuration)){var u=this._transn;for(var b in o.onTransitionEnd)u.onEnd[b]=o.onTransitionEnd[b];for(b in o.to)u.ingProperties[b]=!0,o.isCleaning&&(u.clean[b]=!0);o.from&&this.css(o.from),this.enableTransition(o.to),this.css(o.to),this.isTransitioning=!0}else this._nonTransition(o)};var D="opacity,"+function W(o){return o.replace(/([A-Z])/g,function(u){return"-"+u.toLowerCase()})}(Q);z.enableTransition=function(){if(!this.isTransitioning){var o=this.layout.options.transitionDuration;this.css({transitionProperty:D,transitionDuration:o="number"==typeof o?o+"ms":o,transitionDelay:this.staggerDelay||0}),this.element.addEventListener($,this,!1)}},z.onwebkitTransitionEnd=function(o){this.ontransitionend(o)},z.onotransitionend=function(o){this.ontransitionend(o)};var g={"-webkit-transform":"transform"};z.ontransitionend=function(o){if(o.target===this.element){var u=this._transn,b=g[o.propertyName]||o.propertyName;delete u.ingProperties[b],function V(o){for(var u in o)return!1;return!0}(u.ingProperties)&&this.disableTransition(),b in u.clean&&(this.element.style[o.propertyName]="",delete u.clean[b]),b in u.onEnd&&(u.onEnd[b].call(this),delete u.onEnd[b]),this.emitEvent("transitionEnd",[this])}},z.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener($,this,!1),this.isTransitioning=!1},z._removeStyles=function(o){var u={};for(var b in o)u[b]="";this.css(u)};var p={transitionProperty:"",transitionDuration:"",transitionDelay:""};return z.removeTransitionStyles=function(){this.css(p)},z.stagger=function(o){o=isNaN(o)?0:o,this.staggerDelay=o+"ms"},z.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},z.remove=function(){R&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},z.reveal=function(){delete this.isHidden,this.css({display:""});var o=this.layout.options,u={};u[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:o.hiddenStyle,to:o.visibleStyle,isCleaning:!0,onTransitionEnd:u})},z.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},z.getHideRevealTransitionEndProperty=function(o){var u=this.layout.options[o];if(u.opacity)return"opacity";for(var b in u)return b},z.hide=function(){this.isHidden=!0,this.css({display:""});var o=this.layout.options,u={};u[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:o.visibleStyle,to:o.hiddenStyle,isCleaning:!0,onTransitionEnd:u})},z.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},z.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},B}.apply(I,M))&&(K.exports=N)},91898:(K,I,s)=>{var l,M;!function(N,Y){"use strict";l=[s(99665),s(7390),s(59777),s(42544)],M=function(U,e,V,H){return function(Y,U,e,V,H){var R=Y.console,Q=Y.jQuery,$=function(){},X=0,B={};function z(o,u){var b=V.getQueryElement(o);if(b){this.element=b,Q&&(this.$element=Q(this.element)),this.options=V.extend({},this.constructor.defaults),this.option(u);var m=++X;this.element.outlayerGUID=m,B[m]=this,this._create(),this._getOption("initLayout")&&this.layout()}else R&&R.error("Bad element for "+this.constructor.namespace+": "+(b||o))}z.namespace="outlayer",z.Item=H,z.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var W=z.prototype;function D(o){function u(){o.apply(this,arguments)}return(u.prototype=Object.create(o.prototype)).constructor=u,u}V.extend(W,U.prototype),W.option=function(o){V.extend(this.options,o)},W._getOption=function(o){var u=this.constructor.compatOptions[o];return u&&void 0!==this.options[u]?this.options[u]:this.options[o]},z.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},W._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),V.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},W.reloadItems=function(){this.items=this._itemize(this.element.children)},W._itemize=function(o){for(var u=this._filterFindItemElements(o),b=this.constructor.Item,m=[],c=0;c<u.length;c++){var O=new b(u[c],this);m.push(O)}return m},W._filterFindItemElements=function(o){return V.filterFindElements(o,this.options.itemSelector)},W.getItemElements=function(){return this.items.map(function(o){return o.element})},W.layout=function(){this._resetLayout(),this._manageStamps();var o=this._getOption("layoutInstant");this.layoutItems(this.items,void 0!==o?o:!this._isLayoutInited),this._isLayoutInited=!0}
vendor: 4,219 bytes, line 1
1,W._init=W.layout,W._resetLayout=function(){this.getSize()},W.getSize=function(){this.size=e(this.element)},W._getMeasurement=function(o,u){var m,b=this.options[o];b?("string"==typeof b?m=this.element.querySelector(b):b instanceof HTMLElement&&(m=b),this[o]=m?e(m)[u]:b):this[o]=0},W.layoutItems=function(o,u){o=this._getItemsForLayout(o),this._layoutItems(o,u),this._postLayout()},W._getItemsForLayout=function(o){return o.filter(function(u){return!u.isIgnored})},W._layoutItems=function(o,u){if(this._emitCompleteOnItems("layout",o),o&&o.length){var b=[];o.forEach(function(m){var c=this._getItemLayoutPosition(m);c.item=m,c.isInstant=u||m.isLayoutInstant,b.push(c)},this),this._processLayoutQueue(b)}},W._getItemLayoutPosition=function(){return{x:0,y:0}},W._processLayoutQueue=function(o){this.updateStagger(),o.forEach(function(u,b){this._positionItem(u.item,u.x,u.y,u.isInstant,b)},this)},W.updateStagger=function(){var o=this.options.stagger;if(null!=o)return this.stagger=function p(o){if("number"==typeof o)return o;var u=o.match(/(^\d*\.?\d*)(\w*)/),b=u&&u[1],m=u&&u[2];return b.length?(b=parseFloat(b))*(g[m]||1):0}(o),this.stagger;this.stagger=0},W._positionItem=function(o,u,b,m,c){m?o.goTo(u,b):(o.stagger(c*this.stagger),o.moveTo(u,b))},W._postLayout=function(){this.resizeContainer()},W.resizeContainer=function(){if(this._getOption("resizeContainer")){var u=this._getContainerSize();u&&(this._setContainerMeasure(u.width,!0),this._setContainerMeasure(u.height,!1))}},W._getContainerSize=$,W._setContainerMeasure=function(o,u){if(void 0!==o){var b=this.size;b.isBorderBox&&(o+=u?b.paddingLeft+b.paddingRight+b.borderLeftWidth+b.borderRightWidth:b.paddingBottom+b.paddingTop+b.borderTopWidth+b.borderBottomWidth),o=Math.max(o,0),this.element.style[u?"width":"height"]=o+"px"}},W._emitCompleteOnItems=function(o,u){var b=this;function m(){b.dispatchEvent(o+"Complete",null,[u])}var c=u.length;if(u&&c){var A=0;u.forEach(function(_){_.once(o,O)})}else m();function O(){++A==c&&m()}},W.dispatchEvent=function(o,u,b){var m=u?[u].concat(b):b;if(this.emitEvent(o,m),Q)if(this.$element=this.$element||Q(this.element),u){var c=Q.Event(u);c.type=o,this.$element.trigger(c,b)}else this.$element.trigger(o,b)},W.ignore=function(o){var u=this.getItem(o);u&&(u.isIgnored=!0)},W.unignore=function(o){var u=this.getItem(o);u&&delete u.isIgnored},W.stamp=function(o){(o=this._find(o))&&(this.stamps=this.stamps.concat(o),o.forEach(this.ignore,this))},W.unstamp=function(o){(o=this._find(o))&&o.forEach(function(u){V.removeFrom(this.stamps,u),this.unignore(u)},this)},W._find=function(o){if(o)return"string"==typeof o&&(o=this.element.querySelectorAll(o)),V.makeArray(o)},W._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},W._getBoundingRect=function(){var o=this.element.getBoundingClientRect(),u=this.size;this._boundingRect={left:o.left+u.paddingLeft+u.borderLeftWidth,top:o.top+u.paddingTop+u.borderTopWidth,right:o.right-(u.paddingRight+u.borderRightWidth),bottom:o.bottom-(u.paddingBottom+u.borderBottomWidth)}},W._manageStamp=$,W._getElementOffset=function(o){var u=o.getBoundingClientRect(),b=this._boundingRect,m=e(o);return{left:u.left-b.left-m.marginLeft,top:u.top-b.top-m.marginTop,right:b.right-u.right-m.marginRight,bottom:b.bottom-u.bottom-m.marginBottom}},W.handleEvent=V.handleEvent,W.bindResize=function(){Y.addEventListener("resize",this),this.isResizeBound=!0},W.unbindResize=function(){Y.removeEventListener("resize",this),this.isResizeBound=!1},W.onresize=function(){this.resize()},V.debounceMethod(z,"onresize",100),W.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout()},W.needsResizeLayout=function(){var o=e(this.element);return this.size&&o&&o.innerWidth!==this.size.innerWidth},W.addItems=function(o){var u=this._itemize(o);return u.length&&(this.items=this.items.concat(u)),u},W.appended=function(o){var u=this.addItems(o);!u.length||(this.layoutItems(u,!0),this.reveal(u))},W.prepended=function(o){var u=this._itemize(o);if(u.length){var b=this.items.slice(0);this.items=u.concat(b),this._resetLayout(),this._manageStamps(),this.layoutItems(u,!0),this.reveal(u),this.layoutItems(b)}}
1,W.reveal=function(o){if(this._emitCompleteOnItems("reveal",o),o&&o.length){var u=this.updateStagger();o.forEach(function(b,m){b.stagger(m*u),b.reveal()})}},W.hide=function(o){if(this._emitCompleteOnItems("hide",o),o&&o.length){var u=this.updateStagger();o.forEach(function(b,m){b.stagger(m*u),b.hide()})}},W.revealItemElements=function(o){var u=this.getItems(o);this.reveal(u)},W.hideItemElements=function(o){var u=this.getItems(o);this.hide(u)},W.getItem=function(o){for(var u=0;u<this.items.length;u++){var b=this.items[u];if(b.element==o)return b}},W.getItems=function(o){o=V.makeArray(o);var u=[];return o.forEach(function(b){var m=this.getItem(b);m&&u.push(m)},this),u},W.remove=function(o){var u=this.getItems(o);this._emitCompleteOnItems("remove",u),u&&u.length&&u.forEach(function(b){b.remove(),V.removeFrom(this.items,b)},this)},W.destroy=function(){var o=this.element.style;o.height="",o.position="",o.width="",this.items.forEach(function(b){b.destroy()}),this.unbindResize(),delete B[this.element.outlayerGUID],delete this.element.outlayerGUID,Q&&Q.removeData(this.element,this.constructor.namespace)},z.data=function(o){var u=(o=V.getQueryElement(o))&&o.outlayerGUID;return u&&B[u]},z.create=function(o,u){var b=D(z);return b.defaults=V.extend({},z.defaults),V.extend(b.defaults,u),b.compatOptions=V.extend({},z.compatOptions),b.namespace=o,b.data=z.data,b.Item=D(H),V.htmlInit(b,o),Q&&Q.bridget&&Q.bridget(o,b),b};var g={ms:1,s:1e3};return z.Item=H,z}(N,U,e,V,H)}.apply(I,l),void 0!==M&&(K.exports=M)}(window)},85908:function(module,__unused_webpack_exports,__webpack_require__){var s;s=function(){return(()=>{var __webpack_modules__=[,(K,I,s)=>{"use strict";function l(oe){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(G){return typeof G}:function(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(oe)}Object.defineProperty(I,"__esModule",{value:!0}),I.addLinkAttributes=function h(oe){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},G=q.url,L=q.target,F=q.rel,Z=q.enabled,re=void 0===Z||Z;(0,N.assert)(G&&"string"==typeof G,'addLinkAttributes: A valid "url" parameter must provided.');var ue=(0,N.removeNullCharacters)(G);re?oe.href=oe.title=ue:(oe.href="",oe.title="Disabled: ".concat(ue),oe.onclick=function(){return!1});var ve="";switch(L){case f.NONE:break;case f.SELF:ve="_self";break;case f.BLANK:ve="_blank";break;case f.PARENT:ve="_parent";break;case f.TOP:ve="_top"}oe.target=ve,oe.rel="string"==typeof F?F:b},I.deprecated=function ge(oe){console.log("Deprecated API usage: "+oe)},I.getFilenameFromUrl=function S(oe){var q=oe.indexOf("#"),G=oe.indexOf("?"),L=Math.min(q>0?q:oe.length,G>0?G:oe.length);return oe.substring(oe.lastIndexOf("/",L)+1,L)},I.getPdfFilenameFromUrl=function w(oe){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof oe)return q;if(v(oe))return(0,N.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),q;var G=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,L=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,F=G.exec(oe),Z=L.exec(F[1])||L.exec(F[2])||L.exec(F[3]);if(Z&&(Z=Z[0]).includes("%"))try{Z=L.exec(decodeURIComponent(Z))[0]}catch(re){}return Z||q},I.getXfaPageViewport=function be(oe,q){var G=q.scale,L=void 0===G?1:G,F=q.rotation,Z=void 0===F?0:F,re=oe.attributes.style,ve=re.height,ke=[0,0,parseInt(re.width),parseInt(ve)];return new x({viewBox:ke,scale:L,rotation:Z})},I.isDataScheme=v,I.isPdfFile=function d(oe){return"string"==typeof oe&&/\.pdf$/i.test(oe)},I.isValidFetchUrl=te,I.loadScript=function J(oe){var q=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(function(G,L){var F=document.createElement("script");F.src=oe,F.onload=function(Z){q&&F.remove(),G(Z)},F.onerror=function(){L(new Error("Cannot load script at: ".concat(F.src)))},(document.head||document.documentElement).appendChild(F)})},I.StatTimer=I.RenderingCancelledException=I.PixelsPerInch=I.PDFDateString=I.PageViewport=I.LinkTarget=I.DOMSVGFactory=I.DOMStandardFontDataFactory=I.DOMCMapReaderFactory=I.DOMCanvasFactory=void 0;var M=function U(oe){return oe&&oe.__esModule?oe:{default:oe}}(s(2)),N=s(4),Y=s(118);function e(oe,q){var G="undefined"!=typeof Symbol&&oe[Symbol.iterator]||oe["@@iterator"];if(!G){if(Array.isArray(oe)||(G=function V(oe,q){if(oe){if("string"==typeof oe)return H(oe,q);var G=Object.prototype.toString.call(oe).slice(8,-1);if("Object"===G&&oe.constructor&&(G=oe.constructor.name),"Map"===G||"Set"===G)return Array.from(oe);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return H(oe,q)}}
vendor: 9,766 bytes, line 1
1(oe))||q&&oe&&"number"==typeof oe.length){G&&(oe=G);var L=0,F=function(){};return{s:F,n:function(){return L>=oe.length?{done:!0}:{done:!1,value:oe[L++]}},e:function(ke){throw ke},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ue,Z=!0,re=!1;return{s:function(){G=G.call(oe)},n:function(){var ke=G.next();return Z=ke.done,ke},e:function(ke){re=!0,ue=ke},f:function(){try{!Z&&null!=G.return&&G.return()}finally{if(re)throw ue}}}}function H(oe,q){(null==q||q>oe.length)&&(q=oe.length);for(var G=0,L=new Array(q);G<q;G++)L[G]=oe[G];return L}function R(oe,q,G,L,F,Z,re){try{var ue=oe[Z](re),ve=ue.value}catch(ke){return void G(ke)}ue.done?q(ve):Promise.resolve(ve).then(L,F)}function Q(oe){return function(){var q=this,G=arguments;return new Promise(function(L,F){var Z=oe.apply(q,G);function re(ve){R(Z,L,F,re,ue,"next",ve)}function ue(ve){R(Z,L,F,re,ue,"throw",ve)}re(void 0)})}}function $(oe,q){if(!(oe instanceof q))throw new TypeError("Cannot call a class as a function")}function X(oe,q){for(var G=0;G<q.length;G++){var L=q[G];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(oe,L.key,L)}}function B(oe,q,G){return q&&X(oe.prototype,q),G&&X(oe,G),oe}function z(oe,q){if("function"!=typeof q&&null!==q)throw new TypeError("Super expression must either be null or a function");oe.prototype=Object.create(q&&q.prototype,{constructor:{value:oe,writable:!0,configurable:!0}}),q&&W(oe,q)}function W(oe,q){return(W=Object.setPrototypeOf||function(L,F){return L.__proto__=F,L})(oe,q)}function D(oe){var q=function o(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(oe){return!1}}();return function(){var F,L=u(oe);if(q){var Z=u(this).constructor;F=Reflect.construct(L,arguments,Z)}else F=L.apply(this,arguments);return g(this,F)}}function g(oe,q){if(q&&("object"===l(q)||"function"==typeof q))return q;if(void 0!==q)throw new TypeError("Derived constructors may only return object or undefined");return function p(oe){if(void 0===oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe}(oe)}function u(oe){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)})(oe)}var b="noopener noreferrer nofollow";I.PixelsPerInch={CSS:96,PDF:72,get PDF_TO_CSS_UNITS(){return(0,N.shadow)(this,"PDF_TO_CSS_UNITS",this.CSS/this.PDF)}};var A=function(oe){z(G,oe);var q=D(G);function G(){var L,F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=F.ownerDocument,re=void 0===Z?globalThis.document:Z;return $(this,G),(L=q.call(this))._document=re,L}return B(G,[{key:"_createCanvas",value:function(F,Z){var re=this._document.createElement("canvas");return re.width=F,re.height=Z,re}}]),G}(Y.BaseCanvasFactory);function O(oe){return _.apply(this,arguments)}function _(){return _=Q(M.default.mark(function oe(q){var G,L,F=arguments;return M.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(G=F.length>1&&void 0!==F[1]&&F[1],!te(q,document.baseURI)){re.next=21;break}return re.next=4,fetch(q);case 4:if((L=re.sent).ok){re.next=7;break}throw new Error(L.statusText);case 7:if(!G){re.next=15;break}return re.t1=Uint8Array,re.next=11,L.arrayBuffer();case 11:re.t2=re.sent,re.t0=new re.t1(re.t2),re.next=20;break;case 15:return re.t3=N.stringToBytes,re.next=18,L.text();case 18:re.t4=re.sent,re.t0=(0,re.t3)(re.t4);case 20:return re.abrupt("return",re.t0);case 21:return re.abrupt("return",new Promise(function(ue,ve){var ke=new XMLHttpRequest;ke.open("GET",q,!0),G&&(ke.responseType="arraybuffer"),ke.onreadystatechange=function(){if(ke.readyState===XMLHttpRequest.DONE){var Ie;if((200===ke.status||0===ke.status)&&(G&&ke.response?Ie=new Uint8Array(ke.response):!G&&ke.responseText&&(Ie=(0,N.stringToBytes)(ke.responseText)),Ie))return void ue(Ie);ve(new Error(ke.statusText))}},ke.send(null)}));case 22:case"end":return re.stop()}},oe)})),_.apply(this,arguments)}I.DOMCanvasFactory=A;var k=function(oe){z(G,oe);var q=D(G);function G(){return $(this,G),q.apply(this,arguments)}return B(G,[{key:"_fetchData",value:function(F,Z){return O(F,this.isCompressed).then(function(re){return{cMapData:re,compressionType:Z}})}}]),G}(Y.BaseCMapReaderFactory);I.DOMCMapReaderFactory=k;var P=function(oe){z(G,oe);var q=D(G);function G(){return $(this,G),q.apply(this,arguments)}return B(G,[{key:"_fetchData",value:function(F){return O(F,!0)}}]),G}(Y.BaseStandardFontDataFactory);I.DOMStandardFontDataFactory=P;var E=function(oe){z(G,oe);var q=D(G);function G(){return $(this,G),q.apply(this,arguments)}return B(G,[{key:"_createSVG",value:function(F){return document.createElementNS("http://www.w3.org/2000/svg",F)}}]),G}(Y.BaseSVGFactory);I.DOMSVGFactory=E;var x=function(){function oe(q){var G=q.viewBox,L=q.scale,F=q.rotation,Z=q.offsetX,re=void 0===Z?0:Z,ue=q.offsetY,ve=void 0===ue?0:ue,ke=q.dontFlip,Ie=void 0!==ke&&ke;$(this,oe),this.viewBox=G,this.scale=L,this.rotation=F,this.offsetX=re,this.offsetY=ve;var Ve,le,pe,ne,ce,ie,fe,Se,Oe=(G[2]+G[0])/2,Ee=(G[3]+G[1])/2;switch((F%=360)<0&&(F+=360),F){case 180:Ve=-1,le=0,pe=0,ne=1;break;case 90:Ve=0,le=1,pe=1,ne=0;break;case 270:Ve=0,le=-1,pe=-1,ne=0;break;case 0:Ve=1,le=0,pe=0,ne=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}Ie&&(pe=-pe,ne=-ne),0===Ve?(ce=Math.abs(Ee-G[1])*L+re,ie=Math.abs(Oe-G[0])*L+ve,fe=Math.abs(G[3]-G[1])*L,Se=Math.abs(G[2]-G[0])*L):(ce=Math.abs(Oe-G[0])*L+re,ie=Math.abs(Ee-G[1])*L+ve,fe=Math.abs(G[2]-G[0])*L,Se=Math.abs(G[3]-G[1])*L),this.transform=[Ve*L,le*L,pe*L,ne*L,ce-Ve*L*Oe-pe*L*Ee,ie-le*L*Oe-ne*L*Ee],this.width=fe,this.height=Se}return B(oe,[{key:"clone",value:function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},L=G.scale,F=void 0===L?this.scale:L,Z=G.rotation,re=void 0===Z?this.rotation:Z,ue=G.offsetX,ve=void 0===ue?this.offsetX:ue,ke=G.offsetY,Ie=void 0===ke?this.offsetY:ke,Oe=G.dontFlip,Ee=void 0!==Oe&&Oe;return new oe({viewBox:this.viewBox.slice(),scale:F,rotation:re,offsetX:ve,offsetY:Ie,dontFlip:Ee})}},{key:"convertToViewportPoint",value:function(G,L){return N.Util.applyTransform([G,L],this.transform)}},{key:"convertToViewportRectangle",value:function(G){var L=N.Util.applyTransform([G[0],G[1]],this.transform),F=N.Util.applyTransform([G[2],G[3]],this.transform);return[L[0],L[1],F[0],F[1]]}},{key:"convertToPdfPoint",value:function(G,L){return N.Util.applyInverseTransform([G,L],this.transform)}}]),oe}();I.PageViewport=x,I.RenderingCancelledException=function(oe){z(G,oe);var q=D(G);function G(L,F){var Z;return $(this,G),(Z=q.call(this,L,"RenderingCancelledException")).type=F,Z}return G}(N.BaseException);var de,f={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function v(oe){for(var q=oe.length,G=0;G<q&&""===oe[G].trim();)G++;return"data:"===oe.substring(G,G+5).toLowerCase()}function te(oe,q){try{var L=(q?new URL(oe,q):new URL(oe)).protocol;return"http:"===L||"https:"===L}catch(F){return!1}}I.LinkTarget=f,I.StatTimer=function(){function oe(){$(this,oe),this.started=Object.create(null),this.times=[]}return B(oe,[{key:"time",value:function(G){G in this.started&&(0,N.warn)("Timer is already running for ".concat(G)),this.started[G]=Date.now()}},{key:"timeEnd",value:function(G){G in this.started||(0,N.warn)("Timer has not been started for ".concat(G)),this.times.push({name:G,start:this.started[G],end:Date.now()}),delete this.started[G]}},{key:"toString",value:function(){var Z,G=[],L=0,F=e(this.times);try{for(F.s();!(Z=F.n()).done;){var ue=Z.value.name;ue.length>L&&(L=ue.length)}}catch(Ee){F.e(Ee)}finally{F.f()}var ke,ve=e(this.times);try{for(ve.s();!(ke=ve.n()).done;){var Ie=ke.value,Oe=Ie.end-Ie.start;G.push("".concat(Ie.name.padEnd(L)," ").concat(Oe,"ms\n"))}}catch(Ee){ve.e(Ee)}finally{ve.f()}return G.join("")}}]),oe}(),I.PDFDateString=function(){function oe(){$(this,oe)}return B(oe,null,[{key:"toDateObject",value:function(G){if(!G||!(0,N.isString)(G))return null;de||(de=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var L=de.exec(G);if(!L)return null;var F=parseInt(L[1],10),Z=parseInt(L[2],10);Z=Z>=1&&Z<=12?Z-1:0;var re=parseInt(L[3],10);re=re>=1&&re<=31?re:1;var ue=parseInt(L[4],10);ue=ue>=0&&ue<=23?ue:0;var ve=parseInt(L[5],10);ve=ve>=0&&ve<=59?ve:0;var ke=parseInt(L[6],10);ke=ke>=0&&ke<=59?ke:0;var Ie=L[7]||"Z",Oe=parseInt(L[8],10);Oe=Oe>=0&&Oe<=23?Oe:0;var Ee=parseInt(L[9],10)||0;return Ee=Ee>=0&&Ee<=59?Ee:0,"-"===Ie?(ue+=Oe,ve+=Ee):"+"===Ie&&(ue-=Oe,ve-=Ee),new Date(Date.UTC(F,Z,re,ue,ve,ke))}}]),oe}()},(K,I,s)=>{"use strict";K.exports=s(3)},(K,I,s)=>{"use strict";function l(N){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(U){return typeof U}:function(U){return U&&"function"==typeof Symbol&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U})(N)}var M=function(N){var e,Y=Object.prototype,U=Y.hasOwnProperty,V="function"==typeof Symbol?Symbol:{},H=V.iterator||"@@iterator",R=V.asyncIterator||"@@asyncIterator",Q=V.toStringTag||"@@toStringTag";function $(d,S,w){return Object.defineProperty(d,S,{value:w,enumerable:!0,configurable:!0,writable:!0}),d[S]}try{$({},"")}catch(d){$=function(w,j,te){return w[j]=te}}function X(d,S,w,j){var J=Object.create((S&&S.prototype instanceof o?S:o).prototype),ge=new f(j||[]);return J._invoke=function P(d,S,w){var j=z;return function(J,ge){if(j===D)throw new Error("Generator is already running");if(j===g){if("throw"===J)throw ge;return v()}for(w.method=J,w.arg=ge;;){var de=w.delegate;
vendor: 4,984 bytes, line 1
1if(de){var he=E(de,w);if(he){if(he===p)continue;return he}}if("next"===w.method)w.sent=w._sent=w.arg;else if("throw"===w.method){if(j===z)throw j=g,w.arg;w.dispatchException(w.arg)}else"return"===w.method&&w.abrupt("return",w.arg);j=D;var be=B(d,S,w);if("normal"===be.type){if(j=w.done?g:W,be.arg===p)continue;return{value:be.arg,done:w.done}}"throw"===be.type&&(j=g,w.method="throw",w.arg=be.arg)}}}(d,w,ge),J}function B(d,S,w){try{return{type:"normal",arg:d.call(S,w)}}catch(j){return{type:"throw",arg:j}}}N.wrap=X;var z="suspendedStart",W="suspendedYield",D="executing",g="completed",p={};function o(){}function u(){}function b(){}var m={};$(m,H,function(){return this});var c=Object.getPrototypeOf,A=c&&c(c(h([])));A&&A!==Y&&U.call(A,H)&&(m=A);var O=b.prototype=o.prototype=Object.create(m);function _(d){["next","throw","return"].forEach(function(S){$(d,S,function(w){return this._invoke(S,w)})})}function k(d,S){function w(J,ge,de,he){var be=B(d[J],d,ge);if("throw"!==be.type){var oe=be.arg,q=oe.value;return q&&"object"===l(q)&&U.call(q,"__await")?S.resolve(q.__await).then(function(G){w("next",G,de,he)},function(G){w("throw",G,de,he)}):S.resolve(q).then(function(G){oe.value=G,de(oe)},function(G){return w("throw",G,de,he)})}he(be.arg)}var j;this._invoke=function te(J,ge){function de(){return new S(function(he,be){w(J,ge,he,be)})}return j=j?j.then(de,de):de()}}function E(d,S){var w=d.iterator[S.method];if(w===e){if(S.delegate=null,"throw"===S.method){if(d.iterator.return&&(S.method="return",S.arg=e,E(d,S),"throw"===S.method))return p;S.method="throw",S.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var j=B(w,d.iterator,S.arg);if("throw"===j.type)return S.method="throw",S.arg=j.arg,S.delegate=null,p;var te=j.arg;return te?te.done?(S[d.resultName]=te.value,S.next=d.nextLoc,"return"!==S.method&&(S.method="next",S.arg=e),S.delegate=null,p):te:(S.method="throw",S.arg=new TypeError("iterator result is not an object"),S.delegate=null,p)}function x(d){var S={tryLoc:d[0]};1 in d&&(S.catchLoc=d[1]),2 in d&&(S.finallyLoc=d[2],S.afterLoc=d[3]),this.tryEntries.push(S)}function y(d){var S=d.completion||{};S.type="normal",delete S.arg,d.completion=S}function f(d){this.tryEntries=[{tryLoc:"root"}],d.forEach(x,this),this.reset(!0)}function h(d){if(d){var S=d[H];if(S)return S.call(d);if("function"==typeof d.next)return d;if(!isNaN(d.length)){var w=-1,j=function te(){for(;++w<d.length;)if(U.call(d,w))return te.value=d[w],te.done=!1,te;return te.value=e,te.done=!0,te};return j.next=j}}return{next:v}}function v(){return{value:e,done:!0}}return u.prototype=b,$(O,"constructor",b),$(b,"constructor",u),u.displayName=$(b,Q,"GeneratorFunction"),N.isGeneratorFunction=function(d){var S="function"==typeof d&&d.constructor;return!!S&&(S===u||"GeneratorFunction"===(S.displayName||S.name))},N.mark=function(d){return Object.setPrototypeOf?Object.setPrototypeOf(d,b):(d.__proto__=b,$(d,Q,"GeneratorFunction")),d.prototype=Object.create(O),d},N.awrap=function(d){return{__await:d}},_(k.prototype),$(k.prototype,R,function(){return this}),N.AsyncIterator=k,N.async=function(d,S,w,j,te){void 0===te&&(te=Promise);var J=new k(X(d,S,w,j),te);return N.isGeneratorFunction(S)?J:J.next().then(function(ge){return ge.done?ge.value:J.next()})},_(O),$(O,Q,"Generator"),$(O,H,function(){return this}),$(O,"toString",function(){return"[object Generator]"}),N.keys=function(d){var S=[];for(var w in d)S.push(w);return S.reverse(),function j(){for(;S.length;){var te=S.pop();if(te in d)return j.value=te,j.done=!1,j}return j.done=!0,j}},N.values=h,f.prototype={constructor:f,reset:function(S){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(y),!S)for(var w in this)"t"===w.charAt(0)&&U.call(this,w)&&!isNaN(+w.slice(1))&&(this[w]=e)},stop:function(){this.done=!0;var w=this.tryEntries[0].completion;if("throw"===w.type)throw w.arg;return this.rval},dispatchException:function(S){if(this.done)throw S;var w=this;function j(be,oe){return ge.type="throw",ge.arg=S,w.next=be,oe&&(w.method="next",w.arg=e),!!oe}for(var te=this.tryEntries.length-1;te>=0;--te){var J=this.tryEntries[te],ge=J.completion;if("root"===J.tryLoc)return j("end");if(J.tryLoc<=this.prev){var de=U.call(J,"catchLoc"),he=U.call(J,"finallyLoc");if(de&&he){if(this.prev<J.catchLoc)return j(J.catchLoc,!0);if(this.prev<J.finallyLoc)return j(J.finallyLoc)}else if(de){if(this.prev<J.catchLoc)return j(J.catchLoc,!0)}else{if(!he)throw new Error("try statement without catch or finally");if(this.prev<J.finallyLoc)return j(J.finallyLoc)}}}},abrupt:function(S,w){for(var j=this.tryEntries.length-1;j>=0;--j){var te=this.tryEntries[j];if(te.tryLoc<=this.prev&&U.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var J=te;break}}J&&("break"===S||"continue"===S)&&J.tryLoc<=w&&w<=J.finallyLoc&&(J=null);var ge=J?J.completion:{};return ge.type=S,ge.arg=w,J?(this.method="next",this.next=J.finallyLoc,p):this.complete(ge)}
1,complete:function(S,w){if("throw"===S.type)throw S.arg;return"break"===S.type||"continue"===S.type?this.next=S.arg:"return"===S.type?(this.rval=this.arg=S.arg,this.method="return",this.next="end"):"normal"===S.type&&w&&(this.next=w),p},finish:function(S){for(var w=this.tryEntries.length-1;w>=0;--w){var j=this.tryEntries[w];if(j.finallyLoc===S)return this.complete(j.completion,j.afterLoc),y(j),p}},catch:function(S){for(var w=this.tryEntries.length-1;w>=0;--w){var j=this.tryEntries[w];if(j.tryLoc===S){var te=j.completion;if("throw"===te.type){var J=te.arg;y(j)}return J}}throw new Error("illegal catch attempt")},delegateYield:function(S,w,j){return this.delegate={iterator:h(S),resultName:w,nextLoc:j},"next"===this.method&&(this.arg=e),p}},N}("object"===l(K=s.nmd(K))?K.exports:{});try{regeneratorRuntime=M}catch(N){"object"===("undefined"==typeof globalThis?"undefined":l(globalThis))?globalThis.regeneratorRuntime=M:Function("r","regeneratorRuntime = r")(M)}},(K,I,s)=>{"use strict";function l(xe,We){for(var Ae=0;Ae<We.length;Ae++){var Fe=We[Ae];Fe.enumerable=Fe.enumerable||!1,Fe.configurable=!0,"value"in Fe&&(Fe.writable=!0),Object.defineProperty(xe,Fe.key,Fe)}}function V(xe,We){return function Q(xe){if(Array.isArray(xe))return xe}(xe)||function R(xe,We){var Ae=null==xe?null:"undefined"!=typeof Symbol&&xe[Symbol.iterator]||xe["@@iterator"];if(null!=Ae){var ct,ut,Fe=[],et=!0,rt=!1;try{for(Ae=Ae.call(xe);!(et=(ct=Ae.next()).done)&&(Fe.push(ct.value),!We||Fe.length!==We);et=!0);}catch(yt){rt=!0,ut=yt}finally{try{!et&&null!=Ae.return&&Ae.return()}finally{if(rt)throw ut}}return Fe}}(xe,We)||X(xe,We)||function H(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(xe,We){if(xe){if("string"==typeof xe)return B(xe,We);var Ae=Object.prototype.toString.call(xe).slice(8,-1);if("Object"===Ae&&xe.constructor&&(Ae=xe.constructor.name),"Map"===Ae||"Set"===Ae)return Array.from(xe);if("Arguments"===Ae||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ae))return B(xe,We)}}function B(xe,We){(null==We||We>xe.length)&&(We=xe.length);for(var Ae=0,Fe=new Array(We);Ae<We;Ae++)Fe[Ae]=xe[Ae];return Fe}function z(xe){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ae){return typeof Ae}:function(Ae){return Ae&&"function"==typeof Symbol&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae})(xe)}function W(xe,We){if(!(xe instanceof We))throw new TypeError("Cannot call a class as a function")}function D(xe,We){if("function"!=typeof We&&null!==We)throw new TypeError("Super expression must either be null or a function");xe.prototype=Object.create(We&&We.prototype,{constructor:{value:xe,writable:!0,configurable:!0}}),We&&g(xe,We)}function g(xe,We){return(g=Object.setPrototypeOf||function(Fe,et){return Fe.__proto__=et,Fe})(xe,We)}function p(xe){var We=function b(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(xe){return!1}}();return function(){var et,Fe=m(xe);if(We){var rt=m(this).constructor;et=Reflect.construct(Fe,arguments,rt)}else et=Fe.apply(this,arguments);return o(this,et)}}function o(xe,We){if(We&&("object"===z(We)||"function"==typeof We))return We;if(void 0!==We)throw new TypeError("Derived constructors may only return object or undefined");return function u(xe){if(void 0===xe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xe}(xe)}function m(xe){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(Ae){return Ae.__proto__||Object.getPrototypeOf(Ae)})(xe)}Object.defineProperty(I,"__esModule",{value:!0}),I.arrayByteLength=we,I.arraysToBytes=function _e(xe){var We=xe.length;if(1===We&&xe[0]instanceof Uint8Array)return xe[0];for(var Ae=0,Fe=0;Fe<We;Fe++)Ae+=we(xe[Fe]);for(var et=0,rt=new Uint8Array(Ae),ct=0;ct<We;ct++){var ut=xe[ct];ut instanceof Uint8Array||(ut="string"==typeof ut?se(ut):new Uint8Array(ut));var yt=ut.byteLength;rt.set(ut,et),et+=yt}return rt},I.assert=ke,I.bytesToString=function Ne(xe){ke(null!==xe&&"object"===z(xe)&&void 0!==xe.length,"Invalid argument for bytesToString");var We=xe.length;if(We<8192)return String.fromCharCode.apply(null,xe);for(var Fe=[],et=0;et<We;et+=8192){var rt=Math.min(et+8192,We),ct=xe.subarray(et,rt);Fe.push(String.fromCharCode.apply(null,ct))}return Fe.join("")},I.createObjectURL=function rn(xe){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",Ae=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(URL.createObjectURL&&!Ae)return URL.createObjectURL(new Blob([xe],{type:We}));for(var Fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/=",et="data:".concat(We,";base64,"),rt=0,ct=xe.length;rt<ct;rt+=3){var ut=255&xe[rt],yt=255&xe[rt+1],bt=255&xe[rt+2],Dt=ut>>2,Yt=(3&ut)<<4|yt>>4,$n=rt+1<ct?(15&yt)<<2|bt>>6:64,yr=rt+2<ct?63&bt:64;et+=Fe[Dt]+Fe[Yt]+Fe[$n]+Fe[yr]}return et},I.createPromiseCapability=function en(){var xe=Object.create(null),We=!1;return Object.defineProperty(xe,"settled",{get:function(){return We}}),xe.promise=new Promise(function(Ae,Fe){xe.resolve=function(et){We=!0,Ae(et)},xe.reject=function(et){We=!0,Fe(et)}}),xe},I.createValidAbsoluteUrl=function Ee(xe){var We=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,Ae=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!xe)return null;try{if(Ae&&"string"==typeof xe){if(Ae.addDefaultProtocol&&xe.startsWith("www.")){var Fe=xe.match(/\./g);Fe&&Fe.length>=2&&(xe="http://".concat(xe))}if(Ae.tryConvertEncoding)try{xe=Rt(xe)}catch(rt){}}var et=We?new URL(xe,We):new URL(xe);if(Oe(et))return et}catch(rt){}return null},I.escapeString=function _t(xe){return xe.replace(/([()\\\n\r])/g,function(We){return"\n"===We?"\\n":"\r"===We?"\\r":"\\".concat(We)})},I.getModificationDate=function jt(){var xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,We=[xe.getUTCFullYear().toString(),(xe.getUTCMonth()+1).toString().padStart(2,"0"),xe.getUTCDate().toString().padStart(2,"0"),xe.getUTCHours().toString().padStart(2,"0"),xe.getUTCMinutes().toString().padStart(2,"0"),xe.getUTCSeconds().toString().padStart(2,"0")];return We.join("")},I.getVerbosityLevel=function Z(){return L},I.info=function re(xe){L>=he.INFOS&&console.log("Info: ".concat(xe))},I.isArrayBuffer=function wt(xe){return"object"===z(xe)&&null!==xe&&void 0!==xe.byteLength},I.isArrayEqual=function pt(xe,We){if(xe.length!==We.length)return!1;for(var Ae=0,Fe=xe.length;Ae<Fe;Ae++)if(xe[Ae]!==We[Ae])return!1;return!0},I.isAscii=function gt(xe){return/^[\x00-\x7F]*$/.test(xe)},I.isBool=function Bt(xe){return"boolean"==typeof xe},I.isNum=function Wt(xe){return"number"==typeof xe},I.isSameOrigin=function Ie(xe,We){var Ae;try{if(!(Ae=new URL(xe)).origin||"null"===Ae.origin)return!1}catch(et){return!1}var Fe=new URL(We,Ae);return Ae.origin===Fe.origin},I.isString=function Vt(xe){return"string"==typeof xe},I.objectFromMap=function Le(xe){var Fe,We=Object.create(null),Ae=function $(xe,We){var Ae="undefined"!=typeof Symbol&&xe[Symbol.iterator]||xe["@@iterator"];if(!Ae){if(Array.isArray(xe)||(Ae=X(xe))||We&&xe&&"number"==typeof xe.length){Ae&&(xe=Ae);var Fe=0,et=function(){};return{s:et,n:function(){return Fe>=xe.length?{done:!0}:{done:!1,value:xe[Fe++]}},e:function(bt){throw bt},f:et}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ut,rt=!0,ct=!1;return{s:function(){Ae=Ae.call(xe)},n:function(){var bt=Ae.next();return rt=bt.done,bt},e:function(bt){ct=!0,ut=bt},f:function(){try{!rt&&null!=Ae.return&&Ae.return()}finally{if(ct)throw ut}}}}(xe);try{for(Ae.s();!(Fe=Ae.n()).done;){var et=V(Fe.value,2);We[et[0]]=et[1]}}catch(ut){Ae.e(ut)}finally{Ae.f()}return We},I.objectSize=function ze(xe){return Object.keys(xe).length},I.removeNullCharacters=function me(xe){return"string"!=typeof xe?(ue("The argument for removeNullCharacters must be a string."),xe):xe.replace(Re,"")},I.setVerbosityLevel=function F(xe){Number.isInteger(xe)&&(L=xe)},I.shadow=Ve,I.string32=function Pe(xe){return String.fromCharCode(xe>>24&255,xe>>16&255,xe>>8&255,255&xe)},I.stringToBytes=se,I.stringToPDFString=function ht(xe){var We=xe.length,Ae=[];if("\xfe"===xe[0]&&"\xff"===xe[1])for(var Fe=2;Fe<We;Fe+=2)Ae.push(String.fromCharCode(xe.charCodeAt(Fe)<<8|xe.charCodeAt(Fe+1)));else if("\xff"===xe[0]&&"\xfe"===xe[1])for(var et=2;et<We;et+=2)Ae.push(String.fromCharCode(xe.charCodeAt(et+1)<<8|xe.charCodeAt(et)));else for(var rt=0;rt<We;
vendor: 13,356 bytes, line 1
1++rt){var ct=st[xe.charCodeAt(rt)];Ae.push(ct?String.fromCharCode(ct):xe.charAt(rt))}return Ae.join("")},I.stringToUTF16BEString=function Nt(xe){for(var We=["\xfe\xff"],Ae=0,Fe=xe.length;Ae<Fe;Ae++){var et=xe.charCodeAt(Ae);We.push(String.fromCharCode(et>>8&255),String.fromCharCode(255&et))}return We.join("")},I.stringToUTF8String=Rt,I.unreachable=ve,I.utf8StringToString=function zt(xe){return unescape(encodeURIComponent(xe))},I.warn=ue,I.VerbosityLevel=I.Util=I.UNSUPPORTED_FEATURES=I.UnknownErrorException=I.UnexpectedResponseException=I.TextRenderingMode=I.StreamType=I.RenderingIntentFlag=I.PermissionFlag=I.PasswordResponses=I.PasswordException=I.PageActionEventType=I.OPS=I.MissingPDFException=I.IsLittleEndianCached=I.IsEvalSupportedCached=I.InvalidPDFException=I.ImageKind=I.IDENTITY_MATRIX=I.FormatError=I.FontType=I.FONT_IDENTITY_MATRIX=I.DocumentActionEventType=I.CMapCompressionType=I.BaseException=I.AnnotationType=I.AnnotationStateModelType=I.AnnotationReviewState=I.AnnotationReplyType=I.AnnotationMode=I.AnnotationMarkedState=I.AnnotationFlag=I.AnnotationFieldFlag=I.AnnotationBorderStyleType=I.AnnotationActionEventType=I.AbortException=void 0,s(5),I.IDENTITY_MATRIX=[1,0,0,1,0,0],I.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],I.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},I.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},I.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},I.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},I.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},I.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},I.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},I.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},I.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},I.AnnotationReplyType={GROUP:"Group",REPLY:"R"},I.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},I.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},I.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},I.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"},I.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},I.PageActionEventType={O:"PageOpen",C:"PageClose"},I.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},I.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var he={ERRORS:0,WARNINGS:1,INFOS:5};I.VerbosityLevel=he,I.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},I.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},I.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",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",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},I.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var L=he.WARNINGS;function ue(xe){L>=he.WARNINGS&&console.log("Warning: ".concat(xe))}function ve(xe){throw new Error(xe)}function ke(xe,We){xe||ve(We)}function Oe(xe){if(!xe)return!1;switch(xe.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Ve(xe,We,Ae){return Object.defineProperty(xe,We,{value:Ae,enumerable:!0,configurable:!0,writable:!1}),Ae}var le=function(){function We(Ae,Fe){this.constructor===We&&ve("Cannot initialize BaseException."),this.message=Ae,this.name=Fe}return We.prototype=new Error,We.constructor=We,We}();I.BaseException=le,I.PasswordException=function(xe){D(Ae,xe);var We=p(Ae);function Ae(Fe,et){var rt;return W(this,Ae),(rt=We.call(this,Fe,"PasswordException")).code=et,rt}return Ae}(le),I.UnknownErrorException=function(xe){D(Ae,xe);var We=p(Ae);function Ae(Fe,et){var rt;return W(this,Ae),(rt=We.call(this,Fe,"UnknownErrorException")).details=et,rt}return Ae}(le),I.InvalidPDFException=function(xe){D(Ae,xe);var We=p(Ae);function Ae(Fe){return W(this,Ae),We.call(this,Fe,"InvalidPDFException")}return Ae}(le),I.MissingPDFException=function(xe){D(Ae,xe);var We=p(Ae);function Ae(Fe){return W(this,Ae),We.call(this,Fe,"MissingPDFException")}return Ae}(le),I.UnexpectedResponseException=function(xe){D(Ae,xe);var We=p(Ae);function Ae(Fe,et){var rt;return W(this,Ae),(rt=We.call(this,Fe,"UnexpectedResponseException")).status=et,rt}return Ae}(le),I.FormatError=function(xe){D(Ae,xe);var We=p(Ae);function Ae(Fe){return W(this,Ae),We.call(this,Fe,"FormatError")}return Ae}(le),I.AbortException=function(xe){D(Ae,xe);var We=p(Ae);function Ae(Fe){return W(this,Ae),We.call(this,Fe,"AbortException")}return Ae}(le);var Re=/\x00/g;function se(xe){ke("string"==typeof xe,"Invalid argument for stringToBytes");for(var We=xe.length,Ae=new Uint8Array(We),Fe=0;Fe<We;++Fe)Ae[Fe]=255&xe.charCodeAt(Fe);return Ae}function we(xe){return void 0!==xe.length?xe.length:(ke(void 0!==xe.byteLength,"arrayByteLength - invalid argument."),xe.byteLength)}I.IsLittleEndianCached={get value(){return Ve(this,"value",function Ue(){var xe=new Uint8Array(4);return xe[0]=1,1===new Uint32Array(xe.buffer,0,1)[0]}())}},I.IsEvalSupportedCached={get value(){return Ve(this,"value",function je(){try{return new Function(""),!0}catch(xe){return!1}}())}};var Ze=function N(xe){return function e(xe){if(Array.isArray(xe))return B(xe)}(xe)||function U(xe){if("undefined"!=typeof Symbol&&null!=xe[Symbol.iterator]||null!=xe["@@iterator"])return Array.from(xe)}(xe)||X(xe)||function Y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array(256).keys()).map(function(xe){return xe.toString(16).padStart(2,"0")});I.Util=function(){function xe(){W(this,xe)}return function M(xe,We,Ae){We&&l(xe.prototype,We),Ae&&l(xe,Ae)}(xe,null,[{key:"makeHexColor",value:function(Ae,Fe,et){return"#".concat(Ze[Ae]).concat(Ze[Fe]).concat(Ze[et])}},{key:"transform",value:function(Ae,Fe){return[Ae[0]*Fe[0]+Ae[2]*Fe[1],Ae[1]*Fe[0]+Ae[3]*Fe[1],Ae[0]*Fe[2]+Ae[2]*Fe[3],Ae[1]*Fe[2]+Ae[3]*Fe[3],Ae[0]*Fe[4]+Ae[2]*Fe[5]+Ae[4],Ae[1]*Fe[4]+Ae[3]*Fe[5]+Ae[5]]}},{key:"applyTransform",value:function(Ae,Fe){return[Ae[0]*Fe[0]+Ae[1]*Fe[2]+Fe[4],Ae[0]*Fe[1]+Ae[1]*Fe[3]+Fe[5]]}},{key:"applyInverseTransform",value:function(Ae,Fe){var et=Fe[0]*Fe[3]-Fe[1]*Fe[2];return[(Ae[0]*Fe[3]-Ae[1]*Fe[2]+Fe[2]*Fe[5]-Fe[4]*Fe[3])/et,(-Ae[0]*Fe[1]+Ae[1]*Fe[0]+Fe[4]*Fe[1]-Fe[5]*Fe[0])/et]}},{key:"getAxialAlignedBoundingBox",value:function(Ae,Fe){var et=xe.applyTransform(Ae,Fe),rt=xe.applyTransform(Ae.slice(2,4),Fe),ct=xe.applyTransform([Ae[0],Ae[3]],Fe),ut=xe.applyTransform([Ae[2],Ae[1]],Fe);return[Math.min(et[0],rt[0],ct[0],ut[0]),Math.min(et[1],rt[1],ct[1],ut[1]),Math.max(et[0],rt[0],ct[0],ut[0]),Math.max(et[1],rt[1],ct[1],ut[1])]}},{key:"inverseTransform",value:function(Ae){var Fe=Ae[0]*Ae[3]-Ae[1]*Ae[2];return[Ae[3]/Fe,-Ae[1]/Fe,-Ae[2]/Fe,Ae[0]/Fe,(Ae[2]*Ae[5]-Ae[4]*Ae[3])/Fe,(Ae[4]*Ae[1]-Ae[5]*Ae[0])/Fe]}},{key:"apply3dTransform",value:function(Ae,Fe){return[Ae[0]*Fe[0]+Ae[1]*Fe[1]+Ae[2]*Fe[2],Ae[3]*Fe[0]+Ae[4]*Fe[1]+Ae[5]*Fe[2],Ae[6]*Fe[0]+Ae[7]*Fe[1]+Ae[8]*Fe[2]]}},{key:"singularValueDecompose2dScale",value:function(Ae){var Fe=[Ae[0],Ae[2],Ae[1],Ae[3]],et=Ae[0]*Fe[0]+Ae[1]*Fe[2],rt=Ae[0]*Fe[1]+Ae[1]*Fe[3],ct=Ae[2]*Fe[0]+Ae[3]*Fe[2],ut=Ae[2]*Fe[1]+Ae[3]*Fe[3],yt=(et+ut)/2,bt=Math.sqrt(Math.pow(et+ut,2)-4*(et*ut-ct*rt))/2,Yt=yt-bt||1;return[Math.sqrt(yt+bt||1),Math.sqrt(Yt)]}},{key:"normalizeRect",value:function(Ae){var Fe=Ae.slice(0);return Ae[0]>Ae[2]&&(Fe[0]=Ae[2],Fe[2]=Ae[0]),Ae[1]>Ae[3]&&(Fe[1]=Ae[3],Fe[3]=Ae[1]),Fe}},{key:"intersect",value:function(Ae,Fe){function et(yt,bt){return yt-bt}var rt=[Ae[0],Ae[2],Fe[0],Fe[2]].sort(et),ct=[Ae[1],Ae[3],Fe[1],Fe[3]].sort(et),ut=[];return Ae=xe.normalizeRect(Ae),Fe=xe.normalizeRect(Fe),rt[0]===Ae[0]&&rt[1]===Fe[0]||rt[0]===Fe[0]&&rt[1]===Ae[0]?(ut[0]=rt[1],ut[2]=rt[2],ct[0]===Ae[1]&&ct[1]===Fe[1]||ct[0]===Fe[1]&&ct[1]===Ae[1]?(ut[1]=ct[1],ut[3]=ct[2],ut):null):null}}]),xe}();var st=[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];function Rt(xe){return decodeURIComponent(escape(xe))}},(K,I,s)=>{"use strict";var l=s(6);("undefined"==typeof globalThis||!globalThis._pdfjsCompatibilityChecked)&&(("undefined"==typeof globalThis||globalThis.Math!==Math)&&(globalThis=s(7)),globalThis._pdfjsCompatibilityChecked=!0,globalThis.btoa||!l.isNodeJS||(globalThis.btoa=function(N){return Buffer.from(N,"binary").toString("base64")}),globalThis.atob||!l.isNodeJS||(globalThis.atob=function(N){return Buffer.from(N,"base64").toString("binary")}),globalThis.DOMMatrix||!l.isNodeJS||(globalThis.DOMMatrix=s(60)),Object.fromEntries||s(61),globalThis.Promise.allSettled||(globalThis.Promise=s(89)),globalThis.ReadableStream||!l.isNodeJS||(globalThis.ReadableStream=s(117).ReadableStream))},(K,I)=>{"use strict";function s(M){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Y){return typeof Y}:function(Y){return Y&&"function"==typeof Symbol&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y})(M)}Object.defineProperty(I,"__esModule",{value:!0}),I.isNodeJS=void 0;var l=!("object"!==("undefined"==typeof process?"undefined":s(process))||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);I.isNodeJS=l},(K,I,s)=>{s(8),K.exports=s(10)},(K,I,s)=>{s(9)({global:!0},{globalThis:s(10)})},(K,I,s)=>{var l=s(10),M=s(11).f,N=s(40),Y=s(43),U=s(34),e=s(49),V=s(59);K.exports=function(H,R){var z,W,D,g,p,Q=H.target,$=H.global,X=H.stat;if(z=$?l:X?l[Q]||U(Q,{}):(l[Q]||{}).prototype)for(W in R){if(g=R[W],D=H.noTargetGet?(p=M(z,W))&&p.value:z[W],!V($?W:Q+(X?".":"#")+W,H.forced)&&void 0!==D){if
1(typeof g==typeof D)continue;e(g,D)}(H.sham||D&&D.sham)&&N(g,"sham",!0),Y(z,W,g,H)}}},K=>{var I=function(s){return s&&s.Math==Math&&s};K.exports=I("object"==typeof globalThis&&globalThis)||I("object"==typeof window&&window)||I("object"==typeof self&&self)||I("object"==typeof global&&global)||function(){return this}()||Function("return this")()},(K,I,s)=>{var l=s(12),M=s(14),N=s(15),Y=s(16),U=s(20),e=s(35),V=s(38),H=Object.getOwnPropertyDescriptor;I.f=l?H:function(Q,$){if(Q=Y(Q),$=U($),V)try{return H(Q,$)}catch(X){}if(e(Q,$))return N(!M.f.call(Q,$),Q[$])}},(K,I,s)=>{var l=s(13);K.exports=!l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},K=>{K.exports=function(I){try{return!!I()}catch(s){return!0}}},(K,I)=>{"use strict";var s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,M=l&&!s.call({1:2},1);I.f=M?function(Y){var U=l(this,Y);return!!U&&U.enumerable}:s},K=>{K.exports=function(I,s){return{enumerable:!(1&I),configurable:!(2&I),writable:!(4&I),value:s}}},(K,I,s)=>{var l=s(17),M=s(19);K.exports=function(N){return l(M(N))}},(K,I,s)=>{var l=s(13),M=s(18),N="".split;K.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(Y){return"String"==M(Y)?N.call(Y,""):Object(Y)}:Object},K=>{var I={}.toString;K.exports=function(s){return I.call(s).slice(8,-1)}},K=>{K.exports=function(I){if(null==I)throw TypeError("Can't call method on "+I);return I}},(K,I,s)=>{var l=s(21),M=s(23);K.exports=function(N){var Y=l(N,"string");return M(Y)?Y:String(Y)}},(K,I,s)=>{var l=s(22),M=s(23),N=s(29),U=s(30)("toPrimitive");K.exports=function(e,V){if(!l(e)||M(e))return e;var R,H=e[U];if(void 0!==H){if(void 0===V&&(V="default"),R=H.call(e,V),!l(R)||M(R))return R;throw TypeError("Can't convert object to primitive value")}return void 0===V&&(V="number"),N(e,V)}},K=>{K.exports=function(I){return"object"==typeof I?null!==I:"function"==typeof I}},(K,I,s)=>{var l=s(24),M=s(25);K.exports=M?function(N){return"symbol"==typeof N}:function(N){var Y=l("Symbol");return"function"==typeof Y&&Object(N)instanceof Y}},(K,I,s)=>{var l=s(10),M=function(N){return"function"==typeof N?N:void 0};K.exports=function(N,Y){return arguments.length<2?M(l[N]):l[N]&&l[N][Y]}},(K,I,s)=>{var l=s(26);K.exports=l&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(K,I,s)=>{var l=s(27),M=s(13);K.exports=!!Object.getOwnPropertySymbols&&!M(function(){var N=Symbol();return!String(N)||!(Object(N)instanceof Symbol)||!Symbol.sham&&l&&l<41})},(K,I,s)=>{var V,H,l=s(10),M=s(28),N=l.process,Y=l.Deno,U=N&&N.versions||Y&&Y.version,e=U&&U.v8;e?H=(V=e.split("."))[0]<4?1:V[0]+V[1]:M&&(!(V=M.match(/Edge\/(\d+)/))||V[1]>=74)&&(V=M.match(/Chrome\/(\d+)/))&&(H=V[1]),K.exports=H&&+H},(K,I,s)=>{var l=s(24);K.exports=l("navigator","userAgent")||""},(K,I,s)=>{var l=s(22);K.exports=function(M,N){var Y,U;if("string"===N&&"function"==typeof(Y=M.toString)&&!l(U=Y.call(M))||"function"==typeof(Y=M.valueOf)&&!l(U=Y.call(M))||"string"!==N&&"function"==typeof(Y=M.toString)&&!l(U=Y.call(M)))return U;throw TypeError("Can't convert object to primitive value")}},(K,I,s)=>{var l=s(10),M=s(31),N=s(35),Y=s(37),U=s(26),e=s(25),V=M("wks"),H=l.Symbol,R=e?H:H&&H.withoutSetter||Y;K.exports=function(Q){return(!N(V,Q)||!(U||"string"==typeof V[Q]))&&(V[Q]=U&&N(H,Q)?H[Q]:R("Symbol."+Q)),V[Q]}},(K,I,s)=>{var l=s(32),M=s(33);(K.exports=function(N,Y){return M[N]||(M[N]=void 0!==Y?Y:{})})("versions",[]).push({version:"3.17.3",mode:l?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},K=>{K.exports=!1},(K,I,s)=>{var l=s(10),M=s(34),N="__core-js_shared__",Y=l[N]||M(N,{});K.exports=Y},(K,I,s)=>{var l=s(10);K.exports=function(M,N){try{Object.defineProperty(l,M,{value:N,configurable:!0,writable:!0})}catch(Y){l[M]=N}return N}},(K,I,s)=>{var l=s(36),M={}.hasOwnProperty;K.exports=Object.hasOwn||function(Y,U){return M.call(l(Y),U)}},(K,I,s)=>{var l=s(19);K.exports=function(M){return Object(l(M))}},K=>{var I=0,s=Math.random();K.exports=function(l){return"Symbol("+String(void 0===l?"":l)+")_"+(++I+s).toString(36)}},(K,I,s)=>{var l=s(12),M=s(13),N=s(39);K.exports=!l&&!M(function(){return 7!=Object.defineProperty(N("div"),"a",{get:function(){return 7}}).a})},(K,I,s)=>{var l=s(10),M=s(22),N=l.document,Y=M(N)&&M(N.createElement);K.exports=function(U){return Y?N.createElement(U):{}}
1},(K,I,s)=>{var l=s(12),M=s(41),N=s(15);K.exports=l?function(Y,U,e){return M.f(Y,U,N(1,e))}:function(Y,U,e){return Y[U]=e,Y}},(K,I,s)=>{var l=s(12),M=s(38),N=s(42),Y=s(20),U=Object.defineProperty;I.f=l?U:function(V,H,R){if(N(V),H=Y(H),N(R),M)try{return U(V,H,R)}catch(Q){}if("get"in R||"set"in R)throw TypeError("Accessors not supported");return"value"in R&&(V[H]=R.value),V}},(K,I,s)=>{var l=s(22);K.exports=function(M){if(!l(M))throw TypeError(String(M)+" is not an object");return M}},(K,I,s)=>{var l=s(10),M=s(40),N=s(35),Y=s(34),U=s(44),e=s(45),V=e.get,H=e.enforce,R=String(String).split("String");(K.exports=function(Q,$,X,B){var g,z=!!B&&!!B.unsafe,W=!!B&&!!B.enumerable,D=!!B&&!!B.noTargetGet;"function"==typeof X&&("string"==typeof $&&!N(X,"name")&&M(X,"name",$),(g=H(X)).source||(g.source=R.join("string"==typeof $?$:""))),Q!==l?(z?!D&&Q[$]&&(W=!0):delete Q[$],W?Q[$]=X:M(Q,$,X)):W?Q[$]=X:Y($,X)})(Function.prototype,"toString",function(){return"function"==typeof this&&V(this).source||U(this)})},(K,I,s)=>{var l=s(33),M=Function.toString;"function"!=typeof l.inspectSource&&(l.inspectSource=function(N){return M.call(N)}),K.exports=l.inspectSource},(K,I,s)=>{var $,X,B,l=s(46),M=s(10),N=s(22),Y=s(40),U=s(35),e=s(33),V=s(47),H=s(48),R="Object already initialized";if(l||e.state){var D=e.state||(e.state=new(0,M.WeakMap)),g=D.get,p=D.has,o=D.set;$=function(b,m){if(p.call(D,b))throw new TypeError(R);return m.facade=b,o.call(D,b,m),m},X=function(b){return g.call(D,b)||{}},B=function(b){return p.call(D,b)}}else{var u=V("state");H[u]=!0,$=function(b,m){if(U(b,u))throw new TypeError(R);return m.facade=b,Y(b,u,m),m},X=function(b){return U(b,u)?b[u]:{}},B=function(b){return U(b,u)}}K.exports={set:$,get:X,has:B,enforce:function(b){return B(b)?X(b):$(b,{})},getterFor:function(b){return function(m){var c;if(!N(m)||(c=X(m)).type!==b)throw TypeError("Incompatible receiver, "+b+" required");return c}}}},(K,I,s)=>{var l=s(10),M=s(44),N=l.WeakMap;K.exports="function"==typeof N&&/native code/.test(M(N))},(K,I,s)=>{var l=s(31),M=s(37),N=l("keys");K.exports=function(Y){return N[Y]||(N[Y]=M(Y))}},K=>{K.exports={}},(K,I,s)=>{var l=s(35),M=s(50),N=s(11),Y=s(41);K.exports=function(U,e){for(var V=M(e),H=Y.f,R=N.f,Q=0;Q<V.length;Q++){var $=V[Q];l(U,$)||H(U,$,R(e,$))}}},(K,I,s)=>{var l=s(24),M=s(51),N=s(58),Y=s(42);K.exports=l("Reflect","ownKeys")||function(e){var V=M.f(Y(e)),H=N.f;return H?V.concat(H(e)):V}},(K,I,s)=>{var l=s(52),N=s(57).concat("length","prototype");I.f=Object.getOwnPropertyNames||function(U){return l(U,N)}},(K,I,s)=>{var l=s(35),M=s(16),N=s(53).indexOf,Y=s(48);K.exports=function(U,e){var Q,V=M(U),H=0,R=[];for(Q in V)!l(Y,Q)&&l(V,Q)&&R.push(Q);for(;e.length>H;)l(V,Q=e[H++])&&(~N(R,Q)||R.push(Q));return R}},(K,I,s)=>{var l=s(16),M=s(54),N=s(56),Y=function(U){return function(e,V,H){var X,R=l(e),Q=M(R.length),$=N(H,Q);if(U&&V!=V){for(;Q>$;)if((X=R[$++])!=X)return!0}else for(;Q>$;$++)if((U||$ in R)&&R[$]===V)return U||$||0;return!U&&-1}};K.exports={includes:Y(!0),indexOf:Y(!1)}},(K,I,s)=>{var l=s(55),M=Math.min;K.exports=function(N){return N>0?M(l(N),9007199254740991):0}},K=>{var I=Math.ceil,s=Math.floor;K.exports=function(l){return isNaN(l=+l)?0:(l>0?s:I)(l)}},(K,I,s)=>{var l=s(55),M=Math.max,N=Math.min;K.exports=function(Y,U){var e=l(Y);return e<0?M(e+U,0):N(e,U)}},K=>{K.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(K,I)=>{I.f=Object.getOwnPropertySymbols},(K,I,s)=>{var l=s(13),M=/#|\.prototype\./,N=function(H,R){var Q=U[Y(H)];return Q==V||Q!=e&&("function"==typeof R?l(R):!!R)},Y=N.normalize=function(H){return String(H).replace(M,".").toLowerCase()},U=N.data={},e=N.NATIVE="N",V=N.POLYFILL="P";K.exports=N},(K,I,s)=>{"use strict";var l,M,U;function N(Y){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(Y)}U=function(){var Y=function(){for(var p=[],o=arguments.length;o--;)p[o]=arguments[o];return this.setIdentity(),p&&p.length&&this.setMatrixValue(p)},U={isIdentity:{configurable:!0},is2D:{configurable:!0}};U.isIdentity.get=function(){var g=this;return 1===g.m11&&0===g.m12&&0===g.m13&&0===g.m14&&0===g.m21&&1===g.m22&&0===g.m23&&0===g.m24&&0===g.m31&&0===g.m32&&1===g.m33&&0===g.m34&&0===g.m41&&0===g.m42&&0===g.m43&&1===g.m44},U.isIdentity.set=function(g){this.isIdentity=g},U.is2D.get=function(){var g=this;return 0===g.m31&&0===g.m32&&1===g.m33&&0===g.m34&&0===g.m43&&1===g.m44},U.is2D.set=function(g){this.is2D=g},Object.defineProperties(Y.prototype,U);var e=Y.prototype;function V(g,p,o){var u=new Y;return u.m41=g,u.e=g,u.m42=p,u.f=p,u.m43=o,u}
1function H(g,p,o){var u=new Y,b=g*Math.PI/180,m=p*Math.PI/180,c=o*Math.PI/180,A=Math.cos(b),O=-Math.sin(b),_=Math.cos(m),k=-Math.sin(m),P=Math.cos(c),E=-Math.sin(c),x=_*P,y=-_*E;u.m11=x,u.a=x,u.m12=y,u.b=y,u.m13=k;var f=O*k*P+A*E;u.m21=f,u.c=f;var h=A*P-O*k*E;return u.m22=h,u.d=h,u.m23=-O*_,u.m31=O*E-A*k*P,u.m32=O*P+A*k*E,u.m33=A*_,u}function R(g,p,o,u){var b=new Y,m=u*Math.PI/360,c=Math.sin(m),A=Math.cos(m),O=c*c,_=Math.sqrt(g*g+p*p+o*o),k=0,P=0,E=1;0!==_&&(k=g/_,P=p/_,E=o/_);var x=k*k,y=P*P,f=E*E,h=1-2*(y+f)*O;b.m11=h,b.a=h;var v=2*(g*p*O+o*c*A);b.m12=v,b.b=v,b.m13=2*(g*o*O-p*c*A);var d=2*(p*g*O-o*c*A);b.m21=d,b.c=d;var S=1-2*(f+x)*O;return b.m22=S,b.d=S,b.m23=2*(p*o*O+g*c*A),b.m31=2*(o*g*O+p*c*A),b.m32=2*(o*p*O-g*c*A),b.m33=1-2*(x+y)*O,b.m14=0,b.m24=0,b.m34=0,b.m41=0,b.e=0,b.m42=0,b.f=0,b.m43=0,b.m44=1,b}function Q(g,p,o){var u=new Y;return u.m11=g,u.a=g,u.m22=p,u.d=p,u.m33=o,u}function $(g){var p=g*Math.PI/180,o=new Y,u=Math.tan(p);return o.m21=u,o.c=u,o}function X(g){var p=g*Math.PI/180,o=new Y,u=Math.tan(p);return o.m12=u,o.b=u,o}function B(g,p){return new Y([p.m11*g.m11+p.m12*g.m21+p.m13*g.m31+p.m14*g.m41,p.m21*g.m11+p.m22*g.m21+p.m23*g.m31+p.m24*g.m41,p.m31*g.m11+p.m32*g.m21+p.m33*g.m31+p.m34*g.m41,p.m41*g.m11+p.m42*g.m21+p.m43*g.m31+p.m44*g.m41,p.m11*g.m12+p.m12*g.m22+p.m13*g.m32+p.m14*g.m42,p.m21*g.m12+p.m22*g.m22+p.m23*g.m32+p.m24*g.m42,p.m31*g.m12+p.m32*g.m22+p.m33*g.m32+p.m34*g.m42,p.m41*g.m12+p.m42*g.m22+p.m43*g.m32+p.m44*g.m42,p.m11*g.m13+p.m12*g.m23+p.m13*g.m33+p.m14*g.m43,p.m21*g.m13+p.m22*g.m23+p.m23*g.m33+p.m24*g.m43,p.m31*g.m13+p.m32*g.m23+p.m33*g.m33+p.m34*g.m43,p.m41*g.m13+p.m42*g.m23+p.m43*g.m33+p.m44*g.m43,p.m11*g.m14+p.m12*g.m24+p.m13*g.m34+p.m14*g.m44,p.m21*g.m14+p.m22*g.m24+p.m23*g.m34+p.m24*g.m44,p.m31*g.m14+p.m32*g.m24+p.m33*g.m34+p.m34*g.m44,p.m41*g.m14+p.m42*g.m24+p.m43*g.m34+p.m44*g.m44])}function W(g,p){var o=Array.from(p);if(16===o.length){var u=o[0],b=o[1],m=o[2],c=o[3],A=o[4],O=o[5],_=o[6],k=o[7],P=o[8],E=o[9],x=o[10],y=o[11],f=o[12],h=o[13],v=o[14],d=o[15];g.m11=u,g.a=u,g.m21=b,g.c=b,g.m31=m,g.m41=c,g.e=c,g.m12=A,g.b=A,g.m22=O,g.d=O,g.m32=_,g.m42=k,g.f=k,g.m13=P,g.m23=E,g.m33=x,g.m43=y,g.m14=f,g.m24=h,g.m34=v,g.m44=d}else{if(6!==o.length)throw new TypeError("CSSMatrix: expecting a 6/16 values Array");var S=o[0],w=o[1],j=o[2],te=o[3],J=o[4],ge=o[5];g.m11=S,g.a=S,g.m12=w,g.b=w,g.m21=j,g.c=j,g.m22=te,g.d=te,g.m14=J,g.e=J,g.m24=ge,g.f=ge}return g}return e.setMatrixValue=function(p){var o=this;if(!p||!p.length)return o;if(p.length&&"string"==typeof p[0]&&p[0].length){var b,m,u=String(p[0]).trim();if("none"===u)return o;if(b=u.slice(0,u.indexOf("(")),m=u.slice("matrix"===b?7:9,-1).split(",").map(function(c){return Math.abs(c)<1e-6?0:+c}),!([6,16].indexOf(m.length)>-1))throw new TypeError("CSSMatrix: expecting valid CSS matrix() / matrix3d() syntax");W(o,m)}else p[0]instanceof Y?W(o,p[0].toArray()):Array.isArray(p[0])?W(o,p[0]):Array.isArray(p)&&W(o,p);return o},e.toString=function(){return(this.is2D?"matrix":"matrix3d")+"("+this.toArray(1).join(",")+")"},e.toArray=function(p){var o=this;return o.is2D?[o.a,o.b,o.c,o.d,o.e,o.f]:p?[o.m11,o.m12,o.m13,o.m14,o.m21,o.m22,o.m23,o.m24,o.m31,o.m32,o.m33,o.m34,o.m41,o.m42,o.m43,o.m44]:[o.m11,o.m21,o.m31,o.m41,o.m12,o.m22,o.m32,o.m42,o.m13,o.m23,o.m33,o.m43,o.m14,o.m24,o.m34,o.m44]},e.multiply=function(p){return B(this,p)},e.translate=function(p,o,u){var m=o,c=u;return null==c&&(c=0),null==m&&(m=0),B(this,V(p,m,c))},e.scale=function(p,o,u){var m=o,c=u;return null==m&&(m=p),null==c&&(c=p),B(this,Q(p,m,c))},e.rotate=function(p,o,u){var b=p,m=o,c=u;return null==m&&(m=0),null==c&&(c=b,b=0),B(this,H(b,m,c))},e.rotateAxisAngle=function(p,o,u,b){if(4!==arguments.length)throw new TypeError("CSSMatrix: expecting 4 values");return B(this,R(p,o,u,b))},e.skewX=function(p){return B(this,$(p))},e.skewY=function(p){return B(this,X(p))},e.setIdentity=function(){return W(this,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])},e.transformPoint=function(p){var u=V(p.x,p.y,p.z);return u.m44=p.w||1,{x:(u=this.multiply(u)).m41,y:u.m42,z:u.m43,w:u.m44}},e.transform=function(p){var o=this,c=o.m41*p.x+o.m42*p.y+o.m43*p.z+o.m44*p.w;return{x:(o.m11*p.x+o.m12*p.y+o.m13*p.z+o.m14*p.w)/c,y:(o.m21*p.x+o.m22*p.y+o.m23*p.z+o.m24*p.w)/c,z:(o.m31*p.x+o.m32*p.y+o.m33*p.z+o.m34*p.w)/c,w:c}},Y.Translate=V,Y.Rotate=H,Y.RotateAxisAngle=R,Y.Scale=Q,Y.SkewX=$,Y.SkewY=X,Y.Multiply=B,Y.fromMatrix=function z(g){return new Y([g.m11,g.m21,g.m31,g.m41,g.m12,g.m22,g.m32,g.m42,g.m13,g.m23,g.m33,g.m43,g.m14,g.m24,g.m34,g.m44])},Y.fromArray=function D(g){return W(new Y,g)},Y.feedFromArray=W,Y},"object"===N(I)?K.exports=U():void 0!==(M="function"==typeof(l=U)?l.call(I,s,I,K):l)&&(K.exports=M)},(K,I,s)=>{s(62),s(77);var l=s(88);K.exports=l.Object.fromEntries},(K,I,s)=>{"use strict";var l=s(16),M=s(63),N=s(68),Y=s(45),U=s(69),e="Array Iterator",V=Y.set,H=Y.getterFor(e);K.exports=U(Array,"Array",function(R,Q){V(this,{type:e,target:l(R),index:0,kind:Q})},function(){var R=H(this),Q=R.target,$=R.kind,X=R.index++;return!Q||X>=Q.length?(R.target=void 0,{value:void 0,done:!0}):"keys"==$?{value:X,done:!1}:"values"==$?{value:Q[X],done:!1}:{value:[X,Q[X]],done:!1}},"values"),N.Arguments=N.Array,M("keys"),M("values"),M("entries")},(K,I,s)=>{var l=s(30),M=s(64),N=s(41),Y=l("unscopables"),U=Array.prototype;null==U[Y]&&N.f(U,Y,{configurable:!0,value:M(null)}),K.exports=function(e){U[Y][e]=!0}},(K,I,s)=>{var g,l=s(42),M=s(65),N=s(57),Y=s(48),U=s(67),e=s(39),V=s(47),Q="prototype",$="script",X=V("IE_PROTO"),B=function(){},z=function(o){return"<"+$+">"+o+"</"+$+">"},W=function(o){o.write(z("")),o.close();var u=o.parentWindow.Object;return o=null,u},p=function(){try{g=new ActiveXObject("htmlfile")}catch(u){}p="undefined"!=typeof document?document.domain&&g?W(g):function(){var b,o=e("iframe");return o.style.display="none",U.appendChild(o),o.src=String("javascript:"),(b=o.contentWindow.document).open(),b.write(z("document.F=Object")),b.close(),b.F}
1():W(g);for(var o=N.length;o--;)delete p[Q][N[o]];return p()};Y[X]=!0,K.exports=Object.create||function(u,b){var m;return null!==u?(B[Q]=l(u),m=new B,B[Q]=null,m[X]=u):m=p(),void 0===b?m:M(m,b)}},(K,I,s)=>{var l=s(12),M=s(41),N=s(42),Y=s(66);K.exports=l?Object.defineProperties:function(e,V){N(e);for(var $,H=Y(V),R=H.length,Q=0;R>Q;)M.f(e,$=H[Q++],V[$]);return e}},(K,I,s)=>{var l=s(52),M=s(57);K.exports=Object.keys||function(Y){return l(Y,M)}},(K,I,s)=>{var l=s(24);K.exports=l("document","documentElement")},K=>{K.exports={}},(K,I,s)=>{"use strict";var l=s(9),M=s(70),N=s(72),Y=s(75),U=s(74),e=s(40),V=s(43),H=s(30),R=s(32),Q=s(68),$=s(71),X=$.IteratorPrototype,B=$.BUGGY_SAFARI_ITERATORS,z=H("iterator"),W="keys",D="values",g="entries",p=function(){return this};K.exports=function(o,u,b,m,c,A,O){M(b,u,m);var h,v,d,_=function(S){if(S===c&&y)return y;if(!B&&S in E)return E[S];switch(S){case W:case D:case g:return function(){return new b(this,S)}}return function(){return new b(this)}},k=u+" Iterator",P=!1,E=o.prototype,x=E[z]||E["@@iterator"]||c&&E[c],y=!B&&x||_(c),f="Array"==u&&E.entries||x;if(f&&(h=N(f.call(new o)))!==Object.prototype&&h.next&&(!R&&N(h)!==X&&(Y?Y(h,X):"function"!=typeof h[z]&&e(h,z,p)),U(h,k,!0,!0),R&&(Q[k]=p)),c==D&&x&&x.name!==D&&(P=!0,y=function(){return x.call(this)}),(!R||O)&&E[z]!==y&&e(E,z,y),Q[u]=y,c)if(v={values:_(D),keys:A?y:_(W),entries:_(g)},O)for(d in v)(B||P||!(d in E))&&V(E,d,v[d]);else l({target:u,proto:!0,forced:B||P},v);return v}},(K,I,s)=>{"use strict";var l=s(71).IteratorPrototype,M=s(64),N=s(15),Y=s(74),U=s(68),e=function(){return this};K.exports=function(V,H,R){var Q=H+" Iterator";return V.prototype=M(l,{next:N(1,R)}),Y(V,Q,!1,!0),U[Q]=e,V}},(K,I,s)=>{"use strict";var R,Q,$,l=s(13),M=s(64),N=s(72),Y=s(40),U=s(30),e=s(32),V=U("iterator"),H=!1;[].keys&&("next"in($=[].keys())?(Q=N(N($)))!==Object.prototype&&(R=Q):H=!0),null==R||l(function(){var B={};return R[V].call(B)!==B})?R={}:e&&(R=M(R)),"function"!=typeof R[V]&&Y(R,V,function(){return this}),K.exports={IteratorPrototype:R,BUGGY_SAFARI_ITERATORS:H}},(K,I,s)=>{var l=s(35),M=s(36),N=s(47),Y=s(73),U=N("IE_PROTO"),e=Object.prototype;K.exports=Y?Object.getPrototypeOf:function(V){return V=M(V),l(V,U)?V[U]:"function"==typeof V.constructor&&V instanceof V.constructor?V.constructor.prototype:V instanceof Object?e:null}},(K,I,s)=>{var l=s(13);K.exports=!l(function(){function M(){}return M.prototype.constructor=null,Object.getPrototypeOf(new M)!==M.prototype})},(K,I,s)=>{var l=s(41).f,M=s(35),Y=s(30)("toStringTag");K.exports=function(U,e,V){U&&!M(U=V?U:U.prototype,Y)&&l(U,Y,{configurable:!0,value:e})}},(K,I,s)=>{var l=s(42),M=s(76);
1K.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var U,N=!1,Y={};try{(U=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(Y,[]),N=Y instanceof Array}catch(e){}return function(V,H){return l(V),M(H),N?U.call(V,H):V.__proto__=H,V}}():void 0)},(K,I,s)=>{var l=s(22);K.exports=function(M){if(!l(M)&&null!==M)throw TypeError("Can't set "+String(M)+" as a prototype");return M}},(K,I,s)=>{var l=s(9),M=s(78),N=s(87);l({target:"Object",stat:!0},{fromEntries:function(U){var e={};return M(U,function(V,H){N(e,V,H)},{AS_ENTRIES:!0}),e}})},(K,I,s)=>{var l=s(42),M=s(79),N=s(54),Y=s(80),U=s(82),e=s(83),V=s(86),H=function(R,Q){this.stopped=R,this.result=Q};K.exports=function(R,Q,$){var g,p,o,u,b,m,c,B=!(!$||!$.AS_ENTRIES),z=!(!$||!$.IS_ITERATOR),W=!(!$||!$.INTERRUPTED),D=Y(Q,$&&$.that,1+B+W),A=function(_){return g&&V(g,"normal",_),new H(!0,_)},O=function(_){return B?(l(_),W?D(_[0],_[1],A):D(_[0],_[1])):W?D(_,A):D(_)};if(z)g=R;else{if("function"!=typeof(p=e(R)))throw TypeError("Target is not iterable");if(M(p)){for(o=0,u=N(R.length);u>o;o++)if((b=O(R[o]))&&b instanceof H)return b;return new H(!1)}g=U(R,p)}for(m=g.next;!(c=m.call(g)).done;){try{b=O(c.value)}catch(_){V(g,"throw",_)}if("object"==typeof b&&b&&b instanceof H)return b}return new H(!1)}},(K,I,s)=>{var l=s(30),M=s(68),N=l("iterator"),Y=Array.prototype;K.exports=function(U){return void 0!==U&&(M.Array===U||Y[N]===U)}},(K,I,s)=>{var l=s(81);K.exports=function(M,N,Y){if(l(M),void 0===N)return M;switch(Y){case 0:return function(){return M.call(N)};case 1:return function(U){return M.call(N,U)};case 2:return function(U,e){return M.call(N,U,e)};case 3:return function(U,e,V){return M.call(N,U,e,V)}}return function(){return M.apply(N,arguments)}}},K=>{K.exports=function(I){if("function"!=typeof I)throw TypeError(String(I)+" is not a function");return I}},(K,I,s)=>{var l=s(42),M=s(83);K.exports=function(N,Y){var U=arguments.length<2?M(N):Y;if("function"!=typeof U)throw TypeError(String(N)+" is not iterable");return l(U.call(N))}},(K,I,s)=>{var l=s(84),M=s(68),Y=s(30)("iterator");K.exports=function(U){if(null!=U)return U[Y]||U["@@iterator"]||M[l(U)]}},(K,I,s)=>{var l=s(85),M=s(18),Y=s(30)("toStringTag"),U="Arguments"==M(function(){return arguments}());K.exports=l?M:function(V){var H,R,Q;return void 0===V?"Undefined":null===V?"Null":"string"==typeof(R=function(V,H){try{return V[H]}catch(R){}}(H=Object(V),Y))?R:U?M(H):"Object"==(Q=M(H))&&"function"==typeof H.callee?"Arguments":Q}},(K,I,s)=>{var N={};N[s(30)("toStringTag")]="z",K.exports="[object z]"===String(N)},(K,I,s)=>{var l=s(42);K.exports=function(M,N,Y){var U,e;l(M);try{if(void 0===(U=M.return)){if("throw"===N)throw Y;return Y}U=U.call(M)}catch(V){e=!0,U=V}if("throw"===N)throw Y;if(e)throw U;return l(U),Y}},(K,I,s)=>{"use strict";var l=s(20),M=s(41),N=s(15);K.exports=function(Y,U,e){var V=l(U);V in Y?M.f(Y,V,N(0,e)):Y[V]=e}},(K,I,s)=>{var l=s(10);K.exports=l},(K,I,s)=>{s(90),s(62),s(92),s(94),s(112),s(113),s(114),s(115);var l=s(88);K.exports=l.Promise},(K,I,s)=>{"use strict";var l=s(9),M=s(72),N=s(75),Y=s(64),U=s(40),e=s(15),V=s(78),H=s(91),R=function($,X){var B=this;if(!(B instanceof R))return new R($,X);N&&(B=N(new Error(void 0),M(B))),void 0!==X&&U(B,"message",H(X));var z=[];return V($,z.push,{that:z}),U(B,"errors",z),B};R.prototype=Y(Error.prototype,{constructor:e(5,R),message:e(5,""),name:e(5,"AggregateError")}),l({global:!0},{AggregateError:R})},(K,I,s)=>{var l=s(23);K.exports=function(M){if(l(M))throw TypeError("Cannot convert a Symbol value to a string");return String(M)}},(K,I,s)=>{var l=s(85),M=s(43),N=s(93);l||M(Object.prototype,"toString",N,{unsafe:!0})},(K,I,s)=>{"use strict";var l=s(85),M=s(84);K.exports=l?{}.toString:function(){return"[object "+M(this)+"]"}},(K,I,s)=>{"use strict";var ve,ke,Ie,Oe,l=s(9),M=s(32),N=s(10),Y=s(24),U=s(95),e=s(43),V=s(96),H=s(75),R=s(74),Q=s(97),$=s(22),X=s(81),B=s(98),z=s(44),W=s(78),D=s(99),g=s(100),p=s(101).set,o=s(104),u=s(107),b=s(109),m=s(108),c=s(110),A=s(45),O=s(59),_=s(30),k=s(111),P=s(103),E=s(27),x=_("species"),y="Promise",f=A.get,h=A.set,v=A.getterFor(y),d=U&&U.prototype,S=U,w=d,j=N.TypeError,te=N.document,J=N.process,ge=m.f,de=ge,he=!!(te&&te.createEvent&&N.dispatchEvent),be="function"==typeof PromiseRejectionEvent,oe="unhandledrejection",ue=!1,Ee=O(y,function(){var me=z(S),Ne=me!==String(S);if(!Ne&&66===E||M&&!w.finally)return!0;
vendor: 4,518 bytes, line 1
1if(E>=51&&/native code/.test(me))return!1;var se=new S(function(Pe){Pe(1)}),we=function(Pe){Pe(function(){},function(){})};return(se.constructor={})[x]=we,!(ue=se.then(function(){})instanceof we)||!Ne&&k&&!be}),Ve=Ee||!D(function(me){S.all(me).catch(function(){})}),le=function(me){var Ne;return!(!$(me)||"function"!=typeof(Ne=me.then))&&Ne},pe=function(me,Ne){if(!me.notified){me.notified=!0;var se=me.reactions;o(function(){for(var we=me.value,_e=1==me.state,Pe=0;se.length>Pe;){var Xe,Ze,ot,ze=se[Pe++],Le=_e?ze.ok:ze.fail,Ue=ze.resolve,Ye=ze.reject,je=ze.domain;try{Le?(_e||(2===me.rejection&&fe(me),me.rejection=1),!0===Le?Xe=we:(je&&je.enter(),Xe=Le(we),je&&(je.exit(),ot=!0)),Xe===ze.promise?Ye(j("Promise-chain cycle")):(Ze=le(Xe))?Ze.call(Xe,Ue,Ye):Ue(Xe)):Ye(we)}catch(st){je&&!ot&&je.exit(),Ye(st)}}me.reactions=[],me.notified=!1,Ne&&!me.rejection&&ce(me)})}},ne=function(me,Ne,se){var we,_e;he?((we=te.createEvent("Event")).promise=Ne,we.reason=se,we.initEvent(me,!1,!0),N.dispatchEvent(we)):we={promise:Ne,reason:se},!be&&(_e=N["on"+me])?_e(we):me===oe&&b("Unhandled promise rejection",se)},ce=function(me){p.call(N,function(){var _e,Ne=me.facade,se=me.value;if(ie(me)&&(_e=c(function(){P?J.emit("unhandledRejection",se,Ne):ne(oe,Ne,se)}),me.rejection=P||ie(me)?2:1,_e.error))throw _e.value})},ie=function(me){return 1!==me.rejection&&!me.parent},fe=function(me){p.call(N,function(){var Ne=me.facade;P?J.emit("rejectionHandled",Ne):ne("rejectionhandled",Ne,me.value)})},Se=function(me,Ne,se){return function(we){me(Ne,we,se)}},Te=function(me,Ne,se){me.done||(me.done=!0,se&&(me=se),me.value=Ne,me.state=2,pe(me,!0))},Re=function(me,Ne,se){if(!me.done){me.done=!0,se&&(me=se);try{if(me.facade===Ne)throw j("Promise can't be resolved itself");var we=le(Ne);we?o(function(){var _e={done:!1};try{we.call(Ne,Se(Re,_e,me),Se(Te,_e,me))}catch(Pe){Te(_e,Pe,me)}}):(me.value=Ne,me.state=1,pe(me,!1))}catch(_e){Te({done:!1},_e,me)}}};if(Ee&&(S=function(Ne){B(this,S,y),X(Ne),ve.call(this);var se=f(this);try{Ne(Se(Re,se),Se(Te,se))}catch(we){Te(se,we)}},(ve=function(Ne){h(this,{type:y,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=V(w=S.prototype,{then:function(Ne,se){var we=v(this),_e=ge(g(this,S));return _e.ok="function"!=typeof Ne||Ne,_e.fail="function"==typeof se&&se,_e.domain=P?J.domain:void 0,we.parent=!0,we.reactions.push(_e),0!=we.state&&pe(we,!1),_e.promise},catch:function(me){return this.then(void 0,me)}}),ke=function(){var me=new ve,Ne=f(me);this.promise=me,this.resolve=Se(Re,Ne),this.reject=Se(Te,Ne)},m.f=ge=function(me){return me===S||me===Ie?new ke(me):de(me)},!M&&"function"==typeof U&&d!==Object.prototype)){Oe=d.then,ue||(e(d,"then",function(Ne,se){var we=this;return new S(function(_e,Pe){Oe.call(we,_e,Pe)}).then(Ne,se)},{unsafe:!0}),e(d,"catch",w.catch,{unsafe:!0}));try{delete d.constructor}catch(me){}H&&H(d,w)}l({global:!0,wrap:!0,forced:Ee},{Promise:S}),R(S,y,!1,!0),Q(y),Ie=Y(y),l({target:y,stat:!0,forced:Ee},{reject:function(Ne){var se=ge(this);return se.reject.call(void 0,Ne),se.promise}}),l({target:y,stat:!0,forced:M||Ee},{resolve:function(Ne){return u(M&&this===Ie?S:this,Ne)}}),l({target:y,stat:!0,forced:Ve},{all:function(Ne){var se=this,we=ge(se),_e=we.resolve,Pe=we.reject,ze=c(function(){var Le=X(se.resolve),Ue=[],Ye=0,je=1;W(Ne,function(Xe){var Ze=Ye++,ot=!1;Ue.push(void 0),je++,Le.call(se,Xe).then(function(st){ot||(ot=!0,Ue[Ze]=st,--je||_e(Ue))},Pe)}),--je||_e(Ue)});return ze.error&&Pe(ze.value),we.promise},race:function(Ne){var se=this,we=ge(se),_e=we.reject,Pe=c(function(){var ze=X(se.resolve);W(Ne,function(Le){ze.call(se,Le).then(we.resolve,_e)})});return Pe.error&&_e(Pe.value),we.promise}})},(K,I,s)=>{var l=s(10);K.exports=l.Promise},(K,I,s)=>{var l=s(43);K.exports=function(M,N,Y){for(var U in N)l(M,U,N[U],Y);return M}},(K,I,s)=>{"use strict";var l=s(24),M=s(41),N=s(30),Y=s(12),U=N("species");K.exports=function(e){var V=l(e);Y&&V&&!V[U]&&(0,M.f)(V,U,{configurable:!0,get:function(){return this}})}},K=>{K.exports=function(I,s,l){if(!(I instanceof s))throw TypeError("Incorrect "+(l?l+" ":"")+"invocation");return I}},(K,I,s)=>{var M=s(30)("iterator"),N=!1;try{var Y=0,U={next:function(){return{done:!!Y++}},return:function(){N=!0}};U[M]=function(){return this},Array.from(U,function(){throw 2})}catch(e){}K.exports=function(e,V){if(!V&&!N)return!1;var H=!1;try{var R={};R[M]=function(){return{next:function(){return{done:H=!0}}}},e(R)}catch(Q){}return H}},(K,I,s)=>{var l=s(42),M=s(81),Y=s(30)("species");
vendor: 1,177 bytes, line 1
1K.exports=function(U,e){var H,V=l(U).constructor;return void 0===V||null==(H=l(V)[Y])?e:M(H)}},(K,I,s)=>{var D,g,p,o,l=s(10),M=s(13),N=s(80),Y=s(67),U=s(39),e=s(102),V=s(103),H=l.setImmediate,R=l.clearImmediate,Q=l.process,$=l.MessageChannel,X=l.Dispatch,B=0,z={},W="onreadystatechange";try{D=l.location}catch(A){}var u=function(A){if(z.hasOwnProperty(A)){var O=z[A];delete z[A],O()}},b=function(A){return function(){u(A)}},m=function(A){u(A.data)},c=function(A){l.postMessage(String(A),D.protocol+"//"+D.host)};(!H||!R)&&(H=function(O){for(var _=[],k=arguments.length,P=1;k>P;)_.push(arguments[P++]);return z[++B]=function(){("function"==typeof O?O:Function(O)).apply(void 0,_)},g(B),B},R=function(O){delete z[O]},V?g=function(A){Q.nextTick(b(A))}:X&&X.now?g=function(A){X.now(b(A))}:$&&!e?(o=(p=new $).port2,p.port1.onmessage=m,g=N(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts&&D&&"file:"!==D.protocol&&!M(c)?(g=c,l.addEventListener("message",m,!1)):g=W in U("script")?function(A){Y.appendChild(U("script"))[W]=function(){Y.removeChild(this),u(A)}}:function(A){setTimeout(b(A),0)}),K.exports={set:H,clear:R}},(K,I,s)=>{var l=s(28);
1K.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(l)},(K,I,s)=>{var l=s(18),M=s(10);K.exports="process"==l(M.process)},(K,I,s)=>{var z,W,D,g,p,o,u,b,l=s(10),M=s(11).f,N=s(101).set,Y=s(102),U=s(105),e=s(106),V=s(103),H=l.MutationObserver||l.WebKitMutationObserver,R=l.document,Q=l.process,$=l.Promise,X=M(l,"queueMicrotask"),B=X&&X.value;B||(z=function(){var m,c;for(V&&(m=Q.domain)&&m.exit();W;){c=W.fn,W=W.next;try{c()}catch(A){throw W?g():D=void 0,A}}D=void 0,m&&m.enter()},Y||V||e||!H||!R?!U&&$&&$.resolve?((u=$.resolve(void 0)).constructor=$,b=u.then,g=function(){b.call(u,z)}):g=V?function(){Q.nextTick(z)}:function(){N.call(l,z)}:(p=!0,o=R.createTextNode(""),new H(z).observe(o,{characterData:!0}),g=function(){o.data=p=!p})),K.exports=B||function(m){var c={fn:m,next:void 0};D&&(D.next=c),W||(W=c,g()),D=c}},(K,I,s)=>{var l=s(28),M=s(10);K.exports=/ipad|iphone|ipod/i.test(l)&&void 0!==M.Pebble},(K,I,s)=>{var l=s(28);K.exports=/web0s(?!.*chrome)/i.test(l)},(K,I,s)=>{var l=s(42),M=s(22),N=s(108);K.exports=function(Y,U){if(l(Y),M(U)&&U.constructor===Y)return U;var e=N.f(Y);return(0,e.resolve)(U),e.promise}},(K,I,s)=>{"use strict";var l=s(81),M=function(N){var Y,U;this.promise=new N(function(e,V){if(void 0!==Y||void 0!==U)throw TypeError("Bad Promise constructor");Y=e,U=V}),this.resolve=l(Y),this.reject=l(U)};K.exports.f=function(N){return new M(N)}},(K,I,s)=>{var l=s(10);K.exports=function(M,N){var Y=l.console;Y&&Y.error&&(1===arguments.length?Y.error(M):Y.error(M,N))}},K=>{K.exports=function(I){try{return{error:!1,value:I()}}catch(s){return{error:!0,value:s}}}},K=>{K.exports="object"==typeof window},(K,I,s)=>{"use strict";var l=s(9),M=s(81),N=s(108),Y=s(110),U=s(78);l({target:"Promise",stat:!0},{allSettled:function(V){var H=this,R=N.f(H),Q=R.resolve,$=R.reject,X=Y(function(){var B=M(H.resolve),z=[],W=0,D=1;U(V,function(g){var p=W++,o=!1;z.push(void 0),D++,B.call(H,g).then(function(u){o||(o=!0,z[p]={status:"fulfilled",value:u},--D||Q(z))},function(u){o||(o=!0,z[p]={status:"rejected",reason:u},--D||Q(z))})}),--D||Q(z)});return X.error&&$(X.value),R.promise}})},(K,I,s)=>{"use strict";var l=s(9),M=s(81),N=s(24),Y=s(108),U=s(110),e=s(78),V="No one promise resolved";l({target:"Promise",stat:!0},{any:function(R){var Q=this,$=Y.f(Q),X=$.resolve,B=$.reject,z=U(function(){var W=M(Q.resolve),D=[],g=0,p=1,o=!1;e(R,function(u){var b=g++,m=!1;D.push(void 0),p++,W.call(Q,u).then(function(c){m||o||(o=!0,X(c))},function(c){m||o||(m=!0,D[b]=c,--p||B(new(N("AggregateError"))(D,V)))})}),--p||B(new(N("AggregateError"))(D,V))});return z.error&&B(z.value),$.promise}})},(K,I,s)=>{"use strict";var l=s(9),M=s(32),N=s(95),Y=s(13),U=s(24),e=s(100),V=s(107),H=s(43);if(l({target:"Promise",proto:!0,real:!0,forced:!!N&&Y(function(){N.prototype.finally.call({then:function(){}},function(){})})},{finally:function($){var X=e(this,U("Promise")),B="function"==typeof $;return this.then(B?function(z){return V(X,$()).then(function(){return z})}:$,B?function(z){return V(X,$()).then(function(){throw z})}:$)}}),!M&&"function"==typeof N){var Q=U("Promise").prototype.finally;N.prototype.finally!==Q&&H(N.prototype,"finally",Q,{unsafe:!0})}},(K,I,s)=>{"use strict";var l=s(116).charAt,M=s(91),N=s(45),Y=s(69),U="String Iterator",e=N.set,V=N.getterFor(U);Y(String,"String",function(H){e(this,{type:U,string:M(H),index:0})},function(){var X,R=V(this),Q=R.string,$=R.index;return $>=Q.length?{value:void 0,done:!0}:(X=l(Q,$),R.index+=X.length,{value:X,done:!1})})},(K,I,s)=>{var l=s(55),M=s(91),N=s(19),Y=function(U){return function(e,V){var $,X,H=M(N(e)),R=l(V),Q=H.length;return R<0||R>=Q?U?"":void 0:($=H.charCodeAt(R))<55296||$>56319||R+1===Q||(X=H.charCodeAt(R+1))<56320||X>57343?U?H.charAt(R):$:U?H.slice(R,R+2):X-56320+($-55296<<10)+65536}};K.exports={codeAt:Y(!1),charAt:Y(!0)}},function(K,I){!function(s){"use strict";var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(i){return"Symbol("+i+")"};function M(){}var Y=function N(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0}();function U(i){return"object"==typeof i&&null!==i||"function"==typeof i}var e=M,V=Promise,H=Promise.prototype.then,R=Promise.resolve.bind(V),Q=Promise.reject.bind(V);function $(i){return new V(i)}function X(i){return R(i)}function B(i){return Q(i)}function z(i,C,ee){return H.call(i,C,ee)}function W(i,C,ee){z(z(i,C,ee),void 0,e)}
1function D(i,C){W(i,C)}function g(i,C){W(i,void 0,C)}function p(i,C,ee){return z(i,C,ee)}function o(i){z(i,void 0,e)}var u=function(){var i=Y&&Y.queueMicrotask;if("function"==typeof i)return i;var C=X(void 0);return function(ee){return z(C,ee)}}();function b(i,C,ee){if("function"!=typeof i)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(i,C,ee)}function m(i,C,ee){try{return X(b(i,C,ee))}catch(ye){return B(ye)}}var A=function(){function i(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(i.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),i.prototype.push=function(C){var ee=this._back,ye=ee;16383===ee._elements.length&&(ye={_elements:[],_next:void 0}),ee._elements.push(C),ye!==ee&&(this._back=ye,ee._next=ye),++this._size},i.prototype.shift=function(){var C=this._front,ee=C,ye=this._cursor,De=ye+1,He=C._elements,Ke=He[ye];return 16384===De&&(ee=C._next,De=0),--this._size,this._cursor=De,C!==ee&&(this._front=ee),He[ye]=void 0,Ke},i.prototype.forEach=function(C){for(var ee=this._cursor,ye=this._front,De=ye._elements;!(ee===De.length&&void 0===ye._next||ee===De.length&&(ye=ye._next,De=ye._elements,ee=0,0===De.length));)C(De[ee]),++ee},i.prototype.peek=function(){return this._front._elements[this._cursor]},i}();function O(i,C){i._ownerReadableStream=C,C._reader=i,"readable"===C._state?E(i):"closed"===C._state?function y(i){E(i),v(i)}(i):x(i,C._storedError)}function _(i,C){return Gt(i._ownerReadableStream,C)}function k(i){"readable"===i._ownerReadableStream._state?f(i,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function h(i,C){x(i,C)}(i,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),i._ownerReadableStream._reader=void 0,i._ownerReadableStream=void 0}function P(i){return new TypeError("Cannot "+i+" a stream using a released reader")}function E(i){i._closedPromise=$(function(C,ee){i._closedPromise_resolve=C,i._closedPromise_reject=ee})}function x(i,C){E(i),f(i,C)}function f(i,C){void 0!==i._closedPromise_reject&&(o(i._closedPromise),i._closedPromise_reject(C),i._closedPromise_resolve=void 0,i._closedPromise_reject=void 0)}function v(i){void 0!==i._closedPromise_resolve&&(i._closedPromise_resolve(void 0),i._closedPromise_resolve=void 0,i._closedPromise_reject=void 0)}var d=l("[[AbortSteps]]"),S=l("[[ErrorSteps]]"),w=l("[[CancelSteps]]"),j=l("[[PullSteps]]"),te=Number.isFinite||function(i){return"number"==typeof i&&isFinite(i)},J=Math.trunc||function(i){return i<0?Math.ceil(i):Math.floor(i)};function de(i,C){if(void 0!==i&&!function ge(i){return"object"==typeof i||"function"==typeof i}(i))throw new TypeError(C+" is not an object.")}function he(i,C){if("function"!=typeof i)throw new TypeError(C+" is not a function.")}function oe(i,C){if(!function be(i){return"object"==typeof i&&null!==i||"function"==typeof i}(i))throw new TypeError(C+" is not an object.")}function q(i,C,ee){if(void 0===i)throw new TypeError("Parameter "+C+" is required in '"+ee+"'.")}function G(i,C,ee){if(void 0===i)throw new TypeError(C+" is required in '"+ee+"'.")}function L(i){return Number(i)}function F(i){return 0===i?0:i}function re(i,C){var ye=Number.MAX_SAFE_INTEGER,De=Number(i);if(De=F(De),!te(De))throw new TypeError(C+" is not a finite number");if((De=function Z(i){return F(J(i))}(De))<0||De>ye)throw new TypeError(C+" is outside the accepted range of 0 to "+ye+", inclusive");return te(De)&&0!==De?De:0}function ue(i,C){if(!cn(i))throw new TypeError(C+" is not a ReadableStream.")}function ve(i){return new Ve(i)}function ke(i,C){i._reader._readRequests.push(C)}function Ie(i,C,ee){var De=i._reader._readRequests.shift();ee?De._closeSteps():De._chunkSteps(C)}function Oe(i){return i._reader._readRequests.length}function Ee(i){var C=i._reader;return!(void 0===C||!le(C))}var ce,ie,Ve=function(){function i(C){if(q(C,1,"ReadableStreamDefaultReader"),ue(C,"First parameter"),dn(C))throw new TypeError("This stream has already been locked for exclusive reading by another reader");O(this,C),this._readRequests=new A}return Object.defineProperty(i.prototype,"closed",{get:function(){return le(this)?this._closedPromise:B(ne("closed"))}
vendor: 4,408 bytes, line 1
1,enumerable:!1,configurable:!0}),i.prototype.cancel=function(C){return void 0===C&&(C=void 0),le(this)?void 0===this._ownerReadableStream?B(P("cancel")):_(this,C):B(ne("cancel"))},i.prototype.read=function(){if(!le(this))return B(ne("read"));if(void 0===this._ownerReadableStream)return B(P("read from"));var C,ee,ye=$(function(He,Ke){C=He,ee=Ke});return pe(this,{_chunkSteps:function(He){return C({value:He,done:!1})},_closeSteps:function(){return C({value:void 0,done:!0})},_errorSteps:function(He){return ee(He)}}),ye},i.prototype.releaseLock=function(){if(!le(this))throw ne("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");k(this)}},i}();function le(i){return!(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_readRequests"))&&i instanceof Ve}function pe(i,C){var ee=i._ownerReadableStream;ee._disturbed=!0,"closed"===ee._state?C._closeSteps():"errored"===ee._state?C._errorSteps(ee._storedError):ee._readableStreamController[j](C)}function ne(i){return new TypeError("ReadableStreamDefaultReader.prototype."+i+" can only be used on a ReadableStreamDefaultReader")}Object.defineProperties(Ve.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof l.toStringTag&&Object.defineProperty(Ve.prototype,l.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0}),"symbol"==typeof l.asyncIterator&&((ce={})[l.asyncIterator]=function(){return this},ie=ce,Object.defineProperty(ie,l.asyncIterator,{enumerable:!1}));var fe=function(){function i(C,ee){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=C,this._preventCancel=ee}return i.prototype.next=function(){var C=this,ee=function(){return C._nextSteps()};return this._ongoingPromise=this._ongoingPromise?p(this._ongoingPromise,ee,ee):ee(),this._ongoingPromise},i.prototype.return=function(C){var ee=this,ye=function(){return ee._returnSteps(C)};return this._ongoingPromise?p(this._ongoingPromise,ye,ye):ye()},i.prototype._nextSteps=function(){var C=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var ee=this._reader;if(void 0===ee._ownerReadableStream)return B(P("iterate"));var ye,De,He=$(function(tt,lt){ye=tt,De=lt});return pe(ee,{_chunkSteps:function(tt){C._ongoingPromise=void 0,u(function(){return ye({value:tt,done:!1})})},_closeSteps:function(){C._ongoingPromise=void 0,C._isFinished=!0,k(ee),ye({value:void 0,done:!0})},_errorSteps:function(tt){C._ongoingPromise=void 0,C._isFinished=!0,k(ee),De(tt)}}),He},i.prototype._returnSteps=function(C){if(this._isFinished)return Promise.resolve({value:C,done:!0});this._isFinished=!0;var ee=this._reader;if(void 0===ee._ownerReadableStream)return B(P("finish iterating"));if(!this._preventCancel){var ye=_(ee,C);return k(ee),p(ye,function(){return{value:C,done:!0}})}return k(ee),X({value:C,done:!0})},i}(),Se={next:function(){return Re(this)?this._asyncIteratorImpl.next():B(me("next"))},return:function(i){return Re(this)?this._asyncIteratorImpl.return(i):B(me("return"))}};function Re(i){if(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_asyncIteratorImpl"))return!1;try{return i._asyncIteratorImpl instanceof fe}catch(C){return!1}}function me(i){return new TypeError("ReadableStreamAsyncIterator."+i+" can only be used on a ReadableSteamAsyncIterator")}void 0!==ie&&Object.setPrototypeOf(Se,ie);var Ne=Number.isNaN||function(i){return i!=i};function se(i){return i.slice()}function we(i,C,ee,ye,De){new Uint8Array(i).set(new Uint8Array(ee,ye,De),C)}function ze(i,C,ee){if(i.slice)return i.slice(C,ee);var ye=ee-C,De=new ArrayBuffer(ye);return we(De,0,i,C,ye),De}function Ue(i){var C=ze(i.buffer,i.byteOffset,i.byteOffset+i.byteLength);return new Uint8Array(C)}function Ye(i){var C=i._queue.shift();return i._queueTotalSize-=C.size,i._queueTotalSize<0&&(i._queueTotalSize=0),C.value}function je(i,C,ee){if(!function Le(i){return!("number"!=typeof i||Ne(i)||i<0)}(ee)||ee===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");i._queue.push({value:C,size:ee}),i._queueTotalSize+=ee}function Ze(i){i._queue=new A,i._queueTotalSize=0}var ot=function(){function i(){throw new TypeError("Illegal constructor")}return Object.defineProperty(i.prototype,"view",{get:function(){if(!_t(this))throw Yn("view");return this._view}
1,enumerable:!1,configurable:!0}),i.prototype.respond=function(C){if(!_t(this))throw Yn("respond");if(q(C,1,"respond"),C=re(C,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");Dt(this._associatedReadableByteStreamController,C)},i.prototype.respondWithNewView=function(C){if(!_t(this))throw Yn("respondWithNewView");if(q(C,1,"respondWithNewView"),!ArrayBuffer.isView(C))throw new TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");Yt(this._associatedReadableByteStreamController,C)},i}();Object.defineProperties(ot.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),"symbol"==typeof l.toStringTag&&Object.defineProperty(ot.prototype,l.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var st=function(){function i(){throw new TypeError("Illegal constructor")}return Object.defineProperty(i.prototype,"byobRequest",{get:function(){if(!ht(this))throw Ht("byobRequest");return yt(this)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"desiredSize",{get:function(){if(!ht(this))throw Ht("desiredSize");return bt(this)},enumerable:!1,configurable:!0}),i.prototype.close=function(){if(!ht(this))throw Ht("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var C=this._controlledReadableByteStream._state;if("readable"!==C)throw new TypeError("The stream (in "+C+" state) is not in the readable state and cannot be closed");rt(this)},i.prototype.enqueue=function(C){if(!ht(this))throw Ht("enqueue");if(q(C,1,"enqueue"),!ArrayBuffer.isView(C))throw new TypeError("chunk must be an array buffer view");if(0===C.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===C.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var ee=this._controlledReadableByteStream._state;if("readable"!==ee)throw new TypeError("The stream (in "+ee+" state) is not in the readable state and cannot be enqueued to");ct(this,C)},i.prototype.error=function(C){if(void 0===C&&(C=void 0),!ht(this))throw Ht("error");ut(this,C)},i.prototype[w]=function(C){Nt(this),Ze(this);var ee=this._cancelAlgorithm(C);return et(this),ee},i.prototype[j]=function(C){var ee=this._controlledReadableByteStream;if(this._queueTotalSize>0){var ye=this._queue.shift();this._queueTotalSize-=ye.byteLength,wt(this);var De=new Uint8Array(ye.buffer,ye.byteOffset,ye.byteLength);C._chunkSteps(De)}else{var He=this._autoAllocateChunkSize;if(void 0!==He){var Ke=void 0;try{Ke=new ArrayBuffer(He)}catch(lt){return void C._errorSteps(lt)}var tt={buffer:Ke,bufferByteLength:He,byteOffset:0,byteLength:He,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(tt)}ke(ee,C),gt(this)}},i}();function ht(i){return!(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_controlledReadableByteStream"))&&i instanceof st}function _t(i){return!(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_associatedReadableByteStreamController"))&&i instanceof ot}function gt(i){if(function Fe(i){var C=i._controlledReadableByteStream;return!("readable"!==C._state||i._closeRequested||!i._started)&&(!!(Ee(C)&&Oe(C)>0||Cn(C)&&qn(C)>0)||bt(i)>0)}(i)){if(i._pulling)return void(i._pullAgain=!0);i._pulling=!0,W(i._pullAlgorithm(),function(){i._pulling=!1,i._pullAgain&&(i._pullAgain=!1,gt(i))},function(ye){ut(i,ye)})}}function Nt(i){pt(i),i._pendingPullIntos=new A}function Rt(i,C){var ee=!1;"closed"===i._state&&(ee=!0);var ye=zt(C);"default"===C.readerType?Ie(i,ye,ee):function _r(i,C,ee){var De=i._reader._readIntoRequests.shift();ee?De._closeSteps(C):De._chunkSteps(C)}(i,ye,ee)}function zt(i){return new i.viewConstructor(i.buffer,i.byteOffset,i.bytesFilled/i.elementSize)}function Bt(i,C,ee,ye){i._queue.push({buffer:C,byteOffset:ee,byteLength:ye}),i._queueTotalSize+=ye}function Wt(i,C){var ee=C.elementSize,ye=C.bytesFilled-C.bytesFilled%ee,De=Math.min(i._queueTotalSize,C.byteLength-C.bytesFilled),He=C.bytesFilled+De,Ke=He-He%ee,tt=De,lt=!1;Ke>ye&&(tt=Ke-C.bytesFilled,lt=!0);for(var vt=i._queue;tt>0;
1){var Ct=vt.peek(),xt=Math.min(tt,Ct.byteLength);we(C.buffer,C.byteOffset+C.bytesFilled,Ct.buffer,Ct.byteOffset,xt),Ct.byteLength===xt?vt.shift():(Ct.byteOffset+=xt,Ct.byteLength-=xt),i._queueTotalSize-=xt,Vt(0,xt,C),tt-=xt}return lt}function Vt(i,C,ee){ee.bytesFilled+=C}function wt(i){0===i._queueTotalSize&&i._closeRequested?(et(i),Un(i._controlledReadableByteStream)):gt(i)}function pt(i){null!==i._byobRequest&&(i._byobRequest._associatedReadableByteStreamController=void 0,i._byobRequest._view=null,i._byobRequest=null)}function jt(i){for(;i._pendingPullIntos.length>0;){if(0===i._queueTotalSize)return;var C=i._pendingPullIntos.peek();Wt(i,C)&&(Ae(i),Rt(i._controlledReadableByteStream,C))}}function We(i,C){var ee=i._pendingPullIntos.peek();pt(i),"closed"===i._controlledReadableByteStream._state?function rn(i,C){var ee=i._controlledReadableByteStream;if(Cn(ee))for(;qn(ee)>0;)Rt(ee,Ae(i))}(i):function xe(i,C,ee){if(Vt(0,C,ee),!(ee.bytesFilled<ee.elementSize)){Ae(i);var ye=ee.bytesFilled%ee.elementSize;if(ye>0){var De=ee.byteOffset+ee.bytesFilled,He=ze(ee.buffer,De-ye,De);Bt(i,He,0,He.byteLength)}ee.bytesFilled-=ye,Rt(i._controlledReadableByteStream,ee),jt(i)}}(i,C,ee),gt(i)}function Ae(i){return i._pendingPullIntos.shift()}function et(i){i._pullAlgorithm=void 0,i._cancelAlgorithm=void 0}function rt(i){var C=i._controlledReadableByteStream;if(!i._closeRequested&&"readable"===C._state){if(i._queueTotalSize>0)return void(i._closeRequested=!0);if(i._pendingPullIntos.length>0&&i._pendingPullIntos.peek().bytesFilled>0){var ye=new TypeError("Insufficient bytes to fill elements in the given buffer");throw ut(i,ye),ye}et(i),Un(C)}}function ct(i,C){var ee=i._controlledReadableByteStream;if(!i._closeRequested&&"readable"===ee._state){var De=C.byteOffset,He=C.byteLength,Ke=C.buffer;if(i._pendingPullIntos.length>0){var tt=i._pendingPullIntos.peek();tt.buffer=tt.buffer}pt(i),Ee(ee)?0===Oe(ee)?Bt(i,Ke,De,He):Ie(ee,new Uint8Array(Ke,De,He),!1):Cn(ee)?(Bt(i,Ke,De,He),jt(i)):Bt(i,Ke,De,He),gt(i)}}function ut(i,C){var ee=i._controlledReadableByteStream;"readable"===ee._state&&(Nt(i),Ze(i),et(i),si(ee,C))}function yt(i){if(null===i._byobRequest&&i._pendingPullIntos.length>0){var C=i._pendingPullIntos.peek(),ee=new Uint8Array(C.buffer,C.byteOffset+C.bytesFilled,C.byteLength-C.bytesFilled),ye=Object.create(ot.prototype);(function Xn(i,C,ee){i._associatedReadableByteStreamController=C,i._view=ee})(ye,i,ee),i._byobRequest=ye}return i._byobRequest}function bt(i){var C=i._controlledReadableByteStream._state;return"errored"===C?null:"closed"===C?0:i._strategyHWM-i._queueTotalSize}function Dt(i,C){var ee=i._pendingPullIntos.peek();if("closed"===i._controlledReadableByteStream._state){if(0!==C)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===C)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(ee.bytesFilled+C>ee.byteLength)throw new RangeError("bytesWritten out of range")}ee.buffer=ee.buffer,We(i,C)}function Yt(i,C){var ee=i._pendingPullIntos.peek();if("closed"===i._controlledReadableByteStream._state){if(0!==C.byteLength)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===C.byteLength)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(ee.byteOffset+ee.bytesFilled!==C.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(ee.bufferByteLength!==C.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(ee.bytesFilled+C.byteLength>ee.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");ee.buffer=C.buffer,We(i,C.byteLength)}function $n(i,C,ee,ye,De,He,Ke){C._controlledReadableByteStream=i,C._pullAgain=!1,C._pulling=!1,C._byobRequest=null,C._queue=C._queueTotalSize=void 0,Ze(C),C._closeRequested=!1,C._started=!1,C._strategyHWM=He,C._pullAlgorithm=ye,C._cancelAlgorithm=De,C._autoAllocateChunkSize=Ke,C._pendingPullIntos=new A,i._readableStreamController=C,W(X(ee()),function(){C._started=!0,gt(C)},function(lt){ut(C,lt)})}function Yn(i){return new TypeError("ReadableStreamBYOBRequest.prototype."+i+" can only be used on a ReadableStreamBYOBRequest")}function Ht(i){return new TypeError("ReadableByteStreamController.prototype."+i+" can only be used on a ReadableByteStreamController")}function pn(i){return new vn(i)}function an(i,C){i._reader._readIntoRequests.push(C)}function qn(i){return i._reader._readIntoRequests.length}function Cn(i){var C=i._reader;return!(void 0===C||!gn(C))}Object.defineProperties(st.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof l.toStringTag&&Object.defineProperty(st.prototype,l.toStringTag,{value:"ReadableByteStreamController",configurable:!0});var vn=function(){function i(C){if(q(C,1,"ReadableStreamBYOBReader"),ue(C,"First parameter"),dn(C))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!ht(C._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");O(this,C),this._readIntoRequests=new A}return Object.defineProperty(i.prototype,"closed",{get:function(){return gn(this)?this._closedPromise:B(qt("closed"))}
vendor: 4,583 bytes, line 1
1,enumerable:!1,configurable:!0}),i.prototype.cancel=function(C){return void 0===C&&(C=void 0),gn(this)?void 0===this._ownerReadableStream?B(P("cancel")):_(this,C):B(qt("cancel"))},i.prototype.read=function(C){if(!gn(this))return B(qt("read"));if(!ArrayBuffer.isView(C))return B(new TypeError("view must be an array buffer view"));if(0===C.byteLength)return B(new TypeError("view must have non-zero byteLength"));if(0===C.buffer.byteLength)return B(new TypeError("view's buffer must have non-zero byteLength"));if(void 0===this._ownerReadableStream)return B(P("read from"));var ee,ye,De=$(function(Ke,tt){ee=Ke,ye=tt});return An(this,C,{_chunkSteps:function(Ke){return ee({value:Ke,done:!1})},_closeSteps:function(Ke){return ee({value:Ke,done:!0})},_errorSteps:function(Ke){return ye(Ke)}}),De},i.prototype.releaseLock=function(){if(!gn(this))throw qt("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");k(this)}},i}();function gn(i){return!(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_readIntoRequests"))&&i instanceof vn}function An(i,C,ee){var ye=i._ownerReadableStream;ye._disturbed=!0,"errored"===ye._state?ee._errorSteps(ye._storedError):function en(i,C,ee){var ye=i._controlledReadableByteStream,De=1;C.constructor!==DataView&&(De=C.constructor.BYTES_PER_ELEMENT);var He=C.constructor,Ke=C.buffer,tt={buffer:Ke,bufferByteLength:Ke.byteLength,byteOffset:C.byteOffset,byteLength:C.byteLength,bytesFilled:0,elementSize:De,viewConstructor:He,readerType:"byob"};if(i._pendingPullIntos.length>0)return i._pendingPullIntos.push(tt),void an(ye,ee);if("closed"!==ye._state){if(i._queueTotalSize>0){if(Wt(i,tt)){var vt=zt(tt);return wt(i),void ee._chunkSteps(vt)}if(i._closeRequested){var Ct=new TypeError("Insufficient bytes to fill elements in the given buffer");return ut(i,Ct),void ee._errorSteps(Ct)}}i._pendingPullIntos.push(tt),an(ye,ee),gt(i)}else{var lt=new He(tt.buffer,tt.byteOffset,0);ee._closeSteps(lt)}}(ye._readableStreamController,C,ee)}function qt(i){return new TypeError("ReadableStreamBYOBReader.prototype."+i+" can only be used on a ReadableStreamBYOBReader")}function Tt(i,C){var ee=i.highWaterMark;if(void 0===ee)return C;if(Ne(ee)||ee<0)throw new RangeError("Invalid highWaterMark");return ee}function mn(i){return i.size||function(){return 1}}function Dn(i,C){de(i,C);var ee=null==i?void 0:i.highWaterMark,ye=null==i?void 0:i.size;return{highWaterMark:void 0===ee?void 0:L(ee),size:void 0===ye?void 0:Qn(ye,C+" has member 'size' that")}}function Qn(i,C){return he(i,C),function(ee){return L(i(ee))}}function on(i,C,ee){return he(i,ee),function(ye){return m(i,C,[ye])}}function bi(i,C,ee){return he(i,ee),function(){return m(i,C,[])}}function Si(i,C,ee){return he(i,ee),function(ye){return b(i,C,[ye])}}function wi(i,C,ee){return he(i,ee),function(ye,De){return m(i,C,[ye,De])}}function Kn(i,C){if(!xn(i))throw new TypeError(C+" is not a WritableStream.")}Object.defineProperties(vn.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof l.toStringTag&&Object.defineProperty(vn.prototype,l.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});var Jn="function"==typeof AbortController;var Ln=function(){function i(C,ee){void 0===C&&(C={}),void 0===ee&&(ee={}),void 0===C?C=null:oe(C,"First parameter");var ye=Dn(ee,"Second parameter"),De=function Lr(i,C){de(i,C);var ee=null==i?void 0:i.abort,ye=null==i?void 0:i.close,De=null==i?void 0:i.start,He=null==i?void 0:i.type,Ke=null==i?void 0:i.write;return{abort:void 0===ee?void 0:on(ee,i,C+" has member 'abort' that"),close:void 0===ye?void 0:bi(ye,i,C+" has member 'close' that"),start:void 0===De?void 0:Si(De,i,C+" has member 'start' that"),write:void 0===Ke?void 0:wi(Ke,i,C+" has member 'write' that"),type:He}}(C,"First parameter");if(Nr(this),void 0!==De.type)throw new RangeError("Invalid type is specified");var Ke=mn(ye);!function nr(i,C,ee,ye){var De=Object.create(Kt.prototype),He=function(){},Ke=function(){return X(void 0)},tt=function(){return X(void 0)},lt=function(){return X(void 0)};void 0!==C.start&&(He=function(){return C.start(De)}),void 0!==C.write&&(Ke=function(vt){return C.write(vt,De)}),void 0!==C.close&&(tt=function(){return C.close()}),void 0!==C.abort&&(lt=function(vt){return C.abort(vt)}),Hr(i,De,He,Ke,tt,lt,ee,ye)}(this,De,Tt(ye,1),Ke)}return Object.defineProperty(i.prototype,"locked",{get:function(){if(!xn(this))throw ar("locked");return Pn(this)}
1,enumerable:!1,configurable:!0}),i.prototype.abort=function(C){return void 0===C&&(C=void 0),xn(this)?Pn(this)?B(new TypeError("Cannot abort a stream that already has a writer")):Zn(this,C):B(ar("abort"))},i.prototype.close=function(){return xn(this)?Pn(this)?B(new TypeError("Cannot close a stream that already has a writer")):Qt(this)?B(new TypeError("Cannot close an already-closing stream")):Br(this):B(ar("close"))},i.prototype.getWriter=function(){if(!xn(this))throw ar("getWriter");return Fr(this)},i}();function Fr(i){return new kn(i)}function Nr(i){i._state="writable",i._storedError=void 0,i._writer=void 0,i._writableStreamController=void 0,i._writeRequests=new A,i._inFlightWriteRequest=void 0,i._closeRequest=void 0,i._inFlightCloseRequest=void 0,i._pendingAbortRequest=void 0,i._backpressure=!1}function xn(i){return!(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_writableStreamController"))&&i instanceof Ln}function Pn(i){return void 0!==i._writer}function Zn(i,C){var ee;if("closed"===i._state||"errored"===i._state)return X(void 0);i._writableStreamController._abortReason=C,null===(ee=i._writableStreamController._abortController)||void 0===ee||ee.abort();var ye=i._state;if("closed"===ye||"errored"===ye)return X(void 0);if(void 0!==i._pendingAbortRequest)return i._pendingAbortRequest._promise;var De=!1;"erroring"===ye&&(De=!0,C=void 0);var He=$(function(Ke,tt){i._pendingAbortRequest={_promise:void 0,_resolve:Ke,_reject:tt,_reason:C,_wasAlreadyErroring:De}});return i._pendingAbortRequest._promise=He,De||Sr(i,C),He}function Br(i){var C=i._state;if("closed"===C||"errored"===C)return B(new TypeError("The stream (in "+C+" state) is not in the writable state and cannot be closed"));var ee=$(function(De,He){i._closeRequest={_resolve:De,_reject:He}}),ye=i._writer;return void 0!==ye&&i._backpressure&&"writable"===C&&Er(ye),function tn(i){je(i,jr,0),ir(i)}(i._writableStreamController),ee}function br(i,C){"writable"!==i._state?wr(i):Sr(i,C)}function Sr(i,C){var ee=i._writableStreamController;i._state="erroring",i._storedError=C;var ye=i._writer;void 0!==ye&&Wr(ye,C),!function Ti(i){return!(void 0===i._inFlightWriteRequest&&void 0===i._inFlightCloseRequest)}(i)&&ee._started&&wr(i)}function wr(i){i._state="errored",i._writableStreamController[S]();var C=i._storedError;if(i._writeRequests.forEach(function(De){De._reject(C)}),i._writeRequests=new A,void 0!==i._pendingAbortRequest){var ee=i._pendingAbortRequest;if(i._pendingAbortRequest=void 0,ee._wasAlreadyErroring)return ee._reject(C),void Mn(i);W(i._writableStreamController[d](ee._reason),function(){ee._resolve(),Mn(i)},function(De){ee._reject(De),Mn(i)})}else Mn(i)}function Qt(i){return!(void 0===i._closeRequest&&void 0===i._inFlightCloseRequest)}function Mn(i){void 0!==i._closeRequest&&(i._closeRequest._reject(i._storedError),i._closeRequest=void 0);var C=i._writer;void 0!==C&&kr(C,i._storedError)}function er(i,C){var ee=i._writer;void 0!==ee&&C!==i._backpressure&&(C?function Vi(i){Vn(i)}(ee):Er(ee)),i._backpressure=C}Object.defineProperties(Ln.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof l.toStringTag&&Object.defineProperty(Ln.prototype,l.toStringTag,{value:"WritableStream",configurable:!0});var kn=function(){function i(C){if(q(C,1,"WritableStreamDefaultWriter"),Kn(C,"First parameter"),Pn(C))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=C,C._writer=this;var ee=C._state;if("writable"===ee)!Qt(C)&&C._backpressure?Vn(this):Qr(this),or(this);else if("erroring"===ee)Jt(this,C._storedError),or(this);else if("closed"===ee)Qr(this),function Ni(i){or(i),qr(i)}(this);else{var ye=C._storedError;Jt(this,ye),Yr(this,ye)}}return Object.defineProperty(i.prototype,"closed",{get:function(){return sn(this)?this._closedPromise:B(yn("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"desiredSize",{get:function(){if(!sn(this))throw yn("desiredSize");if(void 0===this._ownerWritableStream)throw Bn("desiredSize");return function Di(i){var C=i._ownerWritableStream,ee=C._state;return"errored"===ee||"erroring"===ee?null:"closed"===ee?0:Gr(C._writableStreamController)}(this)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ready",{get:function(){return sn(this)?this._readyPromise:B(yn("ready"))},enumerable:!1,configurable:!0}),i.prototype.abort=function(C){return void 0===C&&(C=void 0),sn(this)?void 0===this._ownerWritableStream?B(Bn("abort")):function Vr(i,C){return Zn(i._ownerWritableStream,C)}(this,C):B(yn("abort"))},i.prototype.close=function(){if(!sn(this))return B(yn("close"));var C=this._ownerWritableStream;return void 0===C?B(Bn("close")):Qt(C)?B(new TypeError("Cannot close an already-closing stream")):Cr(this)},i.prototype.releaseLock=function(){if(!sn(this))throw yn("releaseLock");void 0!==this._ownerWritableStream&&Ur(this)},i.prototype.write=function(C){return void 0===C&&(C=void 0),sn(this)?void 0===this._ownerWritableStream?B(Bn("write to")):Fn(this,C):B(yn("write"))},i}();function sn(i){return!(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_ownerWritableStream"))&&i instanceof kn}function Cr(i){return Br(i._ownerWritableStream)}function tr(i,C){"pending"===i._closedPromiseState?kr(i,C):function Bi(i,C){Yr(i,C)}(i,C)}function Wr(i,C){"pending"===i._readyPromiseState?Kr(i,C):function zi(i,C){Jt(i,C)}(i,C)}function Ur(i){var C=i._ownerWritableStream,ee=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Wr(i,ee),tr(i,ee),C._writer=void 0,i._ownerWritableStream=void 0}function Fn(i,C){var ee=i._ownerWritableStream,ye=ee._writableStreamController,De=function Li(i,C){try{return i._strategySizeAlgorithm(C)}catch(ee){return Nn(i,ee),1}}(ye,C);if(ee!==i._ownerWritableStream)return B(Bn("write to"));var He=ee._state;if("errored"===He)return B(ee._storedError);if(Qt(ee)||"closed"===He)return B(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===He)return B(ee._storedError);var Ke=function xi(i){return $(function(ee,ye){i._writeRequests.push({_resolve:ee,_reject:ye})})}(ee);return function $r(i,C,ee){try{je(i,C,ee)}catch(He){return void Nn(i,He)}var ye=i._controlledWritableStream;Qt(ye)||"writable"!==ye._state||er(ye,xr(i)),ir(i)}(ye,C,De),Ke}Object.defineProperties(kn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),"symbol"==typeof l.toStringTag&&Object.defineProperty(kn.prototype,l.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});var jr={},Kt=function(){function i(){throw new TypeError("Illegal constructor")}return Object.defineProperty(i.prototype,"abortReason",{get:function(){if(!Ar(this))throw Pr("abortReason");return this._abortReason},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"signal",{get:function(){if(!Ar(this))throw Pr("signal");if(void 0===this._abortController)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0}),i.prototype.error=function(C){if(void 0===C&&(C=void 0),!Ar(this))throw Pr("error");"writable"===this._controlledWritableStream._state&&Xr(this,C)},i.prototype[d]=function(C){var ee=this._abortAlgorithm(C);return rr(this),ee},i.prototype[S]=function(){Ze(this)},i}();function Ar(i){return!(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_controlledWritableStream"))&&i instanceof Kt}function Hr(i,C,ee,ye,De,He,Ke,tt){C._controlledWritableStream=i,i._writableStreamController=C,C._queue=void 0,C._queueTotalSize=void 0,Ze(C),C._abortReason=void 0,C._abortController=function Ci(){if(Jn)return new AbortController}(),C._started=!1,C._strategySizeAlgorithm=tt,C._strategyHWM=Ke,C._writeAlgorithm=ye,C._closeAlgorithm=De,C._abortAlgorithm=He;var lt=xr(C);er(i,lt),W(X(ee()),function(){C._started=!0,ir(C)},function(xt){C._started=!0,br(i,xt)})}function rr(i){i._writeAlgorithm=void 0,i._closeAlgorithm=void 0,i._abortAlgorithm=void 0,i._strategySizeAlgorithm=void 0}function Gr(i){return i._strategyHWM-i._queueTotalSize}function ir(i){var C=i._controlledWritableStream;if(i._started&&void 0===C._inFlightWriteRequest){if("erroring"===C._state)return void wr(C);if(0!==i._queue.length){var ye=function Xe(i){return i._queue.peek().value}(i);ye===jr?function Mi(i){var C=i._controlledWritableStream;(function Oi(i){i._inFlightCloseRequest=i._closeRequest,i._closeRequest=void 0})(C),Ye(i);var ee=i._closeAlgorithm();rr(i),W(ee,function(){!function Ei(i){i._inFlightCloseRequest._resolve(void 0),i._inFlightCloseRequest=void 0,"erroring"===i._state&&(i._storedError=void 0,void 0!==i._pendingAbortRequest&&(i._pendingAbortRequest._resolve(),i._pendingAbortRequest=void 0)),i._state="closed";var ee=i._writer;void 0!==ee&&qr(ee)}
1(C)},function(ye){!function Ii(i,C){i._inFlightCloseRequest._reject(C),i._inFlightCloseRequest=void 0,void 0!==i._pendingAbortRequest&&(i._pendingAbortRequest._reject(C),i._pendingAbortRequest=void 0),br(i,C)}(C,ye)})}(i):function Fi(i,C){var ee=i._controlledWritableStream;(function Ri(i){i._inFlightWriteRequest=i._writeRequests.shift()})(ee),W(i._writeAlgorithm(C),function(){!function Pi(i){i._inFlightWriteRequest._resolve(void 0),i._inFlightWriteRequest=void 0}(ee);var De=ee._state;if(Ye(i),!Qt(ee)&&"writable"===De){var He=xr(i);er(ee,He)}ir(i)},function(De){"writable"===ee._state&&rr(i),function ki(i,C){i._inFlightWriteRequest._reject(C),i._inFlightWriteRequest=void 0,br(i,C)}(ee,De)})}(i,ye)}}}function Nn(i,C){"writable"===i._controlledWritableStream._state&&Xr(i,C)}function xr(i){return Gr(i)<=0}function Xr(i,C){var ee=i._controlledWritableStream;rr(i),Sr(ee,C)}function ar(i){return new TypeError("WritableStream.prototype."+i+" can only be used on a WritableStream")}function Pr(i){return new TypeError("WritableStreamDefaultController.prototype."+i+" can only be used on a WritableStreamDefaultController")}function yn(i){return new TypeError("WritableStreamDefaultWriter.prototype."+i+" can only be used on a WritableStreamDefaultWriter")}function Bn(i){return new TypeError("Cannot "+i+" a stream using a released writer")}function or(i){i._closedPromise=$(function(C,ee){i._closedPromise_resolve=C,i._closedPromise_reject=ee,i._closedPromiseState="pending"})}function Yr(i,C){or(i),kr(i,C)}function kr(i,C){void 0!==i._closedPromise_reject&&(o(i._closedPromise),i._closedPromise_reject(C),i._closedPromise_resolve=void 0,i._closedPromise_reject=void 0,i._closedPromiseState="rejected")}function qr(i){void 0!==i._closedPromise_resolve&&(i._closedPromise_resolve(void 0),i._closedPromise_resolve=void 0,i._closedPromise_reject=void 0,i._closedPromiseState="resolved")}function Vn(i){i._readyPromise=$(function(C,ee){i._readyPromise_resolve=C,i._readyPromise_reject=ee}),i._readyPromiseState="pending"}function Jt(i,C){Vn(i),Kr(i,C)}function Qr(i){Vn(i),Er(i)}function Kr(i,C){void 0!==i._readyPromise_reject&&(o(i._readyPromise),i._readyPromise_reject(C),i._readyPromise_resolve=void 0,i._readyPromise_reject=void 0,i._readyPromiseState="rejected")}function Er(i){void 0!==i._readyPromise_resolve&&(i._readyPromise_resolve(void 0),i._readyPromise_resolve=void 0,i._readyPromise_reject=void 0,i._readyPromiseState="fulfilled")}Object.defineProperties(Kt.prototype,{error:{enumerable:!0}}),"symbol"==typeof l.toStringTag&&Object.defineProperty(Kt.prototype,l.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});var Jr="undefined"!=typeof DOMException?DOMException:void 0;var Wi=function Zr(i){if("function"!=typeof i&&"object"!=typeof i)return!1;try{return new i,!0}catch(C){return!1}}(Jr)?Jr:function ei(){var i=function(ee,ye){this.message=ee||"",this.name=ye||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return i.prototype=Object.create(Error.prototype),Object.defineProperty(i.prototype,"constructor",{value:i,writable:!0,configurable:!0}),i}();function ti(i,C,ee,ye,De,He){var Ke=ve(i),tt=Fr(C);i._disturbed=!0;var lt=!1,vt=X(void 0);return $(function(Ct,xt){var Ot;if(void 0!==He){if(Ot=function(){var ft=new Wi("Aborted","AbortError"),Pt=[];ye||Pt.push(function(){return"writable"===C._state?Zn(C,ft):X(void 0)}),De||Pt.push(function(){return"readable"===i._state?Gt(i,ft):X(void 0)}),At(function(){return Promise.all(Pt.map(function(It){return It()}))},!0,ft)},He.aborted)return void Ot();He.addEventListener("abort",Ot)}if($t(i,Ke._closedPromise,function(ft){ye?kt(!0,ft):At(function(){return Zn(C,ft)},!0,ft)}),$t(C,tt._closedPromise,function(ft){De?kt(!0,ft):At(function(){return Gt(i,ft)},!0,ft)}),function Zt(ft,Pt,It){"closed"===ft._state?It():D(Pt,It)}(i,Ke._closedPromise,function(){ee?kt():At(function(){return function zr(i){var C=i._ownerWritableStream,ee=C._state;return Qt(C)||"closed"===ee?X(void 0):"errored"===ee?B(C._storedError):Cr(i)}(tt)})}),Qt(C)||"closed"===C._state){var hn=new TypeError("the destination writable stream closed before all data could be piped to it");De?kt(!0,hn):At(function(){return Gt(i,hn)},!0,hn)}function Lt(){var ft=vt;return z(vt,function(){return ft!==vt?Lt():void 0})}function $t(ft,Pt,It){"errored"===ft._state?It(ft._storedError):g(Pt,It)}function At(ft,Pt,It){function Xt(){W(ft(),function(){return Mt(Pt,It)},function(wn){return Mt(!0,wn)})}lt||(lt=!0,"writable"!==C._state||Qt(C)?Xt():D(Lt(),Xt))}function kt(ft,Pt){lt||(lt=!0,"writable"!==C._state||Qt(C)?Mt(ft,Pt):D(Lt(),function(){return Mt(ft,Pt)}))}function Mt(ft,Pt){Ur(tt),k(Ke),void 0!==He&&He.removeEventListener("abort",Ot),ft?xt(Pt):Ct(void 0)}o(function fn(){return $(function(ft,Pt){!function It(Xt){Xt?ft():z(function Hn(){return lt?X(!0):z(tt._readyPromise,function(){return $(function(ft,Pt){pe(Ke,{_chunkSteps:function(It){vt=z(Fn(tt,It),void 0,M),ft(!1)},_closeSteps:function(){return ft(!0)},_errorSteps:Pt})})})}(),It,Pt)}(!1)})}())})}var _n=function(){function i(){throw new TypeError("Illegal constructor")}return Object.defineProperty(i.prototype,"desiredSize",{get:function(){if(!En(this))throw sr("desiredSize");return Ir(this)}
1,enumerable:!1,configurable:!0}),i.prototype.close=function(){if(!En(this))throw sr("close");if(!Tn(this))throw new TypeError("The stream is not in a state that permits close");bn(this)},i.prototype.enqueue=function(C){if(void 0===C&&(C=void 0),!En(this))throw sr("enqueue");if(!Tn(this))throw new TypeError("The stream is not in a state that permits enqueue");return Wn(this,C)},i.prototype.error=function(C){if(void 0===C&&(C=void 0),!En(this))throw sr("error");ln(this,C)},i.prototype[w]=function(C){Ze(this);var ee=this._cancelAlgorithm(C);return zn(this),ee},i.prototype[j]=function(C){var ee=this._controlledReadableStream;if(this._queue.length>0){var ye=Ye(this);this._closeRequested&&0===this._queue.length?(zn(this),Un(ee)):In(this),C._chunkSteps(ye)}else ke(ee,C),In(this)},i}();function En(i){return!(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_controlledReadableStream"))&&i instanceof _n}function In(i){if(ni(i)){if(i._pulling)return void(i._pullAgain=!0);i._pulling=!0,W(i._pullAlgorithm(),function(){i._pulling=!1,i._pullAgain&&(i._pullAgain=!1,In(i))},function(ye){ln(i,ye)})}}function ni(i){var C=i._controlledReadableStream;return!(!Tn(i)||!i._started)&&(!!(dn(C)&&Oe(C)>0)||Ir(i)>0)}function zn(i){i._pullAlgorithm=void 0,i._cancelAlgorithm=void 0,i._strategySizeAlgorithm=void 0}function bn(i){if(Tn(i)){var C=i._controlledReadableStream;i._closeRequested=!0,0===i._queue.length&&(zn(i),Un(C))}}function Wn(i,C){if(Tn(i)){var ee=i._controlledReadableStream;if(dn(ee)&&Oe(ee)>0)Ie(ee,C,!1);else{var ye=void 0;try{ye=i._strategySizeAlgorithm(C)}catch(De){throw ln(i,De),De}try{je(i,C,ye)}catch(De){throw ln(i,De),De}}In(i)}}function ln(i,C){var ee=i._controlledReadableStream;"readable"===ee._state&&(Ze(i),zn(i),si(ee,C))}function Ir(i){var C=i._controlledReadableStream._state;return"errored"===C?null:"closed"===C?0:i._strategyHWM-i._queueTotalSize}function Tn(i){return!i._closeRequested&&"readable"===i._controlledReadableStream._state}function ri(i,C,ee,ye,De,He,Ke){C._controlledReadableStream=i,C._queue=void 0,C._queueTotalSize=void 0,Ze(C),C._started=!1,C._closeRequested=!1,C._pullAgain=!1,C._pulling=!1,C._strategySizeAlgorithm=Ke,C._strategyHWM=He,C._pullAlgorithm=ye,C._cancelAlgorithm=De,i._readableStreamController=C,W(X(ee()),function(){C._started=!0,In(C)},function(lt){ln(C,lt)})}function sr(i){return new TypeError("ReadableStreamDefaultController.prototype."+i+" can only be used on a ReadableStreamDefaultController")}function Hi(i,C){return ht(i._readableStreamController)?function Gi(i){var He,Ke,tt,lt,vt,C=ve(i),ee=!1,ye=!1,De=!1,Ct=$(function(At){vt=At});function xt(At){g(At._closedPromise,function(kt){At===C&&(ut(tt._readableStreamController,kt),ut(lt._readableStreamController,kt),(!ye||!De)&&vt(void 0))})}function Ot(){gn(C)&&(k(C),xt(C=ve(i))),pe(C,{_chunkSteps:function(kt){u(function(){ee=!1;var Mt=kt,ft=kt;if(!ye&&!De)try{ft=Ue(kt)}catch(Pt){return ut(tt._readableStreamController,Pt),ut(lt._readableStreamController,Pt),void vt(Gt(i,Pt))}ye||ct(tt._readableStreamController,Mt),De||ct(lt._readableStreamController,ft)})},_closeSteps:function(){ee=!1,ye||rt(tt._readableStreamController),De||rt(lt._readableStreamController),tt._readableStreamController._pendingPullIntos.length>0&&Dt(tt._readableStreamController,0),lt._readableStreamController._pendingPullIntos.length>0&&Dt(lt._readableStreamController,0),(!ye||!De)&&vt(void 0)},_errorSteps:function(){ee=!1}})}function fn(At,kt){le(C)&&(k(C),xt(C=pn(i)));var Mt=kt?lt:tt,ft=kt?tt:lt;An(C,At,{_chunkSteps:function(It){u(function(){ee=!1;var Xt=kt?De:ye;if(kt?ye:De)Xt||Yt(Mt._readableStreamController,It);else{var Rr=void 0;try{Rr=Ue(It)}catch(Dr){return ut(Mt._readableStreamController,Dr),ut(ft._readableStreamController,Dr),void vt(Gt(i,Dr))}Xt||Yt(Mt._readableStreamController,It),ct(ft._readableStreamController,Rr)}})},_closeSteps:function(It){ee=!1;var Xt=kt?De:ye,wn=kt?ye:De;Xt||rt(Mt._readableStreamController),wn||rt(ft._readableStreamController),void 0!==It&&(Xt||Yt(Mt._readableStreamController,It),!wn&&ft._readableStreamController._pendingPullIntos.length>0&&Dt(ft._readableStreamController,0)),(!Xt||!wn)&&vt(void 0)},_errorSteps:function(){ee=!1}})}function Hn(){if(ee)return X(void 0);ee=!0;var At=yt(tt._readableStreamController);return null===At?Ot():fn(At._view,!1),X(void 0)}function hn(){if(ee)return X(void 0);ee=!0;var At=yt(lt._readableStreamController);return null===At?Ot():fn(At._view,!0),X(void 0)}function Lt(At){if(ye=!0,He=At,De){var kt=se([He,Ke]),Mt=Gt(i,kt);vt(Mt)}return Ct}function $t(At){if(De=!0,Ke=At,ye){var kt=se([He,Ke]),Mt=Gt(i,kt);vt(Mt)}return Ct}function Zt(){}return tt=oi(Zt,Hn,Lt),lt=oi(Zt,hn,$t),xt(C),[tt,lt]}(i):function ii(i,C){var Ke,tt,lt,vt,Ct,ee=ve(i),ye=!1,De=!1,He=!1,xt=$(function(Lt){Ct=Lt});function Ot(){return ye||(ye=!0,pe(ee,{_chunkSteps:function($t){u(function(){ye=!1;var At=$t;De||Wn(lt._readableStreamController,$t),He||Wn(vt._readableStreamController,At)})},_closeSteps:function(){ye=!1,De||bn(lt._readableStreamController),He||bn(vt._readableStreamController),(!De||!He)&&Ct(void 0)},_errorSteps:function(){ye=!1}})),X(void 0)}function fn(Lt){if(De=!0,Ke=Lt,He){var $t=se([Ke,tt]),Zt=Gt(i,$t);Ct(Zt)}return xt}function Hn(Lt){if(He=!0,tt=Lt,De){var $t=se([Ke,tt]),Zt=Gt(i,$t);Ct(Zt)}return xt}function hn(){}return lt=Tr(hn,Ot,fn),vt=Tr(hn,Ot,Hn),g(ee._closedPromise,function(Lt){ln(lt._readableStreamController,Lt),ln(vt._readableStreamController,Lt),(!De||!He)&&Ct(void 0)}),[lt,vt]}(i)}function Xi(i,C,ee){return he(i,ee),function(ye){return m(i,C,[ye])}}function Yi(i,C,ee){return he(i,ee),function(ye){return m(i,C,[ye])}}function qi(i,C,ee){return he(i,ee),function(ye){return b(i,C,[ye])}}function Qi(i,C){if("bytes"!=(i=""+i))throw new TypeError(C+" '"+i+"' is not a valid enumeration value for ReadableStreamType");return i}function Ji(i,C){if("byob"!=(i=""+i))throw new TypeError(C+" '"+i+"' is not a valid enumeration value for ReadableStreamReaderMode");return i}
1function ai(i,C){de(i,C);var ee=null==i?void 0:i.preventAbort,ye=null==i?void 0:i.preventCancel,De=null==i?void 0:i.preventClose,He=null==i?void 0:i.signal;return void 0!==He&&function ea(i,C){if(!function Mr(i){if("object"!=typeof i||null===i)return!1;try{return"boolean"==typeof i.aborted}catch(C){return!1}}(i))throw new TypeError(C+" is not an AbortSignal.")}(He,C+" has member 'signal' that"),{preventAbort:Boolean(ee),preventCancel:Boolean(ye),preventClose:Boolean(De),signal:He}}Object.defineProperties(_n.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof l.toStringTag&&Object.defineProperty(_n.prototype,l.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});var un=function(){function i(C,ee){void 0===C&&(C={}),void 0===ee&&(ee={}),void 0===C?C=null:oe(C,"First parameter");var ye=Dn(ee,"Second parameter"),De=function $i(i,C){de(i,C);var ee=i,ye=null==ee?void 0:ee.autoAllocateChunkSize,De=null==ee?void 0:ee.cancel,He=null==ee?void 0:ee.pull,Ke=null==ee?void 0:ee.start,tt=null==ee?void 0:ee.type;return{autoAllocateChunkSize:void 0===ye?void 0:re(ye,C+" has member 'autoAllocateChunkSize' that"),cancel:void 0===De?void 0:Xi(De,ee,C+" has member 'cancel' that"),pull:void 0===He?void 0:Yi(He,ee,C+" has member 'pull' that"),start:void 0===Ke?void 0:qi(Ke,ee,C+" has member 'start' that"),type:void 0===tt?void 0:Qi(tt,C+" has member 'type' that")}}(C,"First parameter");if(Or(this),"bytes"===De.type){if(void 0!==ye.size)throw new RangeError("The strategy for a byte stream cannot have a size function");!function yr(i,C,ee){var ye=Object.create(st.prototype),De=function(){},He=function(){return X(void 0)},Ke=function(){return X(void 0)};void 0!==C.start&&(De=function(){return C.start(ye)}),void 0!==C.pull&&(He=function(){return C.pull(ye)}),void 0!==C.cancel&&(Ke=function(lt){return C.cancel(lt)});var tt=C.autoAllocateChunkSize;if(0===tt)throw new TypeError("autoAllocateChunkSize must be greater than 0");$n(i,ye,De,He,Ke,ee,tt)}(this,De,Tt(ye,0))}else{var Ke=mn(ye);!function ji(i,C,ee,ye){var De=Object.create(_n.prototype),He=function(){},Ke=function(){return X(void 0)},tt=function(){return X(void 0)};void 0!==C.start&&(He=function(){return C.start(De)}),void 0!==C.pull&&(Ke=function(){return C.pull(De)}),void 0!==C.cancel&&(tt=function(lt){return C.cancel(lt)}),ri(i,De,He,Ke,tt,ee,ye)}(this,De,Tt(ye,1),Ke)}}return Object.defineProperty(i.prototype,"locked",{get:function(){if(!cn(this))throw Sn("locked");return dn(this)},enumerable:!1,configurable:!0}),i.prototype.cancel=function(C){return void 0===C&&(C=void 0),cn(this)?dn(this)?B(new TypeError("Cannot cancel a stream that already has a reader")):Gt(this,C):B(Sn("cancel"))},i.prototype.getReader=function(C){if(void 0===C&&(C=void 0),!cn(this))throw Sn("getReader");return void 0===function Ki(i,C){de(i,C);var ee=null==i?void 0:i.mode;return{mode:void 0===ee?void 0:Ji(ee,C+" has member 'mode' that")}}(C,"First parameter").mode?ve(this):pn(this)},i.prototype.pipeThrough=function(C,ee){if(void 0===ee&&(ee={}),!cn(this))throw Sn("pipeThrough");q(C,1,"pipeThrough");var ye=function ta(i,C){de(i,C);var ee=null==i?void 0:i.readable;G(ee,"readable","ReadableWritablePair"),ue(ee,C+" has member 'readable' that");var ye=null==i?void 0:i.writable;return G(ye,"writable","ReadableWritablePair"),Kn(ye,C+" has member 'writable' that"),{readable:ee,writable:ye}}(C,"First parameter"),De=ai(ee,"Second parameter");if(dn(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Pn(ye.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return o(ti(this,ye.writable,De.preventClose,De.preventAbort,De.preventCancel,De.signal)),ye.readable},i.prototype.pipeTo=function(C,ee){if(void 0===ee&&(ee={}),!cn(this))return B(Sn("pipeTo"));if(void 0===C)return B("Parameter 1 is required in 'pipeTo'.");if(!xn(C))return B(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var ye;try{ye=ai(ee,"Second parameter")}catch(De){return B(De)}return dn(this)?B(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Pn(C)?B(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):ti(this,C,ye.preventClose,ye.preventAbort,ye.preventCancel,ye.signal)},i.prototype.tee=function(){if(!cn(this))throw Sn("tee");return se(Hi(this))},i.prototype.values=function(C){if(void 0===C&&(C=void 0),!cn(this))throw Sn("values");return function Te(i,C){var ee=ve(i),ye=new fe(ee,C),De=Object.create(Se);return De._asyncIteratorImpl=ye,De}(this,function Zi(i,C){return de(i,C),{preventCancel:Boolean(null==i?void 0:i.preventCancel)}}(C,"First parameter").preventCancel)},i}();function Tr(i,C,ee,ye,De){void 0===ye&&(ye=1),void 0===De&&(De=function(){return 1});var He=Object.create(un.prototype);return Or(He),ri(He,Object.create(_n.prototype),i,C,ee,ye,De),He}function oi(i,C,ee){var ye=Object.create(un.prototype);return Or(ye),$n(ye,Object.create(st.prototype),i,C,ee,0,void 0),ye}function Or(i){i._state="readable",i._reader=void 0,i._storedError=void 0,i._disturbed=!1}function cn(i){return!(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_readableStreamController"))&&i instanceof un}function dn(i){return void 0!==i._reader}function Gt(i,C){if(i._disturbed=!0,"closed"===i._state)return X(void 0);if("errored"===i._state)return B(i._storedError);Un(i);var ee=i._reader;
1return void 0!==ee&&gn(ee)&&(ee._readIntoRequests.forEach(function(De){De._closeSteps(void 0)}),ee._readIntoRequests=new A),p(i._readableStreamController[w](C),M)}function Un(i){i._state="closed";var C=i._reader;void 0!==C&&(v(C),le(C)&&(C._readRequests.forEach(function(ee){ee._closeSteps()}),C._readRequests=new A))}function si(i,C){i._state="errored",i._storedError=C;var ee=i._reader;void 0!==ee&&(f(ee,C),le(ee)?(ee._readRequests.forEach(function(ye){ye._errorSteps(C)}),ee._readRequests=new A):(ee._readIntoRequests.forEach(function(ye){ye._errorSteps(C)}),ee._readIntoRequests=new A))}function Sn(i){return new TypeError("ReadableStream.prototype."+i+" can only be used on a ReadableStream")}function li(i,C){de(i,C);var ee=null==i?void 0:i.highWaterMark;return G(ee,"highWaterMark","QueuingStrategyInit"),{highWaterMark:L(ee)}}Object.defineProperties(un.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof l.toStringTag&&Object.defineProperty(un.prototype,l.toStringTag,{value:"ReadableStream",configurable:!0}),"symbol"==typeof l.asyncIterator&&Object.defineProperty(un.prototype,l.asyncIterator,{value:un.prototype.values,writable:!0,configurable:!0});var ui=function(i){return i.byteLength};Object.defineProperty(ui,"name",{value:"size",configurable:!0});var lr=function(){function i(C){q(C,1,"ByteLengthQueuingStrategy"),C=li(C,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=C.highWaterMark}return Object.defineProperty(i.prototype,"highWaterMark",{get:function(){if(!di(this))throw ci("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"size",{get:function(){if(!di(this))throw ci("size");return ui},enumerable:!1,configurable:!0}),i}();function ci(i){return new TypeError("ByteLengthQueuingStrategy.prototype."+i+" can only be used on a ByteLengthQueuingStrategy")}function di(i){return!(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_byteLengthQueuingStrategyHighWaterMark"))&&i instanceof lr}Object.defineProperties(lr.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof l.toStringTag&&Object.defineProperty(lr.prototype,l.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});var fi=function(){return 1};Object.defineProperty(fi,"name",{value:"size",configurable:!0});var ur=function(){function i(C){q(C,1,"CountQueuingStrategy"),C=li(C,"First parameter"),this._countQueuingStrategyHighWaterMark=C.highWaterMark}return Object.defineProperty(i.prototype,"highWaterMark",{get:function(){if(!pi(this))throw hi("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"size",{get:function(){if(!pi(this))throw hi("size");return fi},enumerable:!1,configurable:!0}),i}();function hi(i){return new TypeError("CountQueuingStrategy.prototype."+i+" can only be used on a CountQueuingStrategy")}function pi(i){return!(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_countQueuingStrategyHighWaterMark"))&&i instanceof ur}function ra(i,C,ee){return he(i,ee),function(ye){return m(i,C,[ye])}}function ia(i,C,ee){return he(i,ee),function(ye){return b(i,C,[ye])}}function aa(i,C,ee){return he(i,ee),function(ye,De){return m(i,C,[ye,De])}}Object.defineProperties(ur.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof l.toStringTag&&Object.defineProperty(ur.prototype,l.toStringTag,{value:"CountQueuingStrategy",configurable:!0});var cr=function(){function i(C,ee,ye){void 0===C&&(C={}),void 0===ee&&(ee={}),void 0===ye&&(ye={}),void 0===C&&(C=null);var De=Dn(ee,"Second parameter"),He=Dn(ye,"Third parameter"),Ke=function na(i,C){de(i,C);var ee=null==i?void 0:i.flush,ye=null==i?void 0:i.readableType,De=null==i?void 0:i.start,He=null==i?void 0:i.transform,Ke=null==i?void 0:i.writableType;return{flush:void 0===ee?void 0:ra(ee,i,C+" has member 'flush' that"),readableType:ye,start:void 0===De?void 0:ia(De,i,C+" has member 'start' that"),transform:void 0===He?void 0:aa(He,i,C+" has member 'transform' that"),writableType:Ke}}(C,"First parameter");if(void 0!==Ke.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==Ke.writableType)throw new RangeError("Invalid writableType specified");var xt,tt=Tt(He,0),lt=mn(He),vt=Tt(De,1),Ct=mn(De);(function oa(i,C,ee,ye,De,He){function Ke(){return C}function tt(Ot){return function da(i,C){var ee=i._transformStreamController;return i._backpressure?p(i._backpressureChangePromise,function(){var De=i._writable;if("erroring"===De._state)throw De._storedError;return yi(ee,C)}):yi(ee,C)}(i,Ot)}function lt(Ot){return function fa(i,C){return dr(i,C),X(void 0)}(i,Ot)}function vt(){return function ha(i){var C=i._readable,ee=i._transformStreamController,ye=ee._flushAlgorithm();return gi(ee),p(ye,function(){if("errored"===C._state)throw C._storedError;bn(C._readableStreamController)},function(De){throw dr(i,De),C._storedError})}(i)}function Ct(){return function pa(i){return hr(i,!1),i._backpressureChangePromise}(i)}function xt(Ot){return fr(i,Ot),X(void 0)}i._writable=function Ai(i,C,ee,ye,De,He){void 0===De&&(De=1),void 0===He&&(He=function(){return 1});var Ke=Object.create(Ln.prototype);return Nr(Ke),Hr(Ke,Object.create(Kt.prototype),i,C,ee,ye,De,He),Ke}(Ke,tt,vt,lt,ee,ye),i._readable=Tr(Ke,Ct,xt,De,He),i._backpressure=void 0,i._backpressureChangePromise=void 0,i._backpressureChangePromise_resolve=void 0,hr(i,!0),i._transformStreamController=void 0})(this,$(function(fn){xt=fn}),vt,Ct,tt,lt),function la(i,C){var ee=Object.create(jn.prototype),ye=function(He){try{return mi(ee,He),X(void 0)}catch(Ke){return B(Ke)}},De=function(){return X(void 0)};void 0!==C.transform&&(ye=function(He){return C.transform(He,ee)}),void 0!==C.flush&&(De=function(){return C.flush(ee)}),function sa(i,C,ee,ye){C._controlledTransformStream=i,i._transformStreamController=C,C._transformAlgorithm=ee,C._flushAlgorithm=ye}(i,ee,ye,De)}(this,Ke),xt(void 0!==Ke.start?Ke.start(this._transformStreamController):void 0)}return Object.defineProperty(i.prototype,"readable",{get:function(){if(!vi(this))throw nn("readable");return this._readable}
1,enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"writable",{get:function(){if(!vi(this))throw nn("writable");return this._writable},enumerable:!1,configurable:!0}),i}();function vi(i){return!(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_transformStreamController"))&&i instanceof cr}function dr(i,C){ln(i._readable._readableStreamController,C),fr(i,C)}function fr(i,C){gi(i._transformStreamController),Nn(i._writable._writableStreamController,C),i._backpressure&&hr(i,!1)}function hr(i,C){void 0!==i._backpressureChangePromise&&i._backpressureChangePromise_resolve(),i._backpressureChangePromise=$(function(ee){i._backpressureChangePromise_resolve=ee}),i._backpressure=C}Object.defineProperties(cr.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof l.toStringTag&&Object.defineProperty(cr.prototype,l.toStringTag,{value:"TransformStream",configurable:!0});var jn=function(){function i(){throw new TypeError("Illegal constructor")}return Object.defineProperty(i.prototype,"desiredSize",{get:function(){if(!pr(this))throw vr("desiredSize");return Ir(this._controlledTransformStream._readable._readableStreamController)},enumerable:!1,configurable:!0}),i.prototype.enqueue=function(C){if(void 0===C&&(C=void 0),!pr(this))throw vr("enqueue");mi(this,C)},i.prototype.error=function(C){if(void 0===C&&(C=void 0),!pr(this))throw vr("error");!function ua(i,C){dr(i._controlledTransformStream,C)}(this,C)},i.prototype.terminate=function(){if(!pr(this))throw vr("terminate");!function ca(i){var C=i._controlledTransformStream;bn(C._readable._readableStreamController),fr(C,new TypeError("TransformStream terminated"))}(this)},i}();function pr(i){return!(!U(i)||!Object.prototype.hasOwnProperty.call(i,"_controlledTransformStream"))&&i instanceof jn}function gi(i){i._transformAlgorithm=void 0,i._flushAlgorithm=void 0}function mi(i,C){var ee=i._controlledTransformStream,ye=ee._readable._readableStreamController;if(!Tn(ye))throw new TypeError("Readable side is not in a state that permits enqueue");try{Wn(ye,C)}catch(He){throw fr(ee,He),ee._readable._storedError}(function Ui(i){return!ni(i)})(ye)!==ee._backpressure&&hr(ee,!0)}function yi(i,C){return p(i._transformAlgorithm(C),void 0,function(ye){throw dr(i._controlledTransformStream,ye),ye})}function vr(i){return new TypeError("TransformStreamDefaultController.prototype."+i+" can only be used on a TransformStreamDefaultController")}function nn(i){return new TypeError("TransformStream.prototype."+i+" can only be used on a TransformStream")}Object.defineProperties(jn.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof l.toStringTag&&Object.defineProperty(jn.prototype,l.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),s.ByteLengthQueuingStrategy=lr,s.CountQueuingStrategy=ur,s.ReadableByteStreamController=st,s.ReadableStream=un,s.ReadableStreamBYOBReader=vn,s.ReadableStreamBYOBRequest=ot,s.ReadableStreamDefaultController=_n,s.ReadableStreamDefaultReader=Ve,s.TransformStream=cr,s.TransformStreamDefaultController=jn,s.WritableStream=Ln,s.WritableStreamDefaultController=Kt,s.WritableStreamDefaultWriter=kn,Object.defineProperty(s,"__esModule",{value:!0})}(I)},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.BaseSVGFactory=I.BaseStandardFontDataFactory=I.BaseCMapReaderFactory=I.BaseCanvasFactory=void 0;var l=function N(B){return B&&B.__esModule?B:{default:B}}(s(2)),M=s(4);function Y(B,z,W,D,g,p,o){try{var u=B[p](o),b=u.value}catch(m){return void W(m)}u.done?z(b):Promise.resolve(b).then(D,g)}function U(B){return function(){var z=this,W=arguments;return new Promise(function(D,g){var p=B.apply(z,W);function o(b){Y(p,D,g,o,u,"next",b)}function u(b){Y(p,D,g,o,u,"throw",b)}o(void 0)})}}function e(B,z){if(!(B instanceof z))throw new TypeError("Cannot call a class as a function")}function V(B,z){for(var W=0;W<z.length;W++){var D=z[W];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(B,D.key,D)}}function H(B,z,W){return z&&V(B.prototype,z),W&&V(B,W),B}I.BaseCanvasFactory=function(){function B(){e(this,B),this.constructor===B&&(0,M.unreachable)("Cannot initialize BaseCanvasFactory.")}return H(B,[{key:"create",value:function(W,D){if(W<=0||D<=0)throw new Error("Invalid canvas size");var g=this._createCanvas(W,D);return{canvas:g,context:g.getContext("2d")}}},{key:"reset",value:function(W,D,g){if(!W.canvas)throw new Error("Canvas is not specified");if(D<=0||g<=0)throw new Error("Invalid canvas size");W.canvas.width=D,W.canvas.height=g}},{key:"destroy",value:function(W){if(!W.canvas)throw new Error("Canvas is not specified");W.canvas.width=0,W.canvas.height=0,W.canvas=null,W.context=null}},{key:"_createCanvas",value:function(W,D){(0,M.unreachable)("Abstract method `_createCanvas` called.")}}]),B}();var Q=function(){function B(z){var W=z.baseUrl,D=void 0===W?null:W,g=z.isCompressed,p=void 0!==g&&g;e(this,B),this.constructor===B&&(0,M.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=D,this.isCompressed=p}return H(B,[{key:"fetch",value:(z=U(l.default.mark(function D(g){var o,u,p=this;return l.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(o=g.name,this.baseUrl){c.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(o){c.next=5;break}throw new Error("CMap name must be specified.");case 5:return c.abrupt("return",this._fetchData(u=this.baseUrl+o+(this.isCompressed?".bcmap":""),this.isCompressed?M.CMapCompressionType.BINARY:M.CMapCompressionType.NONE).catch(function(A){throw new Error("Unable to load ".concat(p.isCompressed?"binary ":"","CMap at: ").concat(u))}));case 8:case"end":return c.stop()}},D,this)})),function W(D){return z.apply(this,arguments)})},{key:"_fetchData",value:function(W,D){(0,M.unreachable)("Abstract method `_fetchData` called.")}}]),B;var z}();I.BaseCMapReaderFactory=Q;var $=function(){function B(z){var W=z.baseUrl,D=void 0===W?null:W;e(this,B),this.constructor===B&&(0,M.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=D}return H(B,[{key:"fetch",value:(z=U(l.default.mark(function D(g){var p,o;return l.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(p=g.filename,this.baseUrl){b.next=3;break}throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');case 3:if(p){b.next=5;break}throw new Error("Font filename must be specified.");case 5:return o="".concat(this.baseUrl).concat(p),b.abrupt("return",this._fetchData(o).catch(function(m){throw new Error("Unable to load font data at: ".concat(o))}));case 7:case"end":return b.stop()}},D,this)})),function W(D){return z.apply(this,arguments)})},{key:"_fetchData",value:function(W){(0,M.unreachable)("Abstract method `_fetchData` called.")}}]),B;var z}();I.BaseStandardFontDataFactory=$,I.BaseSVGFactory=function(){function B(){e(this,B),this.constructor===B&&(0,M.unreachable)("Cannot initialize BaseSVGFactory.")}return H(B,[{key:"create",value:function(W,D){if(W<=0||D<=0)throw new Error("Invalid SVG dimensions");var g=this._createSVG("svg:svg");return g.setAttribute("version","1.1"),g.setAttribute("width","".concat(W,"px")),g.setAttribute("height","".concat(D,"px")),g.setAttribute("preserveAspectRatio","none"),g.setAttribute("viewBox","0 0 ".concat(W," ").concat(D)),g}},{key:"createElement",value:function(W){if("string"!=typeof W)throw new Error("Invalid SVG element type");return this._createSVG(W)}},{key:"_createSVG",value:function(W){(0,M.unreachable)("Abstract method `_createSVG` called.")}}]),B}()},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=exports.RenderTask=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCMapReaderFactory=exports.DefaultCanvasFactory=exports.build=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(4),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(120),_node_utils=__w_pdfjs_require__(121),_annotation_storage=__w_pdfjs_require__(122),_canvas=__w_pdfjs_require__(123),_worker_options=__w_pdfjs_require__(125),_is_node=__w_pdfjs_require__(6),_message_handler=__w_pdfjs_require__(126),_metadata=__w_pdfjs_require__(127),_optional_content_config=__w_pdfjs_require__(128),_transport_stream=__w_pdfjs_require__(129),_xfa_text=__w_pdfjs_require__(130);function _interopRequireDefault(K){return K&&K.__esModule?K:{default:K}}function _toConsumableArray(K){return _arrayWithoutHoles(K)||_iterableToArray(K)||_unsupportedIterableToArray(K)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(K){if("undefined"!=typeof Symbol&&null!=K[Symbol.iterator]||null!=K["@@iterator"])return Array.from(K)}function _arrayWithoutHoles(K){if(Array.isArray(K))return _arrayLikeToArray(K)}function _createForOfIteratorHelper(K,I){var s="undefined"!=typeof Symbol&&K[Symbol.iterator]||K["@@iterator"];if(!s){if(Array.isArray(K)||(s=_unsupportedIterableToArray(K))||I&&K&&"number"==typeof K.length){s&&(K=s);var l=0,M=function(){};return{s:M,n:function(){return l>=K.length?{done:!0}:{done:!1,value:K[l++]}},e:function(V){throw V},f:M}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var U,N=!0,Y=!1;return{s:function(){s=s.call(K)},n:function(){var V=s.next();return N=V.done,V},e:function(V){Y=!0,U=V},f:function(){try{!N&&null!=s.return&&s.return()}finally{if(Y)throw U}}}}function _classCallCheck(K,I){if(!(K instanceof I))throw new TypeError("Cannot call a class as a function")}function _defineProperties(K,I){for(var s=0;s<I.length;s++){var l=I[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(K,l.key,l)}}function _createClass(K,I,s){return I&&_defineProperties(K.prototype,I),s&&_defineProperties(K,s),K}function asyncGeneratorStep(K,I,s,l,M,N,Y){try{var U=K[N](Y),e=U.value}catch(V){return void s(V)}U.done?I(e):Promise.resolve(e).then(l,M)}function _asyncToGenerator(K){return function(){var I=this,s=arguments;return new Promise(function(l,M){var N=K.apply(I,s);function Y(e){asyncGeneratorStep(N,l,M,Y,U,"next",e)}function U(e){asyncGeneratorStep(N,l,M,Y,U,"throw",e)}Y(void 0)})}}function _slicedToArray(K,I){return _arrayWithHoles(K)||_iterableToArrayLimit(K,I)||_unsupportedIterableToArray(K,I)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(K,I){if(K){if("string"==typeof K)return _arrayLikeToArray(K,I);var s=Object.prototype.toString.call(K).slice(8,-1);if("Object"===s&&K.constructor&&(s=K.constructor.name),"Map"===s||"Set"===s)return Array.from(K);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return _arrayLikeToArray(K,I)}}function _arrayLikeToArray(K,I){(null==I||I>K.length)&&(I=K.length);for(var s=0,l=new Array(I);s<I;s++)l[s]=K[s];return l}function _iterableToArrayLimit(K,I){var s=null==K?null:"undefined"!=typeof Symbol&&K[Symbol.iterator]||K["@@iterator"];if(null!=s){var Y,U,l=[],M=!0,N=!1;try{for(s=s.call(K);!(M=(Y=s.next()).done)&&(l.push(Y.value),!I||l.length!==I);M=!0);}catch(e){N=!0,U=e}finally{try{!M&&null!=s.return&&s.return()}finally{if(N)throw U}}return l}}function _arrayWithHoles(K){if(Array.isArray(K))return K}function _typeof(K){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(s){return typeof s}:function(s){return s&&"function"==typeof Symbol&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s})(K)}var DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_is_node.isNodeJS?_node_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;var DefaultCMapReaderFactory=_is_node.isNodeJS?_node_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;var DefaultStandardFontDataFactory=_is_node.isNodeJS?_node_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;function setPDFNetworkStreamFactory(K){createPDFNetworkStream=K}function getDocument(K){var s,I=new PDFDocumentLoadingTask;if("string"==typeof K||K instanceof URL)s={url:K};else if((0,_util.isArrayBuffer)(K))s={data:K};else if(K instanceof PDFDataRangeTransport)s={range:K};else{if("object"!==_typeof(K))throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!K.url&&!K.data&&!K.range)throw new Error("Invalid parameter object: need either .data, .range or .url");s=K}var l=Object.create(null),M=null,N=null;for(var Y in s){var U=s[Y];switch(Y){case"url":if("undefined"!=typeof window)try{l[Y]=new URL(U,window.location).href;continue}catch(H){(0,_util.warn)('Cannot create valid URL: "'.concat(H,'".'))}else if("string"==typeof U||U instanceof URL){l[Y]=U.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":M=U;continue;case"worker":N=U;continue;case"data":if(_is_node.isNodeJS&&"undefined"!=typeof Buffer&&U instanceof Buffer)l[Y]=new Uint8Array(U);else{if(U instanceof Uint8Array)break;if("string"==typeof U)l[Y]=(0,_util.stringToBytes)(U);else if("object"!==_typeof(U)||null===U||isNaN(U.length)){if(!(0,_util.isArrayBuffer)(U))throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.");l[Y]=new Uint8Array(U)}else l[Y]=new Uint8Array(U)}continue}l[Y]=U}if(l.rangeChunkSize=l.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,l.CMapReaderFactory=l.CMapReaderFactory||DefaultCMapReaderFactory,l.StandardFontDataFactory=l.StandardFontDataFactory||DefaultStandardFontDataFactory,l.ignoreErrors=!0!==l.stopAtErrors,l.fontExtraProperties=!0===l.fontExtraProperties,l.pdfBug=!0===l.pdfBug,l.enableXfa=!0===l.enableXfa,("string"!=typeof l.docBaseUrl||(0,_display_utils.isDataScheme)(l.docBaseUrl))&&(l.docBaseUrl=null),Number.isInteger(l.maxImageSize)||(l.maxImageSize=-1),"boolean"!=typeof l.useWorkerFetch&&(l.useWorkerFetch=l.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&l.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!=typeof l.isEvalSupported&&(l.isEvalSupported=!0),"boolean"!=typeof l.disableFontFace&&(l.disableFontFace=_is_node.isNodeJS),"boolean"!=typeof l.useSystemFonts&&(l.useSystemFonts=!_is_node.isNodeJS&&!l.disableFontFace),void 0===l.ownerDocument&&(l.ownerDocument=globalThis.document),"boolean"!=typeof l.disableRange&&(l.disableRange=!1),"boolean"!=typeof l.disableStream&&(l.disableStream=!1),"boolean"!=typeof l.disableAutoFetch&&(l.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(l.verbosity),!N){var e={verbosity:l.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};N=e.port?PDFWorker.fromPort(e):new PDFWorker(e),I._worker=N}var V=I.docId;return N.promise.then(function(){if(I.destroyed)throw new Error("Loading aborted");var H=_fetchDocument(N,l,M,V),R=new Promise(function(Q){var $;M?$=new _transport_stream.PDFDataTransportStream({length:l.length,initialData:l.initialData,progressiveDone:l.progressiveDone,contentDispositionFilename:l.contentDispositionFilename,disableRange:l.disableRange,disableStream:l.disableStream},M):l.data||($=createPDFNetworkStream({url:l.url,length:l.length,httpHeaders:l.httpHeaders,withCredentials:l.withCredentials,rangeChunkSize:l.rangeChunkSize,disableRange:l.disableRange,disableStream:l.disableStream})),Q($)});return Promise.all([H,R]).then(function(Q){var $=_slicedToArray(Q,2),X=$[0],B=$[1];if(I.destroyed)throw new Error("Loading aborted");var z=new _message_handler.MessageHandler(V,X,N.port);z.postMessageTransfers=N.postMessageTransfers;var W=new WorkerTransport(z,I,B,l);I._transport=W,z.send("Ready",null)})}).catch(I._capability.reject),I}function _fetchDocument(K,I,s,l){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return(_fetchDocument2=_asyncToGenerator(_regenerator.default.mark(function K(I,s,l,M){var N;return _regenerator.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(!I.destroyed){U.next=2;break}throw new Error("Worker was destroyed");case 2:return l&&(s.length=l.length,s.initialData=l.initialData,s.progressiveDone=l.progressiveDone,s.contentDispositionFilename=l.contentDispositionFilename),U.next=5,I.messageHandler.sendWithProm
vendor: 16,712 bytes, line 1
1ise("GetDocRequest",{docId:M,apiVersion:"2.11.338",source:{data:s.data,url:s.url,password:s.password,disableAutoFetch:s.disableAutoFetch,rangeChunkSize:s.rangeChunkSize,length:s.length},maxImageSize:s.maxImageSize,disableFontFace:s.disableFontFace,postMessageTransfers:I.postMessageTransfers,docBaseUrl:s.docBaseUrl,ignoreErrors:s.ignoreErrors,isEvalSupported:s.isEvalSupported,fontExtraProperties:s.fontExtraProperties,enableXfa:s.enableXfa,useSystemFonts:s.useSystemFonts,cMapUrl:s.useWorkerFetch?s.cMapUrl:null,standardFontDataUrl:s.useWorkerFetch?s.standardFontDataUrl:null});case 5:if(N=U.sent,!I.destroyed){U.next=8;break}throw new Error("Worker was destroyed");case 8:return U.abrupt("return",N);case 9:case"end":return U.stop()}},K)}))).apply(this,arguments)}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;var PDFDocumentLoadingTask=function(){function K(){_classCallCheck(this,K),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d".concat(K.idCounters.doc++),this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(K,[{key:"promise",get:function(){return this._capability.promise}},{key:"destroy",value:(I=_asyncToGenerator(_regenerator.default.mark(function l(){var M;return _regenerator.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return this.destroyed=!0,Y.next=3,null===(M=this._transport)||void 0===M?void 0:M.destroy();case 3:this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null);case 5:case"end":return Y.stop()}},l,this)})),function s(){return I.apply(this,arguments)})}],[{key:"idCounters",get:function(){return(0,_util.shadow)(this,"idCounters",{doc:0})}}]),K;var I}();exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;var PDFDataRangeTransport=function(){function K(I,s){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],M=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,K),this.length=I,this.initialData=s,this.progressiveDone=l,this.contentDispositionFilename=M,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(K,[{key:"addRangeListener",value:function(s){this._rangeListeners.push(s)}},{key:"addProgressListener",value:function(s){this._progressListeners.push(s)}},{key:"addProgressiveReadListener",value:function(s){this._progressiveReadListeners.push(s)}},{key:"addProgressiveDoneListener",value:function(s){this._progressiveDoneListeners.push(s)}},{key:"onDataRange",value:function(s,l){var N,M=_createForOfIteratorHelper(this._rangeListeners);try{for(M.s();!(N=M.n()).done;)(0,N.value)(s,l)}catch(U){M.e(U)}finally{M.f()}}},{key:"onDataProgress",value:function(s,l){var M=this;this._readyCapability.promise.then(function(){var Y,N=_createForOfIteratorHelper(M._progressListeners);try{for(N.s();!(Y=N.n()).done;)(0,Y.value)(s,l)}catch(e){N.e(e)}finally{N.f()}})}},{key:"onDataProgressiveRead",value:function(s){var l=this;this._readyCapability.promise.then(function(){var N,M=_createForOfIteratorHelper(l._progressiveReadListeners);try{for(M.s();!(N=M.n()).done;)(0,N.value)(s)}catch(U){M.e(U)}finally{M.f()}})}},{key:"onDataProgressiveDone",value:function(){var s=this;this._readyCapability.promise.then(function(){var M,l=_createForOfIteratorHelper(s._progressiveDoneListeners);try{for(l.s();!(M=l.n()).done;)(0,M.value)()}catch(Y){l.e(Y)}finally{l.f()}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(s,l){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),K}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function K(I,s){_classCallCheck(this,K),this._pdfInfo=I,this._transport=s,Object.defineProperty(this,"fingerprint",{get:function(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}})}return _createClass(K,[{key:"annotationStorage",get:function(){return this._transport.annotationStorage}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprints",get:function(){return this._pdfInfo.fingerprints}},{key:"isPureXfa",get:function(){return!!this._transport._htmlForXfa}},{key:"allXfaHtml",get:function(){return this._transport._htmlForXfa}},{key:"getPage",value:function(s){return this._transport.getPage(s)}},{key:"getPageIndex",value:function(s){return this._transport.getPageIndex(s)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(s){return this._transport.getDestination(s)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getJSActions",value:function(){return this._transport.getDocJSActions()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getOptionalContentConfig",value:function(){return this._transport.getOptionalContentConfig()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getMarkInfo",value:function(){return this._transport.getMarkInfo()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){var s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._transport.startCleanup(s||this.isPureXfa)}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}},{key:"saveDocument",value:function(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}},{key:"getFieldObjects",value:function(){return this._transport.getFieldObjects()}},{key:"hasJSActions",value:function(){return this._transport.hasJSActions()}},{key:"getCalculationOrderIds",value:function(){return this._transport.getCalculationOrderIds()}}]),K}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function K(I,s,l,M){var N=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,K),this._pageIndex=I,this._pageInfo=s,this._ownerDocument=M,this._transport=l,this._stats=N?new _display_utils.StatTimer:null,this._pdfBug=N,this.commonObjs=l.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}return _createClass(K,[{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"getViewport",value:function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=s.scale,M=s.rotation,N=void 0===M?this.rotate:M,Y=s.offsetX,U=void 0===Y?0:Y,e=s.offsetY,V=void 0===e?0:e,H=s.dontFlip,R=void 0!==H&&H;return new _display_utils.PageViewport({viewBox:this.view,scale:l,rotation:N,offsetX:U,offsetY:V,dontFlip:R})}},{key:"getAnnotations",value:function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=s.intent,M=void 0===l?"display":l,N=this._transport.getRenderingIntent(M),Y=this._annotationPromises.get(N.cacheKey);return Y||(Y=this._transport.getAnnotations(this._pageIndex,N.renderingIntent),this._annotationPromises.set(N.cacheKey,Y),Y=Y.then(function(U){var V,e=_createForOfIteratorHelper(U);try{var H=function(){var Q=V.value;void 0!==Q.titleObj&&Object.defineProperty(Q,"title",{get:function(){return(0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),Q.titleObj.str}}),void 0!==Q.contentsObj&&Object.defineProperty(Q,"contents",{get:function(){return(0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),Q.contentsObj.str}})};for(e.s();!(V=e.n()).done;)H()}catch(R){e.e(R)}finally{e.f()}return U})),Y}},{key:"getJSActions",value:function(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}},{key:"getXfa",value:(I=_asyncToGenerator(_regenerator.default.mark(function l(){var M;return _regenerator.default.wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.abrupt("return",(null===(M=this._transport._htmlForXfa)||void 0===M?void 0:M.children[this._pageIndex])||null);case 1:case"end":return Y.stop()}},l,this)})),function s(){return I.apply(this,arguments)})},{key:"render",value:function(s){var l,M,Y,N=this,U=s.canvasContext,e=s.viewport,V=s.intent,H=void 0===V?"display":V,R=s.annotationMode,Q=void 0===R?_util.AnnotationMode.ENABLE:R,$=s.transform,X=void 0===$?null:$,B=s.imageLayer,z=void 0===B?null:B,W=s.canvasFactory,D=void 0===W?null:W,g=s.background,p=void 0===g?null:g,o=s.optionalContentConfigPromise,u=void 0===o?null:o;void 0!==(null===(l=arguments[0])||void 0===l?void 0:l.renderInteractiveForms)&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),!0===arguments[0].renderInteractiveForms&&Q===_util.AnnotationMode.ENABLE&&(Q=_util.AnnotationMode.ENABLE_FORMS)),void 0!==(null===(M=arguments[0])||void 0===M?void 0:M.includeAnnotationStorage)&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),!0===arguments[0].includeAnnotationStorage&&Q===_util.AnnotationMode.ENABLE&&(Q=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");var b=this._transport.getRenderingIntent(H,Q);this.pendingCleanup=!1,u||(u=this._transport.getOptionalContentConfig());var m=this._intentStates.get(b.cacheKey);m||this._intentStates.set(b.cacheKey,m=Object.create(null)),m.streamReaderCancelTimeout&&(clearTimeout(m.streamReaderCancelTimeout),m.streamReaderCancelTimeout=null);var c=D||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),A=!!(b.renderingIntent&_util.RenderingIntentFlag.PRINT);m.displayReadyCapability||(m.displayReadyCapability=(0,_util.createPromiseCapability)(),m.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(b));var O=function(E){m.renderTasks.delete(_),(N.cleanupAfterRender||A)&&(N.pendingCleanup=!0),N._tryCleanup(),E?(_.capability.reject(E),N._abortOperatorList({intentState:m,reason:E instanceof Error?E:new Error(E)})):_.capability.resolve(),N._stats&&(N._stats.timeEnd("Rendering"),N._stats.timeEnd("Overall"))},_=new InternalRenderTask({callback:O,params:{canvasContext:U,viewport:e,transform:X,imageLayer:z,background:p},objs:this.objs,commonObjs:this.commonObjs,operatorList:m.operatorList,pageIndex:this._pageIndex,canvasFactory:c,useRequestAnimationFrame:!A,pdfBug:this._pdfBug});((Y=m).renderTasks||(Y.renderTasks=new Set)).add(_);var k=_.task;return Promise.all([m.displayReadyCapability.promise,u]).then(function(P){var E=_slicedToArray(P,2),x=E[0],y=E[1];N.pendingCleanup?O():(N._stats&&N._stats.time("Rendering"),_.initializeGraphics({transparency:x,optionalContentConfig:y}),_.operatorListChanged())}).catch(O),k}},{key:"getOperatorList",value:function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=s.intent,M=void 0===l?"display":l,N=s.annotationMode,Y=void 0===N?_util.AnnotationMode.ENABLE:N;function U(){V.operatorList.lastChunk&&(V.opListReadCapability.resolve(V.operatorList),V.renderTasks.delete(H))}var H,R,e=this._transport.getRenderingIntent(M,Y,!0),V=this._intentStates.get(e.cacheKey);return V||this._intentStates.set(e.cacheKey,V=Object.create(null)),V.opListReadCapability||((H=Object.create(null)).operatorListChanged=U,V.opListReadCapability=(0,_util.createPromiseCapability)(),((R=V).renderTasks||(R.renderTasks=new Set)).add(H),V.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(e)),V.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=s.normalizeWhitespace,M=void 0!==l&&l,N=s.disableCombineTextItems,Y=void 0!==N&&N,U=s.includeMarkedContent,e=void 0!==U&&U,V=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:!0===M,combineTextItems:!0!==Y,includeMarkedContent:!0===e},{highWaterMark:V,size:function(R){return R.items.length}})}},{key:"getTextContent",value:function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then(function(M){return _xfa_text.XfaText.textContent(M)});var l=this.streamTextContent(s);return new Promise(function(M,N){var U=l.getReader(),e={items:[],styles:Object.create(null)};!function Y(){U.read().then(function(V){var H,R=V.value;V.done?M(e):(Object.assign(e.styles,R.styles),(H=e.items).push.apply(H,_toConsumableArray(R.items)),Y())},N)}()})}},{key:"getStructTree",value:function(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}},{key:"_destroy",value:function(){this.destroyed=!0,this._transport.pageCache[this._pageIndex]=null;var M,s=[],l=_createForOfIteratorHelper(this._intentStates.values());try{for(l.s();!(M=l.n()).done;){var N=M.value;if(this._abortOperatorList({intentState:N,reason:new Error("Page was destroyed."),force:!0}),!N.opListReadCapability){var U,Y=_createForOfIteratorHelper(N.renderTasks);try{for(Y.s();!(U=Y.n()).done;){var e=U.value;s.push(e.completed),e.cancel()}}catch(V){Y.e(V)}finally{Y.f()}}}}catch(V){l.e(V)}finally{l.f()}return this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(s)}},{key:"cleanup",value:function(){var s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.pendingCleanup=!0,this._tryCleanup(s)}},{key:"_tryCleanup",value:function(){var s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.pendingCleanup)return!1;var M,l=_createForOfIteratorHelper(this._intentStates.values());try{for(l.s();!(M=l.n()).done;){var N=M.value,Y=N.renderTasks,U=N.operatorList;if(Y.size>0||!U.lastChunk)return!1}}catch(e){l.e(e)}finally{l.f()}return this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,s&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}},{key:"_startRenderPage",value:function(s,l){var M=this._intentStates.get(l);!M||(this._stats&&this._stats.timeEnd("Page Request"),M.displayReadyCapability&&M.displayReadyCapability.resolve(s))}},{key:"_renderPageChunk",value:function(s,l){for(var M=0,N=s.length;M<N;M++)l.operatorList.fnArray.push(s.fnArray[M]),l.operatorList.argsArray.push(s.argsArray[M]);l.operatorList.lastChunk=s.lastChunk;var U,Y=_createForOfIteratorHelper(l.renderTasks);try{for(Y.s();!(U=Y.n()).done;)U.value.operatorListChanged()}catch(V){Y.e(V)}finally{Y.f()}s.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(s){var l=this,M=s.renderingIntent,N=s.cacheKey,U=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:M,cacheKey:N,annotationStorage:M&_util.RenderingIntentFlag.ANNOTATIONS_STORAGE?this._transport.annotationStorage.serializable:null}).getReader(),e=this._intentStates.get(N);e.streamReader=U,function H(){U.read().then(function(R){var Q=R.value;R.done?e.streamReader=null:l._transport.destroyed||(l._renderPageChunk(Q,e),H())}
1,function(R){if(e.streamReader=null,!l._transport.destroyed){if(e.operatorList){e.operatorList.lastChunk=!0;var $,Q=_createForOfIteratorHelper(e.renderTasks);try{for(Q.s();!($=Q.n()).done;)$.value.operatorListChanged()}catch(B){Q.e(B)}finally{Q.f()}l._tryCleanup()}if(e.displayReadyCapability)e.displayReadyCapability.reject(R);else{if(!e.opListReadCapability)throw R;e.opListReadCapability.reject(R)}}})}()}},{key:"_abortOperatorList",value:function(s){var l=this,M=s.intentState,N=s.reason,Y=s.force;if(M.streamReader){if(void 0===Y||!Y){if(M.renderTasks.size>0)return;if(N instanceof _display_utils.RenderingCancelledException)return void(M.streamReaderCancelTimeout=setTimeout(function(){l._abortOperatorList({intentState:M,reason:N,force:!0}),M.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT))}if(M.streamReader.cancel(new _util.AbortException(N.message)).catch(function(){}),M.streamReader=null,!this._transport.destroyed){var V,e=_createForOfIteratorHelper(this._intentStates);try{for(e.s();!(V=e.n()).done;){var H=_slicedToArray(V.value,2);if(H[1]===M){this._intentStates.delete(H[0]);break}}}catch($){e.e($)}finally{e.f()}this.cleanup()}}}},{key:"stats",get:function(){return this._stats}}]),K;var I}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function K(){_classCallCheck(this,K),this._listeners=[],this._deferred=Promise.resolve(void 0)}return _createClass(K,[{key:"postMessage",value:function(s,l){var M=this,Y=new WeakMap,U={data:function N(e){if("function"==typeof e||"symbol"===_typeof(e)||e instanceof URL)throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(null==e?void 0:e.toString()));if("object"!==_typeof(e)||null===e)return e;if(Y.has(e))return Y.get(e);var V,H;if((V=e.buffer)&&(0,_util.isArrayBuffer)(V))return H=null!=l&&l.includes(V)?new e.constructor(V,e.byteOffset,e.byteLength):new e.constructor(e),Y.set(e,H),H;if(e instanceof Map){Y.set(e,H=new Map);var Q,R=_createForOfIteratorHelper(e);try{for(R.s();!(Q=R.n()).done;){var $=_slicedToArray(Q.value,2);H.set($[0],N($[1]))}}catch(b){R.e(b)}finally{R.f()}return H}if(e instanceof Set){Y.set(e,H=new Set);var W,z=_createForOfIteratorHelper(e);try{for(z.s();!(W=z.n()).done;)H.add(N(W.value))}catch(b){z.e(b)}finally{z.f()}return H}for(var g in H=Array.isArray(e)?[]:Object.create(null),Y.set(e,H),e){for(var p,o=void 0,u=e;!(o=Object.getOwnPropertyDescriptor(u,g));)u=Object.getPrototypeOf(u);void 0!==o.value&&("function"==typeof o.value&&(null===(p=e.hasOwnProperty)||void 0===p||!p.call(e,g))||(H[g]=N(o.value)))}return H}(s)};this._deferred.then(function(){var V,e=_createForOfIteratorHelper(M._listeners);try{for(e.s();!(V=e.n()).done;)V.value.call(M,U)}catch(R){e.e(R)}finally{e.f()}})}},{key:"addEventListener",value:function(s,l){this._listeners.push(l)}},{key:"removeEventListener",value:function(s,l){var M=this._listeners.indexOf(l);this._listeners.splice(M,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),K}();exports.LoopbackPort=LoopbackPort;var PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(_is_node.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"===("undefined"==typeof document?"undefined":_typeof(document))){var _document,_document$currentScri,pdfjsFilePath=null===(_document=document)||void 0===_document||null===(_document$currentScri=_document.currentScript)||void 0===_document$currentScri?void 0:_document$currentScri.src;pdfjsFilePath&&(PDFWorkerUtil.fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.createCDNWrapper=function(K){var I='importScripts("'.concat(K,'");');return URL.createObjectURL(new Blob([I]))};var PDFWorker=function(){function PDFWorker(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},I=K.name,s=void 0===I?null:I,l=K.port,M=void 0===l?null:l,N=K.verbosity,Y=void 0===N?(0,_util.getVerbosityLevel)():N;if(_classCallCheck(this,PDFWorker),M&&PDFWorker._workerPorts.has(M))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=s,this.destroyed=!1,this.postMessageTransfers=!0,this.verbosity=Y,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,M)return PDFWorker._workerPorts.set(M,this),void this._initializeFromPort(M);this._initialize()}return _createClass(PDFWorker,[{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}},{key:"_initializeFromPort",value:function(I){this._port=I,this._messageHandler=new _message_handler.MessageHandler("main","worker",I),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var I=this;if("undefined"!=typeof Worker&&!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){var s=PDFWorker.workerSrc;try{(0,_util.isSameOrigin)(window.location.href,s)||(s=PDFWorkerUtil.createCDNWrapper(new URL(s,window.location).href));var l=new Worker(s),M=new _message_handler.MessageHandler("main","worker",l),N=function(){l.removeEventListener("error",Y),M.destroy(),l.terminate(),I.destroyed?I._readyCapability.reject(new Error("Worker was destroyed")):I._setupFakeWorker()},Y=function(){I._webWorker||N()};l.addEventListener("error",Y),M.on("test",function(e){l.removeEventListener("error",Y),I.destroyed?N():e?(I._messageHandler=M,I._port=l,I._webWorker=l,e.supp
vendor: 6,159 bytes, line 1
1ortTransfers||(I.postMessageTransfers=!1),I._readyCapability.resolve(),M.send("configure",{verbosity:I.verbosity})):(I._setupFakeWorker(),M.destroy(),l.terminate())}),M.on("ready",function(e){if(l.removeEventListener("error",Y),I.destroyed)N();else try{U()}catch(V){I._setupFakeWorker()}});var U=function(){var V=new Uint8Array([I.postMessageTransfers?255:0]);try{M.send("test",V,[V.buffer])}catch(H){(0,_util.warn)("Cannot use postMessage transfers."),V[0]=0,M.send("test",V)}};return void U()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var I=this;PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then(function(s){if(I.destroyed)I._readyCapability.reject(new Error("Worker was destroyed"));else{var l=new LoopbackPort;I._port=l;var M="fake".concat(PDFWorkerUtil.fakeWorkerId++),N=new _message_handler.MessageHandler(M+"_worker",M,l);s.setup(N,l);var Y=new _message_handler.MessageHandler(M,M+"_worker",l);I._messageHandler=Y,I._readyCapability.resolve(),Y.send("configure",{verbosity:I.verbosity})}}).catch(function(s){I._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(s.message,'".')))})}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker._workerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}}],[{key:"_workerPorts",get:function(){return(0,_util.shadow)(this,"_workerPorts",new WeakMap)}},{key:"fromPort",value:function(I){if(null==I||!I.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return this._workerPorts.has(I.port)?this._workerPorts.get(I.port):new PDFWorker(I)}},{key:"workerSrc",get:function(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}},{key:"_mainThreadWorkerMessageHandler",get:function(){try{var I;return(null===(I=globalThis.pdfjsWorker)||void 0===I?void 0:I.WorkerMessageHandler)||null}catch(s){return null}}},{key:"_setupFakeWorkerGlobal",get:function get(){var _this10=this,loader=function(){var _ref15=_asyncToGenerator(_regenerator.default.mark(function _callee3(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap(function _callee3$(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:if(mainWorkerMessageHandler=_this10._mainThreadWorkerMessageHandler,!mainWorkerMessageHandler){_context3.next=3;break}return _context3.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context3.next=6;break}return worker=eval("require")(_this10.workerSrc),_context3.abrupt("return",worker.WorkerMessageHandler);case 6:return _context3.next=8,(0,_display_utils.loadScript)(_this10.workerSrc);case 8:return _context3.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context3.stop()}},_callee3)}));return function K(){return _ref15.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}]),PDFWorker}();exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};var WorkerTransport=function(){function K(I,s,l,M){_classCallCheck(this,K),this.messageHandler=I,this.loadingTask=s,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:s.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:M.ownerDocument,styleElement:M.styleElement}),this._params=M,M.useWorkerFetch||(this.CMapReaderFactory=new M.CMapReaderFactory({baseUrl:M.cMapUrl,isCompressed:M.cMapPacked}),this.StandardFontDataFactory=new M.StandardFontDataFactory({baseUrl:M.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=l,this._fullReader=null,this._lastProgress=null,this.pageCache=[],this.pagePromises=[],this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(K,[{key:"annotationStorage",get:function(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}},{key:"getRenderingIntent",value:function(s){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_util.AnnotationMode.ENABLE,M=arguments.length>2&&void 0!==arguments[2]&&arguments[2],N=_util.RenderingIntentFlag.DISPLAY,Y="";switch(s){case"any":N=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":N=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)("getRenderingIntent - invalid intent: ".concat(s))}switch(l){case _util.AnnotationMode.DISABLE:N+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:N+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:N+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,Y=this.annotationStorage.lastModified;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(l))}return M&&(N+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:N,cacheKey:"".concat(N,"_").concat(Y)}}},{key:"destroy",value:function(){var s=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var N,l=[],M=_createForOfIteratorHelper(this.pageCache);try{for(M.s();!(N=M.n()).done;){var Y=N.value;Y&&l.push(Y._destroy())}}catch(e){M.e(e)}finally{M.f()}this.pageCache.length=0,this.pagePromises.length=0,this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();
1var U=this.messageHandler.sendWithPromise("Terminate",null);return l.push(U),Promise.all(l).then(function(){s.commonObjs.clear(),s.fontLoader.clear(),s._getFieldObjectsPromise=null,s._hasJSActionsPromise=null,s._networkStream&&s._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),s.messageHandler&&(s.messageHandler.destroy(),s.messageHandler=null),s.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var s=this,l=this.messageHandler,M=this.loadingTask;l.on("GetReader",function(N,Y){(0,_util.assert)(s._networkStream,"GetReader - no `IPDFStream` instance available."),s._fullReader=s._networkStream.getFullReader(),s._fullReader.onProgress=function(U){s._lastProgress={loaded:U.loaded,total:U.total}},Y.onPull=function(){s._fullReader.read().then(function(U){var e=U.value;U.done?Y.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),Y.enqueue(new Uint8Array(e),1,[e]))}).catch(function(U){Y.error(U)})},Y.onCancel=function(U){s._fullReader.cancel(U),Y.ready.catch(function(e){if(!s.destroyed)throw e})}}),l.on("ReaderHeadersReady",function(N){var Y=(0,_util.createPromiseCapability)(),U=s._fullReader;return U.headersReady.then(function(){(!U.isStreamingSupported||!U.isRangeSupported)&&(s._lastProgress&&M.onProgress&&M.onProgress(s._lastProgress),U.onProgress=function(e){M.onProgress&&M.onProgress({loaded:e.loaded,total:e.total})}),Y.resolve({isStreamingSupported:U.isStreamingSupported,isRangeSupported:U.isRangeSupported,contentLength:U.contentLength})},Y.reject),Y.promise}),l.on("GetRangeReader",function(N,Y){(0,_util.assert)(s._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var U=s._networkStream.getRangeReader(N.begin,N.end);U?(Y.onPull=function(){U.read().then(function(e){var V=e.value;e.done?Y.close():((0,_util.assert)((0,_util.isArrayBuffer)(V),"GetRangeReader - expected an ArrayBuffer."),Y.enqueue(new Uint8Array(V),1,[V]))}).catch(function(e){Y.error(e)})},Y.onCancel=function(e){U.cancel(e),Y.ready.catch(function(V){if(!s.destroyed)throw V})}):Y.close()}),l.on("GetDoc",function(N){var Y=N.pdfInfo;s._numPages=Y.numPages,s._htmlForXfa=Y.htmlForXfa,delete Y.htmlForXfa,M._capability.resolve(new PDFDocumentProxy(Y,s))}),l.on("DocException",function(N){var Y;switch(N.name){case"PasswordException":Y=new _util.PasswordException(N.message,N.code);break;case"InvalidPDFException":Y=new _util.InvalidPDFException(N.message);break;case"MissingPDFException":Y=new _util.MissingPDFException(N.message);break;case"UnexpectedResponseException":Y=new _util.UnexpectedResponseException(N.message,N.status);break;case"UnknownErrorException":Y=new _util.UnknownErrorException(N.message,N.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}M._capability.reject(Y)}),l.on("PasswordRequest",function(N){if(s._passwordCapability=(0,_util.createPromiseCapability)(),M.onPassword)try{M.onPassword(function(e){s._passwordCapability.resolve({password:e})},N.code)}catch(U){s._passwordCapability.reject(U)}else s._passwordCapability.reject(new _util.PasswordException(N.message,N.code));return s._passwordCapability.promise}),l.on("DataLoaded",function(N){M.onProgress&&M.onProgress({loaded:N.length,total:N.length}),s.downloadInfoCapability.resolve(N)}),l.on("StartRenderPage",function(N){s.destroyed||s.pageCache[N.pageIndex]._startRenderPage(N.transparency,N.cacheKey)}),l.on("commonobj",function(N){var Y;if(!s.destroyed){var U=_slicedToArray(N,3),e=U[0],V=U[1],H=U[2];if(!s.commonObjs.has(e))switch(V){case"Font":var R=s._params;if("error"in H){var Q=H.error;(0,_util.warn)("Error during font loading: ".concat(Q)),s.commonObjs.resolve(e,Q);break}var $=null;R.pdfBug&&null!==(Y=globalThis.FontInspector)&&void 0!==Y&&Y.enabled&&($={registerFont:function(z,W){globalThis.FontInspector.fontAdded(z,W)}});var X=new _font_loader.FontFaceObject(H,{isEvalSupported:R.isEvalSupported,disableFontFace:R.disableFontFace,ignoreErrors:R.ignoreErrors,onUnsupportedFeature:s._onUnsupportedFeature.bind(s),fontRegistry:$});
1s.fontLoader.bind(X).catch(function(B){return l.sendWithPromise("FontFallback",{id:e})}).finally(function(){!R.fontExtraProperties&&X.data&&(X.data=null),s.commonObjs.resolve(e,X)});break;case"FontPath":case"Image":s.commonObjs.resolve(e,H);break;default:throw new Error("Got unknown common object type ".concat(V))}}}),l.on("obj",function(N){var Y;if(!s.destroyed){var U=_slicedToArray(N,4),e=U[0],H=U[2],R=U[3],Q=s.pageCache[U[1]];if(!Q.objs.has(e))switch(H){case"Image":Q.objs.resolve(e,R),(null==R||null===(Y=R.data)||void 0===Y?void 0:Y.length)>8e6&&(Q.cleanupAfterRender=!0);break;case"Pattern":Q.objs.resolve(e,R);break;default:throw new Error("Got unknown object type ".concat(H))}}}),l.on("DocProgress",function(N){s.destroyed||M.onProgress&&M.onProgress({loaded:N.loaded,total:N.total})}),l.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),l.on("FetchBuiltInCMap",function(N){return s.destroyed?Promise.reject(new Error("Worker was destroyed.")):s.CMapReaderFactory?s.CMapReaderFactory.fetch(N):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))}),l.on("FetchStandardFontData",function(N){return s.destroyed?Promise.reject(new Error("Worker was destroyed.")):s.StandardFontDataFactory?s.StandardFontDataFactory.fetch(N):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))})}},{key:"_onUnsupportedFeature",value:function(s){this.destroyed||this.loadingTask.onUnsupportedFeature&&this.loadingTask.onUnsupportedFeature(s.featureId)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(s){var l=this;if(!Number.isInteger(s)||s<=0||s>this._numPages)return Promise.reject(new Error("Invalid page request"));var M=s-1;if(M in this.pagePromises)return this.pagePromises[M];var N=this.messageHandler.sendWithPromise("GetPage",{pageIndex:M}).then(function(Y){if(l.destroyed)throw new Error("Transport destroyed");var U=new PDFPageProxy(M,Y,l,l._params.ownerDocument,l._params.pdfBug);return l.pageCache[M]=U,U});return this.pagePromises[M]=N,N}},{key:"getPageIndex",value:function(s){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:s})}},{key:"getAnnotations",value:function(s,l){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:s,intent:l})}},{key:"saveDocument",value:function(){var s,l,M=this;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:null!==(s=null===(l=this._fullReader)||void 0===l?void 0:l.filename)&&void 0!==s?s:null}).finally(function(){M.annotationStorage.resetModified()})}},{key:"getFieldObjects",value:function(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=this.messageHandler.sendWithPromise("GetFieldObjects",null))}},{key:"hasJSActions",value:function(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}},{key:"getCalculationOrderIds",value:function(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(s){return"string"!=typeof s?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:s})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithProm
1ise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getDocJSActions",value:function(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}},{key:"getPageJSActions",value:function(s){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:s})}},{key:"getStructTree",value:function(s){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:s})}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(function(s){return new _optional_content_config.OptionalContentConfig(s)})}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var s=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(l){var M,N,Y,U;return{info:l[0],metadata:l[1]?new _metadata.Metadata(l[1]):null,contentDispositionFilename:null!==(M=null===(N=s._fullReader)||void 0===N?void 0:N.filename)&&void 0!==M?M:null,contentLength:null!==(Y=null===(U=s._fullReader)||void 0===U?void 0:U.contentLength)&&void 0!==Y?Y:null}})}},{key:"getMarkInfo",value:function(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",null)}},{key:"startCleanup",value:(I=_asyncToGenerator(_regenerator.default.mark(function l(){var M,N,Y,U,V=arguments;return _regenerator.default.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return M=V.length>0&&void 0!==V[0]&&V[0],R.next=3,this.messageHandler.sendWithPromise("Cleanup",null);case 3:if(!this.destroyed){R.next=5;break}return R.abrupt("return");case 5:N=0,Y=this.pageCache.length;case 6:if(!(N<Y)){R.next=16;break}if(U=this.pageCache[N]){R.next=10;break}return R.abrupt("continue",13);case 10:if(U.cleanup()){R.next=13;break}throw new Error("startCleanup: Page ".concat(N+1," is currently rendering."));case 13:N++,R.next=6;break;case 16:this.commonObjs.clear(),M||this.fontLoader.clear(),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null;case 20:case"end":return R.stop()}},l,this)})),function s(){return I.apply(this,arguments)})},{key:"loadingParams",get:function(){var s=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:s.disableAutoFetch,enableXfa:s.enableXfa})}}]),K;var I}(),PDFObjects=function(){function K(){_classCallCheck(this,K),this._objs=Object.create(null)}return _createClass(K,[{key:"_ensureObj",value:function(s){return this._objs[s]?this._objs[s]:this._objs[s]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(s){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(l)return this._ensureObj(s).capability.promise.then(l),null;var M=this._objs[s];if(!M||!M.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(s,"."));return M.data}},{key:"has",value:function(s){var l=this._objs[s];return(null==l?void 0:l.resolved)||!1}},{key:"resolve",value:function(s,l){var M=this._ensureObj(s);M.resolved=!0,M.data=l,M.capability.resolve(l)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),K}(),RenderTask=function(){function K(I){_classCallCheck(this,K),this._internalRenderTask=I,this.onContinue=null}return _createClass(K,[{key:"promise",get:function(){return this._internalRenderTask.capability.promise}},{key:"cancel",value:function(){this._internalRenderTask.cancel()}}]),K}();exports.RenderTask=RenderTask;var InternalRenderTask=function(){function K(I){var s=I.callback,l=I.params,M=I.objs,N=I.commonObjs,Y=I.operatorList,U=I.pageIndex,e=I.canvasFactory,V=I.useRequestAnimationFrame,H=void 0!==V&&V,R=I.pdfBug,Q=void 0!==R&&R;_classCallCheck(this,K),this.callback=s,this.params=l,this.objs=M,this.commonObjs=N,this.operatorListIdx=null,this.operatorList=Y,this._pageIndex=U,this.canvasFactory=e,this._pdfBug=Q,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===H&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(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=l.canvasContext.canvas}
1return _createClass(K,[{key:"completed",get:function(){return this.capability.promise.catch(function(){})}},{key:"initializeGraphics",value:function(s){var l,M=s.transparency,N=void 0!==M&&M,Y=s.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(K.canvasInUse.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");K.canvasInUse.add(this._canvas)}this._pdfBug&&null!==(l=globalThis.StepperManager)&&void 0!==l&&l.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var U=this.params,V=U.viewport,H=U.transform,Q=U.background;this.gfx=new _canvas.CanvasGraphics(U.canvasContext,this.commonObjs,this.objs,this.canvasFactory,U.imageLayer,Y),this.gfx.beginDrawing({transform:H,viewport:V,transparency:N,background:Q}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&K.canvasInUse.delete(this._canvas),this.callback(s||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var s=this;this._useRequestAnimationFrame?window.requestAnimationFrame(function(){s._nextBound().catch(s._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}},{key:"_next",value:(I=_asyncToGenerator(_regenerator.default.mark(function l(){return _regenerator.default.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(!this.cancelled){N.next=2;break}return N.abrupt("return");case 2: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&&K.canvasInUse.delete(this._canvas),this.callback()));case 4:case"end":return N.stop()}},l,this)})),function s(){return I.apply(this,arguments)})}],[{key:"canvasInUse",get:function(){return(0,_util.shadow)(this,"canvasInUse",new WeakSet)}}]),K;var I}(),version="2.11.338";exports.version=version;var build="dedff3c98";exports.build=build},(K,I,s)=>{"use strict";function l(c){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(O){return typeof O}:function(O){return O&&"function"==typeof Symbol&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O})(c)}Object.defineProperty(I,"__esModule",{value:!0}),I.FontLoader=I.FontFaceObject=void 0;var M=function Y(c){return c&&c.__esModule?c:{default:c}}(s(2)),N=s(4);function e(c,A){return(e=Object.setPrototypeOf||function(_,k){return _.__proto__=k,_})(c,A)}function H(c,A){if(A&&("object"===l(A)||"function"==typeof A))return A;if(void 0!==A)throw new TypeError("Derived constructors may only return object or undefined");return function R(c){if(void 0===c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}(c)}function $(c){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)})(c)}function X(c,A,O,_,k,P,E){try{var x=c[P](E),y=x.value}catch(f){return void O(f)}x.done?A(y):Promise.resolve(y).then(_,k)}function z(c,A){var O="undefined"!=typeof Symbol&&c[Symbol.iterator]||c["@@iterator"];if(!O){if(Array.isArray(c)||(O=function W(c,A){if(c){if("string"==typeof c)return D(c,A);var O=Object.prototype.toString.call(c).slice(8,-1);
vendor: 28,749 bytes, line 1
1if("Object"===O&&c.constructor&&(O=c.constructor.name),"Map"===O||"Set"===O)return Array.from(c);if("Arguments"===O||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return D(c,A)}}(c))||A&&c&&"number"==typeof c.length){O&&(c=O);var _=0,k=function(){};return{s:k,n:function(){return _>=c.length?{done:!0}:{done:!1,value:c[_++]}},e:function(f){throw f},f:k}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x,P=!0,E=!1;return{s:function(){O=O.call(c)},n:function(){var f=O.next();return P=f.done,f},e:function(f){E=!0,x=f},f:function(){try{!P&&null!=O.return&&O.return()}finally{if(E)throw x}}}}function D(c,A){(null==A||A>c.length)&&(A=c.length);for(var O=0,_=new Array(A);O<A;O++)_[O]=c[O];return _}function g(c,A){if(!(c instanceof A))throw new TypeError("Cannot call a class as a function")}function p(c,A){for(var O=0;O<A.length;O++){var _=A[O];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(c,_.key,_)}}function o(c,A,O){return A&&p(c.prototype,A),O&&p(c,O),c}var b,u=function(){function c(A){var O=A.docId,_=A.onUnsupportedFeature,k=A.ownerDocument,P=void 0===k?globalThis.document:k;g(this,c),this.constructor===c&&(0,N.unreachable)("Cannot initialize BaseFontLoader."),this.docId=O,this._onUnsupportedFeature=_,this._document=P,this.nativeFontFaces=[],this.styleElement=null}return o(c,[{key:"addNativeFontFace",value:function(O){this.nativeFontFaces.push(O),this._document.fonts.add(O)}},{key:"insertRule",value:function(O){var _=this.styleElement;_||((_=this.styleElement=this._document.createElement("style")).id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),this._document.documentElement.getElementsByTagName("head")[0].appendChild(_));var k=_.sheet;k.insertRule(O,k.cssRules.length)}},{key:"clear",value:function(){var _,O=z(this.nativeFontFaces);try{for(O.s();!(_=O.n()).done;)this._document.fonts.delete(_.value)}catch(P){O.e(P)}finally{O.f()}this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:(A=function B(c){return function(){var A=this,O=arguments;return new Promise(function(_,k){var P=c.apply(A,O);function E(y){X(P,_,k,E,x,"next",y)}function x(y){X(P,_,k,E,x,"throw",y)}E(void 0)})}}(M.default.mark(function _(k){var E,x,P=this;return M.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!k.attached&&!k.missingFile){f.next=2;break}return f.abrupt("return");case 2:if(k.attached=!0,!this.isFontLoadingAPISupported){f.next=19;break}if(!(E=k.createNativeFontFace())){f.next=18;break}return this.addNativeFontFace(E),f.prev=7,f.next=10,E.loaded;case 10:f.next=18;break;case 12:throw f.prev=12,f.t0=f.catch(7),this._onUnsupportedFeature({featureId:N.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,N.warn)("Failed to load font '".concat(E.family,"': '").concat(f.t0,"'.")),k.disableFontFace=!0,f.t0;case 18:return f.abrupt("return");case 19:if(!(x=k.createFontFaceRule())){f.next=26;break}if(this.insertRule(x),!this.isSyncFontLoadingSupported){f.next=24;break}return f.abrupt("return");case 24:return f.next=26,new Promise(function(h){var v=P._queueLoadingCallback(h);P._prepareFontLoadEvent([x],[k],v)});case 26:case"end":return f.stop()}},_,this,[[7,12]])})),function O(_){return A.apply(this,arguments)})},{key:"_queueLoadingCallback",value:function(O){(0,N.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"isFontLoadingAPISupported",get:function(){var O,_=!(null===(O=this._document)||void 0===O||!O.fonts);return(0,N.shadow)(this,"isFontLoadingAPISupported",_)}},{key:"isSyncFontLoadingSupported",get:function(){(0,N.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,N.unreachable)("Abstract method `_loadTestFont`.")}},{key:"_prepareFontLoadEvent",value:function(O,_,k){(0,N.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}]),c;var A}();I.FontLoader=b,I.FontLoader=b=function(c){!function U(c,A){if("function"!=typeof A&&null!==A)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(A&&A.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),A&&e(c,A)}(O,c);var A=function V(c){var A=function Q(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}();return function(){var k,_=$(c);if(A){var P=$(this).constructor;k=Reflect.construct(_,arguments,P)}else k=_.apply(this,arguments);return H(this,k)}}(O);function O(_){var k;return g(this,O),(k=A.call(this,_)).loadingContext={requests:[],nextRequestId:0},k.loadTestFontId=0,k}return o(O,[{key:"isSyncFontLoadingSupported",get:function(){var k=!1;if("undefined"==typeof navigator)k=!0;else{var P=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);(null==P?void 0:P[1])>=14&&(k=!0)}return(0,N.shadow)(this,"isSyncFontLoadingSupported",k)}},{key:"_queueLoadingCallback",value:function(k){var E=this.loadingContext,x={id:"pdfjs-font-loading-".concat(E.nextRequestId++),done:!1,complete:function P(){for((0,N.assert)(!x.done,"completeRequest() cannot be called twice."),x.done=!0;E.requests.length>0&&E.requests[0].done;){var y=E.requests.shift();setTimeout(y.callback,0)}},callback:k};return E.requests.push(x),x}},{key:"_loadTestFont",get:function(){return(0,N.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}},{key:"_prepareFontLoadEvent",value:function(k,P,E){var x=this;function y(Oe,Ee){return Oe.charCodeAt(Ee)<<24|Oe.charCodeAt(Ee+1)<<16|Oe.charCodeAt(Ee+2)<<8|255&Oe.charCodeAt(Ee+3)}function f(Oe,Ee,Ve,le){return Oe.substring(0,Ee)+le+Oe.substring(Ee+Ve)}var h,v,d=this._document.createElement("canvas");d.width=1,d.height=1;var S=d.getContext("2d"),w=0,te="lt".concat(Date.now()).concat(this.loadTestFontId++),J=this._loadTestFont,he=1482184792,be=y(J=f(J,976,te.length,te),16);for(h=0,v=te.length-3;h<v;h+=4)be=be-he+y(te,h)|0;h<te.length&&(be=be-he+y(te+"XXX",h)|0),J=f(J,16,4,(0,N.string32)(be));var oe="url(data:font/opentype;base64,".concat(btoa(J),");"),q='@font-face {font-family:"'.concat(te,'";src:').concat(oe,"}");this.insertRule(q);var F,G=[],L=z(P);try{for(L.s();!(F=L.n()).done;)G.push(F.value.loadedName)}catch(Oe){L.e(Oe)}finally{L.f()}G.push(te);var re=this._document.createElement("div");re.style.visibility="hidden",re.style.width=re.style.height="10px",re.style.position="absolute",re.style.top=re.style.left="0px";for(var ue=0,ve=G;ue<ve.length;ue++){var ke=ve[ue],Ie=this._document.createElement("span");Ie.textContent="Hi",Ie.style.fontFamily=ke,re.appendChild(Ie)}this._document.body.appendChild(re),function j(Oe,Ee){if(++w>30)return(0,N.warn)("Load test font never loaded."),void Ee();S.font="30px "+Oe,S.fillText(".",0,20),S.getImageData(0,0,1,1).data[3]>0?Ee():setTimeout(j.bind(null,Oe,Ee))}(te,function(){x._document.body.removeChild(re),E.complete()})}}]),O}(u),I.FontFaceObject=function(){function c(A,O){var _=O.isEvalSupported,k=void 0===_||_,P=O.disableFontFace,E=void 0!==P&&P,x=O.ignoreErrors,y=void 0!==x&&x,f=O.onUnsupportedFeature,h=O.fontRegistry,v=void 0===h?null:h;for(var d in g(this,c),this.compiledGlyphs=Object.create(null),A)this[d]=A[d];this.isEvalSupported=!1!==k,this.disableFontFace=!0===E,this.ignoreErrors=!0===y,this._onUnsupportedFeature=f,this.fontRegistry=v}return o(c,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var O;if(this.cssFontInfo){var _={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(_.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),O=new FontFace(this.cssFontInfo.fontFamily,this.data,_)}else O=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),O}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var k,O=(0,N.bytesToString)(this.data),_="url(data:".concat(this.mimetype,";base64,").concat(btoa(O),");");if(this.cssFontInfo){var P="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(P+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),k='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(P,"src:").concat(_,"}")}else k='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(_,"}");return this.fontRegistry&&this.fontRegistry.registerFont(this,_),k}},{key:"getPathGenerator",value:function(O,_){if(void 0!==this.compiledGlyphs[_])return this.compiledGlyphs[_];var k;try{k=O.get(this.loadedName+"_path_"+_)}catch(h){if(!this.ignoreErrors)throw h;return this._onUnsupportedFeature({featureId:N.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,N.warn)('getPathGenerator - ignoring character: "'.concat(h,'".')),this.compiledGlyphs[_]=function(v,d){}}if(this.isEvalSupported&&N.IsEvalSupportedCached.value){var x,P=[],E=z(k);try{for(E.s();!(x=E.n()).done;){var y=x.value,f=void 0!==y.args?y.args.join(","):"";P.push("c.",y.cmd,"(",f,");\n")}}catch(h){E.e(h)}finally{E.f()}return this.compiledGlyphs[_]=new Function("c","size",P.join(""))}return this.compiledGlyphs[_]=function(h,v){var S,d=z(k);try{for(d.s();!(S=d.n()).done;){var w=S.value;"scale"===w.cmd&&(w.args=[v,-v]),h[w.cmd].apply(h,w.args)}}catch(j){d.e(j)}finally{d.f()}}}}]),c}()},(K,I,s)=>{"use strict";function l(o){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(o)}Object.defineProperty(I,"__esModule",{value:!0}),I.NodeStandardFontDataFactory=I.NodeCMapReaderFactory=I.NodeCanvasFactory=void 0;var M=s(118),N=s(6),Y=s(4);function U(o,u){for(var b=0;b<u.length;b++){var m=u[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(o,m.key,m)}}function e(o,u,b){return u&&U(o.prototype,u),b&&U(o,b),o}function V(o,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),u&&H(o,u)}function H(o,u){return(H=Object.setPrototypeOf||function(m,c){return m.__proto__=c,m})(o,u)}function R(o){var u=function X(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(o){return!1}}();return function(){var c,m=B(o);if(u){var A=B(this).constructor;c=Reflect.construct(m,arguments,A)}else c=m.apply(this,arguments);return Q(this,c)}}function Q(o,u){if(u&&("object"===l(u)||"function"==typeof u))return u;if(void 0!==u)throw new TypeError("Derived constructors may only return object or undefined");return function $(o){if(void 0===o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(o)}function B(o){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)})(o)}function z(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}var W=function o(){z(this,o),(0,Y.unreachable)("Not implemented: NodeCanvasFactory")};I.NodeCanvasFactory=W;var D=function o(){z(this,o),(0,Y.unreachable)("Not implemented: NodeCMapReaderFactory")};I.NodeCMapReaderFactory=D;var g=function o(){z(this,o),(0,Y.unreachable)("Not implemented: NodeStandardFontDataFactory")};if(I.NodeStandardFontDataFactory=g,N.isNodeJS){var p=function(u){return new Promise(function(b,m){__webpack_require__(32767).readFile(u,function(A,O){!A&&O?b(new Uint8Array(O)):m(new Error(A))})})};I.NodeCanvasFactory=W=function(o){V(b,o);var u=R(b);function b(){return z(this,b),u.apply(this,arguments)}return e(b,[{key:"_createCanvas",value:function(c,A){return __webpack_require__(14601).createCanvas(c,A)}}]),b}(M.BaseCanvasFactory),I.NodeCMapReaderFactory=D=function(o){V(b,o);var u=R(b);function b(){return z(this,b),u.apply(this,arguments)}return e(b,[{key:"_fetchData",value:function(c,A){return p(c).then(function(O){return{cMapData:O,compressionType:A}})}}]),b}(M.BaseCMapReaderFactory),I.NodeStandardFontDataFactory=g=function(o){V(b,o);var u=R(b);function b(){return z(this,b),u.apply(this,arguments)}return e(b,[{key:"_fetchData",value:function(c){return p(c)}}]),b}(M.BaseStandardFontDataFactory)}},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.AnnotationStorage=void 0;var l=s(4);function M(X,B){return function V(X){if(Array.isArray(X))return X}(X)||function e(X,B){var z=null==X?null:"undefined"!=typeof Symbol&&X[Symbol.iterator]||X["@@iterator"];if(null!=z){var p,o,W=[],D=!0,g=!1;try{for(z=z.call(X);!(D=(p=z.next()).done)&&(W.push(p.value),!B||W.length!==B);D=!0);}catch(u){g=!0,o=u}finally{try{!D&&null!=z.return&&z.return()}finally{if(g)throw o}}return W}}(X,B)||function Y(X,B){if(X){if("string"==typeof X)return U(X,B);var z=Object.prototype.toString.call(X).slice(8,-1);if("Object"===z&&X.constructor&&(z=X.constructor.name),"Map"===z||"Set"===z)return Array.from(X);if("Arguments"===z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return U(X,B)}}(X,B)||function N(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(X,B){(null==B||B>X.length)&&(B=X.length);for(var z=0,W=new Array(B);z<B;z++)W[z]=X[z];return W}function R(X,B){for(var z=0;z<B.length;z++){var W=B[z];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(X,W.key,W)}}I.AnnotationStorage=function(){function X(){(function H(X,B){if(!(X instanceof B))throw new TypeError("Cannot call a class as a function")})(this,X),this._storage=new Map,this._timeStamp=Date.now(),this._modified=!1,this.onSetModified=null,this.onResetModified=null}return function Q(X,B,z){B&&R(X.prototype,B),z&&R(X,z)}(X,[{key:"getValue",value:function(z,W){var D=this._storage.get(z);return void 0===D?W:Object.assign(W,D)}},{key:"setValue",value:function(z,W){var D=this._storage.get(z),g=!1;if(void 0!==D)for(var p=0,o=Object.entries(W);p<o.length;p++){var u=M(o[p],2),b=u[0],m=u[1];D[b]!==m&&(g=!0,D[b]=m)}else g=!0,this._storage.set(z,W);g&&(this._timeStamp=Date.now(),this._setModified())}},{key:"getAll",value:function(){return this._storage.size>0?(0,l.objectFromMap)(this._storage):null}},{key:"size",get:function(){return this._storage.size}},{key:"_setModified",value:function(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}},{key:"resetModified",value:function(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}},{key:"serializable",get:function(){return this._storage.size>0?this._storage:null}},{key:"lastModified",get:function(){return this._timeStamp.toString()}}]),X}()},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.CanvasGraphics=void 0;var l=s(4),M=s(124),N=s(1);function Y(q){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(L){return typeof L}:function(L){return L&&"function"==typeof Symbol&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L})(q)}function U(q,G){var L="undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(!L){if(Array.isArray(q)||(L=$(q))||G&&q&&"number"==typeof q.length){L&&(q=L);var F=0,Z=function(){};return{s:Z,n:function(){return F>=q.length?{done:!0}:{done:!1,value:q[F++]}},e:function(Ie){throw Ie},f:Z}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ve,re=!0,ue=!1;return{s:function(){L=L.call(q)},n:function(){var Ie=L.next();return re=Ie.done,Ie},e:function(Ie){ue=!0,ve=Ie},f:function(){try{!re&&null!=L.return&&L.return()}finally{if(ue)throw ve}}}}function e(q,G){if(!(q instanceof G))throw new TypeError("Cannot call a class as a function")}function V(q,G){for(var L=0;L<G.length;L++){var F=G[L];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(q,F.key,F)}}function H(q,G,L){return G&&V(q.prototype,G),L&&V(q,L),q}function R(q,G){return function z(q){if(Array.isArray(q))return q}(q)||function B(q,G){var L=null==q?null:"undefined"!=typeof Symbol&&q[Symbol.iterator]||q["@@iterator"];if(null!=L){var ue,ve,F=[],Z=!0,re=!1;try{for(L=L.call(q);!(Z=(ue=L.next()).done)&&(F.push(ue.value),!G||F.length!==G);Z=!0);}catch(ke){re=!0,ve=ke}finally{try{!Z&&null!=L.return&&L.return()}finally{if(re)throw ve}}return F}}(q,G)||$(q,G)||function Q(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(q,G){if(q){if("string"==typeof q)return X(q,G);var L=Object.prototype.toString.call(q).slice(8,-1);if("Object"===L&&q.constructor&&(L=q.constructor.name),"Map"===L||"Set"===L)return Array.from(q);if("Arguments"===L||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return X(q,G)}}function X(q,G){(null==G||G>q.length)&&(G=q.length);for(var L=0,F=new Array(G);L<G;L++)F[L]=q[L];return F}var g=4096,c=16;function O(q){if(!q.mozCurrentTransform){q._originalSave=q.save,q._originalRestore=q.restore,q._originalRotate=q.rotate,q._originalScale=q.scale,q._originalTranslate=q.translate,q._originalTransform=q.transform,q._originalSetTransform=q.setTransform,q._originalResetTransform=q.resetTransform,q._transformMatrix=q._transformMatrix||[1,0,0,1,0,0],q._transformStack=[];try{var G=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(q),"lineWidth");q._setLineWidth=G.set,q._getLineWidth=G.get,Object.defineProperty(q,"lineWidth",{set:function(F){this._setLineWidth(1.000001*F)},get:function(){return this._getLineWidth()}})}catch(L){}Object.defineProperty(q,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(q,"mozCurrentTransformInverse",{get:function(){var F=R(this._transformMatrix,6),Z=F[0],re=F[1],ue=F[2],ve=F[3],ke=F[4],Ie=F[5],Oe=Z*ve-re*ue,Ee=re*ue-Z*ve;return[ve/Oe,re/Ee,ue/Ee,Z/Oe,(ve*ke-ue*Ie)/Ee,(re*ke-Z*Ie)/Oe]}}),q.save=function(){var F=this._transformMatrix;this._transformStack.push(F),this._transformMatrix=F.slice(0,6),this._originalSave()},q.restore=function(){var F=this._transformStack.pop();F&&(this._transformMatrix=F,this._originalRestore())},q.translate=function(F,Z){var re=this._transformMatrix;re[4]=re[0]*F+re[2]*Z+re[4],re[5]=re[1]*F+re[3]*Z+re[5],this._originalTranslate(F,Z)},q.scale=function(F,Z){var re=this._transformMatrix;re[0]*=F,re[1]*=F,re[2]*=Z,re[3]*=Z,this._originalScale(F,Z)},q.transform=function(F,Z,re,ue,ve,ke){var Ie=this._transformMatrix;this._transformMatrix=[Ie[0]*F+Ie[2]*Z,Ie[1]*F+Ie[3]*Z,Ie[0]*re+Ie[2]*ue,Ie[1]*re+Ie[3]*ue,Ie[0]*ve+Ie[2]*ke+Ie[4],Ie[1]*ve+Ie[3]*ke+Ie[5]],q._originalTransform(F,Z,re,ue,ve,ke)},q.setTransform=function(F,Z,re,ue,ve,ke){this._transformMatrix=[F,Z,re,ue,ve,ke],q._originalSetTransform(F,Z,re,ue,ve,ke)},q.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],q._originalResetTransform()},q.rotate=function(F){var Z=Math.cos(F),re=Math.sin(F),ue=this._transformMatrix;this._transformMatrix=[ue[0]*Z+ue[2]*re,ue[1]*Z+ue[3]*re,ue[0]*-re+ue[2]*Z,ue[1]*-re+ue[3]*Z,ue[4],ue[5]],this._originalRotate(F)}}}var _=function(){function q(G){e(this,q),this.canvasFactory=G,this.cache=Object.create(null)}return H(q,[{key:"getCanvas",value:function(L,F,Z,re){var ue;return void 0!==this.cache[L]?(this.canvasFactory.reset(ue=this.cache[L],F,Z),ue.context.setTransform(1,0,0,1,0,0)):(ue=this.canvasFactory.create(F,Z),this.cache[L]=ue),re&&O(ue.context),ue}},{key:"clear",value:function(){for(var L in this.cache)this.canvasFactory.destroy(this.cache[L]),delete this.cache[L]}}]),q}(),k=function(){function q(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e(this,q),this._cache=new Map,this._maxSize=G}return H(q,[{key:"has",value:function(L){return this._cache.has(L)}},{key:"get",value:function(L){if(this._cache.has(L)){var F=this._cache.get(L);this._cache.delete(L),this._cache.set(L,F)}return this._cache.get(L)}},{key:"set",value:function(L,F){this._maxSize<=0||(this._cache.size+1>this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(L,F))}},{key:"clear",value:function(){this._cache.clear()}}]),q}(),E=function(){function q(){e(this,q),this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=l.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=l.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=l.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}return H(q,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(L,F){this.x=L,this.y=F}}]),q}();function x(q,G){var L=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("undefined"!=typeof ImageData&&G instanceof ImageData)q.putImageData(G,0,0);else{var Oe,le,pe,ne,ce,ie,fe,Se,Te,F=G.height,Z=G.width,re=F%c,ue=(F-re)/c,ve=0===re?ue:ue+1,ke=q.createImageData(Z,c),Ie=0,Ee=G.data,Ve=ke.data;if(L)switch(L.length){case 1:ie=L[0],fe=L[0],Se=L[0],Te=L[0];break;case 4:ie=L[0],fe=L[1],Se=L[2],Te=L[3]}if(G.kind===l.ImageKind.GRAYSCALE_1BPP){var Re=Ee.byteLength,me=new Uint32Array(Ve.buffer,0,Ve.byteLength>>2),Ne=me.length,se=Z+7>>3,we=4294967295,_e=l.IsLittleEndianCached.value?4278190080:255;if(Te&&255===Te[0]&&0===Te[255]){var Pe=[_e,we];we=Pe[0],_e=Pe[1]}for(le=0;le<ve;le++){for(ne=le<ue?c:re,Oe=0,pe=0;pe<ne;pe++){for(var ze=Re-Ie,Le=0,Ue=ze>se?Z:8*ze-7,Ye=-8&Ue,je=0,Xe=0;Le<Ye;Le+=8)Xe=Ee[Ie++],me[Oe++]=128&Xe?we:_e,me[Oe++]=64&Xe?we:_e,me[Oe++]=32&Xe?we:_e,me[Oe++]=16&Xe?we:_e,me[Oe++]=8&Xe?we:_e,me[Oe++]=4&Xe?we:_e,me[Oe++]=2&Xe?we:_e,me[Oe++]=1&Xe?we:_e;for(;Le<Ue;Le++)0===je&&(Xe=Ee[Ie++],je=128),me[Oe++]=Xe&je?we:_e,je>>=1}for(;Oe<Ne;)me[Oe++]=0;q.putImageData(ke,0,le*c)}}else if(G.kind===l.ImageKind.RGBA_32BPP){var Ze=!!(ie||fe||Se);for(pe=0,ce=Z*c*4,le=0;le<ue;le++){if(Ve.set(Ee.subarray(Ie,Ie+ce)),Ie+=ce,Ze)for(var ot=0;ot<ce;ot+=4)ie&&(Ve[ot+0]=ie[Ve[ot+0]]),fe&&(Ve[ot+1]=fe[Ve[ot+1]]),Se&&(Ve[ot+2]=Se[Ve[ot+2]]);q.putImageData(ke,0,pe),pe+=c}if(le<ve){if(Ve.set(Ee.subarray(Ie,Ie+(ce=Z*re*4))),Ze)for(var st=0;st<ce;st+=4)ie&&(Ve[st+0]=ie[Ve[st+0]]),fe&&(Ve[st+1]=fe[Ve[st+1]]),Se&&(Ve[st+2]=Se[Ve[st+2]]);q.putImageData(ke,0,pe)}}else{if(G.kind!==l.ImageKind.RGB_24BPP)throw new Error("bad image kind: ".concat(G.kind));var ht=!!(ie||fe||Se);for(ce=Z*(ne=c),le=0;le<ve;le++){for(le>=ue&&(ce=Z*(ne=re)),Oe=0,pe=ce;pe--;)Ve[Oe++]=Ee[Ie++],Ve[Oe++]=Ee[Ie++],Ve[Oe++]=Ee[Ie++],Ve[Oe++]=255;if(ht)for(var _t=0;_t<Oe;_t+=4)ie&&(Ve[_t+0]=ie[Ve[_t+0]]),fe&&(Ve[_t+1]=fe[Ve[_t+1]]),Se&&(Ve[_t+2]=Se[Ve[_t+2]]);q.putImageData(ke,0,le*c)}}}}function y(q,G){for(var L=G.height,F=G.width,Z=L%c,re=(L-Z)/c,ue=0===Z?re:re+1,ve=q.createImageData(F,c),ke=0,Ie=G.data,Oe=ve.data,Ee=0;Ee<ue;Ee++){for(var Ve=Ee<re?c:Z,le=3,pe=0;pe<Ve;pe++)for(var ne=void 0,ce=0,ie=0;ie<F;ie++)ce||(ne=Ie[ke++],ce=128),Oe[le]=ne&ce?0:255,le+=4,ce>>=1;q.putImageData(ve,0,Ee*c)}}function f(q,G){for(var L=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],F=0,Z=L.length;F<Z;F++){var re=L[F];void 0!==q[re]&&(G[re]=q[re])}void 0!==q.setLineDash&&(G.setLineDash(q.getLineDash()),G.lineDashOffset=q.lineDashOffset)}function h(q){q.strokeStyle="#000000",q.fillStyle="#000000",q.fillRule="nonzero",q.globalAlpha=1,q.lineWidth=1,q.lineCap="butt",q.lineJoin="miter",q.miterLimit=10,q.globalCompositeOperation="source-over",q.font="10px sans-serif",void 0!==q.setLineDash&&(q.setLineDash([]),q.lineDashOffset=0)}function v(q,G,L,F){for(var Z=q.length,re=3;re<Z;re+=4){var ue=q[re];if(0===ue)q[re-3]=G,q[re-2]=L,q[re-1]=F;else if(ue<255){var ve=255-ue;q[re-3]=q[re-3]*ue+G*ve>>8,q[re-2]=q[re-2]*ue+L*ve>>8,q[re-1]=q[re-1]*ue+F*ve>>8}}}function d(q,G,L){for(var F=q.length,re=3;re<F;re+=4)G[re]=G[re]*(L?L[q[re]]:q[re])*.00392156862745098|0}function S(q,G,L){for(var F=q.length,Z=3;Z<F;Z+=4){var re=77*q[Z-3]+152*q[Z-2]+28*q[Z-1];G[Z]=L?G[Z]*L[re>>8]>>8:G[Z]*re>>16}}function j(q,G,L){var F=G.canvas,Z=G.context;q.setTransform(G.scaleX,0,0,G.scaleY,G.offsetX,G.offsetY),function w(q,G,L,F,Z,re,ue){var Ee,ve=!!re,ke=ve?re[0]:0,Ie=ve?re[1]:0,Oe=ve?re[2]:0;Ee="Luminosity"===Z?S:d;for(var le=Math.min(F,Math.ceil(1048576/L)),pe=0;pe<F;pe+=le){var ne=Math.min(le,F-pe),ce=q.getImageData(0,pe,L,ne),ie=G.getImageData(0,pe,L,ne);ve&&v(ce.data,ke,Ie,Oe),Ee(ce.data,ie.data,ue),q.putImageData(ie,0,pe)}}(Z,L,F.width,F.height,G.subtype,G.backdrop,G.transferMap),q.drawImage(F,0,0)}function te(q,G){var L=l.Util.singularValueDecompose2dScale(q);L[0]=Math.fround(L[0]),L[1]=Math.fround(L[1]);var F=Math.fround((globalThis.devicePixelRatio||1)*N.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==G?G:L[0]<=F||L[1]<=F}var J=["butt","round","square"],ge=["miter","round","bevel"],de={},he={},be=function(){function q(G,L,F,Z,re,ue){e(this,q),this.ctx=G,this.current=new E,this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=L,this.objs=F,this.canvasFactory=Z,this.imageLayer=re,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=ue,this.cachedCanvases=new _(this.canvasFactory),this.cachedCanvasPatterns=new k(2),this.cachedPatterns=new Map,G&&O(G),this._cachedGetSinglePixelWidth=null}return H(q,[{key:"beginDrawing",value:function(L){var F=L.transform,Z=L.viewport,re=L.transparency,ue=void 0!==re&&re,ve=L.background,ke=void 0===ve?null:ve,Ie=this.ctx.canvas.width,Oe=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=ke||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,Ie,Oe),this.ctx.restore(),ue){var Ee=this.cachedCanvases.getCanvas("transparent",Ie,Oe,!0);this.compositeCtx=this.ctx,this.transparentCanvas=Ee.canvas,this.ctx=Ee.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),h(this.ctx),F&&this.ctx.transform.apply(this.ctx,F),this.ctx.transform.apply(this.ctx,Z.transform),this.baseTransform=this.ctx.mozCurrentTransform.slice(),this._combinedScaleFactor=Math.hypot(this.baseTransform[0],this.baseTransform[2]),this.imageLayer&&this.imageLayer.beginLayout()}},{key:"executeOperatorList",value:function(L,F,Z,re){var ue=L.argsArray,ve=L.fnArray,ke=F||0,Ie=ue.length;if(Ie===ke)return ke;for(var ne,Oe=Ie-ke>10&&"function"==typeof Z,Ee=Oe?Date.now()+15:0,Ve=0,le=this.commonObjs,pe=this.objs;;){if(void 0!==re&&ke===re.nextBreakPoint)return re.breakIt(ke,Z),ke;
1if((ne=ve[ke])!==l.OPS.dependency)this[ne].apply(this,ue[ke]);else{var ie,ce=U(ue[ke]);try{for(ce.s();!(ie=ce.n()).done;){var fe=ie.value,Se=fe.startsWith("g_")?le:pe;if(!Se.has(fe))return Se.get(fe,Z),ke}}catch(Te){ce.e(Te)}finally{ce.f()}}if(++ke===Ie)return ke;if(Oe&&++Ve>10){if(Date.now()>Ee)return Z(),ke;Ve=0}}}},{key:"endDrawing",value: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.cachedCanvasPatterns.clear(),this.cachedPatterns.clear(),this.imageLayer&&this.imageLayer.endLayout()}},{key:"_scaleImage",value:function(L,F){for(var Ee,Ve,Z=L.width,re=L.height,ue=Math.max(Math.hypot(F[0],F[1]),1),ve=Math.max(Math.hypot(F[2],F[3]),1),ke=Z,Ie=re,Oe="prescale1";ue>2&&ke>1||ve>2&&Ie>1;){var le=ke,pe=Ie;ue>2&&ke>1&&(ue/=ke/(le=Math.ceil(ke/2))),ve>2&&Ie>1&&(ve/=Ie/(pe=Math.ceil(Ie/2))),(Ve=(Ee=this.cachedCanvases.getCanvas(Oe,le,pe)).context).clearRect(0,0,le,pe),Ve.drawImage(L,0,0,ke,Ie,0,0,le,pe),L=Ee.canvas,ke=le,Ie=pe,Oe="prescale1"===Oe?"prescale2":"prescale1"}return{img:L,paintWidth:ke,paintHeight:Ie}}},{key:"_createMaskCanvas",value:function(L){var F=this.ctx,Z=L.width,re=L.height,ue=this.current.fillColor,ve=this.current.patternFill,ke=this.cachedCanvases.getCanvas("maskCanvas",Z,re);y(ke.context,L);var Ee=l.Util.transform(F.mozCurrentTransform,[1/Z,0,0,-1/re,0,0]);Ee=l.Util.transform(Ee,[1,0,0,1,0,-re]);var Ve=l.Util.applyTransform([0,0],Ee),le=l.Util.applyTransform([Z,re],Ee),pe=l.Util.normalizeRect([Ve[0],Ve[1],le[0],le[1]]),ne=Math.ceil(pe[2]-pe[0]),ce=Math.ceil(pe[3]-pe[1]),ie=this.cachedCanvases.getCanvas("fillCanvas",ne,ce,!0),fe=ie.context,Se=Math.min(Ve[0],le[0]),Te=Math.min(Ve[1],le[1]);fe.translate(-Se,-Te),fe.transform.apply(fe,Ee);var Re=this._scaleImage(ke.canvas,fe.mozCurrentTransformInverse);fe.imageSmoothingEnabled=te(fe.mozCurrentTransform,L.interpolate),fe.drawImage(Re.img,0,0,Re.img.width,Re.img.height,0,0,Z,re),fe.globalCompositeOperation="source-in";var me=l.Util.transform(fe.mozCurrentTransformInverse,[1,0,0,1,-Se,-Te]);return fe.fillStyle=ve?ue.getPattern(F,this,me,!1):ue,fe.fillRect(0,0,Z,re),{canvas:ie.canvas,offsetX:Math.round(Se),offsetY:Math.round(Te)}}},{key:"setLineWidth",value:function(L){this.current.lineWidth=L,this.ctx.lineWidth=L}},{key:"setLineCap",value:function(L){this.ctx.lineCap=J[L]}},{key:"setLineJoin",value:function(L){this.ctx.lineJoin=ge[L]}},{key:"setMiterLimit",value:function(L){this.ctx.miterLimit=L}},{key:"setDash",value:function(L,F){var Z=this.ctx;void 0!==Z.setLineDash&&(Z.setLineDash(L),Z.lineDashOffset=F)}},{key:"setRenderingIntent",value:function(L){}},{key:"setFlatness",value:function(L){}},{key:"setGState",value:function(L){for(var F=0,Z=L.length;F<Z;F++){var re=L[F],ve=re[1];switch(re[0]){case"LW":this.setLineWidth(ve);break;case"LC":this.setLineCap(ve);break;case"LJ":this.setLineJoin(ve);break;case"ML":this.setMiterLimit(ve);break;case"D":this.setDash(ve[0],ve[1]);break;case"RI":this.setRenderingIntent(ve);break;case"FL":this.setFlatness(ve);break;case"Font":this.setFont(ve[0],ve[1]);break;case"CA":this.current.strokeAlpha=re[1];break;case"ca":this.current.fillAlpha=re[1],this.ctx.globalAlpha=re[1];break;case"BM":this.ctx.globalCompositeOperation=ve;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=ve?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null;break;case"TR":this.current.transferMaps=ve}}}},{key:"beginSMaskGroup",value:function(){var L=this.current.activeSMask,ue=this.cachedCanvases.getCanvas("smaskGroupAt"+this.groupLevel,L.canvas.width,L.canvas.height,!0),ve=this.ctx,ke=ve.mozCurrentTransform;this.ctx.save();var Ie=ue.context;Ie.scale(1/L.scaleX,1/L.scaleY),Ie.translate(-L.offsetX,-L.offsetY),Ie.transform.apply(Ie,ke),L.startTransformInverse=Ie.mozCurrentTransformInverse,f(ve,Ie),this.ctx=Ie,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(ve),this.groupLevel++}},{key:"suspendSMaskGroup",value:function(){var L=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),j(this.ctx,this.current.activeSMask,L),this.ctx.restore(
1),this.ctx.save(),f(L,this.ctx),this.current.resumeSMaskCtx=L;var F=l.Util.transform(this.current.activeSMask.startTransformInverse,L.mozCurrentTransform);this.ctx.transform.apply(this.ctx,F),L.save(),L.setTransform(1,0,0,1,0,0),L.clearRect(0,0,L.canvas.width,L.canvas.height),L.restore()}},{key:"resumeSMaskGroup",value:function(){var F=this.ctx;this.ctx=this.current.resumeSMaskCtx,this.groupStack.push(F),this.groupLevel++}},{key:"endSMaskGroup",value:function(){var L=this.ctx;this.groupLevel--,this.ctx=this.groupStack.pop(),j(this.ctx,this.current.activeSMask,L),this.ctx.restore(),f(L,this.ctx);var F=l.Util.transform(this.current.activeSMask.startTransformInverse,L.mozCurrentTransform);this.ctx.transform.apply(this.ctx,F)}},{key:"save",value:function(){this.ctx.save();var L=this.current;this.stateStack.push(L),this.current=L.clone(),this.current.resumeSMaskCtx=null}},{key:"restore",value: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}},{key:"transform",value:function(L,F,Z,re,ue,ve){this.ctx.transform(L,F,Z,re,ue,ve),this._cachedGetSinglePixelWidth=null}},{key:"constructPath",value:function(L,F){for(var Z=this.ctx,re=this.current,ue=re.x,ve=re.y,ke=0,Ie=0,Oe=L.length;ke<Oe;ke++)switch(0|L[ke]){case l.OPS.rectangle:ue=F[Ie++],ve=F[Ie++];var Ee=F[Ie++],Ve=F[Ie++],le=ue+Ee,pe=ve+Ve;Z.moveTo(ue,ve),0===Ee||0===Ve?Z.lineTo(le,pe):(Z.lineTo(le,ve),Z.lineTo(le,pe),Z.lineTo(ue,pe)),Z.closePath();break;case l.OPS.moveTo:ue=F[Ie++],ve=F[Ie++],Z.moveTo(ue,ve);break;case l.OPS.lineTo:ue=F[Ie++],ve=F[Ie++],Z.lineTo(ue,ve);break;case l.OPS.curveTo:Z.bezierCurveTo(F[Ie],F[Ie+1],F[Ie+2],F[Ie+3],ue=F[Ie+4],ve=F[Ie+5]),Ie+=6;break;case l.OPS.curveTo2:Z.bezierCurveTo(ue,ve,F[Ie],F[Ie+1],F[Ie+2],F[Ie+3]),ue=F[Ie+2],ve=F[Ie+3],Ie+=4;break;case l.OPS.curveTo3:Z.bezierCurveTo(F[Ie],F[Ie+1],ue=F[Ie+2],ve=F[Ie+3],ue,ve),Ie+=4;break;case l.OPS.closePath:Z.closePath()}re.setCurrentPoint(ue,ve)}},{key:"closePath",value:function(){this.ctx.closePath()}},{key:"stroke",value:function(L){L=void 0===L||L;var F=this.ctx,Z=this.current.strokeColor;if(F.globalAlpha=this.current.strokeAlpha,this.contentVisible)if("object"===Y(Z)&&null!=Z&&Z.getPattern){var re=this.getSinglePixelWidth();F.save(),F.strokeStyle=Z.getPattern(F,this,F.mozCurrentTransformInverse),F.lineWidth=Math.max(re,this.current.lineWidth),F.stroke(),F.restore(
1)}else{var ue=this.getSinglePixelWidth();ue<0&&-ue>=this.current.lineWidth?(F.save(),F.resetTransform(),F.lineWidth=Math.round(this._combinedScaleFactor),F.stroke(),F.restore()):(F.lineWidth=Math.max(ue,this.current.lineWidth),F.stroke())}L&&this.consumePath(),F.globalAlpha=this.current.fillAlpha}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"fill",value:function(L){L=void 0===L||L;var F=this.ctx,Z=this.current.fillColor,ue=!1;this.current.patternFill&&(F.save(),F.fillStyle=Z.getPattern(F,this,F.mozCurrentTransformInverse),ue=!0),this.contentVisible&&(this.pendingEOFill?(F.fill("evenodd"),this.pendingEOFill=!1):F.fill()),ue&&F.restore(),L&&this.consumePath()}},{key:"eoFill",value:function(){this.pendingEOFill=!0,this.fill()}},{key:"fillStroke",value:function(){this.fill(!1),this.stroke(!1),this.consumePath()}},{key:"eoFillStroke",value:function(){this.pendingEOFill=!0,this.fillStroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}},{key:"endPath",value:function(){this.consumePath()}},{key:"clip",value:function(){this.pendingClip=de}},{key:"eoClip",value:function(){this.pendingClip=he}},{key:"beginText",value:function(){this.current.textMatrix=l.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"endText",value:function(){var L=this.pendingTextPaths,F=this.ctx;if(void 0!==L){F.save(),F.beginPath();for(var Z=0;Z<L.length;Z++){var re=L[Z];F.setTransform.apply(F,re.transform),F.translate(re.x,re.y),re.addToPath(F,re.fontSize)}F.restore(),F.clip(),F.beginPath(),delete this.pendingTextPaths}else F.beginPath()}},{key:"setCharSpacing",value:function(L){this.current.charSpacing=L}},{key:"setWordSpacing",value:function(L){this.current.wordSpacing=L}},{key:"setHScale",value:function(L){this.current.textHScale=L/100}},{key:"setLeading",value:function(L){this.current.leading=-L}},{key:"setFont",value:function(L,F){var Z=this.commonObjs.get(L),re=this.current;if(!Z)throw new Error("Can't find font for ".concat(L));if(re.fontMatrix=Z.fontMatrix||l.FONT_IDENTITY_MATRIX,(0===re.fontMatrix[0]||0===re.fontMatrix[3])&&(0,l.warn)("Invalid font matrix for font "+L),F<0?(F=-F,re.fontDirection=-1):re.fontDirection=1,this.current.font=Z,this.current.fontSize=F,!Z.isType3Font){var ve="normal";Z.black?ve="900":Z.bold&&(ve="bold");var ke=Z.italic?"italic":"normal",Ie='"'.concat(Z.loadedName||"sans-serif",'", ').concat(Z.fallbackName),Oe=F;F<16?Oe=16:F>100&&(Oe=100),this.current.fontSizeScale=F/Oe,this.ctx.font="".concat(ke," ").concat(ve," ").concat(Oe,"px ").concat(Ie)}}},{key:"setTextRenderingMode",value:function(L){this.current.textRenderingMode=L}},{key:"setTextRise",value:function(L){this.current.textRise=L}},{key:"moveText",value:function(L,F){this.current.x=this.current.lineX+=L,this.current.y=this.current.lineY+=F}},{key:"setLeadingMoveText",value:function(L,F){this.setLeading(-F),this.moveText(L,F)}},{key:"setTextMatrix",value:function(L,F,Z,re,ue,ve){this.current.textMatrix=[L,F,Z,re,ue,ve],this.current.textMatrixScale=Math.hypot(L,F),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"paintChar",value:function(L,F,Z,re,ue){var ne,ve=this.ctx,ke=this.current,Ie=ke.font,Oe=ke.textRenderingMode,Ee=ke.fontSize/ke.fontSizeScale,Ve=Oe&l.TextRenderingMode.FILL_STROKE_MASK,le=!!(Oe&l.TextRenderingMode.ADD_TO_PATH_FLAG),pe=ke.patternFill&&!Ie.missingFile;(Ie.disableFontFace||le||pe)&&(ne=Ie.getPathGenerator(this.commonObjs,L)),Ie.disableFontFace||pe?(ve.save(),ve.translate(F,Z),ve.beginPath(),ne(ve,Ee),re&&ve.setTransform.apply(ve,re),(Ve===l.TextRenderingMode.FILL||Ve===l.TextRenderingMode.FILL_STROKE)&&ve.fill(),(Ve===l.TextRenderingMode.STROKE||Ve===l.TextRenderingMode.FILL_STROKE)&&(ue&&(ve.resetTransform(),ve.lineWidth=Math.round(this._combinedScaleFactor)),ve.stroke()),ve.restore()):((Ve===l.TextRenderingMode.FILL||Ve===l.TextRenderingMode.FILL_STROKE)&&ve.fillText(L,F,Z),(Ve===l.TextRenderingMode.STROKE||Ve===l.TextRenderingMode.FILL_STROKE)&&(ue?(ve.save(),ve.moveTo(F,Z),ve.resetTransform(),ve.lineWidth=Math.round(this._combinedScaleFactor),ve.strokeText(L,
10,0),ve.restore()):ve.strokeText(L,F,Z))),le&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:ve.mozCurrentTransform,x:F,y:Z,fontSize:Ee,addToPath:ne})}},{key:"isFontSubpixelAAEnabled",get:function(){var F=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;F.scale(1.5,1),F.fillText("I",0,10);for(var Z=F.getImageData(0,0,10,10).data,re=!1,ue=3;ue<Z.length;ue+=4)if(Z[ue]>0&&Z[ue]<255){re=!0;break}return(0,l.shadow)(this,"isFontSubpixelAAEnabled",re)}},{key:"showText",value:function(L){var F=this.current,Z=F.font;if(Z.isType3Font)return this.showType3Text(L);var re=F.fontSize;if(0!==re){var fe,ue=this.ctx,ve=F.fontSizeScale,ke=F.charSpacing,Ie=F.wordSpacing,Oe=F.fontDirection,Ee=F.textHScale*Oe,Ve=L.length,le=Z.vertical,pe=le?1:-1,ne=Z.defaultVMetrics,ce=re*F.fontMatrix[0],ie=F.textRenderingMode===l.TextRenderingMode.FILL&&!Z.disableFontFace&&!F.patternFill;if(ue.save(),F.patternFill){ue.save();var Se=F.fillColor.getPattern(ue,this,ue.mozCurrentTransformInverse);fe=ue.mozCurrentTransform,ue.restore(),ue.fillStyle=Se}ue.transform.apply(ue,F.textMatrix),ue.translate(F.x,F.y+F.textRise),ue.scale(Ee,Oe>0?-1:1);var Te=F.lineWidth,Re=!1,me=F.textMatrixScale;if(0===me||0===Te){var Ne=F.textRenderingMode&l.TextRenderingMode.FILL_STROKE_MASK;(Ne===l.TextRenderingMode.STROKE||Ne===l.TextRenderingMode.FILL_STROKE)&&(this._cachedGetSinglePixelWidth=null,Re=(Te=this.getSinglePixelWidth())<0)}else Te/=me;1!==ve&&(ue.scale(ve,ve),Te/=ve),ue.lineWidth=Te;var we,se=0;for(we=0;we<Ve;++we){var _e=L[we];if((0,l.isNum)(_e))se+=pe*_e*re/1e3;else{var Pe=!1,ze=(_e.isSpace?Ie:0)+ke,Le=_e.fontChar,Ue=_e.accent,Ye=void 0,je=void 0,Xe=_e.width;if(le){var Ze=_e.vmetric||ne,ot=-(_e.vmetric?Ze[1]:.5*Xe)*ce;Xe=Ze?-Ze[0]:Xe,Ye=ot/ve,je=(se+Ze[2]*ce)/ve}else Ye=se/ve,je=0;if(Z.remeasure&&Xe>0){var ht=1e3*ue.measureText(Le).width/re*ve;if(Xe<ht&&this.isFontSubpixelAAEnabled){var _t=Xe/ht;Pe=!0,ue.save(),ue.scale(_t,1),Ye/=_t}else Xe!==ht&&(Ye+=(Xe-ht)/2e3*re/ve)}this.contentVisible&&(_e.isInFont||Z.missingFile)&&(ie&&!Ue?ue.fillText(Le,Ye,je):(this.paintChar(Le,Ye,je,fe,Re),Ue&&this.paintChar(Ue.fontChar,Ye+re*Ue.offset.x/ve,je-re*Ue.offset.y/ve,fe,Re))),se+=le?Xe*ce-ze*Oe:Xe*ce+ze*Oe,Pe&&ue.restore()}}le?F.y-=se:F.x+=se*Ee,ue.restore()}}},{key:"showType3Text",value:function(L){var ne,ce,ie,fe,F=this.ctx,Z=this.current,re=Z.font,ue=Z.fontSize,ve=Z.fontDirection,ke=re.vertical?1:-1,Ie=Z.charSpacing,Oe=Z.wordSpacing,Ee=Z.textHScale*ve,Ve=Z.fontMatrix||l.FONT_IDENTITY_MATRIX,le=L.length;if(Z.textRenderingMode!==l.TextRenderingMode.INVISIBLE&&0!==ue){for(this._cachedGetSinglePixelWidth=null,F.save(),F.transform.apply(F,Z.textMatrix),F.translate(Z.x,Z.y),F.scale(Ee,ve),ne=0;ne<le;++ne)if((0,l.isNum)(ce=L[ne]))this.ctx.translate(fe=ke*ce*ue/1e3,0),Z.x+=fe*Ee;else{var Se=(ce.isSpace?Oe:0)+Ie,Te=re.charProcOperatorList[ce.operatorListId];if(Te){this.contentVisible&&(this.processingType3=ce,this.save(),F.scale(ue,ue),F.transform.apply(F,Ve),this.executeOperatorList(Te),this.restore());var Re=l.Util.applyTransform([ce.width,0],Ve);F.translate(ie=Re[0]*ue+Se,0),Z.x+=ie*Ee}else(0,l.warn)('Type3 character "'.concat(ce.operatorListId,'" is not available.'))}F.restore(),this.processingType3=null}}},{key:"setCharWidth",value:function(L,F){}},{key:"setCharWidthAndBounds",value:function(L,F,Z,re,ue,ve){this.ctx.rect(Z,re,ue-Z,ve-re),this.clip(),this.endPath()}},{key:"getColorN_Pattern",value:function(L){var Z,F=this;if("TilingPattern"===L[0]){var re=L[1],ue=this.baseTransform||this.ctx.mozCurrentTransform.slice();Z=new M.TilingPattern(L,re,this.ctx,{createCanvasGraphics:function(Ie){return new q(Ie,F.commonObjs,F.objs,F.canvasFactory)}},ue)}else Z=this._getPattern(L[1],L[2]);return Z}},{key:"setStrokeColorN",value:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)}},{key:"setFillColorN",value:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}},{key:"setStrokeRGBColor",value:function(L,F,Z){var re=l.Util.makeHexColor(L,F,Z);this.ctx.strokeStyle=re,this.current.strokeColor=re}},{key:"setFillRGBColor",value:function(L,F,Z){var re=l.Util.makeHexColor(L,F,Z);this.ctx.fillStyle=re,this.current.fillColor=re,this.current.patternFill=!1}},{key:"_getPattern",value:function(L){var Z,F=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.cachedPatterns.has(L)?Z=this.cachedPatterns.get(L):(Z=(0,M.getShadingPattern)(this.objs.get(L),this.cachedCanvasPatterns),this.cachedPatterns.set(L,Z)),F&&(Z.matrix=F),Z}},{key:"shadingFill",value:function(L){if(this.contentVisible){var F=this.ctx;this.save();var Z=this._getPattern(L);F.fillStyle=Z.getPattern(F,this,F.mozCurrentTransformInverse,!0);var re=F.mozCurrentTransformInverse;if(re){var ue=F.canvas,ve=ue.width,ke=ue.height,Ie=l.Util.applyTransform([0,0],re),Oe=l.Util.applyTransform([0,ke],re),Ee=l.Util.applyTransform([ve,0],re),Ve=l.Util.applyTransform([ve,ke],re),le=Math.min(Ie[0],Oe[0],Ee[0],Ve[0]),pe=Math.min(Ie[1],Oe[1],Ee[1],Ve[1]),ne=Math.max(Ie[0],Oe[0],Ee[0],Ve[0]),ce=Math.max(Ie[1],Oe[1],Ee[1],Ve[1]);this.ctx.fillRect(le,pe,ne-le,ce-pe)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);
1this.restore()}}},{key:"beginInlineImage",value:function(){(0,l.unreachable)("Should not call beginInlineImage")}},{key:"beginImageData",value:function(){(0,l.unreachable)("Should not call beginImageData")}},{key:"paintFormXObjectBegin",value:function(L,F){this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(L)&&6===L.length&&this.transform.apply(this,L),this.baseTransform=this.ctx.mozCurrentTransform,F)&&(this.ctx.rect(F[0],F[1],F[2]-F[0],F[3]-F[1]),this.clip(),this.endPath())}},{key:"paintFormXObjectEnd",value:function(){!this.contentVisible||(this.restore(),this.baseTransform=this.baseTransformStack.pop())}},{key:"beginGroup",value:function(L){if(this.contentVisible){this.save();var F=this.ctx;L.isolated||(0,l.info)("TODO: Support non-isolated groups."),L.knockout&&(0,l.warn)("Knockout groups not supported.");var Z=F.mozCurrentTransform;if(L.matrix&&F.transform.apply(F,L.matrix),!L.bbox)throw new Error("Bounding box is required.");var re=l.Util.getAxialAlignedBoundingBox(L.bbox,F.mozCurrentTransform);re=l.Util.intersect(re,[0,0,F.canvas.width,F.canvas.height])||[0,0,0,0];var ve=Math.floor(re[0]),ke=Math.floor(re[1]),Ie=Math.max(Math.ceil(re[2])-ve,1),Oe=Math.max(Math.ceil(re[3])-ke,1),Ee=1,Ve=1;Ie>g&&(Ee=Ie/g,Ie=g),Oe>g&&(Ve=Oe/g,Oe=g);var le="groupAt"+this.groupLevel;L.smask&&(le+="_smask_"+this.smaskCounter++%2);var pe=this.cachedCanvases.getCanvas(le,Ie,Oe,!0),ne=pe.context;ne.scale(1/Ee,1/Ve),ne.translate(-ve,-ke),ne.transform.apply(ne,Z),L.smask?this.smaskStack.push({canvas:pe.canvas,context:ne,offsetX:ve,offsetY:ke,scaleX:Ee,scaleY:Ve,subtype:L.smask.subtype,backdrop:L.smask.backdrop,transferMap:L.smask.transferMap||null,startTransformInverse:null}):(F.setTransform(1,0,0,1,0,0),F.translate(ve,ke),F.scale(Ee,Ve)),f(F,ne),this.ctx=ne,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(F),this.groupLevel++,this.current.activeSMask=null}}},{key:"endGroup",value:function(L){if(this.contentVisible){this.groupLevel--;var F=this.ctx;this.ctx=this.groupStack.pop(),this.ctx.imageSmoothingEnabled=!1,L.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(F.canvas,0,0),this.restore()}}},{key:"beginAnnotations",value:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)}},{key:"endAnnotations",value:function(){this.restore()}},{key:"beginAnnotation",value:function(L,F,Z,re){this.save(),h(this.ctx),this.current=new E,Array.isArray(F)&&4===F.length&&(this.ctx.rect(F[0],F[1],F[2]-F[0],F[3]-F[1]),this.clip(),this.endPath()),this.transform.apply(this,Z),this.transform.apply(this,re)}},{key:"endAnnotation",value:function(){this.restore()}},{key:"paintImageMaskXObject",value:function(L){if(this.contentVisible){var F=this.ctx,Z=L.width,re=L.height,ue=this.processingType3;if(ue&&void 0===ue.compiled&&(ue.compiled=Z<=1e3&&re<=1e3?function P(q){var ue,ve,ke,Ie,L=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),F=q.width,Z=q.height,re=F+1,Oe=new Uint8Array(re*(Z+1)),Ee=F+7&-8,Ve=q.data,le=new Uint8Array(Ee*Z),pe=0;for(ue=0,ve=Ve.length;ue<ve;ue++)for(var ne=Ve[ue],ce=128;ce>0;)le[pe++]=ne&ce?0:255,ce>>=1;var ie=0;for(0!==le[pe=0]&&(Oe[0]=1,++ie),ke=1;ke<F;ke++)le[pe]!==le[pe+1]&&(Oe[ke]=le[pe]?2:1,++ie),pe++;for(0!==le[pe]&&(Oe[ke]=2,++ie),ue=1;ue<Z;ue++){Ie=ue*re,le[(pe=ue*Ee)-Ee]!==le[pe]&&(Oe[Ie]=le[pe]?1:8,++ie);var fe=(le[pe]?4:0)+(le[pe-Ee]?8:0);for(ke=1;ke<F;ke++)L[fe=(fe>>2)+(le[pe+1]?4:0)+(le[pe-Ee+1]?8:0)]&&(Oe[Ie+ke]=L[fe],++ie),pe++;if(le[pe-Ee]!==le[pe]&&(Oe[Ie+ke]=le[pe]?2:4,++ie),ie>1e3)return null}for(Ie=ue*re,0!==le[pe=Ee*(Z-1)]&&(Oe[Ie]=8,++ie),ke=1;ke<F;ke++)le[pe]!==le[pe+1]&&(Oe[Ie+ke]=le[pe]?4:8,++ie),pe++;if(0!==le[pe]&&(Oe[Ie+ke]=4,++ie),ie>1e3)return null;var Se=new Int32Array([0,re,-1,0,-re,0,0,0,1]),Te=[];for(ue=0;ie&&ue<=Z;ue++){for(var Re=ue*re,me=Re+F;Re<me&&!Oe[Re];)Re++;if(Re!==me){var Ne=[Re%re,ue],se=Re,we=Oe[Re];do{var _e=Se[we];do{Re+=_e}while(!Oe[Re]);var Pe=Oe[Re];5!==Pe&&10!==Pe?(we=Pe,Oe[Re]=0):Oe[Re]&=(we=Pe&51*we>>4)>>2|we<<2,Ne.push(Re%re,Re/re|0),Oe[Re]||--ie}while(se!==Re);Te.push(Ne),--ue}}return function(Ue){Ue.save(),Ue.scale(1/F,-1/Z),Ue.translate(0,-Z),Ue.beginPath();for(var Ye=0,je=Te.length;Ye<je;Ye++){var Xe=Te[Ye];Ue.moveTo(Xe[0],Xe[1]);for(var Ze=2,ot=Xe.length;Ze<ot;Ze+=2)Ue.lineTo(Xe[Ze],Xe[Ze+1])}
1Ue.fill(),Ue.beginPath(),Ue.restore()}}({data:L.data,width:Z,height:re}):null),null!=ue&&ue.compiled)return void ue.compiled(F);var ve=this._createMaskCanvas(L),ke=ve.canvas;F.save(),F.setTransform(1,0,0,1,0,0),F.drawImage(ke,ve.offsetX,ve.offsetY),F.restore()}}},{key:"paintImageMaskXObjectRepeat",value:function(L,F){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,re=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,ue=arguments.length>4?arguments[4]:void 0,ve=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){var ke=this.ctx;ke.save();var Ie=ke.mozCurrentTransform;ke.transform(F,Z,re,ue,0,0);var Oe=this._createMaskCanvas(L);ke.setTransform(1,0,0,1,0,0);for(var Ee=0,Ve=ve.length;Ee<Ve;Ee+=2){var le=l.Util.transform(Ie,[F,Z,re,ue,ve[Ee],ve[Ee+1]]),pe=l.Util.applyTransform([0,0],le),ne=R(pe,2),ce=ne[0],ie=ne[1];ke.drawImage(Oe.canvas,ce,ie)}ke.restore()}}},{key:"paintImageMaskXObjectGroup",value:function(L){if(this.contentVisible)for(var F=this.ctx,Z=this.current.fillColor,re=this.current.patternFill,ue=0,ve=L.length;ue<ve;ue++){var ke=L[ue],Ie=ke.width,Oe=ke.height,Ee=this.cachedCanvases.getCanvas("maskCanvas",Ie,Oe),Ve=Ee.context;Ve.save(),y(Ve,ke),Ve.globalCompositeOperation="source-in",Ve.fillStyle=re?Z.getPattern(Ve,this,F.mozCurrentTransformInverse,!1):Z,Ve.fillRect(0,0,Ie,Oe),Ve.restore(),F.save(),F.transform.apply(F,ke.transform),F.scale(1,-1),F.drawImage(Ee.canvas,0,0,Ie,Oe,0,-1,1,1),F.restore(
1)}}},{key:"paintImageXObject",value:function(L){if(this.contentVisible){var F=L.startsWith("g_")?this.commonObjs.get(L):this.objs.get(L);if(!F)return void(0,l.warn)("Dependent image isn't ready yet");this.paintInlineImageXObject(F)}}},{key:"paintImageXObjectRepeat",value:function(L,F,Z,re){if(this.contentVisible){var ue=L.startsWith("g_")?this.commonObjs.get(L):this.objs.get(L);if(!ue)return void(0,l.warn)("Dependent image isn't ready yet");for(var ve=ue.width,ke=ue.height,Ie=[],Oe=0,Ee=re.length;Oe<Ee;Oe+=2)Ie.push({transform:[F,0,0,Z,re[Oe],re[Oe+1]],x:0,y:0,w:ve,h:ke});this.paintInlineImageXObjectGroup(ue,Ie)}}},{key:"paintInlineImageXObject",value:function(L){if(this.contentVisible){var ue,F=L.width,Z=L.height,re=this.ctx;if(this.save(),re.scale(1/F,-1/Z),"function"==typeof HTMLElement&&L instanceof HTMLElement||!L.data)ue=L;else{var ve=this.cachedCanvases.getCanvas("inlineImage",F,Z);x(ve.context,L,this.current.transferMaps),ue=ve.canvas}var Ie=this._scaleImage(ue,re.mozCurrentTransformInverse);if(re.imageSmoothingEnabled=te(re.mozCurrentTransform,L.interpolate),re.drawImage(Ie.img,0,0,Ie.paintWidth,Ie.paintHeight,0,-Z,F,Z),this.imageLayer){var Oe=this.getCanvasPosition(0,-Z);this.imageLayer.appendImage({imgData:L,left:Oe[0],top:Oe[1],width:F/re.mozCurrentTransformInverse[0],height:Z/re.mozCurrentTransformInverse[3]})}this.restore()}}},{key:"paintInlineImageXObjectGroup",value:function(L,F){if(this.contentVisible){var Z=this.ctx,re=L.width,ue=L.height,ve=this.cachedCanvases.getCanvas("inlineImage",re,ue);x(ve.context,L,this.current.transferMaps);for(var Ie=0,Oe=F.length;Ie<Oe;Ie++){var Ee=F[Ie];if(Z.save(),Z.transform.apply(Z,Ee.transform),Z.scale(1,-1),Z.drawImage(ve.canvas,Ee.x,Ee.y,Ee.w,Ee.h,0,-1,1,1),this.imageLayer){var Ve=this.getCanvasPosition(Ee.x,Ee.y);this.imageLayer.appendImage({imgData:L,left:Ve[0],top:Ve[1],width:re,height:ue})}Z.restore()}}}},{key:"paintSolidColorImageMask",value:function(){!this.contentVisible||this.ctx.fillRect(0,0,1,1)}},{key:"markPoint",value:function(L){}},{key:"markPointProps",value:function(L,F){}},{key:"beginMarkedContent",value:function(L){this.markedContentStack.push({visible:!0})}},{key:"beginMarkedContentProps",value:function(L,F){this.markedContentStack.push("OC"===L?{visible:this.optionalContentConfig.isVisible(F)}:{visible:!0}),this.contentVisible=this.isContentVisible()}},{key:"endMarkedContent",value:function(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}},{key:"beginCompat",value:function(){}},{key:"endCompat",value:function(){}},{key:"consumePath",value:function(){var L=this.ctx;this.pendingClip&&(this.pendingClip===he?L.clip("evenodd"):L.clip(),this.pendingClip=null),L.beginPath()}},{key:"getSinglePixelWidth",value:function(){if(null===this._cachedGetSinglePixelWidth){var L=this.ctx.mozCurrentTransform,F=Math.abs(L[0]*L[3]-L[2]*L[1]),Z=Math.pow(L[0],2)+Math.pow(L[2],2),re=Math.pow(L[1],2)+Math.pow(L[3],2),ue=Math.sqrt(Math.max(Z,re))/F;this._cachedGetSinglePixelWidth=Z!==re&&this._combinedScaleFactor*ue>1?-this._combinedScaleFactor*ue:F>Number.EPSILON?ue:1}return this._cachedGetSinglePixelWidth}},{key:"getCanvasPosition",value:function(L,F){var Z=this.ctx.mozCurrentTransform;return[Z[0]*L+Z[2]*F+Z[4],Z[1]*L+Z[3]*F+Z[5]]}},{key:"isContentVisible",value:function(){for(var L=this.markedContentStack.length-1;L>=0;L--)if(!this.markedContentStack[L].visible)return!1;return!0}}]),q}();for(var oe in I.CanvasGraphics=be,l.OPS)void 0!==be.prototype[oe]&&(be.prototype[l.OPS[oe]]=be.prototype[oe])},(K,I,s)=>{"use strict";function l(_){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(P){return typeof P}:function(P){return P&&"function"==typeof Symbol&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(_)}Object.defineProperty(I,"__esModule",{value:!0}),I.getShadingPattern=function c(_,k){switch(_[0]){case"RadialAxial":return new p(_,k);case"Mesh":return new b(_);case"Dummy":return new m}throw new Error("Unknown IR type: ".concat(_[0]))},I.TilingPattern=void 0;var M=s(4);function N(_,k){var P="undefined"!=typeof Symbol&&_[Symbol.iterator]||_["@@iterator"];if(!P){if(Array.isArray(_)||(P=function Y(_,k){if(_){if("string"==typeof _)return U(_,k);var P=Object.prototype.toString.call(_).slice(8,-1);if("Object"===P&&_.constructor&&(P=_.constructor.name),"Map"===P||"Set"===P)return Array.from(_);if("Arguments"===P||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return U(_,k)}}(_))||k&&_&&"number"==typeof _.length){P&&(_=P);var E=0,x=function(){};return{s:x,n:function(){return E>=_.length?{done:!0}:{done:!1,value:_[E++]}},e:function(d){throw d},f:x}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h,y=!0,f=!1;return{s:function(){P=P.call(_)},n:function(){var d=P.next();return y=d.done,d},e:function(d){f=!0,h=d},f:function(){try{!y&&null!=P.return&&P.return()}finally{if(f)throw h}}}}function U(_,k){(null==k||k>_.length)&&(k=_.length);for(var P=0,E=new Array(k);P<k;P++)E[P]=_[P];return E}function e(_,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(k&&k.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),k&&V(_,k)}
vendor: 5,473 bytes, line 1
1function V(_,k){return(V=Object.setPrototypeOf||function(E,x){return E.__proto__=x,E})(_,k)}function H(_){var k=function $(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(_){return!1}}();return function(){var x,E=X(_);if(k){var y=X(this).constructor;x=Reflect.construct(E,arguments,y)}else x=E.apply(this,arguments);return R(this,x)}}function R(_,k){if(k&&("object"===l(k)||"function"==typeof k))return k;if(void 0!==k)throw new TypeError("Derived constructors may only return object or undefined");return function Q(_){if(void 0===_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}(_)}function X(_){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)})(_)}function B(_,k){if(!(_ instanceof k))throw new TypeError("Cannot call a class as a function")}function z(_,k){for(var P=0;P<k.length;P++){var E=k[P];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(_,E.key,E)}}function W(_,k,P){return k&&z(_.prototype,k),P&&z(_,P),_}function D(_,k){if(k&&"undefined"!=typeof Path2D){var P=k[2]-k[0],E=k[3]-k[1],x=new Path2D;x.rect(k[0],k[1],P,E),_.clip(x)}}var g=function(){function _(){B(this,_),this.constructor===_&&(0,M.unreachable)("Cannot initialize BaseShadingPattern.")}return W(_,[{key:"getPattern",value:function(){(0,M.unreachable)("Abstract method `getPattern` called.")}}]),_}(),p=function(_){e(P,_);var k=H(P);function P(E,x){var y;return B(this,P),(y=k.call(this))._type=E[1],y._bbox=E[2],y._colorStops=E[3],y._p0=E[4],y._p1=E[5],y._r0=E[6],y._r1=E[7],y.matrix=null,y.cachedCanvasPatterns=x,y}return W(P,[{key:"_createGradient",value:function(x){var y;"axial"===this._type?y=x.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(y=x.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));var h,f=N(this._colorStops);try{for(f.s();!(h=f.n()).done;){var v=h.value;y.addColorStop(v[0],v[1])}}catch(d){f.e(d)}finally{f.f()}return y}},{key:"getPattern",value:function(x,y,f){var v,h=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(h)D(x,this._bbox),v=this._createGradient(x);else if(this.cachedCanvasPatterns.has(this))v=this.cachedCanvasPatterns.get(this);else{var d=y.cachedCanvases.getCanvas("pattern",y.ctx.canvas.width,y.ctx.canvas.height,!0),S=d.context;S.clearRect(0,0,S.canvas.width,S.canvas.height),S.beginPath(),S.rect(0,0,S.canvas.width,S.canvas.height),S.setTransform.apply(S,y.baseTransform),this.matrix&&S.transform.apply(S,this.matrix),D(S,this._bbox),S.fillStyle=this._createGradient(S),S.fill(),v=x.createPattern(d.canvas,"repeat"),this.cachedCanvasPatterns.set(this,v)}if(!h){var w=new DOMMatrix(f);try{v.setTransform(w)}catch(j){(0,M.warn)('RadialAxialShadingPattern.getPattern: "'.concat(null==j?void 0:j.message,'".'))}}return v}}]),P}(g);function o(_,k,P,E,x,y,f,h){var j,v=k.coords,d=k.colors,S=_.data,w=4*_.width;v[P+1]>v[E+1]&&(j=P,P=E,E=j,j=y,y=f,f=j),v[E+1]>v[x+1]&&(j=E,E=x,x=j,j=f,f=h,h=j),v[P+1]>v[E+1]&&(j=P,P=E,E=j,j=y,y=f,f=j);var te=(v[P]+k.offsetX)*k.scaleX,J=(v[P+1]+k.offsetY)*k.scaleY,ge=(v[E]+k.offsetX)*k.scaleX,de=(v[E+1]+k.offsetY)*k.scaleY,he=(v[x]+k.offsetX)*k.scaleX,be=(v[x+1]+k.offsetY)*k.scaleY;if(!(J>=be))for(var Oe,Ee,Ve,le,pe,ne,ce,ie,oe=d[y],q=d[y+1],G=d[y+2],L=d[f],F=d[f+1],Z=d[f+2],re=d[h],ue=d[h+1],ve=d[h+2],ke=Math.round(J),Ie=Math.round(be),fe=ke;fe<=Ie;fe++){if(fe<de){var Se;Oe=te-(te-ge)*(Se=fe<J?0:(J-fe)/(J-de)),Ee=oe-(oe-L)*Se,Ve=q-(q-F)*Se,le=G-(G-Z)*Se}else{var Te;Oe=ge-(ge-he)*(Te=fe>be?1:de===be?0:(de-fe)/(de-be)),Ee=L-(L-re)*Te,Ve=F-(F-ue)*Te,le=Z-(Z-ve)*Te}var Re=void 0;pe=te-(te-he)*(Re=fe<J?0:fe>be?1:(J-fe)/(J-be)),ne=oe-(oe-re)*Re,ce=q-(q-ue)*Re,ie=G-(G-ve)*Re;for(var me=Math.round(Math.min(Oe,pe)),Ne=Math.round(Math.max(Oe,pe)),se=w*fe+4*me,we=me;we<=Ne;we++)(Re=(Oe-we)/(Oe-pe))<0?Re=0:Re>1&&(Re=1),S[se++]=Ee-(Ee-ne)*Re|0,S[se++]=Ve-(Ve-ce)*Re|0,S[se++]=le-(le-ie)*Re|0,S[se++]=255}}function u(_,k,P){var y,f,E=k.coords,x=k.colors;switch(k.type){case"lattice":var h=k.verticesPerRow,v=Math.floor(E.length/h)-1,d=h-1;for(y=0;y<v;y++)for(var S=y*h,w=0;w<d;w++,S++)o(_,P,E[S],E[S+1],E[S+h],x[S],x[S+1],x[S+h]),o(_,P,E[S+h+1],E[S+1],E[S+h],x[S+h+1],x[S+1],x[S+h]);break;case"triangles":for(y=0,f=E.length;y<f;y+=3)o(_,P,E[y],E[y+1],E[y+2],x[y],x[y+1],x[y+2]);break;default:throw new Error("illegal figure")}}var b=function(_){e(P,_);var k=H(P);function P(E){var x;return B(this,P),(x=k.call(this))._coords=E[2],x._colors=E[3],x._figures=E[4],x._bounds=E[5],x._bbox=E[7],x._background=E[8],x.matrix=null,x}return W(P,[{key:"_createMeshCanvas",value:function(x,y,f){var S=Math.floor(this._bounds[0]),w=Math.floor(this._bounds[1]),j=Math.ceil(this._bounds[2])-S,te=Math.ceil(this._bounds[3])-w,J=Math.min(Math.ceil(Math.abs(j*x[0]*1.1)),3e3),ge=Math.min(Math.ceil(Math.abs(te*x[1]*1.1)),3e3),de=j/J,he=te/ge,be={coords:this._coords,colors:this._colors,offsetX:-S,offsetY:-w,scaleX:1/de,scaleY:1/he},G=f.getCanvas("mesh",J+4,ge+4,!1),L=G.context,F=L.createImageData(J,ge);if(y)for(var Z=F.data,re=0,ue=Z.length;re<ue;re+=4)Z[re]=y[0],Z[re+1]=y[1],Z[re+2]=y[2],Z[re+3]=255;var ke,ve=N(this._figures);try{for(ve.s();!(ke=ve.n()).done;)u(F,ke.value,be)}catch(Ee){ve.e(Ee)}finally{ve.f()}
1return L.putImageData(F,2,2),{canvas:G.canvas,offsetX:S-2*de,offsetY:w-2*he,scaleX:de,scaleY:he}}},{key:"getPattern",value:function(x,y,f){var v,h=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(D(x,this._bbox),h)v=M.Util.singularValueDecompose2dScale(x.mozCurrentTransform);else if(v=M.Util.singularValueDecompose2dScale(y.baseTransform),this.matrix){var d=M.Util.singularValueDecompose2dScale(this.matrix);v=[v[0]*d[0],v[1]*d[1]]}var S=this._createMeshCanvas(v,h?null:this._background,y.cachedCanvases);return h||(x.setTransform.apply(x,y.baseTransform),this.matrix&&x.transform.apply(x,this.matrix)),x.translate(S.offsetX,S.offsetY),x.scale(S.scaleX,S.scaleY),x.createPattern(S.canvas,"no-repeat")}}]),P}(g),m=function(_){e(P,_);var k=H(P);function P(){return B(this,P),k.apply(this,arguments)}return W(P,[{key:"getPattern",value:function(){return"hotpink"}}]),P}(g),O=function(){function _(k,P,E,x,y){B(this,_),this.operatorList=k[2],this.matrix=k[3]||[1,0,0,1,0,0],this.bbox=k[4],this.xstep=k[5],this.ystep=k[6],this.paintType=k[7],this.tilingType=k[8],this.color=P,this.ctx=E,this.canvasGraphicsFactory=x,this.baseTransform=y}return W(_,[{key:"createPatternCanvas",value:function(P){var E=this.operatorList,x=this.bbox,y=this.xstep,f=this.ystep,h=this.paintType,d=this.color,S=this.canvasGraphicsFactory;(0,M.info)("TilingType: "+this.tilingType);var w=x[0],j=x[1],te=x[2],J=x[3],ge=M.Util.singularValueDecompose2dScale(this.matrix),de=M.Util.singularValueDecompose2dScale(this.baseTransform),he=[ge[0]*de[0],ge[1]*de[1]],be=this.getSizeAndScale(y,this.ctx.canvas.width,he[0]),oe=this.getSizeAndScale(f,this.ctx.canvas.height,he[1]),q=P.cachedCanvases.getCanvas("pattern",be.size,oe.size,!0),G=q.context,L=S.createCanvasGraphics(G);L.groupLevel=P.groupLevel,this.setFillAndStrokeStyleToContext(L,h,d);var F=w,Z=j,re=te,ue=J;return w<0&&(F=0,re+=Math.abs(w)),j<0&&(Z=0,ue+=Math.abs(j)),G.translate(-be.scale*F,-oe.scale*Z),L.transform(be.scale,0,0,oe.scale,0,0),this.clipBbox(L,F,Z,re,ue),L.baseTransform=L.ctx.mozCurrentTransform.slice(),L.executeOperatorList(E),L.endDrawing(),{canvas:q.canvas,scaleX:be.scale,scaleY:oe.scale,offsetX:F,offsetY:Z}}},{key:"getSizeAndScale",value:function(P,E,x){P=Math.abs(P);var y=Math.max(_.MAX_PATTERN_SIZE,E),f=Math.ceil(P*x);return f>=y?f=y:x=f/P,{scale:x,size:f}}},{key:"clipBbox",value:function(P,E,x,y,f){P.ctx.rect(E,x,y-E,f-x),P.clip(),P.endPath()}},{key:"setFillAndStrokeStyleToContext",value:function(P,E,x){var y=P.ctx,f=P.current;switch(E){case 1:var h=this.ctx;y.fillStyle=h.fillStyle,y.strokeStyle=h.strokeStyle,f.fillColor=h.fillStyle,f.strokeColor=h.strokeStyle;break;case 2:var v=M.Util.makeHexColor(x[0],x[1],x[2]);y.fillStyle=v,y.strokeStyle=v,f.fillColor=v,f.strokeColor=v;break;default:throw new M.FormatError("Unsupported paint type: ".concat(E))}}},{key:"getPattern",value:function(P,E,x){var y=arguments.length>3&&void 0!==arguments[3]&&arguments[3],f=x;y||(f=M.Util.transform(f,E.baseTransform),this.matrix&&(f=M.Util.transform(f,this.matrix)));var h=this.createPatternCanvas(E),v=new DOMMatrix(f);v=(v=v.translate(h.offsetX,h.offsetY)).scale(1/h.scaleX,1/h.scaleY);var d=P.createPattern(h.canvas,"repeat");try{d.setTransform(v)}catch(S){(0,M.warn)('TilingPattern.getPattern: "'.concat(null==S?void 0:S.message,'".'))}return d}}],[{key:"MAX_PATTERN_SIZE",get:function(){return(0,M.shadow)(this,"MAX_PATTERN_SIZE",3e3)}}]),_}();I.TilingPattern=O},(K,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.GlobalWorkerOptions=void 0;var s=Object.create(null);I.GlobalWorkerOptions=s,s.workerPort=void 0===s.workerPort?null:s.workerPort,s.workerSrc=void 0===s.workerSrc?"":s.workerSrc},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.MessageHandler=void 0;var l=function N(z){return z&&z.__esModule?z:{default:z}}(s(2)),M=s(4);function Y(z,W,D,g,p,o,u){try{var b=z[o](u),m=b.value}catch(c){return void D(c)}b.done?W(m):Promise.resolve(m).then(g,p)}function V(z,W){for(var D=0;D<W.length;D++){var g=W[D];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(z,g.key,g)}}function R(z){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(D){return typeof D}:function(D){return D&&"function"==typeof Symbol&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D})(z)}function X(z){if(!(z instanceof Error||"object"===R(z)&&null!==z))return(0,M.warn)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),z;switch(z.name){case"AbortException":return new M.AbortException(z.message);case"MissingPDFException":return new M.MissingPDFException(z.message);case"PasswordException":return new M.PasswordException(z.message,z.code);case"UnexpectedResponseException":return new M.UnexpectedResponseException(z.message,z.status);case"UnknownErrorException":return new M.UnknownErrorException(z.message,z.details);default:return new M.UnknownErrorException(z.message,z.toString())}}var B=function(){function z(W,D,g){var p=this;(function e(z,W){if(!(z instanceof W))throw new TypeError("Cannot call a class as a function")})(this,z),this.sourceName=W,this.targetName=D,this.comObj=g,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=function(o){var u=o.data;if(u.targetName===p.sourceName){if(u.stream)return void p._processStreamMessage(u);if(u.callback){var b=u.callbackId,m=p.callbackCapabilities[b];if(!m)throw new Error("Cannot resolve callback ".concat(b));if(delete p.callbackCapabilities[b],1===u.callback)m.resolve(u.data);else{if(2!==u.callback)throw new Error("Unexpected callback case");m.reject(X(u.reason))}return}var c=p.actionHandler[u.action];if(!c)throw new Error("Unknown action from worker: ".concat(u.action));if(u.callbackId){var A=p.sourceName,O=u.sourceName;return void new Promise(function(_){_(c(u.data))}).then(function(_){g.postMessage({sourceName:A,targetName:O,callback:1,callbackId:u.callbackId,data:_})},function(_){g.postMessage({sourceName:A,targetName:O,callback:2,callbackId:u.callbackId,reason:X(_)})})}if(u.streamId)return void p._createStreamSink(u);c(u.data)}},g.addEventListener("message",this._onComObjOnMessage)}return function H(z,W,D){W&&V(z.prototype,W),D&&V(z,D)}(z,[{key:"on",value:function(D,g){var p=this.actionHandler;if(p[D])throw new Error('There is already an actionName called "'.concat(D,'"'));p[D]=g}},{key:"send",value:function(D,g,p){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:D,data:g},p)}}
vendor: 4,396 bytes, line 1
1,{key:"sendWithPromise",value:function(D,g,p){var o=this.callbackId++,u=(0,M.createPromiseCapability)();this.callbackCapabilities[o]=u;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:D,callbackId:o,data:g},p)}catch(b){u.reject(b)}return u.promise}},{key:"sendWithStream",value:function(D,g,p,o){var u=this,b=this.streamId++,m=this.sourceName,c=this.targetName,A=this.comObj;return new ReadableStream({start:function(_){var k=(0,M.createPromiseCapability)();return u.streamControllers[b]={controller:_,startCall:k,pullCall:null,cancelCall:null,isClosed:!1},u._postMessage({sourceName:m,targetName:c,action:D,streamId:b,data:g,desiredSize:_.desiredSize},o),k.promise},pull:function(_){var k=(0,M.createPromiseCapability)();return u.streamControllers[b].pullCall=k,A.postMessage({sourceName:m,targetName:c,stream:6,streamId:b,desiredSize:_.desiredSize}),k.promise},cancel:function(_){(0,M.assert)(_ instanceof Error,"cancel must have a valid reason");var k=(0,M.createPromiseCapability)();return u.streamControllers[b].cancelCall=k,u.streamControllers[b].isClosed=!0,A.postMessage({sourceName:m,targetName:c,stream:1,streamId:b,reason:X(_)}),k.promise}},p)}},{key:"_createStreamSink",value:function(D){var g=D.streamId,p=this.sourceName,o=D.sourceName,u=this.comObj,b=this,m=this.actionHandler[D.action],c={enqueue:function(O){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,k=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var P=this.desiredSize;this.desiredSize-=_,P>0&&this.desiredSize<=0&&(this.sinkCapability=(0,M.createPromiseCapability)(),this.ready=this.sinkCapability.promise),b._postMessage({sourceName:p,targetName:o,stream:4,streamId:g,chunk:O},k)}},close:function(){this.isCancelled||(this.isCancelled=!0,u.postMessage({sourceName:p,targetName:o,stream:3,streamId:g}),delete b.streamSinks[g])},error:function(O){(0,M.assert)(O instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,u.postMessage({sourceName:p,targetName:o,stream:5,streamId:g,reason:X(O)}))},sinkCapability:(0,M.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:D.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[g]=c,new Promise(function(A){A(m(D.data,c))}).then(function(){u.postMessage({sourceName:p,targetName:o,stream:8,streamId:g,success:!0})},function(A){u.postMessage({sourceName:p,targetName:o,stream:8,streamId:g,reason:X(A)})})}},{key:"_processStreamMessage",value:function(D){var g=D.streamId,p=this.sourceName,o=D.sourceName,u=this.comObj,b=this.streamControllers[g],m=this.streamSinks[g];switch(D.stream){case 8:D.success?b.startCall.resolve():b.startCall.reject(X(D.reason));break;case 7:D.success?b.pullCall.resolve():b.pullCall.reject(X(D.reason));break;case 6:if(!m){u.postMessage({sourceName:p,targetName:o,stream:7,streamId:g,success:!0});break}m.desiredSize<=0&&D.desiredSize>0&&m.sinkCapability.resolve(),m.desiredSize=D.desiredSize,new Promise(function(c){c(m.onPull&&m.onPull())}).then(function(){u.postMessage({sourceName:p,targetName:o,stream:7,streamId:g,success:!0})},function(c){u.postMessage({sourceName:p,targetName:o,stream:7,streamId:g,reason:X(c)})});break;case 4:if((0,M.assert)(b,"enqueue should have stream controller"),b.isClosed)break;b.controller.enqueue(D.chunk);break;case 3:if((0,M.assert)(b,"close should have stream controller"),b.isClosed)break;b.isClosed=!0,b.controller.close(),this._deleteStreamController(b,g);break;case 5:(0,M.assert)(b,"error should have stream controller"),b.controller.error(X(D.reason)),this._deleteStreamController(b,g);break;case 2:D.success?b.cancelCall.resolve():b.cancelCall.reject(X(D.reason)),this._deleteStreamController(b,g);break;case 1:if(!m)break;new Promise(function(c){c(m.onCancel&&m.onCancel(X(D.reason)))}).then(function(){u.postMessage({sourceName:p,targetName:o,stream:2,streamId:g,success:!0})},function(c){u.postMessage({sourceName:p,targetName:o,stream:2,streamId:g,reason:X(c)})}),m.sinkCapability.reject(X(D.reason)),m.isCancelled=!0,delete this.streamSinks[g];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:(W=function U(z){return function(){var W=this,D=arguments;return new Promise(function(g,p){var o=z.apply(W,D);function u(m){Y(o,g,p,u,b,"next",m)}function b(m){Y(o,g,p,u,b,"throw",m)}
1u(void 0)})}}(l.default.mark(function g(p,o){return l.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,Promise.allSettled([p.startCall&&p.startCall.promise,p.pullCall&&p.pullCall.promise,p.cancelCall&&p.cancelCall.promise]);case 2:delete this.streamControllers[o];case 3:case"end":return b.stop()}},g,this)})),function D(g,p){return W.apply(this,arguments)})},{key:"_postMessage",value:function(D,g){g&&this.postMessageTransfers?this.comObj.postMessage(D,g):this.comObj.postMessage(D)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),z;var W}();I.MessageHandler=B},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.Metadata=void 0;var l=s(4);function N(e,V){for(var H=0;H<V.length;H++){var R=V[H];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(e,R.key,R)}}I.Metadata=function(){function e(V){var H=V.parsedData,R=V.rawData;(function M(e,V){if(!(e instanceof V))throw new TypeError("Cannot call a class as a function")})(this,e),this._metadataMap=H,this._data=R}return function Y(e,V,H){V&&N(e.prototype,V),H&&N(e,H)}(e,[{key:"getRaw",value:function(){return this._data}},{key:"get",value:function(H){var R;return null!==(R=this._metadataMap.get(H))&&void 0!==R?R:null}},{key:"getAll",value:function(){return(0,l.objectFromMap)(this._metadataMap)}},{key:"has",value:function(H){return this._metadataMap.has(H)}}]),e}()},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.OptionalContentConfig=void 0;var l=s(4);function M(Q,$){var X="undefined"!=typeof Symbol&&Q[Symbol.iterator]||Q["@@iterator"];if(!X){if(Array.isArray(Q)||(X=function N(Q,$){if(Q){if("string"==typeof Q)return Y(Q,$);var X=Object.prototype.toString.call(Q).slice(8,-1);if("Object"===X&&Q.constructor&&(X=Q.constructor.name),"Map"===X||"Set"===X)return Array.from(Q);if("Arguments"===X||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return Y(Q,$)}}(Q))||$&&Q&&"number"==typeof Q.length){X&&(Q=X);var B=0,z=function(){};return{s:z,n:function(){return B>=Q.length?{done:!0}:{done:!1,value:Q[B++]}},e:function(o){throw o},f:z}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var g,W=!0,D=!1;return{s:function(){X=X.call(Q)},n:function(){var o=X.next();return W=o.done,o},e:function(o){D=!0,g=o},f:function(){try{!W&&null!=X.return&&X.return()}finally{if(D)throw g}}}}function Y(Q,$){(null==$||$>Q.length)&&($=Q.length);for(var X=0,B=new Array($);X<$;X++)B[X]=Q[X];return B}function U(Q,$){for(var X=0;X<$.length;X++){var B=$[X];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(Q,B.key,B)}}function V(Q,$){if(!(Q instanceof $))throw new TypeError("Cannot call a class as a function")}var H=function Q($,X){V(this,Q),this.visible=!0,this.name=$,this.intent=X},R=function(){function Q($){if(V(this,Q),this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==$){this.name=$.name,this.creator=$.creator,this._order=$.order;var B,X=M($.groups);try{for(X.s();!(B=X.n()).done;){var z=B.value;this._groups.set(z.id,new H(z.name,z.intent))}}catch(A){X.e(A)}finally{X.f()}if("OFF"===$.baseState){var D,W=M(this._groups);try{for(W.s();!(D=W.n()).done;)D.value.visible=!1}catch(A){W.e(A)}finally{W.f()}}var o,p=M($.on);try{for(p.s();!(o=p.n()).done;)this._groups.get(o.value).visible=!0}catch(A){p.e(A)}finally{p.f()}var m,b=M($.off);try{for(b.s();!(m=b.n()).done;)this._groups.get(m.value).visible=!1}catch(A){b.e(A)}finally{b.f()}}}return function e(Q,$,X){$&&U(Q.prototype,$),X&&U(Q,X)}(Q,[{key:"_evaluateVisibilityExpression",value:function(X){var B=X.length;if(B<2)return!0;for(var z=X[0],W=1;W<B;W++){var D=X[W],g=void 0;if(Array.isArray(D))g=this._evaluateVisibilityExpression(D);else{if(!this._groups.has(D))return(0,l.warn)("Optional content group not found: ".concat(D)),!0;g=this._groups.get(D).visible}switch(z){case"And":if(!g)return!1;break;case"Or":if(g)return!0;break;case"Not":return!g;default:return!0}}return"And"===z}},{key:"isVisible",value:function(X){if(0===this._groups.size)return!0;
vendor: 7,114 bytes, line 1
1if(!X)return(0,l.warn)("Optional content group not defined."),!0;if("OCG"===X.type)return this._groups.has(X.id)?this._groups.get(X.id).visible:((0,l.warn)("Optional content group not found: ".concat(X.id)),!0);if("OCMD"===X.type){if(X.expression)return this._evaluateVisibilityExpression(X.expression);if(!X.policy||"AnyOn"===X.policy){var z,B=M(X.ids);try{for(B.s();!(z=B.n()).done;){var W=z.value;if(!this._groups.has(W))return(0,l.warn)("Optional content group not found: ".concat(W)),!0;if(this._groups.get(W).visible)return!0}}catch(O){B.e(O)}finally{B.f()}return!1}if("AllOn"===X.policy){var g,D=M(X.ids);try{for(D.s();!(g=D.n()).done;){var p=g.value;if(!this._groups.has(p))return(0,l.warn)("Optional content group not found: ".concat(p)),!0;if(!this._groups.get(p).visible)return!1}}catch(O){D.e(O)}finally{D.f()}return!0}if("AnyOff"===X.policy){var u,o=M(X.ids);try{for(o.s();!(u=o.n()).done;){var b=u.value;if(!this._groups.has(b))return(0,l.warn)("Optional content group not found: ".concat(b)),!0;if(!this._groups.get(b).visible)return!0}}catch(O){o.e(O)}finally{o.f()}return!1}if("AllOff"===X.policy){var c,m=M(X.ids);try{for(m.s();!(c=m.n()).done;){var A=c.value;if(!this._groups.has(A))return(0,l.warn)("Optional content group not found: ".concat(A)),!0;if(this._groups.get(A).visible)return!1}}catch(O){m.e(O)}finally{m.f()}return!0}return(0,l.warn)("Unknown optional content policy ".concat(X.policy,".")),!0}return(0,l.warn)("Unknown group type ".concat(X.type,".")),!0}},{key:"setVisibility",value:function(X){var B=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._groups.has(X)?this._groups.get(X).visible=!!B:(0,l.warn)("Optional content group not found: ".concat(X))}},{key:"getOrder",value:function(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}},{key:"getGroups",value:function(){return this._groups.size>0?(0,l.objectFromMap)(this._groups):null}},{key:"getGroup",value:function(X){return this._groups.get(X)||null}}]),Q}();I.OptionalContentConfig=R},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.PDFDataTransportStream=void 0;var l=function Y(D){return D&&D.__esModule?D:{default:D}}(s(2)),M=s(4),N=s(1);function U(D,g,p,o,u,b,m){try{var c=D[b](m),A=c.value}catch(O){return void p(O)}c.done?g(A):Promise.resolve(A).then(o,u)}function e(D){return function(){var g=this,p=arguments;return new Promise(function(o,u){var b=D.apply(g,p);function m(A){U(b,o,u,m,c,"next",A)}function c(A){U(b,o,u,m,c,"throw",A)}m(void 0)})}}function V(D,g){var p="undefined"!=typeof Symbol&&D[Symbol.iterator]||D["@@iterator"];if(!p){if(Array.isArray(D)||(p=function H(D,g){if(D){if("string"==typeof D)return R(D,g);var p=Object.prototype.toString.call(D).slice(8,-1);if("Object"===p&&D.constructor&&(p=D.constructor.name),"Map"===p||"Set"===p)return Array.from(D);if("Arguments"===p||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return R(D,g)}}(D))||g&&D&&"number"==typeof D.length){p&&(D=p);var o=0,u=function(){};return{s:u,n:function(){return o>=D.length?{done:!0}:{done:!1,value:D[o++]}},e:function(O){throw O},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,b=!0,m=!1;return{s:function(){p=p.call(D)},n:function(){var O=p.next();return b=O.done,O},e:function(O){m=!0,c=O},f:function(){try{!b&&null!=p.return&&p.return()}finally{if(m)throw c}}}}function R(D,g){(null==g||g>D.length)&&(g=D.length);for(var p=0,o=new Array(g);p<g;p++)o[p]=D[p];return o}function Q(D,g){if(!(D instanceof g))throw new TypeError("Cannot call a class as a function")}function $(D,g){for(var p=0;p<g.length;p++){var o=g[p];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(D,o.key,o)}}function X(D,g,p){return g&&$(D.prototype,g),p&&$(D,p),D}I.PDFDataTransportStream=function(){function D(g,p){var o=this;Q(this,D),(0,M.assert)(p,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=g.progressiveDone||!1,this._contentDispositionFilename=g.contentDispositionFilename||null;var u=g.initialData;if((null==u?void 0:u.length)>0){var b=new Uint8Array(u).buffer;this._queuedChunks.push(b)}this._pdfDataRangeTransport=p,this._isStreamingSupported=!g.disableStream,this._isRangeSupported=!g.disableRange,this._contentLength=g.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(m,c){o._onReceiveData({begin:m,chunk:c})}),this._pdfDataRangeTransport.addProgressListener(function(m,c){o._onProgress({loaded:m,total:c})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(m){o._onReceiveData({chunk:m})}),this._pdfDataRangeTransport.addProgressiveDoneListener(function(){o._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}return X(D,[{key:"_onReceiveData",value:function(p){var o=new Uint8Array(p.chunk).buffer;if(void 0===p.begin)this._fullRequestReader?this._fullRequestReader._enqueue(o):this._queuedChunks.push(o);else{var u=this._rangeReaders.some(function(b){return b._begin===p.begin&&(b._enqueue(o),!0)});(0,M.assert)(u,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_progressiveDataLength",get:function(){var p,o;return null!==(p=null===(o=this._fullRequestReader)||void 0===o?void 0:o._loaded)&&void 0!==p?p:0}},{key:"_onProgress",value:function(p){if(void 0===p.total){var o=this._rangeReaders[0];null!=o&&o.onProgress&&o.onProgress({loaded:p.loaded})}else{var u=this._fullRequestReader;null!=u&&u.onProgress&&u.onProgress({loaded:p.loaded,total:p.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(p){var o=this._rangeReaders.indexOf(p);o>=0&&this._rangeReaders.splice(o,1)}},{key:"getFullReader",value:function(){(0,M.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var p=this._queuedChunks;return this._queuedChunks=null,new z(this,p,this._progressiveDone,this._contentDispositionFilename)}},{key:"getRangeReader",value:function(p,o){if(o<=this._progressiveDataLength)return null;var u=new W(this,p,o);return this._pdfDataRangeTransport.requestDataRange(p,o),this._rangeReaders.push(u),u}},{key:"cancelAllRequests",value:function(p){this._fullRequestReader&&this._fullRequestReader.cancel(p);var u,o=V(this._rangeReaders.slice(0));try{for(o.s();!(u=o.n()).done;)u.value.cancel(p)}catch(m){o.e(m)}finally{o.f()}this._pdfDataRangeTransport.abort()}}]),D}();var z=function(){function D(g,p){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Q(this,D),this._stream=g,this._done=o||!1,this._filename=(0,N.isPdfFile)(u)?u:null,this._queuedChunks=p||[],this._loaded=0;var m,b=V(this._queuedChunks);try{for(b.s();!(m=b.n()).done;){var c=m.value;this._loaded+=c.byteLength}}catch(A){b.e(A)}finally{b.f()}
1this._requests=[],this._headersReady=Promise.resolve(),g._fullRequestReader=this,this.onProgress=null}return X(D,[{key:"_enqueue",value:function(p){this._done||(this._requests.length>0?this._requests.shift().resolve({value:p,done:!1}):this._queuedChunks.push(p),this._loaded+=p.byteLength)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}},{key:"read",value:(g=e(l.default.mark(function o(){var u,b;return l.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!(this._queuedChunks.length>0)){c.next=3;break}return u=this._queuedChunks.shift(),c.abrupt("return",{value:u,done:!1});case 3:if(!this._done){c.next=5;break}return c.abrupt("return",{value:void 0,done:!0});case 5:return b=(0,M.createPromiseCapability)(),this._requests.push(b),c.abrupt("return",b.promise);case 8:case"end":return c.stop()}},o,this)})),function p(){return g.apply(this,arguments)})},{key:"cancel",value:function(p){this._done=!0;var u,o=V(this._requests);try{for(o.s();!(u=o.n()).done;)u.value.resolve({value:void 0,done:!0})}catch(m){o.e(m)}finally{o.f()}this._requests.length=0}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}}]),D;var g}(),W=function(){function D(g,p,o){Q(this,D),this._stream=g,this._begin=p,this._end=o,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return X(D,[{key:"_enqueue",value:function(p){if(!this._done){if(0===this._requests.length)this._queuedChunk=p;else{this._requests.shift().resolve({value:p,done:!1});var b,u=V(this._requests);try{for(u.s();!(b=u.n()).done;)b.value.resolve({value:void 0,done:!0})}catch(c){u.e(c)}finally{u.f()}this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(g=e(l.default.mark(function o(){var u,b;return l.default.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!this._queuedChunk){c.next=4;break}return u=this._queuedChunk,this._queuedChunk=null,c.abrupt("return",{value:u,done:!1});case 4:if(!this._done){c.next=6;break}return c.abrupt("return",{value:void 0,done:!0});case 6:return b=(0,M.createPromiseCapability)(),this._requests.push(b),c.abrupt("return",b.promise);case 9:case"end":return c.stop()}},o,this)})),function p(){return g.apply(this,arguments)})},{key:"cancel",value:function(p){this._done=!0;var u,o=V(this._requests);try{for(o.s();!(u=o.n()).done;)u.value.resolve({value:void 0,done:!0})}catch(m){o.e(m)}finally{o.f()}this._requests.length=0,this._stream._removeRangeReader(this)}}]),D;var g}()},(K,I)=>{"use strict";function M(V,H){(null==H||H>V.length)&&(H=V.length);for(var R=0,Q=new Array(H);R<H;R++)Q[R]=V[R];return Q}function Y(V,H){for(var R=0;R<H.length;R++){var Q=H[R];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(V,Q.key,Q)}}Object.defineProperty(I,"__esModule",{value:!0}),I.XfaText=void 0,I.XfaText=function(){function V(){!function N(V,H){if(!(V instanceof H))throw new TypeError("Cannot call a class as a function")}(this,V)}return function U(V,H,R){H&&Y(V.prototype,H),R&&Y(V,R)}(V,null,[{key:"textContent",value:function(R){var Q=[],$={items:Q,styles:Object.create(null)};return function X(B){var z;if(B){var W=null,D=B.name;if("#text"===D)W=B.value;else{if(!V.shouldBuildText(D))return;null!=B&&null!==(z=B.attributes)&&void 0!==z&&z.textContent?W=B.attributes.textContent:B.value&&(W=B.value)}if(null!==W&&Q.push({str:W}),B.children){var p,g=function s(V,H){var R="undefined"!=typeof Symbol&&V[Symbol.iterator]||V["@@iterator"];if(!R){if(Array.isArray(V)||(R=function l(V,H){if(V){if("string"==typeof V)return M(V,H);var R=Object.prototype.toString.call(V).slice(8,-1);if("Object"===R&&V.constructor&&(R=V.constructor.name),"Map"===R||"Set"===R)return Array.from(V);if("Arguments"===R||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return M(V,H)}}(V))||H&&V&&"number"==typeof V.length){R&&(V=R);var Q=0,$=function(){};return{s:$,n:function(){return Q>=V.length?{done:!0}:{done:!1,value:V[Q++]}},e:function(D){throw D},f:$}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var z,X=!0,B=!1;return{s:function(){R=R.call(V)},n:function(){var D=R.next();return X=D.done,D},e:function(D){B=!0,z=D},f:function(){try{!X&&null!=R.return&&R.return()}finally{if(B)throw z}}}}(B.children);try{for(g.s();!(p=g.n()).done;)X(p.value)}catch(u){g.e(u)}finally{g.f()}}}}(R),$}},{key:"shouldBuildText",value:function(R){return!("textarea"===R||"input"===R||"option"===R||"select"===R)}}]),V}()},(K,I,s)=>{"use strict";function l(le){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ne){return typeof ne}:function(ne){return ne&&"function"==typeof Symbol&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne})(le)}Object.defineProperty(I,"__esModule",{value:!0}),I.AnnotationLayer=void 0;var M=s(4),N=s(1),Y=s(122),U=s(132);function e(le,pe,ne){return e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(ie,fe,Se){var Te=function V(le,pe){for(;!Object.prototype.hasOwnProperty.call(le,pe)&&null!==(le=c(le)););return le}(ie,fe);if(Te){var Re=Object.getOwnPropertyDescriptor(Te,fe);return Re.get?Re.get.call(Se):Re.value}},e(le,pe,ne||le)}function H(le,pe,ne){return pe in le?Object.defineProperty(le,pe,{value:ne,enumerable:!0,configurable:!0,writable:!0}):le[pe]=ne,le}function R(le,pe){return function X(le){if(Array.isArray(le))return le}(le)||function $(le,pe){var ne=null==le?null:"undefined"!=typeof Symbol&&le[Symbol.iterator]||le["@@iterator"];if(null!=ne){var Se,Te,ce=[],ie=!0,fe=!1;try{for(ne=ne.call(le);!(ie=(Se=ne.next()).done)&&(ce.push(Se.value),!pe||ce.length!==pe);ie=!0);}catch(Re){fe=!0,Te=Re}finally{try{!ie&&null!=ne.return&&ne.return()}finally{if(fe)throw Te}}return ce}}(le,pe)||O(le,pe)||function Q(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(le){return function D(le){if(Array.isArray(le))return _(le)}(le)||function W(le){if("undefined"!=typeof Symbol&&null!=le[Symbol.iterator]||null!=le["@@iterator"])return Array.from(le)}(le)||O(le)||function z(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(le,pe){if("function"!=typeof pe&&null!==pe)throw new TypeError("Super expression must either be null or a function");le.prototype=Object.create(pe&&pe.prototype,{constructor:{value:le,writable:!0,configurable:!0}}),pe&&p(le,pe)}function p(le,pe){return(p=Object.setPrototypeOf||function(ce,ie){return ce.__proto__=ie,ce})(le,pe)}function o(le){var pe=function m(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(le){return!1}}();return function(){var ie,ce=c(le);if(pe){var fe=c(this).constructor;ie=Reflect.construct(ce,arguments,fe)}else ie=ce.apply(this,arguments);return u(this,ie)}}function u(le,pe){if(pe&&("object"===l(pe)||"function"==typeof pe))return pe;if(void 0!==pe)throw new TypeError("Derived constructors may only return object or undefined");return b(le)}function b(le){if(void 0===le)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return le}function c(le){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(ne){return ne.__proto__||Object.getPrototypeOf(ne)})(le)}function A(le,pe){var ne="undefined"!=typeof Symbol&&le[Symbol.iterator]||le["@@iterator"];if(!ne){if(Array.isArray(le)||(ne=O(le))||pe&&le&&"number"==typeof le.length){ne&&(le=ne);var ce=0,ie=function(){};return{s:ie,n:function(){return ce>=le.length?{done:!0}:{done:!1,value:le[ce++]}},e:function(me){throw me},f:ie}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Te,fe=!0,Se=!1;return{s:function(){ne=ne.call(le)},n:function(){var me=ne.next();return fe=me.done,me},e:function(me){Se=!0,Te=me},f:function(){try{!fe&&null!=ne.return&&ne.return()}finally{if(Se)throw Te}}}}function O(le,pe){if(le){if("string"==typeof le)return _(le,pe);var ne=Object.prototype.toString.call(le).slice(8,-1);if("Object"===ne&&le.constructor&&(ne=le.constructor.name),"Map"===ne||"Set"===ne)return Array.from(le);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _(le,pe)}}function _(le,pe){(null==pe||pe>le.length)&&(pe=le.length);for(var ne=0,ce=new Array(pe);ne<pe;ne++)ce[ne]=le[ne];return ce}function k(le,pe){if(!(le instanceof pe))throw new TypeError("Cannot call a class as a function")}function P(le,pe){for(var ne=0;ne<pe.length;ne++){var ce=pe[ne];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(le,ce.key,ce)}}function E(le,pe,ne){return pe&&P(le.prototype,pe),ne&&P(le,ne),le}var x=1e3,y=new WeakSet,f=function(){function le(){k(this,le)}return E(le,null,[{key:"create",value:function(ne){switch(ne.data.annotationType){case M.AnnotationType.LINK:return new v(ne);case M.AnnotationType.TEXT:return new d(ne);case M.AnnotationType.WIDGET:switch(ne.data.fieldType){case"Tx":return new w(ne);case"Btn":return ne.data.radioButton?new te(ne):ne.data.checkBox?new j(ne):new J(ne);case"Ch":return new ge(ne)}return new S(ne);case M.AnnotationType.POPUP:return new de(ne);case M.AnnotationType.FREETEXT:return new be(ne);case M.AnnotationType.LINE:return new oe(ne);case M.AnnotationType.SQUARE:return new q(ne);case M.AnnotationType.CIRCLE:return new G(ne);case M.AnnotationType.POLYLINE:return new L(ne);case M.AnnotationType.CARET:return new Z(ne);case M.AnnotationType.INK:return new re(ne);case M.AnnotationType.POLYGON:return new F(ne);case M.AnnotationType.HIGHLIGHT:return new ue(ne);case M.AnnotationType.UNDERLINE:return new ve(ne);case M.AnnotationType.SQUIGGLY:return new ke(ne);case M.AnnotationType.STRIKEOUT:return new Ie(ne);case M.AnnotationType.STAMP:return new Oe(ne);case M.AnnotationType.FILEATTACHMENT:return new Ee(ne);default:return new h(ne)}}}]),le}(),h=function(){function le(pe){var ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ce=ne.isRenderable,ie=void 0!==ce&&ce,fe=ne.ignoreBorder,Se=void 0!==fe&&fe,Te=ne.createQuadrilaterals,Re=void 0!==Te&&Te;k(this,le),this.isRenderable=ie,this.data=pe.data,this.layer=pe.layer,this.page=pe.page,this.viewport=pe.viewport,this.linkService=pe.linkService,this.downloadManager=pe.downloadManager,this.imageResourcesPath=
vendor: 10,880 bytes, line 1
1pe.imageResourcesPath,this.renderForms=pe.renderForms,this.svgFactory=pe.svgFactory,this.annotationStorage=pe.annotationStorage,this.enableScripting=pe.enableScripting,this.hasJSActions=pe.hasJSActions,this._fieldObjects=pe.fieldObjects,this._mouseState=pe.mouseState,ie&&(this.container=this._createContainer(Se)),Re&&(this.quadrilaterals=this._createQuadrilaterals(Se))}return E(le,[{key:"_createContainer",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]&&arguments[0],ce=this.data,ie=this.page,fe=this.viewport,Se=document.createElement("section"),Te=ce.rect[2]-ce.rect[0],Re=ce.rect[3]-ce.rect[1];Se.setAttribute("data-annotation-id",ce.id);var me=M.Util.normalizeRect([ce.rect[0],ie.view[3]-ce.rect[1]+ie.view[1],ce.rect[2],ie.view[3]-ce.rect[3]+ie.view[1]]);if(Se.style.transform="matrix(".concat(fe.transform.join(","),")"),Se.style.transformOrigin="".concat(-me[0],"px ").concat(-me[1],"px"),!ne&&ce.borderStyle.width>0){Se.style.borderWidth="".concat(ce.borderStyle.width,"px"),ce.borderStyle.style!==M.AnnotationBorderStyleType.UNDERLINE&&(Te-=2*ce.borderStyle.width,Re-=2*ce.borderStyle.width);var Ne=ce.borderStyle.horizontalCornerRadius,se=ce.borderStyle.verticalCornerRadius;if(Ne>0||se>0){var we="".concat(Ne,"px / ").concat(se,"px");Se.style.borderRadius=we}switch(ce.borderStyle.style){case M.AnnotationBorderStyleType.SOLID:Se.style.borderStyle="solid";break;case M.AnnotationBorderStyleType.DASHED:Se.style.borderStyle="dashed";break;case M.AnnotationBorderStyleType.BEVELED:(0,M.warn)("Unimplemented border style: beveled");break;case M.AnnotationBorderStyleType.INSET:(0,M.warn)("Unimplemented border style: inset");break;case M.AnnotationBorderStyleType.UNDERLINE:Se.style.borderBottomStyle="solid"}var _e=ce.borderColor||ce.color||null;_e?Se.style.borderColor=M.Util.makeHexColor(0|ce.color[0],0|ce.color[1],0|ce.color[2]):Se.style.borderWidth=0}return Se.style.left="".concat(me[0],"px"),Se.style.top="".concat(me[1],"px"),Se.style.width="".concat(Te,"px"),Se.style.height="".concat(Re,"px"),Se}},{key:"_createQuadrilaterals",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.data.quadPoints)return null;var Se,ce=[],ie=this.data.rect,fe=A(this.data.quadPoints);try{for(fe.s();!(Se=fe.n()).done;){var Te=Se.value;this.data.rect=[Te[2].x,Te[2].y,Te[1].x,Te[1].y],ce.push(this._createContainer(ne))}}catch(Re){fe.e(Re)}finally{fe.f()}return this.data.rect=ie,ce}},{key:"_createPopup",value:function(ne,ce){var ie=this.container;this.quadrilaterals&&(ne=ne||this.quadrilaterals,ie=this.quadrilaterals[0]),ne||((ne=document.createElement("div")).style.height=ie.style.height,ne.style.width=ie.style.width,ie.appendChild(ne));var Se=new he({container:ie,trigger:ne,color:ce.color,titleObj:ce.titleObj,modificationDate:ce.modificationDate,contentsObj:ce.contentsObj,hideWrapper:!0}).render();Se.style.left=ie.style.width,ie.appendChild(Se)}},{key:"_renderQuadrilaterals",value:function(ne){var ie,ce=A(this.quadrilaterals);try{for(ce.s();!(ie=ce.n()).done;)ie.value.className=ne}catch(Se){ce.e(Se)}finally{ce.f()}return this.quadrilaterals}},{key:"render",value:function(){(0,M.unreachable)("Abstract method `AnnotationElement.render` called")}},{key:"_getElementsByName",value:function(ne){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,ie=[];if(this._fieldObjects){var fe=this._fieldObjects[ne];if(fe){var Te,Se=A(fe);try{for(Se.s();!(Te=Se.n()).done;){var Re=Te.value,me=Re.page,Ne=Re.id,se=Re.exportValues;if(-1!==me&&Ne!==ce){var we="string"==typeof se?se:null,_e=document.getElementById(Ne);if(_e&&!y.has(_e)){(0,M.warn)("_getElementsByName - element not allowed: ".concat(Ne));continue}ie.push({id:Ne,exportValue:we,domElement:_e})}}}catch(je){Se.e(je)}finally{Se.f()}}return ie}var ze,Pe=A(document.getElementsByName(ne));try{for(Pe.s();!(ze=Pe.n()).done;){var Le=ze.value,Ue=Le.id,Ye=Le.exportValue;Ue!==ce&&(!y.has(Le)||ie.push({id:Ue,exportValue:Ye,domElement:Le}))}}catch(je){Pe.e(je)}finally{Pe.f()}return ie}}],[{key:"platform",get:function(){var ne="undefined"!=typeof navigator?navigator.platform:"";return(0,M.shadow)(this,"platform",{isWin:ne.includes("Win"),isMac:ne.includes("Mac")})}}]),le}(),v=function(le){g(ne,le);var pe=o(ne);function ne(ce){return k(this,ne),pe.call(this,ce,{isRenderable:!!(ce.data.url||ce.data.dest||ce.data.action||ce.data.isTooltipOnly||ce.data.resetForm||ce.data.actions&&(ce.data.actions.Action||ce.data.actions["Mouse Up"]||ce.data.actions["Mouse Down"])),createQuadrilaterals:!0})}return E(ne,[{key:"render",value:function(){var Te,ie=this.data,fe=this.linkService,Se=document.createElement("a");if(ie.url)fe.addLinkAttributes||(0,M.warn)("LinkAnnotationElement.render - missing `addLinkAttributes`-method on the `linkService`-instance."),null===(Te=fe.addLinkAttributes)||void 0===Te||Te.call(fe,Se,ie.url,ie.newWindow);else if(ie.action)this._bindNamedAction(Se,ie.action);else if(ie.dest)this._bindLink(Se,ie.dest);else{var Re=!1;ie.actions&&(ie.actions.Action||ie.actions["Mouse Up"]||ie.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(Re=!0,this._bindJSAction(Se,ie)),ie.resetForm?this._bindResetFormAction(Se,ie.resetForm):Re||this._bindLink(Se,"")}return this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map(function(me,Ne){var se=0===Ne?Se:Se.cloneNode();return me.appendChild(se),me}):(this.container.className="linkAnnotation",this.container.appendChild(Se),this.container)}},{key:"_bindLink",value:function(ie,fe){var Se=this;ie.href=this.linkService.getDestinationHash(fe),ie.onclick=function(){return fe&&Se.linkService.goToDestination(fe),!1},(fe||""===fe)&&(ie.className="internalLink")}},{key:"_bindNamedAction",value:function(ie,fe){var Se=this;ie.href=this.linkService.getAnchorUrl(""),ie.onclick=function(){return Se.linkService.executeNamedAction(fe),!1},ie.className="internalLink"}},{key:"_bindJSAction",value:function(ie,fe){var Se=this;ie.href=this.linkService.getAnchorUrl("");for(var Te=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]),Re=function(){var _e=Ne[me],Pe=Te.get(_e);if(!Pe)return"continue";ie[Pe]=function(){var ze;return null===(ze=Se.linkService.eventBus)||void 0===ze||ze.dispatch("dispatcheventinsandbox",{source:Se,detail:{id:fe.id,name:_e}}),!1}},me=0,Ne=Object.keys(fe.actions);me<Ne.length;me++)Re();ie.onclick||(ie.onclick=function(){return!1}),ie.className="internalLink"}},{key:"_bindResetFormAction",value:function(ie,fe){var Se=this,Te=ie.onclick;if(Te||(ie.href=this.linkService.getAnchorUrl("")),ie.className="internalLink",!this._fieldObjects)return(0,M.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(Te||(ie.onclick=function(){return!1}));ie.onclick=function(){Te&&Te();var We,Re=fe.fields,me=fe.refs,Ne=fe.include,se=[];if(0!==Re.length||0!==me.length){var Pe,we=new Set(me),_e=A(Re);try{for(_e.s();!(Pe=_e.n()).done;){var Ye,Ue=A(Se._fieldObjects[Pe.value]||[]);try{for(Ue.s();!(Ye=Ue.n()).done;)we.add(Ye.value.id)}catch(Ae){Ue.e(Ae)}finally{Ue.f()}}}catch(Ae){_e.e(Ae)}finally{_e.f()}for(var Xe=0,Ze=Object.values(Se._fieldObjects);Xe<Ze.length;Xe++){var ht,st=A(Ze[Xe]);try{for(st.s();!(ht=st.n()).done;){var _t=ht.value;we.has(_t.id)===Ne&&se.push(_t)}}catch(Ae){st.e(Ae)}finally{st.f()}}}else for(var gt=0,Nt=Object.values(Se._fieldObjects);gt<Nt.length;gt++)se.push.apply(se,B(Nt[gt]));for(var zt=Se.annotationStorage,Bt=[],Wt=0,Vt=se;Wt<Vt.length;Wt++){var wt=Vt[Wt],pt=wt.id;switch(Bt.push(pt),wt.type){case"text":var jt=wt.defaultValue||"";zt.setValue(pt,{value:jt,valueAsString:jt});break;case"checkbox":case"radiobutton":zt.setValue(pt,{value:wt.defaultValue===wt.exportValues});break;case"combobox":case"listbox":zt.setValue(pt,{value:wt.defaultValue||""});break;default:continue}var xe=document.getElementById(pt);!xe||!y.has(xe)||xe.dispatchEvent(new Event("resetform"))}return Se.enableScripting&&(null===(We=Se.linkService.eventBus)||void 0===We||We.dispatch("dispatcheventinsandbox",{source:Se,detail:{id:"app",ids:Bt,name:"ResetForm"}})),!1}}}]),ne}(h),d=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe;k(this,ne);var Se=!!(ce.data.hasPopup||null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return pe.call(this,ce,{isRenderable:Se})}return E(ne,[{key:"render",value:function(){this.container.className="textAnnotation";var ie=document.createElement("img");return ie.style.height=this.container.style.height,ie.style.width=this.container.style.width,ie.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",ie.alt="[{{type}} Annotation]",ie.dataset.l10nId="text_annotation_type",ie.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(ie,this.data),this.container.appendChild(ie),this.container}}]),ne}(h),S=function(le){g(ne,le);var pe=o(ne);function ne(){return k(this,ne),pe.apply(this,arguments)}return E(ne,[{key:"render",value:function(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}},{key:"_getKeyModifier",value:function(ie){var fe=h.platform;return fe.isWin&&ie.ctrlKey||fe.isMac&&ie.metaKey}},{key:"_setEventListener",value:function(ie,fe,Se,Te){var Re=this;fe.includes("mouse")?ie.addEventListener(fe,function(me){var Ne;null===(Ne=Re.linkService.eventBus)||void 0===Ne||Ne.dispatch("dispatcheventinsandbox",{source:Re,detail:{id:Re.data.id,name:Se,value:Te(me),shift:me.shiftKey,modifier:Re._getKeyModifier(me)}})}):ie.addEventListener(fe,function(me){var Ne;null===(Ne=Re.linkService.eventBus)||void 0===Ne||Ne.dispatch("dispatcheventinsandbox",{source:Re,detail:{id:Re.data.id,name:Se,value:me.target.checked}})})}},{key:"_setEventListeners",value:function(ie,fe,Se){var Re,Te=A(fe);try{for(Te.s();!(Re=Te.n()).done;){var me,Ne=R(Re.value,2),we=Ne[1];("Action"===we||null!==(me=this.data.actions)&&void 0!==me&&me[we])&&this._setEventListener(ie,Ne[0],we,Se)}}catch(_e){Te.e(_e)}finally{Te.f()}}},{key:"_setBackgroundColor",value:function(ie){var fe=this.data.backgroundColor||null;ie.style.backgroundColor=null===fe?"transparent":M.Util.makeHexColor(fe[0],fe[1],fe[2])}},{key:"_dispatchEventFromSandbox",value:function(ie,fe){for(var Se=this,Te=function(Pe,ze,Le){var Ue=Le.detail[Pe];Le.target.style[ze]=U.ColorConverters["".concat(Ue[0],"_HTML")](Ue.slice(1))},Re={display:function(Pe){var ze=Pe.detail.display%2==1;Pe.target.style.visibility=ze?"hidden":"visible",Se.annotationStorage.setValue(Se.data.id,{hidden:ze,print:0===Pe.detail.display||3===Pe.detail.display})},print:function(Pe){Se.annotationStorage.setValue(Se.data.id,{print:Pe.detail.print})},hidden:function(Pe){Pe.target.style.visibility=Pe.detail.hidden?"hidden":"visible",Se.annotationStorage.setValue(Se.data.id,{hidden:Pe.detail.hidden})}
1,focus:function(Pe){setTimeout(function(){return Pe.target.focus({preventScroll:!1})},0)},userName:function(Pe){Pe.target.title=Pe.detail.userName},readonly:function(Pe){Pe.detail.readonly?Pe.target.setAttribute("readonly",""):Pe.target.removeAttribute("readonly")},required:function(Pe){Pe.detail.required?Pe.target.setAttribute("required",""):Pe.target.removeAttribute("required")},bgColor:function(Pe){Te("bgColor","backgroundColor",Pe)},fillColor:function(Pe){Te("fillColor","backgroundColor",Pe)},fgColor:function(Pe){Te("fgColor","color",Pe)},textColor:function(Pe){Te("textColor","color",Pe)},borderColor:function(Pe){Te("borderColor","borderColor",Pe)},strokeColor:function(Pe){Te("strokeColor","borderColor",Pe)}},me=0,Ne=Object.keys(fe.detail);me<Ne.length;me++){var se=Ne[me],we=ie[se]||Re[se];we&&we(fe)}}}]),ne}(h),w=function(le){g(ne,le);var pe=o(ne);function ne(ce){return k(this,ne),pe.call(this,ce,{isRenderable:ce.renderForms||!ce.data.hasAppearance&&!!ce.data.fieldValue})}return E(ne,[{key:"setPropertyOnSiblings",value:function(ie,fe,Se,Te){var Ne,Re=this.annotationStorage,me=A(this._getElementsByName(ie.name,ie.id));try{for(me.s();!(Ne=me.n()).done;){var se=Ne.value;se.domElement&&(se.domElement[fe]=Se),Re.setValue(se.id,H({},Te,Se))}}catch(we){me.e(we)}finally{me.f()}}},{key:"render",value:function(){var ie=this,fe=this.annotationStorage,Se=this.data.id;this.container.className="textWidgetAnnotation";var Te=null;if(this.renderForms){var Re=fe.getValue(Se,{value:this.data.fieldValue,valueAsString:this.data.fieldValue}),me=Re.valueAsString||Re.value||"",Ne={userValue:null,formattedValue:null,beforeInputSelectionRange:null,beforeInputValue:null};this.data.multiLine?(Te=document.createElement("textarea")).textContent=me:((Te=document.createElement("input")).type="text",Te.setAttribute("value",me)),y.add(Te),Te.disabled=this.data.readOnly,Te.name=this.data.fieldName,Te.tabIndex=x,Ne.userValue=me,Te.setAttribute("id",Se),Te.addEventListener("input",function(Le){fe.setValue(Se,{value:Le.target.value}),ie.setPropertyOnSiblings(Te,"value",Le.target.value,"value")}),Te.addEventListener("resetform",function(Le){Te.value=Ne.userValue=ie.data.defaultFieldValue||"",delete Ne.formattedValue});var se=function(Ue){Ne.formattedValue&&(Ue.target.value=Ne.formattedValue),Ue.target.scrollLeft=0,Ne.beforeInputSelectionRange=null};if(this.enableScripting&&this.hasJSActions){var we;Te.addEventListener("focus",function(Le){Ne.userValue&&(Le.target.value=Ne.userValue)}),Te.addEventListener("updatefromsandbox",function(Le){ie._dispatchEventFromSandbox({value:function(je){Ne.userValue=je.detail.value||"",fe.setValue(Se,{value:Ne.userValue.toString()}),Ne.formattedValue||(je.target.value=Ne.userValue)},valueAsString:function(je){Ne.formattedValue=je.detail.valueAsString||"",je.target!==document.activeElement&&(je.target.value=Ne.formattedValue),fe.setValue(Se,{formattedValue:Ne.formattedValue})},selRange:function(je){var Xe=R(je.detail.selRange,2),Ze=Xe[0],ot=Xe[1];Ze>=0&&ot<je.target.value.length&&je.target.setSelectionRange(Ze,ot)}},Le)}),Te.addEventListener("keydown",function(Le){var Ue;Ne.beforeInputValue=Le.target.value;var Ye=-1;"Escape"===Le.key?Ye=0:"Enter"===Le.key?Ye=2:"Tab"===Le.key&&(Ye=3),-1!==Ye&&(Ne.userValue=Le.target.value,null===(Ue=ie.linkService.eventBus)||void 0===Ue||Ue.dispatch("dispatcheventinsandbox",{source:ie,detail:{id:Se,name:"Keystroke",value:Le.target.value,willCommit:!0,commitKey:Ye,selStart:Le.target.selectionStart,selEnd:Le.target.selectionEnd}}))});var _e=se;se=null,Te.addEventListener("blur",function(Le){var Ue;ie._mouseState.isDown&&(Ne.userValue=Le.target.value,null===(Ue=ie.linkService.eventBus)||void 0===Ue||Ue.dispatch("dispatcheventinsandbox",{source:ie,detail:{id:Se,name:"Keystroke",value:Le.target.value,willCommit:!0,commitKey:1,selStart:Le.target.selectionStart,selEnd:Le.target.selectionEnd}})),_e(Le)}),Te.addEventListener("mousedown",function(Le){Ne.beforeInputValue=Le.target.value,Ne.beforeInputSelectionRange=null}),Te.addEventListener("keyup",function(Le){Le.target.selectionStart===Le.target.selectionEnd&&(Ne.beforeInputSelectionRange=null)}),Te.addEventListener("select",function(Le){Ne.beforeInputSelectionRange=[Le.target.selectionStart,Le.target.selectionEnd]}),null!==(we=this.data.actions)&&void 0!==we&&we.Keystroke&&Te.addEventListener("input",function(Le){var Ue,Ye=-1,je=-1;if(Ne.beforeInputSelectionRange){var Xe=R(Ne.beforeInputSelectionRange,2);Ye=Xe[0],je=Xe[1]}null===(Ue=ie.linkService.eventBus)||void 0===Ue||Ue.dispatch("dispatcheventinsandbox",{source:ie,detail:{id:Se,name:"Keystroke",value:Ne.beforeInputValue,change:Le.data,willCommit:!1,selStart:Ye,selEnd:je}})}),this._setEventListeners(Te,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],function(Le){return Le.target.value})}
1if(se&&Te.addEventListener("blur",se),null!==this.data.maxLen&&(Te.maxLength=this.data.maxLen),this.data.comb){var ze=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;Te.classList.add("comb"),Te.style.letterSpacing="calc(".concat(ze,"px - 1ch)")}}else(Te=document.createElement("div")).textContent=this.data.fieldValue,Te.style.verticalAlign="middle",Te.style.display="table-cell";return this._setTextStyle(Te),this._setBackgroundColor(Te),this.container.appendChild(Te),this.container}},{key:"_setTextStyle",value:function(ie){var Se=this.data.defaultAppearanceData,Te=Se.fontSize,Re=Se.fontColor,me=ie.style;Te&&(me.fontSize="".concat(Te,"px")),me.color=M.Util.makeHexColor(Re[0],Re[1],Re[2]),null!==this.data.textAlignment&&(me.textAlign=["left","center","right"][this.data.textAlignment])}}]),ne}(S),j=function(le){g(ne,le);var pe=o(ne);function ne(ce){return k(this,ne),pe.call(this,ce,{isRenderable:ce.renderForms})}return E(ne,[{key:"render",value:function(){var ie=this,fe=this.annotationStorage,Se=this.data,Te=Se.id,Re=fe.getValue(Te,{value:Se.exportValue===Se.fieldValue}).value;"string"==typeof Re&&fe.setValue(Te,{value:Re="Off"!==Re}),this.container.className="buttonWidgetAnnotation checkBox";var me=document.createElement("input");return y.add(me),me.disabled=Se.readOnly,me.type="checkbox",me.name=Se.fieldName,Re&&me.setAttribute("checked",!0),me.setAttribute("id",Te),me.setAttribute("exportValue",Se.exportValue),me.tabIndex=x,me.addEventListener("change",function(Ne){var ze,se=Ne.target,_e=se.checked,Pe=A(ie._getElementsByName(se.name,Te));try{for(Pe.s();!(ze=Pe.n()).done;){var Le=ze.value,Ue=_e&&Le.exportValue===Se.exportValue;Le.domElement&&(Le.domElement.checked=Ue),fe.setValue(Le.id,{value:Ue})}}catch(Ye){Pe.e(Ye)}finally{Pe.f()}fe.setValue(Te,{value:_e})}),me.addEventListener("resetform",function(Ne){Ne.target.checked=(Se.defaultFieldValue||"Off")===Se.exportValue}),this.enableScripting&&this.hasJSActions&&(me.addEventListener("updatefromsandbox",function(Ne){ie._dispatchEventFromSandbox({value:function(_e){_e.target.checked="Off"!==_e.detail.value,fe.setValue(Te,{value:_e.target.checked})}},Ne)}),this._setEventListeners(me,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],function(Ne){return Ne.target.checked})),this._setBackgroundColor(me),this.container.appendChild(me),this.container}}]),ne}(S),te=function(le){g(ne,le);var pe=o(ne);function ne(ce){return k(this,ne),pe.call(this,ce,{isRenderable:ce.renderForms})}return E(ne,[{key:"render",value:function(){var ie=this;this.container.className="buttonWidgetAnnotation radioButton";var fe=this.annotationStorage,Se=this.data,Te=Se.id,Re=fe.getValue(Te,{value:Se.fieldValue===Se.buttonValue}).value;"string"==typeof Re&&fe.setValue(Te,{value:Re=Re!==Se.buttonValue});var me=document.createElement("input");if(y.add(me),me.disabled=Se.readOnly,me.type="radio",me.name=Se.fieldName,Re&&me.setAttribute("checked",!0),me.setAttribute("id",Te),me.tabIndex=x,me.addEventListener("change",function(se){var Le,we=se.target,Pe=we.checked,ze=A(ie._getElementsByName(we.name,Te));try{for(ze.s();!(Le=ze.n()).done;)fe.setValue(Le.value.id,{value:!1})}catch(Ye){ze.e(Ye)}finally{ze.f()}fe.setValue(Te,{value:Pe})}),me.addEventListener("resetform",function(se){var we=Se.defaultFieldValue;se.target.checked=null!=we&&we===Se.buttonValue}),this.enableScripting&&this.hasJSActions){var Ne=Se.buttonValue;me.addEventListener("updatefromsandbox",function(se){var we={value:function(Pe){var Ue,ze=Ne===Pe.detail.value,Le=A(ie._getElementsByName(Pe.target.name));try{for(Le.s();!(Ue=Le.n()).done;){var Ye=Ue.value,je=ze&&Ye.id===Te;Ye.domElement&&(Ye.domElement.checked=je),fe.setValue(Ye.id,{value:je})}}catch(Xe){Le.e(Xe)}finally{Le.f()}}};ie._dispatchEventFromSandbox(we,se)}),this._setEventListeners(me,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],function(se){return se.target.checked})}
vendor: 12,678 bytes, line 1
1return this._setBackgroundColor(me),this.container.appendChild(me),this.container}}]),ne}(S),J=function(le){g(ne,le);var pe=o(ne);function ne(){return k(this,ne),pe.apply(this,arguments)}return E(ne,[{key:"render",value:function(){var ie=e(c(ne.prototype),"render",this).call(this);return ie.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(ie.title=this.data.alternativeText),ie}}]),ne}(v),ge=function(le){g(ne,le);var pe=o(ne);function ne(ce){return k(this,ne),pe.call(this,ce,{isRenderable:ce.renderForms})}return E(ne,[{key:"render",value:function(){var ie=this;this.container.className="choiceWidgetAnnotation";var fe=this.annotationStorage,Se=this.data.id;fe.getValue(Se,{value:this.data.fieldValue.length>0?this.data.fieldValue[0]:void 0});var Te=this.data.defaultAppearanceData.fontSize;Te||(Te=9);var Re="calc(".concat(Te,"px * var(--zoom-factor))"),me=document.createElement("select");y.add(me),me.disabled=this.data.readOnly,me.name=this.data.fieldName,me.setAttribute("id",Se),me.tabIndex=x,me.style.fontSize="".concat(Te,"px"),this.data.combo||(me.size=this.data.options.length,this.data.multiSelect&&(me.multiple=!0)),me.addEventListener("resetform",function(Le){var je,Ue=ie.data.defaultFieldValue,Ye=A(me.options);try{for(Ye.s();!(je=Ye.n()).done;){var Xe=je.value;Xe.selected=Xe.value===Ue}}catch(Ze){Ye.e(Ze)}finally{Ye.f()}});var se,Ne=A(this.data.options);try{for(Ne.s();!(se=Ne.n()).done;){var we=se.value,_e=document.createElement("option");_e.textContent=we.displayValue,_e.value=we.exportValue,this.data.combo&&(_e.style.fontSize=Re),this.data.fieldValue.includes(we.exportValue)&&_e.setAttribute("selected",!0),me.appendChild(_e)}}catch(Le){Ne.e(Le)}finally{Ne.f()}var Pe=function(Ue,Ye){var je=Ye?"value":"textContent",Xe=Ue.target.options;return Ue.target.multiple?Array.prototype.filter.call(Xe,function(Ze){return Ze.selected}).map(function(Ze){return Ze[je]}):-1===Xe.selectedIndex?null:Xe[Xe.selectedIndex][je]},ze=function(Ue){return Array.prototype.map.call(Ue.target.options,function(je){return{displayValue:je.textContent,exportValue:je.value}})};return this.enableScripting&&this.hasJSActions?(me.addEventListener("updatefromsandbox",function(Le){ie._dispatchEventFromSandbox({value:function(je){var st,Xe=je.detail.value,Ze=new Set(Array.isArray(Xe)?Xe:[Xe]),ot=A(me.options);try{for(ot.s();!(st=ot.n()).done;){var ht=st.value;ht.selected=Ze.has(ht.value)}}catch(_t){ot.e(_t)}finally{ot.f()}fe.setValue(Se,{value:Pe(je,!0)})},multipleSelection:function(je){me.multiple=!0},remove:function(je){var Xe=me.options,Ze=je.detail.remove;Xe[Ze].selected=!1,me.remove(Ze),Xe.length>0&&-1===Array.prototype.findIndex.call(Xe,function(st){return st.selected})&&(Xe[0].selected=!0),fe.setValue(Se,{value:Pe(je,!0),items:ze(je)})},clear:function(je){for(;0!==me.length;)me.remove(0);fe.setValue(Se,{value:null,items:[]})},insert:function(je){var Xe=je.detail.insert,Ze=Xe.index,ot=Xe.displayValue,st=Xe.exportValue,ht=document.createElement("option");ht.textContent=ot,ht.value=st,me.insertBefore(ht,me.children[Ze]),fe.setValue(Se,{value:Pe(je,!0),items:ze(je)})},items:function(je){for(var Xe=je.detail.items;0!==me.length;)me.remove(0);var ot,Ze=A(Xe);try{for(Ze.s();!(ot=Ze.n()).done;){var st=ot.value,ht=st.displayValue,_t=st.exportValue,gt=document.createElement("option");gt.textContent=ht,gt.value=_t,me.appendChild(gt)}}catch(Nt){Ze.e(Nt)}finally{Ze.f()}me.options.length>0&&(me.options[0].selected=!0),fe.setValue(Se,{value:Pe(je,!0),items:ze(je)})},indices:function(je){var ot,Xe=new Set(je.detail.indices),Ze=A(je.target.options);try{for(Ze.s();!(ot=Ze.n()).done;){var st=ot.value;st.selected=Xe.has(st.index)}}catch(ht){Ze.e(ht)}finally{Ze.f()}fe.setValue(Se,{value:Pe(je,!0)})},editable:function(je){je.target.disabled=!je.detail.editable}},Le)}),me.addEventListener("input",function(Le){var Ue,Ye=Pe(Le,!0),je=Pe(Le,!1);fe.setValue(Se,{value:Ye}),null===(Ue=ie.linkService.eventBus)||void 0===Ue||Ue.dispatch("dispatcheventinsandbox",{source:ie,detail:{id:Se,name:"Keystroke",value:je,changeEx:Ye,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(me,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],function(Le){return Le.target.checked})):me.addEventListener("input",function(Le){fe.setValue(Se,{value:Pe(Le)})}),this._setBackgroundColor(me),this.container.appendChild(me),this.container}}]),ne}(S),de=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe;k(this,ne);var Se=!!(null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return pe.call(this,ce,{isRenderable:Se})}return E(ne,[{key:"render",value:function(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;var fe='[data-annotation-id="'.concat(this.data.parentId,'"]'),Se=this.layer.querySelectorAll(fe);if(0===Se.length)return this.container;var Te=new he({container:this.container,trigger:Array.from(Se),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj}),Re=this.page,me=M.Util.normalizeRect([this.data.parentRect[0],Re.view[3]-this.data.parentRect[1]+Re.view[1],this.data.parentRect[2],Re.view[3]-this.data.parentRect[3]+Re.view[1]]),Ne=me[0]+this.data.parentRect[2]-this.data.parentRect[0],se=me[1];return this.container.style.transformOrigin="".concat(-Ne,"px ").concat(-se,"px"),this.container.style.left="".concat(Ne,"px"),this.container.style.top="".concat(se,"px"),this.container.appendChild(Te.render()),this.container}}]),ne}(h),he=function(){function le(pe){k(this,le),this.container=pe.container,this.trigger=pe.trigger,this.color=pe.color,this.titleObj=pe.titleObj,this.modificationDate=pe.modificationDate,this.contentsObj=pe.contentsObj,this.hideWrapper=pe.hideWrapper||!1,this.pinned=!1}return E(le,[{key:"render",value:function(){var ce=document.createElement("div");ce.className="popupWrapper",this.hideElement=this.hideWrapper?ce:this.container,this.hideElement.hidden=!0;var ie=document.createElement("div");ie.className="popup";var fe=this.color;fe&&(ie.style.backgroundColor=M.Util.makeHexColor(0|.7*(255-fe[0])+fe[0],0|.7*(255-fe[1])+fe[1],0|.7*(255-fe[2])+fe[2]));var me=document.createElement("h1");me.dir=this.titleObj.dir,me.textContent=this.titleObj.str,ie.appendChild(me);var Ne=N.PDFDateString.toDateObject(this.modificationDate);if(Ne){var se=document.createElement("span");se.textContent="{{date}}, {{time}}",se.dataset.l10nId="annotation_date_string",se.dataset.l10nArgs=JSON.stringify({date:Ne.toLocaleDateString(),time:Ne.toLocaleTimeString()}),ie.appendChild(se)}var we=this._formatContents(this.contentsObj);ie.appendChild(we),Array.isArray(this.trigger)||(this.trigger=[this.trigger]);var Pe,_e=A(this.trigger);try{for(_e.s();!(Pe=_e.n()).done;){var ze=Pe.value;ze.addEventListener("click",this._toggle.bind(this)),ze.addEventListener("mouseover",this._show.bind(this,!1)),ze.addEventListener("mouseout",this._hide.bind(this,!1))}}catch(Le){_e.e(Le)}finally{_e.f()}return ie.addEventListener("click",this._hide.bind(this,!0)),ce.appendChild(ie),ce}},{key:"_formatContents",value:function(ne){var ce=ne.str,ie=ne.dir,fe=document.createElement("p");fe.dir=ie;for(var Se=ce.split(/(?:\r\n?|\n)/),Te=0,Re=Se.length;Te<Re;++Te)fe.appendChild(document.createTextNode(Se[Te])),Te<Re-1&&fe.appendChild(document.createElement("br"));return fe}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var ne=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ne&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var ne=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];ne&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex-=1)}}]),le}(),be=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe;k(this,ne);var Se=!!(ce.data.hasPopup||null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return pe.call(this,ce,{isRenderable:Se,ignoreBorder:!0})}return E(ne,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),ne}(h),oe=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe;k(this,ne);var Se=!!(ce.data.hasPopup||null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return pe.call(this,ce,{isRenderable:Se,ignoreBorder:!0})}return E(ne,[{key:"render",value:function(){this.container.className="lineAnnotation";var ie=this.data,Te=this.svgFactory.create(ie.rect[2]-ie.rect[0],ie.rect[3]-ie.rect[1]),Re=this.svgFactory.createElement("svg:line");return Re.setAttribute("x1",ie.rect[2]-ie.lineCoordinates[0]),Re.setAttribute("y1",ie.rect[3]-ie.lineCoordinates[1]),Re.setAttribute("x2",ie.rect[2]-ie.lineCoordinates[2]),Re.setAttribute("y2",ie.rect[3]-ie.lineCoordinates[3]),Re.setAttribute("stroke-width",ie.borderStyle.width||1),Re.setAttribute("stroke","transparent"),Te.appendChild(Re),this.container.append(Te),this._createPopup(Re,ie),this.container}}]),ne}(h),q=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe;k(this,ne);var Se=!!(ce.data.hasPopup||null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return pe.call(this,ce,{isRenderable:Se,ignoreBorder:!0})}return E(ne,[{key:"render",value:function(){this.container.className="squareAnnotation";var ie=this.data,fe=ie.rect[2]-ie.rect[0],Se=ie.rect[3]-ie.rect[1],Te=this.svgFactory.create(fe,Se),Re=ie.borderStyle.width,me=this.svgFactory.createElement("svg:rect");return me.setAttribute("x",Re/2),me.setAttribute("y",Re/2),me.setAttribute("width",fe-Re),me.setAttribute("height",Se-Re),me.setAttribute("stroke-width",Re||1),me.setAttribute("stroke","transparent"),me.setAttribute("fill","none"),Te.appendChild(me),this.container.append(Te),this._createPopup(me,ie),this.container}}]),ne}(h),G=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe;k(this,ne);var Se=!!(ce.data.hasPopup||null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return pe.call(this,ce,{isRenderable:Se,ignoreBorder:!0})}return E(ne,[{key:"render",value:function(){this.container.className="circleAnnotation";var ie=this.data,fe=ie.rect[2]-ie.rect[0],Se=ie.rect[3]-ie.rect[1],Te=this.svgFactory.create(fe,Se),Re=ie.borderStyle.width,me=this.svgFactory.createElement("svg:ellipse");return me.setAttribute("cx",fe/2),me.setAttribute("cy",Se/2),me.setAttribute("rx",fe/2-Re/2),me.setAttribute("ry",Se/2-Re/2),me.setAttribute("stroke-width",Re||1),me.setAttribute("stroke","transparent"),me.setAttribute("fill","none"),Te.appendChild(me),this.container.append(Te),this._createPopup(me,ie),this.container}}]),ne}(h),L=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe,Se;k(this,ne);var Te=!!(ce.data.hasPopup||null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return(Se=pe.call(this,ce,{isRenderable:Te,ignoreBorder:!0})).containerClassName="polylineAnnotation",Se.svgElementName="svg:polyline",Se}return E(ne,[{key:"render",value:function(){this.container.className=this.containerClassName;var Ne,ie=this.data,Te=this.svgFactory.create(ie.rect[2]-ie.rect[0],ie.rect[3]-ie.rect[1]),Re=[],me=A(ie.vertices);try{for(me.s();!(Ne=me.n()).done;){var se=Ne.value;Re.push(se.x-ie.rect[0]+","+(ie.rect[3]-se.y))}}catch(ze){me.e(ze)}finally{me.f()}Re=Re.join(" ");var Pe=this.svgFactory.createElement(this.svgElementName);return Pe.setAttribute("points",Re),Pe.setAttribute("stroke-width",ie.borderStyle.width||1),Pe.setAttribute("stroke","transparent"),Pe.setAttribute("fill","none"),Te.appendChild(Pe),this.container.append(Te),this._createPopup(Pe,ie),this.container}}]),ne}(h),F=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie;return k(this,ne),(ie=pe.call(this,ce)).containerClassName="polygonAnnotation",ie.svgElementName="svg:polygon",ie}return ne}(L),Z=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe;k(this,ne);var Se=!!(ce.data.hasPopup||null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return pe.call(this,ce,{isRenderable:Se,ignoreBorder:!0})}return E(ne,[{key:"render",value:function(){return this.container.className="
1caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),ne}(h),re=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe,Se;k(this,ne);var Te=!!(ce.data.hasPopup||null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return(Se=pe.call(this,ce,{isRenderable:Te,ignoreBorder:!0})).containerClassName="inkAnnotation",Se.svgElementName="svg:polyline",Se}return E(ne,[{key:"render",value:function(){this.container.className=this.containerClassName;var me,ie=this.data,Te=this.svgFactory.create(ie.rect[2]-ie.rect[0],ie.rect[3]-ie.rect[1]),Re=A(ie.inkLists);try{for(Re.s();!(me=Re.n()).done;){var _e,se=[],we=A(me.value);try{for(we.s();!(_e=we.n()).done;){var Pe=_e.value,Le=ie.rect[3]-Pe.y;se.push("".concat(Pe.x-ie.rect[0],",").concat(Le))}}catch(Ye){we.e(Ye)}finally{we.f()}se=se.join(" ");var Ue=this.svgFactory.createElement(this.svgElementName);Ue.setAttribute("points",se),Ue.setAttribute("stroke-width",ie.borderStyle.width||1),Ue.setAttribute("stroke","transparent"),Ue.setAttribute("fill","none"),this._createPopup(Ue,ie),Te.appendChild(Ue)}}catch(Ye){Re.e(Ye)}finally{Re.f()}return this.container.append(Te),this.container}}]),ne}(h),ue=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe;k(this,ne);var Se=!!(ce.data.hasPopup||null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return pe.call(this,ce,{isRenderable:Se,ignoreBorder:!0,createQuadrilaterals:!0})}return E(ne,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}]),ne}(h),ve=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe;k(this,ne);var Se=!!(ce.data.hasPopup||null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return pe.call(this,ce,{isRenderable:Se,ignoreBorder:!0,createQuadrilaterals:!0})}return E(ne,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}]),ne}(h),ke=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe;k(this,ne);var Se=!!(ce.data.hasPopup||null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return pe.call(this,ce,{isRenderable:Se,ignoreBorder:!0,createQuadrilaterals:!0})}return E(ne,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}]),ne}(h),Ie=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe;k(this,ne);var Se=!!(ce.data.hasPopup||null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return pe.call(this,ce,{isRenderable:Se,ignoreBorder:!0,createQuadrilaterals:!0})}return E(ne,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}]),ne}(h),Oe=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe;k(this,ne);var Se=!!(ce.data.hasPopup||null!==(ie=ce.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=ce.data.contentsObj)&&void 0!==fe&&fe.str);return pe.call(this,ce,{isRenderable:Se,ignoreBorder:!0})}return E(ne,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),ne}(h),Ee=function(le){g(ne,le);var pe=o(ne);function ne(ce){var ie,fe;k(this,ne);var Se=(fe=pe.call(this,ce,{isRenderable:!0})).data.file,Te=Se.filename,Re=Se.content;return fe.filename=(0,N.getFilenameFromUrl)(Te),fe.content=Re,null===(ie=fe.linkService.eventBus)||void 0===ie||ie.dispatch("fileattachmentannotation",{source:b(fe),id:(0,M.stringToPDFString)(Te),filename:Te,content:Re}),fe}return E(ne,[{key:"render",value:function(){var ie,fe;this.container.className="fileAttachmentAnnotation";var Se=document.createElement("div");return Se.style.height=this.container.style.height,Se.style.width=this.container.style.width,Se.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&(null!==(ie=this.data.titleObj)&&void 0!==ie&&ie.str||null!==(fe=this.data.contentsObj)&&void 0!==fe&&fe.str)&&this._createPopup(Se,this.data),this.container.appendChild(Se),this.container}}
1,{key:"_download",value:function(){var ie;null===(ie=this.downloadManager)||void 0===ie||ie.openOrDownloadData(this.container,this.content,this.filename)}}]),ne}(h);I.AnnotationLayer=function(){function le(){k(this,le)}return E(le,null,[{key:"render",value:function(ne){var Se,ce=[],ie=[],fe=A(ne.annotations);try{for(fe.s();!(Se=fe.n()).done;){var Te=Se.value;if(Te){if(Te.annotationType===M.AnnotationType.POPUP){ie.push(Te);continue}ce.push(Te)}}}catch(Le){fe.e(Le)}finally{fe.f()}ie.length&&ce.push.apply(ce,ie);for(var Re=0,me=ce;Re<me.length;Re++){var Ne=me[Re],se=f.create({data:Ne,layer:ne.div,page:ne.page,viewport:ne.viewport,linkService:ne.linkService,downloadManager:ne.downloadManager,imageResourcesPath:ne.imageResourcesPath||"",renderForms:!1!==ne.renderForms,svgFactory:new N.DOMSVGFactory,annotationStorage:ne.annotationStorage||new Y.AnnotationStorage,enableScripting:ne.enableScripting,hasJSActions:ne.hasJSActions,fieldObjects:ne.fieldObjects,mouseState:ne.mouseState||{isDown:!1}});if(se.isRenderable){var we=se.render();if(Ne.hidden&&(we.style.visibility="hidden"),Array.isArray(we)){var Pe,_e=A(we);try{for(_e.s();!(Pe=_e.n()).done;)ne.div.appendChild(Pe.value)}catch(Le){_e.e(Le)}finally{_e.f()}}else se instanceof de?ne.div.prepend(we):ne.div.appendChild(we)}}}},{key:"update",value:function(ne){var fe,ce="matrix(".concat(ne.viewport.transform.join(","),")"),ie=A(ne.annotations);try{for(ie.s();!(fe=ie.n()).done;){var Te=ne.div.querySelectorAll('[data-annotation-id="'.concat(fe.value.id,'"]'));if(Te){var me,Re=A(Te);try{for(Re.s();!(me=Re.n()).done;)me.value.style.transform=ce}catch(se){Re.e(se)}finally{Re.f()}}}}catch(se){ie.e(se)}finally{ie.f()}ne.div.hidden=!1}}]),le}()},(K,I)=>{"use strict";function s($,X){return function U($){if(Array.isArray($))return $}($)||function Y($,X){var B=null==$?null:"undefined"!=typeof Symbol&&$[Symbol.iterator]||$["@@iterator"];if(null!=B){var g,p,z=[],W=!0,D=!1;try{for(B=B.call($);!(W=(g=B.next()).done)&&(z.push(g.value),!X||z.length!==X);W=!0);}catch(o){D=!0,p=o}finally{try{!W&&null!=B.return&&B.return()}finally{if(D)throw p}}return z}}($,X)||function M($,X){if($){if("string"==typeof $)return N($,X);var B=Object.prototype.toString.call($).slice(8,-1);if("Object"===B&&$.constructor&&(B=$.constructor.name),"Map"===B||"Set"===B)return Array.from($);if("Arguments"===B||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return N($,X)}}($,X)||function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N($,X){(null==X||X>$.length)&&(X=$.length);for(var B=0,z=new Array(X);B<X;B++)z[B]=$[B];return z}function V($,X){for(var B=0;B<X.length;B++){var z=X[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty($,z.key,z)}}function R($){return Math.floor(255*Math.max(0,Math.min(1,$))).toString(16).padStart(2,"0")}Object.defineProperty(I,"__esModule",{value:!0}),I.ColorConverters=void 0,I.ColorConverters=function(){function $(){!function e($,X){if(!($ instanceof X))throw new TypeError("Cannot call a class as a function")}(this,$)}return function H($,X,B){X&&V($.prototype,X),B&&V($,B)}($,null,[{key:"CMYK_G",value:function(B){var z=s(B,4);return["G",1-Math.min(1,.3*z[0]+.59*z[2]+.11*z[1]+z[3])]}},{key:"G_CMYK",value:function(B){return["CMYK",0,0,0,1-s(B,1)[0]]}},{key:"G_RGB",value:function(B){var W=s(B,1)[0];return["RGB",W,W,W]}},{key:"G_HTML",value:function(B){var D=R(s(B,1)[0]);return"#".concat(D).concat(D).concat(D)}},{key:"RGB_G",value:function(B){var z=s(B,3);return["G",.3*z[0]+.59*z[1]+.11*z[2]]}},{key:"RGB_HTML",value:function(B){var z=s(B,3),D=z[1],g=z[2],p=R(z[0]),o=R(D),u=R(g);return"#".concat(p).concat(o).concat(u)}},{key:"T_HTML",value:function(){return"#00000000"}},{key:"CMYK_RGB",value:function(B){var z=s(B,4),D=z[1],g=z[2],p=z[3];return["RGB",1-Math.min(1,z[0]+p),1-Math.min(1,g+p),1-Math.min(1,D+p)]}},{key:"CMYK_HTML",value:function(B){return this.RGB_HTML(this.CMYK_RGB(B))}},{key:"RGB_CMYK",value:function(B){var z=s(B,3),p=1-z[0],o=1-z[1],u=1-z[2];return["CMYK",p,o,u,Math.min(p,o,u)]}}]),$}()},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.renderTextLayer=function b(m){var c=new u({textContent:m.textContent,textContentStream:m.textContentStream,container:m.container,viewport:m.viewport,textDivs:m.textDivs,textContentItemsStr:m.textContentItemsStr,enhanceTextSelection:m.enhanceTextSelection});return c._render(m.timeout),c};var l=s(4);function N(m,c){for(var A=0;A<c.length;A++){var O=c[A];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(m,O.key,O)}}function U(m,c){var A="undefined"!=typeof Symbol&&m[Symbol.iterator]||m["@@iterator"];if(!A){if(Array.isArray(m)||(A=function e(m,c){if(m){if("string"==typeof m)return V(m,c);var A=Object.prototype.toString.call(m).slice(8,-1);if("Object"===A&&m.constructor&&(A=m.constructor.name),"Map"===A||"Set"===A)return Array.from(m);if("Arguments"===A||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return V(m,c)}}(m))||c&&m&&"number"==typeof m.length){A&&(m=A);var O=0,_=function(){};return{s:_,n:function(){return O>=m.length?{done:!0}:{done:!1,value:m[O++]}},e:function(y){throw y},f:_}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var E,k=!0,P=!1;return{s:function(){A=A.call(m)},n:function(){var y=A.next();return k=y.done,y},e:function(y){P=!0,E=y},f:function(){try{!k&&null!=A.return&&A.return()}finally{if(P)throw E}}}}function V(m,c){(null==c||c>m.length)&&(c=m.length);for(var A=0,O=new Array(c);A<c;A++)O[A]=m[A];return O}var R=30,$=new Map,X=/^\s+$/g;function z(m,c,A,O){var _=document.createElement("span"),k=m._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:""!==c.str,hasEOL:c.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1}:{angle:0,canvasWidth:0,hasText:""!==c.str,hasEOL:c.hasEOL};m._textDivs.push(_);var P=l.Util.transform(m._viewport.transform,c.transform),E=Math.atan2(P[1],P[0]),x=A[c.fontName];x.vertical&&(E+=Math.PI/2);var h,v,y=Math.hypot(P[2],P[3]),f=y*function B(m,c){var A=$.get(m);
vendor: 10,756 bytes, line 1
1if(A)return A;c.save(),c.font="".concat(R,"px ").concat(m);var O=c.measureText(""),_=O.fontBoundingBoxAscent,k=Math.abs(O.fontBoundingBoxDescent);if(_){c.restore();var P=_/(_+k);return $.set(m,P),P}c.strokeStyle="red",c.clearRect(0,0,R,R),c.strokeText("g",0,0);var E=c.getImageData(0,0,R,R).data;k=0;for(var x=E.length-1-3;x>=0;x-=4)if(E[x]>0){k=Math.ceil(x/4/R);break}c.clearRect(0,0,R,R),c.strokeText("A",0,R),_=0;for(var y=0,f=(E=c.getImageData(0,0,R,R).data).length;y<f;y+=4)if(E[y]>0){_=R-Math.floor(y/4/R);break}if(c.restore(),_){var h=_/(_+k);return $.set(m,h),h}return $.set(m,.8),.8}(x.fontFamily,O);0===E?(h=P[4],v=P[5]-f):(h=P[4]+f*Math.sin(E),v=P[5]-f*Math.cos(E)),_.style.left="".concat(h,"px"),_.style.top="".concat(v,"px"),_.style.fontSize="".concat(y,"px"),_.style.fontFamily=x.fontFamily,_.setAttribute("role","presentation"),_.textContent=c.str,_.dir=c.dir,m._fontInspectorEnabled&&(_.dataset.fontName=c.fontName),0!==E&&(k.angle=E*(180/Math.PI));var d=!1;if(c.str.length>1||m._enhanceTextSelection&&X.test(c.str))d=!0;else if(c.transform[0]!==c.transform[3]){var S=Math.abs(c.transform[0]),w=Math.abs(c.transform[3]);S!==w&&Math.max(S,w)/Math.min(S,w)>1.5&&(d=!0)}if(d&&(k.canvasWidth=x.vertical?c.height*m._viewport.scale:c.width*m._viewport.scale),m._textDivProperties.set(_,k),m._textContentStream&&m._layoutText(_),m._enhanceTextSelection&&k.hasText){var j=1,te=0;0!==E&&(j=Math.cos(E),te=Math.sin(E));var de,he,J=(x.vertical?c.height:c.width)*m._viewport.scale,ge=y;he=0!==E?l.Util.getAxialAlignedBoundingBox([0,0,J,ge],de=[j,te,-te,j,h,v]):[h,v,h+J,v+ge],m._bounds.push({left:he[0],top:he[1],right:he[2],bottom:he[3],div:_,size:[J,ge],m:de})}}function W(m){if(!m._canceled){var c=m._textDivs,A=m._capability,O=c.length;if(O>1e5)return m._renderingDone=!0,void A.resolve();if(!m._textContentStream)for(var _=0;_<O;_++)m._layoutText(c[_]);m._renderingDone=!0,A.resolve()}}function D(m,c,A){for(var O=0,_=0;_<A;_++){var k=m[c++];k>0&&(O=O?Math.min(k,O):k)}return O}function g(m){for(var c=m._bounds,A=m._viewport,O=function p(m,c,A){var O=A.map(function(d,S){return{x1:d.left,y1:d.top,x2:d.right,y2:d.bottom,index:S,x1New:void 0,x2New:void 0}});o(m,O);var P,_=new Array(A.length),k=U(O);try{for(k.s();!(P=k.n()).done;){var E=P.value;_[E.index]={left:E.x1New,top:0,right:E.x2New,bottom:0}}}catch(d){k.e(d)}finally{k.f()}A.map(function(d,S){var w=_[S],j=O[S];j.x1=d.top,j.y1=m-w.right,j.x2=d.bottom,j.y2=m-w.left,j.index=S,j.x1New=void 0,j.x2New=void 0}),o(c,O);var f,y=U(O);try{for(y.s();!(f=y.n()).done;){var h=f.value,v=h.index;_[v].top=h.x1New,_[v].bottom=h.x2New}}catch(d){y.e(d)}finally{y.f()}return _}(A.width,A.height,c),_=0;_<O.length;_++){var k=c[_].div,P=m._textDivProperties.get(k);if(0!==P.angle){for(var E=O[_],x=c[_],y=x.m,f=y[0],h=y[1],v=[[0,0],[0,x.size[1]],[x.size[0],0],x.size],d=new Float64Array(64),S=0,w=v.length;S<w;S++){var j=l.Util.applyTransform(v[S],y);d[S+0]=f&&(E.left-j[0])/f,d[S+4]=h&&(E.top-j[1])/h,d[S+8]=f&&(E.right-j[0])/f,d[S+12]=h&&(E.bottom-j[1])/h,d[S+16]=h&&(E.left-j[0])/-h,d[S+20]=f&&(E.top-j[1])/f,d[S+24]=h&&(E.right-j[0])/-h,d[S+28]=f&&(E.bottom-j[1])/f,d[S+32]=f&&(E.left-j[0])/-f,d[S+36]=h&&(E.top-j[1])/-h,d[S+40]=f&&(E.right-j[0])/-f,d[S+44]=h&&(E.bottom-j[1])/-h,d[S+48]=h&&(E.left-j[0])/h,d[S+52]=f&&(E.top-j[1])/-f,d[S+56]=h&&(E.right-j[0])/h,d[S+60]=f&&(E.bottom-j[1])/-f}var te=1+Math.min(Math.abs(f),Math.abs(h));P.paddingLeft=D(d,32,16)/te,P.paddingTop=D(d,48,16)/te,P.paddingRight=D(d,0,16)/te,P.paddingBottom=D(d,16,16)/te,m._textDivProperties.set(k,P)}else P.paddingLeft=c[_].left-O[_].left,P.paddingTop=c[_].top-O[_].top,P.paddingRight=O[_].right-c[_].right,P.paddingBottom=O[_].bottom-c[_].bottom,m._textDivProperties.set(k,P)}}function o(m,c){c.sort(function(oe,q){return oe.x1-q.x1||oe.index-q.index});var k,O=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}],_=U(c);try{for(_.s();!(k=_.n()).done;){for(var P=k.value,E=0;E<O.length&&O[E].end<=P.y1;)E++;for(var x=O.length-1;x>=0&&O[x].start>=P.y2;)x--;var y=void 0,f=void 0,h=void 0,v=void 0,d=-1/0;for(h=E;h<=x;h++){var S;(S=(f=(y=O[h]).boundary).x2>P.x1?f.index>P.index?f.x1New:P.x1:void 0===f.x2New?(f.x2+P.x1)/2:f.x2New)>d&&(d=S)}for(P.x1New=d,h=E;h<=x;h++)void 0===(f=(y=O[h]).boundary).x2New?f.x2>P.x1?f.index>P.index&&(f.x2New=f.x2):f.x2New=d:f.x2New>d&&(f.x2New=Math.max(d,f.x2));var w=[],j=null;for(h=E;h<=x;h++){var te=(f=(y=O[h]).boundary).x2>P.x2?f:P;j===te?w[w.length-1].end=y.end:(w.push({start:y.start,end:y.end,boundary:te}),j=te)}for(O[E].start<P.y1&&(w[0].start=P.y1,w.unshift({start:O[E].start,end:P.y1,boundary:O[E].boundary})),P.y2<O[x].end&&(w[w.length-1].end=P.y2,w.push({start:P.y2,end:O[x].end,boundary:O[x].boundary})),h=E;h<=x;h++)if(void 0===(f=(y=O[h]).boundary).x2New){var J=!1;for(v=E-1;!J&&v>=0&&O[v].start>=f.y1;v--)J=O[v].boundary===f;for(v=x+1;!J&&v<O.length&&O[v].end<=f.y2;v++)J=O[v].boundary===f;for(v=0;!J&&v<w.length;v++)J=w[v].boundary===f;J||(f.x2New=d)}Array.prototype.splice.apply(O,[E,x-E+1].concat(w))}}catch(oe){_.e(oe)}finally{_.f()}for(var ge=0,de=O;ge<de.length;ge++){var be=de[ge].boundary;void 0===be.x2New&&(be.x2New=Math.max(m,be.x2))}}var u=function(){function m(c){var A,O=this,_=c.textContent,k=c.textContentStream,P=c.container,E=c.viewport,x=c.textDivs,y=c.textContentItemsStr,f=c.enhanceTextSelection;(function M(m,c){if(!(m instanceof c))throw new TypeError("Cannot call a class as a function")})(this,m),this._textContent=_,this._textContentStream=k,this._container=P,this._document=P.ownerDocument,this._viewport=E,this._textDivs=x||[],this._textContentItemsStr=y||[],this._enhanceTextSelection=!!f,this._fontInspectorEnabled=!(null===(A=globalThis.FontInspector)||void 0===A||!A.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,l.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(function(){O._enhanceTextSelection||(O._textDivProperties=null),O._layoutTextCtx&&(O._layoutTextCtx.canvas.width=0,O._layoutTextCtx.canvas.height=0,O._layoutTextCtx=null)}).catch(function(){})}return function Y(m,c,A){c&&N(m.prototype,c),A&&N(m,A)}(m,[{key:"promise",get:function(){return this._capability.promise}},{key:"cancel",value:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new l.AbortException("TextLayer task cancelled.")).catch(function(){}),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}},{key:"_processItems",value:function(A,O){for(var _=0,k=A.length;_<k;_++)if(void 0!==A[_].str)this._textContentItemsStr.push(A[_].str),z(this,A[_],O,this._layoutTextCtx);else if("beginMarkedContentProps"===A[_].type||"beginMarkedContent"===A[_].type){var P=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==A[_].id&&this._container.setAttribute("id","".concat(A[_].id)),P.appendChild(this._container)}else"endMarkedContent"===A[_].type&&(this._container=this._container.parentNode)}},{key:"_layoutText",value:function(A){var O=this._textDivProperties.get(A),_="";if(0!==O.canvasWidth&&O.hasText){var k=A.style,P=k.fontSize,E=k.fontFamily;(P!==this._layoutTextLastFontSize||E!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font="".concat(P," ").concat(E),this._layoutTextLastFontSize=P,this._layoutTextLastFontFamily=E);var y=this._layoutTextCtx.measureText(A.textContent).width;if(y>0){var f=O.canvasWidth/y;this._enhanceTextSelection&&(O.scale=f),_="scaleX(".concat(f,")")}}if(0!==O.angle&&(_="rotate(".concat(O.angle,"deg) ").concat(_)),_.length>0&&(this._enhanceTextSelection&&(O.originalTransform=_),A.style.transform=_),O.hasText&&this._container.appendChild(A),O.hasEOL){var h=document.createElement("br");h.setAttribute("role","presentation"),this._container.appendChild(h)}}},{key:"_render",value:function(){var A=this,O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,_=(0,l.createPromiseCapability)(),k=Object.create(null),P=this._document.createElement("canvas");if(P.height=P.width=R,P.mozOpaque=!0,this._layoutTextCtx=P.getContext("2d",{alpha:!1}),this._textContent){var E=this._textContent.items,x=this._textContent.styles;this._processItems(E,x),_.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');var y=function f(){A._reader.read().then(function(h){var v=h.value;h.done?_.resolve():(Object.assign(k,v.styles),A._processItems(v.items,k),f())},_.reject)};this._reader=this._textContentStream.getReader(),y()}_.promise.then(function(){k=null,O?A._renderTimer=setTimeout(function(){W(A),A._renderTimer=null},O):W(A)},this._capability.reject)}},{key:"expandTextDivs",value:function(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(g(this),this._bounds=null);for(var O=[],_=[],k=0,P=this._textDivs.length;k<P;k++){var E=this._textDivs[k],x=this._textDivProperties.get(E);!x.hasText||(A?(O.length=0,_.length=0,x.originalTransform&&O.push(x.originalTransform),x.paddingTop>0?(_.push("".concat(x.paddingTop,"px")),O.push("translateY(".concat(-x.paddingTop,"px)"))):_.push(0),_.push(x.paddingRight>0?"".concat(x.paddingRight/x.scale,"px"):0),_.push(x.paddingBottom>0?"".concat(x.paddingBottom,"px"):0),x.paddingLeft>0?(_.push("".concat(x.paddingLeft/x.scale,"px")),O.push("translateX(".concat(-x.paddingLeft/x.scale,"px)"))):_.push(0),E.style.padding=_.join(" "),O.length&&(E.style.transform=O.join(" "))):(E.style.padding=null,E.style.transform=x.originalTransform))}}}}]),m}()},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.SVGGraphics=void 0;var l=s(4),M=s(1),N=s(6);function Y(f){return function V(f){if(Array.isArray(f))return z(f)}(f)||function e(f){if("undefined"!=typeof Symbol&&null!=f[Symbol.iterator]||null!=f["@@iterator"])return Array.from(f)}(f)||B(f)||function U(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(f,h){return function $(f){if(Array.isArray(f))return f}(f)||function Q(f,h){var v=null==f?null:"undefined"!=typeof Symbol&&f[Symbol.iterator]||f["@@iterator"];if(null!=v){var j,te,d=[],S=!0,w=!1;try{for(v=v.call(f);!(S=(j=v.next()).done)&&(d.push(j.value),!h||d.length!==h);S=!0);}catch(J){w=!0,te=J}finally{try{!S&&null!=v.return&&v.return()}finally{if(w)throw te}}return d}}(f,h)||B(f,h)||function R(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(f,h){var v="undefined"!=typeof Symbol&&f[Symbol.iterator]||f["@@iterator"];if(!v){if(Array.isArray(f)||(v=B(f))||h&&f&&"number"==typeof f.length){v&&(f=v);var d=0,S=function(){};return{s:S,n:function(){return d>=f.length?{done:!0}:{done:!1,value:f[d++]}},e:function(ge){throw ge},f:S}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var te,w=!0,j=!1;return{s:function(){v=v.call(f)},n:function(){var ge=v.next();return w=ge.done,ge},e:function(ge){j=!0,te=ge},f:function(){try{!w&&null!=v.return&&v.return()}finally{if(j)throw te}}}}function B(f,h){if(f){if("string"==typeof f)return z(f,h);var v=Object.prototype.toString.call(f).slice(8,-1);if("Object"===v&&f.constructor&&(v=f.constructor.name),"Map"===v||"Set"===v)return Array.from(f);if("Arguments"===v||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return z(f,h)}}function z(f,h){(null==h||h>f.length)&&(h=f.length);for(var v=0,d=new Array(h);v<h;v++)d[v]=f[v];return d}function W(f,h){for(var v=0;v<h.length;v++){var d=h[v];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(f,d.key,d)}}function D(f,h,v){return h&&W(f.prototype,h),v&&W(f,v),f}function g(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var p=function f(){g(this,f),(0,l.unreachable)("Not implemented: SVGGraphics")};I.SVGGraphics=p;var u=function(h){if(Number.isInteger(h))return h.toString();var v=h.toFixed(10),d=v.length-1;if("0"!==v[d])return v;do{d--}while("0"===v[d]);return v.substring(0,"."===v[d]?d:d+1)},b=function(h){if(0===h[4]&&0===h[5]){if(0===h[1]&&0===h[2])return 1===h[0]&&1===h[3]?"":"scale(".concat(u(h[0])," ").concat(u(h[3]),")");if(h[0]===h[3]&&h[1]===-h[2]){var v=180*Math.acos(h[0])/Math.PI;return"rotate(".concat(u(v),")")}}else if(1===h[0]&&0===h[1]&&0===h[2]&&1===h[3])return"translate(".concat(u(h[4])," ").concat(u(h[5]),")");return"matrix(".concat(u(h[0])," ").concat(u(h[1])," ").concat(u(h[2])," ").concat(u(h[3])," ").concat(u(h[4])," ")+"".concat(u(h[5]),")")},m_fontStyle="normal",m_fontWeight="normal",m_fillColor="#000000",O=["butt","round","square"],_=["miter","round","bevel"],k=function(){for(var f=new Uint8Array([137,80,78,71,13,10,26,10]),v=new Int32Array(256),d=0;d<256;d++){for(var S=d,w=0;w<8;w++)S=1&S?3988292384^S>>1&2147483647:S>>1&2147483647;v[d]=S}function te(be,oe,q,G){var L=G,F=oe.length;q[L]=F>>24&255,q[L+1]=F>>16&255,q[L+2]=F>>8&255,q[L+3]=255&F,q[L+=4]=255&be.charCodeAt(0),q[L+1]=255&be.charCodeAt(1),q[L+2]=255&be.charCodeAt(2),q[L+3]=255&be.charCodeAt(3),q.set(oe,L+=4);var Z=function j(be,oe,q){for(var G=-1,L=oe;L<q;L++)G=G>>>8^v[255&(G^be[L])];return-1^G}(q,G+4,L+=oe.length);q[L]=Z>>24&255,q[L+1]=Z>>16&255,q[L+2]=Z>>8&255,q[L+3]=255&Z}function de(be){var oe=be.length,q=65535,G=Math.ceil(oe/q),L=new Uint8Array(2+oe+5*G+4),F=0;L[F++]=120,L[F++]=156;for(var Z=0;oe>q;)L[F++]=0,L[F++]=255,L[F++]=255,L[F++]=0,L[F++]=0,L.set(be.subarray(Z,Z+q),F),F+=q,Z+=q,oe-=q;L[F++]=1,L[F++]=255&oe,L[F++]=oe>>8&255,L[F++]=255&~oe,L[F++]=(65535&~oe)>>8&255,L.set(be.subarray(Z),F),F+=be.length-Z;var re=function J(be,oe,q){for(var G=1,L=0,F=oe;F<q;++F)L=(L+(G=(G+(255&be[F]))%65521))%65521;return L<<16|G}(be,0,be.length);return L[F++]=re>>24&255,L[F++]=re>>16&255,L[F++]=re>>8&255,L[F++]=255&re,L}return function(oe,q,G){return function he(be,oe,q,G){var Z,re,ue,L=be.width,F=be.height,ve=be.data;switch(oe){case l.ImageKind.GRAYSCALE_1BPP:re=0,Z=1,ue=L+7>>3;break;case l.ImageKind.RGB_24BPP:re=2,Z=8,ue=3*L;break;case l.ImageKind.RGBA_32BPP:re=6,Z=8,ue=4*L;break;default:throw new Error("invalid format")}for(var ke=new Uint8Array((1+ue)*F),Ie=0,Oe=0,Ee=0;Ee<F;++Ee)ke[Ie++]=0,ke.set(ve.subarray(Oe,Oe+ue),Ie),Oe+=ue,Ie+=ue;if(oe===l.ImageKind.GRAYSCALE_1BPP&&G){Ie=0;for(var Ve=0;Ve<F;Ve++){Ie++;for(var le=0;le<ue;le++)ke[Ie++]^=255}}var pe=new Uint8Array([L>>24&255,L>>16&255,L>>8&255,255&L,F>>24&255,F>>16&255,F>>8&255,255&F,Z,re,0,0,0]),ne=function ge(be){if(!N.isNodeJS)return de(be);try{var oe;oe=parseInt(process.versions.node)>=8?be:Buffer.from(be);var q=__webpack_require__(87324).deflateSync(oe,{level:9});return q instanceof Uint8Array?q:new Uint8Array(q)}catch(G){(0,l.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+G)}return de(be)}(ke),ie=new Uint8Array(f.length+36+pe.length+ne.length),fe=0;return ie.set(f,fe),te("IHDR",pe,ie,fe+=f.length),te("IDATA",ne,ie,fe+=12+pe.length),fe+=12+ne.length,te("IEND",new Uint8Array(0),ie,fe),(0,l.createObjectURL)(ie,"image/png",q)}(oe,void 0===oe.kind?l.ImageKind.GRAYSCALE_1BPP:oe.kind,q,G)}}(),P=function(){function f(){g(this,f),this.fontSizeScale=1,this.fontWeight=m_fontWeight,this.fontSize=0,this.textMatrix=l.IDENTITY_MATRIX,this.fontMatrix=l.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=l.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=m_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=""}return D(f,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(v,d){this.x=v,this.y=d}}]),f}(),E=0,x=0,y=0;I.SVGGraphics=p=function(){function f(h,v){var d=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var S in g(this,f),this.svgFactory=new M.DOMSVGFactory,this.current=ne
vendor: 22,515 bytes, line 1
1w P,this.transformMatrix=l.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=h,this.objs=v,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!d,this._operatorIdMapping=[],l.OPS)this._operatorIdMapping[l.OPS[S]]=S}return D(f,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var v=this.current;this.extraStack.push(v),this.current=v.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(v){this.save(),this.executeOpTree(v),this.restore()}},{key:"loadDependencies",value:function(v){for(var d=this,S=v.fnArray,w=v.argsArray,j=0,te=S.length;j<te;j++)if(S[j]===l.OPS.dependency){var ge,J=X(w[j]);try{var de=function(){var be=ge.value,oe=be.startsWith("g_")?d.commonObjs:d.objs,q=new Promise(function(G){oe.get(be,G)});d.current.dependencies.push(q)};for(J.s();!(ge=J.n()).done;)de()}catch(he){J.e(he)}finally{J.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(v,d,S,w,j,te){this.transformMatrix=l.Util.transform(this.transformMatrix,[v,d,S,w,j,te]),this.tgrp=null}},{key:"getSVG",value:function(v,d){var S=this;this.viewport=d;var w=this._initialize(d);return this.loadDependencies(v).then(function(){return S.transformMatrix=l.IDENTITY_MATRIX,S.executeOpTree(S.convertOpList(v)),w})}},{key:"convertOpList",value:function(v){for(var d=this._operatorIdMapping,S=v.argsArray,w=v.fnArray,j=[],te=0,J=w.length;te<J;te++){var ge=w[te];j.push({fnId:ge,fn:d[ge],args:S[te]})}return function(h){var w,v=[],d=[],S=X(h);try{for(S.s();!(w=S.n()).done;){var j=w.value;"save"!==j.fn?"restore"===j.fn?v=d.pop():v.push(j):(v.push({fnId:92,fn:"group",items:[]}),d.push(v),v=v[v.length-1].items)}}catch(te){S.e(te)}finally{S.f()}return v}(j)}},{key:"executeOpTree",value:function(v){var S,d=X(v);try{for(d.s();!(S=d.n()).done;){var w=S.value,j=w.fn,J=w.args;switch(0|w.fnId){case l.OPS.beginText:this.beginText();break;case l.OPS.dependency:break;case l.OPS.setLeading:this.setLeading(J);break;case l.OPS.setLeadingMoveText:this.setLeadingMoveText(J[0],J[1]);break;case l.OPS.setFont:this.setFont(J);break;case l.OPS.showText:case l.OPS.showSpacedText:this.showText(J[0]);break;case l.OPS.endText:this.endText();break;case l.OPS.moveText:this.moveText(J[0],J[1]);break;case l.OPS.setCharSpacing:this.setCharSpacing(J[0]);break;case l.OPS.setWordSpacing:this.setWordSpacing(J[0]);break;case l.OPS.setHScale:this.setHScale(J[0]);break;case l.OPS.setTextMatrix:this.setTextMatrix(J[0],J[1],J[2],J[3],J[4],J[5]);break;case l.OPS.setTextRise:this.setTextRise(J[0]);break;case l.OPS.setTextRenderingMode:this.setTextRenderingMode(J[0]);break;case l.OPS.setLineWidth:this.setLineWidth(J[0]);break;case l.OPS.setLineJoin:this.setLineJoin(J[0]);break;case l.OPS.setLineCap:this.setLineCap(J[0]);break;case l.OPS.setMiterLimit:this.setMiterLimit(J[0]);break;case l.OPS.setFillRGBColor:this.setFillRGBColor(J[0],J[1],J[2]);break;case l.OPS.setStrokeRGBColor:this.setStrokeRGBColor(J[0],J[1],J[2]);break;case l.OPS.setStrokeColorN:this.setStrokeColorN(J);break;case l.OPS.setFillColorN:this.setFillColorN(J);break;case l.OPS.shadingFill:this.shadingFill(J[0]);break;case l.OPS.setDash:this.setDash(J[0],J[1]);break;case l.OPS.setRenderingIntent:this.setRenderingIntent(J[0]);break;case l.OPS.setFlatness:this.setFlatness(J[0]);break;case l.OPS.setGState:this.setGState(J[0]);break;case l.OPS.fill:this.fill();break;case l.OPS.eoFill:this.eoFill();break;case l.OPS.stroke:this.stroke();break;case l.OPS.fillStroke:this.fillStroke();break;case l.OPS.eoFillStroke:this.eoFillStroke();break;case l.OPS.clip:this.clip("nonzero");break;case l.OPS.eoClip:this.clip("evenodd");break;case l.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case l.OPS.paintImageXObject:this.paintImageXObject(J[0]);break;case l.OPS.paintInlineImageXObject:this.paintInlineImageXObject(J[0]);break;case l.OPS.paintImageMaskXObject:this.paintImageMaskXObject(J[0]);break;case l.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(J[0],J[1]);break;case l.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case l.OPS.closePath:this.closePath();break;case l.OPS.closeStroke:this.closeStroke();break;case l.OPS.closeFillStroke:this.closeFillStroke();break;case l.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case l.OPS.nextLine:this.nextLine();break;case l.OPS.transform:this.transform(J[0],J[1],J[2],J[3],J[4],J[5]);break;case l.OPS.constructPath:this.constructPath(J[0],J[1]);break;case l.OPS.endPath:this.endPath();break;case 92:this.group(w.items);break;default:(0,l.warn)("Unimplemented operator ".concat(j))}}}catch(ge){d.e(ge)}finally{d.f()}}},{key:"setWordSpacing",value:function(v){this.current.wordSpacing=v}},{key:"setCharSpacing",value:function(v){this.current.charSpacing=v}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(v,d,S,w,j,te){var J=this.current;J.textMatrix=J.lineMatrix=[v,d,S,w,j,te],J.textMatrixScale=Math.hypot(v,d),J.x=J.lineX=0,J.y=J.lineY=0,J.xcoords=[],J.ycoords=[],J.tspan=this.svgFactory.createElement("svg:tspan"),J.tspan.setAttributeNS(null,"font-family",J.fontFamily),J.tspan.setAttributeNS(null,"font-size","".concat(u(J.fontSize),"px")),J.tspan.setAttributeNS(null,"y",u(-J.y)),J.txtElement=this.svgFactory.createElement("svg:text"),J.txtElement.appendChild(J.tspan)}},{key:"beginText",value:function(){var v=this.current;v.x=v.lineX=0,v.y=v.lineY=0,v.textMatrix=l.IDENTITY_MATRIX,v.lineMatrix=l.IDENTITY_MATRIX,v.textMatrixScale=1,v.tspan=this.svgFactory.createElement("svg:tspan"),v.txtElement=this.svgFactory.createElement("svg:text"),v.txtgrp=this.svgFactory.createElement("svg:g"),v.xcoords=[],v.ycoords=[]}},{key:"moveText",value:function(v,d){var S=this.current;S.x=S.lineX+=v,S.y=S.lineY+=d,S.xcoords=[],S.ycoords=[],S.tspan=this.svgFactory.createElement("svg:tspan"),S.tspan.setAttributeNS(null,"font-family",S.fontFamily),S.tspan.setAttributeNS(null,"font-size","".concat(u(S.fontSize),"px")),S.tspan.setAttributeNS(null,"y",u(-S.y))}},{key:"showText",value:function(v){var d=this.current,S=d.font,w=d.fontSize;if(0!==w){var F,j=d.fontSizeScale,te=d.charSpacing,J=d.wordSpacing,ge=d.fontDirection,de=d.textHScale*ge,he=S.vertical,be=he?1:-1,oe=S.defaultVMetrics,q=w*d.fontMatrix[0],G=0,L=X(v);try{for(L.s();!(F=L.n()).done;){var Z=F.value;if(null!==Z)if((0,l.isNum)(Z))G+=be*Z*w/1e3;else{var re=(Z.isSpace?J:0)+te,ue=Z.fontChar,ve=void 0,ke=void 0,Ie=Z.width;if(he){var Oe=void 0,Ee=Z.vmetric||oe;Oe=Z.vmetric?Ee[1]:.5*Ie,Ie=Ee?-Ee[0]:Ie,ve=(Oe=-Oe*q)/j,ke=(G+Ee[2]*q)/j}else ve=G/j,ke=0;(Z.isInFont||S.missingFile)&&(d.xcoords.push(d.x+ve),he&&d.ycoords.push(-d.y+ke),d.tspan.textContent+=ue),G+=he?Ie*q-re*ge:Ie*q+re*ge}else G+=ge*J}}catch(ie){L.e(ie)}finally{L.f()}d.tspan.setAttributeNS(null,"x",d.xcoords.map(u).join(" ")),d.tspan.setAttributeNS(null,"y",he?d.ycoords.map(u).join(" "):u(-d.y)),he?d.y-=G:d.x+=G*de,d.tspan.setAttributeNS(null,"font-family",d.fontFamily),d.tspan.setAttributeNS(null,"font-size","".concat(u(d.fontSize),"px")),d.fontStyle!==m_fontStyle&&d.tspan.setAttributeNS(null,"font-style",d.fontStyle),d.fontWeight!==m_fontWeight&&d.tspan.setAttributeNS(null,"font-weight",d.fontWeight);var pe=d.textRenderingMode&l.TextRenderingMode.FILL_STROKE_MASK;pe===l.TextRenderingMode.FILL||pe===l.TextRenderingMode.FILL_STROKE?(d.fillColor!==m_fillColor&&d.tspan.setAttributeNS(null,"fill",d.fillColor),d.fillAlpha<1&&d.tspan.setAttributeNS(null,"fill-opacity",d.fillAlpha)):d.tspan.setAttributeNS(null,"fill",d.textRenderingMode===l.TextRenderingMode.ADD_TO_PATH?"transparent":"none"),(pe===l.TextRenderingMode.STROKE||pe===l.TextRenderingMode.FILL_STROKE)&&this._setStrokeAttributes(d.tspan,1/(d.textMatrixScale||1));var ce=d.textMatrix;0!==d.textRise&&((ce=ce.slice())[5]+=d.textRise),d.txtElement.setAttributeNS(null,"transform","".concat(b(ce)," scale(").concat(u(de),", -1)")),d.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),d.txtElement.appendChild(d.tspan),d.txtgrp.appendChild(d.txtElement),this._ensureTransformGroup().appendChild(d.txtElement)}}},{key:"setLeadingMoveText",value:function(v,d){this.setLeading(-d),this.moveText(v,d)}},{key:"addFontStyle",value:function(v){if(!v.data)throw new Error('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));var d=(0,l.createObjectURL)(v.data,v.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(v.loadedName,'";')+" src: url(".concat(d,"); }\n")}},{key:"setFont",value:function(v){var d=this.current,S=this.commonObjs.get(v[0]),w=v[1];d.font=S,this.embedFonts&&!S.missingFile&&!this.embeddedFonts[S.loadedName]&&(this.addFontStyle(S),this.embeddedFonts[S.loadedName]=S),d.fontMatrix=S.fontMatrix||l.FONT_IDENTITY_MATRIX;var j="normal";S.black?j="900":S.bold&&(j="bold");var te=S.italic?"italic":"normal";w<0?(w=-w,d.fontDirection=-1):d.fontDirection=1,d.fontSize=w,d.fontFamily=S.loadedName,d.fontWeight=j,d.fontStyle=te,d.tspan=this.svgFactory.createElement("svg:tspan"),d.tspan.setAttributeNS(null,"y",u(-d.y)),d.xcoords=[],d.ycoords=[]}},{key:"endText",value:function(){var v,d=this.current;d.textRenderingMode&l.TextRenderingMode.ADD_TO_PATH_FLAG&&null!==(v=d.txtElement)&&void 0!==v&&v.hasChildNodes()&&(d.element=d.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(v){v>0&&(this.current.lineWidth=v)}},{key:"setLineCap",value:function(v){this.current.lineCap=O[v]}},{key:"setLineJoin",value:function(v){this.current.lineJoin=_[v]}},{key:"setMiterLimit",value:function(v){this.current.miterLimit=v}},{key:"setStrokeAlpha",value:function(v){this.current.strokeAlpha=v}},{key:"setStrokeRGBColor",value:function(v,d,S){this.current.strokeColor=l.Util.makeHexColor(v,d,S)}},{key:"setFillAlpha",value:function(v){this.current.fillAlpha=v}},{key:"setFillRGBColor",value:function(v,d,S){this.current.fillColor=l.Util.makeHexColor(v,d,S),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(v){this.current.strokeColor=this._makeColorN_Pattern(v)}},{key:"setFillColorN",value:function(v){this.current.fillColor=this._makeColorN_Pattern(v)}},{key:"shadingFill",value:function(v){var d=this.viewport.width,S=this.viewport.height,w=l.Util.inverseTransform(this.transformMatrix),j=l.Util.applyTransform([0,0],w),te=l.Util.applyTransform([0,S],w),J=l.Util.applyTransform([d,0],w),ge=l.Util.applyTransform([d,S],w),de=Math.min(j[0],te[0],J[0],ge[0]),he=Math.min(j[1],te[1],J[1],ge[1]),be=Math.max(j[0],te[0],J[0],ge[0]),oe=Math.max(j[1],te[1],J[1],ge[1]),q=this.svgFactory.createElement("svg:rect");q.setAttributeNS(null,"x",de),q.setAttributeNS(null,"y",he),q.setAttributeNS(null,"width",be-de),q.setAttributeNS(null,"height",oe-he),q.setAttributeNS(null,"fill",this._makeShadingPattern(v)),this.current.fillAlpha<1&&q.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(q)}},{key:"_makeColorN_Pattern",value:function(v){return"TilingPattern"===v[0]?this._makeTilingPattern(v):this._makeShadingPattern(v)}},{key:"_makeTilingPattern",value:function(v){var d=v[1],S=v[2],w=v[3]||l.IDENTITY_MATRIX,j=H(v[4],4),te=j[0],J=j[1],ge=j[2],de=j[3],he=v[5],be=v[6],oe=v[7],q="shading".concat(y++),L=H(l.Util.normalizeRect([].concat(Y(l.Util.applyTransform([te,J],w)),Y(l.Util.applyTransform([ge,de],w)))),4),F=L[0],Z=L[1],re=L[2],ue=L[3],ke=H(l.Util.singularValueDecompose2dScale(w),2),Ee=he*ke[0],Ve=be*ke[1],le=this.svgFactory.createElement("svg:pattern");le.setAttributeNS(null,"id",q),le.setAttributeNS(null,"patternUnits","userSpaceOnUse"),le.setAttributeNS(null,"width",Ee),le.setAttributeNS(null,"height",Ve),le.setAttributeNS(null,"x","".concat(F)),le.setAttributeNS(null,"y","".concat(Z));var pe=this.svg,ne=this.transformMatrix,ce=this.current.fillColor,ie=this.current.strokeColor,fe=this.svgFactory.create(re-F,ue-Z);if(this.svg=fe,this.transformMatrix=w,2===oe){var Se=l.Util.makeHexColor.apply(l.Util,Y(d));this.current.fillColor=Se,this.current.strokeColor=Se}return this.executeOpTree(this.convertOpList(S)),this.svg=pe,this.transformMatrix=ne,this.current.fillColor=ce,this.current.strokeColor=ie,le.appendChild(fe.childNodes[0]),this.defs.appendChild(le),"url(#".concat(q,")")}},{key:"_makeShadingPattern",value:function(v){switch(v[0]){case"RadialAxial":var w,d="shading".concat(y++),S=v[3];switch(v[1]){case"axial":var j=v[4],te=v[5];(w=this.svgFactory.createElement("svg:linearGradient")).setAttributeNS(null,"id",d),w.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),w.setAttributeNS(null,"x1",j[0]),w.setAttributeNS(null,"y1",j[1]),w.setAttributeNS(null,"x2",te[0]),w.setAttributeNS(null,"y2",te[1]);break;case"radial":var J=v[4],ge=v[5],de=v[6],he=v[7];(w=this.svgFactory.createElement("svg:radialGradient")).setAttributeNS(null,"id",d),w.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),w.setAttributeNS(null,"cx",ge[0]),w.setAttributeNS(null,"cy",ge[1]),w.setAttributeNS(null,"r",he),w.setAttributeNS(null,"fx",J[0]),w.setAttributeNS(null,"fy",J[1]),w.setAttributeNS(null,"fr",de);break;default:throw new Error("Unknown RadialAxial type: ".concat(v[1]))}var oe,be=X(S);try{for(be.s();!(oe=be.n()).done;){var q=oe.value,G=this.svgFactory.createElement("svg:stop");G.setAttributeNS(null,"offset",q[0]),G.setAttributeNS(null,"stop-color",q[1]),w.appendChild(G)}}catch(L){be.e(L)}finally{be.f()}return this.defs.appendChild(w),"url(#".concat(d,")");case"Mesh":return(0,l.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(v[0]))}}},{key:"setDash",value:function(v,d){this.current.dashArray=v,this.current.dashPhase=d}},{key:"constructPath",value:function(v,d){var de,S=this.current,w=S.x,j=S.y,te=[],J=0,ge=X(v);try{for(ge.s();!(de=ge.n()).done;)switch(0|de.value){case l.OPS.rectangle:w=d[J++],j=d[J++];var q=w+d[J++],G=j+d[J++];te.push("M",u(w),u(j),"L",u(q),u(j),"L",u(q),u(G),"L",u(w),u(G),"Z");break;case l.OPS.moveTo:w=d[J++],j=d[J++],te.push("M",u(w),u(j));break;case l.OPS.lineTo:w=d[J++],j=d[J++],te.push("L",u(w),u(j));break;case l.OPS.curveTo:w=d[J+4],j=d[J+5],te.push("C",u(d[J]),u(d[J+1]),u(d[J+2]),u(d[J+3]),u(w),u(j)),J+=6;break;case l.OPS.curveTo2:te.push("C",u(w),u(j),u(d[J]),u(d[J+1]),u(d[J+2]),u(d[J+3])),w=d[J+2],j=d[J+3],J+=4;break;case l.OPS.curveTo3:w=d[J+2],j=d[J+3],te.push("C",u(d[J]),u(d[J+1]),u(w),u(j),u(w),u(j)),J+=4;break;case l.OPS.closePath:te.push("Z")}}catch(L){ge.e(L)}finally{ge.f()}te=te.join(" "),S.path&&v.length>0&&v[0]!==l.OPS.rectangle&&v[0]!==l.OPS.moveTo?te=S.path.getAttributeNS(null,"d")+te:(S.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(S.path)),S.path.setAttributeNS(null,"d",te),S.path.setAttributeNS(null,"fill","none"),S.element=S.path,S.setCurrentPoint(w,j)}},{key:"endPath",value:function(){var v=this.current;if(v.path=null,this.pendingClip){if(!v.element)return void(this.pendingClip=null);var d="clippath".concat(E++),S=this.svgFactory.createElement("svg:clipPath");S.setAttributeNS(null,"id",d),S.setAttributeNS(null,"transform",b(this.transformMatrix));var w=v.element.cloneNode(!0);if(w.setAttributeNS(null,"clip-rule","evenodd"===this.pendingClip?"evenodd":"nonzero"),this.pendingClip=null,S.appendChild(w),this.defs.appendChild(S),v.activeClipUrl){v.clipGroup=null;var te,j=X(this.extraStack);try{for(j.s();!(te=j.n()).done;)te.value.clipGroup=null}catch(ge){j.e(ge)}finally{j.f()}S.setAttributeNS(null,"clip-path",v.activeClipUrl)}v.activeClipUrl="url(#".concat(d,")"),this.tgrp=null}}},{key:"clip",value:function(v){this.pendingClip=v}},{key:"closePath",value:function(){var v=this.current;if(v.path){var d="".concat(v.path.getAttributeNS(null,"d"),"Z");v.path.setAttributeNS(null,"d",d)}}},{key:"setLeading",value:function(v){this.current.leading=-v}},{key:"setTextRise",value:function(v){this.current.textRise=v}},{key:"setTextRenderingMode",value:function(v){this.current.textRenderingMode=v}},{key:"setHScale",value:function(v){this.current.textHScale=v/100}},{key:"setRenderingIntent",value:function(v){}},{key:"setFlatness",value:function(v){}},{key:"setGState",value:function(v){var S,d=X(v);try{for(d.s();!(S=d.n()).done;){var w=H(S.value,2),j=w[0],te=w[1];switch(j){case"LW":this.setLineWidth(te);break;case"LC":this.setLineCap(te);break;case"LJ":this.setLineJoin(te);break;case"ML":this.setMiterLimit(te);break;case"D":this.setDash(te[0],te[1]);break;case"RI":this.setRenderingIntent(te);break;case"FL":this.setFlatness(te);break;case"Font":this.setFont(te);break;case"CA":this.setStrokeAlpha(te);break;case"ca":this.setFillAlpha(te);break;default:(0,l.warn)("Unimplemented graphic state operator ".concat(j))}}}catch(J){d.e(J)}finally{d.f()}}},{key:"fill",value:function(){var v=this.current;v.element&&(v.element.setAttributeNS(null,"fill",v.fillColor),v.element.setAttributeNS(null,"fill-opacity",v.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var v=this.current;v.element&&(this._setStrokeAttributes(v.element),v.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(v){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,S=this.current,w=S.dashArray;1!==d&&w.length>0&&(w=w.map(function(j){return d*j})),v.setAttributeNS(null,"stroke",S.strokeColor),v.setAttributeNS(null,"stroke-opacity",S.strokeAlpha),v.setAttributeNS(null,"stroke-miterlimit",u(S.miterLimit)),v.setAttributeNS(null,"stroke-linecap",S.lineCap),v.setAttributeNS(null,"stroke-linejoin",S.lineJoin),v.setAttributeNS(null,"stroke-width",u(d*S.lineWidth)+"px"),v.setAttributeNS(null,"stroke-dasharray",w.map(u).join(" ")),v.setAttributeNS(null,"stroke-dashoffset",u(d*S.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var v=this.svgFactory.createElement("svg:rect");v.setAttributeNS(null,"x","0"),v.setAttributeNS(null,"y","0"),v.setAttributeNS(null,"width","1px"),v.setAttributeNS(null,"height","1px"),v.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(v)}},{key:"paintImageXObject",value:function(v){var d=v.startsWith("g_")?this.commonObjs.get(v):this.objs.get(v);d?this.paintInlineImageXObject(d):(0,l.warn)("Dependent image with object ID ".concat(v," is not ready yet"))}},{key:"paintInlineImageXObject",value:function(v,d){var S=v.width,w=v.height,j=k(v,this.forceDataSchema,!!d),te=this.svgFactory.createElement("svg:rect");te.setAttributeNS(null,"x","0"),te.setAttributeNS(null,"y","0"),te.setAttributeNS(null,"width",u(S)),te.setAttributeNS(null,"height",u(w)),this.current.element=te,this.clip("nonzero");var J=this.svgFactory.createElement("svg:image");J.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",j),J.setAttributeNS(null,"x","0"),J.setAttributeNS(null,"y",u(-w)),J.setAttributeNS(null,"width",u(S)+"px"),J.setAttributeNS(null,"height",u(w)+"px"),J.setAttributeNS(null,"transform","scale(".concat(u(1/S)," ").concat(u(-1/w),")")),d?d.appendChild(J):this._ensureTransformGroup().appendChild(J)}},{key:"paintImageMaskXObject",value:function(v){var d=this.current,S=v.width,w=v.height,j=d.fillColor;d.maskId="mask".concat(x++);var te=this.svgFactory.createElement("svg:mask");te.setAttributeNS(null,"id",d.maskId);var J=this.svgFactory.createElement("svg:rect");J.setAttributeNS(null,"x","0"),J.setAttributeNS(null,"y","0"),J.setAttributeNS(null,"width",u(S)),J.setAttributeNS(null,"height",u(w)),J.setAttributeNS(null,"fill",j),J.setAttributeNS(null,"mask","url(#".concat(d.maskId,")")),this.defs.appendChild(te),this._ensureTransformGroup().appendChild(J),this.paintInlineImageXObject(v,te)}},{key:"paintFormXObjectBegin",value:function(v,d){if(Array.isArray(v)&&6===v.length&&this.transform(v[0],v[1],v[2],v[3],v[4],v[5]),d){var S=d[2]-d[0],w=d[3]-d[1],j=this.svgFactory.createElement("svg:rect");j.setAttributeNS(null,"x",d[0]),j.setAttributeNS(null,"y",d[1]),j.setAttributeNS(null,"width",u(S)),j.setAttributeNS(null,"height",u(w)),this.current.element=j,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(v){var d=this.svgFactory.create(v.width,v.height),S=this.svgFactory.createElement("svg:defs");d.appendChild(S),this.defs=S;var w=this.svgFactory.createElement("svg:g");return w.setAttributeNS(null,"transform",b(v.transform)),d.appendChild(w),this.svg=w,d}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var v=this.svgFactory.createElement("svg:g");v.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(v),this.current.clipGroup=v}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",b(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),f}()},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.XfaLayer=void 0;var l=s(4),M=s(130);function N(z,W){return function e(z){if(Array.isArray(z))return z}(z)||function U(z,W){var D=null==z?null:"undefined"!=typeof Symbol&&z[Symbol.iterator]||z["@@iterator"];if(null!=D){var u,b,g=[],p=!0,o=!1;try{for(D=D.call(z);!(p=(u=D.next()).done)&&(g.push(u.value),!W||g.length!==W);p=!0);}catch(m){o=!0,b=m}finally{try{!p&&null!=D.return&&D.return()}finally{if(o)throw b}}return g}}(z,W)||H(z,W)||function Y(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(z,W){var D="undefined"!=typeof Symbol&&z[Symbol.iterator]||z["@@iterator"];if(!D){if(Array.isArray(z)||(D=H(z))||W&&z&&"number"==typeof z.length){D&&(z=D);var g=0,p=function(){};return{s:p,n:function(){return g>=z.length?{done:!0}:{done:!1,value:z[g++]}},e:function(c){throw c},f:p}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var b,o=!0,u=!1;return{s:function(){D=D.call(z)},n:function(){var c=D.next();return o=c.done,c},e:function(c){u=!0,b=c},f:function(){try{!o&&null!=D.return&&D.return()}finally{if(u)throw b}}}}function H(z,W){if(z){if("string"==typeof z)return R(z,W);var D=Object.prototype.toString.call(z).slice(8,-1);if("Object"===D&&z.constructor&&(D=z.constructor.name),"Map"===D||"Set"===D)return Array.from(z);if("Arguments"===D||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return R(z,W)}}function R(z,W){(null==W||W>z.length)&&(W=z.length);for(var D=0,g=new Array(W);D<W;D++)g[D]=z[D];return g}function $(z,W){for(var D=0;D<W.length;D++){var g=W[D];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(z,g.key,g)}}I.XfaLayer=function(){function z(){!function Q(z,W){if(!(z instanceof W))throw new TypeError("Cannot call a class as a function")}(this,z)}return function X(z,W,D){W&&$(z.prototype,W),D&&$(z,D)}(z,null,[{key:"setupStorage",value:function(D,g,p,o,u){var b=o.getValue(g,{value:null});switch(p.name){case"textarea":if(null!==b.value&&(D.textContent=b.value),"print"===u)break;D.addEventListener("input",function(O){o.setValue(g,{value:O.target.value})});break;case"input":if("radio"===p.attributes.type||"checkbox"===p.attributes.type){if(b.value===p.attributes.xfaOn?D.setAttribute("checked",!0):b.value===p.attributes.xfaOff&&D.removeAttribute("checked"),"print"===u)break;D.addEventListener("change",function(O){o.setValue(g,{value:O.target.getAttribute(O.target.checked?"xfaOn":"xfaOff")})})}else{if(null!==b.value&&D.setAttribute("value",b.value),"print"===u)break;D.addEventListener("input",function(O){o.setValue(g,{value:O.target.value})})}break;case"select":if(null!==b.value){var c,m=V(p.children);try{for(m.s();!(c=m.n()).done;){var A=c.value;A.attributes.value===b.value&&(A.attributes.selected=!0)}}catch(O){m.e(O)}finally{m.f()}}D.addEventListener("input",function(O){var _=O.target.options;o.setValue(g,{value:-1===_.selectedIndex?"":_[_.selectedIndex].value})})}}},{key:"setAttributes",value:function(D){var x,g=D.html,p=D.element,o=D.storage,u=void 0===o?null:o,b=D.intent,m=D.linkService,c=p.attributes,A=g instanceof HTMLAnchorElement;"radio"===c.type&&(c.name="".concat(c.name,"-").concat(b));for(var O=0,_=Object.entries(c);O<_.length;O++){var k=N(_[O],2),P=k[0],E=k[1];if(null!=E&&"dataId"!==P)if("style"!==P)if("textContent"===P)g.textContent=E;else if("class"===P)g.setAttribute(P,E.join(" "));else{if(A&&("href"===P||"newWindow"===P))continue;g.setAttribute(P,E)}else Object.assign(g.style,E)}A&&(m.addLinkAttributes||(0,l.warn)("XfaLayer.setAttribute - missing `addLinkAttributes`-method on the `linkService`-instance."),null===(x=m.addLinkAttributes)||void 0===x||x.call(m,g,c.href,c.newWindow)),u&&c.dataId&&this.setupStorage(g,c.dataId,p,u)}},{key:"render",value:function(D){var g=D.annotationStorage,p=D.linkService,o=D.xfa,u=D.intent||"display",b=document.createElement(o.name);o.attributes&&this.setAttributes({html:b,element:o,intent:u,linkService:p});var m=[[o,-1,b]],c=D.div;c.appendChild(b);var A="matrix(".concat(D.viewport.transform.join(","),")");c.style.transform=A,c.setAttribute("class","xfaLayer xfaFont");for(var O=[];m.length>0;){var _,k=N(m[m.length-1],3),P=k[0],x=k[2];if(k[1]+1!==P.children.length){var y=P.children[++m[m.length-1][1]];if(null!==y){var f=y.name;if("#text"===f){var h=document.createTextNode(y.value);O.push(h),x.appendChild(h);continue}var v=void 0;if(v=null!=y&&null!==(_=y.attributes)&&void 0!==_&&_.xmlns?document.createElementNS(y.attributes.xmlns,f):document.createElement(f),x.appendChild(v),y.attributes&&this.setAttributes({html:v,element:y,storage:g,intent:u,linkService:p}),y.children&&y.children.length>0)m.push([y,-1,v]);else if(y.value){var d=document.createTextNode(y.value);M.XfaText.shouldBuildText(f)&&O.push(d),v.appendChild(d)}}}else m.pop()}var w,S=V(c.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"));try{for(S.s();!(w=S.n()).done;)w.value.setAttribute("readOnly",!0)}catch(te){S.e(te)}finally{S.f()}return{textDivs:O}}},{key:"update",value:function(D){var g="matrix(".concat(D.viewport.transform.join(","),")");D.div.style.transform=g,D.div.hidden=!1}}]),z}()},(K,I,s)=>{"use strict";function l(d){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(w){return typeof w}:function(w){return w&&"function"==typeof Symbol&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(d)}Object.defineProperty(I,"__esModule",{value:!0}),I.PDFNodeStream=void 0;var M=function U(d){return d&&d.__esModule?d:{default:d}}(s(2)),N=s(4),Y=s(137);
vendor: 10,976 bytes, line 1
1function e(d,S){if("function"!=typeof S&&null!==S)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(S&&S.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),S&&V(d,S)}function V(d,S){return(V=Object.setPrototypeOf||function(j,te){return j.__proto__=te,j})(d,S)}function H(d){var S=function $(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}();return function(){var te,j=X(d);if(S){var J=X(this).constructor;te=Reflect.construct(j,arguments,J)}else te=j.apply(this,arguments);return R(this,te)}}function R(d,S){if(S&&("object"===l(S)||"function"==typeof S))return S;if(void 0!==S)throw new TypeError("Derived constructors may only return object or undefined");return function Q(d){if(void 0===d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}(d)}function X(d){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(d)}function B(d,S,w,j,te,J,ge){try{var de=d[J](ge),he=de.value}catch(be){return void w(be)}de.done?S(he):Promise.resolve(he).then(j,te)}function z(d){return function(){var S=this,w=arguments;return new Promise(function(j,te){var J=d.apply(S,w);function ge(he){B(J,j,te,ge,de,"next",he)}function de(he){B(J,j,te,ge,de,"throw",he)}ge(void 0)})}}function g(d,S){(null==S||S>d.length)&&(S=d.length);for(var w=0,j=new Array(S);w<S;w++)j[w]=d[w];return j}function p(d,S){if(!(d instanceof S))throw new TypeError("Cannot call a class as a function")}function o(d,S){for(var w=0;w<S.length;w++){var j=S[w];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(d,j.key,j)}}function u(d,S,w){return S&&o(d.prototype,S),w&&o(d,w),d}var b=__webpack_require__(32767),m=__webpack_require__(28251),c=__webpack_require__(57677),A=__webpack_require__(1543),O=/^file:\/\/\/[a-zA-Z]:\//;I.PDFNodeStream=function(){function d(S){p(this,d),this.source=S,this.url=function _(d){var S=A.parse(d);return"file:"===S.protocol||S.host?S:/^[a-z]:[/\\]/i.test(d)?A.parse("file:///".concat(d)):(S.host||(S.protocol="file:"),S)}(S.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&S.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return u(d,[{key:"_progressiveDataLength",get:function(){var w,j;return null!==(w=null===(j=this._fullRequestReader)||void 0===j?void 0:j._loaded)&&void 0!==w?w:0}},{key:"getFullReader",value:function(){return(0,N.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new h(this):new y(this),this._fullRequestReader}},{key:"getRangeReader",value:function(w,j){if(j<=this._progressiveDataLength)return null;var te=this.isFsUrl?new v(this,w,j):new f(this,w,j);return this._rangeRequestReaders.push(te),te}},{key:"cancelAllRequests",value:function(w){this._fullRequestReader&&this._fullRequestReader.cancel(w);var te,j=function W(d,S){var w="undefined"!=typeof Symbol&&d[Symbol.iterator]||d["@@iterator"];if(!w){if(Array.isArray(d)||(w=function D(d,S){if(d){if("string"==typeof d)return g(d,S);var w=Object.prototype.toString.call(d).slice(8,-1);if("Object"===w&&d.constructor&&(w=d.constructor.name),"Map"===w||"Set"===w)return Array.from(d);if("Arguments"===w||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return g(d,S)}}(d))||S&&d&&"number"==typeof d.length){w&&(d=w);var j=0,te=function(){};return{s:te,n:function(){return j>=d.length?{done:!0}:{done:!1,value:d[j++]}},e:function(be){throw be},f:te}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var de,J=!0,ge=!1;return{s:function(){w=w.call(d)},n:function(){var be=w.next();return J=be.done,be},e:function(be){ge=!0,de=be},f:function(){try{!J&&null!=w.return&&w.return()}finally{if(ge)throw de}}}}(this._rangeRequestReaders.slice(0));try{for(j.s();!(te=j.n()).done;)te.value.cancel(w)}catch(ge){j.e(ge)}finally{j.f()}}}]),d}();var P=function(){function d(S){p(this,d),this._url=S.url,this._done=!1,this._storedError=null,this.onProgress=null;var w=S.source;this._contentLength=w.length,this._loaded=0,this._filename=null,this._disableRange=w.disableRange||!1,this._rangeChunkSize=w.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!w.disableStream,this._isRangeSupported=!w.disableRange,this._readableStream=null,this._readCapability=(0,N.createPromiseCapability)(),this._headersCapability=(0,N.createPromiseCapability)()}return u(d,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(S=z(M.default.mark(function j(){var te,J;return M.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.next=2,this._readCapability.promise;case 2:if(!this._done){de.next=4;break}return de.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){de.next=6;break}throw this._storedError;case 6:if(null!==(te=this._readableStream.read())){de.next=10;break}return this._readCapability=(0,N.createPromiseCapability)(),de.abrupt("return",this.read());case 10:return this._loaded+=te.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),J=new Uint8Array(te).buffer,de.abrupt("return",{value:J,done:!1});case 14:case"end":return de.stop()}},j,this)})),function w(){return S.apply(this,arguments)})},{key:"cancel",value:function(w){this._readableStream?this._readableStream.destroy(w):this._error(w)}},{key:"_error",value:function(w){this._storedError=w,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(w){var j=this;this._readableStream=w,w.on("readable",function(){j._readCapability.resolve()}),w.on("end",function(){w.destroy(),j._done=!0,j._readCapability.resolve()}),w.on("error",function(te){j._error(te)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new N.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]),d;var S}(),E=function(){function d(S){p(this,d),this._url=S.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,N.createPromiseCapability)(),this._isStreamingSupported=!S.source.disableStream}return u(d,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(S=z(M.default.mark(function j(){var te,J;return M.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.next=2,this._readCapability.promise;case 2:if(!this._done){de.next=4;break}return de.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){de.next=6;break}throw this._storedError;case 6:if(null!==(te=this._readableStream.read())){de.next=10;break}return this._readCapability=(0,N.createPromiseCapability)(),de.abrupt("return",this.read());case 10:return this._loaded+=te.length,this.onProgress&&this.onProgress({loaded:this._loaded}),J=new Uint8Array(te).buffer,de.abrupt("return",{value:J,done:!1});case 14:case"end":return de.stop()}},j,this)})),function w(){return S.apply(this,arguments)})},{key:"cancel",value:function(w){this._readableStream?this._readableStream.destroy(w):this._error(w)}},{key:"_error",value:function(w){this._storedError=w,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(w){var j=this;this._readableStream=w,w.on("readable",function(){j._readCapability.resolve()}),w.on("end",function(){w.destroy(),j._done=!0,j._readCapability.resolve()}),w.on("error",function(te){j._error(te)}),this._storedError&&this._readableStream.destroy(this._storedError)}}]),d;var S}();function x(d,S){return{protocol:d.protocol,auth:d.auth,host:d.hostname,port:d.port,path:d.path,method:"GET",headers:S}}var y=function(d){e(w,d);var S=H(w);function w(j){var te;p(this,w);var J=function(de){if(404===de.statusCode){var he=new N.MissingPDFException('Missing PDF "'.concat(te._url,'".'));return te._storedError=he,void te._headersCapability.reject(he)}te._headersCapability.resolve(),te._setReadableStream(de);var be=function(F){return te._readableStream.headers[F.toLowerCase()]},oe=(0,Y.validateRangeRequestCapabilities)({getResponseHeader:be,isHttp:j.isHttp,rangeChunkSize:te._rangeChunkSize,disableRange:te._disableRange}),G=oe.suggestedLength;te._isRangeSupported=oe.allowRangeRequests,te._contentLength=G||te._contentLength,te._filename=(0,Y.extractFilenameFromHeader)(be)};return(te=S.call(this,j))._request=null,te._request="http:"===te._url.protocol?m.request(x(te._url,j.httpHeaders),J):c.request(x(te._url,j.httpHeaders),J),te._request.on("error",function(ge){te._storedError=ge,te._headersCapability.reject(ge)}),te._request.end(),te}return w}(P),f=function(d){e(w,d);var S=H(w);function w(j,te,J){var ge;for(var de in p(this,w),(ge=S.call(this,j))._httpHeaders={},j.httpHeaders){var he=j.httpHeaders[de];void 0!==he&&(ge._httpHeaders[de]=he)}ge._httpHeaders.Range="bytes=".concat(te,"-").concat(J-1);var be=function(q){if(404!==q.statusCode)ge._setReadableStream(q);else{var G=new N.MissingPDFException('Missing PDF "'.concat(ge._url,'".'));ge._storedError=G}};return ge._request=null,ge._request="http:"===ge._url.protocol?m.request(x(ge._url,ge._httpHeaders),be):c.request(x(ge._url,ge._httpHeaders),be),ge._request.on("error",function(oe){ge._storedError=oe}),ge._request.end(),ge}return w}(E),h=function(d){e(w,d);var S=H(w);function w(j){var te;p(this,w),te=S.call(this,j);var J=decodeURIComponent(te._url.path);return O.test(te._url.href)&&(J=J.replace(/^\//,"")),b.lstat(J,function(ge,de){if(ge)return"ENOENT"===ge.code&&(ge=new N.MissingPDFException('Missing PDF "'.concat(J,'".'))),te._storedError=ge,void te._headersCapability.reject(ge);te._contentLength=de.size,te._setReadableStream(b.createReadStream(J)),te._headersCapability.resolve()}),te}return w}(P),v=function(d){e(w,d);var S=H(w);function w(j,te,J){var ge;p(this,w),ge=S.call(this,j);var de=decodeURIComponent(ge._url.path);return O.test(ge._url.href)&&(de=de.replace(/^\//,"")),ge._setReadableStream(b.createReadStream(de,{start:te,end:J-1})),ge}return w}(E)},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.createResponseStatusError=function e(H,R){return 404===H||0===H&&R.startsWith("file:")?new l.MissingPDFException('Missing PDF "'+R+'".'):new l.UnexpectedResponseException("Unexpected server response
1(".concat(H,') while retrieving PDF "').concat(R,'".'),H)},I.extractFilenameFromHeader=function U(H){var R=H("Content-Disposition");if(R){var Q=(0,M.getFilenameFromContentDispositionHeader)(R);if(Q.includes("%"))try{Q=decodeURIComponent(Q)}catch($){}if((0,N.isPdfFile)(Q))return Q}return null},I.validateRangeRequestCapabilities=function Y(H){var R=H.getResponseHeader,Q=H.isHttp,$=H.rangeChunkSize,X=H.disableRange;(0,l.assert)($>0,"Range chunk size must be larger than zero");var B={allowRangeRequests:!1,suggestedLength:void 0},z=parseInt(R("Content-Length"),10);return!Number.isInteger(z)||(B.suggestedLength=z,z<=2*$)||X||!Q||"bytes"!==R("Accept-Ranges")||"identity"!==(R("Content-Encoding")||"identity")||(B.allowRangeRequests=!0),B},I.validateResponseStatus=function V(H){return 200===H||206===H};var l=s(4),M=s(138),N=s(1)},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.getFilenameFromContentDispositionHeader=function H(R){var Q=!0,$=W("filename\\*","i").exec(R);if($){var X=o($=$[1]);return g(X=b(X=u(X=unescape(X))))}if($=function p(m){for(var A,c=[],O=W("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(A=O.exec(m));){var k=M(A,4),P=k[1],E=k[2],x=k[3];if((P=parseInt(P,10))in c){if(0===P)break}else c[P]=[E,x]}for(var y=[],f=0;f<c.length&&f in c;++f){var h=M(c[f],2),v=h[0],d=h[1];d=o(d),v&&(d=unescape(d),0===f&&(d=u(d))),y.push(d)}return y.join("")}(R))return g(b($));if($=W("filename","i").exec(R)){var z=o($=$[1]);return g(z=b(z))}function W(m,c){return new RegExp("(?:^|;)\\s*"+m+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',c)}function D(m,c){if(m){if(!/^[\x00-\xFF]+$/.test(c))return c;try{var A=new TextDecoder(m,{fatal:!0}),O=(0,l.stringToBytes)(c);c=A.decode(O),Q=!1}catch(_){if(/^utf-?8$/i.test(m))try{c=decodeURIComponent(escape(c)),Q=!1}catch(k){}}}return c}function g(m){return Q&&/[\x80-\xff]/.test(m)&&(m=D("utf-8",m),Q&&(m=D("iso-8859-1",m))),m}function o(m){if(m.startsWith('"')){for(var c=m.slice(1).split('\\"'),A=0;A<c.length;++A){var O=c[A].indexOf('"');-1!==O&&(c[A]=c[A].slice(0,O),c.length=A+1),c[A]=c[A].replace(/\\(.)/g,"$1")}m=c.join('"')}return m}function u(m){var c=m.indexOf("'");return-1===c?m:D(m.slice(0,c),m.slice(c+1).replace(/^[^']*'/,""))}function b(m){return!m.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(m)?m:m.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(c,A,O,_){if("q"===O||"Q"===O)return D(A,_=(_=_.replace(/_/g," ")).replace(/=([0-9a-fA-F]{2})/g,function(k,P){return String.fromCharCode(parseInt(P,16))}));try{_=atob(_)}catch(k){}return D(A,_)})}return""};var l=s(4);function M(R,Q){return function V(R){if(Array.isArray(R))return R}(R)||function e(R,Q){var $=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=$){var W,D,X=[],B=!0,z=!1;try{for($=$.call(R);!(B=(W=$.next()).done)&&(X.push(W.value),!Q||X.length!==Q);B=!0);}catch(g){z=!0,D=g}finally{try{!B&&null!=$.return&&$.return()}finally{if(z)throw D}}return X}}(R,Q)||function Y(R,Q){if(R){if("string"==typeof R)return U(R,Q);var $=Object.prototype.toString.call(R).slice(8,-1);if("Object"===$&&R.constructor&&($=R.constructor.name),"Map"===$||"Set"===$)return Array.from(R);if("Arguments"===$||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return U(R,Q)}}(R,Q)||function N(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(R,Q){(null==Q||Q>R.length)&&(Q=R.length);for(var $=0,X=new Array(Q);$<Q;$++)X[$]=R[$];return X}},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.PDFNetworkStream=void 0;var l=function Y(u){return u&&u.__esModule?u:{default:u}}(s(2)),M=s(4),N=s(137);function U(u,b,m,c,A,O,_){try{var k=u[O](_),P=k.value}catch(E){return void m(E)}k.done?b(P):Promise.resolve(P).then(c,A)}function e(u){return function(){var b=this,m=arguments;return new Promise(function(c,A){var O=u.apply(b,m);function _(P){U(O,c,A,_,k,"next",P)}function k(P){U(O,c,A,_,k,"throw",P)}_(void 0)})}}function V(u,b){var m="undefined"!=typeof Symbol&&u[Symbol.iterator]||u["@@iterator"];if(!m){if(Array.isArray(u)||(m=function H(u,b){if(u){if("string"==typeof u)return R(u,b);var m=Object.prototype.toString.call(u).slice(8,-1);if("Object"===m&&u.constructor&&(m=u.constructor.name),"Map"===m||"Set"===m)return Array.from(u);
vendor: 10,193 bytes, line 1
1if("Arguments"===m||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return R(u,b)}}(u))||b&&u&&"number"==typeof u.length){m&&(u=m);var c=0,A=function(){};return{s:A,n:function(){return c>=u.length?{done:!0}:{done:!1,value:u[c++]}},e:function(E){throw E},f:A}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var k,O=!0,_=!1;return{s:function(){m=m.call(u)},n:function(){var E=m.next();return O=E.done,E},e:function(E){_=!0,k=E},f:function(){try{!O&&null!=m.return&&m.return()}finally{if(_)throw k}}}}function R(u,b){(null==b||b>u.length)&&(b=u.length);for(var m=0,c=new Array(b);m<b;m++)c[m]=u[m];return c}function Q(u,b){if(!(u instanceof b))throw new TypeError("Cannot call a class as a function")}function $(u,b){for(var m=0;m<b.length;m++){var c=b[m];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,c.key,c)}}function X(u,b,m){return b&&$(u.prototype,b),m&&$(u,m),u}var D=function(){function u(b){var m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q(this,u),this.url=b,this.isHttp=/^https?:/i.test(b),this.httpHeaders=this.isHttp&&m.httpHeaders||Object.create(null),this.withCredentials=m.withCredentials||!1,this.getXhr=m.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return X(u,[{key:"requestRange",value:function(m,c,A){var O={begin:m,end:c};for(var _ in A)O[_]=A[_];return this.request(O)}},{key:"requestFull",value:function(m){return this.request(m)}},{key:"request",value:function(m){var c=this.getXhr(),A=this.currXhrId++,O=this.pendingRequests[A]={xhr:c};for(var _ in c.open("GET",this.url),c.withCredentials=this.withCredentials,this.httpHeaders){var k=this.httpHeaders[_];void 0!==k&&c.setRequestHeader(_,k)}return this.isHttp&&"begin"in m&&"end"in m?(c.setRequestHeader("Range","bytes=".concat(m.begin,"-").concat(m.end-1)),O.expectedStatus=206):O.expectedStatus=200,c.responseType="arraybuffer",m.onError&&(c.onerror=function(P){m.onError(c.status)}),c.onreadystatechange=this.onStateChange.bind(this,A),c.onprogress=this.onProgress.bind(this,A),O.onHeadersReceived=m.onHeadersReceived,O.onDone=m.onDone,O.onError=m.onError,O.onProgress=m.onProgress,c.send(null),A}},{key:"onProgress",value:function(m,c){var A,O=this.pendingRequests[m];!O||null===(A=O.onProgress)||void 0===A||A.call(O,c)}},{key:"onStateChange",value:function(m,c){var A=this.pendingRequests[m];if(A){var O=A.xhr;if(O.readyState>=2&&A.onHeadersReceived&&(A.onHeadersReceived(),delete A.onHeadersReceived),4===O.readyState&&m in this.pendingRequests){var _;if(delete this.pendingRequests[m],0===O.status&&this.isHttp)return void(null===(_=A.onError)||void 0===_||_.call(A,O.status));var E,k=O.status||200;if((200!==k||206!==A.expectedStatus)&&k!==A.expectedStatus)return void(null===(E=A.onError)||void 0===E||E.call(A,O.status));var x=function W(u){var b=u.response;return"string"!=typeof b?b:(0,M.stringToBytes)(b).buffer}(O);if(206===k){var y=O.getResponseHeader("Content-Range"),f=/bytes (\d+)-(\d+)\/(\d+)/.exec(y);A.onDone({begin:parseInt(f[1],10),chunk:x})}else if(x)A.onDone({begin:0,chunk:x});else{var h;null===(h=A.onError)||void 0===h||h.call(A,O.status)}}}}},{key:"getRequestXhr",value:function(m){return this.pendingRequests[m].xhr}},{key:"isPendingRequest",value:function(m){return m in this.pendingRequests}},{key:"abortRequest",value:function(m){var c=this.pendingRequests[m].xhr;delete this.pendingRequests[m],c.abort()}}]),u}();I.PDFNetworkStream=function(){function u(b){Q(this,u),this._source=b,this._manager=new D(b.url,{httpHeaders:b.httpHeaders,withCredentials:b.withCredentials}),this._rangeChunkSize=b.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return X(u,[{key:"_onRangeRequestReaderClosed",value:function(m){var c=this._rangeRequestReaders.indexOf(m);c>=0&&this._rangeRequestReaders.splice(c,1)}},{key:"getFullReader",value:function(){return(0,M.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new p(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(m,c){var A=new o(this._manager,m,c);return A.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(A),A}},{key:"cancelAllRequests",value:function(m){var c;null===(c=this._fullRequestReader)||void 0===c||c.cancel(m);var O,A=V(this._rangeRequestReaders.slice(0));try{for(A.s();!(O=A.n()).done;)O.value.cancel(m)}catch(k){A.e(k)}finally{A.f()}}}]),u}();var p=function(){function u(b,m){Q(this,u),this._manager=b;var c={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=m.url,this._fullRequestId=b.requestFull(c),this._headersReceivedCapability=(0,M.createPromiseCapability)(),this._disableRange=m.disableRange||!1,this._contentLength=m.length,this._rangeChunkSize=m.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return X(u,[{key:"_onHeadersReceived",value:function(){var m=this._fullRequestId,c=this._manager.getRequestXhr(m),A=function(E){return c.getResponseHeader(E)},O=(0,N.validateRangeRequestCapabilities)({getResponseHeader:A,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),k=O.suggestedLength;O.allowRangeRequests&&(this._isRangeSupported=!0),this._contentLength=k||this._contentLength,this._filename=(0,N.extractFilenameFromHeader)(A),this._isRangeSupported&&this._manager.abortRequest(m),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(m){if(m&&(this._requests.length>0?this._requests.shift().resolve({value:m.chunk,done:!1}):this._cachedChunks.push(m.chunk)),this._done=!0,!(this._cachedChunks.length>0)){var O,A=V(this._requests);try{for(A.s();!(O=A.n()).done;)O.value.resolve({value:void 0,done:!0})}catch(k){A.e(k)}finally{A.f()}this._requests.length=0}}},{key:"_onError",value:function(m){this._storedError=(0,N.createResponseStatusError)(m,this._url),this._headersReceivedCapability.reject(this._storedError);var A,c=V(this._requests);try{for(c.s();!(A=c.n()).done;)A.value.reject(this._storedError)}catch(_){c.e(_)}finally{c.f()}this._requests.length=0,this._cachedChunks.length=0}},{key:"_onProgress",value:function(m){var c;null===(c=this.onProgress)||void 0===c||c.call(this,{loaded:m.loaded,total:m.lengthComputable?m.total:this._contentLength})}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}},{key:"read",value:(b=e(l.default.mark(function c(){var A,O;return l.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(!this._storedError){k.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){k.next=5;break}return A=this._cachedChunks.shift(),k.abrupt("return",{value:A,done:!1});case 5:if(!this._done){k.next=7;break}return k.abrupt("return",{value:void 0,done:!0});case 7:return O=(0,M.createPromiseCapability)(),this._requests.push(O),k.abrupt("return",O.promise);case 10:case"end":return k.stop()}},c,this)})),function m(){return b.apply(this,arguments)})},{key:"cancel",value:function(m){this._done=!0,this._headersReceivedCapability.reject(m);var A,c=V(this._requests);try{for(c.s();!(A=c.n()).done;)A.value.resolve({value:void 0,done:!0})}catch(_){c.e(_)}finally{c.f()}this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]),u;var b}(),o=function(){function u(b,m,c){Q(this,u),this._manager=b;var A={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=b.url,this._requestId=b.requestRange(m,c,A),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}return X(u,[{key:"_close",value:function(){var m;null===(m=this.onClosed)||void 0===m||m.call(this,this)}},{key:"_onDone",value:function(m){var c=m.chunk;this._requests.length>0?this._requests.shift().resolve({value:c,done:!1}):this._queuedChunk=c,this._done=!0;var _,O=V(this._requests);try{for(O.s();!(_=O.n()).done;)_.value.resolve({value:void 0,done:!0})}catch(P){O.e(P)}finally{O.f()}this._requests.length=0,this._close()}},{key:"_onError",value:function(m){this._storedError=(0,N.createResponseStatusError)(m,this._url);var A,c=V(this._requests);try{for(c.s();!(A=c.n()).done;)A.value.reject(this._storedError)}catch(_){c.e(_)}finally{c.f()}this._requests.length=0,this._queuedChunk=null}},{key:"_onProgress",value:function(m){var c;this.isStreamingSupported||null===(c=this.onProgress)||void 0===c||c.call(this,{loaded:m.loaded})}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:(b=e(l.default.mark(function c(){var A,O;return l.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(!this._storedError){k.next=2;break}throw this._storedError;case 2:if(null===this._queuedChunk){k.next=6;break}return A=this._queuedChunk,this._queuedChunk=null,k.abrupt("return",{value:A,done:!1});case 6:if(!this._done){k.next=8;break}return k.abrupt("return",{value:void 0,done:!0});case 8:return O=(0,M.createPromiseCapability)(),this._requests.push(O),k.abrupt("return",O.promise);case 11:case"end":return k.stop()}},c,this)})),function m(){return b.apply(this,arguments)})},{key:"cancel",value:function(m){this._done=!0;var A,c=V(this._requests);try{for(c.s();!(A=c.n()).done;)A.value.resolve({value:void 0,done:!0})}catch(_){c.e(_)}finally{c.f()}this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest
1(this._requestId),this._close()}}]),u;var b}()},(K,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.PDFFetchStream=void 0;var l=function Y(p){return p&&p.__esModule?p:{default:p}}(s(2)),M=s(4),N=s(137);function U(p,o,u,b,m,c,A){try{var O=p[c](A),_=O.value}catch(k){return void u(k)}O.done?o(_):Promise.resolve(_).then(b,m)}function e(p){return function(){var o=this,u=arguments;return new Promise(function(b,m){var c=p.apply(o,u);function A(_){U(c,b,m,A,O,"next",_)}function O(_){U(c,b,m,A,O,"throw",_)}A(void 0)})}}function R(p,o){(null==o||o>p.length)&&(o=p.length);for(var u=0,b=new Array(o);u<o;u++)b[u]=p[u];return b}function Q(p,o){if(!(p instanceof o))throw new TypeError("Cannot call a class as a function")}function $(p,o){for(var u=0;u<o.length;u++){var b=o[u];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}function X(p,o,u){return o&&$(p.prototype,o),u&&$(p,u),p}function B(p,o,u){return{method:"GET",headers:p,signal:null==u?void 0:u.signal,mode:"cors",credentials:o?"include":"same-origin",redirect:"follow"}}function z(p){var o=new Headers;for(var u in p){var b=p[u];void 0!==b&&o.append(u,b)}return o}I.PDFFetchStream=function(){function p(o){Q(this,p),this.source=o,this.isHttp=/^https?:/i.test(o.url),this.httpHeaders=this.isHttp&&o.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return X(p,[{key:"_progressiveDataLength",get:function(){var u,b;return null!==(u=null===(b=this._fullRequestReader)||void 0===b?void 0:b._loaded)&&void 0!==u?u:0}},{key:"getFullReader",value:function(){return(0,M.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new D(this),this._fullRequestReader}},{key:"getRangeReader",value:function(u,b){if(b<=this._progressiveDataLength)return null;var m=new g(this,u,b);return this._rangeRequestReaders.push(m),m}},{key:"cancelAllRequests",value:function(u){this._fullRequestReader&&this._fullRequestReader.cancel(u);var m,b=function V(p,o){var u="undefined"!=typeof Symbol&&p[Symbol.iterator]||p["@@iterator"];if(!u){if(Array.isArray(p)||(u=function H(p,o){if(p){if("string"==typeof p)return R(p,o);var u=Object.prototype.toString.call(p).slice(8,-1);if("Object"===u&&p.constructor&&(u=p.constructor.name),"Map"===u||"Set"===u)return Array.from(p);if("Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return R(p,o)}}(p))||o&&p&&"number"==typeof p.length){u&&(p=u);var b=0,m=function(){};return{s:m,n:function(){return b>=p.length?{done:!0}:{done:!1,value:p[b++]}},e:function(k){throw k},f:m}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var O,c=!0,A=!1;return{s:function(){u=u.call(p)},n:function(){var k=u.next();return c=k.done,k},e:function(k){A=!0,O=k},f:function(){try{!c&&null!=u.return&&u.return()}finally{if(A)throw O}}}}(this._rangeRequestReaders.slice(0));try{for(b.s();!(m=b.n()).done;)m.value.cancel(u)}catch(A){b.e(A)}finally{b.f()}}}]),p}();var D=function(){function p(o){var u=this;Q(this,p),this._stream=o,this._reader=null,this._loaded=0,this._filename=null;var b=o.source;this._withCredentials=b.withCredentials||!1,this._contentLength=b.length,this._headersCapability=(0,M.createPromiseCapability)(),this._disableRange=b.disableRange||!1,this._rangeChunkSize=b.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!b.disableStream,this._isRangeSupported=!b.disableRange,this._headers=z(this._stream.httpHeaders);var m=b.url;fetch(m,B(this._headers,this._withCredentials,this._abortController)).then(function(c){if(!(0,N.validateResponseStatus)(c.status))throw(0,N.createResponseStatusError)(c.status,m);u._reader=c.body.getReader(),u._headersCapability.resolve();var A=function(E){return c.headers.get(E)},O=(0,N.validateRangeRequestCapabilities)({getResponseHeader:A,isHttp:u._stream.isHttp,rangeChunkSize:u._rangeChunkSize,disableRange:u._disableRange}),k=O.suggestedLength;u._isRangeSupported=O.allowRangeRequests,u._contentLength=k||u._contentLength,u._filename=(0,N.extractFilenameFromHeader)(A),!u._isStreamingSupported&&u._isRangeSupported&&u.cancel(new M.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return X(p,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(o=e(l.default.mark(function b(){var m,c,A,O;return l.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,this._headersCapability.promise;case 2:return k.next=4,this._reader.read();case 4:if(c=(m=k.sent).value,!(A=m.done)){k.next=9;break}return k.abrupt("return",{value:c,done:A});case 9:return this._loaded+=c.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}
vendor: 4,979 bytes, line 1
1),O=new Uint8Array(c).buffer,k.abrupt("return",{value:O,done:!1});case 13:case"end":return k.stop()}},b,this)})),function u(){return o.apply(this,arguments)})},{key:"cancel",value:function(u){this._reader&&this._reader.cancel(u),this._abortController&&this._abortController.abort()}}]),p;var o}(),g=function(){function p(o,u,b){var m=this;Q(this,p),this._stream=o,this._reader=null,this._loaded=0;var c=o.source;this._withCredentials=c.withCredentials||!1,this._readCapability=(0,M.createPromiseCapability)(),this._isStreamingSupported=!c.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=z(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(u,"-").concat(b-1));var A=c.url;fetch(A,B(this._headers,this._withCredentials,this._abortController)).then(function(O){if(!(0,N.validateResponseStatus)(O.status))throw(0,N.createResponseStatusError)(O.status,A);m._readCapability.resolve(),m._reader=O.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}return X(p,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:(o=e(l.default.mark(function b(){var m,c,A,O;return l.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,this._readCapability.promise;case 2:return k.next=4,this._reader.read();case 4:if(c=(m=k.sent).value,!(A=m.done)){k.next=9;break}return k.abrupt("return",{value:c,done:A});case 9:return this._loaded+=c.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),O=new Uint8Array(c).buffer,k.abrupt("return",{value:O,done:!1});case 13:case"end":return k.stop()}},b,this)})),function u(){return o.apply(this,arguments)})},{key:"cancel",value:function(u){this._reader&&this._reader.cancel(u),this._abortController&&this._abortController.abort()}}]),p;var o}()}],__webpack_module_cache__={};function __w_pdfjs_require__(K){var I=__webpack_module_cache__[K];if(void 0!==I)return I.exports;var s=__webpack_module_cache__[K]={id:K,loaded:!1,exports:{}};return __webpack_modules__[K].call(s.exports,s,s.exports,__w_pdfjs_require__),s.loaded=!0,s.exports}__w_pdfjs_require__.nmd=K=>(K.paths=[],K.children||(K.children=[]),K);var __webpack_exports__={};return(()=>{"use strict";var K=__webpack_exports__;Object.defineProperty(K,"__esModule",{value:!0}),Object.defineProperty(K,"addLinkAttributes",{enumerable:!0,get:function(){return I.addLinkAttributes}}),Object.defineProperty(K,"getFilenameFromUrl",{enumerable:!0,get:function(){return I.getFilenameFromUrl}}),Object.defineProperty(K,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return I.getPdfFilenameFromUrl}}),Object.defineProperty(K,"getXfaPageViewport",{enumerable:!0,get:function(){return I.getXfaPageViewport}}),Object.defineProperty(K,"isPdfFile",{enumerable:!0,get:function(){return I.isPdfFile}}),Object.defineProperty(K,"LinkTarget",{enumerable:!0,get:function(){return I.LinkTarget}}),Object.defineProperty(K,"loadScript",{enumerable:!0,get:function(){return I.loadScript}}),Object.defineProperty(K,"PDFDateString",{enumerable:!0,get:function(){return I.PDFDateString}}),Object.defineProperty(K,"PixelsPerInch",{enumerable:!0,get:function(){return I.PixelsPerInch}}),Object.defineProperty(K,"RenderingCancelledException",{enumerable:!0,get:function(){return I.RenderingCancelledException}}),Object.defineProperty(K,"AnnotationMode",{enumerable:!0,get:function(){return s.AnnotationMode}}),Object.defineProperty(K,"CMapCompressionType",{enumerable:!0,get:function(){return s.CMapCompressionType}}),Object.defineProperty(K,"createObjectURL",{enumerable:!0,get:function(){return s.createObjectURL}}),Object.defineProperty(K,"createPromiseCapability",{enumerable:!0,get:function(){return s.createPromiseCapability}}),Object.defineProperty(K,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return s.createValidAbsoluteUrl}}),Object.defineProperty(K,"InvalidPDFException",{enumerable:!0,get:function(){return s.InvalidPDFException}}),Object.defineProperty(K,"MissingPDFException",{enumerable:!0,get:function(){return s.MissingPDFException}}),Object.defineProperty(K,"OPS",{enumerable:!0,get:function(){return s.OPS}}),Object.defineProperty(K,"PasswordResponses",{enumerable:!0,get:function(){return s.PasswordResponses}}),Object.defineProperty(K,"PermissionFlag",{enumerable:!0,get:function(){return s.PermissionFlag}}),Object.defineProperty(K,"removeNullCharacters",{enumerable:!0,get:function(){return s.removeNullCharacters}}),Object.defineProperty(K,"shadow",{enumerable:!0,get:function(){return s.shadow}}),Object.defineProperty(K,"UnexpectedResponseException",{enumerable:!0,get:function(){return s.UnexpectedResponseException}}),Object.defineProperty(K,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return s.UNSUPPORTED_FEATURES}}),Object.defineProperty(K,"Util",{enumerable:!0,get:function(){return s.Util}}),Object.defineProperty(K,"VerbosityLevel",{enumerable:!0,get:function(){return s.VerbosityLevel}}
1),Object.defineProperty(K,"build",{enumerable:!0,get:function(){return l.build}}),Object.defineProperty(K,"getDocument",{enumerable:!0,get:function(){return l.getDocument}}),Object.defineProperty(K,"LoopbackPort",{enumerable:!0,get:function(){return l.LoopbackPort}}),Object.defineProperty(K,"PDFDataRangeTransport",{enumerable:!0,get:function(){return l.PDFDataRangeTransport}}),Object.defineProperty(K,"PDFWorker",{enumerable:!0,get:function(){return l.PDFWorker}}),Object.defineProperty(K,"version",{enumerable:!0,get:function(){return l.version}}),Object.defineProperty(K,"AnnotationLayer",{enumerable:!0,get:function(){return M.AnnotationLayer}}),Object.defineProperty(K,"GlobalWorkerOptions",{enumerable:!0,get:function(){return N.GlobalWorkerOptions}}),Object.defineProperty(K,"renderTextLayer",{enumerable:!0,get:function(){return U.renderTextLayer}}),Object.defineProperty(K,"SVGGraphics",{enumerable:!0,get:function(){return e.SVGGraphics}}),Object.defineProperty(K,"XfaLayer",{enumerable:!0,get:function(){return V.XfaLayer}});var I=__w_pdfjs_require__(1),s=__w_pdfjs_require__(4),l=__w_pdfjs_require__(119),M=__w_pdfjs_require__(131),N=__w_pdfjs_require__(125),Y=__w_pdfjs_require__(6),U=__w_pdfjs_require__(133),e=__w_pdfjs_require__(134),V=__w_pdfjs_require__(135);if(Y.isNodeJS){var $=__w_pdfjs_require__(136).PDFNodeStream;(0,l.setPDFNetworkStreamFactory)(function(D){return new $(D)})}else{var B=__w_pdfjs_require__(139).PDFNetworkStream,W=__w_pdfjs_require__(140).PDFFetchStream;(0,l.setPDFNetworkStreamFactory)(function(D){return(0,I.isValidFetchUrl)(D.url)?new W(D):new B(D)})}})(),__webpack_exports__})()},module.exports=s()},9903:function(K,I,s){K.exports=(()=>{"use strict";var l=[,(U,e,V)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultAnnotationLayerFactory=e.AnnotationLayerBuilder=void 0;var H=function X(_){return _&&_.__esModule?_:{default:_}}(V(2)),R=V(4),Q=V(5),$=V(6);function B(_,k){return function p(_){if(Array.isArray(_))return _}(_)||function g(_,k){var P=null==_?null:"undefined"!=typeof Symbol&&_[Symbol.iterator]||_["@@iterator"];if(null!=P){var f,h,E=[],x=!0,y=!1;try{for(P=P.call(_);!(x=(f=P.next()).done)&&(E.push(f.value),!k||E.length!==k);x=!0);}catch(v){y=!0,h=v}finally{try{!x&&null!=P.return&&P.return()}finally{if(y)throw h}}return E}}(_,k)||function W(_,k){if(_){if("string"==typeof _)return D(_,k);var P=Object.prototype.toString.call(_).slice(8,-1);if("Object"===P&&_.constructor&&(P=_.constructor.name),"Map"===P||"Set"===P)return Array.from(_);if("Arguments"===P||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return D(_,k)}}(_,k)||function z(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(_,k){(null==k||k>_.length)&&(k=_.length);for(var P=0,E=new Array(k);P<k;P++)E[P]=_[P];return E}function o(_,k,P,E,x,y,f){try{var h=_[y](f),v=h.value}catch(d){return void P(d)}h.done?k(v):Promise.resolve(v).then(E,x)}function b(_,k){if(!(_ instanceof k))throw new TypeError("Cannot call a class as a function")}function m(_,k){for(var P=0;P<k.length;P++){var E=k[P];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(_,E.key,E)}}function c(_,k,P){return k&&m(_.prototype,k),P&&m(_,P),_}var A=function(){function _(k){var P=k.pageDiv,E=k.pdfPage,x=k.linkService,y=k.downloadManager,f=k.annotationStorage,h=void 0===f?null:f,v=k.imageResourcesPath,d=void 0===v?"":v,S=k.renderForms,w=void 0===S||S,j=k.l10n,te=void 0===j?Q.NullL10n:j,J=k.enableScripting,ge=void 0!==J&&J,de=k.hasJSActionsPromise,he=void 0===de?null:de,be=k.fieldObjectsPromise,oe=void 0===be?null:be,q=k.mouseState,G=void 0===q?null:q;b(this,_),this.pageDiv=P,this.pdfPage=E,this.linkService=x,this.downloadManager=y,this.imageResourcesPath=d,this.renderForms=w,this.l10n=te,this.annotationStorage=h,this.enableScripting=ge,this._hasJSActionsPromise=he,this._fieldObjectsPromise=oe,this._mouseState=G,this.div=null,this._cancelled=!1}return c(_,[{key:"render",value:(k=function u(_){return function(){var k=this,P=arguments;return new Promise(function(E,x){var y=_.apply(k,P);function f(v){o(y,E,x,f,h,"next",v)}function h(v){o(y,E,x,f,h,"throw",v)}f(void 0)})}}(H.default.mark(function E(x){var y,h,v,d,S,w,j,te,J=arguments;return H.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return y=J.length>1&&void 0!==J[1]?J[1]:"display",de.next=3,Promise.all([this.pdfPage.getAnnotations({intent:y}
1),this._hasJSActionsPromise,this._fieldObjectsPromise]);case 3:if(h=B(de.sent,3),v=h[0],S=void 0!==(d=h[1])&&d,j=void 0===(w=h[2])?null:w,!this._cancelled&&0!==v.length){de.next=12;break}return de.abrupt("return");case 12:te={viewport:x.clone({dontFlip:!0}),div:this.div,annotations:v,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:S,fieldObjects:j,mouseState:this._mouseState},this.div?R.AnnotationLayer.update(te):(this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.appendChild(this.div),te.div=this.div,R.AnnotationLayer.render(te),this.l10n.translate(this.div));case 14:case"end":return de.stop()}},E,this)})),function P(E){return k.apply(this,arguments)})},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){!this.div||(this.div.hidden=!0)}}]),_;var k}();e.AnnotationLayerBuilder=A;var O=function(){function _(){b(this,_)}return c(_,[{key:"createAnnotationLayerBuilder",value:function(P,E){var x=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Q.NullL10n,v=arguments.length>6&&void 0!==arguments[6]&&arguments[6],d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,S=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,w=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null;return new A({pageDiv:P,pdfPage:E,imageResourcesPath:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",renderForms:!(arguments.length>4&&void 0!==arguments[4])||arguments[4],linkService:new $.SimpleLinkService,l10n:h,annotationStorage:x,enableScripting:v,hasJSActionsPromise:d,fieldObjectsPromise:w,mouseState:S})}}]),_}();e.DefaultAnnotationLayerFactory=O},(U,e,V)=>{U.exports=V(3)},(U,e,V)=>{function H(Q){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(X){return typeof X}:function(X){return X&&"function"==typeof Symbol&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X})(Q)}var R=function(Q){var B,$=Object.prototype,X=$.hasOwnProperty,z="function"==typeof Symbol?Symbol:{},W=z.iterator||"@@iterator",D=z.asyncIterator||"@@asyncIterator",g=z.toStringTag||"@@toStringTag";function p(de,he,be){return Object.defineProperty(de,he,{value:be,enumerable:!0,configurable:!0,writable:!0}),de[he]}try{p({},"")}catch(de){p=function(be,oe,q){return be[oe]=q}}function o(de,he,be,oe){var G=Object.create((he&&he.prototype instanceof _?he:_).prototype),L=new te(oe||[]);return G._invoke=function d(de,he,be){var oe=b;return function(G,L){if(oe===c)throw new Error("Generator is already running");if(oe===A){if("throw"===G)throw L;return ge()}for(be.method=G,be.arg=L;;){var F=be.delegate;if(F){var Z=S(F,be);if(Z){if(Z===O)continue;return Z}}if("next"===be.method)be.sent=be._sent=be.arg;else if("throw"===be.method){if(oe===b)throw oe=A,be.arg;be.dispatchException(be.arg)}else"return"===be.method&&be.abrupt("return",be.arg);oe=c;var re=u(de,he,be);if("normal"===re.type){if(oe=be.done?A:m,re.arg===O)continue;return{value:re.arg,done:be.done}}"throw"===re.type&&(oe=A,be.method="throw",be.arg=re.arg)}}}(de,be,L),G}function u(de,he,be){try{return{type:"normal",arg:de.call(he,be)}}catch(oe){return{type:"throw",arg:oe}}}Q.wrap=o;var b="suspendedStart",m="suspendedYield",c="executing",A="completed",O={};function _(){}function k(){}function P(){}var E={};p(E,W,function(){return this});var x=Object.getPrototypeOf,y=x&&x(x(J([])));y&&y!==$&&X.call(y,W)&&(E=y);var f=P.prototype=_.prototype=Object.create(E);function h(de){["next","throw","return"].forEach(function(he){p(de,he,function(be){return this._invoke(he,be)})})}function v(de,he){function be(G,L,F,Z){var re=u(de[G],de,L);if("throw"!==re.type){var ue=re.arg,ve=ue.value;return ve&&"object"===H(ve)&&X.call(ve,"__await")?he.resolve(ve.__await).then(function(ke){be("next",ke,F,Z)},function(ke){be("throw",ke,F,Z)}):he.resolve(ve).then(function(ke){ue.value=ke,F(ue)},function(ke){return be("throw",ke,F,Z)})}Z(re.arg)}var oe;this._invoke=function q(G,L){function F(){return new he(function(Z,re){be(G,L,Z,re)})}return oe=oe?oe.then(F,F):F()}}function S(de,he){var be=de.iterator[he.method];
vendor: 4,817 bytes, line 1
1if(be===B){if(he.delegate=null,"throw"===he.method){if(de.iterator.return&&(he.method="return",he.arg=B,S(de,he),"throw"===he.method))return O;he.method="throw",he.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}var oe=u(be,de.iterator,he.arg);if("throw"===oe.type)return he.method="throw",he.arg=oe.arg,he.delegate=null,O;var q=oe.arg;return q?q.done?(he[de.resultName]=q.value,he.next=de.nextLoc,"return"!==he.method&&(he.method="next",he.arg=B),he.delegate=null,O):q:(he.method="throw",he.arg=new TypeError("iterator result is not an object"),he.delegate=null,O)}function w(de){var he={tryLoc:de[0]};1 in de&&(he.catchLoc=de[1]),2 in de&&(he.finallyLoc=de[2],he.afterLoc=de[3]),this.tryEntries.push(he)}function j(de){var he=de.completion||{};he.type="normal",delete he.arg,de.completion=he}function te(de){this.tryEntries=[{tryLoc:"root"}],de.forEach(w,this),this.reset(!0)}function J(de){if(de){var he=de[W];if(he)return he.call(de);if("function"==typeof de.next)return de;if(!isNaN(de.length)){var be=-1,oe=function q(){for(;++be<de.length;)if(X.call(de,be))return q.value=de[be],q.done=!1,q;return q.value=B,q.done=!0,q};return oe.next=oe}}return{next:ge}}function ge(){return{value:B,done:!0}}return k.prototype=P,p(f,"constructor",P),p(P,"constructor",k),k.displayName=p(P,g,"GeneratorFunction"),Q.isGeneratorFunction=function(de){var he="function"==typeof de&&de.constructor;return!!he&&(he===k||"GeneratorFunction"===(he.displayName||he.name))},Q.mark=function(de){return Object.setPrototypeOf?Object.setPrototypeOf(de,P):(de.__proto__=P,p(de,g,"GeneratorFunction")),de.prototype=Object.create(f),de},Q.awrap=function(de){return{__await:de}},h(v.prototype),p(v.prototype,D,function(){return this}),Q.AsyncIterator=v,Q.async=function(de,he,be,oe,q){void 0===q&&(q=Promise);var G=new v(o(de,he,be,oe),q);return Q.isGeneratorFunction(he)?G:G.next().then(function(L){return L.done?L.value:G.next()})},h(f),p(f,g,"Generator"),p(f,W,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),Q.keys=function(de){var he=[];for(var be in de)he.push(be);return he.reverse(),function oe(){for(;he.length;){var q=he.pop();if(q in de)return oe.value=q,oe.done=!1,oe}return oe.done=!0,oe}},Q.values=J,te.prototype={constructor:te,reset:function(he){if(this.prev=0,this.next=0,this.sent=this._sent=B,this.done=!1,this.delegate=null,this.method="next",this.arg=B,this.tryEntries.forEach(j),!he)for(var be in this)"t"===be.charAt(0)&&X.call(this,be)&&!isNaN(+be.slice(1))&&(this[be]=B)},stop:function(){this.done=!0;var be=this.tryEntries[0].completion;if("throw"===be.type)throw be.arg;return this.rval},dispatchException:function(he){if(this.done)throw he;var be=this;function oe(re,ue){return L.type="throw",L.arg=he,be.next=re,ue&&(be.method="next",be.arg=B),!!ue}for(var q=this.tryEntries.length-1;q>=0;--q){var G=this.tryEntries[q],L=G.completion;if("root"===G.tryLoc)return oe("end");if(G.tryLoc<=this.prev){var F=X.call(G,"catchLoc"),Z=X.call(G,"finallyLoc");if(F&&Z){if(this.prev<G.catchLoc)return oe(G.catchLoc,!0);if(this.prev<G.finallyLoc)return oe(G.finallyLoc)}else if(F){if(this.prev<G.catchLoc)return oe(G.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<G.finallyLoc)return oe(G.finallyLoc)}}}},abrupt:function(he,be){for(var oe=this.tryEntries.length-1;oe>=0;--oe){var q=this.tryEntries[oe];if(q.tryLoc<=this.prev&&X.call(q,"finallyLoc")&&this.prev<q.finallyLoc){var G=q;break}}G&&("break"===he||"continue"===he)&&G.tryLoc<=be&&be<=G.finallyLoc&&(G=null);var L=G?G.completion:{};return L.type=he,L.arg=be,G?(this.method="next",this.next=G.finallyLoc,O):this.complete(L)},complete:function(he,be){if("throw"===he.type)throw he.arg;return"break"===he.type||"continue"===he.type?this.next=he.arg:"return"===he.type?(this.rval=this.arg=he.arg,this.method="return",this.next="end"):"normal"===he.type&&be&&(this.next=be),O},finish:function(he){for(var be=this.tryEntries.length-1;be>=0;--be){var oe=this.tryEntries[be];if(oe.finallyLoc===he)return this.complete(oe.completion,oe.afterLoc),j(oe),O}},catch:function(he){for(var be=this.tryEntries.length-1;be>=0;--be){var oe=this.tryEntries[be];if(oe.tryLoc===he){var q=oe.completion;if("throw"===q.type){var G=q.arg;j(oe)}return G}}throw new Error("illegal catch attempt")},delegateYield:function(he,be,oe){return this.delegate={iterator:J(he),resultName:be,nextLoc:oe},"next"===this.method&&(this.arg=B),O}},Q}("object"===H(U=V.nmd(U))?U.exports:{});try{regeneratorRuntime=R}catch(Q){"object"===("undefined"==typeof globalThis?"undefined":H(globalThis))?globalThis.regeneratorRuntime=R:Function("r","regeneratorRuntime = r")(R)}},U=>{var e;e="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:s(85908),U.exports=e},(U,e,V)=>
1{Object.defineProperty(e,"__esModule",{value:!0}),e.fixupLangCode=function W(p){return z[null==p?void 0:p.toLowerCase()]||p},e.getL10nFallback=B,e.NullL10n=void 0;var H=function R(p){return p&&p.__esModule?p:{default:p}}(V(2));function Q(p,o,u,b,m,c,A){try{var O=p[c](A),_=O.value}catch(k){return void u(k)}O.done?o(_):Promise.resolve(_).then(b,m)}function $(p){return function(){var o=this,u=arguments;return new Promise(function(b,m){var c=p.apply(o,u);function A(_){Q(c,b,m,A,O,"next",_)}function O(_){Q(c,b,m,A,O,"throw",_)}A(void 0)})}}var X={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",print_progress_percent:"{{progress}}%","toggle_sidebar.title":"Toggle Sidebar","toggle_sidebar_notification2.title":"Toggle Sidebar (document contains outline/attachments/layers)",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",error_version_info:"PDF.js v{{version}} (build: {{build}})",error_message:"Message: {{message}}",error_stack:"Stack: {{stack}}",error_file:"File: {{file}}",error_line:"Line: {{line}}",rendering_error:"An error occurred while rendering the page.",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading:"Loading\u2026",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts."};function B(p,o){switch(p){case"find_match_count":p="find_match_count[".concat(1===o.total?"one":"other","]");break;case"find_match_count_limit":p="find_match_count_limit[".concat(1===o.limit?"one":"other","]")}return X[p]||""}var z={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"};function D(p,o){return o?p.replace(/\{\{\s*(\w+)\s*\}\}/g,function(u,b){return b in o?o[b]:"{{"+b+"}}"}):p}var g={getLanguage:function(){return $(H.default.mark(function o(){return H.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return","en-us");case 1:case"end":return b.stop()}},o)}))()},getDirection:function(){return $(H.default.mark(function o(){return H.default.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return","ltr");case 1:case"end":return b.stop()}},o)}))()},get:function(o){var u=arguments;return $(H.default.mark(function b(){var m,c;return H.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return m=u.length>1&&void 0!==u[1]?u[1]:null,c=u.length>2&&void 0!==u[2]?u[2]:B(o,m),O.abrupt("return",D(c,m));case 3:case"end":return O.stop()}},b)}))()},translate:function(o){return $(H.default.mark(function u(){return H.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:case"end":return m.stop()}},u)}))()}};e.NullL10n=g},(U,e,V)=>
1{Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleLinkService=e.PDFLinkService=void 0;var H=function $(b){return b&&b.__esModule?b:{default:b}}(V(2)),R=V(4),Q=V(7);function X(b,m,c,A,O,_,k){try{var P=b[_](k),E=P.value}catch(x){return void c(x)}P.done?m(E):Promise.resolve(E).then(A,O)}function B(b){return function(){var m=this,c=arguments;return new Promise(function(A,O){var _=b.apply(m,c);function k(E){X(_,A,O,k,P,"next",E)}function P(E){X(_,A,O,k,P,"throw",E)}k(void 0)})}}function z(b){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"==typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(b)}function W(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function D(b,m){for(var c=0;c<m.length;c++){var A=m[c];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(b,A.key,A)}}function g(b,m,c){return m&&D(b.prototype,m),c&&D(b,c),b}var p=function(){function b(){var m=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=m.eventBus,A=m.externalLinkTarget,O=void 0===A?null:A,_=m.externalLinkRel,k=void 0===_?null:_,P=m.ignoreDestinationZoom,E=void 0!==P&&P;W(this,b),this.eventBus=c,this.externalLinkTarget=O,this.externalLinkRel=k,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=E,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return g(b,[{key:"setDocument",value:function(c){this.baseUrl=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.pdfDocument=c,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(c){this.pdfViewer=c}},{key:"setHistory",value:function(c){this.pdfHistory=c}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(c){this.pdfViewer.currentPageNumber=c}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(c){this.pdfViewer.pagesRotation=c}},{key:"_goToDestinationHelper",value:function(c){var P,A=this,O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,_=arguments.length>2?arguments[2]:void 0,k=_[0];if("object"===z(k)&&null!==k){if(null===(P=this._cachedPageNumber(k)))return void this.pdfDocument.getPageIndex(k).then(function(E){A.cachePageRef(E+1,k),A._goToDestinationHelper(c,O,_)}).catch(function(){console.error('PDFLinkService._goToDestinationHelper: "'.concat(k,'" is not ')+'a valid page reference, for dest="'.concat(c,'".'))})}else{if(!Number.isInteger(k))return void console.error('PDFLinkService._goToDestinationHelper: "'.concat(k,'" is not ')+'a valid destination reference, for dest="'.concat(c,'".'));P=k+1}!P||P<1||P>this.pagesCount?console.error('PDFLinkService._goToDestinationHelper: "'.concat(P,'" is not ')+'a valid page number, for dest="'.concat(c,'".')):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:O,explicitDest:_,pageNumber:P})),this.pdfViewer.scrollPageIntoView({pageNumber:P,destArray:_,ignoreDestinationZoom:this._ignoreDestinationZoom}))}},{key:"goToDestination",value:(m=B(H.default.mark(function A(O){var _,k;return H.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(this.pdfDocument){E.next=2;break}return E.abrupt("return");case 2:if("string"!=typeof O){E.next=9;break}return _=O,E.next=6,this.pdfDocument.getDestination(O);case 6:k=E.sent,E.next=13;break;case 9:return _=null,E.next=12,O;case 12:k=E.sent;case 13:if(Array.isArray(k)){E.next=16;break}return console.error('PDFLinkService.goToDestination: "'.concat(k,'" is not ')+'a valid destination array, for dest="'.concat(O,'".')),E.abrupt("return");case 16:this._goToDestinationHelper(O,_,k);case 17:case"end":return E.stop()}},A,this)})),function c(A){return m.apply(this,arguments)})},{key:"goToPage",value:function(c){if(this.pdfDocument){var A="string"==typeof c&&this.pdfViewer.pageLabelToPageNumber(c)||0|c;if(!(Number.isInteger(A)&&A>0&&A<=this.pagesCount))return void console.error('PDFLinkService.goToPage: "'.concat(c,'" is not a valid page.'));this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(A)),this.pdfViewer.scrollPageIntoView({pageNumber:A})}}},{key:"addLinkAttributes",value:function(c,A){(0,R.addLinkAttributes)(c,{url:A,target:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?R.LinkTarget.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled})}},{key:"getDestinationHash",value:function(c){if("string"==typeof c){if(c.length>0)return this.getAnchorUrl("#"+escape(c))}else if(Array.isArray(c)){var A=JSON.stringify(c);if(A.length>0)return this.getAnchorUrl("#"+escape(A))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(c){return(this.baseUrl||"")+c}},{key:"setHash",value:function(c){var A,O;if(this.pdfDocument)if(c.includes("=")){var _=(0,Q.parseQueryString)(c);if(_.has("search")&&this.eventBus.dispatch("findfromurlhash",{source:this,query:_.get("search").replace(/"/g,""),phraseSearch:"true"===_.get("phrase")}),_.has("page")&&(A=0|_.get("page")||1),_.has("zoom")){var k=_.get("zoom").split(","),P=k[0],E=parseFloat(P);P.includes("Fit")?"Fit"===P||"FitB"===P?O=[null,{name:P}]:"FitH"===P||"FitBH"===P||"FitV"===P||"FitBV"===P?O=[null,{name:P},k.length>1?0|k[1]:null]:"FitR"===P?5!==k.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):O=[null,{name:P},0|k[1],0|k[2],0|k[3],0|k[4]]:console.error('PDFLinkService.setHash: "'.concat(P,'" is not ')+"a valid zoom value."):O=[null,{name:"XYZ"},k.length>1?0|k[1]:null,k.length>2?0|k[2]:null,E?E/100:P]}O?this.pdfViewer.scrollPageIntoView({pageNumber:A||this.page,destArray:O,allowNegativeOffset:!0}):A&&(this.page=A),_.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:_.get("pagemode")}),_.has("nameddest")&&this.goToDestination(_.get("nameddest"))}else{O=unescape(c);try{O=JSON.parse(O),Array.isArray(O)||(O=O.toString())}catch(x){}if("string"==typeof O||function o(b){if(!Array.isArray(b))return!1;var m=b.length;if(m<2)return!1;var c=b[0];if(!("object"===z(c)&&Number.isInteger(c.num)&&Number.isInteger(c.gen)||Number.isInteger(c)&&c>=0))return!1;var A=b[1];if("object"!==z(A)||"string"!=typeof A.name)return!1;var O=!0;switch(A.name){case"XYZ":if(5!==m)return!1;break;case"Fit":case"FitB":return 2===m;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==m)return!1;break;case"FitR":if(6!==m)return!1;O=!1;break;default:return!1}for(var _=2;_<m;_++){var k=b[_];if(!("number"==typeof k||O&&null===k))return!1}return!0}(O))return void this.goToDestination(O);console.error('PDFLinkService.setHash: "'.concat(unescape(c),'" is not ')+"a valid destination.")}}},{key:"executeNamedAction",value:function(c){var A,O;switch(c){case"GoBack":null===(A=this.pdfHistory)||void 0===A||A.back();break;case"GoForward":null===(O=this.pdfHistory)||void 0===O||O.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:c})}},{key:"cachePageRef",value:function(c,A){if(A){var O=0===A.gen?"".concat(A.num,"R"):"".concat(A.num,"R").concat(A.gen);this._pagesRefCache[O]=c}}},{key:"_cachedPageNumber",value:function(c){var A,O=0===c.gen?"".concat(c.num,"R"):"".concat(c.num,"R").concat(c.gen);return(null===(A=this._pagesRefCache)||void 0===A?void 0:A[O])||null}},{key:"isPageVisible",value:function(c){return this.pdfViewer.isPageVisible(c)}},{key:"isPageCached",value:function(c){return this.pdfViewer.isPageCached(c)}}]),b;var m}();e.PDFLinkService=p;var u=function(){function b(){W(this,b),this.externalLinkEnabled=!0}return g(b,[{key:"pagesCount",get:function(){return 0}},{key:"page",get:function(){return 0},set:function(c){}},{key:"rotation",get:function(){return 0},set:function(c){}},{key:"goToDestination",value:(m=B(H.default.mark(function A(O){return H.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:case"end":return k.stop()}},A)})),function c(A){return m.apply(this,arguments)})},{key:"goToPage",value:function(c){}},{key:"addLinkAttributes",value:function(c,A){(0,R.addLinkAttributes)(c,{url:A,enabled:this.externalLinkEnabled})}},{key:"getDestinationHash",value:function(c){return"#"}},{key:"getAnchorUrl",value:function(c){return"#"}},{key:"setHash",value:function(c){}},{key:"executeNamedAction",value:function(c){}},{key:"cachePageRef",value:function(c,A){}},{key:"isPageVisible",value:function(c){return!0}},{key:"isPageCached",value:function(c){return!0}}]),b;var m}();e.SimpleLinkService=u},(U,e)=>{function V(se,we){if("function"!=typeof we&&null!==we)throw new TypeError("Super expression must either be null or a function");se.prototype=Object.create(we&&we.prototype,{constructor:{value:se,writable:!0,configurable:!0}}),we&&H(se,we)}
1function H(se,we){return(H=Object.setPrototypeOf||function(Pe,ze){return Pe.__proto__=ze,Pe})(se,we)}function R(se){var we=function X(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(se){return!1}}();return function(){var ze,Pe=B(se);if(we){var Le=B(this).constructor;ze=Reflect.construct(Pe,arguments,Le)}else ze=Pe.apply(this,arguments);return Q(this,ze)}}function Q(se,we){if(we&&("object"===g(we)||"function"==typeof we))return we;if(void 0!==we)throw new TypeError("Derived constructors may only return object or undefined");return function $(se){if(void 0===se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return se}(se)}function B(se){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(_e){return _e.__proto__||Object.getPrototypeOf(_e)})(se)}function z(se,we){if(!(se instanceof we))throw new TypeError("Cannot call a class as a function")}function W(se,we){for(var _e=0;_e<we.length;_e++){var Pe=we[_e];Pe.enumerable=Pe.enumerable||!1,Pe.configurable=!0,"value"in Pe&&(Pe.writable=!0),Object.defineProperty(se,Pe.key,Pe)}}function D(se,we,_e){return we&&W(se.prototype,we),_e&&W(se,_e),se}function g(se){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_e){return typeof _e}:function(_e){return _e&&"function"==typeof Symbol&&_e.constructor===Symbol&&_e!==Symbol.prototype?"symbol":typeof _e})(se)}function p(se,we){return function b(se){if(Array.isArray(se))return se}(se)||function u(se,we){var _e=null==se?null:"undefined"!=typeof Symbol&&se[Symbol.iterator]||se["@@iterator"];if(null!=_e){var Ue,Ye,Pe=[],ze=!0,Le=!1;try{for(_e=_e.call(se);!(ze=(Ue=_e.next()).done)&&(Pe.push(Ue.value),!we||Pe.length!==we);ze=!0);}catch(je){Le=!0,Ye=je}finally{try{!ze&&null!=_e.return&&_e.return()}finally{if(Le)throw Ye}}return Pe}}(se,we)||c(se,we)||function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(se,we){var _e="undefined"!=typeof Symbol&&se[Symbol.iterator]||se["@@iterator"];if(!_e){if(Array.isArray(se)||(_e=c(se))||we&&se&&"number"==typeof se.length){_e&&(se=_e);var Pe=0,ze=function(){};return{s:ze,n:function(){return Pe>=se.length?{done:!0}:{done:!1,value:se[Pe++]}},e:function(Xe){throw Xe},f:ze}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Ye,Le=!0,Ue=!1;return{s:function(){_e=_e.call(se)},n:function(){var Xe=_e.next();return Le=Xe.done,Xe},e:function(Xe){Ue=!0,Ye=Xe},f:function(){try{!Le&&null!=_e.return&&_e.return()}finally{if(Ue)throw Ye}}}}function c(se,we){if(se){if("string"==typeof se)return A(se,we);var _e=Object.prototype.toString.call(se).slice(8,-1);if("Object"===_e&&se.constructor&&(_e=se.constructor.name),"Map"===_e||"Set"===_e)return Array.from(se);if("Arguments"===_e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_e))return A(se,we)}}function A(se,we){(null==we||we>se.length)&&(we=se.length);for(var _e=0,Pe=new Array(we);_e<we;_e++)Pe[_e]=se[_e];return Pe}Object.defineProperty(e,"__esModule",{value:!0}),e.apiPageLayoutToSpreadMode=function me(se){switch(se){case"SinglePage":case"OneColumn":return J.NONE;case"TwoColumnLeft":case"TwoPageLeft":return J.ODD;case"TwoColumnRight":case"TwoPageRight":return J.EVEN}return J.NONE},e.apiPageModeToSidebarView=function Ne(se){switch(se){case"UseNone":return S.NONE;case"UseThumbs":return S.THUMBS;case"UseOutlines":return S.OUTLINE;case"UseAttachments":return S.ATTACHMENTS;case"UseOC":return S.LAYERS}return S.NONE},e.approximateFraction=function G(se){if(Math.floor(se)===se)return[se,1];var we=1/se;if(we>8)return[1,8];if(Math.floor(we)===we)return[1,we];for(var Pe=se>1?we:se,ze=0,Le=1,Ue=1,Ye=1;;){var je=ze+Ue,Xe=Le+Ye;if(Xe>8)break;Pe<=je/Xe?(Ue=je,Ye=Xe):(ze=je,Le=Xe)}return Pe-ze/Le<Ue/Ye-Pe?Pe===se?[ze,Le]:[Le,ze]:Pe===se?[Ue,Ye]:[Ye,Ue]},e.backtrackBeforeAllVisibleElements=Z,e.binarySearchFirstItem=q,e.getActiveOrFocusedElement=function Re(){for(var se=document,we=se.activeElement||se.querySelector(":focus");null!==(_e=we)&&void 0!==_e&&_e.shadowRoot;){var _e;we=(se=we.shadowRoot).activeElement||se.querySelector(":focus")}return we},e.getOutputScale=function de(se){var Pe=(window.devicePixelRatio||1)/(se.webkitBackingStorePixelRatio||se.mozBackingStorePixelRatio||se.backingStorePixelRatio||1);return{sx:Pe,sy:Pe,scaled:1!==Pe}},e.getPageSizeInches=function F(se){var _e=se.userUnit,Pe=se.rotate,ze=p(se.view,4),Xe=Pe%180!=0,Ze=(ze[2]-ze[0])/72*_e,ot=(ze[3]-ze[1])/72*_e;return{width:Xe?ot:Ze,height:Xe?Ze:ot}},e.getVisibleElements=function re(se){var we=se.scrollEl,_e=se.views,Pe=se.sortByVisibility,ze=void 0!==Pe&&Pe,Le=se.horizontal,Ue=void 0!==Le&&Le,Ye=se.rtl,je=void 0!==Ye&&Ye,Xe=we.scrollTop,Ze=Xe+we.clientHeight,ot=we.scrollLeft,st=ot+we.clientWidth;var gt=[],Nt=_e.length,Rt=q(_e,Ue?function _t(yt){var bt=yt.div,Dt=bt.offsetLeft+bt.clientLeft;return je?Dt<st:Dt+bt.clientWidth>ot}:function ht(yt){var bt=yt.div;return bt.offsetTop+bt.clientTop+bt.clientHeight>Xe});Rt>0&&Rt<Nt&&!Ue&&(Rt=Z(Rt,_e,Xe));for(var zt=Ue?st:-1,Bt=Rt;Bt<Nt;Bt++){var Wt=_e[Bt],Vt=Wt.div,wt=Vt.offsetLeft+Vt.clientLeft,pt=Vt.offsetTop+Vt.clientTop,jt=Vt.clientWidth,en=Vt.clientHeight,rn=wt+jt,xe=pt+en;if(-1===zt)xe>=Ze&&(zt=xe);else if((Ue?wt:pt)>zt)break;if(!(xe<=Xe||pt>=Ze||rn<=ot||wt>=st)){var We=Math.max(0,Xe-pt)+Math.max(0,xe-Ze),et=(jt-(Math.max(0,ot-wt)+Math.max(0,rn-st)))/jt;gt.push({id:Wt.id,x:wt,y:pt,view:Wt,percent:(en-We)/en*et*100|0,widthPercent:100*et|0})}}var ct=gt[0],ut=gt[gt.length-1];return ze&>.sort(function(yt,bt){var Dt=yt.percent-bt.percent;return Math.abs(Dt)>.001?-Dt:yt.id-bt.id}),{first:ct,last:ut,views:gt}},e.isPortraitOrientation=function Ve(se){return se.width<=se.height},e.isValidRotation=function Ie(se){return Number.isInteger(se)&&se%90==0},e.isValidScrollMode=function Oe(se){return Number.isInteger(se)&&Object.values(te).includes(se)&&se!==te.UNKNOWN},e.isValidSpreadMode=function Ee(se){return Number.isInteger(se)&&Object.values(J).includes(se)&&se!==J.UNKNOWN},e.moveToEndOfArray=function Te(se,we){for(var _e=[],Pe=se.length,ze=0,Le=0;Le<Pe;++Le)we(se[Le])?_e.push(se[Le]):(se[ze]=se[Le],++ze);for(var Ue=0;ze<Pe;++Ue,++ze)se[ze]=_e[Ue]},e.noContextMenuHandler=function ue(se){se.preventDefault()},e.normalizeWheelEventDelta=function ke(se){var we=ve(se);return 0===se.deltaMode?we/=900:1===se.deltaMode&&(we/=30),we},e.normalizeWheelEventDirection=ve,e.parseQueryString=function oe(se){var Pe,we=new Map,_e=m(se.split("&"));try{for(_e.s();!(Pe=_e.n()).done;){var Le=Pe.value.split("="),Ue=Le[0].toLowerCase(),Ye=Le.length>1?Le[1]:"";we.set(decodeURIComponent(Ue),decodeURIComponent(Ye))}}catch(je){_e.e(je)}finally{_e.f()}return we},e.roundToDivide=function L(se,we){var _e=se%we;return 0===_e?se:Math.round(se-_e+we)},e.scrollIntoView=function he(se,we){var _e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Pe=se.offsetParent;if(Pe){for(var ze=se.offsetTop+se.clientTop,Le=se.offsetLeft+se.clientLeft;Pe.clientHeight===Pe.scrollHeight&&Pe.clientWidth===Pe.scrollWidth||_e&&(Pe.classList.contains("markedContent")||"hidden"===getComputedStyle(Pe).overflow);)if(ze+=Pe.offsetTop,Le+=Pe.offsetLeft,!(Pe=Pe.offsetParent))return;we&&(void 0!==we.top&&(ze+=we.top),void 0!==we.left&&(Pe.scrollLeft=Le+=we.left)),Pe.scrollTop=ze}else console.error("offsetParent is not set -- cannot scroll")},e.waitOnEventOrTimeout=function pe(se){var we=se.target,_e=se.name,Pe=se.delay,ze=void 0===Pe?0:Pe;return new Promise(function(Le,Ue){if("object"!==g(we)||!_e||"string"!=typeof _e||!(Number.isInteger(ze)&&ze>
1=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function Ye(ot){we instanceof ce?we._off(_e,je):we.removeEventListener(_e,je),Ze&&clearTimeout(Ze),Le(ot)}var je=Ye.bind(null,le.EVENT);we instanceof ce?we._on(_e,je):we.addEventListener(_e,je);var Xe=Ye.bind(null,le.TIMEOUT),Ze=setTimeout(Xe,ze)})},e.watchScroll=function be(se,we){var _e=function(Ue){ze||(ze=window.requestAnimationFrame(function(){ze=null;var je=se.scrollLeft,Xe=Pe.lastX;je!==Xe&&(Pe.right=je>Xe),Pe.lastX=je;var Ze=se.scrollTop,ot=Pe.lastY;Ze!==ot&&(Pe.down=Ze>ot),Pe.lastY=Ze,we(Pe)}))},Pe={right:!0,down:!0,lastX:se.scrollLeft,lastY:se.scrollTop,_eventHandler:_e},ze=null;return se.addEventListener("scroll",_e,!0),Pe},e.WaitOnType=e.VERTICAL_PADDING=e.UNKNOWN_SCALE=e.TextLayerMode=e.SpreadMode=e.SidebarView=e.ScrollMode=e.SCROLLBAR_PADDING=e.RendererType=e.ProgressBar=e.PresentationModeState=e.MIN_SCALE=e.MAX_SCALE=e.MAX_AUTO_SCALE=e.EventBus=e.DEFAULT_SCALE_VALUE=e.DEFAULT_SCALE_DELTA=e.DEFAULT_SCALE=e.AutoPrintRegExp=e.AutomationEventBus=e.animationStarted=void 0,e.DEFAULT_SCALE_VALUE="auto",e.DEFAULT_SCALE=1,e.DEFAULT_SCALE_DELTA=1.1,e.MIN_SCALE=.1,e.MAX_SCALE=10,e.UNKNOWN_SCALE=0,e.MAX_AUTO_SCALE=1.25,e.SCROLLBAR_PADDING=40,e.VERTICAL_PADDING=5;e.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};var S={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};e.SidebarView=S,e.RendererType={CANVAS:"canvas",SVG:"svg"},e.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};var te={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2};e.ScrollMode=te;var J={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function q(se,we){var _e=0,Pe=se.length-1;if(Pe<0||!we(se[Pe]))return se.length;if(we(se[_e]))return _e;for(;_e<Pe;){var ze=_e+Pe>>1;we(se[ze])?Pe=ze:_e=ze+1}return _e}function Z(se,we,_e){if(se<2)return se;var Pe=we[se].div,ze=Pe.offsetTop+Pe.clientTop;ze>=_e&&(ze=(Pe=we[se-1].div).offsetTop+Pe.clientTop);for(var Le=se-2;Le>=0&&!((Pe=we[Le].div).offsetTop+Pe.clientTop+Pe.clientHeight<=ze);--Le)se=Le;return se}function ve(se){var we=Math.hypot(se.deltaX,se.deltaY),_e=Math.atan2(se.deltaY,se.deltaX);return-.25*Math.PI<_e&&_e<.75*Math.PI&&(we=-we),we}e.SpreadMode=J,e.AutoPrintRegExp=/\bprint\s*\(/;var le={EVENT:"event",TIMEOUT:"timeout"};e.WaitOnType=le;var ne=new Promise(function(se){window.requestAnimationFrame(se)});e.animationStarted=ne;var ce=function(){function se(){z(this,se),this._listeners=Object.create(null)}return D(se,[{key:"on",value:function(_e,Pe){var ze=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._on(_e,Pe,{external:!0,once:null==ze?void 0:ze.once})}},{key:"off",value:function(_e,Pe){var ze=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._off(_e,Pe,{external:!0,once:null==ze?void 0:ze.once})}},{key:"dispatch",value:function(_e,Pe){var ze=this._listeners[_e];if(ze&&0!==ze.length){var Le,Ye,Ue=m(ze.slice(0));try{for(Ue.s();!(Ye=Ue.n()).done;){var je=Ye.value,Xe=je.listener,Ze=je.external;je.once&&this._off(_e,Xe),Ze?(Le||(Le=[])).push(Xe):Xe(Pe)}}catch(gt){Ue.e(gt)}finally{Ue.f()}if(Le){var ht,st=m(Le);try{for(st.s();!(ht=st.n()).done;)(0,ht.value)(Pe)}catch(gt){st.e(gt)}finally{st.f()}Le=null}}}},{key:"_on",value:function(_e,Pe){var ze,Le=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;((ze=this._listeners)[_e]||(ze[_e]=[])).push({listener:Pe,external:!0===(null==Le?void 0:Le.external),once:!0===(null==Le?void 0:Le.once)})}},{key:"_off",value:function(_e,Pe){var Le=this._listeners[_e];if(Le)for(var Ue=0,Ye=Le.length;Ue<Ye;Ue++)if(Le[Ue].listener===Pe)return void Le.splice(Ue,1)}}]),se}();e.EventBus=ce;var ie=function(se){V(_e,se);var we=R(_e);function _e(){return z(this,_e),we.apply(this,arguments)}return D(_e,[{key:"dispatch",value:function(ze,Le){throw new Error("Not implemented: AutomationEventBus.dispatch")}}]),_e}(ce);e.AutomationEventBus=ie;var Se=function(){function se(we){var _e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Pe=_e.height,ze=_e.width,Le=_e.units;z(this,se),this.visible=!0,this.div=document.querySelector(we+" .progress"),this.bar=this.div.parentNode,this.height=Pe||100,this.width=ze||100,this.units=Le||"%",this.div.style.height=this.height+this.units,this.percent=0}return D(se,[{key:"_updateBar",value:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate"),this.div.style.width=this.width*this._percent/100+this.units}},{key:"percent",get:function(){return this._percent},set:function(_e){this._indeterminate=isNaN(_e),this._percent=function fe(se,we,_e){return Math.min(Math.max(se,we),_e)}(_e,0,100),this._updateBar()}}
1,{key:"setWidth",value:function(_e){if(_e){var ze=_e.parentNode.offsetWidth-_e.offsetWidth;ze>0&&document.documentElement.style.setProperty("--loadingBar-end-offset","".concat(ze,"px"))}}},{key:"hide",value:function(){!this.visible||(this.visible=!1,this.bar.classList.add("hidden"))}},{key:"show",value:function(){this.visible||(this.visible=!0,this.bar.classList.remove("hidden"))}}]),se}();e.ProgressBar=Se},(U,e)=>{function V(g,p){var o="undefined"!=typeof Symbol&&g[Symbol.iterator]||g["@@iterator"];if(!o){if(Array.isArray(g)||(o=function H(g,p){if(g){if("string"==typeof g)return R(g,p);var o=Object.prototype.toString.call(g).slice(8,-1);if("Object"===o&&g.constructor&&(o=g.constructor.name),"Map"===o||"Set"===o)return Array.from(g);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return R(g,p)}}(g))||p&&g&&"number"==typeof g.length){o&&(g=o);var u=0,b=function(){};return{s:b,n:function(){return u>=g.length?{done:!0}:{done:!1,value:g[u++]}},e:function(_){throw _},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var A,m=!0,c=!1;return{s:function(){o=o.call(g)},n:function(){var _=o.next();return m=_.done,_},e:function(_){c=!0,A=_},f:function(){try{!m&&null!=o.return&&o.return()}finally{if(c)throw A}}}}function R(g,p){(null==p||p>g.length)&&(p=g.length);for(var o=0,u=new Array(p);o<p;o++)u[o]=g[o];return u}function Q(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")}function $(g,p){for(var o=0;o<p.length;o++){var u=p[o];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(g,u.key,u)}}function X(g,p,o){return p&&$(g.prototype,p),o&&$(g,o),g}Object.defineProperty(e,"__esModule",{value:!0}),e.StructTreeLayerBuilder=e.DefaultStructTreeLayerFactory=void 0;var B={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},z=/^H(\d+)$/,W=function(){function g(p){var o=p.pdfPage;Q(this,g),this.pdfPage=o}return X(g,[{key:"render",value:function(o){return this._walk(o)}},{key:"_setAttributes",value:function(o,u){void 0!==o.alt&&u.setAttribute("aria-label",o.alt),void 0!==o.id&&u.setAttribute("aria-owns",o.id)}},{key:"_walk",value:function(o){if(!o)return null;var u=document.createElement("span");if("role"in o){var b=o.role,m=b.match(z);m?(u.setAttribute("role","heading"),u.setAttribute("aria-level",m[1])):B[b]&&u.setAttribute("role",B[b])}if(this._setAttributes(o,u),o.children)if(1===o.children.length&&"id"in o.children[0])this._setAttributes(o.children[0],u);else{var A,c=V(o.children);try{for(c.s();!(A=c.n()).done;)u.appendChild(this._walk(A.value))}catch(_){c.e(_)}finally{c.f()}}return u}}]),g}();e.StructTreeLayerBuilder=W,e.DefaultStructTreeLayerFactory=function(){function g(){Q(this,g)}return X(g,[{key:"createStructTreeLayerBuilder",value:function(o){return new W({pdfPage:o})}}]),g}()},(U,e,V)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TextLayerBuilder=e.DefaultTextLayerFactory=void 0;var H=V(4);function R(W,D){if(!(W instanceof D))throw new TypeError("Cannot call a class as a function")}function Q(W,D){for(var g=0;g<D.length;g++){var p=D[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(W,p.key,p)}}function $(W,D,g){return D&&Q(W.prototype,D),g&&Q(W,g),W}var B=function(){function W(D){var g=D.textLayerDiv,p=D.eventBus,o=D.pageIndex,u=D.viewport,b=D.highlighter,m=void 0===b?null:b,c=D.enhanceTextSelection,A=void 0!==c&&c;R(this,W),this.textLayerDiv=g,this.eventBus=p,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageNumber=o+1,this.viewport=u,this.textDivs=[],this.textLayerRenderTask=null,this.highlighter=m,this.enhanceTextSelection=A,this._bindMouse()}return $(W,[{key:"_finishRendering",value:function(){if(this.renderingDone=!0,!this.enhanceTextSelection){var g=document.createElement("div");g.className="endOfContent",this.textLayerDiv.appendChild(g)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}},{key:"render",value:function(){var g,p=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs.length=0,null===(g=this.highlighter)||void 0===g||g.setTextMapping(this.textDivs,this.textContentItemsStr);var u=document.createDocumentFragment();this.textLayerRenderTask=(0,H.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:u,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:o,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(function(){var b;p.textLayerDiv.appendChild(u),p._finishRendering(),null===(b=p.highlighter)||void 0===b||b.enable()},function(b){})}}},{key:"cancel",value:function(){var g;this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),null===(g=this.highlighter)||void 0===g||g.disable()}},{key:"setTextContentStream",value:function(g){this.cancel(),this.textContentStream=g}},{key:"setTextContent",value:function(g){this.cancel(),this.textContent=g}},{key:"_bindMouse",value:function(){var g=this,p=this.textLayerDiv,o=null;p.addEventListener("mousedown",function(u){if(g.enhanceTextSelection&&g.textLayerRenderTask)return g.textLayerRenderTask.expandTextDivs(!0),void(o&&(clearTimeout(o),o=null));var b=p.querySelector(".endOfContent");
1if(b){var m=u.target!==p;if(m=m&&"none"!==window.getComputedStyle(b).getPropertyValue("-moz-user-select")){var c=p.getBoundingClientRect(),A=Math.max(0,(u.pageY-c.top)/c.height);b.style.top=(100*A).toFixed(2)+"%"}b.classList.add("active")}}),p.addEventListener("mouseup",function(){if(g.enhanceTextSelection&&g.textLayerRenderTask)o=setTimeout(function(){g.textLayerRenderTask&&g.textLayerRenderTask.expandTextDivs(!1),o=null},300);else{var u=p.querySelector(".endOfContent");!u||(u.style.top="",u.classList.remove("active"))}})}}]),W}();e.TextLayerBuilder=B;var z=function(){function W(){R(this,W)}return $(W,[{key:"createTextLayerBuilder",value:function(g,p,o){return new B({textLayerDiv:g,pageIndex:p,viewport:o,enhanceTextSelection:arguments.length>3&&void 0!==arguments[3]&&arguments[3],eventBus:arguments.length>4?arguments[4]:void 0,highlighter:arguments.length>5?arguments[5]:void 0})}}]),W}();e.DefaultTextLayerFactory=z},(U,e,V)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XfaLayerBuilder=e.DefaultXfaLayerFactory=void 0;var H=V(6),R=V(4);function Q(W,D){if(!(W instanceof D))throw new TypeError("Cannot call a class as a function")}function $(W,D){for(var g=0;g<D.length;g++){var p=D[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(W,p.key,p)}}function X(W,D,g){return D&&$(W.prototype,D),g&&$(W,g),W}var B=function(){function W(D){var g=D.pageDiv,p=D.pdfPage,o=D.annotationStorage,u=D.linkService,b=D.xfaHtml;Q(this,W),this.pageDiv=g,this.pdfPage=p,this.annotationStorage=o,this.linkService=u,this.xfaHtml=b,this.div=null,this._cancelled=!1}return X(W,[{key:"render",value:function(g){var p=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"display";if("print"===o){var u={viewport:g.clone({dontFlip:!0}),div:this.div,xfa:this.xfaHtml,page:null,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:o},b=document.createElement("div");this.pageDiv.appendChild(b),u.div=b;var m=R.XfaLayer.render(u);return Promise.resolve(m)}return this.pdfPage.getXfa().then(function(c){if(p._cancelled||!c)return{textDivs:[]};var A={viewport:g.clone({dontFlip:!0}),div:p.div,xfa:c,page:p.pdfPage,annotationStorage:p.annotationStorage,linkService:p.linkService,intent:o};return p.div?R.XfaLayer.update(A):(p.div=document.createElement("div"),p.pageDiv.appendChild(p.div),A.div
1=p.div,R.XfaLayer.render(A))}).catch(function(c){console.error(c)})}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){!this.div||(this.div.hidden=!0)}}]),W}();e.XfaLayerBuilder=B;var z=function(){function W(){Q(this,W)}return X(W,[{key:"createXfaLayerBuilder",value:function(g,p){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return new B({pageDiv:g,pdfPage:p,annotationStorage:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,linkService:new H.SimpleLinkService,xfaHtml:u})}}]),W}();e.DefaultXfaLayerFactory=z},(U,e,V)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DownloadManager=void 0;var H=V(4),R=V(12);function $(W,D){for(var g=0;g<D.length;g++){var p=D[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(W,p.key,p)}}function B(W,D){var g=document.createElement("a");if(!g.click)throw new Error('DownloadManager: "a.click()" is not supported.');g.href=W,g.target="_parent","download"in g&&(g.download=D),(document.body||document.documentElement).appendChild(g),g.click(),g.remove()}e.DownloadManager=function(){function W(){(function Q(W,D){if(!(W instanceof D))throw new TypeError("Cannot call a class as a function")})(this,W),this._openBlobUrls=new WeakMap}return function X(W,D,g){return D&&$(W.prototype,D),g&&$(W,g),W}(W,[{key:"downloadUrl",value:function(g,p){(0,H.createValidAbsoluteUrl)(g,"http://example.com")?B(g+"#pdfjs.action=download",p):console.error("downloadUrl - not a valid URL: ".concat(g))}},{key:"downloadData",value:function(g,p,o){B((0,H.createObjectURL)(g,o,R.compatibilityParams.disableCreateObjectURL),p)}},{key:"openOrDownloadData",value:function(g,p,o){var u=(0,H.isPdfFile)(o),b=u?"application/pdf":"";if(u&&!R.compatibilityParams.disableCreateObjectURL){var c,m=this._openBlobUrls.get(g);m||(m=URL.createObjectURL(new Blob([p],{type:b})),this._openBlobUrls.set(g,m)),c="?file="+encodeURIComponent(m+"#"+o);try{return window.open(c),!0}catch(A){console.error("openOrDownloadData: ".concat(A)),URL.revokeObjectURL(m),this._openBlobUrls.delete(g)}}return this.downloadData(p,o,b),!1}},{key:"download",value:function(g,p,o){R.compatibilityParams.disableCreateObjectURL?this.downloadUrl(p,o):B(URL.createObjectURL(g),o)}}]),W}()},(U,e)=>{function V(m){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(m)}function R(m,c){for(var A=0;A<c.length;A++){var O=c[A];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(m,O.key,O)}}Object.defineProperty(e,"__esModule",{value:!0}),e.OptionKind=e.compatibilityParams=e.AppOptions=void 0;var $=Object.create(null);e.compatibilityParams=$;var X="undefined"!=typeof navigator&&navigator.userAgent||"",B="undefined"!=typeof navigator&&navigator.platform||"",z="undefined"!=typeof navigator&&navigator.maxTouchPoints||1,W=/Android/.test(X),D=/\b(iPad|iPhone|iPod)(?=;)/.test(X)||"MacIntel"===B&&z>1;/CriOS/.test(X)&&($.disableCreateObjectURL=!0),(D||W)&&($.maxCanvasPixels=5242880);var p={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};e.OptionKind=p;var o={annotationMode:{value:2,kind:p.VIEWER+p.PREFERENCE},cursorToolOnLoad:{value:0,kind:p.VIEWER+p.PREFERENCE},defaultUrl:{value:"compressed.tracemonkey-pldi-09.pdf",kind:p.VIEWER},defaultZoomValue:{value:"",kind:p.VIEWER+p.PREFERENCE},disableHistory:{value:!1,kind:p.VIEWER},disablePageLabels:{value:!1,kind:p.VIEWER+p.PREFERENCE},enablePermissions:{value:!1,kind:p.VIEWER+p.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:p.VIEWER+p.PREFERENCE},enableScripting:{value:!0,kind:p.VIEWER+p.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:p.VIEWER},externalLinkTarget:{value:0,kind:p.VIEWER+p.PREFERENCE},historyUpdateUrl:{value:!1,kind:p.VIEWER+p.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:p.VIEWER+p.PREFERENCE},imageResourcesPath:{value:"./images/",kind:p.VIEWER},maxCanvasPixels:{value:16777216,compatibility:$.maxCanvasPixels,kind:p.VIEWER},pdfBugEnabled:{value:!1,kind:p.VIEWER+p.PREFERENCE},printResolution:{value:150,kind:p.VIEWER},renderer:{value:"canvas",kind:p.VIEWER},sidebarViewOnLoad:{value:-1,kind:p.VIEWER+p.PREFERENCE},scrollModeOnLoad:{value:-1,kind:p.VIEWER+p.PREFERENCE},spreadModeOnLoad:{value:-1,kind:p.VIEWER+p.PREFERENCE},textLayerMode:{value:1,kind:p.VIEWER+p.PREFERENCE},useOnlyCssZoom:{value:!1,kind:p.VIEWER+p.PREFERENCE},viewerCssTheme:{value:0,kind:p.VIEWER+p.PREFERENCE},viewOnLoad:{value:0,kind:p.VIEWER+p.PREFERENCE},cMapPacked:{value:!0,kind:p.API},cMapUrl:{value:"../web/cmaps/",kind:p.API},disableAutoFetch:{value:!1,kind:p.API+p.PREFERENCE},disableFontFace:{value:!1,kind:p.API+p.PREFERENCE},disableRange:{value:!1,kind:p.API+p.PREFERENCE},disableStream:{value:!1,kind:p.API+p.PREFERENCE},docBaseUrl:{value:"",kind:p.API},enableXfa:{value:!0,kind:p.API+p.PREFERENCE},fontExtraProperties:{value:!1,kind:p.API},isEvalSupported:{value:!0,kind:p.API},maxImageSize:{value:-1,kind:p.API},pdfBug:{value:!1,kind:p.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:p.API},verbosity:{value:1,kind:p.API},workerPort:{value:null,kind:p.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:p.WORKER}};o.disablePreferences={value:!1,kind:p.VIEWER},o.locale={value:"undefined"!=typeof navigator?navigator.language:"en-US",kind:p.VIEWER},o.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:p.VIEWER}
1,o.renderer.kind+=p.PREFERENCE;var u=Object.create(null),b=function(){function m(){throw function H(m,c){if(!(m instanceof c))throw new TypeError("Cannot call a class as a function")}(this,m),new Error("Cannot initialize AppOptions.")}return function Q(m,c,A){return c&&R(m.prototype,c),A&&R(m,A),m}(m,null,[{key:"get",value:function(A){var O=u[A];if(void 0!==O)return O;var k,_=o[A];return void 0!==_?null!==(k=_.compatibility)&&void 0!==k?k:_.value:void 0}},{key:"getAll",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,O=Object.create(null);for(var _ in o){var k,P=o[_];if(A){if(0==(A&P.kind))continue;if(A===p.PREFERENCE){var E=P.value,x=V(E);if("boolean"===x||"string"===x||"number"===x&&Number.isInteger(E)){O[_]=E;continue}throw new Error("Invalid type for preference: ".concat(_))}}var y=u[_];O[_]=void 0!==y?y:null!==(k=P.compatibility)&&void 0!==k?k:P.value}return O}},{key:"set",value:function(A,O){u[A]=O}},{key:"setAll",value:function(A){for(var O in A)u[O]=A[O]}},{key:"remove",value:function(A){delete u[A]}},{key:"_hasUserOptions",value:function(){return Object.keys(u).length>0}}]),m}();e.AppOptions=b},(U,e,V)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GenericL10n=void 0;var H=function Q(p){return p&&p.__esModule?p:{default:p}}(V(2));V(14);var R=V(5);function $(p,o,u,b,m,c,A){try{var O=p[c](A),_=O.value}catch(k){return void u(k)}O.done?o(_):Promise.resolve(_).then(b,m)}function X(p){return function(){var o=this,u=arguments;return new Promise(function(b,m){var c=p.apply(o,u);function A(_){$(c,b,m,A,O,"next",_)}function O(_){$(c,b,m,A,O,"throw",_)}A(void 0)})}}function z(p,o){for(var u=0;u<o.length;u++){var b=o[u];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}var D=document.webL10n,g=function(){function p(o){(function B(p,o){if(!(p instanceof o))throw new TypeError("Cannot call a class as a function")})(this,p),this._lang=o,this._ready=new Promise(function(u,b){D.setLanguage((0,R.fixupLangCode)(o),function(){u(D)})})}return function W(p,o,u){return o&&z(p.prototype,o),u&&z(p,u),p}(p,[{key:"getLanguage",value:(o=X(H.default.mark(function b(){return H.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this._ready;case 2:return A.abrupt("return",A.sent.getLanguage());case 4:case"end":return A.stop()}},b,this)})),function u(){return o.apply(this,arguments)})},{key:"getDirection",value:function(){var o=X(H.default.mark(function b(){return H.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this._ready;case 2:return A.abrupt("return",A.sent.getDirection());case 4:case"end":return A.stop()}},b,this)}));return function u(){return o.apply(this,arguments)}}()},{key:"get",value:function(){var o=X(H.default.mark(function b(m){var c,A,_=arguments;return H.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return c=_.length>1&&void 0!==_[1]?_[1]:null,A=_.length>2&&void 0!==_[2]?_[2]:(0,R.getL10nFallback)(m,c),P.next=4,this._ready;case 4:return P.abrupt("return",P.sent.get(m,c,A));case 6:case"end":return P.stop()}},b,this)}));return function u(b){return o.apply(this,arguments)}}()},{key:"translate",value:function(){var o=X(H.default.mark(function b(m){return H.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,this._ready;case 2:return O.abrupt("return",O.sent.translate(m));case 4:case"end":return O.stop()}},b,this)}));return function u(b){return o.apply(this,arguments)}}()}]),p;var o}();e.GenericL10n=g},()=>{document.webL10n=function(U,e,V){var H={},R="",Q="textContent",$="",X={},B="loading";function o(x,y,f){y=y||function(d){},f=f||function(){};var h=new XMLHttpRequest;h.open("GET",x,true),h.overrideMimeType&&h.overrideMimeType("text/plain; charset=utf-8"),h.onreadystatechange=function(){4==h.readyState&&(200==h.status||0===h.status?y(h.responseText):f())},h.onerror=f,h.ontimeout=f;try{h.send(null)}catch(v){f()}}function u(x,y,f,h){var v=x.replace(/[^\/]*$/,"")||"./";function d(w){return w.lastIndexOf("\\")<0?w:w.replace(/\\\\/g,"\\").replace(/\\n
vendor: 7,514 bytes, line 1
1/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}o(x,function(w){R+=w,function S(w,j){var te={},J=/^\s*|\s*$/,ge=/^\s*#|^\s*$/,de=/^\s*\[(.*)\]\s*$/,he=/^\s*@import\s+url\((.*)\)\s*$/i,be=/^([^=\s]*)\s*=\s*(.+)$/;function oe(G,L,F){var Z=G.replace(J,"").split(/[\r\n]+/),re="*",ue=y.split("-",1)[0],ve=!1,ke="";!function Ie(){for(;;){if(!Z.length)return void F();var Oe=Z.shift();if(!ge.test(Oe)){if(L){if(ke=de.exec(Oe)){re=ke[1].toLowerCase(),ve="*"!==re&&re!==y&&re!==ue;continue}if(ve)continue;if(ke=he.exec(Oe))return void q(v+ke[1],Ie)}var Ee=Oe.match(be);Ee&&3==Ee.length&&(te[Ee[1]]=d(Ee[2]))}}}()}function q(G,L){o(G,function(F){oe(F,!1,L)},function(){console.warn(G+" not found."),L()})}oe(w,!0,function(){j(te)})}(w,function(j){for(var te in j){var J,ge,de=te.lastIndexOf(".");de>0?(J=te.substring(0,de),ge=te.substring(de+1)):(J=te,ge=Q),H[J]||(H[J]={}),H[J][ge]=j[te]}f&&f()})},h)}function b(x,y){x&&(x=x.toLowerCase()),y=y||function(){},function m(){H={},R="",$=""}(),$=x;var f=function W(){return e.querySelectorAll('link[type="application/l10n"]')}(),h=f.length;if(0!==h){var w,j=0;w=function(){++j>=h&&(y(),B="complete")};for(var J=0;J<h;J++)new te(f[J]).load(x,w)}else{var v=function D(){var x=e.querySelector('script[type="application/l10n"]');return x?JSON.parse(x.innerHTML):null}();if(v&&v.locales&&v.default_locale){if(console.log("using the embedded JSON directory, early way out"),!(H=v.locales[x])){var d=v.default_locale.toLowerCase();for(var S in v.locales){if((S=S.toLowerCase())===x){H=v.locales[x];break}S===d&&(H=v.locales[d])}}y()}else console.log("no resource to load, early way out");B="complete"}function te(de){var he=de.href;this.load=function(be,oe){u(he,be,oe,function(){console.warn(he+" not found."),console.warn('"'+be+'" resource not found'),$="",oe()})}}}function A(x,y,f){var h=H[x];if(!h){if(console.warn("#"+x+" is undefined."),!f)return null;h=f}var v={};for(var d in h){var S=h[d];S=_(S=O(S,y,x,d),y,x),v[d]=S}return v}function O(x,y,f,h){var d=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(x);if(!d||!d.length)return x;var j,S=d[1],w=d[2];return y&&w in y?j=y[w]:w in H&&(j=H[w]),S in X&&(x=(0,X[S])(x,j,f,h)),x}function _(x,y,f){return x.replace(/\{\{\s*(.+?)\s*\}\}/g,function(v,d){return y&&d in y?y[d]:d in H?H[d]:(console.log("argument {{"+d+"}} for #"+f+" is undefined."),v)})}function k(x){var y=function p(x){if(!x)return{};var y=x.getAttribute("data-l10n-id"),f=x.getAttribute("data-l10n-args"),h={};if(f)try{h=JSON.parse(f)}catch(v){console.warn("could not parse arguments for #"+y)}return{id:y,args:h}}(x);if(y.id){var f=A(y.id,y.args);if(!f)return void console.warn("#"+y.id+" is undefined.");if(f[Q]){if(0===function P(x){if(x.children)return x.children.length;if(void 0!==x.childElementCount)return x.childElementCount;for(var y=0,f=0;f<x.childNodes.length;f++)y+=1===x.nodeType?1:0;return y}(x))x[Q]=f[Q];else{for(var h=x.childNodes,v=!1,d=0,S=h.length;d<S;d++)3===h[d].nodeType&&/\S/.test(h[d].nodeValue)&&(v?h[d].nodeValue="":(h[d].nodeValue=f[Q],v=!0));if(!v){var w=e.createTextNode(f[Q]);x.insertBefore(w,x.firstChild)}}delete f[Q]}for(var j in f)x[j]=f[j]}}return X.plural=function(x,y,f,h){var v=parseFloat(y);if(isNaN(v)||h!=Q)return x;X._pluralRules||(X._pluralRules=function c(x){function f(S,w){return-1!==w.indexOf(S)}function h(S,w,j){return w<=S&&S<=j}var v={0:function(w){return"other"},1:function(w){return h(w%100,3,10)?"few":0===w?"zero":h(w%100,11,99)?"many":2==w?"two":1==w?"one":"other"},2:function(w){return 0!==w&&w%10==0?"many":2==w?"two":1==w?"one":"other"},3:function(w){return 1==w?"one":"other"},4:function(w){return h(w,0,1)?"one":"other"},5:function(w){return h(w,0,2)&&2!=w?"one":"other"},6:function(w){return 0===w?"zero":w%10==1&&w%100!=11?"one":"other"},7:function(w){return 2==w?"two":1==w?"one":"other"},8:function(w){return h(w,3,6)?"few":h(w,7,10)?"many":2==w?"two":1==w?"one":"other"},9:function(w){return 0===w||1!=w&&h(w%100,1,19)?"few":1==w?"one":"other"},10:function(w){return h(w%10,2,9)&&!h(w%100,11,19)?"few":w%10!=1||h(w%100,11,19)?"other":"one"},11:function(w){return h(w%10,2,4)&&!h(w%100,12,14)?"few":w%10==0||h(w%10,5,9)||h(w%100,11,14)?"many":w%10==1&&w%100!=11?"one":"other"},12:function(w){return h(w,2,4)?"few":1==w?"one":"other"},13:function(w){return h(w%10,2,4)&&!h(w%100,12,14)?"few":1!=w&&h(w%10,0,1)||h(w%10,5,9)||h(w%100,12,14)?"many":1==w?"one":"other"},14:function(w){return h(w%100,3,4)?"few":w%100==2?"two":w%100==1?"one":"other"},15:function(w){return 0===w||h(w%100,2,10)?"few":h(w%100,11,19)?"many":1==w?"one":"other"},16:function(w){return w%10==1&&11!=w?"one":"other"},17:function(w){return 3==w?"few":0===w?"zero":6==w?"many":2==w?"two":1==w?"one":"other"},18:function(w){return 0===w?"zero":h(w,0,2)&&0!==w&&2!=w?"one":"other"},19:function(w){return h(w,2,10)?"few":h(w,0,1)?"one":"other"},20:function(w){return!h(w%10,3,4)&&w%10!=9||h(w%100,10,19)||h(w%100,70,79)||h(w%100,90,99)?w%1e6==0&&0!==w?"many":w%10!=2||f(w%100,[12,72,92])?w%10!=1||f(w%100,[11,71,91])?"other":"one":"two":"few"},21:function(w){return 0===w?"zero":1==w?"one":"other"},22:function(w){return h(w,0,1)||h(w,11,99)?"one":"other"},23:function(w){return h(w%10,1,2)||w%20==0?"one":"other"},24:function(w){return h(w,3,10)||h(w,13,19)?"few":f(w,[2,12])?"two":f(w,[1,11])?"one":"other"}},d={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[x.replace(/-.*$/,"")];return d in v?v[d]:(console.warn("plural form unknown for ["+x+"]"),function(){return"other"})}($));var d="["+X._pluralRules(v)+"]";return 0===v&&f+"[zero]"in H?x=H[f+"[zero]"][h]:1==v&&f+"[one]"in H?x=H[f+"[one]"][h]:2==v&&f+"[two]"in H?x=H[f+"[two]"][h]:f+d in H?x=H[f+d][h]:f+"[other]"in H&&(x=H[f+"[other]"][h]),x},{get:function(y,f,h){var S,v=y.lastIndexOf("."),d=Q;v>0&&(d=y.substring(v+1),y=y.substring(0,v)),h&&((S={})[d]=h);var w=A(y,f,S);return w&&d in w?w[d]:"{{"+y+"}}"},getData:function(){return H},getText:function(){return R},getLanguage:function(){return $},setLanguage:function(y,f){b(y,function(){f&&f()})},getDirection:function(){var f=$.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(f)>=0?"rtl":"ltr"},translate:function E(x){for(var y=function g(x){return x?x.querySelectorAll("*[data-l10n-id]"):[]}(x=x||e.documentElement),f=y.length,h=0;h<f;h++)k(y[h]);k(x)},getReadyState:function(){return B},ready:function(y){y&&("complete"==B||"interactive"==B?U.setTimeout(function(){y()}):e.addEventListener&&e.addEventListener("localized",function f(){e.removeEventListener("localized",f),y()}))}}}(window,document)},(U,e,V)=>
1{Object.defineProperty(e,"__esModule",{value:!0}),e.PDFFindController=e.FindState=void 0;var H=V(4),R=V(16),Q=V(7);function X(x,y){for(var f=0;f<y.length;f++){var h=y[f];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(x,h.key,h)}}function z(x,y){return function g(x){if(Array.isArray(x))return x}(x)||function D(x,y){var f=null==x?null:"undefined"!=typeof Symbol&&x[Symbol.iterator]||x["@@iterator"];if(null!=f){var S,w,h=[],v=!0,d=!1;try{for(f=f.call(x);!(v=(S=f.next()).done)&&(h.push(S.value),!y||h.length!==y);v=!0);}catch(j){d=!0,w=j}finally{try{!v&&null!=f.return&&f.return()}finally{if(d)throw w}}return h}}(x,y)||o(x,y)||function W(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(x,y){var f="undefined"!=typeof Symbol&&x[Symbol.iterator]||x["@@iterator"];if(!f){if(Array.isArray(x)||(f=o(x))||y&&x&&"number"==typeof x.length){f&&(x=f);var h=0,v=function(){};return{s:v,n:function(){return h>=x.length?{done:!0}:{done:!1,value:x[h++]}},e:function(te){throw te},f:v}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var w,d=!0,S=!1;return{s:function(){f=f.call(x)},n:function(){var te=f.next();return d=te.done,te},e:function(te){S=!0,w=te},f:function(){try{!d&&null!=f.return&&f.return()}finally{if(S)throw w}}}}function o(x,y){if(x){if("string"==typeof x)return u(x,y);var f=Object.prototype.toString.call(x).slice(8,-1);if("Object"===f&&x.constructor&&(f=x.constructor.name),"Map"===f||"Set"===f)return Array.from(x);if("Arguments"===f||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return u(x,y)}}function u(x,y){(null==y||y>x.length)&&(y=x.length);for(var f=0,h=new Array(y);f<y;f++)h[f]=x[f];return h}var b={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};e.FindState=b;var O={"\u2010":"-","\u2018":"'","\u2019":"'","\u201a":"'","\u201b":"'","\u201c":'"',"\u201d":'"',"\u201e":'"',"\u201f":'"',"\xbc":"1/4","\xbd":"1/2","\xbe":"3/4"},_=null;function k(x){if(!_){var y=Object.keys(O).join("");_=new RegExp("[".concat(y,"]"),"g")}var f=null;return[x.replace(_,function(v,d){var S=O[v],w=S.length-v.length;return 0!==w&&(f||(f=[])).push([d,w]),S}),f]}function P(x){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!y)return x;var v,f=0,h=p(y);try{for(h.s();!(v=h.n()).done;){var d=z(v.value,2),w=d[1],j=d[0]+f;if(j>=x)break;if(j+w>x){f+=x-j;break}f+=w}}catch(te){h.e(te)}finally{h.f()}return x-f}var E=function(){function x(y){var f=y.linkService,h=y.eventBus;(function $(x,y){if(!(x instanceof y))throw new TypeError("Cannot call a class as a function")})(this,x),this._linkService=f,this._eventBus=h,this._reset(),h._on("findbarclose",this._onFindBarClose.bind(this))}return function B(x,y,f){return y&&X(x.prototype,y),f&&X(x,f),x}(x,[{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return this._state}},{key:"setDocument",value:function(f){this._pdfDocument&&this._reset(),f&&(this._pdfDocument=f,this._firstPageCapability.resolve())}},{key:"executeCommand",value:function(f,h){var v=this;if(h){var d=this._pdfDocument;(null===this._state||this._shouldDirtyMatch(f,h))&&(this._dirtyMatch=!0),this._state=h,"findhighlightallchange"!==f&&this._updateUIState(b.PENDING),this._firstPageCapability.promise.then(function(){if(v._pdfDocument&&(!d||v._pdfDocument===d)){v._extractText();var S=!v._highlightMatches,w=!!v._findTimeout;v._findTimeout&&(clearTimeout(v._findTimeout),v._findTimeout=null),"find"===f?v._findTimeout=setTimeout(function(){v._nextMatch(),v._findTimeout=null},250):v._dirtyMatch?v._nextMatch():"findagain"===f?(v._nextMatch(),S&&v._state.highlightAll&&v._updateAllPages()):"findhighlightallchange"===f?(w?v._nextMatch():v._highlightMatches=!0,v._updateAllPages()):v._nextMatch()}})}}},{key:"scrollMatchIntoView",value:function(f){var h=f.element,v=void 0===h?null:h,d=f.selectedLeft,S=void 0===d?0:d,w=f.pageIndex,j=void 0===w?-1:w,te=f.matchIndex,J=void 0===te?-1:te;if(this._scrollMatches&&v){if(-1===J||J!==this._selected.matchIdx)return;if(-1===j||j!==this._selected.pageIdx)return;this._scrollMatches=!1,(0,Q.scrollIntoView)(v,{top:-50,left:S+-400},!0)}}},{key:"_reset",value:function(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,H.createPromiseCapability)()}},{key:"_query",get:function(){if(this._state.query!==this._rawQuery){this._rawQuery=this._state.query;var h=z(k(this._state.query),1);this._normalizedQuery=h[0]}return this._normalizedQuery}},{key:"_shouldDirtyMatch",value:function(f,h){if(h.query!==this._state.query)return!0;switch(f){case"findagain":var v=this._selected.pageIdx+1,d=this._linkService;return v>=1&&v<=d.pagesCount&&v!==d.page&&!d.isPageVisible(v);case"findhighlightallchange":return!1}return!0}},{key:"_prepareMatches",value:function(f,h,v){function d(j){var te=f[j];if(j<f.length-1&&te.match===f[j+1].match)return te.skipped=!0,!0;for(var ge=j-1;ge>=0;ge--){var de=f[ge];
1if(!de.skipped){if(de.match+de.matchLength<te.match)break;if(de.match+de.matchLength>=te.match+te.matchLength)return te.skipped=!0,!0}}return!1}f.sort(function(j,te){return j.match===te.match?j.matchLength-te.matchLength:j.match-te.match});for(var S=0,w=f.length;S<w;S++)d(S)||(h.push(f[S].match),v.push(f[S].matchLength))}},{key:"_isEntireWord",value:function(f,h,v){if(h>0){var d=f.charCodeAt(h),S=f.charCodeAt(h-1);if((0,R.getCharacterType)(d)===(0,R.getCharacterType)(S))return!1}var w=h+v-1;if(w<f.length-1){var j=f.charCodeAt(w),te=f.charCodeAt(w+1);if((0,R.getCharacterType)(j)===(0,R.getCharacterType)(te))return!1}return!0}},{key:"_calculatePhraseMatch",value:function(f,h,v,d,S){for(var w=[],j=[],te=f.length,J=-te;-1!==(J=v.indexOf(f,J+te));)if(!S||this._isEntireWord(v,J,te)){var ge=P(J,d),he=P(J+te-1,d)-ge+1;w.push(ge),j.push(he)}this._pageMatches[h]=w,this._pageMatchesLength[h]=j}},{key:"_calculateWordMatch",value:function(f,h,v,d,S){for(var w=[],j=f.match(/\S+/g),te=0,J=j.length;te<J;te++)for(var ge=j[te],de=ge.length,he=-de;-1!==(he=v.indexOf(ge,he+de));)if(!S||this._isEntireWord(v,he,de)){var be=P(he,d),q=P(he+de-1,d)-be+1;w.push({match:be,matchLength:q,skipped:!1})}this._pageMatchesLength[h]=[],this._pageMatches[h]=[],this._prepareMatches(w,this._pageMatches[h],this._pageMatchesLength[h])}},{key:"_calculateMatch",value:function(f){var h=this._pageContents[f],v=this._pageDiffs[f],d=this._query,S=this._state,j=S.entireWord,te=S.phraseSearch;if(0!==d.length){S.caseSensitive||(h=h.toLowerCase(),d=d.toLowerCase()),te?this._calculatePhraseMatch(d,f,h,v,j):this._calculateWordMatch(d,f,h,v,j),this._state.highlightAll&&this._updatePage(f),this._resumePageIdx===f&&(this._resumePageIdx=null,this._nextPageMatch());var J=this._pageMatches[f].length;J>0&&(this._matchesCountTotal+=J,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var f=this;if(!(this._extractTextPromises.length>0))for(var h=Promise.resolve(),v=function(j,te){var J=(0,H.createPromiseCapability)();f._extractTextPromises[j]=J.promise,h=h.then(function(){return f._pdfDocument.getPage(j+1).then(function(ge){return ge.getTextContent({normalizeWhitespace:!0})}).then(function(ge){for(var de=ge.items,he=[],be=0,oe=de.length;be<oe;be++)he.push(de[be].str);var G=z(k(he.join("")),2);f._pageContents[j]=G[0],f._pageDiffs[j]=G[1],J.resolve(j)},function(ge){console.error("Unable to get text content for page ".concat(j+1),ge),f._pageContents[j]="",f._pageDiffs[j]=null,J.resolve(j)})})},d=0,S=this._linkService.pagesCount;d<S;d++)v(d)}},{key:"_updatePage",value:function(f){this._scrollMatches&&this._selected.pageIdx===f&&(this._linkService.page=f+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:f})}},{key:"_updateAllPages",value:function(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}},{key:"_nextMatch",value:function(){var f=this,h=this._state.findPrevious,v=this._linkService.page-1,d=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=v,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this._updateAllPages();for(var S=0;S<d;S++)this._pendingFindMatches.has(S)||(this._pendingFindMatches.add(S),this._extractTextPromises[S].then(function(te){f._pendingFindMatches.delete(te),f._calculateMatch(te)}))}if(""!==this._query){if(!this._resumePageIdx){var w=this._offset;if(this._pagesToSearch=d,null!==w.matchIdx){if(!h&&w.matchIdx+1<this._pageMatches[w.pageIdx].length||h&&w.matchIdx>0)return w.matchIdx=h?w.matchIdx-1:w.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(h)}this._nextPageMatch()}}else this._updateUIState(b.FOUND)}},{key:"_matchesReady",value:function(f){var h=this._offset,v=f.length,d=this._state.findPrevious;return v?(h.matchIdx=d?v-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(d),!!(h.wrapped&&(h.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}},{key:"_nextPageMatch",value:function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var f=null;do{var h=this._offset.pageIdx;if(!(f=this._pageMatches[h])){this._resumePageIdx=h;break}}while(!this._matchesReady(f))}},{key:"_advanceOffsetPage",value:function(f){var h=this._offset,v=this._linkService.pagesCount;h.pageIdx=f?h.pageIdx-1:h.pageIdx+1,h.matchIdx=null,this._pagesToSearch--,(h.pageIdx>=v||h.pageIdx<0)&&(h.pageIdx=f?v-1:0,h.wrapped=!0)}},{key:"_updateMatch",value:function(){var f=arguments.length>0&&void 0!==arguments[0]&&arguments[0],h=b.NOT_FOUND,v=this._offset.wrapped;
1if(this._offset.wrapped=!1,f){var d=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,h=v?b.WRAPPED:b.FOUND,-1!==d&&d!==this._selected.pageIdx&&this._updatePage(d)}this._updateUIState(h,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}},{key:"_onFindBarClose",value:function(f){var h=this,v=this._pdfDocument;this._firstPageCapability.promise.then(function(){!h._pdfDocument||v&&h._pdfDocument!==v||(h._findTimeout&&(clearTimeout(h._findTimeout),h._findTimeout=null),h._resumePageIdx&&(h._resumePageIdx=null,h._dirtyMatch=!0),h._updateUIState(b.FOUND),h._highlightMatches=!1,h._updateAllPages())})}},{key:"_requestMatchesCount",value:function(){var f=this._selected,h=f.pageIdx,v=f.matchIdx,d=0,S=this._matchesCountTotal;if(-1!==v){for(var w=0;w<h;w++){var j;d+=(null===(j=this._pageMatches[w])||void 0===j?void 0:j.length)||0}d+=v+1}return(d<1||d>S)&&(d=S=0),{current:d,total:S}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(f,h){var v,d;this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:f,previous:h,matchesCount:this._requestMatchesCount(),rawQuery:null!==(v=null===(d=this._state)||void 0===d?void 0:d.query)&&void 0!==v?v:null})}}]),x}();e.PDFFindController=E},(U,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getCharacterType=function p(o){return function H(o){return o<11904}(o)?function R(o){return 0==(65408&o)}(o)?function X(o){return 32===o||9===o||13===o||10===o}(o)?V.SPACE:function Q(o){return o>=97&&o<=122||o>=65&&o<=90}(o)||function $(o){return o>=48&&o<=57}(o)||95===o?V.ALPHA_LETTER:V.PUNCT:function g(o){return 3584==(65408&o)}(o)?V.THAI_LETTER:160===o?V.SPACE:V.ALPHA_LETTER:function B(o){return o>=13312&&o<=40959||o>=63744&&o<=64255}(o)?V.HAN_LETTER:function z(o){return o>=12448&&o<=12543}(o)?V.KATAKANA_LETTER:function W(o){return o>=12352&&o<=12447}(o)?V.HIRAGANA_LETTER:function D(o){return o>=65376&&o<=65439}(o)?V.HALFWIDTH_KATAKANA_LETTER:V.ALPHA_LETTER},e.CharacterType=void 0;var V={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};e.CharacterType=V},(U,e,V)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isDestArraysEqual=O,e.isDestHashesEqual=A,e.PDFHistory=void 0;var H=V(7);function R(_){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(P){return typeof P}:function(P){return P&&"function"==typeof Symbol&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(_)}function Q(_,k){return function W(_){if(Array.isArray(_))return _}(_)||function z(_,k){var P=null==_?null:"undefined"!=typeof Symbol&&_[Symbol.iterator]||_["@@iterator"];if(null!=P){var f,h,E=[],x=!0,y=!1;try{for(P=P.call(_);!(x=(f=P.next()).done)&&(E.push(f.value),!k||E.length!==k);x=!0);}catch(v){y=!0,h=v}finally{try{!x&&null!=P.return&&P.return()}finally{if(y)throw h}}return E}}(_,k)||function X(_,k){if(_){if("string"==typeof _)return B(_,k);var P=Object.prototype.toString.call(_).slice(8,-1);if("Object"===P&&_.constructor&&(P=_.constructor.name),"Map"===P||"Set"===P)return Array.from(_);if("Arguments"===P||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return B(_,k)}}(_,k)||function $(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(_,k){(null==k||k>_.length)&&(k=_.length);for(var P=0,E=new Array(k);P<k;P++)E[P]=_[P];return E}function g(_,k){for(var P=0;P<k.length;P++){var E=k[P];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(_,E.key,E)}}function m(){return document.location.hash}var c=function(){function _(k){var P=this,E=k.linkService,x=k.eventBus;(function D(_,k){if(!(_ instanceof k))throw new TypeError("Cannot call a class as a function")})(this,_),this.linkService=E,this.eventBus=x,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this._isViewerInPresentationMode=!1,this.eventBus._on("presentationmodechanged",function(y){P._isViewerInPresentationMode=y.state!==H.PresentationModeState.NORMAL}),this.eventBus._on("pagesinit",function(){P._isPagesLoaded=!1,P.eventBus._on("pagesloaded",function(y){P._isPagesLoaded=!!y.pagesCount},{once:!0})})}return function p(_,k,P){return k&&g(_.prototype,k),P&&g(_,P),_}(_,[{key:"initialize",value:function(P){var E=P.fingerprint,x=P.resetHistory,y=void 0!==x&&x,f=P.updateUrl,h=void 0!==f&&f;if(E&&"string"==typeof E){this._initialized&&this.reset();var v=""!==this._fingerprint&&this._fingerprint!==E;
1this._fingerprint=E,this._updateUrl=!0===h,this._initialized=!0,this._bindEvents();var d=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=m(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(d,!0)||y){var S=this._parseCurrentHash(!0),w=S.hash,j=S.page,te=S.rotation;return!w||v||y?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:w,page:j,rotation:te},!0)}var J=d.destination;this._updateInternalState(J,d.uid,!0),void 0!==J.rotation&&(this._initialRotation=J.rotation),J.dest?(this._initialBookmark=JSON.stringify(J.dest),this._destination.page=null):J.hash?this._initialBookmark=J.hash:J.page&&(this._initialBookmark="page=".concat(J.page))}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}},{key:"reset",value:function(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}},{key:"push",value:function(P){var E=this,x=P.namedDest,y=void 0===x?null:x,f=P.explicitDest,h=P.pageNumber;if(this._initialized){if(y&&"string"!=typeof y)return void console.error("PDFHistory.push: "+'"'.concat(y,'" is not a valid namedDest parameter.'));if(!Array.isArray(f))return void console.error("PDFHistory.push: "+'"'.concat(f,'" is not a valid explicitDest parameter.'));if(!this._isValidPage(h)&&(null!==h||this._destination))return void console.error("PDFHistory.push: "+'"'.concat(h,'" is not a valid pageNumber parameter.'));var v=y||JSON.stringify(f);if(v){var d=!1;if(this._destination&&(A(this._destination.hash,v)||O(this._destination.dest,f))){if(this._destination.page)return;d=!0}this._popStateInProgress&&!d||(this._pushOrReplaceState({dest:f,hash:v,page:h,rotation:this.linkService.rotation},d),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(function(){E._popStateInProgress=!1})))}}}},{key:"pushPage",value:function(P){var E,x=this;if(this._initialized){if(!this._isValidPage(P))return void console.error('PDFHistory.pushPage: "'.concat(P,'" is not a valid page number.'));(null===(E=this._destination)||void 0===E?void 0:E.page)!==P&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:"page=".concat(P),page:P,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(function(){x._popStateInProgress=!1}))))}}},{key:"pushCurrentPosition",value:function(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var P=window.history.state;this._isValidState(P)&&P.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var P=window.history.state;this._isValidState(P)&&P.uid<this._maxUid&&window.history.forward()}}},{key:"popStateInProgress",get:function(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}},{key:"initialBookmark",get:function(){return this._initialized?this._initialBookmark:null}},{key:"initialRotation",get:function(){return this._initialized?this._initialRotation:null}},{key:"_pushOrReplaceState",value:function(P){var f,x=arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!this._destination,y={fingerprint:this._fingerprint,uid:x?this._uid:this._uid+1,destination:P};if(this._updateInternalState(P,y.uid),this._updateUrl&&null!=P&&P.hash){var h=document.location.href.split("#")[0];h.startsWith("file://")||(f="".concat(h,"#").concat(P.hash))}x?window.history.replaceState(y,"",f):window.history.pushState(y,"",f)}},{key:"_tryPushCurrentPosition",value:function(){if(this._position){var E=this._position;if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&((E=Object.assign(Object.create(null),this._position)).temporary=!0),!this._destination)return void this._pushOrReplaceState(E);if(this._destination.temporary)return void this._pushOrReplaceState(E,!0);if(this._destination.hash!==E.hash&&(this._destination.page||!(this._numPositionUpdates<=50))){var x=!1;if(this._destination.page>=E.first&&this._destination.page<=E.page){if(void 0!==this._destination.dest||!this._destination.first)return;x=!0}this._pushOrReplaceState(E,x)}}}},{key:"_isValidPage",value:function(P){return Number.isInteger(P)&&P>0&&P<=this.linkService.pagesCount}},{key:"_isValidState",value:function(P){if(!P)return!1;if(P.fingerprint!==this._fingerprint){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return!1;if("string"!=typeof P.fingerprint||P.fingerprint.length!==this._fingerprint.length)return!1;var f=Q(performance.getEntriesByType("navigation"),1)[0];
1if("reload"!==(null==f?void 0:f.type))return!1}return!(!Number.isInteger(P.uid)||P.uid<0||null===P.destination||"object"!==R(P.destination))}},{key:"_updateInternalState",value:function(P,E){var x=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),x&&null!=P&&P.temporary&&delete P.temporary,this._destination=P,this._uid=E,this._maxUid=Math.max(this._maxUid,E),this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var P=arguments.length>0&&void 0!==arguments[0]&&arguments[0],E=unescape(m()).substring(1),x=(0,H.parseQueryString)(E),y=x.get("nameddest")||"",f=0|x.get("page");return(!this._isValidPage(f)||P&&y.length>0)&&(f=null),{hash:E,page:f,rotation:this.linkService.rotation}}},{key:"_updateViewarea",value:function(P){var E=this,x=P.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(x.pageNumber):x.pdfOpenParams.substring(1),page:this.linkService.page,first:x.pageNumber,rotation:x.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(function(){E._popStateInProgress||E._tryPushCurrentPosition(!0),E._updateViewareaTimeout=null},1e3))}},{key:"_popState",value:function(P){var E=this,x=P.state,y=m(),f=this._currentHash!==y;if(this._currentHash=y,x){if(this._isValidState(x)){this._popStateInProgress=!0,f&&(this._blockHashChange++,(0,H.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(function(){E._blockHashChange--}));var w=x.destination;this._updateInternalState(w,x.uid,!0),(0,H.isValidRotation)(w.rotation)&&(this.linkService.rotation=w.rotation),w.dest?this.linkService.goToDestination(w.dest):w.hash?this.linkService.setHash(w.hash):w.page&&(this.linkService.page=w.page),Promise.resolve().then(function(){E._popStateInProgress=!1})}}else{this._uid++;var h=this._parseCurrentHash();this._pushOrReplaceState({hash:h.hash,page:h.page,rotation:h.rotation},!0)}}},{key:"_pageHide",value:function(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}},{key:"_bindEvents",value:function(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}},{key:"_unbindEvents",value:function(){!this._boundEvents||(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}]),_}();function A(_,k){return"string"==typeof _&&"string"==typeof k&&(_===k||(0,H.parseQueryString)(_).get("nameddest")===k)}function O(_,k){function P(y,f){if(R(y)!==R(f)||Array.isArray(y)||Array.isArray(f))return!1;if(null!==y&&"object"===R(y)&&null!==f){if(Object.keys(y).length!==Object.keys(f).length)return!1;for(var h in y)if(!P(y[h],f[h]))return!1;return!0}return y===f||Number.isNaN(y)&&Number.isNaN(f)}if(!Array.isArray(_)||!Array.isArray(k)||_.length!==k.length)return!1;for(var E=0,x=_.length;E<x;E++)if(!P(_[E],k[E]))return!1;return!0}e.PDFHistory=c},(U,e,V)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PDFPageView=void 0;var H=function z(_){return _&&_.__esModule?_:{default:_}}(V(2)),R=V(4),Q=V(7),$=V(12),X=V(5),B=V(19);function W(_){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(P){return typeof P}:function(P){return P&&"function"==typeof Symbol&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(_)}function D(_,k){var P="undefined"!=typeof Symbol&&_[Symbol.iterator]||_["@@iterator"];if(!P){if(Array.isArray(_)||(P=function g(_,k){if(_){if("string"==typeof _)return p(_,k);var P=Object.prototype.toString.call(_).slice(8,-1);if("Object"===P&&_.constructor&&(P=_.constructor.name),"Map"===P||"Set"===P)return Array.from(_);if("Arguments"===P||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return p(_,k)}}(_))||k&&_&&"number"==typeof _.length){P&&(_=P);var E=0,x=function(){};return{s:x,n:function(){return E>=_.length?{done:!0}:{done:!1,value:_[E++]}},e:function(d){throw d},f:x}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h,y=!0,f=!1;return{s:function(){P=P.call(_)},n:function(){var d=P.next();return y=d.done,d},e:function(d){f=!0,h=d},f:function(){try{!y&&null!=P.return&&P.return()}finally{if(f)throw h}}}}function p(_,k){(null==k||k>_.length)&&(k=_.length);for(var P=0,E=new Array(k);P<k;P++)E[P]=_[P];return E}function o(_,k,P,E,x,y,f){try{var h=_[y](f),v=h.value}catch(d){return void P(d)}h.done?k(v):Promise.resolve(v).then(E,x)}function u(_){return function(){var k=this,P=arguments;return new Promise(function(E,x){var y=_.apply(k,P);function f(v){o(y,E,x,f,h,"next",v)}function h(v){o(y,E,x,f,h,"throw",v)}f(void 0)})}}function m(_,k){for(var P=0;P<k.length;P++){var E=k[P];
1E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(_,E.key,E)}}var A=$.compatibilityParams.maxCanvasPixels||16777216,O=function(){function _(k){var P,E,x,y;!function b(_,k){if(!(_ instanceof k))throw new TypeError("Cannot call a class as a function")}(this,_);var f=k.container,h=k.defaultViewport;this.id=k.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=k.scale||Q.DEFAULT_SCALE,this.viewport=h,this.pdfPageRotate=h.rotation,this._optionalContentConfigPromise=k.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=null!==(P=k.textLayerMode)&&void 0!==P?P:Q.TextLayerMode.ENABLE,this._annotationMode=null!==(E=k.annotationMode)&&void 0!==E?E:R.AnnotationMode.ENABLE_FORMS,this.imageResourcesPath=k.imageResourcesPath||"",this.useOnlyCssZoom=k.useOnlyCssZoom||!1,this.maxCanvasPixels=k.maxCanvasPixels||A,this.eventBus=k.eventBus,this.renderingQueue=k.renderingQueue,this.textLayerFactory=k.textLayerFactory,this.annotationLayerFactory=k.annotationLayerFactory,this.xfaLayerFactory=k.xfaLayerFactory,this.textHighlighter=null===(x=k.textHighlighterFactory)||void 0===x?void 0:x.createTextHighlighter(this.id-1,this.eventBus),this.structTreeLayerFactory=k.structTreeLayerFactory,this.renderer=k.renderer||Q.RendererType.CANVAS,this.l10n=k.l10n||X.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=B.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this._isStandalone=!(null!==(y=this.renderingQueue)&&void 0!==y&&y.hasViewer()),this.annotationLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;var v=document.createElement("div");v.className="page",v.style.width=Math.floor(this.viewport.width)+"px",v.style.height=Math.floor(this.viewport.height)+"px",v.setAttribute("data-page-number",this.id),v.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then(function(d){v.setAttribute("aria-label",d)}),this.div=v,f.appendChild(v)}return function c(_,k,P){return k&&m(_.prototype,k),P&&m(_,P),_}(_,[{key:"setPdfPage",value:function(P){this.pdfPage=P,this.pdfPageRotate=P.rotate,this.viewport=P.getViewport({scale:this.scale*R.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.reset()}},{key:"destroy",value:function(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}},{key:"_renderAnnotationLayer",value:(k=u(H.default.mark(function E(){var x;return H.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return x=null,f.prev=1,f.next=4,this.annotationLayer.render(this.viewport,"display");case 4:f.next=9;break;case 6:f.prev=6,f.t0=f.catch(1),x=f.t0;case 9:return f.prev=9,this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:x}),f.finish(9);case 12:case"end":return f.stop()}},E,this,[[1,6,9,12]])})),function P(){return k.apply(this,arguments)})},{key:"_renderXfaLayer",value:function(){var k=u(H.default.mark(function E(){var x,y;return H.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return x=null,h.prev=1,h.next=4,this.xfaLayer.render(this.viewport,"display");case 4:y=h.sent,this.textHighlighter&&this._buildXfaTextContentItems(y.textDivs),h.next=11;break;case 8:h.prev=8,h.t0=h.catch(1),x=h.t0;case 11:return h.prev=11,this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:x}),h.finish(11);case 14:case"end":return h.stop()}},E,this,[[1,8,11,14]])}
1));return function P(){return k.apply(this,arguments)}}()},{key:"_buildXfaTextContentItems",value:function(){var k=u(H.default.mark(function E(x){var f,h,v;return H.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.pdfPage.getTextContent();case 2:f=[],h=D(w.sent.items);try{for(h.s();!(v=h.n()).done;)f.push(v.value.str)}catch(j){h.e(j)}finally{h.f()}this.textHighlighter.setTextMapping(x,f),this.textHighlighter.enable();case 8:case"end":return w.stop()}},E,this)}));return function P(E){return k.apply(this,arguments)}}()},{key:"_resetZoomLayer",value:function(){var P=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var E=this.zoomLayer.firstChild;this.paintedViewportMap.delete(E),E.width=0,E.height=0,P&&this.zoomLayer.remove(),this.zoomLayer=null}}},{key:"reset",value:function(){var P,E,x=this,y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=y.keepZoomLayer,h=void 0!==f&&f,v=y.keepAnnotationLayer,d=void 0!==v&&v,S=y.keepXfaLayer,w=void 0!==S&&S;this.cancelRendering({keepAnnotationLayer:d,keepXfaLayer:w}),this.renderingState=B.RenderingStates.INITIAL;var j=this.div;j.style.width=Math.floor(this.viewport.width)+"px",j.style.height=Math.floor(this.viewport.height)+"px";
1for(var te=j.childNodes,J=h&&this.zoomLayer||null,ge=d&&(null===(P=this.annotationLayer)||void 0===P?void 0:P.div)||null,de=w&&(null===(E=this.xfaLayer)||void 0===E?void 0:E.div)||null,he=te.length-1;he>=0;he--){var be=te[he];switch(be){case J:case ge:case de:continue}j.removeChild(be)}j.removeAttribute("data-loaded"),ge&&this.annotationLayer.hide(),de&&this.xfaLayer.hide(),J||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",this.loadingIconDiv.setAttribute("role","img"),this.l10n.get("loading").then(function(oe){var q;null===(q=x.loadingIconDiv)||void 0===q||q.setAttribute("aria-label",oe)}),j.appendChild(this.loadingIconDiv)}},{key:"update",value:function(P){var E=P.scale,x=void 0===E?0:E,y=P.rotation,f=void 0===y?null:y,h=P.optionalContentConfigPromise,v=void 0===h?null:h;if("object"!==W(arguments[0]))return console.error("PDFPageView.update called with separate parameters, please use an object instead."),void this.update({scale:arguments[0],rotation:arguments[1],optionalContentConfigPromise:arguments[2]});if(this.scale=x||this.scale,"number"==typeof f&&(this.rotation=f),v instanceof Promise&&(this._optionalContentConfigPromise=v),this._isStandalone&&document.documentElement.style.setProperty("--zoom-factor",this.scale),this.viewport=this.viewport.clone({scale:this.scale*R.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.svg)return this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});var w=!1;if(this.canvas&&this.maxCanvasPixels>0){var j=this.outputScale;(Math.floor(this.viewport.width)*j.sx|0)*(Math.floor(this.viewport.height)*j.sy|0)>this.maxCanvasPixels&&(w=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&w)return this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});!this.zoomLayer&&!this.canvas.hidden&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepXfaLayer:!0})}},{key:"cancelRendering",value:function(){var h,P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},E=P.keepAnnotationLayer,x=void 0!==E&&E,y=P.keepXfaLayer,f=void 0!==y&&y;this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),this.annotationLayer&&(!x||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null),!this.xfaLayer||f&&this.xfaLayer.div||(this.xfaLayer.cancel(),this.xfaLayer=null,null===(h=this.textHighlighter)||void 0===h||h.disable()),this._onTextLayerRendered&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null)}},{key:"cssTransform",value:function(P){var E=P.target,x=P.redrawAnnotationLayer,y=void 0!==x&&x,f=P.redrawXfaLayer,h=void 0!==f&&f,v=this.viewport.width,d=this.viewport.height,S=this.div;E.style.width=E.parentNode.style.width=S.style.width=Math.floor(v)+"px",E.style.height=E.parentNode.style.height=S.style.height=Math.floor(d)+"px";var w=this.viewport.rotation-this.paintedViewportMap.get(E).rotation,j=Math.abs(w),te=1,J=1;if((90===j||270===j)&&(te=d/v,J=v/d),E.style.transform="rotate(".concat(w,"deg) scale(").concat(te,", ").concat(J,")"),this.textLayer){var ge=this.textLayer.viewport,he=Math.abs(this.viewport.rotation-ge.rotation),be=v/ge.width;(90===he||270===he)&&(be=v/ge.height);var q,G,oe=this.textLayer.textLayerDiv;switch(he){case 0:q=G=0;break;
1case 90:q=0,G="-"+oe.style.height;break;case 180:q="-"+oe.style.width,G="-"+oe.style.height;break;case 270:q="-"+oe.style.width,G=0;break;default:console.error("Bad rotation value.")}oe.style.transform="rotate(".concat(he,"deg) ")+"scale(".concat(be,") ")+"translate(".concat(q,", ").concat(G,")"),oe.style.transformOrigin="0% 0%"}y&&this.annotationLayer&&this._renderAnnotationLayer(),h&&this.xfaLayer&&this._renderXfaLayer()}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}},{key:"getPagePoint",value:function(P,E){return this.viewport.convertToPdfPoint(P,E)}},{key:"draw",value:function(){var P,E,x=this;this.renderingState!==B.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var y=this.div,f=this.pdfPage;if(!f)return this.renderingState=B.RenderingStates.FINISHED,this.loadingIconDiv&&(y.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=B.RenderingStates.RUNNING;var h=document.createElement("div");h.style.width=y.style.width,h.style.height=y.style.height,h.classList.add("canvasWrapper"),null!==(P=this.annotationLayer)&&void 0!==P&&P.div?y.insertBefore(h,this.annotationLayer.div):y.appendChild(h);var v=null;if(this.textLayerMode!==Q.TextLayerMode.DISABLE&&this.textLayerFactory){var d,S=document.createElement("div");S.className="textLayer",S.style.width=h.style.width,S.style.height=h.style.height,null!==(d=this.annotationLayer)&&void 0!==d&&d.div?y.insertBefore(S,this.annotationLayer.div):y.appendChild(S),v=this.textLayerFactory.createTextLayerBuilder(S,this.id-1,this.viewport,this.textLayerMode===Q.TextLayerMode.ENABLE_ENHANCE,this.eventBus,this.textHighlighter)}this.textLayer=v,null!==(E=this.xfaLayer)&&void 0!==E&&E.div&&y.appendChild(this.xfaLayer.div);var w=null;this.renderingQueue&&(w=function(de){if(!x.renderingQueue.isHighestPriority(x))return x.renderingState=B.RenderingStates.PAUSED,void(x.resume=function(){x.renderingState=B.RenderingStates.RUNNING,de()});de()});var j=function(){var ge=u(H.default.mark(function de(){var he,be=arguments;return H.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(he=be.length>0&&void 0!==be[0]?be[0]:null,te===x.paintTask&&(x.paintTask=null),!(he instanceof R.RenderingCancelledException)){q.next=5;break}return x._renderError=null,q.abrupt("return");case 5:if(x._renderError=he,x.renderingState=B.RenderingStates.FINISHED,x.loadingIconDiv&&(y.removeChild(x.loadingIconDiv),delete x.loadingIconDiv),x._resetZoomLayer(!0),x.eventBus.dispatch("pagerendered",{source:x,pageNumber:x.id,cssTransform:!1,timestamp:performance.now(),error:x._renderError}),!he){q.next=12;break}throw he;case 12:case"end":return q.stop()}},de)}));return function(){return ge.apply(this,arguments)}}(),te=this.renderer===Q.RendererType.SVG?this.paintOnSvg(h):this.paintOnCanvas(h);te.onRenderContinue=w,this.paintTask=te;var J=te.promise.then(function(){return j(null).then(function(){if(v){var ge=f.streamTextContent({normalizeWhitespace:!0,includeMarkedContent:!0});v.setTextContentStream(ge),v.render()}})},function(ge){return j(ge)});return this._annotationMode!==R.AnnotationMode.DISABLE&&this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(y,f,null,this.imageResourcesPath,this._annotationMode===R.AnnotationMode.ENABLE_FORMS,this.l10n,null,null,null,null)),this._renderAnnotationLayer()),this.xfaLayerFactory&&(this.xfaLayer||(this.xfaLayer=this.xfaLayerFactory.createXfaLayerBuilder(y,f,null)),this._renderXfaLayer()),this.structTreeLayerFactory&&this.textLayer&&this.canvas&&(this._onTextLayerRendered=function(ge){ge.pageNumber===x.id&&(x.eventBus._off("textlayerrendered",x._onTextLayerRendered),x._onTextLayerRendered=null,x.canvas&&x.pdfPage.getStructTree().then(function(de){if(de&&x.canvas){var he=x.structTreeLayer.render(de);he.classList.add("structTree"),x.canvas.appendChild(he)}}))},this.eventBus._on("textlayerrendered",this._onTextLayerRendered),this.structTreeLayer=this.structTreeLayerFactory.createStructTreeLayerBuilder(f)),y.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),J}},{key:"paintOnCanvas",value:function(P){var E=(0,R.createPromiseCapability)(),x={promise:E.promise,onRenderContinue:function(q){q()},cancel:function(){be.cancel()}},y=this.viewport,f=document.createElement("canvas");f.hidden=!0;var h=!0,v=function(){h&&(f.hidden=!1,h=!1)};P.appendChild(f),this.canvas=f,f.mozOpaque=!0;var d=f.getContext("2d",{alpha:!1}),S=(0,Q.getOutputScale)(d);if(this.outputScale=S,this.useOnlyCssZoom){var w=y.clone({scale:R.PixelsPerInch.PDF_TO_CSS_UNITS});S.sx*=w.width/y.width,S.sy*=w.height/y.height,S.scaled=!0}if(this.maxCanvasPixels>0){var te=Math.sqrt(this.maxCanvasPixels/(y.width*y.height));S.sx>te||S.sy>te?(S.sx=te,S.sy=te,S.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var J=(0,Q.approximateFraction)(S.sx),ge=(0,Q.approximateFraction)(S.sy);f.width=(0,Q.roundToDivide)(y.width*S.sx,J[0]),f.height=(0,Q.roundToDivide)(y.height*S.sy,ge[0]),f.style.width=(0,Q.roundToDivide)(y.width,J[1])+"px",f.style.height=(0,Q.roundToDivide)(y.height,ge[1])+"px",this.paintedViewportMap.set(f,y);var be=this.pdfPage.render({canvasContext:d,transform:S.scaled?[S.sx,0,0,S.sy,0,0]:null,viewport:this.viewport,annotationMode:this._annotationMode,optionalContentConfigPromise:this._optionalContentConfigPromise});return be.onContinue=function(oe){v(),x.onRenderContinue?x.onRenderContinue(oe):oe()},be.promise.then(function(){v(),E.resolve(void 0)},function(oe){v(),E.reject(oe)}),x}},{key:"paintOnSvg",value:function(P){var E=this,x=!1,y=function(){if(x)throw new R.RenderingCancelledException("Rendering cancelled, page ".concat(E.id),"svg")},f=this.pdfPage,h=this.viewport.clone({scale:R.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:f.getOperatorList({annotationMode:this._annotationMode}).then(function(d){return y(),new R.SVGGraphics(f.commonObjs,f.objs,$.compatibilityParams.disableCreateObjectURL).getSVG(d,h).then(function(w){y(),E.svg=w,E.paintedViewportMap.set(w,h),w.style.width=P.style.width,w.style.height=P.style.height,E.renderingState=B.RenderingStates.FINISHED,P.appendChild(w)})}),onRenderContinue:function(S){S()},cancel:function(){x=!0}}}},{key:"setPageLabel",value:function(P){this.pageLabel="string"==typeof P?P:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}}]),_;var k}();e.PDFPageView=O},(U,e,V)=>
1{Object.defineProperty(e,"__esModule",{value:!0}),e.RenderingStates=e.PDFRenderingQueue=void 0;var H=V(4);function Q(W,D){for(var g=0;g<D.length;g++){var p=D[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(W,p.key,p)}}var B={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};e.RenderingStates=B;var z=function(){function W(){(function R(W,D){if(!(W instanceof D))throw new TypeError("Cannot call a class as a function")})(this,W),this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}return function $(W,D,g){return D&&Q(W.prototype,D),g&&Q(W,g),W}(W,[{key:"setViewer",value:function(g){this.pdfViewer=g}},{key:"setThumbnailViewer",value:function(g){this.pdfThumbnailViewer=g}},{key:"isHighestPriority",value:function(g){return this.highestPriorityPage===g.renderingId}},{key:"hasViewer",value:function(){return!!this.pdfViewer}},{key:"renderHighestPriority",value:function(g){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(g)&&(this.pdfThumbnailViewer&&this.isThumbnailViewEnabled&&this.pdfThumbnailViewer.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4)))}},{key:"getHighestPriority",value:function(g,p,o){var u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],b=g.views,m=b.length;if(0===m)return null;for(var c=0;c<m;++c){var A=b[c].view;if(!this.isViewFinished(A))return A}var O=o?g.last.id:g.first.id-2,_=p[O];return _&&!this.isViewFinished(_)||u&&(_=p[O+=o?1:-1])&&!this.isViewFinished(_)?_:null}},{key:"isViewFinished",value:function(g){return g.renderingState===B.FINISHED}},{key:"renderView",value:function(g){var p=this;switch(g.renderingState){case B.FINISHED:return!1;case B.PAUSED:this.highestPriorityPage=g.renderingId,g.resume();break;case B.RUNNING:this.highestPriorityPage=g.renderingId;break;case B.INITIAL:this.highestPriorityPage=g.renderingId,g.draw().finally(function(){p.renderHighestPriority()}).catch(function(o){o instanceof H.RenderingCancelledException||console.error('renderView: "'.concat(o,'"'))})}return!0}}]),W}();e.PDFRenderingQueue=z},(U,e,V)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PDFScriptingManager=void 0;var H=function X(h){return h&&h.__esModule?h:{default:h}}(V(2)),R=V(4),Q=V(7),$=V(19);function B(h){return function D(h){if(Array.isArray(h))return A(h)}(h)||function W(h){if("undefined"!=typeof Symbol&&null!=h[Symbol.iterator]||null!=h["@@iterator"])return Array.from(h)}(h)||c(h)||function z(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(h,v){var d=Object.keys(h);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(h);v&&(S=S.filter(function(w){return Object.getOwnPropertyDescriptor(h,w).enumerable})),d.push.apply(d,S)}return d}function p(h){for(var v=1;v<arguments.length;v++){var d=null!=arguments[v]?arguments[v]:{};v%2?g(Object(d),!0).forEach(function(S){o(h,S,d[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(d)):g(Object(d)).forEach(function(S){Object.defineProperty(h,S,Object.getOwnPropertyDescriptor(d,S))})}return h}function o(h,v,d){return v in h?Object.defineProperty(h,v,{value:d,enumerable:!0,configurable:!0,writable:!0}):h[v]=d,h}function u(h,v){var d="undefined"!=typeof Symbol&&h[Symbol.iterator]||h["@@iterator"];if(!d){if(Array.isArray(h)||(d=c(h))||v&&h&&"number"==typeof h.length){d&&(h=d);var S=0,w=function(){};return{s:w,n:function(){return S>=h.length?{done:!0}:{done:!1,value:h[S++]}},e:function(de){throw de},f:w}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var J,j=!0,te=!1;return{s:function(){d=d.call(h)},n:function(){var de=d.next();return j=de.done,de},e:function(de){te=!0,J=de},f:function(){try{!j&&null!=d.return&&d.return()}finally{if(te)throw J}}}}function b(h,v){return function _(h){if(Array.isArray(h))return h}(h)||function O(h,v){var d=null==h?null:"undefined"!=typeof Symbol&&h[Symbol.iterator]||h["@@iterator"];if(null!=d){var te,J,S=[],w=!0,j=!1;try{for(d=d.call(h);!(w=(te=d.next()).done)&&(S.push(te.value),!v||S.length!==v);w=!0);}catch(ge){j=!0,J=ge}finally{try{!w&&null!=d.return&&d.return()}finally{if(j)throw J}}return S}}(h,v)||c(h,v)||function m(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(h,v){if(h){if("string"==typeof h)return A(h,v);var d=Object.prototype.toString.call(h).slice(8,-1);if("Object"===d&&h.constructor&&(d=h.constructor.name),"Map"===d||"Set"===d)return Array.from(h);if("Arguments"===d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return A(h,v)}}function A(h,v){(null==v||v>h.length)&&(v=h.length);for(var d=0,S=new Array(v);d<v;d++)S[d]=h[d];return S}function k(h,v,d,S,w,j,te){try{var J=h[j](te),ge=J.value}catch(de){return void d(de)}J.done?v(ge):Promise.resolve(ge).then(S,w)}function P(h){return function(){var v=this,d=arguments;return new Promise(function(S,w){var j=h.apply(v,d);function te(ge){k(j,S,w,te,J,"next",ge)}function J(ge){k(j,S,w,te,J,"throw",ge)}te(void 0)})}}function x(h,v){for(var d=0;d<v.length;d++){var S=v[d];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(h,S.key,S)}}var f=function(){function h(v){var d=this,S=v.eventBus,w=v.sandboxBundleSrc,j=void 0===w?null:w,te=v.scriptingFactory,J=void 0===te?null:te,ge=v.docPropertiesLookup,de=void 0===ge?null:ge;(function E(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")})(this,h),this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._mouseState=Object.create(null),this._ready=!1,this._eventBus=S,this._sandboxBundleSrc=j,this._scriptingFactory=J,this._docPropertiesLookup=de,this._scriptingFactory||window.addEventListener("updatefromsandbox",function(he){d._eventBus.dispatch("updatefromsandbox",{source:window,detail:he.detail})})}return function y(h,v,d){return v&&x(h.prototype,v),d&&x(h,d),h}(h,[{key:"setViewer",value:function(d){this._pdfViewer=d}},{key:"setDocument",value:(v=P(H.default.mark(function S(w){var te,ge,de,he,be,oe,q,G,Z,re,ue,Ie,j=this;return H.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(!this._pdfDocument){Ee.next=3;break}return Ee.next=3,this._destroyScripting();case 3:if(this._pdfDocument=w,w){Ee.next=6;break}return Ee.abrupt("return");case 6:return Ee.next=8,Promise.all([w.getFieldObjects(),w.getCalculationOrderIds(),w.getJSActions()]);case 8:if(ge=b(Ee.sent,3),he=ge[1],be=ge[2],(de=ge[0])||be){Ee.next=17;break}return Ee.next=16,this._destroyScripting();case 16:return Ee.abrupt("return");case 17:if(w===this._pdfDocument){Ee.next=19;break}return Ee.abrupt("return");case 19:Ee.prev=19,this._scripting=this._createScripting(),Ee.next=29;break;case 23:return Ee.prev=23,Ee.t0=Ee.catch(19),console.error('PDFScriptingManager.setDocument: "'.concat(null==Ee.t0?void 0:Ee.t0.message,'".')),Ee.next=28,this._destroyScripting();case 28:return Ee.abrupt("return");case 29:this._internalEvents.set("updatefromsandbox",function(Ve){(null==Ve?void 0:Ve.source)===window&&j._updateFromSandbox(Ve.detail)}),this._internalEvents.set("dispatcheventinsandbox",function(Ve){var le;null===(le=j._scripting)||void 0===le||le.dispatchEventInSandbox(Ve.detail)}),this._internalEvents.set("pagechanging",function(Ve){var le=Ve.pageNumber,pe=Ve.previous;le!==pe&&(j._dispatchPageClose(pe),j._dispatchPageOpen(le))}),this._internalEvents.set("pagerendered",function(Ve){var le=Ve.pageNumber;!j._pageOpenPending.has(le)||le===j._pdfViewer.currentPageNumber&&j._dispatchPageOpen(le)}),this._internalEvents.set("pagesdestroy",function(){var Ve=P(H.default.mark(function le(pe){var ne,ce;return H.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return fe.next=2,j._dispatchPageClose(j._pdfViewer.currentPageNumber);case 2:return fe.next=4,null===(ne=j._scripting)||void 0===ne?void 0:ne.dispatchEventInSandbox({id:"doc",name:"WillClose"});case 4:null===(ce=j._closeCapability)||void 0===ce||ce.resolve();case 5:case"end":return fe.stop()}},le)}));return function(le){return Ve.apply(this,arguments)}}()),this._domEvents.set("mousedown",function(Ve){j._mouseState.isDown=!0}),this._domEvents.set("mouseup",function(Ve){j._mouseState.isDown=!1}),oe=u(this._internalEvents);try{for(oe.s();!(q=oe.n()).done;)G=b(q.value,2),this._eventBus._on(G[0],G[1])}catch(Ve){oe.e(Ve)}finally{oe.f()}Z=u(this._domEvents);try{for(Z.s();!(re=Z.n()).done;)ue=b(re.value,2),window.addEventListener(ue[0],ue[1])}catch(Ve){Z.e(Ve)}finally{Z.f()}return Ee.prev=40,Ee.next=43,this._getDocProperties();case 43:if(Ie=Ee.sent,w===this._pdfDocument){Ee.next=46;break}return Ee.abrupt("return");case 46:return Ee.next=48,this._scripting.createSandbox({objects:de,calculationOrder:he,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:p(p({},Ie),{},{actions:be})});case 48:this._eventBus.dispatch("sandboxcreated",{source:this}),Ee.next=57;break;case 51:return Ee.prev=51,Ee.t1=Ee.catch(40),console.error('PDFScriptingManager.setDocument: "'.concat(null==Ee.t1?void 0:Ee.t1.message,'".')),Ee.next=56,this._destroyScripting();case 56:return Ee.abrupt("return");case 57:return Ee.next=59,null===(te=this._scripting)||void 0===te?void 0:te.dispatchEventInSandbox({id:"doc",name:"Open"});case 59:return Ee.next=61,this._dispatchPageOpen(this._pdfViewer.currentPageNumber,!0);case 61:Promise.resolve().then(function(){w===j._pdfDocument&&(j._ready=!0)});case 62:case"end":return Ee.stop()}},S,this,[[19,23],[40,51]])})),function d(S){return v.apply(this,arguments)})},{key:"dispatchWillSave",value:function(){var v=P(H.default.mark(function S(w){var j;return H.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.abrupt("return",null===(j=this._scripting)||void 0===j?void 0:j.dispatchEventInSandbox({id:"doc",name:"WillSave"}));case 1:case"end":return J.stop()}},S,this)}));return function d(S){return v.apply(this,arguments)}}()},{key:"dispatchDidSave",value:function(){var v=P(H.default.mark(function S(w){var j;return H.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.abrupt("return",null===(j=this._scripting)||void 0===j?void 0:j.dispatchEventInSandbox({id:"doc",name:"DidSave"}));case 1:case"end":return J.stop()}},S,this)}));return function d(S){return v.apply(this,arguments)}}()},{key:"dispatchWillPrint",value:function(){var v=P(H.default.mark(function S(w){var j;return H.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.abrupt("return",null===(j=this._scripting)||void 0===j?void 0:j.dispatchEventInSandbox({id:"doc",name:"WillPrint"}));case 1:case"end":return J.stop()}},S,this)}));return function d(S){return v.apply(this,arguments)}}()},{key:"dispatchDidPrint",value:function(){var v=P(H.default.mark(function S(w){var j;return H.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.abrupt("return",null===(j=this._scripting)||void 0===j?void 0:j.dispatchEventInSandbox({id:"doc",name:"DidPrint"}));case 1:case"end":return J.stop()}},S,this)}));return function d(S){return v.apply(this,arguments)}}()},{key:"mouseState",get:function(){return this._mouseState}}
1,{key:"destroyPromise",get:function(){var d;return(null===(d=this._destroyCapability)||void 0===d?void 0:d.promise)||null}},{key:"ready",get:function(){return this._ready}},{key:"_internalEvents",get:function(){return(0,R.shadow)(this,"_internalEvents",new Map)}},{key:"_domEvents",get:function(){return(0,R.shadow)(this,"_domEvents",new Map)}},{key:"_pageOpenPending",get:function(){return(0,R.shadow)(this,"_pageOpenPending",new Set)}},{key:"_visitedPages",get:function(){return(0,R.shadow)(this,"_visitedPages",new Map)}},{key:"_updateFromSandbox",value:function(){var v=P(H.default.mark(function S(w){var j,te,J,ge,de,he,be,oe,q,G,L;return H.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(j=this._pdfViewer.isInPresentationMode||this._pdfViewer.isChangingPresentationMode,J=w.siblings,ge=w.command,de=w.value,te=w.id){Z.next=43;break}Z.t0=ge,Z.next="clear"===Z.t0?6:"error"===Z.t0?8:"layout"===Z.t0?10:"page-num"===Z.t0?12:"print"===Z.t0?14:"println"===Z.t0?18:"zoom"===Z.t0?20:"SaveAs"===Z.t0?24:"FirstPage"===Z.t0?26:"LastPage"===Z.t0?28:"NextPage"===Z.t0?30:"PrevPage"===Z.t0?32:"ZoomViewIn"===Z.t0?34:"ZoomViewOut"===Z.t0?38:42;break;case 6:return console.clear(),Z.abrupt("break",42);case 8:return console.error(de),Z.abrupt("break",42);case 10:return this._pdfViewer.spreadMode=(0,Q.apiPageLayoutToSpreadMode)(de),Z.abrupt("break",42);case 12:return this._pdfViewer.currentPageNumber=de+1,Z.abrupt("break",42);case 14:return Z.next=16,this._pdfViewer.pagesPromise;case 16:return this._eventBus.dispatch("print",{source:this}),Z.abrupt("break",42);case 18:return console.log(de),Z.abrupt("break",42);case 20:if(!j){Z.next=22;break}return Z.abrupt("return");case 22:return this._pdfViewer.currentScaleValue=de,Z.abrupt("break",42);case 24:return this._eventBus.dispatch("save",{source:this}),Z.abrupt("break",42);case 26:return this._pdfViewer.currentPageNumber=1,Z.abrupt("break",42);case 28:return this._pdfViewer.currentPageNumber=this._pdfViewer.pagesCount,Z.abrupt("break",42);case 30:return this._pdfViewer.nextPage(),Z.abrupt("break",42);case 32:return this._pdfViewer.previousPage(),Z.abrupt("break",42);case 34:if(!j){Z.next=36;break}return Z.abrupt("return");case 36:return this._pdfViewer.increaseScale(),Z.abrupt("break",42);case 38:if(!j){Z.next=40;break}return Z.abrupt("return");case 40:return this._pdfViewer.decreaseScale(),Z.abrupt("break",42);case 42:return Z.abrupt("return");case 43:if(!j){Z.next=46;break}if(!w.focus){Z.next=46;break}return Z.abrupt("return");case 46:delete w.id,delete w.siblings,he=J?[te].concat(B(J)):[te],be=u(he);try{for(be.s();!(oe=be.n()).done;)q=oe.value,(G=document.getElementById(q))?G.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:w})):null===(L=this._pdfDocument)||void 0===L||L.annotationStorage.setValue(q,w)}catch(re){be.e(re)}finally{be.f()}case 51:case"end":return Z.stop()}},S,this)}));return function d(S){return v.apply(this,arguments)}}()},{key:"_dispatchPageOpen",value:function(){var v=P(H.default.mark(function S(w){var J,ge,de,he,j=this,be=arguments;return H.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(J=this._pdfDocument,ge=this._visitedPages,be.length>1&&void 0!==be[1]&&be[1]&&(this._closeCapability=(0,R.createPromiseCapability)()),this._closeCapability){q.next=5;break}return q.abrupt("return");case 5:if((null==(de=this._pdfViewer.getPageView(w-1))?void 0:de.renderingState)===$.RenderingStates.FINISHED){q.next=9;break}return this._pageOpenPending.add(w),q.abrupt("return");case 9:this._pageOpenPending.delete(w),he=P(H.default.mark(function G(){var L,F,Z;return H.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,ge.has(w)?null:null===(L=de.pdfPage)||void 0===L?void 0:L.getJSActions();case 2:if(Z=ue.sent,J===j._pdfDocument){ue.next=5;break}return ue.abrupt("return");case 5:return ue.next=7,null===(F=j._scripting)||void 0===F?void 0:F.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:w,actions:Z});case 7:case"end":return ue.stop()}},G)}))(),ge.set(w,he);case 12:case"end":return q.stop()}},S,this)}));return function d(S){return v.apply(this,arguments)}}()},{key:"_dispatchPageClose",value:function(){var v=P(H.default.mark(function S(w){var j,te,J,ge;return H.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(te=this._pdfDocument,J=this._visitedPages,this._closeCapability){he.next=3;break}return he.abrupt("return");case 3:if(!this._pageOpenPending.has(w)){he.next=5;break}return he.abrupt("return");case 5:if(ge=J.get(w)){he.next=8;break}return he.abrupt("return");case 8:return J.set(w,null),he.next=11,ge;case 11:if(te===this._pdfDocument){he.next=13;break}return he.abrupt("return");case 13:return he.next=15,null===(j=this._scripting)||void 0===j?void 0:j.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:w});case 15:case"end":return he.stop()}},S,this)}));return function d(S){return v.apply(this,arguments)}}()},{key:"_getDocProperties",value:function(){var v=P(H.default.mark(function S(){var w;return H.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(!this._docPropertiesLookup){J.next=2;break}return J.abrupt("return",this._docPropertiesLookup(this._pdfDocument));case 2:return w=V(21),J.abrupt("return",(0,w.docPropertiesLookup)(this._pdfDocument));case 4:case"end":return J.stop()}},S,this)}));return function d(){return v.apply(this,arguments)}}()},{key:"_createScripting",value:function(){if(this._destroyCapability=(0,R.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");return this._scriptingFactory?this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc}):new(0,V(21).GenericScripting)(this._sandboxBundleSrc)}},{key:"_destroyScripting",value:function(){var v=P(H.default.mark(function S(){var w,j,te,J,ge,be,oe,q;return H.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(this._scripting){Z.next=4;break}return this._pdfDocument=null,null===(j=this._destroyCapability)||void 0===j||j.resolve(),Z.abrupt("return");case 4:if(!this._closeCapability){Z.next=8;break}return Z.next=7,Promise.race([this._closeCapability.promise,new Promise(function(re){setTimeout(re,1e3)})]).catch(function(re){});case 7:this._closeCapability=null;case 8:return this._pdfDocument=null,Z.prev=9,Z.next=12,this._scripting.destroySandbox();case 12:Z.next=16;break;case 14:Z.prev=14,Z.t0=Z.catch(9);case 16:te=u(this._internalEvents);try{for(te.s();!(J=te.n()).done;)ge=b(J.value,2),this._eventBus._off(ge[0],ge[1])}catch(re){te.e(re)}finally{te.f()}this._internalEvents.clear(),be=u(this._domEvents);try{for(be.s();!(oe=be.n()).done;)q=b(oe.value,2),window.removeEventListener(q[0],q[1])}catch(re){be.e(re)}finally{be.f()}this._domEvents.clear(),this._pageOpenPending.clear(),this._visitedPages.clear(),this._scripting=null,delete this._mouseState.isDown,this._ready=!1,null===(w=this._destroyCapability)||void 0===w||w.resolve();case 28:case"end":return Z.stop()}},S,this,[[9,14]])}));return function d(){return v.apply(this,arguments)}}()}]),h;var v}();e.PDFScriptingManager=f},(U,e,V)=>
1{Object.defineProperty(e,"__esModule",{value:!0}),e.docPropertiesLookup=function o(m){return u.apply(this,arguments)},e.GenericScripting=void 0;var H=function Q(m){return m&&m.__esModule?m:{default:m}}(V(2)),R=V(4);function $(m,c){var A=Object.keys(m);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(m);c&&(O=O.filter(function(_){return Object.getOwnPropertyDescriptor(m,_).enumerable})),A.push.apply(A,O)}return A}function X(m){for(var c=1;c<arguments.length;c++){var A=null!=arguments[c]?arguments[c]:{};c%2?$(Object(A),!0).forEach(function(O){B(m,O,A[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(A)):$(Object(A)).forEach(function(O){Object.defineProperty(m,O,Object.getOwnPropertyDescriptor(A,O))})}return m}function B(m,c,A){return c in m?Object.defineProperty(m,c,{value:A,enumerable:!0,configurable:!0,writable:!0}):m[c]=A,m}function W(m,c){for(var A=0;A<c.length;A++){var O=c[A];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(m,O.key,O)}}function g(m,c,A,O,_,k,P){try{var E=m[k](P),x=E.value}catch(y){return void A(y)}E.done?c(x):Promise.resolve(x).then(O,_)}function p(m){return function(){var c=this,A=arguments;return new Promise(function(O,_){var k=m.apply(c,A);function P(x){g(k,O,_,P,E,"next",x)}function E(x){g(k,O,_,P,E,"throw",x)}P(void 0)})}}function u(){return(u=p(H.default.mark(function m(c){var A,O,_,k,P,E,x;return H.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return O=(A="").split("#")[0],v.next=3,c.getMetadata();case 3:if(k=(_=v.sent).info,P=_.metadata,E=_.contentDispositionFilename,x=_.contentLength){v.next=14;break}return v.next=11,c.getDownloadInfo();case 11:x=v.sent.length;case 14:return v.abrupt("return",X(X({},k),{},{baseURL:O,filesize:x,filename:E||(0,R.getPdfFilenameFromUrl)(A),metadata:null==P?void 0:P.getRaw(),authors:null==P?void 0:P.get("dc:creator"),numPages:c.numPages,URL:A}));case 15:case"end":return v.stop()}},m)}))).apply(this,arguments)}var b=function(){function m(c){(function z(m,c){if(!(m instanceof c))throw new TypeError("Cannot call a class as a function")})(this,m),this._ready=(0,R.loadScript)(c,!0).then(function(){return window.pdfjsSandbox.QuickJSSandbox()})}return function D(m,c,A){return c&&W(m.prototype,c),A&&W(m,A),m}(m,[{key:"createSandbox",value:(c=p(H.default.mark(function O(_){return H.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this._ready;case 2:E.sent.create(_);case 4:case"end":return E.stop()}},O,this)})),function A(O){return c.apply(this,arguments)})},{key:"dispatchEventInSandbox",value:function(){var c=p(H.default.mark(function O(_){return H.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,this._ready;case 2:E.sent.dispatchEvent(_);case 4:case"end":return E.stop()}},O,this)}));return function A(O){return c.apply(this,arguments)}}()},{key:"destroySandbox",value:function(){var c=p(H.default.mark(function O(){return H.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,this._ready;case 2:P.sent.nukeSandbox();case 4:case"end":return P.stop()}},O,this)}));return function A(){return c.apply(this,arguments)}}()}]),m;var c}();e.GenericScripting=b},(U,e,V)=>{function H(A){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(_){return typeof _}:function(_){return _&&"function"==typeof Symbol&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFSinglePageViewer=void 0;var R=V(23),Q=V(4);function X(A,O){for(var _=0;_<O.length;_++){var k=O[_];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(A,k.key,k)}}function z(A,O,_){return(z="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(P,E,x){var y=function W(A,O){for(;!Object.prototype.hasOwnProperty.call(A,O)&&null!==(A=m(A)););return A}(P,E);if(y){var f=Object.getOwnPropertyDescriptor(y,E);return f.get?f.get.call(x):f.value}})(A,O,_||A)}function D(A,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(O&&O.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),O&&g(A,O)}function g(A,O){return(g=Object.setPrototypeOf||function(k,P){return k.__proto__=P,k})(A,O)}function p(A){var O=function b(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(A){return!1}}();return function(){var P,k=m(A);
1if(O){var E=m(this).constructor;P=Reflect.construct(k,arguments,E)}else P=k.apply(this,arguments);return o(this,P)}}function o(A,O){if(O&&("object"===H(O)||"function"==typeof O))return O;if(void 0!==O)throw new TypeError("Derived constructors may only return object or undefined");return function u(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}(A)}function m(A){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)})(A)}e.PDFSinglePageViewer=function(A){D(_,A);var O=p(_);function _(k){var P;return function $(A,O){if(!(A instanceof O))throw new TypeError("Cannot call a class as a function")}(this,_),(P=O.call(this,k)).eventBus._on("pagesinit",function(E){P._ensurePageViewVisible()}),P}return function B(A,O,_){return O&&X(A.prototype,O),_&&X(A,_),A}(_,[{key:"_viewerElement",get:function(){return(0,Q.shadow)(this,"_viewerElement",this._shadowViewer)}},{key:"_pageWidthScaleFactor",get:function(){return 1}},{key:"_resetView",value:function(){z(m(_.prototype),"_resetView",this).call(this),this._previousPageNumber=1,this._shadowViewer=document.createDocumentFragment(),this._updateScrollDown=null}},{key:"_ensurePageViewVisible",value:function(){var P=this._pages[this._currentPageNumber-1],E=this._pages[this._previousPageNumber-1],x=this.viewer.childNodes;switch(x.length){case 0:this.viewer.appendChild(P.div);break;case 1:if(x[0]!==E.div)throw new Error("_ensurePageViewVisible: Unexpected previously visible page.");if(P===E)break;this._shadowViewer.appendChild(E.div),this.viewer.appendChild(P.div),this.container.scrollTop=0;break;default:throw new Error("_ensurePageViewVisible: Only one page should be visible at a time.")}this._previousPageNumber=this._currentPageNumber}},{key:"_scrollUpdate",value:function(){this._updateScrollDown&&this._updateScrollDown(),z(m(_.prototype),"_scrollUpdate",this).call(this)}},{key:"_scrollIntoView",value:function(P){var E=this,x=P.pageDiv,y=P.pageSpot,f=void 0===y?null:y,h=P.pageNumber,v=void 0===h?null:h;v&&this._setCurrentPageNumber(v);var d=this._currentPageNumber>=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),z(m(_.prototype),"_scrollIntoView",this).call(this,{pageDiv:x,pageSpot:f,pageNumber:v}),this._updateScrollDown=function(){E.scroll.down=d,E._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(P){}},{key:"_isScrollModeHorizontal",get:function(){return(0,Q.shadow)(this,"_isScrollModeHorizontal",!1)}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_getPageAdvance",value:function(){return 1}}]),_}(R.BaseViewer)},(U,e,V)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BaseViewer=void 0;var H=V(4),R=V(7),Q=V(19),$=V(1),X=V(5),B=V(18),z=V(6),W=V(8),D=V(24),g=V(9),p=V(10);function o(E,x){var y="undefined"!=typeof Symbol&&E[Symbol.iterator]||E["@@iterator"];if(!y){if(Array.isArray(E)||(y=function u(E,x){if(E){if("string"==typeof E)return b(E,x);var y=Object.prototype.toString.call(E).slice(8,-1);if("Object"===y&&E.constructor&&(y=E.constructor.name),"Map"===y||"Set"===y)return Array.from(E);if("Arguments"===y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return b(E,x)}}(E))||x&&E&&"number"==typeof E.length){y&&(E=y);var f=0,h=function(){};return{s:h,n:function(){return f>=E.length?{done:!0}:{done:!1,value:E[f++]}},e:function(j){throw j},f:h}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var S,v=!0,d=!1;return{s:function(){y=y.call(E)},n:function(){var j=y.next();return v=j.done,j},e:function(j){d=!0,S=j},f:function(){try{!v&&null!=y.return&&y.return()}finally{if(d)throw S}}}}function b(E,x){(null==x||x>E.length)&&(x=E.length);for(var y=0,f=new Array(x);y<x;y++)f[y]=E[y];return f}function c(E,x){for(var y=0;y<x.length;y++){var f=x[y];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(E,f.key,f)}}function _(E){var x=[];this.push=function(y){var f=x.indexOf(y);f>=0&&x.splice(f,1),x.push(y),x.length>E&&x.shift().destroy()},this.resize=function(y,f){if(E=y,f){for(var h=new Set,v=0,d=f.length;
1v<d;++v)h.add(f[v].id);(0,R.moveToEndOfArray)(x,function(S){return h.has(S.id)})}for(;x.length>E;)x.shift().destroy()},this.has=function(y){return x.includes(y)}}function k(E,x){return x===E||Math.abs(x-E)<1e-15}var P=function(){function E(x){var y,f,h,v,d=this;if(function m(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}(this,E),this.constructor===E)throw new Error("Cannot initialize BaseViewer.");var S="2.11.338";if(H.version!==S)throw new Error('The API version "'.concat(H.version,'" does not match the Viewer version "').concat(S,'".'));if(this.container=x.container,this.viewer=x.viewer||x.container.firstElementChild,"DIV"!==(null===(y=this.container)||void 0===y?void 0:y.tagName.toUpperCase())||"DIV"!==(null===(f=this.viewer)||void 0===f?void 0:f.tagName.toUpperCase()))throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");this.eventBus=x.eventBus,this.linkService=x.linkService||new z.SimpleLinkService,this.downloadManager=x.downloadManager||null,this.findController=x.findController||null,this._scriptingManager=x.scriptingManager||null,this.removePageBorders=x.removePageBorders||!1,this.textLayerMode=null!==(h=x.textLayerMode)&&void 0!==h?h:R.TextLayerMode.ENABLE,this._annotationMode=null!==(v=x.annotationMode)&&void 0!==v?v:H.AnnotationMode.ENABLE_FORMS,this.imageResourcesPath=x.imageResourcesPath||"",this.enablePrintAutoRotate=x.enablePrintAutoRotate||!1,this.renderer=x.renderer||R.RendererType.CANVAS,this.useOnlyCssZoom=x.useOnlyCssZoom||!1,this.maxCanvasPixels=x.maxCanvasPixels,this.l10n=x.l10n||X.NullL10n,this.defaultRenderingQueue=!x.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new Q.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=x.renderingQueue,this._doc=document.documentElement,this.scroll=(0,R.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=R.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then(function(){d.eventBus.dispatch("baseviewerinit",{source:d})})}return function A(E,x,y){return x&&c(E.prototype,x),y&&c(E,y),E}(E,[{key:"pagesCount",get:function(){return this._pages.length}},{key:"getPageView",value:function(y){return this._pages[y]}},{key:"pageViewsReady",get:function(){return!!this._pagesCapability.settled&&this._pages.every(function(y){return null==y?void 0:y.pdfPage})}},{key:"renderForms",get:function(){return this._annotationMode===H.AnnotationMode.ENABLE_FORMS}},{key:"enableScripting",get:function(){return!!this._scriptingManager}},{key:"currentPageNumber",get:function(){return this._currentPageNumber},set:function(y){if(!Number.isInteger(y))throw new Error("Invalid page number.");!this.pdfDocument||this._setCurrentPageNumber(y,!0)||console.error('currentPageNumber: "'.concat(y,'" is not a valid page.'))}},{key:"_setCurrentPageNumber",value:function(y){var f,h,v=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._currentPageNumber===y)return v&&this._resetCurrentPageView(),!0;if(!(0<y&&y<=this.pagesCount))return!1;var d=this._currentPageNumber;return this._currentPageNumber=y,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:y,pageLabel:null!==(f=null===(h=this._pageLabels)||void 0===h?void 0:h[y-1])&&void 0!==f?f:null,previous:d}),v&&this._resetCurrentPageView(),!0}},{key:"currentPageLabel",get:function(){var y,f;return null!==(y=null===(f=this._pageLabels)||void 0===f?void 0:f[this._currentPageNumber-1])&&void 0!==y?y:null},set:function(y){if(this.pdfDocument){var f=0|y;if(this._pageLabels){var h=this._pageLabels.indexOf(y);h>=0&&(f=h+1)}this._setCurrentPageNumber(f,!0)||console.error('currentPageLabel: "'.concat(y,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return this._currentScale!==R.UNKNOWN_SCALE?this._currentScale:R.DEFAULT_SCALE},set:function(y){if(isNaN(y))throw new Error("Invalid numeric scale.");!this.pdfDocument||this._setScale(y,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(y){!this.pdfDocument||this._setScale(y,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(y){if(!(0,R.isValidRotation)(y))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&((y%=360)<0&&(y+=360),this._pagesRotation!==y)){this._pagesRotation=y;var d,f=this._currentPageNumber,h={rotation:y},v=o(this._pages);try{for(v.s();!(d=v.n()).done;)d.value.update(h)}catch(w){v.e(w)}finally{v.f()}this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:y,pageNumber:f}),this.defaultRenderingQueue&&this.update()}}},{key:"firstPagePromise",get:function(){return this.pdfDocument?this._firstPageCapability.promise:null}},{key:"onePageRendered",get:function(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}},{key:"pagesPromise",get:function(){return this.pdfDocument?this._pagesCapability.promise:null}},{key:"_viewerElement",get:function(){throw new Error("Not implemented: _viewerElement")}},{key:"_onePageRenderedOrForceFetch",value:function(){return this.container.offsetParent&&0!==this._getVisiblePages().views.length?this._onePageRenderedCapability.promise:Promise.resolve()}},{key:"setDocument",value:function(y){var f=this;if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null),this._scriptingManager&&this._scriptingManager.setDocument(null)),this.pdfDocument=y,y){var h=y.isPureXfa,v=y.numPages,d=y.getPage(1),S=y.getOptionalContentConfig();this._pagesCapability.promise.then(function(){f.eventBus.dispatch("pagesloaded",{source:f,pagesCount:v})}),this._onBeforeDraw=function(w){var j=f._pages[w.pageNumber-1];!j||f._buffer.push(j)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=function(w){
1w.cssTransform||f._onePageRenderedCapability.settled||(f._onePageRenderedCapability.resolve(),f.eventBus._off("pagerendered",f._onAfterDraw),f._onAfterDraw=null)},this.eventBus._on("pagerendered",this._onAfterDraw),d.then(function(w){f._firstPageCapability.resolve(w),f._optionalContentConfigPromise=S;for(var j=f.currentScale,te=w.getViewport({scale:j*H.PixelsPerInch.PDF_TO_CSS_UNITS}),J=f.textLayerMode===R.TextLayerMode.DISABLE||h?null:f,ge=f._annotationMode!==H.AnnotationMode.DISABLE?f:null,de=h?f:null,he=1;he<=v;++he){var be=new B.PDFPageView({container:f._viewerElement,eventBus:f.eventBus,id:he,scale:j,defaultViewport:te.clone(),optionalContentConfigPromise:S,renderingQueue:f.renderingQueue,textLayerFactory:J,textLayerMode:f.textLayerMode,annotationLayerFactory:ge,annotationMode:f._annotationMode,xfaLayerFactory:de,textHighlighterFactory:f,structTreeLayerFactory:f,imageResourcesPath:f.imageResourcesPath,renderer:f.renderer,useOnlyCssZoom:f.useOnlyCssZoom,maxCanvasPixels:f.maxCanvasPixels,l10n:f.l10n});f._pages.push(be)}var oe=f._pages[0];oe&&(oe.setPdfPage(w),f.linkService.cachePageRef(1,w.ref)),f._spreadMode!==R.SpreadMode.NONE&&f._updateSpreadMode(),f._onePageRenderedOrForceFetch().then(function(){if(f.findController&&f.findController.setDocument(y),f._scriptingManager&&f._scriptingManager.setDocument(y),y.loadingParams.disableAutoFetch||v>7500)f._pagesCapability.resolve();else{var q=v-1;if(q<=0)f._pagesCapability.resolve();else for(var G=function(Z){y.getPage(Z).then(function(re){var ue=f._pages[Z-1];ue.pdfPage||ue.setPdfPage(re),f.linkService.cachePageRef(Z,re.ref),0==--q&&f._pagesCapability.resolve()},function(re){console.error("Unable to get page ".concat(Z," to initialize viewer"),re),0==--q&&f._pagesCapability.resolve()})},L=2;L<=v;++L)G(L)}}),f.eventBus.dispatch("pagesinit",{source:f}),f.defaultRenderingQueue&&f.update()}).catch(function(w){console.error("Unable to initialize viewer",w)})}}},{key:"setPageLabels",value:function(y){if(this.pdfDocument){y?Array.isArray(y)&&this.pdfDocument.numPages===y.length?this._pageLabels=y:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(var f=0,h=this._pages.length;f<h;f++){var v,d;this._pages[f].setPageLabel(null!==(v=null===(d=this._pageLabels)||void 0===d?void 0:d[f])&&void 0!==v?v:null)}}}},{key:"_resetView",value:function(){this._pages=[],this._currentPageNumber=1,this._currentScale=R.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this._buffer=new _(10),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._pagesRequests=new WeakMap,this._firstPageCapability=(0,H.createPromiseCapability)(),this._onePageRenderedCapability=(0,H.createPromiseCapability)(),this._pagesCapability=(0,H.createPromiseCapability)(),this._scrollMode=R.ScrollMode.VERTICAL,this._spreadMode=R.SpreadMode.NONE,this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.viewer.textContent="",this._updateScrollMode()}},{key:"_scrollUpdate",value:function(){0!==this.pagesCount&&this.update()}},{key:"_scrollIntoView",value:function(y){var h=y.pageSpot;(0,R.scrollIntoView)(y.pageDiv,void 0===h?null:h)}},{key:"_setScaleUpdatePages",value:function(y,f){var h=arguments.length>2&&void 0!==arguments[2]&&arguments[2],v=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._currentScaleValue=f.toString(),k(this._currentScale,y))v&&this.eventBus.dispatch("scalechanging",{source:this,scale:y,presetValue:f});else{this._doc.style.setProperty("--zoom-factor",y);var w,d={scale:y},S=o(this._pages);try{for(S.s();!(w=S.n()).done;)w.value.update(d)}catch(ge){S.e(ge)}finally{S.f()}if(this._currentScale=y,!h){var J,te=this._currentPageNumber;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(te=this._location.pageNumber,J=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:te,destArray:J,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:y,presetValue:v?f:void 0}),this.defaultRenderingQueue&&this.update()}}},{key:"_pageWidthScaleFactor",get:function(){return this._spreadMode===R.SpreadMode.NONE||this._scrollMode===R.ScrollMode.HORIZONTAL||this.isInPresentationMode?1:2}},{key:"_setScale",value:function(y){var f=arguments.length>1&&void 0!==arguments[1]&&arguments[1],h=parseFloat(y);if(h>0)this._setScaleUpdatePages(h,y,f,!1);else{var v=this._pages[this._currentPageNumber-1];if(!v)return;var d=this.isInPresentationMode||this.removePageBorders,S=d?0:R.SCROLLBAR_PADDING,w=d?0:R.VERTICAL_PADDING;if(!d&&this._isScrollModeHorizontal){var j=[w,S];
1S=j[0],w=j[1]}var te=(this.container.clientWidth-S)/v.width*v.scale/this._pageWidthScaleFactor,J=(this.container.clientHeight-w)/v.height*v.scale;switch(y){case"page-actual":h=1;break;case"page-width":h=te;break;case"page-height":h=J;break;case"page-fit":h=Math.min(te,J);break;case"auto":var ge=(0,R.isPortraitOrientation)(v)?te:Math.min(J,te);h=Math.min(R.MAX_AUTO_SCALE,ge);break;default:return void console.error('_setScale: "'.concat(y,'" is an unknown zoom value.'))}this._setScaleUpdatePages(h,y,f,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),this._scrollIntoView({pageDiv:this._pages[this._currentPageNumber-1].div})}},{key:"pageLabelToPageNumber",value:function(y){if(!this._pageLabels)return null;var f=this._pageLabels.indexOf(y);return f<0?null:f+1}},{key:"scrollPageIntoView",value:function(y){var f=y.pageNumber,h=y.destArray,v=void 0===h?null:h,d=y.allowNegativeOffset,S=void 0!==d&&d,w=y.ignoreDestinationZoom,j=void 0!==w&&w;if(this.pdfDocument){var te=Number.isInteger(f)&&this._pages[f-1];if(!te)return void console.error('scrollPageIntoView: "'.concat(f,'" is not a valid pageNumber parameter.'));if(this.isInPresentationMode||!v)return void this._setCurrentPageNumber(f,!0);var oe,J=0,ge=0,de=0,he=0,q=te.rotation%180!=0,G=(q?te.height:te.width)/te.scale/H.PixelsPerInch.PDF_TO_CSS_UNITS,L=(q?te.width:te.height)/te.scale/H.PixelsPerInch.PDF_TO_CSS_UNITS,F=0;switch(v[1].name){case"XYZ":F=v[4],J=null!==(J=v[2])?J:0,ge=null!==(ge=v[3])?ge:L;break;case"Fit":case"FitB":F="page-fit";break;case"FitH":case"FitBH":F="page-width",null===(ge=v[2])&&this._location?(J=this._location.left,ge=this._location.top):"number"!=typeof ge&&(ge=L);break;case"FitV":case"FitBV":J=v[2],de=G,he=L,F="page-height";break;case"FitR":de=v[4]-(J=v[2]),oe=(this.container.clientHeight-(this.removePageBorders?0:R.VERTICAL_PADDING))/(he=v[5]-(ge=v[3]))/H.PixelsPerInch.PDF_TO_CSS_UNITS,F=Math.min(Math.abs((this.container.clientWidth-(this.removePageBorders?0:R.SCROLLBAR_PADDING))/de/H.PixelsPerInch.PDF_TO_CSS_UNITS),Math.abs(oe));break;default:return void console.error('scrollPageIntoView: "'.concat(v[1].name,'" is not a valid destination type.'))}if(j||(F&&F!==this._currentScale?this.currentScaleValue=F:this._currentScale===R.UNKNOWN_SCALE&&(this.currentScaleValue=R.DEFAULT_SCALE_VALUE)),"page-fit"===F&&!v[4])return void this._scrollIntoView({pageDiv:te.div,pageNumber:f});var ue=[te.viewport.convertToViewportPoint(J,ge),te.viewport.convertToViewportPoint(J+de,ge+he)],ve=Math.min(ue[0][0],ue[1][0]),ke=Math.min(ue[0][1],ue[1][1]);S||(ve=Math.max(ve,0),ke=Math.max(ke,0)),this._scrollIntoView({pageDiv:te.div,pageSpot:{left:ve,top:ke},pageNumber:f})}}},{key:"_updateLocation",value:function(y){var f=this._currentScale,h=this._currentScaleValue,v=parseFloat(h)===f?Math.round(1e4*f)/100:h,d=y.id,S="#page="+d;S+="&zoom="+v;var j=this.container,te=this._pages[d-1].getPagePoint(j.scrollLeft-y.x,j.scrollTop-y.y),J=Math.round(te[0]),ge=Math.round(te[1]);this._location={pageNumber:d,scale:v,top:ge,left:J,rotation:this._pagesRotation,pdfOpenParams:S+=","+J+","+ge}}},{key:"_updateHelper",value:function(y){throw new Error("Not implemented: _updateHelper")}},{key:"update",value:function(){var y=this._getVisiblePages(),f=y.views,h=f.length;if(0!==h){var v=Math.max(10,2*h+1);this._buffer.resize(v,f),this.renderingQueue.renderHighestPriority(y),this._updateHelper(f),this._updateLocation(y.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"containsElement",value:function(y){return this.container.contains(y)}},{key:"focus",value:function(){this.container.focus()}},{key:"_isScrollModeHorizontal",get:function(){return!this.isInPresentationMode&&this._scrollMode===R.ScrollMode.HORIZONTAL}},{key:"_isContainerRtl",get:function(){return"rtl"===getComputedStyle(this.container).direction}},{key:"isInPresentationMode",get:function(){return this.presentationModeState===R.PresentationModeState.FULLSCREEN}},{key:"isChangingPresentationMode",get:function(){return this.presentationModeState===R.PresentationModeState.CHANGING}},{key:"isHorizontalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"_getCurrentVisiblePage",value:function(){if(!this.pagesCount)return{views:[]};var y=this._pages[this._currentPageNumber-1],f=y.div,h={id:y.id,x:f.offsetLeft+f.clientLeft,y:f.offsetTop+f.clientTop,view:y};return{first:h,last:h,views:[h]}}},{key:"_getVisiblePages",value:function(){return(0,R.getVisibleElements)({scrollEl:this.container,views:this._pages,sortByVisibility:!0,horizontal:this._isScrollModeHorizontal,rtl:this._isScrollModeHorizontal&&this._isContainerRtl})}},{key:"isPageVisible",value:function(y){return!!this.pdfDocument&&(Number.isInteger(y)&&y>0&&y<=this.pagesCount?this._getVisiblePages().views.some(function(f){return f.id===y}):(console.error('isPageVisible: "'.concat(y,'" is not a valid page.')),!1))}},{key:"isPageCached",value:function(y){if(!this.pdfDocument||!this._buffer)return!1;if(!(Number.isInteger(y)&&y>0&&y<=this.pagesCount))return console.error('isPageCached: "'.concat(y,'" is not a valid page.')),!1;var f=this._pages[y-1];return!!f&&this._buffer.has(f)}},{key:"cleanup",value:function(){for(var y=0,f=this._pages.length;y<f;y++)this._pages[y]&&this._pages[y].renderingState!==Q.RenderingStates.FINISHED&&this._pages[y].reset()}},{key:"_cancelRendering",value:function(){for(var y=0,f=this._pages.length;y<f;y++)this._pages[y]&&this._pages[y].cancelRendering()}},{key:"_ensurePdfPageLoaded",value:function(y){var f=this;if(y.pdfPage)return Promise.resolve(y.pdfPage);if(this._pagesRequests.has(y))return this._pagesRequests.get(y);var h=this.pdfDocument.getPage(y.id).then(function(v){return y.pdfPage||y.setPdfPage(v),f._pagesRequests.delete(y),v}).catch(function(v){console.error("Unable to get page for page view",v),f._pagesRequests.delete(y)});return this._pagesRequests.set(y,h),h}},{key:"forceRendering",value:function(y){var f=this,h=y||this._getVisiblePages(),S=this.renderingQueue.getHighestPriority(h,this._pages,this._isScrollModeHorizontal?this.scroll.right:this.scroll.down,this._scrollMode===R.ScrollMode.VERTICAL&&this._spreadMode!==R.SpreadMode.NONE&&!this.isInPresentationMode);return!!S&&(this._ensurePdfPageLoaded(S).then(function(){f.renderingQueue.renderView(S)}),!0)}},{key:"createTextLayerBuilder",value:function(y,f,h){return new g.TextLayerBuilder({textLayerDiv
1:y,eventBus:arguments.length>4?arguments[4]:void 0,pageIndex:f,viewport:h,enhanceTextSelection:!this.isInPresentationMode&&arguments.length>3&&void 0!==arguments[3]&&arguments[3],highlighter:arguments.length>5?arguments[5]:void 0})}},{key:"createTextHighlighter",value:function(y,f){return new D.TextHighlighter({eventBus:f,pageIndex:y,findController:this.isInPresentationMode?null:this.findController})}},{key:"createAnnotationLayerBuilder",value:function(y,f){var h,v,d,S,ge=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,he=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,be=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null;return new $.AnnotationLayerBuilder({pageDiv:y,pdfPage:f,annotationStorage:(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)||(null===(h=this.pdfDocument)||void 0===h?void 0:h.annotationStorage),imageResourcesPath:arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",renderForms:!(arguments.length>4&&void 0!==arguments[4])||arguments[4],linkService:this.linkService,downloadManager:this.downloadManager,l10n:arguments.length>5&&void 0!==arguments[5]?arguments[5]:X.NullL10n,enableScripting:null!=ge?ge:this.enableScripting,hasJSActionsPromise:(arguments.length>7&&void 0!==arguments[7]?arguments[7]:null)||(null===(v=this.pdfDocument)||void 0===v?void 0:v.hasJSActions()),fieldObjectsPromise:be||(null===(d=this.pdfDocument)||void 0===d?void 0:d.getFieldObjects()),mouseState:he||(null===(S=this._scriptingManager)||void 0===S?void 0:S.mouseState)})}},{key:"createXfaLayerBuilder",value:function(y,f){var h;return new p.XfaLayerBuilder({pageDiv:y,pdfPage:f,annotationStorage:(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)||(null===(h=this.pdfDocument)||void 0===h?void 0:h.annotationStorage),linkService:this.linkService})}},{key:"createStructTreeLayerBuilder",value:function(y){return new W.StructTreeLayerBuilder({pdfPage:y})}},{key:"hasEqualPageSizes",get:function(){for(var y=this._pages[0],f=1,h=this._pages.length;f<h;++f){var v=this._pages[f];if(v.width!==y.width||v.height!==y.height)return!1}return!0}},{key:"getPagesOverview",value:function(){var y=this;return this._pages.map(function(f){var h=f.pdfPage.getViewport({scale:1});return!y.enablePrintAutoRotate||(0,R.isPortraitOrientation)(h)?{width:h.width,height:h.height,rotation:h.rotation}:{width:h.height,height:h.width,rotation:(h.rotation-90)%360}})}},{key:"optionalContentConfigPromise",get:function(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:this.pdfDocument.getOptionalContentConfig():Promise.resolve(null)},set:function(y){if(!(y instanceof Promise))throw new Error("Invalid optionalContentConfigPromise: ".concat(y));if(this.pdfDocument&&this._optionalContentConfigPromise){this._optionalContentConfigPromise=y;var v,f={optionalContentConfigPromise:y},h=o(this._pages);try{for(h.s();!(v=h.n()).done;)v.value.update(f)}catch(S){h.e(S)}finally{h.f()}this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:y})}}},{key:"scrollMode",get:function(){return this._scrollMode},set:function(y){if(this._scrollMode!==y){if(!(0,R.isValidScrollMode)(y))throw new Error("Invalid scroll mode: ".concat(y));this._scrollMode=y,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:y}),this._updateScrollMode(this._currentPageNumber)}}},{key:"_updateScrollMode",value:function(){var y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,f=this._scrollMode,h=this.viewer;h.classList.toggle("scrollHorizontal",f===R.ScrollMode.HORIZONTAL),h.classList.toggle("scrollWrapped",f===R.ScrollMode.WRAPPED),this.pdfDocument&&y&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(y,!0),this.update())}},{key:"spreadMode",get:function(){return this._spreadMode},set:function(y){if(this._spreadMode!==y){if(!(0,R.isValidSpreadMode)(y))throw new Error("Invalid spread mode: ".concat(y));this._spreadMode=y,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:y}),this._updateSpreadMode(this._currentPageNumber)}}},{key:"_updateSpreadMode",value:function(){var y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var f=this.viewer,h=this._pages;if(f.textContent="",this._spreadMode===R.SpreadMode.NONE)for(var v=0,d=h.length;
1v<d;++v)f.appendChild(h[v].div);else for(var S=this._spreadMode-1,w=null,j=0,te=h.length;j<te;++j)null===w?((w=document.createElement("div")).className="spread",f.appendChild(w)):j%2===S&&(w=w.cloneNode(!1),f.appendChild(w)),w.appendChild(h[j].div);!y||(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(y,!0),this.update())}}},{key:"_getPageAdvance",value:function(y){var f=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.isInPresentationMode)return 1;switch(this._scrollMode){case R.ScrollMode.WRAPPED:var w,v=this._getVisiblePages().views,d=new Map,S=o(v);try{for(S.s();!(w=S.n()).done;){var j=w.value,te=j.id,J=j.y;if(!(0===j.percent||j.widthPercent<100)){var he=d.get(J);he||d.set(J,he||(he=[])),he.push(te)}}}catch(Ne){S.e(Ne)}finally{S.f()}var oe,be=o(d.values());try{for(be.s();!(oe=be.n()).done;){var q=oe.value,G=q.indexOf(y);if(-1!==G){var L=q.length;if(1===L)break;if(f)for(var F=G-1,Z=0;F>=Z;F--){var ue=q[F+1]-1;if(q[F]<ue)return y-ue}else for(var ve=G+1,ke=L;ve<ke;ve++){var Oe=q[ve-1]+1;if(q[ve]>Oe)return Oe-y}if(f){var Ee=q[0];if(Ee<y)return y-Ee+1}else{var Ve=q[L-1];if(Ve>y)return Ve-y+1}break}}}catch(Ne){be.e(Ne)}finally{be.f()}break;case R.ScrollMode.HORIZONTAL:break;case R.ScrollMode.VERTICAL:if(this._spreadMode===R.SpreadMode.NONE)break;var le=this._spreadMode-1;if(f&&y%2!==le)break;
1if(!f&&y%2===le)break;var fe,ce=f?y-1:y+1,ie=o(this._getVisiblePages().views);try{for(ie.s();!(fe=ie.n()).done;){var Se=fe.value;if(Se.id===ce){if(Se.percent>0&&100===Se.widthPercent)return 2;break}}}catch(Ne){ie.e(Ne)}finally{ie.f()}}return 1}},{key:"nextPage",value:function(){var y=this._currentPageNumber,f=this.pagesCount;if(y>=f)return!1;var h=this._getPageAdvance(y,!1)||1;return this.currentPageNumber=Math.min(y+h,f),!0}},{key:"previousPage",value:function(){var y=this._currentPageNumber;if(y<=1)return!1;var f=this._getPageAdvance(y,!0)||1;return this.currentPageNumber=Math.max(y-f,1),!0}},{key:"increaseScale",value:function(){var y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,f=this._currentScale;do{f=(f*R.DEFAULT_SCALE_DELTA).toFixed(2),f=Math.ceil(10*f)/10,f=Math.min(R.MAX_SCALE,f)}while(--y>0&&f<R.MAX_SCALE);this.currentScaleValue=f}},{key:"decreaseScale",value:function(){var y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,f=this._currentScale;do{f=(f/R.DEFAULT_SCALE_DELTA).toFixed(2),f=Math.floor(10*f)/10,f=Math.max(R.MIN_SCALE,f)}while(--y>0&&f>R.MIN_SCALE);this.currentScaleValue=f}}]),E}();e.BaseViewer=P},(U,e)=>{function H($,X){for(var B=0;B<X.length;B++){var z=X[B];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty($,z.key,z)}}Object.defineProperty(e,"__esModule",{value:!0}),e.TextHighlighter=void 0,e.TextHighlighter=function(){function $(X){var B=X.findController,z=X.eventBus,W=X.pageIndex;(function V($,X){if(!($ instanceof X))throw new TypeError("Cannot call a class as a function")})(this,$),this.findController=B,this.matches=[],this.eventBus=z,this.pageIdx=W,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}return function R($,X,B){return X&&H($.prototype,X),B&&H($,B),$}($,[{key:"setTextMapping",value:function(B,z){this.textDivs=B,this.textContentItemsStr=z}},{key:"enable",value:function(){var B=this;if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(z){(z.pageIndex===B.pageIdx||-1===z.pageIndex)&&B._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}},{key:"disable",value:function(){!this.enabled||(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null))}},{key:"_convertMatches",value:function(B,z){if(!B)return[];for(var W=this.textContentItemsStr,D=0,g=0,p=W.length-1,o=[],u=0,b=B.length;u<b;u++){for(var m=B[u];D!==p&&m>=g+W[D].length;)g+=W[D].length,D++;D===W.length&&console.error("Could not find a matching mapping");var c={begin:{divIdx:D,offset:m-g}};for(m+=z[u];D!==p&&m>g+W[D].length;)g+=W[D].length,D++;c.end={divIdx:D,offset:m-g},o.push(c)}return o}},{key:"_renderMatches",value:function(B){if(0!==B.length){var z=this.findController,W=this.pageIdx,D=this.textContentItemsStr,g=this.textDivs,p=W===z.selected.pageIdx,o=z.selected.matchIdx,b=null,m={divIdx:-1,offset:void 0},O=o,_=O+1;if(z.state.highlightAll)O=0,_=B.length;else if(!p)return;for(var k=O;k<_;k++){var P=B[k],E=P.begin,x=P.end,y=p&&k===o,f=y?" selected":"",h=0;if(b&&E.divIdx===b.divIdx?A(b.divIdx,b.offset,E.offset):(null!==b&&A(b.divIdx,b.offset,m.offset),c(E)),E.divIdx===x.divIdx)h=A(E.divIdx,E.offset,x.offset,"highlight"+f);else{h=A(E.divIdx,E.offset,m.offset,"highlight begin"+f);for(var v=E.divIdx+1,d=x.divIdx;
1v<d;v++)g[v].className="highlight middle"+f;c(x,"highlight end"+f)}b=x,y&&z.scrollMatchIntoView({element:g[E.divIdx],selectedLeft:h,pageIndex:W,matchIndex:o})}b&&A(b.divIdx,b.offset,m.offset)}function c(S,w){var j=S.divIdx;return g[j].textContent="",A(j,0,S.offset,w)}function A(S,w,j,te){var J=g[S];if(J.nodeType===Node.TEXT_NODE){var ge=document.createElement("span");J.parentNode.insertBefore(ge,J),ge.appendChild(J),g[S]=ge,J=ge}var de=D[S].substring(w,j),he=document.createTextNode(de);if(te){var be=document.createElement("span");return be.className="".concat(te," appended"),be.appendChild(he),J.appendChild(be),te.includes("selected")?be.offsetLeft:0}return J.appendChild(he),0}}},{key:"_updateMatches",value:function(){if(this.enabled){for(var B=this.findController,z=this.matches,W=this.pageIdx,D=this.textContentItemsStr,g=this.textDivs,p=-1,o=0,u=z.length;o<u;o++){for(var b=z[o],c=Math.max(p,b.begin.divIdx),A=b.end.divIdx;c<=A;c++){var O=g[c];O.textContent=D[c],O.className=""}p=b.end.divIdx+1}null!=B&&B.highlightMatches&&(this.matches=this._convertMatches(B.pageMatches[W]||null,B.pageMatchesLength[W]||null),this._renderMatches(this.matches))}}}]),$}()},(U,e,V)=>{function H(P){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(x){return typeof x}:function(x){return x&&"function"==typeof Symbol&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x})(P)}Object.defineProperty(e,"__esModule",{value:!0}),e.PDFViewer=void 0;var R=V(7),Q=V(23),$=V(4);function X(P,E){var x="undefined"!=typeof Symbol&&P[Symbol.iterator]||P["@@iterator"];if(!x){if(Array.isArray(P)||(x=function B(P,E){if(P){if("string"==typeof P)return z(P,E);var x=Object.prototype.toString.call(P).slice(8,-1);if("Object"===x&&P.constructor&&(x=P.constructor.name),"Map"===x||"Set"===x)return Array.from(P);if("Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return z(P,E)}}(P))||E&&P&&"number"==typeof P.length){x&&(P=x);var y=0,f=function(){};return{s:f,n:function(){return y>=P.length?{done:!0}:{done:!1,value:P[y++]}},e:function(w){throw w},f}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d,h=!0,v=!1;return{s:function(){x=x.call(P)},n:function(){var w=x.next();return h=w.done,w},e:function(w){v=!0,d=w},f:function(){try{!h&&null!=x.return&&x.return()}finally{if(v)throw d}}}}function z(P,E){(null==E||E>P.length)&&(E=P.length);for(var x=0,y=new Array(E);x<E;x++)y[x]=P[x];return y}function W(P,E){if(!(P instanceof E))throw new TypeError("Cannot call a class as a function")}function D(P,E){for(var x=0;x<E.length;x++){var y=E[x];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(P,y.key,y)}}function p(P,E,x){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(f,h,v){var d=function o(P,E){for(;!Object.prototype.hasOwnProperty.call(P,E)&&null!==(P=_(P)););return P}(f,h);if(d){var S=Object.getOwnPropertyDescriptor(d,h);return S.get?S.get.call(v):S.value}})(P,E,x||P)}function u(P,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(E&&E.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),E&&b(P,E)}function b(P,E){return(b=Object.setPrototypeOf||function(y,f){return y.__proto__=f,y})(P,E)}function m(P){var E=function O(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(P){return!1}}();return function(){var f,y=_(P);if(E){var h=_(this).constructor;f=Reflect.construct(y,arguments,h)}else f=y.apply(this,arguments);return c(this,f)}}function c(P,E){if(E&&("object"===H(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function A(P){if(void 0===P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(P)}function _(P){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)})(P)}var k=function(P){u(x,P);var E=m(x);function x(){return W(this,x),E.apply(this,arguments)}return function g(P,E,x){return E&&D(P.prototype,E),x&&D(P,x),P}(x,[{key:"_viewerElement",get:function(){return(0,$.shadow)(this,"_viewerElement",this.viewer)}},{key:"_scrollIntoView",value:function(f){var h=f.pageDiv,v=f.pageSpot,d=void 0===v?null:v,S=f.pageNumber,w=void 0===S?null:S;if(!d&&!this.isInPresentationMode){var j=h.offsetLeft+h.clientLeft,J=this.container,ge=J.scrollLeft;(this._isScrollModeHorizontal||j<ge||j+h.clientWidth>ge+J.clientWidth)&&(d={left:0,top:0})}p(_(x.prototype),"_scrollIntoView",this).call(this,{pageDiv:h,pageSpot:d,pageNumber:w})}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():p(_(x.prototype),"_getVisiblePages",this).call(this)}},{key:"_updateHelper",value:function(f){if(!this.isInPresentationMode){var S,h=this._currentPageNumber,v=!1,d=X(f);try{for(d.s();!(S=d.n()).done;){var w=S.value;if(w.percent<100)break;if(w.id===h&&this._scrollMode===R.ScrollMode.VERTICAL&&this._spreadMode===R.SpreadMode.NONE){v=!0;break}}}catch(j){d.e(j)}finally{d.f()}v||(h=f[0].id),this._setCurrentPageNumber(h)}}}]),x}(Q.BaseViewer);e.PDFViewer=k}],M={};function N(U){var e=M[U];if(void 0!==e)return e.exports;var V=M[U]={id:U,loaded:!1,exports:{}};return l[U](V,V.exports,N),V.loaded=!0,V.exports}N.nmd=U=>(U.paths=[],U.children||(U.children=[]),U);var Y={};return(()=>{var U=Y;Object.defineProperty(U,"__esModule",{value:!0}),Object.defineProperty(U,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return e.AnnotationLayerBuilder}}),Object.defineProperty(U,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return e.DefaultAnnotationLayerFactory}}),Object.defineProperty(U,"DefaultStructTreeLayerFactory",{enumerable:!0,get:function(){return V.DefaultStructTreeLayerFactory}}),Object.defineProperty(U,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return V.StructTreeLayerBuilder}}),Object.defineProperty(U,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return H.DefaultTextLayerFactory}}),Object.defineProperty(U,"TextLayerBuilder",{enumerable:!0,get:function(){return H.TextLayerBuilder}}),Object.defineProperty(U,"DefaultXfaLayerFactory",{enumerable:!0,get:function(){return R.DefaultXfaLayerFactory}}),Object.defineProperty(U,"XfaLayerBuilder",{enumerable:!0,get:function(){return R.XfaLayerBuilder}}),Object.defineProperty(U,"EventBus",{enumerable:!0,get:function(){return Q.EventBus}}),Object.defineProperty(U,"ProgressBar",{enumerable:!0,get:function(){return Q.ProgressBar}}),Object.defineProperty(U,"PDFLinkService",{enumerable:!0,get:function(){return $.PDFLinkService}}),Object.defineProperty(U,"SimpleLinkService",{enumerable:!0,get:function(){return $.SimpleLinkService}}),Object.defineProperty(U,"DownloadManager",{enumerable:!0,get:function(){return X.DownloadManager}}),Object.defineProperty(U,"GenericL10n",{enumerable:!0,get:function(){return B.GenericL10n}}),Object.defineProperty(U,"NullL10n",{enumerable:!0,get:function(){return z.NullL10n}}),Object.defineProperty(U,"PDFFindController",{enumerable:!0,get:function(){return W.PDFFindController}}),Object.defineProperty(U,"PDFHistory",{enumerable:!0,get:function(){return D.PDFHistory}}),Object.defineProperty(U,"PDFPageView",{enumerable:!0,get:function(){return g.PDFPageView}}),Object.defineProperty(U,"PDFScriptingManager",{enumerable:!0,get:function(){return p.PDFScriptingManager}}),Object.defineProperty(U,"PDFSinglePageViewer",{enumerable:!0,get:function(){return o.PDFSinglePageViewer}}),Object.defineProperty(U,"PDFViewer",{enumerable:!0,get:function(){return u.PDFViewer}});var e=N(1),V=N(8),H=N(9),R=N(10),Q=N(7),$=N(6),X=N(11),B=N(13),z=N(5),W=N(15),D=N(17),g=N(18),p=N(20),o=N(22),u=N(25)})(),Y})()},14601:()=>{},32767:()=>{},28251:()=>{},57677:()=>{},1543:()=>{},87324:()=>{}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.