1(()=>{"use strict";const e=window.React,t=window.ReactDOM;function r({attributes:t,source:r,RichText:n,setAttributes:o,__,wrapper:i,previewSrc:a,showActions:l=!0,showTitle:s=!0,isImagesFlipbook:c=!1,onTrack:d}){const{downloadButton:p,protect:u,downloadButtonText:f,fullscreenButton:m,fullscreenButtonText:h,showName:g,titleFontSize:w,title:y,adobeEmbedder:b,newWindow:v,actionsPosition:E}=t;(0,e.useEffect)(()=>{},[]);const k=!0===b?"adobe":!1===b?"default":b||"default";return(0,e.createElement)(e.Fragment,null,"adobe"!==k&&(0,e.createElement)("div",{className:`pdfp_header pdfp_header_${E}`},g&&s&&(0,e.createElement)(n,{tagName:"p",value:y,allowedFormats:[],style:{fontSize:w,margin:"20px"},onChange:e=>o({title:e}),placeholder:__("Title","pdf-poster")}),(p&&!c||m)&&!u&&l&&(0,e.createElement)("div",{className:"cta_wrapper"},p&&!u&&!c&&(0,e.createElement)("a",{className:"pdfp_download pdfp_download_btn button",download:!0,target:"blank",href:r,rel:"noreferrer",onClick:()=>d?.("download")},(()=>{let e="Download File";return e=f,e})()),m&&!u&&(0,e.createElement)("a",{className:"button",href:c?"#":"flipbook"===k?r:a,rel:"noreferrer",onClick:e=>{if(d?.("fullscreen"),"_self"!==e.currentTarget.target)return;if(e.preventDefault(),["flipbook","slider"].includes(k))return void window.dispatchEvent(new CustomEvent("PDFP_TOGGLE_FLIPBOOK_FULLSCREEN",{detail:{wrapper:i}}));const t=i?.querySelector(".iframe_wrapper");"function"==typeof t?.requestFullscreen?Promise.resolve(t.requestFullscreen()).catch(()=>{i?.classList.add("pdfp_fullscreen_opened")}):/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!c&&r?window.open(r,"_blank","noreferrer"):i?.classList.add("pdfp_fullscreen_opened")},target:(()=>{let e="_self";return e=v?"blank":"_self",e})()},(()=>{let e="View Fullscreen";return e=h,e})()))))}const n=e=>{if("string"!=typeof e||!e.includes("viewer.html"))return e;try{return new URL(e,window.location.origin).searchParams.get("file")||e}catch(t){return e}},o=(e,__,t)=>t?`${__("The PDF file could not be found (404).","pdf-poster")} ${__("The saved link may point at a file that was moved, renamed or deleted -- re-select the file on this poster to repair it.","pdf-poster")}\n${e}`:__("This document is currently unavailable.","pdf-poster"),i=(e,__)=>{const t=String(e||"").split(";")[0].trim().toLowerCase();return t.startsWith("image/")?__("This address points at an image, not a PDF. The saved media item may have been replaced -- re-select the file on this poster.","pdf-poster"):"text/html"===t?__("The server returned a web page instead of the PDF. The file is usually blocked by a login requirement, a hotlink protection rule or a security plugin.","pdf-poster"):null},a=function({__,attributes:t,source:r=pdfp?.placeholder||"http://localhost/freemius/wp-content/uploads/2022/02/temp.pdf",className:a,isBackend:l=!1,isSelected:s=!1,onGViewError:c}){const{hrScroll:d,title:p,socialShare:u}=t,{position:f}=u||{},[m,h]=(0,e.useState)(!1),[g,w]=(0,e.useState)(null),[y,b]=(0,e.useState)(0),v=(0,e.useRef)(!1);v.current=m;const E=(0,e.useRef)(null),k=l||"undefined"!=typeof pdfp&&!!pdfp?.canEdit;return(0,e.useEffect)(()=>{if(w(null),h(!1),E.current=null,!r)return;let e;(async e=>{if(e.includes("google.com/gview"))return;const t=n(e);try{const e=await fetch(t,{method:"HEAD"});if(E.current={status:e.status,contentType:e.headers.get("Content-Type")},404===e.status)return void w(o(t,__,k));if(!e.ok)return void console.warn(`PDF pre-check returned HTTP ${e.status}. Continuing load attempt.`);const r=i(e.headers.get("Content-Type"),__);if(r)return void w(k?`${r}\n${t}`:__("This document is currently unavailable.","pdf-poster"));const n=e.headers.get("Content-Length");n&&0===parseInt(n,10)&&w(__("The PDF file is empty or corrupted (0 bytes).","pdf-poster"))}catch(e){console.warn("PDF pre-check failed (likely CORS). Continuing load attempt.",e)}})(r),r.includes("google.com/gview")&&(e=setTimeout(()=>{v.current||"function"!=typeof c||(console.warn("Google Docs Viewer took too long to load. Falling back to PDF.js."),c())},1e4));const t=e=>{if(!e.data||"PDFP_ERROR"!==e.data.type)return;const t=e.data.message||"";/missing pdf/i.test(t)?w(o(n(r),__,k)):/unexpected server response/i.test(t)?w(((e,__,t,r)=>{if(!t)return __("This document is currently unavailable.","pdf-poster");const n=r&&r.contentType?i(r.contentType,__):null;if(n)return`${n}\n${e}`;const o=r&&r.status?__("The server answered with HTTP %d.","pdf-poster").replace("%d",r.status):__("The server did not return the file as expected.","pdf-poster");return`${__("The PDF could not be loaded.","pdf-poster")} ${o}
1 ${__("A 403 usually means a security plugin, hotlink protection or the server's permissions are blocking the file; a 5xx means the server itself failed.","pdf-poster")}\n${e}`})(n(r),__,k,E.current)):w(t||__("An error occurred while loading the PDF.","pdf-poster"))};return window.addEventListener("message",t),()=>{e&&clearTimeout(e),window.removeEventListener("message",t)}},[r,c,__,y,k]),(0,e.createElement)(e.Fragment,null,r.includes("dropbox.com")?(0,e.createElement)("div",{className:"dropbox-embed-sdfsdfsdf",style:{border:"2px solid #ddd"}},(0,e.createElement)("p",null,__("Preview is not available for dropbox","pdf-poster"))):(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:`iframe_wrapper ${a} ${d?"pdfp_horizontal_scroll":""}`},l&&!s&&(0,e.createElement)("div",{className:"pdfp-embed-overlay"}),!(l&&s)&&(0,e.createElement)("div",{className:"pdfp_frame_overlay"}),g?(C=g,(0,e.createElement)("div",{className:"pdfp_error_container"},(0,e.createElement)("div",{className:"pdfp_error_box"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},(0,e.createElement)("circle",{cx:"12",cy:"12",r:"10"}),(0,e.createElement)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,e.createElement)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})),String(C).split("\n").map((t,r)=>(0,e.createElement)("p",{key:r,className:0===r?void 0:"pdfp_error_detail"},t)),(0,e.createElement)("button",{onClick:()=>b(e=>e+1),className:"pdfp_retry_btn"},__("Retry","pdf-poster"))))):(0,e.createElement)("iframe",{key:y,className:"pdfp_iframe",src:r,title:p,onLoad:()=>{h(!0)}}),(0,e.createElement)("span",{className:"close",onClick:e=>{const t=e.currentTarget?.ownerDocument||document;t.fullscreenElement&&t.exitFullscreen()}},"Ã"))));var C},l=e=>{try{return new URL(e,window.location.href)}catch(e){return null}},s=e=>/^(blob:|data:)/i.test(e);function c(e){if("string"!=typeof e||!e)return!1;if(s(e))return!0;const t=l(e);return!!t&&(t.host===function(){const e="undefined"!=typeof pdfp?pdfp?.dir:null,t=e?l(e):null;return t?t.host:window.location.host}()||t.host===window.location.host)}function d(e){if("string"!=typeof e||!e||s(e))return e;const t=l(e);return t&&c(e)?`${t.pathname}${t.search}${t.hash}`:e}const p=({attributes:t,source:r,viewerType:n="flipbook",isRtl:o=!1,theme:i="light"})=>{const a=(0,e.useRef)(null),l=(0,e.useRef)(null),{initialPage:s,print:c,downloadButton:p,thumbMenu:u,height:f,onlyPDF:m,popupOptions:h,sidebarOpen:g,fullscreenButton:w,socialShare:y,actionsPosition:b,flipbookSound:v=!0,progressiveLoading:E=!0,keyboardNav:k=!1}=t||{},C=d(r||t?.file?.url||t?.file),x=Array.isArray(t?.flipbookImages)?t.flipbookImages.filter(Boolean).map(d):[],_="images"===t?.flipbookSourceType&&x.length>0,$=_?x:C,S=h?.enabled,[T,L]=(0,e.useState)(!1),F=()=>a.current?.ownerDocument||document;(0,e.useEffect)(()=>{const e=()=>{const e=!!F().fullscreenElement;L(e),(()=>{const e=a.current;if(!e)return;const t=F(),r=t.fullscreenElement;if(!r||r!==e&&!e.contains(r))return void e.querySelectorAll(".pdfp_dflip_close").forEach(e=>e.remove());if(r.querySelector(":scope > .pdfp_dflip_close"))return;const n=t.createElement("span");n.className="pdfp_dflip_close",n.setAttribute("role","button"),n.setAttribute("tabindex","0"),n.setAttribute("aria-label","Close fullscreen"),n.innerHTML="×",n.addEventListener("click",()=>{t.fullscreenElement&&t.exitFullscreen()}),r.appendChild(n)})(),l.current&&window.dispatchEvent(new Event("resize"))},t=e=>{const t=a.current?.closest(".pdfp_wrapper");e.detail?.wrapper===t&&l.current&&(l.current.switchFullscreen?l.current.switchFullscreen():l.current.toggleFullscreen&&l.current.toggleFullscreen())},r=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&((async()=>{try{if(a.current&&window.jQuery&&(C||_)){if("true"===a.current.dataset.dflipInitialized)return;const e={viewerType:"scroll"===n?"reader":"slider"===n?"slider":"flipbook",openPage:s>0?s:1,showDownloadControl:!_&&p,showPrintControl:c,autoOpenThumbnail:g,backgroundColor:"dark"===i?"#2a2a2e":"transparent",controlsPosition:b,enableSound:!1!==v,disableRange:!1===E,arrowKeysAction:k?"nav":"none",direction:o?2:1},t=[];u||t.push("thumbnail"),w||t.push("fullScreen"),y&&!y.enabled&&t.push("share"),t.length>0&&(e.hideControls=t.join(",")),m&&(e.hideToolbar=!0,e.allControls="");const r=!!F().fullscreenElement;S||r?e.height="100%":f&&(e.height="object"==typeof f?f.desktop:f),a.current.dataset.dflipInitialized="true",l.current=window.jQuery(a.current).flipBook($,e);try{const e=l.current;a.current.__pdfpFlipbook=e&&(e[0]||e)||null}catch(e){console.warn("PDF Poster: could not publish flipbook geometry",e)}}}catch(e){console.error("Error loading dFlip:",e)}})(),window.dispatchEvent(new Event("resize")))})},{threshold:.1});a.current&&r.observe(a.current);const d=F();return d.addEventListener("fullscreenchange",e),window.addEventListener("PDFP_TOGGLE_FLIPBOOK_FULLSCREEN",t),()=>{if(r.disconnect(),d.removeEventListener("fullscreenchange",e),window.removeEventListener("PDFP_TOGGLE_FLIPBOOK_FULLSCREEN",t),l.current&&"function"==typeof l.current.dispose)try{l.current.dispose()}catch(e){console.warn("dFlip dispose error:",e)}if(a.current){a.current.dataset.dflipInitialized="false";try{a.current.innerHTML=""}catch(e){}}}},[a,t,C,S,n]);const M="object"==typeof f?f.desktop:f,A=S||T?"100%":M||"auto";return(0,e.createElement)("div",{className:"dflipWrapper "+(S||T?"pdfp_popup_wrapper":""),style:{height:A}},(0,e.createElement)("div",{className:"iframe_wrapper"},(0,e.createElement)("div",{ref:a,className:"dflip-container"}),(0,e.createElement)("span",{className:"close",onClick:()=>{const e=F();if(e.fullscreenElement)e.exitFullscreen();else{const e=a.current?.closest(".pdfp_wrapper");e&&e.classList.remove("pdfp_fullscreen_opened")}}},"Ã")))};function u(e){return e?"string"==typeof e&&"number"==typeof parseInt(e)?e:`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px;`:null}function f({attributes:t,id:r="pdfp"}){const[n,o]=(0,e.useState)(null),{height:i,popupBtnStyle:a,popupOptions:l,width:s,alignment:c,btnStyles:d}=t,p=l||{},f=p.btnStyle||{},m=d||f||{};return(0,e.useEffect)(()=>{let e=`\n .${r} .cta_wrapper a, \n .${r} .cta_wrapper button, \n .${r} .popup-btn{\n padding: ${u(m.padding)}\n color: ${m.color}; \n background: ${m.background}; \n border-radius: 3px;\n border:0;\n cursor: pointer;\n font-size: ${m.fontSize};\n min-height: 0px;\n line-height: 1.35em;\n text-transform: initial;\n }\n #${r} {\n display: flex;\n justify-content: ${c};\n }\n #${r} .pdfp_wrapper {\n width: 100%;\n }\n \n #${r} .iframe_wrapper {\n height: ${i?.desktop||i};\n width: ${s?.desktop||s};\n }\n \n #${r} .pdfp_wrapper iframe {\n height: 100%;\n width: 100%;\n }\n .${r} .popup-trigger {\n display: flex;\n justify-content: ${p.triggerAlignment};\n }\n .${r} .popup-trigger img, .${r} .popup-trigger-text {\n height: ${p.imageHeight};\n width: ${p.imageWidth};\n }\n .${r}btn {\n background: ${a?.background}; \n color: ${a?.color}; \n padding: ${u(a?.padding)}\n } `.replace(/\s\s+/g," ").trim();"object"==typeof i&&(e+=` @media only screen and (max-width: 1024px) {\n #${r} .iframe_wrapper {\n height: ${i.tablet||i};\n width: ${s.tablet||s};\n }\n }\n @media only screen and (max-width: 640px) {\n #${r}
1 .iframe_wrapper{\n height: ${i.mobile||i} !important;\n width: ${s.mobile||s} !important;\n }\n }`.replace(/\s\s+/g," ").trim()),o(e)},[a,r,i,m,s,c,p]),(0,e.createElement)("style",null,n)}const m=({height:t="24px",width:r="24px",...n})=>(0,e.createElement)("svg",{version:"1.1",height:t,width:r,xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 512 512",style:{enableBackground:"new 0 0 512 512"},...n},(0,e.createElement)("path",{style:{fill:"#1976D2"},d:"M448,0H64C28.704,0,0,28.704,0,64v384c0,35.296,28.704,64,64,64h384c35.296,0,64-28.704,64-64V64 C512,28.704,483.296,0,448,0z"}),(0,e.createElement)("path",{style:{fill:"#FAFAFA"},d:"M432,256h-80v-64c0-17.664,14.336-16,32-16h32V96h-64l0,0c-53.024,0-96,42.976-96,96v64h-64v80h64 v176h96V336h48L432,256z"}),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null)),h=({height:t="24px",width:r="24px",...n})=>(0,e.createElement)("svg",{height:t,width:r,viewBox:"0 0 176 176",xmlns:"http://www.w3.org/2000/svg",...n},(0,e.createElement)("g",{id:"Layer_2","data-name":"Layer 2"},(0,e.createElement)("g",{id:"linkedin"},(0,e.createElement)("rect",{id:"background",fill:"#0077b5",height:"176",rx:"24",width:"176"}),(0,e.createElement)("g",{id:"icon",fill:"#fff"},(0,e.createElement)("path",{d:"m63.4 48a15 15 0 1 1 -15-15 15 15 0 0 1 15 15z"}),(0,e.createElement)("path",{d:"m60 73v66.27a3.71 3.71 0 0 1 -3.71 3.73h-15.81a3.71 3.71 0 0 1 -3.72-3.72v-66.28a3.72 3.72 0 0 1 3.72-3.72h15.81a3.72 3.72 0 0 1 3.71 3.72z"}),(0,e.createElement)("path",{d:"m142.64 107.5v32.08a3.41 3.41 0 0 1 -3.42 3.42h-17a3.41 3.41 0 0 1 -3.42-3.42v-31.09c0-4.64 1.36-20.32-12.13-20.32-10.45 0-12.58 10.73-13 15.55v35.86a3.42 3.42 0 0 1 -3.37 3.42h-16.42a3.41 3.41 0 0 1 -3.41-3.42v-66.87a3.41 3.41 0 0 1 3.41-3.42h16.42a3.42 3.42 0 0 1 3.42 3.42v5.78c3.88-5.82 9.63-10.31 21.9-10.31 27.18 0 27.02 25.38 27.02 39.32z"}))))),g=({height:t="24px",width:r="24px",...n})=>(0,e.createElement)("svg",{height:t,width:r,viewBox:"0 0 176 176",xmlns:"http://www.w3.org/2000/svg",...n},(0,e.createElement)("g",{id:"Layer_2","data-name":"Layer 2"},(0,e.createElement)("g",{id:"mailto"},(0,e.createElement)("rect",{id:"background",fill:"#ea4335",height:"176",rx:"24",width:"176"}),(0,e.createElement)("g",{id:"icon",transform:"translate(40 40) scale(0.1875)",fill:"#fff"},(0,e.createElement)("path",{d:"M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"}))))),w=({height:t="24px",width:r="24px",...n})=>(0,e.createElement)("svg",{height:t,viewBox:"0 0 176 176",width:r,xmlns:"http://www.w3.org/2000/svg",...n},(0,e.createElement)("g",{id:"Layer_2","data-name":"Layer 2"},(0,e.createElement)("g",{id:"pinterest"},(0,e.createElement)("rect",{id:"background",fill:"#d50012",height:"176",rx:"24",width:"176"}),(0,e.createElement)("path",{id:"icon",d:"m90.58 33c-30 0-45.16 21.52-45.16 39.47 0 10.87 4.11 20.53 12.94 24.14a2.17 2.17 0 0 0 3.16-1.61c.3-1.11 1-3.91 1.29-5.07.43-1.59.26-2.14-.91-3.52-2.54-3-4.17-6.89-4.17-12.39 0-16 12-30.27 31.11-30.27 17 0 26.29 10.37 26.29 24.22 0 18.22-8.06 33.59-20 33.59-6.61 0-11.56-5.47-10-12.17 1.9-8 5.58-16.64 5.58-22.42 0-5.17-2.78-9.49-8.52-9.49-6.76 0-12.19 7-12.19 16.36a24.3 24.3 0 0 0 2 10s-6.92 29.29-8.13 34.43c-2.41 10.21-.36 22.74-.19 24a.84.84 0 0 0 1.5.37c.63-.82 8.67-10.75 11.41-20.68.77-2.81 4.44-17.37 4.44-17.37 2.2 4.19 8.61 7.88 15.44 7.88 20.31 0 34.09-18.52 34.09-43.3.02-18.72-15.86-36.17-39.98-36.17z",fill:"#fff"})))),y=({height:t="24px",width:r="24px",...n})=>(0,e.createElement)("svg",{height:t,width:r,"enable-background":"new 0 0 1227 1227",viewBox:"0 0 1227 1227",xmlns:"http://www.w3.org/2000/svg",...n},(0,e.createElement)("path",{d:"m654.53 592.55 276.12 394.95h-113.32l-225.32-322.28v-.02l-33.08-47.31-263.21-376.5h113.32l212.41 303.85z"}),(0,e.createElement)("path",{d:"m1094.42 0h-961.84c-73.22 0-132.58 59.36-132.58 132.58v961.84c0 73.22 59.36 132.58 132.58 132.58h961.84c73.22 0 132.58-59.36 132.58-132.58v-961.84c0-73.22-59.36-132.58-132.58-132.58zm-311.8 1040.52-228.01-331.84-285.47 331.84h-
173.78l326.49-379.5-326.49-475.17h249.02l215.91 314.23 270.32-314.23h73.78l-311.33 361.9h-.02l338.6 492.77z"}),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null),(0,e.createElement)("g",null)),b=({attributes:t})=>{const{socialShare:r}=t,{enabled:n,facebook:o,twitter:i,linkedin:a,pinterest:l,mailto:s,position:c}=r;return n?(0,e.createElement)("div",{className:`pdfp_social_share pdfp_social_icon_${c}`},o&&(0,e.createElement)("a",{href:`https://www.facebook.com/sharer/sharer.php?u=${window.location.href}`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)(m,{height:"40px",width:"40px"})),i&&(0,e.createElement)("a",{href:`https://twitter.com/intent/tweet?text=${window.location.href}`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)(y,{height:"40px",width:"40px"})),a&&(0,e.createElement)("a",{href:`https://www.linkedin.com/shareArticle?mini=true&url=${window.location.href}`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)(h,{height:"40px",width:"40px"})),l&&(0,e.createElement)("a",{href:`https://pinterest.com/pin/create/button/?url=${window.location.href}`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)(w,{height:"40px",width:"40px"})),s&&(0,e.createElement)("a",{href:`mailto:?subject=${encodeURIComponent(document.title)}&body=${encodeURIComponent(window.location.href)}`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)(g,{height:"40px",width:"40px"}))):null},v=({height:t="24px",width:r="24px",...n})=>(0,e.createElement)("svg",{width:r,height:t,viewBox:"-4 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},(0,e.createElement)("path",{d:"M25.6686 26.0962C25.1812 26.2401 24.4656 26.2563 23.6984 26.145C22.875 26.0256 22.0351 25.7739 21.2096 25.403C22.6817 25.1888 23.8237 25.2548 24.8005 25.6009C25.0319 25.6829 25.412 25.9021 25.6686 26.0962ZM17.4552 24.7459C17.3953 24.7622 17.3363 24.7776 17.2776 24.7939C16.8815 24.9017 16.4961 25.0069 16.1247 25.1005L15.6239 25.2275C14.6165 25.4824 13.5865 25.7428 12.5692 26.0529C12.9558 25.1206 13.315 24.178 13.6667 23.2564C13.9271 22.5742 14.193 21.8773 14.468 21.1894C14.6075 21.4198 14.7531 21.6503 14.9046 21.8814C15.5948 22.9326 16.4624 23.9045 17.4552 24.7459ZM14.8927 14.2326C14.958 15.383 14.7098 16.4897 14.3457 17.5514C13.8972 16.2386 13.6882 14.7889 14.2489 13.6185C14.3927 13.3185 14.5105 13.1581 14.5869 13.0744C14.7049 13.2566 14.8601 13.6642 14.8927 14.2326ZM9.63347 28.8054C9.38148 29.2562 9.12426 29.6782 8.86063 30.0767C8.22442 31.0355 7.18393 32.0621 6.64941 32.0621C6.59681 32.0621 6.53316 32.0536 6.44015 31.9554C6.38028 31.8926 6.37069 31.8476 6.37359 31.7862C6.39161 31.4337 6.85867 30.8059 7.53527 30.2238C8.14939 29.6957 8.84352 29.2262 9.63347 28.8054ZM27.3706 26.1461C27.2889 24.9719 25.3123 24.2186 25.2928 24.2116C24.5287 23.9407 23.6986 23.8091 22.7552 23.8091C21.7453 23.8091 20.6565 23.9552 19.2582 24.2819C18.014 23.3999 16.9392 22.2957 16.1362 21.0733C15.7816 20.5332 15.4628 19.9941 15.1849 19.4675C15.8633 17.8454 16.4742 16.1013 16.3632 14.1479C16.2737 12.5816 15.5674 11.5295 14.6069 11.5295C13.948 11.5295 13.3807 12.0175 12.9194 12.9813C12.0965 14.6987 12.3128 16.8962 13.562 19.5184C13.1121 20.5751 12.6941 21.6706 12.2895 22.7311C11.7861 24.0498 11.2674 25.4103 10.6828 26.7045C9.04334 27.3532 7.69648 28.1399 6.57402 29.1057C5.8387 29.7373 4.95223 30.7028 4.90163 31.7107C4.87693 32.1854 5.03969 32.6207 5.37044 32.9695C5.72183 33.3398 6.16329 33.5348 6.6487 33.5354C8.25189 33.5354 9.79489 31.3327 10.0876 30.8909C10.6767 30.0029 11.2281 29.0124 11.7684 27.8699C13.1292 27.3781 14.5794 27.011 15.985 26.6562L16.4884 26.5283C16.8668 26.4321 17.2601 26.3257 17.6635 26.2153C18.0904 26.0999 18.5296 25.9802 18.976 25.8665C20.4193 26.7844 21.9714 27.3831 23.4851 27.6028C24.7601 27.7883 25.8924 27.6807 26.6589 27.2811C27.3486 26.9219 27.3866 26.3676 27.3706 26.1461ZM30.4755 36.2428C30.4755 38.3932 28.5802 38.5258 28.1978 38.5301H3.74486C1.60224 38.5301 1.47322 36.6218 1.46913 36.2428L1.46884 3.75642C1.46884 1.6039 3.36763 1.4734 3.74457 1.46908H20.263L20.2718 1.4778V7.92396C20.2718 9.21763 21.0539 11.6669 24.0158 11.6669H30.4203L30.4753 11.7218L30.4755 36.2428ZM28.9572 10.1976H24.0169C21.8749 10.1976 21.7453 8.29969 21.7424 7.92417V2.95307L28.9572 10.1976ZM31.9447 36.2428V11.1157L21.7424 0.871022V0.823357H21.6936L20.8742 0H3.74491C2.44954 0 0 0.785336 0 3.75711V36.2435C0 37.5427 0.782956 40 3.74491 40H28.2001C29.4952 39.9997 31.9447 39.2143 31.9447 36.2428Z",fill:"#EB5757"})),E=((0,e.createElement)("svg",{width:"16px",height:"16px",viewBox:"-4 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M25.6686 26.0962C25.1812 26.2401 24.4656 26.2563 23.6984 26.145C22.875 26.0256 22.0351 25.7739 21.2096 25.403C22.6817 25.1888 23.8237 25.2548 24.8005 25.6009C25.0319 25.6829 25.412 25.9021 25.6686 26.0962ZM17.4552 24.7459C17.3953 24.7622 17.3363 24.7776 17.2776 24.7939C16.8815 24.9017 16.4961 25.0069 16.1247 25.1005L15.6239 25.2275C14.6165 25.4824 13.5865 25.7428 12.5692 26.0529C12.9558 25.1206 13.315 24.178 13.6667 23.2564C13.9271 22.5742 14.193 21.8773 14.468 21.1894C14.6075 21.4198 14.7531 21.6503 14.9046 21.8814C15.5948 22.9326 16.4624 23.9045 17.4552 24.7459ZM14.8927 14.2326C14.958 15.383 14.7098 16.4897 14.3457 17.5514C13.8972 16.2386 13.6882 14.7889 14.2489 13.6185C14.3927 13.3185 14.5105 13.1581 14.5869 13.0744C14.7049 13.2566 14.8601 13.6642 14.8927 14.2326ZM9.63347 28.8054C9.38148 29.2562 9.12426 29.6782 8.86063 30.0767C8.22442 31.0355 7.18393 32.0621 6.64941 32.0621C6.59681 32.0621 6.53316 32.0536 6.44015 31.9554C6.38028 31.8926 6.37069 31.8476 6.37359 31.7862C6.39161 31.4337 6.85867 30.8059 7.53527 30.2238C8.14939 29.6957 8.84352 29.2262 9.63347 28.8054ZM27.3706 26.1461C27.2889 24.9719 25.3123 24.2186 25.2928 24.2116C24.5287 23.9407 23.6986 23.8091 22.7552 23.8091C21.7453 23.8091 20.6565 23.9552 19.2582 24.2819C18.014 23.3999 16.9392 22.2957 16.1362 21.0733C15.7816 20.5332 15.4628 19.9941 15.1849 19.4675C15.8633 17.8454 16.4742 16.1013 16.3632 14.1479C16.2737 12.5816 15.5674 11.5295 14.6069 11.5295C13.948 11.5295 13.3807 12.0175 12.9194 12.9813C12.0965 14.6987 12.3128 16.8962 13.562 19.5184C13.1121 20.5751 12.6941 21.6706 12.2895 22.7311C11.7861 24.0498 11.2674 25.4103 10.6828 26.7045C9.04334 27.3532 7.69648 28.1399 6.57402 29.1057C5.8387 29.7373 4.95223 30.7028 4.90163 31.7107C4.87693 32.1854 5.03969 32.6207 5.37044 32.9695C5.72183 33.3398 6.16329 33.5348 6.6487 33.5354C8.25189 33.5354 9.79489 31.3327 10.0876 30.8909C10.6767 30.0029 11.2281 29.0124 11.7684 27.8699C13.1292 27.3781 14.5794 27.011 15.985 26.6562L16.4884 26.5283C16.8668 26.4321 17.2601 26.3257 17.6635 26.2153C18.0904 26.0999 18.5296 25.9802 18.976 25.8665C20.4193 26.7844 21.9714 27.3831 23.4851 27.6028C24.7601 27.7883 25.8924 27.6807 26.6589 27.2811C27.3486 26.9219 27.3866 26.3676 27.3706 26.1461ZM30.4755 36.2428C30.4755 38.3932 28.5802 38.5258 28.1978 38.5301H3.74486C1.60224 38.5301 1.47322 36.6218 1.46913 36.2428L1.46884 3.75642C1.46884 1.6039 3.36763 1.4734 3.74457 1.46908H20.263L20.2718 1.4778V7.92396C20.2718 9.21763 21.0539 11.6669 24.0158 11.6669H30.4203L30.4753 11.7218L30.4755 36.2428ZM28.9572 10.1976H24.0169C21.8749 10.1976 21.7453 8.29969 21.7424 7.92417V2.95307L28.9572 10.1976ZM31.9447 36.2428V11.1157L21.7424 0.871022V0.823357H21.6936L20.8742 0H3.74491C2.44954 0 0 0.785336 0 3.75711V36.2435C0 37.5427 0.782956 40 3.74491 40H28.2001C29.4952 39.9997 31.9447 39.2143 31.9447 36.2428Z",fill:"#146ef5"})),({popupOptions:t,fullscreenPDF:r})=>{const{enabled:n,text:o,triggerType:i,image:a,imagePdfIcon:l}=t;return n?(0,e.createElement)("div",{className:"popup-trigger "+("image"===i?"popup-trigger-image":"popup-trigger-button")},"button"===i&&(0,e.createElement)("button",{className:"popup-btn",onClick:r},o),"image"===i&&(0,e.createElement)("div",{className:"popup-trigger-image"},l&&(0,e.createElement)(v,{width:"30px",height:"30px"}),a?(0,e.createElement)("img",{src:a,alt:o||"View PDF",onClick:r}):(0,e.createElement)("div",{className:"popup-trigger-text",onClick:r},o||"View PDF"))):null}),k=["view","download","print","fullscreen","share"],C=Array.from({length:21},(e,t)=>t/20);let x=[],_=null;const $=()=>"undefined"!=typeof window&&window.pdfp||{},S=()=>
1{if("undefined"==typeof window||"undefined"==typeof navigator)return!1;if(navigator.webdriver)return!1;const{trackUrl:e,track:t}=$();return!!e&&!(!1===t||""===t||"0"===t||0===t||void 0===t)},T=()=>{if(_&&(clearTimeout(_),_=null),!x.length)return;const e=x;x=[],(e=>{const{trackUrl:t}=$();if(!t||!e.length)return;const r=JSON.stringify({events:e});try{if(navigator.sendBeacon){const e=new Blob([r],{type:"application/json"});if(navigator.sendBeacon(t,e))return}}catch(e){}try{fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:r,keepalive:!0,credentials:"same-origin"}).catch(()=>{})}catch(e){}})(e)},L=(e,t,r=!1,n=0)=>{S()&&e&&-1!==k.indexOf(t)&&(x.push(n>0?{doc:e,type:t,origin:n}:{doc:e,type:t}),r?T():_||(_=setTimeout(T,5e3)))};"undefined"==typeof window||window.__pdfpTrackBound||(window.__pdfpTrackBound=!0,document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&T()}),window.addEventListener("pagehide",T));const F={faint:8,subtle:15,medium:25,strong:40,solid:70},M={small:.25,medium:.42,large:.62,fit:.95},A={sparse:1.9,normal:1.4,dense:1.08},P={diagonal:-45,steep:-65,flat:0,upright:-90},N={confidential:{types:["text"],markType:"text",coverage:"normal",angle:"diagonal",strength:"subtle",size:"medium",color:"#808080",weight:700,tracking:2,position:"center"},draft:{types:["text"],markType:"text",coverage:"off",angle:"diagonal",strength:"strong",size:"large",color:"#AF4A3D",weight:700,tracking:3,position:"center",outline:!0},wash:{types:["text"],markType:"text",coverage:"dense",angle:"diagonal",strength:"faint",size:"small",color:"#808080",weight:700,tracking:1,position:"center"},"brand-corner":{types:["image"],markType:"image",coverage:"off",angle:"flat",strength:"solid",size:"small",imageStyle:"original",position:"bottom right"},"logo-wash":{types:["image"],markType:"image",coverage:"normal",angle:"diagonal",strength:"faint",size:"medium",imageStyle:"grayscale",position:"center"},"logo-caption":{types:["both"],markType:"both",coverage:"off",angle:"diagonal",strength:"subtle",size:"large",imageStyle:"original",color:"#808080",weight:600,tracking:2,position:"center"},custom:{types:["text","image","both"],coverage:"normal",angle:"diagonal",strength:"subtle",size:"medium",color:"#808080",imageStyle:"grayscale",weight:700,tracking:2,position:"center"}},R={original:null,grayscale:'<filter id="f"><feColorMatrix type="saturate" values="0"/></filter>',white:'<filter id="f"><feFlood flood-color="#ffffff" result="c"/><feComposite in="c" in2="SourceAlpha" operator="in"/></filter>',black:'<filter id="f"><feFlood flood-color="#16181F" result="c"/><feComposite in="c" in2="SourceAlpha" operator="in"/></filter>'},z=e=>String(e??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),I=e=>{const t=d(String(e??"").trim());return t&&(/^(https?:)?\/\//i.test(t)||/^\//.test(t)||/^data:image\//i.test(t))?t:""},H=new Map,O=new Map,D="pdfp_wm_logo_",B=e=>{const t=I(e);if(!t)return null;if(t.startsWith("data:"))return t;if(H.has(t))return H.get(t);const r=(e=>{try{return window.sessionStorage.getItem(D+e)||null}catch(e){return null}})(t);return r?(H.set(t,r),r):null},q=["coverage","angle","strength","size","color","imageStyle","position","outline"],W=(e,t,r)=>!e||"all"===e||("first"===e?1===t:"except-first"!==e||1!==t),j=(e,t,r,n={})=>{if(!(e&&e.enabled&&t&&r))return null;const o=((e={},t={})=>{const r=N[e.theme]||N.confidential,n={...r};return void 0!==e.markType&&""!==e.markType&&null!==e.markType&&(n.markType=e.markType),"custom"===e.theme&&q.forEach(t=>{void 0!==e[t]&&""!==e[t]&&null!==e[t]&&(n[t]=e[t])}),(r.types||[]).includes(n.markType)||(n.markType=r.markType||"text"),n.opacity=(F[n.strength]||F.subtle)/100,n.deg=void 0!==P[n.angle]?P[n.angle]:P.diagonal,"fit"===n.size&&(n.coverage="off"),"text"===n.markType||B(e.image)||(n.markType="both"===n.markType?"text":"none"),"dark"===t.theme&&n.color&&(n.color=(e=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(String(e||""));return t?`#${[t[1],t[2],t[3]].map(e=>(e=>Math.round(parseInt(e,16)+.62*(255-parseInt(e,16))))(e).toString(16).padStart(2,"0")).join("")}`:e})(n.color)),n.blend="white"===n.imageStyle?"normal":"multiply",n})(e,n);if("none"===o.markType)return null;const i=((e,t={})=>{let r=String(e??"");const n={"{page}":null!=t.page?t.page:"","{pages}":null!=t.pages?t.pages:"","{user_name}":t.userName||"","{user_email}":t.userEmail||"","{user_ip}":t.userIp||""};
1return Object.keys(n).forEach(e=>{""!==n[e]&&(r=r.split(e).join(n[e]))}),r})(e.text,n),a="image"!==o.markType&&""!==String(i).trim(),l="text"!==o.markType?B(e.image):null,s=!!l;if(!a&&!s)return null;const c=((e,t,r,n)=>{const o=M[e.size]||M.medium,i=Math.sqrt(r*r+n*n),a=Math.abs(e.deg)<20||Math.abs(Math.abs(e.deg)-180)<20;let l="fit"===e.size?a?.95*r:.95*i:r*o;const s=null!=e.tracking?e.tracking:2,c=Math.max(1,String(t||"").length);let d=0,p=0,u=0;if("image"!==e.markType&&(d=Math.max(6,(l-(c-1)*s)/(.62*c)),p=l,u=1.2*d),"text"!==e.markType){const t="both"===e.markType?.55*l:l,r=.32*t;"both"===e.markType?(p=Math.max(p,t),u=r+.55*d+u):(p=t,u=r)}const f=Math.abs(e.deg)*Math.PI/180;let m=Math.abs(p*Math.cos(f))+Math.abs(u*Math.sin(f)),h=Math.abs(p*Math.sin(f))+Math.abs(u*Math.cos(f));const g=.02*Math.min(r,n),w=Math.min(1,(r-2*g)/m,(n-2*g)/h);w<1&&isFinite(w)&&w>0&&(d*=w,p*=w,u*=w,m*=w,h*=w);const y="off"!==e.coverage;let b=r,v=n;if(y){const t=A[e.coverage]||A.normal;b=r/Math.max(1,Math.round(r/(m*t))),v=n/Math.max(1,Math.round(n/(h*t)))}else{const e=Math.max(.03*Math.min(r,n),.25*u);b=Math.min(r,m+2*e),v=Math.min(n,h+2*e)}return{fontSize:d,markW:p,markH:u,boundW:m,boundH:h,tileW:b,tileH:v,tiled:y}})(o,a?i:"",t,r),{tileW:d,tileH:p,tiled:u,fontSize:f}=c;let m="",h="";const g=s?.32*("both"===o.markType?.55*c.markW:c.markW):0;if(s){const e="both"===o.markType?.55*c.markW:c.markW,t="both"===o.markType?p/2-(c.markH/2-g/2):p/2,r=R[o.imageStyle];r&&(h+=r),m+=`<image x="${(d/2-e/2).toFixed(2)}" y="${(t-g/2).toFixed(2)}" width="${e.toFixed(2)}" height="${g.toFixed(2)}"`+(r?' filter="url(#f)"':"")+` preserveAspectRatio="xMidYMid meet" href="${z(l)}"/>`}if(a){const e="both"===o.markType?p/2+(c.markH/2-.6*f):p/2,t=String(i),r=o.outline||o.opacity>.35?` stroke="#ffffff" stroke-width="${Math.max(1,.03*f).toFixed(2)}" paint-order="stroke"`:"";m+=`<text x="${(d/2).toFixed(2)}" y="${e.toFixed(2)}" fill="${z(o.color||"#808080")}" font-family="Helvetica,Arial,sans-serif" font-size="${f.toFixed(2)}" font-weight="${o.weight||700}" letter-spacing="${null!=o.tracking?o.tracking:2}" text-anchor="middle" dominant-baseline="middle"${r}>${z(t)}</text>`}if(!m)return null;const w=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="${d.toFixed(2)}" height="${p.toFixed(2)}" overflow="visible">`+(h?`<defs>${h}</defs>`:"")+`<g transform="rotate(${o.deg} ${(d/2).toFixed(2)} ${(p/2).toFixed(2)})">${m}</g></svg>`;return{url:`url("data:image/svg+xml,${encodeURIComponent(w)}")`,tiled:u,tileW:d,tileH:p,fontSize:f,opacity:o.opacity,blend:o.blend,position:o.position||"center",resolved:o}},V=(e,t,r={})=>{if(!e)return null;let n=e.querySelector(":scope > .pdfp-wm");if(!e.clientWidth||!e.clientHeight)return n&&n.remove(),null;t&&t.enabled&&t.image&&"text"!==(t.markType||"text")&&!B(t.image)&&((e,t)=>{const r=I(e);if(!r||r.startsWith("data:"))return;if(H.has(r))return;if(O.has(r))return void(t&&O.get(r).push(t));O.set(r,t?[t]:[]);const n=e=>{H.set(r,e),e&&((e,t)=>{try{window.sessionStorage.setItem(D+e,t)}catch(e){}})(r,e);const t=O.get(r)||[];O.delete(r),e&&t.forEach(t=>{try{t(e)}catch(e){}})};fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw new Error("HTTP "+e.status);return e.blob()}).then(e=>{if(e.size>307200)throw console.warn("PDF Poster: watermark logo is "+Math.round(e.size/1024)+" KB. Logos above "+Math.round(300)+" KB are not embedded; use a smaller PNG or SVG."),new Error("too large");return new Promise((t,r)=>{const n=new FileReader;n.onload=()=>t(String(n.result)),n.onerror=()=>r(new Error("read failed")),n.readAsDataURL(e)})}).then(e=>n(e)).catch(e=>{console.warn("PDF Poster: could not embed the watermark logo ("+e.message+"). Cross-origin logos need CORS headers; prefer a logo from this site's media library."),n(!1)})})(t.image,()=>V(e,t,r));const o=j(t,e.clientWidth,e.clientHeight,r);return o?(n||(n=e.ownerDocument.createElement("div"),n.className="pdfp-wm",n.setAttribute("aria-hidden","true"),e.appendChild(n)),n.style.backgroundImage=o.url,n.style.backgroundRepeat=o.tiled?"repeat":"no-repeat",n.style.backgroundPosition=o.tiled?"0 0":o.position,n.style.backgroundSize=o.tiled?`${o.tileW}px ${o.tileH}px`:"auto",n.style.opacity=String(o.opacity),n.style.mixBlendMode=o.blend,n):(n&&n.remove(),null)}
1,Z=({watermark:t,mode:r="container",targetRef:n,theme:o="light",pageCount:i=0})=>{const a=!!(t&&t.enabled&&(t.apply||["screen"]).includes("screen"));return(0,e.useEffect)(()=>{const e=n?.current;if(!e)return;if(!a)return void e.querySelectorAll(".pdfp-wm").forEach(e=>e.remove());const l={theme:o};if("container"===r){const r=()=>e.querySelector(".df-viewer-container")||e.querySelector(".iframe_wrapper")||e,n=()=>{const t=e.querySelector(".dflip-container"),n=t&&t.__pdfpFlipbook,o=n&&n.viewer;if(!o)return null;const i=Number(o.leftSheetWidth||0),a=Number(o.rightSheetWidth||0),l=i||a,s=Number(o.leftSheetHeight||o.rightSheetHeight||0);if(!(l>8&&s>8))return null;const c=r(),d=c.clientWidth||0,p=c.clientHeight||0,u=Number(o.seamPosition),f=isFinite(u)&&Math.abs(u-d/2)<1&&i>8&&a>8,m=f?i+a:l;if(!d||!p||m>d+2||s>p+2)return null;const h=(p-Number(n.dimensions&&n.dimensions.controlsHeight||0)-s)/2,g=isFinite(h)&&h>=0?h:Number(null!=o.leftSheetTop?o.leftSheetTop:o.rightSheetTop);if(!isFinite(g))return null;const w=Number(n.currentPageNumber)||1,y=f?w%2==0?w:w-1:w;return{left:Math.max(0,(d-m)/2),top:Math.max(0,g),width:m,height:s,spread:f,leftPage:y,rightPage:f?y+1:null,pageCount:Number(n.pageCount)||0}};let o=r(),i=[];const a=()=>{const e=r();e!==o&&(o.querySelectorAll(":scope > .pdfp-wm, :scope > .pdfp-wm-frame").forEach(e=>e.remove()),i=[],o=e),"static"===getComputedStyle(o).position&&(o.style.position="relative");const a=n();if(!a){for(;i.length;)i.pop().remove();return void V(o,t,l)}o.querySelectorAll(":scope > .pdfp-wm").forEach(e=>e.remove());const s=(a.spread?[{page:a.leftPage,left:a.left,width:a.width/2},{page:a.rightPage,left:a.left+a.width/2,width:a.width/2}]:[{page:a.leftPage,left:a.left,width:a.width}]).filter(e=>W(t.pages,e.page,a.pageCount));for(;i.length>s.length;)i.pop().remove();s.forEach((e,r)=>{let n=i[r];n&&n.isConnected||(n=o.ownerDocument.createElement("div"),n.className="pdfp-wm-frame",n.setAttribute("aria-hidden","true"),o.appendChild(n),i[r]=n),n.style.left=e.left+"px",n.style.top=a.top+"px",n.style.width=e.width+"px",n.style.height=a.height+"px",V(n,t,l)})};a();const s=new MutationObserver(a);s.observe(e,{childList:!0,subtree:!0}),window.addEventListener("resize",a);const c=setInterval(a,700);return()=>{s.disconnect(),clearInterval(c),window.removeEventListener("resize",a),e.querySelectorAll(".pdfp-wm, .pdfp-wm-frame").forEach(e=>e.remove())}}const s=r=>{if(!r)return;const n=(t=>{const r=(t=>{const r=e.querySelector(".dflip-container"),n=r&&r.__pdfpFlipbook,o=n&&n.viewer&&n.viewer.pages;if(!o||!o.length)return 0;for(let e=0;e<o.length;e++){const r=o[e]&&o[e].element;if((r&&(r.nodeType?r:r[0]))!==t)continue;const n=o[e].pageNumber;return"number"==typeof n&&isFinite(n)?n>0?n:-1:0}return 0})(t);if(r)return r;const n=t.getAttribute("number")||t.getAttribute("data-page-number")||t.dataset?.pageNumber,o=parseInt(n||"",10);if(o)return o;const i=t.closest?.(".df-sheet");if(i){const r=Array.prototype.slice.call(e.querySelectorAll(".df-sheet")).indexOf(i);if(-1!==r)return 2*r+(t.classList.contains("df-page-back")?2:1)}return Array.prototype.indexOf.call(e.querySelectorAll(".df-page"),t)+1})(r);n<0?r.querySelectorAll(":scope > .pdfp-wm").forEach(e=>e.remove()):W(t.pages,n)?("static"===getComputedStyle(r).position&&(r.style.position="relative"),V(r,t,{...l,page:n,pages:i})):r.querySelectorAll(":scope > .pdfp-wm").forEach(e=>e.remove())},c=()=>e.querySelectorAll(".df-page").forEach(s);c();const d=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{1===e.nodeType&&(e.classList?.contains("df-page")?s(e):e.querySelectorAll?.(".df-page").forEach(s))}),t.lock&&e.removedNodes.forEach(e=>{1===e.nodeType&&e.classList?.contains("pdfp-wm")&&c()})})});d.observe(e,{childList:!0,subtree:!0});const p=setInterval(c,900),u=()=>c();window.addEventListener("resize",u),e.addEventListener("scroll",u,!0);let f=null;return t.lock&&(f=setInterval(()=>{e.querySelectorAll(".df-page > .pdfp-wm").forEach(e=>{const t=getComputedStyle(e);"none"!==t.display&&"hidden"!==t.visibility&&0!==parseFloat(t.opacity)||e.remove()}),c()},2e3)),()=>{d.disconnect(),clearInterval(p),f&&clearInterval(f),window.removeEventListener("resize",u),e.removeEventListener("scroll",u,!0),e.querySelectorAll(".pdfp-wm").forEach(e
1=>e.remove())}},[a,r,n,o,i,JSON.stringify(t||{})]),null},U=({attributes:t,RichText:n,setAttributes:o,__,isBackend:i=!1,isSelected:l=!1,id:s})=>{const{adobeEmbedder:u,file:m,protect:h,alert:g,additional:w,socialShare:y,align:v,print:x,onlyPDF:_,downloadButton:$,thumbMenu:T,hrScroll:F,isHideRightToolbar:M,initialPage:A,zoomLevel:P,sidebarOpen:N,defaultBrowser:R=!1,popupOptions:z,actionsPosition:I,annotationMode:H,openLinksInNewTab:O,progressiveLoading:D=!0,keyboardNav:B=!1,rtlMode:q="off",themeMode:W="light",trackingEnabled:j=!0,watermark:V}=t,{enabled:U}=z||{},{position:G,enabled:K}=y||{},Q="on"===q||"auto"===q&&!("undefined"==typeof pdfp||!pdfp?.is_rtl),[J,Y]=(0,e.useState)(()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches);(0,e.useEffect)(()=>{if("auto"!==W||"undefined"==typeof window||"function"!=typeof window.matchMedia)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>Y(e.matches);return e.addEventListener?e.addEventListener("change",t):e.addListener(t),()=>{e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}},[W]);const X="auto"===W?J?"dark":"light":W,[ee,te]=(0,e.useState)(""),[re,ne]=(0,e.useState)(!1),oe=(0,e.useRef)();(0,e.useEffect)(()=>{(async()=>{te(function(e){return"string"!=typeof e?e:e.replace(/^https?:/i,window.location.protocol)}(d(m)))})()},[m]);const[ie,ae]=(0,e.useState)(null),le=(e=>{if(!e||!e.enabled)return"";try{const t={enabled:!0,markType:e.markType,theme:e.theme,text:e.text,image:d(e.image),imageStyle:e.imageStyle,color:e.color,coverage:e.coverage,position:e.position,strength:e.strength,size:e.size,angle:e.angle,pages:e.pages,apply:e.apply,stamp:e.stamp,lock:e.lock,dynamic:e.dynamic},r=JSON.stringify(t);return("function"==typeof btoa?btoa(unescape(encodeURIComponent(r))):"").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(e){return""}})(V);(0,e.useEffect)(()=>{var e;let t="";const r=window.innerWidth>=768&&N,n=e=>encodeURIComponent(null!=e?e:""),o=n(ee),a=`//docs.google.com/gview?embedded=true&url=${n((()=>{try{return new URL(ee,window.location.href).href}catch(e){return ee}})())}`,l=d(null!==(e=pdfp?.dir)&&void 0!==e?e:"");if(c(ee)||re)if(window.navigator.userAgent.includes("Edg")&&R&&!re)t=a;else{const e=`&annotationMode=${!1!==H?"1":"0"}&openLinksInNewTab=${O?"1":"0"}&progressive=${!1!==D?"1":"0"}&keyboardnav=${B?"1":"0"}&rtl=${Q?"1":"0"}&theme=${W}&track=${i||!1===j?"0":"1"}${le?`&wm=${le}`:""}`;t=`${l}assets/pdfjs-new/web/viewer.html?file=${o}&z=auto&nobaki=${!h&&$?"vera":"false"}&stdono=${x&&!h?"vera":"false"}&open=${r}&onlypdf=${_?"vera":"false"}${e}`}else ee.includes(".google.com")?t=ee:ee&&(t=a);ae(t)},[_,T,A,h,F,ee,P,x,$,N,M,re,H,O,D,B,Q,W,j,i,le]);const se=!0===u?"adobe":!1===u?"default":u||"default",ce=["flipbook","slider"].includes(se)&&("undefined"!=typeof pdfp&&pdfp&&"hasFlipbookEngine"in pdfp?pdfp.hasFlipbookEngine:"undefined"!=typeof fpdfAdmin&&fpdfAdmin&&"hasFlipbookEngine"in fpdfAdmin?fpdfAdmin.hasFlipbookEngine:"undefined"!=typeof window&&window.jQuery?.fn?.flipBook)?se:"default",de=Array.isArray(t.flipbookImages)?t.flipbookImages.filter(Boolean):[],pe=["flipbook","slider"].includes(ce)&&"images"===t.flipbookSourceType&&de.length>0,ue=ee||pe,fe=(({enabled:t=!0,targetRef:r,ready:n=!0})=>{const o=(0,e.useRef)(""),i=(0,e.useRef)(0),a=(0,e.useRef)(!1);return(0,e.useEffect)(()=>{if(!t||!r?.current)return;const e=r.current.closest("[data-pdfp-doc]");o.current=e?.getAttribute("data-pdfp-doc")||"",i.current=parseInt(e?.getAttribute("data-pdfp-origin")||"0",10)||0},[t,n,r]),(0,e.useEffect)(()=>{if(!t||!n||!S())return;const e=r?.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return void(!a.current&&o.current&&(a.current=!0,L(o.current,"view",!1,i.current)));let l=null;const s=()=>{l&&(clearTimeout(l),l=null)},c=new IntersectionObserver(e=>{e.forEach(e=>{a.current||(e.isIntersecting&&(e=>{const t=e.boundingClientRect?.height||0,r="undefined"!=typeof window&&window.innerHeight||0;return t&&r?(e.intersectionRect?.height||0)/t>=(t/r>=.6?.3:.5):e.intersectionRatio>=.5})(e)?l||(l=setTimeout(()=>{l=null,!a.current&&o.current&&(a.current=!0,L(o.current,"view",!1,i.current),c.disconnect())},1e3)):s())})},{threshold:C});return c.observe(e),()=>{s(),c.disconnect()}},[t,n,r]),(0,e.useEffect)(()=>
1{if(!t||!S())return;const e=e=>{const t=e?.data;if(!t||"PDFP_TRACK"!==t.type)return;if(-1===k.indexOf(t.event))return;const n=r?.current?.querySelector("iframe");n&&e.source===n.contentWindow&&L(o.current,t.event,"download"===t.event,i.current)};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[t,r]),e=>{t&&L(o.current,e,"download"===e,i.current)}})({enabled:!i&&!1!==j,targetRef:oe,ready:!!ue}),me="string"==typeof ie&&ie.includes("google.com/gview"),he=!(!V?.enabled||!(V.apply||["screen"]).includes("screen")),ge="slider"===ce?"dflip":"flipbook"===ce||me?"container":"iframe";return(0,e.createElement)("div",{ref:oe,dir:Q?"rtl":void 0,"data-pdfp-theme":X,"data-pdfp-wm":he?"1":void 0,className:`pdfp_wrapper pdfp_viewer_${ce} ${w?.Class} ${s} align-${v} ${U?"pdfp_popup_enabled":""} ${h?"pdfp_protected":""} ${Q?"pdfp_rtl":""} ${he?"pdfp_watermarked":""}`.trim()},(0,e.createElement)(f,{attributes:t,id:s}),(0,e.createElement)("div",{className:"pdfp_fullscreen_overlay"}),(0,e.createElement)("div",{className:"pdfp_fullscreen_close",onClick:()=>{oe.current?.classList.remove("pdfp_fullscreen_opened")}},"Ã"),ue&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(E,{popupOptions:z,fullscreenPDF:()=>{["flipbook","slider"].includes(ce)?oe.current?.classList.add("pdfp_fullscreen_opened"):"function"==typeof oe.current?.querySelector(".iframe_wrapper").requestFullscreen?oe.current?.querySelector(".iframe_wrapper").requestFullscreen():oe.current?.classList.add("pdfp_fullscreen_opened")}}),K&&"top"===G&&!U&&(0,e.createElement)(b,{attributes:t}),!U&&(0,e.createElement)(r,{attributes:t,source:ee,previewSrc:ie,RichText:n,setAttributes:o,__,wrapper:oe.current,showTitle:!0,showActions:"top"===I,isImagesFlipbook:pe,onTrack:fe}),["flipbook","slider"].includes(ce)&&(0,e.createElement)(p,{key:`${ce}-${U?"popup":"normal"}-${Q?"rtl":"ltr"}-${X}-${pe?"img"+de.length:"pdf"}`,attributes:t,source:ee,viewerType:ce,isRtl:Q,theme:X}),he&&"iframe"!==ge&&(0,e.createElement)(Z,{watermark:V,mode:ge,targetRef:oe,theme:X}),"default"===ce&&(0,e.createElement)(a,{source:ie,attributes:t,setAttributes:o,__,wrapper:oe.current,isBackend:i,isSelected:l,onGViewError:()=>ne(!0)}),!U&&"bottom"===I&&(0,e.createElement)(r,{attributes:t,source:ee,previewSrc:ie,RichText:n,setAttributes:o,__,wrapper:oe.current,showTitle:!1,showActions:!0,isImagesFlipbook:pe,onTrack:fe}),K&&"bottom"===G&&!U&&(0,e.createElement)(b,{attributes:t})))},G=".wp-block-pdfp-pdf-poster",K="data-pdfp-initialized",Q=r=>{if(r.hasAttribute(K))return;const n=r.dataset.attributes;if(n){r.setAttribute(K,"true");try{const o=JSON.parse(n);(0,t.createRoot)(r).render((0,e.createElement)(ne,{attributes:o,id:r.id}))}catch(e){r.removeAttribute(K),console.error("PDF Poster: could not initialise viewer",e)}}},J=(e=document)=>{e&&"function"==typeof e.querySelectorAll&&(1===e.nodeType&&"function"==typeof e.matches&&e.matches(G)&&Q(e),e.querySelectorAll(`${G}:not([${K}])`).forEach(Q))};let Y=!1;const X=()=>{Y||(Y=!0,requestAnimationFrame(()=>{Y=!1,J(document)}))},ee=e=>1===e.nodeType&&("function"==typeof e.matches&&e.matches(G)||"function"==typeof e.querySelector&&e.querySelector(G)),te=()=>{J(document),document.body&&"undefined"!=typeof MutationObserver&&new MutationObserver(e=>{for(const t of e)for(const e of t.addedNodes)if(ee(e))return void X()}).observe(document.body,{childList:!0,subtree:!0})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",te):te();const re=()=>!!window.elementorFrontend?.hooks&&(elementorFrontend.hooks.addAction("frontend/element_ready/global",e=>J(e[0])),!0);function ne({attributes:t,id:r}){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(U,{RichText:oe,attributes:t,setAttributes:()=>{},__,id:r}))}function oe({tag:t="p",value:r="",...n}){return r?(0,e.createElement)(t,{...n},r):null}function __(e,t){return e}re(),"undefined"!=typeof jQuery&&jQuery(window).on("elementor/frontend/init",re)})();
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.