window.addEventListener("load",(()=>{const t=document.querySelectorAll(".wp-block-gutenkit-advanced-image"),e=t=>t.replace(/[&<>"']/g,(t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[t])));t.forEach((t=>{const a=t.querySelector("a");if(!a)return;const o=a.getAttribute("data-caption"),c=a.getAttribute("data-title");o&&a.setAttribute("data-caption",e(o)),c&&a.setAttribute("data-title",e(c))})),t.forEach((t=>{Fancybox.bind(t,"[data-fancybox]",{})}))}));