function bind_muted(media, get, set = get) {
	var callback = () => {
		set(media.muted);
	};

	if (get() == null) {
		callback();
	}

	listen(media, ['volumechange'], callback, false);

	render_effect(() => {
		var value = !!get();

		if (media.muted !== value) media.muted = value;
	});
}
@param {HTMLVideoElement | HTMLAudioElement} media
@param {() => boolean | undefined} get
@param {(muted: boolean) => void} set