dawn-ui-react 1.0.0-beta.5 → 1.0.0-beta.7

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 (501) hide show
  1. package/README.md +9 -7
  2. package/dist/index.d.mts +4185 -0
  3. package/dist/index.mjs +9721 -0
  4. package/dist/index.mjs.map +1 -0
  5. package/dist/styles.css +6 -0
  6. package/package.json +45 -59
  7. package/dist/components/accordion/accordion-header.d.ts +0 -2
  8. package/dist/components/accordion/accordion-icon.d.ts +0 -2
  9. package/dist/components/accordion/accordion-item.d.ts +0 -2
  10. package/dist/components/accordion/accordion-panel.d.ts +0 -2
  11. package/dist/components/accordion/accordion-subtitle.d.ts +0 -2
  12. package/dist/components/accordion/accordion-title.d.ts +0 -2
  13. package/dist/components/accordion/accordion.d.ts +0 -2
  14. package/dist/components/accordion/accordion.types.d.ts +0 -18
  15. package/dist/components/accordion/index.d.ts +0 -8
  16. package/dist/components/alert/alert-action.d.ts +0 -2
  17. package/dist/components/alert/alert-description.d.ts +0 -2
  18. package/dist/components/alert/alert-icon.d.ts +0 -2
  19. package/dist/components/alert/alert-title.d.ts +0 -2
  20. package/dist/components/alert/alert.d.ts +0 -2
  21. package/dist/components/alert/alert.types.d.ts +0 -9
  22. package/dist/components/alert/index.d.ts +0 -6
  23. package/dist/components/alert-dialog/alert-dialog-close.d.ts +0 -2
  24. package/dist/components/alert-dialog/alert-dialog-confirm.d.ts +0 -2
  25. package/dist/components/alert-dialog/alert-dialog-context.d.ts +0 -10
  26. package/dist/components/alert-dialog/alert-dialog-description.d.ts +0 -2
  27. package/dist/components/alert-dialog/alert-dialog-footer.d.ts +0 -2
  28. package/dist/components/alert-dialog/alert-dialog-header.d.ts +0 -2
  29. package/dist/components/alert-dialog/alert-dialog-icon.d.ts +0 -2
  30. package/dist/components/alert-dialog/alert-dialog-popup.d.ts +0 -2
  31. package/dist/components/alert-dialog/alert-dialog-title.d.ts +0 -2
  32. package/dist/components/alert-dialog/alert-dialog-trigger.d.ts +0 -2
  33. package/dist/components/alert-dialog/alert-dialog.d.ts +0 -2
  34. package/dist/components/alert-dialog/alert-dialog.types.d.ts +0 -16
  35. package/dist/components/alert-dialog/index.d.ts +0 -11
  36. package/dist/components/autocomplete/autocomplete-collection.d.ts +0 -2
  37. package/dist/components/autocomplete/autocomplete-content.d.ts +0 -2
  38. package/dist/components/autocomplete/autocomplete-grid-content.d.ts +0 -2
  39. package/dist/components/autocomplete/autocomplete-grid-item.d.ts +0 -2
  40. package/dist/components/autocomplete/autocomplete-group-label.d.ts +0 -2
  41. package/dist/components/autocomplete/autocomplete-group.d.ts +0 -2
  42. package/dist/components/autocomplete/autocomplete-input-group-addon.d.ts +0 -2
  43. package/dist/components/autocomplete/autocomplete-input-group-input.d.ts +0 -2
  44. package/dist/components/autocomplete/autocomplete-input-group.d.ts +0 -2
  45. package/dist/components/autocomplete/autocomplete-item.d.ts +0 -2
  46. package/dist/components/autocomplete/autocomplete-row.d.ts +0 -2
  47. package/dist/components/autocomplete/autocomplete-status.d.ts +0 -2
  48. package/dist/components/autocomplete/autocomplete-trigger.d.ts +0 -2
  49. package/dist/components/autocomplete/autocomplete.d.ts +0 -2
  50. package/dist/components/autocomplete/autocomplete.types.d.ts +0 -23
  51. package/dist/components/autocomplete/index.d.ts +0 -15
  52. package/dist/components/avatar/avatar-badge.d.ts +0 -2
  53. package/dist/components/avatar/avatar-fallback.d.ts +0 -2
  54. package/dist/components/avatar/avatar-image.d.ts +0 -2
  55. package/dist/components/avatar/avatar.d.ts +0 -2
  56. package/dist/components/avatar/avatar.types.d.ts +0 -14
  57. package/dist/components/avatar/index.d.ts +0 -5
  58. package/dist/components/badge/badge.d.ts +0 -2
  59. package/dist/components/badge/badge.types.d.ts +0 -8
  60. package/dist/components/badge/index.d.ts +0 -2
  61. package/dist/components/bento-box/bento-box-action.d.ts +0 -2
  62. package/dist/components/bento-box/bento-box-content.d.ts +0 -2
  63. package/dist/components/bento-box/bento-box-description.d.ts +0 -2
  64. package/dist/components/bento-box/bento-box-footer.d.ts +0 -2
  65. package/dist/components/bento-box/bento-box-header.d.ts +0 -2
  66. package/dist/components/bento-box/bento-box-title.d.ts +0 -2
  67. package/dist/components/bento-box/bento-box.d.ts +0 -2
  68. package/dist/components/bento-box/bento-box.types.d.ts +0 -11
  69. package/dist/components/bento-box/index.d.ts +0 -8
  70. package/dist/components/breadcrumb/breadcrumb-ellipsis.d.ts +0 -2
  71. package/dist/components/breadcrumb/breadcrumb-item.d.ts +0 -2
  72. package/dist/components/breadcrumb/breadcrumb-link.d.ts +0 -2
  73. package/dist/components/breadcrumb/breadcrumb-separator.d.ts +0 -2
  74. package/dist/components/breadcrumb/breadcrumb.d.ts +0 -2
  75. package/dist/components/breadcrumb/breadcrumb.types.d.ts +0 -5
  76. package/dist/components/breadcrumb/index.d.ts +0 -6
  77. package/dist/components/button/button.d.ts +0 -2
  78. package/dist/components/button/button.types.d.ts +0 -8
  79. package/dist/components/button/index.d.ts +0 -2
  80. package/dist/components/button-group/button-group.d.ts +0 -2
  81. package/dist/components/button-group/button-group.types.d.ts +0 -8
  82. package/dist/components/button-group/index.d.ts +0 -2
  83. package/dist/components/chart/chart-container.d.ts +0 -5
  84. package/dist/components/chart/chart-legend-content.d.ts +0 -8
  85. package/dist/components/chart/chart-legend-icon.d.ts +0 -2
  86. package/dist/components/chart/chart-legend-indicator.d.ts +0 -2
  87. package/dist/components/chart/chart-legend-label.d.ts +0 -2
  88. package/dist/components/chart/chart-legend.d.ts +0 -2
  89. package/dist/components/chart/chart-linear-gradient.d.ts +0 -2
  90. package/dist/components/chart/chart-tooltip-content.d.ts +0 -4
  91. package/dist/components/chart/chart-tooltip-icon.d.ts +0 -2
  92. package/dist/components/chart/chart-tooltip-indicator.d.ts +0 -2
  93. package/dist/components/chart/chart-tooltip-label.d.ts +0 -2
  94. package/dist/components/chart/chart-tooltip-name.d.ts +0 -2
  95. package/dist/components/chart/chart-tooltip-payload.d.ts +0 -5
  96. package/dist/components/chart/chart-tooltip-value.d.ts +0 -2
  97. package/dist/components/chart/chart-tooltip.d.ts +0 -2
  98. package/dist/components/chart/chart.types.d.ts +0 -50
  99. package/dist/components/chart/chart.utils.d.ts +0 -11
  100. package/dist/components/chart/index.d.ts +0 -19
  101. package/dist/components/checkbox/checkbox-indicator.d.ts +0 -2
  102. package/dist/components/checkbox/checkbox.d.ts +0 -2
  103. package/dist/components/checkbox/checkbox.types.d.ts +0 -10
  104. package/dist/components/checkbox/index.d.ts +0 -3
  105. package/dist/components/checkbox-group/checkbox-group.d.ts +0 -3
  106. package/dist/components/checkbox-group/checkbox-group.types.d.ts +0 -2
  107. package/dist/components/checkbox-group/index.d.ts +0 -2
  108. package/dist/components/code-block/code-block-actions.d.ts +0 -2
  109. package/dist/components/code-block/code-block-copy.d.ts +0 -3
  110. package/dist/components/code-block/code-block-download.d.ts +0 -3
  111. package/dist/components/code-block/code-block-header.d.ts +0 -3
  112. package/dist/components/code-block/code-block-name.d.ts +0 -2
  113. package/dist/components/code-block/code-block-select.d.ts +0 -2
  114. package/dist/components/code-block/code-block-tabs.d.ts +0 -2
  115. package/dist/components/code-block/code-block-window.d.ts +0 -2
  116. package/dist/components/code-block/code-block.d.ts +0 -4
  117. package/dist/components/code-block/code-block.types.d.ts +0 -26
  118. package/dist/components/code-block/index.d.ts +0 -10
  119. package/dist/components/collapsible/collapsible-panel.d.ts +0 -2
  120. package/dist/components/collapsible/collapsible-trigger.d.ts +0 -2
  121. package/dist/components/collapsible/collapsible.d.ts +0 -2
  122. package/dist/components/collapsible/collapsible.types.d.ts +0 -5
  123. package/dist/components/collapsible/index.d.ts +0 -4
  124. package/dist/components/color-channel-slider/color-channel-slider.d.ts +0 -2
  125. package/dist/components/color-channel-slider/color-channel-slider.types.d.ts +0 -8
  126. package/dist/components/color-channel-slider/color-channel-slider.utils.d.ts +0 -4
  127. package/dist/components/color-channel-slider/index.d.ts +0 -2
  128. package/dist/components/color-picker/color-picker-area.d.ts +0 -2
  129. package/dist/components/color-picker/color-picker-group.d.ts +0 -2
  130. package/dist/components/color-picker/color-picker-hue-slider.d.ts +0 -2
  131. package/dist/components/color-picker/color-picker-input.d.ts +0 -3
  132. package/dist/components/color-picker/color-picker-label.d.ts +0 -2
  133. package/dist/components/color-picker/color-picker-lightness-slider.d.ts +0 -2
  134. package/dist/components/color-picker/color-picker-palette-add.d.ts +0 -2
  135. package/dist/components/color-picker/color-picker-palette-limit.d.ts +0 -2
  136. package/dist/components/color-picker/color-picker-palette-list.d.ts +0 -2
  137. package/dist/components/color-picker/color-picker-palette-swatch.d.ts +0 -2
  138. package/dist/components/color-picker/color-picker-row.d.ts +0 -2
  139. package/dist/components/color-picker/color-picker-transparency-slider.d.ts +0 -2
  140. package/dist/components/color-picker/color-picker-value-type.d.ts +0 -2
  141. package/dist/components/color-picker/color-picker.d.ts +0 -4
  142. package/dist/components/color-picker/color-picker.types.d.ts +0 -111
  143. package/dist/components/color-picker/index.d.ts +0 -14
  144. package/dist/components/combobox/combobox-chip.d.ts +0 -2
  145. package/dist/components/combobox/combobox-chips.d.ts +0 -2
  146. package/dist/components/combobox/combobox-collection.d.ts +0 -2
  147. package/dist/components/combobox/combobox-empty.d.ts +0 -2
  148. package/dist/components/combobox/combobox-group-label.d.ts +0 -2
  149. package/dist/components/combobox/combobox-group.d.ts +0 -2
  150. package/dist/components/combobox/combobox-input.d.ts +0 -3
  151. package/dist/components/combobox/combobox-item.d.ts +0 -2
  152. package/dist/components/combobox/combobox-list.d.ts +0 -2
  153. package/dist/components/combobox/combobox-popup.d.ts +0 -2
  154. package/dist/components/combobox/combobox-status.d.ts +0 -2
  155. package/dist/components/combobox/combobox-trigger.d.ts +0 -2
  156. package/dist/components/combobox/combobox-value.d.ts +0 -2
  157. package/dist/components/combobox/combobox-virtualized-list.d.ts +0 -3
  158. package/dist/components/combobox/combobox.d.ts +0 -2
  159. package/dist/components/combobox/combobox.types.d.ts +0 -31
  160. package/dist/components/combobox/index.d.ts +0 -16
  161. package/dist/components/context-menu/context-menu-checkbox-item.d.ts +0 -2
  162. package/dist/components/context-menu/context-menu-group-label.d.ts +0 -2
  163. package/dist/components/context-menu/context-menu-group.d.ts +0 -2
  164. package/dist/components/context-menu/context-menu-item.d.ts +0 -2
  165. package/dist/components/context-menu/context-menu-popup.d.ts +0 -2
  166. package/dist/components/context-menu/context-menu-radio-group.d.ts +0 -2
  167. package/dist/components/context-menu/context-menu-radio-item.d.ts +0 -2
  168. package/dist/components/context-menu/context-menu-separator.d.ts +0 -2
  169. package/dist/components/context-menu/context-menu-shortcut.d.ts +0 -2
  170. package/dist/components/context-menu/context-menu-submenu-trigger.d.ts +0 -2
  171. package/dist/components/context-menu/context-menu-submenu.d.ts +0 -2
  172. package/dist/components/context-menu/context-menu-trigger.d.ts +0 -2
  173. package/dist/components/context-menu/context-menu.d.ts +0 -2
  174. package/dist/components/context-menu/context-menu.types.d.ts +0 -21
  175. package/dist/components/context-menu/index.d.ts +0 -14
  176. package/dist/components/dialog/dialog-close.d.ts +0 -2
  177. package/dist/components/dialog/dialog-content.d.ts +0 -2
  178. package/dist/components/dialog/dialog-description.d.ts +0 -2
  179. package/dist/components/dialog/dialog-footer.d.ts +0 -2
  180. package/dist/components/dialog/dialog-header.d.ts +0 -2
  181. package/dist/components/dialog/dialog-icon.d.ts +0 -2
  182. package/dist/components/dialog/dialog-popup.d.ts +0 -2
  183. package/dist/components/dialog/dialog-title.d.ts +0 -2
  184. package/dist/components/dialog/dialog-trigger.d.ts +0 -2
  185. package/dist/components/dialog/dialog.d.ts +0 -2
  186. package/dist/components/dialog/dialog.types.d.ts +0 -13
  187. package/dist/components/dialog/index.d.ts +0 -12
  188. package/dist/components/drawer/drawer-close.d.ts +0 -2
  189. package/dist/components/drawer/drawer-content.d.ts +0 -2
  190. package/dist/components/drawer/drawer-description.d.ts +0 -2
  191. package/dist/components/drawer/drawer-header.d.ts +0 -2
  192. package/dist/components/drawer/drawer-popup.d.ts +0 -2
  193. package/dist/components/drawer/drawer-provider.d.ts +0 -2
  194. package/dist/components/drawer/drawer-title.d.ts +0 -2
  195. package/dist/components/drawer/drawer-trigger.d.ts +0 -2
  196. package/dist/components/drawer/drawer.d.ts +0 -2
  197. package/dist/components/drawer/drawer.types.d.ts +0 -10
  198. package/dist/components/drawer/index.d.ts +0 -10
  199. package/dist/components/dropzone/dropzone-actions.d.ts +0 -2
  200. package/dist/components/dropzone/dropzone-clear.d.ts +0 -2
  201. package/dist/components/dropzone/dropzone-confirm.d.ts +0 -2
  202. package/dist/components/dropzone/dropzone-container.d.ts +0 -2
  203. package/dist/components/dropzone/dropzone-error.d.ts +0 -2
  204. package/dist/components/dropzone/dropzone-file-limit.d.ts +0 -2
  205. package/dist/components/dropzone/dropzone-file-size-limit.d.ts +0 -2
  206. package/dist/components/dropzone/dropzone-files-header.d.ts +0 -2
  207. package/dist/components/dropzone/dropzone-files-list.d.ts +0 -2
  208. package/dist/components/dropzone/dropzone-files-title.d.ts +0 -2
  209. package/dist/components/dropzone/dropzone-files.d.ts +0 -2
  210. package/dist/components/dropzone/dropzone-formats.d.ts +0 -2
  211. package/dist/components/dropzone/dropzone-heading.d.ts +0 -2
  212. package/dist/components/dropzone/dropzone-icon.d.ts +0 -2
  213. package/dist/components/dropzone/dropzone-info.d.ts +0 -2
  214. package/dist/components/dropzone/dropzone-subtitle.d.ts +0 -2
  215. package/dist/components/dropzone/dropzone-trigger.d.ts +0 -2
  216. package/dist/components/dropzone/dropzone.d.ts +0 -24
  217. package/dist/components/dropzone/dropzone.types.d.ts +0 -30
  218. package/dist/components/dropzone/dropzone.utils.d.ts +0 -3
  219. package/dist/components/dropzone/index.d.ts +0 -18
  220. package/dist/components/field/field-checkbox.d.ts +0 -2
  221. package/dist/components/field/field-description.d.ts +0 -2
  222. package/dist/components/field/field-errors.d.ts +0 -2
  223. package/dist/components/field/field-input-group-input.d.ts +0 -2
  224. package/dist/components/field/field-input-group.d.ts +0 -2
  225. package/dist/components/field/field-input.d.ts +0 -2
  226. package/dist/components/field/field-label.d.ts +0 -2
  227. package/dist/components/field/field-radio-group.d.ts +0 -2
  228. package/dist/components/field/field-radio.d.ts +0 -2
  229. package/dist/components/field/field-row.d.ts +0 -2
  230. package/dist/components/field/field-select.d.ts +0 -2
  231. package/dist/components/field/field-set.d.ts +0 -2
  232. package/dist/components/field/field-slider.d.ts +0 -2
  233. package/dist/components/field/field-switch.d.ts +0 -2
  234. package/dist/components/field/field-text-area.d.ts +0 -2
  235. package/dist/components/field/field-toggle.d.ts +0 -2
  236. package/dist/components/field/field.d.ts +0 -2
  237. package/dist/components/field/field.types.d.ts +0 -33
  238. package/dist/components/field/index.d.ts +0 -18
  239. package/dist/components/form/form-context.d.ts +0 -182
  240. package/dist/components/form/form-contexts.d.ts +0 -1
  241. package/dist/components/form/form-errors.d.ts +0 -2
  242. package/dist/components/form/form-footer.d.ts +0 -2
  243. package/dist/components/form/form-reset.d.ts +0 -2
  244. package/dist/components/form/form-set-content.d.ts +0 -2
  245. package/dist/components/form/form-set-heading.d.ts +0 -2
  246. package/dist/components/form/form-set.d.ts +0 -2
  247. package/dist/components/form/form-submit.d.ts +0 -2
  248. package/dist/components/form/form.d.ts +0 -3
  249. package/dist/components/form/form.types.d.ts +0 -17
  250. package/dist/components/form/index.d.ts +0 -10
  251. package/dist/components/index.d.ts +0 -56
  252. package/dist/components/input/index.d.ts +0 -2
  253. package/dist/components/input/input.d.ts +0 -2
  254. package/dist/components/input/input.types.d.ts +0 -19
  255. package/dist/components/input-group/index.d.ts +0 -5
  256. package/dist/components/input-group/input-group-addon.d.ts +0 -2
  257. package/dist/components/input-group/input-group-input.d.ts +0 -2
  258. package/dist/components/input-group/input-group-separator.d.ts +0 -2
  259. package/dist/components/input-group/input-group.d.ts +0 -2
  260. package/dist/components/input-group/input-group.types.d.ts +0 -11
  261. package/dist/components/input-otp/index.d.ts +0 -4
  262. package/dist/components/input-otp/input-otp-separator.d.ts +0 -2
  263. package/dist/components/input-otp/input-otp-slot.d.ts +0 -2
  264. package/dist/components/input-otp/input-otp.d.ts +0 -2
  265. package/dist/components/input-otp/input-otp.types.d.ts +0 -4
  266. package/dist/components/kbd/index.d.ts +0 -2
  267. package/dist/components/kbd/kbd-group.d.ts +0 -2
  268. package/dist/components/kbd/kbd.d.ts +0 -2
  269. package/dist/components/kbd/kbd.types.d.ts +0 -2
  270. package/dist/components/label/index.d.ts +0 -2
  271. package/dist/components/label/label.d.ts +0 -2
  272. package/dist/components/label/label.types.d.ts +0 -5
  273. package/dist/components/layer-tree/index.d.ts +0 -17
  274. package/dist/components/layer-tree/layer-tree-body.d.ts +0 -2
  275. package/dist/components/layer-tree/layer-tree-context.d.ts +0 -373
  276. package/dist/components/layer-tree/layer-tree-expand-all.d.ts +0 -2
  277. package/dist/components/layer-tree/layer-tree-footer.d.ts +0 -2
  278. package/dist/components/layer-tree/layer-tree-icon-cell.d.ts +0 -2
  279. package/dist/components/layer-tree/layer-tree-locked-all.d.ts +0 -2
  280. package/dist/components/layer-tree/layer-tree-locked-cell.d.ts +0 -2
  281. package/dist/components/layer-tree/layer-tree-row.d.ts +0 -2
  282. package/dist/components/layer-tree/layer-tree-search.d.ts +0 -2
  283. package/dist/components/layer-tree/layer-tree-sort.d.ts +0 -2
  284. package/dist/components/layer-tree/layer-tree-text-cell.d.ts +0 -2
  285. package/dist/components/layer-tree/layer-tree-trigger-cell.d.ts +0 -3
  286. package/dist/components/layer-tree/layer-tree-utils.d.ts +0 -86
  287. package/dist/components/layer-tree/layer-tree-visibility-all.d.ts +0 -2
  288. package/dist/components/layer-tree/layer-tree-visibility-cell.d.ts +0 -2
  289. package/dist/components/layer-tree/layer-tree.d.ts +0 -8
  290. package/dist/components/layer-tree/layer-tree.types.d.ts +0 -107
  291. package/dist/components/menu/index.d.ts +0 -14
  292. package/dist/components/menu/menu-checkbox-item.d.ts +0 -2
  293. package/dist/components/menu/menu-group-label.d.ts +0 -2
  294. package/dist/components/menu/menu-group.d.ts +0 -2
  295. package/dist/components/menu/menu-item.d.ts +0 -2
  296. package/dist/components/menu/menu-popup.d.ts +0 -2
  297. package/dist/components/menu/menu-radio-group.d.ts +0 -2
  298. package/dist/components/menu/menu-radio-item.d.ts +0 -2
  299. package/dist/components/menu/menu-separator.d.ts +0 -2
  300. package/dist/components/menu/menu-shortcut.d.ts +0 -2
  301. package/dist/components/menu/menu-submenu-trigger.d.ts +0 -2
  302. package/dist/components/menu/menu-submenu.d.ts +0 -2
  303. package/dist/components/menu/menu-trigger.d.ts +0 -2
  304. package/dist/components/menu/menu.d.ts +0 -2
  305. package/dist/components/menu/menu.types.d.ts +0 -21
  306. package/dist/components/meter/index.d.ts +0 -9
  307. package/dist/components/meter/meter-footer.d.ts +0 -2
  308. package/dist/components/meter/meter-header.d.ts +0 -2
  309. package/dist/components/meter/meter-indicator.d.ts +0 -2
  310. package/dist/components/meter/meter-label.d.ts +0 -2
  311. package/dist/components/meter/meter-subtitle.d.ts +0 -2
  312. package/dist/components/meter/meter-track.d.ts +0 -2
  313. package/dist/components/meter/meter-value.d.ts +0 -2
  314. package/dist/components/meter/meter.d.ts +0 -2
  315. package/dist/components/meter/meter.types.d.ts +0 -15
  316. package/dist/components/nav-bar/index.d.ts +0 -5
  317. package/dist/components/nav-bar/nav-bar-item-icon.d.ts +0 -2
  318. package/dist/components/nav-bar/nav-bar-item-label.d.ts +0 -2
  319. package/dist/components/nav-bar/nav-bar-item.d.ts +0 -2
  320. package/dist/components/nav-bar/nav-bar.d.ts +0 -2
  321. package/dist/components/nav-bar/nav-bar.types.d.ts +0 -15
  322. package/dist/components/navigation-menu/index.d.ts +0 -9
  323. package/dist/components/navigation-menu/navigation-menu-content.d.ts +0 -2
  324. package/dist/components/navigation-menu/navigation-menu-icon.d.ts +0 -2
  325. package/dist/components/navigation-menu/navigation-menu-item.d.ts +0 -2
  326. package/dist/components/navigation-menu/navigation-menu-link.d.ts +0 -2
  327. package/dist/components/navigation-menu/navigation-menu-list.d.ts +0 -2
  328. package/dist/components/navigation-menu/navigation-menu-popup.d.ts +0 -2
  329. package/dist/components/navigation-menu/navigation-menu-trigger.d.ts +0 -6
  330. package/dist/components/navigation-menu/navigation-menu.d.ts +0 -2
  331. package/dist/components/navigation-menu/navigation-menu.types.d.ts +0 -16
  332. package/dist/components/number-field/index.d.ts +0 -2
  333. package/dist/components/number-field/number-field.d.ts +0 -3
  334. package/dist/components/number-field/number-field.types.d.ts +0 -10
  335. package/dist/components/popover/index.d.ts +0 -10
  336. package/dist/components/popover/popover-button.d.ts +0 -2
  337. package/dist/components/popover/popover-content.d.ts +0 -2
  338. package/dist/components/popover/popover-description.d.ts +0 -2
  339. package/dist/components/popover/popover-header.d.ts +0 -2
  340. package/dist/components/popover/popover-panel.d.ts +0 -2
  341. package/dist/components/popover/popover-title.d.ts +0 -2
  342. package/dist/components/popover/popover-trigger.d.ts +0 -2
  343. package/dist/components/popover/popover.d.ts +0 -2
  344. package/dist/components/popover/popover.types.d.ts +0 -11
  345. package/dist/components/preview-card/index.d.ts +0 -4
  346. package/dist/components/preview-card/preview-card-popup.d.ts +0 -2
  347. package/dist/components/preview-card/preview-card-trigger.d.ts +0 -2
  348. package/dist/components/preview-card/preview-card.d.ts +0 -2
  349. package/dist/components/preview-card/preview-card.types.d.ts +0 -4
  350. package/dist/components/profile/index.d.ts +0 -6
  351. package/dist/components/profile/profile-action.d.ts +0 -2
  352. package/dist/components/profile/profile-content.d.ts +0 -2
  353. package/dist/components/profile/profile-name.d.ts +0 -2
  354. package/dist/components/profile/profile-subname.d.ts +0 -2
  355. package/dist/components/profile/profile.d.ts +0 -2
  356. package/dist/components/profile/profile.types.d.ts +0 -8
  357. package/dist/components/progress/index.d.ts +0 -4
  358. package/dist/components/progress/progress-bar.d.ts +0 -2
  359. package/dist/components/progress/progress-indicator.d.ts +0 -2
  360. package/dist/components/progress/progress.d.ts +0 -2
  361. package/dist/components/progress/progress.types.d.ts +0 -8
  362. package/dist/components/radar-ping/index.d.ts +0 -2
  363. package/dist/components/radar-ping/radar-ping.d.ts +0 -2
  364. package/dist/components/radar-ping/radar-ping.types.d.ts +0 -8
  365. package/dist/components/radio-group/index.d.ts +0 -3
  366. package/dist/components/radio-group/radio-group.d.ts +0 -3
  367. package/dist/components/radio-group/radio-group.types.d.ts +0 -7
  368. package/dist/components/radio-group/radio.d.ts +0 -2
  369. package/dist/components/resizeable/index.d.ts +0 -4
  370. package/dist/components/resizeable/resizeable-handle.d.ts +0 -2
  371. package/dist/components/resizeable/resizeable-panel-group.d.ts +0 -2
  372. package/dist/components/resizeable/resizeable-panel.d.ts +0 -2
  373. package/dist/components/resizeable/resizeable.types.d.ts +0 -6
  374. package/dist/components/scroll-area/index.d.ts +0 -2
  375. package/dist/components/scroll-area/scroll-area.d.ts +0 -2
  376. package/dist/components/scroll-area/scroll-area.types.d.ts +0 -10
  377. package/dist/components/select/index.d.ts +0 -12
  378. package/dist/components/select/select-description.d.ts +0 -2
  379. package/dist/components/select/select-group-label.d.ts +0 -2
  380. package/dist/components/select/select-group.d.ts +0 -2
  381. package/dist/components/select/select-icon.d.ts +0 -2
  382. package/dist/components/select/select-item.d.ts +0 -2
  383. package/dist/components/select/select-list.d.ts +0 -2
  384. package/dist/components/select/select-popup.d.ts +0 -2
  385. package/dist/components/select/select-title.d.ts +0 -2
  386. package/dist/components/select/select-trigger.d.ts +0 -2
  387. package/dist/components/select/select-value.d.ts +0 -2
  388. package/dist/components/select/select.d.ts +0 -2
  389. package/dist/components/select/select.types.d.ts +0 -22
  390. package/dist/components/separator/index.d.ts +0 -2
  391. package/dist/components/separator/separator.d.ts +0 -2
  392. package/dist/components/separator/separator.types.d.ts +0 -11
  393. package/dist/components/sidebar/index.d.ts +0 -17
  394. package/dist/components/sidebar/sidebar-content.d.ts +0 -2
  395. package/dist/components/sidebar/sidebar-footer.d.ts +0 -2
  396. package/dist/components/sidebar/sidebar-group-content.d.ts +0 -2
  397. package/dist/components/sidebar/sidebar-group-label.d.ts +0 -2
  398. package/dist/components/sidebar/sidebar-group.d.ts +0 -2
  399. package/dist/components/sidebar/sidebar-header.d.ts +0 -2
  400. package/dist/components/sidebar/sidebar-menu-badge.d.ts +0 -2
  401. package/dist/components/sidebar/sidebar-menu-button.d.ts +0 -2
  402. package/dist/components/sidebar/sidebar-menu-collapsible-panel.d.ts +0 -2
  403. package/dist/components/sidebar/sidebar-menu-collapsible-trigger.d.ts +0 -2
  404. package/dist/components/sidebar/sidebar-menu-collapsible.d.ts +0 -2
  405. package/dist/components/sidebar/sidebar-menu-item.d.ts +0 -2
  406. package/dist/components/sidebar/sidebar-menu.d.ts +0 -2
  407. package/dist/components/sidebar/sidebar-provider.d.ts +0 -14
  408. package/dist/components/sidebar/sidebar-toggle.d.ts +0 -2
  409. package/dist/components/sidebar/sidebar.d.ts +0 -3
  410. package/dist/components/sidebar/sidebar.types.d.ts +0 -29
  411. package/dist/components/skeleton/index.d.ts +0 -2
  412. package/dist/components/skeleton/skeleton.d.ts +0 -2
  413. package/dist/components/skeleton/skeleton.types.d.ts +0 -1
  414. package/dist/components/slider/index.d.ts +0 -3
  415. package/dist/components/slider/slider-thumb.d.ts +0 -3
  416. package/dist/components/slider/slider.d.ts +0 -2
  417. package/dist/components/slider/slider.types.d.ts +0 -18
  418. package/dist/components/switch/index.d.ts +0 -2
  419. package/dist/components/switch/switch.d.ts +0 -2
  420. package/dist/components/switch/switch.types.d.ts +0 -4
  421. package/dist/components/table/index.d.ts +0 -39
  422. package/dist/components/table/table-badge-cell.d.ts +0 -2
  423. package/dist/components/table/table-body.d.ts +0 -2
  424. package/dist/components/table/table-checkbox-cell.d.ts +0 -2
  425. package/dist/components/table/table-column-toggle.d.ts +0 -2
  426. package/dist/components/table/table-container.d.ts +0 -2
  427. package/dist/components/table/table-context.d.ts +0 -414
  428. package/dist/components/table/table-date-cell.d.ts +0 -2
  429. package/dist/components/table/table-date-filter-chip.d.ts +0 -3
  430. package/dist/components/table/table-date-filter-form.d.ts +0 -3
  431. package/dist/components/table/table-filter-list.d.ts +0 -2
  432. package/dist/components/table/table-filter-menu.d.ts +0 -2
  433. package/dist/components/table/table-first-page.d.ts +0 -2
  434. package/dist/components/table/table-footer.d.ts +0 -2
  435. package/dist/components/table/table-header.d.ts +0 -2
  436. package/dist/components/table/table-image-cell.d.ts +0 -2
  437. package/dist/components/table/table-last-page.d.ts +0 -2
  438. package/dist/components/table/table-nav.d.ts +0 -2
  439. package/dist/components/table/table-next-page.d.ts +0 -2
  440. package/dist/components/table/table-number-cell.d.ts +0 -2
  441. package/dist/components/table/table-number-filter-chip.d.ts +0 -3
  442. package/dist/components/table/table-number-filter-form.d.ts +0 -3
  443. package/dist/components/table/table-pagination.d.ts +0 -2
  444. package/dist/components/table/table-paging.d.ts +0 -2
  445. package/dist/components/table/table-previous-page.d.ts +0 -2
  446. package/dist/components/table/table-results.d.ts +0 -3
  447. package/dist/components/table/table-search.d.ts +0 -3
  448. package/dist/components/table/table-select-filter-chip.d.ts +0 -3
  449. package/dist/components/table/table-select-filter-form.d.ts +0 -3
  450. package/dist/components/table/table-select-header.d.ts +0 -2
  451. package/dist/components/table/table-sort-chip.d.ts +0 -3
  452. package/dist/components/table/table-sort-list.d.ts +0 -2
  453. package/dist/components/table/table-sort-menu.d.ts +0 -2
  454. package/dist/components/table/table-string-filter-chip.d.ts +0 -3
  455. package/dist/components/table/table-string-filter-form.d.ts +0 -3
  456. package/dist/components/table/table-text-cell.d.ts +0 -2
  457. package/dist/components/table/table-toolbar.d.ts +0 -2
  458. package/dist/components/table/table-view-mode-toggle.d.ts +0 -2
  459. package/dist/components/table/table-viewport.d.ts +0 -2
  460. package/dist/components/table/table.types.d.ts +0 -169
  461. package/dist/components/table/table.utils.d.ts +0 -30
  462. package/dist/components/tabs/index.d.ts +0 -6
  463. package/dist/components/tabs/tabs-indicator.d.ts +0 -2
  464. package/dist/components/tabs/tabs-list.d.ts +0 -2
  465. package/dist/components/tabs/tabs-panel.d.ts +0 -2
  466. package/dist/components/tabs/tabs-tab.d.ts +0 -2
  467. package/dist/components/tabs/tabs.d.ts +0 -2
  468. package/dist/components/tabs/tabs.types.d.ts +0 -15
  469. package/dist/components/text-area/index.d.ts +0 -2
  470. package/dist/components/text-area/text-area.d.ts +0 -3
  471. package/dist/components/text-area/text-area.types.d.ts +0 -5
  472. package/dist/components/toast/anchored-toast-item.d.ts +0 -2
  473. package/dist/components/toast/anchored-toasts.d.ts +0 -2
  474. package/dist/components/toast/index.d.ts +0 -27
  475. package/dist/components/toast/stack-toast-item.d.ts +0 -3
  476. package/dist/components/toast/stack-toasts.d.ts +0 -2
  477. package/dist/components/toast/toast-manager.d.ts +0 -19
  478. package/dist/components/toast/toast-provider.d.ts +0 -2
  479. package/dist/components/toast/toast.types.d.ts +0 -21
  480. package/dist/components/toggle/index.d.ts +0 -2
  481. package/dist/components/toggle/toggle.d.ts +0 -2
  482. package/dist/components/toggle/toggle.types.d.ts +0 -9
  483. package/dist/components/toggle-group/index.d.ts +0 -2
  484. package/dist/components/toggle-group/toggle-group-context.d.ts +0 -5
  485. package/dist/components/toggle-group/toggle-group.d.ts +0 -2
  486. package/dist/components/toggle-group/toggle-group.types.d.ts +0 -7
  487. package/dist/components/tooltip/index.d.ts +0 -4
  488. package/dist/components/tooltip/tooltip-context.d.ts +0 -2
  489. package/dist/components/tooltip/tooltip-trigger.d.ts +0 -2
  490. package/dist/components/tooltip/tooltip.d.ts +0 -2
  491. package/dist/components/tooltip/tooltip.types.d.ts +0 -9
  492. package/dist/dawn-ui-react.js +0 -64842
  493. package/dist/dawn-ui-react.umd.cjs +0 -217
  494. package/dist/hooks/index.d.ts +0 -2
  495. package/dist/hooks/theme/constants.d.ts +0 -4
  496. package/dist/hooks/theme/index.d.ts +0 -3
  497. package/dist/hooks/theme/types.d.ts +0 -16
  498. package/dist/hooks/theme/use-theme.d.ts +0 -3
  499. package/dist/hooks/use-media-query.d.ts +0 -6
  500. package/dist/index.d.ts +0 -3
  501. package/dist/utils/cn.d.ts +0 -2
@@ -1,217 +0,0 @@
1
- (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`,`react-dom`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.dawnUIReact={},e.React,e.jsxRuntime,e.ReactDOM))})(this,function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),d=(e,t)=>{let n={};for(var r in e)a(n,r,{get:e[r],enumerable:!0});return t||a(n,Symbol.toStringTag,{value:`Module`}),n},f=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e},p=(e,t,n)=>(n=e==null?{}:i(c(e)),f(t||!e||!e.__esModule||!l.call(e,`default`)?a(n,`default`,{value:e,enumerable:!0}):n,e));let m=p(t,1);t=p(t),r=p(r,1);var h;process.env.NODE_ENV!==`production`&&(h=new Set);function g(...e){if(process.env.NODE_ENV!==`production`){let t=e.join(` `);h.has(t)||(h.add(t),console.error(`Base UI: ${t}`))}}function _({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=m.useRef(e!==void 0),[a,o]=m.useState(t),s=i?e:a;if(process.env.NODE_ENV!==`production`){m.useEffect(()=>{i!==(e!==void 0)&&g([`A component is changing the ${i?``:`un`}controlled ${r} state of ${n} to be ${i?`un`:``}controlled.`,`Elements should not switch from uncontrolled to controlled (or vice versa).`,`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",`More info: https://fb.me/react-controlled-components`].join(`
2
- `))},[r,n,e]);let{current:a}=m.useRef(t);m.useEffect(()=>{!i&&v(a)!==v(t)&&g([`A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
3
- `))},[t])}return[s,m.useCallback(e=>{i||o(e)},[])]}function v(e){let t=0,n=new WeakMap;try{return JSON.stringify(e,function(e,r){if(!(e===`_owner`&&this!=null&&typeof this==`object`&&`$$typeof`in this)){if(typeof r==`bigint`)return`__bigint__:${r}`;if(typeof r==`object`&&r){let e=n.get(r);if(e!==void 0)return`__object__:${e}`;n.set(r,t),t+=1}return r}})??`__top__:${typeof e}`}catch{return`__unserializable__`}}var y={...m},b={};function x(e,t){let n=m.useRef(b);return n.current===b&&(n.current=e(t)),n}var S=y.useInsertionEffect,C=S&&S!==y.useLayoutEffect?S:e=>e();function w(e){let t=x(T).current;return t.next=e,C(t.effect),t.trampoline}function T(){let e={next:void 0,callback:E,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function E(){if(process.env.NODE_ENV!==`production`)throw Error(`Base UI: Cannot call an event handler while rendering.`)}var D;process.env.NODE_ENV!==`production`&&(D=new Set);function O(...e){if(process.env.NODE_ENV!==`production`){let t=e.join(` `);D.has(t)||(D.add(t),console.warn(`Base UI: ${t}`))}}var k=typeof document<`u`?m.useLayoutEffect:()=>{},A=m.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});process.env.NODE_ENV!==`production`&&(A.displayName=`CompositeListContext`);function j(){return m.useContext(A)}function M(e){let{children:t,elementsRef:r,labelsRef:i,onMapChange:a}=e,o=w(a),[,s]=m.useState(!1),c=x(P).current,l=x(N).current,u=m.useRef(0),d=m.useRef(!0),f=m.useRef([]),p=m.useRef(null),h=w(()=>{d.current||(d.current=!0,s(e=>!e))}),g=w((e,t)=>{l.set(e,t),h()}),_=w(e=>{l.delete(e),h()}),v=w(e=>{let t=new Map;return r.current.length=0,i&&(i.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),r.current[e.index]=e.element,i&&(i.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),u.current=r.current.length,t});function y(e){if(p.current?.disconnect(),p.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!L(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&R(r,n)>0){t.disconnect(),h();return}r=n}});p.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=I(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let b=w(()=>{let[e,t]=F(l),n=v(e);y(t),f.current=e,d.current=!1,c.forEach(e=>e(n)),o(n)});k(()=>(d.current||v(f.current),()=>{r.current=[],i&&(i.current=[])}),[r,i,v]),k(()=>{d.current&&b()}),k(()=>()=>{p.current?.disconnect(),d.current=!0},[]);let S=w(e=>(c.add(e),()=>{c.delete(e)})),C=m.useMemo(()=>({register:g,unregister:_,subscribeMapChange:S,nextIndexRef:u}),[g,_,S,u]);return(0,n.jsx)(A.Provider,{value:C,children:t})}function N(){return new Map}function P(){return new Set}function F(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>R(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function I(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function L(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function R(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function z(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var B=z(`https://base-ui.com/production-error`,`Base UI`),V=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(V.displayName=`AccordionRootContext`);function H(){let e=m.useContext(V);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(10):`Base UI: AccordionRootContext is missing. Accordion parts must be placed within <Accordion.Root>.`);return e}function U(e,t,n,r){let i=x(G).current;return ee(i,e,t,n,r)&&te(i,[e,t,n,r]),i.callback}function W(e){let t=x(G).current;return K(t,e)&&te(t,e),t.callback}function G(){return{callback:null,cleanup:null,refs:[]}}function ee(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function K(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function te(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var q=parseInt(m.version,10);function ne(e){return q>=e}function re(e){if(!m.isValidElement(e))return null;let t=e,n=t.props;return(ne(19)?n?.ref:t.ref)??null}function ie(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function ae(){}var oe=Object.freeze([]),se=Object.freeze({});function ce(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function le(e,t){return typeof e==`function`?e(t):e}function ue(e,t){return typeof e==`function`?e(t):e}var de={};function fe(e,t,n,r,i){if(!n&&!r&&!i&&!e)return me(t);let a=me(e);return t&&(a=he(a,t)),n&&(a=he(a,n)),r&&(a=he(a,r)),i&&(a=he(a,i)),a}function pe(e){if(e.length===0)return de;if(e.length===1)return me(e[0]);let t=me(e[0]);for(let n=1;n<e.length;n+=1)t=he(t,e[n]);return t}function me(e){return ye(e)?{...be(e,de)}:ge(e)}function he(e,t){return ye(t)?be(t,e):_e(e,t)}function ge(e){let t={...e};for(let e in t){let n=t[e];ve(e,n)&&(t[e]=Se(n))}return t}function _e(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=ie(e.style,r);break;case`className`:e[n]=we(e.className,r);break;default:e[n]=ve(n,r)?xe(e[n],r):r}}return e}function ve(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function ye(e){return typeof e==`function`}function be(e,t){return ye(e)?e(t):e??de}function xe(e,t){return t?e?(...n)=>{let r=n[0];if(Te(r)){let i=r;Ce(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:Se(t):e}function Se(e){return e&&((...t)=>{let n=t[0];return Te(n)&&Ce(n),e(...t)})}function Ce(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function we(e,t){return t?e?t+` `+e:t:e}function Te(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function J(e,t,n={}){let r=t.render,i=Ee(t,n);return n.enabled===!1?null:je(e,r,i,n.state??se)}function Ee(e,t={}){let{className:n,style:r,render:i}=e,{state:a=se,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?le(n,a):void 0,d=l?ue(r,a):void 0,f=l?ce(a,c):se,p=l&&s?De(s):void 0,m=l?ie(f,p)??{}:se;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?W([m.ref,re(i),...o]):U(m.ref,re(i),o):U(null,null)),l?(u!==void 0&&(m.className=we(m.className,u)),d!==void 0&&(m.style=ie(m.style,d)),m):se}function De(e){return Array.isArray(e)?pe(e):fe(void 0,e)}var Oe=Symbol.for(`react.lazy`),ke=/^[A-Z][A-Za-z0-9$]*$/,Ae=/[a-z]/;function je(e,t,n,r){if(t){if(typeof t==`function`)return process.env.NODE_ENV!==`production`&&Me(t),t(n,r);let e=fe(n,t.props);e.ref=n.ref;let i=t;if(i?.$$typeof===Oe&&(i=m.Children.toArray(t)[0]),process.env.NODE_ENV!==`production`&&!m.isValidElement(i))throw Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.","A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.",`https://base-ui.com/r/invalid-render-prop`].join(`
4
- `));return m.cloneElement(i,e)}if(e&&typeof e==`string`)return Ne(e,n);throw Error(process.env.NODE_ENV===`production`?B(8):`Base UI: Render element or function are not defined.`)}function Me(e){let t=e.name;t.length!==0&&ke.test(t)&&Ae.test(t)&&O(`The \`render\` prop received a function named \`${t}\` that starts with an uppercase letter.`,"This usually means a React component was passed directly as `render={Component}`.","Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.",`If this is an intentional render callback, rename it to start with a lowercase letter.`,"Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.",`https://base-ui.com/r/invalid-render-prop`)}function Ne(e,t){return e===`button`?(0,m.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,m.createElement)(`img`,{alt:``,...t,key:t.key}):m.createElement(e,t)}var Pe={value:()=>null},Fe=m.forwardRef(function(e,t){let{render:r,className:i,disabled:a=!1,hiddenUntilFound:o,keepMounted:s,loopFocus:c,onValueChange:l,multiple:u=!1,orientation:d=`vertical`,value:f,defaultValue:p,style:h,...g}=e;process.env.NODE_ENV!==`production`&&m.useEffect(()=>{o&&s===!1&&O("The `keepMounted={false}` prop on `Accordion.Root` is ignored when `hiddenUntilFound` is enabled, since panels must remain mounted while closed.")},[o,s]);let v=m.useMemo(()=>{if(f===void 0)return p??[]},[f,p]),y=m.useRef([]),[b,x]=_({controlled:f,default:v,name:`Accordion`,state:`value`}),S=w((e,t,n)=>{if(!u){let t=b[0]===e?[]:[e];if(l?.(t,n),n.isCanceled)return;x(t)}else if(t){let t=b.slice();if(t.push(e),l?.(t,n),n.isCanceled)return;x(t)}else{let t=b.filter(t=>t!==e);if(l?.(t,n),n.isCanceled)return;x(t)}}),C=m.useMemo(()=>({value:b,disabled:a,orientation:d}),[b,a,d]),T=m.useMemo(()=>({disabled:a,handleValueChange:S,hiddenUntilFound:o??!1,keepMounted:s??!1,state:C,value:b}),[a,S,o,s,C,b]),E=J(`div`,e,{state:C,ref:t,props:g,stateAttributesMapping:Pe});return(0,n.jsx)(V.Provider,{value:T,children:(0,n.jsx)(M,{elementsRef:y,children:E})})});process.env.NODE_ENV!==`production`&&(Fe.displayName=`AccordionRoot`);var Ie=0;function Le(e,t=`mui`){let[n,r]=m.useState(e),i=e||n;return m.useEffect(()=>{n??(Ie+=1,r(`${t}-${Ie}`))},[n,t]),i}var Re=y.useId;function ze(e,t){if(Re!==void 0){let n=Re();return e??(t?`${t}-${n}`:n)}return Le(e,t)}function Be(e){return ze(e,`base-ui`)}var Ve=`none`,He=`trigger-press`,Ue=`trigger-hover`,We=`trigger-focus`,Ge=`outside-press`,Ke=`item-press`,qe=`close-press`,Je=`clear-press`,Ye=`chip-remove-press`,Xe=`track-press`,Ze=`increment-press`,Qe=`decrement-press`,$e=`input-change`,et=`input-clear`,tt=`input-blur`,nt=`input-paste`,rt=`input-press`,it=`focus-out`,at=`escape-key`,ot=`close-watcher`,st=`list-navigation`,ct=`keyboard`,lt=`pointer`,ut=`drag`,dt=`wheel`,ft=`scrub`,pt=`cancel-open`,mt=`sibling-open`,ht=`disabled`,gt=`missing`,_t=`initial`,vt=`imperative-action`,yt=`swipe`,bt=`window-resize`;function Y(e,t,n,r){let i=!1,a=!1,o=r??se;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function xt(e,t,n){let r=n??se;return{reason:e,event:t??new Event(`base-ui`),...r}}function St(e){m.useEffect(e,oe)}var Ct=null,wt=globalThis.requestAnimationFrame,Tt=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;let n=process.env.NODE_ENV!==`production`&&wt!==requestAnimationFrame&&(wt=requestAnimationFrame,!0);return(!this.isScheduled||n)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Et=class e{static create(){return new e}static request(e){return Tt.request(e)}static cancel(e){return Tt.cancel(e)}currentId=Ct;request(e){this.cancel(),this.currentId=Tt.request(()=>{this.currentId=Ct,e()})}cancel=()=>{this.currentId!==Ct&&(Tt.cancel(this.currentId),this.currentId=Ct)};disposeEffect=()=>this.cancel};function Dt(){let e=x(Et.create).current;return St(e.disposeEffect),e}function Ot(e,t=!1,n=!1){let[r,i]=m.useState(e&&t?`idle`:void 0),[a,o]=m.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),k(()=>{if(!e&&a&&r!==`ending`&&n){let e=Et.request(()=>{i(`ending`)});return()=>{Et.cancel(e)}}},[e,a,r,n]),k(()=>{if(!e||t)return;let n=Et.request(()=>{i(void 0)});return()=>{Et.cancel(n)}},[t,e]),k(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Et.request(()=>{i(`idle`)});return()=>{Et.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function kt(e){let{open:t,defaultOpen:n,onOpenChange:r,disabled:i}=e,[a,o]=_({controlled:t,default:n,name:`Collapsible`,state:`open`}),{mounted:s,setMounted:c,transitionStatus:l}=Ot(a,!0,!0),u=Be(),[d,f]=m.useState(),p=d===null?void 0:d??u,h=w(e=>{let t=!a,n=Y(He,e.nativeEvent);r(t,n),!n.isCanceled&&o(t)});return m.useMemo(()=>({defaultPanelId:u,disabled:i,handleTrigger:h,mounted:s,open:a,panelId:p,setMounted:c,setOpen:o,setPanelIdState:f,transitionStatus:l}),[u,i,h,s,a,p,c,o,f,l])}var At=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(At.displayName=`CollapsibleRootContext`);function jt(){let e=m.useContext(At);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(15):`Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>.`);return e}function Mt(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=j(),u=m.useRef(-1),[d,f]=m.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,h=m.useRef(null),g=m.useCallback(e=>{let t=h.current;t&&s(t),h.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return k(()=>{if(a==null)return c(e=>{let t=h.current?e.get(h.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:g,index:p}}var Nt=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Nt.displayName=`AccordionItemContext`);function Pt(){let e=m.useContext(Nt);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(9):`Base UI: AccordionItemContext is missing. Accordion parts must be placed within <Accordion.Item>.`);return e}var Ft=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),It={"data-starting-style":``},Lt={"data-ending-style":``},Rt={transitionStatus(e){return e===`starting`?It:e===`ending`?Lt:null}},zt=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Ft.startingStyle]=`startingStyle`,e[e.endingStyle=Ft.endingStyle]=`endingStyle`,e}({}),Bt=function(e){return e.panelOpen=`data-panel-open`,e}({}),Vt={[zt.open]:``},Ht={[zt.closed]:``},Ut={open(e){return e?{[Bt.panelOpen]:``}:null}},Wt={open(e){return e?Vt:Ht}},Gt=function(e){return e.index=`data-index`,e.disabled=`data-disabled`,e.open=`data-open`,e}({}),Kt={...Wt,index:e=>({[Gt.index]:String(e)}),...Rt,value:()=>null},qt=m.forwardRef(function(e,t){let{className:r,disabled:i=!1,onOpenChange:a,render:o,value:s,style:c,...l}=e,{ref:u,index:d}=Mt(),f=U(t,u),{disabled:p,handleValueChange:h,state:g,value:_}=H(),v=Be(),y=s??v,b=i||p,x=_.indexOf(y)!==-1,S=w((e,t)=>{a?.(e,t),!t.isCanceled&&h(y,e,t)}),C=kt({open:x,onOpenChange:S,disabled:b}),T=m.useMemo(()=>({open:C.open,disabled:C.disabled,transitionStatus:C.transitionStatus}),[C.open,C.disabled,C.transitionStatus]),E=m.useMemo(()=>({...C,onOpenChange:S,state:T}),[C,T,S]),D=m.useMemo(()=>({...g,hidden:!x&&!C.mounted,index:d,disabled:b,open:x}),[C.mounted,b,d,x,g]),O=Be(),[k,A]=m.useState(),j=k===null?void 0:k??O,M=m.useMemo(()=>({defaultTriggerId:O,open:x,state:D,setTriggerId:A,triggerId:j}),[O,x,D,A,j]),N=J(`div`,e,{state:D,ref:f,props:l,stateAttributesMapping:Kt});return(0,n.jsx)(At.Provider,{value:E,children:(0,n.jsx)(Nt.Provider,{value:M,children:N})})});process.env.NODE_ENV!==`production`&&(qt.displayName=`AccordionItem`);var Jt=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=Pt();return J(`h3`,e,{state:o,ref:t,props:a,stateAttributesMapping:Kt})});process.env.NODE_ENV!==`production`&&(Jt.displayName=`AccordionHeader`);function Yt(){return typeof window<`u`}function Xt(e){return $t(e)?(e.nodeName||``).toLowerCase():`#document`}function Zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qt(e){return(($t(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function $t(e){return Yt()?e instanceof Node||e instanceof Zt(e).Node:!1}function en(e){return Yt()?e instanceof Element||e instanceof Zt(e).Element:!1}function tn(e){return Yt()?e instanceof HTMLElement||e instanceof Zt(e).HTMLElement:!1}function nn(e){return!Yt()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Zt(e).ShadowRoot}function rn(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function an(e){return/^(table|td|th)$/.test(Xt(e))}function on(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var sn=/transform|translate|scale|rotate|perspective|filter/,cn=/paint|layout|strict|content/,ln=e=>!!e&&e!==`none`,un;function dn(e){let t=en(e)?hn(e):e;return ln(t.transform)||ln(t.translate)||ln(t.scale)||ln(t.rotate)||ln(t.perspective)||!pn()&&(ln(t.backdropFilter)||ln(t.filter))||sn.test(t.willChange||``)||cn.test(t.contain||``)}function fn(e){let t=_n(e);for(;tn(t)&&!mn(t);){if(dn(t))return t;if(on(t))return null;t=_n(t)}return null}function pn(){return un??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),un}function mn(e){return/^(html|body|#document)$/.test(Xt(e))}function hn(e){return Zt(e).getComputedStyle(e)}function gn(e){return en(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _n(e){if(Xt(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||nn(e)&&e.host||Qt(e);return nn(t)?t.host:t}function vn(e){let t=_n(e);return mn(t)?(e.ownerDocument||e).body:tn(t)&&rn(t)?t:vn(t)}function yn(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=vn(e),i=r===e.ownerDocument?.body,a=Zt(r);if(i){let e=bn(a);return t.concat(a,a.visualViewport||[],rn(r)?r:[],e&&n?yn(e):[])}return t.concat(r,yn(r,[],n))}function bn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var xn=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(xn.displayName=`CompositeRootContext`);function Sn(e=!1){let t=m.useContext(xn);if(t===void 0&&!e)throw Error(process.env.NODE_ENV===`production`?B(16):`Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.`);return t}function eee(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:m.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Cn(e){return e?.ownerDocument||document}function wn(e,t,{detail:n=0}={}){e.dispatchEvent(new(Zt(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Tn(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=m.useRef(null),s=Sn(!0),c=a??s!==void 0,{props:l}=eee({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i});process.env.NODE_ENV!==`production`&&m.useEffect(()=>{if(!o.current)return;let e=En(o.current);i?e||g(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${y.captureOwnerStack?.()||``}`):e&&g(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${y.captureOwnerStack?.()||``}`)},[i]);let u=m.useCallback(()=>{let e=o.current;En(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return k(u,[u]),{getButtonProps:m.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return fe({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(Ce(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=En(r),s=!i&&Dn(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),wn(r,e));return}if(!l||i||!d&&!u){n&&s&&d&&e.preventDefault();return}e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),wn(r,e)))},onKeyUp(e){if(!t){if(Ce(e),a?.(e),e.target===e.currentTarget&&i&&c&&En(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&!e.defaultPrevented&&e.key===` `&&(e.preventBaseUIHandler(),wn(e.currentTarget,e))}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:w(e=>{o.current=e,u()})}}function En(e){return tn(e)&&e.tagName===`BUTTON`}function Dn(e){return tn(e)&&e.tagName===`A`&&!!e.href}var On=m.forwardRef(function(e,t){let{disabled:n,className:r,id:i,render:a,nativeButton:o=!0,style:s,...c}=e,{panelId:l,open:u,handleTrigger:d,disabled:f}=jt(),{getButtonProps:p,buttonRef:m}=Tn({disabled:n||f,focusableWhenDisabled:!0,native:o}),{defaultTriggerId:h,state:g,setTriggerId:_}=Pt(),v=i||void 0,y=v??h;return k(()=>(_(e=>v??(e===null?void 0:e)),()=>{_(e=>e===v?null:e)}),[v,_]),J(`button`,e,{state:g,ref:[t,m],props:[{"aria-controls":u?l:void 0,"aria-expanded":u,id:y,onClick:d},c,p],stateAttributesMapping:Ut})});process.env.NODE_ENV!==`production`&&(On.displayName=`AccordionTrigger`);function kn(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function An(e){let t=x(tee,e).current;return t.next=e,k(t.effect),t}function tee(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function jn(e){return e==null?e:`current`in e?e.current:e}function Mn(e,t=!1){let n=Dt();return w((i,a=null)=>{n.cancel();let o=jn(e);if(o==null)return;let s=o,c=()=>{r.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()},()=>{if(!a?.aborted){if(s.getAnimations().some(e=>e.pending||e.playState!==`finished`)){l();return}c()}})}if(t){let e=`data-starting-style`;if(!s.hasAttribute(e)){n.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}n.request(l)})}function Nn(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=w(i),o=Mn(r,n);m.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}var Pn={height:void 0,width:void 0};function Fn(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:i,mounted:a,onOpenChange:o,open:s,setMounted:c,setOpen:l,transitionStatus:u}=e,d=m.useRef(null),f=m.useRef(null),[p,h]=m.useState(Pn),g=m.useRef(Pn),_=m.useRef(!1),v=m.useRef(s),y=m.useRef(!1),[b,x]=m.useState(!1),S=m.useRef(null),C=U(t,d),T=An(s),E=Mn(d),D=!s&&!a,O=b?`idle`:u,A=s&&(v.current||y.current),j=!s&&a&&f.current===`css-animation`&&p.height===void 0&&p.width===void 0?g.current:p,M=n&&D&&f.current!==`css-animation`,N=w((e,t=!0)=>{t&&(g.current=e),h(e)}),P=w(()=>{S.current?.(),S.current=null}),F=w(e=>{P(),S.current=()=>{S.current=null,e()}}),I=w(()=>{s&&a&&f.current===`css-animation`&&(y.current=!0)});k(()=>{!b||u===`starting`||x(!1)},[b,u]),m.useEffect(()=>()=>{I(),P()},[I,P]),k(()=>{let e=d.current;if(!e)return;!s&&S.current&&P();let t=nee(e,A);if(f.current=t,s&&u===`idle`&&v.current&&t===`css-animation`){g.current=In(e);return}if(s&&u===`starting`){let n=_.current;if(_.current=!1,t===`none`){N(In(e)),x(!0);return}if(t===`css-transition`){let t=ree(e);if(N(In(e)),!n)return t;let r=Rn(e,`transition-duration`,`0s`);return F(r),x(!0),t}N(In(e));let r=Rn(e,`animation-name`,`none`);if(!n){r();return}let i=Rn(e,`animation-duration`,`0s`);r(),F(i),x(!0);return}if(!s&&a&&(u===`idle`||u===`starting`)){if(v.current=!1,y.current=!1,t===`none`){N(Pn,!1),c(!1);return}N(In(e));return}if(u!==`ending`)return;if(t===`none`){c(!1);return}let n=In(e);if(!(n.height>0||n.width>0)){c(!1);return}N(n),t===`css-animation`&&Rn(e,`animation-name`,`none`)()},[a,s,P,N,c,F,A,u]),Nn({enabled:s&&a&&O===`idle`,open:!0,ref:d,onComplete(){s&&N(Pn,!1)}}),m.useEffect(()=>{if(s||!a||O!==`ending`||!d.current)return;let e=new AbortController,t=-1;function n(){T.current||(c(!1),N(Pn,!1))}return t=Et.request(()=>{E(n,e.signal)}),()=>{Et.cancel(t),e.abort()}},[T,a,s,O,E,N,c]),k(()=>{let e=d.current;!e||!n||!D||e.setAttribute(`hidden`,`until-found`)},[D,n]),m.useEffect(function(){let e=d.current;if(!e)return;function t(e){let t=Y(Ve,e);o(!0,t),!t.isCanceled&&(_.current=!0,l(!0))}return kn(e,`beforematch`,t)},[o,l]);let L=i||n||a||s;return{height:j.height,props:{...M?{[zt.startingStyle]:``}:void 0,hidden:D,id:r},ref:C,shouldPreventOpenAnimation:A,shouldRender:L,transitionStatus:O,width:j.width}}function In(e){return{height:e.scrollHeight,width:e.scrollWidth}}function nee(e,t){let n=Zt(e).getComputedStyle(e),r=(n.animationName.split(`,`).map(e=>e.trim()).some(e=>e!==``&&e!==`none`)||t)&&Ln(n.animationDuration),i=Ln(n.transitionDuration);return r&&i?(process.env.NODE_ENV!==`production`&&O(`CSS transitions and CSS animations both detected on Collapsible or Accordion panel.`,`Only one of either animation type should be used.`),`css-transition`):i?`css-transition`:r?`css-animation`:`none`}function Ln(e){return e.split(`,`).map(e=>e.trim()).some(e=>e!==``&&Number.parseFloat(e)>0)}function Rn(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(r===``){e.style.removeProperty(t);return}e.style.setProperty(t,r,i)}}function ree(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)});function n(){Object.entries(t).forEach(([t,n])=>{if(n===``){e.style.removeProperty(t);return}e.style.setProperty(t,n)})}let r=Et.request(n);return()=>{Et.cancel(r),n()}}var zn=function(e){return e.accordionPanelHeight=`--accordion-panel-height`,e.accordionPanelWidth=`--accordion-panel-width`,e}({}),Bn=m.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,id:a,render:o,style:s,...c}=e,{hiddenUntilFound:l,keepMounted:u}=H(),{defaultPanelId:d,mounted:f,onOpenChange:p,open:h,setMounted:g,setOpen:_,setPanelIdState:v,transitionStatus:y}=jt(),b=r??l,x=i??u,S=a||void 0,C=a??d;process.env.NODE_ENV!==`production`&&m.useEffect(()=>{i===!1&&b&&O("The `keepMounted={false}` prop on an `Accordion.Panel` is ignored when `hiddenUntilFound` is enabled on the panel or root, since the panel must remain mounted while closed.")},[b,i]),k(()=>(v(e=>S??(e===null?void 0:e)),()=>{v(e=>e===S?null:e)}),[S,v]);let{height:w,props:T,ref:E,shouldPreventOpenAnimation:D,shouldRender:A,transitionStatus:j,width:M}=Fn({externalRef:t,hiddenUntilFound:b,id:C,keepMounted:x,mounted:f,onOpenChange:p,open:h,setMounted:g,setOpen:_,transitionStatus:y}),{state:N,triggerId:P}=Pt(),F={...N,transitionStatus:j},I=ue(s,F),L=J(`div`,{...e,style:void 0},{state:F,ref:E,props:[T,{"aria-labelledby":P,role:`region`,style:{[zn.accordionPanelHeight]:w===void 0?`auto`:`${w}px`,[zn.accordionPanelWidth]:M===void 0?`auto`:`${M}px`}},c,I?{style:I}:void 0,D?{style:{animationName:`none`}}:void 0],stateAttributesMapping:Kt});return A?L:null});process.env.NODE_ENV!==`production`&&(Bn.displayName=`AccordionPanel`);function Vn(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Vn(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Hn(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Vn(e))&&(r&&(r+=` `),r+=t);return r}var Un=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Wn=Hn,Gn=(e,t)=>n=>{if(t?.variants==null)return Wn(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Un(t)||Un(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Wn(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},iee=Gn(`flex flex-col justify-center`,{variants:{variant:{ghost:`bg-transparent`,surface:`overflow-hidden rounded-xl bg-surface shadow-2xs`}},defaultVariants:{variant:`surface`}}),aee=Gn(`group transition-all data-disabled:pointer-events-none data-disabled:opacity-50`,{variants:{tone:{brand:`[&_[data-slot=accordion-icon]]:text-brand-default [&_[data-slot=accordion-subtitle]]:text-brand-muted [&_[data-slot=accordion-title]]:text-brand-default [&:not([data-open])]:hover:bg-brand-container [&:not([data-open])]:hover:[&_[data-slot=accordion-icon]]:text-brand-on-container [&:not([data-open])]:hover:[&_[data-slot=accordion-subtitle]]:text-brand-on-container-muted [&:not([data-open])]:hover:[&_[data-slot=accordion-title]]:text-brand-on-container`,accent:`[&_[data-slot=accordion-icon]]:text-accent-default [&_[data-slot=accordion-subtitle]]:text-accent-muted [&_[data-slot=accordion-title]]:text-accent-default [&:not([data-open])]:hover:bg-accent-container [&:not([data-open])]:hover:[&_[data-slot=accordion-icon]]:text-accent-on-container [&:not([data-open])]:hover:[&_[data-slot=accordion-subtitle]]:text-accent-on-container-muted [&:not([data-open])]:hover:[&_[data-slot=accordion-title]]:text-accent-on-container`,neutral:`[&_[data-slot=accordion-icon]]:text-neutral-default [&_[data-slot=accordion-subtitle]]:text-neutral-muted [&_[data-slot=accordion-title]]:text-neutral-default [&:not([data-open])]:hover:bg-neutral-container [&:not([data-open])]:hover:[&_[data-slot=accordion-icon]]:text-neutral-on-container [&:not([data-open])]:hover:[&_[data-slot=accordion-subtitle]]:text-neutral-on-container-muted [&:not([data-open])]:hover:[&_[data-slot=accordion-title]]:text-neutral-on-container`,error:`[&_[data-slot=accordion-icon]]:text-error-default [&_[data-slot=accordion-subtitle]]:text-error-muted [&_[data-slot=accordion-title]]:text-error-default [&:not([data-open])]:hover:bg-error-container [&:not([data-open])]:hover:[&_[data-slot=accordion-icon]]:text-error-on-container [&:not([data-open])]:hover:[&_[data-slot=accordion-subtitle]]:text-error-on-container-muted [&:not([data-open])]:hover:[&_[data-slot=accordion-title]]:text-error-on-container`,info:`[&_[data-slot=accordion-icon]]:text-info-default [&_[data-slot=accordion-subtitle]]:text-info-muted [&_[data-slot=accordion-title]]:text-info-default [&:not([data-open])]:hover:bg-info-container [&:not([data-open])]:hover:[&_[data-slot=accordion-icon]]:text-info-on-container [&:not([data-open])]:hover:[&_[data-slot=accordion-subtitle]]:text-info-on-container-muted [&:not([data-open])]:hover:[&_[data-slot=accordion-title]]:text-info-on-container`,success:`[&_[data-slot=accordion-icon]]:text-success-default [&_[data-slot=accordion-subtitle]]:text-success-muted [&_[data-slot=accordion-title]]:text-success-default [&:not([data-open])]:hover:bg-success-container [&:not([data-open])]:hover:[&_[data-slot=accordion-icon]]:text-success-on-container [&:not([data-open])]:hover:[&_[data-slot=accordion-subtitle]]:text-success-on-container-muted [&:not([data-open])]:hover:[&_[data-slot=accordion-title]]:text-success-on-container`,warning:`[&_[data-slot=accordion-icon]]:text-warning-default [&_[data-slot=accordion-subtitle]]:text-warning-muted [&_[data-slot=accordion-title]]:text-warning-default [&:not([data-open])]:hover:bg-warning-container [&:not([data-open])]:hover:[&_[data-slot=accordion-icon]]:text-warning-on-container [&:not([data-open])]:hover:[&_[data-slot=accordion-subtitle]]:text-warning-on-container-muted [&:not([data-open])]:hover:[&_[data-slot=accordion-title]]:text-warning-on-container`}},defaultVariants:{tone:`brand`}}),oee=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},see=(e,t)=>({classGroupId:e,validator:t}),Kn=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),qn=`-`,Jn=[],cee=`arbitrary..`,lee=e=>{let t=dee(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return uee(e);let n=e.split(qn);return Yn(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?oee(i,t):t:i||Jn}return n[e]||Jn}}},Yn=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Yn(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(qn):e.slice(t).join(qn),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},uee=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?cee+r:void 0})(),dee=e=>{let{theme:t,classGroups:n}=e;return fee(n,t)},fee=(e,t)=>{let n=Kn();for(let r in e){let i=e[r];Xn(i,n,r,t)}return n},Xn=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Zn(i,t,n,r)}},Zn=(e,t,n,r)=>{if(typeof e==`string`){pee(e,t,n);return}if(typeof e==`function`){mee(e,t,n,r);return}Qn(e,t,n,r)},pee=(e,t,n)=>{let r=e===``?t:$n(t,e);r.classGroupId=n},mee=(e,t,n,r)=>{if(er(e)){Xn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(see(n,e))},Qn=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Xn(o,$n(t,a),n,r)}},$n=(e,t)=>{let n=e,r=t.split(qn),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Kn(),n.nextPart.set(t,i)),n=i}return n},er=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,tr=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},nr=`!`,rr=`:`,hee=[],ir=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),gee=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===rr){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(nr)?(c=s.slice(0,-1),l=!0):s.startsWith(nr)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return ir(t,l,c,u)};if(t){let e=t+rr,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ir(hee,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},_ee=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},vee=e=>({cache:tr(e.cacheSize),parseClassName:gee(e),sortModifiers:_ee(e),postfixLookupClassGroupIds:yee(e),...lee(e)}),yee=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},bee=/\s+/,xee=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(bee),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+nr:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},See=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=ar(n))&&(i&&(i+=` `),i+=r);return i},ar=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=ar(e[r]))&&(n&&(n+=` `),n+=t);return n},Cee=(e,...t)=>{let n,r,i,a,o=o=>(n=vee(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=xee(e,n);return i(e,a),a};return a=o,(...e)=>a(See(...e))},wee=[],or=e=>{let t=t=>t[e]||wee;return t.isThemeGetter=!0,t},sr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ur=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,fr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hr=e=>lr.test(e),gr=e=>!!e&&!Number.isNaN(Number(e)),_r=e=>!!e&&Number.isInteger(Number(e)),vr=e=>e.endsWith(`%`)&&gr(e.slice(0,-1)),yr=e=>ur.test(e),br=()=>!0,Tee=e=>dr.test(e)&&!fr.test(e),xr=()=>!1,Eee=e=>pr.test(e),Dee=e=>mr.test(e),Oee=e=>!Sr(e)&&!Dr(e),kee=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Aee=e=>jr(e,Fr,xr),Sr=e=>sr.test(e),Cr=e=>jr(e,Ir,Tee),wr=e=>jr(e,Ree,gr),jee=e=>jr(e,Rr,br),Mee=e=>jr(e,Lr,xr),Tr=e=>jr(e,Nr,xr),Nee=e=>jr(e,Pr,Dee),Er=e=>jr(e,zr,Eee),Dr=e=>cr.test(e),Or=e=>Mr(e,Ir),Pee=e=>Mr(e,Lr),kr=e=>Mr(e,Nr),Fee=e=>Mr(e,Fr),Iee=e=>Mr(e,Pr),Ar=e=>Mr(e,zr,!0),Lee=e=>Mr(e,Rr,!0),jr=(e,t,n)=>{let r=sr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Mr=(e,t,n=!1)=>{let r=cr.exec(e);return r?r[1]?t(r[1]):n:!1},Nr=e=>e===`position`||e===`percentage`,Pr=e=>e===`image`||e===`url`,Fr=e=>e===`length`||e===`size`||e===`bg-size`,Ir=e=>e===`length`,Ree=e=>e===`number`,Lr=e=>e===`family-name`,Rr=e=>e===`number`||e===`weight`,zr=e=>e===`shadow`,zee=Cee(()=>{let e=or(`color`),t=or(`font`),n=or(`text`),r=or(`font-weight`),i=or(`tracking`),a=or(`leading`),o=or(`breakpoint`),s=or(`container`),c=or(`spacing`),l=or(`radius`),u=or(`shadow`),d=or(`inset-shadow`),f=or(`text-shadow`),p=or(`drop-shadow`),m=or(`blur`),h=or(`perspective`),g=or(`aspect`),_=or(`ease`),v=or(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Dr,Sr],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Dr,Sr,c],T=()=>[hr,`full`,`auto`,...w()],E=()=>[_r,`none`,`subgrid`,Dr,Sr],D=()=>[`auto`,{span:[`full`,_r,Dr,Sr]},_r,Dr,Sr],O=()=>[_r,`auto`,Dr,Sr],k=()=>[`auto`,`min`,`max`,`fr`,Dr,Sr],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[hr,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[hr,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[hr,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,Dr,Sr],L=()=>[...b(),kr,Tr,{position:[Dr,Sr]}],R=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],z=()=>[`auto`,`cover`,`contain`,Fee,Aee,{size:[Dr,Sr]}],B=()=>[vr,Or,Cr],V=()=>[``,`none`,`full`,l,Dr,Sr],H=()=>[``,gr,Or,Cr],U=()=>[`solid`,`dashed`,`dotted`,`double`],W=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],G=()=>[gr,vr,kr,Tr],ee=()=>[``,`none`,m,Dr,Sr],K=()=>[`none`,gr,Dr,Sr],te=()=>[`none`,gr,Dr,Sr],q=()=>[gr,Dr,Sr],ne=()=>[hr,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[yr],breakpoint:[yr],color:[br],container:[yr],"drop-shadow":[yr],ease:[`in`,`out`,`in-out`],font:[Oee],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[yr],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[yr],shadow:[yr],spacing:[`px`,gr],text:[yr],"text-shadow":[yr],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,hr,Sr,Dr,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Dr,Sr]}],"container-named":[kee],columns:[{columns:[gr,Sr,Dr,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[_r,`auto`,Dr,Sr]}],basis:[{basis:[hr,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[gr,hr,`auto`,`initial`,`none`,Sr]}],grow:[{grow:[``,gr,Dr,Sr]}],shrink:[{shrink:[``,gr,Dr,Sr]}],order:[{order:[_r,`first`,`last`,`none`,Dr,Sr]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,Or,Cr]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Lee,jee]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,vr,Sr]}],"font-family":[{font:[Pee,Mee,t]}],"font-features":[{"font-features":[Sr]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Dr,Sr]}],"line-clamp":[{"line-clamp":[gr,`none`,Dr,wr]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Dr,Sr]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Dr,Sr]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...U(),`wavy`]}],"text-decoration-thickness":[{decoration:[gr,`from-font`,`auto`,Dr,Cr]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[gr,`auto`,Dr,Sr]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[_r,Dr,Sr]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Dr,Sr]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Dr,Sr]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:R()}],"bg-size":[{bg:z()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},_r,Dr,Sr],radial:[``,Dr,Sr],conic:[_r,Dr,Sr]},Iee,Nee]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:V()}],"rounded-s":[{"rounded-s":V()}],"rounded-e":[{"rounded-e":V()}],"rounded-t":[{"rounded-t":V()}],"rounded-r":[{"rounded-r":V()}],"rounded-b":[{"rounded-b":V()}],"rounded-l":[{"rounded-l":V()}],"rounded-ss":[{"rounded-ss":V()}],"rounded-se":[{"rounded-se":V()}],"rounded-ee":[{"rounded-ee":V()}],"rounded-es":[{"rounded-es":V()}],"rounded-tl":[{"rounded-tl":V()}],"rounded-tr":[{"rounded-tr":V()}],"rounded-br":[{"rounded-br":V()}],"rounded-bl":[{"rounded-bl":V()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-bs":[{"border-bs":H()}],"border-w-be":[{"border-be":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":H()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...U(),`hidden`,`none`]}],"divide-style":[{divide:[...U(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...U(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[gr,Dr,Sr]}],"outline-w":[{outline:[``,gr,Or,Cr]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`none`,u,Ar,Er]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ar,Er]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:H()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[gr,Cr]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,Ar,Er]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[gr,Dr,Sr]}],"mix-blend":[{"mix-blend":[...W(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":W()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[gr]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[Dr,Sr]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[gr]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:R()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Dr,Sr]}],filter:[{filter:[``,`none`,Dr,Sr]}],blur:[{blur:ee()}],brightness:[{brightness:[gr,Dr,Sr]}],contrast:[{contrast:[gr,Dr,Sr]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ar,Er]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,gr,Dr,Sr]}],"hue-rotate":[{"hue-rotate":[gr,Dr,Sr]}],invert:[{invert:[``,gr,Dr,Sr]}],saturate:[{saturate:[gr,Dr,Sr]}],sepia:[{sepia:[``,gr,Dr,Sr]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Dr,Sr]}],"backdrop-blur":[{"backdrop-blur":ee()}],"backdrop-brightness":[{"backdrop-brightness":[gr,Dr,Sr]}],"backdrop-contrast":[{"backdrop-contrast":[gr,Dr,Sr]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,gr,Dr,Sr]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[gr,Dr,Sr]}],"backdrop-invert":[{"backdrop-invert":[``,gr,Dr,Sr]}],"backdrop-opacity":[{"backdrop-opacity":[gr,Dr,Sr]}],"backdrop-saturate":[{"backdrop-saturate":[gr,Dr,Sr]}],"backdrop-sepia":[{"backdrop-sepia":[``,gr,Dr,Sr]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Dr,Sr]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[gr,`initial`,Dr,Sr]}],ease:[{ease:[`linear`,`initial`,_,Dr,Sr]}],delay:[{delay:[gr,Dr,Sr]}],animate:[{animate:[`none`,v,Dr,Sr]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Dr,Sr]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:K()}],"rotate-x":[{"rotate-x":K()}],"rotate-y":[{"rotate-y":K()}],"rotate-z":[{"rotate-z":K()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":[`scale-3d`],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[Dr,Sr,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ne()}],"translate-x":[{"translate-x":ne()}],"translate-y":[{"translate-y":ne()}],"translate-z":[{"translate-z":ne()}],"translate-none":[`translate-none`],zoom:[{zoom:[_r,Dr,Sr]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Dr,Sr]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Dr,Sr]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[gr,Or,Cr,wr]}],stroke:[{stroke:[`none`,...I()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function X(...e){return zee(Hn(e))}var Br=({withSeparator:e=!0,variant:t,className:r,children:i,ref:a,...o})=>(0,n.jsx)(Fe,{className:X(iee({variant:t,className:r}),e&&`divide-y divide-border`),ref:a,...o,children:i}),Vr=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M120.49,167.51a12,12,0,0,1,0,17l-32,32a12,12,0,0,1-17,0l-32-32a12,12,0,1,1,17-17L68,179V48a12,12,0,0,1,24,0V179l11.51-11.52A12,12,0,0,1,120.49,167.51Zm96-96-32-32a12,12,0,0,0-17,0l-32,32a12,12,0,0,0,17,17L164,77V208a12,12,0,0,0,24,0V77l11.51,11.52a12,12,0,0,0,17-17Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M176,48V208H80V48Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M119.39,172.94a8,8,0,0,1-1.73,8.72l-32,32a8,8,0,0,1-11.32,0l-32-32A8,8,0,0,1,48,168H72V48a8,8,0,0,1,16,0V168h24A8,8,0,0,1,119.39,172.94Zm94.27-98.6-32-32a8,8,0,0,0-11.32,0l-32,32A8,8,0,0,0,144,88h24V208a8,8,0,0,0,16,0V88h24a8,8,0,0,0,5.66-13.66Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M116.24,171.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48,0l-32-32a6,6,0,0,1,8.48-8.48L74,193.51V48a6,6,0,0,1,12,0V193.51l21.76-21.75A6,6,0,0,1,116.24,171.76Zm96-96-32-32a6,6,0,0,0-8.48,0l-32,32a6,6,0,0,0,8.48,8.48L170,62.49V208a6,6,0,0,0,12,0V62.49l21.76,21.75a6,6,0,0,0,8.48-8.48Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M117.66,170.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L72,188.69V48a8,8,0,0,1,16,0V188.69l18.34-18.35A8,8,0,0,1,117.66,170.34Zm96-96-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L168,67.31V208a8,8,0,0,0,16,0V67.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M114.83,173.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66,0l-32-32a4,4,0,0,1,5.66-5.66L76,198.34V48a4,4,0,0,1,8,0V198.34l25.17-25.17A4,4,0,0,1,114.83,173.17Zm96-96-32-32a4,4,0,0,0-5.66,0l-32,32a4,4,0,0,0,5.66,5.66L172,57.66V208a4,4,0,0,0,8,0V57.66l25.17,25.17a4,4,0,1,0,5.66-5.66Z`}))]]),Bee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,96l-80,80L48,96Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z`}))]]),Vee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M160,48V208L80,128Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z`}))]]),Hee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M200.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L129,128ZM72,36A12,12,0,0,0,60,48V208a12,12,0,0,0,24,0V48A12,12,0,0,0,72,36Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M192,48V208l-80-80Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M195.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,200,208V48A8,8,0,0,0,195.06,40.61ZM184,188.69,123.31,128,184,67.31ZM80,48V208a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M200,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,200,48ZM72,40a8,8,0,0,0-8,8V208a8,8,0,0,0,16,0V48A8,8,0,0,0,72,40Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M196.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L120.49,128ZM72,42a6,6,0,0,0-6,6V208a6,6,0,0,0,12,0V48A6,6,0,0,0,72,42Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M197.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L123.31,128ZM72,40a8,8,0,0,0-8,8V208a8,8,0,0,0,16,0V48A8,8,0,0,0,72,40Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M194.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L117.66,128ZM72,44a4,4,0,0,0-4,4V208a4,4,0,0,0,8,0V48A4,4,0,0,0,72,44Z`}))]]),Uee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M152.49,119.51a12,12,0,0,1,0,17l-80,80a12,12,0,0,1-17-17L127,128,55.51,56.49a12,12,0,0,1,17-17ZM184,36a12,12,0,0,0-12,12V208a12,12,0,0,0,24,0V48A12,12,0,0,0,184,36Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M144,128,64,208V48Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M69.66,42.34A8,8,0,0,0,56,48V208a8,8,0,0,0,13.66,5.66l80-80a8,8,0,0,0,0-11.32ZM72,188.69V67.31L132.69,128ZM192,48V208a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M149.66,122.34a8,8,0,0,1,0,11.32l-80,80A8,8,0,0,1,56,208V48a8,8,0,0,1,13.66-5.66ZM184,40a8,8,0,0,0-8,8V208a8,8,0,0,0,16,0V48A8,8,0,0,0,184,40Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M148.24,123.76a6,6,0,0,1,0,8.48l-80,80a6,6,0,0,1-8.48-8.48L135.51,128,59.76,52.24a6,6,0,0,1,8.48-8.48ZM184,42a6,6,0,0,0-6,6V208a6,6,0,0,0,12,0V48A6,6,0,0,0,184,42Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M149.66,122.34a8,8,0,0,1,0,11.32l-80,80a8,8,0,0,1-11.32-11.32L132.69,128,58.34,53.66A8,8,0,0,1,69.66,42.34ZM184,40a8,8,0,0,0-8,8V208a8,8,0,0,0,16,0V48A8,8,0,0,0,184,40Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M146.83,125.17a4,4,0,0,1,0,5.66l-80,80a4,4,0,0,1-5.66-5.66L138.34,128,61.17,50.83a4,4,0,0,1,5.66-5.66ZM184,44a4,4,0,0,0-4,4V208a4,4,0,0,0,8,0V48A4,4,0,0,0,184,44Z`}))]]),Wee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M176,128,96,208V48Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M181.66,122.34l-80-80A8,8,0,0,0,88,48V208a8,8,0,0,0,13.66,5.66l80-80A8,8,0,0,0,181.66,122.34ZM104,188.69V67.31L164.69,128Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M181.66,133.66l-80,80A8,8,0,0,1,88,208V48a8,8,0,0,1,13.66-5.66l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M180.24,132.24l-80,80a6,6,0,0,1-8.48-8.48L167.51,128,91.76,52.24a6,6,0,0,1,8.48-8.48l80,80A6,6,0,0,1,180.24,132.24Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z`}))]]),Gee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,160H48l80-80Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z`}))]]),Kee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M80,176h96l-48,48ZM128,32,80,80h96Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z`}))]]),qee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z`}))]]),Jee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),Yee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M236,128a108,108,0,0,1-216,0c0-42.52,24.73-81.34,63-98.9A12,12,0,1,1,93,50.91C63.24,64.57,44,94.83,44,128a84,84,0,0,0,168,0c0-33.17-19.24-63.43-49-77.09A12,12,0,1,1,173,29.1C211.27,46.66,236,85.48,236,128Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,176A72,72,0,0,1,92,65.64a8,8,0,0,1,8,13.85,56,56,0,1,0,56,0,8,8,0,0,1,8-13.85A72,72,0,0,1,128,200Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M228,128a100,100,0,0,1-200,0c0-39.4,22.9-75.37,58.33-91.63a4,4,0,1,1,3.34,7.27C57.07,58.6,36,91.71,36,128a92,92,0,0,0,184,0c0-36.29-21.07-69.4-53.67-84.36a4,4,0,1,1,3.34-7.27C205.1,52.63,228,88.6,228,128Z`}))]]),Xee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),Zee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z`}))]]),Qee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M71.51,88.49a12,12,0,0,1,17-17L116,99V24a12,12,0,0,1,24,0V99l27.51-27.52a12,12,0,0,1,17,17l-48,48a12,12,0,0,1-17,0ZM224,116H188a12,12,0,0,0,0,24h32v56H36V140H68a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116Zm-20,52a16,16,0,1,0-16,16A16,16,0,0,0,204,168Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M74.34,85.66A8,8,0,0,1,85.66,74.34L120,108.69V24a8,8,0,0,1,16,0v84.69l34.34-34.35a8,8,0,0,1,11.32,11.32l-48,48a8,8,0,0,1-11.32,0ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H84.4a4,4,0,0,1,2.83,1.17L111,145A24,24,0,0,0,145,145l23.8-23.8A4,4,0,0,1,171.6,120H224A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H72a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H184a6,6,0,0,1,0-12h40A14,14,0,0,1,238,136Zm-114.24-3.76a6,6,0,0,0,8.48,0l48-48a6,6,0,0,0-8.48-8.48L134,113.51V24a6,6,0,0,0-12,0v89.51L84.24,75.76a6,6,0,0,0-8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H72a8,8,0,0,1,0,16H32v64H224V136H184a8,8,0,0,1,0-16h40A16,16,0,0,1,240,136Zm-117.66-2.34a8,8,0,0,0,11.32,0l48-48a8,8,0,0,0-11.32-11.32L136,108.69V24a8,8,0,0,0-16,0v84.69L85.66,74.34A8,8,0,0,0,74.34,85.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H72a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H184a4,4,0,0,1,0-8h40A12,12,0,0,1,236,136Zm-110.83-5.17a4,4,0,0,0,5.66,0l48-48a4,4,0,1,0-5.66-5.66L132,118.34V24a4,4,0,0,0-8,0v94.34L82.83,77.17a4,4,0,0,0-5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z`}))]]),$ee=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z`}))]]),ete=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M234.42,162A12,12,0,1,1,213.58,174l-16.86-29.5a127.19,127.19,0,0,1-30.17,13.86L171.84,190a12,12,0,0,1-9.87,13.8,11.22,11.22,0,0,1-2,.17,12,12,0,0,1-11.82-10L143,163.17a136.5,136.5,0,0,1-30.06,0L107.84,194A12,12,0,0,1,96,204a11.22,11.22,0,0,1-2-.17A12,12,0,0,1,84.16,190l5.29-31.72a127.19,127.19,0,0,1-30.17-13.86L42.42,174A12,12,0,1,1,21.58,162L40,129.85a159.73,159.73,0,0,1-17.31-18.31A12,12,0,0,1,41.34,96.46C57.38,116.32,85.44,140,128,140s70.62-23.68,86.66-43.54a12,12,0,0,1,18.67,15.08A159.73,159.73,0,0,1,216,129.85Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M224,104c-16.81,20.81-47.63,48-96,48s-79.19-27.19-96-48c16.81-20.81,47.63-48,96-48S207.19,83.19,224,104Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M228,175a8,8,0,0,1-10.92-3l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a153.47,153.47,0,0,1-19.3-20A8,8,0,1,1,38.22,99c16.6,20.54,45.64,45,89.78,45s73.18-24.49,89.78-45A8,8,0,1,1,230.22,109a153.47,153.47,0,0,1-19.3,20l20,35A8,8,0,0,1,228,175Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M230.94,164A8,8,0,1,1,217.05,172l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a152.8,152.8,0,0,1-19.3-20,8,8,0,0,1,0-10.06C44.56,75.72,77.55,48,128,48s83.44,27.72,102.22,51a8,8,0,0,1,0,10.06,152.8,152.8,0,0,1-19.3,20Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M229.21,165a6,6,0,0,1-10.42,6l-20-35.08a122,122,0,0,1-39,18.09l6.17,37a6,6,0,0,1-4.93,6.91,6.85,6.85,0,0,1-1,.08,6,6,0,0,1-5.91-5L148,156.44a128.86,128.86,0,0,1-40,0L101.92,193A6,6,0,0,1,96,198a6.85,6.85,0,0,1-1-.08A6,6,0,0,1,90.08,191l6.17-37a122,122,0,0,1-39-18.09L37.21,171a6,6,0,1,1-10.42-6l20.85-36.48a152,152,0,0,1-20.31-20.77,6,6,0,0,1,9.34-7.54C53.54,121.11,83.07,146,128,146s74.46-24.89,91.33-45.77a6,6,0,0,1,9.34,7.54,152,152,0,0,1-20.31,20.77Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M228,175a8,8,0,0,1-10.92-3l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a153.47,153.47,0,0,1-19.3-20A8,8,0,1,1,38.22,99c16.6,20.54,45.64,45,89.78,45s73.18-24.49,89.78-45A8,8,0,1,1,230.22,109a153.47,153.47,0,0,1-19.3,20l20,35A8,8,0,0,1,228,175Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M226,171.47a3.92,3.92,0,0,1-2,.53,4,4,0,0,1-3.47-2l-21.15-37a120,120,0,0,1-41.91,19.53L164,191.34a4,4,0,0,1-3.29,4.6,3.79,3.79,0,0,1-.67.06,4,4,0,0,1-3.94-3.34l-6.41-38.5a128.17,128.17,0,0,1-43.28,0L100,192.66A4,4,0,0,1,96,196a3.88,3.88,0,0,1-.67-.06,4,4,0,0,1-3.29-4.6l6.48-38.83A120,120,0,0,1,56.62,133L35.47,170A4,4,0,0,1,32,172a3.92,3.92,0,0,1-2-.53A4,4,0,0,1,28.53,166l21.68-37.94a148.24,148.24,0,0,1-21.32-21.56,4,4,0,1,1,6.22-5C52.25,122.71,82.29,148,128,148s75.75-25.29,92.89-46.51a4,4,0,1,1,6.22,5,148.24,148.24,0,0,1-21.32,21.56L227.47,166A4,4,0,0,1,226,171.47Z`}))]]),tte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM183,80H160V57ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm100.49-72.49a12,12,0,0,1-17,17L140,153v31a12,12,0,0,1-24,0V153l-3.51,3.52a12,12,0,0,1-17-17l24-24a12,12,0,0,1,17,0Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,88H152V32Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-42.34-77.66a8,8,0,0,1-11.32,11.32L136,139.31V184a8,8,0,0,1-16,0V139.31l-10.34,10.35a8,8,0,0,1-11.32-11.32l24-24a8,8,0,0,1,11.32,0Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34Zm-56,67.32a8,8,0,0,1-11.32,0L136,139.31V184a8,8,0,0,1-16,0V139.31l-10.34,10.35a8,8,0,0,1-11.32-11.32l24-24a8,8,0,0,1,11.32,0l24,24A8,8,0,0,1,157.66,149.66ZM152,88V44l44,44Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-43.76-78.24a6,6,0,1,1-8.48,8.48L134,134.49V184a6,6,0,0,1-12,0V134.49l-13.76,13.75a6,6,0,0,1-8.48-8.48l24-24a6,6,0,0,1,8.48,0Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-42.34-77.66a8,8,0,0,1-11.32,11.32L136,139.31V184a8,8,0,0,1-16,0V139.31l-10.34,10.35a8,8,0,0,1-11.32-11.32l24-24a8,8,0,0,1,11.32,0Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-45.17-78.83a4,4,0,0,1-5.66,5.66L132,129.66V184a4,4,0,0,1-8,0V129.66l-17.17,17.17a4,4,0,0,1-5.66-5.66l24-24a4,4,0,0,1,5.66,0Z`}))]]),nte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,68H133.39l-26-29.29a20,20,0,0,0-15-6.71H40A20,20,0,0,0,20,52V200.62A19.41,19.41,0,0,0,39.38,220H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68ZM44,56H90.61l10.67,12H44ZM212,196H44V92H212Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM36,56a4,4,0,0,1,4-4H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4Z`}))]]),rte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M248.23,112.31A20,20,0,0,0,232,104H220V88a20,20,0,0,0-20-20H132L105.34,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V208a12,12,0,0,0,12,12H211.1a12,12,0,0,0,11.33-8l28.49-81.47.06-.17A20,20,0,0,0,248.23,112.31ZM92,68l28.8,21.6A12,12,0,0,0,128,92h68v12H69.77a20,20,0,0,0-18.94,13.58L44,137.15V68ZM202.59,196H48.89l23.72-68H226.37Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,88v24H69.77a8,8,0,0,0-7.59,5.47L32,208V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h72A8,8,0,0,1,208,88Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M243.36,111.81A14,14,0,0,0,232,106H214V88a14,14,0,0,0-14-14H130L101.74,52.8a14.06,14.06,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V208a6,6,0,0,0,6,6H211.1a6,6,0,0,0,5.69-4.1l28.49-85.47A14,14,0,0,0,243.36,111.81ZM40,62H93.34a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h72a2,2,0,0,1,2,2v18H69.77a14,14,0,0,0-13.28,9.57L38,171V64A2,2,0,0,1,40,62Zm193.9,58.63L206.78,202H40.33l27.54-82.63a2,2,0,0,1,1.9-1.37H232a2,2,0,0,1,1.9,2.63Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M241.72,113a11.88,11.88,0,0,0-9.73-5H212V88a12,12,0,0,0-12-12H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V208a4,4,0,0,0,4,4H211.09a4,4,0,0,0,3.79-2.74l28.49-85.47A11.86,11.86,0,0,0,241.72,113ZM40,60H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4v20H69.76a12,12,0,0,0-11.38,8.21L36,183.35V64A4,4,0,0,1,40,60Zm195.78,61.26L208.2,204H37.55L66,118.74A4,4,0,0,1,69.76,116H232a4,4,0,0,1,3.79,5.26Z`}))]]),ite=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,68H132L105.33,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V200a20,20,0,0,0,20,20H216.89A19.13,19.13,0,0,0,236,200.89V88A20,20,0,0,0,216,68Zm-4,128H44V68H92l28.8,21.6A12,12,0,0,0,128,92h84Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M224,88V200.89a7.11,7.11,0,0,1-7.11,7.11H40a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h88A8,8,0,0,1,224,88Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M232,88V200.89A15.13,15.13,0,0,1,216.89,216H40a16,16,0,0,1-16-16V64A16,16,0,0,1,40,48H93.33a16.12,16.12,0,0,1,9.6,3.2L130.67,72H216A16,16,0,0,1,232,88Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,74H130L101.73,52.8a14,14,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V200a14,14,0,0,0,14,14H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74Zm2,126.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V64a2,2,0,0,1,2-2H93.33a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h88a2,2,0,0,1,2,2Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,72H130.67L102.93,51.2a16.12,16.12,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V200a16,16,0,0,0,16,16H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72Zm0,128H40V64H93.33L123.2,86.4A8,8,0,0,0,128,88h88Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,76H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V200a12,12,0,0,0,12,12H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76Zm4,124.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V64a4,4,0,0,1,4-4H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h88a4,4,0,0,1,4,4Z`}))]]),ate=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M234.29,47.91A20,20,0,0,0,216,36H40A20,20,0,0,0,25.2,69.45l.12.14L92,140.75V216a20,20,0,0,0,31.1,16.64l32-21.33A20,20,0,0,0,164,194.66V140.75l66.67-71.16.12-.14A20,20,0,0,0,234.29,47.91Zm-91,79.89A12,12,0,0,0,140,136v56.52l-24,16V136a12,12,0,0,0-3.25-8.2L49.23,60H206.77Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M221.9,61.38,152,136v58.65a8,8,0,0,1-3.56,6.66l-32,21.33A8,8,0,0,1,104,216V136L34.1,61.38A8,8,0,0,1,40,48H216A8,8,0,0,1,221.9,61.38Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M227.81,66.76l-.08.09L160,139.17v55.49A16,16,0,0,1,152.87,208l-32,21.34A16,16,0,0,1,96,216V139.17L28.27,66.85l-.08-.09A16,16,0,0,1,40,40H216a16,16,0,0,1,11.84,26.76Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M228.77,50.34A13.8,13.8,0,0,0,216,42H40A14,14,0,0,0,29.67,65.42l.06.07L98,138.38V216a14,14,0,0,0,21.77,11.64l32-21.33A14,14,0,0,0,158,194.66V138.38l68.33-73A13.82,13.82,0,0,0,228.77,50.34Zm-11.26,6.94L147.62,131.9A6,6,0,0,0,146,136v58.66a2,2,0,0,1-.89,1.67l-32,21.33A2,2,0,0,1,110,216V136a6,6,0,0,0-1.62-4.1L38.53,57.32A2,2,0,0,1,40,54H216a1.9,1.9,0,0,1,1.83,1.19A1.86,1.86,0,0,1,217.51,57.28Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M227,51.15A11.85,11.85,0,0,0,216,44H40a12,12,0,0,0-8.88,20.07l.05.05L100,137.59V216a12,12,0,0,0,18.66,10l32-21.33a12,12,0,0,0,5.35-10V137.59l68.86-73.52A11.85,11.85,0,0,0,227,51.15Zm-8,7.5-69.9,74.62A4,4,0,0,0,148,136v58.65a4,4,0,0,1-1.78,3.33l-32,21.33A4,4,0,0,1,108,216V136a4,4,0,0,0-1.08-2.74L37.05,58.67A4,4,0,0,1,40,52H216a4,4,0,0,1,3,6.65Z`}))]]),ote=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M204,136a12,12,0,0,1-12,12H64a12,12,0,0,1,0-24H192A12,12,0,0,1,204,136Zm28-60H24a12,12,0,0,0,0,24H232a12,12,0,0,0,0-24Zm-80,96H104a12,12,0,0,0,0,24h48a12,12,0,0,0,0-24Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M200,136a8,8,0,0,1-8,8H64a8,8,0,0,1,0-16H192A8,8,0,0,1,200,136Zm32-56H24a8,8,0,0,0,0,16H232a8,8,0,0,0,0-16Zm-80,96H104a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM144,176H112a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16Zm32-40H80a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Zm32-40H48a8,8,0,0,1,0-16H208a8,8,0,0,1,0,16Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M198,136a6,6,0,0,1-6,6H64a6,6,0,0,1,0-12H192A6,6,0,0,1,198,136Zm34-54H24a6,6,0,0,0,0,12H232a6,6,0,0,0,0-12Zm-80,96H104a6,6,0,0,0,0,12h48a6,6,0,0,0,0-12Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M200,136a8,8,0,0,1-8,8H64a8,8,0,0,1,0-16H192A8,8,0,0,1,200,136Zm32-56H24a8,8,0,0,0,0,16H232a8,8,0,0,0,0-16Zm-80,96H104a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M196,136a4,4,0,0,1-4,4H64a4,4,0,0,1,0-8H192A4,4,0,0,1,196,136Zm36-52H24a4,4,0,0,0,0,8H232a4,4,0,0,0,0-8Zm-80,96H104a4,4,0,0,0,0,8h48a4,4,0,0,0,0-8Z`}))]]),ste=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),cte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z`}))]]),lte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,76H100V56a28,28,0,0,1,28-28c13.51,0,25.65,9.62,28.24,22.39a12,12,0,1,0,23.52-4.78C174.87,21.5,153.1,4,128,4A52.06,52.06,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76Zm-4,128H52V100H204Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M208,80H96V56a32,32,0,0,1,32-32c15.37,0,29.2,11,32.16,25.59a8,8,0,0,0,15.68-3.18C171.32,24.15,151.2,8,128,8A48.05,48.05,0,0,0,80,56V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm0,128H48V96H208V208Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M224,96V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V96A16,16,0,0,1,48,80H80V56A48.05,48.05,0,0,1,128,8c23.2,0,43.32,16.15,47.84,38.41a8,8,0,0,1-15.68,3.18C157.2,35,143.37,24,128,24A32,32,0,0,0,96,56V80H208A16,16,0,0,1,224,96Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,82H94V56a34,34,0,0,1,34-34c16.3,0,31,11.69,34.12,27.19a6,6,0,0,0,11.76-2.38C169.55,25.48,150.26,10,128,10A46.06,46.06,0,0,0,82,56V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82Zm2,126a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,80H96V56a32,32,0,0,1,32-32c15.37,0,29.2,11,32.16,25.59a8,8,0,0,0,15.68-3.18C171.32,24.15,151.2,8,128,8A48.05,48.05,0,0,0,80,56V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm0,128H48V96H208V208Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,84H92V56a36,36,0,0,1,36-36c17.24,0,32.75,12.38,36.08,28.8a4,4,0,1,0,7.84-1.6C167.78,26.81,149.31,12,128,12A44.05,44.05,0,0,0,84,56V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84Zm4,124a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z`}))]]),ute=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),dte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H40a6,6,0,0,1,0-12H216A6,6,0,0,1,222,128Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H40a4,4,0,0,1,0-8H216A4,4,0,0,1,220,128Z`}))]]),fte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208.49,64.47l-144,144a12,12,0,1,1-17-17l144-144a12,12,0,0,1,17,17ZM47.72,104.27A40,40,0,1,1,76,116,39.72,39.72,0,0,1,47.72,104.27ZM60,76a16,16,0,1,0,4.69-11.31A15.87,15.87,0,0,0,60,76ZM220,180a40,40,0,1,1-11.72-28.29A39.71,39.71,0,0,1,220,180Zm-24,0a15.87,15.87,0,0,0-4.69-11.32h0A16,16,0,1,0,196,180Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M95.8,56.2a28,28,0,1,1-39.6,0A28,28,0,0,1,95.8,56.2Zm104,104a28,28,0,1,0,0,39.6A28,28,0,0,0,199.8,160.2Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M205.66,61.64l-144,144a8,8,0,0,1-11.32-11.32l144-144a8,8,0,0,1,11.32,11.31ZM50.54,101.44a36,36,0,0,1,50.92-50.91h0a36,36,0,0,1-50.92,50.91ZM56,76A20,20,0,1,0,90.14,61.84h0A20,20,0,0,0,56,76ZM216,180a36,36,0,1,1-10.54-25.46h0A35.76,35.76,0,0,1,216,180Zm-16,0a20,20,0,1,0-5.86,14.14A19.87,19.87,0,0,0,200,180Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M176,172a12,12,0,1,1-12-12A12,12,0,0,1,176,172ZM92,96A12,12,0,1,0,80,84,12,12,0,0,0,92,96ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM64,84A28,28,0,1,0,92,56,28,28,0,0,0,64,84Zm128,88a28,28,0,1,0-28,28A28,28,0,0,0,192,172ZM189.66,66.34a8,8,0,0,0-11.32,0l-112,112a8,8,0,0,0,11.32,11.32l112-112A8,8,0,0,0,189.66,66.34Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M204.24,60.23l-144,144a6,6,0,0,1-8.48-8.48l144-144a6,6,0,1,1,8.48,8.49ZM52,100A34,34,0,1,1,76,110,33.78,33.78,0,0,1,52,100Zm2-24a22,22,0,1,0,6.44-15.56A21.86,21.86,0,0,0,54,76ZM214,180A34,34,0,1,1,204,156,33.78,33.78,0,0,1,214,180Zm-12,0a21.87,21.87,0,0,0-6.44-15.56h0A22,22,0,1,0,202,180Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M205.66,61.64l-144,144a8,8,0,0,1-11.32-11.32l144-144a8,8,0,0,1,11.32,11.31ZM50.54,101.44a36,36,0,0,1,50.92-50.91h0a36,36,0,0,1-50.92,50.91ZM56,76A20,20,0,1,0,90.14,61.84h0A20,20,0,0,0,56,76ZM216,180a36,36,0,1,1-10.54-25.46h0A35.76,35.76,0,0,1,216,180Zm-16,0a20,20,0,1,0-5.86,14.14A19.87,19.87,0,0,0,200,180Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M202.83,58.81l-144,144a4,4,0,0,1-5.66-5.66l144-144a4,4,0,1,1,5.66,5.65ZM53.37,98.62A32,32,0,1,1,76,108,31.82,31.82,0,0,1,53.37,98.62ZM52,76a24,24,0,1,0,7-17A23.85,23.85,0,0,0,52,76ZM212,180a32,32,0,1,1-9.37-22.63A31.82,31.82,0,0,1,212,180Zm-8,0a24,24,0,1,0-7,17A23.89,23.89,0,0,0,204,180Z`}))]]),pte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z`}))]]),mte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,128a12,12,0,0,1-12,12H48a12,12,0,0,1,0-24h68A12,12,0,0,1,128,128ZM48,76H180a12,12,0,0,0,0-24H48a12,12,0,0,0,0,24Zm52,104H48a12,12,0,0,0,0,24h52a12,12,0,0,0,0-24Zm132.49-20.49a12,12,0,0,0-17,0L196,179V112a12,12,0,0,0-24,0v67l-19.51-19.52a12,12,0,0,0-17,17l40,40a12,12,0,0,0,17,0l40-40A12,12,0,0,0,232.49,159.51Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M224,80v88l-24,24H48V64H208A16,16,0,0,1,224,80Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M128,128a8,8,0,0,1-8,8H48a8,8,0,0,1,0-16h72A8,8,0,0,1,128,128ZM48,72H184a8,8,0,0,0,0-16H48a8,8,0,0,0,0,16Zm56,112H48a8,8,0,0,0,0,16h56a8,8,0,0,0,0-16Zm125.66-21.66a8,8,0,0,0-11.32,0L192,188.69V112a8,8,0,0,0-16,0v76.69l-26.34-26.35a8,8,0,0,0-11.32,11.32l40,40a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,229.66,162.34Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,72h96a8,8,0,0,1,0,16H72a8,8,0,0,1,0-16Zm40,112H72a8,8,0,0,1,0-16h40a8,8,0,0,1,0,16Zm8-48H72a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm77.66,29.66-24,24a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L160,164.69V120a8,8,0,0,1,16,0v44.69l10.34-10.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M126,128a6,6,0,0,1-6,6H48a6,6,0,0,1,0-12h72A6,6,0,0,1,126,128ZM48,70H184a6,6,0,0,0,0-12H48a6,6,0,0,0,0,12Zm56,116H48a6,6,0,0,0,0,12h56a6,6,0,0,0,0-12Zm124.24-22.24a6,6,0,0,0-8.48,0L190,193.51V112a6,6,0,0,0-12,0v81.51l-29.76-29.75a6,6,0,0,0-8.48,8.48l40,40a6,6,0,0,0,8.48,0l40-40A6,6,0,0,0,228.24,163.76Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,128a8,8,0,0,1-8,8H48a8,8,0,0,1,0-16h72A8,8,0,0,1,128,128ZM48,72H184a8,8,0,0,0,0-16H48a8,8,0,0,0,0,16Zm56,112H48a8,8,0,0,0,0,16h56a8,8,0,0,0,0-16Zm125.66-21.66a8,8,0,0,0-11.32,0L192,188.69V112a8,8,0,0,0-16,0v76.69l-26.34-26.35a8,8,0,0,0-11.32,11.32l40,40a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,229.66,162.34Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M124,128a4,4,0,0,1-4,4H48a4,4,0,0,1,0-8h72A4,4,0,0,1,124,128ZM48,68H184a4,4,0,0,0,0-8H48a4,4,0,0,0,0,8Zm56,120H48a4,4,0,0,0,0,8h56a4,4,0,0,0,0-8Zm122.83-22.83a4,4,0,0,0-5.66,0L188,198.34V112a4,4,0,0,0-8,0v86.34l-33.17-33.17a4,4,0,0,0-5.66,5.66l40,40a4,4,0,0,0,5.66,0l40-40A4,4,0,0,0,226.83,165.17Z`}))]]),hte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M36,128a12,12,0,0,1,12-12h68a12,12,0,0,1,0,24H48A12,12,0,0,1,36,128ZM48,76h52a12,12,0,0,0,0-24H48a12,12,0,0,0,0,24ZM180,180H48a12,12,0,0,0,0,24H180a12,12,0,0,0,0-24ZM232.49,79.51l-40-40a12,12,0,0,0-17,0l-40,40a12,12,0,0,0,17,17L172,77v67a12,12,0,0,0,24,0V77l19.51,19.52a12,12,0,0,0,17-17Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M224,88v88a16,16,0,0,1-16,16H48V64H200Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M40,128a8,8,0,0,1,8-8h72a8,8,0,0,1,0,16H48A8,8,0,0,1,40,128Zm8-56h56a8,8,0,0,0,0-16H48a8,8,0,0,0,0,16ZM184,184H48a8,8,0,0,0,0,16H184a8,8,0,0,0,0-16ZM229.66,82.34l-40-40a8,8,0,0,0-11.32,0l-40,40a8,8,0,0,0,11.32,11.32L176,67.31V144a8,8,0,0,0,16,0V67.31l26.34,26.35a8,8,0,0,0,11.32-11.32Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,72h40a8,8,0,0,1,0,16H72a8,8,0,0,1,0-16Zm0,48h48a8,8,0,0,1,0,16H72a8,8,0,0,1,0-16Zm96,64H72a8,8,0,0,1,0-16h96a8,8,0,0,1,0,16Zm29.66-82.34a8,8,0,0,1-11.32,0L176,91.31V136a8,8,0,0,1-16,0V91.31l-10.34,10.35a8,8,0,0,1-11.32-11.32l24-24a8,8,0,0,1,11.32,0l24,24A8,8,0,0,1,197.66,101.66Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M42,128a6,6,0,0,1,6-6h72a6,6,0,0,1,0,12H48A6,6,0,0,1,42,128Zm6-58h56a6,6,0,0,0,0-12H48a6,6,0,0,0,0,12ZM184,186H48a6,6,0,0,0,0,12H184a6,6,0,0,0,0-12ZM228.24,83.76l-40-40a6,6,0,0,0-8.48,0l-40,40a6,6,0,0,0,8.48,8.48L178,62.49V144a6,6,0,0,0,12,0V62.49l29.76,29.75a6,6,0,0,0,8.48-8.48Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M40,128a8,8,0,0,1,8-8h72a8,8,0,0,1,0,16H48A8,8,0,0,1,40,128Zm8-56h56a8,8,0,0,0,0-16H48a8,8,0,0,0,0,16ZM184,184H48a8,8,0,0,0,0,16H184a8,8,0,0,0,0-16ZM229.66,82.34l-40-40a8,8,0,0,0-11.32,0l-40,40a8,8,0,0,0,11.32,11.32L176,67.31V144a8,8,0,0,0,16,0V67.31l26.34,26.35a8,8,0,0,0,11.32-11.32Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M44,128a4,4,0,0,1,4-4h72a4,4,0,0,1,0,8H48A4,4,0,0,1,44,128Zm4-60h56a4,4,0,0,0,0-8H48a4,4,0,0,0,0,8ZM184,188H48a4,4,0,0,0,0,8H184a4,4,0,0,0,0-8ZM226.83,85.17l-40-40a4,4,0,0,0-5.66,0l-40,40a4,4,0,0,0,5.66,5.66L180,57.66V144a4,4,0,0,0,8,0V57.66l33.17,33.17a4,4,0,1,0,5.66-5.66Z`}))]]),gte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z`}))]]),_te=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M188,184a16,16,0,1,1,16-16A16,16,0,0,1,188,184Zm36-68H180a12,12,0,0,0,0,24h40v56H36V140H76a12,12,0,0,0,0-24H32a20,20,0,0,0-20,20v64a20,20,0,0,0,20,20H224a20,20,0,0,0,20-20V136A20,20,0,0,0,224,116ZM88.49,80.49,116,53v75a12,12,0,0,0,24,0V53l27.51,27.52a12,12,0,1,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,1,0,17,17Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M232,136v64a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V136a8,8,0,0,1,8-8H224A8,8,0,0,1,232,136Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M74.34,77.66a8,8,0,0,1,0-11.32l48-48a8,8,0,0,1,11.32,0l48,48a8,8,0,0,1-11.32,11.32L136,43.31V128a8,8,0,0,1-16,0V43.31L85.66,77.66A8,8,0,0,1,74.34,77.66ZM240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16h68a4,4,0,0,1,4,4v3.46c0,13.45,11,24.79,24.46,24.54A24,24,0,0,0,152,128v-4a4,4,0,0,1,4-4h68A16,16,0,0,1,240,136Zm-40,32a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M238,136v64a14,14,0,0,1-14,14H32a14,14,0,0,1-14-14V136a14,14,0,0,1,14-14H80a6,6,0,0,1,0,12H32a2,2,0,0,0-2,2v64a2,2,0,0,0,2,2H224a2,2,0,0,0,2-2V136a2,2,0,0,0-2-2H176a6,6,0,0,1,0-12h48A14,14,0,0,1,238,136ZM84.24,76.24,122,38.49V128a6,6,0,0,0,12,0V38.49l37.76,37.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48ZM198,168a10,10,0,1,0-10,10A10,10,0,0,0,198,168Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M240,136v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V136a16,16,0,0,1,16-16H80a8,8,0,0,1,0,16H32v64H224V136H176a8,8,0,0,1,0-16h48A16,16,0,0,1,240,136ZM85.66,77.66,120,43.31V128a8,8,0,0,0,16,0V43.31l34.34,34.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,77.66ZM200,168a12,12,0,1,0-12,12A12,12,0,0,0,200,168Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M236,136v64a12,12,0,0,1-12,12H32a12,12,0,0,1-12-12V136a12,12,0,0,1,12-12H80a4,4,0,0,1,0,8H32a4,4,0,0,0-4,4v64a4,4,0,0,0,4,4H224a4,4,0,0,0,4-4V136a4,4,0,0,0-4-4H176a4,4,0,0,1,0-8h48A12,12,0,0,1,236,136ZM82.83,74.83,124,33.66V128a4,4,0,0,0,8,0V33.66l41.17,41.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66ZM196,168a8,8,0,1,0-8,8A8,8,0,0,0,196,168Z`}))]]),vte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z`}))]]),yte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z`}))]]),bte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),xte=new Map([[`bold`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z`}))],[`duotone`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),m.createElement(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`fill`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z`}))],[`regular`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z`}))],[`thin`,m.createElement(m.Fragment,null,m.createElement(`path`,{d:`M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z`}))]]),Ste=(0,m.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),Hr=m.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...h}=m.useContext(Ste);return m.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...h,...l},!!n&&m.createElement(`title`,null,n),s,c.get(a??f))});Hr.displayName=`IconBase`;var Ur=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:Vr}));Ur.displayName=`ArrowsDownUpIcon`;var Wr=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:Bee}));Wr.displayName=`CaretDownIcon`;var Gr=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:Vee}));Gr.displayName=`CaretLeftIcon`;var Kr=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:Hee}));Kr.displayName=`CaretLineLeftIcon`;var qr=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:Uee}));qr.displayName=`CaretLineRightIcon`;var Jr=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:Wee}));Jr.displayName=`CaretRightIcon`;var Yr=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:Gee}));Yr.displayName=`CaretUpIcon`;var Xr=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:Kee}));Xr.displayName=`CaretUpDownIcon`;var Zr=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:qee}));Zr.displayName=`CheckIcon`;var Qr=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:Jee}));Qr.displayName=`CheckCircleIcon`;var $r=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:Yee}));$r.displayName=`CircleNotchIcon`;var ei=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:Xee}));ei.displayName=`CopyIcon`;var ti=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:Zee}));ti.displayName=`DotsThreeIcon`;var ni=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:Qee}));ni.displayName=`DownloadIcon`;var ri=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:$ee}));ri.displayName=`EyeIcon`;var ii=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:ete}));ii.displayName=`EyeClosedIcon`;var ai=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:tte}));ai.displayName=`FileArrowUpIcon`;var oi=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:nte}));oi.displayName=`FolderIcon`;var si=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:rte}));si.displayName=`FolderOpenIcon`;var ci=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:ite}));ci.displayName=`FolderSimpleIcon`;var li=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:ate}));li.displayName=`FunnelIcon`;var ui=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:ote}));ui.displayName=`FunnelSimpleIcon`;var di=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:ste}));di.displayName=`InfoIcon`;var fi=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:cte}));fi.displayName=`LockSimpleIcon`;var pi=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:lte}));pi.displayName=`LockSimpleOpenIcon`;var mi=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:ute}));mi.displayName=`MagnifyingGlassIcon`;var hi=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:dte}));hi.displayName=`MinusIcon`;var gi=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:fte}));gi.displayName=`PercentIcon`;var _i=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:pte}));_i.displayName=`PlusIcon`;var vi=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:mte}));vi.displayName=`SortAscendingIcon`;var yi=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:hte}));yi.displayName=`SortDescendingIcon`;var bi=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:gte}));bi.displayName=`TrashIcon`;var xi=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:_te}));xi.displayName=`UploadIcon`;var Si=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:vte}));Si.displayName=`WarningIcon`;var Ci=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:yte}));Ci.displayName=`WarningCircleIcon`;var wi=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:bte}));wi.displayName=`XIcon`;var Ti=m.forwardRef((e,t)=>m.createElement(Hr,{ref:t,...e,weights:xte}));Ti.displayName=`XCircleIcon`;var Cte=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Jt,{className:X(``,e),ref:r,...i,children:(0,n.jsxs)(On,{"data-trigger":!0,className:X(`group flex h-2xl w-full items-center justify-between gap-sm pr-sm pl-md hover:cursor-pointer`),children:[(0,n.jsx)(`div`,{className:`grid auto-rows-min items-center gap-x-sm has-data-[slot=accordion-icon]:grid-cols-[auto_1fr] has-data-[slot=accordion-subtitle]:grid-rows-[auto_auto] has-data-[slot=accordion-subtitle]:**:data-[slot=accordion-icon]:row-span-2`,children:t}),(0,n.jsx)(Wr,{className:`ml-auto shrink-0 text-on-surface-variant transition-transform duration-200 ease-out group-data-panel-open:rotate-180`,weight:`bold`})]})}),wte=({tone:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(qt,{className:X(aee({className:t,tone:e})),ref:i,...a,children:r}),Tte=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Bn,{className:X(`h-(--accordion-panel-height) overflow-hidden transition-all duration-300 ease-out data-ending-style:h-[0px] data-starting-style:h-[0px]`,e),"data-panel":!0,ref:r,...i,children:(0,n.jsx)(`div`,{className:`px-md pb-sm`,children:t})}),Ete=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{"data-slot":`accordion-subtitle`,className:X(`text-left style-text-prose--1 transition-colors`,e),ref:r,...i,children:t}),Dte=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{"data-slot":`accordion-title`,className:X(`text-left style-text-strong-0 transition-colors [&:not(:has(~_[data-slot=accordion-subtitle]))]:leading-0`,e),ref:r,...i,children:t}),Ote=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{"data-slot":`accordion-icon`,className:X(`col-start-1 row-start-1 self-center transition-colors [&>svg]:size-md`,e),ref:r,...i,children:t}),kte=Gn(`group grid auto-rows-min items-center justify-start gap-x-xs rounded-xl border p-xs transition-all has-data-[slot=alert-action]:grid-cols-[1fr_auto] has-data-[slot=alert-description]:grid-rows-[auto_auto] has-data-[slot=alert-icon]:grid-cols-[auto_1fr] has-data-[slot=alert-icon]:has-data-[slot=alert-action]:grid-cols-[auto_1fr_auto] has-data-[slot=alert-description]:**:data-[slot=alert-icon]:row-span-2`,{variants:{tone:{brand:`border-brand-border bg-brand-container [&_[data-slot=alert-description]]:text-brand-on-container-muted [&_[data-slot=alert-icon]]:text-brand-on-container [&_[data-slot=alert-title]]:text-brand-on-container`,accent:`border-accent-border bg-accent-container [&_[data-slot=alert-description]]:text-accent-on-container-muted [&_[data-slot=alert-icon]]:text-accent-on-container [&_[data-slot=alert-title]]:text-accent-on-container`,neutral:`border-neutral-border bg-neutral-container [&_[data-slot=alert-description]]:text-neutral-on-container-muted [&_[data-slot=alert-icon]]:text-neutral-on-container [&_[data-slot=alert-title]]:text-neutral-on-container`,error:`border-error-border bg-error-container [&_[data-slot=alert-description]]:text-error-on-container-muted [&_[data-slot=alert-icon]]:text-error-on-container [&_[data-slot=alert-title]]:text-error-on-container`,info:`border-info-border bg-info-container [&_[data-slot=alert-description]]:text-info-on-container-muted [&_[data-slot=alert-icon]]:text-info-on-container [&_[data-slot=alert-title]]:text-info-on-container`,success:`border-success-border bg-success-container [&_[data-slot=alert-description]]:text-success-on-container-muted [&_[data-slot=alert-icon]]:text-success-on-container [&_[data-slot=alert-title]]:text-success-on-container`,warning:`border-warning-border bg-warning-container [&_[data-slot=alert-description]]:text-warning-on-container-muted [&_[data-slot=alert-icon]]:text-warning-on-container [&_[data-slot=alert-title]]:text-warning-on-container`}},defaultVariants:{tone:`brand`}}),Ei=({tone:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`div`,{className:X(kte({tone:e,className:t})),ref:i,...a,children:r}),Di=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{"data-slot":`alert-description`,className:X(`style-text-prose--1`,e),ref:r,...i,children:t}),Ate=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{"data-slot":`alert-title`,className:X(`flex items-center gap-2xs style-text-strong-0 [&:not(:has(~_[data-slot=alert-description]))]:leading-0`,e),ref:r,...i,children:t}),jte=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{"data-slot":`alert-action`,className:X(`col-[-2/-1] row-span-2 row-start-1 ml-md self-start`,e),ref:r,...i,children:t}),Oi=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{"data-slot":`alert-icon`,className:X(`col-start-1 row-start-1 self-start transition-colors [&>svg]:size-md`,e),ref:r,...i,children:t});function Mte(){if(typeof navigator>`u`)return{userAgent:``,platform:``,maxTouchPoints:0};if(process.env.NODE_ENV!==`production`){let e=navigator.userAgentData;if(e&&Array.isArray(e.brands))return{userAgent:e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `),platform:e.platform??navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}return{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Nte,platform:Pte,maxTouchPoints:Fte}=Mte(),ki=Nte.toLowerCase(),Ai=Pte.toLowerCase(),ji=/^i(os$|p)/.test(Ai)||Ai===`macintel`&&Fte>1,Mi=`android`,Ni=Ai===Mi||ki.includes(Mi),Pi=!ji&&Ai.startsWith(`mac`);Ai.startsWith(`win`),!Ni&&/^(linux|chrome os)/.test(Ai);var Fi=Pi||ji,Ii=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`),Li=!Ii&&ki.includes(`firefox`);!Ii&&ki.includes(`chrom`);var Ri=Fi,zi=/jsdom|happydom/.test(ki),Bi=0,Vi=class e{static create(){return new e}currentId=Bi;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Bi,t()},e)}isStarted(){return this.currentId!==Bi}clear=()=>{this.currentId!==Bi&&(clearTimeout(this.currentId),this.currentId=Bi)};disposeEffect=()=>this.clear};function Hi(){let e=x(Vi.create).current;return St(e.disposeEffect),e}var Ui={},Wi={},Gi=``;function Ki(e,t){return rn(e)?e:t}function qi(e,t,n){return/hidden|clip/.test(e.getComputedStyle(Ki(t,n)).overflowY)}function Ite(e){if(typeof document>`u`)return!1;let t=Cn(e);return Zt(t).innerWidth-t.documentElement.clientWidth>0}function Lte(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Cn(e),n=t.documentElement,r=t.body,i=Ki(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Rte(e){let t=Cn(e),n=t.documentElement,r=t.body,i=Ki(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function zte(e){let t=Cn(e),n=t.documentElement,r=t.body,i=Zt(n),a=0,o=0,s=!1,c=Et.create();if(Ii&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Ui={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Gi=n.style.scrollBehavior,Wi={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Ki(n,r);if(s=Lte(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Ui),Object.assign(r.style,Wi),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Gi)}function d(){u(),c.request(l)}l();let f=kn(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var Bte=new class{lockCount=0;restore=null;timeoutLock=Vi.create();timeoutUnlock=Vi.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Cn(e),n=t.documentElement,r=t.body,i=Zt(n);if(qi(i,n,r)){let t=new i.MutationObserver(()=>{qi(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=ji||!Ite(e);this.restore=a?Rte(e):zte(e)}};function Ji(e=!0,t=null){k(()=>{if(e)return Bte.acquire(t)},[e,t])}function Yi(e){e.preventDefault(),e.stopPropagation()}function Vte(e){return`nativeEvent`in e}function Xi(e){return e.pointerType===``&&e.isTrusted?!0:Ni&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Zi(e){return zi?!1:!Ni&&e.width===0&&e.height===0||Ni&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Qi(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Hte(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var Ute=`data-base-ui-focusable`,Wte=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,$i=`ArrowLeft`,ea=`ArrowRight`,Gte=`ArrowUp`,Kte=`ArrowDown`;function ta(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function na(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&nn(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function ra(e){return`composedPath`in e?e.composedPath()[0]:e.target}function ia(e,t){if(!en(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(na(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function aa(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function qte(e){return e.matches(`html,body`)}function oa(e){return tn(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function sa(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Wte}`)!=null}function ca(e){return e?e.getAttribute(`role`)===`combobox`&&oa(e):!1}function la(e){if(!e||zi)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function ua(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function da(e,t){return t!=null&&!Qi(t)?0:typeof e==`function`?e():e}function fa(e,t,n){let r=da(e,n);return typeof r==`number`?r:r?.[t]}function pa(e){return typeof e==`function`?e():e}function ma(e,t){return t||e===`click`||e===`mousedown`}function ha(e){return e?.includes(`mouse`)&&e!==`mousedown`}var ga=m.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Vi,currentIdRef:{current:null},currentContextRef:{current:null}});process.env.NODE_ENV!==`production`&&(ga.displayName=`FloatingDelayGroupContext`);function _a(e,t){e.current=t.current}function va(e){let{children:t,delay:r,timeoutMs:i=0}=e,a=m.useRef(r),o=m.useRef(r),s=m.useRef(null),c=m.useRef(null),l=Hi();return k(()=>{if(o.current=r,!s.current){a.current=r;return}a.current={open:fa(a.current,`open`),close:fa(r,`close`)}},[r,s,a,o]),(0,n.jsx)(ga.Provider,{value:m.useMemo(()=>({hasProvider:!0,delayRef:a,initialDelayRef:o,currentIdRef:s,timeoutMs:i,currentContextRef:c,timeout:l}),[i,l]),children:t})}function ya(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=m.useContext(ga),[f,p]=m.useState(!1),h=m.useRef(n);return k(()=>{h.current=n},[n]),k(()=>{function e(){l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(h.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),k(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:fa(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Y(Ve))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),k(()=>()=>{if(a.current===i){if(l.current=null,!h.current)return;a.current=null,_a(o,c),d.clear()}},[l,a,o,i,c,d]),m.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function ba(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var xa={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Sa={...xa,position:`fixed`,top:0,left:0},Ca={...xa,position:`absolute`},wa=m.forwardRef(function(e,t){let[r,i]=m.useState();k(()=>{Ri&&Ii&&i(`button`)},[]);let a={tabIndex:0,role:r};return(0,n.jsx)(`span`,{...e,ref:t,style:Sa,"aria-hidden":!r||void 0,...a,"data-base-ui-focus-guard":``})});process.env.NODE_ENV!==`production`&&(wa.displayName=`FocusGuard`);var Ta=Math.min,Ea=Math.max,Da=Math.round,Oa=Math.floor,ka=e=>({x:e,y:e}),Jte={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Aa(e,t,n){return Ea(e,Ta(t,n))}function ja(e,t){return typeof e==`function`?e(t):e}function Ma(e){return e.split(`-`)[0]}function Na(e){return e.split(`-`)[1]}function Pa(e){return e===`x`?`y`:`x`}function Fa(e){return e===`y`?`height`:`width`}function Ia(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function La(e){return Pa(Ia(e))}function Yte(e,t,n){n===void 0&&(n=!1);let r=Na(e),i=La(e),a=Fa(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Va(o)),[o,Va(o)]}function Xte(e){let t=Va(e);return[Ra(e),t,Ra(t)]}function Ra(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var za=[`left`,`right`],Ba=[`right`,`left`],Zte=[`top`,`bottom`],Qte=[`bottom`,`top`];function $te(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ba:za:t?za:Ba;case`left`:case`right`:return t?Zte:Qte;default:return[]}}function ene(e,t,n,r){let i=Na(e),a=$te(Ma(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ra)))),a}function Va(e){let t=Ma(e);return Jte[t]+e.slice(t.length)}function tne(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Ha(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:tne(e)}function Ua(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Wa(e,t,n){return Math.floor(e/t)!==n}function Ga(e,t){return t<0||t>=e.length}function Ka(e,t){return Ja(e.current,{disabledIndices:t})}function qa(e,t){return Ja(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Ja(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Ya(e,a,r));return a}function nne(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1),r=i(t,u,n[o][e]??n[o][0]);o=a[r]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Ya(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=Oa(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Ya(e,r,s))return r}};d&&Yi(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=Ja(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=Ja(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}Ga(e,f)&&(f=u)}if(n===`both`){let n=Oa(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Yi(t),u%o===o-1?r&&(f=Ja(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Ja(e,{startingIndex:u,disabledIndices:s}),r&&Wa(f,o,n)&&(f=Ja(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),Wa(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Yi(t),u%o===0?r&&(f=Ja(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Ja(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&Wa(f,o,n)&&(f=Ja(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),Wa(f,o,n)&&(f=u));let c=Oa(l/o)===n;Ga(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:Ja(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function Ya(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!Xa(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function rne(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Xa(e,t=e?hn(e):null){return!e||!e.isConnected||!t||rne(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var ine=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function ane(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return nn(n)?n.host:null}function Za(e){for(let t of Array.from(e.children))if(Xt(t)===`summary`)return t;return null}function one(e,t){let n=Za(t);return!!n&&(e===n||na(n,e))}function Qa(e){let t=e?Xt(e):``;return e!=null&&e.matches(ine)&&(t!==`summary`||e.parentElement!=null&&Xt(e.parentElement)===`details`&&Za(e.parentElement)===e)&&(t!==`details`||Za(e)==null)&&(t!==`input`||e.type!==`hidden`)}function $a(e){if(!Qa(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=ane(t)){let n=t!==e,r=Xt(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Xt(t)===`details`&&!t.open&&!one(e,t)||t.hasAttribute(`hidden`)||!r&&!sne(t,n))return!1}return!0}function sne(e,t){let n=hn(e);return t?n.display!==`none`:Xa(e,n)}function eo(e){let t=e.tabIndex;if(t<0){let t=Xt(e);if(t===`details`||t===`audio`||t===`video`||tn(e)&&e.isContentEditable)return 0}return t}function to(e){if(Xt(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function cne(e,t){let n=to(e);if(!n)return!0;let r=t.find(e=>{let t=to(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=to(e);return t?.name===n.name&&t.form===n.form})===n}function no(e){if(tn(e)&&Xt(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return tn(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function ro(e,t){no(e).forEach(e=>{Qa(e)&&t.push(e),ro(e,t)})}function io(e,t,n){no(e).forEach(e=>{tn(e)&&e.matches(t)&&n.push(e),io(e,t,n)})}function ao(e){return $a(e)&&eo(e)>=0}function oo(e){let t=[];return ro(e,t),t.filter($a)}function so(e){let t=oo(e);return t.filter(e=>eo(e)>=0&&cne(e,t))}function co(e,t){let n=so(e),r=n.length;if(r===0)return;let i=ta(Cn(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function lo(e){return co(Cn(e).body,1)||e}function uo(e){return co(Cn(e).body,-1)||e}function fo(e,t){if(!e)return null;let n=so(Cn(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function po(e){return fo(e,1)}function lne(e){return fo(e,-1)}function mo(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!na(n,r)}function ho(e){so(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function go(e){let t=[];io(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function _o(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],..._o(e,t.id,n)])}function vo(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function yo(e){return`data-base-ui-${e}`}var bo=0;function xo(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(bo);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),ae;let o=requestAnimationFrame(a);return bo=o,()=>{bo===o&&(cancelAnimationFrame(o),bo=0)}}var So={inert:new WeakMap,"aria-hidden":new WeakMap},Co=`data-base-ui-inert`,wo={inert:new WeakSet,"aria-hidden":new WeakSet},To=new WeakMap,Eo=0;function une(e){return wo[e]}function Do(e){return e?nn(e)?e.host:Do(e.parentNode):null}var Oo=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Do(t);return e.contains(n)?n:null}).filter(e=>e!=null),ko=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Ao=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{Xt(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function jo(e,t,n,r,{mark:i=!0}){let a=null;r?a=`inert`:n&&(a=`aria-hidden`);let o=null,s=null,c=Oo(t,e),l=i?Ao(t,ko(c),new Set(c)):[],u=[],d=[];if(a){let e=So[a],n=une(a);s=n,o=e;let r=Oo(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=c.concat(r);Ao(t,ko(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=r!==null&&r!==`false`,o=(e.get(t)||0)+1;e.set(t,o),u.push(t),o===1&&i&&n.add(t),i||t.setAttribute(a,a===`inert`?``:`true`)})}return i&&l.forEach(e=>{let t=(To.get(e)||0)+1;To.set(e,t),d.push(e),t===1&&e.setAttribute(Co,``)}),Eo+=1,()=>{o&&u.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!s?.has(e)&&a&&e.removeAttribute(a),s?.delete(e))}),i&&d.forEach(e=>{let t=(To.get(e)||0)-1;To.set(e,t),t||e.removeAttribute(Co)}),--Eo,Eo||(So.inert=new WeakMap,So[`aria-hidden`]=new WeakMap,wo.inert=new WeakSet,wo[`aria-hidden`]=new WeakSet,To=new WeakMap)}}function Mo(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,a=Cn(e[0]).body;return jo(e,a,n,r,{mark:i})}var No={style:{transition:`none`}},Po=`data-base-ui-click-trigger`,Fo=`data-base-ui-swipe-ignore`,Io=`data-swipe-ignore`,Lo=`[${Fo}]`,Ro=`[${Io}]`,zo={fallbackAxisSide:`none`},Bo={fallbackAxisSide:`end`},Vo={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Ho=m.createContext(null);process.env.NODE_ENV!==`production`&&(Ho.displayName=`PortalContext`);var Uo=()=>m.useContext(Ho),Wo=yo(`portal`);function Go(e={}){let{ref:t,container:n,componentProps:i=se,elementProps:a}=e,o=ze(),s=Uo()?.portalNode,[c,l]=m.useState(null),[u,d]=m.useState(null),f=w(e=>{e!==null&&d(e)}),p=m.useRef(null);k(()=>{if(n===null){p.current&&(p.current=null,d(null),l(null));return}let e=(n&&($t(n)?n:n.current))??s??document.body;if(e==null){p.current&&(p.current=null,d(null),l(null));return}p.current!==e&&(p.current=e,d(null),l(e))},[n,s]);let h=J(`div`,i,{ref:[t,f],props:[{id:o,[Wo]:``},a]}),g=c&&h?r.createPortal(h,c):null;return{node:u,nodeId:m.isValidElement(h)?h.props.id:void 0,subtree:g}}var Ko=m.forwardRef(function(e,t){let{render:i,className:a,style:o,children:s,container:c,...l}=e,{node:u,nodeId:d,subtree:f}=Go({container:c,ref:t,componentProps:e,elementProps:l}),p=m.useRef(null),h=m.useRef(null),g=m.useRef(null),_=m.useRef(null),[v,y]=m.useState(null),b=m.useRef(!1),x=v?.modal,S=v?.open,C=!!v&&!v.modal&&v.open&&!!u;m.useEffect(()=>{if(!u||x)return;function e(e){u&&e.relatedTarget&&mo(e)&&(e.type===`focusin`?b.current&&=(go(u),!1):(ho(u),b.current=!0))}return ba(kn(u,`focusin`,e,!0),kn(u,`focusout`,e,!0))},[u,x]),k(()=>{!u||S!==!0||!b.current||(go(u),b.current=!1)},[S,u]);let w=m.useMemo(()=>({beforeOutsideRef:p,afterOutsideRef:h,beforeInsideRef:g,afterInsideRef:_,portalNode:u,setFocusManagerState:y}),[u]);return(0,n.jsxs)(m.Fragment,{children:[f,(0,n.jsxs)(Ho.Provider,{value:w,children:[C&&u&&(0,n.jsx)(wa,{"data-type":`outside`,ref:p,onFocus:e=>{mo(e,u)?g.current?.focus():uo(v?v.domReference:null)?.focus()}}),C&&u&&(0,n.jsx)(`span`,{"aria-owns":d,style:Vo}),u&&r.createPortal(s,u),C&&u&&(0,n.jsx)(wa,{"data-type":`outside`,ref:h,onFocus:e=>{mo(e,u)?_.current?.focus():(lo(v?v.domReference:null)?.focus(),v?.closeOnFocusOut&&v?.onOpenChange(!1,Y(`focus-out`,e.nativeEvent)))}})]})]})});process.env.NODE_ENV!==`production`&&(Ko.displayName=`FloatingPortal`);function qo(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Jo=class{nodesRef={current:[]};events=qo();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},Yo=m.createContext(null);process.env.NODE_ENV!==`production`&&(Yo.displayName=`FloatingNodeContext`);var Xo=m.createContext(null);process.env.NODE_ENV!==`production`&&(Xo.displayName=`FloatingTreeContext`);var Zo=()=>m.useContext(Yo)?.id||null,Qo=e=>{let t=m.useContext(Xo);return e??t};function $o(e){let t=ze(),n=Qo(e),r=Zo();return k(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function es(e){let{children:t,id:r}=e,i=Zo();return(0,n.jsx)(Yo.Provider,{value:m.useMemo(()=>({id:r,parentId:i}),[r,i]),children:t})}function ts(e){let{children:t,externalTree:r}=e,i=x(()=>r??new Jo).current;return(0,n.jsx)(Xo.Provider,{value:i,children:t})}function dne(e,t){let n=Zt(ra(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var fne=20,ns=[];function rs(){ns=ns.filter(e=>e.deref()?.isConnected)}function is(e){rs(),e&&Xt(e)!==`body`&&(ns.push(new WeakRef(e)),ns.length>fne&&(ns=ns.slice(-20)))}function as(){return rs(),ns[ns.length-1]?.deref()}function pne(e){return e?ao(e)?e:so(e)[0]||e:null}function os(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=oo(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return ao(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function ss(e){let{context:t,children:r,disabled:i=!1,initialFocus:a=!0,returnFocus:o=!0,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:h,getInsideElements:g}=e,_=`rootStore`in t?t.rootStore:t,v=_.useState(`open`),y=_.useState(`domReferenceElement`),b=_.useState(`floatingElement`),{events:x,dataRef:S}=_.context,C=w(()=>S.current.floatingContext?.nodeId),T=a===!1,E=ca(y)&&T,D=An(a),O=An(o),A=An(u),j=An(v),M=Qo(h),N=Uo(),P=m.useRef(!1),F=m.useRef(!1),I=m.useRef(!1),L=m.useRef(null),R=m.useRef(``),z=m.useRef(``),B=m.useRef(null),V=m.useRef(null),H=U(B,p,N?.beforeInsideRef),W=U(V,N?.afterInsideRef),G=Hi(),ee=Hi(),K=Dt(),te=N!=null,q=ua(b),ne=w((e=q)=>e?so(e):[]),re=w(()=>g?.().filter(e=>e!=null)??[]);m.useEffect(()=>{if(i||!c)return;function e(e){e.key===`Tab`&&na(q,ta(Cn(q)))&&ne().length===0&&!E&&Yi(e)}return kn(Cn(q),`keydown`,e)},[i,q,c,E,ne]),m.useEffect(()=>{if(i||!v)return;let e=Cn(q);function t(){I.current=!1}function n(e){let t=ra(e),n=re(),r=na(b,t)||na(y,t)||na(N?.portalNode,t)||n.some(e=>e===t||na(e,t));I.current=!r,z.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(F.current=!0,ee.start(0,()=>{F.current=!1}))}function r(){z.current=`keyboard`}return ba(kn(e,`pointerdown`,n,!0),kn(e,`pointerup`,t,!0),kn(e,`pointercancel`,t,!0),kn(e,`keydown`,r,!0),t)},[i,b,y,q,v,N,ee,re]),m.useEffect(()=>{if(i||!l)return;let e=Cn(q);function t(){F.current=!0,ee.start(0,()=>{F.current=!1})}function n(e){let t=ra(e);ao(t)&&(L.current=t)}function r(t){let n=t.relatedTarget,r=t.currentTarget,i=ra(t);c&&n==null&&i!=null&&na(b,i)&&is(i),queueMicrotask(()=>{let a=C(),o=_.context.triggerElements,l=re(),u=n?.hasAttribute(yo(`focus-guard`))&&[B.current,V.current,N?.beforeInsideRef.current,N?.afterInsideRef.current,N?.beforeOutsideRef.current,N?.afterOutsideRef.current,jn(f),jn(d)].includes(n),p=!(na(y,n)||na(b,n)||na(n,b)||na(N?.portalNode,n)||l.some(e=>e===n||na(e,n))||o.hasMatchingElement(e=>na(e,n))||u||M&&(_o(M.nodesRef.current,a).find(e=>na(e.context?.elements.floating,n)||na(e.context?.elements.domReference,n))||vo(M.nodesRef.current,a).find(e=>[e.context?.elements.floating,ua(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===y&&q&&os(q),s&&r!==y&&!Xa(i)&&ta(e)===e.body){if(tn(q)&&(q.focus(),s===`popup`)){K.request(()=>{q.focus()});return}let e=ne(),t=L.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||q;tn(n)&&n.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(E||!c)&&n&&p&&!F.current&&(E||n!==as())&&(P.current=!0,_.setOpen(!1,Y(it,t)))})}function a(){I.current||(S.current.insideReactTree=!0,G.start(0,()=>{S.current.insideReactTree=!1}))}let o=tn(y)?y:null;if(!(!b&&!o))return ba(o&&kn(o,`focusout`,r),o&&kn(o,`pointerdown`,t),b&&kn(b,`focusin`,n),b&&kn(b,`focusout`,r),b&&N&&kn(b,`focusout`,a,!0))},[i,y,b,q,c,M,N,_,l,s,ne,E,C,S,G,ee,K,d,f,re]),m.useEffect(()=>{if(i||!b||!v)return;let e=Array.from(N?.portalNode?.querySelectorAll(`[${yo(`portal`)}]`)||[]),t=(M?vo(M.nodesRef.current,C()):[]).find(e=>ca(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Mo([b,...e,B.current,V.current,N?.beforeOutsideRef.current,N?.afterOutsideRef.current,...re(),t,jn(f),jn(d),E?y:null].filter(e=>e!=null),{ariaHidden:c||E,mark:!1}),r=Mo([b,...e].filter(e=>e!=null));return()=>{r(),n()}},[v,i,y,b,c,N,E,M,C,d,f,re]),k(()=>{if(!v||i||!tn(q))return;R.current=``,z.current=``;let e=Cn(q),t=ta(e);queueMicrotask(()=>{let n=D.current,r=typeof n==`function`?n(A.current||``):n;if(r===void 0||r===!1||na(q,t))return;let i=null,a=()=>(i??=ne(q),i[0]||q),o;o=r===!0||r===null?a():jn(r),o||=a();let s=na(q,ta(e));xo(o,{preventScroll:o===q,shouldFocus(){if(!j.current)return!1;if(s)return!0;let t=ta(e);return!(t!==o&&na(q,t))}})})},[i,v,q,ne,D,A,j]),k(()=>{if(i||!q)return;let e=Cn(q),t=ta(e),n=A.current==null;is(t);function r(e){if(e.open||(R.current=dne(e.nativeEvent,z.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(P.current=!0),e.reason===`outside-press`){if(e.nested)P.current=!1;else if(Xi(e.nativeEvent)||Zi(e.nativeEvent))P.current=!1;else{let e=!1;Cn(q).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?P.current=!1:P.current=!0}}}x.on(`openchange`,r);function a(e){let r=O.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=y?.isConnected?y:null,o=t?.isConnected&&Xt(t)!==`body`?t:null,s=n?o||a:a||o;return s||=as()||null,typeof i==`boolean`?s:jn(i)||s||null}return()=>{x.off(`openchange`,r);let t=ta(e),n=re(),i=na(b,t)||n.some(e=>e===t||na(e,t))||M&&_o(M.nodesRef.current,C(),!1).some(e=>na(e.context?.elements.floating,t)),o=O.current,s=R.current,c=a(s);queueMicrotask(()=>{let n=pne(c),r=typeof o!=`boolean`;if(o&&!P.current&&tn(n)&&(!(!r&&n!==t&&t!==e.body)||i)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}P.current=!1})}},[i,b,q,O,A,x,M,y,C,re]),k(()=>{if(!Ii||v||!b)return;let e=ta(Cn(b));!tn(e)||!oa(e)||na(b,e)&&e.blur()},[v,b]),k(()=>{if(!(i||!N))return N.setFocusManagerState({modal:c,closeOnFocusOut:l,open:v,onOpenChange:_.setOpen,domReference:y}),()=>{N.setFocusManagerState(null)}},[i,N,c,v,_,l,y]),k(()=>{if(!(i||!q))return os(q),()=>{queueMicrotask(rs)}},[i,q]);let ie=!i&&(!c||!E)&&(te||c);return(0,n.jsxs)(m.Fragment,{children:[ie&&(0,n.jsx)(wa,{"data-type":`inside`,ref:H,onFocus:e=>{if(c){let e=ne();xo(e[e.length-1])}else N?.portalNode&&(P.current=!1,mo(e,N.portalNode)?lo(y)?.focus():jn(f??N.beforeOutsideRef)?.focus())}}),r,ie&&(0,n.jsx)(wa,{"data-type":`inside`,ref:W,onFocus:e=>{c?xo(ne()[0]):N?.portalNode&&(l&&(P.current=!0),mo(e,N.portalNode)?uo(y)?.focus():jn(d??N.afterOutsideRef)?.focus())}})]})}function cs(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=He}=t,l=`rootStore`in e?e.rootStore:e,u=l.context.dataRef,d=m.useRef(void 0),f=Dt(),p=Hi(),h=m.useMemo(()=>{function e(e,t,n,r){let i=Y(c,t,n);e&&r===`touch`&&s>0?p.start(s,()=>{l.setOpen(!0,i)}):l.setOpen(e,i)}function t(e,t,n){let r=u.current.openEvent,a=l.select(`domReferenceElement`)!==t;return e&&a||!e||!i?!0:r&&o?!n(r.type):!1}return{onPointerDown(e){d.current=Qi(e.pointerType,!0)&&Zi(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(n){let i=d.current,o=n.nativeEvent,s=l.select(`open`);if(n.button!==0||r===`click`||Qi(i,!0)&&a)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),u=ra(o);if(oa(u)){e(c,o,u,i);return}let p=n.currentTarget;f.request(()=>{e(c,o,p,i)})},onClick(n){if(r===`mousedown-only`)return;let i=d.current;if(r===`mousedown`&&i){d.current=void 0;return}Qi(i,!0)&&a||e(t(l.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){d.current=void 0}}},[u,r,a,c,l,o,i,f,p,s]);return m.useMemo(()=>n?{reference:h}:se,[n,h])}function mne(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function ls(e){return e!=null&&e.clientX!=null}function hne(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=m.useRef(!1),u=m.useRef(null),[d,f]=m.useState(),[p,h]=m.useState([]),g=w(e=>{i.set(`positionReference`,e)}),_=w((e,t,n)=>{l.current||c.current.openEvent&&!ls(c.current.openEvent)||i.set(`positionReference`,mne(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),v=w(e=>{a?u.current||(_(e.clientX,e.clientY,e.currentTarget),h([])):_(e.clientX,e.clientY,e.currentTarget)}),y=Qi(d)?o:a;m.useEffect(()=>{if(!n){g(s);return}if(!y)return;function e(){u.current?.(),u.current=null}let t=Zt(o);function r(t){let n=ra(t);na(o,n)?e():_(t.clientX,t.clientY)}return!c.current.openEvent||ls(c.current.openEvent)?u.current=kn(t,`mousemove`,r):g(s),e},[y,n,o,c,s,i,_,g,p]),m.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),m.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),m.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let b=m.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:v,onMouseEnter:v}},[v]);return m.useMemo(()=>n?{reference:b,trigger:b}:{},[n,b])}function gne(){return!1}function _ne(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function us(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=gne,bubbles:s,externalTree:c}=t,l=`rootStore`in e?e.rootStore:e,u=l.useState(`open`),d=l.useState(`floatingElement`),{dataRef:f}=l.context,p=Qo(c),h=w(typeof i==`function`?i:()=>!1),g=typeof i==`function`?h:i,_=g!==!1,v=w(()=>a),{escapeKey:y,outsidePress:b}=_ne(s),x=m.useRef(!1),S=m.useRef(!1),C=m.useRef(!1),T=m.useRef(!1),E=m.useRef(``),D=m.useRef(null),O=Hi(),k=Hi(),A=w(()=>{k.clear(),f.current.insideReactTree=!1}),j=w(e=>{let t=f.current.floatingContext?.nodeId;return(p?_o(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=w(e=>aa(e,l.select(`floatingElement`))||aa(e,l.select(`domReferenceElement`))),N=w(e=>{o()&&l.setOpen(!1,Y(He,e.nativeEvent))}),P=w(e=>{if(!u||!n||!r||e.key!==`Escape`||T.current||!y&&j(`__escapeKeyBubbles`))return;let t=Y(at,Vte(e)?e.nativeEvent:e);l.setOpen(!1,t),t.isCanceled||e.preventDefault(),!y&&!t.isPropagationAllowed&&e.stopPropagation()}),F=w(()=>{f.current.insideReactTree=!0,k.start(0,A)}),I=w(e=>{if(!u||!n||e.button!==0)return;let t=ra(e.nativeEvent);na(l.select(`floatingElement`),t)&&(x.current||(x.current=!0,S.current=!1))}),L=w(e=>{!u||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&x.current&&(S.current=!0)});m.useEffect(()=>{if(!u||!n)return A;f.current.__escapeKeyBubbles=y,f.current.__outsidePressBubbles=b;let e=new Vi,t=new Vi;function i(){e.clear(),T.current=!0}function a(){e.start(Ii?5:0,()=>{T.current=!1})}function o(){C.current=!0,t.start(0,()=>{C.current=!1})}function s(){x.current=!1,S.current=!1}function c(){let e=E.current,t=e===`pen`||!e?`mouse`:e,n=v(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function h(e){let t=f.current.floatingContext?.nodeId,n=p&&_o(p.nodesRef.current,t).some(t=>aa(e,t.context?.elements.floating));return M(e)||n}function w(e){if(m(e)){e.type!==`click`&&!M(e)&&(t.clear(),C.current=!1),A();return}if(f.current.insideReactTree){A();return}let n=ra(e),r=`[${yo(`inert`)}]`,i=en(n)?n.getRootNode():null,a=Array.from((nn(i)?i:Cn(l.select(`floatingElement`))).querySelectorAll(r)),o=l.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>na(e,n))))return;let s=en(n)?n:null;for(;s&&!mn(s);){let e=_n(s);if(mn(e)||!en(e))break;s=e}if(!(a.length&&en(n)&&!qte(n)&&!na(n,l.select(`floatingElement`))&&a.every(e=>!na(s,e)))){if(tn(n)&&!(`touches`in e)){let t=mn(n),r=hn(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!h(e)){if(c()===`intentional`&&C.current){t.clear(),C.current=!1;return}typeof g==`function`&&!g(e)||j(`__outsidePressBubbles`)||(l.setOpen(!1,Y(Ge,e)),A())}}}function k(e){c()!==`sloppy`||e.pointerType===`touch`||!l.select(`open`)||!n||M(e)||w(e)}function N(e){if(c()!==`sloppy`||!l.select(`open`)||!n||M(e))return;let t=e.touches[0];t&&(D.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},O.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}function F(e,t){let n=ra(e);if(!n)return;let r=kn(n,e.type,()=>{t(e),r()})}function I(e){E.current=`touch`,F(e,N)}function L(e){O.clear(),e.type===`pointerdown`&&(E.current=e.pointerType),!(e.type===`mousedown`&&D.current&&!D.current.dismissOnMouseDown)&&F(e,e=>{e.type===`pointerdown`?k(e):w(e)})}function R(e){if(!x.current)return;let n=S.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!h(e)){if(n){o();return}typeof g==`function`&&!g(e)||(t.clear(),C.current=!0,A())}}}function z(e){if(c()!==`sloppy`||!D.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-D.current.startX),r=Math.abs(t.clientY-D.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(D.current.dismissOnTouchEnd=!0),i>10&&(w(e),O.clear(),D.current=null)}function B(e){F(e,z)}function V(e){c()!==`sloppy`||!D.current||M(e)||(D.current.dismissOnTouchEnd&&w(e),O.clear(),D.current=null)}function H(e){F(e,V)}let U=Cn(d),W=ba(r&&ba(kn(U,`keydown`,P),kn(U,`compositionstart`,i),kn(U,`compositionend`,a)),_&&ba(kn(U,`click`,L,!0),kn(U,`pointerdown`,L,!0),kn(U,`pointerup`,R,!0),kn(U,`pointercancel`,R,!0),kn(U,`mousedown`,L,!0),kn(U,`mouseup`,R,!0),kn(U,`touchstart`,I,!0),kn(U,`touchmove`,B,!0),kn(U,`touchend`,H,!0)));return()=>{W(),e.clear(),t.clear(),s(),C.current=!1,A()}},[f,d,r,_,g,u,n,y,b,P,A,v,j,M,p,l,O]);let R=m.useMemo(()=>({onKeyDown:P,onPointerDown:N,onClick:N}),[P,N]),z=m.useMemo(()=>({onKeyDown:P,onPointerDown:L,onMouseDown:L,onClickCapture:F,onMouseDownCapture(e){F(),I(e)},onPointerDownCapture(e){F(),I(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,I,L]);return m.useMemo(()=>n?{reference:R,floating:z,trigger:R}:{},[n,R,z])}function ds(e,t,n){let{reference:r,floating:i}=e,a=Ia(t),o=La(t),s=Fa(o),c=Ma(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Na(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function vne(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=ja(t,e),p=Ha(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Ua(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Ua(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var yne=50,bne=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:vne},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ds(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<yne&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ds(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},xne=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=ja(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Ma(r),_=Ia(o),v=Ma(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Va(o)]:Xte(o)),x=p!==`none`;!d&&x&&b.push(...ene(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Yte(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Ia(t)||T.every(e=>Ia(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Ia(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},fs=new Set([`left`,`top`]);async function Sne(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ma(n),s=Na(n),c=Ia(n)===`y`,l=fs.has(o)?-1:1,u=a&&c?-1:1,d=ja(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Cne=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Sne(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},wne=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ja(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Ia(i),p=Pa(f),m=u[p],h=u[f],g=(e,t)=>Aa(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Tne=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ja(e,t),u={x:n,y:r},d=Ia(i),f=Pa(d),p=u[f],m=u[d],h=ja(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=fs.has(Ma(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Ene=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=ja(e,t),c=await i.detectOverflow(t,s),l=Ma(n),u=Na(n),d=Ia(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Ta(p-c[m],g),y=Ta(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Ea(c.left,c.right):S=p-2*Ea(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function ps(e){let t=hn(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=tn(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Da(n)!==a||Da(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ms(e){return en(e)?e:e.contextElement}function hs(e){let t=ms(e);if(!tn(t))return ka(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ps(t),o=(a?Da(n.width):n.width)/r,s=(a?Da(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Dne=ka(0);function gs(e){let t=Zt(e);return!pn()||!t.visualViewport?Dne:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function One(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Zt(e)}function _s(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ms(e),o=ka(1);t&&(r?en(r)&&(o=hs(r)):o=hs(e));let s=One(a,n,r)?gs(a):ka(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Zt(a),t=en(r)?Zt(r):r,n=e,i=bn(n);for(;i&&t!==n;){let e=hs(i),t=i.getBoundingClientRect(),r=hn(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Zt(i),i=bn(n)}}return Ua({width:u,height:d,x:c,y:l})}function vs(e,t){let n=gn(e).scrollLeft;return t?t.left+n:_s(Qt(e)).left+n}function ys(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-vs(e,n),y:n.top+t.scrollTop}}function kne(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Qt(r),s=t?on(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ka(1),u=ka(0),d=tn(r);if((d||!a)&&((Xt(r)!==`body`||rn(o))&&(c=gn(r)),d)){let e=_s(r);l=hs(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?ys(o,c):ka(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ane(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function jne(e){let t=gn(e),n=e.ownerDocument.body,r=Ea(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Ea(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+vs(e),o=-t.scrollTop;return hn(n).direction===`rtl`&&(a+=Ea(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Mne=25;function Nne(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Zt(e),a=Qt(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!pn()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(vs(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Mne&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Pne(e,t){let n=_s(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=hs(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function bs(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Nne(e,n,t);else if(t===`document`)r=jne(Qt(e));else if(en(t))r=Pne(t,n);else{let n=gs(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ua(r)}function Fne(e,t){let n=t.get(e);if(n)return n;let r=yn(e,[],!1).filter(e=>en(e)&&Xt(e)!==`body`),i=null,a=hn(e).position===`fixed`,o=a?_n(e):e;for(;en(o)&&!mn(o);){let e=hn(o),t=dn(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=_n(o)}return t.set(e,r),r}function Ine(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?on(t)?[]:Fne(t,this._c):[].concat(n),r],o=bs(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=bs(t,a[e],i);s=Ea(n.top,s),c=Ta(n.right,c),l=Ta(n.bottom,l),u=Ea(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Lne(e){let{width:t,height:n}=ps(e);return{width:t,height:n}}function Rne(e,t,n){let r=tn(t),i=Qt(t),a=n===`fixed`,o=_s(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=ka(0);if((r||!a)&&((Xt(t)!==`body`||rn(i))&&(s=gn(t)),r)){let e=_s(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=vs(i));let l=i&&!r&&!a?ys(i,s):ka(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function xs(e){return hn(e).position===`static`}function Ss(e,t){if(!tn(e)||hn(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Qt(e)===n&&(n=n.ownerDocument.body),n}function Cs(e,t){let n=Zt(e);if(on(e))return n;if(!tn(e)){let t=_n(e);for(;t&&!mn(t);){if(en(t)&&!xs(t))return t;t=_n(t)}return n}let r=Ss(e,t);for(;r&&an(r)&&xs(r);)r=Ss(r,t);return r&&mn(r)&&xs(r)&&!dn(r)?n:r||fn(e)||n}var zne=async function(e){let t=this.getOffsetParent||Cs,n=this.getDimensions,r=await n(e.floating);return{reference:Rne(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Bne(e){return hn(e).direction===`rtl`}var ws={convertOffsetParentRelativeRectToViewportRelativeRect:kne,getDocumentElement:Qt,getClippingRect:Ine,getOffsetParent:Cs,getElementRects:zne,getClientRects:Ane,getDimensions:Lne,getScale:hs,isElement:en,isRTL:Bne};function Ts(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vne(e,t,n){let r=null,i,a=Qt(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Oa(d),h=Oa(a.clientWidth-(u+f)),g=Oa(a.clientHeight-(d+p)),_=Oa(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Ea(0,Ta(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Ts(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Zt(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Es(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ms(e),u=i||a?[...l?yn(l):[],...t?yn(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Vne(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?_s(e):null;c&&g();function g(){let t=_s(e);h&&!Ts(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Hne=Cne,Une=wne,Wne=xne,Gne=Ene,Kne=Tne,qne=(e,t,n)=>{let r=new Map,i=n??{},a={...ws,...i.platform,_c:r};return bne(e,t,{...i,platform:a})},Ds=typeof document<`u`?m.useLayoutEffect:function(){};function Os(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Os(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Os(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ks(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function As(e,t){let n=ks(e);return Math.round(t*n)/n}function js(e){let t=m.useRef(e);return Ds(()=>{t.current=e}),t}function Jne(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:i=[],platform:a,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,f]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=m.useState(i);Os(p,i)||h(i);let[g,_]=m.useState(null),[v,y]=m.useState(null),b=m.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=m.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=o||g,C=s||v,w=m.useRef(null),T=m.useRef(null),E=m.useRef(d),D=l!=null,O=js(l),k=js(a),A=js(u),j=m.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:p};k.current&&(e.platform=k.current),qne(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!Os(E.current,t)&&(E.current=t,r.flushSync(()=>{f(t)}))})},[p,t,n,k,A]);Ds(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let M=m.useRef(!1);Ds(()=>(M.current=!0,()=>{M.current=!1}),[]),Ds(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=m.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=m.useMemo(()=>({reference:S,floating:C}),[S,C]),F=m.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=As(P.floating,d.x),r=As(P.floating,d.y);return c?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ks(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,c,P.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:j,refs:N,elements:P,floatingStyles:F}),[d,j,N,P,F])}var Yne=(e,t)=>{let n=Hne(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xne=(e,t)=>{let n=Une(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zne=(e,t)=>({fn:Kne(e).fn,options:[e,t]}),Qne=(e,t)=>{let n=Wne(e);return{name:n.name,fn:n.fn,options:[e,t]}},$ne=(e,t)=>{let n=Gne(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Ms(e,t,n,r){return{left:e,top:t,right:n,bottom:r,x:e,y:t,width:n-e,height:r-t}}function ere(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}function Ns(e){let t=[],n,r=1/0,i=1/0,a=-1/0,o=-1/0;for(let s of Array.from(e).sort((e,t)=>e.top-t.top)){if(r=Math.min(r,s.left),i=Math.min(i,s.top),a=Math.max(a,s.right),o=Math.max(o,s.bottom),!n||s.top-n.top>n.height/2)t.push(ere(s));else{let e=t[t.length-1];e.left=Math.min(e.left,s.left),e.right=Math.max(e.right,s.right),e.bottom=Math.max(e.bottom,s.bottom),e.width=e.right-e.left,e.height=e.bottom-e.top}n=s}return{lines:t,fallback:Ms(r,i,a,o)}}function Ps(e,t,n){return e.findIndex(e=>t>e.left-2&&t<e.right+2&&n>e.top-2&&n<e.bottom+2)}function Fs(e){return Ms(e.left,e.top,e.right,e.bottom)}function tre(e,t,n){let{lines:r}=Ns(e.getClientRects());if(r.length<2)return;let i=Ps(r,t,n);return{x:t,y:n,lineIndex:i===-1?void 0:i,element:e}}function nre(e,t,n){let{lines:r,fallback:i}=Ns(e.getClientRects());if(r.length<2)return null;let a=n?.x,o=n?.y,s=t[0];if(n?.lineIndex!=null&&r[n.lineIndex])return Fs(r[n.lineIndex]);if(a!=null&&o!=null){let e=Ps(r,a,o);if(e!==-1)return Fs(r[e])}if(r.length===2&&r[0].left>r[1].right&&a!=null&&o!=null)return i;if(s===`t`||s===`b`){let e=r[0],t=r[r.length-1],n=s===`t`?e:t;return Ms(n.left,e.top,n.right,t.bottom)}let c=s===`l`,l=r[0].left,u=r[0].right,d=c?1/0:-1/0,f=r[0],p=r[0];for(let e of r){l=Math.min(l,e.left),u=Math.max(u,e.right);let t=c?e.left:e.right;c&&t<d||!c&&t>d?(d=t,f=e,p=e):t===d&&(p=e)}return Ms(l,f.top,u,p.bottom)}function rre(e){return`contextElement`in e&&e.contextElement?e.contextElement:en(e)?e:void 0}function ire(e,t){function n(t){Is(e,t.currentTarget,t.clientX,t.clientY)}function r(e){t||n(e)}return{onFocus(){e.current=void 0},onMouseEnter:r,onMouseMove:r}}function Is(e,t,n,r){let i=tre(t,n,r);return e.current=i,i}function are(e){return{name:`inline`,async fn(t){let n=t.elements.reference;if(typeof n?.getClientRects!=`function`)return{};let r=rre(n),i=e.current,a=i?.element===n||i?.element===r?i:void 0,o=nre(n,t.placement,a);if(!o||typeof t.platform.getElementRects!=`function`)return{};let s=await t.platform.getElementRects({reference:{contextElement:r,getBoundingClientRect(){return o}},floating:t.elements.floating,strategy:t.strategy});return t.rects.reference.x===s.reference.x&&t.rects.reference.y===s.reference.y&&t.rects.reference.width===s.reference.width&&t.rects.reference.height===s.reference.height?{}:{reset:{rects:s}}}}}var Ls=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(e,t,n=!0){this.fallbackStore=e,this.componentName=t,this.throwOnMissingTrigger=n}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(e){return this.storeListeners.add(e),()=>{this.storeListeners.delete(e)}}attachStore(e){if(this.attachedStores.push(e),this.setActiveStore(e),process.env.NODE_ENV!==`production`&&this.attachedStores.length>1){let e=this;(e.overlapWarningFrame??=Et.create()).request(()=>{this.attachedStores.length>1&&console.warn(`Base UI: A handle is attached to more than one mounted root at the same time. The most recently mounted root takes over and the previous one stops being controlled by the handle. A handle should be used by a single root that stays mounted for the lifetime of the handle.`)})}return()=>{let t=this.attachedStores.lastIndexOf(e);t!==-1&&this.attachedStores.splice(t,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(e){this.attachedStoreValue!==e&&(this.attachedStoreValue=e,this.storeListeners.forEach(e=>{e()}))}openByTrigger(e){let t=this.attachedStore;if(t===null){process.env.NODE_ENV!==`production`&&console.warn(`Base UI: ${this.componentName}Handle.open() was called while no root using this handle is mounted. The call was ignored; mount a root with this handle before opening it imperatively.`);return}let n;if(e){for(let t=this.attachedStores.length-1;t>=0&&!n;--t)n=this.attachedStores[t].context.triggerElements.getById(e);n??=this.fallbackStore.context.triggerElements.getById(e)}if(e&&!n){if(this.throwOnMissingTrigger)throw Error(process.env.NODE_ENV===`production`?B(99,this.componentName,e,this.componentName):`Base UI: ${this.componentName}Handle.open() was called with the trigger id "${e}", but no matching trigger is registered with this handle. An anchored popup cannot open without a trigger to anchor to. Pass the id of a mounted ${this.componentName}.Trigger that has this handle set on its "handle" prop.`);process.env.NODE_ENV!==`production`&&console.warn(`Base UI: ${this.componentName}Handle.open: No trigger found with id "${e}". The popup will open, but the trigger will not be associated with it.`)}t.setOpen(!0,Y(vt,void 0,n))}closePopup(){let e=this.attachedStore;if(e===null){process.env.NODE_ENV!==`production`&&console.warn(`Base UI: ${this.componentName}Handle.close() was called while no root using this handle is mounted. The call was ignored.`);return}e.setOpen(!1,Y(vt))}},Rs=u(((e,n)=>{n.exports={...t}})),ore=u((e=>{var t=Rs();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),sre=u((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function n(e,t){d||a.startTransition===void 0||(d=!0,console.error(`You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.`));var n=t();if(!f){var i=t();o(n,i)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),f=!0)}i=s({inst:{value:n,getSnapshot:t}});var p=i[0].inst,m=i[1];return l(function(){p.value=n,p.getSnapshot=t,r(p)&&m({inst:p})},[e,n,t]),c(function(){return r(p)&&m({inst:p}),e(function(){r(p)&&m({inst:p})})},[e]),u(n),n}function r(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch{return!0}}function i(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=Rs(),o=typeof Object.is==`function`?Object.is:t,s=a.useState,c=a.useEffect,l=a.useLayoutEffect,u=a.useDebugValue,d=!1,f=!1,p=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?i:n;e.useSyncExternalStore=a.useSyncExternalStore===void 0?p:a.useSyncExternalStore,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),zs=u(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?ore():sre()})),cre=u((e=>{var t=Rs(),n=zs();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),lre=u((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=Rs(),r=zs(),i=typeof Object.is==`function`?Object.is:t,a=r.useSyncExternalStore,o=n.useRef,s=n.useEffect,c=n.useMemo,l=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),ure=u(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?cre():lre()})),Bs=[],Vs=void 0;function dre(){return Vs}function fre(e){Bs.push(e)}function Hs(e){let t=(t,n)=>{let r=x(pre).current,i;try{Vs=r;for(let e of Bs)e.before(r);i=e(t,n);for(let e of Bs)e.after(r);r.didInitialize=!0}finally{Vs=void 0}return i};return t.displayName=e.displayName||e.name,t}function Us(e){return m.forwardRef(Hs(e))}function pre(){return{didInitialize:!1}}var Ws=zs(),Gs=ure(),mre=ne(19)?gre:_re;function Z(e,t,n,r,i){return mre(e,t,n,r,i)}function hre(e,t,n,r,i){let a=m.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Ws.useSyncExternalStore)(e.subscribe,a,a)}fre({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Ws.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function gre(e,t,n,r,i){let a=dre();if(!a)return hre(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function _re(e,t,n,r,i){return(0,Gs.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Ks=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Z(this,e,t,n,r)}},qs=class extends Ks{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){m.useDebugValue(e);let n=this;k(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;k(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;if(process.env.NODE_ENV!==`production`){m.useDebugValue(e,e=>Object.keys(e));let t=m.useRef(Object.keys(e)).current,n=Object.keys(e);(t.length!==n.length||t.some((e,t)=>e!==n[t]))&&console.error(`ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.`)}k(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){m.useDebugValue(e);let n=this,r=t!==void 0;if(k(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r]),process.env.NODE_ENV!==`production`){let t=this.controlledValues??=new Map;t.has(e)||t.set(e,r);let n=t.get(e);n!==void 0&&n!==r&&console.error(`A component is changing the ${r?``:`un`}controlled state of ${e.toString()} to be ${r?`un`:``}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return m.useDebugValue(e),Z(this,this.selectors[e],t,n,r)}useContextCallback(e,t){m.useDebugValue(e);let n=w(t??ae);this.context[e]=n}useStateSetter(e){let t=m.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}};function Js(){let[,e]=m.useState({});return m.useCallback(()=>{e({})},[])}var vre={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Ys=class extends qs{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:qo(),nested:n,triggerElements:i},vre),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Hte(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Xs(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=m.useRef(null);r===void 0&&f.current===null&&(f.current=new Ys({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),k(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};en(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var Zs={tabIndex:-1,[Ute]:``};function Qs(e){return t=>t!==`touch`||e.current}function $s(e,t=!1){let n=ze(),r=Zo()!=null,i=x(()=>e(n,r)).current;return Xs({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function ec({handle:e,store:t}){return k(()=>e.attachStore(t),[e,t]),null}function tc(e,t){let n=m.useRef(null),r=m.useRef(null);return m.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function nc(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)}function rc(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function ic(e,t,n,i={}){let a=n.reason,o=a===Ue,s=t&&a===`trigger-focus`,c=!t&&(a===`trigger-press`||a===`escape-key`),l=rc(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;i.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let u=()=>{let r={...i.extraState,open:t};s?r.instantType=`focus`:c?r.instantType=`dismiss`:o&&(r.instantType=void 0),nc(r,t,n.trigger,l()),e.update(r)};o?r.flushSync(u):u()}function ac(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=tc(e,n),o=w(t=>{let i=n.select(`open`),a=n.select(`activeTriggerId`);if(a===e){n.update({activeTriggerElement:t,...i?r:null});return}a==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})}),s=m.useCallback(e=>{a(e),e&&o(e)},[a,o]);return k(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function oc(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=m.useRef(null),i=e.useState(`open`);k(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=Y(Ve);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,e.useState(`triggerCount`),e.useState(`activeTriggerId`),e.useState(`activeTriggerElement`),n])}function sc(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=Ot(e),o=t.useState(`preventUnmountingOnClose`),s=!e&&o;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:s});let c=w(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return Nn({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:a}}function cc(e,t){e.useSyncedValues(t),k(()=>()=>{e.update({activeTriggerProps:se,inactiveTriggerProps:se,popupProps:se})},[e])}function lc(e,t){k(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),k(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var uc;function yre(e){uc??=new WeakMap;let t=uc.get(e);return t||(t=new WeakMap,uc.set(e,t)),t}var dc=class{constructor(){this.idMap=new Map}add(e,t){if(process.env.NODE_ENV!==`production`){let n=yre(this),r=n.get(t);if(r!==void 0&&r!==e)throw Error(`Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.`);let i=this.idMap.get(e);i!==void 0&&i!==t&&n.delete(i),n.set(t,e)}this.idMap.set(e,t)}delete(e){if(process.env.NODE_ENV!==`production`){let t=this.idMap.get(e);t!==void 0&&uc?.get(this)?.delete(t)}this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function fc(){return new Ys({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new dc,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function pc(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:fc(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:se,inactiveTriggerProps:se,popupProps:se}}function mc(e,t,n=!1){return new Ys({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var hc=e=>e.triggerIdProp??e.activeTriggerId,gc=e=>e.openProp??e.open,_c=e=>(e.popupElement?.id??e.floatingId)||void 0;function vc(e,t){return t!==void 0&&gc(e)&&hc(e)===t}function bre(e,t){return vc(e,t)?!0:t!==void 0&&gc(e)&&hc(e)==null&&e.triggerCount===1}var yc={open:gc,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:hc,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:_c,isTriggerActive:(e,t)=>t!==void 0&&hc(e)===t,isOpenedByTrigger:(e,t)=>vc(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&hc(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>bre(e,t)?_c(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function bc(e){let t=m.useCallback(t=>e===void 0?ae:e.subscribeStore(t),[e]),n=m.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,Ws.useSyncExternalStore)(t,n,()=>e?.serverStore)}function xc(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=ze(),a=Zo()!=null;if(process.env.NODE_ENV!==`production`){let e=r.reference;e&&!en(e)&&console.error("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `context.setPositionReference()`",`instead.`)}let o=x(()=>new Ys({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new dc,floatingId:i,syncOnly:!1,nested:a})).current;return k(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=en(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function xre(e={}){let t=xc(e);return Sc(e,e.rootContext||t)}function Sre(e){return Sc(e,e.rootContext)}function Sc(e,t){let{nodeId:n,externalTree:r}=e,i=t.useState(`referenceElement`),a=t.useState(`floatingElement`),o=t.useState(`domReferenceElement`),s=t.useState(`open`),c=t.useState(`floatingId`),[l,u]=m.useState(null),[d,f]=m.useState(void 0),[p,h]=m.useState(void 0),g=m.useRef(null),_=Qo(r),v=m.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),y=Jne({...e,elements:{...v,...l&&{reference:l}}}),b=en(d)?d:null,x=p===void 0?t.state.floatingElement:p;t.useSyncedValue(`referenceElement`,d??null),t.useSyncedValue(`domReferenceElement`,d===void 0?o:b),t.useSyncedValue(`floatingElement`,x);let S=m.useCallback(e=>{let t=en(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),y.refs.setReference(t)},[y.refs]),C=m.useCallback(e=>{(en(e)||e===null)&&(g.current=e,f(e)),(en(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!en(e))&&y.refs.setReference(e)},[y.refs,f]),w=m.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),T=m.useMemo(()=>({...y.refs,setReference:C,setFloating:w,setPositionReference:S,domReference:g}),[y.refs,C,w,S]),E=m.useMemo(()=>({...y.elements,domReference:o}),[y.elements,o]),D=m.useMemo(()=>({...y,dataRef:t.context.dataRef,open:s,onOpenChange:t.setOpen,events:t.context.events,floatingId:c,refs:T,elements:E,nodeId:n,rootStore:t}),[y,T,E,n,t,s,c]);return k(()=>{o&&(g.current=o)},[o]),k(()=>{t.context.dataRef.current.floatingContext=D;let e=_?.nodesRef.current.find(e=>e.id===n);e&&(e.context=D)}),m.useMemo(()=>({...y,context:D,refs:T,elements:E,rootStore:t}),[y,T,E,D,t])}var Cc=Pi&&Ii;function wc(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=m.useRef(!1),c=m.useRef(null),l=m.useRef(!0),u=Hi();m.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=Zt(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&tn(e)&&e===ta(Cn(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return ba(kn(t,`blur`,r),Cc&&kn(t,`keydown`,a,!0),Cc&&kn(t,`pointerdown`,o,!0))},[i,n]),m.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);en(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=m.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=ra(t.nativeEvent);if(en(a)){if(Cc&&!t.relatedTarget){if(!l.current&&!oa(a))return}else if(!la(a))return}let o=ia(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,Y(We,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,Y(We,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=en(n)&&n.hasAttribute(yo(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=ta(Cn(e));!n&&t===e||na(o.current.floatingContext?.refs.floating.current,t)||na(e,t)||a||ia(n??t,i.context.triggerElements)||i.setOpen(!1,Y(We,r))})}}},[o,r,i,u]);return m.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var Cre=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Vi,this.restTimeout=new Vi,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Tc=new WeakMap;function Ec(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Tc.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Tc.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Dc(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Tc.get(n);a&&a!==e&&Ec(a),Ec(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Tc.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Oc(e){let t=e.context.dataRef.current,n=x(()=>t.hoverInteractionState??Cre.create()).current;return t.hoverInteractionState||=n,St(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function kc(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=Qo(),d=Zo(),f=Oc(a),p=Hi(),h=w(()=>ma(l.current.openEvent?.type,f.interactedInside)),g=w(()=>ha(l.current.openEvent?.type)),_=w(()=>{Ec(f)});k(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,_())},[o,f,_]),m.useEffect(()=>_,[_]),k(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&g()&&en(c)&&s){let e=c,t=s,n=Cn(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r,o=f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return Dc(f,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{_()}}},[n,o,c,s,f,g,u,d,_]),m.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&_o(u.nodesRef.current,d).length>0)}function t(e){let t=fa(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,Y(Ue,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=ra(e);if(!sa(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,v),_()}function m(n){if(e()&&u){u.events.on(`floating.closed`,v);return}if(ia(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&en(o)&&_o(u.nodesRef.current,r,!1).some(e=>na(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}_(),g()&&!h()&&t(n)}}function v(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,v),a.setOpen(!1,Y(Ue,t)),u.events.emit(`floating.closed`,t)})}let y=s;return ba(y&&kn(y,`mouseenter`,c),y&&kn(y,`mouseleave`,m),y&&kn(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,g,h,_,f,u,d,p])}var wre={current:null};function Ac(e,t={}){let{enabled:n=!0,delay:i=0,handleClose:a=null,mouseOnly:o=!1,restMs:s=0,move:c=!0,triggerElementRef:l=wre,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:f,isClosing:p,shouldOpen:h,guardStaleOpen:g=!1}=t,_=`rootStore`in e?e.rootStore:e,{dataRef:v,events:y}=_.context,b=Qo(u),x=Oc(_),S=m.useRef(!1),C=An(a),T=An(i),E=An(s),D=An(n),O=An(h),k=An(p),A=w(()=>ma(v.current.openEvent?.type,x.interactedInside)),j=w(()=>O.current?.()!==!1),M=w((e,t,n)=>{let r=_.context.triggerElements;if(r.hasElement(t))return!e||!na(e,t);if(!en(n))return!1;let i=n;return r.hasMatchingElement(e=>na(e,i))&&(!e||!na(e,i))}),N=w(()=>{x.handler&&=(Cn(_.select(`domReferenceElement`)).removeEventListener(`mousemove`,x.handler),void 0)}),P=w(()=>{Ec(x)});return d&&(x.handleCloseOptions=C.current?.__options),m.useEffect(()=>N,[N]),m.useEffect(()=>{if(!n)return;function e(e){e.open?S.current=!1:(S.current=e.reason===Ue,N(),x.openChangeTimeout.clear(),x.restTimeout.clear(),x.blockMouseMove=!0,x.restTimeoutPending=!1)}return y.on(`openchange`,e),()=>{y.off(`openchange`,e)}},[n,y,x,N]),m.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=fa(T.current,`close`,x.pointerType);n?x.openChangeTimeout.start(n,()=>{_.setOpen(!1,Y(Ue,e)),b?.events.emit(`floating.closed`,e)}):t&&(x.openChangeTimeout.clear(),_.setOpen(!1,Y(Ue,e)),b?.events.emit(`floating.closed`,e))}let t=l.current??(d?_.select(`domReferenceElement`):null);if(!en(t))return;function r(e){if(x.openChangeTimeout.clear(),x.blockMouseMove=!1,o&&!Qi(x.pointerType))return;let t=pa(E.current),n=fa(T.current,`open`,x.pointerType),r=ra(e),i=e.currentTarget??null,a=_.select(`domReferenceElement`),s=i;if(en(r)&&!_.context.triggerElements.hasElement(r)){for(let e of _.context.triggerElements.elements())if(na(e,r)){s=e;break}}en(i)&&en(a)&&!_.context.triggerElements.hasElement(i)&&na(i,a)&&(s=a);let c=s!=null&&M(a,s,r),l=_.select(`open`),u=k.current?.()??_.select(`transitionStatus`)===`ending`,d=!l&&u&&S.current,f=!c&&en(s)&&en(a)&&na(a,s)&&d,p=t>0&&!n,m=c&&(l||d)||f,h=!l||c;if(m){j()&&_.setOpen(!0,Y(Ue,e,s));return}p||(n?x.openChangeTimeout.start(n,()=>{h&&j()&&_.setOpen(!0,Y(Ue,e,s))}):h&&j()&&_.setOpen(!0,Y(Ue,e,s)))}function i(t){if(A()){P();return}N();let n=Cn(_.select(`domReferenceElement`));x.restTimeout.clear(),x.restTimeoutPending=!1;let r=v.current.floatingContext??f?.();if(!ia(t.relatedTarget,_.context.triggerElements)){if(C.current&&r){_.select(`open`)||x.openChangeTimeout.clear();let i=l.current;x.handler=C.current({...r,tree:b,x:t.clientX,y:t.clientY,onClose(){P(),N(),D.current&&!A()&&i===_.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,x.handler),x.handler(t);return}(x.pointerType!==`touch`||!na(_.select(`floatingElement`),t.relatedTarget))&&e(t)}}function a(e){na(t,e.relatedTarget)||(x.openChangeTimeout.clear(),x.restTimeout.clear(),x.restTimeoutPending=!1)}let s=g?kn(t,`mouseout`,a):void 0;return c?ba(kn(t,`mousemove`,r,{once:!0}),kn(t,`mouseenter`,r),kn(t,`mouseleave`,i),s):ba(kn(t,`mouseenter`,r),kn(t,`mouseleave`,i),s)},[N,P,v,T,_,n,C,x,d,M,A,o,c,E,l,b,D,f,k,j,g]),m.useMemo(()=>{if(!n)return;function e(e){x.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,i=_.select(`domReferenceElement`),a=_.select(`open`),s=M(i,n,e.target);if(o&&!Qi(x.pointerType))return;if(a&&s&&x.handleCloseOptions?.blockPointerEvents){let e=_.select(`floatingElement`);if(e){let t=x.handleCloseOptions?.getScope?.()??n.ownerDocument.body;Dc(x,{scopeElement:t,referenceElement:n,floatingElement:e})}}let c=pa(E.current);if(a&&!s||c===0||!s&&x.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;x.restTimeout.clear();function l(){if(x.restTimeoutPending=!1,A())return;let e=_.select(`open`);!x.blockMouseMove&&(!e||s)&&j()&&_.setOpen(!0,Y(Ue,t,n))}x.pointerType===`touch`?r.flushSync(()=>{l()}):s&&a?l():(x.restTimeoutPending=!0,x.restTimeout.start(c,l))}}},[n,x,A,M,o,_,E,j])}var Tre=`Escape`;function jc(e){return Ii&&e.movementX===0&&e.movementY===0}function Mc(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Nc(e,t){return Mc(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Pc(e,t,n){return Mc(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function Ere(e,t,n){return Mc(t,n?e===$i:e===ea,e===Kte)}function Dre(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===Tre:Mc(t,n?e===ea:e===$i,e===Gte)}function Fc(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:h=!0,disabledIndices:g=void 0,orientation:_=`vertical`,parentOrientation:v,id:y,resetOnPointerLeave:b=!0,externalTree:x,grid:S}=t,C=S!=null;process.env.NODE_ENV!==`production`&&(s&&(c||console.warn("`useListNavigation` looping must be enabled to allow escaping."),d||console.warn("`useListNavigation` must be virtual to allow escaping.")),_===`vertical`&&C&&console.warn("In grid list navigation mode, the `orientation` should",`be either "horizontal" or "both".`));let T=`rootStore`in e?e.rootStore:e,E=T.useState(`open`),D=T.useState(`floatingElement`),O=T.useState(`domReferenceElement`),A=T.context.dataRef,j=ua(D),M=ca(O),N=An(j),P=Zo(),F=Qo(x),I=m.useRef(f),L=m.useRef(o??-1),R=m.useRef(null),z=m.useRef(!0),B=w(e=>{i(L.current===-1?null:L.current,e)}),V=m.useRef(!!D),H=m.useRef(E),U=m.useRef(!1),W=m.useRef(!1),G=m.useRef(null),ee=An(g),K=An(E),te=An(o),q=An(b),ne=Dt(),re=Dt(),ie=w(()=>{function e(e){d?F?.events.emit(`virtualfocus`,e):G.current=xo(e,{sync:U.current,preventScroll:!0})}let t=n.current[L.current],r=W.current;t&&e(t),(U.current?e=>e():e=>ne.request(e))(()=>{let i=n.current[L.current]||t;i&&(t||e(i),ue&&(r||!z.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});k(()=>{A.current.orientation=_},[A,_]),k(()=>{a&&(E&&D?(L.current=o??-1,I.current&&o!=null&&(W.current=!0,B())):V.current&&(L.current=-1,B()))},[a,E,D,o,B]),k(()=>{if(a){if(!E){U.current=!1;return}if(D){if(r==null){if(U.current=!1,te.current!=null)return;if(V.current&&(L.current=-1,ie()),(!H.current||!V.current)&&I.current&&(R.current!=null||I.current===!0&&R.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>re.request(e):queueMicrotask)(t),e+=1):(L.current=R.current==null||Pc(R.current,_,u)||l?Ka(n):qa(n),R.current=null,B())};t()}}else Ga(n.current,r)||(L.current=r,ie(),W.current=!1)}}},[a,E,D,r,te,l,n,_,u,B,ie,re]),k(()=>{if(!a||D||!F||d||!V.current)return;let e=F.nodesRef.current,t=e.find(e=>e.id===P)?.context?.elements.floating,n=ta(Cn(O??t??null)),r=e.some(e=>e.context&&na(e.context.elements.floating,n));t&&!r&&z.current&&t.focus({preventScroll:!0})},[a,D,O,F,P,d]),k(()=>{H.current=E,V.current=!!D}),k(()=>{E||(R.current=null,I.current=f)},[E,f]);let ae=r!=null,oe=w(e=>{if(!K.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(L.current!==t||r!==t)&&(L.current=t,B(e))}),se=w(()=>v??F?.nodesRef.current.find(e=>e.id===P)?.context?.dataRef?.current.orientation),ce=w(()=>Ka(n,ee.current)),le=w(e=>{if(z.current=!1,U.current=!0,e.which===229||!K.current&&e.currentTarget===N.current)return;if(l&&Dre(e.key,_,u,C)){Nc(e.key,se())||Yi(e),T.setOpen(!1,Y(st,e.nativeEvent)),tn(O)&&(d?F?.events.emit(`virtualfocus`,O):O.focus());return}let t=L.current,r=Ka(n,g),i=qa(n,g);if(M||(e.key===`Home`&&(Yi(e),L.current=r,B(e)),e.key===`End`&&(Yi(e),L.current=i,B(e))),S!=null){let t=S(e,L.current,n,_,c,u,g,r,i);if(t!=null&&(L.current=t,B(e)),_===`both`)return}if(Nc(e.key,_)){if(Yi(e),E&&!d&&ta(e.currentTarget.ownerDocument)===e.currentTarget){L.current=Pc(e.key,_,u)?r:i,B(e);return}Pc(e.key,_,u)?c?t>=i?s&&t!==n.current.length?L.current=-1:(U.current=!1,L.current=r):L.current=Ja(n.current,{startingIndex:t,disabledIndices:g}):L.current=Math.min(i,Ja(n.current,{startingIndex:t,disabledIndices:g})):c?t<=r?s&&t!==-1?L.current=n.current.length:(U.current=!1,L.current=i):L.current=Ja(n.current,{startingIndex:t,decrement:!0,disabledIndices:g}):L.current=Math.max(r,Ja(n.current,{startingIndex:t,decrement:!0,disabledIndices:g})),Ga(n.current,L.current)&&(L.current=-1),B(e)}}),ue=m.useMemo(()=>({onFocus(e){U.current=!0,oe(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){jc(e)||(U.current=!0,W.current=!1,p&&oe(e))},onPointerLeave(e){if(!K.current||!z.current||e.pointerType===`touch`)return;U.current=!0;let t=e.relatedTarget;if(!(!p||n.current.includes(t))&&q.current&&(G.current?.(),G.current=null,L.current=-1,B(e),!d)){let e=N.current,t=ta(Cn(e));e&&na(e,t)&&e.focus({preventScroll:!0})}}}),[oe,K,N,p,n,B,q,d]),de=m.useMemo(()=>d&&E&&ae&&{"aria-activedescendant":`${y}-${r}`},[d,E,ae,y,r]),fe=m.useMemo(()=>({"aria-orientation":_===`both`?void 0:_,...M?{}:de,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&E&&!d){let t=ra(e.nativeEvent);if(t&&!na(N.current,t))return;Yi(e),T.setOpen(!1,Y(it,e.nativeEvent)),tn(O)&&O.focus();return}le(e)},onPointerMove(e){jc(e)||(z.current=!0)}}),[de,le,N,_,M,T,E,d,O]),pe=m.useMemo(()=>{function e(e){T.setOpen(!0,Y(st,e.nativeEvent,e.currentTarget))}function t(e){f===`auto`&&Xi(e.nativeEvent)&&(I.current=!d)}function n(e){I.current=f,f===`auto`&&Zi(e.nativeEvent)&&(I.current=!0)}return{onKeyDown(t){let n=T.select(`open`);z.current=!1;let r=t.key.startsWith(`Arrow`),i=Ere(t.key,se(),u),a=Nc(t.key,_),o=(l?i:a)||t.key===`Enter`||t.key.trim()===``;if(d&&n)return le(t);if(!(!n&&!h&&r)){if(o){let e=Nc(t.key,se());R.current=l&&e?null:t.key}if(l){i&&(Yi(t),n?(L.current=ce(),B(t)):e(t));return}a&&(te.current!=null&&(L.current=te.current),Yi(t),!n&&h?e(t):le(t),n&&B(t))}},onFocus(e){T.select(`open`)&&!d&&(L.current=-1,B(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[le,f,ce,l,B,T,h,_,se,u,te,d]),me=m.useMemo(()=>({...de,...pe}),[de,pe]);return m.useMemo(()=>a?{reference:me,floating:fe,item:ue,trigger:pe}:{},[a,me,fe,pe,ue])}function Ic(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=`rootStore`in e?e.rootStore:e,f=d.useState(`open`),p=Hi(),h=m.useRef(``),g=m.useRef(u??i??-1),_=m.useRef(null),v=w(e=>{function t(e){return r?.current[e]}function c(e){let n=t(e);return n&&!Xa(n)||n?.matches(`:disabled`)?!1:o==null||!Ya(oe,e,o)}function d(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(!(!e[n]?.toLowerCase().startsWith(i)||!c(n)))return n}return-1}let m=n.current;if(h.current.length>0&&e.key===` `&&(Yi(e),s?.(!0)),h.current.length>0&&h.current[0]!==` `&&d(m,h.current)===-1&&e.key!==` `&&s?.(!1),m==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(Yi(e),s?.(!0));let v=h.current===``;v&&(g.current=u??i??-1),m.every((e,t)=>e&&c(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&h.current===e.key&&(h.current=``,g.current=_.current),h.current+=e.key,p.start(l,()=>{h.current=``,g.current=_.current,s?.(!1)});let y=((v?u??i??-1:g.current)??0)+1,b=d(m,h.current,y);b===-1?e.key!==` `&&(h.current=``,s?.(!1)):(a?.(b),_.current=b)}),y=w(e=>{let t=e.relatedTarget,n=d.select(`domReferenceElement`),r=d.select(`floatingElement`);na(n,t)||na(r,t)||(p.clear(),h.current=``,g.current=_.current,s?.(!1))});k(()=>{!f&&u!==null||(p.clear(),_.current=null,h.current!==``&&(h.current=``))},[f,u,p]);let b=m.useMemo(()=>({onKeyDown:v,onBlur:y}),[v,y]);return m.useMemo(()=>c?{reference:b,floating:b}:{},[c,b])}var Lc=.1,Ore=Lc*Lc,Rc=.5;function zc(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Bc(e,t,n,r,i,a,o,s,c,l){let u=!1;return zc(e,t,n,r,i,a)&&(u=!u),zc(e,t,i,a,o,s)&&(u=!u),zc(e,t,o,s,c,l)&&(u=!u),zc(e,t,c,l,n,r)&&(u=!u),u}function kre(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Vc(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Hc(e={}){let{blockPointerEvents:t=!1}=e,n=new Vi,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*Ore;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=ra(r),g=r.type===`mouseleave`,_=na(u,h),v=na(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&en(r.relatedTarget)&&na(u,r.relatedTarget))return;function y(){return!!(s&&_o(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=Vc(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=Vc(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=Vc(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=Vc(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!kre(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?Rc/2:Rc*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+Rc+1,o=C||T?S.bottom-Rc:S.top,s=C?T?S.bottom-Rc:S.top:S.bottom-Rc;M=Bc(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?Rc/2:Rc*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-Rc,o=C||T?S.top+Rc:S.bottom,s=C?T?S.top+Rc:S.bottom:S.top+Rc;M=Bc(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?Rc/2:Rc*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+Rc+1,o=w||E?S.right-Rc:S.left,s=w?E?S.right-Rc:S.left:S.right-Rc;M=Bc(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?Rc/2:Rc*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-Rc,o=w||E?S.left+Rc:S.right,s=w?E?S.left+Rc:S.right:S.left+Rc;M=Bc(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}function Uc({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`disablePointerDismissal`),a=e.useState(`modal`),o=e.useState(`popupElement`),s=e.useState(`floatingRootContext`),[c,l]=m.useState(0),[u,d]=m.useState(0),f=c===0,p=us(s,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:a===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=ra(t);if(f&&!i){if(a){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||na(n,o)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:f});return Ji(r&&a===!0,o),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{l(e),d(t)}),k(()=>(t?.onNestedDialogOpen&&(r?t.onNestedDialogOpen(c+1,u+ +!!n):t.onNestedDialogOpen(0,0)),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,c,u,t]),cc(e,{activeTriggerProps:p.reference,inactiveTriggerProps:p.trigger,popupProps:p.floating,nestedOpenDialogCount:c,nestedOpenDrawerCount:u}),null}var Wc=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Wc.displayName=`DialogRootContext`);function Gc(e){let t=m.useContext(Wc);if(!e&&t===void 0)throw Error(process.env.NODE_ENV===`production`?B(27):`Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.`);return t}var Kc=class extends qs{setState(e){}update(e){}set(e,t){}notifyAll(){}},qc={...yc,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},Jc=class extends qs{constructor(e,t,n){let r=new dc,i=Xc(e,r,t,n);super(i,Zc(r),qc)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};nc(n,e,t.trigger),this.update(n)}};function Yc(){let e=new dc;return new Kc(Object.freeze(Xc(void 0,e)),Object.freeze(Zc(e)),qc)}function Xc(e,t,n,r=!1){let i={...pc(),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e};return i.floatingRootContext=mc(t,n,r),i}function Zc(e){return{popupRef:m.createRef(),backdropRef:m.createRef(),internalBackdropRef:m.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function Qc(e,t){let{children:r,open:i,defaultOpen:a=!1,onOpenChange:o,onOpenChangeComplete:s,disablePointerDismissal:c=!1,modal:l=!0,actionsRef:u,handle:d,triggerId:f,defaultTriggerId:p=null}=t,h=e===`drawer`,g=e===`alert-dialog`,_=g?!0:l,v=g||c,y=g?`alertdialog`:`dialog`,b=Gc(!0),x={modal:_,disablePointerDismissal:v,nested:b!=null,role:y},S=$s((e,t)=>new Jc({open:a,openProp:i,activeTriggerId:p,triggerIdProp:f,...x},e,t),!0);S.useControlledProp(`openProp`,i),S.useControlledProp(`triggerIdProp`,f),S.useSyncedValues(x),S.useContextCallback(`onOpenChange`,o),S.useContextCallback(`onOpenChangeComplete`,s);let C=S.useState(`open`),w=S.useState(`mounted`),T=S.useState(`payload`);lc(S,C),oc(S);let{forceUnmount:E}=sc(C,S);m.useImperativeHandle(u,()=>({unmount:E,close:()=>S.setOpen(!1,Y(vt))}),[E,S]);let D=C||w;return(0,n.jsxs)(Wc.Provider,{value:S,children:[d&&(0,n.jsx)(ec,{handle:d,store:S}),D&&(0,n.jsx)(Uc,{store:S,parentContext:b?.context,isDrawer:h}),typeof r==`function`?r({payload:T}):r]})}function Are(e){return Qc(`alert-dialog`,e)}var $c=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=Ft.startingStyle]=`startingStyle`,e[e.endingStyle=Ft.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),jre={"data-popup-open":``},Mre={"data-popup-open":``,"data-pressed":``},Nre={"data-open":``},Pre={"data-closed":``},Fre={"data-anchor-hidden":``},el={open(e){return e?jre:null}},tl={open(e){return e?Mre:null}},nl={open(e){return e?Nre:Pre},anchorHidden(e){return e?Fre:null}},rl={...nl,...Rt},il=m.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Gc(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return J(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:rl,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})});process.env.NODE_ENV!==`production`&&(il.displayName=`DialogBackdrop`);var al=m.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=Gc(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Tn({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Y(qe,e.nativeEvent))}return J(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})});process.env.NODE_ENV!==`production`&&(al.displayName=`DialogClose`);var ol=m.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Gc(),c=Be(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),J(`p`,e,{ref:t,props:[{id:c},o]})});process.env.NODE_ENV!==`production`&&(ol.displayName=`DialogDescription`);var sl=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(sl.displayName=`DialogPortalContext`);function cl(){let e=m.useContext(sl);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(26):`Base UI: <Dialog.Portal> is missing.`);return e}var ll=`ArrowUp`,ul=`ArrowDown`,dl=`ArrowLeft`,fl=`ArrowRight`,pl=`Home`,ml=`PageUp`,hl=`PageDown`,gl=new Set([ll,ul,dl,fl,pl,`End`]),_l=`Shift`,Ire=[_l,`Control`,`Alt`,`Meta`];function Lre(e){return tn(e)&&e.tagName===`INPUT`}function vl(e){return!!(Lre(e)&&e.selectionStart!=null||tn(e)&&e.tagName===`TEXTAREA`)}function yl(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=bl(e,t,`left`),a=xl(e),o=xl(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=bl(e,t,`top`),r=xl(e),i=xl(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function bl(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function xl(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var Sl={...nl,...Rt,nestedDialogOpen(e){return e?{"data-nested-dialog-open":``}:null}},Cl=m.forwardRef(function(e,t){let{render:r,className:i,style:a,finalFocus:o,initialFocus:s,...c}=e,l=Gc(),u=l.useState(`descriptionElementId`),d=l.useState(`disablePointerDismissal`),f=l.useState(`floatingRootContext`),p=l.useState(`popupProps`),m=l.useState(`modal`),h=l.useState(`mounted`),g=l.useState(`nested`),_=l.useState(`nestedOpenDialogCount`),v=l.useState(`open`),y=l.useState(`openMethod`),b=l.useState(`titleElementId`),x=l.useState(`transitionStatus`),S=l.useState(`role`),C=f.useState(`floatingId`);cl(),Nn({open:v,ref:l.context.popupRef,onComplete(){v&&l.context.onOpenChangeComplete?.(!0)}});let w=s===void 0?Qs(l.context.popupRef):s,T=_>0,E=l.useStateSetter(`popupElement`),D=J(`div`,e,{state:{open:v,nested:g,transitionStatus:x,nestedDialogOpen:T},props:[p,{id:C,"aria-labelledby":b,"aria-describedby":u,role:S,...Zs,hidden:!h,onKeyDown(e){gl.has(e.key)&&e.stopPropagation()},style:{"--nested-dialogs":_}},c],ref:[t,l.context.popupRef,E],stateAttributesMapping:Sl});return(0,n.jsx)(ss,{context:f,openInteractionType:y,disabled:!h,closeOnFocusOut:!d,initialFocus:w,returnFocus:o,modal:m!==!1,restoreFocus:`popup`,children:D})});process.env.NODE_ENV!==`production`&&(Cl.displayName=`DialogPopup`);function wl(e){return ne(19)?e:e?`true`:void 0}var Tl=m.forwardRef(function(e,t){let{cutout:r,...i}=e,a;if(r){let e=r.getBoundingClientRect();a=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,n.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...i,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:a}})});process.env.NODE_ENV!==`production`&&(Tl.displayName=`InternalBackdrop`);var El=m.forwardRef(function(e,t){let{keepMounted:r=!1,...i}=e,a=Gc(),o=a.useState(`mounted`),s=a.useState(`modal`),c=a.useState(`open`);return o||r?(0,n.jsx)(sl.Provider,{value:r,children:(0,n.jsxs)(Ko,{ref:t,...i,children:[o&&s===!0&&(0,n.jsx)(Tl,{ref:a.context.internalBackdropRef,inert:wl(!c)}),e.children]})}):null});process.env.NODE_ENV!==`production`&&(El.displayName=`DialogPortal`);var Dl=m.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Gc(),c=Be(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),J(`h2`,e,{ref:t,props:[{id:c},o]})});process.env.NODE_ENV!==`production`&&(Dl.displayName=`DialogTitle`);function Ol(e){let t=m.useRef(``),n=m.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:m.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function kl(e,t){let n=m.useRef(e),r=w(t);k(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function Al(e,t){let{onClick:n,onPointerDown:r}=Ol(w((n,r)=>{(typeof e==`function`?e():e)||t(r||(ji?`touch`:``))}));return m.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function jl(e){let[t,n]=m.useState(null),r=Al(e,n);return kl(e,t=>{t&&!e&&n(null)}),m.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var Ml=m.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,payload:c,handle:l,...u}=e,d=Gc(!0),f=bc(l)??d;if(!f)throw Error(process.env.NODE_ENV===`production`?B(79):`Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.`);let p=Be(s),h=f.useState(`floatingRootContext`),g=f.useState(`isOpenedByTrigger`,p),_=f.useState(`triggerPopupId`,p),v=m.useRef(null),{registerTrigger:y,isMountedByThisTrigger:b}=ac(p,v,f,{payload:c}),{getButtonProps:x,buttonRef:S}=Tn({disabled:a,native:o}),C=cs(h),w=Al(()=>f.select(`open`),e=>{f.set(`openMethod`,e)}),T={disabled:a,open:g},E=f.useState(`triggerProps`,b);return J(`button`,e,{state:T,ref:[S,t,y,v],props:[C.reference,E,w,{[Po]:``,id:p,"aria-haspopup":`dialog`,"aria-expanded":g,"aria-controls":_},u,x],stateAttributesMapping:el})});process.env.NODE_ENV!==`production`&&(Ml.displayName=`DialogTrigger`);var Rre=Ml,Nl=m.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=cl(),c=Gc(),l=c.useState(`open`),u=c.useState(`nested`),d=c.useState(`transitionStatus`),f=c.useState(`nestedOpenDialogCount`),p=c.useState(`mounted`),m=c.useStateSetter(`viewportElement`);return J(`div`,e,{enabled:s||p,state:{open:l,nested:u,transitionStatus:d,nestedDialogOpen:f>0},ref:[t,m],stateAttributesMapping:Sl,props:[{role:`presentation`,hidden:!p,style:{pointerEvents:l?void 0:`none`},children:a},o]})});process.env.NODE_ENV!==`production`&&(Nl.displayName=`DialogViewport`);var Pl=class extends Ls{constructor(){super(Yc(),`Dialog`,!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let t=this.attachedStore;if(t===null){process.env.NODE_ENV!==`production`&&console.warn(`Base UI: DialogHandle.openWithPayload() was called while no root using this handle is mounted. The call and its payload were ignored; mount a root with this handle before opening it imperatively.`);return}t.set(`payload`,e),t.setOpen(!0,Y(vt))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select(`open`)??!1}};function zre(){return new Pl}var Bre=class extends Pl{};function Vre(){return new Bre}function Fl(e){let t=m.useRef(!0);t.current&&(t.current=!1,e())}function Hre(e,t,n,r,i,a,o,s,c,l=2){let u=nne(n.current,{event:e,orientation:r,loopFocus:i,rtl:a,cols:l,disabledIndices:o,minIndex:s,maxIndex:c,prevIndex:t>c?s:t,stopEvent:!0});return Ga(n.current,u)?void 0:u}var Il=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Il.displayName=`ComboboxRootContext`);var Ll=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Ll.displayName=`ComboboxFloatingContext`);var Rl=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Rl.displayName=`ComboboxDerivedItemsContext`);var zl=m.createContext(!1);process.env.NODE_ENV!==`production`&&(zl.displayName=`ComboboxHasItemsContext`);var Bl=m.createContext(``);process.env.NODE_ENV!==`production`&&(Bl.displayName=`ComboboxInputValueContext`);function Vl(){let e=m.useContext(Il);if(!e)throw Error(process.env.NODE_ENV===`production`?B(22):`Base UI: ComboboxRootContext is missing. Combobox parts must be placed within <Combobox.Root>.`);return e}function Hl(){let e=m.useContext(Ll);if(!e)throw Error(process.env.NODE_ENV===`production`?B(23):`Base UI: ComboboxFloatingContext is missing. Combobox parts must be placed within <Combobox.Root>.`);return e}function Ul(){let e=m.useContext(Rl);if(!e)throw Error(process.env.NODE_ENV===`production`?B(24):`Base UI: ComboboxItemsContext is missing. Combobox parts must be placed within <Combobox.Root>.`);return e}function Wl(){return m.useContext(Bl)}function Ure(){return m.useContext(zl)}var Gl=(e,t)=>Object.is(e,t);function Kl(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function Wre(e,t,n){return!e||e.length===0?!1:e.some(e=>e!==void 0&&Kl(t,e,n))}function ql(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e!==void 0&&Kl(e,t,n))}function Jl(e,t,n,r){let i=ql(e,r&&Array.isArray(t)?t[t.length-1]:t,n);return i===-1?null:i}function Yl(e,t,n){return e.filter(e=>!Kl(t,e,n))}function Xl(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function Zl(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function Ql(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(Zl(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function $l(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return Xl(e)}function eu(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?Xl(e.value):Xl(e)}function tu(e,t,n){function r(){return $l(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=Zl(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function nu(e,t,r){return e.reduce((e,i,a)=>(a>0&&e.push(`, `),e.push((0,n.jsx)(m.Fragment,{children:tu(i,t,r)},a)),e),[])}var ru={id:e=>e.id,labelId:e=>e.labelId,items:e=>e.items,selectedValue:e=>e.selectedValue,hasSelectionChips:e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0},hasSelectedValue:e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0},hasNullItemLabel:(e,t)=>t?Ql(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMounted:e=>e.forceMounted,inline:e=>e.inline,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>Kl(t,e,n)):Kl(t,r,n)},transitionStatus:e=>e.transitionStatus,popupProps:e=>e.popupProps,listProps:e=>e.listProps,inputProps:e=>e.inputProps,triggerProps:e=>e.triggerProps,itemProps:e=>e.itemProps,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupId:e=>e.popupId,triggerElement:e=>e.triggerElement,inputElement:e=>e.inputElement,inputGroupElement:e=>e.inputGroupElement,popupSide:e=>e.popupSide,openMethod:e=>e.openMethod,inputInsidePopup:e=>e.inputInsidePopup,inputOwnsFormValue:e=>e.inputOwnsFormValue,selectionMode:e=>e.selectionMode,name:e=>e.name,form:e=>e.form,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,grid:e=>e.grid,virtualized:e=>e.virtualized,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,modal:e=>e.modal,autoHighlight:e=>e.autoHighlight},iu={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},au={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Gre={disabled:!1,...au},ou={valid(e){return e===null?null:e?{"data-valid":``}:{"data-invalid":``}}},su={invalid:void 0,name:void 0,validityData:{state:iu,errors:[],error:``,value:``,initialValue:null},setValidityData:ae,disabled:void 0,setTouched:ae,setDirty:ae,setFilled:ae,setFocused:ae,validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:Gre,registerFieldControl:ae,validation:{getValidationProps:(e,t=se)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:ae,getInputControl:()=>null,commit:async()=>{},change:ae}},cu=m.createContext(su);process.env.NODE_ENV!==`production`&&(cu.displayName=`FieldRootContext`);function lu(e=!0){let t=m.useContext(cu);if(t.setValidityData===ae&&!e)throw Error(process.env.NODE_ENV===`production`?B(28):`Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.`);return t}function uu(e,t,n,r,i=!0,a){let{registerFieldControl:o}=lu(),s=x(()=>Symbol());k(()=>{let c=s.current;if(!i){o(c,void 0);return}o(c,{controlRef:e,getValue:r,id:t,name:a,value:n})},[e,i,r,t,a,o,s,n]),k(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var du=m.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:ae,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});process.env.NODE_ENV!==`production`&&(du.displayName=`FormContext`);function fu(){return m.useContext(du)}var pu=m.createContext({controlId:void 0,registerControlId:ae,labelId:void 0,setLabelId:ae,messageIds:[],setMessageIds:ae,getDescriptionProps:e=>e});process.env.NODE_ENV!==`production`&&(pu.displayName=`LabelableContext`);function mu(){return m.useContext(pu)}function hu(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=mu(),o=Be(t),s=n?i:void 0,c=x(()=>Symbol()),l=m.useRef(!1),u=m.useRef(t!=null),d=w(()=>{!l.current||a===ae||(l.current=!1,a(c.current,void 0))});return k(()=>{if(a===ae)return;let e;if(n){let n=r?.current;e=en(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),m.useEffect(()=>d,[d]),i??o}function gu(e){return e==null?void 0:`${e}-popup`}function Kre(e,t){return(n,r)=>n!=null&&e.contains(n,r,t)}function _u(e){return Array.isArray(e)?e.map(e=>_u(e)).join(`,`):e==null?``:String(e)}var vu=new Map;function qre(e={}){let t={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...e},n=`${_u(e.locale)}|${JSON.stringify(t)}`,r=vu.get(n);if(r)return r;let i=new Intl.Collator(e.locale,t),a={contains(e,t,n){if(!t)return!0;let r=$l(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(i.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=$l(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=$l(e,n),a=t.length;return r.length>=a&&i.compare(r.slice(r.length-a),t)===0}};return vu.set(n,a),a}var yu=qre;function bu(e,t=!1){let{overflowY:n}=hn(e);return n!==`auto`&&n!==`scroll`?!1:t?e.clientHeight>0:e.scrollHeight>e.clientHeight}function Jre(e,t=!1){let{overflowX:n}=hn(e);return n!==`auto`&&n!==`scroll`?!1:t?e.clientWidth>0:e.scrollWidth>e.clientWidth}function xu(e,t,n=!1){return t===`vertical`?bu(e,n):Jre(e,n)}function Yre(e,t,n){let r=e;for(;tn(r)&&r!==t&&!mn(r);){for(let e of n)if(xu(r,e))return!0;r=_n(r)}return!1}function Su(e,t,n=`vertical`,r=!1){let i=tn(e)?e:null;for(;tn(i)&&i!==t&&!mn(i);){if(xu(i,n,r))return i;i=_n(i)}return xu(t,n,r)?t:null}function Cu(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}var wu=Symbol(`none`),Tu={value:wu,index:-1},Eu=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Eu.displayName=`DirectionContext`);function Du(){return m.useContext(Eu)?.direction??`ltr`}function Ou(e){let{id:t,onOpenChangeComplete:r,defaultSelectedValue:i=null,selectedValue:a,onSelectedValueChange:o,defaultInputValue:s,inputValue:c,open:l,defaultOpen:u=!1,selectionMode:d,onItemHighlighted:f,name:p,form:h,disabled:g=!1,readOnly:v=!1,required:y=!1,inputRef:b,grid:S=!1,items:C,filteredItems:T,filter:E,openOnInputClick:D=!0,autoHighlight:O=!1,keepHighlight:A=!1,highlightItemOnHover:j=!0,loopFocus:M=!0,itemToStringLabel:N,itemToStringValue:P,isItemEqualToValue:F=Gl,virtualized:I=!1,inline:L=!1,fillInputOnItemPress:R=!0,modal:z=!1,limit:B=-1,autoComplete:V=`list`,formAutoComplete:H,locale:W,submitOnItemClick:G=!1}=e,{clearErrors:ee}=fu(),{setDirty:K,validityData:te,setFilled:q,name:ne,disabled:re,setTouched:ie,setFocused:ce,validationMode:le,validation:ue}=lu(),de=Du(),pe=hu({id:t}),me=yu({locale:W}),[he,ge]=m.useState(!1),[_e,ve]=m.useState(null),ye=m.useRef([]),be=m.useRef([]),xe=m.useRef(null),Se=m.useRef(null),Ce=m.useRef(null),we=m.useRef(null),Te=m.useRef(null),J=m.useRef(!0),Ee=m.useRef(!1),De=m.useRef(null),Oe=m.useRef(null),ke=m.useRef(null),Ae=m.useRef(Tu),je=m.useRef(null),Me=m.useRef([]),Ne=m.useRef(null),Pe=re||g,Fe=ne??p,Ie=d===`multiple`,Le=d===`single`,Re=c!==void 0||s!==void 0,ze=C!==void 0,Be=T!==void 0,He;He=O===`always`?`always`:O?`input-change`:!1;let[Ue,We]=_({controlled:a,default:Ie?i??oe:i,name:`Combobox`,state:`selectedValue`}),Ge=m.useMemo(()=>E===null?()=>!0:E===void 0?Kre(me,N):E,[E,me,N]),qe=x(()=>Re?s??``:Le?$l(Ue,N):``).current,[Je,Ye]=_({controlled:c,default:qe,name:`Combobox`,state:`inputValue`}),[Xe,Ze]=_({controlled:l,default:u,name:`Combobox`,state:`open`}),Qe=Zl(C),$e=_e??String(Je).trim(),tt=Le?$l(Ue,N):``,nt=Le&&!he&&$e!==``&&tt.length===$e.length&&me.contains(tt,$e),it=nt?``:$e,at=ze&&Be&&nt,ot=m.useMemo(()=>C?Qe?C.flatMap(e=>e.items):C:oe,[C,Qe]),st=m.useMemo(()=>{if(T&&!at)return T;if(!C)return oe;if(Qe){let e=C,t=[],n=0;for(let r of e){if(B>-1&&n>=B)break;let e=B>-1?B-n:1/0,i=it===``?r.items.slice(0,e):[];if(it!==``)for(let t of r.items){if(i.length>=e)break;Ge(t,it,N)&&i.push(t)}if(i.length>0){let e={...r,items:i};t.push(e),n+=i.length}}return t}if(it===``)return B>-1?ot.slice(0,B):ot;let e=[];for(let t of ot){if(B>-1&&e.length>=B)break;Ge(t,it,N)&&e.push(t)}return e},[T,at,C,Qe,it,B,Ge,N,ot]),ut=m.useMemo(()=>Qe?st.flatMap(e=>e.items):st,[st,Qe]),dt=x(()=>{let e=null;return L&&Xe&&ze&&d!==`none`&&(e=Jl(ut,Ue,F,Ie)),new Ks({id:pe,labelId:void 0,selectedValue:Ue,open:Xe,items:C,selectionMode:d,listRef:ye,labelsRef:be,popupRef:xe,emptyRef:Te,inputRef:Se,startDismissRef:Ce,endDismissRef:we,keyboardActiveRef:J,chipsContainerRef:De,clearRef:Oe,valuesRef:Me,pointerDownItemRef:Ne,selectionEventRef:ke,name:Fe,form:h,disabled:Pe,readOnly:v,required:y,grid:S,virtualized:I,openOnInputClick:D,itemToStringLabel:N,isItemEqualToValue:F,modal:z,autoHighlight:He,submitOnItemClick:G,hasInputValue:Re,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:L,activeIndex:null,selectedIndex:e,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemProps:se,positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:d===`none`,onOpenChangeComplete:ae,setOpen:ae,setInputValue:ae,setSelectedValue:ae,setIndices:ae,handleSelection:ae,forceMount:ae,requestSubmit:ae})}).current,ft=d===`none`?Je:Ue,pt=m.useMemo(()=>d===`none`?ft:Array.isArray(Ue)?Ue.map(e=>eu(e,P)):eu(Ue,P),[ft,P,d,Ue]),mt=w(f),ht=w(r),gt=Z(dt,ru.activeIndex),_t=Z(dt,ru.selectedIndex),vt=Z(dt,ru.positionerElement),yt=Z(dt,ru.listElement),bt=Z(dt,ru.triggerElement),St=Z(dt,ru.inputElement),Ct=Z(dt,ru.inputGroupElement),wt=Z(dt,ru.inline),Tt=Z(dt,ru.inputInsidePopup),Et=Z(dt,ru.inputOwnsFormValue),Dt=An(bt),{mounted:kt,setMounted:At,transitionStatus:jt}=Ot(Xe),{openMethod:Mt,triggerProps:Nt}=jl(Xe),Pt=w(()=>pt);uu(Tt?Dt:Se,pe,ft,Pt,!Pe,p);let Ft=w(()=>{C?be.current=ut.map(e=>$l(e,N)):dt.set(`forceMounted`,!0)}),It=w((e,t,n)=>{if(t===-1){if(Ae.current===Tu)return;Ae.current=Tu}else Ae.current={value:e,index:t};mt(e,xt(n,void 0,{index:t}))}),Lt=w(e=>{dt.update(e);let t=e.activeIndex;if(t===void 0)return;let n=e.type||`none`;t===null?It(void 0,-1,n):It(Me.current[t],t,n)}),Rt=w((t,n)=>{if(Ee.current=n.reason===et,e.onInputValueChange?.(t,n),!n.isCanceled){if(n.reason===`input-change`){Xe&&_e!==null&&ve(null);let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&ge(!0),je.current={hasQuery:e};let n=dt.state.listElement;if(!dt.state.virtualized&&n){let e=xe.current;for(let t of yn(n.firstElementChild??n)){if(!tn(t)||(e?!na(e,t):t.getAttribute(`role`)===`dialog`))break;if(bu(t)){t.scrollTop=0;break}}}e&&He&&dt.state.activeIndex==null&&(Xe||wt)&&dt.set(`activeIndex`,0)}}else n.reason===`input-clear`&&t===``&&dt.state.inputInsidePopup&&(je.current={hasQuery:!1,selection:!0});Ye(t)}}),zt=w((t,n)=>{if(Xe!==t&&(n.reason===`escape-key`&&ze&&ut.length===0&&!Te.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&Tt&&!wt&&_e!==null&&(ge(!1),ve(null),Je!==``&&n.reason!==`input-change`&&Rt(``,Y(et,n.event))),!t&&he&&(Le?(wt||ve($e),$e===``&&ge(!1)):Ie&&(wt||ve($e),Tt&&Lt({activeIndex:null}),(!Tt||wt)&&Rt(``,Y(et,n.event)))),Ze(t),!t&&Tt&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(ie(!0),ce(!1),le===`onBlur`)))){let e=d===`none`?Je:Ue;ue.commit(e)}}),Bt=w((e,t)=>{o?.(e,t),!t.isCanceled&&(We(e),(d===`none`&&xe.current&&R||Le&&!dt.state.inputInsidePopup)&&Rt($l(e,N),Y(t.reason,t.event)))}),Vt=w((e,t)=>{let n=ra(e),r=ke.current??e;ke.current=null;let i=Y(Ke,r),a=n?.closest(`a`)?.getAttribute(`href`);if(a){a.startsWith(`#`)&&zt(!1,i);return}if(Ie){let e=Array.isArray(Ue)?Ue:[],n=Wre(e,t,F)?Yl(e,t,F):[...e,t];if(Bt(n,i),i.isCanceled||!(Se.current&&Se.current.value.trim()!==``))return;dt.state.inputInsidePopup?Rt(``,Y(et,i.event)):zt(!1,i)}else{if(Bt(t,i),i.isCanceled)return;zt(!1,i)}}),Ht=w(()=>{let e=ue.inputRef.current?.form??dt.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),Ut=w(()=>{if(At(!1),ht?.(!1),ge(!1),ve(null),Lt(d===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),Ie&&Se.current&&Se.current.value!==``&&!Ee.current&&Rt(``,Y(et)),Le){if(dt.state.inputInsidePopup)Se.current&&Se.current.value!==``&&Rt(``,Y(et));else{let e=$l(Ue,N);Se.current&&Se.current.value!==e&&Rt(e,Y(e===``?et:Ve))}}}),Wt=m.useMemo(()=>wt&&vt?{current:vt.closest(`[role="dialog"]`)}:xe,[wt,vt]);Nn({enabled:!e.actionsRef,open:Xe,ref:Wt,onComplete(){Xe||Ut()}}),m.useImperativeHandle(e.actionsRef,()=>({unmount:Ut}),[Ut]),k(function(){if(Xe||(Ne.current=null,d===`none`))return;let e=ze?ot:Me.current;Lt({selectedIndex:Jl(e,Ue,F,Ie)})},[Xe,Ue,d,Ie,ze,ot,F,Lt]),k(()=>{C&&(Me.current=ut,ye.current.length=ut.length)},[C,ut]),k(()=>{let e=je.current;if(e){let t=Xe||wt||dt.state.positionerElement?.hidden===!1;if(e.hasQuery)He&&t&&dt.set(`activeIndex`,0),je.current=null;else if(String(Je).trim()===``&&(je.current=null,t)){let t=e.selection;He===`always`&&!t&&dt.state.selectionMode===`none`&&dt.set(`activeIndex`,0),queueMicrotask(()=>{if(!dt.state.open&&!dt.state.inline||Se.current&&Se.current.value.trim()!==``)return;let e=dt.state.selectedValue,n=dt.state.selectionMode===`multiple`,r=n&&Array.isArray(e)?e[e.length-1]:e,i=dt.state.selectionMode!==`none`&&r!=null;if(i||t){let t=ze||Be?ut:Me.current;dt.set(`activeIndex`,i?Jl(t,e,dt.state.isItemEqualToValue,n):null)}else He===`always`&&dt.set(`activeIndex`,0)})}}if(!Xe&&!wt)return;let t=ze||Be?ut:Me.current,n=dt.state.activeIndex;if(n==null){if(He===`always`&&t.length>0){dt.set(`activeIndex`,0);return}It(void 0,-1,Ve);return}if(n>=t.length){It(void 0,-1,Ve),dt.set(`activeIndex`,null);return}let r=t[n],i=Ae.current.value,a=i!==wu&&Kl(r,i,dt.state.isItemEqualToValue);(Ae.current.index!==n||!a)&&It(r,n,Ve)},[gt,He,It,Be,ze,ut,wt,Xe,dt,Je]),k(()=>{if(d===`none`){q(String(Je)!==``);return}q(Ie?Array.isArray(Ue)&&Ue.length>0:Ue!=null)},[q,d,Je,Ue,Ie]),m.useEffect(()=>{ze&&He&&ut.length===0&&Lt({activeIndex:null})},[ze,He,ut.length,Lt]);function Gt(e){let t=te.initialValue;return Array.isArray(e)&&Array.isArray(t)?!Cu(e,t,(e,t)=>Kl(e,t,F)):e!==t}kl($e,()=>{!Xe||$e===``||$e===String(qe)||ge(!0)});function Kt(){let e=$l(Ue,N);Je!==e&&Rt(e,Y(Ve))}kl(Ue,()=>{d!==`none`&&(ee(Fe),K(Gt(Ue)),ue.change(Ue),Le&&!Re&&!Tt&&Kt())}),kl(Je,()=>{d===`none`&&(ee(Fe),K(Je!==te.initialValue),ue.change(Je))}),kl(C,()=>{!Le||Re||Tt||he||Kt()});let qt=xc({open:wt?!0:Xe,onOpenChange:zt,elements:{reference:Tt?bt:St,floating:vt}}),Jt=S?`grid`:`listbox`,Yt=Xe||wt,Xt=Yt?`true`:`false`,Zt=m.useMemo(()=>{let e=St?.tagName===`INPUT`,t=St==null||e,n=t||Yt,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=Xt,r[`aria-haspopup`]=Jt,r[`aria-controls`]=Yt?yt?.id:void 0,r[`aria-autocomplete`]=V),{reference:r,floating:{role:`presentation`}}},[St,Yt,Xt,Jt,yt?.id,V]),Qt=cs(qt,{enabled:!v&&!Pe&&D,event:`mousedown-only`,toggle:!1,touchOpenDelay:Tt?0:100,reason:rt}),$t=us(qt,{enabled:!v&&!Pe&&!wt,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:wt?!0:void 0,outsidePress(e){let t=ra(e);return!na(bt,t)&&!na(Oe.current,t)&&!na(De.current,t)&&!na(Ct,t)}}),en=Fc(qt,{enabled:!v&&!Pe,id:pe,listRef:ye,activeIndex:gt,selectedIndex:_t,virtual:!0,loopFocus:M,allowEscape:M&&!He,focusItemOnOpen:he||d===`none`&&!He?!1:`auto`,focusItemOnHover:j,resetOnPointerLeave:!A,orientation:S?`horizontal`:void 0,rtl:de===`rtl`,disabledIndices:oe,grid:S?Hre:void 0,onNavigate(e,t){!t&&!Xe||jt===`ending`||Lt(t?{activeIndex:e,type:J.current?ct:lt}:{activeIndex:e})}}),nn=m.useMemo(()=>fe(en.reference,{onKeyDown(e){S&&dt.state.activeIndex==null&&(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&e.preventBaseUIHandler()}},$t.reference,Qt.reference,Zt.reference),[en.reference,$t.reference,Qt.reference,Zt.reference,S,dt]),rn=m.useMemo(()=>fe(Zs,$t.floating),[$t.floating]),an=m.useMemo(()=>fe(en.floating,Zt.floating),[en.floating,Zt.floating]),on=m.useMemo(()=>{let e=en.item;return e?{...e,onFocus:void 0}:se},[en.item]);Fl(()=>{dt.update({inline:L,popupProps:rn,listProps:an,inputProps:nn,triggerProps:Nt,itemProps:on,setOpen:zt,setInputValue:Rt,setSelectedValue:Bt,setIndices:Lt,handleSelection:Vt,forceMount:Ft,requestSubmit:Ht,onOpenChangeComplete:ht})}),k(()=>{dt.update({id:pe,selectedValue:Ue,open:Xe,mounted:kt,transitionStatus:jt,items:C,inline:L,popupProps:rn,listProps:an,inputProps:nn,triggerProps:Nt,openMethod:Mt,itemProps:on,selectionMode:d,name:Fe,form:h,disabled:Pe,readOnly:v,required:y,grid:S,virtualized:I,openOnInputClick:D,itemToStringLabel:N,modal:z,autoHighlight:He,isItemEqualToValue:F,submitOnItemClick:G,hasInputValue:Re,inputOwnsFormValue:d===`none`&&(L||!dt.state.inputInsidePopup)})},[dt,pe,Ue,Xe,kt,jt,C,rn,an,nn,on,Mt,Nt,d,Fe,Pe,v,y,S,I,D,N,z,F,G,Re,L,He,h]);let sn=U(b,ue.inputRef),cn=m.useMemo(()=>({query:$e,hasItems:ze,filteredItems:st,flatFilteredItems:ut}),[$e,ze,st,ut]),ln=m.useMemo(()=>Array.isArray(ft)?``:eu(ft,P),[ft,P]),un=Ie&&Array.isArray(Ue)&&Ue.length>0,dn=Ie||d===`none`&&Et?void 0:Fe,fn=m.useMemo(()=>!Ie||!Array.isArray(Ue)||!Fe?null:Ue.map(e=>{let t=eu(e,P);return(0,n.jsx)(`input`,{type:`hidden`,form:h,name:Fe,value:t,disabled:Pe},t)}),[Ie,Ue,h,Fe,P,Pe]),pn=(0,n.jsxs)(m.Fragment,{children:[e.children,(0,n.jsx)(`input`,{...ue.getValidationProps(Pe,{onFocus(){if(Tt){bt?.focus();return}(Se.current||bt)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||Pe||v)return;let t=e.currentTarget.value,n=t.toLowerCase(),r=Y(Ve,e.nativeEvent),i=()=>Me.current.findIndex(e=>eu(e,P).toLowerCase()===n||$l(e,N).toLowerCase()===n);function a(){if(Ie)return;if(d===`none`){Rt(t,r);return}let e=i();e===-1&&(e=Me.current.findIndex((e,t)=>{let r=be.current[t];return r!=null&&r.toLowerCase()===n}));let a=e===-1?void 0:Me.current[e];a!=null&&Bt?.(a,r)}Le&&(Ft(),C&&i()===-1&&dt.set(`forceMounted`,!0)),queueMicrotask(a)}}),id:pe&&dn==null?`${pe}-hidden-input`:void 0,form:h,name:dn,autoComplete:H,disabled:Pe,required:y&&!un,readOnly:v,value:ln,ref:sn,style:dn?Ca:Sa,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),fn]});return(0,n.jsx)(Il.Provider,{value:dt,children:(0,n.jsx)(Ll.Provider,{value:qt,children:(0,n.jsx)(zl.Provider,{value:ze,children:(0,n.jsx)(Rl.Provider,{value:cn,children:(0,n.jsx)(Bl.Provider,{value:Je,children:pn})})})})})}function Xre(e){let{openOnInputClick:t=!1,value:r,defaultValue:i,onValueChange:a,mode:o=`list`,itemToStringValue:s,...c}=e,l=o===`inline`||o===`both`,u=o===`inline`||o===`none`,d=r!==void 0,[f,p]=m.useState(i??``),[h,g]=m.useState(``);m.useEffect(()=>{d&&g(``)},[r,d]);let _;_=l&&h!==``?h:d?r??``:f;let v=yu({locale:c.locale}),y=m.useMemo(()=>c.filter===void 0?v.contains:c.filter,[c.filter,v]),b=String(d?r:f).trim(),x=m.useMemo(()=>o===`both`?y===null?null:(e,t,n)=>y(e,b,n):u?null:y,[y,o,b,u]);function S(e,t){g(``),d||p(e),a?.(e,t)}function C(t,n){e.onItemHighlighted?.(t,n),n.reason!==`pointer`&&g(l&&t!=null?$l(t,s):``)}return(0,n.jsx)(Ou,{...c,itemToStringLabel:s,openOnInputClick:t,selectionMode:`none`,fillInputOnItemPress:!0,filter:x,autoComplete:o,inputValue:_,defaultInputValue:i,onInputValueChange:S,onItemHighlighted:C})}var ku={...tl,...ou,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":``}:null},Au=5;function ju(e,t){let n=Zre(t);return e.clientX>=n.left-Au&&e.clientX<=n.right+Au&&e.clientY>=n.top-Au&&e.clientY<=n.bottom+Au}function Zre(e){let t=e.getBoundingClientRect(),n=Zt(e);if(zi)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function Qre(e){return e==null?void 0:`${e}-label`}function Mu(e,t){return e??t}function Nu(e){let t=Z(e,ru.mounted),n=Z(e,ru.popupSide),r=Z(e,ru.positionerElement);return t&&r?n:null}function Pu(){return Ul().filteredItems.length===0}function Fu(e){return e===`rtl`?[`ArrowRight`,`ArrowLeft`]:[`ArrowLeft`,`ArrowRight`]}function Iu(e,t){let n=e>=t-1?t-2:e;return n>=0?n:void 0}function Lu(e,t,n){let r=e.state.listRef.current[t];r&&(e.state.selectionEventRef.current=n,r.click(),e.state.selectionEventRef.current=null)}var Ru=m.forwardRef(function(e,t){let{render:n,className:r,nativeButton:i=!0,disabled:a=!1,id:o,style:s,...c}=e,{state:l,disabled:u,setTouched:d,setFocused:f,validationMode:p,validation:h}=lu(),{labelId:g}=mu(),_=Vl(),v=Z(_,ru.selectionMode),y=Z(_,ru.disabled),b=Z(_,ru.readOnly),x=Z(_,ru.required),S=Z(_,ru.positionerElement),C=Z(_,ru.listElement),T=Z(_,ru.popupId),E=Z(_,ru.triggerProps),D=Z(_,ru.inputInsidePopup),O=Z(_,ru.id),k=Z(_,ru.labelId),A=Z(_,ru.open),j=Z(_,ru.selectedValue),M=Z(_,ru.activeIndex),N=Z(_,ru.selectedIndex),P=Z(_,ru.hasSelectedValue),F=Hl(),I=Wl(),L=Hi(),R=u||y||a,z=Pu(),B=Nu(_);hu({id:D?o:void 0});let V=D?o??O:o,H=Mu(g,k),U;A&&D?U=T??gu(O):A&&(U=C?.id);let W=m.useRef(``);function G(e){W.current=e.pointerType}let{reference:ee}=Ic(F,{enabled:!A&&!b&&!y&&v===`single`,listRef:_.state.labelsRef,activeIndex:M,selectedIndex:N,onMatch(e){let t=_.state.valuesRef.current[e];t!==void 0&&_.state.setSelectedValue(t,Y(Ve))}}),{reference:K}=cs(F,{enabled:!b&&!y,event:`mousedown`}),{buttonRef:te,getButtonProps:q}=Tn({native:i,disabled:R}),ne={...l,open:A,disabled:R,popupSide:B,listEmpty:z,placeholder:v!==`none`&&!P};return J(`button`,e,{ref:[t,te,w(e=>{_.set(`triggerElement`,e)})],state:ne,props:[E,K,ee,{id:V,tabIndex:D?0:-1,role:D?`combobox`:void 0,"aria-expanded":A,"aria-haspopup":D?`dialog`:`listbox`,"aria-controls":U,"aria-required":D&&x||void 0,"aria-labelledby":H,onPointerDown:G,onPointerEnter:G,onFocus(){f(!0),!(R||b)&&L.start(0,_.state.forceMount)},onBlur(e){if(!na(S,e.relatedTarget)&&(d(!0),f(!1),p===`onBlur`)){let e=v===`none`?I:j;h.commit(e)}},onMouseDown(e){if(R||b||(D||F.set(`domReferenceElement`,e.currentTarget),_.state.forceMount(),W.current!==`touch`&&(_.state.inputRef.current?.focus(),D||e.preventDefault()),A))return;let t=Cn(e.currentTarget);function n(e){let t=_.state.triggerElement;if(!t)return;let n=ra(e),r=_.state.positionerElement,i=_.state.listElement;na(t,n)||na(r,n)||na(i,n)||ju(e,t)||_.state.setOpen(!1,Y(pt,e))}D&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){b||(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(Yi(e),_.state.setOpen(!0,Y(st,e.nativeEvent)),_.state.inputRef.current?.focus())}},h.getValidationProps(R,c),q],stateAttributesMapping:ku})});process.env.NODE_ENV!==`production`&&(Ru.displayName=`ComboboxTrigger`);var zu=Ru,Bu=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Bu.displayName=`ComboboxChipsContext`);function Vu(){return m.useContext(Bu)}var Hu=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Hu.displayName=`ComboboxPositionerContext`);function Uu(e){let t=m.useContext(Hu);if(t===void 0&&!e)throw Error(process.env.NODE_ENV===`production`?B(21):`Base UI: <Combobox.Popup> and <Combobox.Arrow> must be used within the <Combobox.Positioner> component`);return t}var Wu=m.forwardRef(function(e,t){let r=Vl(),{buttonRef:i,getButtonProps:a}=Tn({native:!1}),o=U(t,i);function s(e){r.state.setOpen(!1,Y(qe,e.nativeEvent,e.currentTarget))}let c=a({onClick:s});return(0,n.jsx)(`span`,{ref:o,...c,"aria-label":`Dismiss`,tabIndex:void 0,style:Ca})});process.env.NODE_ENV!==`production`&&(Wu.displayName=`ComboboxInternalDismissButton`);var Gu=m.forwardRef(function(e,t){let{render:r,className:i,disabled:a=!1,id:o,style:s,...c}=e,{state:l,disabled:u,setTouched:d,setFocused:f,validationMode:p,validation:h}=lu(),{labelId:g}=mu(),_=Vu(),v=!!Uu(!0),y=Vl(),b=Wl(),x=Du(),S=Z(y,ru.required),C=Z(y,ru.disabled),T=Z(y,ru.readOnly),E=Z(y,ru.name),D=Z(y,ru.form),O=Z(y,ru.selectionMode),k=Z(y,ru.autoHighlight),A=Z(y,ru.inputProps),j=Z(y,ru.triggerProps),M=Z(y,ru.open),N=Z(y,ru.mounted),P=Z(y,ru.selectedValue),F=Z(y,ru.id),I=Z(y,ru.inline),L=Z(y,ru.modal),R=!!k,z=Nu(y),B=u||C||a,V=Pu(),H=v||I,U=!H||L,W=Be(o??(H?void 0:F)),G=v?au:l,[ee,K]=m.useState(null),te=m.useRef(!1),q=m.useRef(null),ne=m.useRef(!1),re=O===`none`&&!v,ie=w(e=>{let t=v||y.state.inline;t&&!y.state.hasInputValue&&y.state.setInputValue(``,Y(Ve)),y.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:re})}),ae=v?c:h.getValidationProps(B,c);function oe(){y.state.setIndices({activeIndex:null,selectedIndex:null,type:y.state.keyboardActiveRef.current?ct:lt})}function se(){y.state.keyboardActiveRef.current=!1}let ce={...G,open:M,disabled:B,readOnly:T,popupSide:z,listEmpty:V};function le(e){if(!_)return;let t,{highlightedChipIndex:n}=_,r=_.chipsRef.current.length,[i,a]=Fu(x);return n===void 0?(e.key===i&&(e.currentTarget.selectionStart??0)===0&&P.length>0&&(e.preventDefault(),t=r>0?r-1:void 0),t):(e.key===i?(e.preventDefault(),t=n>0?n-1:void 0):e.key===a?(e.preventDefault(),t=n<r-1?n+1:void 0):(e.key===`Backspace`||e.key===`Delete`)&&(e.preventDefault(),t=Iu(n,P.length),oe()),t)}let ue=J(`input`,e,{state:ce,ref:[t,y.state.inputRef,ie],props:[A,j,{value:ee??b,"aria-readonly":T||void 0,"aria-required":S||void 0,"aria-labelledby":g,disabled:B,readOnly:T,required:O===`none`?S:void 0,form:D,...re&&E&&{name:E},id:W,onFocus(){if(f(!0),!I||!ne.current)return;ne.current=!1;let e=q.current;e==null||!Object.hasOwn(y.state.valuesRef.current,e)||y.state.setIndices({activeIndex:e})},onBlur(){d(!0),f(!1);let e=y.state.activeIndex;if(I&&e!==null&&k!==`always`&&(q.current=e,ne.current=!0,y.state.setIndices({activeIndex:null})),p===`onBlur`){let e=O===`none`?b:P;h.commit(e)}},onCompositionStart(e){Ni||(te.current=!0,K(e.currentTarget.value))},onCompositionEnd(e){te.current=!1;let t=e.currentTarget.value;K(null),y.state.setInputValue(t,Y($e,e.nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,r=!n||n===`insertReplacementText`,i=te.current||!r;function a(e){T||B||!e||!i||(y.state.setOpen(!0,Y($e,t)),R||oe())}if(te.current){let n=e.currentTarget.value;K(n),n===``&&!y.state.openOnInputClick&&!y.state.inputInsidePopup&&y.state.setOpen(!1,Y(et,t));let r=n.trim(),i=R&&r!==``;a(r),M&&y.state.activeIndex!==null&&!i&&oe();return}let o=Y($e,t);if(y.state.setInputValue(e.currentTarget.value,o),o.isCanceled)return;let s=e.currentTarget.value===``,c=Y(et,t);s&&!y.state.inputInsidePopup&&(O===`single`&&y.state.setSelectedValue(null,c),y.state.openOnInputClick||y.state.setOpen(!1,c)),a(e.currentTarget.value.trim()),M&&y.state.activeIndex!==null&&!R&&oe()},onKeyDown(e){if(B||T||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;y.state.keyboardActiveRef.current=!0;let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=x===`rtl`;if(e.key===`Home`){Yi(e);let n=Li&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){Yi(e);let i=Li&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!N&&e.key===`Escape`){let t=O===`multiple`&&Array.isArray(P)?P.length===0:P===null,n=Y(at,e.nativeEvent),r=O===`multiple`?[]:null;y.state.setInputValue(``,n),y.state.setSelectedValue(r,n),!t&&!y.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(_&&e.key===`Backspace`&&t.value===``&&_.highlightedChipIndex===void 0&&Array.isArray(P)&&P.length>0){let t=_.chipsRef.current.length,n=t>0?t-1:P.length-1,r=P.filter((e,t)=>t!==n);oe(),y.state.setSelectedValue(r,Y(Ve,e.nativeEvent));return}let i=_?.highlightedChipIndex!==void 0,a=le(e);if(_?.setHighlightedChipIndex(a),a===void 0?i&&y.state.inputRef.current?.focus():_?.chipsRef.current[a]?.focus(),e.which!==229&&e.key===`Enter`&&M){let t=y.state.activeIndex,n=e.nativeEvent;if(t===null){if(I)return;y.state.setOpen(!1,Y(Ve,n));return}Yi(e),Lu(y,t,n)}},onPointerMove:se,onPointerDown:se},ae],stateAttributesMapping:ku}),de=v?(0,n.jsx)(cu.Provider,{value:su,children:ue}):ue;return(0,n.jsxs)(m.Fragment,{children:[M&&U&&(0,n.jsx)(Wu,{ref:y.state.startDismissRef}),de]})});process.env.NODE_ENV!==`production`&&(Gu.displayName=`ComboboxInput`);function Ku(e,t,n,r,i){if(e.baseUIHandlerPrevented||r)return;let a=ra(e.nativeEvent),o=en(a)?a:null;o!==e.currentTarget&&(i?.(o)||sa(o))||(e.preventDefault(),!n&&(t.state.inputRef.current?.focus(),t.state.openOnInputClick&&t.state.setOpen(!0,Y(rt,e.nativeEvent))))}var qu=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=lu(),s=Vl(),c=Z(s,ru.open),l=Z(s,ru.disabled),u=Z(s,ru.readOnly),d=Z(s,ru.hasSelectedValue),f=Z(s,ru.selectionMode),p=Nu(s),m=l,h=Pu(),g=f!==`none`&&!d,_={...o,open:c,disabled:m,readOnly:u,popupSide:p,listEmpty:h,placeholder:g};return J(`div`,e,{ref:[t,w(e=>{s.set(`inputGroupElement`,e)})],props:[{role:`group`,onMouseDown(e){Ku(e,s,m,u,e=>na(s.state.chipsContainerRef.current,e))}},a],state:_,stateAttributesMapping:ku})});process.env.NODE_ENV!==`production`&&(qu.displayName=`ComboboxInputGroup`);var Ju=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return J(`span`,e,{ref:t,props:[{"aria-hidden":!0,children:`▼`},a]})});process.env.NODE_ENV!==`production`&&(Ju.displayName=`ComboboxIcon`);var Yu={...Rt,...el},Xu=m.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:s,...c}=e,{disabled:l}=lu(),u=Vl(),d=Z(u,ru.selectionMode),f=Z(u,ru.disabled),p=Z(u,ru.readOnly),m=Z(u,ru.open),h=Z(u,ru.selectedValue),g=Z(u,ru.hasSelectionChips),_=Wl(),v=!1;v=d===`none`?_!==``:d===`single`?h!=null:g;let y=l||f||i,{buttonRef:b,getButtonProps:x}=Tn({native:a,disabled:y}),{mounted:S,transitionStatus:C,setMounted:w}=Ot(v),T={disabled:y,visible:v,open:m,transitionStatus:C};Nn({open:v,ref:u.state.clearRef,onComplete(){v||w(!1)}});let E=J(`button`,e,{state:T,ref:[t,b,u.state.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(y||p)return;let t=u.state.keyboardActiveRef.current?ct:lt;u.state.setInputValue(``,Y(Je,e.nativeEvent)),d===`none`?u.state.setIndices({activeIndex:null,type:t}):(u.state.setSelectedValue(Array.isArray(h)?[]:null,Y(Je,e.nativeEvent)),u.state.setIndices({activeIndex:null,selectedIndex:null,type:t})),u.state.inputRef.current?.focus()}},c,x],stateAttributesMapping:Yu});return o||S?E:null});process.env.NODE_ENV!==`production`&&(Xu.displayName=`ComboboxClear`);var Zu=m.createContext(null);process.env.NODE_ENV!==`production`&&(Zu.displayName=`GroupCollectionContext`);function Qu(){return m.useContext(Zu)}function $u(e){let{children:t,items:r}=e,i=m.useMemo(()=>({items:r}),[r]);return(0,n.jsx)(Zu.Provider,{value:i,children:t})}function ed(e){let{children:t}=e,{filteredItems:r}=Ul(),i=Qu(),a=i?i.items:r;return(0,n.jsx)(m.Fragment,{children:a.map(t)})}var td=m.forwardRef(function(e,t){var r;let{render:i,className:a,style:o,children:s,...c}=e,l=Vl(),u=Hl(),d=!!Uu(!0),{filteredItems:f,hasItems:p}=Ul(),h=Z(l,ru.selectionMode),g=Z(l,ru.grid),_=Z(l,ru.listProps),v=Z(l,ru.virtualized),y=Z(l,ru.forceMounted),b=h===`multiple`,x=f.length===0,S=w(e=>{l.set(`positionerElement`,e)}),C=w(e=>{l.set(`listElement`,e)}),T=m.useMemo(()=>typeof s==`function`?r||=(0,n.jsx)(ed,{children:s}):s,[s]),E={empty:x},D=u.useState(`floatingId`),O=J(`div`,e,{state:E,ref:[t,C,d?null:S],props:[_,{children:T,tabIndex:-1,id:D,role:g?`grid`:`listbox`,"aria-multiselectable":b?`true`:void 0,onKeyDown(e){if(!(l.state.disabled||l.state.readOnly)&&e.key===`Enter`){let t=l.state.activeIndex;if(t==null)return;Yi(e),Lu(l,t,e.nativeEvent)}},onKeyDownCapture(){l.state.keyboardActiveRef.current=!0},onPointerMoveCapture(){l.state.keyboardActiveRef.current=!1}},c]});if(v)return O;let k=p&&!y?void 0:l.state.labelsRef;return(0,n.jsx)(M,{elementsRef:l.state.listRef,labelsRef:k,children:O})});process.env.NODE_ENV!==`production`&&(td.displayName=`ComboboxList`);var nd=`⁠`;function rd(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;e.nodeValue!==``&&(n=e)}return n}function id(){let e=Hi(),t=m.useRef(null);return m.useEffect(()=>{if(ji)return;let n=t.current;if(n==null)return;let r=rd(n);if(r==null)return;let i=r.data,a=`${i}${nd}`;return r.nodeValue=a,e.start(200,()=>{r.nodeValue===a&&(r.nodeValue=i)}),()=>{e.clear(),r.nodeValue===a&&(r.nodeValue=i)}},[t,e]),t}var ad=m.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e;return J(`div`,e,{ref:[t,id()],props:[{children:a,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})});process.env.NODE_ENV!==`production`&&(ad.displayName=`ComboboxStatus`);var od=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(od.displayName=`ComboboxPortalContext`);function sd(){let e=m.useContext(od);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(20):`Base UI: <Combobox.Portal> is missing.`);return e}var cd=m.forwardRef(function(e,t){let{keepMounted:r=!1,...i}=e,a=Vl(),o=Z(a,ru.mounted),s=Z(a,ru.forceMounted);return o||r||s?(0,n.jsx)(od.Provider,{value:r,children:(0,n.jsx)(Ko,{ref:t,...i})}):null});process.env.NODE_ENV!==`production`&&(cd.displayName=`ComboboxPortal`);var ld=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=ja(e,t)||{};if(l==null)return{};let f=Ha(u),p={x:n,y:r},m=La(i),h=Fa(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=Aa(k,j,A),N=!c.arrow&&Na(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,P=N?j<k?j-k:j-A:0;return{[m]:p[m]+P,data:{[m]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),$re=(e,t)=>({...ld(e),options:[e,t]}),eie={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},ud={sideX:`left`,sideY:`top`},dd=`--available-width`,fd=`--available-height`;function pd(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function md(e,t,n){let{rects:r,placement:i}=e;return{side:pd(t,Ma(i),n),align:Na(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function hd(e){return gd(e,Sre)}function gd(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:h=!1,floatingRootContext:g,mounted:_,collisionAvoidance:v,shift:y,nodeId:b,adaptiveOrigin:x,lazyFlip:S=!1,externalTree:C}=e,[T,E]=m.useState(null);!_&&T!==null&&E(null);let D=v.side||`flip`,O=v.align||`flip`,A=v.fallbackAxisSide||`end`,j=y?.crossAxis??!1,M=y?.rootBoundary,N=typeof n==`function`?n:void 0,P=w(N),F=N?P:n,I=An(n),L=An(_),R=Du()===`rtl`,z=T||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":R?`left`:`right`,"inline-start":R?`right`:`left`}[i],B=o===`center`?z:`${z}-${o}`,V=l;typeof V==`number`?V={top:V,right:V,bottom:V,left:V}:V&&={top:V.top||0,right:V.right||0,bottom:V.bottom||0,left:V.left||0};let H=+(i===`bottom`),U=+(i===`top`),W=+(i===`right`),G=+(i===`left`),ee={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:V},K=m.useRef(null),te=An(a),q=An(s),ne=typeof a==`function`?0:a,re=typeof s==`function`?0:s,ie=[];p&&ie.push(p),ie.push(Yne(e=>{let t=md(e,i,R),n=typeof te.current==`function`?te.current(t):te.current,r=typeof q.current==`function`?q.current(t):q.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[ne,re,R,i]));let ae=O===`none`&&D!==`shift`,oe=!ae&&(u||j||D===`shift`),se=D===`none`?null:Qne({...ee,padding:{top:V.top+1+H,right:V.right+1+G,bottom:V.bottom+1+U,left:V.left+1+W},mainAxis:!j&&D===`flip`,crossAxis:O===`flip`&&`alignment`,fallbackAxisSideDirection:A}),ce=ae?null:Xne({...ee,rootBoundary:M,mainAxis:O!==`none`,crossAxis:oe,limiter:u||j?void 0:Zne(e=>{if(!K.current)return{};let{width:t,height:n}=K.current.getBoundingClientRect(),r=Ia(Ma(e.placement)),i=r===`y`?t:n,a=r===`y`?V.left+V.right:V.top+V.bottom;return{offset:i/2+a/2}})},[ee,u,j,M,V,O]);D===`shift`||O===`shift`||o===`center`?ie.push(ce,se):ie.push(se,ce),ie.push($ne({...ee,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!L.current)return;let i=e.style;i.setProperty(dd,`${t}px`),i.setProperty(fd,`${n}px`);let a=Zt(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),$re(e=>({element:K.current||Cn(e.elements.floating).createElement(`div`),padding:d,offsetParent:`floating`}),[d]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:r,rects:o,y:s}=e,c=Ma(r),l=Ia(c),u=K.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof a==`function`?a(md(e,i,R)):a,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,oe&&l===`y`&&b?S:x),{}}},eie,x),k(()=>{!_&&g&&g.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[_,g]);let le=m.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:ue,elements:de,x:fe,y:pe,middlewareData:me,update:he,placement:ge,context:_e,isPositioned:ve,floatingStyles:ye}=t({rootContext:g,open:h?_:void 0,placement:B,middleware:ie,strategy:r,whileElementsMounted:h?void 0:(...e)=>Es(...e,le),nodeId:b,externalTree:C}),{sideX:be,sideY:xe}=me.adaptiveOrigin||ud,Se=ve?r:`fixed`,Ce=m.useMemo(()=>{let e;return e=ve?x?{position:Se,[be]:fe,[xe]:pe}:{...ye,position:Se}:{position:Se,top:0,left:0},e[dd]=`100vw`,e[fd]=`100vh`,ve||(e.opacity=0),e},[x,Se,be,fe,xe,pe,ye,ve]),we=m.useRef(null);k(()=>{if(!_)return;let e=I.current,t=typeof e==`function`?e():e,n=(_d(t)?t.current:t)||null;n!==we.current&&(ue.setPositionReference(n),we.current=n)},[_,ue,F,I]),m.useEffect(()=>{if(!_)return;let e=I.current;typeof e!=`function`&&_d(e)&&e.current!==we.current&&(ue.setPositionReference(e.current),we.current=e.current)},[_,ue,F,I]),m.useEffect(()=>{if(h&&_&&de.reference&&de.floating)return Es(de.reference,de.floating,he,le)},[h,_,de,he,le]);let Te=Ma(ge),J=pd(i,Te,R),Ee=Na(ge)||`center`,De=!!me.hide?.referenceHidden;k(()=>{S&&_&&ve&&Te!==z&&E(Te)},[S,_,ve,Te,z]);let Oe=m.useMemo(()=>({position:`absolute`,top:me.arrow?.y,left:me.arrow?.x}),[me.arrow]),ke=me.arrow?.centerOffset!==0;return m.useMemo(()=>({positionerStyles:Ce,arrowStyles:Oe,arrowRef:K,arrowUncentered:ke,side:J,align:Ee,physicalSide:Te,anchorHidden:De,refs:ue,context:_e,isPositioned:ve,update:he}),[Ce,Oe,K,ke,J,Ee,Te,De,ue,_e,ve,he])}function _d(e){return e!=null&&`current`in e}function vd(e){return e===`starting`?No:se}function yd(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),J(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},vd(r),i],stateAttributesMapping:nl})}var tie=20;function bd(e,t,n,r){let[i,a]=m.useState(!1);k(()=>{if(!e||!t||n==null){a(!1);return}let r=Cn(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-tie)},[e,t,n]),Ji(e&&(!t||i),r)}var xd=m.forwardRef(function(e,t){let{render:r,className:i,anchor:a,positionMethod:o,side:s,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=zo,style:_,...v}=e,y=Vl(),b=Hl(),x=sd(),S=Z(y,ru.modal),C=Z(y,ru.open),T=Z(y,ru.mounted),E=Z(y,ru.openMethod),D=Z(y,ru.positionerElement),O=Z(y,ru.triggerElement),A=Z(y,ru.inputElement),j=Z(y,ru.inputGroupElement),M=Z(y,ru.inputInsidePopup),N=Z(y,ru.transitionStatus),P=Pu(),F=hd({anchor:a??(M?O:j??A),floatingRootContext:b,positionMethod:o,mounted:T,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:x,collisionAvoidance:g,lazyFlip:!0});bd(C&&S,E===`touch`,D,O);let I={open:C,side:F.side,align:F.align,anchorHidden:F.anchorHidden,empty:P};k(()=>{y.set(`popupSide`,F.side)},[y,F.side]);let L=w(e=>{y.set(`positionerElement`,e)}),R=yd(e,I,{styles:F.positionerStyles,transitionStatus:N,props:v,refs:[t,L],hidden:!T,inert:!C});return(0,n.jsxs)(Hu.Provider,{value:F,children:[T&&S&&(0,n.jsx)(Tl,{inert:wl(!C),cutout:j??A??O}),R]})});process.env.NODE_ENV!==`production`&&(xd.displayName=`ComboboxPositioner`);var nie={...nl,...Rt},Sd=m.forwardRef(function(e,t){let{render:r,className:i,style:a,initialFocus:o,finalFocus:s,...c}=e,l=Vl(),u=Uu(),d=Hl(),f=Z(l,ru.mounted),p=Z(l,ru.open),h=Z(l,ru.openMethod),g=Z(l,ru.popupProps),_=Z(l,ru.transitionStatus),v=Z(l,ru.inputInsidePopup),y=Z(l,ru.inputElement),b=Z(l,ru.modal),x=Z(l,ru.id),S=Pu(),C=c.id??(v?gu(x):void 0);k(()=>(l.set(`popupId`,l.state.popupRef.current?.id||C),()=>{l.set(`popupId`,void 0)}),[l,C]),Nn({open:p,ref:l.state.popupRef,onComplete(){p&&l.state.onOpenChangeComplete(!0)}});let w=J(`div`,e,{state:{open:p,side:u.side,align:u.align,anchorHidden:u.anchorHidden,transitionStatus:_,empty:S},ref:[t,l.state.popupRef],props:[g,{id:C,role:v?`dialog`:`presentation`,onFocus(e){let t=ra(e.nativeEvent);h!==`touch`&&(na(l.state.listElement,t)||t===e.currentTarget)&&l.state.inputRef.current?.focus()}},vd(_),c],stateAttributesMapping:nie}),T=o===void 0?v?e=>e===`touch`?l.state.popupRef.current:y:!1:o,E;E=s??(v?void 0:!1);let D=!v||b;return(0,n.jsx)(ss,{context:d,disabled:!f,modal:D,openInteractionType:h,initialFocus:T,returnFocus:E,getInsideElements:()=>[l.state.startDismissRef.current,l.state.endDismissRef.current],children:(0,n.jsxs)(m.Fragment,{children:[w,D&&(0,n.jsx)(Wu,{ref:l.state.endDismissRef})]})})});process.env.NODE_ENV!==`production`&&(Sd.displayName=`ComboboxPopup`);var Cd=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Cd.displayName=`ComboboxGroupContext`);function rie(){let e=m.useContext(Cd);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(18):`Base UI: ComboboxGroupContext is missing. ComboboxGroup parts must be placed within <Combobox.Group>.`);return e}var wd=m.forwardRef(function(e,t){let{render:r,className:i,style:a,items:o,...s}=e,[c,l]=m.useState(),u=m.useMemo(()=>({labelId:c,setLabelId:l,items:o}),[c,l,o]),d=J(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":c},s]}),f=(0,n.jsx)(Cd.Provider,{value:u,children:d});return o?(0,n.jsx)($u,{items:o,children:f}):f});process.env.NODE_ENV!==`production`&&(wd.displayName=`ComboboxGroup`);var Td=m.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=rie(),c=Be(a);return k(()=>(s(c),()=>{s(e=>e===c?void 0:e)}),[c,s]),J(`div`,e,{ref:t,props:[{id:c},o]})});process.env.NODE_ENV!==`production`&&(Td.displayName=`ComboboxGroupLabel`);var Ed=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Ed.displayName=`ComboboxItemContext`);function Dd(){let e=m.useContext(Ed);if(!e)throw Error(process.env.NODE_ENV===`production`?B(19):`Base UI: ComboboxItemContext is missing. ComboboxItem parts must be placed within <Combobox.Item>.`);return e}var Od=m.createContext(!1);process.env.NODE_ENV!==`production`&&(Od.displayName=`ComboboxRowContext`);function iie(){return m.useContext(Od)}function kd(e){let{componentProps:t,forwardedRef:i,virtualized:a,indexFromFilter:o}=e,{render:s,className:c,style:l,value:u=null,index:d,disabled:f=!1,nativeButton:p=!1,...h}=t,g=m.useRef(null),_=Mt({guess:!0,index:d,textRef:g}),v=Vl(),y=iie(),b=Ure(),x=Z(v,ru.selectionMode),S=Z(v,ru.disabled),C=Z(v,ru.readOnly),w=Z(v,ru.isItemEqualToValue),T=S||f,E=x!==`none`,D=d??o??_.index,O=D!==-1,A=Z(v,ru.id),j=Z(v,ru.isActive,D),M=Z(v,ru.isSelected,u),N=Z(v,ru.itemProps),P=m.useRef(null),F=A!=null&&O?`${A}-${D}`:void 0,I=M&&E;k(()=>{if(!(O&&(a||d!=null)))return;let e=v.state.listRef.current;return e[D]=P.current,()=>{delete e[D]}},[O,a,D,d,v]),k(()=>{if(!O||b)return;let e=v.state.valuesRef.current;return e[D]=u,()=>{delete e[D]}},[O,b,D,u,v]),k(()=>{if(!O||b)return;let e=v.state.selectedValue,t=Array.isArray(e)?e[e.length-1]:e;Kl(u,t,w)&&v.set(`selectedIndex`,D)},[O,b,v,D,u,w]);let{getButtonProps:L,buttonRef:R}=Tn({disabled:T,focusableWhenDisabled:!0,native:p,composite:!0}),z={disabled:T,selected:I,highlighted:j};function B(e){function t(){v.state.handleSelection(e,u)}v.state.submitOnItemClick?(r.flushSync(t),v.state.requestSubmit()):t()}let V={id:F,role:y?`gridcell`:`option`,"aria-selected":E?I:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(v.state.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){T||C||B(e.nativeEvent)},onMouseUp(e){let t=v.state.pointerDownItemRef.current===e.currentTarget;v.state.pointerDownItemRef.current=null,!(T||C||e.button!==0||t||!j)&&B(e.nativeEvent)}},H=J(`div`,t,{ref:[R,i,_.ref,P],state:z,props:[N,V,h,L]}),U=m.useMemo(()=>({selected:I,textRef:g}),[I,g]);return(0,n.jsx)(Ed.Provider,{value:U,children:H})}function aie(e){let{componentProps:t,forwardedRef:r}=e,i=Z(Vl(),ru.isItemEqualToValue),{flatFilteredItems:a}=Ul(),o=ql(a,t.value??null,i);return(0,n.jsx)(kd,{componentProps:t,forwardedRef:r,virtualized:!0,indexFromFilter:o})}var Ad=m.memo(m.forwardRef(function(e,t){let r=Z(Vl(),ru.virtualized);return r&&e.index==null?(0,n.jsx)(aie,{componentProps:e,forwardedRef:t}):(0,n.jsx)(kd,{componentProps:e,forwardedRef:t,virtualized:r,indexFromFilter:void 0})}));process.env.NODE_ENV!==`production`&&(Ad.displayName=`ComboboxItem`);var jd=Ad,Md=m.forwardRef(function(e,t){let{render:r,className:i,style:a,...o}=e,s=J(`div`,e,{ref:t,props:[{role:`row`},o]});return(0,n.jsx)(Od.Provider,{value:!0,children:s})});process.env.NODE_ENV!==`production`&&(Md.displayName=`ComboboxRow`);var Nd=m.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,{filteredItems:s}=Ul(),c=Vl(),l=id(),u=s.length===0?a:null;return J(`div`,e,{ref:[t,c.state.emptyRef,l],props:[{children:u,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})});process.env.NODE_ENV!==`production`&&(Nd.displayName=`ComboboxEmpty`);function oie(){return Ul().filteredItems}var Pd=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Pd.displayName=`AvatarRootContext`);function Fd(){let e=m.useContext(Pd);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(13):`Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>.`);return e}var Id={imageLoadingStatus:()=>null},Ld=m.forwardRef(function(e,t){let{className:r,render:i,style:a,...o}=e,[s,c]=m.useState(`idle`),l={imageLoadingStatus:s},u=m.useMemo(()=>({imageLoadingStatus:s,setImageLoadingStatus:c}),[s,c]),d=J(`span`,e,{state:l,ref:t,props:o,stateAttributesMapping:Id});return(0,n.jsx)(Pd.Provider,{value:u,children:d})});process.env.NODE_ENV!==`production`&&(Ld.displayName=`AvatarRoot`);function sie(e,{referrerPolicy:t,crossOrigin:n,sizes:r,srcSet:i}){let[a,o]=m.useState(`idle`);return k(()=>{if(!e&&!i)return o(`error`),ae;let a=!0,s=new window.Image,c=e=>()=>{a&&o(e)};return o(`loading`),s.onload=c(`loaded`),s.onerror=c(`error`),t&&(s.referrerPolicy=t),s.crossOrigin=n??null,r&&(s.sizes=r),i&&(s.srcset=i),e&&(s.src=e),s.complete&&o(s.naturalWidth>0?`loaded`:`error`),()=>{a=!1}},[e,i,r,n,t]),a}var cie={...Id,...Rt},Rd=m.forwardRef(function(e,t){let{className:n,render:r,onLoadingStatusChange:i,style:a,...o}=e,{setImageLoadingStatus:s}=Fd(),c=sie(o.src,o),l=c===`loaded`,{mounted:u,transitionStatus:d,setMounted:f}=Ot(l),p=m.useRef(null),h=w(e=>{i?.(e),s(e)});k(()=>{c!==`idle`&&h(c)},[c,h]),k(()=>()=>s(`idle`),[s]),Nn({open:l,ref:p,onComplete(){l||f(!1)}});let g=J(`img`,e,{state:{imageLoadingStatus:c,transitionStatus:d},ref:[t,p],props:o,stateAttributesMapping:cie,enabled:u});return u?g:null});process.env.NODE_ENV!==`production`&&(Rd.displayName=`AvatarImage`);var zd=m.forwardRef(function(e,t){let{className:n,render:r,delay:i=0,style:a,...o}=e,{imageLoadingStatus:s}=Fd(),[c,l]=m.useState(i===0),u=Hi();return m.useEffect(()=>(i>0?u.start(i,()=>l(!0)):l(!0),u.clear),[u,i]),J(`span`,e,{state:{imageLoadingStatus:s},ref:t,props:o,stateAttributesMapping:Id,enabled:s!==`loaded`&&(i===0||c)})});process.env.NODE_ENV!==`production`&&(zd.displayName=`AvatarFallback`);var Bd=m.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=Tn({disabled:i,focusableWhenDisabled:a,native:o});return J(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})});process.env.NODE_ENV!==`production`&&(Bd.displayName=`Button`);function lie(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(e===`BUTTON`||e===`INPUT`){let e=t;if(e.type===`submit`)return e}}return null}function Vd(e){return{checked(t){return e.indeterminate?{}:t?{"data-checked":``}:{"data-unchecked":``}},...ou}}var Hd=m.createContext({disabled:!1});process.env.NODE_ENV!==`production`&&(Hd.displayName=`FieldItemContext`);function Ud(){return m.useContext(Hd)}function Wd(e,t,n,r=!0,i){let[a,o]=m.useState(),s=Be(i?`${i}-label`:void 0),c=e??t??a;return k(()=>{let i=e||t||!r?void 0:uie(n.current,s);a!==i&&o(i)}),c}function uie(e,t){let n=die(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function die(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}var Gd=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Gd.displayName=`CheckboxGroupContext`);function fie(){return m.useContext(Gd)}var Kd=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Kd.displayName=`CheckboxRootContext`);function pie(){let e=m.useContext(Kd);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(14):`Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.`);return e}var mie=`data-parent`,qd=m.forwardRef(function(e,t){let{checked:r,className:i,defaultChecked:a=!1,"aria-labelledby":o,disabled:s=!1,form:c,id:l,indeterminate:u=!1,inputRef:d,name:f,onCheckedChange:p,parent:h=!1,readOnly:g=!1,render:v,required:y=!1,uncheckedValue:b,value:S,nativeButton:C=!1,style:w,...T}=e,{clearErrors:E}=fu(),{disabled:D,name:O,setDirty:A,setFilled:j,setFocused:M,setTouched:N,state:P,validationMode:F,validityData:I,validation:L}=lu(),R=Ud(),{labelId:z,controlId:B,registerControlId:V,getDescriptionProps:H}=mu(),W=fie(),G=W?.allValues===void 0?void 0:W.parent,ee=G!==void 0,K=D||R.disabled||W?.disabled||s,te=O??f,q=S??te,ne=Be(),re=Be(),ie=l||B;ee&&(h?ie=re:q===void 0?ie||=re:ie=`${G.id}-${q}`);let oe={};ee&&(h?oe=G.getParentProps():q!==void 0&&(oe=G.getChildProps(q)));let{checked:ce=r,indeterminate:le=u,onCheckedChange:ue,...de}=oe,pe=W?.value,me=m.useRef(null),he=x(()=>Symbol()),ge=m.useRef(!1),{getButtonProps:_e,buttonRef:ve}=Tn({disabled:K,native:C}),ye=W?.validation??L,[be,xe]=_({controlled:q!==void 0&&pe!==void 0&&!h?pe.includes(q):ce,default:a,name:`Checkbox`,state:`checked`}),Se=ee?!!ce:be,Ce=ee&&le||u;k(()=>{V!==ae&&(ge.current=!0,V(he.current,ie))},[ie,V,he]),m.useEffect(()=>{let e=he.current;return()=>{!ge.current||V===ae||(ge.current=!1,V(e,void 0))}},[V,he]),uu(me,ne,be,void 0,!W&&!K,f);let we=m.useRef(null),Te=ye.registerInput,Ee=W?q:void 0,De=m.useCallback(e=>Te(e,{controlRef:me,value:Ee}),[Te,Ee]),Oe=U(d,we,h?void 0:De),ke=Wd(o,z,we,!C,ie??void 0);k(()=>{we.current&&(we.current.indeterminate=Ce,be&&j(!0))},[be,Ce,j]),kl(be,()=>{W||(E(te),j(be),A(be!==I.initialValue),ye.change(be))});let Ae=fe({checked:be,disabled:K,form:c,name:h?void 0:te,id:C?void 0:ie??void 0,required:y,ref:Oe,style:te?Ca:Sa,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(g){e.preventDefault();return}let t=e.currentTarget.checked,n=Y(Ve,e.nativeEvent);if(p?.(t,n),!n.isCanceled&&(ue?.(t,n),!n.isCanceled&&(xe(t),q!==void 0&&W!==void 0&&!h&&!ee))){let e=t?[...W.value,q]:W.value.filter(e=>e!==q);W.setValue(e,n)}},onClick(e){e.stopPropagation()},onFocus(){me.current?.focus()}},S===void 0?se:{value:(W?be&&S:S)||``},H,e=>ye.getValidationProps(K,e));m.useEffect(()=>{if(!G||q===void 0)return;let e=G.disabledStatesRef.current;return e.set(q,K),()=>{e.delete(q)}},[G,K,q]);let je=m.useMemo(()=>({...P,checked:Se,disabled:K,readOnly:g,required:y,indeterminate:Ce}),[P,Se,K,g,y,Ce]),Me=Vd(je),Ne=J(`span`,e,{state:je,ref:[ve,me,t],props:[{id:C?ie??void 0:ne,role:`checkbox`,"aria-checked":Ce?`mixed`:Se,"aria-readonly":g||void 0,"aria-required":y||void 0,"aria-labelledby":ke,[mie]:h?``:void 0,onFocus(){K||M(!0)},onBlur(){let e=we.current;e&&(N(!0),M(!1),F===`onBlur`&&ye.commit(W?pe:e.checked))},onKeyDown(e){if(e.key!==`Enter`||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=we.current?.form??null,n=e.currentTarget,r=e.nativeEvent,i=e.preventDefault,a=r.preventDefault,o=!1;e.preventDefault=()=>{o=!0,i.call(e)},r.preventDefault=()=>{o=!0,a.call(r)},a.call(r),Zt(n).queueMicrotask(()=>{e.preventDefault=i,r.preventDefault=a,o||lie(t)?.click()})},onClick(e){if(g||K)return;e.preventDefault();let t=we.current;t&&wn(t,e)}},T,de,_e,H,e=>ye.getValidationProps(K,e)],stateAttributesMapping:Me});return(0,n.jsxs)(Kd.Provider,{value:je,children:[Ne,!be&&!W&&te&&!h&&b!==void 0&&(0,n.jsx)(`input`,{type:`hidden`,form:c,name:te,value:b,disabled:K}),(0,n.jsx)(`input`,{...Ae,suppressHydrationWarning:!0})]})});process.env.NODE_ENV!==`production`&&(qd.displayName=`CheckboxRoot`);var Jd=m.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=pie(),c=s.checked||s.indeterminate,{mounted:l,transitionStatus:u,setMounted:d}=Ot(c),f=m.useRef(null),p={...s,transitionStatus:u};Nn({open:c,ref:f,onComplete(){c||d(!1)}});let h={...Vd(s),...Rt},g=a||l,_=J(`span`,e,{ref:[t,f],state:p,stateAttributesMapping:h,props:o});return g?_:null});process.env.NODE_ENV!==`production`&&(Jd.displayName=`CheckboxIndicator`),Object.keys(iu);function Yd(e,t){return e.matches(`:disabled`)?!1:!t||e.form===t||e.form===null&&!e.hasAttribute(`form`)}function hie(e){let{allValues:t=oe,value:n,onValueChange:r}=e,i=m.useRef(n),a=m.useRef(new Map),[o,s]=m.useState(`mixed`),c=Be(),l=n.length===t.length,u=n.length!==t.length&&n.length>0,d=w(r),f=m.useCallback(()=>({id:c,indeterminate:u,checked:l,"aria-controls":t.map(e=>`${c}-${e}`).join(` `),onCheckedChange(e,r){let c=i.current,l=t.filter(e=>a.current.get(e)&&c.includes(e)),u=t.filter(e=>!a.current.get(e)||c.includes(e));if(c.length===u.length||c.length===0){n.length===u.length?d(l,r):d(u,r);return}let f=`mixed`,p=c;o===`mixed`?(f=`on`,p=u):o===`on`&&(f=`off`,p=l),d(p,r),r.isCanceled||s(f)}}),[t,l,c,u,d,o,n.length]),p=m.useCallback(e=>({checked:n.includes(e),onCheckedChange(t,r){let a=n.slice();t?a.push(e):a.splice(a.indexOf(e),1),d(a,r),r.isCanceled||(i.current=a,s(`mixed`))}}),[d,n]);return m.useMemo(()=>({id:c,getParentProps:f,getChildProps:p,disabledStatesRef:a}),[c,f,p])}var Xd=m.forwardRef(function(e,t){let{allValues:r,className:i,defaultValue:a,disabled:o=!1,id:s,onValueChange:c,render:l,value:u,style:d,...f}=e,{disabled:p,name:h,state:g,validation:v,setFilled:y,setDirty:b,validityData:x}=lu(),{labelId:S,getDescriptionProps:C}=mu(),{clearErrors:T,elementRef:E}=fu(),D=p||o,[O=oe,k]=_({controlled:u,default:a??oe,name:`CheckboxGroup`,state:`value`}),A=w((e,t)=>{c?.(e,t),!t.isCanceled&&k(e)}),j=hie({allValues:r,value:O,onValueChange:A}),M=Be(s),N=v.getInputControl;uu(m.useMemo(()=>({get current(){return N()}}),[N]),M,O,w(()=>{let e=E.current;if(!e)return O;let t=new Set;for(let[n,r]of v.registeredInputs)r.value!==void 0&&n.checked&&Yd(n,e)&&t.add(r.value);return O.filter(e=>t.has(e))}),!!h&&!D,h),kl(O,()=>{h&&T(h);let e=Array.isArray(x.initialValue)?x.initialValue:oe;y(O.length>0),b(!Cu(O,e)),v.change(O)});let P={...g,disabled:D},F=m.useMemo(()=>({allValues:r,value:O,setValue:A,parent:j,disabled:D,validation:v}),[r,O,A,j,D,v]),I=J(`div`,e,{state:P,ref:t,props:[{id:s,role:`group`,"aria-labelledby":S},f,C],stateAttributesMapping:ou});return(0,n.jsx)(Gd.Provider,{value:F,children:I})});process.env.NODE_ENV!==`production`&&(Xd.displayName=`CheckboxGroup`);var Zd={...Wt,...Rt},Qd=m.forwardRef(function(e,t){let{render:r,className:i,defaultOpen:a=!1,disabled:o=!1,onOpenChange:s,open:c,style:l,...u}=e,d=w(s),f=kt({open:c,defaultOpen:a,onOpenChange:d,disabled:o}),p=m.useMemo(()=>({open:f.open,disabled:f.disabled,transitionStatus:f.transitionStatus}),[f.open,f.disabled,f.transitionStatus]),h=m.useMemo(()=>({...f,onOpenChange:d,state:p}),[f,d,p]),g=J(`div`,e,{state:p,ref:t,props:u,stateAttributesMapping:Zd});return(0,n.jsx)(At.Provider,{value:h,children:g})});process.env.NODE_ENV!==`production`&&(Qd.displayName=`CollapsibleRoot`);var gie={...Ut,...Rt},$d=m.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:a,disabled:o}=jt(),{className:s,disabled:c=o,render:l,nativeButton:u=!0,style:d,...f}=e,{getButtonProps:p,buttonRef:m}=Tn({disabled:c,focusableWhenDisabled:!0,native:u});return J(`button`,e,{state:a,ref:[t,m],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},f,p],stateAttributesMapping:gie})});process.env.NODE_ENV!==`production`&&($d.displayName=`CollapsibleTrigger`);var ef=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),tf=m.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,render:a,id:o,style:s,...c}=e;process.env.NODE_ENV!==`production`&&m.useEffect(()=>{r&&i===!1&&O("The `keepMounted={false}` prop on `Collapsible.Panel` is ignored when `hiddenUntilFound` is enabled, since the panel must remain mounted while closed.")},[r,i]);let{defaultPanelId:l,mounted:u,onOpenChange:d,open:f,setMounted:p,setPanelIdState:h,setOpen:g,state:_,transitionStatus:v}=jt(),y=r??!1,b=i??!1,x=o||void 0,S=x??l;k(()=>(h(e=>x??(e===null?void 0:e)),()=>{h(e=>e===x?null:e)}),[x,h]);let{height:C,props:w,ref:T,shouldPreventOpenAnimation:E,shouldRender:D,transitionStatus:A,width:j}=Fn({externalRef:t,hiddenUntilFound:y,id:S,keepMounted:b,mounted:u,onOpenChange:d,open:f,setMounted:p,setOpen:g,transitionStatus:v}),M={..._,transitionStatus:A},N=ue(s,M),P=J(`div`,{...e,style:void 0},{state:M,ref:T,props:[w,{style:{[ef.collapsiblePanelHeight]:C===void 0?`auto`:`${C}px`,[ef.collapsiblePanelWidth]:j===void 0?`auto`:`${j}px`}},c,N?{style:N}:void 0,E?{style:{animationName:`none`}}:void 0],stateAttributesMapping:Zd});return D?P:null});process.env.NODE_ENV!==`production`&&(tf.displayName=`CollapsiblePanel`);function _ie(e){let{multiple:t=!1,defaultValue:r,value:i,onValueChange:a,autoComplete:o,...s}=e;return(0,n.jsx)(Ou,{...s,selectionMode:t?`multiple`:`single`,selectedValue:i,defaultSelectedValue:r,onSelectedValueChange:a,formAutoComplete:o})}function vie(e,t){let n=Be(e);return k(()=>(t(n),()=>{t(e=>e===n?void 0:e)}),[n,t]),n}function nf(e){let{children:t,placeholder:r}=e,i=Vl(),a=Z(i,ru.itemToStringLabel),o=Z(i,ru.selectedValue),s=Z(i,ru.items),c=Z(i,ru.selectionMode)===`multiple`,l=Z(i,ru.hasSelectedValue),u=!l&&r!=null&&t==null,d=Z(i,ru.hasNullItemLabel,u),f=null;return f=typeof t==`function`?t(o):t??(!l&&r!=null&&!d?r:c&&Array.isArray(o)?nu(o,s,a):tu(o,s,a)),(0,n.jsx)(m.Fragment,{children:f})}var rf=m.forwardRef(function(e,t){let{selected:r}=Dd();return e.keepMounted||r?(0,n.jsx)(af,{...e,ref:t}):null});process.env.NODE_ENV!==`production`&&(rf.displayName=`ComboboxItemIndicator`);var af=m.memo(m.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=Dd(),c=m.useRef(null),{transitionStatus:l,setMounted:u}=Ot(s),d=J(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:Rt});return Nn({open:s,ref:c,onComplete(){s||u(!1)}}),d}));process.env.NODE_ENV!==`production`&&(af.displayName=`Inner`);var of=m.forwardRef(function(e,t){let{render:r,className:i,style:a,...o}=e,s=Vl(),c=Z(s,ru.open),l=Z(s,ru.hasSelectionChips),[u,d]=m.useState(void 0);c&&u!==void 0&&d(void 0);let f=m.useRef([]),p=J(`div`,e,{ref:[t,s.state.chipsContainerRef],props:[l?{role:`toolbar`}:se,{onMouseDown(e){Ku(e,s,s.state.disabled,s.state.readOnly)}},o]}),h=m.useMemo(()=>({highlightedChipIndex:u,setHighlightedChipIndex:d,chipsRef:f}),[u,d,f]);return(0,n.jsx)(Bu.Provider,{value:h,children:(0,n.jsx)(M,{elementsRef:f,children:p})})});process.env.NODE_ENV!==`production`&&(of.displayName=`ComboboxChips`);var sf=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(sf.displayName=`ComboboxChipContext`);function yie(){let e=m.useContext(sf);if(!e)throw Error(process.env.NODE_ENV===`production`?B(17):`Base UI: ComboboxChipContext is missing. ComboboxChip parts must be placed within <Combobox.Chip>.`);return e}var cf=m.forwardRef(function(e,t){let{render:i,className:a,style:o,...s}=e,c=Vl(),{setHighlightedChipIndex:l,chipsRef:u}=Vu(),d=Du(),f=Z(c,ru.disabled),p=Z(c,ru.readOnly),h=Z(c,ru.selectedValue),{ref:g,index:_}=Mt();function v(e){let t=_,[n,r]=Fu(d);return e.key===n?(e.preventDefault(),t=_>0?_-1:void 0):e.key===r?(e.preventDefault(),t=_<u.current.length-1?_+1:void 0):e.key===`Backspace`||e.key===`Delete`?(t=Iu(_,h.length),Yi(e),c.state.setIndices({activeIndex:null,selectedIndex:null,type:ct}),c.state.setSelectedValue(h.filter((e,t)=>t!==_),Y(Ve,e.nativeEvent))):e.key===`Enter`||e.key===` `?(Yi(e),t=void 0):e.key===`ArrowDown`||e.key===`ArrowUp`?(Yi(e),c.state.setOpen(!0,Y(st,e.nativeEvent)),t=void 0):e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(t=void 0),t}let y=J(`div`,e,{ref:[t,g],state:{disabled:f},props:[{tabIndex:-1,"aria-disabled":f||void 0,"aria-readonly":p||void 0,onKeyDown(e){if(f||p)return;let t=v(e);r.flushSync(()=>{l(t)}),t===void 0?c.state.inputRef.current?.focus():u.current[t]?.focus()}},s]}),b=m.useMemo(()=>({index:_}),[_]);return(0,n.jsx)(sf.Provider,{value:b,children:y})});process.env.NODE_ENV!==`production`&&(cf.displayName=`ComboboxChip`);var lf=m.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,style:o,...s}=e,c=Vl(),{index:l}=yie(),u=Z(c,ru.disabled),d=Z(c,ru.readOnly),f=Z(c,ru.selectedValue),p=Z(c,ru.isItemEqualToValue),m=u||i,{buttonRef:h,getButtonProps:g}=Tn({native:a,disabled:m||d,focusableWhenDisabled:!0}),_={disabled:m};function v(e){let t=c.state.activeIndex;if(t==null)return;let n=ql(c.state.valuesRef.current,e,p);n!==-1&&t===n&&c.state.setIndices({activeIndex:null,type:c.state.keyboardActiveRef.current?ct:lt})}function y(e){let t=Y(Ye,e.nativeEvent),n=f[l];return v(n),c.state.setSelectedValue(f.filter((e,t)=>t!==l),t),c.state.inputRef.current?.focus(),t}return J(`button`,e,{ref:[t,h],state:_,props:[{tabIndex:-1,onMouseDown(e){e.preventDefault()},onClick(e){y(e).isPropagationAllowed||e.stopPropagation()},onKeyDown(e){(e.key===`Enter`||e.key===` `)&&(y(e).isPropagationAllowed||Yi(e))}},s,g]})});process.env.NODE_ENV!==`production`&&(lf.displayName=`ComboboxChipRemove`);var uf=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(uf.displayName=`ContextMenuRootContext`);function df(e=!0){let t=m.useContext(uf);if(t===void 0&&!e)throw Error(process.env.NODE_ENV===`production`?B(25):`Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>.`);return t}var ff=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(ff.displayName=`MenuPositionerContext`);function pf(e){let t=m.useContext(ff);if(t===void 0&&!e)throw Error(process.env.NODE_ENV===`production`?B(33):`Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>.`);return t}var mf=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(mf.displayName=`MenuRootContext`);function hf(e){let t=m.useContext(mf);if(t===void 0&&!e)throw Error(process.env.NODE_ENV===`production`?B(36):`Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>.`);return t}var gf=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(gf.displayName=`MenuCheckboxItemContext`);function bie(){let e=m.useContext(gf);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(30):`Base UI: MenuCheckboxItemContext is missing. MenuCheckboxItem parts must be placed within <Menu.CheckboxItem>.`);return e}function xie(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,{events:l}=a.useState(`floatingTreeRoot`),u=a.useState(`open`),d=df(!0),f=d!==void 0;return m.useMemo(()=>({id:r,role:`menuitem`,tabIndex:u&&n?0:-1,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&l.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&l.emit(`close`,{domEvent:e,reason:Ke})},onMouseUp(e){if(d){let t=d.initialCursorPointRef.current;if(d.initialCursorPointRef.current=null,f&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||f&&!Pi&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!f||e.button===2)&&c.type===`regular-item`&&wn(s.current,e,{detail:1})}}),[t,n,r,l,i,u,a,o,s,d,f,c])}var _f={type:`regular-item`};function vf(e){let{closeOnClick:t,disabled:n,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,u=m.useRef(null),{getButtonProps:d,buttonRef:f}=Tn({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=xie({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),h=m.useCallback(e=>fe(p,{onMouseEnter(){c.type===`submenu-trigger`&&c.setActive()}},e,d),[p,d,c]),g=U(u,f);return m.useMemo(()=>({getItemProps:h,itemRef:g}),[h,g])}var yf=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.disabled=`data-disabled`,e.highlighted=`data-highlighted`,e}({}),bf={checked(e){return e?{[yf.checked]:``}:{[yf.unchecked]:``}},...Rt},xf=m.forwardRef(function(e,t){let{render:r,className:i,id:a,label:o,nativeButton:s=!1,disabled:c=!1,closeOnClick:l=!1,checked:u,defaultChecked:d,onCheckedChange:f,style:p,...h}=e,g=Mt({guess:!0,label:o}),v=pf(!0),y=Be(a),{store:b}=hf(),x=b.useState(`disabled`),S=c||x,C=b.useState(`isActive`,g.index),w=b.useState(`itemProps`),[T,E]=_({controlled:u,default:d??!1,name:`MenuCheckboxItem`,state:`checked`}),{getItemProps:D,itemRef:O}=vf({closeOnClick:l,disabled:S,highlighted:C,id:y,store:b,nativeButton:s,nodeId:v?.context.nodeId,itemMetadata:_f}),k=m.useMemo(()=>({disabled:S,highlighted:C,checked:T}),[S,C,T]);function A(e){let t=Y(Ke,e.nativeEvent,void 0,{preventUnmountOnClose:ae});f?.(!T,t),!t.isCanceled&&E(e=>!e)}let j=J(`div`,e,{state:k,stateAttributesMapping:bf,props:[w,{role:`menuitemcheckbox`,"aria-checked":T,onClick:A},h,D],ref:[O,t,g.ref]});return(0,n.jsx)(gf.Provider,{value:k,children:j})});process.env.NODE_ENV!==`production`&&(xf.displayName=`MenuCheckboxItem`);var Sf=m.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=bie(),c=m.useRef(null),{transitionStatus:l,mounted:u,setMounted:d}=Ot(s.checked);return Nn({open:s.checked,ref:c,onComplete(){s.checked||d(!1)}}),J(`span`,e,{state:{checked:s.checked,disabled:s.disabled,highlighted:s.highlighted,transitionStatus:l},ref:[t,c],stateAttributesMapping:bf,props:{"aria-hidden":!0,...o},enabled:a||u})});process.env.NODE_ENV!==`production`&&(Sf.displayName=`MenuCheckboxItemIndicator`);var Cf=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Cf.displayName=`MenuGroupContext`);function Sie(){let e=m.useContext(Cf);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(31):`Base UI: MenuGroupContext is missing. Menu group parts must be used within <Menu.Group> or <Menu.RadioGroup>.`);return e}var wf=m.forwardRef(function(e,t){let{render:r,className:i,style:a,...o}=e,[s,c]=m.useState(void 0),l=J(`div`,e,{ref:t,props:{role:`group`,"aria-labelledby":s,...o}});return(0,n.jsx)(Cf.Provider,{value:c,children:l})});process.env.NODE_ENV!==`production`&&(wf.displayName=`MenuGroup`);var Tf=m.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Be(a),c=Sie();return k(()=>(c(s),()=>{c(e=>e===s?void 0:e)}),[c,s]),J(`div`,e,{ref:t,props:{id:s,role:`presentation`,...o}})});process.env.NODE_ENV!==`production`&&(Tf.displayName=`MenuGroupLabel`);var Ef=m.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,d=Mt({guess:!0,label:a}),f=pf(!0),p=Be(i),{store:m}=hf(),h=m.useState(`disabled`),g=s||h,_=m.useState(`isActive`,d.index),v=m.useState(`itemProps`),{getItemProps:y,itemRef:b}=vf({closeOnClick:c,disabled:g,highlighted:_,id:p,store:m,nativeButton:o,nodeId:f?.context.nodeId,itemMetadata:_f});return J(`div`,e,{state:{disabled:g,highlighted:_},props:[v,u,y],ref:[b,t,d.ref]})});process.env.NODE_ENV!==`production`&&(Ef.displayName=`MenuItem`);var Df=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Df.displayName=`ToolbarRootContext`);function Of(e){let t=m.useContext(Df);if(t===void 0&&!e)throw Error(process.env.NODE_ENV===`production`?B(69):`Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.`);return t}var kf=m.forwardRef(function(e,t){let{render:r,className:i,style:a,finalFocus:o,...s}=e,{store:c}=hf(),{side:l,align:u}=pf(),d=Of(!0)!=null,f=c.useState(`open`),p=c.useState(`transitionStatus`),h=c.useState(`popupProps`),g=c.useState(`mounted`),_=c.useState(`instantType`),v=c.useState(`activeTriggerElement`),y=c.useState(`parent`),b=c.useState(`lastOpenChangeReason`),x=c.useState(`rootId`),S=c.useState(`floatingRootContext`),C=c.useState(`floatingTreeRoot`),w=c.useState(`closeDelay`),T=c.useState(`hoverEnabled`),E=c.useState(`disabled`),D=c.useState(`openMethod`),O=y.type===`context-menu`;Nn({open:f,ref:c.context.popupRef,onComplete(){f&&c.context.onOpenChangeComplete?.(!0)}}),m.useEffect(()=>{function e(e){c.setOpen(!1,Y(e.reason,e.domEvent))}return C.events.on(`close`,e),()=>{C.events.off(`close`,e)}},[C.events,c]),kc(S,{enabled:T&&!E&&!O&&y.type!==`menubar`,closeDelay:w});let k=c.useStateSetter(`popupElement`),A=J(`div`,e,{state:{transitionStatus:p,side:l,align:u,open:f,nested:y.type===`menu`,instant:_},ref:[t,c.context.popupRef,k],stateAttributesMapping:rl,props:[h,{onKeyDown(e){d&&gl.has(e.key)&&e.stopPropagation()}},vd(p),s,{"data-rootownerid":x}]}),j=y.type===void 0||O;return(v||y.type===`menubar`&&b!==`outside-press`)&&(j=!0),(0,n.jsx)(ss,{context:S,openInteractionType:D,modal:O,disabled:!g,returnFocus:o===void 0?j:o,initialFocus:y.type!==`menu`,restoreFocus:!0,externalTree:y.type===`menubar`?void 0:C,previousFocusableElement:v,nextFocusableElement:y.type===void 0?c.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:y.type===void 0?c.context.beforeContentFocusGuardRef:void 0,children:A})});process.env.NODE_ENV!==`production`&&(kf.displayName=`MenuPopup`);var Af=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Af.displayName=`MenuPortalContext`);function Cie(){let e=m.useContext(Af);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(32):`Base UI: <Menu.Portal> is missing.`);return e}var jf=m.forwardRef(function(e,t){let{keepMounted:r=!1,...i}=e,{store:a}=hf();return a.useState(`mounted`)||r?(0,n.jsx)(Af.Provider,{value:r,children:(0,n.jsx)(Ko,{ref:t,...i})}):null});process.env.NODE_ENV!==`production`&&(jf.displayName=`MenuPortal`);var Mf=m.forwardRef(function(e,t){let{anchor:r,positionMethod:i=`absolute`,className:a,render:o,side:s,align:c,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f=5,arrowPadding:p=5,sticky:h=!1,disableAnchorTracking:g=!1,collisionAvoidance:_=zo,style:v,...y}=e,{store:b}=hf(),x=Cie(),S=df(!0),C=b.useState(`parent`),w=b.useState(`floatingRootContext`),T=b.useState(`floatingTreeRoot`),E=b.useState(`mounted`),D=b.useState(`open`),O=b.useState(`modal`),A=b.useState(`openMethod`),j=b.useState(`activeTriggerElement`),N=b.useState(`transitionStatus`),P=b.useState(`positionerElement`),F=b.useState(`instantType`),I=b.useState(`adaptiveOrigin`),L=b.useState(`lastOpenChangeReason`),R=b.useState(`floatingNodeId`),z=b.useState(`floatingParentNodeId`),B=w.useState(`domReferenceElement`),V=m.useRef(null),H=Mn(P),U=r,W=l,G=u,ee=c,K=_;C.type===`context-menu`&&(U=r??C.context?.anchor,ee??=`start`,!s&&ee!==`center`&&(G=e.alignOffset??2,W=e.sideOffset??-5));let te=s,q=ee;C.type===`menu`?(te??=`inline-end`,q??=`start`,K=e.collisionAvoidance??Bo):C.type===`menubar`&&(te??=C.context.orientation===`vertical`?`inline-end`:`bottom`,q??=`start`);let ne=C.type===`context-menu`,re=hd({anchor:U,floatingRootContext:w,positionMethod:S?`fixed`:i,mounted:E,side:te,sideOffset:W,align:q,alignOffset:G,arrowPadding:ne?0:p,collisionBoundary:d,collisionPadding:f,sticky:h,nodeId:R,keepMounted:x,disableAnchorTracking:g,collisionAvoidance:K,shift:ne?{crossAxis:!(`side`in K&&K.side===`flip`),rootBoundary:`layoutViewport`}:void 0,externalTree:T,adaptiveOrigin:I});m.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===R&&b.set(`hoverEnabled`,!1),e.nodeId!==R&&e.parentNodeId===b.select(`floatingParentNodeId`)&&b.setOpen(!1,Y(mt)))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[b,T.events,R]),m.useEffect(()=>{if(b.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==b.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;b.setOpen(!1,Y(t))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[T.events,b]);let ie=Hi();m.useEffect(()=>{D||ie.clear()},[D,ie]),m.useEffect(()=>{function e(e){if(!(!D||e.nodeId!==b.select(`floatingParentNodeId`))){if(e.target&&j&&j!==e.target){let e=b.select(`closeDelay`);e>0?ie.isStarted()||ie.start(e,()=>{b.setOpen(!1,Y(mt))}):b.setOpen(!1,Y(mt))}else ie.clear()}}return T.events.on(`itemhover`,e),()=>{T.events.off(`itemhover`,e)}},[T.events,D,j,b,ie]),m.useEffect(()=>{let e={open:D,nodeId:R,parentNodeId:z,reason:b.select(`lastOpenChangeReason`)};T.events.emit(`menuopenchange`,e)},[T.events,D,b,R,z]),k(()=>{let e=B,t=V.current;if(e&&(V.current=e),t&&e&&e!==t){b.set(`instantType`,void 0);let e=new AbortController;return H(()=>{b.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[B,H,b]);let ae={open:D,side:re.side,align:re.align,anchorHidden:re.anchorHidden,nested:C.type===`menu`,instant:F},oe=C.type===`menubar`&&C.context.modal;bd(D&&(oe||O&&L!==`trigger-hover`),A===`touch`,P,j);let se=yd(e,ae,{styles:re.positionerStyles,transitionStatus:N,props:y,refs:[t,b.useStateSetter(`positionerElement`)],hidden:!E,inert:!D}),ce=E&&C.type!==`menu`&&(C.type!==`menubar`&&O&&L!==`trigger-hover`||C.type===`menubar`&&C.context.modal),le=null;return C.type===`menubar`?le=C.context.contentElement:C.type===void 0&&(le=j),(0,n.jsxs)(ff.Provider,{value:re,children:[ce&&(0,n.jsx)(Tl,{ref:C.type===`context-menu`||C.type===`nested-context-menu`?C.context.internalBackdropRef:null,inert:wl(!D),cutout:le}),(0,n.jsx)(es,{id:R,children:(0,n.jsx)(M,{elementsRef:b.context.itemDomElements,labelsRef:b.context.itemLabels,children:se})})]})});process.env.NODE_ENV!==`production`&&(Mf.displayName=`MenuPositioner`);var Nf=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Nf.displayName=`MenuRadioGroupContext`);function wie(){let e=m.useContext(Nf);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(34):`Base UI: MenuRadioGroupContext is missing. MenuRadioGroup parts must be placed within <Menu.RadioGroup>.`);return e}var Pf=m.memo(m.forwardRef(function(e,t){let{render:r,className:i,value:a,defaultValue:o,onValueChange:s,disabled:c=!1,style:l,"aria-labelledby":u,...d}=e,[f,p]=m.useState(void 0),[h,g]=_({controlled:a,default:o,name:`MenuRadioGroup`}),v=w((e,t)=>{s?.(e,t),!t.isCanceled&&g(e)}),y=J(`div`,e,{state:{disabled:c},ref:t,props:{role:`group`,"aria-labelledby":u??f,"aria-disabled":c||void 0,...d}}),b=m.useMemo(()=>({value:h,setValue:v,disabled:c}),[h,v,c]);return(0,n.jsx)(Cf.Provider,{value:p,children:(0,n.jsx)(Nf.Provider,{value:b,children:y})})}));process.env.NODE_ENV!==`production`&&(Pf.displayName=`MenuRadioGroup`);var Ff=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Ff.displayName=`MenuRadioItemContext`);function Tie(){let e=m.useContext(Ff);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(35):`Base UI: MenuRadioItemContext is missing. MenuRadioItem parts must be placed within <Menu.RadioItem>.`);return e}var If=m.forwardRef(function(e,t){let{render:r,className:i,id:a,label:o,nativeButton:s=!1,disabled:c=!1,closeOnClick:l=!1,value:u,style:d,...f}=e,p=Mt({guess:!0,label:o}),h=pf(!0),g=Be(a),{store:_}=hf(),v=_.useState(`isActive`,p.index),y=_.useState(`itemProps`),{value:b,setValue:x,disabled:S}=wie(),C=_.useState(`disabled`),w=c||S||C,T=b===u,{getItemProps:E,itemRef:D}=vf({closeOnClick:l,disabled:w,highlighted:v,id:g,store:_,nativeButton:s,nodeId:h?.context.nodeId,itemMetadata:_f}),O=m.useMemo(()=>({disabled:w,highlighted:v,checked:T}),[w,v,T]);function k(e){let t=Y(Ke,e.nativeEvent,void 0,{preventUnmountOnClose:ae});x(u,t)}let A=J(`div`,e,{state:O,stateAttributesMapping:bf,props:[y,{role:`menuitemradio`,"aria-checked":T,onClick:k},f,E],ref:[D,t,p.ref]});return(0,n.jsx)(Ff.Provider,{value:O,children:A})});process.env.NODE_ENV!==`production`&&(If.displayName=`MenuRadioItem`);var Lf=m.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=Tie(),c=m.useRef(null),{transitionStatus:l,mounted:u,setMounted:d}=Ot(s.checked);return Nn({open:s.checked,ref:c,onComplete(){s.checked||d(!1)}}),J(`span`,e,{state:{checked:s.checked,disabled:s.disabled,highlighted:s.highlighted,transitionStatus:l},stateAttributesMapping:bf,ref:[t,c],props:{"aria-hidden":!0,...o},enabled:a||u})});process.env.NODE_ENV!==`production`&&(Lf.displayName=`MenuRadioItemIndicator`);var Rf=m.createContext(null);process.env.NODE_ENV!==`production`&&(Rf.displayName=`MenubarContext`);function zf(e){let t=m.useContext(Rf);if(t===null&&!e)throw Error(process.env.NODE_ENV===`production`?B(5):`Base UI: MenubarContext is missing. Menubar parts must be placed within <Menubar>.`);return t}var Eie={...yc,disabled:e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0),openMethod:e=>e.openMethod,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId,activeIndex:e=>e.activeIndex,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)}},Die=class extends qs{constructor(e){super({...kie(),...e},Oie(),Eie),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}unsubscribeParentListener=null};function Oie(){return{positionerRef:m.createRef(),popupRef:m.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:m.createRef(),beforeContentFocusGuardRef:m.createRef(),onOpenChangeComplete:void 0,triggerElements:new dc}}function kie(){return{...pc(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new Jo,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:se,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0}}var Bf=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Bf.displayName=`MenuSubmenuRootContext`);function Vf(){return m.useContext(Bf)}var Hf=Hs(function(e){let{children:t,open:r,onOpenChange:i,onOpenChangeComplete:a,defaultOpen:o=!1,disabled:s=!1,modal:c,loopFocus:l=!0,orientation:u=`vertical`,actionsRef:d,closeParentOnEsc:f=!1,handle:p,triggerId:h,defaultTriggerId:g=null,highlightItemOnHover:_=!0}=e,v=df(!0),y=hf(!0),b=zf(!0),x=Vf(),S=m.useMemo(()=>x&&y?{type:`menu`,store:y.store}:b?{type:`menubar`,context:b}:v&&!y?{type:`context-menu`,context:v}:{type:void 0},[v,y,b,x]),C=Aie({open:o,openProp:r,activeTriggerId:g,triggerIdProp:h,parent:S});C.useControlledProp(`openProp`,r),C.useControlledProp(`triggerIdProp`,h),C.useContextCallback(`onOpenChangeComplete`,a);let T=ze(),E=ze(),D=C.useState(`floatingTreeRoot`),O=$o(D),A=Zo(),j=C.useState(`open`),M=C.useState(`activeTriggerElement`),N=C.useState(`positionerElement`),P=C.useState(`hoverEnabled`),F=C.useState(`disabled`),I=C.useState(`lastOpenChangeReason`),L=C.useState(`parent`),R=C.useState(`activeIndex`),z=C.useState(`payload`),B=C.useState(`floatingParentNodeId`),V=m.useRef(null),H=m.useRef(L.type!==`context-menu`),U=Hi(),W=m.useRef(!0),G=Hi(),ee=B!=null;process.env.NODE_ENV!==`production`&&L.type!==void 0&&c!==void 0&&console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored.");let{openMethod:K,triggerProps:te}=jl(j);C.useSyncedValues({disabled:s,highlightItemOnHover:_,modal:L.type===void 0?c:void 0,openMethod:K,rootId:T}),oc(C);let{forceUnmount:q}=sc(j,C,()=>{C.set(`allowMouseEnter`,!1)});k(()=>{v&&!y?C.update({parent:{type:`context-menu`,context:v},floatingNodeId:O,floatingParentNodeId:A}):y&&C.update({floatingNodeId:O,floatingParentNodeId:A})},[v,y,O,A,C]),m.useEffect(()=>{if(j||(V.current=null),L.type===`context-menu`){if(!j){U.clear(),H.current=!1;return}U.start(500,()=>{H.current=!0})}},[U,j,L.type]),k(()=>{!j&&!P&&C.set(`hoverEnabled`,!0)},[j,P,C]);let ne=w((e,t)=>{let n=t.reason;if(!e&&!C.select(`open`)||j===e&&t.trigger===M&&I===n)return;let r=rc(t);if(!e&&t.trigger==null&&(t.trigger=M??void 0),i?.(e,t),t.isCanceled)return;C.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&a?.type===`click`&&a.pointerType===`touch`&&!W.current)return;e&&n===`trigger-focus`?(W.current=!1,G.start(300,()=>{W.current=!0})):(W.current=!0,G.clear());let o=(n===`trigger-press`||n===`item-press`)&&a.detail===0,s=!e&&(n===`escape-key`||n==null),c={open:e,openChangeReason:n};V.current=t.event,nc(c,e,t.trigger,r()),C.update(c),L.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?C.set(`instantType`,`group`):o||s?C.set(`instantType`,o?`click`:`dismiss`):C.set(`instantType`,void 0)}),re=Xs({popupStore:C,floatingId:E,nested:A!=null,onOpenChange:ne}),ie=re.context.events;k(()=>{let e=({open:e,eventDetails:t})=>ne(e,t);return ie.on(`setOpen`,e),()=>{ie?.off(`setOpen`,e)}},[ie,ne]);let ae=m.useCallback(()=>{C.setOpen(!1,Y(vt))},[C]);m.useImperativeHandle(d,()=>({unmount:q,close:ae}),[q,ae]);let ce;L.type===`context-menu`&&(ce=L.context),m.useImperativeHandle(ce?.positionerRef,()=>N,[N]),m.useImperativeHandle(ce?.actionsRef,()=>({setOpen:ne}),[ne]);let le=us(re,{enabled:!F,bubbles:{escapeKey:f&&L.type===`menu`},outsidePress(){return L.type!==`context-menu`||V.current?.type===`contextmenu`||H.current},externalTree:ee?D:void 0}),ue=Du(),de=m.useCallback(e=>{C.select(`activeIndex`)!==e&&C.set(`activeIndex`,e)},[C]),pe=Fc(re,{enabled:!F,listRef:C.context.itemDomElements,activeIndex:R,nested:L.type!==void 0,loopFocus:l,orientation:u,parentOrientation:L.type===`menubar`?L.context.orientation:void 0,rtl:ue===`rtl`,disabledIndices:oe,onNavigate:de,openOnArrowKeyDown:L.type!==`context-menu`,externalTree:ee?D:void 0,focusItemOnHover:_}),me=m.useCallback(e=>{C.context.typingRef.current=e},[C]),he=Ic(re,{enabled:!F,listRef:C.context.itemLabels,elementsRef:C.context.itemDomElements,activeIndex:R,resetMs:500,onMatch:e=>{j&&e!==R&&C.set(`activeIndex`,e)},onTyping:me});cc(C,{floatingRootContext:re,activeTriggerProps:m.useMemo(()=>{let e=fe(he.reference,pe.reference,le.reference,{onMouseMove(){C.set(`allowMouseEnter`,!0)}},te);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=j,e},[C,he.reference,pe.reference,le.reference,te,j]),inactiveTriggerProps:m.useMemo(()=>{let e=fe(pe.trigger,le.trigger,te);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[pe.trigger,le.trigger,te]),popupProps:m.useMemo(()=>fe(Zs,{id:E,role:`menu`,"aria-labelledby":M?.id,onMouseMove(){C.set(`allowMouseEnter`,!0),L.type===`menu`&&C.set(`hoverEnabled`,!1)},onClick(){C.select(`hoverEnabled`)&&C.set(`hoverEnabled`,!1)},onKeyDown(e){let t=C.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},he.floating,pe.floating,le.floating),[M,E,L.type,C,he.floating,pe.floating,le.floating]),itemProps:pe.item??se});let ge=m.useMemo(()=>({store:C,parent:S}),[C,S]),_e=(0,n.jsxs)(mf.Provider,{value:ge,children:[p&&(0,n.jsx)(ec,{handle:p,store:C}),typeof t==`function`?t({payload:z}):t]});return L.type===void 0||L.type===`context-menu`?(0,n.jsx)(ts,{externalTree:D,children:_e}):_e});process.env.NODE_ENV!==`production`&&(Hf.displayName=`MenuRoot`);function Aie(e){return x(()=>new Die(e)).current}function Uf(e){let t=hf().store,r=m.useMemo(()=>({parentMenu:t}),[t]);return(0,n.jsx)(Bf.Provider,{value:r,children:(0,n.jsx)(Hf,{...e})})}function Wf(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=Sn(),{ref:i,index:a}=Mt(e),o=n===a,s=m.useRef(null),c=U(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function Gf(e){let{render:t,className:n,style:r,state:i=se,props:a=oe,refs:o=oe,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=Wf({metadata:s});return J(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function Kf(e){if(tn(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!mn(e))return Kf(_n(e))}function qf(e,t){let n=m.useRef(null);function i(t){r.flushSync(()=>{e.setOpen(!1,Y(it,t.nativeEvent,t.currentTarget))}),lne(n.current)?.focus()}function a(n){let i=e.select(`positionerElement`);if(i&&mo(n,i))e.context.beforeContentFocusGuardRef.current?.focus();else{r.flushSync(()=>{e.setOpen(!1,Y(it,n.nativeEvent,n.currentTarget))});let a=po(e.context.triggerFocusTargetRef.current||t.current);for(;a!==null&&na(i,a);){let e=a;if(a=lo(a),a===e)break}a?.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:i,handleFocusTargetFocus:a}}function jie(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=m.useRef(!1);return m.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,Cn(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:se,[t,n,r])}var Jf=Us(function(e,t){let{render:r,className:i,style:a,disabled:o=!1,nativeButton:s=!0,id:c,openOnHover:l,delay:u=100,closeDelay:d=0,handle:f,payload:p,...h}=e,g=hf(!0),_=bc(f)??g?.store;if(!_)throw Error(process.env.NODE_ENV===`production`?B(85):`Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle.`);let v=Be(c),y=_.useState(`isTriggerActive`,v),b=_.useState(`floatingRootContext`),x=_.useState(`isOpenedByTrigger`,v),S=_.useState(`triggerPopupId`,v),C=m.useRef(null),T=Nie(),E=Sn(!0),D=Qo(),O=m.useMemo(()=>D??new Jo,[D]),{registerTrigger:k,isMountedByThisTrigger:A}=ac(v,C,_,{payload:p,closeDelay:d,parent:T,floatingTreeRoot:O,floatingNodeId:$o(O),floatingParentNodeId:Zo(),keyboardEventRelay:E?.relayKeyboardEvent}),j=T.type===`menubar`,M=_.useState(`disabled`),N=o||M||j&&T.context.disabled,{getButtonProps:P,buttonRef:F}=Tn({disabled:N,native:s});m.useEffect(()=>{!x&&T.type===void 0&&(_.context.allowMouseUpTriggerRef.current=!1)},[_,x,T.type]);let I=m.useRef(null),L=Hi(),R=w(e=>{if(!I.current)return;L.clear(),_.context.allowMouseUpTriggerRef.current=!1;let t=e.target;na(I.current,t)||na(_.select(`positionerElement`),t)||t===I.current||(t==null||Kf(t)!==_.select(`rootId`))&&(ju(e,I.current)||O.events.emit(`close`,{domEvent:e,reason:pt}))});m.useEffect(()=>{x&&_.select(`lastOpenChangeReason`)===`trigger-hover`&&Cn(I.current).addEventListener(`mouseup`,R,{once:!0})},[x,R,_]);let z=j&&T.context.hasSubmenuOpen,V=Ac(b,{enabled:(l??z)&&!N&&(!j||z&&!A),handleClose:Hc({blockPointerEvents:!j}),mouseOnly:!0,move:!1,restMs:T.type===void 0?u:void 0,delay:{close:d},triggerElementRef:C,externalTree:O,isActiveTrigger:y,isClosing:()=>_.select(`transitionStatus`)===`ending`}),H=Mie(x,_.select(`lastOpenChangeReason`)),U=cs(b,{enabled:!N,event:x&&j?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:T.type===void 0&&H}),W=wc(b,{enabled:!N&&z}),G=jie({open:x,enabled:j,mouseDownAction:`open`}),ee=m.useMemo(()=>fe(W.reference,U.reference),[W.reference,U.reference]),K=_.useState(`triggerProps`,A),{preFocusGuardRef:te,handlePreFocusGuardFocus:q,handleFocusTargetFocus:ne}=qf(_,C),re={disabled:N,open:x},ie=[I,t,F,k,C],ae=[ee,V??se,K,{"aria-haspopup":`menu`,"aria-controls":S,id:v,onMouseDown:e=>{_.select(`open`)||(L.start(200,()=>{_.context.allowMouseUpTriggerRef.current=!0}),Cn(e.currentTarget).addEventListener(`mouseup`,R,{once:!0}))}},j?{role:`menuitem`}:{},G,h,P],oe=J(`button`,e,{enabled:!j,stateAttributesMapping:tl,state:re,ref:ie,props:ae});return j?(0,n.jsx)(Gf,{tag:`button`,render:r,className:i,style:a,state:re,refs:ie,props:ae,stateAttributesMapping:tl}):x?(0,n.jsxs)(m.Fragment,{children:[(0,n.jsx)(wa,{ref:te,onFocus:q},`${v}-pre-focus-guard`),(0,n.jsx)(m.Fragment,{children:oe},v),(0,n.jsx)(wa,{ref:_.context.triggerFocusTargetRef,onFocus:ne},`${v}-post-focus-guard`)]}):(0,n.jsx)(m.Fragment,{children:oe},v)});process.env.NODE_ENV!==`production`&&(Jf.displayName=`MenuTrigger`);function Mie(e,t){let n=Hi(),[r,i]=m.useState(!1);return k(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function Nie(){let e=zf(!0);return m.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}function Yf(e){let[t,n]=m.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}function Xf(e){let t=hn(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=tn(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r;return(Da(n)!==a||Da(r)!==o)&&(n=a,r=o),{width:n,height:r}}function Pie(e){let{popupElement:t,positionerElement:n,content:r,mounted:i,onMeasureLayout:a,onMeasureLayoutComplete:o,side:s,direction:c}=e,l=Mn(t,!0),u=Dt(),d=m.useRef(null),f=m.useRef(!0),p=m.useRef(ae),h=w(a),g=w(o),_=m.useMemo(()=>Fie(s,c),[s,c]);k(()=>{if(!i){p.current=ae,f.current=!0,d.current=null;return}if(!t||!n)return;p.current=Qf(t,_),$f(t,`auto`);let e=Zf(t,`position`,`static`),r=Zf(t,`transform`,`none`),a=Zf(t,`scale`,`1`),o=Qf(n,{"--available-width":`max-content`,"--available-height":`max-content`});function s(){e(),r(),o()}function c(){s(),a()}if(h?.(),f.current||d.current===null){ep(n,`max-content`);let e=Xf(t);return d.current=e,ep(n,e),c(),g?.(null,e),f.current=!1,()=>{p.current(),p.current=ae}}ep(n,`max-content`);let m=d.current,v=Xf(t);d.current=v,$f(t,m),c(),g?.(m,v),ep(n,v);let y=new AbortController;return u.request(()=>{$f(t,v),l(()=>{t.style.setProperty(`--popup-width`,`auto`),t.style.setProperty(`--popup-height`,`auto`)},y.signal)}),()=>{y.abort(),u.cancel(),p.current(),p.current=ae}},[r,t,n,l,u,i,h,g,_])}function Fie(e,t){let n=e===`top`,r=e===`left`||e===(t===`rtl`?`inline-end`:`inline-start`);return!n&&!r?se:{position:`absolute`,[n?`bottom`:`top`]:`0`,[r?`right`:`left`]:`0`}}function Zf(e,t,n){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}function Qf(e,t){let n=[];for(let[r,i]of Object.entries(t))n.push(Zf(e,r,i));return n.length?()=>{n.forEach(e=>e())}:ae}function $f(e,t){let n=t===`auto`?`auto`:`${t.width}px`,r=t===`auto`?`auto`:`${t.height}px`;e.style.setProperty(`--popup-width`,n),e.style.setProperty(`--popup-height`,r)}function ep(e,t){let n=t===`max-content`?`max-content`:`${t.width}px`,r=t===`max-content`?`max-content`:`${t.height}px`;e.style.setProperty(`--positioner-width`,n),e.style.setProperty(`--positioner-height`,r)}var tp={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=Zt(i),l=c.getComputedStyle(i);if(l.transitionDuration===`0s`||l.transitionDuration===``)return{x:t,y:n,data:ud};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=Cn(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=Ma(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:ud.sideX,g=f===`top`?`bottom`:ud.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}},Iie={activationDirection:e=>e?{"data-activation-direction":e}:null};function Lie(e){let{store:t,side:i,children:a}=e,o=Du(),s=t.useState(`activeTriggerElement`),c=t.useState(`activeTriggerId`),l=t.useState(`open`),u=t.useState(`payload`),d=t.useState(`mounted`),f=t.useState(`popupElement`),p=t.useState(`positionerElement`),h=Yf(l?s:null),g=Bie(c,u),_=m.useRef(null),[v,y]=m.useState(null),[b,x]=m.useState(null),S=m.useRef(null),C=m.useRef(null),T=Mn(S,!0),E=Dt(),D=m.useRef(null),[O,A]=m.useState(null),[j,M]=m.useState(!1);k(()=>(t.set(`adaptiveOrigin`,tp),()=>{t.set(`adaptiveOrigin`,void 0)}),[t]);let N=w(()=>{S.current?.style.setProperty(`animation`,`none`),S.current?.style.setProperty(`transition`,`none`),C.current?.style.setProperty(`display`,`none`)}),P=w(e=>{S.current?.style.removeProperty(`animation`),S.current?.style.removeProperty(`transition`),C.current?.style.removeProperty(`display`),e&&A(e)}),F=w(()=>{D.current?.abort();let e=new AbortController;D.current=e,T(()=>{y(null),A(null),_.current=null},e.signal)}),I=m.useRef(null);k(()=>{(!l||!d)&&(I.current=null)},[l,d]),k(()=>{if(s&&h&&s!==h&&I.current!==s&&_.current){y(_.current),M(!0);let e=zie(h,s);x(e),I.current=s}},[s,h]),k(()=>{v!=null&&(D.current?.abort(),M(!0),E.request(()=>{r.flushSync(()=>{M(!1)}),F()}))},[g,v,F,E]),k(()=>{let e=S.current;if(!e)return;let t=Cn(e).createElement(`div`);for(let n of Array.from(e.childNodes))t.appendChild(n.cloneNode(!0));_.current=t});let L=v!=null,R;R=L?(0,n.jsxs)(m.Fragment,{children:[(0,n.jsx)(`div`,{"data-previous":!0,inert:wl(!0),ref:C,style:{...O?{"--popup-width":`${O.width}px`,"--popup-height":`${O.height}px`}:null,position:`absolute`},"data-ending-style":j?void 0:``},`previous`),(0,n.jsx)(`div`,{"data-current":!0,ref:S,"data-starting-style":j?``:void 0,children:a},g)]}):(0,n.jsx)(`div`,{"data-current":!0,ref:S,children:a},g),k(()=>{let e=C.current;!e||!v||e.replaceChildren(...Array.from(v.childNodes))},[v]),Pie({popupElement:f,positionerElement:p,mounted:d,content:u,onMeasureLayout:N,onMeasureLayoutComplete:P,side:i,direction:o});let z={activationDirection:Rie(b),transitioning:L};return{children:R,state:z}}function Rie(e){if(e)return`${np(e.horizontal,5,`right`,`left`)} ${np(e.vertical,5,`down`,`up`)}`}function np(e,t,n,r){return e>t?n:e<-t?r:``}function zie(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i={x:n.left+n.width/2,y:n.top+n.height/2},a={x:r.left+r.width/2,y:r.top+r.height/2};return{horizontal:a.x-i.x,vertical:a.y-i.y}}function Bie(e,t){let[n,r]=m.useState(0),i=m.useRef(e),a=m.useRef(t),o=m.useRef(!1);return k(()=>{let n=i.current,s=a.current,c=e!==n,l=t!==s;c?(r(e=>e+1),o.current=!l):o.current&&l&&(r(e=>e+1),o.current=!1),i.current=e,a.current=t},[e,t]),`${e??`current`}-${n}`}var rp=m.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return J(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});process.env.NODE_ENV!==`production`&&(rp.displayName=`Separator`);function ip(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var Vie={"aria-expanded":void 0},ap=m.forwardRef(function(e,t){let{render:n,className:r,style:i,label:a,id:o,nativeButton:s=!1,openOnHover:c=!0,delay:l=100,closeDelay:u=0,disabled:d=!1,...f}=e,p=Vf();if(!p?.parentMenu)throw Error(process.env.NODE_ENV===`production`?B(37):`Base UI: <Menu.SubmenuTrigger> must be placed in <Menu.SubmenuRoot>.`);let h=Mt({guess:!0,label:a}),g=pf(),{store:_}=hf(),v=Be(o),b=_.useState(`open`),x=_.useState(`floatingRootContext`),S=_.useState(`floatingTreeRoot`),C=_.useState(`triggerPopupId`,v),w=tc(v,_),T=m.useCallback(e=>{let t=w(e);return e!==null&&_.select(`open`)&&_.select(`activeTriggerId`)==null&&_.update({activeTriggerId:v,activeTriggerElement:e,closeDelay:u}),t},[w,u,_,v]),E=m.useRef(null),D=m.useCallback(e=>{E.current=e,_.set(`activeTriggerElement`,e)},[_]);_.useSyncedValue(`closeDelay`,u);let k=p.parentMenu,A=_.useState(`disabled`),j=k.useState(`disabled`),M=d||A||j;process.env.NODE_ENV!==`production`&&m.useEffect(()=>{let e=E.current;e&&ip(e)&&!M&&O(`A disabled element was detected on <Menu.SubmenuTrigger>. To properly disable the trigger, use the \`disabled\` prop on the component instead of setting it on the rendered element.${y.captureOwnerStack?.()||``}`)});let N=k.useState(`itemProps`),P=k.useState(`isActive`,h.index),F=m.useMemo(()=>({type:`submenu-trigger`,setActive(){k.select(`highlightItemOnHover`)&&k.set(`activeIndex`,h.index)}}),[k,h.index]),{getItemProps:I,itemRef:L}=vf({closeOnClick:!1,disabled:M,highlighted:P,id:v,store:_,typingRef:k.context.typingRef,nativeButton:s,itemMetadata:F,nodeId:g?.context.nodeId}),R=Ac(x,{enabled:_.useState(`hoverEnabled`)&&c&&!M,handleClose:Hc({blockPointerEvents:!0}),mouseOnly:!0,move:!0,restMs:l,delay:{open:l,close:u},shouldOpen:l>0?()=>k.select(`allowMouseEnter`):void 0,triggerElementRef:E,externalTree:S,isClosing:()=>_.select(`transitionStatus`)===`ending`,guardStaleOpen:!0}),z=cs(x,{enabled:!M,event:`mousedown`,toggle:!c,ignoreMouse:c,stickIfOpen:!1}).reference??se,V=_.useState(`triggerProps`,!0);delete V.id;let H={disabled:M,highlighted:P,open:b},U=_.useState(`openMethod`),W=_.useState(`lastOpenChangeReason`)===`list-navigation`||U===`keyboard`;return J(`div`,e,{state:H,stateAttributesMapping:el,props:[z,R,V,N,b&&W&&Ri?Vie:void 0,{"aria-controls":C,tabIndex:b||P?0:-1,onBlur(){P&&k.set(`activeIndex`,null)}},f,I],ref:[t,h.ref,L,T,D]})});process.env.NODE_ENV!==`production`&&(ap.displayName=`MenuSubmenuTrigger`);function Hie(e){let[t,r]=m.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),i=m.useRef(null),a=m.useRef(null),o=m.useRef(null),s=m.useRef(null),c=m.useRef(!0),l=m.useRef(null),u=ze(),d=m.useMemo(()=>({anchor:t,setAnchor:r,actionsRef:o,backdropRef:i,internalBackdropRef:a,positionerRef:s,allowMouseUpTriggerRef:c,initialCursorPointRef:l,rootId:u}),[t,u]);return(0,n.jsx)(uf.Provider,{value:d,children:(0,n.jsx)(mf.Provider,{value:void 0,children:(0,n.jsx)(Hf,{...e})})})}var op=500,sp=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{setAnchor:o,actionsRef:s,internalBackdropRef:c,backdropRef:l,positionerRef:u,allowMouseUpTriggerRef:d,initialCursorPointRef:f,rootId:p}=df(!1),{store:h}=hf(!1),g=h.useState(`open`),_=h.useState(`disabled`),v=m.useRef(null),y=m.useRef(null),b=Hi(),x=Hi(),S=m.useRef(!1),C=m.useRef(null);function w(e,t,n){let r=n.type.startsWith(`touch`);f.current={x:e,y:t},o({getBoundingClientRect(){return DOMRect.fromRect({width:r?10:0,height:r?10:0,x:e,y:t})}}),S.current=!1,s.current?.setOpen(!0,Y(He,n)),x.start(op,()=>{S.current=!0})}function T(e){if(_)return;d.current=!0,Yi(e),w(e.clientX,e.clientY,e.nativeEvent);let t=Cn(v.current);C.current?.abort();let n=new AbortController;C.current=n,t.addEventListener(`mouseup`,e=>{if(d.current=!1,!S.current)return;x.clear(),S.current=!1;let t=ra(e);na(u.current,t)||p&&t&&Kf(t)===p||s.current?.setOpen(!1,Y(pt,e))},{once:!0,signal:n.signal})}function E(){b.clear(),y.current=null}function D(e){if(_){E();return}if(d.current=!1,e.touches.length!==1){E();return}e.stopPropagation();let t=e.touches[0],n={x:t.clientX,y:t.clientY};y.current=n,b.start(op,()=>{w(n.x,n.y,e.nativeEvent)})}function O(e){if(e.touches.length!==1){E();return}if(b.isStarted()&&y.current){let t=e.touches[0],n=Math.abs(t.clientX-y.current.x),r=Math.abs(t.clientY-y.current.y);(n>10||r>10)&&E()}}return m.useEffect(()=>()=>{C.current?.abort()},[]),m.useEffect(()=>{function e(e){if(_)return;let t=ra(e);(na(v.current,t)||na(c.current,t)||na(l.current,t))&&e.preventDefault()}return kn(Cn(v.current),`contextmenu`,e)},[l,_,c]),J(`div`,e,{state:{open:g},ref:[v,t],props:[{onContextMenu:T,onTouchStart:D,onTouchMove:O,onTouchEnd:E,onTouchCancel:E,style:{WebkitTouchCallout:`none`}},a],stateAttributesMapping:tl})});process.env.NODE_ENV!==`production`&&(sp.displayName=`ContextMenuTrigger`);var cp=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(cp.displayName=`CSPContext`);var Uie={disableStyleElements:!1};function lp(){return m.useContext(cp)??Uie}function up(e){return Qc(`dialog`,e)}var Wie=d({Backdrop:()=>il,Close:()=>al,Description:()=>ol,Handle:()=>Pl,Popup:()=>Cl,Portal:()=>El,Root:()=>up,Title:()=>Dl,Trigger:()=>Ml,Viewport:()=>Nl,createHandle:()=>zre}),dp=function(e){return e.nestedDrawers=`--nested-drawers`,e.height=`--drawer-height`,e.frontmostHeight=`--drawer-frontmost-height`,e.swipeMovementX=`--drawer-swipe-movement-x`,e.swipeMovementY=`--drawer-swipe-movement-y`,e.snapPointOffset=`--drawer-snap-point-offset`,e.swipeStrength=`--drawer-swipe-strength`,e}({}),fp=function(e){return e.swipeProgress=`--drawer-swipe-progress`,e}({}),pp=m.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Gc(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return J(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:rl,props:[{role:`presentation`,hidden:!u,style:{pointerEvents:c?void 0:`none`,userSelect:`none`,WebkitUserSelect:`none`,[fp.swipeProgress]:`0`,[dp.swipeStrength]:`1`}},o],enabled:a||!l})});process.env.NODE_ENV!==`production`&&(pp.displayName=`DrawerBackdrop`);var Gie=al,mp=`data-drawer-content`,hp=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return Gc(),J(`div`,e,{ref:t,props:[{[mp]:``},a]})});process.env.NODE_ENV!==`production`&&(hp.displayName=`DrawerContent`);var Kie=ol,gp=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(gp.displayName=`DrawerProviderContext`);function _p(){return m.useContext(gp)}var qie={active(e){return e?{"data-active":``}:{"data-inactive":``}}},vp=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=_p(),s=o?.active??!1,c=o?.visualStateStore,l=m.useRef(null);return k(()=>{let e=l.current;if(!e||!c)return;let t=()=>{let{swipeProgress:t,frontmostHeight:n}=c.getSnapshot();t<=0?e.style.setProperty(fp.swipeProgress,`0`):e.style.setProperty(fp.swipeProgress,`${t}`),n<=0?e.style.removeProperty(dp.height):e.style.setProperty(dp.height,`${n}px`)};t();let n=c.subscribe(t);return()=>{n(),e.style.setProperty(fp.swipeProgress,`0`),e.style.removeProperty(dp.height)}},[c]),J(`div`,e,{ref:[t,l],state:{active:s},props:[{style:{[fp.swipeProgress]:`0`}},a],stateAttributesMapping:qie})});process.env.NODE_ENV!==`production`&&(vp.displayName=`DrawerIndent`);var Jie={active(e){return e?{"data-active":``}:{"data-inactive":``}}},yp=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return J(`div`,e,{ref:t,state:{active:_p()?.active??!1},props:a,stateAttributesMapping:Jie})});process.env.NODE_ENV!==`production`&&(yp.displayName=`DrawerIndentBackground`);var bp=function(e){return e[e.open=$c.open]=`open`,e[e.closed=$c.closed]=`closed`,e[e.startingStyle=$c.startingStyle]=`startingStyle`,e[e.endingStyle=$c.endingStyle]=`endingStyle`,e.expanded=`data-expanded`,e.nestedDrawerOpen=`data-nested-drawer-open`,e.nestedDrawerSwiping=`data-nested-drawer-swiping`,e.swipeDismiss=`data-swipe-dismiss`,e.swipeDirection=`data-swipe-direction`,e.swiping=`data-swiping`,e}({}),xp=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(xp.displayName=`DrawerRootContext`);function Sp(e){let t=m.useContext(xp);if(e!==!0&&t===void 0)throw Error(process.env.NODE_ENV===`production`?B(90):`Base UI: DrawerRootContext is missing. Drawer parts must be placed within <Drawer.Root>.`);return t}function Cp(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function wp(e,t){let n=e+t;return n>=0?t:-Math.sqrt(-n)-e}function Tp(e,t,n){if(!Number.isFinite(t)||t<=0)return null;if(typeof e==`number`)return Number.isFinite(e)?e<=1?Cp(e,0,1)*t:e:null;let r=e.trim();if(r.endsWith(`px`)){let e=Number.parseFloat(r);return Number.isFinite(e)?e:null}if(r.endsWith(`rem`)){let e=Number.parseFloat(r);return Number.isFinite(e)?e*n:null}return null}function Ep(e,t){let n=-1,r=1/0;for(let i=0;i<e.length;i+=1){let a=Math.abs(e[i]-t);a<r&&(r=a,n=i)}return n}function Dp(){let e=Gc(),{snapPoints:t,activeSnapPoint:n,setActiveSnapPoint:r,popupHeight:i}=Sp(),a=e.useState(`viewportElement`),[o,s]=m.useState(0),[c,l]=m.useState(16),u=w(()=>{let e=Cn(a).documentElement;s(a?a.offsetHeight:e.clientHeight);let t=parseFloat(getComputedStyle(e).fontSize);Number.isFinite(t)&&l(t)});k(()=>{if(u(),!a||typeof ResizeObserver!=`function`)return;let e=new ResizeObserver(u);return e.observe(a),()=>{e.disconnect()}},[u,a]);let d=m.useMemo(()=>{if(!t||t.length===0||o<=0||i<=0)return[];let e=Math.min(i,o),n=t.map(t=>{let n=Tp(t,o,c);if(n===null)return null;let r=Cp(n,0,e);return{value:t,height:r,offset:Math.max(0,i-r)}}).filter(e=>!!e);if(n.length<=1)return n;let r=[],a=[];for(let e=n.length-1;e>=0;--e){let t=n[e];a.some(e=>Math.abs(e-t.height)<=1)||(a.push(t.height),r.push(t))}return r.reverse(),r},[i,c,t,o]);return{snapPoints:t,activeSnapPoint:n,setActiveSnapPoint:r,popupHeight:i,viewportHeight:o,resolvedSnapPoints:d,activeSnapPointOffset:m.useMemo(()=>{if(n===null)return;let e=d.find(e=>Object.is(e.value,n));if(e)return e;let t=Math.min(i,o),r=Tp(n,o,c);if(r===null)return;let a=Cp(r,0,t);return d[Ep(d.map(e=>e.height),a)]},[n,i,d,c,o])?.offset??null}}var Op=m.createContext(null);process.env.NODE_ENV!==`production`&&(Op.displayName=`DrawerViewportContext`);function Yie(){return m.useContext(Op)}var Xie=!1;function Zie(){Xie||=(typeof CSS<`u`&&`registerProperty`in CSS&&([dp.swipeMovementX,dp.swipeMovementY,dp.snapPointOffset].forEach(e=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),[{name:fp.swipeProgress,initialValue:`0`},{name:dp.swipeStrength,initialValue:`1`}].forEach(({name:e,initialValue:t})=>{try{CSS.registerProperty({name:e,syntax:`<number>`,inherits:!1,initialValue:t})}catch{}})),!0)}var Qie={...rl,expanded(e){return e?{[bp.expanded]:``}:null},nestedDrawerOpen(e){return e?{[bp.nestedDrawerOpen]:``}:null},nestedDrawerSwiping(e){return e?{[bp.nestedDrawerSwiping]:``}:null},swipeDirection(e){return{[bp.swipeDirection]:e}},swiping(e){return e?{[bp.swiping]:``}:null}},kp=m.forwardRef(function(e,t){let{render:r,className:i,style:a,finalFocus:o,initialFocus:s,...c}=e,l=Gc(),u=l.context.popupRef,{swipeDirection:d,frontmostHeight:f,hasNestedDrawer:p,nestedSwiping:h,nestedSwipeProgressStore:_,onPopupHeightChange:v,notifyParentFrontmostHeight:b,notifyParentHasNestedDrawer:x}=Sp(),S=l.useState(`descriptionElementId`),C=l.useState(`disablePointerDismissal`),T=l.useState(`floatingRootContext`),E=l.useState(`popupProps`),D=l.useState(`modal`),O=l.useState(`mounted`),A=l.useState(`nested`),j=l.useState(`nestedOpenDrawerCount`),M=l.useState(`transitionStatus`),N=l.useState(`open`),P=l.useState(`openMethod`),F=l.useState(`titleElementId`),I=l.useState(`role`),L=T.useState(`floatingId`),R=c.id??L,z=Yie();cl();let{snapPoints:B,activeSnapPoint:V,activeSnapPointOffset:H}=Dp(),U=j>0,W=z?.swiping??!1,G=z?.swipeStrength??null,[ee,K]=m.useState(0),te=m.useRef(0);process.env.NODE_ENV!==`production`&&m.useEffect(()=>{z||g(`<Drawer.Popup> expected to be rendered within <Drawer.Viewport>. Omitting the viewport disables drawer swipe handling and touch scroll locking. Wrap <Drawer.Popup> in <Drawer.Viewport>.${y.captureOwnerStack?.()||``}`)},[z]);let q=w(()=>{let e=u.current;if(!e)return;let t=e.offsetHeight;if(te.current>0&&f>te.current&&t>te.current)return;if(te.current>0&&p){let e=te.current;K(e),v(e);return}let n=t;n!==te.current&&(te.current=n,K(n),v(n))});k(()=>{if(!O){te.current=0,K(0),v(0);return}let e=u.current;if(!e||(Zie(),q(),typeof ResizeObserver!=`function`))return;let t=new ResizeObserver(q);return t.observe(e),()=>{t.disconnect()}},[q,O,U,v,u]),k(()=>{let e=()=>{let e=u.current;if(!e)return;let t=_.getSnapshot();t>0?e.style.setProperty(fp.swipeProgress,`${t}`):e.style.setProperty(fp.swipeProgress,`0`)};e();let t=_.subscribe(e),n=u.current;return()=>{t(),n&&n.style.setProperty(fp.swipeProgress,`0`)}},[_,u]),k(()=>{if(N)return b?.(f),()=>{b?.(0)}},[f,N,b]),k(()=>{if(x)return x(N||M===`ending`),()=>{x(!1)}},[x,N,M]),Nn({open:N,ref:u,onComplete(){N&&l.context.onOpenChangeComplete?.(!0)}});let ne=s===void 0?u:s,re=l.useStateSetter(`popupElement`),ie={open:N,nested:A,transitionStatus:M,expanded:V===1,nestedDrawerOpen:U,nestedDrawerSwiping:h,swipeDirection:d,swiping:W},ae;ee&&!(!p&&M!==`ending`)&&(ae=`${ee}px`);let oe=B&&B.length>0&&(d===`down`||d===`up`),ce=null;oe&&H!==null&&(ce=d===`up`?-H:H);let le=z?z.getDragStyles():se;if(oe&&d===`down`){let e=H??0,t=Number.parseFloat(String(le[dp.swipeMovementY]));le=W&&Number.isFinite(t)?{...le,transform:void 0,[dp.swipeMovementY]:`${wp(e,t)}px`}:{...le,transform:void 0}}let ue=J(`div`,e,{state:ie,props:[E,{id:R,"aria-labelledby":F,"aria-describedby":S,role:I,...Zs,hidden:!O,onKeyDown(e){gl.has(e.key)&&e.stopPropagation()},style:{...le,[fp.swipeProgress]:`0`,[dp.nestedDrawers]:j,[dp.height]:ae,[dp.snapPointOffset]:typeof ce==`number`?`${ce}px`:`0px`,[dp.frontmostHeight]:f?`${f}px`:void 0,[dp.swipeStrength]:typeof G==`number`&&Number.isFinite(G)&&G>0?`${G}`:`1`}},c],ref:[t,u,re],stateAttributesMapping:Qie});return(0,n.jsx)(ss,{context:T,openInteractionType:P,disabled:!O,closeOnFocusOut:!C,initialFocus:ne,returnFocus:o,modal:D!==!1,restoreFocus:`popup`,children:ue})});process.env.NODE_ENV!==`production`&&(kp.displayName=`DrawerPopup`);var $ie=El;function eae(e){let{children:t}=e,[r,i]=m.useState(()=>new Set),[a]=m.useState(tae),o=w((e,t)=>{i(n=>{if(n.has(e)===t)return n;let r=new Set(n);return t?r.add(e):r.delete(e),r})}),s=w(e=>{o(e,!1)}),c=r.size>0,l=m.useMemo(()=>({setDrawerOpen:o,removeDrawer:s,active:c,visualStateStore:a}),[c,s,o,a]);return(0,n.jsx)(gp.Provider,{value:l,children:t})}function tae(){let e={swipeProgress:0,frontmostHeight:0},t=new Set;return{getSnapshot:()=>e,set(n){let r=e.swipeProgress;n.swipeProgress!==void 0&&(r=Number.isFinite(n.swipeProgress)?n.swipeProgress:0);let i=e.frontmostHeight;n.frontmostHeight!==void 0&&(i=Number.isFinite(n.frontmostHeight)?n.frontmostHeight:0),(r!==e.swipeProgress||i!==e.frontmostHeight)&&(e={swipeProgress:r,frontmostHeight:i},t.forEach(e=>{e()}))},subscribe(e){return t.add(e),()=>{t.delete(e)}}}}var nae,rae;function iae(e){let{children:t,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null,swipeDirection:p=`down`,snapToSequentialPoints:h=!1,snapPoints:g,snapPoint:v,defaultSnapPoint:y,onSnapPointChange:b}=e,x=Sp(!0),S=x?.onNestedSwipeProgressChange,C=x?.onNestedFrontmostHeightChange,T=x?.onNestedSwipingChange,E=x?.onNestedDrawerPresenceChange,[D,O]=m.useState(0),[k,A]=m.useState(0),[j,M]=m.useState(!1),[N,P]=m.useState(!1),[F]=m.useState(aae),I=y===void 0?g?.[0]??null:y,L=v!==void 0,[R,z]=_({controlled:v,default:I,name:`Drawer`,state:`snapPoint`}),B=m.useRef(!1),V=m.useRef(!1),H=w((e,t)=>{let n=t??Y(`none`);b?.(e,n),!n.isCanceled&&z(e)}),U=m.useMemo(()=>L||!g||g.length===0?R:R===null||!g.some(e=>Object.is(e,R))?I:R,[R,L,I,g]),W=w(e=>{O(e),!B.current&&e>0&&A(e)}),G=w(e=>{if(e>0){B.current=!0,A(e);return}B.current=!1,D>0&&A(D)}),ee=w(e=>{M(e)}),K=w(e=>{F.set(e),S?.(e)}),te=w(e=>{P(e),T?.(e)}),q=w((e,t)=>{a?.(e,t),!t.isCanceled&&!e&&g&&g.length>0&&H(I,Y(t.reason,t.event,t.trigger))}),ne=m.useMemo(()=>({swipeDirection:p,swipeAreaActiveRef:V,snapToSequentialPoints:h,snapPoints:g,activeSnapPoint:U,setActiveSnapPoint:H,frontmostHeight:k,popupHeight:D,hasNestedDrawer:j,nestedSwiping:N,nestedSwipeProgressStore:F,onNestedDrawerPresenceChange:ee,onPopupHeightChange:W,onNestedFrontmostHeightChange:G,onNestedSwipingChange:te,onNestedSwipeProgressChange:K,notifyParentFrontmostHeight:C,notifyParentSwipingChange:T,notifyParentSwipeProgressChange:S,notifyParentHasNestedDrawer:E}),[U,k,j,N,F,E,S,T,C,ee,G,K,te,W,D,H,g,h,V,p]),re=Qc(`drawer`,{open:r,defaultOpen:i,onOpenChange:q,onOpenChangeComplete:o,disablePointerDismissal:s,modal:c,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f,children:typeof t==`function`?e=>(0,n.jsxs)(m.Fragment,{children:[nae||=(0,n.jsx)(Ap,{}),t(e)]}):(0,n.jsxs)(m.Fragment,{children:[rae||=(0,n.jsx)(Ap,{}),t]})});return(0,n.jsx)(xp.Provider,{value:ne,children:re})}function aae(){let e=0,t=new Set;return{getSnapshot:()=>e,set(n){let r=Number.isFinite(n)?n:0;r!==e&&(e=r,t.forEach(e=>{e()}))},subscribe(e){return t.add(e),()=>{t.delete(e)}}}}function Ap(){let e=_p(),t=Gc(!1),n=e?.setDrawerOpen,r=e?.removeDrawer,i=t.useState(`open`),a=t.useState(`nestedOpenDialogCount`),o=t.useState(`popupElement`),s=a===0;return k(()=>{if(r)return()=>{r(t)}},[r,t]),k(()=>{n?.(t,i)},[i,n,t]),m.useEffect(()=>{if(!i||!s||!Ni)return;let e=Zt(o).CloseWatcher;if(!e)return;function n(e){t.select(`open`)&&t.setOpen(!1,Y(ot,e))}let r=new e,a=kn(r,`close`,n);return()=>{a(),r.destroy()}},[t,s,i,o]),null}function jp(e,t,n){return typeof e?.elementFromPoint==`function`?e.elementFromPoint(t,n):null}var oae=40,sae=10,cae=1,lae=50,Mp=16,uae=80,dae=`button,a,input,select,textarea,label,[role="button"]`;function Np(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}function Pp(e){let t=Zt(e).getComputedStyle(e).transform,n=0,r=0,i=1;if(t&&t!==`none`){let e=t.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(n=t[4],r=t[5],i=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(n=t[12],r=t[13],i=t[0])}}return{x:n,y:r,scale:i}}function Fp(e){return Number.isFinite(e)&&e>0?e:null}function Ip(e,t){return`translate3d(${e.x}px,${e.y}px,0) scale(${t})`}function fae(e){return e%2==1}function Lp(e,t,n){let r=e[n];if(typeof r==`function`)try{r.call(e,t)}catch(e){if(e&&typeof e==`object`&&`name`in e&&e.name===`NotFoundError`)return;throw e}}function pae(e){let{enabled:t,directions:n,elementRef:r,movementCssVars:i,canStart:a,ignoreSelectorWhenTouch:o=!0,ignoreScrollableAncestors:s=!1,swipeThreshold:c,onDismiss:l,onProgress:u,onCancel:d,onSwipeStart:f,onRelease:p,onSwipingChange:h,trackDrag:g=!0}=e,_=dae,v=n.length===1?n[0]:void 0,y=Math.max(0,typeof c==`number`?c:oae),b=n.includes(`left`),x=n.includes(`right`),S=n.includes(`up`),C=n.includes(`down`),T=b||x,E=S||C,D=m.useMemo(()=>{let e=[];return E&&e.push(`vertical`),T&&e.push(`horizontal`),e},[T,E]),[O,k]=m.useState(void 0),[A,j]=m.useState(!1),[M,N]=m.useState(!1),P=m.useRef({x:0,y:0}),F=m.useRef({x:0,y:0}),I=m.useRef(null),L=m.useRef({x:0,y:0,scale:1}),R=m.useRef(void 0),z=m.useRef(0),B=m.useRef(!1),V=m.useRef({x:0,y:0}),H=m.useRef(null),U=m.useRef(!1),W=m.useRef(!1),G=m.useRef(null),ee=m.useRef(!1),K=m.useRef(!1),te=m.useRef({width:0,height:0}),q=m.useRef(0),ne=m.useRef(y),re=m.useRef(null),ie=m.useRef(null),ae=m.useRef(null),oe=m.useRef({x:0,y:0}),se=m.useRef(null),ce=m.useRef(!1),le=m.useRef(null),ue=w(e=>{ce.current!==e&&(ce.current=e,j(e),h?.(e))});function de(e){if(!e)return;let t=r.current,n=re.current;if(!t||!n)return;let i=n({element:t,direction:e});ne.current=Math.max(0,i)}let fe=w((e,t)=>{let n=Number.isFinite(e)?Cp(e,0,1):0,r=n!==q.current,i=!1;if(t){let e=se.current;i=!e||e.deltaX!==t.deltaX||e.deltaY!==t.deltaY||e.direction!==t.direction}!r&&!i||(q.current=n,t?se.current=t:r&&(se.current=null),u?.(n,t))}),pe=w(e=>{let t=r.current;if(!g||!t){e||(le.current=null);return}let n=t.style,a=le.current;e?(a||(le.current=[n.transition,n.transform]),n.transition=`none`):a&&([n.transition,n.transform]=a,le.current=null);let o=F.current,s=L.current,c=o.x-s.x,l=o.y-s.y;e&&(n.transform=Ip(o,s.scale)),n.setProperty(i.x,`${c}px`),n.setProperty(i.y,`${l}px`)});function me(e,t){if(t===null)return;let n=ae.current;if(n&&t>n.time){let r=Math.max(t-n.time,Mp);oe.current={x:(e.x-n.x)/r,y:(e.y-n.y)/r}}ae.current={x:e.x,y:e.y,time:t}}let he=m.useCallback(()=>{k(void 0),ue(!1),N(!1),fe(0),ne.current=y,re.current=null,P.current={x:0,y:0},F.current={x:0,y:0},L.current={x:0,y:0,scale:1},R.current=void 0,z.current=0,B.current=!1,V.current={x:0,y:0},H.current=null,U.current=!1,I.current=null,W.current=!1,G.current=null,ee.current=!1,K.current=!1,te.current={width:0,height:0},ie.current=null,ae.current=null,oe.current={x:0,y:0},se.current=null,pe(!1)},[ue,y,pe,fe]);function ge(e){if(`touches`in e){let t=e.touches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function _e(e){return`touches`in e||e.pointerType===`touch`}function ve(e,t){let n=r.current?.getRootNode();return jp(n,e.x,e.y)??ra(t)}function ye(e,t){return T&&!E?Su(e,t,`horizontal`):E&&!T?Su(e,t,`vertical`):Su(e,t,`vertical`)??Su(e,t,`horizontal`)}function be(e,t,n){ee.current=!1;let i=_e(e),a=ve(t,e.nativeEvent),l=Cn(r.current).body,u=i&&l?ye(a,l):null,d=n?.ignoreScrollableTarget??!1;if(u&&!d||(ee.current=!!(u&&d),a&&a.closest(_)&&(!i||o)))return!1;let p=r.current;if(s&&p&&a&&D.length>0&&!(n?.ignoreScrollableAncestors??!1)&&Yre(a,p,D))return!1;if(B.current=!1,R.current=void 0,z.current=0,P.current=t,ie.current=Fp(e.timeStamp),V.current=t,I.current=t,ne.current=y,re.current=typeof c==`function`?c:null,p){te.current={width:p.offsetWidth,height:p.offsetHeight},de(v);let t=Pp(p);L.current=t,F.current={x:t.x,y:t.y},me({x:t.x,y:t.y},ie.current),`touches`in e||Lp(p,e.pointerId,`setPointerCapture`)}return f?.(e.nativeEvent),ue(!0),H.current=null,U.current=!0,fe(0),pe(!0),!0}function xe(){Se(),ee.current=!1,I.current=null}function Se(){W.current=!1,G.current=null}function Ce(e){if(xe(),!ce.current)return;ue(!1),H.current=null;let t=L.current;F.current={x:t.x,y:t.y},k(void 0),K.current=!1,pe(!1);let n=r.current;n&&Lp(n,e.pointerId,`releasePointerCapture`),fe(0,{deltaX:0,deltaY:0,direction:void 0}),d?.(e.nativeEvent)}function we(e,t){let n=e=>Math.sign(e)*Math.abs(e)**.5,r=(e,t,r)=>!t&&e<0||!r&&e>0?n(e):e;return{x:T?r(e,b,x):n(e),y:E?r(t,S,C):n(t)}}function Te(e,t,n){let r=(e,t,n,r,i)=>e>0&&t<=0&&r||e<0&&t>=Math.max(0,n)&&i,i=Math.abs(t),a=Math.abs(n);return E&&n!==0&&(!T||a>=i)?r(n,e.scrollTop,e.scrollHeight-e.clientHeight,C,S):T&&t!==0&&(!E||i>a)?r(t,e.scrollLeft,e.scrollWidth-e.clientWidth,x,b):null}let J=w(e=>{if(!t||e.defaultPrevented||e.nativeEvent.defaultPrevented||!(`touches`in e)&&e.button!==0)return;let n=ge(e);n&&(W.current=!0,G.current=n,ee.current=!1,K.current=!(`touches`in e),(!a||a(n,{nativeEvent:e.nativeEvent,direction:v}))&&be(e,n)&&Se())});function Ee(e,n,r){if(!t||!ce.current)return;let i=ra(e.nativeEvent);if(_e(e)&&!ee.current){let t=e.currentTarget;if(ye(i,t))return}if(`touches`in e||e.preventDefault(),U.current&&(U.current=!1,g)){P.current=n;let t=Fp(e.timeStamp);t!==null&&(ie.current=t)}let a=n.x,o=n.y,s=r.x,c=r.y;(c<0&&o>V.current.y||c>0&&o<V.current.y)&&(V.current={x:V.current.x,y:o}),(s<0&&a>V.current.x||s>0&&a<V.current.x)&&(V.current={x:a,y:V.current.y});let l=a-P.current.x,u=o-P.current.y,d=o-V.current.y,f=a-V.current.x,p=H.current;p===null&&T&&E&&Math.sqrt(l*l+u*u)>=cae&&(p=Math.abs(l)>Math.abs(u)?`horizontal`:`vertical`,H.current=p);let m;if(!R.current)p===`vertical`?u>0?m=`down`:u<0&&(m=`up`):p===`horizontal`?l>0?m=`right`:l<0&&(m=`left`):m=Math.abs(l)>=Math.abs(u)?l>0?`right`:`left`:u>0?`down`:`up`,m&&(m===`left`&&b||m===`right`&&x||m===`up`&&S||m===`down`&&C)&&(R.current=m,z.current=Np(m,l,u),k(m),de(m));else{let e=R.current,t=Np(e,f,d);t>ne.current?(B.current=!1,k(e)):!(b&&x)&&!(S&&C)&&z.current-t>=sae&&(B.current=!0)}let h=we(l,u),_=L.current.x,y=L.current.y;p===`horizontal`?T&&(_+=h.x):(p===`vertical`||T&&(_+=h.x),E&&(y+=h.y));let w=F.current,D=_!==w.x||y!==w.y;F.current={x:_,y},D&&pe(!0),me({x:_,y},Fp(e.timeStamp));let O=_-L.current.x,A=y-L.current.y,j={deltaX:O,deltaY:A,direction:R.current},M=0,N=v??R.current;if(N){let e=N===`left`||N===`right`?te.current.width:te.current.height,t=L.current.scale||1,n=Np(N,O,A);e>0&&t>0&&n>0&&(M=n/(e*t))}fe(M,j)}let De=w(e=>{if(!t)return;let i=F.current,a=L.current,o=i.x-a.x,s=i.y-a.y,c={deltaX:o,deltaY:s,direction:R.current};if(!ce.current){xe(),fe(0,c);return}ue(!1),H.current=null,xe(),K.current=!1;let u=r.current;u&&(`touches`in e||Lp(u,e.pointerId,`releasePointerCapture`));let d=o,f=s,m=ie.current,h=Fp(e.timeStamp),g=m!==null&&h!==null&&h>m?h-m:0,_=g>0?Math.max(g,lae):0,y=_>0?d/_:0,b=_>0?f/_:0,x=oe.current.x,S=oe.current.y,C=ae.current;if(C&&h!==null&&h>=C.time){let e=h-C.time;if(e<=uae){let t=Math.max(e,Mp),n=i.x-C.x,r=i.y-C.y,a=n/t,o=r/t;a!==0&&(x=a),o!==0&&(S=o)}else x=0,S=0}let w=p?.({event:e.nativeEvent,direction:R.current,deltaX:d,deltaY:f,velocityX:y,velocityY:b,releaseVelocityX:x,releaseVelocityY:S}),T=typeof w==`boolean`;if(B.current&&!T){F.current={x:a.x,y:a.y},k(void 0),pe(!1),fe(0,c);return}let E=!1,D;if(T)E=w,D=R.current??v;else for(let e of n)if(Np(e,d,f)>ne.current){E=!0,D=e;break}E&&D?(k(D),N(!0),pe(!1),l?.(e.nativeEvent,{direction:D})):(F.current={x:a.x,y:a.y},k(void 0),pe(!1),fe(0,c))}),Oe=w(e=>{let t=ge(e);if(!t)return;let n=!1;if(!(`touches`in e)){let t=fae(e.buttons);if(t&&(K.current=!0),e.buttons!==0&&!t){Ce(e);return}if(e.buttons===0&&K.current){if(!ce.current){De(e);return}n=!0}}if(!A&&W.current){if(!_e(e)&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)){xe();return}if(!a||a(t,{nativeEvent:e.nativeEvent,direction:v})){let n=G.current,i=!1;if(_e(e)){let a=r.current;if(n&&a){let r=ve(t,e.nativeEvent),o=Cn(a).body,s=o?ye(r,o):null;if(s&&(na(a,s)||na(s,a))){let e=Te(s,t.x-n.x,t.y-n.y);if(e===!1)return;e===!0&&(i=!0)}}}be(e,t,{ignoreScrollableTarget:i,ignoreScrollableAncestors:i})&&(n&&i?(Se(),P.current=n,V.current=n,I.current=n,U.current=!1):(Se(),ee.current=!1))}}let i=I.current,o=i===null?{x:0,y:0}:{x:t.x-i.x,y:t.y-i.y};I.current=t,Ee(e,t,o),n&&!(`touches`in e)&&De(e)}),ke=w((e,t)=>{Oe({touches:e.touches,currentTarget:t,nativeEvent:e,defaultPrevented:e.defaultPrevented,timeStamp:e.timeStamp})}),Ae=m.useCallback(()=>{let e=ce.current,t=F.current,n=L.current,r=t.x-n.x,a=t.y-n.y;return!e&&r===0&&a===0&&!M?{[i.x]:`0px`,[i.y]:`0px`}:{transition:e?`none`:void 0,transform:e?Ip(t,n.scale):void 0,[i.x]:`${r}px`,[i.y]:`${a}px`}},[M,i]);return{swiping:A,swipeDirection:O,dragDismissed:M,getPointerProps:m.useCallback(()=>t?{onPointerDown:J,onPointerMove:Oe,onPointerUp:De,onPointerCancel:De}:{},[t,De,Oe,J]),getTouchProps:m.useCallback(()=>t?{onTouchStart:J,onTouchMove:Oe,onTouchEnd:De,onTouchCancel:De}:{},[t,De,Oe,J]),moveNative:ke,getDragStyles:Ae,reset:he}}var mae=Dl,hae=Ml,Rp=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Rp.displayName=`DrawerVirtualKeyboardContext`);function gae(){return m.useContext(Rp)}var zp=10,Bp=.5,Vp=.5,_ae=300,vae=4,Hp=.2,yae=4,Up=80,bae=360,xae=.1,Wp=6,Sae=2,Cae=`[${mp}]`,Gp=m.forwardRef(function(e,t){let{render:i,className:a,style:o,children:s,...c}=e,l=Gc(),u=l.context.popupRef,d=l.context.backdropRef,{swipeDirection:f,notifyParentSwipingChange:p,notifyParentSwipeProgressChange:h,frontmostHeight:g,snapToSequentialPoints:_,swipeAreaActiveRef:v}=Sp(),y=_p(),{snapPoints:b,resolvedSnapPoints:x,activeSnapPoint:S,activeSnapPointOffset:C,setActiveSnapPoint:T,popupHeight:E}=Dp(),D=l.useState(`open`),O=l.useState(`mounted`),A=l.useState(`nested`),j=l.useState(`nestedOpenDrawerCount`),M=l.useState(`viewportElement`),N=l.useState(`popupElement`),P=y?.visualStateStore,F=j>0,I=f===`left`||f===`right`?`horizontal`:`vertical`,L=I===`vertical`,R=L?`horizontal`:`vertical`,[z,B]=m.useState(null),V=m.useRef(void 0),H=m.useRef(null),U=Dt(),W=m.useRef(!1),G=m.useRef(!1),ee=m.useRef(``),K=m.useRef(!1),te=m.useRef(!1),q=m.useRef(null),ne=gae(),re=m.useMemo(()=>{if(!b||b.length<2||x.length<2||f!==`down`&&f!==`up`)return null;let e=x.map(e=>e.offset).sort((e,t)=>e-t),t=e[0];return{minOffset:t,range:e[1]-t}},[x,b,f]),ie=m.useMemo(()=>!re||C===null?null:Cp((C-re.minOffset)/re.range,0,1),[C,re]),ae=m.useMemo(()=>b&&b.length>0&&(f===`down`||f===`up`)?f===`down`?[`down`,`up`]:[`up`,`down`]:[f],[b,f]),oe=w(e=>{u.current?.toggleAttribute(bp.swipeDismiss,e),d.current?.toggleAttribute(bp.swipeDismiss,e)}),se=w(()=>{oe(!1),u.current?.removeAttribute(Ft.endingStyle),B(null)}),ce=w(()=>{G.current&&(G.current=!1,p?.(!1))}),le=w((e,t,n)=>{let r=D&&!A&&t,i=r?e:0,a=D&&t?e:0;n&&h&&(h(a),a<=0&&ce()),P?.set({swipeProgress:i,frontmostHeight:i>0?g:0});let o=d.current;if(!o)return;let s=r&&i>0;o.style.setProperty(fp.swipeProgress,s?`${i}`:`0`),s&&g>0?o.style.setProperty(dp.height,`${g}px`):o.style.removeProperty(dp.height)});function ue(e,t,n,r,i,a,o,s){let c=Jp(e,t);if(c<=0)return null;let l=((t===`down`||t===`up`)&&b&&b.length>0?C??0:0)+Np(t,n,r),u=Math.max(0,c-l);if(u<=0)return null;let d=Np(t,o,s),f=Math.abs(d)>0?d:Np(t,i,a);return f<=Hp?null:xae+(Cp(u/Cp(f,Hp,yae),Up,bae)-Up)/280*.9}function de(e){if(G.current||!e)return;let t=Np(e.direction??f,e.deltaX,e.deltaY);Math.abs(t)<zp||(G.current=!0,p?.(!0))}let pe=pae({enabled:O&&!F,directions:ae,elementRef:l.context.popupRef,ignoreSelectorWhenTouch:!1,ignoreScrollableAncestors:!0,movementCssVars:{x:dp.swipeMovementX,y:dp.swipeMovementY},onSwipeStart(e){if(`touches`in e||e.pointerType===`touch`)return;let t=u.current,n=Cn(t).getSelection?.();if(!n||n.isCollapsed)return;let r=en(n.anchorNode)?n.anchorNode:n.anchorNode?.parentElement,i=en(n.focusNode)?n.focusNode:n.focusNode?.parentElement;!na(t,r)&&!na(t,i)||n.removeAllRanges()},onSwipingChange(e){W.current=e,Kp(l.context.backdropRef.current,e),!e&&!h&&ce()},swipeThreshold({element:e,direction:t}){return Yp(e,t)},canStart(e,t){let n=l.context.popupRef.current;if(!n)return!1;let r=n.ownerDocument,i=jp(n.getRootNode(),e.x,e.y);if(!i||!na(n,i))return!1;let a=t.nativeEvent;return!((`touches`in a||a.pointerType===`touch`)&&Xp(r,n))},onProgress(e,t){de(t);let n=!!(b&&b.length>0);if(W.current&&f===`down`&&n&&t){let e=l.context.popupRef.current;e&&(e.style.removeProperty(`transform`),e.style.setProperty(dp.swipeMovementY,`${wp(C??0,t.deltaY)}px`))}let r=e;if(re&&E>0){let e=C??re.minOffset;t&&Number.isFinite(t.deltaY)?r=(e=>Cp((e-re.minOffset)/re.range,0,1))(Cp(e+t.deltaY,0,E)):ie!==null&&(r=ie)}le(r,!0,!0)},onRelease({event:e,deltaX:t,deltaY:n,direction:i,velocityX:a,velocityY:o,releaseVelocityX:s,releaseVelocityY:c}){let u=l.context.popupRef.current;if(!u){se();return}let d=u;function p(e){ce(),oe(!0),d.style.removeProperty(`transition`),d.setAttribute(Ft.endingStyle,``),r.flushSync(()=>{B(ue(d,e,t,n,a,o,s,c))})}if(!b||b.length===0){if(!i){se();return}let e=Np(i,t,n);if(e<=0)return se(),!1;if(Np(i,a,o)>=Bp)return p(i),!0;let r=e>Yp(d,i);return r?p(i):se(),r}if(f!==`down`&&f!==`up`){se();return}if(!E)return se(),!1;if(x.length===0){se();return}let m=f===`down`?n:-n,h=Math.sign(m),g=f===`down`?c:-c,v=f===`down`?o:-o,y=g;if(h!==0&&Math.abs(m)>=zp){let e=Math.sign(y);e!==0&&e!==h&&(y=v)}let w=C??0,D=Cp(w+m,0,E),O=Math.abs(y)>=Vp?Cp(y,-4,vae)*_ae:0,k=_?D:Cp(D+O,0,E),A=Y(yt,e),j=()=>(V.current=S,T(null,A),p(f),!0);if(_){let e=[...x].sort((e,t)=>e.offset-t.offset),t=e.map(e=>e.offset),n=Ep(t,w),r=e[Ep(t,k)],i=Math.sign(y),a=h!==0&&i!==0&&i===h&&Math.abs(y)>=Vp,o=k;if(a){let t=Cp(n+h,0,e.length-1);if(t!==n){let n=e[t];(h>0?k<n.offset:k>n.offset)&&(r=n,o=n.offset)}else if(h>0)return j()}return Math.abs(o-E)<Math.abs(o-r.offset)?j():(T(r.value,A),se(),!1)}if(y>=Bp&&m>0)return j();let M=x[Ep(x.map(e=>e.offset),k)];return Math.abs(k-E)<Math.abs(k-M.offset)?j():(T(M.value,A),se(),!1)},onDismiss(e){P?.set({swipeProgress:0,frontmostHeight:0});let t=l.context.backdropRef.current;t&&(t.style.setProperty(fp.swipeProgress,`0`),t.style.removeProperty(dp.height));let n=Y(yt,e);if(l.setOpen(!1,n),n.isCanceled){let t=V.current;t!==void 0&&T(t,Y(yt,e)),V.current=void 0,H.current?.(),se();return}if(l.select(`open`)){let t=e;U.request(()=>{if(l.select(`open`)){let e=V.current;e!==void 0&&T(e,Y(yt,t)),V.current=void 0,se(),H.current?.()}else V.current=void 0});return}V.current=void 0,oe(!0)}}),me=pe.getPointerProps(),he=pe.getTouchProps(),{moveNative:ge,reset:_e}=pe;H.current=_e,m.useEffect(()=>{let e=M??N;if(!e)return;let t=e,n=Cn(t);function r(e,r,i){let a=L?i.clientY-r.lastY:i.clientX-r.lastX;if(e.touches.length===2||Xp(n,t)||!D||!O||F||jae(r,e,i,L))return;let o=r.scrollTarget;if(!o||o===n.documentElement||o===n.body){e.cancelable&&e.preventDefault(),e.stopPropagation(),ge(e,t);return}if(!Mae(o,I)){e.cancelable&&e.preventDefault(),e.stopPropagation();return}if(a!==0){let t=$p(o,I,f,a);r.allowSwipe?e.cancelable&&e.preventDefault():e.cancelable&&t?(r.allowSwipe=!0,e.preventDefault()):r.allowSwipe=!1}r.allowSwipe===!0&&(e.stopPropagation(),ge(e,t))}function i(e){if(ne?.onTouchMove(e),te.current)return;let t=q.current,n=e.touches[0];!n||!t||(r(e,t,n),Aae(t,n))}return kn(n,`touchmove`,i,{passive:!1,capture:!0})},[O,F,D,N,L,I,f,ge,M,ne]),k(()=>{!re||pe.swiping||le(!D||A?0:ie??0,!0,!1)},[le,g,A,h,D,ie,re,pe.swiping,l,P]),k(()=>{if(h)return D||h(0),()=>{h(0)}},[h,D]),k(()=>{D&&(v.current||_e(),se())},[se,D,_e,v]),k(()=>{let e=d.current;return()=>{P?.set({swipeProgress:0,frontmostHeight:0}),Kp(e,!1);let t=d.current;t!==e&&Kp(t,!1),ce()}},[d,ce,P]);let ve=m.useMemo(()=>({swiping:pe.swiping,getDragStyles:pe.getDragStyles,swipeStrength:z??null,setSwipeDismissed:oe}),[oe,pe.getDragStyles,pe.swiping,z]);function ye(e){te.current=e,q.current=null}function be(){ye(!1),ee.current=``,K.current=!1}function xe(e){return ee.current=``,e.pointerType!==`touch`}return(0,n.jsx)(Nl,{ref:t,className:a,style:o,render:i,...fe(c,{onPointerDown(e){if(ee.current=e.pointerType,K.current=e.pointerType===`pen`,!D||!O||F)return;let t=jp(e.currentTarget.getRootNode(),e.clientX,e.clientY);qp(t)||wae(t)||e.pointerType!==`touch`&&me.onPointerDown?.(e)},onPointerMove(e){e.pointerType!==`touch`&&me.onPointerMove?.(e)},onPointerUp(e){xe(e)&&me.onPointerUp?.(e)},onPointerCancel(e){xe(e)&&me.onPointerCancel?.(e)},onTouchStart(e){if(ee.current===`pen`&&K.current){K.current=!1,ye(!1);return}if(!D||!O||F){ye(!1);return}let t=e.touches[0];if(!t)return;if(kae(e)){ye(!1);return}let n=e.currentTarget,r=jp(n.getRootNode(),t.clientX,t.clientY),i=ra(e.nativeEvent),a=en(i)?i:n;if(!na(n,a)){ye(!0);return}if(ne?.onTouchStart(e),qp(r)){ye(!0);return}te.current=!1;let o=Su(a,n,I),s=Su(a,n,R)!=null,c=null;o&&(c=Qp(o,I,f)?null:!1),q.current={startX:t.clientX,startY:t.clientY,lastX:t.clientX,lastY:t.clientY,scrollTarget:o,hasCrossAxisScrollableContent:s,allowSwipe:c,preserveNativeCrossAxisScroll:!1,drawerAxisAttributed:!1},he.onTouchStart?.(e)},onTouchEnd(e){ne?.onTouchEnd(e),be(),he.onTouchEnd?.(e)},onTouchCancel(e){ne?.onTouchCancel(),be(),he.onTouchCancel?.(e)},"data-nested-dialog-open":void 0}),children:(0,n.jsx)(Op.Provider,{value:ve,children:s})})});process.env.NODE_ENV!==`production`&&(Gp.displayName=`DrawerViewport`);function Kp(e,t){e?.toggleAttribute(bp.swiping,t)}function qp(e){return!!e?.closest(Lo)}function wae(e){return!!e?.closest(Cae)}function Jp(e,t){return t===`left`||t===`right`?e.offsetWidth:e.offsetHeight}function Yp(e,t){return Math.max(Jp(e,t)*.5,zp)}function Tae(e,t){return e instanceof t.HTMLInputElement&&e.type===`range`}function Eae(e){return e.tagName===`INPUT`||e.tagName===`TEXTAREA`}function Dae(e,t){let n=en(e.anchorNode)?e.anchorNode:e.anchorNode?.parentElement,r=en(e.focusNode)?e.focusNode:e.focusNode?.parentElement;return e.containsNode(t,!0)||na(t,n)||na(t,r)}function Xp(e,t){let n=ta(e);if(n&&na(t,n)&&Eae(n)){let{selectionStart:e,selectionEnd:t}=n;if(e!=null&&t!=null&&e<t)return!0}let r=e.getSelection?.();return!r||r.isCollapsed?!1:Dae(r,t)}function Oae(e,t){return e.composedPath().some(e=>Tae(e,t))}function kae(e){return Oae(e.nativeEvent,Zt(e.currentTarget))}function Aae(e,t){e.lastX=t.clientX,e.lastY=t.clientY}function jae(e,t,n,r){if(e.preserveNativeCrossAxisScroll)return!0;if(e.drawerAxisAttributed||e.allowSwipe===!0||!e.hasCrossAxisScrollableContent)return!1;if(!t.cancelable)return e.preserveNativeCrossAxisScroll=!0,!0;let i=r?n.clientY-e.startY:n.clientX-e.startX,a=r?n.clientX-e.startX:n.clientY-e.startY,o=Math.abs(i),s=Math.abs(a);return s>=Wp&&s>o+Sae?(e.preserveNativeCrossAxisScroll=!0,!0):o>=Wp?(e.drawerAxisAttributed=!0,!1):!0}function Mae(e,t){return Zp(e,t).max>0}function Zp(e,t){if(t===`vertical`){let t=Math.max(0,e.scrollHeight-e.clientHeight);return{offset:e.scrollTop,max:t}}let n=Math.max(0,e.scrollWidth-e.clientWidth);return{offset:e.scrollLeft,max:n}}function Qp(e,t,n){let r=em(n,t),{offset:i,max:a}=Zp(e,t);return r?i<=0:i>=a}function $p(e,t,n,r){return(em(n,t)?r>0:r<0)&&Qp(e,t,n)}function em(e,t){return t===`vertical`?e===`down`:e===`right`}var tm=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(tm.displayName=`FieldsetRootContext`);function nm(e=!1){let t=m.useContext(tm);if(!t&&!e)throw Error(process.env.NODE_ENV===`production`?B(86):`Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>.`);return t}var rm=m.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:h,disabled:g,setTouched:v,setDirty:y,validityData:b,setFocused:x,setFilled:S,validationMode:C,validation:T}=lu(),{clearErrors:E}=fu(),D=g||s,O=h??a,A={...p,disabled:D},{labelId:j}=mu(),M=hu({id:i});k(()=>{let e=o!=null;T.inputRef.current?.value||e&&o!==``?S(!0):e&&o===``&&S(!1)},[T.inputRef,S,o]);let N=m.useRef(null);k(()=>{u&&N.current===ta(Cn(N.current))&&x(!0)},[u,x]);let[P]=_({controlled:o,default:l,name:`FieldControl`,state:`value`}),F=o!==void 0,I=F?P:void 0,L=w(()=>T.inputRef.current?.value);return uu(T.inputRef,M,I,L,!D,a),J(`input`,e,{ref:[t,N],state:A,props:[{id:M,disabled:D,name:O,ref:T.inputRef,"aria-labelledby":j,autoFocus:u,...F?{value:I}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Y(Ve,e.nativeEvent)),y(t!==(b.initialValue??``)),S(t!==``),e.nativeEvent.defaultPrevented||(E(O),T.change(t))},onFocus(){x(!0)},onBlur(e){v(!0),x(!1),C===`onBlur`&&T.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(v(!0),T.commit(e.currentTarget.value))}},f,e=>T.getValidationProps(D,e)],stateAttributesMapping:ou})});process.env.NODE_ENV!==`production`&&(rm.displayName=`FieldControl`);var im=m.forwardRef(function(e,t){return(0,n.jsx)(rm,{ref:t,...e})});process.env.NODE_ENV!==`production`&&(im.displayName=`Input`);var am=`data-composite-item-active`,om=[];function sm(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:a,highlightedIndex:o,onHighlightedIndexChange:s,rootRef:c,enableHomeAndEndKeys:l=!1,stopEventPropagation:u,disabledIndices:d,modifierKeys:f=om}=e,[p,h]=m.useState(0),g=r!=null,_=m.useRef(null),v=U(_,c),y=m.useRef([]),b=m.useRef(!1),x=o??p,S=w((e,t=!1)=>{if((s??h)(e),t){let t=y.current[e];yl(_.current,t,a,n)}}),C=w(e=>{if(e.size===0||b.current)return;b.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?e.get(r)?.index??-1:-1;if(i!==-1)S(i);else if(Ya(t,x,d)){let e=Ja(t,{disabledIndices:d});Ga(t,e)||S(e)}yl(_.current,r,a,n)});k(()=>{if(d==null||o!=null||!b.current)return;let e=y.current;if(Ya(e,x,d)){let t=Ja(e,{disabledIndices:d});Ga(e,t)||S(t)}},[d,o,x,y,S]);let T=w((e,t,n)=>i?i(e,t,n,y):n),E=w(e=>{let o=e.key===`Home`||e.key===`End`;if(!gl.has(e.key)||!l&&o||cm(e,f)||!_.current)return;let s=a===`rtl`,c=s?dl:fl,p=s?fl:dl,m=n===`vertical`?ul:c,h=n===`vertical`?ll:p,v=ra(e.nativeEvent);if(v!=null&&vl(v)&&!ip(v)){let t=v.selectionStart,n=v.selectionEnd,r=v.value;if(t==null||e.shiftKey||t!==n||e.key!==h&&t<r.length||e.key!==m&&t>0)return}let b=x,C=Ka(y,d),w=qa(y,d);r!=null&&(b=r({disabledIndices:d,elementsRef:y,event:e,highlightedIndex:x,loopFocus:t,maxIndex:w,minIndex:C,onLoop:T,orientation:n,rtl:s}));let E=n!==`vertical`&&e.key===c||n!==`horizontal`&&e.key===`ArrowDown`,D=n!==`vertical`&&e.key===p||n!==`horizontal`&&e.key===`ArrowUp`;l&&(e.key===`Home`?b=C:e.key===`End`&&(b=w)),b===x&&(E||D)&&(t&&b===w&&E?(b=C,i&&(b=i(e,x,b,y))):t&&b===C&&D?(b=w,i&&(b=i(e,x,b,y))):b=Ja(y.current,{startingIndex:b,decrement:D,disabledIndices:d})),b!==x&&!Ga(y.current,b)&&(u&&e.stopPropagation(),(g||o||E||D)&&e.preventDefault(),S(b,!0),queueMicrotask(()=>{y.current[b]?.focus()}))});return{props:{ref:v,onFocus(e){let t=_.current,n=ra(e.nativeEvent);!t||n==null||!vl(n)||n.setSelectionRange(0,n.value.length)},onKeyDown:E},highlightedIndex:x,onHighlightedIndexChange:S,elementsRef:y,onMapChange:C,relayKeyboardEvent:E}}function cm(e,t){for(let n of Ire)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function lm(e){let{render:t,className:r,style:i,refs:a=oe,props:o=oe,state:s=se,stateAttributesMapping:c,highlightedIndex:l,onHighlightedIndexChange:u,orientation:d,grid:f,loopFocus:p,onLoop:h,enableHomeAndEndKeys:g,onMapChange:_,stopEventPropagation:v=!0,rootRef:y,disabledIndices:b,modifierKeys:x,highlightItemOnHover:S=!1,tag:C=`div`,...w}=e,{props:T,highlightedIndex:E,onHighlightedIndexChange:D,elementsRef:O,onMapChange:k,relayKeyboardEvent:A}=sm({grid:f,loopFocus:p,onLoop:h,orientation:d,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:y,stopEventPropagation:v,enableHomeAndEndKeys:g,direction:Du(),disabledIndices:b,modifierKeys:x}),j=J(C,e,{state:s,ref:a,props:[T,...o,w],stateAttributesMapping:c}),N=m.useMemo(()=>({highlightedIndex:E,onHighlightedIndexChange:D,highlightItemOnHover:S,relayKeyboardEvent:A}),[E,D,S,A]);return(0,n.jsx)(xn.Provider,{value:N,children:(0,n.jsx)(M,{elementsRef:O,onMapChange:e=>{_?.(e),k(e)},children:j})})}var um=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(um.displayName=`MeterRootContext`);function dm(){let e=m.useContext(um);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(38):`Base UI: MeterRootContext is missing. Meter parts must be placed within <Meter.Root>.`);return e}var fm=new Map;function pm(e,t){let n=JSON.stringify({locale:_u(e),options:t}),r=fm.get(n);if(r)return r;let i=new Intl.NumberFormat(e,t);return fm.set(n,i),i}function mm(e,t,n){return e==null?``:pm(t,n).format(e)}function hm(e,t,n){return(e-t)*100/(n-t)}var gm=m.forwardRef(function(e,t){let{format:r,getAriaValueText:i,locale:a,max:o=100,min:s=0,value:c,render:l,className:u,children:d,style:f,...p}=e,[h,g]=m.useState(),_=hm(c,s,o),v=Cp(Number.isNaN(_)?0:_,0,100),y=Cp(Number.isNaN(c)?s:c,s,o),b=r?mm(y,a,r):mm(v/100,a,{style:`percent`}),x=b;i&&(x=i(b,c));let S={"aria-labelledby":h,"aria-valuemax":o,"aria-valuemin":s,"aria-valuenow":y,"aria-valuetext":x,role:`meter`,children:(0,n.jsxs)(m.Fragment,{children:[d,(0,n.jsx)(`span`,{role:`presentation`,style:Sa,children:`x`})]})},C=m.useMemo(()=>({formattedValue:b,percentageValue:v,setLabelId:g,value:c}),[b,v,g,c]),w=J(`div`,e,{ref:t,props:[S,p]});return(0,n.jsx)(um.Provider,{value:C,children:w})});process.env.NODE_ENV!==`production`&&(gm.displayName=`MeterRoot`);var _m=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return J(`div`,e,{ref:t,props:a})});process.env.NODE_ENV!==`production`&&(_m.displayName=`MeterTrack`);var vm=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{percentageValue:o}=dm();return J(`div`,e,{ref:t,props:[{style:{insetInlineStart:0,height:`inherit`,width:`${o}%`}},a]})});process.env.NODE_ENV!==`production`&&(vm.displayName=`MeterIndicator`);var ym=m.forwardRef(function(e,t){let{className:n,render:r,children:i,style:a,...o}=e,{value:s,formattedValue:c}=dm();return J(`span`,e,{ref:t,props:[{"aria-hidden":!0,children:typeof i==`function`?i(c,s):c},o]})});process.env.NODE_ENV!==`production`&&(ym.displayName=`MeterValue`);var bm=m.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=dm();return J(`span`,e,{ref:t,props:[{id:vie(a,s),role:`presentation`},o]})});process.env.NODE_ENV!==`production`&&(bm.displayName=`MeterLabel`);var xm=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(xm.displayName=`NavigationMenuRootContext`),process.env.NODE_ENV!==`production`&&(xm.displayName=`NavigationMenuRootContext`);function Sm(e){let t=m.useContext(xm);if(t===void 0&&!e)throw Error(process.env.NODE_ENV===`production`?B(41):`Base UI: NavigationMenuRootContext is missing. Navigation Menu parts must be placed within <NavigationMenu.Root>.`);return t}var Cm=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Cm.displayName=`NavigationMenuTreeContext`);function wm(){return m.useContext(Cm)}var Tm=function(e){return e.availableWidth=`--available-width`,e.availableHeight=`--available-height`,e.anchorWidth=`--anchor-width`,e.anchorHeight=`--anchor-height`,e.transformOrigin=`--transform-origin`,e.positionerWidth=`--positioner-width`,e.positionerHeight=`--positioner-height`,e}({}),Em=function(e){return e.popupWidth=`--popup-width`,e.popupHeight=`--popup-height`,e}({});function Dm(e,t,n,r){e.style.setProperty(Em.popupWidth,`${n}px`),e.style.setProperty(Em.popupHeight,`${r}px`),t.style.setProperty(Tm.positionerWidth,`${n}px`),t.style.setProperty(Tm.positionerHeight,`${r}px`)}var Om=new Set([Ue,Ge,it]);function km(e){let t=parseFloat(e.style.getPropertyValue(Tm.positionerWidth))||0,n=parseFloat(e.style.getPropertyValue(Tm.positionerHeight))||0;return t<=0||n<=0?null:{width:t,height:n}}var Am=m.forwardRef(function(e,t){let{defaultValue:r=null,value:i,onValueChange:a,actionsRef:o,delay:s=50,closeDelay:c=50,orientation:l=`horizontal`,onOpenChangeComplete:u}=e,d=Zo()!=null,f=Sm(!0),[p,h]=_({controlled:i,default:r,name:`NavigationMenu`,state:`value`}),g=p!=null,v=m.useRef(void 0),y=m.useRef(null),[b,x]=m.useState(null),[S,C]=m.useState(null),[T,E]=m.useState(null),[D,O]=m.useState(null),[A,j]=m.useState(null),[M,N]=m.useState(void 0),[P,F]=m.useState(!1),I=m.useRef(null),L=m.useRef(null),R=m.useRef(null),z=m.useRef(null),B=m.useRef(null),V=m.useRef(null),H=m.useRef({abortController:null,owner:null}),{mounted:U,setMounted:W,transitionStatus:G}=Ot(g);k(()=>{if(g||!b||!S)return;let e=km(b);e&&Dm(S,b,e.width,e.height)},[g,S,b]),m.useEffect(()=>{F(!1)},[p]);let ee=w((e,t)=>{e??(v.current=t.reason),e!==p&&a?.(e,t),!t.isCanceled&&(e??(j(null),N(void 0)),h(e),d&&e==null&&t.reason===`link-press`&&f&&f.setValue(null,t))}),K=w(()=>{let e=ta(Cn(y.current));!(v.current&&Om.has(v.current))&&tn(I.current)&&(e===Cn(S).body||na(S,e))&&S&&(I.current.focus({preventScroll:!0}),I.current=void 0),W(!1),u?.(!1),j(null),N(void 0),L.current=null,v.current=void 0});m.useImperativeHandle(o,()=>({unmount:K}),[K]),Nn({enabled:!o,open:g,ref:{current:S},onComplete(){g||K()}}),Nn({enabled:!o,open:g,ref:{current:D},onComplete(){g||K()}});let te=g?A:null,q=m.useMemo(()=>({open:g,value:p,setValue:ee,mounted:U,transitionStatus:G,positionerElement:b,setPositionerElement:x,popupElement:S,setPopupElement:C,viewportElement:T,setViewportElement:E,viewportTargetElement:D,setViewportTargetElement:O,activationDirection:te,setActivationDirection:j,floatingRootContext:M,setFloatingRootContext:N,currentContentRef:L,nested:d,rootRef:y,beforeInsideRef:R,afterInsideRef:z,beforeOutsideRef:B,afterOutsideRef:V,prevTriggerElementRef:I,popupAutoSizeResetRef:H,delay:s,closeDelay:c,orientation:l,viewportInert:P,setViewportInert:F}),[g,p,ee,U,G,b,S,T,D,te,M,d,s,c,l,P]),ne=(0,n.jsx)(xm.Provider,{value:q,children:(0,n.jsx)(jm,{componentProps:e,forwardedRef:t,children:e.children})});return d?ne:(0,n.jsx)(ts,{children:ne})});process.env.NODE_ENV!==`production`&&(Am.displayName=`NavigationMenuRoot`);function jm(e){let{className:t,render:r,defaultValue:i,value:a,onValueChange:o,actionsRef:s,delay:c,closeDelay:l,orientation:u,onOpenChangeComplete:d,style:f,...p}=e.componentProps,m=$o(),{rootRef:h,nested:g,open:_}=Sm(),v={open:_,nested:g},y=J(g?`div`:`nav`,e.componentProps,{state:v,ref:[e.forwardedRef,h],props:p});return(0,n.jsx)(Cm.Provider,{value:m,children:(0,n.jsx)(es,{id:m,children:y})})}var Mm=`data-base-ui-navigation-menu-trigger`,Nm=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Nm.displayName=`NavigationMenuDismissContext`);function Pm(){return m.useContext(Nm)}var Fm=m.forwardRef(function(e,t){let{render:r,className:i,style:a,...o}=e,s=wm(),{orientation:c,open:l,floatingRootContext:u,positionerElement:d,value:f,closeDelay:p,viewportElement:h,nested:g}=Sm(),_=m.useMemo(()=>fc(),[]),v=u||_,y=d!=null||f==null;kc(v,{enabled:!!u&&(d!=null||h!=null||f==null),closeDelay:p,nodeId:s});let b=us(v,{enabled:y,outsidePressEvent:`intentional`,outsidePress(e){return ra(e)?.closest(`[${Mm}]`)===null}}),x=u?b:void 0,S={open:l},C=g?se:{onKeyDown(e){(c===`horizontal`&&(e.key===`ArrowLeft`||e.key===`ArrowRight`)||c===`vertical`&&(e.key===`ArrowUp`||e.key===`ArrowDown`))&&e.stopPropagation()}},w=[x?.floating||se,C,o],T=J(`ul`,e,{state:S,ref:t,props:w,enabled:g});return g?(0,n.jsx)(Nm.Provider,{value:x,children:T}):(0,n.jsx)(Nm.Provider,{value:x,children:(0,n.jsx)(lm,{render:r,className:i,style:a,state:S,refs:[t],props:w,loopFocus:!1,orientation:c,tag:`ul`})})});process.env.NODE_ENV!==`production`&&(Fm.displayName=`NavigationMenuList`);var Im=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Im.displayName=`NavigationMenuItemContext`);function Lm(){let e=m.useContext(Im);if(!e)throw Error(process.env.NODE_ENV===`production`?B(39):`Base UI: NavigationMenuItem parts must be used within a <NavigationMenu.Item>.`);return e}var Rm=m.forwardRef(function(e,t){let{render:r,className:i,style:a,value:o,...s}=e,c=Be(),l=o??c,u=J(`li`,e,{ref:t,props:s}),d=m.useMemo(()=>({value:l}),[l]);return(0,n.jsx)(Im.Provider,{value:d,children:u})});process.env.NODE_ENV!==`production`&&(Rm.displayName=`NavigationMenuItem`);var zm={...nl,...Rt,activationDirection(e){return e?{"data-activation-direction":e}:null}},Bm=m.forwardRef(function(e,t){let{render:i,className:a,style:o,keepMounted:s=!1,...c}=e,{mounted:l,viewportElement:u,value:d,activationDirection:f,currentContentRef:p,viewportTargetElement:h}=Sm(),{value:g}=Lm(),_=wm(),v=l&&d===g,y=m.useRef(null),[b,x]=m.useState(!1),[S,C]=m.useState(!1),{mounted:T,setMounted:E,transitionStatus:D}=Ot(v);T&&!l&&E(!1),Nn({ref:y,open:v,onComplete(){v||E(!1)}}),k(()=>{v&&y.current&&(p.current=y.current)},[v,p]);let O={open:v,transitionStatus:D,activationDirection:f},A=w(e=>{e&&v&&(p.current=e)}),j={onFocus(e){ra(e.nativeEvent)?.hasAttribute(`data-base-ui-focus-guard`)||C(!0)},onBlur(e){na(e.currentTarget,e.relatedTarget)||C(!1)}},M=!v&&T?{style:{position:`absolute`,top:0,left:0},inert:wl(!S),...j}:j,N=h||u,P=s&&!T,F=s&&!N&&!b;return s&&N&&!b&&x(!0),F?(0,n.jsx)(lm,{render:i,className:a,style:o,state:O,refs:[t],props:[M,{hidden:!0},c],stateAttributesMapping:zm}):!N||!T&&!s?null:r.createPortal((0,n.jsx)(es,{id:_,children:(0,n.jsx)(lm,{render:i,className:a,style:o,state:O,refs:[t,y,A],props:[M,P?{hidden:!0}:se,c],stateAttributesMapping:zm})}),N)});process.env.NODE_ENV!==`production`&&(Bm.displayName=`NavigationMenuContent`);function Vm({currentTarget:e,relatedTarget:t},n){let{popupElement:r,rootRef:i,tree:a,nodeId:o}=n,s=a?_o(a.nodesRef.current,o).some(e=>na(e.context?.elements.floating,t)):!1;return r?!na(r,e)&&!na(r,t)&&!na(i.current,t)&&!s:!na(i.current,t)&&!s}var Hm={width:0,height:0},Um=m.forwardRef(function(e,t){let{render:i,className:a,style:o,nativeButton:s=!0,disabled:c,...l}=e,{value:u,setValue:d,mounted:f,open:p,positionerElement:h,setActivationDirection:g,setFloatingRootContext:_,popupElement:v,viewportElement:y,transitionStatus:b,rootRef:x,beforeOutsideRef:S,afterOutsideRef:C,afterInsideRef:T,beforeInsideRef:E,prevTriggerElementRef:D,popupAutoSizeResetRef:O,currentContentRef:A,delay:j,closeDelay:M,orientation:N,setViewportInert:P,nested:F}=Sm(),{value:I}=Lm(),L=wm(),R=Qo(),z=Pm(),B=Du(),V=Hi(),H=Dt(),U=Dt(),W=Dt(),G=Dt(),[ee,K]=m.useState(null),[te,q]=m.useState(!0),[ne,re]=m.useState(``),ie=m.useRef(null),ae=m.useRef(!1),se=m.useRef(Hm),ce=m.useRef(!1),le=p&&u===I,ue=An(le),de=(h!=null||u==null)&&!c,pe=h||y,me=(pe!=null||u==null)&&!c,he=Mn(v),ge=m.useCallback(e=>{ie.current=e,K(e)},[]),_e=w((e=!1)=>{!e&&O.current.owner!==I||(O.current.abortController?.abort(),O.current.abortController=null,O.current.owner=null)});k(()=>{le||(U.cancel(),G.cancel(),_e())},[le,U,G,_e]);function ve(e){e.style.setProperty(Em.popupWidth,`auto`),e.style.setProperty(Em.popupHeight,`auto`)}function ye(e,t){e.style.removeProperty(Em.popupWidth),e.style.removeProperty(Em.popupHeight),t.style.removeProperty(Tm.positionerWidth),t.style.removeProperty(Tm.positionerHeight)}function be(e){_e(!0);let t=new AbortController;O.current.abortController=t,O.current.owner=I,he(()=>{O.current.abortController=null,O.current.owner=null,ve(e)},t.signal)}let xe=w((e,t,n,r)=>{_e(!0),ye(e,t);let{width:i,height:a}=Xf(e),o=i||se.current.width,s=a||se.current.height;(r===0||n===0)&&(n=o,r=s),e.style.setProperty(Em.popupWidth,`${n}px`),e.style.setProperty(Em.popupHeight,`${r}px`),t.style.setProperty(Tm.positionerWidth,`${o}px`),t.style.setProperty(Tm.positionerHeight,`${s}px`),G.request(()=>{ue.current&&(e.style.setProperty(Em.popupWidth,`${o}px`),e.style.setProperty(Em.popupHeight,`${s}px`),be(e))})}),Se=w((e,t,n,r)=>{G.cancel(),U.cancel(),_e(!0),n!==0&&r!==0&&(Dm(e,t,n,r),U.request(()=>{U.request(()=>{ye(e,t);let{width:i,height:a}=Xf(e),o=i||n,s=a||r;Dm(e,t,n,r),G.request(()=>{ue.current&&(Dm(e,t,o,s),be(e))})})}))}),Ce=w((e,t)=>{G.cancel(),_e(!0),ye(e,t);let{width:n,height:r}=Xf(e);n!==0&&r!==0&&(se.current={width:n,height:r},ve(e),t.style.setProperty(Tm.positionerWidth,`${n}px`),t.style.setProperty(Tm.positionerHeight,`${r}px`))}),we=w(e=>{let t=e.style.getPropertyValue(Em.popupWidth),n=e.style.getPropertyValue(Em.popupHeight);return t===``||t===`auto`||n===``||n===`auto`?{size:se.current,syncPositioner:!1}:{size:{width:e.offsetWidth||se.current.width,height:e.offsetHeight||se.current.height},syncPositioner:!0}});m.useEffect(()=>{p||(V.clear(),U.cancel(),W.cancel(),G.cancel(),_e(!0),ce.current=!1,re(``))},[V,p,U,W,G,_e]),m.useEffect(()=>{f||(se.current=Hm)},[f]),k(()=>{if(!v||typeof ResizeObserver!=`function`)return;let e=new ResizeObserver(()=>{se.current={width:v.offsetWidth,height:v.offsetHeight}});return e.observe(v),()=>{e.disconnect()}},[v]),m.useEffect(()=>{if(!p||!le||!v||!h)return;let e=v,t=h,n=Zt(t);function r(){W.cancel(),W.request(()=>Ce(e,t))}let i=kn(n,`resize`,r);return()=>{W.cancel(),i()}},[p,le,v,h,W,Ce]),m.useEffect(()=>{let e=A.current;if(!e||!v||!h||!le||typeof MutationObserver!=`function`)return;let t=new MutationObserver(()=>{if(b===`starting`||v.hasAttribute(Ft.startingStyle)){Ce(v,h);return}let{size:e,syncPositioner:t}=we(v);if(t){Se(v,h,e.width,e.height);return}xe(v,h,e.width,e.height)});return t.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`hidden`]}),()=>{t.disconnect()}},[A,v,h,le,b,we,Se,xe,Ce]),m.useEffect(()=>(le&&p&&v&&ae.current&&(ae.current=!1,H.request(()=>{S.current?.focus()})),()=>{H.cancel()}),[S,H,le,p,v]),k(()=>{if(ue.current&&p&&v&&h){if(ce.current){ce.current=!1;return}let{width:e,height:t}=Xf(v);xe(v,h,e,t)}},[A,xe,ue,p,v,h,b]);function Te(e,t){let n=t.reason===Ue;if(!de||ne===`touch`&&n||!e&&u!==I)return;function i(){n&&(q(!0),V.clear(),V.start(500,()=>{q(!1)})),e?d(I,t):(d(null,t),re(``))}n?r.flushSync(i):i()}let J=xc({open:p,onOpenChange:Te,elements:{reference:ee,floating:pe}}),Ee=Oc(J),De=ne!==`touch`;m.useEffect(()=>(p||(J.context.dataRef.current.openEvent=void 0,Ee.pointerType=void 0,Ee.interactedInside=!1,Ee.restTimeoutPending=!1,Ee.openChangeTimeout.clear(),Ee.restTimeout.clear()),()=>{Ec(Ee)}),[J,Ee,p]);let Oe=w(()=>!F||h||!ie.current||!pe?null:Gm(ie.current,pe,L));function ke(){return F&&h?null:ie.current?.closest(`ul`)??null}let Ae=Ac(J,{enabled:me,move:!1,handleClose:Hc({blockPointerEvents:De,getScope:ke}),restMs:f&&h?0:j,delay:{close:M},triggerElementRef:ie,getHandleCloseContext:Oe}),je=m.useMemo(()=>Ae?{reference:Ae}:void 0,[Ae]),Me=cs(J,{enabled:de,stickIfOpen:te,toggle:le}),Ne=m.useMemo(()=>fe(Me.reference,je?.reference),[Me.reference,je]);k(()=>{le&&(_(J),D.current=ee)},[le,J,_,D,ee]);function Pe(e){r.flushSync(()=>{let t=e.currentTarget,n=D.current?.getBoundingClientRect();if(f&&n&&ee){let e=ee.getBoundingClientRect(),t=e.left>n.left,r=e.top>n.top;N===`horizontal`&&e.left!==n.left?g(t?`right`:`left`):N===`vertical`&&e.top!==n.top&&g(r?`down`:`up`)}if(e.type!==`click`&&u!=null&&(J.context.dataRef.current.openEvent=void 0),(ne!==`touch`||e.type===`click`)&&(u!=null&&e.type!==`keydown`&&d(I,Y(e.type===`mouseenter`?Ue:He,e.nativeEvent)),e.type===`mouseenter`&&De&&(!F||!h)&&pe)){let e=()=>{let e=ke()??t.ownerDocument.body;Dc(Ee,{scopeElement:e,referenceElement:t,floatingElement:pe})};u!=null&&u!==I?queueMicrotask(e):e()}})}let Fe=w(e=>{if(c)return;if(!v||!h){Pe(e);return}let{width:t,height:n}=Xf(v),r=u!=null&&u!==I&&(e.type===`click`||ne!==`touch`);Pe(e),r&&(ce.current=!0),xe(v,h,t,n)}),Ie={open:le};function Le(e){re(e.pointerType)}function Re(e){Le(e),Ec(Ee)}let ze={tabIndex:0,onMouseEnter:Fe,onClick:Fe,onPointerEnter:Le,onPointerDown:Re,"aria-expanded":le,"aria-controls":le?v?.id:void 0,[Mm]:``,onFocus(){le&&P(!1)},onMouseMove(){ae.current=!1},onKeyDown(e){if(ae.current=!0,F)return;let t=B===`rtl`?`ArrowLeft`:`ArrowRight`,n=N===`horizontal`&&e.key===`ArrowDown`,r=N===`vertical`&&e.key===t;(n||r)&&(d(I,Y(st,e.nativeEvent)),Fe(e),Yi(e))},onBlur(e){h&&v&&Vm({currentTarget:e.currentTarget,relatedTarget:e.relatedTarget},{popupElement:v,rootRef:x,tree:R,nodeId:L})&&d(null,Y(it,e.nativeEvent))}},{getButtonProps:Be,buttonRef:Ve}=Tn({disabled:c,focusableWhenDisabled:!0,native:s}),We=pe;return(0,n.jsxs)(m.Fragment,{children:[(0,n.jsx)(Gf,{tag:`button`,render:i,className:a,style:o,state:Ie,stateAttributesMapping:tl,refs:[t,ge,Ve],props:[Ne,z?.reference||oe,ze,l,Be]}),le&&(0,n.jsxs)(m.Fragment,{children:[(0,n.jsx)(wa,{ref:S,onFocus:e=>{We&&mo(e,We)?E.current?.focus():uo(ee)?.focus()}}),(0,n.jsx)(`span`,{"aria-owns":y?.id,style:Vo}),(0,n.jsx)(wa,{ref:C,onFocus:e=>{if(We&&mo(e,We))r.flushSync(()=>{P(!1)}),(T.current||ee)?.focus();else{let t=lo(ee);F&&!h&&We&&t&&na(We,t)&&(t=po(T.current)),t?.focus(),(!F||h)&&!na(x.current,t)&&d(null,Y(`focus-out`,e.nativeEvent))}}})]})]})});process.env.NODE_ENV!==`production`&&(Um.displayName=`NavigationMenuTrigger`);function Wm(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.left+n.width/2,a=n.top+n.height/2,o=r.left+r.width/2,s=r.top+r.height/2,c=o-i,l=s-a;return Math.abs(c)>=Math.abs(l)?c>=0?`right`:`left`:l>=0?`bottom`:`top`}function Gm(e,t,n){return{placement:Wm(e,t),elements:{domReference:e,floating:t},nodeId:n}}var Km=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Km.displayName=`NavigationMenuPortalContext`);function qm(){let e=m.useContext(Km);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(40):`Base UI: <NavigationMenu.Portal> is missing.`);return e}var Jm=m.forwardRef(function(e,t){let{keepMounted:r=!1,...i}=e,{mounted:a}=Sm();return a||r?(0,n.jsx)(Km.Provider,{value:r,children:(0,n.jsx)(Ko,{ref:t,...i})}):null});process.env.NODE_ENV!==`production`&&(Jm.displayName=`NavigationMenuPortal`);function Nae(e){return gd(e,xre)}var Ym=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Ym.displayName=`NavigationMenuPositionerContext`);function Xm(e=!1){let t=m.useContext(Ym);if(!t&&!e)throw Error(process.env.NODE_ENV===`production`?B(42):`Base UI: NavigationMenuPositionerContext is missing. NavigationMenuPositioner parts must be placed within <NavigationMenu.Positioner>.`);return t}var Pae=fc(),Zm=m.forwardRef(function(e,t){let{open:i,mounted:a,positionerElement:o,setPositionerElement:s,floatingRootContext:c,nested:l,transitionStatus:u}=Sm(),{className:d,render:f,anchor:p,positionMethod:h=`absolute`,side:g=`bottom`,align:_=`center`,sideOffset:v=0,alignOffset:y=0,collisionBoundary:b=`clipping-ancestors`,collisionPadding:x=5,collisionAvoidance:S=l?Bo:zo,arrowPadding:C=5,sticky:w=!1,disableAnchorTracking:T=!1,style:E,...D}=e,O=qm(),k=wm(),A=Hi(),j=Hi(),[M,N]=m.useState(i),P=m.useRef(i);m.useEffect(()=>{if(!o)return;function e(e){o&&mo(e)&&(e.type===`focusin`?go:ho)(o)}return ba(kn(o,`focusin`,e,!0),kn(o,`focusout`,e,!0))},[o]);let F=(c||Pae).useState(`domReferenceElement`),I=Nae({anchor:p??F,positionMethod:h,mounted:a,side:g,sideOffset:v,align:_,alignOffset:y,arrowPadding:C,collisionBoundary:b,collisionPadding:x,sticky:w,disableAnchorTracking:T,keepMounted:O,floatingRootContext:c,collisionAvoidance:S,shift:{rootBoundary:`layoutViewport`},nodeId:k,adaptiveOrigin:tp}),L={open:i,side:I.side,align:I.align,anchorHidden:I.anchorHidden,instant:M};m.useEffect(()=>{if(!i)return;P.current&&A.start(0,()=>{P.current=!1,j.isStarted()||N(!1)});function e(){r.flushSync(()=>{N(!0)}),j.start(100,()=>{N(!1)})}return kn(Zt(o),`resize`,e)},[i,A,j,o]);let R=yd(e,L,{styles:I.positionerStyles,transitionStatus:u,props:D,refs:[t,s],hidden:!a,inert:!i});return(0,n.jsx)(Ym.Provider,{value:I,children:R})});process.env.NODE_ENV!==`production`&&(Zm.displayName=`NavigationMenuPositioner`);var Fae=fc();function Qm({children:e}){let{beforeInsideRef:t,beforeOutsideRef:r,afterInsideRef:i,afterOutsideRef:a,positionerElement:o,viewportElement:s,floatingRootContext:c}=Sm(),l=!!Xm(!0),u=o||s;return!c&&!l?e:(0,n.jsxs)(m.Fragment,{children:[(0,n.jsx)(wa,{ref:t,onFocus:e=>{u&&mo(e,u)?lo(u)?.focus():r.current?.focus()}}),e,(0,n.jsx)(wa,{ref:i,onFocus:e=>{u&&mo(e,u)?uo(u)?.focus():a.current?.focus()}})]})}var $m=m.forwardRef(function(e,t){let{render:r,className:i,style:a,children:o,id:s,...c}=e,l=ze(s),{setViewportElement:u,setViewportTargetElement:d,floatingRootContext:f,prevTriggerElementRef:p,viewportInert:m,setViewportInert:h}=Sm(),g=!!Xm(!0),_=(f||Fae).useState(`domReferenceElement`);k(()=>{_&&(p.current=_)},[_,p]);let v=J(`div`,e,{ref:[t,u],props:[{id:l,onBlur(e){let t=e.relatedTarget,n=e.currentTarget;t&&!na(n,t)&&t!==_&&h(!0)},...!g&&m&&{inert:wl(!0)},children:g?o:(0,n.jsx)(Qm,{children:(0,n.jsx)(`div`,{ref:d,children:o})})},c]});return g?(0,n.jsx)(Qm,{children:v}):v});process.env.NODE_ENV!==`production`&&($m.displayName=`NavigationMenuViewport`);var eh=m.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{open:s,transitionStatus:c,setPopupElement:l}=Sm(),u=Xm(),d=Du(),f=Be(a),p={open:s,transitionStatus:c,side:u.side,align:u.align,anchorHidden:u.anchorHidden},m=u.side===`left`;m||=d===`rtl`?u.side===`inline-end`:u.side===`inline-start`;let h=u.side===`top`||m;return J(`nav`,e,{state:p,ref:[t,l],props:[{id:f,tabIndex:-1,style:h?{position:`absolute`,[u.side===`top`?`bottom`:`top`]:`0`,[m?`right`:`left`]:`0`}:{}},vd(c),o],stateAttributesMapping:rl})});process.env.NODE_ENV!==`production`&&(eh.displayName=`NavigationMenuPopup`);var th=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{open:o,transitionStatus:s}=Sm(),{arrowRef:c,side:l,align:u,arrowUncentered:d,arrowStyles:f}=Xm();return J(`div`,e,{state:{open:o,side:l,align:u,uncentered:d},ref:[t,c],props:[{style:f,"aria-hidden":!0},vd(s),a],stateAttributesMapping:nl})});process.env.NODE_ENV!==`production`&&(th.displayName=`NavigationMenuArrow`);var nh=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{value:o}=Lm(),{open:s,value:c}=Sm();return J(`span`,e,{state:{open:s&&c===o},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:el})});process.env.NODE_ENV!==`production`&&(nh.displayName=`NavigationMenuIcon`);var rh=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(rh.displayName=`NumberFieldRootContext`);function ih(){let e=m.useContext(rh);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(43):`Base UI: NumberFieldRootContext is missing. NumberField parts must be placed within <NumberField.Root>.`);return e}var ah={inputValue:()=>null,value:()=>null,...ou},Iae=`零〇一二三四五六七八九`,Lae=/[٠-٩۰-۹0-9]/g,Rae=/[零〇一二三四五六七八九]/g,zae=[`%`,`٪`,`%`,`﹪`],Bae=[`‰`,`؉`],Vae=/[%٪%﹪]/,Hae=/[‰؉]/,Uae=/[%٪%﹪]/g,Wae=/[‰؉]/g,Gae=/[٠-٩۰-۹]/,Kae=/[零〇一二三四五六七八九]/,qae=/[0-9٠-٩۰-۹0-9零〇一二三四五六七八九]/;function oh(e){return qae.test(e)}var Jae=[`.`,`,`,`.`,`,`,`٫`,`٬`],Yae=/\p{Zs}/u,Xae=/\p{Cf}/u,Zae=/\p{Cf}/gu,Qae=[`+`,`+`,`﹢`],$ae=[`-`,`−`,`-`,`‒`,`–`,`—`,`﹣`],sh=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);function ch(e,t){let[n,r=`0`]=String(e).split(`e`);return Number(`${n}e${Number(r)+t}`)}var lh=/[-−-‒–—﹣]/gu,uh=/[++﹢]/gu,dh=/[-−-‒–—﹣]/,fh=/[++﹢]/,eoe=11111.1;function ph(e,t){return pm(e,t).formatToParts(eoe)}function mh(e,t){let n=ph(e,t),r={};n.forEach(e=>{r[e.type]=e.value});let i=`.`;return pm(e).formatToParts(.1).forEach(e=>{e.type===`decimal`&&(i=e.value)}),{...r,decimal:i}}function hh(e,t,n){let r=e.replace(Zae,``).trim();r=r.replace(lh,`-`).replace(uh,`+`);let i=!1,a=(e,t)=>(t===`-`&&(i=!0),``);r=r.replace(/([+-])\s*$/,a).replace(/^\s*([+-])/,a);let o=t;o===void 0&&(Gae.test(r)?o=`ar`:Kae.test(r)&&(o=`zh`));let{group:s,decimal:c,currency:l,exponentSeparator:u}=mh(o,n),d=pm(o,n).formatToParts(1).filter(e=>e.type===`unit`).map(e=>sh(e.value)),f=d.length?new RegExp(d.join(`|`),`g`):null,p=null;s&&(p=/\p{Zs}/u.test(s)?/\p{Zs}/gu:s===`'`||s===`’`?/['’]/g:new RegExp(sh(s),`g`));let m=[[p,``],[new RegExp(sh(c),`g`),`.`],[/[.٫]/g,`.`],[/[,٬]/g,``],[l?new RegExp(sh(l),`g`):null,``],[f,``],[Uae,``],[Wae,``],[u?new RegExp(sh(u),`g`):null,`e`],[Lae,e=>String(e.charCodeAt(0)%16)],[Rae,e=>String(Math.max(Iae.indexOf(e)-1,0))]].reduce((e,[t,n])=>t?e.replace(t,n):e,r),h=m.lastIndexOf(`.`);if(h!==-1&&(m=`${m.slice(0,h).replace(/\./g,``)}.${m.slice(h+1).replace(/\./g,``)}`),/^[-+]?Infinity$/i.test(r)||r.includes(`∞`))return null;let g=(i?`-`:``)+m,_=parseFloat(g),v=n?.style,y=v===`unit`&&n?.unit===`percent`,b=Vae.test(e)||v===`percent`;return Hae.test(e)?_=ch(_,-3):!y&&b&&(_=ch(_,-2)),Number.isFinite(_)?_:null}var toe=1e-10,noe=1e-10;function gh(e){return e?.maximumFractionDigits!=null||e?.minimumFractionDigits!=null||e?.maximumSignificantDigits!=null||e?.minimumSignificantDigits!=null||e?.roundingIncrement!=null||e?.roundingMode!=null||e?.roundingPriority!=null}function _h(e,t){if(!Number.isFinite(e))return e;if(!gh(t)){let t=parseFloat(e.toPrecision(15));return Math.abs(t-e)<=Math.min(2**-52*Math.max(1,Math.abs(e)),noe)?t:e}let n=pm(`en-US`,{...t,signDisplay:`auto`,currencySign:`standard`,notation:t.notation===`compact`?`standard`:t.notation,useGrouping:!1}),r=n.format(e),i=hh(r,`en-US`,t);return i===null?e:n.format(i)===r?i:e}function roe(e,t,n,r){let i=Math.abs(n),a=Math.sign(n),o=i*toe*a,s=e-t+o;return r?t+Math.round(s/n)*n:t+(a>0?Math.floor(s/i):Math.ceil(s/i))*i}function ioe(e,t,n,r,i,a,o,s,c){if(e===null)return e;let l=e;if(t!=null&&o&&t!==0&&(l=roe(l,s||n===-(2**53-1)?i:n,t,s)),c&&(l=Cp(l,n,r)),t==null&&!gh(a))return l;let u=_h(l,a);return c?Cp(u,n,r):u}var vh=m.forwardRef(function(e,t){let{id:r,min:i,max:a,smallStep:o=.1,step:s=1,largeStep:c=10,required:l=!1,disabled:u=!1,readOnly:d=!1,form:f,name:p,defaultValue:h,value:g,onValueChange:v,onValueCommitted:y,allowWheelScrub:b=!1,snapOnStep:x=!1,allowOutOfRange:S=!1,format:C,locale:T,render:E,className:D,inputRef:O,style:A,...j}=e,{setDirty:M,validityData:N,disabled:P,setFilled:F,name:I,state:L,validation:R}=lu(),{clearErrors:z}=fu(),B=P||u,V=I??p,H=s===`any`?1:s,[W,G]=m.useState(!1),ee=i??-(2**53-1),K=a??2**53-1,te=i??0,q=C?.style,ne=m.useRef(null),re=U(O,R.inputRef),ie=hu({id:r}),[ae,oe]=_({controlled:g,default:h,name:`NumberField`,state:`value`}),se=ae??null,ce=An(se);k(()=>{F(se!==null)},[F,se]);let le=Js(),ue=An(C),de=m.useRef(!1),fe=w((e,t)=>{de.current=!1,y?.(e,t)}),pe=m.useRef(!0),me=m.useRef(null),[he,ge]=m.useState(()=>mm(se,T,C)),[_e,ve]=m.useState(`numeric`),ye=w(()=>{let e=ph(T,C),t=new Set(Jae),n=e=>e.forEach(e=>t.add(e)),r=e.find(e=>e.type===`decimal`)?.value??mh(T,C).decimal;t.add(r),e.forEach(e=>{e.type!==`integer`&&e.type!==`fraction`&&e.type!==`exponentInteger`&&e.type!==`compact`&&(n(Array.from(e.value)),Yae.test(e.value)&&t.add(` `))});let i=q===`percent`||q===`unit`&&C?.unit===`percent`,a=q===`percent`||q===`unit`&&C?.unit===`permille`;return i&&n(zae),a&&n(Bae),n(Qae),(ee<0||S)&&n($ae),t}),be=w(e=>e?.altKey?o:e?.shiftKey?c:H),xe=w((e,t)=>{let n=t.event,r=t.direction,i=t.reason.startsWith(`input-`)||t.reason===`none`,a=!S||!i,o=ioe(e,r?be(n)*r:void 0,ee,K,te,ue.current,x,n?.altKey??!1,a),s=o!==se||i&&(e!==se||pe.current===!1);if(s){if(v?.(o,t),t.isCanceled)return!1;oe(o),M(o!==N.initialValue),de.current=!0}return me.current=o,pe.current&&ge(mm(o,T,C)),le(),s}),Se=w((e,{direction:t,currentValue:n,event:r,reason:i})=>{let a=n??ce.current,o=r;return typeof a==`number`?xe(a+e*t,Y(i,o,void 0,{direction:t})):xe(0,Y(i,o))});k(function(){if(!pe.current)return;let e=mm(se,T,C);e!==he&&ge(e)}),k(function(){if(!ji)return;let e=`text`;ee>=0&&(e=`decimal`),ve(e)},[ee]),m.useEffect(function(){let e=ne.current;if(B||d||!b||!e)return;function t(e){if(e.ctrlKey||ta(Cn(ne.current))!==ne.current)return;e.preventDefault(),pe.current=!0;let t=be(e);Se(t,{direction:e.deltaY>0?-1:1,event:e,reason:`wheel`})&&fe(me.current,xt(dt,e))}return kn(e,`wheel`,t)},[b,Se,B,d,be,fe,me,ce]);let Ce=m.useMemo(()=>({...L,disabled:B,readOnly:d,required:l,value:se,inputValue:he,scrubbing:W}),[L,B,d,l,se,he,W]),we=m.useMemo(()=>({inputRef:ne,minWithDefault:ee,maxWithDefault:K,id:ie,setValue:xe,incrementValue:Se,getStepAmount:be,allowInputSyncRef:pe,formatOptionsRef:ue,valueRef:ce,lastChangedValueRef:me,hasPendingCommitRef:de,name:V,nameProp:p,inputMode:_e,getAllowedNonNumericKeys:ye,min:i,max:a,setInputValue:ge,locale:T,setIsScrubbing:G,state:Ce,onValueCommitted:fe}),[ne,ee,K,ie,xe,Se,be,ue,ce,V,p,_e,ye,i,a,ge,T,Ce,fe]),Te=J(`div`,e,{ref:t,state:Ce,props:j,stateAttributesMapping:ah});return(0,n.jsxs)(rh.Provider,{value:we,children:[Te,(0,n.jsx)(`input`,{...R.getValidationProps(B,{onFocus(){ne.current?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||B||d)return;let t=e.currentTarget.valueAsNumber,n=Number.isNaN(t)?null:t,r=Y(Ve,e.nativeEvent);xe(n,r),z(V),R.change(me.current??n)}}),ref:re,type:`number`,form:f,name:V,value:se??``,min:i,max:a,step:s,disabled:B,readOnly:d,required:l,"aria-hidden":!0,tabIndex:-1,style:V?Ca:Sa,suppressHydrationWarning:!0})]})});process.env.NODE_ENV!==`production`&&(vh.displayName=`NumberFieldRoot`);var yh=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=ih();return J(`div`,e,{ref:t,state:o,props:[{role:`group`},a],stateAttributesMapping:ah})});process.env.NODE_ENV!==`production`&&(yh.displayName=`NumberFieldGroup`);var bh=0,aoe=class e extends Vi{static create(){return new e}start(e,t){this.clear(),this.currentId=setInterval(()=>{t()},e)}clear=()=>{this.currentId!==bh&&(clearInterval(this.currentId),this.currentId=bh)}};function ooe(){let e=x(aoe.create).current;return St(e.disposeEffect),e}var soe=60,coe=400,loe=8,uoe=50,doe=3;function xh(e){return e===`touch`||e===`pen`}function foe(e){let{disabled:t,tick:n,onStop:r,tickDelay:i=soe,startDelay:a=coe,scrollDistance:o=loe,elementRef:s}=e,c=Hi(),l=ooe(),u=Hi(),d=m.useRef(!1),f=m.useRef(0),p=m.useRef({x:0,y:0}),h=m.useRef(!1),g=m.useRef(!1),_=m.useRef(``),v=m.useRef(ae),y=m.useRef(ae),b=w(()=>{u.clear(),c.clear(),l.clear(),v.current(),f.current=0});function x(e){b();let t=s.current;if(!t)return;let o=Zt(t);function u(e){e.preventDefault()}if(v.current=kn(o,`contextmenu`,u),y.current(),y.current=kn(o,`pointerup`,e=>{d.current=!1,b(),r?.(e)},{once:!0}),!n(e)){b();return}c.start(a,()=>{l.start(i,()=>{n(e)||b()})})}return m.useEffect(()=>()=>{b(),y.current()},[b]),{pointerHandlers:{onTouchStart(){h.current=!0},onTouchEnd(){h.current=!1},onPointerDown(e){e.defaultPrevented||e.button||t||(_.current=e.pointerType,g.current=!1,d.current=!0,p.current={x:e.clientX,y:e.clientY},xh(e.pointerType)?u.start(uoe,()=>{let t=f.current;f.current=0,d.current&&t<doe?(x(e.nativeEvent),g.current=!0):(g.current=!1,b())}):(e.preventDefault(),x(e.nativeEvent)))},onPointerUp(e){xh(e.pointerType)&&(d.current=!1)},onPointerMove(e){if(t||!xh(e.pointerType)||!d.current)return;f.current+=1;let{x:n,y:r}=p.current,i=n-e.clientX,a=r-e.clientY;i**2+a**2>o**2&&b()},onMouseEnter(e){e.defaultPrevented||t||!d.current||h.current||xh(_.current)||x(e.nativeEvent)},onMouseLeave(){h.current||b()},onMouseUp(){h.current||b()}},shouldSkipClick:w(e=>e.defaultPrevented?!0:xh(_.current)?g.current:e.detail!==0)}}var poe={WebkitUserSelect:`none`,userSelect:`none`};function Sh(e,t,n){let{render:r,className:i,disabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{allowInputSyncRef:l,formatOptionsRef:u,getStepAmount:d,id:f,incrementValue:p,inputRef:m,maxWithDefault:h,minWithDefault:g,setValue:_,state:v,valueRef:y,locale:b,lastChangedValueRef:x,onValueCommitted:S}=ih(),{disabled:C,readOnly:w,value:T,inputValue:E}=v,D=a||C||T!=null&&(n?T>=h:T<=g),O=n?Ze:Qe;function k(e){let t=!l.current;if(l.current=!0,!t){x.current=y.current;return}let n=hh(E,b,u.current);if(n!==null){let t=Y(O,e);_(n,t),t.isCanceled||(y.current=n)}}let{pointerHandlers:A,shouldSkipClick:j}=foe({disabled:D||w,elementRef:m,tick(e){let t=d(e);return p(t,{direction:n?1:-1,event:e,reason:O})},onStop(e){let t=x.current??y.current;S(t,xt(O,e))}}),M={disabled:D,"aria-label":n?`Increase`:`Decrease`,"aria-controls":f,tabIndex:-1,style:poe,...A,onClick(e){let t=D||w;if(e.defaultPrevented||t||j(e))return;k(e.nativeEvent);let r=d(e),i=y.current;p(r,{direction:n?1:-1,event:e.nativeEvent,reason:O});let a=x.current??y.current;a!==i&&S(a,xt(O,e.nativeEvent))},onPointerDown(e){e.defaultPrevented||w||e.button||D||(k(e.nativeEvent),x.current=null,xh(e.pointerType)||m.current?.focus(),A.onPointerDown(e))}},{getButtonProps:N,buttonRef:P}=Tn({disabled:D||w,native:o,focusableWhenDisabled:!0}),F={...v,disabled:D};return J(`button`,e,{ref:[t,P],state:F,props:[M,c,N],stateAttributesMapping:ah})}var Ch=m.forwardRef(function(e,t){return Sh(e,t,!0)});process.env.NODE_ENV!==`production`&&(Ch.displayName=`NumberFieldIncrement`);var wh=m.forwardRef(function(e,t){return Sh(e,t,!1)});process.env.NODE_ENV!==`production`&&(wh.displayName=`NumberFieldDecrement`);var moe=new Set([`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`Tab`,`Enter`,`Escape`]),Th=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{allowInputSyncRef:o,formatOptionsRef:s,getAllowedNonNumericKeys:c,getStepAmount:l,id:u,incrementValue:d,inputMode:f,max:p,min:h,name:g,nameProp:_,setValue:v,state:b,setInputValue:x,locale:S,inputRef:C,onValueCommitted:w,lastChangedValueRef:T,hasPendingCommitRef:E,valueRef:D}=ih(),{disabled:A,readOnly:j,required:M,value:N,inputValue:P}=b,{clearErrors:F}=fu(),{validationMode:I,setTouched:L,setFocused:R,invalid:z,shouldValidateOnChange:B,validation:V}=lu(),{labelId:H}=mu(),U=m.useRef(!1),W=m.useRef(!1),G=m.useRef(null);return uu(C,u,N,void 0,!A,_),k(()=>{if(G.current!=null){let e=G.current;G.current=null,C.current?.setSelectionRange(e,e)}}),kl(N,()=>{if(F(g),W.current&&!B()){W.current=!1;return}V.change(N)}),J(`input`,e,{ref:[t,C],state:b,props:[{id:u,required:M,disabled:A,readOnly:j,inputMode:f,value:P,type:`text`,autoComplete:`off`,autoCorrect:`off`,spellCheck:`false`,"aria-roledescription":`Number field`,"aria-invalid":!A&&z?!0:void 0,"aria-labelledby":H,suppressHydrationWarning:!0,onFocus(e){if(e.defaultPrevented||A||(R(!0),U.current))return;U.current=!0;let t=e.currentTarget,n=t.value.length;t.setSelectionRange(n,n)},onBlur(e){if(e.defaultPrevented||A||(L(!0),R(!1),j))return;let t=!o.current,n=E.current;if(o.current=!0,P.trim()===``){let r=Y(et,e.nativeEvent);if(v(null,r),r.isCanceled)return;I===`onBlur`&&V.commit(null),(t||n||N!==null)&&w(null,xt(et,e.nativeEvent));return}let r=s.current,i=hh(P,S,r);if(i===null)return;let a=gh(r),c;c=!t&&!a?N:a?_h(i,r):i;let l=xt(tt,e.nativeEvent),u=N!==c,d=t||u||n,f=c;if(u){let t=Y(tt,e.nativeEvent);if(W.current=!0,v(c,t),t.isCanceled){W.current=!1;return}f=T.current,f===N&&(W.current=!1)}I===`onBlur`&&V.commit(f),d&&w(f,l);let p=mm(f,S,r);P!==p&&x(p)},onChange(e){if(e.nativeEvent.defaultPrevented)return;o.current=!1;let t=e.currentTarget.value;if(t.trim()===``){x(t),v(null,Y(et,e.nativeEvent));return}let n=c();if(!Array.from(t).every(e=>oh(e)||dh.test(e)||n.has(e)||Xae.test(e)))return;let r=hh(t,S,s.current);x(t),r!==null&&v(r,Y($e,e.nativeEvent))},onKeyDown(e){if(e.defaultPrevented||j||A)return;let t=e.nativeEvent,n=!o.current,r=c(),i=r.has(e.key),{decimal:a,currency:u,percentSign:f}=mh(S,s.current),m=e.currentTarget.selectionStart,g=e.currentTarget.selectionEnd,_=m===0&&g===P.length,y=e=>m!=null&&g!=null&&e>=m&&e<g;[[dh,lh],[fh,uh]].forEach(([t,n])=>{if(t.test(e.key)&&Array.from(r).some(e=>t.test(e))){let e=P.search(n),t=e!==-1&&y(e);i=!(dh.test(P)||fh.test(P))||_||t}}),[a,u,f].forEach(t=>{if(e.key===t){let e=P.indexOf(t),n=y(e);i=e===-1||_||n}});let b=moe.has(e.key),x=e.key===`ArrowUp`||e.key===`ArrowDown`;if(e.which===229||e.altKey&&!x||e.ctrlKey||e.metaKey||i||oh(e.key)||b)return;let C=null;if(e.key===`Home`&&h!=null?C=h:e.key===`End`&&p!=null&&(C=p),e.key.length>1&&!x&&C===null)return;let E=n?hh(P,S,s.current):null,O=l(e);e.preventDefault(),e.stopPropagation();let k=xt(ct,t),M=!1;(x||C!==null)&&(o.current=!0),x?(n||(T.current=D.current),M=d(O,{direction:e.key===`ArrowUp`?1:-1,currentValue:E,event:t,reason:ct})):C!==null&&(M=v(C,Y(ct,t))),M&&w(T.current,k)},onPaste(e){if(e.defaultPrevented||j||A)return;let t=``;try{t=e.clipboardData?.getData(`text/plain`)??``}catch{process.env.NODE_ENV!==`production`&&O(`<NumberField.Input> could not read clipboard text during paste handling.`,y.captureOwnerStack?.()||``);return}e.preventDefault();let n=e.currentTarget,r=n.selectionStart,i=n.selectionEnd,a=P.slice(0,r)+t+P.slice(i),c=hh(a,S,s.current);c!==null&&(o.current=!1,G.current=r+t.length,v(c,Y(nt,e.nativeEvent)),x(a))}},a,e=>V.getValidationProps(A,e)],stateAttributesMapping:ah})});process.env.NODE_ENV!==`production`&&(Th.displayName=`NumberFieldInput`);var Eh=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Eh.displayName=`NumberFieldScrubAreaContext`);function hoe(){let e=m.useContext(Eh);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(44):`Base UI: NumberFieldScrubAreaContext is missing. NumberFieldScrubArea parts must be placed within <NumberField.ScrubArea>.`);return e}function goe(e,t){let n=Zt(t);if(e!=null){let n=t.getBoundingClientRect();return{left:n.left-e/2,top:n.top-e/2,right:n.right+e/2,bottom:n.bottom+e/2}}let r=n.visualViewport;return r?{left:r.offsetLeft,top:r.offsetTop,right:r.offsetLeft+r.width,bottom:r.offsetTop+r.height}:{left:0,top:0,right:n.document.documentElement.clientWidth,bottom:n.document.documentElement.clientHeight}}var _oe={touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`},Dh=m.forwardRef(function(e,t){let{render:i,className:a,direction:o=`horizontal`,pixelSensitivity:s=2,teleportDistance:c,style:l,...u}=e,{state:d,setIsScrubbing:f,inputRef:p,incrementValue:h,allowInputSyncRef:g,getStepAmount:_,onValueCommitted:v,lastChangedValueRef:y,valueRef:b}=ih(),{disabled:x,readOnly:S}=d,C=m.useRef(null),T=m.useRef(!1),E=m.useRef(!1),D=m.useRef(null),O=m.useRef(null),k=m.useRef({x:0,y:0}),A=Hi(),[j,M]=m.useState(!1),[N,P]=m.useState(!1),[F,I]=m.useState(!1);function L(e,t,n){let r=Zt(e).visualViewport?.scale??1;e.style.transform=`translate3d(${t}px,${n}px,0) scale(${1/r})`}let R=w(({movementX:e,movementY:t})=>{let n=O.current,r=C.current;if(!n||!r)return;let i=goe(c,r),a=k.current,o=(e,t,n,r)=>e+t<n?r-t:e+t>r?n-t:e,s={x:o(Math.round(a.x+e),n.offsetWidth/2,i.left,i.right),y:o(Math.round(a.y+t),n.offsetHeight/2,i.top,i.bottom)};k.current=s,L(n,s.x,s.y)}),z=w((e,{clientX:t,clientY:n})=>{r.flushSync(()=>{I(e),f(e)});let i=O.current;if(!i||!e)return;let a={x:t-i.offsetWidth/2,y:n-i.offsetHeight/2};k.current=a,L(i,a.x,a.y)});m.useEffect(function(){if(!p.current||x||S||!F)return;let e=0;function t(e){function t(){try{Cn(C.current).exitPointerLock()}catch{}finally{T.current=!1,z(!1,e),v(y.current??b.current,xt(ft,e));let t=D.current,n=p.current;!E.current&&t!=null&&n&&t.dispatchEvent(new(Zt(n)).MouseEvent(`click`,{bubbles:!0,cancelable:!0})),E.current=!1,D.current=null}}Li?A.start(20,t):t()}function n(t){if(!T.current)return;t.preventDefault(),R(t);let{movementX:n,movementY:r}=t;if(e+=o===`vertical`?r:n,Math.abs(e)>=s){e=0,E.current=!0;let i=(o===`vertical`?-r:n)*_(t);i!==0&&(g.current=!0,h(Math.abs(i),{direction:i>=0?1:-1,event:t,reason:ft}))}}let r=Zt(p.current),i=ba(kn(r,`pointerup`,t,!0),kn(r,`pointermove`,n,!0));return()=>{A.clear(),i()}},[x,S,g,h,F,_,p,z,R,o,s,y,v,b,A]),m.useEffect(()=>()=>{if(T.current){T.current=!1,f(!1);try{Cn(C.current).exitPointerLock()}catch{}}},[f]),m.useEffect(function(){let e=C.current;if(!e||x||S)return;function t(e){e.touches.length===1&&e.preventDefault()}return kn(e,`touchstart`,t)},[x,S]);let B=J(`span`,e,{ref:[t,C],state:d,props:[{role:`presentation`,style:_oe,async onPointerDown(e){if(e.defaultPrevented||S||e.button||x)return;let t=e.pointerType===`touch`;if(M(t),e.pointerType===`mouse`&&(e.preventDefault(),p.current?.focus()),T.current=!0,E.current=!1,D.current=ra(e.nativeEvent),z(!0,e.nativeEvent),!t&&!Ii)try{await Cn(C.current).body.requestPointerLock(),P(!1)}catch{P(!0)}finally{T.current&&z(!0,e.nativeEvent)}}},u],stateAttributesMapping:ah}),V=m.useMemo(()=>({isScrubbing:F,isTouchInput:j,isPointerLockDenied:N,scrubAreaCursorRef:O}),[F,j,N]);return(0,n.jsx)(Eh.Provider,{value:V,children:B})});process.env.NODE_ENV!==`production`&&(Dh.displayName=`NumberFieldScrubArea`);var voe={position:`fixed`,top:0,left:0,pointerEvents:`none`},Oh=m.forwardRef(function(e,t){let{render:n,className:i,style:a,...o}=e,{state:s}=ih(),{isScrubbing:c,isTouchInput:l,isPointerLockDenied:u,scrubAreaCursorRef:d}=hoe(),[f,p]=m.useState(null),h=J(`span`,e,{enabled:c&&!Ii&&!l&&!u,ref:[t,d,p],state:s,props:[{role:`presentation`,style:voe},o],stateAttributesMapping:ah});return h&&r.createPortal(h,Cn(f).body)});process.env.NODE_ENV!==`production`&&(Oh.displayName=`NumberFieldScrubAreaCursor`);var kh=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(kh.displayName=`OTPFieldRootContext`);function yoe(){let e=m.useContext(kh);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(98):`Base UI: OTPFieldRootContext is missing. OTPField parts must be placed within <OTPField.Root>.`);return e}function boe(e,t,n){return{...e,value:t,index:n,filled:t!==``}}var xoe={value:()=>null,length:()=>null,...ou},Soe={value:()=>null,index:()=>null,...ou},Coe={numeric:{slotPattern:`\\d{1}`,getRootPattern:e=>`\\d{${e}}`,regexp:/[^\d]/g,inputMode:`numeric`},alpha:{slotPattern:`[a-zA-Z]{1}`,getRootPattern:e=>`[a-zA-Z]{${e}}`,regexp:/[^a-zA-Z]/g,inputMode:`text`},alphanumeric:{slotPattern:`[a-zA-Z0-9]{1}`,getRootPattern:e=>`[a-zA-Z0-9]{${e}}`,regexp:/[^a-zA-Z0-9]/g,inputMode:`text`}};function Ah(e){return e===`none`?null:Coe[e]}function woe(e){return(e??``).replace(/\s/g,``)}function jh(e,t){return t?e.replace(t.regexp,``):e}function Mh(e,t,n,r){let i=woe(e),a=Ah(n),o=jh(i,a),s=i.length>o.length;if(r){let e=r(o);s||=o.length>e.length,o=jh(e,a),s||=e.length>o.length}let c=t<0?0:t,l=Array.from(o);return[l.slice(0,c).join(``),s||l.length>c]}function Nh(e,t,n,r){return Mh(e,t,n,r)[0]}function Ph(e,t,n,r,i,a){let o=Nh(n,r,i,a);return Nh(`${e.slice(0,t)}${o}${e.slice(t+o.length)}`,r,i,a)}function Fh(e,t){return t<0||t>=e.length?e:`${e.slice(0,t)}${e.slice(t+1)}`}var Ih=m.forwardRef(function(e,t){let{"aria-describedby":r,"aria-labelledby":i,id:a,autoComplete:o=`one-time-code`,defaultValue:s,value:c,onValueChange:l,onValueComplete:u,form:d,length:f,autoSubmit:p=!1,mask:h=!1,inputMode:g,validationType:v=`numeric`,normalizeValue:y,disabled:b=!1,readOnly:x=!1,required:S=!1,name:C,onValueInvalid:T,render:E,className:D,style:O,...A}=e,{setDirty:j,validityData:N,disabled:P,setFilled:F,invalid:I,name:L,state:R,validation:z,validationMode:B,setFocused:V,setTouched:H}=lu(),{clearErrors:U}=fu(),{getDescriptionProps:W,labelId:G}=mu(),ee=P||b,K=L??C,[te,q]=_({controlled:c,default:s,name:`OTPField`,state:`value`}),ne=m.useRef(null),re=m.useRef([]),ie=m.useRef(null),ae=m.useRef(null),oe=m.useMemo(()=>({get current(){return re.current[0]??null}}),[]),se=hu({id:a}),ce=Wd(i,G,oe,!0,se),le=i==null?ce:void 0,ue=Toe(r,W({})[`aria-describedby`]),de=Ah(v),fe=de?.slotPattern,pe=de?.getRootPattern(f),me=g??de?.inputMode,he=Number.isInteger(f)&&f>0,ge=Nh(te,f,v,y),_e=An(ge),ve=ge!==``,[ye,be]=m.useState(0),[xe,Se]=m.useState(()=>Math.min(ge.length,f-1)),[Ce,we]=m.useState(!1),Te=Ce?Math.min(xe,Math.max(f-1,0)):Math.min(ge.length,f-1);k(()=>{F(ve)},[ve,F]),process.env.NODE_ENV!==`production`&&Eoe({inputCount:ye,length:f}),uu(oe,se,ge,void 0,!ee,C);let Ee=w(e=>{let t=Math.min(Math.max(e,0),Math.max(re.current.length-1,0)),n=re.current[t];n?.focus(),n?.select()}),De=w((e,t)=>{ie.current={index:e,value:t}});function Oe(){let e=z.inputRef.current?.form??re.current[0]?.form??null;if(d){let t=Cn(ne.current).getElementById(d);t?.tagName===`FORM`&&(e=t)}e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}function ke(e,t){u?.(e,t),p&&Oe()}kl(ge,()=>{U(K),j(ge!==N.initialValue),z.change(ge);let e=ie.current;e!=null&&(ie.current=null,e.value===ge&&Ee(e.index));let t=ae.current;t!=null&&(ae.current=null,t.value===ge&&ke(ge,t.eventDetails))});let Ae=w((e,t)=>{let n=Nh(e,f,v,y),r=(t.reason===`input-change`||t.reason===`input-paste`)&&n.length===f&&(_e.current.length!==f||t.reason===`input-paste`)?xt(t.reason,t.event):null;return n===_e.current?(r!=null&&ke(n,r),null):(l?.(n,t),t.isCanceled?null:(q(n),r==null?n.length!==f&&(ae.current=null):ae.current={value:n,eventDetails:r},n))}),je=w((e,t)=>{T?.(e,t)}),Me=w((e,t)=>{if(e>_e.current.length){Ee(Math.min(_e.current.length,f-1));return}Se(e),we(!0),V(!0),t.currentTarget.select()}),Ne=w(e=>{na(ne.current,e.relatedTarget)||(H(!0),we(!1),V(!1),B===`onBlur`&&z.commit(_e.current))}),Pe=m.useCallback(e=>{if(se!=null)return e===0?se:`${se}-${e+1}`},[se]),Fe=m.useMemo(()=>({...R,complete:ge.length===f,disabled:ee,filled:ve,focused:Ce,length:f,readOnly:x,required:S,value:ge}),[ee,R,ve,Ce,f,x,S,ge]),Ie=m.useMemo(()=>({autoComplete:o,activeIndex:Te,disabled:ee,form:d,focusInput:Ee,queueFocusInput:De,getInputId:Pe,handleInputBlur:Ne,handleInputFocus:Me,inputMode:me,inputAriaLabelledBy:le,invalid:I,length:f,mask:h,pattern:fe,reportValueInvalid:je,readOnly:x,required:S,normalizeValue:y,setValue:Ae,state:Fe,validationType:v,value:ge}),[Te,o,ee,Ee,d,Pe,Ne,Me,me,le,I,f,h,fe,De,x,je,S,y,Ae,Fe,v,ge]),Le=J(`div`,e,{ref:[t,ne],state:Fe,props:[{role:`group`,"aria-describedby":ue,"aria-labelledby":ce},A],stateAttributesMapping:xoe});return(0,n.jsx)(M,{elementsRef:re,onMapChange:e=>{be(e.size)},children:(0,n.jsxs)(kh.Provider,{value:Ie,children:[Le,he&&(0,n.jsx)(`input`,{...z.getValidationProps(ee,{onFocus(){Ee(0)},onChange(e){if(e.nativeEvent.defaultPrevented||ee||x)return;let t=e.currentTarget.value,[n,r]=Mh(t,f,v,y);r&&je(t,xt(`input-change`,e.nativeEvent));let i=Ae(n,Y(`input-change`,e.nativeEvent));i!=null&&i!==``&&De(i.length-1,i)}}),ref:z.inputRef,type:`text`,id:se&&K==null?`${se}-hidden-input`:void 0,form:d,name:K,value:ge,autoComplete:o,inputMode:me,minLength:f,maxLength:f,pattern:pe,disabled:ee,readOnly:x,required:S,"aria-hidden":!0,tabIndex:-1,style:K?Ca:Sa})]})})});process.env.NODE_ENV!==`production`&&(Ih.displayName=`OTPFieldRoot`);function Toe(...e){let t=e.flatMap(e=>e?.split(/\s+/).filter(Boolean)??[]);return t.length>0?Array.from(new Set(t)).join(` `):void 0}function Eoe(e){let{inputCount:t,length:n}=e;m.useEffect(()=>{if(!Number.isInteger(n)||n<=0||t===0||t===n)return;let e=y.captureOwnerStack?.()||``;O(`<OTPField.Root> \`length\` must match the number of rendered <OTPField.Input /> parts. Received \`length={${n}}\` but rendered ${t} input${t===1?``:`s`}.`,e)},[t,n]),m.useEffect(()=>{if(Number.isInteger(n)&&n>0)return;let e=y.captureOwnerStack?.()||``;O(`<OTPField.Root> \`length\` must be a positive integer. Received \`length={${String(n)}}\`.`,e)},[n])}var Lh=m.forwardRef(function(e,t){let{"aria-label":n,"aria-labelledby":r,render:i,className:a,style:o,...s}=e,{activeIndex:c,autoComplete:l,disabled:u,form:d,focusInput:f,queueFocusInput:p,getInputId:h,handleInputBlur:g,handleInputFocus:_,inputMode:v,inputAriaLabelledBy:b,invalid:x,length:S,mask:C,pattern:w,reportValueInvalid:T,readOnly:E,required:D,normalizeValue:k,setValue:A,state:j,validationType:M,value:N}=yoe(),{ref:P,index:F}=Mt({guess:!0}),I=m.useRef(null),L=Du(),R=N[F]??``,z=boe(j,R,F),B=n,V=r??b,H=F===0?void 0:B;process.env.NODE_ENV!==`production`&&m.useEffect(()=>{F!==0||B==null||I.current?.labels?.length||O("<OTPField.Input> ignores `aria-label` on the first input. Use a `<label>` or `<Field.Label>` to label the OTP field.",y.captureOwnerStack?.()||``)},[F,B]);let U={id:h(F),value:R,type:C?`password`:`text`,inputMode:v,autoComplete:F===0?l:`off`,autoCorrect:`off`,spellCheck:`false`,enterKeyHint:F===S-1?`done`:`next`,maxLength:F===0?S:void 0,tabIndex:c===F?0:-1,disabled:u,form:d,pattern:w,readOnly:E,required:D,"aria-labelledby":H==null?V:void 0,"aria-invalid":!u&&x?!0:void 0,"aria-label":H,onMouseDown(e){e.defaultPrevented||u||(e.preventDefault(),f(F))},onFocus(e){e.defaultPrevented||u||_(F,e)},onBlur(e){e.defaultPrevented||g(e)},onChange(e){if(e.defaultPrevented||u||E)return;let t=e.currentTarget.value,[n,r]=Mh(t,S,M,k);if(r&&T(t,xt($e,e.nativeEvent)),n===``){t===``?A(Fh(N,F),Y(et,e.nativeEvent)):R!==``&&(e.currentTarget.value=R,e.currentTarget.select());return}let i=Ph(N,F,n,S,M,k),a=A(i,Y($e,e.nativeEvent));if(a!=null){let e=Math.min(F+n.length,S-1);p(e,a)}},onKeyDown(e){if(e.defaultPrevented||u)return;let t=Math.max(S-1,0),n=Math.min(N.length,t),r=(e.ctrlKey||e.metaKey)&&!e.altKey,i=L===`rtl`,a=i?`ArrowRight`:`ArrowLeft`,o=i?`ArrowLeft`:`ArrowRight`;if(e.key===a){Yi(e),f(r?0:Math.max(0,F-1));return}if(e.key===o){Yi(e),f(r?n:Math.min(t,F+1));return}if(e.key===`Home`||e.key===`ArrowUp`){Yi(e),f(0);return}if(e.key===`End`||e.key===`ArrowDown`){Yi(e),f(n);return}if(E)return;function s(t,n){let r=A(t,Y(ct,e.nativeEvent));r!=null&&p(n,r)}if(e.key===`Backspace`&&r){Yi(e),s(``,0);return}if(e.key===`Delete`){Yi(e),s(Fh(N,F),F);return}let c=e.currentTarget.value,l=e.currentTarget.selectionStart===0&&e.currentTarget.selectionEnd===c.length;if(e.key.length===1&&l&&R===e.key){Yi(e),F<S-1&&f(F+1);return}if(e.key===`Backspace`){Yi(e);let t=Math.max(0,F-1);s(Fh(N,R===``?t:F),t)}},onPaste(e){if(e.defaultPrevented||u||E)return;let t=``;try{t=e.clipboardData?.getData(`text/plain`)??``}catch{process.env.NODE_ENV!==`production`&&O(`<OTPField.Input> could not read clipboard text during paste handling.`,y.captureOwnerStack?.()||``);return}e.preventDefault();let[n,r]=Mh(t,S,M,k);if(r&&T(t,xt(nt,e.nativeEvent)),n===``)return;let i=A(Ph(N,F,n,S,M,k),Y(nt,e.nativeEvent));if(i!=null){let e=Math.min(F+n.length,S-1);p(e,i)}}};return J(`input`,e,{ref:[t,P,I],state:z,props:[U,s],stateAttributesMapping:Soe})});process.env.NODE_ENV!==`production`&&(Lh.displayName=`OTPFieldInput`);var Rh=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Rh.displayName=`PopoverRootContext`);function zh(e){let t=m.useContext(Rh);if(t===void 0&&!e)throw Error(process.env.NODE_ENV===`production`?B(47):`Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>.`);return t}var Bh={...yc,disabled:e=>e.disabled,instantType:e=>e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,modal:e=>e.modal,focusManagerModal:e=>e.focusManagerModal,stickIfOpen:e=>e.stickIfOpen,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Doe=class extends qs{constructor(e,t,n){let r=new dc;super(Vh(e,r,t,n),Hh(r),Bh)}setOpen=(e,t)=>{let n=t.reason===Ue,i=t.reason===`trigger-press`&&t.event.detail===0,a=!e&&(t.reason===`escape-key`||t.reason==null),o=rc(t),s=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&s!=null&&(t.trigger=this.context.triggerElements.getById(s)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let c=()=>{let n={open:e,openChangeReason:t.reason};nc(n,e,t.trigger,o()),this.update(n)};n?(this.set(`stickIfOpen`,!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set(`stickIfOpen`,!1)}),r.flushSync(c)):c();let l;i?l=`click`:a?l=`dismiss`:t.reason===`focus-out`&&(l=`focus`),this.set(`instantType`,l)}};function Ooe(){let e=new dc,t=new Kc(Object.freeze(Vh(void 0,e)),Object.freeze(Hh(e)),Bh);return Object.assign(t,{setOpen:ae})}function Vh(e,t,n,r=!1){let i={...pc(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i.floatingRootContext=mc(t,n,r),i}function Hh(e){return{popupRef:m.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:m.createRef(),beforeContentFocusGuardRef:m.createRef(),stickIfOpenTimeout:new Vi,triggerElements:e}}function Uh({props:e}){let{children:t,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,modal:s=!1,handle:c,triggerId:l,defaultTriggerId:u=null}=e,d=Aoe(c,{modal:s,open:i,openProp:r,activeTriggerId:u,triggerIdProp:l});d.useControlledProp(`openProp`,r),d.useControlledProp(`triggerIdProp`,l);let f=d.useState(`open`),p=d.useState(`mounted`),h=d.useState(`payload`);d.useContextCallback(`onOpenChange`,a),d.useContextCallback(`onOpenChangeComplete`,o),lc(d,f),oc(d);let{forceUnmount:g}=sc(f,d,()=>{d.update({stickIfOpen:!0,openChangeReason:null})});d.useSyncedValues({modal:s}),m.useEffect(()=>{f||d.context.stickIfOpenTimeout.clear()},[d,f]),m.useImperativeHandle(e.actionsRef,()=>({unmount:g,close:()=>d.setOpen(!1,Y(vt))}),[g,d]);let _=f||p;return(0,n.jsxs)(Rh.Provider,{value:d,children:[c&&(0,n.jsx)(ec,{handle:c,store:d}),_&&(0,n.jsx)(joe,{store:d,modal:s}),typeof t==`function`?t({payload:h}):t]})}function koe(e){return zh(!0)?(0,n.jsx)(Uh,{props:e}):(0,n.jsx)(ts,{children:(0,n.jsx)(Uh,{props:e})})}function Aoe(e,t){let n=$s((e,n)=>new Doe(t,e,n));return m.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function joe({store:e,modal:t}){let n=us(e.useState(`floatingRootContext`),{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),r=n.reference,i=n.floating;return cc(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:i}),null}var Wh=m.forwardRef(function(e,t){let{render:r,className:i,style:a,disabled:o=!1,nativeButton:s=!0,handle:c,payload:l,openOnHover:u=!1,delay:d=300,closeDelay:f=0,id:p,...h}=e,g=zh(!0),_=bc(c)??g;if(!_)throw Error(process.env.NODE_ENV===`production`?B(74):`Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle.`);let v=Be(p),y=_.useState(`isTriggerActive`,v),b=_.useState(`floatingRootContext`),x=_.useState(`isOpenedByTrigger`,v),S=_.useState(`triggerPopupId`,v),C=m.useRef(null),{registerTrigger:w,isMountedByThisTrigger:T}=ac(v,C,_,{payload:l,disabled:o,openOnHover:u,closeDelay:f}),E=_.useState(`openChangeReason`),D=_.useState(`stickIfOpen`),O=_.useState(`openMethod`),k=_.useState(`focusManagerModal`),A=Ac(b,{enabled:!o&&u&&(O!==`touch`||E!==`trigger-press`),mouseOnly:!0,move:!1,handleClose:Hc(),restMs:d,delay:{close:f},triggerElementRef:C,isActiveTrigger:y,isClosing:()=>_.select(`transitionStatus`)===`ending`}),j=cs(b,{stickIfOpen:D}),M=Al(()=>_.select(`open`),e=>{_.set(`openMethod`,e)}),N=_.useState(`triggerProps`,T),{getButtonProps:P,buttonRef:F}=Tn({disabled:o,native:s}),I={open(e){return e&&E===`trigger-press`?tl.open(e):el.open(e)}},{preFocusGuardRef:L,handlePreFocusGuardFocus:R,handleFocusTargetFocus:z}=qf(_,C),V=J(`button`,e,{state:{disabled:o,open:x},ref:[F,t,w,C],props:[j.reference,A,N,M,{[Po]:``,id:v,"aria-haspopup":`dialog`,"aria-expanded":x,"aria-controls":S},h,P],stateAttributesMapping:I}),H=(0,n.jsx)(m.Fragment,{children:V},v);return T&&!k?(0,n.jsxs)(m.Fragment,{children:[(0,n.jsx)(wa,{ref:L,onFocus:R}),H,(0,n.jsx)(wa,{ref:_.context.triggerFocusTargetRef,onFocus:z})]}):H});process.env.NODE_ENV!==`production`&&(Wh.displayName=`PopoverTrigger`);var Gh=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Gh.displayName=`PopoverPortalContext`);function Moe(){let e=m.useContext(Gh);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(45):`Base UI: <Popover.Portal> is missing.`);return e}var Kh=m.forwardRef(function(e,t){let{keepMounted:r=!1,...i}=e;return zh().useState(`mounted`)||r?(0,n.jsx)(Gh.Provider,{value:r,children:(0,n.jsx)(Ko,{ref:t,...i})}):null});process.env.NODE_ENV!==`production`&&(Kh.displayName=`PopoverPortal`);var qh=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(qh.displayName=`PopoverPositionerContext`);function Jh(){let e=m.useContext(qh);if(!e)throw Error(process.env.NODE_ENV===`production`?B(46):`Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>.`);return e}var Yh=m.forwardRef(function(e,t){let{render:r,className:i,style:a,anchor:o,positionMethod:s,side:c,align:l,sideOffset:u,alignOffset:d,collisionBoundary:f=`clipping-ancestors`,collisionPadding:p,arrowPadding:h,sticky:g,disableAnchorTracking:_=!1,collisionAvoidance:v=Bo,...y}=e,b=zh(),x=Moe(),S=$o(),C=b.useState(`floatingRootContext`),w=b.useState(`mounted`),T=b.useState(`open`),E=b.useState(`openChangeReason`),D=b.useState(`activeTriggerElement`),O=b.useState(`modal`),A=b.useState(`openMethod`),j=b.useState(`positionerElement`),M=b.useState(`instantType`),N=b.useState(`transitionStatus`),P=b.useState(`adaptiveOrigin`),F=m.useRef(null),I=Mn(j),L=hd({anchor:o,floatingRootContext:C,positionMethod:s,mounted:w,side:c,sideOffset:u,align:l,alignOffset:d,arrowPadding:h,collisionBoundary:f,collisionPadding:p,sticky:g,disableAnchorTracking:_,keepMounted:x,nodeId:S,collisionAvoidance:v,adaptiveOrigin:P}),R=C.useState(`domReferenceElement`);k(()=>{let e=R,t=F.current;if(e&&(F.current=e),t&&e&&e!==t){b.set(`instantType`,void 0);let e=new AbortController;return I(()=>{b.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[R,I,b]);let z=O===!0&&E!==`trigger-hover`;bd(T&&z,A===`touch`,j,D);let B=b.useStateSetter(`positionerElement`),V=yd(e,{open:T,side:L.side,align:L.align,anchorHidden:L.anchorHidden,instant:M},{styles:L.positionerStyles,transitionStatus:N,props:y,refs:[t,B],hidden:!w,inert:!T});return(0,n.jsxs)(qh.Provider,{value:L,children:[w&&z&&(0,n.jsx)(Tl,{inert:wl(!T),cutout:D}),(0,n.jsx)(es,{id:S,children:V})]})});process.env.NODE_ENV!==`production`&&(Yh.displayName=`PopoverPositioner`);var Xh=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Xh.displayName=`ClosePartContext`);function Noe(){let[e,t]=m.useState(0),n=w(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:m.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var Zh=m.forwardRef(function(e,t){let{render:r,className:i,style:a,initialFocus:o,finalFocus:s,...c}=e,l=zh(),u=Jh(),d=Of(!0)!=null,{context:f,hasClosePart:p}=Noe(),m=l.useState(`open`),h=l.useState(`openMethod`),g=l.useState(`instantType`),_=l.useState(`transitionStatus`),v=l.useState(`popupProps`),y=l.useState(`titleElementId`),b=l.useState(`descriptionElementId`),x=l.useState(`modal`),S=l.useState(`mounted`),C=l.useState(`openChangeReason`),w=l.useState(`activeTriggerElement`),T=l.useState(`floatingRootContext`),E=T.useState(`floatingId`),D=l.useState(`disabled`),O=l.useState(`openOnHover`),k=l.useState(`closeDelay`);Nn({open:m,ref:l.context.popupRef,onComplete(){m&&l.context.onOpenChangeComplete?.(!0)}}),kc(T,{enabled:O&&!D,closeDelay:k});let A=o===void 0?Qs(l.context.popupRef):o,j=x!==!1&&p;l.useSyncedValue(`focusManagerModal`,j);let M=l.useStateSetter(`popupElement`),N=J(`div`,e,{state:{open:m,side:u.side,align:u.align,instant:g,transitionStatus:_},ref:[t,l.context.popupRef,M],props:[v,{id:E,role:`dialog`,...Zs,"aria-labelledby":y,"aria-describedby":b,onKeyDown(e){d&&gl.has(e.key)&&e.stopPropagation()}},vd(_),c],stateAttributesMapping:rl});return(0,n.jsx)(ss,{context:T,openInteractionType:h,modal:j,disabled:!S||C===`trigger-hover`,initialFocus:A,returnFocus:s,restoreFocus:`popup`,previousFocusableElement:tn(w)?w:void 0,nextFocusableElement:l.context.triggerFocusTargetRef,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:(0,n.jsx)(Xh.Provider,{value:f,children:N})})});process.env.NODE_ENV!==`production`&&(Zh.displayName=`PopoverPopup`);var Qh=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=zh().useState(`open`),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=Jh();return J(`div`,e,{state:{open:o,side:c,align:l,uncentered:u},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:nl})});process.env.NODE_ENV!==`production`&&(Qh.displayName=`PopoverArrow`);var $h=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=zh(),s=Be(a.id);return o.useSyncedValueWithCleanup(`titleElementId`,s),J(`h2`,e,{ref:t,props:[{id:s},a]})});process.env.NODE_ENV!==`production`&&($h.displayName=`PopoverTitle`);var eg=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=zh(),s=Be(a.id);return o.useSyncedValueWithCleanup(`descriptionElementId`,s),J(`p`,e,{ref:t,props:[{id:s},a]})});process.env.NODE_ENV!==`production`&&(eg.displayName=`PopoverDescription`);var tg=m.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=zh(),{side:c}=Jh(),l=s.useState(`instantType`),{children:u,state:d}=Lie({store:s,side:c,children:a});return J(`div`,e,{state:{activationDirection:d.activationDirection,transitioning:d.transitioning,instant:l},ref:t,props:[o,{children:u}],stateAttributesMapping:Iie})});process.env.NODE_ENV!==`production`&&(tg.displayName=`PopoverViewport`);var Poe=class extends Ls{constructor(){super(Ooe(),`Popover`)}open(e){this.openByTrigger(e)}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select(`open`)??!1}};function Foe(){return new Poe}var ng=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(ng.displayName=`PreviewCardRootContext`);function rg(e){let t=m.useContext(ng);if(t===void 0&&!e)throw Error(process.env.NODE_ENV===`production`?B(50):`Base UI: PreviewCardRootContext is missing. PreviewCard parts must be placed within <PreviewCard.Root>.`);return t}var Ioe={...yc,instantType:e=>e.instantType,adaptiveOrigin:e=>e.adaptiveOrigin,closeDelay:e=>e.closeDelay},Loe=class extends qs{constructor(e,t,n){let r=new dc;super(Roe(e,r,t,n),zoe(r),Ioe)}setOpen=(e,t)=>{let{inlineRectCoordsRef:n}=this.context;ic(this,e,t,{onBeforeDispatch(){let r=t.event;e&&t.reason===`trigger-hover`&&t.trigger&&`clientX`in r&&`clientY`in r&&n.current?.element!==t.trigger&&Is(n,t.trigger,r.clientX,r.clientY)}})}};function Roe(e,t,n,r=!1){let i={...pc(),instantType:void 0,adaptiveOrigin:void 0,closeDelay:300,...e};return i.floatingRootContext=mc(t,n,r),i}function zoe(e){return{popupRef:m.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e,inlineRectCoordsRef:{current:void 0}}}function ig(e){let{open:t,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,actionsRef:o,handle:s,triggerId:c,defaultTriggerId:l=null,children:u}=e,d=$s((e,n)=>new Loe({open:r,openProp:t,activeTriggerId:l,triggerIdProp:c},e,n));d.useControlledProp(`openProp`,t),d.useControlledProp(`triggerIdProp`,c),d.useContextCallback(`onOpenChange`,i),d.useContextCallback(`onOpenChangeComplete`,a);let f=d.useState(`open`),p=d.useState(`activeTriggerId`),h=d.useState(`mounted`),g=d.useState(`payload`);oc(d,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:_}=sc(f,d,()=>{d.context.inlineRectCoordsRef.current=void 0});k(()=>{f&&(p??d.set(`payload`,void 0))},[d,p,f]),m.useImperativeHandle(o,()=>({unmount:_,close:()=>d.setOpen(!1,Y(vt))}),[_,d]);let v=f||h;return(0,n.jsxs)(ng.Provider,{value:d,children:[s&&(0,n.jsx)(ec,{handle:s,store:d}),v&&(0,n.jsx)(Boe,{store:d}),typeof u==`function`?u({payload:g}):u]})}function Boe({store:e}){let t=us(e.useState(`floatingRootContext`));return cc(e,{activeTriggerProps:t.reference,inactiveTriggerProps:t.trigger,popupProps:t.floating}),null}var ag=Hs(function(e){return rg(!0)?(0,n.jsx)(ig,{...e}):(0,n.jsx)(ts,{children:(0,n.jsx)(ig,{...e})})});process.env.NODE_ENV!==`production`&&(ag.displayName=`PreviewCardRoot`);var og=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(og.displayName=`PreviewCardPortalContext`);function Voe(){let e=m.useContext(og);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(48):`Base UI: <PreviewCard.Portal> is missing.`);return e}var sg=m.forwardRef(function(e,t){let{children:i,container:a,className:o,render:s,style:c,...l}=e,{node:u,subtree:d}=Go({container:a,ref:t,componentProps:e,elementProps:l});return!d&&!u?null:(0,n.jsxs)(m.Fragment,{children:[d,u&&r.createPortal(i,u)]})});process.env.NODE_ENV!==`production`&&(sg.displayName=`FloatingPortalLite`);var cg=m.forwardRef(function(e,t){let{keepMounted:r=!1,...i}=e;return rg().useState(`mounted`)||r?(0,n.jsx)(og.Provider,{value:r,children:(0,n.jsx)(sg,{ref:t,...i})}):null});process.env.NODE_ENV!==`production`&&(cg.displayName=`PreviewCardPortal`);var lg=Us(function(e,t){let{render:n,className:r,delay:i,closeDelay:a,id:o,payload:s,handle:c,style:l,...u}=e,d=rg(!0),f=bc(c)??d;if(!f)throw Error(process.env.NODE_ENV===`production`?B(89):`Base UI: <PreviewCard.Trigger> must be either used within a <PreviewCard.Root> component or provided with a handle.`);let p=Be(o),h=f.useState(`isTriggerActive`,p),g=f.useState(`isOpenedByTrigger`,p),_=f.useState(`floatingRootContext`),v=f.context.inlineRectCoordsRef,y=m.useRef(null),b=i??600,x=a??300,{registerTrigger:S,isMountedByThisTrigger:C}=ac(p,y,f,{payload:s,closeDelay:x}),w=Ac(_,{mouseOnly:!0,move:!1,handleClose:Hc(),delay:()=>({open:b,close:x}),triggerElementRef:y,isActiveTrigger:h,isClosing:()=>f.select(`transitionStatus`)===`ending`}),T=wc(_,{delay:b}),E={open:g},D=f.useState(`triggerProps`,C),O=ire(v,g);return J(`a`,e,{state:E,ref:[t,S,y],props:[w,T.reference,D,O,{id:p},u],stateAttributesMapping:el})});process.env.NODE_ENV!==`production`&&(lg.displayName=`PreviewCardTrigger`);var ug=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(ug.displayName=`PreviewCardPositionerContext`);function Hoe(){let e=m.useContext(ug);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(49):`Base UI: PreviewCardPositionerContext is missing. PreviewCardPositioner parts must be placed within <PreviewCard.Positioner>.`);return e}var dg=m.forwardRef(function(e,t){let{render:r,className:i,anchor:a,positionMethod:o=`absolute`,side:s=`bottom`,align:c=`center`,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f=5,arrowPadding:p=5,sticky:m=!1,disableAnchorTracking:h=!1,collisionAvoidance:g=Bo,style:_,...v}=e,y=rg(),b=Voe(),x=$o(),S=y.useState(`open`),C=y.useState(`mounted`),w=y.useState(`floatingRootContext`),T=y.useState(`instantType`),E=y.useState(`transitionStatus`),D=y.useState(`adaptiveOrigin`),O=y.context.inlineRectCoordsRef,A=hd({anchor:a,floatingRootContext:w,positionMethod:o,mounted:C,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:b,nodeId:x,collisionAvoidance:g,adaptiveOrigin:D,inline:are(O)}),j=A.update;k(()=>{S&&C&&j()},[S,C,j]);let M=yd(e,{open:S,side:A.side,align:A.align,anchorHidden:A.anchorHidden,instant:T},{styles:A.positionerStyles,transitionStatus:E,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!C,inert:!S});return(0,n.jsx)(ug.Provider,{value:A,children:(0,n.jsx)(es,{id:x,children:M})})});process.env.NODE_ENV!==`production`&&(dg.displayName=`PreviewCardPositioner`);var fg=m.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,o=rg(),{side:s,align:c}=Hoe(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`closeDelay`);return Nn({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),kc(p,{closeDelay:m}),J(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,o.useStateSetter(`popupElement`)],props:[Zs,f,vd(d),a],stateAttributesMapping:rl})});process.env.NODE_ENV!==`production`&&(fg.displayName=`PreviewCardPopup`);var pg={checked(e){return e?{"data-checked":``}:{"data-unchecked":``}},...Rt,...ou},mg=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(mg.displayName=`RadioGroupContext`);function Uoe(){return m.useContext(mg)}var hg=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(hg.displayName=`RadioRootContext`);function Woe(){let e=m.useContext(hg);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(52):`Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>.`);return e}var gg=m.forwardRef(function(e,t){let{render:r,className:i,disabled:a=!1,readOnly:o=!1,required:s=!1,"aria-labelledby":c,value:l,inputRef:u,nativeButton:d=!1,id:f,style:p,...h}=e,g=Uoe(),{disabled:_,readOnly:v,required:y,form:b,checkedValue:x,touched:S=!1,validation:C,name:w,setCheckedValue:T=ae,setTouched:E=ae,registerInputRef:D=ae}=g??{},{setTouched:O,setFilled:A,state:j,disabled:M}=lu(),N=Ud(),{labelId:P,getDescriptionProps:F}=mu(),I=M||N.disabled||_||a,L=v||o,R=y||s,z=b,B=g?x===l:l===``,V=m.useRef(null),H=m.useRef(null),W=C?.registerInput,G=U(u,H,D,m.useCallback(e=>W?.(e,{controlRef:V,value:void 0}),[W]));k(()=>{H.current?.checked&&A(!0)},[A]),k(()=>{if(H.current){if(I&&B){D(null);return}D(H.current)}},[B,I,D]);let ee=Be(),K=hu({id:f,implicit:!1,controlRef:V}),te=d?void 0:K,q={role:`radio`,"aria-checked":B,"aria-labelledby":Wd(c,P,H,!d,te),[am]:B?``:void 0,id:d?K:ee,onKeyDown(e){e.key===`Enter`&&e.preventDefault()},onClick(e){if(e.defaultPrevented||I||L)return;e.preventDefault();let t=H.current;t&&wn(t,e)},onFocus(e){e.defaultPrevented||I||L||!S||(H.current?.click(),E(!1))}},{getButtonProps:ne,buttonRef:re}=Tn({disabled:I,native:d,composite:!1}),ie={type:`radio`,ref:G,form:z,id:te,name:w,tabIndex:-1,style:w?Ca:Sa,"aria-hidden":!0,...l===void 0?se:{value:Xl(l)},disabled:I,checked:B,required:R,readOnly:L,onChange(e){if(e.nativeEvent.defaultPrevented||I||L||l===void 0)return;let t=Y(Ve,e.nativeEvent);T(l,t),!t.isCanceled&&O(!0)},onClick(e){e.stopPropagation()},onFocus(){V.current?.focus()}},oe=m.useMemo(()=>({...j,required:R,disabled:I,readOnly:L,checked:B}),[j,I,L,B,R]),ce=oe,le=g!==void 0,ue=[t,V,re],de=[q,h,ne,F,C?e=>C.getValidationProps(I,e):se],fe=J(`span`,e,{enabled:!le,state:oe,ref:ue,props:de,stateAttributesMapping:pg});return(0,n.jsxs)(hg.Provider,{value:ce,children:[le?(0,n.jsx)(Gf,{tag:`span`,render:r,className:i,style:p,state:oe,refs:ue,props:de,stateAttributesMapping:pg}):fe,(0,n.jsx)(`input`,{...ie,suppressHydrationWarning:!0})]})});process.env.NODE_ENV!==`production`&&(gg.displayName=`RadioRoot`);var _g=m.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=Woe(),c=s.checked,{mounted:l,transitionStatus:u,setMounted:d}=Ot(c),f={...s,transitionStatus:u},p=m.useRef(null),h=a||l,g=J(`span`,e,{ref:[t,p],state:f,props:o,stateAttributesMapping:pg});return Nn({open:c,ref:p,onComplete(){c||d(!1)}}),h?g:null});process.env.NODE_ENV!==`production`&&(_g.displayName=`RadioIndicator`);var Goe=[_l],vg=m.forwardRef(function(e,t){let{render:r,className:i,disabled:a,readOnly:o,required:s,onValueChange:c,value:l,defaultValue:u,form:d,name:f,inputRef:p,id:h,style:g,...v}=e,{setTouched:y,setFocused:b,validationMode:x,name:S,disabled:C,state:T,validation:E,setDirty:D,setFilled:O,validityData:k}=lu(),{labelId:A}=mu(),{clearErrors:j,elementRef:M}=fu(),N=nm(!0),P=C||a,F=S??f,I=Be(h),[L,R]=_({controlled:l,default:u,name:`RadioGroup`,state:`value`}),[z,B]=m.useState(!1),V=w((e,t)=>{c?.(e,t),!t.isCanceled&&R(e)}),H=E.getInputControl,U=m.useMemo(()=>({get current(){return H()}}),[H]),W=m.useRef(null),G=m.useRef(null);function ee(e){let t;return p&&(typeof p==`function`?t=p(e):p.current=e),W.current=e,t}let K=w(e=>{if(!e||e.disabled)return;G.current||=e;let t=W.current,n=e.checked||t==null||t.disabled?ee(e):void 0;return()=>{G.current===e&&(G.current=null),W.current===e?n?(n(),W.current=null):ee(null):n?.()}}),te=w(()=>{let e=M.current;if(!e)return L??null;for(let t of E.registeredInputs.keys())if(t.checked&&Yd(t,e))return L??null;return null});uu(U,I,L??null,te,!P,f),kl(L,()=>{j(F),D(L!==k.initialValue),O(L!=null),E.change(L);let e=G.current;L==null&&e&&!e.disabled&&ee(e)});let q=A??N?.legendId,ne={...T,disabled:P??!1,required:s??!1,readOnly:o??!1},re=m.useMemo(()=>({checkedValue:L,disabled:P,form:d,validation:E,name:F,readOnly:o,registerInputRef:K,required:s,setCheckedValue:V,setTouched:B,touched:z}),[L,P,d,E,F,o,K,s,V,B,z]),ie={id:h,role:`radiogroup`,"aria-required":s||void 0,"aria-disabled":P||void 0,"aria-readonly":o||void 0,"aria-labelledby":q,onFocus(){b(!0)},onBlur(e){na(e.currentTarget,e.relatedTarget)||(y(!0),b(!1),x===`onBlur`&&E.commit(L))},onKeyDownCapture(e){e.key.startsWith(`Arrow`)&&(B(!0),b(!0))}};return(0,n.jsx)(mg.Provider,{value:re,children:(0,n.jsx)(lm,{render:r,className:i,style:g,state:ne,props:[ie,v,e=>E.getValidationProps(P??!1,e)],refs:[t],stateAttributesMapping:ou,enableHomeAndEndKeys:!1,modifierKeys:Goe})})});process.env.NODE_ENV!==`production`&&(vg.displayName=`RadioGroup`);var yg=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(yg.displayName=`ScrollAreaRootContext`);function bg(){let e=m.useContext(yg);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(53):`Base UI: ScrollAreaRootContext is missing. ScrollArea parts must be placed within <ScrollArea.Root>.`);return e}function xg(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i=`${t}${n===`x`?`Inline`:`Block`}`,a=parseFloat(r[`${i}Start`]);return n===`x`&&t===`margin`?a*2:a+parseFloat(r[`${i}End`])}var Sg=`base-ui-disable-scrollbar`,Cg={className:Sg,getElement(e){return(0,n.jsx)(`style`,{nonce:e,href:Sg,precedence:`base-ui:low`,children:`.${Sg}{scrollbar-width:none}.${Sg}::-webkit-scrollbar{display:none}`})}};process.env.NODE_ENV!==`production`&&(Cg.getElement.displayName=`styleDisableScrollbar.getElement`);var wg=e=>t=>t?{[e]:``}:null,Tg={hasOverflowX:wg(`data-has-overflow-x`),hasOverflowY:wg(`data-has-overflow-y`),overflowXStart:wg(`data-overflow-x-start`),overflowXEnd:wg(`data-overflow-x-end`),overflowYStart:wg(`data-overflow-y-start`),overflowYEnd:wg(`data-overflow-y-end`),cornerHidden:()=>null},Koe={x:0,y:0},Eg={width:0,height:0},qoe={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},Joe={x:!0,y:!0,corner:!0},Dg=m.forwardRef(function(e,t){let{render:r,className:i,overflowEdgeThreshold:a,style:o,...s}=e,{xStart:c,xEnd:l,yStart:u,yEnd:d}=Yoe(a),f=Be(),p=Hi(),h=Hi(),{nonce:g,disableStyleElements:_}=lp(),[v,y]=m.useState(!1),[b,x]=m.useState(!1),[S,C]=m.useState(!1),[T,E]=m.useState(!1),[D,O]=m.useState(!1),[k,A]=m.useState(Eg),[j,M]=m.useState(Eg),[N,P]=m.useState(qoe),[F,I]=m.useState(Joe),L=m.useRef(null),R=m.useRef(null),z=m.useRef(null),B=m.useRef(null),V=m.useRef(null),H=m.useRef(null),U=m.useRef(null),W=m.useRef(null),G=m.useRef(0),ee=m.useRef(0),K=m.useRef(0),te=m.useRef(0),q=m.useRef(`vertical`),ne=m.useRef(Koe),re=m.useRef(null);function ie(e){let t=e?C:x,n=e?p:h;t(!0),n.start(500,()=>{t(!1)})}let ae=w(e=>{let t=e.x-ne.current.x,n=e.y-ne.current.y;ne.current=e,n!==0&&ie(!0),t!==0&&ie(!1)}),oe=w(()=>{let e=R.current;e&&re.current===null&&(re.current=e.style.scrollSnapType,e.style.scrollSnapType=`none`)}),se=w(e=>{if(e.button!==0||W.current!==null&&(q.current===`vertical`?V.current:H.current)?.hasPointerCapture(W.current))return;W.current=e.pointerId,G.current=e.clientY,ee.current=e.clientX,q.current=e.currentTarget.getAttribute(`data-orientation`);let t=R.current;t&&(K.current=t.scrollTop,te.current=t.scrollLeft,oe()),(q.current===`vertical`?V.current:H.current)?.setPointerCapture(e.pointerId)}),ce=w(e=>{if(e.pointerId!==W.current)return;W.current=null,(q.current===`vertical`?C:x)(!1),re.current!==null&&(R.current&&(R.current.style.scrollSnapType=re.current),re.current=null);let t=q.current===`vertical`?V.current:H.current;t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId)}),le=w(e=>{if(e.pointerId!==W.current)return;if(e.buttons%2==0){ce(e);return}let t=R.current;if(!t)return;let n=q.current===`vertical`,r=n?V.current:H.current,i=n?z.current:B.current;if(!r||!i)return;let a=n?`y`:`x`,o=xg(i,`padding`,a),s=xg(r,`margin`,a),c=n?r.offsetHeight:r.offsetWidth,l=(n?i.offsetHeight:i.offsetWidth)-c-o-s,u=n?e.clientY-G.current:e.clientX-ee.current,d=l<=0?0:u/l,f=n?t.scrollHeight:t.scrollWidth,p=n?t.clientHeight:t.clientWidth,m=(n?K.current:te.current)+d*(f-p);n?t.scrollTop=m:t.scrollLeft=m,e.preventDefault(),ie(n)});function ue(e){E(e.pointerType===`touch`)}function de(e){if(ue(e),e.pointerType!==`touch`){let t=na(L.current,e.target);y(t)}}let fe=m.useMemo(()=>({scrolling:b||S,hasOverflowX:!F.x,hasOverflowY:!F.y,overflowXStart:N.xStart,overflowXEnd:N.xEnd,overflowYStart:N.yStart,overflowYEnd:N.yEnd,cornerHidden:F.corner}),[b,S,F.x,F.y,F.corner,N]),pe={role:`presentation`,onPointerEnter:de,onPointerMove:de,onPointerDown:ue,onPointerLeave(){y(!1)},style:{position:`relative`,"--scroll-area-corner-height":`${k.height}px`,"--scroll-area-corner-width":`${k.width}px`}},me=J(`div`,e,{state:fe,ref:[t,L],props:[pe,s],stateAttributesMapping:Tg}),he=m.useMemo(()=>({handlePointerDown:se,handlePointerMove:le,handlePointerUp:ce,handleScroll:ae,disableViewportSnap:oe,cornerSize:k,setCornerSize:A,thumbSize:j,setThumbSize:M,hasMeasuredScrollbar:D,setHasMeasuredScrollbar:O,touchModality:T,cornerRef:U,scrollingX:b,scrollingY:S,hovering:v,setHovering:y,viewportRef:R,scrollbarYRef:z,scrollbarXRef:B,thumbYRef:V,thumbXRef:H,rootId:f,hiddenState:F,setHiddenState:I,overflowEdges:N,setOverflowEdges:P,viewportState:fe,overflowEdgeThreshold:{xStart:c,xEnd:l,yStart:u,yEnd:d}}),[se,le,ce,ae,oe,k,j,D,T,b,S,v,f,F,N,fe,c,l,u,d]);return(0,n.jsxs)(yg.Provider,{value:he,children:[!_&&Cg.getElement(g),me]})});process.env.NODE_ENV!==`production`&&(Dg.displayName=`ScrollAreaRoot`);function Yoe(e){let t=typeof e==`number`?{xStart:e,xEnd:e,yStart:e,yEnd:e}:e;return{xStart:Math.max(0,t?.xStart||0),xEnd:Math.max(0,t?.xEnd||0),yStart:Math.max(0,t?.yStart||0),yEnd:Math.max(0,t?.yEnd||0)}}var Og=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Og.displayName=`ScrollAreaViewportContext`);function kg(e,t){return Math.max(0,e-t)}function Ag(e,t){if(t<=0)return 0;let n=Cp(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}var jg=[`--scroll-area-overflow-x-start`,`--scroll-area-overflow-x-end`,`--scroll-area-overflow-y-start`,`--scroll-area-overflow-y-end`],Mg=!1;function Xoe(){Mg||Ii||(typeof CSS<`u`&&`registerProperty`in CSS&&jg.forEach(e=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),Mg=!0)}var Ng=m.forwardRef(function(e,t){let{render:r,className:i,style:a,...o}=e,{viewportRef:s,scrollbarYRef:c,scrollbarXRef:l,thumbYRef:u,thumbXRef:d,cornerRef:f,cornerSize:p,setCornerSize:h,setThumbSize:g,rootId:_,setHiddenState:v,hiddenState:y,setHasMeasuredScrollbar:b,handleScroll:x,touchModality:S,setHovering:C,setOverflowEdges:T,overflowEdgeThreshold:E,viewportState:D}=bg(),O=Du(),A=m.useRef(!0),j=m.useRef([NaN,NaN,NaN,NaN]),M=Hi(),N=Hi(),P=w(()=>{let e=s.current,t=c.current,n=l.current,r=u.current,i=d.current,a=f.current;if(!e)return;let o=e.scrollHeight,m=e.scrollWidth,_=e.clientHeight,y=e.clientWidth,x=e.scrollTop,S=e.scrollLeft,C=j.current,w=Number.isNaN(C[0]);if(C[0]=_,C[1]=o,C[2]=y,C[3]=m,w&&b(!0),o===0||m===0)return;let D=Zoe(e),k=D.y,A=D.x,M=y/m,N=_/o,P=Math.max(0,m-y),F=Math.max(0,o-_),I=0,L=0;A||(I=Ag(O===`rtl`?-S:S,P),L=P-I);let R=k?0:Ag(x,F),z=k?0:F-R,B=A?0:y,V=k?0:_,H=0,U=0;!A&&!k&&(H=t?.offsetWidth||0,U=n?.offsetHeight||0);let W=p.width===0&&p.height===0,G=W?H:0,ee=W?U:0,K=xg(n,`padding`,`x`),te=xg(t,`padding`,`y`),q=xg(i,`margin`,`x`),ne=xg(r,`margin`,`y`),re=B-K-q,ie=V-te-ne,ae=n?Math.min(n.offsetWidth-G,re):re,oe=t?Math.min(t.offsetHeight-ee,ie):ie,se=Math.max(16,ae*M),ce=Math.max(16,oe*N);if(g(e=>Pg(e,{width:se,height:ce})),t&&r){let e=Fg(r,`--scroll-area-thumb-height`,x,F,o,ce,t.offsetHeight-ce-te-ne);r.style.transform=`translate3d(0,${e}px,0)`}if(n&&i){let e=n.offsetWidth-se-K-q,t=Fg(i,`--scroll-area-thumb-width`,O===`rtl`?-S:S,P,m,se,e);i.style.transform=`translate3d(${O===`rtl`?-t:t}px,0,0)`}let le=[I,L,R,z];jg.forEach((t,n)=>{e.style.setProperty(t,`${le[n]}px`)}),a&&h(e=>Pg(e,{width:H,height:U})),v(e=>Pg(e,D));let ue={xStart:!A&&I>E.xStart,xEnd:!A&&L>E.xEnd,yStart:!k&&R>E.yStart,yEnd:!k&&z>E.yEnd};T(e=>Pg(e,ue))});k(()=>{Xoe()},[]),k(()=>{queueMicrotask(P)},[P,y,O,E.xStart,E.xEnd,E.yStart,E.yEnd]),k(()=>{s.current?.matches(`:hover`)&&C(!0)},[s,C]),k(()=>{let e=s.current;if(typeof ResizeObserver>`u`||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=j.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}P()});return n.observe(e),N.start(0,()=>{let t=e.getAnimations({subtree:!0});t.length!==0&&Promise.allSettled(t.map(e=>e.finished)).then(P).catch(()=>{})}),()=>{n.disconnect(),N.clear()}},[P,s,N]);function F(){A.current=!1}let I={role:`presentation`,..._&&{"data-id":`${_}-viewport`},tabIndex:y.x&&y.y?-1:0,className:Cg.className,style:{overflow:`scroll`},onScroll(){s.current&&(P(),(S||!A.current)&&x({x:s.current.scrollLeft,y:s.current.scrollTop}),M.start(100,()=>{A.current=!0}))},onWheel:F,onPointerMove:F,onPointerEnter:F,onKeyDown:F},L=J(`div`,e,{ref:[t,s],state:D,props:[I,o],stateAttributesMapping:Tg}),R=m.useMemo(()=>({computeThumbPosition:P}),[P]);return(0,n.jsx)(Og.Provider,{value:R,children:L})});process.env.NODE_ENV!==`production`&&(Ng.displayName=`ScrollAreaViewport`);function Zoe(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function Pg(e,t){for(let n in t)if(e[n]!==t[n])return t;return e}function Fg(e,t,n,r,i,a,o){let s=Cp(n,0,r),c=n-s,l=Math.max(16,a*i/(i+Math.abs(c)));return e.style.setProperty(t,c?`${l}px`:``),(r?s/r*o:0)+(c>0?a-l:0)}var Ig=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Ig.displayName=`ScrollAreaScrollbarContext`);function Qoe(){let e=m.useContext(Ig);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(54):`Base UI: ScrollAreaScrollbarContext is missing. ScrollAreaScrollbar parts must be placed within <ScrollArea.Scrollbar>.`);return e}var Lg=m.forwardRef(function(e,t){let{render:r,className:i,orientation:a=`vertical`,keepMounted:o=!1,style:s,...c}=e,{hovering:l,scrollingX:u,scrollingY:d,hiddenState:f,scrollbarYRef:p,scrollbarXRef:h,viewportRef:g,thumbYRef:_,thumbXRef:v,handlePointerDown:y,handlePointerUp:b,handleScroll:x,disableViewportSnap:S,rootId:C,thumbSize:w,hasMeasuredScrollbar:T,viewportState:E}=bg(),D=a===`vertical`,O={...E,hovering:l,scrolling:D?d:u,orientation:a},k=Du(),A=!T&&!o,j=D?f.y:f.x,M=o||!j;m.useEffect(()=>{if(!M)return;let e=g.current,t=D?p.current:h.current;if(!t)return;function n(t){if(!e||t.ctrlKey)return;let n=!D,r=n?`scrollLeft`:`scrollTop`,i=n?t.deltaX:t.deltaY;if(i===0)return;let a=n?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight,o=n&&k===`rtl`?-a:0,s=n&&k===`rtl`?0:a,c=e[r];c<=o&&i<0||c>=s&&i>0||(t.preventDefault(),e[r]=Math.min(s,Math.max(o,c+i)),x({x:e.scrollLeft,y:e.scrollTop}))}return kn(t,`wheel`,n,{passive:!1})},[k,x,D,h,p,M,g]);let N={...C&&{"data-id":`${C}-scrollbar`},onPointerDown(e){if(e.button!==0)return;let t=ra(e.nativeEvent),n=D?_.current:v.current;if(n&&na(n,t))return;let r=g.current;if(!r)return;let i=D?p.current:h.current;if(!n||!i)return;let a=D?`y`:`x`,o=xg(n,`margin`,a),s=xg(i,`padding`,a),c=D?n.offsetHeight:n.offsetWidth,l=i.getBoundingClientRect(),u=D?e.clientY-l.top-c/2-s+o/2:e.clientX-l.left-c/2-s+o/2,d=D?r.scrollHeight:r.scrollWidth,f=D?r.clientHeight:r.clientWidth,m=(D?i.offsetHeight:i.offsetWidth)-c-s-o;if(m<=0)return;let b=u/m,C=d-f;S(),D?r.scrollTop=b*C:r.scrollLeft=k===`rtl`?-(1-b)*C:b*C,x({x:r.scrollLeft,y:r.scrollTop}),y(e)},onPointerUp:b,onPointerCancel:b,style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,visibility:A?`hidden`:void 0,...D?{top:0,bottom:`var(--scroll-area-corner-height)`,insetInlineEnd:0,"--scroll-area-thumb-height":`${w.height}px`}:{insetInlineStart:0,insetInlineEnd:`var(--scroll-area-corner-width)`,bottom:0,"--scroll-area-thumb-width":`${w.width}px`}}},P=J(`div`,e,{ref:[t,D?p:h],state:O,props:[N,c],stateAttributesMapping:Tg});return M?(0,n.jsx)(Ig.Provider,{value:a,children:P}):null});process.env.NODE_ENV!==`production`&&(Lg.displayName=`ScrollAreaScrollbar`);var Rg=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{thumbYRef:o,thumbXRef:s,handlePointerDown:c,handlePointerMove:l,handlePointerUp:u,scrollingX:d,scrollingY:f,hasMeasuredScrollbar:p}=bg(),m=Qoe(),h=m===`vertical`;return J(`div`,e,{ref:[t,h?o:s],state:{scrolling:h?f:d,orientation:m},props:[{onPointerDown:c,onPointerMove:l,onPointerUp:u,onPointerCancel:u,style:{visibility:p?void 0:`hidden`,...h?{height:`var(--scroll-area-thumb-height)`}:{width:`var(--scroll-area-thumb-width)`}}},a]})});process.env.NODE_ENV!==`production`&&(Rg.displayName=`ScrollAreaThumb`);var zg=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{cornerRef:o,cornerSize:s,hiddenState:c}=bg(),l=J(`div`,e,{ref:[t,o],props:[{style:{position:`absolute`,bottom:0,insetInlineEnd:0,width:s.width,height:s.height}},a]});return c.corner?null:l});process.env.NODE_ENV!==`production`&&(zg.displayName=`ScrollAreaCorner`);var Bg=m.createContext(null);process.env.NODE_ENV!==`production`&&(Bg.displayName=`SelectRootContext`);function Vg(){let e=m.useContext(Bg);if(e===null)throw Error(process.env.NODE_ENV===`production`?B(60):`Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.`);return e}var Hg={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:eu(t,r)!==``},hasNullItemLabel:(e,t)=>t?Ql(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>Kl(t,e,n)):Kl(t,r,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};function $oe(e){let{id:t,value:r,defaultValue:i=null,onValueChange:a,open:o,defaultOpen:s=!1,onOpenChange:c,name:l,form:u,autoComplete:d,disabled:f=!1,readOnly:p=!1,required:h=!1,modal:g=!0,actionsRef:v,inputRef:y,onOpenChangeComplete:b,items:S,multiple:C=!1,itemToStringLabel:T,itemToStringValue:E,isItemEqualToValue:D=Gl,highlightItemOnHover:O=!0,children:A}=e,{clearErrors:j}=fu(),{setDirty:M,setTouched:N,setFocused:P,validityData:F,setFilled:I,name:L,disabled:R,validation:z,validationMode:B}=lu(),V=hu({id:t}),H=R||f,W=L??l,[G,ee]=_({controlled:r,default:C?i??oe:i,name:`Select`,state:`value`}),[K,te]=_({controlled:o,default:s,name:`Select`,state:`open`}),q=m.useRef([]),ne=m.useRef([]),re=m.useRef(null),ie=m.useRef(null),ae=m.useRef(0),ce=m.useRef(null),le=m.useRef([]),ue=m.useRef(!1),de=m.useRef(null),pe=m.useRef(null),me=m.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),he=m.useRef(!1),{mounted:ge,setMounted:_e,transitionStatus:ve}=Ot(K),{openMethod:ye,triggerProps:be}=jl(K),xe=x(()=>new qs({id:V,labelId:void 0,modal:g,multiple:C,itemToStringLabel:T,itemToStringValue:E,isItemEqualToValue:D,value:G,open:K,mounted:ge,transitionStatus:ve,items:S,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,Se=Z(xe,Hg.activeIndex),Ce=Z(xe,Hg.selectedIndex),we=Z(xe,Hg.triggerElement),Te=Z(xe,Hg.positionerElement),J=Yf(ye),Ee=ye??J,De=m.useMemo(()=>C?``:eu(G,E),[C,G,E]),Oe=m.useMemo(()=>C&&Array.isArray(G)?G.map(e=>eu(e,E)):eu(G,E),[C,G,E]);uu(An(we),V,G,w(()=>Oe),!H,l);let ke=m.useRef(G),Ae=C?Array.isArray(G)&&G.length>0:G!=null&&De!==``;k(()=>{I(Ae)},[Ae,I]),k(function(){let e=G,t=!1;if(C){let n=Array.isArray(G)?G:[];t=n.length===0,e=n[n.length-1]}let n=t?-1:ql(le.current,e,D),r=n===-1?null:n;r===null&&(pe.current=null),!K&&xe.set(`selectedIndex`,r)},[C,K,G,D,xe]);function je(e){let t=F.initialValue;return Array.isArray(e)&&Array.isArray(t)?!Cu(e,t,(e,t)=>Kl(e,t,D)):e!==t}kl(G,()=>{j(W),M(je(G)),z.change(G)});let Me=w((e,t)=>{c?.(e,t),!t.isCanceled&&(te(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(N(!0),P(!1),B===`onBlur`&&z.commit(G)))}),Ne=w(()=>{_e(!1),xe.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),b?.(!1)});Nn({enabled:!v,open:K,ref:re,onComplete(){K||Ne()}}),m.useImperativeHandle(v,()=>({unmount:Ne}),[Ne]);let Pe=w((e,t)=>{a?.(e,t),!t.isCanceled&&ee(e)}),Fe=w(e=>{let t=kg(e.scrollHeight,e.clientHeight),n=Ag(e.scrollTop,t),r=n>0,i=n<t;xe.set(`scrollUpArrowVisible`,r),xe.set(`scrollDownArrowVisible`,i)}),Ie=xc({open:K,onOpenChange:Me,elements:{reference:we,floating:Te}}),Le=cs(Ie,{enabled:!p&&!H,event:`mousedown`}),Re=us(Ie),ze=Fc(Ie,{enabled:!p&&!H,listRef:q,activeIndex:Se,selectedIndex:Ce,disabledIndices:oe,onNavigate(e){e===null&&!K||xe.set(`activeIndex`,e)},focusItemOnHover:O}),Be=Ic(Ie,{enabled:!p&&!H&&(K||!C),listRef:ne,activeIndex:Se,selectedIndex:Ce,disabledIndices:e=>ip(q.current[e]),onMatch(e){K?xe.set(`activeIndex`,e):Pe(le.current[e],Y(Ve))},onTyping(e){ue.current=e}}),He=m.useMemo(()=>fe(Be.reference,ze.reference,Re.reference,Le.reference,be),[Le.reference,Be.reference,ze.reference,Re.reference,be]),Ue=m.useMemo(()=>fe(Zs,Be.floating,ze.floating,Re.floating),[Be.floating,ze.floating,Re.floating]),We=ze.item??se;Fl(()=>{xe.update({popupProps:Ue,triggerProps:He})}),xe.useSyncedValues({id:V,modal:g,multiple:C,value:G,open:K,mounted:ge,transitionStatus:ve,popupProps:Ue,triggerProps:He,items:S,itemToStringLabel:T,itemToStringValue:E,isItemEqualToValue:D,openMethod:Ee});let Ge=m.useMemo(()=>({store:xe,floatingContext:Ie,required:h,disabled:H,readOnly:p,multiple:C,highlightItemOnHover:O,setValue:Pe,setOpen:Me,listRef:q,popupRef:re,scrollHandlerRef:ie,handleScrollArrowVisibility:Fe,scrollArrowsMountedCountRef:ae,itemProps:We,valueRef:ce,valuesRef:le,labelsRef:ne,typingRef:ue,selectionRef:me,firstItemTextRef:de,selectedItemTextRef:pe,validation:z,onOpenChangeComplete:b,alignItemWithTriggerActiveRef:he,initialValueRef:ke}),[xe,Ie,h,H,p,C,O,Pe,Me,We,z,b,Fe]),Ke=U(y,z.inputRef),qe=C?void 0:W,Je=m.useMemo(()=>!C||!Array.isArray(G)||!W?null:G.map(e=>{let t=eu(e,E);return(0,n.jsx)(`input`,{type:`hidden`,form:u,name:W,value:t,disabled:H},t)}),[C,G,u,W,E,H]);return(0,n.jsxs)(Bg.Provider,{value:Ge,children:[A,(0,n.jsx)(`input`,{...z.getValidationProps(H,{onFocus(){xe.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||H||p)return;let t=e.currentTarget.value,n=Y(Ve,e.nativeEvent);function r(){if(C)return;let e=t.toLowerCase(),r=le.current.findIndex(t=>eu(t,E).toLowerCase()===e||$l(t,T).toLowerCase()===e);r===-1&&(r=le.current.findIndex((t,n)=>{let r=ne.current[n];return r!=null&&r.toLowerCase()===e}));let i=le.current[r];i!=null&&Pe(i,n)}xe.set(`forceMount`,!0),queueMicrotask(r)}}),id:V&&qe==null?`${V}-hidden-input`:void 0,form:u,name:qe,autoComplete:d,value:De,disabled:H,required:h&&!(C&&Ae),readOnly:p,ref:Ke,style:W?Ca:Sa,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Je]})}var ese=400,tse={...tl,...ou,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},Ug=m.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{setTouched:l,setFocused:u,validationMode:d,state:f,disabled:p}=lu(),{labelId:h}=mu(),{store:g,setOpen:_,selectionRef:v,validation:y,readOnly:b,required:x,alignItemWithTriggerActiveRef:S,disabled:C}=Vg(),w=p||C||a,T=Z(g,Hg.open),E=Z(g,Hg.mounted),D=Z(g,Hg.value),O=Z(g,Hg.triggerProps),k=Z(g,Hg.positionerElement),A=Z(g,Hg.listElement),j=Z(g,Hg.popupSide),M=Z(g,Hg.id),N=Z(g,Hg.labelId),P=Z(g,Hg.hasSelectedValue),F=E&&k?j:null,I=i??M,L=Mu(h,N);hu({id:I});let R=An(k),z=m.useRef(null),{getButtonProps:B,buttonRef:V}=Tn({disabled:w,native:o}),H=g.useStateSetter(`triggerElement`),U=Hi(),W=Hi(),G=Hi();m.useEffect(()=>{if(T)return G.start(ese,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{G.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},W.clear()},[T,v,W,G]);let ee=fe(O,{id:I,role:`combobox`,"aria-expanded":T,"aria-haspopup":`listbox`,"aria-controls":T?A?.id??ua(k)?.id:void 0,"aria-labelledby":L,"aria-readonly":b||void 0,"aria-required":x||void 0,tabIndex:w?-1:0,onFocus(e){u(!0),T&&S.current&&_(!1,Y(Ve,e.nativeEvent)),U.start(0,()=>{g.set(`forceMount`,!0)})},onBlur(e){na(k,e.relatedTarget)||(l(!0),u(!1),d===`onBlur`&&y.commit(D))},onMouseDown(e){if(T)return;let t=Cn(e.currentTarget);function n(e){if(!z.current)return;let t=e.target;na(z.current,t)||na(R.current,t)||ju(e,z.current)||_(!1,Y(pt,e))}W.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},c,B),K=y.getValidationProps(w,ee);K.role=`combobox`;let te={...f,open:T,disabled:w,value:D,readOnly:b,popupSide:F,placeholder:!P};return J(`button`,e,{ref:[t,z,V,H],state:te,stateAttributesMapping:tse,props:K})});process.env.NODE_ENV!==`production`&&(Ug.displayName=`SelectTrigger`);var nse={value:()=>null},Wg=m.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=Vg(),u=Z(c,Hg.value),d=Z(c,Hg.items),f=Z(c,Hg.itemToStringLabel),p=Z(c,Hg.hasSelectedValue),m=!p&&a!=null&&i==null,h=Z(c,Hg.hasNullItemLabel,m),g={value:u,placeholder:!p},_=null;return _=typeof i==`function`?i(u):i??(m&&!h?a:Array.isArray(u)?nu(u,d,f):tu(u,d,f)),J(`span`,e,{state:g,ref:[t,l],props:[{children:_},s],stateAttributesMapping:nse})});process.env.NODE_ENV!==`production`&&(Wg.displayName=`SelectValue`);var Gg=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=Vg();return J(`span`,e,{state:{open:Z(o,Hg.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:el})});process.env.NODE_ENV!==`production`&&(Gg.displayName=`SelectIcon`);var Kg=m.forwardRef(function(e,t){let{store:r}=Vg(),i=Z(r,Hg.mounted),a=Z(r,Hg.forceMount);return i||a?(0,n.jsx)(Ko,{ref:t,...e}):null});process.env.NODE_ENV!==`production`&&(Kg.displayName=`SelectPortal`);var qg=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(qg.displayName=`SelectPositionerContext`);function Jg(){let e=m.useContext(qg);if(!e)throw Error(process.env.NODE_ENV===`production`?B(59):`Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.`);return e}function Yg(e,t){e&&Object.assign(e.style,t)}var Xg={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},rse={position:`fixed`},Zg=m.forwardRef(function(e,t){let{anchor:r,className:i,render:a,positionMethod:o,side:s,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:h,disableAnchorTracking:g,alignItemWithTrigger:_=!0,collisionAvoidance:v=zo,style:y,...b}=e,{store:x,listRef:S,labelsRef:C,alignItemWithTriggerActiveRef:T,selectedItemTextRef:E,valuesRef:D,initialValueRef:O,popupRef:A,setValue:j,floatingContext:N}=Vg(),P=Z(x,Hg.open),F=Z(x,Hg.mounted),I=Z(x,Hg.modal),L=Z(x,Hg.value),R=Z(x,Hg.openMethod),z=Z(x,Hg.positionerElement),B=Z(x,Hg.triggerElement),V=Z(x,Hg.isItemEqualToValue),H=Z(x,Hg.transitionStatus),U=m.useRef(null),W=m.useRef(null),[G,ee]=m.useState(_),K=F&&G&&R!==`touch`;!F&&G!==_&&ee(_),m.useImperativeHandle(T,()=>K),bd((K||I)&&P,R===`touch`,z,B);let te=hd({anchor:r,floatingRootContext:N,positionMethod:o,mounted:F,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:h,disableAnchorTracking:g??K,collisionAvoidance:v,keepMounted:!0}),q=K?`none`:te.side,ne=K?rse:te.positionerStyles,re={open:P,side:q,align:te.align,anchorHidden:te.anchorHidden};k(()=>{x.set(`popupSide`,te.side)},[x,te.side]);let ie=yd(e,re,{styles:ne,transitionStatus:H,props:b,refs:[t,x.useStateSetter(`positionerElement`)],hidden:!F,inert:!P}),ae=m.useRef(0),oe=w(e=>{if(D.current.length===0)return;let t=ae.current;if(ae.current=e.size,e.size===t)return;let n=Y(Ve);if(t!==0&&!x.state.multiple&&L!==null&&ql(D.current,L,V)===-1){let e=O.current,t=e!=null&&ql(D.current,e,V)!==-1?e:null;j(t,n),t===null&&(x.set(`selectedIndex`,null),E.current=null)}if(t!==0&&x.state.multiple&&Array.isArray(L)){let e=L.filter(e=>ql(D.current,e,V)!==-1);e.length!==L.length&&(j(e,n),e.length===0&&(x.set(`selectedIndex`,null),E.current=null))}if(P&&K){x.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};Yg(z,e),Yg(A.current,e)}}),se=m.useMemo(()=>({...te,side:q,alignItemWithTriggerActive:K,setControlledAlignItemWithTrigger:ee,scrollUpArrowRef:U,scrollDownArrowRef:W}),[te,q,K,ee]);return(0,n.jsx)(M,{elementsRef:S,labelsRef:C,onMapChange:oe,children:(0,n.jsxs)(qg.Provider,{value:se,children:[F&&I&&(0,n.jsx)(Tl,{inert:wl(!P),cutout:B}),ie]})})});process.env.NODE_ENV!==`production`&&(Zg.displayName=`SelectPositioner`);var ise={...nl,...Rt},Qg=m.forwardRef(function(e,t){let{render:r,className:i,style:a,finalFocus:o,...s}=e,{store:c,popupRef:l,onOpenChangeComplete:u,setOpen:d,valueRef:f,firstItemTextRef:p,selectedItemTextRef:h,multiple:g,handleScrollArrowVisibility:_,scrollHandlerRef:v,listRef:y,highlightItemOnHover:b,floatingContext:x}=Vg(),{side:S,align:C,alignItemWithTriggerActive:T,isPositioned:E,setControlledAlignItemWithTrigger:D}=Jg(),O=Of(!0)!=null,A=Du(),{nonce:j,disableStyleElements:M}=lp(),N=Z(c,Hg.id),P=Z(c,Hg.open),F=Z(c,Hg.openMethod),I=Z(c,Hg.mounted),L=Z(c,Hg.popupProps),R=Z(c,Hg.transitionStatus),z=Z(c,Hg.triggerElement),B=Z(c,Hg.positionerElement),V=Z(c,Hg.listElement),H=m.useRef(!1),U=m.useRef(!1),W=m.useRef({}),G=Dt(),ee=w(e=>{if(!B||!l.current||!U.current)return;let t=B.style.top===`0px`,n=B.style.bottom===`0px`;if(H.current||!T||!t&&!n){_(e);return}let r=t_(B),i=n_(B.getBoundingClientRect().height,`y`,r),a=Cn(B),o=Zt(B),s=o.getComputedStyle(B),c=parseFloat(s.marginTop),u=parseFloat(s.marginBottom),d=$g(o.getComputedStyle(l.current)),f=Math.min(a.documentElement.clientHeight-c-u,d),p=e.scrollTop,m=e_(e),h=null,g=e=>{B.style.height=`${e}px`},v=t?m-p:p,y=Math.min(i+v,f);if(v<=1){let n=Cp(v,0,f-i);n>0&&g(i+n),e.scrollTop=t?m:0,f-(i+n)<=1&&(H.current=!0),_(e);return}f-y>1?h=t?1/0:0:n&&p<m&&(h=p-(v-(i+v-f)));let b=Math.ceil(y);if(b!==0&&g(b),h!=null){let t=Cp(h,0,e_(e));Math.abs(e.scrollTop-t)>1&&(e.scrollTop=t)}b>=f-1&&(H.current=!0),_(e)});m.useImperativeHandle(v,()=>ee,[ee]),Nn({open:P,ref:l,onComplete(){P&&u?.(!0)}});let K={open:P,transitionStatus:R,side:S,align:C};k(()=>{!B||!l.current||Object.keys(W.current).length||(W.current={top:B.style.top||`0`,left:B.style.left||`0`,right:B.style.right,height:B.style.height,bottom:B.style.bottom,minHeight:B.style.minHeight,maxHeight:B.style.maxHeight,marginTop:B.style.marginTop,marginBottom:B.style.marginBottom})},[l,B]),k(()=>{P||T||(U.current=!1,H.current=!1,Yg(B,W.current))},[P,T,B,l]),k(()=>{let e=l.current;if(!P||!z||!B||!e||T&&!E||c.state.transitionStatus===`ending`)return;if(U.current=!0,e.style.removeProperty(`--transform-origin`),!T){G.request(()=>_(V||e));return}let t=ase(e);try{let t=h.current;t?.isConnected||(t=!Hg.hasSelectedValue(c.state)&&p.current?.isConnected?p.current:null);let n=f.current,r=Zt(B),i=r.getComputedStyle(B),a=r.getComputedStyle(e),o=Cn(z),s=t_(z),l=r_(z.getBoundingClientRect(),s),u=r_(B.getBoundingClientRect(),s),d=l.height,m=V||e,g=m.scrollHeight,v=parseFloat(a.borderBottomWidth),x=parseFloat(i.marginTop)||10,S=parseFloat(i.marginBottom)||10,C=parseFloat(i.minHeight)||100,w=$g(a),T=o.documentElement.clientHeight-x-S,E=o.documentElement.clientWidth,O=T-l.bottom+d,k,j=A===`rtl`?l.right-u.width:l.left,M=0;if(t&&n){let e=r_(n.getBoundingClientRect(),s);k=r_(t.getBoundingClientRect(),s),j=u.left+(A===`rtl`?e.right-k.right:e.left-k.left);let r=e.top-l.top+e.height/2;M=k.top-u.top+k.height/2-r}let N=O+M+S+v,P=Math.min(T,N),F=T-x-S,I=N-P,L=E-5;B.style.left=`${Cp(j,5,L-u.width)}px`,B.style.height=`${P}px`,B.style.maxHeight=`none`,B.style.marginTop=`${x}px`,B.style.marginBottom=`${S}px`,e.style.height=`100%`;let R=e_(m),U=I>=R-1;U&&(P=Math.min(T,u.height)-(I-R));let G=l.top<20||l.bottom>T-20||Math.ceil(P)+1<Math.min(g,C),ee=(r.visualViewport?.scale??1)!==1&&Ii;if(G||ee){Yg(B,W.current),D(!1);return}let K=Math.max(C,P);if(U){let e=Math.max(0,T-N);B.style.top=u.height>=F?`0`:`${e}px`,B.style.height=`${P}px`,m.scrollTop=e_(m)}else B.style.bottom=`0`,m.scrollTop=I;if(k){let t=u.top,n=u.height,r=k.top+k.height/2,i=Cp(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(K===T||P>=w)&&(H.current=!0),_(m),b&&c.state.selectedIndex===null&&c.state.activeIndex===null&&y.current[0]!=null&&c.set(`activeIndex`,0)}finally{t()}},[c,P,B,z,f,p,h,l,_,T,D,G,V,y,b,A,E]),m.useEffect(()=>{if(!T||!B||!P)return;let e=Zt(B);function t(e){d(!1,Y(bt,e))}return kn(e,`resize`,t)},[d,T,B,P]);let te={...V?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":g||void 0,id:`${N}-list`},onKeyDown(e){O&&gl.has(e.key)&&e.stopPropagation()},onScroll(e){V||ee(e.currentTarget)},...T&&{style:V?{height:`100%`}:Xg},className:!V&&T?Cg.className:void 0},q=J(`div`,e,{ref:[t,l],state:K,stateAttributesMapping:ise,props:[L,te,vd(R),s]});return(0,n.jsxs)(m.Fragment,{children:[!M&&Cg.getElement(j),(0,n.jsx)(ss,{context:x,modal:!1,disabled:!I,openInteractionType:F,returnFocus:o,restoreFocus:!0,children:q})]})});process.env.NODE_ENV!==`production`&&(Qg.displayName=`SelectPopup`);function $g(e){let t=e.maxHeight;return t.endsWith(`px`)&&parseFloat(t)||1/0}function e_(e){return kg(e.scrollHeight,e.clientHeight)}function t_(e){return ws.getScale(e)}function n_(e,t,n){return e/n[t]}function r_(e,t){return Ua({x:n_(e.x,`x`,t),y:n_(e.y,`y`,t),width:n_(e.width,`x`,t),height:n_(e.height,`y`,t)})}var i_=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function ase(e){let{style:t}=e,n={};for(let[e,r]of i_)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of i_){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var a_=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s,multiple:c}=Vg(),{alignItemWithTriggerActive:l}=Jg(),u=Z(o,Hg.hasScrollArrows),d=Z(o,Hg.openMethod),f={id:`${Z(o,Hg.id)}-list`,role:`listbox`,"aria-multiselectable":c||void 0,onScroll(e){s.current?.(e.currentTarget)},...l&&{style:Xg},className:u&&d!==`touch`?Cg.className:void 0};return J(`div`,e,{ref:[t,o.useStateSetter(`listElement`)],props:[f,a]})});process.env.NODE_ENV!==`production`&&(a_.displayName=`SelectList`);var o_=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(o_.displayName=`SelectItemContext`);function s_(){let e=m.useContext(o_);if(!e)throw Error(process.env.NODE_ENV===`production`?B(57):`Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.`);return e}var c_=m.memo(m.forwardRef(function(e,t){let{render:r,className:i,style:a,value:o=null,label:s,disabled:c=!1,nativeButton:l=!1,...u}=e,d=m.useRef(null),f=Mt({guess:!0,label:s,textRef:d}),{store:p,itemProps:h,setOpen:g,setValue:_,selectionRef:v,typingRef:y,valuesRef:b,multiple:x,selectedItemTextRef:S,disabled:C,readOnly:w}=Vg(),T=C||c,E=Z(p,Hg.isActive,f.index),D=Z(p,Hg.open),O=Z(p,Hg.isSelected,o),A=Z(p,Hg.isSelectedByFocus,f.index),j=Z(p,Hg.isItemEqualToValue),M=f.index,N=m.useRef(null);k(()=>{let e=b.current;return e[M]=o,()=>{delete e[M]}},[M,o,b]),k(()=>{let e=p.state.value,t=e;x&&Array.isArray(e)&&(t=e.length>0?e[e.length-1]:void 0),t!==void 0&&Kl(o,t,j)&&(p.set(`selectedIndex`,M),d.current&&(S.current=d.current))},[M,x,j,p,o,S]);let P=m.useRef(`mouse`),F=m.useRef(!1),{getButtonProps:I,buttonRef:L}=Tn({disabled:T,focusableWhenDisabled:!0,native:l,composite:!0}),R={disabled:T,selected:O,highlighted:E};function z(e){if(C||w)return;let t=p.state.value;if(x){let n=Array.isArray(t)?t:[],r=O?Yl(n,o,j):[...n,o];_(r,Y(Ke,e))}else _(o,Y(Ke,e)),g(!1,Y(Ke,e))}function B(){v.current.dragY=0}let V={role:`option`,"aria-selected":O,tabIndex:D&&E?0:-1,onKeyDown(e){p.set(`activeIndex`,M),e.key===` `&&y.current&&e.preventDefault()},onClick(e){let t=P.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&Xi(e.nativeEvent)&&(n!==void 0||E),i=t&&!r&&!F.current;F.current=!1,!(T||i)&&z(e.nativeEvent)},onPointerEnter(e){P.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=v.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){P.current=e.pointerType,F.current=!0,B()},onMouseUp(){if(B(),T||P.current===`touch`||F.current)return;let e=!v.current.allowSelectedMouseUp&&O,t=!v.current.allowUnselectedMouseUp&&!O;e||t||(F.current=!0,N.current?.click(),F.current=!1)}},H=J(`div`,e,{ref:[L,t,f.ref,N],state:R,props:[h,V,u,I]}),U=m.useMemo(()=>({selected:O,index:M,textRef:d,selectedByFocus:A}),[O,M,d,A]);return(0,n.jsx)(o_.Provider,{value:U,children:H})}));process.env.NODE_ENV!==`production`&&(c_.displayName=`SelectItem`);var l_=m.forwardRef(function(e,t){let{selected:r}=s_();return e.keepMounted||r?(0,n.jsx)(u_,{...e,ref:t}):null});process.env.NODE_ENV!==`production`&&(l_.displayName=`SelectItemIndicator`);var u_=m.memo(m.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=s_(),c=m.useRef(null),{transitionStatus:l,setMounted:u}=Ot(s),d=J(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:Rt});return Nn({open:s,ref:c,onComplete(){s||u(!1)}}),d}));process.env.NODE_ENV!==`production`&&(u_.displayName=`Inner`);var d_=m.memo(m.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i}=s_(),{firstItemTextRef:a,selectedItemTextRef:o}=Vg(),{render:s,className:c,style:l,...u}=e;return J(`div`,e,{ref:[m.useCallback(e=>{e&&(n===0&&(a.current=e),i&&(o.current=e))},[a,o,n,i]),t,r],props:u})}));process.env.NODE_ENV!==`production`&&(d_.displayName=`SelectItemText`);var f_=m.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o,...s}=e,c=a===`up`,{store:l,popupRef:u,listRef:d,handleScrollArrowVisibility:f,scrollArrowsMountedCountRef:p}=Vg(),{side:m,scrollDownArrowRef:h,scrollUpArrowRef:g}=Jg(),_=Z(l,c?Hg.scrollUpArrowVisible:Hg.scrollDownArrowVisible),v=Z(l,Hg.openMethod),y=_&&v!==`touch`,b=Hi(),x=c?g:h,{mounted:S,transitionStatus:C,setMounted:w}=Ot(y);k(()=>(p.current+=1,l.set(`hasScrollArrows`,!0),()=>{p.current=Math.max(0,p.current-1),p.current===0&&l.set(`hasScrollArrows`,!1)}),[l,p]),Nn({open:y,ref:x,onComplete(){y||w(!1)}});let T=J(`div`,e,{ref:[t,x],state:{direction:a,visible:y,side:m,transitionStatus:C},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||b.isStarted())return;l.set(`activeIndex`,null);function t(){let e=l.state.listElement??u.current;if(!e)return;l.set(`activeIndex`,null),f(e);let n=kg(e.scrollHeight,e.clientHeight),r=Ag(e.scrollTop,n),i=r===(c?0:n),a=d.current;if(r!==e.scrollTop&&(e.scrollTop=r),i){b.clear();return}if(a.length>0){let t=x.current?.offsetHeight||0;e.scrollTop=ose(a,c,r,e.clientHeight,t,n)}b.start(40,t)}b.start(40,t)},onMouseLeave(){b.clear()}},s],stateAttributesMapping:Rt});return S||o?T:null});process.env.NODE_ENV!==`production`&&(f_.displayName=`SelectScrollArrow`);function ose(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?Ag(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?Ag(l.offsetTop+l.offsetHeight-r+i,a):a}var p_=m.forwardRef(function(e,t){return(0,n.jsx)(f_,{...e,ref:t,direction:`down`})});process.env.NODE_ENV!==`production`&&(p_.displayName=`SelectScrollDownArrow`);var m_=m.forwardRef(function(e,t){return(0,n.jsx)(f_,{...e,ref:t,direction:`up`})});process.env.NODE_ENV!==`production`&&(m_.displayName=`SelectScrollUpArrow`);var h_=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(h_.displayName=`SelectGroupContext`);function sse(){let e=m.useContext(h_);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(56):`Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>.`);return e}var g_=m.forwardRef(function(e,t){let{render:r,className:i,style:a,...o}=e,[s,c]=m.useState(),l=m.useMemo(()=>({labelId:s,setLabelId:c}),[s,c]),u=J(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":s},o]});return(0,n.jsx)(h_.Provider,{value:l,children:u})});process.env.NODE_ENV!==`production`&&(g_.displayName=`SelectGroup`);var __=m.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=sse(),c=Be(a);return k(()=>(s(c),()=>{s(e=>e===c?void 0:e)}),[c,s]),J(`div`,e,{ref:t,props:[{id:c},o]})});process.env.NODE_ENV!==`production`&&(__.displayName=`SelectGroupLabel`);function v_(e,t){return e-t}function y_(e,t,n,r,i,a){let o=Cp(e,n,r);if(!i)return o;let s=a.slice();return s[t]=Cp(o,a[t-1]??-1/0,a[t+1]??1/0),s.sort(v_)}function b_(e,t,n){if(!Array.isArray(e))return!0;let r=t*n;for(let t=0;t<e.length-1;t+=1)if(!(Math.abs(e[t]-e[t+1])>=r))return!1;return!0}var x_=()=>null,S_={activeThumbIndex:x_,max:x_,min:x_,minStepsBetweenValues:x_,step:x_,values:x_,...ou},C_=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(C_.displayName=`SliderRootContext`);function w_(){let e=m.useContext(C_);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(62):`Base UI: SliderRootContext is missing. Slider parts must be placed within <Slider.Root>.`);return e}function cse(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&Cu(e,t)}var T_=m.forwardRef(function(e,t){let{"aria-labelledby":r,className:i,defaultValue:a,disabled:o=!1,id:s,format:c,largeStep:l=10,locale:u,render:d,max:f=100,min:p=0,minStepsBetweenValues:h=0,form:g,name:v,onValueChange:y,onValueCommitted:b,orientation:x=`horizontal`,step:S=1,thumbCollisionBehavior:C=`push`,thumbAlignment:T=`center`,value:E,style:D,...A}=e,j=Be(s),N=Qre(j),P=w(y),F=w(b),{clearErrors:I}=fu(),{state:L,disabled:R,name:z,setTouched:B,setDirty:V,validityData:H,validation:U}=lu(),{labelId:W}=mu(),[G,ee]=m.useState(),K=r??Mu(W,G),te=R||o,q=z??v,[ne,re]=_({controlled:E,default:a??p,name:`Slider`}),ie=m.useRef(null),ae=m.useRef(null),oe=m.useRef([]),se=m.useRef(null),ce=m.useRef(-1),le=m.useRef(null),ue=m.useRef(Ve),[de,fe]=m.useState(-1),[pe,me]=m.useState(-1),[he,ge]=m.useState(!1),[_e,ve]=m.useState(()=>new Map),[ye,be]=m.useState([void 0,void 0]),xe=w(e=>{fe(e),e!==-1&&me(e)}),Se=w(e=>{e&&(ae.current=e)}),Ce=Array.isArray(ne),we=m.useMemo(()=>Ce?ne.map(e=>Cp(e,p,f)).sort(v_):[Cp(ne,p,f)],[f,p,Ce,ne]),Te=Ce?we:we[0];uu(U.inputRef,j,Te,void 0,!te,v),kl(Te,()=>{I(q),U.change(Te);let e=H.initialValue,t;t=Array.isArray(Te)&&Array.isArray(e)?!Cu(Te,e):Te!==e,V(t)});let Ee=w((e,t)=>{if(Number.isNaN(e)||cse(e,ne))return!1;let n=t.event,r=n.constructor,i=new r(n.type,n);return Object.defineProperty(i,"target",{writable:!0,value:{value:e,name:q}}),t.event=i,P(e,t),!t.isCanceled&&(ue.current=t.reason,re(e),!0)}),De=w((e,t,n)=>{let r=y_(e,t,p,f,Ce,we);if(b_(r,S,h)){let e=`key`in n?ct:$e,i=Ee(r,Y(e,n.nativeEvent,void 0,{activeThumbIndex:t}));B(!0),i&&F(r,xt(e,n.nativeEvent))}});process.env.NODE_ENV!==`production`&&p>=f&&O("Slider `max` must be greater than `min`."),k(()=>{if(!te)return;let e=ta(Cn(ie.current));na(ie.current,e)&&e.blur(),de!==-1&&xe(-1)},[de,te,xe]);let Oe=m.useMemo(()=>({...L,activeThumbIndex:de,disabled:te,dragging:he,orientation:x,max:f,min:p,minStepsBetweenValues:h,step:S,values:we}),[L,de,te,he,f,p,h,x,S,we]),ke=m.useMemo(()=>({active:de,controlRef:ae,disabled:te,dragging:he,validation:U,format:c,handleInputChange:De,indicatorPosition:ye,inset:T!==`center`,labelId:K,rootLabelId:N,largeStep:l,lastUsedThumbIndex:pe,lastChangeReasonRef:ue,form:g,locale:u,max:f,min:p,minStepsBetweenValues:h,name:q,onValueCommitted:F,orientation:x,pressedThumbCenterOffsetRef:se,pressedThumbIndexRef:ce,pressedValuesRef:le,registerFieldControlRef:Se,renderBeforeHydration:T===`edge`,setActive:xe,setDragging:ge,setIndicatorPosition:be,setLabelId:ee,setValue:Ee,state:Oe,step:S,thumbCollisionBehavior:C,thumbMap:_e,thumbRefs:oe,values:we}),[de,K,N,te,he,U,c,De,ye,l,pe,g,u,f,p,h,q,F,x,Se,xe,Ee,Oe,S,C,T,_e,we]),Ae=J(`div`,e,{state:Oe,ref:[t,ie],props:[{"aria-labelledby":K,id:j,role:`group`},A,e=>U.getValidationProps(te,e)],stateAttributesMapping:S_});return(0,n.jsx)(C_.Provider,{value:ke,children:(0,n.jsx)(M,{elementsRef:oe,onMapChange:ve,children:Ae})})});process.env.NODE_ENV!==`production`&&(T_.displayName=`SliderRoot`);var E_=m.forwardRef(function(e,t){let{"aria-live":n=`off`,render:r,className:i,children:a,style:o,...s}=e,{thumbMap:c,state:l,values:u,format:d,locale:f}=w_(),p=Array.from(c.values(),({inputId:e})=>e).join(` `).trim()||void 0,h=m.useMemo(()=>u.map(e=>mm(e,f,d)),[d,f,u]),g=h.join(` – `);return J(`output`,e,{state:l,ref:t,props:[{"aria-live":n,children:typeof a==`function`?a(h,u):g,htmlFor:p},s],stateAttributesMapping:S_})});process.env.NODE_ENV!==`production`&&(E_.displayName=`SliderValue`);function D_(e,t){let n=e.getBoundingClientRect();return t?(n.top+n.bottom)/2:(n.left+n.right)/2}function O_(e){if(e===0)return 0;if(Math.abs(e)<1){let t=e.toExponential().split(`e-`),n=t[0].split(`.`)[1];return(n?n.length:0)+parseInt(t[1],10)}let t=e.toString().split(`.`)[1];return t?t.length:0}function k_(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Math.max(O_(t),O_(n))))}function A_(e,t,n,r,i,a,o,s){let c=e.slice(),l=a*o,u=c.length-1,d=s??e;c[t]=Cp(n,r+t*l,i-(u-t)*l);for(let e=t+1;e<=u;e+=1){let t=c[e-1]+l,n=i-(u-e)*l,r=d[e],a=Math.max(c[e],t);r<a&&(a=Math.max(r,t)),c[e]=Cp(a,t,n)}for(let e=t-1;e>=0;--e){let t=c[e+1]-l,n=r+e*l,i=d[e],a=Math.min(c[e],t);i>a&&(a=Math.min(i,t)),c[e]=Cp(a,n,t)}for(let e=0;e<=u;e+=1)c[e]=Number(c[e].toFixed(12));return c}function lse(e,t,n,r,i,a,o,s,c,l){let u=n??t,d=r??t;if(!(u.length>1))return{value:a,thumbIndex:0,didSwap:!1};let f=c*l;if(e===`push`)return{value:A_(u,i,a,o,s,c,l),thumbIndex:i,didSwap:!1};let p=u.slice(),m=p[i-1],h=p[i+1],g=m==null?o:m+f,_=h==null?s:h-f,v=Number(Cp(a,g,_).toFixed(12));switch(p[i]=v,e){case`swap`:{let e=u[i],t=1e-7,n=a>e,r=a<e,g=n&&h!=null&&a>=h-t,_=r&&m!=null&&a<=m+t;if(!g&&!_)return{value:p,thumbIndex:i,didSwap:!1};let y=g?i+1:i-1,b=p.map((e,t)=>t===i?v:d[t]??u[t]),x=a;x=g?Math.max(a,p[y]):Math.min(a,p[y]);let S=A_(p,y,x,o,s,c,l,b),C=g?y-1:y+1,w=S[C-1],T=S[C+1],E=w==null?o:w+f;E=Math.max(E,o+C*f);let D=T==null?s:T-f;D=Math.min(D,s-(S.length-1-C)*f);let O=Cp(v,E,D);return S[C]=Number(O.toFixed(12)),{value:S,thumbIndex:y,didSwap:!0}}default:return{value:p,thumbIndex:i,didSwap:!1}}}var use=2;function dse(e,t){if(!e)return{start:0,end:0};function n(e){let t=e==null?0:parseFloat(e);return Number.isNaN(t)?0:t}let r=t?`Top`:`InlineStart`,i=t?`Bottom`:`InlineEnd`;return{start:n(e[`border${r}Width`])+n(e[`padding${r}`]),end:n(e[`border${i}Width`])+n(e[`padding${i}`])}}function fse(e,t){if(t.current!=null&&e.changedTouches){let n=e;for(let e=0;e<n.changedTouches.length;e+=1){let r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return null}return{x:e.clientX,y:e.clientY}}var j_=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{disabled:o,dragging:s,inset:c,lastChangeReasonRef:l,max:u,min:d,minStepsBetweenValues:f,onValueCommitted:p,orientation:h,pressedThumbCenterOffsetRef:g,pressedThumbIndexRef:_,pressedValuesRef:v,registerFieldControlRef:y,renderBeforeHydration:b,setActive:x,setDragging:S,setValue:C,state:T,step:E,thumbCollisionBehavior:D,thumbRefs:O,values:k}=w_(),A=Du(),j=k.length>1,M=h===`vertical`,N=m.useRef(null),P=m.useRef(null),F=w(e=>{e&&P.current==null&&(P.current=Zt(e).getComputedStyle(e))}),I=m.useRef(null),L=m.useRef(0),R=m.useRef(0),z=m.useRef(null),B=An(k);function V(e){return e?.querySelector(`input[type="range"]`)}function H(e){_.current=e,O.current[e]||(g.current=null)}function U(){_.current=-1,g.current=null}function W(e){return en(e)?O.current.some(t=>!en(t)||!na(t,e)?!1:V(t)?.disabled===!0):!1}function G(e){let t=N.current,n=_.current;if(!t||n<0||n>=k.length)return n>=k.length&&(z.current=null),null;let{width:r,height:i,bottom:a,left:o,right:s}=t.getBoundingClientRect(),c=dse(P.current,M),l=R.current,p=(M?i:r)-c.start-c.end-l*2,m=g.current??0,h=e.x-m,y=e.y-m,b=Cp(((M?a-y-c.end:(A===`rtl`?s-h:h-o)-c.start)-l)/p,0,1),x=(u-d)*b+d;return x=k_(x,E,d),x=Cp(x,d,u),j?lse(D,k,B.current,v.current,n,x,d,u,E,f):{value:x,thumbIndex:n,didSwap:!1}}function ee(e){v.current=j?k.slice():null,z.current=null,B.current=k;let t=_.current,n=t;if(t>-1&&t<k.length){if(k[t]===u){let e=t;for(;e>0&&k[e-1]===u;)--e;n=e}}else{let t=M?`y`:`x`,r;n=-1;for(let i=0;i<O.current.length;i+=1){let a=O.current[i];if(en(a)&&!V(a)?.disabled){let o=D_(a,M),s=Math.abs(e[t]-o);(r===void 0||s<=r)&&(n=i,r=s)}}}if(n>-1&&n!==t&&H(n),c){let e=O.current[n];if(en(e)){let t=e.getBoundingClientRect();R.current=t[M?`height`:`width`]/2}}}function K(e){let t=V(O.current?.[e]);t&&t.focus({preventScroll:!0,focusVisible:!1})}function te(e,t,n){let r=C(e.value,Y(t,n,void 0,{activeThumbIndex:e.thumbIndex}));return r&&(z.current=e.value,B.current=Array.isArray(e.value)?e.value:[e.value],e.didSwap&&(H(e.thumbIndex),K(e.thumbIndex))),r}let q=w(e=>{let t=fse(e,I);if(t==null)return;if(L.current+=1,e.type===`pointermove`&&e.buttons===0){ne(e);return}let n=G(t);n!=null&&b_(n.value,E,f)&&(!s&&L.current>use&&S(!0),te(n,ut,e))}),ne=w(e=>{x(-1),S(!1),g.current=null;let t=z.current;if(Array.isArray(t)&&t.length!==k.length&&(z.current=null),z.current!=null){let t=l.current;p(z.current,xt(t,e))}`pointerType`in e&&N.current?.hasPointerCapture(e.pointerId)&&N.current?.releasePointerCapture(e.pointerId),_.current=-1,I.current=null,ie()}),re=w(e=>{if(o)return;if(W(ra(e))){U();return}let t=e.changedTouches[0];if(t==null)return;I.current=t.identifier;let n={x:t.clientX,y:t.clientY};ee(n);let r=G(n);if(r==null)return;K(r.thumbIndex),te(r,Xe,e),L.current=0;let i=Cn(N.current);i.addEventListener(`touchmove`,q,{passive:!0}),i.addEventListener(`touchend`,ne,{passive:!0})}),ie=w(()=>{let e=Cn(N.current);e.removeEventListener(`pointermove`,q),e.removeEventListener(`pointerup`,ne),e.removeEventListener(`touchmove`,q),e.removeEventListener(`touchend`,ne),v.current=null,z.current=null}),ae=Dt();return m.useEffect(()=>{let e=N.current;if(!e)return()=>ie();let t=kn(e,`touchstart`,re,{passive:!0});return()=>{t(),ae.cancel(),ie()}},[ie,re,N,ae]),m.useEffect(()=>{o&&ie()},[o,ie]),J(`div`,e,{state:T,ref:[t,y,N,F],props:[{"data-base-ui-slider-control":b?``:void 0,onPointerDown(e){let t=N.current,n=ra(e.nativeEvent);if(!t||o||e.defaultPrevented||!en(n)||e.button!==0)return;if(W(n)){U();return}let r={x:e.clientX,y:e.clientY};ee(r);let i=G(r);if(i==null)return;na(O.current[i.thumbIndex],ta(Cn(t)))?e.preventDefault():ae.request(()=>{K(i.thumbIndex)}),S(!0),g.current??te(i,Xe,e.nativeEvent),e.nativeEvent.pointerId&&t.setPointerCapture(e.nativeEvent.pointerId),L.current=0;let a=Cn(t);a.addEventListener(`pointermove`,q,{passive:!0}),a.addEventListener(`pointerup`,ne,{once:!0})}},a],stateAttributesMapping:S_})});process.env.NODE_ENV!==`production`&&(j_.displayName=`SliderControl`);var M_=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=w_();return J(`div`,e,{state:o,ref:t,props:[{style:{position:`relative`}},a],stateAttributesMapping:S_})});process.env.NODE_ENV!==`production`&&(M_.displayName=`SliderTrack`);function pse(){return ae}function mse(){return!1}function hse(){return!0}function N_(){return(0,Ws.useSyncExternalStore)(pse,mse,hse)}function P_(e){let{script:t}=e,{nonce:r}=lp();return N_()?(0,n.jsx)(`script`,{nonce:r,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var gse,_se=new Set([...gl,ml,hl]);function vse(e,t,n,r){if(!(t<0))return e.length===2?`${mm(e[t],r,n)} ${t===0?`start`:`end`} range`:n?mm(e[t],r,n):void 0}function yse(e,t,n,r,i){let a=e+t*n;return Cp(Number(a.toFixed(Math.max(O_(e),O_(t),O_(r)))),r,i)}var F_=m.forwardRef(function(e,t){let{render:r,children:i,className:a,"aria-describedby":o,"aria-label":s,"aria-labelledby":c,"aria-valuetext":l,disabled:u=!1,getAriaLabel:d,getAriaValueText:f,id:p,index:h,inputRef:g,onBlur:_,onFocus:v,onKeyDown:y,tabIndex:b,style:x,...S}=e,C=Be(p),{active:T,lastUsedThumbIndex:E,controlRef:D,disabled:O,validation:A,format:j,handleInputChange:M,inset:N,labelId:P,largeStep:F,locale:I,max:L,min:R,minStepsBetweenValues:z,form:B,name:V,orientation:H,pressedThumbCenterOffsetRef:W,pressedThumbIndexRef:G,renderBeforeHydration:ee,setActive:K,setIndicatorPosition:te,state:q,step:ne,thumbRefs:re,values:ie}=w_(),ae=Du(),oe=u||O,se=ie.length>1,ce=H===`vertical`,le=ae===`rtl`,{setTouched:ue,setFocused:de,validationMode:pe}=lu(),me=m.useRef(null),he=m.useRef(null),ge=m.useRef(!1),_e=w(e=>{ge.current||v?.(e)}),ve=w(e=>{ge.current||_?.(e)}),ye=Be(),be=hu(),xe=se?ye:be,{ref:Se,index:Ce}=Mt({metadata:m.useMemo(()=>({inputId:xe}),[xe])}),we=se?h??Ce:0,Te=we===ie.length-1,Ee=ie[we],De=hm(Ee,R,L),[Oe,ke]=m.useState(),Ae=N_(),je=E>=0&&E<ie.length?E:-1,Me=w(()=>{let e=D.current,t=me.current;if(!e||!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=ce?`height`:`width`,a=r[i]-n[i],o=(n[i]/2+a*De/100)/r[i]*100,s=Number.isFinite(o)?o:void 0;ke(s),we===0?te(e=>[s,e[1]]):Te&&te(e=>[e[0],s])});k(()=>{N&&queueMicrotask(Me)},[Me,N]),k(()=>{N&&Me()},[Me,N,De]),k(()=>{if(!N)return;let e=D.current,t=me.current;if(!e||!t)return;let n=Zt(e).ResizeObserver;if(typeof n!=`function`)return;let r=new n(Me);return r.observe(e),r.observe(t),()=>{r.disconnect()}},[D,Me,N]);let Ne=ce?`bottom`:`insetInlineStart`,Pe=ce?`left`:`top`,Fe;se?T===we?Fe=2:je===we&&(Fe=1):T===we&&(Fe=1);let Ie;Ie=!N&&!Number.isFinite(De)?Sa:{position:`absolute`,[Ne]:N?`var(--position)`:`${De}%`,[Pe]:`50%`,translate:`${(ce||!le?-1:1)*50}% ${(ce?1:-1)*50}%`,zIndex:Fe,...N&&{"--position":`${Oe??0}%`,visibility:ee&&Ae||Oe===void 0?`hidden`:void 0}};let Le;ce&&(Le=le?`vertical-rl`:`vertical-lr`);let Re=typeof d==`function`?d(we):s,ze=fe({"aria-label":Re,"aria-labelledby":c??(Re==null?P:void 0),"aria-describedby":o,"aria-orientation":H,"aria-valuenow":Ee,"aria-valuetext":typeof f==`function`?f(mm(Ee,I,j),Ee,we):l??vse(ie,we,j,I),disabled:oe,form:B,id:xe,max:L,min:R,name:V,onChange(e){M(e.currentTarget.valueAsNumber,we,e)},onFocus(e){let t=ge.current;ge.current=!1,K(we),de(!0),t&&e.stopPropagation()},onBlur(e){if(ge.current){e.stopPropagation();return}K(-1),!re.current.some(t=>na(t,e.relatedTarget))&&(ue(!0),de(!1),pe===`onBlur`&&A.commit(y_(Ee,we,R,L,se,ie)))},onKeyDown(e){if(e.defaultPrevented||!_se.has(e.key))return;gl.has(e.key)&&e.stopPropagation();let t=null,n=0,r=e.shiftKey?F:ne,i=k_(Ee,ne,R);switch(e.key){case ll:n=1;break;case fl:n=le?-1:1;break;case ul:n=-1;break;case dl:n=le?1:-1;break;case ml:r=F,n=1;break;case hl:r=F,n=-1;break;case`End`:t=se&&Number.isFinite(ie[we+1])?ie[we+1]-ne*z:L;break;case pl:t=se&&Number.isFinite(ie[we-1])?ie[we-1]+ne*z:R}if(n!==0&&(t=yse(i,r,n,R,L)),t!==null){let n=e.currentTarget;la(n)||(ge.current=!0,n.blur(),n.focus({preventScroll:!0,focusVisible:!0})),M(t,we,e),e.preventDefault()}},step:ne,style:{...Sa,width:`100%`,height:`100%`,writingMode:Le},tabIndex:b,type:`range`,value:Ee??``},e=>A.getValidationProps(oe,e),{onFocus:_e,onBlur:ve,onKeyDown:y}),Ve=U(he,A.inputRef,g);return J(`div`,e,{state:q,ref:[t,Se,me],props:[{"data-index":we,children:(0,n.jsxs)(m.Fragment,{children:[i,(0,n.jsx)(`input`,{ref:Ve,...ze,suppressHydrationWarning:!0}),N&&Te&&ee&&(gse||=(0,n.jsx)(P_,{script:``}))]}),id:C,onPointerDown(e){if(oe)return;G.current=we;let t=D_(e.currentTarget,ce);W.current=(ce?e.clientY:e.clientX)-t},style:Ie,suppressHydrationWarning:ee||void 0},S],stateAttributesMapping:S_})});process.env.NODE_ENV!==`production`&&(F_.displayName=`SliderThumb`);function bse(e,t,n,r,i,a){let o={visibility:a||n&&(r===void 0||t&&i===void 0)?`hidden`:void 0,position:e?`absolute`:`relative`,[e?`width`:`height`]:`inherit`},s=`${r??0}%`,c=`${(i??0)-(r??0)}%`;return n&&(o[`--start-position`]=s,s=`var(--start-position)`,t&&(o[`--relative-size`]=c,c=`var(--relative-size)`)),o[e?`bottom`:`insetInlineStart`]=t?s:0,o[e?`height`:`width`]=t?c:s,o}var I_=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{indicatorPosition:o,inset:s,max:c,min:l,orientation:u,renderBeforeHydration:d,state:f,values:p}=w_(),m=N_(),h=bse(u===`vertical`,p.length>1,s,s?o[0]:hm(p[0],l,c),s?o[1]:hm(p[p.length-1],l,c),s&&d&&m);return J(`div`,e,{state:f,ref:t,props:[{"data-base-ui-slider-indicator":d?``:void 0,style:h,suppressHydrationWarning:d||void 0},a],stateAttributesMapping:S_})});process.env.NODE_ENV!==`production`&&(I_.displayName=`SliderIndicator`);var L_=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(L_.displayName=`SwitchRootContext`);function xse(){let e=m.useContext(L_);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(63):`Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>.`);return e}var R_={...ou,checked(e){return e?{"data-checked":``}:{"data-unchecked":``}}},z_=m.forwardRef(function(e,t){let{checked:r,className:i,defaultChecked:a,"aria-labelledby":o,form:s,id:c,inputRef:l,name:u,nativeButton:d=!1,onCheckedChange:f,readOnly:p=!1,required:h=!1,disabled:g=!1,render:v,uncheckedValue:y,value:b,style:x,...S}=e,{clearErrors:C}=fu(),{state:w,setTouched:T,setDirty:E,validityData:D,setFilled:O,setFocused:A,validationMode:j,disabled:M,name:N,validation:P}=lu(),{labelId:F}=mu(),I=M||g,L=N??u,R=m.useRef(null),z=U(R,l,P.inputRef),B=m.useRef(null),V=Be(),H=hu({id:c,implicit:!1,controlRef:B}),W=d?void 0:H,[G,ee]=_({controlled:r,default:!!a,name:`Switch`,state:`checked`});uu(B,V,G,void 0,!I,u),k(()=>{R.current&&O(R.current.checked)},[O]),kl(G,()=>{C(L),E(G!==D.initialValue),O(G),P.change(G)});let{getButtonProps:K,buttonRef:te}=Tn({disabled:I,native:d}),q=Wd(o,F,R,!d,W),ne={id:d?H:V,role:`switch`,"aria-checked":G,"aria-readonly":p||void 0,"aria-required":h||void 0,"aria-labelledby":q,onFocus(){I||A(!0)},onBlur(){let e=R.current;!e||I||(T(!0),A(!1),j===`onBlur`&&P.commit(e.checked))},onClick(e){if(p||I)return;e.preventDefault();let t=R.current;t&&wn(t,e)}},re={...P.getValidationProps(I),checked:G,disabled:I,form:s,id:W,name:L,required:h,style:L?Ca:Sa,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,ref:z,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(p){e.preventDefault();return}let t=e.currentTarget.checked,n=Y(Ve,e.nativeEvent);f?.(t,n),!n.isCanceled&&ee(t)},onClick(e){e.stopPropagation()},onFocus(){B.current?.focus()},...b===void 0?se:{value:b}},ie=m.useMemo(()=>({...w,checked:G,disabled:I,readOnly:p,required:h}),[w,G,I,p,h]),ae=J(`span`,e,{state:ie,ref:[t,B,te],props:[ne,S,K,e=>P.getValidationProps(I,e)],stateAttributesMapping:R_});return(0,n.jsxs)(L_.Provider,{value:ie,children:[ae,!G&&L&&y!==void 0&&(0,n.jsx)(`input`,{type:`hidden`,form:s,name:L,value:y,disabled:I}),(0,n.jsx)(`input`,{...re,suppressHydrationWarning:!0})]})});process.env.NODE_ENV!==`production`&&(z_.displayName=`SwitchRoot`);var B_=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return J(`span`,e,{state:xse(),ref:t,stateAttributesMapping:R_,props:a})});process.env.NODE_ENV!==`production`&&(B_.displayName=`SwitchThumb`);var V_=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(V_.displayName=`TabsRootContext`);function H_(){let e=m.useContext(V_);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(64):`Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.`);return e}var U_={tabActivationDirection:e=>({"data-activation-direction":e})},W_=m.forwardRef(function(e,t){let{className:r,defaultValue:i=0,onValueChange:a,orientation:o=`horizontal`,render:s,value:c,style:l,...u}=e,d=e.defaultValue!==void 0,f=m.useRef([]),[p,h]=m.useState(()=>new Map),[g,v]=_({controlled:c,default:i,name:`Tabs`,state:`value`}),y=c!==void 0,[b,x]=m.useState(()=>new Map),S=m.useRef(void 0),C=m.useCallback(e=>G_(b,e),[b]),[T,E]=m.useState(()=>({previousValue:g,tabActivationDirection:`none`})),{previousValue:D,tabActivationDirection:O}=T,A=O,j=!1;D!==g&&(A=K_(D,g,o,b),j=D!=null&&g!=null&&C(g)==null);let N=j?D:g,P=D!==N||O!==A;k(()=>{P&&E({previousValue:N,tabActivationDirection:A})},[N,P,A]);let F=w((e,t)=>{t.activationDirection=K_(g,e,o,b),a?.(e,t),!t.isCanceled&&v(e)}),I=w((e,t)=>{a?.(e,Y(t,void 0,void 0,{activationDirection:`none`}))}),L=w((e,t)=>(h(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{h(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),R=m.useCallback(e=>p.get(e),[p]),z=m.useCallback(e=>{for(let t of b.values())if(e===t.value)return t.id},[b]),B=m.useMemo(()=>({getTabElementBySelectedValue:C,getTabIdByPanelValue:z,getTabPanelIdByValue:R,onValueChange:F,orientation:o,registerMountedTabPanel:L,setTabMap:x,tabActivationDirection:A,value:g}),[C,z,R,F,o,L,x,A,g]),V=m.useMemo(()=>{for(let e of b.values())if(e.value===g)return e},[b,g]),H=m.useMemo(()=>{for(let e of b.values())if(!e.disabled)return e.value},[b]),U=m.useRef(!d),W=m.useRef(i),G=m.useRef(d),ee=m.useRef(!1);k(()=>{if(y)return;function e(e,t){v(e),E({previousValue:e,tabActivationDirection:`none`}),I(e,t),U.current=!1}if(b.size===0){ee.current&&g!==null&&!S.current?.isConnected&&e(null,gt);return}ee.current=!0,S.current=b.keys().next().value;let t=V?.disabled,n=V==null&&g!==null;if(!t&&g===W.current&&(G.current=!1),G.current&&t&&g===W.current)return;let r=U.current;if(t||n){let n=H??null;if(g===n){U.current=!1;return}let i=gt;r?i=_t:t&&(i=ht),e(n,i);return}r&&V!=null&&(I(g,_t),U.current=!1)},[H,y,I,V,v,b,g]);let K=J(`div`,e,{state:{orientation:o,tabActivationDirection:A},ref:t,props:u,stateAttributesMapping:U_});return(0,n.jsx)(V_.Provider,{value:B,children:(0,n.jsx)(M,{elementsRef:f,children:K})})});process.env.NODE_ENV!==`production`&&(W_.displayName=`TabsRoot`);function G_(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function K_(e,t,n,r){if(e==null||t==null)return`none`;let[i,a,o]=n===`horizontal`?[`left`,`left`,`right`]:[`top`,`up`,`down`],s=G_(r,e),c=G_(r,t);if(s==null||c==null)return s!==c&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?t>e?o:a:`none`;let l=s.getBoundingClientRect()[i],u=c.getBoundingClientRect()[i];return u<l?a:u>l?o:`none`}var q_=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(q_.displayName=`TabsListContext`);function J_(){let e=m.useContext(q_);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(65):`Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.`);return e}var Y_=m.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:s=!0,style:c,...l}=e,{value:u,getTabPanelIdByValue:d,onValueChange:f,orientation:p,tabActivationDirection:h}=H_(),{activateOnFocus:g,registerTabResizeObserverElement:_,tabsListElement:v}=J_(),{highlightedIndex:y,onHighlightedIndexChange:b}=Sn(),x=Be(o),{compositeProps:S,compositeRef:C,index:T}=Wf({metadata:m.useMemo(()=>({disabled:r,id:x,value:a}),[r,x,a])}),E=a===u,D=m.useRef(!1),O=m.useRef(null),A=w(e=>{O.current?.(),O.current=e?_(e):null});k(()=>{if(D.current){D.current=!1;return}if(!(E&&T>-1&&y!==T))return;let e=v;if(e!=null){let t=ta(Cn(e));if(t&&na(e,t))return}r||b(T)},[E,T,y,b,r,v]);let{getButtonProps:j,buttonRef:M}=Tn({disabled:r,native:s,focusableWhenDisabled:!0}),N=d(a),P=m.useRef(!1),F=m.useRef(!1);function I(e){f(a,Y(Ve,e.nativeEvent,void 0,{activationDirection:`none`}))}function L(e){E||r||I(e)}function R(e){E||r||g&&(!P.current||F.current)&&I(e)}function z(e){if(E||r)return;P.current=!0,F.current=e.button===0;let t=Cn(e.currentTarget);function n(){P.current=!1,F.current=!1,t.removeEventListener(`pointerup`,n),t.removeEventListener(`pointercancel`,n)}t.addEventListener(`pointerup`,n),t.addEventListener(`pointercancel`,n)}return J(`button`,e,{state:{disabled:r,active:E,orientation:p,tabActivationDirection:h},ref:[t,M,C,A],props:[S,{role:`tab`,"aria-controls":N,"aria-selected":E,id:x,onClick:L,onFocus:R,onPointerDown:z,[am]:E?``:void 0,onKeyDownCapture(){D.current=!0}},l,j],stateAttributesMapping:U_})});process.env.NODE_ENV!==`production`&&(Y_.displayName=`TabsTab`);var Sse,Cse={...U_,activeTabPosition:()=>null,activeTabSize:()=>null},X_=m.forwardRef(function(e,t){let{className:r,render:i,renderBeforeHydration:a=!1,style:o,...s}=e,{getTabElementBySelectedValue:c,orientation:l,tabActivationDirection:u,value:d}=H_(),{tabsListElement:f,registerIndicatorUpdateListener:p}=J_(),h=Js();m.useEffect(()=>p(h),[p,h]);let g=0,_=0,v=0,y=0,b=0,x=0,S=!1;if(d!=null&&f!=null){let e=c(d);if(e!=null){S=!0;let{width:t,height:n}=Xf(e),{width:r,height:i}=Xf(f),a=e.getBoundingClientRect(),o=f.getBoundingClientRect(),s=r>0?o.width/r:1,c=i>0?o.height/i:1;if(s>2**-52&&c>2**-52){let e=a.left-o.left,t=a.top-o.top;g=e/s+f.scrollLeft-f.clientLeft,v=t/c+f.scrollTop-f.clientTop}else g=e.offsetLeft,v=e.offsetTop;b=t,x=n,_=f.scrollWidth-g-b,y=f.scrollHeight-v-x}}let C=S?{left:g,right:_,top:v,bottom:y}:null,w=S?{width:b,height:x}:null,T=S?{"--active-tab-left":`${g}px`,"--active-tab-right":`${_}px`,"--active-tab-top":`${v}px`,"--active-tab-bottom":`${y}px`,"--active-tab-width":`${b}px`,"--active-tab-height":`${x}px`}:void 0,E=J(`span`,e,{state:{orientation:l,activeTabPosition:C,activeTabSize:w,tabActivationDirection:u},ref:t,props:[{role:`presentation`,style:T,hidden:!(S&&b>0&&x>0)},s,{suppressHydrationWarning:!0}],stateAttributesMapping:Cse});return d==null?null:(0,n.jsxs)(m.Fragment,{children:[E,a&&(Sse||=(0,n.jsx)(P_,{script:``}))]})});process.env.NODE_ENV!==`production`&&(X_.displayName=`TabsIndicator`);var wse={...U_,...Rt},Z_=m.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:o,...s}=e,{value:c,getTabIdByPanelValue:l,orientation:u,tabActivationDirection:d,registerMountedTabPanel:f}=H_(),p=Be(),{ref:h,index:g}=Mt(),_=r===c,{mounted:v,transitionStatus:y,setMounted:b}=Ot(_),x=!v,S=l(r),C={hidden:x,orientation:u,tabActivationDirection:d,transitionStatus:y},w=m.useRef(null),T=J(`div`,e,{state:C,ref:[t,h,w],props:[{"aria-labelledby":S,hidden:x,id:p,role:`tabpanel`,tabIndex:_?0:-1,inert:wl(!_),"data-index":g},s],stateAttributesMapping:wse});return Nn({open:_,ref:w,onComplete(){_||b(!1)}}),k(()=>{if(!(p==null||x&&!a))return f(r,p)},[x,a,r,p,f]),a||v?T:null});process.env.NODE_ENV!==`production`&&(Z_.displayName=`TabsPanel`);var Q_=m.forwardRef(function(e,t){let{activateOnFocus:r=!1,className:i,loopFocus:a=!0,render:o,style:s,...c}=e,{orientation:l,setTabMap:u,tabActivationDirection:d}=H_(),[f,p]=m.useState(0),[h,g]=m.useState(null),_=m.useRef(new Set),v=m.useRef(new Set),y=m.useRef(null);k(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{_.current.forEach(e=>{e()})});return y.current=e,h&&e.observe(h),v.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),y.current=null}},[h]);let b=w(e=>(_.current.add(e),()=>{_.current.delete(e)})),x=w(e=>(v.current.add(e),y.current?.observe(e),()=>{v.current.delete(e),y.current?.unobserve(e)})),S={orientation:l,tabActivationDirection:d},C={"aria-orientation":l===`vertical`?`vertical`:void 0,role:`tablist`},T=m.useMemo(()=>({activateOnFocus:r,registerIndicatorUpdateListener:b,registerTabResizeObserverElement:x,tabsListElement:h}),[r,b,x,h]);return(0,n.jsx)(q_.Provider,{value:T,children:(0,n.jsx)(lm,{render:o,className:i,style:s,state:S,refs:[t,g],props:[C,c],stateAttributesMapping:U_,highlightedIndex:f,enableHomeAndEndKeys:!0,loopFocus:a,orientation:l,onHighlightedIndexChange:p,onMapChange:u,disabledIndices:oe})})});process.env.NODE_ENV!==`production`&&(Q_.displayName=`TabsList`);var $_=m.createContext(void 0);process.env.NODE_ENV!==`production`&&($_.displayName=`ToastContext`);function ev(){let e=m.useContext($_);if(!e)throw Error(process.env.NODE_ENV===`production`?B(73):`Base UI: useToastManager must be used within <Toast.Provider>.`);return e}var tv=0;function nv(e){return tv+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${tv}`}function rv(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function iv(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}function av(e,t){let n=0;return e.map(e=>{if(e.transitionStatus===`ending`)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}var ov={toasts:e=>e.toasts,isEmpty:e=>e.toasts.length===0,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement},Tse=class extends qs{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:iv(e.toasts)},{},ov)}setViewport=e=>{this.set(`viewport`,e)};syncProviderProps(e,t){let n=this.state.limit!==t;if(this.state.timeout===e&&!n)return;let r={timeout:e,limit:t};if(n){let e=av(this.state.toasts,t);r.toasts=e,r.toastMetadata=iv(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=ov.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||nv(`toast`);if(e.id){let t=ov.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,!0);else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,!0,!0),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts];this.setToasts(av(a,n));let o=i.timeout??t;return i.type!==`loading`&&o>0&&this.scheduleTimer(r,o,()=>this.closeToast(r)),ov.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{this.updateToastInternal(e,t,!1,!0)};updateToastInternal=(e,t,n=!1,r=!1)=>{let{timeout:i,toasts:a}=this.state,o=ov.toast(this.state,e);if(!o||o.transitionStatus===`ending`)return;let s={...o,...t,...r&&{updateKey:o.updateKey+1}};this.setToasts(a.map(t=>t.id===e?s:t));let c=s.timeout??i,l=o.timeout??i,u=Object.hasOwn(t,`timeout`),d=s.transitionStatus!==`ending`&&s.type!==`loading`&&c>0,f=this.timers.has(e),p=l!==c,m=o.type===`loading`;if(!d&&f){this.clearTimer(e);return}d&&(!f||p||u||m||n)&&(this.clearTimer(e),this.scheduleTimer(e,c,()=>this.closeToast(e)),ov.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.clearTimers();else{let t=ov.toast(this.state,e);if(!t)return;i=[t],this.clearTimer(e)}let a=av(r.map(n=>t||n.id===e?{...n,transitionStatus:`ending`,height:0}:n),n);this.setToasts(a,!a.some(e=>e.transitionStatus!==`ending`)),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=rv(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=rv(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=rv(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{e.timeout&&(e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=Vi.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=ra(e);na(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=ov.expandedOrOutOfFocus(this.state)?void 0:Vi.create();i?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:i,start:r,delay:t,remaining:t,callback:n})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(e,t=e.length===0){let n={toasts:e,toastMetadata:iv(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=ta(Cn(this.state.viewport));if(!this.state.viewport||!na(this.state.viewport,t)||!la(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=ov.toasts(this.state),r=ov.toastIndex(this.state,e),i=(e,t)=>{for(let r=e;r>=0&&r<n.length;r+=t)if(n[r].transitionStatus!==`ending`)return n[r];return null},a=i(r+1,1)??i(r-1,-1);a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}},sv=function(e){let{children:t,timeout:r=5e3,limit:i=3,toastManager:a}=e,o=x(()=>new Tse({timeout:r,limit:i,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return St(o.disposeEffect),m.useEffect(function(){if(a)return a[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?o.promiseToast(t.promise,t):e===`update`&&n?o.updateToast(n,t):e===`close`?o.closeToast(n):o.addToast(t)})},[o,a]),(0,n.jsxs)($_.Provider,{value:o,children:[(0,n.jsx)(Ese,{store:o,timeout:r,limit:i}),t]})};process.env.NODE_ENV!==`production`&&(sv.displayName=`ToastProvider`);function Ese(e){let{store:t,timeout:n,limit:r}=e;return k(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}var cv=m.forwardRef(function(e,t){let{render:r,className:i,style:a,children:o,...s}=e,c=ev(),l=Hi(),u=m.useRef(!1),d=m.useRef(!1),f=m.useRef(!1),p=c.useState(`isEmpty`),h=c.useState(`toasts`),g=c.useState(`focused`),_=c.useState(`expanded`),v=c.useState(`prevFocusElement`),y=h[0]?.height,b=h.some(e=>e.transitionStatus===`ending`),x=h.filter(e=>e.priority===`high`);m.useEffect(()=>{let e=c.state.viewport;if(!e||p)return;let t=Zt(e),n=Cn(e);function r(t){t.key===`F6`&&ra(t)!==e&&(t.preventDefault(),c.set(`prevFocusElement`,ta(n)),e?.focus({preventScroll:!0}),c.pauseTimers(),c.set(`focused`,!0))}function i(e){ra(e)===t&&(c.set(`isWindowFocused`,!1),c.pauseTimers())}function a(n){if(n.relatedTarget)return;let r=ra(n),i=ta(Cn(e));(r===t||!na(e,r)||!la(i))&&c.resumeTimers(),l.start(0,()=>c.set(`isWindowFocused`,!0))}return ba(kn(t,`keydown`,r),kn(t,`blur`,i,!0),kn(t,`focus`,a,!0),kn(n,`pointerdown`,c.handleDocumentPointerDown,!0))},[c,l,p]);function S(e){u.current=!0;let t=e.relatedTarget===c.state.viewport?h.find(e=>e.transitionStatus!==`ending`&&!e.limited):void 0;t?t.ref?.current?.focus():c.restoreFocusToPrevElement()}function C(e){e.key===`Tab`&&e.shiftKey&&ra(e.nativeEvent)===c.state.viewport&&(e.preventDefault(),c.restoreFocusToPrevElement())}function w(){c.state.toasts.some(e=>e.transitionStatus===`ending`)||f.current||!d.current||(c.state.isWindowFocused&&c.resumeTimers(),c.set(`hovering`,!1),d.current=!1)}m.useEffect(w,[b,c]);function T(){c.pauseTimers(),c.set(`hovering`,!0),d.current=!1}function E(){c.state.isWindowFocused&&c.resumeTimers()}function D(){d.current=!0,w()}function O(e){e.pointerType===`touch`&&(f.current=!0)}function k(e){e.pointerType===`touch`&&(f.current=!1,w())}function A(){if(u.current){u.current=!1;return}g||la(ta(Cn(c.state.viewport)))&&(c.set(`focused`,!0),c.pauseTimers())}function j(e){!g||na(c.state.viewport,e.relatedTarget)||(c.set(`focused`,!1),E())}let M={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:T,onMouseMove:T,onMouseLeave:D,onFocus:A,onBlur:j,onKeyDown:C,onClick:A,onPointerDown:O,onPointerUp:k,onPointerCancel:k,style:{"--toast-frontmost-height":y?`${y}px`:void 0}},N={expanded:_},P=!p&&v&&(0,n.jsx)(wa,{onFocus:S}),F=J(`div`,e,{ref:[t,c.setViewport],state:N,props:[M,s,{children:(0,n.jsxs)(m.Fragment,{children:[P,o,P]})}]});return(0,n.jsxs)(m.Fragment,{children:[P,F,!g&&x.length>0&&(0,n.jsx)(`div`,{style:Sa,children:x.map(e=>(0,n.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,n.jsx)(`div`,{children:e.title}),(0,n.jsx)(`div`,{children:e.description})]},e.id))})]})});process.env.NODE_ENV!==`production`&&(cv.displayName=`ToastViewport`);var lv=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(lv.displayName=`ToastRootContext`);function uv(){let e=m.useContext(lv);if(!e)throw Error(process.env.NODE_ENV===`production`?B(66):`Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>.`);return e}var Dse={...Rt,swipeDirection(e){return e?{"data-swipe-direction":e}:null}},dv=40,Ose=10,fv=.5,kse=1,Ase=`${Lo},${Ro}`,pv=m.forwardRef(function(e,t){let{toast:i,render:a,className:o,swipeDirection:s=[`down`,`right`],style:c,...l}=e,u=i.positionerProps?.anchor!==void 0,d=[];u||(d=Array.isArray(s)?s:[s]);let f=d.length>0,p=ev(),[h,g]=m.useState(void 0),[_,v]=m.useState(!1),[y,b]=m.useState(!1),[x,S]=m.useState({x:0,y:0}),[C,T]=m.useState({x:0,y:0,scale:1}),[E,D]=m.useState(),[O,A]=m.useState(),[j,M]=m.useState(null),N=m.useRef(null),P=m.useRef(void 0),F=m.useRef({x:0,y:0}),I=m.useRef({x:0,y:0,scale:1}),L=m.useRef(void 0),R=m.useRef(0),z=m.useRef(!1),B=m.useRef({x:0,y:0}),V=m.useRef(!1),H=m.useRef({x:0,y:0}),U=m.useRef(null),W=m.useRef(null),G=p.useState(`toastIndex`,i.id),ee=p.useState(`toastVisibleIndex`,i.id),K=p.useState(`toastOffsetY`,i.id),te=p.useState(`focused`),q=p.useState(`expanded`);Nn({open:i.transitionStatus!==`ending`,ref:N,onComplete(){i.transitionStatus===`ending`&&p.removeToast(i.id)}});let ne=w((e=!1)=>{let t=N.current;if(!t)return;let n=t.style.height;t.style.height=`auto`;let a=t.offsetHeight;t.style.height=n;function o(){p.updateToastInternal(i.id,{ref:N,height:a,transitionStatus:void 0})}e?r.flushSync(o):o()});k(()=>{let e=P.current;(i.transitionStatus===`starting`||e!==i.id)&&(e!==void 0&&(g(void 0),T({x:0,y:0,scale:1}),re({x:0,y:0})),P.current=i.id,ne())},[ne,i.id,i.transitionStatus]);function re(e){H.current=e,S(e)}k(()=>()=>{W.current?.abort()},[]);function ie(e,t){let n=e=>e>0?e**fv:-(Math.abs(e)**fv),r=e>0&&!d.includes(`right`)||e<0&&!d.includes(`left`),i=t>0&&!d.includes(`down`)||t<0&&!d.includes(`up`);return{x:r?n(e):e,y:i?n(t):t}}let ae=w(e=>{if(e.pointerId!==U.current)return;U.current=null,W.current?.abort(),W.current=null,v(!1),b(!1),M(null);let t=I.current;if(e.type===`pointercancel`||z.current){re({x:t.x,y:t.y}),g(void 0);return}let n=H.current,r=n.x-t.x,a=n.y-t.y,o;for(let e of d)if(Np(e,r,a)>dv){o=e;break}o?(g(o),p.closeToast(i.id)):(re({x:t.x,y:t.y}),g(void 0))});function oe(e){if(e.button!==0||(e.pointerType===`touch`&&p.pauseTimers(),ra(e.nativeEvent)?.closest(`button,a,input,textarea,[role="button"],${Ase}`)))return;z.current=!1,L.current=void 0,R.current=0,U.current=e.pointerId,F.current={x:e.clientX,y:e.clientY},B.current=F.current;let t=e.currentTarget,n=Pp(t);I.current=n,T(n),re({x:n.x,y:n.y}),p.set(`hovering`,!0),v(!0),b(!1),M(null),V.current=!0,W.current?.abort();let r=new AbortController;W.current=r;let i=Cn(t);i.addEventListener(`pointerup`,ae,{signal:r.signal}),i.addEventListener(`pointercancel`,ae,{signal:r.signal}),t.setPointerCapture?.(e.pointerId)}function se(e){if(e.pointerId!==U.current)return;e.preventDefault(),V.current&&=(F.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>B.current.y||i>0&&t<B.current.y)&&(B.current={x:B.current.x,y:t}),(r<0&&n>B.current.x||r>0&&n<B.current.x)&&(B.current={x:n,y:B.current.y});let a=n-F.current.x,o=t-F.current.y,s=t-B.current.y,c=n-B.current.x,l=j;if(!y&&Math.sqrt(a*a+o*o)>=kse){b(!0);let e=d.includes(`left`)||d.includes(`right`),t=d.includes(`up`)||d.includes(`down`);e&&t&&(l=Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`,M(l))}let u;if(!L.current)l===`vertical`?o>0?u=`down`:o<0&&(u=`up`):l===`horizontal`?a>0?u=`right`:a<0&&(u=`left`):u=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,u&&d.includes(u)&&(L.current=u,R.current=Np(u,a,o),g(u));else{let e=L.current,t=Np(e,c,s);t>dv?(z.current=!1,g(e)):!(d.includes(`left`)&&d.includes(`right`))&&!(d.includes(`up`)&&d.includes(`down`))&&R.current-t>=Ose&&(z.current=!0)}let f=ie(a,o),p=I.current.x,m=I.current.y,h=d.includes(`left`)||d.includes(`right`),_=d.includes(`up`)||d.includes(`down`);l!==`vertical`&&h&&(p+=f.x),l!==`horizontal`&&_&&(m+=f.y),re({x:p,y:m})}function ce(e){if(e.key===`Escape`){if(!N.current||!na(N.current,ta(Cn(N.current))))return;p.closeToast(i.id)}}m.useEffect(()=>{let e=N.current;if(!f||!e)return;function t(t){U.current===null||!na(e,ra(t))||t.preventDefault()}return kn(e,`touchmove`,t,{passive:!1})},[f]);function le(){let e=x.x-C.x,t=x.y-C.y;return{transition:_?`none`:void 0,transform:_?`translateX(${x.x}px) translateY(${x.y}px) scale(${C.scale})`:void 0,"--toast-swipe-movement-x":`${e}px`,"--toast-swipe-movement-y":`${t}px`}}let ue=i.priority===`high`,de={role:ue?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":E,"aria-describedby":O,"aria-hidden":ue&&!te?!0:void 0,onPointerDown:f?oe:void 0,onPointerMove:f?se:void 0,onPointerUp:f?ae:void 0,onPointerCancel:f?ae:void 0,onKeyDown:ce,inert:wl(i.limited),style:{...le(),"--toast-index":i.transitionStatus===`ending`?G:ee,"--toast-offset-y":`${K}px`,"--toast-height":i.height?`${i.height}px`:void 0}},fe=m.useMemo(()=>({toast:i,setTitleId:D,setDescriptionId:A,recalculateHeight:ne,visibleIndex:ee,expanded:q}),[i,D,A,ne,ee,q]),pe={transitionStatus:i.transitionStatus,expanded:q,limited:i.limited||!1,type:i.type,swiping:_,swipeDirection:h},me=J(`div`,e,{ref:[t,N],state:pe,stateAttributesMapping:Dse,props:[de,l]});return(0,n.jsx)(lv.Provider,{value:fe,children:me})});process.env.NODE_ENV!==`production`&&(pv.displayName=`ToastRoot`);var mv=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=uv(),l=m.useRef(null);return k(()=>{c();let e=l.current;if(!e||typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`)return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[c]),J(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})});process.env.NODE_ENV!==`production`&&(mv.displayName=`ToastContent`);function hv(e){return e==null||typeof e==`boolean`||e===``?!1:!Array.isArray(e)||e.some(hv)}function gv(e){return m.isValidElement(e)&&hv(e.props.children)}function _v(e,t,n){let{toast:r,setTitleId:i,setDescriptionId:a}=uv(),o=n===`title`?i:a,s=t??(n===`title`?r.title:r.description);return{id:ze(e),children:s,type:r.type,setId:o}}function vv(e,t,n){let r=gv(e);return k(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}var yv=m.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=_v(a,o,`description`);return vv(J(`p`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)});process.env.NODE_ENV!==`production`&&(yv.displayName=`ToastDescription`);var bv=m.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=_v(a,o,`title`);return vv(J(`h2`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)});process.env.NODE_ENV!==`production`&&(bv.displayName=`ToastTitle`);var xv=m.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=ev(),{toast:l,expanded:u}=uv(),[d,f]=m.useState(!1),{getButtonProps:p,buttonRef:h}=Tn({disabled:a,native:o}),g={type:l.type};return J(`button`,e,{ref:[t,h],state:g,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})});process.env.NODE_ENV!==`production`&&(xv.displayName=`ToastClose`);var Sv=m.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=uv(),l=c.actionProps?.children??s.children,{getButtonProps:u,buttonRef:d}=Tn({disabled:a,native:o}),f={type:c.type},p=J(`button`,e,{ref:[t,d],state:f,props:[s,c.actionProps,u,{children:l}]});return gv(p)?p:null});process.env.NODE_ENV!==`production`&&(Sv.displayName=`ToastAction`);var Cv=m.forwardRef(function(e,t){return(0,n.jsx)(sg,{ref:t,...e})});process.env.NODE_ENV!==`production`&&(Cv.displayName=`ToastPortal`);var wv=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(wv.displayName=`ToastPositionerContext`);function jse(){let e=m.useContext(wv);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(84):`Base UI: ToastPositionerContext is missing. ToastPositioner parts must be placed within <Toast.Positioner>.`);return e}var Tv=m.forwardRef(function(e,t){let{toast:r,...i}=e,a=ev(),o=r.positionerProps??se,{render:s,className:c,anchor:l=o.anchor,positionMethod:u=o.positionMethod??`absolute`,side:d=o.side??`top`,align:f=o.align??`center`,sideOffset:p=o.sideOffset??0,alignOffset:h=o.alignOffset??0,collisionBoundary:g=o.collisionBoundary??`clipping-ancestors`,collisionPadding:_=o.collisionPadding??5,arrowPadding:v=o.arrowPadding??5,sticky:y=o.sticky??!1,disableAnchorTracking:b=o.disableAnchorTracking??!1,collisionAvoidance:x=o.collisionAvoidance??Bo,style:S,...C}=i,[w,T]=m.useState(null),E=a.useState(`toastIndex`,r.id),D=a.useState(`toastVisibleIndex`,r.id),O=en(l)?l:null,k=hd({anchor:O,positionMethod:u,floatingRootContext:xc({open:!0,onOpenChange:ae,elements:{floating:w,reference:O}}),mounted:!0,side:d,sideOffset:p,align:f,alignOffset:h,collisionBoundary:g,collisionPadding:_,sticky:y,arrowPadding:v,disableAnchorTracking:b,keepMounted:!0,collisionAvoidance:x}),A=yd(e,{side:k.side,align:k.align,anchorHidden:k.anchorHidden},{styles:{...k.positionerStyles,"--toast-index":r.transitionStatus===`ending`?E:D},transitionStatus:r.transitionStatus,props:C,refs:[t,T]});return(0,n.jsx)(wv.Provider,{value:k,children:A})});process.env.NODE_ENV!==`production`&&(Tv.displayName=`ToastPositioner`);var Ev=m.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{arrowRef:o,side:s,align:c,arrowUncentered:l,arrowStyles:u}=jse();return J(`div`,e,{state:{side:s,align:c,uncentered:l},ref:[t,o],props:[{style:u,"aria-hidden":!0},a]})});process.env.NODE_ENV!==`production`&&(Ev.displayName=`ToastArrow`);function Mse(){let e=ev(),t=e.useState(`toasts`);return m.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function Nse(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||nv(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{...n,id:e}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var Dv=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Dv.displayName=`ToggleGroupContext`);function Pse(){return m.useContext(Dv)}var Ov=m.forwardRef(function(e,t){let{className:r,defaultPressed:i=!1,disabled:a=!1,form:o,onPressedChange:s,pressed:c,render:l,type:u,value:d,nativeButton:f=!0,style:p,...h}=e,v=Be(d||void 0),y=Pse(),b=y?.value??[],x=y?void 0:i,S=(a||y?.disabled)??!1;process.env.NODE_ENV!==`production`&&m.useEffect(()=>{y&&d===void 0&&y.isValueInitialized&&g("A `<Toggle>` component rendered in a `<ToggleGroup>` has no explicit `value` prop.",`This will cause issues between the Toggle Group and Toggle values.`,"Provide the `<Toggle>` with a `value` prop matching the `<ToggleGroup>` values prop type.")},[y,d,y?.isValueInitialized]);let[C,w]=_({controlled:y?v!==void 0&&b.indexOf(v)>-1:c,default:x,name:`Toggle`,state:`pressed`}),{getButtonProps:T,buttonRef:E}=Tn({disabled:S,native:f}),D={disabled:S,pressed:C},O=[E,t],k=[{"aria-pressed":C,onClick(e){let t=!C,n=Y(Ve,e.nativeEvent);s?.(t,n),!n.isCanceled&&(v&&y?.setGroupValue?.(v,t,n),!n.isCanceled&&w(t))}},h,T],A=J(`button`,e,{enabled:!y,state:D,ref:O,props:k}),j=m.useMemo(()=>({disabled:S,focusableWhenDisabled:!1}),[S]);return y?(0,n.jsx)(Gf,{tag:`button`,render:l,className:r,style:p,metadata:j,state:D,refs:O,props:k}):A});process.env.NODE_ENV!==`production`&&(Ov.displayName=`Toggle`);var kv=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(kv.displayName=`ToolbarGroupContext`);function Fse(){return m.useContext(kv)}var Av=m.forwardRef(function(e,t){let{defaultValue:r,disabled:i=!1,loopFocus:a=!0,onValueChange:o,orientation:s=`horizontal`,multiple:c=!1,value:l,className:u,render:d,style:f,...p}=e,h=Of(!0),g=Fse(),v=l!==void 0||r!==void 0,y=(h?.disabled??!1)||(g?.disabled??!1)||i,[b,x]=_({controlled:l,default:l===void 0?r??oe:void 0,name:`ToggleGroup`,state:`value`}),S=w((e,t,n)=>{let r;c?(r=b.slice(),t?r.push(e):r.splice(b.indexOf(e),1)):r=t?[e]:[],o?.(r,n),!n.isCanceled&&x(r)}),C={disabled:y,multiple:c,orientation:s},T=m.useMemo(()=>({disabled:y,setGroupValue:S,value:b,isValueInitialized:v}),[y,S,b,v]),E={role:`group`},D=J(`div`,e,{enabled:!!h,state:C,ref:t,props:[E,p]});return(0,n.jsx)(Dv.Provider,{value:T,children:h?D:(0,n.jsx)(lm,{render:d,className:u,style:f,state:C,refs:[t],props:[E,p],loopFocus:a,enableHomeAndEndKeys:!0,orientation:s})})});process.env.NODE_ENV!==`production`&&(Av.displayName=`ToggleGroup`);var jv=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(jv.displayName=`TooltipRootContext`);function Mv(e){let t=m.useContext(jv);if(t===void 0&&!e)throw Error(process.env.NODE_ENV===`production`?B(72):`Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.`);return t}var Ise={...yc,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Lse=class extends qs{constructor(e,t,n){let r=new dc;super(Rse(e,r,t,n),zse(r),Ise)}setOpen=(e,t)=>{ic(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Y(He,e))}};function Rse(e,t,n,r=!1){let i={...pc(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return i.floatingRootContext=mc(t,n,r),i}function zse(e){return{popupRef:m.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var Nv=Hs(function(e){let{disabled:t=!1,defaultOpen:r=!1,open:i,disableHoverablePopup:a=!1,trackCursorAxis:o=`none`,actionsRef:s,onOpenChange:c,onOpenChangeComplete:l,handle:u,triggerId:d,defaultTriggerId:f=null,children:p}=e,h=$s((e,t)=>new Lse({open:r,openProp:i,activeTriggerId:f,triggerIdProp:d},e,t));h.useControlledProp(`openProp`,i),h.useControlledProp(`triggerIdProp`,d),h.useContextCallback(`onOpenChange`,c),h.useContextCallback(`onOpenChangeComplete`,l);let g=h.useState(`open`),_=!t&&g,v=h.useState(`activeTriggerId`),y=h.useState(`mounted`),b=h.useState(`payload`);h.useSyncedValues({trackCursorAxis:o,disableHoverablePopup:a,disabled:t}),oc(h,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:x,transitionStatus:S}=sc(_,h),C=h.useState(`isInstantPhase`),w=h.useState(`instantType`),T=h.useState(`lastOpenChangeReason`),E=m.useRef(null);k(()=>{g&&t&&h.setOpen(!1,Y(ht))},[g,t,h]),k(()=>{S===`ending`&&T===`none`||S!==`ending`&&C?(w!==`delay`&&(E.current=w),h.set(`instantType`,`delay`)):E.current!==null&&(h.set(`instantType`,E.current),E.current=null)},[S,C,T,w,h]),k(()=>{_&&(v??h.set(`payload`,void 0))},[h,v,_]),m.useImperativeHandle(s,()=>({unmount:x,close:()=>h.setOpen(!1,Y(vt))}),[x,h]);let D=_||y||!t&&o!==`none`;return(0,n.jsxs)(jv.Provider,{value:h,children:[u&&(0,n.jsx)(ec,{handle:u,store:h}),D&&(0,n.jsx)(Bse,{store:h,disabled:t,trackCursorAxis:o}),typeof p==`function`?p({payload:b}):p]})});process.env.NODE_ENV!==`production`&&(Nv.displayName=`TooltipRoot`);function Bse({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=us(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=hne(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=m.useMemo(()=>fe(a.reference,i.reference),[a.reference,i.reference]);return cc(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??se}),null}var Pv=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Pv.displayName=`TooltipProviderContext`);function Vse(){return m.useContext(Pv)}var Fv=`data-base-ui-tooltip-trigger`;function Iv(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(en(n))return n}}let t=e.target;return en(t)?t:null}function Hse(e){let t=e;for(;t;){let e=t.closest(`[${Fv}]`);if(e)return e;let n=t.getRootNode();t=`host`in n&&en(n.host)?n.host:null}return null}var Lv=Us(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=Mv(!0),h=bc(a)??p;if(!h)throw Error(process.env.NODE_ENV===`production`?B(82):`Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.`);let g=Be(d),_=h.useState(`isTriggerActive`,g),v=h.useState(`isOpenedByTrigger`,g),y=h.useState(`floatingRootContext`),b=m.useRef(null),x=c??600,S=u??0,{registerTrigger:C,isMountedByThisTrigger:w}=ac(g,b,h,{payload:o,closeOnClick:l,closeDelay:S}),T=Vse(),{delayRef:E,isInstantPhase:D,hasProvider:O}=ya(y,{open:v}),k=Oc(y);h.useSyncedValue(`isInstantPhase`,D);let A=h.useState(`disabled`),j=s??A,M=An(j),N=h.useState(`trackCursorAxis`),P=h.useState(`disableHoverablePopup`),F=m.useRef(!1),I=Hi(),L=m.useRef(void 0);function R(){return O?fa(E.current,`open`)===0?0:c??T??600:x}function z(e){let t=b.current;if(!t||!e)return!1;let n=Hse(e);return n!==null&&n!==t&&na(t,n)}function V(e){let t=z(e);return F.current=t,t&&(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1,I.clear()),t}let H=Ac(y,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!P&&N!==`both`?Hc():null,restMs:R,delay(){return u==null&&O?{close:fa(E.current,`close`)}:{close:S}},triggerElementRef:b,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`,shouldOpen(){return!F.current}}),U=wc(y,{enabled:!j}).reference,W=e=>{let t=F.current,n=Iv(e),r=V(n),i=b.current,a=i&&n&&na(i,n);if(r&&h.select(`open`)&&h.select(`lastOpenChangeReason`)===`trigger-hover`){h.setOpen(!1,Y(Ue,e));return}if(t&&!r&&a&&!M.current&&!h.select(`open`)&&i&&Qi(L.current)){let t=()=>{!F.current&&!M.current&&!h.select(`open`)&&h.setOpen(!0,Y(Ue,e,i))},n=R();n===0?(I.clear(),t()):I.start(n,t)}},G=h.useState(`triggerProps`,w);return J(`button`,e,{state:{open:v},ref:[t,C,b],props:[H,U,w||N!==`none`?G:void 0,{onMouseOver(e){W(e.nativeEvent)},onFocus(e){z(Iv(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){F.current=!1,I.clear(),L.current=void 0},onPointerEnter(e){L.current=e.pointerType},onPointerDown(e){L.current=e.pointerType,h.set(`closeOnClick`,l),l&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},id:g,"data-trigger-disabled":j?``:void 0,[Fv]:j?void 0:``},f],stateAttributesMapping:el})});process.env.NODE_ENV!==`production`&&(Lv.displayName=`TooltipTrigger`);var Rv=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Rv.displayName=`TooltipPortalContext`);function Use(){let e=m.useContext(Rv);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(70):`Base UI: <Tooltip.Portal> is missing.`);return e}var zv=m.forwardRef(function(e,t){let{keepMounted:r=!1,...i}=e;return Mv().useState(`mounted`)||r?(0,n.jsx)(Rv.Provider,{value:r,children:(0,n.jsx)(sg,{ref:t,...i})}):null});process.env.NODE_ENV!==`production`&&(zv.displayName=`TooltipPortal`);var Bv=m.createContext(void 0);process.env.NODE_ENV!==`production`&&(Bv.displayName=`TooltipPositionerContext`);function Wse(){let e=m.useContext(Bv);if(e===void 0)throw Error(process.env.NODE_ENV===`production`?B(71):`Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.`);return e}var Vv=m.forwardRef(function(e,t){let{render:r,className:i,anchor:a,positionMethod:o=`absolute`,side:s=`top`,align:c=`center`,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f=5,arrowPadding:p=5,sticky:h=!1,disableAnchorTracking:g=!1,collisionAvoidance:_=Bo,style:v,...y}=e,b=Mv(),x=Use(),S=b.useState(`open`),C=b.useState(`mounted`),w=b.useState(`trackCursorAxis`),T=b.useState(`disableHoverablePopup`),E=b.useState(`floatingRootContext`),D=b.useState(`instantType`),O=b.useState(`transitionStatus`),k=hd({anchor:a,positionMethod:o,floatingRootContext:E,mounted:C,side:s,sideOffset:l,align:c,alignOffset:u,collisionBoundary:d,collisionPadding:f,sticky:h,arrowPadding:p,disableAnchorTracking:g,keepMounted:x,collisionAvoidance:_,adaptiveOrigin:b.useState(`adaptiveOrigin`)}),A=yd(e,m.useMemo(()=>({open:S,side:k.side,align:k.align,anchorHidden:k.anchorHidden,instant:w===`none`?D:`tracking-cursor`}),[S,k.side,k.align,k.anchorHidden,w,D]),{styles:k.positionerStyles,transitionStatus:O,props:y,refs:[t,b.useStateSetter(`positionerElement`)],hidden:!C,inert:!S||w===`both`||T});return(0,n.jsx)(Bv.Provider,{value:k,children:A})});process.env.NODE_ENV!==`production`&&(Vv.displayName=`TooltipPositioner`);var Hv=m.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Mv(),{side:s,align:c}=Wse(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);Nn({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),kc(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return J(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[Zs,f,vd(d),a],stateAttributesMapping:rl})});process.env.NODE_ENV!==`production`&&(Hv.displayName=`TooltipPopup`);var Uv=function(e){let{delay:t,closeDelay:r,timeout:i=400}=e,a=m.useMemo(()=>({open:t,close:r}),[t,r]);return(0,n.jsx)(Pv.Provider,{value:t,children:(0,n.jsx)(va,{delay:a,timeoutMs:i,children:e.children})})};process.env.NODE_ENV!==`production`&&(Uv.displayName=`TooltipProvider`);var Gse=({children:e,...t})=>(0,n.jsx)(Are,{...t,children:e}),Kse=Gn(`inline-flex cursor-pointer items-center justify-center rounded-full whitespace-nowrap transition-all select-none disabled:pointer-events-none disabled:opacity-50`,{variants:{tone:{brand:``,accent:``,neutral:``,error:``,info:``,warning:``,success:``},variant:{fill:`active:scale-[0.98]`,outline:`border active:scale-[0.98]`,ghost:`active:scale-[0.98]`,soft:`border active:scale-[0.98]`,elevated:`shadow-xs not-active:hover:shadow-md`,link:`size-fit! p-0! underline decoration-transparent underline-offset-2 [&>svg]:transition-colors`},size:{large:`h-2xl gap-xs px-md style-text-default-2 [&>svg]:size-md`,medium:`h-xl gap-2xs px-sm style-text-default-0 [&>svg]:size-sm`,small:`h-lg gap-3xs px-xs style-text-default--1 [&>svg]:size-xs`,extraSmall:`h-md gap-3xs px-2xs style-text-default--2 [&>svg]:size-xs`,iconLarge:`size-2xl p-[0px] [&>svg]:size-md`,iconMedium:`size-xl p-[0px] [&>svg]:size-sm`,iconSmall:`size-lg p-[0px] [&>svg]:size-xs`,iconExtraSmall:`size-md p-[0px] [&>svg]:size-xs`}},defaultVariants:{tone:`brand`,variant:`fill`,size:`medium`},compoundVariants:[{variant:`fill`,tone:`brand`,className:`bg-brand-default text-brand-on-default hover:bg-brand-muted`},{variant:`fill`,tone:`accent`,className:`bg-accent-default text-accent-on-default hover:bg-accent-muted`},{variant:`fill`,tone:`neutral`,className:`bg-neutral-default text-neutral-on-default hover:bg-neutral-muted`},{variant:`fill`,tone:`error`,className:`bg-error-default text-error-on-default hover:bg-error-muted`},{variant:`fill`,tone:`info`,className:`bg-info-default text-info-on-default hover:bg-info-muted`},{variant:`fill`,tone:`success`,className:`bg-success-default text-success-on-default hover:bg-success-muted`},{variant:`fill`,tone:`warning`,className:`bg-warning-default text-warning-on-default hover:bg-warning-muted`},{variant:`outline`,tone:`brand`,className:`border-brand-border text-brand-default hover:bg-brand-subtle hover:text-brand-on-container`},{variant:`outline`,tone:`accent`,className:`border-accent-border text-accent-default hover:bg-accent-subtle hover:text-accent-on-container`},{variant:`outline`,tone:`neutral`,className:`border-neutral-border text-neutral-default hover:bg-neutral-subtle hover:text-neutral-on-container`},{variant:`outline`,tone:`error`,className:`border-error-border text-error-default hover:bg-error-subtle hover:text-error-on-container`},{variant:`outline`,tone:`info`,className:`border-info-border text-info-default hover:bg-info-subtle hover:text-info-on-container`},{variant:`outline`,tone:`success`,className:`border-success-border text-success-default hover:bg-success-subtle hover:text-success-on-container`},{variant:`outline`,tone:`warning`,className:`border-warning-border text-warning-default hover:bg-warning-subtle hover:text-warning-on-container`},{variant:`ghost`,tone:`brand`,className:`text-brand-default hover:bg-brand-subtle hover:text-brand-on-container`},{variant:`ghost`,tone:`accent`,className:`text-accent-default hover:bg-accent-subtle hover:text-accent-on-container`},{variant:`ghost`,tone:`neutral`,className:`text-neutral-default hover:bg-neutral-subtle hover:text-neutral-on-container`},{variant:`ghost`,tone:`error`,className:`text-error-default hover:bg-error-subtle hover:text-error-on-container`},{variant:`ghost`,tone:`info`,className:`text-info-default hover:bg-info-subtle hover:text-info-on-container`},{variant:`ghost`,tone:`success`,className:`text-success-default hover:bg-success-subtle hover:text-success-on-container`},{variant:`ghost`,tone:`warning`,className:`text-warning-default hover:bg-warning-subtle hover:text-warning-on-container`},{variant:`soft`,tone:`brand`,className:`border-brand-border bg-brand-container text-brand-on-container hover:border-brand-border-strong hover:bg-brand-container-high`},{variant:`soft`,tone:`accent`,className:`border-accent-border bg-accent-container text-accent-on-container hover:border-accent-border-strong hover:bg-accent-container-high`},{variant:`soft`,tone:`neutral`,className:`border-neutral-border bg-neutral-container text-neutral-on-container hover:border-neutral-border-strong hover:bg-neutral-container-high`},{variant:`soft`,tone:`error`,className:`border-error-border bg-error-container text-error-on-container hover:border-error-border-strong hover:bg-error-container-high`},{variant:`soft`,tone:`info`,className:`border-info-border bg-info-container text-info-on-container hover:border-info-border-strong hover:bg-info-container-high`},{variant:`soft`,tone:`success`,className:`border-success-border bg-success-container text-success-on-container hover:border-success-border-strong hover:bg-success-container-high`},{variant:`soft`,tone:`warning`,className:`border-warning-border bg-warning-container text-warning-on-container hover:border-warning-border-strong hover:bg-warning-container-high`},{variant:`elevated`,tone:`brand`,className:`bg-brand-container text-brand-on-container not-active:hover:bg-brand-container-high`},{variant:`elevated`,tone:`accent`,className:`bg-accent-container text-accent-on-container not-active:hover:bg-accent-container-high`},{variant:`elevated`,tone:`neutral`,className:`bg-surface-2 text-on-surface not-active:hover:bg-surface-3`},{variant:`elevated`,tone:`error`,className:`bg-error-container text-error-on-container not-active:hover:bg-error-container-high`},{variant:`elevated`,tone:`info`,className:`bg-info-container text-info-on-container not-active:hover:bg-info-container-high`},{variant:`elevated`,tone:`success`,className:`bg-success-container text-success-on-container not-active:hover:bg-success-container-high`},{variant:`elevated`,tone:`warning`,className:`bg-warning-container text-warning-on-container not-active:hover:bg-warning-container-high`},{variant:`link`,tone:`brand`,className:`text-brand-default hover:decoration-brand-default [&>svg]:text-brand-default/50 hover:[&>svg]:text-brand-default`},{variant:`link`,tone:`accent`,className:`text-accent-default hover:decoration-accent-default [&>svg]:text-accent-default/50 hover:[&>svg]:text-accent-default`},{variant:`link`,tone:`neutral`,className:`text-neutral-default hover:decoration-neutral-default [&>svg]:text-neutral-default/50 hover:[&>svg]:text-neutral-default`},{variant:`link`,tone:`error`,className:`text-error-default hover:decoration-error-default [&>svg]:text-error-default/50 hover:[&>svg]:text-error-default`},{variant:`link`,tone:`info`,className:`text-info-default hover:decoration-info-default [&>svg]:text-info-default/50 hover:[&>svg]:text-info-default`},{variant:`link`,tone:`success`,className:`text-success-default hover:decoration-success-default [&>svg]:text-success-default/50 hover:[&>svg]:text-success-default`},{variant:`link`,tone:`warning`,className:`text-warning-default hover:decoration-warning-default [&>svg]:text-warning-default/50 hover:[&>svg]:text-warning-default`}]}),Wv=({tone:e,variant:t,size:r,className:i,children:a,...o})=>(0,n.jsx)(Bd,{"data-size":r,className:X(Kse({tone:e,variant:t,size:r,className:i})),...o,children:a}),qse=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(al,{className:X(``,e),ref:r,...i,render:(0,n.jsx)(Wv,{"aria-label":`Close`,tone:`neutral`,variant:`outline`,children:t})}),Gv=(0,m.createContext)({tone:`brand`}),Jse=()=>(0,m.useContext)(Gv),Yse=({className:e,children:t,ref:r,...i})=>{let{tone:a}=Jse();return(0,n.jsx)(al,{"data-confirm":!0,className:X(``,e),ref:r,...i,render:(0,n.jsx)(Wv,{tone:a,children:t})})},Xse=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(ol,{"data-slot":`alert-dialog-description`,className:X(`mb-[0px] style-text-prose-0`,e),ref:r,...i,children:t}),Zse=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex items-start justify-end gap-2xs`,e),ref:r,...i,children:t}),Qse=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`grid auto-rows-min items-center gap-x-sm has-data-[slot=alert-dialog-description]:grid-rows-[auto_auto] has-data-[slot=alert-dialog-icon]:grid-cols-[auto_1fr] has-data-[slot=alert-dialog-description]:**:data-[slot=alert-dialog-icon]:row-span-2`,e),ref:r,...i,children:t}),$se=Gn(`fixed top-1/2 left-1/2 z-999 max-w-[lg(100vw-3rem)] min-w-1/3 -translate-1/2 space-y-md overflow-hidden rounded-3xl bg-surface-3 p-md transition-all duration-150 data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0`,{variants:{tone:{brand:`[&_svg]:text-brand-default`,accent:`[&_svg]:text-accent-default`,neutral:`[&_svg]:text-neutral-default`,error:`[&_svg]:text-error-default`,info:`[&_svg]:text-info-default`,success:`[&_svg]:text-success-default`,warning:`[&_svg]:text-warning-default`}},defaultVariants:{tone:`brand`}});Vre();var ece=({tone:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(Gv.Provider,{value:{tone:e},children:(0,n.jsxs)(El,{children:[(0,n.jsx)(il,{"data-slot":`alert-dialog-backdrop`,className:`fixed inset-[0px] z-998 min-h-dvh transition-all duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-[-webkit-touch-callout:none]:absolute`,style:{backgroundColor:`rgb(0 0 0 / 10%)`,backdropFilter:`blur(16px)`,WebkitBackdropFilter:`blur(16px)`}}),(0,n.jsx)(Cl,{className:X($se({tone:e}),t),ref:i,...a,children:r})]})}),tce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Dl,{"data-slot":`alert-dialog-title`,className:X(`style-text-strong-1`,e),ref:r,...i,children:t}),nce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Rre,{className:X(``,e),ref:r,...i,render:t}),rce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{"data-slot":`alert-dialog-icon`,className:X(`row-span-2 self-start [&>svg]:size-xl [&>svg]:shrink-0`,e),ref:r,...i,children:t}),ice=({children:e,...t})=>(0,n.jsx)(Xre,{...t,children:e}),ace=({children:e,...t})=>(0,n.jsx)(ed,{...t,children:e}),oce=({emptyText:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(cd,{children:(0,n.jsx)(xd,{className:X(``,t),ref:i,...a,sideOffset:16,children:(0,n.jsxs)(Sd,{className:`max-h-[22.5rem] w-[calc(var(--anchor-width)+var(--spacing-md))] max-w-[calc(var(--available-width))] overflow-hidden rounded-xl bg-surface-2 shadow-md`,children:[(0,n.jsx)(Nd,{className:`ml-3xs p-sm style-text-prose--1 text-on-surface-variant empty:m-[0px] empty:p-[0px]`,children:e}),(0,n.jsx)(td,{className:`max-h-[min(22.5rem,var(--available-height))] scroll-pt-[2.25rem] scroll-pb-[0.5rem] overflow-y-auto overscroll-contain data-empty:p-[0px]`,children:r})]})})}),sce=e=>{if(e<1e3)return`${e} B`;let t=[`KB`,`MB`,`GB`,`TB`],n=e/1e3,r=0;for(;n>=1e3&&r<t.length-1;)n/=1e3,r+=1;return`${n.toFixed(n%1==0?0:1)} ${t[r]}`},Kv=Gn(`group flex w-full items-center text-ellipsis caret-brand-border-strong outline outline-transparent transition-all placeholder:opacity-60 focus-within:outline-brand-border-strong not-focus-within:hover:outline-border-strong disabled:cursor-not-allowed aria-invalid:bg-error-container aria-invalid:text-error-on-container aria-invalid:caret-error-border-strong aria-invalid:outline-error-border aria-invalid:focus-within:outline-error-border-strong aria-invalid:not-focus-within:hover:outline-error-border data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50`,{variants:{variant:{primary:`bg-surface shadow-2xs`,secondary:`bg-neutral-container`},size:{small:`h-lg gap-3xs rounded-lg pr-3xs pl-xs style-text-prose--1`,medium:`h-xl gap-2xs rounded-xl px-sm style-text-prose-0`,large:`h-2xl gap-xs rounded-2xl px-md style-text-prose-1`}},defaultVariants:{variant:`primary`,size:`medium`}}),qv=({variant:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`div`,{className:X(Kv({variant:e}),t),ref:i,...a,children:r}),Jv=({placeholder:e,className:t,ref:r,...i})=>(0,n.jsx)(Gu,{placeholder:e,className:X(`grow text-ellipsis outline-none placeholder:opacity-85`,t),ref:r,...i}),cce=({placeholder:e=`Search…`,emptyText:t,className:r,children:i,ref:a,...o})=>(0,n.jsx)(cd,{children:(0,n.jsx)(xd,{className:X(``,r),ref:a,...o,align:`end`,sideOffset:4,children:(0,n.jsxs)(Sd,{className:`max-h-[20.5rem] max-w-(--available-width) origin-(--transform-origin) overflow-hidden rounded-lg bg-surface-2 shadow-lg transition-[transform,scale,opacity] [--input-container-height:3rem] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0`,children:[(0,n.jsx)(`div`,{className:`m-3xs flex h-(--input-container-height) items-center justify-center text-center`,children:(0,n.jsx)(qv,{children:(0,n.jsx)(Jv,{placeholder:e})})}),(0,n.jsx)(Nd,{className:`p-sm style-text-prose--1 empty:m-[0px] empty:p-[0px]`,children:t}),(0,n.jsx)(td,{className:`max-h-[calc(19.5rem-var(--input-container-height))] scroll-pt-xl scroll-pb-[0.35rem] overflow-auto overscroll-contain`,children:i})]})})}),lce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(jd,{className:X(`group flex h-lg min-w-(--anchor-width) cursor-default items-center rounded-md style-text-prose--1 select-none hover:cursor-pointer hover:bg-accent-default hover:text-surface data-highlighted:relative data-highlighted:z-0 data-highlighted:bg-accent-default data-highlighted:text-surface before:data-highlighted:absolute before:data-highlighted:inset-[0px] before:data-highlighted:z-[-1] before:data-highlighted:rounded-md`,e),ref:r,...i,children:(0,n.jsx)(`span`,{className:`text-lg leading-none`,children:t})}),uce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(wd,{className:X(`block space-y-3xs`,e),ref:r,...i,children:t}),dce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Td,{className:X(`sticky top-[0px] z-1 my-[0px] mr-[0px] ml-[3px] bg-surface-2 px-sm pt-sm pb-3xs style-text-strong--2 text-on-surface-variant`,e),ref:r,...i,children:t}),fce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`inline-flex items-center gap-xs style-text-default-0 text-on-surface-variant`,e),ref:r,...i,children:t}),pce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(jd,{className:X(`mx-xs flex cursor-default items-center rounded-lg px-2xs py-3xs style-text-prose-0 select-none first:mt-xs last:mb-xs hover:cursor-pointer hover:bg-neutral-container-high hover:text-neutral-on-container data-highlighted:relative data-highlighted:z-0 data-highlighted:bg-neutral-container-high data-highlighted:text-neutral-on-container before:data-highlighted:absolute before:data-highlighted:inset-x-sm before:data-highlighted:inset-y-[0px] before:data-highlighted:z-[-1] before:data-highlighted:rounded-sm`,e),ref:r,...i,children:t}),mce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Md,{className:X(`grid grid-cols-5`,e),ref:r,...i,children:t}),hce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(ad,{className:X(`flex items-center gap-2xs p-xs style-text-prose--1 text-on-surface-variant empty:hidden`,e),ref:r,...i,children:t}),gce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(zu,{className:X(``,e),ref:r,...i,render:()=>(0,n.jsx)(n.Fragment,{children:t})}),_ce=Gn(`group/avatar relative inline-flex shrink-0 items-center justify-center rounded-full`,{variants:{size:{small:`size-lg style-text-default--1`,medium:`size-xl style-text-default-0`,large:`size-2xl style-text-default-1`}},defaultVariants:{size:`medium`}}),vce=Gn(`absolute right-0 bottom-0 inline-flex items-center justify-center rounded-full outline-3 outline-surface-background group-data-[size=large]/avatar:size-md group-data-[size=medium]/avatar:size-sm group-data-[size=small]/avatar:size-xs group-data-[size=large]/avatar:[&_svg]:size-sm group-data-[size=medium]/avatar:[&_svg]:size-xs group-data-[size=small]/avatar:[&_svg]:size-2xs`,{variants:{tone:{brand:`bg-brand-default [&>svg]:text-brand-on-default`,accent:`bg-accent-default [&>svg]:text-accent-on-default`,neutral:`bg-neutral-default [&>svg]:text-neutral-on-default`,error:`bg-error-default [&>svg]:text-error-on-default`,info:`bg-info-default [&>svg]:text-info-on-default`,success:`bg-success-default [&>svg]:text-success-on-default`,warning:`bg-warning-default [&>svg]:text-warning-on-default`},position:{topLeft:`top-0 left-0`,topRight:`top-0 right-0`,bottomLeft:`bottom-0 left-0`,bottomRight:`right-0 bottom-0`}},defaultVariants:{tone:`success`,position:`bottomRight`}}),yce=({size:e=`medium`,className:t,children:r,ref:i,...a})=>(0,n.jsx)(Ld,{className:X(_ce({className:t,size:e})),"data-size":e,"data-slot":`avatar`,ref:i,...a,children:r}),bce=({className:e,ref:t,...r})=>(0,n.jsx)(zd,{className:X(`flex size-full items-center justify-center rounded-full bg-surface-3 align-middle shadow-2xs select-none`,e),"data-slot":`avatar-fallback`,ref:t,...r}),xce=({className:e,ref:t,...r})=>(0,n.jsx)(Rd,{className:X(`size-full rounded-full object-cover`,e),"data-slot":`avatar-image`,ref:t,...r}),Sce=({tone:e,position:t,className:r,children:i,ref:a,...o})=>(0,n.jsx)(`div`,{"data-slot":`avatar-badge`,className:X(vce({tone:e,position:t,className:r})),ref:a,...o,children:i}),Cce=Gn(`inline-flex items-center justify-center gap-3xs rounded-full style-text-default--2 whitespace-nowrap transition-all select-none`,{variants:{size:{small:`h-sm px-xs [&>svg]:size-2xs`,medium:`h-md px-xs [&>svg]:size-xs`,large:`h-lg px-xs [&>svg]:size-sm`,iconSmall:`size-sm [&>svg]:size-2xs`,iconMedium:`size-md [&>svg]:size-xs`,iconLarge:`size-lg [&>svg]:size-sm`},tone:{brand:``,accent:``,neutral:``,error:``,info:``,success:``,warning:``},variant:{fill:`shadow-2xs`,outline:`border`,soft:`border`}},defaultVariants:{size:`medium`,tone:`brand`,variant:`fill`},compoundVariants:[{variant:`fill`,tone:`brand`,className:`bg-brand-default text-brand-on-default`},{variant:`fill`,tone:`accent`,className:`bg-accent-default text-accent-on-default`},{variant:`fill`,tone:`neutral`,className:`bg-neutral-default text-neutral-on-default`},{variant:`fill`,tone:`error`,className:`bg-error-default text-error-on-default`},{variant:`fill`,tone:`info`,className:`bg-info-default text-info-on-default`},{variant:`fill`,tone:`success`,className:`bg-success-default text-success-on-default`},{variant:`fill`,tone:`warning`,className:`bg-warning-default text-warning-on-default`},{variant:`outline`,tone:`brand`,className:`border-brand-default text-brand-default`},{variant:`outline`,tone:`accent`,className:`border-accent-default text-accent-default`},{variant:`outline`,tone:`neutral`,className:`border-neutral-default text-neutral-default`},{variant:`outline`,tone:`error`,className:`border-error-default text-error-default`},{variant:`outline`,tone:`info`,className:`border-info-default text-info-default`},{variant:`outline`,tone:`success`,className:`border-success-default text-success-default`},{variant:`outline`,tone:`warning`,className:`border-warning-default text-warning-default`},{variant:`soft`,tone:`brand`,className:`border-brand-border bg-brand-container text-brand-on-container`},{variant:`soft`,tone:`accent`,className:`border-accent-border bg-accent-container text-accent-on-container`},{variant:`soft`,tone:`neutral`,className:`border-neutral-border bg-neutral-container text-neutral-on-container`},{variant:`soft`,tone:`error`,className:`border-error-border bg-error-container text-error-on-container`},{variant:`soft`,tone:`info`,className:`border-info-border bg-info-container text-info-on-container`},{variant:`soft`,tone:`success`,className:`border-success-border bg-success-container text-success-on-container`},{variant:`soft`,tone:`warning`,className:`border-warning-border bg-warning-container text-warning-on-container`}]}),Yv=({className:e,size:t,tone:r,variant:i,children:a,ref:o,...s})=>(0,n.jsx)(`div`,{className:X(Cce({className:e,size:t,tone:r,variant:i})),ref:o,...s,children:a}),wce=Gn(`group/box flex size-full min-h-0 flex-col overflow-hidden bg-surface`,{variants:{size:{small:`gap-xs rounded-xl p-xs shadow-2xs`,medium:`gap-sm rounded-2xl p-sm shadow-xs`,large:`gap-md rounded-3xl p-md shadow-sm`}},defaultVariants:{size:`medium`}}),Tce=({size:e=`medium`,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`div`,{"data-size":e,className:X(wce({size:e,className:t})),ref:i,...a,children:r}),Ece=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`col-start-2 row-span-2 row-start-1 self-start justify-self-end pl-lg`,e),ref:r,...i,children:t}),Dce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`min-h-0 flex-1`,e),ref:r,...i,children:t}),Oce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`span`,{className:X(`text-on-surface-variant group-data-[size=large]/box:style-text-prose-0 group-data-[size=medium]/box:style-text-prose--1 group-data-[size=small]/box:style-text-prose--2`,e),ref:r,...i,children:t}),kce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex items-center justify-between not-first:group-data-[size=large]/box:gap-lg not-first:group-data-[size=medium]/box:gap-md group-data-[size=small]/box:gap-sm`,e),ref:r,...i,children:t}),Ace=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`group/box-header grid auto-rows-min items-start group-data-[size=large]/box:gap-0 group-data-[size=medium]/box:gap-0 group-data-[size=small]/box:gap-0`,e),ref:r,...i,children:t}),jce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`span`,{className:X(`group-data-[size=large]/box:style-text-strong-1 not-first:group-data-[size=large]/box:pt-xs group-data-[size=medium]/box:style-text-strong-0 not-first:group-data-[size=medium]/box:pt-2xs group-data-[size=small]/box:style-text-strong--1 not-first:group-data-[size=small]/box:pt-3xs`,e),ref:r,...i,children:t}),Mce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`nav`,{className:X(`flex items-center gap-2xs px-sm py-2xs`,e),ref:r,...i,children:t}),Nce=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(`div`,{className:X(`flex size-md items-center justify-center rounded-sm text-on-surface-variant transition-all hover:cursor-pointer hover:bg-neutral-container hover:text-neutral-on-container active:scale-[0.98] active:bg-neutral-container disabled:opacity-50 [&>svg]:size-sm`,e),ref:r,...i,children:[t,(0,n.jsx)(ti,{weight:`bold`})]}),Pce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`inline-flex h-md items-center justify-center gap-2xs rounded-full px-2xs style-text-default--1 text-accent-default [&>svg]:size-xs`,e),ref:r,...i,children:t}),Fce=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`inline-flex h-md items-center justify-center gap-3xs rounded-md px-2xs style-text-default--1 text-on-surface-variant transition-all hover:cursor-pointer hover:bg-neutral-container active:scale-[0.98] active:bg-neutral-container disabled:opacity-50 [&>svg]:size-xs`,e),ref:r,...i,children:t}),Ice=({className:e,ref:t,...r})=>(0,n.jsx)(`div`,{className:X(`text-on-surface-variant [&>svg]:size-xs`,e),ref:t,...r,children:(0,n.jsx)(Jr,{weight:`bold`})}),Lce=Gn(`inline-flex cursor-pointer items-center justify-center overflow-hidden rounded-lg whitespace-nowrap transition-all select-none *:rounded-none *:bg-transparent disabled:pointer-events-none disabled:opacity-50 [&>button]:text-inherit`,{variants:{size:{large:`rounded-2xl *:style-text-default-2 [&>button]:h-2xl [&>button]:px-md [&>button]:[&>svg]:size-md`,medium:`rounded-xl *:style-text-default-0 [&>button]:h-xl [&>button]:px-sm [&>button]:[&>svg]:size-sm`,small:`rounded-lg *:style-text-default--1 [&>button]:h-lg [&>button]:px-xs [&>button]:[&>svg]:size-xs`,extraSmall:`rounded-md *:style-text-default--2 [&>button]:h-md [&>button]:px-2xs [&>button]:[&>svg]:size-2xs`,iconLarge:`rounded-2xl *:size-2xl [&>button]:size-2xl [&>button]:p-[0px] [&>button]:[&>svg]:size-md`,iconMedium:`rounded-xl *:size-xl [&>button]:size-xl [&>button]:p-[0px] [&>button]:[&>svg]:size-sm`,iconSmall:`rounded-lg *:size-lg [&>button]:size-lg [&>button]:p-[0px] [&>button]:[&>svg]:size-xs`,iconExtraSmall:`rounded-md *:size-md [&>button]:size-md [&>button]:p-[0px] [&>button]:[&>svg]:size-2xs`},variant:{fill:``,outline:`border`,ghost:``,soft:`border`,elevated:`shadow-xs *:active:scale-100!`},tone:{brand:`[&>*+*]:before:bg-brand-border`,accent:`[&>*+*]:before:bg-accent-border`,neutral:`[&>*+*]:before:bg-neutral-border`,error:`[&>*+*]:before:bg-error-border`,info:`[&>*+*]:before:bg-info-border`,success:`[&>*+*]:before:bg-success-border`,warning:``},orientation:{horizontal:`[&>*+*]:relative [&>*+*]:before:absolute [&>*+*]:before:top-1/2 [&>*+*]:before:left-0 [&>*+*]:before:h-1/2 [&>*+*]:before:w-px [&>*+*]:before:-translate-y-1/2 [&>*+*]:before:content-[""]`,vertical:`flex-col [&>*+*]:relative [&>*+*]:before:absolute [&>*+*]:before:top-0 [&>*+*]:before:left-1/2 [&>*+*]:before:h-px [&>*+*]:before:w-1/2 [&>*+*]:before:-translate-x-1/2 [&>*+*]:before:content-[""]`}},defaultVariants:{size:`medium`,variant:`fill`,tone:`brand`,orientation:`horizontal`},compoundVariants:[{variant:`fill`,tone:`brand`,className:`bg-brand-default text-brand-on-default [&>button:hover]:bg-brand-muted`},{variant:`fill`,tone:`accent`,className:`bg-accent-default text-accent-on-default [&>button:hover]:bg-accent-muted`},{variant:`fill`,tone:`neutral`,className:`bg-neutral-default text-neutral-on-default [&>button:hover]:bg-neutral-muted`},{variant:`fill`,tone:`error`,className:`bg-error-default text-error-on-default [&>button:hover]:bg-error-muted`},{variant:`fill`,tone:`info`,className:`bg-info-default text-info-on-default [&>button:hover]:bg-info-muted`},{variant:`fill`,tone:`success`,className:`bg-success-default text-success-on-default [&>button:hover]:bg-success-muted`},{variant:`fill`,tone:`warning`,className:`bg-warning-default text-warning-on-default [&>button:hover]:bg-warning-muted`},{variant:`outline`,tone:`brand`,className:`border-brand-border text-brand-default [&>button:hover]:bg-brand-subtle [&>button:hover]:text-brand-on-container`},{variant:`outline`,tone:`accent`,className:`border-accent-border text-accent-default [&>button:hover]:bg-accent-subtle [&>button:hover]:text-accent-on-container`},{variant:`outline`,tone:`neutral`,className:`border-neutral-border text-neutral-default [&>button:hover]:bg-neutral-subtle [&>button:hover]:text-neutral-on-container`},{variant:`outline`,tone:`error`,className:`border-error-border text-error-default [&>button:hover]:bg-error-subtle [&>button:hover]:text-error-on-container`},{variant:`outline`,tone:`info`,className:`border-info-border text-info-default [&>button:hover]:bg-info-subtle [&>button:hover]:text-info-on-container`},{variant:`outline`,tone:`success`,className:`border-success-border text-success-default [&>button:hover]:bg-success-subtle [&>button:hover]:text-success-on-container`},{variant:`outline`,tone:`warning`,className:`border-warning-border text-warning-default [&>button:hover]:bg-warning-subtle [&>button:hover]:text-warning-on-container`},{variant:`ghost`,tone:`brand`,className:`text-brand-default [&>button:hover]:bg-brand-subtle [&>button:hover]:text-brand-on-container`},{variant:`ghost`,tone:`accent`,className:`text-accent-default [&>button:hover]:bg-accent-subtle [&>button:hover]:text-accent-on-container`},{variant:`ghost`,tone:`neutral`,className:`text-neutral-default [&>button:hover]:bg-neutral-subtle [&>button:hover]:text-neutral-on-container`},{variant:`ghost`,tone:`error`,className:`text-error-default [&>button:hover]:bg-error-subtle [&>button:hover]:text-error-on-container`},{variant:`ghost`,tone:`info`,className:`text-info-default [&>button:hover]:bg-info-subtle [&>button:hover]:text-info-on-container`},{variant:`ghost`,tone:`success`,className:`text-success-default [&>button:hover]:bg-success-subtle [&>button:hover]:text-success-on-container`},{variant:`ghost`,tone:`warning`,className:`text-warning-default [&>button:hover]:bg-warning-subtle [&>button:hover]:text-warning-on-container`},{variant:`soft`,tone:`brand`,className:`border-brand-border bg-brand-container text-brand-on-container [&>button:hover]:bg-brand-container-high`},{variant:`soft`,tone:`accent`,className:`border-accent-border bg-accent-container text-accent-on-container [&>button:hover]:bg-accent-container-high`},{variant:`soft`,tone:`neutral`,className:`border-neutral-border bg-neutral-container text-neutral-on-container [&>button:hover]:bg-neutral-container-high`},{variant:`soft`,tone:`error`,className:`border-error-border bg-error-container text-error-on-container [&>button:hover]:bg-error-container-high`},{variant:`soft`,tone:`info`,className:`border-info-border bg-info-container text-info-on-container [&>button:hover]:bg-info-container-high`},{variant:`soft`,tone:`success`,className:`border-success-border bg-success-container text-success-on-container [&>button:hover]:bg-success-container-high`},{variant:`soft`,tone:`warning`,className:`border-warning-border bg-warning-container text-warning-on-container [&>button:hover]:bg-warning-container-high`},{variant:`elevated`,tone:`brand`,className:`bg-brand-container text-brand-on-container [&>button]:not-active:hover:bg-brand-container-high [&>button]:active:bg-brand-container`},{variant:`elevated`,tone:`accent`,className:`bg-accent-container text-accent-on-container [&>button]:not-active:hover:bg-accent-container-high [&>button]:active:bg-accent-container`},{variant:`elevated`,tone:`neutral`,className:`bg-surface-2 text-on-surface [&>button]:not-active:hover:bg-surface-3 [&>button]:not-active:hover:text-neutral-on-container [&>button]:active:bg-surface`},{variant:`elevated`,tone:`error`,className:`bg-error-container text-error-on-container [&>button]:not-active:hover:bg-error-container-high [&>button]:active:bg-error-container`},{variant:`elevated`,tone:`info`,className:`bg-info-container text-info-on-container [&>button]:not-active:hover:bg-info-container-high [&>button]:active:bg-info-container`},{variant:`elevated`,tone:`success`,className:`bg-success-container text-success-on-container [&>button]:not-active:hover:bg-success-container-high [&>button]:active:bg-success-container`},{variant:`elevated`,tone:`warning`,className:`bg-warning-container text-warning-on-container [&>button]:not-active:hover:bg-warning-container-high [&>button]:active:bg-warning-container`}]}),Rce=({size:e,variant:t,tone:r,orientation:i,className:a,children:o,ref:s,...c})=>(0,n.jsx)(`div`,{className:X(Lce({size:e,variant:t,tone:r,orientation:i}),a),ref:s,...c,children:o}),Xv=m.default.createContext(null),zce=({id:e,config:t,className:r,children:i,ref:a,...o})=>{let s=m.default.useId(),c=`chart-${e??s.replace(/:/g,``)}`;return(0,n.jsx)(Xv.Provider,{value:{config:t},children:(0,n.jsx)(`div`,{"data-slot":`chart`,"data-chart":c,className:X(`flex aspect-video justify-center style-text-default--1 [&_.recharts-cartesian-axis-tick_text]:fill-on-surface-muted [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-neutral-container-high [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-neutral-container-high [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden`,r),ref:a,...o,children:i})})},Zv=()=>{let e=m.default.useContext(Xv);if(!e)throw Error(`useChart must be used within a ChartContainerProvider`);return e},Bce=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`);function Qv(e){return typeof e==`string`&&Bce.includes(e)}var Vce=new Set(`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`));function $v(e){return typeof e==`string`&&Vce.has(e)}function ey(e){return typeof e==`string`&&e.startsWith(`data-`)}function ty(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&($v(n)||ey(n))&&(t[n]=e[n]);return t}function Hce(e){if(e==null)return null;if((0,t.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var n=e.props;return ty(n)}return typeof e==`object`&&!Array.isArray(e)?ty(e):null}function ny(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&($v(n)||ey(n)||Qv(n))&&(t[n]=e[n]);return t}var Uce=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function ry(){return ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ry.apply(null,arguments)}function Wce(e,t){if(e==null)return{};var n,r,i=Gce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Gce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Kce=(0,t.forwardRef)((e,n)=>{var r=e.children,i=e.width,a=e.height,o=e.viewBox,s=e.className,c=e.style,l=e.title,u=e.desc,d=Wce(e,Uce),f=o||{width:i,height:a,x:0,y:0},p=Hn(`recharts-surface`,s);return t.createElement(`svg`,ry({},ny(d),{className:p,width:i,height:a,style:c,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:n}),t.createElement(`title`,null,l),t.createElement(`desc`,null,u),r)});function iy(e){return e===`__proto__`}var qce=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function ay(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:qce.test(e);default:return!1}}function oy(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function Jce(e){return e==null?``:sy(e)}function sy(e){if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(sy).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function cy(e){if(Array.isArray(e))return e.map(oy);if(typeof e==`symbol`)return[e];e=Jce(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1,s=!1,c=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let l=e[r];if(a)l===`\\`&&r+1<n?(r++,i+=e[r]):l===a?a=``:i+=l;else if(o){if(l===`"`||l===`'`)a=l,s=!0;else if(l===`]`){if(o=!1,!s&&i.includes(`.`)&&!c.test(i)){let e=i.split(`.`);for(let n=0;n<e.length;n++)e[n]!==``&&t.push(e[n])}else t.push(i);i=``}else i+=l}else if(l===`[`)o=!0,s=!1,i&&=(t.push(i),``);else if(l===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=l;r++}return i&&t.push(i),t}function ly(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(iy(t))return n;let r=e[t];return r===void 0?ay(t)&&!Object.hasOwn(e,t)?ly(e,cy(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=oy(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Yce(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),iy(t))return n;let r=e[t];return r===void 0?n:r}}}function Yce(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||iy(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var Xce=4;function uy(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xce),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function dy(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((e,t,r)=>{var i=n[r-1];return typeof i==`string`?e+i+t:i===void 0?e+t:e+uy(i)+t},``)}var fy=e=>e===0?0:e>0?1:-1,py=e=>typeof e==`number`&&e!=+e,my=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,hy=e=>(typeof e==`number`||e instanceof Number)&&!py(e),gy=e=>hy(e)||typeof e==`string`,Zce=0,_y=e=>{var t=++Zce;return`${e||``}${t}`},vy=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!hy(e)&&typeof e!=`string`)return n;var i;if(my(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return py(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},yy=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function by(e,t,n){return hy(e)&&hy(t)?uy(e+n*(t-e)):t}function Qce(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):ly(e,t))===n)}var xy=e=>e==null,Sy=e=>xy(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function Cy(e){return e!=null}function $ce(){}function ele(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function wy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ty(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wy(Object(n),!0).forEach(function(t){tle(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tle(e,t,n){return(t=nle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nle(e){var t=rle(e,`string`);return typeof t==`symbol`?t:t+``}function rle(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ile=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=ele(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?Ty({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?Ty({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?Ty({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?Ty({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?Ty({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?Ty({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?Ty({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?Ty({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(hy(n.x)||my(n.x))&&(hy(n.y)||my(n.y))?Ty({x:c+vy(n.x,g),y:l+vy(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):Ty({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},ale=[`top`,`left`,`right`,`bottom`];function Ey(e){return e==null?!1:typeof e==`object`||ale.includes(e)}var ole=(0,t.createContext)(null),sle=()=>(0,t.useContext)(ole);function Dy(e){return function(){return e}}var Oy=Math.cos,ky=Math.sin,Ay=Math.sqrt,jy=Math.PI;jy/2;var My=2*jy,Ny=Math.PI,Py=2*Ny,Fy=1e-6,cle=Py-Fy;function Iy(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function lle(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return Iy;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var Ly=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Iy:lle(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Fy){if(!(Math.abs(u*s-c*l)>Fy)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Ny-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Fy&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Fy||Math.abs(this._y1-l)>Fy)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Py+Py),d>cle?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Fy&&this._append`A${n},${n},0,${+(d>=Ny)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};Ly.prototype;function Ry(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Ly(t)}Array.prototype.slice;function zy(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function By(e){this._context=e}By.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function Vy(e){return new By(e)}function Hy(e){return e[0]}function Uy(e){return e[1]}function Wy(e,t){var n=Dy(!0),r=null,i=Vy,a=null,o=Ry(s);e=typeof e==`function`?e:e===void 0?Hy:Dy(e),t=typeof t==`function`?t:t===void 0?Uy:Dy(t);function s(s){var c,l=(s=zy(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:Dy(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:Dy(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:Dy(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function Gy(e,t,n){var r=null,i=Dy(!0),a=null,o=Vy,s=null,c=Ry(l);e=typeof e==`function`?e:e===void 0?Hy:Dy(+e),t=typeof t==`function`?t:Dy(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?Uy:Dy(+n);function l(l){var u,d,f,p=(l=zy(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h){if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return Wy().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:Dy(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:Dy(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:Dy(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:Dy(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:Dy(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:Dy(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:Dy(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var Ky=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function ule(e){return new Ky(e,!0)}function dle(e){return new Ky(e,!1)}var qy={draw(e,t){let n=Ay(t/jy);e.moveTo(n,0),e.arc(0,0,n,0,My)}},fle={draw(e,t){let n=Ay(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Jy=Ay(1/3),ple=Jy*2,mle={draw(e,t){let n=Ay(t/ple),r=n*Jy;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},hle={draw(e,t){let n=Ay(t),r=-n/2;e.rect(r,r,n,n)}},gle=.8908130915292852,Yy=ky(jy/10)/ky(7*jy/10),_le=ky(My/10)*Yy,vle=-Oy(My/10)*Yy,yle={draw(e,t){let n=Ay(t*gle),r=_le*n,i=vle*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=My*t/5,o=Oy(a),s=ky(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},Xy=Ay(3),ble={draw(e,t){let n=-Ay(t/(Xy*3));e.moveTo(0,n*2),e.lineTo(-Xy*n,-n),e.lineTo(Xy*n,-n),e.closePath()}},Zy=-.5,Qy=Ay(3)/2,$y=1/Ay(12),xle=($y/2+1)*3,Sle={draw(e,t){let n=Ay(t/xle),r=n/2,i=n*$y,a=r,o=n*$y+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Zy*r-Qy*i,Qy*r+Zy*i),e.lineTo(Zy*a-Qy*o,Qy*a+Zy*o),e.lineTo(Zy*s-Qy*c,Qy*s+Zy*c),e.lineTo(Zy*r+Qy*i,Zy*i-Qy*r),e.lineTo(Zy*a+Qy*o,Zy*o-Qy*a),e.lineTo(Zy*s+Qy*c,Zy*c-Qy*s),e.closePath()}};function Cle(e,t){let n=null,r=Ry(i);e=typeof e==`function`?e:Dy(e||qy),t=typeof t==`function`?t:Dy(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:Dy(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:Dy(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function eb(){}function tb(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function nb(e){this._context=e}nb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:tb(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:tb(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wle(e){return new nb(e)}function rb(e){this._context=e}rb.prototype={areaStart:eb,areaEnd:eb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:tb(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Tle(e){return new rb(e)}function ib(e){this._context=e}ib.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:tb(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ele(e){return new ib(e)}function ab(e){this._context=e}ab.prototype={areaStart:eb,areaEnd:eb,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Dle(e){return new ab(e)}function ob(e){return e<0?-1:1}function sb(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(ob(a)+ob(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function cb(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function lb(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function ub(e){this._context=e}ub.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:lb(this,this._t0,cb(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,lb(this,cb(this,n=sb(this,e,t)),n);break;default:lb(this,this._t0,n=sb(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function db(e){this._context=new fb(e)}(db.prototype=Object.create(ub.prototype)).point=function(e,t){ub.prototype.point.call(this,t,e)};function fb(e){this._context=e}fb.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Ole(e){return new ub(e)}function kle(e){return new db(e)}function pb(e){this._context=e}pb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=mb(e),i=mb(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function mb(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Ale(e){return new pb(e)}function hb(e,t){this._context=e,this._t=t}hb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function jle(e){return new hb(e,.5)}function Mle(e){return new hb(e,0)}function Nle(e){return new hb(e,1)}function gb(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function _b(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function Ple(e,t){return e[t]}function Fle(e){let t=[];return t.key=e,t}function Ile(){var e=Dy([]),t=_b,n=gb,r=Ple;function i(i){var a=Array.from(e.apply(this,arguments),Fle),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=zy(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:Dy(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:Dy(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?_b:typeof e==`function`?e:Dy(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??gb,i):n},i}function Lle(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}gb(e,t)}}function Rle(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}gb(e,t)}}function zle(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,gb(e,t)}}var Ble=[`type`,`size`,`sizeType`];function vb(){return vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vb.apply(null,arguments)}function yb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yb(Object(n),!0).forEach(function(t){Vle(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vle(e,t,n){return(t=Hle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hle(e){var t=Ule(e,`string`);return typeof t==`symbol`?t:t+``}function Ule(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Wle(e,t){if(e==null)return{};var n,r,i=Gle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Gle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var xb={symbolCircle:qy,symbolCross:fle,symbolDiamond:mle,symbolSquare:hle,symbolStar:yle,symbolTriangle:ble,symbolWye:Sle},Kle=Math.PI/180,qle=e=>xb[`symbol${Sy(e)}`]||qy,Jle=(e,t,n)=>{if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*Kle;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Yle=(e,t)=>{xb[`symbol${Sy(e)}`]=t},Sb=e=>{var n=e.type,r=n===void 0?`circle`:n,i=e.size,a=i===void 0?64:i,o=e.sizeType,s=o===void 0?`area`:o,c=bb(bb({},Wle(e,Ble)),{},{type:r,size:a,sizeType:s}),l=`circle`;typeof r==`string`&&(l=r);var u=()=>{var e=qle(l),t=Cle().type(e).size(Jle(a,s,l))();if(t!==null)return t},d=c.className,f=c.cx,p=c.cy,m=ny(c);return hy(f)&&hy(p)&&hy(a)?t.createElement(`path`,vb({},m,{className:Hn(`recharts-symbols`,d),transform:`translate(${f}, ${p})`,d:u()})):null};Sb.registerSymbol=Yle;var Cb=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,Xle=(e,n)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var r=e;if((0,t.isValidElement)(e)&&(r=e.props),typeof r!=`object`&&typeof r!=`function`)return null;var i={};return Object.keys(r).forEach(e=>{Qv(e)&&typeof r[e]==`function`&&(i[e]=n||(t=>r[e](r,t)))}),i},Zle=(e,t,n)=>r=>(e(t,n,r),null),Qle=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];Qv(i)&&typeof a==`function`&&(r||={},r[i]=Zle(a,t,n))}),r};function wb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $le(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wb(Object(n),!0).forEach(function(t){eue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eue(e,t,n){return(t=tue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tue(e){var t=nue(e,`string`);return typeof t==`symbol`?t:t+``}function nue(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Tb(e,t){var n=$le({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function Eb(){return Eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eb.apply(null,arguments)}function Db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ob(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Db(Object(n),!0).forEach(function(t){rue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Db(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rue(e,t,n){return(t=iue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iue(e){var t=aue(e,`string`);return typeof t==`symbol`?t:t+``}function aue(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var kb=32,oue={align:`center`,iconSize:14,inactiveColor:`#ccc`,layout:`horizontal`,verticalAlign:`middle`,labelStyle:{}};function sue(e){if(typeof e==`object`&&e&&`strokeDasharray`in e)return String(e.strokeDasharray)}function cue(e){var n=e.data,r=e.iconType,i=e.inactiveColor,a=kb/2,o=kb/6,s=kb/3,c=n.inactive?i:n.color,l=r??n.type;if(l===`none`)return null;if(l===`plainline`)return t.createElement(`line`,{strokeWidth:4,fill:`none`,stroke:c,strokeDasharray:sue(n.payload),x1:0,y1:a,x2:kb,y2:a,className:`recharts-legend-icon`});if(l===`line`)return t.createElement(`path`,{strokeWidth:4,fill:`none`,stroke:c,d:`M0,${a}h${s}
5
- A${o},${o},0,1,1,${2*s},${a}
6
- H${kb}M${2*s},${a}
7
- A${o},${o},0,1,1,${s},${a}`,className:`recharts-legend-icon`});if(l===`rect`)return t.createElement(`path`,{stroke:`none`,fill:c,d:`M0,${kb/8}h${kb}v${kb*3/4}h${-kb}z`,className:`recharts-legend-icon`});if(t.isValidElement(n.legendIcon)){var u=Ob({},n);return delete u.legendIcon,t.cloneElement(n.legendIcon,u)}return t.createElement(Sb,{fill:c,cx:a,cy:a,size:kb,sizeType:`diameter`,type:l})}function lue(e){var n=e.payload,r=e.iconSize,i=e.layout,a=e.formatter,o=e.inactiveColor,s=e.iconType,c=e.labelStyle,l={x:0,y:0,width:kb,height:kb},u={display:i===`horizontal`?`inline-block`:`block`,marginRight:10,whiteSpace:`nowrap`},d={display:`inline-block`,verticalAlign:`middle`,marginRight:4};return n.map((n,i)=>{var f=n.formatter||a,p=Hn({"recharts-legend-item":!0,[`legend-item-${i}`]:!0,inactive:n.inactive});if(n.type===`none`)return null;var m=typeof c==`object`?Ob({},c):{};m.color=n.inactive?o:m.color||n.color,m.whiteSpace??=`normal`,m.overflowWrap??=`break-word`;var h=f?f(n.value,n,i):n.value;return t.createElement(`li`,Eb({className:p,style:u,key:`legend-item-${i}`},Qle(e,n,i)),t.createElement(Kce,{width:r,height:r,viewBox:l,style:d,"aria-label":n.value==null?`legend icon`:`${n.value} legend icon`},t.createElement(cue,{data:n,iconType:s,inactiveColor:o})),t.createElement(`span`,{className:`recharts-legend-item-text`,style:m},h))})}var uue=e=>{var n=Tb(e,oue),r=n.payload,i=n.layout,a=n.align;if(!r||!r.length)return null;var o={padding:0,margin:0,textAlign:i===`horizontal`?a:`left`};return t.createElement(`ul`,{className:`recharts-default-legend`,style:o},t.createElement(lue,Eb({},n,{payload:r})))};function due(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function fue(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function Ab(e){return e}function pue(e){return Number.isSafeInteger(e)&&e>=0}function jb(e){return e!=null&&typeof e!=`function`&&pue(e.length)}function mue(e){return function(t){return ly(t,e)}}function Mb(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function hue(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function gue(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Nb(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var _ue=`[object RegExp]`,Pb=`[object String]`,Fb=`[object Number]`,Ib=`[object Boolean]`,Lb=`[object Arguments]`,vue=`[object Symbol]`,yue=`[object Date]`,bue=`[object Map]`,xue=`[object Set]`,Sue=`[object Array]`,Cue=`[object ArrayBuffer]`,wue=`[object Object]`,Tue=`[object DataView]`,Eue=`[object Uint8Array]`,Due=`[object Uint8ClampedArray]`,Oue=`[object Uint16Array]`,kue=`[object Uint32Array]`,Aue=`[object Int8Array]`,jue=`[object Int16Array]`,Mue=`[object Int32Array]`,Nue=`[object Float32Array]`,Pue=`[object Float64Array]`,Rb=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function Fue(e){return Rb.Buffer!==void 0&&Rb.Buffer.isBuffer(e)}function Iue(e,t){return zb(e,void 0,e,new Map,t)}function zb(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(Mb(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=zb(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,zb(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(zb(a,void 0,n,r,i));return t}if(Fue(e))return e.subarray();if(hue(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=zb(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),Bb(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),Bb(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),Bb(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,Bb(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),Bb(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),Bb(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),Bb(t,e,n,r,i),t}if(typeof e==`object`&&Lue(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),Bb(t,e,n,r,i),t}return e}function Bb(e,t,n=e,r,i){let a=[...Object.keys(t),...gue(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=zb(t[s],s,n,r,i))}}function Lue(e){switch(Nb(e)){case Lb:case Sue:case Cue:case Tue:case Ib:case yue:case Nue:case Pue:case Aue:case jue:case Mue:case bue:case Fb:case wue:case _ue:case xue:case Pb:case vue:case Eue:case Due:case Oue:case kue:return!0;default:return!1}}function Rue(e){return zb(e,void 0,e,new Map,void 0)}function Vb(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Hb(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Ub(e,t,n){return typeof n==`function`?Wb(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?Wb(t,r,e,s,!1):!!c},new Map,!0):Ub(e,t,()=>void 0)}function Wb(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return zue(e,t,n,r,i);case`function`:return Object.keys(t).length>0?Wb(e,{...t},n,r,i):Vb(e,t);default:return Hb(e)&&i?typeof t!=`string`||t===``:Vb(e,t)}}function zue(e,t,n,r,i=!1){if(t==null)return!0;if(Array.isArray(t))return Gb(e,t,n,r);if(t instanceof Map)return Bue(e,t,n,r);if(t instanceof Set)return Vue(e,t,n,r);let a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)Mb(e)&&(e=Object(e));else{let t=Nb(e);if(t!==`[object Object]`&&t!==`[object Arguments]`)return!1}if(a.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let i=0;i<a.length;i++){let o=a[i];if(!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function Bue(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function Gb(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function Vue(e,t,n,r){return t.size===0||e instanceof Set&&Gb([...e],[...t],n,r)}function Kb(e,t){return Ub(e,t,()=>void 0)}function Hue(e){return e=Rue(e),t=>Kb(t,e)}function Uue(e,t){return Iue(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(Nb(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),Bb(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case Fb:case Pb:case Ib:{let t=new e.constructor(e?.valueOf());return Bb(t,e),t}case Lb:{let t={};return Bb(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Wue(e){return Uue(e)}var Gue=/^(?:0|[1-9]\d*)$/;function qb(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return Gue.test(e)}}function Kue(e){return typeof e==`object`&&!!e&&Nb(e)===`[object Arguments]`}function que(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&ay(t)&&!(t in Object(e))?cy(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||Kue(r))&&qb(t)&&t<r.length))return!1;r=r[t]}return!0}function Jue(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=oy(e)}return t=Wue(t),function(n){let r=ly(n,e);return r===void 0?que(n,e):t===void 0?r===void 0:Kb(r,t)}}function Yue(e){if(e==null)return Ab;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?Jue(e[0],e[1]):Hue(e);default:return mue(e)}}function Xue(e){return e===0?0:e}function Jb(e,t=Ab){return jb(e)?due(Array.from(e),fue(Yue(t),1)).map(Xue):[]}function Yb(e,t,n){return t===!0?Jb(e,n):typeof t==`function`?Jb(e,t):e}var Xb=(0,t.createContext)(null),Zue=e=>e,Zb=()=>{var e=(0,t.useContext)(Xb);return e?e.store.dispatch:Zue},Qb=()=>{},Que=()=>Qb,$ue=(e,t)=>e===t;function $b(e){var n=(0,t.useContext)(Xb),r=(0,t.useMemo)(()=>n?t=>{if(t!=null)return e(t)}:Qb,[n,e]);return(0,Gs.useSyncExternalStoreWithSelector)(n?n.subscription.addNestedSub:Que,n?n.store.getState:Qb,n?n.store.getState:Qb,r,$ue)}var ede=(e,t,n)=>{if(t.length===1&&t[0]===n){let t=!1;try{let n={};e(n)===n&&(t=!0)}catch{}if(t){let e;try{throw Error()}catch(t){({stack:e}=t)}console.warn(`The result function returned its own inputs without modification. e.g
8
- \`createSelector([state => state.todos], todos => todos)\`
9
- This could lead to inefficient memoization and unnecessary re-renders.
10
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:e})}}},tde=(e,t,n)=>{let{memoize:r,memoizeOptions:i}=t,{inputSelectorResults:a,inputSelectorResultsCopy:o}=e,s=r(()=>({}),...i);if(s.apply(null,a)!==s.apply(null,o)){let e;try{throw Error()}catch(t){({stack:e}=t)}console.warn(`An input selector returned a different result when passed same arguments.
11
- This means your output selector will likely run more frequently than intended.
12
- Avoid returning a new reference inside your input selector, e.g.
13
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:a,secondInputs:o,stack:e})}},nde={inputStabilityCheck:`once`,identityFunctionCheck:`once`};function rde(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function ide(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var ex=e=>Array.isArray(e)?e:[e];function ade(e){let t=Array.isArray(e[0])?e[0]:e;return ide(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function tx(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var ode=(e,t)=>{let{identityFunctionCheck:n,inputStabilityCheck:r}={...nde,...t};return{identityFunctionCheck:{shouldRun:n===`always`||n===`once`&&e,run:ede},inputStabilityCheck:{shouldRun:r===`always`||r===`once`&&e,run:tde}}},sde=class{constructor(e){this.value=e}deref(){return this.value}},nx=typeof WeakRef>`u`?sde:WeakRef,cde=0,rx=1;function ix(){return{s:cde,v:void 0,o:null,p:null}}function lde(e){return e instanceof nx?e.deref():e}function ax(e,t={}){let n=ix(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=ix(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=ix(),e.set(n,t)):t=r}}let s=t,c;if(t.s===rx)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=lde(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new nx(c):c}return s.s=rx,s.v=c,c}return o.clearCache=()=>{n=ix(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function ude(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),rde(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let s={...n,...a},{memoize:c,memoizeOptions:l=[],argsMemoize:u=ax,argsMemoizeOptions:d=[]}=s,f=ex(l),p=ex(d),m=ade(e),h=c(function(){return t++,o.apply(null,arguments)},...f),g=!0,_=u(function(){r++;let e=tx(m,arguments);if(i=h.apply(null,e),process.env.NODE_ENV!==`production`){let{devModeChecks:t={}}=s,{identityFunctionCheck:n,inputStabilityCheck:r}=ode(g,t);if(n.shouldRun&&n.run(o,e,i),r.shouldRun){let t=tx(m,arguments);r.run({inputSelectorResults:e,inputSelectorResultsCopy:t},{memoize:c,memoizeOptions:f},arguments)}g&&=!1}return i},...p);return Object.assign(_,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:c,argsMemoize:u})};return Object.assign(r,{withTypes:()=>r}),r}var Q=ude(ax);function dde(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function ox(e,t,n){return Hb(n)&&(typeof t==`number`&&jb(n)&&qb(t)&&t<n.length||typeof t==`string`&&t in n)?Vb(n[t],e):!1}function sx(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var fde=(e,t,n)=>{if(e!==t){let r=sx(e),i=sx(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0};function cx(e){return typeof e==`symbol`||e instanceof Symbol}var lx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ux=/^\w*$/;function dx(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||cx(e)?!0:typeof e==`string`&&(ux.test(e)||!lx.test(e))||t!=null&&Object.hasOwn(t,e)}function fx(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=jb(e)?Array.from(e):Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e,r=0;for(;r<t.length&&n!=null;++r)n=n[t[r]];return r>0&&r===t.length?n:void 0},a=(e,t)=>{if(e==null)return t;if(t!=null)return typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):t[e]},o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||dx(e)?e:{key:e,path:cy(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=fde(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function px(e,...t){let n=t.length;return n>1&&ox(e,t[0],t[1])?t=[]:n>2&&ox(t[0],t[1],t[2])&&(t=[t[0]]),fx(e,dde(t),[`asc`])}var mx=e=>e.legend.settings,pde=e=>e.legend.size,mde=Q([e=>e.legend.payload,mx],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?px(r,n):r});function hde(){return $b(mde)}function gde(e,t){return bde(e)||yde(e,t)||vde(e,t)||_de()}function _de(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vde(e,t){if(e){if(typeof e==`string`)return hx(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hx(e,t):void 0}}function hx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yde(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function bde(e){if(Array.isArray(e))return e}var gx=1;function _x(e,t){return Math.abs(e.height-t.height)>gx||Math.abs(e.left-t.left)>gx||Math.abs(e.top-t.top)>gx||Math.abs(e.width-t.width)>gx}function vx(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function yx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=gde((0,t.useState)({height:0,left:0,top:0,width:0}),2),r=n[0],i=n[1],a=(0,t.useRef)(null),o=(0,t.useRef)(r);o.current=r;var s=(0,t.useCallback)(e=>{if(a.current!=null&&(a.current.disconnect(),a.current=null),e!=null){var t=vx(e);if(_x(t,o.current)&&i(t),typeof ResizeObserver<`u`){var n=new ResizeObserver(()=>{var t=vx(e);_x(t,o.current)&&i(t)});n.observe(e),a.current=n}}},[...e]);return(0,t.useEffect)(()=>()=>{var e;(e=a.current)==null||e.disconnect()},[]),[r,s]}var bx=()=>Math.random().toString(36).substring(7).split(``).join(`.`);`${bx()}`,`${bx()}`;function xde(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Sde(e){return xde(e)&&`type`in e&&typeof e.type==`string`}var xx=Symbol.for(`immer-nothing`),Sx=Symbol.for(`immer-draftable`),Cx=Symbol.for(`immer-state`),Cde=process.env.NODE_ENV===`production`?[]:[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},`This object has been frozen and should not be mutated`,function(e){return`Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? `+e},`An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.`,`Immer forbids circular references`,"The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},`Object.defineProperty() cannot be used on an Immer draft`,`Object.setPrototypeOf() cannot be used on an Immer draft`,`Immer only supports deleting array indices`,`Immer only supports setting array indices and the 'length' property`,function(e){return`'original' expects a draft, got: ${e}`}];function wx(e,...t){if(process.env.NODE_ENV!==`production`){let n=Cde[e],r=qx(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Tx=Object,Ex=Tx.getPrototypeOf,Dx=`constructor`,Ox=`prototype`,kx=`configurable`,Ax=`enumerable`,jx=`writable`,Mx=`value`,Nx=e=>!!e&&!!e[Cx];function Px(e){return e?Ix(e)||Ux(e)||!!e[Sx]||!!e[Dx]?.[Sx]||Wx(e)||Gx(e):!1}var wde=Tx[Ox][Dx].toString(),Fx=new WeakMap;function Ix(e){if(!e||!Kx(e))return!1;let t=Ex(e);if(t===null||t===Tx[Ox])return!0;let n=Tx.hasOwnProperty.call(t,Dx)&&t[Dx];if(n===Object)return!0;if(!qx(n))return!1;let r=Fx.get(n);return r===void 0&&(r=Function.toString.call(n),Fx.set(n,r)),r===wde}function Lx(e,t,n=!0){Rx(e)===0?(n?Reflect.ownKeys(e):Tx.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Rx(e){let t=e[Cx];return t?t.type_:Ux(e)?1:Wx(e)?2:Gx(e)?3:0}var zx=(e,t,n=Rx(e))=>n===2?e.has(t):Tx[Ox].hasOwnProperty.call(e,t),Bx=(e,t,n=Rx(e))=>n===2?e.get(t):e[t],Vx=(e,t,n,r=Rx(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Hx(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Ux=Array.isArray,Wx=e=>e instanceof Map,Gx=e=>e instanceof Set,Kx=e=>typeof e==`object`,qx=e=>typeof e==`function`,Jx=e=>typeof e==`boolean`;function Yx(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Xx=e=>e.copy_||e.base_,Zx=e=>e.modified_?e.copy_:e.base_;function Qx(e,t){if(Wx(e))return new Map(e);if(Gx(e))return new Set(e);if(Ux(e))return Array[Ox].slice.call(e);let n=Ix(e);if(t===!0||t===`class_only`&&!n){let t=Tx.getOwnPropertyDescriptors(e);delete t[Cx];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[jx]===!1&&(a[jx]=!0,a[kx]=!0),(a.get||a.set)&&(t[i]={[kx]:!0,[jx]:!0,[Ax]:a[Ax],[Mx]:e[i]})}return Tx.create(Ex(e),t)}{let t=Ex(e);if(t!==null&&n)return{...e};let r=Tx.create(t);return Tx.assign(r,e)}}function $x(e,t=!1){return tS(e)||Nx(e)||!Px(e)?e:(Rx(e)>1&&Tx.defineProperties(e,{set:eS,add:eS,clear:eS,delete:eS}),Tx.freeze(e),t&&Lx(e,(e,t)=>{$x(t,!0)},!1),e)}function Tde(){wx(2)}var eS={[Mx]:Tde};function tS(e){return e===null||!Kx(e)||Tx.isFrozen(e)}var nS=`MapSet`,rS=`Patches`,iS=`ArrayMethods`,aS={};function oS(e){let t=aS[e];return t||wx(0,e),t}var sS=e=>!!aS[e],cS,lS=()=>cS,Ede=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:sS(nS)?oS(nS):void 0,arrayMethodsPlugin_:sS(iS)?oS(iS):void 0});function uS(e,t){t&&(e.patchPlugin_=oS(rS),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function dS(e){fS(e),e.drafts_.forEach(Dde),e.drafts_=null}function fS(e){e===cS&&(cS=e.parent_)}var pS=e=>cS=Ede(cS,e);function Dde(e){let t=e[Cx];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function mS(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Cx].modified_&&(dS(t),wx(4)),Px(e)&&(e=hS(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Cx].base_,e,t)}else e=hS(t,n);return Ode(t,e,!0),dS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===xx?void 0:e}function hS(e,t){if(tS(t))return t;let n=t[Cx];if(!n)return bS(t,e.handledSet_,e);if(!_S(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);yS(n,e)}return n.copy_}function Ode(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&$x(t,n)}function gS(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var _S=(e,t)=>e.scope_===t,kde=[];function vS(e,t,n,r){let i=Xx(e),a=e.type_;if(r!==void 0&&Bx(i,r,a)===t){Vx(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Lx(i,(e,n)=>{if(Nx(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??kde;for(let e of o)Vx(i,e,n,a)}function Ade(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!_S(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Zx(i);vS(e,i.draft_??i,a,n),yS(i,r)})}function yS(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}gS(e)}}function jde(e,t,n){let{scope_:r}=e;if(Nx(n)){let i=n[Cx];_S(i,r)&&i.callbacks_.push(function(){ES(e),vS(e,n,Zx(i),t)})}else Px(n)&&e.callbacks_.push(function(){let i=Xx(e);e.type_===3?i.has(n)&&bS(n,r.handledSet_,r):Bx(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&bS(Bx(e.copy_,t,e.type_),r.handledSet_,r)})}function bS(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Nx(e)||t.has(e)||!Px(e)||tS(e)?e:(t.add(e),Lx(e,(r,i)=>{if(Nx(i)){let t=i[Cx];_S(t,n)&&(Vx(e,r,Zx(t),e.type_),gS(t))}else Px(i)&&bS(i,t,n)}),e)}function Mde(e,t){let n=Ux(e),r={type_:+!!n,scope_:t?t.scope_:lS(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=xS;n&&(i=[r],a=SS);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var xS={get(e,t){if(t===Cx)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=Xx(e);if(!zx(i,t,e.type_))return Pde(e,i,t);let a=i[t];if(e.finalized_||!Px(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Yx(t))return a;if(a===CS(e.base_,t)||Nde(e,t,a)){ES(e);let n=e.type_===1?+t:t,r=DS(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Xx(e)},ownKeys(e){return Reflect.ownKeys(Xx(e))},set(e,t,n){let r=wS(Xx(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=CS(Xx(e),t),i=r?.[Cx];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Hx(n,r)&&(n!==void 0||zx(e.base_,t,e.type_)))return!0;ES(e),TS(e)}return e.copy_[t]===n&&(n!==void 0||zx(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),jde(e,t,n),!0)},deleteProperty(e,t){return ES(e),CS(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),TS(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Xx(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[jx]:!0,[kx]:e.type_!==1||t!==`length`,[Ax]:r[Ax],[Mx]:n[t]}},defineProperty(){wx(11)},getPrototypeOf(e){return Ex(e.base_)},setPrototypeOf(){wx(12)}},SS={};for(let e in xS){let t=xS[e];SS[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}SS.deleteProperty=function(e,t){return process.env.NODE_ENV!==`production`&&isNaN(parseInt(t))&&wx(13),SS.set.call(this,e,t,void 0)},SS.set=function(e,t,n){return process.env.NODE_ENV!==`production`&&t!==`length`&&isNaN(parseInt(t))&&wx(14),xS.set.call(this,e[0],t,n,e[0])};function CS(e,t){let n=e[Cx];return(n?Xx(n):e)[t]}function Nde(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!Px(n)||n[Cx]?!1:e.baseRefs_.has(n)}function Pde(e,t,n){let r=wS(t,n);return r?Mx in r?r[Mx]:r.get?.call(e.draft_):void 0}function wS(e,t){if(!(t in e))return;let n=Ex(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Ex(n)}}function TS(e){e.modified_||(e.modified_=!0,e.parent_&&TS(e.parent_))}function ES(e){e.copy_||=(e.assigned_=new Map,Qx(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Fde=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(qx(e)&&!qx(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}qx(t)||wx(6),n!==void 0&&!qx(n)&&wx(7);let r;if(Px(e)){let i=pS(this),a=DS(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?dS(i):fS(i)}return uS(i,n),mS(r,i)}if(!e||!Kx(e)){if(r=t(e),r===void 0&&(r=e),r===xx&&(r=void 0),this.autoFreeze_&&$x(r,!0),n){let t=[],i=[];oS(rS).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}wx(1,e)},this.produceWithPatches=(e,t)=>{if(qx(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Jx(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Jx(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Jx(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Px(e)||wx(8),Nx(e)&&(e=OS(e));let t=pS(this),n=DS(t,e,void 0);return n[Cx].isManual_=!0,fS(t),n}finishDraft(e,t){let n=e&&e[Cx];(!n||!n.isManual_)&&wx(9);let{scope_:r}=n;return uS(r,t),mS(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=oS(rS).applyPatches_;return Nx(e)?r(e,t):this.produce(e,e=>r(e,t))}};function DS(e,t,n,r){let[i,a]=Wx(t)?oS(nS).proxyMap_(t,n):Gx(t)?oS(nS).proxySet_(t,n):Mde(t,n);return(n?.scope_??lS()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Ade(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function OS(e){return Nx(e)||wx(10,e),kS(e)}function kS(e){if(!Px(e)||tS(e))return e;let t=e[Cx],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Qx(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Qx(e,!0);return Lx(n,(e,t)=>{Vx(n,e,kS(t))},r),t&&(t.finalized_=!1),n}globalThis.Iterator?.from;var AS=new Fde().produce,jS=e=>e;typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function MS(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(process.env.NODE_ENV===`production`?WS(0):`prepareAction did not return an object`);return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>Sde(t)&&t.type===e,n}function NS(e){return Px(e)?AS(e,()=>{}):e}function PS(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var Ide=`RTK_autoBatch`,FS=()=>e=>({payload:e,meta:{[Ide]:!0}});function IS(e){let t={},n=[],r,i={addCase(e,a){if(process.env.NODE_ENV!==`production`){if(n.length>0)throw Error(process.env.NODE_ENV===`production`?WS(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw Error(process.env.NODE_ENV===`production`?WS(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}let o=typeof e==`string`?e:e.type;if(!o)throw Error(process.env.NODE_ENV===`production`?WS(28):"`builder.addCase` cannot be called with an empty action type");if(o in t)throw Error(process.env.NODE_ENV===`production`?WS(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${o}'`);return t[o]=a,i},addAsyncThunk(e,a){if(process.env.NODE_ENV!==`production`&&r)throw Error(process.env.NODE_ENV===`production`?WS(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[e.pending.type]=a.pending),a.rejected&&(t[e.rejected.type]=a.rejected),a.fulfilled&&(t[e.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:e.settled,reducer:a.settled}),i},addMatcher(e,t){if(process.env.NODE_ENV!==`production`&&r)throw Error(process.env.NODE_ENV===`production`?WS(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){if(process.env.NODE_ENV!==`production`&&r)throw Error(process.env.NODE_ENV===`production`?WS(31):"`builder.addDefaultCase` can only be called once");return r=e,i}};return e(i),[t,n,r]}function Lde(e){return typeof e==`function`}function Rde(e,t){if(process.env.NODE_ENV!==`production`&&typeof t==`object`)throw Error(process.env.NODE_ENV===`production`?WS(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=IS(t),a;if(Lde(e))a=()=>NS(e());else{let t=NS(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n){if(Nx(e)){let r=n(e,t);return r===void 0?e:r}if(Px(e))return AS(e,e=>n(e,t));{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}}return e},e)}return o.getInitialState=a,o}var zde=Symbol.for(`rtk-slice-createasyncthunk`);function Bde(e,t){return`${e}/${t}`}function Vde({creators:e}={}){let t=e?.asyncThunk?.[zde];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(process.env.NODE_ENV===`production`?WS(11):"`name` is a required option for createSlice");typeof process<`u`&&process.env.NODE_ENV===`development`&&e.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");let i=(typeof e.reducers==`function`?e.reducers(Ude()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(process.env.NODE_ENV===`production`?WS(12):"`context.addCase` cannot be called with an empty action type");if(n in o.sliceCaseReducersByType)throw Error(process.env.NODE_ENV===`production`?WS(13):"`context.addCase` cannot be called with two reducers for the same action type: "+n);return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:Bde(n,r),createNotation:typeof e.reducers==`function`};Gde(a)?qde(o,a,s,t):Wde(o,a,s)});function c(){if(process.env.NODE_ENV!==`production`&&typeof e.extraReducers==`object`)throw Error(process.env.NODE_ENV===`production`?WS(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?IS(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return Rde(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];if(i===void 0){if(n)i=PS(d,r,m);else if(process.env.NODE_ENV!==`production`)throw Error(process.env.NODE_ENV===`production`?WS(15):`selectSlice returned undefined for an uninjected slice reducer`)}return i}function i(t=l){return PS(PS(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=Hde(a,t,()=>PS(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function Hde(e,t,n,r){function i(i,...a){let o=t(i);if(o===void 0){if(r)o=n();else if(process.env.NODE_ENV!==`production`)throw Error(process.env.NODE_ENV===`production`?WS(16):`selectState returned undefined for an uninjected slice reducer`)}return e(o,...a)}return i.unwrapped=e,i}var LS=Vde();function Ude(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function Wde({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!Kde(r))throw Error(process.env.NODE_ENV===`production`?WS(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?MS(e,o):MS(e))}function Gde(e){return e._reducerDefinitionType===`asyncThunk`}function Kde(e){return e._reducerDefinitionType===`reducerWithPrepare`}function qde({type:e,reducerName:t},n,r,i){if(!i)throw Error(process.env.NODE_ENV===`production`?WS(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||RS,pending:s||RS,rejected:c||RS,settled:l||RS})}function RS(){}var zS=`listener`,BS=`completed`,VS=`cancelled`;`${VS}`,`${BS}`,`${zS}${VS}`,`${zS}${BS}`;var{assign:HS}=Object,US=`listenerMiddleware`,Jde=HS(MS(`${US}/add`),{withTypes:()=>Jde});`${US}`;var Yde=HS(MS(`${US}/remove`),{withTypes:()=>Yde});function WS(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function GS(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function KS(e){return Number.isFinite(e)}function qS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qS(Object(n),!0).forEach(function(t){Xde(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xde(e,t,n){return(t=Zde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zde(e){var t=Qde(e,`string`);return typeof t==`symbol`?t:t+``}function Qde(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function YS(e,t,n){return xy(e)||xy(t)?n:gy(t)?ly(e,t,n):typeof t==`function`?t(e):n}var $de=(e,t,n)=>{if(t&&n){var r=n.width,i=n.height,a=t.align,o=t.verticalAlign,s=t.layout,c=t.position,l=t.offset,u=l===void 0?0:l;if(c!=null){if(Ey(c)){if(c===`top`&&hy(e.top))return JS(JS({},e),{},{top:e.top+(i||0)+u});if(c===`bottom`&&hy(e.bottom))return JS(JS({},e),{},{bottom:e.bottom+(i||0)+u});if(c===`left`&&hy(e.left))return JS(JS({},e),{},{left:e.left+(r||0)+u});if(c===`right`&&hy(e.right))return JS(JS({},e),{},{right:e.right+(r||0)+u})}return e}if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&hy(e[a]))return JS(JS({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&hy(e[o]))return JS(JS({},e),{},{[o]:e[o]+(i||0)})}return e},XS=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,efe={sign:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=py(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:Lle,none:gb,silhouette:Rle,wiggle:zle,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;++a){var o=e[a]?.[r];if(o!=null){var s=py(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},tfe=(e,t,n)=>{var r=efe[n]??gb,i=Ile().keys(t).value((e,t)=>Number(YS(e,t,0))).order(_b).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=YS(e[i],t[r],0);Array.isArray(a)&&a.length===2&&hy(a[0])&&hy(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i},nfe=e=>{var t=e.flat(2).filter(hy);return[Math.min(...t),Math.max(...t)]},rfe=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],ife=(e,t,n)=>{if(e!=null&&Object.keys(e).length!==0)return rfe(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var o=a.stackedData.reduce((e,r)=>{var i=nfe(GS(r,t,n));return!KS(i[0])||!KS(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]))},ZS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,QS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,afe=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=px(t,e=>e.coordinate),a=[],o=0,s=1,c=i.length;s<c;s++){var l=(i[s]?.coordinate||0)-(i[s-1]?.coordinate||0);a.push(l),o=Math.max(l,o)}var u=o*1e-4,d=1/0;for(var f of a)f>u&&(d=Math.min(f,d));return d===1/0?0:d}return n?void 0:0};function $S(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,i=e.value,a=e.name;return JS(JS({},t),{},{dataKey:n,payload:r,value:i,name:a})}var eC=e=>e.layout.width,tC=e=>e.layout.height,nC=e=>e.layout.margin,rC=Q(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),iC=Q(e=>e.cartesianAxis.yAxis,e=>Object.values(e));function aC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?aC(Object(n),!0).forEach(function(t){ofe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ofe(e,t,n){return(t=sfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sfe(e){var t=cfe(e,`string`);return typeof t==`symbol`?t:t+``}function cfe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var lfe=e=>e.brush.height;function ufe(e){return iC(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function sC(e){return iC(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function cC(e){return rC(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}function lC(e){return rC(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}var uC=Q([eC,tC,nC,lfe,ufe,sC,cC,lC,mx,pde],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=oC(oC({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=$de(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return oC(oC({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),dC=Q(uC,e=>({x:e.left,y:e.top,width:e.width,height:e.height}));Q(eC,tC,(e,t)=>({x:0,y:0,width:e,height:t}));var fC=(0,t.createContext)(null),pC=()=>(0,t.useContext)(fC)!=null,mC=e=>e.brush,hC=Q([mC,uC,nC],(e,t,n)=>({height:e.height,x:hy(e.x)?e.x:t.left,y:hy(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:hy(e.width)?e.width:t.width})),gC=()=>{var e=pC(),t=$b(dC),n=$b(hC),r=$b(mC)?.padding;return!e||!n||!r?t:{width:n.width-r.left-r.right,height:n.height-r.top-r.bottom,x:r.left,y:r.top}},_C={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},vC=()=>$b(uC)??_C,yC=()=>$b(eC),bC=()=>$b(tC),xC=()=>$b(e=>e.layout.margin),SC=e=>e.layout.layoutType,CC=()=>$b(SC),wC=e=>{var t=e.layout.layoutType;if(t===`centric`||t===`radial`)return t},TC=()=>CC()!==void 0,EC=LS({name:`legend`,initialState:{settings:{layout:`horizontal`,align:`center`,verticalAlign:`bottom`,itemSorter:`value`,position:void 0,offset:0},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter,e.settings.position=t.payload.position,e.settings.offset=t.payload.offset},addLegendPayload:{reducer(e,t){e.payload.push(jS(t.payload))},prepare:FS()},replaceLegendPayload:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=OS(e).payload.indexOf(jS(r));a>-1&&(e.payload[a]=jS(i))},prepare:FS()},removeLegendPayload:{reducer(e,t){var n=OS(e).payload.indexOf(jS(t.payload));n>-1&&e.payload.splice(n,1)},prepare:FS()}}}),DC=EC.actions,OC=DC.setLegendSize,kC=DC.setLegendSettings;DC.addLegendPayload,DC.replaceLegendPayload,DC.removeLegendPayload,EC.reducer;var AC=u((e=>{var t=Rs();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useSyncExternalStore,a=t.useRef,o=t.useEffect,s=t.useMemo,c=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,l,u){var d=a(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!i){if(i=!0,a=e,e=l(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,r(a,e))return t;var n=l(e);return u!==void 0&&u(t,n)?(a=e,t):(a=e,o=n)}var i=!1,a,o,s=n===void 0?null:n;return[function(){return e(t())},s===null?void 0:function(){return e(s())}]},[t,n,l,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}})),jC=u((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=Rs(),r=typeof Object.is==`function`?Object.is:t,i=n.useSyncExternalStore,a=n.useRef,o=n.useEffect,s=n.useMemo,c=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,l,u){var d=a(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!i){if(i=!0,a=e,e=l(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,r(a,e))return t;var n=l(e);return u!==void 0&&u(t,n)?(a=e,t):(a=e,o=n)}var i=!1,a,o,s=n===void 0?null:n;return[function(){return e(t())},s===null?void 0:function(){return e(s())}]},[t,n,l,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),c(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}));u(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?AC():jC()}))();function MC(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function NC(e,t){if(MC(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!MC(e[n[r]],t[n[r]]))return!1;return!0}var PC=new Set([`axisLine`,`tickLine`,`activeBar`,`activeDot`,`activeLabel`,`activeShape`,`allowEscapeViewBox`,`background`,`cursor`,`dot`,`label`,`line`,`margin`,`padding`,`position`,`shape`,`style`,`tick`,`wrapperStyle`,`radius`,`throttledEvents`]);function FC(e,t){return e==null&&t==null?!0:typeof e==`number`&&typeof t==`number`?e===t||e!==e&&t!==t:e===t}function IC(e,t){for(var n of new Set([...Object.keys(e),...Object.keys(t)]))if(PC.has(n)){if(e[n]==null&&t[n]==null)continue;if(!NC(e[n],t[n]))return!1}else if(!FC(e[n],t[n]))return!1;return!0}var LC=Q([eC,tC,nC],(e,t,n)=>({x:n.left||0,y:n.top||0,width:Math.max(e-(n.left||0)-(n.right||0),0),height:Math.max(t-(n.top||0)-(n.bottom||0),0)}));function RC(e,t){return e===`start`&&t===`start`?``:`translate(${e===`inherit`?`0`:{start:`0`,middle:`-50%`,end:`-100%`}[e]}, ${{start:`0`,middle:`-50%`,end:`-100%`}[t]??`0`})`}var zC=[`contextPayload`];function BC(){return BC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BC.apply(null,arguments)}function VC(e,t){return KC(e)||GC(e,t)||UC(e,t)||HC()}function HC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
15
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UC(e,t){if(e){if(typeof e==`string`)return WC(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?WC(e,t):void 0}}function WC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function GC(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function KC(e){if(Array.isArray(e))return e}function qC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qC(Object(n),!0).forEach(function(t){dfe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dfe(e,t,n){return(t=ffe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ffe(e){var t=pfe(e,`string`);return typeof t==`symbol`?t:t+``}function pfe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function mfe(e,t){if(e==null)return{};var n,r,i=hfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function gfe(e){return e.value}function _fe(e){var n=e.contextPayload,r=mfe(e,zC),i=Yb(n,e.payloadUniqBy,gfe),a=JC(JC({},r),{},{payload:i});return t.isValidElement(e.content)?t.cloneElement(e.content,a):typeof e.content==`function`?t.createElement(e.content,a):t.createElement(uue,a)}function vfe(e){return e===`left`||e===`right`||e===`insideLeft`||e===`insideRight`?`vertical`:`horizontal`}function yfe(e,t){return t==null?null:Ey(t)?LC(e):dC(e)}function bfe(e,t,n){return e===`top`?{top:n.height+t}:e===`bottom`?{top:-n.height-t}:e===`left`?{left:n.width+t}:e===`right`?{left:-n.width-t}:{}}function xfe(e,t,n,r,i,a){var o=t.layout,s=t.align,c=t.verticalAlign,l,u;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(l=s===`center`&&o===`vertical`?{left:((r||0)-a.width)/2}:s===`right`?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(u=c===`middle`?{top:((i||0)-a.height)/2}:c===`bottom`?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),JC(JC({},l),u)}function Sfe(e){var n=e.align,r=e.layout,i=e.verticalAlign,a=e.itemSorter,o=e.position,s=e.offset,c=Zb();return(0,t.useLayoutEffect)(()=>{c(kC({align:n,layout:r,verticalAlign:i,itemSorter:a,position:o,offset:s}))},[c,n,r,i,a,o,s]),null}function Cfe(e){var n=e.width,r=e.height,i=Zb();return(0,t.useLayoutEffect)(()=>{i(OC({width:n,height:r}))},[i,n,r]),(0,t.useLayoutEffect)(()=>()=>{i(OC({width:0,height:0}))},[i]),null}function wfe(e,t,n,r){return e===`vertical`&&t!=null?{height:t}:e===`horizontal`?{width:n||r}:null}var Tfe={align:`center`,iconSize:14,inactiveColor:`#ccc`,itemSorter:`value`,labelStyle:{},layout:`auto`,verticalAlign:`bottom`,offset:0};function Efe(e){var n=Tb(e,Tfe),i=e.layout&&e.layout!==`auto`?e.layout:vfe(n.position),a=hde(),o=sle(),s=xC(),c=$b(e=>yfe(e,n.position)),l=n.width,u=n.height,d=n.wrapperStyle,f=n.portal,p=f==null&&(n.position==null||Ey(n.position)),m=VC(yx([a]),2),h=m[0],g=m[1],_=yC(),v=bC();if(_==null||v==null||n.position!=null&&c==null)return null;var y=wfe(i,u,l,_-(s?.left||0)-(s?.right||0)),b=n.position==null?null:ile({viewBox:c??{x:0,y:0,width:_,height:v},position:n.position,offset:n.offset??0}),x=bfe(n.position,n.offset??0,h),S=i===`vertical`?(c?.width??0)/2:c?.width??0,C=i===`horizontal`?(c?.height??0)/2:c?.height??0,w=b?{width:`max-content`,height:`max-content`,maxWidth:S,maxHeight:C,overflowY:`auto`,top:b.y+(x.top??0),left:b.x+(x.left??0),transform:RC(b.horizontalAnchor,b.verticalAnchor)}:xfe(d,n,s,_,v,h),T=f?d:JC(JC({position:`absolute`,width:y?.width||l||`auto`,height:y?.height||u||`auto`},w),d),E=f??o;if(E==null||a==null)return null;var D=t.createElement(`div`,{className:`recharts-legend-wrapper`,style:T,ref:g},t.createElement(Sfe,{layout:i,align:n.align,verticalAlign:n.verticalAlign,itemSorter:n.itemSorter,position:n.position,offset:n.offset}),p&&t.createElement(Cfe,h),t.createElement(_fe,BC({},n,{layout:i},y,{margin:s,chartWidth:_,chartHeight:v,contextPayload:a})));return(0,r.createPortal)(D,E)}var YC=t.memo(Efe,IC);YC.displayName=`Legend`;function XC(){return XC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XC.apply(null,arguments)}function ZC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZC(Object(n),!0).forEach(function(t){Dfe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dfe(e,t,n){return(t=Ofe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ofe(e){var t=kfe(e,`string`);return typeof t==`symbol`?t:t+``}function kfe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Afe(e,t){return Pfe(e)||Nfe(e,t)||Mfe(e,t)||jfe()}function jfe(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mfe(e,t){if(e){if(typeof e==`string`)return $C(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$C(e,t):void 0}}function $C(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nfe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Pfe(e){if(Array.isArray(e))return e}function Ffe(e){return Array.isArray(e)&&gy(e[0])&&gy(e[1])?e.join(` ~ `):e}var ew={separator:` : `,contentStyle:{margin:0,padding:10,backgroundColor:`#fff`,border:`1px solid #ccc`,whiteSpace:`nowrap`},itemStyle:{display:`block`,paddingTop:4,paddingBottom:4,color:`#000`},labelStyle:{},accessibilityLayer:!1};function Ife(e,t){return t==null?e:px(e,t)}var Lfe=e=>{var n=e.separator,r=n===void 0?ew.separator:n,i=e.contentStyle,a=e.itemStyle,o=e.labelStyle,s=o===void 0?ew.labelStyle:o,c=e.payload,l=e.formatter,u=e.itemSorter,d=e.wrapperClassName,f=e.labelClassName,p=e.label,m=e.labelFormatter,h=e.accessibilityLayer,g=h===void 0?ew.accessibilityLayer:h,_=()=>{if(c&&c.length){var e={padding:0,margin:0},n=Ife(c,u).map((e,n)=>{if(!e||e.type===`none`)return null;var i=e.formatter||l||Ffe,o=e.value,s=e.name,u=o,d=s;if(i){var f=i(o,s,e,n,c);if(Array.isArray(f)){var p=Afe(f,2);u=p[0],d=p[1]}else if(f!=null)u=f;else return null}var m=QC(QC({},ew.itemStyle),{},{color:e.color||ew.itemStyle.color},a);return t.createElement(`li`,{className:`recharts-tooltip-item`,key:`tooltip-item-${n}`,style:m},gy(d)?t.createElement(`span`,{className:`recharts-tooltip-item-name`},d):null,gy(d)?t.createElement(`span`,{className:`recharts-tooltip-item-separator`},r):null,t.createElement(`span`,{className:`recharts-tooltip-item-value`},u),t.createElement(`span`,{className:`recharts-tooltip-item-unit`},e.unit||``))});return t.createElement(`ul`,{className:`recharts-tooltip-item-list`,style:e},n)}return null},v=QC(QC({},ew.contentStyle),i),y=QC({margin:0},s),b=!xy(p),x=b?p:``,S=Hn(`recharts-default-tooltip`,d),C=Hn(`recharts-tooltip-label`,f);b&&m&&c!=null&&(x=m(p,c));var w=g?{role:`status`,"aria-live":`assertive`}:{};return t.createElement(`div`,XC({className:S,style:v},w),t.createElement(`p`,{className:C,style:y},t.isValidElement(x)?x:`${x}`),_())},tw=`recharts-tooltip-wrapper`,Rfe={visibility:`hidden`};function zfe(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Hn(tw,{[`${tw}-right`]:hy(n)&&t&&hy(t.x)&&n>=t.x,[`${tw}-left`]:hy(n)&&t&&hy(t.x)&&n<t.x,[`${tw}-bottom`]:hy(r)&&t&&hy(t.y)&&r>=t.y,[`${tw}-top`]:hy(r)&&t&&hy(t.y)&&r<t.y})}function nw(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offset,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(a&&hy(a[r]))return a[r];var u=n[r]-s-(i>0?i:0),d=n[r]+i;if(t[r])return o[r]?u:d;var f=c[r];return f==null?0:o[r]?Math.max(u<f?d:u,f):l==null?0:d+s>f+l?Math.max(u,f):Math.max(d,f)}function Bfe(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?`translate3d(${t}px, ${n}px, 0)`:`translate(${t}px, ${n}px)`}}function Vfe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTop,i=e.offsetLeft,a=e.position,o=e.reverseDirection,s=e.tooltipBox,c=e.useTranslate3d,l=e.viewBox,u,d,f;return s&&s.height>0&&s.width>0&&n?(d=nw({allowEscapeViewBox:t,coordinate:n,key:`x`,offset:i,position:a,reverseDirection:o,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),f=nw({allowEscapeViewBox:t,coordinate:n,key:`y`,offset:r,position:a,reverseDirection:o,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),u=Bfe({translateX:d,translateY:f,useTranslate3d:c})):u=Rfe,{cssProperties:u,cssClasses:zfe({translateX:d,translateY:f,coordinate:n})}}var rw={devToolsEnabled:!0,isSsr:!(typeof window<`u`&&window.document&&window.document.createElement&&window.setTimeout)};function Hfe(e,t){return Kfe(e)||Gfe(e,t)||Wfe(e,t)||Ufe()}function Ufe(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wfe(e,t){if(e){if(typeof e==`string`)return iw(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iw(e,t):void 0}}function iw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Gfe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Kfe(e){if(Array.isArray(e))return e}function aw(){var e=Hfe((0,t.useState)(()=>rw.isSsr||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches),2),n=e[0],r=e[1];return(0,t.useEffect)(()=>{if(window.matchMedia){var e=window.matchMedia(`(prefers-reduced-motion: reduce)`),t=()=>{r(e.matches)};return e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}},[]),n}function ow(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ow(Object(n),!0).forEach(function(t){qfe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ow(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qfe(e,t,n){return(t=Jfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jfe(e){var t=Yfe(e,`string`);return typeof t==`symbol`?t:t+``}function Yfe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Xfe(e,t){return epe(e)||$fe(e,t)||Qfe(e,t)||Zfe()}function Zfe(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qfe(e,t){if(e){if(typeof e==`string`)return cw(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cw(e,t):void 0}}function cw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $fe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function epe(e){if(Array.isArray(e))return e}function tpe(e){if(!(e.prefersReducedMotion&&e.isAnimationActive===`auto`)&&e.isAnimationActive&&e.active){var t=typeof e.animationEasing==`string`?e.animationEasing:`ease`;return`transform ${e.animationDuration}ms ${t}`}}function npe(e){var n=aw(),r=Xfe(t.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}})),2),i=r[0],a=r[1];t.useEffect(()=>{var t=t=>{t.key===`Escape`&&a({dismissed:!0,dismissedAtCoordinate:{x:e.coordinate?.x??0,y:e.coordinate?.y??0}})};return document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`keydown`,t)}},[e.coordinate?.x,e.coordinate?.y]),i.dismissed&&((e.coordinate?.x??0)!==i.dismissedAtCoordinate.x||(e.coordinate?.y??0)!==i.dismissedAtCoordinate.y)&&a(sw(sw({},i),{},{dismissed:!1}));var o=Vfe({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset==`number`?e.offset:e.offset.x,offsetTop:typeof e.offset==`number`?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:e.lastBoundingBox,useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),s=o.cssClasses,c=o.cssProperties,l=sw(sw({},e.hasPortalFromProps?{}:sw(sw({transition:tpe({prefersReducedMotion:n,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},c),{},{pointerEvents:`none`,position:`absolute`,top:0,left:0})),{},{visibility:!i.dismissed&&e.active&&e.hasPayload?`visible`:`hidden`},e.wrapperStyle);return t.createElement(`div`,{xmlns:`http://www.w3.org/1999/xhtml`,tabIndex:-1,className:s,style:l,ref:e.innerRef},e.children)}var rpe=t.memo(npe),ipe=()=>$b(e=>e.rootProps.accessibilityLayer)??!0;function lw(){return lw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lw.apply(null,arguments)}function uw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uw(Object(n),!0).forEach(function(t){ape(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ape(e,t,n){return(t=ope(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ope(e){var t=spe(e,`string`);return typeof t==`symbol`?t:t+``}function spe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var fw={curveBasisClosed:Tle,curveBasisOpen:Ele,curveBasis:wle,curveBumpX:ule,curveBumpY:dle,curveLinearClosed:Dle,curveLinear:Vy,curveMonotoneX:Ole,curveMonotoneY:kle,curveNatural:Ale,curveStep:jle,curveStepAfter:Nle,curveStepBefore:Mle},pw=e=>KS(e.x)&&KS(e.y),mw=e=>e.base!=null&&pw(e.base)&&pw(e),hw=e=>e.x,gw=e=>e.y,cpe=(e,t)=>{if(typeof e==`function`)return e;var n=`curve${Sy(e)}`;if((n===`curveMonotone`||n===`curveBump`)&&t){var r=fw[`${n}${t===`vertical`?`Y`:`X`}`];if(r)return r}return fw[n]||Vy},_w={connectNulls:!1,type:`linear`},lpe=e=>{var t=e.type,n=t===void 0?_w.type:t,r=e.points,i=r===void 0?[]:r,a=e.baseLine,o=e.layout,s=e.connectNulls,c=s===void 0?_w.connectNulls:s,l=cpe(n,o),u=c?i.filter(pw):i;if(Array.isArray(a)){var d,f=i.map((e,t)=>dw(dw({},e),{},{base:a[t]}));return d=o===`vertical`?Gy().y(gw).x1(hw).x0(e=>e.base.x):Gy().x(hw).y1(gw).y0(e=>e.base.y),d.defined(mw).curve(l)(c?f.filter(mw):f)}return(o===`vertical`&&hy(a)?Gy().y(gw).x1(hw).x0(a):hy(a)?Gy().x(hw).y1(gw).y0(a):Wy().x(hw).y(gw)).defined(pw).curve(l)(u)},upe=e=>{var n=e.className,r=e.points,i=e.path,a=e.pathRef,o=CC();if((!r||!r.length)&&!i)return null;var s={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},c=r&&r.length?lpe(s):i;return t.createElement(`path`,lw({},ty(e),Xle(e),{className:Hn(`recharts-curve`,n),d:c===null?void 0:c,ref:a}))},dpe=[`x`,`y`,`top`,`left`,`width`,`height`,`className`];function vw(){return vw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vw.apply(null,arguments)}function yw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fpe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yw(Object(n),!0).forEach(function(t){ppe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ppe(e,t,n){return(t=mpe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mpe(e){var t=hpe(e,`string`);return typeof t==`symbol`?t:t+``}function hpe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function gpe(e,t){if(e==null)return{};var n,r,i=_pe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _pe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var vpe=(e,t,n,r,i,a)=>`M${e},${i}v${r}M${a},${t}h${n}`,ype=e=>{var n=e.x,r=n===void 0?0:n,i=e.y,a=i===void 0?0:i,o=e.top,s=o===void 0?0:o,c=e.left,l=c===void 0?0:c,u=e.width,d=u===void 0?0:u,f=e.height,p=f===void 0?0:f,m=e.className,h=gpe(e,dpe),g=fpe({x:r,y:a,top:s,left:l,width:d,height:p},h);return!hy(r)||!hy(a)||!hy(d)||!hy(p)||!hy(s)||!hy(l)?null:t.createElement(`path`,vw({},ny(g),{className:Hn(`recharts-cross`,m),d:vpe(r,a,d,p,s,l)}))};function bpe(e,t,n,r){var i=r/2;return{stroke:`none`,fill:`#ccc`,x:e===`horizontal`?t.x-i:n.left+.5,y:e===`horizontal`?n.top+.5:t.y-i,width:e===`horizontal`?r:n.width-1,height:e===`horizontal`?n.height-1:r}}var bw=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],xw=(e,t)=>e.map((e,n)=>e*t**n).reduce((e,t)=>e+t),Sw=(e,t)=>n=>xw(bw(e,t),n),xpe=(e,t)=>n=>xw([...bw(e,t).map((e,t)=>e*t).slice(1),0],n),Spe=e=>{var t,n=e.split(`(`);if(n.length!==2||n[0]!==`cubic-bezier`)return null;var r=(t=n[1])==null||(t=t.split(`)`)[0])==null?void 0:t.split(`,`);if(r==null||r.length!==4)return null;var i=r.map(e=>parseFloat(e));return[i[0],i[1],i[2],i[3]]},Cpe=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length===1)switch(t[0]){case`linear`:return[0,0,1,1];case`ease`:return[.25,.1,.25,1];case`ease-in`:return[.42,0,1,1];case`ease-out`:return[.42,0,.58,1];case`ease-in-out`:return[0,0,.58,1];default:var r=Spe(t[0]);if(r)return r}return t.length===4?t:[0,0,1,1]},wpe=(e,t,n,r)=>{var i=Sw(e,n),a=Sw(t,r),o=xpe(e,n),s=e=>e>1?1:e<0?0:e,c=e=>{for(var t=e>1?1:e,n=t,r=0;r<8;++r){var c=i(n)-t,l=o(n);if(Math.abs(c-t)<1e-4||l<1e-4)return a(n);n=s(n-c/l)}return a(n)};return c.isStepper=!1,c},Cw=function(){return wpe(...Cpe(...arguments))},Tpe=function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.stiff,n=t===void 0?100:t,r=e.damping,i=r===void 0?8:r,a=e.dt,o=a===void 0?16.67:a,s=1,c=[0],l=0,u=0,d=1e4,f=0;f<d;){var p=-(l-s)*n,m=u*i;if(u+=(p-m)*o/1e3,l+=u*o/1e3,c.push(l),Math.abs(l-s)<1e-4&&Math.abs(u)<1e-4)break;f++}c[c.length-1]=s;var h=c.length-1;return e=>{if(e<=0)return 0;if(e>=1)return s;var t=e*h,n=Math.floor(t),r=t-n;return(c[n]??0)+((c[n+1]??0)-(c[n]??0))*r}},Epe=e=>{if(typeof e==`string`)switch(e){case`ease`:case`ease-in-out`:case`ease-out`:case`ease-in`:case`linear`:return Cw(e);case`spring`:return Tpe();default:if(e.split(`(`)[0]===`cubic-bezier`)return Cw(e)}return typeof e==`function`?e:null},ww=(0,t.createContext)((e,t,n)=>{var r,i=a=>{var o=t.tick(a);if(t.getState()===`active`){if(n(t.getInterpolated()),t.getProgress()===1){t.complete(),r=void 0;return}r=e.setTimeout(i,o);return}r=e.setTimeout(i,o)};return r=e.setTimeout(i,0),()=>r?.()});ww.Provider;function Dpe(e){var n=(0,t.useContext)(ww);return(0,t.useMemo)(()=>e??n,[e,n])}function Ope(e,t,n){return(t=kpe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kpe(e){var t=Ape(e,`string`);return typeof t==`symbol`?t:t+``}function Ape(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Tw=`init`,Ew=`pending`,Dw=`active`,jpe=`completed`;function Ow(e){return Math.max(0,e)}var Mpe=class{getAnimationStartedTime(){return this.animationStartedTime}getBeginStartedTime(){return this.beginStartedTime}constructor(e){var t;Ope(this,`state`,Tw),this.animationId=e.animationId,this.onAnimationEnd=e.onAnimationEnd,this.animationDuration=Ow(e.animationDuration),this.animationBegin=Ow(e.animationBegin),this.progress=0,this.from=e.from,this.to=e.to,this.easing=e.easing,(t=e.onAnimationStart)==null||t.call(e)}getState(){return this.state}getEasing(){return this.easing}getAnimationDuration(){return this.animationDuration}tick(e){if(this.getState()===Tw)return this.state=Ew,this.beginStartedTime=e,this.animationBegin;if(this.getState()===Ew){if(this.beginStartedTime==null)throw Error();var t=e-this.beginStartedTime;return t>=this.animationBegin?(this.state=Dw,this.animationStartedTime=e,this.nextAnimationUpdate(0)):Ow(this.animationBegin-t)}if(this.getState()===Dw){if(this.animationStartedTime==null)throw Error();var n=e-this.animationStartedTime;return this.setProgress(n/this.animationDuration),this.nextAnimationUpdate(n)}return 0}setProgress(e){this.progress=Math.min(1,Math.max(0,e))}getProgress(){return this.progress}complete(){if(this.progress=1,this.state===`active`){var e;(e=this.onAnimationEnd)==null||e.call(this)}this.state=jpe}getFrom(){return this.from}getTo(){return this.to}getAnimationId(){return this.animationId}getAnimationBegin(){return this.animationBegin}},Npe=class extends Mpe{nextAnimationUpdate(){return 0}getInterpolated(){return this.easing(by(this.getFrom(),this.getTo(),this.getProgress()))}},Ppe=class{setTimeout(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),r=null,i=a=>{a-n>=t?e(a):r=requestAnimationFrame(i)};return r=requestAnimationFrame(i),()=>{r!=null&&cancelAnimationFrame(r)}}};function Fpe(e,t){return zpe(e)||Rpe(e,t)||Lpe(e,t)||Ipe()}function Ipe(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lpe(e,t){if(e){if(typeof e==`string`)return kw(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kw(e,t):void 0}}function kw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rpe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function zpe(e){if(Array.isArray(e))return e}var Bpe={begin:0,duration:1e3,easing:`ease`,isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Aw=0,jw=1;function Vpe(e){var n=Tb(e,Bpe),r=n.animationId,i=n.isActive,a=n.canBegin,o=n.duration,s=n.easing,c=n.begin,l=n.onAnimationEnd,u=n.onAnimationStart,d=n.children,f=aw(),p=i===`auto`?!rw.isSsr&&!f:i,m=Dpe(n.animationController),h=Fpe((0,t.useState)(p?Aw:jw),2),g=h[0],_=h[1];return(0,t.useEffect)(()=>{p||_(jw)},[p]),(0,t.useEffect)(()=>{var e=Epe(s);return!p||!a||e==null?$ce:m(new Ppe,new Npe({animationId:r,easing:e,animationDuration:o,animationBegin:c,onAnimationStart:u,onAnimationEnd:l,from:Aw,to:jw}),_)},[m,r,p,a,o,s,c,u,l]),d(Number(g))}function Hpe(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`animation-`,r=(0,t.useRef)(_y(n)),i=(0,t.useRef)(e);return i.current!==e&&(r.current=_y(n),i.current=e),r.current}var Upe=e=>e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`),Wpe=(e,t,n)=>e.map(e=>`${Upe(e)} ${t}ms ${n}`).join(`,`),Gpe=[`radius`],Kpe=[`radius`],qpe,Jpe,Ype,Xpe,Zpe,Qpe,$pe,eme,tme,nme;function Mw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Mw(Object(n),!0).forEach(function(t){rme(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rme(e,t,n){return(t=ime(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ime(e){var t=ame(e,`string`);return typeof t==`symbol`?t:t+``}function ame(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Pw(){return Pw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pw.apply(null,arguments)}function Fw(e,t){if(e==null)return{};var n,r,i=ome(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ome(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function sme(e,t){return dme(e)||ume(e,t)||lme(e,t)||cme()}function cme(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
20
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lme(e,t){if(e){if(typeof e==`string`)return Iw(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iw(e,t):void 0}}function Iw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ume(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function dme(e){if(Array.isArray(e))return e}function Lw(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Rw=(e,t,n,r,i)=>{var a=uy(n),o=uy(r),s=Math.min(Math.abs(a)/2,Math.abs(o)/2),c=o>=0?1:-1,l=a>=0?1:-1,u=+(o>=0&&a>=0||o<0&&a<0),d;if(s>0&&Array.isArray(i)){for(var f=[0,0,0,0],p=0,m=4;p<m;p++){var h=i[p]??0;f[p]=h>s?s:h}d=dy(qpe||=Lw([`M`,`,`,``]),e,t+c*f[0]),f[0]>0&&(d+=dy(Jpe||=Lw([`A `,`,`,`,0,0,`,`,`,`,`,``]),f[0],f[0],u,e+l*f[0],t)),d+=dy(Ype||=Lw([`L `,`,`,``]),e+n-l*f[1],t),f[1]>0&&(d+=dy(Xpe||=Lw([`A `,`,`,`,0,0,`,`,
21
- `,`,`,``]),f[1],f[1],u,e+n,t+c*f[1])),d+=dy(Zpe||=Lw([`L `,`,`,``]),e+n,t+r-c*f[2]),f[2]>0&&(d+=dy(Qpe||=Lw([`A `,`,`,`,0,0,`,`,
22
- `,`,`,``]),f[2],f[2],u,e+n-l*f[2],t+r)),d+=dy($pe||=Lw([`L `,`,`,``]),e+l*f[3],t+r),f[3]>0&&(d+=dy(eme||=Lw([`A `,`,`,`,0,0,`,`,
23
- `,`,`,``]),f[3],f[3],u,e,t+r-c*f[3])),d+=`Z`}else if(s>0&&i===+i&&i>0){var g=Math.min(s,i);d=dy(tme||=Lw(`M .,.
24
- A .,.,0,0,.,.,.
25
- L .,.
26
- A .,.,0,0,.,.,.
27
- L .,.
28
- A .,.,0,0,.,.,.
29
- L .,.
30
- A .,.,0,0,.,.,. Z`.split(`.`)),e,t+c*g,g,g,u,e+l*g,t,e+n-l*g,t,g,g,u,e+n,t+c*g,e+n,t+r-c*g,g,g,u,e+n-l*g,t+r,e+l*g,t+r,g,g,u,e,t+r-c*g)}else d=dy(nme||=Lw([`M `,`,`,` h `,` v `,` h `,` Z`]),e,t,n,r,-n);return d},zw={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},fme=e=>{var n=Tb(e,zw),r=(0,t.useRef)(null),i=sme((0,t.useState)(-1),2),a=i[0],o=i[1];(0,t.useEffect)(()=>{if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&o(e)}catch{}},[]);var s=n.x,c=n.y,l=n.width,u=n.height,d=n.radius,f=n.className,p=n.animationEasing,m=n.animationDuration,h=n.animationBegin,g=n.isAnimationActive,_=n.isUpdateAnimationActive,v=(0,t.useRef)(l),y=(0,t.useRef)(u),b=(0,t.useRef)(s),x=(0,t.useRef)(c),S=Hpe((0,t.useMemo)(()=>({x:s,y:c,width:l,height:u,radius:d}),[s,c,l,u,d]),`rectangle-`);if(s!==+s||c!==+c||l!==+l||u!==+u||l===0||u===0)return null;var C=Hn(`recharts-rectangle`,f);if(!_){var w=ny(n);w.radius;var T=Fw(w,Gpe);return t.createElement(`path`,Pw({},T,{x:uy(s),y:uy(c),width:uy(l),height:uy(u),radius:typeof d==`number`?d:void 0,className:C,d:Rw(s,c,l,u,d)}))}var E=v.current,D=y.current,O=b.current,k=x.current,A=`0px ${a===-1?1:a}px`,j=`${a}px ${a}px`,M=Wpe([`strokeDasharray`],m,typeof p==`string`?p:zw.animationEasing);return t.createElement(Vpe,{animationId:S,key:S,canBegin:a>0,duration:m,easing:p,isActive:_,begin:h},e=>{var i=by(E,l,e),a=by(D,u,e),o=by(O,s,e),f=by(k,c,e);r.current&&(v.current=i,y.current=a,b.current=o,x.current=f);var p=g?e>0?{transition:M,strokeDasharray:j}:{strokeDasharray:A}:{strokeDasharray:j},m=ny(n);m.radius;var h=Fw(m,Kpe);return t.createElement(`path`,Pw({},h,{radius:typeof d==`number`?d:void 0,className:C,d:Rw(o,f,i,a,d),ref:r,style:Nw(Nw({},p),n.style)}))})},Bw=Math.PI/180,Vw=(e,t,n,r)=>({x:e+Math.cos(-Bw*r)*n,y:t+Math.sin(-Bw*r)*n}),pme=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2};function Hw(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle;return{points:[Vw(t,n,r,i),Vw(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}var mme,hme,gme,_me,vme,yme,bme;function Uw(){return Uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uw.apply(null,arguments)}function Ww(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var xme=(e,t)=>fy(t-e)*Math.min(Math.abs(t-e),359.999),Gw=e=>{var t=e.cx,n=e.cy,r=e.radius,i=e.angle,a=e.sign,o=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,l=s*(o?1:-1)+r,u=Math.asin(s/l)/Bw,d=c?i:i+a*u,f=Vw(t,n,l,d),p=Vw(t,n,r,d),m=c?i-a*u:i;return{center:f,circleTangency:p,lineTangency:Vw(t,n,l*Math.cos(u*Bw),m),theta:u}},Kw=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.startAngle,o=e.endAngle,s=xme(a,o),c=a+s,l=Vw(t,n,i,a),u=Vw(t,n,i,c),d=dy(mme||=Ww([`M `,`,`,`
31
- A `,`,`,`,0,
32
- `,`,`,`,
33
- `,`,`,`
34
- `]),l.x,l.y,i,i,+(Math.abs(s)>180),+(a>c),u.x,u.y);if(r>0){var f=Vw(t,n,r,a),p=Vw(t,n,r,c);d+=dy(hme||=Ww([`L `,`,`,`
35
- A `,`,`,`,0,
36
- `,`,`,`,
37
- `,`,`,` Z`]),p.x,p.y,r,r,+(Math.abs(s)>180),+(a<=c),f.x,f.y)}else d+=dy(gme||=Ww([`L `,`,`,` Z`]),t,n);return d},Sme=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,o=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,u=fy(l-c),d=Gw({cx:t,cy:n,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:s}),f=d.circleTangency,p=d.lineTangency,m=d.theta,h=Gw({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:a,cornerIsExternal:s}),g=h.circleTangency,_=h.lineTangency,v=h.theta,y=s?Math.abs(c-l):Math.abs(c-l)-m-v;if(y<0)return o?dy(_me||=Ww([`M `,`,`,`
38
- a`,`,`,`,0,0,1,`,`,0
39
- a`,`,`,`,0,0,1,`,`,0
40
- `]),p.x,p.y,a,a,a*2,a,a,-a*2):Kw({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:l});var b=dy(vme||=Ww([`M `,`,`,`
41
- A`,`,`,`,0,0,`,`,`,`,`,`
42
- A`,`,`,`,0,`,`,`,`,`,`,`,`
43
- A`,`,`,`,0,0,`,`,`,`,`,`
44
- `]),p.x,p.y,a,a,+(u<0),f.x,f.y,i,i,+(y>180),+(u<0),g.x,g.y,a,a,+(u<0),_.x,_.y);if(r>0){var x=Gw({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),S=x.circleTangency,C=x.lineTangency,w=x.theta,T=Gw({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),E=T.circleTangency,D=T.lineTangency,O=T.theta,k=s?Math.abs(c-l):Math.abs(c-l)-w-O;if(k<0&&a===0)return`${b}L${t},${n}Z`;b+=dy(yme||=Ww([`L`,`,`,`
45
- A`,`,`,`,0,0,`,`,`,`,`,`
46
- A`,`,`,`,0,`,`,`,`,`,`,`,`
47
- A`,`,`,`,0,0,`,`,`,`,`,`Z`]),D.x,D.y,a,a,+(u<0),E.x,E.y,r,r,+(k>180),+(u>0),S.x,S.y,a,a,+(u<0),C.x,C.y)}else b+=dy(bme||=Ww([`L`,`,`,`Z`]),t,n);return b},Cme={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},wme=e=>{var n=Tb(e,Cme),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,s=n.cornerRadius,c=n.forceCornerRadius,l=n.cornerIsExternal,u=n.startAngle,d=n.endAngle,f=n.className;if(o<a||u===d)return null;var p=Hn(`recharts-sector`,f),m=o-a,h=vy(s,m,0,!0),g=h>0&&Math.abs(u-d)<360?Sme({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(h,m/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:u,endAngle:d}):Kw({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:d});return t.createElement(`path`,Uw({},ny(n),{className:p,d:g}))};function Tme(e,t,n){if(e===`horizontal`)return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e===`vertical`)return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(Cb(t)){if(e===`centric`){var r=t.cx,i=t.cy,a=t.innerRadius,o=t.outerRadius,s=t.angle,c=Vw(r,i,a,s),l=Vw(r,i,o,s);return[{x:c.x,y:c.y},{x:l.x,y:l.y}]}return Hw(t)}}function Eme(e){return cx(e)?NaN:Number(e)}function qw(e){return e?(e=Eme(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function Jw(e,t,n){n&&typeof n!=`number`&&ox(e,t,n)&&(t=n=void 0),e=qw(e),t===void 0?(t=e,e=0):t=qw(t),n=n===void 0?e<t?1:-1:qw(n);let r=Math.max(Math.ceil((t-e)/(n||1)),0),i=Array(r);for(let t=0;t<r;t++)i[t]=e,e+=n;return i}var Yw=e=>e.chartData,Xw=Q([Yw],e=>{var t=e.chartData==null?0:e.chartData.length-1;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Zw=(e,t,n,r)=>r?Xw(e):Yw(e),Dme=Q([Zw],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t==null?[]:t.slice(n,r+1)});Q([Xw],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t==null?[]:t.slice(n,r+1)});var Ome=Q([Yw],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t==null?[]:t.slice(n,r+1)});function Qw(e,t){return Mme(e)||jme(e,t)||Ame(e,t)||kme()}function kme(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
48
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ame(e,t){if(e){if(typeof e==`string`)return $w(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$w(e,t):void 0}}function $w(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jme(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Mme(e){if(Array.isArray(e))return e}function eT(e){if(Array.isArray(e)&&e.length===2){var t=Qw(e,2),n=t[0],r=t[1];if(KS(n)&&KS(r))return!0}return!1}function tT(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function nT(e,t){if(t&&typeof e!=`function`&&Array.isArray(e)&&e.length===2){var n=Qw(e,2),r=n[0],i=n[1],a,o;if(KS(r))a=r;else if(typeof r==`function`)return;if(KS(i))o=i;else if(typeof i==`function`)return;var s=[a,o];if(eT(s))return s}}function Nme(e,t,n){if(!(!n&&t==null)){if(typeof e==`function`&&t!=null)try{var r=e(t,n);if(eT(r))return tT(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var i=Qw(e,2),a=i[0],o=i[1],s,c;if(a===`auto`)t!=null&&(s=Math.min(...t));else if(hy(a))s=a;else if(typeof a==`function`)try{t!=null&&(s=a(t?.[0]))}catch{}else if(typeof a==`string`&&ZS.test(a)){var l=ZS.exec(a);if(l==null||l[1]==null||t==null)s=void 0;else{var u=+l[1];s=t[0]-u}}else s=t?.[0];if(o===`auto`)t!=null&&(c=Math.max(...t));else if(hy(o))c=o;else if(typeof o==`function`)try{t!=null&&(c=o(t?.[1]))}catch{}else if(typeof o==`string`&&QS.test(o)){var d=QS.exec(o);if(d==null||d[1]==null||t==null)c=void 0;else{var f=+d[1];c=t[1]+f}}else c=t?.[1];var p=[s,c];if(eT(p))return t==null?p:tT(p,t,n)}}}var rT=p(u(((e,t)=>{(function(e){"use strict";var n=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},i=!0,a=`[DecimalError] `,o=a+`Invalid argument: `,s=a+`Exponent out of range: `,c=Math.floor,l=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,f=1e7,p=7,m=9007199254740991,h=c(m/p),g={};g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},g.comparedTo=g.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*p;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return b(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this,n=t.constructor;return D(b(t,new n(e),0,1),n.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return this.s===0},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(d))throw Error(a+`NaN`);if(n.s<1)throw Error(a+(n.s?`NaN`:`-Infinity`));return n.eq(d)?new r(0):(i=!1,t=b(T(n,s),T(e,s),s),i=!0,D(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):_(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(a+`NaN`);return n.s?(i=!1,t=b(n,e,0,1).times(e),i=!0,n.minus(t)):D(new r(n),o)},g.naturalExponential=g.exp=function(){return x(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_(t,e):O(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(o+e);if(t=S(i)+1,r=i.d.length-1,n=r*p+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(a+`NaN`)}for(e=S(u),i=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=y(u.d),(t.length+e)%2==0&&(t+=`0`),o=Math.sqrt(t),e=c((e+1)/2)-(e<0||e%2),o==1/0?t=`5e`+e:(t=o.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=l=n+3;;)if(s=r,r=s.plus(b(u,s,l+2)).times(.5),y(s.d).slice(0,l)===(t=y(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),o==l&&t==`4999`){if(D(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!=`9999`)break;l+=4}return i=!0,D(r,n)},g.times=g.mul=function(e){var t,n,r,a,o,s,c,l,u,d=this,p=d.constructor,m=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,l=m.length,u=h.length,l<u&&(o=m,m=h,h=o,s=l,l=u,u=s),o=[],s=l+u,r=s;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,a=l+r;a>r;)c=o[a]+h[r]*m[a-r-1]+t,o[a--]=c%f|0,t=c/f|0;o[a]=(o[a]+t)%f|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,i?D(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(v(e,0,n),t===void 0?t=i.rounding:v(t,0,8),D(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=k(i,!0):(v(e,0,n),t===void 0?t=a.rounding:v(t,0,8),i=D(new a(i),e+1,t),r=k(i,!0,e+1)),r},g.toFixed=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?k(a):(v(e,0,n),t===void 0?t=o.rounding:v(t,0,8),i=D(new o(a),e+S(a)+1,t),r=k(i.abs(),!1,e+S(i)+1),a.isneg()&&!a.isZero()?`-`+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return D(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,s,l,u=this,f=u.constructor,h=12,g=+(e=new f(e));if(!e.s)return new f(d);if(u=new f(u),!u.s){if(e.s<1)throw Error(a+`Infinity`);return u}if(u.eq(d))return u;if(r=f.precision,e.eq(d))return D(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,!l){if(s<0)throw Error(a+`NaN`)}else if((n=g<0?-g:g)<=m){for(o=new f(d),t=Math.ceil(r/p+4),i=!1;n%2&&(o=o.times(u),A(o.d,t)),n=c(n/2),n!==0;)u=u.times(u),A(u.d,t);return i=!0,e.s<0?new f(d).div(o):D(o,r)}return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,i=!1,o=e.times(T(u,r+h)),i=!0,o=x(o),o.s=s,o},g.toPrecision=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?(r=S(a),i=k(a,r<=o.toExpNeg||r>=o.toExpPos)):(v(e,1,n),t===void 0?t=o.rounding:v(t,0,8),a=D(new o(a),e,t),r=S(a),i=k(a,e<=r||r<=o.toExpNeg,e)),i},g.toSignificantDigits=g.tosd=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(v(e,1,n),t===void 0?t=i.rounding:v(t,0,8)),D(new i(r),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),n=e.constructor;return k(e,t<=n.toExpNeg||t>=n.toExpPos)};function _(e,t){var n,r,a,o,s,c,l,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),i?D(t,m):t;if(l=e.d,u=t.d,s=e.e,a=t.e,l=l.slice(),o=s-a,o){for(o<0?(r=l,o=-o,c=u.length):(r=u,a=s,c=l.length),s=Math.ceil(m/p),c=s>c?s+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=l.length,o=u.length,c-o<0&&(o=c,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/f|0,l[o]%=f;for(n&&(l.unshift(n),++a),c=l.length;l[--c]==0;)l.pop();return t.d=l,t.e=a,i?D(t,m):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(o+e)}function y(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=p-r.length,n&&(a+=w(n)),a+=r;o=e[t],r=o+``,n=p-r.length,n&&(a+=w(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}var b=(function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]<t[n]),e[n]=r*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,s){var c,l,u,d,m,h,g,_,v,y,b,x,C,w,T,E,O,k,A=r.constructor,j=r.s==i.s?1:-1,M=r.d,N=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(a+`Division by zero`);for(l=r.e-i.e,O=N.length,T=M.length,g=new A(j),_=g.d=[],u=0;N[u]==(M[u]||0);)++u;if(N[u]>(M[u]||0)&&--l,x=o==null?o=A.precision:s?o+(S(r)-S(i))+1:o,x<0)return new A(0);if(x=x/p+2|0,u=0,O==1)for(d=0,N=N[0],x++;(u<T||d)&&x--;u++)C=d*f+(M[u]||0),_[u]=C/N|0,d=C%N|0;else{for(d=f/(N[0]+1)|0,d>1&&(N=e(N,d),M=e(M,d),O=N.length,T=M.length),w=O,v=M.slice(0,O),y=v.length;y<O;)v[y++]=0;k=N.slice(),k.unshift(0),E=N[0],N[1]>=f/2&&++E;do d=0,c=t(N,v,O,y),c<0?(b=v[0],O!=y&&(b=b*f+(v[1]||0)),d=b/E|0,d>1?(d>=f&&(d=f-1),m=e(N,d),h=m.length,y=v.length,c=t(m,v,h,y),c==1&&(d--,n(m,O<h?k:N,h))):(d==0&&(c=d=1),m=N.slice()),h=m.length,h<y&&m.unshift(0),n(v,m,y),c==-1&&(y=v.length,c=t(N,v,O,y),c<1&&(d++,n(v,O<y?k:N,y))),y=v.length):c===0&&(d++,v=[0]),_[u++]=d,c&&v[0]?v[y++]=M[w]||0:(v=[M[w]],y=1);while((w++<T||v[0]!==void 0)&&x--)}return _[0]||_.shift(),g.e=l,D(g,s?o+S(g)+1:o)}})();function x(e,t){var n,r,a,o,c,u,f=0,p=0,m=e.constructor,h=m.precision;if(S(e)>16)throw Error(s+S(e));if(!e.s)return new m(d);for(t==null?(i=!1,u=h):u=t,c=new m(.03125);e.abs().gte(.1);)e=e.times(c),p+=5;for(r=Math.log(l(2,p))/Math.LN10*2+5|0,u+=r,n=a=o=new m(d),m.precision=u;;){if(a=D(a.times(e),u),n=n.times(++f),c=o.plus(b(a,n,u)),y(c.d).slice(0,u)===y(o.d).slice(0,u)){for(;p--;)o=D(o.times(o),u);return m.precision=h,t==null?(i=!0,D(o,h)):o}o=c}}function S(e){for(var t=e.e*p,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw i=!0,n&&(e.precision=n),Error(a+`LN10 precision limit exceeded`);return D(new e(e.LN10),t)}function w(e){for(var t=``;e--;)t+=`0`;return t}function T(e,t){var n,r,o,s,c,l,u,f,p,m=1,h=10,g=e,_=g.d,v=g.constructor,x=v.precision;if(g.s<1)throw Error(a+(g.s?`NaN`:`-Infinity`));if(g.eq(d))return new v(0);if(t==null?(i=!1,f=x):f=t,g.eq(10))return t??(i=!0),C(v,f);if(f+=h,v.precision=f,n=y(_),r=n.charAt(0),s=S(g),Math.abs(s)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=y(g.d),r=n.charAt(0),m++;s=S(g),r>1?(g=new v(`0.`+n),s++):g=new v(r+`.`+n.slice(1))}else return u=C(v,f+2,x).times(s+``),g=T(new v(r+`.`+n.slice(1)),f-h).plus(u),v.precision=x,t==null?(i=!0,D(g,x)):g;for(l=c=g=b(g.minus(d),g.plus(d),f),p=D(g.times(g),f),o=3;;){if(c=D(c.times(p),f),u=l.plus(b(c,new v(o),f)),y(u.d).slice(0,f)===y(l.d).slice(0,f))return l=l.times(2),s!==0&&(l=l.plus(C(v,f+2,x).times(s+``))),l=b(l,new v(m),f),v.precision=x,t==null?(i=!0,D(l,x)):l;l=u,o+=2}}function E(e,t){var n,r,a;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=c(n/p),e.d=[],r=(n+1)%p,n<0&&(r+=p),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=p;r<a;)e.d.push(+t.slice(r,r+=p));t=t.slice(r),r=p-t.length}else r-=a;for(;r--;)t+=`0`;if(e.d.push(+t),i&&(e.e>h||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,a,o,u,d,m,g,_,v=e.d;for(u=1,o=v[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=p,a=t,g=v[_=0];else{if(_=Math.ceil((r+1)/p),o=v.length,_>=o)return e;for(g=o=v[_],u=1;o>=10;o/=10)u++;r%=p,a=r-p+u}if(n!==void 0&&(o=l(10,u-a-1),d=g/o%10|0,m=t<0||v[_+1]!==void 0||g%o,m=n<4?(d||m)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||m||n==6&&(r>0?a>0?g/l(10,u-a):0:v[_-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return m?(o=S(e),v.length=1,t=t-o-1,v[0]=l(10,(p-t%p)%p),e.e=c(-t/p)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(r==0?(v.length=_,o=1,_--):(v.length=_+1,o=l(10,p-r),v[_]=a>0?(g/l(10,u-a)%l(10,a)|0)*o:0),m)for(;;)if(_==0){(v[0]+=o)==f&&(v[0]=1,++e.e);break}else{if(v[_]+=o,v[_]!=f)break;v[_--]=0,o=1}for(r=v.length;v[--r]===0;)v.pop();if(i&&(e.e>h||e.e<-h))throw Error(s+S(e));return e}function O(e,t){var n,r,a,o,s,c,l,u,d,m,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),i?D(t,g):t;if(l=e.d,m=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(d=s<0,d?(n=l,s=-s,c=m.length):(n=m,r=u,c=l.length),a=Math.max(Math.ceil(g/p),c)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,c=m.length,d=a<c,d&&(c=a),a=0;a<c;a++)if(l[a]!=m[a]){d=l[a]<m[a];break}s=0}for(d&&(n=l,l=m,m=n,t.s=-t.s),c=l.length,a=m.length-c;a>0;--a)l[c++]=0;for(a=m.length;a>s;){if(l[--a]<m[a]){for(o=a;o&&l[--o]===0;)l[o]=f-1;--l[o],l[a]+=f}l[a]-=m[a]}for(;l[--c]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,i?D(t,g):t):new h(0)}function k(e,t,n){var r,i=S(e),a=y(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+w(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+w(-i-1)+a,n&&(r=n-o)>0&&(a+=w(r))):i>=o?(a+=w(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+w(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=w(r))),e.s<0?`-`+a:a}function A(e,t){if(e.length>t)return e.length=t,!0}function j(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if(typeof e==`number`){if(e*0!=0)throw Error(o+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return E(t,e.toString())}if(typeof e!=`string`)throw Error(o+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,u.test(e))E(t,e);else throw Error(o+e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=j,i.config=i.set=M,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function M(e){if(!e||typeof e!=`object`)throw Error(a+`Object expected`);var t,r,i,s=[`precision`,1,n,`rounding`,0,8,`toExpNeg`,-1/0,0,`toExpPos`,0,1/0];for(t=0;t<s.length;t+=3)if((i=e[r=s[t]])!==void 0){if(c(i)===i&&i>=s[t+1]&&i<=s[t+2])this[r]=i;else throw Error(o+r+`: `+i)}if((i=e[r=`LN10`])!==void 0){if(i==Math.LN10)this[r]=new this(i);else throw Error(o+r+`: `+i)}return this}r=j(r),r.default=r.Decimal=r,d=new r(1),typeof define==`function`&&define.amd?define(function(){return r}):t!==void 0&&t.exports?t.exports=r:(e||=typeof self<`u`&&self&&self.self==self?self:Function(`return this`)(),e.Decimal=r)})(e)}))());function iT(e){return e===0?1:Math.floor(new rT.default(e).abs().log(10).toNumber())+1}function aT(e,t,n){for(var r=new rT.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}function oT(e,t){return Lme(e)||Ime(e,t)||Fme(e,t)||Pme()}function Pme(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
49
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fme(e,t){if(e){if(typeof e==`string`)return sT(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sT(e,t):void 0}}function sT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ime(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Lme(e){if(Array.isArray(e))return e}var cT=e=>{var t=oT(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]},lT=(e,t,n)=>{if(e.lte(0))return new rT.default(0);var r=iT(e.toNumber()),i=new rT.default(10).pow(r),a=e.div(i),o=r===1?.1:.05,s=new rT.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);return t?new rT.default(s.toNumber()):new rT.default(Math.ceil(s.toNumber()))},uT=(e,t,n)=>{if(e.lte(0))return new rT.default(0);var r=[1,2,2.5,5],i=e.toNumber(),a=Math.floor(new rT.default(i).abs().log(10).toNumber()),o=new rT.default(10).pow(a),s=e.div(o).toNumber(),c=r.findIndex(e=>e>=s-1e-10);if(c===-1&&(o=o.mul(10),c=0),c+=n,c>=r.length){var l=Math.floor(c/r.length);c%=r.length,o=o.mul(new rT.default(10).pow(l))}var u=r[c]??1,d=new rT.default(u).mul(o);return t?d:new rT.default(Math.ceil(d.toNumber()))},Rme=(e,t,n)=>{var r=new rT.default(1),i=new rT.default(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new rT.default(10).pow(iT(e)-1),i=new rT.default(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new rT.default(Math.floor(e)))}else e===0?i=new rT.default(Math.floor((t-1)/2)):n||(i=new rT.default(Math.floor(e)));for(var o=Math.floor((t-1)/2),s=[],c=0;c<t;c++)s.push(i.add(new rT.default(c-o).mul(r)).toNumber());return s},dT=function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:lT;if(!Number.isFinite((t-e)/(n-1)))return{step:new rT.default(0),tickMin:new rT.default(0),tickMax:new rT.default(0)};var o=a(new rT.default(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new rT.default(0):(s=new rT.default(e).add(t).div(2),s=s.sub(new rT.default(s).mod(o)));var c=Math.ceil(s.sub(e).div(o).toNumber()),l=Math.ceil(new rT.default(t).sub(s).div(o).toNumber()),u=c+l+1;return u>n?dT(e,t,n,r,i+1,a):(u<n&&(l=t>0?l+(n-u):l,c=t>0?c:c+(n-u)),{step:o,tickMin:s.sub(new rT.default(c).mul(o)),tickMax:s.add(new rT.default(l).mul(o))})},fT=function(e){var t=oT(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,s=Math.max(i,2),c=oT(cT([n,r]),2),l=c[0],u=c[1];if(l===-1/0||u===1/0){var d=u===1/0?[l,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),u];return n>r?d.reverse():d}if(l===u)return Rme(l,i,a);var f=dT(l,u,s,a,0,o===`snap125`?uT:lT),p=f.step,m=f.tickMin,h=f.tickMax,g=aT(m,h.add(new rT.default(.1).mul(p)),p);return n>r?g.reverse():g},pT=function(e,t){var n=oT(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,s=oT(cT([r,i]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0)return[r,i];if(c===l)return[c];var u=o===`snap125`?uT:lT,d=Math.max(t,2),f=u(new rT.default(l).sub(c).div(d-1),a,0),p=[...aT(new rT.default(c),new rT.default(l),f),l];if(a===!1){p=p.map(e=>Math.round(e));var m=p.length-1;m>0&&p[m]===p[m-1]&&(p=p.slice(0,m))}return r>i?p.reverse():p},zme=e=>e.rootProps.barCategoryGap,mT=e=>e.rootProps.stackOffset,hT=e=>e.rootProps.reverseStackOrder,gT=e=>e.options.chartName,Bme=e=>e.rootProps.syncId,Vme=e=>e.rootProps.syncMethod,Hme=e=>e.options.eventEmitter,_T={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},vT={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:`polygon`,cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:`auto`,orientation:`outer`,reversed:!1,scale:`auto`,tick:!0,tickLine:!0,tickSize:8,type:`auto`,zIndex:_T.axis},yT={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:`auto`,label:!1,orientation:`right`,radiusAxisId:0,reversed:!1,scale:`auto`,stroke:`#ccc`,tick:!0,tickCount:5,tickLine:!0,type:`auto`,zIndex:_T.axis},bT=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function xT(e,t,n){if(n!==`auto`)return n;if(e!=null)return XS(e,t)?`category`:`number`}function ST(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ST(Object(n),!0).forEach(function(t){Ume(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ST(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ume(e,t,n){return(t=Wme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wme(e){var t=Gme(e,`string`);return typeof t==`symbol`?t:t+``}function Gme(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var wT={allowDataOverflow:vT.allowDataOverflow,allowDecimals:vT.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:vT.angleAxisId,includeHidden:!1,name:void 0,reversed:vT.reversed,scale:vT.scale,tick:vT.tick,tickCount:void 0,ticks:void 0,type:vT.type,unit:void 0,niceTicks:`auto`},TT={allowDataOverflow:yT.allowDataOverflow,allowDecimals:yT.allowDecimals,allowDuplicatedCategory:yT.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:yT.radiusAxisId,includeHidden:yT.includeHidden,name:void 0,reversed:yT.reversed,scale:yT.scale,tick:yT.tick,tickCount:yT.tickCount,ticks:void 0,type:yT.type,unit:void 0,niceTicks:`auto`},ET=Q([(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},wC],(e,t)=>{if(e!=null)return e;var n=xT(t,`angleAxis`,wT.type)??`category`;return CT(CT({},wT),{},{type:n})}),DT=Q([(e,t)=>e.polarAxis.radiusAxis[t],wC],(e,t)=>{if(e!=null)return e;var n=xT(t,`radiusAxis`,TT.type)??`category`;return CT(CT({},TT),{},{type:n})}),OT=e=>e.polarOptions,kT=Q([eC,tC,uC],pme),AT=Q([OT,kT],(e,t)=>{if(e!=null)return vy(e.innerRadius,t,0)}),jT=Q([OT,kT],(e,t)=>{if(e!=null)return vy(e.outerRadius,t,t*.8)}),MT=Q([OT],e=>e==null?[0,0]:[e.startAngle,e.endAngle]);Q([ET,MT],bT);var NT=Q([kT,AT,jT],(e,t,n)=>{if(e!=null&&t!=null&&n!=null)return[t,n]});Q([DT,NT],bT),Q([SC,OT,AT,jT,eC,tC],(e,t,n,r,i,a)=>{if(!(e!==`centric`&&e!==`radial`||t==null||n==null||r==null)){var o=t.cx,s=t.cy,c=t.startAngle,l=t.endAngle;return{cx:vy(o,i,i/2),cy:vy(s,a,a/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:l,clockWise:!1}}});var PT=(e,t)=>t,FT=(e,t,n)=>n;function IT(e){return e?.id}function LT(e,t,n){var r=t.chartData,i=r===void 0?[]:r,a=n.allowDuplicatedCategory,o=n.dataKey,s=new Map;return e.forEach(e=>{var t=e.data??i;if(t!=null&&t.length!==0){var n=IT(e);t.forEach((t,r)=>{var i=o==null||a?r:String(YS(t,o,null)),c=YS(t,e.dataKey,0),l=s.has(i)?s.get(i):{};Object.assign(l,{[n]:c}),s.set(i,l)})}}),Array.from(s.values())}function RT(e){return`stackId`in e&&e.stackId!=null&&e.dataKey!=null}var zT=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function BT(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function Kme(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var VT=e=>{var t=SC(e);return t===`horizontal`?`xAxis`:t===`vertical`?`yAxis`:t===`centric`?`angleAxis`:`radiusAxis`},HT=e=>e.tooltip.settings.axisId;function UT(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(e){var t=i[0],n=i[1];return t<=n?e>=t&&e<=n:e>=n&&e<=t},bandwidth:n?()=>n.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(t,n)=>{var r=e(t);if(r!=null){if(e.bandwidth&&n!=null&&n.position){var i=e.bandwidth();switch(n.position){case`middle`:r+=i/2;break;case`end`:r+=i}}return r}}}}}var qme=(e,t)=>{if(t!=null)switch(e){case`linear`:if(!eT(t)){for(var n,r,i=0;i<t.length;i++){var a=t[i];KS(a)&&((n===void 0||a<n)&&(n=a),(r===void 0||a>r)&&(r=a))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t;default:return t}};function WT(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Jme(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function GT(e){let t,n,r;e.length===2?(t=e===WT||e===Jme?e:Yme,n=e,r=e):(t=WT,n=(t,n)=>WT(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function Yme(){return 0}function KT(e){return e===null?NaN:+e}function*Xme(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var qT=GT(WT),JT=qT.right;qT.left,GT(KT).center;var YT=class extends Map{constructor(e,t=$me){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(XT(this,e))}has(e){return super.has(XT(this,e))}set(e,t){return super.set(Zme(this,e),t)}delete(e){return super.delete(Qme(this,e))}};function XT({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Zme({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Qme({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function $me(e){return typeof e==`object`&&e?e.valueOf():e}function ehe(e=WT){if(e===WT)return ZT;if(typeof e!=`function`)throw TypeError(`compare is not a function`);return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function ZT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:+(e>t))}var the=Math.sqrt(50),nhe=Math.sqrt(10),rhe=Math.sqrt(2);function QT(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=the?10:a>=nhe?5:a>=rhe?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?QT(e,t,n*2):[s,c,l]}function $T(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?QT(t,e,n):QT(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function eE(e,t,n){return t=+t,e=+e,n=+n,QT(e,t,n)[2]}function tE(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?eE(t,e,n):eE(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function nE(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function rE(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function iE(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?ZT:ehe(i);r>n;){if(r-n>600){let a=r-n+1,o=t-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(t-o*c/a+l)),d=Math.min(r,Math.floor(t+(a-o)*c/a+l));iE(e,t,u,d,i)}let a=e[t],o=n,s=r;for(aE(e,n,t),i(e[r],a)>0&&aE(e,n,r);o<s;){for(aE(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?aE(e,n,s):(++s,aE(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function aE(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function ihe(e,t,n){if(e=Float64Array.from(Xme(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return rE(e);if(t>=1)return nE(e);var r,i=(r-1)*t,a=Math.floor(i),o=nE(iE(e,a).subarray(0,a+1));return o+(rE(e.subarray(a+1))-o)*(i-a)}}function ahe(e,t,n=KT){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function ohe(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function oE(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function sE(e,t){switch(arguments.length){case 0:break;case 1:typeof e==`function`?this.interpolator(e):this.range(e);break;default:this.domain(e),typeof t==`function`?this.interpolator(t):this.range(t)}return this}var cE=Symbol(`implicit`);function lE(){var e=new YT,t=[],n=[],r=cE;function i(i){let a=e.get(i);if(a===void 0){if(r!==cE)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new YT;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return lE(t,n).unknown(r)},oE.apply(i,arguments),i}function uE(){var e=lE().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=ohe(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return uE(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},oE.apply(d(),arguments)}function dE(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return dE(t())},e}function she(){return dE(uE.apply(null,arguments).paddingInner(1))}function fE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function pE(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function mE(){}var hE=.7,gE=1/hE,_E=`\\s*([+-]?\\d+)\\s*`,vE=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,yE=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,che=/^#([0-9a-f]{3,8})$/,lhe=RegExp(`^rgb\\(${_E},${_E},${_E}\\)$`),uhe=RegExp(`^rgb\\(${yE},${yE},${yE}\\)$`),dhe=RegExp(`^rgba\\(${_E},${_E},${_E},${vE}\\)$`),fhe=RegExp(`^rgba\\(${yE},${yE},${yE},${vE}\\)$`),phe=RegExp(`^hsl\\(${vE},${yE},${yE}\\)$`),mhe=RegExp(`^hsla\\(${vE},${yE},${yE},${vE}\\)$`),bE={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};fE(mE,CE,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:xE,formatHex:xE,formatHex8:hhe,formatHsl:ghe,formatRgb:SE,toString:SE});function xE(){return this.rgb().formatHex()}function hhe(){return this.rgb().formatHex8()}function ghe(){return IE(this).formatHsl()}function SE(){return this.rgb().formatRgb()}function CE(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=che.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?wE(t):n===3?new OE(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?TE(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?TE(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=lhe.exec(e))?new OE(t[1],t[2],t[3],1):(t=uhe.exec(e))?new OE(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=dhe.exec(e))?TE(t[1],t[2],t[3],t[4]):(t=fhe.exec(e))?TE(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=phe.exec(e))?FE(t[1],t[2]/100,t[3]/100,1):(t=mhe.exec(e))?FE(t[1],t[2]/100,t[3]/100,t[4]):bE.hasOwnProperty(e)?wE(bE[e]):e===`transparent`?new OE(NaN,NaN,NaN,0):null}function wE(e){return new OE(e>>16&255,e>>8&255,e&255,1)}function TE(e,t,n,r){return r<=0&&(e=t=n=NaN),new OE(e,t,n,r)}function EE(e){return e instanceof mE||(e=CE(e)),e?(e=e.rgb(),new OE(e.r,e.g,e.b,e.opacity)):new OE}function DE(e,t,n,r){return arguments.length===1?EE(e):new OE(e,t,n,r??1)}function OE(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}fE(OE,DE,pE(mE,{brighter(e){return e=e==null?gE:gE**+e,new OE(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?hE:hE**+e,new OE(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new OE(NE(this.r),NE(this.g),NE(this.b),ME(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:kE,formatHex:kE,formatHex8:AE,formatRgb:jE,toString:jE}));function kE(){return`#${PE(this.r)}${PE(this.g)}${PE(this.b)}`}function AE(){return`#${PE(this.r)}${PE(this.g)}${PE(this.b)}${PE((isNaN(this.opacity)?1:this.opacity)*255)}`}function jE(){let e=ME(this.opacity);return`${e===1?`rgb(`:`rgba(`}${NE(this.r)}, ${NE(this.g)}, ${NE(this.b)}${e===1?`)`:`, ${e})`}`}function ME(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function NE(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function PE(e){return e=NE(e),(e<16?`0`:``)+e.toString(16)}function FE(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new RE(e,t,n,r)}function IE(e){if(e instanceof RE)return new RE(e.h,e.s,e.l,e.opacity);if(e instanceof mE||(e=CE(e)),!e)return new RE;if(e instanceof RE)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new RE(o,s,c,e.opacity)}function LE(e,t,n,r){return arguments.length===1?IE(e):new RE(e,t,n,r??1)}function RE(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}fE(RE,LE,pE(mE,{brighter(e){return e=e==null?gE:gE**+e,new RE(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?hE:hE**+e,new RE(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new OE(VE(e>=240?e-240:e+120,i,r),VE(e,i,r),VE(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new RE(zE(this.h),BE(this.s),BE(this.l),ME(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ME(this.opacity);return`${e===1?`hsl(`:`hsla(`}${zE(this.h)}, ${BE(this.s)*100}%, ${BE(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function zE(e){return e=(e||0)%360,e<0?e+360:e}function BE(e){return Math.max(0,Math.min(1,e||0))}function VE(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var HE=e=>()=>e;function UE(e,t){return function(n){return e+n*t}}function WE(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function GE(e){return(e=+e)==1?KE:function(t,n){return n-t?WE(t,n,e):HE(isNaN(t)?n:t)}}function KE(e,t){var n=t-e;return n?UE(e,n):HE(isNaN(e)?t:e)}var qE=(function e(t){var n=GE(t);function r(e,t){var r=n((e=DE(e)).r,(t=DE(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=KE(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function JE(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function YE(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function XE(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=aD(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function ZE(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function QE(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function $E(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=aD(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var eD=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tD=new RegExp(eD.source,`g`);function nD(e){return function(){return e}}function rD(e){return function(t){return e(t)+``}}function iD(e,t){var n=eD.lastIndex=tD.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=eD.exec(e))&&(i=tD.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:QE(r,i)})),n=tD.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?rD(c[0].x):nD(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function aD(e,t){var n=typeof t,r;return t==null||n===`boolean`?HE(t):(n===`number`?QE:n===`string`?(r=CE(t))?(t=r,qE):iD:t instanceof CE?qE:t instanceof Date?ZE:YE(t)?JE:Array.isArray(t)?XE:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?$E:QE)(e,t)}function oD(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function sD(e,t){t===void 0&&(t=e,e=aD);for(var n=0,r=t.length-1,i=t[0],a=Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}function cD(e){return function(){return e}}function lD(e){return+e}var uD=[0,1];function dD(e){return e}function fD(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:cD(isNaN(t)?NaN:.5)}function pD(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function mD(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=fD(i,r),a=n(o,a)):(r=fD(r,i),a=n(a,o)),function(e){return a(r(e))}}function hD(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=fD(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=JT(e,t,1,r)-1;return a[n](i[n](t))}}function gD(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function _D(){var e=uD,t=uD,n=aD,r,i,a,o=dD,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==dD&&(o=pD(e[0],e[n-1])),s=n>2?hD:mD,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),QE))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,lD),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=oD,u()},d.clamp=function(e){return arguments.length?(o=e?!0:dD,u()):o!==dD},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function vD(){return _D()(dD,dD)}function yD(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function bD(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function xD(e){return e=bD(Math.abs(e)),e?e[1]:NaN}function SD(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function CD(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var wD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function TD(e){if(!(t=wD.exec(e)))throw Error(`invalid format: `+e);var t;return new ED({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}TD.prototype=ED.prototype;function ED(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}ED.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function DD(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var OD;function kD(e,t){var n=bD(e,t);if(!n)return OD=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(OD=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+bD(e,Math.max(0,t+a-1))[0]}function AD(e,t){var n=bD(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var jD={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:yD,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>AD(e*100,t),r:AD,s:kD,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function MD(e){return e}var ND=Array.prototype.map,PD=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function FD(e){var t=e.grouping===void 0||e.thousands===void 0?MD:SD(ND.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?MD:CD(ND.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=TD(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):jD[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=jD[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=DD(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&OD!==void 0?PD[8+OD/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(xD(t)/3)))*3,r=10**-n,i=l((e=TD(e),e.type=`f`,e),{suffix:PD[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var ID,LD,RD;zD({thousands:`,`,grouping:[3],currency:[`$`,``]});function zD(e){return ID=FD(e),LD=ID.format,RD=ID.formatPrefix,ID}function BD(e){return Math.max(0,-xD(Math.abs(e)))}function VD(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xD(t)/3)))*3-xD(Math.abs(e)))}function HD(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xD(t)-xD(e))+1}function UD(e,t,n,r){var i=tE(e,t,n),a;switch(r=TD(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=VD(i,o))&&(r.precision=a),RD(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=HD(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=BD(i))&&(r.precision=a-(r.type===`%`)*2)}return LD(r)}function WD(e){var t=e.domain;return e.ticks=function(e){var n=t();return $T(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return UD(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=eE(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function GD(){var e=vD();return e.copy=function(){return gD(e,GD())},oE.apply(e,arguments),WD(e)}function KD(e){var t;function n(e){return e==null||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,lD),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return KD(e).unknown(t)},e=arguments.length?Array.from(e,lD):[0,1],WD(n)}function qD(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function JD(e){return Math.log(e)}function YD(e){return Math.exp(e)}function XD(e){return-Math.log(-e)}function ZD(e){return-Math.exp(-e)}function QD(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function $D(e){return e===10?QD:e===Math.E?Math.exp:t=>e**+t}function eO(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function tO(e){return(t,n)=>-e(-t,n)}function nO(e){let t=e(JD,YD),n=t.domain,r=10,i,a;function o(){return i=eO(r),a=$D(r),n()[0]<0?(i=tO(i),a=tO(a),e(XD,ZD)):e(JD,YD),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=$T(o,s,p))}else m=$T(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=TD(n)).precision==null&&(n.trim=!0),n=LD(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(qD(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function rO(){let e=nO(_D()).domain([1,10]);return e.copy=()=>gD(e,rO()).base(e.base()),oE.apply(e,arguments),e}function iO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function aO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function oO(e){var t=1,n=e(iO(t),aO(t));return n.constant=function(n){return arguments.length?e(iO(t=+n),aO(t)):t},WD(n)}function sO(){var e=oO(_D());return e.copy=function(){return gD(e,sO()).constant(e.constant())},oE.apply(e,arguments)}function cO(e){return function(t){return t<0?-((-t)**+e):t**+e}}function lO(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function uO(e){return e<0?-e*e:e*e}function dO(e){var t=e(dD,dD),n=1;function r(){return n===1?e(dD,dD):n===.5?e(lO,uO):e(cO(n),cO(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},WD(t)}function fO(){var e=dO(_D());return e.copy=function(){return gD(e,fO()).exponent(e.exponent())},oE.apply(e,arguments),e}function pO(){return fO.apply(null,arguments).exponent(.5)}function mO(e){return Math.sign(e)*e*e}function hO(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function gO(){var e=vD(),t=[0,1],n=!1,r;function i(t){var i=hO(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(mO(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(n){return arguments.length?(e.range((t=Array.from(n,lD)).map(mO)),i):t.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return gO(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},oE.apply(i,arguments),WD(i)}function _O(){var e=[],t=[],n=[],r;function i(){var r=0,i=Math.max(1,t.length);for(n=Array(i-1);++r<i;)n[r-1]=ahe(e,r/i);return a}function a(e){return e==null||isNaN(e=+e)?r:t[JT(n,e)]}return a.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(WT),i()},a.range=function(e){return arguments.length?(t=Array.from(e),i()):t.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return _O().domain(e).range(t).unknown(r)},oE.apply(a,arguments)}function vO(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[JT(r,e,0,n)]:a}function s(){var i=-1;for(r=Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?([e,t]=n,e=+e,t=+t,s()):[e,t]},o.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(a){var o=i.indexOf(a);return o<0?[NaN,NaN]:o<1?[e,r[0]]:o>=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return vO().domain([e,t]).range(i).unknown(a)},oE.apply(WD(o),arguments)}function yO(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[JT(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return yO().domain(e).range(t).unknown(n)},oE.apply(i,arguments)}var bO=new Date,xO=new Date;function SO(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>SO(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(bO.setTime(+t),xO.setTime(+r),e(bO),e(xO),Math.floor(n(bO,xO))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var CO=SO(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);CO.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?SO(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):CO),CO.range;var wO=1e3,TO=wO*60,EO=TO*60,DO=EO*24,OO=DO*7,kO=DO*30,AO=DO*365,jO=SO(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*wO)},(e,t)=>(t-e)/wO,e=>e.getUTCSeconds());jO.range;var MO=SO(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wO)},(e,t)=>{e.setTime(+e+t*TO)},(e,t)=>(t-e)/TO,e=>e.getMinutes());MO.range;var NO=SO(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*TO)},(e,t)=>(t-e)/TO,e=>e.getUTCMinutes());NO.range;var PO=SO(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wO-e.getMinutes()*TO)},(e,t)=>{e.setTime(+e+t*EO)},(e,t)=>(t-e)/EO,e=>e.getHours());PO.range;var FO=SO(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*EO)},(e,t)=>(t-e)/EO,e=>e.getUTCHours());FO.range;var IO=SO(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*TO)/DO,e=>e.getDate()-1);IO.range;var LO=SO(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/DO,e=>e.getUTCDate()-1);LO.range;var RO=SO(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/DO,e=>Math.floor(e/DO));RO.range;function zO(e){return SO(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*TO)/OO)}var BO=zO(0),VO=zO(1),_he=zO(2),vhe=zO(3),HO=zO(4),yhe=zO(5),bhe=zO(6);BO.range,VO.range,_he.range,vhe.range,HO.range,yhe.range,bhe.range;function UO(e){return SO(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/OO)}var WO=UO(0),GO=UO(1),xhe=UO(2),She=UO(3),KO=UO(4),Che=UO(5),whe=UO(6);WO.range,GO.range,xhe.range,She.range,KO.range,Che.range,whe.range;var qO=SO(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());qO.range;var JO=SO(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());JO.range;var YO=SO(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());YO.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:SO(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),YO.range;var XO=SO(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());XO.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:SO(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),XO.range;function ZO(e,t,n,r,i,a){let o=[[jO,1,wO],[jO,5,5*wO],[jO,15,15*wO],[jO,30,30*wO],[a,1,TO],[a,5,5*TO],[a,15,15*TO],[a,30,30*TO],[i,1,EO],[i,3,3*EO],[i,6,6*EO],[i,12,12*EO],[r,1,DO],[r,2,2*DO],[n,1,OO],[t,1,kO],[t,3,3*kO],[e,1,AO]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=GT(([,,e])=>e).right(o,i);if(a===o.length)return e.every(tE(t/AO,n/AO,r));if(a===0)return CO.every(Math.max(tE(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[The,Ehe]=ZO(XO,JO,WO,RO,FO,NO),[Dhe,Ohe]=ZO(YO,qO,BO,IO,PO,MO);function QO(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function $O(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ek(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function khe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=ik(i),u=ak(i),d=ik(a),f=ak(a),p=ik(o),m=ak(o),h=ik(s),g=ak(s),_=ik(c),v=ak(c),y={a:N,A:P,b:F,B:I,c:null,d:uk,e:uk,f:Qhe,g:cge,G:uge,H:Yhe,I:Xhe,j:Zhe,L:dk,m:$he,M:ege,p:L,q:R,Q:_k,s:vk,S:tge,u:nge,U:rge,V:ige,w:age,W:oge,x:null,X:null,y:sge,Y:lge,Z:dge,"%":gk},b={a:z,A:B,b:V,B:H,c:null,d:pk,e:pk,f:hge,g:Tge,G:Dge,H:fge,I:pge,j:mge,L:mk,m:gge,M:_ge,p:U,q:W,Q:_k,s:vk,S:vge,u:yge,U:bge,V:xge,w:Sge,W:Cge,x:null,X:null,y:wge,Y:Ege,Z:Oge,"%":gk},x={a:E,A:D,b:O,B:k,c:A,d:ck,e:ck,f:Ghe,g:sk,G:ok,H:lk,I:lk,j:Vhe,L:Whe,m:Bhe,M:Hhe,p:T,q:zhe,Q:qhe,s:Jhe,S:Uhe,u:Phe,U:Fhe,V:Ihe,w:Nhe,W:Lhe,x:j,X:M,y:sk,Y:ok,Z:Rhe,"%":Khe};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=tk[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=ek(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=$O(ek(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?GO.ceil(a):GO(a),a=LO.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=QO(ek(r.y,0,1)),o=a.getDay(),a=o>4||o===0?VO.ceil(a):VO(a),a=IO.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?$O(ek(r.y,0,1)).getUTCDay():QO(ek(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,$O(r)):QO(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in tk?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function P(e){return a[e.getDay()]}function F(e){return c[e.getMonth()]}function I(e){return s[e.getMonth()]}function L(e){return i[+(e.getHours()>=12)]}function R(e){return 1+~~(e.getMonth()/3)}function z(e){return o[e.getUTCDay()]}function B(e){return a[e.getUTCDay()]}function V(e){return c[e.getUTCMonth()]}function H(e){return s[e.getUTCMonth()]}function U(e){return i[+(e.getUTCHours()>=12)]}function W(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var tk={"-":``,_:` `,0:`0`},nk=/^\s*\d+/,Ahe=/^%/,jhe=/[\\^$*+?|[\]().{}]/g;function rk(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function Mhe(e){return e.replace(jhe,`\\$&`)}function ik(e){return RegExp(`^(?:`+e.map(Mhe).join(`|`)+`)`,`i`)}function ak(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Nhe(e,t,n){var r=nk.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Phe(e,t,n){var r=nk.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Fhe(e,t,n){var r=nk.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ihe(e,t,n){var r=nk.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Lhe(e,t,n){var r=nk.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ok(e,t,n){var r=nk.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function sk(e,t,n){var r=nk.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Rhe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function zhe(e,t,n){var r=nk.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Bhe(e,t,n){var r=nk.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ck(e,t,n){var r=nk.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Vhe(e,t,n){var r=nk.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lk(e,t,n){var r=nk.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Hhe(e,t,n){var r=nk.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Uhe(e,t,n){var r=nk.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Whe(e,t,n){var r=nk.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ghe(e,t,n){var r=nk.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Khe(e,t,n){var r=Ahe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function qhe(e,t,n){var r=nk.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Jhe(e,t,n){var r=nk.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function uk(e,t){return rk(e.getDate(),t,2)}function Yhe(e,t){return rk(e.getHours(),t,2)}function Xhe(e,t){return rk(e.getHours()%12||12,t,2)}function Zhe(e,t){return rk(1+IO.count(YO(e),e),t,3)}function dk(e,t){return rk(e.getMilliseconds(),t,3)}function Qhe(e,t){return dk(e,t)+`000`}function $he(e,t){return rk(e.getMonth()+1,t,2)}function ege(e,t){return rk(e.getMinutes(),t,2)}function tge(e,t){return rk(e.getSeconds(),t,2)}function nge(e){var t=e.getDay();return t===0?7:t}function rge(e,t){return rk(BO.count(YO(e)-1,e),t,2)}function fk(e){var t=e.getDay();return t>=4||t===0?HO(e):HO.ceil(e)}function ige(e,t){return e=fk(e),rk(HO.count(YO(e),e)+(YO(e).getDay()===4),t,2)}function age(e){return e.getDay()}function oge(e,t){return rk(VO.count(YO(e)-1,e),t,2)}function sge(e,t){return rk(e.getFullYear()%100,t,2)}function cge(e,t){return e=fk(e),rk(e.getFullYear()%100,t,2)}function lge(e,t){return rk(e.getFullYear()%1e4,t,4)}function uge(e,t){var n=e.getDay();return e=n>=4||n===0?HO(e):HO.ceil(e),rk(e.getFullYear()%1e4,t,4)}function dge(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+rk(t/60|0,`0`,2)+rk(t%60,`0`,2)}function pk(e,t){return rk(e.getUTCDate(),t,2)}function fge(e,t){return rk(e.getUTCHours(),t,2)}function pge(e,t){return rk(e.getUTCHours()%12||12,t,2)}function mge(e,t){return rk(1+LO.count(XO(e),e),t,3)}function mk(e,t){return rk(e.getUTCMilliseconds(),t,3)}function hge(e,t){return mk(e,t)+`000`}function gge(e,t){return rk(e.getUTCMonth()+1,t,2)}function _ge(e,t){return rk(e.getUTCMinutes(),t,2)}function vge(e,t){return rk(e.getUTCSeconds(),t,2)}function yge(e){var t=e.getUTCDay();return t===0?7:t}function bge(e,t){return rk(WO.count(XO(e)-1,e),t,2)}function hk(e){var t=e.getUTCDay();return t>=4||t===0?KO(e):KO.ceil(e)}function xge(e,t){return e=hk(e),rk(KO.count(XO(e),e)+(XO(e).getUTCDay()===4),t,2)}function Sge(e){return e.getUTCDay()}function Cge(e,t){return rk(GO.count(XO(e)-1,e),t,2)}function wge(e,t){return rk(e.getUTCFullYear()%100,t,2)}function Tge(e,t){return e=hk(e),rk(e.getUTCFullYear()%100,t,2)}function Ege(e,t){return rk(e.getUTCFullYear()%1e4,t,4)}function Dge(e,t){var n=e.getUTCDay();return e=n>=4||n===0?KO(e):KO.ceil(e),rk(e.getUTCFullYear()%1e4,t,4)}function Oge(){return`+0000`}function gk(){return`%`}function _k(e){return+e}function vk(e){return Math.floor(e/1e3)}var yk,bk,xk;kge({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function kge(e){return yk=khe(e),bk=yk.format,yk.parse,xk=yk.utcFormat,yk.utcParse,yk}function Age(e){return new Date(e)}function jge(e){return e instanceof Date?+e:+new Date(+e)}function Sk(e,t,n,r,i,a,o,s,c,l){var u=vD(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,jge)):f().map(Age)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(qD(n,e)):u},u.copy=function(){return gD(u,Sk(e,t,n,r,i,a,o,s,c,l))},u}function Mge(){return oE.apply(Sk(Dhe,Ohe,YO,qO,BO,IO,PO,MO,jO,bk).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Nge(){return oE.apply(Sk(The,Ehe,XO,JO,WO,LO,FO,NO,jO,xk).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ck(){var e=0,t=1,n,r,i,a,o=dD,s=!1,c;function l(e){return e==null||isNaN(e=+e)?c:o(i===0?.5:(e=(a(e)-n)*i,s?Math.max(0,Math.min(1,e)):e))}l.domain=function(o){return arguments.length?([e,t]=o,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o};function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,o=e(n,r),l):[o(0),o(1)]}}return l.range=u(aD),l.rangeRound=u(oD),l.unknown=function(e){return arguments.length?(c=e,l):c},function(o){return a=o,n=o(e),r=o(t),i=n===r?0:1/(r-n),l}}function wk(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Tk(){var e=WD(Ck()(dD));return e.copy=function(){return wk(e,Tk())},sE.apply(e,arguments)}function Ek(){var e=nO(Ck()).domain([1,10]);return e.copy=function(){return wk(e,Ek()).base(e.base())},sE.apply(e,arguments)}function Dk(){var e=oO(Ck());return e.copy=function(){return wk(e,Dk()).constant(e.constant())},sE.apply(e,arguments)}function Ok(){var e=dO(Ck());return e.copy=function(){return wk(e,Ok()).exponent(e.exponent())},sE.apply(e,arguments)}function Pge(){return Ok.apply(null,arguments).exponent(.5)}function kk(){var e=[],t=dD;function n(n){if(n!=null&&!isNaN(n=+n))return t((JT(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(WT),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>ihe(e,r/t))},n.copy=function(){return kk(t).domain(e)},sE.apply(n,arguments)}function Ak(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=dD,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*e<r*a?s:c),l(d?Math.max(0,Math.min(1,e)):e))}p.domain=function(l){return arguments.length?([e,t,n]=l,i=u(e=+e),a=u(t=+t),o=u(n=+n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(l=e,p):l};function m(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,l=sD(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(aD),p.rangeRound=m(oD),p.unknown=function(e){return arguments.length?(f=e,p):f},function(l){return u=l,i=l(e),a=l(t),o=l(n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function jk(){var e=WD(Ak()(dD));return e.copy=function(){return wk(e,jk())},sE.apply(e,arguments)}function Mk(){var e=nO(Ak()).domain([.1,1,10]);return e.copy=function(){return wk(e,Mk()).base(e.base())},sE.apply(e,arguments)}function Nk(){var e=oO(Ak());return e.copy=function(){return wk(e,Nk()).constant(e.constant())},sE.apply(e,arguments)}function Pk(){var e=dO(Ak());return e.copy=function(){return wk(e,Pk()).exponent(e.exponent())},sE.apply(e,arguments)}function Fge(){return Pk.apply(null,arguments).exponent(.5)}var Fk=d({scaleBand:()=>uE,scaleDiverging:()=>jk,scaleDivergingLog:()=>Mk,scaleDivergingPow:()=>Pk,scaleDivergingSqrt:()=>Fge,scaleDivergingSymlog:()=>Nk,scaleIdentity:()=>KD,scaleImplicit:()=>cE,scaleLinear:()=>GD,scaleLog:()=>rO,scaleOrdinal:()=>lE,scalePoint:()=>she,scalePow:()=>fO,scaleQuantile:()=>_O,scaleQuantize:()=>vO,scaleRadial:()=>gO,scaleSequential:()=>Tk,scaleSequentialLog:()=>Ek,scaleSequentialPow:()=>Ok,scaleSequentialQuantile:()=>kk,scaleSequentialSqrt:()=>Pge,scaleSequentialSymlog:()=>Dk,scaleSqrt:()=>pO,scaleSymlog:()=>sO,scaleThreshold:()=>yO,scaleTime:()=>Mge,scaleUtc:()=>Nge,tickFormat:()=>UD});function Ige(e){var t=Fk;if(e in t&&typeof t[e]==`function`)return t[e]();var n=`scale${Sy(e)}`;if(n in t&&typeof t[n]==`function`)return t[n]()}function Ik(e,t,n){if(typeof e==`function`)return e.copy().domain(t).range(n);if(e!=null){var r=Ige(e);if(r!=null)return r.domain(t).range(n),r}}function Lk(e,t,n,r){if(n!=null&&r!=null)return typeof e.scale==`function`?Ik(e.scale,n,r):Ik(t,n,r)}function Lge(e){return`scale${Sy(e)}`}function Rge(e){return Lge(e)in Fk}var Rk=(e,t,n)=>{if(e!=null){var r=e.scale,i=e.type;if(r===`auto`)return i===`category`&&n&&(n.indexOf(`LineChart`)>=0||n.indexOf(`AreaChart`)>=0||n.indexOf(`ComposedChart`)>=0&&!t)?`point`:i===`category`?`band`:`linear`;if(typeof r==`string`)return Rge(r)?r:`point`}};function zge(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var a=Math.floor((n+r)/2);(i?e[a]<t:e[a]>t)?n=a+1:r=a}return n}function zk(e,t){if(e){var n=t??e.domain(),r=n.map(t=>e(t)??0),i=e.range();if(!(n.length===0||i.length<2))return e=>{var t=zge(r,e);if(t<=0)return n[0];if(t>=n.length)return n[n.length-1];var i=r[t-1]??0,a=r[t]??0;return Math.abs(e-i)<=Math.abs(e-a)?n[t-1]:n[t]}}}function Bge(e){if(e!=null)return`invert`in e&&typeof e.invert==`function`?e.invert.bind(e):zk(e,void 0)}function Bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bk(Object(n),!0).forEach(function(t){Vge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vge(e,t,n){return(t=Hge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hge(e){var t=Uge(e,`string`);return typeof t==`symbol`?t:t+``}function Uge(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hk(e,t){return qge(e)||Kge(e,t)||Gge(e,t)||Wge()}function Wge(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
50
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gge(e,t){if(e){if(typeof e==`string`)return Uk(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uk(e,t):void 0}}function Uk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Kge(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function qge(e){if(Array.isArray(e))return e}var Wk=[0,`auto`],Jge={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`bottom`,padding:{left:0,right:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`category`,unit:void 0,niceTicks:`auto`},Yge=(e,t)=>e.cartesianAxis.xAxis[t],Gk=(e,t)=>Yge(e,t)??Jge,Xge={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Wk,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`left`,padding:{top:0,bottom:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`number`,unit:void 0,niceTicks:`auto`,width:60},Zge=(e,t)=>e.cartesianAxis.yAxis[t],Kk=(e,t)=>Zge(e,t)??Xge,Qge={domain:[0,`auto`],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:``,range:[64,64],scale:`auto`,type:`number`,unit:``},qk=(e,t)=>e.cartesianAxis.zAxis[t]??Qge,Jk=(e,t,n)=>{switch(t){case`xAxis`:return Gk(e,n);case`yAxis`:return Kk(e,n);case`zAxis`:return qk(e,n);case`angleAxis`:return ET(e,n);case`radiusAxis`:return DT(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},$ge=(e,t,n)=>{switch(t){case`xAxis`:return Gk(e,n);case`yAxis`:return Kk(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},Yk=(e,t,n)=>{switch(t){case`xAxis`:return Gk(e,n);case`yAxis`:return Kk(e,n);case`angleAxis`:return ET(e,n);case`radiusAxis`:return DT(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},Xk=e=>e.graphicalItems.cartesianItems.some(e=>e.type===`bar`)||e.graphicalItems.polarItems.some(e=>e.type===`radialBar`);function Zk(e,t){return n=>{switch(e){case`xAxis`:return`xAxisId`in n&&n.xAxisId===t;case`yAxis`:return`yAxisId`in n&&n.yAxisId===t;case`zAxis`:return`zAxisId`in n&&n.zAxisId===t;case`angleAxis`:return`angleAxisId`in n&&n.angleAxisId===t;case`radiusAxis`:return`radiusAxisId`in n&&n.radiusAxisId===t;default:return!1}}}var e_e=e=>e.graphicalItems.cartesianItems,t_e=Q([PT,FT],Zk),Qk=(e,t,n)=>e.filter(n).filter(e=>t?.includeHidden===!0||!e.hide),$k=Q([e_e,Jk,t_e],Qk,{memoizeOptions:{resultEqualityCheck:BT}}),eA=Q([$k],e=>e.filter(e=>e.type===`area`||e.type===`bar`).filter(RT)),tA=e=>e.filter(e=>!(`stackId`in e)||e.stackId===void 0),n_e=Q([$k],tA),nA=e=>e.map(e=>e.data).filter(Boolean).flat(1),r_e=Q([$k],e=>e.some(e=>!e.data)),rA=Q([$k],nA,{memoizeOptions:{resultEqualityCheck:BT}}),iA=(e,t)=>{var n=t.chartData,r=n===void 0?[]:n,i=t.dataStartIndex,a=t.dataEndIndex;return e.length>0?e:r.slice(i,a+1)},aA=Q([rA,Zw],iA),i_e=(e,t,n)=>t?.dataKey==null?n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:YS(e,t)}))):e.map(e=>({value:e})):e.map(e=>({value:YS(e,t.dataKey)})),oA=(e,t,n,r,i,a)=>{var o=r.chartData,s=o===void 0?[]:o,c=r.dataStartIndex,l=r.dataEndIndex,u=i_e(e,t,n);return i&&t?.dataKey!=null&&a.length>0?[...s.slice(c,l+1).map(e=>({value:YS(e,t.dataKey)})).filter(e=>e.value!=null),...u]:u},sA=Q([aA,Jk,$k,Zw,r_e,rA],oA);function cA(e){if(gy(e)||e instanceof Date){var t=Number(e);if(KS(t))return t}}function lA(e){if(Array.isArray(e)){var t=[cA(e[0]),cA(e[1])];return eT(t)?t:void 0}var n=cA(e);if(n!=null)return[n,n]}function uA(e){return e.map(cA).filter(Cy)}function a_e(e,t){var n=cA(e),r=cA(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var o_e=Q([sA],e=>e?.map(e=>e.value).sort(a_e));function dA(e,t){switch(e){case`xAxis`:return t.direction===`x`;case`yAxis`:return t.direction===`y`;default:return!1}}function s_e(e,t,n){if(!n||!n.length)return[];var r;if(typeof t==`number`&&!py(t))r=t;else if(Array.isArray(t)){var i=uA(t);i.length>0&&(r=Math.max(...i))}return r==null?[]:uA(n.flatMap(t=>{var n=YS(e,t.dataKey),i,a;if(Array.isArray(n)){var o=Hk(n,2);i=o[0],a=o[1]}else i=a=n;if(!(!KS(i)||!KS(a)))return[r-i,r+a]}))}var fA=e=>Yk(e,VT(e),HT(e)),pA=Q([fA],e=>e?.dataKey),c_e=Q([eA,Zw,fA],LT),mA=(e,t,n,r)=>{var i=t.reduce((e,t)=>{if(t.stackId==null)return e;var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},{});return Object.fromEntries(Object.entries(i).map(t=>{var i=Hk(t,2),a=i[0],o=i[1],s=r?[...o].reverse():o;return[a,{stackedData:tfe(e,s.map(IT),n),graphicalItems:s}]}))},l_e=Q([c_e,eA,mT,hT],mA),hA=(e,t,n,r)=>{var i=t.dataStartIndex,a=t.dataEndIndex;if(r==null&&n!==`zAxis`)return ife(e,i,a)},u_e=Q([Jk],e=>e.allowDataOverflow),gA=e=>{if(e==null||!(`domain`in e))return Wk;if(e.domain!=null)return e.domain;if(`ticks`in e&&e.ticks!=null){if(e.type===`number`){var t=uA(e.ticks);return[Math.min(...t),Math.max(...t)]}if(e.type===`category`)return e.ticks.map(String)}return e?.domain??Wk},_A=Q([Jk],gA),vA=Q([_A,u_e],nT),d_e=Q([l_e,Yw,PT,vA],hA,{memoizeOptions:{resultEqualityCheck:zT}}),yA=e=>e.errorBars,f_e=(e,t,n)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>dA(n,e)),bA=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);if(r.length!==0){var i=r.flat();return[Math.min(...i),Math.max(...i)]}},xA=function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],o,s;if(n.length>0&&n.forEach(e=>{var n=e.data==null?a:[...e.data],c=r[e.id]?.filter(e=>dA(i,e));n.forEach(n=>{var r=YS(n,t.dataKey??e.dataKey),i=s_e(n,r,c);if(i.length>=2){var a=Math.min(...i),l=Math.max(...i);(o==null||a<o)&&(o=a),(s==null||l>s)&&(s=l)}var u=lA(r);u!=null&&(o=o==null?u[0]:Math.min(o,u[0]),s=s==null?u[1]:Math.max(s,u[1]))})}),t?.dataKey!=null&&n.length===0&&e.forEach(e=>{var n=lA(YS(e,t.dataKey));n!=null&&(o=o==null?n[0]:Math.min(o,n[0]),s=s==null?n[1]:Math.max(s,n[1]))}),KS(o)&&KS(s))return[o,s]},p_e=Q([aA,Jk,n_e,yA,PT,Dme],xA,{memoizeOptions:{resultEqualityCheck:zT}});function m_e(e){var t=e.value;if(gy(t)||t instanceof Date)return t}var h_e=(e,t,n)=>{var r=e.map(m_e).filter(e=>e!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&yy(r))?Jw(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},SA=e=>e.referenceElements.dots,CA=(e,t,n)=>e.filter(e=>e.ifOverflow===`extendDomain`).filter(e=>t===`xAxis`?e.xAxisId===n:e.yAxisId===n),g_e=Q([SA,PT,FT],CA),wA=e=>e.referenceElements.areas,__e=Q([wA,PT,FT],CA),TA=e=>e.referenceElements.lines,v_e=Q([TA,PT,FT],CA),EA=(e,t)=>{if(e!=null){var n=uA(e.map(e=>t===`xAxis`?e.x:e.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},y_e=Q(g_e,PT,EA),DA=(e,t)=>{if(e!=null){var n=uA(e.flatMap(e=>[t===`xAxis`?e.x1:e.y1,t===`xAxis`?e.x2:e.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},b_e=Q([__e,PT],DA);function x_e(e){if(e.x!=null)return uA([e.x]);var t=e.segment?.map(e=>e.x);return t==null||t.length===0?[]:uA(t)}function S_e(e){if(e.y!=null)return uA([e.y]);var t=e.segment?.map(e=>e.y);return t==null||t.length===0?[]:uA(t)}var OA=(e,t)=>{if(e!=null){var n=e.flatMap(e=>t===`xAxis`?x_e(e):S_e(e));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},C_e=Q(y_e,Q([v_e,PT],OA),b_e,(e,t,n)=>bA(e,n,t)),kA=(e,t,n,r,i,a,o,s,c)=>{if(n!=null)return n;var l=o===`vertical`&&s===`xAxis`||o===`horizontal`&&s===`yAxis`?bA(r,a,i):bA(a,i),u=Nme(t,l,e.allowDataOverflow);return u==null&&e.allowDataOverflow&&l==null&&c!=null?c:u},w_e=Q([Jk,_A,vA,d_e,p_e,C_e,SC,PT,Q([Jk],e=>{if(!(e==null||e.type!==`number`||!(`ticks`in e)||e.ticks==null)){var t=uA(e.ticks);if(t.length!==0)return[Math.min(...t),Math.max(...t)]}},{memoizeOptions:{resultEqualityCheck:zT}})],kA,{memoizeOptions:{resultEqualityCheck:zT}}),T_e=[0,1],AA=(e,t,n,r,i,a,o)=>{if(e!=null&&n!=null&&n.length!==0||o!==void 0){var s=e.dataKey,c=e.type,l=XS(t,a);return l&&s==null?Jw(0,n?.length??0):c===`category`?h_e(r,e,l):i===`expand`&&!l?T_e:o}},jA=Q([Jk,SC,aA,sA,mT,PT,w_e],AA),MA=Q([Jk,Xk,gT],Rk),NA=(e,t,n)=>{var r=t.niceTicks;if(r!==`none`){var i=gA(t),a=Array.isArray(i)&&(i[0]===`auto`||i[1]===`auto`);if((r===`snap125`||r===`adaptive`)&&t!=null&&t.tickCount&&eT(e)){if(a)return fT(e,t.tickCount,t.allowDecimals,r);if(t.type===`number`)return pT(e,t.tickCount,t.allowDecimals,r)}if(r===`auto`&&n===`linear`&&t!=null&&t.tickCount){if(a&&eT(e))return fT(e,t.tickCount,t.allowDecimals,`adaptive`);if(t.type===`number`&&eT(e))return pT(e,t.tickCount,t.allowDecimals,`adaptive`)}}},PA=Q([jA,Yk,MA],NA),FA=(e,t,n,r)=>{if(r!==`angleAxis`&&e?.type===`number`&&eT(t)&&Array.isArray(n)&&n.length>0){var i=t[0],a=n[0]??0,o=t[1],s=n[n.length-1]??0;return[Math.min(i,a),Math.max(o,s)]}return t},E_e=Q([Jk,jA,PA,PT],FA),IA=Q(Q(sA,Jk,(e,t)=>{if(!(!t||t.type!==`number`)){var n=1/0,r=Array.from(uA(e.map(e=>e.value))).sort((e,t)=>e-t),i=r[0],a=r[r.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var s=0;s<r.length-1;s++){var c=r[s],l=r[s+1];if(c!=null&&l!=null){var u=l-c;n=Math.min(n,u)}}return n/o}}),SC,zme,uC,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!KS(e))return 0;var a=t===`vertical`?r.height:r.width;if(i===`gap`)return e*a/2;if(i===`no-gap`){var o=vy(n,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),D_e=(e,t,n)=>{var r=Gk(e,t);return r==null||typeof r.padding!=`string`?0:IA(e,`xAxis`,t,n,r.padding)},O_e=(e,t,n)=>{var r=Kk(e,t);return r==null||typeof r.padding!=`string`?0:IA(e,`yAxis`,t,n,r.padding)},k_e=Q(Gk,D_e,(e,t)=>{if(e==null)return{left:0,right:0};var n=e.padding;return typeof n==`string`?{left:t,right:t}:{left:(n.left??0)+t,right:(n.right??0)+t}}),A_e=Q(Kk,O_e,(e,t)=>{if(e==null)return{top:0,bottom:0};var n=e.padding;return typeof n==`string`?{top:t,bottom:t}:{top:(n.top??0)+t,bottom:(n.bottom??0)+t}}),j_e=Q([uC,k_e,hC,mC,(e,t,n)=>n],(e,t,n,r,i)=>{var a=r.padding;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),M_e=Q([uC,SC,A_e,hC,mC,(e,t,n)=>n],(e,t,n,r,i,a)=>{var o=i.padding;return a?[r.height-o.bottom,o.top]:t===`horizontal`?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),LA=(e,t,n,r)=>{switch(t){case`xAxis`:return j_e(e,n,r);case`yAxis`:return M_e(e,n,r);case`zAxis`:return qk(e,n)?.range;case`angleAxis`:return MT(e);case`radiusAxis`:return NT(e,n);default:return}},RA=Q([Jk,LA],bT),zA=Q([Jk,MA,Q([MA,E_e],qme),RA],Lk),BA=(e,t,n,r)=>{if(n!=null&&n.dataKey!=null){var i=n.type,a=n.scale;if(XS(e,r)&&(i===`number`||a!==`auto`))return t.map(e=>e.value)}},VA=Q([SC,sA,Yk,PT],BA),HA=Q([zA],UT);Q([zA],Bge),Q([zA,o_e],zk),Q([$k,yA,PT],f_e);function UA(e,t){return e.id<t.id?-1:+(e.id>t.id)}var WA=(e,t)=>t,GA=(e,t,n)=>n,N_e=Q(rC,WA,GA,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(UA)),P_e=Q(iC,WA,GA,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(UA)),KA=(e,t)=>{var n=typeof t.height==`number`?t.height:30;return{width:e.width,height:n}},F_e=(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height});Q(uC,Gk,KA);var I_e=(e,t,n)=>{switch(t){case`top`:return e.top;case`bottom`:return n-e.bottom;default:return 0}},L_e=(e,t,n)=>{switch(t){case`left`:return e.left;case`right`:return n-e.right;default:return 0}},R_e=Q(tC,uC,N_e,WA,GA,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=KA(t,n);o??=I_e(t,r,e);var c=r===`top`&&!i||r===`bottom`&&i;a[n.id]=o-Number(c)*s.height,o+=(c?-1:1)*s.height}),a}),z_e=Q(eC,uC,P_e,WA,GA,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=F_e(t,n);o??=L_e(t,r,e);var c=r===`left`&&!i||r===`right`&&i;a[n.id]=o-Number(c)*s.width,o+=(c?-1:1)*s.width}),a});Q([uC,Gk,(e,t)=>{var n=Gk(e,t);if(n!=null)return R_e(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),Q([uC,Kk,(e,t)=>{var n=Kk(e,t);if(n!=null)return z_e(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),Q(uC,Kk,(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height}));var qA=(e,t,n,r)=>{if(n!=null){var i=n.allowDuplicatedCategory,a=n.type,o=n.dataKey,s=XS(e,r),c=t.map(e=>e.value),l=c.filter(e=>e!=null);if(o&&s&&a===`category`&&i&&yy(l))return c}},JA=Q([SC,sA,Jk,PT],qA);Q([SC,$ge,MA,HA,JA,VA,LA,PA,PT],(e,t,n,r,i,a,o,s,c)=>{if(t!=null){var l=XS(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:a,duplicateDomain:i,isCategorical:l,niceTicks:s,range:o,realScaleType:n,scale:r}}}),Q([SC,Yk,MA,HA,PA,LA,JA,VA,PT],(e,t,n,r,i,a,o,s,c)=>{if(t!=null&&r!=null){var l=XS(e,c),u=t.type,d=t.ticks,f=t.tickCount,p=n===`scaleBand`&&typeof r.bandwidth==`function`?r.bandwidth()/2:2,m=u===`category`&&r.bandwidth?r.bandwidth()/p:0;m=c===`angleAxis`&&a!=null&&a.length>=2?fy(a[0]-a[1])*2*m:m;var h=d||i;return h?h.map((e,t)=>{var n=o?o.indexOf(e):e,i=r.map(n);return KS(i)?{index:t,coordinate:i+m,value:e,offset:m}:null}).filter(Cy):l&&s?s.map((e,t)=>{var n=r.map(e);return KS(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(Cy):r.ticks?r.ticks(f).map((e,t)=>{var n=r.map(e);return KS(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(Cy):r.domain().map((e,t)=>{var n=r.map(e);return KS(n)?{coordinate:n+m,value:o?o[e]:e,index:t,offset:m}:null}).filter(Cy)}}),Q([SC,Yk,HA,LA,JA,VA,PT],(e,t,n,r,i,a,o)=>{if(t!=null&&n!=null&&r!=null&&r[0]!==r[1]){var s=XS(e,o),c=t.tickCount,l=0;return l=o===`angleAxis`&&r?.length>=2?fy(r[0]-r[1])*2*l:l,s&&a?a.map((e,t)=>{var r=n.map(e);return KS(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(Cy):n.ticks?n.ticks(c).map((e,t)=>{var r=n.map(e);return KS(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(Cy):n.domain().map((e,t)=>{var r=n.map(e);return KS(r)?{coordinate:r+l,value:i?i[e]:e,index:t,offset:l}:null}).filter(Cy)}}),Q(Jk,HA,(e,t)=>{if(e!=null&&t!=null)return Vk(Vk({},e),{},{scale:t})}),Q((e,t,n)=>qk(e,n),Q([Q([Jk,MA,jA,RA],Lk)],UT),(e,t)=>{if(e!=null&&t!=null)return Vk(Vk({},e),{},{scale:t})}),Q([SC,rC,iC],(e,t,n)=>{switch(e){case`horizontal`:return t.some(e=>e.reversed)?`right-to-left`:`left-to-right`;case`vertical`:return n.some(e=>e.reversed)?`bottom-to-top`:`top-to-bottom`;case`centric`:case`radial`:return`left-to-right`;default:return}}),Q([(e,t,n)=>e.renderedTicks[t]?.[n]],e=>{if(!(!e||e.length===0))return t=>{var n=1/0,r=e[0];for(var i of e){var a=Math.abs(i.coordinate-t);a<n&&(n=a,r=i)}return r?.value}});var YA=e=>e.options.defaultTooltipEventType,XA=e=>e.options.validateTooltipEventTypes;function ZA(e,t,n){if(e==null)return t;var r=e?`axis`:`item`;return n==null?t:n.includes(r)?r:t}function B_e(e,t){return ZA(t,YA(e),XA(e))}function V_e(e){return $b(t=>B_e(t,e))}var QA=(e,t)=>{var n,r=Number(t);if(!(py(r)||t==null))return r>=0?e==null||(n=e[r])==null?void 0:n.value:void 0},H_e=e=>e.tooltip.settings,$A={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},ej=LS({name:`tooltip`,initialState:{itemInteraction:{click:$A,hover:$A},axisInteraction:{click:$A,hover:$A},keyboardInteraction:$A,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:`hover`,axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(jS(t.payload))},prepare:FS()},replaceTooltipEntrySettings:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=OS(e).tooltipItemPayloads.indexOf(jS(r));a>-1&&(e.tooltipItemPayloads[a]=jS(i))},prepare:FS()},removeTooltipEntrySettings:{reducer(e,t){var n=OS(e).tooltipItemPayloads.indexOf(jS(t.payload));n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:FS()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),tj=ej.actions;tj.addTooltipEntrySettings,tj.replaceTooltipEntrySettings,tj.removeTooltipEntrySettings;var U_e=tj.setTooltipSettingsState;tj.setActiveMouseOverItemIndex,tj.mouseLeaveItem,tj.mouseLeaveChart,tj.setActiveClickItemIndex,tj.setMouseOverAxisIndex,tj.setMouseClickAxisIndex;var W_e=tj.setSyncInteraction;tj.setKeyboardInteraction,ej.reducer;function nj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nj(Object(n),!0).forEach(function(t){G_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G_e(e,t,n){return(t=K_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K_e(e){var t=q_e(e,`string`);return typeof t==`symbol`?t:t+``}function q_e(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function J_e(e,t,n){return t===`axis`?n===`click`?e.axisInteraction.click:e.axisInteraction.hover:n===`click`?e.itemInteraction.click:e.itemInteraction.hover}function Y_e(e){return e.index!=null}var ij=(e,t,n,r)=>{if(t==null)return $A;var i=J_e(e,t,n);if(i==null)return $A;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(Y_e(i)){if(a)return rj(rj({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return rj(rj({},$A),{},{coordinate:i.coordinate})};function X_e(e){if(typeof e==`number`)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function Z_e(e,t){var n=X_e(e),r=t[0],i=t[1];return n!==void 0&&n>=Math.min(r,i)&&n<=Math.max(r,i)}function Q_e(e,t,n){if(n==null||t==null)return!0;var r=YS(e,t);return r==null||!eT(n)||Z_e(r,n)}var aj=(e,t,n,r)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!KS(a))return i;var o=0,s=1/0;t.length>0&&(s=t.length-1);var c=Math.max(o,Math.min(a,s)),l=t[c];return l==null||Q_e(l,n,r)?String(c):null},oj=(e,t,n,r,i,a,o)=>{if(a!=null){var s=o[0]?.getPosition(a);if(s!=null)return s;var c=i?.[Number(a)];if(c)switch(n){case`horizontal`:return{x:c.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:c.coordinate}}}},sj=(e,t,n,r)=>{if(t===`axis`)return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i=n===`hover`?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId;if(e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&(r!=null||e.keyboardInteraction.active)){var a=e.tooltipItemPayloads[0];return a==null?[]:[a]}return e.tooltipItemPayloads.filter(e=>e.settings?.graphicalItemId===i)},cj=e=>e.options.tooltipPayloadSearcher,lj=e=>e.tooltip;function uj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uj(Object(n),!0).forEach(function(t){$_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $_e(e,t,n){return(t=eve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eve(e){var t=tve(e,`string`);return typeof t==`symbol`?t:t+``}function tve(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nve(e){if(typeof e==`string`||typeof e==`number`)return e}function rve(e){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`)return e}function ive(e){if(typeof e==`string`||typeof e==`number`)return e;if(typeof e==`function`)return t=>e(t)}function fj(e){if(typeof e==`string`)return e}function ave(e){if(!(typeof e!=`object`||!e))return{name:`name`in e?nve(e.name):void 0,unit:`unit`in e?rve(e.unit):void 0,dataKey:`dataKey`in e?ive(e.dataKey):void 0,payload:`payload`in e?e.payload:void 0,color:`color`in e?fj(e.color):void 0,fill:`fill`in e?fj(e.fill):void 0}}function ove(e,t){return e??t}var pj=(e,t,n,r,i,a,o)=>{if(t!=null&&a!=null){var s=n.chartData,c=n.computedData,l=n.dataStartIndex,u=n.dataEndIndex;return e.reduce((e,n)=>{var d=n.dataDefinedOnItem,f=n.settings,p=ove(d,s),m=Array.isArray(p)?GS(p,l,u):p,h=f?.dataKey??r,g=f?.nameKey,_;return r&&Array.isArray(m)&&!Array.isArray(m[0])&&o===`axis`?(_=Qce(m,r,i),_??=a(m,t,c,g)):_=a(m,t,c,g),Array.isArray(_)?_.forEach(t=>{var n=ave(t),r=n?.name,i=n?.dataKey,a=n?.payload,o=dj(dj({},f),{},{name:r,unit:n?.unit,color:n?.color??f?.color,fill:n?.fill??f?.fill});e.push($S({tooltipEntrySettings:o,dataKey:i,payload:a,value:YS(a,i),name:r==null?void 0:String(r)}))}):e.push($S({tooltipEntrySettings:f,dataKey:h,payload:_,value:YS(_,h),name:YS(_,g)??f?.name})),e},[])}},mj=Q([fA,Xk,gT],Rk),hj=Q([Q([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),fA,Q([VT,HT],Zk)],Qk,{memoizeOptions:{resultEqualityCheck:BT}}),sve=Q([hj],e=>e.filter(RT)),gj=Q([hj],nA,{memoizeOptions:{resultEqualityCheck:BT}}),cve=Q([hj],e=>e.some(e=>!e.data)),_j=Q([gj,Yw],iA),lve=Q([sve,Yw,fA],LT),vj=Q([_j,fA,hj,Yw,cve,gj],oA),yj=Q([fA],gA),bj=Q([yj,Q([fA],e=>e.allowDataOverflow)],nT),uve=Q([Q([lve,Q([hj],e=>e.filter(RT)),mT,hT],mA),Yw,VT,bj],hA),dve=Q([_j,fA,Q([hj],tA),yA,VT,Ome],xA,{memoizeOptions:{resultEqualityCheck:zT}}),fve=Q([Q([SA,VT,HT],CA),VT],EA),pve=Q([Q([wA,VT,HT],CA),VT],DA),xj=Q([fA,SC,_j,vj,mT,VT,Q([fA,yj,bj,uve,dve,Q([fve,Q([Q([TA,VT,HT],CA),VT],OA),pve],bA),SC,VT],kA)],AA),mve=Q([fA,xj,Q([xj,fA,mj],NA),VT],FA),Sj=e=>LA(e,VT(e),HT(e),!1),Cj=Q([Q([fA,mj,mve,Q([fA,Sj],bT)],Lk)],UT),wj=Q([SC,fA,mj,Cj,Sj,Q([SC,vj,fA,VT],qA),Q([SC,vj,fA,VT],BA),VT],(e,t,n,r,i,a,o,s)=>{if(t){var c=t.type,l=XS(e,s);if(r){var u=n===`scaleBand`&&r.bandwidth?r.bandwidth()/2:2,d=c===`category`&&r.bandwidth?r.bandwidth()/u:0;return d=s===`angleAxis`&&i!=null&&i?.length>=2?fy(i[0]-i[1])*2*d:d,l&&o?o.map((e,t)=>{var n=r.map(e);return KS(n)?{coordinate:n+d,value:e,index:t,offset:d}:null}).filter(Cy):r.domain().map((e,t)=>{var n=r.map(e);return KS(n)?{coordinate:n+d,value:a?a[e]:e,index:t,offset:d}:null}).filter(Cy)}}}),Tj=Q([YA,XA,H_e],(e,t,n)=>ZA(n.shared,e,t)),Ej=e=>e.tooltip.settings.trigger,Dj=e=>e.tooltip.settings.defaultIndex,Oj=Q([lj,Tj,Ej,Dj],ij),kj=Q([Oj,_j,pA,xj],aj),hve=Q([wj,kj],QA);Q([Oj],e=>{if(e)return e.dataKey});var gve=Q([Oj],e=>{if(e)return e.graphicalItemId}),Aj=Q([lj,Tj,Ej,Dj],sj);Q([Oj,Q([eC,tC,SC,uC,wj,Dj,Aj],oj)],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Q([Oj],e=>e?.active??!1),Q([Q([Aj,kj,Yw,pA,hve,cj,Tj],pj)],e=>{if(e!=null){var t=e.map(e=>e.payload).filter(e=>e!=null);return Array.from(new Set(t))}});function jj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jj(Object(n),!0).forEach(function(t){_ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _ve(e,t,n){return(t=vve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vve(e){var t=yve(e,`string`);return typeof t==`symbol`?t:t+``}function yve(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var bve=()=>$b(fA),xve=()=>{var e=bve(),t=$b(wj),n=$b(Cj);return afe(!e||!n?void 0:Mj(Mj({},e),{},{scale:n}),t)},Sve=()=>$b(gT),Nj=(e,t)=>t,Pj=(e,t,n)=>n,Fj=(e,t,n,r)=>r;Q(wj,e=>px(e,e=>e.coordinate));var Ij=Q([lj,Nj,Pj,Fj],ij),Lj=Q([Ij,_j,pA,xj],aj),Cve=(e,t,n)=>{if(t!=null){var r=lj(e);return t===`axis`?n===`hover`?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n===`hover`?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},Rj=Q([lj,Nj,Pj,Fj],sj),wve=Q([Ij,Q([eC,tC,SC,uC,wj,Fj,Rj],oj)],(e,t)=>e.coordinate??t),zj=Q([wj,Lj],QA),Tve=Q([Rj,Lj,Yw,pA,zj,cj,Nj],pj),Eve=Q([Ij,Lj],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),Dve=Q(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}});Q(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(_T));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:Kme}});function Bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bj(Object(n),!0).forEach(function(t){Ove(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ove(e,t,n){return(t=kve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kve(e){var t=Ave(e,`string`);return typeof t==`symbol`?t:t+``}function Ave(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var jve={zIndexMap:Object.values(_T).reduce((e,t)=>Vj(Vj({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},Mve=new Set(Object.values(_T));function Nve(e){return Mve.has(e)}var Hj=LS({name:`zIndex`,initialState:jve,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:FS()},unregisterZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(--e.zIndexMap[n].consumers,e.zIndexMap[n].consumers<=0&&!Nve(n)&&delete e.zIndexMap[n])},prepare:FS()},registerZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload,r=n.zIndex,i=n.element,a=n.isPanorama;e.zIndexMap[r]?a?e.zIndexMap[r].panoramaElement=jS(i):e.zIndexMap[r].element=jS(i):e.zIndexMap[r]={consumers:0,element:a?void 0:jS(i),panoramaElement:a?jS(i):void 0}},prepare:FS()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:FS()}}}),Uj=Hj.actions,Pve=Uj.registerZIndexPortal,Wj=Uj.unregisterZIndexPortal;Uj.registerZIndexPortalElement,Uj.unregisterZIndexPortalElement,Hj.reducer;function Fve(e){var n=e.zIndex,i=e.children,a=TC()&&n!==void 0&&n!==0,o=pC(),s=(0,t.useRef)(void 0),c=(0,t.useRef)(new Set),l=Zb(),u=$b(e=>Dve(e,n,o));if((0,t.useLayoutEffect)(()=>{if(!a){var e=c.current;e.forEach(e=>{l(Wj({zIndex:e}))}),e.clear(),s.current=void 0;return}if(c.current.has(n)||(l(Pve({zIndex:n})),c.current.add(n)),u){s.current=u;var t=c.current;t.forEach(e=>{e!==n&&(l(Wj({zIndex:e})),t.delete(e))})}},[l,n,a,u]),(0,t.useLayoutEffect)(()=>{var e=c.current;return()=>{e.forEach(e=>{l(Wj({zIndex:e}))}),e.clear()}},[l]),!a)return i;var d=u??s.current;return d?(0,r.createPortal)(i,d):null}function Gj(){return Gj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gj.apply(null,arguments)}function Kj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kj(Object(n),!0).forEach(function(t){Ive(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ive(e,t,n){return(t=Lve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lve(e){var t=Rve(e,`string`);return typeof t==`symbol`?t:t+``}function Rve(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function zve(e){var n=e.cursor,r=e.cursorComp,i=e.cursorProps;return(0,t.isValidElement)(n)?(0,t.cloneElement)(n,i):(0,t.createElement)(r,i)}function Bve(e){var n=e.coordinate,r=e.payload,i=e.index,a=e.offset,o=e.tooltipAxisBandSize,s=e.layout,c=e.cursor,l=e.tooltipEventType,u=e.chartName,d=n,f=r,p=i;if(!c||!d||u!==`ScatterChart`&&l!==`axis`)return null;var m,h,g;if(u===`ScatterChart`)m=d,h=ype,g=_T.cursorLine;else if(u===`BarChart`)m=bpe(s,d,a,o),h=fme,g=_T.cursorRectangle;else if(s===`radial`&&Cb(d)){var _=Hw(d),v=_.cx,y=_.cy,b=_.radius;m={cx:v,cy:y,startAngle:_.startAngle,endAngle:_.endAngle,innerRadius:b,outerRadius:b},h=wme,g=_T.cursorLine}else m={points:Tme(s,d,a)},h=upe,g=_T.cursorLine;var x=typeof c==`object`&&`className`in c?c.className:void 0,S=qj(qj(qj(qj({stroke:`#ccc`,pointerEvents:`none`},a),m),Hce(c)),{},{payload:f,payloadIndex:p,className:Hn(`recharts-tooltip-cursor`,x)});return t.createElement(Fve,{zIndex:e.zIndex??g},t.createElement(zve,{cursor:c,cursorComp:h,cursorProps:S}))}function Vve(e){var n=xve(),r=vC(),i=CC(),a=Sve();return n==null||r==null||i==null||a==null?null:t.createElement(Bve,Gj({},e,{offset:r,layout:i,tooltipAxisBandSize:n,chartName:a}))}var Hve=(0,t.createContext)(null),Uve=()=>(0,t.useContext)(Hve),Wve=p(u(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)}))(),1).default,Gve=new Wve,Kve=`recharts.syncEvent.tooltip`;function qve(e){return e.tooltip.syncInteraction}function Jve(e,n,r,i,a,o){var s=$b(t=>Cve(t,e,n)),c=$b(gve),l=$b(Hme),u=$b(Bme),d=$b(Vme),f=$b(qve)?.sourceViewBox!=null,p=gC();(0,t.useEffect)(()=>{if(!f&&u!=null&&l!=null){var e=W_e({active:o,coordinate:r,dataKey:s,index:a,label:typeof i==`number`?String(i):i,sourceViewBox:p,graphicalItemId:c});Gve.emit(Kve,u,e,l)}},[f,r,s,c,a,i,l,u,d,o,p])}function Jj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Jj(Object(n),!0).forEach(function(t){Yve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yve(e,t,n){return(t=Xve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xve(e){var t=Zve(e,`string`);return typeof t==`symbol`?t:t+``}function Zve(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Qve(e,t){return nye(e)||tye(e,t)||eye(e,t)||$ve()}function $ve(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
51
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eye(e,t){if(e){if(typeof e==`string`)return Xj(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xj(e,t):void 0}}function Xj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tye(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function nye(e){if(Array.isArray(e))return e}function rye(e){return e.dataKey}function iye(e,n){return t.isValidElement(e)?t.cloneElement(e,n):typeof e==`function`?t.createElement(e,n):t.createElement(Lfe,n)}var Zj=[],aye={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:`ease`,axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:`auto`,itemSorter:`name`,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:` : `,trigger:`hover`,useTranslate3d:!1,wrapperStyle:{}};function oye(e){var n=Tb(e,aye),i=n.active,a=n.allowEscapeViewBox,o=n.animationDuration,s=n.animationEasing,c=n.content,l=n.filterNull,u=n.isAnimationActive,d=n.offset,f=n.payloadUniqBy,p=n.position,m=n.reverseDirection,h=n.useTranslate3d,g=n.wrapperStyle,_=n.cursor,v=n.shared,y=n.trigger,b=n.defaultIndex,x=n.portal,S=n.axisId,C=Zb(),w=typeof b==`number`?String(b):b;(0,t.useEffect)(()=>{C(U_e({shared:v,trigger:y,axisId:S,active:i,defaultIndex:w}))},[C,v,y,S,i,w]);var T=gC(),E=ipe(),D=V_e(v),O=$b(e=>Eve(e,D,y,w))??{},k=O.activeIndex,A=O.isActive,j=$b(e=>Tve(e,D,y,w)),M=$b(e=>zj(e,D,y,w)),N=$b(e=>wve(e,D,y,w)),P=j,F=Uve(),I=i??A??!1,L=Qve(yx([P,I]),2),R=L[0],z=L[1],B=D===`axis`?M:void 0;Jve(D,y,N,B,k,I);var V=x??F;if(V==null||T==null||D==null)return null;var H=P??Zj;I||(H=Zj),l&&H.length&&(H=Yb(H.filter(e=>e.value!=null&&(e.hide!==!0||n.includeHidden)),f,rye));var U=H.length>0,W=Yj(Yj({},n),{},{payload:H,label:B,active:I,activeIndex:k,coordinate:N,accessibilityLayer:E}),G=t.createElement(rpe,{allowEscapeViewBox:a,animationDuration:o,animationEasing:s,isAnimationActive:u,active:I,coordinate:N,hasPayload:U,offset:d,position:p,reverseDirection:m,useTranslate3d:h,viewBox:T,wrapperStyle:g,lastBoundingBox:R,innerRef:z,hasPortalFromProps:!!x},iye(c,W));return t.createElement(t.Fragment,null,(0,r.createPortal)(G,V),I&&t.createElement(Vve,{cursor:_,tooltipEventType:D,coordinate:N,payload:H,index:k}))}var sye=({content:e,...t})=>(0,n.jsx)(oye,{content:e,...t}),Qj=m.default.createContext(null),cye=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Qj.Provider,{value:i,children:(0,n.jsx)(`div`,{className:X(`min-w-[125px] space-y-2xs rounded-lg bg-surface-2 px-xs py-2xs`,e),ref:r,...i,children:t})}),$j=()=>{let e=m.default.useContext(Qj);if(!e)throw Error(`useChartTooltipContent must be used within a ChartTooltipContentProvider`);return e},lye=({className:e,children:t,ref:r,...i})=>{let{label:a}=$j();return(0,n.jsxs)(`p`,{className:X(`style-text-default-0`,e),ref:r,...i,children:[t,a]})},eM=m.default.createContext(null),uye=({className:e,children:t,ref:r,...i})=>{let{payload:a}=$j();return(0,n.jsx)(`div`,{className:X(`flex flex-col gap-3xs`,e),ref:r,...i,children:a?.map((e,r)=>(0,n.jsx)(eM.Provider,{value:e,children:(0,n.jsx)(`div`,{className:`flex items-center justify-between gap-2xs`,children:t})},`payload-${r}`))})},tM=()=>{let e=m.default.useContext(eM);if(!e)throw Error(`useChartTooltipPayload must be used within a ChartTooltipPayloadProvider`);return e},dye=({children:e,...t})=>(0,n.jsx)(YC,{...t,children:e}),nM=({className:e,children:t,ref:r,...i})=>{let{icon:a,color:o}=sM();return(0,n.jsxs)(`div`,{style:{color:o},className:X(`shrink-0 [&>svg]:size-xs`,e),ref:r,...i,children:[t,a&&(0,n.jsx)(a,{})]})},rM=({shape:e=`circle`,className:t,children:r,ref:i,...a})=>{let{color:o}=sM();return(0,n.jsx)(`div`,{style:{backgroundColor:o,...e===`circle`&&{borderRadius:`50%`},...e===`diamond`&&{transform:`rotate(45deg)`},...e===`triangle`&&{clipPath:`polygon(50% 0%, 0% 100%, 100% 100%)`},...e===`wye`&&{clipPath:`polygon(50% 0%, 61.8% 35.4%, 98.5% 35.4%, 69.1% 57.1%, 80.9% 92.5%, 50% 70.7%, 19.1% 92.5%, 30.9% 57.1%, 1.5% 35.4%, 38.2% 35.4%)`},...e===`line`&&{maxHeight:`100%`,width:`3px`,borderRadius:`1.5px`}},className:X(`size-xs`,t),ref:i,...a,children:r})},iM=({className:e,children:t,ref:r,...i})=>{let{label:a}=sM();return(0,n.jsxs)(`p`,{className:X(`style-text-default--1 capitalize`,e),ref:r,...i,children:[t,a]})},aM=(e,t,n)=>{if(!(typeof t!=`object`||!t)){if(n in e)return e[n];if(`name`in t&&typeof t.name==`string`&&t.name in e)return e[t.name]}},oM=m.default.createContext(null),fye=({payload:e,verticalAlign:t=`bottom`,className:r,children:i,ref:a,...o})=>{let{config:s}=Zv();return(0,n.jsx)(`div`,{className:X(`flex items-center justify-center gap-lg`,t===`top`?`mb-md`:`mt-md`,r),ref:a,...o,children:e?.map((e,t)=>{let r=typeof e.dataKey==`string`?e.dataKey:`value`,a=aM(s,e,r);return(0,n.jsx)(oM.Provider,{value:{color:a?.color,icon:a?.icon,label:a?.label},children:(0,n.jsxs)(`div`,{className:`flex items-center gap-2xs`,children:[a?.icon?(0,n.jsx)(nM,{}):(0,n.jsx)(rM,{}),(0,n.jsx)(iM,{}),i]})},`payload-${t}`)})})},sM=()=>{let e=m.default.useContext(oM);if(!e)throw Error(`useChartLegendPayload must be used within a ChartLegendPayloadProvider`);return e},pye=({gradients:e,className:t,children:r,ref:i,...a})=>(0,n.jsxs)(`defs`,{className:X(``,t),ref:i,...a,children:[e.map(e=>(0,n.jsxs)(`linearGradient`,{id:e.id,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,n.jsx)(`stop`,{offset:`5%`,stopColor:e.stopColor,stopOpacity:.8}),(0,n.jsx)(`stop`,{offset:`95%`,stopColor:e.stopColor,stopOpacity:.1})]},e.id)),r]}),mye=({shape:e=`circle`,className:t,children:r,ref:i,...a})=>{let{color:o}=tM();return(0,n.jsx)(`div`,{style:{backgroundColor:o,...e===`circle`&&{borderRadius:`50%`},...e===`diamond`&&{transform:`rotate(45deg)`},...e===`triangle`&&{clipPath:`polygon(50% 0%, 0% 100%, 100% 100%)`},...e===`wye`&&{clipPath:`polygon(50% 0%, 61.8% 35.4%, 98.5% 35.4%, 69.1% 57.1%, 80.9% 92.5%, 50% 70.7%, 19.1% 92.5%, 30.9% 57.1%, 1.5% 35.4%, 38.2% 35.4%)`},...e===`line`&&{maxHeight:`100%`,width:`3px`,borderRadius:`1.5px`}},className:X(`size-xs`,t),ref:i,...a,children:r})},hye=({className:e,children:t,ref:r,...i})=>{let{name:a}=tM();return(0,n.jsxs)(`p`,{className:X(`grow text-left style-text-default--1 text-on-surface-variant capitalize`,e),ref:r,...i,children:[t,a]})},gye=({className:e,children:t,ref:r,...i})=>{let{config:a}=Zv(),o=tM(),s=aM(a,o,typeof o.dataKey==`string`?o.dataKey:`value`)?.icon;return(0,n.jsxs)(`div`,{style:{color:o.color},className:X(`shrink-0 [&>svg]:size-xs`,e),ref:r,...i,children:[t,s&&(0,n.jsx)(s,{})]})},_ye=({className:e,children:t,ref:r,...i})=>{let{value:a}=tM();return(0,n.jsxs)(`p`,{className:X(`mx-auto style-text-default--1`,e),ref:r,...i,children:[t,a]})},cM=({className:e,...t})=>(0,n.jsx)(Jd,{className:X(`flex`,e),...t,render:(e,t)=>t.indeterminate?(0,n.jsx)(hi,{weight:`bold`,...e,className:`text-accent-default`}):(0,n.jsx)(Zr,{weight:`bold`,...e})}),vye=Gn(`group flex size-sm items-center justify-center rounded-sm shadow-2xs outline-2 outline-transparent transition-colors not-indeterminate:text-accent-on-default indeterminate:text-accent-default hover:cursor-pointer hover:outline-accent-border disabled:cursor-not-allowed disabled:hover:cursor-not-allowed data-checked:bg-accent-default [&_svg]:size-xs [&:not([data-checked])]:hover:outline-border-strong`,{variants:{variant:{elevated:`bg-surface shadow-2xs`,inSurface:`bg-surface-low shadow-none inset-shadow-2xs data-checked:inset-shadow-none`}},defaultVariants:{variant:`elevated`}}),lM=({variant:e,className:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:`flex items-center gap-xs`,children:(0,n.jsx)(qd,{className:X(vye({variant:e,className:t})),ref:r,...i,children:(0,n.jsx)(cM,{})})}),yye=({className:e,children:t,ref:r,...i})=>{let a=m.default.useId();return(0,n.jsx)(Xd,{"aria-labelledby":a,className:X(`flex flex-col items-start gap-2xs`,e),ref:r,...i,children:t})},uM=m.default.createContext(void 0),bye=({items:e,defaultValue:t,className:r,children:i,ref:a,...o})=>{let[s,c]=m.default.useState(t);return(0,n.jsx)(uM.Provider,{value:{currentValue:s,setCurrentValue:c,items:e},children:(0,n.jsx)(`div`,{className:X(`flex flex-col rounded-xl border border-border bg-surface`,r),ref:a,...o,children:i})})},dM=()=>{let e=m.default.useContext(uM);if(!e)throw Error(`useCodeBlock must be used within a CodeBlock`);return e},xye=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`absolute top-3xs right-3xs flex items-center gap-3xs`,e),ref:r,...i,children:t}),Sye=({className:e,children:t,ref:r,...i})=>{let{currentValue:a}=dM(),[o,s]=m.default.useState(!1);return(0,n.jsxs)(Wv,{onClick:async()=>{try{await navigator.clipboard.writeText(a.content),s(!0),setTimeout(()=>s(!1),2e3)}catch(e){console.error(`Failed to copy text: `,e)}},size:`iconMedium`,variant:`ghost`,tone:`neutral`,className:X(``,e),ref:r,...i,children:[t,o?(0,n.jsx)(Zr,{weight:`bold`,className:`animate-in zoom-in`}):(0,n.jsx)(ei,{weight:`bold`,className:`animate-in zoom-in`})]})},Cye=({className:e,children:t,ref:r,...i})=>{let{currentValue:a}=dM(),[o,s]=m.default.useState(!1);return(0,n.jsxs)(Wv,{onClick:async()=>{try{let e=new Blob([a.content]),t=URL.createObjectURL(e),n=document.createElement(`a`);n.href=t,n.download=`${a.name}`,n.click(),URL.revokeObjectURL(t),s(!0),setTimeout(()=>s(!1),2e3)}catch(e){console.error(`Failed to download file: `,e)}},size:`iconMedium`,variant:`ghost`,tone:`neutral`,className:X(``,e),ref:r,...i,children:[t,o?(0,n.jsx)(Zr,{weight:`bold`,className:`animate-in zoom-in`}):(0,n.jsx)(ni,{weight:`bold`,className:`animate-in zoom-in`})]})},wye=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex min-h-2xl items-center justify-between border-b border-border p-2xs`,e),ref:r,...i,children:t}),Tye=({className:e,children:t,ref:r,...i})=>{let{currentValue:a}=dM();return(0,n.jsxs)(`div`,{className:X(`flex items-center justify-center gap-2xs px-xs style-text-strong-0 text-on-surface-variant [&>svg]:size-sm`,e),ref:r,...i,children:[t,a?.icon,a.name]})},fM=({children:e,...t})=>(0,n.jsx)($oe,{...t,children:e}),pM=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(c_,{className:X(`group/item grid min-h-lg cursor-default grid-cols-[1fr_0.75rem] items-center gap-xs rounded-lg px-2xs py-3xs transition-colors outline-none select-none group-data-[side=none]:pr-xs hover:cursor-pointer data-highlighted:relative data-highlighted:z-0 data-highlighted:bg-neutral-container-high data-highlighted:text-neutral-on-container data-highlighted:before:absolute data-highlighted:before:inset-x-3xs data-highlighted:before:inset-y-[0px] data-highlighted:before:z-[-1] data-highlighted:before:rounded-sm data-selected:bg-neutral-default data-selected:text-neutral-on-default [&_svg]:size-sm`,e),ref:r,...i,children:[(0,n.jsx)(d_,{className:`flex flex-col`,children:t}),(0,n.jsx)(l_,{className:`place-self-end self-center`,children:(0,n.jsx)(Zr,{weight:`bold`})})]}),mM=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(a_,{className:X(`relative max-h-(--available-height) scroll-py-md space-y-3xs overflow-y-auto`,e),ref:r,...i,children:t}),hM=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Gg,{className:X(`flex text-on-surface-variant [&>svg]:size-sm`,e),ref:r,...i,children:t}),gM=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Kg,{children:(0,n.jsx)(Zg,{className:X(`z-9999 outline-none select-none`,e),ref:r,...i,children:(0,n.jsxs)(Qg,{className:`group min-w-(--anchor-width) origin-(--transform-origin) rounded-xl bg-surface-2 bg-clip-padding p-2xs shadow-md transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0 data-[side=none]:data-ending-style:scale-90 data-[side=none]:data-ending-style:opacity-0 data-[side=none]:data-starting-style:scale-90 data-[side=none]:data-starting-style:opacity-0`,children:[(0,n.jsx)(m_,{className:`top-0 right-0 z-[1px] flex h-md w-full cursor-default items-center justify-center rounded-xl bg-surface-2 before:absolute before:left-0 before:size-full before:content-[''] data-[side=none]:before:-top-full`,children:(0,n.jsx)(Yr,{className:`size-sm`,weight:`fill`})}),t,(0,n.jsx)(p_,{className:`right-0 bottom-0 z-[1px] flex h-md w-full cursor-default items-center justify-center rounded-xl bg-surface-2 before:absolute before:left-0 before:size-full before:content-[''] data-[side=none]:before:-bottom-full`,children:(0,n.jsx)(Wr,{className:`size-sm`,weight:`fill`})})]})})}),Eye=Gn(`flex items-center justify-between outline outline-transparent transition-all hover:cursor-pointer aria-invalid:bg-error-container aria-invalid:text-error-on-container aria-invalid:outline-error-border data-disabled:cursor-not-allowed [&_[data-value]]:min-w-0 [&_[data-value]]:flex-1`,{variants:{variant:{primary:`bg-surface shadow-2xs hover:outline-border-strong`,secondary:`bg-neutral-container hover:outline-border-strong`,ghost:`bg-transparent hover:bg-neutral-container`},size:{small:`h-lg gap-md rounded-lg px-xs style-text-default--1 [&_[data-value]]:gap-3xs [&_svg]:size-xs`,medium:`h-xl gap-lg rounded-xl px-sm style-text-default-0 [&_[data-value]]:gap-2xs [&_svg]:size-sm`,large:`h-2xl gap-xl rounded-2xl px-md style-text-default-1 [&_[data-value]]:gap-xs [&_svg]:size-md`}},defaultVariants:{variant:`primary`,size:`medium`}}),_M=({variant:e,size:t,className:r,children:i,ref:a,...o})=>(0,n.jsx)(Ug,{className:X(Eye({variant:e,size:t,className:r})),ref:a,...o,children:i}),vM=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Wg,{"data-value":!0,className:X(`flex h-lg min-w-0 flex-1 items-center gap-2xs overflow-hidden text-left text-ellipsis whitespace-nowrap data-placeholder:opacity-70`,e),ref:r,...i,children:t}),yM=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(g_,{className:X(`block space-y-3xs border-border-strong not-last:border-b not-last:pb-xs`,e),ref:r,...i,children:t}),Dye=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(__,{className:X(`sticky top-[0px] z-1 cursor-default bg-surface-2 px-2xs py-3xs style-text-default--2 text-on-surface-variant select-none`,e),ref:r,...i,children:t}),Oye=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`span`,{className:X(`style-text-prose--1 text-on-surface-variant transition-colors group-data-highlighted/item:text-neutral-on-container group-data-selected/item:text-neutral-on-default`,e),ref:r,...i,children:t}),bM=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`span`,{className:X(`flex items-center gap-2xs style-text-default-0 text-on-surface transition-colors group-data-highlighted/item:text-neutral-on-container group-data-selected/item:text-neutral-on-default`,e),ref:r,...i,children:t}),kye=({className:e,children:t,ref:r,...i})=>{let{currentValue:a,setCurrentValue:o,items:s}=dM();return(0,n.jsxs)(fM,{value:a.id,onValueChange:e=>{let t=s.find(t=>t.id===e);t&&o(t)},children:[(0,n.jsxs)(_M,{className:X(``,e),ref:r,...i,variant:`ghost`,children:[(0,n.jsx)(vM,{children:e=>s.find(t=>t.id===e)?.label}),(0,n.jsx)(hM,{children:(0,n.jsx)(Xr,{weight:`bold`})})]}),(0,n.jsx)(gM,{children:(0,n.jsxs)(mM,{children:[t,(0,n.jsx)(yM,{children:s.map(({label:e,id:t})=>(0,n.jsx)(pM,{value:t,children:e},t))})]})})]})},Aye=Gn(``,{variants:{variant:{default:`space-y-xs [&_[role=presentation]]:top-1/2 [&_[role=tablist]]:bg-surface-low`,ghost:`space-y-2xs [&_[role=presentation]]:top-1/2 [&_[role=presentation]]:rounded-full [&_[role=presentation]]:border [&_[role=tablist]]:rounded-full`,underline:`space-y-xs [&_[role=tablist]]:border-border`},size:{small:``,medium:``,large:``},tone:{brand:``,accent:``,neutral:``,error:``,info:``,success:``,warning:``},fill:{true:`[&_[role=tab]]:grow [&_[role=tablist]]:w-full`,false:`[&_[role=tablist]]:w-fit`}},compoundVariants:[{variant:`default`,tone:`brand`,class:`[&_[role=presentation]]:bg-brand-default [&_[role=tab]]:data-active:text-brand-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-brand-default`},{variant:`default`,tone:`accent`,class:`[&_[role=presentation]]:bg-accent-default [&_[role=tab]]:data-active:text-accent-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-accent-default`},{variant:`default`,tone:`neutral`,class:`[&_[role=presentation]]:bg-neutral-default [&_[role=tab]]:data-active:text-neutral-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-neutral-default`},{variant:`default`,tone:`error`,class:`[&_[role=presentation]]:bg-error-default [&_[role=tab]]:data-active:text-error-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-error-default`},{variant:`default`,tone:`info`,class:`[&_[role=presentation]]:bg-info-default [&_[role=tab]]:data-active:text-info-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-info-default`},{variant:`default`,tone:`success`,class:`[&_[role=presentation]]:bg-success-default [&_[role=tab]]:data-active:text-success-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-success-default`},{variant:`default`,tone:`warning`,class:`[&_[role=presentation]]:bg-warning-default [&_[role=tab]]:data-active:text-warning-on-default [&_[role=tab]]:hover:[&:not([data-active])]:text-warning-default`},{variant:`ghost`,tone:`brand`,class:`[&_[role=presentation]]:border-brand-border [&_[role=presentation]]:bg-brand-container [&_[role=tab]]:data-active:text-brand-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-brand-default`},{variant:`ghost`,tone:`accent`,class:`[&_[role=presentation]]:border-accent-border [&_[role=presentation]]:bg-accent-container [&_[role=tab]]:data-active:text-accent-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-accent-default`},{variant:`ghost`,tone:`neutral`,class:`[&_[role=presentation]]:border-neutral-border [&_[role=presentation]]:bg-neutral-container [&_[role=tab]]:data-active:text-neutral-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-neutral-default`},{variant:`ghost`,tone:`error`,class:`[&_[role=presentation]]:border-error-border [&_[role=presentation]]:bg-error-container [&_[role=tab]]:data-active:text-error-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-error-default`},{variant:`ghost`,tone:`info`,class:`[&_[role=presentation]]:border-info-border [&_[role=presentation]]:bg-info-container [&_[role=tab]]:data-active:text-info-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-info-default`},{variant:`ghost`,tone:`success`,class:`[&_[role=presentation]]:border-success-border [&_[role=presentation]]:bg-success-container [&_[role=tab]]:data-active:text-success-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-success-default`},{variant:`ghost`,tone:`warning`,class:`[&_[role=presentation]]:border-warning-border [&_[role=presentation]]:bg-warning-container [&_[role=tab]]:data-active:text-warning-on-container [&_[role=tab]]:hover:[&:not([data-active])]:text-warning-default`},{variant:`underline`,tone:`brand`,class:`[&_[role=presentation]]:bg-brand-default [&_[role=tab]]:data-active:text-brand-default [&_[role=tab]]:hover:[&:not([data-active])]:text-brand-default`},{variant:`underline`,tone:`accent`,class:`[&_[role=presentation]]:bg-accent-default [&_[role=tab]]:data-active:text-accent-default [&_[role=tab]]:hover:[&:not([data-active])]:text-accent-default`},{variant:`underline`,tone:`neutral`,class:`[&_[role=presentation]]:bg-neutral-default [&_[role=tab]]:data-active:text-neutral-default [&_[role=tab]]:hover:[&:not([data-active])]:text-neutral-default`},{variant:`underline`,tone:`error`,class:`[&_[role=presentation]]:bg-error-default [&_[role=tab]]:data-active:text-error-default [&_[role=tab]]:hover:[&:not([data-active])]:text-error-default`},{variant:`underline`,tone:`info`,class:`[&_[role=presentation]]:bg-info-default [&_[role=tab]]:data-active:text-info-default [&_[role=tab]]:hover:[&:not([data-active])]:text-info-default`},{variant:`underline`,tone:`success`,class:`[&_[role=presentation]]:bg-success-default [&_[role=tab]]:data-active:text-success-default [&_[role=tab]]:hover:[&:not([data-active])]:text-success-default`},{variant:`underline`,tone:`warning`,class:`[&_[role=presentation]]:bg-warning-default [&_[role=tab]]:data-active:text-warning-default [&_[role=tab]]:hover:[&:not([data-active])]:text-warning-default`},{size:`small`,variant:`default`,class:`[&_[role=presentation]]:rounded-lg [&_[role=tab]]:rounded-lg [&_[role=tablist]]:rounded-lg`},{size:`small`,variant:`default`,class:`[&_[role=tab]]:h-lg [&_[role=tab]]:px-sm [&_[role=tab]]:style-text-default--1 [&_[role=tablist]]:gap-2xs [&_[role=tablist]]:p-3xs`},{size:`medium`,variant:`default`,class:`[&_[role=presentation]]:rounded-xl [&_[role=tab]]:h-xl [&_[role=tab]]:rounded-xl [&_[role=tab]]:px-md [&_[role=tab]]:style-text-default-0 [&_[role=tablist]]:gap-xs [&_[role=tablist]]:rounded-xl [&_[role=tablist]]:p-2xs`},{size:`large`,variant:`default`,class:`[&_[role=presentation]]:rounded-2xl [&_[role=tab]]:h-2xl [&_[role=tab]]:rounded-2xl [&_[role=tab]]:px-lg [&_[role=tab]]:style-text-default-1 [&_[role=tablist]]:gap-sm [&_[role=tablist]]:rounded-2xl [&_[role=tablist]]:p-xs`},{size:`small`,variant:`ghost`,class:`[&_[role=tab]]:h-lg [&_[role=tab]]:px-sm [&_[role=tab]]:style-text-default--1 [&_[role=tablist]]:gap-2xs [&_[role=tablist]]:p-3xs`},{size:`medium`,variant:`ghost`,class:`[&_[role=tab]]:h-xl [&_[role=tab]]:px-md [&_[role=tab]]:style-text-default-0 [&_[role=tablist]]:gap-xs [&_[role=tablist]]:p-2xs`},{size:`large`,variant:`ghost`,class:`[&_[role=tab]]:h-2xl [&_[role=tab]]:px-lg [&_[role=tab]]:style-text-default-1 [&_[role=tablist]]:gap-sm [&_[role=tablist]]:p-xs`},{size:`small`,variant:`underline`,class:`[&_[role=tab]]:px-lg [&_[role=tab]]:pb-sm [&_[role=tab]]:style-text-default--1 [&_[role=tablist]]:h-lg [&_[role=tablist]]:gap-md [&_[role=tablist]]:border-b-2 **:[[role=presentation]]:bottom-[-3px] **:[[role=presentation]]:h-[2px]`},{size:`medium`,variant:`underline`,class:`[&_[role=tab]]:px-xl [&_[role=tab]]:pb-xs [&_[role=tab]]:style-text-default-0 [&_[role=tablist]]:h-xl [&_[role=tablist]]:gap-lg [&_[role=tablist]]:border-b-3 **:[[role=presentation]]:bottom-[-4px] **:[[role=presentation]]:h-[3px]`},{size:`large`,variant:`underline`,class:`[&_[role=tab]]:px-2xl [&_[role=tab]]:pb-2xs [&_[role=tab]]:style-text-default-1 [&_[role=tablist]]:h-2xl [&_[role=tablist]]:gap-xl [&_[role=tablist]]:border-b-4 **:[[role=presentation]]:bottom-[-5px] **:[[role=presentation]]:h-[4px]`}],defaultVariants:{variant:`default`,size:`medium`,tone:`brand`,fill:!0}}),xM=({size:e,tone:t,variant:r,fill:i,className:a,ref:o,...s})=>(0,n.jsx)(W_,{className:X(Aye({size:e,tone:t,variant:r,fill:i}),a),ref:o,...s}),SM=({className:e,...t})=>(0,n.jsx)(X_,{className:X(`absolute left-[0px] z-[-1] h-(--active-tab-height) w-(--active-tab-width) translate-x-(--active-tab-left) -translate-y-1/2 transition-all duration-300`,e),...t}),CM=({className:e,...t})=>(0,n.jsx)(Q_,{className:X(`relative z-0 flex`,e),...t}),jye=({className:e,...t})=>(0,n.jsx)(Z_,{className:X(`relative flex grow flex-col items-center justify-start gap-md`,e),...t}),wM=({className:e,...t})=>(0,n.jsx)(Y_,{className:X(`inline-flex items-center justify-center gap-xs text-center break-keep whitespace-nowrap text-on-surface transition-colors duration-300 outline-none select-none hover:cursor-pointer focus-visible:relative focus-visible:before:absolute focus-visible:before:outline`,e),...t}),Mye=({className:e,children:t,ref:r,...i})=>{let{currentValue:a,items:o,setCurrentValue:s}=dM();return(0,n.jsxs)(xM,{value:a.id,onValueChange:e=>{let t=o.find(t=>t.id===e);t&&s(t)},className:X(``,e),variant:`ghost`,ref:r,...i,children:[(0,n.jsxs)(CM,{children:[o.map(({id:e,label:t})=>(0,n.jsx)(wM,{value:e,children:t},e)),(0,n.jsx)(SM,{})]}),t]})},Nye=({className:e,children:t,ref:r,...i})=>{let{currentValue:a}=dM();return(0,n.jsxs)(`div`,{className:X(`relative overflow-auto rounded-lg px-md py-sm`,e),ref:r,...i,children:[t,(0,n.jsx)(`div`,{dangerouslySetInnerHTML:{__html:a.content}})]})},TM=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(tf,{className:X(`ml-md flex h-(--collapsible-panel-height) flex-col justify-end gap-3xs overflow-hidden border-l border-border pl-sm transition-all duration-150 ease-out data-ending-style:h-0 data-starting-style:h-0 [&[hidden]:not([hidden="until-found"])]:hidden`,e),ref:r,...i,children:t}),EM=({className:e,children:t,ref:r,...i})=>(0,n.jsx)($d,{render:a=>(0,n.jsxs)(Wv,{...a,tone:`neutral`,variant:`elevated`,className:X(`group/trigger`,e),ref:r,...i,children:[t,(0,n.jsx)(Jr,{weight:`bold`,className:`ml-auto transition-all ease-out group-data-panel-open/trigger:rotate-90`})]})}),DM=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Qd,{className:X(`flex min-h-xl w-full flex-col justify-center gap-xs`,e),ref:r,...i,children:t}),Pye=Gn(`flex flex-col gap-xs`,{variants:{size:{small:`[&_[data-slot='slider-thumb']]:size-sm [&_[data-slot='slider-thumb']]:border-4 [&_[data-slot='slider-thumb'][data-dragging]]:size-sm [&_[data-slot='slider-track'][data-orientation='horizontal']]:h-xs [&_[data-slot='slider-track'][data-orientation='vertical']]:w-3xs`,medium:`[&_[data-slot='slider-thumb']]:size-md [&_[data-slot='slider-thumb']]:border-4 [&_[data-slot='slider-thumb'][data-dragging]]:size-md [&_[data-slot='slider-track'][data-orientation='horizontal']]:h-sm [&_[data-slot='slider-track'][data-orientation='vertical']]:w-2xs`,large:`[&_[data-slot='slider-thumb']]:size-lg [&_[data-slot='slider-thumb']]:border-4 [&_[data-slot='slider-thumb'][data-dragging]]:size-lg [&_[data-slot='slider-track'][data-orientation='horizontal']]:h-md [&_[data-slot='slider-track'][data-orientation='vertical']]:w-xs`}},defaultVariants:{size:`medium`}}),OM=({size:e,trackStyle:t,className:r,children:i,ref:a,...o})=>{let s=t.some(e=>e.includes(`rgba`)||e.includes(`hsla`)||e.includes(`/`));return(0,n.jsx)(T_,{className:X(Pye({size:e}),r),"data-slot":`slider-root`,thumbAlignment:`edge`,ref:a,role:`slider`,...o,children:(0,n.jsx)(j_,{className:`shrink-0 hover:cursor-pointer data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full`,children:(0,n.jsxs)(M_,{"data-slot":`slider-track`,className:X(`relative size-full rounded-full`),style:{backgroundImage:s?[`linear-gradient(to right, ${t.join(`, `)})`,`linear-gradient(45deg, #d4d4d8 25%, transparent 25%, transparent 75%, #d4d4d8 75%, #d4d4d8)`,`linear-gradient(45deg, #d4d4d8 25%, transparent 25%, transparent 75%, #d4d4d8 75%, #d4d4d8)`].join(`, `):`linear-gradient(to right, ${t.join(`, `)})`,backgroundSize:s?`100% 100%, 10px 10px, 10px 10px`:`auto`,backgroundPosition:s?`0 0, 0 0, 5px 5px`:`auto`,backgroundColor:`#ffffff`},children:[i,(0,n.jsx)(I_,{"data-slot":`slider-indicator`,className:`rounded-full`}),(0,n.jsx)(F_,{"data-slot":`slider-thumb`,className:X(`absolute aspect-square rounded-full border-white shadow-xs transition-[width,height,opacity] data-dragging:cursor-grabbing hover:[&:not([data-dragging])]:cursor-pointer`),render:(e,r)=>(0,n.jsx)(`div`,{...e,style:{...e.style,backgroundColor:t[r.values[0]]}})})]})})})},{min:Fye,max:Iye}=Math,kM=(e,t=0,n=1)=>Fye(Iye(t,e),n),AM=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let t=0;t<=3;t++)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]=kM(e[t],0,255)):t===3&&(e[t]=kM(e[t],0,1));return e},jM={};for(let e of[`Boolean`,`Number`,`String`,`Function`,`Array`,`Date`,`RegExp`,`Undefined`,`Null`])jM[`[object ${e}]`]=e.toLowerCase();function MM(e){return jM[Object.prototype.toString.call(e)]||`object`}var NM=(e,t=null)=>e.length>=3?Array.prototype.slice.call(e):MM(e[0])==`object`&&t?t.split(``).filter(t=>e[0][t]!==void 0).map(t=>e[0][t]):e[0].slice(0),PM=e=>{if(e.length<2)return null;let t=e.length-1;return MM(e[t])==`string`?e[t].toLowerCase():null},{PI:FM,min:IM,max:LM}=Math,RM=e=>Math.round(e*100)/100,zM=e=>Math.round(e*100)/100,BM=FM*2,VM=FM/3,Lye=FM/180,Rye=180/FM;function HM(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}var UM={format:{},autodetect:[]},WM=class{constructor(...e){let t=this;if(MM(e[0])===`object`&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let n=PM(e),r=!1;if(!n){r=!0,UM.sorted||=(UM.autodetect=UM.autodetect.sort((e,t)=>t.p-e.p),!0);for(let t of UM.autodetect)if(n=t.test(...e),n)break}if(UM.format[n])t._rgb=AM(UM.format[n].apply(null,r?e:e.slice(0,-1)));else throw Error(`unknown format: `+e);t._rgb.length===3&&t._rgb.push(1)}toString(){return MM(this.hex)==`function`?this.hex():`[${this._rgb.join(`,`)}]`}},zye=`3.2.0`,GM=(...e)=>new WM(...e);GM.version=zye;var KM={aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyan:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,gold:`#ffd700`,goldenrod:`#daa520`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,laserlemon:`#ffff54`,lavender:`#e6e6fa`,lavenderblush:`#fff0f5`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrod:`#fafad2`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,maroon2:`#7f0000`,maroon3:`#b03060`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,purple2:`#7f007f`,purple3:`#a020f0`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,steelblue:`#4682b4`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,tomato:`#ff6347`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`},Bye=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Vye=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,qM=e=>{if(e.match(Bye)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(``),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let t=parseInt(e,16);return[t>>16,t>>8&255,t&255,1]}if(e.match(Vye)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(``),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);let t=parseInt(e,16);return[t>>24&255,t>>16&255,t>>8&255,Math.round((t&255)/255*100)/100]}throw Error(`unknown hex color: ${e}`)},{round:JM}=Math,YM=(...e)=>{let[t,n,r,i]=NM(e,`rgba`),a=PM(e)||`auto`;i===void 0&&(i=1),a===`auto`&&(a=i<1?`rgba`:`rgb`),t=JM(t),n=JM(n),r=JM(r);let o=`000000`+(t<<16|n<<8|r).toString(16);o=o.substr(o.length-6);let s=`0`+JM(i*255).toString(16);switch(s=s.substr(s.length-2),a.toLowerCase()){case`rgba`:return`#${o}${s}`;case`argb`:return`#${s}${o}`;default:return`#${o}`}};WM.prototype.name=function(){let e=YM(this._rgb,`rgb`);for(let t of Object.keys(KM))if(KM[t]===e)return t.toLowerCase();return e},UM.format.named=e=>{if(e=e.toLowerCase(),KM[e])return qM(KM[e]);throw Error(`unknown color name: `+e)},UM.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&MM(e)===`string`&&KM[e.toLowerCase()])return`named`}}),WM.prototype.alpha=function(e,t=!1){return e!==void 0&&MM(e)===`number`?t?(this._rgb[3]=e,this):new WM([this._rgb[0],this._rgb[1],this._rgb[2],e],`rgb`):this._rgb[3]},WM.prototype.clipped=function(){return this._rgb._clipped||!1};var XM={Kn:18,labWhitePoint:`d65`,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},Hye=new Map([[`a`,[1.0985,.35585]],[`b`,[1.0985,.35585]],[`c`,[.98074,1.18232]],[`d50`,[.96422,.82521]],[`d55`,[.95682,.92149]],[`d65`,[.95047,1.08883]],[`e`,[1,1,1]],[`f2`,[.99186,.67393]],[`f7`,[.95041,1.08747]],[`f11`,[1.00962,.6435]],[`icc`,[.96422,.82521]]]);function ZM(e){let t=Hye.get(String(e).toLowerCase());if(!t)throw Error(`unknown Lab illuminant `+e);XM.labWhitePoint=e,XM.Xn=t[0],XM.Zn=t[1]}function QM(){return XM.labWhitePoint}var $M=(...e)=>{e=NM(e,`lab`);let[t,n,r]=e,[i,a,o]=Uye(t,n,r),[s,c,l]=tN(i,a,o);return[s,c,l,e.length>3?e[3]:1]},Uye=(e,t,n)=>{let{kE:r,kK:i,kKE:a,Xn:o,Yn:s,Zn:c}=XM,l=(e+16)/116,u=.002*t+l,d=l-.005*n,f=u*u*u,p=d*d*d,m=f>r?f:(116*u-16)/i,h=e>a?((e+16)/116)**3:e/i,g=p>r?p:(116*d-16)/i;return[m*o,h*s,g*c]},eN=e=>{let t=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055)*t},tN=(e,t,n)=>{let{MtxAdaptMa:r,MtxAdaptMaI:i,MtxXYZ2RGB:a,RefWhiteRGB:o,Xn:s,Yn:c,Zn:l}=XM,u=s*r.m00+c*r.m10+l*r.m20,d=s*r.m01+c*r.m11+l*r.m21,f=s*r.m02+c*r.m12+l*r.m22,p=o.X*r.m00+o.Y*r.m10+o.Z*r.m20,m=o.X*r.m01+o.Y*r.m11+o.Z*r.m21,h=o.X*r.m02+o.Y*r.m12+o.Z*r.m22,g=(e*r.m00+t*r.m10+n*r.m20)*(p/u),_=(e*r.m01+t*r.m11+n*r.m21)*(m/d),v=(e*r.m02+t*r.m12+n*r.m22)*(h/f),y=g*i.m00+_*i.m10+v*i.m20,b=g*i.m01+_*i.m11+v*i.m21,x=g*i.m02+_*i.m12+v*i.m22,S=eN(y*a.m00+b*a.m10+x*a.m20),C=eN(y*a.m01+b*a.m11+x*a.m21),w=eN(y*a.m02+b*a.m12+x*a.m22);return[S*255,C*255,w*255]},nN=(...e)=>{let[t,n,r,...i]=NM(e,`rgb`),[a,o,s]=iN(t,n,r),[c,l,u]=Wye(a,o,s);return[c,l,u,...i.length>0&&i[0]<1?[i[0]]:[]]};function Wye(e,t,n){let{Xn:r,Yn:i,Zn:a,kE:o,kK:s}=XM,c=e/r,l=t/i,u=n/a,d=c>o?c**(1/3):(s*c+16)/116,f=l>o?l**(1/3):(s*l+16)/116,p=u>o?u**(1/3):(s*u+16)/116;return[116*f-16,500*(d-f),200*(f-p)]}function rN(e){let t=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:((e+.055)/1.055)**2.4)*t}var iN=(e,t,n)=>{e=rN(e/255),t=rN(t/255),n=rN(n/255);let{MtxRGB2XYZ:r,MtxAdaptMa:i,MtxAdaptMaI:a,Xn:o,Yn:s,Zn:c,As:l,Bs:u,Cs:d}=XM,f=e*r.m00+t*r.m10+n*r.m20,p=e*r.m01+t*r.m11+n*r.m21,m=e*r.m02+t*r.m12+n*r.m22,h=o*i.m00+s*i.m10+c*i.m20,g=o*i.m01+s*i.m11+c*i.m21,_=o*i.m02+s*i.m12+c*i.m22,v=f*i.m00+p*i.m10+m*i.m20,y=f*i.m01+p*i.m11+m*i.m21,b=f*i.m02+p*i.m12+m*i.m22;return v*=h/l,y*=g/u,b*=_/d,f=v*a.m00+y*a.m10+b*a.m20,p=v*a.m01+y*a.m11+b*a.m21,m=v*a.m02+y*a.m12+b*a.m22,[f,p,m]};WM.prototype.lab=function(){return nN(this._rgb)},Object.assign(GM,{lab:(...e)=>new WM(...e,`lab`),getLabWhitePoint:QM,setLabWhitePoint:ZM}),UM.format.lab=$M,UM.autodetect.push({p:2,test:(...e)=>{if(e=NM(e,`lab`),MM(e)===`array`&&e.length===3)return`lab`}}),WM.prototype.darken=function(e=1){let t=this,n=t.lab();return n[0]-=XM.Kn*e,new WM(n,`lab`).alpha(t.alpha(),!0)},WM.prototype.brighten=function(e=1){return this.darken(-e)},WM.prototype.darker=WM.prototype.darken,WM.prototype.brighter=WM.prototype.brighten,WM.prototype.get=function(e){let[t,n]=e.split(`.`),r=this[t]();if(n){let e=t.indexOf(n)-(t.substr(0,2)===`ok`?2:0);if(e>-1)return r[e];throw Error(`unknown channel ${n} in mode ${t}`)}return r};var{pow:Gye}=Math,Kye=1e-7,qye=20;WM.prototype.luminance=function(e,t=`rgb`){if(e!==void 0&&MM(e)===`number`){if(e===0)return new WM([0,0,0,this._rgb[3]],`rgb`);if(e===1)return new WM([255,255,255,this._rgb[3]],`rgb`);let n=this.luminance(),r=qye,i=(n,a)=>{let o=n.interpolate(a,.5,t),s=o.luminance();return Math.abs(e-s)<Kye||!r--?o:s>e?i(n,o):i(o,a)};return new WM([...(n>e?i(new WM([0,0,0]),this):i(this,new WM([255,255,255]))).rgb(),this._rgb[3]])}return Jye(...this._rgb.slice(0,3))};var Jye=(e,t,n)=>(e=aN(e),t=aN(t),n=aN(n),.2126*e+.7152*t+.0722*n),aN=e=>(e/=255,e<=.03928?e/12.92:Gye((e+.055)/1.055,2.4)),oN={},sN=(e,t,n=.5,...r)=>{let i=r[0]||`lrgb`;if(!oN[i]&&!r.length&&(i=Object.keys(oN)[0]),!oN[i])throw Error(`interpolation mode ${i} is not defined`);return MM(e)!==`object`&&(e=new WM(e)),MM(t)!==`object`&&(t=new WM(t)),oN[i](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};WM.prototype.mix=WM.prototype.interpolate=function(e,t=.5,...n){return sN(this,e,t,...n)},WM.prototype.premultiply=function(e=!1){let t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new WM([t[0]*n,t[1]*n,t[2]*n,n],`rgb`)};var{sin:Yye,cos:Xye}=Math,cN=(...e)=>{let[t,n,r]=NM(e,`lch`);return isNaN(r)&&(r=0),r*=Lye,[t,Xye(r)*n,Yye(r)*n]},lN=(...e)=>{e=NM(e,`lch`);let[t,n,r]=e,[i,a,o]=cN(t,n,r),[s,c,l]=$M(i,a,o);return[s,c,l,e.length>3?e[3]:1]},Zye=(...e)=>lN(...HM(NM(e,`hcl`))),{sqrt:Qye,atan2:$ye,round:ebe}=Math,uN=(...e)=>{let[t,n,r]=NM(e,`lab`),i=Qye(n*n+r*r),a=($ye(r,n)*Rye+360)%360;return ebe(i*1e4)===0&&(a=NaN),[t,i,a]},dN=(...e)=>{let[t,n,r,...i]=NM(e,`rgb`),[a,o,s]=nN(t,n,r),[c,l,u]=uN(a,o,s);return[c,l,u,...i.length>0&&i[0]<1?[i[0]]:[]]};WM.prototype.lch=function(){return dN(this._rgb)},WM.prototype.hcl=function(){return HM(dN(this._rgb))},Object.assign(GM,{lch:(...e)=>new WM(...e,`lch`),hcl:(...e)=>new WM(...e,`hcl`)}),UM.format.lch=lN,UM.format.hcl=Zye,[`lch`,`hcl`].forEach(e=>UM.autodetect.push({p:2,test:(...t)=>{if(t=NM(t,e),MM(t)===`array`&&t.length===3)return e}})),WM.prototype.saturate=function(e=1){let t=this,n=t.lch();return n[1]+=XM.Kn*e,n[1]<0&&(n[1]=0),new WM(n,`lch`).alpha(t.alpha(),!0)},WM.prototype.desaturate=function(e=1){return this.saturate(-e)},WM.prototype.set=function(e,t,n=!1){let[r,i]=e.split(`.`),a=this[r]();if(i){let e=r.indexOf(i)-(r.substr(0,2)===`ok`?2:0);if(e>-1){if(MM(t)==`string`)switch(t.charAt(0)){case`+`:a[e]+=+t;break;case`-`:a[e]+=+t;break;case`*`:a[e]*=+t.substr(1);break;case`/`:a[e]/=+t.substr(1);break;default:a[e]=+t}else if(MM(t)===`number`)a[e]=t;else throw Error(`unsupported value for Color.set`);let i=new WM(a,r);return n?(this._rgb=i._rgb,this):i}throw Error(`unknown channel ${i} in mode ${r}`)}return a},WM.prototype.tint=function(e=.5,...t){return sN(this,`white`,e,...t)},WM.prototype.shade=function(e=.5,...t){return sN(this,`black`,e,...t)},oN.rgb=(e,t,n)=>{let r=e._rgb,i=t._rgb;return new WM(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),`rgb`)};var{sqrt:fN,pow:pN}=Math;oN.lrgb=(e,t,n)=>{let[r,i,a]=e._rgb,[o,s,c]=t._rgb;return new WM(fN(pN(r,2)*(1-n)+pN(o,2)*n),fN(pN(i,2)*(1-n)+pN(s,2)*n),fN(pN(a,2)*(1-n)+pN(c,2)*n),`rgb`)},oN.lab=(e,t,n)=>{let r=e.lab(),i=t.lab();return new WM(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),`lab`)};var mN=(e,t,n,r)=>{let i,a;r===`hsl`?(i=e.hsl(),a=t.hsl()):r===`hsv`?(i=e.hsv(),a=t.hsv()):r===`hcg`?(i=e.hcg(),a=t.hcg()):r===`hsi`?(i=e.hsi(),a=t.hsi()):r===`lch`||r===`hcl`?(r=`hcl`,i=e.hcl(),a=t.hcl()):r===`oklch`&&(i=e.oklch().reverse(),a=t.oklch().reverse());let o,s,c,l,u,d;(r.substr(0,1)===`h`||r===`oklch`)&&([o,c,u]=i,[s,l,d]=a);let f,p,m,h;return!isNaN(o)&&!isNaN(s)?(h=s>o&&s-o>180?s-(o+360):s<o&&o-s>180?s+360-o:s-o,p=o+n*h):isNaN(o)?isNaN(s)?p=NaN:(p=s,(u==1||u==0)&&r!=`hsv`&&(f=l)):(p=o,(d==1||d==0)&&r!=`hsv`&&(f=c)),f===void 0&&(f=c+n*(l-c)),m=u+n*(d-u),r===`oklch`?new WM([m,f,p],r):new WM([p,f,m],r)},hN=(e,t,n)=>mN(e,t,n,`lch`);oN.lch=hN,oN.hcl=hN;var tbe=e=>{if(MM(e)==`number`&&e>=0&&e<=16777215)return[e>>16,e>>8&255,e&255,1];throw Error(`unknown num color: `+e)},nbe=(...e)=>{let[t,n,r]=NM(e,`rgb`);return(t<<16)+(n<<8)+r};WM.prototype.num=function(){return nbe(this._rgb)},Object.assign(GM,{num:(...e)=>new WM(...e,`num`)}),UM.format.num=tbe,UM.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&MM(e[0])===`number`&&e[0]>=0&&e[0]<=16777215)return`num`}}),oN.num=(e,t,n)=>{let r=e.num();return new WM(r+n*(t.num()-r),`num`)};var{floor:rbe}=Math,ibe=(...e)=>{e=NM(e,`hcg`);let[t,n,r]=e,i,a,o;r*=255;let s=n*255;if(n===0)i=a=o=r;else{t===360&&(t=0),t>360&&(t-=360),t<0&&(t+=360),t/=60;let e=rbe(t),c=t-e,l=r*(1-n),u=l+s*(1-c),d=l+s*c,f=l+s;switch(e){case 0:[i,a,o]=[f,d,l];break;case 1:[i,a,o]=[u,f,l];break;case 2:[i,a,o]=[l,f,d];break;case 3:[i,a,o]=[l,u,f];break;case 4:[i,a,o]=[d,l,f];break;case 5:[i,a,o]=[f,l,u]}}return[i,a,o,e.length>3?e[3]:1]},abe=(...e)=>{let[t,n,r]=NM(e,`rgb`),i=IM(t,n,r),a=LM(t,n,r),o=a-i,s=o*100/255,c=i/(255-o)*100,l;return o===0?l=NaN:(t===a&&(l=(n-r)/o),n===a&&(l=2+(r-t)/o),r===a&&(l=4+(t-n)/o),l*=60,l<0&&(l+=360)),[l,s,c]};WM.prototype.hcg=function(){return abe(this._rgb)},GM.hcg=(...e)=>new WM(...e,`hcg`),UM.format.hcg=ibe,UM.autodetect.push({p:1,test:(...e)=>{if(e=NM(e,`hcg`),MM(e)===`array`&&e.length===3)return`hcg`}}),oN.hcg=(e,t,n)=>mN(e,t,n,`hcg`);var{cos:gN}=Math,obe=(...e)=>{e=NM(e,`hsi`);let[t,n,r]=e,i,a,o;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),t>360&&(t-=360),t<0&&(t+=360),t/=360,t<1/3?(o=(1-n)/3,i=(1+n*gN(BM*t)/gN(VM-BM*t))/3,a=1-(o+i)):t<2/3?(t-=1/3,i=(1-n)/3,a=(1+n*gN(BM*t)/gN(VM-BM*t))/3,o=1-(i+a)):(t-=2/3,a=(1-n)/3,o=(1+n*gN(BM*t)/gN(VM-BM*t))/3,i=1-(a+o)),i=kM(r*i*3),a=kM(r*a*3),o=kM(r*o*3),[i*255,a*255,o*255,e.length>3?e[3]:1]},{min:sbe,sqrt:cbe,acos:lbe}=Math,ube=(...e)=>{let[t,n,r]=NM(e,`rgb`);t/=255,n/=255,r/=255;let i,a=sbe(t,n,r),o=(t+n+r)/3,s=o>0?1-a/o:0;return s===0?i=NaN:(i=(t-n+(t-r))/2,i/=cbe((t-n)*(t-n)+(t-r)*(n-r)),i=lbe(i),r>n&&(i=BM-i),i/=BM),[i*360,s,o]};WM.prototype.hsi=function(){return ube(this._rgb)},GM.hsi=(...e)=>new WM(...e,`hsi`),UM.format.hsi=obe,UM.autodetect.push({p:2,test:(...e)=>{if(e=NM(e,`hsi`),MM(e)===`array`&&e.length===3)return`hsi`}}),oN.hsi=(e,t,n)=>mN(e,t,n,`hsi`);var _N=(...e)=>{e=NM(e,`hsl`);let[t,n,r]=e,i,a,o;if(n===0)i=a=o=r*255;else{let e=[0,0,0],s=[0,0,0],c=r<.5?r*(1+n):r+n-r*n,l=2*r-c,u=t/360;e[0]=u+1/3,e[1]=u,e[2]=u-1/3;for(let t=0;t<3;t++)e[t]<0&&(e[t]+=1),e[t]>1&&--e[t],6*e[t]<1?s[t]=l+(c-l)*6*e[t]:2*e[t]<1?s[t]=c:3*e[t]<2?s[t]=l+(c-l)*(2/3-e[t])*6:s[t]=l;[i,a,o]=[s[0]*255,s[1]*255,s[2]*255]}return e.length>3?[i,a,o,e[3]]:[i,a,o,1]},vN=(...e)=>{e=NM(e,`rgba`);let[t,n,r]=e;t/=255,n/=255,r/=255;let i=IM(t,n,r),a=LM(t,n,r),o=(a+i)/2,s,c;return a===i?(s=0,c=NaN):s=o<.5?(a-i)/(a+i):(a-i)/(2-a-i),t==a?c=(n-r)/(a-i):n==a?c=2+(r-t)/(a-i):r==a&&(c=4+(t-n)/(a-i)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,s,o,e[3]]:[c,s,o]};WM.prototype.hsl=function(){return vN(this._rgb)},GM.hsl=(...e)=>new WM(...e,`hsl`),UM.format.hsl=_N,UM.autodetect.push({p:2,test:(...e)=>{if(e=NM(e,`hsl`),MM(e)===`array`&&e.length===3)return`hsl`}}),oN.hsl=(e,t,n)=>mN(e,t,n,`hsl`);var{floor:dbe}=Math,fbe=(...e)=>{e=NM(e,`hsv`);let[t,n,r]=e,i,a,o;if(r*=255,n===0)i=a=o=r;else{t===360&&(t=0),t>360&&(t-=360),t<0&&(t+=360),t/=60;let e=dbe(t),s=t-e,c=r*(1-n),l=r*(1-n*s),u=r*(1-n*(1-s));switch(e){case 0:[i,a,o]=[r,u,c];break;case 1:[i,a,o]=[l,r,c];break;case 2:[i,a,o]=[c,r,u];break;case 3:[i,a,o]=[c,l,r];break;case 4:[i,a,o]=[u,c,r];break;case 5:[i,a,o]=[r,c,l]}}return[i,a,o,e.length>3?e[3]:1]},{min:pbe,max:mbe}=Math,hbe=(...e)=>{e=NM(e,`rgb`);let[t,n,r]=e,i=pbe(t,n,r),a=mbe(t,n,r),o=a-i,s,c,l;return l=a/255,a===0?(s=NaN,c=0):(c=o/a,t===a&&(s=(n-r)/o),n===a&&(s=2+(r-t)/o),r===a&&(s=4+(t-n)/o),s*=60,s<0&&(s+=360)),[s,c,l]};WM.prototype.hsv=function(){return hbe(this._rgb)},GM.hsv=(...e)=>new WM(...e,`hsv`),UM.format.hsv=fbe,UM.autodetect.push({p:2,test:(...e)=>{if(e=NM(e,`hsv`),MM(e)===`array`&&e.length===3)return`hsv`}}),oN.hsv=(e,t,n)=>mN(e,t,n,`hsv`);function yN(e,t){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(t[0])||(t=t.map(e=>[e]));let r=t[0].length,i=t[0].map((e,n)=>t.map(e=>e[n])),a=e.map(e=>i.map(t=>Array.isArray(e)?e.reduce((e,n,r)=>e+n*(t[r]||0),0):t.reduce((t,n)=>t+n*e,0)));return n===1&&(a=a[0]),r===1?a.map(e=>e[0]):a}var bN=(...e)=>{e=NM(e,`lab`);let[t,n,r,...i]=e,[a,o,s]=gbe([t,n,r]),[c,l,u]=tN(a,o,s);return[c,l,u,...i.length>0&&i[0]<1?[i[0]]:[]]};function gbe(e){return yN([[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],yN([[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],e).map(e=>e**3))}var xN=(...e)=>{let[t,n,r,...i]=NM(e,`rgb`);return[..._be(iN(t,n,r)),...i.length>0&&i[0]<1?[i[0]]:[]]};function _be(e){return yN([[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],yN([[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],e).map(e=>Math.cbrt(e)))}WM.prototype.oklab=function(){return xN(this._rgb)},Object.assign(GM,{oklab:(...e)=>new WM(...e,`oklab`)}),UM.format.oklab=bN,UM.autodetect.push({p:2,test:(...e)=>{if(e=NM(e,`oklab`),MM(e)===`array`&&e.length===3)return`oklab`}}),oN.oklab=(e,t,n)=>{let r=e.oklab(),i=t.oklab();return new WM(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),`oklab`)},oN.oklch=(e,t,n)=>mN(e,t,n,`oklch`);var{pow:SN,sqrt:CN,PI:wN,cos:TN,sin:EN,atan2:vbe}=Math,ybe=(e,t=`lrgb`,n=null)=>{let r=e.length;n||=Array.from(Array(r)).map(()=>1);let i=r/n.reduce(function(e,t){return e+t});if(n.forEach((e,t)=>{n[t]*=i}),e=e.map(e=>new WM(e)),t===`lrgb`)return bbe(e,n);let a=e.shift(),o=a.get(t),s=[],c=0,l=0;for(let e=0;e<o.length;e++)if(o[e]=(o[e]||0)*n[0],s.push(isNaN(o[e])?0:n[0]),t.charAt(e)===`h`&&!isNaN(o[e])){let t=o[e]/180*wN;c+=TN(t)*n[0],l+=EN(t)*n[0]}let u=a.alpha()*n[0];e.forEach((e,r)=>{let i=e.get(t);u+=e.alpha()*n[r+1];for(let e=0;e<o.length;e++)if(!isNaN(i[e])){if(s[e]+=n[r+1],t.charAt(e)===`h`){let t=i[e]/180*wN;c+=TN(t)*n[r+1],l+=EN(t)*n[r+1]}else o[e]+=i[e]*n[r+1]}});for(let e=0;e<o.length;e++)if(t.charAt(e)===`h`){let t=vbe(l/s[e],c/s[e])/wN*180;for(;t<0;)t+=360;for(;t>=360;)t-=360;o[e]=t}else o[e]=o[e]/s[e];return u/=r,new WM(o,t).alpha(u>.99999?1:u,!0)},bbe=(e,t)=>{let n=e.length,r=[0,0,0,0];for(let i=0;i<e.length;i++){let a=e[i],o=t[i]/n,s=a._rgb;r[0]+=SN(s[0],2)*o,r[1]+=SN(s[1],2)*o,r[2]+=SN(s[2],2)*o,r[3]+=s[3]*o}return r[0]=CN(r[0]),r[1]=CN(r[1]),r[2]=CN(r[2]),r[3]>.9999999&&(r[3]=1),new WM(AM(r))},{pow:xbe}=Math;function DN(e){let t=`rgb`,n=GM(`#ccc`),r=0,i=[0,1],a=[0,1],o=[],s=[0,0],c=!1,l=[],u=!1,d=0,f=1,p=!1,m={},h=!0,g=1,_=function(e){if(e||=[`#fff`,`#000`],e&&MM(e)===`string`&&GM.brewer&&GM.brewer[e.toLowerCase()]&&(e=GM.brewer[e.toLowerCase()]),MM(e)===`array`){e.length===1&&(e=[e[0],e[0]]),e=e.slice(0);for(let t=0;t<e.length;t++)e[t]=GM(e[t]);o.length=0;for(let t=0;t<e.length;t++)o.push(t/(e.length-1))}return S(),l=e},v=function(e){if(c!=null){let t=c.length-1,n=0;for(;n<t&&e>=c[n];)n++;return n-1}return 0},y=e=>e,b=e=>e,x=function(e,r){let i,a;if(r??=!1,isNaN(e)||e===null)return n;a=r?e:c&&c.length>2?v(e)/(c.length-2):f===d?1:(e-d)/(f-d),a=b(a),r||(a=y(a)),g!==1&&(a=xbe(a,g)),a=s[0]+a*(1-s[0]-s[1]),a=kM(a,0,1);let u=Math.floor(a*1e4);if(h&&m[u])i=m[u];else{if(MM(l)===`array`)for(let e=0;e<o.length;e++){let n=o[e];if(a<=n){i=l[e];break}if(a>=n&&e===o.length-1){i=l[e];break}if(a>n&&a<o[e+1]){a=(a-n)/(o[e+1]-n),i=GM.interpolate(l[e],l[e+1],a,t);break}}else MM(l)===`function`&&(i=l(a));h&&(m[u]=i)}return i};var S=()=>m={};_(e);let C=function(e){let t=GM(x(e));return u&&t[u]?t[u]():t};return C.classes=function(e){if(e!=null){if(MM(e)===`array`)c=e,i=[e[0],e[e.length-1]];else{let t=GM.analyze(i);c=e===0?[t.min,t.max]:GM.limits(t,`e`,e)}return C}return c},C.domain=function(e){if(!arguments.length)return a;a=e.slice(0),d=e[0],f=e[e.length-1],o=[];let t=l.length;if(e.length===t&&d!==f)for(let t of Array.from(e))o.push((t-d)/(f-d));else{for(let e=0;e<t;e++)o.push(e/(t-1));if(e.length>2){let t=e.map((t,n)=>n/(e.length-1)),n=e.map(e=>(e-d)/(f-d));n.every((e,n)=>t[n]===e)||(b=e=>{if(e<=0||e>=1)return e;let r=0;for(;e>=n[r+1];)r++;let i=(e-n[r])/(n[r+1]-n[r]);return t[r]+i*(t[r+1]-t[r])})}}return i=[d,f],C},C.mode=function(e){return arguments.length?(t=e,S(),C):t},C.range=function(e,t){return _(e,t),C},C.out=function(e){return u=e,C},C.spread=function(e){return arguments.length?(r=e,C):r},C.correctLightness=function(e){return e??=!0,p=e,S(),y=p?function(e){let t=x(0,!0).lab()[0],n=x(1,!0).lab()[0],r=t>n,i=x(e,!0).lab()[0],a=t+(n-t)*e,o=i-a,s=0,c=1,l=20;for(;Math.abs(o)>.01&&l-->0;)(function(){return r&&(o*=-1),o<0?(s=e,e+=(c-e)*.5):(c=e,e+=(s-e)*.5),i=x(e,!0).lab()[0],o=i-a})();return e}:e=>e,C},C.padding=function(e){return e==null?s:(MM(e)===`number`&&(e=[e,e]),s=e,C)},C.colors=function(t,n){arguments.length<2&&(n=`hex`);let r=[];if(arguments.length===0)r=l.slice(0);else if(t===1)r=[C(.5)];else if(t>1){let e=i[0],n=i[1]-e;r=Sbe(0,t,!1).map(r=>C(e+r/(t-1)*n))}else{e=[];let t=[];if(c&&c.length>2)for(let e=1,n=c.length,r=1<=n;r?e<n:e>n;r?e++:e--)t.push((c[e-1]+c[e])*.5);else t=i;r=t.map(e=>C(e))}return GM[n]&&(r=r.map(e=>e[n]())),r},C.cache=function(e){return e==null?h:(h=e,C)},C.gamma=function(e){return e==null?g:(g=e,C)},C.nodata=function(e){return e==null?n:(n=GM(e),C)},C}function Sbe(e,t,n){let r=[],i=e<t,a=n?i?t+1:t-1:t;for(let t=e;i?t<a:t>a;i?t++:t--)r.push(t);return r}var Cbe=function(e){let t=[1,1];for(let n=1;n<e;n++){let e=[1];for(let n=1;n<=t.length;n++)e[n]=(t[n]||0)+t[n-1];t=e}return t},wbe=function(e){let t,n,r,i;if(e=e.map(e=>new WM(e)),e.length===2)[n,r]=e.map(e=>e.lab()),t=function(e){return new WM([0,1,2].map(t=>n[t]+e*(r[t]-n[t])),`lab`)};else if(e.length===3)[n,r,i]=e.map(e=>e.lab()),t=function(e){return new WM([0,1,2].map(t=>(1-e)*(1-e)*n[t]+2*(1-e)*e*r[t]+e*e*i[t]),`lab`)};else if(e.length===4){let a;[n,r,i,a]=e.map(e=>e.lab()),t=function(e){return new WM([0,1,2].map(t=>(1-e)*(1-e)*(1-e)*n[t]+3*(1-e)*(1-e)*e*r[t]+3*(1-e)*e*e*i[t]+e*e*e*a[t]),`lab`)}}else if(e.length>=5){let n,r,i;n=e.map(e=>e.lab()),i=e.length-1,r=Cbe(i),t=function(e){let t=1-e;return new WM([0,1,2].map(a=>n.reduce((n,o,s)=>n+r[s]*t**(i-s)*e**s*o[a],0)),`lab`)}}else throw RangeError(`No point in running bezier with only one color.`);return t},Tbe=e=>{let t=wbe(e);return t.scale=()=>DN(t),t},{round:ON}=Math;WM.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(ON)},WM.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((t,n)=>n<3?e===!1?t:ON(t):t)},Object.assign(GM,{rgb:(...e)=>new WM(...e,`rgb`)}),UM.format.rgb=(...e)=>{let t=NM(e,`rgba`);return t[3]===void 0&&(t[3]=1),t},UM.autodetect.push({p:3,test:(...e)=>{if(e=NM(e,`rgba`),MM(e)===`array`&&(e.length===3||e.length===4&&MM(e[3])==`number`&&e[3]>=0&&e[3]<=1))return`rgb`}});var kN=(e,t,n)=>{if(!kN[n])throw Error(`unknown blend mode `+n);return kN[n](e,t)},AN=e=>(t,n)=>{let r=GM(n).rgb(),i=GM(t).rgb();return GM.rgb(e(r,i))},jN=e=>(t,n)=>{let r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r};kN.normal=AN(jN(e=>e)),kN.multiply=AN(jN((e,t)=>e*t/255)),kN.screen=AN(jN((e,t)=>255*(1-(1-e/255)*(1-t/255)))),kN.overlay=AN(jN((e,t)=>t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255)))),kN.darken=AN(jN((e,t)=>e>t?t:e)),kN.lighten=AN(jN((e,t)=>e>t?e:t)),kN.dodge=AN(jN((e,t)=>e===255?255:(e=t/255*255/(1-e/255),e>255?255:e))),kN.burn=AN(jN((e,t)=>255*(1-(1-t/255)/(e/255))));var{pow:Ebe,sin:Dbe,cos:Obe}=Math;function kbe(e=300,t=-1.5,n=1,r=1,i=[0,1]){let a=0,o;MM(i)===`array`?o=i[1]-i[0]:(o=0,i=[i,i]);let s=function(s){let c=BM*((e+120)/360+t*s),l=Ebe(i[0]+o*s,r),u=(a===0?n:n[0]+s*a)*l*(1-l)/2,d=Obe(c),f=Dbe(c),p=l+u*(-.14861*d+1.78277*f),m=l+u*(-.29227*d-.90649*f),h=l+1.97294*d*u;return GM(AM([p*255,m*255,h*255,1]))};return s.start=function(t){return t==null?e:(e=t,s)},s.rotations=function(e){return e==null?t:(t=e,s)},s.gamma=function(e){return e==null?r:(r=e,s)},s.hue=function(e){return e==null?n:(n=e,MM(n)===`array`?(a=n[1]-n[0],a===0&&(n=n[1])):a=0,s)},s.lightness=function(e){return e==null?i:(MM(e)===`array`?(i=e,o=e[1]-e[0]):(i=[e,e],o=0),s)},s.scale=()=>GM.scale(s),s.hue(n),s}var Abe=`0123456789abcdef`,{floor:jbe,random:Mbe}=Math,Nbe=(e=Mbe)=>{let t=`#`;for(let n=0;n<6;n++)t+=Abe.charAt(jbe(e()*16));return new WM(t,`hex`)},{log:MN,pow:Pbe,floor:Fbe,abs:Ibe}=Math;function NN(e,t=null){let n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return MM(e)===`object`&&(e=Object.values(e)),e.forEach(e=>{t&&MM(e)===`object`&&(e=e[t]),e!=null&&!isNaN(e)&&(n.values.push(e),n.sum+=e,e<n.min&&(n.min=e),e>n.max&&(n.max=e),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(e,t)=>PN(n,e,t),n}function PN(e,t=`equal`,n=7){MM(e)==`array`&&(e=NN(e));let{min:r,max:i}=e,a=e.values.sort((e,t)=>e-t);if(n===1)return[r,i];let o=[];if(t.substr(0,1)===`c`&&(o.push(r),o.push(i)),t.substr(0,1)===`e`){o.push(r);for(let e=1;e<n;e++)o.push(r+e/n*(i-r));o.push(i)}else if(t.substr(0,1)===`l`){if(r<=0)throw Error(`Logarithmic scales are only possible for values > 0`);let e=Math.LOG10E*MN(r),t=Math.LOG10E*MN(i);o.push(r);for(let r=1;r<n;r++)o.push(Pbe(10,e+r/n*(t-e)));o.push(i)}else if(t.substr(0,1)===`q`){o.push(r);for(let e=1;e<n;e++){let t=(a.length-1)*e/n,r=Fbe(t);if(r===t)o.push(a[r]);else{let e=t-r;o.push(a[r]*(1-e)+a[r+1]*e)}}o.push(i)}else if(t.substr(0,1)===`k`){let e,t=a.length,s=Array(t),c=Array(n),l=!0,u=0,d=null;d=[],d.push(r);for(let e=1;e<n;e++)d.push(r+e/n*(i-r));for(d.push(i);l;){for(let e=0;e<n;e++)c[e]=0;for(let e=0;e<t;e++){let t=a[e],r=Number.MAX_VALUE,i;for(let a=0;a<n;a++){let n=Ibe(d[a]-t);n<r&&(r=n,i=a),c[i]++,s[e]=i}}let r=Array(n);for(let e=0;e<n;e++)r[e]=null;for(let n=0;n<t;n++)e=s[n],r[e]===null?r[e]=a[n]:r[e]+=a[n];for(let e=0;e<n;e++)r[e]*=1/c[e];l=!1;for(let e=0;e<n;e++)if(r[e]!==d[e]){l=!0;break}d=r,u++,u>200&&(l=!1)}let f={};for(let e=0;e<n;e++)f[e]=[];for(let n=0;n<t;n++)e=s[n],f[e].push(a[n]);let p=[];for(let e=0;e<n;e++)p.push(f[e][0]),p.push(f[e][f[e].length-1]);p=p.sort((e,t)=>e-t),o.push(p[0]);for(let e=1;e<p.length;e+=2){let t=p[e];!isNaN(t)&&o.indexOf(t)===-1&&o.push(t)}}return o}var Lbe=(e,t)=>{e=new WM(e),t=new WM(t);let n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},FN=.027,Rbe=5e-4,zbe=.1,IN=1.14,LN=.022,RN=1.414,Bbe=(e,t)=>{e=new WM(e),t=new WM(t),e.alpha()<1&&(e=sN(t,e,e.alpha(),`rgb`));let n=zN(...e.rgb()),r=zN(...t.rgb()),i=n>=LN?n:n+(LN-n)**+RN,a=r>=LN?r:r+(LN-r)**+RN,o=a**.56-i**.57,s=a**.65-i**.62,c=Math.abs(a-i)<Rbe?0:i<a?o*IN:s*IN;return(Math.abs(c)<zbe?0:c>0?c-FN:c+FN)*100};function zN(e,t,n){return .2126729*(e/255)**2.4+.7151522*(t/255)**2.4+.072175*(n/255)**2.4}var{sqrt:BN,pow:VN,min:Vbe,max:Hbe,atan2:HN,abs:UN,cos:WN,sin:GN,exp:Ube,PI:KN}=Math;function Wbe(e,t,n=1,r=1,i=1){var a=function(e){return 360*e/(2*KN)},o=function(e){return 2*KN*e/360};e=new WM(e),t=new WM(t);let[s,c,l]=Array.from(e.lab()),[u,d,f]=Array.from(t.lab()),p=(s+u)/2,m=(BN(VN(c,2)+VN(l,2))+BN(VN(d,2)+VN(f,2)))/2,h=.5*(1-BN(VN(m,7)/(VN(m,7)+VN(25,7)))),g=c*(1+h),_=d*(1+h),v=BN(VN(g,2)+VN(l,2)),y=BN(VN(_,2)+VN(f,2)),b=(v+y)/2,x=a(HN(l,g)),S=a(HN(f,_)),C=x>=0?x:x+360,w=S>=0?S:S+360,T=UN(C-w)>180?(C+w+360)/2:(C+w)/2,E=1-.17*WN(o(T-30))+.24*WN(o(2*T))+.32*WN(o(3*T+6))-.2*WN(o(4*T-63)),D=w-C;D=UN(D)<=180?D:w<=C?D+360:D-360,D=2*BN(v*y)*GN(o(D)/2);let O=u-s,k=y-v,A=1+.015*VN(p-50,2)/BN(20+VN(p-50,2)),j=1+.045*b,M=1+.015*b*E,N=30*Ube(-VN((T-275)/25,2)),P=-(2*BN(VN(b,7)/(VN(b,7)+VN(25,7))))*GN(2*o(N));return Hbe(0,Vbe(100,BN(VN(O/(n*A),2)+VN(k/(r*j),2)+VN(D/(i*M),2)+P*(k/(r*j))*(D/(i*M)))))}function Gbe(e,t,n=`lab`){e=new WM(e),t=new WM(t);let r=e.get(n),i=t.get(n),a=0;for(let e in r){let t=(r[e]||0)-(i[e]||0);a+=t*t}return Math.sqrt(a)}var Kbe=(...e)=>{try{return new WM(...e),!0}catch{return!1}},qbe={cool(){return DN([GM.hsl(180,1,.9),GM.hsl(250,.7,.4)])},hot(){return DN([`#000`,`#f00`,`#ff0`,`#fff`],[0,.25,.75,1]).mode(`rgb`)}},qN={OrRd:[`#fff7ec`,`#fee8c8`,`#fdd49e`,`#fdbb84`,`#fc8d59`,`#ef6548`,`#d7301f`,`#b30000`,`#7f0000`],PuBu:[`#fff7fb`,`#ece7f2`,`#d0d1e6`,`#a6bddb`,`#74a9cf`,`#3690c0`,`#0570b0`,`#045a8d`,`#023858`],BuPu:[`#f7fcfd`,`#e0ecf4`,`#bfd3e6`,`#9ebcda`,`#8c96c6`,`#8c6bb1`,`#88419d`,`#810f7c`,`#4d004b`],Oranges:[`#fff5eb`,`#fee6ce`,`#fdd0a2`,`#fdae6b`,`#fd8d3c`,`#f16913`,`#d94801`,`#a63603`,`#7f2704`],BuGn:[`#f7fcfd`,`#e5f5f9`,`#ccece6`,`#99d8c9`,`#66c2a4`,`#41ae76`,`#238b45`,`#006d2c`,`#00441b`],YlOrBr:[`#ffffe5`,`#fff7bc`,`#fee391`,`#fec44f`,`#fe9929`,`#ec7014`,`#cc4c02`,`#993404`,`#662506`],YlGn:[`#ffffe5`,`#f7fcb9`,`#d9f0a3`,`#addd8e`,`#78c679`,`#41ab5d`,`#238443`,`#006837`,`#004529`],Reds:[`#fff5f0`,`#fee0d2`,`#fcbba1`,`#fc9272`,`#fb6a4a`,`#ef3b2c`,`#cb181d`,`#a50f15`,`#67000d`],RdPu:[`#fff7f3`,`#fde0dd`,`#fcc5c0`,`#fa9fb5`,`#f768a1`,`#dd3497`,`#ae017e`,`#7a0177`,`#49006a`],Greens:[`#f7fcf5`,`#e5f5e0`,`#c7e9c0`,`#a1d99b`,`#74c476`,`#41ab5d`,`#238b45`,`#006d2c`,`#00441b`],YlGnBu:[`#ffffd9`,`#edf8b1`,`#c7e9b4`,`#7fcdbb`,`#41b6c4`,`#1d91c0`,`#225ea8`,`#253494`,`#081d58`],Purples:[`#fcfbfd`,`#efedf5`,`#dadaeb`,`#bcbddc`,`#9e9ac8`,`#807dba`,`#6a51a3`,`#54278f`,`#3f007d`],GnBu:[`#f7fcf0`,`#e0f3db`,`#ccebc5`,`#a8ddb5`,`#7bccc4`,`#4eb3d3`,`#2b8cbe`,`#0868ac`,`#084081`],Greys:[`#ffffff`,`#f0f0f0`,`#d9d9d9`,`#bdbdbd`,`#969696`,`#737373`,`#525252`,`#252525`,`#000000`],YlOrRd:[`#ffffcc`,`#ffeda0`,`#fed976`,`#feb24c`,`#fd8d3c`,`#fc4e2a`,`#e31a1c`,`#bd0026`,`#800026`],PuRd:[`#f7f4f9`,`#e7e1ef`,`#d4b9da`,`#c994c7`,`#df65b0`,`#e7298a`,`#ce1256`,`#980043`,`#67001f`],Blues:[`#f7fbff`,`#deebf7`,`#c6dbef`,`#9ecae1`,`#6baed6`,`#4292c6`,`#2171b5`,`#08519c`,`#08306b`],PuBuGn:[`#fff7fb`,`#ece2f0`,`#d0d1e6`,`#a6bddb`,`#67a9cf`,`#3690c0`,`#02818a`,`#016c59`,`#014636`],Viridis:[`#440154`,`#482777`,`#3f4a8a`,`#31678e`,`#26838f`,`#1f9d8a`,`#6cce5a`,`#b6de2b`,`#fee825`],Spectral:[`#9e0142`,`#d53e4f`,`#f46d43`,`#fdae61`,`#fee08b`,`#ffffbf`,`#e6f598`,`#abdda4`,`#66c2a5`,`#3288bd`,`#5e4fa2`],RdYlGn:[`#a50026`,`#d73027`,`#f46d43`,`#fdae61`,`#fee08b`,`#ffffbf`,`#d9ef8b`,`#a6d96a`,`#66bd63`,`#1a9850`,`#006837`],RdBu:[`#67001f`,`#b2182b`,`#d6604d`,`#f4a582`,`#fddbc7`,`#f7f7f7`,`#d1e5f0`,`#92c5de`,`#4393c3`,`#2166ac`,`#053061`],PiYG:[`#8e0152`,`#c51b7d`,`#de77ae`,`#f1b6da`,`#fde0ef`,`#f7f7f7`,`#e6f5d0`,`#b8e186`,`#7fbc41`,`#4d9221`,`#276419`],PRGn:[`#40004b`,`#762a83`,`#9970ab`,`#c2a5cf`,`#e7d4e8`,`#f7f7f7`,`#d9f0d3`,`#a6dba0`,`#5aae61`,`#1b7837`,`#00441b`],RdYlBu:[`#a50026`,`#d73027`,`#f46d43`,`#fdae61`,`#fee090`,`#ffffbf`,`#e0f3f8`,`#abd9e9`,`#74add1`,`#4575b4`,`#313695`],BrBG:[`#543005`,`#8c510a`,`#bf812d`,`#dfc27d`,`#f6e8c3`,`#f5f5f5`,`#c7eae5`,`#80cdc1`,`#35978f`,`#01665e`,`#003c30`],RdGy:[`#67001f`,`#b2182b`,`#d6604d`,`#f4a582`,`#fddbc7`,`#ffffff`,`#e0e0e0`,`#bababa`,`#878787`,`#4d4d4d`,`#1a1a1a`],PuOr:[`#7f3b08`,`#b35806`,`#e08214`,`#fdb863`,`#fee0b6`,`#f7f7f7`,`#d8daeb`,`#b2abd2`,`#8073ac`,`#542788`,`#2d004b`],Set2:[`#66c2a5`,`#fc8d62`,`#8da0cb`,`#e78ac3`,`#a6d854`,`#ffd92f`,`#e5c494`,`#b3b3b3`],Accent:[`#7fc97f`,`#beaed4`,`#fdc086`,`#ffff99`,`#386cb0`,`#f0027f`,`#bf5b17`,`#666666`],Set1:[`#e41a1c`,`#377eb8`,`#4daf4a`,`#984ea3`,`#ff7f00`,`#ffff33`,`#a65628`,`#f781bf`,`#999999`],Set3:[`#8dd3c7`,`#ffffb3`,`#bebada`,`#fb8072`,`#80b1d3`,`#fdb462`,`#b3de69`,`#fccde5`,`#d9d9d9`,`#bc80bd`,`#ccebc5`,`#ffed6f`],Dark2:[`#1b9e77`,`#d95f02`,`#7570b3`,`#e7298a`,`#66a61e`,`#e6ab02`,`#a6761d`,`#666666`],Paired:[`#a6cee3`,`#1f78b4`,`#b2df8a`,`#33a02c`,`#fb9a99`,`#e31a1c`,`#fdbf6f`,`#ff7f00`,`#cab2d6`,`#6a3d9a`,`#ffff99`,`#b15928`],Pastel2:[`#b3e2cd`,`#fdcdac`,`#cbd5e8`,`#f4cae4`,`#e6f5c9`,`#fff2ae`,`#f1e2cc`,`#cccccc`],Pastel1:[`#fbb4ae`,`#b3cde3`,`#ccebc5`,`#decbe4`,`#fed9a6`,`#ffffcc`,`#e5d8bd`,`#fddaec`,`#f2f2f2`]},JN=Object.keys(qN),YN=new Map(JN.map(e=>[e.toLowerCase(),e])),Jbe=typeof Proxy==`function`?new Proxy(qN,{get(e,t){let n=t.toLowerCase();if(YN.has(n))return e[YN.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(JN)}}):qN,Ybe=(...e)=>{e=NM(e,`cmyk`);let[t,n,r,i]=e,a=e.length>4?e[4]:1;return i===1?[0,0,0,a]:[t>=1?0:255*(1-t)*(1-i),n>=1?0:255*(1-n)*(1-i),r>=1?0:255*(1-r)*(1-i),a]},{max:XN}=Math,Xbe=(...e)=>{let[t,n,r]=NM(e,`rgb`);t/=255,n/=255,r/=255;let i=1-XN(t,XN(n,r)),a=i<1?1/(1-i):0;return[(1-t-i)*a,(1-n-i)*a,(1-r-i)*a,i]};WM.prototype.cmyk=function(){return Xbe(this._rgb)},Object.assign(GM,{cmyk:(...e)=>new WM(...e,`cmyk`)}),UM.format.cmyk=Ybe,UM.autodetect.push({p:2,test:(...e)=>{if(e=NM(e,`cmyk`),MM(e)===`array`&&e.length===4)return`cmyk`}});var Zbe=(...e)=>{let t=NM(e,`hsla`),n=PM(e)||`lsa`;return t[0]=RM(t[0]||0)+`deg`,t[1]=RM(t[1]*100)+`%`,t[2]=RM(t[2]*100)+`%`,n===`hsla`||t.length>3&&t[3]<1?(t[3]=`/ `+(t.length>3?t[3]:1),n=`hsla`):t.length=3,`${n.substr(0,3)}(${t.join(` `)})`},Qbe=(...e)=>{let t=NM(e,`lab`),n=PM(e)||`lab`;return t[0]=RM(t[0])+`%`,t[1]=RM(t[1]),t[2]=RM(t[2]),n===`laba`||t.length>3&&t[3]<1?t[3]=`/ `+(t.length>3?t[3]:1):t.length=3,`lab(${t.join(` `)})`},$be=(...e)=>{let t=NM(e,`lch`),n=PM(e)||`lab`;return t[0]=RM(t[0])+`%`,t[1]=RM(t[1]),t[2]=isNaN(t[2])?`none`:RM(t[2])+`deg`,n===`lcha`||t.length>3&&t[3]<1?t[3]=`/ `+(t.length>3?t[3]:1):t.length=3,`lch(${t.join(` `)})`},exe=(...e)=>{let t=NM(e,`lab`);return t[0]=RM(t[0]*100)+`%`,t[1]=zM(t[1]),t[2]=zM(t[2]),t.length>3&&t[3]<1?t[3]=`/ `+(t.length>3?t[3]:1):t.length=3,`oklab(${t.join(` `)})`},ZN=(...e)=>{let[t,n,r,...i]=NM(e,`rgb`),[a,o,s]=xN(t,n,r),[c,l,u]=uN(a,o,s);return[c,l,u,...i.length>0&&i[0]<1?[i[0]]:[]]},txe=(...e)=>{let t=NM(e,`lch`);return t[0]=RM(t[0]*100)+`%`,t[1]=zM(t[1]),t[2]=isNaN(t[2])?`none`:RM(t[2])+`deg`,t.length>3&&t[3]<1?t[3]=`/ `+(t.length>3?t[3]:1):t.length=3,`oklch(${t.join(` `)})`},{round:QN}=Math,nxe=(...e)=>{let t=NM(e,`rgba`),n=PM(e)||`rgb`;if(n.substr(0,3)===`hsl`)return Zbe(vN(t),n);if(n.substr(0,3)===`lab`){let e=QM();ZM(`d50`);let r=Qbe(nN(t),n);return ZM(e),r}if(n.substr(0,3)===`lch`){let e=QM();ZM(`d50`);let r=$be(dN(t),n);return ZM(e),r}return n.substr(0,5)===`oklab`?exe(xN(t)):n.substr(0,5)===`oklch`?txe(ZN(t)):(t[0]=QN(t[0]),t[1]=QN(t[1]),t[2]=QN(t[2]),(n===`rgba`||t.length>3&&t[3]<1)&&(t[3]=`/ `+(t.length>3?t[3]:1),n=`rgba`),`${n.substr(0,3)}(${t.slice(0,n===`rgb`?3:4).join(` `)})`)},$N=(...e)=>{e=NM(e,`lch`);let[t,n,r,...i]=e,[a,o,s]=cN(t,n,r),[c,l,u]=bN(a,o,s);return[c,l,u,...i.length>0&&i[0]<1?[i[0]]:[]]},eP=`((?:-?\\d+)|(?:-?\\d+(?:\\.\\d+)?)%|none)`,tP=`((?:-?(?:\\d+(?:\\.\\d*)?|\\.\\d+)%?)|none)`,nP=`((?:-?(?:\\d+(?:\\.\\d*)?|\\.\\d+)%)|none)`,rP=`\\s*`,iP=`\\s+`,aP=`\\s*,\\s*`,oP=`((?:-?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:deg)?)|none)`,sP=`\\s*(?:\\/\\s*((?:[01]|[01]?\\.\\d+)|\\d+(?:\\.\\d+)?%))?`,cP=RegExp(`^rgba?\\(`+rP+[eP,eP,eP].join(iP)+sP+`\\)$`),lP=RegExp(`^rgb\\(`+rP+[eP,eP,eP].join(aP)+rP+`\\)$`),uP=RegExp(`^rgba\\(`+rP+[eP,eP,eP,tP].join(aP)+rP+`\\)$`),dP=RegExp(`^hsla?\\(`+rP+[oP,nP,nP].join(iP)+sP+`\\)$`),fP=RegExp(`^hsl?\\(`+rP+[oP,nP,nP].join(aP)+rP+`\\)$`),pP=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,mP=RegExp(`^lab\\(`+rP+[tP,tP,tP].join(iP)+sP+`\\)$`),hP=RegExp(`^lch\\(`+rP+[tP,tP,oP].join(iP)+sP+`\\)$`),gP=RegExp(`^oklab\\(`+rP+[tP,tP,tP].join(iP)+sP+`\\)$`),_P=RegExp(`^oklch\\(`+rP+[tP,tP,oP].join(iP)+sP+`\\)$`),{round:vP}=Math,yP=e=>e.map((e,t)=>t<=2?kM(vP(e),0,255):e),bP=(e,t=0,n=100,r=!1)=>(typeof e==`string`&&e.endsWith(`%`)&&(e=parseFloat(e.substring(0,e.length-1))/100,e=r?t+(e+1)*.5*(n-t):t+e*(n-t)),+e),xP=(e,t)=>e===`none`?t:e,SP=e=>{if(e=e.toLowerCase().trim(),e===`transparent`)return[0,0,0,0];let t;if(UM.format.named)try{return UM.format.named(e)}catch{}if((t=e.match(cP))||(t=e.match(lP))){let e=t.slice(1,4);for(let t=0;t<3;t++)e[t]=+bP(xP(e[t],0),0,255);e=yP(e);let n=t[4]===void 0?1:+bP(t[4],0,1);return e[3]=n,e}if(t=e.match(uP)){let e=t.slice(1,5);for(let t=0;t<4;t++)e[t]=+bP(e[t],0,255);return e}if((t=e.match(dP))||(t=e.match(fP))){let e=t.slice(1,4);e[0]=+xP(e[0].replace(`deg`,``),0),e[1]=bP(xP(e[1],0),0,100)*.01,e[2]=bP(xP(e[2],0),0,100)*.01;let n=yP(_N(e));return n[3]=t[4]===void 0?1:+bP(t[4],0,1),n}if(t=e.match(pP)){let e=t.slice(1,4);e[1]*=.01,e[2]*=.01;let n=_N(e);for(let e=0;e<3;e++)n[e]=vP(n[e]);return n[3]=+t[4],n}if(t=e.match(mP)){let e=t.slice(1,4);e[0]=bP(xP(e[0],0),0,100),e[1]=bP(xP(e[1],0),-125,125,!0),e[2]=bP(xP(e[2],0),-125,125,!0);let n=QM();ZM(`d50`);let r=yP($M(e));return ZM(n),r[3]=t[4]===void 0?1:+bP(t[4],0,1),r}if(t=e.match(hP)){let e=t.slice(1,4);e[0]=bP(e[0],0,100),e[1]=bP(xP(e[1],0),0,150,!1),e[2]=+xP(e[2].replace(`deg`,``),0);let n=QM();ZM(`d50`);let r=yP(lN(e));return ZM(n),r[3]=t[4]===void 0?1:+bP(t[4],0,1),r}if(t=e.match(gP)){let e=t.slice(1,4);e[0]=bP(xP(e[0],0),0,1),e[1]=bP(xP(e[1],0),-.4,.4,!0),e[2]=bP(xP(e[2],0),-.4,.4,!0);let n=yP(bN(e));return n[3]=t[4]===void 0?1:+bP(t[4],0,1),n}if(t=e.match(_P)){let e=t.slice(1,4);e[0]=bP(xP(e[0],0),0,1),e[1]=bP(xP(e[1],0),0,.4,!1),e[2]=+xP(e[2].replace(`deg`,``),0);let n=yP($N(e));return n[3]=t[4]===void 0?1:+bP(t[4],0,1),n}};SP.test=e=>cP.test(e)||dP.test(e)||mP.test(e)||hP.test(e)||gP.test(e)||_P.test(e)||lP.test(e)||uP.test(e)||fP.test(e)||pP.test(e)||e===`transparent`,WM.prototype.css=function(e){return nxe(this._rgb,e)},GM.css=(...e)=>new WM(...e,`css`),UM.format.css=SP,UM.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&MM(e)===`string`&&SP.test(e))return`css`}}),UM.format.gl=(...e)=>{let t=NM(e,`rgba`);return t[0]*=255,t[1]*=255,t[2]*=255,t},GM.gl=(...e)=>new WM(...e,`gl`),WM.prototype.gl=function(){let e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},WM.prototype.hex=function(e){return YM(this._rgb,e)},GM.hex=(...e)=>new WM(...e,`hex`),UM.format.hex=qM,UM.autodetect.push({p:4,test:(e,...t)=>{if(!t.length&&MM(e)===`string`&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return`hex`}});var{log:CP}=Math,wP=e=>{let t=e/100,n,r,i;return t<66?(n=255,r=t<6?0:-155.25485562709179-.44596950469579133*(r=t-2)+104.49216199393888*CP(r),i=t<20?0:-254.76935184120902+.8274096064007395*(i=t-10)+115.67994401066147*CP(i)):(n=351.97690566805693+.114206453784165*(n=t-55)-40.25366309332127*CP(n),r=325.4494125711974+.07943456536662342*(r=t-50)-28.0852963507957*CP(r),i=255),[n,r,i,1]},{round:rxe}=Math,ixe=(...e)=>{let t=NM(e,`rgb`),n=t[0],r=t[2],i=1e3,a=4e4,o;for(;a-i>.4;){o=(a+i)*.5;let e=wP(o);e[2]/e[0]>=r/n?a=o:i=o}return rxe(o)};WM.prototype.temp=WM.prototype.kelvin=WM.prototype.temperature=function(){return ixe(this._rgb)};var TP=(...e)=>new WM(...e,`temp`);Object.assign(GM,{temp:TP,kelvin:TP,temperature:TP}),UM.format.temp=UM.format.kelvin=UM.format.temperature=wP,WM.prototype.oklch=function(){return ZN(this._rgb)},Object.assign(GM,{oklch:(...e)=>new WM(...e,`oklch`)}),UM.format.oklch=$N,UM.autodetect.push({p:2,test:(...e)=>{if(e=NM(e,`oklch`),MM(e)===`array`&&e.length===3)return`oklch`}}),Object.assign(GM,{analyze:NN,average:ybe,bezier:Tbe,blend:kN,brewer:Jbe,Color:WM,colors:KM,contrast:Lbe,contrastAPCA:Bbe,cubehelix:kbe,deltaE:Wbe,distance:Gbe,input:UM,interpolate:sN,limits:PN,mix:sN,random:Nbe,scale:DN,scales:qbe,valid:Kbe});var EP=GM,axe=Gn(`flex flex-col space-y-sm`,{variants:{variant:{elevated:`rounded-xl bg-surface p-md shadow-2xs`,outline:`rounded-xl border border-border p-md`,ghost:``}},defaultVariants:{variant:`elevated`}}),oxe=Gn(`overflow-hidden border border-border hover:cursor-pointer focus:outline-2 focus:outline-offset-2`,{variants:{size:{small:`size-sm rounded-md`,medium:`size-md rounded-lg`,large:`size-lg rounded-xl`}},defaultVariants:{size:`medium`}}),DP=[{label:`RGB`,value:`rgb`,getValue:e=>e.rgb(),parseValue:e=>{let t=e.split(`,`).map(e=>parseInt(e.trim(),10));if(t.length===3&&t.every(e=>!isNaN(e)))return EP.rgb(t[0],t[1],t[2])}},{label:`CSS`,value:`css`,getValue:e=>e.css(),parseValue:e=>{try{return EP(e)}catch{return}}},{label:`HEX`,value:`hex`,getValue:e=>e.hex(`rgb`),parseValue:e=>{try{return EP(e)}catch{return}}},{label:`HSL`,value:`hsl`,getValue:e=>e.hsl(),parseValue:e=>{try{return EP(e)}catch{return}}},{label:`HSV`,value:`hsv`,getValue:e=>e.hsv(),parseValue:e=>{try{return EP(e)}catch{return}}}],OP=m.default.createContext(null),kP=(e,t)=>{try{return EP(typeof e==`string`?e.trim():e)}catch{return t}},sxe=(e,t)=>{switch(t.type){case`set_color`:{let[n,r,i]=t.color.hsv();return{...e,hue:n==null||Number.isNaN(n)?e.hue:n,saturation:i===0||r==null||Number.isNaN(r)?e.saturation:r,value:i,alpha:t.color.alpha()}}case`set_hue`:return{...e,hue:t.hue};case`set_saturation`:return{...e,saturation:t.saturation};case`set_value`:return{...e,value:t.value};case`set_saturation_value`:return{...e,saturation:t.saturation,value:t.value};case`set_alpha`:return{...e,alpha:t.alpha};case`set_lightness`:return{...e,value:t.lightness};case`set_value_type`:return{...e,valueType:t.valueType};case`set_palette`:return{...e,palette:t.palette};case`add_palette_color`:return{...e,palette:[...e.palette,t.color]};default:return e}},cxe=({variant:e,value:t,defaultColor:r,palette:i,defaultPalette:a,onPaletteChange:o,paletteLimit:s,defaultValueType:c,onValueChange:l,className:u,children:d,ref:f,...p})=>{let[h,g]=m.default.useReducer(sxe,{controlledValue:t,defaultColor:r,defaultPalette:a},({controlledValue:e,defaultColor:t,defaultPalette:n})=>{let r=kP(e??t??`#ffffff`,EP(`#ffffff`)),[a,o,s]=r.hsv();return{hue:a==null||Number.isNaN(a)?0:a,saturation:o==null||Number.isNaN(o)?0:o,value:s,alpha:r.alpha(),valueType:DP.find(e=>e.value===c)??DP[0],palette:(i??n??[]).map(e=>EP(e))}}),{hue:_,saturation:v,value:y,alpha:b,valueType:x,palette:S}=h,C=m.default.useMemo(()=>EP.hsv(_,v,y).alpha(b),[_,v,y,b]),w=_,T=v,E=y,D=b,O=m.default.useRef(void 0);m.default.useEffect(()=>{if(t===void 0)return;let e=kP(t,C),n=e.hex(`rgba`);n!==O.current&&(O.current=n,n!==C.hex(`rgba`)&&g({type:`set_color`,color:e}))},[t,C]);let k=m.default.useRef(void 0);m.default.useEffect(()=>{if(i===void 0)return;let e=i.map(e=>EP(e)),t=e.map(e=>e.hex(`rgba`)).join(`|`);t!==k.current&&(k.current=t,g({type:`set_palette`,palette:e}))},[i]);let A=m.default.useCallback(e=>{g({type:`set_color`,color:e}),l?.(e.hex())},[l]),j=m.default.useCallback(e=>{g({type:`set_hue`,hue:e}),l?.(EP.hsv(e,T,E).alpha(D).hex())},[D,T,E,l]),M=m.default.useCallback(e=>{g({type:`set_saturation`,saturation:e}),l?.(EP.hsv(w,e,E).alpha(D).hex())},[D,w,E,l]),N=m.default.useCallback(e=>{g({type:`set_value`,value:e}),l?.(EP.hsv(w,T,e).alpha(D).hex())},[D,w,T,l]),P=m.default.useCallback((e,t)=>{g({type:`set_saturation_value`,saturation:e,value:t}),l?.(EP.hsv(w,e,t).alpha(D).hex())},[D,w,l]),F=m.default.useCallback(e=>A(C.alpha(e)),[C,A]),I=m.default.useCallback(e=>A(C.set(`hsl.l`,e)),[C,A]),L=m.default.useCallback(e=>g({type:`set_value_type`,valueType:e}),[]),R=m.default.useCallback(e=>{k.current=e.map(e=>e.hex(`rgba`)).join(`|`),g({type:`set_palette`,palette:e}),o?.(e.map(e=>e.hex()))},[o]),z=m.default.useCallback(e=>{if(s&&S.length>=s)return;let t=[...S,e];k.current=t.map(e=>e.hex(`rgba`)).join(`|`),g({type:`add_palette_color`,color:e}),o?.(t.map(e=>e.hex()))},[S,s,o]);return(0,n.jsx)(OP.Provider,{value:{color:C,setColor:A,hue:w,saturation:T,value:E,alpha:D,setHue:j,setSaturation:M,setValue:N,setSaturationValue:P,setAlpha:F,setLightness:I,valueType:x,setValueType:L,palette:S,setPalette:R,addPaletteColor:z,paletteLimit:s},children:(0,n.jsx)(`div`,{className:X(axe({variant:e}),u),ref:f,...p,children:d})})},AP=()=>{let e=m.default.useContext(OP);if(!e)throw Error(`useColorPicker must be used within a ColorPicker`);return e},lxe=({className:e,ref:t,...r})=>{let{color:i,hue:a,saturation:o,value:s,setSaturationValue:c}=AP(),l=EP.hsv(a,1,1).hex(),u=e=>{let t=e.currentTarget.getBoundingClientRect(),n=Math.min(Math.max((e.clientX-t.left)/t.width,0),1),r=Math.min(Math.max(1-(e.clientY-t.top)/t.height,0),1);c(n,r)},d=e=>{e.currentTarget.setPointerCapture(e.pointerId),u(e)};return(0,n.jsx)(`div`,{...r,ref:t,className:X(`relative aspect-square grow touch-none rounded-lg active:cursor-grabbing`,e),style:{background:`
52
- linear-gradient(to top, black, transparent),
53
- linear-gradient(to right, white, ${l})
54
- `,...r.style},onPointerDown:d,onPointerMove:e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&u(e)},children:(0,n.jsx)(`div`,{className:`pointer-events-none absolute size-md -translate-x-1/2 -translate-y-1/2 rounded-full border-3 border-white`,style:{left:`${o*100}%`,top:`${(1-s)*100}%`,backgroundColor:i.hex()}})})},uxe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex flex-col gap-sm`,e),ref:r,...i,children:t}),dxe=()=>Array.from({length:361},(e,t)=>EP.hsl(t,1,.5).hex()),fxe=e=>Array.from({length:101},(t,n)=>EP(e).alpha(n/100).css()),pxe=e=>Array.from({length:101},(t,n)=>EP(e).set(`hsl.l`,n/100).css()),mxe=({className:e,ref:t,...r})=>{let{hue:i,setHue:a}=AP(),o=e=>{a(Array.isArray(e)?e[0]:e)};return(0,n.jsx)(OM,{...r,min:0,max:360,value:i,onValueChange:o,trackStyle:dxe(),className:X(``,e),ref:t})},jP=({variant:e,size:t,className:r,children:i,ref:a,...o})=>(0,n.jsx)(`div`,{className:X(Kv({variant:e,size:t}),r),ref:a,...o,children:i}),hxe=Gn(`inline-flex items-center gap-2xs text-on-surface-variant not-first:pl-2xs group-aria-invalid:text-error-on-container`,{variants:{size:{small:`style-text-default--1 [&>svg]:size-xs`,medium:`style-text-default-0 [&>svg]:size-sm`,large:`style-text-default-1 [&>svg]:size-md`}},defaultVariants:{size:`medium`}}),MP=({size:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`div`,{className:X(hxe({size:e}),t),ref:i,...a,children:r}),NP=({size:e=`medium`,className:t,ref:r,...i})=>{let a=(0,m.useRef)(null),[o,s]=(0,m.useState)(i.defaultValue||i.value||`#000000`);if(i.type===`color`){let c=i.value!==void 0,l=(c?i.value:o)||`#000000`,{onChange:u,defaultValue:d,value:f,...p}=i;return(0,n.jsxs)(`button`,{"aria-label":`Open color picker`,className:X(`relative flex size-full items-center justify-start hover:cursor-pointer`,t),disabled:i.disabled,onClick:()=>a.current?.click(),type:`button`,children:[(0,n.jsx)(`div`,{className:X(`absolute top-1/2 left-0 aspect-square h-7/12 -translate-y-1/2`,e===`small`&&`rounded-md`,e===`medium`&&`rounded-lg`,e===`large`&&`rounded-xl`),style:{backgroundColor:l}}),(0,n.jsx)(im,{className:`peer pointer-events-none invisible absolute top-lg`,defaultValue:c?void 0:l,onChange:e=>{c||s(e.currentTarget.value),u?.(e)},ref:e=>{if(a.current=e,typeof r==`function`){r(e);return}r&&typeof r==`object`&&(r.current=e)},type:`color`,value:c?l:void 0,...p}),(0,n.jsx)(`p`,{className:X(`text-left`,e===`small`&&`pr-xs pl-lg style-text-default--1`,e===`medium`&&`pl-[calc(var(--dawn-spacing-lg)+6px)] style-text-default-0`,e===`large`&&`pl-2xl style-text-default-1`),children:l})]})}return(0,n.jsx)(im,{className:X(`w-full grow text-ellipsis outline-none placeholder:opacity-60 disabled:cursor-not-allowed`,t),ref:r,...i})},gxe=Gn(`relative shrink-0 rounded-full`,{variants:{orientation:{horizontal:`w-full`,vertical:`h-full`},style:{rounded:`rounded-full`,square:`rounded-none`},variant:{default:`bg-neutral-border`,strong:`bg-neutral-border-strong`},weight:{thick:`[&_[data-label]]:style-text-prose-0`,medium:`[&_[data-label]]:style-text-prose--1`,thin:`[&_[data-label]]:style-text-prose--2`,thinnest:`[&_[data-label]]:style-text-prose--2`}},defaultVariants:{orientation:`horizontal`,style:`rounded`,variant:`default`,weight:`thinnest`},compoundVariants:[{orientation:`horizontal`,weight:`thick`,className:`h-[8px]`},{orientation:`horizontal`,weight:`medium`,className:`h-[4px]`},{orientation:`horizontal`,weight:`thin`,className:`h-[2px]`},{orientation:`horizontal`,weight:`thinnest`,className:`h-px`},{orientation:`vertical`,weight:`thick`,className:`w-[8px]`},{orientation:`vertical`,weight:`medium`,className:`w-[4px]`},{orientation:`vertical`,weight:`thin`,className:`w-[2px]`},{orientation:`vertical`,weight:`thinnest`,className:`w-px`}]}),PP=({orientation:e,weight:t,style:r,variant:i,children:a,className:o,labelClassName:s,ref:c,...l})=>(0,n.jsx)(rp,{className:X(`relative`,gxe({orientation:e,weight:t,style:r,variant:i}),o),orientation:e,ref:c,...l,children:(0,n.jsx)(`span`,{"data-label":!0,className:X(`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-surface-background px-2xs whitespace-nowrap text-on-surface-variant`,s),children:a})}),_xe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(PP,{className:X(`h-2/4`,e),ref:r,...i,children:t}),FP=({children:e,...t})=>(0,n.jsx)(koe,{...t,children:e}),vxe=({className:e,ref:t,children:r,...i})=>(0,n.jsx)(eg,{className:X(`style-text-prose--1`,e),ref:t,...i,children:r}),IP=({className:e,ref:t,children:r,...i})=>(0,n.jsx)(Kh,{children:(0,n.jsx)(Yh,{className:X(`h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom,transform] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none`),ref:t,sideOffset:8,...i,children:(0,n.jsxs)(Zh,{className:`relative z-99 h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) overflow-hidden rounded-2xl bg-surface-3 text-on-surface shadow-md transition-[width,height,opacity,scale] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-ending-style:scale-90 data-ending-style:opacity-0 data-instant:transition-none data-starting-style:scale-90 data-starting-style:opacity-0`,children:[(0,n.jsx)(Qh,{className:`flex transition-[left] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-[side=bottom]:top-[-8px] data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-8px] data-[side=top]:rotate-180`}),(0,n.jsx)(tg,{className:X(`relative h-(--popup-height,auto) w-(--popup-width,auto) max-w-full overflow-clip p-[1rem] transition-[width,height] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] **:data-current:w-[calc(var(--popup-width)-2rem)] **:data-current:translate-x-0 **:data-current:opacity-100 **:data-current:transition-[translate,opacity] **:data-current:duration-[350ms,175ms] **:data-current:ease-[cubic-bezier(0.22,1,0.36,1)] **:data-previous:w-[calc(var(--popup-width)-2rem)] **:data-previous:translate-x-0 **:data-previous:opacity-100 **:data-previous:transition-[translate,opacity] **:data-previous:duration-[350ms,175ms] **:data-previous:ease-[cubic-bezier(0.22,1,0.36,1)] **:data-[activation-direction~='left']:data-previous:data-ending-style:translate-x-1/2 **:data-[activation-direction~='left']:data-previous:data-ending-style:opacity-0 **:data-[activation-direction~='left']:data-current:data-starting-style:-translate-x-1/2 **:data-[activation-direction~='left']:data-current:data-starting-style:opacity-0 **:data-[activation-direction~='right']:data-previous:data-ending-style:-translate-x-1/2 **:data-[activation-direction~='right']:data-previous:data-ending-style:opacity-0 **:data-[activation-direction~='right']:data-current:data-starting-style:translate-x-1/2 **:data-[activation-direction~='right']:data-current:data-starting-style:opacity-0`,e),children:r})]})})}),LP=({className:e,ref:t,children:r,...i})=>(0,n.jsx)($h,{className:X(`flex items-center gap-2xs style-text-strong-0 [&>svg]:size-sm`,e),ref:t,...i,children:r}),RP=({className:e,ref:t,children:r,...i})=>(0,n.jsx)(Wh,{className:X(`px-xs`,e),ref:t,...i,render:r}),zP=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex flex-col pb-xs`,e),ref:r,...i,children:t}),BP=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`space-y-3xs`,e),ref:r,...i,children:t}),yxe=({variant:e,tone:t,className:r,children:i,ref:a,...o})=>e===`ghost`&&t===`neutral`?(0,n.jsx)(Wv,{variant:e,tone:t,className:X(`hover:bg-neutral-container-high!`,r),ref:a,...o,children:i}):(0,n.jsx)(Wv,{variant:e,tone:t,className:X(``,r),ref:a,...o,children:i}),bxe=Foe(),xxe=({showPopover:e=!1,showTransparencyField:t=!0,className:r,children:i,ref:a,...o})=>{let{color:s,setColor:c,valueType:l}=AP(),[u,d]=m.default.useState(l.getValue(s)),[f,p]=m.default.useState(Math.round(s.alpha()*100).toString()),[h,g]=m.default.useState(s),[_,v]=m.default.useState(l);(s!==h||l!==_)&&(g(s),v(l),d(l.getValue(s)),p(Math.round(s.alpha()*100).toString()));let y=e=>{d(e)},b=e=>{p(e)},x=()=>{let e=l.parseValue(u);e&&c(e)},S=()=>{let e=parseFloat(f);Number.isNaN(e)||c(s.alpha(e/100))};return(0,n.jsxs)(jP,{variant:`secondary`,className:X(``,r),ref:a,...o,children:[e?(0,n.jsxs)(FP,{children:[(0,n.jsx)(RP,{nativeButton:!1,children:(0,n.jsx)(MP,{style:{backgroundColor:s.hex()},className:`aspect-square h-1/2 rounded-lg hover:cursor-pointer`})}),(0,n.jsx)(IP,{children:(0,n.jsx)(BP,{className:`flex w-[300px] flex-col gap-sm`,children:i})})]}):(0,n.jsx)(MP,{style:{backgroundColor:s.hex()},className:`aspect-square size-md rounded-lg`}),(0,n.jsx)(NP,{onBlur:x,onValueChange:y,value:u,className:`uppercase`}),t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(PP,{orientation:`vertical`,className:`h-md`}),(0,n.jsx)(MP,{children:(0,n.jsx)(gi,{weight:`bold`})}),(0,n.jsx)(NP,{type:`number`,min:0,max:100,value:f,onValueChange:b,onBlur:S,className:`w-xl`})]})]})},Sxe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`span`,{className:X(`style-text-default-0`,e),ref:r,...i,children:t}),Cxe=({className:e,children:t,ref:r,...i})=>{let{palette:a,paletteLimit:o}=AP(),s=o&&a.length>=o;return o?(0,n.jsxs)(`span`,{className:X(`style-text-prose--2`,s?`text-error-default`:`text-on-surface-variant`,e),ref:r,...i,children:[t,a.length,` / `,o]}):null},VP=({size:e,color:t,className:r,children:i,ref:a,...o})=>{let{setColor:s}=AP();return(0,n.jsxs)(`button`,{onClick:()=>{s(EP(t))},className:X(oxe({size:e}),r),ref:a,style:{color:t},...o,children:[i,(0,n.jsx)(`div`,{className:`size-full`,style:{backgroundColor:t}})]})},wxe=({className:e,children:t,ref:r,...i})=>{let{palette:a}=AP();return(0,n.jsxs)(`ul`,{className:X(`flex flex-wrap items-center justify-start gap-2xs`,e),ref:r,...i,children:[a.map((e,t)=>(0,n.jsx)(VP,{color:e.css(),size:`medium`},t)),t]})},Txe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex items-center justify-between gap-xs`,e),ref:r,...i,children:t}),Exe=({className:e,ref:t,...r})=>{let{color:i,setColor:a}=AP(),o=i.alpha(),s=e=>{let t=Array.isArray(e)?e[0]:e;a(i.alpha(t/100))};return(0,n.jsx)(OM,{...r,min:0,max:100,value:o*100,onValueChange:s,trackStyle:fxe(i.hex()),className:X(``,e),ref:t})},Dxe=({className:e,children:t,ref:r,...i})=>{let{valueType:a,setValueType:o}=AP();return(0,n.jsxs)(fM,{value:a.value,onValueChange:e=>{o(DP.find(t=>t.value===e)??DP[0])},children:[(0,n.jsxs)(_M,{variant:`secondary`,className:X(``,e),ref:r,...i,children:[t,(0,n.jsx)(vM,{children:e=>DP.find(t=>t.value===e)?.label??e}),(0,n.jsx)(hM,{children:(0,n.jsx)(Xr,{weight:`bold`})})]}),(0,n.jsx)(gM,{sideOffset:8,children:(0,n.jsx)(mM,{children:DP.map(({label:e,value:t})=>(0,n.jsx)(pM,{value:t,children:e},e))})})]})},Oxe=({className:e,ref:t,...r})=>{let{color:i,setColor:a}=AP(),o=i.get(`hsl.l`),s=Number.isNaN(o)?0:o,c=e=>{let t=Array.isArray(e)?e[0]:e;a(i.set(`hsl.l`,t/100))};return(0,n.jsx)(OM,{...r,min:0,max:100,value:s*100,onValueChange:c,trackStyle:pxe(i.hex()),className:X(``,e),ref:t})},kxe=({children:e,...t})=>(0,n.jsx)(_ie,{...t,children:e}),Axe=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(cf,{className:X(`inline-flex h-lg items-center justify-center gap-xs rounded-lg bg-neutral-container pr-3xs pl-xs style-text-default-0 text-neutral-on-container`,e),ref:r,...i,children:[t,(0,n.jsx)(lf,{"aria-label":`Remove`,render:e=>(0,n.jsx)(Wv,{onClick:e.onClick,variant:`ghost`,tone:`error`,size:`iconExtraSmall`,children:(0,n.jsx)(wi,{className:`size-sm`,weight:`bold`})})})]}),jxe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(of,{"data-chips":!0,className:X(`group flex size-full flex-wrap items-center gap-2xs empty:hidden`,e),ref:r,...i,children:t}),Mxe=({children:e,...t})=>(0,n.jsx)(ed,{...t,children:e}),Nxe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Nd,{className:X(`max-h-[min(23rem,var(--available-height))] scroll-py-[0.5rem] overflow-y-auto overscroll-contain p-xs empty:m-[0px] empty:p-[0px]`,e),ref:r,...i,children:t}),Pxe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(wd,{className:X(`block pb-3xs`,e),ref:r,...i,children:t}),Fxe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Td,{className:X(`sticky top-[0px] z-1 my-[0px] mr-[0px] -ml-2xs bg-surface-2 px-sm pt-2xs pb-3xs style-text-strong--2 text-on-surface-variant`,e),ref:r,...i,children:t}),Ixe=({inline:e=!1,variant:t,className:r,children:i,ref:a,...o})=>{let s=m.default.useId();return e?(0,n.jsx)(`div`,{className:`h-(--input-container-height) py-2xs pr-2xs`,children:(0,n.jsx)(Gu,{className:X(`h-xl w-full rounded-lg bg-surface-low px-sm outline-border transition-all not-active:outline-1 focus-within:outline-2 hover:outline-2 focus:caret-brand-default focus:outline-brand-border data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50`,`placeholder:opacity-60`,`disabled:cursor-not-allowed`,`text-ellipsis`,r),id:s,ref:a,...o})}):(0,n.jsxs)(jP,{variant:t,className:X(`flex flex-wrap py-xs [&:has([data-chips]:empty)>[role=separator]]:hidden [&:has([data-chips]:not(:empty))]:rounded-xl [&:not(:has([data-chips]))>[role=separator]]:hidden`,r),children:[i,(0,n.jsx)(PP,{weight:`thinnest`}),(0,n.jsxs)(qu,{className:`relative flex w-full items-center justify-between [&>input]:pr-[2rem] has-[.combobox-clear]:[&>input]:pr-[calc(0.5rem+1.5rem*2)]`,children:[(0,n.jsx)(Gu,{className:X(`w-full text-ellipsis outline-none placeholder:opacity-60 disabled:cursor-not-allowed`,r),id:s,ref:a,...o}),(0,n.jsxs)(MP,{children:[(0,n.jsx)(Xu,{"aria-label":`Clear selection`,keepMounted:!0,render:e=>(0,n.jsx)(Wv,{onClick:e.onClick,size:`iconExtraSmall`,variant:`ghost`,tone:`error`,children:(0,n.jsx)(wi,{weight:`bold`})})}),(0,n.jsx)(Ru,{"aria-label":`Open popup`,render:(e,t)=>(0,n.jsx)(Wv,{onClick:e.onClick,size:`iconExtraSmall`,variant:t.open?`fill`:`ghost`,tone:`brand`,children:(0,n.jsx)(Wr,{weight:`bold`})})})]})]})]})},HP=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(Ad,{className:X(`mr-2xs grid cursor-default grid-cols-[1fr_0.75rem] items-center gap-xs rounded-md px-2xs py-3xs style-text-default-0 select-none group-data-[side=none]:pr-xs group-data-[side=none]:leading-lg first-of-type:mt-2xs last-of-type:mb-2xs hover:cursor-pointer data-highlighted:relative data-highlighted:z-0 data-highlighted:bg-neutral-container-high data-highlighted:text-neutral-on-container data-highlighted:before:absolute data-highlighted:before:inset-x-3xs data-highlighted:before:inset-y-[0px] data-highlighted:before:z-[-1] data-highlighted:before:rounded-sm data-selected:bg-neutral-default data-selected:text-neutral-on-default pointer-coarse:py-xs`,e),ref:r,...i,children:[(0,n.jsx)(`span`,{className:`col-start-1`,children:t}),(0,n.jsx)(rf,{className:`col-start-2 place-self-end self-center`,children:(0,n.jsx)(Zr,{className:`size-sm`,weight:`bold`})})]}),Lxe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(td,{className:X(`max-h-[min(calc(23rem-var(--input-container-height,0rem)),calc(var(--available-height)-var(--input-container-height,0rem)))] scroll-py-[0.5rem] space-y-3xs overflow-y-auto overscroll-contain data-empty:p-[0px]`,e),ref:r,...i,children:t}),Rxe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(cd,{children:(0,n.jsx)(xd,{className:X(``,e),ref:r,sideOffset:20,...i,children:(0,n.jsx)(Sd,{className:`max-h-[23rem] w-(--anchor-width) max-w-(--available-width) origin-(--transform-origin) rounded-xl bg-surface-2 pl-2xs shadow-md transition-[transform,scale,opacity] duration-100 [--input-container-height:4rem] data-ending-style:scale-95 data-ending-style:opacity-0 data-starting-style:scale-95 data-starting-style:opacity-0`,children:t})})}),zxe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(ad,{className:X(`flex items-center gap-2xs p-xs style-text-prose--1 text-on-surface-variant empty:hidden`,e),ref:r,...i,children:t}),Bxe=({placeholder:e,className:t,children:r,ref:i,...a})=>(0,n.jsxs)(Ru,{className:X(`inline-flex h-xl items-center justify-between gap-xl rounded-xl bg-surface pr-sm pl-md style-text-default-0 outline-2 outline-transparent transition-all hover:cursor-pointer hover:outline-border data-popup-open:outline-brand-border`,t),ref:i,...a,children:[(0,n.jsx)(nf,{placeholder:(0,n.jsx)(`span`,{className:`opacity-70`,children:e})}),(0,n.jsx)(Ju,{children:(0,n.jsx)(Xr,{})}),r]}),Vxe=({children:e,...t})=>(0,n.jsx)(nf,{...t,children:e});function Hxe(e,t,n){let r=Array(e);return new Proxy(r,{get(r,i,a){if(typeof i==`string`){let a=i.charCodeAt(0);if(a>=48&&a<=57){let a=+i;if(Number.isInteger(a)&&a>=0&&a<e){let e=r[a];if(!e){let i=t[a*2];e=r[a]={index:a,key:n(a),start:i,size:t[a*2+1],end:i+t[a*2+1],lane:0}}return e}}if(i===`length`)return e}return Reflect.get(r,i,a)}})}function UP(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o=process.env.NODE_ENV!==`production`&&!!n.key&&!!n.debug?.call(n),s=0;o&&(s=Date.now());let c=e();if(!(c.length!==r.length||c.some((e,t)=>r[t]!==e)))return i;r=c;let l=0;if(o&&(l=Date.now()),i=t(...c),o){let e=Math.round((Date.now()-s)*100)/100,t=Math.round((Date.now()-l)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`
55
- font-size: .6rem;
56
- font-weight: bold;
57
- color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,n?.key)}return n?.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1,i}return o.updateDeps=e=>{r=e},o}function WP(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var Uxe=(e,t)=>Math.abs(e-t)<1.01,Wxe=(e,t,n)=>{let r;return Object.assign(function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)},{cancel:()=>{e.clearTimeout(r)}})},GP,KP=()=>{if(GP!==void 0)return GP;if(typeof navigator>`u`)return GP=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return GP=!0;let e=navigator.maxTouchPoints;return GP=navigator.platform===`MacIntel`&&e!==void 0&&e>0},qP=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Gxe=e=>e,Kxe=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},qxe=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(qP(n)),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(qP(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},JP={passive:!0},Jxe=typeof window>`u`||`onscrollend`in window,Yxe=(e,t,n)=>{let r=e.scrollElement;if(!r)return;let i=e.targetWindow;if(!i)return;let a=e.options.useScrollendEvent&&Jxe,o=0,s=a?null:Wxe(i,()=>t(o,!1),e.options.isScrollingResetDelay),c=e=>()=>{o=n(r),s?.(),t(o,e)},l=c(!0),u=c(!1);return r.addEventListener(`scroll`,l,JP),a&&r.addEventListener(`scrollend`,u,JP),()=>{r.removeEventListener(`scroll`,l),a&&r.removeEventListener(`scrollend`,u),s?.cancel()}},Xxe=(e,t)=>Yxe(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),Zxe=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),i=n.itemSizeCache.get(r);if(i!==void 0)return i}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},Qxe=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:e+t,behavior:n})},$xe=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e;return((e=this.targetWindow?.performance)?.now)?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){this.observer.unobserve(t);for(let[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}return}this.isIndexInRange(n)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{let t={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Gxe,rangeExtractor:Kxe,onChange:()=>{},measureElement:Zxe,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,anchorTo:`start`,followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:`estimate`,useCachedMeasurements:!1};for(let n in e){let r=e[n];r!==void 0&&(t[n]=r)}let n=this.options,r=null,i=null,a=!1;if(n!==void 0&&n.enabled&&t.enabled&&t.anchorTo===`end`&&this.scrollElement!==null){let e=n.count,o=t.count,s=this.getMeasurements(),c=e>0?s[0]?.key??n.getItemKey(0):null,l=e>0?s[e-1]?.key??n.getItemKey(e-1):null;if(o!==e||e>0&&o>0&&(t.getItemKey(0)!==c||t.getItemKey(o-1)!==l)){a=!0;let c=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??s[0]:null;c&&(r=[c.key,this.getScrollOffset()-c.start]);let u=t.followOnAppend===!0?`auto`:t.followOnAppend||null;u&&o>e&&this.isAtEnd(n.scrollEndThreshold)&&(e===0||t.getItemKey(o-1)!==l)&&(i=u)}}this.options=t,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let o=!1,s=0;if(r&&this.scrollOffset!==null){let[e,t]=r,n=this.getMeasurements(),{count:i,getItemKey:a}=this.options,c=0;for(;c<i&&a(c)!==e;)c++;if(c<i){let e=n[c];if(e){let n=Math.max(0,e.start+t);n!==this.scrollOffset&&(s=n-this.scrollOffset,this.scrollOffset=n,o=!0)}}}(o||i)&&(this.pendingScrollAnchor=[o?r[0]:null,o?r[1]:0,i,s])},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=UP(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:process.env.NODE_ENV!==`production`&&`maybeNotify`,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}if(this.scrollElement=e,this.targetWindow=this.scrollElement&&`ownerDocument`in this.scrollElement?this.scrollElement.ownerDocument.defaultView:this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&this._intendedScrollOffset===null&&e===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;let n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),`addEventListener`in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,!(!KP()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener(`touchstart`,t,JP),e.addEventListener(`touchend`,n,JP),this.unsubs.push(()=>{e.removeEventListener(`touchstart`,t),e.removeEventListener(`touchend`,n),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let t=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,t&&this.scrollElement&&this.options.enabled){let[e,n,r,i]=t;e!==null&&!r&&(KP()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?i!==0&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),r&&this.scrollToEnd({behavior:r})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=UP(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,i,a,o,s)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=UP(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s},c)=>{let l=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),a===1){let i=e*2,a=this._flatMeasurements;if(!a||a.length<i){let e=new Float64Array(i);a&&u>0&&e.set(a.subarray(0,u*2)),a=e,this._flatMeasurements=a}let o;if(u===0)o=t+n;else{let e=u-1;o=a[e*2]+a[e*2+1]+s}for(let t=u;t<e;t++){let e=r(t),n=l.get(e),i=typeof n==`number`?n:this.options.estimateSize(t);a[t*2]=o,a[t*2+1]=i,o+=i+s}let c=Hxe(e,a,r);return this.measurementsCache=c,c}let d=this.measurementsCache.slice(0,u),f=Array(a).fill(void 0),p=new Float64Array(a),m=0;for(let e=0;e<u;e++){let t=d[e];t&&(f[t.lane]===void 0&&m++,f[t.lane]=e,p[t.lane]=t.end)}for(let i=u;i<e;i++){let e=r(i),c=this.laneAssignments.get(i),u,h,g=o===`estimate`||l.has(e);if(c!==void 0&&this.options.lanes>1){u=c;let e=f[u],r=e===void 0?void 0:d[e];h=r?r.end+s:t+n}else if(m===a){let e=0,t=p[0],n=f[0];for(let r=1;r<a;r++){let i=p[r];(i<t||i===t&&f[r]<n)&&(e=r,t=i,n=f[r])}u=e,h=t+s,g&&this.laneAssignments.set(i,u)}else u=i%this.options.lanes,h=t+n,g&&this.laneAssignments.set(i,u);let _=l.get(e),v=typeof _==`number`?_:this.options.estimateSize(i),y=h+v;d[i]={index:i,start:h,size:v,end:y,key:e,lane:u},f[u]===void 0&&m++,f[u]=i,p[u]=y}return this.measurementsCache=d,d},{key:process.env.NODE_ENV!==`production`&&`getMeasurements`,debug:()=>this.options.debug}),this.calculateRange=UP(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>e.length===0||t===0?(this.range=null,null):(this.range=tSe(e,t,n,r,r===1&&this._flatMeasurements!=null?this._flatMeasurements:null),this.range),{key:process.env.NODE_ENV!==`production`&&`calculateRange`,debug:()=>this.options.debug}),this.getVirtualIndexes=UP(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:process.env.NODE_ENV!==`production`&&`getVirtualIndexes`,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{if(!this.scrollState||this.scrollState.behavior!==`smooth`)return!0;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,t-n),i=Math.min(this.options.count-1,t+n);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;let n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{if(!this.isIndexInRange(e))return;let n,r,i,a=this._flatMeasurements;if(this.options.lanes===1&&a!==null)i=this.options.getItemKey(e),r=a[e*2],n=a[e*2+1];else{let t=this.measurementsCache[e];if(!t)return;i=t.key,r=t.start,n=t.size}let o=this.itemSizeCache.get(i)??n,s=t-o;if(s!==0){let a=this.options.anchorTo===`end`&&this.scrollState?.behavior!==`smooth`&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,c=a?this.getTotalSize():0,l=this.getScrollOffset()+this.scrollAdjustments,u=this.itemSizeCache.has(i)?r+o<=l&&this.scrollDirection!==`backward`:r<l,d=this.scrollState?.behavior!==`smooth`&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?u:this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:i,start:r,size:n,end:r+n,lane:0},s,this));(this.pendingMin===null||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(i,t),this.itemSizeCacheVersion++;let f=!1;a?f=this.applyScrollAdjustment(this.getTotalSize()-c):d&&(f=this.applyScrollAdjustment(s)),this.notify(f)}},this.getVirtualItems=UP(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:process.env.NODE_ENV!==`production`&&`getVirtualItems`,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length===0)return;let n=this._flatMeasurements,r=this.options.lanes===1&&n!=null;return WP(t[YP(0,t.length-1,r?e=>n[e*2]:e=>WP(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if(`scrollHeight`in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(t===`auto`){if(i.end>=r+n-this.options.scrollPaddingEnd)t=`end`;else if(i.start<=r+this.options.scrollPaddingStart)t=`start`;else return[r,t]}if(t===`end`&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let a=t===`end`?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,i.size),t]},this.scrollToOffset=(e,{align:t=`start`,behavior:n=`auto`}={})=>{this._iosDeferredAdjustment=0;let r=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:i,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t=`auto`,behavior:n=`auto`}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r,o=this.now();this.scrollState={index:e,align:a,behavior:n,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t=`auto`}={})=>{let n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:`start`,behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e=`auto`}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:`end`,behavior:e});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1){let n=e.length-1,r=this._flatMeasurements;t=r==null?e[n]?.end??0:r[n*2]+r[n*2+1]}else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(this.itemSizeCache.size===0)return e;let t=this.getMeasurements();for(let n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){return e!==0&&(process.env.NODE_ENV!==`production`&&this.options.debug&&console.info(`correction`,e),KP()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?(this._iosDeferredAdjustment+=e,!1):(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0))}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId??=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=this.scrollState.index==null?void 0:this.getOffsetForIndex(this.scrollState.index,this.scrollState.align),t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&Uxe(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:`auto`}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r=this.scrollState.behavior===`smooth`&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior=`auto`),this._scrollToOffset(t,{adjustments:void 0,behavior:r?`smooth`:`auto`})}this.scheduleScrollReconcile()}},YP=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function eSe(e,t,n){let r=0;for(;r<=t;){let i=(r+t)/2|0,a=e[i*2];if(a<n)r=i+1;else if(a>n)t=i-1;else return i}return r>0?r-1:0}function tSe(e,t,n,r,i){let a=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:a};if(r===1&&i!==null){let e=eSe(i,a,n),r=e,o=n+t;for(;r<a&&i[r*2]+i[r*2+1]<o;)r++;return{startIndex:e,endIndex:r}}let o=YP(0,a,t=>e[t].start,n),s=o;if(r===1)for(;s<a&&e[s].end<n+t;)s++;else if(r>1){let i=Array(r).fill(0);for(;s<a&&i.some(e=>e<n+t);){let t=e[s];i[t.lane]=t.end,s++}let c=Array(r).fill(n+t);for(;o>=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(a,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}var XP=typeof document<`u`?m.useLayoutEffect:m.useEffect;function nSe({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n=`transform`,...i}){let a=m.useReducer(e=>e+1,0)[1],o=m.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});o.current.enabled=t,o.current.mode=n;let s=e=>{let t=o.current;if(!t.enabled||!t.container)return;let n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;let r=e.options.horizontal?`width`:`height`;t.container.style[r]=`${n}px`}},c=e=>{let t=o.current;if(!t.enabled||!t.container)return;s(e);let n=!!e.options.horizontal,r=t.mode===`transform`,i=n?`left`:`top`,a=e.options.scrollMargin,c=e.getVirtualItems();for(let o of c){let s=o.start-a,c=e.elementsCache.get(o.key);c&&t.lastPositions.get(c)!==s&&(t.lastPositions.set(c,s),r?c.style.transform=n?`translate3d(${s}px, 0, 0)`:`translate3d(0, ${s}px, 0)`:c.style[i]=`${s}px`)}},l={...i,onChange:(t,n)=>{var s;let l=o.current,u=!0;if(l.enabled){c(t);let e=t.range,n=l.prevRange;u=!n||n.isScrolling!==t.isScrolling||n.startIndex!==e?.startIndex||n.endIndex!==e?.endIndex,u&&(l.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}u&&(e&&n?(0,r.flushSync)(a):a()),(s=i.onChange)==null||s.call(i,t,n)}},[u]=m.useState(()=>{let e=new $xe(l);return Object.assign(e,{containerRef:t=>{let n=o.current;if(n.container=t,n.lastSize=null,t&&n.enabled){let r=e.getTotalSize();n.lastSize=r;let i=e.options.horizontal?`width`:`height`;t.style[i]=`${r}px`}}})});return u.setOptions(l),XP(()=>u._didMount(),[]),XP(()=>(s(u),u._willUpdate())),XP(()=>{c(u)}),u}function rSe(e){return nSe({observeElementRect:qxe,observeElementOffset:Xxe,scrollToFn:Qxe,...e})}var iSe=oie,aSe=({open:e,virtualizerRef:t,estimateSize:r=32,overscan:i=20,className:a,children:o,...s})=>{let c=iSe(),l=m.default.useRef(null),u=rSe({enabled:e,count:c.length,getScrollElement:()=>l.current,estimateSize:()=>r,overscan:i,paddingStart:8,paddingEnd:8,scrollPaddingStart:8,scrollPaddingEnd:8});m.default.useEffect(()=>{t&&(t.current=u)},[u,t]);let d=m.default.useCallback(e=>{l.current=e,e&&u.measure()},[u]),f=u.getTotalSize();return c.length?(0,n.jsx)(`div`,{role:`presentation`,ref:d,style:{"--total-size":`${f}px`},className:X(`h-[min(22.5rem,var(--total-size))] max-h-(--available-height) scroll-py-3xs overflow-auto overscroll-contain`,a),...s,children:(0,n.jsx)(`div`,{role:`presentation`,className:`relative w-full`,style:{height:f},children:u.getVirtualItems().map(e=>{let t=c[e.index];return t?(0,n.jsx)(HP,{index:e.index,"data-index":e.index,ref:u.measureElement,value:t,"aria-setsize":c.length,"aria-posinset":e.index+1,className:`first-of-type:mt-0!`,style:{position:`absolute`,top:0,left:0,width:`100%`,transform:`translateY(${e.start}px)`},children:typeof o==`function`?o(t):o},e.key):null})})}):null},oSe=({children:e,...t})=>(0,n.jsx)(Hie,{...t,children:e}),sSe=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(xf,{className:X(`grid cursor-default grid-cols-[1fr_2rem] items-center rounded-md px-2xs py-3xs style-text-default-0 outline-none select-none before:absolute before:inset-[0px] before:z-[-1] before:rounded-md before:content-[""] hover:cursor-pointer data-highlighted:relative data-highlighted:z-0 data-highlighted:text-neutral-on-container data-highlighted:before:bg-neutral-container-high`,e),ref:r,...i,children:[(0,n.jsx)(`span`,{className:`col-start-1`,children:t}),(0,n.jsx)(Sf,{className:`col-start-2 flex items-center justify-center place-self-end self-center`,children:(0,n.jsx)(Zr,{className:`size-sm`,weight:`bold`})})]}),cSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(wf,{className:X(``,e),ref:r,...i,children:t}),lSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Tf,{className:X(`cursor-default px-2xs py-3xs style-text-default--2 text-on-surface-variant select-none`,e),ref:r,...i,children:t}),uSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Pf,{className:X(`mx-3xs`,e),ref:r,...i,children:t}),dSe=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(If,{className:X(`grid cursor-default grid-cols-[1fr_2rem] items-center rounded-md px-2xs py-3xs style-text-default-0 outline-none select-none before:absolute before:inset-[0px] before:z-[-1] before:rounded-md before:content-[""] hover:cursor-pointer data-highlighted:relative data-highlighted:z-0 data-highlighted:text-neutral-on-container data-highlighted:before:bg-neutral-container-high`,e),ref:r,...i,children:[(0,n.jsx)(`span`,{className:`col-start-1 flex min-w-3xl items-center gap-2xs [&>svg]:size-sm`,children:t}),(0,n.jsx)(Lf,{className:`col-start-2 flex items-center justify-center place-self-end self-center`,children:(0,n.jsx)(Zr,{className:`size-sm`,weight:`bold`})})]}),fSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`ml-auto inline-flex items-center gap-3xs`,e),ref:r,...i,children:t}),pSe=Gn(`flex cursor-default items-center px-sm py-3xs style-text-default-0 outline-none select-none before:outline before:outline-transparent hover:cursor-pointer data-highlighted:relative data-highlighted:z-0 data-highlighted:before:absolute data-highlighted:before:inset-x-3xs data-highlighted:before:inset-y-[0px] data-highlighted:before:z-[-1] data-highlighted:before:rounded-md`,{variants:{tone:{brand:`text-brand-default data-highlighted:text-brand-on-container data-highlighted:before:bg-brand-container`,accent:`text-accent-default data-highlighted:text-accent-on-container data-highlighted:before:bg-accent-container`,neutral:`text-on-surface data-highlighted:text-neutral-on-container data-highlighted:before:bg-neutral-container-high`,error:`text-error-default data-highlighted:text-error-on-container data-highlighted:before:bg-error-container`,info:`text-info-default data-highlighted:text-info-on-container data-highlighted:before:bg-info-container`,success:`text-success-default data-highlighted:text-success-on-container data-highlighted:before:bg-success-container`,warning:`text-warning-default data-highlighted:text-warning-on-container data-highlighted:before:bg-warning-container`}},defaultVariants:{tone:`neutral`}}),mSe=Gn(`grid cursor-default grid-cols-[1fr_2rem] items-center px-sm py-3xs style-text-default-0 outline-none select-none before:outline before:outline-transparent hover:cursor-pointer data-highlighted:relative data-highlighted:z-0 data-highlighted:before:absolute data-highlighted:before:inset-x-3xs data-highlighted:before:inset-y-[0px] data-highlighted:before:z-[-1] data-highlighted:before:rounded-md data-popup-open:relative data-popup-open:z-0 data-popup-open:before:absolute data-popup-open:before:inset-x-3xs data-popup-open:before:inset-y-[0px] data-popup-open:before:z-[-1] data-popup-open:before:rounded-sm`,{variants:{tone:{brand:`text-brand-default data-highlighted:text-brand-on-container data-highlighted:before:bg-brand-container data-popup-open:text-brand-on-container data-popup-open:before:bg-brand-container data-[highlighted]:data-[popup-open]:before:bg-brand-container`,accent:`text-accent-default data-highlighted:text-accent-on-container data-highlighted:before:bg-accent-container data-popup-open:text-accent-on-container data-popup-open:before:bg-accent-container data-[highlighted]:data-[popup-open]:before:bg-accent-container`,neutral:`text-on-surface data-highlighted:text-neutral-on-container data-highlighted:before:bg-neutral-container-high data-popup-open:text-neutral-on-container data-popup-open:before:bg-neutral-container-high data-[highlighted]:data-[popup-open]:before:bg-neutral-container-high`,error:`text-error-default data-highlighted:text-error-on-container data-highlighted:before:bg-error-container data-popup-open:text-error-on-container data-popup-open:before:bg-error-container data-[highlighted]:data-[popup-open]:before:bg-error-container`,info:`text-info-default data-highlighted:text-info-on-container data-highlighted:before:bg-info-container data-popup-open:text-info-on-container data-popup-open:before:bg-info-container data-[highlighted]:data-[popup-open]:before:bg-info-container`,success:`text-success-default data-highlighted:text-success-on-container data-highlighted:before:bg-success-container data-popup-open:text-success-on-container data-popup-open:before:bg-success-container data-[highlighted]:data-[popup-open]:before:bg-success-container`,warning:`text-warning-default data-highlighted:text-warning-on-container data-highlighted:before:bg-warning-container data-popup-open:text-warning-on-container data-popup-open:before:bg-warning-container data-[highlighted]:data-[popup-open]:before:bg-warning-container`}},defaultVariants:{tone:`neutral`}}),hSe=({className:e,tone:t,children:r,ref:i,...a})=>(0,n.jsx)(Ef,{className:X(pSe({tone:t}),e),ref:i,...a,children:(0,n.jsx)(`div`,{className:`flex w-full items-center gap-2xs [&>svg]:size-sm`,children:r})}),gSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(jf,{children:(0,n.jsx)(Mf,{children:(0,n.jsx)(kf,{className:X(`w-[calc(100%+var(--spacing-xl))] origin-(--transform-origin) translate-x-[-calc(var(--spacing-xl)/2)] space-y-3xs rounded-xl bg-surface-2 p-3xs py-2xs shadow-md transition-[transform,scale,opacity] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0`,e),ref:r,...i,children:t})})}),_Se=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(rp,{className:X(`mx-2xs my-3xs h-px bg-border-strong`,e),ref:r,...i,children:t}),vSe=({children:e,...t})=>(0,n.jsx)(Uf,{...t,children:e}),ySe=({className:e,children:t,ref:r,tone:i,...a})=>(0,n.jsxs)(ap,{className:X(mSe({tone:i}),e),ref:r,...a,children:[(0,n.jsx)(`span`,{className:`col-start-1 flex min-w-3xl items-center gap-2xs pr-2xl`,children:t}),(0,n.jsx)(Jr,{className:`col-start-2 size-xs place-self-end self-center`,weight:`bold`}),` `]}),bSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(sp,{className:X(`flex min-w-0 flex-1`,e),ref:r,...i,children:t}),xSe=({children:e,...t})=>(0,n.jsx)(up,{...t,children:e}),SSe=({className:e,ref:t,...r})=>(0,n.jsx)(al,{className:X(`absolute top-2xs right-2xs`,e),ref:t,...r,render:(0,n.jsx)(Wv,{"aria-label":`Close`,variant:`ghost`,size:`iconSmall`,tone:`error`,children:(0,n.jsx)(wi,{weight:`bold`})})}),CSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex h-full flex-col gap-sm`,e),ref:r,...i,children:t}),wSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(ol,{"data-slot":`dialog-description`,className:X(`style-text-prose-0 text-on-surface-variant`,e),ref:r,...i,children:t}),TSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex w-full items-center justify-end gap-2xs`,e),ref:r,...i,children:t}),ESe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`grid auto-rows-min items-center gap-x-sm has-data-[slot=dialog-description]:grid-rows-[auto_auto] has-data-[slot=dialog-icon]:grid-cols-[auto_1fr] has-data-[slot=dialog-description]:**:data-[slot=dialog-icon]:row-span-2`,e),ref:r,...i,children:t}),DSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{"data-slot":`dialog-icon`,className:X(`row-span-2 self-start [&>svg]:size-xl [&>svg]:shrink-0`,e),ref:r,...i,children:t}),OSe=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(El,{children:[(0,n.jsx)(il,{className:`fixed inset-[0px] z-998 min-h-dvh transition-all duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-[-webkit-touch-callout:none]:absolute`,style:{backdropFilter:`blur(16px)`,WebkitBackdropFilter:`blur(16px)`}}),(0,n.jsx)(Cl,{className:X(`fixed top-1/2 left-1/2 z-999 flex max-w-[calc(100vw-3rem)] min-w-1/6 -translate-1/2 flex-col gap-sm overflow-hidden rounded-3xl bg-surface-3 p-md shadow-lg transition-all duration-150 data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0`,e),ref:r,...i,children:t})]}),kSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Dl,{"data-slot":`dialog-title`,className:X(`style-text-strong-1`,e),ref:r,...i,children:t}),ASe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Ml,{className:X(``,e),ref:r,...i,render:t}),jSe=Wie,MSe=({children:e,...t})=>(0,n.jsx)(iae,{...t,children:e}),NSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Gie,{className:X(`shrink-0`,e),ref:r,...i,render:t}),PSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(hp,{className:X(`mx-auto w-full max-w-[32rem] space-y-3xs`,e),ref:r,...i,children:t}),FSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Kie,{className:X(`style-text-prose-0 text-on-surface-variant`,e),ref:r,...i,children:t}),ISe=({children:e,...t})=>(0,n.jsxs)(eae,{...t,children:[(0,n.jsx)(yp,{}),(0,n.jsx)(vp,{className:`size-full`,children:e})]}),LSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(hae,{className:X(``,e),ref:r,...i,render:t}),RSe=`fixed inset-0 min-h-dvh bg-scrim opacity-[calc(var(--backdrop-opacity)*(1-var(--drawer-swipe-progress)))] transition-opacity duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] [--backdrop-opacity:0.2] [--bleed:3rem] data-ending-style:opacity-0 data-ending-style:duration-[calc(var(--drawer-swipe-strength)*0.4s)] data-starting-style:opacity-0 data-swiping:duration-0 supports-[-webkit-touch-callout:none]:absolute dark:[--backdrop-opacity:0.7]`,zSe=X(`fixed inset-0 flex`,`items-end justify-center`,`has-[[data-swipe-direction=up]]:items-start has-[[data-swipe-direction=up]]:justify-center`,`has-[[data-swipe-direction=right]]:items-center has-[[data-swipe-direction=right]]:justify-end`,`has-[[data-swipe-direction=left]]:items-center has-[[data-swipe-direction=left]]:justify-start`),BSe=X(`touch-auto overflow-y-auto overscroll-contain bg-surface-background p-md outline outline-border-strong transition-transform duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] data-ending-style:duration-[calc(var(--drawer-swipe-strength)*0.4s)] data-swiping:select-none`,`mb-[-3rem] max-h-[calc(80vh+3rem)] w-full transform-[translateY(var(--drawer-swipe-movement-y))] rounded-t-2xl pb-[calc(1.5rem+env(safe-area-inset-bottom,0)+3rem)] shadow-[0_-8px_24px_var(--color-shadow)] data-ending-style:transform-[translateY(calc(100%-3rem+2px))] data-starting-style:transform-[translateY(calc(100%-3rem+2px))]`,`data-[swipe-direction=up]:mt-[-3rem] data-[swipe-direction=up]:mb-0 data-[swipe-direction=up]:rounded-t-none data-[swipe-direction=up]:rounded-b-2xl data-[swipe-direction=up]:pt-[calc(1.5rem+env(safe-area-inset-top,0)+3rem)] data-[swipe-direction=up]:pb-md data-[swipe-direction=up]:shadow-[0_8px_24px_var(--color-shadow)] data-[swipe-direction=up]:data-ending-style:transform-[translateY(calc(-100%+3rem-2px))] data-[swipe-direction=up]:data-starting-style:transform-[translateY(calc(-100%+3rem-2px))]`,`data-[swipe-direction=right]:mr-[-3rem] data-[swipe-direction=right]:mb-0 data-[swipe-direction=right]:h-full data-[swipe-direction=right]:max-h-dvh data-[swipe-direction=right]:w-[23rem] data-[swipe-direction=right]:max-w-[calc(100vw-3rem)] data-[swipe-direction=right]:transform-[translateX(var(--drawer-swipe-movement-x))] data-[swipe-direction=right]:rounded-none data-[swipe-direction=right]:rounded-l-2xl data-[swipe-direction=right]:pr-[4.5rem] data-[swipe-direction=right]:pb-md data-[swipe-direction=right]:shadow-[-8px_0_24px_var(--color-shadow)] data-[swipe-direction=right]:data-ending-style:transform-[translateX(calc(100%-3rem+2px))] data-[swipe-direction=right]:data-starting-style:transform-[translateX(calc(100%-3rem+2px))]`,`data-[swipe-direction=left]:mb-0 data-[swipe-direction=left]:ml-[-3rem] data-[swipe-direction=left]:h-full data-[swipe-direction=left]:max-h-dvh data-[swipe-direction=left]:w-[23rem] data-[swipe-direction=left]:max-w-[calc(100vw-3rem)] data-[swipe-direction=left]:transform-[translateX(var(--drawer-swipe-movement-x))] data-[swipe-direction=left]:rounded-none data-[swipe-direction=left]:rounded-r-2xl data-[swipe-direction=left]:pb-md data-[swipe-direction=left]:pl-[4.5rem] data-[swipe-direction=left]:shadow-[8px_0_24px_var(--color-shadow)] data-[swipe-direction=left]:data-ending-style:transform-[translateX(calc(-100%+3rem-2px))] data-[swipe-direction=left]:data-starting-style:transform-[translateX(calc(-100%+3rem-2px))]`),VSe=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)($ie,{children:[(0,n.jsx)(pp,{className:RSe}),(0,n.jsx)(Gp,{className:zSe,children:(0,n.jsx)(kp,{className:X(BSe,e),ref:r,...i,children:t})})]}),HSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(mae,{className:X(`style-text-strong-1`,e),ref:r,...i,children:t}),USe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex items-start justify-between pb-sm`,e),ref:r,...i,children:t}),ZP=e=>{if(e<1e3)return`${e} B`;let t=[`KB`,`MB`,`GB`,`TB`],n=e/1e3,r=0;for(;n>=1e3&&r<t.length-1;)n/=1e3,r+=1;return`${n.toFixed(n%1==0?0:1)}${t[r]}`},QP=e=>`${e.name}-${e.size}-${e.lastModified}`,WSe=(e,t)=>{if(t.length===0)return!0;let n=e.name.toLowerCase(),r=e.type.toLowerCase();return t.some(e=>{let t=e.toLowerCase();return t.startsWith(`.`)?n.endsWith(t):t.endsWith(`/*`)?r.startsWith(`${t.slice(0,-1)}`):r===t})},$P=m.default.createContext(null),GSe=({maxFiles:e,maxFileSize:t,maxFilesErrorLabel:r=e=>`You can select up to ${e} file${e===1?``:`s`}.`,maxFileSizeErrorLabel:i=(e,t)=>`"${e}" exceeds the maximum size of ${t}.`,fileTypeErrorLabel:a=e=>`"${e}" is not an accepted file type.`,onUpload:o,ref:s,className:c,children:l,onChange:u,onConfirm:d,...f})=>{let p=m.default.useRef(null),h=m.default.useRef([]),[g,_]=m.default.useState(!1),[v,y]=m.default.useState([]),[b,x]=m.default.useState(null),[S,C]=m.default.useState({});m.default.useEffect(()=>{h.current=v},[v]);let w=m.default.useMemo(()=>typeof f.accept==`string`?f.accept.split(`,`).map(e=>e.trim()).filter(Boolean):[],[f.accept]),T=m.default.useCallback(e=>{if(!p.current)return;let t=new DataTransfer;e.forEach(e=>t.items.add(e)),p.current.files=t.files},[]),E=m.default.useCallback(e=>f.multiple?[...h.current,...e].filter((e,t,n)=>n.findIndex(t=>t.name===e.name&&t.size===e.size&&t.lastModified===e.lastModified)===t):e.slice(0,1),[f.multiple]),D=m.default.useCallback(e=>{let t=QP(e);y(t=>{let n=t.filter(t=>t!==e);return h.current=n,T(n),n}),C(e=>{let n={...e};return delete n[t],n}),x(null)},[T]),O=m.default.useCallback(e=>{e.forEach(e=>{let t=QP(e);if(!o){C(e=>({...e,[t]:100}));return}C(e=>({...e,[t]:0})),o(e,e=>{C(n=>({...n,[t]:Math.max(0,Math.min(100,e))}))})})},[o]),k=m.default.useCallback(n=>{let o=n.filter(e=>!WSe(e,w));if(o.length>0)return{acceptedFiles:null,error:a(o[0].name)};let s=t===void 0?[]:n.filter(e=>e.size>t),c=t===void 0?n:n.filter(e=>e.size<=t);return e!==void 0&&c.length>e?{acceptedFiles:null,error:r(e)}:{acceptedFiles:c,error:s.length>0&&t!==void 0?i(s[0].name,ZP(t)):null}},[w,a,e,t,r,i]);return(0,n.jsx)($P.Provider,{value:{acceptedFileTypes:w,fileError:b,fileProgress:S,files:v,handleDragLeave:()=>{_(!1)},handleDragOver:e=>{e.preventDefault(),_(!0)},handleDrop:e=>{e.preventDefault();let t=Array.from(e.dataTransfer.files),n=h.current,r=E(t),{acceptedFiles:i,error:a}=k(r);if(!i){x(a),_(!1);return}x(a);let o=new Set(n.map(QP)),s=i.filter(e=>!o.has(QP(e)));h.current=i,y(i),T(i),O(s),p.current&&u?.({target:p.current,currentTarget:p.current}),_(!1)},handleFiles:e=>{let t=e.target.files?Array.from(e.target.files):[],n=h.current,r=E(t),{acceptedFiles:i,error:a}=k(r);if(!i){x(a),T(n);return}x(a);let o=new Set(n.map(QP)),s=i.filter(e=>!o.has(QP(e)));h.current=i,y(i),T(i),O(s),p.current&&u?.({target:p.current,currentTarget:p.current})},inputRef:p,isHovering:g,maxFileSize:t===void 0?void 0:ZP(t),maxFiles:e,onConfirm:d,onUpload:o,props:f,removeFile:D,setFiles:y},children:(0,n.jsx)(`div`,{className:X(`space-y-md`,c),ref:s,children:l})})},eF=()=>{let e=m.default.useContext($P);if(!e)throw Error(`useDropzone must be used within a DropzoneProvider`);return e},KSe=({className:e,children:t,...r})=>{let{fileError:i,handleDragLeave:a,handleDragOver:o,handleDrop:s,handleFiles:c,inputRef:l,isHovering:u,props:d}=eF(),f=d.disabled??!1,p=()=>{f||l.current?.click()};return(0,n.jsxs)(`div`,{"aria-disabled":f,"aria-invalid":i?!0:void 0,"aria-label":`File upload dropzone`,onClick:p,onDragLeave:a,onDragOver:o,onDrop:s,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),p())},role:`button`,tabIndex:f?-1:0,className:X(`flex size-full items-center justify-center rounded-xl border-2 border-brand-border bg-surface py-2xl transition-all outline-none focus-visible:outline-2 focus-visible:outline-brand-border-strong`,!f&&`cursor-pointer`,u&&`ring-8 ring-brand-border-strong/20`,i&&`border-error-border`,f&&`cursor-not-allowed opacity-50`,e),...r,children:[(0,n.jsx)(`div`,{className:`flex flex-col items-center justify-center gap-lg`,children:t}),(0,n.jsx)(`input`,{...d,hidden:!0,onChange:c,onClick:e=>{e.currentTarget.value=``},ref:l,type:`file`})]})},qSe=({className:e,children:t,ref:r,...i})=>{let{fileError:a}=eF();return!a&&!t?null:(0,n.jsxs)(`p`,{className:X(`flex items-center gap-2xs style-text-strong--1 text-error-default`,e),ref:r,role:`alert`,...i,children:[(0,n.jsx)(Ci,{weight:`bold`}),t??a]})},JSe=Gn(``,{variants:{orientation:{horizontal:`flex items-center justify-between gap-xs [&_[data-track]]:w-full [&_button]:shrink-0`,vertical:`flex flex-col space-y-3xs`},size:{small:`[&_[data-track]]:h-3xs`,medium:`[&_[data-track]]:h-2xs`,large:`[&_[data-track]]:h-xs`},tone:{brand:`[&_[data-indicator]]:bg-brand-default`,accent:`[&_[data-indicator]]:bg-accent-default`,neutral:`[&_[data-indicator]]:bg-neutral-default`,error:`[&_[data-indicator]]:bg-error-default`,info:`[&_[data-indicator]]:bg-info-default`,success:`[&_[data-indicator]]:bg-success-default`,warning:`[&_[data-indicator]]:bg-warning-default`}},defaultVariants:{orientation:`vertical`,size:`medium`,tone:`brand`}}),tF=({orientation:e,size:t,tone:r,className:i,children:a,ref:o,...s})=>(0,n.jsx)(gm,{className:X(JSe({orientation:e,size:t,tone:r,className:i})),ref:o,...s,children:a}),YSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex items-center justify-between`,e),ref:r,...i,children:t}),nF=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(vm,{"data-indicator":!0,className:X(`rounded-full transition-[width] duration-300 ease-in-out`,e),ref:r,...i,children:t}),XSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(bm,{className:X(`flex items-center gap-2xs style-text-strong--1 text-on-surface [&>svg]:size-xs`,e),ref:r,...i,children:t}),rF=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(_m,{className:X(`w-full self-center rounded-full bg-surface-low inset-shadow-2xs`,e),"data-track":!0,ref:r,...i,children:t}),iF=({className:e,ref:t,...r})=>(0,n.jsx)(ym,{className:X(`ml-auto text-right style-text-prose--2 text-on-surface-variant`,e),ref:t,...r}),aF=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex items-center justify-between`,e),ref:r,...i,children:t}),ZSe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`span`,{className:X(`text-left style-text-prose--2 whitespace-nowrap text-on-surface-variant`,e),ref:r,...i,children:t}),QSe=({className:e,children:t,ref:r,...i})=>{let{files:a,fileProgress:o,removeFile:s,onUpload:c}=eF();return(0,n.jsxs)(`ul`,{className:X(`flex flex-col gap-xs`,e),ref:r,...i,children:[a.map((e,t)=>{let r=o[QP(e)]??0,i=r>=0&&r<100,a=r>=100;return(0,n.jsxs)(`li`,{className:X(`flex items-center justify-between gap-lg rounded-xl border bg-surface px-md py-sm`,i&&`border-border`,a&&`border-border`),children:[i&&(0,n.jsx)(`div`,{className:`flex items-center justify-center rounded-full bg-brand-container p-xs`,children:(0,n.jsx)(ai,{className:`size-md text-brand-on-container`})}),a&&(0,n.jsx)(`div`,{className:`flex items-center justify-center rounded-full bg-success-container p-xs`,children:(0,n.jsx)(Zr,{className:`size-md text-success-on-container`})}),(0,n.jsxs)(`div`,{className:`flex w-full flex-col justify-between gap-3xs`,children:[(0,n.jsx)(`span`,{className:`style-text-default-0`,children:e.name}),c?(0,n.jsxs)(tF,{orientation:`vertical`,tone:r>=100?`success`:`brand`,value:r,children:[(0,n.jsx)(rF,{children:(0,n.jsx)(nF,{})}),(0,n.jsxs)(aF,{children:[(0,n.jsx)(`span`,{className:`style-text-prose--1 text-on-surface-variant`,children:ZP(e.size)}),(0,n.jsx)(iF,{})]})]}):(0,n.jsx)(`span`,{className:`style-text-prose--1 text-on-surface-variant`,children:ZP(e.size)})]}),(0,n.jsx)(Wv,{variant:`ghost`,tone:`error`,onClick:()=>s(e),children:(0,n.jsx)(bi,{weight:`bold`})})]},t)}),t]})},$Se=({className:e,children:t,ref:r,...i})=>{let{maxFileSize:a}=eF();return(0,n.jsxs)(`span`,{className:X(``,e),ref:r,...i,children:[t,a]})},eCe=({className:e,children:t,ref:r,...i})=>{let{acceptedFileTypes:a}=eF();return(0,n.jsxs)(`span`,{className:X(``,e),ref:r,...i,children:[a.join(`, `),t]})},tCe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`span`,{className:X(`style-text-default-0`,e),ref:r,...i,children:t}),nCe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`rounded-full bg-brand-container p-sm [&>svg]:size-lg [&>svg]:text-brand-on-container`,e),ref:r,...i,children:t}),rCe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`span`,{className:X(`text-on-surface-variant`,e),ref:r,...i,children:t}),iCe=({className:e,children:t,ref:r,...i})=>{let{inputRef:a}=eF();return(0,n.jsx)(Wv,{variant:`link`,onClick:e=>{e.stopPropagation(),a.current?.click()},className:X(``,e),ref:r,...i,children:t})},aCe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex flex-col items-center justify-center gap-2xs`,e),ref:r,...i,children:t}),oCe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex flex-col gap-xs`,e),ref:r,...i,children:t}),sCe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex items-center justify-between gap-sm`,e),ref:r,...i,children:t}),cCe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`span`,{className:X(`style-text-default-0`,e),ref:r,...i,children:t}),lCe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex items-center gap-xs`,e),ref:r,...i,children:t}),uCe=({className:e,children:t,ref:r,...i})=>{let{files:a,onConfirm:o}=eF();return(0,n.jsx)(Wv,{disabled:a.length===0,onClick:()=>{o&&o(a)},className:X(`w-full`,e),ref:r,...i,children:t})},dCe=({className:e,children:t,ref:r,...i})=>{let{files:a,setFiles:o}=eF();return(0,n.jsx)(Wv,{disabled:a.length===0,onClick:()=>o([]),tone:`error`,variant:`outline`,className:X(`w-full`,e),ref:r,...i,children:t})},oF=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex flex-col gap-2xs`,e),ref:r,...i,children:t}),sF=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`p`,{className:X(`style-text-prose--1 text-on-surface-variant`,e),ref:r,...i,children:t});function fCe({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function cF(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var lF=[],uF=0,{link:dF,unlink:pCe,propagate:mCe,checkDirty:fF,shallowPropagate:pF}=fCe({update(e){return e._update()},notify(e){lF[hF++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,yF(e))}}),mF=0,hF=0,gF,_F=0;function vF(e){try{++_F,e()}finally{--_F||bF()}}function yF(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=pCe(n,e)}function bF(){if(!(_F>0)){for(;mF<hF;){let e=lF[mF];lF[mF++]=void 0,e.notify()}mF=0,hF=0}}function xF(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return gF!==void 0&&dF(i,gF,uF),i._snapshot},subscribe(e){let t=cF(e),n={current:!1},r=hCe(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=gF,o=t?.compare??Object.is;if(n)gF=i,++uF,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{gF=a,n&&(i.flags&=-5),yF(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&fF(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&pF(e)}}else e&32&&(i.flags=e&-33);return gF!==void 0&&dF(i,gF,uF),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(mCe(e),pF(e),bF())}},i}function hCe(e){let t=()=>{let t=gF;gF=n,++uF,n.depsTail=void 0,n.flags=6;try{return e()}finally{gF=t,n.flags&=-5,yF(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&fF(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,yF(this)}};return t(),n}var SF=class{constructor(e,t){this.atom=xF(e),this.get=this.get.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),t&&(this.actions=t(this))}setState(e){this.atom.set(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(cF(e))}},gCe=class{constructor(e){this.atom=xF(e)}get state(){return this.atom.get()}get(){return this.state}subscribe(e){return this.atom.subscribe(cF(e))}};function CF(e,t){return typeof e==`function`?new gCe(e):t?new SF(e,t):new SF(e)}function wF(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=TF(e);if(n.length!==TF(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function TF(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}var _Ce=class{constructor(e,t){this.fn=e,this.options=t,this.lastExecutionTime=0,this.isPending=!1,this.maybeExecute=(...e)=>{let t=Date.now()-this.lastExecutionTime;if(this.options.leading&&t>=this.options.wait)this.execute(...e);else if(this.lastArgs=e,!this.timeoutId&&this.options.trailing){let e=this.options.wait-t;this.isPending=!0,this.timeoutId=setTimeout(()=>{this.lastArgs!==void 0&&this.execute(...this.lastArgs)},e)}},this.execute=(...e)=>{this.fn(...e),this.options.onExecute?.(e,this),this.lastExecutionTime=Date.now(),this.clearTimeout(),this.lastArgs=void 0,this.isPending=!1},this.flush=()=>{this.isPending&&this.lastArgs&&this.execute(...this.lastArgs)},this.cancel=()=>{this.clearTimeout(),this.lastArgs=void 0,this.isPending=!1},this.clearTimeout=()=>{this.timeoutId&&=(clearTimeout(this.timeoutId),void 0)},this.options.leading===void 0&&this.options.trailing===void 0&&(this.options.leading=!0,this.options.trailing=!0)}};function vCe(e,t){return new _Ce(e,t).maybeExecute}var yCe=class{#e=!0;#t;#n;#r;#i;#a;#o;#s;#c=0;#l=5;#u=!1;#d=!1;#f=null;#p=()=>{this.debugLog(`Connected to event bus`),this.#a=!0,this.#u=!1,this.debugLog(`Emitting queued events`,this.#i),this.#i.forEach(e=>this.emitEventToBus(e)),this.#i=[],this.stopConnectLoop(),this.#n().removeEventListener(`tanstack-connect-success`,this.#p)};#m=()=>{if(this.#c<this.#l){this.#c++,this.dispatchCustomEvent(`tanstack-connect`,{});return}this.#n().removeEventListener(`tanstack-connect`,this.#m),this.#d=!0,this.debugLog(`Max retries reached, giving up on connection`),this.stopConnectLoop()};#h=()=>{this.#u||(this.#u=!0,this.#n().addEventListener(`tanstack-connect-success`,this.#p),this.#m())};constructor({pluginId:e,debug:t=!1,enabled:n=!0,reconnectEveryMs:r=300}){this.#t=e,this.#e=n,this.#n=this.getGlobalTarget,this.#r=t,this.debugLog(` Initializing event subscription for plugin`,this.#t),this.#i=[],this.#a=!1,this.#d=!1,this.#o=null,this.#s=r}startConnectLoop(){this.#o!==null||this.#a||(this.debugLog(`Starting connect loop (every ${this.#s}ms)`),this.#o=setInterval(this.#m,this.#s))}stopConnectLoop(){this.#u=!1,this.#o!==null&&(clearInterval(this.#o),this.#o=null,this.#i=[],this.debugLog(`Stopped connect loop`))}debugLog(...e){this.#r&&console.log(`🌴 [tanstack-devtools:${this.#t}-plugin]`,...e)}getGlobalTarget(){if(typeof globalThis<`u`&&globalThis.__TANSTACK_EVENT_TARGET__)return this.debugLog(`Using global event target`),globalThis.__TANSTACK_EVENT_TARGET__;if(typeof window<`u`&&window.addEventListener!==void 0)return this.debugLog(`Using window as event target`),window;let e=typeof EventTarget<`u`?new EventTarget:void 0;return e===void 0||e.addEventListener===void 0?(this.debugLog(`No event mechanism available, running in non-web environment`),{addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1}):(this.debugLog(`Using new EventTarget as fallback`),e)}getPluginId(){return this.#t}dispatchCustomEventShim(e,t){try{let n=new Event(e,{detail:t});this.#n().dispatchEvent(n)}catch{this.debugLog(`Failed to dispatch shim event`)}}dispatchCustomEvent(e,t){try{this.#n().dispatchEvent(new CustomEvent(e,{detail:t}))}catch{this.dispatchCustomEventShim(e,t)}}emitEventToBus(e){this.debugLog(`Emitting event to client bus`,e),this.dispatchCustomEvent(`tanstack-dispatch-event`,e)}createEventPayload(e,t){return{type:`${this.#t}:${e}`,payload:t,pluginId:this.#t}}emit(e,t){if(!this.#e){this.debugLog(`Event bus client is disabled, not emitting event`,e,t);return}if(this.#f&&(this.debugLog(`Emitting event to internal event target`,e,t),this.#f.dispatchEvent(new CustomEvent(`${this.#t}:${e}`,{detail:this.createEventPayload(e,t)}))),this.#d){this.debugLog(`Previously failed to connect, not emitting to bus`);return}if(!this.#a){this.debugLog(`Bus not available, will be pushed as soon as connected`),this.#i.push(this.createEventPayload(e,t)),typeof CustomEvent<`u`&&!this.#u&&(this.#h(),this.startConnectLoop());return}return this.emitEventToBus(this.createEventPayload(e,t))}on(e,t,n){let r=n?.withEventTarget??!1,i=`${this.#t}:${e}`;if(r&&(this.#f||=new EventTarget,this.#f.addEventListener(i,e=>{t(e.detail)})),!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`,i),()=>{};let a=e=>{this.debugLog(`Received event from bus`,e.detail),t(e.detail)};return this.#n().addEventListener(i,a),this.debugLog(`Registered event to bus`,i),()=>{r&&this.#f?.removeEventListener(i,a),this.#n().removeEventListener(i,a)}}onAll(e){if(!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`),()=>{};let t=t=>{let n=t.detail;e(n)};return this.#n().addEventListener(`tanstack-devtools-global`,t),()=>this.#n().removeEventListener(`tanstack-devtools-global`,t)}onAllPluginEvents(e){if(!this.#e)return this.debugLog(`Event bus client is disabled, not registering event`),()=>{};let t=t=>{let n=t.detail;this.#t&&n.pluginId!==this.#t||e(n)};return this.#n().addEventListener(`tanstack-devtools-global`,t),()=>this.#n().removeEventListener(`tanstack-devtools-global`,t)}},EF=new class extends yCe{constructor(){super({pluginId:`form-devtools`,reconnectEveryMs:1e3})}};function DF(e,t){return typeof e==`function`?e(t):e}function OF(e,t){return PF(t).reduce((e,t)=>{if(e===null)return null;if(e!==void 0)return e[t]},e)}function kF(e,t,n){let r=PF(t);function i(e){if(!r.length)return DF(n,e);let t=r.shift();if(typeof t==`string`||typeof t==`number`&&!Array.isArray(e))return typeof e==`object`?(e===null&&(e={}),{...e,[t]:i(e[t])}):{[t]:i()};if(Array.isArray(e)&&typeof t==`number`){let n=e.slice(0,t);return[...n.length?n:Array(t),i(e[t]),...e.slice(t+1)]}return[...Array(t),i()]}return i(e)}function bCe(e,t){let n=PF(t);function r(e){if(!e)return;if(n.length===1){let t=n[0];if(Array.isArray(e)&&typeof t==`number`)return e.filter((e,n)=>n!==t);let{[t]:r,...i}=e;return i}let t=n.shift();if((typeof t==`string`||typeof t==`number`&&!Array.isArray(e))&&typeof e==`object`)return{...e,[t]:r(e[t])};if(typeof t==`number`&&Array.isArray(e)){if(t>=e.length)return e;let n=e.slice(0,t);return[...n.length?n:Array(t),r(e[t]),...e.slice(t+1)]}throw Error(`It seems we have created an infinite loop in deleteBy. `)}return r(e)}var AF=46,jF=91,MF=93,NF=48,xCe=57;function PF(e){if(Array.isArray(e))return[...e];if(typeof e!=`string`)throw Error(`Path must be a string.`);let t=e.length,n=[],r=+(t>0&&e.charCodeAt(0)===jF),i=!0,a=-1;for(let o=r;o<=t;o++){let s=o<t?e.charCodeAt(o):-1;if(o===t||s===AF||s===jF||s===MF){let t=o-r;if(t>0){let a=i&&(t===1||e.charCodeAt(r)!==NF),s=e.slice(r,o);if(a){let e=parseInt(s,10);t<=15||String(e)===s?n.push(e):n.push(s)}else n.push(s)}else a!==MF&&(a!==-1||s!==MF)&&(a!==s||s!==AF&&s!==jF)&&n.push(``);r=o+1,i=!0}else(s<NF||s>xCe)&&(i=!1);a=s}return n.length||n.push(``),n}function FF(e,t){return e.length===0?t:t.length===0?e:t.startsWith(`[`)||t.startsWith(`.`)?e+t:`${e}.${t}`}function SCe(e){return!(Array.isArray(e)&&e.length===0)}function IF(e,t){return t.validationLogic({form:t.form,group:t.group,validators:t.validators,event:{type:e,fieldName:t.fieldName,async:!1},runValidation:e=>e.validators.filter(Boolean).map(e=>({cause:e.cause,validate:e.fn}))})}function LF(e,t){let{asyncDebounceMs:n}=t,{onBlurAsyncDebounceMs:r,onChangeAsyncDebounceMs:i,onDynamicAsyncDebounceMs:a}=t.validators||{},o=n??0;return t.validationLogic({form:t.form,group:t.group,validators:t.validators,event:{type:e,fieldName:t.fieldName,async:!0},runValidation:t=>t.validators.filter(Boolean).map(t=>{let n=t?.cause||e,s=o;switch(n){case`change`:s=i??o;break;case`blur`:s=r??o;break;case`dynamic`:s=a??o;break;case`submit`:s=0}return e===`submit`&&(s=0),{cause:n,validate:t.fn,debounceMs:s}})})}var RF=e=>!!e&&typeof e==`object`&&`fields`in e;function zF(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length||n.length===0&&!Array.isArray(e)&&!Array.isArray(t)&&(Object.getPrototypeOf(e)!==Object.prototype||Object.getPrototypeOf(t)!==Object.prototype))return!1;for(let i of n)if(!r.includes(i)||!zF(e[i],t[i]))return!1;return!0}var BF=({newFormValidatorError:e,isPreviousErrorFromFormValidator:t,previousErrorValue:n})=>e?{newErrorValue:e,newSource:`form`}:t?{newErrorValue:void 0,newSource:void 0}:n?{newErrorValue:n,newSource:`field`}:{newErrorValue:void 0,newSource:void 0},VF=({formLevelError:e,fieldLevelError:t})=>t?{newErrorValue:t,newSource:`field`}:e?{newErrorValue:e,newSource:`form`}:{newErrorValue:void 0,newSource:void 0};function HF(e,t){return e==null?t:{...e,...t}}for(var UF=256,WF=[],GF;UF--;)WF[UF]=(UF+256).toString(16).substring(1);function KF(){let e=0,t,n=``;if(!GF||UF+16>256){for(GF=Array(256),e=256;e--;)GF[e]=256*Math.random()|0;e=0,UF=0}for(;e<16;e++)t=GF[UF+e],n+=e===6?WF[t&15|64]:e===8?WF[t&63|128]:WF[t],e&1&&e>1&&e<11&&(n+=`-`);return UF++,n}var CCe=vCe(e=>EF.emit(`form-state`,{id:e.formId,state:e.store.state}),{wait:300});function qF(e){if(typeof e!=`object`||!e)return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++)t[n]=qF(e[n]);return t}if(e instanceof Map){let t=new Map;return e.forEach((e,n)=>{t.set(n,qF(e))}),t}if(e instanceof Set){let t=new Set;return e.forEach(e=>{t.add(qF(e))}),t}let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=qF(e[n]));return t}function JF(e,t){return t===e||t.startsWith(`${e}.`)||t.startsWith(`${e}[`)}var YF=e=>{if(!e.validators)return e.runValidation({validators:[],form:e.form});let t=e.event.async,n=t?void 0:{fn:e.validators.onMount,cause:`mount`},r={fn:t?e.validators.onChangeAsync:e.validators.onChange,cause:`change`},i={fn:t?e.validators.onBlurAsync:e.validators.onBlur,cause:`blur`},a={fn:t?e.validators.onSubmitAsync:e.validators.onSubmit,cause:`submit`},o=t?void 0:{fn:()=>void 0,cause:`server`};switch(e.event.type){case`mount`:return e.runValidation({validators:[n],form:e.form});case`submit`:return e.runValidation({validators:[r,i,a,o],form:e.form});case`server`:return e.runValidation({validators:[],form:e.form});case`blur`:return e.runValidation({validators:[i,o],form:e.form});case`change`:return e.runValidation({validators:[r,o],form:e.form});default:throw Error(`Unknown validation event type: ${e.event.type}`)}};function wCe(e,t){let n=new Map;for(let r of e){let e=r.path??[],i=t,a=``;for(let t=0;t<e.length;t++){let n=e[t];if(n===void 0)continue;let r=typeof n==`object`?n.key:n,o=Number(r);a+=Array.isArray(i)&&!Number.isNaN(o)?`[${o}]`:(t>0?`.`:``)+String(r),i=typeof i==`object`&&i?i[r]:void 0}n.set(a,(n.get(a)??[]).concat(r))}return Object.fromEntries(n)}var XF=(e,t)=>{let n=wCe(e,t);return{form:n,fields:n}},ZF={validate({value:e,validationSource:t},n){let r=n[`~standard`].validate(e);if(r instanceof Promise)throw Error(`async function passed to sync validator`);if(r.issues)return t===`field`?r.issues:XF(r.issues,e)},async validateAsync({value:e,validationSource:t},n){let r=await n[`~standard`].validate(e);if(r.issues)return t===`field`?r.issues:XF(r.issues,e)}},QF=e=>!!e&&`~standard`in e,$F={isValidating:!1,isTouched:!1,isBlurred:!1,isDirty:!1,isPristine:!0,isValid:!0,isDefaultValue:!0,errors:[],errorMap:{},errorSourceMap:{},_arrayVersion:0,_pendingValidationsCount:0};function eI(e){function t(t){let n=e.getFieldMeta(t)??$F;e.setFieldMeta(t,{...n,_arrayVersion:(n._arrayVersion||0)+1})}function n(n,r,i){t(n);let a=s(n,r,`move`,i),c=Math.min(r,i),u=Math.max(r,i);for(let e=c;e<=u;e++)a.push(o(n,e));let d=Object.keys(e.fieldInfo).reduce((t,i)=>(i.startsWith(o(n,r))&&t.set(i,e.getFieldMeta(i)),t),new Map);l(a,r<i?`up`:`down`),Object.keys(e.fieldInfo).filter(e=>e.startsWith(o(n,i))).forEach(t=>{let a=t.replace(o(n,i),o(n,r)),s=d.get(a);s&&e.setFieldMeta(t,s)})}function r(e,n){t(e),l(s(e,n,`remove`),`up`)}function i(n,r,i){t(n),s(n,r,`swap`,i).forEach(t=>{if(!t.toString().startsWith(o(n,r)))return;let a=t.toString().replace(o(n,r),o(n,i)),[s,c]=[e.getFieldMeta(t),e.getFieldMeta(a)];s&&e.setFieldMeta(a,s),c&&e.setFieldMeta(t,c)})}function a(n,r){t(n);let i=s(n,r,`insert`);l(i,`down`),i.forEach(t=>{t.toString().startsWith(o(n,r))&&e.setFieldMeta(t,u())})}function o(e,t){return`${e}[${t}]`}function s(t,n,r,i){let a=[o(t,n)];switch(r){case`swap`:a.push(o(t,i));break;case`move`:{let[e,r]=[Math.min(n,i),Math.max(n,i)];for(let n=e;n<=r;n++)a.push(o(t,n));break}default:{let r=e.getFieldValue(t),i=Array.isArray(r)?r.length:0;for(let e=n+1;e<i;e++)a.push(o(t,e));break}}return Object.keys(e.fieldInfo).filter(e=>a.some(t=>e.startsWith(t)))}function c(e,t){return e.replace(/\[(\d+)\]/,(e,n)=>{let r=parseInt(n,10);return`[${t===`up`?r+1:Math.max(0,r-1)}]`})}function l(t,n){(n===`up`?t:[...t].reverse()).forEach(t=>{let r=c(t.toString(),n),i=e.getFieldMeta(r);i?e.setFieldMeta(t,i):e.setFieldMeta(t,u())})}let u=()=>$F;return{bumpArrayVersion:t,handleArrayMove:n,handleArrayRemove:r,handleArraySwap:i,handleArrayInsert:a}}function tI(e){return{values:e.values??{},errorMap:e.errorMap??{},fieldMetaBase:e.fieldMetaBase??{},formGroupStateBase:e.formGroupStateBase??{},isSubmitted:e.isSubmitted??!1,isSubmitting:e.isSubmitting??!1,isValidating:e.isValidating??!1,submissionAttempts:e.submissionAttempts??0,isSubmitSuccessful:e.isSubmitSuccessful??!1,validationMetaMap:e.validationMetaMap??{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0,onDynamic:void 0}}}var nI=class{constructor(e){this.options={},this.fieldInfo={},this.formGroupApis=new Set,this.mount=()=>{let e=this.store.subscribe(()=>{CCe(this)}),t=EF.on(`request-form-state`,e=>{e.payload.id===this._formId&&EF.emit(`form-api`,{id:this._formId,state:this.store.state,options:this.options})}),n=EF.on(`request-form-reset`,e=>{e.payload.id===this._formId&&this.reset()}),r=EF.on(`request-form-force-submit`,e=>{e.payload.id===this._formId&&(this._devtoolsSubmissionOverride=!0,this.handleSubmit(),this._devtoolsSubmissionOverride=!1)}),i=()=>{r(),n(),t(),e.unsubscribe(),EF.emit(`form-unmounted`,{id:this._formId})};this.options.listeners?.onMount?.({formApi:this});let{onMount:a}=this.options.validators||{};return EF.emit(`form-api`,{id:this._formId,state:this.store.state,options:this.options}),a&&this.validateSync(`mount`),i},this.update=e=>{if(!e)return;let t=this.options;this.options=e;let n=e.defaultValues&&!zF(e.defaultValues,t.defaultValues)&&!this.state.isTouched,r=!zF(e.defaultState,t.defaultState)&&!this.state.isTouched;if(!(!n&&!r)){if(vF(()=>{this.baseStore.setState(()=>tI(Object.assign({},this.state,r?e.defaultState:{},n?{values:e.defaultValues}:{})))}),n){let e=eI(this);for(let t of Object.keys(this.fieldInfo))Array.isArray(this.getFieldValue(t))&&e.bumpArrayVersion(t)}EF.emit(`form-api`,{id:this._formId,state:this.store.state,options:this.options})}},this.reset=(e,t)=>{let{fieldMeta:n}=this.state,r=this.resetFieldMeta(n);e&&!t?.keepDefaultValues&&(this.options={...this.options,defaultValues:e}),this.baseStore.setState(()=>{let t=e??this.options.defaultValues??this.options.defaultState?.values;return e||Object.values(this.fieldInfo).forEach(e=>{e.instance&&e.instance.options.defaultValue!==void 0&&(t=kF(t,e.instance.name,e.instance.options.defaultValue))}),tI({...this.options.defaultState,values:t,fieldMetaBase:r})})},this.validateAllFields=async e=>{let t=[];return vF(()=>{Object.values(this.fieldInfo).forEach(n=>{if(!n.instance)return;let r=n.instance;t.push(Promise.resolve().then(()=>r.validate(e,{skipFormValidation:!0,skipGroupValidation:!0}))),n.instance.store.state.meta.isTouched||n.instance.setMeta(e=>({...e,isTouched:!0}))})}),(await Promise.all(t)).flat()},this.validateArrayFieldsStartingFrom=async(e,t,n)=>{let r=this.getFieldValue(e),i=Array.isArray(r)?Math.max(r.length-1,0):null,a=[`${e}[${t}]`];for(let n=t+1;n<=(i??0);n++)a.push(`${e}[${n}]`);let o=Object.keys(this.fieldInfo).filter(e=>a.some(t=>e.startsWith(t))),s=[];return vF(()=>{o.forEach(e=>{s.push(Promise.resolve().then(()=>this.validateField(e,n)))})}),(await Promise.all(s)).flat()},this.validateField=(e,t)=>{let n=this.fieldInfo[e]?.instance;if(!n){let{hasErrored:n}=this.validateSync(t);return n&&!this.options.asyncAlways?this.getFieldMeta(e)?.errors??[]:this.validateAsync(t).then(()=>this.getFieldMeta(e)?.errors??[])}return n.store.state.meta.isTouched||n.setMeta(e=>({...e,isTouched:!0})),n.validate(t)},this.validateSync=(e,t)=>{let n=IF(e,{...this.options,form:this,group:t?.group,validationLogic:this.options.validationLogic||YF}),r=!1,i={};return vF(()=>{for(let e of n){if(!e.validate)continue;let{formError:n,fieldErrors:a}=rI(this.runValidator({validate:e.validate,value:{value:this.state.values,formApi:this,validationSource:`form`},type:`validate`})),o=iI(e.cause),s=new Set([...Object.keys(this.state.fieldMeta),...Object.keys(a||{})]);t?.filterFieldNames&&(s=new Set([...s].filter(t.filterFieldNames)));for(let e of s){if(this.baseStore.state.fieldMetaBase[e]===void 0&&!a?.[e])continue;let{errorMap:t,errorSourceMap:n}=this.getFieldMeta(e)??$F,r=a?.[e],{newErrorValue:s,newSource:c}=BF({newFormValidatorError:r,isPreviousErrorFromFormValidator:n?.[o]===`form`,previousErrorValue:t?.[o]});c===`form`&&(i[e]={...i[e],[o]:r}),t?.[o]!==s&&this.setFieldMeta(e,(e=$F)=>({...e,errorMap:{...e.errorMap,[o]:s},errorSourceMap:{...e.errorSourceMap,[o]:c}}))}t?.dontUpdateFormErrorMap||this.state.errorMap?.[o]!==n&&this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[o]:n}})),(n||a)&&(r=!0)}if(t?.dontUpdateFormErrorMap)return;let a=iI(`submit`);this.state.errorMap?.[a]&&e!==`submit`&&!r&&this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[a]:void 0}}));let o=iI(`server`);this.state.errorMap?.[o]&&e!==`server`&&!r&&this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[o]:void 0}}))}),{hasErrored:r,fieldsErrorMap:i}},this.validateAsync=async(e,t)=>{let n=LF(e,{...this.options,form:this,group:t?.group,validationLogic:this.options.validationLogic||YF});this.state.isFormValidating||this.baseStore.setState(e=>({...e,isFormValidating:!0}));let r=[],i;for(let e of n){if(!e.validate)continue;let n=iI(e.cause);this.state.validationMetaMap[n]?.lastAbortController.abort();let a=new AbortController;this.state.validationMetaMap[n]={lastAbortController:a},r.push(new Promise(async n=>{let r;try{r=await new Promise((t,n)=>{setTimeout(async()=>{if(a.signal.aborted)return t(void 0);try{t(await this.runValidator({validate:e.validate,value:{value:this.state.values,formApi:this,validationSource:`form`,signal:a.signal},type:`validateAsync`}))}catch(e){n(e)}},e.debounceMs)})}catch(e){r=e}let{formError:o,fieldErrors:s}=rI(r);s&&(i=i?{...i,...s}:s);let c=iI(e.cause),l=new Set([...Object.keys(this.state.fieldMeta),...Object.keys(i||{})]),u=Array.from(l);t?.filterFieldNames&&(u=u.filter(t.filterFieldNames));for(let e of u){if(this.baseStore.state.fieldMetaBase[e]===void 0&&!i?.[e])continue;let{errorMap:t,errorSourceMap:n}=this.getFieldMeta(e)??$F,r=i?.[e],{newErrorValue:a,newSource:o}=BF({newFormValidatorError:r,isPreviousErrorFromFormValidator:n?.[c]===`form`,previousErrorValue:t?.[c]});t?.[c]!==a&&this.setFieldMeta(e,(e=$F)=>({...e,errorMap:{...e.errorMap,[c]:a},errorSourceMap:{...e.errorSourceMap,[c]:o}}))}t?.dontUpdateFormErrorMap||this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[c]:o}})),n(i?{fieldErrors:i,errorMapKey:c}:void 0)}))}let a=[],o={};if(r.length){a=await Promise.all(r);for(let e of a)if(e?.fieldErrors){let{errorMapKey:t}=e;for(let[n,r]of Object.entries(e.fieldErrors))o[n]={...o[n]||{},[t]:r}}}return this.baseStore.setState(e=>({...e,isFormValidating:!1})),o},this.validate=(e,t)=>{let{hasErrored:n,fieldsErrorMap:r}=this.validateSync(e,t);return n&&!this.options.asyncAlways?r:this.validateAsync(e,t)},this._handleSubmit=async e=>{this.baseStore.setState(e=>({...e,isSubmitted:!1,submissionAttempts:e.submissionAttempts+1,isSubmitSuccessful:!1})),vF(()=>{Object.values(this.fieldInfo).forEach(e=>{e.instance&&(e.instance.store.state.meta.isTouched||e.instance.setMeta(e=>({...e,isTouched:!0})))})});let t=e??this.options.onSubmitMeta;if(!this.state.canSubmit&&!this._devtoolsSubmissionOverride&&this.baseStore.state.submissionAttempts<=1){this.options.onSubmitInvalid?.({value:this.state.values,formApi:this,meta:t});return}this.baseStore.setState(e=>({...e,isSubmitting:!0}));let n=()=>{this.baseStore.setState(e=>({...e,isSubmitting:!1}))};if(await this.validateAllFields(`submit`),!this.state.isFieldsValid){n(),this.options.onSubmitInvalid?.({value:this.state.values,formApi:this,meta:t}),EF.emit(`form-submission`,{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!1,stage:`validateAllFields`,errors:Object.values(this.state.fieldMeta).map(e=>e.errors).flat()});return}if(await this.validate(`submit`),!this.state.isValid){n(),this.options.onSubmitInvalid?.({value:this.state.values,formApi:this,meta:t}),EF.emit(`form-submission`,{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!1,stage:`validate`,errors:this.state.errors});return}vF(()=>{Object.values(this.fieldInfo).forEach(e=>{e.instance?.triggerOnSubmitListener()})}),this.options.listeners?.onSubmit?.({formApi:this,meta:t});try{await this.options.onSubmit?.({value:this.state.values,formApi:this,meta:t}),vF(()=>{this.baseStore.setState(e=>({...e,isSubmitted:!0,isSubmitSuccessful:!0})),EF.emit(`form-submission`,{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!0}),n()})}catch(e){throw this.baseStore.setState(e=>({...e,isSubmitSuccessful:!1})),EF.emit(`form-submission`,{id:this._formId,submissionAttempt:this.state.submissionAttempts,successful:!1,stage:`inflight`,onError:e}),n(),e}},this.getFieldValue=e=>OF(this.state.values,e),this.getFieldMeta=e=>this.state.fieldMeta[e],this.getFormGroupMeta=e=>this.formGroupMetaDerived.state[e],this.getFieldInfo=e=>this.fieldInfo[e]||={instance:null,validationMetaMap:{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0,onDynamic:void 0}},this.setFieldMeta=(e,t)=>{this.baseStore.setState(n=>({...n,fieldMetaBase:{...n.fieldMetaBase,[e]:DF(t,n.fieldMetaBase[e])}}))},this.resetFieldMeta=e=>Object.keys(e).reduce((e,t)=>{let n=t;return e[n]=$F,e},{}),this.setFieldValue=(e,t,n)=>{let r=n?.dontUpdateMeta??!1,i=n?.dontRunListeners??!1,a=n?.dontValidate??!1;vF(()=>{r||this.setFieldMeta(e,e=>({...e,isTouched:!0,isDirty:!0,errorMap:{...e?.errorMap,onMount:void 0}})),this.baseStore.setState(n=>({...n,values:kF(n.values,e,t)}))}),i||this.getFieldInfo(e).instance?.triggerOnChangeListener(),a||this.validateField(e,`change`)},this.deleteField=e=>{let t=[...Object.keys(this.fieldInfo).filter(t=>{let n=e.toString();return t.startsWith(`${n}.`)||t.startsWith(`${n}[`)}),e];this.baseStore.setState(e=>{let n={...e};return t.forEach(e=>{n.values=bCe(n.values,e),delete this.fieldInfo[e],delete n.fieldMetaBase[e]}),n})},this.pushFieldValue=(e,t,n)=>{this.setFieldValue(e,e=>[...Array.isArray(e)?e:[],t],n),eI(this).bumpArrayVersion(e)},this.insertFieldValue=async(e,t,n,r)=>{this.setFieldValue(e,e=>[...e.slice(0,t),n,...e.slice(t)],HF(r,{dontValidate:!0}));let i=r?.dontValidate??!1;i||await this.validateField(e,`change`),eI(this).handleArrayInsert(e,t),i||await this.validateArrayFieldsStartingFrom(e,t,`change`)},this.replaceFieldValue=async(e,t,n,r)=>{this.setFieldValue(e,e=>e.map((e,r)=>r===t?n:e),HF(r,{dontValidate:!0})),eI(this).bumpArrayVersion(e),(r?.dontValidate??!1)||(await this.validateField(e,`change`),await this.validateArrayFieldsStartingFrom(e,t,`change`))},this.removeFieldValue=async(e,t,n)=>{let r=this.getFieldValue(e),i=Array.isArray(r)?Math.max(r.length-1,0):null;if(this.setFieldValue(e,e=>e.filter((e,n)=>n!==t),HF(n,{dontValidate:!0})),eI(this).handleArrayRemove(e,t),i!==null){let t=`${e}[${i}]`;this.deleteField(t)}(n?.dontValidate??!1)||(await this.validateField(e,`change`),await this.validateArrayFieldsStartingFrom(e,t,`change`))},this.swapFieldValues=(e,t,n,r)=>{this.setFieldValue(e,e=>{let r=e[t],i=e[n];return kF(kF(e,`${t}`,i),`${n}`,r)},HF(r,{dontValidate:!0})),eI(this).handleArraySwap(e,t,n),(r?.dontValidate??!1)||(this.validateField(e,`change`),this.validateField(`${e}[${t}]`,`change`),this.validateField(`${e}[${n}]`,`change`))},this.moveFieldValues=(e,t,n,r)=>{this.setFieldValue(e,e=>{let r=[...e];return r.splice(n,0,r.splice(t,1)[0]),r},HF(r,{dontValidate:!0})),eI(this).handleArrayMove(e,t,n),(r?.dontValidate??!1)||(this.validateField(e,`change`),this.validateField(`${e}[${t}]`,`change`),this.validateField(`${e}[${n}]`,`change`))},this.clearFieldValues=(e,t)=>{let n=this.getFieldValue(e),r=Array.isArray(n)?Math.max(n.length-1,0):null;if(this.setFieldValue(e,[],HF(t,{dontValidate:!0})),eI(this).bumpArrayVersion(e),r!==null)for(let t=0;t<=r;t++){let n=`${e}[${t}]`;this.deleteField(n)}(t?.dontValidate??!1)||this.validateField(e,`change`)},this.resetField=e=>{this.baseStore.setState(t=>{let n=this.getFieldInfo(e).instance?.options.defaultValue,r=OF(this.options.defaultValues,e),i=n??r;return{...t,fieldMetaBase:{...t.fieldMetaBase,[e]:$F},values:i===void 0?t.values:kF(t.values,e,i)}})},this.setErrorMap=e=>{vF(()=>{Object.entries(e).forEach(([e,t])=>{let n=e;if(RF(t)){let{formError:e,fieldErrors:r}=rI(t);for(let e of Object.keys(this.fieldInfo))this.getFieldMeta(e)&&this.setFieldMeta(e,t=>({...t,errorMap:{...t.errorMap,[n]:r?.[e]},errorSourceMap:{...t.errorSourceMap,[n]:`form`}}));this.baseStore.setState(t=>({...t,errorMap:{...t.errorMap,[n]:e}}))}else this.baseStore.setState(e=>({...e,errorMap:{...e.errorMap,[n]:t}}))})})},this.getAllErrors=()=>({form:{errors:this.state.errors,errorMap:this.state.errorMap},fields:Object.entries(this.state.fieldMeta).reduce((e,[t,n])=>(Object.keys(n).length&&n.errors.length&&(e[t]={errors:n.errors,errorMap:n.errorMap}),e),{})}),this.parseValuesWithSchema=e=>ZF.validate({value:this.state.values,validationSource:`form`},e),this.parseValuesWithSchemaAsync=e=>ZF.validateAsync({value:this.state.values,validationSource:`form`},e),this.timeoutIds={validations:{},listeners:{},formListeners:{}},this._formId=e?.formId??KF(),this._devtoolsSubmissionOverride=!1;let t=tI({...e?.defaultState,values:e?.defaultValues??e?.defaultState?.values});if(e?.transform){t=e.transform({state:t}).state;for(let e of Object.keys(t.errorMap)){let n=t.errorMap[e];if(!(n===void 0||!RF(n)))for(let r of Object.keys(n.fields)){let i=n.fields[r];if(i===void 0)continue;let a=t.fieldMetaBase[r];t.fieldMetaBase[r]={isTouched:!1,isValidating:!1,isBlurred:!1,isDirty:!1,_arrayVersion:0,_pendingValidationsCount:0,...a??{},errorSourceMap:{...a?.errorSourceMap??{},onChange:`form`},errorMap:{...a?.errorMap??{},[e]:i}}}}}this.baseStore=CF(t);let n;this.fieldMetaDerived=CF(e=>{let t=this.baseStore.get(),r=0,i={};for(let a of Object.keys(t.fieldMetaBase)){let o=t.fieldMetaBase[a],s=n?.fieldMetaBase[a],c=e?.[a],l=OF(t.values,a),u=c?.errors;if(!s||o.errorMap!==s.errorMap){u=Object.values(o.errorMap??{}).filter(e=>e!==void 0);let e=this.getFieldInfo(a)?.instance;(!e||!e.options.disableErrorFlat)&&(u=u.flat(1))}let d=!SCe(u),f=!o.isDirty,p=zF(l,this.getFieldInfo(a)?.instance?.options.defaultValue??OF(this.options.defaultValues,a));if(c&&c.isPristine===f&&c.isValid===d&&c.isDefaultValue===p&&c.errors===u&&o===s){i[a]=c,r++;continue}i[a]={...o,errors:u??[],isPristine:f,isValid:d,isDefaultValue:p}}return Object.keys(t.fieldMetaBase).length?e&&r===Object.keys(t.fieldMetaBase).length?e:(n=this.baseStore.get(),i):i}),this.formGroupMetaDerived=CF(e=>{let t=this.baseStore.get(),n=this.fieldMetaDerived.get(),r={};for(let i of this.formGroupApis){let a=i.name,o=t.formGroupStateBase[a]??{isSubmitted:!1,isSubmitting:!1,isValidating:!1,submissionAttempts:0,isSubmitSuccessful:!1},s=n[a],c=!1,l=!0,u=!1,d=!1,f=!0,p=!1;for(let e in n){if(e===a||!JF(a,e))continue;let t=n[e];t&&(t.isValidating&&(c=!0),t.isValid||(l=!1),t.isTouched&&(u=!0),t.isBlurred&&(d=!0),t.isDefaultValue||(f=!1),t.isDirty&&(p=!0))}let m=!p,h=!!c||o.isValidating,g=s?.errorMap??{},_=s?.errorSourceMap??{},v=!!(g.onMount||Object.entries(n).some(([e,t])=>t&&e!==a&&JF(a,e)&&t.errorMap.onMount)),y=e?.[a],b=y?.errors??[];(!y||y.__srcErrorMap!==g)&&(b=Object.values(g).reduce((e,t)=>{if(t===void 0)return e;if(t&&typeof t==`object`&&`fields`in t){let n=t.group;return n!==void 0&&e.push(n),e}return e.push(t),e},[]));let x=b.length===0,S=l&&x,C=i.options.canSubmitWhenInvalid??!1,w=o.submissionAttempts===0&&!u&&!v||!h&&!o.isSubmitting&&S||C;if(y&&y.errorMap===g&&y.errorSourceMap===_&&y.errors===b&&y.isFieldsValidating===c&&y.isFieldsValid===l&&y.isGroupValid===x&&y.isValid===S&&y.canSubmit===w&&y.isTouched===u&&y.isBlurred===d&&y.isPristine===m&&y.isDefaultValue===f&&y.isDirty===p&&y.isValidating===h&&y.isSubmitting===o.isSubmitting&&y.isSubmitted===o.isSubmitted&&y.submissionAttempts===o.submissionAttempts&&y.isSubmitSuccessful===o.isSubmitSuccessful){r[a]=y;continue}let T={...o,errorMap:g,errorSourceMap:_,_arrayVersion:s?._arrayVersion??0,isTouched:u,isBlurred:d,isDirty:p,isPristine:m,isDefaultValue:f,isValid:S,errors:b,isValidating:h,isFieldsValidating:c,isFieldsValid:l,isGroupValid:x,canSubmit:w};Object.defineProperty(T,"__srcErrorMap",{value:g,enumerable:!1,configurable:!0}),r[a]=T}return r});let r;this.store=CF(e=>{let t=this.baseStore.get(),n=this.fieldMetaDerived.get(),i=Object.values(n).filter(Boolean),a=i.some(e=>e.isValidating),o=i.every(e=>e.isValid),s=i.some(e=>e.isTouched),c=i.some(e=>e.isBlurred),l=i.every(e=>e.isDefaultValue),u=s&&t.errorMap?.onMount,d=i.some(e=>e.isDirty),f=!d,p=!!(t.errorMap?.onMount||i.some(e=>e?.errorMap?.onMount)),m=!!a,h=e?.errors??[];(!r||t.errorMap!==r.errorMap)&&(h=Object.values(t.errorMap).reduce((e,t)=>t===void 0?e:t&&RF(t)?(e.push(t.form),e):(e.push(t),e),[]));let g=h.length===0,_=o&&g,v=this.options.canSubmitWhenInvalid??!1,y=t.submissionAttempts===0&&!s&&!p||!m&&!t.isSubmitting&&_||v,b=t.errorMap;if(u&&(h=h.filter(e=>e!==t.errorMap.onMount),b=Object.assign(b,{onMount:void 0})),e&&r&&e.errorMap===b&&e.fieldMeta===this.fieldMetaDerived.state&&e.errors===h&&e.isFieldsValidating===a&&e.isFieldsValid===o&&e.isFormValid===g&&e.isValid===_&&e.canSubmit===y&&e.isTouched===s&&e.isBlurred===c&&e.isPristine===f&&e.isDefaultValue===l&&e.isDirty===d&&zF(r,t))return e;let x={...t,errorMap:b,fieldMeta:this.fieldMetaDerived.state,errors:h,isFieldsValidating:a,isFieldsValid:o,isFormValid:g,isValid:_,canSubmit:y,isTouched:s,isBlurred:c,isPristine:f,isDefaultValue:l,isDirty:d};return r=this.baseStore.get(),x}),this.handleSubmit=this.handleSubmit.bind(this),this.update(e||{})}get state(){return this.store.state}get formId(){return this._formId}runValidator(e){return QF(e.validate)?ZF[e.type](e.value,e.validate):e.validate(e.value)}handleSubmit(e){return this._handleSubmit(e)}};function rI(e){return e?RF(e)?{formError:rI(e.form).formError,fieldErrors:e.fields}:{formError:e}:{formError:void 0}}function iI(e){switch(e){case`submit`:return`onSubmit`;case`blur`:return`onBlur`;case`mount`:return`onMount`;case`server`:return`onServer`;case`dynamic`:return`onDynamic`;default:return`onChange`}}var aI=class e{constructor(t){this.options={},this.mount=()=>{this.options.defaultValue!==void 0&&!this.getMeta().isTouched&&this.form.setFieldValue(this.name,this.options.defaultValue,{dontUpdateMeta:!0});let e=this.getInfo();e.instance=this,this.update(this.options);let{onMount:t}=this.options.validators||{};if(t){let e=this.runValidator({validate:t,value:{value:this.state.value,fieldApi:this,validationSource:`field`},type:`validate`});e&&this.setMeta(t=>({...t,errorMap:{...t?.errorMap,onMount:e},errorSourceMap:{...t?.errorSourceMap,onMount:`field`}}))}return this.options.listeners?.onMount?.({value:this.state.value,fieldApi:this}),()=>{for(let[e,t]of Object.entries(this.timeoutIds.validations))t&&(clearTimeout(t),this.timeoutIds.validations[e]=null);for(let[e,t]of Object.entries(this.timeoutIds.listeners))t&&(clearTimeout(t),this.timeoutIds.listeners[e]=null);for(let[e,t]of Object.entries(this.timeoutIds.formListeners))t&&(clearTimeout(t),this.timeoutIds.formListeners[e]=null);let e=this.form.fieldInfo[this.name];if(e&&e.instance===this){for(let[t,n]of Object.entries(e.validationMetaMap))n?.lastAbortController.abort(),e.validationMetaMap[t]=void 0;this.form.baseStore.setState(e=>({...e,fieldMetaBase:{...e.fieldMetaBase,[this.name]:{...$F,isTouched:e.fieldMetaBase[this.name]?.isTouched??$F.isTouched,isBlurred:e.fieldMetaBase[this.name]?.isBlurred??$F.isBlurred,isDirty:e.fieldMetaBase[this.name]?.isDirty??$F.isDirty}}})),e.instance=null,this.options.listeners?.onUnmount?.({value:this.state.value,fieldApi:this}),this.form.options.listeners?.onFieldUnmount?.({formApi:this.form,fieldApi:this})}}},this.update=e=>{this.options=e,this.name=e.name,!this.state.meta.isTouched&&this.options.defaultValue!==void 0&&(zF(this.form.getFieldValue(this.name),e.defaultValue)||this.form.setFieldValue(this.name,e.defaultValue,{dontUpdateMeta:!0,dontValidate:!0,dontRunListeners:!0})),this.form.getFieldMeta(this.name)||this.form.setFieldMeta(this.name,this.state.meta)},this.getValue=()=>this.form.getFieldValue(this.name),this.setValue=(e,t)=>{this.form.setFieldValue(this.name,e,HF(t,{dontRunListeners:!0,dontValidate:!0})),t?.dontRunListeners||this.triggerOnChangeListener(),t?.dontValidate||this.validate(`change`)},this.getMeta=()=>this.store.state.meta,this.setMeta=e=>this.form.setFieldMeta(this.name,e),this.getInfo=()=>this.form.getFieldInfo(this.name),this.pushValue=(e,t)=>{this.form.pushFieldValue(this.name,e,HF(t,{dontRunListeners:!0})),t?.dontRunListeners||this.triggerOnChangeListener()},this.insertValue=(e,t,n)=>{this.form.insertFieldValue(this.name,e,t,HF(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.replaceValue=(e,t,n)=>{this.form.replaceFieldValue(this.name,e,t,HF(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.removeValue=(e,t)=>{this.form.removeFieldValue(this.name,e,HF(t,{dontRunListeners:!0})),t?.dontRunListeners||this.triggerOnChangeListener()},this.swapValues=(e,t,n)=>{this.form.swapFieldValues(this.name,e,t,HF(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.moveValue=(e,t,n)=>{this.form.moveFieldValues(this.name,e,t,HF(n,{dontRunListeners:!0})),n?.dontRunListeners||this.triggerOnChangeListener()},this.clearValues=e=>{this.form.clearFieldValues(this.name,HF(e,{dontRunListeners:!0})),e?.dontRunListeners||this.triggerOnChangeListener()},this.getLinkedFields=t=>{let n=Object.values(this.form.fieldInfo),r=[];for(let i of n){if(!i.instance||!(i.instance instanceof e))continue;let{onChangeListenTo:n,onBlurListenTo:a}=i.instance.options.validators||{};t===`change`&&n?.includes(this.name)&&r.push(i.instance),t===`blur`&&a?.includes(this.name)&&r.push(i.instance)}return r},this.validateSync=(e,t)=>{let n=IF(e,{...this.options,form:this.form,fieldName:this.name,validationLogic:this.form.options.validationLogic||YF}),r=this.getLinkedFields(e).reduce((t,n)=>{let r=IF(e,{...n.options,form:n.form,fieldName:n.name,validationLogic:n.form.options.validationLogic||YF});return r.forEach(e=>{e.field=n}),t.concat(r)},[]),i=!1;vF(()=>{let e=(e,n)=>{let r=sI(n.cause),a=n.validate?oI(e.runValidator({validate:n.validate,value:{value:e.store.state.value,validationSource:`field`,fieldApi:e},type:`validate`})):void 0,o=t[r],{newErrorValue:s,newSource:c}=VF({formLevelError:o,fieldLevelError:a});e.state.meta.errorMap?.[r]!==s&&e.setMeta(e=>({...e,errorMap:{...e.errorMap,[r]:s},errorSourceMap:{...e.errorSourceMap,[r]:c}})),s&&(i=!0)};for(let t of n)e(this,t);for(let t of r)t.validate&&e(t.field,t)});let a=sI(`submit`);return this.state.meta.errorMap?.[a]&&e!==`submit`&&!i&&this.setMeta(e=>({...e,errorMap:{...e.errorMap,[a]:void 0},errorSourceMap:{...e.errorSourceMap,[a]:void 0}})),{hasErrored:i}},this.validateAsync=async(e,t)=>{let n=LF(e,{...this.options,form:this.form,fieldName:this.name,validationLogic:this.form.options.validationLogic||YF}),r=await t,i=this.getLinkedFields(e).reduce((t,n)=>{let r=LF(e,{...n.options,form:n.form,fieldName:n.name,validationLogic:n.form.options.validationLogic||YF});return r.forEach(e=>{e.field=n}),t.concat(r)},[]),a=[],o=[],s=n.some(e=>e.validate),c=Array.from(new Set(i.filter(e=>e.validate).map(e=>e.field)));vF(()=>{s&&this.startValidation();for(let e of c)e.startValidation()});let l=(e,t,n)=>{let i=sI(t.cause),a=e.getInfo();a.validationMetaMap[i]?.lastAbortController.abort();let o=new AbortController;a.validationMetaMap[i]={lastAbortController:o},n.push(new Promise(async n=>{let a;try{a=await new Promise((n,r)=>{e.timeoutIds.validations[t.cause]&&(clearTimeout(e.timeoutIds.validations[t.cause]),e.endValidation()),e.timeoutIds.validations[t.cause]=setTimeout(async()=>{if(o.signal.aborted)return n(void 0);try{n(await this.runValidator({validate:t.validate,value:{value:e.store.state.value,fieldApi:e,signal:o.signal,validationSource:`field`},type:`validateAsync`}))}catch(e){r(e)}},t.debounceMs)})}catch(e){a=e}if(o.signal.aborted)return n(void 0);let s=oI(a),c=r[e.name]?.[i],{newErrorValue:l,newSource:u}=VF({formLevelError:c,fieldLevelError:s});if(e.getInfo().instance!==e)return n(void 0);e.setMeta(e=>({...e,errorMap:{...e?.errorMap,[i]:l},errorSourceMap:{...e.errorSourceMap,[i]:u}})),n(l)}))};for(let e of n)e.validate&&l(this,e,a);for(let e of i)e.validate&&l(e.field,e,o);let u=[];return(a.length||o.length)&&(u=await Promise.all(a),await Promise.all(o)),vF(()=>{s&&this.endValidation();for(let e of c)e.endValidation()}),u.filter(Boolean)},this.validate=(e,t)=>{if(!this.state.meta.isTouched)return[];let n=t?.skipGroupValidation?[]:Array.from(this.form.formGroupApis).filter(e=>this.name.startsWith(e.name)),r=(t?.skipFormValidation?{fieldsErrorMap:{}}:this.form.validateSync(e)).fieldsErrorMap[this.name]??{};if(!t?.skipFormValidation)for(let t of n){if(t.state.meta.submissionAttempts===0)continue;let{fieldsErrorMap:n}=this.form.validateSync(e,{group:t,dontUpdateFormErrorMap:!0,filterFieldNames:e=>JF(t.name,e)});r={...r,...n[this.name]??{}}}let{hasErrored:i}=this.validateSync(e,r),a=new WeakMap;for(let t of n){let{hasErrored:n}=t.validateSync(e,{},{skipRelatedFieldValidation:!0});a.set(t,n)}if(i&&!this.options.asyncAlways){this.getInfo().validationMetaMap[sI(e)]?.lastAbortController.abort();let t=[];for(let r of n)r.getInfo().validationMetaMap[sI(e)]?.lastAbortController.abort(),t.push(r.state.meta.errors);return[...this.state.meta.errors,...t.flat()]}let o=t?.skipFormValidation?Promise.resolve({}):this.form.validateAsync(e),s=this.validateAsync(e,o),c=[];for(let t of n)a.get(t)&&!t.options.asyncAlways||c.push(t.validateAsync(e,o,{skipRelatedFieldValidation:!0}));return c.length===0?s:Promise.all([s,...c]).then(e=>e.flat())},this.handleChange=e=>{this.setValue(e)},this.handleBlur=()=>{this.state.meta.isTouched||this.setMeta(e=>({...e,isTouched:!0})),this.state.meta.isBlurred||this.setMeta(e=>({...e,isBlurred:!0})),this.validate(`blur`),this.triggerOnBlurListener()},this.setErrorMap=e=>{this.setMeta(t=>({...t,errorMap:{...t.errorMap,...e}}))},this.parseValueWithSchema=e=>ZF.validate({value:this.state.value,validationSource:`field`},e),this.parseValueWithSchemaAsync=e=>ZF.validateAsync({value:this.state.value,validationSource:`field`},e),this.triggerOnBlurListener=()=>{let e=this.form.options.listeners?.onBlurDebounceMs;e&&e>0?(this.timeoutIds.formListeners.blur&&clearTimeout(this.timeoutIds.formListeners.blur),this.timeoutIds.formListeners.blur=setTimeout(()=>{this.form.options.listeners?.onBlur?.({formApi:this.form,fieldApi:this})},e)):this.form.options.listeners?.onBlur?.({formApi:this.form,fieldApi:this});let t=this.options.listeners?.onBlurDebounceMs;t&&t>0?(this.timeoutIds.listeners.blur&&clearTimeout(this.timeoutIds.listeners.blur),this.timeoutIds.listeners.blur=setTimeout(()=>{this.options.listeners?.onBlur?.({value:this.state.value,fieldApi:this})},t)):this.options.listeners?.onBlur?.({value:this.state.value,fieldApi:this})},this.triggerOnChangeListener=()=>{let e=this.form.options.listeners?.onChangeDebounceMs;e&&e>0?(this.timeoutIds.formListeners.change&&clearTimeout(this.timeoutIds.formListeners.change),this.timeoutIds.formListeners.change=setTimeout(()=>{this.form.options.listeners?.onChange?.({formApi:this.form,fieldApi:this})},e)):this.form.options.listeners?.onChange?.({formApi:this.form,fieldApi:this});let t=this.options.listeners?.onChangeDebounceMs;t&&t>0?(this.timeoutIds.listeners.change&&clearTimeout(this.timeoutIds.listeners.change),this.timeoutIds.listeners.change=setTimeout(()=>{this.options.listeners?.onChange?.({value:this.state.value,fieldApi:this})},t)):this.options.listeners?.onChange?.({value:this.state.value,fieldApi:this});for(let e of this.form.formGroupApis)JF(e.name,this.name)&&e.triggerOnChangeListener()},this.triggerOnSubmitListener=()=>{this.options.listeners?.onSubmit?.({value:this.state.value,fieldApi:this})},this.form=t.form,this.name=t.name,this.options=t,this.timeoutIds={validations:{},listeners:{},formListeners:{}},this.store=CF(e=>{this.form.store.get();let n=this.form.getFieldMeta(this.name)??{...$F,...t.defaultMeta},r=this.form.getFieldValue(this.name);return!n.isTouched&&r===void 0&&this.options.defaultValue!==void 0&&!zF(r,this.options.defaultValue)&&(r=this.options.defaultValue),e&&e.value===r&&e.meta===n?e:{value:r,meta:n}})}get state(){return this.store.state}runValidator(e){return QF(e.validate)?ZF[e.type](e.value,e.validate):e.validate(e.value)}startValidation(){this.setMeta(e=>{let t=e._pendingValidationsCount+1;return{...e,_pendingValidationsCount:t,isValidating:t>0&&!e.isValidating||e.isValidating}})}endValidation(){this.setMeta(e=>{let t=Math.max(0,e._pendingValidationsCount-1);return{...e,_pendingValidationsCount:t,isValidating:t===0&&e.isValidating?!1:e.isValidating}})}};function oI(e){if(e)return e}function sI(e){switch(e){case`submit`:return`onSubmit`;case`blur`:return`onBlur`;case`mount`:return`onMount`;case`server`:return`onServer`;case`dynamic`:return`onDynamic`;default:return`onChange`}}function cI(e){return{isSubmitted:e.isSubmitted??!1,isSubmitting:e.isSubmitting??!1,isValidating:e.isValidating??!1,submissionAttempts:e.submissionAttempts??0,isSubmitSuccessful:e.isSubmitSuccessful??!1}}function TCe(e){return{...$F,...e,errors:[],isPristine:!0,isValid:!0,isDefaultValue:!0,isFieldsValidating:!1,isFieldsValid:!0,isGroupValid:!0,canSubmit:!0,isSubmitting:!1,isSubmitted:!1,isValidating:!1,submissionAttempts:0,isSubmitSuccessful:!1}}var lI=class e{constructor(t){this.options={},this.setFormGroupState=e=>{this.form.baseStore.setState(t=>{let n=t.formGroupStateBase[this.name]??cI({});return{...t,formGroupStateBase:{...t.formGroupStateBase,[this.name]:e(n)}}})},this._lastDistributedFieldNames={},this.update=e=>{this.options=e,this.name=e.name,!this.state.meta.isTouched&&this.options.defaultValue!==void 0&&(zF(this.form.getFieldValue(this.name),e.defaultValue)||this.form.setFieldValue(this.name,e.defaultValue,{dontUpdateMeta:!0,dontValidate:!0,dontRunListeners:!0})),this.form.getFieldMeta(this.name)||this.form.setFieldMeta(this.name,{...$F,...this.options.defaultMeta})},this.mount=()=>{this.update(this.options),this.form.formGroupApis.add(this),this.fieldInfo.instance=this,this.form.baseStore.setState(e=>({...e,formGroupStateBase:{...e.formGroupStateBase,[this.name]:e.formGroupStateBase[this.name]??cI({...this.options.defaultState})}}));let{onMount:e}=this.options.validators||{};if(e){let t=this.runValidator({validate:e,value:{value:this.state.value,groupApi:this,validationSource:`form`},type:`validate`}),n=t,r;dI(t)&&(n=t.group,r=t.fields);let i=uI(n);i&&this.setMeta(e=>({...e,errorMap:{...e.errorMap,onMount:i},errorSourceMap:{...e.errorSourceMap,onMount:`field`}})),this.distributeFieldErrors(`onMount`,r)}return this.options.listeners?.onMount?.({value:this.state.value,groupApi:this}),()=>{for(let[e,t]of Object.entries(this.timeoutIds.validations))t&&(clearTimeout(t),this.timeoutIds.validations[e]=null);for(let[e,t]of Object.entries(this.timeoutIds.listeners))t&&(clearTimeout(t),this.timeoutIds.listeners[e]=null);for(let[e,t]of Object.entries(this.timeoutIds.formListeners))t&&(clearTimeout(t),this.timeoutIds.formListeners[e]=null);if(this.fieldInfo.instance===this){for(let[e,t]of Object.entries(this.fieldInfo.validationMetaMap))t?.lastAbortController.abort(),this.fieldInfo.validationMetaMap[e]=void 0;this.form.formGroupApis.delete(this),this.form.baseStore.setState(e=>({...e,formGroupStateBase:{...e.formGroupStateBase,[this.name]:cI({})}})),this.fieldInfo.instance=null,this.options.listeners?.onUnmount?.({value:this.state.value,groupApi:this})}}},this.setValue=(e,t)=>{this.form.setFieldValue(this.name,e,HF(t,{dontRunListeners:!0,dontValidate:!0})),t?.dontRunListeners||this.triggerOnChangeListener(),t?.dontValidate||this.validate(`change`)},this.getMeta=()=>this.store.state.meta,this.setMeta=e=>this.form.setFieldMeta(this.name,e),this.getInfo=()=>this.fieldInfo,this.getRelatedFields=()=>{let e=Object.values(this.form.fieldInfo),t=[];for(let n of e)n.instance&&n.instance instanceof aI&&n.instance.name.startsWith(this.name)&&t.push(n.instance);return t},this.getRelatedFieldMetasDerived=()=>{let e=Object.entries(this.form.fieldMetaDerived.state),t=[];for(let[n,r]of e)n!==this.name&&JF(this.name,n)&&t.push({...r,name:n});return t},this.buildChildFieldName=e=>e===``?this.name:e.startsWith(`[`)?`${this.name}${e}`:`${this.name}.${e}`,this.distributeFieldErrors=(e,t)=>{let n=this._lastDistributedFieldNames[e]??new Set,r=new Set;if(t)for(let[e,n]of Object.entries(t))n!=null&&n!==!1&&r.add(this.buildChildFieldName(e));let i=new Set([...n,...r]),a=!1;for(let n of i){let r=n.startsWith(this.name+`[`)?n.slice(this.name.length):n.slice(this.name.length+1),i=t?.[r],o=this.form.getFieldMeta(n);if(!o&&!i)continue;let s=o?.errorMap[e],{newErrorValue:c,newSource:l}=BF({newFormValidatorError:i,isPreviousErrorFromFormValidator:o?.errorSourceMap[e]===`form`,previousErrorValue:s});c&&(a=!0),(s!==c||o?.errorSourceMap[e]!==l)&&this.form.setFieldMeta(n,(t=$F)=>({...t,errorMap:{...t.errorMap,[e]:c},errorSourceMap:{...t.errorSourceMap,[e]:l}}))}return this._lastDistributedFieldNames[e]=r,a},this.validateSync=(t,n,r={})=>{let i=IF(t,{...this.options,form:this.form,group:this,validationLogic:this.options.validationLogic||this.form.options.validationLogic||YF}),a=(r.skipRelatedFieldValidation?[]:this.getRelatedFields()).reduce((e,n)=>{let r=IF(t,{...n.options,form:n.form,validationLogic:n.form.options.validationLogic||YF});return r.forEach(e=>{e.field=n}),e.concat(r)},[]),o=!1;vF(()=>{let t=(t,r)=>{let i=pI(r.cause),a=t===this,s;r.validate&&(s=t.runValidator({validate:r.validate,value:{value:t.store.state.value,validationSource:a?`form`:`field`,...t instanceof e?{groupApi:t}:{fieldApi:t}},type:`validate`}));let c=s,l;a&&dI(s)&&(c=s.group,l=s.fields);let u=uI(c),d=n[i],{newErrorValue:f,newSource:p}=VF({formLevelError:d,fieldLevelError:u});t.state.meta.errorMap?.[i]!==f&&t.setMeta(e=>({...e,errorMap:{...e.errorMap,[i]:f},errorSourceMap:{...e.errorSourceMap,[i]:p}})),f&&(o=!0),a&&this.distributeFieldErrors(i,l)&&(o=!0)};for(let e of i)t(this,e);for(let e of a)e.validate&&t(e.field,e)});let s=pI(`submit`);return this.state.meta.errorMap?.[s]&&t!==`submit`&&!o&&this.setMeta(e=>({...e,errorMap:{...e.errorMap,[s]:void 0},errorSourceMap:{...e.errorSourceMap,[s]:void 0}})),{hasErrored:o}},this.validateAsync=async(t,n,r={})=>{let i=LF(t,{...this.options,form:this.form,group:this,validationLogic:this.options.validationLogic||this.form.options.validationLogic||YF}),a=await n,o=r.skipRelatedFieldValidation?[]:this.getRelatedFields(),s=o.reduce((e,n)=>{let r=LF(t,{...n.options,form:n.form,validationLogic:n.form.options.validationLogic||YF});return r.forEach(e=>{e.field=n}),e.concat(r)},[]),c=[],l=[],u=i.some(e=>e.validate)||s.some(e=>e.validate);if(u){this.state.meta.isValidating||this.setMeta(e=>({...e,isValidating:!0}));for(let e of o)e.setMeta(e=>({...e,isValidating:!0}))}let d=(t,n,r)=>{let i=pI(n.cause),o=t.getInfo();o.validationMetaMap[i]?.lastAbortController.abort();let s=new AbortController;o.validationMetaMap[i]={lastAbortController:s};let c=t===this;r.push(new Promise(async r=>{let o;try{o=await new Promise((r,i)=>{t.timeoutIds.validations[n.cause]&&clearTimeout(t.timeoutIds.validations[n.cause]),t.timeoutIds.validations[n.cause]=setTimeout(async()=>{if(s.signal.aborted)return r(void 0);try{r(await this.runValidator({validate:n.validate,value:{value:t.store.state.value,signal:s.signal,validationSource:c?`form`:`field`,...t instanceof e?{groupApi:t}:{fieldApi:t}},type:`validateAsync`}))}catch(e){i(e)}},n.debounceMs)})}catch(e){o=e}if(s.signal.aborted)return r(void 0);let l=o,u;c&&dI(o)&&(l=o.group,u=o.fields);let d=uI(l),f=a[t.name]?.[i],{newErrorValue:p,newSource:m}=VF({formLevelError:f,fieldLevelError:d});if(t.getInfo().instance!==t)return r(void 0);t.setMeta(e=>({...e,errorMap:{...e?.errorMap,[i]:p},errorSourceMap:{...e.errorSourceMap,[i]:m}})),c&&this.distributeFieldErrors(i,u),r(p)}))};for(let e of i)e.validate&&d(this,e,c);for(let e of s)e.validate&&d(e.field,e,l);let f=[];if((c.length||l.length)&&(f=await Promise.all(c),await Promise.all(l)),u){this.setMeta(e=>({...e,isValidating:!1}));for(let e of o)e.setMeta(e=>({...e,isValidating:!1}))}return f.filter(Boolean)},this.validateAllFields=async e=>{let t=[];return vF(()=>{Object.values(this.getRelatedFields()).forEach(n=>{t.push(Promise.resolve().then(()=>n.validate(e,{skipFormValidation:!0,skipGroupValidation:!0}))),n.store.state.meta.isTouched||n.setMeta(e=>({...e,isTouched:!0}))})}),(await Promise.all(t)).flat()},this.validateArrayFieldsStartingFrom=(e,t,n)=>this.form.validateArrayFieldsStartingFrom(e,t,n),this.validateField=(e,t)=>this.form.validateField(e,t),this.getFieldValue=e=>this.form.getFieldValue(e),this.getFieldMeta=e=>this.form.getFieldMeta(e),this.setFieldMeta=(e,t)=>this.form.setFieldMeta(e,t),this.setFieldValue=(e,t)=>this.form.setFieldValue(e,t),this.deleteField=e=>this.form.deleteField(e),this.pushFieldValue=(e,t)=>this.form.pushFieldValue(e,t),this.insertFieldValue=(e,t,n)=>this.form.insertFieldValue(e,t,n),this.replaceFieldValue=(e,t,n)=>this.form.replaceFieldValue(e,t,n),this.swapFieldValues=(e,t,n)=>this.form.swapFieldValues(e,t,n),this.moveFieldValues=(e,t,n)=>this.form.moveFieldValues(e,t,n),this.clearFieldValues=e=>this.form.clearFieldValues(e),this.resetField=e=>this.form.resetField(e),this.removeFieldValue=(e,t)=>this.form.removeFieldValue(e,t),this.areRelatedFieldsValid=()=>Object.values(this.getRelatedFields()).every(e=>e.state.meta.isValid),this.validate=(e,t)=>{let{fieldsErrorMap:n}=t?.skipFormValidation?{fieldsErrorMap:{}}:this.form.validateSync(e,{dontUpdateFormErrorMap:!0,filterFieldNames:e=>JF(this.name,e)}),{hasErrored:r}=this.validateSync(e,n[this.name]??{},{skipRelatedFieldValidation:t?.skipRelatedFieldValidation});if(r&&!this.options.asyncAlways)return this.getInfo().validationMetaMap[pI(e)]?.lastAbortController.abort(),this.state.meta.errors;let i=t?.skipFormValidation?Promise.resolve({}):this.form.validateAsync(e,{dontUpdateFormErrorMap:!0,filterFieldNames:e=>JF(this.name,e)});return this.validateAsync(e,i,{skipRelatedFieldValidation:t?.skipRelatedFieldValidation})},this.triggerOnChangeListener=()=>{let e=this.form.options.listeners?.onChangeGroupDebounceMs;e&&e>0?(this.timeoutIds.formListeners.change&&clearTimeout(this.timeoutIds.formListeners.change),this.timeoutIds.formListeners.change=setTimeout(()=>{this.form.options.listeners?.onChangeGroup?.({formApi:this.form,groupApi:this})},e)):this.form.options.listeners?.onChangeGroup?.({formApi:this.form,groupApi:this});let t=this.options.listeners?.onChangeDebounceMs;t&&t>0?(this.timeoutIds.listeners.change&&clearTimeout(this.timeoutIds.listeners.change),this.timeoutIds.listeners.change=setTimeout(()=>{this.options.listeners?.onChange?.({value:this.state.value,groupApi:this})},t)):this.options.listeners?.onChange?.({value:this.state.value,groupApi:this})},this.triggerOnSubmitListener=()=>{this.options.listeners?.onSubmit?.({value:this.state.value,groupApi:this})},this._handleSubmit=async e=>{this.setFormGroupState(e=>({...e,isSubmitted:!1,submissionAttempts:e.submissionAttempts+1,isSubmitSuccessful:!1})),vF(()=>{Object.values(this.getRelatedFields()).forEach(e=>{e.state.meta.isTouched||e.setMeta(e=>({...e,isTouched:!0}))})});let t=e??this.options.onSubmitMeta;this.setFormGroupState(e=>({...e,isSubmitting:!0}));let n=()=>{this.setFormGroupState(e=>({...e,isSubmitting:!1}))};if(await this.validateAllFields(`submit`),!this.areRelatedFieldsValid()){n(),this.options.onGroupSubmitInvalid?.({value:this.state.value,groupApi:this,meta:t});return}if(await this.validate(`submit`,{skipRelatedFieldValidation:!0}),!this.areRelatedFieldsValid()||!this.state.meta.isValid){n(),this.options.onGroupSubmitInvalid?.({value:this.state.value,groupApi:this,meta:t});return}vF(()=>{Object.values(this.getRelatedFields()).forEach(e=>{e.options.listeners?.onGroupSubmit?.({value:e.state.value,fieldApi:e})})}),this.options.listeners?.onSubmit?.({groupApi:this,value:this.state.value});try{await this.options.onGroupSubmit?.({value:this.state.value,groupApi:this,meta:t}),vF(()=>{this.setFormGroupState(e=>({...e,isSubmitted:!0,isSubmitSuccessful:!0})),n()})}catch(e){throw this.setFormGroupState(e=>({...e,isSubmitSuccessful:!1})),n(),e}},this.form=t.form,this.name=t.name,this.options=t,this.timeoutIds={validations:{},listeners:{},formListeners:{}},this.fieldInfo={instance:null,validationMetaMap:{onChange:void 0,onBlur:void 0,onSubmit:void 0,onMount:void 0,onServer:void 0,onDynamic:void 0}},this.store=CF(e=>{this.form.formGroupMetaDerived.get(),this.form.baseStore.get();let n=this.form.getFormGroupMeta(this.name)??TCe(t.defaultMeta),r=this.form.getFieldValue(this.name);return!n.isTouched&&r===void 0&&this.options.defaultValue!==void 0&&!zF(r,this.options.defaultValue)&&(r=this.options.defaultValue),e&&e.value===r&&e.meta===n?e:{value:r,meta:n}}),this.handleSubmit=this.handleSubmit.bind(this)}get state(){return this.store.state}runValidator(e){if(QF(e.validate)){let t=ZF[e.type](e.value,e.validate);return e.type===`validate`?fI(t):t.then(fI)}return e.validate(e.value)}handleSubmit(e){return this._handleSubmit(e)}};function uI(e){if(e)return e}function dI(e){return!!e&&typeof e==`object`&&`fields`in e}function fI(e){if(!e||typeof e!=`object`||!(`form`in e)&&!(`fields`in e))return e;let{form:t,fields:n,...r}=e;return{...r,group:t,fields:n}}function pI(e){switch(e){case`submit`:return`onSubmit`;case`blur`:return`onBlur`;case`mount`:return`onMount`;case`server`:return`onServer`;case`dynamic`:return`onDynamic`;default:return`onChange`}}var mI=class e{constructor(t){if(this.getFormFieldName=e=>{if(typeof this.fieldsMap==`string`)return FF(this.fieldsMap,e);let t=PF(e)[0];if(typeof t!=`string`)return``;let n=e.slice(t.length),r=this.fieldsMap[t];return FF(r,n)},this.getFormFieldOptions=e=>{let t={...e},n=t.validators;if(t.name=this.getFormFieldName(e.name),n&&(n.onChangeListenTo||n.onBlurListenTo)){let e={...n},r=e=>{if(e)return e.map(e=>this.getFormFieldName(e))};e.onChangeListenTo=r(n.onChangeListenTo),e.onBlurListenTo=r(n.onBlurListenTo),t.validators=e}return t},this.mount=()=>()=>{},this.validateArrayFieldsStartingFrom=async(e,t,n)=>this.form.validateArrayFieldsStartingFrom(this.getFormFieldName(e),t,n),this.validateField=(e,t)=>this.form.validateField(this.getFormFieldName(e),t),this.getFieldValue=e=>this.form.getFieldValue(this.getFormFieldName(e)),this.getFieldMeta=e=>this.form.getFieldMeta(this.getFormFieldName(e)),this.setFieldMeta=(e,t)=>this.form.setFieldMeta(this.getFormFieldName(e),t),this.setFieldValue=(e,t,n)=>this.form.setFieldValue(this.getFormFieldName(e),t,n),this.deleteField=e=>this.form.deleteField(this.getFormFieldName(e)),this.pushFieldValue=(e,t,n)=>this.form.pushFieldValue(this.getFormFieldName(e),t,n),this.insertFieldValue=async(e,t,n,r)=>this.form.insertFieldValue(this.getFormFieldName(e),t,n,r),this.replaceFieldValue=async(e,t,n,r)=>this.form.replaceFieldValue(this.getFormFieldName(e),t,n,r),this.removeFieldValue=async(e,t,n)=>this.form.removeFieldValue(this.getFormFieldName(e),t,n),this.swapFieldValues=(e,t,n,r)=>this.form.swapFieldValues(this.getFormFieldName(e),t,n,r),this.moveFieldValues=(e,t,n,r)=>this.form.moveFieldValues(this.getFormFieldName(e),t,n,r),this.clearFieldValues=(e,t)=>this.form.clearFieldValues(this.getFormFieldName(e),t),this.resetField=e=>this.form.resetField(this.getFormFieldName(e)),this.validateAllFields=e=>this.form.validateAllFields(e),t.form instanceof e){let e=t.form;if(this.form=e.form,typeof t.fields==`string`)this.fieldsMap=e.getFormFieldName(t.fields);else{let n={...t.fields};for(let t in n)n[t]=e.getFormFieldName(n[t]);this.fieldsMap=n}}else this.form=t.form,this.fieldsMap=t.fields;this.store=CF(()=>{let e=this.form.store.get(),t;if(typeof this.fieldsMap==`string`)t=OF(e.values,this.fieldsMap);else{t={};let n=this.fieldsMap;for(let r in n)t[r]=OF(e.values,n[r])}return{values:t}})}get state(){return this.store.state}async handleSubmit(e){return this.form.handleSubmit(e)}};function ECe(e,t){if(!t)return;let n=Object.assign({},e,{state:qF(e.state)});t(n),n.fieldInfo!==e.fieldInfo&&(e.fieldInfo=n.fieldInfo),n.options!==e.options&&(e.options=n.options);let r=Object.keys({values:null,validationMetaMap:null,fieldMetaBase:null,formGroupStateBase:null,isSubmitting:null,isSubmitted:null,isValidating:null,submissionAttempts:null,isSubmitSuccessful:null,_force_re_eval:null}).reduce((t,r)=>(e.state[r]!==n.state[r]&&(t[r]=n.state[r]),t),{});return vF(()=>{Object.keys(r).length&&e.baseStore.setState(e=>({...e,...r})),n.state.errorMap!==e.state.errorMap&&e.setErrorMap(n.state.errorMap)}),n}function DCe(e,t){return e===t}function hI(e,t=e=>e,n){let r=n?.compare??DCe,i=(0,m.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,m.useCallback)(()=>e.get(),[e]);return(0,Gs.useSyncExternalStoreWithSelector)(i,a,a,t,r)}var gI=typeof window<`u`?m.useLayoutEffect:m.useEffect;function OCe(e){let[t,n]=(0,m.useState)(()=>({form:e.form,name:e.name})),[r,i]=(0,m.useState)(()=>new aI({...e})),a=r;(t.form!==e.form||t.name!==e.name)&&(a=new aI({...e}),i(a),n({form:e.form,name:e.name}));let o=hI(a.store,e.mode===`array`?e=>e.meta._arrayVersion||0:e=>e.value),s=hI(a.store,e=>e.meta.isTouched),c=hI(a.store,e=>e.meta.isBlurred),l=hI(a.store,e=>e.meta.isDirty),u=hI(a.store,e=>e.meta.errorMap),d=hI(a.store,e=>e.meta.errorSourceMap),f=hI(a.store,e=>e.meta.isValidating),p=(0,m.useMemo)(()=>({...a,get state(){return{value:e.mode===`array`?a.state.value:o,get meta(){return{...a.state.meta,isTouched:s,isBlurred:c,isDirty:l,errorMap:u,errorSourceMap:d,isValidating:f}}}}}),[a,e.mode,o,s,c,l,u,d,f]);return gI(a.mount,[a]),gI(()=>{a.update(e)}),p}var kCe=(({children:e,...t})=>{let r=OCe(t),i=(0,m.useMemo)(()=>DF(e,r),[e,r]);return(0,n.jsx)(n.Fragment,{children:i})});function ACe(){return(0,m.useState)(()=>KF())[0]}var jCe=m,MCe=m.version.split(`.`)[0]===`17`?ACe:jCe.useId;function _I(e){let[t,n]=(0,m.useState)(()=>({form:e.form,name:e.name})),[r,i]=(0,m.useState)(()=>new lI({...e}));(t.form!==e.form||t.name!==e.name)&&(i(new lI({...e})),n({form:e.form,name:e.name}));let a=hI(r.store,e=>e.value),o=hI(r.store,e=>e.meta.isTouched),s=hI(r.store,e=>e.meta.isBlurred),c=hI(r.store,e=>e.meta.isDirty),l=hI(r.store,e=>e.meta.errorMap),u=hI(r.store,e=>e.meta.errorSourceMap),d=hI(r.store,e=>e.meta.isValidating),f=hI(r.store,e=>e.meta.isSubmitting),p=hI(r.store,e=>e.meta.isSubmitted),h=hI(r.store,e=>e.meta.submissionAttempts),g=hI(r.store,e=>e.meta.isSubmitSuccessful),_=hI(r.store,e=>e.meta.canSubmit),v=hI(r.store,e=>e.meta.isValid),y=hI(r.store,e=>e.meta.isFieldsValid),b=hI(r.store,e=>e.meta.isFieldsValidating),x=hI(r.store,e=>e.meta.isGroupValid),S=(0,m.useMemo)(()=>({...r,handleSubmit:((...e)=>r._handleSubmit(...e)),get state(){return{...r.state,value:a,get meta(){return{...r.state.meta,isTouched:o,isBlurred:s,isDirty:c,errorMap:l,errorSourceMap:u,isValidating:d,isSubmitting:f,isSubmitted:p,submissionAttempts:h,isSubmitSuccessful:g,canSubmit:_,isValid:v,isFieldsValid:y,isFieldsValidating:b,isGroupValid:x}}}}}),[r,a,o,s,c,l,u,d,f,p,h,g,_,v,y,b,x]);return gI(r.mount,[r]),gI(()=>{r.update(e)}),S}var vI=(({children:e,...t})=>{let r=_I(t),i=(0,m.useMemo)(()=>DF(e,r),[e,r]);return(0,n.jsx)(n.Fragment,{children:i})});function yI({form:e,selector:t=e=>e,children:r}){let i=hI(e.store,t);return(0,n.jsx)(n.Fragment,{children:DF(r,i)})}function bI(e){let t=MCe(),[r,i]=(0,m.useState)(e?.formId),[a,o]=(0,m.useState)(()=>new nI({...e,formId:e?.formId??t}));if(r!==e?.formId){let n=e?.formId??t;o(new nI({...e,formId:n})),i(n)}let s=(0,m.useMemo)(()=>{let e={...a,handleSubmit:((...e)=>a._handleSubmit(...e)),get formId(){return a._formId},get state(){return a.store.state}};return e.Field=function(e){return(0,n.jsx)(kCe,{...e,form:a})},e.FormGroup=function(e){return(0,n.jsx)(vI,{...e,form:a})},e.Subscribe=function(e){return(0,n.jsx)(yI,{form:a,selector:e.selector,children:e.children})},e},[a]);gI(a.mount,[]),gI(()=>{a.update(e)});let c=(0,m.useRef)(!1);return gI(()=>{c.current&&e?.transform&&ECe(a,e.transform)},[a,e?.transform]),gI(()=>{c.current=!0}),s}function xI({lens:e,selector:t=e=>e,children:r}){let i=hI(e.store,t);return(0,n.jsx)(n.Fragment,{children:DF(r,i)})}function SI(e){let[t]=(0,m.useState)(()=>{let r=new mI(e),i=e.form instanceof mI?e.form.form:e.form,a=r;return a.AppForm=function(e){return(0,n.jsx)(i.AppForm,{...e})},a.AppField=function(e){return(0,n.jsx)(i.AppField,{...t.getFormFieldOptions(e)})},a.Field=function(e){return(0,n.jsx)(i.Field,{...t.getFormFieldOptions(e)})},a.Subscribe=function(e){return(0,n.jsx)(xI,{lens:t,selector:e.selector,children:e.children})},Object.assign(a,{...e.formComponents})});return gI(t.mount,[t]),t}var CI=(0,m.createContext)(null),wI=(0,m.createContext)(null);function TI(){let e=(0,m.useContext)(wI);if(!e)throw Error("`formContext` only works when within a `formComponent` passed to `createFormHook`");return e}function EI(){function e(){let e=(0,m.useContext)(CI);if(!e)throw Error("`fieldContext` only works when within a `fieldComponent` passed to `createFormHook`");return e}return{fieldContext:CI,useFieldContext:e,useFormContext:TI,formContext:wI}}function DI({fieldComponents:e,fieldContext:t,formContext:r,formComponents:i}){function a(a){let o=bI(a),s=(0,m.useMemo)(()=>({children:e})=>(0,n.jsx)(r.Provider,{value:o,children:e}),[o]),c=(0,m.useMemo)(()=>(({children:r,...i})=>(0,n.jsx)(o.Field,{...i,children:i=>(0,n.jsx)(t.Provider,{value:i,children:r(Object.assign(i,e))})})),[o]);return(0,m.useMemo)(()=>Object.assign(o,{AppField:c,AppForm:s,...i}),[o,c,s])}function o({render:e,props:t}){return function(n){return e({...t,...n})}}function s({render:e,props:t,defaultValues:n}){return function(r){let a=SI((0,m.useMemo)(()=>({form:r.form,fields:r.fields,defaultValues:n,formComponents:i}),[r.form,r.fields]));return e({...t,...r,group:a})}}function c(e){return TI()}function l(n){return DI({fieldContext:t,formContext:r,fieldComponents:{...e,...n.fieldComponents},formComponents:{...i,...n.formComponents}})}return{useAppForm:a,withForm:o,withFieldGroup:s,useTypedAppFormContext:c,extendForm:l}}var{fieldContext:OI,useFieldContext:kI,formContext:AI,useFormContext:jI}=EI(),MI=({className:e,children:t,ref:r,...i})=>{let a=kI().state.meta.errors;if((!a||a.length===0)&&!t)return null;let o=[],s=e=>{typeof e==`string`?o.push(e):Array.isArray(e)?e.forEach(s):e&&typeof e==`object`&&(`issues`in e&&Array.isArray(e.issues)?e.issues.forEach(e=>{typeof e?.message==`string`&&o.push(e.message)}):`message`in e&&typeof e.message==`string`?o.push(e.message):Object.values(e).forEach(s))};return a?.forEach(s),o.length===0&&!t?null:(0,n.jsxs)(`ul`,{className:X(`space-y-3xs`,e),ref:r,...i,children:[o.map((e,t)=>(0,n.jsx)(`li`,{className:`flex items-center gap-2xs style-text-strong--1 text-error-default`,children:e},`${e}-${t}`)),t]})},NI=({fileUploadButtonIcon:e=(0,n.jsx)(xi,{weight:`bold`}),fileUploadButtonLabel:t,maxFiles:r,maxFileSize:i,clearFilesLabel:a=`Remove files`,filesSelectedLabel:o=e=>`${e} files selected`,maxFilesErrorLabel:s=e=>`You can select up to ${e} file${e===1?``:`s`}.`,maxFileSizeErrorLabel:c=(e,t)=>`"${e}" exceeds the maximum size of ${t}.`,compact:l,variant:u,size:d,className:f,ref:p,...h})=>{let g=(0,m.useRef)(null),[_,v]=(0,m.useState)(h.defaultValue||h.value||`#000000`),[y,b]=(0,m.useState)([]),[x,S]=(0,m.useState)(null);if(h.type===`color`){let e=h.value!==void 0,t=(e?h.value:_)||`#000000`,{onChange:r,defaultValue:i,value:a,...o}=h,s=t=>{e||v(t.currentTarget.value),r?.(t)},c=e=>{if(g.current=e,typeof p==`function`){p(e);return}p&&typeof p==`object`&&(p.current=e)};return l?(0,n.jsxs)(`button`,{"aria-label":`Open color picker`,className:X(`relative outline-2 outline-transparent transition-colors focus-within:outline-border hover:cursor-pointer`,d===`small`&&`size-lg -outline-offset-2`,d===`medium`&&`size-xl -outline-offset-4`,d===`large`&&`size-2xl -outline-offset-6`,f),disabled:h.disabled,onClick:()=>g.current?.click(),type:`button`,children:[(0,n.jsx)(`div`,{className:X(`size-full`,d===`small`&&`rounded-lg`,d===`medium`&&`rounded-xl`,d===`large`&&`rounded-2xl`),style:{backgroundColor:t}}),(0,n.jsx)(im,{className:`peer pointer-events-none invisible absolute`,defaultValue:e?void 0:t,onChange:s,ref:c,type:`color`,value:e?t:void 0,...o})]}):(0,n.jsxs)(`button`,{"aria-label":`Open color picker`,className:X(`relative flex hover:cursor-pointer`,Kv({variant:u,size:d}),f),disabled:h.disabled,onClick:()=>g.current?.click(),type:`button`,children:[(0,n.jsx)(`div`,{className:X(`absolute top-1/2 left-xs aspect-square h-7/12 -translate-y-1/2`,d===`small`&&`rounded-md`,d===`medium`&&`rounded-lg`,d===`large`&&`rounded-xl`),style:{backgroundColor:t}}),(0,n.jsx)(im,{className:`peer pointer-events-none invisible absolute top-lg`,defaultValue:e?void 0:t,onChange:s,ref:c,type:`color`,value:e?t:void 0,...o}),(0,n.jsx)(`p`,{className:X(`text-left`,d===`small`&&`pr-2xs pl-lg style-text-default--1`,d===`medium`&&`pl-lg style-text-default-0`,d===`large`&&`pl-xl style-text-default-1`),children:t})]})}if(h.type===`file`){let{onChange:l,...u}=h,d=()=>{g.current&&(g.current.value=``),b([]),S(null)},f=e=>{let t=e.currentTarget,n=t.files?Array.from(t.files):[];if(r!==void 0&&n.length>r){b([]),S(s(r)),t.value=``;return}let a=i===void 0?void 0:n.find(e=>e.size>i);if(a&&i!==void 0){b([]),S(c(a.name,sce(i))),t.value=``;return}S(null),b(n),l?.(e)};return(0,n.jsxs)(`div`,{className:`flex items-center justify-between gap-lg`,children:[(0,n.jsxs)(`div`,{className:`flex items-center gap-xs`,children:[(0,n.jsxs)(Wv,{variant:`soft`,tone:`neutral`,onClick:()=>g.current?.click(),children:[e,t]}),(0,n.jsx)(im,{ref:g,...u,hidden:!0,onChange:f}),(0,n.jsx)(`p`,{className:`style-text-default-0`,children:x?(0,n.jsx)(`span`,{className:`style-text-prose-0 text-error-default`,children:x}):y.length===0?(0,n.jsx)(`span`,{className:`style-text-prose-0 text-on-surface-variant`,children:h?.placeholder}):y.length===1?y[0].name:o(y.length)})]}),(0,n.jsx)(Wv,{"aria-label":a,size:`iconMedium`,variant:`ghost`,tone:`error`,onClick:d,children:(0,n.jsx)(wi,{weight:`bold`})})]})}return(0,n.jsx)(im,{className:X(Kv({variant:u,size:d}),f),ref:p,...h})},PI=({className:e,children:t,ref:r,...i})=>{let a=kI(),o=a.state.meta.isTouched&&a.state.meta.errors.length>0&&!a.state.meta.isValid;return(0,n.jsx)(NI,{"aria-invalid":o,className:X(``,e),id:a.name,name:a.name,onChange:e=>a.handleChange(e.target.value),ref:r,value:a.state.value,...i,children:t})},FI=Gn(`whitespace-nowrap`,{variants:{size:{small:`style-text-default--1`,medium:`style-text-default-0`,large:`style-text-default-1`},variant:{primary:`text-on-surface`,secondary:`text-on-surface-variant`}},defaultVariants:{size:`medium`,variant:`primary`}}),II=({size:e,variant:t,showRequired:r=!1,className:i,children:a,ref:o,...s})=>{let c=kI(),l=c.name.replace(/([A-Z])/g,` $1`).replace(/^./,e=>e.toUpperCase()),u=c.state.meta.errors.length>0;return(0,n.jsxs)(`div`,{className:X(FI({size:e,variant:t}),i,u&&`text-error-default`),ref:o,...s,children:[a||l,r&&(0,n.jsx)(`span`,{className:`ml-3xs text-error-default`,children:`*`})]})},LI=({children:e,...t})=>(0,n.jsx)(Uv,{children:(0,n.jsx)(Nv,{...t,children:e})}),RI=({side:e=`top`,alignOffset:t=0,sideOffset:r=5,className:i,children:a,...o})=>(0,n.jsx)(zv,{children:(0,n.jsx)(Vv,{side:e,alignOffset:t,sideOffset:r,children:(0,n.jsx)(Hv,{className:X(`z-50 w-fit origin-(--transform-origin) animate-in rounded-md bg-surface-2 px-xs py-3xs text-sm text-balance shadow-md fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95`,i),...o,children:a})})}),zI=({children:e,...t})=>(0,n.jsx)(Lv,{...t,render:e}),BI=({className:e,children:t,ref:r,...i})=>{let[a,o]=m.default.useState(!1),[s,c]=m.default.useState(!1);return m.default.useEffect(()=>{if(!s)return;let e=()=>c(!1);return window.addEventListener(`pointerup`,e),()=>window.removeEventListener(`pointerup`,e)},[s]),(0,n.jsxs)(LI,{open:a||s,trackCursorAxis:`x`,children:[(0,n.jsx)(zI,{delay:0,children:(0,n.jsx)(F_,{"data-slot":`slider-thumb`,className:X(`absolute aspect-square rounded-full bg-surface transition-[width,height,opacity] outline-none data-dragging:cursor-grabbing data-dragging:shadow-sm hover:[&:not([data-dragging])]:cursor-pointer`,e),onPointerDown:()=>c(!0),onPointerEnter:()=>o(!0),onPointerLeave:()=>o(!1),ref:r,...i,children:t})}),(0,n.jsx)(RI,{sideOffset:10,children:(0,n.jsx)(E_,{})})]})},VI=Gn(`flex flex-col gap-xs`,{variants:{size:{small:`[&_[data-slot='slider-thumb']]:size-xs [&_[data-slot='slider-thumb']]:border [&_[data-slot='slider-thumb'][data-dragging]]:size-sm [&_[data-slot='slider-track'][data-orientation='horizontal']]:h-3xs [&_[data-slot='slider-track'][data-orientation='vertical']]:w-3xs`,medium:`[&_[data-slot='slider-thumb']]:size-sm [&_[data-slot='slider-thumb']]:border-2 [&_[data-slot='slider-thumb'][data-dragging]]:size-md [&_[data-slot='slider-track'][data-orientation='horizontal']]:h-2xs [&_[data-slot='slider-track'][data-orientation='vertical']]:w-2xs`,large:`[&_[data-slot='slider-thumb']]:size-md [&_[data-slot='slider-thumb']]:border-3 [&_[data-slot='slider-thumb'][data-dragging]]:size-lg [&_[data-slot='slider-track'][data-orientation='horizontal']]:h-xs [&_[data-slot='slider-track'][data-orientation='vertical']]:w-xs`},tone:{brand:`[&_[data-slot='slider-thumb']]:border-brand-default [&_[data-slot=slider-indicator]]:bg-brand-default [&_[data-slot=slider-track]]:bg-brand-container-high`,accent:`[&_[data-slot='slider-thumb']]:border-accent-default [&_[data-slot=slider-indicator]]:bg-accent-default [&_[data-slot=slider-track]]:bg-accent-container-high`,neutral:`[&_[data-slot='slider-thumb']]:border-neutral-default [&_[data-slot=slider-indicator]]:bg-neutral-default [&_[data-slot=slider-track]]:bg-neutral-container-high`,error:`[&_[data-slot='slider-thumb']]:border-error-default [&_[data-slot=slider-indicator]]:bg-error-default [&_[data-slot=slider-track]]:bg-error-container-high`,info:`[&_[data-slot='slider-thumb']]:border-info-default [&_[data-slot=slider-indicator]]:bg-info-default [&_[data-slot=slider-track]]:bg-info-container-high`,success:`[&_[data-slot='slider-thumb']]:border-success-default [&_[data-slot=slider-indicator]]:bg-success-default [&_[data-slot=slider-track]]:bg-success-container-high`,warning:`[&_[data-slot='slider-thumb']]:border-warning-default [&_[data-slot=slider-indicator]]:bg-warning-default [&_[data-slot=slider-track]]:bg-warning-container-high`}},defaultVariants:{size:`medium`,tone:`brand`}}),HI=({size:e,tone:t,defaultValue:r,description:i,label:a,leadingIcon:o,max:s=100,min:c=0,showMax:l=!1,showMin:u=!1,trailingIcon:d,showThumbOnHover:f=!0,value:p,className:m,ref:h,...g})=>{let _=Array.isArray(p)?p:Array.isArray(r)?r:[c,s];return(0,n.jsxs)(`div`,{className:X(VI({size:e,tone:t}),m),children:[a&&(0,n.jsx)(`span`,{className:`style-text-default-0`,children:a}),(0,n.jsxs)(T_,{"aria-label":a,"aria-valuemax":s,"aria-valuemin":c,"aria-valuenow":Array.isArray(p)?p[0]:p??r??c,className:X(`flex items-center gap-sm`,m),defaultValue:r,"data-slot":`slider-root`,max:s,min:c,ref:h,role:`slider`,value:p,...g,children:[o&&(0,n.jsx)(o,{className:`size-sm shrink-0`,weight:`fill`}),u&&(0,n.jsx)(`span`,{className:`style-text-default-0`,children:c}),(0,n.jsx)(j_,{className:`shrink-0 hover:cursor-pointer data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full`,children:(0,n.jsxs)(M_,{"data-slot":`slider-track`,className:X(`relative size-full rounded-full`,!f&&`**:data-[slot='slider-thumb']:opacity-0 hover:**:data-[slot='slider-thumb']:opacity-100 active:**:data-[slot='slider-thumb']:opacity-100 data-dragging:**:data-[slot='slider-thumb']:opacity-100`),children:[(0,n.jsx)(I_,{"data-slot":`slider-indicator`,className:`rounded-full`}),Array.from({length:_.length},(e,t)=>(0,n.jsx)(BI,{index:t},t))]})}),l&&(0,n.jsx)(`span`,{className:`style-text-default-0`,children:s}),d&&(0,n.jsx)(d,{className:`size-sm shrink-0`,weight:`fill`})]}),i&&(0,n.jsx)(`span`,{className:`style-text-prose--1 text-on-surface-variant`,children:i})]})},UI=({className:e,ref:t,...r})=>{let i=kI();return(0,n.jsx)(HI,{className:X(``,e),onValueChange:e=>i.setValue(e),ref:t,value:i.state.value,...r})},WI=({children:e,...t})=>{let r=kI();return(0,n.jsx)(fM,{value:r.state.value,onValueChange:e=>r.setValue(e),...t,children:e})},GI=Gn(`relative flex resize flex-col overflow-hidden rounded-xl outline outline-transparent transition-[outline] hover:not-focus-within:outline-border-strong data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50`,{variants:{variant:{primary:`bg-surface shadow-2xs`,secondary:`bg-neutral-container`}},defaultVariants:{variant:`primary`}}),KI=({variant:e,className:t,ref:r,...i})=>{let a=i.value!==void 0,[o,s]=m.default.useState(String(i.defaultValue??``)),c=a?String(i.value??``):o,l=i.maxLength,u=typeof l==`number`,d=u&&c.length>=l,f=e=>{a||s(e.target.value),i.onChange?.(e)};return(0,n.jsxs)(`div`,{className:X(GI({variant:e,className:t}),d?`outline-error-border-strong`:`focus-within:outline-brand-border-strong`),"data-disabled":i.disabled?!0:void 0,children:[(0,n.jsx)(`textarea`,{className:`grow resize-none px-sm py-xs style-text-prose-0 outline-none focus-within:caret-brand-border-strong`,ref:r,...i,onChange:f,value:c}),u&&(0,n.jsxs)(`span`,{className:X(`w-full px-xs py-2xs text-right style-text-default--1 text-on-surface-variant`,d&&`text-error-default`),children:[c.length,` / `,l]})]})},qI=({className:e,ref:t,...r})=>{let i=kI(),a=i.state.meta.isTouched&&i.state.meta.errors.length>0&&!i.state.meta.isValid;return(0,n.jsx)(KI,{"aria-invalid":a,className:X(``,e),id:i.name,name:i.name,onChange:e=>i.handleChange(e.target.value),ref:t,value:i.state.value,...r})},JI=Gn(`flex items-center gap-2xs select-none hover:cursor-pointer`,{variants:{size:{small:`style-text-default--1`,medium:`style-text-default-0`,large:`style-text-default-1`}},defaultVariants:{size:`medium`}}),YI=({className:e,children:t,ref:r,size:i,...a})=>(0,n.jsx)(`label`,{className:JI({className:e,size:i}),"data-slot":`label`,htmlFor:a.htmlFor,ref:r,...a,children:t}),XI=({...e})=>{let t=kI();return(0,n.jsxs)(`div`,{className:`flex items-center gap-xs`,children:[(0,n.jsx)(lM,{checked:t.state.value,id:t.name,name:t.name,onCheckedChange:e=>t.handleChange(e===!0),...e}),e.label&&(0,n.jsx)(YI,{htmlFor:t.name,children:e.label})]})},ZI=Gn(`group flex size-sm shrink-0 items-center justify-center rounded-full outline outline-transparent transition-all hover:outline-border-strong data-checked:bg-brand-default data-checked:outline-brand-border-strong data-disabled:opacity-50`,{variants:{variant:{elevated:`bg-surface shadow-2xs`,inSurface:`bg-surface-low inset-shadow-2xs`}},defaultVariants:{variant:`elevated`}}),QI=({variant:e,className:t,children:r,ref:i,...a})=>(0,n.jsxs)(YI,{htmlFor:a.id,children:[(0,n.jsx)(gg,{className:X(ZI({variant:e,className:t})),ref:i,...a,children:(0,n.jsx)(_g,{"data-indicator":!0,className:`size-2xs origin-center scale-0 rounded-full bg-surface shadow-2xs transition-transform duration-200 ease-out data-checked:scale-100`})}),r]}),$I=({className:e,children:t,ref:r,...i})=>{let a=m.useId();return(0,n.jsx)(vg,{"aria-labelledby":a,className:X(`flex flex-col items-start gap-2xs data-disabled:opacity-50`,e),ref:r,...i,children:t})},eL=({children:e,...t})=>{let r=kI();return(0,n.jsx)(QI,{...t,onChange:e=>r.handleChange(e.target.value),value:r.state.value,children:e})},tL=({children:e,...t})=>{let r=kI();return(0,n.jsx)($I,{name:r.name,onChange:e=>{let t=e.target;t.type===`radio`&&r.handleChange(t.value)},value:r.state.value,...t,children:e})},nL=({label:e,className:t,ref:r,...i})=>(0,n.jsxs)(`div`,{className:`flex items-center gap-xs`,children:[(0,n.jsx)(z_,{"aria-label":e??void 0,className:X(`group relative flex h-md w-xl items-center rounded-full bg-surface-low inset-shadow-2xs outline-2 outline-transparent transition-colors ease-[cubic-bezier(0.26,0.75,0.38,0.45)] before:absolute before:rounded-full hover:cursor-pointer hover:not-disabled:outline-accent-border-strong disabled:pointer-events-none disabled:opacity-50 data-checked:bg-accent-default data-disabled:pointer-events-none data-disabled:opacity-50`,t),ref:r,...i,children:(0,n.jsx)(B_,{className:`aspect-square size-xs translate-x-2xs rounded-full shadow-2xs transition-transform duration-500 ease-[cubic-bezier(0.68,-0.55,0.27,1.55)] data-checked:size-sm data-checked:translate-x-md data-checked:bg-accent-on-default data-unchecked:bg-accent-default`})}),e&&(0,n.jsx)(YI,{htmlFor:i.id,children:e})]}),rL=({...e})=>{let t=kI();return(0,n.jsx)(nL,{checked:t.state.value,id:t.name,name:t.name,onCheckedChange:e=>t.handleChange(e===!0),...e})},iL=(0,m.createContext)(void 0),aL=Gn(`flex items-center justify-center text-on-surface-variant transition-all hover:cursor-pointer disabled:opacity-70`,{variants:{size:{iconSmall:`size-md rounded-md [&>svg]:size-xs`,iconMedium:`size-lg rounded-lg [&>svg]:size-sm`,iconLarge:`size-xl rounded-xl [&>svg]:size-md`,small:`h-md gap-3xs rounded-md px-2xs style-text-default--2 [&>svg]:size-xs`,medium:`h-lg gap-2xs rounded-lg px-xs style-text-default--1 [&>svg]:size-sm`,large:`h-xl gap-xs rounded-xl px-sm style-text-default-0 [&>svg]:size-md`},tone:{brand:`hover:not-disabled:bg-brand-container hover:not-disabled:text-brand-on-container data-pressed:text-brand-default`,accent:`hover:not-disabled:bg-accent-container hover:not-disabled:text-accent-on-container data-pressed:text-accent-default`,neutral:`hover:not-disabled:bg-surface-low hover:not-disabled:text-neutral-on-container data-pressed:text-neutral-default`,error:`hover:not-disabled:bg-error-container hover:not-disabled:text-error-on-container data-pressed:text-error-default`,info:`hover:not-disabled:bg-info-container hover:not-disabled:text-info-on-container data-pressed:text-info-default`,success:`hover:not-disabled:bg-success-container hover:not-disabled:text-success-on-container data-pressed:text-success-default`,warning:`hover:not-disabled:bg-warning-container hover:not-disabled:text-warning-on-container data-pressed:text-warning-default`}},defaultVariants:{size:`medium`,tone:`brand`}}),oL=({size:e,tone:t,className:r,children:i,ref:a,...o})=>{let s=(0,m.useContext)(iL),c=e??s?.size??`medium`;return(0,n.jsx)(Ov,{ref:a,...o,render:(e,a)=>(0,n.jsx)(`button`,{...e,className:X(aL({size:c,tone:t,className:r})),type:`button`,children:typeof i==`function`?i(a):i})})},sL=({children:e,...t})=>{let r=kI();return(0,n.jsx)(oL,{id:r.name,name:r.name,onChange:e=>r.handleChange(!r.state.value),pressed:r.state.value,...t,children:e})},cL=({className:e,children:t,ref:r,...i})=>{let a=kI(),o=a.state.meta.isTouched&&a.state.meta.errors.length>0&&!a.state.meta.isValid;return(0,n.jsx)(jP,{"aria-invalid":o,className:X(``,e),id:a.name,ref:r,...i,children:t})},lL=({className:e,ref:t,...r})=>{let i=kI(),a=i.state.meta.isTouched&&i.state.meta.errors.length>0&&!i.state.meta.isValid;return(0,n.jsx)(NP,{"aria-invalid":a,className:X(``,e),id:i.name,name:i.name,onChange:e=>i.handleChange(e.target.value),ref:t,value:i.state.value,...r})},uL=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex w-full flex-col gap-2xs`,e),ref:r,...i,children:t}),dL=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex items-center justify-between gap-sm`,e),ref:r,...i,children:t}),fL=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`form`,{className:X(`flex flex-col gap-sm`,e),ref:r,...i,children:t}),pL=(e,t)=>{if(e!=null){if(typeof e==`string`){e.trim()&&t.add(e);return}if(Array.isArray(e)){e.forEach(e=>pL(e,t));return}if(typeof e==`object`){let n=e.message;if(typeof n==`string`){t.add(n);return}Object.values(e).forEach(e=>pL(e,t))}}},mL=({className:e,children:t,ref:r,...i})=>{let a=jI();return(0,n.jsx)(a.Subscribe,{selector:e=>[e.errors,e.fieldMeta],children:([a,o])=>{let s=new Set;return pL(a,s),Object.values(o).forEach(e=>pL(e.errors,s)),s.size===0?null:(0,n.jsxs)(Ei,{className:X(``,e),ref:r,tone:`error`,...i,children:[(0,n.jsx)(Oi,{children:(0,n.jsx)(Ti,{weight:`duotone`})}),t,(0,n.jsx)(Di,{children:(0,n.jsx)(`ul`,{children:[...s].map(e=>(0,n.jsx)(`li`,{children:e},e))})})]})}})},hL=({orientation:e=`horizontal`,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`div`,{className:X(`flex gap-2xs`,t,e===`horizontal`?`flex-row`:`flex-col`),ref:i,...a,children:r}),gL=({className:e,children:t,ref:r,...i})=>{let a=jI(),o=()=>{a.reset()};return(0,n.jsx)(a.Subscribe,{selector:e=>e,children:a=>(0,n.jsx)(Wv,{className:X(`w-full`,e),disabled:!a.values,onClick:o,ref:r,type:`reset`,...i,children:t})})},_L=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex flex-col gap-xs`,e),ref:r,...i,children:t}),vL=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex flex-col gap-md`,e),ref:r,...i,children:t}),yL=Gn(``,{variants:{size:{small:`style-text-strong-0`,medium:`style-text-strong-1`,large:`style-text-strong-2`}},defaultVariants:{size:`medium`}}),bL=({size:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`span`,{className:X(yL({size:e,className:t})),ref:i,...a,children:r}),xL=({className:e,children:t,ref:r,...i})=>{let a=jI();return(0,n.jsx)(a.Subscribe,{selector:e=>e,children:a=>(0,n.jsx)(Wv,{className:X(`w-full`,e),disabled:a.isSubmitting||!a.canSubmit,ref:r,type:`submit`,...i,children:a.isSubmitting?(0,n.jsx)($r,{className:`animate-spin`,weight:`bold`}):t})})},{useAppForm:SL,withFieldGroup:CL,withForm:wL,useTypedAppFormContext:TL}=DI({fieldContext:OI,fieldComponents:{FieldCheckbox:XI,FieldDescription:sF,FieldErrors:MI,FieldRow:dL,FieldInput:PI,FieldInputGroup:cL,FieldInputGroupInput:lL,FieldLabel:II,FieldRadio:eL,FieldRadioGroup:tL,FieldSelect:WI,FieldSet:uL,FieldSlider:UI,FieldSwitch:rL,FieldTextArea:qI,FieldToggle:sL},formContext:AI,formComponents:{FormErrors:mL,FormFooter:hL,FormReset:gL,FormSet:_L,FormSetHeading:bL,FormSetContent:vL,FormSubmit:xL}}),EL=({children:e,className:t,ref:r,...i})=>(0,n.jsx)(Ih,{className:X(`group flex items-center gap-2xs has-disabled:opacity-30`,t),ref:r,...i,children:e}),DL=({className:e,...t})=>(0,n.jsx)(Lh,{className:X(`relative h-lg w-md rounded-md bg-surface text-center style-text-default-0 shadow-2xs outline outline-transparent transition-colors hover:outline-border-strong focus:outline-brand-border-strong`,e),...t}),OL=({className:e,ref:t,...r})=>(0,n.jsx)(rp,{className:X(`flex items-center justify-center text-on-surface-variant`,e),ref:t,...r,children:(0,n.jsx)(hi,{weight:`bold`})}),kL=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`inline-flex h-md items-center justify-center rounded-md bg-neutral-container-high px-2xs align-middle style-text-default--1 whitespace-nowrap text-neutral-on-container select-none [&:has(svg)]:size-md [&:has(svg)]:p-0 [&>svg]:size-sm`,e),ref:r,...i,children:t});function AL(e){return jL(e)||typeof e==`function`||ML(e)}function jL(e){return typeof e==`function`&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function ML(e){return typeof e==`object`&&typeof e.$$typeof==`symbol`&&[`react.memo`,`react.forward_ref`].includes(e.$$typeof.description)}function NL(e,t){return e==null?null:AL(e)?m.default.createElement(e,t):e}function PL(e){if(`cell`in e&&e.cell){let t=e.cell,n=t.column.columnDef,r=t,i=n;return r.getIsAggregated?.()?NL(i.aggregatedCell??n.cell,t.getContext()):r.getIsPlaceholder?.()?null:NL(n.cell,t.getContext())}return`header`in e&&e.header?NL(e.header.column.columnDef.header,e.header.getContext()):`footer`in e&&e.footer?NL(e.footer.column.columnDef.footer,e.footer.getContext()):null}function FL(e){let t=hI(e.source,e.selector,{compare:wF});return typeof e.children==`function`?e.children(t):e.children}function IL(e){let t=e;return Object.defineProperty(e,"state",{get(){return e.get()}}),`set`in e&&(t.setState=e.set.bind(e)),t}function LL(e){let{createAtom:t,batch:n}=e,r=t(0);return{createOptionsStore:!1,wrapExternalAtoms:!1,addSubscription:()=>{throw Error(`Feature not supported in current reactivity implementation`)},unmount:()=>{throw Error(`Feature not supported in current reactivity implementation`)},schedule:e.schedule??(e=>queueMicrotask(e)),batch:n,untrack:e=>e(),createReadonlyAtom:(e,n)=>{let i=n?.compare??Object.is,a=!1,o,s=()=>{let t=e();return(!a||!i(o,t))&&(o=t,a=!0),o},c=t(()=>(r.get(),s()),{compare:i});return{get:s,subscribe:c.subscribe.bind(c)}},createWritableAtom:(e,n)=>t(e,{compare:n?.compare}),commit:()=>{r.set(e=>e+1)}}}function RL(e,t=Object.is){let n=!1,r;return{get:e.get,markCommitted:e=>{r=e,n=!0},subscribe:i=>e.subscribe(e=>{(!n||!t(r,e))&&i(e)})}}function zL(){return LL({createAtom:xF,batch:vF})}function BL(e,t){return typeof e==`function`?e(t):e}function VL(e){if(Array.isArray(e))return e.map(VL);if(e&&typeof e==`object`){let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)return e;let n=t===null?UL():{},r=Object.keys(e);for(let t=0;t<r.length;t++){let i=r[t];Object.defineProperty(n,i,{configurable:!0,enumerable:!0,value:VL(e[i]),writable:!0})}return n}return e}function HL(e,t){let n=Object.keys(t),r=e;for(let e=0;e<n.length;e++){let i=n[e];!i.startsWith(`_memo_`)&&i!==`_cellsCache`&&(r[i]=t[i])}return e}function UL(){return Object.create(null)}function WL(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function GL(e,t){return n=>{(t.options.atoms?.[e]??t.baseAtoms[e]).set(e=>BL(n,e))}}function KL(e){if(typeof e!=`object`||!e)return!1;if(Array.isArray(e))return!0;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function qL(e){return Reflect.ownKeys(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var JL=3;function YL(e,t){return XL(e,t,JL)}function XL(e,t,n){if(Object.is(e,t))return!0;if(n<=0||!KL(e)||!KL(t)||(Array.isArray(e)||Array.isArray(t))&&(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length))return!1;let r=qL(e),i=qL(t);if(r.length!==i.length)return!1;let a=e,o=t;for(let e=0;e<r.length;e++){let i=r[e];if(!Object.prototype.propertyIsEnumerable.call(t,i)||!XL(a[i],o[i],n-1))return!1}return!0}function ZL(e,t,n,r=YL){let i=`on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`,a=e.options[i];a&&a(e=>{let t=BL(n,e);return r(e,t)?e:t})}function QL(e){return e instanceof Function}function $L(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i.length&&r(i)})};return r(e),n}var eR=({fn:e,memoDeps:t,onAfterCompare:n,onAfterUpdate:r,onBeforeCompare:i,onBeforeUpdate:a})=>{let o=[],s;return c=>{i?.();let l=t?.(c),u=!l||l.length!==o?.length;if(!u&&l){for(let e=0;e<l.length;e++)if(l[e]!==o[e]){u=!0;break}}return n?.(u),u?(o=l,a?.(),s=e(...l??[]),r?.(s),s):s}};function tR(e){let t=!1;return()=>{if(!t){t=!0;return}e()}}var nR=(e,t)=>{for(e=String(e);e.length<t;)e=` `+e;return e};function rR({feature:e,fnName:t,objectId:n,onAfterUpdate:r,table:i,...a}){let o,s,c=0,l;if(process.env.NODE_ENV===`development`){let{debugAll:n}=i.options,{parentName:r}=iR(t,`.`),a=i.options[`debug${(r==`table`?r:r+`s`).replace(r,r.charAt(0).toUpperCase()+r.slice(1))}`],o=e?i.options[`debug${e.charAt(0).toUpperCase()+e.slice(1)}`]:!1;l=n||a||o}function u(r,o){let s=c===0?`(1st run)`:o?`(rerun #`+c+`)`:`(cache)`;c++,console.groupCollapsed(`%c⏱ ${nR(`${r.toFixed(1)} ms`,12)} %c${s}%c ${t}%c ${n?`(${t.split(`.`)[0]}Id: ${n})`:``}`,`font-size: .6rem; font-weight: bold; ${o?`color: hsl(
58
- ${Math.max(0,Math.min(120-Math.log10(r)*60,120))}deg 100% 31%);`:``} `,`color: ${c<2?`#FF00FF`:`#FF1493`}`,`color: #666`,`color: #87CEEB`),console.info({feature:e,state:i.store.state,deps:a.memoDeps?.toString()}),console.trace(),console.groupEnd()}let d=()=>{if(!r)return;let{schedule:e,untrack:t}=i._reactivity;e(()=>t(()=>r()))},f=process.env.NODE_ENV===`development`?{onBeforeCompare:()=>{},onAfterCompare:e=>{},onBeforeUpdate:()=>{l&&(o=performance.now())},onAfterUpdate:()=>{l&&(s=performance.now(),u(Math.round((s-o)*100)/100,!0)),d()}}:{onAfterUpdate:()=>{d()}};return eR({...a,...f})}function iR(e,t=`_`){let[n,r]=e.split(t);return{fnKey:r,fnName:`${n}.${r}`,parentName:n}}function aR(e,t,n){for(let[r,{fn:i,memoDeps:a}]of Object.entries(n)){let{fnKey:n,fnName:o}=iR(r);t[n]=a?rR({memoDeps:a,fn:i,fnName:o,table:t,feature:e}):i}}function oR(e,t,n,r){for(let[i,{fn:a,memoDeps:o}]of Object.entries(r)){let{fnKey:r,fnName:s}=iR(i);if(o){let i=`_memo_${r}`;t[r]=function(...t){if(!this[i]){let t=this;this[i]=rR({memoDeps:e=>o(t,e),fn:(...e)=>a(t,...e),fnName:s,objectId:t.id,table:n,feature:e})}return this[i](...t)}}else t[r]=function(...e){return a(this,...e)}}}function sR(e,t,n,...r){return e[t]?.(...r)??n(e,...r)}function cR(e){return e.row.getValue(e.column.id)}function lR(e){return e.getValue()??e.table.options.renderFallbackValue}function uR(e){return{table:e.table,column:e.column,row:e.row,cell:e,getValue:()=>e.getValue(),renderValue:()=>e.renderValue()}}var dR={assignCellPrototype:(e,t)=>{oR(`coreCellsFeature`,e,t,{cell_getValue:{fn:e=>cR(e)},cell_renderValue:{fn:e=>lR(e)},cell_getContext:{fn:e=>uR(e),memoDeps:e=>[e]}})}};function fR(e){if(!e._headerPrototype){e._headerPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignHeaderPrototype?.(e._headerPrototype,e)}return e._headerPrototype}function pR(e,t,n){let r=fR(e),i=Object.create(r);i.colSpan=0,i.column=t,i.depth=n.depth,i.headerGroup=null,i.id=n.id??t.id,i.index=n.index,i.isPlaceholder=!!n.isPlaceholder,i.placeholderId=n.placeholderId,i.rowSpan=0,i.subHeaders=[];let a=e._headerInstanceInitFns;for(let e=0;e<a.length;e++)a[e](i);return i}function mR(){return{start:[],end:[]}}function hR(e){let t=e.getAllColumns(),n=e.getAllLeafColumnsById(),{start:r}=e.atoms.columnPinning?.get()??mR(),i=[];for(let e=0;e<r.length;e++){let t=n[r[e]];t&&sR(t,`getIsVisible`,DR)&&i.push(t)}return KR(t,i,e,`start`)}function gR(e){let t=e.getAllColumns(),n=e.getAllLeafColumnsById(),{end:r}=e.atoms.columnPinning?.get()??mR(),i=[];for(let e=0;e<r.length;e++){let t=n[r[e]];t&&sR(t,`getIsVisible`,DR)&&i.push(t)}return KR(t,i,e,`end`)}function _R(e){let t=e.getAllColumns(),n=sR(e,`getVisibleLeafColumns`,NR),{start:r,end:i}=e.atoms.columnPinning?.get()??mR();if(r.length||i.length){let e=[...r,...i];n=n.filter(t=>!e.includes(t.id))}return KR(t,n,e,`center`)}function vR(e){let{start:t}=e.atoms.columnPinning?.get()??mR(),n=e.getAllLeafColumnsById(),r=[];for(let e=0;e<t.length;e++){let i=n[t[e]];i&&r.push(i)}return r}function yR(e){let{end:t}=e.atoms.columnPinning?.get()??mR(),n=e.getAllLeafColumnsById(),r=[];for(let e=0;e<t.length;e++){let i=n[t[e]];i&&r.push(i)}return r}function bR(e){let{start:t,end:n}=e.atoms.columnPinning?.get()??mR();if(!t.length&&!n.length)return e.getAllLeafColumns();let r=[...t,...n];return e.getAllLeafColumns().filter(e=>!r.includes(e.id))}function xR(e){return sR(e,`getStartLeafColumns`,vR).filter(e=>sR(e,`getIsVisible`,DR))}function SR(e){return sR(e,`getEndLeafColumns`,yR).filter(e=>sR(e,`getIsVisible`,DR))}function CR(e){return sR(e,`getCenterLeafColumns`,bR).filter(e=>sR(e,`getIsVisible`,DR))}function wR(e,t){return t?t===`start`?sR(e,`getStartVisibleLeafColumns`,xR):t===`end`?sR(e,`getEndVisibleLeafColumns`,SR):sR(e,`getCenterVisibleLeafColumns`,CR):sR(e,`getVisibleLeafColumns`,NR)}function TR(){return UL()}function ER(e,t){OR(e)&&PR(e.table,n=>{let r=Object.assign(UL(),n),i=t??!sR(e,`getIsVisible`,DR),a=e.getLeafColumns();for(let e=0;e<a.length;e++){let t=a[e];OR(t)&&(r[t.id]=i)}return r})}function DR(e){let t=e.table.atoms.columnVisibility?.get();if(!t)return!0;let n=e.columns;return n.length?n.some(e=>sR(e,`getIsVisible`,DR)):(WL(t,e.id)?t[e.id]:void 0)??!0}function OR(e){return(e.columnDef.enableHiding??!0)&&(e.table.options.enableHiding??!0)}function kR(e){return t=>{ER(e,t.target.checked)}}function AR(e){let t=e.getAllCells(),n=[];for(let e=0;e<t.length;e++){let r=t[e];sR(r.column,`getIsVisible`,DR)&&n.push(r)}let{start:r,end:i}=e.table.atoms.columnPinning?.get()??mR();if(!r.length&&!i.length)return n;let a=sR(e,`getVisibleCellsByColumnId`,jR),o=[];for(let e=0;e<r.length;e++){let t=a[r[e]];t&&o.push(t)}let s=[];for(let e=0;e<i.length;e++){let t=a[i[e]];t&&s.push(t)}let c=[];for(let e=0;e<n.length;e++){let t=n[e],a=t.column.id;!r.includes(a)&&!i.includes(a)&&c.push(t)}return[...o,...c,...s]}function jR(e){let t=UL(),n=e.getAllCells();for(let e=0;e<n.length;e++){let r=n[e];sR(r.column,`getIsVisible`,DR)&&(t[r.column.id]=r)}return t}function MR(e){return e.getAllFlatColumns().filter(e=>sR(e,`getIsVisible`,DR))}function NR(e){return e.getAllLeafColumns().filter(e=>sR(e,`getIsVisible`,DR))}function PR(e,t){ZL(e,`columnVisibility`,t)}function FR(e,t){PR(e,t?UL():Object.assign(UL(),VL(e.initialState.columnVisibility??{})))}function IR(e,t){t??=!LR(e);let n=UL(),r=e.getAllLeafColumns();for(let e=0;e<r.length;e++){let i=r[e];n[i.id]=t||!OR(i)}PR(e,n)}function LR(e){return!e.getAllLeafColumns().some(e=>!sR(e,`getIsVisible`,DR))}function RR(e){return e.getAllLeafColumns().some(e=>sR(e,`getIsVisible`,DR))}function zR(e){return t=>{IR(e,t.target.checked)}}function BR(e,t=1){let n=t;for(let r=0;r<e.length;r++){let i=e[r];sR(i,`getIsVisible`,DR)&&i.columns.length&&(n=Math.max(n,BR(i.columns,t+1)))}return n}function VR(e,t){return e?`${e}_${t}`:String(t)}function HR(e,t,n,r){let i=e??``;return t&&(i=i?`${i}_${t}`:String(t)),n&&(i=i?`${i}_${n}`:n),r&&(i=i?`${i}_${r}`:r),i}function UR(e,t){let n=0;for(let r=0;r<e.length;r++)e[r].column===t&&n++;return n}function WR(e,t,n,r,i,a){let o={depth:t,id:VR(r,t),headers:[]},s=[];for(let i=0;i<e.length;i++){if(!(i in e))continue;let a=e[i],c=s[s.length-1],l=a.column.depth===o.depth,u,d=!1;if(l&&a.column.parent?u=a.column.parent:(u=a.column,d=!0),c&&c.column===u)c.subHeaders.push(a);else{let e=pR(n,u,{id:HR(r,t,u.id,a.id),isPlaceholder:d,placeholderId:d?String(UR(s,u)):void 0,depth:t,index:s.length});e.subHeaders.push(a),s.push(e)}o.headers.push(a),a.headerGroup=o}for(let e=0;e<a.length;e++)a[e](o);i.push(o),t>0&&WR(s,t-1,n,r,i,a)}function GR(e){for(let t=0;t<e.length;t++){let n=e[t];if(!sR(n.column,`getIsVisible`,DR))continue;let r=0;if(n.subHeaders.length){GR(n.subHeaders);for(let e=0;e<n.subHeaders.length;e++){let t=n.subHeaders[e];sR(t.column,`getIsVisible`,DR)&&(r+=t.colSpan)}}else r=1;if(n.colSpan=r,n.isPlaceholder&&n.subHeaders.length===1&&n.subHeaders[0].column===n.column){let e=1,t=n.subHeaders[0];for(;t;)t.rowSpan=0,e++,t=t.subHeaders.length===1&&t.subHeaders[0].column===n.column?t.subHeaders[0]:void 0;n.rowSpan=e}else n.rowSpan=1}}function KR(e,t,n,r){let i=BR(e),a=[],o=n._headerGroupInstanceInitFns,s=Array(t.length);for(let e=0;e<t.length;e++)e in t&&(s[e]=pR(n,t[e],{depth:i,index:e}));return WR(s,i-1,n,r,a,o),a.reverse(),GR(a[0]?.headers??[]),a}function qR(e){if(!e._columnPrototype){e._columnPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignColumnPrototype?.(e._columnPrototype,e)}return e._columnPrototype}function JR(e,t,n,r){let i={...e.getDefaultColumnDef(),...t},a=i.accessorKey,o=a===void 0?void 0:String(a),s=i.id??o?.replaceAll(`.`,`_`)??(typeof i.header==`string`?i.header:void 0),c;if(i.accessorFn)c=i.accessorFn;else if(a!==void 0){if(typeof a==`string`&&a.includes(`.`)){let e=a.split(`.`);c=t=>{let n=t;for(let t=0;t<e.length;t++){let r=e[t];n=n?.[r],process.env.NODE_ENV===`development`&&n===void 0&&console.warn(`"${r}" in deeply nested key "${a}" returned undefined.`)}return n}}else c=e=>e[i.accessorKey]}if(!s)throw process.env.NODE_ENV===`development`?Error(i.accessorFn?`coreColumnsFeature require an id when using an accessorFn`:`coreColumnsFeature require an id when using a non-string header`):Error();let l=qR(e),u=Object.create(l);u.accessorFn=c,u.columnDef=i,u.columns=[],u.depth=n,u.id=`${String(s)}`,u.parent=r;let d=e._columnInstanceInitFns;for(let e=0;e<d.length;e++)d[e](u);return u}function YR(e){let t=e.atoms.columnOrder?.get();return n=>{let r=[];if(!t?.length)r=n;else{let e=new Map;for(let t=0;t<n.length;t++){let r=n[t];e.set(r.id,r)}for(let n=0;n<t.length;n++){let i=t[n],a=e.get(i);a&&(r.push(a),e.delete(i))}for(let t=0;t<n.length;t++){let i=n[t];e.has(i.id)&&r.push(i)}}return XR(e,r)}}function XR(e,t){let n=e.atoms.grouping?.get()??[],{groupedColumnMode:r}=e.options;if(!n.length||!r)return t;let i=t.filter(e=>!n.includes(e.id));if(r===`remove`)return i;let a=new Map;for(let e=0;e<t.length;e++){let n=t[e];a.set(n.id,n)}let o=[];for(let e=0;e<n.length;e++){let t=a.get(n[e]);t&&o.push(t)}return[...o,...i]}function ZR(e){return[e,...e.columns.flatMap(e=>e.getFlatColumns())]}function QR(e){if(e.columns.length){let t=e.columns.flatMap(e=>e.getLeafColumns());return sR(e.table,`getOrderColumns`,YR)(t)}return[e]}function $R(e){return{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>e.renderValue()?.toString?.()??null,...Object.values(e._features).reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef?.()),{}),...e.options.defaultColumn}}function ez(e,t,n,r=0){let i=Array(t.length);for(let a=0;a<t.length;a++){if(!(a in t))continue;let o=t[a],s=JR(e,o,r,n),c=o;s.columns=c.columns?ez(e,c.columns,s,r+1):[],i[a]=s}return i}function tz(e){return ez(e,e.options.columns)}function nz(e){return e.getAllColumns().flatMap(e=>e.getFlatColumns())}function rz(e){let t=UL(),n=e.getAllFlatColumns();for(let e=0;e<n.length;e++){let r=n[e];t[r.id]=r}return t}function iz(e){let t=e.getAllColumns().flatMap(e=>e.getLeafColumns());return sR(e,`getOrderColumns`,YR)(t)}function az(e){let t=UL(),n=e.getAllLeafColumns();for(let e=0;e<n.length;e++){let r=n[e];t[r.id]=r}return t}function oz(e,t){let n=e.getAllFlatColumnsById()[t];return process.env.NODE_ENV===`development`&&!n&&console.warn(`[Table] Column with id '${t}' does not exist.`),n}var sz={assignColumnPrototype:(e,t)=>{oR(`coreColumnsFeature`,e,t,{column_getFlatColumns:{fn:e=>ZR(e),memoDeps:e=>[e.table.options.columns]},column_getLeafColumns:{fn:e=>QR(e),memoDeps:e=>[e.table.atoms.columnOrder?.get(),e.table.atoms.grouping?.get(),e.table.options.columns,e.table.options.groupedColumnMode]}})},constructTableAPIs:e=>{aR(`coreColumnsFeature`,e,{table_getDefaultColumnDef:{fn:()=>$R(e),memoDeps:()=>[e.options.defaultColumn]},table_getAllColumns:{fn:()=>tz(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumns:{fn:()=>nz(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumnsById:{fn:()=>rz(e),memoDeps:()=>[e.options.columns]},table_getAllLeafColumns:{fn:()=>iz(e),memoDeps:()=>[e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_getAllLeafColumnsById:{fn:()=>az(e),memoDeps:()=>[e.getAllLeafColumns()]},table_getColumn:{fn:t=>oz(e,t)}})}};function cz(e,t){for(let n=0;n<e.subHeaders.length;n++)cz(e.subHeaders[n],t);t.push(e)}function lz(e){let t=[];return cz(e,t),t}function uz(e){return{column:e.column,header:e,table:e.column.table}}function dz(e){let{start:t,end:n}=e.atoms.columnPinning?.get()??mR(),r=e.getAllColumns(),i=sR(e,`getVisibleLeafColumns`,NR);if(!t.length&&!n.length)return KR(r,i,e);let a=e.getAllLeafColumnsById(),o=[];for(let e=0;e<t.length;e++){let n=a[t[e]];n&&sR(n,`getIsVisible`,DR)&&o.push(n)}let s=[];for(let e=0;e<n.length;e++){let t=a[n[e]];t&&sR(t,`getIsVisible`,DR)&&s.push(t)}let c=i.filter(e=>!t.includes(e.id)&&!n.includes(e.id));return KR(r,[...o,...c,...s],e)}function fz(e){return[...e.getHeaderGroups()].reverse()}function pz(e){let t=e.getHeaderGroups(),n=[];for(let e=0;e<t.length;e++){let r=t[e].headers;for(let e=0;e<r.length;e++)n.push(r[e])}return n}function mz(e){let t=e.getHeaderGroups()[0]?.headers??[],n=[];for(let e=0;e<t.length;e++){let r=t[e].getLeafHeaders();for(let e=0;e<r.length;e++)n.push(r[e])}return n}var hz={assignHeaderPrototype:(e,t)=>{oR(`coreHeadersFeature`,e,t,{header_getLeafHeaders:{fn:e=>lz(e),memoDeps:e=>[e.column.table.options.columns]},header_getContext:{fn:e=>uz(e),memoDeps:e=>[e.column.table.options.columns]}})},constructTableAPIs:e=>{aR(`coreHeadersFeature`,e,{table_getHeaderGroups:{fn:()=>dz(e),memoDeps:()=>[e.options.columns,e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.options.groupedColumnMode]},table_getFooterGroups:{fn:()=>fz(e),memoDeps:()=>[e.getHeaderGroups()]},table_getFlatHeaders:{fn:()=>pz(e),memoDeps:()=>[e.getHeaderGroups()]},table_getLeafHeaders:{fn:()=>mz(e),memoDeps:()=>[e.getHeaderGroups()]}})}};function gz(e){if(!e._rowPrototype){e._rowPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignRowPrototype?.(e._rowPrototype,e)}return e._rowPrototype}var _z=(e,t,n,r,i,a,o)=>{let s=gz(e),c=Object.create(s);c._displayIndexCache=-1,c._uniqueValuesCache=UL(),c._valuesCache=UL(),c.depth=i,c.id=t,c.index=r,c.original=n,c.parentId=o,c.subRows=a??[];let l=e._rowInstanceInitFns;for(let e=0;e<l.length;e++)l[e](c);return c},vz=/([0-9]+)/gm;function yz(e){let t=Object.assign((e,n,r)=>{let i=e.getValue(r),a=n.getValue(r),o=t.resolveDataValue;return o&&(i=o(i),a=o(a)),t.sort(i,a,e,n,r)},e);return t}var bz=yz({resolveDataValue:e=>Ez(e).toLowerCase(),sort:(e,t)=>Dz(e,t)});yz({resolveDataValue:e=>Ez(e),sort:(e,t)=>Dz(e,t)});var xz=yz({resolveDataValue:e=>Ez(e).toLowerCase(),sort:(e,t)=>wz(e,t)});yz({resolveDataValue:e=>Ez(e),sort:(e,t)=>wz(e,t)});var Sz=yz({resolveDataValue:e=>Tz(e),sort:(e,t)=>e>t?1:e<t?-1:0}),Cz=yz({sort:(e,t)=>wz(e,t)});function wz(e,t){return e===t?0:e>t?1:-1}function Tz(e){return e instanceof Date?e.getTime():e}function Ez(e){return typeof e==`number`?isNaN(e)||e===1/0||e===-1/0?``:String(e):typeof e==`string`?e:``}function Dz(e,t){let n=0,r=0,i=e.length,a=t.length;for(;n<i&&r<a;){let i=Oz(e.charCodeAt(n)),a=Oz(t.charCodeAt(r)),o=kz(e,n,i),s=kz(t,r,a);if(!i&&!a){let i=Az(e,n,o,t,r,s);if(i)return i;n=o,r=s;continue}if(i!==a)return i?1:-1;let c=jz(e,n,o,t,r,s);if(c)return c;n=o,r=s}return Nz(e,n)-Nz(t,r)}function Oz(e){return e>=48&&e<=57}function kz(e,t,n){let r=t+1;for(;r<e.length&&Oz(e.charCodeAt(r))===n;)r++;return r}function Az(e,t,n,r,i,a){let o=n-t,s=a-i,c=o<s?o:s;for(let n=0;n<c;n++){let a=e.charCodeAt(t+n),o=r.charCodeAt(i+n);if(a>o)return 1;if(o>a)return-1}return o>s?1:s>o?-1:0}function jz(e,t,n,r,i,a){let o=t;for(;o<n&&e.charCodeAt(o)===48;)o++;let s=i;for(;s<a&&r.charCodeAt(s)===48;)s++;let c=n-o,l=a-s;if(c===0&&l===0)return 0;if(c<=15&&l<=15){let t=Mz(e,o,n),i=Mz(r,s,a);return t>i?1:i>t?-1:0}let u=parseInt(e.slice(t,n),10),d=parseInt(r.slice(i,a),10);return u>d?1:d>u?-1:0}function Mz(e,t,n){let r=0;for(let i=t;i<n;i++)r=r*10+e.charCodeAt(i)-48;return r}function Nz(e,t){let n=0,r=t;for(;r<e.length;)n++,r=kz(e,r,Oz(e.charCodeAt(r)));return n}function Pz(){return[]}function Fz(e,t){ZL(e,`cellSelection`,t?Pz():VL(e.initialState.cellSelection)??Pz())}function Iz(e){e.atoms.cellSelection&&(e.options.autoResetAll??e.options.autoResetCellSelection??!0)&&e._reactivity.schedule(()=>Fz(e))}function Lz(){return UL()}function Rz(e){e.atoms.expanded&&(e.options.autoResetAll??e.options.autoResetExpanded??!e.options.manualExpanding)&&e._reactivity.schedule(()=>Vz(e))}function zz(e,t){e.options.onExpandedChange?.(t)}function Bz(e,t){let n=e.atoms.expanded?.get()??{};if(t??!Gz(e)){if(n===!0||!Hz(e))return;zz(e,!0)}else{if(n!==!0&&!Object.keys(n).length)return;zz(e,UL())}}function Vz(e,t){let n=e.initialState.expanded;ZL(e,`expanded`,t?UL():n===!0||Object.assign(UL(),VL(n??{})))}function Hz(e){return e.getPrePaginatedRowModel().flatRows.some(e=>Xz(e))}function Uz(e){return t=>{Bz(e)}}function Wz(e){let t=e.atoms.expanded?.get()??{};return t===!0||Object.values(t).some(Boolean)}function Gz(e){let t=e.atoms.expanded?.get()??{};if(t===!0)return!0;if(!Object.keys(t).length)return!1;let n=e.getRowModel().flatRows.filter(e=>Xz(e));return!(!n.length||n.some(e=>!Jz(e)))}function Kz(e){let t=0,n=e.atoms.expanded?.get();return(n===!0?Object.values(e.getRowModel().rowsById).filter(e=>Xz(e)).map(e=>e.id):Object.keys(n??{})).forEach(e=>{let n=e.split(`.`);t=Math.max(t,n.length)}),t}function qz(e,t){let n=e.table.atoms.expanded?.get()??{},r=n===!0||Yz(n,e.id),i=t??!r;i!==r&&(i&&!Xz(e)||zz(e.table,t=>{let n=t===!0||Yz(t,e.id),r=UL();if(t===!0?Object.values(e.table.getRowModel().rowsById).forEach(e=>{Xz(e)&&(r[e.id]=!0)}):r=Object.assign(UL(),t),!n&&i)return r[e.id]=!0,r;if(n&&!i){let t=UL(),n=Object.keys(r);for(let i=0;i<n.length;i++){let a=n[i];a!==e.id&&r[a]&&(t[a]=!0)}return t}return t}))}function Jz(e){let t=e.table.atoms.expanded?.get()??{};return!!(e.table.options.getIsRowExpanded?.(e)??(t===!0||Yz(t,e.id)))}function Yz(e,t){return!!(e&&e!==!0&&WL(e,t)&&e[t])}function Xz(e){return e.table.options.getRowCanExpand?.(e)??((e.table.options.enableExpanding??!0)&&!!e.subRows.length)}function Zz(e){let t=!0,n=e;for(;t&&n.parentId;)n=e.table.getRow(n.parentId,!0),t=Jz(n);return t}function Qz(e){let t=Xz(e);return()=>{t&&qz(e)}}var $z=0,eB=10;function tB(){return{pageIndex:$z,pageSize:eB}}function nB(e){if(e.options.autoResetAll??e.options.autoResetPageIndex??!e.options.manualPagination){if((e.atoms.pagination?.get()?.pageIndex??$z)===$z)return;oB(e,!0)}}function rB(e,t){ZL(e,`pagination`,t)}function iB(e,t){rB(e,t?tB():VL(e.initialState.pagination??tB()))}function aB(e,t){rB(e,n=>{let r=BL(t,n.pageIndex),i=e.options.pageCount===void 0||e.options.pageCount===-1?2**53-1:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}})}function oB(e,t){aB(e,t?$z:e.initialState.pagination?.pageIndex??$z)}function sB(e,t){cB(e,t?eB:e.initialState.pagination?.pageSize??eB)}function cB(e,t){rB(e,e=>{let n=Math.max(1,BL(t,e.pageSize)),r=e.pageSize===1/0?0:e.pageSize*e.pageIndex,i=n===1/0?0:Math.floor(r/n);return{...e,pageIndex:i,pageSize:n}})}function lB(e){let t=_B(e),n=[];return t&&t>0&&(n=[...Array(t)].fill(null).map((e,t)=>t)),n}function uB(e){return(e.atoms.pagination?.get()?.pageIndex??0)>0}function dB(e){let t=e.atoms.pagination?.get()?.pageIndex??$z,n=_B(e);return n===-1||n!==0&&t<n-1}function fB(e){let t=e.atoms.pagination?.get()?.pageIndex??$z,n=_B(e);return Number.isFinite(n)&&n>0&&t<n-1}function pB(e){return aB(e,e=>e-1)}function mB(e){return aB(e,e=>e+1)}function hB(e){return aB(e,0)}function gB(e){let t=_B(e);if(!(!Number.isFinite(t)||t<=0))return aB(e,t-1)}function _B(e){let t=e.options.pageCount;if(t!=null)return t;let n=vB(e),r=e.atoms.pagination?.get()?.pageSize??eB;return r===1/0&&Number.isFinite(n)&&n>0?1:Math.ceil(n/r)}function vB(e){return e.options.rowCount??e.getPrePaginatedRowModel().rows.length}function yB(){return[]}function bB(e,t){ZL(e,`sorting`,t)}function xB(e,t){bB(e,t?[]:VL(e.initialState.sorting??[]))}function SB(e){e.atoms.sorting&&(e.options.autoResetAll??e.options.autoResetSorting??!1)&&xB(e)}function CB(e){let t=e.table._rowModelFns.sortFns,n=e.table.getFilteredRowModel().flatRows.slice(0,10),r,i=!1;for(let t=0;t<n.length;t++){let a=n[t].getValue(e.id);if(Object.prototype.toString.call(a)===`[object Date]`){r=`datetime`;break}if(typeof a==`string`&&(i=!0,a.split(vz).length>1)){r=`alphanumeric`;break}}if(!r&&i&&(r=`text`),r){let n=t?.[r];if(n||(process.env.NODE_ENV===`development`&&console.warn(`sortFn '${r}' (auto) for column '${e.id}' is not registered`),r===`alphanumeric`&&(n=t?.text)),n)return n}return Cz}function wB(e){let t=e.table.getFilteredRowModel().flatRows.slice(0,10);for(let n=0;n<t.length;n++){let r=t[n].getValue(e.id);if(r!=null)return typeof r==`string`?`asc`:`desc`}return`desc`}function TB(e){let t=e.table._rowModelFns.sortFns;if(QL(e.columnDef.sortFn))return e.columnDef.sortFn;if(e.columnDef.sortFn===`auto`)return CB(e);let n=t?.[e.columnDef.sortFn];return process.env.NODE_ENV===`development`&&!n&&console.warn(`sortFn '${String(e.columnDef.sortFn)}' for column '${e.id}' is not registered`),n??Cz}function EB(e,t,n){let r=OB(e,n&&AB(e)),i=t!==void 0;bB(e.table,a=>{let o=a.findIndex(t=>t.id===e.id),s=o===-1?void 0:a[o],c=[],l,u=i?t:r===`desc`,d=!!(a.length&&AB(e)&&n);return l=d?s?`toggle`:`add`:s?`toggle`:`replace`,l===`toggle`&&(i||r||(l=`remove`)),l===`add`?(c=[...a,{id:e.id,desc:u}],c.splice(0,c.length-(e.table.options.maxMultiSortColCount??2**53-1))):c=l===`toggle`?d?a.map(t=>t.id===e.id?{...t,desc:u}:t):[{id:e.id,desc:u}]:l===`remove`?d?a.filter(t=>t.id!==e.id):[]:[{id:e.id,desc:u}],c})}function DB(e){return e.columnDef.sortDescFirst??e.table.options.sortDescFirst??wB(e)===`desc`?`desc`:`asc`}function OB(e,t){let n=DB(e),r=jB(e);return r?r!==n&&(e.table.options.enableSortingRemoval??!0)&&(!t||(e.table.options.enableMultiRemove??!0))?!1:r===`desc`?`asc`:`desc`:n}function kB(e){return(e.columnDef.enableSorting??!0)&&(e.table.options.enableSorting??!0)&&!!e.accessorFn}function AB(e){return e.columnDef.enableMultiSort??e.table.options.enableMultiSort??!!e.accessorFn}function jB(e){let t=e.table.atoms.sorting?.get()?.find(t=>t.id===e.id);return t?t.desc?`desc`:`asc`:!1}function NCe(e){return e.table.atoms.sorting?.get()?.findIndex(t=>t.id===e.id)??-1}function PCe(e){bB(e.table,t=>t.length?t.filter(t=>t.id!==e.id):[])}function FCe(e){let t=kB(e);return n=>{t&&EB(e,void 0,AB(e)?e.table.options.isMultiSortEvent?.(n):!1)}}function ICe(){return e=>rR({feature:`coreRowModelsFeature`,table:e,fnName:`table.getCoreRowModel`,memoDeps:()=>[e.options.data],fn:()=>LCe(e,e.options.data),onAfterUpdate:tR(()=>{Rz(e),nB(e),SB(e),Iz(e)})})}function MB(e,t,n,r=0,i){let a=[];for(let o=0;o<n.length;o++){let s=n[o],c=_z(e,e.getRowId(s,o,i),s,o,r,void 0,i?.id);t.flatRows.push(c),t.rowsById[c.id]=c,a.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(s,o),c.originalSubRows?.length&&(c.subRows=MB(e,t,c.originalSubRows,r+1,c)))}return a}function LCe(e,t){let n={rows:[],flatRows:[],rowsById:UL()};return n.rows=MB(e,n,t),n}function RCe(e){return e._rowModels.coreRowModel||(e._rowModels.coreRowModel=e.options.features.coreRowModel?.(e)??ICe()(e)),e._rowModels.coreRowModel()}function zCe(e){return e.getCoreRowModel()}function BCe(e){return e._rowModels.filteredRowModel||(e._rowModels.filteredRowModel=e.options.features.filteredRowModel?.(e)),e.options.manualFiltering||!e._rowModels.filteredRowModel?e.getPreFilteredRowModel():e._rowModels.filteredRowModel()}function VCe(e){return e.getFilteredRowModel()}function HCe(e){return e._rowModels.groupedRowModel||(e._rowModels.groupedRowModel=e.options.features.groupedRowModel?.(e)),e.options.manualGrouping||!e._rowModels.groupedRowModel?e.getPreGroupedRowModel():e._rowModels.groupedRowModel()}function UCe(e){return e.getGroupedRowModel()}function WCe(e){return e._rowModels.sortedRowModel||(e._rowModels.sortedRowModel=e.options.features.sortedRowModel?.(e)),e.options.manualSorting||!e._rowModels.sortedRowModel?e.getPreSortedRowModel():e._rowModels.sortedRowModel()}function GCe(e){return e.getSortedRowModel()}function KCe(e){return e._rowModels.expandedRowModel||(e._rowModels.expandedRowModel=e.options.features.expandedRowModel?.(e)),e.options.manualExpanding||!e._rowModels.expandedRowModel?e.getPreExpandedRowModel():e._rowModels.expandedRowModel()}function qCe(e){return e.getExpandedRowModel()}function JCe(e){return e._rowModels.paginatedRowModel||(e._rowModels.paginatedRowModel=e.options.features.paginatedRowModel?.(e)),e.options.manualPagination||!e._rowModels.paginatedRowModel?e.getPrePaginatedRowModel():e._rowModels.paginatedRowModel()}function YCe(e){return e.getPaginatedRowModel()}var XCe={constructTableAPIs:e=>{aR(`coreRowModelsFeature`,e,{table_getCoreRowModel:{fn:()=>RCe(e)},table_getPreFilteredRowModel:{fn:()=>zCe(e)},table_getFilteredRowModel:{fn:()=>BCe(e)},table_getPreGroupedRowModel:{fn:()=>VCe(e)},table_getGroupedRowModel:{fn:()=>HCe(e)},table_getPreSortedRowModel:{fn:()=>UCe(e)},table_getSortedRowModel:{fn:()=>WCe(e)},table_getPreExpandedRowModel:{fn:()=>GCe(e)},table_getExpandedRowModel:{fn:()=>KCe(e)},table_getPrePaginatedRowModel:{fn:()=>qCe(e)},table_getPaginatedRowModel:{fn:()=>JCe(e)},table_getRowModel:{fn:()=>YCe(e)}})}};function ZCe(e){if(!e._cellPrototype){e._cellPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignCellPrototype?.(e._cellPrototype,e)}return e._cellPrototype}function QCe(e,t,n){let r=ZCe(n),i=Object.create(r);i.column=e,i.id=`${t.id}_${e.id}`,i.row=t;let a=n._cellInstanceInitFns;for(let e=0;e<a.length;e++)a[e](i);return i}function $Ce(e){let t=e.table.getRowsInDisplayOrder(),n=e._displayIndexCache;return t[n]===e?n:-1}function ewe(e){let t=e.getPrePaginatedRowModel().rows;if(e.options.paginateExpandedRows===!1){let e=[],n=t=>{t._displayIndexCache=e.length,e.push(t),t.subRows.length&&t.getIsExpanded?.()&&t.subRows.forEach(n)};return t.forEach(n),e}for(let e=0;e<t.length;e++)t[e]._displayIndexCache=e;return t}function twe(e,t){if(WL(e._valuesCache,t))return e._valuesCache[t];let n=e.table.getColumn(t);if(n?.accessorFn)return e._valuesCache[t]=n.accessorFn(e.original,e.index),e._valuesCache[t]}function nwe(e,t){if(WL(e._uniqueValuesCache,t))return e._uniqueValuesCache[t];let n=e.table.getColumn(t);if(n?.accessorFn)return n.columnDef.getUniqueValues?(e._uniqueValuesCache[t]=n.columnDef.getUniqueValues(e.original,e.index),e._uniqueValuesCache[t]):(e._uniqueValuesCache[t]=[e.getValue(t)],e._uniqueValuesCache[t])}function rwe(e,t){return e.getValue(t)??e.table.options.renderFallbackValue}function iwe(e){return $L(e.subRows,e=>e.subRows)}function awe(e){let t=e.getCoreRowModel().flatRows,n=0;for(let e=0;e<t.length;e++)n=Math.max(n,t[e].depth);return n}function owe(e){if(e.parentId)return e.table.getCoreRowModel().rowsById[e.parentId]??e.table.getRow(e.parentId,!0)}function swe(e){let t=[],n=e;for(;;){let e=n.getParentRow();if(!e)break;t.push(e),n=e}return t.reverse()}function cwe(e){let t=e.table.getAllLeafColumns(),n=e._cellsCache;n||=e._cellsCache=new WeakMap;let r=Array(t.length);for(let i=0;i<t.length;i++){let a=t[i],o=n.get(a);o||(o=QCe(a,e,e.table),n.set(a,o)),r[i]=o}return r}function lwe(e){let t=UL(),n=e.getAllCells();for(let e=0;e<n.length;e++){let r=n[e];t[r.column.id]=r}return t}function uwe(e,t,n,r){return t.options.getRowId?.(e,n,r)??(r?`${r.id}.${n}`:String(n))}function dwe(e,t,n){let r=(n?e.getPrePaginatedRowModel():e.getRowModel()).rowsById[t];if(!r&&(r=e.getCoreRowModel().rowsById[t],!r))throw process.env.NODE_ENV===`development`?Error(`getRow could not find row with ID: ${t}`):Error();return r}var fwe={assignRowPrototype:(e,t)=>{oR(`coreRowsFeature`,e,t,{row_getDisplayIndex:{fn:e=>$Ce(e)},row_getAllCellsByColumnId:{fn:e=>lwe(e),memoDeps:e=>[e.getAllCells()]},row_getAllCells:{fn:e=>cwe(e),memoDeps:e=>[e.table.getAllLeafColumns()]},row_getLeafRows:{fn:e=>iwe(e),memoDeps:e=>[e.subRows]},row_getParentRow:{fn:e=>owe(e)},row_getParentRows:{fn:e=>swe(e)},row_getUniqueValues:{fn:(e,t)=>nwe(e,t)},row_getValue:{fn:(e,t)=>twe(e,t)},row_renderValue:{fn:(e,t)=>rwe(e,t)}})},constructTableAPIs:e=>{aR(`coreRowsFeature`,e,{table_getRowsInDisplayOrder:{fn:()=>ewe(e),memoDeps:()=>[e.getPrePaginatedRowModel().rows,e.options.paginateExpandedRows,e.options.paginateExpandedRows===!1?e.atoms.expanded?.get():void 0]},table_getRowId:{fn:(t,n,r)=>uwe(t,e,n,r)},table_getRow:{fn:(t,n)=>dwe(e,t,n)},table_getMaxSubRowDepth:{fn:()=>awe(e),memoDeps:()=>[e.getCoreRowModel()]}})}};function NB(e,t,n=(e,t)=>e===t){let r=t===void 0?e.options.state:t;e._reactivity.batch(()=>{if(r)for(let t in r){let i=e.baseAtoms[t];if(!i)continue;let a=r[t],o=a===void 0?e.initialState[t]:a;n(e._reactivity.untrack(()=>i.get()),o)||i.set(()=>o)}})}function PB(e,t,n=(e,t)=>e===t){e._reactivity.batch(()=>{NB(e,t,n),e._reactivity.commit?.()})}function pwe(e){let t=VL(e.initialState);e._reactivity.batch(()=>{let n=Object.keys(t);for(let r=0;r<n.length;r++){let i=n[r];e.baseAtoms[i].set(t[i])}});let n=Object.values(e._features);for(let t=0;t<n.length;t++)n[t].resetTableInstanceData?.(e)}function mwe(e,t){let{features:n,atoms:r,initialState:i}=e.options;if(!e.options.mergeOptions)return{...e.options,...t,features:n,atoms:r,initialState:i};let a=e.options.mergeOptions(e.options,t),o={...Object.getOwnPropertyDescriptors(a)};return Object.defineProperties(Object.create(Object.getPrototypeOf(a)),{...o,features:{value:n,enumerable:!0,configurable:!0,writable:!0},atoms:{value:r,enumerable:!0,configurable:!0,writable:!0},initialState:{value:i,enumerable:!0,configurable:!0,writable:!0}})}function FB(e,t,n){let r=mwe(e,BL(t,e.options));e.optionsStore?e.optionsStore.set(()=>r):e.options=r,n?.syncExternalState!==!1&&PB(e,r.state??null)}var hwe={coreCellsFeature:dR,coreColumnsFeature:sz,coreHeadersFeature:hz,coreRowModelsFeature:XCe,coreRowsFeature:fwe,coreTablesFeature:{constructTableAPIs:e=>{aR(`coreTablesFeature`,e,{table_reset:{fn:()=>pwe(e)},table_setOptions:{fn:t=>FB(e,t)}})}}};function gwe(){return{accessor:(e,t)=>typeof e==`function`?{...t,accessorFn:e}:{...t,accessorKey:e},columns:e=>e,display:e=>e,group:e=>e}}function IB(){return{}}function LB(e){return e}function _we(e,t={}){return Object.values(e).forEach(e=>{t=e.getInitialState?.(t)??t}),VL(t)}function vwe(e){let t=e.features.coreReactivityFeature,{aggregationFns:n,columnMeta:r,coreRowModel:i,expandedRowModel:a,facetedMinMaxValues:o,facetedRowModel:s,facetedUniqueValues:c,filterFns:l,filterMeta:u,filteredRowModel:d,groupedRowModel:f,paginatedRowModel:p,sortFns:m,sortedRowModel:h,tableMeta:g,..._}=e.features,v={_cellInstanceInitFns:[],_columnInstanceInitFns:[],_features:{...hwe,..._},_headerGroupInstanceInitFns:[],_headerInstanceInitFns:[],_reactivity:t,_rowInstanceInitFns:[],_rowModelFns:{aggregationFns:n,filterFns:l,sortFns:m},_rowModels:{},atoms:{},baseAtoms:{}},y=Object.values(v._features),b={...y.reduce((e,t)=>Object.assign(e,t.getDefaultTableOptions?.(v)),{}),...e};if(t.wrapExternalAtoms&&b.atoms)for(let[e,n]of Object.entries(b.atoms)){let r=n,i=t.createWritableAtom(r.get(),{debugName:`externalAtom/${e}`});b.atoms[e]=i;let a=!1,o=r.subscribe(e=>{a||i.set(e)}),s=i.subscribe(e=>{a=!0,r.set(e),a=!1});t.addSubscription(o),t.addSubscription(s)}t.createOptionsStore?(v.optionsStore=t.createWritableAtom(b,{debugName:`table/optionsStore`}),Object.defineProperty(v,"options",{configurable:!0,enumerable:!0,get(){return v.optionsStore.get()},set(e){v.optionsStore.set(()=>e)}})):v.options=b,v.initialState=_we(v._features,v.options.initialState);let x=Object.keys(v.initialState);for(let e=0;e<x.length;e++){let n=x[e];v.baseAtoms[n]=t.createWritableAtom(v.initialState[n],{debugName:`table/baseAtoms/${n}`}),v.atoms[n]=t.createReadonlyAtom(()=>{let e=v.options,t=e.atoms?.[n],r=t?t.get():v.baseAtoms[n].get();if(t)return r;let i=e.state;if(i&&WL(i,n)){let e=i[n];return e===void 0?v.initialState[n]:e}return r},{debugName:`table/atoms/${n}`})}NB(v),v.store=IL(t.createReadonlyAtom(()=>{let e={};for(let t=0;t<x.length;t++){let n=x[t];e[n]=v.atoms[n].get()}return e},{compare:wF,debugName:`table/store`}));for(let e=0;e<y.length;e++){let t=y[e];t.initTableInstanceData?.(v),t.initCellInstanceData&&v._cellInstanceInitFns.push(t.initCellInstanceData.bind(t)),t.initColumnInstanceData&&v._columnInstanceInitFns.push(t.initColumnInstanceData.bind(t)),t.initHeaderGroupInstanceData&&v._headerGroupInstanceInitFns.push(t.initHeaderGroupInstanceData.bind(t)),t.initHeaderInstanceData&&v._headerInstanceInitFns.push(t.initHeaderInstanceData.bind(t)),t.initRowInstanceData&&v._rowInstanceInitFns.push(t.initRowInstanceData.bind(t)),t.constructTableAPIs?.(v)}if(process.env.NODE_ENV===`development`&&(e.debugAll||e.debugTable)){let e=Object.keys(v._features),t=Object.entries({coreRowModel:i,filteredRowModel:d,groupedRowModel:f,sortedRowModel:h,expandedRowModel:a,paginatedRowModel:p,facetedRowModel:s,facetedMinMaxValues:o,facetedUniqueValues:c}).filter(([,e])=>e).map(([e])=>e),n=Object.keys(v.initialState);console.log(`Constructing Table Instance
59
-
60
- Features: ${e.join(`
61
- `)}
62
-
63
- Row Models: ${t.length?t.join(`
64
- `):`(none)`}
65
-
66
- States: ${n.join(`
67
- `)}\n`,{table:v})}return v}function ywe(e,t){let n=t._rowModels.facetedMinMaxValues??=UL(),r=n[e.id];return r||=n[e.id]=t.options.features.facetedMinMaxValues?.(t,e.id)??(()=>void 0),r()}function RB(e,t){let n=e?.id??``,r=t._rowModels.facetedRowModels??=UL(),i=r[n];return i||=r[n]=t.options.features.facetedRowModel?.(t,n)??(()=>t.getPreFilteredRowModel()),i()}function bwe(e,t){let n=t._rowModels.facetedUniqueValues??=UL(),r=n[e.id];return r||=n[e.id]=t.options.features.facetedUniqueValues?.(t,e.id)??zB(),r()}function zB(){let e=new Map;return()=>e}function xwe(e){e._rowModels.globalFacetedMinMaxValues||(e._rowModels.globalFacetedMinMaxValues=e.options.features.facetedMinMaxValues?.(e,`__global__`)??(()=>void 0));let t=e._rowModels.globalFacetedMinMaxValues;return t()}function BB(e){e._rowModels.globalFacetedRowModel||(e._rowModels.globalFacetedRowModel=e.options.features.facetedRowModel?.(e,`__global__`)??(()=>e.getPreFilteredRowModel()));let t=e._rowModels.globalFacetedRowModel;return t()}function Swe(e){e._rowModels.globalFacetedUniqueValues||(e._rowModels.globalFacetedUniqueValues=e.options.features.facetedUniqueValues?.(e,`__global__`)??zB());let t=e._rowModels.globalFacetedUniqueValues;return t()}var VB={assignColumnPrototype:(e,t)=>{oR(`columnFacetingFeature`,e,t,{column_getFacetedRowModel:{fn:e=>RB(e,e.table)},column_getFacetedMinMaxValues:{fn:e=>ywe(e,e.table)},column_getFacetedUniqueValues:{fn:e=>bwe(e,e.table)}})},constructTableAPIs:e=>{aR(`columnFacetingFeature`,e,{table_getGlobalFacetedRowModel:{fn:()=>BB(e)},table_getGlobalFacetedMinMaxValues:{fn:()=>xwe(e)},table_getGlobalFacetedUniqueValues:{fn:()=>Swe(e)}})}};function Cwe(){return[]}function HB(e){let t=e.table._rowModelFns.filterFns,n=e.table.getCoreRowModel().flatRows,r;for(let t=0;t<n.length;t++){let i=n[t].getValue(e.id);if(i!=null){r=i;break}}let i;i=typeof r==`string`?`includesString`:typeof r==`number`?`inNumberRange`:typeof r==`boolean`?`equals`:Array.isArray(r)?`arrIncludes`:Object.prototype.toString.call(r)===`[object Date]`?`inDateRange`:typeof r==`object`&&r?`equals`:`weakEquals`;let a=t?.[i];return process.env.NODE_ENV===`development`&&!a&&console.warn(`filterFn '${i}' (auto) for column '${e.id}' is not registered`),a}function UB(e){let t=null,n=e.table._rowModelFns.filterFns;return t=QL(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn===`auto`?HB(e):n?.[e.columnDef.filterFn],process.env.NODE_ENV===`development`&&!t&&e.columnDef.filterFn!==`auto`&&console.warn(`filterFn '${String(e.columnDef.filterFn)}' for column '${e.id}' is not registered`),t??void 0}function wwe(e){return(e.columnDef.enableColumnFilter??!0)&&(e.table.options.enableColumnFilters??!0)&&(e.table.options.enableFilters??!0)&&!!e.accessorFn}function Twe(e){return WB(e)>-1}function Ewe(e){return e.table.atoms.columnFilters?.get()?.find(t=>t.id===e.id)?.value}function WB(e){return e.table.atoms.columnFilters?.get()?.findIndex(t=>t.id===e.id)??-1}function Dwe(e,t){GB(e.table,n=>{let r=UB(e),i=n.find(t=>t.id===e.id),a=BL(t,i?i.value:void 0);if(KB(r,a,e))return n.filter(t=>t.id!==e.id);let o={id:e.id,value:a};return i?n.map(t=>t.id===e.id?o:t):n.length?[...n,o]:[o]})}function GB(e,t){let n=e.getAllLeafColumnsById();ZL(e,`columnFilters`,e=>BL(t,e).filter(e=>{let t=n[e.id];return!(t&&KB(UB(t),e.value,t))}))}function Owe(e,t){GB(e,t?[]:VL(e.initialState.columnFilters??[]))}function KB(e,t,n){return t===void 0?!0:e?.autoRemove?!!e.autoRemove(t,n):typeof t==`string`&&!t}var qB={getInitialState:e=>({columnFilters:Cwe(),...e}),getDefaultColumnDef:()=>({filterFn:`auto`}),getDefaultTableOptions:e=>({onColumnFiltersChange:GL(`columnFilters`,e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),assignColumnPrototype:(e,t)=>{oR(`columnFilteringFeature`,e,t,{column_getAutoFilterFn:{fn:e=>HB(e)},column_getFilterFn:{fn:e=>UB(e)},column_getCanFilter:{fn:e=>wwe(e)},column_getIsFiltered:{fn:e=>Twe(e)},column_getFilterValue:{fn:e=>Ewe(e)},column_getFilterIndex:{fn:e=>WB(e)},column_setFilterValue:{fn:(e,t)=>Dwe(e,t)}})},initRowInstanceData:e=>{e.columnFilters=UL(),e.columnFiltersMeta=UL()},constructTableAPIs:e=>{aR(`columnFilteringFeature`,e,{table_setColumnFilters:{fn:t=>GB(e,t)},table_resetColumnFilters:{fn:t=>Owe(e,t)}})}};function kwe(){return UL()}function JB(){return{size:150,minSize:20,maxSize:2**53-1}}function YB(e){let t=JB(),n=e.table.atoms.columnSizing?.get(),r=n&&WL(n,e.id)?n[e.id]:void 0;return Math.min(Math.max(e.columnDef.minSize??t.minSize,r??e.columnDef.size??t.size),e.columnDef.maxSize??t.maxSize)}function XB(e){let t=UL(),n=UL(),r=Array(e.length),i=0;for(let n=0;n<e.length;n++){let a=e[n],o=sR(a,`getSize`,YB);r[n]=o,t[a.id]=i,i+=o}let a=0;for(let t=e.length-1;t>=0;t--)n[e[t].id]=a,a+=r[t];return{starts:t,afters:n}}function ZB(e){return{all:XB(wR(e)),center:XB(wR(e,`center`)),start:XB(wR(e,`start`)),end:XB(wR(e,`end`))}}function QB(e){return e===`start`?`start`:e===`end`?`end`:e===`center`?`center`:`all`}function Awe(e,t){return sR(e.table,`getColumnOffsets`,ZB)[QB(t)].starts[e.id]??0}function jwe(e,t){return sR(e.table,`getColumnOffsets`,ZB)[QB(t)].afters[e.id]??0}function Mwe(e){nV(e.table,t=>{let n=UL(),r=Object.keys(t);for(let i=0;i<r.length;i++){let a=r[i];a!==e.id&&(n[a]=t[a])}return n})}function $B(e){if(!e.subHeaders.length)return YB(e.column);let t=0;for(let n=0;n<e.subHeaders.length;n++)t+=$B(e.subHeaders[n]);return t}function eV(e){return $B(e)}function tV(e){if(e.index>0){let t=e.headerGroup?.headers[e.index-1];if(t)return sR(t,`getStart`,tV)+sR(t,`getSize`,eV)}return 0}function nV(e,t){e.options.onColumnSizingChange?.(t)}function Nwe(e,t){nV(e,t?UL():Object.assign(UL(),VL(e.initialState.columnSizing??{})))}function Pwe(e){return e.getHeaderGroups()[0]?.headers.reduce((e,t)=>e+eV(t),0)??0}function Fwe(e){return sR(e,`getStartHeaderGroups`,hR)[0]?.headers.reduce((e,t)=>e+eV(t),0)??0}function Iwe(e){return sR(e,`getCenterHeaderGroups`,_R)[0]?.headers.reduce((e,t)=>e+eV(t),0)??0}function Lwe(e){return sR(e,`getEndHeaderGroups`,gR)[0]?.headers.reduce((e,t)=>e+eV(t),0)??0}var rV={getInitialState:e=>({columnSizing:kwe(),...e}),getDefaultColumnDef:()=>JB(),getDefaultTableOptions:e=>({onColumnSizingChange:GL(`columnSizing`,e)}),assignColumnPrototype:(e,t)=>{oR(`columnSizingFeature`,e,t,{column_getSize:{fn:e=>YB(e),memoDeps:e=>[t.options.columns,t.atoms.columnSizing?.get()?.[e.id]]},column_getStart:{fn:(e,t)=>Awe(e,t)},column_getAfter:{fn:(e,t)=>jwe(e,t)},column_resetSize:{fn:e=>Mwe(e)}})},assignHeaderPrototype:(e,t)=>{oR(`columnSizingFeature`,e,t,{header_getSize:{fn:e=>eV(e),memoDeps:e=>[t.options.columns,e.column.columns.length>0?t.atoms.columnSizing?.get():t.atoms.columnSizing?.get()?.[e.column.id]]},header_getStart:{fn:e=>tV(e),memoDeps:()=>[t.options.columns,t.atoms.columnSizing?.get(),t.atoms.columnOrder?.get(),t.atoms.columnPinning?.get(),t.atoms.columnVisibility?.get(),t.atoms.grouping?.get(),t.options.groupedColumnMode]}})},constructTableAPIs:e=>{aR(`columnSizingFeature`,e,{table_getColumnOffsets:{fn:()=>ZB(e),memoDeps:()=>[e.options.columns,e.atoms.columnSizing?.get(),e.atoms.columnOrder?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.atoms.grouping?.get(),e.options.groupedColumnMode]},table_setColumnSizing:{fn:t=>nV(e,t)},table_resetColumnSizing:{fn:t=>Nwe(e,t)},table_getTotalSize:{fn:()=>Pwe(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getStartTotalSize:{fn:()=>Fwe(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getCenterTotalSize:{fn:()=>Iwe(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getEndTotalSize:{fn:()=>Lwe(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]}})}},iV={getInitialState:e=>({columnVisibility:TR(),...e}),getDefaultTableOptions:e=>({onColumnVisibilityChange:GL(`columnVisibility`,e)}),assignColumnPrototype:(e,t)=>{oR(`columnVisibilityFeature`,e,t,{column_getIsVisible:{fn:e=>DR(e),memoDeps:e=>[t.options.columns,t.atoms.columnVisibility?.get(),e.columns]},column_getCanHide:{fn:e=>OR(e)},column_getToggleVisibilityHandler:{fn:e=>kR(e)},column_toggleVisibility:{fn:(e,t)=>ER(e,t)}})},assignRowPrototype:(e,t)=>{oR(`columnVisibilityFeature`,e,t,{row_getVisibleCells:{fn:e=>AR(e),memoDeps:e=>[e.getAllCells(),t.atoms.columnPinning?.get(),t.atoms.columnVisibility?.get()]},row_getVisibleCellsByColumnId:{fn:e=>jR(e),memoDeps:e=>[e.getAllCells(),t.atoms.columnVisibility?.get()]}})},constructTableAPIs:e=>{aR(`columnVisibilityFeature`,e,{table_getVisibleFlatColumns:{fn:()=>MR(e),memoDeps:()=>[e.atoms.columnVisibility?.get(),e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_getVisibleLeafColumns:{fn:()=>NR(e),memoDeps:()=>[e.atoms.columnVisibility?.get(),e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_setColumnVisibility:{fn:t=>PR(e,t)},table_resetColumnVisibility:{fn:t=>FR(e,t)},table_toggleAllColumnsVisible:{fn:t=>IR(e,t)},table_getIsAllColumnsVisible:{fn:()=>LR(e)},table_getIsSomeColumnsVisible:{fn:()=>RR(e)},table_getToggleAllColumnsVisibilityHandler:{fn:()=>zR(e)}})}};function aV(e){let t=Object.assign((e,n,r,i)=>{let a=e.getValue(n),o=t.resolveDataValue?t.resolveDataValue(a):a;return t.filter(o,r,e,n,i)},e);return t}var oV=aV({filter:(e,t)=>e===t,autoRemove:e=>wV(e)}),sV=aV({filter:(e,t)=>e==t,autoRemove:e=>wV(e)}),cV=aV({filter:(e,t)=>!!e?.includes(t),autoRemove:e=>wV(e),resolveFilterValue:e=>String(e),resolveDataValue:e=>e==null?void 0:String(e)}),lV=aV({filter:(e,t)=>!!e?.includes(t),autoRemove:e=>wV(e),resolveFilterValue:e=>String(e).toLowerCase(),resolveDataValue:e=>e==null?void 0:String(e).toLowerCase()}),uV=aV({filter:(e,t)=>e===t,autoRemove:e=>wV(e),resolveFilterValue:e=>String(e).toLowerCase(),resolveDataValue:e=>e==null?void 0:String(e).toLowerCase()}),dV=aV({filter:(e,t)=>e===t,autoRemove:e=>wV(e),resolveFilterValue:e=>String(e),resolveDataValue:e=>e==null?void 0:String(e)}),fV=aV({filter:(e,t)=>!!e?.startsWith(t),autoRemove:e=>wV(e),resolveFilterValue:e=>String(e).toLowerCase(),resolveDataValue:e=>e==null?void 0:String(e).toLowerCase()}),pV=aV({filter:(e,t)=>!!e?.endsWith(t),autoRemove:e=>wV(e),resolveFilterValue:e=>String(e).toLowerCase(),resolveDataValue:e=>e==null?void 0:String(e).toLowerCase()}),mV=aV({filter:e=>TV(e),autoRemove:e=>wV(e)||e===!1}),hV=aV({filter:e=>!TV(e),autoRemove:e=>wV(e)||e===!1});aV({filter:(e,t)=>DV(e,t),autoRemove:e=>wV(e)}),aV({filter:(e,t)=>OV(e,t),autoRemove:e=>wV(e)}),aV({filter:(e,t)=>!OV(e,t),autoRemove:e=>wV(e)}),aV({filter:(e,t)=>!DV(e,t),autoRemove:e=>wV(e)});var gV=aV({filter:(e,t)=>kV(e,t,!1),autoRemove:e=>wV(e)||Array.isArray(e)&&wV(e[0])&&wV(e[1])}),_V=aV({filter:(e,t)=>kV(e,t,!0),autoRemove:e=>wV(e)||Array.isArray(e)&&wV(e[0])&&wV(e[1])}),vV=aV({filter:(e,t)=>{if(typeof e!=`number`||Number.isNaN(e))return!1;let[n,r]=t;return e>=n&&e<=r},resolveFilterValue:e=>{let[t,n]=e,r=typeof t==`number`?t:parseFloat(t),i=typeof n==`number`?n:parseFloat(n),a=t===null||Number.isNaN(r)?-1/0:r,o=n===null||Number.isNaN(i)?1/0:i;if(a>o){let e=a;a=o,o=e}return[a,o]},autoRemove:e=>wV(e)||Array.isArray(e)&&wV(e[0])&&wV(e[1])}),yV=aV({filter:(e,t)=>{let[n,r]=t;return e>=n&&e<=r},resolveFilterValue:e=>{let[t,n]=e,r=EV(t),i=EV(n),a=Number.isNaN(r)?-1/0:r,o=Number.isNaN(i)?1/0:i;if(a>o){let e=a;a=o,o=e}return[a,o]},resolveDataValue:e=>EV(e),autoRemove:e=>wV(e)||Array.isArray(e)&&wV(e[0])&&wV(e[1])}),bV=aV({filter:(e,t)=>{for(let n=0;n<t.length;n++)if(e===t[n])return!0;return!1},autoRemove:e=>wV(e)||!e?.length}),xV=aV({filter:(e,t)=>{if(typeof e!=`string`&&!Array.isArray(e))return!1;for(let n=0;n<t.length;n++)if(e.includes(t[n]))return!0;return!1},autoRemove:e=>wV(e)||!e?.length}),SV=aV({filter:(e,t)=>{if(!Array.isArray(e))return!1;for(let n=0;n<t.length;n++)if(!e.includes(t[n]))return!1;return!0},autoRemove:e=>wV(e)||!e?.length}),CV=aV({filter:(e,t)=>{if(!Array.isArray(e))return!1;for(let n=0;n<t.length;n++)if(e.includes(t[n]))return!0;return!1},autoRemove:e=>wV(e)||!e?.length});function wV(e){return e==null||e===``}function TV(e){return e==null||String(e).trim()===``}function EV(e){return e instanceof Date?e.getTime():typeof e==`number`?e:e==null||e===``?NaN:new Date(e).getTime()}function DV(e,t){let n=e==null?0:+e,r=Number(t);return!isNaN(r)&&!isNaN(n)?n>r:String(e??``).toLowerCase().trim()>String(t).toLowerCase().trim()}function OV(e,t){return e===t||DV(e,t)}function kV(e,t,n){let r=t[0],i=r!==``&&r!==void 0;if(i&&!(n?OV(e,r):DV(e,r)))return!1;let a=t[1];if(a===``||a===void 0)return!0;if(i){let e=Number(r),t=Number(a);if(!isNaN(e)&&!isNaN(t)&&e>t)return!0}return n?!DV(e,a):!OV(e,a)}function AV(e){return(e.columnDef.enableGlobalFilter??!0)&&(e.table.options.enableGlobalFilter??!0)&&(e.table.options.enableFilters??!0)&&(e.table.options.getColumnCanGlobalFilter?.(e)??!0)&&!!e.accessorFn}function jV(){return lV}function MV(e){let{globalFilterFn:t}=e.options,n=e._rowModelFns.filterFns,r=QL(t)?t:t===`auto`?jV():n?.[t];return process.env.NODE_ENV===`development`&&!r&&t!=null&&console.warn(`globalFilterFn '${String(t)}' is not registered`),r}function NV(e,t){e.options.onGlobalFilterChange?.(t)}function Rwe(e,t){NV(e,t?void 0:VL(e.initialState.globalFilter))}var PV={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultTableOptions:e=>({onGlobalFilterChange:GL(`globalFilter`,e),globalFilterFn:`auto`,getColumnCanGlobalFilter:t=>{if(`enableGlobalFilter`in t.columnDef&&t.columnDef.enableGlobalFilter===!0)return!0;let n=e.getCoreRowModel().flatRows.find(e=>e.getAllCellsByColumnId()[t.id]?.getValue()!=null)?.getAllCellsByColumnId()[t.id]?.getValue();return typeof n==`string`||typeof n==`number`}}),assignColumnPrototype:(e,t)=>{oR(`globalFilteringFeature`,e,t,{column_getCanGlobalFilter:{fn:e=>AV(e)}})},constructTableAPIs:e=>{aR(`globalFilteringFeature`,e,{table_getGlobalAutoFilterFn:{fn:()=>jV()},table_getGlobalFilterFn:{fn:()=>MV(e)},table_setGlobalFilter:{fn:t=>NV(e,t)},table_resetGlobalFilter:{fn:t=>Rwe(e,t)}})}},zwe={getInitialState:e=>({expanded:Lz(),...e}),getDefaultTableOptions:e=>({onExpandedChange:GL(`expanded`,e),paginateExpandedRows:!0}),assignRowPrototype:(e,t)=>{oR(`rowExpandingFeature`,e,t,{row_toggleExpanded:{fn:(e,t)=>qz(e,t)},row_getIsExpanded:{fn:e=>Jz(e)},row_getCanExpand:{fn:e=>Xz(e)},row_getIsAllParentsExpanded:{fn:e=>Zz(e)},row_getToggleExpandedHandler:{fn:e=>Qz(e)}})},constructTableAPIs:e=>{aR(`rowExpandingFeature`,e,{table_autoResetExpanded:{fn:()=>Rz(e)},table_setExpanded:{fn:t=>zz(e,t)},table_toggleAllRowsExpanded:{fn:t=>Bz(e,t)},table_resetExpanded:{fn:t=>Vz(e,t)},table_getCanSomeRowsExpand:{fn:()=>Hz(e)},table_getToggleAllRowsExpandedHandler:{fn:()=>Uz(e)},table_getIsSomeRowsExpanded:{fn:()=>Wz(e)},table_getIsAllRowsExpanded:{fn:()=>Gz(e)},table_getExpandedDepth:{fn:()=>Kz(e)}})}},FV={getInitialState:e=>({...e,pagination:{...tB(),...e.pagination}}),getDefaultTableOptions:e=>({onPaginationChange:GL(`pagination`,e)}),constructTableAPIs:e=>{aR(`rowPaginationFeature`,e,{table_autoResetPageIndex:{fn:()=>nB(e)},table_setPagination:{fn:t=>rB(e,t)},table_resetPagination:{fn:t=>iB(e,t)},table_setPageIndex:{fn:t=>aB(e,t)},table_resetPageIndex:{fn:t=>oB(e,t)},table_setPageSize:{fn:t=>cB(e,t)},table_getPageCount:{fn:()=>_B(e)},table_resetPageSize:{fn:t=>sB(e,t)},table_getPageOptions:{fn:()=>lB(e)},table_getCanPreviousPage:{fn:()=>uB(e)},table_getCanNextPage:{fn:()=>dB(e)},table_getCanLastPage:{fn:()=>fB(e)},table_previousPage:{fn:()=>pB(e)},table_nextPage:{fn:()=>mB(e)},table_firstPage:{fn:()=>hB(e)},table_lastPage:{fn:()=>gB(e)},table_getRowCount:{fn:()=>vB(e)}})}};function Bwe(){return UL()}function IV(e,t){e.options.onRowSelectionChange?.(t)}function Vwe(e,t){e._lastSelectedRowId=null,IV(e,t?UL():Object.assign(UL(),VL(e.initialState.rowSelection??{})))}function LV(e,t,n){e._lastSelectedRowId=null,IV(e,r=>{if(t=t===void 0?!sR(e,`getIsAllRowsSelected`,BV):t,n?.deselectAll&&!t)return UL();let i=Object.assign(UL(),r),a=e.getPreGroupedRowModel().flatRows;if(t){let e=new Map;a.forEach(t=>{XV(t,e)&&(i[t.id]=!0)})}else a.forEach(e=>{KV(e)&&delete i[e.id]});return i})}function RV(e,t,n){e._lastSelectedRowId=null,IV(e,r=>{let i=t===void 0?!sR(e,`getIsAllPageRowsSelected`,VV):t;if(n?.deselectAll&&!i)return UL();let a=Object.assign(UL(),r);return e.getRowModel().rows.forEach(t=>{YV(a,t.id,i,!0,e,!0)}),a})}function Hwe(e){return e.getCoreRowModel()}function Uwe(e){let t=e.getCoreRowModel();return sR(e,`getIsSomeRowsSelected`,HV)?$V(t,e):{rows:[],flatRows:[],rowsById:UL()}}function Wwe(e){let t=e.getFilteredRowModel();return sR(e,`getIsSomeRowsSelected`,HV)?$V(t,e):{rows:[],flatRows:[],rowsById:UL()}}function Gwe(e){let t=e.getSortedRowModel();return sR(e,`getIsSomeRowsSelected`,HV)?$V(t,e):{rows:[],flatRows:[],rowsById:UL()}}function zV(e){return Object.keys(e.atoms.rowSelection?.get()??{})}function BV(e){let t=e.getFilteredRowModel().flatRows,n=e.atoms.rowSelection?.get()??{},r=!!(t.length&&Object.keys(n).length);if(r){let e=new Map;t.some(t=>!eH(t,n)&&XV(t,e))&&(r=!1)}return r}function VV(e){let t=e.getPaginatedRowModel().flatRows,n=e.atoms.rowSelection?.get()??{},r=new Map,i=!1;for(let e=0;e<t.length;e++){let a=t[e];if(eH(a,n))!i&&XV(a,r)&&(i=!0);else if(XV(a,r))return!1}return i}function HV(e){return sR(e,`getSelectedRowIds`,zV).length>0}function Kwe(e){return e.getPaginatedRowModel().flatRows.filter(e=>KV(e)).some(e=>WV(e)||sR(e,`getIsSomeSelected`,GV))}function qwe(e){return t=>{LV(e,t.target.checked)}}function Jwe(e){return t=>{RV(e,t.target.checked)}}function UV(e,t,n){let r=WV(e);IV(e.table,i=>{t=t===void 0?!r:t;let a=Object.assign(UL(),i);return YV(a,e.id,t,(n?.selectChildren??!0)&&JV(e),e.table),!t&&n?.deselectParents&&ZV(a,e),a})}function WV(e){return eH(e,e.table.atoms.rowSelection?.get()??{})}function GV(e){return tH(e)===`some`}function Ywe(e){return tH(e)===`all`}function KV(e){let t=e.table.options;return typeof t.enableRowSelection==`function`?t.enableRowSelection(e):t.enableRowSelection??!0}function qV(e){let t=e.table.options;return typeof t.enableSubRowSelection==`function`?t.enableSubRowSelection(e):t.enableSubRowSelection??!0}function JV(e){let t=e.table.options;return typeof t.enableMultiRowSelection==`function`?t.enableMultiRowSelection(e):t.enableMultiRowSelection??!0}function Xwe(e,t){let n=KV(e);return r=>{if(!n)return;let i=r,a=e.table,o=i.target.checked,s=a._lastSelectedRowId;(!(a.options.enableRowRangeSelection!==!1&&s!==null&&JV(e)&&(a.options.isRowRangeSelectionEvent?.(r)??!1))||!Zwe(e,s,o,t))&&UV(e,o,t),a._lastSelectedRowId=e.id}}function Zwe(e,t,n,r){let i=r?.selectChildren??!0,a=e.table,o=a.getRowsInDisplayOrder(),s=a.getPrePaginatedRowModel().rowsById[t]??a.getCoreRowModel().rowsById[t];if(!s)return!1;let c=s.getDisplayIndex(),l=e.getDisplayIndex(),u=o[c],d=o[l];if(c<0||l<0||c>=o.length||l>=o.length||u?.id!==s.id||d?.id!==e.id||!JV(s)||!JV(e))return!1;let f=Math.min(c,l),p=Math.max(c,l);return IV(a,e=>{let t=Object.assign(UL(),e);for(let e=f;e<=p;e++){let s=o[e];!KV(s)||!JV(s)||(YV(t,s.id,n,i,a),!n&&r?.deselectParents&&ZV(t,s))}return t}),!0}function YV(e,t,n,r,i,a){let o=i.getRow(t,!0);n?(JV(o)||Object.keys(e).forEach(t=>delete e[t]),KV(o)&&(e[t]=!0)):(!a||KV(o))&&delete e[t],r&&o.subRows.length&&qV(o)&&o.subRows.forEach(t=>YV(e,t.id,n,r,i,a))}function XV(e,t){if(!KV(e))return!1;let n=e.table;if(n.options.enableSubRowSelection===!0)return!0;let r=e.parentId;if(r===void 0)return!0;let i=t.get(r);if(i!==void 0)return i;let a=n.getCoreRowModel().rowsById,o=[],s=!0,c=r;for(;c!==void 0;){let e=t.get(c);if(e!==void 0){s=e;break}o.push(c);let r=a[c]??n.getRow(c,!0);if(!qV(r)){s=!1;break}c=r.parentId}return o.forEach(e=>t.set(e,s)),s}function ZV(e,t){let n=t.table.getCoreRowModel().rowsById,r=t.parentId;for(;r!==void 0;)delete e[r],r=(n[r]??t.table.getRow(r,!0)).parentId}function QV(e,t,n,r){let i=[];for(let a=0;a<e.length;a++){let o=e[a],s=eH(o,t);if(s&&(n.push(o),r[o.id]=o),o.subRows.length){let e=QV(o.subRows,t,n,r);if(s){let t=Object.create(Object.getPrototypeOf(o));HL(t,o),t.subRows=e,i.push(t)}}else s&&i.push(o)}return i}function $V(e,t){let n=[],r=UL(),i=t.atoms.rowSelection?.get()??{};return{rows:QV(e.rows,i,n,r),flatRows:n,rowsById:r}}function eH(e,t){return!!(WL(t,e.id)&&t[e.id])}function tH(e){if(!e.subRows.length)return!1;let t=e.table.atoms.rowSelection?.get()??{},n=!1,r=!0,i=!1;for(let a=0;a<e.subRows.length;a++){let o=e.subRows[a];if(n&&!r)break;if(KV(o)&&(i=!0,eH(o,t)?n=!0:r=!1),o.subRows.length){let e=tH(o);e===`all`?(n=!0,i=!0):e===`some`?(n=!0,r=!1,i=!0):r=!1}}return i?r?`all`:n?`some`:!1:!1}var nH={initTableInstanceData:e=>{e._lastSelectedRowId=null},resetTableInstanceData:e=>{e._lastSelectedRowId=null},getInitialState:e=>({rowSelection:Bwe(),...e}),getDefaultTableOptions:e=>({onRowSelectionChange:GL(`rowSelection`,e),enableRowSelection:!0,enableMultiRowSelection:!0,enableRowRangeSelection:!0,enableSubRowSelection:!0,isRowRangeSelectionEvent:e=>{let t=e;return!!(t.shiftKey||t.nativeEvent?.shiftKey)}}),assignRowPrototype:(e,t)=>{oR(`rowSelectionFeature`,e,t,{row_toggleSelected:{fn:(e,t,n)=>UV(e,t,n)},row_getIsSelected:{fn:e=>WV(e)},row_getIsSomeSelected:{fn:e=>GV(e),memoDeps:e=>[e.subRows,e.table.atoms.rowSelection?.get(),e.table.options.enableRowSelection]},row_getIsAllSubRowsSelected:{fn:e=>Ywe(e),memoDeps:e=>[e.subRows,e.table.atoms.rowSelection?.get(),e.table.options.enableRowSelection]},row_getCanSelect:{fn:e=>KV(e)},row_getCanSelectSubRows:{fn:e=>qV(e)},row_getCanMultiSelect:{fn:e=>JV(e)},row_getToggleSelectedHandler:{fn:(e,t)=>Xwe(e,t)}})},constructTableAPIs:e=>{aR(`rowSelectionFeature`,e,{table_setRowSelection:{fn:t=>IV(e,t)},table_resetRowSelection:{fn:t=>Vwe(e,t)},table_toggleAllRowsSelected:{fn:(t,n)=>LV(e,t,n)},table_toggleAllPageRowsSelected:{fn:(t,n)=>RV(e,t,n)},table_getPreSelectedRowModel:{fn:()=>Hwe(e)},table_getSelectedRowModel:{fn:()=>Uwe(e),memoDeps:()=>[e.atoms.rowSelection?.get(),e.getCoreRowModel()]},table_getFilteredSelectedRowModel:{fn:()=>Wwe(e),memoDeps:()=>[e.atoms.rowSelection?.get(),e.getFilteredRowModel()]},table_getGroupedSelectedRowModel:{fn:()=>Gwe(e),memoDeps:()=>[e.atoms.rowSelection?.get(),e.getSortedRowModel()]},table_getSelectedRowIds:{fn:()=>zV(e),memoDeps:()=>[e.atoms.rowSelection?.get()]},table_getIsAllRowsSelected:{fn:()=>BV(e),memoDeps:()=>[e.atoms.rowSelection?.get(),e.getFilteredRowModel(),e.options.enableRowSelection,e.options.enableSubRowSelection]},table_getIsAllPageRowsSelected:{fn:()=>VV(e),memoDeps:()=>[e.atoms.rowSelection?.get(),e.getPaginatedRowModel(),e.options.enableRowSelection,e.options.enableSubRowSelection]},table_getIsSomeRowsSelected:{fn:()=>HV(e),memoDeps:()=>[e.atoms.rowSelection?.get()]},table_getIsSomePageRowsSelected:{fn:()=>Kwe(e),memoDeps:()=>[e.atoms.rowSelection?.get(),e.getPaginatedRowModel(),e.options.enableRowSelection]},table_getToggleAllRowsSelectedHandler:{fn:()=>qwe(e)},table_getToggleAllPageRowsSelectedHandler:{fn:()=>Jwe(e)}})}},rH={getInitialState(e){return{sorting:yB(),...e}},getDefaultColumnDef(){return{sortFn:`auto`,sortUndefined:1}},getDefaultTableOptions(e){return{autoResetSorting:!1,onSortingChange:GL(`sorting`,e),isMultiSortEvent:e=>e.shiftKey}},assignColumnPrototype(e,t){oR(`rowSortingFeature`,e,t,{column_getAutoSortFn:{fn:e=>CB(e)},column_getAutoSortDir:{fn:e=>wB(e)},column_getSortFn:{fn:e=>TB(e)},column_toggleSorting:{fn:(e,t,n)=>EB(e,t,n)},column_getFirstSortDir:{fn:e=>DB(e)},column_getNextSortingOrder:{fn:(e,t)=>OB(e,t)},column_getCanSort:{fn:e=>kB(e)},column_getCanMultiSort:{fn:e=>AB(e)},column_getIsSorted:{fn:e=>jB(e)},column_getSortIndex:{fn:e=>NCe(e)},column_clearSorting:{fn:e=>PCe(e)},column_getToggleSortingHandler:{fn:e=>FCe(e)}})},constructTableAPIs(e){aR(`rowSortingFeature`,e,{table_setSorting:{fn:t=>bB(e,t)},table_resetSorting:{fn:t=>xB(e,t)}})}};function iH(e,t,n){return n.options.filterFromLeafRows?Qwe(e,t,n):$we(e,t,n)}function Qwe(e,t,n){let r=[],i=UL(),a=n.options.maxLeafRowFilterDepth??100,o=(e,r=0)=>{let i=[];for(let s of e){let e=_z(n,s.id,s.original,s.index,s.depth,void 0,s.parentId);e.columnFilters=s.columnFilters,e.columnFiltersMeta=s.columnFiltersMeta,s.subRows.length&&r<a?(e.subRows=o(s.subRows,r+1),(e.subRows.length||t(e))&&i.push(e)):t(e)&&(e.subRows=s.subRows,i.push(e))}return i},s=o(e);return aH(s,r,i),{rows:s,flatRows:r,rowsById:i}}function $we(e,t,n){let r=[],i=UL(),a=n.options.maxLeafRowFilterDepth??100,o=(e,s=0)=>{let c=[];for(let l of e)if(t(l)){if(l.subRows.length&&s<a){let e=_z(n,l.id,l.original,l.index,l.depth,void 0,l.parentId),t=l;e.columnFilters=t.columnFilters,e.columnFiltersMeta=t.columnFiltersMeta,c.push(e),r.push(e),i[e.id]=e,e.subRows=o(l.subRows,s+1)}else c.push(l),r.push(l),i[l.id]=l,l.subRows.length&&s>=a&&aH(l.subRows,r,i)}return c};return{rows:o(e),flatRows:r,rowsById:i}}function aH(e,t,n){for(let r of e)t.push(r),n[r.id]=r,r.subRows.length&&aH(r.subRows,t,n)}function oH(){return(e,t)=>{let n=e;return rR({feature:`columnFacetingFeature`,table:n,fnName:`createFacetedRowModel`,memoDeps:()=>[n.getPreFilteredRowModel(),n.atoms.columnFilters?.get(),n.atoms.globalFilter?.get(),n.getFilteredRowModel()],fn:(e,r,i)=>eTe(n,t,e,r,i)})}}function eTe(e,t,n,r,i){let a=i!=null&&i!==``;if(!n.rows.length||!r?.length&&!a)return n;let o=[];if(r)for(let e=0;e<r.length;e++){let n=r[e].id;n!==t&&o.push(n)}return a&&t!==`__global__`&&o.push(`__global__`),o.length?iH(n.rows,e=>{for(let t=0;t<o.length;t++)if(e.columnFilters?.[o[t]]===!1)return!1;return!0},e):n}function sH(){return(e,t)=>{let n=e;return rR({feature:`columnFacetingFeature`,table:n,fnName:`table.getFacetedUniqueValues`,memoDeps:()=>{if(t===`__global__`)return[sR(n,`getGlobalFacetedRowModel`,BB).flatRows];let e=n.getColumn(t);return e?[sR(e,`getFacetedRowModel`,RB,n).flatRows]:[n.getPreFilteredRowModel().flatRows]},fn:e=>tTe(n,t,e)})}}function tTe(e,t,n){let r=t===`__global__`?e.getAllLeafColumns().filter(e=>AV(e)).map(e=>e.id):[t],i=new Map;for(let e=0;e<n.length;e++)for(let t=0;t<r.length;t++){let a=n[e].getUniqueValues(r[t]);if(a)for(let e=0;e<a.length;e++){let t=a[e],n=i.get(t);i.set(t,n===void 0?1:n+1)}}return i}function cH(){return e=>{let t=e;return rR({feature:`columnFilteringFeature`,table:t,fnName:`table.getFilteredRowModel`,memoDeps:()=>[t.getPreFilteredRowModel(),t.atoms.columnFilters?.get(),t.atoms.globalFilter?.get()],fn:()=>nTe(t),onAfterUpdate:tR(()=>nB(t))})}}function nTe(e){let t=e.getPreFilteredRowModel(),n=e.atoms.columnFilters?.get(),r=e.atoms.globalFilter?.get(),i=r!=null&&r!==``;if(!t.rows.length||!n?.length&&!i){let e=t.flatRows;for(let t=0;t<e.length;t++){let n=e[t];n.columnFilters=UL(),n.columnFiltersMeta=UL()}return t}let a=[],o=[];n?.forEach(t=>{let n=oz(e,t.id);if(!n)return;let r=UB(n);r&&a.push({id:t.id,filterFn:r,resolvedValue:r.resolveFilterValue?.(t.value)??t.value})});let s=n?.map(e=>e.id)??[],c=MV(e),l=e.getAllLeafColumns().filter(e=>AV(e));i&&c&&l.length&&(s.push(`__global__`),l.forEach(e=>{o.push({id:e.id,filterFn:c,resolvedValue:c.resolveFilterValue?.(r)??r})}));let u=t.flatRows;for(let e=0;e<u.length;e++){let t=u[e];if(t.columnFilters=UL(),t.columnFiltersMeta=UL(),a.length)for(let e=0;e<a.length;e++){let n=a[e],r=n.id;t.columnFilters[r]=n.filterFn(t,r,n.resolvedValue,e=>{t.columnFiltersMeta||=UL(),t.columnFiltersMeta[r]=e})}if(o.length){for(let e=0;e<o.length;e++){let n=o[e],r=n.id;if(n.filterFn(t,r,n.resolvedValue,e=>{t.columnFiltersMeta||=UL(),t.columnFiltersMeta[r]=e})){t.columnFilters.__global__=!0;break}}t.columnFilters.__global__!==!0&&(t.columnFilters.__global__=!1)}}return iH(t.rows,e=>{for(let t=0;t<s.length;t++)if(e.columnFilters[s[t]]===!1)return!1;return!0},e)}function rTe(){return e=>{let t=e;return rR({feature:`rowExpandingFeature`,table:t,fnName:`table.getExpandedRowModel`,memoDeps:()=>[t.atoms.expanded?.get(),t.getPreExpandedRowModel(),t.options.paginateExpandedRows,t.options.manualPagination],fn:()=>iTe(t)})}}function iTe(e){let t=e.getPreExpandedRowModel(),n=e.atoms.expanded?.get();return!t.rows.length||n!==!0&&!Object.keys(n??{}).length||!e.options.paginateExpandedRows&&!e.options.manualPagination?t:lH(t)}function lH(e){let t=[],n=e=>{t.push(e),e.subRows.length&&Jz(e)&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function uH(){return e=>{let t=e;return rR({feature:`rowPaginationFeature`,table:t,fnName:`table.getPaginatedRowModel`,memoDeps:()=>[t.getPrePaginatedRowModel(),t.atoms.pagination?.get(),t.options.paginateExpandedRows?void 0:t.atoms.expanded?.get()],fn:()=>aTe(t)})}}function aTe(e){let t=e.getPrePaginatedRowModel(),n=e.atoms.pagination?.get();if(!t.rows.length)return t;let{pageSize:r,pageIndex:i}=n??tB(),{rows:a,flatRows:o,rowsById:s}=t,c=a;if(r!==1/0||i!==0){let e=r*i,t=e+r;c=a.slice(e,t)}let l;l=e.options.paginateExpandedRows?{rows:c,flatRows:o,rowsById:s}:lH({rows:c,flatRows:o,rowsById:s}),l.flatRows=[];let u=new Set,d=e=>{u.has(e.id)||(u.add(e.id),l.flatRows.push(e),e.subRows.length&&e.subRows.forEach(d))};return l.rows.forEach(d),l}function dH(){return e=>{let t=e;return rR({feature:`rowSortingFeature`,table:t,fnName:`table.getSortedRowModel`,memoDeps:()=>[t.atoms.sorting?.get(),t.getPreSortedRowModel()],fn:()=>oTe(t),onAfterUpdate:tR(()=>nB(t))})}}function oTe(e){let t=e.getPreSortedRowModel(),n=e.atoms.sorting?.get();if(!t.rows.length||!n?.length)return t;let r=[],i=n.filter(t=>{let n=e.getColumn(t.id);return n?kB(n):!1});if(!i.length)return t;let a=[];for(let t=0;t<i.length;t++){let n=i[t],r=e.getColumn(n.id);r&&a.push({id:n.id,desc:n.desc,sortUndefined:r.columnDef.sortUndefined,invertSorting:r.columnDef.invertSorting,sortFn:TB(r)})}let o=(e,t)=>{for(let n=0;n<a.length;n++){let r=a[n],i=r.sortUndefined,o=r.desc,s=0;if(i){let n=e.getValue(r.id),a=t.getValue(r.id),o=n===void 0,c=a===void 0;if(o&&c)continue;if(o||c){if(i===`first`)return o?-1:1;if(i===`last`)return o?1:-1;s=o?i:-i}}if(s===0&&(s=r.sortFn(e,t,r.id)),s!==0)return o&&(s*=-1),r.invertSorting&&(s*=-1),s}return e.index-t.index},s=e=>{let t=e.slice();t.sort(o);let n=!1;for(let i=0;i<t.length;i++){let a=t[i];a!==e[i]&&(n=!0);let o=r.length;if(r.push(a),a.subRows.length){let e=s(a.subRows);if(e.changed){let s=Object.create(Object.getPrototypeOf(a));HL(s,a),s.subRows=e.rows,t[i]=s,r[o]=s,n=!0}}}return{rows:t,changed:n}};return{rows:s(t.rows).rows,flatRows:r,rowsById:t.rowsById}}var sTe=typeof window>`u`?m.useEffect:m.useLayoutEffect;function cTe(e,t){let[{table:n,rootSource:r}]=(0,m.useState)(()=>{let t=vwe({...e,features:{coreReactivityFeature:zL(),...e.features}});return t.Subscribe=(e=>FL({...e,source:e.source??t.store})),t.FlexRender=PL,{table:t,rootSource:RL(t.store,wF)}}),i=n;FB(i,t=>({...t,...e}),{syncExternalState:!1});let a=i.options.state,o=r.get(),s=hI(r,t,{compare:wF});return sTe(()=>{r.markCommitted(o),PB(i,a??null,wF)}),(0,m.useMemo)(()=>({...n,options:e,state:s}),[n,e,s])}var lTe=(0,m.createContext)(null),uTe=(0,m.createContext)(null),dTe=(0,m.createContext)(null);function fH({tableComponents:e,cellComponents:t,headerComponents:n,tableContext:r=lTe,cellContext:i=uTe,headerContext:a=dTe,...o}){let s=r,c=i,l=a;function u(){return gwe()}function d(){let e=(0,m.useContext)(s);if(!e)throw Error("`useTableContext` must be used within an `AppTable` component. Make sure your component is wrapped with `<table.AppTable>...</table.AppTable>`.");return e}function f(){let e=(0,m.useContext)(c);if(!e)throw Error("`useCellContext` must be used within an `AppCell` component. Make sure your component is wrapped with `<table.AppCell cell={cell}>...</table.AppCell>`.");return e}function p(){let e=(0,m.useContext)(l);if(!e)throw Error("`useHeaderContext` must be used within an `AppHeader` or `AppFooter` component.");return e}function h(){let e=f();return m.default.createElement(PL,{cell:e})}function g(){let e=p();return m.default.createElement(PL,{header:e})}function _(){let e=p();return m.default.createElement(PL,{footer:e})}function v(r,i){let a=cTe({...o,...r},i),u=(0,m.useRef)(a);u.current=a;let d=(0,m.useMemo)(()=>{function e(e){let{children:t,selector:n}=e,r=u.current;return m.default.createElement(s.Provider,{value:r},n?m.default.createElement(r.Subscribe,{selector:n},e=>t(e)):t)}return e},[]),f=(0,m.useMemo)(()=>{function e(e){let{cell:n,children:r,selector:i}=e,a=u.current,o=Object.assign(n,{FlexRender:h,...t});return m.default.createElement(c.Provider,{value:n},i?m.default.createElement(a.Subscribe,{selector:i},e=>r(o,e)):r(o))}return e},[]),p=(0,m.useMemo)(()=>{function e(e){let{header:t,children:r,selector:i}=e,a=u.current,o=Object.assign(t,{FlexRender:g,...n});return m.default.createElement(l.Provider,{value:t},i?m.default.createElement(a.Subscribe,{selector:i},e=>r(o,e)):r(o))}return e},[]),v=(0,m.useMemo)(()=>{function e(e){let{header:t,children:r,selector:i}=e,a=u.current,o=Object.assign(t,{FlexRender:_,...n});return m.default.createElement(l.Provider,{value:t},i?m.default.createElement(a.Subscribe,{selector:i},e=>r(o,e)):r(o))}return e},[]);return(0,m.useMemo)(()=>Object.assign(a,{AppTable:d,AppCell:f,AppHeader:p,AppFooter:v,...e}),[a,d,f,p,v])}return{appFeatures:o.features,createAppColumnHelper:u,useAppTable:v,useTableContext:d,useCellContext:f,useHeaderContext:p}}var fTe=Symbol.for(`preact-signals`);function pH(){if(yH>1)yH--;else{var e,t=!1;for((function(){var e=SH;for(SH=void 0;e!==void 0;){var t=e.S;if(t.v===e.v)for(var n=t.t;n!==void 0;n=n.x)n.i===e.i&&(n.i=t.i);e=e.o}})();vH!==void 0;){var n=vH;for(vH=void 0,bH++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&DH(n))try{n.c()}catch(n){t||=(e=n,!0)}n=r}}if(bH=0,yH--,t)throw e}}function mH(e){if(yH>0)return e();xH=++pTe,yH++;try{return e()}finally{pH()}}var hH,gH=void 0;function _H(e){var t=gH,n=hH;gH=void 0,hH=void 0;try{return e()}finally{gH=t,hH=n}}var vH=void 0,yH=0,bH=0,pTe=0,xH=0,SH=void 0,CH=0;function wH(e){if(gH!==void 0){var t=e.n;if(t===void 0||t.t!==gH)return t={i:0,S:e,p:gH.s,n:void 0,t:gH,e:void 0,x:void 0,r:t},gH.s!==void 0&&(gH.s.n=t),gH.s=t,e.n=t,32&gH.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=gH.s,t.n=void 0,gH.s.n=t,gH.s=t),t}}function TH(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}TH.prototype.brand=fTe,TH.prototype.h=function(){return!0},TH.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n===void 0?_H(function(){var e;(e=t.W)==null||e.call(t)}):n.e=e)},TH.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&_H(function(){var e;(e=t.Z)==null||e.call(t)}))}},TH.prototype.subscribe=function(e){var t=this;return FH(function(){var n=t.value;_H(function(){return e(n)})},{name:`sub`})},TH.prototype.valueOf=function(){return this.value},TH.prototype.toString=function(){return this.value+``},TH.prototype.toJSON=function(){return this.value},TH.prototype.peek=function(){var e=this;return _H(function(){return e.value})},Object.defineProperty(TH.prototype,"value",{get:function(){var e=wH(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(bH>100)throw Error(`Cycle detected`);(function(e){yH!==0&&bH===0&&e.l!==xH&&(e.l=xH,SH={S:e,v:e.v,i:e.i,o:SH})})(this),this.v=e,this.i++,CH++,yH++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{pH()}}}});function EH(e,t){return new TH(e,t)}function DH(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function OH(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function kH(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function AH(e,t){TH.call(this,void 0,t),this.x=e,this.s=void 0,this.g=CH-1,this.f=4}AH.prototype=new TH,AH.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===CH))return!0;if(this.g=CH,this.f|=1,this.i>0&&!DH(this))return this.f&=-2,!0;var e=gH;try{OH(this),gH=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return gH=e,kH(this),this.f&=-2,!0},AH.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}TH.prototype.S.call(this,e)},AH.prototype.U=function(e){if(this.t!==void 0&&(TH.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}},AH.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}},Object.defineProperty(AH.prototype,"value",{get:function(){if(1&this.f)throw Error(`Cycle detected`);var e=wH(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function jH(e,t){return new AH(e,t)}function MH(e){var t=e.m;if(e.m=void 0,typeof t==`function`){yH++;var n=gH;gH=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,NH(e),t}finally{gH=n,pH()}}}function NH(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,MH(e)}function mTe(e){if(gH!==this)throw Error(`Out-of-order effect`);kH(this),gH=e,this.f&=-2,8&this.f&&NH(this),pH()}function PH(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name,hH&&hH.push(this)}PH.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t==`function`&&(this.m=t)}finally{e()}},PH.prototype.S=function(){if(1&this.f)throw Error(`Cycle detected`);this.f|=1,this.f&=-9,MH(this),OH(this),yH++;var e=gH;return gH=this,mTe.bind(this,e)},PH.prototype.N=function(){2&this.f||(this.f|=2,this.u=vH,vH=this)},PH.prototype.d=function(){this.f|=8,1&this.f||NH(this)},PH.prototype.dispose=function(){this.d()};function FH(e,t){var n=new PH(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}var hTe=Object.create,IH=Object.defineProperty,gTe=Object.defineProperties,_Te=Object.getOwnPropertyDescriptor,vTe=Object.getOwnPropertyDescriptors,LH=Object.getOwnPropertySymbols,yTe=Object.prototype.hasOwnProperty,bTe=Object.prototype.propertyIsEnumerable,RH=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),zH=e=>{throw TypeError(e)},BH=(e,t,n)=>t in e?IH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xTe=(e,t)=>{for(var n in t||={})yTe.call(t,n)&&BH(e,n,t[n]);if(LH)for(var n of LH(t))bTe.call(t,n)&&BH(e,n,t[n]);return e},STe=(e,t)=>gTe(e,vTe(t)),VH=(e,t)=>IH(e,`name`,{value:t,configurable:!0}),CTe=e=>[,,,hTe(e?.[RH(`metadata`)]??null)],HH=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],UH=e=>e!==void 0&&typeof e!=`function`?zH(`Function expected`):e,wTe=(e,t,n,r,i)=>({kind:HH[e],name:t,metadata:r,addInitializer:e=>n._?zH(`Already initialized`):i.push(UH(e||null))}),WH=(e,t)=>BH(t,RH(`metadata`),e[3]),GH=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},KH=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=HH[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&_Te(d<4?i:{get[n](){return JH(this,a)},set[n](e){return XH(this,a,e)}},n));d?p&&d<4&&VH(a,(d>2?`set `:d>1?`get `:``)+n):VH(i,n);for(var y=r.length-1;y>=0;y--)l=wTe(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>TTe(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?JH:ETe)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>XH(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?UH(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?zH(`Object expected`):(UH(o=s.get)&&(v.get=o),UH(o=s.set)&&(v.set=o),UH(o=s.init)&&g.unshift(o));return d||WH(e,i),v&&IH(i,n,v),p?d^4?a:v:i},qH=(e,t,n)=>t.has(e)||zH(`Cannot `+n),TTe=(e,t)=>Object(t)===t?e.has(t):zH(`Cannot use the "in" operator on this value`),JH=(e,t,n)=>(qH(e,t,`read from private field`),n?n.call(e):t.get(e)),YH=(e,t,n)=>t.has(e)?zH(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),XH=(e,t,n,r)=>(qH(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),ETe=(e,t,n)=>(qH(e,t,`access private method`),n);function ZH(e,t){if(t){let n;return jH(()=>{let r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return jH(e)}function QH(e,t){if(Object.is(e,t))return!0;if(e===null||t===null)return!1;if(typeof e==`function`&&typeof t==`function`)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e))return!Array.isArray(t)||e.length!==t.length?!1:!e.some((e,n)=>!QH(e,t[n]));if(typeof e==`object`&&typeof t==`object`){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&!n.some(n=>!QH(e[n],t[n]))}return!1}function $H({get:e},t){return{init(e){return EH(e)},get(){return e.call(this).value},set(t){let n=e.call(this);n.peek()!==t&&(n.value=t)}}}function eU(e,t){let n=new WeakMap;return function(){let t=n.get(this);return t||(t=ZH(e.bind(this)),n.set(this,t)),t.value}}function tU(e=!0){return function(t,n){n.addInitializer(function(){let t=n.kind===`field`||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,STe(xTe({},r),{enumerable:e}))})}}function nU(...e){let t=e.map(e=>FH(e));return()=>t.forEach(e=>e())}var rU,iU,aU,oU,sU,DTe=[$H],cU,lU,uU,dU,fU,pU,mU,hU,gU,_U,vU,yU,bU,xU;sU=[$H],oU=[$H],aU=[tU()],iU=[tU()],rU=[tU()];var SU=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,GH(cU,5,this),YH(this,pU),YH(this,lU,GH(cU,8,this)),GH(cU,11,this),YH(this,mU,GH(cU,12,this)),GH(cU,15,this),YH(this,vU,GH(cU,16,this)),GH(cU,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return JH(this,pU,bU)}get initial(){return JH(this,pU,dU)}get previous(){return JH(this,pU,gU)}set current(e){let t=_H(()=>JH(this,pU,bU));e&&t&&this.equals(t,e)||mH(()=>{JH(this,pU,dU)||XH(this,pU,e,fU),XH(this,pU,t,_U),XH(this,pU,e,xU)})}reset(e=this.defaultValue){mH(()=>{XH(this,pU,void 0,_U),XH(this,pU,e,fU),XH(this,pU,e,xU)})}};cU=CTe(null),lU=new WeakMap,pU=new WeakSet,mU=new WeakMap,vU=new WeakMap,uU=KH(cU,20,`#initial`,DTe,pU,lU),dU=uU.get,fU=uU.set,hU=KH(cU,20,`#previous`,sU,pU,mU),gU=hU.get,_U=hU.set,yU=KH(cU,20,`#current`,oU,pU,vU),bU=yU.get,xU=yU.set,KH(cU,2,`current`,aU,SU),KH(cU,2,`initial`,iU,SU),KH(cU,2,`previous`,rU,SU),WH(cU,SU);function CU(e){return _H(()=>{let t={};for(let n in e)t[n]=e[n];return t})}var OTe=Object.create,wU=Object.defineProperty,kTe=Object.getOwnPropertyDescriptor,TU=Object.getOwnPropertySymbols,ATe=Object.prototype.hasOwnProperty,jTe=Object.prototype.propertyIsEnumerable,EU=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),DU=e=>{throw TypeError(e)},OU=Math.pow,kU=(e,t,n)=>t in e?wU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,MTe=(e,t)=>{for(var n in t||={})ATe.call(t,n)&&kU(e,n,t[n]);if(TU)for(var n of TU(t))jTe.call(t,n)&&kU(e,n,t[n]);return e},AU=(e,t)=>wU(e,`name`,{value:t,configurable:!0}),NTe=e=>[,,,OTe(e?.[EU(`metadata`)]??null)],jU=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],MU=e=>e!==void 0&&typeof e!=`function`?DU(`Function expected`):e,PTe=(e,t,n,r,i)=>({kind:jU[e],name:t,metadata:r,addInitializer:e=>n._?DU(`Already initialized`):i.push(MU(e||null))}),NU=(e,t)=>kU(t,EU(`metadata`),e[3]),FTe=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},PU=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=jU[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&kTe(d<4?i:{get[n](){return IU(this,a)},set[n](e){return LU(this,a,e)}},n));d?p&&d<4&&AU(a,(d>2?`set `:d>1?`get `:``)+n):AU(i,n);for(var y=r.length-1;y>=0;y--)l=PTe(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>ITe(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?IU:RU)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>LU(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?MU(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?DU(`Object expected`):(MU(o=s.get)&&(v.get=o),MU(o=s.set)&&(v.set=o),MU(o=s.init)&&g.unshift(o));return d||NU(e,i),v&&wU(i,n,v),p?d^4?a:v:i},FU=(e,t,n)=>t.has(e)||DU(`Cannot `+n),ITe=(e,t)=>Object(t)===t?e.has(t):DU(`Cannot use the "in" operator on this value`),IU=(e,t,n)=>(FU(e,t,`read from private field`),n?n.call(e):t.get(e)),LTe=(e,t,n)=>t.has(e)?DU(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),LU=(e,t,n,r)=>(FU(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),RU=(e,t,n)=>(FU(e,t,`access private method`),n),zU=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},BU=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){let{top:r,left:i,width:a,height:o,scale:s}=this,c=new e(i+t,r+n,a,o);return c.scale=MTe({},s),c}get boundingRectangle(){let{width:e,height:t,left:n,top:r,right:i,bottom:a}=this;return{width:e,height:t,left:n,top:r,right:i,bottom:a}}get center(){let{left:e,top:t,right:n,bottom:r}=this;return new zU((e+n)/2,(t+r)/2)}get area(){let{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;let{left:n,top:r,width:i,height:a}=this;return n===t.left&&r===t.top&&i===t.width&&a===t.height}containsPoint(e){let{top:t,left:n,bottom:r,right:i}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=i}intersectionArea(t){return t instanceof e?RTe(this,t):0}intersectionRatio(e){let{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){let{top:e,height:t}=this;return e+t}get right(){let{left:e,width:t}=this;return e+t}get aspectRatio(){let{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:i}){return new e(n,t,r,i)}static delta(e,t,n={x:`center`,y:`center`}){let r=(e,t)=>{let r=n[t],i=t===`x`?e.left:e.top,a=t===`x`?e.width:e.height;return r==`start`?i:r==`end`?i+a:i+a/2};return zU.delta({x:r(e,`x`),y:r(e,`y`)},{x:r(t,`x`),y:r(t,`y`)})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};function RTe(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;return r<i&&n<a?o*s:0}var VU,HU,UU,WU,GU,KU=class extends (UU=SU,HU=[eU],VU=[eU],UU){constructor(e){let t=zU.from(e);super(t,(e,t)=>zU.equals(e,t)),FTe(GU,5,this),LTe(this,WU,0),this.velocity={x:0,y:0}}get delta(){return zU.delta(this.current,this.initial)}get direction(){let{current:e,previous:t}=this;if(!t)return null;let n={x:e.x-t.x,y:e.y-t.y};return!n.x&&!n.y?null:Math.abs(n.x)>Math.abs(n.y)?n.x>0?`right`:`left`:n.y>0?`down`:`up`}get current(){return super.current}set current(e){let{current:t}=this,n=zU.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),a=i-IU(this,WU),o=e=>Math.round(e/a*100);mH(()=>{LU(this,WU,i),this.velocity={x:o(r.x),y:o(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(zU.from(e)),this.velocity={x:0,y:0}}};GU=NTe(UU),WU=new WeakMap,PU(GU,2,`delta`,HU,KU),PU(GU,2,`direction`,VU,KU),NU(GU,KU);function qU({x:e,y:t},n){let r=Math.abs(e),i=Math.abs(t);return typeof n==`number`?Math.sqrt(OU(r,2)+OU(i,2))>n:`x`in n&&`y`in n?r>n.x&&i>n.y:`x`in n?r>n.x:`y`in n&&i>n.y}var JU=(e=>(e.Horizontal=`x`,e.Vertical=`y`,e))(JU||{}),YU=Object.values(JU),zTe=Object.create,XU=Object.defineProperty,BTe=Object.defineProperties,VTe=Object.getOwnPropertyDescriptor,HTe=Object.getOwnPropertyDescriptors,ZU=Object.getOwnPropertySymbols,QU=Object.prototype.hasOwnProperty,$U=Object.prototype.propertyIsEnumerable,eW=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),tW=e=>{throw TypeError(e)},nW=(e,t,n)=>t in e?XU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rW=(e,t)=>{for(var n in t||={})QU.call(t,n)&&nW(e,n,t[n]);if(ZU)for(var n of ZU(t))$U.call(t,n)&&nW(e,n,t[n]);return e},iW=(e,t)=>BTe(e,HTe(t)),aW=(e,t)=>XU(e,`name`,{value:t,configurable:!0}),oW=(e,t)=>{var n={};for(var r in e)QU.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ZU)for(var r of ZU(e))t.indexOf(r)<0&&$U.call(e,r)&&(n[r]=e[r]);return n},sW=e=>[,,,zTe(e?.[eW(`metadata`)]??null)],cW=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],lW=e=>e!==void 0&&typeof e!=`function`?tW(`Function expected`):e,UTe=(e,t,n,r,i)=>({kind:cW[e],name:t,metadata:r,addInitializer:e=>n._?tW(`Already initialized`):i.push(lW(e||null))}),uW=(e,t)=>nW(t,eW(`metadata`),e[3]),dW=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},fW=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=cW[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&VTe(d<4?i:{get[n](){return mW(this,a)},set[n](e){return gW(this,a,e)}},n));d?p&&d<4&&aW(a,(d>2?`set `:d>1?`get `:``)+n):aW(i,n);for(var y=r.length-1;y>=0;y--)l=UTe(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>WTe(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?mW:_W)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>gW(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?lW(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?tW(`Object expected`):(lW(o=s.get)&&(v.get=o),lW(o=s.set)&&(v.set=o),lW(o=s.init)&&g.unshift(o));return d||uW(e,i),v&&XU(i,n,v),p?d^4?a:v:i},pW=(e,t,n)=>t.has(e)||tW(`Cannot `+n),WTe=(e,t)=>Object(t)===t?e.has(t):tW(`Cannot use the "in" operator on this value`),mW=(e,t,n)=>(pW(e,t,`read from private field`),n?n.call(e):t.get(e)),hW=(e,t,n)=>t.has(e)?tW(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),gW=(e,t,n,r)=>(pW(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),_W=(e,t,n)=>(pW(e,t,`access private method`),n);function vW(e,t){return{plugin:e,options:t}}function yW(e){return t=>vW(e,t)}function bW(e){return typeof e==`function`?{plugin:e,options:void 0}:e}var GTe=[$H],xW,SW,CW,wW=class{constructor(e,t){this.manager=e,this.options=t,hW(this,SW,dW(xW,8,this,!1)),dW(xW,11,this),hW(this,CW,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return _H(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){let t=FH(e.bind(this));return mW(this,CW).add(t),t}destroy(){mW(this,CW).forEach(e=>e())}static configure(e){return vW(this,e)}};xW=sW(null),SW=new WeakMap,CW=new WeakMap,fW(xW,4,`disabled`,GTe,wW,SW),uW(xW,wW);var TW=class extends wW{},EW,DW=class{constructor(e){this.manager=e,this.instances=new Map,hW(this,EW,[])}get values(){return Array.from(this.instances.values())}set values(e){let t=e.map(bW).reduce((e,t)=>{let n=e.find(({plugin:e})=>e===t.plugin);return n?(n.options=t.options,e):[...e,t]},[]),n=t.map(({plugin:e})=>e);for(let e of mW(this,EW))if(!n.includes(e)){if(e.prototype instanceof TW)continue;this.unregister(e)}for(let{plugin:e,options:n}of t)this.register(e,n);gW(this,EW,n)}get(e){return this.instances.get(e)}register(e,t){let n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;let r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){let t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(let e of this.instances.values())e.destroy();this.instances.clear()}};EW=new WeakMap;function KTe(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}var OW=[],kW,AW,qTe=class extends wW{constructor(e){super(e),hW(this,kW),hW(this,AW),this.computeCollisions=this.computeCollisions.bind(this),gW(this,AW,EH(OW)),this.destroy=nU(()=>{let e=this.computeCollisions(),t=_H(()=>this.manager.dragOperation.position.current);if(e!==OW){let e=mW(this,kW);if(gW(this,kW,t),e&&t.x==e.x&&t.y==e.y)return}else gW(this,kW,void 0);mW(this,AW).value=e},()=>{let{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){_H(()=>{e?mW(this,AW).value=this.computeCollisions():gW(this,kW,void 0)})}computeCollisions(e,t){let{registry:n,dragOperation:r}=this.manager,{source:i,shape:a,status:o}=r;if(!o.initialized||!a)return OW;let s=[],c=[];for(let a of e??n.droppables){if(a.disabled||i&&!a.accepts(i))continue;let e=t??a.collisionDetector;if(!e)continue;c.push(a),a.shape;let n=_H(()=>e({droppable:a,dragOperation:r}));n&&(a.collisionPriority!=null&&(n.priority=a.collisionPriority),s.push(n))}return c.length===0?OW:(s.sort(KTe),s)}get collisions(){return mW(this,AW).value}};kW=new WeakMap,AW=new WeakMap;var jW,MW,JTe=[$H],NW,PW,FW,IW,LW,RW,zW;MW=[$H],jW=[$H];var BW=class e{constructor(e,t){hW(this,IW,dW(FW,8,this)),dW(FW,11,this),hW(this,LW),hW(this,RW,dW(FW,12,this)),dW(FW,15,this),hW(this,zW,dW(FW,16,this)),dW(FW,19,this);let{effects:n,id:r,data:i={},disabled:a=!1,register:o=!0}=e,s=r;gW(this,LW,EH(r)),this.manager=t,this.data=i,this.disabled=a,this.effects=()=>[()=>{let{id:e,manager:t}=this;if(e!==s)return s=e,t?.registry.register(this),()=>t?.registry.unregister(this)},...n?.()??[]],this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&o&&queueMicrotask(this.register)}get id(){let t=mW(this,LW).value;return e.pendingIdChanges?.get(this)??t}set id(t){t!==(e.pendingIdChanges?.get(this)??mW(this,LW).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return _W(t=e,NW,PW).call(t)})),e.pendingIdChanges.set(this,t))}register(){return this.manager?.registry.register(this)}unregister(){var e;(e=this.manager)==null||e.registry.unregister(this)}destroy(){var e;(e=this.manager)==null||e.registry.unregister(this)}};FW=sW(null),NW=new WeakSet,PW=function(){let e=BW.pendingIdChanges;BW.pendingIdChanges=null,e&&mH(()=>{for(let[t,n]of e)mW(t,LW).value=n})},IW=new WeakMap,LW=new WeakMap,RW=new WeakMap,zW=new WeakMap,fW(FW,4,`manager`,JTe,BW,IW),fW(FW,4,`data`,MW,BW,RW),fW(FW,4,`disabled`,jW,BW,zW),hW(BW,NW),uW(FW,BW),BW.pendingIdChanges=null;var VW=BW,HW=class{constructor(){this.map=EH(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{let n=this.map.peek(),r=n.get(e),i=()=>this.unregister(e,t);if(r===t)return i;r&&r.id===e&&(this.cleanupFunctions.get(r)?.(),this.cleanupFunctions.delete(r));let a=new Map(n);for(let[r,i]of n)if(i===t&&r!==e){a.delete(r);break}a.set(e,t),this.map.value=a;let o=nU(...t.effects());return this.cleanupFunctions.set(t,o),i},this.unregister=(e,t)=>{let n=this.map.peek();if(n.get(e)!==t)return;this.cleanupFunctions.get(t)?.(),this.cleanupFunctions.delete(t);let r=new Map(n);r.delete(e),this.map.value=r}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(let e of this)this.cleanupFunctions.get(e)?.(),e.destroy();this.map.value=new Map}},UW,WW,GW,KW,qW,JW,YW,XW,ZW,QW,$W,eG=class extends (YW=VW,JW=[$H],qW=[$H],KW=[$H],GW=[eU],WW=[eU],UW=[eU],YW){constructor(e,t){var n=e,{modifiers:r,type:i,sensors:a,plugins:o,effects:s}=n,c=oW(n,[`modifiers`,`type`,`sensors`,`plugins`,`effects`]);super(iW(rW({},c),{effects:()=>[...s?.()??[],()=>{let{manager:e,plugins:t}=this;if(!(!e||!t))for(let n of t){let{plugin:t}=bW(n);e.registry.plugins.register(t)}}]}),t),dW(XW,5,this),hW(this,ZW,dW(XW,8,this)),dW(XW,11,this),hW(this,QW,dW(XW,12,this)),dW(XW,15,this),hW(this,$W,dW(XW,16,this,this.isDragSource?`dragging`:`idle`)),dW(XW,19,this),this.type=i,this.sensors=a,this.modifiers=r,this.alignment=c.alignment,this.plugins=o}pluginConfig(e){if(this.plugins)for(let t of this.plugins){let n=bW(t);if(n.plugin===e)return n.options}}get isDropping(){return this.status===`dropping`&&this.isDragSource}get isDragging(){return this.status===`dragging`&&this.isDragSource}get isDragSource(){return this.manager?.dragOperation.source?.id===this.id}};XW=sW(YW),ZW=new WeakMap,QW=new WeakMap,$W=new WeakMap,fW(XW,4,`type`,JW,eG,ZW),fW(XW,4,`modifiers`,qW,eG,QW),fW(XW,4,`status`,KW,eG,$W),fW(XW,2,`isDropping`,GW,eG),fW(XW,2,`isDragging`,WW,eG),fW(XW,2,`isDragSource`,UW,eG),uW(XW,eG);var tG,nG,rG,iG,aG,oG,sG,cG,lG,uG,dG,fG,pG,mG=class extends (sG=VW,oG=[$H],aG=[$H],iG=[$H],rG=[$H],nG=[$H],tG=[eU],sG){constructor(e,t){var n=e,{accept:r,collisionDetector:i,collisionPriority:a,type:o}=n,s=oW(n,[`accept`,`collisionDetector`,`collisionPriority`,`type`]);super(s,t),dW(cG,5,this),hW(this,lG,dW(cG,8,this)),dW(cG,11,this),hW(this,uG,dW(cG,12,this)),dW(cG,15,this),hW(this,dG,dW(cG,16,this)),dW(cG,19,this),hW(this,fG,dW(cG,20,this)),dW(cG,23,this),hW(this,pG,dW(cG,24,this)),dW(cG,27,this),this.accept=r,this.collisionDetector=i,this.collisionPriority=a,this.type=o}accepts(e){let{accept:t}=this;return t?typeof t==`function`?t(e):e.type?Array.isArray(t)?t.includes(e.type):e.type===t:!1:!0}get isDropTarget(){return this.manager?.dragOperation.target?.id===this.id}};cG=sW(sG),lG=new WeakMap,uG=new WeakMap,dG=new WeakMap,fG=new WeakMap,pG=new WeakMap,fW(cG,4,`accept`,oG,mG,lG),fW(cG,4,`type`,aG,mG,uG),fW(cG,4,`collisionDetector`,iG,mG,dG),fW(cG,4,`collisionPriority`,rG,mG,fG),fW(cG,4,`shape`,nG,mG,pG),fW(cG,2,`isDropTarget`,tG,mG),uW(cG,mG);var YTe=class{constructor(){this.registry=new Map}addEventListener(e,t){let{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){let{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){let{registry:n}=this,r=n.get(e);if(r)for(let e of r)e(...t)}},XTe=class extends YTe{constructor(e){super(),this.manager=e}dispatch(e,t){let n=[t,this.manager];super.dispatch(e,...n)}};function hG(e,t=!0){let n=!1;return iW(rW({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var ZTe=class extends TW{constructor(e){super(e);let t=(e,t)=>e.map(({id:e})=>e).join(``)===t.map(({id:e})=>e).join(``),n=[];this.destroy=nU(()=>{let{dragOperation:t,collisionObserver:r}=e;t.status.initializing&&(n=[],r.enable())},()=>{let{collisionObserver:r,monitor:i}=e,{collisions:a}=r;if(r.isDisabled()||VW.pendingIdChanges)return;let o=hG({collisions:a});if(i.dispatch(`collision`,o),o.defaultPrevented||t(a,n))return;n=a;let[s]=a;_H(()=>{s?.id!==e.dragOperation.target?.id&&(r.disable(),e.actions.setDropTarget(s?.id).then(()=>{r.enable()}))})})}},gG=(e=>(e[e.Lowest=0]=`Lowest`,e[e.Low=1]=`Low`,e[e.Normal=2]=`Normal`,e[e.High=3]=`High`,e[e.Highest=4]=`Highest`,e))(gG||{}),_G=(e=>(e[e.Collision=0]=`Collision`,e[e.ShapeIntersection=1]=`ShapeIntersection`,e[e.PointerIntersection=2]=`PointerIntersection`,e))(_G||{}),vG,yG,bG,xG,SG,CG,QTe=[$H],wG,TG;CG=[eU],SG=[eU],xG=[eU],bG=[eU],yG=[eU],vG=[eU];var EG=class{constructor(){dW(wG,5,this),hW(this,TG,dW(wG,8,this,`idle`)),dW(wG,11,this)}get current(){return this.value}get idle(){return this.value===`idle`}get initializing(){return this.value===`initializing`}get initialized(){let{value:e}=this;return e!==`idle`&&e!==`initialization-pending`}get dragging(){return this.value===`dragging`}get dropped(){return this.value===`dropped`}set(e){this.value=e}};wG=sW(null),TG=new WeakMap,fW(wG,4,`value`,QTe,EG,TG),fW(wG,2,`current`,CG,EG),fW(wG,2,`idle`,SG,EG),fW(wG,2,`initializing`,xG,EG),fW(wG,2,`initialized`,bG,EG),fW(wG,2,`dragging`,yG,EG),fW(wG,2,`dropped`,vG,EG),uW(wG,EG);var $Te=class{constructor(e){this.manager=e}setDragSource(e){let{dragOperation:t}=this.manager;t.sourceIdentifier=typeof e==`string`||typeof e==`number`?e:e.id}setDropTarget(e){return _H(()=>{let{dragOperation:t}=this.manager,n=e??null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;let r=hG({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch(`dragover`,r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return _H(()=>{let{dragOperation:t}=this.manager;if(e.source!=null&&this.setDragSource(e.source),!t.source)throw Error(`Cannot start a drag operation without a drag source`);if(!t.status.idle)throw Error(`Cannot start a drag operation while another is active`);let n=new AbortController,{event:r,coordinates:i}=e;mH(()=>{t.status.set(`initialization-pending`),t.shape=null,t.canceled=!1,t.activatorEvent=r??null,t.position.reset(i)});let a=hG({operation:t.snapshot()});return this.manager.monitor.dispatch(`beforedragstart`,a),a.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set(`initializing`),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;let{status:e}=t;e.current===`initializing`&&mH(()=>{t.status.set(`dragging`),this.manager.monitor.dispatch(`dragstart`,{nativeEvent:r,operation:t.snapshot(),cancelable:!1})})}),n)})}move(e){return _H(()=>{let{dragOperation:t}=this.manager,{status:n,controller:r}=t;if(!n.dragging||!r||r.signal.aborted)return;let i=hG({nativeEvent:e.event,operation:t.snapshot(),by:e.by,to:e.to},e.cancelable??!0);(e.propagate??!0)&&this.manager.monitor.dispatch(`dragmove`,i),queueMicrotask(()=>{if(i.defaultPrevented)return;let n=e.to??{x:t.position.current.x+(e.by?.x??0),y:t.position.current.y+(e.by?.y??0)};t.position.current=n})})}stop(e={}){return _H(()=>{let{dragOperation:t}=this.manager,{controller:n}=t;if(!n||n.signal.aborted)return;let r,i=()=>{let e={resume:()=>{},abort:()=>{}};return r=new Promise((t,n)=>{e.resume=t,e.abort=n}),e};n.abort();let a=()=>{this.manager.renderer.rendering.then(()=>{t.status.set(`dropped`);let e=_H(()=>t.source?.status===`dropping`),r=()=>{t.controller===n&&(t.controller=void 0),t.reset()};if(e){let{source:e}=t,n=FH(()=>{e?.status===`idle`&&(n(),r())})}else this.manager.renderer.rendering.then(r)})};t.canceled=e.canceled??!1,this.manager.monitor.dispatch(`dragend`,{nativeEvent:e.event,operation:t.snapshot(),canceled:e.canceled??!1,suspend:i}),r?r.then(a).catch(()=>t.reset()):a()})}},DG=class extends wW{constructor(e,t){super(e,t),this.manager=e,this.options=t}},eEe=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(let t of e??[])t.controller=this}onEvent(e){if(!this.activated){if(this.constraints?.length)for(let t of this.constraints)t.onEvent(e);else this.activate(e)}}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},OG,kG=class{constructor(e){this.options=e,hW(this,OG)}set controller(e){gW(this,OG,e),e.signal.addEventListener(`abort`,()=>this.abort())}activate(e){var t;(t=mW(this,OG))==null||t.activate(e)}};OG=new WeakMap;var AG=class extends wW{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},tEe=class{constructor(e){this.draggables=new HW,this.droppables=new HW,this.plugins=new DW(e),this.sensors=new DW(e),this.modifiers=new DW(e)}register(e,t){if(e instanceof eG)return this.draggables.register(e.id,e);if(e instanceof mG)return this.droppables.register(e.id,e);if(e.prototype instanceof AG)return this.modifiers.register(e,t);if(e.prototype instanceof DG)return this.sensors.register(e,t);if(e.prototype instanceof wW)return this.plugins.register(e,t);throw Error(`Invalid instance type`)}unregister(e){if(e instanceof VW)return e instanceof eG?this.draggables.unregister(e.id,e):e instanceof mG?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof AG)return this.modifiers.unregister(e);if(e.prototype instanceof DG)return this.sensors.unregister(e);if(e.prototype instanceof wW)return this.plugins.unregister(e);throw Error(`Invalid instance type`)}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}},jG,MG,NG,PG,FG,IG,LG,RG,nEe=[eU],zG,BG,VG,HG,UG,WG,GG,KG,qG,JG;RG=[$H],LG=[$H],IG=[$H],FG=[$H],PG=[$H],NG=[eU],MG=[eU],jG=[eU];var YG=class{constructor(e){dW(HG,5,this),hW(this,zG),hW(this,BG),hW(this,VG,new SU(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new EG,hW(this,UG,dW(HG,8,this,!1)),dW(HG,11,this),hW(this,WG,dW(HG,12,this,null)),dW(HG,15,this),hW(this,GG,dW(HG,16,this,null)),dW(HG,19,this),hW(this,KG,dW(HG,20,this,null)),dW(HG,23,this),hW(this,qG,dW(HG,24,this,[])),dW(HG,27,this),this.position=new KU({x:0,y:0}),hW(this,JG,{x:0,y:0}),gW(this,zG,e)}get shape(){let{current:e,initial:t,previous:n}=mW(this,VG);return!e||!t?null:{current:e,initial:t,previous:n}}set shape(e){e?mW(this,VG).current=e:mW(this,VG).reset()}get source(){let e=this.sourceIdentifier;if(e==null)return null;let t=mW(this,zG).registry.draggables.get(e);return t&&gW(this,BG,t),t??mW(this,BG)??null}get target(){let e=this.targetIdentifier;return e==null?null:mW(this,zG).registry.droppables.get(e)??null}get transform(){let{x:e,y:t}=this.position.delta,n={x:e,y:t};for(let e of this.modifiers)n=e.apply(iW(rW({},this.snapshot()),{transform:n}));return gW(this,JG,n),n}snapshot(){return _H(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:mW(this,JG),shape:this.shape?CU(this.shape):null,position:CU(this.position),status:CU(this.status),canceled:this.canceled}))}reset(){mH(()=>{this.status.set(`idle`),this.sourceIdentifier=null,this.targetIdentifier=null,mW(this,VG).reset(),this.position.reset({x:0,y:0}),gW(this,JG,{x:0,y:0}),this.modifiers=[]})}};HG=sW(null),zG=new WeakMap,BG=new WeakMap,VG=new WeakMap,UG=new WeakMap,WG=new WeakMap,GG=new WeakMap,KG=new WeakMap,qG=new WeakMap,JG=new WeakMap,fW(HG,2,`shape`,nEe,YG),fW(HG,4,`canceled`,RG,YG,UG),fW(HG,4,`activatorEvent`,LG,YG,WG),fW(HG,4,`sourceIdentifier`,IG,YG,GG),fW(HG,4,`targetIdentifier`,FG,YG,KG),fW(HG,4,`modifiers`,PG,YG,qG),fW(HG,2,`source`,NG,YG),fW(HG,2,`target`,MG,YG),fW(HG,2,`transform`,jG,YG),uW(HG,YG);var rEe={get rendering(){return Promise.resolve()}};function XG(e,t){return typeof e==`function`?e(t):e??t}var iEe=class{constructor(e){this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};let t=e??{},n=XG(t.plugins,[]),r=XG(t.sensors,[]),i=XG(t.modifiers,[]),a=t.renderer??rEe,o=new XTe(this),s=new tEe(this);this.registry=s,this.monitor=o,this.renderer=a,this.actions=new $Te(this),this.dragOperation=new YG(this),this.collisionObserver=new qTe(this),this.plugins=[ZTe,...n],this.modifiers=i,this.sensors=r;let{destroy:c}=this,l=nU(()=>{let e=_H(()=>this.dragOperation.modifiers),t=this.modifiers;for(let n of e)t.includes(n)||n.destroy();this.dragOperation.modifiers=(this.dragOperation.source?.modifiers)?.map(e=>{let{plugin:t,options:n}=bW(e);return new t(this,n)})??t});this.destroy=()=>{l(),c()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},ZG=e=>{throw TypeError(e)},QG=(e,t,n)=>t.has(e)||ZG(`Cannot `+n),$G=(e,t,n)=>(QG(e,t,`read from private field`),t.get(e)),eK=(e,t,n)=>t.has(e)?ZG(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),tK=(e,t,n,r)=>(QG(e,t,`write to private field`),t.set(e,n),n),nK=(e,t,n)=>(QG(e,t,`access private method`),n);function rK(e){return e?e instanceof KeyframeEffect||`getKeyframes`in e&&typeof e.getKeyframes==`function`:!1}function aEe(e,t){let n=e.getAnimations(),r=null;for(let e of n){if(e.playState!==`running`)continue;let{effect:n}=e,i=(rK(n)?n.getKeyframes():[]).filter(t);i.length>0&&(r=[i[i.length-1],e])}return r}function iK(e){let{width:t,height:n,top:r,left:i,bottom:a,right:o}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:a,right:o}}function aK(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function oK(e){return`nodeType`in e}function sK(e){return e?aK(e)?e:oK(e)?`defaultView`in e?e.defaultView??window:e.ownerDocument?.defaultView??window:window:window}function cK(e){let{Document:t}=sK(e);return e instanceof t||`nodeType`in e&&e.nodeType===Node.DOCUMENT_NODE}function lK(e){return!e||aK(e)?!1:e instanceof sK(e).HTMLElement||`namespaceURI`in e&&typeof e.namespaceURI==`string`&&e.namespaceURI.endsWith(`html`)}function uK(e){return e instanceof sK(e).SVGElement||`namespaceURI`in e&&typeof e.namespaceURI==`string`&&e.namespaceURI.endsWith(`svg`)}function dK(e){return e?aK(e)?e.document:oK(e)?cK(e)?e:lK(e)||uK(e)?e.ownerDocument:document:document:document}function oEe(e){let{documentElement:t}=dK(e),n=sK(e).visualViewport,r=n?.width??t.clientWidth,i=n?.height??t.clientHeight,a=n?.offsetTop??0,o=n?.offsetLeft??0;return{top:a,left:o,right:o+r,bottom:a+i,width:r,height:i}}function sEe(e,t){if(cEe(e)&&e.open===!1)return!1;let{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return n===`visible`&&r===`visible`&&i===`visible`}function cEe(e){return e.tagName===`DETAILS`}function fK(e,t=e.getBoundingClientRect(),n=0){let r=t,{ownerDocument:i}=e,a=i.defaultView??window,o=e.parentElement;for(;o&&o!==i.documentElement;){if(!sEe(o)){let e=o.getBoundingClientRect(),t=n*(e.bottom-e.top),i=n*(e.right-e.left),a=n*(e.bottom-e.top),s=n*(e.right-e.left);r={top:Math.max(r.top,e.top-t),right:Math.min(r.right,e.right+i),bottom:Math.min(r.bottom,e.bottom+a),left:Math.max(r.left,e.left-s),width:0,height:0},r.width=r.right-r.left,r.height=r.bottom-r.top}o=o.parentElement}let s=a.visualViewport,c=s?.offsetTop??0,l=s?.offsetLeft??0,u=s?.width??a.innerWidth,d=s?.height??a.innerHeight,f=n*d,p=n*u;return r={top:Math.max(r.top,c-f),right:Math.min(r.right,l+u+p),bottom:Math.min(r.bottom,c+d+f),left:Math.max(r.left,l-p),width:0,height:0},r.width=r.right-r.left,r.height=r.bottom-r.top,r.width<0&&(r.width=0),r.height<0&&(r.height=0),r}function pK(e){return{x:e.clientX,y:e.clientY}}var mK=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function hK(e=document,t=new Set){if(t.has(e))return[];t.add(e);let n=[e];for(let r of Array.from(e.querySelectorAll(`iframe, frame`)))try{let e=r.contentDocument;e&&!t.has(e)&&n.push(...hK(e,t))}catch{}try{let r=e.defaultView;if(r&&r!==window.top){let i=r.parent;i&&i.document&&i.document!==e&&n.push(...hK(i.document,t))}}catch{}return n}function gK(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function _K(){let e=gK()?window.visualViewport:null;return{x:e?.offsetLeft??0,y:e?.offsetTop??0}}function vK(e){return!e||!oK(e)?!1:e instanceof sK(e).ShadowRoot}function yK(e){if(e&&oK(e)){let t=e.getRootNode();if(vK(t)||t instanceof Document)return t}return dK(e)}function bK(e){return e.matchMedia(`(prefers-reduced-motion: reduce)`).matches}function lEe(e){let t=`input, textarea, select, canvas, [contenteditable]`,n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{let n=r[t];xK(e)&&xK(n)&&(e.type!==`file`&&(e.value=n.value),e.type===`radio`&&e.name&&(e.name=`Cloned__${e.name}`)),SK(e)&&SK(n)&&n.width>0&&n.height>0&&e.getContext(`2d`)?.drawImage(n,0,0)}),n}function xK(e){return`value`in e}function SK(e){return e.tagName===`CANVAS`}function CK(e,{x:t,y:n}){let r=e.elementFromPoint(t,n);if(uEe(r)){let{contentDocument:e}=r;if(e){let{left:i,top:a}=r.getBoundingClientRect();return CK(e,{x:t-i,y:n-a})}}return r}function uEe(e){return e?.tagName===`IFRAME`}var wK=new WeakMap;function dEe(e){return e.closest(`
68
- input:not([disabled]),
69
- select:not([disabled]),
70
- textarea:not([disabled]),
71
- button:not([disabled]),
72
- a[href],
73
- [contenteditable]:not([contenteditable="false"])
74
- `)}var TK=class{constructor(){this.entries=new Set,this.clear=()=>{for(let e of this.entries){let[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i)}this.entries.clear()}}bind(e,t){let n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],i=[];for(let e of n)for(let t of r){let{type:n,listener:r,options:a}=t,o=[e,t];e.addEventListener(n,r,a),this.entries.add(o),i.push(o)}let a=this.entries;return function(){for(let e of i){let[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i),a.delete(e)}}}};function EK(e){let t=e?.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function fEe(e){let t=new Set,n=EK(e);for(;n;)t.add(n),n=EK(n);return t}function pEe(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}function DK(e,t){let n=()=>performance.now(),r,i;return function(...a){let o=this;i?(r?.(),r=pEe(()=>{e.apply(o,a),i=n()},t-(n()-i))):(e.apply(o,a),i=n())}}function mEe(e,t){return e===t?!0:!e||!t?!1:e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}function hEe(e,t=e.getBoundingClientRect()){let{width:n,height:r}=fK(e,t);return n>0&&r>0}var gEe=mK?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},OK,_Ee=class extends gEe{constructor(e){super(t=>{if(!$G(this,OK)){tK(this,OK,!0);return}e(t,this)}),eK(this,OK,!1)}};OK=new WeakMap;var kK=Array.from({length:100},(e,t)=>t/100),AK=75,jK,MK,NK,PK,FK,IK,LK,RK,zK,BK,VK,HK=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,eK(this,zK),this.disconnect=()=>{var e,t,n;tK(this,LK,!0),(e=$G(this,NK))==null||e.disconnect(),(t=$G(this,PK))==null||t.disconnect(),$G(this,FK).disconnect(),(n=$G(this,IK))==null||n.remove()},eK(this,jK,!0),eK(this,MK),eK(this,NK),eK(this,PK),eK(this,FK),eK(this,IK),eK(this,LK,!1),eK(this,RK,DK(()=>{var e;let{element:t}=this;if((e=$G(this,PK))==null||e.disconnect(),$G(this,LK)||!$G(this,jK)||!t.isConnected)return;let n=t.ownerDocument??document,{innerHeight:r,innerWidth:i}=n.defaultView??window,a=t.getBoundingClientRect(),{top:o,left:s,bottom:c,right:l}=fK(t,a),u=-Math.floor(o),d=-Math.floor(s),f=`${u}px ${-Math.floor(i-l)}px ${-Math.floor(r-c)}px ${d}px`;this.boundingClientRect=a,tK(this,PK,new IntersectionObserver(e=>{let[n]=e,{intersectionRect:r}=n;(n.intersectionRatio===1?BU.intersectionRatio(r,fK(t)):n.intersectionRatio)!==1&&$G(this,RK).call(this)},{threshold:kK,rootMargin:f,root:n})),$G(this,PK).observe(t),nK(this,zK,BK).call(this)},AK)),this.boundingClientRect=e.getBoundingClientRect(),tK(this,jK,hEe(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};let i=e.ownerDocument;n?.debug&&(tK(this,IK,document.createElement(`div`)),$G(this,IK).style.background=`rgba(0,0,0,0.15)`,$G(this,IK).style.position=`fixed`,$G(this,IK).style.pointerEvents=`none`,i.body.appendChild($G(this,IK))),tK(this,FK,new IntersectionObserver(t=>{var n,r;let{boundingClientRect:i,isIntersecting:a}=t[t.length-1],{width:o,height:s}=i,c=$G(this,jK);tK(this,jK,a),!(!o&&!s)&&(c&&!a?((n=$G(this,PK))==null||n.disconnect(),this.callback(null),(r=$G(this,NK))==null||r.disconnect(),tK(this,NK,void 0),$G(this,IK)&&($G(this,IK).style.visibility=`hidden`)):$G(this,RK).call(this),a&&!$G(this,NK)&&(tK(this,NK,new _Ee($G(this,RK))),$G(this,NK).observe(e)))},{threshold:kK,root:i})),$G(this,jK)&&!n.skipInitial&&this.callback(this.boundingClientRect),$G(this,FK).observe(e)}};jK=new WeakMap,MK=new WeakMap,NK=new WeakMap,PK=new WeakMap,FK=new WeakMap,IK=new WeakMap,LK=new WeakMap,RK=new WeakMap,zK=new WeakSet,BK=function(){$G(this,LK)||(nK(this,zK,VK).call(this),!mEe(this.boundingClientRect,$G(this,MK))&&(this.callback(this.boundingClientRect),tK(this,MK,this.boundingClientRect)))},VK=function(){if($G(this,IK)){let{top:e,left:t,width:n,height:r}=fK(this.element);$G(this,IK).style.overflow=`hidden`,$G(this,IK).style.visibility=`visible`,$G(this,IK).style.top=`${Math.floor(e)}px`,$G(this,IK).style.left=`${Math.floor(t)}px`,$G(this,IK).style.width=`${Math.floor(n)}px`,$G(this,IK).style.height=`${Math.floor(r)}px`}};var UK=new WeakMap,WK=new WeakMap;function vEe(e,t){let n=UK.get(e);return n||={disconnect:new HK(e,t=>{let n=UK.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0}).disconnect,callbacks:new Set},n.callbacks.add(t),UK.set(e,n),()=>{n.callbacks.delete(t),n.callbacks.size===0&&(UK.delete(e),n.disconnect())}}function yEe(e,t){let n=new Set;for(let r of e){let e=vEe(r,t);n.add(e)}return()=>n.forEach(e=>e())}function bEe(e,t){let n=e.ownerDocument;if(!WK.has(n)){let e=new AbortController,t=new Set;document.addEventListener(`scroll`,e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),WK.set(n,{disconnect:()=>e.abort(),listeners:t})}let{listeners:r,disconnect:i}=WK.get(n)??{};return!r||!i?()=>{}:(r.add(t),()=>{r.delete(t),r.size===0&&(i(),WK.delete(n))})}var GK,KK,qK,JK,xEe=class{constructor(e,t,n){this.callback=t,eK(this,GK),eK(this,KK,!1),eK(this,qK),eK(this,JK,DK(e=>{if(!$G(this,KK)&&e.target&&`contains`in e.target&&typeof e.target.contains==`function`){for(let t of $G(this,qK))if(e.target.contains(t)){this.callback($G(this,GK).boundingClientRect);break}}},AK));let r=fEe(e),i=yEe(r,t),a=bEe(e,$G(this,JK));tK(this,qK,r),tK(this,GK,new HK(e,t,n)),this.disconnect=()=>{$G(this,KK)||(tK(this,KK,!0),i(),a(),$G(this,GK).disconnect())}}};GK=new WeakMap,KK=new WeakMap,qK=new WeakMap,JK=new WeakMap;function YK(e){return`showPopover`in e&&`hidePopover`in e&&typeof e.showPopover==`function`&&typeof e.hidePopover==`function`}function XK(e){try{YK(e)&&e.isConnected&&e.hasAttribute(`popover`)&&!e.matches(`:popover-open`)&&e.showPopover()}catch{}}function ZK(e){return!mK||!e?!1:e===dK(e).scrollingElement}function QK(e){let t=sK(e),n=ZK(e)?oEe(e):iK(e),r=t.visualViewport,i=ZK(e)?{height:r?.height??t.innerHeight,width:r?.width??t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},a={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-i.width,y:e.scrollHeight-i.height}};return{rect:n,position:a,isTop:a.current.y<=0,isLeft:a.current.x<=0,isBottom:a.current.y>=a.max.y,isRight:a.current.x>=a.max.x}}function SEe(e,t){let{isTop:n,isBottom:r,isLeft:i,isRight:a,position:o}=QK(e),{x:s,y:c}=t??{x:0,y:0},l=!n&&o.current.y+c>0,u=!r&&o.current.y+c<o.max.y,d=!i&&o.current.x+s>0,f=!a&&o.current.x+s<o.max.x;return{top:l,bottom:u,left:d,right:f,x:d||f,y:l||u}}var $K=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let t of e)t();for(let e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},eq=new $K(e=>{typeof requestAnimationFrame==`function`?requestAnimationFrame(e):e()}),CEe=new $K(e=>setTimeout(e,50)),tq=new Map,wEe=tq.clear.bind(tq);function nq(e,t=!1){if(!t)return rq(e);let n=tq.get(e);return n||(n=rq(e),tq.set(e,n),CEe.schedule(wEe),n)}function rq(e){return sK(e).getComputedStyle(e)}function TEe(e,t=nq(e,!0)){return t.position===`fixed`||t.position===`sticky`}function EEe(e,t=nq(e,!0)){let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}var DEe={excludeElement:!0,escapeShadowDOM:!0};function iq(e,t=DEe){let{limit:n,excludeElement:r,escapeShadowDOM:i}=t,a=new Set;function o(t){if(n!=null&&a.size>=n||!t)return a;if(cK(t)&&t.scrollingElement!=null&&!a.has(t.scrollingElement))return a.add(t.scrollingElement),a;if(i&&vK(t))return o(t.host);if(!lK(t))return uK(t)?o(t.parentElement):a;if(a.has(t))return a;let s=nq(t,!0);if(r&&t===e||EEe(t,s)&&a.add(t),TEe(t,s)){let{scrollingElement:e}=t.ownerDocument;return e&&a.add(e),a}return o(t.parentNode)}return e?o(e):a}function aq(e,t=window.frameElement){let n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=EK(e);for(;r;){if(r===t)return n;let e=iK(r),{x:i,y:a}=OEe(r,e);n.x+=e.left,n.y+=e.top,n.scaleX*=i,n.scaleY*=a,r=EK(r)}return n}function OEe(e,t=iK(e)){let n=Math.round(t.width),r=Math.round(t.height);if(lK(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};let i=nq(e,!0);return{x:(parseFloat(i.width)||n)/n,y:(parseFloat(i.height)||r)/r}}function kEe(e){if(!e||e===`none`)return null;let t=e.split(` `),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}function oq(e){if(!e||e===`none`)return null;let[t,n,r=`0`]=e.split(` `),i={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(i.x)&&isNaN(i.y)?null:{x:isNaN(i.x)?0:i.x,y:isNaN(i.y)?0:i.y,z:isNaN(i.z)?0:i.z}}function sq(e){let{scale:t,transform:n,translate:r}=e,i=kEe(t),a=oq(r),o=AEe(n);if(!o&&!i&&!a)return null;let s={x:i?.x??1,y:i?.y??1},c={x:a?.x??0,y:a?.y??0},l={x:o?.x??0,y:o?.y??0,scaleX:o?.scaleX??1,scaleY:o?.scaleY??1};return{x:c.x+l.x,y:c.y+l.y,z:a?.z??0,scaleX:s.x*l.scaleX,scaleY:s.y*l.scaleY}}function AEe(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}var cq=(e=>(e[e.Idle=0]=`Idle`,e[e.Forward=1]=`Forward`,e[e.Reverse=-1]=`Reverse`,e))(cq||{}),jEe={x:.2,y:.2},MEe={x:10,y:10};function NEe(e,t,n,r=25,i=jEe,a=MEe){let{x:o,y:s}=t,{rect:c,isTop:l,isBottom:u,isLeft:d,isRight:f}=QK(e),p=aq(e),m=sq(nq(e,!0)),h=m!==null&&m?.scaleX<0,g=m!==null&&m?.scaleY<0,_=new BU(c.left*p.scaleX+p.x,c.top*p.scaleY+p.y,c.width*p.scaleX,c.height*p.scaleY),v={x:0,y:0},y={x:0,y:0},b={height:_.height*i.y,width:_.width*i.x};return b.height>0&&(!l||g&&!u)&&s<=_.top+b.height&&n?.y!==1&&o>=_.left-a.x&&o<=_.right+a.x?(v.y=g?1:-1,y.y=r*Math.abs((_.top+b.height-s)/b.height)):b.height>0&&(!u||g&&!l)&&s>=_.bottom-b.height&&n?.y!==-1&&o>=_.left-a.x&&o<=_.right+a.x&&(v.y=g?-1:1,y.y=r*Math.abs((_.bottom-b.height-s)/b.height)),b.width>0&&(!f||h&&!d)&&o>=_.right-b.width&&n?.x!==-1&&s>=_.top-a.y&&s<=_.bottom+a.y?(v.x=h?-1:1,y.x=r*Math.abs((_.right-b.width-o)/b.width)):b.width>0&&(!d||h&&!f)&&o<=_.left+b.width&&n?.x!==1&&s>=_.top-a.y&&s<=_.bottom+a.y&&(v.x=h?1:-1,y.x=r*Math.abs((_.left+b.width-o)/b.width)),{direction:v,speed:y}}function PEe(e,{block:t=`nearest`,inline:n=`nearest`}={}){if(!lK(e))return;let r=iq(e),i=[];for(let a of r){if(!lK(a))continue;let{top:r,left:o}=FEe(e,a),s=r,c=o;for(let e of i)s-=e.scrollTop,c-=e.scrollLeft;if(t!==`none`){let n=s<a.scrollTop;n!==s+e.offsetHeight>a.scrollTop+a.clientHeight&&(a.scrollTop=t===`center`?s-a.clientHeight/2+e.offsetHeight/2:n?s:s+e.offsetHeight-a.clientHeight)}if(n!==`none`){let t=c<a.scrollLeft;t!==c+e.offsetWidth>a.scrollLeft+a.clientWidth&&(a.scrollLeft=n===`center`?c-a.clientWidth/2+e.offsetWidth/2:t?c:c+e.offsetWidth-a.clientWidth)}i.push(a)}}function lq(e){let t=0,n=0,r=e;for(;r;){t+=r.offsetTop,n+=r.offsetLeft;let e=r.offsetParent;if(!lK(e))break;t+=e.clientTop,n+=e.clientLeft,r=e}return{top:t,left:n}}function FEe(e,t){let n=lq(e),r=lq(t);return{top:n.top-r.top-t.clientTop,left:n.left-r.left-t.clientLeft}}function IEe(e,t,n){let{scaleX:r,scaleY:i,x:a,y:o}=t,s=e.left+a+(1-r)*parseFloat(n),c=e.top+o+(1-i)*parseFloat(n.slice(n.indexOf(` `)+1)),l=r?e.width*r:e.width,u=i?e.height*i:e.height;return{width:l,height:u,top:c,right:s+l,bottom:c+u,left:s}}function LEe(e,t,n){let{scaleX:r,scaleY:i,x:a,y:o}=t,s=e.left-a-(1-r)*parseFloat(n),c=e.top-o-(1-i)*parseFloat(n.slice(n.indexOf(` `)+1)),l=r?e.width/r:e.width,u=i?e.height/i:e.height;return{width:l,height:u,top:c,right:s+l,bottom:c+u,left:s}}function REe({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}var zEe=new $K(e=>setTimeout(e,0)),uq=new Map,BEe=uq.clear.bind(uq);function VEe(e){let t=e.ownerDocument,n=uq.get(t);if(n)return n;n=t.getAnimations(),uq.set(t,n),zEe.schedule(BEe);let r=n.filter(t=>rK(t.effect)&&t.effect.target===e);return uq.set(e,r),n}function HEe(e,t){let n=VEe(e).filter(e=>{if(rK(e.effect)){let{target:n}=e.effect;if((n&&t.isValidTarget?.call(t,n))??!0)return e.effect.getKeyframes().some(e=>{for(let n of t.properties)if(e[n])return!0})}}).map(e=>{let{effect:t,currentTime:n}=e,r=t?.getComputedTiming().duration;if(!(e.pending||e.playState===`finished`)&&typeof r==`number`&&typeof n==`number`&&n<r)return e.currentTime=r,()=>{e.currentTime=n}});if(n.length>0)return()=>n.forEach(e=>e?.())}var dq=class extends BU{constructor(e,t={}){let{frameTransform:n=aq(e),ignoreTransforms:r,getBoundingClientRect:i=iK}=t,a=HEe(e,{properties:[`transform`,`translate`,`scale`,`width`,`height`],isValidTarget:t=>(t!==e||gK())&&t.contains(e)}),o=i(e),{top:s,left:c,width:l,height:u}=o,d,f=nq(e),p=sq(f),m={x:p?.scaleX??1,y:p?.scaleY??1},h=UEe(e,f);a?.(),p&&(d=LEe(o,p,f.transformOrigin),(r||h)&&(s=d.top,c=d.left,l=d.width,u=d.height));let g={width:d?.width??l,height:d?.height??u};if(h&&!r&&d){let e=IEe(d,h,f.transformOrigin);s=e.top,c=e.left,l=e.width,u=e.height,m.x=h.scaleX,m.y=h.scaleY}n&&(r||(c*=n.scaleX,l*=n.scaleX,s*=n.scaleY,u*=n.scaleY),c+=n.x,s+=n.y),super(c,s,l,u),this.scale=m,this.intrinsicWidth=g.width,this.intrinsicHeight=g.height}};function UEe(e,t){let n=e.getAnimations();if(!n.length)return null;let r,i,a,o=!1;for(let e of n){if(e.playState!==`running`)continue;let t=rK(e.effect)?e.effect.getKeyframes():[],n=t[t.length-1];if(!n)continue;let{transform:s,translate:c,scale:l}=n;typeof s==`string`&&s&&(r=s,o=!0),typeof c==`string`&&c&&(i=c,o=!0),typeof l==`string`&&l&&(a=l,o=!0)}return o?sq({transform:r??t.transform,translate:i??t.translate,scale:a??t.scale}):null}function fq(e){return`style`in e&&typeof e.style==`object`&&e.style!==null&&`setProperty`in e.style&&`removeProperty`in e.style&&typeof e.style.setProperty==`function`&&typeof e.style.removeProperty==`function`}var WEe=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=``){let{element:n}=this;if(fq(n))for(let[r,i]of Object.entries(e)){let e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,typeof i==`string`?i:`${i}px`)}}remove(e,t=``){let{element:n}=this;if(fq(n))for(let r of e){let e=`${t}${r}`;n.style.removeProperty(e)}}reset(){let{element:e}=this;if(fq(e)){for(let[t,n]of this.initial)e.style.setProperty(t,n);e.getAttribute(`style`)===``&&e.removeAttribute(`style`)}}};function pq(e){return e?e instanceof sK(e).Element||oK(e)&&e.nodeType===Node.ELEMENT_NODE:!1}function mq(e){if(!e)return!1;let{KeyboardEvent:t}=sK(e.target);return e instanceof t}function GEe(e){if(!e)return!1;let{PointerEvent:t}=sK(e.target);return e instanceof t}function KEe(e){if(!pq(e))return!1;let{tagName:t}=e;return t===`INPUT`||t===`TEXTAREA`||qEe(e)}function qEe(e){return e.hasAttribute(`contenteditable`)&&e.getAttribute(`contenteditable`)!==`false`}var hq={};function gq(e){let t=hq[e]==null?0:hq[e]+1;return hq[e]=t,`${e}-${t}`}var JEe=({dragOperation:e,droppable:t})=>{let n=e.position.current;if(!n)return null;let{id:r}=t;return t.shape&&t.shape.containsPoint(n)?{id:r,value:1/zU.distance(t.shape.center,n),type:_G.PointerIntersection,priority:gG.High}:null},YEe=({dragOperation:e,droppable:t})=>{let{shape:n}=e;if(!t.shape||!n?.current)return null;let r=n.current.intersectionArea(t.shape);if(r){let{position:i}=e,a=zU.distance(t.shape.center,i.current),o=r/(n.current.area+t.shape.area-r)/a;return{id:t.id,value:o,type:_G.ShapeIntersection,priority:gG.Normal}}return null},XEe=e=>JEe(e)??YEe(e),ZEe=Object.create,_q=Object.defineProperty,QEe=Object.defineProperties,$Ee=Object.getOwnPropertyDescriptor,eDe=Object.getOwnPropertyDescriptors,vq=Object.getOwnPropertySymbols,yq=Object.prototype.hasOwnProperty,bq=Object.prototype.propertyIsEnumerable,xq=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),Sq=e=>{throw TypeError(e)},Cq=(e,t,n)=>t in e?_q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wq=(e,t)=>{for(var n in t||={})yq.call(t,n)&&Cq(e,n,t[n]);if(vq)for(var n of vq(t))bq.call(t,n)&&Cq(e,n,t[n]);return e},Tq=(e,t)=>QEe(e,eDe(t)),Eq=(e,t)=>_q(e,`name`,{value:t,configurable:!0}),Dq=(e,t)=>{var n={};for(var r in e)yq.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&vq)for(var r of vq(e))t.indexOf(r)<0&&bq.call(e,r)&&(n[r]=e[r]);return n},Oq=e=>[,,,ZEe(e?.[xq(`metadata`)]??null)],kq=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],Aq=e=>e!==void 0&&typeof e!=`function`?Sq(`Function expected`):e,tDe=(e,t,n,r,i)=>({kind:kq[e],name:t,metadata:r,addInitializer:e=>n._?Sq(`Already initialized`):i.push(Aq(e||null))}),jq=(e,t)=>Cq(t,xq(`metadata`),e[3]),Mq=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)t&1?a[i].call(n):r=a[i].call(n,r);return r},Nq=(e,t,n,r,i,a)=>{var o,s,c,l,u,d=t&7,f=!!(t&8),p=!!(t&16),m=d>3?e.length+1:d?f?1:2:0,h=kq[d+5],g=d>3&&(e[m-1]=[]),_=e[m]||(e[m]=[]),v=d&&(!p&&!f&&(i=i.prototype),d<5&&(d>3||!p)&&$Ee(d<4?i:{get[n](){return Fq(this,a)},set[n](e){return Lq(this,a,e)}},n));d?p&&d<4&&Eq(a,(d>2?`set `:d>1?`get `:``)+n):Eq(i,n);for(var y=r.length-1;y>=0;y--)l=tDe(d,n,c={},e[3],_),d&&(l.static=f,l.private=p,u=l.access={has:p?e=>nDe(i,e):e=>n in e},d^3&&(u.get=p?e=>(d^1?Fq:Rq)(e,i,d^4?a:v.get):e=>e[n]),d>2&&(u.set=p?(e,t)=>Lq(e,i,t,d^4?a:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?p?a:v[h]:d>4?void 0:{get:v.get,set:v.set}:i,l),c._=1,d^4||s===void 0?Aq(s)&&(d>4?g.unshift(s):d?p?a=s:v[h]=s:i=s):typeof s!=`object`||!s?Sq(`Object expected`):(Aq(o=s.get)&&(v.get=o),Aq(o=s.set)&&(v.set=o),Aq(o=s.init)&&g.unshift(o));return d||jq(e,i),v&&_q(i,n,v),p?d^4?a:v:i},Pq=(e,t,n)=>t.has(e)||Sq(`Cannot `+n),nDe=(e,t)=>Object(t)===t?e.has(t):Sq(`Cannot use the "in" operator on this value`),Fq=(e,t,n)=>(Pq(e,t,`read from private field`),n?n.call(e):t.get(e)),Iq=(e,t,n)=>t.has(e)?Sq(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Lq=(e,t,n,r)=>(Pq(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),Rq=(e,t,n)=>(Pq(e,t,`access private method`),n),zq={role:`button`,roleDescription:`draggable`},rDe=`dnd-kit-description`,iDe=`dnd-kit-announcement`,aDe={draggable:`To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel.`},oDe={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(!(!e||e.id===t?.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:n}){if(e)return n?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function sDe(e){let t=e.tagName.toLowerCase();return[`input`,`select`,`textarea`,`a`,`button`].includes(t)}function cDe(e,t){let n=document.createElement(`div`);return n.id=e,n.style.setProperty(`display`,`none`),n.textContent=t,n}function lDe(e){let t=document.createElement(`div`);return t.id=e,t.setAttribute(`role`,`status`),t.setAttribute(`aria-live`,`polite`),t.setAttribute(`aria-atomic`,`true`),t.style.setProperty(`position`,`fixed`),t.style.setProperty(`width`,`1px`),t.style.setProperty(`height`,`1px`),t.style.setProperty(`margin`,`-1px`),t.style.setProperty(`border`,`0`),t.style.setProperty(`padding`,`0`),t.style.setProperty(`overflow`,`hidden`),t.style.setProperty(`clip`,`rect(0 0 0 0)`),t.style.setProperty(`clip-path`,`inset(100%)`),t.style.setProperty(`white-space`,`nowrap`),t}var uDe=[`dragover`,`dragmove`],dDe=class extends wW{constructor(e,t){super(e);let{id:n,idPrefix:{description:r=rDe,announcement:i=iDe}={},announcements:a=oDe,screenReaderInstructions:o=aDe,debounce:s=500}=t??{},c=n?`${r}-${n}`:gq(r),l=n?`${i}-${n}`:gq(i),u,d,f,p,m=(e=p)=>{!f||!e||f?.nodeValue!==e&&(f.nodeValue=e)},h=()=>eq.schedule(m),g=fDe(h,s),_=Object.entries(a).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{let i=f;if(!i)return;let a=t?.(n,r);a&&i.nodeValue!==a&&(p=a,uDe.includes(e)?g():(h(),g.cancel()))})),v=()=>{let e=[];u?.isConnected||(u=cDe(c,o.draggable),e.push(u)),d?.isConnected||(d=lDe(l),f=document.createTextNode(``),d.appendChild(f),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function b(){for(let e of y)e()}this.registerEffect(()=>{y.clear();for(let e of this.manager.registry.draggables.value){let t=e.handle??e.element;if(t){(!u||!d)&&y.add(v),(!sDe(t)||gK())&&!t.hasAttribute(`tabindex`)&&y.add(()=>t.setAttribute(`tabindex`,`0`)),!t.hasAttribute(`role`)&&t.tagName.toLowerCase()!==`button`&&y.add(()=>t.setAttribute(`role`,zq.role)),t.hasAttribute(`aria-roledescription`)||y.add(()=>t.setAttribute(`aria-roledescription`,zq.roleDescription)),t.hasAttribute(`aria-describedby`)||y.add(()=>t.setAttribute(`aria-describedby`,c));for(let n of[`aria-pressed`,`aria-grabbed`]){let r=String(e.isDragging);t.getAttribute(n)!==r&&y.add(()=>t.setAttribute(n,r))}let n=String(e.disabled);t.getAttribute(`aria-disabled`)!==n&&y.add(()=>t.setAttribute(`aria-disabled`,n))}}y.size>0&&eq.schedule(b)}),this.destroy=()=>{super.destroy(),u?.remove(),d?.remove(),_.forEach(e=>e())}}};function fDe(e,t){let n,r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}var Bq=new Map,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ=class extends (Gq=TW,Wq=[$H],Uq=[eU],Hq=[eU],Vq=[eU],Gq){constructor(e,t){super(e,t),Mq(qq,5,this),Iq(this,Yq),Iq(this,Kq,new Set),Iq(this,Jq,Mq(qq,8,this,new Set)),Mq(qq,11,this),this.registerEffect(Rq(this,Yq,Xq))}register(e){return Fq(this,Kq).add(e),()=>{Fq(this,Kq).delete(e)}}addRoot(e){return _H(()=>{let t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{_H(()=>{let t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){let{source:e}=this.manager.dragOperation;return yK(e?.element??null)}get targetRoot(){let{target:e}=this.manager.dragOperation;return yK(e?.element??null)}get roots(){let{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){let e=[this.sourceRoot,this.targetRoot].filter(e=>e!=null);return new Set([...e,...this.additionalRoots])}return new Set}};qq=Oq(Gq),Kq=new WeakMap,Jq=new WeakMap,Yq=new WeakSet,Xq=function(){let{roots:e}=this,t=[];for(let n of e)for(let e of Fq(this,Kq))t.push(Rq(this,Yq,Zq).call(this,n,e));return()=>{for(let e of t)e()}},Zq=function(e,t){let n=Bq.get(e);n||(n=new Map,Bq.set(e,n));let r=n.get(t);if(!r){let i=cK(e)?Rq(this,Yq,Qq).call(this,e,n,t):Rq(this,Yq,$q).call(this,e,n,t);if(!i)return()=>{};r=i,n.set(t,r)}r.refCount++;let i=!1;return()=>{i||(i=!0,r.refCount--,r.refCount===0&&r.cleanup())}},Qq=function(e,t,n){let r=e.createElement(`style`),{nonce:i}=this.options??{};i&&r.setAttribute(`nonce`,i),r.textContent=n,e.head.prepend(r);let a=new MutationObserver(t=>{for(let n of t)for(let t of Array.from(n.removedNodes))if(t===r){e.head.prepend(r);return}});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),r.remove(),t.delete(n),t.size===0&&Bq.delete(e)}}},$q=function(e,t,n){!(`adoptedStyleSheets`in e&&Array.isArray(e.adoptedStyleSheets))&&process.env.NODE_ENV!==`production`&&console.error(`Cannot inject styles: This browser doesn't support adoptedStyleSheets`);let{CSSStyleSheet:r}=e.ownerDocument.defaultView??{};if(!r)return process.env.NODE_ENV!==`production`&&console.error(`Cannot inject styles: CSSStyleSheet constructor not available`),null;let i=new r;return i.replaceSync(n),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{if(vK(e)&&e.host?.isConnected){let t=e.adoptedStyleSheets.indexOf(i);t!==-1&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),t.size===0&&Bq.delete(e)}}},Nq(qq,4,`additionalRoots`,Wq,eJ,Jq),Nq(qq,2,`sourceRoot`,Uq,eJ),Nq(qq,2,`targetRoot`,Hq,eJ),Nq(qq,2,`roots`,Vq,eJ),jq(qq,eJ),eJ.configure=yW(eJ);var tJ=eJ,pDe=class extends wW{constructor(e,t){super(e,t),this.manager=e;let{cursor:n=`grabbing`}=t??{},r=e.registry.plugins.get(tJ)?.register(`* { cursor: ${n} !important; }`);if(r){let e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}}},nJ=`data-dnd-`,rJ=`${nJ}dropping`,iJ=`--dnd-`,aJ=`${nJ}dragging`,oJ=`${nJ}placeholder`,mDe=[aJ,oJ,`popover`,`aria-pressed`,`aria-grabbing`],hDe=[`view-transition-name`],gDe=`
75
- :is(:root,:host) [${aJ}] {
76
- position: fixed !important;
77
- pointer-events: none !important;
78
- touch-action: none;
79
- z-index: calc(infinity);
80
- will-change: translate;
81
- top: var(${iJ}top, 0px) !important;
82
- left: var(${iJ}left, 0px) !important;
83
- right: unset !important;
84
- bottom: unset !important;
85
- width: var(${iJ}width, auto);
86
- max-width: var(${iJ}width, auto);
87
- height: var(${iJ}height, auto);
88
- max-height: var(${iJ}height, auto);
89
- transform: var(${iJ}transform, none) !important;
90
- transition: var(${iJ}transition) !important;
91
- }
92
-
93
- :is(:root,:host) [${oJ}] {
94
- transition: none;
95
- }
96
-
97
- :is(:root,:host) [${oJ}='hidden'] {
98
- visibility: hidden;
99
- }
100
-
101
- [${aJ}] * {
102
- pointer-events: none !important;
103
- }
104
-
105
- [${aJ}]:not([${rJ}]) {
106
- translate: var(${iJ}translate) !important;
107
- }
108
-
109
- [${aJ}][style*='${iJ}scale'] {
110
- scale: var(${iJ}scale) !important;
111
- transform-origin: var(${iJ}transform-origin) !important;
112
- }
113
-
114
- @layer dnd-kit {
115
- :where([${aJ}][popover]) {
116
- overflow: visible;
117
- background: unset;
118
- border: unset;
119
- margin: unset;
120
- padding: unset;
121
- color: inherit;
122
-
123
- &:is(input, button) {
124
- border: revert;
125
- background: revert;
126
- }
127
- }
128
- }
129
- [${aJ}]::backdrop, [${nJ}overlay]:not([${aJ}]) {
130
- display: none;
131
- visibility: hidden;
132
- }
133
- `.replace(/\n+/g,` `).replace(/\s+/g,` `).trim();function _De(e,t=`hidden`){return _H(()=>{let{element:n,manager:r}=e;if(!n||!r)return;let i=vDe(n,r.registry.droppables),a=[],o=lEe(n),{remove:s}=o;return yDe(i,o,a),bDe(o,t),o.remove=()=>{a.forEach(e=>e()),s.call(o)},o})}function vDe(e,t){let n=new Map;for(let r of t)if(r.element&&(e===r.element||e.contains(r.element))){let e=`${nJ}${gq(`dom-id`)}`;r.element.setAttribute(e,``),n.set(r,e)}return n}function yDe(e,t,n){for(let[r,i]of e){if(!r.element)continue;let e=`[${i}]`,a=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(i),!a)continue;let o=r.element;r.proxy=a,a.removeAttribute(i),wK.set(o,a),n.push(()=>{wK.delete(o),r.proxy=void 0})}}function bDe(e,t=`hidden`){e.setAttribute(`inert`,`true`),e.setAttribute(`tab-index`,`-1`),e.setAttribute(`aria-hidden`,`true`),e.setAttribute(oJ,t)}function sJ(e,t){return e===t||EK(e)===EK(t)}function cJ(e){let{target:t}=e;`newState`in e&&e.newState===`closed`&&pq(t)&&t.hasAttribute(`popover`)&&requestAnimationFrame(()=>XK(t))}function lJ(e){return e.tagName===`TR`}function xDe(e,t,n){let r=new MutationObserver(r=>{let i=!1;for(let n of r){if(n.target!==e){i=!0;continue}if(n.type!==`attributes`)continue;let r=n.attributeName;if(r.startsWith(`aria-`)||mDe.includes(r))continue;let a=e.getAttribute(r);if(r===`style`){if(fq(e)&&fq(t)){let n=e.style;for(let e of Array.from(t.style))n.getPropertyValue(e)===``&&t.style.removeProperty(e);for(let e of Array.from(n)){if(hDe.includes(e)||e.startsWith(iJ))continue;let r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else a===null?t.removeAttribute(r):t.setAttribute(r,a)}i&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}function SDe(e,t,n){let r=new MutationObserver(r=>{for(let i of r)if(i.addedNodes.length!==0)for(let r of Array.from(i.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t){e.insertAdjacentElement(`afterend`,t),XK(n);return}if(r.contains(t)&&t.previousElementSibling!==e){t.insertAdjacentElement(`beforebegin`,e),XK(n);return}}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement(`afterend`,t),XK(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}function CDe(e){return new ResizeObserver(()=>{var t;let n=new dq(e.placeholder,{frameTransform:e.frameTransform,ignoreTransforms:!0}),r=e.transformOrigin??{x:1,y:1},i=(e.width-n.width)*r.x+e.delta.x,a=(e.height-n.height)*r.y+e.delta.y,o=_K();if(e.styles.set({width:n.width-e.widthOffset,height:n.height-e.heightOffset,top:e.top+a+o.y,left:e.left+i+o.x},iJ),(t=e.getElementMutationObserver())==null||t.takeRecords(),lJ(e.element)&&lJ(e.placeholder)){let t=Array.from(e.element.cells),n=Array.from(e.placeholder.cells);e.getSavedCellWidths()||e.setSavedCellWidths(t.map(e=>e.style.width));for(let[e,r]of t.entries()){let t=n[e];r.style.width=`${t.getBoundingClientRect().width}px`}}let s=e.getTranslate()??{x:0,y:0},c=e.left+i+o.x+s.x,l=e.top+a+o.y+s.y,u=n.width-e.widthOffset,d=n.height-e.heightOffset,f=e.frameTransform;e.dragOperation.shape=new BU(c*f.scaleX+f.x,l*f.scaleY+f.y,u*f.scaleX,d*f.scaleY)})}var wDe=250,TDe=`ease`;function EDe(e){var t;let{animation:n}=e;if(typeof n==`function`){let t=n({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)});return}let{duration:r=wDe,easing:i=TDe}=n??{};XK(e.feedbackElement);let[,a]=aEe(e.feedbackElement,e=>`translate`in e)??[];a?.pause();let o=e.placeholder??e.element,s={frameTransform:sJ(e.feedbackElement,o)?null:void 0},c=new dq(e.feedbackElement,s),l=oq(nq(e.feedbackElement).translate)??e.translate,u=new dq(o,s),d=BU.delta(c,u,e.alignment),f={x:l.x-d.x,y:l.y-d.y},p=Math.round(c.intrinsicHeight)===Math.round(u.intrinsicHeight)?{}:{minHeight:[`${c.intrinsicHeight}px`,`${u.intrinsicHeight}px`],maxHeight:[`${c.intrinsicHeight}px`,`${u.intrinsicHeight}px`]},m=Math.round(c.intrinsicWidth)===Math.round(u.intrinsicWidth)?{}:{minWidth:[`${c.intrinsicWidth}px`,`${u.intrinsicWidth}px`],maxWidth:[`${c.intrinsicWidth}px`,`${u.intrinsicWidth}px`]};e.styles.set({transition:e.transition},iJ),e.feedbackElement.setAttribute(rJ,``),(t=e.getElementMutationObserver())==null||t.takeRecords(),REe({element:e.feedbackElement,keyframes:Tq(wq(wq({},p),m),{translate:[`${l.x}px ${l.y}px 0`,`${f.x}px ${f.y}px 0`]}),options:{duration:bK(sK(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?r:0,easing:i}}).then(()=>{e.feedbackElement.removeAttribute(rJ),a?.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}var uJ,dJ,fJ,pJ,mJ,hJ,gJ,_J=class extends (dJ=wW,uJ=[$H],dJ){constructor(e,t){super(e,t),Iq(this,mJ),Iq(this,pJ,Mq(fJ,8,this)),Mq(fJ,11,this),this.state={initial:{},current:{}};let n=e.registry.plugins.get(tJ),r=n?.register(gDe);if(r){let e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(Rq(this,mJ,hJ).bind(this,n)),this.registerEffect(Rq(this,mJ,gJ))}};fJ=Oq(dJ),pJ=new WeakMap,mJ=new WeakSet,hJ=function(e){let{overlay:t}=this;if(!t||!e)return;let n=yK(t);if(n)return e.addRoot(n)},gJ=function(){let{state:e,manager:t,options:n}=this,{dragOperation:r}=t,{position:i,source:a,status:o}=r;if(o.idle){e.current={},e.initial={};return}if(!a)return;let{element:s}=a,c=a.pluginConfig(_J),l=c?.feedback??n?.feedback??`default`,u=typeof l==`function`?l(a,t):l;if(!s||u===`none`||!o.initialized||o.initializing)return;let{initial:d}=e,f=this.overlay??s,p=aq(f),m=aq(s),h=!sJ(s,f),g=new dq(s,{frameTransform:h?m:null,ignoreTransforms:!h}),_={x:m.scaleX/p.scaleX,y:m.scaleY/p.scaleY},{width:v,height:y,top:b,left:x}=g;h&&(v/=_.x,y/=_.y);let S=new WEe(f),C=nq(s),{transition:w,translate:T,boxSizing:E,paddingBlockStart:D,paddingBlockEnd:O,paddingInlineStart:k,paddingInlineEnd:A,borderInlineStartWidth:j,borderInlineEndWidth:M,borderBlockStartWidth:N,borderBlockEndWidth:P}=C,F=w.split(`,`).filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(`,`),I=sq(C),L=C.transform,R=u===`clone`,z=E===`content-box`,B=z?parseInt(k)+parseInt(A)+parseInt(j)+parseInt(M):0,V=z?parseInt(D)+parseInt(O)+parseInt(N)+parseInt(P):0,H=u!==`move`&&!this.overlay?_De(a,R?`clone`:`hidden`):null,U=_H(()=>mq(t.dragOperation.activatorEvent));if(!d.translate){if(this.overlay&&I)d.translate={x:I.x,y:I.y};else if(T!==`none`){let e=oq(T);e&&(d.translate=e)}}if(!d.transformOrigin){let e=_H(()=>i.current),t=x+(I?.x??0),n=b+(I?.y??0);d.transformOrigin={x:(e.x-t*p.scaleX-p.x)/(v*p.scaleX),y:(e.y-n*p.scaleY-p.y)/(y*p.scaleY)}}let{transformOrigin:W}=d,G=b*p.scaleY+p.y,ee=x*p.scaleX+p.x;if(!d.coordinates&&(d.coordinates={x:ee,y:G},_.x!==1||_.y!==1)){let{scaleX:e,scaleY:t}=m,{x:n,y:r}=W;d.coordinates.x+=(v*e-v)*n,d.coordinates.y+=(y*t-y)*r}d.dimensions||={width:v,height:y},d.frameTransform||=p;let K={x:d.coordinates.x-ee,y:d.coordinates.y-G},te={width:(d.dimensions.width*d.frameTransform.scaleX-v*p.scaleX)*W.x,height:(d.dimensions.height*d.frameTransform.scaleY-y*p.scaleY)*W.y},q={x:K.x/p.scaleX+te.width,y:K.y/p.scaleY+te.height},ne={left:x+q.x,top:b+q.y};f.setAttribute(aJ,`true`);let re=_H(()=>r.transform),ie=d.translate??{x:0,y:0},ae=re.x*p.scaleX+ie.x,oe=re.y*p.scaleY+ie.y,se=_K();S.set({width:v-B,height:y-V,top:ne.top+se.y,left:ne.left+se.x,translate:`${ae}px ${oe}px 0`,transform:this.overlay?`none`:L,transition:F?`${F}, translate 0ms linear`:`translate 0ms linear`,scale:h?`${_.x} ${_.y}`:``,"transform-origin":`${W.x*100}% ${W.y*100}%`},iJ),H&&(s.insertAdjacentElement(`afterend`,H),n?.rootElement&&(typeof n.rootElement==`function`?n.rootElement(a):n.rootElement).appendChild(s)),YK(f)&&(f.hasAttribute(`popover`)||f.setAttribute(`popover`,`manual`),XK(f),f.addEventListener(`beforetoggle`,cJ));let ce,le,ue,de=CDe({placeholder:H,element:s,feedbackElement:f,frameTransform:p,transformOrigin:W,width:v,height:y,top:b,left:x,widthOffset:B,heightOffset:V,delta:q,styles:S,dragOperation:r,getTranslate:()=>e.current.translate,getElementMutationObserver:()=>ce,getSavedCellWidths:()=>ue,setSavedCellWidths:e=>{ue=e}}),fe=new dq(f);_H(()=>r.shape=fe);let pe=sK(f),me=e=>{this.manager.actions.stop({event:e})},he=bK(pe);U&&pe.addEventListener(`resize`,me),_H(()=>a.status)===`idle`&&requestAnimationFrame(()=>a.status=`dragging`),H&&(de.observe(H),ce=xDe(s,H,R),le=SDe(s,H,f));let ge=t.dragOperation.source?.id,_e=()=>{if(!U||ge==null)return;let e=t.registry.draggables.get(ge),n=e?.handle??e?.element;lK(n)&&n.focus()},ve=()=>{ce?.disconnect(),le?.disconnect(),de.disconnect(),pe.removeEventListener(`resize`,me),YK(f)&&(f.removeEventListener(`beforetoggle`,cJ),f.removeAttribute(`popover`)),f.removeAttribute(aJ),S.reset();let t=()=>{if(ue&&lJ(s)){let e=Array.from(s.cells);for(let[t,n]of e.entries())n.style.width=ue[t]??``}a.status=`idle`;let t=e.current.translate!=null,n=r.status.dragging;H&&(!n&&t||H.parentElement!==f.parentElement)&&f.isConnected&&H.replaceWith(f),H?.remove()};f===this.overlay?setTimeout(t,0):t()},ye=n?.dropAnimation,be=this,xe=nU(()=>{let{transform:t,status:i}=r;if(!(!t.x&&!t.y&&!e.current.translate)&&i.dragging){let i=d.translate??{x:0,y:0},a={x:t.x/p.scaleX+i.x,y:t.y/p.scaleY+i.y},o=e.current.translate,s=_H(()=>r.modifiers),c=_H(()=>r.shape?.current),l=n?.keyboardTransition,u=U&&!he&&l!==null?`${l?.duration??250}ms ${l?.easing??`cubic-bezier(0.25, 1, 0.5, 1)`}`:`0ms linear`;if(S.set({transition:F?`${F}, translate ${u}`:`translate ${u}`,translate:`${a.x}px ${a.y}px 0`},iJ),ce?.takeRecords(),c&&c!==fe&&o&&!s.length){let e=zU.delta(a,o);r.shape=BU.from(c.boundingRectangle).translate(e.x*p.scaleX,e.y*p.scaleY)}else r.shape=new dq(f);e.current.translate=a}},function(){if(r.status.dropped){this.dispose(),a.status=`dropping`;let n=c?.dropAnimation===void 0?be.dropAnimation===void 0?ye:be.dropAnimation:c.dropAnimation,r=e.current.translate,i=r!=null;if(!r&&s!==f&&(r={x:0,y:0}),!r||n===null){ve();return}t.renderer.rendering.then(()=>{EDe({source:a,element:s,feedbackElement:f,placeholder:H,translate:r,moved:i,transition:w,alignment:a.alignment,styles:S,animation:n??void 0,getElementMutationObserver:()=>ce,cleanup:ve,restoreFocus:_e})})}});return()=>{ve(),xe()}},Nq(fJ,4,`overlay`,uJ,_J,pJ),jq(fJ,_J),_J.configure=yW(_J);var vJ=_J,yJ=!0,DDe=!1,bJ,xJ,SJ,ODe=(SJ=[$H],cq.Forward),CJ,wJ,TJ;xJ=(bJ=[$H],cq.Reverse);var EJ=class{constructor(){Iq(this,wJ,Mq(CJ,8,this,yJ)),Mq(CJ,11,this),Iq(this,TJ,Mq(CJ,12,this,yJ)),Mq(CJ,15,this)}isLocked(e){return e===cq.Idle?!1:e==null?this[cq.Forward]===yJ&&this[cq.Reverse]===yJ:this[e]===yJ}unlock(e){e!==cq.Idle&&(this[e]=DDe)}};CJ=Oq(null),wJ=new WeakMap,TJ=new WeakMap,Nq(CJ,4,ODe,SJ,EJ,wJ),Nq(CJ,4,xJ,bJ,EJ,TJ),jq(CJ,EJ);var kDe=[cq.Forward,cq.Reverse],DJ=class{constructor(){this.x=new EJ,this.y=new EJ}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},ADe=class extends wW{constructor(e){super(e);let t=EH(new DJ),n=null;this.signal=t,FH(()=>{let{status:r}=e.dragOperation;if(!r.initialized){n=null,t.value=new DJ;return}let{delta:i}=e.dragOperation.position;if(n){let e={x:OJ(i.x,n.x),y:OJ(i.y,n.y)},r=t.peek();mH(()=>{for(let t of YU)for(let n of kDe)e[t]===n&&r[t].unlock(n);t.value=r})}n=i})}get current(){return this.signal.peek()}};function OJ(e,t){return Math.sign(e-t)}var kJ,AJ,jJ,MJ,NJ,PJ,FJ=class extends (AJ=TW,kJ=[$H],AJ){constructor(e){super(e),Iq(this,MJ,Mq(jJ,8,this,!1)),Mq(jJ,11,this),Iq(this,NJ),Iq(this,PJ,()=>{if(!Fq(this,NJ))return;let{element:e,by:t}=Fq(this,NJ);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{if(this.disabled)return!1;let n=this.getScrollableElements();if(!n)return Lq(this,NJ,void 0),!1;let{position:r}=this.manager.dragOperation,i=r?.current;if(i){let{by:r}=e??{},a=r?{x:IJ(r.x),y:IJ(r.y)}:void 0,o=a?void 0:this.scrollIntentTracker.current;if(o?.isLocked())return!1;for(let e of n){let n=SEe(e,r);if(n.x||n.y){let{speed:n,direction:s}=NEe(e,i,a,t?.acceleration,t?.threshold);if(o)for(let e of YU)o[e].isLocked(s[e])&&(n[e]=0,s[e]=0);if(s.x||s.y){let{x:t,y:i}=r??s,a=t*n.x,o=i*n.y;if(a||o){let t=Fq(this,NJ)?.by;if(this.autoScrolling&&t&&(t.x&&!a||t.y&&!o))continue;return Lq(this,NJ,{element:e,by:{x:a,y:o}}),eq.schedule(Fq(this,PJ)),!0}}}}}return Lq(this,NJ,void 0),!1};let t=null,n=null,r=ZH(()=>{let{position:n,source:r}=e.dragOperation;if(!n)return null;let i=CK(yK(r?.element),n.current);return i&&(t=i),i??t}),i=ZH(()=>{let t=r.value,{documentElement:i}=dK(t);if(!t||t===i){let{target:t}=e.dragOperation,r=t?.element;if(r){let e=iq(r,{excludeElement:!1});return n=e,e}}if(t){let e=iq(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<n?.size?n:(n=e,e)}return n=null,null},QH);this.getScrollableElements=()=>i.value,this.scrollIntentTracker=new ADe(e),this.destroy=e.monitor.addEventListener(`dragmove`,t=>{this.disabled||t.defaultPrevented||!mq(e.dragOperation.activatorEvent)||!t.by||this.scroll({by:t.by})&&t.preventDefault()})}};jJ=Oq(AJ),MJ=new WeakMap,NJ=new WeakMap,PJ=new WeakMap,Nq(jJ,4,`autoScrolling`,kJ,FJ,MJ),jq(jJ,FJ);function IJ(e){return e>0?cq.Forward:e<0?cq.Reverse:cq.Idle}var jDe=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let t of e)t();for(let e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{typeof requestAnimationFrame==`function`?requestAnimationFrame(e):e()}),MDe=10,LJ=class extends wW{constructor(e,t){super(e,t);let n=e.registry.plugins.get(FJ);if(!n)throw Error(`AutoScroller plugin depends on Scroller plugin`);this.destroy=FH(()=>{if(this.disabled)return;let{position:t,status:r}=e.dragOperation;if(r.dragging){let e={acceleration:this.options?.acceleration,threshold:typeof this.options?.threshold==`number`?{x:this.options.threshold,y:this.options.threshold}:this.options?.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;let t=setInterval(()=>jDe.schedule(()=>n.scroll(void 0,e)),MDe);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};LJ.configure=yW(LJ);var RJ=LJ,zJ={capture:!0,passive:!0},BJ,NDe=class extends TW{constructor(e){super(e),Iq(this,BJ),this.handleScroll=()=>{Fq(this,BJ)??Lq(this,BJ,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),Lq(this,BJ,void 0)},50))};let{dragOperation:t}=this.manager;this.destroy=FH(()=>{if(t.status.dragging){let e=t.source?.element?.ownerDocument??document;return e.addEventListener(`scroll`,this.handleScroll,zJ),()=>{e.removeEventListener(`scroll`,this.handleScroll,zJ)}}})}};BJ=new WeakMap;var PDe=`* { user-select: none !important; -webkit-user-select: none !important; }`,FDe=class extends wW{constructor(e){super(e),this.manager=e;let t=e.registry.plugins.get(tJ)?.register(PDe);if(this.destroy=FH(()=>{let{dragOperation:e}=this.manager;if(e.status.initialized)return VJ(),document.addEventListener(`selectionchange`,VJ,{capture:!0}),()=>{document.removeEventListener(`selectionchange`,VJ,{capture:!0})}}),t){let e=this.destroy.bind(this);this.destroy=()=>{t(),e()}}}};function VJ(){var e;(e=document.getSelection())==null||e.removeAllRanges()}var HJ=Object.freeze({offset:10,keyboardCodes:{start:[`Space`,`Enter`],cancel:[`Escape`],end:[`Space`,`Enter`,`Tab`],up:[`ArrowUp`],down:[`ArrowDown`],left:[`ArrowLeft`],right:[`ArrowRight`]},preventActivation(e,t){let n=t.handle??t.element;return e.target!==n}}),UJ,WJ=class extends DG{constructor(e,t){super(e),this.manager=e,this.options=t,Iq(this,UJ,[]),this.listeners=new TK,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented||!pq(e.target)||t.disabled)return;let{keyboardCodes:r=HJ.keyboardCodes,preventActivation:i=HJ.preventActivation}=n??{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&(i?.(e,t)||this.handleStart(e,t,n))}}bind(e,t=this.options){return FH(()=>{let n=e.handle??e.element,r=n=>{mq(n)&&this.handleSourceKeyDown(n,e,t)};if(n)return n.addEventListener(`keydown`,r),()=>{n.removeEventListener(`keydown`,r)}})}handleStart(e,t,n){let{element:r}=t;if(!r)throw Error(`Source draggable does not have an associated element`);e.preventDefault(),e.stopImmediatePropagation(),PEe(r);let{center:i}=new dq(r);if(this.manager.actions.start({event:e,coordinates:{x:i.x,y:i.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();let a=dK(r),o=[this.listeners.bind(a,[{type:`keydown`,listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];Fq(this,UJ).push(...o)}handleKeyDown(e,t,n){let{keyboardCodes:r=HJ.keyboardCodes}=n??{};if(GJ(e,[...r.end,...r.cancel])){e.preventDefault();let t=GJ(e,r.cancel);this.handleEnd(e,t);return}GJ(e,r.up)?this.handleMove(`up`,e):GJ(e,r.down)&&this.handleMove(`down`,e),GJ(e,r.left)?this.handleMove(`left`,e):GJ(e,r.right)&&this.handleMove(`right`,e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){let{shape:n}=this.manager.dragOperation,r=t.shiftKey?5:1,i={x:0,y:0},a=this.options?.offset??HJ.offset;if(typeof a==`number`&&(a={x:a,y:a}),n){switch(e){case`up`:i={x:0,y:-a.y*r};break;case`down`:i={x:0,y:a.y*r};break;case`left`:i={x:-a.x*r,y:0};break;case`right`:i={x:a.x*r,y:0}}(i.x||i.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:i}))}}sideEffects(){let e=this.manager.registry.plugins.get(RJ);e?.disabled===!1&&(e.disable(),Fq(this,UJ).push(()=>{e.enable()}))}cleanup(){Fq(this,UJ).forEach(e=>e()),Lq(this,UJ,[])}destroy(){this.cleanup(),this.listeners.clear()}};UJ=new WeakMap,WJ.configure=yW(WJ),WJ.defaults=HJ;var IDe=WJ;function GJ(e,t){return t.includes(e.code)}var KJ,LDe=class extends kG{constructor(){super(...arguments),Iq(this,KJ)}onEvent(e){switch(e.type){case`pointerdown`:Lq(this,KJ,pK(e));break;case`pointermove`:if(!Fq(this,KJ))return;let{x:t,y:n}=pK(e),r={x:t-Fq(this,KJ).x,y:n-Fq(this,KJ).y},{tolerance:i}=this.options;if(i&&qU(r,i)){this.abort();return}qU(r,this.options.value)&&this.activate(e);break;case`pointerup`:this.abort()}}abort(){Lq(this,KJ,void 0)}};KJ=new WeakMap;var qJ,JJ,RDe=class extends kG{constructor(){super(...arguments),Iq(this,qJ),Iq(this,JJ)}onEvent(e){switch(e.type){case`pointerdown`:Lq(this,JJ,pK(e)),Lq(this,qJ,setTimeout(()=>this.activate(e),this.options.value));break;case`pointermove`:if(!Fq(this,JJ))return;let{x:t,y:n}=pK(e);qU({x:t-Fq(this,JJ).x,y:n-Fq(this,JJ).y},this.options.tolerance)&&this.abort();break;case`pointerup`:this.abort()}}abort(){Fq(this,qJ)&&(clearTimeout(Fq(this,qJ)),Lq(this,JJ,void 0),Lq(this,qJ,void 0))}};qJ=new WeakMap,JJ=new WeakMap;var YJ=class{};YJ.Delay=RDe,YJ.Distance=LDe;var XJ=Object.freeze({activationConstraints(e,t){let{pointerType:n,target:r}=e;if(!(n===`mouse`&&pq(r)&&(t.handle===r||t.handle?.contains(r))))return n===`touch`?[new YJ.Delay({value:250,tolerance:5})]:KEe(r)&&!e.defaultPrevented?[new YJ.Delay({value:200,tolerance:0})]:[new YJ.Delay({value:200,tolerance:10}),new YJ.Distance({value:5})]},preventActivation(e,t){let{target:n}=e;if(n===t.element||n===t.handle||!pq(n)||t.handle?.contains(n))return!1;let r=dEe(n);return r!==t.element&&!!r}}),ZJ,QJ=class extends DG{constructor(e,t){super(e),this.manager=e,this.options=t,Iq(this,ZJ,new Set),this.listeners=new TK,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{let{event:e,coordinates:t}=this.latest;!e||!t||this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){let{activationConstraints:r=XJ.activationConstraints}=n??{};return typeof r==`function`?r(e,t):r}bind(e,t=this.options){return FH(()=>{let n=new AbortController,{signal:r}=n,i=n=>{GEe(n)&&this.handlePointerDown(n,e,t)},a=[e.handle??e.element];t?.activatorElements&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(let e of a)e&&(HDe(e.ownerDocument.defaultView),e.addEventListener(`pointerdown`,i,{signal:r}));return()=>n.abort()})}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||e.button!==0||!pq(e.target)||t.disabled||BDe(e)||!this.manager.dragOperation.status.idle)return;let{preventActivation:r=XJ.preventActivation}=n??{};if(r?.(e,t))return;let{target:i}=e,a=lK(i)&&i.draggable&&i.getAttribute(`draggable`)===`true`,o=aq(t.element),{x:s,y:c}=pK(e);this.initialCoordinates={x:s*o.scaleX+o.x,y:c*o.scaleY+o.y};let l=this.activationConstraints(e,t,n);e.sensor=this;let u=new eEe(l,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;let d=hK(),f=this.listeners.bind(d,[{type:`pointermove`,listener:e=>this.handlePointerMove(e,t)},{type:`pointerup`,listener:this.handlePointerUp,options:{capture:!0}},{type:`pointercancel`,listener:this.handleCancel},{type:`dragstart`,listener:a?this.handleCancel:$J,options:{capture:!0}}]);Fq(this,ZJ).add(()=>{f(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n;if(this.controller?.activated===!1){(n=this.controller)==null||n.onEvent(e);return}if(this.manager.dragOperation.status.dragging){let n=pK(e),r=aq(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,eq.schedule(this.handleMove)}}handlePointerUp(e){let{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();let n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){e.key===`Escape`&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){let{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle||t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();let i=dK(t.target).body;try{i.setPointerCapture(t.pointerId)}catch{this.handleCancel(t);return}let a=pq(t.target)?[t.target,i]:i,o=this.listeners.bind(a,[{type:`touchmove`,listener:$J,options:{passive:!1}},{type:`click`,listener:$J},{type:`contextmenu`,listener:$J},{type:`keydown`,listener:this.handleKeyDown}]);Fq(this,ZJ).add(o)}handleCancel(e){let{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){let{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},Fq(this,ZJ).forEach(e=>e()),Fq(this,ZJ).clear()}destroy(){this.cleanup(),this.listeners.clear()}};ZJ=new WeakMap,QJ.configure=yW(QJ),QJ.defaults=XJ;var zDe=QJ;function BDe(e){return`sensor`in e}function $J(e){e.preventDefault()}function VDe(){}var eY=new WeakSet;function HDe(e){!e||eY.has(e)||(e.addEventListener(`touchmove`,VDe,{capture:!1,passive:!1}),eY.add(e))}var tY={modifiers:[],plugins:[dDe,RJ,pDe,vJ,FDe],sensors:[zDe,IDe]},nY=class extends iEe{constructor(e={}){let t=XG(e.plugins,tY.plugins),n=XG(e.sensors,tY.sensors),r=XG(e.modifiers,tY.modifiers);super(Tq(wq({},e),{plugins:[NDe,FJ,tJ,...t],sensors:n,modifiers:r}))}},rY,iY,aY,oY,sY,cY,lY=class extends (aY=eG,iY=[$H],rY=[$H],aY){constructor(e,t){var n=e,{element:r,effects:i=()=>[],handle:a}=n,o=Dq(n,[`element`,`effects`,`handle`]);super(wq({effects:()=>[...i(),()=>{let{manager:e}=this;if(!e)return;let t=(this.sensors?.map(bW)??[...e.sensors]).map(t=>{let n=t instanceof DG?t:e.registry.register(t.plugin),r=t instanceof DG?void 0:t.options;return n.bind(this,r)});return function(){t.forEach(e=>e())}}]},o),t),Iq(this,sY,Mq(oY,8,this)),Mq(oY,11,this),Iq(this,cY,Mq(oY,12,this)),Mq(oY,15,this),this.element=r,this.handle=a}};oY=Oq(aY),sY=new WeakMap,cY=new WeakMap,Nq(oY,4,`handle`,iY,lY,sY),Nq(oY,4,`element`,rY,lY,cY),jq(oY,lY);var uY,dY,fY,pY,mY,hY,gY,_Y,vY,yY,bY=class extends (fY=mG,dY=[$H],uY=[$H],fY){constructor(e,t){var n=e,{element:r,effects:i=()=>[]}=n,a=Dq(n,[`element`,`effects`]);let{collisionDetector:o=XEe}=a,s=e=>{let{manager:t,element:n}=this;if(!n||e===null){this.shape=void 0;return}if(!t)return;let r=new dq(n),i=_H(()=>this.shape);return r&&i?.equals(r)?i:(this.shape=r,r)},c=EH(!1);super(Tq(wq({},a),{collisionDetector:o,effects:()=>[...i(),()=>{let{element:e,manager:t}=this;if(!t)return;let{dragOperation:n}=t,{source:r}=n;c.value=!!(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{let{element:e}=this;if(c.value&&e){let t=new xEe(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{if(this.manager?.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),Iq(this,vY),Iq(this,mY,Mq(pY,8,this)),Mq(pY,11,this),Iq(this,yY,Mq(pY,12,this)),Mq(pY,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){Lq(this,vY,e,_Y)}get element(){return this.proxy??Fq(this,vY,gY)}};pY=Oq(fY),mY=new WeakMap,vY=new WeakSet,yY=new WeakMap,hY=Nq(pY,20,`#element`,dY,vY,mY),gY=hY.get,_Y=hY.set,Nq(pY,4,`proxy`,uY,bY,yY),jq(pY,bY);function UDe(e){return typeof e==`object`&&!!e&&`current`in e}function xY(e){if(e!=null)return UDe(e)?e.current??void 0:e}var SY=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0?m.useLayoutEffect:m.useEffect;function CY(){let e=(0,m.useState)(0)[1];return(0,m.useCallback)(()=>{e(e=>e+1)},[e])}function WDe(e,t=!1){let n=(0,m.useRef)(e.peek()),i=(0,m.useRef)(!1),a=CY();return SY(()=>FH(()=>{let o=n.current,s=e.value;if(o!==s){if(n.current=s,!i.current)return;t?(0,r.flushSync)(a):a()}}),[e,t,a]),{get value(){return i.current=!0,e.peek()}}}function GDe(e,t=[],n=!1){let r=(0,m.useRef)(e);return r.current=e,WDe((0,m.useMemo)(()=>ZH(()=>r.current()),t),n)}function wY(e,t){let n=(0,m.useRef)(new Map),i=CY();return SY(()=>{if(!e){n.current.clear();return}return FH(()=>{let a=!1,o=!1;for(let r of n.current){let[i]=r,s=_H(()=>r[1]),c=e[i];s!==c&&(a=!0,n.current.set(i,c),o=t?.(i,s,c)??!1)}a&&(o?queueMicrotask(()=>(0,r.flushSync)(i)):i())})},[e]),(0,m.useMemo)(()=>e&&new Proxy(e,{get(e,t){let r=e[t];return n.current.set(t,r),r}}),[e])}function TY(e){let t=(0,m.useRef)(e);return SY(()=>{t.current=e},[e]),t}function EY(e,t,n=m.useEffect,r=Object.is){let i=(0,m.useRef)(e);n(()=>{let n=i.current;r(e,n)||(i.current=e,t(e,n))},[t,e])}function DY(e,t){let n=(0,m.useRef)(xY(e));SY(()=>{let r=xY(e);r!==n.current&&(n.current=r,t(r))})}var KDe=Object.defineProperty,qDe=Object.defineProperties,JDe=Object.getOwnPropertyDescriptors,OY=Object.getOwnPropertySymbols,kY=Object.prototype.hasOwnProperty,AY=Object.prototype.propertyIsEnumerable,jY=(e,t,n)=>t in e?KDe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,MY=(e,t)=>{for(var n in t||={})kY.call(t,n)&&jY(e,n,t[n]);if(OY)for(var n of OY(t))AY.call(t,n)&&jY(e,n,t[n]);return e},NY=(e,t)=>qDe(e,JDe(t)),YDe=(e,t)=>{var n={};for(var r in e)kY.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&OY)for(var r of OY(e))t.indexOf(r)<0&&AY.call(e,r)&&(n[r]=e[r]);return n},XDe=new nY,PY=(0,m.createContext)(XDe),ZDe=(0,m.memo)((0,m.forwardRef)(({children:e},t)=>{let[n,r]=(0,m.useState)(0),i=(0,m.useRef)(null),a=(0,m.useRef)(null),o=(0,m.useMemo)(()=>({renderer:{get rendering(){return i.current??Promise.resolve()}},trackRendering(e){i.current||=new Promise(e=>{a.current=e}),(0,m.startTransition)(()=>{e(),r(e=>e+1)})}}),[]);return SY(()=>{var e;(e=a.current)==null||e.call(a),i.current=null},[e,n]),(0,m.useImperativeHandle)(t,()=>o),null})),FY=[void 0,QH];function QDe(e){var t=e,{children:r,onCollision:i,onBeforeDragStart:a,onDragStart:o,onDragMove:s,onDragOver:c,onDragEnd:l}=t,u=YDe(t,[`children`,`onCollision`,`onBeforeDragStart`,`onDragStart`,`onDragMove`,`onDragOver`,`onDragEnd`]);let d=(0,m.useRef)(null),{plugins:f,modifiers:p,sensors:h}=u,g=XG(f,tY.plugins),_=XG(h,tY.sensors),v=XG(p,tY.modifiers),y=TY(a),b=TY(o),x=TY(c),S=TY(s),C=TY(l),w=TY(i),T=$De(()=>u.manager??new nY(u));return(0,m.useEffect)(()=>{if(!d.current)throw Error(`Renderer not found`);let{renderer:e,trackRendering:t}=d.current,{monitor:n}=T;T.renderer=e;let r=[n.addEventListener(`beforedragstart`,e=>{let n=y.current;n&&t(()=>n(e,T))}),n.addEventListener(`dragstart`,e=>b.current?.call(b,e,T)),n.addEventListener(`dragover`,e=>{let n=x.current;n&&t(()=>n(e,T))}),n.addEventListener(`dragmove`,e=>{let n=S.current;n&&t(()=>n(e,T))}),n.addEventListener(`dragend`,e=>{let n=C.current;n&&t(()=>n(e,T))}),n.addEventListener(`collision`,e=>w.current?.call(w,e,T))];return()=>r.forEach(e=>e())},[T]),EY(g,()=>T&&(T.plugins=g),...FY),EY(_,()=>T&&(T.sensors=_),...FY),EY(v,()=>T&&(T.modifiers=v),...FY),(0,n.jsxs)(PY.Provider,{value:T,children:[(0,n.jsx)(ZDe,{ref:d,children:r}),r]})}function $De(e){let t=(0,m.useRef)(null);return t.current||=e(),(0,m.useInsertionEffect)(()=>()=>t.current?.destroy(),[]),t.current}function IY(){return(0,m.useContext)(PY)}function LY(e){let t=IY()??void 0,[n]=(0,m.useState)(()=>e(t));return n.manager!==t&&(n.manager=t),SY(n.register,[t,n]),n}function eOe(e){let{disabled:t,data:n,element:r,handle:i,id:a,modifiers:o,sensors:s,plugins:c}=e,l=LY(t=>new lY(NY(MY({},e),{register:!1,handle:xY(i),element:xY(r)}),t)),u=wY(l,tOe);return EY(a,()=>l.id=a),DY(i,e=>l.handle=e),DY(r,e=>l.element=e),EY(n,()=>n&&(l.data=n)),EY(t,()=>l.disabled=t===!0),EY(s,()=>l.sensors=s,void 0,QH),EY(o,()=>l.modifiers=o,void 0,QH),EY(c,()=>l.plugins=c,void 0,QH),EY(e.alignment,()=>l.alignment=e.alignment),{draggable:u,get isDragging(){return u.isDragging},get isDropping(){return u.isDropping},get isDragSource(){return u.isDragSource},handleRef:(0,m.useCallback)(e=>{l.handle=e??void 0},[l]),ref:(0,m.useCallback)(e=>{!e&&l.element?.isConnected&&!l.manager?.dragOperation.status.idle||(l.element=e??void 0)},[l])}}function tOe(e,t,n){return!!(e===`isDragSource`&&!n&&t)}function nOe({children:e,className:t,dropAnimation:r,style:i,tag:a,disabled:o}){let s=(0,m.useRef)(null),c=IY(),l=GDe(()=>c?.dragOperation.source,[c]).value??null,u=typeof o==`function`?o(l):o;(0,m.useEffect)(()=>{if(!s.current||!c||u)return;let e=c.plugins.find(e=>e instanceof vJ);if(e)return e.overlay=s.current,()=>{e.overlay=void 0}},[c,u]),(0,m.useEffect)(()=>{if(!c)return;let e=c.plugins.find(e=>e instanceof vJ);if(e)return e.dropAnimation=r,()=>{e.dropAnimation=void 0}},[c,r]);let d=(0,m.useMemo)(()=>{if(!c)return null;let e=new Proxy(c.registry,{get(e,t){return t===`register`||t===`unregister`?rOe:e[t]}});return new Proxy(c,{get(t,n){return n===`registry`?e:t[n]}})},[c]);return(0,n.jsx)(PY.Provider,{value:d,children:(0,m.createElement)(a||`div`,{ref:s,className:t,style:i,"data-dnd-overlay":!0},f())});function f(){return!l||u?null:typeof e==`function`?(0,n.jsx)(iOe,{source:l,children:e}):e}}function rOe(){return()=>{}}function iOe({children:e,source:t}){return e(wY(t))}var aOe=Object.create,RY=Object.defineProperty,oOe=Object.getOwnPropertyDescriptor,zY=(e,t)=>(t=Symbol[e])?t:Symbol.for(`Symbol.`+e),BY=e=>{throw TypeError(e)},sOe=(e,t,n)=>t in e?RY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cOe=e=>[,,,aOe(e?.[zY(`metadata`)]??null)],VY=[`class`,`method`,`getter`,`setter`,`accessor`,`field`,`value`,`get`,`set`],HY=e=>e!==void 0&&typeof e!=`function`?BY(`Function expected`):e,lOe=(e,t,n,r,i)=>({kind:VY[e],name:t,metadata:r,addInitializer:e=>n._?BY(`Already initialized`):i.push(HY(e||null))}),uOe=(e,t)=>sOe(t,zY(`metadata`),e[3]),dOe=(e,t,n,r)=>{for(var i=0,a=e[t>>1],o=a&&a.length;i<o;i++)a[i].call(n);return r},UY=(e,t,n,r,i,a)=>{for(var o,s,c,l,u=t&7,d=!1,f=!1,p=2,m=VY[u+5],h=e[p]||(e[p]=[]),g=(i=i.prototype,oOe(i,n)),_=r.length-1;_>=0;_--)c=lOe(u,n,s={},e[3],h),c.static=d,c.private=f,l=c.access={has:e=>n in e},l.get=e=>e[n],o=(0,r[_])(g[m],c),s._=1,HY(o)&&(g[m]=o);return g&&RY(i,n,g),i},WY=(e,t,n)=>t.has(e)||BY(`Cannot `+n),fOe=(e,t,n)=>(WY(e,t,`read from private field`),t.get(e)),pOe=(e,t,n)=>t.has(e)?BY(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),mOe=(e,t,n,r)=>(WY(e,t,`write to private field`),t.set(e,n),n),GY=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},KY,qY,JY,YY,XY,ZY=class extends (JY=SU,qY=[eU],KY=[eU],JY){constructor(e){let t=GY.from(e);super(t,(e,t)=>GY.equals(e,t)),dOe(XY,5,this),pOe(this,YY,0),this.velocity={x:0,y:0}}get delta(){return GY.delta(this.current,this.initial)}get direction(){let{current:e,previous:t}=this;if(!t)return null;let n={x:e.x-t.x,y:e.y-t.y};return!n.x&&!n.y?null:Math.abs(n.x)>Math.abs(n.y)?n.x>0?`right`:`left`:n.y>0?`down`:`up`}get current(){return super.current}set current(e){let{current:t}=this,n=GY.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),a=i-fOe(this,YY),o=e=>Math.round(e/a*100);mH(()=>{mOe(this,YY,i),this.velocity={x:o(r.x),y:o(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(GY.from(e)),this.velocity={x:0,y:0}}};XY=cOe(JY),YY=new WeakMap,UY(XY,2,`delta`,qY,ZY),UY(XY,2,`direction`,KY,ZY),uOe(XY,ZY);var QY=(e=>(e.Horizontal=`x`,e.Vertical=`y`,e))(QY||{});Object.values(QY);var hOe=({dragOperation:e,droppable:t})=>{let n=e.position.current;if(!n)return null;let{id:r}=t;return t.shape&&t.shape.containsPoint(n)?{id:r,value:1/GY.distance(t.shape.center,n),type:_G.PointerIntersection,priority:gG.High}:null},gOe=({dragOperation:e,droppable:t})=>{let{shape:n}=e;if(!t.shape||!n?.current)return null;let r=n.current.intersectionArea(t.shape);if(r){let{position:i}=e,a=GY.distance(t.shape.center,i.current),o=r/(n.current.area+t.shape.area-r)/a;return{id:t.id,value:o,type:_G.ShapeIntersection,priority:gG.Normal}}return null},_Oe=e=>hOe(e)??gOe(e);function $Y(e){let{collisionDetector:t,data:n,disabled:r,element:i,id:a,accept:o,type:s}=e,c=LY(t=>new bY(NY(MY({},e),{register:!1,element:xY(i)}),t)),l=wY(c);return EY(a,()=>c.id=a),DY(i,e=>c.element=e),EY(o,()=>c.accept=o,void 0,QH),EY(t,()=>c.collisionDetector=t??_Oe),EY(n,()=>n&&(c.data=n)),EY(r,()=>c.disabled=r===!0),EY(s,()=>c.type=s),{droppable:l,get isDropTarget(){return l.isDropTarget},ref:(0,m.useCallback)(e=>{!e&&c.element?.isConnected&&!c.manager?.dragOperation.status.idle||(c.element=e??void 0)},[c])}}var eX=m.default.createContext(null),tX=({onDNDStart:e,onDNDEnd:t,className:r,children:i,ref:a,...o})=>{let s=C7(),[c,l]=m.default.useState(null);return(0,n.jsx)(QDe,{onDragStart:({operation:{source:t}})=>{l(t?.data.nodeId??null),e&&e({nodeId:t?.data.nodeId??``})},onDragEnd:({operation:{source:e,target:n}})=>{if(l(null),t){let r=n?.data.folderId??n?.data.nodeId??null;t({sourceNodeId:e?.data.nodeId??``,targetNodeId:r})}},plugins:e=>[...e,vJ.configure({dropAnimation:null})],children:(0,n.jsx)(eX.Provider,{value:{className:r,children:i,ref:a,draggingNodeId:c,...o},children:(0,n.jsxs)(`div`,{className:X(`flex flex-col justify-between`,r),ref:a,...o,children:[i,(0,n.jsx)(nOe,{children:e=>(0,n.jsxs)(`div`,{className:X(`relative rounded-md border border-neutral-border bg-neutral-container px-xs py-3xs opacity-80 shadow-md transition-opacity`),children:[s.getRow(String(e.id)).renderValue(`name`)??e.id,(0,n.jsx)(Yv,{className:`absolute -top-xs -right-xs`,size:`iconSmall`,tone:`neutral`,children:s.getRow(String(e.id))?.subRows.length+1})]})})]})})})},nX=()=>{let e=m.default.useContext(eX);if(!e)throw Error(`useLayerTree must be used within a LayerTreeProvider`);return e},rX=({rowId:e,className:t,children:r,ref:i,...a})=>{let o=C7();return(0,n.jsx)(o.Subscribe,{selector:e=>({expanded:e.expanded,rowSelection:e.rowSelection,rowVisibility:e.rowVisibility}),children:()=>{let s=o.getRowModel().rows.find(t=>t.id===e),c=(s?.depth??0)*24,l=s?.getLeafRows()??[],u=l.length>0?l.some(e=>e.getIsVisible()):s?.getIsVisible()??!0;return(0,n.jsxs)(`div`,{className:X(`flex w-full items-center gap-3xs`,t),ref:i,...a,children:[r,s?.getVisibleCells().map((e,t)=>{let r=t===0,i=e.column.columnDef.meta?.fill??e.column.id===`name`;return(0,n.jsx)(o.AppCell,{cell:e,children:e=>(0,n.jsx)(`div`,{style:{marginLeft:r?c:void 0,opacity:u?1:.5},className:X(`flex items-center`,i?`min-w-0 grow gap-3xs`:`w-fit shrink-0`),children:(0,n.jsx)(o.FlexRender,{cell:e})})},e.id)})]})}})},iX=({className:e,children:t,...r})=>{let i=C7(),{isDropTarget:a,ref:o}=$Y({id:`root-dropzone`,data:{folderId:`root`,nodeId:`root`}});return(0,n.jsx)(i.Subscribe,{selector:e=>e,children:()=>(0,n.jsxs)(`div`,{className:X(`flex min-h-0 w-full grow flex-col`,e),...r,children:[t,(0,n.jsx)(`ul`,{className:`flex min-h-0 w-full flex-col gap-xs overflow-y-auto`,children:i.getRowModel().rows.map(e=>(0,n.jsx)(rX,{rowId:e.id},e.id))}),(0,n.jsx)(`div`,{ref:o,className:X(`grow`,a&&`rounded-lg bg-success-container ring-1 ring-success-default ring-inset`)})]})})},aX=({className:e,ref:t,...r})=>{let i=C7(),a=()=>{i.getIsSomeRowsExpanded()?i.toggleAllRowsExpanded(!1):i.toggleAllRowsExpanded(!0)};return(0,n.jsx)(i.Subscribe,{selector:e=>e.expanded,children:()=>(0,n.jsx)(Wv,{size:`iconMedium`,tone:`neutral`,variant:`ghost`,onClick:a,className:X(``,e),ref:t,...r,children:i.getIsSomeRowsExpanded()?(0,n.jsx)(si,{weight:`bold`}):(0,n.jsx)(ci,{weight:`bold`})})})},oX=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex flex-col gap-3xs`,e),ref:r,...i,children:t}),sX=({className:e,children:t,ref:r,...i})=>{let a=w7(),o=C7(),s=a.getValue(),c=a.row,l=c.getCanExpand()&&c.getLeafRows().length>0;return(0,n.jsx)(o.Subscribe,{selector:e=>e.expanded,children:()=>{let a=c.getIsExpanded();return(0,n.jsxs)(`div`,{className:X(`flex w-fit shrink-0 items-center [&>svg]:size-sm`,e),ref:r,...i,children:[t,l?a?(0,n.jsx)(si,{}):(0,n.jsx)(oi,{weight:l&&`fill`}):(0,m.createElement)(s,{weight:`bold`})]})}})},cX=({className:e,children:t,ref:r,...i})=>{let a=C7(),o=a.getCoreRowModel().flatRows,s=e=>{let t=!e;for(let e of o)e.toggleLocked(t)};return(0,n.jsx)(a.Subscribe,{selector:e=>e.rowLocked,children:()=>{let a=o.some(e=>e.getIsLocked());return(0,n.jsxs)(Wv,{size:`iconSmall`,tone:`neutral`,variant:`ghost`,onClick:()=>s(a),className:X(``,e),ref:r,...i,children:[t,a?(0,n.jsx)(fi,{weight:`fill`}):(0,n.jsx)(pi,{weight:`bold`})]})}})},lX=({className:e,children:t,ref:r,...i})=>{let a=w7(),o=C7(),s=a.row,c=s.getLeafRows(),l=c.length>0?c:[s],u=e=>{let t=!e;for(let e of l)e.toggleLocked(t)};return(0,n.jsx)(o.Subscribe,{selector:e=>e.rowLocked,children:()=>{let a=l.every(e=>e.getIsLocked());return(0,n.jsxs)(Wv,{size:`iconSmall`,tone:`neutral`,variant:`ghost`,onClick:()=>u(a),className:X(``,e),ref:r,...i,children:[t,a?(0,n.jsx)(fi,{weight:`fill`}):(0,n.jsx)(pi,{weight:`bold`})]})}})},uX=({placeholder:e,className:t,children:r,ref:i,...a})=>{let o=C7();return(0,n.jsx)(o.Subscribe,{selector:e=>e.globalFilter,children:s=>(0,n.jsxs)(jP,{className:X(``,t),ref:i,...a,children:[(0,n.jsx)(MP,{children:(0,n.jsx)(mi,{weight:`bold`})}),(0,n.jsx)(NP,{placeholder:e,onChange:e=>o.setGlobalFilter(e.target.value),value:s??``}),r]})})},dX=({children:e,...t})=>(0,n.jsx)(Hf,{...t,children:e}),fX=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(xf,{className:X(`rounded-md`,`grid cursor-default grid-cols-[1fr_2rem] items-center px-2xs py-3xs style-text-default-0 outline-none select-none before:absolute before:inset-[0px] before:z-[-1] before:rounded-md before:content-[""] hover:cursor-pointer data-highlighted:relative data-highlighted:z-0 data-highlighted:text-neutral-on-container data-highlighted:before:bg-neutral-container-high`,e),ref:r,...i,children:[(0,n.jsx)(`span`,{className:`col-start-1 flex items-center gap-2xs`,children:t}),(0,n.jsx)(Sf,{className:`col-start-2 flex items-center justify-center place-self-end self-center`,children:(0,n.jsx)(Zr,{className:`size-sm`,weight:`bold`})})]}),vOe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(wf,{className:X(``,e),ref:r,...i,children:t}),yOe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Tf,{className:X(`cursor-default px-2xs py-3xs style-text-default--2 text-on-surface-variant select-none`,e),ref:r,...i,children:t}),bOe=Gn(`flex cursor-default items-center px-sm py-3xs style-text-default-0 outline-none select-none before:outline before:outline-transparent hover:cursor-pointer data-highlighted:relative data-highlighted:z-0 data-highlighted:before:absolute data-highlighted:before:inset-x-3xs data-highlighted:before:inset-y-[0px] data-highlighted:before:z-[-1] data-highlighted:before:rounded-md`,{variants:{tone:{brand:`text-brand-default data-highlighted:text-brand-on-container data-highlighted:before:bg-brand-container`,accent:`text-accent-default data-highlighted:text-accent-on-container data-highlighted:before:bg-accent-container`,neutral:`text-on-surface data-highlighted:text-neutral-on-container data-highlighted:before:bg-neutral-container-high`,error:`text-error-default data-highlighted:text-error-on-container data-highlighted:before:bg-error-container`,info:`text-info-default data-highlighted:text-info-on-container data-highlighted:before:bg-info-container`,success:`text-success-default data-highlighted:text-success-on-container data-highlighted:before:bg-success-container`,warning:`text-warning-default data-highlighted:text-warning-on-container data-highlighted:before:bg-warning-container`}},defaultVariants:{tone:`neutral`}}),xOe=Gn(`grid cursor-default grid-cols-[1fr_2rem] items-center px-sm py-3xs style-text-default-0 outline-none select-none before:outline before:outline-transparent hover:cursor-pointer data-highlighted:relative data-highlighted:z-0 data-highlighted:before:absolute data-highlighted:before:inset-x-3xs data-highlighted:before:inset-y-[0px] data-highlighted:before:z-[-1] data-highlighted:before:rounded-md data-popup-open:relative data-popup-open:z-0 data-popup-open:before:absolute data-popup-open:before:inset-x-3xs data-popup-open:before:inset-y-[0px] data-popup-open:before:z-[-1] data-popup-open:before:rounded-sm`,{variants:{tone:{brand:`text-brand-default data-highlighted:text-brand-on-container data-highlighted:before:bg-brand-container data-popup-open:text-brand-on-container data-popup-open:before:bg-brand-container data-[highlighted]:data-[popup-open]:before:bg-brand-container`,accent:`text-accent-default data-highlighted:text-accent-on-container data-highlighted:before:bg-accent-container data-popup-open:text-accent-on-container data-popup-open:before:bg-accent-container data-[highlighted]:data-[popup-open]:before:bg-accent-container`,neutral:`text-on-surface data-highlighted:text-neutral-on-container data-highlighted:before:bg-neutral-container-high data-popup-open:text-neutral-on-container data-popup-open:before:bg-neutral-container-high data-[highlighted]:data-[popup-open]:before:bg-neutral-container-high`,error:`text-error-default data-highlighted:text-error-on-container data-highlighted:before:bg-error-container data-popup-open:text-error-on-container data-popup-open:before:bg-error-container data-[highlighted]:data-[popup-open]:before:bg-error-container`,info:`text-info-default data-highlighted:text-info-on-container data-highlighted:before:bg-info-container data-popup-open:text-info-on-container data-popup-open:before:bg-info-container data-[highlighted]:data-[popup-open]:before:bg-info-container`,success:`text-success-default data-highlighted:text-success-on-container data-highlighted:before:bg-success-container data-popup-open:text-success-on-container data-popup-open:before:bg-success-container data-[highlighted]:data-[popup-open]:before:bg-success-container`,warning:`text-warning-default data-highlighted:text-warning-on-container data-highlighted:before:bg-warning-container data-popup-open:text-warning-on-container data-popup-open:before:bg-warning-container data-[highlighted]:data-[popup-open]:before:bg-warning-container`}},defaultVariants:{tone:`neutral`}}),pX=({tone:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(Ef,{className:X(bOe({tone:e}),t),ref:i,...a,children:(0,n.jsx)(`div`,{className:`flex w-full items-center gap-2xs [&>svg]:size-sm`,children:r})}),mX=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(jf,{children:(0,n.jsx)(Mf,{className:X(`outline-none`,e),ref:r,sideOffset:8,...i,children:(0,n.jsx)(kf,{className:`z-99 w-[calc(100%+var(--spacing-xl))] origin-(--transform-origin) translate-x-[-calc(var(--spacing-xl)/2)] rounded-lg bg-surface-2 px-3xs py-2xs shadow-md transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0`,children:t})})}),hX=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Pf,{className:X(``,e),ref:r,...i,children:t}),gX=({className:e,children:t,ref:r,...i})=>(0,n.jsxs)(If,{className:X(`rounded-md`,`grid cursor-default grid-cols-[1fr_2rem] items-center px-2xs py-3xs style-text-default-0 outline-none select-none before:absolute before:inset-[0px] before:z-[-1] before:rounded-md before:content-[""] hover:cursor-pointer data-highlighted:relative data-highlighted:z-0 data-highlighted:text-neutral-on-container data-highlighted:before:bg-neutral-container-high`,e),ref:r,...i,children:[(0,n.jsx)(`span`,{className:`col-start-1 min-w-3xl`,children:t}),(0,n.jsx)(Lf,{className:`col-start-2 flex items-center justify-center place-self-end self-center`,children:(0,n.jsx)(Zr,{className:`size-sm`,weight:`bold`})})]}),SOe=({className:e,ref:t,...r})=>(0,n.jsx)(rp,{className:X(`mx-2xs my-3xs h-px bg-border-strong`,e),ref:t,...r}),COe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`ml-auto inline-flex items-center gap-3xs`,e),ref:r,...i,children:t}),_X=({children:e,...t})=>(0,n.jsx)(Uf,{...t,children:e}),vX=({tone:e,className:t,children:r,ref:i,...a})=>(0,n.jsxs)(ap,{className:X(xOe({tone:e}),t),ref:i,...a,children:[(0,n.jsx)(`span`,{className:`col-start-1 min-w-3xl pr-2xl`,children:r}),(0,n.jsx)(Jr,{className:`col-start-2 size-xs place-self-end self-center`,weight:`bold`})]}),yX=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Jf,{className:X(`data-popup-open:pointer-events-none`,e),ref:r,...i,render:t}),bX=({className:e,children:t,ref:r,...i})=>{let a=C7(),o=a.options.meta?.translations?.buttonLabels??{},s=o.ascending??`Ascending`,c=o.descending??`Descending`,l=(e,t)=>{let n=a.getColumn(e);if(n?.getIsSorted()===t){n?.clearSorting();return}n?.toggleSorting(t===`desc`,n.getCanMultiSort())};return(0,n.jsxs)(dX,{children:[(0,n.jsx)(yX,{className:X(`shrink-0`,e),ref:r,...i,children:(0,n.jsx)(Wv,{variant:`ghost`,size:`iconMedium`,tone:`neutral`,children:(0,n.jsx)(Ur,{weight:`bold`})})}),(0,n.jsx)(mX,{align:`end`,children:(0,n.jsx)(a.Subscribe,{selector:e=>e.sorting,children:()=>a.getAllColumns().filter(e=>e.getCanSort()).map(e=>(0,n.jsxs)(_X,{children:[(0,n.jsx)(vX,{children:e.columnDef.header??e.id}),(0,n.jsxs)(mX,{children:[t,(0,n.jsxs)(fX,{checked:e.getIsSorted()===`asc`,onClick:()=>l(e.id,`asc`),children:[(0,n.jsx)(yi,{weight:`bold`}),s]}),(0,n.jsxs)(fX,{checked:e.getIsSorted()===`desc`,onClick:()=>l(e.id,`desc`),children:[(0,n.jsx)(vi,{weight:`bold`}),c]})]})]},e.id))})})]})},xX,SX=Object.freeze({status:`aborted`});function $(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,"name",{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var CX=Symbol(`zod_brand`),wX=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},TX=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(xX=globalThis).__zod_globalConfig??(xX.__zod_globalConfig={});var EX=globalThis.__zod_globalConfig;function DX(e){return e&&Object.assign(EX,e),EX}var OX=d({BIGINT_FORMAT_RANGES:()=>tZ,Class:()=>HOe,NUMBER_FORMAT_RANGES:()=>eZ,aborted:()=>lZ,allowsEval:()=>WX,assert:()=>OOe,assertEqual:()=>wOe,assertIs:()=>EOe,assertNever:()=>DOe,assertNotEqual:()=>TOe,assignProp:()=>RX,base64ToUint8Array:()=>vZ,base64urlToUint8Array:()=>ROe,cached:()=>MX,captureStackTrace:()=>HX,cleanEnum:()=>LOe,cleanRegex:()=>PX,clone:()=>XX,cloneDef:()=>AOe,createTransparentProxy:()=>IOe,defineLazy:()=>LX,esc:()=>BX,escapeRegex:()=>YX,explicitlyAborted:()=>uZ,extend:()=>iZ,finalizeIssue:()=>pZ,floatSafeRemainder:()=>FX,getElementAtPath:()=>jOe,getEnumValues:()=>kX,getLengthableOrigin:()=>hZ,getParsedType:()=>FOe,getSizableOrigin:()=>mZ,hexToUint8Array:()=>BOe,isObject:()=>UX,isPlainObject:()=>GX,issue:()=>_Z,joinValues:()=>AX,jsonStringifyReplacer:()=>jX,merge:()=>oZ,mergeDefs:()=>zX,normalizeParams:()=>ZX,nullish:()=>NX,numKeys:()=>POe,objectClone:()=>kOe,omit:()=>rZ,optionalKeys:()=>$X,parsedType:()=>gZ,partial:()=>sZ,pick:()=>nZ,prefixIssues:()=>dZ,primitiveTypes:()=>JX,promiseAllObject:()=>MOe,propertyKeyTypes:()=>qX,randomString:()=>NOe,required:()=>cZ,safeExtend:()=>aZ,shallowClone:()=>KX,slugify:()=>VX,stringifyPrimitive:()=>QX,uint8ArrayToBase64:()=>yZ,uint8ArrayToBase64url:()=>zOe,uint8ArrayToHex:()=>VOe,unwrapMessage:()=>fZ});function wOe(e){return e}function TOe(e){return e}function EOe(e){}function DOe(e){throw Error(`Unexpected value in exhaustive check`)}function OOe(e){}function kX(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function AX(e,t=`|`){return e.map(e=>QX(e)).join(t)}function jX(e,t){return typeof t==`bigint`?t.toString():t}function MX(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function NX(e){return e==null}function PX(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function FX(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var IX=Symbol(`evaluating`);function LX(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==IX)return r===void 0&&(r=IX,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function kOe(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function RX(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function zX(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function AOe(e){return zX(e._zod.def)}function jOe(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function MOe(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})}function NOe(e=10){let t=``;for(let n=0;n<e;n++)t+=`abcdefghijklmnopqrstuvwxyz`[Math.floor(Math.random()*26)];return t}function BX(e){return JSON.stringify(e)}function VX(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var HX=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function UX(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var WX=MX(()=>{if(EX.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function GX(e){if(UX(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return UX(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function KX(e){return GX(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function POe(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var FOe=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},qX=new Set([`string`,`number`,`symbol`]),JX=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]);function YX(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function XX(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function ZX(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function IOe(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function QX(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function $X(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var eZ={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},tZ={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function nZ(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return XX(e,zX(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return RX(this,`shape`,e),e},checks:[]}))}function rZ(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return XX(e,zX(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return RX(this,`shape`,r),r},checks:[]}))}function iZ(e,t){if(!GX(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return XX(e,zX(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return RX(this,`shape`,n),n}}))}function aZ(e,t){if(!GX(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return XX(e,zX(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return RX(this,`shape`,n),n}}))}function oZ(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return XX(e,zX(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return RX(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function sZ(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return XX(t,zX(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return RX(this,`shape`,i),i},checks:[]}))}function cZ(e,t,n){return XX(t,zX(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return RX(this,`shape`,i),i}}))}function lZ(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function uZ(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function dZ(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function fZ(e){return typeof e==`string`?e:e?.message}function pZ(e,t,n){let r=e.message?e.message:fZ(e.inst?._zod.def?.error?.(e))??fZ(t?.error?.(e))??fZ(n.customError?.(e))??fZ(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function mZ(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function hZ(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function gZ(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function _Z(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function LOe(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function vZ(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function yZ(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function ROe(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return vZ(t+`=`.repeat((4-t.length%4)%4))}function zOe(e){return yZ(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function BOe(e){let t=e.replace(/^0x/,``);if(t.length%2!=0)throw Error(`Invalid hex string length`);let n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n}function VOe(e){return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var HOe=class{constructor(...e){}},bZ=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,jX,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},xZ=$(`$ZodError`,bZ),SZ=$(`$ZodError`,bZ,{Parent:Error});function CZ(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function wZ(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i];i===e.length-1?(r[n]=r[n]||{_errors:[]},r[n]._errors.push(t(a))):r[n]=r[n]||{_errors:[]},r=r[n],i++}}}};return r(e),n}function TZ(e,t=e=>e.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;c<e.length;){let n=e[c],i=c===e.length-1;typeof n==`string`?(r.properties??(r.properties={}),(a=r.properties)[n]??(a[n]={errors:[]}),r=r.properties[n]):(r.items??(r.items=[]),(o=r.items)[n]??(o[n]={errors:[]}),r=r.items[n]),i&&r.errors.push(t(s)),c++}}};return r(e),n}function EZ(e){let t=[],n=e.map(e=>typeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function DZ(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${EZ(e.path)}`);return t.join(`
134
- `)}var OZ=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new wX;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>pZ(e,a,DX())));throw HX(t,i?.callee),t}return o.value},kZ=OZ(SZ),AZ=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>pZ(e,a,DX())));throw HX(t,i?.callee),t}return o.value},jZ=AZ(SZ),MZ=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new wX;return a.issues.length?{success:!1,error:new(e??xZ)(a.issues.map(e=>pZ(e,i,DX())))}:{success:!0,data:a.value}},NZ=MZ(SZ),PZ=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>pZ(e,i,DX())))}:{success:!0,data:a.value}},FZ=PZ(SZ),IZ=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return OZ(e)(t,n,i)},UOe=IZ(SZ),LZ=e=>(t,n,r)=>OZ(e)(t,n,r),WOe=LZ(SZ),RZ=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return AZ(e)(t,n,i)},GOe=RZ(SZ),zZ=e=>async(t,n,r)=>AZ(e)(t,n,r),KOe=zZ(SZ),BZ=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return MZ(e)(t,n,i)},qOe=BZ(SZ),VZ=e=>(t,n,r)=>MZ(e)(t,n,r),JOe=VZ(SZ),HZ=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return PZ(e)(t,n,i)},YOe=HZ(SZ),UZ=e=>async(t,n,r)=>PZ(e)(t,n,r),XOe=UZ(SZ),WZ=d({base64:()=>cQ,base64url:()=>lQ,bigint:()=>bQ,boolean:()=>CQ,browserEmail:()=>ike,cidrv4:()=>oQ,cidrv6:()=>sQ,cuid:()=>GZ,cuid2:()=>KZ,date:()=>hQ,datetime:()=>vQ,domain:()=>dQ,duration:()=>ZZ,e164:()=>pQ,email:()=>eQ,emoji:()=>nQ,extendedDuration:()=>ZOe,guid:()=>QZ,hex:()=>OQ,hostname:()=>uQ,html5Email:()=>tke,httpProtocol:()=>fQ,idnEmail:()=>rke,integer:()=>xQ,ipv4:()=>rQ,ipv6:()=>iQ,ksuid:()=>YZ,lowercase:()=>EQ,mac:()=>aQ,md5_base64:()=>ske,md5_base64url:()=>cke,md5_hex:()=>oke,nanoid:()=>XZ,null:()=>wQ,number:()=>SQ,rfc5322Email:()=>nke,sha1_base64:()=>uke,sha1_base64url:()=>dke,sha1_hex:()=>lke,sha256_base64:()=>pke,sha256_base64url:()=>mke,sha256_hex:()=>fke,sha384_base64:()=>gke,sha384_base64url:()=>_ke,sha384_hex:()=>hke,sha512_base64:()=>yke,sha512_base64url:()=>bke,sha512_hex:()=>vke,string:()=>yQ,time:()=>_Q,ulid:()=>qZ,undefined:()=>TQ,unicodeEmail:()=>tQ,uppercase:()=>DQ,uuid:()=>$Z,uuid4:()=>QOe,uuid6:()=>$Oe,uuid7:()=>eke,xid:()=>JZ}),GZ=/^[cC][0-9a-z]{6,}$/,KZ=/^[0-9a-z]+$/,qZ=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,JZ=/^[0-9a-vA-V]{20}$/,YZ=/^[A-Za-z0-9]{27}$/,XZ=/^[a-zA-Z0-9_-]{21}$/,ZZ=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ZOe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,QZ=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$Z=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,QOe=$Z(4),$Oe=$Z(6),eke=$Z(7),eQ=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tke=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,nke=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,tQ=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,rke=tQ,ike=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ake=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function nQ(){return new RegExp(ake,`u`)}var rQ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iQ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,aQ=e=>{let t=YX(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},oQ=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,sQ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,cQ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,lQ=/^[A-Za-z0-9_-]*$/,uQ=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,dQ=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,fQ=/^https?$/,pQ=/^\+[1-9]\d{6,14}$/,mQ=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,hQ=RegExp(`^${mQ}$`);function gQ(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function _Q(e){return RegExp(`^${gQ(e)}$`)}function vQ(e){let t=gQ({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${mQ}T(?:${r})$`)}var yQ=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},bQ=/^-?\d+n?$/,xQ=/^-?\d+$/,SQ=/^-?\d+(?:\.\d+)?$/,CQ=/^(?:true|false)$/i,wQ=/^null$/i,TQ=/^undefined$/i,EQ=/^[^A-Z]*$/,DQ=/^[^a-z]*$/,OQ=/^[0-9a-fA-F]*$/;function kQ(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function AQ(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var oke=/^[0-9a-fA-F]{32}$/,ske=kQ(22,`==`),cke=AQ(22),lke=/^[0-9a-fA-F]{40}$/,uke=kQ(27,`=`),dke=AQ(27),fke=/^[0-9a-fA-F]{64}$/,pke=kQ(43,`=`),mke=AQ(43),hke=/^[0-9a-fA-F]{96}$/,gke=kQ(64,``),_ke=AQ(64),vke=/^[0-9a-fA-F]{128}$/,yke=kQ(86,`==`),bke=AQ(86),jQ=$(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),MQ={number:`number`,bigint:`bigint`,object:`date`},NQ=$(`$ZodCheckLessThan`,(e,t)=>{jQ.init(e,t);let n=MQ[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),PQ=$(`$ZodCheckGreaterThan`,(e,t)=>{jQ.init(e,t);let n=MQ[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),FQ=$(`$ZodCheckMultipleOf`,(e,t)=>{jQ.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):FX(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),IQ=$(`$ZodCheckNumberFormat`,(e,t)=>{jQ.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=eZ[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=xQ)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),LQ=$(`$ZodCheckBigIntFormat`,(e,t)=>{jQ.init(e,t);let[n,r]=tZ[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;a<n&&i.issues.push({origin:`bigint`,input:a,code:`too_small`,minimum:n,inclusive:!0,inst:e,continue:!t.abort}),a>r&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),RQ=$(`$ZodCheckMaxSize`,(e,t)=>{var n;jQ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NX(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:mZ(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),zQ=$(`$ZodCheckMinSize`,(e,t)=>{var n;jQ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NX(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:mZ(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),BQ=$(`$ZodCheckSizeEquals`,(e,t)=>{var n;jQ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NX(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:mZ(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),VQ=$(`$ZodCheckMaxLength`,(e,t)=>{var n;jQ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NX(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=hZ(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),HQ=$(`$ZodCheckMinLength`,(e,t)=>{var n;jQ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NX(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=hZ(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),UQ=$(`$ZodCheckLengthEquals`,(e,t)=>{var n;jQ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NX(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=hZ(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),WQ=$(`$ZodCheckStringFormat`,(e,t)=>{var n,r;jQ.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),GQ=$(`$ZodCheckRegex`,(e,t)=>{WQ.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),KQ=$(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=EQ,WQ.init(e,t)}),qQ=$(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=DQ,WQ.init(e,t)}),JQ=$(`$ZodCheckIncludes`,(e,t)=>{jQ.init(e,t);let n=YX(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),YQ=$(`$ZodCheckStartsWith`,(e,t)=>{jQ.init(e,t);let n=RegExp(`^${YX(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),XQ=$(`$ZodCheckEndsWith`,(e,t)=>{jQ.init(e,t);let n=RegExp(`.*${YX(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function ZQ(e,t,n){e.issues.length&&t.issues.push(...dZ(n,e.issues))}var QQ=$(`$ZodCheckProperty`,(e,t)=>{jQ.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>ZQ(n,e,t.property));ZQ(n,e,t.property)}}),$Q=$(`$ZodCheckMimeType`,(e,t)=>{jQ.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),e$=$(`$ZodCheckOverwrite`,(e,t)=>{jQ.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),t$=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
135
- `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
136
- `))}},n$={major:4,minor:4,patch:3},r$=$(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=n$;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=lZ(e),i;for(let a of t){if(a._zod.def.when){if(uZ(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new wX;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=lZ(e,t))});else{if(e.issues.length===t)continue;r||=lZ(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(lZ(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new wX;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new wX;return o.then(e=>t(e,r,a))}return t(o,r,a)}}LX(e,`~standard`,()=>({validate:t=>{try{let n=NZ(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return FZ(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),i$=$(`$ZodString`,(e,t)=>{r$.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??yQ(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),a$=$(`$ZodStringFormat`,(e,t)=>{WQ.init(e,t),i$.init(e,t)}),o$=$(`$ZodGUID`,(e,t)=>{t.pattern??=QZ,a$.init(e,t)}),s$=$(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=$Z(e)}else t.pattern??=$Z();a$.init(e,t)}),c$=$(`$ZodEmail`,(e,t)=>{t.pattern??=eQ,a$.init(e,t)}),l$=$(`$ZodURL`,(e,t)=>{a$.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===fQ.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),u$=$(`$ZodEmoji`,(e,t)=>{t.pattern??=nQ(),a$.init(e,t)}),d$=$(`$ZodNanoID`,(e,t)=>{t.pattern??=XZ,a$.init(e,t)}),f$=$(`$ZodCUID`,(e,t)=>{t.pattern??=GZ,a$.init(e,t)}),p$=$(`$ZodCUID2`,(e,t)=>{t.pattern??=KZ,a$.init(e,t)}),m$=$(`$ZodULID`,(e,t)=>{t.pattern??=qZ,a$.init(e,t)}),h$=$(`$ZodXID`,(e,t)=>{t.pattern??=JZ,a$.init(e,t)}),g$=$(`$ZodKSUID`,(e,t)=>{t.pattern??=YZ,a$.init(e,t)}),_$=$(`$ZodISODateTime`,(e,t)=>{t.pattern??=vQ(t),a$.init(e,t)}),v$=$(`$ZodISODate`,(e,t)=>{t.pattern??=hQ,a$.init(e,t)}),y$=$(`$ZodISOTime`,(e,t)=>{t.pattern??=_Q(t),a$.init(e,t)}),b$=$(`$ZodISODuration`,(e,t)=>{t.pattern??=ZZ,a$.init(e,t)}),x$=$(`$ZodIPv4`,(e,t)=>{t.pattern??=rQ,a$.init(e,t),e._zod.bag.format=`ipv4`}),S$=$(`$ZodIPv6`,(e,t)=>{t.pattern??=iQ,a$.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),C$=$(`$ZodMAC`,(e,t)=>{t.pattern??=aQ(t.delimiter),a$.init(e,t),e._zod.bag.format=`mac`}),w$=$(`$ZodCIDRv4`,(e,t)=>{t.pattern??=oQ,a$.init(e,t)}),T$=$(`$ZodCIDRv6`,(e,t)=>{t.pattern??=sQ,a$.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function E$(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var D$=$(`$ZodBase64`,(e,t)=>{t.pattern??=cQ,a$.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{E$(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function O$(e){if(!lQ.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return E$(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var k$=$(`$ZodBase64URL`,(e,t)=>{t.pattern??=lQ,a$.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{O$(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),A$=$(`$ZodE164`,(e,t)=>{t.pattern??=pQ,a$.init(e,t)});function j$(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var M$=$(`$ZodJWT`,(e,t)=>{a$.init(e,t),e._zod.check=n=>{j$(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),N$=$(`$ZodCustomStringFormat`,(e,t)=>{a$.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),P$=$(`$ZodNumber`,(e,t)=>{r$.init(e,t),e._zod.pattern=e._zod.bag.pattern??SQ,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),F$=$(`$ZodNumberFormat`,(e,t)=>{IQ.init(e,t),P$.init(e,t)}),I$=$(`$ZodBoolean`,(e,t)=>{r$.init(e,t),e._zod.pattern=CQ,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),L$=$(`$ZodBigInt`,(e,t)=>{r$.init(e,t),e._zod.pattern=bQ,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),R$=$(`$ZodBigIntFormat`,(e,t)=>{LQ.init(e,t),L$.init(e,t)}),z$=$(`$ZodSymbol`,(e,t)=>{r$.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),B$=$(`$ZodUndefined`,(e,t)=>{r$.init(e,t),e._zod.pattern=TQ,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),V$=$(`$ZodNull`,(e,t)=>{r$.init(e,t),e._zod.pattern=wQ,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),H$=$(`$ZodAny`,(e,t)=>{r$.init(e,t),e._zod.parse=e=>e}),U$=$(`$ZodUnknown`,(e,t)=>{r$.init(e,t),e._zod.parse=e=>e}),W$=$(`$ZodNever`,(e,t)=>{r$.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),G$=$(`$ZodVoid`,(e,t)=>{r$.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),K$=$(`$ZodDate`,(e,t)=>{r$.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}});function q$(e,t,n){e.issues.length&&t.issues.push(...dZ(n,e.issues)),t.value[n]=e.value}var J$=$(`$ZodArray`,(e,t)=>{r$.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>q$(t,n,e))):q$(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Y$(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...dZ(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function X$(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=$X(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Z$(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Y$(e,n,i,t,u,d))):Y$(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var Q$=$(`$ZodObject`,(e,t)=>{if(r$.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=MX(()=>X$(t));LX(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=UX,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Y$(n,t,e,s,r,i))):Y$(a,t,e,s,r,i)}return i?Z$(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),$$=$(`$ZodObjectJIT`,(e,t)=>{Q$.init(e,t);let n=e._zod.parse,r=MX(()=>X$(t)),i=e=>{let t=new t$([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=BX(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=BX(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(`
137
- if (${n}.issues.length) {
138
- if (${o} in input) {
139
- payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
140
- ...iss,
141
- path: iss.path ? [${o}, ...iss.path] : [${o}]
142
- })));
143
- }
144
- }
145
-
146
- if (${n}.value === undefined) {
147
- if (${o} in input) {
148
- newResult[${o}] = undefined;
149
- }
150
- } else {
151
- newResult[${o}] = ${n}.value;
152
- }
153
-
154
- `):c?t.write(`
155
- if (${n}.issues.length) {
156
- payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
157
- ...iss,
158
- path: iss.path ? [${o}, ...iss.path] : [${o}]
159
- })));
160
- }
161
-
162
- if (${n}.value === undefined) {
163
- if (${o} in input) {
164
- newResult[${o}] = undefined;
165
- }
166
- } else {
167
- newResult[${o}] = ${n}.value;
168
- }
169
-
170
- `):t.write(`
171
- const ${n}_present = ${o} in input;
172
- if (${n}.issues.length) {
173
- payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
174
- ...iss,
175
- path: iss.path ? [${o}, ...iss.path] : [${o}]
176
- })));
177
- }
178
- if (!${n}_present && !${n}.issues.length) {
179
- payload.issues.push({
180
- code: "invalid_type",
181
- expected: "nonoptional",
182
- input: undefined,
183
- path: [${o}]
184
- });
185
- }
186
-
187
- if (${n}_present) {
188
- if (${n}.value === undefined) {
189
- newResult[${o}] = undefined;
190
- } else {
191
- newResult[${o}] = ${n}.value;
192
- }
193
- }
194
-
195
- `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=UX,s=!EX.jitless,c=s&&WX.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Z$([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function e1(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!lZ(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>pZ(e,r,DX())))}),t)}var t1=$(`$ZodUnion`,(e,t)=>{r$.init(e,t),LX(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),LX(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),LX(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),LX(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>PX(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>e1(t,r,e,i)):e1(o,r,e,i)}});function n1(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>pZ(e,r,DX())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}var r1=$(`$ZodXor`,(e,t)=>{t1.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>n1(t,r,e,i)):n1(o,r,e,i)}}),i1=$(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,t1.init(e,t);let n=e._zod.parse;LX(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=MX(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!UX(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),a1=$(`$ZodIntersection`,(e,t)=>{r$.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>s1(e,t,n)):s1(e,i,a)}});function o1(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(GX(e)&&GX(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=o1(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=o1(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function s1(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),lZ(e))return e;let o=o1(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var c1=$(`$ZodTuple`,(e,t)=>{r$.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=l1(n,`optin`),c=l1(n,`optout`);if(!t.rest){if(a.length<s)return r.issues.push({code:`too_small`,minimum:s,inclusive:!0,input:a,inst:e,origin:`array`}),r;a.length>n.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:a[e],issues:[]},i);t instanceof Promise?o.push(t.then(t=>{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>u1(t,r,e))):u1(a,r,e)}}return o.length?Promise.all(o).then(()=>d1(l,r,n,a,c)):d1(l,r,n,a,c)}});function l1(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function u1(e,t,n){e.issues.length&&t.issues.push(...dZ(n,e.issues)),t.value[n]=e.value}function d1(e,t,n,r,i){for(let a=0;a<n.length;a++){let n=e[a],o=a<r.length;if(n.issues.length){if(!o&&a>=i){t.value.length=a;break}t.issues.push(...dZ(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}var f1=$(`$ZodRecord`,(e,t)=>{r$.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!GX(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>pZ(e,r,DX())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...dZ(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...dZ(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&SQ.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>pZ(e,r,DX())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...dZ(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...dZ(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),p1=$(`$ZodMap`,(e,t)=>{r$.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{m1(t,a,n,o,i,e,r)})):m1(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}});function m1(e,t,n,r,i,a,o){e.issues.length&&(qX.has(typeof r)?n.issues.push(...dZ(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>pZ(e,o,DX()))})),t.issues.length&&(qX.has(typeof r)?n.issues.push(...dZ(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>pZ(e,o,DX()))})),n.value.set(e.value,t.value)}var h1=$(`$ZodSet`,(e,t)=>{r$.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>g1(e,n))):g1(i,n)}return a.length?Promise.all(a).then(()=>n):n}});function g1(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var _1=$(`$ZodEnum`,(e,t)=>{r$.init(e,t);let n=kX(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>qX.has(typeof e)).map(e=>typeof e==`string`?YX(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),v1=$(`$ZodLiteral`,(e,t)=>{if(r$.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?YX(e):e?YX(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),y1=$(`$ZodFile`,(e,t)=>{r$.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),b1=$(`$ZodTransform`,(e,t)=>{r$.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new TX(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new wX;return n.value=i,n.fallback=!0,n}});function x1(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var S1=$(`$ZodOptional`,(e,t)=>{r$.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,LX(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),LX(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${PX(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>x1(e,r)):x1(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),C1=$(`$ZodExactOptional`,(e,t)=>{S1.init(e,t),LX(e._zod,`values`,()=>t.innerType._zod.values),LX(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),w1=$(`$ZodNullable`,(e,t)=>{r$.init(e,t),LX(e._zod,`optin`,()=>t.innerType._zod.optin),LX(e._zod,`optout`,()=>t.innerType._zod.optout),LX(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${PX(e.source)}|null)$`):void 0}),LX(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),T1=$(`$ZodDefault`,(e,t)=>{r$.init(e,t),e._zod.optin=`optional`,LX(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>E1(e,t)):E1(r,t)}});function E1(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var D1=$(`$ZodPrefault`,(e,t)=>{r$.init(e,t),e._zod.optin=`optional`,LX(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),O1=$(`$ZodNonOptional`,(e,t)=>{r$.init(e,t),LX(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>k1(t,e)):k1(i,e)}});function k1(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var A1=$(`$ZodSuccess`,(e,t)=>{r$.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new TX(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),j1=$(`$ZodCatch`,(e,t)=>{r$.init(e,t),e._zod.optin=`optional`,LX(e._zod,`optout`,()=>t.innerType._zod.optout),LX(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>pZ(e,n,DX()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>pZ(e,n,DX()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),M1=$(`$ZodNaN`,(e,t)=>{r$.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),N1=$(`$ZodPipe`,(e,t)=>{r$.init(e,t),LX(e._zod,`values`,()=>t.in._zod.values),LX(e._zod,`optin`,()=>t.in._zod.optin),LX(e._zod,`optout`,()=>t.out._zod.optout),LX(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>P1(e,t.in,n)):P1(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>P1(e,t.out,n)):P1(r,t.out,n)}});function P1(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var F1=$(`$ZodCodec`,(e,t)=>{r$.init(e,t),LX(e._zod,`values`,()=>t.in._zod.values),LX(e._zod,`optin`,()=>t.in._zod.optin),LX(e._zod,`optout`,()=>t.out._zod.optout),LX(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>I1(e,t,n)):I1(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>I1(e,t,n)):I1(r,t,n)}}});function I1(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>L1(e,r,t.out,n)):L1(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>L1(e,r,t.in,n)):L1(e,r,t.in,n)}}function L1(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var R1=$(`$ZodPreprocess`,(e,t)=>{N1.init(e,t)}),z1=$(`$ZodReadonly`,(e,t)=>{r$.init(e,t),LX(e._zod,`propValues`,()=>t.innerType._zod.propValues),LX(e._zod,`values`,()=>t.innerType._zod.values),LX(e._zod,`optin`,()=>t.innerType?._zod?.optin),LX(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(B1):B1(r)}});function B1(e){return e.value=Object.freeze(e.value),e}var V1=$(`$ZodTemplateLiteral`,(e,t)=>{r$.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||JX.has(typeof e))n.push(YX(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),H1=$(`$ZodFunction`,(e,t)=>(r$.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?kZ(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?kZ(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await jZ(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await jZ(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new c1({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),U1=$(`$ZodPromise`,(e,t)=>{r$.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),W1=$(`$ZodLazy`,(e,t)=>{r$.init(e,t),LX(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),LX(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),LX(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),LX(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),LX(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),G1=$(`$ZodCustom`,(e,t)=>{jQ.init(e,t),r$.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>K1(t,n,r,e));K1(i,n,r,e)}});function K1(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(_Z(e))}}var xke=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${QX(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${AX(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}};function Ske(){return{localeError:xke()}}var Cke=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${QX(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}};function wke(){return{localeError:Cke()}}function q1(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}var Tke=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${QX(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=q1(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=q1(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}};function Eke(){return{localeError:Tke()}}var Dke=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${QX(e.values[0])}`:`Невалидна опция: очаквано едно от ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}};function Oke(){return{localeError:Dke()}}var kke=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${QX(e.values[0])}`:`Opció invàlida: s'esperava una de ${AX(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}};function Ake(){return{localeError:kke()}}var jke=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${QX(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}};function Mke(){return{localeError:jke()}}var Nke=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${QX(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}};function Pke(){return{localeError:Nke()}}var Fke=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${QX(e.values[0])}`:`Ungültige Option: erwartet eine von ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}};function Ike(){return{localeError:Fke()}}var Lke=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${QX(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}};function Rke(){return{localeError:Lke()}}var zke=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${QX(e.values[0])}`:`Invalid option: expected one of ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function J1(){return{localeError:zke()}}var Bke=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${QX(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}};function Vke(){return{localeError:Bke()}}var Hke=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${QX(e.values[0])}`:`Opción inválida: se esperaba una de ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}};function Uke(){return{localeError:Hke()}}var Wke=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${QX(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${AX(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${AX(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}};function Gke(){return{localeError:Wke()}}var Kke=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${QX(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}};function qke(){return{localeError:Kke()}}var Jke=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${QX(e.values[0])} attendu`:`Option invalide : une valeur parmi ${AX(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${AX(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}};function Yke(){return{localeError:Jke()}}var Xke=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${QX(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${AX(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}};function Zke(){return{localeError:Xke()}}var Qke=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=gZ(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${QX(t.values[0])}`;let e=t.values.map(e=>QX(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${AX(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}};function $ke(){return{localeError:Qke()}}var eAe=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${QX(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}};function tAe(){return{localeError:eAe()}}var nAe=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${QX(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}};function rAe(){return{localeError:nAe()}}function Y1(e,t,n){return Math.abs(e)===1?t:n}function X1(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}var iAe=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${QX(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=Y1(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${X1(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${X1(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=Y1(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${X1(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${X1(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${AX(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${X1(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${X1(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}};function aAe(){return{localeError:iAe()}}var oAe=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${QX(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}};function sAe(){return{localeError:oAe()}}var cAe=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${QX(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}};function lAe(){return{localeError:cAe()}}var uAe=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${QX(e.values[0])}`:`Opzione non valida: atteso uno tra ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}};function dAe(){return{localeError:uAe()}}var fAe=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${QX(e.values[0])}が期待されました`:`無効な選択: ${AX(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${AX(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}};function pAe(){return{localeError:fAe()}}var mAe=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${QX(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${AX(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}};function hAe(){return{localeError:mAe()}}var gAe=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${QX(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${AX(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}};function Z1(){return{localeError:gAe()}}function _Ae(){return Z1()}var vAe=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${QX(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${AX(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${AX(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}};function yAe(){return{localeError:vAe()}}var Q1=e=>e.charAt(0).toUpperCase()+e.slice(1);function $1(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}var bAe=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${QX(e.values[0])}`:`Privalo būti vienas iš ${AX(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,$1(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${Q1(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${Q1(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,$1(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${Q1(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${Q1(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:return`${Q1(r[e.origin]??e.origin??e.origin??`reikšmė`)} turi klaidingą įvestį`;default:return`Klaidinga įvestis`}}};function xAe(){return{localeError:bAe()}}var SAe=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${QX(e.values[0])}`:`Грешана опција: се очекува една ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}};function CAe(){return{localeError:SAe()}}var wAe=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${QX(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}};function TAe(){return{localeError:wAe()}}var EAe=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${QX(e.values[0])}`:`Ongeldige optie: verwacht één van ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}};function DAe(){return{localeError:EAe()}}var OAe=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${QX(e.values[0])}`:`Ugyldig valg: forventet en av ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}};function kAe(){return{localeError:OAe()}}var AAe=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${QX(e.values[0])}`:`Fâsit tercih: mûteberler ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}};function jAe(){return{localeError:AAe()}}var MAe=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${QX(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${AX(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}};function NAe(){return{localeError:MAe()}}var PAe=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${QX(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}};function FAe(){return{localeError:PAe()}}var IAe=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${QX(e.values[0])}`:`Opção inválida: esperada uma das ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}};function LAe(){return{localeError:IAe()}}var RAe=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${QX(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}};function zAe(){return{localeError:RAe()}}function e0(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}var BAe=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${QX(e.values[0])}`:`Неверный вариант: ожидалось одно из ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=e0(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=e0(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}};function VAe(){return{localeError:BAe()}}var HAe=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${QX(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}};function UAe(){return{localeError:HAe()}}var WAe=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${QX(e.values[0])}`:`Ogiltigt val: förväntade en av ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}};function GAe(){return{localeError:WAe()}}var KAe=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${QX(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${AX(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}};function qAe(){return{localeError:KAe()}}var JAe=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${QX(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${AX(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}};function YAe(){return{localeError:JAe()}}var XAe=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${QX(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}};function ZAe(){return{localeError:XAe()}}var QAe=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${QX(e.values[0])}`:`Неправильна опція: очікується одне з ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}};function t0(){return{localeError:QAe()}}function $Ae(){return t0()}var eje=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${QX(e.values[0])} متوقع تھا`:`غلط آپشن: ${AX(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${AX(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}};function tje(){return{localeError:eje()}}var nje=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${QX(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${AX(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}};function rje(){return{localeError:nje()}}var ije=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${QX(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}};function aje(){return{localeError:ije()}}var oje=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${QX(e.values[0])}`:`无效选项:期望以下之一 ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${AX(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}};function sje(){return{localeError:oje()}}var cje=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${QX(e.values[0])}`:`無效的選項:預期為以下其中之一 ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${AX(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}};function lje(){return{localeError:cje()}}var uje=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=gZ(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${QX(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${AX(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${AX(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}};function dje(){return{localeError:uje()}}var n0=d({ar:()=>Ske,az:()=>wke,be:()=>Eke,bg:()=>Oke,ca:()=>Ake,cs:()=>Mke,da:()=>Pke,de:()=>Ike,el:()=>Rke,en:()=>J1,eo:()=>Vke,es:()=>Uke,fa:()=>Gke,fi:()=>qke,fr:()=>Yke,frCA:()=>Zke,he:()=>$ke,hr:()=>tAe,hu:()=>rAe,hy:()=>aAe,id:()=>sAe,is:()=>lAe,it:()=>dAe,ja:()=>pAe,ka:()=>hAe,kh:()=>_Ae,km:()=>Z1,ko:()=>yAe,lt:()=>xAe,mk:()=>CAe,ms:()=>TAe,nl:()=>DAe,no:()=>kAe,ota:()=>jAe,pl:()=>FAe,ps:()=>NAe,pt:()=>LAe,ro:()=>zAe,ru:()=>VAe,sl:()=>UAe,sv:()=>GAe,ta:()=>qAe,th:()=>YAe,tr:()=>ZAe,ua:()=>$Ae,uk:()=>t0,ur:()=>tje,uz:()=>rje,vi:()=>aje,yo:()=>dje,zhCN:()=>sje,zhTW:()=>lje}),r0,i0=Symbol(`ZodOutput`),a0=Symbol(`ZodInput`),o0=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function s0(){return new o0}(r0=globalThis).__zod_globalRegistry??(r0.__zod_globalRegistry=s0());var c0=globalThis.__zod_globalRegistry;function l0(e,t){return new e({type:`string`,...ZX(t)})}function u0(e,t){return new e({type:`string`,coerce:!0,...ZX(t)})}function d0(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...ZX(t)})}function f0(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...ZX(t)})}function p0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...ZX(t)})}function m0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...ZX(t)})}function h0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...ZX(t)})}function g0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...ZX(t)})}function _0(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...ZX(t)})}function v0(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...ZX(t)})}function y0(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...ZX(t)})}function b0(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...ZX(t)})}function x0(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...ZX(t)})}function S0(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...ZX(t)})}function C0(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...ZX(t)})}function w0(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...ZX(t)})}function T0(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...ZX(t)})}function E0(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...ZX(t)})}function D0(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...ZX(t)})}function O0(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...ZX(t)})}function k0(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...ZX(t)})}function A0(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...ZX(t)})}function j0(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...ZX(t)})}function M0(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...ZX(t)})}function N0(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...ZX(t)})}var P0={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function F0(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...ZX(t)})}function I0(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...ZX(t)})}function L0(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...ZX(t)})}function R0(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...ZX(t)})}function z0(e,t){return new e({type:`number`,checks:[],...ZX(t)})}function B0(e,t){return new e({type:`number`,coerce:!0,checks:[],...ZX(t)})}function V0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...ZX(t)})}function H0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...ZX(t)})}function U0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...ZX(t)})}function W0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...ZX(t)})}function G0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...ZX(t)})}function K0(e,t){return new e({type:`boolean`,...ZX(t)})}function q0(e,t){return new e({type:`boolean`,coerce:!0,...ZX(t)})}function J0(e,t){return new e({type:`bigint`,...ZX(t)})}function Y0(e,t){return new e({type:`bigint`,coerce:!0,...ZX(t)})}function X0(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...ZX(t)})}function Z0(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...ZX(t)})}function Q0(e,t){return new e({type:`symbol`,...ZX(t)})}function $0(e,t){return new e({type:`undefined`,...ZX(t)})}function e2(e,t){return new e({type:`null`,...ZX(t)})}function t2(e){return new e({type:`any`})}function n2(e){return new e({type:`unknown`})}function r2(e,t){return new e({type:`never`,...ZX(t)})}function i2(e,t){return new e({type:`void`,...ZX(t)})}function a2(e,t){return new e({type:`date`,...ZX(t)})}function o2(e,t){return new e({type:`date`,coerce:!0,...ZX(t)})}function s2(e,t){return new e({type:`nan`,...ZX(t)})}function c2(e,t){return new NQ({check:`less_than`,...ZX(t),value:e,inclusive:!1})}function l2(e,t){return new NQ({check:`less_than`,...ZX(t),value:e,inclusive:!0})}function u2(e,t){return new PQ({check:`greater_than`,...ZX(t),value:e,inclusive:!1})}function d2(e,t){return new PQ({check:`greater_than`,...ZX(t),value:e,inclusive:!0})}function f2(e){return u2(0,e)}function p2(e){return c2(0,e)}function m2(e){return l2(0,e)}function h2(e){return d2(0,e)}function g2(e,t){return new FQ({check:`multiple_of`,...ZX(t),value:e})}function _2(e,t){return new RQ({check:`max_size`,...ZX(t),maximum:e})}function v2(e,t){return new zQ({check:`min_size`,...ZX(t),minimum:e})}function y2(e,t){return new BQ({check:`size_equals`,...ZX(t),size:e})}function b2(e,t){return new VQ({check:`max_length`,...ZX(t),maximum:e})}function x2(e,t){return new HQ({check:`min_length`,...ZX(t),minimum:e})}function S2(e,t){return new UQ({check:`length_equals`,...ZX(t),length:e})}function C2(e,t){return new GQ({check:`string_format`,format:`regex`,...ZX(t),pattern:e})}function w2(e){return new KQ({check:`string_format`,format:`lowercase`,...ZX(e)})}function T2(e){return new qQ({check:`string_format`,format:`uppercase`,...ZX(e)})}function E2(e,t){return new JQ({check:`string_format`,format:`includes`,...ZX(t),includes:e})}function D2(e,t){return new YQ({check:`string_format`,format:`starts_with`,...ZX(t),prefix:e})}function O2(e,t){return new XQ({check:`string_format`,format:`ends_with`,...ZX(t),suffix:e})}function k2(e,t,n){return new QQ({check:`property`,property:e,schema:t,...ZX(n)})}function A2(e,t){return new $Q({check:`mime_type`,mime:e,...ZX(t)})}function j2(e){return new e$({check:`overwrite`,tx:e})}function M2(e){return j2(t=>t.normalize(e))}function N2(){return j2(e=>e.trim())}function P2(){return j2(e=>e.toLowerCase())}function F2(){return j2(e=>e.toUpperCase())}function I2(){return j2(e=>VX(e))}function L2(e,t,n){return new e({type:`array`,element:t,...ZX(n)})}function fje(e,t,n){return new e({type:`union`,options:t,...ZX(n)})}function pje(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...ZX(n)})}function mje(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...ZX(r)})}function hje(e,t,n){return new e({type:`intersection`,left:t,right:n})}function gje(e,t,n,r){let i=n instanceof r$;return new e({type:`tuple`,items:t,rest:i?n:null,...ZX(i?r:n)})}function _je(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...ZX(r)})}function vje(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...ZX(r)})}function yje(e,t,n){return new e({type:`set`,valueType:t,...ZX(n)})}function bje(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...ZX(n)})}function xje(e,t,n){return new e({type:`enum`,entries:t,...ZX(n)})}function Sje(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...ZX(n)})}function R2(e,t){return new e({type:`file`,...ZX(t)})}function Cje(e,t){return new e({type:`transform`,transform:t})}function wje(e,t){return new e({type:`optional`,innerType:t})}function Tje(e,t){return new e({type:`nullable`,innerType:t})}function Eje(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():KX(n)}})}function Dje(e,t,n){return new e({type:`nonoptional`,innerType:t,...ZX(n)})}function Oje(e,t){return new e({type:`success`,innerType:t})}function kje(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function Aje(e,t,n){return new e({type:`pipe`,in:t,out:n})}function jje(e,t){return new e({type:`readonly`,innerType:t})}function Mje(e,t,n){return new e({type:`template_literal`,parts:t,...ZX(n)})}function Nje(e,t){return new e({type:`lazy`,getter:t})}function Pje(e,t){return new e({type:`promise`,innerType:t})}function z2(e,t,n){let r=ZX(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function B2(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...ZX(n)})}function V2(e,t){let n=H2(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(_Z(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(_Z(r))}},e(t.value,t)),t);return n}function H2(e,t){let n=new jQ({check:`custom`,...ZX(t)});return n._zod.check=e,n}function U2(e){let t=new jQ({check:`describe`});return t._zod.onattach=[t=>{let n=c0.get(t)??{};c0.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function W2(e){let t=new jQ({check:`meta`});return t._zod.onattach=[t=>{let n=c0.get(t)??{};c0.add(t,{...n,...e})}],t._zod.check=()=>{},t}function G2(e,t){let n=ZX(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??F1,c=e.Boolean??I$,l=new s({type:`pipe`,in:new(e.String??i$)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function K2(e,t,n,r={}){let i=ZX(r),a={...ZX(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}function q2(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??c0,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function J2(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,J2(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Z2(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Y2(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
196
-
197
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function X2(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:$2(t,`input`,e.processors),output:$2(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Z2(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Z2(r.element,n);if(r.type===`set`)return Z2(r.valueType,n);if(r.type===`lazy`)return Z2(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return Z2(r.innerType,n);if(r.type===`intersection`)return Z2(r.left,n)||Z2(r.right,n);if(r.type===`record`||r.type===`map`)return Z2(r.keyType,n)||Z2(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Z2(r.in,n)||Z2(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Z2(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Z2(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Z2(e,n))return!0;return!!(r.rest&&Z2(r.rest,n))}return!1}var Q2=(e,t={})=>n=>{let r=q2({...n,processors:t});return J2(e,r),Y2(r,e),X2(r,e)},$2=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=q2({...i??{},target:a,io:t,processors:n});return J2(e,o),Y2(o,e),X2(o,e)},Fje={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},e4=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Fje[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},t4=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},n4=(e,t,n,r)=>{n.type=`boolean`},r4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},i4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},a4=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},o4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},s4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},c4=(e,t,n,r)=>{n.not={}},Ije=(e,t,n,r)=>{},Lje=(e,t,n,r)=>{},l4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},u4=(e,t,n,r)=>{let i=e._zod.def,a=kX(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},d4=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},f4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},p4=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},m4=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},h4=(e,t,n,r)=>{n.type=`boolean`},g4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},_4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},v4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},y4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},b4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},x4=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=J2(a.element,t,{...r,path:[...r.path,`items`]})},S4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=J2(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=J2(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},C4=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>J2(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},w4=(e,t,n,r)=>{let i=e._zod.def,a=J2(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=J2(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},T4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>J2(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?J2(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},E4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=J2(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=J2(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=J2(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},D4=(e,t,n,r)=>{let i=e._zod.def,a=J2(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},O4=(e,t,n,r)=>{let i=e._zod.def;J2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},k4=(e,t,n,r)=>{let i=e._zod.def;J2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},A4=(e,t,n,r)=>{let i=e._zod.def;J2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},j4=(e,t,n,r)=>{let i=e._zod.def;J2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},M4=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;J2(o,t,r);let s=t.seen.get(e);s.ref=o},N4=(e,t,n,r)=>{let i=e._zod.def;J2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},P4=(e,t,n,r)=>{let i=e._zod.def;J2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},F4=(e,t,n,r)=>{let i=e._zod.def;J2(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},I4=(e,t,n,r)=>{let i=e._zod.innerType;J2(i,t,r);let a=t.seen.get(e);a.ref=i},L4={string:e4,number:t4,boolean:n4,bigint:r4,symbol:i4,null:a4,undefined:o4,void:s4,never:c4,any:Ije,unknown:Lje,date:l4,enum:u4,literal:d4,nan:f4,template_literal:p4,file:m4,success:h4,custom:g4,function:_4,transform:v4,map:y4,set:b4,array:x4,object:S4,union:C4,intersection:w4,tuple:T4,record:E4,nullable:D4,nonoptional:O4,default:k4,prefault:A4,catch:j4,pipe:M4,readonly:N4,promise:P4,optional:F4,lazy:I4};function R4(e,t){if(`_idmap`in e){let n=e,r=q2({...t,processors:L4}),i={};for(let e of n._idmap.entries()){let[t,n]=e;J2(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;Y2(r,n),a[t]=X2(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=q2({...t,processors:L4});return J2(e,n),Y2(n,e),X2(n,e)}var Rje=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=q2({processors:L4,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return J2(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),Y2(this.ctx,e);let{"~standard":n,...r}=X2(this.ctx,e);return r}},zje=d({}),Bje=d({$ZodAny:()=>H$,$ZodArray:()=>J$,$ZodAsyncError:()=>wX,$ZodBase64:()=>D$,$ZodBase64URL:()=>k$,$ZodBigInt:()=>L$,$ZodBigIntFormat:()=>R$,$ZodBoolean:()=>I$,$ZodCIDRv4:()=>w$,$ZodCIDRv6:()=>T$,$ZodCUID:()=>f$,$ZodCUID2:()=>p$,$ZodCatch:()=>j1,$ZodCheck:()=>jQ,$ZodCheckBigIntFormat:()=>LQ,$ZodCheckEndsWith:()=>XQ,$ZodCheckGreaterThan:()=>PQ,$ZodCheckIncludes:()=>JQ,$ZodCheckLengthEquals:()=>UQ,$ZodCheckLessThan:()=>NQ,$ZodCheckLowerCase:()=>KQ,$ZodCheckMaxLength:()=>VQ,$ZodCheckMaxSize:()=>RQ,$ZodCheckMimeType:()=>$Q,$ZodCheckMinLength:()=>HQ,$ZodCheckMinSize:()=>zQ,$ZodCheckMultipleOf:()=>FQ,$ZodCheckNumberFormat:()=>IQ,$ZodCheckOverwrite:()=>e$,$ZodCheckProperty:()=>QQ,$ZodCheckRegex:()=>GQ,$ZodCheckSizeEquals:()=>BQ,$ZodCheckStartsWith:()=>YQ,$ZodCheckStringFormat:()=>WQ,$ZodCheckUpperCase:()=>qQ,$ZodCodec:()=>F1,$ZodCustom:()=>G1,$ZodCustomStringFormat:()=>N$,$ZodDate:()=>K$,$ZodDefault:()=>T1,$ZodDiscriminatedUnion:()=>i1,$ZodE164:()=>A$,$ZodEmail:()=>c$,$ZodEmoji:()=>u$,$ZodEncodeError:()=>TX,$ZodEnum:()=>_1,$ZodError:()=>xZ,$ZodExactOptional:()=>C1,$ZodFile:()=>y1,$ZodFunction:()=>H1,$ZodGUID:()=>o$,$ZodIPv4:()=>x$,$ZodIPv6:()=>S$,$ZodISODate:()=>v$,$ZodISODateTime:()=>_$,$ZodISODuration:()=>b$,$ZodISOTime:()=>y$,$ZodIntersection:()=>a1,$ZodJWT:()=>M$,$ZodKSUID:()=>g$,$ZodLazy:()=>W1,$ZodLiteral:()=>v1,$ZodMAC:()=>C$,$ZodMap:()=>p1,$ZodNaN:()=>M1,$ZodNanoID:()=>d$,$ZodNever:()=>W$,$ZodNonOptional:()=>O1,$ZodNull:()=>V$,$ZodNullable:()=>w1,$ZodNumber:()=>P$,$ZodNumberFormat:()=>F$,$ZodObject:()=>Q$,$ZodObjectJIT:()=>$$,$ZodOptional:()=>S1,$ZodPipe:()=>N1,$ZodPrefault:()=>D1,$ZodPreprocess:()=>R1,$ZodPromise:()=>U1,$ZodReadonly:()=>z1,$ZodRealError:()=>SZ,$ZodRecord:()=>f1,$ZodRegistry:()=>o0,$ZodSet:()=>h1,$ZodString:()=>i$,$ZodStringFormat:()=>a$,$ZodSuccess:()=>A1,$ZodSymbol:()=>z$,$ZodTemplateLiteral:()=>V1,$ZodTransform:()=>b1,$ZodTuple:()=>c1,$ZodType:()=>r$,$ZodULID:()=>m$,$ZodURL:()=>l$,$ZodUUID:()=>s$,$ZodUndefined:()=>B$,$ZodUnion:()=>t1,$ZodUnknown:()=>U$,$ZodVoid:()=>G$,$ZodXID:()=>h$,$ZodXor:()=>r1,$brand:()=>CX,$constructor:()=>$,$input:()=>a0,$output:()=>i0,Doc:()=>t$,JSONSchema:()=>zje,JSONSchemaGenerator:()=>Rje,NEVER:()=>SX,TimePrecision:()=>P0,_any:()=>t2,_array:()=>L2,_base64:()=>A0,_base64url:()=>j0,_bigint:()=>J0,_boolean:()=>K0,_catch:()=>kje,_check:()=>H2,_cidrv4:()=>O0,_cidrv6:()=>k0,_coercedBigint:()=>Y0,_coercedBoolean:()=>q0,_coercedDate:()=>o2,_coercedNumber:()=>B0,_coercedString:()=>u0,_cuid:()=>b0,_cuid2:()=>x0,_custom:()=>z2,_date:()=>a2,_decode:()=>LZ,_decodeAsync:()=>zZ,_default:()=>Eje,_discriminatedUnion:()=>mje,_e164:()=>M0,_email:()=>d0,_emoji:()=>v0,_encode:()=>IZ,_encodeAsync:()=>RZ,_endsWith:()=>O2,_enum:()=>bje,_file:()=>R2,_float32:()=>H0,_float64:()=>U0,_gt:()=>u2,_gte:()=>d2,_guid:()=>f0,_includes:()=>E2,_int:()=>V0,_int32:()=>W0,_int64:()=>X0,_intersection:()=>hje,_ipv4:()=>T0,_ipv6:()=>E0,_isoDate:()=>I0,_isoDateTime:()=>F0,_isoDuration:()=>R0,_isoTime:()=>L0,_jwt:()=>N0,_ksuid:()=>w0,_lazy:()=>Nje,_length:()=>S2,_literal:()=>Sje,_lowercase:()=>w2,_lt:()=>c2,_lte:()=>l2,_mac:()=>D0,_map:()=>vje,_max:()=>l2,_maxLength:()=>b2,_maxSize:()=>_2,_mime:()=>A2,_min:()=>d2,_minLength:()=>x2,_minSize:()=>v2,_multipleOf:()=>g2,_nan:()=>s2,_nanoid:()=>y0,_nativeEnum:()=>xje,_negative:()=>p2,_never:()=>r2,_nonnegative:()=>h2,_nonoptional:()=>Dje,_nonpositive:()=>m2,_normalize:()=>M2,_null:()=>e2,_nullable:()=>Tje,_number:()=>z0,_optional:()=>wje,_overwrite:()=>j2,_parse:()=>OZ,_parseAsync:()=>AZ,_pipe:()=>Aje,_positive:()=>f2,_promise:()=>Pje,_property:()=>k2,_readonly:()=>jje,_record:()=>_je,_refine:()=>B2,_regex:()=>C2,_safeDecode:()=>VZ,_safeDecodeAsync:()=>UZ,_safeEncode:()=>BZ,_safeEncodeAsync:()=>HZ,_safeParse:()=>MZ,_safeParseAsync:()=>PZ,_set:()=>yje,_size:()=>y2,_slugify:()=>I2,_startsWith:()=>D2,_string:()=>l0,_stringFormat:()=>K2,_stringbool:()=>G2,_success:()=>Oje,_superRefine:()=>V2,_symbol:()=>Q0,_templateLiteral:()=>Mje,_toLowerCase:()=>P2,_toUpperCase:()=>F2,_transform:()=>Cje,_trim:()=>N2,_tuple:()=>gje,_uint32:()=>G0,_uint64:()=>Z0,_ulid:()=>S0,_undefined:()=>$0,_union:()=>fje,_unknown:()=>n2,_uppercase:()=>T2,_url:()=>_0,_uuid:()=>p0,_uuidv4:()=>m0,_uuidv6:()=>h0,_uuidv7:()=>g0,_void:()=>i2,_xid:()=>C0,_xor:()=>pje,clone:()=>XX,config:()=>DX,createStandardJSONSchemaMethod:()=>$2,createToJSONSchemaMethod:()=>Q2,decode:()=>WOe,decodeAsync:()=>KOe,describe:()=>U2,encode:()=>UOe,encodeAsync:()=>GOe,extractDefs:()=>Y2,finalize:()=>X2,flattenError:()=>CZ,formatError:()=>wZ,globalConfig:()=>EX,globalRegistry:()=>c0,initializeContext:()=>q2,isValidBase64:()=>E$,isValidBase64URL:()=>O$,isValidJWT:()=>j$,locales:()=>n0,meta:()=>W2,parse:()=>kZ,parseAsync:()=>jZ,prettifyError:()=>DZ,process:()=>J2,regexes:()=>WZ,registry:()=>s0,safeDecode:()=>JOe,safeDecodeAsync:()=>XOe,safeEncode:()=>qOe,safeEncodeAsync:()=>YOe,safeParse:()=>NZ,safeParseAsync:()=>FZ,toDotPath:()=>EZ,toJSONSchema:()=>R4,treeifyError:()=>TZ,util:()=>OX,version:()=>n$}),Vje=d({endsWith:()=>O2,gt:()=>u2,gte:()=>d2,includes:()=>E2,length:()=>S2,lowercase:()=>w2,lt:()=>c2,lte:()=>l2,maxLength:()=>b2,maxSize:()=>_2,mime:()=>A2,minLength:()=>x2,minSize:()=>v2,multipleOf:()=>g2,negative:()=>p2,nonnegative:()=>h2,nonpositive:()=>m2,normalize:()=>M2,overwrite:()=>j2,positive:()=>f2,property:()=>k2,regex:()=>C2,size:()=>y2,slugify:()=>I2,startsWith:()=>D2,toLowerCase:()=>P2,toUpperCase:()=>F2,trim:()=>N2,uppercase:()=>T2}),z4=d({ZodISODate:()=>H4,ZodISODateTime:()=>B4,ZodISODuration:()=>K4,ZodISOTime:()=>W4,date:()=>U4,datetime:()=>V4,duration:()=>q4,time:()=>G4}),B4=$(`ZodISODateTime`,(e,t)=>{_$.init(e,t),m3.init(e,t)});function V4(e){return F0(B4,e)}var H4=$(`ZodISODate`,(e,t)=>{v$.init(e,t),m3.init(e,t)});function U4(e){return I0(H4,e)}var W4=$(`ZodISOTime`,(e,t)=>{y$.init(e,t),m3.init(e,t)});function G4(e){return L0(W4,e)}var K4=$(`ZodISODuration`,(e,t)=>{b$.init(e,t),m3.init(e,t)});function q4(e){return R0(K4,e)}var J4=(e,t)=>{xZ.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>wZ(e,t)},flatten:{value:t=>CZ(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,jX,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,jX,2)}},isEmpty:{get(){return e.issues.length===0}}})},Hje=$(`ZodError`,J4),Y4=$(`ZodError`,J4,{Parent:Error}),X4=OZ(Y4),Z4=AZ(Y4),Q4=MZ(Y4),$4=PZ(Y4),e3=IZ(Y4),t3=LZ(Y4),n3=RZ(Y4),r3=zZ(Y4),i3=BZ(Y4),a3=VZ(Y4),o3=HZ(Y4),s3=UZ(Y4),Uje=d({ZodAny:()=>j6,ZodArray:()=>V6,ZodBase64:()=>Z3,ZodBase64URL:()=>$3,ZodBigInt:()=>b6,ZodBigIntFormat:()=>S6,ZodBoolean:()=>v6,ZodCIDRv4:()=>q3,ZodCIDRv6:()=>Y3,ZodCUID:()=>j3,ZodCUID2:()=>N3,ZodCatch:()=>I8,ZodCodec:()=>H8,ZodCustom:()=>n5,ZodCustomStringFormat:()=>a6,ZodDate:()=>z6,ZodDefault:()=>O8,ZodDiscriminatedUnion:()=>Q6,ZodE164:()=>t6,ZodEmail:()=>h3,ZodEmoji:()=>D3,ZodEnum:()=>f8,ZodExactOptional:()=>C8,ZodFile:()=>_8,ZodFunction:()=>e5,ZodGUID:()=>_3,ZodIPv4:()=>V3,ZodIPv6:()=>G3,ZodIntersection:()=>e8,ZodJWT:()=>r6,ZodKSUID:()=>z3,ZodLazy:()=>X8,ZodLiteral:()=>h8,ZodMAC:()=>U3,ZodMap:()=>c8,ZodNaN:()=>R8,ZodNanoID:()=>k3,ZodNever:()=>F6,ZodNonOptional:()=>M8,ZodNull:()=>k6,ZodNullable:()=>T8,ZodNumber:()=>u6,ZodNumberFormat:()=>f6,ZodObject:()=>W6,ZodOptional:()=>x8,ZodPipe:()=>B8,ZodPrefault:()=>A8,ZodPreprocess:()=>G8,ZodPromise:()=>Q8,ZodReadonly:()=>K8,ZodRecord:()=>i8,ZodSet:()=>u8,ZodString:()=>f3,ZodStringFormat:()=>m3,ZodSuccess:()=>P8,ZodSymbol:()=>T6,ZodTemplateLiteral:()=>J8,ZodTransform:()=>y8,ZodTuple:()=>n8,ZodType:()=>u3,ZodULID:()=>F3,ZodURL:()=>w3,ZodUUID:()=>y3,ZodUndefined:()=>D6,ZodUnion:()=>J6,ZodUnknown:()=>N6,ZodVoid:()=>L6,ZodXID:()=>L3,ZodXor:()=>X6,_ZodString:()=>d3,_default:()=>k8,_function:()=>t5,any:()=>M6,array:()=>H6,base64:()=>Q3,base64url:()=>e6,bigint:()=>x6,boolean:()=>y6,catch:()=>L8,check:()=>r5,cidrv4:()=>J3,cidrv6:()=>X3,codec:()=>U8,cuid:()=>M3,cuid2:()=>P3,custom:()=>i5,date:()=>B6,describe:()=>s5,discriminatedUnion:()=>$6,e164:()=>n6,email:()=>g3,emoji:()=>O3,enum:()=>p8,exactOptional:()=>w8,file:()=>v8,float32:()=>m6,float64:()=>h6,function:()=>t5,guid:()=>v3,hash:()=>l6,hex:()=>c6,hostname:()=>s6,httpUrl:()=>E3,instanceof:()=>l5,int:()=>p6,int32:()=>g6,int64:()=>C6,intersection:()=>t8,invertCodec:()=>W8,ipv4:()=>H3,ipv6:()=>K3,json:()=>d5,jwt:()=>i6,keyof:()=>U6,ksuid:()=>B3,lazy:()=>Z8,literal:()=>g8,looseObject:()=>q6,looseRecord:()=>s8,mac:()=>W3,map:()=>l8,meta:()=>c5,nan:()=>z8,nanoid:()=>A3,nativeEnum:()=>m8,never:()=>I6,nonoptional:()=>N8,null:()=>A6,nullable:()=>E8,nullish:()=>D8,number:()=>d6,object:()=>G6,optional:()=>S8,partialRecord:()=>o8,pipe:()=>V8,prefault:()=>j8,preprocess:()=>f5,promise:()=>$8,readonly:()=>q8,record:()=>a8,refine:()=>a5,set:()=>d8,strictObject:()=>K6,string:()=>p3,stringFormat:()=>o6,stringbool:()=>u5,success:()=>F8,superRefine:()=>o5,symbol:()=>E6,templateLiteral:()=>Y8,transform:()=>b8,tuple:()=>r8,uint32:()=>_6,uint64:()=>w6,ulid:()=>I3,undefined:()=>O6,union:()=>Y6,unknown:()=>P6,url:()=>T3,uuid:()=>b3,uuidv4:()=>x3,uuidv6:()=>S3,uuidv7:()=>C3,void:()=>R6,xid:()=>R3,xor:()=>Z6}),c3=new WeakMap;function l3(e,t,n){let r=Object.getPrototypeOf(e),i=c3.get(r);if(i||(i=new Set,c3.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var u3=$(`ZodType`,(e,t)=>(r$.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:$2(e,`input`),output:$2(e,`output`)}}),e.toJSONSchema=Q2(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>X4(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Q4(e,t,n),e.parseAsync=async(t,n)=>Z4(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>$4(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>e3(e,t,n),e.decode=(t,n)=>t3(e,t,n),e.encodeAsync=async(t,n)=>n3(e,t,n),e.decodeAsync=async(t,n)=>r3(e,t,n),e.safeEncode=(t,n)=>i3(e,t,n),e.safeDecode=(t,n)=>a3(e,t,n),e.safeEncodeAsync=async(t,n)=>o3(e,t,n),e.safeDecodeAsync=async(t,n)=>s3(e,t,n),l3(e,`ZodType`,{check(...e){let t=this.def;return this.clone(zX(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return XX(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(a5(e,t))},superRefine(e,t){return this.check(o5(e,t))},overwrite(e){return this.check(j2(e))},optional(){return S8(this)},exactOptional(){return w8(this)},nullable(){return E8(this)},nullish(){return S8(E8(this))},nonoptional(e){return N8(this,e)},array(){return H6(this)},or(e){return Y6([this,e])},and(e){return t8(this,e)},transform(e){return V8(this,b8(e))},default(e){return k8(this,e)},prefault(e){return j8(this,e)},catch(e){return L8(this,e)},pipe(e){return V8(this,e)},readonly(){return q8(this)},describe(e){let t=this.clone();return c0.add(t,{description:e}),t},meta(...e){if(e.length===0)return c0.get(this);let t=this.clone();return c0.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return c0.get(e)?.description},configurable:!0}),e)),d3=$(`_ZodString`,(e,t)=>{i$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>e4(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,l3(e,`_ZodString`,{regex(...e){return this.check(C2(...e))},includes(...e){return this.check(E2(...e))},startsWith(...e){return this.check(D2(...e))},endsWith(...e){return this.check(O2(...e))},min(...e){return this.check(x2(...e))},max(...e){return this.check(b2(...e))},length(...e){return this.check(S2(...e))},nonempty(...e){return this.check(x2(1,...e))},lowercase(e){return this.check(w2(e))},uppercase(e){return this.check(T2(e))},trim(){return this.check(N2())},normalize(...e){return this.check(M2(...e))},toLowerCase(){return this.check(P2())},toUpperCase(){return this.check(F2())},slugify(){return this.check(I2())}})}),f3=$(`ZodString`,(e,t)=>{i$.init(e,t),d3.init(e,t),e.email=t=>e.check(d0(h3,t)),e.url=t=>e.check(_0(w3,t)),e.jwt=t=>e.check(N0(r6,t)),e.emoji=t=>e.check(v0(D3,t)),e.guid=t=>e.check(f0(_3,t)),e.uuid=t=>e.check(p0(y3,t)),e.uuidv4=t=>e.check(m0(y3,t)),e.uuidv6=t=>e.check(h0(y3,t)),e.uuidv7=t=>e.check(g0(y3,t)),e.nanoid=t=>e.check(y0(k3,t)),e.guid=t=>e.check(f0(_3,t)),e.cuid=t=>e.check(b0(j3,t)),e.cuid2=t=>e.check(x0(N3,t)),e.ulid=t=>e.check(S0(F3,t)),e.base64=t=>e.check(A0(Z3,t)),e.base64url=t=>e.check(j0($3,t)),e.xid=t=>e.check(C0(L3,t)),e.ksuid=t=>e.check(w0(z3,t)),e.ipv4=t=>e.check(T0(V3,t)),e.ipv6=t=>e.check(E0(G3,t)),e.cidrv4=t=>e.check(O0(q3,t)),e.cidrv6=t=>e.check(k0(Y3,t)),e.e164=t=>e.check(M0(t6,t)),e.datetime=t=>e.check(V4(t)),e.date=t=>e.check(U4(t)),e.time=t=>e.check(G4(t)),e.duration=t=>e.check(q4(t))});function p3(e){return l0(f3,e)}var m3=$(`ZodStringFormat`,(e,t)=>{a$.init(e,t),d3.init(e,t)}),h3=$(`ZodEmail`,(e,t)=>{c$.init(e,t),m3.init(e,t)});function g3(e){return d0(h3,e)}var _3=$(`ZodGUID`,(e,t)=>{o$.init(e,t),m3.init(e,t)});function v3(e){return f0(_3,e)}var y3=$(`ZodUUID`,(e,t)=>{s$.init(e,t),m3.init(e,t)});function b3(e){return p0(y3,e)}function x3(e){return m0(y3,e)}function S3(e){return h0(y3,e)}function C3(e){return g0(y3,e)}var w3=$(`ZodURL`,(e,t)=>{l$.init(e,t),m3.init(e,t)});function T3(e){return _0(w3,e)}function E3(e){return _0(w3,{protocol:fQ,hostname:dQ,...ZX(e)})}var D3=$(`ZodEmoji`,(e,t)=>{u$.init(e,t),m3.init(e,t)});function O3(e){return v0(D3,e)}var k3=$(`ZodNanoID`,(e,t)=>{d$.init(e,t),m3.init(e,t)});function A3(e){return y0(k3,e)}var j3=$(`ZodCUID`,(e,t)=>{f$.init(e,t),m3.init(e,t)});function M3(e){return b0(j3,e)}var N3=$(`ZodCUID2`,(e,t)=>{p$.init(e,t),m3.init(e,t)});function P3(e){return x0(N3,e)}var F3=$(`ZodULID`,(e,t)=>{m$.init(e,t),m3.init(e,t)});function I3(e){return S0(F3,e)}var L3=$(`ZodXID`,(e,t)=>{h$.init(e,t),m3.init(e,t)});function R3(e){return C0(L3,e)}var z3=$(`ZodKSUID`,(e,t)=>{g$.init(e,t),m3.init(e,t)});function B3(e){return w0(z3,e)}var V3=$(`ZodIPv4`,(e,t)=>{x$.init(e,t),m3.init(e,t)});function H3(e){return T0(V3,e)}var U3=$(`ZodMAC`,(e,t)=>{C$.init(e,t),m3.init(e,t)});function W3(e){return D0(U3,e)}var G3=$(`ZodIPv6`,(e,t)=>{S$.init(e,t),m3.init(e,t)});function K3(e){return E0(G3,e)}var q3=$(`ZodCIDRv4`,(e,t)=>{w$.init(e,t),m3.init(e,t)});function J3(e){return O0(q3,e)}var Y3=$(`ZodCIDRv6`,(e,t)=>{T$.init(e,t),m3.init(e,t)});function X3(e){return k0(Y3,e)}var Z3=$(`ZodBase64`,(e,t)=>{D$.init(e,t),m3.init(e,t)});function Q3(e){return A0(Z3,e)}var $3=$(`ZodBase64URL`,(e,t)=>{k$.init(e,t),m3.init(e,t)});function e6(e){return j0($3,e)}var t6=$(`ZodE164`,(e,t)=>{A$.init(e,t),m3.init(e,t)});function n6(e){return M0(t6,e)}var r6=$(`ZodJWT`,(e,t)=>{M$.init(e,t),m3.init(e,t)});function i6(e){return N0(r6,e)}var a6=$(`ZodCustomStringFormat`,(e,t)=>{N$.init(e,t),m3.init(e,t)});function o6(e,t,n={}){return K2(a6,e,t,n)}function s6(e){return K2(a6,`hostname`,uQ,e)}function c6(e){return K2(a6,`hex`,OQ,e)}function l6(e,t){let n=`${e}_${t?.enc??`hex`}`,r=WZ[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return K2(a6,n,r,t)}var u6=$(`ZodNumber`,(e,t)=>{P$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>t4(e,t,n,r),l3(e,`ZodNumber`,{gt(e,t){return this.check(u2(e,t))},gte(e,t){return this.check(d2(e,t))},min(e,t){return this.check(d2(e,t))},lt(e,t){return this.check(c2(e,t))},lte(e,t){return this.check(l2(e,t))},max(e,t){return this.check(l2(e,t))},int(e){return this.check(p6(e))},safe(e){return this.check(p6(e))},positive(e){return this.check(u2(0,e))},nonnegative(e){return this.check(d2(0,e))},negative(e){return this.check(c2(0,e))},nonpositive(e){return this.check(l2(0,e))},multipleOf(e,t){return this.check(g2(e,t))},step(e,t){return this.check(g2(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function d6(e){return z0(u6,e)}var f6=$(`ZodNumberFormat`,(e,t)=>{F$.init(e,t),u6.init(e,t)});function p6(e){return V0(f6,e)}function m6(e){return H0(f6,e)}function h6(e){return U0(f6,e)}function g6(e){return W0(f6,e)}function _6(e){return G0(f6,e)}var v6=$(`ZodBoolean`,(e,t)=>{I$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>n4(e,t,n,r)});function y6(e){return K0(v6,e)}var b6=$(`ZodBigInt`,(e,t)=>{L$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>r4(e,t,n,r),e.gte=(t,n)=>e.check(d2(t,n)),e.min=(t,n)=>e.check(d2(t,n)),e.gt=(t,n)=>e.check(u2(t,n)),e.gte=(t,n)=>e.check(d2(t,n)),e.min=(t,n)=>e.check(d2(t,n)),e.lt=(t,n)=>e.check(c2(t,n)),e.lte=(t,n)=>e.check(l2(t,n)),e.max=(t,n)=>e.check(l2(t,n)),e.positive=t=>e.check(u2(BigInt(0),t)),e.negative=t=>e.check(c2(BigInt(0),t)),e.nonpositive=t=>e.check(l2(BigInt(0),t)),e.nonnegative=t=>e.check(d2(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(g2(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function x6(e){return J0(b6,e)}var S6=$(`ZodBigIntFormat`,(e,t)=>{R$.init(e,t),b6.init(e,t)});function C6(e){return X0(S6,e)}function w6(e){return Z0(S6,e)}var T6=$(`ZodSymbol`,(e,t)=>{z$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>i4(e,t,n,r)});function E6(e){return Q0(T6,e)}var D6=$(`ZodUndefined`,(e,t)=>{B$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>o4(e,t,n,r)});function O6(e){return $0(D6,e)}var k6=$(`ZodNull`,(e,t)=>{V$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>a4(e,t,n,r)});function A6(e){return e2(k6,e)}var j6=$(`ZodAny`,(e,t)=>{H$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function M6(){return t2(j6)}var N6=$(`ZodUnknown`,(e,t)=>{U$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function P6(){return n2(N6)}var F6=$(`ZodNever`,(e,t)=>{W$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c4(e,t,n,r)});function I6(e){return r2(F6,e)}var L6=$(`ZodVoid`,(e,t)=>{G$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s4(e,t,n,r)});function R6(e){return i2(L6,e)}var z6=$(`ZodDate`,(e,t)=>{K$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l4(e,t,n,r),e.min=(t,n)=>e.check(d2(t,n)),e.max=(t,n)=>e.check(l2(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function B6(e){return a2(z6,e)}var V6=$(`ZodArray`,(e,t)=>{J$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x4(e,t,n,r),e.element=t.element,l3(e,`ZodArray`,{min(e,t){return this.check(x2(e,t))},nonempty(e){return this.check(x2(1,e))},max(e,t){return this.check(b2(e,t))},length(e,t){return this.check(S2(e,t))},unwrap(){return this.element}})});function H6(e,t){return L2(V6,e,t)}function U6(e){let t=e._zod.def.shape;return p8(Object.keys(t))}var W6=$(`ZodObject`,(e,t)=>{$$.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S4(e,t,n,r),LX(e,`shape`,()=>t.shape),l3(e,`ZodObject`,{keyof(){return p8(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:P6()})},loose(){return this.clone({...this._zod.def,catchall:P6()})},strict(){return this.clone({...this._zod.def,catchall:I6()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return iZ(this,e)},safeExtend(e){return aZ(this,e)},merge(e){return oZ(this,e)},pick(e){return nZ(this,e)},omit(e){return rZ(this,e)},partial(...e){return sZ(x8,this,e[0])},required(...e){return cZ(M8,this,e[0])}})});function G6(e,t){return new W6({type:`object`,shape:e??{},...ZX(t)})}function K6(e,t){return new W6({type:`object`,shape:e,catchall:I6(),...ZX(t)})}function q6(e,t){return new W6({type:`object`,shape:e,catchall:P6(),...ZX(t)})}var J6=$(`ZodUnion`,(e,t)=>{t1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C4(e,t,n,r),e.options=t.options});function Y6(e,t){return new J6({type:`union`,options:e,...ZX(t)})}var X6=$(`ZodXor`,(e,t)=>{J6.init(e,t),r1.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C4(e,t,n,r),e.options=t.options});function Z6(e,t){return new X6({type:`union`,options:e,inclusive:!1,...ZX(t)})}var Q6=$(`ZodDiscriminatedUnion`,(e,t)=>{J6.init(e,t),i1.init(e,t)});function $6(e,t,n){return new Q6({type:`union`,options:t,discriminator:e,...ZX(n)})}var e8=$(`ZodIntersection`,(e,t)=>{a1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>w4(e,t,n,r)});function t8(e,t){return new e8({type:`intersection`,left:e,right:t})}var n8=$(`ZodTuple`,(e,t)=>{c1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T4(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})});function r8(e,t,n){let r=t instanceof r$;return new n8({type:`tuple`,items:e,rest:r?t:null,...ZX(r?n:t)})}var i8=$(`ZodRecord`,(e,t)=>{f1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E4(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function a8(e,t,n){return!t||!t._zod?new i8({type:`record`,keyType:p3(),valueType:e,...ZX(t)}):new i8({type:`record`,keyType:e,valueType:t,...ZX(n)})}function o8(e,t,n){let r=XX(e);return r._zod.values=void 0,new i8({type:`record`,keyType:r,valueType:t,...ZX(n)})}function s8(e,t,n){return new i8({type:`record`,keyType:e,valueType:t,mode:`loose`,...ZX(n)})}var c8=$(`ZodMap`,(e,t)=>{p1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y4(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(v2(...t)),e.nonempty=t=>e.check(v2(1,t)),e.max=(...t)=>e.check(_2(...t)),e.size=(...t)=>e.check(y2(...t))});function l8(e,t,n){return new c8({type:`map`,keyType:e,valueType:t,...ZX(n)})}var u8=$(`ZodSet`,(e,t)=>{h1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>b4(e,t,n,r),e.min=(...t)=>e.check(v2(...t)),e.nonempty=t=>e.check(v2(1,t)),e.max=(...t)=>e.check(_2(...t)),e.size=(...t)=>e.check(y2(...t))});function d8(e,t){return new u8({type:`set`,valueType:e,...ZX(t)})}var f8=$(`ZodEnum`,(e,t)=>{_1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>u4(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new f8({...t,checks:[],...ZX(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new f8({...t,checks:[],...ZX(r),entries:i})}});function p8(e,t){return new f8({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...ZX(t)})}function m8(e,t){return new f8({type:`enum`,entries:e,...ZX(t)})}var h8=$(`ZodLiteral`,(e,t)=>{v1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>d4(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function g8(e,t){return new h8({type:`literal`,values:Array.isArray(e)?e:[e],...ZX(t)})}var _8=$(`ZodFile`,(e,t)=>{y1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>m4(e,t,n,r),e.min=(t,n)=>e.check(v2(t,n)),e.max=(t,n)=>e.check(_2(t,n)),e.mime=(t,n)=>e.check(A2(Array.isArray(t)?t:[t],n))});function v8(e){return R2(_8,e)}var y8=$(`ZodTransform`,(e,t)=>{b1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v4(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new TX(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(_Z(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(_Z(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function b8(e){return new y8({type:`transform`,transform:e})}var x8=$(`ZodOptional`,(e,t)=>{S1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function S8(e){return new x8({type:`optional`,innerType:e})}var C8=$(`ZodExactOptional`,(e,t)=>{C1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function w8(e){return new C8({type:`optional`,innerType:e})}var T8=$(`ZodNullable`,(e,t)=>{w1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function E8(e){return new T8({type:`nullable`,innerType:e})}function D8(e){return S8(E8(e))}var O8=$(`ZodDefault`,(e,t)=>{T1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function k8(e,t){return new O8({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():KX(t)}})}var A8=$(`ZodPrefault`,(e,t)=>{D1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function j8(e,t){return new A8({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():KX(t)}})}var M8=$(`ZodNonOptional`,(e,t)=>{O1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function N8(e,t){return new M8({type:`nonoptional`,innerType:e,...ZX(t)})}var P8=$(`ZodSuccess`,(e,t)=>{A1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>h4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function F8(e){return new P8({type:`success`,innerType:e})}var I8=$(`ZodCatch`,(e,t)=>{j1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function L8(e,t){return new I8({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var R8=$(`ZodNaN`,(e,t)=>{M1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>f4(e,t,n,r)});function z8(e){return s2(R8,e)}var B8=$(`ZodPipe`,(e,t)=>{N1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M4(e,t,n,r),e.in=t.in,e.out=t.out});function V8(e,t){return new B8({type:`pipe`,in:e,out:t})}var H8=$(`ZodCodec`,(e,t)=>{B8.init(e,t),F1.init(e,t)});function U8(e,t,n){return new H8({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function W8(e){let t=e._zod.def;return new H8({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var G8=$(`ZodPreprocess`,(e,t)=>{B8.init(e,t),R1.init(e,t)}),K8=$(`ZodReadonly`,(e,t)=>{z1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>N4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function q8(e){return new K8({type:`readonly`,innerType:e})}var J8=$(`ZodTemplateLiteral`,(e,t)=>{V1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p4(e,t,n,r)});function Y8(e,t){return new J8({type:`template_literal`,parts:e,...ZX(t)})}var X8=$(`ZodLazy`,(e,t)=>{W1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I4(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function Z8(e){return new X8({type:`lazy`,getter:e})}var Q8=$(`ZodPromise`,(e,t)=>{U1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function $8(e){return new Q8({type:`promise`,innerType:e})}var e5=$(`ZodFunction`,(e,t)=>{H1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_4(e,t,n,r)});function t5(e){return new e5({type:`function`,input:Array.isArray(e?.input)?r8(e?.input):e?.input??H6(P6()),output:e?.output??P6()})}var n5=$(`ZodCustom`,(e,t)=>{G1.init(e,t),u3.init(e,t),e._zod.processJSONSchema=(t,n,r)=>g4(e,t,n,r)});function r5(e){let t=new jQ({check:`custom`});return t._zod.check=e,t}function i5(e,t){return z2(n5,e??(()=>!0),t)}function a5(e,t={}){return B2(n5,e,t)}function o5(e,t){return V2(e,t)}var s5=U2,c5=W2;function l5(e,t={}){let n=new n5({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...ZX(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}var u5=(...e)=>G2({Codec:H8,Boolean:v6,String:f3},...e);function d5(e){let t=Z8(()=>Y6([p3(e),d6(),y6(),A6(),H6(t),a8(p3(),t)]));return t}function f5(e,t){return new G8({type:`pipe`,in:b8(e),out:t})}var Wje={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`};function Gje(e){DX({customError:e})}function Kje(){return DX().customError}var p5;p5||={};var m5={...Uje,...Vje,iso:z4},qje=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`));function Jje(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function Yje(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function h5(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return m5.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return m5.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=g5(Yje(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return m5.null();if(n.length===0)return m5.never();if(n.length===1)return m5.literal(n[0]);if(n.every(e=>typeof e==`string`))return m5.enum(n);let r=n.map(e=>m5.literal(e));return r.length<2?r[0]:m5.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return m5.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>h5({...e,type:n},t));return r.length===0?m5.never():r.length===1?r[0]:m5.union(r)}if(!n)return m5.any();let r;switch(n){case`string`:{let t=m5.string();if(e.format){let n=e.format;n===`email`?t=t.check(m5.email()):n===`uri`||n===`uri-reference`?t=t.check(m5.url()):n===`uuid`||n===`guid`?t=t.check(m5.uuid()):n===`date-time`?t=t.check(m5.iso.datetime()):n===`date`?t=t.check(m5.iso.date()):n===`time`?t=t.check(m5.iso.time()):n===`duration`?t=t.check(m5.iso.duration()):n===`ipv4`?t=t.check(m5.ipv4()):n===`ipv6`?t=t.check(m5.ipv6()):n===`mac`?t=t.check(m5.mac()):n===`cidr`?t=t.check(m5.cidrv4()):n===`cidr-v6`?t=t.check(m5.cidrv6()):n===`base64`?t=t.check(m5.base64()):n===`base64url`?t=t.check(m5.base64url()):n===`e164`?t=t.check(m5.e164()):n===`jwt`?t=t.check(m5.jwt()):n===`emoji`?t=t.check(m5.emoji()):n===`nanoid`?t=t.check(m5.nanoid()):n===`cuid`?t=t.check(m5.cuid()):n===`cuid2`?t=t.check(m5.cuid2()):n===`ulid`?t=t.check(m5.ulid()):n===`xid`?t=t.check(m5.xid()):n===`ksuid`&&(t=t.check(m5.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?m5.number().int():m5.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=m5.boolean();break;case`null`:r=m5.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=g5(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=g5(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?g5(e.additionalProperties,t):m5.any();if(Object.keys(n).length===0){r=m5.record(i,a);break}let o=m5.object(n).passthrough(),s=m5.looseRecord(i,a);r=m5.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=g5(i[e],t),r=m5.string().regex(new RegExp(e));o.push(m5.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(m5.object(n).passthrough()),s.push(...o),s.length===0)r=m5.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=m5.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=m5.intersection(e,s[t]);r=e}break}let o=m5.object(n);r=e.additionalProperties===!1?o.strict():typeof e.additionalProperties==`object`?o.catchall(g5(e.additionalProperties,t)):o.passthrough();break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(e=>g5(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?g5(i,t):void 0;r=o?m5.tuple(a).rest(o):m5.tuple(a),typeof e.minItems==`number`&&(r=r.check(m5.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(m5.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>g5(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?g5(e.additionalItems,t):void 0;r=a?m5.tuple(n).rest(a):m5.tuple(n),typeof e.minItems==`number`&&(r=r.check(m5.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(m5.maxLength(e.maxItems)))}else if(i!==void 0){let n=g5(i,t),a=m5.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=m5.array(m5.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function g5(e,t){if(typeof e==`boolean`)return e?m5.any():m5.never();let n=h5(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>g5(e,t)),a=m5.union(i);n=r?m5.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>g5(e,t)),a=m5.xor(i);n=r?m5.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf)){if(e.allOf.length===0)n=r?n:m5.any();else{let i=r?n:g5(e.allOf[0],t),a=+!r;for(let n=a;n<e.allOf.length;n++)i=m5.intersection(i,g5(e.allOf[n],t));n=i}}e.nullable===!0&&t.version===`openapi-3.0`&&(n=m5.nullable(n)),e.readOnly===!0&&(n=m5.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let i={};for(let t of[`$id`,`id`,`$comment`,`$anchor`,`$vocabulary`,`$dynamicRef`,`$dynamicAnchor`])t in e&&(i[t]=e[t]);for(let t of[`contentEncoding`,`contentMediaType`,`contentSchema`])t in e&&(i[t]=e[t]);for(let t of Object.keys(e))qje.has(t)||(i[t]=e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function Xje(e,t){if(typeof e==`boolean`)return e?m5.any():m5.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:Jje(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??c0};return g5(n,r)}var Zje=d({bigint:()=>tMe,boolean:()=>eMe,date:()=>nMe,number:()=>$je,string:()=>Qje});function Qje(e){return u0(f3,e)}function $je(e){return B0(u6,e)}function eMe(e){return q0(v6,e)}function tMe(e){return Y0(b6,e)}function nMe(e){return o2(z6,e)}var rMe=d({$brand:()=>CX,$input:()=>a0,$output:()=>i0,NEVER:()=>SX,TimePrecision:()=>P0,ZodAny:()=>j6,ZodArray:()=>V6,ZodBase64:()=>Z3,ZodBase64URL:()=>$3,ZodBigInt:()=>b6,ZodBigIntFormat:()=>S6,ZodBoolean:()=>v6,ZodCIDRv4:()=>q3,ZodCIDRv6:()=>Y3,ZodCUID:()=>j3,ZodCUID2:()=>N3,ZodCatch:()=>I8,ZodCodec:()=>H8,ZodCustom:()=>n5,ZodCustomStringFormat:()=>a6,ZodDate:()=>z6,ZodDefault:()=>O8,ZodDiscriminatedUnion:()=>Q6,ZodE164:()=>t6,ZodEmail:()=>h3,ZodEmoji:()=>D3,ZodEnum:()=>f8,ZodError:()=>Hje,ZodExactOptional:()=>C8,ZodFile:()=>_8,ZodFirstPartyTypeKind:()=>p5,ZodFunction:()=>e5,ZodGUID:()=>_3,ZodIPv4:()=>V3,ZodIPv6:()=>G3,ZodISODate:()=>H4,ZodISODateTime:()=>B4,ZodISODuration:()=>K4,ZodISOTime:()=>W4,ZodIntersection:()=>e8,ZodIssueCode:()=>Wje,ZodJWT:()=>r6,ZodKSUID:()=>z3,ZodLazy:()=>X8,ZodLiteral:()=>h8,ZodMAC:()=>U3,ZodMap:()=>c8,ZodNaN:()=>R8,ZodNanoID:()=>k3,ZodNever:()=>F6,ZodNonOptional:()=>M8,ZodNull:()=>k6,ZodNullable:()=>T8,ZodNumber:()=>u6,ZodNumberFormat:()=>f6,ZodObject:()=>W6,ZodOptional:()=>x8,ZodPipe:()=>B8,ZodPrefault:()=>A8,ZodPreprocess:()=>G8,ZodPromise:()=>Q8,ZodReadonly:()=>K8,ZodRealError:()=>Y4,ZodRecord:()=>i8,ZodSet:()=>u8,ZodString:()=>f3,ZodStringFormat:()=>m3,ZodSuccess:()=>P8,ZodSymbol:()=>T6,ZodTemplateLiteral:()=>J8,ZodTransform:()=>y8,ZodTuple:()=>n8,ZodType:()=>u3,ZodULID:()=>F3,ZodURL:()=>w3,ZodUUID:()=>y3,ZodUndefined:()=>D6,ZodUnion:()=>J6,ZodUnknown:()=>N6,ZodVoid:()=>L6,ZodXID:()=>L3,ZodXor:()=>X6,_ZodString:()=>d3,_default:()=>k8,_function:()=>t5,any:()=>M6,array:()=>H6,base64:()=>Q3,base64url:()=>e6,bigint:()=>x6,boolean:()=>y6,catch:()=>L8,check:()=>r5,cidrv4:()=>J3,cidrv6:()=>X3,clone:()=>XX,codec:()=>U8,coerce:()=>Zje,config:()=>DX,core:()=>Bje,cuid:()=>M3,cuid2:()=>P3,custom:()=>i5,date:()=>B6,decode:()=>t3,decodeAsync:()=>r3,describe:()=>s5,discriminatedUnion:()=>$6,e164:()=>n6,email:()=>g3,emoji:()=>O3,encode:()=>e3,encodeAsync:()=>n3,endsWith:()=>O2,enum:()=>p8,exactOptional:()=>w8,file:()=>v8,flattenError:()=>CZ,float32:()=>m6,float64:()=>h6,formatError:()=>wZ,fromJSONSchema:()=>Xje,function:()=>t5,getErrorMap:()=>Kje,globalRegistry:()=>c0,gt:()=>u2,gte:()=>d2,guid:()=>v3,hash:()=>l6,hex:()=>c6,hostname:()=>s6,httpUrl:()=>E3,includes:()=>E2,instanceof:()=>l5,int:()=>p6,int32:()=>g6,int64:()=>C6,intersection:()=>t8,invertCodec:()=>W8,ipv4:()=>H3,ipv6:()=>K3,iso:()=>z4,json:()=>d5,jwt:()=>i6,keyof:()=>U6,ksuid:()=>B3,lazy:()=>Z8,length:()=>S2,literal:()=>g8,locales:()=>n0,looseObject:()=>q6,looseRecord:()=>s8,lowercase:()=>w2,lt:()=>c2,lte:()=>l2,mac:()=>W3,map:()=>l8,maxLength:()=>b2,maxSize:()=>_2,meta:()=>c5,mime:()=>A2,minLength:()=>x2,minSize:()=>v2,multipleOf:()=>g2,nan:()=>z8,nanoid:()=>A3,nativeEnum:()=>m8,negative:()=>p2,never:()=>I6,nonnegative:()=>h2,nonoptional:()=>N8,nonpositive:()=>m2,normalize:()=>M2,null:()=>A6,nullable:()=>E8,nullish:()=>D8,number:()=>d6,object:()=>G6,optional:()=>S8,overwrite:()=>j2,parse:()=>X4,parseAsync:()=>Z4,partialRecord:()=>o8,pipe:()=>V8,positive:()=>f2,prefault:()=>j8,preprocess:()=>f5,prettifyError:()=>DZ,promise:()=>$8,property:()=>k2,readonly:()=>q8,record:()=>a8,refine:()=>a5,regex:()=>C2,regexes:()=>WZ,registry:()=>s0,safeDecode:()=>a3,safeDecodeAsync:()=>s3,safeEncode:()=>i3,safeEncodeAsync:()=>o3,safeParse:()=>Q4,safeParseAsync:()=>$4,set:()=>d8,setErrorMap:()=>Gje,size:()=>y2,slugify:()=>I2,startsWith:()=>D2,strictObject:()=>K6,string:()=>p3,stringFormat:()=>o6,stringbool:()=>u5,success:()=>F8,superRefine:()=>o5,symbol:()=>E6,templateLiteral:()=>Y8,toJSONSchema:()=>R4,toLowerCase:()=>P2,toUpperCase:()=>F2,transform:()=>b8,treeifyError:()=>TZ,trim:()=>N2,tuple:()=>r8,uint32:()=>_6,uint64:()=>w6,ulid:()=>I3,undefined:()=>O6,union:()=>Y6,unknown:()=>P6,uppercase:()=>T2,url:()=>T3,util:()=>OX,uuid:()=>b3,uuidv4:()=>x3,uuidv6:()=>S3,uuidv7:()=>C3,void:()=>R6,xid:()=>R3,xor:()=>Z6});DX(J1());var _5=rMe,v5=[`equals`,`notEquals`,`contains`,`notContains`,`startsWith`,`endsWith`],y5=[`equals`,`notEquals`,`greaterThan`,`lessThan`,`between`],b5=[`equals`,`notEquals`,`greaterThan`,`lessThan`,`between`],x5={equals:`Is`,notEquals:`Is not`,contains:`Contains`,notContains:`Does not contain`,startsWith:`Starts with`,endsWith:`Ends with`,greaterThan:`Is greater than`,lessThan:`Is less than`,between:`Is between`},iMe=_5.object({filterOperator:_5.enum(b5),filterValueFrom:_5.union([_5.literal(``),_5.iso.date()]),filterValueTo:_5.union([_5.literal(``),_5.iso.date()])}),aMe=_5.object({filterOperator:_5.enum(v5),filterValue:_5.string()}),oMe=_5.object({filterOperator:_5.enum(y5),filterValueFrom:_5.string(),filterValueTo:_5.string()}),S5=({className:e,children:t,ref:r,tone:i,...a})=>{let o=f7().getValue(),s=typeof i==`function`?i(o):i;return(0,n.jsxs)(Yv,{variant:`soft`,className:X(``,e),ref:r,tone:s,...a,children:[t,o]})},C5=({showDivider:e=!0,className:t,ref:r,...i})=>{let a=d7();return a.state.viewMode===`grid`?(0,n.jsx)(a.Subscribe,{selector:e=>e,children:()=>(0,n.jsx)(`ul`,{className:X(`grid auto-rows-fr grid-cols-[repeat(auto-fill,minmax(252px,1fr))] gap-sm overflow-y-auto`,t),children:a.getRowModel().rows.map(e=>(0,n.jsx)(`li`,{className:`min-w-0`,children:e.getVisibleCells().map(e=>(0,n.jsx)(a.AppCell,{cell:e,children:e=>(0,n.jsx)(a.FlexRender,{cell:e})},e.id))},e.id))})}):(0,n.jsx)(a.Subscribe,{selector:e=>e,children:()=>(0,n.jsx)(`tbody`,{className:X(e&&`divide-y divide-border`,`overflow-y-auto`,t),ref:r,...i,children:a.getRowModel().rows.map(e=>(0,n.jsx)(`tr`,{style:{backgroundColor:e.getIsSelected()?`var(--color-neutral-container-high)`:`transparent`},children:e.getVisibleCells().map(e=>(0,n.jsx)(a.AppCell,{cell:e,children:e=>(0,n.jsx)(`td`,{style:{width:e.column.getSize()},className:X(`h-xl px-xs first:rounded-l-xl last:rounded-r-xl`,t),children:(0,n.jsx)(a.FlexRender,{cell:e})})},e.id))},e.id))})})},w5=({className:e,children:t,ref:r,...i})=>{let a=f7(),o=d7(),s=a.row;return(0,n.jsx)(o.Subscribe,{selector:e=>e.rowSelection,children:()=>(0,n.jsx)(lM,{checked:s.getIsSelected()||s.getCanSelectSubRows()&&s.getIsAllSubRowsSelected(),disabled:!s.getCanSelect(),indeterminate:s.getIsSomeSelected(),onCheckedChange:e=>s.toggleSelected(e),className:X(``,e),ref:r,...i,children:t})})},T5=({className:e,children:t,ref:r,...i})=>{let a=d7(),o=e=>{a.getColumn(e)?.toggleVisibility()};return(0,n.jsxs)(dX,{children:[(0,n.jsx)(yX,{className:X(`shrink-0`,e),ref:r,...i,children:t}),(0,n.jsx)(mX,{children:a.getAllColumns().flatMap(e=>e.getCanHide()?(0,n.jsx)(fX,{checked:e.getIsVisible(),onCheckedChange:()=>o(e.id),children:e.columnDef.header||e.id},e.id):null)})]})},E5=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex flex-col gap-xs`,e),ref:r,...i,children:t}),sMe=({className:e,children:t,ref:r,...i})=>{let a=f7();return(0,n.jsxs)(`span`,{className:X(``,e),ref:r,...i,children:[t,a.getValue().toLocaleDateString()]})},D5=({column:e,className:t,children:r,ref:i,...a})=>{let o=d7(),s=o.options.meta?.translations?.filterOperatorLabels,c=o.options.meta?.translations?.buttonLabels??{reset:`Reset`,apply:`Apply`},l=e.getFilterValue(),u=SL({defaultValues:{filterOperator:l?.operator??`equals`,filterValueFrom:l?.date[0]??``,filterValueTo:l?.date[1]??``},validators:{onSubmit:iMe},onSubmit:({value:t})=>{e.setFilterValue({operator:t.filterOperator,date:[t.filterValueFrom,t.filterValueTo]})}});return(0,n.jsx)(fL,{onSubmit:async e=>{e.preventDefault(),e.stopPropagation(),await u.handleSubmit()},onReset:()=>{e.setFilterValue(void 0),u.reset()},className:X(``,t),ref:i,...a,children:(0,n.jsxs)(u.AppForm,{children:[r,(0,n.jsx)(u.FormErrors,{}),(0,n.jsx)(u.FormSet,{children:(0,n.jsx)(u.FormSetHeading,{children:(0,n.jsx)(u.FormSetContent,{children:(0,n.jsx)(oF,{children:(0,n.jsx)(u.AppField,{name:`filterOperator`,children:e=>(0,n.jsxs)(oF,{children:[(0,n.jsx)(e.FieldErrors,{}),(0,n.jsx)(e.FieldRadioGroup,{children:b5.map(t=>(0,n.jsxs)(e.FieldSet,{children:[(0,n.jsx)(QI,{value:t,variant:`inSurface`,children:s?.[t]??x5[t]}),e.state.value===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.AppField,{name:`filterValueFrom`,children:e=>(0,n.jsxs)(oF,{children:[(0,n.jsx)(e.FieldErrors,{}),(0,n.jsx)(e.FieldInput,{type:`date`,variant:`secondary`})]})}),t===`between`&&(0,n.jsx)(u.AppField,{name:`filterValueTo`,children:e=>(0,n.jsxs)(oF,{children:[(0,n.jsx)(e.FieldErrors,{}),(0,n.jsx)(e.FieldInput,{type:`date`,variant:`secondary`})]})})]})]},t))})]})})})})})}),(0,n.jsxs)(u.FormFooter,{children:[(0,n.jsx)(u.FormReset,{children:c.reset}),(0,n.jsx)(u.FormSubmit,{children:c.apply})]})]})})},O5=({column:e,className:t,children:r,ref:i,...a})=>{let o=d7().options.meta?.translations?.filterOperatorLabels,s=e.getFilterValue();return(0,n.jsxs)(FP,{children:[(0,n.jsx)(RP,{className:X(``,t),ref:i,...a,children:(0,n.jsxs)(Wv,{tone:`neutral`,size:`extraSmall`,variant:`soft`,children:[(0,n.jsx)(li,{}),(0,n.jsx)(`span`,{children:e.columnDef.header||e.id}),(0,n.jsx)(`span`,{className:`lowercase`,children:o?.[s.operator]??x5[s.operator]}),(0,n.jsx)(`span`,{children:Array.isArray(s.date)&&s.date[1]!==``?s.date.join(` - `):s.date})]})}),(0,n.jsx)(IP,{children:(0,n.jsxs)(zP,{children:[(0,n.jsx)(LP,{children:e.columnDef.header||e.id}),(0,n.jsxs)(BP,{children:[r,(0,n.jsx)(D5,{column:e})]})]})})]},e.id)},k5=({column:e,className:t,children:r,ref:i,...a})=>{let o=d7(),s=o.options.meta?.translations?.filterOperatorLabels,c=o.options.meta?.translations?.buttonLabels??{reset:`Reset`,apply:`Apply`},l=e.getFilterValue(),u=SL({defaultValues:{filterOperator:l?.operator??`equals`,filterValueFrom:l?.number[0]??``,filterValueTo:l?.number[1]??``},validators:{onSubmit:oMe},onSubmit:({value:t})=>{e.setFilterValue({operator:t.filterOperator,number:[t.filterValueFrom,t.filterValueTo]})}});return(0,n.jsx)(fL,{onSubmit:async e=>{e.preventDefault(),e.stopPropagation(),await u.handleSubmit()},onReset:()=>{e.setFilterValue(void 0),u.reset({filterOperator:`equals`,filterValueFrom:``,filterValueTo:``})},className:X(``,t),ref:i,...a,children:(0,n.jsxs)(u.AppForm,{children:[r,(0,n.jsx)(u.FormErrors,{}),(0,n.jsx)(u.FormSet,{children:(0,n.jsx)(u.FormSetContent,{children:(0,n.jsx)(u.AppField,{name:`filterOperator`,children:t=>(0,n.jsxs)(oF,{children:[(0,n.jsx)(t.FieldErrors,{}),(0,n.jsx)(t.FieldRadioGroup,{children:y5.map(r=>(0,n.jsxs)(t.FieldSet,{children:[(0,n.jsx)(QI,{value:r,variant:`inSurface`,children:s?.[r]??x5[r]}),t.state.value===r&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.AppField,{name:`filterValueFrom`,children:t=>(0,n.jsxs)(oF,{children:[(0,n.jsx)(t.FieldErrors,{}),(0,n.jsx)(t.FieldInput,{"aria-label":`${e.id} filter value`,type:`number`,variant:`secondary`})]})}),r===`between`&&(0,n.jsx)(u.AppField,{name:`filterValueTo`,children:t=>(0,n.jsxs)(oF,{children:[(0,n.jsx)(t.FieldErrors,{}),(0,n.jsx)(t.FieldInput,{"aria-label":`${e.id} maximum filter value`,type:`number`,variant:`secondary`})]})})]})]},r))})]})})})}),(0,n.jsxs)(u.FormFooter,{children:[(0,n.jsx)(u.FormReset,{children:c.reset}),(0,n.jsx)(u.FormSubmit,{children:c.apply})]})]})})},A5=({column:e,className:t,children:r,ref:i,...a})=>{let o=d7().options.meta?.translations?.filterOperatorLabels,s=e.getFilterValue(),c=s.operator===`between`?s.number.filter(Boolean).join(` - `):s.number[0];return(0,n.jsxs)(FP,{children:[(0,n.jsx)(RP,{className:X(``,t),ref:i,...a,children:(0,n.jsxs)(Wv,{tone:`neutral`,size:`extraSmall`,variant:`soft`,children:[(0,n.jsx)(li,{}),(0,n.jsx)(`span`,{children:e.columnDef.header||e.id}),(0,n.jsx)(`span`,{className:`font-light lowercase`,children:o?.[s.operator]??x5[s.operator]}),(0,n.jsx)(`span`,{children:c}),r]})}),(0,n.jsxs)(IP,{children:[(0,n.jsx)(zP,{children:(0,n.jsx)(LP,{children:e.columnDef.header||e.id})}),(0,n.jsx)(BP,{children:(0,n.jsx)(k5,{column:e})})]})]})},j5=e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`,M5=e=>Array.isArray(e)&&e.every(j5),N5=({column:e,className:t,children:r,ref:i,...a})=>{let o=d7(),s=e.getFilterValue(),c=o.options.meta?.translations?.buttonLabels??{reset:`Reset`,apply:`Apply`},[l,u]=(0,m.useState)(M5(s)?s:[]),d=Array.from(e.getFacetedUniqueValues().keys()).filter(j5).sort((e,t)=>String(e).localeCompare(String(t)));return(0,n.jsxs)(fL,{className:X(``,t),onReset:()=>{e.setFilterValue(void 0),u([])},onSubmit:t=>{t.preventDefault(),t.stopPropagation(),l.length>0&&e.setFilterValue(l)},ref:i,...a,children:[r,(0,n.jsxs)(fM,{multiple:!0,value:l,onValueChange:e=>{M5(e)&&u(e)},children:[(0,n.jsxs)(_M,{"aria-label":`${e.id} filter value`,variant:`secondary`,children:[(0,n.jsx)(vM,{placeholder:`Select values`,children:e=>M5(e)?e.map(String).join(`, `):`Select values`}),(0,n.jsx)(hM,{children:(0,n.jsx)(Xr,{weight:`bold`})})]}),(0,n.jsx)(gM,{alignItemWithTrigger:!1,sideOffset:8,children:(0,n.jsx)(mM,{children:d.map(e=>(0,n.jsx)(pM,{value:e,children:(0,n.jsx)(bM,{children:String(e)})},`${typeof e}:${String(e)}`))})})]}),(0,n.jsxs)(hL,{children:[(0,n.jsx)(Wv,{className:`w-full`,tone:`neutral`,type:`reset`,variant:`outline`,children:c.reset}),(0,n.jsx)(Wv,{className:`w-full`,disabled:l.length===0,type:`submit`,children:c.apply})]})]})},P5=({column:e,className:t,children:r,ref:i,...a})=>{let o=e.getFilterValue(),s=e.columnDef.header||e.id;return(0,n.jsxs)(FP,{children:[(0,n.jsx)(RP,{className:X(``,t),ref:i,...a,children:(0,n.jsxs)(Wv,{tone:`neutral`,size:`extraSmall`,variant:`soft`,children:[(0,n.jsx)(li,{}),(0,n.jsx)(`span`,{children:s}),(0,n.jsx)(`span`,{className:`font-light lowercase`,children:o.map(String).join(`, `)}),r]})}),(0,n.jsxs)(IP,{children:[(0,n.jsx)(zP,{children:(0,n.jsx)(LP,{children:s})}),(0,n.jsx)(BP,{children:(0,n.jsx)(N5,{column:e})})]})]})},F5=({column:e,className:t,children:r,ref:i,...a})=>{let o=d7(),s=o.options.meta?.translations?.filterOperatorLabels,c=o.options.meta?.translations?.buttonLabels??{reset:`Reset`,apply:`Apply`},l=e.getFilterValue(),u=SL({defaultValues:{filterOperator:l?.operator??`contains`,filterValue:l?.value??``},validators:{onSubmit:aMe},onSubmit:({value:t})=>{e.setFilterValue({operator:t.filterOperator,value:t.filterValue})}});return(0,n.jsx)(fL,{onSubmit:async e=>{e.preventDefault(),e.stopPropagation(),await u.handleSubmit()},onReset:()=>{e.setFilterValue(void 0),u.reset({filterOperator:`contains`,filterValue:``})},className:X(``,t),ref:i,...a,children:(0,n.jsxs)(u.AppForm,{children:[r,(0,n.jsx)(u.FormErrors,{}),(0,n.jsx)(u.FormSet,{children:(0,n.jsx)(u.FormSetContent,{children:(0,n.jsx)(u.AppField,{name:`filterOperator`,children:t=>(0,n.jsxs)(oF,{children:[(0,n.jsx)(t.FieldErrors,{}),(0,n.jsx)(t.FieldRadioGroup,{children:v5.map(r=>(0,n.jsxs)(t.FieldSet,{children:[(0,n.jsx)(QI,{value:r,variant:`inSurface`,children:s?.[r]??x5[r]}),t.state.value===r&&(0,n.jsx)(u.AppField,{name:`filterValue`,children:t=>(0,n.jsxs)(oF,{children:[(0,n.jsx)(t.FieldErrors,{}),(0,n.jsx)(t.FieldInput,{"aria-label":`${e.id} filter value`,variant:`secondary`})]})})]},r))})]})})})}),(0,n.jsxs)(u.FormFooter,{children:[(0,n.jsx)(u.FormReset,{children:c.reset}),(0,n.jsx)(u.FormSubmit,{children:c.apply})]})]})})},I5=({column:e,className:t,children:r,ref:i,...a})=>{let o=d7().options.meta?.translations?.filterOperatorLabels,s=e.getFilterValue();return(0,n.jsxs)(FP,{children:[(0,n.jsx)(RP,{className:X(``,t),ref:i,...a,children:(0,n.jsxs)(Wv,{tone:`neutral`,size:`extraSmall`,variant:`soft`,children:[(0,n.jsx)(li,{}),(0,n.jsx)(`span`,{children:e.columnDef.header||e.id}),(0,n.jsx)(`span`,{className:`font-light lowercase`,children:o?.[s.operator]??x5[s.operator]}),(0,n.jsx)(`span`,{children:s.value}),r]})}),(0,n.jsxs)(IP,{children:[(0,n.jsx)(zP,{children:(0,n.jsx)(LP,{children:e.columnDef.header||e.id})}),(0,n.jsx)(BP,{children:(0,n.jsx)(F5,{column:e})})]})]})},L5=({className:e,children:t,ref:r,...i})=>{let a=d7();return(0,n.jsx)(a.Subscribe,{selector:e=>e.columnFilters,children:()=>a.getAllColumns().some(e=>e.getIsFiltered())?(0,n.jsxs)(`ul`,{className:X(`flex flex-wrap items-center gap-xs`,e),ref:r,...i,children:[t,a.getAllColumns().map(e=>{if(!e.getIsFiltered())return null;switch(e.columnDef.meta?.filterVariant){case`date`:return(0,n.jsx)(O5,{column:e},e.id);case`number`:return(0,n.jsx)(A5,{column:e},e.id);case`select`:return(0,n.jsx)(P5,{column:e},e.id);case`string`:return(0,n.jsx)(I5,{column:e},e.id);default:return null}})]}):null})},R5=({className:e,children:t,ref:r,...i})=>{let a=d7();return(0,n.jsxs)(dX,{modal:!1,children:[(0,n.jsx)(yX,{className:X(`shrink-0`,e),ref:r,...i,children:t}),(0,n.jsx)(mX,{align:`end`,className:``,children:a.getAllColumns().filter(e=>e.getCanFilter()).map(t=>{let{filterVariant:r}=t.columnDef.meta??{};return(0,n.jsxs)(FP,{children:[(0,n.jsx)(RP,{nativeButton:!1,children:(0,n.jsx)(pX,{closeOnClick:!1,children:t.columnDef.header||t.id})}),(0,n.jsxs)(IP,{side:`inline-end`,align:`start`,className:X(``,e),onKeyDownCapture:e=>e.stopPropagation(),children:[(0,n.jsx)(zP,{children:(0,n.jsx)(LP,{children:t.columnDef.header||t.id})}),(0,n.jsx)(BP,{children:(()=>{switch(r){case`date`:return(0,n.jsx)(D5,{column:t});case`number`:return(0,n.jsx)(k5,{column:t});case`select`:return(0,n.jsx)(N5,{column:t});case`string`:return(0,n.jsx)(F5,{column:t});default:return null}})()})]})]},t.id)})})]})},z5=({className:e,children:t,ref:r,...i})=>{let a=d7();return(0,n.jsxs)(Wv,{className:X(`shrink-0`,e),disabled:!a.getCanPreviousPage(),onClick:()=>{a.setPageIndex(0)},ref:r,variant:`ghost`,tone:`neutral`,...i,children:[t,(0,n.jsx)(Kr,{weight:`bold`})]})},B5=({className:e,children:t,ref:r,...i})=>{let a=d7();return(0,n.jsxs)(`tfoot`,{className:X(``,e),ref:r,...i,children:[t,a.getFooterGroups().map(e=>(0,n.jsx)(`tr`,{children:e.headers.map(e=>(0,n.jsx)(a.AppFooter,{header:e,children:e=>(0,n.jsx)(`td`,{style:{width:e.getSize()},colSpan:e.colSpan,children:(0,n.jsx)(a.FlexRender,{footer:e})})},e.id))},e.id))]})},V5=({className:e,children:t,ref:r,...i})=>{let a=d7();return a.state.viewMode===`grid`?null:(0,n.jsxs)(`thead`,{className:X(`bg-neutral-container`),ref:r,...i,children:[t,a.getHeaderGroups().map(t=>(0,n.jsx)(`tr`,{children:t.headers.map(t=>(0,n.jsx)(a.AppHeader,{header:t,selector:e=>e.sorting,children:t=>(0,n.jsx)(`th`,{style:{width:t.getSize()},className:X(`container p-xs text-left style-text-default-0 text-neutral-on-container-muted transition-colors first:rounded-l-xl last:rounded-r-xl`,t.column.getCanSort()&&`hover:cursor-pointer hover:bg-neutral-container-high hover:*:text-neutral-on-container`,t.isPlaceholder&&`cursor-default`,e),colSpan:t.colSpan,onClick:t.column.getToggleSortingHandler(),children:t.isPlaceholder?null:(0,n.jsxs)(`div`,{className:X(`flex items-center justify-between gap-2xs whitespace-nowrap [&_svg]:size-sm`,t.column.getCanSort()&&`select-none hover:cursor-pointer`),children:[(0,n.jsx)(`div`,{className:`flex items-center gap-2xs`,children:(0,n.jsx)(a.FlexRender,{header:t})}),{asc:(0,n.jsx)(yi,{weight:`bold`}),desc:(0,n.jsx)(vi,{weight:`bold`})}[t.column.getIsSorted()]??(t.column.getCanSort()?(0,n.jsx)(ui,{weight:`bold`}):null)]})},t.id)},t.id))},t.id))]})},H5=({className:e,ref:t,...r})=>{let i=f7();return(0,n.jsx)(`img`,{src:i.getValue(),className:X(`my-xs size-xl`,e),ref:t,...r})},U5=({className:e,children:t,ref:r,...i})=>{let a=d7();return(0,n.jsxs)(Wv,{className:X(`shrink-0`,e),disabled:!a.getCanNextPage(),onClick:()=>{a.setPageIndex(a.getPageCount()-1)},ref:r,variant:`ghost`,tone:`neutral`,...i,children:[t,(0,n.jsx)(qr,{weight:`bold`})]})},W5=({sticky:e=!1,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`div`,{className:X(`flex w-full items-center justify-between gap-md`,e&&`sticky bottom-0 z-10 bg-inherit`,t),ref:i,...a,children:r}),G5=({className:e,children:t,ref:r,...i})=>{let a=d7();return(0,n.jsxs)(Wv,{className:X(`shrink-0`,e),disabled:!a.getCanNextPage(),onClick:()=>{a.nextPage()},ref:r,variant:`ghost`,tone:`neutral`,...i,children:[t,(0,n.jsx)(Jr,{weight:`bold`})]})},K5=({className:e,children:t,ref:r,...i})=>{let a=f7();return(0,n.jsxs)(`span`,{className:X(``,e),ref:r,...i,children:[t,a.getValue().toLocaleString()]})},q5=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`inline-flex items-center justify-center gap-3xs`,e),ref:r,...i,children:t}),J5=({min:e=3,max:t=1,className:r,children:i,ref:a,...o})=>{let s=d7(),c=e=>{s.setPageIndex(e)};return(0,n.jsx)(s.Subscribe,{selector:e=>e.pagination,children:l=>{let u=s.getPageCount(),d=e=>e===l.pageIndex;return(0,n.jsxs)(`div`,{className:X(`flex items-center gap-3xs`,r),ref:a,...o,children:[i,Array.from({length:e}).map((e,t)=>t<u?(0,n.jsx)(Wv,{tone:`neutral`,size:`iconMedium`,variant:d(t)?`fill`:`ghost`,className:`shrink-0`,onClick:()=>c(t),children:t+1},t):null),u>e+t&&(0,n.jsxs)(dX,{children:[(0,n.jsx)(yX,{children:(0,n.jsx)(Wv,{tone:`neutral`,size:`iconMedium`,variant:`ghost`,className:`shrink-0`,children:(0,n.jsx)(ti,{weight:`bold`})})}),(0,n.jsx)(mX,{align:`center`,children:(0,n.jsx)(hX,{value:l.pageIndex,onValueChange:c,className:`max-h-[200px] overflow-y-auto`,children:Array.from({length:u-e-t}).map((t,r)=>{let i=e+r;return(0,n.jsx)(gX,{value:i,closeOnClick:!0,children:i+1},i)})})})]}),Array.from({length:t}).map((r,i)=>{let a=u-t+i;return a<e?null:(0,n.jsx)(Wv,{tone:`neutral`,size:`iconMedium`,variant:d(a)?`fill`:`ghost`,className:`shrink-0`,onClick:()=>c(a),children:a+1},i)})]})}})},Y5=({className:e,children:t,ref:r,...i})=>{let a=d7();return(0,n.jsxs)(Wv,{className:X(`shrink-0`,e),disabled:!a.getCanPreviousPage(),onClick:()=>{a.previousPage()},ref:r,variant:`ghost`,tone:`neutral`,...i,children:[t,(0,n.jsx)(Gr,{weight:`bold`})]})},X5=({className:e,children:t,ref:r,...i})=>{let a=d7(),o=e=>{a.setGlobalFilter(String(e.target.value))};return(0,n.jsx)(a.Subscribe,{selector:e=>e.globalFilter,children:a=>(0,n.jsxs)(jP,{children:[(0,n.jsx)(MP,{children:(0,n.jsx)(mi,{weight:`bold`})}),(0,n.jsx)(NP,{className:X(``,e),onChange:o,ref:r,value:a??``,...i,children:t})]})})},Z5=({className:e,children:t,ref:r,...i})=>{let a=d7();return(0,n.jsx)(a.Subscribe,{selector:e=>e.rowSelection,children:()=>{let o=a.getIsAllRowsSelected();return(0,n.jsx)(lM,{checked:o,indeterminate:!o&&a.getIsSomeRowsSelected(),onCheckedChange:e=>a.toggleAllRowsSelected(e),className:X(``,e),ref:r,...i,children:t})}})},Q5=({className:e,children:t,ref:r,...i})=>{let a=C7(),o=a.options.meta?.translations?.buttonLabels??{},s=o.ascending??`Ascending`,c=o.descending??`Descending`,l=(e,t)=>{let n=a.getColumn(e);if(n?.getIsSorted()===t){n?.clearSorting();return}n?.toggleSorting(t===`desc`,n.getCanMultiSort())};return(0,n.jsxs)(dX,{children:[(0,n.jsx)(yX,{className:X(`shrink-0`,e),ref:r,...i,children:t}),(0,n.jsx)(mX,{align:`end`,children:(0,n.jsx)(a.Subscribe,{selector:e=>e.sorting,children:()=>a.getAllColumns().filter(e=>e.getCanSort()).map(e=>(0,n.jsxs)(_X,{children:[(0,n.jsx)(vX,{children:e.columnDef.header||e.id}),(0,n.jsxs)(mX,{children:[(0,n.jsxs)(fX,{checked:e.getIsSorted()===`asc`,onClick:()=>l(e.id,`asc`),children:[(0,n.jsx)(yi,{weight:`bold`}),s]}),(0,n.jsxs)(fX,{checked:e.getIsSorted()===`desc`,onClick:()=>l(e.id,`desc`),children:[(0,n.jsx)(vi,{weight:`bold`}),c]})]})]},e.id))})})]})},$5=({column:e,className:t,children:r,ref:i,...a})=>{let o=d7(),s=e.getIsSorted(),c=o.options.meta?.translations?.buttonLabels??{},l=c.ascending??`Ascending`,u=c.descending??`Descending`;return s?(0,n.jsx)(Q5,{className:X(``,t),ref:i,...a,children:(0,n.jsxs)(Wv,{tone:`neutral`,size:`extraSmall`,variant:`soft`,children:[s===`asc`?(0,n.jsx)(yi,{}):(0,n.jsx)(vi,{}),(0,n.jsx)(`span`,{children:e.columnDef.header||e.id}),(0,n.jsx)(`span`,{className:`font-light lowercase`,children:s===`asc`?l:u}),r]})}):null},e7=({className:e,children:t,ref:r,...i})=>{let a=d7();return a.getAllColumns().some(e=>e.getIsSorted())?(0,n.jsx)(a.Subscribe,{selector:e=>e.sorting,children:()=>(0,n.jsxs)(`ul`,{className:X(`flex flex-wrap items-center gap-xs`,e),ref:r,...i,children:[t,a.getAllColumns().map(e=>e.getIsSorted()?(0,n.jsx)($5,{column:e},e.id):null)]})}):null},t7=({className:e,children:t,ref:r,...i})=>{let a=f7();return(0,n.jsxs)(`span`,{className:X(``,e),ref:r,...i,children:[t,a.getValue()]})},n7=({sticky:e=!1,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`div`,{className:X(`flex items-center gap-3xs`,e&&`sticky top-0 z-10`,t),ref:i,...a,children:r}),cMe=({className:e,children:t,ref:r,...i})=>{let a=d7(),o=a.state.viewMode===`grid`;return(0,n.jsx)(Wv,{onClick:()=>{a.toggleViewMode()},className:X(`shrink-0`,e),ref:r,...i,children:t(o)})},r7=({className:e,children:t,ref:r,...i})=>d7().state.viewMode===`grid`?(0,n.jsx)(`div`,{className:X(`size-full`,e),ref:r,...i,children:t}):(0,n.jsx)(`table`,{className:X(`size-full`,e),ref:r,...i,children:t}),i7=aV({filter:(e,t)=>t.includes(e),autoRemove:e=>!e?.length}),a7=e=>{if(!e)return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())},o7=aV({filter:(e,t)=>{let{operator:n,from:r,to:i}=t;switch(n){case`equals`:return r!==null&&e===r;case`notEquals`:return r!==null&&e!==r;case`greaterThan`:return r!==null&&e>r;case`lessThan`:return r!==null&&e<r;case`between`:return r!==null&&i!==null&&e>=r&&e<=i;default:return!0}},resolveFilterValue:e=>({operator:e.operator,from:a7(e.date[0]),to:a7(e.date[1])}),resolveDataValue:e=>{if(e instanceof Date)return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate());if(typeof e==`number`){let t=new Date(e);return Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())}if(typeof e==`string`){let t=new Date(e);return Number.isNaN(t.getTime())?0:Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())}return 0},autoRemove:e=>!e||!e.date[0]&&!e.date[1]}),s7=aV({filter:(e,t)=>{let{operator:n,value:r}=t,i=e.toLocaleLowerCase(),a=r.toLocaleLowerCase();switch(n){case`equals`:return i===a;case`notEquals`:return i!==a;case`contains`:return i.includes(a);case`notContains`:return!i.includes(a);case`startsWith`:return i.startsWith(a);case`endsWith`:return i.endsWith(a);default:return!0}},resolveDataValue:e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`?String(e):``,autoRemove:e=>!e||e.value===``}),c7=e=>{if(e.trim()===``)return null;let t=Number(e);return Number.isFinite(t)?t:null},l7=aV({filter:(e,t)=>{let{operator:n,from:r,to:i}=t;switch(n){case`equals`:return r!==null&&e===r;case`notEquals`:return r!==null&&e!==r;case`greaterThan`:return r!==null&&e>r;case`lessThan`:return r!==null&&e<r;case`between`:return(r===null||e>=r)&&(i===null||e<=i);default:return!0}},resolveFilterValue:e=>{let t=c7(e.number[0]),n=c7(e.number[1]);return t!==null&&n!==null&&t>n?{operator:e.operator,from:n,to:t}:{operator:e.operator,from:t,to:n}},resolveDataValue:e=>Number(e),autoRemove:e=>!e||e.number[0]===``&&e.number[1]===``}),u7=LB({columnFacetingFeature:VB,columnFilteringFeature:qB,columnSizingFeature:rV,columnVisibilityFeature:iV,globalFilteringFeature:PV,rowPaginationFeature:FV,rowSelectionFeature:nH,rowSortingFeature:rH,viewModePlugin:{getInitialState:e=>({viewMode:`list`,...e}),getDefaultTableOptions:e=>({enableViewModeToggle:!0,onViewModeChange:GL(`viewMode`,e)}),constructTableAPIs:e=>{let t=e.options;aR(`viewModePlugin`,e,{table_setViewMode:{fn:e=>t.onViewModeChange?.(t=>BL(e,t))},table_toggleViewMode:{fn:e=>t.onViewModeChange?.(t=>e||(t===`list`?`grid`:`list`))}})}},filteredRowModel:cH(),facetedRowModel:oH(),facetedUniqueValues:sH(),paginatedRowModel:uH(),sortedRowModel:dH(),columnMeta:IB(),tableMeta:IB(),filterFns:{includesString:lV,includesStringSensitive:cV,startsWith:fV,endsWith:pV,equalsString:uV,equalsStringSensitive:dV,equals:oV,weakEquals:sV,empty:mV,notEmpty:hV,arrIncludes:xV,arrIncludesAll:SV,arrIncludesSome:CV,arrHas:bV,inNumberRange:vV,inDateRange:yV,between:gV,betweenInclusive:_V,date:o7,string:s7,number:l7,select:i7},sortFns:{alphanumeric:bz,text:xz,datetime:Sz,basic:Cz}}),{createAppColumnHelper:lMe,useAppTable:uMe,useTableContext:d7,useCellContext:f7,useHeaderContext:dMe}=fH({features:u7,getRowId:(e,t,n)=>e.id??(n?`${n.id}.${t}`:String(t)),tableComponents:{TableBody:C5,TableColumnToggle:T5,TableContainer:E5,TableFirstPage:z5,TableFilterMenu:R5,TableFilterList:L5,TableFooter:B5,TableHeader:V5,TableLastPage:U5,TableNav:W5,TableNextPage:G5,TablePagination:q5,TablePaging:J5,TablePreviousPage:Y5,TableSearch:X5,TableSortMenu:Q5,TableSortList:e7,TableToolbar:n7,TableViewModeToggle:cMe,TableViewport:r7},cellComponents:{TableCheckboxCell:w5,TableDateCell:sMe,TableImageCell:H5,TableNumberCell:K5,TableBadgeCell:S5,TableTextCell:t7},headerComponents:{TableSelectHeader:Z5}}),fMe=({children:e})=>{let t=d7(),n=t.state.pagination.pageIndex,r=t.state.pagination.pageSize,i=t.getFilteredRowModel().rows.length,a=i===0?0:n*r+1;return e(a,i===0?0:Math.min(a+r-1,i),i)},pMe=Gn(`min-w-0 grow truncate px-2xs`,{variants:{size:{small:`style-text-default--1`,medium:`style-text-default-0`,large:`style-text-default-1`}},defaultVariants:{size:`medium`}}),p7=({size:e,className:t,children:r,ref:i,...a})=>{let o=f7();return(0,n.jsxs)(`span`,{className:X(pMe({size:e,className:t})),ref:i,...a,children:[r,o.getValue()]})},m7=({className:e,children:t,dndDisabled:r,...i})=>{let a=w7(),{draggingNodeId:o}=nX(),s=a.row,c=s.getCanExpand(),{ref:l,isDragging:u}=eOe({id:s.id,data:{isFolder:c,nodeId:s.id},disabled:r}),{ref:d,isDropTarget:f}=$Y({id:`folder:${s.id}`,data:{folderId:s.id,nodeId:s.id,isFolder:c},disabled:r||!c}),p=m.default.useCallback(e=>{l(e),d(e)},[l,d]),h=e=>{if(c){s.toggleExpanded();return}s.getCanSelect()&&(e.shiftKey||a.table.resetRowSelection(),s.getToggleSelectedHandler()({target:{checked:!0},shiftKey:e.shiftKey}))},g=m.default.useMemo(()=>{if(!o)return!1;let e=s.getParentRow();for(;e;){if(e.id===o)return!0;e=e.getParentRow()}return!1},[o,s]);return(0,n.jsxs)(`button`,{type:`button`,onClick:h,className:X(`flex h-lg min-w-0 grow items-center justify-start gap-2xs truncate rounded-lg px-2xs style-text-default-0 transition-all hover:cursor-pointer [&>svg]:size-sm [&>svg]:shrink-0`,c&&f&&`bg-success-container text-success-on-container ring ring-success-border`,s.getIsSelected()?`bg-neutral-default text-neutral-on-default`:`hover:bg-neutral-container hover:text-neutral-on-container`,(u||g)&&`opacity-60`,e),ref:p,...i,children:[t,a.getValue()]})},h7=(e,t)=>{for(let n of e){if(n.id===t)return n;if(n.children?.length){let e=h7(n.children,t);if(e)return e}}return null},g7=(e,t)=>{let n=null;return{nextNodes:e.flatMap(e=>{if(e.id===t)return n=e,[];if(!e.children?.length)return[e];let r=g7(e.children,t);return r.removedNode?(n=r.removedNode,[{...e,children:r.nextNodes}]):[e]}),removedNode:n}},_7=(e,t,n)=>e.map(e=>e.id===t?{...e,children:[...e.children??[],n]}:e.children?.length?{...e,children:_7(e.children,t,n)}:e),mMe=(e,t,n)=>{if(t===n)return e;let r=h7(e,t),i=h7(e,n);if(!r||!i?.children||h7(r.children??[],n))return e;let{nextNodes:a,removedNode:o}=g7(e,t);return o?_7(a,n,o):e},hMe=(e,t)=>{let{nextNodes:n,removedNode:r}=g7(e,t);return r?[...n,r]:e},v7={getInitialState:e=>({rowVisibility:{},...e}),getDefaultTableOptions:e=>({enableRowVisibility:!0,onRowVisibilityChange:GL(`rowVisibility`,e)}),constructTableAPIs:e=>{let t=e,n=e=>t.atoms.rowVisibility?.get()?.[e.id]??t.options.getRowVisible?.(e)??!0,r=e=>{t.options.onRowVisibilityChange?.(t=>BL(e,t))},i=()=>t.getRowModel().flatRows.every(e=>n(e));aR(`rowVisibilityFeature`,e,{table_setRowVisibility:{fn:e=>r(e)},table_resetRowVisibility:{fn:()=>r(t.initialState.rowVisibility??{})},table_getIsAllRowsVisible:{fn:()=>i()},table_toggleAllRowsVisible:{fn:e=>{let n=e??!i();r(()=>{let e={};for(let r of t.getRowModel().flatRows)e[r.id]=n;return e})}}})},assignRowPrototype:(e,t)=>{let n=t;oR(`rowVisibilityFeature`,e,t,{row_getIsVisible:{fn:e=>n.atoms.rowVisibility?.get()?.[e.id]??n.options.getRowVisible?.(e)??!0},row_toggleVisibility:{fn:(e,t)=>{n.options.onRowVisibilityChange?.(n=>({...n,[e.id]:t??!(n[e.id]??!0)}))}}})}},y7={getInitialState:e=>({rowLocked:{},...e}),getDefaultTableOptions:e=>({enableRowLocked:!0,onRowLockedChange:GL(`rowLocked`,e)}),constructTableAPIs:e=>{let t=e,n=e=>t.atoms.rowLocked?.get()?.[e.id]??t.options.getRowLocked?.(e)??!1,r=e=>{t.options.onRowLockedChange?.(t=>BL(e,t))},i=()=>t.getRowModel().flatRows.every(e=>n(e));aR(`rowLockedFeature`,e,{table_setRowLocked:{fn:e=>r(e)},table_resetRowLocked:{fn:()=>r(t.initialState.rowLocked??{})},table_getIsAllRowsLocked:{fn:()=>i()},table_toggleAllRowsLocked:{fn:e=>{let n=e??!i();r(()=>{let e={};for(let r of t.getRowModel().flatRows)e[r.id]=n;return e})}}})},assignRowPrototype:(e,t)=>{let n=t;oR(`rowLockedFeature`,e,t,{row_getIsLocked:{fn:e=>n.atoms.rowLocked?.get()?.[e.id]??n.options.getRowLocked?.(e)??!1},row_toggleLocked:{fn:(e,t)=>{n.options.onRowLockedChange?.(n=>({...n,[e.id]:t??!(n[e.id]??!1)}))}}})}},b7=({className:e,children:t,ref:r,...i})=>{let a=C7(),o=a.getCoreRowModel().flatRows,s=e=>{let t=!e;for(let e of o)e.toggleVisibility(t)};return(0,n.jsx)(a.Subscribe,{selector:e=>e.rowVisibility,children:()=>{let a=o.some(e=>e.getIsVisible());return(0,n.jsxs)(Wv,{size:`iconSmall`,tone:`neutral`,variant:`ghost`,onClick:()=>s(a),className:X(``,e),ref:r,...i,children:[t,a?(0,n.jsx)(ri,{weight:`bold`}):(0,n.jsx)(ii,{weight:`bold`})]})}})},x7=({className:e,children:t,ref:r,...i})=>{let a=w7(),o=C7(),s=a.row,c=s.getLeafRows(),l=c.length>0?c:[s],u=e=>{let t=!e;for(let e of l)e.toggleVisibility(t)};return(0,n.jsx)(o.Subscribe,{selector:e=>e.rowVisibility,children:()=>{let a=l.some(e=>e.getIsVisible());return(0,n.jsxs)(Wv,{size:`iconSmall`,tone:`neutral`,variant:`ghost`,onClick:()=>u(a),className:X(``,e),ref:r,...i,children:[t,a?(0,n.jsx)(ri,{}):(0,n.jsx)(ii,{})]})}})},S7=LB({columnFacetingFeature:VB,columnFilteringFeature:qB,columnSizingFeature:rV,columnVisibilityFeature:iV,globalFilteringFeature:PV,rowExpandingFeature:zwe,rowLockedFeature:y7,rowPaginationFeature:FV,rowSelectionFeature:nH,rowSortingFeature:rH,rowVisibilityFeature:v7,expandedRowModel:rTe(),filteredRowModel:cH(),facetedRowModel:oH(),facetedUniqueValues:sH(),paginatedRowModel:uH(),sortedRowModel:dH(),columnMeta:IB(),tableMeta:IB(),filterFns:{includesString:lV,includesStringSensitive:cV,startsWith:fV,endsWith:pV,equalsString:uV,equalsStringSensitive:dV,equals:oV,weakEquals:sV,empty:mV,notEmpty:hV,arrIncludes:xV,arrIncludesAll:SV,arrIncludesSome:CV,arrHas:bV,inNumberRange:vV,inDateRange:yV,between:gV,betweenInclusive:_V},sortFns:{alphanumeric:bz,text:xz,datetime:Sz,basic:Cz}}),{createAppColumnHelper:gMe,useAppTable:_Me,useTableContext:C7,useCellContext:w7,useHeaderContext:vMe}=fH({features:S7,tableComponents:{LayerTree:tX,LayerTreeBody:iX,LayerTreeExpandAll:aX,LayerTreeFooter:oX,LayerTreeLockedAll:cX,LayerTreeRow:rX,LayerTreeSearch:uX,LayerTreeSort:bX,LayerTreeVisibilityAll:b7},cellComponents:{LayerTreeIconCell:sX,LayerTreeLockedCell:lX,LayerTreeTextCell:p7,LayerTreeTriggerCell:m7,LayerTreeVisibilityCell:x7},headerComponents:{}}),yMe=Gn(`flex h-fit items-center justify-between`,{variants:{size:{small:`gap-2xs p-xs [&_span]:style-text-default--2 [&_svg]:size-sm`,medium:`gap-xs p-sm [&_span]:style-text-default--1 [&_svg]:size-md`,large:`gap-sm p-md [&_span]:style-text-default-0 [&_svg]:size-lg`},itemOrientation:{horizontal:`[&_[data-nav-bar-item]]:flex-row`,vertical:`[&_[data-nav-bar-item]]:flex-col`},variant:{outline:`w-full border border-border bg-surface-background`,floating:`absolute bottom-md w-fit max-w-15/16 overflow-x-auto bg-surface shadow-2xs`}},compoundVariants:[{size:`small`,variant:`floating`,className:`rounded-xl`},{size:`medium`,variant:`floating`,className:`rounded-2xl`},{size:`large`,variant:`floating`,className:`rounded-3xl`},{size:`small`,itemOrientation:`vertical`,className:`[&_[data-nav-bar-item]]:size-xl [&_[data-nav-bar-item]]:gap-3xs [&_[data-nav-bar-item]]:rounded-xl`},{size:`medium`,itemOrientation:`vertical`,className:`[&_[data-nav-bar-item]]:size-2xl [&_[data-nav-bar-item]]:gap-3xs [&_[data-nav-bar-item]]:rounded-2xl`},{size:`large`,itemOrientation:`vertical`,className:`[&_[data-nav-bar-item]]:size-3xl [&_[data-nav-bar-item]]:gap-2xs [&_[data-nav-bar-item]]:rounded-3xl`},{size:`small`,itemOrientation:`horizontal`,className:`[&_[data-nav-bar-item]]:h-lg [&_[data-nav-bar-item]]:gap-3xs [&_[data-nav-bar-item]]:rounded-lg [&_[data-nav-bar-item]]:px-xs`},{size:`medium`,itemOrientation:`horizontal`,className:`[&_[data-nav-bar-item]]:h-xl [&_[data-nav-bar-item]]:gap-2xs [&_[data-nav-bar-item]]:rounded-xl [&_[data-nav-bar-item]]:px-sm`},{size:`large`,itemOrientation:`horizontal`,className:`[&_[data-nav-bar-item]]:h-2xl [&_[data-nav-bar-item]]:gap-xs [&_[data-nav-bar-item]]:rounded-2xl [&_[data-nav-bar-item]]:px-md`}],defaultVariants:{itemOrientation:`vertical`,size:`medium`,variant:`outline`}}),bMe=Gn(`flex aspect-square items-center justify-center transition-all disabled:pointer-events-none disabled:opacity-50 data-[active=false]:hover:cursor-pointer data-[active=false]:active:scale-95 [&>svg]:shrink-0`,{variants:{tone:{brand:`text-brand-default hover:bg-brand-container hover:text-brand-on-container data-[active=true]:bg-brand-container data-[active=true]:text-brand-on-container`,accent:`text-accent-default hover:bg-accent-container hover:text-accent-on-container data-[active=true]:bg-accent-container data-[active=true]:text-accent-on-container`,neutral:`text-neutral-default hover:bg-neutral-container hover:text-neutral-on-container data-[active=true]:bg-neutral-container data-[active=true]:text-neutral-on-container`,error:`text-error-default hover:bg-error-container hover:text-error-on-container data-[active=true]:bg-error-container data-[active=true]:text-error-on-container`,info:`text-info-default hover:bg-info-container hover:text-info-on-container data-[active=true]:bg-info-container data-[active=true]:text-info-on-container`,success:`text-success-default hover:bg-success-container hover:text-success-on-container data-[active=true]:bg-success-container data-[active=true]:text-success-on-container`,warning:`text-warning-default hover:bg-warning-container hover:text-warning-on-container data-[active=true]:bg-warning-container data-[active=true]:text-warning-on-container`}},defaultVariants:{tone:`neutral`}}),xMe=({itemOrientation:e,size:t,variant:r,className:i,children:a,ref:o,...s})=>(0,n.jsx)(`div`,{className:X(yMe({itemOrientation:e,size:t,variant:r}),i),ref:o,...s,children:a}),SMe=({isActive:e=!1,tone:t,className:r,children:i,ref:a,...o})=>(0,n.jsx)(`button`,{"data-active":e,"data-nav-bar-item":!0,className:X(bMe({tone:t}),r),ref:a,...o,children:i}),CMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(``,e),ref:r,...i,children:t}),wMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`span`,{className:X(``,e),ref:r,...i,children:t}),TMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Am,{className:X(`min-w-max`,e),ref:r,...i,children:t}),EMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Bm,{className:X(`h-full w-[calc(100vw-40px)] rounded-xl bg-surface p-2xs transition-[opacity,transform,translate] duration-(--duration) ease-(--easing) data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:data-[activation-direction=left]:translate-x-[50%] data-starting-style:data-[activation-direction=left]:translate-x-[-50%] data-ending-style:data-[activation-direction=right]:translate-x-[-50%] data-starting-style:data-[activation-direction=right]:translate-x-[50%] min-[500px]:w-max min-[500px]:max-w-[400px]`,e),ref:r,...i,children:t}),DMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(nh,{className:X(`transition-transform duration-200 ease-[ease] data-popup-open:rotate-180`,e),ref:r,...i,children:t}),OMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Rm,{className:X(``,e),ref:r,...i,children:t}),kMe=Gn(`rounded-lg px-sm py-xs transition-colors hover:cursor-pointer`,{variants:{tone:{brand:`text-brand-on-container hover:bg-brand-container`,accent:`text-accent-on-container hover:bg-accent-container`,neutral:`text-neutral-on-container hover:bg-neutral-container`,error:`text-error-on-container hover:bg-error-container`,info:`text-info-on-container hover:bg-info-container`,success:`text-success-on-container hover:bg-success-container`,warning:`text-warning-on-container hover:bg-warning-container`}},defaultVariants:{tone:`neutral`}}),AMe=({tone:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`div`,{className:X(kMe({tone:e,className:t})),ref:i,...a,children:r}),jMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Fm,{className:X(`relative flex gap-px`,e),ref:r,...i,children:t}),MMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(Jm,{children:(0,n.jsx)(Zm,{sideOffset:10,collisionPadding:{top:5,bottom:5,left:20,right:20},collisionAvoidance:{side:`none`},className:X(`h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-(--duration) ease-(--easing) before:absolute data-instant:transition-none data-[side=bottom]:before:inset-x-0 data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:h-2xs data-[side=left]:before:inset-y-0 data-[side=left]:before:right-[-10px] data-[side=left]:before:w-2xs data-[side=right]:before:inset-y-0 data-[side=right]:before:left-[-10px] data-[side=right]:before:w-2xs data-[side=top]:before:inset-x-0 data-[side=top]:before:bottom-[-10px] data-[side=top]:before:h-2xs`,e),ref:r,style:{"--duration":`0.35s`,"--easing":`cubic-bezier(0.22, 1, 0.36, 1)`},...i,children:(0,n.jsxs)(eh,{className:`relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-xl shadow-md transition-[opacity,transform,width,height,scale] duration-(--duration) ease-(--easing) outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-ending-style:ease-[ease] data-starting-style:scale-90 data-starting-style:opacity-0`,children:[(0,n.jsx)(th,{className:`relative block overflow-clip transition-[left,right] duration-(--duration) ease-(--easing) before:absolute before:bottom-0 before:left-1/2 before:block before:size-[calc(6px*sqrt(2))] before:-translate-x-1/2 before:translate-y-1/2 before:rotate-45 before:border before:content-[''] data-[side=bottom]:top-[-6px] data-[side=left]:right-[-9px] data-[side=left]:rotate-90 data-[side=right]:left-[-9px] data-[side=right]:-rotate-90 data-[side=top]:bottom-[-6px] data-[side=top]:rotate-180`}),(0,n.jsx)($m,{className:`relative size-full overflow-hidden`}),t]})})}),NMe=Gn(`flex items-center justify-center rounded-full bg-transparent no-underline transition-colors select-none hover:cursor-pointer focus-visible:outline-2 focus-visible:-outline-offset-1`,{variants:{size:{small:`h-lg gap-3xs px-xs style-text-default--1 [&>svg]:size-xs`,medium:`h-xl gap-2xs px-sm style-text-default-0 [&>svg]:size-sm`,large:`h-2xl gap-xs px-md style-text-default-2 [&>svg]:size-md`},tone:{brand:`text-brand-default data-popup-open:bg-brand-container data-popup-open:text-brand-on-container`,accent:`text-accent-default data-popup-open:bg-accent-container data-popup-open:text-accent-on-container`,neutral:`text-neutral-default data-popup-open:bg-neutral-container data-popup-open:text-neutral-on-container`,error:`text-error-default data-popup-open:bg-error-container data-popup-open:text-error-on-container`,info:`text-info-default data-popup-open:bg-info-container data-popup-open:text-info-on-container`,success:`text-success-default data-popup-open:bg-success-container data-popup-open:text-success-on-container`,warning:`text-warning-default data-popup-open:bg-warning-container data-popup-open:text-warning-on-container`}},defaultVariants:{size:`medium`,tone:`neutral`}}),PMe=({size:e,tone:t,className:r,children:i,ref:a,...o})=>(0,n.jsx)(Um,{className:X(NMe({size:e,tone:t}),r),ref:a,...o,children:i}),FMe=Gn(`flex flex-col gap-3xs data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_[role="group"]]:rounded-full [&_[role="group"]]:outline [&_[role="group"]]:outline-transparent [&_[role="group"]]:transition-all aria-invalid:[&_[role="group"]]:bg-error-container aria-invalid:[&_[role="group"]]:outline-error-border aria-invalid:[&_[role="group"]]:focus-within:outline-error-border-strong aria-invalid:[&_[role="group"]]:not-focus-within:hover:outline-error-border data-[disabled]:[&_[role="group"]]:cursor-not-allowed data-[invalid]:[&_[role="group"]]:bg-error-container data-[invalid]:[&_[role="group"]]:outline-error-border data-[invalid]:[&_[role="group"]]:focus-within:outline-error-border-strong data-[invalid]:[&_[role="group"]]:not-focus-within:hover:outline-error-border aria-invalid:[&_input]:text-error-on-container aria-invalid:[&_input]:caret-error-border-strong data-[invalid]:[&_input]:text-error-on-container data-[invalid]:[&_input]:caret-error-border-strong`,{variants:{size:{small:`[&_[role="group"]]:h-lg [&_input]:style-text-default--1`,medium:`[&_[role="group"]]:h-xl [&_input]:style-text-default-0`,large:`[&_[role="group"]]:h-2xl [&_input]:style-text-default-1`},variant:{primary:`[&_[role="group"]]:bg-surface [&_[role="group"]]:shadow-2xs`,secondary:`[&_[role="group"]]:bg-neutral-container`,ghost:``}},defaultVariants:{size:`medium`,variant:`primary`}}),IMe=({size:e,variant:t,children:r,label:i,disableInput:a=!1,className:o,ref:s,...c})=>{let l=m.default.useId(),{min:u,max:d,value:f,defaultValue:p,onValueChange:h,"aria-invalid":g,..._}=c,[v,y]=m.default.useState(()=>typeof p==`number`?p:null),b=typeof f==`number`||f===null?f:v,x=!!(g||typeof b==`number`&&(typeof u==`number`&&b<u||typeof d==`number`&&b>d)),S=(...e)=>{let[t]=e;typeof f!=`number`&&f!==null&&y(t),h?.(...e)},C=()=>{switch(e){case`small`:return`iconSmall`;case`medium`:return`iconMedium`;case`large`:return`iconLarge`;default:return`iconMedium`}};return(0,n.jsxs)(vh,{className:X(FMe({size:e,variant:t,className:o})),ref:s,"aria-invalid":x,"data-invalid":x?``:void 0,defaultValue:p,id:l,max:d,min:u,onValueChange:S,value:f,..._,children:[i&&(0,n.jsxs)(Dh,{className:`cursor-ew-resize`,children:[(0,n.jsx)(`label`,{className:`cursor-ew-resize style-text-default--1`,htmlFor:l,children:i}),(0,n.jsx)(Oh,{children:(0,n.jsx)(LMe,{})})]}),(0,n.jsxs)(yh,{className:`relative flex w-full items-center gap-3xs`,children:[(0,n.jsx)(wh,{render:e=>(0,n.jsx)(Wv,{...e,tone:`error`,variant:`ghost`,size:C(),className:`shrink-0 rounded-r-none`,children:(0,n.jsx)(hi,{weight:`bold`})})}),(0,n.jsx)(Th,{disabled:a,className:X(`w-full text-center focus:outline-none`,r&&`text-right`)}),r&&(0,n.jsx)(`div`,{className:X(`w-full text-left text-on-surface-variant`,e===`small`&&`style-text-default--1`,e===`medium`&&`style-text-default-0`,e===`large`&&`style-text-default-1`),children:r}),(0,n.jsx)(Ch,{render:e=>(0,n.jsx)(Wv,{...e,tone:`success`,variant:`ghost`,size:C(),className:`shrink-0 rounded-l-none`,children:(0,n.jsx)(_i,{weight:`bold`})})})]})]})};function LMe(e){return(0,n.jsxs)(`svg`,{fill:`black`,height:`14`,stroke:`white`,viewBox:`0 0 24 14`,width:`26`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,n.jsx)(`title`,{children:`Resize cursor`}),(0,n.jsx)(`path`,{d:`M19.5 5.5L6.49737 5.51844V2L1 6.9999L6.5 12L6.49737 8.5L19.5 8.5V12L25 6.9999L19.5 2V5.5Z`})]})}var RMe=({children:e,...t})=>(0,n.jsx)(ag,{...t,children:e}),zMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(cg,{children:(0,n.jsx)(dg,{className:X(``,e),ref:r,...i,children:(0,n.jsx)(fg,{className:`relative h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) rounded-xl bg-surface shadow-md transition-[transform,opacity] duration-100 ease-out data-ending-style:transform-[scale(0.98)] data-ending-style:opacity-0 data-starting-style:transform-[scale(0.98)] data-starting-style:opacity-0`,children:t})})}),BMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(lg,{className:X(``,e),ref:r,...i,children:t}),VMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex w-full items-center gap-sm rounded-full`,e),ref:r,...i,children:t}),HMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`span`,{className:X(`flex items-center gap-xs style-text-default-0 [&>svg]:size-md`,e),ref:r,...i,children:t}),UMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`span`,{className:X(`style-text-default--2 text-on-surface-variant`,e),ref:r,...i,children:t}),WMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`ml-auto text-on-surface-variant [&>svg]:size-sm`,e),ref:r,...i,children:t}),GMe=({compact:e,className:t,children:r,ref:i,...a})=>(0,n.jsx)(`div`,{className:X(`flex flex-col items-start justify-start gap-3xs`,e&&`hidden`,t),ref:i,...a,children:r}),KMe=({currentIndex:e,className:t,children:r,ref:i,...a})=>{let o=`progress-${(0,m.useId)().replace(/:/g,``)}`,s=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`style`,{children:`
198
- .${o} > :nth-child(${s}) [data-slot='progress-indicator'] {
199
- background-color: var(--color-accent-container);
200
- border: 1px solid var(--color-accent-border-strong);
201
- color: var(--color-accent-on-container);
202
- }
203
- .${o} > :nth-child(-n+${s-1}) [data-slot='progress-indicator'] {
204
- background-color: var(--color-accent-default);
205
- border: none;
206
- color: var(--color-accent-on-default);
207
- box-shadow: none;
208
- }
209
- .${o} > :nth-child(-n+${s-1}) [data-slot='progress-bar'] {
210
- background-color: var(--color-accent-default);
211
- }
212
- `}),(0,n.jsx)(`div`,{className:X(`flex w-full items-center justify-center gap-2xs`,o,t),ref:i,...a,children:r})]})},qMe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:`w-full`,children:(0,n.jsx)(`div`,{className:X(`h-3xs w-full grow rounded-full bg-accent-default/20 transition-colors ease-in-out`,e),"data-slot":`progress-bar`,ref:r,...i,children:t})}),JMe=({title:e,description:t,className:r,children:i,ref:a,...o})=>(0,n.jsxs)(`div`,{className:`relative`,children:[(0,n.jsx)(`div`,{className:X(`flex size-md shrink-0 flex-col items-center justify-center rounded-full border border-neutral-border bg-neutral-container text-center style-text-default--2 text-accent-default transition-colors ease-in-out [&>svg]:size-xs`,r),"data-slot":`progress-indicator`,ref:a,...o,children:i}),(0,n.jsxs)(`div`,{className:`absolute top-full left-1/2 w-3xl -translate-x-1/2 translate-y-2xs`,children:[e&&(0,n.jsx)(`div`,{className:`text-center style-text-strong--2 text-on-surface`,children:e}),t&&(0,n.jsx)(`div`,{className:`text-center style-text-prose--2 text-on-surface-variant`,children:t})]})]}),YMe=Gn(`absolute top-[0px] right-[0px] flex`,{variants:{tone:{brand:`[&_[data-dot]]:bg-brand-default [&_[data-radar-ping]]:bg-brand-default`,accent:`[&_[data-dot]]:bg-accent-default [&_[data-radar-ping]]:bg-accent-default`,neutral:`[&_[data-dot]]:bg-neutral-default [&_[data-radar-ping]]:bg-neutral-default`,info:`[&_[data-dot]]:bg-info-default [&_[data-radar-ping]]:bg-info-default`,error:`[&_[data-dot]]:bg-error-default [&_[data-radar-ping]]:bg-error-default`,success:`[&_[data-dot]]:bg-success-default [&_[data-radar-ping]]:bg-success-default`,warning:`[&_[data-dot]]:bg-warning-default [&_[data-radar-ping]]:bg-warning-default`},size:{small:`-mt-3xs -mr-3xs style-text-default--2 [&_[data-dot]]:size-sm`,medium:`-mt-2xs -mr-2xs style-text-default--1 [&_[data-dot]]:size-md`,large:`-mt-xs -mr-xs style-text-default-0 [&_[data-dot]]:size-lg`}},defaultVariants:{tone:`brand`,size:`medium`}}),XMe=({hidePing:e=!1,tone:t=`brand`,size:r=`medium`,className:i,children:a,ref:o,...s})=>(0,n.jsxs)(`div`,{className:X(YMe({tone:t,size:r,className:i})),ref:o,...s,children:[!e&&(0,n.jsx)(`span`,{className:`absolute inline-flex size-full animate-ping rounded-full opacity-75`,"data-radar-ping":!0}),(0,n.jsx)(`span`,{className:`relative flex items-center justify-center rounded-full text-surface`,"data-dot":!0,children:a})]});function ZMe(e,t){let n=getComputedStyle(e);return t*parseFloat(n.fontSize)}function QMe(e,t){let n=getComputedStyle(e.ownerDocument.documentElement);return t*parseFloat(n.fontSize)}function $Me(e){return e/100*window.innerHeight}function eNe(e){return e/100*window.innerWidth}function tNe(e){switch(typeof e){case`number`:return[e,`px`];case`string`:{let t=parseFloat(e);return e.endsWith(`%`)?[t,`%`]:e.endsWith(`px`)?[t,`px`]:e.endsWith(`rem`)?[t,`rem`]:e.endsWith(`em`)?[t,`em`]:e.endsWith(`vh`)?[t,`vh`]:e.endsWith(`vw`)?[t,`vw`]:[t,`%`]}}}function T7({groupSize:e,panelElement:t,styleProp:n}){let r,[i,a]=tNe(n);switch(a){case`%`:r=i/100*e;break;case`px`:r=i;break;case`rem`:r=QMe(t,i);break;case`em`:r=ZMe(t,i);break;case`vh`:r=$Me(i);break;case`vw`:r=eNe(i)}return r}function E7(e){return parseFloat(e.toFixed(3))}function D7({group:e}){let{orientation:t,panels:n}=e;return n.reduce((e,n)=>(e+=t===`horizontal`?n.element.offsetWidth:n.element.offsetHeight,e),0)}function O7(e){let{panels:t}=e,n=D7({group:e});return n===0?t.map(e=>({groupResizeBehavior:e.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:e.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:e.panelConstraints.disabled,minSize:0,maxSize:100,panelId:e.id})):t.map(e=>{let{element:t,panelConstraints:r}=e,i=0;r.collapsedSize!==void 0&&(i=E7(T7({groupSize:n,panelElement:t,styleProp:r.collapsedSize})/n*100));let a;r.defaultSize!==void 0&&(a=E7(T7({groupSize:n,panelElement:t,styleProp:r.defaultSize})/n*100));let o=0;r.minSize!==void 0&&(o=E7(T7({groupSize:n,panelElement:t,styleProp:r.minSize})/n*100));let s=100;return r.maxSize!==void 0&&(s=E7(T7({groupSize:n,panelElement:t,styleProp:r.maxSize})/n*100)),{groupResizeBehavior:r.groupResizeBehavior,collapsedSize:i,collapsible:r.collapsible===!0,defaultSize:a,disabled:r.disabled,minSize:o,maxSize:s,panelId:e.id}})}function k7(e,t=`Assertion error`){if(!e)throw Error(t)}function A7(e,t){return Array.from(t).sort(e===`horizontal`?nNe:rNe)}function nNe(e,t){let n=e.element.offsetLeft-t.element.offsetLeft;return n===0?e.element.offsetWidth-t.element.offsetWidth:n}function rNe(e,t){let n=e.element.offsetTop-t.element.offsetTop;return n===0?e.element.offsetHeight-t.element.offsetHeight:n}function j7(e){return typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE}function M7(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function iNe({orientation:e,rects:t,targetRect:n}){let r={x:n.x+n.width/2,y:n.y+n.height/2},i,a=Number.MAX_VALUE;for(let n of t){let{x:t,y:o}=M7(r,n),s=e===`horizontal`?t:o;s<a&&(a=s,i=n)}return k7(i,`No rect found`),i}var N7;function aNe(){return N7===void 0&&(N7=typeof matchMedia==`function`&&!!matchMedia(`(pointer:coarse)`).matches),N7}function P7(e){let{element:t,orientation:n,panels:r,separators:i}=e,a=A7(n,Array.from(t.children).filter(j7).map(e=>({element:e}))).map(({element:e})=>e),o=[],s=!1,c=!1,l=-1,u=-1,d=0,f,p=[];{let e=-1;for(let t of a)t.hasAttribute(`data-panel`)&&(e++,t.hasAttribute(`data-disabled`)||(d++,l===-1&&(l=e),u=e))}if(d>1){let t=-1;for(let d of a)if(d.hasAttribute(`data-panel`)){t++;let i=r.find(e=>e.element===d);if(i){if(f){let r=f.element.getBoundingClientRect(),a=d.getBoundingClientRect(),m;if(c){let e=n===`horizontal`?new DOMRect(r.right,r.top,0,r.height):new DOMRect(r.left,r.bottom,r.width,0),t=n===`horizontal`?new DOMRect(a.left,a.top,0,a.height):new DOMRect(a.left,a.top,a.width,0);switch(p.length){case 0:m=[e,t];break;case 1:{let i=p[0];m=[i,iNe({orientation:n,rects:[r,a],targetRect:i.element.getBoundingClientRect()})===r?t:e];break}default:m=p}}else m=p.length?p:[n===`horizontal`?new DOMRect(r.right,a.top,a.left-r.right,a.height):new DOMRect(a.left,r.bottom,a.width,a.top-r.bottom)];for(let n of m){let r=`width`in n?n:n.element.getBoundingClientRect(),a=aNe()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(r.width<a){let e=a-r.width;r=new DOMRect(r.x-e/2,r.y,r.width+e,r.height)}if(r.height<a){let e=a-r.height;r=new DOMRect(r.x,r.y-e/2,r.width,r.height+e)}!s&&!(t<=l||t>u)&&o.push({group:e,groupSize:D7({group:e}),panels:[f,i],separator:`width`in n?void 0:n,rect:r}),s=!1}}c=!1,f=i,p=[]}}else if(d.hasAttribute(`data-separator`)){d.ariaDisabled!==null&&(s=!0);let e=i.find(e=>e.element===d);e?p.push(e):(f=void 0,p=[])}else c=!0}return o}var F7=class{#e={};addListener(e,t){let n=this.#e[e];return n===void 0?this.#e[e]=[t]:n.includes(t)||n.push(t),()=>{this.removeListener(e,t)}}emit(e,t){let n=this.#e[e];if(n!==void 0){if(n.length===1)n[0].call(null,t);else{let e=!1,r=null,i=Array.from(n);for(let n=0;n<i.length;n++){let a=i[n];try{a.call(null,t)}catch(t){r===null&&(e=!0,r=t)}}if(e)throw r}}}removeAllListeners(){this.#e={}}removeListener(e,t){let n=this.#e[e];if(n!==void 0){let e=n.indexOf(t);e>=0&&n.splice(e,1)}}},I7={cursorFlags:0,state:`inactive`},L7=new F7;function R7(){return I7}function oNe(e){return L7.addListener(`change`,e)}function sNe(e){let t=I7,n={...I7};n.cursorFlags=e,I7=n,L7.emit(`change`,{prev:t,next:n})}function z7(e){let t=I7;I7=e,L7.emit(`change`,{prev:t,next:e})}var cNe=e=>e,B7=()=>{},V7=1,H7=2,U7=4,W7=8,G7=3,K7=12,q7;function J7(){return q7===void 0&&(q7=!1,typeof window<`u`&&(window.navigator.userAgent.includes(`Chrome`)||window.navigator.userAgent.includes(`Firefox`))&&(q7=!0)),q7}function lNe({cursorFlags:e,groups:t,state:n}){let r=0,i=0;switch(n){case`active`:case`hover`:t.forEach(e=>{if(!e.mutableState.disableCursor)switch(e.orientation){case`horizontal`:r++;break;case`vertical`:i++}})}if(r!==0||i!==0){if(n===`active`&&e&&J7()){let t=(e&V7)!==0,n=(e&H7)!==0,r=(e&U7)!==0,i=(e&W7)!==0;if(t)return r?`se-resize`:i?`ne-resize`:`e-resize`;if(n)return r?`sw-resize`:i?`nw-resize`:`w-resize`;if(r)return`s-resize`;if(i)return`n-resize`}return J7()?r>0&&i>0?`move`:r>0?`ew-resize`:`ns-resize`:r>0&&i>0?`grab`:r>0?`col-resize`:`row-resize`}}var Y7=new WeakMap;function X7(e){if(!e.defaultView||!e.adoptedStyleSheets)return;let{prevStyle:t,styleSheet:n}=Y7.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));let r=R7();switch(r.state){case`active`:case`hover`:{let e=lNe({cursorFlags:r.cursorFlags,groups:r.hitRegions.map(e=>e.group),state:r.state}),i=`*, *:hover {cursor: ${e} !important; }`;if(t===i)return;t=i,e?n.cssRules.length===0?n.insertRule(i):n.replaceSync(i):n.cssRules.length===1&&n.deleteRule(0);break}case`inactive`:t=void 0,n.cssRules.length===1&&n.deleteRule(0)}Y7.set(e,{prevStyle:t,styleSheet:n})}var Z7=new Map,Q7=new F7;function uNe(e){Z7=new Map(Z7),Z7.delete(e)}function $7(e,t){for(let[t]of Z7)if(t.id===e)return t}function e9(e,t){for(let[t,n]of Z7)if(t.id===e)return n;if(t)throw Error(`Could not find data for Group with id ${e}`)}function t9(){return Z7}function n9(e,t){return Q7.addListener(`groupChange`,n=>{n.group.id===e&&t(n)})}function r9(e,t,n){let r=Z7.get(e);Z7=new Map(Z7),Z7.set(e,t),Q7.emit(`groupChange`,{group:e,isUserInteraction:n?.isUserInteraction===!0,prev:r,next:t})}function i9(e){let t=R7(),n=t9(),r=!1;return t.state===`active`&&(z7({cursorFlags:0,state:`inactive`}),t.hitRegions.length>0&&(X7(e),r=!0,t.hitRegions.forEach(e=>{if(!n.has(e.group))return;let t=e9(e.group.id,!0);r9(e.group,t,{isUserInteraction:!0})}))),r}function a9(e){e.defaultPrevented||i9(e.currentTarget)}function dNe(e,t,n){let r,i={x:1/0,y:1/0};for(let a of t){let t=M7(n,a.rect);switch(e){case`horizontal`:t.x<=i.x&&(r=a,i=t);break;case`vertical`:t.y<=i.y&&(r=a,i=t)}}return r?{distance:i,hitRegion:r}:void 0}function fNe(e){return typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function pNe(e,t){if(e===t)throw Error(`Cannot compare node with itself`);let n={a:c9(e),b:c9(t)},r;for(;n.a.at(-1)===n.b.at(-1);)r=n.a.pop(),n.b.pop();k7(r,`Stacking order can only be calculated for elements with a common ancestor`);let i={a:s9(o9(n.a)),b:s9(o9(n.b))};if(i.a===i.b){let e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)},i=e.length;for(;i--;){let n=e[i];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(i.a-i.b)}var mNe=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function hNe(e){let t=getComputedStyle(l9(e)??e).display;return t===`flex`||t===`inline-flex`}function gNe(e){let t=getComputedStyle(e);return!!(t.position===`fixed`||t.zIndex!==`auto`&&(t.position!==`static`||hNe(e))||+t.opacity<1||`transform`in t&&t.transform!==`none`||`webkitTransform`in t&&t.webkitTransform!==`none`||`mixBlendMode`in t&&t.mixBlendMode!==`normal`||`filter`in t&&t.filter!==`none`||`webkitFilter`in t&&t.webkitFilter!==`none`||`isolation`in t&&t.isolation===`isolate`||mNe.test(t.willChange)||t.webkitOverflowScrolling===`touch`)}function o9(e){let t=e.length;for(;t--;){let n=e[t];if(k7(n,`Missing node`),gNe(n))return n}return null}function s9(e){return e&&Number(getComputedStyle(e).zIndex)||0}function c9(e){let t=[];for(;e;)t.push(e),e=l9(e);return t}function l9(e){let{parentNode:t}=e;return fNe(t)?t.host:t}function _Ne(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function vNe({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!j7(n)||n.contains(e)||e.contains(n))return!0;if(pNe(n,e)>0){let r=n;for(;r;){if(r.contains(e))return!0;if(_Ne(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function u9(e,t){let n=[];return t.forEach((t,r)=>{if(r.disabled)return;let i=P7(r),a=dNe(r.orientation,i,{x:e.clientX,y:e.clientY});a&&a.distance.x<=0&&a.distance.y<=0&&vNe({groupElement:r.element,hitRegion:a.hitRegion.rect,pointerEventTarget:e.target})&&n.push(a.hitRegion)}),n}function yNe(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function d9(e,t,n=0){return Math.abs(E7(e)-E7(t))<=n}function f9(e,t){return d9(e,t)?0:e>t?1:-1}function p9({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:r}){let{collapsedSize:i=0,collapsible:a,disabled:o,maxSize:s=100,minSize:c=0}=t;if(o&&!e)return n;if(f9(r,c)<0){if(a){let e=(i+c)/2;r=f9(r,e)<0?i:c}else r=c}return r=Math.min(s,r),r=E7(r),r}function m9({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:a}){if(d9(e,0))return t;let o=a===`imperative-api`,s=Object.values(t),c=Object.values(i),l=[...s],[u,d]=r;k7(u!=null,`Invalid first pivot index`),k7(d!=null,`Invalid second pivot index`);let f=0;switch(a){case`keyboard`:{let t=e<0?d:u,r=n[t];k7(r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(k7(n!=null,`Previous layout not found for panel index ${t}`),d9(n,i)){let t=o-n;f9(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let t=e<0?u:d,r=n[t];k7(r,`No panel constraints found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(k7(n!=null,`Previous layout not found for panel index ${t}`),d9(n,o)){let t=n-i;f9(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}break;default:{let t=e<0?d:u,r=n[t];k7(r,`Panel constraints not found for index ${t}`);let i=s[t],{collapsible:a,collapsedSize:o,minSize:c}=r;if(a&&f9(i,c)<0){if(e>0){let t=c-o,n=t/2;f9(i+e,c)<0&&(e=f9(e,n)<=0?0:t)}else{let t=c-o,n=100-t/2;f9(i-e,c)<0&&(e=f9(100+e,n)>0?0:-t)}}break}}{let t=e<0?1:-1,r=e<0?d:u,i=0;for(;;){let e=s[r];k7(e!=null,`Previous layout not found for panel index ${r}`);let a=p9({overrideDisabledPanels:o,panelConstraints:n[r],prevSize:e,size:100})-e;if(i+=a,r+=t,r<0||r>=n.length)break}let a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let t=e<0?u:d;for(;t>=0&&t<n.length;){let r=Math.abs(e)-Math.abs(f),i=s[t];k7(i!=null,`Previous layout not found for panel index ${t}`);let a=i-r,c=p9({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:i,size:a});if(!d9(i,c)&&(f+=i-c,l[t]=c,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?t--:t++}}if(yNe(c,l))return i;{let t=e<0?d:u,r=s[t];k7(r!=null,`Previous layout not found for panel index ${t}`);let i=r+f,a=p9({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:r,size:i});if(l[t]=a,!d9(a,i)){let t=i-a,r=e<0?d:u;for(;r>=0&&r<n.length;){let i=l[r];k7(i!=null,`Previous layout not found for panel index ${r}`);let a=i+t,s=p9({overrideDisabledPanels:o,panelConstraints:n[r],prevSize:i,size:a});if(d9(i,s)||(t-=s-i,l[r]=s),d9(t,0))break;e>0?r--:r++}}}if(!d9(Object.values(l).reduce((e,t)=>t+e,0),100,.1))return i;let p=Object.keys(i);return l.reduce((e,t,n)=>(e[p[n]]=t,e),{})}function h9(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(t[n]===void 0||f9(e[n],t[n])!==0)return!1;return!0}function g9({layout:e,panelConstraints:t}){let n=Object.values(e),r=[...n],i=r.reduce((e,t)=>e+t,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(e=>`${e}%`).join(`, `)}`);if(!d9(i,100)&&r.length>0)for(let e=0;e<t.length;e++){let t=r[e];k7(t!=null,`No layout data found for index ${e}`);let n=100/i*t;r[e]=n}let a=0;for(let e=0;e<t.length;e++){let i=n[e];k7(i!=null,`No layout data found for index ${e}`);let o=r[e];k7(o!=null,`No layout data found for index ${e}`);let s=p9({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:i,size:o});o!=s&&(a+=o-s,r[e]=s)}if(!d9(a,0))for(let e=0;e<t.length;e++){let n=r[e];k7(n!=null,`No layout data found for index ${e}`);let i=n+a,o=p9({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:n,size:i});if(n!==o&&(a-=o-n,r[e]=o,d9(a,0)))break}let o=Object.keys(e);return r.reduce((e,t,n)=>(e[o[n]]=t,e),{})}function _9({groupId:e,panelId:t}){let n=()=>{let t=t9();for(let[n,{defaultLayoutDeferred:r,derivedPanelConstraints:i,layout:a,groupSize:o,separatorToPanels:s}]of t)if(n.id===e)return{defaultLayoutDeferred:r,derivedPanelConstraints:i,group:n,groupSize:o,layout:a,separatorToPanels:s};throw Error(`Group ${e} not found`)},r=()=>{let e=n().derivedPanelConstraints.find(e=>e.panelId===t);if(e!==void 0)return e;throw Error(`Panel constraints not found for Panel ${t}`)},i=()=>{let e=n().group.panels.find(e=>e.id===t);if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},a=()=>{let e=n().layout[t];if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},o=({nextSize:e,panels:n,prevLayout:r,derivedPanelConstraints:i})=>{let o=a(),s=n.findIndex(e=>e.id===t),c=s===0,l=s===n.length-1;if(l&&e<o&&(c||n.slice(0,s).every((e,t)=>{let n=i[t];return n?.collapsible&&d9(n.collapsedSize,r[n.panelId])}))){let e=n.slice(0,s).reduce((e,t)=>e+r[t.id],0);return{...r,[t]:E7(100-e)}}return m9({delta:l?o-e:e-o,initialLayout:r,panelConstraints:i,pivotIndices:l?[s-1,s]:[s,s+1],prevLayout:r,trigger:`imperative-api`})},s=e=>{if(e===a())return;let{defaultLayoutDeferred:t,derivedPanelConstraints:r,group:i,groupSize:s,layout:c,separatorToPanels:l}=n(),u=g9({layout:o({nextSize:e,panels:i.panels,prevLayout:c,derivedPanelConstraints:r}),panelConstraints:r});h9(c,u)||r9(i,{defaultLayoutDeferred:t,derivedPanelConstraints:r,groupSize:s,layout:u,separatorToPanels:l})};return{collapse:()=>{let{collapsible:e,collapsedSize:t}=r(),{mutableValues:n}=i(),o=a();e&&o!==t&&(n.expandToSize=o,s(t))},expand:()=>{let{collapsible:e,collapsedSize:t,minSize:n}=r(),{mutableValues:o}=i(),c=a();if(e&&c===t){let e=o.expandToSize??n;e===0&&(e=1),s(e)}},getSize:()=>{let{group:e}=n(),t=a(),{element:r}=i();return{asPercentage:t,inPixels:e.orientation===`horizontal`?r.offsetWidth:r.offsetHeight}},isCollapsed:()=>{let{collapsible:e,collapsedSize:t}=r(),n=a();return e&&d9(t,n)},resize:e=>{let{group:t}=n(),{element:r}=i(),a=D7({group:t}),o=E7(T7({groupSize:a,panelElement:r,styleProp:e})/a*100);s(o)}}}function v9(e){e.defaultPrevented||u9(e,t9()).forEach(t=>{if(t.separator&&!t.separator.disableDoubleClick){let n=t.panels.find(e=>e.panelConstraints.defaultSize!==void 0);if(n){let r=n.panelConstraints.defaultSize,i=_9({groupId:t.group.id,panelId:n.id});i&&r!==void 0&&(i.resize(r),e.preventDefault())}}})}function y9(e){let t=t9();for(let[n]of t)if(n.separators.some(t=>t.element===e))return n;throw Error(`Could not find parent Group for separator element`)}function b9({groupId:e}){let t=()=>{let t=t9();for(let[n,r]of t)if(n.id===e)return{group:n,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:e,layout:n}=t();return e?{}:n},setLayout(e){let{defaultLayoutDeferred:n,derivedPanelConstraints:r,group:i,groupSize:a,layout:o,separatorToPanels:s}=t(),c=g9({layout:e,panelConstraints:r});return n?o:(h9(o,c)||r9(i,{defaultLayoutDeferred:n,derivedPanelConstraints:r,groupSize:a,layout:c,separatorToPanels:s}),c)}}}function x9(e,t){let n=y9(e),r=e9(n.id,!0),i=n.separators.find(t=>t.element===e);k7(i,`Matching separator not found`);let a=r.separatorToPanels.get(i);k7(a,`Matching panels not found`);let o=a.map(e=>n.panels.indexOf(e)),s=b9({groupId:n.id}).getLayout(),c=g9({layout:m9({delta:t,initialLayout:s,panelConstraints:r.derivedPanelConstraints,pivotIndices:o,prevLayout:s,trigger:`keyboard`}),panelConstraints:r.derivedPanelConstraints});h9(s,c)||r9(n,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,groupSize:r.groupSize,layout:c,separatorToPanels:r.separatorToPanels},{isUserInteraction:!0})}function S9(e){if(e.defaultPrevented)return;let t=e.currentTarget,n=y9(t);if(!n.disabled)switch(e.key){case`ArrowDown`:e.preventDefault(),n.orientation===`vertical`&&x9(t,5);break;case`ArrowLeft`:e.preventDefault(),n.orientation===`horizontal`&&x9(t,-5);break;case`ArrowRight`:e.preventDefault(),n.orientation===`horizontal`&&x9(t,5);break;case`ArrowUp`:e.preventDefault(),n.orientation===`vertical`&&x9(t,-5);break;case`End`:e.preventDefault(),x9(t,100);break;case`Enter`:{e.preventDefault();let n=y9(t),{derivedPanelConstraints:r,layout:i,separatorToPanels:a}=e9(n.id,!0),o=n.separators.find(e=>e.element===t);k7(o,`Matching separator not found`);let s=a.get(o);k7(s,`Matching panels not found`);let c=s[0],l=r.find(e=>e.panelId===c.id);if(k7(l,`Panel metadata not found`),l.collapsible){let e=i[c.id];x9(t,(l.collapsedSize===e?n.mutableState.expandedPanelSizes[c.id]??l.minSize:l.collapsedSize)-e)}break}case`F6`:{e.preventDefault();let n=y9(t).separators.map(e=>e.element),r=Array.from(n).findIndex(t=>t===e.currentTarget);k7(r!==null,`Index not found`),n[e.shiftKey?r>0?r-1:n.length-1:r+1<n.length?r+1:0].focus({preventScroll:!0});break}case`Home`:e.preventDefault(),x9(t,-100)}}function C9(e){if(e.defaultPrevented||e.pointerType===`mouse`&&e.button>0)return;let t=t9(),n=u9(e,t),r=new Map,i=!1;n.forEach(e=>{e.separator&&(i||(i=!0,e.separator.element.focus({focusVisible:!1,preventScroll:!0})));let n=t.get(e.group);n&&r.set(e.group,n.layout)}),z7({cursorFlags:0,hitRegions:n,initialLayoutMap:r,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:`active`}),n.length&&e.preventDefault()}function w9({document:e,event:t,hitRegions:n,initialLayoutMap:r,mountedGroups:i,pointerDownAtPoint:a,prevCursorFlags:o}){let s=0;n.forEach(e=>{let{group:n,groupSize:o}=e,{orientation:c,panels:l}=n,{disableCursor:u}=n.mutableState,d=0;d=a?c===`horizontal`?(t.clientX-a.x)/o*100:(t.clientY-a.y)/o*100:c===`horizontal`?t.clientX<0?-100:100:t.clientY<0?-100:100;let f=r.get(n),p=i.get(n);if(!f||!p)return;let{defaultLayoutDeferred:m,derivedPanelConstraints:h,groupSize:g,layout:_,separatorToPanels:v}=p;if(h&&_&&v){let t=m9({delta:d,initialLayout:f,panelConstraints:h,pivotIndices:e.panels.map(e=>l.indexOf(e)),prevLayout:_,trigger:`mouse-or-touch`});if(h9(t,_)){if(d!==0&&!u)switch(c){case`horizontal`:s|=d<0?V7:H7;break;case`vertical`:s|=d<0?U7:W7}}else r9(e.group,{defaultLayoutDeferred:m,derivedPanelConstraints:h,groupSize:g,layout:t,separatorToPanels:v})}});let c=0;t.movementX===0?c|=o&G7:c|=s&G7,t.movementY===0?c|=o&K7:c|=s&K7,sNe(c),X7(e)}function T9(e){let t=t9(),n=R7();n.state===`active`&&w9({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}function E9(e){if(e.defaultPrevented)return;let t=R7(),n=t9();switch(t.state){case`active`:if(e.buttons===0){z7({cursorFlags:0,state:`inactive`}),t.hitRegions.forEach(e=>{if(!n.has(e.group))return;let t=e9(e.group.id,!0);r9(e.group,t,{isUserInteraction:!0})});return}for(let n of t.hitRegions)if(n.separator){let{element:t}=n.separator;t.hasPointerCapture?.(e.pointerId)||t.setPointerCapture?.(e.pointerId)}w9({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break;default:{let r=u9(e,n);r.length===0?t.state!==`inactive`&&z7({cursorFlags:0,state:`inactive`}):z7({cursorFlags:0,hitRegions:r,state:`hover`}),X7(e.currentTarget);break}}}function D9(e){if(e.relatedTarget instanceof HTMLIFrameElement)switch(R7().state){case`hover`:z7({cursorFlags:0,state:`inactive`})}}function O9(e){e.defaultPrevented||e.pointerType===`mouse`&&e.button>0||i9(e.currentTarget)&&e.preventDefault()}function k9(e){let t=0,n=0,r={};for(let i of e)if(i.defaultSize!==void 0){t++;let e=E7(i.defaultSize);n+=e,r[i.panelId]=e}else r[i.panelId]=void 0;let i=e.length-t;if(i!==0){let t=E7((100-n)/i);for(let n of e)n.defaultSize===void 0&&(r[n.panelId]=t)}return r}function bNe(e,t,n){if(!n[0])return;let r=e.panels.find(e=>e.element===t);if(!r||!r.onResize)return;let i=D7({group:e}),a=e.orientation===`horizontal`?r.element.offsetWidth:r.element.offsetHeight,o=r.mutableValues.prevSize,s={asPercentage:E7(a/i*100),inPixels:a};r.mutableValues.prevSize=s,r.onResize(s,r.id,o)}function xNe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function SNe(e,t){return e.length===t.length&&e.every((e,n)=>xNe(e,t[n]))}function CNe({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:r}){if(n<=0||t<=0||n===t)return r;let i=0,a=0,o=!1,s=new Map,c=[];for(let l of e.panels){let e=r[l.id]??0;switch(l.panelConstraints.groupResizeBehavior){case`preserve-pixel-size`:{o=!0;let r=E7(e/100*n/t*100);s.set(l.id,r),i+=r;break}default:c.push(l.id),a+=e}}if(!o||c.length===0)return r;let l=100-i,u={...r};if(s.forEach((e,t)=>{u[t]=e}),a>0)for(let e of c)u[e]=E7((r[e]??0)/a*l);else{let e=E7(l/c.length);for(let t of c)u[t]=e}return u}function wNe(e,t){let n=e.map(e=>e.id),r=Object.keys(t);if(n.length!==r.length)return!1;for(let e of n)if(!r.includes(e))return!1;return!0}var A9=new Map;function TNe(e){let t=!0;k7(e.element.ownerDocument.defaultView,`Cannot register an unmounted Group`);let n=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,i=new Set,a=new n(n=>{for(let r of n){let{borderBoxSize:n,target:i}=r;if(i===e.element){if(t){let t=D7({group:e});if(t===0)return;let n=e9(e.id);if(!n)return;let r=O7(e),i=n.defaultLayoutDeferred?k9(r):n.layout,a=g9({layout:CNe({group:e,nextGroupSize:t,prevGroupSize:n.groupSize,prevLayout:i}),panelConstraints:r});if(!n.defaultLayoutDeferred&&h9(n.layout,a)&&SNe(n.derivedPanelConstraints,r)&&n.groupSize===t)continue;r9(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:r,groupSize:t,layout:a,separatorToPanels:n.separatorToPanels})}}else bNe(e,i,n)}});a.observe(e.element),e.panels.forEach(e=>{k7(!r.has(e.id),`Panel ids must be unique; id "${e.id}" was used more than once`),r.add(e.id),e.onResize&&a.observe(e.element)});let o=D7({group:e}),s=O7(e),c=e.panels.map(({id:e})=>e).join(`,`),l=e.mutableState.defaultLayout;l&&(wNe(e.panels,l)||(l=void 0));let u=g9({layout:e.mutableState.layouts[c]??l??k9(s),panelConstraints:s}),d=e.element.ownerDocument;A9.set(d,(A9.get(d)??0)+1);let f=new Map;return P7(e).forEach(e=>{e.separator&&f.set(e.separator,e.panels)}),r9(e,{defaultLayoutDeferred:o===0,derivedPanelConstraints:s,groupSize:o,layout:u,separatorToPanels:f}),e.separators.forEach(e=>{k7(!i.has(e.id),`Separator ids must be unique; id "${e.id}" was used more than once`),i.add(e.id),e.element.addEventListener(`keydown`,S9)}),A9.get(d)===1&&(d.addEventListener(`contextmenu`,a9,!0),d.addEventListener(`dblclick`,v9,!0),d.addEventListener(`pointerdown`,C9,!0),d.addEventListener(`pointerleave`,T9),d.addEventListener(`pointermove`,E9),d.addEventListener(`pointerout`,D9),d.addEventListener(`pointerup`,O9,!0)),function(){t=!1,A9.set(d,Math.max(0,(A9.get(d)??0)-1)),uNe(e),e.separators.forEach(e=>{e.element.removeEventListener(`keydown`,S9)}),A9.get(d)||(d.removeEventListener(`contextmenu`,a9,!0),d.removeEventListener(`dblclick`,v9,!0),d.removeEventListener(`pointerdown`,C9,!0),d.removeEventListener(`pointerleave`,T9),d.removeEventListener(`pointermove`,E9),d.removeEventListener(`pointerout`,D9),d.removeEventListener(`pointerup`,O9,!0)),a.disconnect()}}function ENe(){let[e,t]=(0,m.useState)({});return[e,(0,m.useCallback)(()=>t({}),[])]}function j9(e){let t=(0,m.useId)();return`${e??t}`}var M9=typeof window<`u`?m.useLayoutEffect:m.useEffect;function N9(e){let t=(0,m.useRef)(e);return M9(()=>{t.current=e},[e]),(0,m.useCallback)((...e)=>t.current?.(...e),[t])}function P9(...e){return N9(t=>{e.forEach(e=>{if(e)switch(typeof e){case`function`:e(t);break;case`object`:e.current=t}})})}function F9(e){let t=(0,m.useRef)({...e});return M9(()=>{for(let n in e)t.current[n]=e[n]},[e]),t.current}var I9=(0,m.createContext)(null);function DNe(e,t){let n=(0,m.useRef)({getLayout:()=>({}),setLayout:cNe});(0,m.useImperativeHandle)(t,()=>n.current,[]),M9(()=>{Object.assign(n.current,b9({groupId:e}))})}function L9({children:e,className:t,defaultLayout:r,disableCursor:i,disabled:a,elementRef:o,groupRef:s,id:c,onLayoutChange:l,onLayoutChanged:u,orientation:d=`horizontal`,resizeTargetMinimumSize:f={coarse:20,fine:10},style:p,...h}){let g=(0,m.useRef)({onLayoutChange:{},onLayoutChanged:{}}),_=N9(e=>{h9(g.current.onLayoutChange,e)||(g.current.onLayoutChange=e,l?.(e))}),v=N9((e,t)=>{h9(g.current.onLayoutChanged,e)||(g.current.onLayoutChanged=e,u?.(e,{isUserInteraction:t}))}),y=j9(c),b=(0,m.useRef)(null),[x,S]=ENe(),C=(0,m.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:f,separators:[]}),w=P9(b,o);DNe(y,s);let T=N9((e,t)=>{let n=R7(),i=$7(e),a=e9(e);if(a){let e=!1;return n.state===`active`&&(e=n.hitRegions.some(e=>e.group===i)),{flexGrow:a.layout[t]??1,pointerEvents:e?`none`:void 0}}if(r?.[t])return{flexGrow:r?.[t]}}),E=F9({defaultLayout:r,disableCursor:i}),D=(0,m.useMemo)(()=>({get disableCursor(){return!!E.disableCursor},getPanelStyles:T,id:y,orientation:d,registerPanel:e=>{let t=C.current;return t.panels=A7(d,[...t.panels,e]),S(),()=>{t.panels=t.panels.filter(t=>t!==e),S()}},registerSeparator:e=>{let t=C.current;return t.separators=A7(d,[...t.separators,e]),S(),()=>{t.separators=t.separators.filter(t=>t!==e),S()}},updatePanelProps:(e,{disabled:t})=>{let n=C.current.panels.find(t=>t.id===e);n&&(n.panelConstraints.disabled=t);let r=$7(y),i=e9(y);r&&i&&r9(r,{...i,derivedPanelConstraints:O7(r)})},updateSeparatorProps:(e,{disabled:t,disableDoubleClick:n})=>{let r=C.current.separators.find(t=>t.id===e);r&&(r.disabled=t,r.disableDoubleClick=n)}}),[T,y,S,d,E]),O=(0,m.useRef)(null);return M9(()=>{let e=b.current;if(e===null)return;let t=C.current,n;if(E.defaultLayout!==void 0&&Object.keys(E.defaultLayout).length===t.panels.length){n={};for(let e of t.panels){let t=E.defaultLayout[e.id];t!==void 0&&(n[e.id]=t)}}let r={disabled:!!a,element:e,id:y,mutableState:{defaultLayout:n,disableCursor:!!E.disableCursor,expandedPanelSizes:C.current.lastExpandedPanelSizes,layouts:C.current.layouts},orientation:d,panels:t.panels,resizeTargetMinimumSize:t.resizeTargetMinimumSize,separators:t.separators};O.current=r;let i=TNe(r),{defaultLayoutDeferred:o,derivedPanelConstraints:s,layout:c}=e9(r.id,!0);!o&&s.length>0&&(_(c),v(c,!1));let l=n9(y,e=>{let{defaultLayoutDeferred:t,derivedPanelConstraints:n,layout:i}=e.next;if(t||n.length===0)return;let a=r.panels.map(({id:e})=>e).join(`,`);r.mutableState.layouts[a]=i,n.forEach(t=>{if(t.collapsible){let{layout:n}=e.prev??{};if(n){let e=d9(t.collapsedSize,i[t.panelId]),a=d9(t.collapsedSize,n[t.panelId]);e&&!a&&(r.mutableState.expandedPanelSizes[t.panelId]=n[t.panelId])}}});let o=R7().state!==`active`;_(i),o&&v(i,e.isUserInteraction)});return()=>{O.current=null,i(),l()}},[a,y,v,_,d,x,E]),(0,m.useEffect)(()=>{let e=O.current;e&&(e.mutableState.defaultLayout=r,e.mutableState.disableCursor=!!i)}),(0,n.jsx)(I9.Provider,{value:D,children:(0,n.jsx)(`div`,{...h,className:t,"data-group":!0,"data-testid":y,id:y,ref:w,style:{height:`100%`,width:`100%`,overflow:`hidden`,...p,display:`flex`,flexDirection:d===`horizontal`?`row`:`column`,flexWrap:`nowrap`,touchAction:d===`horizontal`?`pan-y`:`pan-x`},children:e})})}L9.displayName=`Group`;function R9(){let e=(0,m.useContext)(I9);return k7(e,`Group Context not found; did you render a Panel or Separator outside of a Group?`),e}function ONe(e,t){let{id:n}=R9(),r=(0,m.useRef)({collapse:B7,expand:B7,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:B7});(0,m.useImperativeHandle)(t,()=>r.current,[]),M9(()=>{Object.assign(r.current,_9({groupId:n,panelId:e}))})}function z9({children:e,className:t,collapsedSize:r=`0%`,collapsible:i=!1,defaultSize:a,disabled:o,elementRef:s,groupResizeBehavior:c=`preserve-relative-size`,id:l,maxSize:u=`100%`,minSize:d=`0%`,onResize:f,panelRef:p,style:h,...g}){let _=!!l,v=j9(l),y=F9({disabled:o}),b=(0,m.useRef)(null),x=P9(b,s),{getPanelStyles:S,id:C,orientation:w,registerPanel:T,updatePanelProps:E}=R9(),D=f!==null,O=N9((e,t,n)=>{f?.(e,l,n)});M9(()=>{let e=b.current;if(e!==null){let t={element:e,id:v,idIsStable:_,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:D?O:void 0,panelConstraints:{groupResizeBehavior:c,collapsedSize:r,collapsible:i,defaultSize:a,disabled:y.disabled,maxSize:u,minSize:d}};return T(t)}},[c,r,i,a,D,v,_,u,d,O,T,y]),(0,m.useEffect)(()=>{E(v,{disabled:o})},[o,v,E]),ONe(v,p);let k=()=>{let e=S(C,v);if(e)return JSON.stringify(e)},A=(0,m.useSyncExternalStore)(e=>n9(C,e),k,k),j;return j=A?JSON.parse(A):a===void 0?{flexGrow:1}:{flexGrow:void 0,flexShrink:void 0,flexBasis:a},(0,n.jsx)(`div`,{...g,"data-disabled":o||void 0,"data-panel":!0,"data-testid":v,id:v,ref:x,style:{...kNe,display:`flex`,flexBasis:0,flexShrink:1,overflow:`visible`,...j},children:(0,n.jsx)(`div`,{className:t,style:{maxHeight:`100%`,maxWidth:`100%`,flexGrow:1,overflow:`auto`,...h,touchAction:w===`horizontal`?`pan-y`:`pan-x`},children:e})})}z9.displayName=`Panel`;var kNe={minHeight:0,maxHeight:`100%`,height:`auto`,minWidth:0,maxWidth:`100%`,width:`auto`,border:`none`,borderWidth:0,padding:0,margin:0};function ANe({layout:e,panelConstraints:t,panelId:n,panelIndex:r}){let i,a,o=e[n],s=t.find(e=>e.panelId===n);if(s){let c=s.maxSize,l=s.collapsible?s.collapsedSize:s.minSize,u=[r,r+1];a=g9({layout:m9({delta:l-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n],i=g9({layout:m9({delta:c-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:i,valueMin:a,valueNow:o}}function B9({children:e,className:t,disabled:r,disableDoubleClick:i,elementRef:a,id:o,style:s,...c}){let l=j9(o),u=F9({disabled:r,disableDoubleClick:i}),[d,f]=(0,m.useState)({}),[p,h]=(0,m.useState)(`inactive`),[g,_]=(0,m.useState)(!1),v=(0,m.useRef)(null),y=P9(v,a),{disableCursor:b,id:x,orientation:S,registerSeparator:C,updateSeparatorProps:w}=R9(),T=S===`horizontal`?`vertical`:`horizontal`;M9(()=>{let e=v.current;if(e!==null){let t={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:e,id:l},n=C(t),r=oNe(e=>{h(e.next.state!==`inactive`&&e.next.hitRegions.some(e=>e.separator===t)?e.next.state:`inactive`)}),i=n9(x,e=>{let{derivedPanelConstraints:n,layout:r,separatorToPanels:i}=e.next,a=i.get(t);if(a){let e=a[0],t=a.indexOf(e);f(ANe({layout:r,panelConstraints:n,panelId:e.id,panelIndex:t}))}});return()=>{r(),i(),n()}}},[x,l,C,u]),(0,m.useEffect)(()=>{w(l,{disabled:r,disableDoubleClick:i})},[r,i,l,w]);let E;r&&!b&&(E=`not-allowed`);let D;if(r)D=`disabled`;else switch(p){case`active`:D=`active`;break;default:D=g?`focus`:p}return(0,n.jsx)(`div`,{...c,"aria-controls":d.valueControls,"aria-disabled":r||void 0,"aria-orientation":T,"aria-valuemax":d.valueMax,"aria-valuemin":d.valueMin,"aria-valuenow":d.valueNow,children:e,className:t,"data-separator":D,"data-testid":l,id:l,onBlur:()=>_(!1),onFocus:()=>_(!0),ref:y,role:`separator`,style:{flexBasis:`auto`,cursor:E,...s,flexGrow:0,flexShrink:0,touchAction:`none`},tabIndex:r?void 0:0})}B9.displayName=`Separator`;var jNe=({withHandle:e=!1,className:t,...r})=>(0,n.jsx)(B9,{className:X(`relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-[0px] after:left-1/2 after:w-px after:-translate-x-1/2 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full after:aria-[orientation=horizontal]:left-[0px] after:aria-[orientation=horizontal]:h-px after:aria-[orientation=horizontal]:w-full after:aria-[orientation=horizontal]:translate-x-[0px] after:aria-[orientation=horizontal]:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90`,t),"data-slot":`resizable-handle`,...r,children:e&&(0,n.jsx)(`div`,{className:`z-10 flex h-md w-3xs shrink-0 rounded-lg bg-border-strong`})}),MNe=({className:e,...t})=>(0,n.jsx)(z9,{className:X(``,e),"data-slot":`resizable-panel`,...t}),NNe=({className:e,...t})=>(0,n.jsx)(L9,{className:X(`flex h-full aria-[orientation=vertical]:flex-col`,e),"data-slot":`resizable-panel-group`,...t}),PNe=Gn(`overflow-hidden rounded-xl`,{variants:{orientation:{vertical:``,horizontal:`h-full`},variant:{default:`bg-surface-low **:data-viewport:rounded-xl **:data-viewport:bg-surface-low **:data-viewport:p-sm **:data-viewport:inset-shadow-2xs **:data-viewport:before:pointer-events-none **:data-viewport:before:absolute **:data-viewport:before:top-0 **:data-viewport:before:left-0 **:data-viewport:before:block **:data-viewport:before:h-[min(40px,var(--scroll-area-overflow-y-start))] **:data-viewport:before:w-full **:data-viewport:before:bg-linear-to-b **:data-viewport:before:from-shadow **:data-viewport:before:to-transparent **:data-viewport:before:transition-[height] **:data-viewport:before:duration-100 **:data-viewport:before:ease-out **:data-viewport:before:content-[""] **:data-viewport:before:[--scroll-area-overflow-y-start:inherit] **:data-viewport:after:pointer-events-none **:data-viewport:after:absolute **:data-viewport:after:bottom-0 **:data-viewport:after:left-0 **:data-viewport:after:block **:data-viewport:after:h-[min(40px,var(--scroll-area-overflow-y-end,40px))] **:data-viewport:after:w-full **:data-viewport:after:bg-linear-to-t **:data-viewport:after:from-shadow **:data-viewport:after:to-transparent **:data-viewport:after:transition-[height] **:data-viewport:after:duration-100 **:data-viewport:after:ease-out **:data-viewport:after:content-[""] **:data-viewport:after:[--scroll-area-overflow-y-end:inherit]`,ghost:`**:data-viewport:pr-3xs`,outline:`border border-border **:data-viewport:p-sm`}},defaultVariants:{orientation:`vertical`,variant:`default`}}),FNe=({defaultHeight:e=200,orientation:t,variant:r,className:i,children:a,ref:o,...s})=>(0,n.jsxs)(Dg,{className:X(i,PNe({orientation:t,variant:r})),ref:o,style:{height:t===`vertical`?`${e}px`:`100%`},...s,children:[(0,n.jsx)(Ng,{"data-viewport":!0,className:X(`flex h-full gap-xs overscroll-contain`,t===`horizontal`&&`flex-row pb-md`,t===`vertical`&&`flex-col`),children:a}),(0,n.jsx)(Lg,{"data-scrollbar":!0,className:X(`ml-sm opacity-0 transition-opacity delay-300 hover:cursor-pointer data-hovering:opacity-100 data-hovering:delay-0 data-hovering:duration-75 data-scrolling:opacity-100 data-scrolling:delay-0 data-scrolling:duration-75`,t===`vertical`&&`my-2xs mr-3xs w-2xs`,t===`horizontal`&&`mx-xs mb-xs h-2xs`),orientation:t,children:(0,n.jsx)(Rg,{className:`size-full rounded-full bg-accent-default shadow-xs`})}),(0,n.jsx)(zg,{})]}),V9=m.default.createContext(null),INe=({defaultOpen:e=!0,side:t=`left`,collapsible:r=`icon`,className:i,children:a,ref:o,...s})=>{let[c,l]=m.default.useState(e),[u,d]=m.default.useState(!1);return m.default.useEffect(()=>{let t=()=>{let t=window.innerWidth<328;d(t),t&&e&&r!==`none`&&l(!1)};return t(),window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)},[e,r]),(0,n.jsx)(V9.Provider,{value:{defaultOpen:e,open:c,setOpen:l,side:t,trigger:()=>l(!c),isMobile:u,setIsMobile:d,collapsible:r},children:(0,n.jsx)(`div`,{className:X(`relative size-full`,t===`left`?`flex flex-row`:`flex flex-row-reverse`,i),ref:o,...s,children:a})})},H9=()=>{let e=m.default.useContext(V9);if(!e)throw Error(`useSidebar must be used within a SidebarProvider`);return e},LNe=({tone:e=`primary`,width:t=400,className:r,children:i,...a})=>{let{open:o,setOpen:s,isMobile:c,collapsible:l,side:u}=H9(),d=m.default.useRef(null);return m.default.useEffect(()=>{let e=e=>{d.current&&!d.current.contains(e.target)&&c&&o&&s&&s(!1)};return document.addEventListener(`click`,e),()=>{document.removeEventListener(`click`,e)}},[o,s,c]),(0,n.jsx)(`div`,{className:X(`sticky left-[0px] flex h-full shrink-0 flex-col justify-between overflow-hidden border-border bg-surface transition-[width,transform] duration-300 ease-in-out`,r,e===`primary`&&`bg-surface-background`,e===`secondary`&&`bg-surface`,e===`ghost`&&`bg-transparent`,l===`none`?`gap-lg`:l===`offcanvas`||l===`icon`?o?`gap-lg`:`gap-sm`:`gap-lg`,(l===`offcanvas`||l===`icon`)&&!o&&c?`absolute z-50 -translate-x-full`:(l===`offcanvas`||l===`icon`)&&o&&c?`absolute z-50`:``,l===`offcanvas`&&!o&&`border-none`,o&&`p-md`,l===`icon`&&!o&&`py-md`,c&&`border-none`,u===`left`?`border-r`:`border-l`),ref:d,style:l===`none`?{width:`${t}px`}:l===`offcanvas`?o?c?{width:`33.333333%`}:{width:`${t}px`}:{width:`0px`}:l==`icon`?o?{width:`${t}px`}:c?{width:`0px`}:{width:`80px`}:{width:`${t}px`},...a,children:i})},RNe=({className:e,children:t,ref:r,...i})=>{let{open:a}=H9();return(0,n.jsx)(Dg,{className:X(`mb-auto min-h-0 flex-1 overflow-hidden rounded-xl transition-all duration-300 ease-in-out`,a?``:`w-fit self-center`,e),ref:r,...i,children:(0,n.jsx)(Ng,{className:X(`flex h-full scrollbar-none flex-col items-center divide-y divide-border overflow-y-auto overscroll-contain [&::-webkit-scrollbar]:hidden`,`before:pointer-events-none before:absolute before:top-0 before:left-0 before:block before:h-[min(40px,var(--scroll-area-overflow-y-start))] before:w-full before:bg-linear-to-b before:from-shadow/35 before:to-transparent before:transition-[height] before:duration-100 before:ease-out before:content-[""] before:[--scroll-area-overflow-y-start:inherit]`,`after:pointer-events-none after:absolute after:bottom-0 after:left-0 after:block after:h-[min(40px,var(--scroll-area-overflow-y-end,40px))] after:w-full after:bg-linear-to-t after:from-shadow/35 after:to-transparent after:transition-[height] after:duration-100 after:ease-out after:content-[""] after:[--scroll-area-overflow-y-end:inherit]`,a?`gap-md`:`gap-xs px-3xs pt-3xs`),children:t})})},zNe=({className:e,children:t,ref:r,...i})=>{let{open:a,collapsible:o}=H9(),s=o===`none`||a;return(0,n.jsx)(`div`,{className:X(`flex shrink-0 animate-in items-center truncate p-3xs transition-all duration-300 ease-in-out`,a?`justify-start fade-in-0`:`justify-center self-center fade-out-0`,e),ref:r,...i,children:t(s)})},BNe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex w-full flex-col items-start gap-3xs not-last-of-type:pb-md`,e),ref:r,...i,children:t}),VNe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex w-full flex-col gap-3xs`,e),ref:r,...i,children:t}),HNe=({className:e,children:t,ref:r,...i})=>{let{open:a,collapsible:o}=H9();return o===`none`||a?(0,n.jsx)(`span`,{className:X(`inline-flex h-md w-full items-center justify-between truncate pr-3xs pl-sm style-text-default--1 text-on-surface-variant transition-all duration-200 ease-out`,o!==`none`&&a&&`animate-in fade-in-0 slide-in-from-left-2`,e),ref:r,...i,children:t}):null},UNe=({className:e,children:t,ref:r,...i})=>{let{open:a,collapsible:o}=H9(),s=o===`none`||a;return(0,n.jsx)(`div`,{className:X(`flex shrink-0 items-center justify-start gap-xs truncate style-text-strong-1 transition-all duration-200 ease-out`,a?`h-2xl pr-3xs pl-xs`:`self-center`,a&&`justify-between`,o!==`none`&&`animate-in`,s?`fade-in-0`:`fade-out-0`,e),ref:r,...i,children:t(s)})},WNe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex w-full flex-col items-start gap-3xs p-3xs`,e),ref:r,...i,children:t}),GNe=({className:e,children:t,ref:r,...i})=>{let{trigger:a,open:o,collapsible:s}=H9();return!a||s===`none`?null:(0,n.jsx)(Wv,{className:X(`shrink-0 border-none`,e),ref:r,size:`iconMedium`,variant:`ghost`,onClick:e=>{e.stopPropagation(),a&&a()},...i,children:typeof t==`function`?t(o):t})},KNe=({className:e,children:t,ref:r,...i})=>{let{open:a}=H9();return(0,n.jsx)(Yv,{className:X(!a&&`hidden`,e),ref:r,...i,children:t})},qNe=({isActive:e,className:t,children:r,ref:i,...a})=>{let{open:o,collapsible:s}=H9();return(0,n.jsx)(`button`,{className:X(`inline-flex cursor-pointer items-center gap-2xs rounded-full border border-transparent style-text-default-0 whitespace-nowrap transition-all duration-200 ease-out select-none active:scale-95 disabled:pointer-events-none disabled:opacity-50 [&>svg]:shrink-0`,e?`pointer-events-none bg-surface text-on-surface shadow-2xs`:`text-neutral-default hover:bg-neutral-container hover:text-neutral-on-container`,e&&!o&&`bg-neutral-container`,!(s===`none`||o)&&`mx-auto`,o?`h-xl w-full pl-sm`:`size-xl justify-center *:hidden [&>svg]:block`,s!==`none`&&o&&`animate-in fade-in-0 slide-in-from-left-2`,t),ref:i,...a,children:r})},JNe=({className:e,children:t,ref:r,...i})=>{let{open:a}=H9();return a?(0,n.jsx)(DM,{className:X(``,e),ref:r,...i,children:t}):(0,n.jsx)(FP,{children:t})},YNe=({className:e,children:t,ref:r,...i})=>{let{open:a}=H9();return a?(0,n.jsx)(TM,{className:X(`py-2xs`,e),ref:r,...i,children:t}):(0,n.jsx)(IP,{side:`right`,className:`w-fit bg-surface p-[0.5rem_0.5rem]`,children:(0,n.jsx)(BP,{className:`flex gap-3xs`,children:t})})},XNe=({className:e,children:t,ref:r,...i})=>{let{open:a}=H9();return a?(0,n.jsx)(EM,{variant:`ghost`,className:X(`justify-start`,e),ref:r,...i,children:t}):(0,n.jsx)(RP,{children:(0,n.jsxs)(`button`,{className:X(`flex size-xl items-center justify-center rounded-full shadow-none! transition-colors *:hidden hover:cursor-pointer hover:bg-neutral-container hover:text-neutral-on-container data-popup-open:bg-neutral-container [&>svg]:block`),children:[t,(0,n.jsx)(Jr,{weight:`bold`,className:`absolute right-2xs size-xs text-on-surface-variant`})]})})},ZNe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`flex h-xl w-full items-center justify-between gap-2xs`,e),ref:r,...i,children:t}),QNe=({className:e,children:t,ref:r,...i})=>(0,n.jsx)(`div`,{className:X(`animate-pulse rounded-lg bg-surface-2 shadow-sm`,e),ref:r,...i,children:t}),U9=()=>{let e=Nse(),t=t=>e.add({...t,data:{...t.data,icon:t.icon,variant:t.variant}});return{...e,add:t}},W9=()=>{let e=Mse();return{add:t=>e.add({...t,data:{...t.data,icon:t.icon,variant:t.variant}}),toasts:e.toasts}},G9=({className:e,ref:t,toast:r,...i})=>{let a=r.timeout??1e4,o=2*Math.PI*14;m.default.useEffect(()=>{let e,t=performance.now(),n=r=>{Math.min(r-t,a)<a&&(e=requestAnimationFrame(n))};return e=requestAnimationFrame(n),()=>cancelAnimationFrame(e)},[a]);let s=()=>{switch(r.data?.variant){case`brand`:return`bg-brand-default`;case`accent`:return`bg-accent-default`;case`neutral`:return`bg-neutral-default`;case`error`:return`bg-error-default`;case`info`:return`bg-info-default`;case`success`:return`bg-success-default`;case`warning`:return`bg-warning-default`;default:return`bg-neutral-default`}},c=()=>{switch(r.data?.variant){case`brand`:return`border-brand-border-strong`;case`accent`:return`border-accent-border-strong`;case`neutral`:return`border-neutral-border-strong`;case`error`:return`border-error-border-strong`;case`info`:return`border-info-border-strong`;case`success`:return`border-success-border-strong`;case`warning`:return`border-warning-border-strong`;default:return`border-neutral-border-strong`}},l=()=>{if(r.data?.icon)return(0,n.jsx)(r.data.icon,{weight:`fill`});switch(r.data?.variant){case`brand`:return(0,n.jsx)(di,{weight:`fill`});case`accent`:return(0,n.jsx)(di,{weight:`fill`});case`neutral`:return(0,n.jsx)(di,{weight:`fill`});case`error`:return(0,n.jsx)(Ci,{weight:`fill`});case`info`:return(0,n.jsx)(di,{weight:`fill`});case`success`:return(0,n.jsx)(Qr,{weight:`fill`});case`warning`:return(0,n.jsx)(Si,{weight:`fill`});default:return(0,n.jsx)(di,{weight:`fill`})}};return(0,n.jsxs)(pv,{className:X(`absolute right-[0px] bottom-[0px] left-auto z-[calc(1000-var(--toast-index))] mr-[0px] flex h-2xl origin-bottom transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--peek))-(var(--shrink)*var(--height))))_scale(var(--scale))] items-center justify-center gap-xs overflow-hidden rounded-xl border bg-surface bg-clip-padding pr-sm shadow-lg select-none [--gap:0.75rem] [--height:var(--toast-frontmost-height,var(--toast-height))] [--offset-y:calc(var(--toast-offset-y)*-1+calc(var(--toast-index)*var(--gap)*-1)+var(--toast-swipe-movement-y))] [--peek:0.75rem] [--scale:calc(max(0,1-(var(--toast-index)*0.1)))] [--shrink:calc(1-var(--scale))] [transition:transform_0.5s_cubic-bezier(0.22,1,0.36,1),opacity_0.5s,height_0.15s] after:absolute after:top-full after:left-[0px] after:w-full after:content-[''] data-ending-style:opacity-0 data-expanded:h-(--toast-height) data-expanded:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--offset-y)))] data-limited:opacity-0 data-starting-style:transform-[translateY(150%)] data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+150%))] data-expanded:data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+150%))] data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))] data-expanded:data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-150%))_translateY(var(--offset-y))] data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))] data-expanded:data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+150%))_translateY(var(--offset-y))] data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-150%))] data-expanded:data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-150%))] [&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:transform-[translateY(150%)]`,e,c()),ref:t,toast:r,...i,children:[(0,n.jsx)(`div`,{className:X(`flex aspect-square size-2xl items-center justify-center [&>svg]:size-lg [&>svg]:text-on-surface-inverse`,s()),children:l()}),(0,n.jsxs)(mv,{className:`flex items-center justify-center gap-xs overflow-hidden pl-2xs transition-opacity duration-250 data-behind:pointer-events-none data-behind:opacity-0 data-expanded:pointer-events-auto data-expanded:opacity-100`,children:[(0,n.jsxs)(`div`,{children:[(0,n.jsx)(bv,{className:`style-text-strong--1`}),(0,n.jsx)(yv,{className:`style-text-prose--1 whitespace-nowrap text-on-surface-variant`})]}),(0,n.jsxs)(`div`,{className:`ml-xl flex h-lg grow items-center justify-center gap-xs`,children:[(0,n.jsx)(Sv,{render:e=>(0,n.jsx)(Wv,{"data-testid":`toast-action-button`,onClick:e.onClick,size:`small`,tone:r.data?.variant,variant:`soft`,children:e.children})}),r.actionProps&&(0,n.jsx)(PP,{variant:`strong`,orientation:`vertical`,weight:`thinnest`}),(0,n.jsxs)(xv,{"aria-label":`Close`,className:`relative flex size-sm items-center justify-center rounded-full bg-transparent p-xs text-on-surface-variant transition-colors hover:cursor-pointer hover:bg-error-container hover:text-error-on-container`,children:[(0,n.jsx)(`span`,{className:`pointer-events-none absolute inset-[0px] z-10 flex items-center justify-center`,children:(0,n.jsx)(`svg`,{width:`100%`,height:`100%`,viewBox:`0 0 32 32`,className:`block -rotate-90`,children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(`style`,{children:`
213
- @keyframes toast-drain-${r.id} {
214
- from { stroke-dashoffset: 0; }
215
- to { stroke-dashoffset: ${o}; }
216
- }
217
- `}),(0,n.jsx)(`circle`,{cx:`16`,cy:`16`,r:`14`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeDasharray:o,strokeLinecap:`round`,className:`text-error-border-strong`,style:{animation:`toast-drain-${r.id} ${a}ms linear forwards`}})]})})}),(0,n.jsx)(wi,{className:`size-sm shrink-0`,weight:`bold`})]})]})]})]},r.id)},K9=({className:e,ref:t,...r})=>{let{toasts:i}=W9();return(0,n.jsx)(Cv,{children:(0,n.jsx)(cv,{className:X(`fixed top-auto right-[1rem] bottom-[1rem] z-10 mx-auto flex w-[250px] sm:right-[2rem] sm:bottom-[2rem] sm:w-[300px]`,e),ref:t,...r,children:i.map(e=>(0,n.jsx)(G9,{toast:e},e.id))})})},q9=({className:e,ref:t,toast:r,...i})=>(0,n.jsxs)(pv,{className:X(`group flex w-max origin-(--transform-origin) flex-col rounded-2xl bg-surface px-sm py-2xs shadow-lg transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0`,e),ref:t,toast:r,...i,children:[(0,n.jsx)(Ev,{className:`data-[side=bottom]:-top-3xs data-[side=left]:right-[-13px] data-[side=left]:rotate-90 data-[side=right]:left-[-13px] data-[side=right]:-rotate-90 data-[side=top]:-bottom-3xs data-[side=top]:rotate-180`}),(0,n.jsx)(mv,{children:(0,n.jsx)(yv,{className:`style-text-default--1`})})]}),J9=({className:e,ref:t,...r})=>{let{toasts:i}=W9();return(0,n.jsx)(Cv,{children:(0,n.jsx)(cv,{className:X(`fixed top-auto right-[1rem] bottom-[1rem] z-10 mx-auto flex w-[250px] sm:right-[2rem] sm:bottom-[2rem] sm:w-[300px]`,e),ref:t,...r,children:i.map(e=>(0,n.jsx)(Tv,{className:`z-[calc(1000-var(--toast-index))]`,toast:e,children:(0,n.jsx)(q9,{toast:e})},e.id))})})},$Ne=({children:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(sv,{timeout:1e4,toastManager:Y9,children:(0,n.jsx)(J9,{})}),(0,n.jsx)(sv,{timeout:1e4,toastManager:X9,children:(0,n.jsx)(K9,{})}),e]}),Y9=U9(),X9=U9(),ePe=Gn(`group flex w-fit items-center justify-center gap-3xs`,{variants:{size:{small:`rounded-lg`,medium:`rounded-xl`,large:`rounded-2xl`},variant:{default:`bg-surface-low`,ghost:`bg-transparent`}},compoundVariants:[{variant:`default`,size:`small`,className:`h-lg px-3xs`},{variant:`default`,size:`medium`,className:`h-xl px-2xs`},{variant:`default`,size:`large`,className:`h-2xl px-xs`}],defaultVariants:{size:`medium`,variant:`default`}}),tPe=({size:e=`medium`,variant:t,className:r,children:i,ref:a,...o})=>{let s=e??`medium`;return(0,n.jsx)(iL.Provider,{value:{size:s},children:(0,n.jsx)(Av,{className:X(ePe({size:s,variant:t,className:r})),"data-size":s,ref:a,...o,children:i})})},nPe=[{name:`mobile`,query:`(max-width: 767px), (orientation: landscape) and (max-height: 500px)`},{name:`tablet`,query:`(min-width: 768px) and (max-width: 1023px)`},{name:`desktop`,query:`(min-width: 1024px)`}],rPe=e=>{let t=nPe.find(t=>t.name===e),[n,r]=m.default.useState(()=>typeof window<`u`&&window.matchMedia(t.query).matches);return m.default.useEffect(()=>{let e=window.matchMedia(t.query),n=()=>r(e.matches);return n(),e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[t]),n},Z9=`dawn-ui-theme`,Q9=`light`,iPe=(e,t)=>t.find(t=>t.value===e),$9=(0,m.createContext)({theme:`system`,setTheme:()=>null});function aPe({children:e,defaultTheme:t=Q9,storageKey:r=Z9,...i}){let[a,o]=(0,m.useState)(()=>localStorage.getItem(r)||t);(0,m.useEffect)(()=>{window.document.documentElement.setAttribute(`data-theme`,a),localStorage.setItem(r,a)},[a,r]);let s={theme:a,setTheme:o};return(0,n.jsx)($9.Provider,{...i,value:s,children:e})}e.Accordion=Br,e.AccordionHeader=Cte,e.AccordionIcon=Ote,e.AccordionItem=wte,e.AccordionPanel=Tte,e.AccordionSubtitle=Ete,e.AccordionTitle=Dte,e.Alert=Ei,e.AlertAction=jte,e.AlertDescription=Di,e.AlertDialog=Gse,e.AlertDialogClose=qse,e.AlertDialogConfirm=Yse,e.AlertDialogDescription=Xse,e.AlertDialogFooter=Zse,e.AlertDialogHeader=Qse,e.AlertDialogIcon=rce,e.AlertDialogPopup=ece,e.AlertDialogTitle=tce,e.AlertDialogTrigger=nce,e.AlertIcon=Oi,e.AlertTitle=Ate,e.AnchoredToastItem=q9,e.AnchoredToasts=J9,e.Autocomplete=ice,e.AutocompleteCollection=ace,e.AutocompleteContent=oce,e.AutocompleteGridContent=cce,e.AutocompleteGridItem=lce,e.AutocompleteGroup=uce,e.AutocompleteGroupLabel=dce,e.AutocompleteInputGroup=qv,e.AutocompleteInputGroupAddon=fce,e.AutocompleteInputGroupInput=Jv,e.AutocompleteItem=pce,e.AutocompleteRow=mce,e.AutocompleteStatus=hce,e.AutocompleteTrigger=gce,e.Avatar=yce,e.AvatarBadge=Sce,e.AvatarFallback=bce,e.AvatarImage=xce,e.Badge=Yv,e.BentoBox=Tce,e.BentoBoxAction=Ece,e.BentoBoxContent=Dce,e.BentoBoxDescription=Oce,e.BentoBoxFooter=kce,e.BentoBoxHeader=Ace,e.BentoBoxTitle=jce,e.Breadcrumb=Mce,e.BreadcrumbEllipsis=Nce,e.BreadcrumbItem=Pce,e.BreadcrumbLink=Fce,e.BreadcrumbSeparator=Ice,e.Button=Wv,e.ButtonGroup=Rce,e.ChartContainer=zce,e.ChartContainerContext=Xv,e.ChartLegend=dye,e.ChartLegendContent=fye,e.ChartLegendIcon=nM,e.ChartLegendIndicator=rM,e.ChartLegendLabel=iM,e.ChartLinearGradient=pye,e.ChartTooltip=sye,e.ChartTooltipContent=cye,e.ChartTooltipIcon=gye,e.ChartTooltipIndicator=mye,e.ChartTooltipLabel=lye,e.ChartTooltipName=hye,e.ChartTooltipPayload=uye,e.ChartTooltipValue=_ye,e.Checkbox=lM,e.CheckboxGroup=yye,e.CheckboxIndicator=cM,e.CodeBlock=bye,e.CodeBlockActions=xye,e.CodeBlockCopy=Sye,e.CodeBlockDownload=Cye,e.CodeBlockHeader=wye,e.CodeBlockName=Tye,e.CodeBlockSelect=kye,e.CodeBlockTabs=Mye,e.CodeBlockWindow=Nye,e.Collapsible=DM,e.CollapsiblePanel=TM,e.CollapsibleTrigger=EM,e.ColorChannelSlider=OM,e.ColorPicker=cxe,e.ColorPickerArea=lxe,e.ColorPickerGroup=uxe,e.ColorPickerHueSlider=mxe,e.ColorPickerInput=xxe,e.ColorPickerLabel=Sxe,e.ColorPickerLightnessSlider=Oxe,e.ColorPickerPaletteLimit=Cxe,e.ColorPickerPaletteList=wxe,e.ColorPickerPaletteSwatch=VP,e.ColorPickerRow=Txe,e.ColorPickerTransparencySlider=Exe,e.ColorPickerValueType=Dxe,e.Combobox=kxe,e.ComboboxChip=Axe,e.ComboboxChips=jxe,e.ComboboxCollection=Mxe,e.ComboboxEmpty=Nxe,e.ComboboxGroup=Pxe,e.ComboboxGroupLabel=Fxe,e.ComboboxInput=Ixe,e.ComboboxItem=HP,e.ComboboxList=Lxe,e.ComboboxPopup=Rxe,e.ComboboxStatus=zxe,e.ComboboxTrigger=Bxe,e.ComboboxValue=Vxe,e.ComboboxVirtualizedList=aSe,e.ContextMenu=oSe,e.ContextMenuCheckboxItem=sSe,e.ContextMenuGroup=cSe,e.ContextMenuGroupLabel=lSe,e.ContextMenuItem=hSe,e.ContextMenuPopup=gSe,e.ContextMenuRadioGroup=uSe,e.ContextMenuRadioItem=dSe,e.ContextMenuSeparator=_Se,e.ContextMenuShortcut=fSe,e.ContextMenuSubmenu=vSe,e.ContextMenuSubmenuTrigger=ySe,e.ContextMenuTrigger=bSe,e.DEFAULT_THEME=Q9,e.Dialog=xSe,e.DialogClose=SSe,e.DialogContent=CSe,e.DialogDescription=wSe,e.DialogFooter=TSe,e.DialogHeader=ESe,e.DialogHelper=jSe,e.DialogIcon=DSe,e.DialogPopup=OSe,e.DialogTitle=kSe,e.DialogTrigger=ASe,e.Drawer=MSe,e.DrawerClose=NSe,e.DrawerContent=PSe,e.DrawerDescription=FSe,e.DrawerHeader=USe,e.DrawerPopup=VSe,e.DrawerProvider=ISe,e.DrawerTitle=HSe,e.DrawerTrigger=LSe,e.Dropzone=GSe,e.DropzoneActions=lCe,e.DropzoneClear=dCe,e.DropzoneConfirm=uCe,e.DropzoneContainer=KSe,e.DropzoneError=qSe,e.DropzoneFileList=QSe,e.DropzoneFileSizeLimit=$Se,e.DropzoneFiles=oCe,e.DropzoneFilesHeader=sCe,e.DropzoneFilesTitle=cCe,e.DropzoneFormats=eCe,e.DropzoneHeading=tCe,e.DropzoneIcon=nCe,e.DropzoneInfo=aCe,e.DropzoneSubtitle=rCe,e.DropzoneTrigger=iCe,e.Field=oF,e.FieldCheckbox=XI,e.FieldDescription=sF,e.FieldErrors=MI,e.FieldInput=PI,e.FieldInputGroup=cL,e.FieldInputGroupInput=lL,e.FieldLabel=II,e.FieldRadio=eL,e.FieldRadioGroup=tL,e.FieldRow=dL,e.FieldSelect=WI,e.FieldSet=uL,e.FieldSlider=UI,e.FieldSwitch=rL,e.FieldTextArea=qI,e.FieldToggle=sL,e.Form=fL,e.FormErrors=mL,e.FormFooter=hL,e.FormReset=gL,e.FormSet=_L,e.FormSetContent=vL,e.FormSetHeading=bL,e.FormSubmit=xL,e.Input=NI,e.InputGroup=jP,e.InputGroupAddon=MP,e.InputGroupInput=NP,e.InputGroupSeparator=_xe,e.InputOTP=EL,e.InputOTPSlot=DL,e.InputOtpSeparator=OL,e.Kbd=kL,e.Label=YI,e.LayerTree=tX,e.LayerTreeBody=iX,e.LayerTreeExpandAll=aX,e.LayerTreeFooter=oX,e.LayerTreeIconCell=sX,e.LayerTreeLockedAll=cX,e.LayerTreeLockedCell=lX,e.LayerTreeRow=rX,e.LayerTreeSearch=uX,e.LayerTreeSort=bX,e.LayerTreeTextCell=p7,e.LayerTreeTriggerCell=m7,e.LayerTreeVisibilityAll=b7,e.LayerTreeVisibilityCell=x7,e.Menu=dX,e.MenuCheckboxItem=fX,e.MenuGroup=vOe,e.MenuGroupLabel=yOe,e.MenuItem=pX,e.MenuPopup=mX,e.MenuRadioGroup=hX,e.MenuRadioItem=gX,e.MenuSeparator=SOe,e.MenuShortcut=COe,e.MenuSubmenu=_X,e.MenuSubmenuTrigger=vX,e.MenuTrigger=yX,e.Meter=tF,e.MeterFooter=aF,e.MeterHeader=YSe,e.MeterIndicator=nF,e.MeterLabel=XSe,e.MeterSubtitle=ZSe,e.MeterTrack=rF,e.MeterValue=iF,e.NavBar=xMe,e.NavBarItem=SMe,e.NavBarItemIcon=CMe,e.NavBarItemLabel=wMe,e.NavigationMenu=TMe,e.NavigationMenuContent=EMe,e.NavigationMenuIcon=DMe,e.NavigationMenuItem=OMe,e.NavigationMenuLink=AMe,e.NavigationMenuList=jMe,e.NavigationMenuPopup=MMe,e.NavigationMenuTrigger=PMe,e.NumberField=IMe,e.Popover=FP,e.PopoverButton=yxe,e.PopoverContent=BP,e.PopoverDescription=vxe,e.PopoverHeader=zP,e.PopoverPanel=IP,e.PopoverTitle=LP,e.PopoverTrigger=RP,e.PreviewCard=RMe,e.PreviewCardPopup=zMe,e.PreviewCardTrigger=BMe,e.Profile=VMe,e.ProfileAction=WMe,e.ProfileContent=GMe,e.ProfileName=HMe,e.ProfileSubname=UMe,e.Progress=KMe,e.ProgressBar=qMe,e.ProgressIndicator=JMe,e.RadarPing=XMe,e.Radio=QI,e.RadioGroup=$I,e.ResizeableHandle=jNe,e.ResizeablePanel=MNe,e.ResizeablePanelGroup=NNe,e.ScrollArea=FNe,e.Select=fM,e.SelectDescription=Oye,e.SelectGroup=yM,e.SelectGroupLabel=Dye,e.SelectIcon=hM,e.SelectItem=pM,e.SelectList=mM,e.SelectPopup=gM,e.SelectTitle=bM,e.SelectTrigger=_M,e.SelectValue=vM,e.Separator=PP,e.Sidebar=LNe,e.SidebarContent=RNe,e.SidebarFooter=zNe,e.SidebarGroup=BNe,e.SidebarGroupContent=VNe,e.SidebarGroupLabel=HNe,e.SidebarHeader=UNe,e.SidebarMenu=WNe,e.SidebarMenuBadge=KNe,e.SidebarMenuButton=qNe,e.SidebarMenuCollapsible=JNe,e.SidebarMenuCollapsiblePanel=YNe,e.SidebarMenuCollapsibleTrigger=XNe,e.SidebarMenuItem=ZNe,e.SidebarProvider=INe,e.SidebarToggle=GNe,e.Skeleton=QNe,e.Slider=HI,e.SliderThumb=BI,e.StackToastItem=G9,e.StackToasts=K9,e.Switch=nL,e.THEME_STORAGE_KEY=Z9,e.TableBadgeCell=S5,e.TableBody=C5,e.TableColumnToggle=T5,e.TableContainer=E5,e.TableDateFilterChip=O5,e.TableDateFilterForm=D5,e.TableFilterList=L5,e.TableFilterMenu=R5,e.TableFirstPage=z5,e.TableFooter=B5,e.TableHeader=V5,e.TableImageCell=H5,e.TableLastPage=U5,e.TableNav=W5,e.TableNextPage=G5,e.TableNumberCell=K5,e.TableNumberFilterChip=A5,e.TableNumberFilterForm=k5,e.TablePagination=q5,e.TablePaging=J5,e.TablePreviousPage=Y5,e.TableResults=fMe,e.TableSearch=X5,e.TableSelectCell=w5,e.TableSelectFilterChip=P5,e.TableSelectFilterForm=N5,e.TableSelectHeader=Z5,e.TableSortChip=$5,e.TableSortList=e7,e.TableSortMenu=Q5,e.TableStringFilterChip=I5,e.TableStringFilterForm=F5,e.TableTextCell=t7,e.TableToolbar=n7,e.TableViewport=r7,e.Tabs=xM,e.TabsIndicator=SM,e.TabsList=CM,e.TabsPanel=jye,e.TabsTab=wM,e.TextArea=KI,e.ThemeProvider=aPe,e.ToastProvider=$Ne,e.Toggle=oL,e.ToggleGroup=tPe,e.Tooltip=LI,e.TooltipContent=RI,e.TooltipTrigger=zI,e.anchoredToastManager=Y9,e.cn=X,e.createAppColumnHelper=lMe,e.createLayerTreeColumnHelper=gMe,e.dateFilterFn=o7,e.defaultFilterOperatorLabels=x5,e.features=u7,e.fieldContext=OI,e.findLayerTreeNode=h7,e.formContext=AI,e.getPayloadConfigFromPayload=aM,e.getThemeByValue=iPe,e.insertLayerTreeNode=_7,e.layerTreeFeatures=S7,e.moveLayerTreeNode=mMe,e.moveLayerTreeNodeToRoot=hMe,e.numberFilterFn=l7,e.popoverHandle=bxe,e.removeLayerTreeNode=g7,e.rowLockedFeature=y7,e.rowVisibilityFeature=v7,e.selectFilterFn=i7,e.stackToastManager=X9,e.stringFilterFn=s7,e.useAppForm=SL,e.useAppTable=uMe,e.useCellContext=f7,e.useChart=Zv,e.useChartTooltipContent=$j,e.useChartTooltipPayload=tM,e.useFieldContext=kI,e.useFormContext=jI,e.useHeaderContext=dMe,e.useLayerTree=nX,e.useLayerTreeCellContext=w7,e.useLayerTreeContext=C7,e.useLayerTreeHeaderContext=vMe,e.useLayerTreeTable=_Me,e.useMediaQuery=rPe,e.useSidebar=H9,e.useTableContext=d7,e.useTheme=()=>{let e=(0,m.useContext)($9);if(e===void 0)throw Error(`useTheme must be used within a ThemeProvider`);return e},e.useToastManager=W9,e.useTypedAppFormContext=TL,e.withFieldGroup=CL,e.withForm=wL});