document.addEventListener("DOMContentLoaded",function(){function e(){document.querySelectorAll("a.has-hover-icon").forEach(e=>{if(e.dataset.ariaSetup)return;e.dataset.ariaSetup="true";const t=e.closest(".wp-block-spectra-button");if(!t)return;const a=e.getAttribute("aria-label")||"",n=e.dataset.hoverAriaLabel;function r(){e.setAttribute("aria-label",n)}function o(){a?e.setAttribute("aria-label",a):e.removeAttribute("aria-label")}n&&(t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",o),e.addEventListener("focusin",r),e.addEventListener("focusout",o))})}e(),new MutationObserver(function(t){t.forEach(function(t){t.addedNodes.length&&e()})}).observe(document.body,{childList:!0,subtree:!0})});