@screenreader-speech-capture/bridge 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/dist/cli.mjs +1056 -783
  2. package/dist/ui/adapter-node.js +1 -1
  3. package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js +1 -0
  4. package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js.br +0 -0
  5. package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js.gz +0 -0
  6. package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js +1 -0
  7. package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js.br +0 -0
  8. package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js.gz +0 -0
  9. package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js +3 -0
  10. package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js.br +0 -0
  11. package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js.gz +0 -0
  12. package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js +1 -0
  13. package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js.br +0 -0
  14. package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js.gz +0 -0
  15. package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js +1 -0
  16. package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js.br +2 -0
  17. package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js.gz +0 -0
  18. package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js +1 -0
  19. package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js.br +0 -0
  20. package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js.gz +0 -0
  21. package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js +1 -0
  22. package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js.br +1 -0
  23. package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js.gz +0 -0
  24. package/dist/ui/client/ui/_app/immutable/chunks/{Dk73DTz3.js → BuwZGWCm.js} +21 -21
  25. package/dist/ui/client/ui/_app/immutable/chunks/BuwZGWCm.js.br +0 -0
  26. package/dist/ui/client/ui/_app/immutable/chunks/BuwZGWCm.js.gz +0 -0
  27. package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js +1 -0
  28. package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js.br +0 -0
  29. package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js.gz +0 -0
  30. package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js +1 -0
  31. package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js.br +2 -0
  32. package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js.gz +0 -0
  33. package/dist/ui/client/ui/_app/immutable/chunks/{hhZsYtkz.js → CAZ56n62.js} +3 -3
  34. package/dist/ui/client/ui/_app/immutable/chunks/CAZ56n62.js.br +0 -0
  35. package/dist/ui/client/ui/_app/immutable/chunks/CAZ56n62.js.gz +0 -0
  36. package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js +1 -0
  37. package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js.br +0 -0
  38. package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js.gz +0 -0
  39. package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js +5 -0
  40. package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js.br +0 -0
  41. package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js.gz +0 -0
  42. package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js +3 -0
  43. package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js.br +0 -0
  44. package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js.gz +0 -0
  45. package/dist/ui/client/ui/_app/immutable/chunks/{DU8ibkb0.js → OAsMjdHF.js} +13 -13
  46. package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.br +0 -0
  47. package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.gz +0 -0
  48. package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js +33 -0
  49. package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js.br +0 -0
  50. package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js.gz +0 -0
  51. package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js +1 -0
  52. package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js.br +2 -0
  53. package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js.gz +0 -0
  54. package/dist/ui/client/ui/_app/immutable/chunks/{DoG5cwE3.js → VxDST09k.js} +1 -1
  55. package/dist/ui/client/ui/_app/immutable/chunks/VxDST09k.js.br +0 -0
  56. package/dist/ui/client/ui/_app/immutable/chunks/VxDST09k.js.gz +0 -0
  57. package/dist/ui/client/ui/_app/immutable/chunks/{CEGGem4o.js → vPs9G1oN.js} +36 -36
  58. package/dist/ui/client/ui/_app/immutable/chunks/vPs9G1oN.js.br +0 -0
  59. package/dist/ui/client/ui/_app/immutable/chunks/vPs9G1oN.js.gz +0 -0
  60. package/dist/ui/client/ui/_app/immutable/chunks/{Bq3k_s8n.js → w5i9ZoX_.js} +2 -2
  61. package/dist/ui/client/ui/_app/immutable/chunks/w5i9ZoX_.js.br +0 -0
  62. package/dist/ui/client/ui/_app/immutable/chunks/w5i9ZoX_.js.gz +0 -0
  63. package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js +2 -0
  64. package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js.br +0 -0
  65. package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js.gz +0 -0
  66. package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js +2 -0
  67. package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js.br +0 -0
  68. package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js.gz +0 -0
  69. package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js +1 -0
  70. package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js.br +0 -0
  71. package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js.gz +0 -0
  72. package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js +1 -0
  73. package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js.br +0 -0
  74. package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js.gz +0 -0
  75. package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js +1 -0
  76. package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.br +0 -0
  77. package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.gz +0 -0
  78. package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js +5 -0
  79. package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js.br +0 -0
  80. package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js.gz +0 -0
  81. package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js +180 -0
  82. package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js.br +0 -0
  83. package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js.gz +0 -0
  84. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js +6 -0
  85. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.br +0 -0
  86. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.gz +0 -0
  87. package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js +6 -0
  88. package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js.br +0 -0
  89. package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js.gz +0 -0
  90. package/dist/ui/client/ui/_app/version.json +1 -1
  91. package/dist/ui/client/ui/_app/version.json.br +0 -0
  92. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  93. package/dist/ui/server/.vite/manifest.json +68 -36
  94. package/dist/ui/server/chunks/{composition.js → app-context.js} +5 -965
  95. package/dist/ui/server/chunks/app-context.js.map +1 -0
  96. package/dist/ui/server/chunks/config2.js +106 -0
  97. package/dist/ui/server/chunks/config2.js.map +1 -0
  98. package/dist/ui/server/chunks/dialog.js +1 -1
  99. package/dist/ui/server/chunks/instance.js +3 -3
  100. package/dist/ui/server/chunks/internal.js +1 -1
  101. package/dist/ui/server/chunks/outlined-button.js +1 -1
  102. package/dist/ui/server/chunks/outlined-text-field.js +1 -1
  103. package/dist/ui/server/chunks/redispatch-event.js +1 -1
  104. package/dist/ui/server/chunks/rolldown-runtime.js +12 -0
  105. package/dist/ui/server/chunks/rules.js +178 -0
  106. package/dist/ui/server/chunks/rules.js.map +1 -0
  107. package/dist/ui/server/chunks/sessions.remote.js +1 -11
  108. package/dist/ui/server/chunks/sessions.remote.js.map +1 -1
  109. package/dist/ui/server/chunks/setup.js +86 -0
  110. package/dist/ui/server/chunks/setup.js.map +1 -0
  111. package/dist/ui/server/chunks/{icon-button.js → speech.js} +42 -3
  112. package/dist/ui/server/chunks/speech.js.map +1 -0
  113. package/dist/ui/server/chunks/src.js +20 -155
  114. package/dist/ui/server/chunks/src.js.map +1 -1
  115. package/dist/ui/server/chunks/static-html.js +1 -1
  116. package/dist/ui/server/chunks/text-button.js +1 -1
  117. package/dist/ui/server/chunks/vocabulary.js +19 -0
  118. package/dist/ui/server/chunks/vocabulary.js.map +1 -0
  119. package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +3 -2
  120. package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -1
  121. package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js +14 -5
  122. package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js.map +1 -1
  123. package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js +3 -2
  124. package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js.map +1 -1
  125. package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +2 -1
  126. package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js.map +1 -1
  127. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +10 -13
  128. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js.map +1 -1
  129. package/dist/ui/server/entries/endpoints/api/status/_server.ts.js +2 -1
  130. package/dist/ui/server/entries/endpoints/api/status/_server.ts.js.map +1 -1
  131. package/dist/ui/server/entries/hooks.server.js +29 -25
  132. package/dist/ui/server/entries/hooks.server.js.map +1 -1
  133. package/dist/ui/server/entries/pages/_layout.svelte.js +749 -3
  134. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
  135. package/dist/ui/server/entries/pages/_page.svelte.js +34 -25
  136. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  137. package/dist/ui/server/entries/pages/settings/_page.svelte.js +5 -3
  138. package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
  139. package/dist/ui/server/entries/pages/setup/_page.svelte.js +2 -1
  140. package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -1
  141. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js +3 -2
  142. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js.map +1 -1
  143. package/dist/ui/server/manifest-full.js +1 -1
  144. package/dist/ui/server/manifest.js +1 -1
  145. package/dist/ui/server/nodes/0.js +1 -1
  146. package/dist/ui/server/nodes/1.js +1 -1
  147. package/dist/ui/server/nodes/2.js +1 -1
  148. package/dist/ui/server/nodes/3.js +1 -1
  149. package/dist/ui/server/nodes/4.js +1 -1
  150. package/dist/ui/server/nodes/5.js +1 -1
  151. package/dist/ui/server/nodes/6.js +1 -1
  152. package/dist/ui/server/server.js +1 -1
  153. package/package.json +1 -1
  154. package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js +0 -3
  155. package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js.br +0 -0
  156. package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js.gz +0 -0
  157. package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js +0 -1
  158. package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js.br +0 -2
  159. package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js.gz +0 -0
  160. package/dist/ui/client/ui/_app/immutable/chunks/Bq3k_s8n.js.br +0 -0
  161. package/dist/ui/client/ui/_app/immutable/chunks/Bq3k_s8n.js.gz +0 -0
  162. package/dist/ui/client/ui/_app/immutable/chunks/CEGGem4o.js.br +0 -0
  163. package/dist/ui/client/ui/_app/immutable/chunks/CEGGem4o.js.gz +0 -0
  164. package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js +0 -1
  165. package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js.br +0 -0
  166. package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js.gz +0 -0
  167. package/dist/ui/client/ui/_app/immutable/chunks/Cwz551Q0.js +0 -5
  168. package/dist/ui/client/ui/_app/immutable/chunks/Cwz551Q0.js.br +0 -0
  169. package/dist/ui/client/ui/_app/immutable/chunks/Cwz551Q0.js.gz +0 -0
  170. package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js +0 -1
  171. package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js.br +0 -4
  172. package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js.gz +0 -0
  173. package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js +0 -1
  174. package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js.br +0 -2
  175. package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js.gz +0 -0
  176. package/dist/ui/client/ui/_app/immutable/chunks/DJvJc_zO.js +0 -33
  177. package/dist/ui/client/ui/_app/immutable/chunks/DJvJc_zO.js.br +0 -0
  178. package/dist/ui/client/ui/_app/immutable/chunks/DJvJc_zO.js.gz +0 -0
  179. package/dist/ui/client/ui/_app/immutable/chunks/DU8ibkb0.js.br +0 -0
  180. package/dist/ui/client/ui/_app/immutable/chunks/DU8ibkb0.js.gz +0 -0
  181. package/dist/ui/client/ui/_app/immutable/chunks/Dk73DTz3.js.br +0 -0
  182. package/dist/ui/client/ui/_app/immutable/chunks/Dk73DTz3.js.gz +0 -0
  183. package/dist/ui/client/ui/_app/immutable/chunks/DoG5cwE3.js.br +0 -3
  184. package/dist/ui/client/ui/_app/immutable/chunks/DoG5cwE3.js.gz +0 -0
  185. package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js +0 -3
  186. package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js.br +0 -0
  187. package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js.gz +0 -0
  188. package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js +0 -1
  189. package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js.br +0 -1
  190. package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js.gz +0 -0
  191. package/dist/ui/client/ui/_app/immutable/chunks/hhZsYtkz.js.br +0 -0
  192. package/dist/ui/client/ui/_app/immutable/chunks/hhZsYtkz.js.gz +0 -0
  193. package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js +0 -2
  194. package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js.br +0 -0
  195. package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js.gz +0 -0
  196. package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js +0 -2
  197. package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js.br +0 -0
  198. package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js.gz +0 -0
  199. package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js +0 -1
  200. package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js.br +0 -0
  201. package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js.gz +0 -0
  202. package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js +0 -1
  203. package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js.br +0 -0
  204. package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js.gz +0 -0
  205. package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js +0 -1
  206. package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js.br +0 -0
  207. package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js.gz +0 -0
  208. package/dist/ui/client/ui/_app/immutable/nodes/3.DYZ3H5TS.js +0 -5
  209. package/dist/ui/client/ui/_app/immutable/nodes/3.DYZ3H5TS.js.br +0 -0
  210. package/dist/ui/client/ui/_app/immutable/nodes/3.DYZ3H5TS.js.gz +0 -0
  211. package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js +0 -180
  212. package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js.br +0 -0
  213. package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js.gz +0 -0
  214. package/dist/ui/client/ui/_app/immutable/nodes/5.rBMVkFpN.js +0 -6
  215. package/dist/ui/client/ui/_app/immutable/nodes/5.rBMVkFpN.js.br +0 -0
  216. package/dist/ui/client/ui/_app/immutable/nodes/5.rBMVkFpN.js.gz +0 -0
  217. package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.js +0 -6
  218. package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.js.br +0 -0
  219. package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.js.gz +0 -0
  220. package/dist/ui/server/chunks/composition.js.map +0 -1
  221. package/dist/ui/server/chunks/icon-button.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import{A as e,C as t,E as n,F as r,H as i,I as a,J as o,K as s,L as c,M as l,N as u,P as d,R as f,T as p,V as m,W as h,X as g,Y as _,k as ee,q as v,w as y,z as b}from"./Cwz551Q0.js";import{r as x}from"./Dk73DTz3.js";import{n as S,t as C}from"./DoG5cwE3.js";import{t as w}from"./Bq3k_s8n.js";var T=class extends a{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label=``,this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText=``,this.errorText=``,this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){let e=this.count??-1,t=this.max??-1;return e<0||t<=0?``:`${e} / ${t}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has(`disabled`)&&e.get(`disabled`)!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set(`focused`,!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get(`focused`),wasPopulated:e.get(`populated`)}),super.update(e)}render(){let e=this.renderLabel(!0),t=this.renderLabel(!1),n=this.renderOutline?.(e),r={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return m`
2
- <div class="field ${l(r)}">
1
+ import{A as e,C as t,D as n,O as r,S as i,T as a,_ as o,a as s,b as c,d as l,g as u,h as d,i as f,j as p,k as m,m as h,o as g,p as _,s as v,u as y,v as b,y as ee}from"./DRNNJMYk.js";import{r as x}from"./BuwZGWCm.js";import{a as S,i as C}from"./VxDST09k.js";import{t as w}from"./w5i9ZoX_.js";var T=class extends o{constructor(){super(...arguments),this.disabled=!1,this.error=!1,this.focused=!1,this.label=``,this.noAsterisk=!1,this.populated=!1,this.required=!1,this.resizable=!1,this.supportingText=``,this.errorText=``,this.count=-1,this.max=-1,this.hasStart=!1,this.hasEnd=!1,this.isAnimating=!1,this.refreshErrorAlert=!1,this.disableTransitions=!1}get counterText(){let e=this.count??-1,t=this.max??-1;return e<0||t<=0?``:`${e} / ${t}`}get supportingOrErrorText(){return this.error&&this.errorText?this.errorText:this.supportingText}reannounceError(){this.refreshErrorAlert=!0}update(e){e.has(`disabled`)&&e.get(`disabled`)!==void 0&&(this.disableTransitions=!0),this.disabled&&this.focused&&(e.set(`focused`,!0),this.focused=!1),this.animateLabelIfNeeded({wasFocused:e.get(`focused`),wasPopulated:e.get(`populated`)}),super.update(e)}render(){let e=this.renderLabel(!0),t=this.renderLabel(!1),n=this.renderOutline?.(e),r={disabled:this.disabled,"disable-transitions":this.disableTransitions,error:this.error&&!this.disabled,focused:this.focused,"with-start":this.hasStart,"with-end":this.hasEnd,populated:this.populated,resizable:this.resizable,required:this.required,"no-label":!this.label};return i`
2
+ <div class="field ${_(r)}">
3
3
  <div class="container-overflow">
4
4
  ${this.renderBackground?.()}
5
5
  <slot name="container"></slot>
@@ -10,7 +10,7 @@ import{A as e,C as t,E as n,F as r,H as i,I as a,J as o,K as s,L as c,M as l,N a
10
10
  </div>
11
11
  <div class="middle">
12
12
  <div class="label-wrapper">
13
- ${t} ${n?c:e}
13
+ ${t} ${n?b:e}
14
14
  </div>
15
15
  <div class="content">
16
16
  <slot></slot>
@@ -23,16 +23,16 @@ import{A as e,C as t,E as n,F as r,H as i,I as a,J as o,K as s,L as c,M as l,N a
23
23
  </div>
24
24
  ${this.renderSupportingText()}
25
25
  </div>
26
- `}updated(e){(e.has(`supportingText`)||e.has(`errorText`)||e.has(`count`)||e.has(`max`))&&this.updateSlottedAriaDescribedBy(),this.refreshErrorAlert&&requestAnimationFrame(()=>{this.refreshErrorAlert=!1}),this.disableTransitions&&requestAnimationFrame(()=>{this.disableTransitions=!1})}renderSupportingText(){let{supportingOrErrorText:e,counterText:t}=this;if(!e&&!t)return c;let n=m`<span>${e}</span>`,r=t?m`<span class="counter">${t}</span>`:c,i=this.error&&this.errorText&&!this.refreshErrorAlert?`alert`:c;return m`
27
- <div class="supporting-text" role=${i}>${n}${r}</div>
26
+ `}updated(e){(e.has(`supportingText`)||e.has(`errorText`)||e.has(`count`)||e.has(`max`))&&this.updateSlottedAriaDescribedBy(),this.refreshErrorAlert&&requestAnimationFrame(()=>{this.refreshErrorAlert=!1}),this.disableTransitions&&requestAnimationFrame(()=>{this.disableTransitions=!1})}renderSupportingText(){let{supportingOrErrorText:e,counterText:t}=this;if(!e&&!t)return b;let n=i`<span>${e}</span>`,r=t?i`<span class="counter">${t}</span>`:b,a=this.error&&this.errorText&&!this.refreshErrorAlert?`alert`:b;return i`
27
+ <div class="supporting-text" role=${a}>${n}${r}</div>
28
28
  <slot
29
29
  name="aria-describedby"
30
30
  @slotchange=${this.updateSlottedAriaDescribedBy}></slot>
31
- `}updateSlottedAriaDescribedBy(){for(let e of this.slottedAriaDescribedBy)f(m`${this.supportingOrErrorText} ${this.counterText}`,e),e.setAttribute(`hidden`,``)}renderLabel(e){if(!this.label)return c;let t;t=e?this.focused||this.populated||this.isAnimating:!this.focused&&!this.populated&&!this.isAnimating;let n={hidden:!t,floating:e,resting:!e},r=`${this.label}${this.required&&!this.noAsterisk?`*`:``}`;return m`
32
- <span class="label ${l(n)}" aria-hidden=${!t}
31
+ `}updateSlottedAriaDescribedBy(){for(let e of this.slottedAriaDescribedBy)ee(i`${this.supportingOrErrorText} ${this.counterText}`,e),e.setAttribute(`hidden`,``)}renderLabel(e){if(!this.label)return b;let t;t=e?this.focused||this.populated||this.isAnimating:!this.focused&&!this.populated&&!this.isAnimating;let n={hidden:!t,floating:e,resting:!e},r=`${this.label}${this.required&&!this.noAsterisk?`*`:``}`;return i`
32
+ <span class="label ${_(n)}" aria-hidden=${!t}
33
33
  >${r}</span
34
34
  >
35
- `}animateLabelIfNeeded({wasFocused:t,wasPopulated:n}){if(!this.label||(t??=this.focused,n??=this.populated,(t||n)===(this.focused||this.populated)))return;let r=this.getLabelKeyframes();r.length&&(this.isAnimating=!0,this.labelAnimation?.cancel(),this.labelAnimation=this.floatingLabelEl?.animate(r,{duration:150,easing:e.STANDARD}),this.labelAnimation?.addEventListener(`finish`,()=>{this.isAnimating=!1}))}getLabelKeyframes(){let{floatingLabelEl:e,restingLabelEl:t}=this;if(!e||!t)return[];let{x:n,y:r,height:i}=e.getBoundingClientRect(),{x:a,y:o,height:s}=t.getBoundingClientRect(),c=e.scrollWidth,l=t.scrollWidth;if(c===0||l===0)return[];let u=l/c,d=`translateX(${a-n}px) translateY(${o-r+Math.round((s-i*u)/2)}px) scale(${u})`,f=`translateX(0) translateY(0) scale(1)`,p=t.clientWidth,m=l>p?`${p/u}px`:``;return this.focused||this.populated?[{transform:d,width:m},{transform:f,width:m}]:[{transform:f,width:m},{transform:d,width:m}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}};g([v({type:Boolean})],T.prototype,`disabled`,void 0),g([v({type:Boolean})],T.prototype,`error`,void 0),g([v({type:Boolean})],T.prototype,`focused`,void 0),g([v()],T.prototype,`label`,void 0),g([v({type:Boolean,attribute:`no-asterisk`})],T.prototype,`noAsterisk`,void 0),g([v({type:Boolean})],T.prototype,`populated`,void 0),g([v({type:Boolean})],T.prototype,`required`,void 0),g([v({type:Boolean})],T.prototype,`resizable`,void 0),g([v({attribute:`supporting-text`})],T.prototype,`supportingText`,void 0),g([v({attribute:`error-text`})],T.prototype,`errorText`,void 0),g([v({type:Number})],T.prototype,`count`,void 0),g([v({type:Number})],T.prototype,`max`,void 0),g([v({type:Boolean,attribute:`has-start`})],T.prototype,`hasStart`,void 0),g([v({type:Boolean,attribute:`has-end`})],T.prototype,`hasEnd`,void 0),g([x({slot:`aria-describedby`})],T.prototype,`slottedAriaDescribedBy`,void 0),g([s()],T.prototype,`isAnimating`,void 0),g([s()],T.prototype,`refreshErrorAlert`,void 0),g([s()],T.prototype,`disableTransitions`,void 0),g([h(`.label.floating`)],T.prototype,`floatingLabelEl`,void 0),g([h(`.label.resting`)],T.prototype,`restingLabelEl`,void 0),g([h(`.container`)],T.prototype,`containerEl`,void 0);var E=class extends T{renderOutline(e){return m`
35
+ `}animateLabelIfNeeded({wasFocused:e,wasPopulated:t}){if(!this.label||(e??=this.focused,t??=this.populated,(e||t)===(this.focused||this.populated)))return;let n=this.getLabelKeyframes();n.length&&(this.isAnimating=!0,this.labelAnimation?.cancel(),this.labelAnimation=this.floatingLabelEl?.animate(n,{duration:150,easing:l.STANDARD}),this.labelAnimation?.addEventListener(`finish`,()=>{this.isAnimating=!1}))}getLabelKeyframes(){let{floatingLabelEl:e,restingLabelEl:t}=this;if(!e||!t)return[];let{x:n,y:r,height:i}=e.getBoundingClientRect(),{x:a,y:o,height:s}=t.getBoundingClientRect(),c=e.scrollWidth,l=t.scrollWidth;if(c===0||l===0)return[];let u=l/c,d=`translateX(${a-n}px) translateY(${o-r+Math.round((s-i*u)/2)}px) scale(${u})`,f=`translateX(0) translateY(0) scale(1)`,p=t.clientWidth,m=l>p?`${p/u}px`:``;return this.focused||this.populated?[{transform:d,width:m},{transform:f,width:m}]:[{transform:f,width:m},{transform:d,width:m}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}};p([r({type:Boolean})],T.prototype,`disabled`,void 0),p([r({type:Boolean})],T.prototype,`error`,void 0),p([r({type:Boolean})],T.prototype,`focused`,void 0),p([r()],T.prototype,`label`,void 0),p([r({type:Boolean,attribute:`no-asterisk`})],T.prototype,`noAsterisk`,void 0),p([r({type:Boolean})],T.prototype,`populated`,void 0),p([r({type:Boolean})],T.prototype,`required`,void 0),p([r({type:Boolean})],T.prototype,`resizable`,void 0),p([r({attribute:`supporting-text`})],T.prototype,`supportingText`,void 0),p([r({attribute:`error-text`})],T.prototype,`errorText`,void 0),p([r({type:Number})],T.prototype,`count`,void 0),p([r({type:Number})],T.prototype,`max`,void 0),p([r({type:Boolean,attribute:`has-start`})],T.prototype,`hasStart`,void 0),p([r({type:Boolean,attribute:`has-end`})],T.prototype,`hasEnd`,void 0),p([x({slot:`aria-describedby`})],T.prototype,`slottedAriaDescribedBy`,void 0),p([n()],T.prototype,`isAnimating`,void 0),p([n()],T.prototype,`refreshErrorAlert`,void 0),p([n()],T.prototype,`disableTransitions`,void 0),p([a(`.label.floating`)],T.prototype,`floatingLabelEl`,void 0),p([a(`.label.resting`)],T.prototype,`restingLabelEl`,void 0),p([a(`.container`)],T.prototype,`containerEl`,void 0);var E=class extends T{renderOutline(e){return i`
36
36
  <div class="outline">
37
37
  <div class="outline-start"></div>
38
38
  <div class="outline-notch">
@@ -42,11 +42,11 @@ import{A as e,C as t,E as n,F as r,H as i,I as a,J as o,K as s,L as c,M as l,N a
42
42
  </div>
43
43
  <div class="outline-end"></div>
44
44
  </div>
45
- `}},D=o`@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}}}
46
- `;D.styleSheet;var O=o`: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}}}
47
- `;O.styleSheet;var k=class extends E{};k.styles=[O,D],k=g([_(`md-outlined-field`)],k);var A=o`: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)}
48
- `;A.styleSheet;var{I:te}=i,ne=e=>e.strings===void 0,re={},ie=(e,t=re)=>e._$AH=t,j=u(class extends d{constructor(e){if(super(e),e.type!==r.PROPERTY&&e.type!==r.ATTRIBUTE&&e.type!==r.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ne(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===b||t===c)return t;let n=e.element,i=e.name;if(e.type===r.PROPERTY){if(t===n[i])return b}else if(e.type===r.BOOLEAN_ATTRIBUTE){if(!!t===n.hasAttribute(i))return b}else if(e.type===r.ATTRIBUTE&&n.getAttribute(i)===t+``)return b;return ie(e),t}}),M=`important`,N=` !`+M,P=u(class extends d{constructor(e){if(super(e),e.type!==r.ATTRIBUTE||e.name!==`style`||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r==null?t:t+`${n=n.includes(`-`)?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,`-$&`).toLowerCase()}:${r};`},``)}update(e,[t]){let{style:n}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let e of this.ft)t[e]??(this.ft.delete(e),e.includes(`-`)?n.removeProperty(e):n[e]=null);for(let e in t){let r=t[e];if(r!=null){this.ft.add(e);let t=typeof r==`string`&&r.endsWith(N);e.includes(`-`)||t?n.setProperty(e,t?r.slice(0,-11):r,t?M:``):n[e]=r}}return b}}),F={fromAttribute(e){return e??``},toAttribute(e){return e||null}},I=Symbol(`createValidator`),L=Symbol(`getValidityAnchor`),R=Symbol(`privateValidator`),z=Symbol(`privateSyncValidity`),B=Symbol(`privateCustomValidationMessage`);function V(e){var t;class n extends e{constructor(){super(...arguments),this[t]=``}get validity(){return this[z](),this[p].validity}get validationMessage(){return this[z](),this[p].validationMessage}get willValidate(){return this[z](),this[p].willValidate}checkValidity(){return this[z](),this[p].checkValidity()}reportValidity(){return this[z](),this[p].reportValidity()}setCustomValidity(e){this[B]=e,this[z]()}requestUpdate(e,t,n){super.requestUpdate(e,t,n),this[z]()}firstUpdated(e){super.firstUpdated(e),this[z]()}[(t=B,z)](){this[R]||(this[R]=this[I]());let{validity:e,validationMessage:t}=this[R].getValidity(),n=!!this[B],r=this[B]||t;this[p].setValidity({...e,customError:n},r,this[L]()??void 0)}[I](){throw Error(`Implement [createValidator]`)}[L](){throw Error(`Implement [getValidityAnchor]`)}}return n}var H=Symbol(`onReportValidity`),U=Symbol(`privateCleanupFormListeners`),W=Symbol(`privateDoNotReportInvalid`),G=Symbol(`privateIsSelfReportingValidity`),K=Symbol(`privateCallOnReportValidity`);function q(e){var t,n,r;class i extends e{constructor(...e){super(...e),this[t]=new AbortController,this[n]=!1,this[r]=!1,this.addEventListener(`invalid`,e=>{!this[W]&&e.isTrusted&&this.addEventListener(`invalid`,()=>{this[K](e)},{once:!0})},{capture:!0})}checkValidity(){this[W]=!0;let e=super.checkValidity();return this[W]=!1,e}reportValidity(){this[G]=!0;let e=super.reportValidity();return e&&this[K](null),this[G]=!1,e}[(t=U,n=W,r=G,K)](e){let t=e?.defaultPrevented;t||(this[H](e),!t&&e?.defaultPrevented&&(this[G]||se(this[p].form,this))&&this.focus())}[H](e){throw Error(`Implement [onReportValidity]`)}formAssociatedCallback(e){super.formAssociatedCallback&&super.formAssociatedCallback(e),this[U].abort(),e&&(this[U]=new AbortController,ae(this,e,()=>{this[K](null)},this[U].signal))}}return i}function ae(e,t,n,r){let i=oe(t),a=!1,o,s=!1;i.addEventListener(`before`,()=>{s=!0,o=new AbortController,a=!1,e.addEventListener(`invalid`,()=>{a=!0},{signal:o.signal})},{signal:r}),i.addEventListener(`after`,()=>{s=!1,o?.abort(),a||n()},{signal:r}),t.addEventListener(`submit`,()=>{s||n()},{signal:r})}var J=new WeakMap;function oe(e){if(!J.has(e)){let t=new EventTarget;J.set(e,t);for(let n of[`reportValidity`,`requestSubmit`]){let r=e[n];e[n]=function(){t.dispatchEvent(new Event(`before`));let e=Reflect.apply(r,this,arguments);return t.dispatchEvent(new Event(`after`)),e}}}return J.get(e)}function se(e,t){if(!e)return!0;let n;for(let t of e.elements)if(t.matches(`:invalid`)){n=t;break}return n===t}var Y=class{constructor(e){this.getCurrentState=e,this.currentValidity={validity:{},validationMessage:``}}getValidity(){let e=this.getCurrentState();if(this.prevState&&this.equals(this.prevState,e))return this.currentValidity;let{validity:t,validationMessage:n}=this.computeValidity(e);return this.prevState=this.copy(e),this.currentValidity={validationMessage:n,validity:{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing}},this.currentValidity}},ce=class extends Y{computeValidity({state:e,renderedControl:t}){let n=t;X(e)&&!n?(n=this.inputControl||document.createElement(`input`),this.inputControl=n):n||(n=this.textAreaControl||document.createElement(`textarea`),this.textAreaControl=n);let r=X(e)?n:null;if(r&&(r.type=e.type),n.value!==e.value&&(n.value=e.value),n.required=e.required,r){let t=e;t.pattern?r.pattern=t.pattern:r.removeAttribute(`pattern`),t.min?r.min=t.min:r.removeAttribute(`min`),t.max?r.max=t.max:r.removeAttribute(`max`),t.step?r.step=t.step:r.removeAttribute(`step`)}return(e.minLength??-1)>-1?n.setAttribute(`minlength`,String(e.minLength)):n.removeAttribute(`minlength`),(e.maxLength??-1)>-1?n.setAttribute(`maxlength`,String(e.maxLength)):n.removeAttribute(`maxlength`),{validity:n.validity,validationMessage:n.validationMessage}}equals({state:e},{state:t}){let n=e.type===t.type&&e.value===t.value&&e.required===t.required&&e.minLength===t.minLength&&e.maxLength===t.maxLength;return!X(e)||!X(t)?n:n&&e.pattern===t.pattern&&e.min===t.min&&e.max===t.max&&e.step===t.step}copy({state:e}){return{state:X(e)?this.copyInput(e):this.copyTextArea(e),renderedControl:null}}copyInput(e){let{type:t,pattern:n,min:r,max:i,step:a}=e;return{...this.copySharedState(e),type:t,pattern:n,min:r,max:i,step:a}}copyTextArea(e){return{...this.copySharedState(e),type:e.type}}copySharedState({value:e,required:t,minLength:n,maxLength:r}){return{value:e,required:t,minLength:n,maxLength:r}}};function X(e){return e.type!==`textarea`}var le=ee(q(V(y(n(a))))),Z=class extends le{constructor(){super(...arguments),this.error=!1,this.errorText=``,this.label=``,this.noAsterisk=!1,this.required=!1,this.value=``,this.prefixText=``,this.suffixText=``,this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText=``,this.textDirection=``,this.rows=2,this.cols=20,this.inputMode=``,this.max=``,this.maxLength=-1,this.min=``,this.minLength=-1,this.noSpinner=!1,this.pattern=``,this.placeholder=``,this.readOnly=!1,this.multiple=!1,this.step=``,this.type=`text`,this.autocomplete=``,this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=``}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){let e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){let t=this.getInput();t&&(t.valueAsNumber=e,this.value=t.value)}get valueAsDate(){let e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){let t=this.getInput();t&&(t.valueAsDate=e,this.value=t.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...e){this.getInputOrTextarea().setRangeText(...e),this.value=this.getInputOrTextarea().value}setSelectionRange(e,t,n){this.getInputOrTextarea().setSelectionRange(e,t,n)}showPicker(){let e=this.getInput();e&&e.showPicker()}stepDown(e){let t=this.getInput();t&&(t.stepDown(e),this.value=t.value)}stepUp(e){let t=this.getInput();t&&(t.stepUp(e),this.value=t.value)}reset(){this.dirty=!1,this.value=this.getAttribute(`value`)??``,this.nativeError=!1,this.nativeErrorText=``}attributeChangedCallback(e,t,n){e===`value`&&this.dirty||super.attributeChangedCallback(e,t,n)}render(){let e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type===`textarea`,"no-spinner":this.noSpinner};return m`
49
- <span class="text-field ${l(e)}">
45
+ `}},D=m`@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}}}
46
+ `;D.styleSheet;var O=m`: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}}}
47
+ `;O.styleSheet;var k=class extends E{};k.styles=[O,D],k=p([e(`md-outlined-field`)],k);var A=m`: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)}
48
+ `;A.styleSheet;var{I:te}=t,ne=e=>e.strings===void 0,re={},ie=(e,t=re)=>e._$AH=t,j=h(class extends d{constructor(e){if(super(e),e.type!==u.PROPERTY&&e.type!==u.ATTRIBUTE&&e.type!==u.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ne(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===c||t===b)return t;let n=e.element,r=e.name;if(e.type===u.PROPERTY){if(t===n[r])return c}else if(e.type===u.BOOLEAN_ATTRIBUTE){if(!!t===n.hasAttribute(r))return c}else if(e.type===u.ATTRIBUTE&&n.getAttribute(r)===t+``)return c;return ie(e),t}}),M=`important`,N=` !`+M,P=h(class extends d{constructor(e){if(super(e),e.type!==u.ATTRIBUTE||e.name!==`style`||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r==null?t:t+`${n=n.includes(`-`)?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,`-$&`).toLowerCase()}:${r};`},``)}update(e,[t]){let{style:n}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let e of this.ft)t[e]??(this.ft.delete(e),e.includes(`-`)?n.removeProperty(e):n[e]=null);for(let e in t){let r=t[e];if(r!=null){this.ft.add(e);let t=typeof r==`string`&&r.endsWith(N);e.includes(`-`)||t?n.setProperty(e,t?r.slice(0,-11):r,t?M:``):n[e]=r}}return c}}),F={fromAttribute(e){return e??``},toAttribute(e){return e||null}},I=Symbol(`createValidator`),L=Symbol(`getValidityAnchor`),R=Symbol(`privateValidator`),z=Symbol(`privateSyncValidity`),B=Symbol(`privateCustomValidationMessage`);function V(e){var t;class n extends e{constructor(){super(...arguments),this[t]=``}get validity(){return this[z](),this[g].validity}get validationMessage(){return this[z](),this[g].validationMessage}get willValidate(){return this[z](),this[g].willValidate}checkValidity(){return this[z](),this[g].checkValidity()}reportValidity(){return this[z](),this[g].reportValidity()}setCustomValidity(e){this[B]=e,this[z]()}requestUpdate(e,t,n){super.requestUpdate(e,t,n),this[z]()}firstUpdated(e){super.firstUpdated(e),this[z]()}[(t=B,z)](){this[R]||(this[R]=this[I]());let{validity:e,validationMessage:t}=this[R].getValidity(),n=!!this[B],r=this[B]||t;this[g].setValidity({...e,customError:n},r,this[L]()??void 0)}[I](){throw Error(`Implement [createValidator]`)}[L](){throw Error(`Implement [getValidityAnchor]`)}}return n}var H=Symbol(`onReportValidity`),U=Symbol(`privateCleanupFormListeners`),W=Symbol(`privateDoNotReportInvalid`),G=Symbol(`privateIsSelfReportingValidity`),K=Symbol(`privateCallOnReportValidity`);function q(e){var t,n,r;class i extends e{constructor(...e){super(...e),this[t]=new AbortController,this[n]=!1,this[r]=!1,this.addEventListener(`invalid`,e=>{!this[W]&&e.isTrusted&&this.addEventListener(`invalid`,()=>{this[K](e)},{once:!0})},{capture:!0})}checkValidity(){this[W]=!0;let e=super.checkValidity();return this[W]=!1,e}reportValidity(){this[G]=!0;let e=super.reportValidity();return e&&this[K](null),this[G]=!1,e}[(t=U,n=W,r=G,K)](e){let t=e?.defaultPrevented;t||(this[H](e),!t&&e?.defaultPrevented&&(this[G]||se(this[g].form,this))&&this.focus())}[H](e){throw Error(`Implement [onReportValidity]`)}formAssociatedCallback(e){super.formAssociatedCallback&&super.formAssociatedCallback(e),this[U].abort(),e&&(this[U]=new AbortController,ae(this,e,()=>{this[K](null)},this[U].signal))}}return i}function ae(e,t,n,r){let i=oe(t),a=!1,o,s=!1;i.addEventListener(`before`,()=>{s=!0,o=new AbortController,a=!1,e.addEventListener(`invalid`,()=>{a=!0},{signal:o.signal})},{signal:r}),i.addEventListener(`after`,()=>{s=!1,o?.abort(),a||n()},{signal:r}),t.addEventListener(`submit`,()=>{s||n()},{signal:r})}var J=new WeakMap;function oe(e){if(!J.has(e)){let t=new EventTarget;J.set(e,t);for(let n of[`reportValidity`,`requestSubmit`]){let r=e[n];e[n]=function(){t.dispatchEvent(new Event(`before`));let e=Reflect.apply(r,this,arguments);return t.dispatchEvent(new Event(`after`)),e}}}return J.get(e)}function se(e,t){if(!e)return!0;let n;for(let t of e.elements)if(t.matches(`:invalid`)){n=t;break}return n===t}var Y=class{constructor(e){this.getCurrentState=e,this.currentValidity={validity:{},validationMessage:``}}getValidity(){let e=this.getCurrentState();if(this.prevState&&this.equals(this.prevState,e))return this.currentValidity;let{validity:t,validationMessage:n}=this.computeValidity(e);return this.prevState=this.copy(e),this.currentValidity={validationMessage:n,validity:{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing}},this.currentValidity}},ce=class extends Y{computeValidity({state:e,renderedControl:t}){let n=t;X(e)&&!n?(n=this.inputControl||document.createElement(`input`),this.inputControl=n):n||(n=this.textAreaControl||document.createElement(`textarea`),this.textAreaControl=n);let r=X(e)?n:null;if(r&&(r.type=e.type),n.value!==e.value&&(n.value=e.value),n.required=e.required,r){let t=e;t.pattern?r.pattern=t.pattern:r.removeAttribute(`pattern`),t.min?r.min=t.min:r.removeAttribute(`min`),t.max?r.max=t.max:r.removeAttribute(`max`),t.step?r.step=t.step:r.removeAttribute(`step`)}return(e.minLength??-1)>-1?n.setAttribute(`minlength`,String(e.minLength)):n.removeAttribute(`minlength`),(e.maxLength??-1)>-1?n.setAttribute(`maxlength`,String(e.maxLength)):n.removeAttribute(`maxlength`),{validity:n.validity,validationMessage:n.validationMessage}}equals({state:e},{state:t}){let n=e.type===t.type&&e.value===t.value&&e.required===t.required&&e.minLength===t.minLength&&e.maxLength===t.maxLength;return!X(e)||!X(t)?n:n&&e.pattern===t.pattern&&e.min===t.min&&e.max===t.max&&e.step===t.step}copy({state:e}){return{state:X(e)?this.copyInput(e):this.copyTextArea(e),renderedControl:null}}copyInput(e){let{type:t,pattern:n,min:r,max:i,step:a}=e;return{...this.copySharedState(e),type:t,pattern:n,min:r,max:i,step:a}}copyTextArea(e){return{...this.copySharedState(e),type:e.type}}copySharedState({value:e,required:t,minLength:n,maxLength:r}){return{value:e,required:t,minLength:n,maxLength:r}}};function X(e){return e.type!==`textarea`}var le=y(q(V(s(v(o))))),Z=class extends le{constructor(){super(...arguments),this.error=!1,this.errorText=``,this.label=``,this.noAsterisk=!1,this.required=!1,this.value=``,this.prefixText=``,this.suffixText=``,this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText=``,this.textDirection=``,this.rows=2,this.cols=20,this.inputMode=``,this.max=``,this.maxLength=-1,this.min=``,this.minLength=-1,this.noSpinner=!1,this.pattern=``,this.placeholder=``,this.readOnly=!1,this.multiple=!1,this.step=``,this.type=`text`,this.autocomplete=``,this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=``}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){let e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){let t=this.getInput();t&&(t.valueAsNumber=e,this.value=t.value)}get valueAsDate(){let e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){let t=this.getInput();t&&(t.valueAsDate=e,this.value=t.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...e){this.getInputOrTextarea().setRangeText(...e),this.value=this.getInputOrTextarea().value}setSelectionRange(e,t,n){this.getInputOrTextarea().setSelectionRange(e,t,n)}showPicker(){let e=this.getInput();e&&e.showPicker()}stepDown(e){let t=this.getInput();t&&(t.stepDown(e),this.value=t.value)}stepUp(e){let t=this.getInput();t&&(t.stepUp(e),this.value=t.value)}reset(){this.dirty=!1,this.value=this.getAttribute(`value`)??``,this.nativeError=!1,this.nativeErrorText=``}attributeChangedCallback(e,t,n){e===`value`&&this.dirty||super.attributeChangedCallback(e,t,n)}render(){let e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type===`textarea`,"no-spinner":this.noSpinner};return i`
49
+ <span class="text-field ${_(e)}">
50
50
  ${this.renderField()}
51
51
  </span>
52
52
  `}updated(e){let t=this.getInputOrTextarea().value;this.value!==t&&(this.value=t)}renderField(){return S`<${this.fieldTag}
@@ -71,27 +71,27 @@ import{A as e,C as t,E as n,F as r,H as i,I as a,J as o,K as s,L as c,M as l,N a
71
71
  ${this.renderTrailingIcon()}
72
72
  <div id="description" slot="aria-describedby"></div>
73
73
  <slot name="container" slot="container"></slot>
74
- </${this.fieldTag}>`}renderLeadingIcon(){return m`
74
+ </${this.fieldTag}>`}renderLeadingIcon(){return i`
75
75
  <span class="icon leading" slot="start">
76
76
  <slot name="leading-icon" @slotchange=${this.handleIconChange}></slot>
77
77
  </span>
78
- `}renderTrailingIcon(){return m`
78
+ `}renderTrailingIcon(){return i`
79
79
  <span class="icon trailing" slot="end">
80
80
  <slot name="trailing-icon" @slotchange=${this.handleIconChange}></slot>
81
81
  </span>
82
- `}renderInputOrTextarea(){let e={direction:this.textDirection},t=this.ariaLabel||this.label||c,n=this.autocomplete,r=(this.maxLength??-1)>-1,i=(this.minLength??-1)>-1;if(this.type===`textarea`)return m`
82
+ `}renderInputOrTextarea(){let e={direction:this.textDirection},t=this.ariaLabel||this.label||b,n=this.autocomplete,r=(this.maxLength??-1)>-1,a=(this.minLength??-1)>-1;if(this.type===`textarea`)return i`
83
83
  <textarea
84
84
  class="input"
85
85
  style=${P(e)}
86
86
  aria-describedby="description"
87
87
  aria-invalid=${this.hasError}
88
88
  aria-label=${t}
89
- autocomplete=${n||c}
90
- name=${this.name||c}
89
+ autocomplete=${n||b}
90
+ name=${this.name||b}
91
91
  ?disabled=${this.disabled}
92
- maxlength=${r?this.maxLength:c}
93
- minlength=${i?this.minLength:c}
94
- placeholder=${this.placeholder||c}
92
+ maxlength=${r?this.maxLength:b}
93
+ minlength=${a?this.minLength:b}
94
+ placeholder=${this.placeholder||b}
95
95
  ?readonly=${this.readOnly}
96
96
  ?required=${this.required}
97
97
  rows=${this.rows}
@@ -102,29 +102,29 @@ import{A as e,C as t,E as n,F as r,H as i,I as a,J as o,K as s,L as c,M as l,N a
102
102
  @blur=${this.handleFocusChange}
103
103
  @input=${this.handleInput}
104
104
  @select=${this.redispatchEvent}></textarea>
105
- `;let a=this.renderPrefix(),o=this.renderSuffix(),s=this.inputMode;return m`
105
+ `;let o=this.renderPrefix(),s=this.renderSuffix(),c=this.inputMode;return i`
106
106
  <div class="input-wrapper">
107
- ${a}
107
+ ${o}
108
108
  <input
109
109
  class="input"
110
110
  style=${P(e)}
111
111
  aria-describedby="description"
112
112
  aria-invalid=${this.hasError}
113
113
  aria-label=${t}
114
- autocomplete=${n||c}
115
- name=${this.name||c}
114
+ autocomplete=${n||b}
115
+ name=${this.name||b}
116
116
  ?disabled=${this.disabled}
117
- inputmode=${s||c}
118
- max=${this.max||c}
119
- maxlength=${r?this.maxLength:c}
120
- min=${this.min||c}
121
- minlength=${i?this.minLength:c}
122
- pattern=${this.pattern||c}
123
- placeholder=${this.placeholder||c}
117
+ inputmode=${c||b}
118
+ max=${this.max||b}
119
+ maxlength=${r?this.maxLength:b}
120
+ min=${this.min||b}
121
+ minlength=${a?this.minLength:b}
122
+ pattern=${this.pattern||b}
123
+ placeholder=${this.placeholder||b}
124
124
  ?readonly=${this.readOnly}
125
125
  ?required=${this.required}
126
126
  ?multiple=${this.multiple}
127
- step=${this.step||c}
127
+ step=${this.step||b}
128
128
  type=${this.type}
129
129
  .value=${j(this.value)}
130
130
  @change=${this.redispatchEvent}
@@ -132,7 +132,7 @@ import{A as e,C as t,E as n,F as r,H as i,I as a,J as o,K as s,L as c,M as l,N a
132
132
  @blur=${this.handleFocusChange}
133
133
  @input=${this.handleInput}
134
134
  @select=${this.redispatchEvent} />
135
- ${o}
135
+ ${s}
136
136
  </div>
137
- `}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,t){return e?m`<span class="${l({suffix:t,prefix:!t})}">${e}</span>`:c}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){this.focused=this.inputOrTextarea?.matches(`:focus`)??!1}handleInput(e){this.dirty=!0,this.value=e.target.value}redispatchEvent(e){w(this,e)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type===`textarea`?null:this.getInputOrTextarea()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}[t](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[I](){return new ce(()=>({state:this,renderedControl:this.inputOrTextarea}))}[L](){return this.inputOrTextarea}[H](e){e?.preventDefault();let t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&this.field?.reannounceError()}};Z.shadowRootOptions={...a.shadowRootOptions,delegatesFocus:!0},g([v({type:Boolean,reflect:!0})],Z.prototype,`error`,void 0),g([v({attribute:`error-text`})],Z.prototype,`errorText`,void 0),g([v()],Z.prototype,`label`,void 0),g([v({type:Boolean,attribute:`no-asterisk`})],Z.prototype,`noAsterisk`,void 0),g([v({type:Boolean,reflect:!0})],Z.prototype,`required`,void 0),g([v()],Z.prototype,`value`,void 0),g([v({attribute:`prefix-text`})],Z.prototype,`prefixText`,void 0),g([v({attribute:`suffix-text`})],Z.prototype,`suffixText`,void 0),g([v({type:Boolean,attribute:`has-leading-icon`})],Z.prototype,`hasLeadingIcon`,void 0),g([v({type:Boolean,attribute:`has-trailing-icon`})],Z.prototype,`hasTrailingIcon`,void 0),g([v({attribute:`supporting-text`})],Z.prototype,`supportingText`,void 0),g([v({attribute:`text-direction`})],Z.prototype,`textDirection`,void 0),g([v({type:Number})],Z.prototype,`rows`,void 0),g([v({type:Number})],Z.prototype,`cols`,void 0),g([v({reflect:!0})],Z.prototype,`inputMode`,void 0),g([v()],Z.prototype,`max`,void 0),g([v({type:Number})],Z.prototype,`maxLength`,void 0),g([v()],Z.prototype,`min`,void 0),g([v({type:Number})],Z.prototype,`minLength`,void 0),g([v({type:Boolean,attribute:`no-spinner`})],Z.prototype,`noSpinner`,void 0),g([v()],Z.prototype,`pattern`,void 0),g([v({reflect:!0,converter:F})],Z.prototype,`placeholder`,void 0),g([v({type:Boolean,reflect:!0})],Z.prototype,`readOnly`,void 0),g([v({type:Boolean,reflect:!0})],Z.prototype,`multiple`,void 0),g([v()],Z.prototype,`step`,void 0),g([v({reflect:!0})],Z.prototype,`type`,void 0),g([v({reflect:!0})],Z.prototype,`autocomplete`,void 0),g([s()],Z.prototype,`dirty`,void 0),g([s()],Z.prototype,`focused`,void 0),g([s()],Z.prototype,`nativeError`,void 0),g([s()],Z.prototype,`nativeErrorText`,void 0),g([h(`.input`)],Z.prototype,`inputOrTextarea`,void 0),g([h(`.field`)],Z.prototype,`field`,void 0),g([x({slot:`leading-icon`})],Z.prototype,`leadingIcons`,void 0),g([x({slot:`trailing-icon`})],Z.prototype,`trailingIcons`,void 0);var ue=class extends Z{constructor(){super(...arguments),this.fieldTag=C`md-outlined-field`}},Q=o`: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)}
138
- `;Q.styleSheet;var $=class extends ue{constructor(){super(...arguments),this.fieldTag=C`md-outlined-field`}};$.styles=[Q,A],$=g([_(`md-outlined-text-field`)],$);export{L as a,I as i,q as n,V as o,H as r,P as s,Y as t};
137
+ `}renderPrefix(){return this.renderAffix(this.prefixText,!1)}renderSuffix(){return this.renderAffix(this.suffixText,!0)}renderAffix(e,t){return e?i`<span class="${_({suffix:t,prefix:!t})}">${e}</span>`:b}getErrorText(){return this.error?this.errorText:this.nativeErrorText}handleFocusChange(){this.focused=this.inputOrTextarea?.matches(`:focus`)??!1}handleInput(e){this.dirty=!0,this.value=e.target.value}redispatchEvent(e){w(this,e)}getInputOrTextarea(){return this.inputOrTextarea||(this.connectedCallback(),this.scheduleUpdate()),this.isUpdatePending&&this.scheduleUpdate(),this.inputOrTextarea}getInput(){return this.type===`textarea`?null:this.getInputOrTextarea()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0,this.hasTrailingIcon=this.trailingIcons.length>0}[f](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}focus(){this.getInputOrTextarea().focus()}[I](){return new ce(()=>({state:this,renderedControl:this.inputOrTextarea}))}[L](){return this.inputOrTextarea}[H](e){e?.preventDefault();let t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&this.field?.reannounceError()}};Z.shadowRootOptions={...o.shadowRootOptions,delegatesFocus:!0},p([r({type:Boolean,reflect:!0})],Z.prototype,`error`,void 0),p([r({attribute:`error-text`})],Z.prototype,`errorText`,void 0),p([r()],Z.prototype,`label`,void 0),p([r({type:Boolean,attribute:`no-asterisk`})],Z.prototype,`noAsterisk`,void 0),p([r({type:Boolean,reflect:!0})],Z.prototype,`required`,void 0),p([r()],Z.prototype,`value`,void 0),p([r({attribute:`prefix-text`})],Z.prototype,`prefixText`,void 0),p([r({attribute:`suffix-text`})],Z.prototype,`suffixText`,void 0),p([r({type:Boolean,attribute:`has-leading-icon`})],Z.prototype,`hasLeadingIcon`,void 0),p([r({type:Boolean,attribute:`has-trailing-icon`})],Z.prototype,`hasTrailingIcon`,void 0),p([r({attribute:`supporting-text`})],Z.prototype,`supportingText`,void 0),p([r({attribute:`text-direction`})],Z.prototype,`textDirection`,void 0),p([r({type:Number})],Z.prototype,`rows`,void 0),p([r({type:Number})],Z.prototype,`cols`,void 0),p([r({reflect:!0})],Z.prototype,`inputMode`,void 0),p([r()],Z.prototype,`max`,void 0),p([r({type:Number})],Z.prototype,`maxLength`,void 0),p([r()],Z.prototype,`min`,void 0),p([r({type:Number})],Z.prototype,`minLength`,void 0),p([r({type:Boolean,attribute:`no-spinner`})],Z.prototype,`noSpinner`,void 0),p([r()],Z.prototype,`pattern`,void 0),p([r({reflect:!0,converter:F})],Z.prototype,`placeholder`,void 0),p([r({type:Boolean,reflect:!0})],Z.prototype,`readOnly`,void 0),p([r({type:Boolean,reflect:!0})],Z.prototype,`multiple`,void 0),p([r()],Z.prototype,`step`,void 0),p([r({reflect:!0})],Z.prototype,`type`,void 0),p([r({reflect:!0})],Z.prototype,`autocomplete`,void 0),p([n()],Z.prototype,`dirty`,void 0),p([n()],Z.prototype,`focused`,void 0),p([n()],Z.prototype,`nativeError`,void 0),p([n()],Z.prototype,`nativeErrorText`,void 0),p([a(`.input`)],Z.prototype,`inputOrTextarea`,void 0),p([a(`.field`)],Z.prototype,`field`,void 0),p([x({slot:`leading-icon`})],Z.prototype,`leadingIcons`,void 0),p([x({slot:`trailing-icon`})],Z.prototype,`trailingIcons`,void 0);var ue=class extends Z{constructor(){super(...arguments),this.fieldTag=C`md-outlined-field`}},Q=m`: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)}
138
+ `;Q.styleSheet;var $=class extends ue{constructor(){super(...arguments),this.fieldTag=C`md-outlined-field`}};$.styles=[Q,A],$=p([e(`md-outlined-text-field`)],$);export{L as a,I as i,q as n,V as o,H as r,P as s,Y as t};
@@ -1,3 +1,3 @@
1
- import{I as e,J as t,V as n,X as r,Y as i}from"./Cwz551Q0.js";var a=class extends e{connectedCallback(){super.connectedCallback(),this.setAttribute(`aria-hidden`,`true`)}render(){return n`<span class="shadow"></span>`}},o=t`: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}
2
- `;o.styleSheet;var s=class extends a{};s.styles=[o],s=r([i(`md-elevation`)],s);var c=t`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)}
1
+ import{A as e,S as t,_ as n,j as r,k as i}from"./DRNNJMYk.js";var a=class extends n{connectedCallback(){super.connectedCallback(),this.setAttribute(`aria-hidden`,`true`)}render(){return t`<span class="shadow"></span>`}},o=i`: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}
2
+ `;o.styleSheet;var s=class extends a{};s.styles=[o],s=r([e(`md-elevation`)],s);var c=i`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)}
3
3
  `;c.styleSheet;function l(e,t){t.bubbles&&(!e.shadowRoot||t.composed)&&t.stopPropagation();let n=Reflect.construct(t.constructor,[t.type,t]),r=e.dispatchEvent(n);return r||t.preventDefault(),r}export{c as n,l as t};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DENUQERM.js","../chunks/B__KpOuX.js","../chunks/UKukklIc.js","../chunks/BkoDSEOx.js","./payload.DSmR2FwN.js","../chunks/D0famktY.js","../chunks/C06IiL6m.js","../chunks/BEImj5AP.js","../chunks/DRNNJMYk.js","../chunks/R_4U_-zb.js","../chunks/VxDST09k.js","../chunks/BLbj0ykL.js","../chunks/Bvlvl8SZ.js","../chunks/CTnnxqUD.js","../chunks/JsC3ASJq.js","../chunks/Bxh3K0TK.js","../assets/0.ONZWQgDA.css","../nodes/1.BBl7b45u.js","../nodes/2.4VpydhMh.js","../chunks/BlC5mir6.js","../assets/Pane.Dgdg5KMw.css","../assets/2.DSVNnDlO.css","../nodes/3.D9AmPYb5.js","../chunks/w5i9ZoX_.js","../chunks/BuwZGWCm.js","../chunks/OAsMjdHF.js","../chunks/vPs9G1oN.js","../assets/3.WduKm4aT.css","../nodes/4.DxNIrNp_.js","../chunks/CAZ56n62.js","../assets/4.DEk4yqpA.css","../nodes/5.Cm6I95kb.js","../chunks/BquQTeuV.js","../assets/ExternalLink.CYXazpKA.css","../assets/5.YyxFzHED.css","../nodes/6.D9jpgBJB.js","../assets/6.C0Nhvs_m.css"])))=>i.map(i=>d[i]);
