screenreader-speech-capture 0.7.0 → 0.8.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 (83) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/dist/ui/adapter-node.js +1 -1
  3. package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css +1 -0
  4. package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css.br +0 -0
  5. package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css.gz +0 -0
  6. package/dist/ui/client/ui/_app/immutable/chunks/CM9WugkD.js +179 -0
  7. package/dist/ui/client/ui/_app/immutable/chunks/CM9WugkD.js.br +0 -0
  8. package/dist/ui/client/ui/_app/immutable/chunks/CM9WugkD.js.gz +0 -0
  9. package/dist/ui/client/ui/_app/immutable/chunks/CXrPUR7p.js +4 -0
  10. package/dist/ui/client/ui/_app/immutable/chunks/CXrPUR7p.js.br +0 -0
  11. package/dist/ui/client/ui/_app/immutable/chunks/CXrPUR7p.js.gz +0 -0
  12. package/dist/ui/client/ui/_app/immutable/chunks/Fimt9aTv.js +34 -0
  13. package/dist/ui/client/ui/_app/immutable/chunks/Fimt9aTv.js.br +0 -0
  14. package/dist/ui/client/ui/_app/immutable/chunks/Fimt9aTv.js.gz +0 -0
  15. package/dist/ui/client/ui/_app/immutable/entry/app.D_WMpF1j.js +2 -0
  16. package/dist/ui/client/ui/_app/immutable/entry/app.D_WMpF1j.js.br +0 -0
  17. package/dist/ui/client/ui/_app/immutable/entry/app.D_WMpF1j.js.gz +0 -0
  18. package/dist/ui/client/ui/_app/immutable/nodes/{0.CJdYHfX8.js → 0.kO9a4iA1.js} +1 -1
  19. package/dist/ui/client/ui/_app/immutable/nodes/0.kO9a4iA1.js.br +0 -0
  20. package/dist/ui/client/ui/_app/immutable/nodes/0.kO9a4iA1.js.gz +0 -0
  21. package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js +50 -0
  22. package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js.br +0 -0
  23. package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js.gz +0 -0
  24. package/dist/ui/client/ui/_app/immutable/nodes/3.DcigOv3T.js +5 -0
  25. package/dist/ui/client/ui/_app/immutable/nodes/3.DcigOv3T.js.br +0 -0
  26. package/dist/ui/client/ui/_app/immutable/nodes/3.DcigOv3T.js.gz +0 -0
  27. package/dist/ui/client/ui/_app/version.json +1 -1
  28. package/dist/ui/client/ui/_app/version.json.br +0 -0
  29. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  30. package/dist/ui/server/.vite/manifest.json +39 -5
  31. package/dist/ui/server/_app/immutable/assets/_page.CK2Biket.css +1 -0
  32. package/dist/ui/server/chunks/bridge-api.js +12 -2
  33. package/dist/ui/server/chunks/bridge-api.js.map +1 -1
  34. package/dist/ui/server/chunks/composition.js +2615 -2
  35. package/dist/ui/server/chunks/composition.js.map +1 -1
  36. package/dist/ui/server/chunks/icon-button.js +31 -2389
  37. package/dist/ui/server/chunks/icon-button.js.map +1 -1
  38. package/dist/ui/server/chunks/index-server.js +2 -0
  39. package/dist/ui/server/chunks/instance.js +3 -3
  40. package/dist/ui/server/chunks/internal.js +1 -1
  41. package/dist/ui/server/chunks/outlined-text-field.js +1864 -0
  42. package/dist/ui/server/chunks/outlined-text-field.js.map +1 -0
  43. package/dist/ui/server/chunks/src.js +24 -5
  44. package/dist/ui/server/chunks/src.js.map +1 -1
  45. package/dist/ui/server/chunks/state.js +1 -0
  46. package/dist/ui/server/chunks/state.js.map +1 -1
  47. package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +34 -0
  48. package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -0
  49. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +1 -1
  50. package/dist/ui/server/entries/pages/_layout.svelte.js +2 -1
  51. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
  52. package/dist/ui/server/entries/pages/_page.svelte.js +46 -1904
  53. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  54. package/dist/ui/server/entries/pages/settings/_page.svelte.js +99 -3
  55. package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
  56. package/dist/ui/server/manifest-full.js +8 -1
  57. package/dist/ui/server/manifest.js +8 -1
  58. package/dist/ui/server/nodes/0.js +1 -1
  59. package/dist/ui/server/nodes/2.js +1 -1
  60. package/dist/ui/server/nodes/3.js +2 -2
  61. package/dist/ui/server/server.js +8 -1
  62. package/package.json +1 -1
  63. package/dist/ui/client/ui/_app/immutable/assets/3.BKNNVeb3.css +0 -1
  64. package/dist/ui/client/ui/_app/immutable/assets/3.BKNNVeb3.css.br +0 -0
  65. package/dist/ui/client/ui/_app/immutable/assets/3.BKNNVeb3.css.gz +0 -0
  66. package/dist/ui/client/ui/_app/immutable/chunks/CEzmqEHD.js +0 -37
  67. package/dist/ui/client/ui/_app/immutable/chunks/CEzmqEHD.js.br +0 -0
  68. package/dist/ui/client/ui/_app/immutable/chunks/CEzmqEHD.js.gz +0 -0
  69. package/dist/ui/client/ui/_app/immutable/chunks/vjU7Kh7P.js +0 -1
  70. package/dist/ui/client/ui/_app/immutable/chunks/vjU7Kh7P.js.br +0 -0
  71. package/dist/ui/client/ui/_app/immutable/chunks/vjU7Kh7P.js.gz +0 -0
  72. package/dist/ui/client/ui/_app/immutable/entry/app.DkG_UKpo.js +0 -2
  73. package/dist/ui/client/ui/_app/immutable/entry/app.DkG_UKpo.js.br +0 -0
  74. package/dist/ui/client/ui/_app/immutable/entry/app.DkG_UKpo.js.gz +0 -0
  75. package/dist/ui/client/ui/_app/immutable/nodes/0.CJdYHfX8.js.br +0 -0
  76. package/dist/ui/client/ui/_app/immutable/nodes/0.CJdYHfX8.js.gz +0 -0
  77. package/dist/ui/client/ui/_app/immutable/nodes/2.CKUmeq5l.js +0 -228
  78. package/dist/ui/client/ui/_app/immutable/nodes/2.CKUmeq5l.js.br +0 -0
  79. package/dist/ui/client/ui/_app/immutable/nodes/2.CKUmeq5l.js.gz +0 -0
  80. package/dist/ui/client/ui/_app/immutable/nodes/3.D74ClOwr.js +0 -1
  81. package/dist/ui/client/ui/_app/immutable/nodes/3.D74ClOwr.js.br +0 -0
  82. package/dist/ui/client/ui/_app/immutable/nodes/3.D74ClOwr.js.gz +0 -0
  83. package/dist/ui/server/_app/immutable/assets/_page.BKNNVeb3.css +0 -1
