1!function(){"use strict";if(window.__afrvProjectShareReady)return;const l=(document.documentElement.lang||"en").toLowerCase().split("-")[0]==="sw";window.__afrvProjectShareReady=!0;const e=Array.from(document.querySelectorAll(".project-share-trigger"));if(!e.length)return;const t=document.createElement("div");t.className="project-share-popover",t.id="projectSharePopover",t.hidden=!0,t.setAttribute("role","dialog"),t.setAttribute("aria-modal","false"),t.setAttribute("aria-labelledby","projectSharePopoverTitle"),t.innerHTML=`<div class="project-share-popover-header"><div><span class="project-share-popover-kicker">${l?"Shiriki mradi":"Share project"}</span><span class="project-share-popover-title" id="projectSharePopoverTitle"></span></div><button type="button" class="project-share-popover-close" aria-label="${l?"Funga chaguo za kushiriki":"Close sharing options"}"><i class="fas fa-times" aria-hidden="true"></i></button></div><div class="project-share-popover-options"><a class="project-share-option project-share-option--x" data-share-option="x" target="_blank" rel="noopener noreferrer"><span class="project-share-option-x" aria-hidden="true">X</span><span>X</span></a><a class="project-share-option project-share-option--whatsapp" data-share-option="whatsapp" target="_blank" rel="noopener noreferrer"><i class="fab fa-whatsapp" aria-hidden="true"></i><span>WhatsApp</span></a><a class="project-share-option project-share-option--facebook" data-share-option="facebook" target="_blank" rel="noopener noreferrer"><i class="fab fa-facebook-f" aria-hidden="true"></i><span>Facebook</span></a><button type="button" class="project-share-option project-share-option--copy" data-share-option="copy"><i class="fas fa-copy" aria-hidden="true"></i><span>${l?"Nakili kiungo":"Copy link"}</span></button></div><p class="project-share-popover-status" aria-live="polite"></p>`,document.body.appendChild(t);const o=t.querySelector(".project-share-popover-title"),a=t.querySelector(".project-share-popover-status"),r=t.querySelector(".project-share-popover-close"),n=t.querySelector('[data-share-option="copy"]');let i=null,s="";function p(e){const o=e.getBoundingClientRect(),a=t.offsetWidth,r=t.offsetHeight,n=Math.max(12,Math.min(window.innerWidth-a-12,o.right-a)),i=o.top>=r+12?o.top-r-8:Math.min(window.innerHeight-r-12,o.bottom+8);t.style.left=n+"px",t.style.top=Math.max(12,i)+"px"}function c(e){t.hidden||(t.hidden=!0,i&&i.setAttribute("aria-expanded","false"),e&&i&&i.focus(),i=null,s="",a.textContent="")}function d(){!t.hidden&&i&&p(i)}e.forEach(function(e){e.addEventListener("click",function(n){n.preventDefault(),n.stopPropagation(),function(e){if(i===e&&!t.hidden)return void c(!0);i&&i.setAttribute("aria-expanded","false"),i=e,s=e.getAttribute("data-share-link")||window.location.href;const n=e.getAttribute("data-share-title")||(l?"Mradi wa AfricaVotes":"AfricaVotes project"),d=(l?"Tazama ":"Check out ")+n+(l?" kwenye AfricaVotes":" on AfricaVotes");o.textContent=n,t.querySelector('[data-share-option="x"]').href="https://x.com/intent/tweet?url="+encodeURIComponent(s)+"&text="+encodeURIComponent(d),t.querySelector('[data-share-option="whatsapp"]').href="https://wa.me/?text="+encodeURIComponent(d+" "+s),t.querySelector('[data-share-option="facebook"]').href="https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(s),e.setAttribute("aria-expanded","true"),t.hidden=!1,a.textContent="",p(e),r.focus()}(e)})}),r.addEventListener("click",function(){c(!0)}),n.addEventListener("click",async function(){if(s)try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(s);else{const e=document.createElement("textarea");e.value=s,e.setAttribute("readonly",""),e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove()}a.textContent=l?"Kiungo cha mradi kimenakiliwa.":"Project link copied."}catch(e){a.textContent=l?"Imeshindikana kunakili. Jaribu tena.":"Unable to copy. Please try again."}}),document.addEventListener("click",function(e){t.hidden||t.contains(e.target)||e.target===i||c(!1)}),document.addEventListener("keydown",function(e){"Escape"!==e.key||t.hidden||c(!0)}),window.addEventListener("resize",d),window.addEventListener("scroll",d,{passive:!0})}();
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.