2
+ import{i as e}from"../chunks/D0famktY.js";import{t}from"../chunks/DUTjbZNf.js";function n(e){let t={};for(let[n,i]of Object.entries(e))t[n]=r(i);return t}function r(t){if(t&&(typeof t==`object`||typeof t==`function`)&&`~standard`in t)return t;if(typeof t==`function`)return{"~standard":{validate(e){let n=t(e);return n===void 0?{issues:[{message:`Invalid param`}]}:n instanceof Promise?n:{value:n}}}};e()}var i=n({id:e=>{if(!/^[1-9]\d*$/.test(e))return;let t=Number(e);return Number.isSafeInteger(t)?t:void 0}}),a=[()=>t(()=>import(`../nodes/0.DENUQERM.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),()=>t(()=>import(`../nodes/1.BBl7b45u.js`),__vite__mapDeps([17,1,7,3,4,5,6]),import.meta.url),()=>t(()=>import(`../nodes/2.4VpydhMh.js`),__vite__mapDeps([18,1,3,4,5,2,7,6,19,20,12,21]),import.meta.url),()=>t(()=>import(`../nodes/3.D9AmPYb5.js`),__vite__mapDeps([22,1,14,4,5,3,7,2,6,8,23,24,11,9,10,25,26,27]),import.meta.url),()=>t(()=>import(`../nodes/4.DxNIrNp_.js`),__vite__mapDeps([28,1,29,8,24,23,26,10,11,13,19,20,30]),import.meta.url),()=>t(()=>import(`../nodes/5.Cm6I95kb.js`),__vite__mapDeps([31,1,3,4,5,29,8,24,23,32,33,2,15,25,34]),import.meta.url),()=>t(()=>import(`../nodes/6.D9jpgBJB.js`),__vite__mapDeps([35,1,3,4,5,6,7,2,24,8,32,33,11,15,36]),import.meta.url)],o=[0],s={"/":[-4],"/settings":[-5],"/setup":[5,[2]],"/setup/instructions":[-7,[2]]},c={handleError:(({kind:e,error:t})=>{e===`unknown`&&console.error(t)}),reroute:(()=>{}),transport:{}},l=Object.fromEntries(Object.entries(c.transport).map(([e,t])=>[e,t.decode])),u=Object.fromEntries(Object.entries(c.transport).map(([e,t])=>[e,t.encode])),d=!1,f=(e,t)=>l[e](t),p=()=>t(()=>import(`../chunks/Beqi9dRN.js`).then(e=>e.default),[],import.meta.url);export{f as decode,l as decoders,s as dictionary,u as encoders,p as get_error_template,d as hash,c as hooks,i as matchers,a as nodes,o as server_loads};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/BtnuBvK5.js","../chunks/JsC3ASJq.js","./payload.DSmR2FwN.js","../chunks/D0famktY.js","../chunks/B__KpOuX.js","../chunks/BkoDSEOx.js","../chunks/BEImj5AP.js"])))=>i.map(i=>d[i]);
2
+ import{set_payload as e}from"./payload.DSmR2FwN.js";import{t}from"../chunks/DUTjbZNf.js";var n;function r(r){e(r),n??=t(()=>import(`../chunks/BtnuBvK5.js`),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url)}async function i(...e){return(await n).start(...e)}async function a(...e){return(await n).load_css(...e)}export{r as init,a as load_css,i as start};
@@ -0,0 +1 @@
1
+ import{$ as e,A as t,B as n,D as r,E as i,F as a,G as o,I as s,J as c,K as l,L as u,N as d,P as f,Q as p,R as m,S as h,V as g,W as _,X as v,Y as y,_ as b,a as x,d as S,et as ee,f as C,g as w,k as T,m as E,nt as D,q as O,rt as k,s as A,u as j,v as M,w as N,y as te}from"../chunks/B__KpOuX.js";import"../chunks/UKukklIc.js";import"../chunks/C06IiL6m.js";import{n as ne,t as re}from"../chunks/DRNNJMYk.js";import{c as ie,l as ae,t as oe,u as se}from"../chunks/R_4U_-zb.js";import{t as ce}from"../chunks/Bvlvl8SZ.js";import{c as le,o as ue,t as de}from"../chunks/CTnnxqUD.js";import{l as fe,s as pe,t as P}from"../chunks/BkoDSEOx.js";import{_ as me,a as he,f as F,g as ge,h as I,i as _e,l as L,m as ve,n as ye,o as R,p as be,s as z,t as xe,u as Se}from"../chunks/JsC3ASJq.js";import{n as B,o as Ce,t as we}from"../chunks/BEImj5AP.js";import{i as Te,n as Ee,r as De,t as Oe}from"../chunks/Bxh3K0TK.js";var ke=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='44'%20height='44'%20viewBox='0%200%2044%2044'%3e%3ctitle%3eSpeech%20Capture%3c/title%3e%3crect%20width='44'%20height='44'%20rx='14'%20fill='%23415f91'/%3e%3cpath%20d='M4%2010v4M8%206v12M12%203v18M16%208v8M20%2011v2'%20transform='translate(10%2010)'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,Ae=new URL(`../assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2`,import.meta.url).href,je=i(`<li><span class="face svelte-19wvxlf" aria-hidden="true"><span></span> <span class="chip-label svelte-19wvxlf"> </span></span> <span class="visually-hidden"> </span></li>`),Me=i(`<ul aria-label="Bridge status" class="svelte-19wvxlf"></ul>`),Ne=i(`<!> <span class="visually-hidden" role="status"> </span>`,1);function Pe(t,n){e(n,!0);var r=Ne(),i=f(r),c=e=>{var t=Me();E(t,21,()=>n.chips,e=>e.id,(e,t)=>{var n=je();let r;var i=d(n),c=d(i),l=s(c,2),u=a(l,!0);k(i);var f=s(i,2),p=a(f,!0);k(n),o(()=>{r=j(n,1,w(m(t).tone),`svelte-19wvxlf`,r,{down:m(t).down}),x(i,`title`,m(t).text),j(c,1,`dot ${m(t).dot??``}`,`svelte-19wvxlf`),h(u,m(t).text),h(p,m(t).description)}),N(e,n)}),k(t),N(e,t)};b(i,e=>{n.chips.length>0&&e(c)});var l=s(i,2),u=a(l,!0);o(()=>h(u,n.announcement)),N(t,r),p()}var Fe=i(`<md-icon-button><md-icon>refresh</md-icon></md-icon-button>`,2);function Ie(e,n){var r=Fe();A(r,`title`,`Refresh status`),A(r,`aria-label`,`Refresh status`),j(r,1,`svelte-5q7qd7`);var i=d(r);A(i,`aria-hidden`,`true`);let a;k(r),o(()=>a=j(i,1,`svelte-5q7qd7`,null,a,{spin:n.loading})),t(`click`,r,function(...e){n.onRetry?.apply(this,e)}),N(e,r)}T([`click`]);function Le(e,t){return t?e===null?[]:[V(`playwright`,`Playwright`,e.playwright),V(`mcp`,`MCP`,e.mcp)].filter(e=>e!==null):[{id:`bridge`,text:`Bridge unreachable`,tone:`error`,dot:`filled`,description:`Bridge unreachable`}]}function V(e,t,n){let r=`${t} ${n.version}`;switch(n.state){case`running`:return{id:e,text:r,tone:`ok`,dot:`filled`,description:`${r}, running`};case`crashed`:case`failed`:return{id:e,text:`${r} · ${n.state}`,tone:`warning`,dot:`filled`,description:`${r}, ${n.state}`};case`starting`:return{id:e,text:r,tone:`neutral`,dot:`hollow`,description:`${r}, starting`,down:!0};case`stopped`:return null}}function Re(e,t){return t?e.filter(e=>e.tone===`error`||e.tone===`warning`).map(e=>`${e.description}.`).join(` `):`Bridge unreachable.`}var ze=i(`<!> <!>`,1);function Be(t,n){e(n,!0);let r=ne().status,i=v(()=>B.data.status),a=v(()=>r.status??m(i)),o=v(()=>Le(m(a),r.reachable));M(()=>{r.seed(m(i)),r.init()});var c=ze(),l=f(c);{let e=v(()=>Re(m(o),r.reachable));Pe(l,{get chips(){return m(o)},get announcement(){return m(e)}})}var u=s(l,2),d=e=>{Ie(e,{get loading(){return r.loading},onRetry:()=>void r.retry()})};b(u,e=>{r.reachable||e(d)}),N(t,c),p()}var Ve=i(`<header class="svelte-4j9s4f"><div class="logo-slot svelte-4j9s4f"><div class="logo svelte-4j9s4f"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 10v4M8 6v12M12 3v18M16 8v8M20 11v2"></path></svg></div></div> <div class="title svelte-4j9s4f"><span class="name svelte-4j9s4f">Speech Capture</span> <span class="meta svelte-4j9s4f"> </span></div> <!></header>`);function He(e,t){var n=Ve(),r=s(d(n),2),i=s(d(r),2),c=a(i,!0);k(r),Be(s(r,2),{}),k(n),o(()=>h(c,t.host)),N(e,n)}var Ue=i(`<li><a data-sveltekit-reset="false" class="svelte-sxtjmn"><span><md-ripple></md-ripple> <md-icon> </md-icon></span> <span class="label svelte-sxtjmn"> </span></a></li>`,2),We=i(`<nav aria-label="Pages" class="svelte-sxtjmn"><ul class="svelte-sxtjmn"></ul></nav> <span class="visually-hidden" role="status"> </span>`,1);function Ge(n,i){let u=r();e(i,!0);let g=y(``),_;l(()=>(i.currentPath,()=>{clearTimeout(_),c(g,``)}));function b(e,t){if(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;let n=e.currentTarget;n.href===n.ownerDocument.URL&&(e.preventDefault(),clearTimeout(_),c(g,``),_=setTimeout(()=>c(g,`${t}, current page`),100))}function ee(e){e.key===` `&&(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||(e.preventDefault(),e.repeat||e.currentTarget.click()))}var C=We(),w=f(C),T=d(w);E(T,23,()=>i.items,e=>e.href,(e,n,r)=>{let c=v(()=>ce(m(n),i.currentPath)),l=v(()=>`${u}-link-${m(r)}`),f=v(()=>`${m(l)}-label`);var p=Ue(),g=d(p),_=d(g);let y;var S=d(_);o(()=>A(S,`for`,m(l))),A(S,`aria-hidden`,`true`);var C=s(S,2);A(C,`aria-hidden`,`true`);var w=a(C,!0);k(_);var T=s(_,2),E=a(T,!0);k(g),k(p),o(()=>{x(g,`id`,m(l)),x(g,`href`,m(n).href),x(g,`aria-labelledby`,m(f)),x(g,`aria-current`,m(c)?`page`:void 0),y=j(_,1,`indicator svelte-sxtjmn`,null,y,{current:m(c)}),h(w,m(n).icon),x(T,`id`,m(f)),h(E,m(n).label)}),t(`click`,g,e=>b(e,m(n).label)),t(`keydown`,g,ee),N(e,p)}),k(T),S(T,()=>se(`a`)),k(w);var D=s(w,2),O=a(D,!0);o(()=>h(O,m(g))),N(n,C),p()}T([`click`,`keydown`]);var Ke=class{async copy(e){let t=navigator.clipboard;if(t!==void 0)try{return await t.writeText(e),!0}catch{}return qe(e)}};function qe(e){let t=document.activeElement,n=document.createElement(`textarea`);n.value=e,n.readOnly=!0,n.setAttribute(`aria-hidden`,`true`),Object.assign(n.style,{position:`fixed`,top:`0`,left:`0`,opacity:`0`}),document.body.append(n);try{return n.select(),document.execCommand(`copy`)}catch{return!1}finally{n.remove(),t instanceof HTMLElement&&t.focus({preventScroll:!0})}}var H=`sr-theme`,Je=class{read(){try{return le(localStorage.getItem(H))}catch{return null}}write(e){document.documentElement.dataset.theme=e;try{localStorage.setItem(H,e)}catch{}}},Ye=`24px "Material Symbols Outlined"`;async function Xe(){try{await document.fonts.load(Ye)}catch{}document.documentElement.setAttribute(`data-icons-ready`,``)}var Ze=(e,t)=>Error(e?.message??`The request answered ${t}`);async function U(e,{method:t=`GET`,body:n,signal:r,rejection:i=Ze}={}){let a=await fetch(e,{method:t,headers:{accept:`application/json`,...n===void 0?{}:{"content-type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n),signal:r});if(!a.ok)throw i(await Qe(a),a.status);return a}async function W(e,t){return await(await U(e,t)).json()}async function Qe(e){let t=await e.json().catch(()=>void 0);if(typeof t!=`object`||!t||!(`message`in t))return null;let{message:n}=t;return typeof n==`string`?{message:n,field:`field`in t&&typeof t.field==`string`?t.field:void 0}:null}var G=(e,t)=>e===null?Error(`The request answered ${t}`):new de(e.message,e.field),$e=class{url;constructor(e){this.url=e}fetch(){return W(this.url,{rejection:G})}update(e){return W(this.url,{method:`PUT`,body:e,rejection:G})}},et=class{url;constructor(e){this.url=e}pressAndCapture(e,t,n){return W(this.url,{method:`POST`,body:{keys:e,capture:t},signal:n})}},tt=class{markersUrl;speechUrl;constructor(e,t){this.markersUrl=e,this.speechUrl=t}async addMarker(e){await U(this.markersUrl,{method:`POST`,body:{label:e}})}async clear(e){await U(`${this.speechUrl}?session=${e}`,{method:`DELETE`})}},nt=Symbol(`sveltekit.query_function_id`),K=Symbol(`sveltekit.query_override_key`),rt=Symbol(`sveltekit.query_resource_key`);function q(e,t,n,r){try{O(()=>{let i=e.get(n)?.get(r);if(i)return t.manual_ref(i,n,r)})}catch{}}function J(e,t,n,r,i){return((...a)=>{let o=e.get(n)?.get(r),s=o?t.manual_ref(o,n,r):void 0,c=i(...a);return s&&c.then(s,s),c})}async function it(e,t,n){let r=await fetch(e,t),i=r.status;if(we(r.headers.get(`x-sveltekit-version`)),!r.ok){let e=await r.json().catch(()=>void 0);throw e?.type===`error`?new F({status:i,...e.error}):new be({status:i,message:r.statusText})}let a=await r.json();if(a.type===`error`)throw new F(a.error);let o=a.data?me(a.data,ye.decoders):{};function s(e,t,n){t?.resource?n.e?t.resource.fail(new F(n.e)):t.resource.set(n.v):n.e||(z[e]=n)}if(o.q)for(let e in o.q){n?.delete(e);let t=I(e);s(e,R.get(t.id)?.get(t.payload),o.q[e])}if(o.l)for(let e in o.l){n?.delete(e);let t=I(e),r=he.get(t.id)?.get(t.payload);s(e,r,o.l[e]),o.l[e].e||r?.resource.reconnect()}for(let e of o.i??[])n?.delete(e);return o}var Y=`sveltekit:${Ce}`;(async()=>{if(typeof caches<`u`)try{await caches.open(Y);let e=await caches.keys();for(let t of e)t.startsWith(`sveltekit:`)&&t!==Y&&await caches.delete(t)}catch(e){console.warn(`Failed to initialize SvelteKit cache:`,e)}})();var X=new Map;new FinalizationRegistry(e=>{let t=X.get(e);t&&t.deref()===void 0&&X.delete(e)});function at(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Z=class{#e;#t;#n=y(!0);#r=[];#i=y(!1);#a=y();#o=y(null);#s=y(u([]));#c=v(()=>{if(m(this.#i))return m(this.#s).reduce((e,t)=>t(e),m(this.#a))});#l=y(void 0);#u=v(()=>{let e=this.#d();return m(this.#s).length,(t,r)=>{let i=e.then(n).then(()=>{if(!m(this.#i))throw new F(m(this.#l)??{status:500,message:`Query resolved without a value`});return m(this.#c)});return t||r?i.then(t,r):i}});constructor(e,t){if(this.#e=e,this.#t=t,Object.hasOwn(z,e)){let t=z[e];delete z[e],t.e?this.fail(new F(t.e)):this.set(t.v)}}#d(){return g(()=>m(this.#o)??c(this.#o,this.#p())),m(this.#o)}start(){n().then(()=>this.#d()).catch(L)}#f(){this.#r.forEach(e=>e(void 0)),this.#r.length=0}#p(){c(this.#n,!0);let{promise:e,resolve:t,reject:n}=at();return e.catch(L),this.#r.push(t),Promise.resolve(this.#t()).then(e=>{let n=this.#r.indexOf(t);n!==-1&&g(()=>{this.#r.splice(0,n+1).forEach(e=>e(void 0)),c(this.#i,!0),c(this.#n,!1),c(this.#a,e),c(this.#l,void 0)})}).catch(async e=>{if(!this.#r.includes(t))return;let r=await _e(e,{params:{},route:{id:null},url:new URL(location.href)}),i=this.#r.indexOf(t);i!==-1&&(g(()=>{this.#r.splice(0,i).forEach(e=>e(void 0)),this.#r.shift(),c(this.#l,r),c(this.#n,!1)}),n(new F(r)))}),e}get then(){return this.start(),m(this.#u)}get catch(){return this.start(),m(this.#u),e=>m(this.#u)(void 0,e)}get finally(){return this.start(),m(this.#u),e=>m(this.#u)(t=>(e(),t),t=>{throw e(),t})}get current(){return this.start(),m(this.#c)}get error(){return this.start(),m(this.#l)}get loading(){return this.start(),m(this.#n)}get ready(){return this.start(),m(this.#i)}refresh(){return delete z[this.#e],c(this.#o,this.#p())}set(e){delete z[this.#e];let t=this.#r.length>0;this.#f(),c(this.#i,!0),c(this.#n,!1),c(this.#l,void 0),c(this.#a,e),t||c(this.#o,Promise.resolve())}fail(e){delete z[this.#e],this.#f(),c(this.#n,!1),c(this.#l,e.body);let t=Promise.reject(e);t.catch(L),c(this.#o,t)}withOverride(e){m(this.#s).push(e);let t=(()=>{let t=m(this.#s).indexOf(e);t!==-1&&m(this.#s).splice(t,1)});return Object.defineProperty(t,K,{value:this.#e}),t}reset(){c(this.#o,null),delete z[this.#e]}get[Symbol.toStringTag](){return`Query`}},Q=class{#e;#t;#n=new FinalizationRegistry(({entry:e,id:t,payload:n})=>{this.deref(e,t,n)});constructor(e,t){this.#e=e,this.#t=t}ensure_entry=(e,t,n)=>{let r=this.#e.get(e);r||(r=new Map,this.#e.set(e,r));let i=r.get(t);if(!i){let e={proxy_count:0,resource:null,cleanup:null};e.cleanup=_(()=>{e.resource=n()}),i=e,r.set(t,i)}return i};ref=(e,t,n,r)=>{t.proxy_count++,this.#n.register(e,{entry:t,id:n,payload:r})};manual_ref=(e,t,n)=>(e.proxy_count++,Se(()=>this.deref(e,t,n)));deref=(e,t,r)=>{e.proxy_count--,n().then(()=>{let e=this.#e.get(t)?.get(r);!e||e.proxy_count>0||this.#r(t,r)})};#r=(e,t)=>{let n=this.#e.get(e),r=n?.get(t);r&&(this.#t?.(r.resource),r.cleanup(),n?.delete(t),n&&n.size===0&&this.#e.delete(e))}},$=new Q(R),ot=class{#e;#t;#n;#r;constructor(e,t,n){this.#e=e,this.#n=ge(t),this.#t=ve(e,this.#n),Object.defineProperty(this,rt,{value:this.#t}),this.#r=n;let r=this.#t,i=this.#n,a=$.ensure_entry(this.#e,this.#n,()=>new Z(r,()=>n(i)));$.ref(this,a,this.#e,this.#n)}#i(){let e=R.get(this.#e)?.get(this.#n);if(!e)throw Error(`No cached query found. This should be impossible. Please file a bug report.`);return e.resource}get current(){return this.#i().current}get error(){return this.#i().error}get loading(){return this.#i().loading}get ready(){return this.#i().ready}refresh(){return this.#i().refresh()}set(e){this.#i().set(e)}withOverride(e){let t=this.#r,n=this.#t,r=this.#n,i=$.ensure_entry(this.#e,this.#n,()=>new Z(n,()=>t(r))),a=$.manual_ref(i,this.#e,this.#n),o=i.resource.withOverride(e),s=(()=>{o(),a()});return Object.defineProperty(s,K,{value:o[K]}),s}get then(){q(R,$,this.#e,this.#n);let e=this.#i();return J(R,$,this.#e,this.#n,e.then.bind(e))}get catch(){q(R,$,this.#e,this.#n);let e=this.#i();return J(R,$,this.#e,this.#n,e.catch.bind(e))}get finally(){q(R,$,this.#e,this.#n);let e=this.#i();return J(R,$,this.#e,this.#n,e.finally.bind(e))}get[Symbol.toStringTag](){return`QueryProxy`}};function st(e){let t=t=>new ot(e,t,async t=>{let n=await it(`${fe}/${pe}/remote/${e}${t?`?payload=${t}`:``}`);n.redirect&&await xe(n.redirect)});return Object.defineProperty(t,nt,{value:e}),t}new Q(he,e=>e.destroy());var ct=st(`1j2tn2d/getSessions`),lt=class{url;constructor(e){this.url=e}async list(){let e=ct();return await e.refresh(),e.current}start(e,t){return W(this.url,{method:`POST`,body:{name:e,run:t}})}async end(){await U(`${this.url}/end`,{method:`POST`})}async delete(e){await U(`${this.url}/${e}`,{method:`DELETE`})}},ut=1e3,dt=class{streamUrl;speechUrl;constructor(e,t){this.streamUrl=e,this.speechUrl=t}open(e,t,n){return n.onState(`connecting`),t?this.follow(e,n):this.read(e,n)}listen(e,t){let n=this.stream(`since=${e}`,e=>t.onEntry(e));return this.report(n,e=>t.onState(e)),()=>n.close()}follow(e,t){let n=this.stream(`session=${encodeURIComponent(String(e))}&since=0`,e=>t.onEntry(e));return this.report(n,e=>t.onState(e)),n.addEventListener(`clear`,()=>t.onClear()),()=>n.close()}report(e,t){e.onopen=()=>t(`live`),e.onerror=()=>t(e.readyState===EventSource.CLOSED?`failed`:`reconnecting`)}stream(e,t){let n=new EventSource(`${this.streamUrl}?${e}`);return n.addEventListener(`entry`,e=>{let n;try{n=JSON.parse(e.data)}catch{return}let r=ie(ae,n);r.ok&&t(r.value)}),n}read(e,t){let n=new AbortController;return(async()=>{let r=0;for(;;){let i=new URLSearchParams({session:String(e),since:String(r),limit:String(ut)}),{entries:a,hasMore:o}=await W(`${this.speechUrl}?${i}`,{signal:n.signal});t.onEntries(a);let s=a.at(-1);if(!o||s===void 0)return;r=s.seq}})().then(()=>t.onState(`ended`),()=>{n.signal.aborted||t.onState(`failed`)}),()=>n.abort()}},ft=class{url;constructor(e){this.url=e}fetch(){return W(this.url)}};function pt(e){return e===`1`||e!==`0`&&null}function mt(e){return e?`1`:`0`}var ht=`sr-sessions-collapsed`,gt=class{read(){try{return pt(localStorage.getItem(ht))}catch{return null}}write(e){try{localStorage.setItem(ht,mt(e))}catch{}}};function _t(e){let t=y(null),n=y(!0),r=y(!1),i=null;function a(){return i||(c(r,!0),i=e.fetch().then(e=>{c(t,e,!0),c(n,!0)}).catch(()=>{c(n,!1)}).finally(()=>{i=null,c(r,!1)}),i)}return{get loaded(){return m(t)!==null},get reachable(){return m(n)},get reading(){return m(r)},get active(){return m(t)?.active??null},get saved(){return m(t)?.saved??null},get overrides(){return m(t)?.overrides??{}},seed(e){e!==null&&(c(t,e,!0),c(n,!0))},refresh(){return a()},async save(t){await e.update(t),await i,await a()}}}function vt(e){let t=y(!0);return{get collapsed(){return m(t)},init(){c(t,e.read()??!1,!0)},toggle(){c(t,!m(t)),e.write(m(t))}}}var yt=3e3;function bt(e){let t=y(u([])),n=y(null),r=y(0),i=y(!0),a=y(!1),o=y(u(Date.now())),s=null;function l(e,i=Date.now()){c(t,e.sessions,!0),c(n,e.currentId,!0),c(r,e.outsideEntries,!0),c(o,i,!0),c(a,!0)}function d(){return s||(s=e.list().then(e=>{l(e),c(i,!0)}).catch(()=>{c(i,!1)}).finally(()=>{s=null}),s)}async function f(){await s,await d()}return{get sessions(){return m(t)},get currentId(){return m(n)},get outsideEntries(){return m(r)},get loaded(){return m(a)},get reachable(){return m(i)},get now(){return m(o)},seed(e,t){e!==null&&!m(a)&&l(e,t)},init(){d();let e=setInterval(()=>{m(n)!==null&&c(o,Date.now(),!0)},1e3),t=setInterval(()=>void d(),yt);return()=>{clearInterval(e),clearInterval(t)}},refresh(){return f()},async start(t,n){let r=await e.start(t,n);return await f(),r},async end(){await e.end(),await f()},async delete(t){await e.delete(t),await f()}}}function xt(e,t){let n=y([]),r=y(`connecting`),i=null;function a(){i?.(),i=null}function o(e){let t=m(n).at(-1)?.seq??0,r=[];for(let n of e)n.seq<=t||(r.push(n),t=n.seq);if(r.length===0)return;let i=[...m(n),...r];c(n,i.length>5e3?i.slice(i.length-oe):i)}return{get entries(){return m(n)},get connection(){return m(r)},open(t,s){return a(),c(n,[]),c(r,`connecting`),i=e.open(t,s,{onEntry:e=>o([e]),onEntries:o,onClear(){c(n,[])},onState(e){c(r,e,!0)}}),a},clear(e){return t.clear(e)},addMarker(e){return t.addMarker(e)}}}function St(e){let t=y(null),n=y(!0),r=y(!1),i=null;function a(){return i||(c(r,!0),i=e.fetch().then(e=>{c(t,e,!0),c(n,!0)}).catch(()=>{c(n,!1)}).finally(()=>{c(r,!1),i=null}),i)}return{get status(){return m(t)},get reachable(){return m(n)},get loading(){return m(r)},seed(e){e!==null&&m(t)===null&&c(t,e,!0)},init(){a()},retry(){return a()}}}function Ct(e){let t=y(u(ue));return{get current(){return m(t)},init(){c(t,e.read()??`light`,!0)},set(n){c(t,n,!0),e.write(n)}}}function wt(e,t,n){let r=y(`idle`),i=y(`manual`),a=y([]),o=y(!1),s=y(``),l=0,u=null,d;function f(){l++,clearTimeout(d),u?.(),u=null,c(o,!1)}function p(e){f(),c(r,`failed`),c(s,e,!0)}function h(){d=setTimeout(()=>{m(o)?p(`The connection to the bridge was lost.`):(f(),c(r,`silent`))},De)}async function g(n){c(r,`starting`);let i;try{i=(await e.fetch()).buffer.lastSeq??0}catch{n===l&&p(`The bridge is not reachable.`);return}n===l&&(c(r,`listening`),u=t.listen(i,{onEntry(e){n===l&&e.kind!==`marker`&&(c(a,[...m(a),e]),c(r,`heard`),clearTimeout(d),m(a).length>=5?f():d=setTimeout(f,Te))},onState(e){n===l&&(e===`failed`?m(r)===`heard`?f():p(`The speech stream is not available.`):c(o,e===`reconnecting`))}}),h())}async function _(e){c(r,`listening`);let t=new AbortController;u=()=>t.abort();try{let i=await n.pressAndCapture(Ee,Oe,t.signal);if(e!==l)return;f(),c(a,i.entries.slice(0,5)),c(r,m(a).length>0?`heard`:`silent`,!0)}catch(t){e===l&&p(t instanceof Error?t.message:`The keys could not be sent.`)}}return{get phase(){return m(r)},get via(){return m(i)},get entries(){return m(a)},get reconnecting(){return m(o)},get failure(){return m(s)},async start(e){f(),c(i,e,!0),c(a,[]),c(s,``),await(e===`manual`?g(l):_(l))},stop(){f(),c(r,`idle`),c(a,[]),c(s,``)}}}function Tt(){let e=new ft(P(`/api/status`)),t=new dt(P(`/api/speech/stream`),P(`/api/speech`)),n=new tt(P(`/api/markers`),P(`/api/speech`)),r=new Ke;return{theme:Ct(new Je),status:St(e),config:_t(new $e(P(`/api/config`))),sessions:bt(new lt(P(`/api/sessions`))),speech:xt(t,n),voiceCheck:wt(e,t,new et(P(`/api/input/keys`))),sessionsPane:vt(new gt),clipboard:r}}function Et(){return ee(re,Tt())}var Dt=i(`<link rel="icon"/> <link rel="preload" as="font" type="font/woff2" crossorigin="anonymous"/> <meta name="color-scheme" content="light dark"/>`,1),Ot=i(`<div class="app svelte-12qhfyh"><!> <div class="body svelte-12qhfyh"><!> <main class="svelte-12qhfyh"><!></main></div></div>`);function kt(t,n){e(n,!0);let{theme:r}=Et(),i=[{href:P(`/`),label:`Monitor`,icon:`monitor`,exact:!0},{href:P(`/settings`),label:`Settings`,icon:`settings`},{href:P(`/setup`),label:`Setup`,icon:`build`}];M(()=>{r.init(),Xe()});var a=Ot();C(`12qhfyh`,e=>{var t=Dt(),n=f(t),r=s(n,2);D(2),o(()=>{x(n,`href`,ke),x(r,`href`,Ae)}),N(e,t)});var c=d(a);He(c,{get host(){return B.url.host}});var l=s(c,2),u=d(l);Ge(u,{get items(){return i},get currentPath(){return B.url.pathname}});var m=s(u,2),h=d(m);te(h,()=>n.children),k(m),k(l),k(a),N(t,a),p()}export{kt as component};
@@ -0,0 +1 @@
1
+ import{$ as e,E as t,F as n,G as r,H as i,I as a,M as o,P as s,Q as c,S as l,f as u,w as d}from"../chunks/B__KpOuX.js";import{n as f}from"../chunks/BEImj5AP.js";import"../chunks/C06IiL6m.js";var p=t(`<h1> </h1> <p> </p>`,1);function m(t,m){e(m,!0);var h=p();u(`1j96wlh`,e=>{i(()=>{o.title=`${f.status??``} · Speech Capture`})});var g=s(h),_=n(g,!0),v=a(g,2),y=n(v,!0);r(()=>{l(_,f.status),l(y,f.error?.message)}),d(t,h),c()}export{m as component};
@@ -0,0 +1 @@
1
+ import{$ as e,E as t,F as n,G as r,I as i,N as a,P as o,Q as s,R as c,S as l,a as u,m as d,rt as f,w as p,y as m}from"../chunks/B__KpOuX.js";import{t as h}from"../chunks/BkoDSEOx.js";import"../chunks/UKukklIc.js";import{n as g}from"../chunks/BEImj5AP.js";import"../chunks/C06IiL6m.js";import{t as _}from"../chunks/BlC5mir6.js";import{t as v}from"../chunks/Bvlvl8SZ.js";var y=t(`<li><a class="svelte-1rp78hl"> </a></li>`),b=t(`<nav class="svelte-1rp78hl"><ul class="svelte-1rp78hl"></ul></nav>`);function x(t,i){e(i,!0);var o=b(),m=a(o);d(m,21,()=>i.items,e=>e.href,(e,t)=>{var o=y(),s=a(o),d=n(s,!0);f(o),r(e=>{u(s,`href`,c(t).href),u(s,`aria-current`,e),l(d,c(t).label)},[()=>v(c(t),i.currentPath)?`page`:void 0]),p(e,o)}),f(m),f(o),r(()=>u(o,`aria-label`,i.label)),p(t,o),s()}var S=t(`<!> <!>`,1);function C(t,n){e(n,!0);let r=[{href:h(`/setup`),label:`Check`,exact:!0},{href:h(`/setup/instructions`),label:`Instructions`}];_(t,{heading:`Setup`,children:(e,t)=>{var a=S(),s=o(a);x(s,{label:`Setup`,get items(){return r},get currentPath(){return g.url.pathname}});var c=i(s,2);m(c,()=>n.children),p(e,a)},$$slots:{default:!0}}),s()}export{C as component};