/**
* PlenarIO frontend – plain JavaScript, no build step, no dependencies.
*
* Modules (auto-initialised by data attributes):
* - [data-copy] copy the value of the sibling [data-copy-source]
* - [data-qr-download] save the sibling QR
(SVG) as PNG via canvas
* - [data-share] native share sheet (Web Share API), fallback: copy like [data-copy]
* - [data-youtube-form] slide form: "Link prüfen" for YouTube slides (status + preview)
* - [data-presenter] presenter screen, polls /admin/{token}/state;
* with [data-embed]: one embedded slide (/e/{key}/{id}), goes live while visible
* - [data-participant] participant page, polls /p/{code}/state
* - [data-countdown] quiz timer (data-remaining = seconds), fires `plenario:timeup` on document
* - [data-quiz-options] slide form: "add answer" button for quiz slides
* - [data-audio-form] admin menu: countdown music dropzone, sends the file as soon as it is chosen or dropped
* - [data-sortable] admin slide list: drag & drop / arrow keys via [data-drag-handle], POSTs ids[] to the URL
* - [data-order-options] slide form of ordering slides: sortable rows (correct order), "add entry"
* - [data-order-form] participant answer of ordering slides: sortable items posting order[]
* - [data-live] admin dashboard: forms inside (hide, delete, duplicate, …) run via fetch and refresh
* the [data-refresh] regions instead of reloading the page (header X-Fragment)
* - [data-modal] link whose target page (slide form) opens in the