@screenreader-speech-capture/bridge 0.1.0 → 0.2.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.
- package/dist/cli.mjs +1292 -791
- package/dist/ui/adapter-node.js +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/{4.DyY1vjRV.css → 4.DEk4yqpA.css} +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js.br +2 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js.br +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{BrPqgVT6.js → BuwZGWCm.js} +21 -21
- package/dist/ui/client/ui/_app/immutable/chunks/BuwZGWCm.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BuwZGWCm.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js.br +2 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CAZ56n62.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CAZ56n62.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CAZ56n62.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js +5 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{C7D7xLuA.js → OAsMjdHF.js} +13 -13
- package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js +33 -0
- package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js.br +2 -0
- package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{KD5R77Wj.js → VxDST09k.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/VxDST09k.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/VxDST09k.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{D9JU-e3z.js → vPs9G1oN.js} +36 -36
- package/dist/ui/client/ui/_app/immutable/chunks/vPs9G1oN.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/vPs9G1oN.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{Cc902J0D.js → w5i9ZoX_.js} +2 -2
- package/dist/ui/client/ui/_app/immutable/chunks/w5i9ZoX_.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/w5i9ZoX_.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js +5 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js +180 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js +6 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js +6 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js.gz +0 -0
- package/dist/ui/client/ui/_app/version.json +1 -1
- package/dist/ui/client/ui/_app/version.json.br +0 -0
- package/dist/ui/client/ui/_app/version.json.gz +0 -0
- package/dist/ui/server/.vite/manifest.json +80 -59
- package/dist/ui/server/_app/immutable/assets/{_page.DyY1vjRV.css → _page.DEk4yqpA.css} +1 -1
- package/dist/ui/server/chunks/{composition.js → app-context.js} +50 -958
- package/dist/ui/server/chunks/app-context.js.map +1 -0
- package/dist/ui/server/chunks/config2.js +106 -0
- package/dist/ui/server/chunks/config2.js.map +1 -0
- package/dist/ui/server/chunks/dialog.js +1 -1
- package/dist/ui/server/chunks/instance.js +3 -3
- package/dist/ui/server/chunks/internal.js +1 -1
- package/dist/ui/server/chunks/outlined-button.js +116 -0
- package/dist/ui/server/chunks/outlined-button.js.map +1 -0
- package/dist/ui/server/chunks/outlined-text-field.js +1 -1
- package/dist/ui/server/chunks/redispatch-event.js +1 -1
- package/dist/ui/server/chunks/rolldown-runtime.js +12 -0
- package/dist/ui/server/chunks/rules.js +178 -0
- package/dist/ui/server/chunks/rules.js.map +1 -0
- package/dist/ui/server/chunks/sessions.remote.js +1 -11
- package/dist/ui/server/chunks/sessions.remote.js.map +1 -1
- package/dist/ui/server/chunks/setup.js +86 -0
- package/dist/ui/server/chunks/setup.js.map +1 -0
- package/dist/ui/server/chunks/{icon-button.js → speech.js} +42 -3
- package/dist/ui/server/chunks/speech.js.map +1 -0
- package/dist/ui/server/chunks/src.js +20 -155
- package/dist/ui/server/chunks/src.js.map +1 -1
- package/dist/ui/server/chunks/static-html.js +1 -1
- package/dist/ui/server/chunks/text-button.js +1 -1
- package/dist/ui/server/chunks/vocabulary.js +19 -0
- package/dist/ui/server/chunks/vocabulary.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +3 -2
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js +14 -5
- package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js +3 -2
- package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +2 -1
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +10 -13
- package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/status/_server.ts.js +2 -1
- package/dist/ui/server/entries/endpoints/api/status/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/hooks.server.js +29 -25
- package/dist/ui/server/entries/hooks.server.js.map +1 -1
- package/dist/ui/server/entries/pages/_layout.svelte.js +749 -4
- package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/_page.svelte.js +34 -26
- package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/settings/_page.svelte.js +143 -15
- package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/setup/_page.svelte.js +3 -3
- package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js +16 -10
- package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js.map +1 -1
- package/dist/ui/server/manifest-full.js +1 -1
- package/dist/ui/server/manifest.js +1 -1
- package/dist/ui/server/nodes/0.js +1 -1
- package/dist/ui/server/nodes/1.js +1 -1
- package/dist/ui/server/nodes/2.js +1 -1
- package/dist/ui/server/nodes/3.js +1 -1
- package/dist/ui/server/nodes/4.js +2 -2
- package/dist/ui/server/nodes/5.js +1 -1
- package/dist/ui/server/nodes/6.js +1 -1
- package/dist/ui/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/4.DyY1vjRV.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/4.DyY1vjRV.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js +0 -3
- package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js.br +0 -2
- package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BfHif6xP.js +0 -2
- package/dist/ui/client/ui/_app/immutable/chunks/BfHif6xP.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BfHif6xP.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BrPqgVT6.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BrPqgVT6.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C7D7xLuA.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C7D7xLuA.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cc902J0D.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cc902J0D.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js.br +0 -4
- package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/D9JU-e3z.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/D9JU-e3z.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js.br +0 -2
- package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js +0 -3
- package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js.br +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/KD5R77Wj.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/KD5R77Wj.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/PzCUpBms.js +0 -3
- package/dist/ui/client/ui/_app/immutable/chunks/PzCUpBms.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/PzCUpBms.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Roub4aju.js +0 -33
- package/dist/ui/client/ui/_app/immutable/chunks/Roub4aju.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Roub4aju.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/ux9AxWa3.js +0 -4
- package/dist/ui/client/ui/_app/immutable/chunks/ux9AxWa3.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/ux9AxWa3.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.DM2PRoLw.js +0 -2
- package/dist/ui/client/ui/_app/immutable/entry/app.DM2PRoLw.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.DM2PRoLw.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js +0 -2
- package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.fKLM0nQo.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/0.fKLM0nQo.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.fKLM0nQo.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.CywuMQ0y.js +0 -5
- package/dist/ui/client/ui/_app/immutable/nodes/3.CywuMQ0y.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.CywuMQ0y.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.BYvsTY13.js +0 -160
- package/dist/ui/client/ui/_app/immutable/nodes/4.BYvsTY13.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.BYvsTY13.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.xWNFTFjr.js +0 -6
- package/dist/ui/client/ui/_app/immutable/nodes/5.xWNFTFjr.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.xWNFTFjr.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.Dnf8S10l.js +0 -6
- package/dist/ui/client/ui/_app/immutable/nodes/6.Dnf8S10l.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.Dnf8S10l.js.gz +0 -0
- package/dist/ui/server/chunks/composition.js.map +0 -1
- package/dist/ui/server/chunks/filled-button.js +0 -116
- package/dist/ui/server/chunks/filled-button.js.map +0 -1
- package/dist/ui/server/chunks/icon-button.js.map +0 -1
- package/dist/ui/server/chunks/icon.js +0 -49
- package/dist/ui/server/chunks/icon.js.map +0 -1
|
@@ -212,7 +212,7 @@ function server_data_serializer(event, state) {
|
|
|
212
212
|
let promise_id = 1;
|
|
213
213
|
let max_nodes = -1;
|
|
214
214
|
const iterator = create_async_iterator();
|
|
215
|
-
const global = "
|
|
215
|
+
const global = "__sveltekit_4t9656";
|
|
216
216
|
/** @param {number} index */
|
|
217
217
|
function get_replacer(index) {
|
|
218
218
|
/** @param {any} thing */
|
|
@@ -1485,7 +1485,7 @@ async function render_response({ branch, fetched, page_config, status, error = n
|
|
|
1485
1485
|
"crossorigin"
|
|
1486
1486
|
]);
|
|
1487
1487
|
}
|
|
1488
|
-
const global = "
|
|
1488
|
+
const global = "__sveltekit_4t9656";
|
|
1489
1489
|
const { data, chunks } = data_serializer.get_data(csp);
|
|
1490
1490
|
if (page_config.ssr && page_config.csr) body += `\n\t\t\t${fetched.map((item) => serialize_data(item, resolve_opts.filterSerializedResponseHeaders, is_prerendering(state))).join("\n ")}`;
|
|
1491
1491
|
if (page_config.csr && client) {
|
|
@@ -1509,7 +1509,7 @@ async function render_response({ branch, fetched, page_config, status, error = n
|
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
1511
|
const blocks = [];
|
|
1512
|
-
const properties = [`base: ${base_expression}`, `version: ${s("
|
|
1512
|
+
const properties = [`base: ${base_expression}`, `version: ${s("1796368274138")}`];
|
|
1513
1513
|
if (assets) properties.push(`assets: ${s(assets)}`);
|
|
1514
1514
|
if (client.uses_env_dynamic_public) properties.push(`env: ${load_env_eagerly ? "null" : uneval(rendered_env)}`);
|
|
1515
1515
|
if (chunks) {
|
|
@@ -2679,7 +2679,7 @@ function is_prerendering(state) {
|
|
|
2679
2679
|
* @param {Response} response
|
|
2680
2680
|
*/
|
|
2681
2681
|
function with_version_header(response) {
|
|
2682
|
-
response.headers.set("x-sveltekit-version", "
|
|
2682
|
+
response.headers.set("x-sveltekit-version", "1796368274138");
|
|
2683
2683
|
return response;
|
|
2684
2684
|
}
|
|
2685
2685
|
/**
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { A as t, j as __decorate, k as i, x as T } from "./app-context.js";
|
|
2
|
+
import { n as Button, t as styles$2 } from "./text-button.js";
|
|
3
|
+
import { n as styles$3 } from "./redispatch-event.js";
|
|
4
|
+
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-button.js
|
|
5
|
+
/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2021 Google LLC
|
|
8
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* A filled button component.
|
|
12
|
+
*/
|
|
13
|
+
var FilledButton = class extends Button {
|
|
14
|
+
renderElevationOrOutline() {
|
|
15
|
+
return T`<md-elevation part="elevation"></md-elevation>`;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-styles.cssresult.js
|
|
19
|
+
/**
|
|
20
|
+
* @license
|
|
21
|
+
* Copyright 2026 Google LLC
|
|
22
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
23
|
+
*/
|
|
24
|
+
var styles$1 = i`:host{--_container-color: var(--md-filled-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-elevation: var(--md-filled-button-container-elevation, 0);--_container-height: var(--md-filled-button-container-height, 40px);--_container-shadow-color: var(--md-filled-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-button-focus-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-container-elevation: var(--md-filled-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-button-hover-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-button-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-filled-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-button-pressed-label-text-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-color: var(--md-filled-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_container-shape-start-start: var(--md-filled-button-container-shape-start-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-button-container-shape-start-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-button-container-shape-end-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-button-container-shape-end-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-button-leading-space, 24px);--_trailing-space: var(--md-filled-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-button-with-trailing-icon-trailing-space, 16px)}
|
|
25
|
+
`;
|
|
26
|
+
styles$1.styleSheet;
|
|
27
|
+
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/filled-button.js
|
|
28
|
+
/**
|
|
29
|
+
* @license
|
|
30
|
+
* Copyright 2021 Google LLC
|
|
31
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* @summary Buttons help people take action, such as sending an email, sharing a
|
|
35
|
+
* document, or liking a comment.
|
|
36
|
+
*
|
|
37
|
+
* @description
|
|
38
|
+
* __Emphasis:__ High emphasis – For the primary, most important, or most common
|
|
39
|
+
* action on a screen
|
|
40
|
+
*
|
|
41
|
+
* __Rationale:__ The filled button’s contrasting surface color makes it the
|
|
42
|
+
* most prominent button after the FAB. It’s used for final or unblocking
|
|
43
|
+
* actions in a flow.
|
|
44
|
+
*
|
|
45
|
+
* __Example usages:__
|
|
46
|
+
* - Save
|
|
47
|
+
* - Confirm
|
|
48
|
+
* - Done
|
|
49
|
+
*
|
|
50
|
+
* @final
|
|
51
|
+
* @suppress {visibility}
|
|
52
|
+
*/
|
|
53
|
+
var MdFilledButton = class MdFilledButton extends FilledButton {};
|
|
54
|
+
MdFilledButton.styles = [
|
|
55
|
+
styles$2,
|
|
56
|
+
styles$3,
|
|
57
|
+
styles$1
|
|
58
|
+
];
|
|
59
|
+
MdFilledButton = __decorate([t("md-filled-button")], MdFilledButton);
|
|
60
|
+
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/outlined-button.js
|
|
61
|
+
/**
|
|
62
|
+
* @license
|
|
63
|
+
* Copyright 2021 Google LLC
|
|
64
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
65
|
+
*/
|
|
66
|
+
/**
|
|
67
|
+
* An outlined button component.
|
|
68
|
+
*/
|
|
69
|
+
var OutlinedButton = class extends Button {
|
|
70
|
+
renderElevationOrOutline() {
|
|
71
|
+
return T`<div class="outline"></div>`;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/outlined-styles.cssresult.js
|
|
75
|
+
/**
|
|
76
|
+
* @license
|
|
77
|
+
* Copyright 2026 Google LLC
|
|
78
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
79
|
+
*/
|
|
80
|
+
var styles = i`:host{--_container-height: var(--md-outlined-button-container-height, 40px);--_disabled-label-text-color: var(--md-outlined-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-button-disabled-label-text-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-button-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-outlined-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-outlined-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-outlined-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-outlined-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-outlined-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-outlined-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-button-outline-width, 1px);--_pressed-label-text-color: var(--md-outlined-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-outline-color: var(--md-outlined-button-pressed-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-color: var(--md-outlined-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-outlined-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-outlined-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-outlined-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-outlined-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-outlined-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-outlined-button-icon-size, 18px);--_pressed-icon-color: var(--md-outlined-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-outlined-button-container-shape-start-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-outlined-button-container-shape-start-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-outlined-button-container-shape-end-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-outlined-button-container-shape-end-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-outlined-button-leading-space, 24px);--_trailing-space: var(--md-outlined-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-outlined-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-outlined-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-outlined-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-outlined-button-with-trailing-icon-trailing-space, 16px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}.outline{inset:0;border-style:solid;position:absolute;box-sizing:border-box;border-color:var(--_outline-color);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)}:host(:active) .outline{border-color:var(--_pressed-outline-color)}:host(:is([disabled],[soft-disabled])) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}@media(forced-colors: active){:host(:is([disabled],[soft-disabled])) .background{border-color:GrayText}:host(:is([disabled],[soft-disabled])) .outline{opacity:1}}.outline,md-ripple{border-width:var(--_outline-width)}md-ripple{inline-size:calc(100% - 2*var(--_outline-width));block-size:calc(100% - 2*var(--_outline-width));border-style:solid;border-color:rgba(0,0,0,0)}
|
|
81
|
+
`;
|
|
82
|
+
styles.styleSheet;
|
|
83
|
+
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/outlined-button.js
|
|
84
|
+
/**
|
|
85
|
+
* @license
|
|
86
|
+
* Copyright 2021 Google LLC
|
|
87
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
88
|
+
*/
|
|
89
|
+
/**
|
|
90
|
+
* @summary Buttons help people take action, such as sending an email, sharing a
|
|
91
|
+
* document, or liking a comment.
|
|
92
|
+
*
|
|
93
|
+
* @description
|
|
94
|
+
* __Emphasis:__ Medium emphasis – For important actions that don’t distract
|
|
95
|
+
* from other onscreen elements.
|
|
96
|
+
*
|
|
97
|
+
* __Rationale:__ Use an outlined button for actions that need attention but
|
|
98
|
+
* aren’t the primary action, such as “See all” or “Add to cart.” This is also
|
|
99
|
+
* the button to use for giving someone the opportunity to change their mind or
|
|
100
|
+
* escape a flow.
|
|
101
|
+
*
|
|
102
|
+
* __Example usages:__
|
|
103
|
+
* - Reply
|
|
104
|
+
* - View all
|
|
105
|
+
* - Add to cart
|
|
106
|
+
* - Take out of trash
|
|
107
|
+
*
|
|
108
|
+
* @final
|
|
109
|
+
* @suppress {visibility}
|
|
110
|
+
*/
|
|
111
|
+
var MdOutlinedButton = class MdOutlinedButton extends OutlinedButton {};
|
|
112
|
+
MdOutlinedButton.styles = [styles$2, styles];
|
|
113
|
+
MdOutlinedButton = __decorate([t("md-outlined-button")], MdOutlinedButton);
|
|
114
|
+
export {};
|
|
115
|
+
|
|
116
|
+
//# sourceMappingURL=outlined-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outlined-button.js","names":["html","styles","css","sharedStyles","sharedElevationStyles","filledStyles","customElement","html","css","sharedStyles","outlinedStyles","customElement"],"sources":["../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-button.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-styles.cssresult.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/filled-button.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/outlined-button.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/outlined-styles.cssresult.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/outlined-button.js"],"sourcesContent":["/**\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 button component.\n */\nexport class FilledButton extends Button {\n renderElevationOrOutline() {\n return html `<md-elevation part=\"elevation\"></md-elevation>`;\n }\n}\n//# sourceMappingURL=filled-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-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{--_container-color: var(--md-filled-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-elevation: var(--md-filled-button-container-elevation, 0);--_container-height: var(--md-filled-button-container-height, 40px);--_container-shadow-color: var(--md-filled-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-button-focus-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-container-elevation: var(--md-filled-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-button-hover-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-button-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-filled-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-button-pressed-label-text-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-color: var(--md-filled-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_container-shape-start-start: var(--md-filled-button-container-shape-start-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-button-container-shape-start-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-button-container-shape-end-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-button-container-shape-end-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-button-leading-space, 24px);--_trailing-space: var(--md-filled-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-button-with-trailing-icon-trailing-space, 16px)}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=filled-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 { FilledButton } from './internal/filled-button.js';\nimport { styles as filledStyles } from './internal/filled-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:__ High emphasis – For the primary, most important, or most common\n * action on a screen\n *\n * __Rationale:__ The filled button’s contrasting surface color makes it the\n * most prominent button after the FAB. It’s used for final or unblocking\n * actions in a flow.\n *\n * __Example usages:__\n * - Save\n * - Confirm\n * - Done\n *\n * @final\n * @suppress {visibility}\n */\nlet MdFilledButton = class MdFilledButton extends FilledButton {\n};\nMdFilledButton.styles = [\n sharedStyles,\n sharedElevationStyles,\n filledStyles,\n];\nMdFilledButton = __decorate([\n customElement('md-filled-button')\n], MdFilledButton);\nexport { MdFilledButton };\n//# sourceMappingURL=filled-button.js.map","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { html } from 'lit';\nimport { Button } from './button.js';\n/**\n * An outlined button component.\n */\nexport class OutlinedButton extends Button {\n renderElevationOrOutline() {\n return html `<div class=\"outline\"></div>`;\n }\n}\n//# sourceMappingURL=outlined-button.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./button/internal/outlined-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{--_container-height: var(--md-outlined-button-container-height, 40px);--_disabled-label-text-color: var(--md-outlined-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-button-disabled-label-text-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-button-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-outlined-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-outlined-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-outlined-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-outlined-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-outlined-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-outlined-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-button-outline-width, 1px);--_pressed-label-text-color: var(--md-outlined-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-outline-color: var(--md-outlined-button-pressed-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-color: var(--md-outlined-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-outlined-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-outlined-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-outlined-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-outlined-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-outlined-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-outlined-button-icon-size, 18px);--_pressed-icon-color: var(--md-outlined-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-outlined-button-container-shape-start-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-outlined-button-container-shape-start-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-outlined-button-container-shape-end-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-outlined-button-container-shape-end-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-outlined-button-leading-space, 24px);--_trailing-space: var(--md-outlined-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-outlined-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-outlined-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-outlined-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-outlined-button-with-trailing-icon-trailing-space, 16px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}.outline{inset:0;border-style:solid;position:absolute;box-sizing:border-box;border-color:var(--_outline-color);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)}:host(:active) .outline{border-color:var(--_pressed-outline-color)}:host(:is([disabled],[soft-disabled])) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}@media(forced-colors: active){:host(:is([disabled],[soft-disabled])) .background{border-color:GrayText}:host(:is([disabled],[soft-disabled])) .outline{opacity:1}}.outline,md-ripple{border-width:var(--_outline-width)}md-ripple{inline-size:calc(100% - 2*var(--_outline-width));block-size:calc(100% - 2*var(--_outline-width));border-style:solid;border-color:rgba(0,0,0,0)}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=outlined-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 { OutlinedButton } from './internal/outlined-button.js';\nimport { styles as outlinedStyles } from './internal/outlined-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:__ Use an outlined button for actions that need attention but\n * aren’t the primary action, such as “See all” or “Add to cart.” This is also\n * the button to use for giving someone the opportunity to change their mind or\n * escape a flow.\n *\n * __Example usages:__\n * - Reply\n * - View all\n * - Add to cart\n * - Take out of trash\n *\n * @final\n * @suppress {visibility}\n */\nlet MdOutlinedButton = class MdOutlinedButton extends OutlinedButton {\n};\nMdOutlinedButton.styles = [sharedStyles, outlinedStyles];\nMdOutlinedButton = __decorate([\n customElement('md-outlined-button')\n], MdOutlinedButton);\nexport { MdOutlinedButton };\n//# sourceMappingURL=outlined-button.js.map"],"ignoreList":[0,1,2,3,4,5],"mappings":";;;;;;;;;;;;AAWA,IAAa,eAAb,cAAkC,OAAO;CACrC,2BAA2B;EACvB,OAAOA,CAAK;CAChB;AACJ;;;;;;;ACRA,IAAaC,WAASC,CAAI;;AAEXD,SAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;ACsBtB,IAAI,iBAAiB,MAAM,uBAAuB,aAAa,CAC/D;AACA,eAAe,SAAS;CACpBE;CACAC;CACAC;AACJ;AACA,iBAAiB,WAAW,CACxBC,EAAc,kBAAkB,CACpC,GAAG,cAAc;;;;;;;;;;AC9BjB,IAAa,iBAAb,cAAoC,OAAO;CACvC,2BAA2B;EACvB,OAAOC,CAAK;CAChB;AACJ;;;;;;;ACPA,IAAa,SAASC,CAAI;;AAEX,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuBtB,IAAI,mBAAmB,MAAM,yBAAyB,eAAe,CACrE;AACA,iBAAiB,SAAS,CAACC,UAAcC,MAAc;AACvD,mBAAmB,WAAW,CAC1BC,EAAc,oBAAoB,CACtC,GAAG,gBAAgB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as t$1, D as r$1, O as n$2, S as Z, T as e$2, _ as i$2, a as mixinFormAssociated, b as E, d as EASING, g as t$2, h as i$4, i as getFormValue, j as __decorate, k as i$3, m as e$3, o as internals, p as e$1, s as mixinElementInternals, u as mixinDelegatesAria, v as A, x as T, y as B } from "./app-context.js";
|
|
2
2
|
import { r as o$1 } from "./text-button.js";
|
|
3
3
|
import { n as u$1, t as i$5 } from "./static-html.js";
|
|
4
4
|
import { t as redispatchEvent } from "./redispatch-event.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as t, _ as i, j as __decorate, k as i$1, x as T } from "./app-context.js";
|
|
2
2
|
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/elevation/internal/elevation.js
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, flags) => {
|
|
4
|
+
let target = Object.setPrototypeOf({}, null);
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
11
|
+
};
|
|
12
|
+
export { __exportAll as t };
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// ../shared/src/rules/limits.ts
|
|
2
|
+
/** Ranges of the speech endpoints. */
|
|
3
|
+
var API_LIMITS = {
|
|
4
|
+
/** `GET /speech?limit=`: the default and the most a caller may ask for. */
|
|
5
|
+
list: {
|
|
6
|
+
default: 1e3,
|
|
7
|
+
max: 1e4
|
|
8
|
+
},
|
|
9
|
+
wait: {
|
|
10
|
+
/** `GET /speech/wait?timeoutMs=`. */
|
|
11
|
+
timeoutMs: {
|
|
12
|
+
default: 5e3,
|
|
13
|
+
max: 3e5
|
|
14
|
+
},
|
|
15
|
+
/** Entries the timeout answer holds at most: the last ones seen. */
|
|
16
|
+
seen: 1e3,
|
|
17
|
+
/** Longest `regex`. */
|
|
18
|
+
regexLength: 500
|
|
19
|
+
},
|
|
20
|
+
/** Longest marker label (trimmed). */
|
|
21
|
+
markerLength: 1e3,
|
|
22
|
+
/** Longest session `name`, `run` or client name (trimmed). */
|
|
23
|
+
sessionLabelLength: 1e3,
|
|
24
|
+
/** `POST /input/click` and `POST /input/keys`. */
|
|
25
|
+
input: {
|
|
26
|
+
/** Largest absolute screen coordinate (physical pixels). */
|
|
27
|
+
coordinate: 1e5,
|
|
28
|
+
/** Pause between the chords of a sequence. */
|
|
29
|
+
delayMs: {
|
|
30
|
+
default: 50,
|
|
31
|
+
max: 1e4
|
|
32
|
+
},
|
|
33
|
+
/** Most chords in one request. */
|
|
34
|
+
maxKeys: 100,
|
|
35
|
+
/** Longest `title` of `POST /input/focus`. */
|
|
36
|
+
focusTitleLength: 200
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* `capture` of `POST /input/click` and `POST /input/keys` (and the client's `record()`, which
|
|
40
|
+
* uses the same defaults): the defaults and ranges in milliseconds.
|
|
41
|
+
*/
|
|
42
|
+
capture: {
|
|
43
|
+
/** Silence that ends the capture. */
|
|
44
|
+
quietForMs: {
|
|
45
|
+
default: 500,
|
|
46
|
+
min: 1,
|
|
47
|
+
max: 6e4
|
|
48
|
+
},
|
|
49
|
+
/** How long the first speech may take after the input. */
|
|
50
|
+
firstWithinMs: {
|
|
51
|
+
default: 2e3,
|
|
52
|
+
max: 3e5
|
|
53
|
+
},
|
|
54
|
+
/** Longest capture, counted from the input. */
|
|
55
|
+
timeoutMs: {
|
|
56
|
+
default: 1e4,
|
|
57
|
+
max: 3e5
|
|
58
|
+
},
|
|
59
|
+
/** Silence to wait for before the input (0: none). */
|
|
60
|
+
settleMs: {
|
|
61
|
+
default: 0,
|
|
62
|
+
max: 6e4
|
|
63
|
+
},
|
|
64
|
+
/** Entries the answer holds at most: the first ones. */
|
|
65
|
+
entries: 1e4
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
/** Ranges of the settings (`GET` / `PUT /config`). */
|
|
69
|
+
var CONFIG_LIMITS = {
|
|
70
|
+
port: {
|
|
71
|
+
min: 0,
|
|
72
|
+
max: 65535
|
|
73
|
+
},
|
|
74
|
+
maxLineBytes: {
|
|
75
|
+
min: 1024,
|
|
76
|
+
max: 16777216
|
|
77
|
+
},
|
|
78
|
+
maxEntries: {
|
|
79
|
+
min: 1,
|
|
80
|
+
max: 1e6
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* An exact npm version (`1.56.1`, `1.57.0-beta-1`): `playwright.version` ends up on an
|
|
85
|
+
* `npm install` command line, so nothing else may get through.
|
|
86
|
+
*/
|
|
87
|
+
var EXACT_VERSION_PATTERN = /^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/;
|
|
88
|
+
/** A host name without port or scheme, or `*` (`http.allowedHosts`). */
|
|
89
|
+
var HOST_NAME_PATTERN = /^(\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/;
|
|
90
|
+
/** Whether `text` is a usable label: not empty after trimming, at most `max` characters trimmed. */
|
|
91
|
+
var isTrimmedLabel = (text, max) => {
|
|
92
|
+
const trimmed = text.trim();
|
|
93
|
+
return trimmed !== "" && trimmed.length <= max;
|
|
94
|
+
};
|
|
95
|
+
// ../shared/src/rules/key-chord.ts
|
|
96
|
+
/**
|
|
97
|
+
* The key names of `POST /input/keys` (docs/usage/native-input.md#key-names). The bridge parses
|
|
98
|
+
* chords with this rule, and the CLI checks them before sending and lists the names in `--help`,
|
|
99
|
+
* so both use this one copy. Like `text-match.ts`, it belongs to the contract, not to either side.
|
|
100
|
+
*/
|
|
101
|
+
var DIGITS = [
|
|
102
|
+
"0",
|
|
103
|
+
"1",
|
|
104
|
+
"2",
|
|
105
|
+
"3",
|
|
106
|
+
"4",
|
|
107
|
+
"5",
|
|
108
|
+
"6",
|
|
109
|
+
"7",
|
|
110
|
+
"8",
|
|
111
|
+
"9"
|
|
112
|
+
];
|
|
113
|
+
var FUNCTION_KEYS = [
|
|
114
|
+
"f1",
|
|
115
|
+
"f2",
|
|
116
|
+
"f3",
|
|
117
|
+
"f4",
|
|
118
|
+
"f5",
|
|
119
|
+
"f6",
|
|
120
|
+
"f7",
|
|
121
|
+
"f8",
|
|
122
|
+
"f9",
|
|
123
|
+
"f10",
|
|
124
|
+
"f11",
|
|
125
|
+
"f12"
|
|
126
|
+
];
|
|
127
|
+
var LETTERS = "abcdefghijklmnopqrstuvwxyz".split("");
|
|
128
|
+
/** Keys that can be held down while another key is pressed. `Insert` and `CapsLock` are the screen reader keys. */
|
|
129
|
+
var MODIFIER_KEYS = [
|
|
130
|
+
"control",
|
|
131
|
+
"shift",
|
|
132
|
+
"alt",
|
|
133
|
+
"win",
|
|
134
|
+
"insert",
|
|
135
|
+
"capslock"
|
|
136
|
+
];
|
|
137
|
+
/**
|
|
138
|
+
* The keys of the numeric keypad (API 1.30), which NVDA's desktop layout and JAWS use for
|
|
139
|
+
* reading commands. With NumLock off they are those commands, with NumLock on they type.
|
|
140
|
+
*/
|
|
141
|
+
var NUMPAD_KEYS = [
|
|
142
|
+
...DIGITS.map((digit) => `numpad${digit}`),
|
|
143
|
+
"numpadplus",
|
|
144
|
+
"numpadminus",
|
|
145
|
+
"numpadmultiply",
|
|
146
|
+
"numpaddivide",
|
|
147
|
+
"numpaddecimal",
|
|
148
|
+
"numpadenter"
|
|
149
|
+
];
|
|
150
|
+
/** Keys with a name, besides `a`–`z` and `0`–`9`. */
|
|
151
|
+
var NAMED_KEYS = [
|
|
152
|
+
"enter",
|
|
153
|
+
"tab",
|
|
154
|
+
"escape",
|
|
155
|
+
"space",
|
|
156
|
+
"backspace",
|
|
157
|
+
"delete",
|
|
158
|
+
"up",
|
|
159
|
+
"down",
|
|
160
|
+
"left",
|
|
161
|
+
"right",
|
|
162
|
+
"home",
|
|
163
|
+
"end",
|
|
164
|
+
"pageup",
|
|
165
|
+
"pagedown",
|
|
166
|
+
...FUNCTION_KEYS,
|
|
167
|
+
...NUMPAD_KEYS
|
|
168
|
+
];
|
|
169
|
+
[
|
|
170
|
+
...MODIFIER_KEYS,
|
|
171
|
+
...NAMED_KEYS,
|
|
172
|
+
...LETTERS,
|
|
173
|
+
...DIGITS
|
|
174
|
+
];
|
|
175
|
+
new Set(MODIFIER_KEYS);
|
|
176
|
+
export { isTrimmedLabel as a, HOST_NAME_PATTERN as i, CONFIG_LIMITS as n, EXACT_VERSION_PATTERN as r, API_LIMITS as t };
|
|
177
|
+
|
|
178
|
+
//# sourceMappingURL=rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules.js","names":[],"sources":["../../../../shared/src/rules/limits.ts","../../../../shared/src/rules/key-chord.ts"],"sourcesContent":["// Limits and patterns of the HTTP API, used by the bridge (to check), the client and the schemas\n// (so docs/usage/openapi.yaml shows them).\n\n/** Ranges of the speech endpoints. */\nexport const API_LIMITS = {\n /** `GET /speech?limit=`: the default and the most a caller may ask for. */\n list: { default: 1000, max: 10_000 },\n wait: {\n /** `GET /speech/wait?timeoutMs=`. */\n timeoutMs: { default: 5000, max: 300_000 },\n /** Entries the timeout answer holds at most: the last ones seen. */\n seen: 1000,\n /** Longest `regex`. */\n regexLength: 500,\n },\n /** Longest marker label (trimmed). */\n markerLength: 1000,\n /** Longest session `name`, `run` or client name (trimmed). */\n sessionLabelLength: 1000,\n /** `POST /input/click` and `POST /input/keys`. */\n input: {\n /** Largest absolute screen coordinate (physical pixels). */\n coordinate: 100_000,\n /** Pause between the chords of a sequence. */\n delayMs: { default: 50, max: 10_000 },\n /** Most chords in one request. */\n maxKeys: 100,\n /** Longest `title` of `POST /input/focus`. */\n focusTitleLength: 200,\n },\n /**\n * `capture` of `POST /input/click` and `POST /input/keys` (and the client's `record()`, which\n * uses the same defaults): the defaults and ranges in milliseconds.\n */\n capture: {\n /** Silence that ends the capture. */\n quietForMs: { default: 500, min: 1, max: 60_000 },\n /** How long the first speech may take after the input. */\n firstWithinMs: { default: 2000, max: 300_000 },\n /** Longest capture, counted from the input. */\n timeoutMs: { default: 10_000, max: 300_000 },\n /** Silence to wait for before the input (0: none). */\n settleMs: { default: 0, max: 60_000 },\n /** Entries the answer holds at most: the first ones. */\n entries: 10_000,\n },\n} as const;\n\n/** Ranges of the settings (`GET` / `PUT /config`). */\nexport const CONFIG_LIMITS = {\n port: { min: 0, max: 65_535 },\n maxLineBytes: { min: 1024, max: 16 * 1024 * 1024 },\n maxEntries: { min: 1, max: 1_000_000 },\n} as const;\n\n/**\n * An exact npm version (`1.56.1`, `1.57.0-beta-1`): `playwright.version` ends up on an\n * `npm install` command line, so nothing else may get through.\n */\nexport const EXACT_VERSION_PATTERN = /^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z.-]+)?$/;\n\n/** A host name without port or scheme, or `*` (`http.allowedHosts`). */\nexport const HOST_NAME_PATTERN = /^(\\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/;\n\n/** Whether `text` is a usable label: not empty after trimming, at most `max` characters trimmed. */\nexport const isTrimmedLabel = (text: string, max: number): boolean => {\n const trimmed = text.trim();\n return trimmed !== '' && trimmed.length <= max;\n};\n","/**\n * The key names of `POST /input/keys` (docs/usage/native-input.md#key-names). The bridge parses\n * chords with this rule, and the CLI checks them before sending and lists the names in `--help`,\n * so both use this one copy. Like `text-match.ts`, it belongs to the contract, not to either side.\n */\n\nconst DIGITS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;\nconst FUNCTION_KEYS = [\n 'f1',\n 'f2',\n 'f3',\n 'f4',\n 'f5',\n 'f6',\n 'f7',\n 'f8',\n 'f9',\n 'f10',\n 'f11',\n 'f12',\n] as const;\n\ntype Letter =\n | 'a'\n | 'b'\n | 'c'\n | 'd'\n | 'e'\n | 'f'\n | 'g'\n | 'h'\n | 'i'\n | 'j'\n | 'k'\n | 'l'\n | 'm'\n | 'n'\n | 'o'\n | 'p'\n | 'q'\n | 'r'\n | 's'\n | 't'\n | 'u'\n | 'v'\n | 'w'\n | 'x'\n | 'y'\n | 'z';\nconst LETTERS = 'abcdefghijklmnopqrstuvwxyz'.split('') as Letter[];\n\n/** Keys that can be held down while another key is pressed. `Insert` and `CapsLock` are the screen reader keys. */\nexport const MODIFIER_KEYS = ['control', 'shift', 'alt', 'win', 'insert', 'capslock'] as const;\n\n/**\n * The keys of the numeric keypad (API 1.30), which NVDA's desktop layout and JAWS use for\n * reading commands. With NumLock off they are those commands, with NumLock on they type.\n */\nexport const NUMPAD_KEYS = [\n ...DIGITS.map((digit) => `numpad${digit}` as const),\n 'numpadplus',\n 'numpadminus',\n 'numpadmultiply',\n 'numpaddivide',\n 'numpaddecimal',\n 'numpadenter',\n] as const;\n\n/** Keys with a name, besides `a`–`z` and `0`–`9`. */\nexport const NAMED_KEYS = [\n 'enter',\n 'tab',\n 'escape',\n 'space',\n 'backspace',\n 'delete',\n 'up',\n 'down',\n 'left',\n 'right',\n 'home',\n 'end',\n 'pageup',\n 'pagedown',\n ...FUNCTION_KEYS,\n ...NUMPAD_KEYS,\n] as const;\n\n/** Aliases accepted in a chord, by their lower-case spelling. */\nexport const KEY_ALIASES: Readonly<Record<string, KeyName>> = {\n ctrl: 'control',\n windows: 'win',\n meta: 'win',\n esc: 'escape',\n return: 'enter',\n del: 'delete',\n ins: 'insert',\n pgup: 'pageup',\n pgdn: 'pagedown',\n numpaddelete: 'numpaddecimal',\n};\n\nconst KEYS: ReadonlySet<string> = new Set([...MODIFIER_KEYS, ...NAMED_KEYS, ...LETTERS, ...DIGITS]);\n\nconst isKeyName = (name: string): name is KeyName => KEYS.has(name);\n\nconst MODIFIER_SET: ReadonlySet<string> = new Set(MODIFIER_KEYS);\n\n/** A key by its canonical lower-case name: `a`–`z`, `0`–`9` or one of the lists above. */\nexport type KeyName =\n (typeof MODIFIER_KEYS)[number] | (typeof NAMED_KEYS)[number] | Letter | (typeof DIGITS)[number];\n\n/** One chord: the modifiers held down while `key` is pressed, for example `Insert+T`. */\nexport interface KeyChord {\n readonly modifiers: readonly KeyName[];\n readonly key: KeyName;\n}\n\n/** A parsed chord, or why it is invalid (callers report that in their own way). */\nexport type KeyChordResult = { ok: true; chord: KeyChord } | { ok: false; message: string };\n\n/**\n * Parses `Insert+T` or `Control+Shift+Home`: modifiers and one last key, joined with `+`, names\n * case-insensitive. Only modifiers may come before the last key, and none twice. A lone modifier\n * (`Insert`) is a chord of that key.\n */\nexport function parseKeyChord(chord: string): KeyChordResult {\n const names: KeyName[] = [];\n for (const part of chord.split('+')) {\n const lower = part.trim().toLowerCase();\n const name = KEY_ALIASES[lower] ?? lower;\n if (!isKeyName(name))\n return { ok: false, message: `unknown key \"${part.trim()}\" in \"${chord}\"` };\n names.push(name);\n }\n const key = names.pop()!;\n if (new Set(names).size !== names.length || names.includes(key)) {\n return { ok: false, message: `\"${chord}\" repeats a key` };\n }\n const notModifier = names.find((name) => !MODIFIER_SET.has(name));\n if (notModifier !== undefined) {\n return { ok: false, message: `\"${notModifier}\" in \"${chord}\" is not a modifier` };\n }\n return { ok: true, chord: { modifiers: names, key } };\n}\n"],"mappings":";;AAIA,IAAa,aAAa;;CAExB,MAAM;EAAE,SAAS;EAAM,KAAK;CAAO;CACnC,MAAM;;EAEJ,WAAW;GAAE,SAAS;GAAM,KAAK;EAAQ;;EAEzC,MAAM;;EAEN,aAAa;CACf;;CAEA,cAAc;;CAEd,oBAAoB;;CAEpB,OAAO;;EAEL,YAAY;;EAEZ,SAAS;GAAE,SAAS;GAAI,KAAK;EAAO;;EAEpC,SAAS;;EAET,kBAAkB;CACpB;;;;;CAKA,SAAS;;EAEP,YAAY;GAAE,SAAS;GAAK,KAAK;GAAG,KAAK;EAAO;;EAEhD,eAAe;GAAE,SAAS;GAAM,KAAK;EAAQ;;EAE7C,WAAW;GAAE,SAAS;GAAQ,KAAK;EAAQ;;EAE3C,UAAU;GAAE,SAAS;GAAG,KAAK;EAAO;;EAEpC,SAAS;CACX;AACF;;AAGA,IAAa,gBAAgB;CAC3B,MAAM;EAAE,KAAK;EAAG,KAAK;CAAO;CAC5B,cAAc;EAAE,KAAK;EAAM,KAAK;CAAiB;CACjD,YAAY;EAAE,KAAK;EAAG,KAAK;CAAU;AACvC;;;;;AAMA,IAAa,wBAAwB;;AAGrC,IAAa,oBAAoB;;AAGjC,IAAa,kBAAkB,MAAc,QAAyB;CACpE,MAAM,UAAU,KAAK,KAAK;CAC1B,OAAO,YAAY,MAAM,QAAQ,UAAU;AAC7C;;;;;;;AC9DA,IAAM,SAAS;CAAC;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;AAAG;AAChE,IAAM,gBAAgB;CACpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AA6BA,IAAM,UAAU,6BAA6B,MAAM,EAAE;;AAGrD,IAAa,gBAAgB;CAAC;CAAW;CAAS;CAAO;CAAO;CAAU;AAAU;;;;;AAMpF,IAAa,cAAc;CACzB,GAAG,OAAO,KAAK,UAAU,SAAS,OAAgB;CAClD;CACA;CACA;CACA;CACA;CACA;AACF;;AAGA,IAAa,aAAa;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,GAAG;CACH,GAAG;AACL;AAgB0C;CAAC,GAAG;CAAe,GAAG;CAAY,GAAG;CAAS,GAAG;AAAM;AAIvD,IAAI,IAAI,aAAa"}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime.js";
|
|
1
2
|
import "./internal.js";
|
|
2
3
|
import { p as getRequestEvent } from "./exports.js";
|
|
3
4
|
import { M as remote_module_invalid_export, j as remote_module_default_export } from "./server-errors.js";
|
|
4
5
|
import { n as query } from "./remote.js";
|
|
5
|
-
// \0rolldown/runtime.js
|
|
6
|
-
var __defProp = Object.defineProperty;
|
|
7
|
-
var __exportAll = (all, flags) => {
|
|
8
|
-
let target = Object.setPrototypeOf({}, null);
|
|
9
|
-
for (var name in all) __defProp(target, name, {
|
|
10
|
-
get: all[name],
|
|
11
|
-
enumerable: true
|
|
12
|
-
});
|
|
13
|
-
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
14
|
-
return flags & 2 ? target : Object.preventExtensions(target);
|
|
15
|
-
};
|
|
16
6
|
// ../../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/exports/internal/server/remote-functions.js
|
|
17
7
|
/** @import { RemoteInternals } from 'types' */
|
|
18
8
|
/** @type {RemoteInternals['type'][]} */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.remote.js","names":["e.remote_module_default_export","e.remote_module_invalid_export"],"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/exports/internal/server/remote-functions.js","../../../src/lib/remote/sessions.remote.ts"],"sourcesContent":["/** @import { RemoteInternals } from 'types' */\nimport * as e from '../../../messages/server-errors.js';\nimport { DEV } from 'esm-env';\n\n/** @type {RemoteInternals['type'][]} */\nconst types = ['command', 'form', 'prerender', 'query', 'query_batch', 'query_live'];\n\n/**\n * @param {Record<string, any>} module\n * @param {string} file\n * @param {string} hash\n * @param {{ file: string}=} dev_decoration\n */\nexport function init_remote_functions(module, file, hash, dev_decoration) {\n\tif (module.default) {\n\t\te.remote_module_default_export({ file });\n\t}\n\n\tfor (const [name, fn] of Object.entries(module)) {\n\t\tif (!types.includes(fn?.__?.type)) {\n\t\t\te.remote_module_invalid_export({ name, file });\n\t\t}\n\n\t\tfn.__.id = `${hash}/${name}`;\n\t\tfn.__.name = name;\n\t\tfn.__.file = file;\n\t\tif (DEV && dev_decoration) {\n\t\t\tfn.__.dev_loc = {\n\t\t\t\t...dev_decoration,\n\t\t\t\t...fn.__.dev_loc\n\t\t\t};\n\t\t}\n\t}\n}\n","import { getRequestEvent, query } from '$app/server';\n\n/**\n * The sessions list (`GET /api/v1/sessions`). The monitor page's load awaits it, so its answer is\n * in the server's HTML and the browser's first `getSessions()` needs no request; the browser then\n * re-reads it with `refresh()` (`HttpSessionsApi.list`).\n */\nexport const getSessions = query(() => getRequestEvent().locals.bridge.sessions());\n"],"ignoreList":[0],"mappings":"
|
|
1
|
+
{"version":3,"file":"sessions.remote.js","names":["e.remote_module_default_export","e.remote_module_invalid_export"],"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/exports/internal/server/remote-functions.js","../../../src/lib/remote/sessions.remote.ts"],"sourcesContent":["/** @import { RemoteInternals } from 'types' */\nimport * as e from '../../../messages/server-errors.js';\nimport { DEV } from 'esm-env';\n\n/** @type {RemoteInternals['type'][]} */\nconst types = ['command', 'form', 'prerender', 'query', 'query_batch', 'query_live'];\n\n/**\n * @param {Record<string, any>} module\n * @param {string} file\n * @param {string} hash\n * @param {{ file: string}=} dev_decoration\n */\nexport function init_remote_functions(module, file, hash, dev_decoration) {\n\tif (module.default) {\n\t\te.remote_module_default_export({ file });\n\t}\n\n\tfor (const [name, fn] of Object.entries(module)) {\n\t\tif (!types.includes(fn?.__?.type)) {\n\t\t\te.remote_module_invalid_export({ name, file });\n\t\t}\n\n\t\tfn.__.id = `${hash}/${name}`;\n\t\tfn.__.name = name;\n\t\tfn.__.file = file;\n\t\tif (DEV && dev_decoration) {\n\t\t\tfn.__.dev_loc = {\n\t\t\t\t...dev_decoration,\n\t\t\t\t...fn.__.dev_loc\n\t\t\t};\n\t\t}\n\t}\n}\n","import { getRequestEvent, query } from '$app/server';\n\n/**\n * The sessions list (`GET /api/v1/sessions`). The monitor page's load awaits it, so its answer is\n * in the server's HTML and the browser's first `getSessions()` needs no request; the browser then\n * re-reads it with `refresh()` (`HttpSessionsApi.list`).\n */\nexport const getSessions = query(() => getRequestEvent().locals.bridge.sessions());\n"],"ignoreList":[0],"mappings":";;;;;;;;AAKA,IAAM,QAAQ;CAAC;CAAW;CAAQ;CAAa;CAAS;CAAe;AAAY;;;;;;;AAQnF,SAAgB,sBAAsB,QAAQ,MAAM,MAAM,gBAAgB;CACzE,IAAI,OAAO,SACVA,6BAA+B,EAAE,KAAK,CAAC;CAGxC,KAAK,MAAM,CAAC,MAAM,OAAO,OAAO,QAAQ,MAAM,GAAG;EAChD,IAAI,CAAC,MAAM,SAAS,IAAI,IAAI,IAAI,GAC/BC,6BAA+B;GAAE;GAAM;EAAK,CAAC;EAG9C,GAAG,GAAG,KAAK,GAAG,KAAK,GAAG;EACtB,GAAG,GAAG,OAAO;EACb,GAAG,GAAG,OAAO;CAOd;AACD;;;;;;;;AC1BA,IAAa,cAAc,4BAAY,gBAAgB,CAAC,CAAC,OAAO,OAAO,SAAS,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// src/lib/core/setup.ts
|
|
2
|
+
/** The keys of the check: "read the window title" in NVDA and JAWS. */
|
|
3
|
+
var CHECK_CHORD = "Insert+T";
|
|
4
|
+
/** How long the check waits for speech someone makes by hand. */
|
|
5
|
+
var LISTEN_TIMEOUT_MS = 3e4;
|
|
6
|
+
/** After the first speech, the check collects what follows until nothing came for this long. */
|
|
7
|
+
var QUIET_MS = 1e3;
|
|
8
|
+
/**
|
|
9
|
+
* How the bridge records the speech {@link CHECK_CHORD} causes: nothing within 5 s is silence, and
|
|
10
|
+
* speech that doesn't pause ends the capture after 10 s.
|
|
11
|
+
*/
|
|
12
|
+
var CHECK_CAPTURE = {
|
|
13
|
+
firstWithinMs: 5e3,
|
|
14
|
+
quietForMs: QUIET_MS,
|
|
15
|
+
timeoutMs: 1e4
|
|
16
|
+
};
|
|
17
|
+
/** The id of the screen reader heading in the Setup instructions, where the check links to. */
|
|
18
|
+
var SCREEN_READER_ID = "screen-reader-heading";
|
|
19
|
+
var DOCS_URL = "https://github.com/TimoSto/screenreader-speech-capture/blob";
|
|
20
|
+
/**
|
|
21
|
+
* A page of `docs/` on GitHub, as of the bridge's release. Only stable releases are tagged, so a
|
|
22
|
+
* preview, a development build and an unknown version read `main`.
|
|
23
|
+
*/
|
|
24
|
+
function docsUrl(version, path) {
|
|
25
|
+
return `${DOCS_URL}/${version !== null && /^\d+\.\d+\.\d+$/.test(version) ? `@screenreader-speech-capture/bridge@${version}` : "main"}/docs/${path}`;
|
|
26
|
+
}
|
|
27
|
+
/** Where the libraries behind a feature live, by the `backend` name the bridge reports. */
|
|
28
|
+
var LIBRARY_REPOS = /* @__PURE__ */ new Map([["robotjs", "https://github.com/jitsi/robotjs"], ["koffi", "https://github.com/Koromix/koffi"]]);
|
|
29
|
+
/** What the bridge itself knows about the setup, one row each. */
|
|
30
|
+
function deriveCheckRows(status) {
|
|
31
|
+
const link = (label, path) => ({
|
|
32
|
+
label,
|
|
33
|
+
href: docsUrl(status.bridge.version, path)
|
|
34
|
+
});
|
|
35
|
+
const row = (id, label, tone, state, help, library = null) => ({
|
|
36
|
+
id,
|
|
37
|
+
label,
|
|
38
|
+
tone,
|
|
39
|
+
state,
|
|
40
|
+
library,
|
|
41
|
+
help: tone === "ok" ? null : "path" in help ? link(help.label, help.path) : help
|
|
42
|
+
});
|
|
43
|
+
const { listening, port, encoding, connections } = status.tcp;
|
|
44
|
+
const voices = [...new Set(connections.flatMap(({ voice }) => voice === null ? [] : [voice]))];
|
|
45
|
+
const count = connections.length === 1 ? "1 connection" : `${connections.length} connections`;
|
|
46
|
+
const input = (id, label, { available, backend, reason }, help) => row(id, label, available ? "ok" : "warning", available ? "Available" : `Not available: ${reason ?? "no reason given"}`, help, backend === null ? null : {
|
|
47
|
+
name: backend,
|
|
48
|
+
href: LIBRARY_REPOS.get(backend) ?? null
|
|
49
|
+
});
|
|
50
|
+
const service = (id, label, { state, version }) => {
|
|
51
|
+
const [tone, words] = {
|
|
52
|
+
running: ["ok", `Running, version ${version}`],
|
|
53
|
+
starting: ["neutral", `Starting, version ${version}`],
|
|
54
|
+
stopped: ["neutral", "Off"],
|
|
55
|
+
crashed: ["warning", `Crashed, version ${version}. It restarts by itself.`],
|
|
56
|
+
failed: ["warning", `Failed, version ${version}`]
|
|
57
|
+
}[state];
|
|
58
|
+
return row(id, label, tone, words, {
|
|
59
|
+
label: "Child services",
|
|
60
|
+
path: "usage/operations.md#child-service-crashes"
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
return [
|
|
64
|
+
row("listener", "Speech listener", listening ? "ok" : "warning", listening ? `Listening on port ${port} (${encoding})` : `Not listening on port ${port}`, {
|
|
65
|
+
label: "Troubleshooting",
|
|
66
|
+
path: "usage/troubleshooting.md#speech"
|
|
67
|
+
}),
|
|
68
|
+
row("voice", "Voice connected", connections.length > 0 ? "ok" : "neutral", connections.length > 0 ? `${count}${voices.length > 0 ? ` (voice ${voices.join(", ")})` : ""}` : "None yet: the voice connects with its first words", {
|
|
69
|
+
label: "Select the voice",
|
|
70
|
+
screenReader: true
|
|
71
|
+
}),
|
|
72
|
+
input("input", "Native input", status.input.native, {
|
|
73
|
+
label: "Troubleshooting",
|
|
74
|
+
path: "usage/troubleshooting.md#browser-and-input"
|
|
75
|
+
}),
|
|
76
|
+
input("focus", "Window focus", status.input.focus, {
|
|
77
|
+
label: "Bringing the browser to the front",
|
|
78
|
+
path: "usage/native-input.md#bringing-the-browser-to-the-front"
|
|
79
|
+
}),
|
|
80
|
+
service("playwright", "Playwright server", status.playwright),
|
|
81
|
+
service("mcp", "Playwright MCP", status.mcp)
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
export { SCREEN_READER_ID as a, QUIET_MS as i, CHECK_CHORD as n, deriveCheckRows as o, LISTEN_TIMEOUT_MS as r, docsUrl as s, CHECK_CAPTURE as t };
|
|
85
|
+
|
|
86
|
+
//# sourceMappingURL=setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.js","names":[],"sources":["../../../src/lib/core/setup.ts"],"sourcesContent":["import type {\n CaptureOptionsDto,\n InputAvailabilityDto,\n InputCaptureDto,\n ServiceStatusDto,\n SpeechEntryDto,\n StatusDto,\n} from '@screenreader-speech-capture/shared';\nimport type { FeedState } from './speech.js';\n\n/** The keys of the check: \"read the window title\" in NVDA and JAWS. */\nexport const CHECK_CHORD = 'Insert+T';\n/** How long the check waits for speech someone makes by hand. */\nexport const LISTEN_TIMEOUT_MS = 30_000;\n/** After the first speech, the check collects what follows until nothing came for this long. */\nexport const QUIET_MS = 1000;\n/** Most entries the check shows. */\nexport const MAX_HEARD = 5;\n/**\n * How the bridge records the speech {@link CHECK_CHORD} causes: nothing within 5 s is silence, and\n * speech that doesn't pause ends the capture after 10 s.\n */\nexport const CHECK_CAPTURE = {\n firstWithinMs: 5000,\n quietForMs: QUIET_MS,\n timeoutMs: 10_000,\n} as const satisfies CaptureOptionsDto;\n\n/** `manual`: someone makes the screen reader speak. `keys`: the check sends {@link CHECK_CHORD}. */\nexport type CheckVia = 'manual' | 'keys';\n\nexport type SpeechProbeHandlers = {\n /** Speech entries and markers, in `seq` order. */\n onEntry(entry: SpeechEntryDto): void;\n /** `failed`: the stream is gone for good. */\n onState(state: Extract<FeedState, 'live' | 'reconnecting' | 'failed'>): void;\n};\n\n/** All speech after a point, whichever session it belongs to. */\nexport interface SpeechProbe {\n /** Follows the entries with `seq > since`; the returned function stops it. */\n listen(since: number, handlers: SpeechProbeHandlers): () => void;\n}\n\n/** Native key presses on the bridge's machine, through the BFF. */\nexport interface KeysApi {\n /**\n * Presses one chord such as `Insert+T` and answers with the speech it caused, once that paused.\n * Rejects with the bridge's message, or when `signal` aborts.\n */\n pressAndCapture(\n keys: string,\n capture: CaptureOptionsDto,\n signal: AbortSignal,\n ): Promise<InputCaptureDto>;\n}\n\n/** The id of the screen reader heading in the Setup instructions, where the check links to. */\nexport const SCREEN_READER_ID = 'screen-reader-heading';\n\nconst DOCS_URL = 'https://github.com/TimoSto/screenreader-speech-capture/blob';\n\n/**\n * A page of `docs/` on GitHub, as of the bridge's release. Only stable releases are tagged, so a\n * preview, a development build and an unknown version read `main`.\n */\nexport function docsUrl(version: string | null, path: string): string {\n const released = version !== null && /^\\d+\\.\\d+\\.\\d+$/.test(version);\n const ref = released ? `@screenreader-speech-capture/bridge@${version}` : 'main';\n return `${DOCS_URL}/${ref}/docs/${path}`;\n}\n\n/** Where the libraries behind a feature live, by the `backend` name the bridge reports. */\nconst LIBRARY_REPOS = new Map([\n ['robotjs', 'https://github.com/jitsi/robotjs'],\n ['koffi', 'https://github.com/Koromix/koffi'],\n]);\n\nexport type CheckRowId = 'listener' | 'voice' | 'input' | 'focus' | 'playwright' | 'mcp';\n/** `neutral`: nothing wrong, but nothing to confirm either (yet). */\nexport type CheckTone = 'ok' | 'warning' | 'neutral';\n\n/** A page of the docs (its URL), or the screen reader steps of the Setup instructions. */\nexport type RowHelp = { label: string } & ({ href: string } | { screenReader: true });\n\nexport type CheckRow = {\n id: CheckRowId;\n label: string;\n tone: CheckTone;\n /** The state in words, so it is never colour or icon alone. */\n state: string;\n /** The library that provides the feature; `href` is `null` for one without a known repository. */\n library: { name: string; href: string | null } | null;\n /** Where to read on, for a row that isn't ok. */\n help: RowHelp | null;\n};\n\n/** A row's help as it is written here: a docs page still without the release it is read at. */\ntype Help = { label: string; path: string } | { label: string; screenReader: true };\n\n/** What the bridge itself knows about the setup, one row each. */\nexport function deriveCheckRows(status: StatusDto): CheckRow[] {\n const link = (label: string, path: string) => ({\n label,\n href: docsUrl(status.bridge.version, path),\n });\n const row = (\n id: CheckRowId,\n label: string,\n tone: CheckTone,\n state: string,\n help: Help,\n library: CheckRow['library'] = null,\n ): CheckRow => ({\n id,\n label,\n tone,\n state,\n library,\n help: tone === 'ok' ? null : 'path' in help ? link(help.label, help.path) : help,\n });\n\n const { listening, port, encoding, connections } = status.tcp;\n const voices = [...new Set(connections.flatMap(({ voice }) => (voice === null ? [] : [voice])))];\n const count = connections.length === 1 ? '1 connection' : `${connections.length} connections`;\n\n const input = (\n id: CheckRowId,\n label: string,\n { available, backend, reason }: InputAvailabilityDto,\n help: Help,\n ) =>\n row(\n id,\n label,\n available ? 'ok' : 'warning',\n available ? 'Available' : `Not available: ${reason ?? 'no reason given'}`,\n help,\n backend === null ? null : { name: backend, href: LIBRARY_REPOS.get(backend) ?? null },\n );\n\n const service = (id: CheckRowId, label: string, { state, version }: ServiceStatusDto) => {\n const [tone, words]: [CheckTone, string] = {\n running: ['ok', `Running, version ${version}`],\n starting: ['neutral', `Starting, version ${version}`],\n stopped: ['neutral', 'Off'],\n crashed: ['warning', `Crashed, version ${version}. It restarts by itself.`],\n failed: ['warning', `Failed, version ${version}`],\n }[state] as [CheckTone, string];\n return row(id, label, tone, words, {\n label: 'Child services',\n path: 'usage/operations.md#child-service-crashes',\n });\n };\n\n return [\n row(\n 'listener',\n 'Speech listener',\n listening ? 'ok' : 'warning',\n listening ? `Listening on port ${port} (${encoding})` : `Not listening on port ${port}`,\n { label: 'Troubleshooting', path: 'usage/troubleshooting.md#speech' },\n ),\n row(\n 'voice',\n 'Voice connected',\n connections.length > 0 ? 'ok' : 'neutral',\n connections.length > 0\n ? `${count}${voices.length > 0 ? ` (voice ${voices.join(', ')})` : ''}`\n : 'None yet: the voice connects with its first words',\n { label: 'Select the voice', screenReader: true },\n ),\n input('input', 'Native input', status.input.native, {\n label: 'Troubleshooting',\n path: 'usage/troubleshooting.md#browser-and-input',\n }),\n input('focus', 'Window focus', status.input.focus, {\n label: 'Bringing the browser to the front',\n path: 'usage/native-input.md#bringing-the-browser-to-the-front',\n }),\n service('playwright', 'Playwright server', status.playwright),\n service('mcp', 'Playwright MCP', status.mcp),\n ];\n}\n"],"mappings":";;AAWA,IAAa,cAAc;;AAE3B,IAAa,oBAAoB;;AAEjC,IAAa,WAAW;;;;;AAOxB,IAAa,gBAAgB;CAC3B,eAAe;CACf,YAAY;CACZ,WAAW;AACb;;AAgCA,IAAa,mBAAmB;AAEhC,IAAM,WAAW;;;;;AAMjB,SAAgB,QAAQ,SAAwB,MAAsB;CAGpE,OAAO,GAAG,SAAS,GAFF,YAAY,QAAQ,kBAAkB,KAAK,OAAO,IAC5C,uCAAuC,YAAY,OAChD,QAAQ;AACpC;;AAGA,IAAM,gCAAgB,IAAI,IAAI,CAC5B,CAAC,WAAW,kCAAkC,GAC9C,CAAC,SAAS,kCAAkC,CAC9C,CAAC;;AAyBD,SAAgB,gBAAgB,QAA+B;CAC7D,MAAM,QAAQ,OAAe,UAAkB;EAC7C;EACA,MAAM,QAAQ,OAAO,OAAO,SAAS,IAAI;CAC3C;CACA,MAAM,OACJ,IACA,OACA,MACA,OACA,MACA,UAA+B,UACjB;EACd;EACA;EACA;EACA;EACA;EACA,MAAM,SAAS,OAAO,OAAO,UAAU,OAAO,KAAK,KAAK,OAAO,KAAK,IAAI,IAAI;CAC9E;CAEA,MAAM,EAAE,WAAW,MAAM,UAAU,gBAAgB,OAAO;CAC1D,MAAM,SAAS,CAAC,GAAG,IAAI,IAAI,YAAY,SAAS,EAAE,YAAa,UAAU,OAAO,CAAC,IAAI,CAAC,KAAK,CAAE,CAAC,CAAC;CAC/F,MAAM,QAAQ,YAAY,WAAW,IAAI,iBAAiB,GAAG,YAAY,OAAO;CAEhF,MAAM,SACJ,IACA,OACA,EAAE,WAAW,SAAS,UACtB,SAEA,IACE,IACA,OACA,YAAY,OAAO,WACnB,YAAY,cAAc,kBAAkB,UAAU,qBACtD,MACA,YAAY,OAAO,OAAO;EAAE,MAAM;EAAS,MAAM,cAAc,IAAI,OAAO,KAAK;CAAK,CACtF;CAEF,MAAM,WAAW,IAAgB,OAAe,EAAE,OAAO,cAAgC;EACvF,MAAM,CAAC,MAAM,SAA8B;GACzC,SAAS,CAAC,MAAM,oBAAoB,SAAS;GAC7C,UAAU,CAAC,WAAW,qBAAqB,SAAS;GACpD,SAAS,CAAC,WAAW,KAAK;GAC1B,SAAS,CAAC,WAAW,oBAAoB,QAAQ,yBAAyB;GAC1E,QAAQ,CAAC,WAAW,mBAAmB,SAAS;EAClD,EAAE;EACF,OAAO,IAAI,IAAI,OAAO,MAAM,OAAO;GACjC,OAAO;GACP,MAAM;EACR,CAAC;CACH;CAEA,OAAO;EACL,IACE,YACA,mBACA,YAAY,OAAO,WACnB,YAAY,qBAAqB,KAAK,IAAI,SAAS,KAAK,yBAAyB,QACjF;GAAE,OAAO;GAAmB,MAAM;EAAkC,CACtE;EACA,IACE,SACA,mBACA,YAAY,SAAS,IAAI,OAAO,WAChC,YAAY,SAAS,IACjB,GAAG,QAAQ,OAAO,SAAS,IAAI,WAAW,OAAO,KAAK,IAAI,EAAE,KAAK,OACjE,qDACJ;GAAE,OAAO;GAAoB,cAAc;EAAK,CAClD;EACA,MAAM,SAAS,gBAAgB,OAAO,MAAM,QAAQ;GAClD,OAAO;GACP,MAAM;EACR,CAAC;EACD,MAAM,SAAS,gBAAgB,OAAO,MAAM,OAAO;GACjD,OAAO;GACP,MAAM;EACR,CAAC;EACD,QAAQ,cAAc,qBAAqB,OAAO,UAAU;EAC5D,QAAQ,OAAO,kBAAkB,OAAO,GAAG;CAC7C;AACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as t, D as r, O as n, _ as i, a as mixinFormAssociated, j as __decorate, k as i$1, p as e, r as mixinFormSubmitter, s as mixinElementInternals, u as mixinDelegatesAria, v as A, x as T } from "./app-context.js";
|
|
2
2
|
import { n as u, t as i$2 } from "./static-html.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/controller/is-rtl.js
|
|
4
4
|
/**
|
|
@@ -229,6 +229,45 @@ var MdIconButton = class MdIconButton extends IconButton {
|
|
|
229
229
|
};
|
|
230
230
|
MdIconButton.styles = [styles$1, styles];
|
|
231
231
|
MdIconButton = __decorate([t("md-icon-button")], MdIconButton);
|
|
232
|
-
|
|
232
|
+
// src/lib/core/speech.ts
|
|
233
|
+
/** The table keeps this many rows; the oldest go first (the bridge's own buffer is capped too). */
|
|
234
|
+
var MAX_ROWS = 5e3;
|
|
235
|
+
/**
|
|
236
|
+
* Whether a marker added now shows up in `scope`. The bridge files a marker under the current
|
|
237
|
+
* session, or outside any session when none is current: it has no way to name another scope.
|
|
238
|
+
*/
|
|
239
|
+
function canAddMarker(scope, currentId) {
|
|
240
|
+
return currentId === null ? scope === "none" : scope === currentId;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Whether the log can clear `scope`: the current session or the speech outside sessions, the scopes
|
|
244
|
+
* that can still receive speech. An ended session can only be deleted.
|
|
245
|
+
*/
|
|
246
|
+
function canClearSpeech(scope, currentId) {
|
|
247
|
+
return isLiveScope(scope, currentId);
|
|
248
|
+
}
|
|
249
|
+
/** Whether the log can delete `scope`: an ended session, never the current one or the outside log. */
|
|
250
|
+
function canDeleteSession(scope, currentId) {
|
|
251
|
+
return scope !== "none" && scope !== currentId;
|
|
252
|
+
}
|
|
253
|
+
/** Whether new speech can still arrive in `scope`. */
|
|
254
|
+
function isLiveScope(scope, currentId) {
|
|
255
|
+
return scope === "none" || scope === currentId;
|
|
256
|
+
}
|
|
257
|
+
/** `14:03:07.042` in the browser's time zone. */
|
|
258
|
+
function formatReceivedTime(iso) {
|
|
259
|
+
const date = new Date(iso);
|
|
260
|
+
if (Number.isNaN(date.getTime())) return iso;
|
|
261
|
+
const two = (value) => String(value).padStart(2, "0");
|
|
262
|
+
const millis = String(date.getMilliseconds()).padStart(3, "0");
|
|
263
|
+
return `${two(date.getHours())}:${two(date.getMinutes())}:${two(date.getSeconds())}.${millis}`;
|
|
264
|
+
}
|
|
265
|
+
/** `Checkout flow #3`, or what the log shows when no session is selected. */
|
|
266
|
+
function logHeading(scope, sessions) {
|
|
267
|
+
if (scope === "none") return "Records outside sessions";
|
|
268
|
+
const session = sessions.find((candidate) => candidate.id === scope);
|
|
269
|
+
return session === void 0 ? `#${scope}` : `${session.name} #${session.id}`;
|
|
270
|
+
}
|
|
271
|
+
export { formatReceivedTime as a, canDeleteSession as i, canAddMarker as n, logHeading as o, canClearSpeech as r, MAX_ROWS as t };
|
|
233
272
|
|
|
234
|
-
//# sourceMappingURL=
|
|
273
|
+
//# sourceMappingURL=speech.js.map
|