function dispatch_event(element, type) {
	without_reactive_context(() => {
		element.dispatchEvent(new CustomEvent(type));
	});
}
@param {Element} element
@param {'introstart' | 'introend' | 'outrostart' | 'outroend'} type
@returns {void}