@aceshooting/lyra-ui 32.0.0 → 33.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (468) hide show
  1. package/CHANGELOG.md +224 -1380
  2. package/README.md +36 -7
  3. package/custom-elements.slim.json +1 -0
  4. package/design-tokens.json +1 -1
  5. package/dist/accent-roles.css +1 -0
  6. package/dist/all.d.ts +1 -1
  7. package/dist/all.js +1 -1
  8. package/dist/autoloader.d.ts +10 -0
  9. package/dist/autoloader.js +1 -1
  10. package/dist/cli/migrate-wa.mjs +54 -44
  11. package/dist/cli/migration-contract.json.gz +0 -0
  12. package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +1 -0
  13. package/dist/components/agent-tools/budget-meter/budget-meter.styles.js +1 -1
  14. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +1 -1
  15. package/dist/components/charts/chart/box-plot.class.d.ts +3 -0
  16. package/dist/components/charts/chart/chart-band.js +1 -1
  17. package/dist/components/charts/chart/chart-input-projection.js +1 -1
  18. package/dist/components/charts/chart/chart-surface.styles.js +1 -1
  19. package/dist/components/charts/chart/chart-types.d.ts +16 -2
  20. package/dist/components/charts/chart/chart.class.d.ts +4 -1
  21. package/dist/components/charts/chart/chart.class.js +3 -3
  22. package/dist/components/charts/chart/lite-chart.class.d.ts +3 -0
  23. package/dist/components/charts/chart/lite-chart.styles.js +1 -1
  24. package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +10 -0
  25. package/dist/components/conversation/code-block/code-block-base.class.d.ts +31 -3
  26. package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
  27. package/dist/components/conversation/code-block/code-block-core.class.d.ts +46 -2
  28. package/dist/components/conversation/code-block/code-block-core.class.js +1 -1
  29. package/dist/components/conversation/code-block/code-block-shared.d.ts +6 -2
  30. package/dist/components/conversation/code-block/code-block-shared.js +5 -4
  31. package/dist/components/conversation/code-block/code-block.class.d.ts +48 -3
  32. package/dist/components/conversation/code-block/code-block.class.js +1 -1
  33. package/dist/components/conversation/code-block/code-block.styles.js +1 -1
  34. package/dist/components/conversation/code-block/code-grammar-registry.d.ts +35 -0
  35. package/dist/components/conversation/code-block/code-grammar-registry.js +1 -0
  36. package/dist/components/conversation/markdown/markdown-core.class.d.ts +12 -0
  37. package/dist/components/conversation/markdown/markdown.class.d.ts +12 -0
  38. package/dist/components/conversation/markdown/markdown.styles.js +1 -1
  39. package/dist/components/conversation/model-select/model-select.class.d.ts +12 -5
  40. package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +1 -1
  41. package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +1 -0
  42. package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
  43. package/dist/components/conversation/thread-list/thread-list.class.d.ts +3 -0
  44. package/dist/components/conversation/thread-list/thread-list.styles.js +1 -1
  45. package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +1 -1
  46. package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +12 -5
  47. package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +4 -0
  48. package/dist/components/data/heatmap/heatmap.class.d.ts +21 -2
  49. package/dist/components/data/heatmap/heatmap.class.js +2 -2
  50. package/dist/components/data/heatmap/heatmap.styles.js +1 -1
  51. package/dist/components/data/stat/stat.class.d.ts +24 -1
  52. package/dist/components/data/stat/stat.class.js +2 -2
  53. package/dist/components/data/stat/stat.styles.js +1 -1
  54. package/dist/components/data/table/table-row-attributes.js +1 -0
  55. package/dist/components/data/table/table-support.d.ts +64 -5
  56. package/dist/components/data/table/table-support.js +1 -1
  57. package/dist/components/data/table/table.class.d.ts +78 -7
  58. package/dist/components/data/table/table.class.js +10 -10
  59. package/dist/components/data/table/table.styles.js +1 -1
  60. package/dist/components/data/timeline/timeline-item.class.d.ts +27 -5
  61. package/dist/components/data/timeline/timeline-item.class.js +11 -7
  62. package/dist/components/data/timeline/timeline-item.styles.js +1 -1
  63. package/dist/components/data/timeline/timeline.class.d.ts +54 -8
  64. package/dist/components/data/timeline/timeline.class.js +11 -7
  65. package/dist/components/data/timeline/timeline.styles.js +1 -1
  66. package/dist/components/data/tree/tree-item.class.d.ts +2 -0
  67. package/dist/components/data/tree/tree-item.class.js +2 -2
  68. package/dist/components/data/tree/tree-item.styles.js +1 -1
  69. package/dist/components/forms/button/button.class.d.ts +13 -0
  70. package/dist/components/forms/button/button.styles.js +1 -1
  71. package/dist/components/forms/catalog-picker-base.d.ts +14 -1
  72. package/dist/components/forms/checkbox/checkbox.class.js +1 -1
  73. package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +28 -2
  74. package/dist/components/forms/checkbox-group/checkbox-group.class.js +3 -3
  75. package/dist/components/forms/checkbox-group/checkbox-group.styles.js +1 -1
  76. package/dist/components/forms/code-editor/code-editor.class.d.ts +18 -3
  77. package/dist/components/forms/code-editor/code-editor.styles.js +1 -1
  78. package/dist/components/forms/color-picker/color-picker.class.d.ts +25 -5
  79. package/dist/components/forms/color-picker/color-picker.class.js +3 -3
  80. package/dist/components/forms/color-picker/color-picker.styles.js +1 -1
  81. package/dist/components/forms/combobox/combobox-option-html.js +1 -0
  82. package/dist/components/forms/combobox/combobox.class.d.ts +140 -12
  83. package/dist/components/forms/combobox/combobox.class.js +113 -22
  84. package/dist/components/forms/combobox/combobox.styles.js +1 -1
  85. package/dist/components/forms/country-picker/country-picker.class.d.ts +4 -3
  86. package/dist/components/forms/currency-picker/currency-picker.class.d.ts +4 -3
  87. package/dist/components/forms/date-picker/date-input.class.d.ts +53 -3
  88. package/dist/components/forms/date-picker/date-input.class.js +2 -2
  89. package/dist/components/forms/date-picker/date-input.styles.js +1 -1
  90. package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +14 -0
  91. package/dist/components/forms/emoji-picker/emoji-picker.class.js +1 -1
  92. package/dist/components/forms/icon-button/icon-button.class.d.ts +2 -1
  93. package/dist/components/forms/icon-button/icon-button.styles.js +1 -1
  94. package/dist/components/forms/input/input-shared.d.ts +24 -3
  95. package/dist/components/forms/input/input.styles.js +1 -1
  96. package/dist/components/forms/input/time-input.class.d.ts +19 -4
  97. package/dist/components/forms/input/time-input.styles.js +1 -1
  98. package/dist/components/forms/locale-picker/locale-picker.class.d.ts +17 -5
  99. package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -1
  100. package/dist/components/forms/otp-input/otp-input.class.d.ts +8 -3
  101. package/dist/components/forms/otp-input/otp-input.styles.js +1 -1
  102. package/dist/components/forms/phone-input/phone-input.class.d.ts +18 -3
  103. package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
  104. package/dist/components/forms/radio/radio-group.class.d.ts +23 -2
  105. package/dist/components/forms/radio/radio-group.class.js +2 -2
  106. package/dist/components/forms/radio/radio-group.styles.js +1 -1
  107. package/dist/components/forms/radio/radio.class.js +2 -2
  108. package/dist/components/forms/rubric-form/rubric-form.class.d.ts +4 -0
  109. package/dist/components/forms/select/select.class.d.ts +16 -4
  110. package/dist/components/forms/select/select.class.js +1 -1
  111. package/dist/components/forms/select/select.styles.js +1 -1
  112. package/dist/components/forms/signature-pad/signature-pad.class.d.ts +8 -3
  113. package/dist/components/forms/signature-pad/signature-pad.styles.js +1 -1
  114. package/dist/components/forms/slider/slider.class.d.ts +29 -2
  115. package/dist/components/forms/slider/slider.class.js +3 -3
  116. package/dist/components/forms/slider/slider.styles.js +1 -1
  117. package/dist/components/forms/switch/switch.class.d.ts +2 -0
  118. package/dist/components/forms/switch/switch.styles.js +1 -1
  119. package/dist/components/forms/textarea/textarea.class.d.ts +20 -3
  120. package/dist/components/forms/textarea/textarea.styles.js +1 -1
  121. package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +4 -3
  122. package/dist/components/forms/token-input/token-input.class.d.ts +99 -21
  123. package/dist/components/forms/token-input/token-input.class.js +11 -8
  124. package/dist/components/forms/token-input/token-input.styles.js +1 -1
  125. package/dist/components/forms/unit-picker/unit-picker.class.d.ts +4 -3
  126. package/dist/components/layout/app-rail/app-rail.class.d.ts +3 -0
  127. package/dist/components/layout/app-rail/app-rail.styles.js +1 -1
  128. package/dist/components/layout/button-group/button-group.class.d.ts +4 -0
  129. package/dist/components/layout/button-group/button-group.class.js +1 -1
  130. package/dist/components/layout/card/card.class.d.ts +15 -1
  131. package/dist/components/layout/card/card.styles.js +1 -1
  132. package/dist/components/layout/command-palette/command-palette.class.d.ts +1 -1
  133. package/dist/components/layout/details/details.class.d.ts +6 -0
  134. package/dist/components/layout/details/details.styles.js +1 -1
  135. package/dist/components/layout/filter-bar/filter-bar.class.d.ts +6 -0
  136. package/dist/components/layout/filter-bar/filter-bar.styles.js +1 -1
  137. package/dist/components/layout/index.d.ts +1 -1
  138. package/dist/components/layout/index.js +1 -1
  139. package/dist/components/layout/menu/dropdown-item.class.d.ts +8 -2
  140. package/dist/components/layout/menu/dropdown-item.class.js +1 -1
  141. package/dist/components/layout/menu/menu-item.class.d.ts +7 -0
  142. package/dist/components/layout/menu/menu-item.styles.js +1 -1
  143. package/dist/components/layout/menu/menu-label.class.d.ts +5 -0
  144. package/dist/components/layout/menu/menu-label.class.js +1 -1
  145. package/dist/components/layout/menu/menu.class.d.ts +4 -1
  146. package/dist/components/layout/menu/menu.styles.js +1 -1
  147. package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +1 -1
  148. package/dist/components/layout/page/page.class.d.ts +9 -1
  149. package/dist/components/layout/page/page.class.js +2 -2
  150. package/dist/components/layout/segmented/segmented.class.d.ts +22 -3
  151. package/dist/components/layout/segmented/segmented.class.js +3 -4
  152. package/dist/components/layout/segmented/segmented.styles.js +1 -1
  153. package/dist/components/layout/stepper/step.class.d.ts +102 -0
  154. package/dist/components/layout/stepper/step.class.js +18 -0
  155. package/dist/components/layout/stepper/step.styles.js +1 -0
  156. package/dist/components/layout/stepper/stepper.class.d.ts +106 -13
  157. package/dist/components/layout/stepper/stepper.class.js +6 -2
  158. package/dist/components/layout/stepper/stepper.styles.js +1 -1
  159. package/dist/components/layout/tab-group/tab-group.class.d.ts +10 -1
  160. package/dist/components/layout/tab-group/tab-group.class.js +1 -1
  161. package/dist/components/layout/tab-group/tab-group.styles.js +1 -1
  162. package/dist/components/layout/tab-group/tab-panel.class.d.ts +1 -0
  163. package/dist/components/layout/tab-group/tab-panel.class.js +1 -1
  164. package/dist/components/layout/tab-group/tab.class.d.ts +4 -0
  165. package/dist/components/layout/widget/widget.class.d.ts +1 -0
  166. package/dist/components/layout/widget/widget.styles.js +1 -1
  167. package/dist/components/lr-code-block-core.d.ts +1 -1
  168. package/dist/components/lr-code-block.d.ts +1 -1
  169. package/dist/components/lr-counter.d.ts +1 -0
  170. package/dist/components/lr-counter.js +1 -0
  171. package/dist/components/lr-lightbox-item.d.ts +1 -0
  172. package/dist/components/lr-lightbox-item.js +1 -0
  173. package/dist/components/lr-lightbox.d.ts +1 -1
  174. package/dist/components/lr-lightbox.js +1 -1
  175. package/dist/components/lr-number-ticker.d.ts +1 -0
  176. package/dist/components/lr-number-ticker.js +1 -0
  177. package/dist/components/lr-step.d.ts +1 -0
  178. package/dist/components/lr-step.js +1 -0
  179. package/dist/components/media/file-input/file-input.class.d.ts +8 -1
  180. package/dist/components/media/file-input/file-input.class.js +2 -2
  181. package/dist/components/media/file-input/file-input.styles.js +1 -1
  182. package/dist/components/media/index.d.ts +1 -1
  183. package/dist/components/media/index.js +1 -1
  184. package/dist/components/media/lightbox/lightbox-item.class.d.ts +67 -0
  185. package/dist/components/media/lightbox/lightbox-item.class.js +9 -0
  186. package/dist/components/media/lightbox/lightbox-item.styles.js +1 -0
  187. package/dist/components/media/lightbox/lightbox-source.js +1 -1
  188. package/dist/components/media/lightbox/lightbox-types.d.ts +4 -1
  189. package/dist/components/media/lightbox/lightbox.class.d.ts +123 -30
  190. package/dist/components/media/lightbox/lightbox.class.js +18 -12
  191. package/dist/components/media/lightbox/lightbox.styles.js +1 -1
  192. package/dist/components/media/map/map-anchor-avoid.js +1 -1
  193. package/dist/components/media/map/map-drawing-controller.js +1 -1
  194. package/dist/components/media/map/map.class.d.ts +137 -7
  195. package/dist/components/media/map/map.class.js +6 -6
  196. package/dist/components/media/map/map.styles.js +1 -1
  197. package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +9 -0
  198. package/dist/components/media/sequence-playback/sequence-playback.class.js +2 -2
  199. package/dist/components/media/sequence-playback/sequence-playback.styles.js +1 -1
  200. package/dist/components/media/video/video.class.d.ts +4 -0
  201. package/dist/components/media/video/video.class.js +2 -2
  202. package/dist/components/media/video/video.styles.js +1 -1
  203. package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +15 -0
  204. package/dist/components/media/zoomable-frame/zoomable-frame.class.js +2 -2
  205. package/dist/components/overlays/badge/badge.class.d.ts +2 -0
  206. package/dist/components/overlays/badge/badge.styles.js +1 -1
  207. package/dist/components/overlays/badge/tag.class.d.ts +2 -0
  208. package/dist/components/overlays/badge/tag.class.js +1 -1
  209. package/dist/components/overlays/chip/chip-group.class.d.ts +31 -4
  210. package/dist/components/overlays/chip/chip-group.class.js +3 -3
  211. package/dist/components/overlays/context-menu/context-menu.class.d.ts +6 -1
  212. package/dist/components/overlays/context-menu/context-menu.class.js +1 -1
  213. package/dist/components/overlays/dialog/dialog.class.d.ts +54 -6
  214. package/dist/components/overlays/dialog/dialog.class.js +3 -3
  215. package/dist/components/overlays/dialog/dialog.styles.js +1 -1
  216. package/dist/components/overlays/dialog/prompt.d.ts +60 -0
  217. package/dist/components/overlays/dialog/prompt.js +1 -0
  218. package/dist/components/overlays/drawer/drawer.class.d.ts +22 -1
  219. package/dist/components/overlays/drawer/drawer.class.js +1 -1
  220. package/dist/components/overlays/empty/empty.class.d.ts +1 -0
  221. package/dist/components/overlays/empty/empty.class.js +1 -1
  222. package/dist/components/overlays/overlay/dropdown.class.d.ts +5 -1
  223. package/dist/components/overlays/overlay/dropdown.class.js +1 -1
  224. package/dist/components/overlays/overlay/overlay.styles.js +1 -1
  225. package/dist/components/overlays/overlay/popover.class.d.ts +30 -4
  226. package/dist/components/overlays/overlay/popover.class.js +2 -2
  227. package/dist/components/overlays/overlay/tooltip.class.d.ts +7 -0
  228. package/dist/components/overlays/overlay/tooltip.class.js +4 -4
  229. package/dist/components/overlays/toast/toast-item.class.d.ts +3 -2
  230. package/dist/components/overlays/toast/toast-item.class.js +1 -1
  231. package/dist/components/overlays/toast/toast-item.styles.js +1 -1
  232. package/dist/components/overlays/toast/toast.class.d.ts +6 -0
  233. package/dist/components/overlays/toast/toast.class.js +1 -1
  234. package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +1 -1
  235. package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +1 -1
  236. package/dist/components/utility/copy-button/copy-button.class.d.ts +4 -1
  237. package/dist/components/utility/copy-button/copy-button.class.js +2 -2
  238. package/dist/components/utility/counter/counter-time.d.ts +15 -0
  239. package/dist/components/utility/counter/counter-time.js +1 -0
  240. package/dist/components/utility/counter/counter.class.d.ts +67 -0
  241. package/dist/components/utility/counter/counter.class.js +1 -0
  242. package/dist/components/utility/counter/counter.styles.js +1 -0
  243. package/dist/components/utility/divider/divider.class.d.ts +21 -3
  244. package/dist/components/utility/divider/divider.class.js +5 -1
  245. package/dist/components/utility/export-button/export-button.class.d.ts +6 -1
  246. package/dist/components/utility/export-button/export-button.styles.js +1 -1
  247. package/dist/components/utility/icon/icon-library-bootstrap.d.ts +50 -0
  248. package/dist/components/utility/icon/icon-library-bootstrap.js +1 -0
  249. package/dist/components/utility/icon/icon-library-font-awesome.d.ts +68 -0
  250. package/dist/components/utility/icon/icon-library-font-awesome.js +1 -0
  251. package/dist/components/utility/icon/icon-library.d.ts +14 -1
  252. package/dist/components/utility/icon/icon-library.js +1 -1
  253. package/dist/components/utility/icon/icon-sprite.js +1 -0
  254. package/dist/components/utility/icon/icon.class.d.ts +4 -2
  255. package/dist/components/utility/icon/icon.class.js +2 -2
  256. package/dist/components/utility/index.d.ts +1 -1
  257. package/dist/components/utility/index.js +1 -1
  258. package/dist/components/utility/known-date/known-date.class.d.ts +14 -0
  259. package/dist/components/utility/mention-popover/mention-popover.class.d.ts +1 -1
  260. package/dist/components/utility/number-ticker/number-ticker.class.d.ts +66 -0
  261. package/dist/components/utility/number-ticker/number-ticker.class.js +1 -0
  262. package/dist/components/utility/number-ticker/number-ticker.styles.js +1 -0
  263. package/dist/components/utility/tour/tour.class.d.ts +1 -1
  264. package/dist/components/viewers/include/include.class.d.ts +4 -1
  265. package/dist/components/viewers/include/include.class.js +1 -1
  266. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +10 -1
  267. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +2 -2
  268. package/dist/components/viewers/pdf-viewer/pdf-viewer.styles.js +1 -1
  269. package/dist/custom-elements-jsx.d.ts +1 -1
  270. package/dist/event-classes.d.ts +2342 -0
  271. package/dist/event-classes.js +1 -0
  272. package/dist/events.d.ts +48 -22
  273. package/dist/framework-types.d.ts +2 -2
  274. package/dist/internal/accessibility-visibility.js +1 -1
  275. package/dist/internal/all-defined-arguments.d.ts +19 -0
  276. package/dist/internal/all-defined-arguments.js +1 -0
  277. package/dist/internal/autoloader-manifest.js +1 -1
  278. package/dist/internal/autoloader-tags.d.ts +1 -1
  279. package/dist/internal/autoloader-tags.js +1 -1
  280. package/dist/internal/checked-control-label.js +1 -1
  281. package/dist/internal/component-loaders.generated.js +1 -1
  282. package/dist/internal/declarative-overlay-action.js +1 -0
  283. package/dist/internal/dedent.js +7 -0
  284. package/dist/internal/default-strings/forms.generated.js +1 -1
  285. package/dist/internal/default-strings/layout.generated.js +1 -1
  286. package/dist/internal/dev-mode-attribute-warning.development.js +1 -1
  287. package/dist/internal/document-token-css.generated.js +10 -0
  288. package/dist/internal/document-tokens.generated.js +2 -11
  289. package/dist/internal/document-tokens.js +2 -2
  290. package/dist/internal/dom-guards.js +1 -1
  291. package/dist/internal/external-label-association.js +1 -0
  292. package/dist/internal/focus-navigation.js +1 -1
  293. package/dist/internal/form-control/chrome.styles.js +1 -1
  294. package/dist/internal/form-control-labels.js +1 -1
  295. package/dist/internal/form-control.styles.js +1 -1
  296. package/dist/internal/interactive-control.styles.js +2 -2
  297. package/dist/internal/labeled-group.js +1 -1
  298. package/dist/internal/localization-runtime.d.ts +5 -0
  299. package/dist/internal/localization-runtime.js +1 -1
  300. package/dist/internal/localization-types.d.ts +1 -1
  301. package/dist/internal/localization.js +2 -2
  302. package/dist/internal/lyra-element.d.ts +11 -2
  303. package/dist/internal/lyra-element.js +2 -2
  304. package/dist/internal/lyra-event.d.ts +22 -0
  305. package/dist/internal/lyra-event.js +1 -0
  306. package/dist/internal/overlay-shared.d.ts +5 -2
  307. package/dist/internal/overlay-shared.js +1 -1
  308. package/dist/internal/package-metadata.js +1 -1
  309. package/dist/internal/root-registration-allowlist.js +1 -1
  310. package/dist/internal/scoped-definitions.generated.js +1 -1
  311. package/dist/internal/shiki/core.d.ts +4 -1
  312. package/dist/internal/shiki/tokenize.js +1 -1
  313. package/dist/internal/srcset.js +1 -0
  314. package/dist/internal/theme-observation.js +1 -1
  315. package/dist/lyra.d.ts +1 -1
  316. package/dist/lyra.js +1 -1
  317. package/dist/ssr/all.d.ts +1 -1
  318. package/dist/ssr/all.js +1 -1
  319. package/dist/ssr.d.ts +5 -5
  320. package/dist/ssr.js +1 -1
  321. package/dist/styles/native.css +1 -1
  322. package/dist/styles/palette.css +1 -0
  323. package/dist/styles/tokens-root.css +1 -1
  324. package/dist/styles/utilities.css +1 -1
  325. package/dist/svelte.d.ts +1 -1
  326. package/dist/testing/happy-dom-shims.d.ts +11 -2
  327. package/dist/testing/happy-dom-shims.js +1 -1
  328. package/dist/testing/index.d.ts +1 -1
  329. package/dist/testing/index.js +1 -1
  330. package/dist/testing/lyra-tag-event-map.d.ts +2 -2
  331. package/dist/testing/lyra-tag-event-map.js +1 -1
  332. package/dist/theme-core.css +1 -1
  333. package/dist/theme.css +1 -1
  334. package/dist/utilities/defined.d.ts +10 -1
  335. package/dist/utilities/defined.js +1 -1
  336. package/dist/utilities/form.d.ts +9 -0
  337. package/dist/utilities/form.js +1 -0
  338. package/dist/utilities/index.d.ts +1 -1
  339. package/dist/utilities/index.js +1 -1
  340. package/dist/vue.d.ts +1 -1
  341. package/llms/components/lr-app-rail.md +4 -2
  342. package/llms/components/lr-badge.md +4 -4
  343. package/llms/components/lr-bar-chart.md +1 -1
  344. package/llms/components/lr-box-plot.md +6 -1
  345. package/llms/components/lr-bubble-chart.md +1 -1
  346. package/llms/components/lr-budget-meter.md +2 -2
  347. package/llms/components/lr-button-group.md +7 -3
  348. package/llms/components/lr-button.md +11 -1
  349. package/llms/components/lr-card.md +11 -1
  350. package/llms/components/lr-chart.md +21 -7
  351. package/llms/components/lr-checkbox-group.md +11 -1
  352. package/llms/components/lr-chip.md +11 -1
  353. package/llms/components/lr-citation-badge.md +1 -1
  354. package/llms/components/lr-code-block-core.md +39 -9
  355. package/llms/components/lr-code-block.md +59 -6
  356. package/llms/components/lr-code-editor.md +11 -1
  357. package/llms/components/lr-color-picker.md +19 -6
  358. package/llms/components/lr-combobox.md +81 -9
  359. package/llms/components/lr-context-menu.md +6 -4
  360. package/llms/components/lr-copy-button.md +6 -4
  361. package/llms/components/lr-counter.md +60 -0
  362. package/llms/components/lr-country-picker.md +4 -0
  363. package/llms/components/lr-currency-picker.md +4 -0
  364. package/llms/components/lr-date-input.md +1 -1
  365. package/llms/components/lr-date-picker.md +25 -1
  366. package/llms/components/lr-details.md +6 -2
  367. package/llms/components/lr-dialog.md +101 -9
  368. package/llms/components/lr-divider.md +14 -5
  369. package/llms/components/lr-doughnut-chart.md +1 -1
  370. package/llms/components/lr-drawer.md +32 -7
  371. package/llms/components/lr-dropdown-item.md +1 -1
  372. package/llms/components/lr-dropdown.md +8 -4
  373. package/llms/components/lr-emoji-picker.md +10 -1
  374. package/llms/components/lr-empty.md +3 -2
  375. package/llms/components/lr-entity-chip.md +1 -1
  376. package/llms/components/lr-export-button.md +6 -3
  377. package/llms/components/lr-file-input.md +13 -1
  378. package/llms/components/lr-filter-bar.md +6 -2
  379. package/llms/components/lr-graph-query-builder.md +10 -1
  380. package/llms/components/lr-heatmap.md +20 -3
  381. package/llms/components/lr-histogram.md +7 -2
  382. package/llms/components/lr-icon-button.md +3 -1
  383. package/llms/components/lr-icon.md +104 -0
  384. package/llms/components/lr-include.md +3 -0
  385. package/llms/components/lr-input.md +9 -1
  386. package/llms/components/lr-known-date.md +10 -1
  387. package/llms/components/lr-lightbox-item.md +14 -0
  388. package/llms/components/lr-lightbox.md +119 -14
  389. package/llms/components/lr-line-chart.md +7 -2
  390. package/llms/components/lr-lite-chart.md +3 -2
  391. package/llms/components/lr-locale-picker.md +17 -1
  392. package/llms/components/lr-map.md +122 -11
  393. package/llms/components/lr-markdown-core.md +15 -4
  394. package/llms/components/lr-markdown.md +13 -4
  395. package/llms/components/lr-mention-popover.md +1 -1
  396. package/llms/components/lr-menu-item.md +1 -1
  397. package/llms/components/lr-menu-label.md +5 -2
  398. package/llms/components/lr-menu.md +22 -7
  399. package/llms/components/lr-model-select.md +13 -3
  400. package/llms/components/lr-native-time-input.md +11 -1
  401. package/llms/components/lr-number-input.md +11 -1
  402. package/llms/components/lr-number-ticker.md +60 -0
  403. package/llms/components/lr-otp-input.md +11 -1
  404. package/llms/components/lr-page.md +7 -1
  405. package/llms/components/lr-pagination.md +18 -0
  406. package/llms/components/lr-pdf-viewer.md +6 -1
  407. package/llms/components/lr-phone-input.md +11 -1
  408. package/llms/components/lr-pie-chart.md +1 -1
  409. package/llms/components/lr-polar-area-chart.md +1 -1
  410. package/llms/components/lr-popover.md +26 -6
  411. package/llms/components/lr-radar-chart.md +1 -1
  412. package/llms/components/lr-radio-group.md +11 -1
  413. package/llms/components/lr-rubric-form.md +7 -1
  414. package/llms/components/lr-scatter-chart.md +1 -1
  415. package/llms/components/lr-segmented.md +20 -2
  416. package/llms/components/lr-select.md +11 -3
  417. package/llms/components/lr-selection-toolbar.md +1 -1
  418. package/llms/components/lr-sequence-playback.md +8 -2
  419. package/llms/components/lr-signature-pad.md +8 -1
  420. package/llms/components/lr-slider.md +17 -4
  421. package/llms/components/lr-stat.md +20 -5
  422. package/llms/components/lr-step.md +67 -0
  423. package/llms/components/lr-stepper.md +64 -8
  424. package/llms/components/lr-suggestion-chips.md +3 -2
  425. package/llms/components/lr-switch.md +4 -3
  426. package/llms/components/lr-tab-group.md +10 -3
  427. package/llms/components/lr-tab-panel.md +2 -2
  428. package/llms/components/lr-table.md +87 -8
  429. package/llms/components/lr-tag.md +1 -1
  430. package/llms/components/lr-textarea.md +17 -1
  431. package/llms/components/lr-thread-list.md +4 -2
  432. package/llms/components/lr-time-input.md +9 -2
  433. package/llms/components/lr-time-zone-picker.md +4 -0
  434. package/llms/components/lr-timeline-item.md +1 -1
  435. package/llms/components/lr-timeline.md +47 -3
  436. package/llms/components/lr-toast-item.md +1 -1
  437. package/llms/components/lr-toast.md +8 -3
  438. package/llms/components/lr-token-input.md +68 -11
  439. package/llms/components/lr-tool-call-chip.md +1 -1
  440. package/llms/components/lr-tooltip.md +8 -3
  441. package/llms/components/lr-tree-item.md +1 -1
  442. package/llms/components/lr-tree.md +2 -1
  443. package/llms/components/lr-unit-picker.md +4 -0
  444. package/llms/components/lr-usage-badge.md +1 -1
  445. package/llms/components/lr-video.md +5 -4
  446. package/llms/components/lr-voice-picker.md +10 -2
  447. package/llms/components/lr-widget.md +2 -2
  448. package/llms/components/lr-zoomable-frame.md +8 -0
  449. package/llms/index.md +205 -201
  450. package/llms/migration.md +103 -16
  451. package/llms/peers.md +3 -3
  452. package/llms/shared/events-and-types.md +36 -0
  453. package/llms/shared/forms-and-accessibility.md +4 -1
  454. package/llms/shared/frameworks-and-ssr.md +10 -1
  455. package/llms/shared/imports-and-registration.md +68 -2
  456. package/llms/shared/localization-and-rtl.md +5 -0
  457. package/llms/shared/native-styles-and-utilities.md +142 -7
  458. package/llms/shared/styles-and-tokens.md +60 -6
  459. package/llms/shared/testing-and-utilities.md +30 -0
  460. package/llms/shared.md +354 -17
  461. package/llms/tokens.md +6 -1
  462. package/llms.txt +3 -3
  463. package/locales.json +1 -1
  464. package/package.json +48 -10
  465. package/registrations.json +1 -1
  466. package/skills/compose-lyra-interfaces/SKILL.md +1 -1
  467. package/skills/lyra-ui/SKILL.md +1 -1
  468. package/skills/lyra-ui/commands/migrate.md +1 -1
