window.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll("a"),o=Array.from(e).filter((e=>e.href.endsWith(".pdf")&&e.hostName==window.location.hostName));if(o.length>0){const e=r3d_frontend.rootFolder,s=r3d_frontend.options;!function e(o){"object"==typeof o&&null!==o&&Object.entries(o).forEach((([t,n])=>{"object"==typeof n&&null!==n?e(n):isNaN(n)||""===n?"true"===n?o[t]=!0:"false"===n?o[t]=!1:""===n&&delete o[t]:o[t]=Number(n)}))}(s),s.lightBox=!0,s.assets={preloader:e+"assets/images/preloader.jpg",left:e+"assets/images/left.png",overlay:e+"assets/images/overlay.jpg",flipMp3:e+"assets/mp3/turnPage.mp3",shadowPng:e+"assets/images/shadow.png",spinner:e+"assets/images/spinner.gif"},s.pdfjsworkerSrc=e+"js/libs/pdf.worker.min.js",s.flipbookSrc=e+"js/flipbook.min.js",s.cMapUrl=e+"assets/cmaps/",window.FLIPBOOK?o.forEach((e=>r(e,s))):Promise.all([(n=e+"js/flipbook.min.js",new Promise((function(e,o){var t=document.createElement("script"),r=document.getElementsByTagName("script")[0];t.async=!0,t.src=n,t.onload=t.onreadystatechange=function(o,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t=void 0,n||e())},t.onerror=function(e){o(e)},r.parentNode.insertBefore(t,r)}))),(t=e+"css/flipbook.min.css",new Promise((function(e,o){var n=document.createElement("link"),r=document.getElementsByTagName("link")[0]||document.getElementsByTagName("script")[0];n.rel="stylesheet",n.href=t,n.onload=()=>e(),n.onerror=e=>o(e),r?r.parentNode.insertBefore(n,r):document.head.appendChild(n)})))]).then((()=>{o.forEach((e=>r(e,s)))})).catch((e=>{console.error("An error occurred while loading the resources:",e)}))}var t,n;function r(e,o){o.pdfUrl=e.href,jQuery(e).flipBook(o)}}));