spell-ui 0.8.15 → 0.8.17

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 (285) hide show
  1. package/README-components.md +4 -2
  2. package/README-runtime.md +26 -1
  3. package/README.md +2 -1
  4. package/dist/SliderScale-DunjyaDW.js +67 -0
  5. package/dist/SliderScale-DunjyaDW.js.map +1 -0
  6. package/dist/{ThemeDraft-CyX3YA_L.js → ThemeDraft-spaNC2dD.js} +2 -2
  7. package/dist/{ThemeDraft-CyX3YA_L.js.map → ThemeDraft-spaNC2dD.js.map} +1 -1
  8. package/dist/{UIInput-B3K0w4ow.js → UIInput-8s1aiaw1.js} +2 -2
  9. package/dist/UIInput-8s1aiaw1.js.map +1 -0
  10. package/dist/{UIRuntime-DCv4sy30.js → UIRuntime-BaokNnwk.js} +900 -158
  11. package/dist/UIRuntime-BaokNnwk.js.map +1 -0
  12. package/dist/_spell-element/UIComponent.d.ts +7 -0
  13. package/dist/_spell-element/elements.types.d.ts +6 -0
  14. package/dist/_spell-element/vocabulary.types.d.ts +27 -0
  15. package/dist/_util/dom.d.ts +7 -0
  16. package/dist/components/components.es.d.ts +1 -0
  17. package/dist/components/ui-dial/DialArc.d.ts +43 -0
  18. package/dist/components/ui-dial/UIDial.d.ts +263 -0
  19. package/dist/components/ui-dial/UIDial.en.d.ts +149 -0
  20. package/dist/components/ui-dial/UIDial.es.d.ts +25 -0
  21. package/dist/components/ui-dial/UIDial.fallback.d.ts +167 -0
  22. package/dist/components/ui-dial/UIDial.types.d.ts +11 -0
  23. package/dist/components/ui-dial/index.d.ts +3 -0
  24. package/dist/components/ui-graph/UIGraph.d.ts +17 -0
  25. package/dist/components/ui-graph/UIGraph.en.d.ts +17 -0
  26. package/dist/components/ui-graph/UIGraph.es.d.ts +6 -0
  27. package/dist/components/ui-input/UIInput.d.ts +46 -3
  28. package/dist/components/ui-input/UIInput.en.d.ts +6 -1
  29. package/dist/components/ui-input/UIInput.es.d.ts +1 -0
  30. package/dist/components/ui-input/UIInput.fallback.d.ts +6 -1
  31. package/dist/components/ui-json/UIJson.d.ts +5 -4
  32. package/dist/components/ui-modal/ChoiceRows.d.ts +61 -0
  33. package/dist/components/ui-modal/ModalDialogs.d.ts +15 -1
  34. package/dist/components/ui-modal/UIModal.d.ts +6 -2
  35. package/dist/components/ui-modal/UIModal.en.d.ts +6 -2
  36. package/dist/components/ui-modal/UIModal.es.d.ts +1 -0
  37. package/dist/components/ui-page-layout/UIPageLayout.d.ts +141 -8
  38. package/dist/components/ui-page-layout/UIPageLayout.en.d.ts +51 -2
  39. package/dist/components/ui-page-layout/UIPageLayout.es.d.ts +3 -0
  40. package/dist/components/ui-property-editor/UIProperty.d.ts +2 -2
  41. package/dist/components/ui-site-links/UISiteLinks.d.ts +124 -0
  42. package/dist/components/ui-site-links/UISiteLinks.en.d.ts +60 -0
  43. package/dist/components/ui-site-links/UISiteLinks.es.d.ts +26 -0
  44. package/dist/components/ui-site-links/index.d.ts +1 -0
  45. package/dist/components/ui-site-nav-button/UISiteNavButton.d.ts +12 -5
  46. package/dist/components/ui-site-nav-button/UISiteNavButton.en.d.ts +32 -12
  47. package/dist/components/ui-site-nav-button/UISiteNavButton.es.d.ts +3 -0
  48. package/dist/components/ui-site-tabs/UISiteTabs.d.ts +13 -0
  49. package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +9 -0
  50. package/dist/components/ui-slider/SliderScale.d.ts +26 -2
  51. package/dist/components/ui-slider/UISlider.d.ts +0 -2
  52. package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
  53. package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
  54. package/dist/components/ui-toc/TocIndex.d.ts +16 -1
  55. package/dist/components/ui-toc/UIToc.d.ts +27 -3
  56. package/dist/components/ui-toc/UIToc.en.d.ts +1 -1
  57. package/dist/components/ui-toc/UIToc.types.d.ts +5 -0
  58. package/dist/components/ui-tree/UITree.d.ts +38 -2
  59. package/dist/components/ui-tree/UITree.en.d.ts +9 -0
  60. package/dist/components/ui-tree/UITree.es.d.ts +4 -0
  61. package/dist/components/ui-uploader/UIUploader.d.ts +721 -0
  62. package/dist/components/ui-uploader/UIUploader.en.d.ts +394 -0
  63. package/dist/components/ui-uploader/UIUploader.es.d.ts +112 -0
  64. package/dist/components/ui-uploader/index.d.ts +1 -0
  65. package/dist/{components.es-DilRG1VO.js → components.es-jY2nBwuP.js} +249 -65
  66. package/dist/components.es-jY2nBwuP.js.map +1 -0
  67. package/dist/core.js +605 -571
  68. package/dist/core.js.map +1 -1
  69. package/dist/docs-components/docs-components.types.d.ts +2 -0
  70. package/dist/index.d.ts +3 -0
  71. package/dist/index.js +101 -97
  72. package/dist/jsx.d.ts +1138 -21
  73. package/dist/runtime/DataTooltips.d.ts +10 -0
  74. package/dist/runtime/Modals.d.ts +7 -2
  75. package/dist/runtime/Styles.d.ts +7 -1
  76. package/dist/runtime/UIRuntime.d.ts +6 -0
  77. package/dist/runtime/runtime.types.d.ts +26 -1
  78. package/dist/sound-library/back.ogg +0 -0
  79. package/dist/sound-library/beep.ogg +0 -0
  80. package/dist/sound-library/bell.ogg +0 -0
  81. package/dist/sound-library/big-punch.ogg +0 -0
  82. package/dist/sound-library/bong.ogg +0 -0
  83. package/dist/sound-library/book-close.ogg +0 -0
  84. package/dist/sound-library/book-down.ogg +0 -0
  85. package/dist/sound-library/book-open.ogg +0 -0
  86. package/dist/sound-library/card-fan-2.ogg +0 -0
  87. package/dist/sound-library/card-fan.ogg +0 -0
  88. package/dist/sound-library/card-place-2.ogg +0 -0
  89. package/dist/sound-library/card-place-3.ogg +0 -0
  90. package/dist/sound-library/card-place.ogg +0 -0
  91. package/dist/sound-library/card-shove-2.ogg +0 -0
  92. package/dist/sound-library/card-shove.ogg +0 -0
  93. package/dist/sound-library/card-slide-2.ogg +0 -0
  94. package/dist/sound-library/card-slide-3.ogg +0 -0
  95. package/dist/sound-library/card-slide-4.ogg +0 -0
  96. package/dist/sound-library/card-slide.ogg +0 -0
  97. package/dist/sound-library/chip-down-2.ogg +0 -0
  98. package/dist/sound-library/chip-down.ogg +0 -0
  99. package/dist/sound-library/chips-collide.ogg +0 -0
  100. package/dist/sound-library/chips-handle.ogg +0 -0
  101. package/dist/sound-library/chips-stack-2.ogg +0 -0
  102. package/dist/sound-library/chips-stack.ogg +0 -0
  103. package/dist/sound-library/chop.ogg +0 -0
  104. package/dist/sound-library/click-2.ogg +0 -0
  105. package/dist/sound-library/click-3.ogg +0 -0
  106. package/dist/sound-library/click.ogg +0 -0
  107. package/dist/sound-library/close.ogg +0 -0
  108. package/dist/sound-library/cloth.ogg +0 -0
  109. package/dist/sound-library/coins-2.ogg +0 -0
  110. package/dist/sound-library/coins.ogg +0 -0
  111. package/dist/sound-library/confirm-2.ogg +0 -0
  112. package/dist/sound-library/confirm.ogg +0 -0
  113. package/dist/sound-library/creak.ogg +0 -0
  114. package/dist/sound-library/deck-open.ogg +0 -0
  115. package/dist/sound-library/deck-take-out.ogg +0 -0
  116. package/dist/sound-library/dice-grab.ogg +0 -0
  117. package/dist/sound-library/dice-shake-2.ogg +0 -0
  118. package/dist/sound-library/dice-shake.ogg +0 -0
  119. package/dist/sound-library/dice-throw-2.ogg +0 -0
  120. package/dist/sound-library/dice-throw.ogg +0 -0
  121. package/dist/sound-library/die-throw-2.ogg +0 -0
  122. package/dist/sound-library/die-throw.ogg +0 -0
  123. package/dist/sound-library/door-close.ogg +0 -0
  124. package/dist/sound-library/door-open.ogg +0 -0
  125. package/dist/sound-library/drop.ogg +0 -0
  126. package/dist/sound-library/error-2.ogg +0 -0
  127. package/dist/sound-library/error.ogg +0 -0
  128. package/dist/sound-library/fail.ogg +0 -0
  129. package/dist/sound-library/fall.ogg +0 -0
  130. package/dist/sound-library/glass-break.ogg +0 -0
  131. package/dist/sound-library/glass-clink.ogg +0 -0
  132. package/dist/sound-library/glass-tap.ogg +0 -0
  133. package/dist/sound-library/glass.ogg +0 -0
  134. package/dist/sound-library/glitch.ogg +0 -0
  135. package/dist/sound-library/grow.ogg +0 -0
  136. package/dist/sound-library/high-up.ogg +0 -0
  137. package/dist/sound-library/hover-2.ogg +0 -0
  138. package/dist/sound-library/hover.ogg +0 -0
  139. package/dist/sound-library/jingle-2.ogg +0 -0
  140. package/dist/sound-library/jingle-3.ogg +0 -0
  141. package/dist/sound-library/jingle-4.ogg +0 -0
  142. package/dist/sound-library/jingle.ogg +0 -0
  143. package/dist/sound-library/jump.ogg +0 -0
  144. package/dist/sound-library/knife-draw.ogg +0 -0
  145. package/dist/sound-library/knife-slice.ogg +0 -0
  146. package/dist/sound-library/laser-2.ogg +0 -0
  147. package/dist/sound-library/laser.ogg +0 -0
  148. package/dist/sound-library/latch.ogg +0 -0
  149. package/dist/sound-library/level-up.ogg +0 -0
  150. package/dist/sound-library/lose-2.ogg +0 -0
  151. package/dist/sound-library/lose-3.ogg +0 -0
  152. package/dist/sound-library/lose-4.ogg +0 -0
  153. package/dist/sound-library/lose.ogg +0 -0
  154. package/dist/sound-library/low-down.ogg +0 -0
  155. package/dist/sound-library/metal-clang.ogg +0 -0
  156. package/dist/sound-library/metal-click.ogg +0 -0
  157. package/dist/sound-library/metal-crash.ogg +0 -0
  158. package/dist/sound-library/metal-tap.ogg +0 -0
  159. package/dist/sound-library/mouse-click.ogg +0 -0
  160. package/dist/sound-library/mouse-release.ogg +0 -0
  161. package/dist/sound-library/open.ogg +0 -0
  162. package/dist/sound-library/orchestra-hit-2.ogg +0 -0
  163. package/dist/sound-library/orchestra-hit.ogg +0 -0
  164. package/dist/sound-library/page-turn-2.ogg +0 -0
  165. package/dist/sound-library/page-turn.ogg +0 -0
  166. package/dist/sound-library/pickaxe.ogg +0 -0
  167. package/dist/sound-library/piece-down-2.ogg +0 -0
  168. package/dist/sound-library/piece-down-3.ogg +0 -0
  169. package/dist/sound-library/piece-down.ogg +0 -0
  170. package/dist/sound-library/piece-take-2.ogg +0 -0
  171. package/dist/sound-library/piece-take.ogg +0 -0
  172. package/dist/sound-library/piece-tap-2.ogg +0 -0
  173. package/dist/sound-library/piece-tap.ogg +0 -0
  174. package/dist/sound-library/plank.ogg +0 -0
  175. package/dist/sound-library/plate.ogg +0 -0
  176. package/dist/sound-library/pluck.ogg +0 -0
  177. package/dist/sound-library/pot.ogg +0 -0
  178. package/dist/sound-library/power-up-2.ogg +0 -0
  179. package/dist/sound-library/power-up-3.ogg +0 -0
  180. package/dist/sound-library/power-up.ogg +0 -0
  181. package/dist/sound-library/punch.ogg +0 -0
  182. package/dist/sound-library/question.ogg +0 -0
  183. package/dist/sound-library/rise.ogg +0 -0
  184. package/dist/sound-library/scratch.ogg +0 -0
  185. package/dist/sound-library/scroll.ogg +0 -0
  186. package/dist/sound-library/select-2.ogg +0 -0
  187. package/dist/sound-library/select.ogg +0 -0
  188. package/dist/sound-library/shrink.ogg +0 -0
  189. package/dist/sound-library/shuffle.ogg +0 -0
  190. package/dist/sound-library/soft-thud-2.ogg +0 -0
  191. package/dist/sound-library/soft-thud.ogg +0 -0
  192. package/dist/sound-library/space-junk.ogg +0 -0
  193. package/dist/sound-library/step-2.ogg +0 -0
  194. package/dist/sound-library/step-on-carpet.ogg +0 -0
  195. package/dist/sound-library/step-on-grass.ogg +0 -0
  196. package/dist/sound-library/step-on-snow.ogg +0 -0
  197. package/dist/sound-library/step-on-stone.ogg +0 -0
  198. package/dist/sound-library/step-on-wood.ogg +0 -0
  199. package/dist/sound-library/step.ogg +0 -0
  200. package/dist/sound-library/switch-2.ogg +0 -0
  201. package/dist/sound-library/switch.ogg +0 -0
  202. package/dist/sound-library/tap-2.ogg +0 -0
  203. package/dist/sound-library/tap.ogg +0 -0
  204. package/dist/sound-library/three-tones.ogg +0 -0
  205. package/dist/sound-library/tick-2.ogg +0 -0
  206. package/dist/sound-library/tick.ogg +0 -0
  207. package/dist/sound-library/tin.ogg +0 -0
  208. package/dist/sound-library/toggle-2.ogg +0 -0
  209. package/dist/sound-library/toggle.ogg +0 -0
  210. package/dist/sound-library/two-tones.ogg +0 -0
  211. package/dist/sound-library/win-2.ogg +0 -0
  212. package/dist/sound-library/win-3.ogg +0 -0
  213. package/dist/sound-library/win-4.ogg +0 -0
  214. package/dist/sound-library/win.ogg +0 -0
  215. package/dist/sound-library/wood-thud.ogg +0 -0
  216. package/dist/sound-library/zap.ogg +0 -0
  217. package/dist/sounds/BuiltInSounds.d.ts +41 -0
  218. package/dist/sounds/index.d.ts +9 -0
  219. package/dist/sounds/sounds.types.d.ts +22 -0
  220. package/dist/ui-calendar.js +1 -1
  221. package/dist/ui-dial.editor-CjjdKi5L.js +5 -0
  222. package/dist/ui-dial.editor-CjjdKi5L.js.map +1 -0
  223. package/dist/ui-dial.js +467 -0
  224. package/dist/ui-dial.js.map +1 -0
  225. package/dist/ui-graph.js +22 -0
  226. package/dist/ui-graph.js.map +1 -1
  227. package/dist/{ui-input.editor-budoNoB0.js → ui-input.editor-D11iRgXR.js} +2 -2
  228. package/dist/ui-input.editor-D11iRgXR.js.map +1 -0
  229. package/dist/ui-input.js +84 -54
  230. package/dist/ui-input.js.map +1 -1
  231. package/dist/ui-json.js +8 -8
  232. package/dist/ui-json.js.map +1 -1
  233. package/dist/ui-modal.js +183 -97
  234. package/dist/ui-modal.js.map +1 -1
  235. package/dist/ui-page-layout.editor-IgDEveUY.js +5 -0
  236. package/dist/ui-page-layout.editor-IgDEveUY.js.map +1 -0
  237. package/dist/ui-page-layout.js +217 -72
  238. package/dist/ui-page-layout.js.map +1 -1
  239. package/dist/ui-popup.js +34 -34
  240. package/dist/ui-popup.js.map +1 -1
  241. package/dist/ui-property-editor.js +7 -4
  242. package/dist/ui-property-editor.js.map +1 -1
  243. package/dist/ui-root.js +71 -5
  244. package/dist/ui-root.js.map +1 -1
  245. package/dist/ui-search.js +1 -1
  246. package/dist/ui-section.js +97 -96
  247. package/dist/ui-section.js.map +1 -1
  248. package/dist/ui-site-links.editor-BME3sw5H.js +5 -0
  249. package/dist/ui-site-links.editor-BME3sw5H.js.map +1 -0
  250. package/dist/ui-site-links.js +150 -0
  251. package/dist/ui-site-links.js.map +1 -0
  252. package/dist/ui-site-nav-button.editor-ChY4xe1U.js +5 -0
  253. package/dist/ui-site-nav-button.editor-ChY4xe1U.js.map +1 -0
  254. package/dist/ui-site-nav-button.js +57 -18
  255. package/dist/ui-site-nav-button.js.map +1 -1
  256. package/dist/{ui-site-tabs.editor-DDvQfH6S.js → ui-site-tabs.editor-CdMIw4jw.js} +2 -2
  257. package/dist/ui-site-tabs.editor-CdMIw4jw.js.map +1 -0
  258. package/dist/ui-site-tabs.js +30 -14
  259. package/dist/ui-site-tabs.js.map +1 -1
  260. package/dist/ui-slider.js +75 -124
  261. package/dist/ui-slider.js.map +1 -1
  262. package/dist/ui-statistic.js +1 -0
  263. package/dist/ui-statistic.js.map +1 -1
  264. package/dist/ui-theme-editor.js +2 -2
  265. package/dist/{ui-theme-menu-BZYUMrHe.js → ui-theme-menu-BEBu6dyq.js} +3 -3
  266. package/dist/{ui-theme-menu-BZYUMrHe.js.map → ui-theme-menu-BEBu6dyq.js.map} +1 -1
  267. package/dist/ui-toc.js +159 -122
  268. package/dist/ui-toc.js.map +1 -1
  269. package/dist/ui-tree.js +142 -87
  270. package/dist/ui-tree.js.map +1 -1
  271. package/dist/ui-uploader.editor-DrE80KjL.js +5 -0
  272. package/dist/ui-uploader.editor-DrE80KjL.js.map +1 -0
  273. package/dist/ui-uploader.js +1442 -0
  274. package/dist/ui-uploader.js.map +1 -0
  275. package/dist/vocabulary/hooks.generated.d.ts +7 -0
  276. package/package.json +1 -1
  277. package/dist/UIInput-B3K0w4ow.js.map +0 -1
  278. package/dist/UIRuntime-DCv4sy30.js.map +0 -1
  279. package/dist/components.es-DilRG1VO.js.map +0 -1
  280. package/dist/ui-input.editor-budoNoB0.js.map +0 -1
  281. package/dist/ui-page-layout.editor-xtQW0FZk.js +0 -5
  282. package/dist/ui-page-layout.editor-xtQW0FZk.js.map +0 -1
  283. package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +0 -5
  284. package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +0 -1
  285. package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +0 -1
