1document.addEventListener("DOMContentLoaded",function(){const t={copyButton:".jetpack-share-modal__copy-button",copyInput:".jetpack-share-modal__input",shareButton:"#share-trigger",shareModal:"#share-modal",modalOverlay:".jetpack-share-modal__overlay",modalContainer:".jetpack-share-modal__container",shareContainer:".keepup-share-container",shareIcons:".jetpack-share-modal__share-buttons a, .jetpack-share-modal__share-buttons button",closeButton:".jetpack-share-modal__close",customClose:"[data-custom-close]"},e="is-open",o="copied",n="tooltip-positioned",a=document.querySelector(t.shareButton),s=document.querySelector(t.shareModal),r=document.querySelector(t.modalOverlay),c=document.querySelector(t.modalContainer),i=document.querySelectorAll(t.copyButton),d=document.querySelectorAll(t.shareIcons),l=document.querySelector(t.closeButton),u=document.querySelectorAll(t.customClose);function p(){r.classList.remove(n),c.classList.remove(n),r.style.cssText=""}function h(){s.setAttribute("aria-hidden","true"),s.classList.remove(e),s.style.display="none",p()}function m(){window.innerWidth<=768?(p(),s.setAttribute("aria-hidden","false"),s.classList.add(e),s.style.display="block"):function(){p();const o=document.querySelector(t.shareContainer);if(!o)return void console.error("Share container not found");const i=a.getBoundingClientRect(),d=o.getBoundingClientRect(),l=400,u=300;let h=i.left-d.left+i.width/2-200,m=i.height+4;h<0&&(h=0),h+l>d.width&&(h=d.width-l);const y=d.top+i.height+4+u>window.innerHeight-20,f=d.top-u-4<140;(y&&!f||f&&y&&d.top-120-20>window.innerHeight-d.top-i.height-20)&&(m=-304),r.classList.add(n),c.classList.add(n),Object.assign(r.style,{position:"absolute",top:"".concat(m,"px"),left:"".concat(h,"px"),width:"".concat(l,"px"),height:"".concat(u,"px"),background:"transparent",zIndex:"10000",display:"block"}),s.setAttribute("aria-hidden","false"),s.classList.add(e),s.style.display="block",s.offsetHeight}()}function y(t){t.preventDefault(),t.stopPropagation();const e=t.currentTarget,n=e.dataset.url;n?navigator.clipboard.writeText(n).then(()=>{const t=e.textContent;e.textContent="Copied!",e.classList.add(o),setTimeout(()=>{e.textContent=t,e.classList.remove(o)},2e3)}
1).catch(t=>{console.error("Failed to copy: ",t)}):console.error("URL not found in dataset")}a&&s&&r&&c&&(a.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),m()}),i.forEach(t=>{t.addEventListener("click",y)}),l&&l.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),h()}),u.forEach(e=>{e.addEventListener("click",o=>{(e===r||e.classList.contains(t.closeButton.substring(1)))&&(o.preventDefault(),o.stopPropagation(),h())})}),document.addEventListener("keydown",t=>{"Escape"===t.key&&"false"===s.getAttribute("aria-hidden")&&h()}),d.forEach(t=>{t.addEventListener("click",t=>t.stopPropagation())}),window.addEventListener("resize",()=>{"false"===s.getAttribute("aria-hidden")&&m()}))});
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.