!function(){const e=document.querySelector("#toplevel_page_woocommerce-marketing .update-plugins");if(!e)return;const t=document.getElementById("toplevel_page_woocommerce-marketing");new MutationObserver(function(){if(t.classList.contains("wp-has-current-submenu")){const t=document.querySelector('[href="admin.php?page=wc-admin&path=%2Fgoogle%2Fdashboard"]');t&&!t.contains(e)&&(t.textContent.trimEnd(),t.textContent+=" ",t.appendChild(e))}else{const t=document.querySelector(".toplevel_page_woocommerce-marketing > a > .wp-menu-name");t&&!t.contains(e)&&(t.textContent.trimEnd(),t.textContent+=" ",t.appendChild(e))}}).observe(t,{attributes:!0,attributeFilter:["class"]})}();