// Fix AntDesign aria-hidden focus conflict
(function () {
    function fixAriaHiddenFocus() {
        const el = document.activeElement;
        if (el && el.id && el.id.indexOf('Ant-Design-') === 0 && el.getAttribute('aria-hidden') === 'true') {
            const focusable = el.querySelector('input, button, select, textarea, [tabindex]:not([tabindex="-1"])');
            if (focusable) {
                focusable.focus();
            } else {
                el.blur();
            }
        }
    }
    document.addEventListener('focusin', fixAriaHiddenFocus);
    const observer = new MutationObserver(fixAriaHiddenFocus);
    observer.observe(document.body, {
        attributes: true,
        subtree: true,
        attributeFilter: ['aria-hidden']
    });
})();
