@screenreader-speech-capture/bridge 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/dist/cli.mjs +4965 -4771
  2. package/dist/ui/adapter-node.js +1 -1
  3. package/dist/ui/client/ui/_app/immutable/assets/0.C_wdfB9t.css +1 -0
  4. package/dist/ui/client/ui/_app/immutable/assets/0.C_wdfB9t.css.br +0 -0
  5. package/dist/ui/client/ui/_app/immutable/assets/0.C_wdfB9t.css.gz +0 -0
  6. package/dist/ui/client/ui/_app/immutable/assets/2.GfBw0twm.css +1 -0
  7. package/dist/ui/client/ui/_app/immutable/assets/2.GfBw0twm.css.br +0 -0
  8. package/dist/ui/client/ui/_app/immutable/assets/2.GfBw0twm.css.gz +0 -0
  9. package/dist/ui/client/ui/_app/immutable/assets/3.C6Oee9hv.css +1 -0
  10. package/dist/ui/client/ui/_app/immutable/assets/3.C6Oee9hv.css.br +0 -0
  11. package/dist/ui/client/ui/_app/immutable/assets/3.C6Oee9hv.css.gz +0 -0
  12. package/dist/ui/client/ui/_app/immutable/assets/4.DwCEZqGT.css +1 -0
  13. package/dist/ui/client/ui/_app/immutable/assets/4.DwCEZqGT.css.br +0 -0
  14. package/dist/ui/client/ui/_app/immutable/assets/4.DwCEZqGT.css.gz +0 -0
  15. package/dist/ui/client/ui/_app/immutable/assets/5.DVcIZgbI.css +1 -0
  16. package/dist/ui/client/ui/_app/immutable/assets/5.DVcIZgbI.css.br +0 -0
  17. package/dist/ui/client/ui/_app/immutable/assets/5.DVcIZgbI.css.gz +0 -0
  18. package/dist/ui/client/ui/_app/immutable/assets/6.CgsZgeqQ.css +1 -0
  19. package/dist/ui/client/ui/_app/immutable/assets/6.CgsZgeqQ.css.br +0 -0
  20. package/dist/ui/client/ui/_app/immutable/assets/6.CgsZgeqQ.css.gz +0 -0
  21. package/dist/ui/client/ui/_app/immutable/assets/ActionDialog.DaaxszBK.css +1 -0
  22. package/dist/ui/client/ui/_app/immutable/assets/ActionDialog.DaaxszBK.css.br +0 -0
  23. package/dist/ui/client/ui/_app/immutable/assets/ActionDialog.DaaxszBK.css.gz +0 -0
  24. package/dist/ui/client/ui/_app/immutable/assets/Pane.DsGQzOhZ.css +1 -0
  25. package/dist/ui/client/ui/_app/immutable/assets/Pane.DsGQzOhZ.css.br +4 -0
  26. package/dist/ui/client/ui/_app/immutable/assets/Pane.DsGQzOhZ.css.gz +0 -0
  27. package/dist/ui/client/ui/_app/immutable/chunks/{Cb63XE4v.js → DbGQpjFg.js} +1 -1
  28. package/dist/ui/client/ui/_app/immutable/chunks/DbGQpjFg.js.br +0 -0
  29. package/dist/ui/client/ui/_app/immutable/chunks/DbGQpjFg.js.gz +0 -0
  30. package/dist/ui/client/ui/_app/immutable/chunks/{OAsMjdHF.js → cBM7TtzK.js} +13 -13
  31. package/dist/ui/client/ui/_app/immutable/chunks/cBM7TtzK.js.br +0 -0
  32. package/dist/ui/client/ui/_app/immutable/chunks/cBM7TtzK.js.gz +0 -0
  33. package/dist/ui/client/ui/_app/immutable/entry/app.sg1O-aaT.js +2 -0
  34. package/dist/ui/client/ui/_app/immutable/entry/app.sg1O-aaT.js.br +0 -0
  35. package/dist/ui/client/ui/_app/immutable/entry/app.sg1O-aaT.js.gz +0 -0
  36. package/dist/ui/client/ui/_app/immutable/nodes/0.ChTQinKu.js +1 -0
  37. package/dist/ui/client/ui/_app/immutable/nodes/0.ChTQinKu.js.br +0 -0
  38. package/dist/ui/client/ui/_app/immutable/nodes/0.ChTQinKu.js.gz +0 -0
  39. package/dist/ui/client/ui/_app/immutable/nodes/{2.4VpydhMh.js → 2.Bmw_bms2.js} +1 -1
  40. package/dist/ui/client/ui/_app/immutable/nodes/2.Bmw_bms2.js.br +0 -0
  41. package/dist/ui/client/ui/_app/immutable/nodes/2.Bmw_bms2.js.gz +0 -0
  42. package/dist/ui/client/ui/_app/immutable/nodes/3.D1KLwmTV.js +5 -0
  43. package/dist/ui/client/ui/_app/immutable/nodes/3.D1KLwmTV.js.br +0 -0
  44. package/dist/ui/client/ui/_app/immutable/nodes/3.D1KLwmTV.js.gz +0 -0
  45. package/dist/ui/client/ui/_app/immutable/nodes/{4.B9Ke6ZBV.js → 4.DxLsBVbm.js} +4 -4
  46. package/dist/ui/client/ui/_app/immutable/nodes/4.DxLsBVbm.js.br +0 -0
  47. package/dist/ui/client/ui/_app/immutable/nodes/4.DxLsBVbm.js.gz +0 -0
  48. package/dist/ui/client/ui/_app/immutable/nodes/5.mJKxiKw-.js +6 -0
  49. package/dist/ui/client/ui/_app/immutable/nodes/5.mJKxiKw-.js.br +0 -0
  50. package/dist/ui/client/ui/_app/immutable/nodes/5.mJKxiKw-.js.gz +0 -0
  51. package/dist/ui/client/ui/_app/immutable/nodes/6.BH9jsHQr.js +7 -0
  52. package/dist/ui/client/ui/_app/immutable/nodes/6.BH9jsHQr.js.br +0 -0
  53. package/dist/ui/client/ui/_app/immutable/nodes/6.BH9jsHQr.js.gz +0 -0
  54. package/dist/ui/client/ui/_app/version.json +1 -1
  55. package/dist/ui/client/ui/_app/version.json.br +0 -0
  56. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  57. package/dist/ui/server/.vite/manifest.json +37 -28
  58. package/dist/ui/server/_app/immutable/assets/ActionDialog.DaaxszBK.css +1 -0
  59. package/dist/ui/server/_app/immutable/assets/Pane.DsGQzOhZ.css +1 -0
  60. package/dist/ui/server/_app/immutable/assets/_layout.C_wdfB9t.css +1 -0
  61. package/dist/ui/server/_app/immutable/assets/_layout.GfBw0twm.css +1 -0
  62. package/dist/ui/server/_app/immutable/assets/_page.C6Oee9hv.css +1 -0
  63. package/dist/ui/server/_app/immutable/assets/_page.CgsZgeqQ.css +1 -0
  64. package/dist/ui/server/_app/immutable/assets/_page.DVcIZgbI.css +1 -0
  65. package/dist/ui/server/_app/immutable/assets/_page.DwCEZqGT.css +1 -0
  66. package/dist/ui/server/chunks/{dialog.js → ActionDialog.js} +16 -2
  67. package/dist/ui/server/chunks/ActionDialog.js.map +1 -0
  68. package/dist/ui/server/chunks/Pane.js.map +1 -1
  69. package/dist/ui/server/chunks/instance.js +3 -3
  70. package/dist/ui/server/chunks/internal.js +1 -1
  71. package/dist/ui/server/chunks/sessions.js.map +1 -1
  72. package/dist/ui/server/chunks/setup.js.map +1 -1
  73. package/dist/ui/server/chunks/speech.js.map +1 -1
  74. package/dist/ui/server/chunks/src.js +43 -34
  75. package/dist/ui/server/chunks/src.js.map +1 -1
  76. package/dist/ui/server/chunks/validate.js.map +1 -1
  77. package/dist/ui/server/entries/endpoints/api/sessions/_id_id_/end/_server.ts.js +9 -0
  78. package/dist/ui/server/entries/endpoints/api/sessions/_id_id_/end/_server.ts.js.map +1 -0
  79. package/dist/ui/server/entries/hooks.server.js +3 -6
  80. package/dist/ui/server/entries/hooks.server.js.map +1 -1
  81. package/dist/ui/server/entries/pages/_layout.svelte.js +94 -78
  82. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
  83. package/dist/ui/server/entries/pages/_page.server.ts.js.map +1 -1
  84. package/dist/ui/server/entries/pages/_page.svelte.js +121 -78
  85. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  86. package/dist/ui/server/entries/pages/settings/_page.server.ts.js.map +1 -1
  87. package/dist/ui/server/entries/pages/settings/_page.svelte.js +15 -16
  88. package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
  89. package/dist/ui/server/entries/pages/setup/_layout.svelte.js.map +1 -1
  90. package/dist/ui/server/entries/pages/setup/_page.svelte.js +24 -13
  91. package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -1
  92. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js +83 -59
  93. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js.map +1 -1
  94. package/dist/ui/server/manifest-full.js +8 -8
  95. package/dist/ui/server/manifest.js +8 -8
  96. package/dist/ui/server/nodes/0.js +2 -2
  97. package/dist/ui/server/nodes/2.js +2 -2
  98. package/dist/ui/server/nodes/3.js +2 -2
  99. package/dist/ui/server/nodes/4.js +2 -2
  100. package/dist/ui/server/nodes/5.js +2 -2
  101. package/dist/ui/server/nodes/6.js +2 -2
  102. package/dist/ui/server/server.js +8 -8
  103. package/package.json +1 -1
  104. package/dist/ui/client/ui/_app/immutable/assets/0.ONZWQgDA.css +0 -1
  105. package/dist/ui/client/ui/_app/immutable/assets/0.ONZWQgDA.css.br +0 -0
  106. package/dist/ui/client/ui/_app/immutable/assets/0.ONZWQgDA.css.gz +0 -0
  107. package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css +0 -1
  108. package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css.br +0 -3
  109. package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css.gz +0 -0
  110. package/dist/ui/client/ui/_app/immutable/assets/3.WduKm4aT.css +0 -1
  111. package/dist/ui/client/ui/_app/immutable/assets/3.WduKm4aT.css.br +0 -0
  112. package/dist/ui/client/ui/_app/immutable/assets/3.WduKm4aT.css.gz +0 -0
  113. package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css +0 -1
  114. package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css.br +0 -0
  115. package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css.gz +0 -0
  116. package/dist/ui/client/ui/_app/immutable/assets/5.YyxFzHED.css +0 -1
  117. package/dist/ui/client/ui/_app/immutable/assets/5.YyxFzHED.css.br +0 -0
  118. package/dist/ui/client/ui/_app/immutable/assets/5.YyxFzHED.css.gz +0 -0
  119. package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css +0 -1
  120. package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css.br +0 -0
  121. package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css.gz +0 -0
  122. package/dist/ui/client/ui/_app/immutable/assets/Pane.Dgdg5KMw.css +0 -1
  123. package/dist/ui/client/ui/_app/immutable/assets/Pane.Dgdg5KMw.css.br +0 -0
  124. package/dist/ui/client/ui/_app/immutable/assets/Pane.Dgdg5KMw.css.gz +0 -0
  125. package/dist/ui/client/ui/_app/immutable/chunks/Cb63XE4v.js.br +0 -0
  126. package/dist/ui/client/ui/_app/immutable/chunks/Cb63XE4v.js.gz +0 -0
  127. package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.br +0 -0
  128. package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.gz +0 -0
  129. package/dist/ui/client/ui/_app/immutable/entry/app.B2MXuPeH.js +0 -2
  130. package/dist/ui/client/ui/_app/immutable/entry/app.B2MXuPeH.js.br +0 -0
  131. package/dist/ui/client/ui/_app/immutable/entry/app.B2MXuPeH.js.gz +0 -0
  132. package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js +0 -1
  133. package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js.br +0 -0
  134. package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js.gz +0 -0
  135. package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.br +0 -0
  136. package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.gz +0 -0
  137. package/dist/ui/client/ui/_app/immutable/nodes/3.BzIz3rja.js +0 -5
  138. package/dist/ui/client/ui/_app/immutable/nodes/3.BzIz3rja.js.br +0 -0
  139. package/dist/ui/client/ui/_app/immutable/nodes/3.BzIz3rja.js.gz +0 -0
  140. package/dist/ui/client/ui/_app/immutable/nodes/4.B9Ke6ZBV.js.br +0 -0
  141. package/dist/ui/client/ui/_app/immutable/nodes/4.B9Ke6ZBV.js.gz +0 -0
  142. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js +0 -6
  143. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.br +0 -0
  144. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.gz +0 -0
  145. package/dist/ui/client/ui/_app/immutable/nodes/6.B_1Pts2e.js +0 -6
  146. package/dist/ui/client/ui/_app/immutable/nodes/6.B_1Pts2e.js.br +0 -0
  147. package/dist/ui/client/ui/_app/immutable/nodes/6.B_1Pts2e.js.gz +0 -0
  148. package/dist/ui/server/_app/immutable/assets/Pane.Dgdg5KMw.css +0 -1
  149. package/dist/ui/server/_app/immutable/assets/_layout.DSVNnDlO.css +0 -1
  150. package/dist/ui/server/_app/immutable/assets/_layout.ONZWQgDA.css +0 -1
  151. package/dist/ui/server/_app/immutable/assets/_page.C0Nhvs_m.css +0 -1
  152. package/dist/ui/server/_app/immutable/assets/_page.DEk4yqpA.css +0 -1
  153. package/dist/ui/server/_app/immutable/assets/_page.WduKm4aT.css +0 -1
  154. package/dist/ui/server/_app/immutable/assets/_page.YyxFzHED.css +0 -1
  155. package/dist/ui/server/chunks/dialog.js.map +0 -1
  156. package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js +0 -9
  157. package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js.map +0 -1
  158. /package/dist/ui/client/ui/_app/immutable/chunks/{BlC5mir6.js → D-UxlRn_.js} +0 -0
  159. /package/dist/ui/client/ui/_app/immutable/chunks/{BlC5mir6.js.br → D-UxlRn_.js.br} +0 -0
  160. /package/dist/ui/client/ui/_app/immutable/chunks/{BlC5mir6.js.gz → D-UxlRn_.js.gz} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"_page.svelte.js","names":["html","css","sharedStyles","sharedElevationStyles","tonalStyles","customElement","$.attr","$.escape","$.attr","$.escape","$.attr","$.props_id","$.attr","$.ensure_array_like","$.attr_class","$.escape","$.attr","$.props_id","$.attr_class","$.attr","$.attr_style","$.escape","$.derived","$.attr","$.escape","$.derived","$.escape","$.attr","$.derived","$.escape","$.attr_class","$.attr","$.clsx","$.attr_style","$.stringify","$.ensure_array_like","untrack","$.derived","onMount","$.attr_class"],"sources":["../../../../src/lib/components/LoopbackBanner/LoopbackBanner.svelte","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-tonal-button.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-tonal-styles.cssresult.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/filled-tonal-button.js","../../../../src/lib/components/SpeechLog/ClearSpeechDialog.svelte","../../../../src/lib/components/SpeechLog/DeleteSessionDialog.svelte","../../../../src/lib/components/SpeechLog/MarkerDialog.svelte","../../../../src/lib/components/SpeechLog/SpeechTable.svelte","../../../../src/lib/components/SpeechLog/SpeechLog.svelte","../../../../src/lib/components/ListItem/ListItem.svelte","../../../../src/lib/components/SessionsPane/EndSessionDialog.svelte","../../../../src/lib/components/SessionsPane/SessionRow.svelte","../../../../src/lib/components/SessionsPane/StartSessionDialog.svelte","../../../../src/lib/components/SessionsPane/SessionsPane.svelte","../../../../src/lib/stores/monitor.svelte.ts","../../../../src/routes/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n</script>\n\n<!-- Static: it is rendered once, and must not be read as a live announcement itself. -->\n<div class=\"banner\" role=\"note\">\n <md-icon aria-hidden=\"true\">warning</md-icon>\n <p>\n <strong>The speech log is hidden from the screen reader.</strong>\n This page is opened on the bridge's own machine (loopback or its own network address): the screen\n reader would read new rows aloud and they would be recorded again. Open the UI from another machine\n to read the log with a screen reader.\n </p>\n</div>\n\n<style>\n .banner {\n display: flex;\n align-items: flex-start;\n gap: 12px;\n padding: 12px 16px;\n border-radius: 12px;\n background: var(--app-warning-container);\n color: var(--app-on-warning-container);\n font-size: 14px;\n line-height: 20px;\n }\n\n p {\n flex: 1;\n min-width: 0;\n margin: 0;\n }\n\n md-icon {\n flex: none;\n }\n</style>\n","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport '../../elevation/elevation.js';\nimport { html } from 'lit';\nimport { Button } from './button.js';\n/**\n * A filled tonal button component.\n */\nexport class FilledTonalButton extends Button {\n renderElevationOrOutline() {\n return html `<md-elevation part=\"elevation\"></md-elevation>`;\n }\n}\n//# sourceMappingURL=filled-tonal-button.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./button/internal/filled-tonal-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{--_container-color: var(--md-filled-tonal-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-elevation: var(--md-filled-tonal-button-container-elevation, 0);--_container-height: var(--md-filled-tonal-button-container-height, 40px);--_container-shadow-color: var(--md-filled-tonal-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-tonal-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-tonal-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-tonal-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-tonal-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-tonal-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-tonal-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-tonal-button-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-container-elevation: var(--md-filled-tonal-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-tonal-button-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-tonal-button-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_label-text-font: var(--md-filled-tonal-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-tonal-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-tonal-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-tonal-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-tonal-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-tonal-button-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-color: var(--md-filled-tonal-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-tonal-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_container-shape-start-start: var(--md-filled-tonal-button-container-shape-start-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-tonal-button-container-shape-start-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-tonal-button-container-shape-end-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-tonal-button-container-shape-end-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-tonal-button-leading-space, 24px);--_trailing-space: var(--md-filled-tonal-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-tonal-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-tonal-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-tonal-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-tonal-button-with-trailing-icon-trailing-space, 16px)}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=filled-tonal-styles.cssresult.js.map","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { customElement } from 'lit/decorators.js';\nimport { FilledTonalButton } from './internal/filled-tonal-button.js';\nimport { styles as tonalStyles } from './internal/filled-tonal-styles.cssresult.js';\nimport { styles as sharedElevationStyles } from './internal/shared-elevation-styles.cssresult.js';\nimport { styles as sharedStyles } from './internal/shared-styles.cssresult.js';\n/**\n * @summary Buttons help people take action, such as sending an email, sharing a\n * document, or liking a comment.\n *\n * @description\n * __Emphasis:__ Medium emphasis – For important actions that don’t distract\n * from other onscreen elements.\n *\n * __Rationale:__ Filled tonal buttons have a lighter background color and\n * darker label color, making them less visually prominent than a regular,\n * filled button. They’re still used for final or unblocking actions in a flow,\n * but do so with less emphasis.\n *\n * __Example usages:__\n * - Save\n * - Confirm\n * - Done\n *\n * @final\n * @suppress {visibility}\n */\nlet MdFilledTonalButton = class MdFilledTonalButton extends FilledTonalButton {\n};\nMdFilledTonalButton.styles = [\n sharedStyles,\n sharedElevationStyles,\n tonalStyles,\n];\nMdFilledTonalButton = __decorate([\n customElement('md-filled-tonal-button')\n], MdFilledTonalButton);\nexport { MdFilledTonalButton };\n//# sourceMappingURL=filled-tonal-button.js.map","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n\n type Props = {\n open: boolean;\n /** `#3 Checkout flow` */\n heading: string;\n /** Rejects with a message to show; resolves when the speech is cleared. */\n onClear: () => Promise<void>;\n onClose: () => void;\n };\n\n let { open, heading, onClear, onClose }: Props = $props();\n\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) failure = '';\n });\n\n async function confirm(): Promise<void> {\n if (busy) return;\n failure = '';\n busy = true;\n try {\n await onClear();\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The speech could not be cleared.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">Clear speech?</div>\n <div slot=\"content\">\n <p>\n The speech of <strong>{heading}</strong> is removed from the bridge. The session keeps running.\n This cannot be undone.\n </p>\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </div>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" disabled={busy} onclick={confirm}>Clear</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n max-width: min(400px, calc(100% - 48px));\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n p {\n margin: 0;\n }\n\n .failure {\n margin-top: 12px;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n\n type Props = {\n open: boolean;\n /** `#3 Checkout flow` */\n heading: string;\n /** Rejects with a message to show; resolves when the session is deleted. */\n onDelete: () => Promise<void>;\n onClose: () => void;\n };\n\n let { open, heading, onDelete, onClose }: Props = $props();\n\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) failure = '';\n });\n\n async function confirm(): Promise<void> {\n if (busy) return;\n failure = '';\n busy = true;\n try {\n await onDelete();\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The session could not be deleted.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">Delete session?</div>\n <div slot=\"content\">\n <p>\n <strong>{heading}</strong> and its speech are removed from the bridge. This cannot be undone.\n </p>\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </div>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" disabled={busy} onclick={confirm}>Delete</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n max-width: min(400px, calc(100% - 48px));\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n p {\n margin: 0;\n }\n\n .failure {\n margin-top: 12px;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n import '@material/web/textfield/outlined-text-field.js';\n import { API_LIMITS } from '@screenreader-speech-capture/shared';\n\n type Props = {\n open: boolean;\n /** Rejects with a message to show; resolves when the marker is in. */\n onAdd: (label: string) => Promise<void>;\n onClose: () => void;\n };\n\n let { open, onAdd, onClose }: Props = $props();\n\n let label = $state('');\n let labelError = $state('');\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) {\n label = '';\n labelError = '';\n failure = '';\n }\n });\n\n async function submit(event: SubmitEvent): Promise<void> {\n event.preventDefault();\n if (busy) return;\n const trimmed = label.trim();\n if (trimmed === '') {\n labelError = 'Enter a label.';\n return;\n }\n labelError = '';\n failure = '';\n busy = true;\n try {\n await onAdd(trimmed);\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The marker could not be added.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">Add a marker</div>\n <form slot=\"content\" id=\"add-marker-form\" novalidate onsubmit={submit}>\n <md-outlined-text-field\n label=\"Label\"\n required\n maxlength={API_LIMITS.markerLength}\n supporting-text=\"Shows in the log as a row of its own, for example “step 3”.\"\n value={label}\n error={labelError !== ''}\n error-text={labelError}\n oninput={(event: Event) => (label = (event.target as HTMLInputElement).value)}\n ></md-outlined-text-field>\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </form>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <md-text-button type=\"submit\" form=\"add-marker-form\" disabled={busy}>Add</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n min-width: min(360px, 70vw);\n }\n\n .failure {\n margin: 0;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n import type { SpeechEntryDto } from '@screenreader-speech-capture/shared';\n import { formatReceivedTime } from '#lib/core/speech.js';\n\n type Props = {\n /** Oldest first. */\n entries: readonly SpeechEntryDto[];\n };\n\n let { entries }: Props = $props();\n\n const helpId = $props.id();\n\n /** What the long number in the seq column is: the \"?\" tooltip and the table's description. */\n const SEQ_HELP =\n \"Seq is the entry's number in the API (since, --since). It is large because it starts at \" +\n \"the bridge's start time; only its order matters. Numbers can be skipped.\";\n\n /** A row that arrived this recently gets the tint that fades out (see `--app-new-row-ms`). */\n const FRESH_MS = 2000;\n const fresh = (entry: SpeechEntryDto): boolean =>\n Date.now() - Date.parse(entry.receivedAt) < FRESH_MS;\n</script>\n\n<!-- Hidden: only read as the table's description, not as text of its own. -->\n<p id={helpId} hidden>{SEQ_HELP}</p>\n\n<table aria-label=\"Speech\" aria-describedby={helpId}>\n <thead>\n <tr>\n <th scope=\"col\">Received</th>\n <th scope=\"col\">Spoken text</th>\n <!-- Named by its label: Chromium reads the icon's ligature despite `aria-hidden`, and a\n screen reader repeats the column name while navigating. -->\n <th scope=\"col\" class=\"seq\" aria-label=\"Seq\">\n <span class=\"seq-head\">\n Seq\n <span class=\"help\" title={SEQ_HELP} aria-hidden=\"true\">\n <md-icon aria-hidden=\"true\">help</md-icon>\n </span>\n </span>\n </th>\n </tr>\n </thead>\n <tbody>\n {#each entries as entry (entry.seq)}\n <tr class:fresh={fresh(entry)} class:marker={entry.kind === 'marker'}>\n <td class=\"time mono\">{formatReceivedTime(entry.receivedAt)}</td>\n <td class=\"text\">\n {#if entry.kind === 'marker'}\n <span class=\"pill\" title={entry.text}>\n <md-icon aria-hidden=\"true\">bookmark</md-icon>\n <span class=\"visually-hidden\">Marker: </span>\n <span class=\"label mono\">{entry.text}</span>\n </span>\n {:else}\n {entry.text}\n {/if}\n </td>\n <td class=\"seq mono\">#{entry.seq}</td>\n </tr>\n {/each}\n </tbody>\n</table>\n\n<style>\n table {\n width: 100%;\n /* `collapse` would leave the borders of the sticky header behind when scrolling. */\n border-collapse: separate;\n border-spacing: 0;\n }\n\n thead th {\n position: sticky;\n top: 0;\n z-index: 1;\n padding: 6px 12px;\n border-top: 1px solid var(--md-sys-color-outline-variant);\n border-bottom: 1px solid var(--md-sys-color-outline-variant);\n background: var(--md-sys-color-surface-container-low);\n color: var(--md-sys-color-on-surface-variant);\n font-size: 11px;\n font-weight: 500;\n letter-spacing: 0.5px;\n text-align: left;\n text-transform: uppercase;\n }\n\n thead th:first-child {\n padding-left: 24px;\n }\n\n th.seq,\n td.seq {\n padding-right: 24px;\n text-align: left;\n }\n\n /* The \"?\" is at the right end of the header cell, centred on the line of \"Seq\". */\n .seq-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n }\n\n .help {\n display: flex;\n /* Taller than the header's text line: the negative margin keeps the row's height. */\n margin-block: -2px;\n }\n\n .help md-icon {\n --md-icon-size: 16px;\n font-size: 16px;\n /* The header's uppercase and letter spacing would break the ligature. */\n letter-spacing: normal;\n text-transform: none;\n }\n\n tbody tr:hover {\n background: var(--md-sys-color-surface-container);\n }\n\n td {\n padding: 7px 12px;\n vertical-align: baseline;\n }\n\n /* Time and seq are as wide as their text (seq is a 13-digit number); the text takes the rest. */\n td.time,\n td.seq {\n width: 1%;\n white-space: nowrap;\n }\n\n td.time {\n padding-left: 24px;\n color: var(--md-sys-color-on-surface-variant);\n font-size: var(--app-mono-size);\n line-height: var(--app-mono-line-height);\n }\n\n td.text {\n color: var(--md-sys-color-on-surface);\n font-size: var(--app-log-text-size);\n line-height: var(--app-log-text-line-height);\n overflow-wrap: anywhere;\n }\n\n td.seq {\n color: var(--md-sys-color-outline);\n font-size: 11px;\n }\n\n tr.fresh {\n animation: fade-new calc(var(--app-new-row-ms) * 1ms) ease-out;\n }\n\n /* High-contrast themes: a left edge marks the new row too (the tint alone is a weak cue). */\n tr.fresh td:first-child {\n animation: fade-new-edge calc(var(--app-new-row-ms) * 1ms) ease-out;\n }\n\n @keyframes fade-new {\n from {\n background: var(--app-new-row);\n }\n }\n\n @keyframes fade-new-edge {\n from {\n box-shadow: inset calc(var(--app-border-width) * 2) 0 0 var(--md-sys-color-primary);\n }\n }\n\n /* In a narrow log the sequence number is the first thing to go (the log pane is the container). */\n @container (max-width: 520px) {\n th.seq,\n td.seq {\n display: none;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n tr.fresh {\n animation: none;\n }\n }\n\n .pill {\n /* Contains the hidden \"Marker:\" label: outside, it escapes the log's scroll area and\n stretches the page. */\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n max-width: 70%;\n height: 24px;\n padding: 0 8px 0 4px;\n border-radius: 6px;\n background: var(--md-sys-color-tertiary-container);\n color: var(--md-sys-color-on-tertiary-container);\n font-size: 12px;\n font-weight: 500;\n line-height: 16px;\n vertical-align: middle;\n }\n\n .pill md-icon {\n --md-icon-size: 16px;\n font-size: 16px;\n }\n\n .label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/filled-tonal-button.js';\n import '@material/web/icon/icon.js';\n import '@material/web/iconbutton/icon-button.js';\n import type { SpeechEntryDto } from '@screenreader-speech-capture/shared';\n import type { FeedState } from '#lib/core/speech.js';\n import ClearSpeechDialog from './ClearSpeechDialog.svelte';\n import DeleteSessionDialog from './DeleteSessionDialog.svelte';\n import MarkerDialog from './MarkerDialog.svelte';\n import SpeechTable from './SpeechTable.svelte';\n\n type Props = {\n /** `#3 Checkout flow`, or `Records outside sessions`. */\n heading: string;\n /**\n * The page is opened on the screen reader's own machine: the screen reader would read new\n * rows, and that speech would be logged again. The rows are hidden from it.\n */\n local?: boolean;\n /** Oldest first. */\n entries: readonly SpeechEntryDto[];\n connection: FeedState;\n /** Whether a marker added now shows up in this log (see `canAddMarker`). */\n canMark: boolean;\n /** Rejects with a message to show; resolves when the marker is in. */\n onAddMarker: (label: string) => Promise<void>;\n /** Whether the shown scope is an ended session that can be deleted (see `canDeleteSession`). */\n canDelete: boolean;\n /** Whether the shown scope can be cleared: the current session, or the speech outside sessions. */\n canClear: boolean;\n /** Rejects with a message to show; resolves when the speech is cleared. */\n onClear: () => Promise<void>;\n /** Rejects with a message to show; resolves when the session is deleted. */\n onDelete: () => Promise<void>;\n };\n\n let {\n heading,\n local = false,\n entries,\n connection,\n canMark,\n onAddMarker,\n canDelete,\n onDelete,\n canClear,\n onClear,\n }: Props = $props();\n\n let markerOpen = $state(false);\n let deleteOpen = $state(false);\n let clearOpen = $state(false);\n\n /** Scrolled up further than this from the end, the log stops following new rows. */\n const FOLLOW_SLACK_PX = 48;\n\n let scroller: HTMLElement | undefined = $state();\n let following = $state(true);\n\n function onScroll(): void {\n if (!scroller) return;\n following =\n scroller.scrollHeight - scroller.scrollTop - scroller.clientHeight <= FOLLOW_SLACK_PX;\n }\n\n function jumpToLatest(): void {\n following = true;\n scroller?.scrollTo({ top: scroller.scrollHeight });\n }\n\n /** A click focuses the hidden log, and a screen reader reads what has the focus: give it back. */\n function onFocus(event: FocusEvent & { currentTarget: HTMLElement }): void {\n if (local) event.currentTarget.blur();\n }\n\n // After the new row is in the DOM, stay at the end while following. An empty table is a new\n // scope (or a wipe): start following again.\n $effect(() => {\n if (entries.length === 0) following = true;\n if (following && scroller) scroller.scrollTop = scroller.scrollHeight;\n });\n</script>\n\n<!-- Not named by the heading: as a landmark of that name, a screen reader would say it twice. -->\n<section class=\"log\">\n <header>\n <h2 class=\"trunc\">{heading}</h2>\n {#if canMark || canClear || canDelete}\n <div role=\"toolbar\" aria-label=\"Log actions\">\n {#if canMark}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n title=\"Add marker\"\n aria-label=\"Add marker\"\n onclick={() => (markerOpen = true)}\n >\n <md-icon aria-hidden=\"true\">bookmark_add</md-icon>\n </md-icon-button>\n {/if}\n {#if canClear}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n title=\"Clear speech\"\n aria-label=\"Clear speech\"\n disabled={entries.length === 0}\n onclick={() => (clearOpen = true)}\n >\n <md-icon aria-hidden=\"true\">delete_sweep</md-icon>\n </md-icon-button>\n {/if}\n {#if canDelete}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n title=\"Delete session\"\n aria-label=\"Delete session\"\n onclick={() => (deleteOpen = true)}\n >\n <md-icon aria-hidden=\"true\">delete</md-icon>\n </md-icon-button>\n {/if}\n </div>\n {/if}\n </header>\n\n <!-- Focusable so the keyboard can scroll it, except when it is hidden from the screen reader.\n Then it needs the -1: without a `tabindex`, Chromium puts a scrolling element into the tab\n order by itself. -->\n <!-- svelte-ignore a11y_no_noninteractive_tabindex -->\n <div\n class=\"scroll\"\n bind:this={scroller}\n onscroll={onScroll}\n onfocus={onFocus}\n role={local ? undefined : 'region'}\n aria-label={local ? undefined : 'Speech log'}\n aria-live={local ? undefined : 'off'}\n aria-hidden={local ? 'true' : undefined}\n tabindex={local ? -1 : 0}\n >\n <!-- Always there, so its header row doesn't come and go while another scope loads. -->\n <SpeechTable {entries} />\n {#if entries.length === 0}\n <div class=\"empty\">\n <md-icon aria-hidden=\"true\">mic</md-icon>\n {#if connection === 'ended'}\n <p class=\"title\">No entries left</p>\n <p>This session's entries are no longer in the buffer.</p>\n {:else}\n <p class=\"title\">No speech yet</p>\n <p>Make the screen reader speak.</p>\n {/if}\n </div>\n {/if}\n </div>\n\n {#if connection === 'reconnecting' || connection === 'failed' || !following}\n <footer>\n {#if connection === 'reconnecting'}\n <p role=\"status\" class=\"mono\">Connection lost, reconnecting…</p>\n {:else if connection === 'failed'}\n <p role=\"alert\" class=\"mono failed\">The speech could not be loaded.</p>\n {:else}\n <span></span>\n {/if}\n {#if !following}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-filled-tonal-button onclick={jumpToLatest}>\n <md-icon slot=\"icon\" aria-hidden=\"true\">arrow_downward</md-icon>\n Jump to latest\n </md-filled-tonal-button>\n {/if}\n </footer>\n {/if}\n</section>\n\n{#if canMark}\n <MarkerDialog open={markerOpen} onAdd={onAddMarker} onClose={() => (markerOpen = false)} />\n{/if}\n\n{#if canClear}\n <ClearSpeechDialog open={clearOpen} {heading} {onClear} onClose={() => (clearOpen = false)} />\n{/if}\n\n{#if canDelete}\n <DeleteSessionDialog\n open={deleteOpen}\n {heading}\n {onDelete}\n onClose={() => (deleteOpen = false)}\n />\n{/if}\n\n<style>\n .log {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n overflow: hidden;\n border: 1px solid var(--md-sys-color-outline-variant);\n border-width: max(1px, var(--app-border-width));\n border-radius: 16px;\n background: var(--md-sys-color-surface-container-lowest);\n }\n\n header {\n box-sizing: border-box;\n flex: none;\n /* The icon button (40px) is only there in some scopes: always reserve its height, so the\n table doesn't jump when the selected session changes. */\n min-height: 64px;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px 12px 8px 24px;\n }\n\n h2 {\n flex: 1;\n min-width: 0;\n margin: 0;\n color: var(--md-sys-color-on-surface);\n font-size: 22px;\n font-weight: 500;\n line-height: 28px;\n }\n\n .trunc {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .scroll {\n container-type: inline-size;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n /* Hidden for a moment: while another scope's rows load there is no point in saying \"No speech\". */\n .empty {\n animation: reveal 0s 250ms backwards;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 96px 24px;\n color: var(--md-sys-color-on-surface-variant);\n text-align: center;\n }\n\n @keyframes reveal {\n from {\n visibility: hidden;\n }\n }\n\n .empty md-icon {\n --md-icon-size: 40px;\n font-size: 40px;\n }\n\n .empty p {\n margin: 4px 0 0;\n font-size: 14px;\n }\n\n .empty .title {\n color: var(--md-sys-color-on-surface);\n font-size: 16px;\n font-weight: 500;\n }\n\n footer {\n flex: none;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 8px 12px 8px 24px;\n border-top: 1px solid var(--md-sys-color-outline-variant);\n background: var(--md-sys-color-surface-container-low);\n }\n\n footer p.failed {\n color: var(--md-sys-color-error);\n }\n\n footer p {\n margin: 0;\n color: var(--md-sys-color-on-surface-variant);\n font-size: var(--app-mono-size);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n import '@material/web/ripple/ripple.js';\n import type { Snippet } from 'svelte';\n\n type Props = {\n /** One line, cut off with an ellipsis. */\n title: string;\n /** The muted monospace line under the title. */\n subtitle?: Snippet;\n /** Highlights the row, shows an eye and sets `aria-selected`. */\n selected?: boolean;\n /** What a screen reader hears after the title. Nothing visible is read, the subtitle included. */\n description: string;\n /**\n * The row's corner radius as a CSS value. Defaults to 8px, the radius of md-list-item's\n * focus ring (md-list-item itself has no container shape).\n */\n shape?: string;\n onSelect: () => void;\n };\n\n let { title, subtitle, selected = false, description, shape, onSelect }: Props = $props();\n\n const id = $props.id();\n const nameId = `${id}-name`;\n</script>\n\n<!-- An option of the caller's listbox, which handles the arrow keys. A button, so Enter and Space\n select it. Everything visible is aria-hidden, so the sentence at the end is all there is to\n hear. Named by that sentence alone: from the content, Chromium also reads the eye's ligature\n text (\"visibility a, Session 7\"), despite its aria-hidden. -->\n<button\n type=\"button\"\n role=\"option\"\n class=\"option\"\n class:selected\n style:--list-item-shape={shape}\n aria-selected={selected}\n aria-labelledby={nameId}\n onclick={onSelect}\n>\n <md-ripple aria-hidden=\"true\"></md-ripple>\n <!-- Selection without colour. The room is always there, so the text doesn't move. -->\n <span class=\"marker\">\n {#if selected}<md-icon aria-hidden=\"true\">visibility</md-icon>{/if}\n </span>\n <span class=\"text\" aria-hidden=\"true\">\n <span class=\"title\">{title}</span>\n {#if subtitle}\n <span class=\"subtitle\">{@render subtitle()}</span>\n {/if}\n </span>\n <!-- One text, title included: from two, a screen reader makes two lines, and says the list's name\n before each. -->\n <span id={nameId} class=\"visually-hidden\">{title}, {description}</span>\n</button>\n\n<style>\n .option {\n position: relative;\n display: flex;\n flex: none;\n gap: 8px;\n align-items: center;\n width: 100%;\n min-height: 60px;\n padding: 8px 16px 8px 12px;\n border: 0;\n border-radius: var(--list-item-shape, var(--md-sys-shape-corner-small, 8px));\n background: transparent;\n color: var(--md-sys-color-on-surface);\n font: inherit;\n text-align: left;\n cursor: pointer;\n /* The layer follows the text colour, so it shows on the selected row too. */\n --md-ripple-hover-color: currentColor;\n --md-ripple-pressed-color: currentColor;\n }\n\n .option.selected {\n outline: var(--app-border-width) solid var(--md-sys-color-outline);\n outline-offset: calc(var(--app-border-width) * -1);\n background: var(--md-sys-color-secondary-container);\n color: var(--md-sys-color-on-secondary-container);\n }\n\n /* Inside the row: a scrolling list clips what sticks out. After .selected, whose outline it\n replaces. */\n .option:focus-visible,\n .option.selected:focus-visible {\n outline: var(--md-sys-state-focus-indicator-thickness) solid var(--md-sys-color-secondary);\n outline-offset: calc(-1 * var(--md-sys-state-focus-indicator-thickness));\n }\n\n .marker {\n display: flex;\n flex: none;\n width: 24px;\n }\n\n .text {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 4px;\n min-width: 0;\n }\n\n .title {\n overflow: hidden;\n font-size: var(--md-sys-typescale-label-large-size, 14px);\n font-weight: 500;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n /* Font, size and colour are inherited by whatever the subtitle snippet renders. */\n .subtitle {\n overflow: hidden;\n color: var(--md-sys-color-on-surface-variant);\n font-family: var(--app-font-mono);\n font-size: var(--app-mono-size);\n white-space: nowrap;\n }\n\n .selected .subtitle {\n color: inherit;\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n\n type Props = {\n open: boolean;\n sessionId: number | null;\n /** The session's entry count; the bridge forgets a session that ends with none. */\n entries: number | null;\n /** Rejects with a message to show; resolves when the session has ended. */\n onEnd: () => Promise<void>;\n onClose: () => void;\n };\n\n let { open, sessionId, entries, onEnd, onClose }: Props = $props();\n\n const empty = $derived(entries === 0);\n\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) failure = '';\n });\n\n async function confirm(): Promise<void> {\n if (busy) return;\n failure = '';\n busy = true;\n try {\n await onEnd();\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The session could not be ended.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">\n {empty ? 'Drop' : 'End'} session {sessionId === null ? '' : `#${sessionId}`}?\n </div>\n <div slot=\"content\">\n {#if empty}\n <p>This session has no entries, so ending it deletes it. Its number is not reused.</p>\n {:else}\n <p>Speech captured after this belongs to no session.</p>\n {/if}\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </div>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" disabled={busy} onclick={confirm}>End session</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n /* The dialog is as wide as its longest line by default; a cap makes the text wrap. */\n max-width: min(400px, calc(100% - 48px));\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n p {\n margin: 0;\n }\n\n .failure {\n margin-top: 12px;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import ListItem from '#lib/components/ListItem/ListItem.svelte';\n import { describeSession } from '#lib/core/sessions.js';\n import type { SessionDto } from '@screenreader-speech-capture/shared';\n\n type Props = {\n session: SessionDto;\n /** Epoch ms: the end of a live session's duration. */\n now: number;\n selected: boolean;\n live: boolean;\n onSelect: () => void;\n };\n\n let { session, now, selected, live, onSelect }: Props = $props();\n\n const meta = $derived(describeSession(session, now));\n</script>\n\n{#snippet subtitle()}\n <span class=\"meta\">\n {#if live}<span class=\"dot\"></span>{/if}\n {#if meta.run !== null}<span class=\"run\">{meta.run}</span>{/if}\n <span>{meta.duration}</span>\n <span>{meta.entries}</span>\n <span class=\"id\">{meta.id}</span>\n </span>\n{/snippet}\n\n<ListItem\n title={session.name}\n shape=\"var(--md-sys-shape-corner-extra-large, 28px)\"\n {subtitle}\n {selected}\n description={meta.spoken}\n {onSelect}\n/>\n\n<style>\n /* One line. The id gives way first, then the run name, with an ellipsis; the rest stays whole. */\n .meta {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n .meta > span {\n flex: none;\n white-space: nowrap;\n }\n\n .meta > :not(:last-child)::after {\n content: '\\00a0·\\00a0';\n }\n\n /* The id brings its own separator, so none is left over when there is no room for it. */\n .meta > .dot::after,\n .meta > :nth-last-child(2)::after {\n content: none;\n }\n\n .meta > .id::before {\n content: '\\00a0·\\00a0';\n }\n\n .meta > .run,\n .meta > .id {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .meta > .id {\n flex-shrink: 100;\n }\n\n .dot {\n flex: none;\n width: 8px;\n height: 8px;\n margin-right: 6px;\n border-radius: 50%;\n background: var(--app-success);\n animation: pulse 1.6s ease-in-out infinite;\n }\n\n @keyframes pulse {\n 50% {\n opacity: 0.35;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .dot {\n animation: none;\n }\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n import '@material/web/textfield/outlined-text-field.js';\n import { API_LIMITS } from '@screenreader-speech-capture/shared';\n\n type Props = {\n open: boolean;\n /** Rejects with a message to show; resolves when the session has started. */\n onStart: (name: string, run: string | null) => Promise<void>;\n onClose: () => void;\n };\n\n let { open, onStart, onClose }: Props = $props();\n\n let name = $state('');\n let run = $state('');\n let nameError = $state('');\n let failure = $state('');\n let busy = $state(false);\n\n $effect(() => {\n if (open) {\n name = '';\n run = '';\n nameError = '';\n failure = '';\n }\n });\n\n async function submit(event: SubmitEvent): Promise<void> {\n event.preventDefault();\n if (busy) return;\n const trimmedName = name.trim();\n if (trimmedName === '') {\n nameError = 'Enter a name.';\n return;\n }\n nameError = '';\n failure = '';\n busy = true;\n try {\n await onStart(trimmedName, run.trim() === '' ? null : run.trim());\n onClose();\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The session could not be started.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">Start a session</div>\n <form slot=\"content\" id=\"start-session-form\" novalidate onsubmit={submit}>\n <md-outlined-text-field\n label=\"Name\"\n required\n maxlength={API_LIMITS.sessionLabelLength}\n value={name}\n error={nameError !== ''}\n error-text={nameError}\n oninput={(event: Event) => (name = (event.target as HTMLInputElement).value)}\n ></md-outlined-text-field>\n <md-outlined-text-field\n label=\"Run (optional)\"\n supporting-text=\"Groups sessions, for example one run id per test run.\"\n maxlength={API_LIMITS.sessionLabelLength}\n value={run}\n oninput={(event: Event) => (run = (event.target as HTMLInputElement).value)}\n ></md-outlined-text-field>\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n </form>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <md-text-button type=\"submit\" form=\"start-session-form\" disabled={busy}>Start</md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n min-width: min(360px, 70vw);\n }\n\n .failure {\n margin: 0;\n color: var(--md-sys-color-error);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n import '@material/web/iconbutton/icon-button.js';\n import type { SessionDto } from '@screenreader-speech-capture/shared';\n import { arrowNavigation } from '#lib/components/arrow-navigation.js';\n import ListItem from '#lib/components/ListItem/ListItem.svelte';\n import { OUTSIDE_SESSIONS, type SessionScope } from '#lib/core/sessions.js';\n import EndSessionDialog from './EndSessionDialog.svelte';\n import SessionRow from './SessionRow.svelte';\n import StartSessionDialog from './StartSessionDialog.svelte';\n\n type Props = {\n /** Newest first. */\n sessions: SessionDto[];\n currentId: number | null;\n /** Entries in the buffer recorded outside any session. */\n outsideEntries: number;\n /** The session the log shows, or `'none'` for the speech outside any session. */\n selectedId: SessionScope;\n /** Epoch ms, for the duration of the live session. */\n now: number;\n /** Only the header buttons show; the list and the heading are hidden. */\n collapsed?: boolean;\n onToggleCollapse?: () => void;\n onSelect: (id: SessionScope) => void;\n onStart: (name: string, run: string | null) => Promise<void>;\n onEnd: () => Promise<void>;\n };\n\n let {\n sessions,\n currentId,\n outsideEntries,\n selectedId,\n now,\n collapsed = false,\n onToggleCollapse,\n onSelect,\n onStart,\n onEnd,\n }: Props = $props();\n\n let startOpen = $state(false);\n let endOpen = $state(false);\n /** The height of the row pinned over the bottom of the list. */\n let pinnedHeight = $state(0);\n\n const toggleLabel = $derived(currentId === null ? 'Start a session' : `End session ${currentId}`);\n\n const collapseLabel = $derived(collapsed ? 'Expand sessions' : 'Collapse sessions');\n\n const entries = $derived(outsideEntries === 1 ? '1 entry' : `${outsideEntries} entries`);\n\n // Without a current session the speech outside grows, also with a screen reader's reading of\n // this row. With the count in its name, the row would be read again for each new entry, without\n // end; so it is left out then, as for a live session (`describeSession`).\n const outsideSpoken = $derived(\n ['Speech captured while no session was running', ...(currentId === null ? [] : [entries])].join(\n ', ',\n ),\n );\n</script>\n\n{#snippet subtitle()}\n <span>{entries}</span>\n{/snippet}\n\n<section aria-labelledby=\"sessions-heading\" class:collapsed>\n <header>\n <!-- First, so it stays where it is when the pane collapses and the buttons stack. -->\n {#if onToggleCollapse}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n class=\"collapse\"\n title={collapseLabel}\n aria-label={collapseLabel}\n aria-expanded={!collapsed}\n onclick={onToggleCollapse}\n >\n <md-icon aria-hidden=\"true\">{collapsed ? 'left_panel_open' : 'left_panel_close'}</md-icon>\n </md-icon-button>\n {/if}\n <h2 id=\"sessions-heading\" class:visually-hidden={collapsed}>Sessions</h2>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n class={currentId === null ? 'start' : 'stop'}\n title={toggleLabel}\n aria-label={toggleLabel}\n onclick={() => (currentId === null ? (startOpen = true) : (endOpen = true))}\n >\n <md-icon aria-hidden=\"true\">{currentId === null ? 'play_arrow' : 'stop'}</md-icon>\n </md-icon-button>\n </header>\n\n {#if collapsed}\n <!-- Only the header shows while collapsed. -->\n {:else}\n <!-- Not in the listbox, which holds options only. -->\n {#if sessions.length === 0}\n <p class=\"empty\">No sessions in the buffer. Start one with the play button.</p>\n {/if}\n <!-- One selection, so one listbox and one tab stop, \"Records outside sessions\" included. No\n group around the session rows: a screen reader then reads the list like a native one, by\n its selected option\n (docs/implementation/decisions.md#the-ui-builds-its-own-lists-instead-of-using-md-list).\n The padding keeps a row that gets the focus from scrolling under the pinned one. -->\n <div\n class=\"listbox\"\n role=\"listbox\"\n aria-label=\"Session to show\"\n style:scroll-padding-bottom=\"{pinnedHeight}px\"\n {@attach arrowNavigation('[role=\"option\"]', {\n singleTabStop: true,\n wrap: true,\n leftRight: true,\n })}\n >\n {#each sessions as session (session.id)}\n <SessionRow\n {session}\n {now}\n live={session.id === currentId}\n selected={session.id === selectedId}\n onSelect={() => onSelect(session.id)}\n />\n {/each}\n <!-- Pinned to the bottom of the list: not a session, so it stays out of the newest-first\n order. Always shown while expanded, so it doesn't vanish when a session starts. -->\n <div class=\"outside\" bind:offsetHeight={pinnedHeight}>\n <ListItem\n title=\"Records outside sessions\"\n shape=\"var(--md-sys-shape-corner-extra-large, 28px)\"\n {subtitle}\n selected={selectedId === OUTSIDE_SESSIONS}\n description={outsideSpoken}\n onSelect={() => onSelect(OUTSIDE_SESSIONS)}\n />\n </div>\n </div>\n {/if}\n</section>\n\n<StartSessionDialog open={startOpen} {onStart} onClose={() => (startOpen = false)} />\n<EndSessionDialog\n open={endOpen}\n sessionId={currentId}\n entries={sessions.find((session) => session.id === currentId)?.entries ?? null}\n {onEnd}\n onClose={() => (endOpen = false)}\n/>\n\n<style>\n section {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n padding: 16px 12px;\n border: var(--app-border-width) solid var(--md-sys-color-outline);\n border-radius: 28px;\n background: var(--md-sys-color-surface-container-low);\n }\n\n header {\n flex: none;\n display: flex;\n align-items: center;\n padding: 0 4px 8px 0;\n }\n\n /* The buttons stack; the section's 12px padding and the 72px strip keep the first one at the\n same x (and y) as when expanded. */\n section.collapsed {\n align-items: flex-start;\n }\n\n .collapsed header {\n flex-direction: column;\n padding: 0;\n }\n\n h2 {\n flex: 1;\n margin: 0 0 0 8px;\n font-size: var(--md-sys-typescale-title-medium-size, 16px);\n font-weight: 500;\n }\n\n .start {\n --md-icon-button-icon-color: var(--md-sys-color-primary);\n --md-icon-button-hover-icon-color: var(--md-sys-color-primary);\n --md-icon-button-focus-icon-color: var(--md-sys-color-primary);\n }\n\n .stop {\n --md-icon-button-icon-color: var(--md-sys-color-error);\n --md-icon-button-hover-icon-color: var(--md-sys-color-error);\n --md-icon-button-focus-icon-color: var(--md-sys-color-error);\n }\n\n /* The list scrolls itself: as it always holds the tab stop, Chromium doesn't make it one. */\n .listbox {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 4px;\n min-height: 0;\n overflow-y: auto;\n }\n\n /* At the bottom of the list: pushed there under few (or no) rows, sticking there over many. */\n .outside {\n position: sticky;\n bottom: 0;\n z-index: 1;\n flex: none;\n margin-top: auto;\n padding-top: 8px;\n border-top: 1px solid var(--md-sys-color-outline-variant);\n background: var(--md-sys-color-surface-container-low);\n }\n\n .empty {\n margin: 0;\n padding: 8px 16px;\n color: var(--md-sys-color-on-surface-variant);\n }\n</style>\n","import { scopeAfterDelete, type SessionScope } from '#lib/core/sessions.js';\nimport type { createSessionsStore } from './sessions.svelte.js';\nimport type { createSpeechStore } from './speech.svelte.js';\n\ntype MonitorSessions = Pick<\n ReturnType<typeof createSessionsStore>,\n 'sessions' | 'currentId' | 'start' | 'end' | 'delete' | 'refresh'\n>;\ntype MonitorSpeech = Pick<ReturnType<typeof createSpeechStore>, 'clear'>;\n\n/**\n * What the Monitor page does with sessions and speech together: each action, and which session the\n * page shows after it. `navigate` shows a scope (`null`: whatever the page shows by itself, the\n * current session or the speech outside any). Every action rejects with the bridge's message.\n */\nexport function createMonitor(\n sessions: MonitorSessions,\n speech: MonitorSpeech,\n navigate: (scope: SessionScope | null) => Promise<void>,\n) {\n return {\n /** Starts a session and shows it, pinned, so it stays shown after it ends. */\n async start(name: string, run: string | null): Promise<void> {\n const started = await sessions.start(name, run);\n await navigate(started.id);\n },\n async end(): Promise<void> {\n const ended = sessions.currentId;\n await sessions.end();\n // A session without entries is dropped by the bridge: don't keep showing it.\n if (ended !== null && !sessions.sessions.some((session) => session.id === ended)) {\n await navigate(null);\n }\n },\n async clear(scope: SessionScope): Promise<void> {\n await speech.clear(scope);\n // The table empties through the feed; the counts in the list don't wait for the next poll.\n await sessions.refresh();\n },\n /** Deletes an ended session and shows its neighbour. Does nothing for the speech outside. */\n async remove(scope: SessionScope): Promise<void> {\n if (typeof scope !== 'number') return;\n const next = scopeAfterDelete(scope, sessions.sessions);\n await sessions.delete(scope);\n await navigate(next);\n },\n };\n}\n","<script lang=\"ts\">\n import { onMount, untrack } from 'svelte';\n import { goto } from '$app/navigation';\n import { resolve } from '$app/paths';\n import { page } from '$app/state';\n import LoopbackBanner from '#lib/components/LoopbackBanner/LoopbackBanner.svelte';\n import SpeechLog from '#lib/components/SpeechLog/SpeechLog.svelte';\n import SessionsPane from '#lib/components/SessionsPane/SessionsPane.svelte';\n import { appStores } from '#lib/app-context.js';\n import { selectedScope, type SessionScope } from '#lib/core/sessions.js';\n import { createMonitor } from '#lib/stores/monitor.svelte.js';\n import {\n canAddMarker,\n canClearSpeech,\n canDeleteSession,\n isLiveScope,\n logHeading,\n } from '#lib/core/speech.js';\n import type { PageProps } from './$types';\n\n let { data }: PageProps = $props();\n\n const {\n sessions: sessionsStore,\n speech: speechStore,\n sessionsPane: sessionsPaneStore,\n } = appStores();\n\n // The list the load read (`+page.server.ts`), already while rendering: the stores are per\n // request, so the server's HTML has the sessions and the first browser render matches it.\n untrack(() => sessionsStore.seed(data.sessions, data.now));\n const list = $derived({\n sessions: sessionsStore.sessions,\n currentId: sessionsStore.currentId,\n outsideEntries: sessionsStore.outsideEntries,\n });\n const now = $derived(sessionsStore.now);\n\n // The URL names the selected session (or `none`, the speech outside any session); without it the\n // pane follows the current session, and with no current session it shows the speech outside.\n const selectedId = $derived(\n selectedScope(page.url.searchParams.get('session'), list.sessions, list.currentId),\n );\n\n const heading = $derived(logHeading(selectedId, list.sessions));\n const canMark = $derived(canAddMarker(selectedId, list.currentId));\n const canClear = $derived(canClearSpeech(selectedId, list.currentId));\n const canDelete = $derived(canDeleteSession(selectedId, list.currentId));\n\n onMount(() => {\n sessionsPaneStore.init();\n return sessionsStore.init();\n });\n\n // The log follows the selected scope; it only runs in the browser (effects never run on the\n // server). Whether the scope is live is read once, when it opens: a session that ends while it\n // is shown keeps what it has, and is read as an ended one the next time it is selected.\n $effect(() =>\n speechStore.open(\n selectedId,\n untrack(() => isLiveScope(selectedId, list.currentId)),\n ),\n );\n\n function select(id: SessionScope | null): Promise<void> {\n // Always spelled out, even for the current session: a clean URL only follows the current\n // session, so it would jump to the speech outside once that session ends.\n // eslint-disable-next-line svelte/no-navigation-without-resolve\n return goto(id === null ? resolve('/') : `${resolve('/')}?session=${id}`, { reset: false });\n }\n\n const monitor = createMonitor(sessionsStore, speechStore, select);\n</script>\n\n<svelte:head>\n <title>Monitor · Speech Capture</title>\n</svelte:head>\n\n<div class=\"monitor\">\n <!-- The page's heading, only for screen readers, as in `Pane`: the panes name themselves. -->\n <h1 class=\"visually-hidden\">Monitor</h1>\n <!-- Not an `aside`: the pane is a region of its own, and a complementary landmark inside `main`\n would only be a second, unnamed one around it. -->\n <div class=\"sessions\" class:collapsed={sessionsPaneStore.collapsed}>\n <SessionsPane\n collapsed={sessionsPaneStore.collapsed}\n onToggleCollapse={() => sessionsPaneStore.toggle()}\n sessions={list.sessions}\n currentId={list.currentId}\n outsideEntries={list.outsideEntries}\n {selectedId}\n {now}\n onSelect={(id: SessionScope) => void select(id)}\n onStart={(name: string, run: string | null) => monitor.start(name, run)}\n onEnd={() => monitor.end()}\n />\n </div>\n <div class=\"log\">\n {#if data.local}\n <LoopbackBanner />\n {/if}\n <div class=\"log-body\">\n <SpeechLog\n {heading}\n local={data.local}\n entries={speechStore.entries}\n connection={speechStore.connection}\n {canMark}\n onAddMarker={(label: string) => speechStore.addMarker(label)}\n {canClear}\n onClear={() => monitor.clear(selectedId)}\n {canDelete}\n onDelete={() => monitor.remove(selectedId)}\n />\n </div>\n </div>\n</div>\n\n<style>\n /* The same gap above as below, and the one the rail keeps above its active item, so the pane\n starts level with it. */\n .monitor {\n display: flex;\n gap: 16px;\n align-items: stretch;\n height: 100%;\n padding: var(--app-gutter) 0;\n }\n\n .sessions {\n flex: none;\n width: var(--app-sessions-width);\n min-height: 0;\n transition: width 200ms ease;\n }\n\n .sessions.collapsed {\n width: var(--app-sessions-collapsed-width);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .sessions {\n transition: none;\n }\n }\n\n .log {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n min-height: 0;\n }\n\n /* The log fills what the banner (when there is one) leaves. */\n .log-body {\n flex: 1;\n min-height: 0;\n }\n</style>\n"],"ignoreList":[1,2,3],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAA,eAAA,YAAA;;;;AAEQ;;;;;;;;;;ACSR,IAAa,oBAAb,cAAuC,OAAO;CAC1C,2BAA2B;EACvB,OAAOA,CAAK;CAChB;AACJ;;;;;;;ACRA,IAAa,SAASC,CAAI;;AAEX,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuBtB,IAAI,sBAAsB,MAAM,4BAA4B,k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escape","$.escape","$.attr","$.props_id","$.attr","$.ensure_array_like","$.attr_class","$.escape","$.derived","$.attr","$.props_id","$.attr_class","$.attr","$.attr_style","$.escape","$.derived","$.derived","$.escape","$.attr","$.derived","$.escape","$.attr_class","$.attr","$.clsx","$.attr_style","$.stringify","$.ensure_array_like","untrack","$.derived","onMount","$.attr_class"],"sources":["../../../../src/lib/components/LoopbackBanner/LoopbackBanner.svelte","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-tonal-button.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-tonal-styles.cssresult.js","../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/filled-tonal-button.js","../../../../src/lib/components/SpeechLog/ClearSpeechDialog.svelte","../../../../src/lib/components/SpeechLog/DeleteSessionDialog.svelte","../../../../src/lib/components/SpeechLog/MarkerDialog.svelte","../../../../src/lib/components/SpeechLog/SpeechTable.svelte","../../../../src/lib/components/SpeechLog/SpeechLog.svelte","../../../../src/lib/components/ListItem/ListItem.svelte","../../../../src/lib/components/SessionsPane/EndSessionDialog.svelte","../../../../src/lib/components/SessionsPane/SessionRow.svelte","../../../../src/lib/components/SessionsPane/StartSessionDialog.svelte","../../../../src/lib/components/SessionsPane/SessionsPane.svelte","../../../../src/lib/stores/monitor.svelte.ts","../../../../src/routes/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n</script>\n\n<!-- Static: it is rendered once, and must not be read as a live announcement itself. -->\n<div class=\"banner\" role=\"note\">\n <md-icon aria-hidden=\"true\">warning</md-icon>\n <p>\n <strong>The speech log is hidden from the screen reader.</strong>\n This page is opened on the bridge's own machine (loopback or its own network address): the screen\n reader would read new rows aloud and they would be recorded again. Open the UI from another machine\n to read the log with a screen reader.\n </p>\n</div>\n\n<style>\n .banner {\n display: flex;\n align-items: flex-start;\n gap: 12px;\n padding: 12px 16px;\n border-radius: var(--md-sys-shape-corner-medium);\n background: var(--app-warning-container);\n color: var(--app-on-warning-container);\n font-size: var(--md-sys-typescale-body-medium-size);\n line-height: var(--md-sys-typescale-body-medium-line-height);\n }\n\n p {\n flex: 1;\n min-width: 0;\n margin: 0;\n }\n\n md-icon {\n flex: none;\n }\n</style>\n","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport '../../elevation/elevation.js';\nimport { html } from 'lit';\nimport { Button } from './button.js';\n/**\n * A filled tonal button component.\n */\nexport class FilledTonalButton extends Button {\n renderElevationOrOutline() {\n return html `<md-elevation part=\"elevation\"></md-elevation>`;\n }\n}\n//# sourceMappingURL=filled-tonal-button.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./button/internal/filled-tonal-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{--_container-color: var(--md-filled-tonal-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-elevation: var(--md-filled-tonal-button-container-elevation, 0);--_container-height: var(--md-filled-tonal-button-container-height, 40px);--_container-shadow-color: var(--md-filled-tonal-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-tonal-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-tonal-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-tonal-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-tonal-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-tonal-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-tonal-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-tonal-button-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-container-elevation: var(--md-filled-tonal-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-tonal-button-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-tonal-button-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_label-text-font: var(--md-filled-tonal-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-tonal-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-tonal-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-tonal-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-tonal-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-tonal-button-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-color: var(--md-filled-tonal-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-tonal-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_container-shape-start-start: var(--md-filled-tonal-button-container-shape-start-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-tonal-button-container-shape-start-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-tonal-button-container-shape-end-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-tonal-button-container-shape-end-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-tonal-button-leading-space, 24px);--_trailing-space: var(--md-filled-tonal-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-tonal-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-tonal-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-tonal-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-tonal-button-with-trailing-icon-trailing-space, 16px)}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=filled-tonal-styles.cssresult.js.map","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { customElement } from 'lit/decorators.js';\nimport { FilledTonalButton } from './internal/filled-tonal-button.js';\nimport { styles as tonalStyles } from './internal/filled-tonal-styles.cssresult.js';\nimport { styles as sharedElevationStyles } from './internal/shared-elevation-styles.cssresult.js';\nimport { styles as sharedStyles } from './internal/shared-styles.cssresult.js';\n/**\n * @summary Buttons help people take action, such as sending an email, sharing a\n * document, or liking a comment.\n *\n * @description\n * __Emphasis:__ Medium emphasis – For important actions that don’t distract\n * from other onscreen elements.\n *\n * __Rationale:__ Filled tonal buttons have a lighter background color and\n * darker label color, making them less visually prominent than a regular,\n * filled button. They’re still used for final or unblocking actions in a flow,\n * but do so with less emphasis.\n *\n * __Example usages:__\n * - Save\n * - Confirm\n * - Done\n *\n * @final\n * @suppress {visibility}\n */\nlet MdFilledTonalButton = class MdFilledTonalButton extends FilledTonalButton {\n};\nMdFilledTonalButton.styles = [\n sharedStyles,\n sharedElevationStyles,\n tonalStyles,\n];\nMdFilledTonalButton = __decorate([\n customElement('md-filled-tonal-button')\n], MdFilledTonalButton);\nexport { MdFilledTonalButton };\n//# sourceMappingURL=filled-tonal-button.js.map","<script lang=\"ts\">\n import ActionDialog from '#lib/components/ActionDialog/ActionDialog.svelte';\n\n type Props = {\n open: boolean;\n /** `Checkout flow #3` */\n heading: string;\n /** Rejects with a message to show; resolves when the speech is cleared. */\n onClear: () => Promise<void>;\n onClose: () => void;\n };\n\n let { open, heading, onClear, onClose }: Props = $props();\n</script>\n\n<ActionDialog\n {open}\n headline=\"Clear speech?\"\n confirmLabel=\"Clear\"\n failureMessage=\"The speech could not be cleared.\"\n onConfirm={onClear}\n {onClose}\n>\n <p>\n The speech of <strong>{heading}</strong> is removed from the bridge. The session keeps running. This\n cannot be undone.\n </p>\n</ActionDialog>\n","<script lang=\"ts\">\n import ActionDialog from '#lib/components/ActionDialog/ActionDialog.svelte';\n\n type Props = {\n open: boolean;\n /** `Checkout flow #3` */\n heading: string;\n /** Rejects with a message to show; resolves when the session is deleted. */\n onDelete: () => Promise<void>;\n onClose: () => void;\n };\n\n let { open, heading, onDelete, onClose }: Props = $props();\n</script>\n\n<ActionDialog\n {open}\n headline=\"Delete session?\"\n confirmLabel=\"Delete\"\n failureMessage=\"The session could not be deleted.\"\n onConfirm={onDelete}\n {onClose}\n>\n <p>\n <strong>{heading}</strong> and its speech are removed from the bridge. This cannot be undone.\n </p>\n</ActionDialog>\n","<script lang=\"ts\">\n import '@material/web/textfield/outlined-text-field.js';\n import { API_LIMITS } from '@screenreader-speech-capture/shared';\n import ActionDialog from '#lib/components/ActionDialog/ActionDialog.svelte';\n\n type Props = {\n open: boolean;\n /** Rejects with a message to show; resolves when the marker is in. */\n onAdd: (label: string) => Promise<void>;\n onClose: () => void;\n };\n\n let { open, onAdd, onClose }: Props = $props();\n\n let label = $state('');\n let labelError = $state('');\n\n $effect(() => {\n if (open) {\n label = '';\n labelError = '';\n }\n });\n\n function validate(): boolean {\n labelError = label.trim() === '' ? 'Enter a label.' : '';\n return labelError === '';\n }\n</script>\n\n<ActionDialog\n {open}\n headline=\"Add a marker\"\n confirmLabel=\"Add\"\n failureMessage=\"The marker could not be added.\"\n {validate}\n onConfirm={() => onAdd(label.trim())}\n {onClose}\n>\n <div class=\"fields\">\n <md-outlined-text-field\n label=\"Label\"\n required\n maxlength={API_LIMITS.markerLength}\n supporting-text=\"Shows in the log as a row of its own, for example “step 3”.\"\n value={label}\n error={labelError !== ''}\n error-text={labelError}\n oninput={(event: Event) => (label = (event.target as HTMLInputElement).value)}\n ></md-outlined-text-field>\n </div>\n</ActionDialog>\n\n<style>\n .fields {\n display: flex;\n flex-direction: column;\n gap: 16px;\n /* With the dialog's own padding, this fits its width cap. */\n min-width: min(352px, 70vw);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n import type { SpeechEntryDto } from '@screenreader-speech-capture/shared';\n import { formatReceivedTime } from '#lib/core/speech.js';\n\n type Props = {\n /** Oldest first. */\n entries: readonly SpeechEntryDto[];\n };\n\n let { entries }: Props = $props();\n\n const helpId = $props.id();\n\n /** What the long number in the seq column is: the \"?\" tooltip and the table's description. */\n const SEQ_HELP =\n \"Seq is the entry's number in the API (since, --since). It is large because it starts at \" +\n \"the bridge's start time; only its order matters. Numbers can be skipped.\";\n\n /** A row that arrived this recently gets the tint that fades out (see `--app-new-row-ms`). */\n const FRESH_MS = 2000;\n const fresh = (entry: SpeechEntryDto): boolean =>\n Date.now() - Date.parse(entry.receivedAt) < FRESH_MS;\n</script>\n\n<!-- Hidden: only read as the table's description, not as text of its own. -->\n<p id={helpId} hidden>{SEQ_HELP}</p>\n\n<table aria-label=\"Speech\" aria-describedby={helpId}>\n <thead>\n <tr>\n <th scope=\"col\">Received</th>\n <th scope=\"col\">Spoken text</th>\n <!-- Named by its label: Chromium reads the icon's ligature despite `aria-hidden`, and a\n screen reader repeats the column name while navigating. -->\n <th scope=\"col\" class=\"seq\" aria-label=\"Seq\">\n <span class=\"seq-head\">\n Seq\n <span class=\"help\" title={SEQ_HELP} aria-hidden=\"true\">\n <md-icon aria-hidden=\"true\">help</md-icon>\n </span>\n </span>\n </th>\n </tr>\n </thead>\n <tbody>\n {#each entries as entry (entry.seq)}\n <tr class:fresh={fresh(entry)} class:marker={entry.kind === 'marker'}>\n <td class=\"time mono\">{formatReceivedTime(entry.receivedAt)}</td>\n <td class=\"text\">\n {#if entry.kind === 'marker'}\n <span class=\"pill\" title={entry.text}>\n <md-icon aria-hidden=\"true\">bookmark</md-icon>\n <span class=\"visually-hidden\">Marker: </span>\n <span class=\"label mono\">{entry.text}</span>\n </span>\n {:else}\n {entry.text}\n {/if}\n </td>\n <td class=\"seq mono\">#{entry.seq}</td>\n </tr>\n {/each}\n </tbody>\n</table>\n\n<style>\n table {\n width: 100%;\n /* `collapse` would leave the borders of the sticky header behind when scrolling. */\n border-collapse: separate;\n border-spacing: 0;\n }\n\n thead th {\n position: sticky;\n top: 0;\n z-index: 1;\n padding: 6px 12px;\n border-top: 1px solid var(--md-sys-color-outline-variant);\n border-bottom: 1px solid var(--md-sys-color-outline-variant);\n background: var(--md-sys-color-surface-container-low);\n color: var(--md-sys-color-on-surface-variant);\n font-size: var(--md-sys-typescale-label-small-size);\n font-weight: 500;\n letter-spacing: 0.5px;\n text-align: left;\n text-transform: uppercase;\n }\n\n thead th:first-child {\n padding-left: 24px;\n }\n\n th.seq,\n td.seq {\n padding-right: 24px;\n text-align: left;\n }\n\n /* The \"?\" is at the right end of the header cell, centred on the line of \"Seq\". */\n .seq-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n }\n\n .help {\n display: flex;\n /* Taller than the header's text line: the negative margin keeps the row's height. */\n margin-block: -2px;\n }\n\n .help md-icon {\n --md-icon-size: 16px;\n font-size: var(--md-sys-typescale-body-large-size);\n /* The header's uppercase and letter spacing would break the ligature. */\n letter-spacing: normal;\n text-transform: none;\n }\n\n tbody tr:hover {\n background: var(--md-sys-color-surface-container);\n }\n\n td {\n padding: 7px 12px;\n vertical-align: baseline;\n }\n\n /* Time and seq are as wide as their text (seq is a 13-digit number); the text takes the rest. */\n td.time,\n td.seq {\n width: 1%;\n white-space: nowrap;\n }\n\n td.time {\n padding-left: 24px;\n color: var(--md-sys-color-on-surface-variant);\n font-size: var(--app-mono-size);\n line-height: var(--app-mono-line-height);\n }\n\n td.text {\n color: var(--md-sys-color-on-surface);\n font-size: var(--app-log-text-size);\n line-height: var(--app-log-text-line-height);\n overflow-wrap: anywhere;\n }\n\n td.seq {\n /* Not `outline`: on the light theme's log that is just under 4.5:1. */\n color: var(--md-sys-color-on-surface-variant);\n font-size: var(--md-sys-typescale-label-small-size);\n }\n\n tr.fresh {\n animation: fade-new calc(var(--app-new-row-ms) * 1ms) ease-out;\n }\n\n /* High-contrast themes: a left edge marks the new row too (the tint alone is a weak cue). */\n tr.fresh td:first-child {\n animation: fade-new-edge calc(var(--app-new-row-ms) * 1ms) ease-out;\n }\n\n @keyframes fade-new {\n from {\n background: var(--app-new-row);\n }\n }\n\n @keyframes fade-new-edge {\n from {\n box-shadow: inset calc(var(--app-border-width) * 2) 0 0 var(--md-sys-color-primary);\n }\n }\n\n /* In a narrow log the sequence number is the first thing to go (the log pane is the container). */\n @container (max-width: 520px) {\n th.seq,\n td.seq {\n display: none;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n tr.fresh {\n animation: none;\n }\n }\n\n .pill {\n /* Contains the hidden \"Marker:\" label: outside, it escapes the log's scroll area and\n stretches the page. */\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n max-width: 70%;\n height: 24px;\n padding: 0 8px 0 4px;\n border-radius: 6px;\n background: var(--md-sys-color-tertiary-container);\n color: var(--md-sys-color-on-tertiary-container);\n font-size: var(--md-sys-typescale-body-small-size);\n font-weight: 500;\n line-height: var(--md-sys-typescale-body-small-line-height);\n vertical-align: middle;\n }\n\n .pill md-icon {\n --md-icon-size: 16px;\n font-size: var(--md-sys-typescale-body-large-size);\n }\n\n .label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/filled-tonal-button.js';\n import '@material/web/icon/icon.js';\n import '@material/web/iconbutton/icon-button.js';\n import type { SpeechEntryDto } from '@screenreader-speech-capture/shared';\n import type { SessionScope } from '#lib/core/sessions.js';\n import type { FeedState } from '#lib/core/speech.js';\n import ClearSpeechDialog from './ClearSpeechDialog.svelte';\n import DeleteSessionDialog from './DeleteSessionDialog.svelte';\n import MarkerDialog from './MarkerDialog.svelte';\n import SpeechTable from './SpeechTable.svelte';\n\n type Props = {\n /** What the log shows. It changes by itself when the page follows the current session. */\n scope: SessionScope;\n /** `Checkout flow #3`, or `Records outside sessions`. */\n heading: string;\n /**\n * The page is opened on the screen reader's own machine: the screen reader would read new\n * rows, and that speech would be logged again. The rows are hidden from it.\n */\n local?: boolean;\n /** Oldest first. */\n entries: readonly SpeechEntryDto[];\n connection: FeedState;\n /** Whether a marker added now shows up in this log (see `canAddMarker`). */\n canMark: boolean;\n /** Rejects with a message to show; resolves when the marker is in. */\n onAddMarker: (label: string) => Promise<void>;\n /** Whether the shown scope is an ended session that can be deleted (see `canDeleteSession`). */\n canDelete: boolean;\n /** Whether the shown scope can be cleared: the current session, or the speech outside sessions. */\n canClear: boolean;\n /** Rejects with a message to show; resolves when the speech is cleared. */\n onClear: () => Promise<void>;\n /** Rejects with a message to show; resolves when the session is deleted. */\n onDelete: () => Promise<void>;\n };\n\n let {\n scope,\n heading,\n local = false,\n entries,\n connection,\n canMark,\n onAddMarker,\n canDelete,\n onDelete,\n canClear,\n onClear,\n }: Props = $props();\n\n let markerOpen = $state(false);\n let deleteOpen = $state(false);\n let clearOpen = $state(false);\n\n // \"Clear\" and \"Delete\" act on the scope shown when confirmed, so an open question about another\n // scope is withdrawn. Done before the DOM update, so the dialog never shows the new heading. Read\n // through a `$derived`, so the effect only runs when the scope changes.\n const shownScope = $derived(scope);\n $effect.pre(() => {\n void shownScope;\n clearOpen = false;\n deleteOpen = false;\n });\n\n // A dialog whose action is no longer offered closes, and doesn't come back with the next offer.\n $effect.pre(() => {\n if (!canMark) markerOpen = false;\n if (!canClear) clearOpen = false;\n if (!canDelete) deleteOpen = false;\n });\n\n /** Scrolled up further than this from the end, the log stops following new rows. */\n const FOLLOW_SLACK_PX = 48;\n\n let scroller: HTMLElement | undefined = $state();\n let following = $state(true);\n\n function onScroll(): void {\n if (!scroller) return;\n following =\n scroller.scrollHeight - scroller.scrollTop - scroller.clientHeight <= FOLLOW_SLACK_PX;\n }\n\n function jumpToLatest(): void {\n following = true;\n scroller?.scrollTo({ top: scroller.scrollHeight });\n }\n\n /**\n * A click focuses the hidden log, and a screen reader reads what has the focus: remove the focus\n * again.\n */\n function onFocus(event: FocusEvent & { currentTarget: HTMLElement }): void {\n if (local) event.currentTarget.blur();\n }\n\n // After the new row is in the DOM, stay at the end while following. An empty table is a new\n // scope (or a wipe): start following again.\n $effect(() => {\n if (entries.length === 0) following = true;\n if (following && scroller) scroller.scrollTop = scroller.scrollHeight;\n });\n</script>\n\n<!-- Not named by the heading: as a landmark of that name, a screen reader would say it twice. -->\n<section class=\"log\">\n <header>\n <h2 class=\"trunc\">{heading}</h2>\n {#if canMark || canClear || canDelete}\n <div role=\"toolbar\" aria-label=\"Log actions\">\n {#if canMark}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n title=\"Add marker\"\n aria-label=\"Add marker\"\n onclick={() => (markerOpen = true)}\n >\n <md-icon aria-hidden=\"true\">bookmark_add</md-icon>\n </md-icon-button>\n {/if}\n {#if canClear}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n title=\"Clear speech\"\n aria-label=\"Clear speech\"\n disabled={entries.length === 0}\n onclick={() => (clearOpen = true)}\n >\n <md-icon aria-hidden=\"true\">delete_sweep</md-icon>\n </md-icon-button>\n {/if}\n {#if canDelete}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n title=\"Delete session\"\n aria-label=\"Delete session\"\n onclick={() => (deleteOpen = true)}\n >\n <md-icon aria-hidden=\"true\">delete</md-icon>\n </md-icon-button>\n {/if}\n </div>\n {/if}\n </header>\n\n <!-- Focusable so the keyboard can scroll it, except when it is hidden from the screen reader.\n Then it needs the -1: without a `tabindex`, Chromium puts a scrolling element into the tab\n order by itself. -->\n <!-- svelte-ignore a11y_no_noninteractive_tabindex -->\n <div\n class=\"scroll\"\n bind:this={scroller}\n onscroll={onScroll}\n onfocus={onFocus}\n role={local ? undefined : 'region'}\n aria-label={local ? undefined : 'Speech log'}\n aria-live={local ? undefined : 'off'}\n aria-hidden={local ? 'true' : undefined}\n tabindex={local ? -1 : 0}\n >\n <!-- Always there, so its header row doesn't come and go while another scope loads. -->\n <SpeechTable {entries} />\n {#if entries.length === 0}\n <div class=\"empty\">\n <md-icon aria-hidden=\"true\">mic</md-icon>\n {#if connection === 'ended'}\n <p class=\"title\">No entries left</p>\n <p>This session's entries are no longer in the buffer.</p>\n {:else}\n <p class=\"title\">No speech yet</p>\n <p>Make the screen reader speak.</p>\n {/if}\n </div>\n {/if}\n </div>\n\n {#if connection === 'reconnecting' || connection === 'failed' || !following}\n <footer>\n {#if connection === 'reconnecting'}\n <p role=\"status\" class=\"mono\">Connection lost, reconnecting…</p>\n {:else if connection === 'failed'}\n <p role=\"alert\" class=\"mono failed\">The speech could not be loaded.</p>\n {:else}\n <span></span>\n {/if}\n {#if !following}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-filled-tonal-button onclick={jumpToLatest}>\n <md-icon slot=\"icon\" aria-hidden=\"true\">arrow_downward</md-icon>\n Jump to latest\n </md-filled-tonal-button>\n {/if}\n </footer>\n {/if}\n</section>\n\n<!-- Always there, so a dialog that closes does so properly and gives the focus back. -->\n<MarkerDialog open={markerOpen} onAdd={onAddMarker} onClose={() => (markerOpen = false)} />\n<ClearSpeechDialog open={clearOpen} {heading} {onClear} onClose={() => (clearOpen = false)} />\n<DeleteSessionDialog open={deleteOpen} {heading} {onDelete} onClose={() => (deleteOpen = false)} />\n\n<style>\n .log {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n overflow: hidden;\n border: 1px solid var(--md-sys-color-outline-variant);\n border-width: max(1px, var(--app-border-width));\n border-radius: var(--md-sys-shape-corner-large);\n background: var(--md-sys-color-surface-container-lowest);\n }\n\n header {\n box-sizing: border-box;\n flex: none;\n /* The icon button (40px) is only there in some scopes: always reserve its height, so the\n table doesn't jump when the selected session changes. */\n min-height: 64px;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px 12px 8px 24px;\n }\n\n h2 {\n flex: 1;\n min-width: 0;\n margin: 0;\n color: var(--md-sys-color-on-surface);\n font-size: var(--md-sys-typescale-title-large-size);\n font-weight: 500;\n line-height: var(--md-sys-typescale-title-large-line-height);\n }\n\n .trunc {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .scroll {\n container-type: inline-size;\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n\n /* Hidden for a moment: while another scope's rows load there is no point in saying \"No speech\". */\n .empty {\n animation: reveal 0s 250ms backwards;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 96px 24px;\n color: var(--md-sys-color-on-surface-variant);\n text-align: center;\n }\n\n @keyframes reveal {\n from {\n visibility: hidden;\n }\n }\n\n .empty md-icon {\n --md-icon-size: 40px;\n font-size: 40px;\n }\n\n .empty p {\n margin: 4px 0 0;\n font-size: var(--md-sys-typescale-body-medium-size);\n }\n\n .empty .title {\n color: var(--md-sys-color-on-surface);\n font-size: var(--md-sys-typescale-title-medium-size);\n font-weight: 500;\n }\n\n footer {\n flex: none;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n padding: 8px 12px 8px 24px;\n border-top: 1px solid var(--md-sys-color-outline-variant);\n background: var(--md-sys-color-surface-container-low);\n }\n\n footer p.failed {\n color: var(--md-sys-color-error);\n }\n\n footer p {\n margin: 0;\n color: var(--md-sys-color-on-surface-variant);\n font-size: var(--app-mono-size);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n import '@material/web/ripple/ripple.js';\n import type { Snippet } from 'svelte';\n\n type Props = {\n /** One line, cut off with an ellipsis. */\n title: string;\n /** The muted monospace line under the title. */\n subtitle?: Snippet;\n /** Highlights the row, shows an eye and sets `aria-selected`. */\n selected?: boolean;\n /** What a screen reader hears after the title. Nothing visible is read, the subtitle included. */\n description: string;\n /**\n * The row's corner radius as a CSS value. Defaults to 8px, the radius of md-list-item's\n * focus ring (md-list-item itself has no container shape).\n */\n shape?: string;\n onSelect: () => void;\n };\n\n let { title, subtitle, selected = false, description, shape, onSelect }: Props = $props();\n\n const id = $props.id();\n const nameId = `${id}-name`;\n</script>\n\n<!-- An option of the caller's listbox, which handles the arrow keys. A button, so Enter and Space\n select it. Everything visible is aria-hidden, so the sentence at the end is all there is to\n hear. Named by that sentence alone: from the content, Chromium also reads the eye's ligature\n text (\"visibility a, Session 7\"), despite its aria-hidden. -->\n<button\n type=\"button\"\n role=\"option\"\n class=\"option\"\n class:selected\n style:--list-item-shape={shape}\n aria-selected={selected}\n aria-labelledby={nameId}\n onclick={onSelect}\n>\n <md-ripple aria-hidden=\"true\"></md-ripple>\n <!-- Selection without colour. The room is always there, so the text doesn't move. -->\n <span class=\"marker\">\n {#if selected}<md-icon aria-hidden=\"true\">visibility</md-icon>{/if}\n </span>\n <span class=\"text\" aria-hidden=\"true\">\n <span class=\"title\">{title}</span>\n {#if subtitle}\n <span class=\"subtitle\">{@render subtitle()}</span>\n {/if}\n </span>\n <!-- One text, title included: from two, a screen reader makes two lines, and says the list's name\n before each. -->\n <span id={nameId} class=\"visually-hidden\">{title}, {description}</span>\n</button>\n\n<style>\n .option {\n position: relative;\n display: flex;\n flex: none;\n gap: 8px;\n align-items: center;\n width: 100%;\n min-height: 60px;\n padding: 8px 16px 8px 12px;\n border: 0;\n border-radius: var(--list-item-shape, var(--md-sys-shape-corner-small, 8px));\n background: transparent;\n color: var(--md-sys-color-on-surface);\n font: inherit;\n text-align: left;\n cursor: pointer;\n /* The layer follows the text colour, so it shows on the selected row too. */\n --md-ripple-hover-color: currentColor;\n --md-ripple-pressed-color: currentColor;\n }\n\n .option.selected {\n outline: var(--app-border-width) solid var(--md-sys-color-outline);\n outline-offset: calc(var(--app-border-width) * -1);\n background: var(--md-sys-color-secondary-container);\n color: var(--md-sys-color-on-secondary-container);\n }\n\n /* Inside the row: a scrolling list clips what sticks out. After .selected, whose outline it\n replaces. */\n .option:focus-visible,\n .option.selected:focus-visible {\n outline: var(--md-sys-state-focus-indicator-thickness) solid var(--md-sys-color-secondary);\n outline-offset: calc(-1 * var(--md-sys-state-focus-indicator-thickness));\n }\n\n .marker {\n display: flex;\n flex: none;\n width: 24px;\n }\n\n .text {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 4px;\n min-width: 0;\n }\n\n .title {\n overflow: hidden;\n font-size: var(--md-sys-typescale-label-large-size, 14px);\n font-weight: 500;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n /* Font, size and colour are inherited by whatever the subtitle snippet renders. */\n .subtitle {\n overflow: hidden;\n color: var(--md-sys-color-on-surface-variant);\n font-family: var(--app-font-mono);\n font-size: var(--app-mono-size);\n white-space: nowrap;\n }\n\n .selected .subtitle {\n color: inherit;\n }\n</style>\n","<script lang=\"ts\">\n import ActionDialog from '#lib/components/ActionDialog/ActionDialog.svelte';\n\n type Props = {\n open: boolean;\n sessionId: number | null;\n /** The session's entry count; the bridge forgets a session that ends with none. */\n entries: number | null;\n /** Rejects with a message to show; resolves when the session has ended. */\n onEnd: () => Promise<void>;\n onClose: () => void;\n };\n\n let { open, sessionId, entries, onEnd, onClose }: Props = $props();\n\n const empty = $derived(entries === 0);\n</script>\n\n<ActionDialog\n {open}\n headline=\"{empty ? 'Drop' : 'End'} session {sessionId === null ? '' : `#${sessionId}`}?\"\n confirmLabel=\"End session\"\n failureMessage=\"The session could not be ended.\"\n onConfirm={onEnd}\n {onClose}\n>\n {#if empty}\n <p>This session has no entries, so ending it deletes it. Its number is not reused.</p>\n {:else}\n <p>Speech captured after this belongs to no session.</p>\n {/if}\n</ActionDialog>\n","<script lang=\"ts\">\n import ListItem from '#lib/components/ListItem/ListItem.svelte';\n import { describeSession } from '#lib/core/sessions.js';\n import type { SessionDto } from '@screenreader-speech-capture/shared';\n\n type Props = {\n session: SessionDto;\n /** Epoch ms: the end of a live session's duration. */\n now: number;\n selected: boolean;\n live: boolean;\n onSelect: () => void;\n };\n\n let { session, now, selected, live, onSelect }: Props = $props();\n\n const meta = $derived(describeSession(session, now));\n</script>\n\n{#snippet subtitle()}\n <span class=\"meta\">\n {#if live}<span class=\"dot\"></span>{/if}\n {#if meta.run !== null}<span class=\"run\">{meta.run}</span>{/if}\n <span>{meta.duration}</span>\n <span>{meta.entries}</span>\n <span class=\"id\">{meta.id}</span>\n </span>\n{/snippet}\n\n<ListItem\n title={session.name}\n shape=\"var(--md-sys-shape-corner-extra-large, 28px)\"\n {subtitle}\n {selected}\n description={meta.spoken}\n {onSelect}\n/>\n\n<style>\n /* One line. The id gives way first, then the run name, with an ellipsis; the rest stays whole. */\n .meta {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n .meta > span {\n flex: none;\n white-space: nowrap;\n }\n\n .meta > :not(:last-child)::after {\n content: '\\00a0·\\00a0';\n }\n\n /* The id brings its own separator, so none is left over when there is no room for it. */\n .meta > .dot::after,\n .meta > :nth-last-child(2)::after {\n content: none;\n }\n\n .meta > .id::before {\n content: '\\00a0·\\00a0';\n }\n\n .meta > .run,\n .meta > .id {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .meta > .id {\n flex-shrink: 100;\n }\n\n .dot {\n flex: none;\n width: 8px;\n height: 8px;\n margin-right: 6px;\n border-radius: 50%;\n background: var(--app-success);\n animation: pulse 1.6s ease-in-out infinite;\n }\n\n @keyframes pulse {\n 50% {\n opacity: 0.35;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .dot {\n animation: none;\n }\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/textfield/outlined-text-field.js';\n import { API_LIMITS } from '@screenreader-speech-capture/shared';\n import ActionDialog from '#lib/components/ActionDialog/ActionDialog.svelte';\n\n type Props = {\n open: boolean;\n /** Rejects with a message to show; resolves when the session has started. */\n onStart: (name: string, run: string | null) => Promise<void>;\n onClose: () => void;\n };\n\n let { open, onStart, onClose }: Props = $props();\n\n let name = $state('');\n let run = $state('');\n let nameError = $state('');\n\n $effect(() => {\n if (open) {\n name = '';\n run = '';\n nameError = '';\n }\n });\n\n function validate(): boolean {\n nameError = name.trim() === '' ? 'Enter a name.' : '';\n return nameError === '';\n }\n</script>\n\n<ActionDialog\n {open}\n headline=\"Start a session\"\n confirmLabel=\"Start\"\n failureMessage=\"The session could not be started.\"\n {validate}\n onConfirm={() => onStart(name.trim(), run.trim() === '' ? null : run.trim())}\n {onClose}\n>\n <div class=\"fields\">\n <md-outlined-text-field\n label=\"Name\"\n required\n maxlength={API_LIMITS.sessionLabelLength}\n value={name}\n error={nameError !== ''}\n error-text={nameError}\n oninput={(event: Event) => (name = (event.target as HTMLInputElement).value)}\n ></md-outlined-text-field>\n <md-outlined-text-field\n label=\"Run (optional)\"\n supporting-text=\"Groups sessions, for example one run id per test run.\"\n maxlength={API_LIMITS.sessionLabelLength}\n value={run}\n oninput={(event: Event) => (run = (event.target as HTMLInputElement).value)}\n ></md-outlined-text-field>\n </div>\n</ActionDialog>\n\n<style>\n .fields {\n display: flex;\n flex-direction: column;\n gap: 16px;\n /* With the dialog's own padding, this fits its width cap. */\n min-width: min(352px, 70vw);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/icon/icon.js';\n import '@material/web/iconbutton/icon-button.js';\n import type { SessionDto } from '@screenreader-speech-capture/shared';\n import { arrowNavigation } from '#lib/components/arrow-navigation.js';\n import ListItem from '#lib/components/ListItem/ListItem.svelte';\n import { OUTSIDE_SESSIONS, type SessionScope } from '#lib/core/sessions.js';\n import EndSessionDialog from './EndSessionDialog.svelte';\n import SessionRow from './SessionRow.svelte';\n import StartSessionDialog from './StartSessionDialog.svelte';\n\n type Props = {\n /** Newest first. */\n sessions: SessionDto[];\n currentId: number | null;\n /** Entries in the buffer recorded outside any session. */\n outsideEntries: number;\n /** The session the log shows, or `'none'` for the speech outside any session. */\n selectedId: SessionScope;\n /** Epoch ms, for the duration of the live session. */\n now: number;\n /** Whether the last read of the list got an answer. */\n reachable: boolean;\n /** Whether a list was read yet; until then an empty `sessions` says nothing. */\n loaded: boolean;\n /** Only the header buttons show; the list and the heading are hidden. */\n collapsed?: boolean;\n onToggleCollapse?: () => void;\n onSelect: (id: SessionScope) => void;\n onStart: (name: string, run: string | null) => Promise<void>;\n /** Ends the session `id`, if it is still the current one. */\n onEnd: (id: number) => Promise<void>;\n };\n\n let {\n sessions,\n currentId,\n outsideEntries,\n selectedId,\n now,\n reachable,\n loaded,\n collapsed = false,\n onToggleCollapse,\n onSelect,\n onStart,\n onEnd,\n }: Props = $props();\n\n let startOpen = $state(false);\n let endOpen = $state(false);\n\n // The question is about the session that was current when it was asked: it is withdrawn once\n // another session, or none, is current (docs/usage/web-ui.md#context-pane). Read through a\n // `$derived`, so the effect only runs when the value changes.\n const shownCurrent = $derived(currentId);\n $effect.pre(() => {\n void shownCurrent;\n endOpen = false;\n });\n /** The height of the row pinned over the bottom of the list. */\n let pinnedHeight = $state(0);\n\n const toggleLabel = $derived(\n currentId === null ? 'Start a session' : `End session #${currentId}`,\n );\n\n const collapseLabel = $derived(collapsed ? 'Expand sessions' : 'Collapse sessions');\n\n const entries = $derived(outsideEntries === 1 ? '1 entry' : `${outsideEntries} entries`);\n\n // Without a current session the speech outside grows, also with a screen reader's reading of\n // this row. With the count in its name, the row would be read again for each new entry, without\n // end; so it is left out then, as for a live session (`describeSession`).\n const outsideSpoken = $derived(\n ['Speech captured while no session was running', ...(currentId === null ? [] : [entries])].join(\n ', ',\n ),\n );\n</script>\n\n{#snippet subtitle()}\n <span>{entries}</span>\n{/snippet}\n\n<section aria-labelledby=\"sessions-heading\" class:collapsed>\n <header>\n <!-- First, so it stays where it is when the pane collapses and the buttons stack. -->\n {#if onToggleCollapse}\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n class=\"collapse\"\n title={collapseLabel}\n aria-label={collapseLabel}\n aria-expanded={!collapsed}\n onclick={onToggleCollapse}\n >\n <md-icon aria-hidden=\"true\">{collapsed ? 'left_panel_open' : 'left_panel_close'}</md-icon>\n </md-icon-button>\n {/if}\n <h2 id=\"sessions-heading\" class:visually-hidden={collapsed}>Sessions</h2>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-icon-button\n class={currentId === null ? 'start' : 'stop'}\n title={toggleLabel}\n aria-label={toggleLabel}\n onclick={() => (currentId === null ? (startOpen = true) : (endOpen = true))}\n >\n <md-icon aria-hidden=\"true\">{currentId === null ? 'play_arrow' : 'stop'}</md-icon>\n </md-icon-button>\n </header>\n\n {#if collapsed}\n <!-- Only the header shows while collapsed. -->\n {:else}\n <!-- Not in the listbox, which holds options only. -->\n {#if !reachable}\n <p class=\"unreachable\" role=\"alert\">\n The bridge is not reachable.{loaded ? ' This is the last list that was read.' : ''}\n </p>\n {:else if loaded && sessions.length === 0}\n <p class=\"empty\">No sessions in the buffer. Start one with the play button.</p>\n {/if}\n <!-- One selection, so one listbox and one tab stop, \"Records outside sessions\" included. No\n group around the session rows: a screen reader then reads the list like a native one, by\n its selected option\n (docs/implementation/decisions.md#the-ui-builds-its-own-lists-instead-of-using-md-list).\n The padding keeps a row that gets the focus from scrolling under the pinned one. -->\n <div\n class=\"listbox\"\n role=\"listbox\"\n aria-label=\"Session to show\"\n style:scroll-padding-bottom=\"{pinnedHeight}px\"\n {@attach arrowNavigation('[role=\"option\"]', {\n singleTabStop: true,\n wrap: true,\n leftRight: true,\n })}\n >\n {#each sessions as session (session.id)}\n <SessionRow\n {session}\n {now}\n live={session.id === currentId}\n selected={session.id === selectedId}\n onSelect={() => onSelect(session.id)}\n />\n {/each}\n <!-- Pinned to the bottom of the list: not a session, so it stays out of the newest-first\n order. Always shown while expanded, so it doesn't vanish when a session starts. -->\n <div class=\"outside\" bind:offsetHeight={pinnedHeight}>\n <ListItem\n title=\"Records outside sessions\"\n shape=\"var(--md-sys-shape-corner-extra-large, 28px)\"\n {subtitle}\n selected={selectedId === OUTSIDE_SESSIONS}\n description={outsideSpoken}\n onSelect={() => onSelect(OUTSIDE_SESSIONS)}\n />\n </div>\n </div>\n {/if}\n</section>\n\n<StartSessionDialog open={startOpen} {onStart} onClose={() => (startOpen = false)} />\n<EndSessionDialog\n open={endOpen}\n sessionId={currentId}\n entries={sessions.find((session) => session.id === currentId)?.entries ?? null}\n onEnd={() => (currentId === null ? Promise.resolve() : onEnd(currentId))}\n onClose={() => (endOpen = false)}\n/>\n\n<style>\n section {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n padding: 16px 12px;\n border: var(--app-border-width) solid var(--md-sys-color-outline);\n border-radius: var(--md-sys-shape-corner-extra-large);\n background: var(--md-sys-color-surface-container-low);\n }\n\n header {\n flex: none;\n display: flex;\n align-items: center;\n padding: 0 4px 8px 0;\n }\n\n /* The buttons stack; the section's 12px padding and the 72px strip keep the first one at the\n same x (and y) as when expanded. */\n section.collapsed {\n align-items: flex-start;\n }\n\n .collapsed header {\n flex-direction: column;\n padding: 0;\n }\n\n h2 {\n flex: 1;\n margin: 0 0 0 8px;\n font-size: var(--md-sys-typescale-title-medium-size, 16px);\n font-weight: 500;\n }\n\n .start {\n --md-icon-button-icon-color: var(--md-sys-color-primary);\n --md-icon-button-hover-icon-color: var(--md-sys-color-primary);\n --md-icon-button-focus-icon-color: var(--md-sys-color-primary);\n }\n\n .stop {\n --md-icon-button-icon-color: var(--md-sys-color-error);\n --md-icon-button-hover-icon-color: var(--md-sys-color-error);\n --md-icon-button-focus-icon-color: var(--md-sys-color-error);\n }\n\n /* The list scrolls itself: as it always holds the tab stop, Chromium doesn't make it one. */\n .listbox {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 4px;\n min-height: 0;\n overflow-y: auto;\n }\n\n /* At the bottom of the list: pushed there under few (or no) rows, sticking there over many. */\n .outside {\n position: sticky;\n bottom: 0;\n z-index: 1;\n flex: none;\n margin-top: auto;\n padding-top: 8px;\n border-top: 1px solid var(--md-sys-color-outline-variant);\n background: var(--md-sys-color-surface-container-low);\n }\n\n .empty,\n .unreachable {\n margin: 0;\n padding: 8px 16px;\n color: var(--md-sys-color-on-surface-variant);\n }\n\n .unreachable {\n color: var(--md-sys-color-error);\n }\n</style>\n","import { scopeAfterDelete, type SessionScope } from '#lib/core/sessions.js';\nimport type { createSessionsStore } from './sessions.svelte.js';\nimport type { createSpeechStore } from './speech.svelte.js';\n\ntype MonitorSessions = Pick<\n ReturnType<typeof createSessionsStore>,\n 'sessions' | 'currentId' | 'start' | 'end' | 'delete' | 'refresh'\n>;\ntype MonitorSpeech = Pick<ReturnType<typeof createSpeechStore>, 'clear'>;\n\n/**\n * What the Monitor page does with sessions and speech together: each action, and which session the\n * page shows after it. `navigate` shows a scope (`null`: whatever the page shows by itself, the\n * current session or the speech outside any). Every action rejects with the bridge's message.\n */\nexport function createMonitor(\n sessions: MonitorSessions,\n speech: MonitorSpeech,\n navigate: (scope: SessionScope | null) => Promise<void>,\n) {\n return {\n /** Starts a session and shows it, pinned, so it stays shown after it ends. */\n async start(name: string, run: string | null): Promise<void> {\n const started = await sessions.start(name, run);\n await navigate(started.id);\n },\n async end(id: number): Promise<void> {\n await sessions.end(id);\n // A session without entries is dropped by the bridge: don't keep showing it.\n if (!sessions.sessions.some((session) => session.id === id)) await navigate(null);\n },\n async clear(scope: SessionScope): Promise<void> {\n await speech.clear(scope);\n // The table empties through the feed; refresh so the counts in the list don't wait for the\n // next poll.\n await sessions.refresh();\n },\n /** Deletes an ended session and shows its neighbour. Does nothing for the speech outside. */\n async remove(scope: SessionScope): Promise<void> {\n if (typeof scope !== 'number') return;\n const next = scopeAfterDelete(scope, sessions.sessions);\n await sessions.delete(scope);\n await navigate(next);\n },\n };\n}\n","<script lang=\"ts\">\n import { onMount, untrack } from 'svelte';\n import { goto } from '$app/navigation';\n import { resolve } from '$app/paths';\n import { page } from '$app/state';\n import LoopbackBanner from '#lib/components/LoopbackBanner/LoopbackBanner.svelte';\n import SpeechLog from '#lib/components/SpeechLog/SpeechLog.svelte';\n import SessionsPane from '#lib/components/SessionsPane/SessionsPane.svelte';\n import { appStores } from '#lib/app-context.js';\n import { selectedScope, type SessionScope } from '#lib/core/sessions.js';\n import { createMonitor } from '#lib/stores/monitor.svelte.js';\n import {\n canAddMarker,\n canClearSpeech,\n canDeleteSession,\n isLiveScope,\n logHeading,\n } from '#lib/core/speech.js';\n import type { PageProps } from './$types';\n\n let { data }: PageProps = $props();\n\n const {\n sessions: sessionsStore,\n speech: speechStore,\n sessionsPane: sessionsPaneStore,\n } = appStores();\n\n // The list the load read (`+page.server.ts`), already while rendering: the stores are per\n // request, so the server's HTML has the sessions and the first browser render matches it.\n untrack(() => sessionsStore.seed(data.sessions, data.now));\n const list = $derived({\n sessions: sessionsStore.sessions,\n currentId: sessionsStore.currentId,\n outsideEntries: sessionsStore.outsideEntries,\n });\n const now = $derived(sessionsStore.now);\n\n // The URL names the selected session (or `none`, the speech outside any session); without it the\n // pane follows the current session, and with no current session it shows the speech outside.\n const selectedId = $derived(\n selectedScope(page.url.searchParams.get('session'), list.sessions, list.currentId),\n );\n\n const heading = $derived(logHeading(selectedId, list.sessions));\n const canMark = $derived(canAddMarker(selectedId, list.currentId));\n const canClear = $derived(canClearSpeech(selectedId, list.currentId));\n const canDelete = $derived(canDeleteSession(selectedId, list.currentId));\n\n onMount(() => {\n sessionsPaneStore.init();\n return sessionsStore.init();\n });\n\n // The log follows the selected scope; it only runs in the browser (effects never run on the\n // server). Whether the scope is live is read once, when it opens: a session that ends while it\n // is shown keeps what it has, and is read as an ended one the next time it is selected.\n $effect(() =>\n speechStore.open(\n selectedId,\n untrack(() => isLiveScope(selectedId, list.currentId)),\n ),\n );\n\n function select(id: SessionScope | null): Promise<void> {\n // Always spelled out, even for the current session: a clean URL only follows the current\n // session, so it would jump to the speech outside once that session ends.\n // eslint-disable-next-line svelte/no-navigation-without-resolve\n return goto(id === null ? resolve('/') : `${resolve('/')}?session=${id}`, { reset: false });\n }\n\n const monitor = createMonitor(sessionsStore, speechStore, select);\n</script>\n\n<svelte:head>\n <title>Monitor · Speech Capture</title>\n</svelte:head>\n\n<div class=\"monitor\">\n <!-- The page's heading, only for screen readers, as in `Pane`: the panes have headings of\n their own. -->\n <h1 class=\"visually-hidden\">Monitor</h1>\n <!-- Not an `aside`: the pane is a region of its own, and a complementary landmark inside `main`\n would only be a second, unnamed one around it. -->\n <div class=\"sessions\" class:collapsed={sessionsPaneStore.collapsed}>\n <SessionsPane\n collapsed={sessionsPaneStore.collapsed}\n onToggleCollapse={() => sessionsPaneStore.toggle()}\n sessions={list.sessions}\n currentId={list.currentId}\n outsideEntries={list.outsideEntries}\n {selectedId}\n {now}\n reachable={sessionsStore.reachable}\n loaded={sessionsStore.loaded}\n onSelect={(id: SessionScope) => void select(id)}\n onStart={(name: string, run: string | null) => monitor.start(name, run)}\n onEnd={(id: number) => monitor.end(id)}\n />\n </div>\n <div class=\"log\">\n {#if data.local}\n <LoopbackBanner />\n {/if}\n <div class=\"log-body\">\n <SpeechLog\n scope={selectedId}\n {heading}\n local={data.local}\n entries={speechStore.entries}\n connection={speechStore.connection}\n {canMark}\n onAddMarker={(label: string) => speechStore.addMarker(label)}\n {canClear}\n onClear={() => monitor.clear(selectedId)}\n {canDelete}\n onDelete={() => monitor.remove(selectedId)}\n />\n </div>\n </div>\n</div>\n\n<style>\n /* The same gap above as below, and the one the rail keeps above its active item, so the pane\n starts level with it. */\n .monitor {\n display: flex;\n gap: 16px;\n align-items: stretch;\n height: 100%;\n padding: var(--app-gutter) 0;\n }\n\n .sessions {\n flex: none;\n width: var(--app-sessions-width);\n min-height: 0;\n transition: width 200ms ease;\n }\n\n .sessions.collapsed {\n width: var(--app-sessions-collapsed-width);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .sessions {\n transition: none;\n }\n }\n\n .log {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 12px;\n min-width: 0;\n min-height: 0;\n }\n\n /* The log fills what the banner (when there is one) leaves. */\n .log-body {\n flex: 1;\n min-height: 0;\n }\n</style>\n"],"ignoreList":[1,2,3],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAA,eAAA,YAAA;;;;AAEQ;;;;;;;;;;ACSR,IAAa,oBAAb,cAAuC,OAAO;CAC1C,2BAA2B;EACvB,OAAOA,CAAK;CAChB;AACJ;;;;;;;ACRA,IAAa,SAASC,CAAI;;AAEX,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuBtB,IAAI,sBAAsB,MAAM,4BAA4B,kBAAkB,CAC9E;AACA,oBAAoB,SAAS;CACzBC;CACAC;CACAC;AACJ;AACA,sBAAsB,WAAW,CAC7BC,EAAc,wBAAwB,CAC1C,GAAG,mBAAmB;;ACzCtB,SAAA,kBAAA,YAAA,SAAA;;;CAYE,IAAI,EAAE,MAAM,SAAS,SAAS,YAAgB;;EAI7C;;;;EAIU,WAAA;EACV;;GAGwB,WAAA,KAAA,4BAAAC,YAAA,OAAO,EAAA;;;;;AAX1B;;ACbR,SAAA,oBAAA,YAAA,SAAA;;;CAYE,IAAI,EAAE,MAAM,SAAS,UAAU,YAAgB;;EAI9C;;;;EAIU,WAAA;EACV;;GAGU,WAAA,K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KAAA,oFAAAE,WAAA,2BAAA,KAAA,GAAA,EAAA,aAAA,kBAAkB,UAAS,CAAA,EAAA,EAAA;;GAEnD,WAAA,kBAAkB;GACX,wBAAM,kBAAkB,OAAM;GACtC,UAAA,KAAI,CAAA,CAAC;GACJ,WAAA,KAAI,CAAA,CAAC;GACA,gBAAA,KAAI,CAAA,CAAC;GACpB,YAAA,WAAU;GACV,KAAA,IAAG;GACO,WAAA,cAAc;GACjB,QAAA,cAAc;GACZ,WAAC,OAAqB,KAAK,OAAO,EAAE;GACrC,UAAC,MAAc,QAAuB,QAAQ,MAAM,MAAM,GAAG;GAC/D,QAAC,OAAe,QAAQ,IAAI,EAAE;;;EAIlC,IAAA,KAAK,OAAK;;;;;;GAKJ,OAAA,WAAU;GAChB,SAAA,QAAO;GACD,OAAA,KAAK;GACH,SAAA,YAAY;GACT,YAAA,YAAY;GACvB,SAAA,QAAO;GACK,cAAC,UAAkB,YAAY,UAAU,KAAK;GAC1D,UAAA,SAAQ;GACA,eAAM,QAAQ,MAAM,WAAU,CAAA;GACtC,WAAA,UAAS;GACA,gBAAM,QAAQ,OAAO,WAAU,CAAA;;;CA5CzC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"_page.server.ts.js","names":[],"sources":["../../../../../src/routes/settings/+page.server.ts"],"sourcesContent":["import { readConfigState } from '#lib/server/config-state.js';\nimport type { PageServerLoad } from './$types';\n\nexport const load: PageServerLoad = async ({ locals }) => {\n try {\n return { config: await readConfigState(locals.bridge) };\n } catch {\n // The page says so once the browser's own read fails too.\n return { config: null };\n }\n};\n"],"mappings":";;AAGA,IAAa,OAAuB,OAAO,EAAE,aAAa;CACxD,IAAI;EACF,OAAO,EAAE,QAAQ,MAAM,gBAAgB,OAAO,MAAM,EAAE;CACxD,QAAQ;EAEN,OAAO,EAAE,QAAQ,KAAK;CACxB;AACF"}
1
+ {"version":3,"file":"_page.server.ts.js","names":[],"sources":["../../../../../src/routes/settings/+page.server.ts"],"sourcesContent":["import { readConfigState } from '#lib/server/config-state.js';\nimport type { PageServerLoad } from './$types';\n\nexport const load: PageServerLoad = async ({ locals }) => {\n try {\n return { config: await readConfigState(locals.bridge) };\n } catch {\n // The page reports it if the browser's own read fails too.\n return { config: null };\n }\n};\n"],"mappings":";;AAGA,IAAa,OAAuB,OAAO,EAAE,aAAa;CACxD,IAAI;EACF,OAAO,EAAE,QAAQ,MAAM,gBAAgB,OAAO,MAAM,EAAE;CACxD,QAAQ;EAEN,OAAO,EAAE,QAAQ,KAAK;CACxB;AACF"}
@@ -169,7 +169,7 @@ var TCP_PORT = {
169
169
  kind: "text",
170
170
  inputmode: "numeric"
171
171
  },
172
- help: () => "The port the screen reader's speech voice sends to. Default 4449.",
172
+ help: () => "The port the screen reader's socket voice sends to. Default 4449.",
173
173
  format: String,
174
174
  parse(text) {
175
175
  const parsed = parsePort(text);
@@ -180,12 +180,12 @@ var TCP_PORT = {
180
180
  },
181
181
  describe: String,
182
182
  consequence: (saved) => [
183
- `The speech voice on the VM sends to a fixed port, so also add a voice for ${saved} (`,
183
+ `The socket voice on the VM sends to a fixed port, so also add a voice for ${saved} (`,
184
184
  { code: "text-to-socket-engine-add-voice" },
185
185
  ") and select it in the screen reader."
186
186
  ]
187
187
  };
188
- /** The ANSI code pages Windows has, plus UTF-8: what a speech voice on the VM can send. */
188
+ /** The ANSI code pages Windows has, plus UTF-8: what a socket voice on the VM can send. */
189
189
  var ENCODINGS = [
190
190
  ["windows-874", "Thai"],
191
191
  ["windows-1250", "Central European"],
@@ -223,7 +223,7 @@ var TEXT_ENCODING = {
223
223
  kind: "select",
224
224
  options: ENCODINGS
225
225
  },
226
- help: () => "The code page the speech voice sends: the VM's ANSI code page. Default windows-1252.",
226
+ help: () => "The code page the socket voice sends: the VM's ANSI code page. Default windows-1252.",
227
227
  format: (encoding) => encoding,
228
228
  parse: (text) => ({
229
229
  ok: true,
@@ -291,7 +291,6 @@ var PLAYWRIGHT_VERSION = {
291
291
  describe: (version, context) => version ?? bundled(context),
292
292
  consequence: () => ["The first start of a new version installs it, which can take a minute or two. Your test projects need the same version."]
293
293
  };
294
- /** The value of a setting in a configuration. */
295
294
  function readSetting(config, path) {
296
295
  const [section, key] = path.split(".");
297
296
  return config[section][key];
@@ -435,7 +434,7 @@ function RestartSummary($$renderer, $$props) {
435
434
  $$renderer.component(($$renderer) => {
436
435
  /** Whether the last read of the configuration worked. */
437
436
  /** Reads the configuration and the status again, after a restart. */
438
- let { changes, reachable, onCheck } = $$props;
437
+ let { changes, reachable, onRefresh } = $$props;
439
438
  /** What the last check found; empty until someone checks. */
440
439
  let result = "";
441
440
  const counted = (count) => count === 1 ? "1 change waits for a restart" : `${count} changes wait for a restart`;
@@ -456,7 +455,7 @@ function RestartSummary($$renderer, $$props) {
456
455
  }
457
456
  $$renderer.push(`<!--]--></ul> <p class="svelte-1ko3bij">Restarting the bridge empties the recorded speech and sessions.</p> <md-outlined-button type="button" class="svelte-1ko3bij">Check again</md-outlined-button></section>`);
458
457
  } else $$renderer.push("<!--[-1-->");
459
- $$renderer.push(`<!--]--> <p role="status" tabindex="-1" class="result svelte-1ko3bij">${escape_html(result)}</p>`);
458
+ $$renderer.push(`<!--]--> <p role="status" tabindex="-1" class="note result svelte-1ko3bij">${escape_html(result)}</p>`);
460
459
  });
461
460
  }
462
461
  // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/list/internal/list-navigation-helpers.js
@@ -3412,8 +3411,8 @@ function CheckboxField($$renderer, $$props) {
3412
3411
  $$renderer.component(($$renderer) => {
3413
3412
  const id = props_id($$renderer);
3414
3413
  let { path, label, checked, help, error, onChange } = $$props;
3415
- $$renderer.push(`<div><label${attr("id", `${id}-row`)} class="svelte-6obkkj"><span class="box svelte-6obkkj"><input type="checkbox"${attr("data-setting", path)}${attr("checked", checked, true)}${attr("aria-describedby", error === "" ? `${id}-help` : `${id}-error ${id}-help`)}${attr("aria-invalid", error === "" ? void 0 : true)} class="svelte-6obkkj"/> <svg viewBox="0 0 18 18" aria-hidden="true" class="svelte-6obkkj"><path d="M7 14 3 10l1.41-1.41L7 11.17l6.59-6.58L15 6z"></path></svg> <md-ripple${attr("for", `${id}-row`)} aria-hidden="true" class="svelte-6obkkj"></md-ripple></span> <span>${escape_html(label)}</span></label> <p class="help svelte-6obkkj"${attr("id", `${id}-help`)}>${escape_html(help)}</p> `);
3416
- if (error !== "") $$renderer.push(`<!--[0--><p class="error svelte-6obkkj"${attr("id", `${id}-error`)} role="alert">${escape_html(error)}</p>`);
3414
+ $$renderer.push(`<div><label${attr("id", `${id}-row`)} class="svelte-6obkkj"><span class="box svelte-6obkkj"><input type="checkbox"${attr("data-setting", path)}${attr("checked", checked, true)}${attr("aria-describedby", error === "" ? `${id}-help` : `${id}-error ${id}-help`)}${attr("aria-invalid", error === "" ? void 0 : true)} class="svelte-6obkkj"/> <svg viewBox="0 0 18 18" aria-hidden="true" class="svelte-6obkkj"><path d="M7 14 3 10l1.41-1.41L7 11.17l6.59-6.58L15 6z"></path></svg> <md-ripple${attr("for", `${id}-row`)} aria-hidden="true" class="svelte-6obkkj"></md-ripple></span> <span>${escape_html(label)}</span></label> <p class="note help svelte-6obkkj"${attr("id", `${id}-help`)}>${escape_html(help)}</p> `);
3415
+ if (error !== "") $$renderer.push(`<!--[0--><p class="note error svelte-6obkkj"${attr("id", `${id}-error`)} role="alert">${escape_html(error)}</p>`);
3417
3416
  else $$renderer.push("<!--[-1-->");
3418
3417
  $$renderer.push(`<!--]--></div>`);
3419
3418
  });
@@ -3566,7 +3565,7 @@ function SettingsForm($$renderer, $$props) {
3566
3565
  function ThemeSetting($$renderer, $$props) {
3567
3566
  $$renderer.component(($$renderer) => {
3568
3567
  let { value, onChange } = $$props;
3569
- $$renderer.push(`<fieldset class="svelte-15x0123"><legend class="svelte-15x0123">Color theme</legend> <p class="hint svelte-15x0123">Stored in this browser only. Applied immediately.</p> <div class="options svelte-15x0123"><!--[-->`);
3568
+ $$renderer.push(`<fieldset class="svelte-15x0123"><legend class="svelte-15x0123">Color theme</legend> <p class="note hint svelte-15x0123">Stored in this browser only. Applied immediately.</p> <div class="options svelte-15x0123"><!--[-->`);
3570
3569
  const each_array = ensure_array_like(THEMES);
3571
3570
  for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
3572
3571
  let theme = each_array[$$index];
@@ -3582,12 +3581,12 @@ function _page($$renderer, $$props) {
3582
3581
  const { config: configStore, status: statusStore, theme: themeStore } = appStores();
3583
3582
  run(() => configStore.seed(data.config));
3584
3583
  const settingContext = derived(() => ({
3585
- runningPlaywright: (statusStore.status ?? data.status)?.playwright.version ?? null,
3584
+ runningPlaywright: statusStore.status?.playwright.version ?? null,
3586
3585
  playwrightOff: configStore.saved?.playwright.enabled === false
3587
3586
  }));
3588
3587
  const waiting = derived(() => configStore.active === null || configStore.saved === null ? [] : waitingForRestart(configStore.active, configStore.saved, configStore.overrides, settingContext()));
3589
3588
  async function checkAgain() {
3590
- await Promise.all([configStore.refresh(), statusStore.retry()]);
3589
+ await Promise.all([configStore.refresh(), statusStore.refresh()]);
3591
3590
  }
3592
3591
  head("1i19ct2", $$renderer, ($$renderer) => {
3593
3592
  $$renderer.title(($$renderer) => {
@@ -3597,14 +3596,14 @@ function _page($$renderer, $$props) {
3597
3596
  Pane($$renderer, {
3598
3597
  heading: "Settings",
3599
3598
  children: ($$renderer) => {
3600
- $$renderer.push(`<p class="scope intro">Bridge settings apply when the bridge is restarted. Appearance applies at once and is kept in
3599
+ $$renderer.push(`<p class="note intro svelte-1i19ct2">Bridge settings apply when the bridge is restarted. Appearance applies at once and is kept in
3601
3600
  this browser.</p> `);
3602
3601
  if (configStore.active !== null && configStore.saved !== null) {
3603
3602
  $$renderer.push("<!--[0-->");
3604
3603
  RestartSummary($$renderer, {
3605
3604
  changes: waiting(),
3606
3605
  reachable: configStore.reachable,
3607
- onCheck: checkAgain
3606
+ onRefresh: checkAgain
3608
3607
  });
3609
3608
  $$renderer.push(`<!----> <section class="part" aria-labelledby="capture-heading"><h2 id="capture-heading">Speech capture</h2> `);
3610
3609
  SettingsForm($$renderer, {
@@ -3641,8 +3640,8 @@ function _page($$renderer, $$props) {
3641
3640
  onSave: (patch) => configStore.save(patch)
3642
3641
  });
3643
3642
  $$renderer.push(`<!----></section>`);
3644
- } else if (configStore.reading || configStore.reachable) $$renderer.push(`<!--[1--><div class="reading svelte-1i19ct2"><p class="scope" aria-hidden="true">Reading the bridge settings…</p> <md-linear-progress indeterminate="" aria-label="Reading the bridge settings" class="svelte-1i19ct2"></md-linear-progress></div>`);
3645
- else $$renderer.push(`<!--[-1--><div class="unreachable svelte-1i19ct2"><md-icon aria-hidden="true" class="svelte-1i19ct2">cloud_off</md-icon> <p class="scope" role="alert">The bridge is not reachable, so its settings can't be read.</p> <md-filled-button type="button">Try again</md-filled-button></div>`);
3643
+ } else if (configStore.reading || configStore.reachable) $$renderer.push(`<!--[1--><div class="reading svelte-1i19ct2"><p class="note svelte-1i19ct2" aria-hidden="true">Reading the bridge settings…</p> <md-linear-progress indeterminate="" aria-label="Reading the bridge settings" class="svelte-1i19ct2"></md-linear-progress></div>`);
3644
+ else $$renderer.push(`<!--[-1--><div class="unreachable svelte-1i19ct2"><md-icon aria-hidden="true" class="svelte-1i19ct2">cloud_off</md-icon> <p class="note svelte-1i19ct2" role="alert">The bridge is not reachable, so its settings can't be read.</p> <md-filled-button type="button">Try again</md-filled-button></div>`);
3646
3645
  $$renderer.push(`<!--]--> <section class="part" aria-labelledby="appearance-heading"><h2 id="appearance-heading">Appearance</h2> `);
3647
3646
  ThemeSetting($$renderer, {
3648
3647
  value: themeStore.current,