@@ -0,0 +1,1864 @@
1
+ import { A as B, B as __decorate, C as EASING, D as t$2, E as i$4, F as e$1, I as r$1, L as n$2, M as T, N as Z, O as i$2, P as e$2, R as i$3, S as u$1, T as e$4, _ as mixinElementInternals, b as mixinDelegatesAria, g as internals, h as mixinFormAssociated, j as E, k as A, m as getFormValue, p as mixinFormSubmitter, w as e$3, x as i$5, z as t$1 } from "./composition.js";
2
+ // ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/query-assigned-elements.js
3
+ /**
4
+ * @license
5
+ * Copyright 2021 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */ function o$1(o) {
8
+ return (e, n) => {
9
+ const { slot: r, selector: s } = o ?? {}, c = "slot" + (r ? `[name=${r}]` : ":not([name])");
10
+ return e$1(e, n, { get() {
11
+ const e = (this.renderRoot?.querySelector(c))?.assignedElements(o) ?? [];
12
+ return void 0 === s ? e : e.filter((t) => t.matches(s));
13
+ } });
14
+ };
15
+ }
16
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/elevation/internal/elevation.js
17
+ /**
18
+ * @license
19
+ * Copyright 2022 Google LLC
20
+ * SPDX-License-Identifier: Apache-2.0
21
+ */
22
+ /**
23
+ * A component for elevation.
24
+ */
25
+ var Elevation = class extends i$2 {
26
+ connectedCallback() {
27
+ super.connectedCallback();
28
+ this.setAttribute("aria-hidden", "true");
29
+ }
30
+ render() {
31
+ return T`<span class="shadow"></span>`;
32
+ }
33
+ };
34
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/elevation/internal/elevation-styles.cssresult.js
35
+ /**
36
+ * @license
37
+ * Copyright 2026 Google LLC
38
+ * SPDX-License-Identifier: Apache-2.0
39
+ */
40
+ var styles$7 = i$3`:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity;--_level: var(--md-elevation-level, 0);--_shadow-color: var(--md-elevation-shadow-color, var(--md-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}
41
+ `;
42
+ styles$7.styleSheet;
43
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/elevation/elevation.js
44
+ /**
45
+ * @license
46
+ * Copyright 2022 Google LLC
47
+ * SPDX-License-Identifier: Apache-2.0
48
+ */
49
+ /**
50
+ * The `<md-elevation>` custom element with default styles.
51
+ *
52
+ * Elevation is the relative distance between two surfaces along the z-axis.
53
+ *
54
+ * @final
55
+ * @suppress {visibility}
56
+ */
57
+ var MdElevation = class MdElevation extends Elevation {};
58
+ MdElevation.styles = [styles$7];
59
+ MdElevation = __decorate([t$1("md-elevation")], MdElevation);
60
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/events/form-label-activation.js
61
+ /**
62
+ * @license
63
+ * Copyright 2021 Google LLC
64
+ * SPDX-License-Identifier: Apache-2.0
65
+ */
66
+ /**
67
+ * Dispatches a click event to the given element that triggers a native action,
68
+ * but is not composed and therefore is not seen outside the element.
69
+ *
70
+ * This is useful for responding to an external click event on the host element
71
+ * that should trigger an internal action like a button click.
72
+ *
73
+ * Note, a helper is provided because setting this up correctly is a bit tricky.
74
+ * In particular, calling `click` on an element creates a composed event, which
75
+ * is not desirable, and a manually dispatched event must specifically be a
76
+ * `MouseEvent` to trigger a native action.
77
+ *
78
+ * @example
79
+ * hostClickListener = (event: MouseEvent) {
80
+ * if (isActivationClick(event)) {
81
+ * this.dispatchActivationClick(this.buttonElement);
82
+ * }
83
+ * }
84
+ *
85
+ */
86
+ function dispatchActivationClick(element) {
87
+ const event = new MouseEvent("click", { bubbles: true });
88
+ element.dispatchEvent(event);
89
+ return event;
90
+ }
91
+ /**
92
+ * Returns true if the click event should trigger an activation behavior. The
93
+ * behavior is defined by the element and is whatever it should do when
94
+ * clicked.
95
+ *
96
+ * Typically when an element needs to handle a click, the click is generated
97
+ * from within the element and an event listener within the element implements
98
+ * the needed behavior; however, it's possible to fire a click directly
99
+ * at the element that the element should handle. This method helps
100
+ * distinguish these "external" clicks.
101
+ *
102
+ * An "external" click can be triggered in a number of ways: via a click
103
+ * on an associated label for a form associated element, calling
104
+ * `element.click()`, or calling
105
+ * `element.dispatchEvent(new MouseEvent('click', ...))`.
106
+ *
107
+ * Also works around Firefox issue
108
+ * https://bugzilla.mozilla.org/show_bug.cgi?id=1804576 by squelching
109
+ * events for a microtask after called.
110
+ *
111
+ * @example
112
+ * hostClickListener = (event: MouseEvent) {
113
+ * if (isActivationClick(event)) {
114
+ * this.dispatchActivationClick(this.buttonElement);
115
+ * }
116
+ * }
117
+ *
118
+ */
119
+ function isActivationClick(event) {
120
+ if (event.currentTarget !== event.target) return false;
121
+ if (event.composedPath()[0] !== event.target) return false;
122
+ if (event.target.disabled) return false;
123
+ return !squelchEvent(event);
124
+ }
125
+ function squelchEvent(event) {
126
+ const squelched = isSquelchingEvents;
127
+ if (squelched) {
128
+ event.preventDefault();
129
+ event.stopImmediatePropagation();
130
+ }
131
+ squelchEventsForMicrotask();
132
+ return squelched;
133
+ }
134
+ var isSquelchingEvents = false;
135
+ async function squelchEventsForMicrotask() {
136
+ isSquelchingEvents = true;
137
+ await null;
138
+ isSquelchingEvents = false;
139
+ }
140
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/button.js
141
+ /**
142
+ * @license
143
+ * Copyright 2019 Google LLC
144
+ * SPDX-License-Identifier: Apache-2.0
145
+ */
146
+ var buttonBaseClass = mixinDelegatesAria(mixinFormSubmitter(mixinFormAssociated(mixinElementInternals(i$2))));
147
+ /**
148
+ * A button component.
149
+ */
150
+ var Button = class extends buttonBaseClass {
151
+ constructor() {
152
+ super();
153
+ /**
154
+ * Whether or not the button is "soft-disabled" (disabled but still
155
+ * focusable).
156
+ *
157
+ * Use this when a button needs increased visibility when disabled. See
158
+ * https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls
159
+ * for more guidance on when this is needed.
160
+ */
161
+ this.softDisabled = false;
162
+ /**
163
+ * The URL that the link button points to.
164
+ */
165
+ this.href = "";
166
+ /**
167
+ * The filename to use when downloading the linked resource.
168
+ * If not specified, the browser will determine a filename.
169
+ * This is only applicable when the button is used as a link (`href` is set).
170
+ */
171
+ this.download = "";
172
+ /**
173
+ * Where to display the linked `href` URL for a link button. Common options
174
+ * include `_blank` to open in a new tab.
175
+ */
176
+ this.target = "";
177
+ /**
178
+ * Whether to render the icon at the inline end of the label rather than the
179
+ * inline start.
180
+ *
181
+ * _Note:_ Link buttons cannot have trailing icons.
182
+ */
183
+ this.trailingIcon = false;
184
+ /**
185
+ * Whether to display the icon or not.
186
+ */
187
+ this.hasIcon = false;
188
+ }
189
+ focus() {
190
+ this.buttonElement?.focus();
191
+ }
192
+ blur() {
193
+ this.buttonElement?.blur();
194
+ }
195
+ render() {
196
+ const isRippleDisabled = this.disabled || this.softDisabled;
197
+ const buttonOrLink = this.href ? this.renderLink() : this.renderButton();
198
+ const buttonId = this.href ? "link" : "button";
199
+ return T`
200
+ ${this.renderElevationOrOutline?.()}
201
+ <div class="background"></div>
202
+ <md-focus-ring part="focus-ring" for=${buttonId}></md-focus-ring>
203
+ <md-ripple
204
+ part="ripple"
205
+ for=${buttonId}
206
+ ?disabled="${isRippleDisabled}"></md-ripple>
207
+ ${buttonOrLink}
208
+ `;
209
+ }
210
+ renderButton() {
211
+ const { ariaLabel, ariaHasPopup, ariaExpanded } = this;
212
+ return T`<button
213
+ id="button"
214
+ class="button"
215
+ ?disabled=${this.disabled}
216
+ aria-disabled=${this.softDisabled || A}
217
+ aria-label="${ariaLabel || A}"
218
+ aria-haspopup="${ariaHasPopup || A}"
219
+ aria-expanded="${ariaExpanded || A}">
220
+ ${this.renderContent()}
221
+ </button>`;
222
+ }
223
+ renderLink() {
224
+ const { ariaLabel, ariaHasPopup, ariaExpanded } = this;
225
+ return T`<a
226
+ id="link"
227
+ class="button"
228
+ aria-label="${ariaLabel || A}"
229
+ aria-haspopup="${ariaHasPopup || A}"
230
+ aria-expanded="${ariaExpanded || A}"
231
+ aria-disabled=${this.disabled || this.softDisabled || A}
232
+ tabindex="${this.disabled && !this.softDisabled ? -1 : A}"
233
+ href=${this.href}
234
+ download=${this.download || A}
235
+ target=${this.target || A}
236
+ >${this.renderContent()}
237
+ </a>`;
238
+ }
239
+ renderContent() {
240
+ const icon = T`<slot
241
+ name="icon"
242
+ @slotchange="${this.handleSlotChange}"></slot>`;
243
+ return T`
244
+ <span class="touch"></span>
245
+ ${this.trailingIcon ? A : icon}
246
+ <span class="label"><slot></slot></span>
247
+ ${this.trailingIcon ? icon : A}
248
+ `;
249
+ }
250
+ handleClick(event) {
251
+ if (this.softDisabled || this.disabled && this.href) {
252
+ event.stopImmediatePropagation();
253
+ event.preventDefault();
254
+ return;
255
+ }
256
+ if (!isActivationClick(event) || !this.buttonElement) return;
257
+ this.focus();
258
+ dispatchActivationClick(this.buttonElement);
259
+ }
260
+ handleSlotChange() {
261
+ this.hasIcon = this.assignedIcons.length > 0;
262
+ }
263
+ };
264
+ /** @nocollapse */
265
+ Button.shadowRootOptions = {
266
+ mode: "open",
267
+ delegatesFocus: true
268
+ };
269
+ __decorate([n$2({
270
+ type: Boolean,
271
+ attribute: "soft-disabled",
272
+ reflect: true
273
+ })], Button.prototype, "softDisabled", void 0);
274
+ __decorate([n$2()], Button.prototype, "href", void 0);
275
+ __decorate([n$2()], Button.prototype, "download", void 0);
276
+ __decorate([n$2()], Button.prototype, "target", void 0);
277
+ __decorate([n$2({
278
+ type: Boolean,
279
+ attribute: "trailing-icon",
280
+ reflect: true
281
+ })], Button.prototype, "trailingIcon", void 0);
282
+ __decorate([n$2({
283
+ type: Boolean,
284
+ attribute: "has-icon",
285
+ reflect: true
286
+ })], Button.prototype, "hasIcon", void 0);
287
+ __decorate([e$2(".button")], Button.prototype, "buttonElement", void 0);
288
+ __decorate([o$1({
289
+ slot: "icon",
290
+ flatten: true
291
+ })], Button.prototype, "assignedIcons", void 0);
292
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/shared-elevation-styles.cssresult.js
293
+ /**
294
+ * @license
295
+ * Copyright 2026 Google LLC
296
+ * SPDX-License-Identifier: Apache-2.0
297
+ */
298
+ var styles$6 = i$3`md-elevation{transition-duration:280ms}:host(:is([disabled],[soft-disabled])) md-elevation{transition:none}md-elevation{--md-elevation-level: var(--_container-elevation);--md-elevation-shadow-color: var(--_container-shadow-color)}:host(:focus-within) md-elevation{--md-elevation-level: var(--_focus-container-elevation)}:host(:hover) md-elevation{--md-elevation-level: var(--_hover-container-elevation)}:host(:active) md-elevation{--md-elevation-level: var(--_pressed-container-elevation)}:host(:is([disabled],[soft-disabled])) md-elevation{--md-elevation-level: var(--_disabled-container-elevation)}
299
+ `;
300
+ styles$6.styleSheet;
301
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/shared-styles.cssresult.js
302
+ /**
303
+ * @license
304
+ * Copyright 2026 Google LLC
305
+ * SPDX-License-Identifier: Apache-2.0
306
+ */
307
+ var styles$5 = i$3`:host{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end);box-sizing:border-box;cursor:pointer;display:inline-flex;gap:8px;min-height:var(--_container-height);outline:none;padding-block:calc((var(--_container-height) - max(var(--_label-text-line-height),var(--_icon-size)))/2);padding-inline-start:var(--_leading-space);padding-inline-end:var(--_trailing-space);place-content:center;place-items:center;position:relative;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);text-overflow:ellipsis;text-wrap:nowrap;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:top;--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host(:is([disabled],[soft-disabled])){cursor:default;pointer-events:none}.button{border-radius:inherit;cursor:inherit;display:inline-flex;align-items:center;justify-content:center;border:none;outline:none;-webkit-appearance:none;vertical-align:middle;background:rgba(0,0,0,0);text-decoration:none;min-width:calc(64px - var(--_leading-space) - var(--_trailing-space));width:100%;z-index:0;height:100%;font:inherit;color:var(--_label-text-color);padding:0;gap:inherit;text-transform:inherit}.button::-moz-focus-inner{padding:0;border:0}:host(:hover) .button{color:var(--_hover-label-text-color)}:host(:focus-within) .button{color:var(--_focus-label-text-color)}:host(:active) .button{color:var(--_pressed-label-text-color)}.background{background:var(--_container-color);border-radius:inherit;inset:0;position:absolute}.label{overflow:hidden}:is(.button,.label,.label slot),.label ::slotted(*){text-overflow:inherit}:host(:is([disabled],[soft-disabled])) .label{color:var(--_disabled-label-text-color);opacity:var(--_disabled-label-text-opacity)}:host(:is([disabled],[soft-disabled])) .background{background:var(--_disabled-container-color);opacity:var(--_disabled-container-opacity)}@media(forced-colors: active){.background{border:1px solid CanvasText}:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1;--_disabled-container-opacity: 1;--_disabled-label-text-color: GrayText;--_disabled-label-text-opacity: 1}}:host([has-icon]:not([trailing-icon])){padding-inline-start:var(--_with-leading-icon-leading-space);padding-inline-end:var(--_with-leading-icon-trailing-space)}:host([has-icon][trailing-icon]){padding-inline-start:var(--_with-trailing-icon-leading-space);padding-inline-end:var(--_with-trailing-icon-trailing-space)}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;flex-shrink:0;color:var(--_icon-color);font-size:var(--_icon-size);inline-size:var(--_icon-size);block-size:var(--_icon-size)}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus-within) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host(:is([disabled],[soft-disabled])) ::slotted([slot=icon]){color:var(--_disabled-icon-color);opacity:var(--_disabled-icon-opacity)}.touch{position:absolute;top:50%;height:max(48px,100%);left:0;right:0;transform:translateY(-50%)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) 0}:host([touch-target=none]) .touch{display:none}
308
+ `;
309
+ styles$5.styleSheet;
310
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/text-button.js
311
+ /**
312
+ * @license
313
+ * Copyright 2021 Google LLC
314
+ * SPDX-License-Identifier: Apache-2.0
315
+ */
316
+ /**
317
+ * A text button component.
318
+ */
319
+ var TextButton = class extends Button {};
320
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/text-styles.cssresult.js
321
+ /**
322
+ * @license
323
+ * Copyright 2026 Google LLC
324
+ * SPDX-License-Identifier: Apache-2.0
325
+ */
326
+ var styles$4 = i$3`:host{--_container-height: var(--md-text-button-container-height, 40px);--_disabled-label-text-color: var(--md-text-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-text-button-disabled-label-text-opacity, 0.38);--_focus-label-text-color: var(--md-text-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-text-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-text-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-text-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-text-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-text-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-text-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-text-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-text-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--md-text-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-color: var(--md-text-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-text-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-text-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-text-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-text-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-text-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-text-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-text-button-icon-size, 18px);--_pressed-icon-color: var(--md-text-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-text-button-container-shape-start-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-text-button-container-shape-start-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-text-button-container-shape-end-end, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-text-button-container-shape-end-start, var(--md-text-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-text-button-leading-space, 12px);--_trailing-space: var(--md-text-button-trailing-space, 12px);--_with-leading-icon-leading-space: var(--md-text-button-with-leading-icon-leading-space, 12px);--_with-leading-icon-trailing-space: var(--md-text-button-with-leading-icon-trailing-space, 16px);--_with-trailing-icon-leading-space: var(--md-text-button-with-trailing-icon-leading-space, 16px);--_with-trailing-icon-trailing-space: var(--md-text-button-with-trailing-icon-trailing-space, 12px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}
327
+ `;
328
+ styles$4.styleSheet;
329
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/text-button.js
330
+ /**
331
+ * @license
332
+ * Copyright 2021 Google LLC
333
+ * SPDX-License-Identifier: Apache-2.0
334
+ */
335
+ /**
336
+ * @summary Buttons help people take action, such as sending an email, sharing a
337
+ * document, or liking a comment.
338
+ *
339
+ * @description
340
+ * __Emphasis:__ Low emphasis – For optional or supplementary actions with the
341
+ * least amount of prominence
342
+ *
343
+ * __Rationale:__ Text buttons have less visual prominence, so should be used
344
+ * for low emphasis actions, such as an alternative option.
345
+ *
346
+ * __Example usages:__
347
+ * - Learn more
348
+ * - View all
349
+ * - Change account
350
+ * - Turn on
351
+ *
352
+ * @final
353
+ * @suppress {visibility}
354
+ */
355
+ var MdTextButton = class MdTextButton extends TextButton {};
356
+ MdTextButton.styles = [styles$5, styles$4];
357
+ MdTextButton = __decorate([t$1("md-text-button")], MdTextButton);
358
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/events/redispatch-event.js
359
+ /**
360
+ * @license
361
+ * Copyright 2021 Google LLC
362
+ * SPDX-License-Identifier: Apache-2.0
363
+ */
364
+ /**
365
+ * Re-dispatches an event from the provided element.
366
+ *
367
+ * This function is useful for forwarding non-composed events, such as `change`
368
+ * events.
369
+ *
370
+ * @example
371
+ * class MyInput extends LitElement {
372
+ * render() {
373
+ * return html`<input @change=${this.redispatchEvent}>`;
374
+ * }
375
+ *
376
+ * protected redispatchEvent(event: Event) {
377
+ * redispatchEvent(this, event);
378
+ * }
379
+ * }
380
+ *
381
+ * @param element The element to dispatch the event from.
382
+ * @param event The event to re-dispatch.
383
+ * @return Whether or not the event was dispatched (if cancelable).
384
+ */
385
+ function redispatchEvent(element, event) {
386
+ if (event.bubbles && (!element.shadowRoot || event.composed)) event.stopPropagation();
387
+ const copy = Reflect.construct(event.constructor, [event.type, event]);
388
+ const dispatched = element.dispatchEvent(copy);
389
+ if (!dispatched) event.preventDefault();
390
+ return dispatched;
391
+ }
392
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/field/internal/field.js
393
+ /**
394
+ * @license
395
+ * Copyright 2021 Google LLC
396
+ * SPDX-License-Identifier: Apache-2.0
397
+ */
398
+ /**
399
+ * A field component.
400
+ */
401
+ var Field = class extends i$2 {
402
+ constructor() {
403
+ super(...arguments);
404
+ this.disabled = false;
405
+ this.error = false;
406
+ this.focused = false;
407
+ this.label = "";
408
+ this.noAsterisk = false;
409
+ this.populated = false;
410
+ this.required = false;
411
+ this.resizable = false;
412
+ this.supportingText = "";
413
+ this.errorText = "";
414
+ this.count = -1;
415
+ this.max = -1;
416
+ /**
417
+ * Whether or not the field has leading content.
418
+ */
419
+ this.hasStart = false;
420
+ /**
421
+ * Whether or not the field has trailing content.
422
+ */
423
+ this.hasEnd = false;
424
+ this.isAnimating = false;
425
+ /**
426
+ * When set to true, the error text's `role="alert"` will be removed, then
427
+ * re-added after an animation frame. This will re-announce an error message
428
+ * to screen readers.
429
+ */
430
+ this.refreshErrorAlert = false;
431
+ this.disableTransitions = false;
432
+ }
433
+ get counterText() {
434
+ const countAsNumber = this.count ?? -1;
435
+ const maxAsNumber = this.max ?? -1;
436
+ if (countAsNumber < 0 || maxAsNumber <= 0) return "";
437
+ return `${countAsNumber} / ${maxAsNumber}`;
438
+ }
439
+ get supportingOrErrorText() {
440
+ return this.error && this.errorText ? this.errorText : this.supportingText;
441
+ }
442
+ /**
443
+ * Re-announces the field's error supporting text to screen readers.
444
+ *
445
+ * Error text announces to screen readers anytime it is visible and changes.
446
+ * Use the method to re-announce the message when the text has not changed,
447
+ * but announcement is still needed (such as for `reportValidity()`).
448
+ */
449
+ reannounceError() {
450
+ this.refreshErrorAlert = true;
451
+ }
452
+ update(props) {
453
+ if (props.has("disabled") && props.get("disabled") !== void 0) this.disableTransitions = true;
454
+ if (this.disabled && this.focused) {
455
+ props.set("focused", true);
456
+ this.focused = false;
457
+ }
458
+ this.animateLabelIfNeeded({
459
+ wasFocused: props.get("focused"),
460
+ wasPopulated: props.get("populated")
461
+ });
462
+ super.update(props);
463
+ }
464
+ render() {
465
+ const floatingLabel = this.renderLabel(true);
466
+ const restingLabel = this.renderLabel(false);
467
+ const outline = this.renderOutline?.(floatingLabel);
468
+ const classes = {
469
+ "disabled": this.disabled,
470
+ "disable-transitions": this.disableTransitions,
471
+ "error": this.error && !this.disabled,
472
+ "focused": this.focused,
473
+ "with-start": this.hasStart,
474
+ "with-end": this.hasEnd,
475
+ "populated": this.populated,
476
+ "resizable": this.resizable,
477
+ "required": this.required,
478
+ "no-label": !this.label
479
+ };
480
+ return T`
481
+ <div class="field ${e$3(classes)}">
482
+ <div class="container-overflow">
483
+ ${this.renderBackground?.()}
484
+ <slot name="container"></slot>
485
+ ${this.renderStateLayer?.()} ${this.renderIndicator?.()} ${outline}
486
+ <div class="container">
487
+ <div class="start">
488
+ <slot name="start"></slot>
489
+ </div>
490
+ <div class="middle">
491
+ <div class="label-wrapper">
492
+ ${restingLabel} ${outline ? A : floatingLabel}
493
+ </div>
494
+ <div class="content">
495
+ <slot></slot>
496
+ </div>
497
+ </div>
498
+ <div class="end">
499
+ <slot name="end"></slot>
500
+ </div>
501
+ </div>
502
+ </div>
503
+ ${this.renderSupportingText()}
504
+ </div>
505
+ `;
506
+ }
507
+ updated(changed) {
508
+ if (changed.has("supportingText") || changed.has("errorText") || changed.has("count") || changed.has("max")) this.updateSlottedAriaDescribedBy();
509
+ if (this.refreshErrorAlert) requestAnimationFrame(() => {
510
+ this.refreshErrorAlert = false;
511
+ });
512
+ if (this.disableTransitions) requestAnimationFrame(() => {
513
+ this.disableTransitions = false;
514
+ });
515
+ }
516
+ renderSupportingText() {
517
+ const { supportingOrErrorText, counterText } = this;
518
+ if (!supportingOrErrorText && !counterText) return A;
519
+ const start = T`<span>${supportingOrErrorText}</span>`;
520
+ const end = counterText ? T`<span class="counter">${counterText}</span>` : A;
521
+ const role = this.error && this.errorText && !this.refreshErrorAlert ? "alert" : A;
522
+ return T`
523
+ <div class="supporting-text" role=${role}>${start}${end}</div>
524
+ <slot
525
+ name="aria-describedby"
526
+ @slotchange=${this.updateSlottedAriaDescribedBy}></slot>
527
+ `;
528
+ }
529
+ updateSlottedAriaDescribedBy() {
530
+ for (const element of this.slottedAriaDescribedBy) {
531
+ B(T`${this.supportingOrErrorText} ${this.counterText}`, element);
532
+ element.setAttribute("hidden", "");
533
+ }
534
+ }
535
+ renderLabel(isFloating) {
536
+ if (!this.label) return A;
537
+ let visible;
538
+ if (isFloating) visible = this.focused || this.populated || this.isAnimating;
539
+ else visible = !this.focused && !this.populated && !this.isAnimating;
540
+ const classes = {
541
+ "hidden": !visible,
542
+ "floating": isFloating,
543
+ "resting": !isFloating
544
+ };
545
+ const labelText = `${this.label}${this.required && !this.noAsterisk ? "*" : ""}`;
546
+ return T`
547
+ <span class="label ${e$3(classes)}" aria-hidden=${!visible}
548
+ >${labelText}</span
549
+ >
550
+ `;
551
+ }
552
+ animateLabelIfNeeded({ wasFocused, wasPopulated }) {
553
+ if (!this.label) return;
554
+ wasFocused ??= this.focused;
555
+ wasPopulated ??= this.populated;
556
+ if ((wasFocused || wasPopulated) === (this.focused || this.populated)) return;
557
+ const keyframes = this.getLabelKeyframes();
558
+ if (!keyframes.length) return;
559
+ this.isAnimating = true;
560
+ this.labelAnimation?.cancel();
561
+ this.labelAnimation = this.floatingLabelEl?.animate(keyframes, {
562
+ duration: 150,
563
+ easing: EASING.STANDARD
564
+ });
565
+ this.labelAnimation?.addEventListener("finish", () => {
566
+ this.isAnimating = false;
567
+ });
568
+ }
569
+ getLabelKeyframes() {
570
+ const { floatingLabelEl, restingLabelEl } = this;
571
+ if (!floatingLabelEl || !restingLabelEl) return [];
572
+ const { x: floatingX, y: floatingY, height: floatingHeight } = floatingLabelEl.getBoundingClientRect();
573
+ const { x: restingX, y: restingY, height: restingHeight } = restingLabelEl.getBoundingClientRect();
574
+ const floatingScrollWidth = floatingLabelEl.scrollWidth;
575
+ const restingScrollWidth = restingLabelEl.scrollWidth;
576
+ if (floatingScrollWidth === 0 || restingScrollWidth === 0) return [];
577
+ const scale = restingScrollWidth / floatingScrollWidth;
578
+ const restTransform = `translateX(${restingX - floatingX}px) translateY(${restingY - floatingY + Math.round((restingHeight - floatingHeight * scale) / 2)}px) scale(${scale})`;
579
+ const floatTransform = `translateX(0) translateY(0) scale(1)`;
580
+ const restingClientWidth = restingLabelEl.clientWidth;
581
+ const width = restingScrollWidth > restingClientWidth ? `${restingClientWidth / scale}px` : "";
582
+ if (this.focused || this.populated) return [{
583
+ transform: restTransform,
584
+ width
585
+ }, {
586
+ transform: floatTransform,
587
+ width
588
+ }];
589
+ return [{
590
+ transform: floatTransform,
591
+ width
592
+ }, {
593
+ transform: restTransform,
594
+ width
595
+ }];
596
+ }
597
+ getSurfacePositionClientRect() {
598
+ return this.containerEl.getBoundingClientRect();
599
+ }
600
+ };
601
+ __decorate([n$2({ type: Boolean })], Field.prototype, "disabled", void 0);
602
+ __decorate([n$2({ type: Boolean })], Field.prototype, "error", void 0);
603
+ __decorate([n$2({ type: Boolean })], Field.prototype, "focused", void 0);
604
+ __decorate([n$2()], Field.prototype, "label", void 0);
605
+ __decorate([n$2({
606
+ type: Boolean,
607
+ attribute: "no-asterisk"
608
+ })], Field.prototype, "noAsterisk", void 0);
609
+ __decorate([n$2({ type: Boolean })], Field.prototype, "populated", void 0);
610
+ __decorate([n$2({ type: Boolean })], Field.prototype, "required", void 0);
611
+ __decorate([n$2({ type: Boolean })], Field.prototype, "resizable", void 0);
612
+ __decorate([n$2({ attribute: "supporting-text" })], Field.prototype, "supportingText", void 0);
613
+ __decorate([n$2({ attribute: "error-text" })], Field.prototype, "errorText", void 0);
614
+ __decorate([n$2({ type: Number })], Field.prototype, "count", void 0);
615
+ __decorate([n$2({ type: Number })], Field.prototype, "max", void 0);
616
+ __decorate([n$2({
617
+ type: Boolean,
618
+ attribute: "has-start"
619
+ })], Field.prototype, "hasStart", void 0);
620
+ __decorate([n$2({
621
+ type: Boolean,
622
+ attribute: "has-end"
623
+ })], Field.prototype, "hasEnd", void 0);
624
+ __decorate([o$1({ slot: "aria-describedby" })], Field.prototype, "slottedAriaDescribedBy", void 0);
625
+ __decorate([r$1()], Field.prototype, "isAnimating", void 0);
626
+ __decorate([r$1()], Field.prototype, "refreshErrorAlert", void 0);
627
+ __decorate([r$1()], Field.prototype, "disableTransitions", void 0);
628
+ __decorate([e$2(".label.floating")], Field.prototype, "floatingLabelEl", void 0);
629
+ __decorate([e$2(".label.resting")], Field.prototype, "restingLabelEl", void 0);
630
+ __decorate([e$2(".container")], Field.prototype, "containerEl", void 0);
631
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/field/internal/outlined-field.js
632
+ /**
633
+ * @license
634
+ * Copyright 2021 Google LLC
635
+ * SPDX-License-Identifier: Apache-2.0
636
+ */
637
+ /**
638
+ * An outlined field component.
639
+ */
640
+ var OutlinedField = class extends Field {
641
+ renderOutline(floatingLabel) {
642
+ return T`
643
+ <div class="outline">
644
+ <div class="outline-start"></div>
645
+ <div class="outline-notch">
646
+ <div class="outline-panel-inactive"></div>
647
+ <div class="outline-panel-active"></div>
648
+ <div class="outline-label">${floatingLabel}</div>
649
+ </div>
650
+ <div class="outline-end"></div>
651
+ </div>
652
+ `;
653
+ }
654
+ };
655
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/field/internal/outlined-styles.cssresult.js
656
+ /**
657
+ * @license
658
+ * Copyright 2026 Google LLC
659
+ * SPDX-License-Identifier: Apache-2.0
660
+ */
661
+ var styles$3 = i$3`@layer styles{:host{--_bottom-space: var(--md-outlined-field-bottom-space, 16px);--_content-color: var(--md-outlined-field-content-color, var(--md-sys-color-on-surface, #1d1b20));--_content-font: var(--md-outlined-field-content-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_content-line-height: var(--md-outlined-field-content-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_content-size: var(--md-outlined-field-content-size, var(--md-sys-typescale-body-large-size, 1rem));--_content-space: var(--md-outlined-field-content-space, 16px);--_content-weight: var(--md-outlined-field-content-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_disabled-content-color: var(--md-outlined-field-disabled-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-content-opacity: var(--md-outlined-field-disabled-content-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-field-disabled-label-text-opacity, 0.38);--_disabled-leading-content-color: var(--md-outlined-field-disabled-leading-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-content-opacity: var(--md-outlined-field-disabled-leading-content-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-content-color: var(--md-outlined-field-disabled-trailing-content-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-content-opacity: var(--md-outlined-field-disabled-trailing-content-opacity, 0.38);--_error-content-color: var(--md-outlined-field-error-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-content-color: var(--md-outlined-field-error-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-content-color: var(--md-outlined-field-error-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-content-color: var(--md-outlined-field-error-focus-trailing-content-color, var(--md-sys-color-error, #b3261e));--_error-hover-content-color: var(--md-outlined-field-error-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-content-color: var(--md-outlined-field-error-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-content-color: var(--md-outlined-field-error-hover-trailing-content-color, var(--md-sys-color-on-error-container, #410e0b));--_error-label-text-color: var(--md-outlined-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-content-color: var(--md-outlined-field-error-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-content-color: var(--md-outlined-field-error-trailing-content-color, var(--md-sys-color-error, #b3261e));--_focus-content-color: var(--md-outlined-field-focus-content-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-content-color: var(--md-outlined-field-focus-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-content-color: var(--md-outlined-field-focus-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-content-color: var(--md-outlined-field-hover-content-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-content-color: var(--md-outlined-field-hover-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-content-color: var(--md-outlined-field-hover-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-color: var(--md-outlined-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-padding-bottom: var(--md-outlined-field-label-text-padding-bottom, 8px);--_label-text-populated-line-height: var(--md-outlined-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-content-color: var(--md-outlined-field-leading-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-space: var(--md-outlined-field-leading-space, 16px);--_outline-color: var(--md-outlined-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-label-padding: var(--md-outlined-field-outline-label-padding, 4px);--_outline-width: var(--md-outlined-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-leading-space: var(--md-outlined-field-supporting-text-leading-space, 16px);--_supporting-text-line-height: var(--md-outlined-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-top-space: var(--md-outlined-field-supporting-text-top-space, 4px);--_supporting-text-trailing-space: var(--md-outlined-field-supporting-text-trailing-space, 16px);--_supporting-text-weight: var(--md-outlined-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_top-space: var(--md-outlined-field-top-space, 16px);--_trailing-content-color: var(--md-outlined-field-trailing-content-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-space: var(--md-outlined-field-trailing-space, 16px);--_with-leading-content-leading-space: var(--md-outlined-field-with-leading-content-leading-space, 12px);--_with-trailing-content-trailing-space: var(--md-outlined-field-with-trailing-content-trailing-space, 12px);--_container-shape-start-start: var(--md-outlined-field-container-shape-start-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-field-container-shape-start-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-field-container-shape-end-end, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-field-container-shape-end-start, var(--md-outlined-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)))}.outline{border-color:var(--_outline-color);border-radius:inherit;display:flex;pointer-events:none;height:100%;position:absolute;width:100%;z-index:1}.outline-start::before,.outline-start::after,.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after,.outline-end::before,.outline-end::after{border:inherit;content:"";inset:0;position:absolute}.outline-start,.outline-end{border:inherit;border-radius:inherit;box-sizing:border-box;position:relative}.outline-start::before,.outline-start::after,.outline-end::before,.outline-end::after{border-bottom-style:solid;border-top-style:solid}.outline-start::after,.outline-end::after{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-start::after,.focused .outline-end::after{opacity:1}.outline-start::before,.outline-start::after{border-inline-start-style:solid;border-inline-end-style:none;border-start-start-radius:inherit;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:0;margin-inline-end:var(--_outline-label-padding)}.outline-end{flex-grow:1;margin-inline-start:calc(-1*var(--_outline-label-padding))}.outline-end::before,.outline-end::after{border-inline-start-style:none;border-inline-end-style:solid;border-start-start-radius:0;border-start-end-radius:inherit;border-end-start-radius:0;border-end-end-radius:inherit}.outline-notch{align-items:flex-start;border:inherit;display:flex;margin-inline-start:calc(-1*var(--_outline-label-padding));margin-inline-end:var(--_outline-label-padding);max-width:calc(100% - var(--_leading-space) - var(--_trailing-space));padding:0 var(--_outline-label-padding);position:relative}.no-label .outline-notch{display:none}.outline-panel-inactive,.outline-panel-active{border:inherit;border-bottom-style:solid;inset:0;position:absolute}.outline-panel-inactive::before,.outline-panel-inactive::after,.outline-panel-active::before,.outline-panel-active::after{border-top-style:solid;border-bottom:none;bottom:auto;transform:scaleX(1);transition:transform 150ms cubic-bezier(0.2, 0, 0, 1)}.outline-panel-inactive::before,.outline-panel-active::before{right:50%;transform-origin:top left}.outline-panel-inactive::after,.outline-panel-active::after{left:50%;transform-origin:top right}.populated .outline-panel-inactive::before,.populated .outline-panel-inactive::after,.populated .outline-panel-active::before,.populated .outline-panel-active::after,.focused .outline-panel-inactive::before,.focused .outline-panel-inactive::after,.focused .outline-panel-active::before,.focused .outline-panel-active::after{transform:scaleX(0)}.outline-panel-active{opacity:0;transition:opacity 150ms cubic-bezier(0.2, 0, 0, 1)}.focused .outline-panel-active{opacity:1}.outline-label{display:flex;max-width:100%;transform:translateY(calc(-100% + var(--_label-text-padding-bottom)))}.outline-start,.field:not(.with-start) .content ::slotted(*){padding-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-start) .label-wrapper{margin-inline-start:max(var(--_leading-space),max(var(--_container-shape-start-start),var(--_container-shape-end-start)) + var(--_outline-label-padding))}.field:not(.with-end) .content ::slotted(*){padding-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.field:not(.with-end) .label-wrapper{margin-inline-end:max(var(--_trailing-space),max(var(--_container-shape-start-end),var(--_container-shape-end-end)))}.outline-start::before,.outline-end::before,.outline-panel-inactive,.outline-panel-inactive::before,.outline-panel-inactive::after{border-width:var(--_outline-width)}:hover .outline{border-color:var(--_hover-outline-color);color:var(--_hover-outline-color)}:hover .outline-start::before,:hover .outline-end::before,:hover .outline-panel-inactive,:hover .outline-panel-inactive::before,:hover .outline-panel-inactive::after{border-width:var(--_hover-outline-width)}.focused .outline{border-color:var(--_focus-outline-color);color:var(--_focus-outline-color)}.outline-start::after,.outline-end::after,.outline-panel-active,.outline-panel-active::before,.outline-panel-active::after{border-width:var(--_focus-outline-width)}.disabled .outline{border-color:var(--_disabled-outline-color);color:var(--_disabled-outline-color)}.disabled .outline-start,.disabled .outline-end,.disabled .outline-panel-inactive{opacity:var(--_disabled-outline-opacity)}.disabled .outline-start::before,.disabled .outline-end::before,.disabled .outline-panel-inactive,.disabled .outline-panel-inactive::before,.disabled .outline-panel-inactive::after{border-width:var(--_disabled-outline-width)}.error .outline{border-color:var(--_error-outline-color);color:var(--_error-outline-color)}.error:hover .outline{border-color:var(--_error-hover-outline-color);color:var(--_error-hover-outline-color)}.error.focused .outline{border-color:var(--_error-focus-outline-color);color:var(--_error-focus-outline-color)}.resizable .container{bottom:var(--_focus-outline-width);inset-inline-end:var(--_focus-outline-width);clip-path:inset(var(--_focus-outline-width) 0 0 var(--_focus-outline-width))}.resizable .container>*{top:var(--_focus-outline-width);inset-inline-start:var(--_focus-outline-width)}.resizable .container:dir(rtl){clip-path:inset(var(--_focus-outline-width) var(--_focus-outline-width) 0 0)}}@layer hcm{@media(forced-colors: active){.disabled .outline{border-color:GrayText;color:GrayText}.disabled :is(.outline-start,.outline-end,.outline-panel-inactive){opacity:1}}}
662
+ `;
663
+ styles$3.styleSheet;
664
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/field/internal/shared-styles.cssresult.js
665
+ /**
666
+ * @license
667
+ * Copyright 2026 Google LLC
668
+ * SPDX-License-Identifier: Apache-2.0
669
+ */
670
+ var styles$2 = i$3`:host{display:inline-flex;resize:both}.field{display:flex;flex:1;flex-direction:column;writing-mode:horizontal-tb;max-width:100%}.container-overflow{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start);display:flex;height:100%;position:relative}.container{align-items:center;border-radius:inherit;display:flex;flex:1;max-height:100%;min-height:100%;min-width:min-content;position:relative}.field,.container-overflow{resize:inherit}.resizable:not(.disabled) .container{resize:inherit;overflow:hidden}.disabled{pointer-events:none}slot[name=container]{border-radius:inherit}slot[name=container]::slotted(*){border-radius:inherit;inset:0;pointer-events:none;position:absolute}@layer styles{.start,.middle,.end{display:flex;box-sizing:border-box;height:100%;position:relative}.start{color:var(--_leading-content-color)}.end{color:var(--_trailing-content-color)}.start,.end{align-items:center;justify-content:center}.with-start .start{margin-inline:var(--_with-leading-content-leading-space) var(--_content-space)}.with-end .end{margin-inline:var(--_content-space) var(--_with-trailing-content-trailing-space)}.middle{align-items:stretch;align-self:baseline;flex:1}.content{color:var(--_content-color);display:flex;flex:1;opacity:0;transition:opacity 83ms cubic-bezier(0.2, 0, 0, 1)}.no-label .content,.focused .content,.populated .content{opacity:1;transition-delay:67ms}:is(.disabled,.disable-transitions) .content{transition:none}.content ::slotted(*){all:unset;color:currentColor;font-family:var(--_content-font);font-size:var(--_content-size);line-height:var(--_content-line-height);font-weight:var(--_content-weight);width:100%;overflow-wrap:revert;white-space:revert}.content ::slotted(:not(textarea)){padding-top:var(--_top-space);padding-bottom:var(--_bottom-space)}.content ::slotted(textarea){margin-top:var(--_top-space);margin-bottom:var(--_bottom-space)}:hover .content{color:var(--_hover-content-color)}:hover .start{color:var(--_hover-leading-content-color)}:hover .end{color:var(--_hover-trailing-content-color)}.focused .content{color:var(--_focus-content-color)}.focused .start{color:var(--_focus-leading-content-color)}.focused .end{color:var(--_focus-trailing-content-color)}.disabled .content{color:var(--_disabled-content-color)}.disabled.no-label .content,.disabled.focused .content,.disabled.populated .content{opacity:var(--_disabled-content-opacity)}.disabled .start{color:var(--_disabled-leading-content-color);opacity:var(--_disabled-leading-content-opacity)}.disabled .end{color:var(--_disabled-trailing-content-color);opacity:var(--_disabled-trailing-content-opacity)}.error .content{color:var(--_error-content-color)}.error .start{color:var(--_error-leading-content-color)}.error .end{color:var(--_error-trailing-content-color)}.error:hover .content{color:var(--_error-hover-content-color)}.error:hover .start{color:var(--_error-hover-leading-content-color)}.error:hover .end{color:var(--_error-hover-trailing-content-color)}.error.focused .content{color:var(--_error-focus-content-color)}.error.focused .start{color:var(--_error-focus-leading-content-color)}.error.focused .end{color:var(--_error-focus-trailing-content-color)}}@layer hcm{@media(forced-colors: active){.disabled :is(.start,.content,.end){color:GrayText;opacity:1}}}@layer styles{.label{box-sizing:border-box;color:var(--_label-text-color);overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap;z-index:1;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);width:min-content}.label-wrapper{inset:0;pointer-events:none;position:absolute}.label.resting{position:absolute;top:var(--_top-space)}.label.floating{font-size:var(--_label-text-populated-size);line-height:var(--_label-text-populated-line-height);transform-origin:top left}.label.hidden{opacity:0}.no-label .label{display:none}.label-wrapper{inset:0;position:absolute;text-align:initial}:hover .label{color:var(--_hover-label-text-color)}.focused .label{color:var(--_focus-label-text-color)}.disabled .label{color:var(--_disabled-label-text-color)}.disabled .label:not(.hidden){opacity:var(--_disabled-label-text-opacity)}.error .label{color:var(--_error-label-text-color)}.error:hover .label{color:var(--_error-hover-label-text-color)}.error.focused .label{color:var(--_error-focus-label-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .label:not(.hidden){color:GrayText;opacity:1}}}@layer styles{.supporting-text{color:var(--_supporting-text-color);display:flex;font-family:var(--_supporting-text-font);font-size:var(--_supporting-text-size);line-height:var(--_supporting-text-line-height);font-weight:var(--_supporting-text-weight);gap:16px;justify-content:space-between;padding-inline-start:var(--_supporting-text-leading-space);padding-inline-end:var(--_supporting-text-trailing-space);padding-top:var(--_supporting-text-top-space)}.supporting-text :nth-child(2){flex-shrink:0}:hover .supporting-text{color:var(--_hover-supporting-text-color)}.focus .supporting-text{color:var(--_focus-supporting-text-color)}.disabled .supporting-text{color:var(--_disabled-supporting-text-color);opacity:var(--_disabled-supporting-text-opacity)}.error .supporting-text{color:var(--_error-supporting-text-color)}.error:hover .supporting-text{color:var(--_error-hover-supporting-text-color)}.error.focus .supporting-text{color:var(--_error-focus-supporting-text-color)}}@layer hcm{@media(forced-colors: active){.disabled .supporting-text{color:GrayText;opacity:1}}}
671
+ `;
672
+ styles$2.styleSheet;
673
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/field/outlined-field.js
674
+ /**
675
+ * @license
676
+ * Copyright 2021 Google LLC
677
+ * SPDX-License-Identifier: Apache-2.0
678
+ */
679
+ /**
680
+ * TODO(b/228525797): add docs
681
+ * @final
682
+ * @suppress {visibility}
683
+ */
684
+ var MdOutlinedField = class MdOutlinedField extends OutlinedField {};
685
+ MdOutlinedField.styles = [styles$2, styles$3];
686
+ MdOutlinedField = __decorate([t$1("md-outlined-field")], MdOutlinedField);
687
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/textfield/internal/outlined-styles.cssresult.js
688
+ /**
689
+ * @license
690
+ * Copyright 2026 Google LLC
691
+ * SPDX-License-Identifier: Apache-2.0
692
+ */
693
+ var styles$1 = i$3`:host{--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-outlined-text-field-container-shape-start-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-text-field-container-shape-start-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-text-field-container-shape-end-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-text-field-container-shape-end-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_icon-input-space: var(--md-outlined-text-field-icon-input-space, 16px);--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--_with-leading-icon-leading-space: var(--md-outlined-text-field-with-leading-icon-leading-space, 12px);--_with-trailing-icon-trailing-space: var(--md-outlined-text-field-with-trailing-icon-trailing-space, 12px);--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-space: var(--_icon-input-space);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space);--md-outlined-field-with-leading-content-leading-space: var(--_with-leading-icon-leading-space);--md-outlined-field-with-trailing-content-trailing-space: var(--_with-trailing-icon-trailing-space)}
694
+ `;
695
+ styles$1.styleSheet;
696
+ // ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/directive-helpers.js
697
+ /**
698
+ * @license
699
+ * Copyright 2020 Google LLC
700
+ * SPDX-License-Identifier: BSD-3-Clause
701
+ */ var { I: t } = Z, r = (o) => void 0 === o.strings, m = {}, p = (o, t = m) => o._$AH = t;
702
+ // ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/directives/live.js
703
+ /**
704
+ * @license
705
+ * Copyright 2020 Google LLC
706
+ * SPDX-License-Identifier: BSD-3-Clause
707
+ */ var l = e$4(class extends i$4 {
708
+ constructor(r$2) {
709
+ if (super(r$2), r$2.type !== t$2.PROPERTY && r$2.type !== t$2.ATTRIBUTE && r$2.type !== t$2.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
710
+ if (!r(r$2)) throw Error("`live` bindings can only contain a single expression");
711
+ }
712
+ render(r) {
713
+ return r;
714
+ }
715
+ update(i, [t]) {
716
+ if (t === E || t === A) return t;
717
+ const o = i.element, l = i.name;
718
+ if (i.type === t$2.PROPERTY) {
719
+ if (t === o[l]) return E;
720
+ } else if (i.type === t$2.BOOLEAN_ATTRIBUTE) {
721
+ if (!!t === o.hasAttribute(l)) return E;
722
+ } else if (i.type === t$2.ATTRIBUTE && o.getAttribute(l) === t + "") return E;
723
+ return p(i), t;
724
+ }
725
+ });
726
+ // ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/directives/style-map.js
727
+ /**
728
+ * @license
729
+ * Copyright 2018 Google LLC
730
+ * SPDX-License-Identifier: BSD-3-Clause
731
+ */ var n = "important";
732
+ var i = " !" + n;
733
+ var o = e$4(class extends i$4 {
734
+ constructor(t) {
735
+ if (super(t), t.type !== t$2.ATTRIBUTE || "style" !== t.name || t.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
736
+ }
737
+ render(t) {
738
+ return Object.keys(t).reduce((e, r) => {
739
+ const s = t[r];
740
+ return null == s ? e : e + `${r = r.includes("-") ? r : r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s};`;
741
+ }, "");
742
+ }
743
+ update(e, [r]) {
744
+ const { style: s } = e.element;
745
+ if (void 0 === this.ft) return this.ft = new Set(Object.keys(r)), this.render(r);
746
+ for (const t of this.ft) r[t] ?? (this.ft.delete(t), t.includes("-") ? s.removeProperty(t) : s[t] = null);
747
+ for (const t in r) {
748
+ const e = r[t];
749
+ if (null != e) {
750
+ this.ft.add(t);
751
+ const r = "string" == typeof e && e.endsWith(i);
752
+ t.includes("-") || r ? s.setProperty(t, r ? e.slice(0, -11) : e, r ? n : "") : s[t] = e;
753
+ }
754
+ }
755
+ return E;
756
+ }
757
+ });
758
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/controller/string-converter.js
759
+ /**
760
+ * @license
761
+ * Copyright 2022 Google LLC
762
+ * SPDX-License-Identifier: Apache-2.0
763
+ */
764
+ var stringConverter = {
765
+ fromAttribute(value) {
766
+ return value ?? "";
767
+ },
768
+ toAttribute(value) {
769
+ return value || null;
770
+ }
771
+ };
772
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/constraint-validation.js
773
+ /**
774
+ * @license
775
+ * Copyright 2023 Google LLC
776
+ * SPDX-License-Identifier: Apache-2.0
777
+ */
778
+ /**
779
+ * A symbol property used to create a constraint validation `Validator`.
780
+ * Required for all `mixinConstraintValidation()` elements.
781
+ */
782
+ var createValidator = Symbol("createValidator");
783
+ /**
784
+ * A symbol property used to return an anchor for constraint validation popups.
785
+ * Required for all `mixinConstraintValidation()` elements.
786
+ */
787
+ var getValidityAnchor = Symbol("getValidityAnchor");
788
+ var privateSyncValidity = Symbol("privateSyncValidity");
789
+ var privateCustomValidationMessage = Symbol("privateCustomValidationMessage");
790
+ /**
791
+ * Mixes in constraint validation APIs for an element.
792
+ *
793
+ * See https://developer.mozilla.org/en-US/docs/Web/HTML/Constraint_validation
794
+ * for more details.
795
+ *
796
+ * Implementations must provide a validator to cache and compute its validity,
797
+ * along with a shadow root element to anchor validation popups to.
798
+ *
799
+ * @example
800
+ * ```ts
801
+ * const baseClass = mixinConstraintValidation(
802
+ * mixinFormAssociated(mixinElementInternals(LitElement))
803
+ * );
804
+ *
805
+ * class MyCheckbox extends baseClass {
806
+ * \@property({type: Boolean}) checked = false;
807
+ * \@property({type: Boolean}) required = false;
808
+ *
809
+ * [createValidator]() {
810
+ * return new CheckboxValidator(() => this);
811
+ * }
812
+ *
813
+ * [getValidityAnchor]() {
814
+ * return this.renderRoot.querySelector('.root');
815
+ * }
816
+ * }
817
+ * ```
818
+ *
819
+ * @param base The class to mix functionality into.
820
+ * @return The provided class with `ConstraintValidation` mixed in.
821
+ */
822
+ function mixinConstraintValidation(base) {
823
+ var _a;
824
+ class ConstraintValidationElement extends base {
825
+ constructor() {
826
+ super(...arguments);
827
+ /**
828
+ * Needed for Safari, see https://bugs.webkit.org/show_bug.cgi?id=261432
829
+ * Replace with this[internals].validity.customError when resolved.
830
+ */
831
+ this[_a] = "";
832
+ }
833
+ get validity() {
834
+ this[privateSyncValidity]();
835
+ return this[internals].validity;
836
+ }
837
+ get validationMessage() {
838
+ this[privateSyncValidity]();
839
+ return this[internals].validationMessage;
840
+ }
841
+ get willValidate() {
842
+ this[privateSyncValidity]();
843
+ return this[internals].willValidate;
844
+ }
845
+ checkValidity() {
846
+ this[privateSyncValidity]();
847
+ return this[internals].checkValidity();
848
+ }
849
+ reportValidity() {
850
+ this[privateSyncValidity]();
851
+ return this[internals].reportValidity();
852
+ }
853
+ setCustomValidity(error) {
854
+ this[privateCustomValidationMessage] = error;
855
+ this[privateSyncValidity]();
856
+ }
857
+ requestUpdate(name, oldValue, options) {
858
+ super.requestUpdate(name, oldValue, options);
859
+ this[privateSyncValidity]();
860
+ }
861
+ firstUpdated(changed) {
862
+ super.firstUpdated(changed);
863
+ this[privateSyncValidity]();
864
+ }
865
+ [(_a = privateCustomValidationMessage, privateSyncValidity)]() {}
866
+ [createValidator]() {
867
+ throw new Error("Implement [createValidator]");
868
+ }
869
+ [getValidityAnchor]() {
870
+ throw new Error("Implement [getValidityAnchor]");
871
+ }
872
+ }
873
+ return ConstraintValidationElement;
874
+ }
875
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/on-report-validity.js
876
+ /**
877
+ * @license
878
+ * Copyright 2023 Google LLC
879
+ * SPDX-License-Identifier: Apache-2.0
880
+ */
881
+ /**
882
+ * A symbol property used for a callback when validity has been reported.
883
+ */
884
+ var onReportValidity = Symbol("onReportValidity");
885
+ var privateCleanupFormListeners = Symbol("privateCleanupFormListeners");
886
+ var privateDoNotReportInvalid = Symbol("privateDoNotReportInvalid");
887
+ var privateIsSelfReportingValidity = Symbol("privateIsSelfReportingValidity");
888
+ var privateCallOnReportValidity = Symbol("privateCallOnReportValidity");
889
+ /**
890
+ * Mixes in a callback for constraint validation when validity should be
891
+ * styled and reported to the user.
892
+ *
893
+ * This is commonly used in text-field-like controls that display error styles
894
+ * and error messages.
895
+ *
896
+ * @example
897
+ * ```ts
898
+ * const baseClass = mixinOnReportValidity(
899
+ * mixinConstraintValidation(
900
+ * mixinFormAssociated(mixinElementInternals(LitElement)),
901
+ * ),
902
+ * );
903
+ *
904
+ * class MyField extends baseClass {
905
+ * \@property({type: Boolean}) error = false;
906
+ * \@property() errorMessage = '';
907
+ *
908
+ * [onReportValidity](invalidEvent: Event | null) {
909
+ * this.error = !!invalidEvent;
910
+ * this.errorMessage = this.validationMessage;
911
+ *
912
+ * // Optionally prevent platform popup from displaying
913
+ * invalidEvent?.preventDefault();
914
+ * }
915
+ * }
916
+ * ```
917
+ *
918
+ * @param base The class to mix functionality into.
919
+ * @return The provided class with `OnReportValidity` mixed in.
920
+ */
921
+ function mixinOnReportValidity(base) {
922
+ var _a, _b, _c;
923
+ class OnReportValidityElement extends base {
924
+ constructor(...args) {
925
+ super(...args);
926
+ /**
927
+ * Used to clean up event listeners when a new form is associated.
928
+ */
929
+ this[_a] = new AbortController();
930
+ /**
931
+ * Used to determine if an invalid event should report validity. Invalid
932
+ * events from `checkValidity()` do not trigger reporting.
933
+ */
934
+ this[_b] = false;
935
+ /**
936
+ * Used to determine if the control is reporting validity from itself, or
937
+ * if a `<form>` is causing the validity report. Forms have different
938
+ * control focusing behavior.
939
+ */
940
+ this[_c] = false;
941
+ }
942
+ checkValidity() {
943
+ this[privateDoNotReportInvalid] = true;
944
+ const valid = super.checkValidity();
945
+ this[privateDoNotReportInvalid] = false;
946
+ return valid;
947
+ }
948
+ reportValidity() {
949
+ this[privateIsSelfReportingValidity] = true;
950
+ const valid = super.reportValidity();
951
+ if (valid) this[privateCallOnReportValidity](null);
952
+ this[privateIsSelfReportingValidity] = false;
953
+ return valid;
954
+ }
955
+ [(_a = privateCleanupFormListeners, _b = privateDoNotReportInvalid, _c = privateIsSelfReportingValidity, privateCallOnReportValidity)](invalidEvent) {
956
+ const wasCanceled = invalidEvent?.defaultPrevented;
957
+ if (wasCanceled) return;
958
+ this[onReportValidity](invalidEvent);
959
+ if (!(!wasCanceled && invalidEvent?.defaultPrevented)) return;
960
+ if (this[privateIsSelfReportingValidity] || isFirstInvalidControlInForm(this[internals].form, this)) this.focus();
961
+ }
962
+ [onReportValidity](invalidEvent) {
963
+ throw new Error("Implement [onReportValidity]");
964
+ }
965
+ formAssociatedCallback(form) {
966
+ if (super.formAssociatedCallback) super.formAssociatedCallback(form);
967
+ this[privateCleanupFormListeners].abort();
968
+ if (!form) return;
969
+ this[privateCleanupFormListeners] = new AbortController();
970
+ addFormReportValidListener(this, form, () => {
971
+ this[privateCallOnReportValidity](null);
972
+ }, this[privateCleanupFormListeners].signal);
973
+ }
974
+ }
975
+ return OnReportValidityElement;
976
+ }
977
+ /**
978
+ * Add a listener that fires when a form runs constraint validation on a control
979
+ * and it is valid. This is needed to clear previously invalid styles.
980
+ *
981
+ * @param control The control of the form to listen for valid events.
982
+ * @param form The control's form that can run constraint validation.
983
+ * @param onControlValid A listener that is called when the form runs constraint
984
+ * validation and the control is valid.
985
+ * @param cleanup A cleanup signal to remove the listener.
986
+ */
987
+ function addFormReportValidListener(control, form, onControlValid, cleanup) {
988
+ const validateHooks = getFormValidateHooks(form);
989
+ let controlFiredInvalid = false;
990
+ let cleanupInvalidListener;
991
+ let isNextSubmitFromHook = false;
992
+ validateHooks.addEventListener("before", () => {
993
+ isNextSubmitFromHook = true;
994
+ cleanupInvalidListener = new AbortController();
995
+ controlFiredInvalid = false;
996
+ control.addEventListener("invalid", () => {
997
+ controlFiredInvalid = true;
998
+ }, { signal: cleanupInvalidListener.signal });
999
+ }, { signal: cleanup });
1000
+ validateHooks.addEventListener("after", () => {
1001
+ isNextSubmitFromHook = false;
1002
+ cleanupInvalidListener?.abort();
1003
+ if (controlFiredInvalid) return;
1004
+ onControlValid();
1005
+ }, { signal: cleanup });
1006
+ form.addEventListener("submit", () => {
1007
+ if (isNextSubmitFromHook) return;
1008
+ onControlValid();
1009
+ }, { signal: cleanup });
1010
+ }
1011
+ var FORM_VALIDATE_HOOKS = /* @__PURE__ */ new WeakMap();
1012
+ /**
1013
+ * Get a hooks `EventTarget` that dispatches 'before' and 'after' events that
1014
+ * fire before a form runs constraint validation and immediately after it
1015
+ * finishes running constraint validation on its controls.
1016
+ *
1017
+ * This happens during `form.reportValidity()` and `form.requestSubmit()`.
1018
+ *
1019
+ * @param form The form to get or set up hooks for.
1020
+ * @return A hooks `EventTarget` to add listeners to.
1021
+ */
1022
+ function getFormValidateHooks(form) {
1023
+ if (!FORM_VALIDATE_HOOKS.has(form)) {
1024
+ const hooks = new EventTarget();
1025
+ FORM_VALIDATE_HOOKS.set(form, hooks);
1026
+ for (const methodName of ["reportValidity", "requestSubmit"]) {
1027
+ const superMethod = form[methodName];
1028
+ form[methodName] = function() {
1029
+ hooks.dispatchEvent(new Event("before"));
1030
+ const result = Reflect.apply(superMethod, this, arguments);
1031
+ hooks.dispatchEvent(new Event("after"));
1032
+ return result;
1033
+ };
1034
+ }
1035
+ }
1036
+ return FORM_VALIDATE_HOOKS.get(form);
1037
+ }
1038
+ /**
1039
+ * Checks if a control is the first invalid control in a form.
1040
+ *
1041
+ * @param form The control's form. When `null`, the control doesn't have a form
1042
+ * and the method returns true.
1043
+ * @param control The control to check.
1044
+ * @return True if there is no form or if the control is the form's first
1045
+ * invalid control.
1046
+ */
1047
+ function isFirstInvalidControlInForm(form, control) {
1048
+ if (!form) return true;
1049
+ let firstInvalidControl;
1050
+ for (const element of form.elements) if (element.matches(":invalid")) {
1051
+ firstInvalidControl = element;
1052
+ break;
1053
+ }
1054
+ return firstInvalidControl === control;
1055
+ }
1056
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/validators/validator.js
1057
+ /**
1058
+ * @license
1059
+ * Copyright 2023 Google LLC
1060
+ * SPDX-License-Identifier: Apache-2.0
1061
+ */
1062
+ /**
1063
+ * A class that computes and caches `ValidityStateFlags` for a component with
1064
+ * a given `State` interface.
1065
+ *
1066
+ * Cached performance before computing validity is important since constraint
1067
+ * validation must be checked frequently and synchronously when properties
1068
+ * change.
1069
+ *
1070
+ * @template State The expected interface of properties relevant to constraint
1071
+ * validation.
1072
+ */
1073
+ var Validator = class {
1074
+ /**
1075
+ * Creates a new validator.
1076
+ *
1077
+ * @param getCurrentState A callback that returns the current state of
1078
+ * constraint validation-related properties.
1079
+ */
1080
+ constructor(getCurrentState) {
1081
+ this.getCurrentState = getCurrentState;
1082
+ /**
1083
+ * The current validity state and message. This is cached and returns if
1084
+ * constraint validation state does not change.
1085
+ */
1086
+ this.currentValidity = {
1087
+ validity: {},
1088
+ validationMessage: ""
1089
+ };
1090
+ }
1091
+ /**
1092
+ * Returns the current `ValidityStateFlags` and validation message for the
1093
+ * validator.
1094
+ *
1095
+ * If the constraint validation state has not changed, this will return a
1096
+ * cached result. This is important since `getValidity()` can be called
1097
+ * frequently in response to synchronous property changes.
1098
+ *
1099
+ * @return The current validity and validation message.
1100
+ */
1101
+ getValidity() {
1102
+ const state = this.getCurrentState();
1103
+ if (!(!this.prevState || !this.equals(this.prevState, state))) return this.currentValidity;
1104
+ const { validity, validationMessage } = this.computeValidity(state);
1105
+ this.prevState = this.copy(state);
1106
+ this.currentValidity = {
1107
+ validationMessage,
1108
+ validity: {
1109
+ badInput: validity.badInput,
1110
+ customError: validity.customError,
1111
+ patternMismatch: validity.patternMismatch,
1112
+ rangeOverflow: validity.rangeOverflow,
1113
+ rangeUnderflow: validity.rangeUnderflow,
1114
+ stepMismatch: validity.stepMismatch,
1115
+ tooLong: validity.tooLong,
1116
+ tooShort: validity.tooShort,
1117
+ typeMismatch: validity.typeMismatch,
1118
+ valueMissing: validity.valueMissing
1119
+ }
1120
+ };
1121
+ return this.currentValidity;
1122
+ }
1123
+ };
1124
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/labs/behaviors/validators/text-field-validator.js
1125
+ /**
1126
+ * @license
1127
+ * Copyright 2023 Google LLC
1128
+ * SPDX-License-Identifier: Apache-2.0
1129
+ */
1130
+ /**
1131
+ * A validator that provides constraint validation that emulates `<input>` and
1132
+ * `<textarea>` validation.
1133
+ */
1134
+ var TextFieldValidator = class extends Validator {
1135
+ computeValidity({ state, renderedControl }) {
1136
+ let inputOrTextArea = renderedControl;
1137
+ if (isInputState(state) && !inputOrTextArea) {
1138
+ inputOrTextArea = this.inputControl || document.createElement("input");
1139
+ this.inputControl = inputOrTextArea;
1140
+ } else if (!inputOrTextArea) {
1141
+ inputOrTextArea = this.textAreaControl || document.createElement("textarea");
1142
+ this.textAreaControl = inputOrTextArea;
1143
+ }
1144
+ const input = isInputState(state) ? inputOrTextArea : null;
1145
+ if (input) input.type = state.type;
1146
+ if (inputOrTextArea.value !== state.value) inputOrTextArea.value = state.value;
1147
+ inputOrTextArea.required = state.required;
1148
+ if (input) {
1149
+ const inputState = state;
1150
+ if (inputState.pattern) input.pattern = inputState.pattern;
1151
+ else input.removeAttribute("pattern");
1152
+ if (inputState.min) input.min = inputState.min;
1153
+ else input.removeAttribute("min");
1154
+ if (inputState.max) input.max = inputState.max;
1155
+ else input.removeAttribute("max");
1156
+ if (inputState.step) input.step = inputState.step;
1157
+ else input.removeAttribute("step");
1158
+ }
1159
+ if ((state.minLength ?? -1) > -1) inputOrTextArea.setAttribute("minlength", String(state.minLength));
1160
+ else inputOrTextArea.removeAttribute("minlength");
1161
+ if ((state.maxLength ?? -1) > -1) inputOrTextArea.setAttribute("maxlength", String(state.maxLength));
1162
+ else inputOrTextArea.removeAttribute("maxlength");
1163
+ return {
1164
+ validity: inputOrTextArea.validity,
1165
+ validationMessage: inputOrTextArea.validationMessage
1166
+ };
1167
+ }
1168
+ equals({ state: prev }, { state: next }) {
1169
+ const inputOrTextAreaEqual = prev.type === next.type && prev.value === next.value && prev.required === next.required && prev.minLength === next.minLength && prev.maxLength === next.maxLength;
1170
+ if (!isInputState(prev) || !isInputState(next)) return inputOrTextAreaEqual;
1171
+ return inputOrTextAreaEqual && prev.pattern === next.pattern && prev.min === next.min && prev.max === next.max && prev.step === next.step;
1172
+ }
1173
+ copy({ state }) {
1174
+ return {
1175
+ state: isInputState(state) ? this.copyInput(state) : this.copyTextArea(state),
1176
+ renderedControl: null
1177
+ };
1178
+ }
1179
+ copyInput(state) {
1180
+ const { type, pattern, min, max, step } = state;
1181
+ return {
1182
+ ...this.copySharedState(state),
1183
+ type,
1184
+ pattern,
1185
+ min,
1186
+ max,
1187
+ step
1188
+ };
1189
+ }
1190
+ copyTextArea(state) {
1191
+ return {
1192
+ ...this.copySharedState(state),
1193
+ type: state.type
1194
+ };
1195
+ }
1196
+ copySharedState({ value, required, minLength, maxLength }) {
1197
+ return {
1198
+ value,
1199
+ required,
1200
+ minLength,
1201
+ maxLength
1202
+ };
1203
+ }
1204
+ };
1205
+ function isInputState(state) {
1206
+ return state.type !== "textarea";
1207
+ }
1208
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/textfield/internal/text-field.js
1209
+ /**
1210
+ * @license
1211
+ * Copyright 2021 Google LLC
1212
+ * SPDX-License-Identifier: Apache-2.0
1213
+ */
1214
+ var textFieldBaseClass = mixinDelegatesAria(mixinOnReportValidity(mixinConstraintValidation(mixinFormAssociated(mixinElementInternals(i$2)))));
1215
+ /**
1216
+ * A text field component.
1217
+ *
1218
+ * @fires select {Event} The native `select` event on
1219
+ * [`<input>`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select_event)
1220
+ * --bubbles
1221
+ * @fires change {Event} The native `change` event on
1222
+ * [`<input>`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/change_event)
1223
+ * --bubbles
1224
+ * @fires input {InputEvent} The native `input` event on
1225
+ * [`<input>`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event)
1226
+ * --bubbles --composed
1227
+ */
1228
+ var TextField = class extends textFieldBaseClass {
1229
+ constructor() {
1230
+ super(...arguments);
1231
+ /**
1232
+ * Gets or sets whether or not the text field is in a visually invalid state.
1233
+ *
1234
+ * This error state overrides the error state controlled by
1235
+ * `reportValidity()`.
1236
+ */
1237
+ this.error = false;
1238
+ /**
1239
+ * The error message that replaces supporting text when `error` is true. If
1240
+ * `errorText` is an empty string, then the supporting text will continue to
1241
+ * show.
1242
+ *
1243
+ * This error message overrides the error message displayed by
1244
+ * `reportValidity()`.
1245
+ */
1246
+ this.errorText = "";
1247
+ /**
1248
+ * The floating Material label of the textfield component. It informs the user
1249
+ * about what information is requested for a text field. It is aligned with
1250
+ * the input text, is always visible, and it floats when focused or when text
1251
+ * is entered into the textfield. This label also sets accessibilty labels,
1252
+ * but the accessible label is overriden by `aria-label`.
1253
+ *
1254
+ * Learn more about floating labels from the Material Design guidelines:
1255
+ * https://m3.material.io/components/text-fields/guidelines
1256
+ */
1257
+ this.label = "";
1258
+ /**
1259
+ * Disables the asterisk on the floating label, when the text field is
1260
+ * required.
1261
+ */
1262
+ this.noAsterisk = false;
1263
+ /**
1264
+ * Indicates that the user must specify a value for the input before the
1265
+ * owning form can be submitted and will render an error state when
1266
+ * `reportValidity()` is invoked when value is empty. Additionally the
1267
+ * floating label will render an asterisk `"*"` when true.
1268
+ *
1269
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/required
1270
+ */
1271
+ this.required = false;
1272
+ /**
1273
+ * The current value of the text field. It is always a string.
1274
+ */
1275
+ this.value = "";
1276
+ /**
1277
+ * An optional prefix to display before the input value.
1278
+ */
1279
+ this.prefixText = "";
1280
+ /**
1281
+ * An optional suffix to display after the input value.
1282
+ */
1283
+ this.suffixText = "";
1284
+ /**
1285
+ * Whether or not the text field has a leading icon. Used for SSR.
1286
+ */
1287
+ this.hasLeadingIcon = false;
1288
+ /**
1289
+ * Whether or not the text field has a trailing icon. Used for SSR.
1290
+ */
1291
+ this.hasTrailingIcon = false;
1292
+ /**
1293
+ * Conveys additional information below the text field, such as how it should
1294
+ * be used.
1295
+ */
1296
+ this.supportingText = "";
1297
+ /**
1298
+ * Override the input text CSS `direction`. Useful for RTL languages that use
1299
+ * LTR notation for fractions.
1300
+ */
1301
+ this.textDirection = "";
1302
+ /**
1303
+ * The number of rows to display for a `type="textarea"` text field.
1304
+ * Defaults to 2.
1305
+ */
1306
+ this.rows = 2;
1307
+ /**
1308
+ * The number of cols to display for a `type="textarea"` text field.
1309
+ * Defaults to 20.
1310
+ */
1311
+ this.cols = 20;
1312
+ this.inputMode = "";
1313
+ /**
1314
+ * Defines the greatest value in the range of permitted values.
1315
+ *
1316
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max
1317
+ */
1318
+ this.max = "";
1319
+ /**
1320
+ * The maximum number of characters a user can enter into the text field. Set
1321
+ * to -1 for none.
1322
+ *
1323
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength
1324
+ */
1325
+ this.maxLength = -1;
1326
+ /**
1327
+ * Defines the most negative value in the range of permitted values.
1328
+ *
1329
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min
1330
+ */
1331
+ this.min = "";
1332
+ /**
1333
+ * The minimum number of characters a user can enter into the text field. Set
1334
+ * to -1 for none.
1335
+ *
1336
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength
1337
+ */
1338
+ this.minLength = -1;
1339
+ /**
1340
+ * When true, hide the spinner for `type="number"` text fields.
1341
+ */
1342
+ this.noSpinner = false;
1343
+ /**
1344
+ * A regular expression that the text field's value must match to pass
1345
+ * constraint validation.
1346
+ *
1347
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern
1348
+ */
1349
+ this.pattern = "";
1350
+ /**
1351
+ * Defines the text displayed in the textfield when it has no value. Provides
1352
+ * a brief hint to the user as to the expected type of data that should be
1353
+ * entered into the control. Unlike `label`, the placeholder is not visible
1354
+ * and does not float when the textfield has a value.
1355
+ *
1356
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/placeholder
1357
+ */
1358
+ this.placeholder = "";
1359
+ /**
1360
+ * Indicates whether or not a user should be able to edit the text field's
1361
+ * value.
1362
+ *
1363
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly
1364
+ */
1365
+ this.readOnly = false;
1366
+ /**
1367
+ * Indicates that input accepts multiple email addresses.
1368
+ *
1369
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email#multiple
1370
+ */
1371
+ this.multiple = false;
1372
+ /**
1373
+ * Returns or sets the element's step attribute, which works with min and max
1374
+ * to limit the increments at which a numeric or date-time value can be set.
1375
+ *
1376
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step
1377
+ */
1378
+ this.step = "";
1379
+ /**
1380
+ * The `<input>` type to use, defaults to "text". The type greatly changes how
1381
+ * the text field behaves.
1382
+ *
1383
+ * Text fields support a limited number of `<input>` types:
1384
+ *
1385
+ * - text
1386
+ * - textarea
1387
+ * - email
1388
+ * - number
1389
+ * - password
1390
+ * - search
1391
+ * - tel
1392
+ * - url
1393
+ *
1394
+ * See
1395
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types
1396
+ * for more details on each input type.
1397
+ */
1398
+ this.type = "text";
1399
+ /**
1400
+ * Describes what, if any, type of autocomplete functionality the input
1401
+ * should provide.
1402
+ *
1403
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
1404
+ */
1405
+ this.autocomplete = "";
1406
+ /**
1407
+ * Returns true when the text field has been interacted with. Native
1408
+ * validation errors only display in response to user interactions.
1409
+ */
1410
+ this.dirty = false;
1411
+ this.focused = false;
1412
+ /**
1413
+ * Whether or not a native error has been reported via `reportValidity()`.
1414
+ */
1415
+ this.nativeError = false;
1416
+ /**
1417
+ * The validation message displayed from a native error via
1418
+ * `reportValidity()`.
1419
+ */
1420
+ this.nativeErrorText = "";
1421
+ }
1422
+ /**
1423
+ * Gets or sets the direction in which selection occurred.
1424
+ */
1425
+ get selectionDirection() {
1426
+ return this.getInputOrTextarea().selectionDirection;
1427
+ }
1428
+ set selectionDirection(value) {
1429
+ this.getInputOrTextarea().selectionDirection = value;
1430
+ }
1431
+ /**
1432
+ * Gets or sets the end position or offset of a text selection.
1433
+ */
1434
+ get selectionEnd() {
1435
+ return this.getInputOrTextarea().selectionEnd;
1436
+ }
1437
+ set selectionEnd(value) {
1438
+ this.getInputOrTextarea().selectionEnd = value;
1439
+ }
1440
+ /**
1441
+ * Gets or sets the starting position or offset of a text selection.
1442
+ */
1443
+ get selectionStart() {
1444
+ return this.getInputOrTextarea().selectionStart;
1445
+ }
1446
+ set selectionStart(value) {
1447
+ this.getInputOrTextarea().selectionStart = value;
1448
+ }
1449
+ /**
1450
+ * The text field's value as a number.
1451
+ */
1452
+ get valueAsNumber() {
1453
+ const input = this.getInput();
1454
+ if (!input) return NaN;
1455
+ return input.valueAsNumber;
1456
+ }
1457
+ set valueAsNumber(value) {
1458
+ const input = this.getInput();
1459
+ if (!input) return;
1460
+ input.valueAsNumber = value;
1461
+ this.value = input.value;
1462
+ }
1463
+ /**
1464
+ * The text field's value as a Date.
1465
+ */
1466
+ get valueAsDate() {
1467
+ const input = this.getInput();
1468
+ if (!input) return null;
1469
+ return input.valueAsDate;
1470
+ }
1471
+ set valueAsDate(value) {
1472
+ const input = this.getInput();
1473
+ if (!input) return;
1474
+ input.valueAsDate = value;
1475
+ this.value = input.value;
1476
+ }
1477
+ get hasError() {
1478
+ return this.error || this.nativeError;
1479
+ }
1480
+ /**
1481
+ * Selects all the text in the text field.
1482
+ *
1483
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select
1484
+ */
1485
+ select() {
1486
+ this.getInputOrTextarea().select();
1487
+ }
1488
+ setRangeText(...args) {
1489
+ this.getInputOrTextarea().setRangeText(...args);
1490
+ this.value = this.getInputOrTextarea().value;
1491
+ }
1492
+ /**
1493
+ * Sets the start and end positions of a selection in the text field.
1494
+ *
1495
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange
1496
+ *
1497
+ * @param start The offset into the text field for the start of the selection.
1498
+ * @param end The offset into the text field for the end of the selection.
1499
+ * @param direction The direction in which the selection is performed.
1500
+ */
1501
+ setSelectionRange(start, end, direction) {
1502
+ this.getInputOrTextarea().setSelectionRange(start, end, direction);
1503
+ }
1504
+ /**
1505
+ * Shows the browser picker for an input element of type "date", "time", etc.
1506
+ *
1507
+ * For a full list of supported types, see:
1508
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/showPicker#browser_compatibility
1509
+ *
1510
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/showPicker
1511
+ */
1512
+ showPicker() {
1513
+ const input = this.getInput();
1514
+ if (!input) return;
1515
+ input.showPicker();
1516
+ }
1517
+ /**
1518
+ * Decrements the value of a numeric type text field by `step` or `n` `step`
1519
+ * number of times.
1520
+ *
1521
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepDown
1522
+ *
1523
+ * @param stepDecrement The number of steps to decrement, defaults to 1.
1524
+ */
1525
+ stepDown(stepDecrement) {
1526
+ const input = this.getInput();
1527
+ if (!input) return;
1528
+ input.stepDown(stepDecrement);
1529
+ this.value = input.value;
1530
+ }
1531
+ /**
1532
+ * Increments the value of a numeric type text field by `step` or `n` `step`
1533
+ * number of times.
1534
+ *
1535
+ * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/stepUp
1536
+ *
1537
+ * @param stepIncrement The number of steps to increment, defaults to 1.
1538
+ */
1539
+ stepUp(stepIncrement) {
1540
+ const input = this.getInput();
1541
+ if (!input) return;
1542
+ input.stepUp(stepIncrement);
1543
+ this.value = input.value;
1544
+ }
1545
+ /**
1546
+ * Reset the text field to its default value.
1547
+ */
1548
+ reset() {
1549
+ this.dirty = false;
1550
+ this.value = this.getAttribute("value") ?? "";
1551
+ this.nativeError = false;
1552
+ this.nativeErrorText = "";
1553
+ }
1554
+ attributeChangedCallback(attribute, newValue, oldValue) {
1555
+ if (attribute === "value" && this.dirty) return;
1556
+ super.attributeChangedCallback(attribute, newValue, oldValue);
1557
+ }
1558
+ render() {
1559
+ const classes = {
1560
+ "disabled": this.disabled,
1561
+ "error": !this.disabled && this.hasError,
1562
+ "textarea": this.type === "textarea",
1563
+ "no-spinner": this.noSpinner
1564
+ };
1565
+ return T`
1566
+ <span class="text-field ${e$3(classes)}">
1567
+ ${this.renderField()}
1568
+ </span>
1569
+ `;
1570
+ }
1571
+ updated(changedProperties) {
1572
+ const value = this.getInputOrTextarea().value;
1573
+ if (this.value !== value) this.value = value;
1574
+ }
1575
+ renderField() {
1576
+ return u$1`<${this.fieldTag}
1577
+ class="field"
1578
+ count=${this.value.length}
1579
+ ?disabled=${this.disabled}
1580
+ ?error=${this.hasError}
1581
+ error-text=${this.getErrorText()}
1582
+ ?focused=${this.focused}
1583
+ ?has-end=${this.hasTrailingIcon}
1584
+ ?has-start=${this.hasLeadingIcon}
1585
+ label=${this.label}
1586
+ ?no-asterisk=${this.noAsterisk}
1587
+ max=${this.maxLength}
1588
+ ?populated=${!!this.value}
1589
+ ?required=${this.required}
1590
+ ?resizable=${this.type === "textarea"}
1591
+ supporting-text=${this.supportingText}
1592
+ >
1593
+ ${this.renderLeadingIcon()}
1594
+ ${this.renderInputOrTextarea()}
1595
+ ${this.renderTrailingIcon()}
1596
+ <div id="description" slot="aria-describedby"></div>
1597
+ <slot name="container" slot="container"></slot>
1598
+ </${this.fieldTag}>`;
1599
+ }
1600
+ renderLeadingIcon() {
1601
+ return T`
1602
+ <span class="icon leading" slot="start">
1603
+ <slot name="leading-icon" @slotchange=${this.handleIconChange}></slot>
1604
+ </span>
1605
+ `;
1606
+ }
1607
+ renderTrailingIcon() {
1608
+ return T`
1609
+ <span class="icon trailing" slot="end">
1610
+ <slot name="trailing-icon" @slotchange=${this.handleIconChange}></slot>
1611
+ </span>
1612
+ `;
1613
+ }
1614
+ renderInputOrTextarea() {
1615
+ const style = { "direction": this.textDirection };
1616
+ const ariaLabel = this.ariaLabel || this.label || A;
1617
+ const autocomplete = this.autocomplete;
1618
+ const hasMaxLength = (this.maxLength ?? -1) > -1;
1619
+ const hasMinLength = (this.minLength ?? -1) > -1;
1620
+ if (this.type === "textarea") return T`
1621
+ <textarea
1622
+ class="input"
1623
+ style=${o(style)}
1624
+ aria-describedby="description"
1625
+ aria-invalid=${this.hasError}
1626
+ aria-label=${ariaLabel}
1627
+ autocomplete=${autocomplete || A}
1628
+ name=${this.name || A}
1629
+ ?disabled=${this.disabled}
1630
+ maxlength=${hasMaxLength ? this.maxLength : A}
1631
+ minlength=${hasMinLength ? this.minLength : A}
1632
+ placeholder=${this.placeholder || A}
1633
+ ?readonly=${this.readOnly}
1634
+ ?required=${this.required}
1635
+ rows=${this.rows}
1636
+ cols=${this.cols}
1637
+ .value=${l(this.value)}
1638
+ @change=${this.redispatchEvent}
1639
+ @focus=${this.handleFocusChange}
1640
+ @blur=${this.handleFocusChange}
1641
+ @input=${this.handleInput}
1642
+ @select=${this.redispatchEvent}></textarea>
1643
+ `;
1644
+ const prefix = this.renderPrefix();
1645
+ const suffix = this.renderSuffix();
1646
+ const inputMode = this.inputMode;
1647
+ return T`
1648
+ <div class="input-wrapper">
1649
+ ${prefix}
1650
+ <input
1651
+ class="input"
1652
+ style=${o(style)}
1653
+ aria-describedby="description"
1654
+ aria-invalid=${this.hasError}
1655
+ aria-label=${ariaLabel}
1656
+ autocomplete=${autocomplete || A}
1657
+ name=${this.name || A}
1658
+ ?disabled=${this.disabled}
1659
+ inputmode=${inputMode || A}
1660
+ max=${this.max || A}
1661
+ maxlength=${hasMaxLength ? this.maxLength : A}
1662
+ min=${this.min || A}
1663
+ minlength=${hasMinLength ? this.minLength : A}
1664
+ pattern=${this.pattern || A}
1665
+ placeholder=${this.placeholder || A}
1666
+ ?readonly=${this.readOnly}
1667
+ ?required=${this.required}
1668
+ ?multiple=${this.multiple}
1669
+ step=${this.step || A}
1670
+ type=${this.type}
1671
+ .value=${l(this.value)}
1672
+ @change=${this.redispatchEvent}
1673
+ @focus=${this.handleFocusChange}
1674
+ @blur=${this.handleFocusChange}
1675
+ @input=${this.handleInput}
1676
+ @select=${this.redispatchEvent} />
1677
+ ${suffix}
1678
+ </div>
1679
+ `;
1680
+ }
1681
+ renderPrefix() {
1682
+ return this.renderAffix(this.prefixText, false);
1683
+ }
1684
+ renderSuffix() {
1685
+ return this.renderAffix(this.suffixText, true);
1686
+ }
1687
+ renderAffix(text, isSuffix) {
1688
+ if (!text) return A;
1689
+ return T`<span class="${e$3({
1690
+ "suffix": isSuffix,
1691
+ "prefix": !isSuffix
1692
+ })}">${text}</span>`;
1693
+ }
1694
+ getErrorText() {
1695
+ return this.error ? this.errorText : this.nativeErrorText;
1696
+ }
1697
+ handleFocusChange() {
1698
+ this.focused = this.inputOrTextarea?.matches(":focus") ?? false;
1699
+ }
1700
+ handleInput(event) {
1701
+ this.dirty = true;
1702
+ this.value = event.target.value;
1703
+ }
1704
+ redispatchEvent(event) {
1705
+ redispatchEvent(this, event);
1706
+ }
1707
+ getInputOrTextarea() {
1708
+ if (!this.inputOrTextarea) {
1709
+ this.connectedCallback();
1710
+ this.scheduleUpdate();
1711
+ }
1712
+ if (this.isUpdatePending) this.scheduleUpdate();
1713
+ return this.inputOrTextarea;
1714
+ }
1715
+ getInput() {
1716
+ if (this.type === "textarea") return null;
1717
+ return this.getInputOrTextarea();
1718
+ }
1719
+ handleIconChange() {
1720
+ this.hasLeadingIcon = this.leadingIcons.length > 0;
1721
+ this.hasTrailingIcon = this.trailingIcons.length > 0;
1722
+ }
1723
+ [getFormValue]() {
1724
+ return this.value;
1725
+ }
1726
+ formResetCallback() {
1727
+ this.reset();
1728
+ }
1729
+ formStateRestoreCallback(state) {
1730
+ this.value = state;
1731
+ }
1732
+ focus() {
1733
+ this.getInputOrTextarea().focus();
1734
+ }
1735
+ [createValidator]() {
1736
+ return new TextFieldValidator(() => ({
1737
+ state: this,
1738
+ renderedControl: this.inputOrTextarea
1739
+ }));
1740
+ }
1741
+ [getValidityAnchor]() {
1742
+ return this.inputOrTextarea;
1743
+ }
1744
+ [onReportValidity](invalidEvent) {
1745
+ invalidEvent?.preventDefault();
1746
+ const prevMessage = this.getErrorText();
1747
+ this.nativeError = !!invalidEvent;
1748
+ this.nativeErrorText = this.validationMessage;
1749
+ if (prevMessage === this.getErrorText()) this.field?.reannounceError();
1750
+ }
1751
+ };
1752
+ /** @nocollapse */
1753
+ TextField.shadowRootOptions = {
1754
+ ...i$2.shadowRootOptions,
1755
+ delegatesFocus: true
1756
+ };
1757
+ __decorate([n$2({
1758
+ type: Boolean,
1759
+ reflect: true
1760
+ })], TextField.prototype, "error", void 0);
1761
+ __decorate([n$2({ attribute: "error-text" })], TextField.prototype, "errorText", void 0);
1762
+ __decorate([n$2()], TextField.prototype, "label", void 0);
1763
+ __decorate([n$2({
1764
+ type: Boolean,
1765
+ attribute: "no-asterisk"
1766
+ })], TextField.prototype, "noAsterisk", void 0);
1767
+ __decorate([n$2({
1768
+ type: Boolean,
1769
+ reflect: true
1770
+ })], TextField.prototype, "required", void 0);
1771
+ __decorate([n$2()], TextField.prototype, "value", void 0);
1772
+ __decorate([n$2({ attribute: "prefix-text" })], TextField.prototype, "prefixText", void 0);
1773
+ __decorate([n$2({ attribute: "suffix-text" })], TextField.prototype, "suffixText", void 0);
1774
+ __decorate([n$2({
1775
+ type: Boolean,
1776
+ attribute: "has-leading-icon"
1777
+ })], TextField.prototype, "hasLeadingIcon", void 0);
1778
+ __decorate([n$2({
1779
+ type: Boolean,
1780
+ attribute: "has-trailing-icon"
1781
+ })], TextField.prototype, "hasTrailingIcon", void 0);
1782
+ __decorate([n$2({ attribute: "supporting-text" })], TextField.prototype, "supportingText", void 0);
1783
+ __decorate([n$2({ attribute: "text-direction" })], TextField.prototype, "textDirection", void 0);
1784
+ __decorate([n$2({ type: Number })], TextField.prototype, "rows", void 0);
1785
+ __decorate([n$2({ type: Number })], TextField.prototype, "cols", void 0);
1786
+ __decorate([n$2({ reflect: true })], TextField.prototype, "inputMode", void 0);
1787
+ __decorate([n$2()], TextField.prototype, "max", void 0);
1788
+ __decorate([n$2({ type: Number })], TextField.prototype, "maxLength", void 0);
1789
+ __decorate([n$2()], TextField.prototype, "min", void 0);
1790
+ __decorate([n$2({ type: Number })], TextField.prototype, "minLength", void 0);
1791
+ __decorate([n$2({
1792
+ type: Boolean,
1793
+ attribute: "no-spinner"
1794
+ })], TextField.prototype, "noSpinner", void 0);
1795
+ __decorate([n$2()], TextField.prototype, "pattern", void 0);
1796
+ __decorate([n$2({
1797
+ reflect: true,
1798
+ converter: stringConverter
1799
+ })], TextField.prototype, "placeholder", void 0);
1800
+ __decorate([n$2({
1801
+ type: Boolean,
1802
+ reflect: true
1803
+ })], TextField.prototype, "readOnly", void 0);
1804
+ __decorate([n$2({
1805
+ type: Boolean,
1806
+ reflect: true
1807
+ })], TextField.prototype, "multiple", void 0);
1808
+ __decorate([n$2()], TextField.prototype, "step", void 0);
1809
+ __decorate([n$2({ reflect: true })], TextField.prototype, "type", void 0);
1810
+ __decorate([n$2({ reflect: true })], TextField.prototype, "autocomplete", void 0);
1811
+ __decorate([r$1()], TextField.prototype, "dirty", void 0);
1812
+ __decorate([r$1()], TextField.prototype, "focused", void 0);
1813
+ __decorate([r$1()], TextField.prototype, "nativeError", void 0);
1814
+ __decorate([r$1()], TextField.prototype, "nativeErrorText", void 0);
1815
+ __decorate([e$2(".input")], TextField.prototype, "inputOrTextarea", void 0);
1816
+ __decorate([e$2(".field")], TextField.prototype, "field", void 0);
1817
+ __decorate([o$1({ slot: "leading-icon" })], TextField.prototype, "leadingIcons", void 0);
1818
+ __decorate([o$1({ slot: "trailing-icon" })], TextField.prototype, "trailingIcons", void 0);
1819
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/textfield/internal/outlined-text-field.js
1820
+ /**
1821
+ * @license
1822
+ * Copyright 2021 Google LLC
1823
+ * SPDX-License-Identifier: Apache-2.0
1824
+ */
1825
+ /**
1826
+ * An outlined text field component
1827
+ */
1828
+ var OutlinedTextField = class extends TextField {
1829
+ constructor() {
1830
+ super(...arguments);
1831
+ this.fieldTag = i$5`md-outlined-field`;
1832
+ }
1833
+ };
1834
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/textfield/internal/shared-styles.cssresult.js
1835
+ /**
1836
+ * @license
1837
+ * Copyright 2026 Google LLC
1838
+ * SPDX-License-Identifier: Apache-2.0
1839
+ */
1840
+ var styles = i$3`:host{display:inline-flex;outline:none;resize:both;text-align:start;-webkit-tap-highlight-color:rgba(0,0,0,0)}.text-field,.field{width:100%}.text-field{display:inline-flex}.field{cursor:text}.disabled .field{cursor:default}.text-field,.textarea .field{resize:inherit}slot[name=container]{border-radius:inherit}.icon{color:currentColor;display:flex;align-items:center;justify-content:center;fill:currentColor;position:relative}.icon ::slotted(*){display:flex;position:absolute}[has-start] .icon.leading{font-size:var(--_leading-icon-size);height:var(--_leading-icon-size);width:var(--_leading-icon-size)}[has-end] .icon.trailing{font-size:var(--_trailing-icon-size);height:var(--_trailing-icon-size);width:var(--_trailing-icon-size)}.input-wrapper{display:flex}.input-wrapper>*{all:inherit;padding:0}.input{caret-color:var(--_caret-color);overflow-x:hidden;text-align:inherit}.input::placeholder{color:currentColor;opacity:1}.input::-webkit-calendar-picker-indicator{display:none}.input::-webkit-search-decoration,.input::-webkit-search-cancel-button{display:none}@media(forced-colors: active){.input{background:none}}.no-spinner .input::-webkit-inner-spin-button,.no-spinner .input::-webkit-outer-spin-button{display:none}.no-spinner .input[type=number]{-moz-appearance:textfield}:focus-within .input{caret-color:var(--_focus-caret-color)}.error:focus-within .input{caret-color:var(--_error-focus-caret-color)}.text-field:not(.disabled) .prefix{color:var(--_input-text-prefix-color)}.text-field:not(.disabled) .suffix{color:var(--_input-text-suffix-color)}.text-field:not(.disabled) .input::placeholder{color:var(--_input-text-placeholder-color)}.prefix,.suffix{text-wrap:nowrap;width:min-content}.prefix{padding-inline-end:var(--_input-text-prefix-trailing-space)}.suffix{padding-inline-start:var(--_input-text-suffix-leading-space)}
1841
+ `;
1842
+ styles.styleSheet;
1843
+ // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/textfield/outlined-text-field.js
1844
+ /**
1845
+ * @license
1846
+ * Copyright 2021 Google LLC
1847
+ * SPDX-License-Identifier: Apache-2.0
1848
+ */
1849
+ /**
1850
+ * TODO(b/228525797): Add docs
1851
+ * @final
1852
+ * @suppress {visibility}
1853
+ */
1854
+ var MdOutlinedTextField = class MdOutlinedTextField extends OutlinedTextField {
1855
+ constructor() {
1856
+ super(...arguments);
1857
+ this.fieldTag = i$5`md-outlined-field`;
1858
+ }
1859
+ };
1860
+ MdOutlinedTextField.styles = [styles, styles$1];
1861
+ MdOutlinedTextField = __decorate([t$1("md-outlined-text-field")], MdOutlinedTextField);
1862
+ export { Button as i, styles$5 as n, styles$6 as r, redispatchEvent as t };
1863
+
1864
+ //# sourceMappingURL=outlined-text-field.js.map