package/dist/ui-tree.js CHANGED
@@ -166,7 +166,7 @@ var we = {
166
166
  name: "filter",
167
167
  group: "behaviour",
168
168
  kind: "string",
169
- description: "Show only the rows whose words hold this text, whatever its case, and the rows they're inside, opened to show them. It changes no row's `open`: clearing it puts the tree back as it was. A row drawn only once its parent opens can't be found while that's closed. `appearance=\"columns\"`: it filters one column, the last one on screen as the filter starts, until it's cleared; after that column's rows, it lists the matches elsewhere in the tree, at any depth, each with the rows it's inside, and a click on one opens the path to it. From `items`, it runs each `children` function to look inside, waiting for promised ones, as opening the items would, but opens no column; it lists the first 200 matches, and stops after 100,000 rows."
169
+ description: "Show only the rows whose words hold this text, whatever its case, and the rows they're inside, opened to show them. It changes no row's `open`: clearing it puts the tree back as it was. A row drawn only once its parent opens can't be found while that's closed. `appearance=\"columns\"`: it filters one column, the last one on screen as the filter starts, until it's cleared; after that column's rows, it lists the matches elsewhere in the tree, at any depth, each with the rows it's inside; a click on one opens the path to it, as do Enter and Space, the down key going on into them from the column's last row. From `items`, it runs each `children` function to look inside, waiting for promised ones, as opening the items would, but opens no column; it lists the first 200 matches, and stops after 100,000 rows."
170
170
  },
171
171
  {
172
172
  name: "tools",
@@ -379,6 +379,11 @@ var we = {
379
379
  text: "Elsewhere in the tree",
380
380
  description: "`appearance=\"columns\"` with a `filter`: the title over the matches outside the filtered column."
381
381
  },
382
+ {
383
+ key: "matchIn",
384
+ text: "{label}, in {path}",
385
+ description: "`appearance=\"columns\"` with a `filter`: what a screen reader hears for a match elsewhere in the tree, with the rows it's inside."
386
+ },
382
387
  {
383
388
  key: "lookingElsewhere",
384
389
  text: "Looking through the tree",
@@ -394,7 +399,12 @@ var we = {
394
399
  text: "Stopped looking after {count} rows",
395
400
  description: "`appearance=\"columns\"` with a `filter`: the look through the tree went through that many rows, and stopped."
396
401
  }
397
- ]
402
+ ],
403
+ hooks: [{
404
+ name: "rowClass",
405
+ words: "give the row class of (an item)",
406
+ description: "Class names for a row drawn from `items`, which the subclass's own sheet styles; none by default. Read once, as the row is drawn."
407
+ }]
398
408
  }, Te = [
399
409
  "icon",
400
410
  "which",
@@ -587,12 +597,12 @@ var we = {
587
597
  text: "Close",
588
598
  description: "The triangle's name, open."
589
599
  }]