@@ -1 +1 @@
1
- import{isAriaTrue}from"./aria-values.js";import{deepActiveElementIn}from"./active-element.js";import{hasFocusExcludingAttributes,styleExcludesFocusSubtree}from"./focus-candidates.js";import{firstFormControlFocusTarget}from"./form-control-focus-target.js";import{registerFormControlLabelSupport}from"./lyra-element.js";import{isShadowRootNode}from"./dom-guards.js";const EXTERNAL_LABEL_ACTIVATION=Symbol("lr-external-label-activation"),EXTERNAL_LABEL_HOST_SEMANTICS=Symbol("lr-external-label-host-semantics"),attachedInternals=new WeakMap;function captureFormInternals(host,internals){attachedInternals.set(host,internals)}const COMPOSITE_ROLE_SELECTOR='[role="radiogroup"],[role="group"],[role="grid"],[role="tree"]',SEMANTIC_TARGET_SELECTOR=['input:not([type="hidden"]):not([tabindex="-1"])','textarea:not([tabindex="-1"])','select:not([tabindex="-1"])','button:not([tabindex="-1"])','[role]:not([tabindex="-1"])'].join(","),ACTIVATING_ROLES=new Set(["checkbox","switch","radio","menuitemcheckbox","menuitemradio"]),MAX_ASSOCIATION_CANDIDATES_PER_MUTATION=2048,MAX_ASSOCIATION_REFRESHES_PER_TASK=256,associationRootObservations=new WeakMap;function isLabelElement(node){return node!==null&&"nodeType"in node&&node.nodeType===1&&"localName"in node&&node.localName==="label"}function isHtmlElement(node){return node.nodeType===1&&"focus"in node&&"style"in node}function isCurrentlyAssociatedLabel(label,host){const root=host.getRootNode();if(label.getRootNode()!==root)return!1;if(!label.hasAttribute("for")){const control="control"in label?label.control:void 0;return control==null?label.contains(host):control===host}const id=label.htmlFor;return id===""?!1:"getElementById"in root&&typeof root.getElementById=="function"?root.getElementById(id)===host:!("querySelectorAll"in root)||typeof root.querySelectorAll!="function"?!1:[...root.querySelectorAll("[id]")].find(candidate=>candidate.id===id)===host}function addSubscriptionById(observation,subscription){if(!subscription.id)return;const subscribers=observation.subscriptionsById.get(subscription.id)??new Set;subscribers.add(subscription),observation.subscriptionsById.set(subscription.id,subscribers)}function removeSubscriptionById(observation,subscription){if(!subscription.id)return;const subscribers=observation.subscriptionsById.get(subscription.id);subscribers?.delete(subscription),subscribers?.size===0&&observation.subscriptionsById.delete(subscription.id)}function updateSubscriptionId(observation,subscription){const id=subscription.host.id;id!==subscription.id&&(removeSubscriptionById(observation,subscription),subscription.id=id,addSubscriptionById(observation,subscription))}function addImplicitSubscription(observation,label,subscription){const subscriptions=observation.implicitSubscriptionsByLabel.get(label)??new Set;subscriptions.add(subscription),observation.implicitSubscriptionsByLabel.set(label,subscriptions)}function removeImplicitSubscription(observation,label,subscription){const subscriptions=observation.implicitSubscriptionsByLabel.get(label);subscriptions?.delete(subscription),subscriptions?.size===0&&observation.implicitSubscriptionsByLabel.delete(label)}function updateImplicitSubscriptions(observation,subscription,labels){const next=labels.filter(label=>!label.hasAttribute("for"));for(const label of subscription.implicitLabels)next.includes(label)||removeImplicitSubscription(observation,label,subscription);for(const label of next)subscription.implicitLabels.includes(label)||addImplicitSubscription(observation,label,subscription);subscription.implicitLabels=next}function hasAssociationRefreshes(observation){return observation.pending.size>0||observation.fallbackIterator!==void 0}function cancelAssociationContinuation(observation){observation.cancelContinuation?.(),observation.cancelContinuation=void 0}function scheduleAssociationContinuation(observation){if(!hasAssociationRefreshes(observation)||observation.cancelContinuation!==void 0)return;const callback=()=>{observation.cancelContinuation=void 0,drainAssociationRefreshes(observation)};if(observation.ownerWindow){const handle=observation.ownerWindow.setTimeout(callback,0);observation.cancelContinuation=()=>observation.ownerWindow?.clearTimeout(handle)}else{const handle=globalThis.setTimeout(callback,0);observation.cancelContinuation=()=>globalThis.clearTimeout(handle)}}function refreshAssociationSubscription(observation,subscription){subscription.active&&(subscription.listener(),observation.fallbackIterator&&(subscription.fallbackGeneration=observation.fallbackGeneration))}function drainTargetedAssociationRefreshes(observation){let remaining=MAX_ASSOCIATION_REFRESHES_PER_TASK;for(const subscription of observation.pending)if(observation.pending.delete(subscription),refreshAssociationSubscription(observation,subscription),--remaining===0)break;scheduleAssociationContinuation(observation)}function drainAssociationRefreshes(observation){let remaining=MAX_ASSOCIATION_REFRESHES_PER_TASK;for(const subscription of observation.pending)if(observation.pending.delete(subscription),refreshAssociationSubscription(observation,subscription),--remaining===0)break;for(;remaining>0&&observation.fallbackIterator;){const next=observation.fallbackIterator.next();if(next.done){observation.fallbackIterator=void 0;break}next.value.active&&next.value.fallbackGeneration!==observation.fallbackGeneration&&(next.value.listener(),next.value.fallbackGeneration=observation.fallbackGeneration),remaining--}scheduleAssociationContinuation(observation)}function notifyAssociationSubscriptions(observation,subscriptions,fallbackAll=!1){if(fallbackAll){const continuationPending=observation.cancelContinuation!==void 0;observation.pending.clear(),observation.fallbackGeneration++,observation.fallbackIterator=observation.subscriptions.values();for(const subscription of subscriptions)subscription.active&&observation.pending.add(subscription);continuationPending?drainTargetedAssociationRefreshes(observation):drainAssociationRefreshes(observation);return}for(const subscription of subscriptions)subscription.active&&observation.pending.add(subscription);drainTargetedAssociationRefreshes(observation)}function isLabelableElement(element){return element.localName==="input"?element.type!=="hidden":element.localName==="button"||element.localName==="meter"||element.localName==="output"||element.localName==="progress"||element.localName==="select"||element.localName==="textarea"?!0:element.localName.includes("-")&&element.constructor.formAssociated===!0}function collectAssociationElement(element,result){const id=element.getAttribute("id");return id&&result.ids.add(id),isLabelElement(element)&&element.hasAttribute("for")&&element.htmlFor&&result.ids.add(element.htmlFor),isLabelableElement(element)}function nextAssociationNode(root,current){if(current.firstChild)return current.firstChild;let cursor=current;for(;cursor&&cursor!==root;){if(cursor.nextSibling)return cursor.nextSibling;cursor=cursor.parentNode}return null}function collectAssociationCandidates(node,result){let containsLabelable=!1,current=node;for(;current;){if(result.work>=MAX_ASSOCIATION_CANDIDATES_PER_MUTATION){result.truncated=!0;break}result.work++,current.nodeType===1&&(containsLabelable=collectAssociationElement(current,result)||containsLabelable),current=nextAssociationNode(node,current)}return containsLabelable}function containingLabel(node){if(isLabelElement(node))return node;const label=(node.nodeType===1?node:node.parentElement)?.closest("label");return isLabelElement(label??null)?label:null}function containingImplicitLabel(node){const label=containingLabel(node);return label&&!label.hasAttribute("for")?label:null}function collectFirstImplicitSubscription(observation,label,candidates,affected){let current=label.firstChild;for(;current;){if(candidates.work>=MAX_ASSOCIATION_CANDIDATES_PER_MUTATION){candidates.truncated=!0;return}if(candidates.work++,current.nodeType===1&&(isLabelableElement(current)||observation.subscriptionsByHost.has(current))){const subscription=observation.subscriptionsByHost.get(current);subscription&&affected.add(subscription);return}current=nextAssociationNode(label,current)}}function affectedAssociationSubscriptions(observation,mutations){const affected=new Set,candidates={ids:new Set,implicitLabels:new Set,truncated:!1,work:0},addIndexedCandidates=()=>{for(const id of candidates.ids)for(const subscription of observation.subscriptionsById.get(id)??[])affected.add(subscription);for(const label of candidates.implicitLabels)for(const subscription of observation.implicitSubscriptionsByLabel.get(label)??[])affected.add(subscription)};for(const mutation of mutations){if(candidates.work>=MAX_ASSOCIATION_CANDIDATES_PER_MUTATION){candidates.truncated=!0;break}candidates.work++;const label=containingLabel(mutation.target);if(label&&(label.hasAttribute("for")?label.htmlFor&&candidates.ids.add(label.htmlFor):candidates.implicitLabels.add(label)),mutation.type==="characterData")continue;if(mutation.type==="attributes"){const target=mutation.target;if(mutation.attributeName==="id"){const oldId=mutation.oldValue??"",id=target.getAttribute("id")??"";oldId&&candidates.ids.add(oldId),id&&candidates.ids.add(id);const hostSubscription=observation.subscriptionsByHost.get(target);hostSubscription&&(affected.add(hostSubscription),updateSubscriptionId(observation,hostSubscription))}else if(mutation.attributeName==="for"&&isLabelElement(target)){const oldFor=mutation.oldValue;oldFor&&candidates.ids.add(oldFor),target.htmlFor&&candidates.ids.add(target.htmlFor);for(const subscription of observation.implicitSubscriptionsByLabel.get(target)??[])affected.add(subscription);target.hasAttribute("for")||candidates.implicitLabels.add(target)}else if(mutation.attributeName==="type"&&target.localName==="input"){const label2=containingImplicitLabel(target);label2&&candidates.implicitLabels.add(label2)}continue}let changedLabelableShape=!1;for(const node of mutation.addedNodes)if(changedLabelableShape=collectAssociationCandidates(node,candidates)||changedLabelableShape,candidates.truncated)break;if(!candidates.truncated){for(const node of mutation.removedNodes)if(changedLabelableShape=collectAssociationCandidates(node,candidates)||changedLabelableShape,candidates.truncated)break}if(changedLabelableShape){const label2=containingImplicitLabel(mutation.target);label2&&candidates.implicitLabels.add(label2)}if(candidates.truncated)break}if(addIndexedCandidates(),candidates.truncated)return{subscriptions:affected,fallbackAll:!0};for(const label of candidates.implicitLabels)if(collectFirstImplicitSubscription(observation,label,candidates,affected),candidates.truncated)return{subscriptions:affected,fallbackAll:!0};return{subscriptions:affected,fallbackAll:!1}}function observeExternalLabelAssociations(host,listener){const root=host.getRootNode();let observation=associationRootObservations.get(root);if(!observation){const Observer=host.ownerDocument.defaultView?.MutationObserver,subscriptions=new Set,subscriptionsById=new Map,implicitSubscriptionsByLabel=new WeakMap,subscriptionsByHost=new WeakMap,pending=new Set,holder={},observer=Observer===void 0?void 0:new Observer(mutations=>{const current=holder.observation;if(!current)return;const affected=affectedAssociationSubscriptions(current,mutations);notifyAssociationSubscriptions(current,affected.subscriptions,affected.fallbackAll)});observer?.observe(root,{attributes:!0,attributeFilter:["for","id","type"],attributeOldValue:!0,childList:!0,characterData:!0,subtree:!0}),observation={subscriptions,subscriptionsById,implicitSubscriptionsByLabel,subscriptionsByHost,pending,observer,ownerWindow:host.ownerDocument.defaultView,fallbackGeneration:0},holder.observation=observation,associationRootObservations.set(root,observation)}const subscription={host,listener,id:host.id,implicitLabels:[],fallbackGeneration:-1,active:!0};return observation.subscriptions.add(subscription),observation.subscriptionsByHost.set(host,subscription),addSubscriptionById(observation,subscription),{update(labels){subscription.active&&(updateSubscriptionId(observation,subscription),updateImplicitSubscriptions(observation,subscription,labels))},disconnect(){if(!subscription.active)return;subscription.active=!1,observation.pending.delete(subscription),observation.subscriptions.delete(subscription),observation.subscriptionsByHost.delete(host);for(const label of subscription.implicitLabels)removeImplicitSubscription(observation,label,subscription);subscription.implicitLabels=[],removeSubscriptionById(observation,subscription);const current=associationRootObservations.get(root);!current||current.subscriptions.size>0||(current.observer?.disconnect(),cancelAssociationContinuation(current),current.pending.clear(),current.fallbackIterator=void 0,associationRootObservations.delete(root))}}}function isComposedDescendant(host,candidate){let current=candidate;for(;current;){if(current===host)return!0;if(current.parentNode){current=current.parentNode;continue}current=isShadowRootNode(current)?current.host:null}return!1}function resolveExternalLabels(host){const native=attachedInternals.get(host)?.labels;if(native)return Array.from(native).filter(isLabelElement).filter(label=>isCurrentlyAssociatedLabel(label,host));const labels=[],ancestor=host.closest("label");ancestor&&isCurrentlyAssociatedLabel(ancestor,host)&&labels.push(ancestor);const root=host.getRootNode();if(host.id&&"querySelectorAll"in root)for(const found of root.querySelectorAll("label[for]"))isLabelElement(found)&&isCurrentlyAssociatedLabel(found,host)&&!labels.includes(found)&&labels.push(found);return labels}const LABEL_TEXT_MAX_DEPTH=256,LABEL_TEXT_MAX_NODES=4096,NON_CONTENT_ELEMENTS=new Set(["script","style","template"]);function labelText(label,exclude){let remaining=LABEL_TEXT_MAX_NODES;const read=(node,depth)=>{if(node===exclude||depth>LABEL_TEXT_MAX_DEPTH||--remaining<0)return"";if(node.nodeType===Node.TEXT_NODE)return node.textContent??"";let children=node.childNodes;if(node.nodeType===Node.ELEMENT_NODE){const element=node;if(NON_CONTENT_ELEMENTS.has(element.localName))return"";if(element!==label){if(hasFocusExcludingAttributes(element,!0)||isAriaTrue(element.getAttribute("aria-hidden"))||styleExcludesFocusSubtree(element.ownerDocument.defaultView?.getComputedStyle(element)))return"";const ariaLabel=element.getAttribute("aria-label")?.trim();if(ariaLabel)return ariaLabel;const alternative=element.localName==="img"||element.localName==="area"?element.getAttribute("alt")?.trim():void 0;if(alternative)return alternative}if(element.shadowRoot)children=element.shadowRoot.childNodes;else if(element.localName==="slot"){const assigned=element.assignedNodes({flatten:!0});assigned.length>0&&(children=assigned)}}else if(node.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)return"";let text="";for(let index=0;index<children.length;index+=1)text+=read(children[index],depth+1);return text};return read(label,0)}function resolveExternalLabelText(labels,host){return labels.map(label=>labelText(label,host).trim()).filter(text=>text!=="").join(" ")}class ExternalLabelController{constructor(host){this.host=host,this.labels=[],this.activating=!1,this.onLabelClick=event=>{if(this.activating||this.barred)return;const source=event.currentTarget;if(!source||!isLabelElement(source)||!isCurrentlyAssociatedLabel(source,this.host)){this.refresh();return}event.composedPath().includes(this.host)||queueMicrotask(()=>{if(event.defaultPrevented||!this.host.isConnected||this.barred)return;if(!isCurrentlyAssociatedLabel(source,this.host)){this.refresh();return}const focusTarget=this.resolveFocusTarget(),activation=this.resolveActivation(focusTarget);this.activating=!0;try{this.host.focus(),isComposedDescendant(this.host,deepActiveElementIn(this.host.ownerDocument))||focusTarget?.focus(),activation==="activate"&&focusTarget?.click()}finally{this.activating=!1}})}}hostConnected(){this.associationRootSubscription?.disconnect(),this.associationRootSubscription=observeExternalLabelAssociations(this.host,()=>this.refresh()),this.refresh()}hostUpdated(){this.refresh()}hostDisconnected(){this.release(),this.associationRootSubscription?.disconnect(),this.associationRootSubscription=void 0;for(const label of this.labels)label.removeEventListener("click",this.onLabelClick);this.labels=[]}refresh(){const next=resolveExternalLabels(this.host);if(next.length!==this.labels.length||next.some((label,index)=>label!==this.labels[index])){for(const label of this.labels)label.removeEventListener("click",this.onLabelClick);this.labels=next;for(const label of this.labels)label.addEventListener("click",this.onLabelClick)}this.associationRootSubscription?.update(next),this.apply()}get barred(){return typeof this.host.matches=="function"&&this.host.matches(":disabled")?!0:!!(this.host.effectiveDisabled??this.host.disabled)}resolveNameTarget(focusTarget){if(this.hostSemanticOwner)return this.host;const root=this.ownRoot;if(!root)return focusTarget;if(focusTarget){for(const composite of root.querySelectorAll(COMPOSITE_ROLE_SELECTOR))if(isHtmlElement(composite)&&isComposedDescendant(composite,focusTarget))return composite}if(focusTarget&&focusTarget.getRootNode()===root)return focusTarget;const owned=focusTarget?this.outermostOwnedAncestor(focusTarget):null;if(owned)return owned;const semantic=root.querySelector(SEMANTIC_TARGET_SELECTOR);return semantic&&isHtmlElement(semantic)?semantic:focusTarget}outermostOwnedAncestor(node){const root=this.ownRoot;let owned=null,current=node;for(;current&&current!==this.host;)isHtmlElement(current)&&(current.getRootNode()===root||current.parentNode===this.host)&&(owned=current),current.parentNode?current=current.parentNode:current=isShadowRootNode(current)?current.host:null;return owned}get ownRoot(){const root=this.host.renderRoot;return isShadowRootNode(root)?root:this.host.shadowRoot}resolveFocusTarget(){return this.hostSemanticOwner?this.host:firstFormControlFocusTarget(this.host)}get hostSemanticOwner(){const candidate=this.host;return typeof candidate[EXTERNAL_LABEL_HOST_SEMANTICS]=="function"?candidate:null}hostHasAuthoredName(owner){return owner[EXTERNAL_LABEL_HOST_SEMANTICS]({type:"has-authored-name"})===!0}resolveActivation(focusTarget){const declared=this.host[EXTERNAL_LABEL_ACTIVATION];if(typeof declared=="function")return declared.call(this.host);if(!focusTarget||focusTarget.getRootNode()!==this.ownRoot)return"focus";const role=focusTarget.getAttribute("role");return role&&ACTIVATING_ROLES.has(role)?"activate":"focus"}apply(){const hostOwner=this.hostSemanticOwner;if(hostOwner&&this.hostHasAuthoredName(hostOwner)||!hostOwner&&this.host.hasAttribute("aria-label")){this.release();return}const name=resolveExternalLabelText(this.labels,this.host);if(name===""){this.release();return}const settled=this.applied;if(settled&&settled.name===name&&settled.target.isConnected&&settled.target.getAttribute("aria-label")===name)return;const target=this.resolveNameTarget(this.resolveFocusTarget());target&&(this.applied&&this.applied.target!==target&&this.release(),this.applied||(this.applied={target,name,had:target.hasAttribute("aria-label"),previous:target.getAttribute("aria-label")}),target===this.host&&hostOwner?hostOwner[EXTERNAL_LABEL_HOST_SEMANTICS]({type:"apply",name}):target.getAttribute("aria-label")!==name&&target.setAttribute("aria-label",name),this.applied.name=name)}release(){const applied=this.applied;if(this.applied=void 0,!applied)return;const{target,name,had,previous}=applied,hostOwner=target===this.host?this.hostSemanticOwner:null;if(hostOwner){hostOwner[EXTERNAL_LABEL_HOST_SEMANTICS]({type:"release",appliedName:name,hadPrevious:had,previous});return}target.getAttribute("aria-label")===name&&(had?target.setAttribute("aria-label",previous??""):target.removeAttribute("aria-label"))}}function installFormControlInternalsCapture(){registerFormControlLabelSupport(captureFormInternals)}let supportInstalled=!1;function installFormControlLabelSupport(){supportInstalled||(supportInstalled=!0,registerFormControlLabelSupport(captureFormInternals,host=>new ExternalLabelController(host)))}export{EXTERNAL_LABEL_HOST_SEMANTICS,ExternalLabelController,captureFormInternals,installFormControlInternalsCapture,installFormControlLabelSupport,isCurrentlyAssociatedLabel,observeExternalLabelAssociations,resolveExternalLabelText,resolveExternalLabels};
1
+ import{isAriaTrue}from"./aria-values.js";import{deepActiveElementIn}from"./active-element.js";import{hasFocusExcludingAttributes,styleExcludesFocusSubtree}from"./focus-candidates.js";import{firstFormControlFocusTarget}from"./form-control-focus-target.js";import{registerFormControlLabelSupport}from"./lyra-element.js";import{isShadowRootNode}from"./dom-guards.js";const EXTERNAL_LABEL_ACTIVATION=Symbol("lr-external-label-activation"),EXTERNAL_LABEL_HOST_SEMANTICS=Symbol("lr-external-label-host-semantics"),attachedInternals=new WeakMap;function captureFormInternals(host,internals){attachedInternals.set(host,internals)}const COMPOSITE_ROLE_SELECTOR='[role="radiogroup"],[role="group"],[role="grid"],[role="tree"]',SEMANTIC_TARGET_SELECTOR=['input:not([type="hidden"]):not([tabindex="-1"])','textarea:not([tabindex="-1"])','select:not([tabindex="-1"])','button:not([tabindex="-1"])','[role]:not([tabindex="-1"])'].join(","),ACTIVATING_ROLES=new Set(["checkbox","switch","radio","menuitemcheckbox","menuitemradio"]);function isLabelElement(node){return node!==null&&"nodeType"in node&&node.nodeType===1&&"localName"in node&&node.localName==="label"}function isHtmlElement(node){return node.nodeType===1&&"focus"in node&&"style"in node}function isCurrentlyAssociatedLabel(label,host){const root=host.getRootNode();if(label.getRootNode()!==root)return!1;if(!label.hasAttribute("for")){const control="control"in label?label.control:void 0;return control==null?label.contains(host):control===host}const id=label.htmlFor;return id===""?!1:"getElementById"in root&&typeof root.getElementById=="function"?root.getElementById(id)===host:!("querySelectorAll"in root)||typeof root.querySelectorAll!="function"?!1:[...root.querySelectorAll("[id]")].find(candidate=>candidate.id===id)===host}function containingLabel(node){if(isLabelElement(node))return node;const label=(node.nodeType===1?node:node.parentElement)?.closest("label");return isLabelElement(label??null)?label:null}let indexedLabelAssociation,indexedLabelAssociationLoad;const importIndexedLabelAssociationChunk=()=>import("./external-label-association.js");let importIndexedLabelAssociation=importIndexedLabelAssociationChunk;const MAX_LEAN_ASSOCIATION_RECORDS=2048,ASSOCIATION_OBSERVER_OPTIONS={attributes:!0,attributeFilter:["for","id","type"],attributeOldValue:!0,childList:!0,characterData:!0,subtree:!0},leanAssociationRoots=new Map;function mayAssociateLabel(entry,records){let ids;const isControlId=id=>!!id&&(ids??=new Set([...entry.subscriptions].map(({host})=>host.id))).has(id);for(const record of records){if(containingLabel(record.target))return!0;if(record.type==="attributes"){if(record.attributeName==="id"&&(isControlId(record.oldValue)||isControlId(record.target.getAttribute("id"))))return!0;continue}for(const nodes of[record.addedNodes,record.removedNodes])for(const node of nodes){if(node.nodeType!==1)continue;const element=node;if(isLabelElement(element)||element.querySelector("label")||isControlId(element.getAttribute("id")))return!0;for(const identified of element.querySelectorAll("[id]"))if(isControlId(identified.getAttribute("id")))return!0}}return!1}function queueLeanAssociationRecords(entry,records){if(!entry.pending){if(!mayAssociateLabel(entry,records))return;entry.pending=[]}entry.pending.length+records.length>MAX_LEAN_ASSOCIATION_RECORDS?entry.overflow=!0:entry.pending.push(...records),loadExternalLabelAssociation()}function migrateLeanAssociationRoot(entry,indexed){leanAssociationRoots.delete(entry.root);const records=[...entry.pending??[],...entry.observer?.takeRecords()??[]];entry.observer?.disconnect();for(const subscription of entry.subscriptions)subscription.indexed=indexed.observeIndexedLabelAssociations(subscription.host,subscription.listener),subscription.indexed.update(subscription.labels);indexed.replayIndexedLabelAssociations(entry.root,records,entry.overflow)}function loadExternalLabelAssociation(){return indexedLabelAssociationLoad??=importIndexedLabelAssociation().then(indexed=>{indexedLabelAssociation=indexed;for(const entry of[...leanAssociationRoots.values()])migrateLeanAssociationRoot(entry,indexed)},()=>{indexedLabelAssociationLoad=void 0})}function observeExternalLabelAssociations(host,listener){if(indexedLabelAssociation)return indexedLabelAssociation.observeIndexedLabelAssociations(host,listener);const root=host.getRootNode();let entry=leanAssociationRoots.get(root);if(!entry){const created={root,subscriptions:new Set,overflow:!1},Observer=host.ownerDocument.defaultView?.MutationObserver;Observer&&(created.observer=new Observer(records=>{leanAssociationRoots.get(root)===created&&queueLeanAssociationRecords(created,records)}),created.observer.observe(root,ASSOCIATION_OBSERVER_OPTIONS)),leanAssociationRoots.set(root,entry=created)}const lean=entry,subscription={host,listener,labels:[]};lean.subscriptions.add(subscription);let active=!0;return{update(labels){if(active){if(subscription.indexed){subscription.indexed.update(labels);return}subscription.labels=labels,labels.length!==0&&(lean.pending??=[],loadExternalLabelAssociation())}},disconnect(){if(active){if(active=!1,subscription.indexed){subscription.indexed.disconnect();return}lean.subscriptions.delete(subscription),!(lean.subscriptions.size>0||leanAssociationRoots.get(root)!==lean)&&(lean.observer?.disconnect(),leanAssociationRoots.delete(root))}}}}function isComposedDescendant(host,candidate){let current=candidate;for(;current;){if(current===host)return!0;if(current.parentNode){current=current.parentNode;continue}current=isShadowRootNode(current)?current.host:null}return!1}function resolveExternalLabels(host){const native=attachedInternals.get(host)?.labels;if(native)return Array.from(native).filter(isLabelElement).filter(label=>isCurrentlyAssociatedLabel(label,host));const labels=[],ancestor=host.closest("label");ancestor&&isCurrentlyAssociatedLabel(ancestor,host)&&labels.push(ancestor);const root=host.getRootNode();if(host.id&&"querySelectorAll"in root)for(const found of root.querySelectorAll("label[for]"))isLabelElement(found)&&isCurrentlyAssociatedLabel(found,host)&&!labels.includes(found)&&labels.push(found);return labels}const LABEL_TEXT_MAX_DEPTH=256,LABEL_TEXT_MAX_NODES=4096,NON_CONTENT_ELEMENTS=new Set(["script","style","template"]);function labelText(label,exclude){let remaining=LABEL_TEXT_MAX_NODES;const read=(node,depth)=>{if(node===exclude||depth>LABEL_TEXT_MAX_DEPTH||--remaining<0)return"";if(node.nodeType===Node.TEXT_NODE)return node.textContent??"";let children=node.childNodes;if(node.nodeType===Node.ELEMENT_NODE){const element=node;if(NON_CONTENT_ELEMENTS.has(element.localName))return"";if(element!==label){if(hasFocusExcludingAttributes(element,!0)||isAriaTrue(element.getAttribute("aria-hidden"))||styleExcludesFocusSubtree(element.ownerDocument.defaultView?.getComputedStyle(element)))return"";const ariaLabel=element.getAttribute("aria-label")?.trim();if(ariaLabel)return ariaLabel;const alternative=element.localName==="img"||element.localName==="area"?element.getAttribute("alt")?.trim():void 0;if(alternative)return alternative}if(element.shadowRoot)children=element.shadowRoot.childNodes;else if(element.localName==="slot"){const assigned=element.assignedNodes({flatten:!0});assigned.length>0&&(children=assigned)}}else if(node.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)return"";let text="";for(let index=0;index<children.length;index+=1)text+=read(children[index],depth+1);return text};return read(label,0)}function resolveExternalLabelText(labels,host){return labels.map(label=>labelText(label,host).trim()).filter(text=>text!=="").join(" ")}class ExternalLabelController{constructor(host){this.host=host,this.labels=[],this.activating=!1,this.onLabelClick=event=>{if(this.activating||this.barred)return;const source=event.currentTarget;if(!source||!isLabelElement(source)||!isCurrentlyAssociatedLabel(source,this.host)){this.refresh();return}event.composedPath().includes(this.host)||queueMicrotask(()=>{if(event.defaultPrevented||!this.host.isConnected||this.barred)return;if(!isCurrentlyAssociatedLabel(source,this.host)){this.refresh();return}const focusTarget=this.resolveFocusTarget(),activation=this.resolveActivation(focusTarget);this.activating=!0;try{this.host.focus(),isComposedDescendant(this.host,deepActiveElementIn(this.host.ownerDocument))||focusTarget?.focus(),activation==="activate"&&focusTarget?.click()}finally{this.activating=!1}})}}hostConnected(){this.associationRootSubscription?.disconnect(),this.associationRootSubscription=observeExternalLabelAssociations(this.host,()=>this.refresh()),this.refresh()}hostUpdated(){this.refresh()}hostDisconnected(){this.release(),this.associationRootSubscription?.disconnect(),this.associationRootSubscription=void 0;for(const label of this.labels)label.removeEventListener("click",this.onLabelClick);this.labels=[]}refresh(){const next=resolveExternalLabels(this.host);if(next.length!==this.labels.length||next.some((label,index)=>label!==this.labels[index])){for(const label of this.labels)label.removeEventListener("click",this.onLabelClick);this.labels=next;for(const label of this.labels)label.addEventListener("click",this.onLabelClick)}this.associationRootSubscription?.update(next),this.apply()}get barred(){return typeof this.host.matches=="function"&&this.host.matches(":disabled")?!0:!!(this.host.effectiveDisabled??this.host.disabled)}resolveNameTarget(focusTarget){if(this.hostSemanticOwner)return this.host;const root=this.ownRoot;if(!root)return focusTarget;if(focusTarget){for(const composite of root.querySelectorAll(COMPOSITE_ROLE_SELECTOR))if(isHtmlElement(composite)&&isComposedDescendant(composite,focusTarget))return composite}if(focusTarget&&focusTarget.getRootNode()===root)return focusTarget;const owned=focusTarget?this.outermostOwnedAncestor(focusTarget):null;if(owned)return owned;const semantic=root.querySelector(SEMANTIC_TARGET_SELECTOR);return semantic&&isHtmlElement(semantic)?semantic:focusTarget}outermostOwnedAncestor(node){const root=this.ownRoot;let owned=null,current=node;for(;current&&current!==this.host;)isHtmlElement(current)&&(current.getRootNode()===root||current.parentNode===this.host)&&(owned=current),current.parentNode?current=current.parentNode:current=isShadowRootNode(current)?current.host:null;return owned}get ownRoot(){const root=this.host.renderRoot;return isShadowRootNode(root)?root:this.host.shadowRoot}resolveFocusTarget(){return this.hostSemanticOwner?this.host:firstFormControlFocusTarget(this.host)}get hostSemanticOwner(){const candidate=this.host;return typeof candidate[EXTERNAL_LABEL_HOST_SEMANTICS]=="function"?candidate:null}hostHasAuthoredName(owner){return owner[EXTERNAL_LABEL_HOST_SEMANTICS]({type:"has-authored-name"})===!0}resolveActivation(focusTarget){const declared=this.host[EXTERNAL_LABEL_ACTIVATION];if(typeof declared=="function")return declared.call(this.host);if(!focusTarget||focusTarget.getRootNode()!==this.ownRoot)return"focus";const role=focusTarget.getAttribute("role");return role&&ACTIVATING_ROLES.has(role)?"activate":"focus"}apply(){const hostOwner=this.hostSemanticOwner;if(hostOwner&&this.hostHasAuthoredName(hostOwner)||!hostOwner&&this.host.hasAttribute("aria-label")){this.release();return}const name=resolveExternalLabelText(this.labels,this.host);if(name===""){this.release();return}const settled=this.applied;if(settled&&settled.name===name&&settled.target.isConnected&&settled.target.getAttribute("aria-label")===name)return;const target=this.resolveNameTarget(this.resolveFocusTarget());target&&(this.applied&&this.applied.target!==target&&this.release(),this.applied||(this.applied={target,name,had:target.hasAttribute("aria-label"),previous:target.getAttribute("aria-label")}),target===this.host&&hostOwner?hostOwner[EXTERNAL_LABEL_HOST_SEMANTICS]({type:"apply",name}):target.getAttribute("aria-label")!==name&&target.setAttribute("aria-label",name),this.applied.name=name)}release(){const applied=this.applied;if(this.applied=void 0,!applied)return;const{target,name,had,previous}=applied,hostOwner=target===this.host?this.hostSemanticOwner:null;if(hostOwner){hostOwner[EXTERNAL_LABEL_HOST_SEMANTICS]({type:"release",appliedName:name,hadPrevious:had,previous});return}target.getAttribute("aria-label")===name&&(had?target.setAttribute("aria-label",previous??""):target.removeAttribute("aria-label"))}}function installFormControlInternalsCapture(){registerFormControlLabelSupport(captureFormInternals)}let supportInstalled=!1;function installFormControlLabelSupport(){supportInstalled||(supportInstalled=!0,registerFormControlLabelSupport(captureFormInternals,host=>new ExternalLabelController(host)))}export{EXTERNAL_LABEL_HOST_SEMANTICS,ExternalLabelController,captureFormInternals,installFormControlInternalsCapture,installFormControlLabelSupport,isCurrentlyAssociatedLabel,loadExternalLabelAssociation,observeExternalLabelAssociations,resolveExternalLabelText,resolveExternalLabels};
@@ -1 +1 @@
1
- import{css}from"lit";import{visuallyHidden}from"./a11y.js";const formControlRequiredMarker=/* @__PURE__ */(()=>css`:host([required]) [part~=form-control-label]:after,[part=field][data-required] [part=label]:after{content:var(--lr-form-control-required-content," *");color:var(--lr-form-control-required-color,var(--lr-color-danger));margin-inline-start:var(--lr-form-control-required-offset,0)}`)(),formControlFocusHalo=/* @__PURE__ */(()=>css` box-shadow:var(--_lr-form-control-focus-shadow,none);`)();function formControlInvalidBorder(surface,componentToken){const shared=css`var(--lr-form-control-invalid-border-color,var(--lr-color-danger))`,color=componentToken?css`var(${componentToken},${shared})`:shared;return css` :host(:state(user-invalid):where(:not([open]))) ${surface}:where(:not(:focus-within)){border-color: ${color}}`}const formControlSupportingColor=/* @__PURE__ */(()=>css`[part~=hint]{color:var(--lr-color-text-quiet)}[part~=error]{color:var(--lr-color-danger)}`)(),formControlSupportingTone=/* @__PURE__ */(()=>css` ${formControlSupportingColor} [part~=hint],[part~=error]{font-size:var(--lr-font-size-sm)}`)(),formControlSupportingText=/* @__PURE__ */(()=>css` [part~=hint],[part~=error]{margin-block-start:var(--lr-space-xs);min-inline-size:0;overflow-wrap:anywhere}${formControlSupportingTone} [part~=hint][hidden],[part~=error][hidden]{display:none}`)(),formControlLabelDisplay=/* @__PURE__ */(()=>css` :host([label-display=hidden]) [part~=form-control-label]{${visuallyHidden}}`)();function formControlLabelTypography({size=css`var(--lr-font-size-md-sm)`,weight=css`var(--lr-font-weight-semibold)`,color=css`inherit`}={}){return css` font-size:var(--lr-form-control-label-font-size,${size});font-weight:var(--lr-form-control-label-font-weight,${weight});color:var(--lr-form-control-label-color,${color});`}const formControlTextWrap=/* @__PURE__ */(()=>css` min-inline-size:0;max-inline-size:100%;overflow-wrap:anywhere;`)();import{formControlTouchFontFloor}from"./form-control/touch-font-floor.styles.js";export{formControlFocusHalo,formControlInvalidBorder,formControlLabelDisplay,formControlLabelTypography,formControlRequiredMarker,formControlSupportingColor,formControlSupportingText,formControlSupportingTone,formControlTextWrap,formControlTouchFontFloor};
1
+ import{css}from"lit";import{visuallyHidden}from"./a11y.js";const formControlRequiredMarker=/* @__PURE__ */(()=>css`:host([required]) [part~=form-control-label]:after,[part=field][data-required] [part=label]:after{content:var(--lr-form-control-required-content," *");color:var(--lr-form-control-required-color,var(--lr-color-danger));margin-inline-start:var(--lr-form-control-required-offset,0)}`)(),formControlFocusHalo=/* @__PURE__ */(()=>css` box-shadow:var(--_lr-form-control-focus-shadow,none);`)(),formControlFieldTransition=/* @__PURE__ */(()=>css` transition:var(--_lr-form-control-transition,none);`)();function formControlInvalidBorder(surface,componentToken){const shared=css`var(--lr-form-control-invalid-border-color,var(--lr-color-danger))`,color=componentToken?css`var(${componentToken},${shared})`:shared;return css` :host(:state(user-invalid):where(:not([open]))) ${surface}:where(:not(:focus-within)){border-color: ${color}}`}const formControlSupportingColor=/* @__PURE__ */(()=>css`[part~=hint]{color:var(--lr-color-text-quiet)}[part~=error]{color:var(--lr-color-danger)}`)(),formControlSupportingTone=/* @__PURE__ */(()=>css` ${formControlSupportingColor} [part~=hint],[part~=error]{font-size:var(--lr-font-size-sm)}`)(),formControlSupportingText=/* @__PURE__ */(()=>css` [part~=hint],[part~=error]{margin-block-start:var(--lr-space-xs);min-inline-size:0;overflow-wrap:anywhere}${formControlSupportingTone} [part~=hint][hidden],[part~=error][hidden]{display:none}`)(),formControlLabelDisplay=/* @__PURE__ */(()=>css` :host([label-display=hidden]) [part~=form-control-label]{${visuallyHidden}}`)();function formControlLabelTypography({size=css`var(--lr-font-size-md-sm)`,weight=css`var(--lr-font-weight-semibold)`,color=css`inherit`}={}){return css` font-size:var(--lr-form-control-label-font-size,${size});font-weight:var(--lr-form-control-label-font-weight,${weight});color:var(--lr-form-control-label-color,${color});line-height:var(--lr-form-control-label-line-height,inherit);text-align:var(--lr-form-control-label-text-align,inherit);text-transform:var(--lr-form-control-label-text-transform,inherit);`}const formControlTextWrap=/* @__PURE__ */(()=>css` min-inline-size:0;max-inline-size:100%;overflow-wrap:anywhere;`)();import{formControlTouchFontFloor}from"./form-control/touch-font-floor.styles.js";export{formControlFieldTransition,formControlFocusHalo,formControlInvalidBorder,formControlLabelDisplay,formControlLabelTypography,formControlRequiredMarker,formControlSupportingColor,formControlSupportingText,formControlSupportingTone,formControlTextWrap,formControlTouchFontFloor};
@@ -1,4 +1,4 @@
1
- import{css,unsafeCSS}from"lit";const iconHitTarget=/* @__PURE__ */(()=>css` min-inline-size:var(--lr-icon-button-size);min-block-size:var(--lr-icon-button-size);`)(),focusRing=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);outline-offset:var(--lr-focus-ring-offset);`)(),focusRingShorthand=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring);outline-offset:var(--lr-focus-ring-offset);`)(),focusRingRoom=/* @__PURE__ */(()=>css`max(0px,calc(var(--lr-focus-ring-width) + var(--lr-focus-ring-offset)))`)(),focusRingInwardOffset=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);outline-offset:calc(-1 * var(--lr-focus-ring-offset));`)(),focusRingInset=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);outline-offset:calc(-1 * var(--lr-focus-ring-width));`)(),focusRingInsetOffset=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);outline-offset:calc(-1 * max(var(--lr-focus-ring-width),calc(var(--lr-focus-ring-width) + var(--lr-focus-ring-offset))));`)(),focusRingShorthandInward=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring);outline-offset:calc(-1 * var(--lr-focus-ring-offset));`)(),focusRingShorthandInset=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring);outline-offset:calc(-1 * var(--lr-focus-ring-width));`)(),focusRingShorthandInsetOffset=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring);outline-offset:calc(-1 * max(var(--lr-focus-ring-width),calc(var(--lr-focus-ring-width) + var(--lr-focus-ring-offset))));`)(),focusRingInwardMax=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);outline-offset:calc(-1 * max(var(--lr-focus-ring-offset),var(--lr-focus-ring-width)));`)(),focusRingOffset=/* @__PURE__ */(()=>css` outline-offset:var(--lr-focus-ring-offset);`)(),focusRingOffsetInset=/* @__PURE__ */(()=>css` outline-offset:calc(-1 * var(--lr-focus-ring-width));`)(),focusRingOffsetInward=/* @__PURE__ */(()=>css` outline-offset:calc(-1 * var(--lr-focus-ring-offset));`)(),focusRingOffsetInsetOffset=/* @__PURE__ */(()=>css` outline-offset:calc(-1 * max(var(--lr-focus-ring-width),calc(var(--lr-focus-ring-width) + var(--lr-focus-ring-offset))));`)();function focusRingOutline(color,widthHook){const width=widthHook?`var(${widthHook}, var(--lr-focus-ring-width))`:"var(--lr-focus-ring-width)";return unsafeCSS(`outline: ${width} solid ${color};`)}function focusRingOffsetFrom(hook,placement="outer"){return unsafeCSS(`outline-offset: var(${hook}, ${placement==="inward"?"calc(-1 * var(--lr-focus-ring-offset))":"var(--lr-focus-ring-offset)"});`)}const focusRingShorthandOutline=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring);`)(),focusRingShorthandInsetPastFrame=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring);outline-offset:calc(-1 * max(var(--lr-focus-ring-width) + 2 * var(--lr-border-width-thin),var(--lr-focus-ring-width) + var(--lr-focus-ring-offset)));`)();function hoverFill(base){return unsafeCSS(`color-mix(in oklab, ${base}, var(--lr-color-mix-partner) var(--lr-color-mix-hover))`)}function activeFill(base){return unsafeCSS(`color-mix(in oklab, ${base}, var(--lr-color-mix-partner) var(--lr-color-mix-active))`)}function hoverTint(accent){return unsafeCSS(`color-mix(in srgb, ${accent} var(--lr-color-mix-hover), transparent)`)}function activeTint(accent){return unsafeCSS(`color-mix(in srgb, ${accent} var(--lr-color-mix-active), transparent)`)}function hoverFillTowardText(base){return unsafeCSS(`color-mix(in oklab, ${base}, var(--lr-color-text) var(--lr-color-mix-hover))`)}function activeFillTowardText(base){return unsafeCSS(`color-mix(in oklab, ${base}, var(--lr-color-text) var(--lr-color-mix-active))`)}function hoverFillDoubled(base){return unsafeCSS(`color-mix(in oklab, ${base}, var(--lr-color-text) min(100%, calc(2 * var(--lr-color-mix-hover))))`)}function activeFillDoubled(base){return unsafeCSS(`color-mix(in oklab, ${base}, var(--lr-color-text) min(100%, calc(2 * var(--lr-color-mix-active))))`)}function activeWash(accent,underlay){return unsafeCSS(`color-mix(in srgb, ${accent} var(--lr-color-mix-active), ${underlay})`)}const interactiveTransition=/* @__PURE__ */(()=>css` transition:var(--lr-transition-interactive);`)(),disabledControl=/* @__PURE__ */(()=>css` opacity:var(--lr-opacity-disabled);cursor:not-allowed;`)(),formControlIconHitTarget=/* @__PURE__ */(()=>css` min-inline-size:max(var(--lr-size-24px),min(var(--lr-icon-button-size),var(--lr-form-control-height)));min-block-size:max(var(--lr-size-24px),min(var(--lr-icon-button-size),var(--lr-form-control-height)));`)();function disclosureChevron(selectors){const{glyph,expanded,collapsedRtl}=selectors;return unsafeCSS(`${glyph} { display: inline-flex; flex: 0 0 auto; transition: transform var(--lr-transition-fast); }
1
+ import{css,unsafeCSS}from"lit";const iconHitTarget=/* @__PURE__ */(()=>css` min-inline-size:var(--lr-icon-button-size);min-block-size:var(--lr-icon-button-size);`)(),focusRing=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);outline-offset:var(--lr-focus-ring-offset);`)(),focusRingShorthand=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring);outline-offset:var(--lr-focus-ring-offset);`)(),focusRingRoom=/* @__PURE__ */(()=>css`max(0px,calc(var(--lr-focus-ring-width) + var(--lr-focus-ring-offset)))`)(),focusRingInwardOffset=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);outline-offset:calc(-1 * var(--lr-focus-ring-offset));`)(),focusRingInset=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);outline-offset:calc(-1 * var(--lr-focus-ring-width));`)(),focusRingInsetOffset=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);outline-offset:calc(-1 * max(var(--lr-focus-ring-width),calc(var(--lr-focus-ring-width) + var(--lr-focus-ring-offset))));`)(),focusRingShorthandInward=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring);outline-offset:calc(-1 * var(--lr-focus-ring-offset));`)(),focusRingShorthandInset=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring);outline-offset:calc(-1 * var(--lr-focus-ring-width));`)(),focusRingShorthandInsetOffset=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring);outline-offset:calc(-1 * max(var(--lr-focus-ring-width),calc(var(--lr-focus-ring-width) + var(--lr-focus-ring-offset))));`)(),focusRingInwardMax=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring-width) solid var(--lr-focus-ring-color);outline-offset:calc(-1 * max(var(--lr-focus-ring-offset),var(--lr-focus-ring-width)));`)(),focusRingOffset=/* @__PURE__ */(()=>css` outline-offset:var(--lr-focus-ring-offset);`)(),focusRingOffsetInset=/* @__PURE__ */(()=>css` outline-offset:calc(-1 * var(--lr-focus-ring-width));`)(),focusRingOffsetInward=/* @__PURE__ */(()=>css` outline-offset:calc(-1 * var(--lr-focus-ring-offset));`)(),focusRingOffsetInsetOffset=/* @__PURE__ */(()=>css` outline-offset:calc(-1 * max(var(--lr-focus-ring-width),calc(var(--lr-focus-ring-width) + var(--lr-focus-ring-offset))));`)();function focusRingOutline(color,widthHook){const width=widthHook?`var(${widthHook}, var(--lr-focus-ring-width))`:"var(--lr-focus-ring-width)";return unsafeCSS(`outline: ${width} solid ${color};`)}function focusRingOutlineFrom(hook){return unsafeCSS(`outline: var(${hook}, var(--lr-focus-ring-width) solid var(--lr-focus-ring-color));`)}function focusRingOffsetFrom(hook,placement="outer"){return unsafeCSS(`outline-offset: var(${hook}, ${placement==="inward"?"calc(-1 * var(--lr-focus-ring-offset))":"var(--lr-focus-ring-offset)"});`)}const focusRingShorthandOutline=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring);`)(),focusRingShorthandInsetPastFrame=/* @__PURE__ */(()=>css` outline:var(--lr-focus-ring);outline-offset:calc(-1 * max(var(--lr-focus-ring-width) + 2 * var(--lr-border-width-thin),var(--lr-focus-ring-width) + var(--lr-focus-ring-offset)));`)();function hoverFill(base){return unsafeCSS(`color-mix(in oklab, ${base}, var(--lr-color-mix-partner) var(--lr-color-mix-hover))`)}function activeFill(base){return unsafeCSS(`color-mix(in oklab, ${base}, var(--lr-color-mix-partner) var(--lr-color-mix-active))`)}function hoverTint(accent){return unsafeCSS(`color-mix(in srgb, ${accent} var(--lr-color-mix-hover), transparent)`)}function activeTint(accent){return unsafeCSS(`color-mix(in srgb, ${accent} var(--lr-color-mix-active), transparent)`)}function hoverFillTowardText(base){return unsafeCSS(`color-mix(in oklab, ${base}, var(--lr-color-text) var(--lr-color-mix-hover))`)}function activeFillTowardText(base){return unsafeCSS(`color-mix(in oklab, ${base}, var(--lr-color-text) var(--lr-color-mix-active))`)}function hoverFillDoubled(base){return unsafeCSS(`color-mix(in oklab, ${base}, var(--lr-color-text) min(100%, calc(2 * var(--lr-color-mix-hover))))`)}function activeFillDoubled(base){return unsafeCSS(`color-mix(in oklab, ${base}, var(--lr-color-text) min(100%, calc(2 * var(--lr-color-mix-active))))`)}function activeWash(accent,underlay){return unsafeCSS(`color-mix(in srgb, ${accent} var(--lr-color-mix-active), ${underlay})`)}const interactiveTransition=/* @__PURE__ */(()=>css` transition:var(--lr-transition-interactive);`)(),disabledControl=/* @__PURE__ */(()=>css` opacity:var(--lr-opacity-disabled);cursor:not-allowed;`)(),formControlIconHitTarget=/* @__PURE__ */(()=>css` min-inline-size:max(var(--lr-size-24px),min(var(--lr-icon-button-size),var(--lr-form-control-height)));min-block-size:max(var(--lr-size-24px),min(var(--lr-icon-button-size),var(--lr-form-control-height)));`)();function disclosureChevron(selectors){const{glyph,expanded,collapsedRtl}=selectors;return unsafeCSS(`${glyph} { display: inline-flex; flex: 0 0 auto; transition: transform var(--lr-transition-fast); }
2
2
  ${expanded} { transform: rotate(90deg); }
3
3
  ${collapsedRtl} { transform: scaleX(-1); }
4
- @media (prefers-reduced-motion: reduce) { ${glyph} { transition: none; } }`)}export{activeFill,activeFillDoubled,activeFillTowardText,activeTint,activeWash,disabledControl,disclosureChevron,focusRing,focusRingInset,focusRingInsetOffset,focusRingInwardMax,focusRingInwardOffset,focusRingOffset,focusRingOffsetFrom,focusRingOffsetInset,focusRingOffsetInsetOffset,focusRingOffsetInward,focusRingOutline,focusRingRoom,focusRingShorthand,focusRingShorthandInset,focusRingShorthandInsetOffset,focusRingShorthandInsetPastFrame,focusRingShorthandInward,focusRingShorthandOutline,formControlIconHitTarget,hoverFill,hoverFillDoubled,hoverFillTowardText,hoverTint,iconHitTarget,interactiveTransition};
4
+ @media (prefers-reduced-motion: reduce) { ${glyph} { transition: none; } }`)}export{activeFill,activeFillDoubled,activeFillTowardText,activeTint,activeWash,disabledControl,disclosureChevron,focusRing,focusRingInset,focusRingInsetOffset,focusRingInwardMax,focusRingInwardOffset,focusRingOffset,focusRingOffsetFrom,focusRingOffsetInset,focusRingOffsetInsetOffset,focusRingOffsetInward,focusRingOutline,focusRingOutlineFrom,focusRingRoom,focusRingShorthand,focusRingShorthandInset,focusRingShorthandInsetOffset,focusRingShorthandInsetPastFrame,focusRingShorthandInward,focusRingShorthandOutline,formControlIconHitTarget,hoverFill,hoverFillDoubled,hoverFillTowardText,hoverTint,iconHitTarget,interactiveTransition};
@@ -1 +1 @@
1
- import{html,nothing}from"lit";import{hostAriaLabel}from"./a11y.js";import{resolveAccessibleName}from"./accessible-name.js";import{HostDescriptionController}from"./aria-controls.js";function labeledGroupDescription(host){return new HostDescriptionController(host,()=>host.renderRoot.querySelector('[part~="base"]'))}function renderLabeledGroup(host){const authored=hostAriaLabel(host),name=authored===""||authored===null&&host.accessibleLabel===""?"":resolveAccessibleName(host,host.label)??nothing;return html`<div part="base" role="group" aria-label=${name}><slot></slot></div>`}export{labeledGroupDescription,renderLabeledGroup};
1
+ import{html,nothing}from"lit";import{hostAriaLabel}from"./a11y.js";import{resolveAccessibleName}from"./accessible-name.js";import{HostDescriptionController}from"./aria-controls.js";function labeledGroupDescription(host){return new HostDescriptionController(host,()=>host.renderRoot.querySelector('[part~="base"]'))}function renderLabeledGroup(host,part="base"){const authored=hostAriaLabel(host),name=authored===""||authored===null&&host.accessibleLabel===""?"":resolveAccessibleName(host,host.label)??nothing;return html`<div part=${part} role="group" aria-label=${name}><slot></slot></div>`}export{labeledGroupDescription,renderLabeledGroup};
@@ -118,6 +118,11 @@ export declare function enableLyraLocaleCache(host:Element):void;
118
118
  export declare function invalidateLyraLocaleCache(host:Element):void;
119
119
  /** Resolve the locale inherited by a component host.*/
120
120
  export declare function resolveLyraLocale(host:Element):string;
121
+ /**
122
+ * The locale a server render resolves for `host`. Lit's server DOM gives an element neither
123
+ * ancestors nor a document, so only the host's own `locale`/`lang` and the active locale reach it.
124
+ */
125
+ export declare function resolveLyraServerLocale(host:Element):string;
121
126
  /** Resolve a LyraElement's property-backed locale before its reflected attribute catches up.*/
122
127
  export declare function resolveLyraLocaleWithHostOverride(host:Element,localeOverride:string):string;
123
128
  /** Resolve the direction inherited by a component host.*/
@@ -1 +1 @@
1
- import{canonicalizeLocaleTag}from"./locale-tag.js";import{warnLocaleFallback}from"./dev-warning.js";import{DEV_DIAGNOSTICS}from"./dev-mode-attribute-warning.js";import{domParentElement,flattenedParentElement,ownerView}from"./composed-tree.js";import{readOwnDataValue}from"./data-descriptors.js";import{getDefaultPluralRules,getMessageNumberFormat}from"./intl-cache.js";import{isPlainRecord}from"./object-guards.js";import{requestContextUpdate}from"./context-update.js";const MAX_LOCALE_CANDIDATES=64,MAX_LOCALE_PARENT_DEPTH=32,MAX_LOCALE_SUBTAGS=32,MAX_LOCALE_TAG_LENGTH=255,MAX_LOCALE_CACHE_ENTRIES=128,MAX_CACHEABLE_LOCALE_LENGTH=512,LEGACY_LOCALE_PATTERN=/^[a-z0-9]{1,32}(?:-[a-z0-9]{1,32})*$/,locales=new Map,localePublicTags=new Map,localeMeta=new Map,localeParents=new Map,wellFormedLocales=new Set,exactOnlyLocales=new Set,localeCatalogRevisions=new Map,listeners=new Set,hostLocaleListeners=new Set,hostLocaleFinalizer=new FinalizationRegistry(subscription=>{hostLocaleListeners.delete(subscription)}),ownerDocumentsWithBrowsingContext=new WeakSet,registryListeners=new Set;let activeLocale="",catalogRevision=0;const localeIdentityCache=new Map,EMPTY_LOCALE_IDENTITY=/* @__PURE__ */(()=>Object.freeze({publicTag:"",lookupKey:"",wellFormed:!1,candidateBounded:!0,storable:!1}))(),localeCandidateCache=new Map,ENGLISH_ONLY_CANDIDATES=/* @__PURE__ */(()=>Object.freeze(["en"]))();function cacheBounded(cache,key,value){cache.size>=MAX_LOCALE_CACHE_ENTRIES&&cache.clear(),cache.set(key,value)}function subtagCountWithinBounds(tag){return tag.length<=MAX_LOCALE_TAG_LENGTH&&tag.split("-").length<=MAX_LOCALE_SUBTAGS}function localeIdentity(locale){const known=typeof locale=="string"&&locale.length<=MAX_CACHEABLE_LOCALE_LENGTH?localeIdentityCache.get(locale):void 0;if(known)return known;const normalized=typeof locale=="string"?locale.trim().replace(/_/g,"-"):"";if(!normalized)return EMPTY_LOCALE_IDENTITY;const cached=normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH?localeIdentityCache.get(normalized):void 0;if(cached)return rememberLocaleSpelling(locale,normalized,cached),cached;let publicTag=normalized.toLowerCase(),wellFormed=!1;try{const canonical=canonicalizeLocaleTag(normalized);canonical&&(publicTag=canonical,wellFormed=!0)}catch{}const lookupKey=publicTag.toLowerCase(),candidateBounded=subtagCountWithinBounds(lookupKey),identity={publicTag,lookupKey,wellFormed,candidateBounded,storable:wellFormed||candidateBounded&&LEGACY_LOCALE_PATTERN.test(lookupKey)};return normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(localeIdentityCache,normalized,identity),rememberLocaleSpelling(locale,normalized,identity),identity}function rememberLocaleSpelling(locale,normalized,identity){locale!==normalized&&locale.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(localeIdentityCache,locale,identity)}function storedLocaleIdentity(locale,required){if(typeof locale!="string")throw new TypeError("A locale must be a string.");const identity=localeIdentity(locale);if(!identity.publicTag){if(!required)return identity;throw new TypeError("A locale is required.")}if(!identity.storable)throw new TypeError("The locale must be BCP-47 or a bounded alphanumeric custom tag.");return identity}function canonicalizeLyraLocale(locale){const identity=localeIdentity(locale);return identity.storable?identity.publicTag:"en"}const likelySubtagsCache=new Map;function likelySubtags(key){let likely=likelySubtagsCache.get(key);if(!likely){try{const{script="",region=""}=new Intl.Locale(key).maximize();likely=[script==="Zzzz"?"":script.toLowerCase(),region.toLowerCase()]}catch{return["",""]}key.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(likelySubtagsCache,key,likely)}return likely}function regionalFallbacks(requestedKey,limit,wellFormed){if(limit<=0||!wellFormed)return[];const separator=requestedKey.indexOf("-"),language=separator===-1?requestedKey:requestedKey.slice(0,separator);if(!language)return[];const requestedSubtags=new Set(requestedKey.split("-")),siblings=[...locales.keys()].filter(key=>wellFormedLocales.has(key)&&!exactOnlyLocales.has(key)&&(key===language||key.startsWith(`${language}-`))&&!isPrefixOf(key,requestedKey));if(siblings.length<2)return siblings;const[script,region]=likelySubtags(requestedKey),rank=key=>{const[keyScript,keyRegion]=likelySubtags(key);return(script&&keyScript===script?1e4:0)+(region&&keyRegion===region?1e3:0)+key.split("-").filter(subtag=>requestedSubtags.has(subtag)).length};return siblings.map(key=>[rank(key),key]).sort(([a,x],[b,y])=>b-a||(x<y?-1:x>y?1:0)).slice(0,limit).map(([,key])=>key)}function impliedScriptStep(requestedKey){const separator=requestedKey.indexOf("-");if(separator<=0)return;const language=requestedKey.slice(0,separator),subtags=requestedKey.split("-");if(/^[a-z]{4}$/.test(subtags[1]))return;const[script]=likelySubtags(requestedKey),[languageScript]=likelySubtags(language);return script&&languageScript&&script!==languageScript?`${language}-${script}`:void 0}function isPrefixOf(key,requestedKey){return key===requestedKey||requestedKey.startsWith(`${key}-`)}function localeCandidates(locale){const identity=localeIdentity(locale),normalized=identity.lookupKey;if(!normalized)return ENGLISH_ONLY_CANDIDATES;const cached=normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH?localeCandidateCache.get(normalized):void 0;if(cached)return cached;const candidates=[];if((identity.wellFormed||identity.candidateBounded)&&candidates.push(normalized),identity.candidateBounded){for(let index=normalized.length-1;index>=0;index-=1)normalized.charCodeAt(index)===45&&index>0&&candidates.push(normalized.slice(0,index));const scriptStep=identity.wellFormed?impliedScriptStep(normalized):void 0;scriptStep&&candidates.splice(candidates.length-1,0,scriptStep);const regionalBudget=Math.max(0,MAX_LOCALE_CANDIDATES-candidates.length-1);candidates.push(...regionalFallbacks(normalized,regionalBudget,identity.wellFormed))}else if(identity.wellFormed){const separator=normalized.indexOf("-");separator>0&&candidates.push(normalized.slice(0,separator))}const expanded=[],seen=new Set;for(const candidate of candidates){let current=candidate;for(;current&&!seen.has(current)&&expanded.length<MAX_LOCALE_CANDIDATES-1;)seen.add(current),expanded.push(current),current=localeParents.get(current)}seen.has("en")||expanded.push("en");const frozen=Object.freeze(expanded);return normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(localeCandidateCache,normalized,frozen),frozen}function lyraLocaleCatalogVersion(locale){return localeCandidates(locale).map(candidate=>localeCatalogRevisions.get(candidate)??0).join(",")}function getRegisteredLyraLocales(){const keys=new Set(["en",...localePublicTags.values()]);return Object.freeze([...keys].sort())}const NO_REGISTERED_LOCALE_KEYS=/* @__PURE__ */(()=>Object.freeze([]))();function getRegisteredLyraLocaleKeys(locale){const identity=localeIdentity(locale);if(!identity.lookupKey)return NO_REGISTERED_LOCALE_KEYS;const catalog=locales.get(identity.lookupKey);return catalog?Object.freeze(Object.keys(catalog)):NO_REGISTERED_LOCALE_KEYS}function subscribeLyraLocaleRegistry(listener){return registryListeners.add(listener),()=>registryListeners.delete(listener)}const MAX_CATALOG_MESSAGES=4096,MAX_CATALOG_PROPERTY_READS=MAX_CATALOG_MESSAGES*2,MAX_MESSAGE_KEY_LENGTH=256,PLURAL_CATEGORIES=new Set(["zero","one","two","few","many","other"]),trustedMessageRecords=new WeakSet;function trusted(snapshot){return trustedMessageRecords.add(Object.freeze(snapshot)),snapshot}function snapshotPluralMessage(value){if(!isPlainRecord(value))return;const snapshot=Object.create(null);let count=0;try{for(const key in value){if(++count>PLURAL_CATEGORIES.size||!PLURAL_CATEGORIES.has(key)||!Object.prototype.hasOwnProperty.call(value,key))return;const entry=readOwnDataValue(value,key);if(typeof entry!="string")return;snapshot[key]=entry}}catch{return}return typeof snapshot.other=="string"?trusted(snapshot):void 0}function snapshotMessage(value){return typeof value=="string"?value:snapshotPluralMessage(value)}function snapshotCatalog(strings){const snapshot=Object.create(null);let keys=[];if(isPlainRecord(strings))try{keys=Reflect.ownKeys(strings).slice(0,MAX_CATALOG_PROPERTY_READS)}catch{}let count=0;for(const key of keys){if(count>=MAX_CATALOG_MESSAGES)break;if(typeof key!="string"||!key||key.length>MAX_MESSAGE_KEY_LENGTH)continue;let descriptor;try{descriptor=Reflect.getOwnPropertyDescriptor(strings,key)}catch{continue}if(!descriptor?.enumerable||!("value"in descriptor))continue;count+=1;const message=snapshotMessage(descriptor.value);message!==void 0&&(snapshot[key]=message)}return trusted(snapshot)}function mergeCatalogs(current,incoming){return trusted(Object.assign(Object.create(null),current,incoming))}function snapshotLocaleMeta(meta){if(meta===void 0)return;if(!isPlainRecord(meta))return Object.freeze({});const snapshot={},dir=readOwnDataValue(meta,"dir");(dir==="ltr"||dir==="rtl")&&(snapshot.dir=dir);const name=readOwnDataValue(meta,"name");return typeof name=="string"&&(snapshot.name=name),Object.freeze(snapshot)}function snapshotLyraLocaleStrings(strings){return snapshotCatalog(strings)}let emptyLocaleStrings;function emptyLyraLocaleStrings(){return emptyLocaleStrings??=snapshotLyraLocaleStrings({})}const trustedDefaultCatalogs=new WeakMap;function trustedLyraDefaultStrings(defaults){const known=trustedDefaultCatalogs.get(defaults);if(known)return known;let trusted2=defaults;if(isPlainRecord(defaults)&&!trustedMessageRecords.has(defaults))try{Reflect.ownKeys(defaults).length<=MAX_CATALOG_MESSAGES&&(trusted2=snapshotCatalog(defaults))}catch{}return trustedDefaultCatalogs.set(defaults,trusted2),trusted2}function safeMessageAt(source,key){if(isPlainRecord(source))return trustedMessageRecords.has(source)?source[key]:snapshotMessage(readOwnDataValue(source,key))}function deliverLocaleListeners(groups,operation){const errors=[];for(const group of groups)for(const listener of group)try{listener()}catch(error){errors.push(error)}if(errors.length>0)throw new AggregateError(errors,`${operation} committed, but ${errors.length} locale subscriber${errors.length===1?"":"s"} failed.`)}function localeUsesCatalog(locale,lookupKey){return localeCandidates(locale).includes(lookupKey)}function recordLyraOwnerDocumentConnection(host){ownerView(host)&&ownerDocumentsWithBrowsingContext.add(host.ownerDocument)}function forgetHostLocaleSubscription(subscription){hostLocaleListeners.delete(subscription),hostLocaleFinalizer.unregister(subscription)}function liveHostLocaleSubscriptions(){const live=[];for(const subscription of[...hostLocaleListeners]){const host=subscription.deref();if(!host||!host.isConnected||ownerDocumentsWithBrowsingContext.has(host.ownerDocument)&&ownerView(host)===null){forgetHostLocaleSubscription(subscription);continue}live.push(host)}return live}function registerLocale(locale,strings,meta,exactOnly,parentKey){const identity=storedLocaleIdentity(locale,!0),key=identity.lookupKey,incomingStrings=snapshotCatalog(strings),incomingMeta=snapshotLocaleMeta(meta);parentKey!==void 0&&validateLocaleParent(key,parentKey);const isNewLocale=!locales.has(key),candidateTopologyChanged=isNewLocale||parentKey!==void 0&&localeParents.get(key)!==parentKey||exactOnly&&!exactOnlyLocales.has(key)||identity.wellFormed&&!wellFormedLocales.has(key),previouslyAffectedActive=candidateTopologyChanged&&activeLocale!==""&&localeUsesCatalog(activeLocale,key),previouslyAffectedHosts=new Set(candidateTopologyChanged?liveHostLocaleSubscriptions().filter(host=>localeUsesCatalog(inheritedLocale(host),key)):[]);exactOnly&&exactOnlyLocales.add(key),parentKey!==void 0&&localeParents.set(key,parentKey),identity.wellFormed&&wellFormedLocales.add(key),locales.set(key,mergeCatalogs(locales.get(key),incomingStrings)),localePublicTags.set(key,identity.publicTag),incomingMeta&&localeMeta.set(key,Object.freeze({...localeMeta.get(key)??{},...incomingMeta})),localeCatalogRevisions.set(key,++catalogRevision),candidateTopologyChanged&&localeCandidateCache.clear();const activeSnapshot=previouslyAffectedActive||activeLocale&&localeUsesCatalog(activeLocale,key)?[...listeners]:[],hostSnapshot=liveHostLocaleSubscriptions().filter(host=>previouslyAffectedHosts.has(host)||localeUsesCatalog(inheritedLocale(host),key)).map(host=>()=>requestContextUpdate(host)),registrySnapshot=isNewLocale?[...registryListeners]:[];deliverLocaleListeners([activeSnapshot,hostSnapshot,registrySnapshot],`registerLyraLocale(${JSON.stringify(identity.publicTag)})`)}function registerLyraLocale(locale,strings,meta){registerLocale(locale,strings,meta,!1)}function validateLocaleParent(childKey,parentKey){for(const origin of new Set([childKey,...localeParents.keys()])){const visited=new Set;let current=origin,depth=0;for(;current;){if(visited.has(current))throw new TypeError("Locale parent relationships must not contain cycles.");if(visited.add(current),current=current===childKey?parentKey:localeParents.get(current),current&&++depth>MAX_LOCALE_PARENT_DEPTH)throw new TypeError("Locale parent chains must not exceed 32 edges.")}}}function registerLyraLocaleDelta(locale,parent,strings,meta){const parentKey=storedLocaleIdentity(parent,!0).lookupKey;registerLocale(locale,strings,meta,!0,parentKey)}function registerLyraExactLocale(locale,strings,meta){registerLocale(locale,strings,meta,!0)}function getLyraLocaleDirection(locale){const identity=localeIdentity(locale);if(!identity.publicTag)return"ltr";for(const candidate of localeCandidates(identity.publicTag)){const declared=localeMeta.get(candidate)?.dir;if(declared)return declared}try{const resolved=new Intl.Locale(identity.publicTag);return(resolved.textInfo?.direction??resolved.getTextInfo?.().direction)==="rtl"?"rtl":"ltr"}catch{return"ltr"}}function setLyraLocale(locale){const next=storedLocaleIdentity(locale,!1).publicTag;if(activeLocale===next)return;const hostSnapshot=liveHostLocaleSubscriptions(),previousHostLocales=hostSnapshot.map(host=>inheritedLocale(host));activeLocale=next;const affectedHostListeners=hostSnapshot.filter((host,index)=>inheritedLocale(host)!==previousHostLocales[index]).map(host=>()=>requestContextUpdate(host));deliverLocaleListeners([[...listeners],affectedHostListeners],`setLyraLocale(${JSON.stringify(next)})`)}function getLyraLocale(){return activeLocale}function resolveActiveOrExplicitLocale(locale){const trimmed=locale?.trim();return trimmed&&trimmed.toLowerCase()!=="auto"?locale:activeLocale||void 0}function subscribeLyraLocale(listener){return listeners.add(listener),()=>listeners.delete(listener)}function subscribeLyraLocaleForHost(host){recordLyraOwnerDocumentConnection(host);const subscription=new WeakRef(host);return hostLocaleListeners.add(subscription),hostLocaleFinalizer.register(host,subscription,subscription),()=>forgetHostLocaleSubscription(subscription)}function inheritedLocale(host,localeAttribute=host.getAttribute("locale")){const explicit=localeAttribute||host.getAttribute("lang");if(explicit)return canonicalizeLyraLocale(explicit);if(host.getAttribute("lang")==="")return activeLocale||"en";const documentElement=host.ownerDocument?.documentElement;let parent=domParentElement(host);for(;parent;){const isDocumentElement=parent===documentElement,locale=isDocumentElement?parent.getAttribute("locale"):parent.getAttribute("locale")||parent.getAttribute("lang");if(locale)return canonicalizeLyraLocale(locale);if(!isDocumentElement&&parent.getAttribute("lang")==="")return activeLocale||"en";parent=domParentElement(parent)}if(activeLocale)return activeLocale;const documentLocale=documentElement?.getAttribute("lang");return documentLocale?canonicalizeLyraLocale(documentLocale):"en"}const hostContextCaches=new WeakMap;function enableLyraLocaleCache(host){hostContextCaches.has(host)||hostContextCaches.set(host,{})}function invalidateLyraLocaleCache(host){const cache=hostContextCaches.get(host);cache&&(cache.attribute=void 0,cache.locale=void 0,cache.direction=void 0)}function resolveLyraLocale(host){return cachedLocale(host,host.getAttribute("locale")||"")}function cachedLocale(host,localeAttribute){const cache=hostContextCaches.get(host);if(!cache)return inheritedLocale(host,localeAttribute);let locale=cache.locale;return(locale===void 0||cache.attribute!==localeAttribute)&&(locale=inheritedLocale(host,localeAttribute),cache.attribute=localeAttribute,cache.locale=locale),locale}function resolveLyraLocaleWithHostOverride(host,localeOverride){return localeOverride?canonicalizeLyraLocale(localeOverride):cachedLocale(host,localeOverride)}function inheritedDirection(host){const explicit=host.getAttribute("dir")?.toLowerCase();if(explicit==="rtl"||explicit==="ltr")return explicit;const view=ownerView(host);if(view)try{const getComputedStyle=view.getComputedStyle;if(typeof getComputedStyle=="function"){const computed=getComputedStyle.call(view,host).direction;if(computed==="rtl"||computed==="ltr")return computed}}catch{}let parent=flattenedParentElement(host);for(;parent;){const inherited=parent.getAttribute("dir")?.toLowerCase();if(inherited==="rtl"||inherited==="ltr")return inherited;parent=flattenedParentElement(parent)}return"ltr"}function resolveLyraDirection(host){const cache=hostContextCaches.get(host);if(!cache)return inheritedDirection(host);let direction=cache.direction;return direction===void 0&&(direction=inheritedDirection(host),cache.direction=direction),direction}function peekLyraLocale(host){return hostContextCaches.get(host)?.locale}function peekLyraDirection(host){return hostContextCaches.get(host)?.direction}const PLURAL_CATEGORY_FALLBACKS={zero:["zero","other"],one:["one","other"],two:["two","few","many","other"],few:["few","many","other"],many:["many","few","other"],other:["other"]};function pluralSelector(values){let raw;try{raw=values.pluralCount??values.count}catch{return}return typeof raw=="number"&&Number.isFinite(raw)?raw:void 0}function selectPluralMessage(message,locale,count){if(count===void 0)return message.other;const tag=localeCandidates(locale)[0],category=getDefaultPluralRules(tag).select(count);for(const candidate of PLURAL_CATEGORY_FALLBACKS[category]??PLURAL_CATEGORY_FALLBACKS.other){const text=message[candidate];if(text!==void 0)return text}return message.other}function resolveLyraString(host,key,overrides,fallback,values,defaults){return resolveLyraStringWithLocale(()=>resolveLyraLocale(host),key,overrides,fallback,values,defaults)}function resolveLyraStringWithLocale(resolveLocale,key,overrides,fallback,values,defaults){let message=safeMessageAt(overrides,key);message===void 0&&typeof fallback=="string"&&(message=fallback);let locale;if(message===void 0){locale=resolveLocale();for(const candidate of localeCandidates(locale)){const registered=safeMessageAt(locales.get(candidate),key);if(registered!==void 0){message=registered;break}}DEV_DIAGNOSTICS&&message===void 0&&warnLocaleFallback(locale,key)}message??=safeMessageAt(defaults,key)??key;let text;return typeof message!="string"?(locale??=resolveLocale(),text=selectPluralMessage(message,locale,values?pluralSelector(values):void 0)):text=message,values?text.replace(/\{(\w+)\}/g,(match,name)=>{try{const value=values[name];return typeof value=="string"?value:typeof value!="number"?match:Number.isFinite(value)?(locale??=resolveLocale(),getMessageNumberFormat(locale).format(value+0)):String(value)}catch{return match}}):text}function resolveLocalizedParts(template,interpolate){const marker=selectAbsentMarker(template);return interpolate(marker).split(marker)}function resolveLocalizedSlots(template,names,interpolate){const markers=Object.create(null),byMarker=new Map;let seen=template;for(const name of names){if(Object.prototype.hasOwnProperty.call(markers,name))continue;const marker=selectAbsentMarker(seen);markers[name]=marker,byMarker.set(marker,name),seen+=marker}const text=interpolate(markers),out=[];let start=0;for(;;){let at=-1,found="";for(const marker of byMarker.keys()){const index=text.indexOf(marker,start);index!==-1&&(at===-1||index<at)&&(at=index,found=marker)}if(at===-1)break;at>start&&out.push(text.slice(start,at)),out.push({slot:byMarker.get(found)}),start=at+found.length}return start<text.length&&out.push(text.slice(start)),out}function selectAbsentMarker(template){const privateUse=new Set;for(let index=0;index<template.length;index+=1){const code=template.charCodeAt(index);code>=57344&&code<=63743&&privateUse.add(code)}let marker="";for(let code=57344;code<=63743;code+=1)if(!privateUse.has(code)){marker=String.fromCharCode(code);break}if(!marker){const counts=new Uint32Array(65536);for(let index=0;index<template.length;index+=1){const code=template.charCodeAt(index);counts[code]=(counts[code]??0)+1}let leastCode=0,leastCount=Number.POSITIVE_INFINITY;for(let code=0;code<counts.length;code+=1){const count=counts[code]??0;if(count===0){marker=String.fromCharCode(code);break}count<leastCount&&(leastCode=code,leastCount=count)}if(!marker){const followers=new Uint8Array(65536);for(let index=0;index+1<template.length;index+=1)template.charCodeAt(index)===leastCode&&(followers[template.charCodeAt(index+1)]=1);let follower=0;for(;follower<followers.length&&followers[follower]!==0;)follower+=1;marker=String.fromCharCode(leastCode,follower<followers.length?follower:leastCode)}}return marker}export{canonicalizeLyraLocale,emptyLyraLocaleStrings,enableLyraLocaleCache,getLyraLocale,getLyraLocaleDirection,getRegisteredLyraLocaleKeys,getRegisteredLyraLocales,invalidateLyraLocaleCache,lyraLocaleCatalogVersion,peekLyraDirection,peekLyraLocale,recordLyraOwnerDocumentConnection,registerLyraExactLocale,registerLyraLocale,registerLyraLocaleDelta,resolveActiveOrExplicitLocale,resolveLocalizedParts,resolveLocalizedSlots,resolveLyraDirection,resolveLyraLocale,resolveLyraLocaleWithHostOverride,resolveLyraString,resolveLyraStringWithLocale,setLyraLocale,snapshotLyraLocaleStrings,subscribeLyraLocale,subscribeLyraLocaleForHost,subscribeLyraLocaleRegistry,trustedLyraDefaultStrings};
1
+ import{canonicalizeLocaleTag}from"./locale-tag.js";import{warnLocaleFallback}from"./dev-warning.js";import{DEV_DIAGNOSTICS}from"./dev-mode-attribute-warning.js";import{domParentElement,flattenedParentElement,ownerView}from"./composed-tree.js";import{readOwnDataValue}from"./data-descriptors.js";import{getDefaultPluralRules,getMessageNumberFormat}from"./intl-cache.js";import{isPlainRecord}from"./object-guards.js";import{requestContextUpdate}from"./context-update.js";const MAX_LOCALE_CANDIDATES=64,MAX_LOCALE_PARENT_DEPTH=32,MAX_LOCALE_SUBTAGS=32,MAX_LOCALE_TAG_LENGTH=255,MAX_LOCALE_CACHE_ENTRIES=128,MAX_CACHEABLE_LOCALE_LENGTH=512,LEGACY_LOCALE_PATTERN=/^[a-z0-9]{1,32}(?:-[a-z0-9]{1,32})*$/,locales=new Map,localePublicTags=new Map,localeMeta=new Map,localeParents=new Map,wellFormedLocales=new Set,exactOnlyLocales=new Set,localeCatalogRevisions=new Map,listeners=new Set,hostLocaleListeners=new Set,hostLocaleFinalizer=new FinalizationRegistry(subscription=>{hostLocaleListeners.delete(subscription)}),ownerDocumentsWithBrowsingContext=new WeakSet,registryListeners=new Set;let activeLocale="",catalogRevision=0;const localeIdentityCache=new Map,EMPTY_LOCALE_IDENTITY=/* @__PURE__ */(()=>Object.freeze({publicTag:"",lookupKey:"",wellFormed:!1,candidateBounded:!0,storable:!1}))(),localeCandidateCache=new Map,ENGLISH_ONLY_CANDIDATES=/* @__PURE__ */(()=>Object.freeze(["en"]))();function cacheBounded(cache,key,value){cache.size>=MAX_LOCALE_CACHE_ENTRIES&&cache.clear(),cache.set(key,value)}function subtagCountWithinBounds(tag){return tag.length<=MAX_LOCALE_TAG_LENGTH&&tag.split("-").length<=MAX_LOCALE_SUBTAGS}function localeIdentity(locale){const known=typeof locale=="string"&&locale.length<=MAX_CACHEABLE_LOCALE_LENGTH?localeIdentityCache.get(locale):void 0;if(known)return known;const normalized=typeof locale=="string"?locale.trim().replace(/_/g,"-"):"";if(!normalized)return EMPTY_LOCALE_IDENTITY;const cached=normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH?localeIdentityCache.get(normalized):void 0;if(cached)return rememberLocaleSpelling(locale,normalized,cached),cached;let publicTag=normalized.toLowerCase(),wellFormed=!1;try{const canonical=canonicalizeLocaleTag(normalized);canonical&&(publicTag=canonical,wellFormed=!0)}catch{}const lookupKey=publicTag.toLowerCase(),candidateBounded=subtagCountWithinBounds(lookupKey),identity={publicTag,lookupKey,wellFormed,candidateBounded,storable:wellFormed||candidateBounded&&LEGACY_LOCALE_PATTERN.test(lookupKey)};return normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(localeIdentityCache,normalized,identity),rememberLocaleSpelling(locale,normalized,identity),identity}function rememberLocaleSpelling(locale,normalized,identity){locale!==normalized&&locale.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(localeIdentityCache,locale,identity)}function storedLocaleIdentity(locale,required){if(typeof locale!="string")throw new TypeError("A locale must be a string.");const identity=localeIdentity(locale);if(!identity.publicTag){if(!required)return identity;throw new TypeError("A locale is required.")}if(!identity.storable)throw new TypeError("The locale must be BCP-47 or a bounded alphanumeric custom tag.");return identity}function canonicalizeLyraLocale(locale){const identity=localeIdentity(locale);return identity.storable?identity.publicTag:"en"}const likelySubtagsCache=new Map;function likelySubtags(key){let likely=likelySubtagsCache.get(key);if(!likely){try{const{script="",region=""}=new Intl.Locale(key).maximize();likely=[script==="Zzzz"?"":script.toLowerCase(),region.toLowerCase()]}catch{return["",""]}key.length<=MAX_CACHEABLE_LOCALE_LENGTH&&cacheBounded(likelySubtagsCache,key,likely)}return likely}function regionalFallbacks(requestedKey,limit,wellFormed){if(limit<=0||!wellFormed)return[];const separator=requestedKey.indexOf("-"),language=separator===-1?requestedKey:requestedKey.slice(0,separator);if(!language)return[];const requestedSubtags=new Set(requestedKey.split("-")),siblings=[...locales.keys()].filter(key=>wellFormedLocales.has(key)&&!exactOnlyLocales.has(key)&&(key===language||key.startsWith(`${language}-`))&&!isPrefixOf(key,requestedKey));if(siblings.length<2)return siblings;const[script,region]=likelySubtags(requestedKey),rank=key=>{const[keyScript,keyRegion]=likelySubtags(key);return(script&&keyScript===script?1e4:0)+(region&&keyRegion===region?1e3:0)+key.split("-").filter(subtag=>requestedSubtags.has(subtag)).length};return siblings.map(key=>[rank(key),key]).sort(([a,x],[b,y])=>b-a||(x<y?-1:x>y?1:0)).slice(0,limit).map(([,key])=>key)}function impliedScriptStep(requestedKey){const separator=requestedKey.indexOf("-");if(separator<=0)return;const language=requestedKey.slice(0,separator),subtags=requestedKey.split("-");if(/^[a-z]{4}$/.test(subtags[1]))return;const[script]=likelySubtags(requestedKey),[languageScript]=likelySubtags(language);return script&&languageScript&&script!==languageScript?`${language}-${script}`:void 0}function isPrefixOf(key,requestedKey){return key===requestedKey||requestedKey.startsWith(`${key}-`)}function localeCandidates(locale){const identity=localeIdentity(locale),normalized=identity.lookupKey;if(!normalized)return ENGLISH_ONLY_CANDIDATES;const cacheable=normalized.length<=MAX_CACHEABLE_LOCALE_LENGTH,cached=cacheable?localeCandidateCache.get(normalized):void 0;if(cached)return cached;const candidates=expandLocaleCandidates?expandLocaleCandidates(identity):normalized==="en"||!(identity.wellFormed||identity.candidateBounded)?ENGLISH_ONLY_CANDIDATES:Object.freeze([normalized,"en"]);return cacheable&&cacheBounded(localeCandidateCache,normalized,candidates),candidates}let expandLocaleCandidates;function expandedLocaleCandidates(identity){const normalized=identity.lookupKey,candidates=[];if((identity.wellFormed||identity.candidateBounded)&&candidates.push(normalized),identity.candidateBounded){for(let index=normalized.length-1;index>=0;index-=1)normalized.charCodeAt(index)===45&&index>0&&candidates.push(normalized.slice(0,index));const scriptStep=identity.wellFormed?impliedScriptStep(normalized):void 0;scriptStep&&candidates.splice(candidates.length-1,0,scriptStep);const regionalBudget=Math.max(0,MAX_LOCALE_CANDIDATES-candidates.length-1);candidates.push(...regionalFallbacks(normalized,regionalBudget,identity.wellFormed))}else if(identity.wellFormed){const separator=normalized.indexOf("-");separator>0&&candidates.push(normalized.slice(0,separator))}const expanded=[],seen=new Set;for(const candidate of candidates){let current=candidate;for(;current&&!seen.has(current)&&expanded.length<MAX_LOCALE_CANDIDATES-1;)seen.add(current),expanded.push(current),current=localeParents.get(current)}return seen.has("en")||expanded.push("en"),Object.freeze(expanded)}function lyraLocaleCatalogVersion(locale){let version="";for(const candidate of localeCandidates(locale)){const revision=localeCatalogRevisions.get(candidate);revision&&(version+=`${revision},`)}return version}function getRegisteredLyraLocales(){const keys=new Set(["en",...localePublicTags.values()]);return Object.freeze([...keys].sort())}const NO_REGISTERED_LOCALE_KEYS=/* @__PURE__ */(()=>Object.freeze([]))();function getRegisteredLyraLocaleKeys(locale){const identity=localeIdentity(locale);if(!identity.lookupKey)return NO_REGISTERED_LOCALE_KEYS;const catalog=locales.get(identity.lookupKey);return catalog?Object.freeze(Object.keys(catalog)):NO_REGISTERED_LOCALE_KEYS}function subscribeLyraLocaleRegistry(listener){return registryListeners.add(listener),()=>registryListeners.delete(listener)}const MAX_CATALOG_MESSAGES=4096,MAX_CATALOG_PROPERTY_READS=MAX_CATALOG_MESSAGES*2,MAX_MESSAGE_KEY_LENGTH=256,PLURAL_CATEGORIES=new Set(["zero","one","two","few","many","other"]),trustedMessageRecords=new WeakSet;function trusted(snapshot){return trustedMessageRecords.add(Object.freeze(snapshot)),snapshot}function snapshotPluralMessage(value){if(!isPlainRecord(value))return;const snapshot=Object.create(null);let count=0;try{for(const key in value){if(++count>PLURAL_CATEGORIES.size||!PLURAL_CATEGORIES.has(key)||!Object.prototype.hasOwnProperty.call(value,key))return;const entry=readOwnDataValue(value,key);if(typeof entry!="string")return;snapshot[key]=entry}}catch{return}return typeof snapshot.other=="string"?trusted(snapshot):void 0}function snapshotMessage(value){return typeof value=="string"?value:snapshotPluralMessage(value)}function snapshotCatalog(strings){const snapshot=Object.create(null);let keys=[];if(isPlainRecord(strings))try{keys=Reflect.ownKeys(strings).slice(0,MAX_CATALOG_PROPERTY_READS)}catch{}let count=0;for(const key of keys){if(count>=MAX_CATALOG_MESSAGES)break;if(typeof key!="string"||!key||key.length>MAX_MESSAGE_KEY_LENGTH)continue;let descriptor;try{descriptor=Reflect.getOwnPropertyDescriptor(strings,key)}catch{continue}if(!descriptor?.enumerable||!("value"in descriptor))continue;count+=1;const message=snapshotMessage(descriptor.value);message!==void 0&&(snapshot[key]=message)}return trusted(snapshot)}function mergeCatalogs(current,incoming){return trusted(Object.assign(Object.create(null),current,incoming))}function snapshotLocaleMeta(meta){if(meta===void 0)return;if(!isPlainRecord(meta))return Object.freeze({});const snapshot={},dir=readOwnDataValue(meta,"dir");(dir==="ltr"||dir==="rtl")&&(snapshot.dir=dir);const name=readOwnDataValue(meta,"name");return typeof name=="string"&&(snapshot.name=name),Object.freeze(snapshot)}function snapshotLyraLocaleStrings(strings){return snapshotCatalog(strings)}let emptyLocaleStrings;function emptyLyraLocaleStrings(){return emptyLocaleStrings??=snapshotLyraLocaleStrings({})}const trustedDefaultCatalogs=new WeakMap;function trustedLyraDefaultStrings(defaults){const known=trustedDefaultCatalogs.get(defaults);if(known)return known;let trusted2=defaults;if(isPlainRecord(defaults)&&!trustedMessageRecords.has(defaults))try{Reflect.ownKeys(defaults).length<=MAX_CATALOG_MESSAGES&&(trusted2=snapshotCatalog(defaults))}catch{}return trustedDefaultCatalogs.set(defaults,trusted2),trusted2}function safeMessageAt(source,key){if(isPlainRecord(source))return trustedMessageRecords.has(source)?source[key]:snapshotMessage(readOwnDataValue(source,key))}function deliverLocaleListeners(groups,operation){const errors=[];for(const group of groups)for(const listener of group)try{listener()}catch(error){errors.push(error)}if(errors.length>0)throw new AggregateError(errors,`${operation} committed, but ${errors.length} locale subscriber${errors.length===1?"":"s"} failed.`)}function localeUsesCatalog(locale,lookupKey){return localeCandidates(locale).includes(lookupKey)}function recordLyraOwnerDocumentConnection(host){ownerView(host)&&ownerDocumentsWithBrowsingContext.add(host.ownerDocument)}function forgetHostLocaleSubscription(subscription){hostLocaleListeners.delete(subscription),hostLocaleFinalizer.unregister(subscription)}function liveHostLocaleSubscriptions(){const live=[];for(const subscription of[...hostLocaleListeners]){const host=subscription.deref();if(!host||!host.isConnected||ownerDocumentsWithBrowsingContext.has(host.ownerDocument)&&ownerView(host)===null){forgetHostLocaleSubscription(subscription);continue}live.push(host)}return live}function registerLocale(locale,strings,meta,exactOnly,parentKey){const identity=storedLocaleIdentity(locale,!0),key=identity.lookupKey,incomingStrings=snapshotCatalog(strings),incomingMeta=snapshotLocaleMeta(meta);parentKey!==void 0&&validateLocaleParent(key,parentKey),expandLocaleCandidates||(expandLocaleCandidates=expandedLocaleCandidates,localeCandidateCache.clear());const isNewLocale=!locales.has(key),candidateTopologyChanged=isNewLocale||parentKey!==void 0&&localeParents.get(key)!==parentKey||exactOnly&&!exactOnlyLocales.has(key)||identity.wellFormed&&!wellFormedLocales.has(key),previouslyAffectedActive=candidateTopologyChanged&&activeLocale!==""&&localeUsesCatalog(activeLocale,key),previouslyAffectedHosts=new Set(candidateTopologyChanged?liveHostLocaleSubscriptions().filter(host=>localeUsesCatalog(inheritedLocale(host),key)):[]);exactOnly&&exactOnlyLocales.add(key),parentKey!==void 0&&localeParents.set(key,parentKey),identity.wellFormed&&wellFormedLocales.add(key),locales.set(key,mergeCatalogs(locales.get(key),incomingStrings)),localePublicTags.set(key,identity.publicTag),incomingMeta&&localeMeta.set(key,Object.freeze({...localeMeta.get(key)??{},...incomingMeta})),localeCatalogRevisions.set(key,++catalogRevision),candidateTopologyChanged&&localeCandidateCache.clear();const activeSnapshot=previouslyAffectedActive||activeLocale&&localeUsesCatalog(activeLocale,key)?[...listeners]:[],hostSnapshot=liveHostLocaleSubscriptions().filter(host=>previouslyAffectedHosts.has(host)||localeUsesCatalog(inheritedLocale(host),key)).map(host=>()=>requestContextUpdate(host)),registrySnapshot=isNewLocale?[...registryListeners]:[];deliverLocaleListeners([activeSnapshot,hostSnapshot,registrySnapshot],`registerLyraLocale(${JSON.stringify(identity.publicTag)})`)}function registerLyraLocale(locale,strings,meta){registerLocale(locale,strings,meta,!1)}function validateLocaleParent(childKey,parentKey){for(const origin of new Set([childKey,...localeParents.keys()])){const visited=new Set;let current=origin,depth=0;for(;current;){if(visited.has(current))throw new TypeError("Locale parent relationships must not contain cycles.");if(visited.add(current),current=current===childKey?parentKey:localeParents.get(current),current&&++depth>MAX_LOCALE_PARENT_DEPTH)throw new TypeError("Locale parent chains must not exceed 32 edges.")}}}function registerLyraLocaleDelta(locale,parent,strings,meta){const parentKey=storedLocaleIdentity(parent,!0).lookupKey;registerLocale(locale,strings,meta,!0,parentKey)}function registerLyraExactLocale(locale,strings,meta){registerLocale(locale,strings,meta,!0)}function getLyraLocaleDirection(locale){const identity=localeIdentity(locale);if(!identity.publicTag)return"ltr";for(const candidate of localeCandidates(identity.publicTag)){const declared=localeMeta.get(candidate)?.dir;if(declared)return declared}try{const resolved=new Intl.Locale(identity.publicTag);return(resolved.textInfo?.direction??resolved.getTextInfo?.().direction)==="rtl"?"rtl":"ltr"}catch{return"ltr"}}function setLyraLocale(locale){const next=storedLocaleIdentity(locale,!1).publicTag;if(activeLocale===next)return;const hostSnapshot=liveHostLocaleSubscriptions(),previousHostLocales=hostSnapshot.map(host=>inheritedLocale(host));activeLocale=next;const affectedHostListeners=hostSnapshot.filter((host,index)=>inheritedLocale(host)!==previousHostLocales[index]).map(host=>()=>requestContextUpdate(host));deliverLocaleListeners([[...listeners],affectedHostListeners],`setLyraLocale(${JSON.stringify(next)})`)}function getLyraLocale(){return activeLocale}function resolveActiveOrExplicitLocale(locale){const trimmed=locale?.trim();return trimmed&&trimmed.toLowerCase()!=="auto"?locale:activeLocale||void 0}function subscribeLyraLocale(listener){return listeners.add(listener),()=>listeners.delete(listener)}function subscribeLyraLocaleForHost(host){recordLyraOwnerDocumentConnection(host);const subscription=new WeakRef(host);return hostLocaleListeners.add(subscription),hostLocaleFinalizer.register(host,subscription,subscription),()=>forgetHostLocaleSubscription(subscription)}function inheritedLocale(host,localeAttribute=host.getAttribute("locale")){const explicit=localeAttribute||host.getAttribute("lang");if(explicit)return canonicalizeLyraLocale(explicit);if(host.getAttribute("lang")==="")return activeLocale||"en";const documentElement=host.ownerDocument?.documentElement;let parent=domParentElement(host);for(;parent;){const isDocumentElement=parent===documentElement,locale=isDocumentElement?parent.getAttribute("locale"):parent.getAttribute("locale")||parent.getAttribute("lang");if(locale)return canonicalizeLyraLocale(locale);if(!isDocumentElement&&parent.getAttribute("lang")==="")return activeLocale||"en";parent=domParentElement(parent)}if(activeLocale)return activeLocale;const documentLocale=documentElement?.getAttribute("lang");return documentLocale?canonicalizeLyraLocale(documentLocale):"en"}const hostContextCaches=new WeakMap;function enableLyraLocaleCache(host){hostContextCaches.has(host)||hostContextCaches.set(host,{})}function invalidateLyraLocaleCache(host){const cache=hostContextCaches.get(host);cache&&(cache.attribute=void 0,cache.locale=void 0,cache.direction=void 0)}function resolveLyraLocale(host){return cachedLocale(host,host.getAttribute("locale")||"")}function cachedLocale(host,localeAttribute){const cache=hostContextCaches.get(host);if(!cache)return inheritedLocale(host,localeAttribute);let locale=cache.locale;return(locale===void 0||cache.attribute!==localeAttribute)&&(locale=inheritedLocale(host,localeAttribute),cache.attribute=localeAttribute,cache.locale=locale),locale}function resolveLyraServerLocale(host){const explicit=host.getAttribute("locale")||host.getAttribute("lang");return explicit?canonicalizeLyraLocale(explicit):activeLocale||"en"}function resolveLyraLocaleWithHostOverride(host,localeOverride){return localeOverride?canonicalizeLyraLocale(localeOverride):cachedLocale(host,localeOverride)}function inheritedDirection(host){const explicit=host.getAttribute("dir")?.toLowerCase();if(explicit==="rtl"||explicit==="ltr")return explicit;const view=ownerView(host);if(view)try{const getComputedStyle=view.getComputedStyle;if(typeof getComputedStyle=="function"){const computed=getComputedStyle.call(view,host).direction;if(computed==="rtl"||computed==="ltr")return computed}}catch{}let parent=flattenedParentElement(host);for(;parent;){const inherited=parent.getAttribute("dir")?.toLowerCase();if(inherited==="rtl"||inherited==="ltr")return inherited;parent=flattenedParentElement(parent)}return"ltr"}function resolveLyraDirection(host){const cache=hostContextCaches.get(host);if(!cache)return inheritedDirection(host);let direction=cache.direction;return direction===void 0&&(direction=inheritedDirection(host),cache.direction=direction),direction}function peekLyraLocale(host){return hostContextCaches.get(host)?.locale}function peekLyraDirection(host){return hostContextCaches.get(host)?.direction}const PLURAL_CATEGORY_FALLBACKS={zero:["zero","other"],one:["one","other"],two:["two","few","many","other"],few:["few","many","other"],many:["many","few","other"],other:["other"]};function pluralSelector(values){let raw;try{raw=values.pluralCount??values.count}catch{return}return typeof raw=="number"&&Number.isFinite(raw)?raw:void 0}function selectPluralMessage(message,locale,count){if(count===void 0)return message.other;const tag=localeCandidates(locale)[0],category=getDefaultPluralRules(tag).select(count);for(const candidate of PLURAL_CATEGORY_FALLBACKS[category]??PLURAL_CATEGORY_FALLBACKS.other){const text=message[candidate];if(text!==void 0)return text}return message.other}function resolveLyraString(host,key,overrides,fallback,values,defaults){return resolveLyraStringWithLocale(()=>resolveLyraLocale(host),key,overrides,fallback,values,defaults)}function resolveLyraStringWithLocale(resolveLocale,key,overrides,fallback,values,defaults){let message=safeMessageAt(overrides,key);message===void 0&&typeof fallback=="string"&&(message=fallback);let locale;if(message===void 0){if(locale=resolveLocale(),locales.size)for(const candidate of localeCandidates(locale)){const registered=safeMessageAt(locales.get(candidate),key);if(registered!==void 0){message=registered;break}}DEV_DIAGNOSTICS&&message===void 0&&warnLocaleFallback(locale,key)}message??=safeMessageAt(defaults,key)??key;let text;return typeof message!="string"?(locale??=resolveLocale(),text=selectPluralMessage(message,locale,values?pluralSelector(values):void 0)):text=message,values?text.replace(/\{(\w+)\}/g,(match,name)=>{try{const value=values[name];return typeof value=="string"?value:typeof value!="number"?match:Number.isFinite(value)?(locale??=resolveLocale(),getMessageNumberFormat(locale).format(value+0)):String(value)}catch{return match}}):text}function resolveLocalizedParts(template,interpolate){const marker=selectAbsentMarker(template);return interpolate(marker).split(marker)}function resolveLocalizedSlots(template,names,interpolate){const markers=Object.create(null),byMarker=new Map;let seen=template;for(const name of names){if(Object.prototype.hasOwnProperty.call(markers,name))continue;const marker=selectAbsentMarker(seen);markers[name]=marker,byMarker.set(marker,name),seen+=marker}const text=interpolate(markers),out=[];let start=0;for(;;){let at=-1,found="";for(const marker of byMarker.keys()){const index=text.indexOf(marker,start);index!==-1&&(at===-1||index<at)&&(at=index,found=marker)}if(at===-1)break;at>start&&out.push(text.slice(start,at)),out.push({slot:byMarker.get(found)}),start=at+found.length}return start<text.length&&out.push(text.slice(start)),out}function selectAbsentMarker(template){const privateUse=new Set;for(let index=0;index<template.length;index+=1){const code=template.charCodeAt(index);code>=57344&&code<=63743&&privateUse.add(code)}let marker="";for(let code=57344;code<=63743;code+=1)if(!privateUse.has(code)){marker=String.fromCharCode(code);break}if(!marker){const counts=new Uint32Array(65536);for(let index=0;index<template.length;index+=1){const code=template.charCodeAt(index);counts[code]=(counts[code]??0)+1}let leastCode=0,leastCount=Number.POSITIVE_INFINITY;for(let code=0;code<counts.length;code+=1){const count=counts[code]??0;if(count===0){marker=String.fromCharCode(code);break}count<leastCount&&(leastCode=code,leastCount=count)}if(!marker){const followers=new Uint8Array(65536);for(let index=0;index+1<template.length;index+=1)template.charCodeAt(index)===leastCode&&(followers[template.charCodeAt(index+1)]=1);let follower=0;for(;follower<followers.length&&followers[follower]!==0;)follower+=1;marker=String.fromCharCode(leastCode,follower<followers.length?follower:leastCode)}}return marker}export{canonicalizeLyraLocale,emptyLyraLocaleStrings,enableLyraLocaleCache,getLyraLocale,getLyraLocaleDirection,getRegisteredLyraLocaleKeys,getRegisteredLyraLocales,invalidateLyraLocaleCache,lyraLocaleCatalogVersion,peekLyraDirection,peekLyraLocale,recordLyraOwnerDocumentConnection,registerLyraExactLocale,registerLyraLocale,registerLyraLocaleDelta,resolveActiveOrExplicitLocale,resolveLocalizedParts,resolveLocalizedSlots,resolveLyraDirection,resolveLyraLocale,resolveLyraLocaleWithHostOverride,resolveLyraServerLocale,resolveLyraString,resolveLyraStringWithLocale,setLyraLocale,snapshotLyraLocaleStrings,subscribeLyraLocale,subscribeLyraLocaleForHost,subscribeLyraLocaleRegistry,trustedLyraDefaultStrings};
@@ -26,7 +26,7 @@ export type LyraMessage=string|LyraPluralMessage;
26
26
  * additional keys as well; components may use a component-specific key when
27
27
  * a message is not part of this common set.
28
28
  */
29
- export type LyraMessageKey='connectorManagerLabel'|'connectorManagerEmpty'|'connectorManagerLimit'|'connectorManagerKindMcp'|'connectorManagerKindConnector'|'connectorManagerStatusDisconnected'|'connectorManagerStatusConnecting'|'connectorManagerStatusConnected'|'connectorManagerConnect'|'connectorManagerDisconnect'|'connectorManagerConnectFor'|'connectorManagerDisconnectFor'|'connectorManagerRetryFor'|'connectorManagerStatusChanged'|'backgroundRunsLabel'|'backgroundRunsEmpty'|'backgroundRunsLimit'|'backgroundRunsStatusCompleted'|'backgroundRunsStatusFailed'|'backgroundRunsOpenFor'|'backgroundRunsCancelFor'|'researchProgressLabel'|'researchProgressEmpty'|'researchProgressLimit'|'researchProgressStatusPending'|'researchProgressStatusRunning'|'researchProgressStatusCompleted'|'researchProgressStatusFailed'|'researchProgressSources'|'budgetMeterLabel'|'budgetMeterUnavailable'|'budgetMeterExceeded'|'budgetMeterValue'|'budgetMeterPercent'|'toolParamMinLength'|'toolParamMaxLength'|'toolParamMinimum'|'toolParamMaximum'|'toolParamFormat'|'toolParamMinItems'|'toolParamMaxItems'|'toolParamInvalidConstraint'|'toolParamInvalidSelection'|'permissionRulesLabel'|'permissionRulesEmpty'|'permissionRulesLimit'|'permissionRulesDecisionFor'|'permissionRulesScope'|'permissionRulesAllow'|'permissionRulesAsk'|'permissionGrantLabel'|'permissionGrantScopeLabel'|'permissionGrantAllowOnce'|'permissionGrantAllowSession'|'agentQuestionUnsupported'|'changeReviewLabel'|'changeReviewEmpty'|'changeReviewKeep'|'changeReviewKeepHunk'|'changeReviewDiscard'|'changeReviewPending'|'changeReviewKept'|'changeReviewDiscarded'|'changeReviewDiscardHunk'|'changeReviewHunk'|'changeReviewHunkInFile'|'changeReviewLimit'|'agentQuestionLabel'|'agentQuestionAccept'|'agentQuestionDecline'|'agentQuestionSubmitted'|'agentQuestionFormLoadFailed'|'streamInterrupted'|'streamResume'|'genViewEmpty'|'genViewInvalid'|'genViewLoading'|'genViewLoadFailed'|'genViewInvalidState'|'genViewActionDenied'|'genViewConfirmationRequired'|'noData'|'graphDataListLimit'|'graphLegendLabel'|'legendTypeShown'|'legendTypeHidden'|'entityChipWithType'|'jumpToLatest'|'terminalLabel'|'terminalDownload'|'terminalHighlightLine'|'terminalOutputTruncated'|'schemaViewerIssueLimit'|'schemaViewerIssueError'|'schemaViewerIssueWarning'|'schemaViewerIssueInfo'|'toolParamMissingProperty'|'toolParamBooleanUnset'|'toolParamBooleanTrue'|'toolParamBooleanFalse'|'toolParamSchemaLimit'|'testResultsLimit'|'toolTimelineLimit'|'toolTimelineLoadError'|'toolSelectLimit'|'sequenceStripEmpty'|'sequenceStripSourceError'|'sequenceStripSourceItemUnavailable'|'sequenceStripSourceItemLabel'|'sequenceStripSourceRangeDetails'|'sequenceStripSourceKeyboardHelp'|'sequenceStripCategoryCount'|'sequenceStripCellKeyboardHelp'|'sequenceStripUnnamedCategory'|'sequenceStripBucketLabel'|'sequenceStripBucketSummary'|'sequenceStripItemCount'|'sequenceStripRangeCount'|'noColumns'|'dataGridColumnMenu'|'dataGridPinStart'|'dataGridPinEnd'|'dataGridUnpin'|'dataGridRowsPerPage'|'dataGridTreeLimitReached'|'loadMore'|'viewerSearchMatchCount'|'viewerSearchNoMatches'|'viewerSearchActiveMatch'|'viewerHighlightLabel'|'tableRowTotal'|'tableFilterLabel'|'tableFilterPlaceholder'|'tableLoading'|'tableLoadingMore'|'tableLoadFailed'|'tableEditCell'|'tableEditCellInRow'|'carousel'|'carouselLabel'|'carouselSlide'|'carouselSlidePosition'|'carouselSlideAnnouncement'|'carouselSlideAnnouncementSeparator'|'carouselIndicators'|'carouselGoTo'|'carouselPauseRotation'|'carouselResumeRotation'|'carouselViewport'|'imageComparerLabel'|'zoomableFrameLabel'|'zoomControls'|'zoomOut'|'zoomIn'|'lightboxLabel'|'lightboxImagePosition'|'scrollerLabel'|'chatViewportLabel'|'newMessagesCount'|'newMessages'|'scrollPrevious'|'scrollNext'|'showAllColumns'|'dataGridColumns'|'showFewerColumns'|'clear'|'openCalendar'|'open'|'close'|'toggleNavigation'|'resizeNavigation'|'appRailPin'|'appRailItemToggle'|'appRailGroupToggle'|'resizeColumn'|'resizeValuePixels'|'resizeValuePercent'|'copy'|'copyJson'|'copied'|'expand'|'collapse'|'toggleMessage'|'messageActionsLabel'|'regenerateResponse'|'editMessage'|'showMore'|'showMoreCount'|'showLess'|'retry'|'remove'|'removeWithContext'|'playWithContext'|'pauseWithContext'|'loading'|'loadingDocument'|'calendarPreviousMonth'|'calendarNextMonth'|'noMatches'|'previous'|'next'|'paginationLabel'|'paginationPage'|'paginationJumpToPage'|'paginationPageSize'|'paginationPageSizeOption'|'paginationInvalidPage'|'paginationInvalidPageUnknownTotal'|'branchPickerLabel'|'branchPrevious'|'branchNext'|'branchPosition'|'paginationSummary'|'paginationEmptySummary'|'paginationApplied'|'paginationAppliedUnknownTotal'|'cancel'|'confirm'|'search'|'circularReference'|'items'|'item'|'trendOf'|'wordCloud'|'wordCloudWordLimit'|'wordCloudLegend'|'wordCloudWordAnnouncement'|'wordCloudPreparedSummary'|'wordCloudPreparedUnavailable'|'avPlayerWaveformUnavailable'|'avPlayerTranscriptUnavailable'|'histogramDistributionSummary'|'histogramDistributionRange'|'graphSourceRecords'|'graphSourceNodes'|'graphSourceEdges'|'graphSourceAllRecords'|'graphSourceIncidentEdges'|'graphSourceDirection'|'graphSourceBothDirections'|'graphSourceTotals'|'graphSourceCoverageComplete'|'graphSourceCoverageNeighborhood'|'graphSourceCoverageAggregate'|'graphSourceNodeCount'|'graphSourceEdgeCount'|'graphSourceShownNodes'|'graphSourceShownEdges'|'graphSourceRecordsError'|'graphSourceSceneError'|'graphSourceRecordMissing'|'heatmapSourceError'|'heatmapSourceSummary'|'heatmapSourceRangeLabel'|'heatmapSourceExactWindow'|'heatmapSourceKeyboardHelp'|'heatmapSourceMean'|'heatmapSourceMin'|'heatmapSourceMax'|'testResultsInputTooLarge'|'embeddingExplorerSpatialBounds'|'embeddingExplorerSpatialSummary'|'embeddingExplorerSpatialBin'|'embeddingExplorerSpatialError'|'embeddingExplorerSpatialLoading'|'comboboxLoadError'|'comboboxSelectedOverflow'|'promptQueueItemLabel'|'promptQueueActionLabel'|'notInCatalog'|'sendMessage'|'stopGenerating'|'dropzoneReleaseToAdd'|'dropzoneRejectedType'|'chartCategory'|'chartTotal'|'chartAxisTotal'|'chartPrimaryAxis'|'chartSecondaryAxis'|'chartPointLabel'|'chartPointCoordinates'|'chartBubblePointCoordinates'|'chartBandRange'|'chartLabeledPoint'|'chartLegend'|'resetZoom'|'chatSending'|'chatResponding'|'chatFailedToSend'|'chatFailedAnnounce'|'chatCompleteAnnounce'|'showMoreCollapsed'|'showMoreOverflowLabel'|'countAtLeast'|'copyCode'|'copyCodeIndexed'|'copiedToClipboard'|'codeRegion'|'codeRegionIndexed'|'codeRegionWithLanguage'|'codeRegionWithLanguageIndexed'|'markdownTableRegion'|'markdownTableRegionIndexed'|'codeBlockLineLabel'|'copyDiff'|'diffViewOldLabel'|'diffViewNewLabel'|'diffViewHiddenLines'|'diffViewTooLarge'|'jsonArray'|'jsonObject'|'jsonValue'|'jsonCopyLabel'|'jsonToggleLabel'|'jsonItemCount'|'jsonKeyCount'|'jsonViewerLimit'|'jsonViewerLabel'|'untitledSource'|'sourcePageSuffix'|'toolCall'|'statusPending'|'statusRunning'|'statusSuccess'|'statusError'|'statusDenied'|'statusIncomplete'|'maximize'|'restore'|'promptStudioVariableName'|'promptStudioVariableValue'|'schemaViewerLimit'|'subagentPanelLimit'|'pollPause'|'pollResume'|'pollRefresh'|'pollInactive'|'pollRefreshing'|'pollPaused'|'pollPausedAnnounce'|'pollResumedAnnounce'|'pollRefreshingAnnounce'|'randomContentPause'|'randomContentResume'|'randomContentNext'|'attachmentAdd'|'attachmentTriggerFiles'|'attachmentTriggerImage'|'attachmentTriggerCamera'|'attachmentMenuFiles'|'attachmentMenuImage'|'attachmentMenuCamera'|'checkboxRequired'|'checkboxGroupRequired'|'tokenInputRequired'|'tokenInputEditWithContext'|'tokenInputLabel'|'commandPaletteLabel'|'commandPalettePlaceholder'|'commandPaletteEmpty'|'commandPaletteResults'|'iconButtonLabel'|'codeEditorLabel'|'calendarLabel'|'calendarEmpty'|'calendarEventsOverflow'|'switchRequired'|'citationHighConfidence'|'citationMediumConfidence'|'citationLowConfidence'|'citationVerified'|'citationUnverified'|'contextMeterUsed'|'contextMeterUsedOfTotal'|'contextMeterSegmentLabel'|'contextMeterInputLimit'|'gaugeLabel'|'gaugeValueLabel'|'untitledConversation'|'panelToggle'|'dockPanelResize'|'documentPreviewAlt'|'documentPreviewUrlNotAllowed'|'documentPreviewFailedToLoad'|'documentPreviewResourceTooLarge'|'documentPreviewGenericError'|'ebookViewerLoadError'|'ebookViewerLocationChanged'|'ebookViewerMissingLibrary'|'ebookViewerRegionLabel'|'ebookViewerPreviousChapter'|'ebookViewerNextChapter'|'ebookViewerShowingChapter'|'fileTypeFile'|'fileTypePdf'|'fileTypeWord'|'fileTypeSpreadsheet'|'fileTypePresentation'|'fileTypeText'|'fileTypeCode'|'fileTypeArchive'|'fileTypeImage'|'fileTypeAudio'|'fileTypeVideo'|'fileTypeWithSize'|'pptxViewerLabel'|'pptxViewerFidelityNotice'|'pptxViewerRenderError'|'pptxViewerMissingLibrary'|'pptxViewerPreviousSlide'|'pptxViewerNextSlide'|'pptxViewerSlideOf'|'documentViewerLabel'|'attachmentPreviewName'|'attachmentPreviewFile'|'documentViewerMissingSanitizer'|'docxViewerLabel'|'docxViewerMissingConverter'|'svgViewerLabel'|'htmlViewerLabel'|'datasetViewerLabel'|'datasetViewerMissingParser'|'datasetViewerEmpty'|'datasetViewerCaption'|'datasetViewerCaptionNamed'|'contactViewerLabel'|'contactViewerNoContacts'|'contactViewerUnnamedContact'|'contactViewerPhoneLabel'|'contactViewerEmailLabel'|'contactViewerAddressLabel'|'contactViewerOrganization'|'contactViewerTypedValue'|'contactViewerAddressFormat'|'contactViewerTypeHome'|'contactViewerTypeWork'|'contactViewerTypeCell'|'contactViewerTypeVoice'|'contactViewerTypeFax'|'contactViewerTypeInternet'|'contactViewerTypePreferred'|'exportButtonLabel'|'generationStatusElapsedSeconds'|'generationStatusThroughput'|'graphDataList'|'graphSpatialControls'|'graphView3d'|'graphViewList'|'graphFit'|'graphOrbitLeft'|'graphOrbitRight'|'graphOrbitUp'|'graphOrbitDown'|'graphSpatialInstructions'|'graphSpatialUnavailable'|'graphCustomNodesError'|'graphCustomNodesUnavailable'|'graphGlowUnavailable'|'graphSpatialPage'|'graphItemAnnouncement'|'navigation'|'attachmentRetryWithContext'|'attachmentUploadingWithContext'|'attachmentUploadingProgress'|'attachmentUploadingIndeterminate'|'attachmentUploadFailed'|'attachmentUntitledFile'|'chartTrendIncreasing'|'chartTrendDecreasing'|'chartTrendFlat'|'chartSummary'|'chartSeriesNoData'|'chartSummaryWithData'|'chartSummaryEmpty'|'chartSummarySeparator'|'chartData'|'chartRenderUnavailable'|'chartPreparedSummary'|'chartPreparedUnavailable'|'chartPreparedSummaryZoom'|'chartSpatialSummary'|'chartSpatialRadiusDomain'|'chartSpatialDensityLegend'|'chartSpatialPoint'|'chartSpatialBin'|'chartSpatialHidden'|'chartDataSampled'|'chartPlotSampled'|'chartZoomUnavailable'|'chartDataLabelsUnavailable'|'chartStackTotalsUnavailable'|'chartAnnotationsUnavailable'|'chart'|'chartTypeLine'|'chartTypeBar'|'chartTypeScatter'|'chartTypePie'|'chartTypeDoughnut'|'chartTypeRadar'|'chartTypePolarArea'|'chartTypeBubble'|'boxPlotSeriesSummary'|'boxPlotSummaryWithData'|'boxPlotSummaryEmpty'|'boxPlotData'|'chartSeriesLabel'|'boxPlotMin'|'boxPlotQ1'|'boxPlotMedian'|'boxPlotQ3'|'boxPlotMax'|'boxPlot'|'histogramFrequency'|'liteChartMarkSummary'|'liteChartBarLabel'|'chartValueLabel'|'chartValuePercentageLabel'|'liteChartCustomMarkSummary'|'composerLabel'|'composerPlaceholder'|'textareaLabel'|'citation'|'citationWithStatus'|'citationWithCustomLabel'|'comboboxOverflow'|'comboboxRequired'|'comboboxCreate'|'comboboxLabel'|'rename'|'previousMonth'|'nextMonth'|'chooseDate'|'date'|'dateInputMinMessage'|'dateInputMaxMessage'|'dateInputPastDisabled'|'dateInputFutureDisabled'|'dateInputInvalid'|'timeInputLabel'|'timeInputHour'|'timeInputMinute'|'timeInputSecond'|'timeInputDayPeriod'|'timeInputEmptySegment'|'timeInputOpen'|'timeInputPopup'|'timeInputNow'|'timeInputInvalid'|'timeInputMinMessage'|'timeInputMaxMessage'|'timeInputRangeMessage'|'timeInputStepMessage'|'documentPreviewEmpty'|'convertingDocument'|'conversationActionWithTitle'|'documentPreviewNotAvailable'|'documentPreviewGenericFile'|'documentPreviewTypeDocument'|'documentPreviewTypeImage'|'documentPreviewTypeEmail'|'documentPreviewTypeCalendar'|'archiveViewerEmpty'|'archiveViewerFolder'|'archiveViewerFile'|'documentPreviewTypeDataset'|'documentPreviewTypeContact'|'download'|'exportFormatMenuLabel'|'exportFailed'|'fileInputDefaultLabel'|'fileInputAccepted'|'fileInputRejected'|'fileInputFolderRejected'|'fileInputRejectedType'|'fileInputRejectedSize'|'fileInputRejectedCount'|'fileInputRejectedRead'|'fileInputRejectedLimit'|'fileInputRejectedMaxFiles'|'fileInputRejectedMaxTotalSize'|'fileInputRejectionsMore'|'elapsedMinutesSecondsTemplate'|'graphNode'|'graphLink'|'graphDiagram'|'graphTypedNode'|'graphExpandableItem'|'graphNodeFocused'|'graphSelectionCount'|'graphNodesHidden'|'graphCommunity'|'heatmapValueLabel'|'heatmapMatrixCellLabel'|'heatmapCalendarLabel'|'heatmapMatrixLabel'|'heatmapCalendarCellLabel'|'heatmapNoDataValue'|'heatmapDefaultRowLabel'|'heatmapDefaultColLabel'|'heatmapSelectedCellLabel'|'heatmapSelectedCount'|'mapResetNorth'|'heatmapProjectionLimit'|'heatmapDecorationLimit'|'funnelStagesLimit'|'funnelStagesInputLimit'|'inputLabel'|'showPassword'|'hidePassword'|'radioRequired'|'progress'|'responsivePanel'|'popover'|'details'|'breadcrumb'|'timeline'|'timelineClusterCount'|'timelineItemVariantWarning'|'timelineItemVariantBrand'|'rating'|'sliderLabel'|'feedbackPositive'|'feedbackNegative'|'feedbackReasonsLabel'|'feedbackCommentLabel'|'feedbackCommentPlaceholder'|'feedbackSubmit'|'feedbackSubmitted'|'feedbackCommentTooLong'|'feedbackSingleReasonDescription'|'colorPicker'|'mediaCardUntitledFile'|'mediaCardOpenName'|'mediaCardOpenImageAttachment'|'mediaCardOpenVideoAttachment'|'mediaCardOpenFileAttachment'|'mediaCardImageAttachment'|'mediaCardVideoAttachment'|'animatedImageDefaultAlt'|'mentionSuggestions'|'mentionResultCount'|'mentionResultPosition'|'suggestionsLabel'|'map'|'model'|'selectModel'|'modelSelectNoModels'|'modelSelectRequired'|'temperature'|'play'|'playbackPosition'|'playbackStepPosition'|'videoPlayerLabel'|'videoMute'|'videoUnmute'|'videoVolume'|'videoCaptions'|'videoCaptionsOff'|'videoPictureInPicture'|'videoExitPictureInPicture'|'videoEnterFullscreen'|'videoExitFullscreen'|'videoPlaylistLabel'|'videoPlaylistUntitled'|'videoTimeReadout'|'selectValueMissing'|'select'|'sourceListDefaultLabel'|'threadListLabel'|'threadGroupPinned'|'threadGroupToday'|'threadGroupYesterday'|'threadGroupPrevious7Days'|'threadGroupPrevious30Days'|'threadGroupArchived'|'pinConversation'|'unpinConversation'|'archiveConversation'|'unarchiveConversation'|'deleteConversation'|'searchThreads'|'threadListMatchAnnounce'|'threadListEmpty'|'agentWorkspaceLabel'|'agentWorkspaceInputLimit'|'agentWorkspaceConversation'|'agentWorkspaceDetails'|'agentWorkspaceRun'|'agentWorkspaceTools'|'agentWorkspaceRetrieval'|'agentWorkspaceGrounding'|'agentWorkspaceContext'|'agentWorkspaceEmpty'|'ragAnswerLabel'|'ragAnswerCitations'|'ragAnswerSources'|'ragAnswerRetry'|'evaluationDashboardLabel'|'evaluationDashboardRunsLabel'|'evaluationDashboardNoRuns'|'evaluationDashboardMetricUnavailable'|'approvalQueueLabel'|'approvalQueueLimit'|'approvalQueueEmpty'|'approvalQueueOpen'|'approvalQueuePendingCount'|'approvalQueuePending'|'embeddingExplorerLabel'|'embeddingExplorerEmpty'|'embeddingExplorerPoint'|'embeddingExplorerPointLimit'|'knowledgeBaseAdminLabel'|'knowledgeBaseAdminInputLimit'|'knowledgeBaseAdminSourcesTab'|'knowledgeBaseAdminIngestionTab'|'resizeDivider'|'trendUnchanged'|'statTrendIncreased'|'statTrendDecreased'|'statTrendGood'|'statTrendBad'|'statTrendAnnouncement'|'streamStalled'|'streamStallAnnounce'|'streamRecoverAnnounce'|'streamStallClearedAnnounce'|'thinkingPanelLabel'|'messagePartsLabel'|'messagePartsWindowNotice'|'messagePartError'|'messagePartRetry'|'promptQueueLabel'|'promptQueueEmpty'|'promptQueueInputLimit'|'promptQueueAttachmentLimit'|'promptQueueSendNow'|'promptQueueItemRemoved'|'selectionToolbarLabel'|'selectionAsk'|'selectionQuote'|'selectionCite'|'promptInputLabel'|'promptInputControls'|'promptInputCollectionLimit'|'promptInputSources'|'promptInputAttachments'|'promptQueueItemAttachments'|'mcpAppLabel'|'mcpAppUnavailable'|'mcpAppLoading'|'taskListLabel'|'taskListCompletedOfTotal'|'taskListStepStartedAnnounce'|'taskListStepCompletedAnnounce'|'taskListStepFailedAnnounce'|'taskListStepIncompleteAnnounce'|'activityFeedLabel'|'activityFeedCompletedSteps'|'handoffLabel'|'handoffToAgent'|'handoffFromToAgent'|'usageBadgeLabel'|'usageBadgeTokensIn'|'usageBadgeTokensOut'|'usageBadgeTokensInLabel'|'usageBadgeTokensOutLabel'|'usageBadgeTotalTokensLabel'|'usageBadgeCostLabel'|'usageBadgeLatencyLabel'|'checkpointLabel'|'checkpointRestore'|'checkpointRestoreWithContext'|'checkpointRestoring'|'checkpointConfirmPrompt'|'thoughtFor'|'thinking'|'rangeStart'|'rangeEnd'|'calloutAnnouncementWithContext'|'closeWithContext'|'closeWithTruncatedContext'|'toastContentIncomplete'|'toastOverflow'|'toolApprovalHeading'|'toolApprovalGenericTool'|'toolApprovalArgsLabel'|'confirmApproved'|'confirmDenied'|'confirmApprovedAnnounce'|'confirmDeniedAnnounce'|'deny'|'edit'|'approve'|'invalidJson'|'fieldRequired'|'fieldMustBeString'|'fieldMustBeNumber'|'fieldMustBeInteger'|'fieldMustBeBoolean'|'unsupportedFieldType'|'fieldMustBeOneOf'|'fieldMustEqual'|'schemaMustBeObject'|'schemaPropertiesMustBeFlat'|'valueMustBeSerializable'|'valueInvalid'|'matchMismatch'|'phoneInputLabel'|'phoneInputIncomplete'|'otpInputIncomplete'|'otpInputLabel'|'numberInputIncrease'|'numberInputDecrease'|'textareaCharacterCount'|'textareaCharactersRemaining'|'copyFailed'|'colorPickerSaturationBrightness'|'colorPickerSaturationBrightnessValue'|'colorPickerHue'|'colorPickerHueValue'|'colorPickerOpacity'|'colorPickerOpacityValue'|'colorPickerValueField'|'colorPickerToggleFormat'|'colorPickerEyeDropper'|'colorPickerSwatches'|'colorPickerSwatch'|'colorPickerCurrentValue'|'selectSelectedOverflow'|'iconLoadError'|'iconTooLarge'|'iconSanitizerMissing'|'paginationFirstPage'|'paginationLastPage'|'accessibleLabelSeparator'|'durationMilliseconds'|'durationSeconds'|'selectTools'|'searchToolsPlaceholder'|'useDefaultTools'|'toolSelectCustomizeHint'|'noMatchesQuery'|'toolSelectNoneAvailable'|'toolSelectSummary'|'toolCount'|'otherCategory'|'widgetFullscreenPanel'|'widgetViewGroup'|'widgetExitFullscreen'|'widgetExitFullscreenWithLabel'|'widgetExpandToFullscreen'|'widgetExpandToFullscreenWithLabel'|'menuLabel'|'pause'|'kbdEscapeVisual'|'kbdEscapeWord'|'kbdTabWord'|'kbdSpaceWord'|'kbdDeleteVisual'|'kbdDeleteWord'|'kbdHomeWord'|'kbdEndWord'|'kbdPageUpVisual'|'kbdPageUpWord'|'kbdPageDownVisual'|'kbdPageDownWord'|'kbdEnterWord'|'kbdBackspaceWord'|'kbdArrowUpWord'|'kbdArrowDownWord'|'kbdArrowLeftWord'|'kbdArrowRightWord'|'kbdPlusWord'|'kbdMinusWord'|'kbdCommandWord'|'kbdControlVisual'|'kbdControlWord'|'kbdOptionWord'|'kbdAltWord'|'kbdShiftWord'|'kbdShortcutSeparator'|'emailViewerLabel'|'emailViewerMissingParser'|'emailViewerFrom'|'emailViewerTo'|'emailViewerSubject'|'emailViewerDate'|'emailViewerAttachments'|'emailViewerUnnamedAttachment'|'emailViewerNoSubject'|'emailViewerOpenAttachment'|'emailViewerQuotedText'|'emailViewerOpenAttachmentSize'|'emailViewerEmptyBody'|'emailViewerGroupAddress'|'calendarViewerLabel'|'calendarViewerMissingParser'|'calendarViewerEmpty'|'calendarViewerNoSummary'|'pdfViewerLabel'|'pdfViewerMissingLibrary'|'qrCodeMissingLibrary'|'qrCodeGenerationFailed'|'mapMissingLibrary'|'mapStyleRequired'|'mapWebglUnavailable'|'mapInitializationFailed'|'mapLegend'|'mapScene'|'mapCloseWithLabel'|'mapSceneEmpty'|'mapSceneUnavailable'|'mapScenePartial'|'mapSceneInvalid'|'mapSceneLimit'|'mapScenePrevious'|'mapSceneNext'|'mapScenePage'|'mapSceneMarker'|'mapScenePath'|'mapSceneArc'|'mapSceneModel'|'chartMissingLibrary'|'boxPlotMissingLibrary'|'graphMissingLibrary'|'pdfViewerPageOf'|'pdfViewerPageFailed'|'pdfViewerPageHighlights'|'pdfViewerZoomIn'|'pdfViewerZoomOut'|'pdfViewerCurrentZoom'|'pdfViewerPreviousPage'|'pdfViewerNextPage'|'anchorJumped'|'anchorJumpedToPage'|'anchorNotFound'|'highlightLayerLabel'|'highlightWithLabel'|'cellHighlightWithLabel'|'highlightOfTotal'|'pageRailLabel'|'pageRailPage'|'pageRailPageHighlighted'|'spreadsheetViewerUnavailable'|'csvViewerUnavailable'|'csvViewerLabel'|'spreadsheetViewerLabel'|'knownDateDay'|'knownDateMonth'|'knownDateYear'|'skipToContent'|'tourSkip'|'tourDone'|'tourStepOf'|'emojiPickerSearchLabel'|'emojiPickerSearchPlaceholder'|'emojiPickerGridLabel'|'emojiPickerEmpty'|'emojiPickerLoadError'|'emojiPickerPeerMissing'|'emojiPickerGroupSmileysEmotion'|'emojiPickerGroupPeopleBody'|'emojiPickerGroupComponent'|'emojiPickerGroupAnimalsNature'|'emojiPickerGroupFoodDrink'|'emojiPickerGroupTravelPlaces'|'emojiPickerGroupActivities'|'emojiPickerGroupObjects'|'emojiPickerGroupSymbols'|'emojiPickerGroupFlags'|'emojiPickerGroupUnknown'|'pushToTalkRequesting'|'pushToTalkDenied'|'pushToTalkError'|'pushToTalkUnsupported'|'pushToTalkStarted'|'pushToTalkStopped'|'pushToTalkCancelled'|'pushToTalkHold'|'pushToTalkStart'|'pushToTalkStop'|'traceTree'|'traceTreeSpanStatus'|'traceTreeMetricLabel'|'spanProjectionLimit'|'agentTraceFilterLabel'|'spanKindAgent'|'spanKindLlm'|'spanKindTool'|'spanKindRetriever'|'spanKindEmbedding'|'spanKindOther'|'tokensIn'|'tokensOut'|'cost'|'duration'|'spanWaterfall'|'spanStartedAtOffset'|'rubricSubmit'|'rubricSubmitAndNext'|'rubricSkip'|'rubricKeysLimit'|'compareResponseA'|'compareResponseB'|'compareVoteLabel'|'compareVoteBetter'|'compareVoteTie'|'compareVoteBothBad'|'compareVoteRecorded'|'comparePanel'|'audioVisualizerLabel'|'audioVisualizerIdle'|'audioVisualizerListening'|'audioVisualizerThinking'|'audioVisualizerSpeaking'|'treeNodeMoved'|'fileTreeLabel'|'fileTreeDiffSummary'|'gitStatusAdded'|'gitStatusModified'|'gitStatusDeleted'|'gitStatusRenamed'|'gitStatusUntracked'|'gitStatusConflicted'|'gitStatusIgnored'|'imageViewerLabel'|'imageViewerFailedToLoad'|'imageViewerRotate'|'imageViewerFitLabel'|'imageViewerFitContain'|'imageViewerFitWidth'|'imageViewerFitActual'|'imageViewerAnnotate'|'imageViewerHighlightsLabel'|'imageViewerHighlightsLimited'|'imageViewerUnlabeledHighlight'|'imageViewerAnnotationHint'|'imageViewerAnnotationBoxPosition'|'imageViewerAnnotationAdded'|'imageViewerAnnotationCancelled'|'transcriptFeedLabel'|'transcriptFeedEmpty'|'transcriptFeedInterim'|'commitCardLabel'|'commitCardCopyHash'|'commitCardDiffSummary'|'commitCardChangedFiles'|'stackTraceLabel'|'stackTraceLimit'|'stackTraceInternalFrames'|'statusSkipped'|'testResultsLabel'|'testResultsPassed'|'testResultsFailed'|'testResultsSkipped'|'testResultsShownAnnounce'|'testResultsRunning'|'testResultsFilterLabel'|'testResultsCompleteAnnounce'|'testResultsToggleTest'|'testResultsUnnamedTest'|'envListLabel'|'envListLimit'|'envListReveal'|'envListHide'|'envListValueHidden'|'envListCopy'|'voice'|'voicePickerNoVoices'|'voicePickerRequired'|'voicePickerPreview'|'voicePickerPreviewFailed'|'voicePickerStopPreview'|'avPlayerLabel'|'avPlayerFailedToLoad'|'avPlayerTranscript'|'avPlayerTimeline'|'avPlayerPlaybackRate'|'avPlayerRateOption'|'avPlayerPosition'|'avPlayerHighlightRange'|'avPlayerHighlightAt'|'attachmentTriggerAudio'|'attachmentMenuAudio'|'browserFrameLabel'|'browserFrameUrlLabel'|'browserFrameViewOf'|'browserFrameTakeOver'|'browserFrameHandBack'|'browserFrameStop'|'browserFrameStatusIdle'|'browserFrameStatusConnecting'|'browserFrameStatusLive'|'browserFrameStatusStalled'|'browserFrameControllerAgent'|'browserFrameControllerUser'|'browserFramePingsLimit'|'notebookViewerLabel'|'notebookViewerInvalid'|'notebookViewerUnsupportedVersion'|'notebookViewerTooManyCells'|'notebookViewerInPrompt'|'notebookViewerInPromptEmpty'|'notebookViewerCodeCell'|'notebookViewerMarkdownCell'|'notebookViewerRawCell'|'notebookViewerErrorOutput'|'notebookViewerFullOutput'|'notebookViewerUnrenderedOutput'|'xmlViewerLabel'|'xmlViewerParseError'|'xmlViewerTooManyNodes'|'xmlViewerLimit'|'xmlViewerChildCount'|'xmlViewerCopyDocument'|'xmlViewerCopyNode'|'xmlViewerToggleNode'|'artifactPanelLabel'|'artifactPanelPreview'|'artifactPanelCode'|'artifactPanelPreviousVersion'|'artifactPanelNextVersion'|'artifactPanelVersionPosition'|'artifactPanelRestore'|'artifactPanelGenerating'|'resultFieldLabel'|'geojsonViewLabel'|'geojsonViewInvalid'|'geojsonViewFeatureCount'|'geojsonViewMissingMapLibrary'|'mindMapLabel'|'mindMapTopicStatus'|'mindMapLeafStatus'|'mindMapExpanded'|'mindMapCollapsed'|'mindMapNodeLimit'|'mindMapInputLimit'|'entityDegree'|'entityCommunity'|'focusInGraph'|'focusInGraphWithContext'|'untitledEntity'|'untitledCommunity'|'communityMemberCount'|'communityDrillIn'|'communityDrillInWithContext'|'selectAllSources'|'sourcePickerSelection'|'provenancePanelLabel'|'provenanceEntities'|'provenanceRelationships'|'provenanceCommunities'|'provenanceChunks'|'provenanceEmpty'|'chunkInspectorLabel'|'chunkScore'|'scoreTierHigh'|'scoreTierMedium'|'scoreTierLow'|'chunkInspectorEmpty'|'flowCanvasLabel'|'flowCanvasLayoutLimit'|'flowCanvasInputLimit'|'flowCanvasSummary'|'flowNode'|'flowEdge'|'flowEdgeWithLabel'|'flowItemAnnouncement'|'dashboardGridLabel'|'dashboardCellCollisionRejected'|'dashboardCellMoved'|'dashboardCellResized'|'flowEdgeList'|'flowNodeSelected'|'flowNodeDeselected'|'flowSelectionCleared'|'flowNodeMoved'|'flowNodeProgressLabel'|'flowConnectStarted'|'flowConnectTarget'|'flowConnectCommitted'|'flowConnectCancelled'|'zoomToFit'|'flowLockCanvas'|'flowControlsLabel'|'flowMinimapLabel'|'flowMinimapSourceUnavailable'|'flowMinimapViewport'|'flowMinimapInstructions'|'flowMinimapViewportChanged'|'nodePaletteLabel'|'nodePalettePlaceholder'|'nodePaletteEmpty'|'nodePaletteDragHint'|'nodePaletteResultCount'|'pathStripLabel'|'pathNodeStatus'|'pathRelationStatus'|'pathRelationForward'|'pathRelationReverse'|'flowInputHandle'|'flowOutputHandle'|'flowStatusWithDuration'|'flowStatusWithDetail'|'flowSourceRevealSourceNode'|'flowSourceRevealTargetNode'|'flowSourceRecordMatches'|'neighborListLabel'|'neighborRowLabel'|'neighborDirectionIn'|'neighborDirectionOut'|'neighborDirectionBoth'|'neighborExpand'|'neighborListEmpty'|'neighborSourceChoose'|'neighborSourceError'|'neighborSourceSummary'|'neighborGroupHeader'|'flowRunStatusLabel'|'flowRunSummary'|'flowRunStepStatus'|'flowRunStatusCount'|'policySummaryLabel'|'policySummaryLimit'|'policySummaryAllowCount'|'policySummaryDenyCount'|'policySummaryNeedsReviewCount'|'policySummaryStateAllow'|'policySummaryStateDeny'|'policySummaryStateNeedsReview'|'policySummaryCategoryGuardrail'|'policySummaryCategoryPermission'|'policySummaryCategoryPrivacy'|'policySummaryCategoryTool'|'policySummaryDetailLabel'|'evalDatasetLabel'|'evalDatasetAddExample'|'evalDatasetRemoveExample'|'evalDatasetImportLabel'|'evalDatasetSearchLabel'|'evalDatasetTagFilterLabel'|'evalDatasetEmpty'|'evalDatasetNoMatches'|'evalDatasetColumnInput'|'evalDatasetColumnExpectedOutput'|'evalDatasetColumnTags'|'queryBuilderLabel'|'queryBuilderEmpty'|'queryBuilderNoFields'|'queryBuilderAddCondition'|'queryBuilderRemoveCondition'|'queryBuilderRowControlName'|'queryBuilderFieldLabel'|'queryBuilderFieldPlaceholder'|'queryBuilderOperatorLabel'|'queryBuilderOperatorPlaceholder'|'queryBuilderValueLabel'|'queryBuilderValuePlaceholder'|'queryBuilderCombinatorLabel'|'queryBuilderCombinatorAnd'|'queryBuilderCombinatorOr'|'queryBuilderConditionAdded'|'queryBuilderConditionRemoved'|'queryBuilderConditionInvalid'|'queryBuilderBooleanTrue'|'queryBuilderBooleanFalse'|'queryBuilderOperatorEquals'|'queryBuilderOperatorNotEquals'|'queryBuilderOperatorGreaterThan'|'queryBuilderOperatorGreaterThanOrEqual'|'queryBuilderOperatorLessThan'|'queryBuilderOperatorLessThanOrEqual'|'queryBuilderOperatorAfter'|'queryBuilderOperatorOnOrAfter'|'queryBuilderOperatorBefore'|'queryBuilderOperatorOnOrBefore'|'queryBuilderOperatorContains'|'queryBuilderOperatorStartsWith'|'queryBuilderOperatorEndsWith'|'queryBuilderOperatorIn'|'queryBuilderOperatorNotIn'|'queryBuilderOperatorIsEmpty'|'queryBuilderOperatorIsNotEmpty'|'memoryPanelLabel'|'memoryPanelShortTermHeading'|'memoryPanelLongTermHeading'|'memoryPanelAdd'|'memoryPanelAddWithContext'|'memoryPanelAddPosition'|'memoryPanelForgetAll'|'memoryPanelConfirmAddHeading'|'memoryPanelConfirmRemoveHeading'|'memoryPanelConfirmForgetHeading'|'memoryPanelConfirmForgetBody'|'memoryPanelItemsLimit'|'graphExplorerLabel'|'graphExplorerAllTypesHidden'|'graphExplorerClearTypes'|'graphExplorerSearchPlaceholder'|'graphExplorerSearchResultsLabel'|'graphExplorerPin'|'graphExplorerUnpin'|'graphExplorerPinned'|'graphExplorerUnpinned'|'graphExplorerPinnedHeading'|'graphExplorerFindPath'|'retrievalModeVector'|'retrievalModeKeyword'|'retrievalModeHybrid'|'retrievalSearchLabel'|'retrievalModeLabel'|'retrievalFiltersLabel'|'groundingSummaryLabel'|'groundingSummaryEmpty'|'groundingSummarySupportedLabel'|'groundingSummaryUnsupportedLabel'|'groundingSummaryCoverageLabel'|'groundingSummaryConfidenceLabel'|'groundingSummaryWarningsHeading'|'groundingSummaryEvidenceHeading'|'groundingSummaryCitationsLimit'|'claimEvidenceLabel'|'claimEvidenceEmpty'|'claimEvidenceSupported'|'claimEvidencePartiallySupported'|'claimEvidenceUnsupported'|'claimEvidenceContradicted'|'claimEvidenceConfidence'|'claimEvidenceClaimsLimit'|'retrievalCompareLabel'|'retrievalCompareEmpty'|'retrievalCompareInputLimit'|'retrievalCompareResultLimit'|'retrievalCompareOverlap'|'retrievalCompareRank'|'retrievalCompareDenseScore'|'retrievalCompareSparseScore'|'retrievalCompareRerankScore'|'retrievalCompareFinalScore'|'ragEvalDashboardLabel'|'ragEvalDashboardEmpty'|'ragEvalDashboardInputLimit'|'ragEvalDashboardSlicesLimit'|'ragEvalDashboardRuns'|'ragEvalDashboardSlices'|'ragEvalDashboardAllSlices'|'ragEvalDashboardSliceUnavailable'|'ragEvalDashboardRunsLimit'|'ragEvalDashboardMetricUnavailable'|'promptStudioLabel'|'promptStudioLargeWorkspace'|'promptStudioMessages'|'promptStudioVariables'|'promptStudioVersions'|'promptStudioPreview'|'promptStudioPreviewLimit'|'promptStudioRun'|'promptStudioSave'|'promptStudioAddMessage'|'promptStudioRemoveMessage'|'promptStudioRemoveMessageNumbered'|'promptStudioMessageRole'|'promptStudioMessageContent'|'promptStudioMoveMessageUp'|'promptStudioMoveMessageDown'|'promptStudioRoleSystem'|'promptStudioRoleUser'|'promptStudioRoleAssistant'|'promptStudioRoleTool'|'schemaViewerLabel'|'schemaViewerEmpty'|'schemaViewerRequired'|'schemaViewerCircular'|'schemaViewerType'|'subagentPanelLabel'|'subagentPanelEmpty'|'subagentPanelRetry'|'subagentPanelCancelRun'|'subagentPanelRetryRun'|'toolTimelineDetailsFor'|'toolCallBlockHeaderPending'|'toolCallBlockHeaderRunning'|'toolCallBlockHeaderSuccess'|'toolCallBlockHeaderError'|'toolCallBlockHeaderDenied'|'toolCallBlockHeaderIncomplete'|'toolCallBlockArgumentsLabel'|'toolCallBlockResultLabel'|'toolCallBlockErrorLabel'|'realtimeSessionLabel'|'realtimeSessionDisconnected'|'realtimeSessionConnecting'|'realtimeSessionConnected'|'realtimeSessionReconnecting'|'realtimeSessionError'|'realtimeSessionConnect'|'realtimeSessionDisconnect'|'realtimeSessionMute'|'realtimeSessionUnmute'|'realtimeSessionInterrupt'|'realtimeSessionConnectionFailed'|'contextInspectorRedacted'|'contextInspectorTruncated'|'contextInspectorLabel'|'contextInspectorEmpty'|'contextInspectorCopyLabel'|'knowledgeBaseSyncIdle'|'knowledgeBaseSyncSyncing'|'knowledgeBaseSyncPaused'|'knowledgeBaseSyncSynced'|'knowledgeBaseSyncError'|'knowledgeBaseHealthHealthy'|'knowledgeBaseHealthDegraded'|'knowledgeBaseHealthFailed'|'knowledgeBaseHealthUnknown'|'knowledgeBasePermissionOwner'|'knowledgeBasePermissionEditor'|'knowledgeBasePermissionViewer'|'knowledgeBasePermissionRestricted'|'knowledgeBaseNeverSynced'|'knowledgeBaseSyncAction'|'knowledgeBasePauseAction'|'knowledgeBaseDeleteAction'|'knowledgeBaseNameColumn'|'knowledgeBaseSyncColumn'|'knowledgeBaseHealthColumn'|'knowledgeBasePermissionColumn'|'knowledgeBaseActionsColumn'|'knowledgeBaseTotalSources'|'knowledgeBaseSyncedSources'|'knowledgeBaseSyncingSources'|'knowledgeBaseNeedsAttention'|'knowledgeBaseHeading'|'knowledgeBaseCreateSource'|'knowledgeBaseEmptyHeading'|'ingestionStageQueued'|'ingestionStageUploading'|'ingestionStageExtracting'|'ingestionStageChunking'|'ingestionStageEmbedding'|'ingestionStageIndexing'|'ingestionStageDone'|'ingestionStageFailed'|'ingestionStageCancelled'|'ingestionStageUnknown'|'ingestionQueueLabel'|'ingestionQueueEmpty'|'ingestionActionWithContext'|'ingestionQueueActionLimit'|'documentLibraryFreshnessFresh'|'documentLibraryFreshnessAging'|'documentLibraryFreshnessStale'|'documentLibrarySelectAll'|'documentLibrarySelectColumn'|'documentLibraryTypeColumn'|'documentLibraryNameColumn'|'documentLibraryVersionColumn'|'documentLibraryOwnerColumn'|'documentLibraryOmitted'|'documentLibraryTagsColumn'|'documentLibraryFreshnessColumn'|'documentLibraryUpdatedColumn'|'documentLibraryLabel'|'documentLibraryEmptyHeading'|'documentLibraryNoMatchesHeading'|'documentLibrarySearchPlaceholder'|'documentLibraryFilterByTag'|'documentLibraryClearSelection'|'documentLibrarySelectedCount'|'documentLibraryCursorNavigation'|'documentLibraryCursorRestart'|'documentLibraryCursorEnd'|'documentLibraryCursorEmptyBatch'|'documentLibraryCursorHistoryLimit'|'documentLibraryCursorFailed'|'documentCompareNoVersion'|'documentCompareLabel'|'agentRunCurrentStepLabel'|'graphQueryHopRangeInvalid'|'graphQueryRelationshipTypeLabel'|'graphQueryNodeTypeLabel'|'graphQueryBuilderLabel'|'graphQueryStartLabel'|'graphQueryEndLabel'|'graphQueryMinHopsLabel'|'graphQueryMaxHopsLabel'|'graphQueryDirectionLabel'|'graphQueryRun'|'graphQuerySavedQueriesLabel'|'graphQuerySaveNameLabel'|'graphQuerySaveButton'|'graphQueryLoadWithContext'|'filterBarReset'|'filterBarActiveFilters'|'drilldownDocuments'|'drilldownRuns'|'drilldownEmpty'|'drilldownUntitledNode'|'evaluationRunGroundingHeading'|'evaluationRunToolTraceHeading'|'evaluationRunInputHeading'|'evaluationRunOutputHeading'|'evaluationRunLabel'|'evaluationRunProgressLabel'|'retrievalFilterChipLabel'|'retrievalSearchEmptyDescription'|'groundingSummaryEvidenceSpan'|'contextInspectorTruncatedCount'|'contextInspectorSegmentTokens'|'contextInspectorLimit'|'knowledgeBaseDocumentCount'|'knowledgeBaseRowActionsLabel'|'knowledgeBaseEmptyDescription'|'ingestionChunkCount'|'ingestionItemProgressLabel'|'ingestionEmbeddedOfTotal'|'ingestionAttemptCount'|'ingestionRetryWithContext'|'ingestionCancelWithContext'|'documentLibrarySelectDocument'|'agentRunStatusAnnounce'|'graphQueryDeleteWithContext'|'evaluationRunExampleLabel'|'evaluationRunExampleLimit'|'evaluationRunExampleStartedAnnounce'|'evaluationRunExampleCompletedAnnounce'|'evaluationRunExampleFailedAnnounce'|'evaluationRunExampleCancelledAnnounce'|'evaluationRunExampleWaitingInputAnnounce'|'evaluationRunExampleWaitingApprovalAnnounce'|'evaluationRunProgressSummary'|'evaluationRunRunningCount'|'evaluationRunFailedCount'|'evaluationRunDetailsLoadError'|'retrievalStageQueryRewrite'|'retrievalStageEmbed'|'retrievalStageRetrieve'|'retrievalStageRerank'|'retrievalStageFilter'|'statusUnknown'|'statRowsInputLimit'|'retrievalStageKindUnknown'|'retrievalShowMoreWithContext'|'retrievalShowLessWithContext'|'valueTruncated'|'retrievalTraceEvidenceToggle'|'documentCompareOldVersion'|'documentCompareNewVersion'|'agentRunStatusIdle'|'agentRunStatusQueued'|'agentRunStatusCollecting'|'agentRunStatusWaitingInput'|'agentRunStatusWaitingApproval'|'agentRunStatusDone'|'agentRunStatusCancelled'|'localePickerLabel'|'localePickerRequired'|'localePickerSearchLabel'|'localePickerEmpty'|'currencyPickerLabel'|'countryPickerLabel'|'timeZonePickerLabel'|'unitPickerLabel'|'flagLoadError'|'moveUp'|'moveDown'|'reorderMovePending'|'reorderMoveCancelled'|'reorderItemMoved'|'signaturePad'|'signaturePadLabel'|'signaturePadInstructions'|'signaturePadEmpty'|'signaturePadSigned'|'signaturePadPenDown'|'signaturePadPenUp'|'signaturePadDrawingLimit'|'mentionMoreResults'|'commandPaletteResultCount'|'dataGridRowLimit'|'dataGridToggleRow'|'dataGridFilterColumn'|'dataGridSelectPage'|'tableRowLimit'|'tableAdditionalColumns'|'tabCloseAction'|'treeLimit'|'treeSourceError'|'treeSourceSummary'|'treeDefaultLabel'|'graphNodeLimit'|'graphEdgeLimit'|'graphExplorerSearchLimit'|'streamStatusIdle'|'streamStatusConnecting'|'streamStatusStalled'|'stepperStateCompleted'|'stepperStateError'|'stepperStatePending'|'stepperStateLocked'|'generationStatusTokens'|'funnelComparisonShare'|'funnelDropoffIncreased'|'funnelDropoffDecreased'|'retrievalResultsSelectRowOrdinal'|'retrievalResultsSelectionLimit'|'chunkInspectorOpenOrdinal'|'ragAnswerEmpty'|'retrievalTraceEmpty'|'retrievalTraceLabel'|'sourcePickerMatches'|'sourcePickerLimit'|'provenancePanelLimit'|'commitCardFilesLimit'|'taskListLimit'|'evalDatasetLimit'|'mapMarker'|'mapToggleAttribution'|'mapFeedback'|'threadListInputLimit'|'commandPaletteInputLimit'|'promptInputInputLimit'|'sourceSearchUnavailable'|'sourceSelectionLoading'|'sourceSelectionFailed'|'documentLibrarySelectPage'|'chartInputLimit'|'chartTableSource'|'chartTableTarget'|'chartTableValue'|'chartTableName'|'chartTotalsCaption'|'chartValuesTooSmall'|'chordPairLabel'|'sankeyCycle'|'treemapTileLabel'|'choroplethInvalidGeometry'|'histogramInputLimit'|'calendarInputLimit'|'heatmapInputLimit'|'activityFeedInputLimit'|'catalogPickerInputLimit'|'catalogPickerSearchLoadFailed'|'localePickerInputLimit'|'emojiPickerInputLimit'|'mentionInputLimit'|'transcriptFeedInputLimit'|'transcriptFeedWindowNotice'|'transcriptFeedRegion'|'spanWaterfallLimit'|'toolTimelineInputLimit'|'retrievalResultsInputLimit'|'ingestionQueueInputLimit'|'tagFacetLimit'|'codeBlockHighlightLimit'|'codeBlockHighlightedLine'|'codeBlockActiveLine'|'codeBlockToggle'|'diffViewHighlightLimit'|'diffViewLabel'|'engine3dLoading'|'engine3dUnavailable'|'engine3dUnsupported'|'engine3dContextLost'|'engine3dError'|'engine3dSoftwareRendering'|'engine3dShowingBuiltin'|'engine3dShowingList'|'modelViewerLabel'|'modelViewerAlternative'|'modelViewerInstructions'|'modelViewerReady'|'modelViewerEmpty'|'modelViewerProgress'|'modelViewerInvalid'|'modelViewerUnsupportedFormat'|'modelViewerFit'|'modelViewerRotateLeft'|'modelViewerRotateRight'|'modelViewerRotateUp'|'modelViewerRotateDown'|'modelViewerViewport'|'largeDataInvalid'|'largeDataLimit'|'mapGeolocateFindLocation'|'mapGeolocateUnavailable'|'mapGeolocatePermissionDenied'|'mapGeolocatePositionUnavailable'|'mapGeolocateTimeout'|'mapGeolocateError'|'mapGeolocateOutOfBounds'|'mapHashConflict'|'mapHashInvalid'|'mapControlUnavailable'|'mapGlobe'|'mapTerrain'|'mapScaleFeet'|'mapScaleMeters'|'mapScaleKilometers'|'mapScaleMiles'|'mapScaleNauticalMiles'|'mapFeatureStateUnavailable'|'mapPickAtCenter'|'mapCancelPick'|'mapDrawingControls'|'mapDrawAtCenter'|'mapUndoDrawing'|'mapCompleteDrawing'|'mapCancelDrawing'|'mapDrawingVertices'|'mapDrawingUnavailable'|'mapDrawingInvalidCoordinate'|'mapDrawingDuplicateVertex'|'mapDrawingVertexLimit'|'mapDrawingTooFewVertices'|'mapDrawingInvalidGeometry'|'mapExportUnavailable'|'mapDrawingVertex'|'mapDrawingEditInstructions'|'panoramaInstructions'|'panoramaHotspotsLabel'|'mapActivate'|'mapDrawingLength'|'mapDrawingArea'|'mapSquareMeters'|'mapSquareKilometers'|'chart3dLabel'|'chart3dEmpty'|'chart3dRow'|'chart3dInstructions'|'chart3dFit'|'chart3dName'|'chart3dSize'|'chart3dCategory'|'chart3dXAxis'|'chart3dYAxis'|'chart3dZAxis'|'stylePanelLabel'|'stylePanelMode'|'stylePanelModeLight'|'stylePanelModeDark'|'stylePanelModeSystem'|'stylePanelLook'|'stylePanelSurface'|'stylePanelSurfaceSolid'|'stylePanelSurfaceGlass'|'stylePanelSurfaceOpacity'|'stylePanelDensity'|'stylePanelDensityCompact'|'stylePanelDensityComfortable'|'stylePanelDensityTouch'|'stylePanelAccent'|'stylePanelReset'|'styleAccentEmerald'|'styleAccentPeridot'|'styleAccentTopaz'|'styleAccentRuby'|'styleAccentTourmaline'|'styleAccentAmethyst'|'styleAccentAquamarine'|'styleAccentSapphire'|'styleAccentHematite'|'styleLookShadcn'|'styleLookLyra'|'styleLookMaterial'|'styleLookData'|'styleLookTerminal'|'styleLookHighContrast';
29
+ export type LyraMessageKey='connectorManagerLabel'|'connectorManagerEmpty'|'connectorManagerLimit'|'connectorManagerKindMcp'|'connectorManagerKindConnector'|'connectorManagerStatusDisconnected'|'connectorManagerStatusConnecting'|'connectorManagerStatusConnected'|'connectorManagerConnect'|'connectorManagerDisconnect'|'connectorManagerConnectFor'|'connectorManagerDisconnectFor'|'connectorManagerRetryFor'|'connectorManagerStatusChanged'|'backgroundRunsLabel'|'backgroundRunsEmpty'|'backgroundRunsLimit'|'backgroundRunsStatusCompleted'|'backgroundRunsStatusFailed'|'backgroundRunsOpenFor'|'backgroundRunsCancelFor'|'researchProgressLabel'|'researchProgressEmpty'|'researchProgressLimit'|'researchProgressStatusPending'|'researchProgressStatusRunning'|'researchProgressStatusCompleted'|'researchProgressStatusFailed'|'researchProgressSources'|'budgetMeterLabel'|'budgetMeterUnavailable'|'budgetMeterExceeded'|'budgetMeterValue'|'budgetMeterPercent'|'toolParamMinLength'|'toolParamMaxLength'|'toolParamMinimum'|'toolParamMaximum'|'toolParamFormat'|'toolParamMinItems'|'toolParamMaxItems'|'toolParamInvalidConstraint'|'toolParamInvalidSelection'|'permissionRulesLabel'|'permissionRulesEmpty'|'permissionRulesLimit'|'permissionRulesDecisionFor'|'permissionRulesScope'|'permissionRulesAllow'|'permissionRulesAsk'|'permissionGrantLabel'|'permissionGrantScopeLabel'|'permissionGrantAllowOnce'|'permissionGrantAllowSession'|'agentQuestionUnsupported'|'changeReviewLabel'|'changeReviewEmpty'|'changeReviewKeep'|'changeReviewKeepHunk'|'changeReviewDiscard'|'changeReviewPending'|'changeReviewKept'|'changeReviewDiscarded'|'changeReviewDiscardHunk'|'changeReviewHunk'|'changeReviewHunkInFile'|'changeReviewLimit'|'agentQuestionLabel'|'agentQuestionAccept'|'agentQuestionDecline'|'agentQuestionSubmitted'|'agentQuestionFormLoadFailed'|'streamInterrupted'|'streamResume'|'genViewEmpty'|'genViewInvalid'|'genViewLoading'|'genViewLoadFailed'|'genViewInvalidState'|'genViewActionDenied'|'genViewConfirmationRequired'|'noData'|'graphDataListLimit'|'graphLegendLabel'|'legendTypeShown'|'legendTypeHidden'|'entityChipWithType'|'jumpToLatest'|'terminalLabel'|'terminalDownload'|'terminalHighlightLine'|'terminalOutputTruncated'|'schemaViewerIssueLimit'|'schemaViewerIssueError'|'schemaViewerIssueWarning'|'schemaViewerIssueInfo'|'toolParamMissingProperty'|'toolParamBooleanUnset'|'toolParamBooleanTrue'|'toolParamBooleanFalse'|'toolParamSchemaLimit'|'testResultsLimit'|'toolTimelineLimit'|'toolTimelineLoadError'|'toolSelectLimit'|'sequenceStripEmpty'|'sequenceStripSourceError'|'sequenceStripSourceItemUnavailable'|'sequenceStripSourceItemLabel'|'sequenceStripSourceRangeDetails'|'sequenceStripSourceKeyboardHelp'|'sequenceStripCategoryCount'|'sequenceStripCellKeyboardHelp'|'sequenceStripUnnamedCategory'|'sequenceStripBucketLabel'|'sequenceStripBucketSummary'|'sequenceStripItemCount'|'sequenceStripRangeCount'|'noColumns'|'dataGridColumnMenu'|'dataGridPinStart'|'dataGridPinEnd'|'dataGridUnpin'|'dataGridRowsPerPage'|'dataGridTreeLimitReached'|'loadMore'|'viewerSearchMatchCount'|'viewerSearchNoMatches'|'viewerSearchActiveMatch'|'viewerHighlightLabel'|'tableRowTotal'|'tableFilterLabel'|'tableFilterPlaceholder'|'tableLoading'|'tableLoadingMore'|'tableLoadFailed'|'tableEditCell'|'tableEditCellInRow'|'carousel'|'carouselLabel'|'carouselSlide'|'carouselSlidePosition'|'carouselSlideAnnouncement'|'carouselSlideAnnouncementSeparator'|'carouselIndicators'|'carouselGoTo'|'carouselPauseRotation'|'carouselResumeRotation'|'carouselViewport'|'imageComparerLabel'|'zoomableFrameLabel'|'zoomControls'|'zoomOut'|'zoomIn'|'lightboxLabel'|'lightboxImagePosition'|'scrollerLabel'|'chatViewportLabel'|'newMessagesCount'|'newMessages'|'scrollPrevious'|'scrollNext'|'showAllColumns'|'dataGridColumns'|'showFewerColumns'|'clear'|'openCalendar'|'open'|'close'|'toggleNavigation'|'resizeNavigation'|'appRailPin'|'appRailItemToggle'|'appRailGroupToggle'|'resizeColumn'|'resizeValuePixels'|'resizeValuePercent'|'copy'|'copyJson'|'copied'|'expand'|'collapse'|'toggleMessage'|'messageActionsLabel'|'regenerateResponse'|'editMessage'|'showMore'|'showMoreCount'|'showLess'|'retry'|'remove'|'removeWithContext'|'playWithContext'|'pauseWithContext'|'loading'|'loadingDocument'|'calendarPreviousMonth'|'calendarNextMonth'|'noMatches'|'previous'|'next'|'paginationLabel'|'paginationPage'|'paginationJumpToPage'|'paginationPageSize'|'paginationPageSizeOption'|'paginationInvalidPage'|'paginationInvalidPageUnknownTotal'|'branchPickerLabel'|'branchPrevious'|'branchNext'|'branchPosition'|'paginationSummary'|'paginationEmptySummary'|'paginationApplied'|'paginationAppliedUnknownTotal'|'cancel'|'confirm'|'search'|'circularReference'|'items'|'item'|'trendOf'|'wordCloud'|'wordCloudWordLimit'|'wordCloudLegend'|'wordCloudWordAnnouncement'|'wordCloudPreparedSummary'|'wordCloudPreparedUnavailable'|'avPlayerWaveformUnavailable'|'avPlayerTranscriptUnavailable'|'histogramDistributionSummary'|'histogramDistributionRange'|'graphSourceRecords'|'graphSourceNodes'|'graphSourceEdges'|'graphSourceAllRecords'|'graphSourceIncidentEdges'|'graphSourceDirection'|'graphSourceBothDirections'|'graphSourceTotals'|'graphSourceCoverageComplete'|'graphSourceCoverageNeighborhood'|'graphSourceCoverageAggregate'|'graphSourceNodeCount'|'graphSourceEdgeCount'|'graphSourceShownNodes'|'graphSourceShownEdges'|'graphSourceRecordsError'|'graphSourceSceneError'|'graphSourceRecordMissing'|'heatmapSourceError'|'heatmapSourceSummary'|'heatmapSourceRangeLabel'|'heatmapSourceExactWindow'|'heatmapSourceKeyboardHelp'|'heatmapSourceMean'|'heatmapSourceMin'|'heatmapSourceMax'|'testResultsInputTooLarge'|'embeddingExplorerSpatialBounds'|'embeddingExplorerSpatialSummary'|'embeddingExplorerSpatialBin'|'embeddingExplorerSpatialError'|'embeddingExplorerSpatialLoading'|'comboboxLoadError'|'comboboxRichContentUnavailable'|'comboboxSelectedOverflow'|'promptQueueItemLabel'|'promptQueueActionLabel'|'notInCatalog'|'sendMessage'|'stopGenerating'|'dropzoneReleaseToAdd'|'dropzoneRejectedType'|'chartCategory'|'chartTotal'|'chartAxisTotal'|'chartPrimaryAxis'|'chartSecondaryAxis'|'chartPointLabel'|'chartPointCoordinates'|'chartBubblePointCoordinates'|'chartBandRange'|'chartLabeledPoint'|'chartLegend'|'resetZoom'|'chatSending'|'chatResponding'|'chatFailedToSend'|'chatFailedAnnounce'|'chatCompleteAnnounce'|'showMoreCollapsed'|'showMoreOverflowLabel'|'countAtLeast'|'copyCode'|'copyCodeIndexed'|'copiedToClipboard'|'codeRegion'|'codeRegionIndexed'|'codeRegionWithLanguage'|'codeRegionWithLanguageIndexed'|'markdownTableRegion'|'markdownTableRegionIndexed'|'codeBlockLineLabel'|'copyDiff'|'diffViewOldLabel'|'diffViewNewLabel'|'diffViewHiddenLines'|'diffViewTooLarge'|'jsonArray'|'jsonObject'|'jsonValue'|'jsonCopyLabel'|'jsonToggleLabel'|'jsonItemCount'|'jsonKeyCount'|'jsonViewerLimit'|'jsonViewerLabel'|'untitledSource'|'sourcePageSuffix'|'toolCall'|'statusPending'|'statusRunning'|'statusSuccess'|'statusError'|'statusDenied'|'statusIncomplete'|'maximize'|'restore'|'promptStudioVariableName'|'promptStudioVariableValue'|'schemaViewerLimit'|'subagentPanelLimit'|'pollPause'|'pollResume'|'pollRefresh'|'pollInactive'|'pollRefreshing'|'pollPaused'|'pollPausedAnnounce'|'pollResumedAnnounce'|'pollRefreshingAnnounce'|'randomContentPause'|'randomContentResume'|'randomContentNext'|'attachmentAdd'|'attachmentTriggerFiles'|'attachmentTriggerImage'|'attachmentTriggerCamera'|'attachmentMenuFiles'|'attachmentMenuImage'|'attachmentMenuCamera'|'checkboxRequired'|'checkboxGroupRequired'|'tokenInputRequired'|'tokenInputTooFew'|'tokenInputTooMany'|'tokenInputEditWithContext'|'tokenInputLabel'|'commandPaletteLabel'|'commandPalettePlaceholder'|'commandPaletteEmpty'|'commandPaletteResults'|'iconButtonLabel'|'codeEditorLabel'|'calendarLabel'|'calendarEmpty'|'calendarEventsOverflow'|'switchRequired'|'citationHighConfidence'|'citationMediumConfidence'|'citationLowConfidence'|'citationVerified'|'citationUnverified'|'contextMeterUsed'|'contextMeterUsedOfTotal'|'contextMeterSegmentLabel'|'contextMeterInputLimit'|'gaugeLabel'|'gaugeValueLabel'|'untitledConversation'|'panelToggle'|'dockPanelResize'|'documentPreviewAlt'|'documentPreviewUrlNotAllowed'|'documentPreviewFailedToLoad'|'documentPreviewResourceTooLarge'|'documentPreviewGenericError'|'ebookViewerLoadError'|'ebookViewerLocationChanged'|'ebookViewerMissingLibrary'|'ebookViewerRegionLabel'|'ebookViewerPreviousChapter'|'ebookViewerNextChapter'|'ebookViewerShowingChapter'|'fileTypeFile'|'fileTypePdf'|'fileTypeWord'|'fileTypeSpreadsheet'|'fileTypePresentation'|'fileTypeText'|'fileTypeCode'|'fileTypeArchive'|'fileTypeImage'|'fileTypeAudio'|'fileTypeVideo'|'fileTypeWithSize'|'pptxViewerLabel'|'pptxViewerFidelityNotice'|'pptxViewerRenderError'|'pptxViewerMissingLibrary'|'pptxViewerPreviousSlide'|'pptxViewerNextSlide'|'pptxViewerSlideOf'|'documentViewerLabel'|'attachmentPreviewName'|'attachmentPreviewFile'|'documentViewerMissingSanitizer'|'docxViewerLabel'|'docxViewerMissingConverter'|'svgViewerLabel'|'htmlViewerLabel'|'datasetViewerLabel'|'datasetViewerMissingParser'|'datasetViewerEmpty'|'datasetViewerCaption'|'datasetViewerCaptionNamed'|'contactViewerLabel'|'contactViewerNoContacts'|'contactViewerUnnamedContact'|'contactViewerPhoneLabel'|'contactViewerEmailLabel'|'contactViewerAddressLabel'|'contactViewerOrganization'|'contactViewerTypedValue'|'contactViewerAddressFormat'|'contactViewerTypeHome'|'contactViewerTypeWork'|'contactViewerTypeCell'|'contactViewerTypeVoice'|'contactViewerTypeFax'|'contactViewerTypeInternet'|'contactViewerTypePreferred'|'exportButtonLabel'|'generationStatusElapsedSeconds'|'generationStatusThroughput'|'graphDataList'|'graphSpatialControls'|'graphView3d'|'graphViewList'|'graphFit'|'graphOrbitLeft'|'graphOrbitRight'|'graphOrbitUp'|'graphOrbitDown'|'graphSpatialInstructions'|'graphSpatialUnavailable'|'graphCustomNodesError'|'graphCustomNodesUnavailable'|'graphGlowUnavailable'|'graphSpatialPage'|'graphItemAnnouncement'|'navigation'|'attachmentRetryWithContext'|'attachmentUploadingWithContext'|'attachmentUploadingProgress'|'attachmentUploadingIndeterminate'|'attachmentUploadFailed'|'attachmentUntitledFile'|'chartTrendIncreasing'|'chartTrendDecreasing'|'chartTrendFlat'|'chartSummary'|'chartSeriesNoData'|'chartSummaryWithData'|'chartSummaryEmpty'|'chartSummarySeparator'|'chartData'|'chartRenderUnavailable'|'chartPreparedSummary'|'chartPreparedUnavailable'|'chartPreparedSummaryZoom'|'chartSpatialSummary'|'chartSpatialRadiusDomain'|'chartSpatialDensityLegend'|'chartSpatialPoint'|'chartSpatialBin'|'chartSpatialHidden'|'chartDataSampled'|'chartPlotSampled'|'chartZoomUnavailable'|'chartDataLabelsUnavailable'|'chartStackTotalsUnavailable'|'chartAnnotationsUnavailable'|'chart'|'chartTypeLine'|'chartTypeBar'|'chartTypeScatter'|'chartTypePie'|'chartTypeDoughnut'|'chartTypeRadar'|'chartTypePolarArea'|'chartTypeBubble'|'boxPlotSeriesSummary'|'boxPlotSummaryWithData'|'boxPlotSummaryEmpty'|'boxPlotData'|'chartSeriesLabel'|'boxPlotMin'|'boxPlotQ1'|'boxPlotMedian'|'boxPlotQ3'|'boxPlotMax'|'boxPlot'|'histogramFrequency'|'liteChartMarkSummary'|'liteChartBarLabel'|'chartValueLabel'|'chartValuePercentageLabel'|'liteChartCustomMarkSummary'|'composerLabel'|'composerPlaceholder'|'textareaLabel'|'citation'|'citationWithStatus'|'citationWithCustomLabel'|'comboboxOverflow'|'comboboxRequired'|'comboboxCreate'|'comboboxLabel'|'rename'|'previousMonth'|'nextMonth'|'chooseDate'|'date'|'dateInputMinMessage'|'dateInputMaxMessage'|'dateInputPastDisabled'|'dateInputFutureDisabled'|'dateInputInvalid'|'timeInputLabel'|'timeInputHour'|'timeInputMinute'|'timeInputSecond'|'timeInputDayPeriod'|'timeInputEmptySegment'|'timeInputOpen'|'timeInputPopup'|'timeInputNow'|'timeInputInvalid'|'timeInputMinMessage'|'timeInputMaxMessage'|'timeInputRangeMessage'|'timeInputStepMessage'|'documentPreviewEmpty'|'convertingDocument'|'conversationActionWithTitle'|'documentPreviewNotAvailable'|'documentPreviewGenericFile'|'documentPreviewTypeDocument'|'documentPreviewTypeImage'|'documentPreviewTypeEmail'|'documentPreviewTypeCalendar'|'archiveViewerEmpty'|'archiveViewerFolder'|'archiveViewerFile'|'documentPreviewTypeDataset'|'documentPreviewTypeContact'|'download'|'exportFormatMenuLabel'|'exportFailed'|'fileInputDefaultLabel'|'fileInputAccepted'|'fileInputRejected'|'fileInputFolderRejected'|'fileInputRejectedType'|'fileInputRejectedSize'|'fileInputRejectedCount'|'fileInputRejectedRead'|'fileInputRejectedLimit'|'fileInputRejectedMaxFiles'|'fileInputRejectedMaxTotalSize'|'fileInputRejectionsMore'|'elapsedMinutesSecondsTemplate'|'graphNode'|'graphLink'|'graphDiagram'|'graphTypedNode'|'graphExpandableItem'|'graphNodeFocused'|'graphSelectionCount'|'graphNodesHidden'|'graphCommunity'|'heatmapValueLabel'|'heatmapMatrixCellLabel'|'heatmapCalendarLabel'|'heatmapMatrixLabel'|'heatmapCalendarCellLabel'|'heatmapNoDataValue'|'heatmapDefaultRowLabel'|'heatmapDefaultColLabel'|'heatmapSelectedCellLabel'|'heatmapSelectedCount'|'mapResetNorth'|'heatmapProjectionLimit'|'heatmapDecorationLimit'|'funnelStagesLimit'|'funnelStagesInputLimit'|'inputLabel'|'showPassword'|'hidePassword'|'radioRequired'|'progress'|'responsivePanel'|'popover'|'details'|'breadcrumb'|'timeline'|'timelineClusterCount'|'timelineItemVariantWarning'|'timelineItemVariantBrand'|'rating'|'sliderLabel'|'feedbackPositive'|'feedbackNegative'|'feedbackReasonsLabel'|'feedbackCommentLabel'|'feedbackCommentPlaceholder'|'feedbackSubmit'|'feedbackSubmitted'|'feedbackCommentTooLong'|'feedbackSingleReasonDescription'|'colorPicker'|'mediaCardUntitledFile'|'mediaCardOpenName'|'mediaCardOpenImageAttachment'|'mediaCardOpenVideoAttachment'|'mediaCardOpenFileAttachment'|'mediaCardImageAttachment'|'mediaCardVideoAttachment'|'animatedImageDefaultAlt'|'mentionSuggestions'|'mentionResultCount'|'mentionResultPosition'|'suggestionsLabel'|'map'|'model'|'selectModel'|'modelSelectNoModels'|'modelSelectRequired'|'temperature'|'play'|'playbackPosition'|'playbackStepPosition'|'videoPlayerLabel'|'videoMute'|'videoUnmute'|'videoVolume'|'videoCaptions'|'videoCaptionsOff'|'videoPictureInPicture'|'videoExitPictureInPicture'|'videoEnterFullscreen'|'videoExitFullscreen'|'videoPlaylistLabel'|'videoPlaylistUntitled'|'videoTimeReadout'|'selectValueMissing'|'select'|'sourceListDefaultLabel'|'threadListLabel'|'threadGroupPinned'|'threadGroupToday'|'threadGroupYesterday'|'threadGroupPrevious7Days'|'threadGroupPrevious30Days'|'threadGroupArchived'|'pinConversation'|'unpinConversation'|'archiveConversation'|'unarchiveConversation'|'deleteConversation'|'searchThreads'|'threadListMatchAnnounce'|'threadListEmpty'|'agentWorkspaceLabel'|'agentWorkspaceInputLimit'|'agentWorkspaceConversation'|'agentWorkspaceDetails'|'agentWorkspaceRun'|'agentWorkspaceTools'|'agentWorkspaceRetrieval'|'agentWorkspaceGrounding'|'agentWorkspaceContext'|'agentWorkspaceEmpty'|'ragAnswerLabel'|'ragAnswerCitations'|'ragAnswerSources'|'ragAnswerRetry'|'evaluationDashboardLabel'|'evaluationDashboardRunsLabel'|'evaluationDashboardNoRuns'|'evaluationDashboardMetricUnavailable'|'approvalQueueLabel'|'approvalQueueLimit'|'approvalQueueEmpty'|'approvalQueueOpen'|'approvalQueuePendingCount'|'approvalQueuePending'|'embeddingExplorerLabel'|'embeddingExplorerEmpty'|'embeddingExplorerPoint'|'embeddingExplorerPointLimit'|'knowledgeBaseAdminLabel'|'knowledgeBaseAdminInputLimit'|'knowledgeBaseAdminSourcesTab'|'knowledgeBaseAdminIngestionTab'|'resizeDivider'|'trendUnchanged'|'statTrendIncreased'|'statTrendDecreased'|'statTrendGood'|'statTrendBad'|'statTrendAnnouncement'|'streamStalled'|'streamStallAnnounce'|'streamRecoverAnnounce'|'streamStallClearedAnnounce'|'thinkingPanelLabel'|'messagePartsLabel'|'messagePartsWindowNotice'|'messagePartError'|'messagePartRetry'|'promptQueueLabel'|'promptQueueEmpty'|'promptQueueInputLimit'|'promptQueueAttachmentLimit'|'promptQueueSendNow'|'promptQueueItemRemoved'|'selectionToolbarLabel'|'selectionAsk'|'selectionQuote'|'selectionCite'|'promptInputLabel'|'promptInputControls'|'promptInputCollectionLimit'|'promptInputSources'|'promptInputAttachments'|'promptQueueItemAttachments'|'mcpAppLabel'|'mcpAppUnavailable'|'mcpAppLoading'|'taskListLabel'|'taskListCompletedOfTotal'|'taskListStepStartedAnnounce'|'taskListStepCompletedAnnounce'|'taskListStepFailedAnnounce'|'taskListStepIncompleteAnnounce'|'activityFeedLabel'|'activityFeedCompletedSteps'|'handoffLabel'|'handoffToAgent'|'handoffFromToAgent'|'usageBadgeLabel'|'usageBadgeTokensIn'|'usageBadgeTokensOut'|'usageBadgeTokensInLabel'|'usageBadgeTokensOutLabel'|'usageBadgeTotalTokensLabel'|'usageBadgeCostLabel'|'usageBadgeLatencyLabel'|'checkpointLabel'|'checkpointRestore'|'checkpointRestoreWithContext'|'checkpointRestoring'|'checkpointConfirmPrompt'|'thoughtFor'|'thinking'|'rangeStart'|'rangeEnd'|'calloutAnnouncementWithContext'|'closeWithContext'|'closeWithTruncatedContext'|'toastContentIncomplete'|'toastOverflow'|'toolApprovalHeading'|'toolApprovalGenericTool'|'toolApprovalArgsLabel'|'confirmApproved'|'confirmDenied'|'confirmApprovedAnnounce'|'confirmDeniedAnnounce'|'deny'|'edit'|'approve'|'invalidJson'|'fieldRequired'|'fieldMustBeString'|'fieldMustBeNumber'|'fieldMustBeInteger'|'fieldMustBeBoolean'|'unsupportedFieldType'|'fieldMustBeOneOf'|'fieldMustEqual'|'schemaMustBeObject'|'schemaPropertiesMustBeFlat'|'valueMustBeSerializable'|'valueInvalid'|'matchMismatch'|'phoneInputLabel'|'phoneInputIncomplete'|'otpInputIncomplete'|'otpInputLabel'|'numberInputIncrease'|'numberInputDecrease'|'textareaCharacterCount'|'textareaCharactersRemaining'|'copyFailed'|'colorPickerSaturationBrightness'|'colorPickerSaturationBrightnessValue'|'colorPickerHue'|'colorPickerHueValue'|'colorPickerOpacity'|'colorPickerOpacityValue'|'colorPickerValueField'|'colorPickerToggleFormat'|'colorPickerEyeDropper'|'colorPickerSwatches'|'colorPickerSwatch'|'colorPickerCurrentValue'|'selectSelectedOverflow'|'iconLoadError'|'iconTooLarge'|'iconSanitizerMissing'|'paginationFirstPage'|'paginationLastPage'|'accessibleLabelSeparator'|'durationMilliseconds'|'durationSeconds'|'selectTools'|'searchToolsPlaceholder'|'useDefaultTools'|'toolSelectCustomizeHint'|'noMatchesQuery'|'toolSelectNoneAvailable'|'toolSelectSummary'|'toolCount'|'otherCategory'|'widgetFullscreenPanel'|'widgetViewGroup'|'widgetExitFullscreen'|'widgetExitFullscreenWithLabel'|'widgetExpandToFullscreen'|'widgetExpandToFullscreenWithLabel'|'menuLabel'|'pause'|'kbdEscapeVisual'|'kbdEscapeWord'|'kbdTabWord'|'kbdSpaceWord'|'kbdDeleteVisual'|'kbdDeleteWord'|'kbdHomeWord'|'kbdEndWord'|'kbdPageUpVisual'|'kbdPageUpWord'|'kbdPageDownVisual'|'kbdPageDownWord'|'kbdEnterWord'|'kbdBackspaceWord'|'kbdArrowUpWord'|'kbdArrowDownWord'|'kbdArrowLeftWord'|'kbdArrowRightWord'|'kbdPlusWord'|'kbdMinusWord'|'kbdCommandWord'|'kbdControlVisual'|'kbdControlWord'|'kbdOptionWord'|'kbdAltWord'|'kbdShiftWord'|'kbdShortcutSeparator'|'emailViewerLabel'|'emailViewerMissingParser'|'emailViewerFrom'|'emailViewerTo'|'emailViewerSubject'|'emailViewerDate'|'emailViewerAttachments'|'emailViewerUnnamedAttachment'|'emailViewerNoSubject'|'emailViewerOpenAttachment'|'emailViewerQuotedText'|'emailViewerOpenAttachmentSize'|'emailViewerEmptyBody'|'emailViewerGroupAddress'|'calendarViewerLabel'|'calendarViewerMissingParser'|'calendarViewerEmpty'|'calendarViewerNoSummary'|'pdfViewerLabel'|'pdfViewerMissingLibrary'|'qrCodeMissingLibrary'|'qrCodeGenerationFailed'|'mapMissingLibrary'|'mapStyleRequired'|'mapWebglUnavailable'|'mapInitializationFailed'|'mapLegend'|'mapScene'|'mapCloseWithLabel'|'mapSceneEmpty'|'mapSceneUnavailable'|'mapScenePartial'|'mapSceneInvalid'|'mapSceneLimit'|'mapScenePrevious'|'mapSceneNext'|'mapScenePage'|'mapSceneMarker'|'mapScenePath'|'mapSceneArc'|'mapSceneModel'|'chartMissingLibrary'|'boxPlotMissingLibrary'|'graphMissingLibrary'|'pdfViewerPageOf'|'pdfViewerPageFailed'|'pdfViewerPageHighlights'|'pdfViewerZoomIn'|'pdfViewerZoomOut'|'pdfViewerCurrentZoom'|'pdfViewerPreviousPage'|'pdfViewerNextPage'|'anchorJumped'|'anchorJumpedToPage'|'anchorNotFound'|'highlightLayerLabel'|'highlightWithLabel'|'cellHighlightWithLabel'|'highlightOfTotal'|'pageRailLabel'|'pageRailPage'|'pageRailPageHighlighted'|'spreadsheetViewerUnavailable'|'csvViewerUnavailable'|'csvViewerLabel'|'spreadsheetViewerLabel'|'knownDateDay'|'knownDateMonth'|'knownDateYear'|'skipToContent'|'tourSkip'|'tourDone'|'tourStepOf'|'emojiPickerSearchLabel'|'emojiPickerSearchPlaceholder'|'emojiPickerGridLabel'|'emojiPickerEmpty'|'emojiPickerLoadError'|'emojiPickerPeerMissing'|'emojiPickerGroupSmileysEmotion'|'emojiPickerGroupPeopleBody'|'emojiPickerGroupComponent'|'emojiPickerGroupAnimalsNature'|'emojiPickerGroupFoodDrink'|'emojiPickerGroupTravelPlaces'|'emojiPickerGroupActivities'|'emojiPickerGroupObjects'|'emojiPickerGroupSymbols'|'emojiPickerGroupFlags'|'emojiPickerGroupUnknown'|'pushToTalkRequesting'|'pushToTalkDenied'|'pushToTalkError'|'pushToTalkUnsupported'|'pushToTalkStarted'|'pushToTalkStopped'|'pushToTalkCancelled'|'pushToTalkHold'|'pushToTalkStart'|'pushToTalkStop'|'traceTree'|'traceTreeSpanStatus'|'traceTreeMetricLabel'|'spanProjectionLimit'|'agentTraceFilterLabel'|'spanKindAgent'|'spanKindLlm'|'spanKindTool'|'spanKindRetriever'|'spanKindEmbedding'|'spanKindOther'|'tokensIn'|'tokensOut'|'cost'|'duration'|'spanWaterfall'|'spanStartedAtOffset'|'rubricSubmit'|'rubricSubmitAndNext'|'rubricSkip'|'rubricKeysLimit'|'compareResponseA'|'compareResponseB'|'compareVoteLabel'|'compareVoteBetter'|'compareVoteTie'|'compareVoteBothBad'|'compareVoteRecorded'|'comparePanel'|'audioVisualizerLabel'|'audioVisualizerIdle'|'audioVisualizerListening'|'audioVisualizerThinking'|'audioVisualizerSpeaking'|'treeNodeMoved'|'fileTreeLabel'|'fileTreeDiffSummary'|'gitStatusAdded'|'gitStatusModified'|'gitStatusDeleted'|'gitStatusRenamed'|'gitStatusUntracked'|'gitStatusConflicted'|'gitStatusIgnored'|'imageViewerLabel'|'imageViewerFailedToLoad'|'imageViewerRotate'|'imageViewerFitLabel'|'imageViewerFitContain'|'imageViewerFitWidth'|'imageViewerFitActual'|'imageViewerAnnotate'|'imageViewerHighlightsLabel'|'imageViewerHighlightsLimited'|'imageViewerUnlabeledHighlight'|'imageViewerAnnotationHint'|'imageViewerAnnotationBoxPosition'|'imageViewerAnnotationAdded'|'imageViewerAnnotationCancelled'|'transcriptFeedLabel'|'transcriptFeedEmpty'|'transcriptFeedInterim'|'commitCardLabel'|'commitCardCopyHash'|'commitCardDiffSummary'|'commitCardChangedFiles'|'stackTraceLabel'|'stackTraceLimit'|'stackTraceInternalFrames'|'statusSkipped'|'testResultsLabel'|'testResultsPassed'|'testResultsFailed'|'testResultsSkipped'|'testResultsShownAnnounce'|'testResultsRunning'|'testResultsFilterLabel'|'testResultsCompleteAnnounce'|'testResultsToggleTest'|'testResultsUnnamedTest'|'envListLabel'|'envListLimit'|'envListReveal'|'envListHide'|'envListValueHidden'|'envListCopy'|'voice'|'voicePickerNoVoices'|'voicePickerRequired'|'voicePickerPreview'|'voicePickerPreviewFailed'|'voicePickerStopPreview'|'avPlayerLabel'|'avPlayerFailedToLoad'|'avPlayerTranscript'|'avPlayerTimeline'|'avPlayerPlaybackRate'|'avPlayerRateOption'|'avPlayerPosition'|'avPlayerHighlightRange'|'avPlayerHighlightAt'|'attachmentTriggerAudio'|'attachmentMenuAudio'|'browserFrameLabel'|'browserFrameUrlLabel'|'browserFrameViewOf'|'browserFrameTakeOver'|'browserFrameHandBack'|'browserFrameStop'|'browserFrameStatusIdle'|'browserFrameStatusConnecting'|'browserFrameStatusLive'|'browserFrameStatusStalled'|'browserFrameControllerAgent'|'browserFrameControllerUser'|'browserFramePingsLimit'|'notebookViewerLabel'|'notebookViewerInvalid'|'notebookViewerUnsupportedVersion'|'notebookViewerTooManyCells'|'notebookViewerInPrompt'|'notebookViewerInPromptEmpty'|'notebookViewerCodeCell'|'notebookViewerMarkdownCell'|'notebookViewerRawCell'|'notebookViewerErrorOutput'|'notebookViewerFullOutput'|'notebookViewerUnrenderedOutput'|'xmlViewerLabel'|'xmlViewerParseError'|'xmlViewerTooManyNodes'|'xmlViewerLimit'|'xmlViewerChildCount'|'xmlViewerCopyDocument'|'xmlViewerCopyNode'|'xmlViewerToggleNode'|'artifactPanelLabel'|'artifactPanelPreview'|'artifactPanelCode'|'artifactPanelPreviousVersion'|'artifactPanelNextVersion'|'artifactPanelVersionPosition'|'artifactPanelRestore'|'artifactPanelGenerating'|'resultFieldLabel'|'geojsonViewLabel'|'geojsonViewInvalid'|'geojsonViewFeatureCount'|'geojsonViewMissingMapLibrary'|'mindMapLabel'|'mindMapTopicStatus'|'mindMapLeafStatus'|'mindMapExpanded'|'mindMapCollapsed'|'mindMapNodeLimit'|'mindMapInputLimit'|'entityDegree'|'entityCommunity'|'focusInGraph'|'focusInGraphWithContext'|'untitledEntity'|'untitledCommunity'|'communityMemberCount'|'communityDrillIn'|'communityDrillInWithContext'|'selectAllSources'|'sourcePickerSelection'|'provenancePanelLabel'|'provenanceEntities'|'provenanceRelationships'|'provenanceCommunities'|'provenanceChunks'|'provenanceEmpty'|'chunkInspectorLabel'|'chunkScore'|'scoreTierHigh'|'scoreTierMedium'|'scoreTierLow'|'chunkInspectorEmpty'|'flowCanvasLabel'|'flowCanvasLayoutLimit'|'flowCanvasInputLimit'|'flowCanvasSummary'|'flowNode'|'flowEdge'|'flowEdgeWithLabel'|'flowItemAnnouncement'|'dashboardGridLabel'|'dashboardCellCollisionRejected'|'dashboardCellMoved'|'dashboardCellResized'|'flowEdgeList'|'flowNodeSelected'|'flowNodeDeselected'|'flowSelectionCleared'|'flowNodeMoved'|'flowNodeProgressLabel'|'flowConnectStarted'|'flowConnectTarget'|'flowConnectCommitted'|'flowConnectCancelled'|'zoomToFit'|'flowLockCanvas'|'flowControlsLabel'|'flowMinimapLabel'|'flowMinimapSourceUnavailable'|'flowMinimapViewport'|'flowMinimapInstructions'|'flowMinimapViewportChanged'|'nodePaletteLabel'|'nodePalettePlaceholder'|'nodePaletteEmpty'|'nodePaletteDragHint'|'nodePaletteResultCount'|'pathStripLabel'|'pathNodeStatus'|'pathRelationStatus'|'pathRelationForward'|'pathRelationReverse'|'flowInputHandle'|'flowOutputHandle'|'flowStatusWithDuration'|'flowStatusWithDetail'|'flowSourceRevealSourceNode'|'flowSourceRevealTargetNode'|'flowSourceRecordMatches'|'neighborListLabel'|'neighborRowLabel'|'neighborDirectionIn'|'neighborDirectionOut'|'neighborDirectionBoth'|'neighborExpand'|'neighborListEmpty'|'neighborSourceChoose'|'neighborSourceError'|'neighborSourceSummary'|'neighborGroupHeader'|'flowRunStatusLabel'|'flowRunSummary'|'flowRunStepStatus'|'flowRunStatusCount'|'policySummaryLabel'|'policySummaryLimit'|'policySummaryAllowCount'|'policySummaryDenyCount'|'policySummaryNeedsReviewCount'|'policySummaryStateAllow'|'policySummaryStateDeny'|'policySummaryStateNeedsReview'|'policySummaryCategoryGuardrail'|'policySummaryCategoryPermission'|'policySummaryCategoryPrivacy'|'policySummaryCategoryTool'|'policySummaryDetailLabel'|'evalDatasetLabel'|'evalDatasetAddExample'|'evalDatasetRemoveExample'|'evalDatasetImportLabel'|'evalDatasetSearchLabel'|'evalDatasetTagFilterLabel'|'evalDatasetEmpty'|'evalDatasetNoMatches'|'evalDatasetColumnInput'|'evalDatasetColumnExpectedOutput'|'evalDatasetColumnTags'|'queryBuilderLabel'|'queryBuilderEmpty'|'queryBuilderNoFields'|'queryBuilderAddCondition'|'queryBuilderRemoveCondition'|'queryBuilderRowControlName'|'queryBuilderFieldLabel'|'queryBuilderFieldPlaceholder'|'queryBuilderOperatorLabel'|'queryBuilderOperatorPlaceholder'|'queryBuilderValueLabel'|'queryBuilderValuePlaceholder'|'queryBuilderCombinatorLabel'|'queryBuilderCombinatorAnd'|'queryBuilderCombinatorOr'|'queryBuilderConditionAdded'|'queryBuilderConditionRemoved'|'queryBuilderConditionInvalid'|'queryBuilderBooleanTrue'|'queryBuilderBooleanFalse'|'queryBuilderOperatorEquals'|'queryBuilderOperatorNotEquals'|'queryBuilderOperatorGreaterThan'|'queryBuilderOperatorGreaterThanOrEqual'|'queryBuilderOperatorLessThan'|'queryBuilderOperatorLessThanOrEqual'|'queryBuilderOperatorAfter'|'queryBuilderOperatorOnOrAfter'|'queryBuilderOperatorBefore'|'queryBuilderOperatorOnOrBefore'|'queryBuilderOperatorContains'|'queryBuilderOperatorStartsWith'|'queryBuilderOperatorEndsWith'|'queryBuilderOperatorIn'|'queryBuilderOperatorNotIn'|'queryBuilderOperatorIsEmpty'|'queryBuilderOperatorIsNotEmpty'|'memoryPanelLabel'|'memoryPanelShortTermHeading'|'memoryPanelLongTermHeading'|'memoryPanelAdd'|'memoryPanelAddWithContext'|'memoryPanelAddPosition'|'memoryPanelForgetAll'|'memoryPanelConfirmAddHeading'|'memoryPanelConfirmRemoveHeading'|'memoryPanelConfirmForgetHeading'|'memoryPanelConfirmForgetBody'|'memoryPanelItemsLimit'|'graphExplorerLabel'|'graphExplorerAllTypesHidden'|'graphExplorerClearTypes'|'graphExplorerSearchPlaceholder'|'graphExplorerSearchResultsLabel'|'graphExplorerPin'|'graphExplorerUnpin'|'graphExplorerPinned'|'graphExplorerUnpinned'|'graphExplorerPinnedHeading'|'graphExplorerFindPath'|'retrievalModeVector'|'retrievalModeKeyword'|'retrievalModeHybrid'|'retrievalSearchLabel'|'retrievalModeLabel'|'retrievalFiltersLabel'|'groundingSummaryLabel'|'groundingSummaryEmpty'|'groundingSummarySupportedLabel'|'groundingSummaryUnsupportedLabel'|'groundingSummaryCoverageLabel'|'groundingSummaryConfidenceLabel'|'groundingSummaryWarningsHeading'|'groundingSummaryEvidenceHeading'|'groundingSummaryCitationsLimit'|'claimEvidenceLabel'|'claimEvidenceEmpty'|'claimEvidenceSupported'|'claimEvidencePartiallySupported'|'claimEvidenceUnsupported'|'claimEvidenceContradicted'|'claimEvidenceConfidence'|'claimEvidenceClaimsLimit'|'retrievalCompareLabel'|'retrievalCompareEmpty'|'retrievalCompareInputLimit'|'retrievalCompareResultLimit'|'retrievalCompareOverlap'|'retrievalCompareRank'|'retrievalCompareDenseScore'|'retrievalCompareSparseScore'|'retrievalCompareRerankScore'|'retrievalCompareFinalScore'|'ragEvalDashboardLabel'|'ragEvalDashboardEmpty'|'ragEvalDashboardInputLimit'|'ragEvalDashboardSlicesLimit'|'ragEvalDashboardRuns'|'ragEvalDashboardSlices'|'ragEvalDashboardAllSlices'|'ragEvalDashboardSliceUnavailable'|'ragEvalDashboardRunsLimit'|'ragEvalDashboardMetricUnavailable'|'promptStudioLabel'|'promptStudioLargeWorkspace'|'promptStudioMessages'|'promptStudioVariables'|'promptStudioVersions'|'promptStudioPreview'|'promptStudioPreviewLimit'|'promptStudioRun'|'promptStudioSave'|'promptStudioAddMessage'|'promptStudioRemoveMessage'|'promptStudioRemoveMessageNumbered'|'promptStudioMessageRole'|'promptStudioMessageContent'|'promptStudioMoveMessageUp'|'promptStudioMoveMessageDown'|'promptStudioRoleSystem'|'promptStudioRoleUser'|'promptStudioRoleAssistant'|'promptStudioRoleTool'|'schemaViewerLabel'|'schemaViewerEmpty'|'schemaViewerRequired'|'schemaViewerCircular'|'schemaViewerType'|'subagentPanelLabel'|'subagentPanelEmpty'|'subagentPanelRetry'|'subagentPanelCancelRun'|'subagentPanelRetryRun'|'toolTimelineDetailsFor'|'toolCallBlockHeaderPending'|'toolCallBlockHeaderRunning'|'toolCallBlockHeaderSuccess'|'toolCallBlockHeaderError'|'toolCallBlockHeaderDenied'|'toolCallBlockHeaderIncomplete'|'toolCallBlockArgumentsLabel'|'toolCallBlockResultLabel'|'toolCallBlockErrorLabel'|'realtimeSessionLabel'|'realtimeSessionDisconnected'|'realtimeSessionConnecting'|'realtimeSessionConnected'|'realtimeSessionReconnecting'|'realtimeSessionError'|'realtimeSessionConnect'|'realtimeSessionDisconnect'|'realtimeSessionMute'|'realtimeSessionUnmute'|'realtimeSessionInterrupt'|'realtimeSessionConnectionFailed'|'contextInspectorRedacted'|'contextInspectorTruncated'|'contextInspectorLabel'|'contextInspectorEmpty'|'contextInspectorCopyLabel'|'knowledgeBaseSyncIdle'|'knowledgeBaseSyncSyncing'|'knowledgeBaseSyncPaused'|'knowledgeBaseSyncSynced'|'knowledgeBaseSyncError'|'knowledgeBaseHealthHealthy'|'knowledgeBaseHealthDegraded'|'knowledgeBaseHealthFailed'|'knowledgeBaseHealthUnknown'|'knowledgeBasePermissionOwner'|'knowledgeBasePermissionEditor'|'knowledgeBasePermissionViewer'|'knowledgeBasePermissionRestricted'|'knowledgeBaseNeverSynced'|'knowledgeBaseSyncAction'|'knowledgeBasePauseAction'|'knowledgeBaseDeleteAction'|'knowledgeBaseNameColumn'|'knowledgeBaseSyncColumn'|'knowledgeBaseHealthColumn'|'knowledgeBasePermissionColumn'|'knowledgeBaseActionsColumn'|'knowledgeBaseTotalSources'|'knowledgeBaseSyncedSources'|'knowledgeBaseSyncingSources'|'knowledgeBaseNeedsAttention'|'knowledgeBaseHeading'|'knowledgeBaseCreateSource'|'knowledgeBaseEmptyHeading'|'ingestionStageQueued'|'ingestionStageUploading'|'ingestionStageExtracting'|'ingestionStageChunking'|'ingestionStageEmbedding'|'ingestionStageIndexing'|'ingestionStageDone'|'ingestionStageFailed'|'ingestionStageCancelled'|'ingestionStageUnknown'|'ingestionQueueLabel'|'ingestionQueueEmpty'|'ingestionActionWithContext'|'ingestionQueueActionLimit'|'documentLibraryFreshnessFresh'|'documentLibraryFreshnessAging'|'documentLibraryFreshnessStale'|'documentLibrarySelectAll'|'documentLibrarySelectColumn'|'documentLibraryTypeColumn'|'documentLibraryNameColumn'|'documentLibraryVersionColumn'|'documentLibraryOwnerColumn'|'documentLibraryOmitted'|'documentLibraryTagsColumn'|'documentLibraryFreshnessColumn'|'documentLibraryUpdatedColumn'|'documentLibraryLabel'|'documentLibraryEmptyHeading'|'documentLibraryNoMatchesHeading'|'documentLibrarySearchPlaceholder'|'documentLibraryFilterByTag'|'documentLibraryClearSelection'|'documentLibrarySelectedCount'|'documentLibraryCursorNavigation'|'documentLibraryCursorRestart'|'documentLibraryCursorEnd'|'documentLibraryCursorEmptyBatch'|'documentLibraryCursorHistoryLimit'|'documentLibraryCursorFailed'|'documentCompareNoVersion'|'documentCompareLabel'|'agentRunCurrentStepLabel'|'graphQueryHopRangeInvalid'|'graphQueryRelationshipTypeLabel'|'graphQueryNodeTypeLabel'|'graphQueryBuilderLabel'|'graphQueryStartLabel'|'graphQueryEndLabel'|'graphQueryMinHopsLabel'|'graphQueryMaxHopsLabel'|'graphQueryDirectionLabel'|'graphQueryRun'|'graphQuerySavedQueriesLabel'|'graphQuerySaveNameLabel'|'graphQuerySaveButton'|'graphQueryLoadWithContext'|'filterBarReset'|'filterBarActiveFilters'|'drilldownDocuments'|'drilldownRuns'|'drilldownEmpty'|'drilldownUntitledNode'|'evaluationRunGroundingHeading'|'evaluationRunToolTraceHeading'|'evaluationRunInputHeading'|'evaluationRunOutputHeading'|'evaluationRunLabel'|'evaluationRunProgressLabel'|'retrievalFilterChipLabel'|'retrievalSearchEmptyDescription'|'groundingSummaryEvidenceSpan'|'contextInspectorTruncatedCount'|'contextInspectorSegmentTokens'|'contextInspectorLimit'|'knowledgeBaseDocumentCount'|'knowledgeBaseRowActionsLabel'|'knowledgeBaseEmptyDescription'|'ingestionChunkCount'|'ingestionItemProgressLabel'|'ingestionEmbeddedOfTotal'|'ingestionAttemptCount'|'ingestionRetryWithContext'|'ingestionCancelWithContext'|'documentLibrarySelectDocument'|'agentRunStatusAnnounce'|'graphQueryDeleteWithContext'|'evaluationRunExampleLabel'|'evaluationRunExampleLimit'|'evaluationRunExampleStartedAnnounce'|'evaluationRunExampleCompletedAnnounce'|'evaluationRunExampleFailedAnnounce'|'evaluationRunExampleCancelledAnnounce'|'evaluationRunExampleWaitingInputAnnounce'|'evaluationRunExampleWaitingApprovalAnnounce'|'evaluationRunProgressSummary'|'evaluationRunRunningCount'|'evaluationRunFailedCount'|'evaluationRunDetailsLoadError'|'retrievalStageQueryRewrite'|'retrievalStageEmbed'|'retrievalStageRetrieve'|'retrievalStageRerank'|'retrievalStageFilter'|'statusUnknown'|'statRowsInputLimit'|'retrievalStageKindUnknown'|'retrievalShowMoreWithContext'|'retrievalShowLessWithContext'|'valueTruncated'|'retrievalTraceEvidenceToggle'|'documentCompareOldVersion'|'documentCompareNewVersion'|'agentRunStatusIdle'|'agentRunStatusQueued'|'agentRunStatusCollecting'|'agentRunStatusWaitingInput'|'agentRunStatusWaitingApproval'|'agentRunStatusDone'|'agentRunStatusCancelled'|'localePickerLabel'|'localePickerRequired'|'localePickerSearchLabel'|'localePickerEmpty'|'currencyPickerLabel'|'countryPickerLabel'|'timeZonePickerLabel'|'unitPickerLabel'|'flagLoadError'|'moveUp'|'moveDown'|'reorderMovePending'|'reorderMoveCancelled'|'reorderItemMoved'|'signaturePad'|'signaturePadLabel'|'signaturePadInstructions'|'signaturePadEmpty'|'signaturePadSigned'|'signaturePadPenDown'|'signaturePadPenUp'|'signaturePadDrawingLimit'|'mentionMoreResults'|'commandPaletteResultCount'|'dataGridRowLimit'|'dataGridToggleRow'|'dataGridFilterColumn'|'dataGridSelectPage'|'tableRowLimit'|'tableAdditionalColumns'|'tabCloseAction'|'treeLimit'|'treeSourceError'|'treeSourceSummary'|'treeDefaultLabel'|'graphNodeLimit'|'graphEdgeLimit'|'graphExplorerSearchLimit'|'streamStatusIdle'|'streamStatusConnecting'|'streamStatusStalled'|'stepperStateCompleted'|'stepperStateError'|'stepperStatePending'|'stepperStateLocked'|'stepperStateLoading'|'stepperStateDisabled'|'stepperSteps'|'stepperStepPosition'|'generationStatusTokens'|'funnelComparisonShare'|'funnelDropoffIncreased'|'funnelDropoffDecreased'|'retrievalResultsSelectRowOrdinal'|'retrievalResultsSelectionLimit'|'chunkInspectorOpenOrdinal'|'ragAnswerEmpty'|'retrievalTraceEmpty'|'retrievalTraceLabel'|'sourcePickerMatches'|'sourcePickerLimit'|'provenancePanelLimit'|'commitCardFilesLimit'|'taskListLimit'|'evalDatasetLimit'|'mapMarker'|'mapToggleAttribution'|'mapFeedback'|'threadListInputLimit'|'commandPaletteInputLimit'|'promptInputInputLimit'|'sourceSearchUnavailable'|'sourceSelectionLoading'|'sourceSelectionFailed'|'documentLibrarySelectPage'|'chartInputLimit'|'chartTableSource'|'chartTableTarget'|'chartTableValue'|'chartTableName'|'chartTotalsCaption'|'chartValuesTooSmall'|'chordPairLabel'|'sankeyCycle'|'treemapTileLabel'|'choroplethInvalidGeometry'|'histogramInputLimit'|'calendarInputLimit'|'heatmapInputLimit'|'activityFeedInputLimit'|'catalogPickerInputLimit'|'catalogPickerSearchLoadFailed'|'localePickerInputLimit'|'emojiPickerInputLimit'|'mentionInputLimit'|'transcriptFeedInputLimit'|'transcriptFeedWindowNotice'|'transcriptFeedRegion'|'spanWaterfallLimit'|'toolTimelineInputLimit'|'retrievalResultsInputLimit'|'ingestionQueueInputLimit'|'tagFacetLimit'|'codeBlockHighlightLimit'|'codeBlockHighlightedLine'|'codeBlockActiveLine'|'codeBlockToggle'|'diffViewHighlightLimit'|'diffViewLabel'|'engine3dLoading'|'engine3dUnavailable'|'engine3dUnsupported'|'engine3dContextLost'|'engine3dError'|'engine3dSoftwareRendering'|'engine3dShowingBuiltin'|'engine3dShowingList'|'modelViewerLabel'|'modelViewerAlternative'|'modelViewerInstructions'|'modelViewerReady'|'modelViewerEmpty'|'modelViewerProgress'|'modelViewerInvalid'|'modelViewerUnsupportedFormat'|'modelViewerFit'|'modelViewerRotateLeft'|'modelViewerRotateRight'|'modelViewerRotateUp'|'modelViewerRotateDown'|'modelViewerViewport'|'largeDataInvalid'|'largeDataLimit'|'mapGeolocateFindLocation'|'mapGeolocateUnavailable'|'mapGeolocatePermissionDenied'|'mapGeolocatePositionUnavailable'|'mapGeolocateTimeout'|'mapGeolocateError'|'mapGeolocateOutOfBounds'|'mapHashConflict'|'mapHashInvalid'|'mapControlUnavailable'|'mapGlobe'|'mapTerrain'|'mapScaleFeet'|'mapScaleMeters'|'mapScaleKilometers'|'mapScaleMiles'|'mapScaleNauticalMiles'|'mapFeatureStateUnavailable'|'mapPickAtCenter'|'mapCancelPick'|'mapDrawingControls'|'mapDrawAtCenter'|'mapUndoDrawing'|'mapCompleteDrawing'|'mapCancelDrawing'|'mapDrawingVertices'|'mapDrawingUnavailable'|'mapDrawingInvalidCoordinate'|'mapDrawingDuplicateVertex'|'mapDrawingVertexLimit'|'mapDrawingTooFewVertices'|'mapDrawingInvalidGeometry'|'mapExportUnavailable'|'mapDrawingVertex'|'mapDrawingEditInstructions'|'panoramaInstructions'|'panoramaHotspotsLabel'|'mapActivate'|'mapDrawingLength'|'mapDrawingArea'|'mapSquareMeters'|'mapSquareKilometers'|'chart3dLabel'|'chart3dEmpty'|'chart3dRow'|'chart3dInstructions'|'chart3dFit'|'chart3dName'|'chart3dSize'|'chart3dCategory'|'chart3dXAxis'|'chart3dYAxis'|'chart3dZAxis'|'stylePanelLabel'|'stylePanelMode'|'stylePanelModeLight'|'stylePanelModeDark'|'stylePanelModeSystem'|'stylePanelLook'|'stylePanelSurface'|'stylePanelSurfaceSolid'|'stylePanelSurfaceGlass'|'stylePanelSurfaceOpacity'|'stylePanelDensity'|'stylePanelDensityCompact'|'stylePanelDensityComfortable'|'stylePanelDensityTouch'|'stylePanelAccent'|'stylePanelReset'|'styleAccentEmerald'|'styleAccentPeridot'|'styleAccentTopaz'|'styleAccentRuby'|'styleAccentTourmaline'|'styleAccentAmethyst'|'styleAccentAquamarine'|'styleAccentSapphire'|'styleAccentHematite'|'styleLookShadcn'|'styleLookLyra'|'styleLookMaterial'|'styleLookData'|'styleLookTerminal'|'styleLookHighContrast';
30
30
  /**
31
31
  * Message-catalog input. Registration and per-instance `.strings` assignment snapshot eligible
32
32
  * own data properties; retained catalogs are immutable, so reassign or re-register to publish a