@screenreader-speech-capture/bridge 0.0.0-stage → 0.0.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 (328) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +46 -2
  3. package/dist/cli.mjs +6291 -0
  4. package/dist/ui/adapter-node.js +11 -0
  5. package/dist/ui/client/ui/_app/immutable/assets/0.ONZWQgDA.css +1 -0
  6. package/dist/ui/client/ui/_app/immutable/assets/0.ONZWQgDA.css.br +0 -0
  7. package/dist/ui/client/ui/_app/immutable/assets/0.ONZWQgDA.css.gz +0 -0
  8. package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css +1 -0
  9. package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css.br +3 -0
  10. package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css.gz +0 -0
  11. package/dist/ui/client/ui/_app/immutable/assets/3.WduKm4aT.css +1 -0
  12. package/dist/ui/client/ui/_app/immutable/assets/3.WduKm4aT.css.br +0 -0
  13. package/dist/ui/client/ui/_app/immutable/assets/3.WduKm4aT.css.gz +0 -0
  14. package/dist/ui/client/ui/_app/immutable/assets/4.DyY1vjRV.css +1 -0
  15. package/dist/ui/client/ui/_app/immutable/assets/4.DyY1vjRV.css.br +0 -0
  16. package/dist/ui/client/ui/_app/immutable/assets/4.DyY1vjRV.css.gz +0 -0
  17. package/dist/ui/client/ui/_app/immutable/assets/5.YyxFzHED.css +1 -0
  18. package/dist/ui/client/ui/_app/immutable/assets/5.YyxFzHED.css.br +0 -0
  19. package/dist/ui/client/ui/_app/immutable/assets/5.YyxFzHED.css.gz +0 -0
  20. package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css +1 -0
  21. package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css.br +0 -0
  22. package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css.gz +0 -0
  23. package/dist/ui/client/ui/_app/immutable/assets/ExternalLink.CYXazpKA.css +1 -0
  24. package/dist/ui/client/ui/_app/immutable/assets/ExternalLink.CYXazpKA.css.br +0 -0
  25. package/dist/ui/client/ui/_app/immutable/assets/ExternalLink.CYXazpKA.css.gz +0 -0
  26. package/dist/ui/client/ui/_app/immutable/assets/Pane.Dgdg5KMw.css +1 -0
  27. package/dist/ui/client/ui/_app/immutable/assets/Pane.Dgdg5KMw.css.br +0 -0
  28. package/dist/ui/client/ui/_app/immutable/assets/Pane.Dgdg5KMw.css.gz +0 -0
  29. package/dist/ui/client/ui/_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2 +0 -0
  30. package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2 +0 -0
  31. package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2 +0 -0
  32. package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2 +0 -0
  33. package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2 +0 -0
  34. package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2 +0 -0
  35. package/dist/ui/client/ui/_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2 +0 -0
  36. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff +0 -0
  37. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2 +0 -0
  38. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2 +0 -0
  39. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff +0 -0
  40. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2 +0 -0
  41. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff +0 -0
  42. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff +0 -0
  43. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2 +0 -0
  44. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2 +0 -0
  45. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff +0 -0
  46. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff +0 -0
  47. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2 +0 -0
  48. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff +0 -0
  49. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2 +0 -0
  50. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff +0 -0
  51. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2 +0 -0
  52. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff +0 -0
  53. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2 +0 -0
  54. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff +0 -0
  55. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2 +0 -0
  56. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff +0 -0
  57. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2 +0 -0
  58. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2 +0 -0
  59. package/dist/ui/client/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff +0 -0
  60. package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js +3 -0
  61. package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js.br +0 -0
  62. package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js.gz +0 -0
  63. package/dist/ui/client/ui/_app/immutable/chunks/4wvZDMeR.js +33 -0
  64. package/dist/ui/client/ui/_app/immutable/chunks/4wvZDMeR.js.br +0 -0
  65. package/dist/ui/client/ui/_app/immutable/chunks/4wvZDMeR.js.gz +0 -0
  66. package/dist/ui/client/ui/_app/immutable/chunks/B1Ryegye.js +3 -0
  67. package/dist/ui/client/ui/_app/immutable/chunks/B1Ryegye.js.br +0 -0
  68. package/dist/ui/client/ui/_app/immutable/chunks/B1Ryegye.js.gz +0 -0
  69. package/dist/ui/client/ui/_app/immutable/chunks/B1vArRqi.js +3 -0
  70. package/dist/ui/client/ui/_app/immutable/chunks/B1vArRqi.js.br +0 -0
  71. package/dist/ui/client/ui/_app/immutable/chunks/B1vArRqi.js.gz +0 -0
  72. package/dist/ui/client/ui/_app/immutable/chunks/BS7n1gMj.js +40 -0
  73. package/dist/ui/client/ui/_app/immutable/chunks/BS7n1gMj.js.br +0 -0
  74. package/dist/ui/client/ui/_app/immutable/chunks/BS7n1gMj.js.gz +0 -0
  75. package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js +1 -0
  76. package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js.br +2 -0
  77. package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js.gz +0 -0
  78. package/dist/ui/client/ui/_app/immutable/chunks/Beqi9dRN.js +72 -0
  79. package/dist/ui/client/ui/_app/immutable/chunks/Beqi9dRN.js.br +0 -0
  80. package/dist/ui/client/ui/_app/immutable/chunks/Beqi9dRN.js.gz +0 -0
  81. package/dist/ui/client/ui/_app/immutable/chunks/BnU72Mow.js +2 -0
  82. package/dist/ui/client/ui/_app/immutable/chunks/BnU72Mow.js.br +0 -0
  83. package/dist/ui/client/ui/_app/immutable/chunks/BnU72Mow.js.gz +0 -0
  84. package/dist/ui/client/ui/_app/immutable/chunks/Bvlvl8SZ.js +1 -0
  85. package/dist/ui/client/ui/_app/immutable/chunks/Bvlvl8SZ.js.br +0 -0
  86. package/dist/ui/client/ui/_app/immutable/chunks/Bvlvl8SZ.js.gz +0 -0
  87. package/dist/ui/client/ui/_app/immutable/chunks/CK3uUd4t.js +48 -0
  88. package/dist/ui/client/ui/_app/immutable/chunks/CK3uUd4t.js.br +0 -0
  89. package/dist/ui/client/ui/_app/immutable/chunks/CK3uUd4t.js.gz +0 -0
  90. package/dist/ui/client/ui/_app/immutable/chunks/CMWEX9XL.js +138 -0
  91. package/dist/ui/client/ui/_app/immutable/chunks/CMWEX9XL.js.br +0 -0
  92. package/dist/ui/client/ui/_app/immutable/chunks/CMWEX9XL.js.gz +0 -0
  93. package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js +1 -0
  94. package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js.br +0 -0
  95. package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js.gz +0 -0
  96. package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js +1 -0
  97. package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js.br +4 -0
  98. package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js.gz +0 -0
  99. package/dist/ui/client/ui/_app/immutable/chunks/D0famktY.js +1 -0
  100. package/dist/ui/client/ui/_app/immutable/chunks/D0famktY.js.br +2 -0
  101. package/dist/ui/client/ui/_app/immutable/chunks/D0famktY.js.gz +0 -0
  102. package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js +1 -0
  103. package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js.br +2 -0
  104. package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js.gz +0 -0
  105. package/dist/ui/client/ui/_app/immutable/chunks/DOY87jO2.js +1 -0
  106. package/dist/ui/client/ui/_app/immutable/chunks/DOY87jO2.js.br +0 -0
  107. package/dist/ui/client/ui/_app/immutable/chunks/DOY87jO2.js.gz +0 -0
  108. package/dist/ui/client/ui/_app/immutable/chunks/DUTjbZNf.js +1 -0
  109. package/dist/ui/client/ui/_app/immutable/chunks/DUTjbZNf.js.br +0 -0
  110. package/dist/ui/client/ui/_app/immutable/chunks/DUTjbZNf.js.gz +0 -0
  111. package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js +3 -0
  112. package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js.br +0 -0
  113. package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js.gz +0 -0
  114. package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js +1 -0
  115. package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js.br +1 -0
  116. package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js.gz +0 -0
  117. package/dist/ui/client/ui/_app/immutable/chunks/tKonUL5Y.js +4 -0
  118. package/dist/ui/client/ui/_app/immutable/chunks/tKonUL5Y.js.br +0 -0
  119. package/dist/ui/client/ui/_app/immutable/chunks/tKonUL5Y.js.gz +0 -0
  120. package/dist/ui/client/ui/_app/immutable/entry/app.C8tsut3X.js +2 -0
  121. package/dist/ui/client/ui/_app/immutable/entry/app.C8tsut3X.js.br +0 -0
  122. package/dist/ui/client/ui/_app/immutable/entry/app.C8tsut3X.js.gz +0 -0
  123. package/dist/ui/client/ui/_app/immutable/entry/payload.DSmR2FwN.js +1 -0
  124. package/dist/ui/client/ui/_app/immutable/entry/payload.DSmR2FwN.js.br +0 -0
  125. package/dist/ui/client/ui/_app/immutable/entry/payload.DSmR2FwN.js.gz +0 -0
  126. package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js +2 -0
  127. package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js.br +0 -0
  128. package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js.gz +0 -0
  129. package/dist/ui/client/ui/_app/immutable/nodes/0.3bVKqGbx.js +1 -0
  130. package/dist/ui/client/ui/_app/immutable/nodes/0.3bVKqGbx.js.br +0 -0
  131. package/dist/ui/client/ui/_app/immutable/nodes/0.3bVKqGbx.js.gz +0 -0
  132. package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js +1 -0
  133. package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js.br +0 -0
  134. package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js.gz +0 -0
  135. package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js +1 -0
  136. package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js.br +0 -0
  137. package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js.gz +0 -0
  138. package/dist/ui/client/ui/_app/immutable/nodes/3.WT26F_BF.js +5 -0
  139. package/dist/ui/client/ui/_app/immutable/nodes/3.WT26F_BF.js.br +0 -0
  140. package/dist/ui/client/ui/_app/immutable/nodes/3.WT26F_BF.js.gz +0 -0
  141. package/dist/ui/client/ui/_app/immutable/nodes/4.tiDJxi6M.js +160 -0
  142. package/dist/ui/client/ui/_app/immutable/nodes/4.tiDJxi6M.js.br +0 -0
  143. package/dist/ui/client/ui/_app/immutable/nodes/4.tiDJxi6M.js.gz +0 -0
  144. package/dist/ui/client/ui/_app/immutable/nodes/5.MzfJoePg.js +6 -0
  145. package/dist/ui/client/ui/_app/immutable/nodes/5.MzfJoePg.js.br +0 -0
  146. package/dist/ui/client/ui/_app/immutable/nodes/5.MzfJoePg.js.gz +0 -0
  147. package/dist/ui/client/ui/_app/immutable/nodes/6.bNZhqiRK.js +6 -0
  148. package/dist/ui/client/ui/_app/immutable/nodes/6.bNZhqiRK.js.br +0 -0
  149. package/dist/ui/client/ui/_app/immutable/nodes/6.bNZhqiRK.js.gz +0 -0
  150. package/dist/ui/client/ui/_app/version.json +1 -0
  151. package/dist/ui/client/ui/_app/version.json.br +0 -0
  152. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  153. package/dist/ui/client/ui/robots.txt +3 -0
  154. package/dist/ui/client/ui/robots.txt.br +0 -0
  155. package/dist/ui/client/ui/robots.txt.gz +0 -0
  156. package/dist/ui/handler.js +1 -0
  157. package/dist/ui/index.js +1 -0
  158. package/dist/ui/server/.vite/manifest.json +761 -0
  159. package/dist/ui/server/_app/immutable/assets/ExternalLink.CYXazpKA.css +1 -0
  160. package/dist/ui/server/_app/immutable/assets/Pane.Dgdg5KMw.css +1 -0
  161. package/dist/ui/server/_app/immutable/assets/_layout.DSVNnDlO.css +1 -0
  162. package/dist/ui/server/_app/immutable/assets/_layout.ONZWQgDA.css +1 -0
  163. package/dist/ui/server/_app/immutable/assets/_page.C0Nhvs_m.css +1 -0
  164. package/dist/ui/server/_app/immutable/assets/_page.DyY1vjRV.css +1 -0
  165. package/dist/ui/server/_app/immutable/assets/_page.WduKm4aT.css +1 -0
  166. package/dist/ui/server/_app/immutable/assets/_page.YyxFzHED.css +1 -0
  167. package/dist/ui/server/_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2 +0 -0
  168. package/dist/ui/server/_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2 +0 -0
  169. package/dist/ui/server/_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2 +0 -0
  170. package/dist/ui/server/_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2 +0 -0
  171. package/dist/ui/server/_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2 +0 -0
  172. package/dist/ui/server/_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2 +0 -0
  173. package/dist/ui/server/_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2 +0 -0
  174. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff +0 -0
  175. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2 +0 -0
  176. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2 +0 -0
  177. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff +0 -0
  178. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2 +0 -0
  179. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff +0 -0
  180. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff +0 -0
  181. package/dist/ui/server/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2 +0 -0
  182. package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2 +0 -0
  183. package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff +0 -0
  184. package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff +0 -0
  185. package/dist/ui/server/_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2 +0 -0
  186. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff +0 -0
  187. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2 +0 -0
  188. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff +0 -0
  189. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2 +0 -0
  190. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff +0 -0
  191. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2 +0 -0
  192. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff +0 -0
  193. package/dist/ui/server/_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2 +0 -0
  194. package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff +0 -0
  195. package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2 +0 -0
  196. package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2 +0 -0
  197. package/dist/ui/server/_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff +0 -0
  198. package/dist/ui/server/adapter-env.js +1 -0
  199. package/dist/ui/server/adapter-index.js +73 -0
  200. package/dist/ui/server/adapter-index.js.map +1 -0
  201. package/dist/ui/server/adapter-node-env.js +63 -0
  202. package/dist/ui/server/adapter-node-env.js.map +1 -0
  203. package/dist/ui/server/adapter-node-handler.js +638 -0
  204. package/dist/ui/server/adapter-node-handler.js.map +1 -0
  205. package/dist/ui/server/chunks/ExternalLink.js +12 -0
  206. package/dist/ui/server/chunks/ExternalLink.js.map +1 -0
  207. package/dist/ui/server/chunks/Pane.js +13 -0
  208. package/dist/ui/server/chunks/Pane.js.map +1 -0
  209. package/dist/ui/server/chunks/composition.js +3468 -0
  210. package/dist/ui/server/chunks/composition.js.map +1 -0
  211. package/dist/ui/server/chunks/config-state.js +21 -0
  212. package/dist/ui/server/chunks/config-state.js.map +1 -0
  213. package/dist/ui/server/chunks/config.js +145 -0
  214. package/dist/ui/server/chunks/config.js.map +1 -0
  215. package/dist/ui/server/chunks/dialog.js +592 -0
  216. package/dist/ui/server/chunks/dialog.js.map +1 -0
  217. package/dist/ui/server/chunks/exports.js +352 -0
  218. package/dist/ui/server/chunks/exports.js.map +1 -0
  219. package/dist/ui/server/chunks/filled-button.js +116 -0
  220. package/dist/ui/server/chunks/filled-button.js.map +1 -0
  221. package/dist/ui/server/chunks/functions.js +29 -0
  222. package/dist/ui/server/chunks/functions.js.map +1 -0
  223. package/dist/ui/server/chunks/icon-button.js +234 -0
  224. package/dist/ui/server/chunks/icon-button.js.map +1 -0
  225. package/dist/ui/server/chunks/icon.js +49 -0
  226. package/dist/ui/server/chunks/icon.js.map +1 -0
  227. package/dist/ui/server/chunks/index-server.js +6 -0
  228. package/dist/ui/server/chunks/index-server.js.map +1 -0
  229. package/dist/ui/server/chunks/instance.js +3577 -0
  230. package/dist/ui/server/chunks/instance.js.map +1 -0
  231. package/dist/ui/server/chunks/internal.js +3577 -0
  232. package/dist/ui/server/chunks/internal.js.map +1 -0
  233. package/dist/ui/server/chunks/navigation.js +11 -0
  234. package/dist/ui/server/chunks/navigation.js.map +1 -0
  235. package/dist/ui/server/chunks/navigation2.js +15 -0
  236. package/dist/ui/server/chunks/navigation2.js.map +1 -0
  237. package/dist/ui/server/chunks/outlined-text-field.js +1477 -0
  238. package/dist/ui/server/chunks/outlined-text-field.js.map +1 -0
  239. package/dist/ui/server/chunks/paths.js +2 -0
  240. package/dist/ui/server/chunks/redispatch-event.js +91 -0
  241. package/dist/ui/server/chunks/redispatch-event.js.map +1 -0
  242. package/dist/ui/server/chunks/remote-1j2tn2d.js +4 -0
  243. package/dist/ui/server/chunks/remote.js +1580 -0
  244. package/dist/ui/server/chunks/remote.js.map +1 -0
  245. package/dist/ui/server/chunks/scope.js +13 -0
  246. package/dist/ui/server/chunks/scope.js.map +1 -0
  247. package/dist/ui/server/chunks/server-errors.js +471 -0
  248. package/dist/ui/server/chunks/server-errors.js.map +1 -0
  249. package/dist/ui/server/chunks/server.js +8 -0
  250. package/dist/ui/server/chunks/server.js.map +1 -0
  251. package/dist/ui/server/chunks/server2.js +1960 -0
  252. package/dist/ui/server/chunks/server2.js.map +1 -0
  253. package/dist/ui/server/chunks/sessions.js +65 -0
  254. package/dist/ui/server/chunks/sessions.js.map +1 -0
  255. package/dist/ui/server/chunks/sessions.remote.js +56 -0
  256. package/dist/ui/server/chunks/sessions.remote.js.map +1 -0
  257. package/dist/ui/server/chunks/shared-errors.js +198 -0
  258. package/dist/ui/server/chunks/shared-errors.js.map +1 -0
  259. package/dist/ui/server/chunks/shared.js +85 -0
  260. package/dist/ui/server/chunks/shared.js.map +1 -0
  261. package/dist/ui/server/chunks/src.js +1217 -0
  262. package/dist/ui/server/chunks/src.js.map +1 -0
  263. package/dist/ui/server/chunks/state.js +38 -0
  264. package/dist/ui/server/chunks/state.js.map +1 -0
  265. package/dist/ui/server/chunks/static-html.js +38 -0
  266. package/dist/ui/server/chunks/static-html.js.map +1 -0
  267. package/dist/ui/server/chunks/text-button.js +307 -0
  268. package/dist/ui/server/chunks/text-button.js.map +1 -0
  269. package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +19 -0
  270. package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -0
  271. package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js +14 -0
  272. package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js.map +1 -0
  273. package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js +13 -0
  274. package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js.map +1 -0
  275. package/dist/ui/server/entries/endpoints/api/sessions/_id_id_/_server.ts.js +12 -0
  276. package/dist/ui/server/entries/endpoints/api/sessions/_id_id_/_server.ts.js.map +1 -0
  277. package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +13 -0
  278. package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js.map +1 -0
  279. package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js +9 -0
  280. package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js.map +1 -0
  281. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +25 -0
  282. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js.map +1 -0
  283. package/dist/ui/server/entries/endpoints/api/speech/stream/_server.ts.js +19 -0
  284. package/dist/ui/server/entries/endpoints/api/speech/stream/_server.ts.js.map +1 -0
  285. package/dist/ui/server/entries/endpoints/api/status/_server.ts.js +9 -0
  286. package/dist/ui/server/entries/endpoints/api/status/_server.ts.js.map +1 -0
  287. package/dist/ui/server/entries/hooks.server.js +161 -0
  288. package/dist/ui/server/entries/hooks.server.js.map +1 -0
  289. package/dist/ui/server/entries/pages/_error.svelte.js +16 -0
  290. package/dist/ui/server/entries/pages/_error.svelte.js.map +1 -0
  291. package/dist/ui/server/entries/pages/_layout.server.ts.js +17 -0
  292. package/dist/ui/server/entries/pages/_layout.server.ts.js.map +1 -0
  293. package/dist/ui/server/entries/pages/_layout.svelte.js +175 -0
  294. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -0
  295. package/dist/ui/server/entries/pages/_page.server.ts.js +18 -0
  296. package/dist/ui/server/entries/pages/_page.server.ts.js.map +1 -0
  297. package/dist/ui/server/entries/pages/_page.svelte.js +444 -0
  298. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -0
  299. package/dist/ui/server/entries/pages/settings/_page.server.ts.js +12 -0
  300. package/dist/ui/server/entries/pages/settings/_page.server.ts.js.map +1 -0
  301. package/dist/ui/server/entries/pages/settings/_page.svelte.js +3531 -0
  302. package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -0
  303. package/dist/ui/server/entries/pages/setup/_layout.svelte.js +51 -0
  304. package/dist/ui/server/entries/pages/setup/_layout.svelte.js.map +1 -0
  305. package/dist/ui/server/entries/pages/setup/_page.svelte.js +230 -0
  306. package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -0
  307. package/dist/ui/server/entries/pages/setup/instructions/_page.server.ts.js +12 -0
  308. package/dist/ui/server/entries/pages/setup/instructions/_page.server.ts.js.map +1 -0
  309. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js +271 -0
  310. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js.map +1 -0
  311. package/dist/ui/server/entries/params.js +60 -0
  312. package/dist/ui/server/entries/params.js.map +1 -0
  313. package/dist/ui/server/env.js +1 -0
  314. package/dist/ui/server/handler.js +1 -0
  315. package/dist/ui/server/index.js +67 -0
  316. package/dist/ui/server/index.js.map +1 -0
  317. package/dist/ui/server/manifest-full.js +126 -0
  318. package/dist/ui/server/manifest.js +126 -0
  319. package/dist/ui/server/nodes/0.js +10 -0
  320. package/dist/ui/server/nodes/1.js +8 -0
  321. package/dist/ui/server/nodes/2.js +8 -0
  322. package/dist/ui/server/nodes/3.js +10 -0
  323. package/dist/ui/server/nodes/4.js +10 -0
  324. package/dist/ui/server/nodes/5.js +8 -0
  325. package/dist/ui/server/nodes/6.js +10 -0
  326. package/dist/ui/server/remote-entry.js +1 -0
  327. package/dist/ui/server/server.js +128 -0
  328. package/package.json +39 -3
