/** * htmx "hx-redirect-toast" extension. * * A custom swap style that performs no DOM swap. On an HX-Redirect response it * navigates immediately (the toast shows on the destination page); otherwise it * turns the HX-Trigger header into CustomEvents so toasts fire in place. * * Classic (non-module) script: it only touches the global htmx and registers an * extension, so it stays a plain