screenreader-speech-capture 0.3.0 → 0.4.0

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 (67) hide show
  1. package/dist/cli.mjs +31 -3
  2. package/dist/ui/adapter-node.js +1 -1
  3. package/dist/ui/client/ui/_app/immutable/assets/{0.CeDGT9MW.css → 0.B2ZWH0rX.css} +1 -1
  4. package/dist/ui/client/ui/_app/immutable/assets/0.B2ZWH0rX.css.br +0 -0
  5. package/dist/ui/client/ui/_app/immutable/assets/0.B2ZWH0rX.css.gz +0 -0
  6. package/dist/ui/client/ui/_app/immutable/assets/2.CtITS5jU.css +1 -0
  7. package/dist/ui/client/ui/_app/immutable/assets/2.CtITS5jU.css.br +0 -0
  8. package/dist/ui/client/ui/_app/immutable/assets/2.CtITS5jU.css.gz +0 -0
  9. package/dist/ui/client/ui/_app/immutable/chunks/w6UAqFO5.js +37 -0
  10. package/dist/ui/client/ui/_app/immutable/chunks/w6UAqFO5.js.br +0 -0
  11. package/dist/ui/client/ui/_app/immutable/chunks/w6UAqFO5.js.gz +0 -0
  12. package/dist/ui/client/ui/_app/immutable/entry/{app.2mjWY9ga.js → app.COo3YJBG.js} +2 -2
  13. package/dist/ui/client/ui/_app/immutable/entry/app.COo3YJBG.js.br +2 -0
  14. package/dist/ui/client/ui/_app/immutable/entry/app.COo3YJBG.js.gz +0 -0
  15. package/dist/ui/client/ui/_app/immutable/nodes/{0.CQ_XophD.js → 0.BKE0tKKK.js} +1 -1
  16. package/dist/ui/client/ui/_app/immutable/nodes/0.BKE0tKKK.js.br +0 -0
  17. package/dist/ui/client/ui/_app/immutable/nodes/0.BKE0tKKK.js.gz +0 -0
  18. package/dist/ui/client/ui/_app/immutable/nodes/2.BCy3UgNz.js +227 -0
  19. package/dist/ui/client/ui/_app/immutable/nodes/2.BCy3UgNz.js.br +0 -0
  20. package/dist/ui/client/ui/_app/immutable/nodes/2.BCy3UgNz.js.gz +0 -0
  21. package/dist/ui/client/ui/_app/version.json +1 -1
  22. package/dist/ui/client/ui/_app/version.json.br +0 -0
  23. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  24. package/dist/ui/server/.vite/manifest.json +33 -2
  25. package/dist/ui/server/_app/immutable/assets/{_layout.CeDGT9MW.css → _layout.B2ZWH0rX.css} +1 -1
  26. package/dist/ui/server/_app/immutable/assets/_page.CtITS5jU.css +1 -0
  27. package/dist/ui/server/chunks/bridge-api.js +29 -1
  28. package/dist/ui/server/chunks/bridge-api.js.map +1 -1
  29. package/dist/ui/server/chunks/composition.js +2863 -2
  30. package/dist/ui/server/chunks/composition.js.map +1 -1
  31. package/dist/ui/server/chunks/instance.js +3 -3
  32. package/dist/ui/server/chunks/internal.js +1 -1
  33. package/dist/ui/server/chunks/src.js +29 -2
  34. package/dist/ui/server/chunks/src.js.map +1 -1
  35. package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js +14 -0
  36. package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js.map +1 -0
  37. package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +1 -1
  38. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +21 -0
  39. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js.map +1 -0
  40. package/dist/ui/server/entries/endpoints/api/speech/stream/_server.ts.js +19 -0
  41. package/dist/ui/server/entries/endpoints/api/speech/stream/_server.ts.js.map +1 -0
  42. package/dist/ui/server/entries/pages/_layout.svelte.js +1 -3
  43. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
  44. package/dist/ui/server/entries/pages/_page.svelte.js +2659 -39
  45. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  46. package/dist/ui/server/manifest-full.js +22 -1
  47. package/dist/ui/server/manifest.js +22 -1
  48. package/dist/ui/server/nodes/0.js +2 -2
  49. package/dist/ui/server/nodes/2.js +2 -2
  50. package/dist/ui/server/server.js +22 -1
  51. package/package.json +1 -1
  52. package/dist/ui/client/ui/_app/immutable/assets/0.CeDGT9MW.css.br +0 -0
  53. package/dist/ui/client/ui/_app/immutable/assets/0.CeDGT9MW.css.gz +0 -0
  54. package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css +0 -1
  55. package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css.br +0 -0
  56. package/dist/ui/client/ui/_app/immutable/assets/2.DJfIfRJB.css.gz +0 -0
  57. package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js +0 -37
  58. package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js.br +0 -0
  59. package/dist/ui/client/ui/_app/immutable/chunks/DSHrAZZ8.js.gz +0 -0
  60. package/dist/ui/client/ui/_app/immutable/entry/app.2mjWY9ga.js.br +0 -0
  61. package/dist/ui/client/ui/_app/immutable/entry/app.2mjWY9ga.js.gz +0 -0
  62. package/dist/ui/client/ui/_app/immutable/nodes/0.CQ_XophD.js.br +0 -0
  63. package/dist/ui/client/ui/_app/immutable/nodes/0.CQ_XophD.js.gz +0 -0
  64. package/dist/ui/client/ui/_app/immutable/nodes/2.BTJ1n3E7.js +0 -224
  65. package/dist/ui/client/ui/_app/immutable/nodes/2.BTJ1n3E7.js.br +0 -0
  66. package/dist/ui/client/ui/_app/immutable/nodes/2.BTJ1n3E7.js.gz +0 -0
  67. package/dist/ui/server/_app/immutable/assets/_page.DJfIfRJB.css +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"composition.js","names":[],"sources":["../../../src/lib/core/theme.ts","../../../src/lib/adapters/browser-theme-storage.ts","../../../src/lib/adapters/http-sessions-api.ts","../../../src/lib/adapters/http-status-api.ts","../../../src/lib/stores/sessions.svelte.ts","../../../src/lib/stores/status.svelte.ts","../../../src/lib/stores/theme.svelte.ts","../../../src/lib/composition.ts"],"sourcesContent":["export type Theme = 'light' | 'dark';\n\nexport const DEFAULT_THEME: Theme = 'light';\n\n/** Where the chosen theme is remembered and applied (the browser adapter implements it). */\nexport interface ThemeStorage {\n /** The saved choice, or `null` when there is none or it can't be read. */\n read(): Theme | null;\n /** Remember the choice and make it take effect. */\n write(theme: Theme): void;\n}\n\nexport function parseTheme(raw: unknown): Theme | null {\n return raw === 'light' || raw === 'dark' ? raw : null;\n}\n\nexport function toggleTheme(theme: Theme): Theme {\n return theme === 'light' ? 'dark' : 'light';\n}\n","import { parseTheme, type Theme, type ThemeStorage } from '#lib/core/theme.js';\n\nexport const THEME_STORAGE_KEY = 'sr-theme';\n\n/** Keeps the theme in `localStorage` and applies it as `data-theme` on `<html>`. */\nexport class BrowserThemeStorage implements ThemeStorage {\n read(): Theme | null {\n try {\n return parseTheme(localStorage.getItem(THEME_STORAGE_KEY));\n } catch {\n return null; // blocked storage, or running on the server\n }\n }\n\n write(theme: Theme): void {\n document.documentElement.dataset.theme = theme;\n try {\n localStorage.setItem(THEME_STORAGE_KEY, theme);\n } catch {\n // the theme still applies for this page view\n }\n }\n}\n","import {\n checkDto,\n SessionListSchema,\n StartSessionResponseSchema,\n type DtoOf,\n type DtoSchema,\n type SessionListDto,\n type StartSessionResponseDto,\n} from '@screenreader-speech-capture/shared';\nimport type { SessionsApi } from '#lib/core/sessions.js';\n\n/** Reads and changes sessions through the UI's own sessions routes (`url` includes the base path). */\nexport class HttpSessionsApi implements SessionsApi {\n constructor(private readonly url: string) {}\n\n list(): Promise<SessionListDto> {\n return this.send('GET', this.url, undefined, SessionListSchema);\n }\n\n start(name: string, run: string | null): Promise<StartSessionResponseDto> {\n return this.send('POST', this.url, { name, run }, StartSessionResponseSchema);\n }\n\n async end(): Promise<void> {\n await this.send('POST', `${this.url}/end`, undefined, undefined);\n }\n\n private async send<S extends DtoSchema>(\n method: 'GET' | 'POST',\n url: string,\n body: unknown,\n schema: S | undefined,\n ): Promise<DtoOf<S>> {\n const response = await fetch(url, {\n method,\n headers: {\n accept: 'application/json',\n ...(body === undefined ? {} : { 'content-type': 'application/json' }),\n },\n body: body === undefined ? undefined : JSON.stringify(body),\n });\n if (!response.ok) throw new Error(await errorMessage(response));\n if (schema === undefined) return undefined;\n const checked = checkDto(schema, await response.json());\n if (!checked.ok) throw new Error(`Unexpected answer at ${checked.field}: ${checked.message}`);\n return checked.value;\n }\n}\n\n/** SvelteKit's `error()` answers `{ message }`; fall back to the status. */\nasync function errorMessage(response: Response): Promise<string> {\n const body: unknown = await response.json().catch(() => undefined);\n if (typeof body === 'object' && body !== null && 'message' in body) {\n const { message } = body;\n if (typeof message === 'string') return message;\n }\n return `The request answered ${response.status}`;\n}\n","import { checkDto, StatusSchema, type StatusDto } from '@screenreader-speech-capture/shared';\nimport type { StatusApi } from '#lib/core/status.js';\n\n/** Reads the bridge status through the UI's own status route (`url` includes the base path). */\nexport class HttpStatusApi implements StatusApi {\n constructor(private readonly url: string) {}\n\n async fetch(): Promise<StatusDto> {\n const response = await fetch(this.url, { headers: { accept: 'application/json' } });\n if (!response.ok) throw new Error(`The status request answered ${response.status}`);\n const checked = checkDto(StatusSchema, await response.json());\n if (!checked.ok) throw new Error(`Unexpected status at ${checked.field}: ${checked.message}`);\n return checked.value;\n }\n}\n","import type { SessionsApi } from '#lib/core/sessions.js';\nimport type { SessionDto, SessionListDto } from '@screenreader-speech-capture/shared';\n\n/** How often the list is read again, so entry counts and sessions of other clients show up. */\nconst REFRESH_MS = 3000;\n\n/** The sessions: read on `init`, then every few seconds, and after every start or end. */\nexport function createSessionsStore(api: SessionsApi) {\n let sessions = $state<SessionDto[]>([]);\n let currentId = $state<number | null>(null);\n let reachable = $state(true);\n let loaded = $state(false);\n let now = $state(Date.now());\n let inFlight: Promise<void> | null = null;\n\n function apply(list: SessionListDto): void {\n sessions = list.sessions;\n currentId = list.currentId;\n now = Date.now();\n loaded = true;\n }\n\n function read(): Promise<void> {\n if (inFlight) return inFlight;\n inFlight = api\n .list()\n .then((list) => {\n apply(list);\n reachable = true;\n })\n .catch(() => {\n reachable = false; // the last known list stays\n })\n .finally(() => {\n inFlight = null;\n });\n return inFlight;\n }\n\n /** A read that started before the change would show the old list, so wait for it and read again. */\n async function refreshAfterChange(): Promise<void> {\n await inFlight;\n await read();\n }\n\n return {\n get sessions() {\n return sessions;\n },\n get currentId() {\n return currentId;\n },\n /** Whether a list has been applied yet; until then the page shows what the server rendered. */\n get loaded() {\n return loaded;\n },\n get reachable() {\n return reachable;\n },\n /** Epoch ms, ticking once a second while a session is live (for its duration). */\n get now() {\n return now;\n },\n /**\n * Reads the list and keeps it fresh; `seed` is the list the server rendered, so there is no\n * flash. Returns the function that stops the timers (call it when the page goes away).\n */\n init(seed: SessionListDto | null): () => void {\n if (seed && sessions.length === 0) apply(seed);\n void read();\n const tick = setInterval(() => {\n if (currentId !== null) now = Date.now();\n }, 1000);\n const refresh = setInterval(() => void read(), REFRESH_MS);\n return () => {\n clearInterval(tick);\n clearInterval(refresh);\n };\n },\n /** Starts a session, which ends the previous one. Rejects with the bridge's message. */\n async start(name: string, run: string | null): Promise<SessionDto> {\n const started = await api.start(name, run);\n await refreshAfterChange();\n return started;\n },\n async end(): Promise<void> {\n await api.end();\n await refreshAfterChange();\n },\n };\n}\n","import type { StatusApi } from '#lib/core/status.js';\nimport type { StatusDto } from '@screenreader-speech-capture/shared';\n\n/** The bridge status: read once on init and again on `retry()`. There is no polling. */\nexport function createStatusStore(api: StatusApi) {\n let status = $state<StatusDto | null>(null);\n let reachable = $state(true);\n let loading = $state(false);\n let inFlight: Promise<void> | null = null;\n\n function read(): Promise<void> {\n if (inFlight) return inFlight;\n loading = true;\n inFlight = api\n .fetch()\n .then((next) => {\n status = next;\n reachable = true;\n })\n .catch(() => {\n reachable = false; // the last known status stays, greyed out\n })\n .finally(() => {\n loading = false;\n inFlight = null;\n });\n return inFlight;\n }\n\n return {\n get status() {\n return status;\n },\n get reachable() {\n return reachable;\n },\n get loading() {\n return loading;\n },\n /** Reads the status once; `seed` is the status the server rendered, so there is no flash. */\n init(seed: StatusDto | null): void {\n if (seed && status === null) status = seed;\n void read();\n },\n /** The refresh button. */\n retry(): Promise<void> {\n return read();\n },\n };\n}\n","import { DEFAULT_THEME, toggleTheme, type Theme, type ThemeStorage } from '#lib/core/theme.js';\n\nexport function createThemeStore(storage: ThemeStorage) {\n let current = $state<Theme>(DEFAULT_THEME);\n return {\n get current() {\n return current;\n },\n /** Pick up the saved choice. Call it in the browser only, after hydration. */\n init() {\n current = storage.read() ?? DEFAULT_THEME;\n },\n toggle() {\n current = toggleTheme(current);\n storage.write(current);\n },\n };\n}\n","import { resolve } from '$app/paths';\nimport { BrowserThemeStorage } from '#lib/adapters/browser-theme-storage.js';\nimport { markIconFontReady } from '#lib/adapters/icon-font.js';\nimport { HttpSessionsApi } from '#lib/adapters/http-sessions-api.js';\nimport { HttpStatusApi } from '#lib/adapters/http-status-api.js';\nimport { createSessionsStore } from '#lib/stores/sessions.svelte.js';\nimport { createStatusStore } from '#lib/stores/status.svelte.js';\nimport { createThemeStore } from '#lib/stores/theme.svelte.js';\n\n/** Wires the adapters into the stores; components get the stores, never the adapters. */\nexport const themeStore = createThemeStore(new BrowserThemeStorage());\nexport const statusStore = createStatusStore(new HttpStatusApi(resolve('/api/status')));\nexport const sessionsStore = createSessionsStore(new HttpSessionsApi(resolve('/api/sessions')));\n\n/** Ends the icon placeholder shimmer once the icon font is loaded. */\nexport { markIconFontReady };\n"],"mappings":";;;;AAEA,IAAa,gBAAuB;AAUpC,SAAgB,WAAW,KAA4B;CACrD,OAAO,QAAQ,WAAW,QAAQ,SAAS,MAAM;AACnD;AAEA,SAAgB,YAAY,OAAqB;CAC/C,OAAO,UAAU,UAAU,SAAS;AACtC;;AChBA,IAAa,oBAAoB;;AAGjC,IAAa,sBAAb,MAAyD;CACvD,OAAqB;EACnB,IAAI;GACF,OAAO,WAAW,aAAa,QAAQ,iBAAiB,CAAC;EAC3D,QAAQ;GACN,OAAO;EACT;CACF;CAEA,MAAM,OAAoB;EACxB,SAAS,gBAAgB,QAAQ,QAAQ;EACzC,IAAI;GACF,aAAa,QAAQ,mBAAmB,KAAK;EAC/C,QAAQ,CAER;CACF;AACF;;;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QAAQ,aAAa,CAAC,CAAC;AACtF,IAAa,gBAAgB,oBAAoB,IAAI,gBAAgB,QAAQ,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"composition.js","names":["t","_a","enumerableProperty","EventShim","CustomEventShim","EventTarget","document","customElements","t","e","s","o","n","r","i","S","c","h","r","o","n","a","c","l","t","p","d","u","f","b","m","y","g","s","i","e","o","e","t","r","n","r","t","e","e","t","t","i","s","e","o","n","l","c","a","u","$","i","t","e","r","o","LitElement","styles","styles","customElement","EVENTS","LitElement","property","styles","styles","customElement","e","i","s","i","t","r","LitElement","classMap","property","state","query","styles","styles","customElement","t","r","e","property","property","LitElement","nothing","classMap","property","state","styles","sharedStyles","customElement","errorMessage","CustomElementRegistryShimWithRealType"],"sources":["../../../../../node_modules/.pnpm/tslib@2.9.1/node_modules/tslib/tslib.es6.mjs","../../../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/custom-element.js","../../../../../node_modules/.pnpm/@lit-labs+ssr-dom-shim@1.6.0/node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.js","../../../../../node_modules/.pnpm/@lit-labs+ssr-dom-shim@1.6.0/node_modules/@lit-labs/ssr-dom-shim/lib/events.js","../../../../../node_modules/.pnpm/@lit-labs+ssr-dom-shim@1.6.0/node_modules/@lit-labs/ssr-dom-shim/lib/css.js","../../../../../node_modules/.pnpm/@lit-labs+ssr-dom-shim@1.6.0/node_modules/@lit-labs/ssr-dom-shim/index.js","../../../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/css-tag.js","../../../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/reactive-element.js","../../../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/property.js","../../../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/state.js","../../../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/base.js","../../../../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/query.js","../../../../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/lit-html.js","../../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/icon/internal/icon.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/icon/internal/icon-styles.cssresult.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/icon/icon.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/controller/attachable-controller.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/focus/internal/focus-ring.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/focus/internal/focus-ring-styles.cssresult.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/focus/md-focus-ring.js","../../../../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/directive.js","../../../../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/directives/class-map.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/motion/animation.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/ripple/internal/ripple.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/ripple/internal/ripple-styles.cssresult.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/ripple/ripple.js","../../../../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/static.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/aria/aria.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/aria/delegate.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/controller/is-rtl.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/events/dispatch-hooks.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/element-internals.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/form-associated.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/form-submitter.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/iconbutton/internal/icon-button.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/iconbutton/internal/shared-styles.cssresult.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/iconbutton/internal/standard-styles.cssresult.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/iconbutton/icon-button.js","../../../src/lib/core/theme.ts","../../../src/lib/adapters/browser-theme-storage.ts","../../../src/lib/adapters/http-speech-api.ts","../../../src/lib/adapters/http-sessions-api.ts","../../../src/lib/adapters/sse-speech-feed.ts","../../../src/lib/adapters/http-status-api.ts","../../../src/lib/core/sessions-pane.ts","../../../src/lib/adapters/browser-sessions-pane-storage.ts","../../../src/lib/stores/sessions-pane.svelte.ts","../../../src/lib/stores/sessions.svelte.ts","../../../src/lib/core/speech.ts","../../../src/lib/stores/speech.svelte.ts","../../../src/lib/stores/status.svelte.ts","../../../src/lib/stores/theme.svelte.ts","../../../src/lib/composition.ts"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx, extraExtensions, ignoreCase) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n if (extraExtensions) {\n for (var extension in extraExtensions) {\n var suffix = path.slice(-extension.length);\n if (suffix === extension || ignoreCase && suffix.toLowerCase() === extension.toLowerCase()) {\n var output = extraExtensions[extension];\n return output === extension ? path : path.slice(0, -extension.length) + output;\n }\n }\n }\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=t=>(e,o)=>{void 0!==o?o.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};export{t as customElement};\n//# sourceMappingURL=custom-element.js.map\n","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n/**\n * Map of ARIAMixin properties to attributes\n */\nexport const ariaMixinAttributes = {\n ariaAtomic: 'aria-atomic',\n ariaAutoComplete: 'aria-autocomplete',\n ariaBrailleLabel: 'aria-braillelabel',\n ariaBrailleRoleDescription: 'aria-brailleroledescription',\n ariaBusy: 'aria-busy',\n ariaChecked: 'aria-checked',\n ariaColCount: 'aria-colcount',\n ariaColIndex: 'aria-colindex',\n ariaColIndexText: 'aria-colindextext',\n ariaColSpan: 'aria-colspan',\n ariaCurrent: 'aria-current',\n ariaDescription: 'aria-description',\n ariaDisabled: 'aria-disabled',\n ariaExpanded: 'aria-expanded',\n ariaHasPopup: 'aria-haspopup',\n ariaHidden: 'aria-hidden',\n ariaInvalid: 'aria-invalid',\n ariaKeyShortcuts: 'aria-keyshortcuts',\n ariaLabel: 'aria-label',\n ariaLevel: 'aria-level',\n ariaLive: 'aria-live',\n ariaModal: 'aria-modal',\n ariaMultiLine: 'aria-multiline',\n ariaMultiSelectable: 'aria-multiselectable',\n ariaOrientation: 'aria-orientation',\n ariaPlaceholder: 'aria-placeholder',\n ariaPosInSet: 'aria-posinset',\n ariaPressed: 'aria-pressed',\n ariaReadOnly: 'aria-readonly',\n ariaRelevant: 'aria-relevant',\n ariaRequired: 'aria-required',\n ariaRoleDescription: 'aria-roledescription',\n ariaRowCount: 'aria-rowcount',\n ariaRowIndex: 'aria-rowindex',\n ariaRowIndexText: 'aria-rowindextext',\n ariaRowSpan: 'aria-rowspan',\n ariaSelected: 'aria-selected',\n ariaSetSize: 'aria-setsize',\n ariaSort: 'aria-sort',\n ariaValueMax: 'aria-valuemax',\n ariaValueMin: 'aria-valuemin',\n ariaValueNow: 'aria-valuenow',\n ariaValueText: 'aria-valuetext',\n role: 'role',\n};\n// Shim the global element internals object\n// Methods should be fine as noops and properties can generally\n// be while on the server.\nexport const ElementInternalsShim = class ElementInternals {\n get shadowRoot() {\n // Grab the shadow root instance from the Element shim\n // to ensure that the shadow root is always available\n // to the internals instance even if the mode is 'closed'\n return this.__host\n .__shadowRoot;\n }\n constructor(_host) {\n this.ariaActiveDescendantElement = null;\n this.ariaAtomic = '';\n this.ariaAutoComplete = '';\n this.ariaBrailleLabel = '';\n this.ariaBrailleRoleDescription = '';\n this.ariaBusy = '';\n this.ariaChecked = '';\n this.ariaColCount = '';\n this.ariaColIndex = '';\n this.ariaColIndexText = '';\n this.ariaColSpan = '';\n this.ariaControlsElements = null;\n this.ariaCurrent = '';\n this.ariaDescribedByElements = null;\n this.ariaDescription = '';\n this.ariaDetailsElements = null;\n this.ariaDisabled = '';\n this.ariaErrorMessageElements = null;\n this.ariaExpanded = '';\n this.ariaFlowToElements = null;\n this.ariaHasPopup = '';\n this.ariaHidden = '';\n this.ariaInvalid = '';\n this.ariaKeyShortcuts = '';\n this.ariaLabel = '';\n this.ariaLabelledByElements = null;\n this.ariaLevel = '';\n this.ariaLive = '';\n this.ariaModal = '';\n this.ariaMultiLine = '';\n this.ariaMultiSelectable = '';\n this.ariaOrientation = '';\n this.ariaOwnsElements = null;\n this.ariaPlaceholder = '';\n this.ariaPosInSet = '';\n this.ariaPressed = '';\n this.ariaReadOnly = '';\n this.ariaRelevant = '';\n this.ariaRequired = '';\n this.ariaRoleDescription = '';\n this.ariaRowCount = '';\n this.ariaRowIndex = '';\n this.ariaRowIndexText = '';\n this.ariaRowSpan = '';\n this.ariaSelected = '';\n this.ariaSetSize = '';\n this.ariaSort = '';\n this.ariaValueMax = '';\n this.ariaValueMin = '';\n this.ariaValueNow = '';\n this.ariaValueText = '';\n this.role = '';\n this.form = null;\n this.labels = [];\n this.states = new Set();\n this.validationMessage = '';\n this.validity = {};\n this.willValidate = true;\n this.__host = _host;\n }\n checkValidity() {\n // TODO(augustjk) Consider actually implementing logic.\n // See https://github.com/lit/lit/issues/3740\n console.warn('`ElementInternals.checkValidity()` was called on the server.' +\n 'This method always returns true.');\n return true;\n }\n reportValidity() {\n return true;\n }\n setFormValue() { }\n setValidity() { }\n};\nconst ElementInternalsShimWithRealType = ElementInternalsShim;\nexport { ElementInternalsShimWithRealType as ElementInternals };\nexport const HYDRATE_INTERNALS_ATTR_PREFIX = 'hydrate-internals-';\n//# sourceMappingURL=element-internals.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n};\nvar __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar _Event_cancelable, _Event_bubbles, _Event_composed, _Event_defaultPrevented, _Event_timestamp, _Event_propagationStopped, _Event_type, _Event_target, _Event_isBeingDispatched, _a, _CustomEvent_detail, _b;\n// Event phases\nconst NONE = 0;\nconst CAPTURING_PHASE = 1;\nconst AT_TARGET = 2;\nconst BUBBLING_PHASE = 3;\nconst enumerableProperty = { __proto__: null };\nenumerableProperty.enumerable = true;\nObject.freeze(enumerableProperty);\n// TODO: Remove this when we remove support for vm modules (--experimental-vm-modules).\nconst EventShim = (_a = class Event {\n constructor(type, options = {}) {\n _Event_cancelable.set(this, false);\n _Event_bubbles.set(this, false);\n _Event_composed.set(this, false);\n _Event_defaultPrevented.set(this, false);\n _Event_timestamp.set(this, Date.now());\n _Event_propagationStopped.set(this, false);\n _Event_type.set(this, void 0);\n _Event_target.set(this, void 0);\n _Event_isBeingDispatched.set(this, void 0);\n this.NONE = NONE;\n this.CAPTURING_PHASE = CAPTURING_PHASE;\n this.AT_TARGET = AT_TARGET;\n this.BUBBLING_PHASE = BUBBLING_PHASE;\n if (arguments.length === 0)\n throw new Error(`The type argument must be specified`);\n if (typeof options !== 'object' || !options) {\n throw new Error(`The \"options\" argument must be an object`);\n }\n const { bubbles, cancelable, composed } = options;\n __classPrivateFieldSet(this, _Event_cancelable, !!cancelable, \"f\");\n __classPrivateFieldSet(this, _Event_bubbles, !!bubbles, \"f\");\n __classPrivateFieldSet(this, _Event_composed, !!composed, \"f\");\n __classPrivateFieldSet(this, _Event_type, `${type}`, \"f\");\n __classPrivateFieldSet(this, _Event_target, null, \"f\");\n __classPrivateFieldSet(this, _Event_isBeingDispatched, false, \"f\");\n }\n initEvent(_type, _bubbles, _cancelable) {\n throw new Error('Method not implemented.');\n }\n stopImmediatePropagation() {\n this.stopPropagation();\n }\n preventDefault() {\n __classPrivateFieldSet(this, _Event_defaultPrevented, true, \"f\");\n }\n get target() {\n return __classPrivateFieldGet(this, _Event_target, \"f\");\n }\n get currentTarget() {\n return __classPrivateFieldGet(this, _Event_target, \"f\");\n }\n get srcElement() {\n return __classPrivateFieldGet(this, _Event_target, \"f\");\n }\n get type() {\n return __classPrivateFieldGet(this, _Event_type, \"f\");\n }\n get cancelable() {\n return __classPrivateFieldGet(this, _Event_cancelable, \"f\");\n }\n get defaultPrevented() {\n return __classPrivateFieldGet(this, _Event_cancelable, \"f\") && __classPrivateFieldGet(this, _Event_defaultPrevented, \"f\");\n }\n get timeStamp() {\n return __classPrivateFieldGet(this, _Event_timestamp, \"f\");\n }\n composedPath() {\n return __classPrivateFieldGet(this, _Event_isBeingDispatched, \"f\") ? [__classPrivateFieldGet(this, _Event_target, \"f\")] : [];\n }\n get returnValue() {\n return !__classPrivateFieldGet(this, _Event_cancelable, \"f\") || !__classPrivateFieldGet(this, _Event_defaultPrevented, \"f\");\n }\n get bubbles() {\n return __classPrivateFieldGet(this, _Event_bubbles, \"f\");\n }\n get composed() {\n return __classPrivateFieldGet(this, _Event_composed, \"f\");\n }\n get eventPhase() {\n return __classPrivateFieldGet(this, _Event_isBeingDispatched, \"f\") ? _a.AT_TARGET : _a.NONE;\n }\n get cancelBubble() {\n return __classPrivateFieldGet(this, _Event_propagationStopped, \"f\");\n }\n set cancelBubble(value) {\n if (value) {\n __classPrivateFieldSet(this, _Event_propagationStopped, true, \"f\");\n }\n }\n stopPropagation() {\n __classPrivateFieldSet(this, _Event_propagationStopped, true, \"f\");\n }\n get isTrusted() {\n return false;\n }\n },\n _Event_cancelable = new WeakMap(),\n _Event_bubbles = new WeakMap(),\n _Event_composed = new WeakMap(),\n _Event_defaultPrevented = new WeakMap(),\n _Event_timestamp = new WeakMap(),\n _Event_propagationStopped = new WeakMap(),\n _Event_type = new WeakMap(),\n _Event_target = new WeakMap(),\n _Event_isBeingDispatched = new WeakMap(),\n _a.NONE = NONE,\n _a.CAPTURING_PHASE = CAPTURING_PHASE,\n _a.AT_TARGET = AT_TARGET,\n _a.BUBBLING_PHASE = BUBBLING_PHASE,\n _a);\nObject.defineProperties(EventShim.prototype, {\n initEvent: enumerableProperty,\n stopImmediatePropagation: enumerableProperty,\n preventDefault: enumerableProperty,\n target: enumerableProperty,\n currentTarget: enumerableProperty,\n srcElement: enumerableProperty,\n type: enumerableProperty,\n cancelable: enumerableProperty,\n defaultPrevented: enumerableProperty,\n timeStamp: enumerableProperty,\n composedPath: enumerableProperty,\n returnValue: enumerableProperty,\n bubbles: enumerableProperty,\n composed: enumerableProperty,\n eventPhase: enumerableProperty,\n cancelBubble: enumerableProperty,\n stopPropagation: enumerableProperty,\n isTrusted: enumerableProperty,\n});\n// TODO: Remove this when we remove support for vm modules (--experimental-vm-modules).\nconst CustomEventShim = (_b = class CustomEvent extends EventShim {\n constructor(type, options = {}) {\n super(type, options);\n _CustomEvent_detail.set(this, void 0);\n __classPrivateFieldSet(this, _CustomEvent_detail, options?.detail ?? null, \"f\");\n }\n initCustomEvent(_type, _bubbles, _cancelable, _detail) {\n throw new Error('Method not implemented.');\n }\n get detail() {\n return __classPrivateFieldGet(this, _CustomEvent_detail, \"f\");\n }\n },\n _CustomEvent_detail = new WeakMap(),\n _b);\nObject.defineProperties(CustomEventShim.prototype, {\n detail: enumerableProperty,\n});\nconst EventShimWithRealType = EventShim;\nconst CustomEventShimWithRealType = CustomEventShim;\nexport { EventShimWithRealType as Event, EventShimWithRealType as EventShim, CustomEventShimWithRealType as CustomEvent, CustomEventShimWithRealType as CustomEventShim, };\n//# sourceMappingURL=events.js.map","/**\n * @license\n * Copyright 2024 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar _a;\nconst MediaListShim = class MediaList extends Array {\n get mediaText() {\n return this.join(', ');\n }\n toString() {\n return this.mediaText;\n }\n appendMedium(medium) {\n if (!this.includes(medium)) {\n this.push(medium);\n }\n }\n deleteMedium(medium) {\n const index = this.indexOf(medium);\n if (index !== -1) {\n this.splice(index, 1);\n }\n }\n item(index) {\n return this[index] ?? null;\n }\n};\nconst MediaListShimWithRealType = MediaListShim;\nexport { MediaListShimWithRealType as MediaList };\nconst StyleSheetShim = class StyleSheet {\n constructor() {\n this.__media = new MediaListShim();\n this.disabled = false;\n }\n get href() {\n return null;\n }\n get media() {\n return this.__media;\n }\n get ownerNode() {\n return null;\n }\n get parentStyleSheet() {\n return null;\n }\n get title() {\n return null;\n }\n get type() {\n return 'text/css';\n }\n};\nconst StyleSheetShimWithRealType = StyleSheetShim;\nexport { StyleSheetShimWithRealType as StyleSheet };\nconst CSSRuleShim = (_a = class CSSRule {\n constructor() {\n this.STYLE_RULE = 1;\n this.CHARSET_RULE = 2;\n this.IMPORT_RULE = 3;\n this.MEDIA_RULE = 4;\n this.FONT_FACE_RULE = 5;\n this.PAGE_RULE = 6;\n this.NAMESPACE_RULE = 10;\n this.KEYFRAMES_RULE = 7;\n this.KEYFRAME_RULE = 8;\n this.SUPPORTS_RULE = 12;\n this.COUNTER_STYLE_RULE = 11;\n this.FONT_FEATURE_VALUES_RULE = 14;\n this.MARGIN_RULE = 9;\n this.__parentStyleSheet = null;\n this.cssText = '';\n }\n get parentRule() {\n return null;\n }\n get parentStyleSheet() {\n return this.__parentStyleSheet;\n }\n get type() {\n return 0;\n }\n },\n _a.STYLE_RULE = 1,\n _a.CHARSET_RULE = 2,\n _a.IMPORT_RULE = 3,\n _a.MEDIA_RULE = 4,\n _a.FONT_FACE_RULE = 5,\n _a.PAGE_RULE = 6,\n _a.NAMESPACE_RULE = 10,\n _a.KEYFRAMES_RULE = 7,\n _a.KEYFRAME_RULE = 8,\n _a.SUPPORTS_RULE = 12,\n _a.COUNTER_STYLE_RULE = 11,\n _a.FONT_FEATURE_VALUES_RULE = 14,\n _a.MARGIN_RULE = 9,\n _a);\nconst CSSRuleShimWithRealType = CSSRuleShim;\nexport { CSSRuleShimWithRealType as CSSRule };\nconst CSSRuleListShim = class CSSRuleList extends Array {\n item(index) {\n return this[index] ?? null;\n }\n};\nconst CSSRuleListShimWithRealType = CSSRuleListShim;\nexport { CSSRuleListShimWithRealType as CSSRuleList };\nconst CSSStyleSheetShim = class CSSStyleSheet extends StyleSheetShim {\n constructor() {\n super(...arguments);\n this.__rules = new CSSRuleListShim();\n }\n get cssRules() {\n return this.__rules;\n }\n get ownerRule() {\n return null;\n }\n get rules() {\n return this.cssRules;\n }\n addRule(_selector, _style, _index) {\n throw new Error('Method not implemented.');\n }\n deleteRule(_index) {\n throw new Error('Method not implemented.');\n }\n insertRule(_rule, _index) {\n throw new Error('Method not implemented.');\n }\n removeRule(_index) {\n throw new Error('Method not implemented.');\n }\n replace(text) {\n this.replaceSync(text);\n return Promise.resolve(this);\n }\n replaceSync(text) {\n this.__rules.length = 0;\n const rule = new CSSRuleShim();\n rule.cssText = text;\n this.__rules.push(rule);\n }\n};\nconst CSSStyleSheetShimWithRealType = CSSStyleSheetShim;\nexport { CSSStyleSheetShimWithRealType as CSSStyleSheet, CSSStyleSheetShimWithRealType as CSSStyleSheetShim, };\n//# sourceMappingURL=css.js.map","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nimport { ElementInternalsShim } from './lib/element-internals.js';\nimport { EventShim, CustomEventShim } from './lib/events.js';\nexport { ariaMixinAttributes, ElementInternals, HYDRATE_INTERNALS_ATTR_PREFIX, } from './lib/element-internals.js';\nexport { CSSRule, CSSRuleList, CSSStyleSheet, MediaList, StyleSheet, } from './lib/css.js';\nexport { CustomEvent, Event } from './lib/events.js';\nexport { IntersectionObserver, MutationObserver, ResizeObserver, } from './lib/observers.js';\n// In an empty Node.js vm, we need to patch the global context.\n// TODO: Remove these globalThis assignments when we remove support\n// for vm modules (--experimental-vm-modules).\nglobalThis.Event ??= EventShim;\nglobalThis.CustomEvent ??= CustomEventShim;\nconst constructionToken = Symbol();\nconst isCaptureEventListener = (options) => (typeof options === 'boolean' ? options : (options?.capture ?? false));\nconst enumerableProperty = { __proto__: null };\nenumerableProperty.enumerable = true;\nObject.freeze(enumerableProperty);\n/**\n * This is a basic implementation of an EventTarget.\n *\n * This is not fully spec compliant (e.g. validation),\n * but should work well enough for our use cases.\n *\n * @see https://dom.spec.whatwg.org/#eventtarget\n *\n * Example Event Path\n * ------------------\n *\n * Note that this depends on the logic in `packages/labs/ssr/src/lib/render-value.ts`.\n * Any element that is not a custom element or a slot element is skipped in the chain.\n *\n * <main>\n * <my-el1>\n * #shadow-dom (open)\n * <div>\n * <slot></slot>\n * <my-el2>\n * #shadow-dom (closed)\n * <slot></slot>\n * <event-dispatcher3></event-dispatcher3>\n * <slot name=\"nested\"></slot>\n * </my-el2>\n * </div>\n * <event-dispatcher1></event-dispatcher1>\n * <event-dispatcher2 slot=\"nested\"></event-dispatcher2>\n * </my-el1>\n * </main>\n *\n * Given the previous structure, the event path of this shim would be as follows,\n * for the given dispatcher with an event that bubbles (document-fragment\n * represents a ShadowRoot/#shadow-dom instance):\n *\n * <event-dispatcher1>:\n * [event-dispatcher1, slot{my-el1}, document-fragment{my-el1}, my-el1, document]\n *\n * <event-dispatcher2>:\n * [\n * event-dispatcher2,\n * slot[name=\"nested\"]{my-el1},\n * slot{my-el2},\n * document-fragment{my-el2},\n * my-el2,\n * document-fragment{my-el1},\n * my-el1,\n * document\n * ]\n *\n * <event-dispatcher3> (without composed):\n * [event-dispatcher3, document-fragment{my-el2}]\n *\n * <event-dispatcher3> (composed):\n * [\n * event-dispatcher3,\n * document-fragment{my-el2},\n * my-el2,\n * document-fragment{my-el1},\n * my-el1,\n * document\n * ]\n */\nclass EventTarget {\n constructor() {\n this.__eventListeners = new Map();\n this.__captureEventListeners = new Map();\n }\n addEventListener(type, callback, options) {\n if (callback === undefined || callback === null) {\n return;\n }\n const eventListenersMap = isCaptureEventListener(options)\n ? this.__captureEventListeners\n : this.__eventListeners;\n let eventListeners = eventListenersMap.get(type);\n if (eventListeners === undefined) {\n eventListeners = new Map();\n eventListenersMap.set(type, eventListeners);\n }\n else if (eventListeners.has(callback)) {\n return;\n }\n const normalizedOptions = typeof options === 'object' && options ? options : {};\n normalizedOptions.signal?.addEventListener('abort', () => this.removeEventListener(type, callback, options));\n eventListeners.set(callback, normalizedOptions ?? {});\n }\n removeEventListener(type, callback, options) {\n if (callback === undefined || callback === null) {\n return;\n }\n const eventListenersMap = isCaptureEventListener(options)\n ? this.__captureEventListeners\n : this.__eventListeners;\n const eventListeners = eventListenersMap.get(type);\n if (eventListeners !== undefined) {\n eventListeners.delete(callback);\n if (!eventListeners.size) {\n eventListenersMap.delete(type);\n }\n }\n }\n dispatchEvent(event) {\n let composedPath = this.__resolveFullEventPath();\n if (!event.composed && this.__host) {\n // If the event is not composed and the event was dispatched inside\n // shadow DOM, we need to stop the event chain before the host of the\n // shadow DOM.\n composedPath = composedPath.slice(0, composedPath.indexOf(this.__host));\n }\n // We need to patch various properties that would either be empty or wrong\n // in this scenario.\n let stopPropagation = false;\n let stopImmediatePropagation = false;\n let eventPhase = EventShim.NONE;\n let target = null;\n let tmpTarget = null;\n let currentTarget = null;\n const originalStopPropagation = event.stopPropagation;\n const originalStopImmediatePropagation = event.stopImmediatePropagation;\n Object.defineProperties(event, {\n target: {\n get() {\n return target ?? tmpTarget;\n },\n ...enumerableProperty,\n },\n srcElement: {\n get() {\n return event.target;\n },\n ...enumerableProperty,\n },\n currentTarget: {\n get() {\n return currentTarget;\n },\n ...enumerableProperty,\n },\n eventPhase: {\n get() {\n return eventPhase;\n },\n ...enumerableProperty,\n },\n composedPath: {\n value: () => composedPath,\n ...enumerableProperty,\n },\n stopPropagation: {\n value: () => {\n stopPropagation = true;\n originalStopPropagation.call(event);\n },\n ...enumerableProperty,\n },\n stopImmediatePropagation: {\n value: () => {\n stopImmediatePropagation = true;\n originalStopImmediatePropagation.call(event);\n },\n ...enumerableProperty,\n },\n });\n // An event handler can either be a function, an object with a handleEvent\n // method or null. This function takes care to call the event handler\n // correctly.\n const invokeEventListener = (listener, options, eventListenerMap) => {\n if (typeof listener === 'function') {\n listener(event);\n }\n else if (typeof listener?.handleEvent === 'function') {\n listener.handleEvent(event);\n }\n if (options.once) {\n eventListenerMap.delete(listener);\n }\n };\n // When an event is finished being dispatched, which can be after the event\n // tree has been traversed or stopPropagation/stopImmediatePropagation has\n // been called. Once that is the case, the currentTarget and eventPhase\n // need to be reset and a value, representing whether the event has not\n // been prevented, needs to be returned.\n const finishDispatch = () => {\n currentTarget = null;\n eventPhase = EventShim.NONE;\n return !event.defaultPrevented;\n };\n // An event starts with the capture order, where it starts from the top.\n // This is done even if bubbles is set to false, which is the default.\n const captureEventPath = composedPath.slice().reverse();\n // If the event target, which dispatches the event, is either in the light DOM\n // or the event is not composed, the target is always itself. If that is not\n // the case, the target needs to be retargeted: https://dom.spec.whatwg.org/#retarget\n target = !this.__host || !event.composed ? this : null;\n const retarget = (eventTargets) => {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n tmpTarget = this;\n while (tmpTarget.__host && eventTargets.includes(tmpTarget.__host)) {\n tmpTarget = tmpTarget.__host;\n }\n };\n for (const eventTarget of captureEventPath) {\n if (!target && (!tmpTarget || tmpTarget === eventTarget.__host)) {\n retarget(captureEventPath.slice(captureEventPath.indexOf(eventTarget)));\n }\n currentTarget = eventTarget;\n eventPhase =\n eventTarget === event.target\n ? EventShim.AT_TARGET\n : EventShim.CAPTURING_PHASE;\n const captureEventListeners = eventTarget.__captureEventListeners.get(event.type);\n if (captureEventListeners) {\n for (const [listener, options] of captureEventListeners) {\n invokeEventListener(listener, options, captureEventListeners);\n if (stopImmediatePropagation) {\n // Event.stopImmediatePropagation() stops any following invocation\n // of an event handler even on the same event target.\n return finishDispatch();\n }\n }\n }\n if (stopPropagation) {\n // Event.stopPropagation() stops any following invocation\n // of an event handler for any following event targets.\n return finishDispatch();\n }\n }\n const bubbleEventPath = event.bubbles ? composedPath : [this];\n tmpTarget = null;\n for (const eventTarget of bubbleEventPath) {\n if (!target &&\n (!tmpTarget || eventTarget === tmpTarget.__host)) {\n retarget(bubbleEventPath.slice(0, bubbleEventPath.indexOf(eventTarget) + 1));\n }\n currentTarget = eventTarget;\n eventPhase =\n eventTarget === event.target\n ? EventShim.AT_TARGET\n : EventShim.BUBBLING_PHASE;\n const eventListeners = eventTarget.__eventListeners.get(event.type);\n if (eventListeners) {\n for (const [listener, options] of eventListeners) {\n invokeEventListener(listener, options, eventListeners);\n if (stopImmediatePropagation) {\n // Event.stopImmediatePropagation() stops any following invocation\n // of an event handler even on the same event target.\n return finishDispatch();\n }\n }\n }\n if (stopPropagation) {\n // Event.stopPropagation() stops any following invocation\n // of an event handler for any following event targets.\n return finishDispatch();\n }\n }\n return finishDispatch();\n }\n __resolveFullEventPath() {\n if (this.__eventPathCache) {\n return this.__eventPathCache;\n }\n else if (!this.__eventTargetParent) {\n return (this.__eventPathCache = [this, documentShim, windowShim]);\n }\n else {\n return (this.__eventPathCache = [\n this,\n ...this.__eventTargetParent.__resolveFullEventPath(),\n ]);\n }\n }\n}\nconst EventTargetShimWithRealType = EventTarget;\nexport { EventTargetShimWithRealType as EventTarget };\nconst attributes = new WeakMap();\nconst attributesForElement = (element) => {\n let attrs = attributes.get(element);\n if (attrs === undefined) {\n attributes.set(element, (attrs = new Map()));\n }\n return attrs;\n};\n// The typings around the exports below are a little funky:\n//\n// 1. We want the `name` of the shim classes to match the real ones at runtime,\n// hence e.g. `class Element`.\n// 2. We can't shadow the global types with a simple class declaration, because\n// then we can't reference the global types for casting, hence e.g.\n// `const ElementShim = class Element`.\n// 3. We want to export the classes typed as the real ones, hence e.g.\n// `const ElementShimWithRealType = ElementShim as object as typeof Element;`.\n// 4. We want the exported names to match the real ones, hence e.g.\n// `export {ElementShimWithRealType as Element}`.\nconst NodeShim = class Node extends EventTarget {\n getRootNode(options) {\n if (options?.composed) {\n return document;\n }\n // getRootNode returns the containing ShadowRoot instance, even if that was\n // created in closed mode.\n const host = this.__host;\n return (host?.__shadowRoot ?? document);\n }\n};\nconst NodeShimWithRealType = NodeShim;\nexport { NodeShimWithRealType as Node };\nconst DocumentShim = class Document extends NodeShim {\n get adoptedStyleSheets() {\n return [];\n }\n createTreeWalker() {\n return {};\n }\n createTextNode() {\n return {};\n }\n createElement() {\n return {};\n }\n};\nconst DocumentShimWithRealType = DocumentShim;\nexport { DocumentShimWithRealType as Document };\nconst documentShim = new DocumentShim();\nconst document = documentShim;\nexport { document };\nconst WindowShim = class Window extends NodeShim {\n constructor(token) {\n super();\n if (token !== constructionToken) {\n throw new TypeError('Illegal constructor');\n }\n Object.assign(this, globalThis, {\n CustomElementRegistry,\n customElements,\n document,\n Document: DocumentShim,\n Element: ElementShim,\n EventTarget,\n HTMLElement: HTMLElementShim,\n Node: NodeShim,\n ShadowRoot: ShadowRootShim,\n window: this,\n Window: WindowShim,\n });\n }\n};\nconst WindowShimWithRealType = WindowShim;\nexport { WindowShimWithRealType as Window };\nconst ElementShim = class Element extends NodeShim {\n constructor() {\n super(...arguments);\n this.__shadowRootMode = null;\n this.__shadowRoot = null;\n this.__internals = null;\n }\n get attributes() {\n return Array.from(attributesForElement(this)).map(([name, value]) => ({\n name,\n value,\n }));\n }\n get shadowRoot() {\n if (this.__shadowRootMode === 'closed') {\n return null;\n }\n return this.__shadowRoot;\n }\n get localName() {\n return this.constructor.__localName;\n }\n get tagName() {\n return this.localName?.toUpperCase();\n }\n setAttribute(name, value) {\n // Emulate browser behavior that silently casts all values to string. E.g.\n // `42` becomes `\"42\"` and `{}` becomes `\"[object Object]\"\"`.\n attributesForElement(this).set(name, String(value));\n }\n removeAttribute(name) {\n attributesForElement(this).delete(name);\n }\n toggleAttribute(name, force) {\n // Steps reference https://dom.spec.whatwg.org/#dom-element-toggleattribute\n if (this.hasAttribute(name)) {\n // Step 5\n if (force === undefined || !force) {\n this.removeAttribute(name);\n return false;\n }\n }\n else {\n // Step 4\n if (force === undefined || force) {\n // Step 4.1\n this.setAttribute(name, '');\n return true;\n }\n else {\n // Step 4.2\n return false;\n }\n }\n // Step 6\n return true;\n }\n hasAttribute(name) {\n return attributesForElement(this).has(name);\n }\n attachShadow(init) {\n this.__shadowRootMode = init.mode;\n const shadowRoot = new ShadowRootShim(constructionToken, init);\n shadowRoot.__eventTargetParent = this;\n shadowRoot.__host = this;\n return (this.__shadowRoot = shadowRoot);\n }\n attachInternals() {\n if (this.__internals !== null) {\n throw new Error(`Failed to execute 'attachInternals' on 'HTMLElement': ` +\n `ElementInternals for the specified element was already attached.`);\n }\n const internals = new ElementInternalsShim(this);\n this.__internals = internals;\n return internals;\n }\n getAttribute(name) {\n const value = attributesForElement(this).get(name);\n return value ?? null;\n }\n};\nconst ElementShimWithRealType = ElementShim;\nexport { ElementShimWithRealType as Element };\nconst HTMLElementShim = class HTMLElement extends ElementShim {\n};\nconst HTMLElementShimWithRealType = HTMLElementShim;\nexport { HTMLElementShimWithRealType as HTMLElement };\nconst HTMLSlotElementShim = class HTMLSlotElement extends HTMLElementShim {\n get localName() {\n return 'slot';\n }\n};\nconst HTMLSlotElementShimWithRealType = HTMLSlotElementShim;\nexport { HTMLSlotElementShimWithRealType as HTMLSlotElement };\nconst ShadowRootShim = class ShadowRoot extends NodeShim {\n get host() {\n return this.__host;\n }\n constructor(constructionToken, init) {\n super();\n if (constructionToken !== constructionToken) {\n throw new TypeError('Illegal constructor');\n }\n this.mode = init.mode;\n }\n};\nconst ShadowRootShimWithRealType = ShadowRootShim;\nexport { ShadowRootShimWithRealType as ShadowRoot };\n// For convenience, we provide a global instance of a HTMLElement as an event\n// target. This facilitates registering global event handlers\n// (e.g. for @lit/context ContextProvider).\n// We use this in in the SSR render function.\n// Note, this is a bespoke element and not simply `document` or `window` since\n// user code relies on these being undefined in the server environment.\nglobalThis.litServerRoot ??= Object.defineProperty(new HTMLElementShimWithRealType(), 'localName', {\n // Patch localName (and tagName) to return a unique name.\n get() {\n return 'lit-server-root';\n },\n});\nfunction promiseWithResolvers() {\n let resolve;\n let reject;\n const promise = new Promise((res, rej) => {\n resolve = res;\n reject = rej;\n });\n return { promise, resolve: resolve, reject: reject };\n}\nclass CustomElementRegistry {\n constructor() {\n this.__definitions = new Map();\n this.__reverseDefinitions = new Map();\n this.__pendingWhenDefineds = new Map();\n }\n define(name, ctor) {\n if (this.__definitions.has(name)) {\n if (process.env.NODE_ENV === 'development') {\n console.warn(`'CustomElementRegistry' already has \"${name}\" defined. ` +\n `This may have been caused by live reload or hot module ` +\n `replacement in which case it can be safely ignored.\\n` +\n `Make sure to test your application with a production build as ` +\n `repeat registrations will throw in production.`);\n }\n else {\n throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': ` +\n `the name \"${name}\" has already been used with this registry`);\n }\n }\n if (this.__reverseDefinitions.has(ctor)) {\n throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': ` +\n `the constructor has already been used with this registry for the ` +\n `tag name ${this.__reverseDefinitions.get(ctor)}`);\n }\n // Provide tagName and localName for the component.\n ctor.__localName = name;\n this.__definitions.set(name, {\n ctor,\n // Note it's important we read `observedAttributes` in case it is a getter\n // with side-effects, as is the case in Lit, where it triggers class\n // finalization.\n //\n // TODO(aomarks) To be spec compliant, we should also capture the\n // registration-time lifecycle methods like `connectedCallback`. For them\n // to be actually accessible to e.g. the Lit SSR element renderer, though,\n // we'd need to introduce a new API for accessing them (since `get` only\n // returns the constructor).\n observedAttributes: ctor.observedAttributes ?? [],\n });\n this.__reverseDefinitions.set(ctor, name);\n this.__pendingWhenDefineds.get(name)?.resolve(ctor);\n this.__pendingWhenDefineds.delete(name);\n }\n get(name) {\n const definition = this.__definitions.get(name);\n return definition?.ctor;\n }\n getName(ctor) {\n return this.__reverseDefinitions.get(ctor) ?? null;\n }\n initialize(_root) {\n throw new Error(`customElements.initialize is not currently supported in SSR. ` +\n `Please file a bug if you need it.`);\n }\n upgrade(_element) {\n // In SSR this doesn't make a lot of sense, so we do nothing.\n throw new Error(`customElements.upgrade is not currently supported in SSR. ` +\n `Please file a bug if you need it.`);\n }\n async whenDefined(name) {\n const definition = this.__definitions.get(name);\n if (definition) {\n return definition.ctor;\n }\n let withResolvers = this.__pendingWhenDefineds.get(name);\n if (!withResolvers) {\n withResolvers = promiseWithResolvers();\n this.__pendingWhenDefineds.set(name, withResolvers);\n }\n return withResolvers.promise;\n }\n}\nconst CustomElementRegistryShimWithRealType = CustomElementRegistry;\nexport { CustomElementRegistryShimWithRealType as CustomElementRegistry };\nexport const customElements = new CustomElementRegistryShimWithRealType();\n// The window variable instantiation must happen after all shims\n// have been declared, as they will be included in the window instance.\nconst windowShim = new WindowShim(constructionToken);\nconst window = windowShim;\nexport { window };\n//# sourceMappingURL=index.js.map","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1],t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e||void 0===t.CSSStyleSheet?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{customElements as t,HTMLElement as s}from\"@lit-labs/ssr-dom-shim\";import{getCompatibleStyle as i,adoptStyles as e}from\"./css-tag.js\";export{CSSResult,css,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";const{is:h,defineProperty:r,getOwnPropertyDescriptor:o,getOwnPropertyNames:n,getOwnPropertySymbols:a,getPrototypeOf:c}=Object,l=globalThis;l.customElements??=t;const p=l.trustedTypes,d=p?p.emptyScript:\"\",u=l.reactiveElementPolyfillSupport,f=(t,s)=>t,b={toAttribute(t,s){switch(s){case Boolean:t=t?d:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},m=(t,s)=>!h(t,s),y={attribute:!0,type:String,converter:b,reflect:!1,useDefault:!1,hasChanged:m};Symbol.metadata??=Symbol(\"metadata\"),l.litPropertyMetadata??=new WeakMap;class g extends(globalThis.HTMLElement??s){static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),e=this.getPropertyDescriptor(t,i,s);void 0!==e&&r(this.prototype,t,e)}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=o(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const r=e?.call(this);h?.call(this,s),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(f(\"elementProperties\")))return;const t=c(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(f(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f(\"properties\"))){const t=this.properties,s=[...n(t),...a(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)s.unshift(i(t))}else void 0!==t&&s.push(i(t));return s}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return e(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:b).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:b;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null}}requestUpdate(t,s,i,e=!1,h){if(void 0!==t){const r=this.constructor;if(!1===e&&(h=this[t]),i??=r.getPropertyOptions(t),!((i.hasChanged??m)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}g.elementStyles=[],g.shadowRootOptions={mode:\"open\"},g[f(\"elementProperties\")]=new Map,g[f(\"finalized\")]=new Map,u?.({ReactiveElement:g}),(l.reactiveElementVersions??=[]).push(\"2.1.2\");export{g as ReactiveElement,e as adoptStyles,b as defaultConverter,i as getCompatibleStyle,m as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","import{notEqual as t,defaultConverter as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:e,reflect:!1,hasChanged:t},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),\"setter\"===n&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t,!0,r)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t,!0,r)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst e=(e,t,c)=>(c.configurable=!0,c.enumerable=!0,Reflect.decorate&&\"object\"!=typeof t&&Object.defineProperty(e,t,c),c);export{e as desc};\n//# sourceMappingURL=base.js.map\n","import{desc as t}from\"./base.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function e(e,r){return(n,s,i)=>{const o=t=>t.renderRoot?.querySelector(e)??null;if(r){const{get:e,set:r}=\"object\"==typeof s?n:i??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return t(n,s,{get(){let t=e.call(this);return void 0===t&&(t=o(this),(null!==t||this.hasUpdated)&&r.call(this,t)),t}})}return t(n,s,{get(){return o(this)}})}}export{e as query};\n//# sourceMappingURL=query.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,i=t=>t,s=t.trustedTypes,e=s?s.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,h=\"$lit$\",o=`lit$${Math.random().toFixed(9).slice(2)}$`,n=\"?\"+o,r=`<${n}>`,l=void 0===t.document?{createTreeWalker:()=>({})}:document,c=()=>l.createComment(\"\"),a=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,u=Array.isArray,d=t=>u(t)||\"function\"==typeof t?.[Symbol.iterator],f=\"[ \\t\\n\\f\\r]\",v=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,_=/-->/g,m=/>/g,p=RegExp(`>|${f}(?:([^\\\\s\"'>=/]+)(${f}*=${f}*(?:[^ \\t\\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),g=/'/g,$=/\"/g,y=/^(?:script|style|textarea|title)$/i,x=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),T=x(1),b=x(2),w=x(3),E=Symbol.for(\"lit-noChange\"),A=Symbol.for(\"lit-nothing\"),C=new WeakMap,P=l.createTreeWalker(l,129);function V(t,i){if(!u(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return void 0!==e?e.createHTML(i):i}const N=(t,i)=>{const s=t.length-1,e=[];let n,l=2===i?\"<svg>\":3===i?\"<math>\":\"\",c=v;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,f=0;for(;f<s.length&&(c.lastIndex=f,u=c.exec(s),null!==u);)f=c.lastIndex,c===v?\"!--\"===u[1]?c=_:void 0!==u[1]?c=m:void 0!==u[2]?(y.test(u[2])&&(n=RegExp(\"</\"+u[2],\"g\")),c=p):void 0!==u[3]&&(c=p):c===p?\">\"===u[0]?(c=n??v,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?p:'\"'===u[3]?$:g):c===$||c===g?c=p:c===_||c===m?c=v:(c=p,n=void 0);const x=c===p&&t[i+1].startsWith(\"/>\")?\" \":\"\";l+=c===v?s+r:d>=0?(e.push(a),s.slice(0,d)+h+s.slice(d)+o+x):s+o+(-2===d?i:x)}return[V(t,l+(t[s]||\"<?>\")+(2===i?\"</svg>\":3===i?\"</math>\":\"\")),e]};class S{constructor({strings:t,_$litType$:i},e){let r;this.parts=[];let l=0,a=0;const u=t.length-1,d=this.parts,[f,v]=N(t,i);if(this.el=S.createElement(f,e),P.currentNode=this.el.content,2===i||3===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=P.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(h)){const i=v[a++],s=r.getAttribute(t).split(o),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:l,name:e[2],strings:s,ctor:\".\"===e[1]?I:\"?\"===e[1]?L:\"@\"===e[1]?z:H}),r.removeAttribute(t)}else t.startsWith(o)&&(d.push({type:6,index:l}),r.removeAttribute(t));if(y.test(r.tagName)){const t=r.textContent.split(o),i=t.length-1;if(i>0){r.textContent=s?s.emptyScript:\"\";for(let s=0;s<i;s++)r.append(t[s],c()),P.nextNode(),d.push({type:2,index:++l});r.append(t[i],c())}}}else if(8===r.nodeType)if(r.data===n)d.push({type:2,index:l});else{let t=-1;for(;-1!==(t=r.data.indexOf(o,t+1));)d.push({type:7,index:l}),t+=o.length-1}l++}}static createElement(t,i){const s=l.createElement(\"template\");return s.innerHTML=t,s}}function M(t,i,s=t,e){if(i===E)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=a(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=M(t,h._$AS(t,i.values),h,e)),i}class k{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??l).importNode(i,!0);P.currentNode=e;let h=P.nextNode(),o=0,n=0,r=s[0];for(;void 0!==r;){if(o===r.index){let i;2===r.type?i=new R(h,h.nextSibling,this,t):1===r.type?i=new r.ctor(h,r.name,r.strings,this,t):6===r.type&&(i=new W(h,this,t)),this._$AV.push(i),r=s[++n]}o!==r?.index&&(h=P.nextNode(),o++)}return P.currentNode=l,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=M(this,t,i),a(t)?t===A||null==t||\"\"===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):d(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==A&&a(this._$AH)?this._$AA.nextSibling.data=t:this.T(l.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e=\"number\"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=S.createElement(V(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new k(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new S(t)),i}k(t){u(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(c()),this.O(c()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const s=i(t).nextSibling;i(t).remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=A}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=M(this,t,i,0),o=!a(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=M(this,e[s+n],i,n),r===E&&(r=this._$AH[n]),o||=!a(r)||r!==this._$AH[n],r===A?t=A:t!==A&&(t+=(r??\"\")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??\"\")}}class I extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===A?void 0:t}}class L extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A)}}class z extends H{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=M(this,t,i,0)??A)===E)return;const s=this._$AH,e=t===A&&s!==A||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==A&&(s===A||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){\"function\"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class W{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const Z={M:h,P:o,A:n,C:1,L:N,R:k,D:d,V:M,I:R,H,N:L,U:z,B:I,F:W},j=t.litHtmlPolyfillSupport;j?.(S,R),(t.litHtmlVersions??=[]).push(\"3.3.3\");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(c(),t),t,void 0,s??{})}return h._$AI(t),h};export{Z as _$LH,T as html,w as mathml,E as noChange,A as nothing,B as render,b as svg};\n//# sourceMappingURL=lit-html.js.map\n","import{ReactiveElement as t}from\"@lit/reactive-element\";export*from\"@lit/reactive-element\";import{render as e,noChange as r}from\"lit-html\";export*from\"lit-html\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const s=globalThis;class i extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=e(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return r}}i._$litElement$=!0,i[\"finalized\"]=!0,s.litElementHydrateSupport?.({LitElement:i});const o=s.litElementPolyfillSupport;o?.({LitElement:i});const n={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(s.litElementVersions??=[]).push(\"4.2.2\");export{i as LitElement,n as _$LE};\n//# sourceMappingURL=lit-element.js.map\n","/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { html, LitElement } from 'lit';\n/**\n * An icon element.\n */\nexport class Icon extends LitElement {\n render() {\n return html `<slot></slot>`;\n }\n connectedCallback() {\n super.connectedCallback();\n const ariaHidden = this.getAttribute('aria-hidden');\n if (ariaHidden === 'false') {\n // Allow the user to set `aria-hidden=\"false\"` to create an icon that is\n // announced by screenreaders.\n this.removeAttribute('aria-hidden');\n return;\n }\n // Needed for VoiceOver, which will create a \"group\" if the element is a\n // sibling to other content.\n this.setAttribute('aria-hidden', 'true');\n }\n}\n//# sourceMappingURL=icon.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./icon/internal/icon-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=icon-styles.cssresult.js.map","/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { customElement } from 'lit/decorators.js';\nimport { Icon } from './internal/icon.js';\nimport { styles } from './internal/icon-styles.cssresult.js';\n/**\n * @final\n * @suppress {visibility}\n */\nlet MdIcon = class MdIcon extends Icon {\n};\n/** @nocollapse */\nMdIcon.styles = [styles];\nMdIcon = __decorate([\n customElement('md-icon')\n], MdIcon);\nexport { MdIcon };\n//# sourceMappingURL=icon.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { isServer } from 'lit';\n/**\n * A key to retrieve an `Attachable` element's `AttachableController` from a\n * global `MutationObserver`.\n */\nconst ATTACHABLE_CONTROLLER = Symbol('attachableController');\nlet FOR_ATTRIBUTE_OBSERVER;\nif (!isServer) {\n /**\n * A global `MutationObserver` that reacts to `for` attribute changes on\n * `Attachable` elements. If the `for` attribute changes, the controller will\n * re-attach to the new referenced element.\n */\n FOR_ATTRIBUTE_OBSERVER = new MutationObserver((records) => {\n for (const record of records) {\n // When a control's `for` attribute changes, inform its\n // `AttachableController` to update to a new control.\n record.target[ATTACHABLE_CONTROLLER]?.hostConnected();\n }\n });\n}\n/**\n * A controller that provides an implementation for `Attachable` elements.\n *\n * @example\n * ```ts\n * class MyElement extends LitElement implements Attachable {\n * get control() { return this.attachableController.control; }\n *\n * private readonly attachableController = new AttachableController(\n * this,\n * (previousControl, newControl) => {\n * previousControl?.removeEventListener('click', this.handleClick);\n * newControl?.addEventListener('click', this.handleClick);\n * }\n * );\n *\n * // Implement remaining `Attachable` properties/methods that call the\n * // controller's properties/methods.\n * }\n * ```\n */\nexport class AttachableController {\n get htmlFor() {\n return this.host.getAttribute('for');\n }\n set htmlFor(htmlFor) {\n if (htmlFor === null) {\n this.host.removeAttribute('for');\n }\n else {\n this.host.setAttribute('for', htmlFor);\n }\n }\n get control() {\n if (this.host.hasAttribute('for')) {\n if (!this.htmlFor || !this.host.isConnected) {\n return null;\n }\n return this.host.getRootNode().querySelector(`#${this.htmlFor}`);\n }\n return this.currentControl || this.host.parentElement;\n }\n set control(control) {\n if (control) {\n this.attach(control);\n }\n else {\n this.detach();\n }\n }\n /**\n * Creates a new controller for an `Attachable` element.\n *\n * @param host The `Attachable` element.\n * @param onControlChange A callback with two parameters for the previous and\n * next control. An `Attachable` element may perform setup or teardown\n * logic whenever the control changes.\n */\n constructor(host, onControlChange) {\n this.host = host;\n this.onControlChange = onControlChange;\n this.currentControl = null;\n host.addController(this);\n host[ATTACHABLE_CONTROLLER] = this;\n FOR_ATTRIBUTE_OBSERVER?.observe(host, { attributeFilter: ['for'] });\n }\n attach(control) {\n if (control === this.currentControl) {\n return;\n }\n this.setCurrentControl(control);\n // When imperatively attaching, remove the `for` attribute so\n // that the attached control is used instead of a referenced one.\n this.host.removeAttribute('for');\n }\n detach() {\n this.setCurrentControl(null);\n // When imperatively detaching, add an empty `for=\"\"` attribute. This will\n // ensure the control is `null` rather than the `parentElement`.\n this.host.setAttribute('for', '');\n }\n /** @private */\n hostConnected() {\n this.setCurrentControl(this.control);\n }\n /** @private */\n hostDisconnected() {\n this.setCurrentControl(null);\n }\n setCurrentControl(control) {\n this.onControlChange(this.currentControl, control);\n this.currentControl = control;\n }\n}\n//# sourceMappingURL=attachable-controller.js.map","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { isServer, LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { AttachableController, } from '../../internal/controller/attachable-controller.js';\n/**\n * Events that the focus ring listens to.\n */\nconst EVENTS = ['focusin', 'focusout', 'pointerdown'];\n/**\n * A focus ring component.\n *\n * @fires visibility-changed {Event} Fired whenever `visible` changes.\n */\nexport class FocusRing extends LitElement {\n constructor() {\n super(...arguments);\n /**\n * Makes the focus ring visible.\n */\n this.visible = false;\n /**\n * Makes the focus ring animate inwards instead of outwards.\n */\n this.inward = false;\n this.attachableController = new AttachableController(this, this.onControlChange.bind(this));\n }\n get htmlFor() {\n return this.attachableController.htmlFor;\n }\n set htmlFor(htmlFor) {\n this.attachableController.htmlFor = htmlFor;\n }\n get control() {\n return this.attachableController.control;\n }\n set control(control) {\n this.attachableController.control = control;\n }\n attach(control) {\n this.attachableController.attach(control);\n }\n detach() {\n this.attachableController.detach();\n }\n connectedCallback() {\n super.connectedCallback();\n // Needed for VoiceOver, which will create a \"group\" if the element is a\n // sibling to other content.\n this.setAttribute('aria-hidden', 'true');\n }\n /** @private */\n handleEvent(event) {\n if (event[HANDLED_BY_FOCUS_RING]) {\n // This ensures the focus ring does not activate when multiple focus rings\n // are used within a single component.\n return;\n }\n switch (event.type) {\n default:\n return;\n case 'focusin':\n this.visible = this.control?.matches(':focus-visible') ?? false;\n break;\n case 'focusout':\n case 'pointerdown':\n this.visible = false;\n break;\n }\n event[HANDLED_BY_FOCUS_RING] = true;\n }\n onControlChange(prev, next) {\n if (isServer)\n return;\n for (const event of EVENTS) {\n prev?.removeEventListener(event, this);\n next?.addEventListener(event, this);\n }\n }\n update(changed) {\n if (changed.has('visible')) {\n // This logic can be removed once the `:has` selector has been introduced\n // to Firefox. This is necessary to allow correct submenu styles.\n this.dispatchEvent(new Event('visibility-changed'));\n }\n super.update(changed);\n }\n}\n__decorate([\n property({ type: Boolean, reflect: true })\n], FocusRing.prototype, \"visible\", void 0);\n__decorate([\n property({ type: Boolean, reflect: true })\n], FocusRing.prototype, \"inward\", void 0);\nconst HANDLED_BY_FOCUS_RING = Symbol('handledByFocusRing');\n//# sourceMappingURL=focus-ring.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./focus/internal/focus-ring-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=focus-ring-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 { FocusRing } from './internal/focus-ring.js';\nimport { styles } from './internal/focus-ring-styles.cssresult.js';\n/**\n * TODO(b/267336424): add docs\n *\n * @final\n * @suppress {visibility}\n */\nlet MdFocusRing = class MdFocusRing extends FocusRing {\n};\nMdFocusRing.styles = [styles];\nMdFocusRing = __decorate([\n customElement('md-focus-ring')\n], MdFocusRing);\nexport { MdFocusRing };\n//# sourceMappingURL=md-focus-ring.js.map","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n","import{noChange as t}from\"../lit-html.js\";import{directive as s,Directive as i,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const e=s(class extends i{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||t.strings?.length>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter(s=>t[s]).join(\" \")+\" \"}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(\" \").split(/\\s/).filter(t=>\"\"!==t)));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return t}});export{e as classMap};\n//# sourceMappingURL=class-map.js.map\n","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * Easing functions to use for web animations.\n *\n * **NOTE:** `EASING.EMPHASIZED` is approximated with unknown accuracy.\n *\n * TODO(b/241113345): replace with tokens\n */\nexport const EASING = {\n STANDARD: 'cubic-bezier(0.2, 0, 0, 1)',\n STANDARD_ACCELERATE: 'cubic-bezier(.3,0,1,1)',\n STANDARD_DECELERATE: 'cubic-bezier(0,0,0,1)',\n EMPHASIZED: 'cubic-bezier(.3,0,0,1)',\n EMPHASIZED_ACCELERATE: 'cubic-bezier(.3,0,.8,.15)',\n EMPHASIZED_DECELERATE: 'cubic-bezier(.05,.7,.1,1)',\n};\n/**\n * Creates an `AnimationSignal` that can be used to cancel a previous task.\n *\n * @example\n * class MyClass {\n * private labelAnimationSignal = createAnimationSignal();\n *\n * private async animateLabel() {\n * // Start of the task. Previous tasks will be canceled.\n * const signal = this.labelAnimationSignal.start();\n *\n * // Do async work...\n * if (signal.aborted) {\n * // Use AbortSignal to check if a request was made to abort after some\n * // asynchronous work.\n * return;\n * }\n *\n * const animation = this.animate(...);\n * // Add event listeners to be notified when the task should be canceled.\n * signal.addEventListener('abort', () => {\n * animation.cancel();\n * });\n *\n * animation.addEventListener('finish', () => {\n * // Tell the signal that the current task is finished.\n * this.labelAnimationSignal.finish();\n * });\n * }\n * }\n *\n * @return An `AnimationSignal`.\n */\nexport function createAnimationSignal() {\n // The current animation's AbortController\n let animationAbortController = null;\n return {\n start() {\n // Tell the previous animation to cancel.\n animationAbortController?.abort();\n // Set up a new AbortController for the current animation.\n animationAbortController = new AbortController();\n // Provide the AbortSignal so that the caller can check aborted status\n // and add listeners.\n return animationAbortController.signal;\n },\n finish() {\n animationAbortController = null;\n },\n };\n}\n/**\n * Returns a function which can be used to throttle function calls\n * mapped to a key via a given function that should produce a promise that\n * determines the throttle amount (defaults to requestAnimationFrame).\n */\nexport function createThrottle() {\n const stack = new Set();\n return async (key = '', cb, timeout = async () => {\n await new Promise(requestAnimationFrame);\n }) => {\n if (!stack.has(key)) {\n stack.add(key);\n await timeout();\n if (stack.has(key)) {\n stack.delete(key);\n cb();\n }\n }\n };\n}\n/**\n * Parses an number in milliseconds from a css time value\n */\nexport function msFromTimeCSSValue(value) {\n const match = value.trim().match(/([\\d.]+)(\\s*s$)?/);\n const time = match?.[1];\n const seconds = match?.[2];\n return Number(time ?? 0) * (seconds ? 1000 : 1);\n}\n//# sourceMappingURL=animation.js.map","/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { html, isServer, LitElement } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { AttachableController, } from '../../internal/controller/attachable-controller.js';\nimport { EASING } from '../../internal/motion/animation.js';\nconst PRESS_GROW_MS = 450;\nconst MINIMUM_PRESS_MS = 225;\nconst INITIAL_ORIGIN_SCALE = 0.2;\nconst PADDING = 10;\nconst SOFT_EDGE_MINIMUM_SIZE = 75;\nconst SOFT_EDGE_CONTAINER_RATIO = 0.35;\nconst PRESS_PSEUDO = '::after';\nconst ANIMATION_FILL = 'forwards';\n/**\n * Interaction states for the ripple.\n *\n * On Touch:\n * - `INACTIVE -> TOUCH_DELAY -> WAITING_FOR_CLICK -> INACTIVE`\n * - `INACTIVE -> TOUCH_DELAY -> HOLDING -> WAITING_FOR_CLICK -> INACTIVE`\n *\n * On Mouse or Pen:\n * - `INACTIVE -> WAITING_FOR_CLICK -> INACTIVE`\n */\nvar State;\n(function (State) {\n /**\n * Initial state of the control, no touch in progress.\n *\n * Transitions:\n * - on touch down: transition to `TOUCH_DELAY`.\n * - on mouse down: transition to `WAITING_FOR_CLICK`.\n */\n State[State[\"INACTIVE\"] = 0] = \"INACTIVE\";\n /**\n * Touch down has been received, waiting to determine if it's a swipe or\n * scroll.\n *\n * Transitions:\n * - on touch up: begin press; transition to `WAITING_FOR_CLICK`.\n * - on cancel: transition to `INACTIVE`.\n * - after `TOUCH_DELAY_MS`: begin press; transition to `HOLDING`.\n */\n State[State[\"TOUCH_DELAY\"] = 1] = \"TOUCH_DELAY\";\n /**\n * A touch has been deemed to be a press\n *\n * Transitions:\n * - on up: transition to `WAITING_FOR_CLICK`.\n */\n State[State[\"HOLDING\"] = 2] = \"HOLDING\";\n /**\n * The user touch has finished, transition into rest state.\n *\n * Transitions:\n * - on click end press; transition to `INACTIVE`.\n */\n State[State[\"WAITING_FOR_CLICK\"] = 3] = \"WAITING_FOR_CLICK\";\n})(State || (State = {}));\n/**\n * Events that the ripple listens to.\n */\nconst EVENTS = [\n 'click',\n 'contextmenu',\n 'pointercancel',\n 'pointerdown',\n 'pointerenter',\n 'pointerleave',\n 'pointerup',\n];\n/**\n * Delay reacting to touch so that we do not show the ripple for a swipe or\n * scroll interaction.\n */\nconst TOUCH_DELAY_MS = 150;\n/**\n * Used to detect if HCM is active. Events do not process during HCM when the\n * ripple is not displayed.\n */\nconst FORCED_COLORS = isServer\n ? null\n : window.matchMedia('(forced-colors: active)');\n/**\n * A ripple component.\n */\nexport class Ripple extends LitElement {\n constructor() {\n super(...arguments);\n /**\n * Disables the ripple.\n */\n this.disabled = false;\n this.hovered = false;\n this.pressed = false;\n this.rippleSize = '';\n this.rippleScale = '';\n this.initialSize = 0;\n this.state = State.INACTIVE;\n this.attachableController = new AttachableController(this, this.onControlChange.bind(this));\n }\n get htmlFor() {\n return this.attachableController.htmlFor;\n }\n set htmlFor(htmlFor) {\n this.attachableController.htmlFor = htmlFor;\n }\n get control() {\n return this.attachableController.control;\n }\n set control(control) {\n this.attachableController.control = control;\n }\n attach(control) {\n this.attachableController.attach(control);\n }\n detach() {\n this.attachableController.detach();\n }\n connectedCallback() {\n super.connectedCallback();\n // Needed for VoiceOver, which will create a \"group\" if the element is a\n // sibling to other content.\n this.setAttribute('aria-hidden', 'true');\n }\n render() {\n const classes = {\n 'hovered': this.hovered,\n 'pressed': this.pressed,\n };\n return html `<div class=\"surface ${classMap(classes)}\"></div>`;\n }\n update(changedProps) {\n if (changedProps.has('disabled') && this.disabled) {\n this.hovered = false;\n this.pressed = false;\n }\n super.update(changedProps);\n }\n /**\n * TODO(b/269799771): make private\n * @private only public for slider\n */\n handlePointerenter(event) {\n if (!this.shouldReactToEvent(event)) {\n return;\n }\n this.hovered = true;\n }\n /**\n * TODO(b/269799771): make private\n * @private only public for slider\n */\n handlePointerleave(event) {\n if (!this.shouldReactToEvent(event)) {\n return;\n }\n this.hovered = false;\n // release a held mouse or pen press that moves outside the element\n if (this.state !== State.INACTIVE) {\n this.endPressAnimation();\n }\n }\n handlePointerup(event) {\n if (!this.shouldReactToEvent(event)) {\n return;\n }\n if (this.state === State.HOLDING) {\n this.state = State.WAITING_FOR_CLICK;\n return;\n }\n if (this.state === State.TOUCH_DELAY) {\n this.state = State.WAITING_FOR_CLICK;\n this.startPressAnimation(this.rippleStartEvent);\n return;\n }\n }\n async handlePointerdown(event) {\n if (!this.shouldReactToEvent(event)) {\n return;\n }\n this.rippleStartEvent = event;\n if (!this.isTouch(event)) {\n this.state = State.WAITING_FOR_CLICK;\n this.startPressAnimation(event);\n return;\n }\n // Wait for a hold after touch delay\n this.state = State.TOUCH_DELAY;\n await new Promise((resolve) => {\n setTimeout(resolve, TOUCH_DELAY_MS);\n });\n if (this.state !== State.TOUCH_DELAY) {\n return;\n }\n this.state = State.HOLDING;\n this.startPressAnimation(event);\n }\n handleClick() {\n // Click is a MouseEvent in Firefox and Safari, so we cannot use\n // `shouldReactToEvent`\n if (this.disabled) {\n return;\n }\n if (this.state === State.WAITING_FOR_CLICK) {\n this.endPressAnimation();\n return;\n }\n if (this.state === State.INACTIVE) {\n // keyboard synthesized click event\n this.startPressAnimation();\n this.endPressAnimation();\n }\n }\n handlePointercancel(event) {\n if (!this.shouldReactToEvent(event)) {\n return;\n }\n this.endPressAnimation();\n }\n handleContextmenu() {\n if (this.disabled) {\n return;\n }\n this.endPressAnimation();\n }\n determineRippleSize() {\n const { height, width } = this.getBoundingClientRect();\n const maxDim = Math.max(height, width);\n const softEdgeSize = Math.max(SOFT_EDGE_CONTAINER_RATIO * maxDim, SOFT_EDGE_MINIMUM_SIZE);\n // `?? 1` may be removed once `currentCSSZoom` is widely available.\n const zoom = this.currentCSSZoom ?? 1;\n const initialSize = Math.floor((maxDim * INITIAL_ORIGIN_SCALE) / zoom);\n const hypotenuse = Math.sqrt(width ** 2 + height ** 2);\n const maxRadius = hypotenuse + PADDING;\n this.initialSize = initialSize;\n // The dimensions may be altered by CSS `zoom`, which needs to be\n // compensated for in the final scale() value.\n const maybeZoomedScale = (maxRadius + softEdgeSize) / initialSize;\n this.rippleScale = `${maybeZoomedScale / zoom}`;\n this.rippleSize = `${initialSize}px`;\n }\n getNormalizedPointerEventCoords(pointerEvent) {\n const { scrollX, scrollY } = window;\n const { left, top } = this.getBoundingClientRect();\n const documentX = scrollX + left;\n const documentY = scrollY + top;\n const { pageX, pageY } = pointerEvent;\n // `?? 1` may be removed once `currentCSSZoom` is widely available.\n const zoom = this.currentCSSZoom ?? 1;\n return {\n x: (pageX - documentX) / zoom,\n y: (pageY - documentY) / zoom,\n };\n }\n getTranslationCoordinates(positionEvent) {\n const { height, width } = this.getBoundingClientRect();\n // `?? 1` may be removed once `currentCSSZoom` is widely available.\n const zoom = this.currentCSSZoom ?? 1;\n // end in the center\n const endPoint = {\n x: (width / zoom - this.initialSize) / 2,\n y: (height / zoom - this.initialSize) / 2,\n };\n let startPoint;\n if (positionEvent instanceof PointerEvent) {\n startPoint = this.getNormalizedPointerEventCoords(positionEvent);\n }\n else {\n startPoint = {\n x: width / zoom / 2,\n y: height / zoom / 2,\n };\n }\n // center around start point\n startPoint = {\n x: startPoint.x - this.initialSize / 2,\n y: startPoint.y - this.initialSize / 2,\n };\n return { startPoint, endPoint };\n }\n startPressAnimation(positionEvent) {\n if (!this.mdRoot) {\n return;\n }\n this.pressed = true;\n this.growAnimation?.cancel();\n this.determineRippleSize();\n const { startPoint, endPoint } = this.getTranslationCoordinates(positionEvent);\n const translateStart = `${startPoint.x}px, ${startPoint.y}px`;\n const translateEnd = `${endPoint.x}px, ${endPoint.y}px`;\n this.growAnimation = this.mdRoot.animate({\n top: [0, 0],\n left: [0, 0],\n height: [this.rippleSize, this.rippleSize],\n width: [this.rippleSize, this.rippleSize],\n transform: [\n `translate(${translateStart}) scale(1)`,\n `translate(${translateEnd}) scale(${this.rippleScale})`,\n ],\n }, {\n pseudoElement: PRESS_PSEUDO,\n duration: PRESS_GROW_MS,\n easing: EASING.STANDARD,\n fill: ANIMATION_FILL,\n });\n }\n async endPressAnimation() {\n this.rippleStartEvent = undefined;\n this.state = State.INACTIVE;\n const animation = this.growAnimation;\n let pressAnimationPlayState = Infinity;\n if (typeof animation?.currentTime === 'number') {\n pressAnimationPlayState = animation.currentTime;\n }\n else if (animation?.currentTime) {\n pressAnimationPlayState = animation.currentTime.to('ms').value;\n }\n if (pressAnimationPlayState >= MINIMUM_PRESS_MS) {\n this.pressed = false;\n return;\n }\n await new Promise((resolve) => {\n setTimeout(resolve, MINIMUM_PRESS_MS - pressAnimationPlayState);\n });\n if (this.growAnimation !== animation) {\n // A new press animation was started. The old animation was canceled and\n // should not finish the pressed state.\n return;\n }\n this.pressed = false;\n }\n /**\n * Returns `true` if\n * - the ripple element is enabled\n * - the pointer is primary for the input type\n * - the pointer is the pointer that started the interaction, or will start\n * the interaction\n * - the pointer is a touch, or the pointer state has the primary button\n * held, or the pointer is hovering\n */\n shouldReactToEvent(event) {\n if (this.disabled || !event.isPrimary) {\n return false;\n }\n if (this.rippleStartEvent &&\n this.rippleStartEvent.pointerId !== event.pointerId) {\n return false;\n }\n if (event.type === 'pointerenter' || event.type === 'pointerleave') {\n return !this.isTouch(event);\n }\n const isPrimaryButton = event.buttons === 1;\n return this.isTouch(event) || isPrimaryButton;\n }\n isTouch({ pointerType }) {\n return pointerType === 'touch';\n }\n /** @private */\n async handleEvent(event) {\n if (FORCED_COLORS?.matches) {\n // Skip event logic since the ripple is `display: none`.\n return;\n }\n switch (event.type) {\n case 'click':\n this.handleClick();\n break;\n case 'contextmenu':\n this.handleContextmenu();\n break;\n case 'pointercancel':\n this.handlePointercancel(event);\n break;\n case 'pointerdown':\n await this.handlePointerdown(event);\n break;\n case 'pointerenter':\n this.handlePointerenter(event);\n break;\n case 'pointerleave':\n this.handlePointerleave(event);\n break;\n case 'pointerup':\n this.handlePointerup(event);\n break;\n default:\n break;\n }\n }\n onControlChange(prev, next) {\n if (isServer)\n return;\n for (const event of EVENTS) {\n prev?.removeEventListener(event, this);\n next?.addEventListener(event, this);\n }\n }\n}\n__decorate([\n property({ type: Boolean, reflect: true })\n], Ripple.prototype, \"disabled\", void 0);\n__decorate([\n state()\n], Ripple.prototype, \"hovered\", void 0);\n__decorate([\n state()\n], Ripple.prototype, \"pressed\", void 0);\n__decorate([\n query('.surface')\n], Ripple.prototype, \"mdRoot\", void 0);\n//# sourceMappingURL=ripple.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./ripple/internal/ripple-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:\"\";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=ripple-styles.cssresult.js.map","/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { customElement } from 'lit/decorators.js';\nimport { Ripple } from './internal/ripple.js';\nimport { styles } from './internal/ripple-styles.cssresult.js';\n/**\n * @summary Ripples, also known as state layers, are visual indicators used to\n * communicate the status of a component or interactive element.\n *\n * @description A state layer is a semi-transparent covering on an element that\n * indicates its state. State layers provide a systematic approach to\n * visualizing states by using opacity. A layer can be applied to an entire\n * element or in a circular shape and only one state layer can be applied at a\n * given time.\n *\n * @final\n * @suppress {visibility}\n */\nlet MdRipple = class MdRipple extends Ripple {\n};\nMdRipple.styles = [styles];\nMdRipple = __decorate([\n customElement('md-ripple')\n], MdRipple);\nexport { MdRipple };\n//# sourceMappingURL=ripple.js.map","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","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * Accessibility Object Model reflective aria properties.\n */\nexport const ARIA_PROPERTIES = [\n 'role',\n 'ariaAtomic',\n 'ariaAutoComplete',\n 'ariaBusy',\n 'ariaChecked',\n 'ariaColCount',\n 'ariaColIndex',\n 'ariaColSpan',\n 'ariaCurrent',\n 'ariaDisabled',\n 'ariaExpanded',\n 'ariaHasPopup',\n 'ariaHidden',\n 'ariaInvalid',\n 'ariaKeyShortcuts',\n 'ariaLabel',\n 'ariaLevel',\n 'ariaLive',\n 'ariaModal',\n 'ariaMultiLine',\n 'ariaMultiSelectable',\n 'ariaOrientation',\n 'ariaPlaceholder',\n 'ariaPosInSet',\n 'ariaPressed',\n 'ariaReadOnly',\n 'ariaRequired',\n 'ariaRoleDescription',\n 'ariaRowCount',\n 'ariaRowIndex',\n 'ariaRowSpan',\n 'ariaSelected',\n 'ariaSetSize',\n 'ariaSort',\n 'ariaValueMax',\n 'ariaValueMin',\n 'ariaValueNow',\n 'ariaValueText',\n];\n/**\n * Accessibility Object Model aria attributes.\n */\nexport const ARIA_ATTRIBUTES = ARIA_PROPERTIES.map(ariaPropertyToAttribute);\n/**\n * Checks if an attribute is one of the AOM aria attributes.\n *\n * @example\n * isAriaAttribute('aria-label'); // true\n *\n * @param attribute The attribute to check.\n * @return True if the attribute is an aria attribute, or false if not.\n */\nexport function isAriaAttribute(attribute) {\n return ARIA_ATTRIBUTES.includes(attribute);\n}\n/**\n * Converts an AOM aria property into its corresponding attribute.\n *\n * @example\n * ariaPropertyToAttribute('ariaLabel'); // 'aria-label'\n *\n * @param property The aria property.\n * @return The aria attribute.\n */\nexport function ariaPropertyToAttribute(property) {\n return property\n .replace('aria', 'aria-')\n // IDREF attributes also include an \"Element\" or \"Elements\" suffix\n .replace(/Elements?/g, '')\n .toLowerCase();\n}\n//# sourceMappingURL=aria.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { isServer } from 'lit';\nimport { ARIA_PROPERTIES, ariaPropertyToAttribute, isAriaAttribute, } from './aria.js';\n// Private symbols\nconst privateIgnoreAttributeChangesFor = Symbol('privateIgnoreAttributeChangesFor');\n/**\n * Mixes in aria delegation for elements that delegate focus and aria to inner\n * shadow root elements.\n *\n * This mixin fixes invalid aria announcements with shadow roots, caused by\n * duplicate aria attributes on both the host and the inner shadow root element.\n *\n * Note: this mixin **does not yet support** ID reference attributes, such as\n * `aria-labelledby` or `aria-controls`.\n *\n * @example\n * ```ts\n * class MyButton extends mixinDelegatesAria(LitElement) {\n * static shadowRootOptions = {mode: 'open', delegatesFocus: true};\n *\n * render() {\n * return html`\n * <button aria-label=${this.ariaLabel || nothing}>\n * <slot></slot>\n * </button>\n * `;\n * }\n * }\n * ```\n * ```html\n * <my-button aria-label=\"Plus one\">+1</my-button>\n * ```\n *\n * Use `ARIAMixinStrict` for lit analyzer strict types, such as the \"role\"\n * attribute.\n *\n * @example\n * ```ts\n * return html`\n * <button role=${(this as ARIAMixinStrict).role || nothing}>\n * <slot></slot>\n * </button>\n * `;\n * ```\n *\n * In the future, updates to the Accessibility Object Model (AOM) will provide\n * built-in aria delegation features that will replace this mixin.\n *\n * @param base The class to mix functionality into.\n * @return The provided class with aria delegation mixed in.\n */\nexport function mixinDelegatesAria(base) {\n var _a;\n if (isServer) {\n // Don't shift attributes when running with lit-ssr. The SSR renderer\n // implements a subset of DOM APIs, including the methods this mixin\n // overrides, causing errors. We don't need to shift on the server anyway\n // since elements will shift attributes immediately once they hydrate.\n return base;\n }\n class WithDelegatesAriaElement extends base {\n constructor() {\n super(...arguments);\n this[_a] = new Set();\n }\n attributeChangedCallback(name, oldValue, newValue) {\n if (!isAriaAttribute(name)) {\n super.attributeChangedCallback(name, oldValue, newValue);\n return;\n }\n if (this[privateIgnoreAttributeChangesFor].has(name)) {\n return;\n }\n // Don't trigger another `attributeChangedCallback` once we remove the\n // aria attribute from the host. We check the explicit name of the\n // attribute to ignore since `attributeChangedCallback` can be called\n // multiple times out of an expected order when hydrating an element with\n // multiple attributes.\n this[privateIgnoreAttributeChangesFor].add(name);\n this.removeAttribute(name);\n this[privateIgnoreAttributeChangesFor].delete(name);\n const dataProperty = ariaAttributeToDataProperty(name);\n if (newValue === null) {\n delete this.dataset[dataProperty];\n }\n else {\n this.dataset[dataProperty] = newValue;\n }\n this.requestUpdate(ariaAttributeToDataProperty(name), oldValue);\n }\n getAttribute(name) {\n if (isAriaAttribute(name)) {\n return super.getAttribute(ariaAttributeToDataAttribute(name));\n }\n return super.getAttribute(name);\n }\n removeAttribute(name) {\n super.removeAttribute(name);\n if (isAriaAttribute(name)) {\n super.removeAttribute(ariaAttributeToDataAttribute(name));\n // Since `aria-*` attributes are already removed`, we need to request\n // an update because `attributeChangedCallback` will not be called.\n this.requestUpdate();\n }\n }\n }\n _a = privateIgnoreAttributeChangesFor;\n setupDelegatesAriaProperties(WithDelegatesAriaElement);\n return WithDelegatesAriaElement;\n}\n/**\n * Overrides the constructor's native `ARIAMixin` properties to ensure that\n * aria properties reflect the values that were shifted to a data attribute.\n *\n * @param ctor The `ReactiveElement` constructor to patch.\n */\nfunction setupDelegatesAriaProperties(ctor) {\n for (const ariaProperty of ARIA_PROPERTIES) {\n // The casing between ariaProperty and the dataProperty may be different.\n // ex: aria-haspopup -> ariaHasPopup\n const ariaAttribute = ariaPropertyToAttribute(ariaProperty);\n // ex: aria-haspopup -> data-aria-haspopup\n const dataAttribute = ariaAttributeToDataAttribute(ariaAttribute);\n // ex: aria-haspopup -> dataset.ariaHaspopup\n const dataProperty = ariaAttributeToDataProperty(ariaAttribute);\n // Call `ReactiveElement.createProperty()` so that the `aria-*` and `data-*`\n // attributes are added to the `static observedAttributes` array. This\n // triggers `attributeChangedCallback` for the delegates aria mixin to\n // handle.\n ctor.createProperty(ariaProperty, {\n attribute: ariaAttribute,\n noAccessor: true,\n });\n ctor.createProperty(Symbol(dataAttribute), {\n attribute: dataAttribute,\n noAccessor: true,\n });\n // Re-define the `ARIAMixin` properties to handle data attribute shifting.\n // It is safe to use `Object.defineProperty` here because the properties\n // are native and not renamed.\n // tslint:disable-next-line:ban-unsafe-reflection\n Object.defineProperty(ctor.prototype, ariaProperty, {\n configurable: true,\n enumerable: true,\n get() {\n return this.dataset[dataProperty] ?? null;\n },\n set(value) {\n const prevValue = this.dataset[dataProperty] ?? null;\n if (value === prevValue) {\n return;\n }\n if (value === null) {\n delete this.dataset[dataProperty];\n }\n else {\n this.dataset[dataProperty] = value;\n }\n this.requestUpdate(ariaProperty, prevValue);\n },\n });\n }\n}\nfunction ariaAttributeToDataAttribute(ariaAttribute) {\n // aria-haspopup -> data-aria-haspopup\n return `data-${ariaAttribute}`;\n}\nfunction ariaAttributeToDataProperty(ariaAttribute) {\n // aria-haspopup -> dataset.ariaHaspopup\n return ariaAttribute.replace(/-\\w/, (dashLetter) => dashLetter[1].toUpperCase());\n}\n//# sourceMappingURL=delegate.js.map","/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * Returns `true` if the given element is in a right-to-left direction.\n *\n * @param el Element to determine direction from\n * @param shouldCheck Optional. If `false`, return `false` without checking\n * direction. Determining the direction of `el` is somewhat expensive, so\n * this parameter can be used as a conditional guard. Defaults to `true`.\n */\nexport function isRtl(el, shouldCheck = true) {\n return (shouldCheck &&\n getComputedStyle(el).getPropertyValue('direction').trim() === 'rtl');\n}\n//# sourceMappingURL=is-rtl.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * A symbol used to access dispatch hooks on an event.\n */\nconst dispatchHooks = Symbol('dispatchHooks');\n/**\n * Add a hook for an event that is called after the event is dispatched and\n * propagates to other event listeners.\n *\n * This is useful for behaviors that need to check if an event is canceled.\n *\n * The callback is invoked synchronously, which allows for better integration\n * with synchronous platform APIs (like `<form>` or `<label>` clicking).\n *\n * Note: `setupDispatchHooks()` must be called on the element before adding any\n * other event listeners. Call it in the constructor of an element or\n * controller.\n *\n * @example\n * ```ts\n * class MyControl extends LitElement {\n * constructor() {\n * super();\n * setupDispatchHooks(this, 'click');\n * this.addEventListener('click', event => {\n * afterDispatch(event, () => {\n * if (event.defaultPrevented) {\n * return\n * }\n *\n * // ... perform logic\n * });\n * });\n * }\n * }\n * ```\n *\n * @example\n * ```ts\n * class MyController implements ReactiveController {\n * constructor(host: ReactiveElement) {\n * // setupDispatchHooks() may be called multiple times for the same\n * // element and events, making it safe for multiple controllers to use it.\n * setupDispatchHooks(host, 'click');\n * host.addEventListener('click', event => {\n * afterDispatch(event, () => {\n * if (event.defaultPrevented) {\n * return;\n * }\n *\n * // ... perform logic\n * });\n * });\n * }\n * }\n * ```\n *\n * @param event The event to add a hook to.\n * @param callback A hook that is called after the event finishes dispatching.\n */\nexport function afterDispatch(event, callback) {\n const hooks = event[dispatchHooks];\n if (!hooks) {\n throw new Error(`'${event.type}' event needs setupDispatchHooks().`);\n }\n hooks.addEventListener('after', callback, { once: true });\n}\n/**\n * A lookup map of elements and event types that have a dispatch hook listener\n * set up. Used to ensure we don't set up multiple hook listeners on the same\n * element for the same event.\n */\nconst ELEMENT_DISPATCH_HOOK_TYPES = new WeakMap();\n/**\n * Sets up an element to add dispatch hooks to given event types. This must be\n * called before adding any event listeners that need to use dispatch hooks\n * like `afterDispatch()`.\n *\n * This function is safe to call multiple times with the same element or event\n * types. Call it in the constructor of elements, mixins, and controllers to\n * ensure it is set up before external listeners.\n *\n * @example\n * ```ts\n * class MyControl extends LitElement {\n * constructor() {\n * super();\n * setupDispatchHooks(this, 'click');\n * this.addEventListener('click', this.listenerUsingAfterDispatch);\n * }\n * }\n * ```\n *\n * @param element The element to set up event dispatch hooks for.\n * @param eventTypes The event types to add dispatch hooks to.\n */\nexport function setupDispatchHooks(element, ...eventTypes) {\n let typesAlreadySetUp = ELEMENT_DISPATCH_HOOK_TYPES.get(element);\n if (!typesAlreadySetUp) {\n typesAlreadySetUp = new Set();\n ELEMENT_DISPATCH_HOOK_TYPES.set(element, typesAlreadySetUp);\n }\n for (const eventType of eventTypes) {\n // Don't register multiple dispatch hook listeners. A second registration\n // would lead to the second listener calling `afterDispatch()` hooks twice.\n if (typesAlreadySetUp.has(eventType)) {\n continue;\n }\n element.addEventListener(eventType, (event) => {\n // Add hooks onto the event.\n const hooks = new EventTarget();\n event[dispatchHooks] = hooks;\n const cleanupLastNodeListener = new AbortController();\n const callAfterDispatch = () => {\n cleanupLastNodeListener.abort();\n hooks.dispatchEvent(new Event('after'));\n };\n const patchStopPropagation = (superMethod) => {\n return function () {\n superMethod.call(this);\n // Synchronously call afterDispatch() hooks when interrupted.\n callAfterDispatch();\n };\n };\n event.stopPropagation = patchStopPropagation(event.stopPropagation);\n event.stopImmediatePropagation = patchStopPropagation(event.stopImmediatePropagation);\n // Add an event listener to detect the end of the event's propagation.\n const composedPath = event.composedPath();\n let lastNodeForEvent;\n if (event.composed && event.bubbles) {\n lastNodeForEvent = composedPath[composedPath.length - 1];\n }\n else if (!event.bubbles) {\n lastNodeForEvent = composedPath[0];\n }\n else {\n lastNodeForEvent = composedPath[0].getRootNode();\n }\n lastNodeForEvent.addEventListener(eventType, () => {\n // Synchronously call afterDispatch() hooks.\n callAfterDispatch();\n }, { once: true, signal: cleanupLastNodeListener.signal });\n }, {\n // Ensure this listener runs before other listeners.\n // `setupDispatchHooks()` should be called in constructors to also\n // ensure they run before any other externally-added capture listeners.\n capture: true,\n });\n typesAlreadySetUp.add(eventType);\n }\n}\n//# sourceMappingURL=dispatch-hooks.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * A unique symbol used for protected access to an instance's\n * `ElementInternals`.\n *\n * @example\n * ```ts\n * class MyElement extends mixinElementInternals(LitElement) {\n * constructor() {\n * super();\n * this[internals].role = 'button';\n * }\n * }\n * ```\n */\nexport const internals = Symbol('internals');\n// Private symbols\nconst privateInternals = Symbol('privateInternals');\n/**\n * Mixes in an attached `ElementInternals` instance.\n *\n * This mixin is only needed when other shared code needs access to a\n * component's `ElementInternals`, such as form-associated mixins.\n *\n * @param base The class to mix functionality into.\n * @return The provided class with `WithElementInternals` mixed in.\n */\nexport function mixinElementInternals(base) {\n class WithElementInternalsElement extends base {\n get [internals]() {\n // Create internals in getter so that it can be used in methods called on\n // construction in `ReactiveElement`, such as `requestUpdate()`.\n if (!this[privateInternals]) {\n // Cast needed for closure\n this[privateInternals] = this.attachInternals();\n }\n return this[privateInternals];\n }\n }\n return WithElementInternalsElement;\n}\n//# sourceMappingURL=element-internals.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { property } from 'lit/decorators.js';\nimport { internals } from './element-internals.js';\n/**\n * A symbol property to retrieve the form value for an element.\n */\nexport const getFormValue = Symbol('getFormValue');\n/**\n * A symbol property to retrieve the form state for an element.\n */\nexport const getFormState = Symbol('getFormState');\n/**\n * Mixes in form-associated behavior for a class. This allows an element to add\n * values to `<form>` elements.\n *\n * Implementing classes should provide a `[formValue]` to return the current\n * value of the element, as well as reset and restore callbacks.\n *\n * @example\n * ```ts\n * const base = mixinFormAssociated(mixinElementInternals(LitElement));\n *\n * class MyControl extends base {\n * \\@property()\n * value = '';\n *\n * override [getFormValue]() {\n * return this.value;\n * }\n *\n * override formResetCallback() {\n * const defaultValue = this.getAttribute('value');\n * this.value = defaultValue;\n * }\n *\n * override formStateRestoreCallback(state: string) {\n * this.value = state;\n * }\n * }\n * ```\n *\n * Elements may optionally provide a `[formState]` if their values do not\n * represent the state of the component.\n *\n * @example\n * ```ts\n * const base = mixinFormAssociated(mixinElementInternals(LitElement));\n *\n * class MyCheckbox extends base {\n * \\@property()\n * value = 'on';\n *\n * \\@property({type: Boolean})\n * checked = false;\n *\n * override [getFormValue]() {\n * return this.checked ? this.value : null;\n * }\n *\n * override [getFormState]() {\n * return String(this.checked);\n * }\n *\n * override formResetCallback() {\n * const defaultValue = this.hasAttribute('checked');\n * this.checked = defaultValue;\n * }\n *\n * override formStateRestoreCallback(state: string) {\n * this.checked = Boolean(state);\n * }\n * }\n * ```\n *\n * @param base The class to mix functionality into. The base class must use\n * `mixinElementInternals()`.\n * @return The provided class with `FormAssociated` mixed in.\n */\nexport function mixinFormAssociated(base) {\n class FormAssociatedElement extends base {\n get form() {\n return this[internals].form;\n }\n get labels() {\n return this[internals].labels;\n }\n // Use @property for the `name` and `disabled` properties to add them to the\n // `observedAttributes` array and trigger `attributeChangedCallback()`.\n //\n // We don't use Lit's default getter/setter (`noAccessor: true`) because\n // the attributes need to be updated synchronously to work with synchronous\n // form APIs, and Lit updates attributes async by default.\n get name() {\n return this.getAttribute('name') ?? '';\n }\n set name(name) {\n // Note: setting name to null or empty does not remove the attribute.\n this.setAttribute('name', name);\n // We don't need to call `requestUpdate()` since it's called synchronously\n // in `attributeChangedCallback()`.\n }\n get disabled() {\n return this.hasAttribute('disabled');\n }\n set disabled(disabled) {\n // Coerce `disabled` in `Boolean()` to ensure that setting to `null` or\n // `undefined` sets the attribute to `false`.\n this.toggleAttribute('disabled', Boolean(disabled));\n // We don't need to call `requestUpdate()` since it's called synchronously\n // in `attributeChangedCallback()`.\n }\n attributeChangedCallback(name, old, value) {\n // Manually `requestUpdate()` for `name` and `disabled` when their\n // attribute or property changes.\n // The properties update their attributes, so this callback is invoked\n // immediately when the properties are set. We call `requestUpdate()` here\n // instead of letting Lit set the properties from the attribute change.\n // That would cause the properties to re-set the attribute and invoke this\n // callback again in a loop. This leads to stale state when Lit tries to\n // determine if a property changed or not.\n if (name === 'name' || name === 'disabled') {\n // Disabled's value is only false if the attribute is missing and null.\n const oldValue = name === 'disabled' ? old !== null : old;\n // Trigger a lit update when the attribute changes.\n this.requestUpdate(name, oldValue);\n return;\n }\n super.attributeChangedCallback(name, old, value);\n }\n requestUpdate(name, oldValue, options) {\n super.requestUpdate(name, oldValue, options);\n // If any properties change, update the form value, which may have changed\n // as well.\n // Update the form value synchronously in `requestUpdate()` rather than\n // `update()` or `updated()`, which are async. This is necessary to ensure\n // that form data is updated in time for synchronous event listeners.\n this[internals].setFormValue(this[getFormValue](), this[getFormState]());\n }\n [getFormValue]() {\n return this.getAttribute('value');\n }\n [getFormState]() {\n return this[getFormValue]();\n }\n formDisabledCallback(disabled) {\n this.disabled = disabled;\n }\n }\n /** @nocollapse */\n FormAssociatedElement.formAssociated = true;\n __decorate([\n property({ noAccessor: true })\n ], FormAssociatedElement.prototype, \"name\", null);\n __decorate([\n property({ type: Boolean, noAccessor: true })\n ], FormAssociatedElement.prototype, \"disabled\", null);\n return FormAssociatedElement;\n}\n//# sourceMappingURL=form-associated.js.map","/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { isServer } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { afterDispatch, setupDispatchHooks, } from '../../internal/events/dispatch-hooks.js';\nimport { internals } from './element-internals.js';\n/**\n * Mixes in form submitter behavior for a class.\n *\n * A click listener is added to each element instance. If the click is not\n * default prevented, it will submit the element's form, if any.\n *\n * @example\n * ```ts\n * const base = mixinFormSubmitter(mixinElementInternals(LitElement));\n * class MyButton extends base {\n * static formAssociated = true;\n * }\n * ```\n *\n * @param base The class to mix functionality into.\n * @return The provided class with `FormSubmitter` mixed in.\n */\nexport function mixinFormSubmitter(base) {\n class FormSubmitterElement extends base {\n // Name attribute must reflect synchronously for form integration.\n get name() {\n return this.getAttribute('name') ?? '';\n }\n set name(name) {\n this.setAttribute('name', name);\n }\n // Mixins must have a constructor with `...args: any[]`\n // tslint:disable-next-line:no-any\n constructor(...args) {\n super(...args);\n this.type = 'submit';\n this.value = '';\n if (isServer)\n return;\n setupDispatchHooks(this, 'click');\n this.addEventListener('click', async (event) => {\n const isReset = this.type === 'reset';\n const isSubmit = this.type === 'submit';\n const elementInternals = this[internals];\n const { form } = elementInternals;\n if (!form || !(isSubmit || isReset)) {\n return;\n }\n afterDispatch(event, () => {\n if (event.defaultPrevented) {\n return;\n }\n if (isReset) {\n form.reset();\n return;\n }\n // form.requestSubmit(submitter) does not work with form associated custom\n // elements. This patches the dispatched submit event to add the correct\n // `submitter`.\n // See https://github.com/WICG/webcomponents/issues/814\n form.addEventListener('submit', (submitEvent) => {\n Object.defineProperty(submitEvent, 'submitter', {\n configurable: true,\n enumerable: true,\n get: () => this,\n });\n }, { capture: true, once: true });\n elementInternals.setFormValue(this.value);\n form.requestSubmit();\n });\n });\n }\n }\n __decorate([\n property()\n ], FormSubmitterElement.prototype, \"type\", void 0);\n __decorate([\n property({ reflect: true })\n ], FormSubmitterElement.prototype, \"value\", void 0);\n return FormSubmitterElement;\n}\n//# sourceMappingURL=form-submitter.js.map","/**\n * @license\n * Copyright 2018 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, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { literal, html as staticHtml } from 'lit/static-html.js';\nimport { mixinDelegatesAria } from '../../internal/aria/delegate.js';\nimport { isRtl } from '../../internal/controller/is-rtl.js';\nimport { afterDispatch, setupDispatchHooks, } from '../../internal/events/dispatch-hooks.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 iconButtonBaseClass = mixinDelegatesAria(mixinFormSubmitter(mixinFormAssociated(mixinElementInternals(LitElement))));\n/**\n * A button for rendering icons.\n *\n * @fires input {InputEvent} Dispatched when a toggle button toggles --bubbles\n * --composed\n * @fires change {Event} Dispatched when a toggle button toggles --bubbles\n */\nexport class IconButton extends iconButtonBaseClass {\n constructor() {\n super();\n /**\n * \"Soft-disables\" the icon button (disabled but still focusable).\n *\n * Use this when an icon 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 * Flips the icon if it is in an RTL context at startup.\n */\n this.flipIconInRtl = false;\n /**\n * Sets the underlying `HTMLAnchorElement`'s `href` resource attribute.\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 icon button is used as a link (`href` is set).\n */\n this.download = '';\n /**\n * Sets the underlying `HTMLAnchorElement`'s `target` attribute.\n */\n this.target = '';\n /**\n * The `aria-label` of the button when the button is toggleable and selected.\n */\n this.ariaLabelSelected = '';\n /**\n * When true, the button will toggle between selected and unselected\n * states\n */\n this.toggle = false;\n /**\n * Sets the selected state. When false, displays the default icon. When true,\n * displays the selected icon, or the default icon If no `slot=\"selected\"`\n * icon is provided.\n */\n this.selected = false;\n this.flipIcon = isRtl(this, this.flipIconInRtl);\n if (isServer)\n return;\n setupDispatchHooks(this, 'click');\n this.addEventListener('click', (event) => {\n // If the button is soft-disabled or a disabled link, we need to\n // explicitly prevent the click from propagating to other event listeners\n // as well as prevent the default action. This is because the underlying\n // `<button>` or `<a>` element is not actually `:disabled`.\n if (this.softDisabled || (this.disabled && this.href)) {\n event.stopImmediatePropagation();\n event.preventDefault();\n return;\n }\n // Save current selected state to toggle, since an external event listener\n // may also change the selected state on click.\n const wasSelected = this.selected;\n afterDispatch(event, () => {\n if (!this.toggle || this.disabled || event.defaultPrevented) {\n return;\n }\n this.selected = !wasSelected;\n this.dispatchEvent(new InputEvent('input', { bubbles: true, composed: true }));\n // Bubbles but does not compose to mimic native browser <input> & <select>\n // Additionally, native change event is not an InputEvent.\n this.dispatchEvent(new Event('change', { bubbles: true }));\n });\n });\n }\n willUpdate() {\n // Link buttons cannot be disabled or soft-disabled.\n if (this.href) {\n this.disabled = false;\n this.softDisabled = false;\n }\n }\n render() {\n const tag = this.href ? literal `div` : literal `button`;\n // Needed for closure conformance\n const { ariaLabel, ariaHasPopup, ariaExpanded } = this;\n const hasToggledAriaLabel = ariaLabel && this.ariaLabelSelected;\n const ariaPressedValue = !this.toggle ? nothing : this.selected;\n let ariaLabelValue = nothing;\n if (!this.href) {\n ariaLabelValue =\n hasToggledAriaLabel && this.selected\n ? this.ariaLabelSelected\n : ariaLabel;\n }\n return staticHtml `<${tag}\n class=\"icon-button ${classMap(this.getRenderClasses())}\"\n id=\"button\"\n aria-label=\"${ariaLabelValue || nothing}\"\n aria-haspopup=\"${(!this.href && ariaHasPopup) || nothing}\"\n aria-expanded=\"${(!this.href && ariaExpanded) || nothing}\"\n aria-pressed=\"${ariaPressedValue}\"\n aria-disabled=${(!this.href && this.softDisabled) || nothing}\n ?disabled=\"${!this.href && this.disabled}\">\n ${this.renderFocusRing()}\n ${this.renderRipple()}\n ${!this.selected ? this.renderIcon() : nothing}\n ${this.selected ? this.renderSelectedIcon() : nothing}\n ${this.href ? this.renderLink() : this.renderTouchTarget()}\n </${tag}>`;\n }\n renderLink() {\n // Needed for closure conformance\n const { ariaLabel } = this;\n return html `\n <a\n class=\"link\"\n id=\"link\"\n href=\"${this.href}\"\n download=\"${this.download || nothing}\"\n target=\"${this.target || nothing}\"\n aria-label=\"${ariaLabel || nothing}\">\n ${this.renderTouchTarget()}\n </a>\n `;\n }\n getRenderClasses() {\n return {\n 'flip-icon': this.flipIcon,\n 'selected': this.toggle && this.selected,\n };\n }\n renderIcon() {\n return html `<span class=\"icon\"><slot></slot></span>`;\n }\n renderSelectedIcon() {\n // Use default slot as fallback to not require specifying multiple icons\n return html `<span class=\"icon icon--selected\"\n ><slot name=\"selected\"><slot></slot></slot\n ></span>`;\n }\n renderTouchTarget() {\n return html `<span class=\"touch\"></span>`;\n }\n renderFocusRing() {\n // TODO(b/310046938): use the same id for both elements\n return html `<md-focus-ring\n part=\"focus-ring\"\n for=${this.href ? 'link' : 'button'}></md-focus-ring>`;\n }\n renderRipple() {\n const isRippleDisabled = !this.href && (this.disabled || this.softDisabled);\n // TODO(b/310046938): use the same id for both elements\n return html `<md-ripple\n for=${this.href ? 'link' : nothing}\n ?disabled=\"${isRippleDisabled}\"></md-ripple>`;\n }\n connectedCallback() {\n this.flipIcon = isRtl(this, this.flipIconInRtl);\n super.connectedCallback();\n }\n}\n/** @nocollapse */\nIconButton.shadowRootOptions = {\n mode: 'open',\n delegatesFocus: true,\n};\n__decorate([\n property({ type: Boolean, attribute: 'soft-disabled', reflect: true })\n], IconButton.prototype, \"softDisabled\", void 0);\n__decorate([\n property({ type: Boolean, attribute: 'flip-icon-in-rtl' })\n], IconButton.prototype, \"flipIconInRtl\", void 0);\n__decorate([\n property()\n], IconButton.prototype, \"href\", void 0);\n__decorate([\n property()\n], IconButton.prototype, \"download\", void 0);\n__decorate([\n property()\n], IconButton.prototype, \"target\", void 0);\n__decorate([\n property({ attribute: 'aria-label-selected' })\n], IconButton.prototype, \"ariaLabelSelected\", void 0);\n__decorate([\n property({ type: Boolean })\n], IconButton.prototype, \"toggle\", void 0);\n__decorate([\n property({ type: Boolean, reflect: true })\n], IconButton.prototype, \"selected\", void 0);\n__decorate([\n state()\n], IconButton.prototype, \"flipIcon\", void 0);\n//# sourceMappingURL=icon-button.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./iconbutton/internal/shared-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}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])){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;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)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;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)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{display:grid;height:100%;outline:none;place-items:center;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1}}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=shared-styles.cssresult.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./iconbutton/internal/standard-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:is(:disabled,[aria-disabled=true]){color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:is(:disabled,[aria-disabled=true]){opacity:var(--_disabled-icon-opacity)}.selected:not(:disabled,[aria-disabled=true]){color:var(--_selected-icon-color)}.selected:not(:disabled,[aria-disabled=true]):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled,[aria-disabled=true]):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled,[aria-disabled=true]):active{color:var(--_selected-pressed-icon-color)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=standard-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 { IconButton } from './internal/icon-button.js';\nimport { styles as sharedStyles } from './internal/shared-styles.cssresult.js';\nimport { styles } from './internal/standard-styles.cssresult.js';\n/**\n * @summary Icon buttons help people take supplementary actions with a single\n * tap.\n *\n * @description\n * __Emphasis:__ Low emphasis – For optional or supplementary actions with the\n * least amount of prominence.\n *\n * __Rationale:__ The most compact and unobtrusive type of button, icon buttons\n * are used for optional supplementary actions such as \"Bookmark\" or \"Star.\"\n *\n * __Example usages:__\n * - Add to Favorites\n * - Print\n *\n * @final\n * @suppress {visibility}\n */\nlet MdIconButton = class MdIconButton extends IconButton {\n getRenderClasses() {\n return {\n ...super.getRenderClasses(),\n 'standard': true,\n };\n }\n};\nMdIconButton.styles = [sharedStyles, styles];\nMdIconButton = __decorate([\n customElement('md-icon-button')\n], MdIconButton);\nexport { MdIconButton };\n//# sourceMappingURL=icon-button.js.map","export type Theme = 'light' | 'dark';\n\nexport const DEFAULT_THEME: Theme = 'light';\n\n/** Where the chosen theme is remembered and applied (the browser adapter implements it). */\nexport interface ThemeStorage {\n /** The saved choice, or `null` when there is none or it can't be read. */\n read(): Theme | null;\n /** Remember the choice and make it take effect. */\n write(theme: Theme): void;\n}\n\nexport function parseTheme(raw: unknown): Theme | null {\n return raw === 'light' || raw === 'dark' ? raw : null;\n}\n\nexport function toggleTheme(theme: Theme): Theme {\n return theme === 'light' ? 'dark' : 'light';\n}\n","import { parseTheme, type Theme, type ThemeStorage } from '#lib/core/theme.js';\n\nexport const THEME_STORAGE_KEY = 'sr-theme';\n\n/** Keeps the theme in `localStorage` and applies it as `data-theme` on `<html>`. */\nexport class BrowserThemeStorage implements ThemeStorage {\n read(): Theme | null {\n try {\n return parseTheme(localStorage.getItem(THEME_STORAGE_KEY));\n } catch {\n return null; // blocked storage, or running on the server\n }\n }\n\n write(theme: Theme): void {\n document.documentElement.dataset.theme = theme;\n try {\n localStorage.setItem(THEME_STORAGE_KEY, theme);\n } catch {\n // the theme still applies for this page view\n }\n }\n}\n","import type { SpeechApi } from '#lib/core/speech.js';\n\n/** Changes the speech through the UI's own markers route (`url` includes the base path). */\nexport class HttpSpeechApi implements SpeechApi {\n constructor(private readonly url: string) {}\n\n async addMarker(label: string): Promise<void> {\n const response = await fetch(this.url, {\n method: 'POST',\n headers: { accept: 'application/json', 'content-type': 'application/json' },\n body: JSON.stringify({ label }),\n });\n if (!response.ok) throw new Error(await errorMessage(response));\n }\n}\n\n/** SvelteKit's `error()` answers `{ message }`; fall back to the status. */\nasync function errorMessage(response: Response): Promise<string> {\n const body: unknown = await response.json().catch(() => undefined);\n if (typeof body === 'object' && body !== null && 'message' in body) {\n const { message } = body;\n if (typeof message === 'string') return message;\n }\n return `The request answered ${response.status}`;\n}\n","import {\n checkDto,\n SessionListSchema,\n StartSessionResponseSchema,\n type DtoOf,\n type DtoSchema,\n type SessionListDto,\n type StartSessionResponseDto,\n} from '@screenreader-speech-capture/shared';\nimport type { SessionsApi } from '#lib/core/sessions.js';\n\n/** Reads and changes sessions through the UI's own sessions routes (`url` includes the base path). */\nexport class HttpSessionsApi implements SessionsApi {\n constructor(private readonly url: string) {}\n\n list(): Promise<SessionListDto> {\n return this.send('GET', this.url, undefined, SessionListSchema);\n }\n\n start(name: string, run: string | null): Promise<StartSessionResponseDto> {\n return this.send('POST', this.url, { name, run }, StartSessionResponseSchema);\n }\n\n async end(): Promise<void> {\n await this.send('POST', `${this.url}/end`, undefined, undefined);\n }\n\n private async send<S extends DtoSchema>(\n method: 'GET' | 'POST',\n url: string,\n body: unknown,\n schema: S | undefined,\n ): Promise<DtoOf<S>> {\n const response = await fetch(url, {\n method,\n headers: {\n accept: 'application/json',\n ...(body === undefined ? {} : { 'content-type': 'application/json' }),\n },\n body: body === undefined ? undefined : JSON.stringify(body),\n });\n if (!response.ok) throw new Error(await errorMessage(response));\n if (schema === undefined) return undefined;\n const checked = checkDto(schema, await response.json());\n if (!checked.ok) throw new Error(`Unexpected answer at ${checked.field}: ${checked.message}`);\n return checked.value;\n }\n}\n\n/** SvelteKit's `error()` answers `{ message }`; fall back to the status. */\nasync function errorMessage(response: Response): Promise<string> {\n const body: unknown = await response.json().catch(() => undefined);\n if (typeof body === 'object' && body !== null && 'message' in body) {\n const { message } = body;\n if (typeof message === 'string') return message;\n }\n return `The request answered ${response.status}`;\n}\n","import { checkDto, SpeechEntrySchema, SpeechListSchema } from '@screenreader-speech-capture/shared';\nimport type { SessionScope } from '#lib/core/sessions.js';\nimport type { SpeechFeed, SpeechFeedHandlers } from '#lib/core/speech.js';\n\n/** Entries read per request when an ended session is read page by page. */\nconst PAGE_SIZE = 1000;\n\n/**\n * Reads the speech of a scope through the UI's own routes (`urls` include the base path):\n * - A live scope is followed on the stream relay with `?since=0`, so the bridge replays the\n * buffer first. `EventSource` reconnects by itself and sends `Last-Event-ID`, so a drop only\n * shows as `reconnecting` and the missed entries are replayed.\n * - An ended session never gets new entries: it is read page by page, once, without a stream.\n */\nexport class SseSpeechFeed implements SpeechFeed {\n constructor(\n private readonly streamUrl: string,\n private readonly speechUrl: string,\n ) {}\n\n open(scope: SessionScope, live: boolean, handlers: SpeechFeedHandlers): () => void {\n handlers.onState('connecting');\n return live ? this.follow(scope, handlers) : this.read(scope, handlers);\n }\n\n private follow(scope: SessionScope, handlers: SpeechFeedHandlers): () => void {\n const source = new EventSource(\n `${this.streamUrl}?session=${encodeURIComponent(String(scope))}&since=0`,\n );\n source.onopen = () => handlers.onState('live');\n source.onerror = () => handlers.onState('reconnecting');\n source.addEventListener('entry', (event) => {\n let data: unknown;\n try {\n data = JSON.parse((event as MessageEvent<string>).data);\n } catch {\n return;\n }\n const checked = checkDto(SpeechEntrySchema, data);\n if (checked.ok) handlers.onEntry(checked.value);\n });\n source.addEventListener('clear', () => handlers.onClear());\n return () => source.close();\n }\n\n private read(scope: SessionScope, handlers: SpeechFeedHandlers): () => void {\n const abort = new AbortController();\n const load = async (): Promise<void> => {\n let since = 0;\n for (;;) {\n const query = new URLSearchParams({\n session: String(scope),\n since: String(since),\n limit: String(PAGE_SIZE),\n });\n const response = await fetch(`${this.speechUrl}?${query}`, {\n headers: { accept: 'application/json' },\n signal: abort.signal,\n });\n if (!response.ok) throw new Error(`The request answered ${response.status}`);\n const checked = checkDto(SpeechListSchema, await response.json());\n if (!checked.ok) throw new Error(`Unexpected answer at ${checked.field}`);\n const { entries, hasMore } = checked.value;\n handlers.onEntries(entries);\n const last = entries.at(-1);\n if (!hasMore || last === undefined) return;\n since = last.seq;\n }\n };\n load().then(\n () => handlers.onState('ended'),\n () => {\n if (!abort.signal.aborted) handlers.onState('failed');\n },\n );\n return () => abort.abort();\n }\n}\n","import { checkDto, StatusSchema, type StatusDto } from '@screenreader-speech-capture/shared';\nimport type { StatusApi } from '#lib/core/status.js';\n\n/** Reads the bridge status through the UI's own status route (`url` includes the base path). */\nexport class HttpStatusApi implements StatusApi {\n constructor(private readonly url: string) {}\n\n async fetch(): Promise<StatusDto> {\n const response = await fetch(this.url, { headers: { accept: 'application/json' } });\n if (!response.ok) throw new Error(`The status request answered ${response.status}`);\n const checked = checkDto(StatusSchema, await response.json());\n if (!checked.ok) throw new Error(`Unexpected status at ${checked.field}: ${checked.message}`);\n return checked.value;\n }\n}\n","/** Where the sessions pane's collapsed choice is kept. */\nexport interface SessionsPaneStorage {\n /** `null` when nothing is saved or the storage is not available. */\n read(): boolean | null;\n write(collapsed: boolean): void;\n}\n\n/** Parses the stored text; anything but `'1'` / `'0'` counts as no choice. */\nexport function parseCollapsed(raw: string | null): boolean | null {\n if (raw === '1') return true;\n if (raw === '0') return false;\n return null;\n}\n\nexport function serializeCollapsed(collapsed: boolean): string {\n return collapsed ? '1' : '0';\n}\n","import {\n parseCollapsed,\n serializeCollapsed,\n type SessionsPaneStorage,\n} from '#lib/core/sessions-pane.js';\n\nexport const SESSIONS_PANE_STORAGE_KEY = 'sr-sessions-collapsed';\n\n/** Keeps the sessions pane's collapsed choice in `localStorage`. */\nexport class BrowserSessionsPaneStorage implements SessionsPaneStorage {\n read(): boolean | null {\n try {\n return parseCollapsed(localStorage.getItem(SESSIONS_PANE_STORAGE_KEY));\n } catch {\n return null; // blocked storage, or running on the server\n }\n }\n\n write(collapsed: boolean): void {\n try {\n localStorage.setItem(SESSIONS_PANE_STORAGE_KEY, serializeCollapsed(collapsed));\n } catch {\n // the choice still applies for this page view\n }\n }\n}\n","import type { SessionsPaneStorage } from '#lib/core/sessions-pane.js';\n\nexport function createSessionsPaneStore(storage: SessionsPaneStorage) {\n let collapsed = $state(true);\n return {\n get collapsed() {\n return collapsed;\n },\n /** Pick up the saved choice. Call it in the browser only, after hydration. */\n init() {\n collapsed = storage.read() ?? false;\n },\n toggle() {\n collapsed = !collapsed;\n storage.write(collapsed);\n },\n };\n}\n","import type { SessionsApi } from '#lib/core/sessions.js';\nimport type { SessionDto, SessionListDto } from '@screenreader-speech-capture/shared';\n\n/** How often the list is read again, so entry counts and sessions of other clients show up. */\nconst REFRESH_MS = 3000;\n\n/** The sessions: read on `init`, then every few seconds, and after every start or end. */\nexport function createSessionsStore(api: SessionsApi) {\n let sessions = $state<SessionDto[]>([]);\n let currentId = $state<number | null>(null);\n let outsideEntries = $state(0);\n let reachable = $state(true);\n let loaded = $state(false);\n let now = $state(Date.now());\n let inFlight: Promise<void> | null = null;\n\n function apply(list: SessionListDto): void {\n sessions = list.sessions;\n currentId = list.currentId;\n outsideEntries = list.outsideEntries;\n now = Date.now();\n loaded = true;\n }\n\n function read(): Promise<void> {\n if (inFlight) return inFlight;\n inFlight = api\n .list()\n .then((list) => {\n apply(list);\n reachable = true;\n })\n .catch(() => {\n reachable = false; // the last known list stays\n })\n .finally(() => {\n inFlight = null;\n });\n return inFlight;\n }\n\n /** A read that started before the change would show the old list, so wait for it and read again. */\n async function refreshAfterChange(): Promise<void> {\n await inFlight;\n await read();\n }\n\n return {\n get sessions() {\n return sessions;\n },\n get currentId() {\n return currentId;\n },\n /** Entries in the buffer recorded outside any session. */\n get outsideEntries() {\n return outsideEntries;\n },\n /** Whether a list has been applied yet; until then the page shows what the server rendered. */\n get loaded() {\n return loaded;\n },\n get reachable() {\n return reachable;\n },\n /** Epoch ms, ticking once a second while a session is live (for its duration). */\n get now() {\n return now;\n },\n /**\n * Reads the list and keeps it fresh; `seed` is the list the server rendered, so there is no\n * flash. Returns the function that stops the timers (call it when the page goes away).\n */\n init(seed: SessionListDto | null): () => void {\n if (seed && sessions.length === 0) apply(seed);\n void read();\n const tick = setInterval(() => {\n if (currentId !== null) now = Date.now();\n }, 1000);\n const refresh = setInterval(() => void read(), REFRESH_MS);\n return () => {\n clearInterval(tick);\n clearInterval(refresh);\n };\n },\n /** Starts a session, which ends the previous one. Rejects with the bridge's message. */\n async start(name: string, run: string | null): Promise<SessionDto> {\n const started = await api.start(name, run);\n await refreshAfterChange();\n return started;\n },\n async end(): Promise<void> {\n await api.end();\n await refreshAfterChange();\n },\n };\n}\n","import type { SessionDto, SpeechEntryDto } from '@screenreader-speech-capture/shared';\nimport type { SessionScope } from './sessions.js';\n\n/** The table keeps this many rows; the oldest go first (the bridge's own buffer is capped too). */\nexport const MAX_ROWS = 5000;\n\n/**\n * `connecting`/`live`/`reconnecting`: a stream. `ended`: an ended session was read in full and\n * nothing more will arrive. `failed`: it could not be read.\n */\nexport type FeedState = 'connecting' | 'live' | 'reconnecting' | 'ended' | 'failed';\n\nexport type SpeechFeedHandlers = {\n onEntry(entry: SpeechEntryDto): void;\n /** Entries read in one go (the pages of an ended session), oldest first. */\n onEntries(entries: readonly SpeechEntryDto[]): void;\n /** The bridge wiped its buffer. */\n onClear(): void;\n onState(state: FeedState): void;\n};\n\n/** The speech of one scope (the adapter streams a live one and reads an ended one once). */\nexport interface SpeechFeed {\n /**\n * Starts the feed; the returned function stops it. A `live` scope (the current session, or the\n * speech outside any session) replays what is in the buffer and then follows; an ended session\n * only has what is in the buffer.\n */\n open(scope: SessionScope, live: boolean, handlers: SpeechFeedHandlers): () => void;\n}\n\n/** What the log changes through the BFF. */\nexport interface SpeechApi {\n /** Inserts a marker; the entry reaches the table through the feed. */\n addMarker(label: string): Promise<void>;\n}\n\n/**\n * Whether a marker added now shows up in `scope`. The bridge files a marker under the current\n * session, or outside any session when none is current: it has no way to name another scope.\n */\nexport function canAddMarker(scope: SessionScope, currentId: number | null): boolean {\n return currentId === null ? scope === 'none' : scope === currentId;\n}\n\n/** Whether new speech can still arrive in `scope`. */\nexport function isLiveScope(scope: SessionScope, currentId: number | null): boolean {\n return scope === 'none' || scope === currentId;\n}\n\n/** `14:03:07.042` in the browser's time zone. */\nexport function formatReceivedTime(iso: string): string {\n const date = new Date(iso);\n if (Number.isNaN(date.getTime())) return iso;\n const two = (value: number) => String(value).padStart(2, '0');\n const millis = String(date.getMilliseconds()).padStart(3, '0');\n return `${two(date.getHours())}:${two(date.getMinutes())}:${two(date.getSeconds())}.${millis}`;\n}\n\n/** `#3 Checkout flow`, or what the log shows when no session is selected. */\nexport function logHeading(scope: SessionScope, sessions: readonly SessionDto[]): string {\n if (scope === 'none') return 'Outside sessions';\n const session = sessions.find((candidate) => candidate.id === scope);\n return session === undefined ? `#${scope}` : `#${session.id} ${session.name}`;\n}\n","import { MAX_ROWS, type FeedState, type SpeechApi, type SpeechFeed } from '#lib/core/speech.js';\nimport type { SessionScope } from '#lib/core/sessions.js';\nimport type { SpeechEntryDto } from '@screenreader-speech-capture/shared';\n\n/** The speech of one scope: streamed from `open` until the returned function is called. */\nexport function createSpeechStore(feed: SpeechFeed, api: SpeechApi) {\n let entries = $state.raw<SpeechEntryDto[]>([]);\n let connection = $state<FeedState>('connecting');\n let close: (() => void) | null = null;\n\n function stop(): void {\n close?.();\n close = null;\n }\n\n /** Adds entries newer than the last one shown (a replay after a reconnect repeats some). */\n function append(added: readonly SpeechEntryDto[]): void {\n let lastSeq = entries.at(-1)?.seq ?? 0;\n const fresh: SpeechEntryDto[] = [];\n for (const entry of added) {\n if (entry.seq <= lastSeq) continue;\n fresh.push(entry);\n lastSeq = entry.seq;\n }\n if (fresh.length === 0) return;\n const next = [...entries, ...fresh];\n entries = next.length > MAX_ROWS ? next.slice(next.length - MAX_ROWS) : next;\n }\n\n return {\n get entries() {\n return entries;\n },\n get connection() {\n return connection;\n },\n\n /**\n * Shows the speech of `scope`, replacing what was shown. A live scope replays the buffer and\n * follows; an ended session is read once. After a reconnect the stream resumes where it left\n * off, and an entry seen twice is dropped. Returns the function that stops the stream.\n */\n open(scope: SessionScope, live: boolean): () => void {\n stop();\n entries = [];\n connection = 'connecting';\n close = feed.open(scope, live, {\n onEntry: (entry) => append([entry]),\n onEntries: append,\n onClear() {\n entries = [];\n },\n onState(state) {\n connection = state;\n },\n });\n return stop;\n },\n\n /** Rejects with the reason; the new entry arrives through the feed, so nothing is added here. */\n addMarker(label: string): Promise<void> {\n return api.addMarker(label);\n },\n };\n}\n","import type { StatusApi } from '#lib/core/status.js';\nimport type { StatusDto } from '@screenreader-speech-capture/shared';\n\n/** The bridge status: read once on init and again on `retry()`. There is no polling. */\nexport function createStatusStore(api: StatusApi) {\n let status = $state<StatusDto | null>(null);\n let reachable = $state(true);\n let loading = $state(false);\n let inFlight: Promise<void> | null = null;\n\n function read(): Promise<void> {\n if (inFlight) return inFlight;\n loading = true;\n inFlight = api\n .fetch()\n .then((next) => {\n status = next;\n reachable = true;\n })\n .catch(() => {\n reachable = false; // the last known status stays, greyed out\n })\n .finally(() => {\n loading = false;\n inFlight = null;\n });\n return inFlight;\n }\n\n return {\n get status() {\n return status;\n },\n get reachable() {\n return reachable;\n },\n get loading() {\n return loading;\n },\n /** Reads the status once; `seed` is the status the server rendered, so there is no flash. */\n init(seed: StatusDto | null): void {\n if (seed && status === null) status = seed;\n void read();\n },\n /** The refresh button. */\n retry(): Promise<void> {\n return read();\n },\n };\n}\n","import { DEFAULT_THEME, toggleTheme, type Theme, type ThemeStorage } from '#lib/core/theme.js';\n\nexport function createThemeStore(storage: ThemeStorage) {\n let current = $state<Theme>(DEFAULT_THEME);\n return {\n get current() {\n return current;\n },\n /** Pick up the saved choice. Call it in the browser only, after hydration. */\n init() {\n current = storage.read() ?? DEFAULT_THEME;\n },\n toggle() {\n current = toggleTheme(current);\n storage.write(current);\n },\n };\n}\n","import { resolve } from '$app/paths';\nimport { BrowserThemeStorage } from '#lib/adapters/browser-theme-storage.js';\nimport { markIconFontReady } from '#lib/adapters/icon-font.js';\nimport { HttpSpeechApi } from '#lib/adapters/http-speech-api.js';\nimport { HttpSessionsApi } from '#lib/adapters/http-sessions-api.js';\nimport { SseSpeechFeed } from '#lib/adapters/sse-speech-feed.js';\nimport { HttpStatusApi } from '#lib/adapters/http-status-api.js';\nimport { BrowserSessionsPaneStorage } from '#lib/adapters/browser-sessions-pane-storage.js';\nimport { createSessionsPaneStore } from '#lib/stores/sessions-pane.svelte.js';\nimport { createSessionsStore } from '#lib/stores/sessions.svelte.js';\nimport { createSpeechStore } from '#lib/stores/speech.svelte.js';\nimport { createStatusStore } from '#lib/stores/status.svelte.js';\nimport { createThemeStore } from '#lib/stores/theme.svelte.js';\n\n/** Wires the adapters into the stores; components get the stores, never the adapters. */\nexport const themeStore = createThemeStore(new BrowserThemeStorage());\nexport const statusStore = createStatusStore(new HttpStatusApi(resolve('/api/status')));\nexport const sessionsStore = createSessionsStore(new HttpSessionsApi(resolve('/api/sessions')));\nexport const speechStore = createSpeechStore(\n new SseSpeechFeed(resolve('/api/speech/stream'), resolve('/api/speech')),\n new HttpSpeechApi(resolve('/api/markers')),\n);\nexport const sessionsPaneStore = createSessionsPaneStore(new BrowserSessionsPaneStorage());\n\n/** Ends the icon placeholder shimmer once the icon font is loaded. */\nexport { markIconFontReady };\n"],"ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"mappings":";;;;AAsDA,SAAgB,WAAW,YAAY,QAAQ,KAAK,MAAM;CACxD,IAAI,IAAI,UAAU,QAAQ,IAAI,IAAI,IAAI,SAAS,SAAS,OAAO,OAAO,OAAO,yBAAyB,QAAQ,GAAG,IAAI,MAAM;CAC3H,IAAI,OAAO,YAAY,YAAY,OAAO,QAAQ,aAAa,YAAY,IAAI,QAAQ,SAAS,YAAY,QAAQ,KAAK,IAAI;MACxH,KAAK,IAAI,IAAI,WAAW,SAAS,GAAG,KAAK,GAAG,KAAK,IAAI,IAAI,WAAW,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC,IAAI,IAAI,IAAI,EAAE,QAAQ,KAAK,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM;CAChJ,OAAO,IAAI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