Tear down DOM immediately, ignoring min-visible.
Hide + tear down the dialog. Idempotent. Honours
minVisibleMs if the dialog has already appeared, so we
don't blink off as soon as a load finishes.
Update the progress payload — phase label, determinate bar fraction, counts, smoothed ETA. Safe to call before the dialog has actually appeared (the new state is held until the delayed first paint).
Set / change the dialog header title.
Force-show the dialog (skips the delayed-paint policy).
StaticrunStatic convenience: run an async loader call inside a dialog that follows every UX policy from the module doc (delayed first paint, min display time, cancel + "cancelling…" state, error pane).
Resolves with whatever the run function resolves with.
Rejects with the underlying error — including
AbortError when the user clicks Cancel — so callers can
differentiate user-cancellation from a real failure.
AbortSignal driven by the Cancel button.