1var FLIPBOOK=FLIPBOOK||{};!function(e,t,o,i){e.fn.flipBook=function(e){return new FLIPBOOK.Main(e,this)},e.fn.swipeBook=function(e){return e.viewMode="swipe",new FLIPBOOK.Main(e,this)},e.fn.flipBook.options={name:"",pages:[],tableOfContent:[],tableOfContentCloseOnClick:!0,thumbsCloseOnClick:!0,thumbsStyle:"overlay",deeplinkingEnabled:!1,deeplinkingPrefix:"",assets:{preloader:"assets/images/preloader.jpg",flipMp3:"assets/mp3/turnPage.mp3",spinner:"assets/images/spinner.gif",backgroundMp3:"assets/mp3/background.mp3"},pdfUrl:null,pdfBrowserViewerIfMobile:!1,pdfBrowserViewerIfIE:!1,pdfBrowserViewerFullscreen:!0,pdfBrowserViewerFullscreenTarget:"_blank",rangeChunkSize:64,disableRange:!1,disableStream:!0,disableAutoFetch:!0,pdfAutoLinks:!1,htmlLayer:!0,rightToLeft:!1,startPage:0,sound:!0,backgroundColor:"rgb(81, 85, 88)",backgroundImage:"",backgroundPattern:"",backgroundTransparent:!1,thumbSize:150,loadAllPages:!1,loadPagesF:2,loadPagesB:1,autoplayOnStart:!1,autoplayInterval:3e3,autoplayLoop:!0,skin:"light",layout:"3",menuOverBook:!1,menuFloating:!1,menuBackground:"",menuShadow:"",menuMargin:0,menuPadding:0,menuTransparent:!1,menu2OverBook:!0,menu2Floating:!1,menu2Background:"",menu2Shadow:"",menu2Margin:0,menu2Padding:0,menu2Transparent:!0,skinColor:"",skinBackground:"",btnColor:"",btnBackground:"none",btnSize:20,btnRadius:2,btnMargin:2,btnPaddingV:10,btnPaddingH:10,btnShadow:"",btnTextShadow:"",btnBorder:"",btnColorHover:"",btnBackgroundHover:"",arrowColor:"#FFF",arrowColorHover:"#FFF",arrowBackground:"rgba(0, 0, 0, 0)",arrowBackgroundHover:"rgba(0, 0, 0, .15)",arrowSize:40,arrowRadius:4,arrowMargin:4,arrowPadding:10,arrowTextShadow:"0px 0px 1px rgba(0, 0, 0, 1)",arrowBorder:"",floatingBtnColor:"#EEE",floatingBtnColorHover:"",floatingBtnBackground:"#00000044",floatingBtnBackgroundHover:"",floatingBtnSize:null,floatingBtnRadius:null,floatingBtnMargin:null,floatingBtnPadding:null,floatingBtnShadow:"",floatingBtnTextShadow:"",floatingBtnBorder:"",btnOrder:["currentPage","btnFirst","btnPrev","btnNext","btnLast","btnZoomOut","btnZoomIn","btnThumbs","btnToc","search","btnRotateLeft","btnRotateRight","btnAutoplay","btnSearch","btnSelect","btnBookmark","btnNotes","btnDownloadPages","btnShare","btnPrint","btnDownloadPdf","btnSound","btnExpand","btnClose"],currentPage:{enabled:!0,title:"Current page",vAlign:"top",hAlign:"left",marginH:0,marginV:0,color:"",background:""},search:{enabled:!1},btnFirst:{enabled:!1,title:"First page",svg:"last",iconReverse:!0},btnPrev:{enabled:!0,title:"Previous page",svg:"next",iconReverse:!0},btnNext:{enabled:!0,title:"Next page"},btnLast:{enabled:!1,title:"Last page"},btnZoomIn:{enabled:!0,title:"Zoom in",svg:"plus"},btnZoomOut:{enabled:!0,title:"Zoom out",svg:"minus"},btnRotateLeft:{enabled:!1,title:"Rotate left"},btnRotateRight:{enabled:!1,title:"Rotate right"},btnAutoplay:{enabled:!0,title:"Autoplay",svg:"play",svgAlt:"pause"},btnSearch:{enabled:!1,title:"Search"},btnSelect:{enabled:!0,title:"Select tool"},btnBookmark:{enabled:!0,title:"Bookmark"},btnNotes:{enabled:!1,title:"Notes"},btnToc:{enabled:!0,title:"Table of Contents",svg:"list"},btnThumbs:{enabled:!0,title:"Pages"},btnShare:{enabled:!0,title:"Share",hideOnMobile:!0},btnPrint:{enabled:!0,title:"Print",hideOnMobile:!0},btnDownloadPages:{enabled:!0,title:"Download pages",url:"images/pages.zip",name:"allPages.zip",svg:"download"},btnDownloadPdf:{forceDownload:!1,enabled:!0,title:"Download PDF",url:null,openInNewWindow:!0,name:"allPages.pdf",svg:"pdf"},btnSound:{enabled:!0,title:"Volume",hideOnMobile:!0,svgAlt:"mute"},btnExpand:{enabled:!0,title:"Toggle fullscreen",svgAlt:"compress"},btnClose:{title:"Close",hAlign:"right",vAlign:"top",size:20},btnShareIfMobile:!1,btnSoundIfMobile:!1,btnPrintIfMobile:!1,sideNavigationButtons:!0,hideMenu:!1,shareUrl:null,shareTitle:null,shareImage:null,whatsapp:{enabled:!0},twitter:{enabled:!0},facebook:{enabled:!0},pinterest:{enabled:!0},email:{enabled:!0},linkedin:{enabled:!0},digg:{enabled:!1},reddit:{enabled:!1},pdf:{annotationLayer:!1},pageTextureSize:2048,pageTextureSizeSmall:1500,thumbTextureSize:300,pageTextureSizeMobile:1500,pageTextureSizeMobileSmall:1024,viewMode:"webgl",singlePageMode:!1,singlePageModeIfMobile:!1,zoomMin:.95,zoomMin2:.15,zoomMax2:null,zoomSize:null,zoomStep:2,zoomTime:300,zoomReset:!1,zoomResetTime:300,wheelDisabledNotFullscreen:!1,arrowsDisabledNotFullscreen:!1,arrowsAlwaysEnabledForNavigation:!0,responsiveView:!0,responsiveViewRatio:1,responsiveViewTreshold:768,responsiveContainer:!0,minPixelRatio:1,pageFlipDuration:1,contentOnStart:!1,thumbnailsOnStart:!1,searchOnStart:!1,sideMenuOverBook:!0,sideMenuOverMenu:!1,sideMenuOverMenu2:!0,sideMenuPosition:"left",lightBox:!1,lightBoxOpened:!1,lightBoxFullscreen:!1,lightboxCloseOnClick:!1,lightboxResetOnOpen:!0,lightboxBackgroun
1d:null,lightboxBackgroundColor:null,lightboxBackgroundPattern:null,lightboxBackgroundImage:null,lightboxStartPage:null,lightboxMarginV:"0",lightboxMarginH:"0",lightboxCSS:"",lightboxPreload:!1,lightboxShowMenu:!1,lightboxCloseOnBack:!0,disableImageResize:!0,pan:0,panMax:10,panMax2:2,panMin:-10,panMin2:-2,tilt:0,tiltMax:0,tiltMax2:0,tiltMin:0,tiltMin2:-5,rotateCameraOnMouseMove:!1,rotateCameraOnMouseDrag:!0,lights:!0,lightColor:16777215,lightPositionX:0,lightPositionZ:1400,lightPositionY:350,lightIntensity:.6,shadows:!0,shadowMapSize:1024,shadowOpacity:.2,shadowDistance:0,pageRoughness:1,pageMetalness:0,pageHardness:2,coverHardness:2,pageSegmentsW:10,pageSegmentsH:1,pageMiddleShadowSize:2,pageMiddleShadowColorL:"#999999",pageMiddleShadowColorR:"#777777",antialias:!1,preloaderText:"",fillPreloader:{enabled:!1,imgEmpty:"images/logo_light.png",imgFull:"images/logo_dark.png"},logoImg:"",logoUrl:"",logoCSS:"position:absolute;",logoHideOnMobile:!1,printMenu:!0,downloadMenu:!0,cover:!0,backCover:!0,pdfTextLayer:!0,annotationLayer:!0,googleAnalyticsTrackingCode:null,minimumAndroidVersion:6,linkColor:"rgba(0, 0, 0, 0)",linkColorHover:"rgba(255, 255, 0, 1)",linkOpacity:.4,linkTarget:"_blank",rightClickEnabled:!0,pageNumberOffset:0,flipSound:!0,backgroundMusic:!1,doubleClickZoomDisabled:!1,pageDragDisabled:!1,pageClickAreaWdith:"10%",noteTypes:[{id:1,title:"User",color:"green",enabled:!0},{id:2,title:"Group",color:"yellow",enabled:!0},{id:3,title:"Admin",color:"blue",enabled:!0}],pageRangeStart:null,pageRangeEnd:null,previewMode:{},strings:{print:"Print",printLeftPage:"Print left page",printRightPage:"Print right page",printCurrentPage:"Print current page",printAllPages:"Print all pages",download:"Download",downloadLeftPage:"Download left page",downloadRightPage:"Download right page",downloadCurrentPage:"Download current page",downloadAllPages:"Download all pages",bookmarks:"Bookmarks",bookmarkLeftPage:"Bookmark left page",bookmarkRightPage:"Bookmark right page",bookmarkCurrentPage:"Bookmark current page",search:"Search",findInDocument:"Find in document",pagesFoundContaining:"pages found containing",noMatches:"No matches",matchesFound:"matches found",page:"Page",matches:"matches",thumbnails:"Thumbnails",tableOfContent:"Table of Contents",share:"Share",notes:"Notes",pressEscToClose:"Press ESC to close",password:"Password",addNote:"Add note",typeInYourNote:"Type in your note..."},mobile:{shadows:!1,pageSegmentsW:5}},FLIPBOOK.Main=function(e,i){var n=this;this.elem=i,this.$elem=jQuery(i),this.$body=jQuery("body"),this.body=this.$body[0],this.$window=jQuery(t),this.bodyHasVerticalScrollbar=function(){return n.body.scrollHeight>t.innerHeight},this.isZoomed=function(){return n.zoom>1},this.options={};var s,a=o.createElement("div").style,r=function(){for(var e="t,webkitT,MozT,msT,OT".split(","),t=0,o=e.length;t<o;t++)if(e[t]+"ransform"in a)return e[t].substr(0,e[t].length-1);return!1}(),l=/android/gi.test(navigator.appVersion),h=(s="perspective",(""===r?s:r+(s=s.charAt(0).toUpperCase()+s.substr(1)))in a);this.isAndroid=l,this.has3d=h,void 0===FLIPBOOK.hasWebGl&&(FLIPBOOK.hasWebGl=function(){const e=o.createElement("canvas");return(e.getContext("webgl")||e.getContext("experimental-webgl"))instanceof WebGLRenderingContext}()),this.hasWebGl=FLIPBOOK.hasWebGl,this.thumbsShowing=!1,this.bookmarkShowing=!1,this.searchingString=!1,this.tocShowing=!1,this.menuShowing=!0,this.fullscreenActive=!1;var p={2:{currentPage:{vAlign:"bottom",hAlign:"center"},btnAutoplay:{hAlign:"left"},btnSound:{hAlign:"left"},btnExpand:{hAlign:"right"},btnZoomIn:{hAlign:"right"},btnZoomOut:{hAlign:"right"},btnSearch:{hAlign:"left"},btnBookmark:{hAlign:"left"},btnToc:{hAlign:"left"},btnThumbs:{hAlign:"left"},btnShare:{hAlign:"right"},btnPrint:{hAlign:"right"},btnDownloadPages:{hAlign:"right"},btnDownloadPdf:{hAlign:"right"},btnSelect:{hAlign:"right"}},3:{menuTransparent:!0,menu2Transparent:!1,menu2OverBook:!1,menu2Padding:5,btnMargin:5,currentPage:{vAlign:"top",hAlign:"center"},btnPrint:{vAlign:"top",hAlign:"right"},btnDownloadPdf:{vAlign:"top",hAlign:"right"},btnDownloadPages:{vAlign:"top",hAlign:"right"},btnThumbs:{vAlign:"top",hAlign:"left"},btnToc:{vAlign:"top",hAlign:"left"},btnBookmark:{vAlign:"top",hAlign:"left"},btnSearch:{vAlign:"top",hAlign:"left"},btnSelect:{vAlign:"top",hAlign:"right"},btnShare:{vAlign:"top",hAlign:"right"},btnAutoplay:{hAlign:"right"},btnExpand:{hAlign:"right"},btnZoomIn:{hAlign:"right"},btnZoomOut:{hAlign:"right"},btnSound:{hAlign:"right"},menuPadding:5},4:{menu2Transparent:!1,menu2OverBook:!1,sideMenuOverMenu2:!1,currentPage:{vAlign:"top",hAlign:"center"},btnAutoplay:{vAlign:"top",hAlign:"left"},btnSound:{vAlign:"top",hAlign:"left"},btnExpand:{vAlign:"top",hAlign:"right"},btnZoomIn:{vAlign:"top",hAlign:"right"},btnZoomOut:{vAlign:"top",hAlign:"right"},btnSearch:{vAlign:"top",hAlign:"left"},btnBookmark:{vAlign:"top",hAlign:"left"},btnToc:{vAlign:"top",hAlign:"left"},btnThumbs:{vAlign:"top",hAlign:"left"},btnShare:{vAlign:"top",hAlign:"right"},btnPrint:{vAlign:"top",hAlign:"right"},btnDownloadPages:{vAlign:"top",hAlign:"right"},btnDownloadPdf:{vAlign:"top",hAlign:"right"},btnSelect:{vAlign:"top",hAlign:"right"}}}
1,d={dark:{skinColor:"#EEE",btnColorHover:"#FFF",skinBackground:"#313538"},light:{skinColor:"#222",btnColorHover:"#000",skinBackground:"#FFF",floatingBtnColor:"#FFF",floatingBtnBackground:"#00000055"},gradient:{skinColor:"#EEE",btnColor:"#EEE",btnColorHover:"#FFF",skinBackground:"#313538DD",menuOverBook:!0,menu2OverBook:!0,sideMenuOverMenu:!0,sideMenuOverMenu2:!0,menuBackground:"linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%)",menu2Background:"linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, transparent 100%)"}};for(var c in d)e.skin==c&&(e=jQuery.extend(!0,{},d[c],e));for(var c in p)Number(e.layout)===Number(c)&&(e=jQuery.extend(!0,{},p[c],e));this.options=jQuery.extend(!0,{},jQuery.fn.flipBook.options,e);var g,u,b=this.options;if(b.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform),b.isMobile)for(var c in b.mobile)b[c]=b.mobile[c];if(this.strings=b.strings,b.pageShininess=b.pageShininess/2,this.s=0,b.googleAnalyticsTrackingCode)if(this.gaCode=b.googleAnalyticsTrackingCode,this.gaCode.includes("UA-"))t.ga||function(e,t,o,i,n,s,a){e.GoogleAnalyticsObject=n,e[n]=e[n]||function(){(e[n].q=e[n].q||[]).push(arguments)},e[n].l=1*new Date,s=t.createElement(o),a=t.getElementsByTagName(o)[0],s.async=1,s.src="https://www.google-analytics.com/analytics.js",a.parentNode.insertBefore(s,a)}(t,o,"script",0,"ga"),ga("create",this.gaCode,"auto");else if(this.gaCode.includes("G-")||this.gaCode.includes("AW-")){var m=o.createElement("script");m.setAttribute("src","https://www.googletagmanager.com/gtag/js?id="+this.gaCode);const e=this;m.async=1,m.onload=function(){function o(){dataLayer.push(arguments)}t.dataLayer=t.dataLayer||[],o("js",new Date),o("config",e.gaCode)},o.body.appendChild(m)}if(b.isMobile&&(b.singlePageMode=!!b.singlePageModeIfMobile||b.singlePageMode,b.viewModeMobile&&(b.viewMode=b.viewModeMobile),b.pageTextureSizeMobile&&(b.pageTextureSize=b.pageTextureSizeMobile),b.pageTextureSizeMobileSmall&&(b.pageTextureSizeSmall=b.pageTextureSizeMobileSmall)),"3dSinglePage"==b.viewMode&&(b.singlePageMode=!0),"2dSinglePage"==b.viewMode&&(b.singlePageMode=!0,b.viewMode="2d"),b.singlePageMode&&("2d"!=b.viewMode&&"swipe"!=b.viewMode&&(b.viewMode="3d"),b.rightToLeft&&(b.viewMode="swipe"),b.cover=!0),b.singlePageMode&&"3d"==b.viewMode&&(b.rightToLeft=!1),"simple"==b.viewMode&&(b.viewMode="3d",b.instantFlip=!0),b.cover||(b.responsiveView=!1),b.sideMenuPosition=b.rightToLeft?"right":"left","webgl"==b.viewMode&&(!this.hasWebGl||parseFloat(!!(u=(g=(g||navigator.userAgent).toLowerCase()).match(/android\s([0-9\.]*)/))&&u[1])<b.minimumAndroidVersion&&this.isAndroid)&&(b.viewMode="3d"),"3d"!=b.viewMode||n.has3d||(b.viewMode="2d"),this.webgl="webgl"==b.viewMode,b.menuFloating&&(b.menuOverBook=!0,b.sideMenuOverMenu=!0),b.menu2Floating&&(b.menu2OverBook=!0,b.sideMenuOverMenu2=!0),b.menuTransparent&&(b.menuOverBook=!0,b.sideMenuOverMenu=!0,b.menuBackground="none"),b.menu2Transparent?(b.menu2OverBook=!0,b.sideMenuOverMenu2=!0,b.menu2Background="none"):b.sideMenuOverMenu2=!1,b.menuOverBook&&(b.sideMenuOverMenu=!0),b.menu2OverBook&&(b.sideMenuOverMenu2=!0),b.isMobile&&b.pdfBrowserViewerIfMobile&&b.pdfUrl)return void(b.lightBox&&!b.lightBoxOpened?this.$elem.on("touched click",(function(){f()})).css("cursor","pointer"):f());if(b.isIE&&b.pdfBrowserViewerIfIE&&b.pdfUrl)return void(b.lightBox&&!b.lightBoxOpened?this.$elem.on("touched click",(function(){f()})).css("cursor","pointer"):f());function f(){b.pdfBrowserViewerFullscreen?t.open(b.pdfUrl,b.pdfBrowserViewerFullscreenTarget):jQuery('<object type="application/pdf"/>').width("100%").height("100%").attr("data",b.pdfUrl).appendTo(n.$elem)}async function v(){if(!n.disposed){var e=t.location.hash,o=n.getPageFromHash();b.cover||o++;var i=o;o<1?o=1:n.numPages&&o>n.numPages&&(o=n.numPages),o&&(o=b.rightToLeft&&b.pages&&b.pages.length?b.pages.length-o+1:o,n.started?n.Book&&(n.lightbox&&!FLIPBOOK.lightboxOpened&&(n.lightbox.openLightbox(),await n.lightboxStart()),n.goToPage(o,-1==e.indexOf("flip"))):(b.startPage=i,b.lightBox&&(k(),b.lightBoxFullscreen&&setTimeout((function(){n.toggleExpand()}),100))))}}function k(){if(!n.initStarted)if(n.initStarted=!0,b.fillPreloader.enabled){n.$fillPreloader=jQuery("<div>").addClass("flipbook-fillPreloader");var e=new Image;e.src=b.fillPreloader.imgEmpty,e.onload=function(){var t=new Image;t.src=b.fillPreloader.imgFull,t.onload=function(){jQuery(e).appendTo(n.$fillPreloader),n.$fillPreloaderImg=jQuery(t).appendTo(n.$fillPreloader),n.$fillPreloader.appendTo(n.wrapper),w()}}}else w()}function w(){n.initialized||(n.id=Date.now(),n.addPageItems(),b.pdfMode?n.initPdf():n.initJpg(),n.setLoa
1dingProgress(.1),n.initialized=!0)}b.pdfMode=Boolean(b.pdfUrl&&""!=b.pdfUrl)||b.pdfBase64,b.backgroundTransparent&&(b.backgroundColor="none"),this.wrapper=jQuery(o.createElement("div")).addClass("flipbook-main-wrapper"),""!=b.backgroundColor&&this.wrapper.css("background",b.backgroundColor),""!=b.backgroundPattern&&this.wrapper.css("background","url("+b.backgroundPattern+") repeat"),""!=b.backgroundImage&&(this.wrapper.css("background","url("+b.backgroundImage+") no-repeat"),this.wrapper.css("background-size","cover"),this.wrapper.css("background-position","center center")),this.bookLayer=jQuery(o.createElement("div")).addClass("flipbook-bookLayer").appendTo(n.wrapper),b.rightClickEnabled||this.bookLayer.bind("contextmenu",(function(e){return!1})),b.hideMenu&&(this.bookLayer.css("bottom","0"),b.menuOverBook=!0),b.pagesOriginal=JSON.parse(JSON.stringify(b.pages)),this.book=jQuery(o.createElement("div")).addClass("book").appendTo(n.bookLayer),b.preloader?this.preloader=b.preloader:!jQuery(".flipbook-preloader").length&&b.lightBox?this.preloader=jQuery('<div class="flipbook-preloader cssload-container"><div class="cssload-speeding-wheel"></div><div class="flipbook-loading-text">'+b.preloaderText+'</div><div class="flipbook-loading-bg"></div></div>'):b.lightBox?this.preloader=jQuery(".flipbook-preloader"):this.preloader=jQuery('<div class="flipbook-preloader-2 cssload-container"><div class="cssload-speeding-wheel"></div><div class="flipbook-loading-text">'+b.preloaderText+'</div><div class="flipbook-loading-bg"></div></div>'),this.setLoadingProgress(0),this.dispose=function(){this.disposed=!0},b.main=this,this._events={},this.on=function(e,t){this._events[e]||(this._events[e]=[]),this._events[e].push(t)},this.off=function(e,t){if(this._events[e]){var o=this._events[e].indexOf(t);o>-1&&this._events[e].splice(o,1)}},this.trigger=function(e){if(this._events[e]){var t=0,o=this._events[e].length;if(o)for(;t<o;t++)this._events[e][t].apply(this,[].slice.call(arguments,1))}},this.on("textlayerrendered",(function(e){n.searchingString&&n.mark(n.searchingString,!0)})),this.on("pageLoaded",(function(e){b.pages[e.index]=b.pages[e.index]||{},b.pages[e.index].canvas=b.pages[e.index].canvas||{},b.pages[e.index].images=b.pages[e.index].images||{},b.pages[e.index].images[e.size]=e.images,n.searchingString&&n.mark(n.searchingString,!0)})),this.addPageNotes=function(e){this.noteService&&this.noteService.initPageNotes(e)},this.on("pdfinit",(function(){b.tableOfContent=n.pdfService.outline||b.tableOfContent,b.doublePage=n.pdfService.double,b.doublePage||(b.backCover=n.pdfService.numPages%2==0,b.cover||(b.backCover=!b.backCover)),n.viewportOriginal=n.pdfService.viewports[0],b.firstPage={width:n.pdfService.viewports[0].width,height:n.pdfService.viewports[0].height,ratio:n.pdfService.viewports[0].width/n.pdfService.viewports[0].height},n.pdfService.numPages>1&&(b.secondPage={width:n.pdfService.viewports[1].width,height:n.pdfService.viewports[1].height,ratio:n.pdfService.viewports[1].width/n.pdfService.viewports[1].height}),b.numPages=n.pdfService.numPages,b.previewPages&&(b.numPages=b.previewPages),1==b.numPages&&(b.viewMode="swipe",b.singlePageMode=!0,b.btnNext.enabled=!1,b.btnPrev.enabled=!1,b.btnFirst.enabled=!1,b.btnLast.enabled=!1,b.sideNavigationButtons=!1,b.btnAutoplay.enabled=!1,b.printMenu=!1,b.downloadMenu=!1,n.webgl=!1,b.rightToLeft=!1);for(var e=[],t=b.pageTextureSize,o=0;o<b.numPages;o++){var i={canvas:{}};b.pages&&b.pages[o]&&jQuery.extend(i,b.pages[o]),e[o]=i}b.pages=e,b.pageWidth=parseInt(t*n.viewportOriginal.width/n.viewportOriginal.height),b.pageHeight=t,b.pw=b.pageWidth,b.ph=b.pageHeight,b.zoomSize=b.zoomSize||b.pageTextureSize,n.start()})),this.on("toolSelect",(function(){n.bookLayer.removeClass("flipbook-move"),n.btnSelect&&n.btnSelect.addClass("flipbook-btn-active"),n.bookLayer.removeClass("flipbook-disable-text-selection")})),this.on("toolMove",(function(){n.bookLayer.addClass("flipbook-move"),n.btnSelect&&n.btnSelect.removeClass("flipbook-btn-active"),n.bookLayer.addClass("flipbook-disable-text-selection")})),FLIPBOOK.flipbookSrc=FLIPBOOK.flipbookSrc||this.options.flipbookSrc||function(){for(var e=o.getElementsByTagName("script"),t=0;t<e.length;t++){var i=String(e[t].src);if(i.match("flipbook\\.js")||i.match("flipbook\\.min\\.js"))return i;if(i.match("flipbook\\.lite\\.js")||i.match("flipbook\\.lite\\.min\\.js"))return i.replace(".lite","")}return""}();const P=FLIPBOOK.flipbookSrc.includes("flipbook.min.js"),y=P?"flipbook.min.js":"flipbook.js",x=P?".min":"";[{key:"iscrollSrc",value:"libs/iscroll"},{key:"threejsSrc",value:"libs/three"},{key:"flipbookWebGlSrc",value:"flipbook.webgl"},{key:"flipbookBook3Src",value:"flipbook.book3"},{key:"flipBookSwipeSrc",value:"flipbook.swipe"},{key:"flipBookScrollSrc",value:"flipbook.scroll"},{key:"pdfjsSrc",value:"libs/pdf"},{key:"pdfServiceSrc",value:"flipbook.pdfservice"},{key:"pdfjsworkerSrc",value:"libs/pdf.worker"},{key:"markSrc",value:"libs/mark"}
1].forEach((e=>{FLIPBOOK[e.key]=FLIPBOOK.flipbookSrc.replace(y,e.value+x+".js")})),!b.deeplinkingPrefix&&b.deeplinking&&b.deeplinking.prefix&&(b.deeplinkingPrefix=b.deeplinking.prefix),b.deeplinkingEnabled=b.deeplinkingPrefix||b.deeplinkingEnabled||b.deeplinking&&b.deeplinking.enabled,b.deeplinkingEnabled&&(v(),t.addEventListener("hashchange",v)),b.lightBox?(b.btnClose.enabled=!0,this.lightbox=new FLIPBOOK.Lightbox(this,this.wrapper,b),this.lightboxStartedTimes=0,this.wrapper.css("background","none"),this.bookLayer.css("background","none"),this.book.css("background","none"),this.preloader.appendTo(this.$body).css("position","fixed"),this.$elem.css("cursor","pointer").bind("click",(async function(e){e.preventDefault(),n.lightboxStartPage=jQuery(this).attr("data-page"),n.started?(await n.lightboxStart(),b.lightBoxFullscreen&&setTimeout((async function(){n.toggleExpand()}),0)):(k(),b.lightBoxFullscreen&&setTimeout((async function(){n.toggleExpand()}),100))})),b.lightBoxOpened?(k(),jQuery(t).trigger("r3d-lightboxloadingstarted")):b.lightboxPreload&&async function(){var e=[];b.pdfMode&&(void 0===FLIPBOOK.PdfService&&e.push(n.loadScript(FLIPBOOK.pdfServiceSrc)),"undefined"==typeof pdfjsLib&&e.push(n.loadScript(FLIPBOOK.pdfjsSrc)),void 0===FLIPBOOK.PdfService&&e.push(n.loadScript(FLIPBOOK.pdfServiceSrc)),(b.btnSearch.enabled||b.btnNotes.enabled||b.search.enabled)&&e.push(n.loadScript(FLIPBOOK.markSrc))),"webgl"==b.viewMode?"undefined"==typeof THREE&&await n.loadScript(FLIPBOOK.threejsSrc):"undefined"==typeof IScroll&&e.push(n.loadScript(FLIPBOOK.iscrollSrc)),await Promise.all(e)}(),this.fullscreenElement=o.documentElement):(b.btnClose.enabled=!1,this.preloader.appendTo(this.wrapper),this.wrapper.appendTo(this.$elem),this.fullscreenElement=this.$elem[0],new IntersectionObserver((e=>{e[0].isIntersecting?n.Book?n.Book.enable():k():n.Book&&n.Book.disable()})).observe(this.wrapper[0]))},FLIPBOOK.Main.prototype={start:async function(){if(this.options.dp&&(this.options.doublePage=!0),this.started)return;this.pageW=this.options.pageWidth,this.bookW=2*this.options.pageWidth,this.options.singlePageMode&&(this.bookW/=2),this.pageH=this.options.pageHeight,this.bookH=this.options.pageHeight,this.options.numPages%2==0?this.options.numSheets=(this.options.numPages+2)/2:this.options.numSheets=(this.options.numPages+1)/2,this.started=!0,this.options.lightBox&&(this.lightbox.openLightbox(),await this.lightboxStart());const e=this.options.pageClickAreaWdith,t=this.options.pages.length,o=this.options.doublePage,i=this.options.singlePageMode,n="webgl"==this.options.viewMode;this.options.pages.hasHtmlContent=!!this.options.pages&&this.options.pages.some((e=>!!e.htmlContent));var s=this.options.rightToLeft;function a(e){e.htmlContent+='<a href="#" draggable="false" class="internalLink pageClickArea pageClickAreaLeft" data-page="prev"></a>'}function r(e){e.htmlContent+='<a href="#" draggable="false" class="internalLink pageClickArea pageClickAreaRight" data-page="next"></a>'}!e||!n&&o||this.options.pages.forEach((function(e,o){e.htmlContent=e.htmlContent||"",i?(o>0&&(s?a(e):r(e)),o<t-1&&(s?r(e):a(e))):o%2==0?s?a(e):r(e):s?r(e):a(e)})),await this.createBook(),this.createTooltip(),this.options.btnNotes.enabled&&this.initNotes(),this.updateSkinColors()},updateSkinColors:function(){var e=this.options;e.skinColor&&this.wrapper.find(".skin-color").css("color",e.skinColor),e.skinBackground&&this.wrapper.find(".skin-color-bg").css("background",e.skinBackground)},lightboxStart:async function(){var e=this;this.started||await this.start(),void 0!==this.Book?(this.Book.enable(),this.backgroundMusic&&this.backgroundMusic.pause(),this.lightboxStartPage?this.goToPage(this.lightboxStartPage,!0):this.options.lightboxStartPage&&this.goToPage(this.options.lightboxStartPage,!0),this.lightboxStartedTimes++,this.sendGAEvent({event:"flipbook_lightbox_open",book_name:this.options.name,nonInteraction:!0}),this.updateCurrentPage(),this.initColors(),this.resize()):setTimeout((function(){e.lightboxStart()}),100)},setHash:function(e){e<1&&(e=1),"#"+this.options.deeplinkingPrefix+e!=t.location.hash&&this.options.deeplinkingEnabled&&this.Book.enabled&&this.hash!=e&&(t.location.hash="#"+this.options.deeplinkingPrefix+String(e),this.hash=e)},clearHash:function(){var e,i,n=t.location;"pushState"in history?history.pushState("",o.title,n.pathname+n.search):(e=o.body.scrollTop,i=o.body.scrollLeft,n.hash="",o.body.scrollTop=e,o.body.scrollLeft=i)},getPageFromHash:function(){var e,o=t.location.hash,i="#"+this.options.deeplinkingPrefix;return-1!==o.indexOf(i)&&(e=parseInt(t.location.hash.replace(/#/g,"").replace(this.options.deeplinkingPrefix,""))),e}
1,sendGAEvent:function(e){this.gaCode&&(this.gaCode.includes("UA-")?ga("send",{hitType:"event",eventCategory:e.event,eventAction:e.action,eventLabel:e.label,eventValue:e.value,nonInteraction:!0}):(t.dataLayer=t.dataLayer||[],function(){dataLayer.push(arguments)}("event",e.event,{book_name:e.book_name,page_number:e.page_number,non_interaction:e.nonInteraction,url:e.url})))},initColors:function(){this.wrapper.find(".skin-color-bg").removeClass("flipbook-bg-light").removeClass("flipbook-bg-dark").addClass("flipbook-bg-"+this.options.skin),this.wrapper.find(".skin-color").removeClass("flipbook-color-light").removeClass("flipbook-color-dark").addClass("flipbook-color-"+this.options.skin),this.updateSkinColors()},lightboxEnd:function(){o.fullscreenElement&&this.toggleExpand(),t.location.hash&&this.clearHash(),this.setLoadingProgress(1),this.Book&&this.Book.disable(),this.pauseMediaPlayback(),this.backgroundMusic&&this.backgroundMusic.pause()},pauseMediaPlayback:function(){this.wrapper[0].querySelectorAll(".flipbook-page-item").forEach((function(e){"VIDEO"!=e.nodeName&&"AUDIO"!=e.nodeName||e.pause()})),this.pageAudioPlayer&&this.pageAudioPlayer.pause()},turnPageStart:function(){this.playFlipSound(),this.pauseMediaPlayback()},turnPageComplete:function(){this.animating=!1,this.updateCurrentPage();var e=this.Book.rightIndex||0;this.options.rightToLeft&&(e=this.options.pages.length-e),this.trigger("turnpagecomplete",{rightIndex:e}),this.options.zoomReset&&this.Book.zoomTo(this.options.zoomMin)},updateCurrentPage:function(){var e,o=this.options.rightToLeft,i=this.options.numPages,n=i-this.options.pageNumberOffset,s=this.Book.rightIndex||0;s%2==1&&s++,o&&(s=this.options.pages.length-s);let a=this.options.cover?s:s-1;if(this.options.singlePageMode||this.Book.singlePage||1==this.Book.view?(this.Book.getCurrentPageNumber?e=this.Book.getCurrentPageNumber():(o&&s--,e=s+1),this.setHash(e),this.cPage=[e-1]):(a>i||a==i&&i%2==0?(e=i,this.cPage=[i-1]):a<1?(e=1,this.cPage=[0]):(e=String(a)+"-"+String(a+1),this.cPage=[a-1,a]),this.setHash(a)),o?(this.enableNext(a>0),this.enablePrev(this.Book.canFlipPrev()||s<i-1)):(this.enablePrev(a>0),this.enableNext(this.Book.canFlipNext()||s<i-1)),2==this.cPage.length?(this.wrapper.find(".c-l-p").show(),this.wrapper.find(".c-r-p").show(),this.wrapper.find(".c-p").hide()):(this.wrapper.find(".c-l-p").hide(),this.wrapper.find(".c-r-p").hide(),this.wrapper.find(".c-p").show()),void 0!==this.currentPage&&(this.s&&this.options.pdfPageScale>0&&this.goToPage(0),e!=this.currentPageValue)){this.currentPageValue=String(e);var r=Number(String(e).split("-")[0]),l=Number(String(e).split("-")[1]);r&&this.options.pages[Number(r-1)]&&this.options.pages[Number(r-1)].name&&(r=this.options.pages[Number(r-1)].name),l&&this.options.pages[Number(l-1)]&&this.options.pages[Number(l-1)].name&&(l=this.options.pages[Number(l-1)].name),e=r&&l?r+"-"+l:r||l||1,this.currentPage.text(e+" / "+String(n)),this.currentPageInput.width(this.currentPageHolder.width()),this.resize(),jQuery(this).trigger({type:"pagechange",page:this.currentPageValue,name:this.options.name}),jQuery(t).trigger({type:"r3d-pagechange",page:this.currentPageValue,name:this.options.name}),this.sendGAEvent({event:"flipbook_page_view",book_name:this.options.name,page_number:this.currentPageValue,nonInteraction:!0}),this.flippingPage=!1}},initJpg:function(){var e=this;if(this.options.previewPages&&(this.options.pages=this.options.pages.splice(0,this.options.previewPages)),this.options.pageRangeStart||this.options.pageRangeEnd){const e=this.options.pageRangeStart||1,t=this.options.pageRangeEnd||this.options.pages.length;this.options.pages=this.options.pages.splice(e-1,t-e+1)}var t=0,o=1;this.options.cover||(t=1,o=2),this.loadPage(t,this.options.pageTextureSize,(function(){e.setLoadingProgress(.5);var t=e.options;if(1==t.pages.length){t.numPages=1;var i=t.pages[0].img;t.pw=i.width,t.ph=i.height,t.pageWidth=i.width,t.pageHeight=i.height,t.pageMode="singlePage",t.doublePage=!1,t.zoomSize=t.zoomSize||i.height,e.setLoadingProgress(.7),t.btnNext.enabled=!1,t.btnPrev.enabled=!1,t.btnFirst.enabled=!1,t.btnLast.enabled=!1,t.sideNavigationButtons=!1,t.btnAutoplay.enabled=!1,t.singlePageMode=!0,t.rightToLeft=!1,e.start()}else e.loadPage(o,t.pageTextureSize,(function(){var o=t.pages[0].img,i=t.pages[1].img,n=o.width/o.height,s=i.width/i.height;t.pw=o.width,t.ph=o.height,t.pageWidth=o.width,t.pageHeight=o.height,t.doublePage=s/n>1.5,t.doublePage||(t.backCover=t.pages.length%2==0,t.cover||(t.backCover=!t.backCover)),t.zoomSize=t.zoomSize||o.height,e.setLoadingProgress(.7),e.start()}))}))},initPdf:async function(){var e=[];
1if(!this.started){var o=this;"undefined"==typeof pdfjsLib&&e.push(o.loadScript(FLIPBOOK.pdfjsSrc)),this.setLoadingProgress(.2),void 0===FLIPBOOK.PdfService&&e.push(o.loadScript(FLIPBOOK.pdfServiceSrc)),await Promise.all(e),this.setLoadingProgress(.3),t.CanvasPixelArray&&(t.CanvasPixelArray.prototype.set=function(e){for(var t=this.length,o=0;o<t;o++)this[o]=e[o]}),pdfjsLib.GlobalWorkerOptions.workerSrc=this.options.pdfjsworkerSrc||FLIPBOOK.pdfjsworkerSrc;var i={cMapPacked:!0,cMapUrl:this.options.cMapUrl||"cmaps/",disableRange:this.options.disableRange,disableAutoFetch:this.options.disableAutoFetch,disableStream:this.options.disableStream,rangeChunkSize:1024*Number(o.options.rangeChunkSize)};if(o.options.pdfUrl?(!1!==o.options.matchProtocol&&("https:"==location.protocol?o.options.pdfUrl=o.options.pdfUrl.replace("http://","https://"):"http:"==location.protocol&&(o.options.pdfUrl=o.options.pdfUrl.replace("https://","http://"))),i.url=o.options.pdfUrl):o.options.pdfBase64&&(i.data=atob(o.options.pdfBase64)),this.options.password){var n=prompt("Please enter PDF password","");if(null==n)return this.lightbox&&this.lightbox.closeLightbox(!0),this.setLoadingProgress(1),void(this.pdfinitStarted=!1);i.password=n}this.pdfinitStarted||(this.pdfinitStarted=!0,pdfjsLib.getDocument(i).promise.then((function(e){o.pdfDocument=e,o.pdfService=new FLIPBOOK.PdfService(e,o,o.options),o.options.thumbLoaded=function(e){o.options.thumbs=o.options.thumbs||[],o.options.thumbs[e.index]=e},o.setLoadingProgress(.5),o.pdfService.init()}),(function(e){"PasswordException"==e.name?(o.pdfinitStarted=!1,o.options.password=!0,o.initPdf()):alert(e)})))}},initPageHTML:function(e){const t=this.options.pages[e];t.htmlInitialized||(this.addPageLinks(t),this.addPageNotes(t),t.htmlInitialized=!0)},addPageLinks:function(e){var t=this;const o=e.htmlContent.jquery?e.htmlContent[0]:e.htmlContent;this.pageAudioPlayer=new Audio;var i=o.querySelectorAll("a");i.forEach((function(e){const o=e.classList.contains("internalLink"),n=e.classList.contains("spotlight");o?e.dataset.page&&e.addEventListener("click",(function(o){if(o.preventDefault(),"prev"==e.dataset.page)t.prevPage();else if("next"==e.dataset.page)t.nextPage();else{let o=Number(e.dataset.page);t.options.doublePage&&(o=2*o-1),t.options.rightToLeft&&(o=t.options.pages.length-o+1),t.goToPage(o)}})):n?e.dataset.url&&(e.style.cursor="pointer",e.addEventListener("click",(function(e){e.preventDefault(),t.spotlight(this.dataset.url,this.dataset.title,this.dataset.description)}))):(e.addEventListener("click",(function(o){t.sendGAEvent({event:"flipbook_page_link_click",book_name:t.options.name,page_number:t.currentPageValue,url:this.href,nonInteraction:!0}),e.href.endsWith(".mp3")&&(o.preventDefault(),t.pageAudioPlayer.paused||(t.pageAudioPlayer.pause(),t.pageAudioPlayer.currentTime=0),t.pageAudioPlayer.src=o.target.href,t.pageAudioPlayer.play())})),e.addEventListener("mouseover",(function(e){const t=this;i.forEach((function(e){e.href==t.href&&"#"!=e.href&&e.classList.add("flipbook-page-auto-link-hover")}))})),e.addEventListener("mouseout",(function(e){i.forEach((function(e){e.classList.remove("flipbook-page-auto-link-hover")}))})))})),o.querySelectorAll(".flipbook-page-item-video").forEach((function(e){e.addEventListener("play",(function(){t.sendGAEvent({event:"flipbook_page_video_play",book_name:t.options.name,page_number:t.currentPageValue,url:this.getElementsByTagName("source")[0].src,nonInteraction:!0})}))}))},addPageNames:function(){const e=this.options.pageNumberOffset;this.options.pages.forEach((function(t,o){void 0===t.name&&(t.name=o-e+1,t.name<1&&(t.name=function(e){let t="";return[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}].forEach((function(o){for(;e>=o.value;)t+=o.numeral,e-=o.value})),t}(o+1)))}))},loadPageHTML:function(e,t){var i=this,n=this.options;this.options.cover||e--,this.options.pdfMode?this.options.pages[e]?this.pdfService.loadTextLayer(e,(function(o){i.initPageHTML(e),t.call(i,n.pages[e].htmlContent,e)})):t.call(this,{}):n.pages[e].json?this.loadPageJSON(e,(function(s){var a=n.pages[e]||{};if(!a.htmlContentInitialized){var r=o.createElement("div");r.classList.add("flipbook-page-htmlContent"),r.classList.add("page"+String(e)),r.innerHTML=decodeURIComponent(s.data),a.htmlContent&&jQuery(r).append(jQuery(a.htmlContent)),a.htmlContent=r,i.initPageHTML(e),a.htmlContentInitialized=!0}t.call(i,a.htmlContent,e)})):(this.initPageHTML(e),t.call(this,n.pages[e].htmlContent,e))},loadPageJSON:function(e,t){var o=this.options.pages[e]||{},i=this;if(!1!==i.options.matchProtocol&&("https:"==location.protocol?o.json=o.json.replace("http:","https:"):"http:"==location.protocol&&(o.json=o.json.replace("https:","http:"))),!o.jsonLoading&&!o.jsonLoaded)return o.jsonLoading=!0,void jQuery.getJSON(o.json,(function(e){o.jsonLoaded=!0,o.jsonLoading=!1,t.call(i,e)}));o.jsonLoaded?t.call(i):setTimeout((function(){i.loadPageJSON(e,t)}),100)},loadPage:function(e,t,i){this.options.cover||e--;var n=this,s=this.options.pages&&this.options.pages[e]&&this.options.pages[e].src,a=this.options.pages[e];a?this.options.pdfMode&&!s?this.loadPageFromPdf(e,t,i):t==this.options.thumbTextureSize&&a.thumb?a.thumbImg?a.thumbLoaded?n.pageLoaded({index:e,size:t,image:a.thumb},i):setTimeout((function(){n.loadPage(e,t,i)}),300):(a.thumbImg=o.createElement("img"),a.thumbImg.setAttribute("data-id",e),a.thumbImg.onload=function(){a.thumbLoaded=!0,n.pageLoaded({index:e,size:t,image:a.thumbImg},i)},"webgl"==this.options.viewMode&&(a.thumbImg.crossOrigin="Anonymous"),!1!==n.options.matchProtocol&&("https:"==location.protocol?a.thumb=a.thumb.replace("http://","https://"):"http:"==location.protocol&&(a.thumb=a.thumb.replace("https://","http://"))),a.thumbImg.src=a.thumb):a.img?a.imgLoaded?n.pageLoaded({index:e,size:t,image:a.img},i):setTimeout((function(){n.loadPage(e,t,i)}),300):(a.img=o.createElement("img"),a.img.setAttribute("data-id",e),a.img.onload=function(){a.imgLoaded=!0,n.pageLoaded({index:e,size:t,image:a.img},i)},"webgl"==this.options.viewMode&&(a.img.crossOrigin="Anonymous"),!1!==n.options.matchProtocol&&("https:"==location.protocol?a.src=a.src.replace("http://","https://"):"http:"==location.protocol&&(a.src=a.src.replace("https://","http://"))),a.img.src=a.src):i.call(this)},pageLoaded:function(e,t){t.call(this,e,t),this.options.loadAllPages&&e.index<this.options.numPages-1&&this.loadPage(e.index+1,e.size,(function(){})),this.searchingString&&this.mark(this.searchingString,!0)},loadPageFromPdf:function(e,t,o){t=t||this.options.pageTextureSize,this.pdfService.renderBookPage(e,t,o)},getString:function(e){return this.options.strings[e]},mark:function(e,t){(e!=this.markedStr||t)&&(this.markedStr=e,this.options.pages.forEac
1h((function(t){var o=jQuery(t.htmlContent).find(".flipbook-textLayer");if(t.marked!=e&&o.length){t.marked=e;var i=new Mark(o[0]);i.unmark({className:"mark-search",done:function(){i.mark(e,{acrossElements:!0,separateWordSearch:!1,className:"mark-blue mark-search"})}})}})))},unmark:function(){this.searchingString=null,this.markedStr=null,this.options.pages.forEach((function(e){if(e.marked){e.marked=null;var t=jQuery(e.htmlContent);new Mark(t[0]).unmark({className:"mark-search"})}}))},setTool:function(e){this.tool=e,this.trigger(e)},toggleTool:function(){var e="toolSelect"==this.tool?"toolMove":"toolSelect";this.setTool(e)},toggleSound:function(){var e=this.options;e.sound=!e.sound,this.backgroundMusic&&(e.sound?this.backgroundMusic.play():this.backgroundMusic.pause()),this.toggleIcon(this.btnSound,e.sound)},toggleIcon:function(e,t){if(e.$iconAlt)t?(e.$iconAlt.hide(),e.$icon.show()):(e.$iconAlt.show(),e.$icon.hide());else{var o=t?e.iconAlt:e.icon,i=t?e.icon:e.iconAlt;e.find("."+o).removeClass(o).addClass(i)}},scrollPageIntoView:function(e){let t=e.pageNumber;this.options.doublePage&&(t=2*t-1),this.options.rightToLeft&&(t=this.options.pages.length-t+1),this.goToPage(t)},loadScript:function(e){return new Promise((function(t,n){var s=o.createElement("script"),a=o.getElementsByTagName("script")[0];s.async=!0,s.src=e,s.onload=s.onreadystatechange=function(e,o){(o||!s.readyState||/loaded|complete/.test(s.readyState))&&(s.onload=s.onreadystatechange=null,s=i,o||t())},s.onerror=function(e){n(e,s)},a.parentNode.insertBefore(s,a)}))},createBook:async function(){var e=this,t=this.options,o=[];if(this.options.searchOnStart&&(this.options.btnSearch.enabled=!0),(this.options.btnSearch.enabled||this.options.btnNotes.enabled||this.options.search.enabled)&&o.push(this.loadScript(FLIPBOOK.markSrc)),this.setLoadingProgress(.9),"webgl"==this.options.viewMode?("undefined"==typeof THREE&&await this.loadScript(FLIPBOOK.threejsSrc),void 0===FLIPBOOK.BookWebGL&&o.push(this.loadScript(FLIPBOOK.flipbookWebGlSrc))):"swipe"==this.options.viewMode?("undefined"==typeof IScroll&&o.push(this.loadScript(FLIPBOOK.iscrollSrc)),void 0===FLIPBOOK.BookSwipe&&o.push(this.loadScript(FLIPBOOK.flipBookSwipeSrc))):"scroll"==this.options.viewMode?("undefined"==typeof IScroll&&o.push(this.loadScript(FLIPBOOK.iscrollSrc)),void 0===FLIPBOOK.BookScroll&&o.push(this.loadScript(FLIPBOOK.flipBookScrollSrc))):("undefined"==typeof IScroll&&o.push(this.loadScript(FLIPBOOK.iscrollSrc)),void 0===FLIPBOOK.Book3&&o.push(this.loadScript(FLIPBOOK.flipbookBook3Src))),await Promise.all(o),this.setLoadingProgress(1),this.initEasing(),this.options.doublePage&&this.options.pages.length>2){var i,n,s=this.options.pages[0];s.title=1;for(var a=[s],r=1;r<=this.options.pages.length-2;r++)i={src:(s=this.options.pages[r]).src,thumb:s.thumb,title:2*r,htmlContent:s.htmlContent,json:s.json,side:"left"},n={src:s.src,thumb:s.thumb,title:2*r+1,htmlContent:s.htmlContent,json:s.json,side:"right"},a.push(i),a.push(n);(s=this.options.pages[this.options.pages.length-1]).title=this.options.pages.length,this.options.backCover?a.push(s):(i={src:s.src,thumb:s.thumb,title:2*r,htmlContent:s.htmlContent,json:s.json,side:"left"},n={src:s.src,thumb:s.thumb,title:2*r+1,htmlContent:s.htmlContent,json:s.json,side:"right"},a.push(i),a.push(n)),this.options.pages=a}if(this.addPageNames(),this.options.numPages=this.options.pages.length,this.options.numPages%2==0||this.options.singlePageMode||(this.options.backCover=!1,this.options.cover||(this.options.backCover=!this.options.backCover),this.options.pages.push({src:this.options.assets.preloader,thumb:this.options.assets.preloader,empty:!0})),this.options.pages.length>0&&this.options.pages.forEach((e=>{e.htmlContent=jQuery(`<div class="flipbook-page-htmlContent">${e.htmlContent}</div>`)})),"webgl"==this.options.viewMode){var l=this.options;l.scroll=this.scroll,l.parent=this,this.Book=new FLIPBOOK.BookWebGL(this.book[0],this,l),this.webglMode=!0,this.initSwipe(),this.initSound()}else"swipe"==this.options.viewMode?(this.Book=new FLIPBOOK.BookSwipe(this.book[0],this.bookLayer[0],this,t),this.initSwipe()):"scroll"==this.options.viewMode?(this.options.singlePageMode=!0,this.Book=new FLIPBOOK.BookScroll(this.book[0],this.bookLayer[0],this,t),this.initSwipe()):("2d"!=this.options.viewMode&&(this.options.viewMode="3d"),this.Book=new FLIPBOOK.Book3(this.book[0],this,t),this.initSwipe(),this.webglMode=!1,this.initSound());if(this.resize(),this.Book.enable(),this.book.hide().fadeIn("slow"),this.tocCreated=!1,this.options.tableOfContent.length||this.options.pages&&this.options.pages.some((e=>!!e.title))||(this.options.btnToc.enabled=!1),!this.options.pdfMode){var h=!!this.options.pages&&this.options.pages.some((e=>!!e.json));this.options.hasHtmlContent||h||(this.options.btnSearch.enabled=!1)}this.createMenu(),this.onZoom(this.options.zoomMin),1==this.options.pages.length&&(this.rightToLeft=!1),FLIPBOOK.books=FLIPBOOK.books||{},FLIPBOOK.books[e.id]=e.Book;var p=jQuery(e.Book);p.bind("loadPagesFromPdf",(function(t,o,i,n){e.loadPagesFromPdf(o,i,n)})),p.bind("turnPageComplete",(function(t){e.turnPageComplete()}
1)),p.bind("initEasing",(function(t){e.initEasing()})),p.bind("playFlipSound",(function(t){e.playFlipSound()})),p.bind("closeLightbox",(function(t){e.closeLightbox()})),p.bind("updateCurrentPage",(function(t){e.updateCurrentPage()})),this.createLogo(),this.onBookCreated()},initNotes:function(){this.noteService=new FLIPBOOK.Notes(this);const e=this;t.addEventListener("r3d-update-note-visibility",(function(t){e.options.noteTypes.forEach((function(e){t.detail.id==e.id&&(e.enabled=t.detail.enabled)})),e.noteService.updateNoteVisibility()}))},createTooltip:function(){this.tooltip=new FLIPBOOK.Tooltip,this.wrapper[0].appendChild(this.tooltip.domElement)},showTooltip:function(e){this.tooltip.show(e)},hideTooltip:function(){this.tooltip.hide()},addPageItems:function(){const e=this.options.pages;let t;for(let i in e){let n=e[i];if(n.htmlContent=n.htmlContent||"",n.items)for(let e of n.items){const{autoplay:i=!0,controls:s=!1,loop:a=!0,muted:r=!0,src:l,url:h=l,x:p=0,y:d=0,width:c=100,height:g=100,type:u}=e,b=i?"autoplay":"",m=s?"controls":"",f=a?"loop":"",v=r?"muted":"";switch(u){case"iframe":case"youtube":if(h.includes("<iframe"))n.htmlContent+=`\n\t\t\t\t\t\t\t\t\t\t<div class="flipbook-page-item flipbook-page-item-iframe" \n\t\t\t\t\t\t\t\t\t\tstyle="top:${d}px;left:${p}px;width:${c}px;height:${g}px;">\n\t\t\t\t\t\t\t\t\t\t\t${h}\n\t\t\t\t\t\t\t\t\t\t</div>`;else{const t=e=>e.includes("youtu.be/")?e.replace("youtu.be/","youtube.com/embed/"):e.includes("youtube.com/watch?v=")?e.split("&")[0].replace("/watch?v=","/embed/"):e;e.url=t(h)+"?enablejsapi=1",i&&(e.url+="&autoplay=1&mute=1"),n.htmlContent+=`\n\t\t\t\t\t\t\t\t\t\t<iframe class="flipbook-page-item flipbook-page-item-youtube" src="${e.url}" \n\t\t\t\t\t\t\t\t\t\t\tstyle="top:${d}px;left:${p}px;width:${c}px;height:${g}px;" \n\t\t\t\t\t\t\t\t\t\t\tframeborder="0" allow="accelerometer; autoplay; encrypted-media; \n\t\t\t\t\t\t\t\t\t\t\tgyroscope; picture-in-picture" allowfullscreen></iframe>`}break;case"link":t=o.createElement("a"),t.className="flipbook-page-item flipbook-page-item-link",t.style.cssText=`\n\t\t\t\t\t\t\t\t\twidth:${c}px;height:${g}px;position:absolute;top:${d}px;left:${p}px;`,e.content&&(t.innerHTML=e.content),h?(t.href=h,t.target=e.target||this.options.linkTarget):e.page&&(t.href="#",t.classList.add("internalLink"),t.dataset.page=e.page),n.htmlContent+=t.outerHTML;break;case"spotlight":t=o.createElement("a"),t.className="flipbook-page-item flipbook-page-item-link spotlight",t.style.cssText=`\n\t\t\t\t\t\t\t\t\t\twidth:${c}px;height:${g}px;position:absolute;top:${d}px;left:${p}px;`,t.href="#",t.dataset.url=e.url,e.title&&(t.dataset.title=e.title),e.description&&(t.dataset.description=e.description),n.htmlContent+=t.outerHTML;break;case"image":n.htmlContent+=`\n\t\t\t\t\t\t\t\t\t<img class="flipbook-page-item" src="${h}" \n\t\t\t\t\t\t\t\t\t\tstyle="top:${d}px;left:${p}px;width:${c}px;height:${g}px;"\n\t\t\t\t\t\t\t\t\t>`;break;case"video":n.htmlContent+=`\n\t\t\t\t\t\t\t\t\t<video class="flipbook-page-item flipbook-page-item-video" playsinline \n\t\t\t\t\t\t\t\t\t${f} ${b} ${m} ${v} \n\t\t\t\t\t\t\t\t\tstyle="top:${d}px;left:${p}px;width:${c}px;height:${g}px;"\n\t\t\t\t\t\t\t\t\tdata-url="${h}">\n \t\t\t\t\t<source type="video/mp4">\n \t\t\t</video>`;break;case"audio":n.htmlContent+=`\n\t\t\t\t\t\t\t\t\t<audio ${f} ${b} ${m} \n\t\t\t\t\t\t\t\t\tclass="flipbook-page-item" data-url="${h}"\n\t\t\t\t\t\t\t\t\tstyle="top:${d}px;left:${p}px;width:${c}px;height:${g}px;">\n\t\t\t\t\t\t\t\t\t\t<source type="audio/mpeg">\n\t\t\t\t\t\t\t\t\t</audio>`}}}},spotlight:function(e,t,i){let n=o.querySelector(".flipbook-spotlight-overlay");function s(){const e=n.querySelector("video, iframe");e&&("video"===e.tagName.toLowerCase()?e.pause():e.src=e.src)}if(n){const e=n.querySelector("img, video, iframe");e&&n.removeChild(e)}else{n=o.createElement("div"),n.className="flipbook-spotlight-overlay";const e=o.createElement("button");e.className="flipbook-spotlight-close-button",e.innerHTML='\n\t\t\t\t\t\t<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t\t\t\t\t<path d="M6 6L18 18" stroke="white" stroke-width="2"\n\t\t\t\t\t\t\t stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t\t\t<path d="M6 18L18 6" stroke="white" stroke-width="2"\n\t\t\t\t\t\t\t stroke-linecap="round" stroke-linejoin="round"/>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t',e.onclick=()=>{s(),n.style.display="none"},n.addEventListener("click",(t=>{[n,e].includes(t.target)&&(s(),n.style.display="none")})),n.appendChild(e),this.wrapper[0].appendChild(n)}const a=(e,t)=>{const i=o.createElement(e);for(let e in t)"style"===e?i.style.cssText=t[e]:i[e]=t[e];return i};let r;if(e.endsWith(".mp4"))r=a("video",{src:e,controls:!0,style:"max-width: 80%; max-height: 80%;",className:"flipbook-spotlight-video"});else if(e.includes("youtube.com")||e.includes("youtu.be"))r=a("iframe",{src:(e=>e.includes("youtu.be/")?e.replace("youtu.be/","youtube.com/embed/"):e.includes("youtube.com/watch?v=")?e.split("&")[0].replace("/watch?v=","/embed/"):e)(e)+"?enablejsapi=1&autoplay=1&mute=1",style:"width: 80vw; height: 45vw; max-width: 960px; max-height: 540px;\n\t\t\t\t\t\t min-width: 300px; min-height: 168.75px;",frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullscreen:!0});else{if(!(e.endsWith(".jpg")||e.endsWith(".jpeg")||e.endsWith(".png")||e.endsWith(".gif")||e.endsWith(".bmp")||e.endsWith(".webp")))return;r=a("img",{src:e,style:"max-width: 80%; max-height: 80%;"})}if(n.appendChild(r),n.style.display="flex",t||i){let e=n.querySelector(".flipbook-spotlight-caption-container");e||(e=a("div",{className:"flipbook-spotlight-caption-container"})),n.appendChild(e),e.innerHTML="",t&&(e.innerHTML+='<div class="flipbook-spotlight-title">'+t+"</div>"),i&&(e.innerHTML+='<div class="flipbook-spotlight-description">'+i+"</div>")}},resizeContainer:function(){if(!this.lightbox){var e=this.pageW/this.pageH,o=2*e;let i=this.$elem[0].getBoundingClientRect().width;i<this.options.responsiveViewTreshold?this.$elem[0].style.height=Math.min(t.innerHe
1ight,this.options.containerRatio||i/(this.options.containerRatio||e))+"px":this.$elem[0].style.height=Math.min(t.innerHeight,this.options.containerRatioMobile||i/(this.options.containerRatioMobile||o))+"px"}this.resize()},onBookCreated:function(){var e=this.options,i=this;!e.cover&&Number(e.startPage)<2&&(e.startPage=2);var n=o.documentElement;n.style.setProperty("--flipbook-link-color",this.options.linkColor),n.style.setProperty("--flipbook-link-color-hover",this.options.linkColorHover),n.style.setProperty("--flipbook-link-opacity",this.options.linkOpacity),this.resizeContainer(),new ResizeObserver((e=>{i.resizeContainer()})).observe(this.$elem[0].parentNode),t.addEventListener("resize",(function(e){i.resizeContainer()})),new ResizeObserver((()=>{i.resize()})).observe(this.bookLayer[0]),this.resize(),e.rightToLeft?this.goToPage(Number(e.pages.length-Number(e.startPage)+1),!0):this.goToPage(Number(e.startPage),!0),this.Book.updateVisiblePages(),this.Book.zoomTo(e.zoomMin),this.updateCurrentPage(),this.playBgMusic(),o.addEventListener("keydown",(function(e){if(i.Book.enabled&&(i.options.lightBox||!o.body.classList.contains("flipbook-overflow-hidden"))&&(i.fullscreenActive||!o.body.classList.contains("flipbook-fullscreen"))&&(i.options.arrowsAlwaysEnabledForNavigation&&(37==e.keyCode||39==e.keyCode)||!i.options.lightBox&&!i.fullscreenActive&&(i.options.arrowsDisabledNotFullscreen||i.bodyHasVerticalScrollbar()))){switch((e=e||t.event).keyCode){case 37:i.zoom>1?i.moveBook("left"):i.prevPage();break;case 38:i.zoom>1?i.moveBook("up"):i.nextPage();break;case 39:i.zoom>1?i.moveBook("right"):i.nextPage();break;case 33:i.prevPage();break;case 34:i.nextPage();break;case 36:i.firstPage();break;case 35:i.lastPage();break;case 40:i.zoom>1?i.moveBook("down"):i.prevPage();break;case 107:case 187:i.zoomIn();break;case 109:case 189:i.zoomOut()}return!1}})),o.addEventListener("MSFullscreenChange",(function(e){i.handleFsChange()})),o.addEventListener("mozfullscreenchange",(function(e){i.handleFsChange()})),o.addEventListener("webkitfullscreenchange",(function(e){i.handleFsChange()})),o.addEventListener("fullscreenchange",(function(e){i.handleFsChange()})),e.lightboxCloseOnBack&&(t.onpopstate=function(){i.Book.enabled&&FLIPBOOK.lightboxOpened&&(t.location.hash||i.lightbox.closeLightbox(!0))}),this.bookLayer.bind("DOMMouseScroll",(function(e){if(i.Book.enabled&&(i.options.lightBox||i.fullscreenActive||!i.options.wheelDisabledNotFullscreen&&!i.bodyHasVerticalScrollbar()))return e.stopPropagation(),e.preventDefault(),e.originalEvent.detail>0?i.zoomOut(e.originalEvent):i.zoomIn(e.originalEvent),!1})),this.bookLayer.bind("mousewheel",(function(e){if(i.Book.enabled&&(i.options.lightBox||i.fullscreenActive||!i.options.wheelDisabledNotFullscreen&&!i.bodyHasVerticalScrollbar()))return"scroll"!=i.options.viewMode?(e.stopPropagation(),e.preventDefault(),e.originalEvent.wheelDelta<0?i.zoomOut(e.originalEvent):i.zoomIn(e.originalEvent),!1):void 0})),"scroll"==this.options.viewMode?(this.setTool("toolSelect"),this.options.btnSelect.enabled=!1):this.setTool("toolMove"),i.options.contentOnStart?i.toggleToc(!0):i.options.thumbnailsOnStart?(i.options.thumbsStyle="side",i.toggleThumbs(!0)):i.options.searchOnStart&&(i.toggleSearch(!0),"string"==typeof i.options.searchOnStart&&i.thumbs.$findInput.val(i.options.searchOnStart).trigger("keyup")),e.autoplayOnStart&&i.toggleAutoplay(!0),i.options.lightBox&&i.Book.disable(),i.initColors(),setTimeout((function(){i.resize(),i.Book.updateVisiblePages(),i.Book.zoomTo(e.zoomMin)}),500),e.onbookcreated&&e.onbookcreated.call(this)},initSound:function(){this.options.flipSound&&(this.flipSound=jQuery('<audio><source src="'+this.options.assets.flipMp3+'" type="audio/mpeg"></audio>')[0]),this.options.backgroundMusic&&(this.backgroundMusic=jQuery('<audio autoplay><source src="'+this.options.backgroundMusic+'" type="audio/mpeg"></audio>')[0])},touchSwipe:function(e,t){let o,i,n,s,a,r,l=!1,h=!1,p=0,d=!1;function c(e){if(e.length<2)return 0;let t=e[0].clientX-e[1].clientX,o=e[0].clientY-e[1].clientY;return Math.sqrt(t*t+o*o)}function g(e,t){return{distanceX:e-o,distanceY:t-i}}function u(e){return e.type.includes("mouse")?e:e.touches[0]}function b(n){if("touchstart"===n.type)d=!0;else if("mousedown"===n.type&&d)return;let a=u(n);o=a.clientX,i=a.clientY,s=(new Date).getTime(),l=!0,p=n.touches?n.touches.length:1,t(n,"start",null,0,0,p),e.addEventListener("mousemove",m),e.addEventListener("touchmove",m,{passive:!1})}function m(e){let o=u(e),{distanceX:i,distanceY:s}=g(o.clientX,o.clientY);if(a=o.clientX,r=o.clientY,l&&"mousemove"===e.type)t(e,"move",i,s,0,1);else if(e.touches&&2===e.touches.length){let o;if(e.preventDefault(),"number"==typeof e.scale)o=e.scale;else{let t=c(e.touches);h?o=t/n:(h=!0,n=t,o=1)}h?t(e,"pinch",o,null,0,2):(h=!0,n=c(e.touches),t(e,"pinchstart",o,null,0,2))}else e.touches&&1===e.touches.length&&t(e,"move",i,s,0,1)}function f(e){"touchend"!==e.type&&"mouseup"!==e.type||setTimeout((function(){d=!1}),300);let o=e.changedTouches?e.changedTouches[0]:e,{distanceX:i,distanceY:n}=g(o.clientX,o.clientY),a=(new Date).getTime()-s;l&&(l=!1,t(e,"end",i,n,a,e.changedTouches?e.changedTouches.length:1)),h&&(h=!1,t(e,"pinchend",null,0,0,2)),k()}function v(e){setTimeout((function(){d=!1}),300);let o=(new Date).getTime()-s,{distanceX:i,distanceY:n}=g(a,r);l&&(l=!1,t(e,"cancel",i,n,o,1)),h&&(h=!1,t(e,"pinchcancel",i,n,o,2)),k()}function k(){e.removeEventListener("mousemove",m),e.removeEventListener("touchmove",m)}e.addEventListener("mousedown",b),e.addEventListener("touchstart",b),e.addEventListener("mouseup",f),e.addEventListener("touchend",f),e.addEventListener("mouseleave",v),e.addEventListener("touchcancel",v)},initSwipe:function(){var e=this;let t=!1,o=!1,i=!1;this.touchSwipe(this.book[0],(function(n,s,a,r,l,h){if(i="toolSelect"==e.tool||e.options.pageDragDisabled,"start"==s){e.zoomStart=e.zoom;try{e.currentPageInput.trigger("blur")}catch(n){}}if(h>1&&"pinch"==s){let t=a;n.scale&&(t=n.scale),e.zoomTo(e.zoomStart*t,0,n),o=!0}if("end"==s){if(l<200&&"toolMove"==e.tool||"scroll"==e.options.viewMode&&!e.options.doubleClickZoomDisabled)if(e.clickTimer){if(clearTimeout(e.clickTimer),delete e.clickTimer,!e.flippingPage){var p=e.options.zoomTime;e.zoom>=e.options.zoomMax?e.zoomTo(e.options.zoomMin,p,n):e.zoomTo(e.options.zoomMax,p,n)}}else e.clickTimer=setTimeout((function(){delete e.clickTimer}),300);Math.abs(a)<5&&l<200&&(t=!0)}t||o||i||e.Book.onSwipe(n,s,a,r,l,h),t=!1,"pinchend"==s&&(o=!1)})),this.swipeEnabled=!0},toggleMenu:function(){this.menuShowing?(this.menuShowing=!1,this.bookLayer.css("bottom","0px"),this.menuBottom.fadeOut(),this.currentPageHolder.fadeOut(),jQuery(".flipbook-nav").fadeOut(),this.Book.onResize()):(this.menuShowing=!0,this.bookLayer.css("bottom",this.menuBottom.height()+"px"),this.menuBottom.fadeIn(),this.currentPageHolder.fadeIn(),jQuery(".flipbook-nav").fadeIn(),this.Book.onResize())},createSVGIcon:function(e,t,o){var i=jQuery({plus:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><path d="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"/></svg>',minus:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><path d="M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"/></svg>',close:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 384 512"><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"/></svg>',next:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 320 512"><path d="M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"/></svg>',expand:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><path d="M32 32C14.3 32 0 46.3 0 64v96c0 17.7 14.3 32 32 32s32-14.3 32-32V96h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H64V352zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h64v64c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32H320zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H320c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V352z"/></svg>',compress:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><path d="M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32V64zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32H96v64c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32H32zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V64zM320 320c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32s32-14.3 32-32V384h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H320z"/></svg>',thumbs:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M448 96V224H288V96H448zm0 192V416H288V288H448zM224 224H64V96H224V224zM64 288H224V416H64V288zM64 32C28.7 32 0 60.7 0 96V4
116c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"/></svg>',print:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M128 0C92.7 0 64 28.7 64 64v96h64V64H354.7L384 93.3V160h64V93.3c0-17-6.7-33.3-18.7-45.3L400 18.7C388 6.7 371.7 0 354.7 0H128zM384 352v32 64H128V384 368 352H384zm64 32h32c17.7 0 32-14.3 32-32V256c0-35.3-28.7-64-64-64H64c-35.3 0-64 28.7-64 64v96c0 17.7 14.3 32 32 32H64v64c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V384zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"/></svg>',sound:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 640 512"><path d="M533.6 32.5C598.5 85.3 640 165.8 640 256s-41.5 170.8-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"/></svg>',mute:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 576 512"><path d="M301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3zM425 167l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"/></svg>',share:'<svg xmlns="http://www.w3.org/2000/svg" height="16" width="14" viewBox="0 0 448 512">\x3c!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--\x3e<path d="M352 224c53 0 96-43 96-96s-43-96-96-96s-96 43-96 96c0 4 .2 8 .7 11.9l-94.1 47C145.4 170.2 121.9 160 96 160c-53 0-96 43-96 96s43 96 96 96c25.9 0 49.4-10.2 66.6-26.9l94.1 47c-.5 3.9-.7 7.8-.7 11.9c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-25.9 0-49.4 10.2-66.6 26.9l-94.1-47c.5-3.9 .7-7.8 .7-11.9s-.2-8-.7-11.9l94.1-47C302.6 213.8 326.1 224 352 224z"/></svg>',facebook:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 320 512"><path d="M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"/></svg>',twitter:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg>',list:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M24 56c0-13.3 10.7-24 24-24H80c13.3 0 24 10.7 24 24V176h16c13.3 0 24 10.7 24 24s-10.7 24-24 24H40c-13.3 0-24-10.7-24-24s10.7-24 24-24H56V80H48C34.7 80 24 69.3 24 56zM86.7 341.2c-6.5-7.4-18.3-6.9-24 1.2L51.5 357.9c-7.7 10.8-22.7 13.3-33.5 5.6s-13.3-22.7-5.6-33.5l11.1-15.6c23.7-33.2 72.3-35.6 99.2-4.9c21.3 24.4 20.8 60.9-1.1 84.7L86.8 432H120c13.3 0 24 10.7 24 24s-10.7 24-24 24H32c-9.5 0-18.2-5.6-22-14.4s-2.1-18.9 4.3-25.9l72-78c5.3-5.8 5.4-14.6 .3-20.5zM224 64H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 160H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 160H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32s14.3-32 32-32z"/></svg>',pdf:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V304H176c-35.3 0-64 28.7-64 64V512H64c-35.3 0-64-28.7-64-64V64zm384 64H256V0L384 128zM176 352h32c30.9 0 56 25.1 56 56s-25.1 56-56 56H192v32c0 8.8-7.2 16-16 16s-16-7.2
1-16-16V448 368c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24H192v48h16zm96-80h32c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H304c-8.8 0-16-7.2-16-16V368c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H320v96h16zm80-112c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16s-7.2 16-16 16H448v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H448v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V432 368z"/></svg>',pause:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 320 512"><path d="M48 64C21.5 64 0 85.5 0 112V400c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H48zm192 0c-26.5 0-48 21.5-48 48V400c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H240z"/></svg>',play:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 384 512"><path d="M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"/></svg>',select:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 256 512"><path d="M.1 29.3C-1.4 47 11.7 62.4 29.3 63.9l8 .7C70.5 67.3 96 95 96 128.3V224H64c-17.7 0-32 14.3-32 32s14.3 32 32 32H96v95.7c0 33.3-25.5 61-58.7 63.8l-8 .7C11.7 449.6-1.4 465 .1 482.7s16.9 30.7 34.5 29.2l8-.7c34.1-2.8 64.2-18.9 85.4-42.9c21.2 24 51.2 40.1 85.4 42.9l8 .7c17.6 1.5 33.1-11.6 34.5-29.2s-11.6-33.1-29.2-34.5l-8-.7C185.5 444.7 160 417 160 383.7V288h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H160V128.3c0-33.3 25.5-61 58.7-63.8l8-.7c17.6-1.5 30.7-16.9 29.2-34.5S239-1.4 221.3 .1l-8 .7C179.2 3.6 149.2 19.7 128 43.7c-21.2-24-51.2-40-85.4-42.9l-8-.7C17-1.4 1.6 11.7 .1 29.3z"/></svg>',bookmark:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 384 512"><path d="M0 48V487.7C0 501.1 10.9 512 24.3 512c5 0 9.9-1.5 14-4.4L192 400 345.7 507.6c4.1 2.9 9 4.4 14 4.4c13.4 0 24.3-10.9 24.3-24.3V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48z"/></svg>',download:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-6
15.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"/></svg>',search:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>',last:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/></svg>',linkedin:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><path d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"/></svg>',whatsapp:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><path d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg>',pinterest:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 384 512"><path d="M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"/></svg>',email:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M64 112c-8.8 0-16 7.2-16 16v22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1V128c0-8.8-7.2-16-16-16H64zM48 212.2V384c0 8.8 7.2 16 16 16H448c8.8 0 16-7.2 16-16V212.2L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"/></svg>',digg:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M81.7 172.3H0v174.4h132.7V96h-51v76.3zm0 133.4H50.9v-92.3h30.8v92.3zm297.2-133.4v174.4h81.8v28.5h-81.8V416H512V172.3H378.9zm81.8 133.4h-30.8v-92.3h30.8v92.3zm-235.6 41h82.1v28.5h-82.1V416h133.3V172.3H225.1v174.4zm51.2-133.3h30.8v92.3h-30.8v-92.3zM153.3 96h51.3v51h-51.3V96zm0 76.3h51.3v174.4h-51.3V172.3z"/></svg>',reddit:'<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path d="M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22
117.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"/></svg>'}[e]).attr("aria-hidden","true").addClass("flipbook-icon flipbook-menu-btn skin-color");return o||i.addClass("skin-color-bg"),t&&i.addClass("flipbook-icon-reverse"),i},createButton:function(e){var t=this.options,i="top"==e.vAlign&&t.menu2Transparent||"top"!=e.vAlign&&t.menuTransparent,n=e.background||(i?t.floatingBtnBackground:t.btnBackground),s=e.backgroundHover||(i?t.floatingBtnBackgroundHover:t.btnBackgroundHover),a=e.color||(i?t.floatingBtnColor:t.btnColor),r=e.colorHover||(i?t.floatingBtnColorHover:t.btnColorHover),l=i?t.floatingBtnTextShadow:t.btnTextShadow,h=e.radius||(i?t.floatingBtnRadius:t.btnRadius),p=e.border||(i?t.floatingBtnBorder:t.btnBorder),d=i?t.floatingBtnMargin:t.btnMargin,c=t.btnPaddingV+2,g=t.btnPaddingH+2,u=jQuery(o.createElement("span")),b="material"==t.icons?(e.size||t.btnSize)+8:e.size||t.btnSize;function m(e){e.css({"font-size":b+"px",margin:d+"px",padding:c+"px "+g+"px","border-radius":h+"px","box-shadow":t.btnShadow,border:p,color:a,fill:a,background:n,"text-shadow":l}),r&&e.hover((function(){this.style.fill=r}),(function(){this.style.fill=a})),a&&e.removeClass("skin-color"),n&&e.removeClass("skin-color-bg")}const f=e.svg||e.name.replace("btn","").toLowerCase();var v;return u.$icon=this.createSVGIcon(f,e.iconReverse).appendTo(u),m(u.$icon),e.svgAlt&&(u.$iconAlt=this.createSVGIcon(e.svgAlt,e.iconReverse).appendTo(u).hide(),m(u.$iconAlt)),e.onclick&&u.bind("click",(function(t){e.onclick()})),(r||s)&&u.mouseenter((function(){Array.from(this.children).forEach((function(e){e.style.color=r,e.style.background=s}))})).mouseleave((function(){Array.from(this.children).forEach((function(e){e.style.color=a,e.style.background=n}))})),v="top"==e.vAlign?t.menu2Floating?this.menuTC:"left"==e.hAlign?this.menuTL:"right"==e.hAlign?this.menuTR:this.menuTC:t.menuFloating?this.menuBC:"left"==e.hAlign?this.menuBL:"right"==e.hAlign?this.menuBR:this.menuBC,u.attr("data-name",e.name).attr("data-tooltip",e.title).appendTo(v).addClass("flipbook-menu-btn-wrapper").css("order",e.order),u},createMenu:function(){if(!this.menuBottom){var e=this.options,t=e.menuFloating?"flipbook-menu-floating":"flipbook-menu-fixed",i=e.menu2Floating?"flipbook-menu-floating":"flipbook-menu-fixed",n=this;this.menuBottom=jQuery(o.createElement("div")).addClass("flipbook-menuBottom").addClass(t).appendTo(this.wrapper).css({background:e.menuBackground,"box-shadow":e.menuShadow,margin:e.menuMargin+"px",padding:e.menuPadding+"px"}),e.menuTransparent||e.menuBackground||this.menuBottom.addClass("skin-color-bg"),e.hideMenu&&this.menuBottom.hide(),this.menuTop=jQuery(o.createElement("div")).addClass("flipbook-menuTop").addClass(i).appendTo(this.wrapper).css({background:e.menu2Background,"box-shadow":e.menu2Shadow,margin:e.menu2Margin+"px",padding:e.menu2Padding+"px"}),e.menu2Transparent||e.menu2Background||this.menuTop.addClass("skin-color-bg"),"swipe"==e.viewMode&&(e.btnSound.enabled=!1),this.menuBL=jQuery(o.createElement("div")).addClass("flipbook-menu flipbook-menu-left").appendTo(this.menuBottom),this.menuBC=jQuery(o.createElement("div")).addClass("flipbook-menu flipbook-menu-center").appendTo(this.menuBottom),this.menuBR=jQuery(o.createElement("div")).addClass("flipbook-menu flipbook-menu-right").appendTo(this.menuBottom),this.menuTL=jQuery(o.createElement("div")).addClass("flipbook-menu flipbook-menu-left").appendTo(this.menuTop),this.menuTC=jQuery(o.createElement("div")).addClass("flipbook-menu flipbook-menu-center").appendTo(this.menuTop),this.menuTR=jQuery(o.createElement("div")).addClass("flipbook-menu flipbook-menu-right").appendTo(this.menuTop),e.isMobile&&(void 0!==e.btnTocIfMobile&&(e.btnToc.hideOnMobile=!e.btnTocIfMobile),void 0!==e.btnThumbsIfMobile&&(e.btnThumbs.hideOnMobile=!e.btnThumbsIfMobile),void 0!==e.btnShareIfMobile&&(e.btnShare.hideOnMobile=!e.btnShareIfMobile),void 0!==e.btnDownloadPagesIfMobile&&(e.btnDownloadPages.hideOnMobile=!e.btnDownloadPagesIfMobile),void 0!==e.btnDownloadPdfIfMobile&&(e.btnDownloadPdf.hideOnMobile=!e.btnDownloadPdfIfMobile),void 0!==e.btnSoundIfMobile&&(e.btnSound.hideOnMobile=!e.btnSoundIfMobile),void 0!==e.btnExpandIfMobile&&(e.btnExpand.hideOnMobile=!e.btnExpandIfMobile),void 0!==e.btnPrintIfMobile&&(e.btnPrint.hideOnMobile=!e.btnPrintIfMobile)),e.sideNavigationButtons&&(this.$arrowWrapper=jQuery('<div class="flipbook-nav"></div>').appendTo(this.bookLayer),this.btnNext=this.createSVGIcon("next").appendTo(this.$arrowWrapper).addClass("flipbook-right-arrow").css({height:e.arrowSize+"px","font-size":e.arrowSize+"px","margin-top":String(-e.arrowSize/2)+"px","margin-right":e.arrowMargin+"px"}),l(this.btnNext,this.nextPage.bind(this)),this.btnPrev=this.createSVGIcon("next",!0).appendTo(this.$arrowWrapper).addClass("flipbook-left-arrow").css({height:e.arrowSize+"px","font-size":e.arrowSize+"px","margin-top":String(-e.arrowSize/2)+"px","margin-left":e.arrowMargin+"px"}),l(this.btnPrev,this.prevPage.bind(this)),e.btnFirst.enabled&&(this.btnFirst=this.createSVGIcon("last",!0).appendTo(this.$arrowWrapper).addClass("flipbook-first-arrow").css({height:.5*e.arrowSize+"px","font-size":.5*e.arrowSize+"px","margin-top":String(e.arrowSize/2+e.arrowMargin+2*e.arrowPadding)+"px","margin-left":e.arrowMargin+"px"}),l(this.btnFirst,this.firstPage.bind(this))),e.btnLast.enabled&&(this.btnLast=this.createSVGIcon("last").appendTo(this.$arrowWrapper).addClass("flipbook-last-arrow").css({height:.5*e.arrowSize+"px","font-size":.5*e.arrowSize+"px","margin-top":String(e.arrowSize/2+e.arrowMargin+2*e.arrowPadding)+"px","margin-right":e.arrowMargin+"px"}),l(this.btnLast,this.lastPage.bind(this))),e.menuNavigationButtons||(e.btnOrder.indexOf("btnFirst")>=0&&e.btnOrder.splice(e.btnOrder.indexOf("btnFirst"),1),e.btnOrder.indexOf("btnPrev")>=0&&e.btnOrder.splice(e.btnOrder.indexOf("btnPrev"),1),e.btnOrder.indexOf("btnNext")>=0&&e.btnOrder.splice(e.btnOrder.indexOf("btnNext"),1),e.btnOrder.indexOf("btnLast")>=0&&e.btnOrder.splice(e.btnOrder.indexOf("btnLast"),1))),e.pdfMode&&!e.btnDownloadPdf.url&&(e.btnDownloadPdf.url=e.pdfUrl),!e.pdfTextLayer&&e.btnSelect&&(e.btnSelect.enabled=!1),!e.pdfTextLayer&&e.btnSearch&&(e.btnSearch.enabled=!1),"scroll"==e.viewM
1ode&&(e.btnSelect.enabled=!1);for(var s=0;s<e.btnOrder.length;s++){var a=e.btnOrder[s],r=e[a];e.isMobile&&r.hideOnMobile&&(r.enabled=!1),r.enabled&&(r.name=a,"currentPage"==r.name?this.createCurrentPage():"search"==r.name?(this.$search=jQuery('<div class="flipbook-findbar"><div><input class="toolbarField" title="Find" autocapitalize="none" placeholder="'+e.strings.findInDocument+'..."></div><div class="flipbook-find-info skin-color"/></div>').appendTo(this.menuTL),this.$search.find("input").on("change",(function(){n.toggleSearch(!0),n.thumbs.$findInput.val(this.value).trigger("keyup"),this.value=""})),this.menuTL[0].style.flexDirection="column",this.menuTL[0].style.alignItems="flex-start"):this[a]=this.createButton(r).bind("click",(function(e){e.stopPropagation(),e.preventDefault(),n.onButtonClick(this,e)})))}e.buttons&&e.buttons.forEach((e=>{n.createButton(e).index(1)}))}function l(t,o){t.bind("click",(function(e){if(t.disabled)return!1;t.disabled=!0,setTimeout((function(){t.disabled=!1}),300),e.stopPropagation(),e.preventDefault(),o()})),t.css({width:e.arrowSize+"px","border-radius":e.arrowRadius+"px",padding:e.arrowPadding+"px ",filter:"drop-shadow("+e.arrowTextShadow+")",border:e.arrowBorder,color:e.arrowColor,fill:e.arrowColor,background:e.arrowBackground,"box-sizing":"initial"}),e.arrowBackgroundHover&&t.hover((function(){this.style.background=e.arrowBackgroundHover}),(function(){this.style.background=e.arrowBackground})),e.arrowColor&&t.removeClass("skin-color"),e.arrowBackground&&t.removeClass("skin-color-bg")}},onButtonClick:function(e,i){var n=jQuery(e).attr("data-name"),s=this.options;switch(n){case"btnFirst":this.firstPage();break;case"btnPrev":this.prevPage();break;case"btnNext":this.nextPage();break;case"btnLast":this.lastPage();break;case"btnZoomIn":this.zoomIn();break;case"btnZoomOut":this.zoomOut();break;case"btnAutoplay":this.autoplay||this.nextPage(),this.toggleAutoplay();break;case"btnSearch":this.toggleSearch();break;case"btnBookmark":this.toggleBookmark();break;case"btnRotateLeft":this.Book.rotateLeft&&this.Book.rotateLeft();break;case"btnRotateRight":this.Book.rotateRight&&this.Book.rotateRight();break;case"btnToc":this.toggleToc();break;case"btnThumbs":this.toggleThumbs();break;case"btnShare":this.toggleShareMenu();break;case"btnNotes":this.toggleNotesMenu();break;case"btnDownloadPages":if(s.downloadMenu)this.toggleDownloadMenu();else{var a=o.createElement("a");a.href=s.btnDownloadPages.url,a.download=s.btnDownloadPages.name,a.dispatchEvent(new MouseEvent("click"))}break;case"btnPrint":s.printMenu?this.togglePrintMenu():this.togglePrintWindow();break;case"btnDownloadPdf":if(s.btnDownloadPdf.forceDownload){var r=s.btnDownloadPdf.url,l=o.createElement("a");l.href=r;var h=l.href.split("/").pop().split("#")[0].split("?")[0];l.download=h,o.body.appendChild(l),l.click(),o.body.removeChild(l)}else{var p=s.btnDownloadPdf.openInNewWindow||(s.btnDownloadPdf.openInNewWindow,1)?"_blank":"_self";t.open(s.btnDownloadPdf.url,p)}this.sendGAEvent({event:"flipbook_pdf_download",book_name:this.options.name,url:s.btnDownloadPdf.url||s.pdfUrl,nonInteraction:!0});break;case"btnSound":this.toggleSound();break;case"btnSelect":this.toggleTool();break;case"btnExpand":this.toggleExpand();break;case"btnClose":this.lightbox.closeLightbox()}},handleFsChange:function(e){if(this.Book&&this.Book.enabled){var t=jQuery(this.fullscreenElement);(o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement)===this.fullscreenElement||this.isFullscreen?(e&&(t.addClass("flipbook-browser-fullscreen"),this.fullscreenElement.parentNodeOld=this.fullscreenElement.parentNode,this.options.lightBox||t.appendTo(jQuery("body"))),this.fullscreenActive=!0,this.options.onfullscreenenter&&this.options.onfullscreenenter.call(this),o.body.classList.add("flipbook-fullscreen")):(e&&(t.removeClass("flipbook-browser-fullscreen"),this.options.lightBox||t.appendTo(jQuery(this.fullscreenElement.parentNodeOld))),this.fullscreenActive=!1,this.options.onfullscreenexit&&this.options.onfullscreenexit.call(this),o.body.classList.remove("flipbook-fullscreen")),this.toggleIcon(this.btnExpand,!this.fullscreenActive)}},createLogo:function(){var e=this.options;if(e.logoImg&&(!e.isMobile||!e.logoHideOnMobile)){var o=jQuery("<img>").attr("src",e.logoImg).attr("style",e.logoCSS).appendTo(this.wrapper);"right"==e.logoAlignH&&o.css("right","0"),"bottom"==e.logoAlignV&&o.css("bottom","0"),e.logoUrl&&o.css("cursor","pointer").bind("click",(function(o){o.stopPropagation(),o.preventDefault(),t.open(e.logoUrl,e.logoUrlTarget||"_blank")}))}}
1,setLoadingProgress:function(e){this.disposed||(this.$fillPreloader?this.setFillPreloaderProgress(e):e>0&&e<1?jQuery(this.preloader).stop(!0,!0).show():jQuery(this.preloader).stop(!0,!0).hide())},setFillPreloaderProgress:function(e){if(this.$fillPreloader)if(e>0&&e<1){if(this.fillPreloaderProgress=this.fillPreloaderProgress||0,e<this.fillPreloaderProgress)return;this.fillPreloaderProgress=e;var t=this.$fillPreloaderImg[0];t.style.clip="rect(0px,"+t.width*e+"px,"+t.height+"px,0px)",this.$fillPreloader.show()}else this.$fillPreloader.hide()},playFlipSound:function(){if(this.options.sound&&this.Book.enabled&&void 0!==this.flipSound.play){this.flipSound.currentTime=0;var e=this;setTimeout((function(){e.flipSound.play().then((function(){}),(function(){}))}),70)}},playBgMusic:function(){if(this.options.sound&&this.backgroundMusic&&this.backgroundMusic.play){var e=this;this.backgroundMusic.play().then((function(){}),(function(t){setTimeout((function(){e.playBgMusic()}),100)}))}},onMouseWheel:function(e){if("wheelDeltaX"in e)wheelDeltaX=e.wheelDeltaX/12,wheelDeltaY=e.wheelDeltaY/12;else if("wheelDelta"in e)wheelDeltaX=wheelDeltaY=e.wheelDelta/12;else{if(!("detail"in e))return;wheelDeltaX=wheelDeltaY=3*-e.detail}wheelDeltaX>0?this.zoomIn(e):this.zoomOut(e)},zoomTo:function(e,t,o){var i,n;this.zoom=e,void 0===o?(i=this.wrapperW/2,n=this.wrapperH/2):(o.touches&&o.touches[0]?(i=o.touches[0].pageX,n=o.touches[0].pageY):o.changedTouches&&o.changedTouches[0]?(i=o.changedTouches[0].pageX,n=o.changedTouches[0].pageY):(i=o.pageX,n=o.pageY),i-=this.wrapper.offset().left,n-=this.wrapper.offset().top);const s=this.getZoomMin();this.zoom<s&&(this.zoom=s),this.zoom>this.options.zoomMax&&(this.zoom=this.options.zoomMax),this.options.zoomMax2&&this.zoom>this.options.zoomMax2&&(this.zoom=this.options.zoomMax2),this.Book.zoomTo(this.zoom,t,i,n),this.onZoom(this.zoom)},zoomOut:function(e){var t=this.zoom-.1*this.options.zoomStep;t<1&&this.zoom>1&&(t=1);const o=this.getZoomMin();if(t=t<o?o:t,this.zoom!=t){this.zoom=t;var i=this.options.zoomTime;this.zoomTo(this.zoom,i,e)}},zoomIn:function(e){var t=this.zoom+.1*this.options.zoomStep;t>1&&this.zoom<1&&(t=1),t>this.options.zoomMax&&(t=this.options.zoomMax),this.zoom!=t&&(this.zoom=t,this.zoomTo(this.zoom,this.options.zoomTime,e))},getZoomMin:function(){return"scroll"==this.options.viewMode?this.options.zoomMin2:this.options.zoomMin},nextPage:function(){this.Book&&(this.flippingPage=!0,this.Book.nextPage())},prevPage:function(){this.Book&&(this.flippingPage=!0,this.Book.prevPage())},firstPage:function(){this.goToPage(1)},lastPage:function(){this.goToPage(this.options.pages.length)},goToPage:function(e,t){this.Book&&(t||(this.flippingPage=!0),this.options.cover||e++,e<1?e=1:e>this.options.numPages&&!this.options.rightToLeft&&(e=this.options.numPages),this.Book.goToPage(e,t))},moveBook:function(e){this.Book&&this.Book.move&&this.Book.move(e)},onZoom:function(e){this.zoom=e;const t=this.getZoomMin();this.enableButton(this.btnZoomIn,e<this.options.zoomMax),this.enableButton(this.btnZoomOut,e>t),this.enableSwipe(e<=1)},enableSwipe:function(e){this.swipeEnabled=e}
1,createCurrentPage:function(){var e,t=this,i=this.options,n="flipbook-currentPageHolder ";e="top"==i.currentPage.vAlign?"left"==i.currentPage.hAlign?this.menuTL:"right"==i.currentPage.hAlign?this.menuTR:this.menuTC:"left"==i.currentPage.hAlign?this.menuBL:"right"==i.currentPage.hAlign?this.menuBR:this.menuBC;var s="top"==i.currentPage.vAlign&&i.menu2Transparent||"top"!=i.currentPage.vAlign&&i.menuTransparent,a=s?i.floatingBtnBackground:"",r=s?i.floatingBtnColor:i.btnColor,l=s?i.floatingBtnTextShadow:"",h=s?i.floatingBtnRadius:i.btnRadius,p=jQuery("<div>").appendTo(e);p.css("margin",i.currentPage.marginV+"px "+i.currentPage.marginH+"px"),s||(n+="skin-color "),p.addClass(n).css({color:r,background:a,"text-shadow":l,"border-radius":h+"px"}),i.currentPage.order&&p.css("order",i.currentPage.order),this.currentPageHolder=p,this.currentPage=jQuery(o.createElement("div")).addClass("flipbook-currentPageNumber").appendTo(p);var d=jQuery("<form>").appendTo(p).submit((function(e){var o=parseInt(t.currentPageInput.val());return t.options.rightToLeft?(o=i.pages.length-o+1,o-=t.options.pageNumberOffset):(o=o>i.pages.length?i.pages.length:o,o+=t.options.pageNumberOffset),t.goToPage(o),t.currentPageInput.trigger("blur"),!1}));this.currentPageInput=jQuery('<input type="text" maxlength="4">').addClass("flipbook-currentPageInput").css({margin:i.currentPage.marginV+"px "+i.currentPage.marginH+"px",color:r}).appendTo(d).val("").focus((function(){t.currentPageInput.val(""),t.currentPage.addClass("flipbook-color-transparent")})).blur((function(){t.currentPageInput.val(""),t.currentPage.removeClass("flipbook-color-transparent")})),s||this.currentPageInput.addClass("skin-color")},createMenuHeader:function(e,t,o){var i=this,n=jQuery("<div>").addClass("flipbook-menu-header skin-clor flipbook-font").appendTo(e);jQuery("<span>").text(t).addClass("flipbook-menu-title skin-color").appendTo(n);var s=jQuery("<span>").appendTo(n).addClass("flipbook-btn-close").bind("click",(function(e){e.stopPropagation(),e.preventDefault(),i.closeMenus()}));this.createSVGIcon("close",null,!0).appendTo(s)},createToc:function(){var e=this,t=this.options.tableOfContent;if(t&&t.length||!this.pdfService||this.pdfService.outlineLoaded){this.tocHolder=jQuery("<div>").addClass("flipbook-tocHolder flipbook-side-menu skin-color-bg").appendTo(this.wrapper).css(this.options.sideMenuPosition,"0").hide(),this.createMenuHeader(this.tocHolder,this.strings.tableOfContent,this.toggleToc),this.toc=jQuery("<div>").addClass("flipbook-toc").appendTo(this.tocHolder),this.tocScroller=jQuery("<div>").addClass("flipbook-toc-scroller").appendTo(this.toc);var o=this.options.pages;if(t&&t.length>0)for(var i=0;i<t.length;i++)o[i]&&o[i].name&&t[i].page&&(t[i].pageNumberDisplay=o[t[i].page-1].name),this.createTocItem(t[i]);else for(i=0;i<o.length;i++)o[i].title&&this.createTocItem({title:o[i].title,page:String(i+1),pageNumberDisplay:o[i].name});this.initColors(),this.tocCreated=!0,this.toggleToc()}else e.pdfService.loadOutline((function(t){e.options.tableOfContent=t,e.createToc()}))},goToDest:function(e){var t=this;t.pdfService.pdfDocument.getPageIndex(e[0]).then((function(e){var o=e+1;t.options.doublePage&&(o=2*o-1),o=t.options.rightToLeft?t.options.pages.length-o+1:o,setTimeout((function(){t.goToPage(o)}),200)}))},createTocItem:function(e,t,i){var n=this;t=t||this.tocScroller;var s=this.options.rightToLeft,a=jQuery(o.createElement("a")).attr("class","flipbook-tocItem").addClass("skin-color").css("direction",s?"rtl":"ltr").appendTo(t).bind("click",(function(t){if(t.stopPropagation(),t.preventDefault(),n.options.tableOfContentCloseOnClick&&n.toggleToc(!1),!e.page&&e.dest)"string"==typeof e.dest?n.pdfService.pdfDocument.getDestination(e.dest).then((function(e){n.goToDest(e)})):n.goToDest(e.dest);else{var o=Number(e.page);o=n.options.rightToLeft?n.options.pages.length-o+1:o,setTimeout((function(){n.goToPage(o)}),200)}}));i||(i=0),a.level=i,a.css("padding","8px 0"),a.css("margin-"+(s?"right":"left"),"10px"),i?(a.css("margin-top","8px"),a.css("padding-bottom","0")):(a.css("margin-right","15px"),a.css("padding-left","10px"));var r=jQuery(o.createElement("span")).appendTo(a).css("width","20px").css("display","inline-block").css("cursor","auto").bind("click",(function(e){e.stopPropagation(),e.preventDefault();for(var t=0;t<a.items.length;t++)a.items[t].toggle();
1l.toggle(),h.toggle()})),l=this.createSVGIcon("next").appendTo(r).hide();s&&(l[0].style.transform="rotate(180deg)");var h=this.createSVGIcon("next").appendTo(r).hide();if(h[0].style.transform="rotate(90deg)",jQuery(o.createElement("span")).appendTo(a).addClass("title").text(e.title).css("width",String(170-10*a.level)+"px"),!e.pageHidden){var p=e.pageNumberDisplay;p&&p!=e.title&&jQuery(o.createElement("span")).appendTo(a).width("25px").css("display","inline-block").css("text-align","right").text(p)}if(e.items&&e.items.length){a.items=[];for(var d=0;d<e.items.length;d++){var c=this.createTocItem(e.items[d],a,a.level+1);a.items.push(c),c.hide()}l.show()}return a},enablePrev:function(e){this.enableButton(this.btnPrev,e),this.enableButton(this.btnFirst,e),this.Book.enablePrev(e)},enableNext:function(e){this.enableButton(this.btnNext,e),this.enableButton(this.btnLast,e),this.Book.enableNext(e)},enableButton:function(e,t){void 0!==e&&(t?e.removeClass("disabled"):e.addClass("disabled"),e.enabled=t)},resize:function(){var e=this.options;if(this.updateWrapperDimensions(),this.Book&&this.Book.enabled){if(this.menuShowing&&(this.bookLayer.css("bottom",!e.menuOverBook&&this.menuBottom?this.menuBottom.outerHeight()+"px":"0px"),this.bookLayer.css("top",!e.menu2OverBook&&this.menuTop?this.menuTop.outerHeight()+"px":"0px")),this.tocShowing||this.thumbsShowing||this.searchShowing||this.bookmarkShowing){this.bookLayer.css(this.options.sideMenuPosition,e.sideMenuOverBook?"0px":"250px");let t={bottom:"0px",top:"0px"};e.sideMenuOverMenu||(t.bottom=this.menuBottom.outerHeight()+"px"),e.sideMenuOverMenu2||(t.top=this.menuTop.outerHeight()+"px"),this.wrapper.find(".flipbook-side-menu").css(t)}else this.bookLayer.css(this.options.sideMenuPosition,"0px");this.adjustZoomLimits(),this.Book.onResize(),e.zoomReset&&this.Book.zoomTo(e.zoomMin)}},updateWrapperDimensions:function(){let e=this.bookLayer[0].getBoundingClientRect();this.wrapperW=e.width,this.wrapperH=e.height},adjustZoomLimits:function(){var e=this.options,t=this.wrapperW/this.wrapperH,o=this.pageW/this.pageH,i=2*o;"scroll"==e.viewMode?e.zoomMax=e.zoomSize*e.pageWidth/e.pageHeight*2/this.wrapperW:e.responsiveView&&this.wrapperW<=e.responsiveViewTreshold&&t<i&&t<e.responsiveViewRatio?e.zoomMax=e.zoomSize/this.wrapperH*(t>o?1:o/t):e.zoomMax=e.zoomSize/this.wrapperH*(t>i?1:i/t),e.zoomMax=Math.max(e.zoomMax,e.zoomMin)},pdfResize:function(){this.Book.onZoom()},createThumbs:function(){this.thumbs=new FLIPBOOK.Thumbnails(this)},toggleThumbs:function(e){this.thumbs||this.createThumbs(),void 0!==e&&(this.thumbsShowing=!e),this.thumbsShowing?(this.thumbs.hide(),this.thumbsShowing=!1):(this.closeMenus(),this.thumbs.show(),this.thumbsShowing=!0),this.resize()},toggleToc:function(e){this.tocCreated?(!this.tocShowing||e?(this.closeMenus(),this.tocShowing=!0,this.tocHolder.show()):(this.tocHolder.hide(),this.tocShowing=!1),this.resize()):this.createToc()},toggleSearch:function(e){this.thumbs||this.createThumbs(),void 0!==e&&(this.searchShowing=!e),this.searchShowing?(this.thumbs.hide(),this.searchShowing=!1,this.unmark()):(this.closeMenus(),this.thumbs.show(),this.thumbs.showSearch(),this.searchShowing=!0),this.resize()},toggleBookmark:function(e){this.thumbs||this.createThumbs(),void 0!==e&&(this.bookmarkShowing=!e),this.bookmarkShowing?(this.thumbs.hide(),this.bookmarkShowing=!1):(this.closeMenus(),this.thumbs.show(),this.thumbs.showBookmarks(),this.bookmarkShowing=!0),this.resize()},closeMenus:function(){this.thumbsShowing&&this.toggleThumbs(),this.tocShowing&&this.toggleToc(),this.searchShowing&&this.toggleSearch(),this.bookmarkShowing&&this.toggleBookmark(),this.printMenuShowing&&this.togglePrintMenu(),this.dlMenuShowing&&this.toggleDownloadMenu(),this.shareMenuShowing&&this.toggleShareMenu(),this.notesMenuShowing&&this.toggleNotesMenu(),this.passwordMenuShowing&&this.togglePasswordMenu()},togglePrintMenu:function(){var e=this;if(this.printMenu)this.printMenuShowing?(this.printMenu.hide(),this.printMenuShowing=!1):(this.closeMenus(),this.printMenu.show(),this.printMenuShowing=!0,this.updateCurrentPage());else{this.printMenu=jQuery('<div class="flipbook-sub-menu flipbook-font">').appendTo(this.wrapper);var t=jQuery('<div class="flipbook-sub-menu-center">').appendTo(this.printMenu),o=jQuery('<div class="flipbook-sub-menu-content skin-color-bg">').appendTo(t);this.createMenuHeader(o,this.strings.print,this.togglePrintMenu),jQuery('<a><div class="c-p skin-color flipbook-btn">'+this.strings.printCurrentPage+"</div></a>").appendTo(o).bind("click",(function(t){e.printPage(e.cPage[0],this)})),jQuery('<a><div class="c-l-p skin-color flipbook-btn">'+this.strings.printLeftPage+"</div></a>").appendTo(this.printMenu).appendTo(o).bind("click",(function(t){e.printPage(e.cPage[0],this)})),jQuery('<a><div class="c-r-p skin-color flipbook-btn">'+this.strings.printRightPage+"</div></a>").appendTo(this.printMenu).appendTo(o).bind("click",(function(t){e.printPage(e.cPage[1],this)})),jQuery('<a><div class="skin-color flipbook-btn">
1'+this.strings.printAllPages+"</div></a>").appendTo(o).bind("click",(function(t){e.togglePrintWindow()})),this.closeMenus(),this.printMenuShowing=!0,this.initColors(),this.updateCurrentPage()}},toggleDownloadMenu:function(){var e=this;if(this.dlMenu)this.dlMenuShowing?(this.dlMenu.hide(),this.dlMenuShowing=!1):(this.dlMenu.show(),this.closeMenus(),this.dlMenuShowing=!0,this.updateCurrentPage());else{this.dlMenu=jQuery('<div class="flipbook-sub-menu flipbook-font">').appendTo(this.wrapper);var t=jQuery('<div class="flipbook-sub-menu-center">').appendTo(this.dlMenu),i=jQuery('<div class="flipbook-sub-menu-content skin-color-bg">').appendTo(t);this.createMenuHeader(i,this.strings.download,this.toggleDownloadMenu),jQuery('<a><div class="c-p skin-color flipbook-btn">'+this.strings.downloadCurrentPage+"</div></a>").appendTo(i).bind("click",(function(t){e.downloadPage(e.cPage[0],this)})),jQuery('<a><div class="c-l-p skin-color flipbook-btn">'+this.strings.downloadLeftPage+"</div></a>").appendTo(i).bind("click",(function(t){e.downloadPage(e.cPage[0],this)})),jQuery('<a><div class="c-r-p skin-color flipbook-btn">'+this.strings.downloadRightPage+"</div></a>").appendTo(i).bind("click",(function(t){e.downloadPage(e.cPage[1],this)})),jQuery('<a><div class="skin-color flipbook-btn">'+this.strings.downloadAllPages+"</div></a>").appendTo(i).bind("click",(function(t){var i=o.createElement("a");i.href=e.options.btnDownloadPages.url;var n=i.href.split("/").pop().split("#")[0].split("?")[0];i.download=n,i.dispatchEvent(new MouseEvent("click"))})),this.closeMenus(),this.dlMenuShowing=!0,this.initColors(),this.updateCurrentPage()}},toggleShareMenu:function(){if(this.shareMenu)this.shareMenuShowing?(this.shareMenu.hide(),this.shareMenuShowing=!1):(this.shareMenu.show(),this.closeMenus(),this.shareMenuShowing=!0);else{this.shareMenu=jQuery(o.createElement("div")).appendTo(this.wrapper).addClass("flipbook-sub-menu flipbook-font");var e=jQuery(o.createElement("div")).appendTo(this.shareMenu).addClass("flipbook-sub-menu-center"),i=jQuery(o.createElement("div")).appendTo(e).addClass("flipbook-sub-menu-content skin-color-bg");this.createMenuHeader(i,this.options.strings.share,this.toggleShareMenu);var n=this.options,s=jQuery('<div class="flipbook-share"><ul></ul></div>').appendTo(i),a=["facebook","twitter"];a.push("pinterest","linkedin","whatsapp","digg","reddit","email");var r=s.find("ul"),l=t.screen.width/2-300,h=t.screen.height/2-300,p=this;a.forEach((function(e){if(n[e].enabled){var o=jQuery('<li data-network="'+e+'"></li>');p.createSVGIcon(e).appendTo(o),o.appendTo(r).bind("click",(function(e){e.preventDefault(),e.stopPropagation();var o,i=this.dataset.network,s=encodeURIComponent(n.shareTitle||n[i].description||"Check out this flipbook"),a=encodeURIComponent(n.shareUrl||t.location.href),r=encodeURIComponent(n.shareImage||"");switch(i){case"facebook":o="https://www.facebook.com/sharer.php?u="+a+"&t="+s;break;case"twitter":o="https://twitter.com/intent/tweet?text="+s+"&url="+a;break;case"linkedin":o="https://www.linkedin.com/shareArticle?mini=true&url="+a+"&title="+s;break;case"pinterest":o="https://www.pinterest.com/pin/create/button/?url="+a+"&media="+r+"&description="+s;break;case"email":o="mailto:?subject="+s+"&body="+a;break;case"digg":o="http://digg.com/submit?url="+a+"&title="+s;break;case"reddit":o="http://reddit.com/submit?url="+a+"&title="+s;break;case"whatsapp":o=n.isMobile?"whatsapp://send?text="+s+"%20"+a:"https://wa.me?text="+s+"%20"+a}t.open(o,"Share","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=600, height=600, top="+h+", left="+l)}))}})),this.closeMenus(),this.shareMenuShowing=!0,this.initColors()}},toggleNotesMenu:function(){if(this.notesMenu)this.notesMenuShowing?(this.notesMenu.hide(),this.notesMenuShowing=!1):(this.notesMenu.show(),this.closeMenus(),this.notesMenuShowing=!0);else{this.notesMenu=jQuery(o.createElement("div")).appendTo(this.wrapper).addClass("flipbook-sub-menu flipbook-font");var e=jQuery('<div class="flipbook-sub-menu-center">').appendTo(this.notesMenu),t=jQuery('<div class="flipbook-sub-menu-content skin-color-bg">').appendTo(e);this.createMenuHeader(t,this.options.strings.notes,this.toggleNotesMenu),this.closeMenus(),this.notesMenuShowing=!0,this.initColors();const i=this;
1this.options.noteTypes.forEach((function(e){const n=o.createElement("div");n.innerHTML="<span>"+e.title+'</span><span aria-hidden="true" class="flipbook-icon-comment flipbook-icon flipbook-menu-btn" style="font-size: 14px; margin: 2px; padding: 12px; opacity: var(--flipbook-link-opacity);color:'+e.color+'"></span>';const s=o.createElement("input");s.type="checkbox",s.dataset.id=e.id,s.checked=e.enabled,s.onchange=function(){e.enabled=this.checked,i.updateNoteSettings(e)},n.appendChild(s),t[0].appendChild(n)}))}},updateNoteSettings:function(e){this.options.noteTypes.forEach((function(t){t.id==e.id&&(t.enabled=e.enabled)})),this.noteService.updateNoteVisibility()},bookmarkPage:function(e){var t=this.getBookmarkedPages();t.indexOf(String(e))<0&&t.push(e),this.setBookmarkedPages(t),this.thumbs.showBookmarkedThumbs(),this.bookmarkShowing||this.toggleBookmark()},removeBookmark:function(e){var t=this.getBookmarkedPages();t.indexOf(String(e))>-1&&t.splice(t.indexOf(String(e)),1),this.setBookmarkedPages(t),this.thumbs.showBookmarkedThumbs(),this.bookmarkShowing||this.toggleBookmark()},isBookmarked:function(e){return this.getBookmarkedPages().indexOf(String(e))>0},getBookmarkedPages:function(){var e=localStorage.getItem(this.options.name+"_flipbook_bookmarks");return e?e.split(";"):[]},setBookmarkedPages:function(e){localStorage.setItem(this.options.name+"_flipbook_bookmarks",e.join(";"))},printPage:function(e,t){var i,n=this.options.pages[e],s=this.options.pageTextureSize,a=this;if(n)if(n.print)i=n.print;else if(n.images&&n.images[s]){const e=o.createElement("canvas"),t=e.getContext("2d"),a=n.images[s];e.width=a.width,e.height=a.height,t.drawImage(a,0,0,a.width,a.height),i=e.toDataURL(),e.width=e.height=1,t.clearRect(0,0,1,1)}else n.src&&(i=n.src);if(i)this.togglePrintWindow(i);else{const t=this.options.cover?e:e+1;this.loadPage(t,s,(function(){a.printPage(e)}))}},downloadPage:function(e){var t,i=this.options.pages[e],n=this.options.pageTextureSize;if(i&&i.download)t=i.download;else if(i&&i.src)t=i.src;else if(i&&i.images&&i.images[n]){const e=o.createElement("canvas"),s=e.getContext("2d"),a=i.images[n];e.width=a.width,e.height=a.height,s.drawImage(a,0,0,a.width,a.height),t=e.toDataURL(),e.width=e.height=1,s.clearRect(0,0,1,1)}if(t){var s=o.createElement("a");s.href=t,s.download="page"+String(e+1),o.body.appendChild(s),s.click(),o.body.removeChild(s)}else{var a=this;const t=this.options.cover?e:e+1;this.loadPage(t,this.options.pageTextureSize,(function(){a.downloadPage(e)}))}},printFile:function(e){var t=o.createElement("iframe");t.style.display="none",t.src=e,o.body.appendChild(t),t.contentWindow.onload=function(){var e=this;setTimeout((function(){e.print()}),100)}},togglePrintWindow:function(e){var o=this,i="";if(e)i=e;else{if(o.options.printPdfUrl)return void o.printFile(o.options.printPdfUrl);if(o.options.pdfUrl)return void o.printFile(o.options.pdfUrl)}!function(){var n=t.open("about:blank","_new");if(n.document.open(),e)i='<img src="'+e+'"/>\n';else for(var s=0;s<o.options.pages.length;s++)o.options.pages[s].src&&(i+='<img src="'+o.options.pages[s].src.toString()+'"/>\n');var a=function(e){return"<html>\n<head>\n<title>Temporary Printing Window</title>\n<script>\nfunction step1() {\n setTimeout('step2()', 10);\n}\nfunction step2() {\n window.addEventListener('afterprint', function(){\n debugger;\n window.close();\n });\n window.print();\n}\n<\/script>\n<style>img {display:block;max-width:100%;page-break-after: always;}@media print header{display: none;}</style>\n</head>\n<body onLoad='step1()'>\n"+e+"</body>\n</html>\n"}(i);n.document.write(a),n.document.close()}()},thumbsVertical:function(){this.thumbsCreated},toggleExpand:function(e){var t=this.fullscreenElement;o.fullscreenElement?o.exitFullscreen?o.exitFullscreen():o.mozCancelFullScreen?o.mozCancelFullScreen():o.webkitExitFullscreen?o.webkitExitFullscreen():o.msExitFullscreen&&o.msExitFullscreen():t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()},expand:function(){},toggleAutoplay:function(e){var t=this;this.autoplay=e||!this.autoplay,this.autoplay?this.autoplayTimer=setInterval((function(){if(t.auto
1play){var e=t.options.autoplayStartPage||1;t.options.rightToLeft?t.Book.prevEnabled?t.prevPage():t.options.autoplayLoop?t.goToPage(t.options.pages.length-e+1):t.toggleAutoplay(!1):t.Book.nextEnabled?t.nextPage():t.options.autoplayLoop?t.goToPage(e):t.toggleAutoplay(!1)}}),t.options.autoplayInterval):clearInterval(t.autoplayTimer),this.toggleIcon(this.btnAutoplay,!this.autoplay)},initEasing:function(){t.jQuery.extend(t.jQuery.easing,{def:"easeOutQuad",swing:function(e,t,o,i,n){return jQuery.easing[jQuery.easing.def](e,t,o,i,n)},easeInQuad:function(e,t,o,i,n){return i*(t/=n)*t+o},easeOutQuad:function(e,t,o,i,n){return-i*(t/=n)*(t-2)+o},easeInOutQuad:function(e,t,o,i,n){return(t/=n/2)<1?i/2*t*t+o:-i/2*(--t*(t-2)-1)+o},easeInCubic:function(e,t,o,i,n){return i*(t/=n)*t*t+o},easeOutCubic:function(e,t,o,i,n){return i*((t=t/n-1)*t*t+1)+o},easeInOutCubic:function(e,t,o,i,n){return(t/=n/2)<1?i/2*t*t*t+o:i/2*((t-=2)*t*t+2)+o},easeInQuart:function(e,t,o,i,n){return i*(t/=n)*t*t*t+o},easeOutQuart:function(e,t,o,i,n){return-i*((t=t/n-1)*t*t*t-1)+o},easeInOutQuart:function(e,t,o,i,n){return(t/=n/2)<1?i/2*t*t*t*t+o:-i/2*((t-=2)*t*t*t-2)+o},easeInQuint:function(e,t,o,i,n){return i*(t/=n)*t*t*t*t+o},easeOutQuint:function(e,t,o,i,n){return i*((t=t/n-1)*t*t*t*t+1)+o},easeInOutQuint:function(e,t,o,i,n){return(t/=n/2)<1?i/2*t*t*t*t*t+o:i/2*((t-=2)*t*t*t*t+2)+o},easeInSine:function(e,t,o,i,n){return-i*Math.cos(t/n*(Math.PI/2))+i+o},easeOutSine:function(e,t,o,i,n){return i*Math.sin(t/n*(Math.PI/2))+o},easeInOutSine:function(e,t,o,i,n){return-i/2*(Math.cos(Math.PI*t/n)-1)+o},easeInExpo:function(e,t,o,i,n){return 0==t?o:i*Math.pow(2,10*(t/n-1))+o},easeOutExpo:function(e,t,o,i,n){return t==n?o+i:i*(1-Math.pow(2,-10*t/n))+o},easeInOutExpo:function(e,t,o,i,n){return 0==t?o:t==n?o+i:(t/=n/2)<1?i/2*Math.pow(2,10*(t-1))+o:i/2*(2-Math.pow(2,-10*--t))+o},easeInCirc:function(e,t,o,i,n){return-i*(Math.sqrt(1-(t/=n)*t)-1)+o},easeOutCirc:function(e,t,o,i,n){return i*Math.sqrt(1-(t=t/n-1)*t)+o},easeInOutCirc:function(e,t,o,i,n){return(t/=n/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+o:i/2*(Math.sqrt(1-(t-=2)*t)+1)+o},easeInElastic:function(e,t,o,i,n){var s=1.70158,a=0,r=i;return 0==t?o:1==(t/=n)?o+i:(a||(a=.3*n),r<Math.abs(i)?(r=i,s=a/4):s=a/(2*Math.PI)*Math.asin(i/r),-r*Math.pow(2,10*(t-=1))*Math.sin((t*n-s)*(2*Math.PI)/a)+o)},easeOutElastic:function(e,t,o,i,n){var s=1.70158,a=0,r=i;return 0==t?o:1==(t/=n)?o+i:(a||(a=.3*n),r<Math.abs(i)?(r=i,s=a/4):s=a/(2*Math.PI)*Math.asin(i/r),r*Math.pow(2,-10*t)*Math.sin((t*n-s)*(2*Math.PI)/a)+i+o)},easeInOutElastic:function(e,t,o,i,n){var s=1.70158,a=0,r=i;return 0==t?o:2==(t/=n/2)?o+i:(a||(a=n*(.3*1.5)),r<Math.abs(i)?(r=i,s=a/4):s=a/(2*Math.PI)*Math.asin(i/r),t<1?r*Math.pow(2,10*(t-=1))*Math.sin((t*n-s)*(2*Math.PI)/a)*-.5+o:r*Math.pow(2,-10*(t-=1))*Math.sin((t*n-s)*(2*Math.PI)/a)*.5+i+o)},easeInBack:function(e,t,o,n,s,a){return a==i&&(a=1.70158),n*(t/=s)*t*((a+1)*t-a)+o},easeOutBack:function(e,t,o,n,s,a){return a==i&&(a=1.70158),n*((t=t/s-1)*t*((a+1)*t+a)+1)+o},easeInOutBack:function(e,t,o,n,s,a){return a==i&&(a=1.70158),(t/=s/2)<1?n/2*(t*t*((1+(a*=1.525))*t-a))+o:n/2*((t-=2)*t*((1+(a*=1.525))*t+a)+2)+o},easeInBounce:function(e,t,o,i,n){return i-jQuery.easing.easeOutBounce(e,n-t,0,i,n)+o},easeOutBounce:function(e,t,o,i,n){return(t/=n)<1/2.75?i*(7.5625*t*t)+o:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+o:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+o:i*(7.5625*(t-=2.625/2.75)*t+.984375)+o},easeInOutBounce:function(e,t,o,i,n){return t<n/2?.5*jQuery.easing.easeInBounce(e,2*t,0,i,n)+o:.5*jQuery.easing.easeOutBounce(e,2*t-n,0,i,n)+.5*i+o}})}},FLIPBOOK.Book=function(){},FLIPBOOK.Book.prototype={rightIndex:0,goToPage:function(){},getRightIndex:function(){},canFlipNext:function(){return this.flippedright>0&&(!(1!=this.view||!this.isFocusedLeft||!this.isFocusedLeft())||!(1==this.flippedright&&!this.options.rightToLeft&&!this.options.backCover))},canFlipPrev:function(){return this.flippedleft>0&&(!(1!=this.view||!this.isFocusedRight||!this.isFocusedRight())||!(1==this.flippedleft&&this.options.rightToLeft&&!this.options.backCover))},getCurrentPageNumber:function(){var e=this.rightIndex%2==1?this.rightIndex+1:this.rightIndex;return this.options.rightToLeft?(e=this.options.pages.length-e,this.isFocusedRight()?e:e+1):this.isFocusedLeft()?e:e+1},startPageItems:function(e){e.querySelectorAll(".flipbook-page-item").forEach((function(e){if("VIDEO"==e.nodeName||"AUDIO"==e.nodeName){const t=e.getAttribute("data-url");e.querySelector("source").setAttribute("src",t),e.load(),e.style.visibility="hidden",(e.autoplay||e.controls)&&
1(e.readyState<4?e.oncanplay=function(){this.currentTime==this.duration&&this.load(),this.autoplay&&this.play(),e.style.visibility="visible"}:(e.currentTime==e.duration&&e.load(),e.autoplay&&e.play(),e.style.visibility="visible"))}}))}},FLIPBOOK.Notes=function(e){const t=this;this.main=e,this.notes=Object.values(e.options.notes||[]),this.textSelectionRect=o.createElement("span"),this.textSelectionRect.className="flipbook-add-note-rect hover";const i=o.createElement("span");i.className="add-note-btn",i.innerText=e.options.strings.addNote,i.onclick=function(){t.hideButton(),t.createNote()},i.onmousedown=function(){},this.noteButton=i,this.textSelectionRect.appendChild(i),this.hideButton(),this.notePopup=o.createElement("div"),this.notePopup.className="flipbook-note-display",this.notePopup.innerHTML='<div class="note-content"><textarea role="textbox" maxlength="500" placeholder="'+e.options.strings.typeInYourNote+'" tabindex="0" class="note-article"></textarea></div> <div aria-hidden="true" class="note-footer"> <span title="Delete Note" class="icon icon-trash-can note-button note-delete-button"><svg version="1.1" viewBox="0 0 24 24" class="svg-icon svg-fill" focusable="false"><path pid="0" d="M15.976 17.862c0 .607-.414 1.138-.885 1.138H8.893c-.47 0-.869-.513-.869-1.12L8.002 8H16l-.023 9.862zM20 6h-5V4.466C15 3.66 14.853 3 14.013 3h-3.858C9.315 3 9 3.659 9 4.466V6H4v2h2v10c0 1.843 1.153 3 2.893 3h6.198C16.84 21 18 19.852 18 18V8h2V6z"></path><path pid="1" d="M13 18h1V9h-1zM10 18h1V9h-1z"></path></svg></span></div>',this.notePopup.onmouseup=function(e){e.stopPropagation()},this.noteDelete=this.notePopup.getElementsByClassName("note-delete-button")[0],this.noteDelete.onclick=function(){t.deleteNote()},this.noteInput=this.notePopup.querySelectorAll("textarea")[0],this.noteInput.onchange=function(){const e=this.dataset.note,o=this.value;t.getNoteById(e).text=o,t.main.trigger("r3d-update-note",{note:t.getNoteById(e)})},this.updateNoteVisibility()},FLIPBOOK.Notes.prototype={initPageNotes:function(e){const t=this;this.notes.forEach((function(o){o.page==e.index+1&&t.addPageNote(o,e)})),this.addPageNoteListeners(e)},getNodeColor:function(e){let t="green";return this.main.options.noteTypes.forEach((function(o){o.id==e.type&&(t=o.color)})),t},updateNoteVisibility:function(){let e=o.documentElement;this.main.options.noteTypes.forEach((function(t){e.style.setProperty(`--note-${t.id}-opacity`,t.enabled?"1":"0"),e.style.setProperty(`--note-${t.id}-pointer-events`,t.enabled?"auto":"none")}))},addPageNote:function(e){const t=e.page,o=this.main.options.pages[t-1],i=this.getNodeColor(e)||"yellow";if(e.selectedText&&o.htmlContentInitialized){e.id||(e.id=Date.now()+Math.floor(1e3*Math.random()));const n=jQuery(o.htmlContent).find(".flipbook-textLayer"),s=`flipbook-page-note \n note-id-${e.id} \n note-page-${t} \n note-type-${e.type} \n mark-${i} \n flipbook-note-${e.id}`;n.mark(e.selectedText,{acrossElements:!0,separateWordSearch:!1,className:"mark-note "+s});const a=this;n.find(`.note-id-${e.id}`).each((function(t,i){i.dataset.note=e.id,i.onclick=function(){a.showNote(this,o,this.dataset.note),a.hideButton()},i.style.opacity="var(--note-"+e.type+"-opacity)",i.style.pointerEvents="var(--note-"+e.type+"-pointer-events)"}))}},showButton:function(){this.noteButton.style.display="block"},hideButton:function(){this.noteButton.style.display="none"},showNote(e,t,o){const i=t.htmlContent.getBoundingClientRect(),n=e.getBoundingClientRect(),s=this.getNoteById(o);jQuery(t.htmlContent)[0].appendChild(this.notePopup);const a=this.main,r=a.Book.sc*a.wrapperH/1e3,l=(n.y/a.zoom-i.y/a.zoom)/r;this.notePopup.style.top=l<150?l+40+"px":l-140+"px",this.notePopup.style.left=(n.x/a.zoom+.5*n.width/a.zoom-i.x/a.zoom)/r+"px",this.noteInput.value=s.text||"",this.noteInput.dataset.note=s.id,this.activeNote=s,s.readonly?this.disableNoteEdit():this.enableNoteEdit()},enableNoteEdit:function(){this.noteDelete.style.display="block",this.noteInput.readOnly=!1},disableNoteEdit:function(){this.noteDelete.style.display="none",this.noteInput.readOnly=!0},hideNote:function(){this.notePopup.parentNode&&this.notePopup.parentNode.removeChild(this.notePopup),this.activeNote=null},createNote:function(){this.textSelectionRect.appendChild(this.notePopup),this.notePopup.style.left="50%",this.textSelectionRect.offsetTop<150?this.notePopup.style.top="40px":this.notePopup.style.top="-140px",this.noteInput.value="",this.noteInput.focus();const e={selectedText:this.selectedTextString,page:this.selectedTextPageNumber,type:1};this.notes.push(e),this.addPageNote(e),this.noteInput.dataset.note=e.id,this.addPageNoteListeners(this.main.options.pages[e.page-1]),this.activeNote=e,this.enableNoteEdit(),this.main.trigger("r3d-update-note",{note:e})},deleteNote:function(){const e=this.main.options.pages[this.activeNote.page-1];jQuery(e.htmlContent).find(".flipbook-textLayer").unmark({className:`flipbook-note-${this.activeNote.id}`});const t=this.notes.indexOf(this.activeNote);t>-1&&this.notes.splice(t,1),this.hideNote(),this.main.trigger("r3d-delete-note",{note:this.activeNote})},getNoteById:function(e){let t=null;
1return this.notes.forEach((function(o){Number(o.id)==Number(e)&&(t=o)})),t},removeTextRect:function(){this.textSelectionRect.parentNode&&this.textSelectionRect.parentNode.removeChild(this.textSelectionRect)},addPageNoteListeners:function(e){const o=this;e.textLayerDiv&&!e.notesInitialized&&(e.textLayerDiv.addEventListener("mouseup",(function(e){if(!e.target.classList.contains("add-note-btn"))if(o.hideNote(),o.showButton(),o.selectedText=t.getSelection(),o.selectedText.toString()){o.selectedTextString=o.selectedText.toString(),o.selectedTextPageNumber=Number(this.dataset.pageNumber),o.selectedTextRange=o.selectedText.getRangeAt(0);const e=o.selectedTextRange.getBoundingClientRect(),t=this.getBoundingClientRect(),i=o.main;let n=i.Book.sc*i.wrapperH/1e3;o.textSelectionRect.style.top=(e.y/i.zoom-t.y/i.zoom)/n+"px",o.textSelectionRect.style.left=(e.x/i.zoom-t.x/i.zoom)/n+"px",o.textSelectionRect.style.width=e.width/i.zoom/n+"px",o.textSelectionRect.style.height=e.height/i.zoom/n+"px",this.appendChild(o.textSelectionRect)}else o.removeTextRect()})),e.textLayerDiv.addEventListener("mousemove",(function(e){if(o.selectedTextRange&&o.selectedText.toString()){const t=o.textSelectionRect.getBoundingClientRect(),i=o.textSelectionRect.firstChild.getBoundingClientRect();e.clientX>=t.left&&e.clientX<=t.right&&e.clientY>=i.top&&e.clientY<=t.bottom?o.showButton():o.hideButton()}})),e.notesInitialized=!0)}},FLIPBOOK.Tooltip=function(){this.domElement=o.createElement("div"),this.domElement.style.display="none",this.domElement.className="flipbook-tooltip flipbook-noselect";const e=this;this.currentPosition={x:0,y:0},o.addEventListener("scroll",(function(){e.position()}))},FLIPBOOK.Tooltip.prototype={show:function(e){this.showing||(this.domElement.style.display="block",this.showing=!0,e.text&&(this.domElement.innerText=e.text),e.parent&&e.parent.appendChild(this.domElement),e.onClick?(this.domElement.style.cursor="pointer",this.domElement.onclick=e.onClick):(this.domElement.style.cursor="auto",this.domElement.removeAttribute("onclick")),this.currentPosition=e.position,this.position())},hide:function(){this.showing&&(this.domElement.style.display="none",this.showing=!1)},position:function(){const e=this.domElement.parentNode.getBoundingClientRect();this.domElement.style.top=this.currentPosition.y-e.top-scrollY+"px",this.domElement.style.left=this.currentPosition.x-e.left-scrollX+"px"}},FLIPBOOK.Thumbnails=function(e){var t=this,i=e.options,n=e.wrapper;this.main=e,this.options=i,this.wrapper=n,this.active=null,this.thumbHolder=jQuery(o.createElement("div")).addClass("flipbook-thumbHolder flipbook-side-menu skin-color-bg").appendTo(n).css(this.options.sideMenuPosition,"0").hide(),e.createMenuHeader(this.thumbHolder,e.strings.thumbnails,e.toggleThumbs),this.bookmark=jQuery("<div>").addClass("flipbook-font").appendTo(this.thumbHolder).hide(),jQuery('<a><div class="c-p skin-color flipbook-btn">'+i.strings.bookmarkCurrentPage+"</div></a>").appendTo(this.bookmark).bind("click",(function(t){e.bookmarkPage(e.cPage[0],this),t.preventDefault(),t.stopPropagation()})),jQuery('<a><div class="c-l-p skin-color flipbook-btn">'+i.strings.bookmarkLeftPage+"</div></a>").appendTo(this.bookmark).bind("click",(function(t){e.bookmarkPage(e.cPage[0],this),t.preventDefault(),t.stopPropagation()})),jQuery('<a><div class="c-r-p skin-color flipbook-btn">'+i.strings.bookmarkRightPage+"</div></a>").appendTo(this.bookmark).bind("click",(function(t){e.bookmarkPage(e.cPage[1],this),t.preventDefault(),t.stopPropagation()})),this.search=jQuery("<div>").addClass("flipbook-search").appendTo(this.thumbHolder).hide(),this.$searchBar=jQuery('<div class="flipbook-findbar" id="findbar" deluminate_imagetype="png"><div id="findbarInputContainer"><input id="findInput" class="toolbarField" title="Find" autocapitalize="none" placeholder="'+i.strings.findInDocument+'..."></div><div class="flipbook-find-info skin-color"/></div>').appendTo(this.search),this.thumbsWrapper=jQuery(o.createElement("div")).appendTo(this.thumbHolder).addClass("flipbook-thumbsWrapper"),this.closeGrid=jQuery(o.createElement("div")).appendTo(this.thumbsWrapper).addClass("flipbook-thumbs-grid-close").bind("click",(function(e){e.stopPropagation(),e.preventDefault(),t.main.closeMenus()})),this.main.createSVGIcon("close",null,!0).appendTo(this.closeGrid),this.thumbsScroller=jQuery(o.createElement("div")).appendTo(this.thumbsWrapper).addClass("flipbook-thumbsScroller skin-color");var s=0;this.$findInput=this.$searchBar.find("#findInput").on("keyup",(function(){var e=this.value;clearTimeout(s),s=setTimeout((function(e){if(""!=e){var o=t.main,i=o.pdfService,n=o.options,s=0;if(t.hideAllThumbs(),t.clearSearchResults(),t.pagesFound=0,t.$findInfo.hide(),o.unmark(),o.searchingString=e,t.$findInfo.show().text(n.strings.noMatches),i)for(var a=0;a<i.pdfInfo.numPages;a++)i.findInPage(e,a,(function(o,i,a,r){o.length>0&&(t.pagesFound++,s+=o.length,t.$findInfo.show().text(s+" "+n.strings.matchesFound),t.main.mark(e),t.showSearchResults(o,a,r))}));else n.pagesOriginal.forEach(((i,s)=>{n.cover||s++;var a=s;n.doublePage&&(a*=2),n.doublePage&&a==2*n.pagesOriginal.length-2&&a--,o.loadPageHTML(a,(function(i,s){i.innerText.toUpperCase().search(o.searchingString.toUpperCase())>-1&&(n.doublePage&&(s/=2),t.showThumb(s),t.pagesFound++,t.$findInfo.show().text(t.pagesFound+" "+n.strings.pagesFoundContaining+' "'+e+'"'),t.main.mark(e)),0==t.pagesFound&&t.$findInfo.show().text(n.strings.noMatches)}))}))}else t.hideAllThumbs(),t.clearSearchResults(),t.$findInfo.hide(),t.main.unmark(),t.main.searchingString=e}),700,e)})),this.$findInfo=this.$searchBar.find(".flipbook-find-info"),this.thumbs=[];var a=i.pages,r=[];if(i.doublePage)for(var l=0;l<a.length;l++)0!=l&&l%2==0||r.push(a[l]);else r=a;i.pdfMode&&this.loadThumbsFromPdf(r);var h=i.thumbSize,p=i.thumbSize*i.pageWidth/i.pageHeight;r.forEach(((n,s)=>{var a=n.thumb;if(!n.empty){var l,d=jQuery("<div>").addClass("flipbook-thumb").appendTo(t.thumbsScroller).attr("data-thumb-index",s).width(p).height(h),c=jQuery("<sp
1an>").appendTo(d).addClass("thumb-btn-close").bind("click",(function(t){t.stopPropagation(),t.preventDefault(),e.removeBookmark(jQuery(this).parent().attr("data-thumb-index"))}));if(e.createSVGIcon("close",null,!0).appendTo(c),this.thumbs.push(d),n.thumbCanvas)l=jQuery(n.thumbCanvas);else{if(!a)return;l=jQuery("<img/>").attr("src",a)}l.appendTo(d);var g=i.doublePage&&i.pages.length%2==0&&s==r.length-1,u=i.doublePage&&0==s,b=i.doublePage&&!u&&!g;if(g)l.height(h).width(p).attr("page-title",2*s),jQuery(o.createElement("span")).text(String(2*s)).appendTo(d).addClass("skin-color").addClass("flipbook-thumb-num");else if(b)d.width(2*p),l.height(h).width(2*p).attr("page-title",2*s+1),jQuery(o.createElement("span")).text(String(2*s)+"-"+String(2*s+1)).appendTo(d).addClass("skin-color").addClass("flipbook-thumb-num");else{l.height(h).width(p).attr("page-title",s+1);var m=String(s+1);this.options.pages[s]&&this.options.pages[s].name&&(m=this.options.pages[s].name),jQuery(o.createElement("span")).text(m).appendTo(d).addClass("skin-color").addClass("flipbook-thumb-num")}"overlay"==i.thumbsStyle&&(i.thumbsCloseOnClick=!0),l.bind("click",(function(o){o.stopPropagation(),o.preventDefault();var n=Number(jQuery(this).attr("page-title"));i.rightToLeft&&(n=i.pages.length-n+1),e.goToPage(n),"search"!=t.active&&i.thumbsCloseOnClick&&e.toggleThumbs(!1)}))}})),e.initColors()},FLIPBOOK.Thumbnails.prototype={loadThumbsFromPdf:function(e){for(var t=this.main.pdfDocument._pdfInfo.numPages,i=0;i<t;i++){var n=o.createElement("canvas");e[i].thumbCanvas=n}this.loadThumbFromPdf(0,e)},loadVisibleThumbs:function(){},loadThumbFromPdf:function(e,t){var o=this;this.main.pdfDocument.getPage(e+1).then((function(e){var i=e.getViewport({scale:1}),n=o.options.thumbSize/i.height,s=e.getViewport({scale:n}),a=t[e._pageIndex].thumbCanvas,r=a.getContext("2d");a.height=s.height,a.width=s.width;var l={canvasContext:r,viewport:s};e.cleanupAfterRender=!0,e.render(l).promise.then((function(){e.cleanup(),e._pageIndex+1<o.main.pdfDocument._pdfInfo.numPages&&o.loadThumbFromPdf(e._pageIndex+1,t)}))}))},showAllThumbs:function(){jQuery(".flipbook-thumb").show(),this.clearSearchResults()},hideAllThumbs:function(){jQuery(".flipbook-thumb").hide()},clearSearchResults:function(){jQuery(".flipbook-search-match").remove()},showSearchResults:function(e,t,o){var i=this,n=this.main.options,s=e.length,a=Number(t+1);jQuery('<div data-page="'+a+'" style="order: '+t+'" class="flipbook-search-match"><div class="flipbook-search-match-title"><span style="float:left;"><strong>Page '+a+'</strong></span><span style="float:right;">'+s+' matches</span></div><div class="flipbook-search-match-text">'+o+"</div></div>").appendTo(i.thumbsScroller).bind("click",(function(e){e.stopPropagation(),e.preventDefault();var t=Number(this.dataset.page);t=n.rightToLeft&&n.pages&&n.pages.length?n.pages.length-t+1:t,i.main.goToPage(t)}))},showThumb:function(e){this.thumbs[e]&&this.thumbs[e].show()},hideThumb:function(e){this.thumbs[e].hide()},showBookmarks:function(){jQuery(".thumb-btn-close").show(),this.showBookmarkedThumbs(),this.clearSearchResults(),this.bookmark.show(),this.setTitle(this.options.strings.bookmarks),this.main.updateCurrentPage(),this.active="bookmarks",this.thumbHolder.removeClass("flipbook-thumbs-grid")},showSearch:function(){this.clearSearchResults(),this.hideAllThumbs(),this.search.show(),this.$findInfo.hide(),jQuery(".thumb-btn-close").hide(),this.setTitle(this.options.strings.search),this.$findInput.val("").focus(),this.active="search",this.thumbHolder.removeClass("flipbook-thumbs-grid")},showBookmarkedThumbs:function(){var e=this.main.getBookmarkedPages();this.hideAllThumbs();for(var t=0;t<e.length;t++){var o=e[t];o&&this.showThumb(o)}},show:function(){this.setTitle(this.options.strings.thumbnails),this.bookmark.hide(),this.search.hide(),this.thumbHolder.show(),this.main.thumbsVertical(),this.showAllThumbs(),jQuery(".thumb-btn-close").hide(),this.loadVisibleThumbs(),this.main.resize(),this.active="thumbs","overlay"==this.main.options.thumbsStyle&&this.thumbHolder.addClass("flipbook-thumbs-grid")},hide:function(){this.thumbHolder.hide(),this.main.resize(),this.active=null},setTitle:function(e){this.thumbHolder.find(".flipbook-menu-title").text(e)}},FLIPBOOK.Lightbox=function(e,t,i){var n=this;this.context=e,this.options=i,this.$document=jQuery("document"),this.$body=jQuery("body"),this.$html=jQuery("html"),this.$window=jQuery("window"),e.$elem.bind("click",(function(e){if(!t.disposed)return n.openLightbox(),e.stopPropagation(),!1})),n.overlay=jQuery(o.createElement("div")).attr("style",i.lightboxCSS).addClass("flipbook-overlay").css("display","none").css("top",n.options.lightboxMarginV).css("bottom",n.options.lightboxMarginV).css("left",n.options.lightboxMarginH).css("right",n.options.lightboxMarginH).appendTo("body"),n.options.lightboxCloseOnClick&&jQuery("body").bind("click",(function(e){var t=jQuery(e.target);(!t.parents().hasClass("flipbook-overlay")||t.hasClass("flipbook-bookLayer")||t.hasClass("flipbook-carousel-slide"))&&n.closeLightbox()}
1)),i.lightboxBackground&&n.overlay.css("background",i.lightboxBackground),i.lightboxBackgroundColor&&n.overlay.css("background",i.lightboxBackgroundColor),i.lightboxBackgroundPattern&&n.overlay.css("background","url("+i.lightboxBackgroundPattern+") repeat"),i.lightboxBackgroundImage&&(n.overlay.css("background","url("+i.lightboxBackgroundImage+") no-repeat"),n.overlay.css("background-size","cover"),n.overlay.css("background-position","center center")),o.addEventListener("keydown",(function(e){"Escape"===e.key&&n.closeLightbox()})),n.wrapper=jQuery(o.createElement("div")).css("height","auto").appendTo(n.overlay),n.wrapper.attr("class","flipbook-wrapper-transparent").css("margin","0px auto").css("padding","0px").css("height","100%").css("width","100%"),t.appendTo(n.wrapper),jQuery("<div/>").appendTo(n.wrapper).addClass("flipbook-lightbox-toolbar")},FLIPBOOK.Lightbox.prototype={openLightbox:function(){FLIPBOOK.lightboxOpened||(FLIPBOOK.lightboxOpened=!0,this.overlay.css("display","none"),this.overlay.fadeIn("slow"),this.$body.addClass("flipbook-overflow-hidden"),this.$html.addClass("flipbook-overflow-hidden"),this.$window.trigger("r3d-lightboxopen"),this.options.deeplinkingEnabled||t.history.pushState(null,"",t.location.href),this.context.options.password&&!this.context.pdfinitStarted&&this.context.initialized&&this.context.initPdf())},closeLightbox:function(e){FLIPBOOK.lightboxOpened&&this.context.Book&&this.context.Book.enabled&&(FLIPBOOK.lightboxOpened=!1,this.overlay.fadeOut("fast"),this.$body.removeClass("flipbook-overflow-hidden"),this.$html.removeClass("flipbook-overflow-hidden"),this.$window.trigger("r3d-lightboxclose"),this.context.trigger("lightboxclose"),jQuery(this.context.fullscreenElement).removeClass("flipbook-browser-fullscreen"),this.context.lightboxEnd(),e||this.options.deeplinkingEnabled||history.back())}}}(jQuery,window,document),FLIPBOOK.onPageLinkClick=function(e){var t=e.dataset.bookid,o=e.dataset.page;o&&FLIPBOOK.books[t].goToPage(Number(o));var i=e.dataset.url;i&&window.open(i,"_blank")},FLIPBOOK.easings={easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInSine:function(e){return 1-Math.cos(e*Math.PI/2)},easeOutSine:function(e){return Math.sin(e*Math.PI/2)},easeInOutSine:function(e){return-(Math.cos(Math.PI*e)-1)/2}},FLIPBOOK.animate=function({from:e,to:t,delay:o,duration:i,easing:n="easeOutQuad",step:s,complete:a}){const r=performance.now();function l(o){const h=o-r,p=Math.min(h/i,1),d=e+(t-e)*FLIPBOOK.easings[n](p);s(d),p<1?requestAnimationFrame(l):a()}o?setTimeout((()=>{requestAnimationFrame(l)}),o):requestAnimationFrame(l)};
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.