twitch = async function(video, options = {}) {
let w = options.width || (options.height * 16) / 9 || document.body.clientWidth;
let height = options.height || (w * 9) / 16;
let time = options.time || "0h20m0s";
let autoplay = options.autoplay || false;
let muted = options.muted || false;
if (options.visibility)
await options.visibility();
return html`<iframe
src="https://player.twitch.tv/?video=${video}&parent=observablehq.com&parent=${window.location.host}&time=${time}&autoplay=${autoplay}&muted=${muted}"
height="${height}"
width="${w}"
frameborder="<frameborder>"
scrolling="<scrolling>"
allowfullscreen="<allowfullscreen>">
</iframe>`;
}