590
- }, De = "@layer ui.components{:host{--_ui-tree-indent:var(--ui-tree-indent,12px);--_ui-tree-row-height:var(--ui-tree-row-height,22px);--_ui-tree-gap:var(--ui-tree-gap,4px);--_ui-tree-hover-background:var(--ui-tree-hover-background,color-mix(in oklab, var(--ui-primary) 6%, transparent));--_ui-tree-selected-background:var(--ui-tree-selected-background,var(--ui-primary-background));--_ui-tree-selected-color:var(--ui-tree-selected-color,var(--ui-primary-text,var(--ui-text-color)));--_ui-tree-muted-color:var(--ui-tree-muted-color,var(--ui-text-muted));--_ui-tree-path-background:var(--ui-tree-path-background,var(--ui-background));min-width:0;color:var(--ui-text-color);cursor:var(--ui-control-cursor);overflow-anchor:none;outline:none;display:block}:host(:state(filtered-out)),:host(:state(filtering)) ::slotted(:not([label],[slot])){display:none}.tools{flex-wrap:wrap;flex:none;align-items:center;gap:4px 8px;padding:4px 8px 8px;display:flex}:host(:state(columns))>.tools{padding-inline:10px}.tool-buttons{flex-wrap:nowrap;gap:4px;min-width:0;max-width:100%;margin:-2px;padding:2px;display:flex;overflow-x:auto}.tool-buttons>ui-button{flex:none}.tools>slot{flex:12em;max-width:20em;margin-inline-start:auto;display:block}.tools ::slotted(*){box-sizing:border-box;width:100%}.empty{color:var(--_ui-tree-muted-color);padding:.5em 8px}.path{z-index:1;align-items:center;gap:var(--_ui-tree-gap);box-sizing:border-box;height:var(--_ui-tree-row-height);white-space:nowrap;background:var(--_ui-tree-path-background);backdrop-filter:blur(12px);border-block-end:1px solid var(--ui-border-color);color:var(--_ui-tree-muted-color);margin-block-end:calc(var(--_ui-tree-row-height) * -1);padding-inline:8px;display:flex;position:sticky;top:0;overflow:hidden}.path-row{text-overflow:ellipsis;flex:0 auto;min-width:1.5em;overflow:hidden}.path-row.current{min-width:0;color:var(--ui-text-color);font-weight:var(--ui-font-weight-bold)}.path-row:not(.current){cursor:pointer}.path-row.folded{flex:none;min-width:0}@media (hover:hover){.path-row:not(.current):hover{color:var(--ui-text-color);text-decoration:underline}}.separator{flex:none}.row{align-items:center;gap:var(--_ui-tree-gap);box-sizing:border-box;min-height:var(--_ui-tree-row-height);padding-inline:calc(8px + var(--_ui-tree-depth,0) * var(--_ui-tree-indent)) 8px;white-space:nowrap;display:flex}.row:hover{background:var(--_ui-tree-hover-background)}:host(:state(selected))>.row{background:var(--_ui-tree-selected-background);color:var(--_ui-tree-selected-color)}:host(:focus-visible)>.row{outline:var(--ui-focus-width) solid var(--ui-focus-color);outline-offset:calc(var(--ui-focus-width) * -1)}.toggle{color:var(--_ui-tree-muted-color);flex:0 0 12px;justify-content:center;align-self:stretch;align-items:center;display:inline-flex}:host(:state(has-items))>.row>.toggle:before{content:\"\";clip-path:polygon(20% 5%,90% 50%,20% 95%);background:currentColor;width:.62em;height:.62em;transition:rotate .1s}:host(:state(has-items)[aria-expanded=true])>.row>.toggle:before,:host(:state(open):state(has-items))>.row>.toggle:before{rotate:90deg}.icon,::slotted([slot=icon]){color:var(--_ui-tree-muted-color);--ui-icon-width:1em;--ui-icon-distance:0;flex:none;margin:0}.label{text-overflow:ellipsis;flex:0 auto;gap:.33em;min-width:0;display:flex;overflow:hidden}.words{text-overflow:ellipsis;flex:0 auto;min-width:0;overflow:hidden}.which{text-overflow:ellipsis;min-width:0;color:var(--_ui-tree-muted-color);flex:0 10 auto;overflow:hidden}.actions{align-items:center;gap:var(--_ui-tree-gap);margin-inline-start:auto;display:inline-flex}:host(:state(nav)){--_ui-tree-nav-border-color:var(--ui-tree-nav-border-color,light-dark(color-mix(in oklab, var(--ui-brown-background), var(--ui-brown) 9%),var(--ui-border-color)));--_ui-tree-nav-band-background:var(--ui-tree-nav-band-background,color-mix(in oklab, var(--ui-brown-background) 50%, light-dark(#fffdf8,var(--ui-surface))));--_ui-tree-nav-band-color:var(--ui-tree-nav-band-color,var(--ui-brown-text));--_ui-tree-nav-subheading-color:var(--ui-tree-nav-subheading-color,var(--ui-text-muted));--_ui-tree-nav-current-background:var(--ui-tree-nav-current-background,light-dark(var(--ui-primary-background),var(--ui-primary)));--_ui-tree-nav-current-color:var(--ui-tree-nav-current-color,light-dark(var(--ui-primary-text),var(--ui-primary-on)));--_ui-tree-nav-open-duration:var(--ui-tree-nav-open-duration,.32s);--_ui-tree-nav-close-duration:var(--ui-tree-nav-close-duration,.14s);--_ui-tree-nav-ease:var(--ui-tree-nav-ease,var(--ui-ease-out));--_ui-tree-indent:var(--ui-tree-indent,1em);--_ui-tree-hover-background:var(--ui-tree-hover-background,oklch(from var(--ui-text-dark) l c h / .06));line-height:1.25}:host(:state(nav))>.rows{grid-template-rows:1fr;display:grid}:host(:state(nav))>.rows.shut{grid-template-rows:0fr}:host(:state(nav))>.rows>.folded{min-height:0;overflow:hidden}:host(:state(nav))>.rows.shut>.folded{visibility:hidden}@media (prefers-reduced-motion:no-preference){:host(:state(nav))>.rows{transition:grid-template-rows var(--_ui-tree-nav-open-duration) var(--_ui-tree-nav-ease)}:host(:state(nav))>.rows.shut{transition-duration:var(--_ui-tree-nav-close-duration)}:host(:state(nav))>.rows.shut>.folded{transition:visibility 0s linear var(--_ui-tree-nav-close-duration)}:host(:state(nav))>.row>.toggle{transition:opacity .15s ease-out}:host(:state(nav):state(has-items))>.row>.toggle:before{transition:rotate .2s var(--_ui-tree-nav-ease), translate .2s var(--_ui-tree-nav-ease)}}:host(:state(nav))>.row{min-height:round(2.25em, var(--ui-grid,4px));padding-block:.25em;padding-inline:calc(.75em + var(--_ui-tree-depth,0) * var(--_ui-tree-indent)) .75em;border-radius:var(--ui-radius-m);white-space:nowrap;gap:.75em;margin-inline:.571429em;font-size:.875em;font-weight:500}:host(:state(nav))>.row:hover{color:var(--ui-text-dark)}:host(:state(nav):state(selected))>.row{background:var(--_ui-tree-nav-current-background);color:var(--_ui-tree-nav-current-color)}:host(:state(nav):state(selected))>.row .icon,:host(:state(nav):state(selected))>.row>::slotted([slot=icon]){color:inherit}:host(:state(nav):state(band))>.rows>.folded>slot{padding-block:round(.375em, var(--ui-grid,4px));display:block}:host(:state(nav)[band=subheading]:first-child){margin-block-start:calc(-1 * round(.375em, var(--ui-grid,4px)))}:host(:state(nav)[band=subheading]:last-child){margin-block-end:calc(-1 * round(.375em, var(--ui-grid,4px)))}:host(:state(nav)) .icon,:host(:state(nav)) ::slotted([slot=icon]){text-align:center;--ui-icon-width:1.25em;width:1.25em;font-size:1.05em}.count::part(label),.badge::part(label){flex:none;margin:0}:host(:state(nav))>.row>.toggle{opacity:.55;flex-basis:1em;order:99;margin-inline:auto -.25em}:host(:state(nav))>.row:hover>.toggle,:host(:state(nav):focus-visible)>.row>.toggle{opacity:1}:host(:state(nav):state(has-items))>.row>.toggle:before{clip-path:none;background:0 0;border-block-end:1.5px solid;border-inline-end:1.5px solid;width:.45em;height:.45em;translate:0 -.1em;rotate:-45deg}:host(:state(nav):state(has-items)[aria-expanded=true])>.row>.toggle:before,:host(:state(nav):state(open):state(has-items))>.row>.toggle:before{translate:0 -.2em;rotate:45deg}:host(:state(nav))>.row.heading{z-index:1;border-block-start:1px solid var(--_ui-tree-nav-border-color);background:linear-gradient(var(--_ui-tree-nav-band-background), var(--_ui-tree-nav-band-background)), var(--ui-background);min-height:2.25em;color:var(--_ui-tree-nav-band-color);font:var(--ui-font-weight-bold) .75em / 1 var(--ui-font-family);letter-spacing:.01em;text-transform:uppercase;border-radius:0;gap:.5em;margin:0;padding:.25em 1em;position:sticky;top:0}:host(:state(nav):first-child)>.row.heading{border-block-start:0}:host(:state(nav))>.row.heading>.toggle,:host(:state(nav))>.row.subheading>.toggle{font-size:1.3em}:host(:state(nav))>.row.subheading{border-block-start:1px solid color-mix(in oklab, var(--_ui-tree-nav-border-color) 60%, transparent);min-height:2em;color:var(--_ui-tree-nav-subheading-color);font:500 .6875em / 1 var(--ui-font-family-mono);letter-spacing:.12em;text-transform:uppercase;border-radius:0;gap:.5em;margin:0;padding:.25em 1em}:host(:state(nav))>.row.subheading:hover{color:var(--ui-text-dark)}:host(:state(nav))>.row.heading .count::part(label),:host(:state(nav))>.row.subheading .count::part(label){font-family:var(--ui-font-family);letter-spacing:0}:host(:state(nav))>.row.group{min-height:round(2em, var(--ui-grid,4px));color:var(--_ui-tree-nav-subheading-color);margin-block-start:round(.5em, var(--ui-grid,4px));padding-block:.25em;padding-inline:.923077em .75em;font-size:.8125em;font-weight:500}:host(:state(nav):first-child)>.row.group{margin-block-start:0}:host(:state(nav))>.row.group>.toggle{display:none}:host(:state(nav))>.row.group:hover{color:var(--ui-text-dark)}:host(:state(nav):state(band))>.row:hover{background-color:#0000}:host(:state(nav):state(band):focus-visible)>.row{outline-offset:calc(var(--ui-focus-width) * -1)}}", Oe = "@layer ui.components{:host(:state(columns)){--_ui-tree-columns-height:var(--ui-tree-columns-height,18em);height:var(--_ui-tree-columns-height);flex-direction:column;display:flex}:host(:state(columns))>.path{backdrop-filter:none;flex:none;margin-block-end:0;position:static}:host(:state(columns)),:host(:state(in-columns)){--_ui-tree-column-picked-background:var(--ui-tree-column-picked-background,color-mix(in oklab, var(--ui-text-color) 13%, transparent));--_ui-tree-column-selected-background:var(--ui-tree-column-selected-background,var(--ui-primary));--_ui-tree-column-selected-color:var(--ui-tree-column-selected-color,var(--ui-primary-on))}.columns{--_ui-tree-column-width:var(--ui-tree-column-width,14em);--_ui-tree-narrow-width:var(--ui-tree-narrow-width,2em);--_ui-tree-title-height:calc(var(--_ui-tree-row-height) + 6px);box-sizing:border-box;contain:layout;scroll-snap-type:x mandatory;flex:1 1 0;min-height:0;display:flex;overflow:auto hidden}.column{box-sizing:border-box;overflow-anchor:none;border-inline-end:1px solid var(--ui-border-color);scroll-snap-align:start;flex:none;height:100%;overflow-y:auto}.column-filler{flex:1 0 0;min-width:0}.column-filler.titled{box-sizing:border-box;height:var(--_ui-tree-title-height);border-block-end:1px solid var(--ui-border-color)}.column-edge{z-index:2;cursor:col-resize;touch-action:none;outline:none;width:7px;margin-inline-start:-4px;position:absolute;inset-block:0}.column-edge.last{margin-inline-start:-7px}.column-edge.last:after{inset-inline-start:6px}.column-edge:after{content:\"\";width:1px;position:absolute;inset-block:0;inset-inline-start:3px}.column-edge:hover:after,.column-edge:active:after{background:color-mix(in oklab, var(--ui-text-color) 30%, var(--ui-border-color));width:2px;margin-inline-start:-.5px}.column-edge:focus-visible:after{width:var(--ui-focus-width);background:var(--ui-focus-color)}.column-probe,.narrow-probe{visibility:hidden;width:var(--_ui-tree-column-width);height:0;position:absolute}.narrow-probe{width:var(--_ui-tree-narrow-width)}.detail{--_ui-tree-detail-max-width:var(--ui-tree-detail-max-width,50%);box-sizing:border-box;width:max-content;min-width:80px;max-width:var(--_ui-tree-detail-max-width);border-inline-end:1px solid var(--ui-border-color);scroll-snap-align:end;background:0 0;flex-direction:column;flex:none;height:100%;display:flex;position:relative}.detail.sized{max-width:none}.detail.sticky{--_ui-tree-detail-tint:color-mix(in oklab, var(--ui-surface) 45%, transparent);z-index:2;background:var(--ui-tree-detail-background,linear-gradient(var(--_ui-tree-detail-tint), var(--_ui-tree-detail-tint)), var(--ui-background));position:sticky;inset-inline-end:0}.detail-title{flex:none}.detail-body{box-sizing:border-box;flex:1 1 0;min-height:0;padding:8px 12px;overflow:auto}.detail-body>::slotted(*){min-width:min-content}.detail>.detail-edge{margin-inline-start:0;inset-inline:auto 0}.detail>.detail-edge:after{inset-inline:auto 0}.column-title{z-index:1;box-sizing:border-box;height:var(--_ui-tree-title-height);border-block-end:1px solid var(--ui-border-color);background:var(--ui-background);color:var(--ui-text-muted);font-size:.85em;font-weight:var(--ui-font-weight-bold);text-overflow:ellipsis;white-space:nowrap;align-items:center;padding-inline:10px;display:flex;position:sticky;top:0;overflow:hidden}:host(:state(in-columns))>.row{border-radius:var(--ui-radius-s,4px);margin-inline:4px;padding-inline:6px 4px}:host(:state(in-columns):state(open))>.row{background:var(--_ui-tree-column-picked-background)}:host(:state(in-columns):state(selected))>.row{background:var(--_ui-tree-column-selected-background);color:var(--_ui-tree-column-selected-color)}:host(:state(in-columns):state(selected))>.row .icon,:host(:state(in-columns):state(selected))>.row>::slotted([slot=icon]),:host(:state(in-columns):state(selected))>.row .which,:host(:state(in-columns):state(selected))>.row>.toggle{color:inherit}:host(:state(in-columns))>.row>.toggle{flex-basis:1em;order:99;margin-inline-start:auto}:host(:state(in-columns):not(:state(has-items)))>.row>.toggle{visibility:hidden}:host(:state(in-columns):state(has-items))>.row>.toggle:before,:host(:state(in-columns):state(open):state(has-items))>.row>.toggle:before{clip-path:none;background:0 0;border-block-end:1.5px solid;border-inline-end:1.5px solid;width:.42em;height:.42em;transition:none;rotate:-45deg}:host(:state(in-columns):state(has-items):dir(rtl))>.row>.toggle:before{rotate:45deg}:host(:state(in-columns))>.row>.actions{margin-inline-start:0}.row-count{font-variant-numeric:tabular-nums;color:var(--_ui-tree-muted-color);flex:none;margin-inline-start:auto;font-size:.85em}:host(:state(in-columns):state(selected))>.row>.row-count{color:inherit}:host(:state(in-columns))>.row>.row-count+.actions,:host(:state(in-columns))>.row>.row-count~.toggle{margin-inline-start:var(--_ui-tree-gap)}:host(:state(in-columns))>.rows{box-sizing:border-box;width:var(--_ui-tree-column-own-width);overflow-anchor:none;border-inline-end:1px solid var(--ui-border-color);scroll-snap-align:start;position:fixed;inset-block:0;inset-inline-start:var(--_ui-tree-column-start);overflow-y:auto}:host(:state(in-columns))>.rows>.folded>slot,.column>slot{padding-block:4px;display:block}:host(:state(in-columns))>.rows>.folded>.loading{position:absolute;inset:0}.column.items{grid-template-columns:auto minmax(0, var(--_tree-words-track,max-content)) minmax(0, var(--_tree-which-track,max-content)) 1fr auto auto;align-content:start;margin:0;padding:0 0 4px;list-style:none;display:grid;position:relative}.column.items:not(:has(>.column-title)){padding-block-start:4px}.column.items>.column-title{grid-column:1/-1;margin-block-end:4px}.column.items>.empty{grid-column:1/-1}.column-row,.track-probe{grid-template-columns:subgrid;box-sizing:border-box;min-height:var(--_ui-tree-row-height);border-radius:var(--ui-radius-s,4px);white-space:nowrap;outline:none;grid-column:1/-1;align-items:center;margin-inline:4px;padding-inline:6px 4px;display:grid}.column.items>.track-probe{visibility:hidden;height:0;min-height:0;overflow:hidden}.column-row:hover{background:var(--_ui-tree-hover-background)}.column-row:focus-visible{outline:var(--ui-focus-width) solid var(--ui-focus-color);outline-offset:calc(var(--ui-focus-width) * -1)}.column-row.on-path{background:var(--_ui-tree-column-picked-background)}.column-row.selected{background:var(--_ui-tree-column-selected-background);color:var(--_ui-tree-column-selected-color)}.column-row.unmatched,:host(:state(in-columns):state(unmatched))>.row{opacity:.55}.column-row.selected>.icon,.column-row.selected .which,.column-row.selected>.count{color:inherit}:is(.column-row,.track-probe)>.icon{grid-column:1;margin-inline-end:var(--_ui-tree-gap);display:inline-flex}.column-row>.label{display:contents}.column-row .words{grid-column:2}.column-row .which{grid-column:3;margin-inline-start:.33em}:is(.column-row,.track-probe)>.count{font-variant-numeric:tabular-nums;color:var(--_ui-tree-muted-color);grid-column:5;justify-self:end;margin-inline-start:var(--_ui-tree-gap);font-size:.85em}:is(.column-row,.track-probe)>.chevron{border-block-end:1.5px solid;border-inline-end:1.5px solid;grid-column:6;width:.42em;height:.42em;margin-inline:8px 4px;rotate:-45deg}.column-row>.chevron:dir(rtl){rotate:45deg}:host(:state(columns)){--_ui-tree-narrow-duration:var(--ui-duration-normal)}:host(:state(columns):state(resizing)){--_ui-tree-narrow-duration:0s}:host(:state(columns)),:host(:state(in-columns)){--_ui-tree-narrow-pill-height:8em}@media (prefers-reduced-motion:reduce){:host(:state(columns)){--_ui-tree-narrow-duration:0s}}.column,.column-edge,:host(:state(in-columns))>.rows{transition-property:width,inset-inline-start;transition-duration:var(--_ui-tree-narrow-duration,0s);transition-timing-function:ease}.column.narrow,:host(:state(in-columns))>.rows.narrow{overflow:hidden}.column.peek,:host(:state(in-columns))>.rows.peek{z-index:3;background:var(--ui-background);box-shadow:var(--ui-shadow-floating), 0 0 0 1px light-dark(#0000,oklch(100% 0 0/.08))}.column.peek{position:relative}:host(:state(in-columns))>.rows.covered{border-inline-end-color:#0000}.column-edge.narrow,.column-edge.covered,.column.narrow>.empty,.column.narrow>.track-probe,.column.narrow>.column-row:not(.on-path,.selected){display:none}.column.narrow>.column-title,:host(:state(in-columns))>.rows.narrow>.column-title{color:#0000;padding-inline:0}.column.narrow>.column-row{align-items:center;gap:var(--_ui-tree-gap);box-sizing:border-box;height:var(--_ui-tree-narrow-pill-height);writing-mode:vertical-rl;margin-inline:2px;padding:8px 0;display:flex;overflow:hidden}.column.narrow>.column-row .words{text-overflow:ellipsis;min-inline-size:0;overflow:hidden}.column.narrow>.column-row :is(.which,.count,.chevron),.column.narrow>.column-row>:is(.count,.chevron){display:none}.column.narrow>.column-row>.icon{margin:0}:host(:state(in-narrow):not(:state(open))){display:none}:host(:state(in-narrow))>.row{box-sizing:border-box;height:var(--_ui-tree-narrow-pill-height);writing-mode:vertical-rl;justify-content:start;min-height:0;margin-inline:2px;padding:8px 0;overflow:hidden}:host(:state(in-narrow))>.row>.label,:host(:state(in-narrow))>.row .words{text-overflow:ellipsis;min-inline-size:0;overflow:hidden}:host(:state(in-narrow))>.row>:is(.toggle,.row-count,.count,.badge,.actions),:host(:state(in-narrow))>.row .which{display:none}.column.items>.matches-box{grid-column:1/-1;display:block}.matches{border-block-start:1px solid var(--ui-border-color);margin-block-start:4px;padding-block:4px}.matches-title,.matches-note,.matches-loading{color:var(--_ui-tree-muted-color);padding:4px 10px;font-size:.85em}.matches-title{font-weight:var(--ui-font-weight-bold);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.matches-loading{align-items:center;gap:8px;display:flex}.match{border-radius:var(--ui-radius-s,4px);cursor:pointer;grid-template-columns:auto minmax(0,1fr);align-items:center;margin-inline:4px;padding:2px 4px 2px 6px;display:grid}.match:hover{background:var(--_ui-tree-hover-background)}.match>.icon{grid-column:1;margin-inline-end:var(--_ui-tree-gap);display:inline-flex}.match-words{min-height:var(--_ui-tree-row-height);white-space:nowrap;grid-column:2;align-items:center;display:flex;overflow:hidden}.match-words>.words{text-overflow:ellipsis;overflow:hidden}.match .which{color:var(--_ui-tree-muted-color);margin-inline-start:.33em}.match-path{color:var(--_ui-tree-muted-color);overflow-wrap:anywhere;grid-column:2;padding-block-end:2px;font-size:.85em}.column.narrow .matches,:host(:state(in-columns))>.rows.narrow .matches{display:none}}", ke = /* @__PURE__ */ z("<span class=toggle aria-hidden=true>"), Ae = /* @__PURE__ */ z("<span class=row-count>"), je = /* @__PURE__ */ z("<div><slot name=icon></slot><span class=label><slot name=label><span class=words></span></slot></span><!><!><span class=actions><slot name=actions>"), Me = /* @__PURE__ */ z("<div class=loading><ui-loader visible size=small>", 1), Ne = /* @__PURE__ */ z("<div class=empty>"), Pe = /* @__PURE__ */ z("<div class=rows role=group><div class=folded><slot></slot><!><!><!>"), Fe = /* @__PURE__ */ z("<ui-icon class=icon>", 1), Ie = /* @__PURE__ */ z("<span class=which>"), Le = /* @__PURE__ */ z("<ui-label class=count size=mini appearance=circular>", 1), Re = /* @__PURE__ */ z("<ui-label class=badge size=mini color=yellow appearance=basic>", 1), ze = /* @__PURE__ */ z("<div class=column-title aria-hidden=true>"), Be, Ve, He, Ue, We, Ge, Ke, qe, Je, Ye, Xe, Ze, Qe, $e, et, tt, nt, rt, it, at, V, H, ot, st, ct, lt, ut, dt, U, W, G = class _UITreeItem extends (V = l, at = [ne], it = [re], rt = [b("open"), y("open")], nt = [T], tt = [T], et = [T], $e = [b("in-columns")], Qe = [b("in-narrow")], Ze = [b("nav"), T], Xe = [b("band")], Ye = [T, b("filtered-out")], Je = [T, b("unmatched")], qe = [T], Ke = [E({ childList: !0 })], Ge = [b("has-items")], We = [g("expanded")], Ue = [g("selected")], He = [g("level")], Ve = [oe], Be = [C("selected", { defer: !0 })], V) {
600
+ }, De = "@layer ui.components{:host{--_ui-tree-indent:var(--ui-tree-indent,12px);--_ui-tree-row-height:var(--ui-tree-row-height,22px);--_ui-tree-gap:var(--ui-tree-gap,4px);--_ui-tree-hover-background:var(--ui-tree-hover-background,color-mix(in oklab, var(--ui-primary) 6%, transparent));--_ui-tree-selected-background:var(--ui-tree-selected-background,var(--ui-primary-background));--_ui-tree-selected-color:var(--ui-tree-selected-color,var(--ui-primary-text,var(--ui-text-color)));--_ui-tree-muted-color:var(--ui-tree-muted-color,var(--ui-text-muted));--_ui-tree-path-background:var(--ui-tree-path-background,var(--ui-background));min-width:0;color:var(--ui-text-color);cursor:var(--ui-control-cursor);overflow-anchor:none;outline:none;display:block}:host(:state(filtered-out)),:host(:state(filtering)) ::slotted(:not([label],[slot])){display:none}.tools{flex-wrap:wrap;flex:none;align-items:center;gap:4px 8px;padding:4px 8px 8px;display:flex}:host(:state(columns))>.tools{padding-inline:10px}.tool-buttons{flex-wrap:nowrap;gap:4px;min-width:0;max-width:100%;margin:-2px;padding:2px;display:flex;overflow-x:auto}.tool-buttons>ui-button{flex:none}.tools>slot{flex:12em;max-width:20em;margin-inline-start:auto;display:block}.tools ::slotted(*){box-sizing:border-box;width:100%}.empty{color:var(--_ui-tree-muted-color);padding:.5em 8px}.path{z-index:1;align-items:center;gap:var(--_ui-tree-gap);box-sizing:border-box;height:var(--_ui-tree-row-height);white-space:nowrap;background:var(--_ui-tree-path-background);backdrop-filter:blur(12px);border-block-end:1px solid var(--ui-border-color);color:var(--_ui-tree-muted-color);margin-block-end:calc(var(--_ui-tree-row-height) * -1);padding-inline:8px;display:flex;position:sticky;top:0;overflow:hidden}.path-row{text-overflow:ellipsis;flex:0 auto;min-width:1.5em;overflow:hidden}.path-row.current{min-width:0;color:var(--ui-text-color);font-weight:var(--ui-font-weight-bold)}.path-row:not(.current){cursor:pointer}.path-row.folded{flex:none;min-width:0}@media (hover:hover){.path-row:not(.current):hover{color:var(--ui-text-color);text-decoration:underline}}.separator{flex:none}.row{align-items:center;gap:var(--_ui-tree-gap);box-sizing:border-box;min-height:var(--_ui-tree-row-height);padding-inline:calc(8px + var(--_ui-tree-depth,0) * var(--_ui-tree-indent)) 8px;white-space:nowrap;display:flex}.row:hover{background:var(--_ui-tree-hover-background)}:host(:state(selected))>.row{background:var(--_ui-tree-selected-background);color:var(--_ui-tree-selected-color)}:host(:focus-visible)>.row{outline:var(--ui-focus-width) solid var(--ui-focus-color);outline-offset:calc(var(--ui-focus-width) * -1)}.toggle{color:var(--_ui-tree-muted-color);flex:0 0 12px;justify-content:center;align-self:stretch;align-items:center;display:inline-flex}:host(:state(has-items))>.row>.toggle:before{content:\"\";clip-path:polygon(20% 5%,90% 50%,20% 95%);background:currentColor;width:.62em;height:.62em;transition:rotate .1s}:host(:state(has-items)[aria-expanded=true])>.row>.toggle:before,:host(:state(open):state(has-items))>.row>.toggle:before{rotate:90deg}.icon,::slotted([slot=icon]){color:var(--_ui-tree-muted-color);--ui-icon-width:1em;--ui-icon-distance:0;flex:none;margin:0}.label{text-overflow:ellipsis;flex:0 auto;gap:.33em;min-width:0;display:flex;overflow:hidden}.words{text-overflow:ellipsis;flex:0 auto;min-width:0;overflow:hidden}.which{text-overflow:ellipsis;min-width:0;color:var(--_ui-tree-muted-color);flex:0 10 auto;overflow:hidden}.actions{align-items:center;gap:var(--_ui-tree-gap);margin-inline-start:auto;display:inline-flex}:host(:state(nav)){--_ui-tree-nav-border-color:var(--ui-tree-nav-border-color,light-dark(color-mix(in oklab, var(--ui-brown-background), var(--ui-brown) 9%),var(--ui-border-color)));--_ui-tree-nav-band-background:var(--ui-tree-nav-band-background,color-mix(in oklab, var(--ui-brown-background) 50%, light-dark(#fffdf8,var(--ui-surface))));--_ui-tree-nav-band-color:var(--ui-tree-nav-band-color,var(--ui-brown-text));--_ui-tree-nav-subheading-color:var(--ui-tree-nav-subheading-color,var(--ui-text-muted));--_ui-tree-nav-current-background:var(--ui-tree-nav-current-background,light-dark(var(--ui-primary-background),var(--ui-primary)));--_ui-tree-nav-current-color:var(--ui-tree-nav-current-color,light-dark(var(--ui-primary-text),var(--ui-primary-on)));--_ui-tree-nav-open-duration:var(--ui-tree-nav-open-duration,.32s);--_ui-tree-nav-close-duration:var(--ui-tree-nav-close-duration,.14s);--_ui-tree-nav-ease:var(--ui-tree-nav-ease,var(--ui-ease-out));--_ui-tree-indent:var(--ui-tree-indent,1em);--_ui-tree-hover-background:var(--ui-tree-hover-background,oklch(from var(--ui-text-dark) l c h / .06));line-height:1.25}:host(:state(nav))>.rows{grid-template-rows:1fr;display:grid}:host(:state(nav))>.rows.shut{grid-template-rows:0fr}:host(:state(nav))>.rows>.folded{min-height:0;overflow:hidden}:host(:state(nav))>.rows.shut>.folded{visibility:hidden}@media (prefers-reduced-motion:no-preference){:host(:state(nav))>.rows{transition:grid-template-rows var(--_ui-tree-nav-open-duration) var(--_ui-tree-nav-ease)}:host(:state(nav))>.rows.shut{transition-duration:var(--_ui-tree-nav-close-duration)}:host(:state(nav))>.rows.shut>.folded{transition:visibility 0s linear var(--_ui-tree-nav-close-duration)}:host(:state(nav))>.row>.toggle{transition:opacity .15s ease-out}:host(:state(nav):state(has-items))>.row>.toggle:before{transition:rotate .2s var(--_ui-tree-nav-ease), translate .2s var(--_ui-tree-nav-ease)}}:host(:state(nav))>.row{min-height:round(2.25em, var(--ui-grid,4px));padding-block:.25em;padding-inline:calc(.75em + var(--_ui-tree-depth,0) * var(--_ui-tree-indent)) .75em;border-radius:var(--ui-radius-m);white-space:nowrap;gap:.75em;margin-inline:.571429em;font-size:.875em;font-weight:500}:host(:state(nav))>.row:hover{color:var(--ui-text-dark)}:host(:state(nav):state(selected))>.row{background:var(--_ui-tree-nav-current-background);color:var(--_ui-tree-nav-current-color)}:host(:state(nav):state(selected))>.row .icon,:host(:state(nav):state(selected))>.row>::slotted([slot=icon]){color:inherit}:host(:state(nav):state(band))>.rows>.folded>slot{padding-block:round(.375em, var(--ui-grid,4px));display:block}:host(:state(nav)[band=subheading]:first-child){margin-block-start:calc(-1 * round(.375em, var(--ui-grid,4px)))}:host(:state(nav)[band=subheading]:last-child){margin-block-end:calc(-1 * round(.375em, var(--ui-grid,4px)))}:host(:state(nav)) .icon,:host(:state(nav)) ::slotted([slot=icon]){text-align:center;--ui-icon-width:1.25em;width:1.25em;font-size:1.05em}.count::part(label),.badge::part(label){flex:none;margin:0}:host(:state(nav))>.row>.toggle{opacity:.55;flex-basis:1em;order:99;margin-inline:auto -.25em}:host(:state(nav))>.row:hover>.toggle,:host(:state(nav):focus-visible)>.row>.toggle{opacity:1}:host(:state(nav):state(has-items))>.row>.toggle:before{clip-path:none;background:0 0;border-block-end:1.5px solid;border-inline-end:1.5px solid;width:.45em;height:.45em;translate:0 -.1em;rotate:-45deg}:host(:state(nav):state(has-items)[aria-expanded=true])>.row>.toggle:before,:host(:state(nav):state(open):state(has-items))>.row>.toggle:before{translate:0 -.2em;rotate:45deg}:host(:state(nav))>.row.heading{z-index:1;border-block-start:1px solid var(--_ui-tree-nav-border-color);background:linear-gradient(var(--_ui-tree-nav-band-background), var(--_ui-tree-nav-band-background)), var(--ui-background);min-height:2.25em;color:var(--_ui-tree-nav-band-color);font:var(--ui-font-weight-bold) .75em / 1 var(--ui-font-family);letter-spacing:.01em;text-transform:uppercase;border-radius:0;gap:.5em;margin:0;padding:.25em 1em;position:sticky;top:0}:host(:state(nav):first-child)>.row.heading{border-block-start:0}:host(:state(nav))>.row.heading>.toggle,:host(:state(nav))>.row.subheading>.toggle{font-size:1.3em}:host(:state(nav))>.row.subheading{border-block-start:1px solid color-mix(in oklab, var(--_ui-tree-nav-border-color) 60%, transparent);min-height:2em;color:var(--_ui-tree-nav-subheading-color);font:500 .6875em / 1 var(--ui-font-family-mono);letter-spacing:.12em;text-transform:uppercase;border-radius:0;gap:.5em;margin:0;padding:.25em 1em}:host(:state(nav))>.row.subheading:hover{color:var(--ui-text-dark)}:host(:state(nav))>.row.heading .count::part(label),:host(:state(nav))>.row.subheading .count::part(label){font-family:var(--ui-font-family);letter-spacing:0}:host(:state(nav))>.row.group{min-height:round(2em, var(--ui-grid,4px));color:var(--_ui-tree-nav-subheading-color);margin-block-start:round(.5em, var(--ui-grid,4px));padding-block:.25em;padding-inline:.923077em .75em;font-size:.8125em;font-weight:500}:host(:state(nav):first-child)>.row.group{margin-block-start:0}:host(:state(nav))>.row.group>.toggle{display:none}:host(:state(nav))>.row.group:hover{color:var(--ui-text-dark)}:host(:state(nav):state(band))>.row:hover{background-color:#0000}:host(:state(nav):state(band):focus-visible)>.row{outline-offset:calc(var(--ui-focus-width) * -1)}}", Oe = "@layer ui.components{:host(:state(columns)){--_ui-tree-columns-height:var(--ui-tree-columns-height,18em);height:var(--_ui-tree-columns-height);flex-direction:column;display:flex}:host(:state(columns))>.path{backdrop-filter:none;flex:none;margin-block-end:0;position:static}:host(:state(columns)),:host(:state(in-columns)){--_ui-tree-column-picked-background:var(--ui-tree-column-picked-background,color-mix(in oklab, var(--ui-text-color) 13%, transparent));--_ui-tree-column-selected-background:var(--ui-tree-column-selected-background,var(--ui-primary));--_ui-tree-column-selected-color:var(--ui-tree-column-selected-color,var(--ui-primary-on))}.columns{--_ui-tree-column-width:var(--ui-tree-column-width,14em);--_ui-tree-narrow-width:var(--ui-tree-narrow-width,2em);--_ui-tree-title-height:calc(var(--_ui-tree-row-height) + 6px);box-sizing:border-box;contain:layout;scroll-snap-type:x mandatory;flex:1 1 0;min-height:0;display:flex;overflow:auto hidden}.column{box-sizing:border-box;overflow-anchor:none;border-inline-end:1px solid var(--ui-border-color);scroll-snap-align:start;flex:none;height:100%;overflow-y:auto}.column-filler{flex:1 0 0;min-width:0}.column-filler.titled{box-sizing:border-box;height:var(--_ui-tree-title-height);border-block-end:1px solid var(--ui-border-color)}.column-edge{z-index:2;cursor:col-resize;touch-action:none;outline:none;width:7px;margin-inline-start:-4px;position:absolute;inset-block:0}.column-edge.last{margin-inline-start:-7px}.column-edge.last:after{inset-inline-start:6px}.column-edge:after{content:\"\";width:1px;position:absolute;inset-block:0;inset-inline-start:3px}.column-edge:hover:after,.column-edge:active:after{background:color-mix(in oklab, var(--ui-text-color) 30%, var(--ui-border-color));width:2px;margin-inline-start:-.5px}.column-edge:focus-visible:after{width:var(--ui-focus-width);background:var(--ui-focus-color)}.column-probe,.narrow-probe{visibility:hidden;width:var(--_ui-tree-column-width);height:0;position:absolute}.narrow-probe{width:var(--_ui-tree-narrow-width)}.detail{--_ui-tree-detail-max-width:var(--ui-tree-detail-max-width,50%);box-sizing:border-box;width:max-content;min-width:80px;max-width:var(--_ui-tree-detail-max-width);border-inline-end:1px solid var(--ui-border-color);scroll-snap-align:end;background:0 0;flex-direction:column;flex:none;height:100%;display:flex;position:relative}.detail.sized{max-width:none}.detail.sticky{--_ui-tree-detail-tint:color-mix(in oklab, var(--ui-surface) 45%, transparent);z-index:2;background:var(--ui-tree-detail-background,linear-gradient(var(--_ui-tree-detail-tint), var(--_ui-tree-detail-tint)), var(--ui-background));position:sticky;inset-inline-end:0}.detail-title{flex:none}.detail-body{box-sizing:border-box;flex:1 1 0;min-height:0;padding:8px 12px;overflow:auto}.detail-body>::slotted(*){min-width:min-content}.detail>.detail-edge{margin-inline-start:0;inset-inline:auto 0}.detail>.detail-edge:after{inset-inline:auto 0}.column-title{z-index:1;box-sizing:border-box;height:var(--_ui-tree-title-height);border-block-end:1px solid var(--ui-border-color);background:var(--ui-background);color:var(--ui-text-muted);font-size:.85em;font-weight:var(--ui-font-weight-bold);text-overflow:ellipsis;white-space:nowrap;align-items:center;padding-inline:10px;display:flex;position:sticky;top:0;overflow:hidden}:host(:state(in-columns))>.row{border-radius:var(--ui-radius-s,4px);margin-inline:4px;padding-inline:6px 4px}:host(:state(in-columns):state(open))>.row{background:var(--_ui-tree-column-picked-background)}:host(:state(in-columns):state(selected))>.row{background:var(--_ui-tree-column-selected-background);color:var(--_ui-tree-column-selected-color)}:host(:state(in-columns):state(selected))>.row .icon,:host(:state(in-columns):state(selected))>.row>::slotted([slot=icon]),:host(:state(in-columns):state(selected))>.row .which,:host(:state(in-columns):state(selected))>.row>.toggle{color:inherit}:host(:state(in-columns))>.row>.toggle{flex-basis:1em;order:99;margin-inline-start:auto}:host(:state(in-columns):not(:state(has-items)))>.row>.toggle{visibility:hidden}:host(:state(in-columns):state(has-items))>.row>.toggle:before,:host(:state(in-columns):state(open):state(has-items))>.row>.toggle:before{clip-path:none;background:0 0;border-block-end:1.5px solid;border-inline-end:1.5px solid;width:.42em;height:.42em;transition:none;rotate:-45deg}:host(:state(in-columns):state(has-items):dir(rtl))>.row>.toggle:before{rotate:45deg}:host(:state(in-columns))>.row>.actions{margin-inline-start:0}.row-count{font-variant-numeric:tabular-nums;color:var(--_ui-tree-muted-color);flex:none;margin-inline-start:auto;font-size:.85em}:host(:state(in-columns):state(selected))>.row>.row-count{color:inherit}:host(:state(in-columns))>.row>.row-count+.actions,:host(:state(in-columns))>.row>.row-count~.toggle{margin-inline-start:var(--_ui-tree-gap)}:host(:state(in-columns))>.rows{box-sizing:border-box;width:var(--_ui-tree-column-own-width);overflow-anchor:none;border-inline-end:1px solid var(--ui-border-color);scroll-snap-align:start;position:fixed;inset-block:0;inset-inline-start:var(--_ui-tree-column-start);overflow-y:auto}:host(:state(in-columns))>.rows>.folded>slot,.column>slot{padding-block:4px;display:block}:host(:state(in-columns))>.rows>.folded>.loading{position:absolute;inset:0}.column.items{grid-template-columns:auto minmax(0, var(--_tree-words-track,max-content)) minmax(0, var(--_tree-which-track,max-content)) 1fr auto auto;align-content:start;margin:0;padding:0 0 4px;list-style:none;display:grid;position:relative}.column.items:not(:has(>.column-title)){padding-block-start:4px}.column.items>.column-title{grid-column:1/-1;margin-block-end:4px}.column.items>.empty{grid-column:1/-1}.column-row,.track-probe{grid-template-columns:subgrid;box-sizing:border-box;min-height:var(--_ui-tree-row-height);border-radius:var(--ui-radius-s,4px);white-space:nowrap;outline:none;grid-column:1/-1;align-items:center;margin-inline:4px;padding-inline:6px 4px;display:grid}.column.items>.track-probe{visibility:hidden;height:0;min-height:0;overflow:hidden}.column-row:hover{background:var(--_ui-tree-hover-background)}.column-row:focus-visible{outline:var(--ui-focus-width) solid var(--ui-focus-color);outline-offset:calc(var(--ui-focus-width) * -1)}.column-row.on-path{background:var(--_ui-tree-column-picked-background)}.column-row.selected{background:var(--_ui-tree-column-selected-background);color:var(--_ui-tree-column-selected-color)}.column-row.unmatched,:host(:state(in-columns):state(unmatched))>.row{opacity:.55}.column-row.selected>.icon,.column-row.selected .which,.column-row.selected>.count{color:inherit}:is(.column-row,.track-probe)>.icon{grid-column:1;margin-inline-end:var(--_ui-tree-gap);display:inline-flex}.column-row>.label{display:contents}.column-row .words{grid-column:2}.column-row .which{grid-column:3;margin-inline-start:.33em}:is(.column-row,.track-probe)>.count{font-variant-numeric:tabular-nums;color:var(--_ui-tree-muted-color);grid-column:5;justify-self:end;margin-inline-start:var(--_ui-tree-gap);font-size:.85em}:is(.column-row,.track-probe)>.chevron{border-block-end:1.5px solid;border-inline-end:1.5px solid;grid-column:6;width:.42em;height:.42em;margin-inline:8px 4px;rotate:-45deg}.column-row>.chevron:dir(rtl){rotate:45deg}:host(:state(columns)){--_ui-tree-narrow-duration:var(--ui-duration-normal)}:host(:state(columns):state(resizing)){--_ui-tree-narrow-duration:0s}:host(:state(columns)),:host(:state(in-columns)){--_ui-tree-narrow-pill-height:8em}@media (prefers-reduced-motion:reduce){:host(:state(columns)){--_ui-tree-narrow-duration:0s}}.column,.column-edge,:host(:state(in-columns))>.rows{transition-property:width,inset-inline-start;transition-duration:var(--_ui-tree-narrow-duration,0s);transition-timing-function:ease}.column.narrow,:host(:state(in-columns))>.rows.narrow{overflow:hidden}.column.peek,:host(:state(in-columns))>.rows.peek{z-index:3;background:var(--ui-background);box-shadow:var(--ui-shadow-floating), 0 0 0 1px light-dark(#0000,oklch(100% 0 0/.08))}.column.peek{position:relative}:host(:state(in-columns))>.rows.covered{border-inline-end-color:#0000}.column-edge.narrow,.column-edge.covered,.column.narrow>.empty,.column.narrow>.track-probe,.column.narrow>.column-row:not(.on-path,.selected){display:none}.column.narrow>.column-title,:host(:state(in-columns))>.rows.narrow>.column-title{color:#0000;padding-inline:0}.column.narrow>.column-row{align-items:center;gap:var(--_ui-tree-gap);box-sizing:border-box;height:var(--_ui-tree-narrow-pill-height);writing-mode:vertical-rl;margin-inline:2px;padding:8px 0;display:flex;overflow:hidden}.column.narrow>.column-row .words{text-overflow:ellipsis;min-inline-size:0;overflow:hidden}.column.narrow>.column-row :is(.which,.count,.chevron),.column.narrow>.column-row>:is(.count,.chevron){display:none}.column.narrow>.column-row>.icon{margin:0}:host(:state(in-narrow):not(:state(open))){display:none}:host(:state(in-narrow))>.row{box-sizing:border-box;height:var(--_ui-tree-narrow-pill-height);writing-mode:vertical-rl;justify-content:start;min-height:0;margin-inline:2px;padding:8px 0;overflow:hidden}:host(:state(in-narrow))>.row>.label,:host(:state(in-narrow))>.row .words{text-overflow:ellipsis;min-inline-size:0;overflow:hidden}:host(:state(in-narrow))>.row>:is(.toggle,.row-count,.count,.badge,.actions),:host(:state(in-narrow))>.row .which{display:none}.column.items>.matches-box{grid-column:1/-1;display:block}.matches{border-block-start:1px solid var(--ui-border-color);margin-block-start:4px;padding-block:4px}.matches-title,.matches-note,.matches-loading{color:var(--_ui-tree-muted-color);padding:4px 10px;font-size:.85em}.matches-title{font-weight:var(--ui-font-weight-bold);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.matches-loading{align-items:center;gap:8px;display:flex}.match{border-radius:var(--ui-radius-s,4px);cursor:pointer;grid-template-columns:auto minmax(0,1fr);align-items:center;margin-inline:4px;padding:2px 4px 2px 6px;display:grid}.match:hover{background:var(--_ui-tree-hover-background)}.match>.icon{grid-column:1;margin-inline-end:var(--_ui-tree-gap);display:inline-flex}.match-words{min-height:var(--_ui-tree-row-height);white-space:nowrap;grid-column:2;align-items:center;display:flex;overflow:hidden}.match-words>.words{text-overflow:ellipsis;overflow:hidden}.match .which{color:var(--_ui-tree-muted-color);margin-inline-start:.33em}.match-path{color:var(--_ui-tree-muted-color);overflow-wrap:anywhere;grid-column:2;padding-block-end:2px;font-size:.85em}.column.narrow .matches,:host(:state(in-columns))>.rows.narrow .matches{display:none}}", ke = /* @__PURE__ */ z("<span class=toggle aria-hidden=true>"), Ae = /* @__PURE__ */ z("<span class=row-count>"), je = /* @__PURE__ */ z("<div><slot name=icon></slot><span class=label><slot name=label><span class=words></span></slot></span><!><!><span class=actions><slot name=actions>"), Me = /* @__PURE__ */ z("<div class=loading><ui-loader visible size=small>", 1), Ne = /* @__PURE__ */ z("<div class=empty>"), Pe = /* @__PURE__ */ z("<div class=rows role=group><div class=folded><slot></slot><!><!><!>"), Fe = /* @__PURE__ */ z("<ui-icon class=icon>", 1), Ie = /* @__PURE__ */ z("<span class=which>"), Le = /* @__PURE__ */ z("<ui-label class=count size=mini appearance=circular>", 1), Re = /* @__PURE__ */ z("<ui-label class=badge size=mini color=yellow appearance=basic>", 1), ze = /* @__PURE__ */ z("<div class=column-title aria-hidden=true>"), Be, Ve, He, Ue, We, Ge, Ke, qe, Je, Ye, Xe, Ze, Qe, $e, et, tt, nt, rt, it, at, V, H, ot, st, ct, lt, ut, dt, ft, U, W = class _UITreeItem extends (V = l, at = [ne], it = [re], rt = [b("open"), y("open")], nt = [T], tt = [T], et = [T], $e = [b("in-columns")], Qe = [b("in-narrow")], Ze = [b("nav"), T], Xe = [b("band")], Ye = [T, b("filtered-out")], Je = [T, b("unmatched")], qe = [T], Ke = [E({ childList: !0 })], Ge = [b("has-items")], We = [g("expanded")], Ue = [g("selected")], He = [g("level")], Ve = [oe], Be = [C("selected", { defer: !0 })], V) {
591
601
  constructor() {
592
602
  super(...arguments), p(H, 5, this), w(this, ot, p(H, 8, this, !1)), p(H, 11, this), r(this, "disclosure", new t({
593
603
  component: this,
594
604
  member: "isOpen"
595
- })), w(this, st, p(H, 12, this, 0)), p(H, 15, this), w(this, ct, p(H, 16, this, 0)), p(H, 19, this), w(this, lt, p(H, 20, this)), p(H, 23, this), w(this, ut, p(H, 24, this, !1)), p(H, 27, this), w(this, dt, p(H, 28, this, !1)), p(H, 31, this), w(this, U, p(H, 32, this, !1)), p(H, 35, this), w(this, W, p(H, 36, this, !1)), p(H, 39, this), r(this, "onToggleClicked", p(H, 48, this, /* @__PURE__ */ i((e) => {
605
+ })), w(this, st, p(H, 12, this, 0)), p(H, 15, this), w(this, ct, p(H, 16, this, 0)), p(H, 19, this), w(this, lt, p(H, 20, this)), p(H, 23, this), w(this, ut, p(H, 24, this, !1)), p(H, 27, this), w(this, dt, p(H, 28, this, !1)), p(H, 31, this), w(this, ft, p(H, 32, this, !1)), p(H, 35, this), w(this, U, p(H, 36, this, !1)), p(H, 39, this), r(this, "onToggleClicked", p(H, 48, this, /* @__PURE__ */ i((e) => {
596
606
  this.canOpen && !this.isInColumns && (e.stopPropagation(), this.disclosure.toggle(e));
597
607
  }, "onToggleClicked"))), p(H, 51, this);
598
608
  }
@@ -810,14 +820,14 @@ var we = {
810
820
  onConnect() {
811
821
  super.onConnect();
812
822
  let e = 0, t = 0, n = this.domElement.parentElement;
813
- for (; n && n.localName === this.domElement.localName; n = n.parentElement) e++, n.hasAttribute(pt) || t++;
814
- this.depth = e, this.indent = t, this.isInNav = n?.getAttribute("appearance") === ft, this.treeElement = n || void 0, h(() => this.tree?.rowConnected());
823
+ for (; n && n.localName === this.domElement.localName; n = n.parentElement) e++, n.hasAttribute(mt) || t++;
824
+ this.depth = e, this.indent = t, this.isInNav = n?.getAttribute("appearance") === pt, this.treeElement = n || void 0, h(() => this.tree?.rowConnected());
815
825
  }
816
826
  onSelectedChanged(e) {
817
827
  e && ie(this.domElement);
818
828
  }
819
829
  };
820
- H = n(V), ot = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), u(H, 4, "isOpen", rt, G, ot), u(H, 4, "depth", nt, G, st), u(H, 4, "indent", tt, G, ct), u(H, 4, "treeElement", et, G, lt), u(H, 2, "isInColumns", $e, G), u(H, 2, "isInNarrowColumn", Qe, G), u(H, 4, "isInNav", Ze, G, ut), u(H, 2, "isBand", Xe, G), u(H, 4, "isFilteredOut", Ye, G, dt), u(H, 4, "isUnmatched", Je, G, U), u(H, 4, "isKeptOpen", qe, G, W), u(H, 2, "rowCount", Ke, G), u(H, 2, "canOpen", Ge, G), u(H, 2, "ariaOpen", We, G), u(H, 2, "ariaIsSelected", Ue, G), u(H, 2, "ariaDepth", He, G), u(H, 1, "onSelectedChanged", Be, G), u(H, 13, "vocabulary", at, G), u(H, 13, "elementSetup", it, G), u(H, 5, "onToggleClicked", Ve, G), f(H, G), i(G, "UITreeItem"), r(G, "vocabulary", p(H, 40, G, Ee)), p(H, 43, G), r(G, "elementSetup", p(H, 44, G, {
830
+ H = n(V), ot = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), U = /* @__PURE__ */ new WeakMap(), u(H, 4, "isOpen", rt, W, ot), u(H, 4, "depth", nt, W, st), u(H, 4, "indent", tt, W, ct), u(H, 4, "treeElement", et, W, lt), u(H, 2, "isInColumns", $e, W), u(H, 2, "isInNarrowColumn", Qe, W), u(H, 4, "isInNav", Ze, W, ut), u(H, 2, "isBand", Xe, W), u(H, 4, "isFilteredOut", Ye, W, dt), u(H, 4, "isUnmatched", Je, W, ft), u(H, 4, "isKeptOpen", qe, W, U), u(H, 2, "rowCount", Ke, W), u(H, 2, "canOpen", Ge, W), u(H, 2, "ariaOpen", We, W), u(H, 2, "ariaIsSelected", Ue, W), u(H, 2, "ariaDepth", He, W), u(H, 1, "onSelectedChanged", Be, W), u(H, 13, "vocabulary", at, W), u(H, 13, "elementSetup", it, W), u(H, 5, "onToggleClicked", Ve, W), f(H, W), i(W, "UITreeItem"), r(W, "vocabulary", p(H, 40, W, Ee)), p(H, 43, W), r(W, "elementSetup", p(H, 44, W, {
821
831
  styleSheets: {
822
832
  tree: De,
823
833
  columns: Oe
@@ -825,11 +835,11 @@ H = n(V), ot = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap()
825
835
  delegatesFocus: !1,
826
836
  aria: { role: "treeitem" },
827
837
  cssStates: ["selected"]
828
- })), p(H, 47, G);
829
- var K = G, ft = "nav", pt = "band";
838
+ })), p(H, 47, W);
839
+ var G = W, pt = "nav", mt = "band";
830
840
  he(["click"]);
831
841
  // src/components/ui-tree/UITree.tsx
832
- var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><slot name=empty>"), gt = /* @__PURE__ */ z("<span class=\"path-row folded\">"), _t = /* @__PURE__ */ z("<div class=path aria-hidden=true><!><!>"), vt = /* @__PURE__ */ z("<span class=separator>›"), yt = /* @__PURE__ */ z("<span class=path-row>"), bt = /* @__PURE__ */ z("<div class=columns><!><div class=column-filler aria-hidden=true></div><div class=column-probe aria-hidden=true></div><div class=narrow-probe aria-hidden=true>"), xt = /* @__PURE__ */ z("<div class=column><slot></slot><!><!>"), St = /* @__PURE__ */ z("<div class=column-title aria-hidden=true>"), Ct = /* @__PURE__ */ z("<div class=tool-buttons><ui-button size=mini appearance=basic>", 1), wt = /* @__PURE__ */ z("<div class=tools><!><!>"), Tt = /* @__PURE__ */ z("<ui-button size=mini appearance=basic>", 1), Et = /* @__PURE__ */ z("<div class=column-edge role=separator tabindex=0 aria-orientation=vertical>"), Dt = /* @__PURE__ */ z("<div class=\"column-title detail-title\"aria-hidden=true>"), Ot = /* @__PURE__ */ z("<div class=detail><div class=detail-body><slot></slot></div><div class=\"column-edge detail-edge\"role=separator tabindex=0 aria-orientation=vertical>"), kt = /* @__PURE__ */ z("<div class=matches-loading role=status><ui-loader visible size=mini inline aria-hidden=true>", 1), At = /* @__PURE__ */ z("<div class=matches-note>"), jt = /* @__PURE__ */ z("<div class=matches role=group><div class=matches-title aria-hidden=true></div><!><!><!><!>"), Mt = /* @__PURE__ */ z("<span class=match-path>"), Nt = /* @__PURE__ */ z("<div class=match role=treeitem aria-selected=false tabindex=-1><span class=match-words><span class=words></span></span><!>"), q = /* @__PURE__ */ z("<span class=icon><ui-icon>", 1), Pt = /* @__PURE__ */ z("<span class=which>"), Ft = /* @__PURE__ */ z("<li class=loading role=none><ui-loader visible size=small>", 1), It = /* @__PURE__ */ z("<li class=empty role=none><slot name=empty>"), Lt = /* @__PURE__ */ z("<li class=matches-box role=none>"), Rt = /* @__PURE__ */ z("<ul class=\"column items\"role=group><!><!><!><!><!><!>"), zt = /* @__PURE__ */ z("<li class=column-title role=none aria-hidden=true>"), Bt = /* @__PURE__ */ z("<li class=track-probe role=none aria-hidden=true>"), Vt = /* @__PURE__ */ z("<span class=count>"), Ht = /* @__PURE__ */ z("<span class=chevron>"), Ut = /* @__PURE__ */ z("<span class=chevron aria-hidden=true>"), Wt = /* @__PURE__ */ z("<li role=treeitem><span class=label><span class=words></span></span><!><!>"), Gt, Kt, qt, Jt, Yt, Xt, Zt, Qt, $t, en, tn, nn, rn, an, on, sn, cn, ln, un, dn, fn, pn, mn, hn, gn, _n, vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn, Nn, Pn, Fn, In, Ln, Rn, zn, Bn, Vn, Hn, Un, Wn, Gn, Kn, qn, Jn, Yn, Xn, J, Y, Zn, Qn, $n, er, tr, nr, rr, ir, ar, or, sr, cr, lr, ur, dr, fr, pr, mr, hr, gr, _r, vr, yr, br, xr, X, Sr, Cr, DOMTreeElement = class extends e {
842
+ var ht = /* @__PURE__ */ z("<slot>"), gt = /* @__PURE__ */ z("<div class=empty><slot name=empty>"), _t = /* @__PURE__ */ z("<span class=\"path-row folded\">"), vt = /* @__PURE__ */ z("<div class=path aria-hidden=true><!><!>"), yt = /* @__PURE__ */ z("<span class=separator>›"), bt = /* @__PURE__ */ z("<span class=path-row>"), xt = /* @__PURE__ */ z("<div class=columns><!><div class=column-filler aria-hidden=true></div><div class=column-probe aria-hidden=true></div><div class=narrow-probe aria-hidden=true>"), St = /* @__PURE__ */ z("<div class=column><slot></slot><!><!>"), Ct = /* @__PURE__ */ z("<div class=column-title aria-hidden=true>"), wt = /* @__PURE__ */ z("<div class=tool-buttons><ui-button size=mini appearance=basic>", 1), Tt = /* @__PURE__ */ z("<div class=tools><!><!>"), Et = /* @__PURE__ */ z("<ui-button size=mini appearance=basic>", 1), Dt = /* @__PURE__ */ z("<div class=column-edge role=separator tabindex=0 aria-orientation=vertical>"), Ot = /* @__PURE__ */ z("<div class=\"column-title detail-title\"aria-hidden=true>"), kt = /* @__PURE__ */ z("<div class=detail><div class=detail-body><slot></slot></div><div class=\"column-edge detail-edge\"role=separator tabindex=0 aria-orientation=vertical>"), At = /* @__PURE__ */ z("<div class=matches-loading role=status><ui-loader visible size=mini inline aria-hidden=true>", 1), jt = /* @__PURE__ */ z("<div class=matches-note>"), Mt = /* @__PURE__ */ z("<div class=matches role=group><div class=matches-title aria-hidden=true></div><!><!><!><!>"), Nt = /* @__PURE__ */ z("<span class=match-path>"), Pt = /* @__PURE__ */ z("<div class=match role=treeitem aria-selected=false tabindex=-1><span class=match-words><span class=words></span></span><!>"), K = /* @__PURE__ */ z("<span class=icon><ui-icon>", 1), Ft = /* @__PURE__ */ z("<span class=which>"), It = /* @__PURE__ */ z("<li class=loading role=none><ui-loader visible size=small>", 1), Lt = /* @__PURE__ */ z("<li class=empty role=none><slot name=empty>"), Rt = /* @__PURE__ */ z("<li class=matches-box role=none>"), zt = /* @__PURE__ */ z("<ul class=\"column items\"role=group><!><!><!><!><!><!>"), Bt = /* @__PURE__ */ z("<li class=column-title role=none aria-hidden=true>"), Vt = /* @__PURE__ */ z("<li class=track-probe role=none aria-hidden=true>"), Ht = /* @__PURE__ */ z("<span class=count>"), Ut = /* @__PURE__ */ z("<span class=chevron>"), Wt = /* @__PURE__ */ z("<span class=chevron aria-hidden=true>"), Gt = /* @__PURE__ */ z("<li role=treeitem><span class=label><span class=words></span></span><!><!>"), Kt, qt, Jt, Yt, Xt, Zt, Qt, $t, en, tn, nn, rn, an, on, sn, cn, ln, un, dn, fn, pn, mn, hn, gn, _n, vn, yn, bn, xn, Sn, Cn, wn, Tn, En, Dn, On, kn, An, jn, Mn, Nn, Pn, Fn, In, Ln, Rn, zn, Bn, Vn, Hn, Un, Wn, Gn, Kn, qn, Jn, Yn, Xn, Zn, q, J, Qn, $n, er, tr, nr, rr, ir, ar, or, sr, cr, lr, ur, dr, fr, pr, mr, hr, gr, _r, vr, yr, br, xr, Sr, Y, Cr, wr, DOMTreeElement = class extends e {
833
843
  static {
834
844
  i(this, "DOMTreeElement");
835
845
  }
@@ -839,14 +849,14 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
839
849
  closeAll() {
840
850
  this.component?.closeAll();
841
851
  }
842
- }, Z = class _UITree extends (J = l, Xn = [ne], Yn = [re], Jn = [T, b("no-matches")], qn = [b("filtering")], Kn = [g("multiSelectable")], Gn = [g("label")], Wn = [b("columns")], Un = [T], Hn = [T], Vn = [C("isConnected", "stickyPath")], Bn = [C("pathKey", "treeWidthPx")], zn = [S("click")], Rn = [y("path")], Ln = [C("openPath", "isReady", "rowsVersion")], In = [T], Fn = [E({ childList: !0 })], Pn = [C("canRove")], Nn = [S("keydown")], Mn = [ee({ equals: x })], jn = [T({ equals: x })], An = [T], kn = [T({ equals: x })], On = [T], Dn = [T], En = [T], Tn = [T, b("resizing")], wn = [C("isConnected", "isColumns")], Cn = [C("fitKey")], Sn = [T({ equals: x })], xn = [C("textTrackSources")], bn = [E({ childList: !0 })], yn = [T], vn = [T], _n = [C("detailElement", "pickedItem")], gn = [C("hasDetail", "detailWidthPx", "boxWidthPx", { defer: !0 })], hn = [T], mn = [T], pn = [T], fn = [T], dn = [C("isConnected", "isColumns", "isReady")], un = [S("pointerover", { target: "renderRoot" })], ln = [S("pointerleave")], cn = [S("focusin", { target: "renderRoot" })], sn = [S("focusout", { target: "renderRoot" })], on = [C("narrowColumns", { defer: !0 })], an = [T({ equals: x })], rn = [C("isConnected", "stickyPath", "isColumns")], nn = [C("filter", "isReady", "items")], tn = [T], en = [T], $t = [C("filterBase", { defer: !0 })], Qt = [E({
852
+ }, X = class _UITree extends (q = l, Zn = [ne], Xn = [re], Yn = [T, b("no-matches")], Jn = [b("filtering")], qn = [g("multiSelectable")], Kn = [g("label")], Gn = [b("columns")], Wn = [T], Un = [T], Hn = [C("isConnected", "stickyPath")], Vn = [C("pathKey", "treeWidthPx")], Bn = [S("click")], zn = [y("path")], Rn = [C("openPath", "isReady", "rowsVersion")], Ln = [T], In = [E({ childList: !0 })], Fn = [C("canRove")], Pn = [S("keydown")], Nn = [ee({ equals: x })], Mn = [T({ equals: x })], jn = [T], An = [T({ equals: x })], kn = [T], On = [T], Dn = [T], En = [T, b("resizing")], Tn = [C("isConnected", "isColumns")], wn = [C("fitKey")], Cn = [T({ equals: x })], Sn = [C("textTrackSources")], xn = [E({ childList: !0 })], bn = [T], yn = [T], vn = [C("detailElement", "pickedItem")], _n = [C("hasDetail", "detailWidthPx", "boxWidthPx", { defer: !0 })], gn = [T], hn = [T], mn = [T], pn = [T], fn = [C("isConnected", "isColumns", "isReady")], dn = [S("pointerover", { target: "renderRoot" })], un = [S("pointerleave")], ln = [S("focusin", { target: "renderRoot" })], cn = [S("focusout", { target: "renderRoot" })], sn = [C("narrowColumns", { defer: !0 })], on = [T({ equals: x })], an = [C("isConnected", "stickyPath", "isColumns")], rn = [C("filter", "isReady", "items")], nn = [T], tn = [T], en = [C("filterBase", { defer: !0 })], $t = [E({
843
853
  childList: !0,
844
854
  subtree: !0,
845
855
  attributes: !0,
846
856
  attributeFilter: ["label", "which"]
847
- })], Zt = [T({ equals: x })], Xt = [T], Yt = [T], Jt = [T], qt = [T], Kt = [T], Gt = [C("openPath", "isReady", { defer: !0 })], J) {
857
+ })], Qt = [T({ equals: x })], Zt = [T], Xt = [T], Yt = [T], Jt = [T], qt = [T], Kt = [C("openPath", "isReady", { defer: !0 })], q) {
848
858
  constructor() {
849
- super(...arguments), p(Y, 5, this), r(this, "selection", new a()), r(this, "roving"), w(this, Zn, p(Y, 8, this, !1)), p(Y, 11, this), w(this, Qn, p(Y, 12, this, 0)), p(Y, 15, this), w(this, $n, p(Y, 16, this, 0)), p(Y, 19, this), r(this, "settleTimer"), w(this, er, p(Y, 20, this, [])), p(Y, 23, this), w(this, tr, p(Y, 24, this, 0)), p(Y, 27, this), r(this, "opens", 0), r(this, "openWaits", /* @__PURE__ */ new Set()), w(this, nr, p(Y, 28, this, [])), p(Y, 31, this), w(this, rr, p(Y, 32, this)), p(Y, 35, this), w(this, ir, p(Y, 36, this, [])), p(Y, 39, this), w(this, ar, p(Y, 40, this, 0)), p(Y, 43, this), w(this, or, p(Y, 44, this, Vr)), p(Y, 47, this), w(this, sr, p(Y, 48, this, Vr)), p(Y, 51, this), w(this, cr, p(Y, 52, this, !1)), p(Y, 55, this), w(this, lr, p(Y, 56, this, [])), p(Y, 59, this), r(this, "measuredTracks", /* @__PURE__ */ new WeakMap()), w(this, ur, p(Y, 60, this)), p(Y, 63, this), w(this, dr, p(Y, 64, this, 0)), p(Y, 67, this), r(this, "detailObserver"), w(this, fr, p(Y, 68, this, 0)), p(Y, 71, this), w(this, pr, p(Y, 72, this, 0)), p(Y, 75, this), w(this, mr, p(Y, 76, this)), p(Y, 79, this), w(this, hr, p(Y, 80, this)), p(Y, 83, this), r(this, "lastNarrowColumns", []), w(this, gr, p(Y, 84, this, [])), p(Y, 87, this), r(this, "cancelPathRead"), w(this, _r, p(Y, 88, this, !1)), p(Y, 91, this), w(this, vr, p(Y, 92, this, 0)), p(Y, 95, this), w(this, yr, p(Y, 96, this, [])), p(Y, 99, this), w(this, br, p(Y, 100, this, 0)), p(Y, 103, this), w(this, xr, p(Y, 104, this, !1)), p(Y, 107, this), w(this, X, p(Y, 108, this, !1)), p(Y, 111, this), r(this, "looks", 0), r(this, "childrenOfItem", /* @__PURE__ */ new WeakMap()), w(this, Sr, p(Y, 112, this, 0)), p(Y, 115, this), w(this, Cr, p(Y, 116, this)), p(Y, 119, this);
859
+ super(...arguments), p(J, 5, this), r(this, "selection", new a()), r(this, "roving"), w(this, Qn, p(J, 8, this, !1)), p(J, 11, this), w(this, $n, p(J, 12, this, 0)), p(J, 15, this), w(this, er, p(J, 16, this, 0)), p(J, 19, this), r(this, "settleTimer"), w(this, tr, p(J, 20, this, [])), p(J, 23, this), w(this, nr, p(J, 24, this, 0)), p(J, 27, this), r(this, "opens", 0), r(this, "openWaits", /* @__PURE__ */ new Set()), w(this, rr, p(J, 28, this, [])), p(J, 31, this), w(this, ir, p(J, 32, this)), p(J, 35, this), w(this, ar, p(J, 36, this, [])), p(J, 39, this), w(this, or, p(J, 40, this, 0)), p(J, 43, this), w(this, sr, p(J, 44, this, Vr)), p(J, 47, this), w(this, cr, p(J, 48, this, Vr)), p(J, 51, this), w(this, lr, p(J, 52, this, !1)), p(J, 55, this), w(this, ur, p(J, 56, this, [])), p(J, 59, this), r(this, "measuredTracks", /* @__PURE__ */ new WeakMap()), w(this, dr, p(J, 60, this)), p(J, 63, this), w(this, fr, p(J, 64, this, 0)), p(J, 67, this), r(this, "detailObserver"), w(this, pr, p(J, 68, this, 0)), p(J, 71, this), w(this, mr, p(J, 72, this, 0)), p(J, 75, this), w(this, hr, p(J, 76, this)), p(J, 79, this), w(this, gr, p(J, 80, this)), p(J, 83, this), r(this, "lastNarrowColumns", []), w(this, _r, p(J, 84, this, [])), p(J, 87, this), r(this, "cancelPathRead"), w(this, vr, p(J, 88, this, !1)), p(J, 91, this), w(this, yr, p(J, 92, this, 0)), p(J, 95, this), w(this, br, p(J, 96, this, [])), p(J, 99, this), w(this, xr, p(J, 100, this, 0)), p(J, 103, this), w(this, Sr, p(J, 104, this, !1)), p(J, 107, this), w(this, Y, p(J, 108, this, !1)), p(J, 111, this), r(this, "looks", 0), r(this, "childrenOfItem", /* @__PURE__ */ new WeakMap()), w(this, Cr, p(J, 112, this, 0)), p(J, 115, this), w(this, wr, p(J, 116, this)), p(J, 119, this);
850
860
  }
851
861
  get isFiltering() {
852
862
  return !!this.filter;
@@ -893,7 +903,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
893
903
  return [
894
904
  F(() => e.renderPath(() => e.pathRows, (t) => e.scrollToRow(t))),
895
905
  (() => {
896
- var e = mt();
906
+ var e = ht();
897
907
  return e._$owner = M(), e;
898
908
  })(),
899
909
  A(k, {
@@ -901,7 +911,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
901
911
  return e.hasNoMatches;
902
912
  },
903
913
  get children() {
904
- var t = ht(), n = t.firstChild;
914
+ var t = gt(), n = t.firstChild;
905
915
  return n._$owner = M(), N(n, () => e.translationForKey("noMatches")), j(() => e.partForName("empty"), (e) => {
906
916
  L(t, "part", e);
907
917
  }), t;
@@ -916,16 +926,16 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
916
926
  return e().length;
917
927
  },
918
928
  get children() {
919
- var o = _t(), s = o.firstChild, c = s.nextSibling;
929
+ var o = vt(), s = o.firstChild, c = s.nextSibling;
920
930
  return N(o, A(k, {
921
931
  get when() {
922
932
  return r();
923
933
  },
924
934
  get children() {
925
- var n = gt();
926
- return n._$$click = (n) => t(e()[r() - 1], r() - 1, n), N(n, Tr), j(() => ({
935
+ var n = _t();
936
+ return n._$$click = (n) => t(e()[r() - 1], r() - 1, n), N(n, Er), j(() => ({
927
937
  e: a.partForName("path-row"),
928
- t: e().slice(0, r()).map((e) => e.label).join(Er)
938
+ t: e().slice(0, r()).map((e) => e.label).join(Z)
929
939
  }), ({ e, t }, r) => {
930
940
  e !== r?.e && L(n, "part", e), t !== r?.t && L(n, "title", t);
931
941
  }), n;
@@ -941,10 +951,10 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
941
951
  return c();
942
952
  },
943
953
  get children() {
944
- return vt();
954
+ return yt();
945
955
  }
946
956
  }), (() => {
947
- var r = yt();
957
+ var r = bt();
948
958
  return r._$$click = (e) => t(o, c(), e), N(r, () => o.label), j(() => ({
949
959
  e: c() === n(),
950
960
  t: a.partForName("path-row"),
@@ -987,7 +997,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
987
997
  current: r,
988
998
  room: f,
989
999
  separator: l("›", s) + 2 * (parseFloat(u.columnGap) || 0),
990
- folded: l(Tr, s),
1000
+ folded: l(Er, s),
991
1001
  least: Dr * d,
992
1002
  fewest: Or * d
993
1003
  });
@@ -995,7 +1005,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
995
1005
  renderColumns() {
996
1006
  let e = this;
997
1007
  return [F(() => e.renderPath(() => e.columnPicks, (t, n, r) => e.pickFromPath(n, r), () => e.selectedColumn)), (() => {
998
- var t = bt(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling;
1008
+ var t = xt(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling;
999
1009
  return N(t, A(k, {
1000
1010
  get when() {
1001
1011
  return e.hasItemData;
@@ -1025,13 +1035,13 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1025
1035
  }
1026
1036
  firstColumn() {
1027
1037
  let e = this;
1028
- var t = xt(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling;
1038
+ var t = St(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling;
1029
1039
  return N(t, A(k, {
1030
1040
  get when() {
1031
1041
  return e.titleForColumn(0);
1032
1042
  },
1033
1043
  children: (t) => (() => {
1034
- var n = St();
1044
+ var n = Ct();
1035
1045
  return N(n, t), j(() => e.partForName("column-title"), (e) => {
1036
1046
  L(n, "part", e);
1037
1047
  }), n;
@@ -1041,7 +1051,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1041
1051
  return F(() => !(!e.hasNoMatches || e.hasOtherMatches))() ? e.filteredRowsParent === e.domElement : e.hasNoMatches && !e.hasOtherMatches;
1042
1052
  },
1043
1053
  get children() {
1044
- var t = ht(), n = t.firstChild;
1054
+ var t = gt(), n = t.firstChild;
1045
1055
  return n._$owner = M(), N(n, () => e.translationForKey("noMatches")), j(() => e.partForName("empty"), (e) => {
1046
1056
  L(t, "part", e);
1047
1057
  }), t;
@@ -1067,7 +1077,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1067
1077
  let t = [];
1068
1078
  for (let n of e.children) {
1069
1079
  let { component: e } = n;
1070
- e instanceof K && t.push(e);
1080
+ e instanceof G && t.push(e);
1071
1081
  }
1072
1082
  return t;
1073
1083
  }
@@ -1083,7 +1093,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1083
1093
  for (let t of e.composedPath()) {
1084
1094
  if (t === this.domElement) return;
1085
1095
  let { component: e } = t;
1086
- if (e instanceof K) return e;
1096
+ if (e instanceof G) return e;
1087
1097
  }
1088
1098
  }
1089
1099
  onClicked(e) {
@@ -1168,7 +1178,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1168
1178
  let t = [];
1169
1179
  for (let n = e.domElement.parentElement; n && n !== this.domElement; n = n.parentElement) {
1170
1180
  let { component: e } = n;
1171
- e instanceof K && t.unshift(e);
1181
+ e instanceof G && t.unshift(e);
1172
1182
  }
1173
1183
  return t;
1174
1184
  }
@@ -1189,17 +1199,17 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1189
1199
  }
1190
1200
  toolbar() {
1191
1201
  let e = this;
1192
- var t = wt(), n = t.firstChild, r = n.nextSibling;
1202
+ var t = Tt(), n = t.firstChild, r = n.nextSibling;
1193
1203
  return N(t, A(k, {
1194
1204
  get when() {
1195
1205
  return e.tools;
1196
1206
  },
1197
1207
  get children() {
1198
- var t = Ct(), n = t.firstChild;
1208
+ var t = wt(), n = t.firstChild;
1199
1209
  return N(t, A(O, {
1200
1210
  each: kr,
1201
1211
  children: (t) => (() => {
1202
- var n = Tt();
1212
+ var n = Et();
1203
1213
  return n._$$click = (n) => e.startOpening(t, n), n._$owner = M(), N(n, () => e.translationForKey("openLevels", { levels: t })), j(() => e.partForName("tool"), (e) => {
1204
1214
  L(n, "part", e);
1205
1215
  }), n;
@@ -1213,7 +1223,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1213
1223
  return e.toolsElement;
1214
1224
  },
1215
1225
  get children() {
1216
- var t = mt();
1226
+ var t = ht();
1217
1227
  return t._$owner = M(), j(() => e.slotForName("tools"), (e) => {
1218
1228
  L(t, "name", e);
1219
1229
  }), t;
@@ -1308,11 +1318,13 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1308
1318
  };
1309
1319
  }
1310
1320
  onKeyDown(e) {
1321
+ let t = matchBoxOf(e);
1322
+ if (t) return this.onMatchKeyDown(e, t);
1311
1323
  if (this.hasItemData) return this.onItemKeyDown(e);
1312
- let t = this.rowOf(e);
1313
- if (!t || e.target !== t.domElement) return;
1314
- let n = this.keyActions(t)[e.key]?.(e);
1315
- n !== !1 && n !== void 0 && e.preventDefault();
1324
+ let n = this.rowOf(e);
1325
+ if (!n || e.target !== n.domElement) return;
1326
+ let r = this.keyActions(n)[e.key]?.(e);
1327
+ r !== !1 && r !== void 0 && e.preventDefault();
1316
1328
  }
1317
1329
  keyActions(e) {
1318
1330
  let t = /* @__PURE__ */ i((t) => this.activate(e, t), "select");
@@ -1327,7 +1339,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1327
1339
  ArrowLeft: /* @__PURE__ */ i(() => {
1328
1340
  if (e.isOpen && e.canOpen) return e.disclosure.close();
1329
1341
  let t = e.domElement.parentElement?.component;
1330
- return t instanceof K ? this.focusRow(t) ?? !0 : !1;
1342
+ return t instanceof G ? this.focusRow(t) ?? !0 : !1;
1331
1343
  }, "ArrowLeft")
1332
1344
  };
1333
1345
  }
@@ -1339,9 +1351,9 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1339
1351
  if (!e.showsRows) return !1;
1340
1352
  let n = this.rowsIn(e.domElement).filter((e) => !e.isFilteredOut);
1341
1353
  return r(n.find((e) => e.isOpen) ?? n[0], t, !0);
1342
- }, "goIn"), s = /* @__PURE__ */ i((t) => r(this.rowsAround(e).at(-1), t, !0), "goOut"), c = getComputedStyle(this.domElement).direction === "rtl";
1354
+ }, "goIn"), s = /* @__PURE__ */ i((t) => r(this.rowsAround(e).at(-1), t, !0), "goOut"), c = getComputedStyle(this.domElement).direction === "rtl", l = n === t.length - 1 && e.domElement.parentElement === this.filteredRowsParent;
1343
1355
  return {
1344
- ArrowDown: /* @__PURE__ */ i((e) => a(n + 1, e), "ArrowDown"),
1356
+ ArrowDown: /* @__PURE__ */ i((e) => l && this.focusMatch(0) || a(n + 1, e), "ArrowDown"),
1345
1357
  ArrowUp: /* @__PURE__ */ i((e) => a(n - 1, e), "ArrowUp"),
1346
1358
  Home: /* @__PURE__ */ i((e) => a(0, e), "Home"),
1347
1359
  End: /* @__PURE__ */ i((e) => a(t.length - 1, e), "End"),
@@ -1398,7 +1410,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1398
1410
  }
1399
1411
  columnEdge(e) {
1400
1412
  let t = this;
1401
- var n = Et();
1413
+ var n = Dt();
1402
1414
  return n._$$dblclick = (n) => t.fitColumn(e, n), n._$$keydown = (n) => t.resizeByKey(n, e), n._$$pointerdown = (n) => t.startResizing(n, e), L(n, "aria-valuemin", $), j(() => ({
1403
1415
  e: !!t.narrowColumns.includes(e),
1404
1416
  t: e > (t.peekColumn ?? Infinity),
@@ -1615,13 +1627,13 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1615
1627
  }
1616
1628
  detailPane() {
1617
1629
  let e = this;
1618
- var t = Ot(), n = t.firstChild, r = n.firstChild, i = n.nextSibling;
1630
+ var t = kt(), n = t.firstChild, r = n.firstChild, i = n.nextSibling;
1619
1631
  return ge(() => (t) => e.watchDetailWidth(t), t), N(t, A(k, {
1620
1632
  get when() {
1621
1633
  return e.columnTitleList.length > 0;
1622
1634
  },
1623
1635
  get children() {
1624
- var t = Dt();
1636
+ var t = Ot();
1625
1637
  return j(() => e.partForName("column-title"), (e) => {
1626
1638
  L(t, "part", e);
1627
1639
  }), t;
@@ -1796,7 +1808,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1796
1808
  if (e.classList?.contains("column")) return Number(e.dataset.depth ?? 0);
1797
1809
  if (e.classList?.contains("rows")) {
1798
1810
  let { component: t } = e.getRootNode().host;
1799
- if (t instanceof K) return t.depth + 1;
1811
+ if (t instanceof G) return t.depth + 1;
1800
1812
  }
1801
1813
  }
1802
1814
  }
@@ -1824,7 +1836,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1824
1836
  let r = [];
1825
1837
  for (let e = n.domElement.parentElement; e && e !== this.domElement; e = e.parentElement) {
1826
1838
  let { component: t } = e;
1827
- t instanceof K && r.unshift(t);
1839
+ t instanceof G && r.unshift(t);
1828
1840
  }
1829
1841
  return r.length && rowBoxOf(r[0]).top < t ? r : [];
1830
1842
  }
@@ -1961,6 +1973,35 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1961
1973
  this.activate(n, t), h(() => this.focusRow(n));
1962
1974
  }
1963
1975
  }
1976
+ get matchBoxes() {
1977
+ return !this.isColumns || !this.filter ? [] : [...(this.hasItemData ? this.domElement : this.filteredRowsParent).renderRoot?.querySelectorAll(".matches > .match") ?? []];
1978
+ }
1979
+ focusMatch(e) {
1980
+ let t = this.matchBoxes.at(e);
1981
+ return t?.focus(), !!t;
1982
+ }
1983
+ onMatchKeyDown(e, t) {
1984
+ let n = this.matchBoxes, r = n.indexOf(t), a = this.otherMatches[Number(t.dataset.match)];
1985
+ if (r < 0 || !a) return;
1986
+ let o = /* @__PURE__ */ i(() => (this.pickMatch(a, e), !0), "pick");
1987
+ ({
1988
+ ArrowDown: /* @__PURE__ */ i(() => this.focusMatch(Math.min(r + 1, n.length - 1)), "ArrowDown"),
1989
+ ArrowUp: /* @__PURE__ */ i(() => r ? this.focusMatch(r - 1) : this.focusLastFilteredRow(e), "ArrowUp"),
1990
+ Home: /* @__PURE__ */ i(() => this.focusMatch(0), "Home"),
1991
+ End: /* @__PURE__ */ i(() => this.focusMatch(-1), "End"),
1992
+ Enter: o,
1993
+ " ": o
1994
+ })[e.key]?.() && e.preventDefault();
1995
+ }
1996
+ focusLastFilteredRow(e) {
1997
+ let t = this.filteredColumn;
1998
+ if (this.hasItemData) {
1999
+ let n = this.shownIn(this.columnLists[t] ?? [], t).at(-1);
2000
+ return n ? (this.openPath[t] !== n.id && this.pickItem(n, t, e), h(() => this.focusItemRow(t, n.id)), !0) : !1;
2001
+ }
2002
+ let n = this.rowsIn(this.filteredRowsParent).filter((e) => !e.isFilteredOut).at(-1);
2003
+ return n ? (this.focusRow(n), n.isOpen || this.activate(n, e), !0) : !1;
2004
+ }
1964
2005
  matchList() {
1965
2006
  let e = this;
1966
2007
  return A(k, {
@@ -1968,52 +2009,57 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
1968
2009
  return e.hasOtherMatches || e.didStopLooking;
1969
2010
  },
1970
2011
  get children() {
1971
- var t = jt(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, a = i.nextSibling, o = a.nextSibling;
2012
+ var t = Mt(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, a = i.nextSibling, o = a.nextSibling;
1972
2013
  return N(n, () => e.translationForKey("elsewhere")), N(t, A(O, {
1973
2014
  get each() {
1974
2015
  return e.otherMatches;
1975
2016
  },
1976
- children: (t) => (() => {
1977
- var n = Nt(), r = n.firstChild, i = r.firstChild, a = r.nextSibling;
1978
- return n._$$click = (n) => e.pickMatch(t, n), N(n, A(k, {
2017
+ children: (t, n) => (() => {
2018
+ var r = Pt(), i = r.firstChild, a = i.firstChild, o = i.nextSibling;
2019
+ return r._$$click = (n) => e.pickMatch(t, n), N(r, A(k, {
1979
2020
  get when() {
1980
2021
  return F(() => !!e.shows("icon"))() ? t.icon : e.shows("icon");
1981
2022
  },
1982
2023
  children: (e) => (() => {
1983
- var t = q(), n = t.firstChild;
2024
+ var t = K(), n = t.firstChild;
1984
2025
  return n._$owner = M(), j(() => e(), (e) => {
1985
2026
  L(n, "name", e);
1986
2027
  }), t;
1987
2028
  })()
1988
- }), r), N(i, () => t.label), N(r, A(k, {
2029
+ }), i), N(a, () => t.label), N(i, A(k, {
1989
2030
  get when() {
1990
2031
  return F(() => !!e.shows("which"))() ? t.which : e.shows("which");
1991
2032
  },
1992
2033
  children: (e) => (() => {
1993
- var t = Pt();
2034
+ var t = Ft();
1994
2035
  return N(t, e), t;
1995
2036
  })()
1996
- }), null), N(n, A(k, {
2037
+ }), null), N(r, A(k, {
1997
2038
  get when() {
1998
2039
  return t.names.length;
1999
2040
  },
2000
2041
  get children() {
2001
- var e = Mt();
2002
- return N(e, () => t.names.join(Er)), e;
2042
+ var e = Nt();
2043
+ return N(e, () => t.names.join(Z)), e;
2003
2044
  }
2004
- }), a), j(() => ({
2045
+ }), o), j(() => ({
2005
2046
  e: e.partForName("match"),
2006
- t: [...t.names, t.label].join(Er)
2007
- }), ({ e, t }, r) => {
2008
- e !== r?.e && L(n, "part", e), t !== r?.t && L(n, "title", t);
2009
- }), n;
2047
+ t: t.names.length ? e.translationForKey("matchIn", {
2048
+ label: t.label,
2049
+ path: t.names.join(Z)
2050
+ }) : t.label,
2051
+ a: n(),
2052
+ o: [...t.names, t.label].join(Z)
2053
+ }), ({ e, t, a: n, o: i }, a) => {
2054
+ e !== a?.e && L(r, "part", e), t !== a?.t && L(r, "aria-label", t), n !== a?.a && L(r, "data-match", n), i !== a?.o && L(r, "title", i);
2055
+ }), r;
2010
2056
  })()
2011
2057
  }), r), N(t, A(k, {
2012
2058
  get when() {
2013
2059
  return e.isLooking;
2014
2060
  },
2015
2061
  get children() {
2016
- var t = kt(), n = t.firstChild;
2062
+ var t = At(), n = t.firstChild;
2017
2063
  return n._$owner = M(), N(t, () => e.translationForKey("lookingElsewhere"), null), t;
2018
2064
  }
2019
2065
  }), i), N(t, A(k, {
@@ -2021,7 +2067,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
2021
2067
  return e.otherMatchCount > e.otherMatches.length;
2022
2068
  },
2023
2069
  get children() {
2024
- var t = At();
2070
+ var t = jt();
2025
2071
  return N(t, () => e.translationForKey("moreMatches", { count: e.otherMatchCount - e.otherMatches.length })), t;
2026
2072
  }
2027
2073
  }), a), N(t, A(k, {
@@ -2029,7 +2075,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
2029
2075
  return e.didStopLooking;
2030
2076
  },
2031
2077
  get children() {
2032
- var t = At();
2078
+ var t = jt();
2033
2079
  return N(t, () => e.translationForKey("stoppedLooking", { count: Q })), t;
2034
2080
  }
2035
2081
  }), o), j(() => ({
@@ -2116,13 +2162,13 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
2116
2162
  }
2117
2163
  itemColumn(e, t) {
2118
2164
  let n = /* @__PURE__ */ i(() => this.shownIn(e() ?? [], t), "shown"), r = this;
2119
- var a = Rt(), o = a.firstChild, s = o.nextSibling, c = s.nextSibling, l = c.nextSibling, u = l.nextSibling, d = u.nextSibling;
2165
+ var a = zt(), o = a.firstChild, s = o.nextSibling, c = s.nextSibling, l = c.nextSibling, u = l.nextSibling, d = u.nextSibling;
2120
2166
  return L(a, "data-depth", t), N(a, A(k, {
2121
2167
  get when() {
2122
2168
  return r.titleForColumn(t);
2123
2169
  },
2124
2170
  children: (e) => (() => {
2125
- var t = zt();
2171
+ var t = Bt();
2126
2172
  return N(t, e), j(() => r.partForName("column-title"), (e) => {
2127
2173
  L(t, "part", e);
2128
2174
  }), t;
@@ -2132,7 +2178,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
2132
2178
  return !e();
2133
2179
  },
2134
2180
  get children() {
2135
- var e = Ft(), t = e.firstChild;
2181
+ var e = It(), t = e.firstChild;
2136
2182
  return t._$owner = M(), j(() => r.translationForKey("loading"), (e) => {
2137
2183
  L(t, "aria-label", e);
2138
2184
  }), e;
@@ -2142,7 +2188,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
2142
2188
  return F(() => !(!e()?.length || n().length))() ? !(t === r.filteredColumn && r.hasOtherMatches) : !!e()?.length && !n().length;
2143
2189
  },
2144
2190
  get children() {
2145
- var e = It(), t = e.firstChild;
2191
+ var e = Lt(), t = e.firstChild;
2146
2192
  return t._$owner = M(), N(t, () => r.translationForKey("noMatches")), j(() => r.partForName("empty"), (t) => {
2147
2193
  L(e, "part", t);
2148
2194
  }), e;
@@ -2152,7 +2198,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
2152
2198
  return F(() => t === r.filteredColumn)() && !!r.filter;
2153
2199
  },
2154
2200
  get children() {
2155
- var e = Lt();
2201
+ var e = Rt();
2156
2202
  return N(e, () => r.matchList()), e;
2157
2203
  }
2158
2204
  }), d), j(() => ({
@@ -2182,31 +2228,31 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
2182
2228
  }
2183
2229
  trackProbe(e) {
2184
2230
  let t = this;
2185
- var n = Bt();
2231
+ var n = Vt();
2186
2232
  return N(n, (() => {
2187
2233
  let n = e(), r = t.shows("icon") ? n.find((e) => e.icon)?.icon : void 0, i = (t.shows("count") ? n.map((e) => t.countOf(e) ?? "").map(String) : []).reduce((e, t) => t.length > e.length ? t : e, ""), a = t.shows("chevron") && n.some((e) => t.hasChildren(e));
2188
2234
  return [
2189
2235
  r && (() => {
2190
- var e = q(), t = e.firstChild;
2236
+ var e = K(), t = e.firstChild;
2191
2237
  return L(t, "name", r), t._$owner = M(), e;
2192
2238
  })(),
2193
2239
  i && (() => {
2194
- var e = Vt();
2240
+ var e = Ht();
2195
2241
  return N(e, i), e;
2196
2242
  })(),
2197
- a && Ht()
2243
+ a && Ut()
2198
2244
  ];
2199
2245
  })), n;
2200
2246
  }
2201
2247
  itemRow(e, t) {
2202
2248
  let n = /* @__PURE__ */ i(() => this.openPath[t] === e.id, "isPicked"), r = /* @__PURE__ */ i(() => n() && t === this.selectedDepth, "isSelected"), a = /* @__PURE__ */ i(() => !!this.filterText && t === this.filteredColumn && !wordsOf(e).includes(this.filterText), "isUnmatched"), o = (this.rowClass(e) ?? "").split(/\s+/).filter(Boolean), s = this;
2203
- var c = Wt(), l = c.firstChild, u = l.firstChild, d = l.nextSibling, f = d.nextSibling;
2249
+ var c = Gt(), l = c.firstChild, u = l.firstChild, d = l.nextSibling, f = d.nextSibling;
2204
2250
  return c._$$click = (n) => s.pickItem(e, t, n), L(c, "aria-level", t + 1), N(c, A(k, {
2205
2251
  get when() {
2206
2252
  return F(() => !!s.shows("icon"))() ? e.icon : s.shows("icon");
2207
2253
  },
2208
2254
  children: (e) => (() => {
2209
- var t = q(), n = t.firstChild;
2255
+ var t = K(), n = t.firstChild;
2210
2256
  return n._$owner = M(), j(() => e(), (e) => {
2211
2257
  L(n, "name", e);
2212
2258
  }), t;
@@ -2216,7 +2262,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
2216
2262
  return F(() => !!s.shows("which"))() ? e.which : s.shows("which");
2217
2263
  },
2218
2264
  children: (e) => (() => {
2219
- var t = Pt();
2265
+ var t = Ft();
2220
2266
  return N(t, e), t;
2221
2267
  })()
2222
2268
  }), null), N(c, A(k, {
@@ -2224,7 +2270,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
2224
2270
  return F(() => !!s.shows("count"))() ? s.countOf(e) !== void 0 : s.shows("count");
2225
2271
  },
2226
2272
  get children() {
2227
- var t = Vt();
2273
+ var t = Ht();
2228
2274
  return N(t, () => s.countOf(e)), t;
2229
2275
  }
2230
2276
  }), d), N(c, A(k, {
@@ -2232,7 +2278,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
2232
2278
  return F(() => !!s.shows("chevron"))() ? s.hasChildren(e) : s.shows("chevron");
2233
2279
  },
2234
2280
  get children() {
2235
- return Ut();
2281
+ return Wt();
2236
2282
  }
2237
2283
  }), f), j(() => ({
2238
2284
  e: I([
@@ -2299,11 +2345,16 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
2299
2345
  ArrowLeft: this.isRightToLeft ? l : u,
2300
2346
  Enter: /* @__PURE__ */ i(() => s(o), "Enter"),
2301
2347
  " ": /* @__PURE__ */ i(() => s(o), " ")
2302
- }[e.key];
2303
- d && (e.preventDefault(), d() && h(() => this.focusKeyRow()));
2348
+ }, f = a === r.length - 1 && n === this.filteredColumn;
2349
+ if (e.key === "ArrowDown" && f && this.focusMatch(0)) return e.preventDefault();
2350
+ let p = d[e.key];
2351
+ p && (e.preventDefault(), p() && h(() => this.focusKeyRow()));
2304
2352
  }
2305
2353
  focusKeyRow() {
2306
- let e = Math.max(0, this.selectedDepth), t = this.keyItemIn(e)?.id;
2354
+ let e = Math.max(0, this.selectedDepth);
2355
+ this.focusItemRow(e, this.keyItemIn(e)?.id);
2356
+ }
2357
+ focusItemRow(e, t) {
2307
2358
  if (t === void 0) return;
2308
2359
  let n = this.domElement.renderRoot.querySelector(`ul[data-depth="${e}"]`), r = n?.querySelector(`li[data-id="${CSS.escape(t)}"]`);
2309
2360
  r?.focus({ preventScroll: !0 }), r && n && revealIn(n, r);
@@ -2320,7 +2371,7 @@ var mt = /* @__PURE__ */ z("<slot>"), ht = /* @__PURE__ */ z("<div class=empty><
2320
2371
  });
2321
2372
  }
2322
2373
  };
2323
- Y = n(J), Zn = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), rr = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), u(Y, 4, "hasNoMatches", Jn, Z, Zn), u(Y, 2, "isFiltering", qn, Z), u(Y, 2, "ariaIsMany", Kn, Z), u(Y, 2, "ariaName", Gn, Z), u(Y, 2, "isColumns", Wn, Z), u(Y, 4, "pathFolded", Un, Z, Qn), u(Y, 4, "treeWidthPx", Hn, Z, $n), u(Y, 1, "watchTreeWidth", Vn, Z), u(Y, 1, "onPathLineChanged", Bn, Z), u(Y, 1, "onClicked", zn, Z), u(Y, 4, "openPath", Rn, Z, er), u(Y, 1, "onPathChanged", Ln, Z), u(Y, 4, "rowsVersion", In, Z, tr), u(Y, 2, "toolsElement", Fn, Z), u(Y, 1, "onCanRoveChanged", Pn, Z), u(Y, 1, "onKeyDown", Nn, Z), u(Y, 2, "columnSizes", Mn, Z), u(Y, 4, "columnWidths", jn, Z, nr), u(Y, 4, "everyColumnWidth", An, Z, rr), u(Y, 4, "fitWidths", kn, Z, ir), u(Y, 4, "defaultWidthPx", On, Z, ar), u(Y, 4, "emPx", Dn, Z, or), u(Y, 4, "remPx", En, Z, sr), u(Y, 4, "isResizing", Tn, Z, cr), u(Y, 1, "onConnectedInColumns", wn, Z), u(Y, 1, "onFitKeyChanged", Cn, Z), u(Y, 4, "textTracks", Sn, Z, lr), u(Y, 1, "onTextTrackSourcesChanged", xn, Z), u(Y, 2, "detailElement", bn, Z), u(Y, 4, "detailWidth", yn, Z, ur), u(Y, 4, "detailWidthPx", vn, Z, dr), u(Y, 1, "onDetailItemChanged", _n, Z), u(Y, 1, "onDetailSizeChanged", gn, Z), u(Y, 4, "boxWidthPx", hn, Z, fr), u(Y, 4, "narrowWidthPx", mn, Z, pr), u(Y, 4, "hoveredColumn", pn, Z, mr), u(Y, 4, "focusedColumn", fn, Z, hr), u(Y, 1, "watchBoxWidth", dn, Z), u(Y, 1, "onPointerOver", un, Z), u(Y, 1, "onPointerLeft", ln, Z), u(Y, 1, "onFocusIn", cn, Z), u(Y, 1, "onFocusOut", sn, Z), u(Y, 1, "onNarrowColumnsChanged", on, Z), u(Y, 4, "pathRows", an, Z, gr), u(Y, 1, "watchScrolling", rn, Z), u(Y, 1, "onFilterChanged", nn, Z), u(Y, 4, "hadFilter", tn, Z, _r), u(Y, 4, "filterColumn", en, Z, vr), u(Y, 1, "onFilterBaseChanged", $t, Z), u(Y, 1, "onRowsChanged", Qt, Z), u(Y, 4, "otherMatches", Zt, Z, yr), u(Y, 4, "otherMatchCount", Xt, Z, br), u(Y, 4, "isLooking", Yt, Z, xr), u(Y, 4, "didStopLooking", Jt, Z, X), u(Y, 4, "childrenVersion", qt, Z, Sr), u(Y, 4, "wentBack", Kt, Z, Cr), u(Y, 1, "onOpenPathChanged", Gt, Z), u(Y, 13, "vocabulary", Xn, Z), u(Y, 13, "elementSetup", Yn, Z), f(Y, Z), i(Z, "UITree"), r(Z, "vocabulary", p(Y, 120, Z, we)), p(Y, 123, Z), r(Z, "elementSetup", p(Y, 124, Z, {
2374
+ J = n(q), Qn = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), rr = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), or = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), cr = /* @__PURE__ */ new WeakMap(), lr = /* @__PURE__ */ new WeakMap(), ur = /* @__PURE__ */ new WeakMap(), dr = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), Cr = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), u(J, 4, "hasNoMatches", Yn, X, Qn), u(J, 2, "isFiltering", Jn, X), u(J, 2, "ariaIsMany", qn, X), u(J, 2, "ariaName", Kn, X), u(J, 2, "isColumns", Gn, X), u(J, 4, "pathFolded", Wn, X, $n), u(J, 4, "treeWidthPx", Un, X, er), u(J, 1, "watchTreeWidth", Hn, X), u(J, 1, "onPathLineChanged", Vn, X), u(J, 1, "onClicked", Bn, X), u(J, 4, "openPath", zn, X, tr), u(J, 1, "onPathChanged", Rn, X), u(J, 4, "rowsVersion", Ln, X, nr), u(J, 2, "toolsElement", In, X), u(J, 1, "onCanRoveChanged", Fn, X), u(J, 1, "onKeyDown", Pn, X), u(J, 2, "columnSizes", Nn, X), u(J, 4, "columnWidths", Mn, X, rr), u(J, 4, "everyColumnWidth", jn, X, ir), u(J, 4, "fitWidths", An, X, ar), u(J, 4, "defaultWidthPx", kn, X, or), u(J, 4, "emPx", On, X, sr), u(J, 4, "remPx", Dn, X, cr), u(J, 4, "isResizing", En, X, lr), u(J, 1, "onConnectedInColumns", Tn, X), u(J, 1, "onFitKeyChanged", wn, X), u(J, 4, "textTracks", Cn, X, ur), u(J, 1, "onTextTrackSourcesChanged", Sn, X), u(J, 2, "detailElement", xn, X), u(J, 4, "detailWidth", bn, X, dr), u(J, 4, "detailWidthPx", yn, X, fr), u(J, 1, "onDetailItemChanged", vn, X), u(J, 1, "onDetailSizeChanged", _n, X), u(J, 4, "boxWidthPx", gn, X, pr), u(J, 4, "narrowWidthPx", hn, X, mr), u(J, 4, "hoveredColumn", mn, X, hr), u(J, 4, "focusedColumn", pn, X, gr), u(J, 1, "watchBoxWidth", fn, X), u(J, 1, "onPointerOver", dn, X), u(J, 1, "onPointerLeft", un, X), u(J, 1, "onFocusIn", ln, X), u(J, 1, "onFocusOut", cn, X), u(J, 1, "onNarrowColumnsChanged", sn, X), u(J, 4, "pathRows", on, X, _r), u(J, 1, "watchScrolling", an, X), u(J, 1, "onFilterChanged", rn, X), u(J, 4, "hadFilter", nn, X, vr), u(J, 4, "filterColumn", tn, X, yr), u(J, 1, "onFilterBaseChanged", en, X), u(J, 1, "onRowsChanged", $t, X), u(J, 4, "otherMatches", Qt, X, br), u(J, 4, "otherMatchCount", Zt, X, xr), u(J, 4, "isLooking", Xt, X, Sr), u(J, 4, "didStopLooking", Yt, X, Y), u(J, 4, "childrenVersion", Jt, X, Cr), u(J, 4, "wentBack", qt, X, wr), u(J, 1, "onOpenPathChanged", Kt, X), u(J, 13, "vocabulary", Zn, X), u(J, 13, "elementSetup", Xn, X), f(J, X), i(X, "UITree"), r(X, "vocabulary", p(J, 120, X, we)), p(J, 123, X), r(X, "elementSetup", p(J, 124, X, {
2324
2375
  styleSheets: {
2325
2376
  tree: De,
2326
2377
  columns: Oe
@@ -2328,8 +2379,8 @@ Y = n(J), Zn = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap()
2328
2379
  delegatesFocus: !1,
2329
2380
  aria: { role: "tree" },
2330
2381
  DOMElement: DOMTreeElement
2331
- })), p(Y, 127, Z), r(Z, "madeStore");
2332
- var wr = Z;
2382
+ })), p(J, 127, X), r(X, "madeStore");
2383
+ var Tr = X;
2333
2384
  function trimmedWidths(e) {
2334
2385
  let t = [...e];
2335
2386
  for (; t.length && t.at(-1) === void 0;) t.pop();
@@ -2341,9 +2392,13 @@ function wordsOf(e) {
2341
2392
  }
2342
2393
  i(wordsOf, "wordsOf");
2343
2394
  function isMatchClick(e) {
2344
- return e.composedPath().some((e) => e.classList?.contains("match"));
2395
+ return !!matchBoxOf(e);
2345
2396
  }
2346
2397
  i(isMatchClick, "isMatchClick");
2398
+ function matchBoxOf(e) {
2399
+ return e.composedPath().find((e) => !!e.classList?.contains("match"));
2400
+ }
2401
+ i(matchBoxOf, "matchBoxOf");
2347
2402
  function foldedNamesFor(e, { current: t, room: n, separator: r, folded: i, least: a, fewest: o }) {
2348
2403
  for (let s = 0; s < t; s++) {
2349
2404
  let c = e.slice(s), l = c.length + +!!s, u = c.reduce((e, t) => e + t, 0) + (s ? i : 0) + (l - 1) * r - n, d = !0;
@@ -2366,7 +2421,7 @@ function revealIn(e, t) {
2366
2421
  n - i < e.scrollTop ? e.scrollTop = n - i : n + r > e.scrollTop + e.clientHeight && (e.scrollTop = n + r - e.clientHeight);
2367
2422
  }
2368
2423
  i(revealIn, "revealIn");
2369
- var Tr = "…", Er = " › ", Dr = 1.5, Or = 2.4, kr = [2, 3], Ar = 200, Q = 1e5, jr = "many", Mr = .3, Nr = "columns", Pr = "var(--_ui-tree-column-width)", Fr = "var(--_ui-tree-narrow-width)", Ir = "ui-tree", Lr = "widths:", Rr = "path:", zr = "ui-tree-item[open], ui-tree-item[selected]", Br = "ui-tree-column-widths", Vr = 16, Hr = 3, $ = 80, Ur = 16, Wr = 10, Gr = {
2424
+ var Er = "…", Z = " › ", Dr = 1.5, Or = 2.4, kr = [2, 3], Ar = 200, Q = 1e5, jr = "many", Mr = .3, Nr = "columns", Pr = "var(--_ui-tree-column-width)", Fr = "var(--_ui-tree-narrow-width)", Ir = "ui-tree", Lr = "widths:", Rr = "path:", zr = "ui-tree-item[open], ui-tree-item[selected]", Br = "ui-tree-column-widths", Vr = 16, Hr = 3, $ = 80, Ur = 16, Wr = 10, Gr = {
2370
2425
  ArrowLeft: -1,
2371
2426
  ArrowRight: 1
2372
2427
  };
@@ -2375,7 +2430,7 @@ he([
2375
2430
  "pointerdown",
2376
2431
  "keydown",
2377
2432
  "dblclick"
2378
- ]), wr.define(), K.define();
2379
- export { DOMTreeElement, wr as UITree, K as UITreeItem };
2433
+ ]), Tr.define(), G.define();
2434
+ export { DOMTreeElement, Tr as UITree, G as UITreeItem };
2380
2435
 
2381
2436
  //# sourceMappingURL=ui-tree.js.map