@@ -0,0 +1,38 @@
1
+ import { l as getContext } from "./server2.js";
2
+ import "./index-server.js";
3
+ // ../../node_modules/.pnpm/@sveltejs+kit@3.4.1_@sveltejs+vite-plugin-svelte@7.3.2_svelte@5.59.2_@typescript-eslint_728102f730ebab1d17bec5b56ce561d1/node_modules/@sveltejs/kit/src/runtime/app/state/server.js
4
+ function context() {
5
+ return getContext("__request__");
6
+ }
7
+ var page = {
8
+ get data() {
9
+ return context().page.data;
10
+ },
11
+ get error() {
12
+ return context().page.error;
13
+ },
14
+ get form() {
15
+ return context().page.form;
16
+ },
17
+ get params() {
18
+ return context().page.params;
19
+ },
20
+ get route() {
21
+ return context().page.route;
22
+ },
23
+ get shallow() {
24
+ return context().page.shallow;
25
+ },
26
+ get state() {
27
+ return context().page.state;
28
+ },
29
+ get status() {
30
+ return context().page.status;
31
+ },
32
+ get url() {
33
+ return context().page.url;
34
+ }
35
+ };
36
+ export { page as t };
37
+
38
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","names":[],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.4.1_@sveltejs+vite-plugin-svelte@7.3.2_svelte@5.59.2_@typescript-eslint_728102f730ebab1d17bec5b56ce561d1/node_modules/@sveltejs/kit/src/runtime/app/state/server.js"],"sourcesContent":["import { DEV } from 'esm-env';\nimport { getContext } from 'svelte';\nimport * as e from '../../../messages/server-errors.js';\n\nfunction context() {\n\treturn getContext('__request__');\n}\n\n/** @param {string} name */\nfunction context_dev(name) {\n\ttry {\n\t\treturn context();\n\t} catch {\n\t\te.state_read_outside_render({ name });\n\t}\n}\n\nexport const page = {\n\tget data() {\n\t\treturn (DEV ? context_dev('page.data') : context()).page.data;\n\t},\n\tget error() {\n\t\treturn (DEV ? context_dev('page.error') : context()).page.error;\n\t},\n\tget form() {\n\t\treturn (DEV ? context_dev('page.form') : context()).page.form;\n\t},\n\tget params() {\n\t\treturn (DEV ? context_dev('page.params') : context()).page.params;\n\t},\n\tget route() {\n\t\treturn (DEV ? context_dev('page.route') : context()).page.route;\n\t},\n\tget shallow() {\n\t\treturn (DEV ? context_dev('page.shallow') : context()).page.shallow;\n\t},\n\tget state() {\n\t\treturn (DEV ? context_dev('page.state') : context()).page.state;\n\t},\n\tget status() {\n\t\treturn (DEV ? context_dev('page.status') : context()).page.status;\n\t},\n\tget url() {\n\t\treturn (DEV ? context_dev('page.url') : context()).page.url;\n\t}\n};\n\nexport const navigating = {\n\tfrom: null,\n\tto: null,\n\ttype: null,\n\twillUnload: null,\n\tdelta: null,\n\tcomplete: null\n};\n\nexport const updated = {\n\tget current() {\n\t\treturn false;\n\t},\n\tcheck: () => {\n\t\te.server_api_unavailable({ name: 'updated.check()' });\n\t}\n};\n"],"ignoreList":[0],"mappings":";;;AAIA,SAAS,UAAU;CAClB,OAAO,WAAW,aAAa;AAChC;AAWA,IAAa,OAAO;CACnB,IAAI,OAAO;EACV,OAAyC,QAAQ,CAAA,CAAG,KAAK;CAC1D;CACA,IAAI,QAAQ;EACX,OAA0C,QAAQ,CAAA,CAAG,KAAK;CAC3D;CACA,IAAI,OAAO;EACV,OAAyC,QAAQ,CAAA,CAAG,KAAK;CAC1D;CACA,IAAI,SAAS;EACZ,OAA2C,QAAQ,CAAA,CAAG,KAAK;CAC5D;CACA,IAAI,QAAQ;EACX,OAA0C,QAAQ,CAAA,CAAG,KAAK;CAC3D;CACA,IAAI,UAAU;EACb,OAA4C,QAAQ,CAAA,CAAG,KAAK;CAC7D;CACA,IAAI,QAAQ;EACX,OAA0C,QAAQ,CAAA,CAAG,KAAK;CAC3D;CACA,IAAI,SAAS;EACZ,OAA2C,QAAQ,CAAA,CAAG,KAAK;CAC5D;CACA,IAAI,MAAM;EACT,OAAwC,QAAQ,CAAA,CAAG,KAAK;CACzD;AACD"}
@@ -0,0 +1,38 @@
1
+ import { I as T } from "./composition.js";
2
+ // ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/static.js
3
+ /**
4
+ * @license
5
+ * Copyright 2020 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */
8
+ var a = Symbol.for("");
9
+ var o = (t) => {
10
+ if (t?.r === a) return t?._$litStatic$;
11
+ };
12
+ var i = (t, ...r) => ({
13
+ _$litStatic$: r.reduce((r, e, a) => r + ((t) => {
14
+ if (void 0 !== t._$litStatic$) return t._$litStatic$;
15
+ throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`);
16
+ })(e) + t[a + 1], t[0]),
17
+ r: a
18
+ });
19
+ var l = /* @__PURE__ */ new Map();
20
+ var n = (t) => (r, ...e) => {
21
+ const a = e.length;
22
+ let s, i;
23
+ const n = [], u = [];
24
+ let c, $ = 0, f = !1;
25
+ for (; $ < a;) {
26
+ for (c = r[$]; $ < a && void 0 !== (i = e[$], s = o(i));) c += s + r[++$], f = !0;
27
+ $ !== a && u.push(i), n.push(c), $++;
28
+ }
29
+ if ($ === a && n.push(r[a]), f) {
30
+ const t = n.join("$$lit$$");
31
+ void 0 === (r = l.get(t)) && (n.raw = n, l.set(t, r = n)), e = u;
32
+ }
33
+ return t(r, ...e);
34
+ };
35
+ var u = n(T);
36
+ export { u as n, i as t };
37
+
38
+ //# sourceMappingURL=static-html.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static-html.js","names":["t","r","e"],"sources":["../../../../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/static.js"],"sourcesContent":["import{html as t,svg as r,mathml as e}from\"./lit-html.js\";\n/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst a=Symbol.for(\"\"),o=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litStatic$:t,r:a}),i=(t,...r)=>({_$litStatic$:r.reduce((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\\n take care to ensure page security.`)})(e)+t[a+1],t[0]),r:a}),l=new Map,n=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=!1;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o(i));)c+=s+r[++$],f=!0;$!==a&&u.push(i),n.push(c),$++}if($===a&&n.push(r[a]),f){const t=n.join(\"$$lit$$\");void 0===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u}return t(r,...e)},u=n(t),c=n(r),$=n(e);export{u as html,i as literal,$ as mathml,c as svg,s as unsafeStatic,n as withStatic};\n//# sourceMappingURL=static.js.map\n"],"ignoreList":[0],"mappings":";;;;;;;AAMA,IAAM,IAAE,OAAO,IAAI,EAAE;AAAE,IAAA,KAAE,MAAG;CAAC,IAAG,GAAG,MAAI,GAAE,OAAO,GAAG;AAAY;AAA8B,IAAA,KAAG,GAAE,GAAG,OAAK;CAAC,cAAa,EAAE,QAAQ,GAAE,GAAE,MAAI,MAAG,MAAG;EAAC,IAAG,KAAK,MAAI,EAAE,cAAa,OAAO,EAAE;EAAa,MAAM,MAAM,kEAAkE,EAAE,qGAAqG;CAAC,EAAA,CAAG,CAAC,IAAE,EAAE,IAAE,IAAG,EAAE,EAAE;CAAE,GAAE;AAAC;AAAG,IAAA,oBAAE,IAAI,IAAE;AAAE,IAAA,KAAE,OAAI,GAAE,GAAG,MAAI;CAAC,MAAM,IAAE,EAAE;CAAO,IAAI,GAAE;CAAE,MAAM,IAAE,CAAC,GAAE,IAAE,CAAC;CAAE,IAAI,GAAE,IAAE,GAAE,IAAE,CAAC;CAAE,OAAK,IAAE,IAAG;EAAC,KAAI,IAAE,EAAE,IAAG,IAAE,KAAG,KAAK,OAAK,IAAE,EAAE,IAAG,IAAE,EAAE,CAAC,KAAI,KAAG,IAAE,EAAE,EAAE,IAAG,IAAE,CAAC;EAAE,MAAI,KAAG,EAAE,KAAK,CAAC,GAAE,EAAE,KAAK,CAAC,GAAE;CAAG;CAAC,IAAG,MAAI,KAAG,EAAE,KAAK,EAAE,EAAE,GAAE,GAAE;EAAC,MAAM,IAAE,EAAE,KAAK,SAAS;EAAE,KAAK,OAAK,IAAE,EAAE,IAAI,CAAC,OAAK,EAAE,MAAI,GAAE,EAAE,IAAI,GAAE,IAAE,CAAC,IAAG,IAAE;CAAC;CAAC,OAAO,EAAE,GAAE,GAAG,CAAC;AAAC;AAAE,IAAA,IAAE,EAAEA,CAAC"}
@@ -0,0 +1,307 @@
1
+ import { B as e$1, G as t, I as T, K as __decorate, M as i, N as A, S as mixinElementInternals, T as mixinDelegatesAria, U as n, V as e, W as i$1, b as mixinFormAssociated, v as mixinFormSubmitter } from "./composition.js";
2
+ // ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/query-assigned-elements.js
3
+ /**
4
+ * @license
5
+ * Copyright 2021 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */ function o(o) {
8
+ return (e$2, n) => {
9
+ const { slot: r, selector: s } = o ?? {}, c = "slot" + (r ? `[name=${r}]` : ":not([name])");
10
+ return e(e$2, n, { get() {
11
+ const e = (this.renderRoot?.querySelector(c))?.assignedElements(o) ?? [];
12
+ return void 0 === s ? e : e.filter((t) => t.matches(s));
13
+ } });
14
+ };
15
+ }
16
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/events/form-label-activation.js
17
+ /**
18
+ * @license
19
+ * Copyright 2021 Google LLC
20
+ * SPDX-License-Identifier: Apache-2.0
21
+ */
22
+ /**
23
+ * Dispatches a click event to the given element that triggers a native action,
24
+ * but is not composed and therefore is not seen outside the element.
25
+ *
26
+ * This is useful for responding to an external click event on the host element
27
+ * that should trigger an internal action like a button click.
28
+ *
29
+ * Note, a helper is provided because setting this up correctly is a bit tricky.
30
+ * In particular, calling `click` on an element creates a composed event, which
31
+ * is not desirable, and a manually dispatched event must specifically be a
32
+ * `MouseEvent` to trigger a native action.
33
+ *
34
+ * @example
35
+ * hostClickListener = (event: MouseEvent) {
36
+ * if (isActivationClick(event)) {
37
+ * this.dispatchActivationClick(this.buttonElement);
38
+ * }
39
+ * }
40
+ *
41
+ */
42
+ function dispatchActivationClick(element) {
43
+ const event = new MouseEvent("click", { bubbles: true });
44
+ element.dispatchEvent(event);
45
+ return event;
46
+ }
47
+ /**
48
+ * Returns true if the click event should trigger an activation behavior. The
49
+ * behavior is defined by the element and is whatever it should do when
50
+ * clicked.
51
+ *
52
+ * Typically when an element needs to handle a click, the click is generated
53
+ * from within the element and an event listener within the element implements
54
+ * the needed behavior; however, it's possible to fire a click directly
55
+ * at the element that the element should handle. This method helps
56
+ * distinguish these "external" clicks.
57
+ *
58
+ * An "external" click can be triggered in a number of ways: via a click
59
+ * on an associated label for a form associated element, calling
60
+ * `element.click()`, or calling
61
+ * `element.dispatchEvent(new MouseEvent('click', ...))`.
62
+ *
63
+ * Also works around Firefox issue
64
+ * https://bugzilla.mozilla.org/show_bug.cgi?id=1804576 by squelching
65
+ * events for a microtask after called.
66
+ *
67
+ * @example
68
+ * hostClickListener = (event: MouseEvent) {
69
+ * if (isActivationClick(event)) {
70
+ * this.dispatchActivationClick(this.buttonElement);
71
+ * }
72
+ * }
73
+ *
74
+ */
75
+ function isActivationClick(event) {
76
+ if (event.currentTarget !== event.target) return false;
77
+ if (event.composedPath()[0] !== event.target) return false;
78
+ if (event.target.disabled) return false;
79
+ return !squelchEvent(event);
80
+ }
81
+ function squelchEvent(event) {
82
+ const squelched = isSquelchingEvents;
83
+ if (squelched) {
84
+ event.preventDefault();
85
+ event.stopImmediatePropagation();
86
+ }
87
+ squelchEventsForMicrotask();
88
+ return squelched;
89
+ }
90
+ var isSquelchingEvents = false;
91
+ async function squelchEventsForMicrotask() {
92
+ isSquelchingEvents = true;
93
+ await null;
94
+ isSquelchingEvents = false;
95
+ }
96
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/button.js
97
+ /**
98
+ * @license
99
+ * Copyright 2019 Google LLC
100
+ * SPDX-License-Identifier: Apache-2.0
101
+ */
102
+ var buttonBaseClass = mixinDelegatesAria(mixinFormSubmitter(mixinFormAssociated(mixinElementInternals(i))));
103
+ /**
104
+ * A button component.
105
+ */
106
+ var Button = class extends buttonBaseClass {
107
+ constructor() {
108
+ super();
109
+ /**
110
+ * Whether or not the button is "soft-disabled" (disabled but still
111
+ * focusable).
112
+ *
113
+ * Use this when a button needs increased visibility when disabled. See
114
+ * https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls
115
+ * for more guidance on when this is needed.
116
+ */
117
+ this.softDisabled = false;
118
+ /**
119
+ * The URL that the link button points to.
120
+ */
121
+ this.href = "";
122
+ /**
123
+ * The filename to use when downloading the linked resource.
124
+ * If not specified, the browser will determine a filename.
125
+ * This is only applicable when the button is used as a link (`href` is set).
126
+ */
127
+ this.download = "";
128
+ /**
129
+ * Where to display the linked `href` URL for a link button. Common options
130
+ * include `_blank` to open in a new tab.
131
+ */
132
+ this.target = "";
133
+ /**
134
+ * Whether to render the icon at the inline end of the label rather than the
135
+ * inline start.
136
+ *
137
+ * _Note:_ Link buttons cannot have trailing icons.
138
+ */
139
+ this.trailingIcon = false;
140
+ /**
141
+ * Whether to display the icon or not.
142
+ */
143
+ this.hasIcon = false;
144
+ }
145
+ focus() {
146
+ this.buttonElement?.focus();
147
+ }
148
+ blur() {
149
+ this.buttonElement?.blur();
150
+ }
151
+ render() {
152
+ const isRippleDisabled = this.disabled || this.softDisabled;
153
+ const buttonOrLink = this.href ? this.renderLink() : this.renderButton();
154
+ const buttonId = this.href ? "link" : "button";
155
+ return T`
156
+ ${this.renderElevationOrOutline?.()}
157
+ <div class="background"></div>
158
+ <md-focus-ring part="focus-ring" for=${buttonId}></md-focus-ring>
159
+ <md-ripple
160
+ part="ripple"
161
+ for=${buttonId}
162
+ ?disabled="${isRippleDisabled}"></md-ripple>
163
+ ${buttonOrLink}
164
+ `;
165
+ }
166
+ renderButton() {
167
+ const { ariaLabel, ariaHasPopup, ariaExpanded } = this;
168
+ return T`<button
169
+ id="button"
170
+ class="button"
171
+ ?disabled=${this.disabled}
172
+ aria-disabled=${this.softDisabled || A}
173
+ aria-label="${ariaLabel || A}"
174
+ aria-haspopup="${ariaHasPopup || A}"
175
+ aria-expanded="${ariaExpanded || A}">
176
+ ${this.renderContent()}
177
+ </button>`;
178
+ }
179
+ renderLink() {
180
+ const { ariaLabel, ariaHasPopup, ariaExpanded } = this;
181
+ return T`<a
182
+ id="link"
183
+ class="button"
184
+ aria-label="${ariaLabel || A}"
185
+ aria-haspopup="${ariaHasPopup || A}"
186
+ aria-expanded="${ariaExpanded || A}"
187
+ aria-disabled=${this.disabled || this.softDisabled || A}
188
+ tabindex="${this.disabled && !this.softDisabled ? -1 : A}"
189
+ href=${this.href}
190
+ download=${this.download || A}
191
+ target=${this.target || A}
192
+ >${this.renderContent()}
193
+ </a>`;
194
+ }
195
+ renderContent() {
196
+ const icon = T`<slot
197
+ name="icon"
198
+ @slotchange="${this.handleSlotChange}"></slot>`;
199
+ return T`
200
+ <span class="touch"></span>
201
+ ${this.trailingIcon ? A : icon}
202
+ <span class="label"><slot></slot></span>
203
+ ${this.trailingIcon ? icon : A}
204
+ `;
205
+ }
206
+ handleClick(event) {
207
+ if (this.softDisabled || this.disabled && this.href) {
208
+ event.stopImmediatePropagation();
209
+ event.preventDefault();
210
+ return;
211
+ }
212
+ if (!isActivationClick(event) || !this.buttonElement) return;
213
+ this.focus();
214
+ dispatchActivationClick(this.buttonElement);
215
+ }
216
+ handleSlotChange() {
217
+ this.hasIcon = this.assignedIcons.length > 0;
218
+ }
219
+ };
220
+ /** @nocollapse */
221
+ Button.shadowRootOptions = {
222
+ mode: "open",
223
+ delegatesFocus: true
224
+ };
225
+ __decorate([n({
226
+ type: Boolean,
227
+ attribute: "soft-disabled",
228
+ reflect: true
229
+ })], Button.prototype, "softDisabled", void 0);
230
+ __decorate([n()], Button.prototype, "href", void 0);
231
+ __decorate([n()], Button.prototype, "download", void 0);
232
+ __decorate([n()], Button.prototype, "target", void 0);
233
+ __decorate([n({
234
+ type: Boolean,
235
+ attribute: "trailing-icon",
236
+ reflect: true
237
+ })], Button.prototype, "trailingIcon", void 0);
238
+ __decorate([n({
239
+ type: Boolean,
240
+ attribute: "has-icon",
241
+ reflect: true
242
+ })], Button.prototype, "hasIcon", void 0);
243
+ __decorate([e$1(".button")], Button.prototype, "buttonElement", void 0);
244
+ __decorate([o({
245
+ slot: "icon",
246
+ flatten: true
247
+ })], Button.prototype, "assignedIcons", void 0);
248
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/shared-styles.cssresult.js
249
+ /**
250
+ * @license
251
+ * Copyright 2026 Google LLC
252
+ * SPDX-License-Identifier: Apache-2.0
253
+ */
254
+ var styles$1 = i$1`:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);box-sizing:border-box;cursor:pointer;display:inline-flex;gap:8px;min-height:var(--_container-height);outline:none;padding-block:calc((var(--_container-height) - max(var(--_label-text-line-height),var(--_icon-size)))/2);padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space);place-content:center;place-items:center;position:relative;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);text-overflow:ellipsis;text-wrap:nowrap;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:top;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host(:is([disabled],[soft-disabled])){cursor:default;pointer-events:none}.button{border-radius:inherit;cursor:inherit;display:inline-flex;align-items:center;justify-content:center;border:none;outline:none;-webkit-appearance:none;vertical-align:middle;background:rgba(0,0,0,0);text-decoration:none;min-width:calc(64px - var(--_leading-space) - var(--_trailing-space));width:100%;z-index:0;height:100%;font:inherit;color:var(--_label-text-color);padding:0;gap:inherit;text-transform:inherit}.button::-moz-focus-inner{padding:0;border:0}:host(:hover) .button{color:var(--_hover-label-text-color)}:host(:focus-within) .button{color:var(--_focus-label-text-color)}:host(:active) .button{color:var(--_pressed-label-text-color)}.background{background:var(--_container-color);border-radius:inherit;inset:0;position:absolute}.label{overflow:hidden}:is(.button,.label,.label slot),.label ::slotted(*){text-overflow:inherit}:host(:is([disabled],[soft-disabled])) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}:host(:is([disabled],[soft-disabled])) .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}@media(forced-colors: active){.background{border:1px solid CanvasText}:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1;--_disabled-container-opacity: 1;--_disabled-label-text-color: GrayText;--_disabled-label-text-opacity: 1}}:host([has-icon]:not([trailing-icon])){padding-inline-start:var(--_with-leading-icon-leading-space);padding-inline-end:var(--_with-leading-icon-trailing-space)}:host([has-icon][trailing-icon]){padding-inline-start:var(--_with-trailing-icon-leading-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;flex-shrink:0;color:var(--_icon-color);font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size)}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus-within) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host(:is([disabled],[soft-disabled])) ::slotted([slot=icon]){color:var(--_disabled-icon-color);opacity:var(--_disabled-icon-opacity)}.touch{position:absolute;top:50%;height:max(48px,100%);left:0;right:0;transform:translateY(-50%)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}:host([touch-target=none]) .touch{display:none}
255
+ `;
256
+ styles$1.styleSheet;
257
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/text-button.js
258
+ /**
259
+ * @license
260
+ * Copyright 2021 Google LLC
261
+ * SPDX-License-Identifier: Apache-2.0
262
+ */
263
+ /**
264
+ * A text button component.
265
+ */
266
+ var TextButton = class extends Button {};
267
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/text-styles.cssresult.js
268
+ /**
269
+ * @license
270
+ * Copyright 2026 Google LLC
271
+ * SPDX-License-Identifier: Apache-2.0
272
+ */
273
+ var styles = i$1`:host{--_container-height: var(--md-text-button-container-height, 40px);--_disabled-label-text-color: var(--md-text-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-text-button-disabled-label-text-opacity, 0.38);--_focus-label-text-color: var(--md-text-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-text-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-text-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-text-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-text-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-text-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-text-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-text-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-text-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-text-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-text-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-text-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-text-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-text-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-text-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-text-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-text-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-text-button-icon-size, 18px);--_pressed-icon-color: var(--md-text-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-text-button-container-shape-start-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-text-button-container-shape-start-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-text-button-container-shape-end-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-text-button-container-shape-end-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-text-button-leading-space, 12px);--_trailing-space: var(--md-text-button-trailing-space, 12px);--_with-leading-icon-leading-space: var(--md-text-button-with-leading-icon-leading-space, 12px);--_with-leading-icon-trailing-space: var(--md-text-button-with-leading-icon-trailing-space, 16px);--_with-trailing-icon-leading-space: var(--md-text-button-with-trailing-icon-leading-space, 16px);--_with-trailing-icon-trailing-space: var(--md-text-button-with-trailing-icon-trailing-space, 12px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}
274
+ `;
275
+ styles.styleSheet;
276
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/text-button.js
277
+ /**
278
+ * @license
279
+ * Copyright 2021 Google LLC
280
+ * SPDX-License-Identifier: Apache-2.0
281
+ */
282
+ /**
283
+ * @summary Buttons help people take action, such as sending an email, sharing a
284
+ * document, or liking a comment.
285
+ *
286
+ * @description
287
+ * __Emphasis:__ Low emphasis – For optional or supplementary actions with the
288
+ * least amount of prominence
289
+ *
290
+ * __Rationale:__ Text buttons have less visual prominence, so should be used
291
+ * for low emphasis actions, such as an alternative option.
292
+ *
293
+ * __Example usages:__
294
+ * - Learn more
295
+ * - View all
296
+ * - Change account
297
+ * - Turn on
298
+ *
299
+ * @final
300
+ * @suppress {visibility}
301
+ */
302
+ var MdTextButton = class MdTextButton extends TextButton {};
303
+ MdTextButton.styles = [styles$1, styles];
304
+ MdTextButton = __decorate([t("md-text-button")], MdTextButton);
305
+ export { Button as n, o as r, styles$1 as t };
306
+
307
+ //# sourceMappingURL=text-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-button.js","names":["e","t","LitElement","html","nothing","property","query","queryAssignedElements","styles","css","css","sharedStyles","textStyles","customElement"],"sources":["../../../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/query-assigned-elements.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/events/form-label-activation.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/button.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/shared-styles.cssresult.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/text-button.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/text-styles.cssresult.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/text-button.js"],"sourcesContent":["import{desc as t}from\"./base.js\";\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function o(o){return(e,n)=>{const{slot:r,selector:s}=o??{},c=\"slot\"+(r?`[name=${r}]`:\":not([name])\");return t(e,n,{get(){const t=this.renderRoot?.querySelector(c),e=t?.assignedElements(o)??[];return void 0===s?e:e.filter(t=>t.matches(s))}})}}export{o as queryAssignedElements};\n//# sourceMappingURL=query-assigned-elements.js.map\n","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * Dispatches a click event to the given element that triggers a native action,\n * but is not composed and therefore is not seen outside the element.\n *\n * This is useful for responding to an external click event on the host element\n * that should trigger an internal action like a button click.\n *\n * Note, a helper is provided because setting this up correctly is a bit tricky.\n * In particular, calling `click` on an element creates a composed event, which\n * is not desirable, and a manually dispatched event must specifically be a\n * `MouseEvent` to trigger a native action.\n *\n * @example\n * hostClickListener = (event: MouseEvent) {\n * if (isActivationClick(event)) {\n * this.dispatchActivationClick(this.buttonElement);\n * }\n * }\n *\n */\nexport function dispatchActivationClick(element) {\n const event = new MouseEvent('click', { bubbles: true });\n element.dispatchEvent(event);\n return event;\n}\n/**\n * Returns true if the click event should trigger an activation behavior. The\n * behavior is defined by the element and is whatever it should do when\n * clicked.\n *\n * Typically when an element needs to handle a click, the click is generated\n * from within the element and an event listener within the element implements\n * the needed behavior; however, it's possible to fire a click directly\n * at the element that the element should handle. This method helps\n * distinguish these \"external\" clicks.\n *\n * An \"external\" click can be triggered in a number of ways: via a click\n * on an associated label for a form associated element, calling\n * `element.click()`, or calling\n * `element.dispatchEvent(new MouseEvent('click', ...))`.\n *\n * Also works around Firefox issue\n * https://bugzilla.mozilla.org/show_bug.cgi?id=1804576 by squelching\n * events for a microtask after called.\n *\n * @example\n * hostClickListener = (event: MouseEvent) {\n * if (isActivationClick(event)) {\n * this.dispatchActivationClick(this.buttonElement);\n * }\n * }\n *\n */\nexport function isActivationClick(event) {\n // Event must start at the event target.\n if (event.currentTarget !== event.target) {\n return false;\n }\n // Event must not be retargeted from shadowRoot.\n if (event.composedPath()[0] !== event.target) {\n return false;\n }\n // Target must not be disabled; this should only occur for a synthetically\n // dispatched click.\n if (event.target.disabled) {\n return false;\n }\n // This is an activation if the event should not be squelched.\n return !squelchEvent(event);\n}\n// TODO(https://bugzilla.mozilla.org/show_bug.cgi?id=1804576)\n// Remove when Firefox bug is addressed.\nfunction squelchEvent(event) {\n const squelched = isSquelchingEvents;\n if (squelched) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n squelchEventsForMicrotask();\n return squelched;\n}\n// Ignore events for one microtask only.\nlet isSquelchingEvents = false;\nasync function squelchEventsForMicrotask() {\n isSquelchingEvents = true;\n // Need to pause for just one microtask.\n // tslint:disable-next-line\n await null;\n isSquelchingEvents = false;\n}\n//# sourceMappingURL=form-label-activation.js.map","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport '../../focus/md-focus-ring.js';\nimport '../../ripple/ripple.js';\nimport { html, isServer, LitElement, nothing } from 'lit';\nimport { property, query, queryAssignedElements } from 'lit/decorators.js';\nimport { mixinDelegatesAria } from '../../internal/aria/delegate.js';\nimport { dispatchActivationClick, isActivationClick, } from '../../internal/events/form-label-activation.js';\nimport { mixinElementInternals } from '../../labs/behaviors/element-internals.js';\nimport { mixinFormAssociated } from '../../labs/behaviors/form-associated.js';\nimport { mixinFormSubmitter } from '../../labs/behaviors/form-submitter.js';\n// Separate variable needed for closure.\nconst buttonBaseClass = mixinDelegatesAria(mixinFormSubmitter(mixinFormAssociated(mixinElementInternals(LitElement))));\n/**\n * A button component.\n */\nexport class Button extends buttonBaseClass {\n constructor() {\n super();\n /**\n * Whether or not the button is \"soft-disabled\" (disabled but still\n * focusable).\n *\n * Use this when a button needs increased visibility when disabled. See\n * https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls\n * for more guidance on when this is needed.\n */\n this.softDisabled = false;\n /**\n * The URL that the link button points to.\n */\n this.href = '';\n /**\n * The filename to use when downloading the linked resource.\n * If not specified, the browser will determine a filename.\n * This is only applicable when the button is used as a link (`href` is set).\n */\n this.download = '';\n /**\n * Where to display the linked `href` URL for a link button. Common options\n * include `_blank` to open in a new tab.\n */\n this.target = '';\n /**\n * Whether to render the icon at the inline end of the label rather than the\n * inline start.\n *\n * _Note:_ Link buttons cannot have trailing icons.\n */\n this.trailingIcon = false;\n /**\n * Whether to display the icon or not.\n */\n this.hasIcon = false;\n if (!isServer) {\n this.addEventListener('click', this.handleClick.bind(this));\n }\n }\n focus() {\n this.buttonElement?.focus();\n }\n blur() {\n this.buttonElement?.blur();\n }\n render() {\n const isRippleDisabled = this.disabled || this.softDisabled;\n const buttonOrLink = this.href ? this.renderLink() : this.renderButton();\n // TODO(b/310046938): due to a limitation in focus ring/ripple, we can't use\n // the same ID for different elements, so we change the ID instead.\n const buttonId = this.href ? 'link' : 'button';\n return html `\n ${this.renderElevationOrOutline?.()}\n <div class=\"background\"></div>\n <md-focus-ring part=\"focus-ring\" for=${buttonId}></md-focus-ring>\n <md-ripple\n part=\"ripple\"\n for=${buttonId}\n ?disabled=\"${isRippleDisabled}\"></md-ripple>\n ${buttonOrLink}\n `;\n }\n renderButton() {\n // Needed for closure conformance\n const { ariaLabel, ariaHasPopup, ariaExpanded } = this;\n return html `<button\n id=\"button\"\n class=\"button\"\n ?disabled=${this.disabled}\n aria-disabled=${this.softDisabled || nothing}\n aria-label=\"${ariaLabel || nothing}\"\n aria-haspopup=\"${ariaHasPopup || nothing}\"\n aria-expanded=\"${ariaExpanded || nothing}\">\n ${this.renderContent()}\n </button>`;\n }\n renderLink() {\n // Needed for closure conformance\n const { ariaLabel, ariaHasPopup, ariaExpanded } = this;\n return html `<a\n id=\"link\"\n class=\"button\"\n aria-label=\"${ariaLabel || nothing}\"\n aria-haspopup=\"${ariaHasPopup || nothing}\"\n aria-expanded=\"${ariaExpanded || nothing}\"\n aria-disabled=${this.disabled || this.softDisabled || nothing}\n tabindex=\"${this.disabled && !this.softDisabled ? -1 : nothing}\"\n href=${this.href}\n download=${this.download || nothing}\n target=${this.target || nothing}\n >${this.renderContent()}\n </a>`;\n }\n renderContent() {\n const icon = html `<slot\n name=\"icon\"\n @slotchange=\"${this.handleSlotChange}\"></slot>`;\n return html `\n <span class=\"touch\"></span>\n ${this.trailingIcon ? nothing : icon}\n <span class=\"label\"><slot></slot></span>\n ${this.trailingIcon ? icon : nothing}\n `;\n }\n handleClick(event) {\n // If the button is soft-disabled or a disabled link, we need to explicitly\n // prevent the click from propagating to other event listeners as well as\n // prevent the default action.\n if (this.softDisabled || (this.disabled && this.href)) {\n event.stopImmediatePropagation();\n event.preventDefault();\n return;\n }\n if (!isActivationClick(event) || !this.buttonElement) {\n return;\n }\n this.focus();\n dispatchActivationClick(this.buttonElement);\n }\n handleSlotChange() {\n this.hasIcon = this.assignedIcons.length > 0;\n }\n}\n/** @nocollapse */\nButton.shadowRootOptions = {\n mode: 'open',\n delegatesFocus: true,\n};\n__decorate([\n property({ type: Boolean, attribute: 'soft-disabled', reflect: true })\n], Button.prototype, \"softDisabled\", void 0);\n__decorate([\n property()\n], Button.prototype, \"href\", void 0);\n__decorate([\n property()\n], Button.prototype, \"download\", void 0);\n__decorate([\n property()\n], Button.prototype, \"target\", void 0);\n__decorate([\n property({ type: Boolean, attribute: 'trailing-icon', reflect: true })\n], Button.prototype, \"trailingIcon\", void 0);\n__decorate([\n property({ type: Boolean, attribute: 'has-icon', reflect: true })\n], Button.prototype, \"hasIcon\", void 0);\n__decorate([\n query('.button')\n], Button.prototype, \"buttonElement\", void 0);\n__decorate([\n queryAssignedElements({ slot: 'icon', flatten: true })\n], Button.prototype, \"assignedIcons\", void 0);\n//# sourceMappingURL=button.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./button/internal/shared-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);box-sizing:border-box;cursor:pointer;display:inline-flex;gap:8px;min-height:var(--_container-height);outline:none;padding-block:calc((var(--_container-height) - max(var(--_label-text-line-height),var(--_icon-size)))/2);padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space);place-content:center;place-items:center;position:relative;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);text-overflow:ellipsis;text-wrap:nowrap;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:top;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host(:is([disabled],[soft-disabled])){cursor:default;pointer-events:none}.button{border-radius:inherit;cursor:inherit;display:inline-flex;align-items:center;justify-content:center;border:none;outline:none;-webkit-appearance:none;vertical-align:middle;background:rgba(0,0,0,0);text-decoration:none;min-width:calc(64px - var(--_leading-space) - var(--_trailing-space));width:100%;z-index:0;height:100%;font:inherit;color:var(--_label-text-color);padding:0;gap:inherit;text-transform:inherit}.button::-moz-focus-inner{padding:0;border:0}:host(:hover) .button{color:var(--_hover-label-text-color)}:host(:focus-within) .button{color:var(--_focus-label-text-color)}:host(:active) .button{color:var(--_pressed-label-text-color)}.background{background:var(--_container-color);border-radius:inherit;inset:0;position:absolute}.label{overflow:hidden}:is(.button,.label,.label slot),.label ::slotted(*){text-overflow:inherit}:host(:is([disabled],[soft-disabled])) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}:host(:is([disabled],[soft-disabled])) .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}@media(forced-colors: active){.background{border:1px solid CanvasText}:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1;--_disabled-container-opacity: 1;--_disabled-label-text-color: GrayText;--_disabled-label-text-opacity: 1}}:host([has-icon]:not([trailing-icon])){padding-inline-start:var(--_with-leading-icon-leading-space);padding-inline-end:var(--_with-leading-icon-trailing-space)}:host([has-icon][trailing-icon]){padding-inline-start:var(--_with-trailing-icon-leading-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;flex-shrink:0;color:var(--_icon-color);font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size)}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus-within) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host(:is([disabled],[soft-disabled])) ::slotted([slot=icon]){color:var(--_disabled-icon-color);opacity:var(--_disabled-icon-opacity)}.touch{position:absolute;top:50%;height:max(48px,100%);left:0;right:0;transform:translateY(-50%)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}:host([touch-target=none]) .touch{display:none}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=shared-styles.cssresult.js.map","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { Button } from './button.js';\n/**\n * A text button component.\n */\nexport class TextButton extends Button {\n}\n//# sourceMappingURL=text-button.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./button/internal/text-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{--_container-height: var(--md-text-button-container-height, 40px);--_disabled-label-text-color: var(--md-text-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-text-button-disabled-label-text-opacity, 0.38);--_focus-label-text-color: var(--md-text-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-text-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-text-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-text-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-text-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-text-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-text-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-text-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-text-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-text-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-text-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-text-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-text-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-text-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-text-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-text-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-text-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-text-button-icon-size, 18px);--_pressed-icon-color: var(--md-text-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-text-button-container-shape-start-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-text-button-container-shape-start-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-text-button-container-shape-end-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-text-button-container-shape-end-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-text-button-leading-space, 12px);--_trailing-space: var(--md-text-button-trailing-space, 12px);--_with-leading-icon-leading-space: var(--md-text-button-with-leading-icon-leading-space, 12px);--_with-leading-icon-trailing-space: var(--md-text-button-with-leading-icon-trailing-space, 16px);--_with-trailing-icon-leading-space: var(--md-text-button-with-trailing-icon-leading-space, 16px);--_with-trailing-icon-trailing-space: var(--md-text-button-with-trailing-icon-trailing-space, 12px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=text-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 { styles as sharedStyles } from './internal/shared-styles.cssresult.js';\nimport { TextButton } from './internal/text-button.js';\nimport { styles as textStyles } from './internal/text-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:__ Low emphasis – For optional or supplementary actions with the\n * least amount of prominence\n *\n * __Rationale:__ Text buttons have less visual prominence, so should be used\n * for low emphasis actions, such as an alternative option.\n *\n * __Example usages:__\n * - Learn more\n * - View all\n * - Change account\n * - Turn on\n *\n * @final\n * @suppress {visibility}\n */\nlet MdTextButton = class MdTextButton extends TextButton {\n};\nMdTextButton.styles = [sharedStyles, textStyles];\nMdTextButton = __decorate([\n customElement('md-text-button')\n], MdTextButton);\nexport { MdTextButton };\n//# sourceMappingURL=text-button.js.map"],"ignoreList":[0,1,2,3,4,5,6],"mappings":";;;;;;GAKG,SAAS,EAAE,GAAE;CAAC,QAAOA,KAAE,MAAI;EAAC,MAAK,EAAC,MAAK,GAAE,UAAS,MAAG,KAAG,CAAC,GAAE,IAAE,UAAQ,IAAE,SAAS,EAAE,KAAG;EAAgB,OAAOC,EAAED,KAAE,GAAE,EAAC,MAAK;GAAC,MAA0C,KAAlC,KAAK,YAAY,cAAc,CAAC,EAAA,EAAO,iBAAiB,CAAC,KAAG,CAAC;GAAE,OAAO,KAAK,MAAI,IAAE,IAAE,EAAE,QAAO,MAAG,EAAE,QAAQ,CAAC,CAAC;EAAC,EAAC,CAAC;CAAC;AAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoBpP,SAAgB,wBAAwB,SAAS;CAC7C,MAAM,QAAQ,IAAI,WAAW,SAAS,EAAE,SAAS,KAAK,CAAC;CACvD,QAAQ,cAAc,KAAK;CAC3B,OAAO;AACX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,SAAgB,kBAAkB,OAAO;CAErC,IAAI,MAAM,kBAAkB,MAAM,QAC9B,OAAO;CAGX,IAAI,MAAM,aAAa,CAAC,CAAC,OAAO,MAAM,QAClC,OAAO;CAIX,IAAI,MAAM,OAAO,UACb,OAAO;CAGX,OAAO,CAAC,aAAa,KAAK;AAC9B;AAGA,SAAS,aAAa,OAAO;CACzB,MAAM,YAAY;CAClB,IAAI,WAAW;EACX,MAAM,eAAe;EACrB,MAAM,yBAAyB;CACnC;CACA,0BAA0B;CAC1B,OAAO;AACX;AAEA,IAAI,qBAAqB;AACzB,eAAe,4BAA4B;CACvC,qBAAqB;CAGrB,MAAM;CACN,qBAAqB;AACzB;;;;;;;AC9EA,IAAM,kBAAkB,mBAAmB,mBAAmB,oBAAoB,sBAAsBE,CAAU,CAAC,CAAC,CAAC;;;;AAIrH,IAAa,SAAb,cAA4B,gBAAgB;CACxC,cAAc;EACV,MAAM;;;;;;;;;EASN,KAAK,eAAe;;;;EAIpB,KAAK,OAAO;;;;;;EAMZ,KAAK,WAAW;;;;;EAKhB,KAAK,SAAS;;;;;;;EAOd,KAAK,eAAe;;;;EAIpB,KAAK,UAAU;CAInB;CACA,QAAQ;EACJ,KAAK,eAAe,MAAM;CAC9B;CACA,OAAO;EACH,KAAK,eAAe,KAAK;CAC7B;CACA,SAAS;EACL,MAAM,mBAAmB,KAAK,YAAY,KAAK;EAC/C,MAAM,eAAe,KAAK,OAAO,KAAK,WAAW,IAAI,KAAK,aAAa;EAGvE,MAAM,WAAW,KAAK,OAAO,SAAS;EACtC,OAAOC,CAAK;QACZ,KAAK,2BAA2B,EAAE;;6CAEG,SAAS;;;cAGxC,SAAS;qBACF,iBAAiB;QAC9B,aAAa;;CAEjB;CACA,eAAe;EAEX,MAAM,EAAE,WAAW,cAAc,iBAAiB;EAClD,OAAOA,CAAK;;;kBAGF,KAAK,SAAS;sBACV,KAAK,gBAAgBC,EAAQ;oBAC/B,aAAaA,EAAQ;uBAClB,gBAAgBA,EAAQ;uBACxB,gBAAgBA,EAAQ;QACvC,KAAK,cAAc,EAAE;;CAEzB;CACA,aAAa;EAET,MAAM,EAAE,WAAW,cAAc,iBAAiB;EAClD,OAAOD,CAAK;;;oBAGA,aAAaC,EAAQ;uBAClB,gBAAgBA,EAAQ;uBACxB,gBAAgBA,EAAQ;sBACzB,KAAK,YAAY,KAAK,gBAAgBA,EAAQ;kBAClD,KAAK,YAAY,CAAC,KAAK,eAAe,KAAKA,EAAQ;aACxD,KAAK,KAAK;iBACN,KAAK,YAAYA,EAAQ;eAC3B,KAAK,UAAUA,EAAQ;SAC7B,KAAK,cAAc,EAAE;;CAE1B;CACA,gBAAgB;EACZ,MAAM,OAAOD,CAAK;;qBAEL,KAAK,iBAAiB;EACnC,OAAOA,CAAK;;QAEZ,KAAK,eAAeC,IAAU,KAAK;;QAEnC,KAAK,eAAe,OAAOA,EAAQ;;CAEvC;CACA,YAAY,OAAO;EAIf,IAAI,KAAK,gBAAiB,KAAK,YAAY,KAAK,MAAO;GACnD,MAAM,yBAAyB;GAC/B,MAAM,eAAe;GACrB;EACJ;EACA,IAAI,CAAC,kBAAkB,KAAK,KAAK,CAAC,KAAK,eACnC;EAEJ,KAAK,MAAM;EACX,wBAAwB,KAAK,aAAa;CAC9C;CACA,mBAAmB;EACf,KAAK,UAAU,KAAK,cAAc,SAAS;CAC/C;AACJ;;AAEA,OAAO,oBAAoB;CACvB,MAAM;CACN,gBAAgB;AACpB;AACA,WAAW,CACPC,EAAS;CAAE,MAAM;CAAS,WAAW;CAAiB,SAAS;AAAK,CAAC,CACzE,GAAG,OAAO,WAAW,gBAAgB,KAAK,CAAC;AAC3C,WAAW,CACPA,EAAS,CACb,GAAG,OAAO,WAAW,QAAQ,KAAK,CAAC;AACnC,WAAW,CACPA,EAAS,CACb,GAAG,OAAO,WAAW,YAAY,KAAK,CAAC;AACvC,WAAW,CACPA,EAAS,CACb,GAAG,OAAO,WAAW,UAAU,KAAK,CAAC;AACrC,WAAW,CACPA,EAAS;CAAE,MAAM;CAAS,WAAW;CAAiB,SAAS;AAAK,CAAC,CACzE,GAAG,OAAO,WAAW,gBAAgB,KAAK,CAAC;AAC3C,WAAW,CACPA,EAAS;CAAE,MAAM;CAAS,WAAW;CAAY,SAAS;AAAK,CAAC,CACpE,GAAG,OAAO,WAAW,WAAW,KAAK,CAAC;AACtC,WAAW,CACPC,IAAM,SAAS,CACnB,GAAG,OAAO,WAAW,iBAAiB,KAAK,CAAC;AAC5C,WAAW,CACPC,EAAsB;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CACzD,GAAG,OAAO,WAAW,iBAAiB,KAAK,CAAC;;;;;;;ACvK5C,IAAaC,WAASC,GAAI;;AAEXD,SAAO;;;;;;;;;;ACAtB,IAAa,aAAb,cAAgC,OAAO,CACvC;;;;;;;ACHA,IAAa,SAASE,GAAI;;AAEX,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;ACqBtB,IAAI,eAAe,MAAM,qBAAqB,WAAW,CACzD;AACA,aAAa,SAAS,CAACC,UAAcC,MAAU;AAC/C,eAAe,WAAW,CACtBC,EAAc,gBAAgB,CAClC,GAAG,YAAY"}
@@ -0,0 +1,19 @@
1
+ import { r as json, t as error } from "../../../../chunks/exports.js";
2
+ import { n as checkDto, p as ConfigPatchSchema } from "../../../../chunks/src.js";
3
+ import { t as readConfigState } from "../../../../chunks/config-state.js";
4
+ // src/routes/api/config/+server.ts
5
+ /** The settings page's re-read in the browser (`readConfigState`). */
6
+ var GET = async ({ locals: { bridge } }) => json(await readConfigState(bridge));
7
+ /** Saves a partial config for the next start and answers with the saved config. */
8
+ var PUT = async ({ request, locals }) => {
9
+ const body = await request.json().catch(() => void 0);
10
+ const checked = checkDto(ConfigPatchSchema, body);
11
+ if (!checked.ok) error(400, {
12
+ message: `Invalid setting at ${checked.field}: ${checked.message}`,
13
+ field: checked.field
14
+ });
15
+ return json(await locals.bridge.updateConfig(checked.value));
16
+ };
17
+ export { GET, PUT };
18
+
19
+ //# sourceMappingURL=_server.ts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_server.ts.js","names":[],"sources":["../../../../../../src/routes/api/config/+server.ts"],"sourcesContent":["import { error, json } from '@sveltejs/kit';\nimport { checkDto, ConfigPatchSchema } from '@screenreader-speech-capture/shared';\nimport { readConfigState } from '#lib/server/config-state.js';\nimport type { RequestHandler } from './$types';\n\n/** The settings page's re-read in the browser (`readConfigState`). */\nexport const GET: RequestHandler = async ({ locals: { bridge } }) =>\n json(await readConfigState(bridge));\n\n/** Saves a partial config for the next start and answers with the saved config. */\nexport const PUT: RequestHandler = async ({ request, locals }) => {\n const body: unknown = await request.json().catch(() => undefined);\n const checked = checkDto(ConfigPatchSchema, body);\n if (!checked.ok) {\n error(400, {\n message: `Invalid setting at ${checked.field}: ${checked.message}`,\n field: checked.field,\n });\n }\n return json(await locals.bridge.updateConfig(checked.value));\n};\n"],"mappings":";;;;;AAMA,IAAa,MAAsB,OAAO,EAAE,QAAQ,EAAE,eACpD,KAAK,MAAM,gBAAgB,MAAM,CAAC;;AAGpC,IAAa,MAAsB,OAAO,EAAE,SAAS,aAAa;CAChE,MAAM,OAAgB,MAAM,QAAQ,KAAK,CAAC,CAAC,YAAY,KAAA,CAAS;CAChE,MAAM,UAAU,SAAS,mBAAmB,IAAI;CAChD,IAAI,CAAC,QAAQ,IACX,MAAM,KAAK;EACT,SAAS,sBAAsB,QAAQ,MAAM,IAAI,QAAQ;EACzD,OAAO,QAAQ;CACjB,CAAC;CAEH,OAAO,KAAK,MAAM,OAAO,OAAO,aAAa,QAAQ,KAAK,CAAC;AAC7D"}
@@ -0,0 +1,14 @@
1
+ import { t as error } from "../../../../../chunks/exports.js";
2
+ import { c as KeysRequestSchema, n as checkDto } from "../../../../../chunks/src.js";
3
+ // src/routes/api/input/keys/+server.ts
4
+ /** Presses keys (`{ keys }`) on the bridge's machine. Only `keys` goes on: no `capture`. */
5
+ var POST = async ({ request, locals }) => {
6
+ const body = await request.json().catch(() => void 0);
7
+ const checked = checkDto(KeysRequestSchema, body);
8
+ if (!checked.ok) error(400, `Invalid keys at ${checked.field}: ${checked.message}`);
9
+ await locals.bridge.pressKeys(checked.value.keys);
10
+ return new Response(null, { status: 204 });
11
+ };
12
+ export { POST };
13
+
14
+ //# sourceMappingURL=_server.ts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_server.ts.js","names":[],"sources":["../../../../../../../src/routes/api/input/keys/+server.ts"],"sourcesContent":["import { error } from '@sveltejs/kit';\nimport { checkDto, KeysRequestSchema } from '@screenreader-speech-capture/shared';\nimport type { RequestHandler } from './$types';\n\n/** Presses keys (`{ keys }`) on the bridge's machine. Only `keys` goes on: no `capture`. */\nexport const POST: RequestHandler = async ({ request, locals }) => {\n const body: unknown = await request.json().catch(() => undefined);\n const checked = checkDto(KeysRequestSchema, body);\n if (!checked.ok) error(400, `Invalid keys at ${checked.field}: ${checked.message}`);\n await locals.bridge.pressKeys(checked.value.keys);\n return new Response(null, { status: 204 });\n};\n"],"mappings":";;;;AAKA,IAAa,OAAuB,OAAO,EAAE,SAAS,aAAa;CACjE,MAAM,OAAgB,MAAM,QAAQ,KAAK,CAAC,CAAC,YAAY,KAAA,CAAS;CAChE,MAAM,UAAU,SAAS,mBAAmB,IAAI;CAChD,IAAI,CAAC,QAAQ,IAAI,MAAM,KAAK,mBAAmB,QAAQ,MAAM,IAAI,QAAQ,SAAS;CAClF,MAAM,OAAO,OAAO,UAAU,QAAQ,MAAM,IAAI;CAChD,OAAO,IAAI,SAAS,MAAM,EAAE,QAAQ,IAAI,CAAC;AAC3C"}
@@ -0,0 +1,13 @@
1
+ import { r as json, t as error } from "../../../../chunks/exports.js";
2
+ import { l as MarkerRequestSchema, n as checkDto } from "../../../../chunks/src.js";
3
+ // src/routes/api/markers/+server.ts
4
+ /** Inserts a marker (`{ label }`) into the timeline. */
5
+ var POST = async ({ request, locals }) => {
6
+ const body = await request.json().catch(() => void 0);
7
+ const checked = checkDto(MarkerRequestSchema, body);
8
+ if (!checked.ok) error(400, `Invalid marker at ${checked.field}: ${checked.message}`);
9
+ return json(await locals.bridge.addMarker(checked.value.label), { status: 201 });
10
+ };
11
+ export { POST };
12
+
13
+ //# sourceMappingURL=_server.ts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_server.ts.js","names":[],"sources":["../../../../../../src/routes/api/markers/+server.ts"],"sourcesContent":["import { error, json } from '@sveltejs/kit';\nimport { checkDto, MarkerRequestSchema } from '@screenreader-speech-capture/shared';\nimport type { RequestHandler } from './$types';\n\n/** Inserts a marker (`{ label }`) into the timeline. */\nexport const POST: RequestHandler = async ({ request, locals }) => {\n const body: unknown = await request.json().catch(() => undefined);\n const checked = checkDto(MarkerRequestSchema, body);\n if (!checked.ok) error(400, `Invalid marker at ${checked.field}: ${checked.message}`);\n return json(await locals.bridge.addMarker(checked.value.label), { status: 201 });\n};\n"],"mappings":";;;;AAKA,IAAa,OAAuB,OAAO,EAAE,SAAS,aAAa;CACjE,MAAM,OAAgB,MAAM,QAAQ,KAAK,CAAC,CAAC,YAAY,KAAA,CAAS;CAChE,MAAM,UAAU,SAAS,qBAAqB,IAAI;CAClD,IAAI,CAAC,QAAQ,IAAI,MAAM,KAAK,qBAAqB,QAAQ,MAAM,IAAI,QAAQ,SAAS;CACpF,OAAO,KAAK,MAAM,OAAO,OAAO,UAAU,QAAQ,MAAM,KAAK,GAAG,EAAE,QAAQ,IAAI,CAAC;AACjF"}
@@ -0,0 +1,12 @@
1
+ // src/routes/api/sessions/[id=id]/+server.ts
2
+ /**
3
+ * Deletes an ended session and its speech (the bridge refuses the current one). The `id` matcher
4
+ * only lets session ids through; anything else is a 404.
5
+ */
6
+ var DELETE = async ({ params, locals }) => {
7
+ await locals.bridge.deleteSession(params.id);
8
+ return new Response(null, { status: 204 });
9
+ };
10
+ export { DELETE };
11
+
12
+ //# sourceMappingURL=_server.ts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_server.ts.js","names":[],"sources":["../../../../../../../src/routes/api/sessions/[id=id]/+server.ts"],"sourcesContent":["import type { RequestHandler } from './$types';\n\n/**\n * Deletes an ended session and its speech (the bridge refuses the current one). The `id` matcher\n * only lets session ids through; anything else is a 404.\n */\nexport const DELETE: RequestHandler = async ({ params, locals }) => {\n await locals.bridge.deleteSession(params.id);\n return new Response(null, { status: 204 });\n};\n"],"mappings":";;;;;AAMA,IAAa,SAAyB,OAAO,EAAE,QAAQ,aAAa;CAClE,MAAM,OAAO,OAAO,cAAc,OAAO,EAAE;CAC3C,OAAO,IAAI,SAAS,MAAM,EAAE,QAAQ,IAAI,CAAC;AAC3C"}
@@ -0,0 +1,13 @@
1
+ import { r as json, t as error } from "../../../../chunks/exports.js";
2
+ import { n as checkDto, o as StartSessionRequestSchema } from "../../../../chunks/src.js";
3
+ // src/routes/api/sessions/+server.ts
4
+ /** Starts a session (`{ name, run? }`); the bridge ends the previous one. */
5
+ var POST = async ({ request, locals }) => {
6
+ const body = await request.json().catch(() => void 0);
7
+ const checked = checkDto(StartSessionRequestSchema, body);
8
+ if (!checked.ok) error(400, `Invalid session at ${checked.field}: ${checked.message}`);
9
+ return json(await locals.bridge.startSession(checked.value), { status: 201 });
10
+ };
11
+ export { POST };
12
+
13
+ //# sourceMappingURL=_server.ts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_server.ts.js","names":[],"sources":["../../../../../../src/routes/api/sessions/+server.ts"],"sourcesContent":["import { error, json } from '@sveltejs/kit';\nimport { checkDto, StartSessionRequestSchema } from '@screenreader-speech-capture/shared';\nimport type { RequestHandler } from './$types';\n\n/** Starts a session (`{ name, run? }`); the bridge ends the previous one. */\nexport const POST: RequestHandler = async ({ request, locals }) => {\n const body: unknown = await request.json().catch(() => undefined);\n const checked = checkDto(StartSessionRequestSchema, body);\n if (!checked.ok) error(400, `Invalid session at ${checked.field}: ${checked.message}`);\n return json(await locals.bridge.startSession(checked.value), { status: 201 });\n};\n"],"mappings":";;;;AAKA,IAAa,OAAuB,OAAO,EAAE,SAAS,aAAa;CACjE,MAAM,OAAgB,MAAM,QAAQ,KAAK,CAAC,CAAC,YAAY,KAAA,CAAS;CAChE,MAAM,UAAU,SAAS,2BAA2B,IAAI;CACxD,IAAI,CAAC,QAAQ,IAAI,MAAM,KAAK,sBAAsB,QAAQ,MAAM,IAAI,QAAQ,SAAS;CACrF,OAAO,KAAK,MAAM,OAAO,OAAO,aAAa,QAAQ,KAAK,GAAG,EAAE,QAAQ,IAAI,CAAC;AAC9E"}
@@ -0,0 +1,9 @@
1
+ // src/routes/api/sessions/end/+server.ts
2
+ /** Ends the current session (nothing happens if none is current). */
3
+ var POST = async ({ locals }) => {
4
+ await locals.bridge.endSession();
5
+ return new Response(null, { status: 204 });
6
+ };
7
+ export { POST };
8
+
9
+ //# sourceMappingURL=_server.ts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_server.ts.js","names":[],"sources":["../../../../../../../src/routes/api/sessions/end/+server.ts"],"sourcesContent":["import type { RequestHandler } from './$types';\n\n/** Ends the current session (nothing happens if none is current). */\nexport const POST: RequestHandler = async ({ locals }) => {\n await locals.bridge.endSession();\n return new Response(null, { status: 204 });\n};\n"],"mappings":";;AAGA,IAAa,OAAuB,OAAO,EAAE,aAAa;CACxD,MAAM,OAAO,OAAO,WAAW;CAC/B,OAAO,IAAI,SAAS,MAAM,EAAE,QAAQ,IAAI,CAAC;AAC3C"}
@@ -0,0 +1,25 @@
1
+ import { r as json, t as error } from "../../../../chunks/exports.js";
2
+ import { g as API_LIMITS } from "../../../../chunks/src.js";
3
+ import { t as scopeParam } from "../../../../chunks/scope.js";
4
+ // src/routes/api/speech/+server.ts
5
+ function intParam(value, fallback, max) {
6
+ if (value === null) return fallback;
7
+ const parsed = Number(value);
8
+ if (!Number.isInteger(parsed) || parsed < 0 || parsed > max) error(400, `Expected a whole number from 0 to ${max}, got "${value}"`);
9
+ return parsed;
10
+ }
11
+ /** One page of a scope's speech (`?session=<id|none>&since=<seq>&limit=<n>`), oldest first. */
12
+ var GET = async ({ url, locals }) => {
13
+ const session = scopeParam(url);
14
+ const since = intParam(url.searchParams.get("since"), 0, Number.MAX_SAFE_INTEGER);
15
+ const limit = intParam(url.searchParams.get("limit"), API_LIMITS.list.default, API_LIMITS.list.max);
16
+ return json(await locals.bridge.speech(session, since, limit));
17
+ };
18
+ /** Clears the speech of the current session or of `none` (`?session=<id|none>`); it keeps running. */
19
+ var DELETE = async ({ url, locals }) => {
20
+ await locals.bridge.clearSpeech(scopeParam(url, true));
21
+ return new Response(null, { status: 204 });
22
+ };
23
+ export { DELETE, GET };
24
+
25
+ //# sourceMappingURL=_server.ts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_server.ts.js","names":[],"sources":["../../../../../../src/routes/api/speech/+server.ts"],"sourcesContent":["import { error, json } from '@sveltejs/kit';\nimport { API_LIMITS } from '@screenreader-speech-capture/shared';\nimport { scopeParam } from '#lib/server/scope.js';\nimport type { RequestHandler } from './$types';\n\nfunction intParam(value: string | null, fallback: number, max: number): number {\n if (value === null) return fallback;\n const parsed = Number(value);\n if (!Number.isInteger(parsed) || parsed < 0 || parsed > max) {\n error(400, `Expected a whole number from 0 to ${max}, got \"${value}\"`);\n }\n return parsed;\n}\n\n/** One page of a scope's speech (`?session=<id|none>&since=<seq>&limit=<n>`), oldest first. */\nexport const GET: RequestHandler = async ({ url, locals }) => {\n const session = scopeParam(url);\n const since = intParam(url.searchParams.get('since'), 0, Number.MAX_SAFE_INTEGER);\n const limit = intParam(\n url.searchParams.get('limit'),\n API_LIMITS.list.default,\n API_LIMITS.list.max,\n );\n return json(await locals.bridge.speech(session, since, limit));\n};\n\n/** Clears the speech of the current session or of `none` (`?session=<id|none>`); it keeps running. */\nexport const DELETE: RequestHandler = async ({ url, locals }) => {\n await locals.bridge.clearSpeech(scopeParam(url, true));\n return new Response(null, { status: 204 });\n};\n"],"mappings":";;;;AAKA,SAAS,SAAS,OAAsB,UAAkB,KAAqB;CAC7E,IAAI,UAAU,MAAM,OAAO;CAC3B,MAAM,SAAS,OAAO,KAAK;CAC3B,IAAI,CAAC,OAAO,UAAU,MAAM,KAAK,SAAS,KAAK,SAAS,KACtD,MAAM,KAAK,qCAAqC,IAAI,SAAS,MAAM,EAAE;CAEvE,OAAO;AACT;;AAGA,IAAa,MAAsB,OAAO,EAAE,KAAK,aAAa;CAC5D,MAAM,UAAU,WAAW,GAAG;CAC9B,MAAM,QAAQ,SAAS,IAAI,aAAa,IAAI,OAAO,GAAG,GAAG,OAAO,gBAAgB;CAChF,MAAM,QAAQ,SACZ,IAAI,aAAa,IAAI,OAAO,GAC5B,WAAW,KAAK,SAChB,WAAW,KAAK,GAClB;CACA,OAAO,KAAK,MAAM,OAAO,OAAO,OAAO,SAAS,OAAO,KAAK,CAAC;AAC/D;;AAGA,IAAa,SAAyB,OAAO,EAAE,KAAK,aAAa;CAC/D,MAAM,OAAO,OAAO,YAAY,WAAW,KAAK,IAAI,CAAC;CACrD,OAAO,IAAI,SAAS,MAAM,EAAE,QAAQ,IAAI,CAAC;AAC3C"}